@ark-ui/react 5.18.0 → 5.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.
|
@@ -76,19 +76,6 @@ function useListSelection(props) {
|
|
|
76
76
|
}),
|
|
77
77
|
resetSelection: useEvent.useEvent(() => {
|
|
78
78
|
setSelectionState(createSelection());
|
|
79
|
-
}),
|
|
80
|
-
setSelection: useEvent.useEvent((newSelection) => {
|
|
81
|
-
setSelectionState(selection.setSelection(newSelection));
|
|
82
|
-
}),
|
|
83
|
-
setSelectionMode: useEvent.useEvent((mode) => {
|
|
84
|
-
const newSelection = selection.copy();
|
|
85
|
-
newSelection.selectionMode = mode;
|
|
86
|
-
setSelectionState(newSelection);
|
|
87
|
-
}),
|
|
88
|
-
setDeselectable: useEvent.useEvent((deselectable2) => {
|
|
89
|
-
const newSelection = selection.copy();
|
|
90
|
-
newSelection.deselectable = deselectable2;
|
|
91
|
-
setSelectionState(newSelection);
|
|
92
79
|
})
|
|
93
80
|
};
|
|
94
81
|
}
|
|
@@ -88,16 +88,4 @@ export interface UseListSelectionReturn {
|
|
|
88
88
|
* Returns true if at least one item from the collection is selected.
|
|
89
89
|
*/
|
|
90
90
|
isSomeSelected: () => boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Set the selection to a specific array of items.
|
|
93
|
-
*/
|
|
94
|
-
setSelection: (selection: string[]) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Set the selection mode.
|
|
97
|
-
*/
|
|
98
|
-
setSelectionMode: (mode: SelectionMode) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Set whether the selection is deselectable.
|
|
101
|
-
*/
|
|
102
|
-
setDeselectable: (deselectable: boolean) => void;
|
|
103
91
|
}
|
|
@@ -88,16 +88,4 @@ export interface UseListSelectionReturn {
|
|
|
88
88
|
* Returns true if at least one item from the collection is selected.
|
|
89
89
|
*/
|
|
90
90
|
isSomeSelected: () => boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Set the selection to a specific array of items.
|
|
93
|
-
*/
|
|
94
|
-
setSelection: (selection: string[]) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Set the selection mode.
|
|
97
|
-
*/
|
|
98
|
-
setSelectionMode: (mode: SelectionMode) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Set whether the selection is deselectable.
|
|
101
|
-
*/
|
|
102
|
-
setDeselectable: (deselectable: boolean) => void;
|
|
103
91
|
}
|
|
@@ -72,19 +72,6 @@ function useListSelection(props) {
|
|
|
72
72
|
}),
|
|
73
73
|
resetSelection: useEvent(() => {
|
|
74
74
|
setSelectionState(createSelection());
|
|
75
|
-
}),
|
|
76
|
-
setSelection: useEvent((newSelection) => {
|
|
77
|
-
setSelectionState(selection.setSelection(newSelection));
|
|
78
|
-
}),
|
|
79
|
-
setSelectionMode: useEvent((mode) => {
|
|
80
|
-
const newSelection = selection.copy();
|
|
81
|
-
newSelection.selectionMode = mode;
|
|
82
|
-
setSelectionState(newSelection);
|
|
83
|
-
}),
|
|
84
|
-
setDeselectable: useEvent((deselectable2) => {
|
|
85
|
-
const newSelection = selection.copy();
|
|
86
|
-
newSelection.deselectable = deselectable2;
|
|
87
|
-
setSelectionState(newSelection);
|
|
88
75
|
})
|
|
89
76
|
};
|
|
90
77
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.18.
|
|
4
|
+
"version": "5.18.1",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -141,64 +141,64 @@
|
|
|
141
141
|
"sideEffects": false,
|
|
142
142
|
"dependencies": {
|
|
143
143
|
"@internationalized/date": "3.8.2",
|
|
144
|
-
"@zag-js/accordion": "1.20.
|
|
145
|
-
"@zag-js/angle-slider": "1.20.
|
|
146
|
-
"@zag-js/anatomy": "1.20.
|
|
147
|
-
"@zag-js/auto-resize": "1.20.
|
|
148
|
-
"@zag-js/avatar": "1.20.
|
|
149
|
-
"@zag-js/carousel": "1.20.
|
|
150
|
-
"@zag-js/checkbox": "1.20.
|
|
151
|
-
"@zag-js/clipboard": "1.20.
|
|
152
|
-
"@zag-js/collapsible": "1.20.
|
|
153
|
-
"@zag-js/collection": "1.20.
|
|
154
|
-
"@zag-js/color-picker": "1.20.
|
|
155
|
-
"@zag-js/color-utils": "1.20.
|
|
156
|
-
"@zag-js/combobox": "1.20.
|
|
157
|
-
"@zag-js/core": "1.20.
|
|
158
|
-
"@zag-js/date-picker": "1.20.
|
|
159
|
-
"@zag-js/date-utils": "1.20.
|
|
160
|
-
"@zag-js/dialog": "1.20.
|
|
161
|
-
"@zag-js/dom-query": "1.20.
|
|
162
|
-
"@zag-js/editable": "1.20.
|
|
163
|
-
"@zag-js/file-upload": "1.20.
|
|
164
|
-
"@zag-js/file-utils": "1.20.
|
|
165
|
-
"@zag-js/focus-trap": "1.20.
|
|
166
|
-
"@zag-js/floating-panel": "1.20.
|
|
167
|
-
"@zag-js/highlight-word": "1.20.
|
|
168
|
-
"@zag-js/hover-card": "1.20.
|
|
169
|
-
"@zag-js/i18n-utils": "1.20.
|
|
170
|
-
"@zag-js/json-tree-utils": "1.20.
|
|
171
|
-
"@zag-js/listbox": "1.20.
|
|
172
|
-
"@zag-js/menu": "1.20.
|
|
173
|
-
"@zag-js/number-input": "1.20.
|
|
174
|
-
"@zag-js/pagination": "1.20.
|
|
175
|
-
"@zag-js/password-input": "1.20.
|
|
176
|
-
"@zag-js/pin-input": "1.20.
|
|
177
|
-
"@zag-js/popover": "1.20.
|
|
178
|
-
"@zag-js/presence": "1.20.
|
|
179
|
-
"@zag-js/progress": "1.20.
|
|
180
|
-
"@zag-js/qr-code": "1.20.
|
|
181
|
-
"@zag-js/radio-group": "1.20.
|
|
182
|
-
"@zag-js/rating-group": "1.20.
|
|
183
|
-
"@zag-js/react": "1.20.
|
|
184
|
-
"@zag-js/select": "1.20.
|
|
185
|
-
"@zag-js/signature-pad": "1.20.
|
|
186
|
-
"@zag-js/slider": "1.20.
|
|
187
|
-
"@zag-js/splitter": "1.20.
|
|
188
|
-
"@zag-js/steps": "1.20.
|
|
189
|
-
"@zag-js/switch": "1.20.
|
|
190
|
-
"@zag-js/tabs": "1.20.
|
|
191
|
-
"@zag-js/tags-input": "1.20.
|
|
192
|
-
"@zag-js/time-picker": "1.20.
|
|
193
|
-
"@zag-js/timer": "1.20.
|
|
194
|
-
"@zag-js/toast": "1.20.
|
|
195
|
-
"@zag-js/toggle": "1.20.
|
|
196
|
-
"@zag-js/toggle-group": "1.20.
|
|
197
|
-
"@zag-js/tooltip": "1.20.
|
|
198
|
-
"@zag-js/tour": "1.20.
|
|
199
|
-
"@zag-js/tree-view": "1.20.
|
|
200
|
-
"@zag-js/types": "1.20.
|
|
201
|
-
"@zag-js/utils": "1.20.
|
|
144
|
+
"@zag-js/accordion": "1.20.1",
|
|
145
|
+
"@zag-js/angle-slider": "1.20.1",
|
|
146
|
+
"@zag-js/anatomy": "1.20.1",
|
|
147
|
+
"@zag-js/auto-resize": "1.20.1",
|
|
148
|
+
"@zag-js/avatar": "1.20.1",
|
|
149
|
+
"@zag-js/carousel": "1.20.1",
|
|
150
|
+
"@zag-js/checkbox": "1.20.1",
|
|
151
|
+
"@zag-js/clipboard": "1.20.1",
|
|
152
|
+
"@zag-js/collapsible": "1.20.1",
|
|
153
|
+
"@zag-js/collection": "1.20.1",
|
|
154
|
+
"@zag-js/color-picker": "1.20.1",
|
|
155
|
+
"@zag-js/color-utils": "1.20.1",
|
|
156
|
+
"@zag-js/combobox": "1.20.1",
|
|
157
|
+
"@zag-js/core": "1.20.1",
|
|
158
|
+
"@zag-js/date-picker": "1.20.1",
|
|
159
|
+
"@zag-js/date-utils": "1.20.1",
|
|
160
|
+
"@zag-js/dialog": "1.20.1",
|
|
161
|
+
"@zag-js/dom-query": "1.20.1",
|
|
162
|
+
"@zag-js/editable": "1.20.1",
|
|
163
|
+
"@zag-js/file-upload": "1.20.1",
|
|
164
|
+
"@zag-js/file-utils": "1.20.1",
|
|
165
|
+
"@zag-js/focus-trap": "1.20.1",
|
|
166
|
+
"@zag-js/floating-panel": "1.20.1",
|
|
167
|
+
"@zag-js/highlight-word": "1.20.1",
|
|
168
|
+
"@zag-js/hover-card": "1.20.1",
|
|
169
|
+
"@zag-js/i18n-utils": "1.20.1",
|
|
170
|
+
"@zag-js/json-tree-utils": "1.20.1",
|
|
171
|
+
"@zag-js/listbox": "1.20.1",
|
|
172
|
+
"@zag-js/menu": "1.20.1",
|
|
173
|
+
"@zag-js/number-input": "1.20.1",
|
|
174
|
+
"@zag-js/pagination": "1.20.1",
|
|
175
|
+
"@zag-js/password-input": "1.20.1",
|
|
176
|
+
"@zag-js/pin-input": "1.20.1",
|
|
177
|
+
"@zag-js/popover": "1.20.1",
|
|
178
|
+
"@zag-js/presence": "1.20.1",
|
|
179
|
+
"@zag-js/progress": "1.20.1",
|
|
180
|
+
"@zag-js/qr-code": "1.20.1",
|
|
181
|
+
"@zag-js/radio-group": "1.20.1",
|
|
182
|
+
"@zag-js/rating-group": "1.20.1",
|
|
183
|
+
"@zag-js/react": "1.20.1",
|
|
184
|
+
"@zag-js/select": "1.20.1",
|
|
185
|
+
"@zag-js/signature-pad": "1.20.1",
|
|
186
|
+
"@zag-js/slider": "1.20.1",
|
|
187
|
+
"@zag-js/splitter": "1.20.1",
|
|
188
|
+
"@zag-js/steps": "1.20.1",
|
|
189
|
+
"@zag-js/switch": "1.20.1",
|
|
190
|
+
"@zag-js/tabs": "1.20.1",
|
|
191
|
+
"@zag-js/tags-input": "1.20.1",
|
|
192
|
+
"@zag-js/time-picker": "1.20.1",
|
|
193
|
+
"@zag-js/timer": "1.20.1",
|
|
194
|
+
"@zag-js/toast": "1.20.1",
|
|
195
|
+
"@zag-js/toggle": "1.20.1",
|
|
196
|
+
"@zag-js/toggle-group": "1.20.1",
|
|
197
|
+
"@zag-js/tooltip": "1.20.1",
|
|
198
|
+
"@zag-js/tour": "1.20.1",
|
|
199
|
+
"@zag-js/tree-view": "1.20.1",
|
|
200
|
+
"@zag-js/types": "1.20.1",
|
|
201
|
+
"@zag-js/utils": "1.20.1"
|
|
202
202
|
},
|
|
203
203
|
"devDependencies": {
|
|
204
204
|
"@biomejs/biome": "1.9.4",
|