bits-ui 0.21.6 → 0.21.8
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/button/components/button.svelte +2 -2
- package/dist/bits/combobox/components/combobox-content.svelte +1 -1
- package/dist/bits/combobox/components/combobox-item.svelte +1 -2
- package/dist/bits/combobox/types.d.ts +2 -2
- package/dist/bits/dialog/components/dialog-overlay.svelte +5 -5
- package/dist/bits/floating/_types.d.ts +1 -1
- package/dist/bits/link-preview/components/link-preview-trigger.svelte +3 -3
- package/dist/bits/select/components/select-content.svelte +1 -1
- package/dist/bits/select/components/select-item.svelte +1 -1
- package/dist/bits/toolbar/components/toolbar-link.svelte +4 -10
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ const attrs = {
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
{#if builders && builders.length}
|
|
12
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
12
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
13
13
|
<svelte:element
|
|
14
14
|
this={href ? "a" : "button"}
|
|
15
15
|
bind:this={el}
|
|
@@ -30,7 +30,7 @@ const attrs = {
|
|
|
30
30
|
<slot />
|
|
31
31
|
</svelte:element>
|
|
32
32
|
{:else}
|
|
33
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
33
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
34
34
|
<svelte:element
|
|
35
35
|
this={href ? "a" : "button"}
|
|
36
36
|
bind:this={el}
|
|
@@ -50,7 +50,7 @@ $:
|
|
|
50
50
|
});
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
53
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
54
54
|
{#if asChild && $open}
|
|
55
55
|
<slot {builder} />
|
|
56
56
|
{:else if transition && $open}
|
|
@@ -24,8 +24,7 @@ $:
|
|
|
24
24
|
isSelected = $isSelectedStore(value);
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
|
-
<!-- svelte-ignore a11y-no-static-element-interactions-->
|
|
28
|
-
|
|
27
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
29
28
|
{#if asChild}
|
|
30
29
|
<slot {builder} {isSelected} />
|
|
31
30
|
{:else}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventHandler, HTMLInputAttributes } from "svelte/elements";
|
|
1
|
+
import type { EventHandler, HTMLInputAttributes, HTMLLabelAttributes } from "svelte/elements";
|
|
2
2
|
import type { ComboboxOptionProps as MeltComboboxOptionProps, CreateComboboxProps as MeltComboboxProps } from "@melt-ui/svelte";
|
|
3
3
|
import type { DOMElement, Expand, HTMLDivAttributes, OmitFloating, OnChangeFn, Transition } from "../../internal/index.js";
|
|
4
4
|
import type { CustomEventHandler, Selected } from "../../index.js";
|
|
@@ -65,7 +65,7 @@ export type ComboboxIndicatorPropsWithoutHTML = DOMElement;
|
|
|
65
65
|
export type ComboboxProps<T, Multiple extends boolean = false> = ComboboxPropsWithoutHTML<T, Multiple>;
|
|
66
66
|
export type ComboboxContentProps<T extends Transition = Transition, In extends Transition = Transition, Out extends Transition = Transition> = ComboboxContentPropsWithoutHTML<T, In, Out> & HTMLDivAttributes;
|
|
67
67
|
export type ComboboxInputProps = ComboboxInputPropsWithoutHTML & HTMLInputAttributes;
|
|
68
|
-
export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML &
|
|
68
|
+
export type ComboboxLabelProps = ComboboxLabelPropsWithoutHTML & HTMLLabelAttributes;
|
|
69
69
|
export type ComboboxGroupProps = ComboboxGroupPropsWithoutHTML & HTMLDivAttributes;
|
|
70
70
|
export type ComboboxGroupLabelProps = ComboboxGroupLabelPropsWithoutHTML & HTMLDivAttributes;
|
|
71
71
|
export type ComboboxItemProps = ComboboxItemPropsWithoutHTML & HTMLDivAttributes;
|
|
@@ -23,7 +23,7 @@ $:
|
|
|
23
23
|
{#if asChild && $open}
|
|
24
24
|
<slot {builder} />
|
|
25
25
|
{:else if transition && $open}
|
|
26
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
26
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
27
27
|
<div
|
|
28
28
|
on:mouseup
|
|
29
29
|
bind:this={el}
|
|
@@ -32,7 +32,7 @@ $:
|
|
|
32
32
|
{...$$restProps}
|
|
33
33
|
></div>
|
|
34
34
|
{:else if inTransition && outTransition && $open}
|
|
35
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
35
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
36
36
|
<div
|
|
37
37
|
bind:this={el}
|
|
38
38
|
in:inTransition={inTransitionConfig}
|
|
@@ -42,7 +42,7 @@ $:
|
|
|
42
42
|
{...$$restProps}
|
|
43
43
|
></div>
|
|
44
44
|
{:else if inTransition && $open}
|
|
45
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
45
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
46
46
|
<div
|
|
47
47
|
bind:this={el}
|
|
48
48
|
in:inTransition={inTransitionConfig}
|
|
@@ -51,7 +51,7 @@ $:
|
|
|
51
51
|
{...$$restProps}
|
|
52
52
|
></div>
|
|
53
53
|
{:else if outTransition && $open}
|
|
54
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
54
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
55
55
|
<div
|
|
56
56
|
bind:this={el}
|
|
57
57
|
out:outTransition={outTransitionConfig}
|
|
@@ -60,6 +60,6 @@ $:
|
|
|
60
60
|
{...$$restProps}
|
|
61
61
|
></div>
|
|
62
62
|
{:else if $open}
|
|
63
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
63
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
64
64
|
<div bind:this={el} {...builder} use:builder.action on:mouseup {...$$restProps}></div>
|
|
65
65
|
{/if}
|
|
@@ -24,8 +24,8 @@ $:
|
|
|
24
24
|
{#if asChild}
|
|
25
25
|
<slot {builder} />
|
|
26
26
|
{:else}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
<!-- svelte-ignore a11y-missing-attribute a11y_missing_attribute -->
|
|
28
|
+
<a
|
|
29
29
|
bind:this={el}
|
|
30
30
|
{...builder} use:builder.action
|
|
31
31
|
{...$$restProps}
|
|
@@ -36,5 +36,5 @@ $:
|
|
|
36
36
|
on:m-pointerleave={dispatch}
|
|
37
37
|
>
|
|
38
38
|
<slot {builder} />
|
|
39
|
-
</
|
|
39
|
+
</a>
|
|
40
40
|
{/if}
|
|
@@ -55,7 +55,7 @@ $:
|
|
|
55
55
|
}
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
58
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
59
59
|
{#if asChild && $open}
|
|
60
60
|
<slot {builder} />
|
|
61
61
|
{:else if transition && $open}
|
|
@@ -21,7 +21,7 @@ $:
|
|
|
21
21
|
isSelected = $isSelectedStore(value);
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
24
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
25
25
|
{#if asChild}
|
|
26
26
|
<slot {builder} {isSelected} />
|
|
27
27
|
{:else}
|
|
@@ -18,15 +18,9 @@ $:
|
|
|
18
18
|
{#if asChild}
|
|
19
19
|
<slot {builder} />
|
|
20
20
|
{:else}
|
|
21
|
-
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
bind:this={el}
|
|
25
|
-
{...builder} use:builder.action
|
|
26
|
-
{...$$restProps}
|
|
27
|
-
on:click
|
|
28
|
-
on:m-keydown={dispatch}
|
|
29
|
-
>
|
|
21
|
+
<!-- svelte-ignore a11y-no-static-element-interactions a11y_no_static_element_interactions -->
|
|
22
|
+
<!-- svelte-ignore a11y-missing-attribute a11y_missing_attribute -->
|
|
23
|
+
<a bind:this={el} {...builder} use:builder.action {...$$restProps} on:click on:m-keydown={dispatch}>
|
|
30
24
|
<slot {builder} />
|
|
31
|
-
</
|
|
25
|
+
</a>
|
|
32
26
|
{/if}
|