bits-ui 0.18.0 → 0.18.1
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.
|
@@ -13,7 +13,7 @@ type Props<T = unknown, M extends boolean = false> = CreateComboboxProps<T, M> &
|
|
|
13
13
|
};
|
|
14
14
|
export declare function setCtx<T = unknown, M extends boolean = false>(props: Props<T, M>): {
|
|
15
15
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
16
|
-
getAttrs: (part: "content" | "label" | "
|
|
16
|
+
getAttrs: (part: "content" | "label" | "arrow" | "menu" | "group" | "input" | "item" | "indicator" | "group-label" | "hidden-input") => Record<string, string>;
|
|
17
17
|
elements: {
|
|
18
18
|
input: import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[import("@melt-ui/svelte/internal/helpers").ExplicitBuilderReturn<[{
|
|
19
19
|
update: (updater: import("svelte/store").Updater<boolean>, sideEffect?: ((newValue: boolean) => void) | undefined) => void;
|
|
@@ -167,7 +167,7 @@ export declare function setGroupCtx(): {
|
|
|
167
167
|
'aria-labelledby': string;
|
|
168
168
|
}, string>;
|
|
169
169
|
id: string;
|
|
170
|
-
getAttrs: (part: "content" | "label" | "
|
|
170
|
+
getAttrs: (part: "content" | "label" | "arrow" | "menu" | "group" | "input" | "item" | "indicator" | "group-label" | "hidden-input") => Record<string, string>;
|
|
171
171
|
};
|
|
172
172
|
export declare function setItemCtx(value: unknown): GetReturn;
|
|
173
173
|
export declare function getGroupLabel(): {
|
|
@@ -175,12 +175,12 @@ export declare function getGroupLabel(): {
|
|
|
175
175
|
id: string;
|
|
176
176
|
}, string>;
|
|
177
177
|
id: string;
|
|
178
|
-
getAttrs: (part: "content" | "label" | "
|
|
178
|
+
getAttrs: (part: "content" | "label" | "arrow" | "menu" | "group" | "input" | "item" | "indicator" | "group-label" | "hidden-input") => Record<string, string>;
|
|
179
179
|
};
|
|
180
180
|
export declare function getItemIndicator(): {
|
|
181
181
|
value: unknown;
|
|
182
182
|
isSelected: import("svelte/store").Readable<(value: unknown) => boolean>;
|
|
183
|
-
getAttrs: (part: "content" | "label" | "
|
|
183
|
+
getAttrs: (part: "content" | "label" | "arrow" | "menu" | "group" | "input" | "item" | "indicator" | "group-label" | "hidden-input") => Record<string, string>;
|
|
184
184
|
};
|
|
185
185
|
export declare function setArrow(size?: number): GetReturn;
|
|
186
186
|
export declare function updatePositioning(props: FloatingProps): void;
|
|
@@ -7,7 +7,7 @@ export declare function getPinInputData(): {
|
|
|
7
7
|
type GetReturn = Omit<ReturnType<typeof setCtx>, "updateOption">;
|
|
8
8
|
export declare function setCtx(props: PinInputProps): {
|
|
9
9
|
updateOption: <K extends string, V extends unknown>(key: K, value: V | undefined) => void;
|
|
10
|
-
getAttrs: (part: "
|
|
10
|
+
getAttrs: (part: "input" | "root" | "hidden-input") => Record<string, string>;
|
|
11
11
|
ids: import("@melt-ui/svelte/internal/helpers").ToWritableStores<{
|
|
12
12
|
root: string;
|
|
13
13
|
}>;
|
package/dist/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type * from "./bits/button/_export.types.js";
|
|
|
6
6
|
export type * from "./bits/calendar/_export.types.js";
|
|
7
7
|
export type * from "./bits/checkbox/_export.types.js";
|
|
8
8
|
export type * from "./bits/collapsible/_export.types.js";
|
|
9
|
+
export type * from "./bits/combobox/_export.types.js";
|
|
9
10
|
export type * from "./bits/context-menu/_export.types.js";
|
|
10
11
|
export type * from "./bits/date-field/_export.types.js";
|
|
11
12
|
export type * from "./bits/date-picker/_export.types.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bits-ui",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "github:huntabyte/bits-ui",
|
|
6
6
|
"exports": {
|
|
@@ -29,8 +29,11 @@
|
|
|
29
29
|
"@testing-library/jest-dom": "^6.4.1",
|
|
30
30
|
"@testing-library/svelte": "^4.1.0",
|
|
31
31
|
"@testing-library/user-event": "^14.5.2",
|
|
32
|
+
"@types/hast": "^3.0.4",
|
|
32
33
|
"@types/jest-axe": "^3.5.9",
|
|
34
|
+
"@types/mdast": "^4.0.3",
|
|
33
35
|
"@types/testing-library__jest-dom": "^5.14.9",
|
|
36
|
+
"@types/unist": "^3.0.2",
|
|
34
37
|
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
35
38
|
"@typescript-eslint/parser": "^6.20.0",
|
|
36
39
|
"autoprefixer": "^10.4.17",
|
|
@@ -52,10 +55,10 @@
|
|
|
52
55
|
"prettier-plugin-svelte": "^2.10.1",
|
|
53
56
|
"prettier-plugin-tailwindcss": "0.2.7",
|
|
54
57
|
"publint": "^0.2.7",
|
|
55
|
-
"rehype-pretty-code": "^0.
|
|
58
|
+
"rehype-pretty-code": "^0.13.0",
|
|
56
59
|
"remark-gfm": "^4.0.0",
|
|
57
60
|
"resize-observer-polyfill": "^1.5.1",
|
|
58
|
-
"shiki": "^
|
|
61
|
+
"shiki": "^1.1.1",
|
|
59
62
|
"svelte": "^4.2.9",
|
|
60
63
|
"svelte-check": "^3.6.3",
|
|
61
64
|
"svelte-sequential-preprocessor": "^2.0.1",
|
|
@@ -64,6 +67,7 @@
|
|
|
64
67
|
"tailwindcss": "^3.4.1",
|
|
65
68
|
"tslib": "^2.6.2",
|
|
66
69
|
"typescript": "^5.3.3",
|
|
70
|
+
"unified": "^11.0.4",
|
|
67
71
|
"unist-builder": "^4.0.0",
|
|
68
72
|
"unist-util-visit": "^5.0.0",
|
|
69
73
|
"vite": "^5.0.12",
|