@nuxt/ui 2.19.2 → 2.21.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/README.md +2 -2
- package/dist/module.d.mts +2 -0
- package/dist/module.d.ts +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -11
- package/dist/runtime/components/data/Table.vue +88 -38
- package/dist/runtime/components/data/Table.vue.d.ts +73 -61
- package/dist/runtime/components/elements/Accordion.vue +3 -1
- package/dist/runtime/components/elements/Accordion.vue.d.ts +25 -24
- package/dist/runtime/components/elements/Alert.vue +2 -2
- package/dist/runtime/components/elements/Alert.vue.d.ts +39 -39
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +3 -3
- package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -9
- package/dist/runtime/components/elements/AvatarGroup.js +2 -2
- package/dist/runtime/components/elements/Badge.vue +71 -4
- package/dist/runtime/components/elements/Badge.vue.d.ts +131 -4
- package/dist/runtime/components/elements/Button.vue +2 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +20 -20
- package/dist/runtime/components/elements/ButtonGroup.d.ts +15 -13
- package/dist/runtime/components/elements/ButtonGroup.js +2 -2
- package/dist/runtime/components/elements/Carousel.vue +1 -2
- package/dist/runtime/components/elements/Carousel.vue.d.ts +43 -41
- package/dist/runtime/components/elements/Chip.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Dropdown.vue +2 -2
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Link.vue +15 -4
- package/dist/runtime/components/elements/Link.vue.d.ts +30 -29
- package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
- package/dist/runtime/components/elements/MeterGroup.d.ts +20 -18
- package/dist/runtime/components/elements/MeterGroup.js +1 -1
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Checkbox.vue +2 -2
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Form.vue +6 -5
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Input.vue +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +3 -3
- package/dist/runtime/components/forms/InputMenu.vue +37 -7
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +13 -12
- package/dist/runtime/components/forms/Radio.vue +2 -2
- package/dist/runtime/components/forms/Radio.vue.d.ts +2 -2
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +4 -4
- package/dist/runtime/components/forms/Range.vue +2 -2
- package/dist/runtime/components/forms/Range.vue.d.ts +2 -2
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +3 -3
- package/dist/runtime/components/forms/SelectMenu.vue +48 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +12 -11
- package/dist/runtime/components/forms/Textarea.vue +2 -2
- package/dist/runtime/components/forms/Textarea.vue.d.ts +3 -3
- package/dist/runtime/components/forms/Toggle.vue +2 -2
- package/dist/runtime/components/forms/Toggle.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +1 -1
- package/dist/runtime/components/layout/Divider.vue +2 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +19 -19
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Breadcrumb.vue +2 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +26 -26
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +164 -22
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +38 -38
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +186 -44
- package/dist/runtime/components/overlays/ContextMenu.vue +2 -2
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +8 -4
- package/dist/runtime/components/overlays/Notification.vue.d.ts +50 -41
- package/dist/runtime/components/overlays/Notifications.vue +4 -4
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +55 -46
- package/dist/runtime/components/overlays/Popover.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/types/checkbox.d.ts +3 -0
- package/dist/runtime/types/divider.d.ts +1 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/link.d.ts +1 -1
- package/dist/runtime/types/utils.d.ts +1 -1
- package/dist/runtime/ui.config/data/table.d.ts +9 -8
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/badge.d.ts +15 -0
- package/dist/runtime/ui.config/elements/badge.js +15 -0
- package/dist/runtime/ui.config/elements/carousel.d.ts +3 -2
- package/dist/runtime/ui.config/elements/dropdown.d.ts +2 -1
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +2 -1
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +4 -3
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +2 -1
- package/dist/runtime/ui.config/navigation/horizontalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/navigation/pagination.d.ts +7 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.d.ts +6 -5
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +4 -3
- package/package.json +28 -25
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
|
|
31
31
|
<script>
|
|
32
32
|
import { computed, defineComponent, inject, toRef } from "vue";
|
|
33
|
-
import {
|
|
33
|
+
import { twJoin } from "tailwind-merge";
|
|
34
34
|
import { useUI } from "../../composables/useUI";
|
|
35
35
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
36
|
-
import { mergeConfig } from "../../utils";
|
|
36
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
37
37
|
import appConfig from "#build/app.config";
|
|
38
38
|
import { radio } from "#ui/ui.config";
|
|
39
39
|
import { useId } from "#imports";
|
|
@@ -156,8 +156,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
156
156
|
required: boolean;
|
|
157
157
|
class: any;
|
|
158
158
|
disabled: boolean;
|
|
159
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
160
|
-
label: string;
|
|
161
159
|
ui: {
|
|
162
160
|
wrapper?: string;
|
|
163
161
|
container?: string;
|
|
@@ -179,6 +177,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
179
177
|
} & {
|
|
180
178
|
strategy?: Strategy;
|
|
181
179
|
};
|
|
180
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
181
|
+
label: string;
|
|
182
182
|
id: string;
|
|
183
183
|
modelValue: string | number | boolean | object;
|
|
184
184
|
value: string | number | boolean;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
import { computed, defineComponent, provide, toRef } from "vue";
|
|
34
34
|
import { useUI } from "../../composables/useUI";
|
|
35
35
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
36
|
-
import {
|
|
36
|
+
import { get, mergeConfig } from "../../utils";
|
|
37
37
|
import URadio from "./Radio.vue";
|
|
38
38
|
import appConfig from "#build/app.config";
|
|
39
39
|
import { radioGroup, radio } from "#ui/ui.config";
|
|
@@ -164,8 +164,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
164
164
|
name: string;
|
|
165
165
|
class: any;
|
|
166
166
|
disabled: boolean;
|
|
167
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
168
|
-
legend: string;
|
|
169
167
|
ui: {
|
|
170
168
|
wrapper?: string;
|
|
171
169
|
fieldset?: string;
|
|
@@ -178,6 +176,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
178
176
|
} & {
|
|
179
177
|
strategy?: Strategy;
|
|
180
178
|
};
|
|
179
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
180
|
+
legend: string;
|
|
181
181
|
options: unknown[];
|
|
182
182
|
modelValue: string | number | boolean | object;
|
|
183
183
|
optionAttribute: string;
|
|
@@ -374,8 +374,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
374
374
|
required: boolean;
|
|
375
375
|
class: any;
|
|
376
376
|
disabled: boolean;
|
|
377
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
378
|
-
label: string;
|
|
379
377
|
ui: {
|
|
380
378
|
wrapper?: string;
|
|
381
379
|
container?: string;
|
|
@@ -397,6 +395,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
397
395
|
} & {
|
|
398
396
|
strategy?: Strategy;
|
|
399
397
|
};
|
|
398
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
399
|
+
label: string;
|
|
400
400
|
id: string;
|
|
401
401
|
modelValue: string | number | boolean | object;
|
|
402
402
|
value: string | number | boolean;
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
<script>
|
|
23
23
|
import { computed, toRef, defineComponent } from "vue";
|
|
24
|
-
import {
|
|
24
|
+
import { twJoin } from "tailwind-merge";
|
|
25
25
|
import { useUI } from "../../composables/useUI";
|
|
26
26
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
27
|
-
import { mergeConfig } from "../../utils";
|
|
27
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
28
28
|
import appConfig from "#build/app.config";
|
|
29
29
|
import { range } from "#ui/ui.config";
|
|
30
30
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.range, range);
|
|
@@ -257,8 +257,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
257
257
|
class: any;
|
|
258
258
|
disabled: boolean;
|
|
259
259
|
max: number;
|
|
260
|
-
step: number;
|
|
261
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
262
260
|
ui: {
|
|
263
261
|
wrapper?: string;
|
|
264
262
|
base?: string;
|
|
@@ -326,6 +324,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
326
324
|
} & {
|
|
327
325
|
strategy?: Strategy;
|
|
328
326
|
};
|
|
327
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
328
|
+
step: number;
|
|
329
329
|
id: string;
|
|
330
330
|
modelValue: number;
|
|
331
331
|
inputClass: string;
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
|
|
55
55
|
<script>
|
|
56
56
|
import { computed, toRef, defineComponent } from "vue";
|
|
57
|
-
import {
|
|
57
|
+
import { twJoin } from "tailwind-merge";
|
|
58
58
|
import UIcon from "../elements/Icon.vue";
|
|
59
59
|
import { useUI } from "../../composables/useUI";
|
|
60
60
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
61
|
-
import { mergeConfig,
|
|
61
|
+
import { get, mergeConfig, twMerge } from "../../utils";
|
|
62
62
|
import { useInjectButtonGroup } from "../../composables/useButtonGroup";
|
|
63
63
|
import appConfig from "#build/app.config";
|
|
64
64
|
import { select } from "#ui/ui.config";
|
|
@@ -449,9 +449,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
449
449
|
size: SelectSize;
|
|
450
450
|
class: any;
|
|
451
451
|
disabled: boolean;
|
|
452
|
-
leading: boolean;
|
|
453
|
-
color: SelectColor;
|
|
454
|
-
variant: SelectVariant;
|
|
455
452
|
ui: {
|
|
456
453
|
form?: string;
|
|
457
454
|
placeholder?: string;
|
|
@@ -566,6 +563,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
566
563
|
} & {
|
|
567
564
|
strategy?: Strategy;
|
|
568
565
|
};
|
|
566
|
+
color: SelectColor;
|
|
567
|
+
variant: SelectVariant;
|
|
568
|
+
leading: boolean;
|
|
569
569
|
id: string;
|
|
570
570
|
icon: string;
|
|
571
571
|
options: unknown[];
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
v-slot="{ active, selected: optionSelected, disabled: optionDisabled }"
|
|
72
72
|
:key="index"
|
|
73
73
|
as="template"
|
|
74
|
-
:value="valueAttribute ? option
|
|
74
|
+
:value="valueAttribute ? accessor(option, valueAttribute) : option"
|
|
75
75
|
:disabled="option.disabled"
|
|
76
76
|
>
|
|
77
77
|
<li :class="[uiMenu.option.base, uiMenu.option.rounded, uiMenu.option.padding, uiMenu.option.size, uiMenu.option.color, active ? uiMenu.option.active : uiMenu.option.inactive, optionSelected && uiMenu.option.selected, optionDisabled && uiMenu.option.disabled]">
|
|
@@ -138,13 +138,14 @@ import {
|
|
|
138
138
|
} from "@headlessui/vue";
|
|
139
139
|
import { computedAsync, useDebounceFn } from "@vueuse/core";
|
|
140
140
|
import { defu } from "defu";
|
|
141
|
-
import {
|
|
141
|
+
import { twJoin } from "tailwind-merge";
|
|
142
|
+
import { isEqual } from "ohash";
|
|
142
143
|
import UIcon from "../elements/Icon.vue";
|
|
143
144
|
import UAvatar from "../elements/Avatar.vue";
|
|
144
145
|
import { useUI } from "../../composables/useUI";
|
|
145
146
|
import { usePopper } from "../../composables/usePopper";
|
|
146
147
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
147
|
-
import { get, mergeConfig } from "../../utils";
|
|
148
|
+
import { get, mergeConfig, twMerge } from "../../utils";
|
|
148
149
|
import { useInjectButtonGroup } from "../../composables/useButtonGroup";
|
|
149
150
|
import appConfig from "#build/app.config";
|
|
150
151
|
import { select, selectMenu } from "#ui/ui.config";
|
|
@@ -337,6 +338,20 @@ export default defineComponent({
|
|
|
337
338
|
const { ui: uiMenu } = useUI("selectMenu", toRef(props, "uiMenu"), configMenu);
|
|
338
339
|
const popper = computed(() => defu({}, props.popper, uiMenu.value.popper));
|
|
339
340
|
const [trigger, container] = usePopper(popper.value);
|
|
341
|
+
const by = computed(() => {
|
|
342
|
+
if (!props.by) return void 0;
|
|
343
|
+
if (typeof props.by === "function") {
|
|
344
|
+
return props.by;
|
|
345
|
+
}
|
|
346
|
+
const key = props.by;
|
|
347
|
+
const hasDot = key.indexOf(".");
|
|
348
|
+
if (hasDot > 0) {
|
|
349
|
+
return (a, z) => {
|
|
350
|
+
return accessor(a, key) === accessor(z, key);
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
return key;
|
|
354
|
+
});
|
|
340
355
|
const { size: sizeButtonGroup, rounded } = useInjectButtonGroup({ ui, props });
|
|
341
356
|
const { emitFormBlur, emitFormChange, inputId, color, size: sizeFormGroup, name } = useFormGroup(props, config);
|
|
342
357
|
const size = computed(() => sizeButtonGroup.value ?? sizeFormGroup.value);
|
|
@@ -351,35 +366,41 @@ export default defineComponent({
|
|
|
351
366
|
}
|
|
352
367
|
});
|
|
353
368
|
const selected = computed(() => {
|
|
354
|
-
|
|
355
|
-
if (
|
|
356
|
-
return [];
|
|
369
|
+
function compareValues(value1, value2) {
|
|
370
|
+
if (by.value && typeof by.value !== "function" && typeof value1 === "object" && typeof value2 === "object") {
|
|
371
|
+
return isEqual(value1[by.value], value2[by.value]);
|
|
357
372
|
}
|
|
373
|
+
return isEqual(value1, value2);
|
|
374
|
+
}
|
|
375
|
+
function getValue(value) {
|
|
358
376
|
if (props.valueAttribute) {
|
|
359
|
-
return
|
|
377
|
+
return accessor(value, props.valueAttribute);
|
|
360
378
|
}
|
|
361
|
-
return
|
|
379
|
+
return value;
|
|
362
380
|
}
|
|
363
|
-
if (props.
|
|
364
|
-
|
|
381
|
+
if (props.multiple) {
|
|
382
|
+
const modelValue = props.modelValue;
|
|
383
|
+
if (!Array.isArray(modelValue) || !modelValue.length) {
|
|
384
|
+
return [];
|
|
385
|
+
}
|
|
386
|
+
return options.value.filter((option) => {
|
|
387
|
+
const optionValue = getValue(option);
|
|
388
|
+
return modelValue.some((value) => compareValues(value, optionValue));
|
|
389
|
+
});
|
|
365
390
|
}
|
|
366
|
-
return options.value.find((option) =>
|
|
391
|
+
return options.value.find((option) => {
|
|
392
|
+
const optionValue = getValue(option);
|
|
393
|
+
return compareValues(optionValue, toRaw(props.modelValue));
|
|
394
|
+
}) ?? props.modelValue;
|
|
367
395
|
});
|
|
368
396
|
const label = computed(() => {
|
|
369
|
-
if (props.
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
} else if (props.modelValue !== void 0 && props.modelValue !== null) {
|
|
376
|
-
if (props.valueAttribute) {
|
|
377
|
-
return accessor(selected.value, props.optionAttribute) ?? null;
|
|
378
|
-
} else {
|
|
379
|
-
return ["string", "number"].includes(typeof props.modelValue) ? props.modelValue : accessor(props.modelValue, props.optionAttribute);
|
|
380
|
-
}
|
|
397
|
+
if (!props.modelValue) return null;
|
|
398
|
+
if (Array.isArray(props.modelValue) && props.modelValue.length) {
|
|
399
|
+
return `${props.modelValue.length} selected`;
|
|
400
|
+
} else if (["string", "number"].includes(typeof props.modelValue)) {
|
|
401
|
+
return props.valueAttribute ? accessor(selected.value, props.optionAttribute) : props.modelValue;
|
|
381
402
|
}
|
|
382
|
-
return
|
|
403
|
+
return accessor(props.modelValue, props.optionAttribute);
|
|
383
404
|
});
|
|
384
405
|
const selectClass = computed(() => {
|
|
385
406
|
const variant = ui.value.color?.[color.value]?.[props.variant] || ui.value.variant[props.variant];
|
|
@@ -550,7 +571,9 @@ export default defineComponent({
|
|
|
550
571
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
551
572
|
query,
|
|
552
573
|
onUpdate,
|
|
553
|
-
onQueryChange
|
|
574
|
+
onQueryChange,
|
|
575
|
+
// eslint-disable-next-line vue/no-dupe-keys
|
|
576
|
+
by
|
|
554
577
|
};
|
|
555
578
|
}
|
|
556
579
|
});
|
|
@@ -140,7 +140,7 @@ declare const configMenu: {
|
|
|
140
140
|
};
|
|
141
141
|
avatar: {
|
|
142
142
|
base: string;
|
|
143
|
-
size: "
|
|
143
|
+
size: import("../../types/avatar").AvatarSize;
|
|
144
144
|
};
|
|
145
145
|
chip: {
|
|
146
146
|
base: string;
|
|
@@ -488,7 +488,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
488
488
|
};
|
|
489
489
|
avatar: {
|
|
490
490
|
base: string;
|
|
491
|
-
size: "
|
|
491
|
+
size: import("../../types/avatar").AvatarSize;
|
|
492
492
|
};
|
|
493
493
|
chip: {
|
|
494
494
|
base: string;
|
|
@@ -563,6 +563,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
563
563
|
query: import("vue").WritableComputedRef<string, string>;
|
|
564
564
|
onUpdate: (value: any) => void;
|
|
565
565
|
onQueryChange: (event: any) => void;
|
|
566
|
+
by: import("vue").ComputedRef<string | ((a: any, z: any) => boolean)>;
|
|
566
567
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "update:modelValue" | "open" | "update:query")[], "change" | "close" | "update:modelValue" | "open" | "update:query", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
567
568
|
modelValue: {
|
|
568
569
|
type: PropType<string | number | object | Array<any> | boolean | null>;
|
|
@@ -734,11 +735,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
734
735
|
size: SelectSize;
|
|
735
736
|
class: any;
|
|
736
737
|
disabled: boolean;
|
|
737
|
-
leading: boolean;
|
|
738
|
-
popper: PopperOptions;
|
|
739
|
-
color: SelectColor;
|
|
740
|
-
variant: SelectVariant;
|
|
741
|
-
query: string;
|
|
742
738
|
ui: {
|
|
743
739
|
form?: string;
|
|
744
740
|
placeholder?: string;
|
|
@@ -853,6 +849,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
853
849
|
} & {
|
|
854
850
|
strategy?: Strategy;
|
|
855
851
|
};
|
|
852
|
+
color: SelectColor;
|
|
853
|
+
variant: SelectVariant;
|
|
854
|
+
leading: boolean;
|
|
855
|
+
popper: PopperOptions;
|
|
856
|
+
query: string;
|
|
856
857
|
id: string;
|
|
857
858
|
icon: string;
|
|
858
859
|
options: string[] | {
|
|
@@ -904,7 +905,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
904
905
|
};
|
|
905
906
|
avatar: {
|
|
906
907
|
base: string;
|
|
907
|
-
size: "
|
|
908
|
+
size: import("../../types/avatar").AvatarSize;
|
|
908
909
|
};
|
|
909
910
|
chip: {
|
|
910
911
|
base: string;
|
|
@@ -1803,9 +1804,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1803
1804
|
}>> & Readonly<{}>, {
|
|
1804
1805
|
size: import("../../types/avatar").AvatarSize;
|
|
1805
1806
|
class: any;
|
|
1806
|
-
as: string | Record<string, any>;
|
|
1807
|
-
text: string;
|
|
1808
|
-
alt: string;
|
|
1809
1807
|
ui: {
|
|
1810
1808
|
wrapper?: string;
|
|
1811
1809
|
background?: string;
|
|
@@ -1869,6 +1867,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1869
1867
|
} & {
|
|
1870
1868
|
strategy?: Strategy;
|
|
1871
1869
|
};
|
|
1870
|
+
as: string | Record<string, any>;
|
|
1871
|
+
text: string;
|
|
1872
|
+
alt: string;
|
|
1872
1873
|
icon: string;
|
|
1873
1874
|
src: string | boolean;
|
|
1874
1875
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
24
|
import { ref, computed, toRef, watch, onMounted, nextTick, defineComponent } from "vue";
|
|
25
|
-
import {
|
|
25
|
+
import { twJoin } from "tailwind-merge";
|
|
26
26
|
import { defu } from "defu";
|
|
27
27
|
import { useUI } from "../../composables/useUI";
|
|
28
28
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
29
|
-
import { mergeConfig,
|
|
29
|
+
import { looseToNumber, mergeConfig, twMerge } from "../../utils";
|
|
30
30
|
import appConfig from "#build/app.config";
|
|
31
31
|
import { textarea } from "#ui/ui.config";
|
|
32
32
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.textarea, textarea);
|
|
@@ -419,9 +419,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
419
419
|
size: TextareaSize;
|
|
420
420
|
class: any;
|
|
421
421
|
disabled: boolean;
|
|
422
|
-
resize: boolean;
|
|
423
|
-
color: TextareaColor;
|
|
424
|
-
variant: TextareaVariant;
|
|
425
422
|
ui: {
|
|
426
423
|
form?: string;
|
|
427
424
|
default?: DeepPartial<{
|
|
@@ -534,6 +531,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
534
531
|
} & {
|
|
535
532
|
strategy?: Strategy;
|
|
536
533
|
};
|
|
534
|
+
color: TextareaColor;
|
|
535
|
+
variant: TextareaVariant;
|
|
536
|
+
resize: boolean;
|
|
537
537
|
id: string;
|
|
538
538
|
modelValue: string | number;
|
|
539
539
|
padded: boolean;
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
<script>
|
|
33
33
|
import { computed, toRef, defineComponent } from "vue";
|
|
34
34
|
import { Switch as HSwitch, provideUseId } from "@headlessui/vue";
|
|
35
|
-
import {
|
|
35
|
+
import { twJoin } from "tailwind-merge";
|
|
36
36
|
import UIcon from "../elements/Icon.vue";
|
|
37
37
|
import { useUI } from "../../composables/useUI";
|
|
38
38
|
import { useFormGroup } from "../../composables/useFormGroup";
|
|
39
|
-
import { mergeConfig } from "../../utils";
|
|
39
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
40
40
|
import appConfig from "#build/app.config";
|
|
41
41
|
import { toggle } from "#ui/ui.config";
|
|
42
42
|
import { useId } from "#imports";
|
|
@@ -250,7 +250,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
250
250
|
size: ToggleSize;
|
|
251
251
|
class: any;
|
|
252
252
|
disabled: boolean;
|
|
253
|
-
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
254
253
|
ui: {
|
|
255
254
|
base?: string;
|
|
256
255
|
rounded?: string;
|
|
@@ -317,6 +316,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
317
316
|
} & {
|
|
318
317
|
strategy?: Strategy;
|
|
319
318
|
};
|
|
319
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
320
320
|
id: string;
|
|
321
321
|
modelValue: boolean;
|
|
322
322
|
loading: boolean;
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
<script>
|
|
20
20
|
import { computed, toRef, defineComponent } from "vue";
|
|
21
|
-
import {
|
|
21
|
+
import { twJoin } from "tailwind-merge";
|
|
22
22
|
import { useUI } from "../../composables/useUI";
|
|
23
|
-
import { mergeConfig } from "../../utils";
|
|
23
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
24
24
|
import appConfig from "#build/app.config";
|
|
25
25
|
import { card } from "#ui/ui.config";
|
|
26
26
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.card, card);
|
|
@@ -83,7 +83,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
83
83
|
};
|
|
84
84
|
}>> & Readonly<{}>, {
|
|
85
85
|
class: any;
|
|
86
|
-
as: string;
|
|
87
86
|
ui: {
|
|
88
87
|
base?: string;
|
|
89
88
|
background?: string;
|
|
@@ -111,5 +110,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
110
|
} & {
|
|
112
111
|
strategy?: Strategy;
|
|
113
112
|
};
|
|
113
|
+
as: string;
|
|
114
114
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
115
|
export default _default;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
import { computed, toRef, defineComponent } from "vue";
|
|
9
|
-
import {
|
|
9
|
+
import { twJoin } from "tailwind-merge";
|
|
10
10
|
import { useUI } from "../../composables/useUI";
|
|
11
|
-
import { mergeConfig } from "../../utils";
|
|
11
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
12
12
|
import appConfig from "#build/app.config";
|
|
13
13
|
import { container } from "#ui/ui.config";
|
|
14
14
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.container, container);
|
|
@@ -47,7 +47,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
47
|
};
|
|
48
48
|
}>> & Readonly<{}>, {
|
|
49
49
|
class: any;
|
|
50
|
-
as: string;
|
|
51
50
|
ui: {
|
|
52
51
|
base?: string;
|
|
53
52
|
padding?: string;
|
|
@@ -57,5 +56,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
56
|
} & {
|
|
58
57
|
strategy?: Strategy;
|
|
59
58
|
};
|
|
59
|
+
as: string;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
61
|
export default _default;
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
22
|
import { toRef, computed, defineComponent } from "vue";
|
|
23
|
-
import {
|
|
23
|
+
import { twJoin } from "tailwind-merge";
|
|
24
24
|
import UIcon from "../elements/Icon.vue";
|
|
25
25
|
import UAvatar from "../elements/Avatar.vue";
|
|
26
26
|
import { useUI } from "../../composables/useUI";
|
|
27
|
-
import { mergeConfig } from "../../utils";
|
|
27
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
28
28
|
import appConfig from "#build/app.config";
|
|
29
29
|
import { divider } from "#ui/ui.config";
|
|
30
30
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.divider, divider);
|
|
@@ -44,12 +44,12 @@ declare const config: {
|
|
|
44
44
|
};
|
|
45
45
|
avatar: {
|
|
46
46
|
base: string;
|
|
47
|
-
size: "
|
|
47
|
+
size: import("../../types/avatar").AvatarSize;
|
|
48
48
|
};
|
|
49
49
|
label: string;
|
|
50
50
|
default: {
|
|
51
|
-
size:
|
|
52
|
-
type:
|
|
51
|
+
size: string;
|
|
52
|
+
type: string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
67
|
};
|
|
68
68
|
size: {
|
|
69
69
|
type: PropType<DividerSize>;
|
|
70
|
-
default: () =>
|
|
70
|
+
default: () => string;
|
|
71
71
|
validator(value: string): boolean;
|
|
72
72
|
};
|
|
73
73
|
orientation: {
|
|
@@ -77,7 +77,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
77
|
};
|
|
78
78
|
type: {
|
|
79
79
|
type: PropType<"solid" | "dotted" | "dashed">;
|
|
80
|
-
default: () =>
|
|
80
|
+
default: () => string;
|
|
81
81
|
validator: (value: string) => boolean;
|
|
82
82
|
};
|
|
83
83
|
class: {
|
|
@@ -135,12 +135,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
135
135
|
};
|
|
136
136
|
avatar: {
|
|
137
137
|
base: string;
|
|
138
|
-
size: "
|
|
138
|
+
size: import("../../types/avatar").AvatarSize;
|
|
139
139
|
};
|
|
140
140
|
label: string;
|
|
141
141
|
default: {
|
|
142
|
-
size:
|
|
143
|
-
type:
|
|
142
|
+
size: string;
|
|
143
|
+
type: string;
|
|
144
144
|
};
|
|
145
145
|
}>;
|
|
146
146
|
attrs: import("vue").ComputedRef<Pick<{
|
|
@@ -164,7 +164,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
164
164
|
};
|
|
165
165
|
size: {
|
|
166
166
|
type: PropType<DividerSize>;
|
|
167
|
-
default: () =>
|
|
167
|
+
default: () => string;
|
|
168
168
|
validator(value: string): boolean;
|
|
169
169
|
};
|
|
170
170
|
orientation: {
|
|
@@ -174,7 +174,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
174
174
|
};
|
|
175
175
|
type: {
|
|
176
176
|
type: PropType<"solid" | "dotted" | "dashed">;
|
|
177
|
-
default: () =>
|
|
177
|
+
default: () => string;
|
|
178
178
|
validator: (value: string) => boolean;
|
|
179
179
|
};
|
|
180
180
|
class: {
|
|
@@ -191,9 +191,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
191
191
|
type: "solid" | "dotted" | "dashed";
|
|
192
192
|
size: DividerSize;
|
|
193
193
|
class: any;
|
|
194
|
-
avatar: Avatar;
|
|
195
|
-
label: string;
|
|
196
|
-
orientation: "horizontal" | "vertical";
|
|
197
194
|
ui: {
|
|
198
195
|
wrapper?: DeepPartial<{
|
|
199
196
|
base: string;
|
|
@@ -238,18 +235,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
238
235
|
}, any>;
|
|
239
236
|
avatar?: DeepPartial<{
|
|
240
237
|
base: string;
|
|
241
|
-
size: "
|
|
238
|
+
size: import("../../types/avatar").AvatarSize;
|
|
242
239
|
}, any>;
|
|
243
240
|
label?: string;
|
|
244
241
|
default?: DeepPartial<{
|
|
245
|
-
size:
|
|
246
|
-
type:
|
|
242
|
+
size: string;
|
|
243
|
+
type: string;
|
|
247
244
|
}, any>;
|
|
248
245
|
} & {
|
|
249
246
|
[key: string]: any;
|
|
250
247
|
} & {
|
|
251
248
|
strategy?: Strategy;
|
|
252
249
|
};
|
|
250
|
+
avatar: Avatar;
|
|
251
|
+
label: string;
|
|
252
|
+
orientation: "horizontal" | "vertical";
|
|
253
253
|
icon: string;
|
|
254
254
|
}, {}, {
|
|
255
255
|
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -595,9 +595,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
595
595
|
}>> & Readonly<{}>, {
|
|
596
596
|
size: import("../../types/avatar").AvatarSize;
|
|
597
597
|
class: any;
|
|
598
|
-
as: string | Record<string, any>;
|
|
599
|
-
text: string;
|
|
600
|
-
alt: string;
|
|
601
598
|
ui: {
|
|
602
599
|
wrapper?: string;
|
|
603
600
|
background?: string;
|
|
@@ -661,6 +658,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
661
658
|
} & {
|
|
662
659
|
strategy?: Strategy;
|
|
663
660
|
};
|
|
661
|
+
as: string | Record<string, any>;
|
|
662
|
+
text: string;
|
|
663
|
+
alt: string;
|
|
664
664
|
icon: string;
|
|
665
665
|
src: string | boolean;
|
|
666
666
|
chipColor: import("../../types/avatar").AvatarChipColor;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
import { computed, toRef, defineComponent } from "vue";
|
|
7
|
-
import {
|
|
7
|
+
import { twJoin } from "tailwind-merge";
|
|
8
8
|
import { useUI } from "../../composables/useUI";
|
|
9
|
-
import { mergeConfig } from "../../utils";
|
|
9
|
+
import { mergeConfig, twMerge } from "../../utils";
|
|
10
10
|
import appConfig from "#build/app.config";
|
|
11
11
|
import { skeleton } from "#ui/ui.config";
|
|
12
12
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.skeleton, skeleton);
|
|
@@ -47,7 +47,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
47
|
};
|
|
48
48
|
}>> & Readonly<{}>, {
|
|
49
49
|
class: any;
|
|
50
|
-
as: string;
|
|
51
50
|
ui: {
|
|
52
51
|
base?: string;
|
|
53
52
|
background?: string;
|
|
@@ -57,5 +56,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
56
|
} & {
|
|
58
57
|
strategy?: Strategy;
|
|
59
58
|
};
|
|
59
|
+
as: string;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
61
|
export default _default;
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
37
|
import { defineComponent, toRef } from "vue";
|
|
38
|
-
import {
|
|
38
|
+
import { twJoin } from "tailwind-merge";
|
|
39
39
|
import UIcon from "../elements/Icon.vue";
|
|
40
40
|
import ULink from "../elements/Link.vue";
|
|
41
41
|
import { useUI } from "../../composables/useUI";
|
|
42
|
-
import { mergeConfig,
|
|
42
|
+
import { getULinkProps, mergeConfig, twMerge } from "../../utils";
|
|
43
43
|
import appConfig from "#build/app.config";
|
|
44
44
|
import { breadcrumb } from "#ui/ui.config";
|
|
45
45
|
const config = mergeConfig(appConfig.ui.strategy, appConfig.ui.breadcrumb, breadcrumb);
|