bits-ui 1.0.0-next.61 → 1.0.0-next.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
child,
|
|
12
12
|
children,
|
|
13
13
|
disabled = false,
|
|
14
|
+
type = "button",
|
|
14
15
|
...restProps
|
|
15
16
|
}: MenuTriggerProps = $props();
|
|
16
17
|
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
),
|
|
24
25
|
});
|
|
25
26
|
|
|
26
|
-
const mergedProps = $derived(mergeProps(restProps, triggerState.props));
|
|
27
|
+
const mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));
|
|
27
28
|
</script>
|
|
28
29
|
|
|
29
30
|
<FloatingLayerAnchor {id}>
|
|
@@ -15,5 +15,6 @@ export { default as SubContentStatic } from "../menu/components/menu-sub-content
|
|
|
15
15
|
export { default as SubTrigger } from "../menu/components/menu-sub-trigger.svelte";
|
|
16
16
|
export { default as RadioGroup } from "../menu/components/menu-radio-group.svelte";
|
|
17
17
|
export { default as CheckboxItem } from "../menu/components/menu-checkbox-item.svelte";
|
|
18
|
+
export { default as Portal } from "../utilities/portal/portal.svelte";
|
|
18
19
|
export type { MenubarRootProps as RootProps, MenubarMenuProps as MenuProps, MenubarTriggerProps as TriggerProps, MenubarContentProps as ContentProps, MenubarContentStaticProps as ContentStaticProps, MenubarPortalProps as PortalProps, } from "./types.js";
|
|
19
20
|
export type { MenuSubPropsWithoutHTML as SubProps, MenuItemProps as ItemProps, MenuGroupProps as GroupProps, MenuGroupHeadingProps as GroupHeadingProps, MenuArrowProps as ArrowProps, MenuRadioItemProps as RadioItemProps, MenuSeparatorProps as SeparatorProps, MenuSubContentProps as SubContentProps, MenuSubTriggerProps as SubTriggerProps, MenuRadioGroupProps as RadioGroupProps, MenuCheckboxItemProps as CheckboxItemProps, MenuSubContentStaticProps as SubContentStaticProps, } from "../menu/types.js";
|
|
@@ -15,3 +15,4 @@ export { default as SubContentStatic } from "../menu/components/menu-sub-content
|
|
|
15
15
|
export { default as SubTrigger } from "../menu/components/menu-sub-trigger.svelte";
|
|
16
16
|
export { default as RadioGroup } from "../menu/components/menu-radio-group.svelte";
|
|
17
17
|
export { default as CheckboxItem } from "../menu/components/menu-checkbox-item.svelte";
|
|
18
|
+
export { default as Portal } from "../utilities/portal/portal.svelte";
|