bits-ui 0.16.0 → 0.17.0
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/dist/bits/accordion/ctx.d.ts +40 -10
- package/dist/bits/alert-dialog/components/alert-dialog.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/ctx.d.ts +18 -10
- package/dist/bits/avatar/ctx.d.ts +7 -1
- package/dist/bits/calendar/ctx.d.ts +22 -17
- package/dist/bits/checkbox/ctx.d.ts +8 -2
- package/dist/bits/collapsible/ctx.d.ts +9 -3
- package/dist/bits/context-menu/ctx.d.ts +23 -7
- package/dist/bits/date-field/ctx.d.ts +23 -12
- package/dist/bits/date-picker/ctx.d.ts +172 -138
- package/dist/bits/date-range-field/ctx.d.ts +59 -44
- package/dist/bits/date-range-picker/ctx.d.ts +222 -180
- package/dist/bits/dialog/components/dialog.svelte.d.ts +1 -1
- package/dist/bits/dialog/ctx.d.ts +9 -5
- package/dist/bits/link-preview/ctx.d.ts +7 -3
- package/dist/bits/menu/_types.d.ts +1 -1
- package/dist/bits/menu/components/menu-sub-trigger.svelte +7 -2
- package/dist/bits/menu/ctx.d.ts +46 -10
- package/dist/bits/menubar/ctx.d.ts +48 -20
- package/dist/bits/pagination/ctx.d.ts +9 -1
- package/dist/bits/pin-input/ctx.d.ts +9 -3
- package/dist/bits/popover/ctx.d.ts +7 -3
- package/dist/bits/progress/ctx.d.ts +5 -1
- package/dist/bits/radio-group/ctx.d.ts +24 -12
- package/dist/bits/range-calendar/ctx.d.ts +27 -22
- package/dist/bits/select/components/select-trigger.svelte.d.ts +1 -0
- package/dist/bits/select/ctx.d.ts +22 -13
- package/dist/bits/separator/ctx.d.ts +1 -1
- package/dist/bits/slider/_types.d.ts +19 -3
- package/dist/bits/slider/components/slider-thumb.svelte +3 -5
- package/dist/bits/slider/components/slider-tick.svelte +3 -5
- package/dist/bits/slider/components/slider.svelte +4 -4
- package/dist/bits/slider/components/slider.svelte.d.ts +40 -1
- package/dist/bits/slider/ctx.d.ts +11 -16
- package/dist/bits/switch/ctx.d.ts +9 -3
- package/dist/bits/tabs/components/tabs-trigger.svelte.d.ts +1 -1
- package/dist/bits/tabs/ctx.d.ts +10 -4
- package/dist/bits/toggle/ctx.d.ts +5 -1
- package/dist/bits/toggle-group/ctx.d.ts +6 -2
- package/dist/bits/toolbar/ctx.d.ts +16 -8
- package/dist/bits/tooltip/ctx.d.ts +9 -3
- package/package.json +7 -6
|
@@ -15,6 +15,8 @@ export declare function setCtx<Multiple extends boolean>(props: CreateAccordionP
|
|
|
15
15
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
16
16
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
17
17
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
18
|
+
get: () => string | string[] | undefined;
|
|
19
|
+
destroy?: (() => void) | undefined;
|
|
18
20
|
}, import("svelte/action").Action<any, any, Record<never, any>>, ($value: string | string[] | undefined) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
19
21
|
'data-state': string;
|
|
20
22
|
'data-disabled': boolean | undefined;
|
|
@@ -23,7 +25,9 @@ export declare function setCtx<Multiple extends boolean>(props: CreateAccordionP
|
|
|
23
25
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
24
26
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
25
27
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
26
|
-
|
|
28
|
+
get: () => string | string[] | undefined;
|
|
29
|
+
destroy?: (() => void) | undefined;
|
|
30
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<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) => {
|
|
27
31
|
disabled: boolean | undefined;
|
|
28
32
|
'aria-expanded': boolean;
|
|
29
33
|
'aria-disabled': boolean;
|
|
@@ -35,7 +39,9 @@ export declare function setCtx<Multiple extends boolean>(props: CreateAccordionP
|
|
|
35
39
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
36
40
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
37
41
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
38
|
-
|
|
42
|
+
get: () => string | string[] | undefined;
|
|
43
|
+
destroy?: (() => void) | undefined;
|
|
44
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => void, ([$value, $disabled, $forceVisible]: [string | string[] | undefined, boolean, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
39
45
|
'data-state': string;
|
|
40
46
|
'data-disabled': boolean | undefined;
|
|
41
47
|
'data-value': string;
|
|
@@ -77,6 +83,8 @@ export declare function getCtx(): {
|
|
|
77
83
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
78
84
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
79
85
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
86
|
+
get: () => string | string[] | undefined;
|
|
87
|
+
destroy?: (() => void) | undefined;
|
|
80
88
|
}, import("svelte/action").Action<any, any, Record<never, any>>, ($value: string | string[] | undefined) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
81
89
|
'data-state': string;
|
|
82
90
|
'data-disabled': boolean | undefined;
|
|
@@ -85,7 +93,9 @@ export declare function getCtx(): {
|
|
|
85
93
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
86
94
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
87
95
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
88
|
-
|
|
96
|
+
get: () => string | string[] | undefined;
|
|
97
|
+
destroy?: (() => void) | undefined;
|
|
98
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<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) => {
|
|
89
99
|
disabled: boolean | undefined;
|
|
90
100
|
'aria-expanded': boolean;
|
|
91
101
|
'aria-disabled': boolean;
|
|
@@ -97,7 +107,9 @@ export declare function getCtx(): {
|
|
|
97
107
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
98
108
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
99
109
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
100
|
-
|
|
110
|
+
get: () => string | string[] | undefined;
|
|
111
|
+
destroy?: (() => void) | undefined;
|
|
112
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => void, ([$value, $disabled, $forceVisible]: [string | string[] | undefined, boolean, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
101
113
|
'data-state': string;
|
|
102
114
|
'data-disabled': boolean | undefined;
|
|
103
115
|
'data-value': string;
|
|
@@ -140,6 +152,8 @@ export declare function setItem(props: ItemProps): {
|
|
|
140
152
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
141
153
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
142
154
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
155
|
+
get: () => string | string[] | undefined;
|
|
156
|
+
destroy?: (() => void) | undefined;
|
|
143
157
|
}, import("svelte/action").Action<any, any, Record<never, any>>, ($value: string | string[] | undefined) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
144
158
|
'data-state': string;
|
|
145
159
|
'data-disabled': boolean | undefined;
|
|
@@ -148,7 +162,9 @@ export declare function setItem(props: ItemProps): {
|
|
|
148
162
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
149
163
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
150
164
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
151
|
-
|
|
165
|
+
get: () => string | string[] | undefined;
|
|
166
|
+
destroy?: (() => void) | undefined;
|
|
167
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<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) => {
|
|
152
168
|
disabled: boolean | undefined;
|
|
153
169
|
'aria-expanded': boolean;
|
|
154
170
|
'aria-disabled': boolean;
|
|
@@ -160,7 +176,9 @@ export declare function setItem(props: ItemProps): {
|
|
|
160
176
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
161
177
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
162
178
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
163
|
-
|
|
179
|
+
get: () => string | string[] | undefined;
|
|
180
|
+
destroy?: (() => void) | undefined;
|
|
181
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => void, ([$value, $disabled, $forceVisible]: [string | string[] | undefined, boolean, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
164
182
|
'data-state': string;
|
|
165
183
|
'data-disabled': boolean | undefined;
|
|
166
184
|
'data-value': string;
|
|
@@ -204,6 +222,8 @@ export declare function getContent(): {
|
|
|
204
222
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
205
223
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
206
224
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
225
|
+
get: () => string | string[] | undefined;
|
|
226
|
+
destroy?: (() => void) | undefined;
|
|
207
227
|
}, import("svelte/action").Action<any, any, Record<never, any>>, ($value: string | string[] | undefined) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
208
228
|
'data-state': string;
|
|
209
229
|
'data-disabled': boolean | undefined;
|
|
@@ -212,7 +232,9 @@ export declare function getContent(): {
|
|
|
212
232
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
213
233
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
214
234
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
215
|
-
|
|
235
|
+
get: () => string | string[] | undefined;
|
|
236
|
+
destroy?: (() => void) | undefined;
|
|
237
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<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) => {
|
|
216
238
|
disabled: boolean | undefined;
|
|
217
239
|
'aria-expanded': boolean;
|
|
218
240
|
'aria-disabled': boolean;
|
|
@@ -224,7 +246,9 @@ export declare function getContent(): {
|
|
|
224
246
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
225
247
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
226
248
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
227
|
-
|
|
249
|
+
get: () => string | string[] | undefined;
|
|
250
|
+
destroy?: (() => void) | undefined;
|
|
251
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => void, ([$value, $disabled, $forceVisible]: [string | string[] | undefined, boolean, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
228
252
|
'data-state': string;
|
|
229
253
|
'data-disabled': boolean | undefined;
|
|
230
254
|
'data-value': string;
|
|
@@ -270,6 +294,8 @@ export declare function getTrigger(): {
|
|
|
270
294
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
271
295
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
272
296
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
297
|
+
get: () => string | string[] | undefined;
|
|
298
|
+
destroy?: (() => void) | undefined;
|
|
273
299
|
}, import("svelte/action").Action<any, any, Record<never, any>>, ($value: string | string[] | undefined) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
274
300
|
'data-state': string;
|
|
275
301
|
'data-disabled': boolean | undefined;
|
|
@@ -278,7 +304,9 @@ export declare function getTrigger(): {
|
|
|
278
304
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
279
305
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
280
306
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
281
|
-
|
|
307
|
+
get: () => string | string[] | undefined;
|
|
308
|
+
destroy?: (() => void) | undefined;
|
|
309
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<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) => {
|
|
282
310
|
disabled: boolean | undefined;
|
|
283
311
|
'aria-expanded': boolean;
|
|
284
312
|
'aria-disabled': boolean;
|
|
@@ -290,7 +318,9 @@ export declare function getTrigger(): {
|
|
|
290
318
|
update: (updater: import("svelte/store").Updater<string | string[] | undefined>, sideEffect?: ((newValue: string | string[] | undefined) => void) | undefined) => void;
|
|
291
319
|
set: (this: void, value: string | string[] | undefined) => void;
|
|
292
320
|
subscribe(this: void, run: import("svelte/store").Subscriber<string | string[] | undefined>, invalidate?: import("svelte/store").Invalidator<string | string[] | undefined> | undefined): import("svelte/store").Unsubscriber;
|
|
293
|
-
|
|
321
|
+
get: () => string | string[] | undefined;
|
|
322
|
+
destroy?: (() => void) | undefined;
|
|
323
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => void, ([$value, $disabled, $forceVisible]: [string | string[] | undefined, boolean, boolean]) => (props: import("@melt-ui/svelte/index.js").AccordionItemProps) => {
|
|
294
324
|
'data-state': string;
|
|
295
325
|
'data-disabled': boolean | undefined;
|
|
296
326
|
'data-value': string;
|
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
preventScroll?: boolean | undefined;
|
|
5
5
|
closeOnEscape?: boolean | undefined;
|
|
6
6
|
closeOnOutsideClick?: boolean | undefined;
|
|
7
|
-
onOutsideClick?: ((event: PointerEvent) => void) | undefined;
|
|
7
|
+
onOutsideClick?: ((event: MouseEvent | TouchEvent | PointerEvent) => void) | undefined;
|
|
8
8
|
portal?: string | HTMLElement | null | undefined;
|
|
9
9
|
openFocus?: import("@melt-ui/svelte/index.js").FocusProp | undefined;
|
|
10
10
|
closeFocus?: import("@melt-ui/svelte/index.js").FocusProp | undefined;
|
|
@@ -10,7 +10,7 @@ export declare function setCtx(props: SetProps): {
|
|
|
10
10
|
content: string;
|
|
11
11
|
}>;
|
|
12
12
|
elements: {
|
|
13
|
-
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("svelte/store").Writable<string
|
|
13
|
+
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], (node: HTMLElement) => {
|
|
14
14
|
destroy: () => void;
|
|
15
15
|
}, ([$isVisible, $contentId, $descriptionId, $titleId]: [boolean, string, string, string]) => {
|
|
16
16
|
id: string;
|
|
@@ -27,15 +27,17 @@ export declare function setCtx(props: SetProps): {
|
|
|
27
27
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
28
28
|
set: (this: void, value: boolean) => void;
|
|
29
29
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
30
|
+
get: () => boolean;
|
|
31
|
+
destroy?: (() => void) | undefined;
|
|
30
32
|
}], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$open]: [boolean]) => {
|
|
31
33
|
readonly 'aria-haspopup': "dialog";
|
|
32
34
|
readonly 'aria-expanded': boolean;
|
|
33
35
|
readonly type: "button";
|
|
34
36
|
}, string>;
|
|
35
|
-
title: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<string
|
|
37
|
+
title: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$titleId]: [string]) => {
|
|
36
38
|
id: string;
|
|
37
39
|
}, string>;
|
|
38
|
-
description: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<string
|
|
40
|
+
description: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$descriptionId]: [string]) => {
|
|
39
41
|
id: string;
|
|
40
42
|
}, string>;
|
|
41
43
|
overlay: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>], <Node_1 extends unknown>(node: HTMLElement) => {
|
|
@@ -50,7 +52,7 @@ export declare function setCtx(props: SetProps): {
|
|
|
50
52
|
close: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Stores | undefined, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, () => {
|
|
51
53
|
readonly type: "button";
|
|
52
54
|
}, string>;
|
|
53
|
-
portalled: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Writable<string | HTMLElement | null
|
|
55
|
+
portalled: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | HTMLElement | null>>, <Node_2 extends unknown>(node: HTMLElement) => {
|
|
54
56
|
destroy(): void;
|
|
55
57
|
}, ($portal: string | HTMLElement | null) => {
|
|
56
58
|
'data-portal': string | undefined;
|
|
@@ -61,13 +63,15 @@ export declare function setCtx(props: SetProps): {
|
|
|
61
63
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
62
64
|
set: (this: void, value: boolean) => void;
|
|
63
65
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
66
|
+
get: () => boolean;
|
|
67
|
+
destroy?: (() => void) | undefined;
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
67
71
|
preventScroll: boolean;
|
|
68
72
|
closeOnEscape: boolean;
|
|
69
73
|
closeOnOutsideClick: boolean;
|
|
70
|
-
onOutsideClick: ((event: PointerEvent) => void) | undefined;
|
|
74
|
+
onOutsideClick: ((event: MouseEvent | TouchEvent | PointerEvent) => void) | undefined;
|
|
71
75
|
role: "dialog" | "alertdialog";
|
|
72
76
|
defaultOpen: boolean;
|
|
73
77
|
open?: import("svelte/store").Writable<boolean> | undefined;
|
|
@@ -92,7 +96,7 @@ export declare function getCtx(): {
|
|
|
92
96
|
content: string;
|
|
93
97
|
}>;
|
|
94
98
|
elements: {
|
|
95
|
-
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("svelte/store").Writable<string
|
|
99
|
+
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], (node: HTMLElement) => {
|
|
96
100
|
destroy: () => void;
|
|
97
101
|
}, ([$isVisible, $contentId, $descriptionId, $titleId]: [boolean, string, string, string]) => {
|
|
98
102
|
id: string;
|
|
@@ -109,15 +113,17 @@ export declare function getCtx(): {
|
|
|
109
113
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
110
114
|
set: (this: void, value: boolean) => void;
|
|
111
115
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
116
|
+
get: () => boolean;
|
|
117
|
+
destroy?: (() => void) | undefined;
|
|
112
118
|
}], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$open]: [boolean]) => {
|
|
113
119
|
readonly 'aria-haspopup': "dialog";
|
|
114
120
|
readonly 'aria-expanded': boolean;
|
|
115
121
|
readonly type: "button";
|
|
116
122
|
}, string>;
|
|
117
|
-
title: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<string
|
|
123
|
+
title: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$titleId]: [string]) => {
|
|
118
124
|
id: string;
|
|
119
125
|
}, string>;
|
|
120
|
-
description: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<string
|
|
126
|
+
description: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$descriptionId]: [string]) => {
|
|
121
127
|
id: string;
|
|
122
128
|
}, string>;
|
|
123
129
|
overlay: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>], <Node_1 extends unknown>(node: HTMLElement) => {
|
|
@@ -132,7 +138,7 @@ export declare function getCtx(): {
|
|
|
132
138
|
close: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Stores | undefined, (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, () => {
|
|
133
139
|
readonly type: "button";
|
|
134
140
|
}, string>;
|
|
135
|
-
portalled: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("svelte/store").Writable<string | HTMLElement | null
|
|
141
|
+
portalled: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | HTMLElement | null>>, <Node_2 extends unknown>(node: HTMLElement) => {
|
|
136
142
|
destroy(): void;
|
|
137
143
|
}, ($portal: string | HTMLElement | null) => {
|
|
138
144
|
'data-portal': string | undefined;
|
|
@@ -143,13 +149,15 @@ export declare function getCtx(): {
|
|
|
143
149
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
144
150
|
set: (this: void, value: boolean) => void;
|
|
145
151
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
152
|
+
get: () => boolean;
|
|
153
|
+
destroy?: (() => void) | undefined;
|
|
146
154
|
};
|
|
147
155
|
};
|
|
148
156
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
149
157
|
preventScroll: boolean;
|
|
150
158
|
closeOnEscape: boolean;
|
|
151
159
|
closeOnOutsideClick: boolean;
|
|
152
|
-
onOutsideClick: ((event: PointerEvent) => void) | undefined;
|
|
160
|
+
onOutsideClick: ((event: MouseEvent | TouchEvent | PointerEvent) => void) | undefined;
|
|
153
161
|
role: "dialog" | "alertdialog";
|
|
154
162
|
defaultOpen: boolean;
|
|
155
163
|
open?: import("svelte/store").Writable<boolean> | undefined;
|
|
@@ -9,10 +9,12 @@ export declare function setCtx(props: CreateAvatarProps): {
|
|
|
9
9
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
10
10
|
getAttrs: (part: "image" | "root" | "fallback") => Record<string, string>;
|
|
11
11
|
elements: {
|
|
12
|
-
image: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<string
|
|
12
|
+
image: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, {
|
|
13
13
|
update: (updater: import("svelte/store").Updater<"loading" | "loaded" | "error">, sideEffect?: ((newValue: "loading" | "loaded" | "error") => void) | undefined) => void;
|
|
14
14
|
set: (this: void, value: "loading" | "loaded" | "error") => void;
|
|
15
15
|
subscribe(this: void, run: import("svelte/store").Subscriber<"loading" | "loaded" | "error">, invalidate?: import("svelte/store").Invalidator<"loading" | "loaded" | "error"> | undefined): import("svelte/store").Unsubscriber;
|
|
16
|
+
get: () => "loading" | "loaded" | "error";
|
|
17
|
+
destroy?: (() => void) | undefined;
|
|
16
18
|
}], import("svelte/action").Action<any, any, Record<never, any>>, ([$src, $loadingStatus]: [string, "loading" | "loaded" | "error"]) => {
|
|
17
19
|
src: string;
|
|
18
20
|
style: string;
|
|
@@ -21,6 +23,8 @@ export declare function setCtx(props: CreateAvatarProps): {
|
|
|
21
23
|
update: (updater: import("svelte/store").Updater<"loading" | "loaded" | "error">, sideEffect?: ((newValue: "loading" | "loaded" | "error") => void) | undefined) => void;
|
|
22
24
|
set: (this: void, value: "loading" | "loaded" | "error") => void;
|
|
23
25
|
subscribe(this: void, run: import("svelte/store").Subscriber<"loading" | "loaded" | "error">, invalidate?: import("svelte/store").Invalidator<"loading" | "loaded" | "error"> | undefined): import("svelte/store").Unsubscriber;
|
|
26
|
+
get: () => "loading" | "loaded" | "error";
|
|
27
|
+
destroy?: (() => void) | undefined;
|
|
24
28
|
}], import("svelte/action").Action<any, any, Record<never, any>>, ([$loadingStatus]: ["loading" | "loaded" | "error"]) => {
|
|
25
29
|
style: string | undefined;
|
|
26
30
|
hidden: boolean | undefined;
|
|
@@ -31,6 +35,8 @@ export declare function setCtx(props: CreateAvatarProps): {
|
|
|
31
35
|
update: (updater: import("svelte/store").Updater<"loading" | "loaded" | "error">, sideEffect?: ((newValue: "loading" | "loaded" | "error") => void) | undefined) => void;
|
|
32
36
|
set: (this: void, value: "loading" | "loaded" | "error") => void;
|
|
33
37
|
subscribe(this: void, run: import("svelte/store").Subscriber<"loading" | "loaded" | "error">, invalidate?: import("svelte/store").Invalidator<"loading" | "loaded" | "error"> | undefined): import("svelte/store").Unsubscriber;
|
|
38
|
+
get: () => "loading" | "loaded" | "error";
|
|
39
|
+
destroy?: (() => void) | undefined;
|
|
34
40
|
};
|
|
35
41
|
};
|
|
36
42
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|
|
@@ -9,7 +9,7 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
9
9
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
10
10
|
getCalendarAttrs: (part: "day" | "header" | "root" | "cell" | "grid" | "heading" | "prev-button" | "next-button" | "grid-head" | "head-cell" | "grid-body" | "grid-row") => Record<string, string>;
|
|
11
11
|
elements: {
|
|
12
|
-
calendar: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<string
|
|
12
|
+
calendar: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Readable<string>>, import("svelte/store").Readable<boolean>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown">, ([$fullCalendarLabel, $isInvalid, $disabled, $readonly, $calendarId]: [string, boolean, boolean, boolean, string]) => {
|
|
13
13
|
id: string;
|
|
14
14
|
role: string;
|
|
15
15
|
'aria-label': string;
|
|
@@ -17,11 +17,11 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
17
17
|
'data-disabled': string | undefined;
|
|
18
18
|
'data-readonly': string | undefined;
|
|
19
19
|
}, string>;
|
|
20
|
-
heading: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<boolean
|
|
20
|
+
heading: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$disabled]: [boolean]) => {
|
|
21
21
|
'aria-hidden': boolean;
|
|
22
22
|
'data-disabled': string | undefined;
|
|
23
23
|
}, string>;
|
|
24
|
-
grid: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Writable<boolean
|
|
24
|
+
grid: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$readonly, $disabled]: [boolean, boolean]) => {
|
|
25
25
|
tabindex: number;
|
|
26
26
|
role: string;
|
|
27
27
|
'aria-readonly': "true" | undefined;
|
|
@@ -29,7 +29,8 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
29
29
|
'data-readonly': string | undefined;
|
|
30
30
|
'data-disabled': string | undefined;
|
|
31
31
|
}, string>;
|
|
32
|
-
cell: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>, import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean
|
|
32
|
+
cell: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<import("@melt-ui/svelte").Matcher | undefined>>, import("svelte/store").Readable<(date: import("@internationalized/date").DateValue) => boolean>, {
|
|
33
|
+
get: () => import("@internationalized/date").DateValue;
|
|
33
34
|
set: (this: void, value: import("@internationalized/date").DateValue) => void;
|
|
34
35
|
update: (this: void, updater: import("svelte/store").Updater<import("@internationalized/date").DateValue>) => void;
|
|
35
36
|
subscribe: (this: void, run: import("svelte/store").Subscriber<import("@internationalized/date").DateValue>, invalidate?: import("svelte/store").Invalidator<import("@internationalized/date").DateValue> | undefined) => import("svelte/store").Unsubscriber;
|
|
@@ -41,6 +42,7 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
41
42
|
set: (this: void, value: import("@internationalized/date").DateValue) => void;
|
|
42
43
|
subscribe: (this: void, run: import("svelte/store").Subscriber<import("@internationalized/date").DateValue>, invalidate?: import("svelte/store").Invalidator<import("@internationalized/date").DateValue> | undefined) => import("svelte/store").Unsubscriber;
|
|
43
44
|
update: (this: void, updater: import("svelte/store").Updater<import("@internationalized/date").DateValue>) => void;
|
|
45
|
+
get: () => import("@internationalized/date").DateValue;
|
|
44
46
|
};
|
|
45
47
|
nextPage: (amount: number) => void;
|
|
46
48
|
prevPage: (amount: number) => void;
|
|
@@ -59,14 +61,14 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
59
61
|
readonly 'data-focused': "" | undefined;
|
|
60
62
|
readonly tabindex: 0 | -1 | undefined;
|
|
61
63
|
}, string>;
|
|
62
|
-
nextButton: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean
|
|
64
|
+
nextButton: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Readable<boolean>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"click">, ([$isNextButtonDisabled]: [boolean]) => {
|
|
63
65
|
role: string;
|
|
64
66
|
'aria-label': string;
|
|
65
67
|
'aria-disabled': "true" | undefined;
|
|
66
68
|
'data-disabled': string | undefined;
|
|
67
69
|
disabled: boolean | undefined;
|
|
68
70
|
}, string>;
|
|
69
|
-
prevButton: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean
|
|
71
|
+
prevButton: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Readable<boolean>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"click">, ([$isPrevButtonDisabled]: [boolean]) => {
|
|
70
72
|
role: string;
|
|
71
73
|
'aria-label': string;
|
|
72
74
|
'aria-disabled': "true" | undefined;
|
|
@@ -79,15 +81,18 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
79
81
|
set: (this: void, value: import("@internationalized/date").DateValue) => void;
|
|
80
82
|
subscribe: (this: void, run: import("svelte/store").Subscriber<import("@internationalized/date").DateValue>, invalidate?: import("svelte/store").Invalidator<import("@internationalized/date").DateValue> | undefined) => import("svelte/store").Unsubscriber;
|
|
81
83
|
update: (this: void, updater: import("svelte/store").Updater<import("@internationalized/date").DateValue>) => void;
|
|
84
|
+
get: () => import("@internationalized/date").DateValue;
|
|
82
85
|
};
|
|
83
|
-
months: import("svelte/store").Writable<import("@melt-ui/svelte").Month<import("@internationalized/date").DateValue>[]
|
|
86
|
+
months: import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<import("@melt-ui/svelte").Month<import("@internationalized/date").DateValue>[]>>;
|
|
84
87
|
value: {
|
|
85
88
|
update: (updater: import("svelte/store").Updater<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>, sideEffect?: ((newValue: 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) => void) | undefined) => void;
|
|
86
89
|
set: (this: void, value: 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) => void;
|
|
87
90
|
subscribe(this: void, run: import("svelte/store").Subscriber<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>, invalidate?: import("svelte/store").Invalidator<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): import("svelte/store").Unsubscriber;
|
|
91
|
+
get: () => 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;
|
|
92
|
+
destroy?: (() => void) | undefined;
|
|
88
93
|
};
|
|
89
94
|
weekdays: import("svelte/store").Readable<string[]>;
|
|
90
|
-
headingValue: import("svelte/store").Readable<string
|
|
95
|
+
headingValue: import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Readable<string>>;
|
|
91
96
|
};
|
|
92
97
|
helpers: {
|
|
93
98
|
nextPage: () => void;
|
|
@@ -105,21 +110,21 @@ export declare function setCtx<Multiple extends boolean>(props: CreateCalendarPr
|
|
|
105
110
|
disabled: boolean;
|
|
106
111
|
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;
|
|
107
112
|
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;
|
|
108
|
-
numberOfMonths: number;
|
|
109
|
-
preventDeselect: boolean;
|
|
110
|
-
minValue: import("@internationalized/date").DateValue | undefined;
|
|
111
|
-
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
112
113
|
defaultPlaceholder?: import("@internationalized/date").DateValue | undefined;
|
|
113
114
|
onPlaceholderChange?: import("@melt-ui/svelte/internal/helpers").ChangeFn<import("@internationalized/date").DateValue> | undefined;
|
|
114
|
-
|
|
115
|
+
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
116
|
+
minValue: import("@internationalized/date").DateValue | undefined;
|
|
117
|
+
maxValue: import("@internationalized/date").DateValue | undefined;
|
|
118
|
+
readonly: boolean;
|
|
119
|
+
locale: string;
|
|
115
120
|
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
121
|
+
fixedWeeks: boolean;
|
|
122
|
+
numberOfMonths: number;
|
|
123
|
+
preventDeselect: boolean;
|
|
124
|
+
pagedNavigation: boolean;
|
|
116
125
|
weekdayFormat: "narrow" | "short" | "long";
|
|
117
126
|
isDateDisabled: import("@melt-ui/svelte").Matcher | undefined;
|
|
118
|
-
isDateUnavailable: import("@melt-ui/svelte").Matcher | undefined;
|
|
119
|
-
fixedWeeks: boolean;
|
|
120
127
|
calendarLabel: string;
|
|
121
|
-
locale: string;
|
|
122
|
-
readonly: boolean;
|
|
123
128
|
}>;
|
|
124
129
|
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
125
130
|
calendar: string;
|
|
@@ -13,7 +13,9 @@ export declare function setCtx(props: CreateCheckboxProps): {
|
|
|
13
13
|
update: (updater: import("svelte/store").Updater<boolean | "indeterminate">, sideEffect?: ((newValue: boolean | "indeterminate") => void) | undefined) => void;
|
|
14
14
|
set: (this: void, value: boolean | "indeterminate") => void;
|
|
15
15
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean | "indeterminate">, invalidate?: import("svelte/store").Invalidator<boolean | "indeterminate"> | undefined): import("svelte/store").Unsubscriber;
|
|
16
|
-
|
|
16
|
+
get: () => boolean | "indeterminate";
|
|
17
|
+
destroy?: (() => void) | undefined;
|
|
18
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click">, ([$checked, $disabled, $required]: [boolean | "indeterminate", boolean, boolean]) => {
|
|
17
19
|
readonly 'data-disabled': true | undefined;
|
|
18
20
|
readonly disabled: true | undefined;
|
|
19
21
|
readonly 'data-state': "checked" | "unchecked" | "indeterminate";
|
|
@@ -26,7 +28,9 @@ export declare function setCtx(props: CreateCheckboxProps): {
|
|
|
26
28
|
update: (updater: import("svelte/store").Updater<boolean | "indeterminate">, sideEffect?: ((newValue: boolean | "indeterminate") => void) | undefined) => void;
|
|
27
29
|
set: (this: void, value: boolean | "indeterminate") => void;
|
|
28
30
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean | "indeterminate">, invalidate?: import("svelte/store").Invalidator<boolean | "indeterminate"> | undefined): import("svelte/store").Unsubscriber;
|
|
29
|
-
|
|
31
|
+
get: () => boolean | "indeterminate";
|
|
32
|
+
destroy?: (() => void) | undefined;
|
|
33
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | undefined>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$checked, $name, $value, $required, $disabled]: [boolean | "indeterminate", string | undefined, string, boolean, boolean]) => {
|
|
30
34
|
readonly type: "checkbox";
|
|
31
35
|
readonly 'aria-hidden': true;
|
|
32
36
|
readonly hidden: true;
|
|
@@ -44,6 +48,8 @@ export declare function setCtx(props: CreateCheckboxProps): {
|
|
|
44
48
|
update: (updater: import("svelte/store").Updater<boolean | "indeterminate">, sideEffect?: ((newValue: boolean | "indeterminate") => void) | undefined) => void;
|
|
45
49
|
set: (this: void, value: boolean | "indeterminate") => void;
|
|
46
50
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean | "indeterminate">, invalidate?: import("svelte/store").Invalidator<boolean | "indeterminate"> | undefined): import("svelte/store").Unsubscriber;
|
|
51
|
+
get: () => boolean | "indeterminate";
|
|
52
|
+
destroy?: (() => void) | undefined;
|
|
47
53
|
};
|
|
48
54
|
};
|
|
49
55
|
helpers: {
|
|
@@ -13,7 +13,9 @@ export declare function setCtx(props: CreateCollapsibleProps): {
|
|
|
13
13
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
14
14
|
set: (this: void, value: boolean) => void;
|
|
15
15
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
16
|
-
|
|
16
|
+
get: () => boolean;
|
|
17
|
+
destroy?: (() => void) | undefined;
|
|
18
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$open, $disabled]: [boolean, boolean]) => {
|
|
17
19
|
'data-state': string;
|
|
18
20
|
'data-disabled': boolean | undefined;
|
|
19
21
|
}, string>;
|
|
@@ -21,12 +23,14 @@ export declare function setCtx(props: CreateCollapsibleProps): {
|
|
|
21
23
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
22
24
|
set: (this: void, value: boolean) => void;
|
|
23
25
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
24
|
-
|
|
26
|
+
get: () => boolean;
|
|
27
|
+
destroy?: (() => void) | undefined;
|
|
28
|
+
}, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"click">, ([$open, $disabled]: [boolean, boolean]) => {
|
|
25
29
|
readonly 'data-state': "open" | "closed";
|
|
26
30
|
readonly 'data-disabled': true | undefined;
|
|
27
31
|
readonly disabled: true | undefined;
|
|
28
32
|
}, string>;
|
|
29
|
-
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("svelte/store").Writable<boolean
|
|
33
|
+
content: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("svelte/store").Readable<boolean>, import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<boolean>>], import("svelte/action").Action<any, any, Record<never, any>>, ([$isVisible, $disabled]: [boolean, boolean]) => {
|
|
30
34
|
'data-state': string;
|
|
31
35
|
'data-disabled': boolean | undefined;
|
|
32
36
|
hidden: boolean | undefined;
|
|
@@ -38,6 +42,8 @@ export declare function setCtx(props: CreateCollapsibleProps): {
|
|
|
38
42
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
39
43
|
set: (this: void, value: boolean) => void;
|
|
40
44
|
subscribe(this: void, run: import("svelte/store").Subscriber<boolean>, invalidate?: import("svelte/store").Invalidator<boolean> | undefined): import("svelte/store").Unsubscriber;
|
|
45
|
+
get: () => boolean;
|
|
46
|
+
destroy?: (() => void) | undefined;
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
49
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<Omit<{
|