Skip to content

Commit

Permalink
chore(DropdownMenu): allow consumer to pass contentProps
Browse files Browse the repository at this point in the history
SIKKA-7073[closed]
  • Loading branch information
zaaakher committed Jun 3, 2024
1 parent 72c54d3 commit de43944
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 3 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.87

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.42.1

## 0.0.86

### 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.86",
"version": "0.0.87",
"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.42.1

### Patch Changes

- Allow conumer to pass `contentProps` to `DropdownMenu` component

## 0.42.0

### Minor Changes
Expand Down
3 changes: 3 additions & 0 deletions packages/components/elements/dropdownMenu/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ interface DropdownMenuProps {
side?: ExtendedDropdownMenuContentProps["side"];
align?: ExtendedDropdownMenuContentProps["align"];
alignOffset?: ExtendedDropdownMenuContentProps["alignOffset"];
contentProps?: ExtendedDropdownMenuContentProps;
width?: "default" | "sm" | "lg" | "parent";
size?: "default" | "sm";
onItemSelect?: any;
Expand All @@ -322,6 +323,7 @@ const DropdownMenu: React.FC<DropdownMenuProps> = ({
side,
className,
classNames,
contentProps,
triggerClassname,
triggerProps,
align,
Expand Down Expand Up @@ -377,6 +379,7 @@ const DropdownMenu: React.FC<DropdownMenuProps> = ({
style={{
maxHeight: "var(--radix-dropdown-menu-content-available-height)",
}}
{...contentProps}
>
{header && header}
{items &&
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.42.0",
"version": "0.42.1",
"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.108

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.42.1

## 0.26.107

### 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.107",
"version": "0.26.108",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit de43944

Please sign in to comment.