diff --git a/.changeset/large-geckos-allow.md b/.changeset/large-geckos-allow.md deleted file mode 100644 index 6663308..0000000 --- a/.changeset/large-geckos-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'pliny': patch ---- - -upgrade kbar version diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 52267d7..0000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "mode": "pre", - "tag": "beta", - "initialVersions": { - "@pliny/config": "0.0.0", - "pliny": "0.1.1" - }, - "changesets": [ - "large-geckos-allow", - "soft-humans-scream" - ] -} diff --git a/.changeset/soft-humans-scream.md b/.changeset/soft-humans-scream.md deleted file mode 100644 index b9b65e5..0000000 --- a/.changeset/soft-humans-scream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'pliny': patch ---- - -Expose onSearchDocumentsLoad for kbar and allow searchDocumentsPath to be false diff --git a/packages/pliny/CHANGELOG.md b/packages/pliny/CHANGELOG.md index a41bdce..19e5907 100644 --- a/packages/pliny/CHANGELOG.md +++ b/packages/pliny/CHANGELOG.md @@ -1,5 +1,19 @@ # pliny +## 0.1.2 + +### Patch Changes + +- a19ed9f: upgrade kbar version +- 79ed1c1: Expose onSearchDocumentsLoad for kbar and allow searchDocumentsPath to be false +- 9ff4d94: render shortcut key in kbar item + +## 0.1.2-beta.1 + +### Patch Changes + +- 9ff4d94: render shortcut key in kbar item + ## 0.1.2-beta.0 ### Patch Changes diff --git a/packages/pliny/package.json b/packages/pliny/package.json index d917187..dd49593 100644 --- a/packages/pliny/package.json +++ b/packages/pliny/package.json @@ -2,7 +2,7 @@ "name": "pliny", "description": "Main entry point for pliny components", "homepage": "https://github.com/timlrx/pliny", - "version": "0.1.2-beta.0", + "version": "0.1.2", "type": "module", "exports": { "./*": "./*", diff --git a/packages/pliny/src/search/KBarModal.tsx b/packages/pliny/src/search/KBarModal.tsx index 89342a5..196b80f 100644 --- a/packages/pliny/src/search/KBarModal.tsx +++ b/packages/pliny/src/search/KBarModal.tsx @@ -34,10 +34,10 @@ export const KBarModal = ({ actions, isLoading }: { actions: Action[]; isLoading /> - - + + ESC - + {!isLoading && } {isLoading && ( @@ -69,18 +69,34 @@ const RenderResults = () => { ) : (
- {item.subtitle && ( -
- {item.subtitle} +
+ {item.subtitle && ( +
+ {item.subtitle} +
+ )} +
{item.name}
+
+ {item.shortcut?.length ? ( +
+ {item.shortcut.map((sc) => ( + + {sc} + + ))}
- )} -
{item.name}
+ ) : null}
)}