bits-ui 0.19.3 → 0.19.5
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/alert-dialog/components/alert-dialog-portal.svelte.d.ts +1 -1
- package/dist/bits/alert-dialog/ctx.d.ts +2 -2
- package/dist/bits/button/_types.d.ts +2 -2
- package/dist/bits/combobox/ctx.d.ts +1 -1
- package/dist/bits/context-menu/components/context-menu-content.svelte.d.ts +1 -1
- package/dist/bits/context-menu/ctx.d.ts +1 -1
- package/dist/bits/date-picker/components/date-picker-content.svelte.d.ts +1 -1
- package/dist/bits/date-picker/ctx.d.ts +2 -2
- package/dist/bits/date-range-picker/components/date-range-picker-content.svelte.d.ts +1 -1
- package/dist/bits/date-range-picker/ctx.d.ts +2 -2
- package/dist/bits/dialog/components/dialog-portal.svelte.d.ts +1 -1
- package/dist/bits/dialog/ctx.d.ts +1 -1
- package/dist/bits/link-preview/components/link-preview-content.svelte.d.ts +1 -1
- package/dist/bits/link-preview/ctx.d.ts +1 -1
- package/dist/bits/menu/components/menu-content.svelte.d.ts +1 -1
- package/dist/bits/menu/ctx.d.ts +1 -1
- package/dist/bits/menubar/ctx.d.ts +2 -2
- package/dist/bits/popover/components/popover-content.svelte.d.ts +1 -1
- package/dist/bits/popover/ctx.d.ts +1 -1
- package/dist/bits/select/ctx.d.ts +1 -1
- package/dist/bits/tooltip/components/tooltip-content.svelte.d.ts +1 -1
- package/dist/bits/tooltip/ctx.d.ts +1 -1
- package/package.json +2 -2
|
@@ -67,7 +67,7 @@ export declare function setCtx(props: SetProps): {
|
|
|
67
67
|
portalled: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | HTMLElement | null | undefined>>, <Node_2 extends unknown>(node: HTMLElement) => {
|
|
68
68
|
destroy(): void;
|
|
69
69
|
}, ($portal: string | HTMLElement | null | undefined) => {
|
|
70
|
-
'data-portal': string |
|
|
70
|
+
'data-portal': string | undefined;
|
|
71
71
|
}, string>;
|
|
72
72
|
};
|
|
73
73
|
states: {
|
|
@@ -165,7 +165,7 @@ export declare function getCtx(): {
|
|
|
165
165
|
portalled: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | HTMLElement | null | undefined>>, <Node_2 extends unknown>(node: HTMLElement) => {
|
|
166
166
|
destroy(): void;
|
|
167
167
|
}, ($portal: string | HTMLElement | null | undefined) => {
|
|
168
|
-
'data-portal': string |
|
|
168
|
+
'data-portal': string | undefined;
|
|
169
169
|
}, string>;
|
|
170
170
|
};
|
|
171
171
|
states: {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* but we don't want to document the HTML attributes.
|
|
5
5
|
*/
|
|
6
6
|
import type { Builder } from "../../internal/index.js";
|
|
7
|
-
type Props =
|
|
7
|
+
type Props = {
|
|
8
8
|
/**
|
|
9
9
|
* Melt UI builders to apply to the button component.
|
|
10
10
|
*/
|
|
11
11
|
builders?: Builder[];
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
export type { Props };
|
|
@@ -130,7 +130,7 @@ export declare function setCtx<T = unknown, M extends boolean = false>(props: Pr
|
|
|
130
130
|
helpers: {
|
|
131
131
|
isSelected: import("svelte/store").Readable<(value: unknown) => boolean>;
|
|
132
132
|
isHighlighted: import("svelte/store").Readable<(item: unknown) => boolean>;
|
|
133
|
-
closeMenu: () =>
|
|
133
|
+
closeMenu: () => void;
|
|
134
134
|
};
|
|
135
135
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
136
136
|
multiple: M;
|
|
@@ -13,7 +13,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly 'aria-labelledby': string;
|
|
15
15
|
readonly 'data-state': "open" | "closed";
|
|
16
|
-
readonly 'data-portal':
|
|
16
|
+
readonly 'data-portal': "" | undefined;
|
|
17
17
|
readonly tabindex: -1;
|
|
18
18
|
} & {
|
|
19
19
|
[x: `data-melt-${string}`]: "";
|
|
@@ -22,7 +22,7 @@ export declare function setCtx(props: CreateContextMenuProps): {
|
|
|
22
22
|
readonly id: string;
|
|
23
23
|
readonly 'aria-labelledby': string;
|
|
24
24
|
readonly 'data-state': "open" | "closed";
|
|
25
|
-
readonly 'data-portal':
|
|
25
|
+
readonly 'data-portal': "" | undefined;
|
|
26
26
|
readonly tabindex: -1;
|
|
27
27
|
}, string>;
|
|
28
28
|
trigger: import("@melt-ui/svelte/internal/helpers").MeltElement<[{
|
|
@@ -14,7 +14,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
14
14
|
style: string;
|
|
15
15
|
id: string;
|
|
16
16
|
'data-state': string;
|
|
17
|
-
'data-portal': string |
|
|
17
|
+
'data-portal': string | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: `data-melt-${string}`]: "";
|
|
20
20
|
} & {
|
|
@@ -45,7 +45,7 @@ export declare function setCtx(props: CreateDatePickerProps): {
|
|
|
45
45
|
style: string;
|
|
46
46
|
id: string;
|
|
47
47
|
'data-state': string;
|
|
48
|
-
'data-portal': string |
|
|
48
|
+
'data-portal': string | undefined;
|
|
49
49
|
}, string>;
|
|
50
50
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
51
51
|
'data-arrow': boolean;
|
|
@@ -429,7 +429,7 @@ export declare function getCtx(): {
|
|
|
429
429
|
style: string;
|
|
430
430
|
id: string;
|
|
431
431
|
'data-state': string;
|
|
432
|
-
'data-portal': string |
|
|
432
|
+
'data-portal': string | undefined;
|
|
433
433
|
}, string>;
|
|
434
434
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
435
435
|
'data-arrow': boolean;
|
|
@@ -14,7 +14,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
14
14
|
style: string;
|
|
15
15
|
id: string;
|
|
16
16
|
'data-state': string;
|
|
17
|
-
'data-portal': string |
|
|
17
|
+
'data-portal': string | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: `data-melt-${string}`]: "";
|
|
20
20
|
} & {
|
|
@@ -45,7 +45,7 @@ export declare function setCtx(props: CreateDateRangePickerProps): {
|
|
|
45
45
|
style: string;
|
|
46
46
|
id: string;
|
|
47
47
|
'data-state': string;
|
|
48
|
-
'data-portal': string |
|
|
48
|
+
'data-portal': string | undefined;
|
|
49
49
|
}, string>;
|
|
50
50
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
51
51
|
'data-arrow': boolean;
|
|
@@ -571,7 +571,7 @@ export declare function getCtx(): {
|
|
|
571
571
|
style: string;
|
|
572
572
|
id: string;
|
|
573
573
|
'data-state': string;
|
|
574
|
-
'data-portal': string |
|
|
574
|
+
'data-portal': string | undefined;
|
|
575
575
|
}, string>;
|
|
576
576
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
577
577
|
'data-arrow': boolean;
|
|
@@ -72,7 +72,7 @@ export declare function setCtx(props: SetProps): {
|
|
|
72
72
|
portalled: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<import("svelte/store").Writable<string | HTMLElement | null | undefined>>, <Node_2 extends unknown>(node: HTMLElement) => {
|
|
73
73
|
destroy(): void;
|
|
74
74
|
}, ($portal: string | HTMLElement | null | undefined) => {
|
|
75
|
-
'data-portal': string |
|
|
75
|
+
'data-portal': string | undefined;
|
|
76
76
|
}, string>;
|
|
77
77
|
};
|
|
78
78
|
states: {
|
|
@@ -12,7 +12,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
12
12
|
style: string;
|
|
13
13
|
id: string;
|
|
14
14
|
'data-state': string;
|
|
15
|
-
'data-portal': string |
|
|
15
|
+
'data-portal': string | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
[x: `data-melt-${string}`]: "";
|
|
18
18
|
} & {
|
|
@@ -35,7 +35,7 @@ export declare function setCtx(props: CreateLinkPreviewProps): {
|
|
|
35
35
|
style: string;
|
|
36
36
|
id: string;
|
|
37
37
|
'data-state': string;
|
|
38
|
-
'data-portal': string |
|
|
38
|
+
'data-portal': string | undefined;
|
|
39
39
|
}, string>;
|
|
40
40
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
41
41
|
'data-arrow': boolean;
|
|
@@ -13,7 +13,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly 'aria-labelledby': string;
|
|
15
15
|
readonly 'data-state': "open" | "closed";
|
|
16
|
-
readonly 'data-portal':
|
|
16
|
+
readonly 'data-portal': "" | undefined;
|
|
17
17
|
readonly tabindex: -1;
|
|
18
18
|
} & {
|
|
19
19
|
[x: `data-melt-${string}`]: "";
|
package/dist/bits/menu/ctx.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function setCtx(props: CreateDropdownMenuProps): {
|
|
|
36
36
|
readonly id: string;
|
|
37
37
|
readonly 'aria-labelledby': string;
|
|
38
38
|
readonly 'data-state': "open" | "closed";
|
|
39
|
-
readonly 'data-portal':
|
|
39
|
+
readonly 'data-portal': "" | undefined;
|
|
40
40
|
readonly tabindex: -1;
|
|
41
41
|
}, string>;
|
|
42
42
|
overlay: import("@melt-ui/svelte/internal/helpers").MeltElement<[import("svelte/store").Readable<boolean>], <Node_1 extends unknown>(node: HTMLElement) => {
|
|
@@ -39,7 +39,7 @@ export declare function setCtx(props: MenubarProps): {
|
|
|
39
39
|
readonly 'aria-labelledby': string;
|
|
40
40
|
readonly 'data-state': "open" | "closed";
|
|
41
41
|
readonly 'data-melt-scope': string;
|
|
42
|
-
readonly 'data-portal':
|
|
42
|
+
readonly 'data-portal': "" | undefined;
|
|
43
43
|
readonly tabindex: -1;
|
|
44
44
|
}, string>;
|
|
45
45
|
trigger: import("@melt-ui/svelte/internal/helpers").MeltElement<[import("@melt-ui/svelte/internal/helpers").WithGet<Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<Writable<string>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click" | "pointerenter">, ([$rootOpen, $menuId, $triggerId]: [boolean, string, string]) => {
|
|
@@ -280,7 +280,7 @@ export declare function setMenuCtx(props: CreateMenubarMenuProps): {
|
|
|
280
280
|
readonly 'aria-labelledby': string;
|
|
281
281
|
readonly 'data-state': "open" | "closed";
|
|
282
282
|
readonly 'data-melt-scope': string;
|
|
283
|
-
readonly 'data-portal':
|
|
283
|
+
readonly 'data-portal': "" | undefined;
|
|
284
284
|
readonly tabindex: -1;
|
|
285
285
|
}, string>;
|
|
286
286
|
trigger: import("@melt-ui/svelte/internal/helpers").MeltElement<[import("@melt-ui/svelte/internal/helpers").WithGet<Writable<boolean>>, import("@melt-ui/svelte/internal/helpers").WithGet<Writable<string>>, import("@melt-ui/svelte/internal/helpers").WithGet<Writable<string>>], (node: HTMLElement) => import("@melt-ui/svelte/internal/types").MeltActionReturn<"keydown" | "click" | "pointerenter">, ([$rootOpen, $menuId, $triggerId]: [boolean, string, string]) => {
|
|
@@ -14,7 +14,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
14
14
|
style: string;
|
|
15
15
|
id: string;
|
|
16
16
|
'data-state': string;
|
|
17
|
-
'data-portal': string |
|
|
17
|
+
'data-portal': string | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
[x: `data-melt-${string}`]: "";
|
|
20
20
|
} & {
|
|
@@ -31,7 +31,7 @@ export declare function setCtx(props: CreatePopoverProps): {
|
|
|
31
31
|
style: string;
|
|
32
32
|
id: string;
|
|
33
33
|
'data-state': string;
|
|
34
|
-
'data-portal': string |
|
|
34
|
+
'data-portal': string | undefined;
|
|
35
35
|
}, string>;
|
|
36
36
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
|
37
37
|
'data-arrow': boolean;
|
|
@@ -103,7 +103,7 @@ export declare function setCtx<T = unknown, M extends boolean = false>(props: Pr
|
|
|
103
103
|
helpers: {
|
|
104
104
|
isSelected: import("svelte/store").Readable<(value: unknown) => boolean>;
|
|
105
105
|
isHighlighted: import("svelte/store").Readable<(item: unknown) => boolean>;
|
|
106
|
-
closeMenu: () =>
|
|
106
|
+
closeMenu: () => void;
|
|
107
107
|
};
|
|
108
108
|
options: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
109
109
|
multiple: M;
|
|
@@ -12,7 +12,7 @@ declare class __sveltets_Render<T extends Transition, In extends Transition, Out
|
|
|
12
12
|
tabindex: number;
|
|
13
13
|
style: string;
|
|
14
14
|
id: string;
|
|
15
|
-
'data-portal': string
|
|
15
|
+
'data-portal': string;
|
|
16
16
|
'data-state': string;
|
|
17
17
|
} & {
|
|
18
18
|
[x: `data-melt-${string}`]: "";
|
|
@@ -34,7 +34,7 @@ export declare function setCtx(props: CreateTooltipProps): {
|
|
|
34
34
|
tabindex: number;
|
|
35
35
|
style: string;
|
|
36
36
|
id: string;
|
|
37
|
-
'data-portal': string
|
|
37
|
+
'data-portal': string;
|
|
38
38
|
'data-state': string;
|
|
39
39
|
}, string>;
|
|
40
40
|
arrow: import("@melt-ui/svelte/internal/helpers").MeltElement<import("@melt-ui/svelte/internal/helpers").WithGet<Writable<number>>, import("svelte/action").Action<any, any, Record<never, any>>, ($arrowSize: number) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bits-ui",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "github:huntabyte/bits-ui",
|
|
6
6
|
"exports": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"type": "module",
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@internationalized/date": "^3.5.1",
|
|
81
|
-
"@melt-ui/svelte": "0.75.
|
|
81
|
+
"@melt-ui/svelte": "0.75.3",
|
|
82
82
|
"nanoid": "^5.0.5"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|