diff --git a/packages/bits-ui/src/lib/bits/context-menu/components/context-menu-content.svelte b/packages/bits-ui/src/lib/bits/context-menu/components/context-menu-content.svelte index 4aa4c4179..afd9ac659 100644 --- a/packages/bits-ui/src/lib/bits/context-menu/components/context-menu-content.svelte +++ b/packages/bits-ui/src/lib/bits/context-menu/components/context-menu-content.svelte @@ -1,7 +1,7 @@ - -{#if asChild} - -{:else} -
- {#if $checked} - - {/if} -
-{/if} diff --git a/packages/bits-ui/src/lib/bits/menu/components/menu-radio-indicator.svelte b/packages/bits-ui/src/lib/bits/menu/components/menu-radio-indicator.svelte deleted file mode 100644 index ec43c8275..000000000 --- a/packages/bits-ui/src/lib/bits/menu/components/menu-radio-indicator.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -{#if asChild} - -{:else} -
- {#if checked} - - {/if} -
-{/if} diff --git a/packages/bits-ui/src/lib/bits/menu/index.ts b/packages/bits-ui/src/lib/bits/menu/index.ts index 7d9c76599..5be06e1c2 100644 --- a/packages/bits-ui/src/lib/bits/menu/index.ts +++ b/packages/bits-ui/src/lib/bits/menu/index.ts @@ -1,13 +1,11 @@ export { default as Root } from "./components/menu.svelte"; export { default as Arrow } from "./components/menu-arrow.svelte"; -export { default as CheckboxIndicator } from "./components/menu-checkbox-indicator.svelte"; export { default as CheckboxItem } from "./components/menu-checkbox-item.svelte"; export { default as Content } from "./components/menu-content.svelte"; export { default as Group } from "./components/menu-group.svelte"; export { default as Item } from "./components/menu-item.svelte"; export { default as Label } from "./components/menu-label.svelte"; export { default as RadioGroup } from "./components/menu-radio-group.svelte"; -export { default as RadioIndicator } from "./components/menu-radio-indicator.svelte"; export { default as RadioItem } from "./components/menu-radio-item.svelte"; export { default as Separator } from "./components/menu-separator.svelte"; export { default as Sub } from "./components/menu-sub.svelte"; @@ -29,4 +27,5 @@ export type { MenuGroupProps as GroupProps, MenuRadioGroupProps as RadioGroupProps, MenuRadioItemProps as RadioItemProps, + MenuSubTriggerProps as SubTriggerProps, } from "./types.js"; diff --git a/packages/bits-ui/src/lib/bits/menu/types.ts b/packages/bits-ui/src/lib/bits/menu/types.ts index 4e9253633..7aeb3cd61 100644 --- a/packages/bits-ui/src/lib/bits/menu/types.ts +++ b/packages/bits-ui/src/lib/bits/menu/types.ts @@ -113,6 +113,9 @@ export type MenuSubContentPropsWithoutHTML = WithAsChild; export type MenuSubContentProps = MenuSubContentPropsWithoutHTML & Without; +export type MenuSubTriggerPropsWithoutHTML = MenuItemPropsWithoutHTML; +export type MenuSubTriggerProps = MenuItemProps; + export type MenuSeparatorPropsWithoutHTML = WithAsChild<{}>; export type MenuSeparatorProps = MenuSeparatorPropsWithoutHTML & Without; diff --git a/packages/bits-ui/src/lib/bits/menubar/index.ts b/packages/bits-ui/src/lib/bits/menubar/index.ts index 1f97916bb..c622bc531 100644 --- a/packages/bits-ui/src/lib/bits/menubar/index.ts +++ b/packages/bits-ui/src/lib/bits/menubar/index.ts @@ -13,8 +13,6 @@ export { default as SubContent } from "$lib/bits/menu/components/menu-sub-conten export { default as SubTrigger } from "$lib/bits/menu/components/menu-sub-trigger.svelte"; export { default as RadioGroup } from "$lib/bits/menu/components/menu-radio-group.svelte"; export { default as CheckboxItem } from "$lib/bits/menu/components/menu-checkbox-item.svelte"; -export { default as RadioIndicator } from "$lib/bits/menu/components/menu-radio-indicator.svelte"; -export { default as CheckboxIndicator } from "$lib/bits/menu/components/menu-checkbox-indicator.svelte"; export type { MenubarProps as Props, diff --git a/sites/docs/src/lib/components/demos/context-menu-demo.svelte b/sites/docs/src/lib/components/demos/context-menu-demo.svelte index 67cc87fa8..b1762d1e5 100644 --- a/sites/docs/src/lib/components/demos/context-menu-demo.svelte +++ b/sites/docs/src/lib/components/demos/context-menu-demo.svelte @@ -1,4 +1,4 @@ -