From 9550dd42d3fb7c1697beb84dbaa965488f13d80a Mon Sep 17 00:00:00 2001 From: Eelco Wiersma Date: Tue, 26 Nov 2024 11:51:00 +0000 Subject: [PATCH 1/3] feat: add overlay prop to command bar dialog --- .changeset/great-forks-perform.md | 5 +++++ apps/website/src/pages/index.tsx | 14 ++++++++++---- packages/saas-ui-command-bar/src/command-bar.tsx | 6 ++++-- 3 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 .changeset/great-forks-perform.md diff --git a/.changeset/great-forks-perform.md b/.changeset/great-forks-perform.md new file mode 100644 index 000000000..25b15deec --- /dev/null +++ b/.changeset/great-forks-perform.md @@ -0,0 +1,5 @@ +--- +'@saas-ui/command-bar': minor +--- + +Add overlay prop to control overlay rendering to CommandBarDialog diff --git a/apps/website/src/pages/index.tsx b/apps/website/src/pages/index.tsx index b8dab3fcb..84c7cd497 100644 --- a/apps/website/src/pages/index.tsx +++ b/apps/website/src/pages/index.tsx @@ -1323,11 +1323,17 @@ export default Home export const getStaticProps: GetStaticProps = () => { return { props: { + // announcement: { + // title: 'Support us with your GitHub star 🤩', + // description: + // '', + // href: 'https://github.com/saas-js/saas-ui', + // action: false, + // }, announcement: { - title: 'Support us with your GitHub star 🤩', - description: - '', - href: 'https://github.com/saas-js/saas-ui', + title: '🎉 30% off until December 4rd. Code:', + description: 'BLACKFRIDAY30', + href: '/pricing', action: false, }, header: { diff --git a/packages/saas-ui-command-bar/src/command-bar.tsx b/packages/saas-ui-command-bar/src/command-bar.tsx index 0cd23c89b..fd4c1b492 100644 --- a/packages/saas-ui-command-bar/src/command-bar.tsx +++ b/packages/saas-ui-command-bar/src/command-bar.tsx @@ -186,11 +186,12 @@ export interface CommandBarDialogProps extends Omit { closeOnSelect?: boolean contentProps?: ModalContentProps + overlay?: boolean } export const CommandBarDialog = forwardRef( (props, ref) => { - const { children, contentProps, ...rest } = props + const { children, contentProps, overlay, ...rest } = props const { getDialogProps } = useCommandBarContext() @@ -199,6 +200,7 @@ export const CommandBarDialog = forwardRef( {children} + {overlay && } ) } @@ -206,4 +208,4 @@ export const CommandBarDialog = forwardRef( CommandBarDialog.displayName = 'CommandBarDialog' -export const CommandBarOverlay = ModalOverlay +const CommandBarOverlay = ModalOverlay From 79db6ac854e1f9e4180ec5a00eeb9f3865138ed8 Mon Sep 17 00:00:00 2001 From: Eelco Wiersma Date: Tue, 26 Nov 2024 11:51:56 +0000 Subject: [PATCH 2/3] fix: export --- packages/saas-ui-command-bar/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/saas-ui-command-bar/src/index.ts b/packages/saas-ui-command-bar/src/index.ts index e55d8b23d..f1a838ce4 100644 --- a/packages/saas-ui-command-bar/src/index.ts +++ b/packages/saas-ui-command-bar/src/index.ts @@ -7,7 +7,6 @@ export { CommandBarEmpty, CommandBarInput, CommandBarList, - CommandBarOverlay, CommandBarLoading, CommandBarContent, } from './command-bar' From 9014a0c91a9bd9666e43192d0a5b70267afa6a6f Mon Sep 17 00:00:00 2001 From: Eelco Wiersma Date: Tue, 26 Nov 2024 11:52:29 +0000 Subject: [PATCH 3/3] chore(release): command-bar@0.9.0 --- .changeset/great-forks-perform.md | 5 ----- apps/website/CHANGELOG.md | 7 +++++++ apps/website/package.json | 2 +- packages/saas-ui-command-bar/CHANGELOG.md | 6 ++++++ packages/saas-ui-command-bar/package.json | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 .changeset/great-forks-perform.md diff --git a/.changeset/great-forks-perform.md b/.changeset/great-forks-perform.md deleted file mode 100644 index 25b15deec..000000000 --- a/.changeset/great-forks-perform.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@saas-ui/command-bar': minor ---- - -Add overlay prop to control overlay rendering to CommandBarDialog diff --git a/apps/website/CHANGELOG.md b/apps/website/CHANGELOG.md index 2e083b49b..1da5bd44d 100644 --- a/apps/website/CHANGELOG.md +++ b/apps/website/CHANGELOG.md @@ -1,5 +1,12 @@ # website +## 2.4.11 + +### Patch Changes + +- Updated dependencies [9550dd4] + - @saas-ui/command-bar@0.9.0 + ## 2.4.10 ### Patch Changes diff --git a/apps/website/package.json b/apps/website/package.json index 169eca07f..75134c4d4 100644 --- a/apps/website/package.json +++ b/apps/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "2.4.10", + "version": "2.4.11", "private": true, "author": "Eelco Wiersma ", "scripts": { diff --git a/packages/saas-ui-command-bar/CHANGELOG.md b/packages/saas-ui-command-bar/CHANGELOG.md index 383689796..1ef636335 100644 --- a/packages/saas-ui-command-bar/CHANGELOG.md +++ b/packages/saas-ui-command-bar/CHANGELOG.md @@ -1,5 +1,11 @@ # @saas-ui/command-bar +## 0.9.0 + +### Minor Changes + +- 9550dd4: Add overlay prop to control overlay rendering to CommandBarDialog + ## 0.8.1 ### Patch Changes diff --git a/packages/saas-ui-command-bar/package.json b/packages/saas-ui-command-bar/package.json index df0c16558..cbafd1fc9 100644 --- a/packages/saas-ui-command-bar/package.json +++ b/packages/saas-ui-command-bar/package.json @@ -1,6 +1,6 @@ { "name": "@saas-ui/command-bar", - "version": "0.8.1", + "version": "0.9.0", "description": "Chakra UI CommandBar Component", "source": "src/index.ts", "exports": {