bits-ui 0.0.25 → 0.0.26
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.
- package/README.md +2 -2
- package/dist/bits/accordion/components/Accordion.svelte.d.ts +1 -1
- package/dist/bits/accordion/components/AccordionContent.svelte.d.ts +1 -1
- package/dist/bits/accordion/components/AccordionHeader.svelte.d.ts +1 -1
- package/dist/bits/accordion/components/AccordionItem.svelte.d.ts +1 -1
- package/dist/bits/accordion/components/AccordionTrigger.svelte.d.ts +4 -6
- package/dist/bits/accordion/ctx.d.ts +2 -2
- package/dist/bits/accordion/types.d.ts +6 -2
- package/dist/bits/alert-dialog/components/AlertDialogAction.svelte.d.ts +3 -6
- package/dist/bits/alert-dialog/components/AlertDialogCancel.svelte.d.ts +3 -6
- package/dist/bits/alert-dialog/components/AlertDialogContent.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/components/AlertDialogDescription.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/components/AlertDialogOverlay.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/components/AlertDialogPortal.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/components/AlertDialogTitle.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/components/AlertDialogTrigger.svelte.d.ts +4 -6
- package/dist/bits/alert-dialog/ctx.d.ts +2 -2
- package/dist/bits/alert-dialog/types.d.ts +8 -4
- package/dist/bits/aspect-ratio/components/AspectRatio.svelte.d.ts +1 -1
- package/dist/bits/avatar/components/Avatar.svelte.d.ts +1 -1
- package/dist/bits/avatar/components/AvatarFallback.svelte.d.ts +1 -1
- package/dist/bits/avatar/components/AvatarImage.svelte.d.ts +1 -1
- package/dist/bits/button/components/Button.svelte.d.ts +3 -3
- package/dist/bits/checkbox/components/Checkbox.svelte.d.ts +2 -2
- package/dist/bits/checkbox/components/CheckboxIndicator.svelte.d.ts +1 -1
- package/dist/bits/checkbox/components/CheckboxInput.svelte.d.ts +2 -2
- package/dist/bits/checkbox/ctx.d.ts +2 -2
- package/dist/bits/checkbox/types.d.ts +7 -3
- package/dist/bits/collapsible/components/Collapsible.svelte.d.ts +1 -1
- package/dist/bits/collapsible/components/CollapsibleContent.svelte.d.ts +1 -1
- package/dist/bits/collapsible/components/CollapsibleTrigger.svelte.d.ts +4 -5
- package/dist/bits/collapsible/types.d.ts +5 -2
- package/dist/bits/context-menu/components/ContextMenuArrow.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuCheckboxIndicator.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuCheckboxItem.svelte.d.ts +3 -10
- package/dist/bits/context-menu/components/ContextMenuContent.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuGroup.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuItem.svelte.d.ts +3 -10
- package/dist/bits/context-menu/components/ContextMenuLabel.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuRadioGroup.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuRadioItem.svelte.d.ts +3 -10
- package/dist/bits/context-menu/components/ContextMenuSeparator.svelte.d.ts +1 -1
- package/dist/bits/context-menu/components/ContextMenuSubContent.svelte.d.ts +2 -2
- package/dist/bits/context-menu/components/ContextMenuSubTrigger.svelte.d.ts +3 -9
- package/dist/bits/context-menu/components/ContextMenuTrigger.svelte.d.ts +3 -8
- package/dist/bits/context-menu/ctx.d.ts +9 -9
- package/dist/bits/context-menu/types.d.ts +21 -5
- package/dist/bits/dialog/components/DialogClose.svelte.d.ts +3 -6
- package/dist/bits/dialog/components/DialogContent.svelte.d.ts +1 -1
- package/dist/bits/dialog/components/DialogDescription.svelte.d.ts +1 -1
- package/dist/bits/dialog/components/DialogOverlay.svelte.d.ts +1 -1
- package/dist/bits/dialog/components/DialogPortal.svelte.d.ts +1 -1
- package/dist/bits/dialog/components/DialogTitle.svelte.d.ts +1 -1
- package/dist/bits/dialog/components/DialogTrigger.svelte.d.ts +4 -6
- package/dist/bits/dialog/ctx.d.ts +2 -2
- package/dist/bits/dialog/types.d.ts +7 -3
- package/dist/bits/dropdown-menu/components/DropdownMenuArrow.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuCheckboxIndicator.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuCheckboxItem.svelte.d.ts +2 -10
- package/dist/bits/dropdown-menu/components/DropdownMenuContent.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuGroup.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuItem.svelte.d.ts +3 -10
- package/dist/bits/dropdown-menu/components/DropdownMenuLabel.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuRadioGroup.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuRadioItem.svelte.d.ts +2 -10
- package/dist/bits/dropdown-menu/components/DropdownMenuSeparator.svelte.d.ts +1 -1
- package/dist/bits/dropdown-menu/components/DropdownMenuSubContent.svelte.d.ts +2 -2
- package/dist/bits/dropdown-menu/components/DropdownMenuSubTrigger.svelte.d.ts +2 -9
- package/dist/bits/dropdown-menu/components/DropdownMenuTrigger.svelte.d.ts +4 -6
- package/dist/bits/dropdown-menu/ctx.d.ts +9 -9
- package/dist/bits/dropdown-menu/types.d.ts +12 -5
- package/dist/bits/label/components/Label.svelte.d.ts +1 -1
- package/dist/bits/link-preview/components/LinkPreviewArrow.svelte.d.ts +1 -1
- package/dist/bits/link-preview/components/LinkPreviewContent.svelte.d.ts +1 -1
- package/dist/bits/link-preview/components/LinkPreviewTrigger.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/Menubar.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarArrow.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarCheckboxIndicator.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarCheckboxItem.svelte.d.ts +2 -10
- package/dist/bits/menubar/components/MenubarContent.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarGroup.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarItem.svelte.d.ts +3 -10
- package/dist/bits/menubar/components/MenubarLabel.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarRadioGroup.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarRadioItem.svelte.d.ts +2 -10
- package/dist/bits/menubar/components/MenubarSeparator.svelte.d.ts +1 -1
- package/dist/bits/menubar/components/MenubarSubContent.svelte.d.ts +2 -2
- package/dist/bits/menubar/components/MenubarSubTrigger.svelte.d.ts +2 -9
- package/dist/bits/menubar/components/MenubarTrigger.svelte.d.ts +4 -7
- package/dist/bits/menubar/ctx.d.ts +16 -16
- package/dist/bits/menubar/types.d.ts +12 -5
- package/dist/bits/popover/components/PopoverArrow.svelte.d.ts +1 -1
- package/dist/bits/popover/components/PopoverClose.svelte.d.ts +4 -6
- package/dist/bits/popover/components/PopoverContent.svelte.d.ts +1 -1
- package/dist/bits/popover/components/PopoverTrigger.svelte.d.ts +4 -6
- package/dist/bits/popover/ctx.d.ts +2 -2
- package/dist/bits/popover/types.d.ts +7 -3
- package/dist/bits/progress/components/Progress.svelte.d.ts +1 -1
- package/dist/bits/radio-group/components/RadioGroup.svelte.d.ts +1 -1
- package/dist/bits/radio-group/components/RadioGroupInput.svelte.d.ts +1 -1
- package/dist/bits/radio-group/components/RadioGroupItem.svelte.d.ts +4 -7
- package/dist/bits/radio-group/ctx.d.ts +1 -1
- package/dist/bits/radio-group/types.d.ts +6 -2
- package/dist/bits/select/components/SelectArrow.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectContent.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectGroup.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectInput.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectItem.svelte.d.ts +3 -9
- package/dist/bits/select/components/SelectLabel.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectSeparator.svelte.d.ts +1 -1
- package/dist/bits/select/components/SelectTrigger.svelte.d.ts +4 -6
- package/dist/bits/select/components/SelectValue.svelte.d.ts +1 -1
- package/dist/bits/select/ctx.d.ts +2 -2
- package/dist/bits/select/types.d.ts +10 -3
- package/dist/bits/separator/components/Separator.svelte.d.ts +1 -1
- package/dist/bits/slider/components/Slider.svelte.d.ts +1 -1
- package/dist/bits/slider/components/SliderInput.svelte.d.ts +2 -2
- package/dist/bits/slider/components/SliderRange.svelte.d.ts +1 -1
- package/dist/bits/slider/components/SliderThumb.svelte.d.ts +1 -1
- package/dist/bits/switch/components/Switch.svelte.d.ts +4 -6
- package/dist/bits/switch/components/SwitchInput.svelte.d.ts +1 -1
- package/dist/bits/switch/components/SwitchThumb.svelte.d.ts +1 -1
- package/dist/bits/switch/ctx.d.ts +1 -1
- package/dist/bits/switch/types.d.ts +6 -2
- package/dist/bits/tabs/components/Tabs.svelte.d.ts +1 -1
- package/dist/bits/tabs/components/TabsContent.svelte.d.ts +1 -1
- package/dist/bits/tabs/components/TabsList.svelte.d.ts +1 -1
- package/dist/bits/tabs/components/TabsTrigger.svelte.d.ts +3 -6
- package/dist/bits/tabs/ctx.d.ts +1 -1
- package/dist/bits/tabs/types.d.ts +6 -2
- package/dist/bits/toggle/components/Toggle.svelte.d.ts +4 -6
- package/dist/bits/toggle/components/ToggleInput.svelte.d.ts +2 -2
- package/dist/bits/toggle/ctx.d.ts +1 -1
- package/dist/bits/toggle/types.d.ts +6 -2
- package/dist/bits/tooltip/components/TooltipArrow.svelte.d.ts +1 -1
- package/dist/bits/tooltip/components/TooltipContent.svelte.d.ts +1 -1
- package/dist/bits/tooltip/components/TooltipTrigger.svelte.d.ts +3 -3
- package/dist/bits/tooltip/ctx.d.ts +1 -1
- package/dist/helpers/event-handlers.d.ts +9 -0
- package/dist/helpers/event-handlers.js +1 -0
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ declare class __sveltets_Render<Multiple extends boolean> {
|
|
|
77
77
|
'aria-describedby'?: string | null | undefined;
|
|
78
78
|
'aria-details'?: string | null | undefined;
|
|
79
79
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
80
|
-
'aria-dropeffect'?: "link" | "
|
|
80
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
81
81
|
'aria-errormessage'?: string | null | undefined;
|
|
82
82
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
83
83
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -75,7 +75,7 @@ declare class __sveltets_Render<T extends Transition> {
|
|
|
75
75
|
'aria-describedby'?: string | null | undefined;
|
|
76
76
|
'aria-details'?: string | null | undefined;
|
|
77
77
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
|
-
'aria-dropeffect'?: "link" | "
|
|
78
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
79
79
|
'aria-errormessage'?: string | null | undefined;
|
|
80
80
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
81
81
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -73,7 +73,7 @@ declare const __propDef: {
|
|
|
73
73
|
'aria-describedby'?: string | null | undefined;
|
|
74
74
|
'aria-details'?: string | null | undefined;
|
|
75
75
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
76
|
-
'aria-dropeffect'?: "link" | "
|
|
76
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
77
77
|
'aria-errormessage'?: string | null | undefined;
|
|
78
78
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
79
79
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -74,7 +74,7 @@ declare const __propDef: {
|
|
|
74
74
|
'aria-describedby'?: string | null | undefined;
|
|
75
75
|
'aria-details'?: string | null | undefined;
|
|
76
76
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
77
|
-
'aria-dropeffect'?: "link" | "
|
|
77
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
78
78
|
'aria-errormessage'?: string | null | undefined;
|
|
79
79
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
80
80
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { TriggerEvents } from "../types.js";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
asChild?: boolean | undefined;
|
|
@@ -10,7 +11,7 @@ declare const __propDef: {
|
|
|
10
11
|
formnovalidate?: boolean | null | undefined;
|
|
11
12
|
formtarget?: string | null | undefined;
|
|
12
13
|
name?: string | null | undefined;
|
|
13
|
-
type?: "
|
|
14
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
14
15
|
value?: string | number | string[] | null | undefined;
|
|
15
16
|
accesskey?: string | null | undefined;
|
|
16
17
|
autofocus?: boolean | null | undefined;
|
|
@@ -82,7 +83,7 @@ declare const __propDef: {
|
|
|
82
83
|
'aria-describedby'?: string | null | undefined;
|
|
83
84
|
'aria-details'?: string | null | undefined;
|
|
84
85
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
85
|
-
'aria-dropeffect'?: "link" | "
|
|
86
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
86
87
|
'aria-errormessage'?: string | null | undefined;
|
|
87
88
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
88
89
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -226,10 +227,7 @@ declare const __propDef: {
|
|
|
226
227
|
builder: any;
|
|
227
228
|
};
|
|
228
229
|
};
|
|
229
|
-
events:
|
|
230
|
-
"m-click"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<MouseEvent> | undefined;
|
|
231
|
-
"m-keydown"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<KeyboardEvent> | undefined;
|
|
232
|
-
};
|
|
230
|
+
events: TriggerEvents;
|
|
233
231
|
};
|
|
234
232
|
export type AccordionTriggerProps = typeof __propDef.props;
|
|
235
233
|
export type AccordionTriggerEvents = typeof __propDef.events;
|
|
@@ -27,7 +27,7 @@ declare function set<Multiple extends boolean>(props: CreateAccordionProps<Multi
|
|
|
27
27
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
28
28
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
29
29
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
30
|
-
}, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
30
|
+
}, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$value, $disabled]: [string | string[] | undefined, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
31
31
|
disabled: boolean | undefined;
|
|
32
32
|
'aria-expanded': boolean;
|
|
33
33
|
'aria-disabled': boolean;
|
|
@@ -99,7 +99,7 @@ declare function getTrigger(): {
|
|
|
99
99
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
100
100
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
101
101
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
102
|
-
}, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
102
|
+
}, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$value, $disabled]: [string | string[] | undefined, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
103
103
|
disabled: boolean | undefined;
|
|
104
104
|
'aria-expanded': boolean;
|
|
105
105
|
'aria-disabled': boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HTMLDivAttributes, ObjectVariation, Transition, TransitionParams, OmitValue, Expand, OnChangeFn, AsChild } from "../../internal/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ButtonEventHandler } from "../../index.js";
|
|
3
|
+
import type { CreateAccordionProps, AccordionItemProps as _ItemProps, AccordionHeadingProps as _HeadingProps } from "@melt-ui/svelte";
|
|
3
4
|
import type { HTMLButtonAttributes } from "svelte/elements";
|
|
4
5
|
type Props<Multiple extends boolean> = Expand<OmitValue<CreateAccordionProps<Multiple>> & {
|
|
5
6
|
value?: CreateAccordionProps<Multiple>["defaultValue"];
|
|
@@ -14,5 +15,8 @@ type ContentProps<T extends Transition = Transition> = Expand<{
|
|
|
14
15
|
transition?: T;
|
|
15
16
|
transitionConfig?: TransitionParams<T>;
|
|
16
17
|
} & AsChild> & HTMLDivAttributes;
|
|
17
|
-
type TriggerEvents =
|
|
18
|
+
type TriggerEvents = {
|
|
19
|
+
"m-click": ButtonEventHandler<MouseEvent>;
|
|
20
|
+
"m-keydown": ButtonEventHandler<KeyboardEvent>;
|
|
21
|
+
};
|
|
18
22
|
export type { Props, ItemProps, HeaderProps, TriggerProps, ContentProps, Props as AccordionProps, ItemProps as AccordionItemProps, HeaderProps as AccordionHeaderProps, TriggerProps as AccordionTriggerProps, ContentProps as AccordionContentProps, TriggerEvents, TriggerEvents as AccordionTriggerEvents };
|
|
@@ -10,7 +10,7 @@ declare const __propDef: {
|
|
|
10
10
|
formnovalidate?: boolean | null | undefined;
|
|
11
11
|
formtarget?: string | null | undefined;
|
|
12
12
|
name?: string | null | undefined;
|
|
13
|
-
type?: "
|
|
13
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
14
14
|
value?: string | number | string[] | null | undefined;
|
|
15
15
|
accesskey?: string | null | undefined;
|
|
16
16
|
autofocus?: boolean | null | undefined;
|
|
@@ -82,7 +82,7 @@ declare const __propDef: {
|
|
|
82
82
|
'aria-describedby'?: string | null | undefined;
|
|
83
83
|
'aria-details'?: string | null | undefined;
|
|
84
84
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
85
|
-
'aria-dropeffect'?: "link" | "
|
|
85
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
86
86
|
'aria-errormessage'?: string | null | undefined;
|
|
87
87
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
88
88
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -226,10 +226,7 @@ declare const __propDef: {
|
|
|
226
226
|
builder: any;
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
events:
|
|
230
|
-
"m-click"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<MouseEvent> | undefined;
|
|
231
|
-
"m-keydown"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<KeyboardEvent> | undefined;
|
|
232
|
-
};
|
|
229
|
+
events: import("../types.js").TriggerEvents;
|
|
233
230
|
};
|
|
234
231
|
export type AlertDialogActionProps = typeof __propDef.props;
|
|
235
232
|
export type AlertDialogActionEvents = typeof __propDef.events;
|
|
@@ -10,7 +10,7 @@ declare const __propDef: {
|
|
|
10
10
|
formnovalidate?: boolean | null | undefined;
|
|
11
11
|
formtarget?: string | null | undefined;
|
|
12
12
|
name?: string | null | undefined;
|
|
13
|
-
type?: "
|
|
13
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
14
14
|
value?: string | number | string[] | null | undefined;
|
|
15
15
|
accesskey?: string | null | undefined;
|
|
16
16
|
autofocus?: boolean | null | undefined;
|
|
@@ -82,7 +82,7 @@ declare const __propDef: {
|
|
|
82
82
|
'aria-describedby'?: string | null | undefined;
|
|
83
83
|
'aria-details'?: string | null | undefined;
|
|
84
84
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
85
|
-
'aria-dropeffect'?: "link" | "
|
|
85
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
86
86
|
'aria-errormessage'?: string | null | undefined;
|
|
87
87
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
88
88
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -226,10 +226,7 @@ declare const __propDef: {
|
|
|
226
226
|
builder: any;
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
events:
|
|
230
|
-
"m-click"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<MouseEvent> | undefined;
|
|
231
|
-
"m-keydown"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<KeyboardEvent> | undefined;
|
|
232
|
-
};
|
|
229
|
+
events: import("../types.js").TriggerEvents;
|
|
233
230
|
};
|
|
234
231
|
export type AlertDialogCancelProps = typeof __propDef.props;
|
|
235
232
|
export type AlertDialogCancelEvents = typeof __propDef.events;
|
|
@@ -75,7 +75,7 @@ declare class __sveltets_Render<T extends Transition> {
|
|
|
75
75
|
'aria-describedby'?: string | null | undefined;
|
|
76
76
|
'aria-details'?: string | null | undefined;
|
|
77
77
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
|
-
'aria-dropeffect'?: "link" | "
|
|
78
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
79
79
|
'aria-errormessage'?: string | null | undefined;
|
|
80
80
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
81
81
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ declare const __propDef: {
|
|
|
72
72
|
'aria-describedby'?: string | null | undefined;
|
|
73
73
|
'aria-details'?: string | null | undefined;
|
|
74
74
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
75
|
-
'aria-dropeffect'?: "link" | "
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
76
76
|
'aria-errormessage'?: string | null | undefined;
|
|
77
77
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
78
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ declare const __propDef: {
|
|
|
72
72
|
'aria-describedby'?: string | null | undefined;
|
|
73
73
|
'aria-details'?: string | null | undefined;
|
|
74
74
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
75
|
-
'aria-dropeffect'?: "link" | "
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
76
76
|
'aria-errormessage'?: string | null | undefined;
|
|
77
77
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
78
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ declare const __propDef: {
|
|
|
72
72
|
'aria-describedby'?: string | null | undefined;
|
|
73
73
|
'aria-details'?: string | null | undefined;
|
|
74
74
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
75
|
-
'aria-dropeffect'?: "link" | "
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
76
76
|
'aria-errormessage'?: string | null | undefined;
|
|
77
77
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
78
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -73,7 +73,7 @@ declare const __propDef: {
|
|
|
73
73
|
'aria-describedby'?: string | null | undefined;
|
|
74
74
|
'aria-details'?: string | null | undefined;
|
|
75
75
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
76
|
-
'aria-dropeffect'?: "link" | "
|
|
76
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
77
77
|
'aria-errormessage'?: string | null | undefined;
|
|
78
78
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
79
79
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { TriggerEvents } from "../types.js";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
asChild?: boolean | undefined;
|
|
@@ -10,7 +11,7 @@ declare const __propDef: {
|
|
|
10
11
|
formnovalidate?: boolean | null | undefined;
|
|
11
12
|
formtarget?: string | null | undefined;
|
|
12
13
|
name?: string | null | undefined;
|
|
13
|
-
type?: "
|
|
14
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
14
15
|
value?: string | number | string[] | null | undefined;
|
|
15
16
|
accesskey?: string | null | undefined;
|
|
16
17
|
autofocus?: boolean | null | undefined;
|
|
@@ -82,7 +83,7 @@ declare const __propDef: {
|
|
|
82
83
|
'aria-describedby'?: string | null | undefined;
|
|
83
84
|
'aria-details'?: string | null | undefined;
|
|
84
85
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
85
|
-
'aria-dropeffect'?: "link" | "
|
|
86
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
86
87
|
'aria-errormessage'?: string | null | undefined;
|
|
87
88
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
88
89
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -226,10 +227,7 @@ declare const __propDef: {
|
|
|
226
227
|
builder: any;
|
|
227
228
|
};
|
|
228
229
|
};
|
|
229
|
-
events:
|
|
230
|
-
"m-click"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<MouseEvent> | undefined;
|
|
231
|
-
"m-keydown"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<KeyboardEvent> | undefined;
|
|
232
|
-
};
|
|
230
|
+
events: TriggerEvents;
|
|
233
231
|
};
|
|
234
232
|
export type AlertDialogTriggerProps = typeof __propDef.props;
|
|
235
233
|
export type AlertDialogTriggerEvents = typeof __propDef.events;
|
|
@@ -19,7 +19,7 @@ declare function set(props: CreateAlertDialogProps): {
|
|
|
19
19
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
20
20
|
set: (this: void, value: boolean) => void;
|
|
21
21
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
22
|
-
}, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
22
|
+
}, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ($open: boolean) => {
|
|
23
23
|
readonly id: string;
|
|
24
24
|
readonly 'aria-haspopup': "dialog";
|
|
25
25
|
readonly 'aria-expanded': boolean;
|
|
@@ -41,7 +41,7 @@ declare function set(props: CreateAlertDialogProps): {
|
|
|
41
41
|
readonly 'aria-hidden': true;
|
|
42
42
|
readonly 'data-state': "open" | "closed";
|
|
43
43
|
}, string>;
|
|
44
|
-
close: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Stores | undefined, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
44
|
+
close: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Stores | undefined, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, () => {
|
|
45
45
|
readonly type: "button";
|
|
46
46
|
}, string>;
|
|
47
47
|
portalled: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Writable<string | HTMLElement | null>, <Node_3 extends unknown>(node: HTMLElement) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HTMLDivAttributes, OmitOpen, Expand, HTMLHeadingAttributes, OnChangeFn, Transition, TransitionParams, AsChild } from "../../internal/index.js";
|
|
2
2
|
import type { HTMLButtonAttributes } from "svelte/elements";
|
|
3
|
-
import type { CreateDialogProps
|
|
3
|
+
import type { CreateDialogProps } from "@melt-ui/svelte";
|
|
4
|
+
import type { ButtonEventHandler } from "../../index.js";
|
|
4
5
|
type Props = Expand<OmitOpen<Omit<CreateDialogProps, "role">> & {
|
|
5
6
|
open?: CreateDialogProps["defaultOpen"] & {};
|
|
6
7
|
onOpenChange?: OnChangeFn<CreateDialogProps["defaultOpen"]>;
|
|
@@ -18,7 +19,10 @@ type PortalProps = AsChild & HTMLDivAttributes;
|
|
|
18
19
|
type TitleProps = Expand<{
|
|
19
20
|
level?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
20
21
|
} & AsChild> & HTMLHeadingAttributes;
|
|
21
|
-
type TriggerEvents =
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type TriggerEvents = {
|
|
23
|
+
"m-click": ButtonEventHandler<MouseEvent>;
|
|
24
|
+
"m-keydown": ButtonEventHandler<KeyboardEvent>;
|
|
25
|
+
};
|
|
26
|
+
type ActionEvents = TriggerEvents;
|
|
27
|
+
type CancelEvents = TriggerEvents;
|
|
24
28
|
export type { Props, TriggerProps, ActionProps, CancelProps, ContentProps, DescriptionProps, OverlayProps, PortalProps, TitleProps, Props as AlertDialogProps, TriggerProps as AlertDialogTriggerProps, ActionProps as AlertDialogActionProps, CancelProps as AlertDialogCancelProps, ContentProps as AlertDialogContentProps, DescriptionProps as AlertDialogDescriptionProps, OverlayProps as AlertDialogOverlayProps, PortalProps as AlertDialogPortalProps, TitleProps as AlertDialogTitleProps, TriggerEvents, CancelEvents, ActionEvents, TriggerEvents as AlertDialogTriggerEvents, CancelEvents as AlertDialogCancelEvents, ActionEvents as AlertDialogActionEvents };
|
|
@@ -72,7 +72,7 @@ declare const __propDef: {
|
|
|
72
72
|
'aria-describedby'?: string | null | undefined;
|
|
73
73
|
'aria-details'?: string | null | undefined;
|
|
74
74
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
75
|
-
'aria-dropeffect'?: "link" | "
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
76
76
|
'aria-errormessage'?: string | null | undefined;
|
|
77
77
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
78
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -75,7 +75,7 @@ declare const __propDef: {
|
|
|
75
75
|
'aria-describedby'?: string | null | undefined;
|
|
76
76
|
'aria-details'?: string | null | undefined;
|
|
77
77
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
|
-
'aria-dropeffect'?: "link" | "
|
|
78
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
79
79
|
'aria-errormessage'?: string | null | undefined;
|
|
80
80
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
81
81
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -72,7 +72,7 @@ declare const __propDef: {
|
|
|
72
72
|
'aria-describedby'?: string | null | undefined;
|
|
73
73
|
'aria-details'?: string | null | undefined;
|
|
74
74
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
75
|
-
'aria-dropeffect'?: "link" | "
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
76
76
|
'aria-errormessage'?: string | null | undefined;
|
|
77
77
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
78
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -86,7 +86,7 @@ declare const __propDef: {
|
|
|
86
86
|
'aria-describedby'?: string | null | undefined;
|
|
87
87
|
'aria-details'?: string | null | undefined;
|
|
88
88
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
89
|
-
'aria-dropeffect'?: "link" | "
|
|
89
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
90
90
|
'aria-errormessage'?: string | null | undefined;
|
|
91
91
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
92
92
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -84,7 +84,7 @@ declare const __propDef: {
|
|
|
84
84
|
'aria-describedby'?: string | null | undefined;
|
|
85
85
|
'aria-details'?: string | null | undefined;
|
|
86
86
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
87
|
-
'aria-dropeffect'?: "link" | "
|
|
87
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
88
88
|
'aria-errormessage'?: string | null | undefined;
|
|
89
89
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
90
90
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -223,7 +223,7 @@ declare const __propDef: {
|
|
|
223
223
|
'on:fullscreenchange'?: import("svelte/elements.js").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
224
224
|
'on:fullscreenerror'?: import("svelte/elements.js").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
225
225
|
} | {
|
|
226
|
-
type?: "
|
|
226
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
227
227
|
href?: undefined;
|
|
228
228
|
builders?: import("../../../internal/index.js").Builder[] | undefined;
|
|
229
229
|
disabled?: boolean | null | undefined;
|
|
@@ -305,7 +305,7 @@ declare const __propDef: {
|
|
|
305
305
|
'aria-describedby'?: string | null | undefined;
|
|
306
306
|
'aria-details'?: string | null | undefined;
|
|
307
307
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
308
|
-
'aria-dropeffect'?: "link" | "
|
|
308
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
309
309
|
'aria-errormessage'?: string | null | undefined;
|
|
310
310
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
311
311
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -15,7 +15,7 @@ declare const __propDef: {
|
|
|
15
15
|
formmethod?: string | null | undefined;
|
|
16
16
|
formnovalidate?: boolean | null | undefined;
|
|
17
17
|
formtarget?: string | null | undefined;
|
|
18
|
-
type?: "
|
|
18
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
19
19
|
accesskey?: string | null | undefined;
|
|
20
20
|
autofocus?: boolean | null | undefined;
|
|
21
21
|
class?: string | null | undefined;
|
|
@@ -86,7 +86,7 @@ declare const __propDef: {
|
|
|
86
86
|
'aria-describedby'?: string | null | undefined;
|
|
87
87
|
'aria-details'?: string | null | undefined;
|
|
88
88
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
89
|
-
'aria-dropeffect'?: "link" | "
|
|
89
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
90
90
|
'aria-errormessage'?: string | null | undefined;
|
|
91
91
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
92
92
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -71,7 +71,7 @@ declare const __propDef: {
|
|
|
71
71
|
'aria-describedby'?: string | null | undefined;
|
|
72
72
|
'aria-details'?: string | null | undefined;
|
|
73
73
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
74
|
-
'aria-dropeffect'?: "link" | "
|
|
74
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
75
75
|
'aria-errormessage'?: string | null | undefined;
|
|
76
76
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
77
77
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -5,11 +5,11 @@ declare const __propDef: {
|
|
|
5
5
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
6
6
|
multiple?: boolean | null | undefined;
|
|
7
7
|
disabled?: boolean | null | undefined;
|
|
8
|
-
contextmenu?: string | null | undefined;
|
|
9
8
|
form?: string | null | undefined;
|
|
10
9
|
list?: string | null | undefined;
|
|
11
10
|
radiogroup?: string | null | undefined;
|
|
12
11
|
step?: string | number | null | undefined;
|
|
12
|
+
contextmenu?: string | null | undefined;
|
|
13
13
|
role?: import("svelte/elements.js").AriaRole | null | undefined;
|
|
14
14
|
src?: string | null | undefined;
|
|
15
15
|
alt?: string | null | undefined;
|
|
@@ -74,7 +74,7 @@ declare const __propDef: {
|
|
|
74
74
|
'aria-current'?: import("svelte/elements.js").Booleanish | "page" | "step" | "location" | "date" | "time" | null | undefined;
|
|
75
75
|
'aria-describedby'?: string | null | undefined;
|
|
76
76
|
'aria-details'?: string | null | undefined;
|
|
77
|
-
'aria-dropeffect'?: "link" | "
|
|
77
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
78
78
|
'aria-errormessage'?: string | null | undefined;
|
|
79
79
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
80
80
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -14,7 +14,7 @@ declare function set(props: CreateCheckboxProps): {
|
|
|
14
14
|
update: (updater: import("svelte/store").Updater<boolean | "indeterminate">, sideEffect?: ((newValue: boolean | "indeterminate") => void) | undefined) => void;
|
|
15
15
|
set: (this: void, value: boolean | "indeterminate") => void;
|
|
16
16
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean | "indeterminate">, invalidate?: import("svelte/store").Invalidator<boolean | "indeterminate"> | undefined): import("svelte/store").Unsubscriber;
|
|
17
|
-
}, import("svelte/store").Writable<boolean>, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
17
|
+
}, import("svelte/store").Writable<boolean>, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$checked, $disabled, $required]: [boolean | "indeterminate", boolean, boolean]) => {
|
|
18
18
|
readonly 'data-disabled': boolean;
|
|
19
19
|
readonly 'data-state': "checked" | "indeterminate" | "unchecked";
|
|
20
20
|
readonly type: "button";
|
|
@@ -63,7 +63,7 @@ declare function getCheckbox(): import("@melt-ui/svelte/internal/helpers").Expli
|
|
|
63
63
|
update: (updater: import("svelte/store").Updater<boolean | "indeterminate">, sideEffect?: ((newValue: boolean | "indeterminate") => void) | undefined) => void;
|
|
64
64
|
set: (this: void, value: boolean | "indeterminate") => void;
|
|
65
65
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean | "indeterminate">, invalidate?: import("svelte/store").Invalidator<boolean | "indeterminate"> | undefined): import("svelte/store").Unsubscriber;
|
|
66
|
-
}, import("svelte/store").Writable<boolean>, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"
|
|
66
|
+
}, import("svelte/store").Writable<boolean>, import("svelte/store").Writable<boolean>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$checked, $disabled, $required]: [boolean | "indeterminate", boolean, boolean]) => {
|
|
67
67
|
readonly 'data-disabled': boolean;
|
|
68
68
|
readonly 'data-state': "checked" | "indeterminate" | "unchecked";
|
|
69
69
|
readonly type: "button";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Expand, HTMLDivAttributes,
|
|
2
|
-
import type {
|
|
1
|
+
import type { Expand, HTMLDivAttributes, OmitChecked, OnChangeFn, AsChild } from "../../internal/index.js";
|
|
2
|
+
import type { ButtonEventHandler } from "../../index.js";
|
|
3
|
+
import type { CreateCheckboxProps } from "@melt-ui/svelte";
|
|
3
4
|
import type { HTMLButtonAttributes, HTMLInputAttributes } from "svelte/elements";
|
|
4
5
|
type Props = Expand<OmitChecked<CreateCheckboxProps> & {
|
|
5
6
|
checked?: CreateCheckboxProps["defaultChecked"] & {};
|
|
@@ -7,5 +8,8 @@ type Props = Expand<OmitChecked<CreateCheckboxProps> & {
|
|
|
7
8
|
} & AsChild> & HTMLButtonAttributes;
|
|
8
9
|
type IndicatorProps = HTMLDivAttributes;
|
|
9
10
|
type InputProps = Omit<HTMLInputAttributes, "value">;
|
|
10
|
-
type Events =
|
|
11
|
+
type Events = {
|
|
12
|
+
"m-click": ButtonEventHandler<MouseEvent>;
|
|
13
|
+
"m-keydown": ButtonEventHandler<KeyboardEvent>;
|
|
14
|
+
};
|
|
11
15
|
export type { Props, IndicatorProps, InputProps, Props as CheckboxProps, IndicatorProps as CheckboxIndicatorProps, InputProps as CheckboxInputProps, Events, Events as CheckboxEvents };
|
|
@@ -76,7 +76,7 @@ declare const __propDef: {
|
|
|
76
76
|
'aria-describedby'?: string | null | undefined;
|
|
77
77
|
'aria-details'?: string | null | undefined;
|
|
78
78
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
79
|
-
'aria-dropeffect'?: "link" | "
|
|
79
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
80
80
|
'aria-errormessage'?: string | null | undefined;
|
|
81
81
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
82
82
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -75,7 +75,7 @@ declare class __sveltets_Render<T extends Transition> {
|
|
|
75
75
|
'aria-describedby'?: string | null | undefined;
|
|
76
76
|
'aria-details'?: string | null | undefined;
|
|
77
77
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
78
|
-
'aria-dropeffect'?: "link" | "
|
|
78
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
79
79
|
'aria-errormessage'?: string | null | undefined;
|
|
80
80
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
81
81
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { TriggerEvents } from "../types.js";
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
asChild?: boolean | undefined;
|
|
@@ -10,7 +11,7 @@ declare const __propDef: {
|
|
|
10
11
|
formnovalidate?: boolean | null | undefined;
|
|
11
12
|
formtarget?: string | null | undefined;
|
|
12
13
|
name?: string | null | undefined;
|
|
13
|
-
type?: "
|
|
14
|
+
type?: "button" | "submit" | "reset" | null | undefined;
|
|
14
15
|
value?: string | number | string[] | null | undefined;
|
|
15
16
|
accesskey?: string | null | undefined;
|
|
16
17
|
autofocus?: boolean | null | undefined;
|
|
@@ -82,7 +83,7 @@ declare const __propDef: {
|
|
|
82
83
|
'aria-describedby'?: string | null | undefined;
|
|
83
84
|
'aria-details'?: string | null | undefined;
|
|
84
85
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
85
|
-
'aria-dropeffect'?: "link" | "
|
|
86
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
86
87
|
'aria-errormessage'?: string | null | undefined;
|
|
87
88
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
88
89
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -226,9 +227,7 @@ declare const __propDef: {
|
|
|
226
227
|
builder: any;
|
|
227
228
|
};
|
|
228
229
|
};
|
|
229
|
-
events:
|
|
230
|
-
"m-click"?: import("@melt-ui/svelte/internal/types").MeltEventHandler<MouseEvent> | undefined;
|
|
231
|
-
};
|
|
230
|
+
events: TriggerEvents;
|
|
232
231
|
};
|
|
233
232
|
export type CollapsibleTriggerProps = typeof __propDef.props;
|
|
234
233
|
export type CollapsibleTriggerEvents = typeof __propDef.events;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HTMLDivAttributes, Transition, TransitionParams, OmitOpen, Expand, OnChangeFn, AsChild } from "../../internal/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ButtonEventHandler } from "../../index.js";
|
|
3
|
+
import type { CreateCollapsibleProps } from "@melt-ui/svelte";
|
|
3
4
|
import type { HTMLButtonAttributes } from "svelte/elements";
|
|
4
5
|
type Props = Expand<OmitOpen<CreateCollapsibleProps> & {
|
|
5
6
|
open?: CreateCollapsibleProps["defaultOpen"] & {};
|
|
@@ -10,5 +11,7 @@ type ContentProps<T extends Transition = Transition> = {
|
|
|
10
11
|
transitionConfig?: TransitionParams<T>;
|
|
11
12
|
} & AsChild & HTMLDivAttributes;
|
|
12
13
|
type TriggerProps = AsChild & HTMLButtonAttributes;
|
|
13
|
-
type TriggerEvents =
|
|
14
|
+
type TriggerEvents = {
|
|
15
|
+
"m-click": ButtonEventHandler<MouseEvent>;
|
|
16
|
+
};
|
|
14
17
|
export type { Props, ContentProps, TriggerProps, Props as CollapsibleProps, ContentProps as CollapsibleContentProps, TriggerProps as CollapsibleTriggerProps, TriggerEvents, TriggerEvents as CollapsibleTriggerEvents };
|
|
@@ -73,7 +73,7 @@ declare const __propDef: {
|
|
|
73
73
|
'aria-describedby'?: string | null | undefined;
|
|
74
74
|
'aria-details'?: string | null | undefined;
|
|
75
75
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
76
|
-
'aria-dropeffect'?: "link" | "
|
|
76
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
77
77
|
'aria-errormessage'?: string | null | undefined;
|
|
78
78
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
79
79
|
'aria-flowto'?: string | null | undefined;
|
|
@@ -71,7 +71,7 @@ declare const __propDef: {
|
|
|
71
71
|
'aria-describedby'?: string | null | undefined;
|
|
72
72
|
'aria-details'?: string | null | undefined;
|
|
73
73
|
'aria-disabled'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
74
|
-
'aria-dropeffect'?: "link" | "
|
|
74
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | null | undefined;
|
|
75
75
|
'aria-errormessage'?: string | null | undefined;
|
|
76
76
|
'aria-expanded'?: import("svelte/elements.js").Booleanish | null | undefined;
|
|
77
77
|
'aria-flowto'?: string | null | undefined;
|