Skip to content

Commit

Permalink
Merge pull request #30 from huntabyte/disable-types
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Aug 13, 2023
2 parents dbee7fe + 897a55d commit eea5ec8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-knives-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@huntabyte/primitives": patch
---

add disabled types to menus
5 changes: 4 additions & 1 deletion src/lib/primitives/context-menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ type ContentProps = {
type GroupProps = HTMLDivAttributes;
type ItemProps = {
asChild?: boolean;
disabled?: boolean;
} & HTMLDivAttributes;
type CheckboxItemIndicatorProps = HTMLDivAttributes;
type LabelProps = HTMLDivAttributes;
type SeparatorProps = HTMLDivAttributes;
type SubProps = Expand<CreateContextSubmenuProps>;
type SubContentProps = HTMLDivAttributes;
type SubTriggerProps = HTMLDivAttributes;
type SubTriggerProps = {
disabled?: boolean;
} & HTMLDivAttributes;
type TriggerProps = {
asChild?: boolean;
} & HTMLDivAttributes;
Expand Down
7 changes: 6 additions & 1 deletion src/lib/primitives/dropdown-menu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ type ContentProps<T extends Transition = Transition> = {
} & HTMLDivAttributes;

type GroupProps = HTMLDivAttributes;

type ItemProps = {
asChild?: boolean;
disabled?: boolean;
} & HTMLDivAttributes;

type CheckboxItemIndicatorProps = HTMLDivAttributes;
type LabelProps = HTMLDivAttributes;
type SeparatorProps = HTMLDivAttributes;
Expand All @@ -70,7 +73,9 @@ type SubContentProps<T extends Transition = Transition> = {
transitionConfig?: TransitionParams<T>;
} & HTMLDivAttributes;

type SubTriggerProps = HTMLDivAttributes;
type SubTriggerProps = {
disabled?: boolean;
} & HTMLDivAttributes;
type TriggerProps = {
asChild?: boolean;
} & HTMLButtonAttributes;
Expand Down

0 comments on commit eea5ec8

Please sign in to comment.