@ark-ui/vue 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.
- package/dist/components/collection/use-list-selection.cjs +0 -13
- package/dist/components/collection/use-list-selection.d.cts +0 -12
- package/dist/components/collection/use-list-selection.d.ts +0 -12
- package/dist/components/collection/use-list-selection.js +0 -13
- package/dist/components/menu/menu-separator.vue.cjs +1 -6
- package/dist/components/menu/menu-separator.vue.d.cts +1 -8
- package/dist/components/menu/menu-separator.vue.d.ts +1 -8
- package/dist/components/menu/menu-separator.vue.js +2 -7
- package/package.json +59 -59
|
@@ -95,19 +95,6 @@ function useListSelection(props) {
|
|
|
95
95
|
},
|
|
96
96
|
resetSelection: () => {
|
|
97
97
|
selection.value = createSelection();
|
|
98
|
-
},
|
|
99
|
-
setSelection: (newSelection) => {
|
|
100
|
-
selection.value = selection.value.setSelection(newSelection);
|
|
101
|
-
},
|
|
102
|
-
setSelectionMode: (mode) => {
|
|
103
|
-
const newSelection = selection.value.copy();
|
|
104
|
-
newSelection.selectionMode = mode;
|
|
105
|
-
selection.value = newSelection;
|
|
106
|
-
},
|
|
107
|
-
setDeselectable: (deselectable) => {
|
|
108
|
-
const newSelection = selection.value.copy();
|
|
109
|
-
newSelection.deselectable = deselectable;
|
|
110
|
-
selection.value = newSelection;
|
|
111
98
|
}
|
|
112
99
|
};
|
|
113
100
|
}
|
|
@@ -89,16 +89,4 @@ export interface UseListSelectionReturn {
|
|
|
89
89
|
* Returns true if at least one item from the collection is selected.
|
|
90
90
|
*/
|
|
91
91
|
isSomeSelected: () => boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Set the selection to a specific array of items.
|
|
94
|
-
*/
|
|
95
|
-
setSelection: (selection: string[]) => void;
|
|
96
|
-
/**
|
|
97
|
-
* Set the selection mode.
|
|
98
|
-
*/
|
|
99
|
-
setSelectionMode: (mode: SelectionMode) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Set whether the selection is deselectable.
|
|
102
|
-
*/
|
|
103
|
-
setDeselectable: (deselectable: boolean) => void;
|
|
104
92
|
}
|
|
@@ -89,16 +89,4 @@ export interface UseListSelectionReturn {
|
|
|
89
89
|
* Returns true if at least one item from the collection is selected.
|
|
90
90
|
*/
|
|
91
91
|
isSomeSelected: () => boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Set the selection to a specific array of items.
|
|
94
|
-
*/
|
|
95
|
-
setSelection: (selection: string[]) => void;
|
|
96
|
-
/**
|
|
97
|
-
* Set the selection mode.
|
|
98
|
-
*/
|
|
99
|
-
setSelectionMode: (mode: SelectionMode) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Set whether the selection is deselectable.
|
|
102
|
-
*/
|
|
103
|
-
setDeselectable: (deselectable: boolean) => void;
|
|
104
92
|
}
|
|
@@ -91,19 +91,6 @@ function useListSelection(props) {
|
|
|
91
91
|
},
|
|
92
92
|
resetSelection: () => {
|
|
93
93
|
selection.value = createSelection();
|
|
94
|
-
},
|
|
95
|
-
setSelection: (newSelection) => {
|
|
96
|
-
selection.value = selection.value.setSelection(newSelection);
|
|
97
|
-
},
|
|
98
|
-
setSelectionMode: (mode) => {
|
|
99
|
-
const newSelection = selection.value.copy();
|
|
100
|
-
newSelection.selectionMode = mode;
|
|
101
|
-
selection.value = newSelection;
|
|
102
|
-
},
|
|
103
|
-
setDeselectable: (deselectable) => {
|
|
104
|
-
const newSelection = selection.value.copy();
|
|
105
|
-
newSelection.deselectable = deselectable;
|
|
106
|
-
selection.value = newSelection;
|
|
107
94
|
}
|
|
108
95
|
};
|
|
109
96
|
}
|
|
@@ -16,12 +16,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
16
16
|
const menu = useMenuContext.useMenuContext();
|
|
17
17
|
useForwardExpose.useForwardExpose();
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).hr, vue.mergeProps(vue.unref(menu).getSeparatorProps(), { "as-child": _ctx.asChild }),
|
|
20
|
-
default: vue.withCtx(() => [
|
|
21
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
22
|
-
]),
|
|
23
|
-
_: 3
|
|
24
|
-
}, 16, ["as-child"]);
|
|
19
|
+
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).hr, vue.mergeProps(vue.unref(menu).getSeparatorProps(), { "as-child": _ctx.asChild }), null, 16, ["as-child"]);
|
|
25
20
|
};
|
|
26
21
|
}
|
|
27
22
|
});
|
|
@@ -8,12 +8,5 @@ export interface MenuSeparatorProps extends MenuSeparatorBaseProps,
|
|
|
8
8
|
*/
|
|
9
9
|
HTMLAttributes {
|
|
10
10
|
}
|
|
11
|
-
declare const _default:
|
|
12
|
-
default?(_: {}): any;
|
|
13
|
-
}>;
|
|
11
|
+
declare const _default: DefineComponent<MenuSeparatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MenuSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
12
|
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -8,12 +8,5 @@ export interface MenuSeparatorProps extends MenuSeparatorBaseProps,
|
|
|
8
8
|
*/
|
|
9
9
|
HTMLAttributes {
|
|
10
10
|
}
|
|
11
|
-
declare const _default:
|
|
12
|
-
default?(_: {}): any;
|
|
13
|
-
}>;
|
|
11
|
+
declare const _default: DefineComponent<MenuSeparatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MenuSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
12
|
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, unref, mergeProps
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps } from 'vue';
|
|
2
2
|
import { ark } from '../factory.js';
|
|
3
3
|
import { useMenuContext } from './use-menu-context.js';
|
|
4
4
|
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
@@ -12,12 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
const menu = useMenuContext();
|
|
13
13
|
useForwardExpose();
|
|
14
14
|
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createBlock(unref(ark).hr, mergeProps(unref(menu).getSeparatorProps(), { "as-child": _ctx.asChild }),
|
|
16
|
-
default: withCtx(() => [
|
|
17
|
-
renderSlot(_ctx.$slots, "default")
|
|
18
|
-
]),
|
|
19
|
-
_: 3
|
|
20
|
-
}, 16, ["as-child"]);
|
|
15
|
+
return openBlock(), createBlock(unref(ark).hr, mergeProps(unref(menu).getSeparatorProps(), { "as-child": _ctx.asChild }), null, 16, ["as-child"]);
|
|
21
16
|
};
|
|
22
17
|
}
|
|
23
18
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.18.
|
|
4
|
+
"version": "5.18.1",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -140,64 +140,64 @@
|
|
|
140
140
|
"sideEffects": false,
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@internationalized/date": "3.8.2",
|
|
143
|
-
"@zag-js/accordion": "1.20.
|
|
144
|
-
"@zag-js/angle-slider": "1.20.
|
|
145
|
-
"@zag-js/anatomy": "1.20.
|
|
146
|
-
"@zag-js/auto-resize": "1.20.
|
|
147
|
-
"@zag-js/avatar": "1.20.
|
|
148
|
-
"@zag-js/carousel": "1.20.
|
|
149
|
-
"@zag-js/checkbox": "1.20.
|
|
150
|
-
"@zag-js/clipboard": "1.20.
|
|
151
|
-
"@zag-js/collapsible": "1.20.
|
|
152
|
-
"@zag-js/collection": "1.20.
|
|
153
|
-
"@zag-js/color-picker": "1.20.
|
|
154
|
-
"@zag-js/color-utils": "1.20.
|
|
155
|
-
"@zag-js/combobox": "1.20.
|
|
156
|
-
"@zag-js/core": "1.20.
|
|
157
|
-
"@zag-js/date-picker": "1.20.
|
|
158
|
-
"@zag-js/date-utils": "1.20.
|
|
159
|
-
"@zag-js/dialog": "1.20.
|
|
160
|
-
"@zag-js/dom-query": "1.20.
|
|
161
|
-
"@zag-js/editable": "1.20.
|
|
162
|
-
"@zag-js/file-upload": "1.20.
|
|
163
|
-
"@zag-js/file-utils": "1.20.
|
|
164
|
-
"@zag-js/focus-trap": "1.20.
|
|
165
|
-
"@zag-js/floating-panel": "1.20.
|
|
166
|
-
"@zag-js/highlight-word": "1.20.
|
|
167
|
-
"@zag-js/hover-card": "1.20.
|
|
168
|
-
"@zag-js/i18n-utils": "1.20.
|
|
169
|
-
"@zag-js/json-tree-utils": "1.20.
|
|
170
|
-
"@zag-js/listbox": "1.20.
|
|
171
|
-
"@zag-js/menu": "1.20.
|
|
172
|
-
"@zag-js/number-input": "1.20.
|
|
173
|
-
"@zag-js/pagination": "1.20.
|
|
174
|
-
"@zag-js/password-input": "1.20.
|
|
175
|
-
"@zag-js/pin-input": "1.20.
|
|
176
|
-
"@zag-js/popover": "1.20.
|
|
177
|
-
"@zag-js/presence": "1.20.
|
|
178
|
-
"@zag-js/progress": "1.20.
|
|
179
|
-
"@zag-js/qr-code": "1.20.
|
|
180
|
-
"@zag-js/radio-group": "1.20.
|
|
181
|
-
"@zag-js/rating-group": "1.20.
|
|
182
|
-
"@zag-js/select": "1.20.
|
|
183
|
-
"@zag-js/signature-pad": "1.20.
|
|
184
|
-
"@zag-js/slider": "1.20.
|
|
185
|
-
"@zag-js/splitter": "1.20.
|
|
186
|
-
"@zag-js/switch": "1.20.
|
|
187
|
-
"@zag-js/tabs": "1.20.
|
|
188
|
-
"@zag-js/tags-input": "1.20.
|
|
189
|
-
"@zag-js/time-picker": "1.20.
|
|
190
|
-
"@zag-js/timer": "1.20.
|
|
191
|
-
"@zag-js/toast": "1.20.
|
|
192
|
-
"@zag-js/toggle": "1.20.
|
|
193
|
-
"@zag-js/toggle-group": "1.20.
|
|
194
|
-
"@zag-js/tooltip": "1.20.
|
|
195
|
-
"@zag-js/tour": "1.20.
|
|
196
|
-
"@zag-js/tree-view": "1.20.
|
|
197
|
-
"@zag-js/types": "1.20.
|
|
198
|
-
"@zag-js/utils": "1.20.
|
|
199
|
-
"@zag-js/steps": "1.20.
|
|
200
|
-
"@zag-js/vue": "1.20.
|
|
143
|
+
"@zag-js/accordion": "1.20.1",
|
|
144
|
+
"@zag-js/angle-slider": "1.20.1",
|
|
145
|
+
"@zag-js/anatomy": "1.20.1",
|
|
146
|
+
"@zag-js/auto-resize": "1.20.1",
|
|
147
|
+
"@zag-js/avatar": "1.20.1",
|
|
148
|
+
"@zag-js/carousel": "1.20.1",
|
|
149
|
+
"@zag-js/checkbox": "1.20.1",
|
|
150
|
+
"@zag-js/clipboard": "1.20.1",
|
|
151
|
+
"@zag-js/collapsible": "1.20.1",
|
|
152
|
+
"@zag-js/collection": "1.20.1",
|
|
153
|
+
"@zag-js/color-picker": "1.20.1",
|
|
154
|
+
"@zag-js/color-utils": "1.20.1",
|
|
155
|
+
"@zag-js/combobox": "1.20.1",
|
|
156
|
+
"@zag-js/core": "1.20.1",
|
|
157
|
+
"@zag-js/date-picker": "1.20.1",
|
|
158
|
+
"@zag-js/date-utils": "1.20.1",
|
|
159
|
+
"@zag-js/dialog": "1.20.1",
|
|
160
|
+
"@zag-js/dom-query": "1.20.1",
|
|
161
|
+
"@zag-js/editable": "1.20.1",
|
|
162
|
+
"@zag-js/file-upload": "1.20.1",
|
|
163
|
+
"@zag-js/file-utils": "1.20.1",
|
|
164
|
+
"@zag-js/focus-trap": "1.20.1",
|
|
165
|
+
"@zag-js/floating-panel": "1.20.1",
|
|
166
|
+
"@zag-js/highlight-word": "1.20.1",
|
|
167
|
+
"@zag-js/hover-card": "1.20.1",
|
|
168
|
+
"@zag-js/i18n-utils": "1.20.1",
|
|
169
|
+
"@zag-js/json-tree-utils": "1.20.1",
|
|
170
|
+
"@zag-js/listbox": "1.20.1",
|
|
171
|
+
"@zag-js/menu": "1.20.1",
|
|
172
|
+
"@zag-js/number-input": "1.20.1",
|
|
173
|
+
"@zag-js/pagination": "1.20.1",
|
|
174
|
+
"@zag-js/password-input": "1.20.1",
|
|
175
|
+
"@zag-js/pin-input": "1.20.1",
|
|
176
|
+
"@zag-js/popover": "1.20.1",
|
|
177
|
+
"@zag-js/presence": "1.20.1",
|
|
178
|
+
"@zag-js/progress": "1.20.1",
|
|
179
|
+
"@zag-js/qr-code": "1.20.1",
|
|
180
|
+
"@zag-js/radio-group": "1.20.1",
|
|
181
|
+
"@zag-js/rating-group": "1.20.1",
|
|
182
|
+
"@zag-js/select": "1.20.1",
|
|
183
|
+
"@zag-js/signature-pad": "1.20.1",
|
|
184
|
+
"@zag-js/slider": "1.20.1",
|
|
185
|
+
"@zag-js/splitter": "1.20.1",
|
|
186
|
+
"@zag-js/switch": "1.20.1",
|
|
187
|
+
"@zag-js/tabs": "1.20.1",
|
|
188
|
+
"@zag-js/tags-input": "1.20.1",
|
|
189
|
+
"@zag-js/time-picker": "1.20.1",
|
|
190
|
+
"@zag-js/timer": "1.20.1",
|
|
191
|
+
"@zag-js/toast": "1.20.1",
|
|
192
|
+
"@zag-js/toggle": "1.20.1",
|
|
193
|
+
"@zag-js/toggle-group": "1.20.1",
|
|
194
|
+
"@zag-js/tooltip": "1.20.1",
|
|
195
|
+
"@zag-js/tour": "1.20.1",
|
|
196
|
+
"@zag-js/tree-view": "1.20.1",
|
|
197
|
+
"@zag-js/types": "1.20.1",
|
|
198
|
+
"@zag-js/utils": "1.20.1",
|
|
199
|
+
"@zag-js/steps": "1.20.1",
|
|
200
|
+
"@zag-js/vue": "1.20.1"
|
|
201
201
|
},
|
|
202
202
|
"devDependencies": {
|
|
203
203
|
"@biomejs/biome": "1.9.4",
|