Skip to content

Commit

Permalink
chore: add ability to pass overlayProps to DialogContent
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed May 27, 2024
1 parent 94b2c8c commit 4be8355
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 4 deletions.
7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-docs

## 0.0.81

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.38.9

## 0.0.80

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-docs",
"version": "0.0.80",
"version": "0.0.81",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
Expand Down
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sikka/hawa

## 0.38.9

### Patch Changes

- Add ability to pass `overlayProps` to `DialogContent`

## 0.38.7

### Patch Changes
Expand Down
8 changes: 7 additions & 1 deletion packages/components/elements/dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const DialogContent = React.forwardRef<
persist?: boolean;
hideCloseButton?: boolean;
container?: HTMLElement;
overlayProps?: React.ComponentPropsWithoutRef<typeof DialogOverlay>;
classNames?: {
content?: string;
overlay?: string;
Expand All @@ -51,12 +52,17 @@ const DialogContent = React.forwardRef<
children,
persist,
hideCloseButton,
overlayProps,
...props
},
ref,
) => (
<DialogPortal container={props.container}>
<DialogOverlay className={classNames?.overlay} id={ids?.overlay} />
<DialogOverlay
className={classNames?.overlay}
id={ids?.overlay}
{...overlayProps}
/>
<DialogPrimitive.Content
onPointerDownOutside={(e) => {
if (persist) {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.38.7",
"version": "0.38.9",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
7 changes: 7 additions & 0 deletions packages/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-storybook

## 0.26.102

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.38.9

## 0.26.101

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-storybook",
"version": "0.26.101",
"version": "0.26.102",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit 4be8355

Please sign in to comment.