Skip to content

Commit

Permalink
Merge branch 'main' into website
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagebakers committed Nov 26, 2024
2 parents 5cf0983 + 9014a0c commit ab1c55b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 9 deletions.
7 changes: 7 additions & 0 deletions apps/website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "website",
"version": "2.4.10",
"version": "2.4.11",
"private": true,
"author": "Eelco Wiersma <[email protected]>",
"scripts": {
Expand Down
14 changes: 10 additions & 4 deletions apps/website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1323,11 +1323,17 @@ export default Home
export const getStaticProps: GetStaticProps = () => {
return {
props: {
// announcement: {
// title: 'Support us with your GitHub star 🤩',
// description:
// '<img src="https://img.shields.io/github/stars/saas-js/saas-ui.svg?style=social&label=Star" />',
// href: 'https://github.com/saas-js/saas-ui',
// action: false,
// },
announcement: {
title: 'Support us with your GitHub star 🤩',
description:
'<img src="https://img.shields.io/github/stars/saas-js/saas-ui.svg?style=social&label=Star" />',
href: 'https://github.com/saas-js/saas-ui',
title: '🎉 30% off until December 4rd. Code:',
description: 'BLACKFRIDAY30',
href: '/pricing',
action: false,
},
header: {
Expand Down
6 changes: 6 additions & 0 deletions packages/saas-ui-command-bar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/saas-ui-command-bar/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions packages/saas-ui-command-bar/src/command-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,12 @@ export interface CommandBarDialogProps
extends Omit<ModalProps, 'variant' | 'isOpen' | 'onClose'> {
closeOnSelect?: boolean
contentProps?: ModalContentProps
overlay?: boolean
}

export const CommandBarDialog = forwardRef<CommandBarDialogProps, 'div'>(
(props, ref) => {
const { children, contentProps, ...rest } = props
const { children, contentProps, overlay, ...rest } = props

const { getDialogProps } = useCommandBarContext()

Expand All @@ -199,11 +200,12 @@ export const CommandBarDialog = forwardRef<CommandBarDialogProps, 'div'>(
<ModalContent ref={ref} bg="transparent" {...contentProps}>
{children}
</ModalContent>
{overlay && <CommandBarOverlay />}
</Modal>
)
}
)

CommandBarDialog.displayName = 'CommandBarDialog'

export const CommandBarOverlay = ModalOverlay
const CommandBarOverlay = ModalOverlay
1 change: 0 additions & 1 deletion packages/saas-ui-command-bar/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export {
CommandBarEmpty,
CommandBarInput,
CommandBarList,
CommandBarOverlay,
CommandBarLoading,
CommandBarContent,
} from './command-bar'
Expand Down

0 comments on commit ab1c55b

Please sign in to comment.