bits-ui 0.8.1 → 0.8.3
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/components/Accordion.svelte +4 -3
- package/dist/bits/accordion/components/Accordion.svelte.d.ts +3 -0
- package/dist/bits/alert-dialog/components/AlertDialog.svelte +3 -2
- package/dist/bits/alert-dialog/components/AlertDialog.svelte.d.ts +8 -1
- package/dist/bits/dialog/components/Dialog.svelte +3 -2
- package/dist/bits/dialog/components/Dialog.svelte.d.ts +8 -1
- package/dist/bits/link-preview/components/LinkPreview.svelte +3 -2
- package/dist/bits/link-preview/components/LinkPreview.svelte.d.ts +6 -1
- package/dist/bits/popover/components/Popover.svelte +3 -2
- package/dist/bits/popover/components/Popover.svelte.d.ts +6 -1
- package/dist/bits/select/components/Select.svelte +3 -2
- package/dist/bits/select/components/Select.svelte.d.ts +7 -1
- package/dist/bits/slider/components/Slider.svelte +4 -3
- package/dist/bits/slider/components/Slider.svelte.d.ts +3 -0
- package/dist/bits/tooltip/components/Tooltip.svelte +3 -2
- package/dist/bits/tooltip/components/Tooltip.svelte.d.ts +6 -1
- package/package.json +1 -1
|
@@ -8,7 +8,8 @@ export let asChild = false;
|
|
|
8
8
|
const {
|
|
9
9
|
elements: { root },
|
|
10
10
|
states: { value: localValue },
|
|
11
|
-
updateOption
|
|
11
|
+
updateOption,
|
|
12
|
+
ids
|
|
12
13
|
} = setCtx({
|
|
13
14
|
multiple,
|
|
14
15
|
disabled,
|
|
@@ -33,9 +34,9 @@ const attrs = getAttrs("root");
|
|
|
33
34
|
</script>
|
|
34
35
|
|
|
35
36
|
{#if asChild}
|
|
36
|
-
<slot {builder} {attrs} />
|
|
37
|
+
<slot {builder} {attrs} {ids} />
|
|
37
38
|
{:else}
|
|
38
39
|
<div {...builder} use:builder.action {...$$restProps} {...attrs}>
|
|
39
|
-
<slot {builder} {attrs} />
|
|
40
|
+
<slot {builder} {attrs} {ids} />
|
|
40
41
|
</div>
|
|
41
42
|
{/if}
|
|
@@ -14,7 +14,8 @@ const tOpen = writable(open);
|
|
|
14
14
|
let timeout = 0;
|
|
15
15
|
const {
|
|
16
16
|
states: { open: localOpen },
|
|
17
|
-
updateOption
|
|
17
|
+
updateOption,
|
|
18
|
+
ids
|
|
18
19
|
} = setCtx({
|
|
19
20
|
closeOnEscape,
|
|
20
21
|
preventScroll,
|
|
@@ -68,4 +69,4 @@ $:
|
|
|
68
69
|
updateOption("forceVisible", forceVisible);
|
|
69
70
|
</script>
|
|
70
71
|
|
|
71
|
-
<slot />
|
|
72
|
+
<slot {ids} />
|
|
@@ -15,7 +15,14 @@ declare const __propDef: {
|
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
16
16
|
};
|
|
17
17
|
slots: {
|
|
18
|
-
default: {
|
|
18
|
+
default: {
|
|
19
|
+
ids: {
|
|
20
|
+
content: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
trigger: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
19
26
|
};
|
|
20
27
|
};
|
|
21
28
|
export type AlertDialogProps = typeof __propDef.props;
|
|
@@ -16,7 +16,8 @@ const tOpen = writable(open);
|
|
|
16
16
|
let timeout = 0;
|
|
17
17
|
const {
|
|
18
18
|
states: { open: localOpen },
|
|
19
|
-
updateOption
|
|
19
|
+
updateOption,
|
|
20
|
+
ids
|
|
20
21
|
} = setCtx({
|
|
21
22
|
closeOnEscape,
|
|
22
23
|
preventScroll,
|
|
@@ -79,4 +80,4 @@ $:
|
|
|
79
80
|
updateOption("closeFocus", closeFocus);
|
|
80
81
|
</script>
|
|
81
82
|
|
|
82
|
-
<slot />
|
|
83
|
+
<slot {ids} />
|
|
@@ -15,7 +15,14 @@ declare const __propDef: {
|
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
16
16
|
};
|
|
17
17
|
slots: {
|
|
18
|
-
default: {
|
|
18
|
+
default: {
|
|
19
|
+
ids: {
|
|
20
|
+
content: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
trigger: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
19
26
|
};
|
|
20
27
|
};
|
|
21
28
|
export type DialogProps = typeof __propDef.props;
|
|
@@ -10,7 +10,8 @@ export let arrowSize = void 0;
|
|
|
10
10
|
export let portal = void 0;
|
|
11
11
|
const {
|
|
12
12
|
states: { open: localOpen },
|
|
13
|
-
updateOption
|
|
13
|
+
updateOption,
|
|
14
|
+
ids
|
|
14
15
|
} = setCtx({
|
|
15
16
|
defaultOpen: open,
|
|
16
17
|
positioning,
|
|
@@ -46,4 +47,4 @@ $:
|
|
|
46
47
|
updateOption("portal", portal);
|
|
47
48
|
</script>
|
|
48
49
|
|
|
49
|
-
<slot />
|
|
50
|
+
<slot {ids} />
|
|
@@ -12,7 +12,8 @@ export let openFocus = void 0;
|
|
|
12
12
|
export let closeFocus = void 0;
|
|
13
13
|
const {
|
|
14
14
|
updateOption,
|
|
15
|
-
states: { open: localOpen }
|
|
15
|
+
states: { open: localOpen },
|
|
16
|
+
ids
|
|
16
17
|
} = setCtx({
|
|
17
18
|
positioning,
|
|
18
19
|
arrowSize,
|
|
@@ -54,4 +55,4 @@ $:
|
|
|
54
55
|
updateOption("closeFocus", closeFocus);
|
|
55
56
|
</script>
|
|
56
57
|
|
|
57
|
-
<slot />
|
|
58
|
+
<slot {ids} />
|
|
@@ -17,7 +17,8 @@ export let onOpenChange = void 0;
|
|
|
17
17
|
export let forceVisible = true;
|
|
18
18
|
const {
|
|
19
19
|
states: { open: localOpen, selected: localSelected },
|
|
20
|
-
updateOption
|
|
20
|
+
updateOption,
|
|
21
|
+
ids
|
|
21
22
|
} = setCtx({
|
|
22
23
|
required,
|
|
23
24
|
disabled,
|
|
@@ -78,4 +79,4 @@ $:
|
|
|
78
79
|
updateOption("forceVisible", forceVisible);
|
|
79
80
|
</script>
|
|
80
81
|
|
|
81
|
-
<slot />
|
|
82
|
+
<slot {ids} />
|
|
@@ -11,7 +11,8 @@ export let asChild = false;
|
|
|
11
11
|
const {
|
|
12
12
|
elements: { root },
|
|
13
13
|
states: { value: localValue },
|
|
14
|
-
updateOption
|
|
14
|
+
updateOption,
|
|
15
|
+
ids
|
|
15
16
|
} = setCtx({
|
|
16
17
|
disabled,
|
|
17
18
|
min,
|
|
@@ -45,9 +46,9 @@ const attrs = getAttrs("root");
|
|
|
45
46
|
</script>
|
|
46
47
|
|
|
47
48
|
{#if asChild}
|
|
48
|
-
<slot {builder} {attrs} />
|
|
49
|
+
<slot {builder} {attrs} {ids} />
|
|
49
50
|
{:else}
|
|
50
51
|
<span {...builder} use:builder.action {...$$restProps} {...attrs}>
|
|
51
|
-
<slot {builder} {attrs} />
|
|
52
|
+
<slot {builder} {attrs} {ids} />
|
|
52
53
|
</span>
|
|
53
54
|
{/if}
|
|
@@ -13,7 +13,8 @@ export let disableHoverableContent = void 0;
|
|
|
13
13
|
export let group = void 0;
|
|
14
14
|
const {
|
|
15
15
|
states: { open: localOpen },
|
|
16
|
-
updateOption
|
|
16
|
+
updateOption,
|
|
17
|
+
ids
|
|
17
18
|
} = setCtx({
|
|
18
19
|
positioning,
|
|
19
20
|
arrowSize,
|
|
@@ -58,4 +59,4 @@ $:
|
|
|
58
59
|
updateOption("disableHoverableContent", disableHoverableContent);
|
|
59
60
|
</script>
|
|
60
61
|
|
|
61
|
-
<slot />
|
|
62
|
+
<slot {ids} />
|
|
@@ -18,7 +18,12 @@ declare const __propDef: {
|
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
19
19
|
};
|
|
20
20
|
slots: {
|
|
21
|
-
default: {
|
|
21
|
+
default: {
|
|
22
|
+
ids: {
|
|
23
|
+
readonly content: string;
|
|
24
|
+
readonly trigger: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
22
27
|
};
|
|
23
28
|
};
|
|
24
29
|
export type TooltipProps = typeof __propDef.props;
|