@nuxt/ui 2.18.3 → 2.18.5
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/README.md +1 -1
- package/dist/module.d.mts +1 -6
- package/dist/module.d.ts +1 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -8
- package/dist/runtime/components/data/Table.vue +5 -4
- package/dist/runtime/components/data/Table.vue.d.ts +1749 -9
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1014 -9
- package/dist/runtime/components/elements/Alert.vue.d.ts +1257 -7
- package/dist/runtime/components/elements/Avatar.vue.d.ts +53 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +6 -6
- package/dist/runtime/components/elements/Badge.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +280 -10
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/Carousel.vue.d.ts +857 -7
- package/dist/runtime/components/elements/Chip.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +639 -10
- package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Kbd.vue.d.ts +6 -6
- package/dist/runtime/components/elements/Link.vue +1 -0
- package/dist/runtime/components/elements/Link.vue.d.ts +8 -8
- package/dist/runtime/components/elements/Meter.vue.d.ts +54 -8
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -7
- package/dist/runtime/components/elements/Progress.vue.d.ts +9 -9
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +9 -9
- package/dist/runtime/components/forms/Form.vue +6 -8
- package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Input.vue +1 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +56 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +710 -13
- package/dist/runtime/components/forms/Radio.vue.d.ts +9 -9
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +188 -8
- package/dist/runtime/components/forms/Range.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Select.vue.d.ts +55 -9
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +909 -12
- package/dist/runtime/components/forms/Textarea.vue +3 -0
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue.d.ts +143 -9
- package/dist/runtime/components/layout/Card.vue.d.ts +6 -6
- package/dist/runtime/components/layout/Container.vue.d.ts +6 -6
- package/dist/runtime/components/layout/Divider.vue.d.ts +408 -7
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +6 -6
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +276 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1729 -9
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +545 -6
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +768 -6
- package/dist/runtime/components/navigation/Pagination.vue +4 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +859 -9
- package/dist/runtime/components/navigation/Tabs.vue +9 -2
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +234 -11
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1413 -6
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +9 -9
- package/dist/runtime/components/overlays/Modal.vue.d.ts +343 -9
- package/dist/runtime/components/overlays/Notification.vue.d.ts +1258 -8
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1541 -11
- package/dist/runtime/components/overlays/Popover.vue.d.ts +113 -11
- package/dist/runtime/components/overlays/Slideover.vue +2 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +343 -9
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +107 -9
- package/dist/runtime/composables/useFormGroup.d.ts +2 -2
- package/dist/runtime/composables/useFormGroup.js +17 -19
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/usePopper.d.ts +262 -1
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/plugins/colors.js +5 -5
- package/dist/runtime/types/command-palette.d.ts +2 -2
- package/dist/runtime/ui.config/elements/button.js +9 -9
- package/dist/runtime/ui.config/elements/carousel.js +1 -1
- package/dist/runtime/utils/colors.js +75 -67
- package/dist/runtime/utils/index.d.ts +2 -1
- package/dist/runtime/utils/index.js +5 -1
- package/package.json +26 -28
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
|
|
55
55
|
<script>
|
|
56
|
-
import { toRef, ref, watch, onMounted, defineComponent } from "vue";
|
|
56
|
+
import { toRef, ref, watch, onMounted, defineComponent, nextTick } from "vue";
|
|
57
57
|
import { TabGroup as HTabGroup, TabList as HTabList, Tab as HTab, TabPanels as HTabPanels, TabPanel as HTabPanel, provideUseId } from "@headlessui/vue";
|
|
58
58
|
import { useResizeObserver } from "@vueuse/core";
|
|
59
59
|
import UIcon from "../elements/Icon.vue";
|
|
@@ -143,7 +143,14 @@ export default defineComponent({
|
|
|
143
143
|
selectedIndex.value = value;
|
|
144
144
|
calcMarkerSize(selectedIndex.value);
|
|
145
145
|
});
|
|
146
|
-
|
|
146
|
+
watch(() => props.items, async () => {
|
|
147
|
+
await nextTick();
|
|
148
|
+
calcMarkerSize(selectedIndex.value);
|
|
149
|
+
}, { deep: true });
|
|
150
|
+
onMounted(async () => {
|
|
151
|
+
await nextTick();
|
|
152
|
+
calcMarkerSize(selectedIndex.value);
|
|
153
|
+
});
|
|
147
154
|
provideUseId(() => useId());
|
|
148
155
|
return {
|
|
149
156
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { TabItem, Strategy } from '../../types.js';
|
|
2
|
+
import type { TabItem, Strategy } from '../../types/index.js';
|
|
3
3
|
declare const config: {
|
|
4
4
|
wrapper: string;
|
|
5
5
|
container: string;
|
|
@@ -34,7 +34,7 @@ declare const config: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
declare const _default: import("vue").DefineComponent<{
|
|
37
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
38
38
|
modelValue: {
|
|
39
39
|
type: NumberConstructor;
|
|
40
40
|
default: any;
|
|
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
70
|
}>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
|
-
}
|
|
73
|
+
}>, {
|
|
74
74
|
ui: import("vue").ComputedRef<{
|
|
75
75
|
wrapper: string;
|
|
76
76
|
container: string;
|
|
@@ -108,12 +108,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
108
|
attrs: import("vue").ComputedRef<Pick<{
|
|
109
109
|
[x: string]: unknown;
|
|
110
110
|
}, string>>;
|
|
111
|
-
listRef: import("vue").Ref<HTMLElement>;
|
|
112
|
-
itemRefs: import("vue").Ref<HTMLElement[]>;
|
|
113
|
-
markerRef: import("vue").Ref<HTMLElement>;
|
|
114
|
-
selectedIndex: import("vue").Ref<number>;
|
|
111
|
+
listRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
112
|
+
itemRefs: import("vue").Ref<HTMLElement[], HTMLElement[]>;
|
|
113
|
+
markerRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
114
|
+
selectedIndex: import("vue").Ref<number, number>;
|
|
115
115
|
onChange: (index: number) => void;
|
|
116
|
-
},
|
|
116
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
117
117
|
modelValue: {
|
|
118
118
|
type: NumberConstructor;
|
|
119
119
|
default: any;
|
|
@@ -149,10 +149,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
149
|
}>;
|
|
150
150
|
default: () => {};
|
|
151
151
|
};
|
|
152
|
-
}>> & {
|
|
152
|
+
}>> & Readonly<{
|
|
153
153
|
onChange?: (...args: any[]) => any;
|
|
154
154
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
155
|
-
}
|
|
155
|
+
}>, {
|
|
156
156
|
class: any;
|
|
157
157
|
content: boolean;
|
|
158
158
|
orientation: "horizontal" | "vertical";
|
|
@@ -161,5 +161,228 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
161
161
|
unmount: boolean;
|
|
162
162
|
items: TabItem[];
|
|
163
163
|
defaultIndex: number;
|
|
164
|
-
}, {}
|
|
164
|
+
}, {}, {
|
|
165
|
+
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
166
|
+
name: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
required: true;
|
|
169
|
+
};
|
|
170
|
+
mode: {
|
|
171
|
+
type: PropType<"svg" | "css">;
|
|
172
|
+
required: false;
|
|
173
|
+
default: any;
|
|
174
|
+
};
|
|
175
|
+
size: {
|
|
176
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
177
|
+
required: false;
|
|
178
|
+
default: any;
|
|
179
|
+
};
|
|
180
|
+
customize: {
|
|
181
|
+
type: FunctionConstructor;
|
|
182
|
+
required: false;
|
|
183
|
+
default: any;
|
|
184
|
+
};
|
|
185
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
|
+
name: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
required: true;
|
|
189
|
+
};
|
|
190
|
+
mode: {
|
|
191
|
+
type: PropType<"svg" | "css">;
|
|
192
|
+
required: false;
|
|
193
|
+
default: any;
|
|
194
|
+
};
|
|
195
|
+
size: {
|
|
196
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
197
|
+
required: false;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
customize: {
|
|
201
|
+
type: FunctionConstructor;
|
|
202
|
+
required: false;
|
|
203
|
+
default: any;
|
|
204
|
+
};
|
|
205
|
+
}>> & Readonly<{}>, {
|
|
206
|
+
mode: "svg" | "css";
|
|
207
|
+
size: string | number;
|
|
208
|
+
customize: Function;
|
|
209
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
210
|
+
HTabGroup: import("vue").DefineComponent<{
|
|
211
|
+
as: {
|
|
212
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
213
|
+
default: string;
|
|
214
|
+
};
|
|
215
|
+
selectedIndex: {
|
|
216
|
+
type: NumberConstructor[];
|
|
217
|
+
default: null;
|
|
218
|
+
};
|
|
219
|
+
defaultIndex: {
|
|
220
|
+
type: NumberConstructor[];
|
|
221
|
+
default: number;
|
|
222
|
+
};
|
|
223
|
+
vertical: {
|
|
224
|
+
type: BooleanConstructor[];
|
|
225
|
+
default: boolean;
|
|
226
|
+
};
|
|
227
|
+
manual: {
|
|
228
|
+
type: BooleanConstructor[];
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
234
|
+
change: (_index: number) => true;
|
|
235
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
236
|
+
as: {
|
|
237
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
238
|
+
default: string;
|
|
239
|
+
};
|
|
240
|
+
selectedIndex: {
|
|
241
|
+
type: NumberConstructor[];
|
|
242
|
+
default: null;
|
|
243
|
+
};
|
|
244
|
+
defaultIndex: {
|
|
245
|
+
type: NumberConstructor[];
|
|
246
|
+
default: number;
|
|
247
|
+
};
|
|
248
|
+
vertical: {
|
|
249
|
+
type: BooleanConstructor[];
|
|
250
|
+
default: boolean;
|
|
251
|
+
};
|
|
252
|
+
manual: {
|
|
253
|
+
type: BooleanConstructor[];
|
|
254
|
+
default: boolean;
|
|
255
|
+
};
|
|
256
|
+
}>> & {
|
|
257
|
+
onChange?: ((_index: number) => any) | undefined;
|
|
258
|
+
}, {
|
|
259
|
+
as: string | Record<string, any>;
|
|
260
|
+
vertical: boolean;
|
|
261
|
+
manual: boolean;
|
|
262
|
+
selectedIndex: number;
|
|
263
|
+
defaultIndex: number;
|
|
264
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
265
|
+
HTabList: import("vue").DefineComponent<{
|
|
266
|
+
as: {
|
|
267
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
268
|
+
default: string;
|
|
269
|
+
};
|
|
270
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
271
|
+
[key: string]: any;
|
|
272
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
273
|
+
[key: string]: any;
|
|
274
|
+
}>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
275
|
+
as: {
|
|
276
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
277
|
+
default: string;
|
|
278
|
+
};
|
|
279
|
+
}>>, {
|
|
280
|
+
as: string | Record<string, any>;
|
|
281
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
282
|
+
HTab: import("vue").DefineComponent<{
|
|
283
|
+
as: {
|
|
284
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
285
|
+
default: string;
|
|
286
|
+
};
|
|
287
|
+
disabled: {
|
|
288
|
+
type: BooleanConstructor[];
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
id: {
|
|
292
|
+
type: StringConstructor;
|
|
293
|
+
default: null;
|
|
294
|
+
};
|
|
295
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
298
|
+
[key: string]: any;
|
|
299
|
+
}>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
300
|
+
as: {
|
|
301
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
302
|
+
default: string;
|
|
303
|
+
};
|
|
304
|
+
disabled: {
|
|
305
|
+
type: BooleanConstructor[];
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
id: {
|
|
309
|
+
type: StringConstructor;
|
|
310
|
+
default: null;
|
|
311
|
+
};
|
|
312
|
+
}>>, {
|
|
313
|
+
id: string;
|
|
314
|
+
as: string | Record<string, any>;
|
|
315
|
+
disabled: boolean;
|
|
316
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
317
|
+
HTabPanels: import("vue").DefineComponent<{
|
|
318
|
+
as: {
|
|
319
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
320
|
+
default: string;
|
|
321
|
+
};
|
|
322
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
323
|
+
[key: string]: any;
|
|
324
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
325
|
+
[key: string]: any;
|
|
326
|
+
}>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
327
|
+
as: {
|
|
328
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
329
|
+
default: string;
|
|
330
|
+
};
|
|
331
|
+
}>>, {
|
|
332
|
+
as: string | Record<string, any>;
|
|
333
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
334
|
+
HTabPanel: import("vue").DefineComponent<{
|
|
335
|
+
as: {
|
|
336
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
337
|
+
default: string;
|
|
338
|
+
};
|
|
339
|
+
static: {
|
|
340
|
+
type: BooleanConstructor;
|
|
341
|
+
default: boolean;
|
|
342
|
+
};
|
|
343
|
+
unmount: {
|
|
344
|
+
type: BooleanConstructor;
|
|
345
|
+
default: boolean;
|
|
346
|
+
};
|
|
347
|
+
id: {
|
|
348
|
+
type: StringConstructor;
|
|
349
|
+
default: null;
|
|
350
|
+
};
|
|
351
|
+
tabIndex: {
|
|
352
|
+
type: NumberConstructor;
|
|
353
|
+
default: number;
|
|
354
|
+
};
|
|
355
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
356
|
+
[key: string]: any;
|
|
357
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
358
|
+
[key: string]: any;
|
|
359
|
+
}>[] | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
360
|
+
as: {
|
|
361
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
362
|
+
default: string;
|
|
363
|
+
};
|
|
364
|
+
static: {
|
|
365
|
+
type: BooleanConstructor;
|
|
366
|
+
default: boolean;
|
|
367
|
+
};
|
|
368
|
+
unmount: {
|
|
369
|
+
type: BooleanConstructor;
|
|
370
|
+
default: boolean;
|
|
371
|
+
};
|
|
372
|
+
id: {
|
|
373
|
+
type: StringConstructor;
|
|
374
|
+
default: null;
|
|
375
|
+
};
|
|
376
|
+
tabIndex: {
|
|
377
|
+
type: NumberConstructor;
|
|
378
|
+
default: number;
|
|
379
|
+
};
|
|
380
|
+
}>>, {
|
|
381
|
+
id: string;
|
|
382
|
+
tabIndex: number;
|
|
383
|
+
as: string | Record<string, any>;
|
|
384
|
+
unmount: boolean;
|
|
385
|
+
static: boolean;
|
|
386
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
387
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
165
388
|
export default _default;
|