ui-ingredients 2.0.3 → 2.1.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/Clipboard/ClipboardRoot.svelte +3 -2
- package/dist/Listbox/ListboxInput.svelte +7 -3
- package/dist/Select/SelectRoot.svelte +4 -3
- package/dist/TagsInput/TagsInputRoot.svelte +4 -3
- package/dist/Timer/TimerRoot.svelte +4 -3
- package/dist/TreeView/TreeViewRoot.svelte +4 -3
- package/package.json +61 -61
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import {defineKeyset} from '../defineKeySet.js';
|
|
3
|
-
import {splitProps} from '../splitProps.js';
|
|
4
2
|
import {mergeProps} from '@zag-js/svelte';
|
|
5
3
|
import type {Merge, SetOptional} from 'type-fest';
|
|
4
|
+
import {defineKeyset} from '../defineKeySet.js';
|
|
5
|
+
import {splitProps} from '../splitProps.js';
|
|
6
6
|
import type {HtmlIngredientProps} from '../types.js';
|
|
7
7
|
import {setClipboardContext} from './ClipboardContext.svelte.js';
|
|
8
8
|
import type {
|
|
@@ -34,6 +34,7 @@ let createClipboardPropKeys = defineKeyset<CreateClipboardProps>()([
|
|
|
34
34
|
'onValueChange',
|
|
35
35
|
'onStatusChange',
|
|
36
36
|
'timeout',
|
|
37
|
+
'translations',
|
|
37
38
|
]);
|
|
38
39
|
|
|
39
40
|
let [createClipboardProps, localProps] = $derived(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import {defineKeyset} from '../defineKeySet.js';
|
|
3
|
-
import {splitProps} from '../splitProps.js';
|
|
4
2
|
import type {InputProps} from '@zag-js/listbox';
|
|
5
3
|
import {mergeProps} from '@zag-js/svelte';
|
|
6
4
|
import type {Merge} from 'type-fest';
|
|
5
|
+
import {defineKeyset} from '../defineKeySet.js';
|
|
6
|
+
import {splitProps} from '../splitProps.js';
|
|
7
7
|
import type {HtmlIngredientProps} from '../types.js';
|
|
8
8
|
import {getListboxContext} from './ListboxContext.svelte.js';
|
|
9
9
|
|
|
@@ -19,7 +19,11 @@ let {
|
|
|
19
19
|
...props
|
|
20
20
|
}: ListboxInputProps = $props();
|
|
21
21
|
|
|
22
|
-
let inputPropKeys = defineKeyset<InputProps>()([
|
|
22
|
+
let inputPropKeys = defineKeyset<InputProps>()([
|
|
23
|
+
'autoHighlight',
|
|
24
|
+
'keyboardPriority',
|
|
25
|
+
]);
|
|
26
|
+
|
|
23
27
|
let [inputProps, localProps] = $derived(splitProps(props, inputPropKeys));
|
|
24
28
|
|
|
25
29
|
let listbox = getListboxContext();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import {mergeProps} from '@zag-js/svelte';
|
|
3
|
+
import type {Merge, SetOptional} from 'type-fest';
|
|
2
4
|
import {defineKeyset} from '../defineKeySet.js';
|
|
3
5
|
import {setPresenceContext} from '../Presence/PresenceContext.svelte.js';
|
|
4
6
|
import {splitProps} from '../splitProps.js';
|
|
5
|
-
import {mergeProps} from '@zag-js/svelte';
|
|
6
|
-
import type {Merge, SetOptional} from 'type-fest';
|
|
7
7
|
import {
|
|
8
8
|
createPresence,
|
|
9
9
|
type PresenceStrategyProps,
|
|
10
10
|
} from '../Presence/createPresence.svelte.js';
|
|
11
11
|
import type {HtmlIngredientProps} from '../types.js';
|
|
12
12
|
import {
|
|
13
|
-
createSelect,
|
|
14
13
|
type CreateSelectProps,
|
|
15
14
|
type CreateSelectReturn,
|
|
15
|
+
createSelect,
|
|
16
16
|
} from './createSelect.svelte.js';
|
|
17
17
|
import {setSelectContext} from './SelectContext.svelte.js';
|
|
18
18
|
|
|
@@ -63,6 +63,7 @@ let createSelectPropKeys = defineKeyset<CreateSelectProps>()([
|
|
|
63
63
|
'onPointerDownOutside',
|
|
64
64
|
'onFocusOutside',
|
|
65
65
|
'onInteractOutside',
|
|
66
|
+
'translations',
|
|
66
67
|
]);
|
|
67
68
|
|
|
68
69
|
let [createSelectProps, selectProps] = $derived(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import {defineKeyset} from '../defineKeySet.js';
|
|
3
|
-
import {splitProps} from '../splitProps.js';
|
|
4
2
|
import {mergeProps} from '@zag-js/svelte';
|
|
5
3
|
import type {Merge, SetOptional} from 'type-fest';
|
|
4
|
+
import {defineKeyset} from '../defineKeySet.js';
|
|
5
|
+
import {splitProps} from '../splitProps.js';
|
|
6
6
|
import type {HtmlIngredientProps} from '../types.js';
|
|
7
7
|
import {
|
|
8
|
-
createTagsInput,
|
|
9
8
|
type CreateTagsInputProps,
|
|
10
9
|
type CreateTagsInputReturn,
|
|
10
|
+
createTagsInput,
|
|
11
11
|
} from './createTagsInput.svelte.js';
|
|
12
12
|
import {setTagsInputContext} from './TagsInputContext.svelte.js';
|
|
13
13
|
|
|
@@ -57,6 +57,7 @@ let createTagsInputPropKeys = defineKeyset<CreateTagsInputProps>()([
|
|
|
57
57
|
'onPointerDownOutside',
|
|
58
58
|
'onFocusOutside',
|
|
59
59
|
'onInteractOutside',
|
|
60
|
+
'allowDuplicates',
|
|
60
61
|
]);
|
|
61
62
|
|
|
62
63
|
let [createTagsInputProps, localProps] = $derived(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import {defineKeyset} from '../defineKeySet.js';
|
|
3
|
-
import {splitProps} from '../splitProps.js';
|
|
4
2
|
import {mergeProps} from '@zag-js/svelte';
|
|
5
3
|
import type {Merge, SetOptional} from 'type-fest';
|
|
4
|
+
import {defineKeyset} from '../defineKeySet.js';
|
|
5
|
+
import {splitProps} from '../splitProps.js';
|
|
6
6
|
import type {HtmlIngredientProps} from '../types.js';
|
|
7
7
|
import {
|
|
8
|
-
createTimer,
|
|
9
8
|
type CreateTimerProps,
|
|
10
9
|
type CreateTimerReturn,
|
|
10
|
+
createTimer,
|
|
11
11
|
} from './createTimer.svelte.js';
|
|
12
12
|
import {setTimerContext} from './TimerContext.svelte.js';
|
|
13
13
|
|
|
@@ -31,6 +31,7 @@ let createTimerPropKeys = defineKeyset<CreateTimerProps>()([
|
|
|
31
31
|
'onTick',
|
|
32
32
|
'onComplete',
|
|
33
33
|
'id',
|
|
34
|
+
'translations',
|
|
34
35
|
]);
|
|
35
36
|
|
|
36
37
|
let [createTimerProps, localProps] = $derived(
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import {mergeProps} from '@zag-js/svelte';
|
|
3
|
+
import type {Merge, SetOptional} from 'type-fest';
|
|
2
4
|
import {defineKeyset} from '../defineKeySet.js';
|
|
3
5
|
import {setPresenceStrategyPropsContext} from '../Presence/PresenceContext.svelte.js';
|
|
4
6
|
import {splitProps} from '../splitProps.js';
|
|
5
|
-
import {mergeProps} from '@zag-js/svelte';
|
|
6
|
-
import type {Merge, SetOptional} from 'type-fest';
|
|
7
7
|
import type {PresenceStrategyProps} from '../Presence/createPresence.svelte.js';
|
|
8
8
|
import type {HtmlIngredientProps} from '../types.js';
|
|
9
9
|
import {
|
|
10
|
-
createTreeView,
|
|
11
10
|
type CreateTreeViewProps,
|
|
12
11
|
type CreateTreeViewReturn,
|
|
12
|
+
createTreeView,
|
|
13
13
|
} from './createTreeView.svelte.js';
|
|
14
14
|
import {setTreeViewContext} from './TreeViewContext.svelte.js';
|
|
15
15
|
|
|
@@ -67,6 +67,7 @@ let createTreeViewPropKeys = defineKeyset<CreateTreeViewProps>()([
|
|
|
67
67
|
'loadChildren',
|
|
68
68
|
'scrollToIndexFn',
|
|
69
69
|
'id',
|
|
70
|
+
'translations',
|
|
70
71
|
]);
|
|
71
72
|
|
|
72
73
|
let [createTreeViewProps, localProps] = $derived(
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ui-ingredients",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.0
|
|
5
|
+
"version": "2.1.0",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
@@ -99,61 +99,61 @@
|
|
|
99
99
|
"release": "release-it"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@zag-js/accordion": "^1.
|
|
103
|
-
"@zag-js/anatomy": "^1.
|
|
104
|
-
"@zag-js/angle-slider": "^1.
|
|
105
|
-
"@zag-js/auto-resize": "^1.
|
|
106
|
-
"@zag-js/avatar": "^1.
|
|
107
|
-
"@zag-js/carousel": "^1.
|
|
108
|
-
"@zag-js/checkbox": "^1.
|
|
109
|
-
"@zag-js/clipboard": "^1.
|
|
110
|
-
"@zag-js/collapsible": "^1.
|
|
111
|
-
"@zag-js/collection": "^1.
|
|
112
|
-
"@zag-js/color-picker": "^1.
|
|
113
|
-
"@zag-js/combobox": "^1.
|
|
114
|
-
"@zag-js/core": "^1.
|
|
115
|
-
"@zag-js/date-picker": "^1.
|
|
116
|
-
"@zag-js/dialog": "^1.
|
|
117
|
-
"@zag-js/dom-query": "^1.
|
|
118
|
-
"@zag-js/editable": "^1.
|
|
119
|
-
"@zag-js/file-upload": "^1.
|
|
120
|
-
"@zag-js/floating-panel": "^1.
|
|
121
|
-
"@zag-js/focus-trap": "^1.
|
|
122
|
-
"@zag-js/highlight-word": "^1.
|
|
123
|
-
"@zag-js/hover-card": "^1.
|
|
124
|
-
"@zag-js/i18n-utils": "^1.
|
|
125
|
-
"@zag-js/image-cropper": "^1.
|
|
126
|
-
"@zag-js/listbox": "^1.
|
|
127
|
-
"@zag-js/marquee": "^1.
|
|
128
|
-
"@zag-js/menu": "^1.
|
|
129
|
-
"@zag-js/number-input": "^1.
|
|
130
|
-
"@zag-js/pagination": "^1.
|
|
131
|
-
"@zag-js/password-input": "^1.
|
|
132
|
-
"@zag-js/pin-input": "^1.
|
|
133
|
-
"@zag-js/popover": "^1.
|
|
134
|
-
"@zag-js/presence": "^1.
|
|
135
|
-
"@zag-js/progress": "^1.
|
|
136
|
-
"@zag-js/qr-code": "^1.
|
|
137
|
-
"@zag-js/radio-group": "^1.
|
|
138
|
-
"@zag-js/rating-group": "^1.
|
|
139
|
-
"@zag-js/scroll-area": "^1.
|
|
140
|
-
"@zag-js/select": "^1.
|
|
141
|
-
"@zag-js/signature-pad": "^1.
|
|
142
|
-
"@zag-js/slider": "^1.
|
|
143
|
-
"@zag-js/splitter": "^1.
|
|
144
|
-
"@zag-js/steps": "^1.
|
|
145
|
-
"@zag-js/svelte": "^1.
|
|
146
|
-
"@zag-js/switch": "^1.
|
|
147
|
-
"@zag-js/tabs": "^1.
|
|
148
|
-
"@zag-js/tags-input": "^1.
|
|
149
|
-
"@zag-js/timer": "^1.
|
|
150
|
-
"@zag-js/toast": "^1.
|
|
151
|
-
"@zag-js/toggle": "^1.
|
|
152
|
-
"@zag-js/toggle-group": "^1.
|
|
153
|
-
"@zag-js/tooltip": "^1.
|
|
154
|
-
"@zag-js/tour": "^1.
|
|
155
|
-
"@zag-js/tree-view": "^1.
|
|
156
|
-
"@zag-js/types": "^1.
|
|
102
|
+
"@zag-js/accordion": "^1.36.0",
|
|
103
|
+
"@zag-js/anatomy": "^1.36.0",
|
|
104
|
+
"@zag-js/angle-slider": "^1.36.0",
|
|
105
|
+
"@zag-js/auto-resize": "^1.36.0",
|
|
106
|
+
"@zag-js/avatar": "^1.36.0",
|
|
107
|
+
"@zag-js/carousel": "^1.36.0",
|
|
108
|
+
"@zag-js/checkbox": "^1.36.0",
|
|
109
|
+
"@zag-js/clipboard": "^1.36.0",
|
|
110
|
+
"@zag-js/collapsible": "^1.36.0",
|
|
111
|
+
"@zag-js/collection": "^1.36.0",
|
|
112
|
+
"@zag-js/color-picker": "^1.36.0",
|
|
113
|
+
"@zag-js/combobox": "^1.36.0",
|
|
114
|
+
"@zag-js/core": "^1.36.0",
|
|
115
|
+
"@zag-js/date-picker": "^1.36.0",
|
|
116
|
+
"@zag-js/dialog": "^1.36.0",
|
|
117
|
+
"@zag-js/dom-query": "^1.36.0",
|
|
118
|
+
"@zag-js/editable": "^1.36.0",
|
|
119
|
+
"@zag-js/file-upload": "^1.36.0",
|
|
120
|
+
"@zag-js/floating-panel": "^1.36.0",
|
|
121
|
+
"@zag-js/focus-trap": "^1.36.0",
|
|
122
|
+
"@zag-js/highlight-word": "^1.36.0",
|
|
123
|
+
"@zag-js/hover-card": "^1.36.0",
|
|
124
|
+
"@zag-js/i18n-utils": "^1.36.0",
|
|
125
|
+
"@zag-js/image-cropper": "^1.36.0",
|
|
126
|
+
"@zag-js/listbox": "^1.36.0",
|
|
127
|
+
"@zag-js/marquee": "^1.36.0",
|
|
128
|
+
"@zag-js/menu": "^1.36.0",
|
|
129
|
+
"@zag-js/number-input": "^1.36.0",
|
|
130
|
+
"@zag-js/pagination": "^1.36.0",
|
|
131
|
+
"@zag-js/password-input": "^1.36.0",
|
|
132
|
+
"@zag-js/pin-input": "^1.36.0",
|
|
133
|
+
"@zag-js/popover": "^1.36.0",
|
|
134
|
+
"@zag-js/presence": "^1.36.0",
|
|
135
|
+
"@zag-js/progress": "^1.36.0",
|
|
136
|
+
"@zag-js/qr-code": "^1.36.0",
|
|
137
|
+
"@zag-js/radio-group": "^1.36.0",
|
|
138
|
+
"@zag-js/rating-group": "^1.36.0",
|
|
139
|
+
"@zag-js/scroll-area": "^1.36.0",
|
|
140
|
+
"@zag-js/select": "^1.36.0",
|
|
141
|
+
"@zag-js/signature-pad": "^1.36.0",
|
|
142
|
+
"@zag-js/slider": "^1.36.0",
|
|
143
|
+
"@zag-js/splitter": "^1.36.0",
|
|
144
|
+
"@zag-js/steps": "^1.36.0",
|
|
145
|
+
"@zag-js/svelte": "^1.36.0",
|
|
146
|
+
"@zag-js/switch": "^1.36.0",
|
|
147
|
+
"@zag-js/tabs": "^1.36.0",
|
|
148
|
+
"@zag-js/tags-input": "^1.36.0",
|
|
149
|
+
"@zag-js/timer": "^1.36.0",
|
|
150
|
+
"@zag-js/toast": "^1.36.0",
|
|
151
|
+
"@zag-js/toggle": "^1.36.0",
|
|
152
|
+
"@zag-js/toggle-group": "^1.36.0",
|
|
153
|
+
"@zag-js/tooltip": "^1.36.0",
|
|
154
|
+
"@zag-js/tour": "^1.36.0",
|
|
155
|
+
"@zag-js/tree-view": "^1.36.0",
|
|
156
|
+
"@zag-js/types": "^1.36.0",
|
|
157
157
|
"es-toolkit": "^1.45.1",
|
|
158
158
|
"esm-env": "^1.2.2",
|
|
159
159
|
"type-fest": "^5.4.4"
|
|
@@ -163,15 +163,15 @@
|
|
|
163
163
|
},
|
|
164
164
|
"devDependencies": {
|
|
165
165
|
"@sveltejs/adapter-vercel": "^6.3.3",
|
|
166
|
-
"@sveltejs/kit": "^2.
|
|
166
|
+
"@sveltejs/kit": "^2.55.0",
|
|
167
167
|
"@sveltejs/package": "^2.5.7",
|
|
168
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
168
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
169
169
|
"publint": "^0.3.18",
|
|
170
170
|
"release-it": "^19.2.4",
|
|
171
|
-
"svelte": "^5.53.
|
|
172
|
-
"svelte-check": "^4.4.
|
|
171
|
+
"svelte": "^5.53.11",
|
|
172
|
+
"svelte-check": "^4.4.5",
|
|
173
173
|
"typescript": "^5.9.3",
|
|
174
|
-
"vite": "^
|
|
174
|
+
"vite": "^8.0.0"
|
|
175
175
|
},
|
|
176
176
|
"release-it": {
|
|
177
177
|
"git": {
|