@ark-ui/vue 5.18.0 → 5.18.2
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/dist/components/tour/tour.d.cts +2 -1
- package/dist/components/tour/tour.d.ts +2 -1
- package/package.json +60 -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
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { WaitForOptions as WaitOptions } from '@zag-js/dom-query';
|
|
2
|
+
export type { Point, ProgressTextDetails, StatusChangeDetails, StepAction, StepActionMap, StepActionTriggerProps, StepBaseDetails, StepChangeDetails, StepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType, } from '@zag-js/tour';
|
|
2
3
|
export { default as ActionTrigger, type TourActionTriggerBaseProps as ActionTriggerBaseProps, type TourActionTriggerProps as ActionTriggerProps, } from './tour-action-trigger.vue';
|
|
3
4
|
export { default as Actions, type TourActionsProps as ActionsProps } from './tour-actions.vue';
|
|
4
5
|
export { default as Arrow, type TourArrowBaseProps as ArrowBaseProps, type TourArrowProps as ArrowProps, } from './tour-arrow.vue';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { WaitForOptions as WaitOptions } from '@zag-js/dom-query';
|
|
2
|
+
export type { Point, ProgressTextDetails, StatusChangeDetails, StepAction, StepActionMap, StepActionTriggerProps, StepBaseDetails, StepChangeDetails, StepDetails, StepEffectArgs, StepPlacement, StepStatus, StepType, } from '@zag-js/tour';
|
|
2
3
|
export { default as ActionTrigger, type TourActionTriggerBaseProps as ActionTriggerBaseProps, type TourActionTriggerProps as ActionTriggerProps, } from './tour-action-trigger.vue';
|
|
3
4
|
export { default as Actions, type TourActionsProps as ActionsProps } from './tour-actions.vue';
|
|
4
5
|
export { default as Arrow, type TourArrowBaseProps as ArrowBaseProps, type TourArrowProps as ArrowProps, } from './tour-arrow.vue';
|
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.2",
|
|
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.
|
|
144
|
-
"@zag-js/angle-slider": "1.
|
|
145
|
-
"@zag-js/anatomy": "1.
|
|
146
|
-
"@zag-js/auto-resize": "1.
|
|
147
|
-
"@zag-js/avatar": "1.
|
|
148
|
-
"@zag-js/carousel": "1.
|
|
149
|
-
"@zag-js/checkbox": "1.
|
|
150
|
-
"@zag-js/clipboard": "1.
|
|
151
|
-
"@zag-js/collapsible": "1.
|
|
152
|
-
"@zag-js/collection": "1.
|
|
153
|
-
"@zag-js/color-picker": "1.
|
|
154
|
-
"@zag-js/color-utils": "1.
|
|
155
|
-
"@zag-js/combobox": "1.
|
|
156
|
-
"@zag-js/core": "1.
|
|
157
|
-
"@zag-js/date-picker": "1.
|
|
158
|
-
"@zag-js/date-utils": "1.
|
|
159
|
-
"@zag-js/dialog": "1.
|
|
160
|
-
"@zag-js/dom-query": "1.
|
|
161
|
-
"@zag-js/editable": "1.
|
|
162
|
-
"@zag-js/file-upload": "1.
|
|
163
|
-
"@zag-js/file-utils": "1.
|
|
164
|
-
"@zag-js/focus-trap": "1.
|
|
165
|
-
"@zag-js/floating-panel": "1.
|
|
166
|
-
"@zag-js/highlight-word": "1.
|
|
167
|
-
"@zag-js/hover-card": "1.
|
|
168
|
-
"@zag-js/i18n-utils": "1.
|
|
169
|
-
"@zag-js/json-tree-utils": "1.
|
|
170
|
-
"@zag-js/listbox": "1.
|
|
171
|
-
"@zag-js/menu": "1.
|
|
172
|
-
"@zag-js/number-input": "1.
|
|
173
|
-
"@zag-js/pagination": "1.
|
|
174
|
-
"@zag-js/password-input": "1.
|
|
175
|
-
"@zag-js/pin-input": "1.
|
|
176
|
-
"@zag-js/popover": "1.
|
|
177
|
-
"@zag-js/presence": "1.
|
|
178
|
-
"@zag-js/progress": "1.
|
|
179
|
-
"@zag-js/qr-code": "1.
|
|
180
|
-
"@zag-js/radio-group": "1.
|
|
181
|
-
"@zag-js/rating-group": "1.
|
|
182
|
-
"@zag-js/select": "1.
|
|
183
|
-
"@zag-js/signature-pad": "1.
|
|
184
|
-
"@zag-js/slider": "1.
|
|
185
|
-
"@zag-js/splitter": "1.
|
|
186
|
-
"@zag-js/switch": "1.
|
|
187
|
-
"@zag-js/tabs": "1.
|
|
188
|
-
"@zag-js/tags-input": "1.
|
|
189
|
-
"@zag-js/time-picker": "1.
|
|
190
|
-
"@zag-js/timer": "1.
|
|
191
|
-
"@zag-js/toast": "1.
|
|
192
|
-
"@zag-js/toggle": "1.
|
|
193
|
-
"@zag-js/toggle-group": "1.
|
|
194
|
-
"@zag-js/tooltip": "1.
|
|
195
|
-
"@zag-js/tour": "1.
|
|
196
|
-
"@zag-js/tree-view": "1.
|
|
197
|
-
"@zag-js/types": "1.
|
|
198
|
-
"@zag-js/utils": "1.
|
|
199
|
-
"@zag-js/steps": "1.
|
|
200
|
-
"@zag-js/vue": "1.
|
|
143
|
+
"@zag-js/accordion": "1.21.0",
|
|
144
|
+
"@zag-js/angle-slider": "1.21.0",
|
|
145
|
+
"@zag-js/anatomy": "1.21.0",
|
|
146
|
+
"@zag-js/auto-resize": "1.21.0",
|
|
147
|
+
"@zag-js/avatar": "1.21.0",
|
|
148
|
+
"@zag-js/carousel": "1.21.0",
|
|
149
|
+
"@zag-js/checkbox": "1.21.0",
|
|
150
|
+
"@zag-js/clipboard": "1.21.0",
|
|
151
|
+
"@zag-js/collapsible": "1.21.0",
|
|
152
|
+
"@zag-js/collection": "1.21.0",
|
|
153
|
+
"@zag-js/color-picker": "1.21.0",
|
|
154
|
+
"@zag-js/color-utils": "1.21.0",
|
|
155
|
+
"@zag-js/combobox": "1.21.0",
|
|
156
|
+
"@zag-js/core": "1.21.0",
|
|
157
|
+
"@zag-js/date-picker": "1.21.0",
|
|
158
|
+
"@zag-js/date-utils": "1.21.0",
|
|
159
|
+
"@zag-js/dialog": "1.21.0",
|
|
160
|
+
"@zag-js/dom-query": "1.21.0",
|
|
161
|
+
"@zag-js/editable": "1.21.0",
|
|
162
|
+
"@zag-js/file-upload": "1.21.0",
|
|
163
|
+
"@zag-js/file-utils": "1.21.0",
|
|
164
|
+
"@zag-js/focus-trap": "1.21.0",
|
|
165
|
+
"@zag-js/floating-panel": "1.21.0",
|
|
166
|
+
"@zag-js/highlight-word": "1.21.0",
|
|
167
|
+
"@zag-js/hover-card": "1.21.0",
|
|
168
|
+
"@zag-js/i18n-utils": "1.21.0",
|
|
169
|
+
"@zag-js/json-tree-utils": "1.21.0",
|
|
170
|
+
"@zag-js/listbox": "1.21.0",
|
|
171
|
+
"@zag-js/menu": "1.21.0",
|
|
172
|
+
"@zag-js/number-input": "1.21.0",
|
|
173
|
+
"@zag-js/pagination": "1.21.0",
|
|
174
|
+
"@zag-js/password-input": "1.21.0",
|
|
175
|
+
"@zag-js/pin-input": "1.21.0",
|
|
176
|
+
"@zag-js/popover": "1.21.0",
|
|
177
|
+
"@zag-js/presence": "1.21.0",
|
|
178
|
+
"@zag-js/progress": "1.21.0",
|
|
179
|
+
"@zag-js/qr-code": "1.21.0",
|
|
180
|
+
"@zag-js/radio-group": "1.21.0",
|
|
181
|
+
"@zag-js/rating-group": "1.21.0",
|
|
182
|
+
"@zag-js/select": "1.21.0",
|
|
183
|
+
"@zag-js/signature-pad": "1.21.0",
|
|
184
|
+
"@zag-js/slider": "1.21.0",
|
|
185
|
+
"@zag-js/splitter": "1.21.0",
|
|
186
|
+
"@zag-js/switch": "1.21.0",
|
|
187
|
+
"@zag-js/tabs": "1.21.0",
|
|
188
|
+
"@zag-js/tags-input": "1.21.0",
|
|
189
|
+
"@zag-js/time-picker": "1.21.0",
|
|
190
|
+
"@zag-js/timer": "1.21.0",
|
|
191
|
+
"@zag-js/toast": "1.21.0",
|
|
192
|
+
"@zag-js/toggle": "1.21.0",
|
|
193
|
+
"@zag-js/toggle-group": "1.21.0",
|
|
194
|
+
"@zag-js/tooltip": "1.21.0",
|
|
195
|
+
"@zag-js/tour": "1.21.0",
|
|
196
|
+
"@zag-js/tree-view": "1.21.0",
|
|
197
|
+
"@zag-js/types": "1.21.0",
|
|
198
|
+
"@zag-js/utils": "1.21.0",
|
|
199
|
+
"@zag-js/steps": "1.21.0",
|
|
200
|
+
"@zag-js/vue": "1.21.0"
|
|
201
201
|
},
|
|
202
202
|
"devDependencies": {
|
|
203
203
|
"@biomejs/biome": "1.9.4",
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
"@vitejs/plugin-vue-jsx": "5.0.1",
|
|
212
212
|
"@vue/compiler-sfc": "3.5.17",
|
|
213
213
|
"clean-package": "2.2.0",
|
|
214
|
+
"image-conversion": "2.1.1",
|
|
214
215
|
"globby": "14.1.0",
|
|
215
216
|
"histoire": "0.17.17",
|
|
216
217
|
"jsdom": "26.1.0",
|