bits-ui 0.11.5 → 0.11.7
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 +3 -5
- package/dist/bits/accordion/ctx.d.ts +8 -5
- package/dist/bits/alert-dialog/ctx.d.ts +23 -18
- package/dist/bits/avatar/ctx.d.ts +6 -4
- package/dist/bits/calendar/ctx.d.ts +50 -50
- package/dist/bits/checkbox/ctx.d.ts +9 -7
- package/dist/bits/collapsible/ctx.d.ts +7 -4
- package/dist/bits/context-menu/components/context-menu.svelte.d.ts +1 -0
- package/dist/bits/context-menu/ctx.d.ts +52 -42
- package/dist/bits/date-field/ctx.d.ts +94 -62
- package/dist/bits/date-picker/ctx.d.ts +44 -44
- package/dist/bits/date-range-field/ctx.d.ts +68 -68
- package/dist/bits/date-range-picker/ctx.d.ts +84 -84
- package/dist/bits/dialog/ctx.d.ts +23 -18
- package/dist/bits/index.d.ts +2 -0
- package/dist/bits/index.js +2 -0
- package/dist/bits/link-preview/ctx.d.ts +22 -18
- package/dist/bits/menu/components/menu.svelte +4 -0
- package/dist/bits/menu/components/menu.svelte.d.ts +1 -0
- package/dist/bits/menu/ctx.d.ts +77 -62
- package/dist/bits/menubar/components/menubar-menu.svelte +4 -0
- package/dist/bits/menubar/components/menubar-menu.svelte.d.ts +1 -0
- package/dist/bits/menubar/ctx.d.ts +135 -115
- package/dist/bits/pagination/_export.types.d.ts +1 -0
- package/dist/bits/pagination/_export.types.js +1 -0
- package/dist/bits/pagination/_types.d.ts +26 -0
- package/dist/bits/pagination/_types.js +6 -0
- package/dist/bits/pagination/components/pagination-next-button.svelte +27 -0
- package/dist/bits/pagination/components/pagination-next-button.svelte.d.ts +26 -0
- package/dist/bits/pagination/components/pagination-page.svelte +30 -0
- package/dist/bits/pagination/components/pagination-page.svelte.d.ts +27 -0
- package/dist/bits/pagination/components/pagination-prev-button.svelte +27 -0
- package/dist/bits/pagination/components/pagination-prev-button.svelte.d.ts +26 -0
- package/dist/bits/pagination/components/pagination.svelte +38 -0
- package/dist/bits/pagination/components/pagination.svelte.d.ts +30 -0
- package/dist/bits/pagination/ctx.d.ts +58 -0
- package/dist/bits/pagination/ctx.js +17 -0
- package/dist/bits/pagination/index.d.ts +5 -0
- package/dist/bits/pagination/index.js +5 -0
- package/dist/bits/pagination/types.d.ts +21 -0
- package/dist/bits/pagination/types.js +1 -0
- package/dist/bits/popover/ctx.d.ts +24 -19
- package/dist/bits/progress/ctx.d.ts +6 -5
- package/dist/bits/radio-group/ctx.d.ts +9 -8
- package/dist/bits/range-calendar/ctx.d.ts +52 -52
- package/dist/bits/select/ctx.d.ts +27 -27
- package/dist/bits/separator/ctx.d.ts +4 -4
- package/dist/bits/slider/ctx.d.ts +10 -7
- package/dist/bits/switch/ctx.d.ts +9 -8
- package/dist/bits/tabs/ctx.d.ts +9 -5
- package/dist/bits/toggle/ctx.d.ts +6 -5
- package/dist/bits/toggle-group/ctx.d.ts +10 -9
- package/dist/bits/toolbar/_export.types.d.ts +1 -0
- package/dist/bits/toolbar/_export.types.js +1 -0
- package/dist/bits/toolbar/_types.d.ts +48 -0
- package/dist/bits/toolbar/_types.js +1 -0
- package/dist/bits/toolbar/components/toolbar-button.svelte +27 -0
- package/dist/bits/toolbar/components/toolbar-button.svelte.d.ts +25 -0
- package/dist/bits/toolbar/components/toolbar-group-item.svelte +30 -0
- package/dist/bits/toolbar/components/toolbar-group-item.svelte.d.ts +33 -0
- package/dist/bits/toolbar/components/toolbar-group.svelte +48 -0
- package/dist/bits/toolbar/components/toolbar-group.svelte.d.ts +26 -0
- package/dist/bits/toolbar/components/toolbar-link.svelte +27 -0
- package/dist/bits/toolbar/components/toolbar-link.svelte.d.ts +25 -0
- package/dist/bits/toolbar/components/toolbar.svelte +30 -0
- package/dist/bits/toolbar/components/toolbar.svelte.d.ts +26 -0
- package/dist/bits/toolbar/ctx.d.ts +120 -0
- package/dist/bits/toolbar/ctx.js +30 -0
- package/dist/bits/toolbar/index.d.ts +6 -0
- package/dist/bits/toolbar/index.js +6 -0
- package/dist/bits/toolbar/types.d.ts +23 -0
- package/dist/bits/toolbar/types.js +1 -0
- package/dist/bits/tooltip/ctx.d.ts +24 -19
- package/dist/shared/index.d.ts +2 -2
- package/dist/types.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
# Bits
|
|
1
|
+
# Bits UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The headless components for Svelte.
|
|
4
4
|
|
|
5
5
|
[Read the docs](https://bits-ui.com) (still a work in progress)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Logo created by [BruceWayyn](https://github.com/brucewayyn)
|
|
7
|
+
Powered by [Melt UI](https://melt-ui.com) builders.
|
|
@@ -55,11 +55,14 @@ export declare function setCtx<Multiple extends boolean>(props: CreateAccordionP
|
|
|
55
55
|
helpers: {
|
|
56
56
|
isSelected: import("svelte/store").Readable<(key: string) => boolean>;
|
|
57
57
|
};
|
|
58
|
-
options: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
59
|
+
multiple: false | Multiple;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
forceVisible: boolean;
|
|
62
|
+
defaultValue?: import("@melt-ui/svelte/internal/types").WhenTrue<Multiple, string[], string, string | string[]> | undefined;
|
|
63
|
+
value?: import("svelte/store").Writable<import("@melt-ui/svelte/internal/types").WhenTrue<Multiple, string[], string, string | string[]> | undefined> | undefined;
|
|
64
|
+
onValueChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@melt-ui/svelte/internal/types").WhenTrue<Multiple, string[], string, string | string[]> | undefined> | undefined;
|
|
65
|
+
}, "defaultValue" | "value" | "onValueChange">>;
|
|
63
66
|
};
|
|
64
67
|
export declare function getCtx(): GetReturn;
|
|
65
68
|
export declare function setItem(props: ItemProps): {
|
|
@@ -4,11 +4,11 @@ type SetProps = CreateAlertDialogProps;
|
|
|
4
4
|
export declare const getAttrs: (part: "content" | "portal" | "description" | "action" | "title" | "trigger" | "cancel" | "overlay") => Record<string, string>;
|
|
5
5
|
export declare function setCtx(props: SetProps): {
|
|
6
6
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
7
|
-
ids: {
|
|
8
|
-
title:
|
|
9
|
-
description:
|
|
10
|
-
content:
|
|
11
|
-
}
|
|
7
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}>;
|
|
12
12
|
elements: {
|
|
13
13
|
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("svelte/store").Writable<string>, import("svelte/store").Writable<string>, import("svelte/store").Writable<string>], (node: HTMLElement) => {
|
|
14
14
|
destroy: () => void;
|
|
@@ -63,19 +63,24 @@ export declare function setCtx(props: SetProps): {
|
|
|
63
63
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
options: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
67
|
+
preventScroll: boolean;
|
|
68
|
+
closeOnEscape: boolean;
|
|
69
|
+
closeOnOutsideClick: boolean;
|
|
70
|
+
role: "dialog" | "alertdialog";
|
|
71
|
+
defaultOpen: boolean;
|
|
72
|
+
open?: import("svelte/store").Writable<boolean> | undefined;
|
|
73
|
+
onOpenChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean> | undefined;
|
|
74
|
+
portal: string | HTMLElement | null;
|
|
75
|
+
forceVisible: boolean;
|
|
76
|
+
openFocus: import("@melt-ui/svelte").FocusProp | undefined;
|
|
77
|
+
closeFocus: import("@melt-ui/svelte").FocusProp | undefined;
|
|
78
|
+
ids?: Partial<{
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
content: string;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
}, "ids">>;
|
|
79
84
|
};
|
|
80
85
|
export declare function getCtx(): AlertDialogReturn;
|
|
81
86
|
export {};
|
|
@@ -28,10 +28,12 @@ export declare function setCtx(props: CreateAvatarProps): {
|
|
|
28
28
|
subscribe(this: void, run: import("svelte/store").Subscriber<"loading" | "loaded" | "error">, invalidate?: import("svelte/store").Invalidator<"loading" | "loaded" | "error"> | undefined): import("svelte/store").Unsubscriber;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
options: {
|
|
32
|
-
src:
|
|
33
|
-
delayMs:
|
|
34
|
-
|
|
31
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
32
|
+
src: string;
|
|
33
|
+
delayMs: number;
|
|
34
|
+
loadingStatus?: import("svelte/store").Writable<"loading" | "loaded" | "error"> | undefined;
|
|
35
|
+
onLoadingStatusChange: import("@melt-ui/svelte/internal/helpers").ChangeFn<"loading" | "loaded" | "error"> | undefined;
|
|
36
|
+
}, "onLoadingStatusChange" | "loadingStatus">>;
|
|
35
37
|
};
|
|
36
38
|
export declare function getImage(src?: string | undefined | null): AvatarReturn;
|
|
37
39
|
export declare function getCtx(): AvatarReturn;
|
|
@@ -95,31 +95,31 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
95
95
|
isDateSelected: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>;
|
|
96
96
|
isDateUnavailable: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean | undefined>;
|
|
97
97
|
};
|
|
98
|
-
options: {
|
|
99
|
-
multiple:
|
|
100
|
-
disabled:
|
|
101
|
-
onValueChange?: import("
|
|
102
|
-
defaultValue?: import("
|
|
103
|
-
numberOfMonths:
|
|
104
|
-
preventDeselect:
|
|
105
|
-
minValue: import("
|
|
106
|
-
maxValue: import("
|
|
107
|
-
defaultPlaceholder?: import("
|
|
108
|
-
onPlaceholderChange?: import("
|
|
109
|
-
pagedNavigation:
|
|
110
|
-
weekStartsOn:
|
|
111
|
-
weekdayFormat:
|
|
112
|
-
isDateDisabled: import("
|
|
113
|
-
isDateUnavailable: import("
|
|
114
|
-
fixedWeeks:
|
|
115
|
-
calendarLabel:
|
|
116
|
-
locale:
|
|
117
|
-
readonly:
|
|
118
|
-
}
|
|
119
|
-
ids: {
|
|
120
|
-
calendar:
|
|
121
|
-
accessibleHeading:
|
|
122
|
-
}
|
|
98
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
99
|
+
multiple: Multiple;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
onValueChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@melt-ui/svelte/internal/types").WhenTrue<Multiple, import("@internationalized/date").DateValue[], import("@internationalized/date").DateValue, import("@internationalized/date").DateValue | import("@internationalized/date").DateValue[]> | undefined> | undefined;
|
|
102
|
+
defaultValue?: import("@melt-ui/svelte/internal/types").WhenTrue<Multiple, import("@internationalized/date").DateValue[], import("@internationalized/date").DateValue, import("@internationalized/date").DateValue | import("@internationalized/date").DateValue[]> | undefined;
|
|
103
|
+
numberOfMonths: number;
|
|
104
|
+
preventDeselect: boolean;
|
|
105
|
+
minValue: import("@internationalized/date").DateValue | undefined;
|
|
106
|
+
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
107
|
+
defaultPlaceholder?: import("@internationalized/date").DateValue | undefined;
|
|
108
|
+
onPlaceholderChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue> | undefined;
|
|
109
|
+
pagedNavigation: boolean;
|
|
110
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
111
|
+
weekdayFormat: "narrow" | "short" | "long";
|
|
112
|
+
isDateDisabled: import("@melt-ui/svelte").Matcher | undefined;
|
|
113
|
+
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
114
|
+
fixedWeeks: boolean;
|
|
115
|
+
calendarLabel: string;
|
|
116
|
+
locale: string;
|
|
117
|
+
readonly: boolean;
|
|
118
|
+
}>;
|
|
119
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
120
|
+
calendar: string;
|
|
121
|
+
accessibleHeading: string;
|
|
122
|
+
}>;
|
|
123
123
|
};
|
|
124
124
|
export declare function getCtx(): {
|
|
125
125
|
elements: {
|
|
@@ -214,29 +214,29 @@ export declare function getCtx(): {
|
|
|
214
214
|
isDateSelected: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>;
|
|
215
215
|
isDateUnavailable: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean | undefined>;
|
|
216
216
|
};
|
|
217
|
-
options: {
|
|
218
|
-
multiple:
|
|
219
|
-
disabled:
|
|
220
|
-
onValueChange?: import("
|
|
221
|
-
defaultValue?: import("
|
|
222
|
-
numberOfMonths:
|
|
223
|
-
preventDeselect:
|
|
224
|
-
minValue: import("
|
|
225
|
-
maxValue: import("
|
|
226
|
-
defaultPlaceholder?: import("
|
|
227
|
-
onPlaceholderChange?: import("
|
|
228
|
-
pagedNavigation:
|
|
229
|
-
weekStartsOn:
|
|
230
|
-
weekdayFormat:
|
|
231
|
-
isDateDisabled: import("
|
|
232
|
-
isDateUnavailable: import("
|
|
233
|
-
fixedWeeks:
|
|
234
|
-
calendarLabel:
|
|
235
|
-
locale:
|
|
236
|
-
readonly:
|
|
237
|
-
}
|
|
238
|
-
ids: {
|
|
239
|
-
calendar:
|
|
240
|
-
accessibleHeading:
|
|
241
|
-
}
|
|
217
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
218
|
+
multiple: boolean;
|
|
219
|
+
disabled: boolean;
|
|
220
|
+
onValueChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue | import("@internationalized/date").DateValue[] | undefined> | undefined;
|
|
221
|
+
defaultValue?: import("@internationalized/date").DateValue | import("@internationalized/date").DateValue[] | undefined;
|
|
222
|
+
numberOfMonths: number;
|
|
223
|
+
preventDeselect: boolean;
|
|
224
|
+
minValue: import("@internationalized/date").DateValue | undefined;
|
|
225
|
+
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
226
|
+
defaultPlaceholder?: import("@internationalized/date").DateValue | undefined;
|
|
227
|
+
onPlaceholderChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue> | undefined;
|
|
228
|
+
pagedNavigation: boolean;
|
|
229
|
+
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
230
|
+
weekdayFormat: "narrow" | "short" | "long";
|
|
231
|
+
isDateDisabled: import("@melt-ui/svelte").Matcher | undefined;
|
|
232
|
+
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
233
|
+
fixedWeeks: boolean;
|
|
234
|
+
calendarLabel: string;
|
|
235
|
+
locale: string;
|
|
236
|
+
readonly: boolean;
|
|
237
|
+
}>;
|
|
238
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
239
|
+
calendar: string;
|
|
240
|
+
accessibleHeading: string;
|
|
241
|
+
}>;
|
|
242
242
|
};
|
|
@@ -44,12 +44,14 @@ export declare function setCtx(props: CreateCheckboxProps): {
|
|
|
44
44
|
isIndeterminate: import("svelte/store").Readable<boolean>;
|
|
45
45
|
isChecked: import("svelte/store").Readable<boolean>;
|
|
46
46
|
};
|
|
47
|
-
options: {
|
|
48
|
-
disabled:
|
|
49
|
-
|
|
50
|
-
name:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
required: boolean;
|
|
50
|
+
name: string | undefined;
|
|
51
|
+
value: string;
|
|
52
|
+
defaultChecked: boolean | "indeterminate";
|
|
53
|
+
checked?: import("svelte/store").Writable<boolean | "indeterminate"> | undefined;
|
|
54
|
+
onCheckedChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean | "indeterminate"> | undefined;
|
|
55
|
+
}, "checked" | "defaultChecked">>;
|
|
54
56
|
};
|
|
55
57
|
export declare function getCtx(): CheckboxReturn;
|
|
@@ -35,9 +35,12 @@ export declare function setCtx(props: CreateCollapsibleProps): {
|
|
|
35
35
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
options: {
|
|
39
|
-
disabled:
|
|
40
|
-
forceVisible:
|
|
41
|
-
|
|
38
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
forceVisible: boolean;
|
|
41
|
+
defaultOpen: boolean;
|
|
42
|
+
open?: import("svelte/store").Writable<boolean> | undefined;
|
|
43
|
+
onOpenChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean> | undefined;
|
|
44
|
+
}, "open" | "defaultOpen" | "onOpenChange">>;
|
|
42
45
|
};
|
|
43
46
|
export declare function getCtx(): CollapsibleReturn;
|
|
@@ -7,6 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
portal?: string | HTMLElement | null | undefined;
|
|
8
8
|
closeFocus?: import("@melt-ui/svelte/index.js").FocusProp | undefined;
|
|
9
9
|
dir?: import("@melt-ui/svelte/internal/types").TextDirection | undefined;
|
|
10
|
+
closeOnItemClick?: boolean | undefined;
|
|
10
11
|
loop?: boolean | undefined;
|
|
11
12
|
typeahead?: boolean | undefined;
|
|
12
13
|
disableFocusFirstItem?: boolean | undefined;
|
|
@@ -5,10 +5,10 @@ import type { FloatingProps } from "../floating/_types.js";
|
|
|
5
5
|
export declare const getAttrs: (part: "content" | "checkbox-indicator" | "arrow" | "label" | "group" | "radio-group" | "separator" | "item" | "trigger" | "checkbox-item" | "radio-item" | "sub-content" | "sub-trigger") => Record<string, string>;
|
|
6
6
|
export declare function setCtx(props: CreateContextMenuProps): {
|
|
7
7
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
8
|
-
ids: {
|
|
9
|
-
menu:
|
|
10
|
-
trigger:
|
|
11
|
-
}
|
|
8
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
9
|
+
menu: string;
|
|
10
|
+
trigger: string;
|
|
11
|
+
}>;
|
|
12
12
|
elements: {
|
|
13
13
|
menu: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, Writable<string | HTMLElement | null | undefined>, Writable<string>, Writable<string>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown">, ([$isVisible, $portal, $menuId, $triggerId]: [boolean, string | HTMLElement | null | undefined, string, string]) => {
|
|
14
14
|
readonly role: "menu";
|
|
@@ -62,10 +62,10 @@ export declare function setCtx(props: CreateContextMenuProps): {
|
|
|
62
62
|
};
|
|
63
63
|
builders: {
|
|
64
64
|
createSubmenu: (args?: import("@melt-ui/svelte/dist/builders/menu")._CreateSubmenuProps | undefined) => {
|
|
65
|
-
ids: {
|
|
66
|
-
menu:
|
|
67
|
-
trigger:
|
|
68
|
-
}
|
|
65
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
66
|
+
menu: string;
|
|
67
|
+
trigger: string;
|
|
68
|
+
}>;
|
|
69
69
|
elements: {
|
|
70
70
|
subTrigger: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[{
|
|
71
71
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
@@ -103,24 +103,29 @@ export declare function setCtx(props: CreateContextMenuProps): {
|
|
|
103
103
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
options: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
positioning: Writable<import("@melt-ui/svelte/internal/actions").FloatingConfig | {
|
|
106
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
107
|
+
open?: Writable<boolean> | undefined;
|
|
108
|
+
ids?: Partial<{
|
|
109
|
+
menu: string;
|
|
110
|
+
trigger: string;
|
|
111
|
+
}> | undefined;
|
|
112
|
+
onOpenChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean> | undefined;
|
|
113
|
+
positioning: import("@melt-ui/svelte/internal/actions").FloatingConfig | {
|
|
115
114
|
placement: "right-start";
|
|
116
115
|
gutter: number;
|
|
117
|
-
}
|
|
118
|
-
arrowSize:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
closeOnEscape:
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
};
|
|
117
|
+
arrowSize: number;
|
|
118
|
+
disabled: boolean;
|
|
119
|
+
preventScroll: true;
|
|
120
|
+
closeOnEscape: true;
|
|
121
|
+
closeOnOutsideClick: true;
|
|
122
|
+
portal: string;
|
|
123
|
+
loop: false;
|
|
124
|
+
dir: "ltr";
|
|
125
|
+
defaultOpen: false;
|
|
126
|
+
typeahead: true;
|
|
127
|
+
closeOnItemClick: true;
|
|
128
|
+
}, "ids">>;
|
|
124
129
|
};
|
|
125
130
|
createCheckboxItem: (props?: import("@melt-ui/svelte/dist/builders/menu")._CheckboxItemProps | undefined) => {
|
|
126
131
|
elements: {
|
|
@@ -184,25 +189,30 @@ export declare function setCtx(props: CreateContextMenuProps): {
|
|
|
184
189
|
};
|
|
185
190
|
};
|
|
186
191
|
};
|
|
187
|
-
options: {
|
|
188
|
-
|
|
189
|
-
open?: Writable<Writable<boolean> | undefined> | undefined;
|
|
190
|
-
forceVisible: Writable<boolean>;
|
|
191
|
-
defaultOpen: Writable<boolean>;
|
|
192
|
-
onOpenChange?: Writable<import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean> | undefined> | undefined;
|
|
193
|
-
preventScroll: Writable<boolean>;
|
|
194
|
-
portal: Writable<string | HTMLElement | null | undefined>;
|
|
195
|
-
positioning: Writable<import("@melt-ui/svelte/internal/actions").FloatingConfig | {
|
|
192
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
193
|
+
positioning: import("@melt-ui/svelte/internal/actions").FloatingConfig | {
|
|
196
194
|
placement: "bottom-start";
|
|
197
|
-
}
|
|
198
|
-
arrowSize:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
closeOnEscape:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
195
|
+
};
|
|
196
|
+
arrowSize: number;
|
|
197
|
+
dir: import("@melt-ui/svelte/internal/types").TextDirection;
|
|
198
|
+
preventScroll: boolean;
|
|
199
|
+
closeOnEscape: boolean;
|
|
200
|
+
closeOnItemClick: boolean;
|
|
201
|
+
portal: string | HTMLElement | null | undefined;
|
|
202
|
+
closeOnOutsideClick: boolean;
|
|
203
|
+
loop: boolean;
|
|
204
|
+
defaultOpen: boolean;
|
|
205
|
+
open?: Writable<boolean> | undefined;
|
|
206
|
+
onOpenChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<boolean> | undefined;
|
|
207
|
+
forceVisible: boolean;
|
|
208
|
+
typeahead: boolean;
|
|
209
|
+
closeFocus: import("@melt-ui/svelte").FocusProp | undefined;
|
|
210
|
+
disableFocusFirstItem: boolean;
|
|
211
|
+
ids?: Partial<{
|
|
212
|
+
menu: string;
|
|
213
|
+
trigger: string;
|
|
214
|
+
}> | undefined;
|
|
215
|
+
}, "ids">>;
|
|
206
216
|
};
|
|
207
217
|
export declare function getCtx(): ContextMenuReturn;
|
|
208
218
|
export declare function updatePositioning(props: FloatingProps): void;
|
|
@@ -144,37 +144,53 @@ export declare function setCtx(props: CreateDateFieldProps): {
|
|
|
144
144
|
helpers: {
|
|
145
145
|
isDateUnavailable: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean | undefined>;
|
|
146
146
|
};
|
|
147
|
-
options: {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hideTimeZone:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
147
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
148
|
+
defaultValue?: import("@internationalized/date").DateValue | undefined;
|
|
149
|
+
onValueChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue | undefined> | undefined;
|
|
150
|
+
value: import("svelte/store").Writable<import("@internationalized/date").DateValue | undefined> | undefined;
|
|
151
|
+
defaultPlaceholder?: import("@internationalized/date").DateValue | undefined;
|
|
152
|
+
placeholder?: import("svelte/store").Writable<import("@internationalized/date").DateValue> | undefined;
|
|
153
|
+
onPlaceholderChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue> | undefined;
|
|
154
|
+
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
155
|
+
minValue: import("@internationalized/date").DateValue | undefined;
|
|
156
|
+
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
157
|
+
disabled: boolean;
|
|
158
|
+
readonly: boolean;
|
|
159
|
+
hourCycle: 12 | 24 | undefined;
|
|
160
|
+
locale: string;
|
|
161
|
+
granularity: import("@melt-ui/svelte").Granularity | undefined;
|
|
162
|
+
hideTimeZone: boolean;
|
|
163
|
+
name: string | undefined;
|
|
164
|
+
required: boolean;
|
|
165
|
+
ids?: Partial<{
|
|
166
|
+
label: string;
|
|
167
|
+
description: string;
|
|
168
|
+
month: string;
|
|
169
|
+
year: string;
|
|
170
|
+
day: string;
|
|
171
|
+
hour: string;
|
|
172
|
+
minute: string;
|
|
173
|
+
second: string;
|
|
174
|
+
dayPeriod: string;
|
|
175
|
+
timeZoneName: string;
|
|
176
|
+
field: string;
|
|
177
|
+
validation: string;
|
|
178
|
+
}> | undefined;
|
|
179
|
+
}, "value" | "ids" | "placeholder">>;
|
|
180
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
181
|
+
label: string;
|
|
182
|
+
description: string;
|
|
183
|
+
month: string;
|
|
184
|
+
year: string;
|
|
185
|
+
day: string;
|
|
186
|
+
hour: string;
|
|
187
|
+
minute: string;
|
|
188
|
+
second: string;
|
|
189
|
+
dayPeriod: string;
|
|
190
|
+
timeZoneName: string;
|
|
191
|
+
field: string;
|
|
192
|
+
validation: string;
|
|
193
|
+
}>;
|
|
178
194
|
};
|
|
179
195
|
export declare function getCtx(): {
|
|
180
196
|
elements: {
|
|
@@ -318,35 +334,51 @@ export declare function getCtx(): {
|
|
|
318
334
|
helpers: {
|
|
319
335
|
isDateUnavailable: import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean | undefined>;
|
|
320
336
|
};
|
|
321
|
-
options: {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
hideTimeZone:
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
337
|
+
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
338
|
+
defaultValue?: import("@internationalized/date").DateValue | undefined;
|
|
339
|
+
onValueChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue | undefined> | undefined;
|
|
340
|
+
value: import("svelte/store").Writable<import("@internationalized/date").DateValue | undefined> | undefined;
|
|
341
|
+
defaultPlaceholder?: import("@internationalized/date").DateValue | undefined;
|
|
342
|
+
placeholder?: import("svelte/store").Writable<import("@internationalized/date").DateValue> | undefined;
|
|
343
|
+
onPlaceholderChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue> | undefined;
|
|
344
|
+
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
345
|
+
minValue: import("@internationalized/date").DateValue | undefined;
|
|
346
|
+
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
347
|
+
disabled: boolean;
|
|
348
|
+
readonly: boolean;
|
|
349
|
+
hourCycle: 12 | 24 | undefined;
|
|
350
|
+
locale: string;
|
|
351
|
+
granularity: import("@melt-ui/svelte").Granularity | undefined;
|
|
352
|
+
hideTimeZone: boolean;
|
|
353
|
+
name: string | undefined;
|
|
354
|
+
required: boolean;
|
|
355
|
+
ids?: Partial<{
|
|
356
|
+
label: string;
|
|
357
|
+
description: string;
|
|
358
|
+
month: string;
|
|
359
|
+
year: string;
|
|
360
|
+
day: string;
|
|
361
|
+
hour: string;
|
|
362
|
+
minute: string;
|
|
363
|
+
second: string;
|
|
364
|
+
dayPeriod: string;
|
|
365
|
+
timeZoneName: string;
|
|
366
|
+
field: string;
|
|
367
|
+
validation: string;
|
|
368
|
+
}> | undefined;
|
|
369
|
+
}, "value" | "ids" | "placeholder">>;
|
|
370
|
+
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
371
|
+
label: string;
|
|
372
|
+
description: string;
|
|
373
|
+
month: string;
|
|
374
|
+
year: string;
|
|
375
|
+
day: string;
|
|
376
|
+
hour: string;
|
|
377
|
+
minute: string;
|
|
378
|
+
second: string;
|
|
379
|
+
dayPeriod: string;
|
|
380
|
+
timeZoneName: string;
|
|
381
|
+
field: string;
|
|
382
|
+
validation: string;
|
|
383
|
+
}>;
|
|
352
384
|
};
|