@nuxt/ui 2.17.0 → 2.18.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/dist/module.d.mts +3 -1988
- package/dist/module.d.ts +3 -1988
- package/dist/module.json +6 -2
- package/dist/module.mjs +6 -71
- package/dist/runtime/components/data/Table.vue +54 -19
- package/dist/runtime/components/data/Table.vue.d.ts +247 -48
- package/dist/runtime/components/elements/Accordion.vue +1 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +140 -14
- package/dist/runtime/components/elements/Alert.vue +2 -4
- package/dist/runtime/components/elements/Alert.vue.d.ts +107 -24
- package/dist/runtime/components/elements/Avatar.vue +1 -1
- package/dist/runtime/components/elements/Avatar.vue.d.ts +153 -32
- package/dist/runtime/components/elements/AvatarGroup.d.ts +17 -8
- package/dist/runtime/components/elements/{AvatarGroup.mjs → AvatarGroup.js} +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +55 -18
- package/dist/runtime/components/elements/Button.vue +1 -2
- package/dist/runtime/components/elements/Button.vue.d.ts +259 -96
- package/dist/runtime/components/elements/ButtonGroup.d.ts +110 -6
- package/dist/runtime/components/elements/{ButtonGroup.mjs → ButtonGroup.js} +3 -3
- package/dist/runtime/components/elements/Carousel.vue.d.ts +75 -20
- package/dist/runtime/components/elements/Chip.vue.d.ts +97 -25
- package/dist/runtime/components/elements/Dropdown.vue +4 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +135 -16
- package/dist/runtime/components/elements/Kbd.vue.d.ts +45 -10
- package/dist/runtime/components/elements/Link.vue.d.ts +73 -73
- package/dist/runtime/components/elements/Meter.vue +1 -1
- package/dist/runtime/components/elements/Meter.vue.d.ts +178 -22
- package/dist/runtime/components/elements/MeterGroup.d.ts +70 -13
- package/dist/runtime/components/elements/{MeterGroup.mjs → MeterGroup.js} +3 -3
- package/dist/runtime/components/elements/Progress.vue +7 -2
- package/dist/runtime/components/elements/Progress.vue.d.ts +187 -31
- package/dist/runtime/components/forms/Checkbox.vue +5 -3
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +76 -35
- package/dist/runtime/components/forms/Form.vue +1 -2
- package/dist/runtime/components/forms/Form.vue.d.ts +12 -11
- package/dist/runtime/components/forms/FormGroup.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +80 -27
- package/dist/runtime/components/forms/Input.vue +2 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +276 -59
- package/dist/runtime/components/forms/InputMenu.vue +12 -10
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +434 -84
- package/dist/runtime/components/forms/Radio.vue +5 -3
- package/dist/runtime/components/forms/Radio.vue.d.ts +74 -35
- package/dist/runtime/components/forms/RadioGroup.vue +11 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +85 -27
- package/dist/runtime/components/forms/Range.vue.d.ts +155 -26
- package/dist/runtime/components/forms/Select.vue +2 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +273 -50
- package/dist/runtime/components/forms/SelectMenu.vue +50 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +451 -86
- package/dist/runtime/components/forms/Textarea.vue.d.ts +263 -48
- package/dist/runtime/components/forms/Toggle.vue +1 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +153 -26
- package/dist/runtime/components/layout/Card.vue.d.ts +55 -5
- package/dist/runtime/components/layout/Container.vue.d.ts +19 -5
- package/dist/runtime/components/layout/Divider.vue +1 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +121 -16
- package/dist/runtime/components/layout/Skeleton.vue +5 -1
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +27 -4
- package/dist/runtime/components/navigation/Breadcrumb.vue +1 -2
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +52 -9
- package/dist/runtime/components/navigation/CommandPalette.vue +8 -6
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +198 -40
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +5 -7
- package/dist/runtime/components/navigation/HorizontalNavigation.vue +1 -4
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +64 -9
- package/dist/runtime/components/navigation/Pagination.vue +2 -4
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +84 -12
- package/dist/runtime/components/navigation/Tabs.vue +10 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +86 -15
- package/dist/runtime/components/navigation/VerticalNavigation.vue +1 -5
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +78 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +71 -8
- package/dist/runtime/components/overlays/Modal.vue.d.ts +85 -11
- package/dist/runtime/components/overlays/Notification.vue +2 -4
- package/dist/runtime/components/overlays/Notification.vue.d.ts +130 -29
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +31 -16
- package/dist/runtime/components/overlays/Popover.vue +3 -6
- package/dist/runtime/components/overlays/Popover.vue.d.ts +110 -15
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +87 -15
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +90 -15
- package/dist/runtime/composables/{defineShortcuts.mjs → defineShortcuts.js} +1 -1
- package/dist/runtime/composables/{useButtonGroup.mjs → useButtonGroup.js} +8 -9
- package/dist/runtime/composables/useCopyToClipboard.d.ts +1 -1
- package/dist/runtime/composables/{useCopyToClipboard.mjs → useCopyToClipboard.js} +1 -1
- package/dist/runtime/composables/useFormGroup.d.ts +5 -5
- package/dist/runtime/composables/useFormGroup.js +49 -0
- package/dist/runtime/composables/useModal.d.ts +3 -3
- package/dist/runtime/composables/{useModal.mjs → useModal.js} +2 -4
- package/dist/runtime/composables/usePopper.d.ts +91 -55
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +3 -3
- package/dist/runtime/composables/{useSlideover.mjs → useSlideover.js} +2 -4
- package/dist/runtime/composables/useTimer.d.ts +1 -1
- package/dist/runtime/composables/useToast.d.ts +11 -11
- package/dist/runtime/composables/useUI.d.ts +1 -1
- package/dist/runtime/composables/{useUI.mjs → useUI.js} +1 -1
- package/dist/runtime/plugins/colors.d.ts +1 -1
- package/dist/runtime/plugins/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/plugins/modals.d.ts +1 -1
- package/dist/runtime/plugins/{modals.mjs → modals.js} +1 -1
- package/dist/runtime/plugins/slideovers.d.ts +1 -1
- package/dist/runtime/plugins/{slideovers.mjs → slideovers.js} +1 -1
- package/dist/runtime/types/accordion.d.ts +6 -7
- package/dist/runtime/types/accordion.js +0 -0
- package/dist/runtime/types/alert.d.ts +8 -10
- package/dist/runtime/types/alert.js +0 -0
- package/dist/runtime/types/avatar.d.ts +13 -15
- package/dist/runtime/types/avatar.js +0 -0
- package/dist/runtime/types/badge.d.ts +11 -13
- package/dist/runtime/types/badge.js +0 -0
- package/dist/runtime/types/breadcrumb.d.ts +6 -8
- package/dist/runtime/types/breadcrumb.js +0 -0
- package/dist/runtime/types/button.d.ts +27 -29
- package/dist/runtime/types/button.js +0 -0
- package/dist/runtime/types/chip.d.ts +11 -13
- package/dist/runtime/types/chip.js +0 -0
- package/dist/runtime/types/clipboard.d.ts +7 -1
- package/dist/runtime/types/clipboard.js +0 -0
- package/dist/runtime/types/command-palette.d.ts +23 -24
- package/dist/runtime/types/command-palette.js +0 -0
- package/dist/runtime/types/component.d.ts +17 -14
- package/dist/runtime/types/component.js +0 -0
- package/dist/runtime/types/divider.d.ts +2 -3
- package/dist/runtime/types/divider.js +0 -0
- package/dist/runtime/types/dropdown.d.ts +12 -13
- package/dist/runtime/types/dropdown.js +0 -0
- package/dist/runtime/types/form-group.d.ts +4 -5
- package/dist/runtime/types/form-group.js +0 -0
- package/dist/runtime/types/form.d.ts +29 -28
- package/dist/runtime/types/form.js +0 -0
- package/dist/runtime/types/horizontal-navigation.d.ts +10 -11
- package/dist/runtime/types/horizontal-navigation.js +0 -0
- package/dist/runtime/types/index.d.ts +31 -31
- package/dist/runtime/types/index.js +31 -0
- package/dist/runtime/types/input.d.ts +7 -8
- package/dist/runtime/types/input.js +0 -0
- package/dist/runtime/types/kbd.d.ts +4 -5
- package/dist/runtime/types/kbd.js +0 -0
- package/dist/runtime/types/link.d.ts +9 -10
- package/dist/runtime/types/link.js +0 -0
- package/dist/runtime/types/meter.d.ts +4 -5
- package/dist/runtime/types/meter.js +0 -0
- package/dist/runtime/types/modal.d.ts +13 -15
- package/dist/runtime/types/modal.js +0 -0
- package/dist/runtime/types/notification.d.ts +17 -20
- package/dist/runtime/types/notification.js +0 -0
- package/dist/runtime/types/popper.d.ts +13 -15
- package/dist/runtime/types/popper.js +0 -0
- package/dist/runtime/types/progress.d.ts +5 -6
- package/dist/runtime/types/progress.js +0 -0
- package/dist/runtime/types/range.d.ts +6 -7
- package/dist/runtime/types/range.js +0 -0
- package/dist/runtime/types/select.d.ts +7 -8
- package/dist/runtime/types/select.js +0 -0
- package/dist/runtime/types/slideover.d.ts +10 -12
- package/dist/runtime/types/slideover.js +0 -0
- package/dist/runtime/types/tabs.d.ts +6 -5
- package/dist/runtime/types/tabs.js +0 -0
- package/dist/runtime/types/textarea.d.ts +7 -8
- package/dist/runtime/types/textarea.js +0 -0
- package/dist/runtime/types/toggle.d.ts +6 -7
- package/dist/runtime/types/toggle.js +0 -0
- package/dist/runtime/types/tooltip.d.ts +5 -5
- package/dist/runtime/types/tooltip.js +0 -0
- package/dist/runtime/types/utils.d.ts +15 -27
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/types/vertical-navigation.d.ts +10 -11
- package/dist/runtime/types/vertical-navigation.js +0 -0
- package/dist/runtime/ui.config/data/table.d.ts +10 -0
- package/dist/runtime/ui.config/data/{table.mjs → table.js} +10 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -0
- package/dist/runtime/ui.config/elements/{accordion.mjs → accordion.js} +3 -2
- package/dist/runtime/ui.config/elements/alert.d.ts +2 -2
- package/dist/runtime/ui.config/elements/avatar.d.ts +2 -2
- package/dist/runtime/ui.config/elements/{carousel.mjs → carousel.js} +1 -1
- package/dist/runtime/ui.config/elements/{dropdown.mjs → dropdown.js} +1 -1
- package/dist/runtime/ui.config/forms/{inputMenu.mjs → inputMenu.js} +1 -1
- package/dist/runtime/ui.config/forms/{select.mjs → select.js} +1 -1
- package/dist/runtime/ui.config/forms/{selectMenu.mjs → selectMenu.js} +2 -2
- package/dist/runtime/ui.config/forms/{textarea.mjs → textarea.js} +1 -1
- package/dist/runtime/ui.config/forms/toggle.d.ts +2 -2
- package/dist/runtime/ui.config/index.d.ts +43 -43
- package/dist/runtime/ui.config/index.js +43 -0
- package/dist/runtime/ui.config/navigation/{breadcrumb.mjs → breadcrumb.js} +2 -2
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
- package/dist/runtime/ui.config/navigation/tabs.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/{tabs.mjs → tabs.js} +2 -1
- package/dist/runtime/ui.config/overlays/{contextMenu.mjs → contextMenu.js} +1 -1
- package/dist/runtime/ui.config/overlays/{modal.mjs → modal.js} +2 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +1 -1
- package/dist/runtime/ui.config/overlays/{popover.mjs → popover.js} +1 -1
- package/dist/runtime/ui.config/overlays/{slideover.mjs → slideover.js} +2 -2
- package/dist/runtime/ui.config/overlays/{tooltip.mjs → tooltip.js} +1 -1
- package/dist/runtime/utils/colors.d.ts +2 -2
- package/dist/runtime/utils/{colors.mjs → colors.js} +1 -1
- package/dist/runtime/utils/index.d.ts +4 -4
- package/dist/runtime/utils/{index.mjs → index.js} +2 -2
- package/dist/runtime/utils/link.d.ts +26 -24
- package/dist/runtime/utils/{link.mjs → link.js} +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +20 -21
- package/dist/runtime/components/elements/Icon.vue +0 -29
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -24
- package/dist/runtime/composables/useFormGroup.mjs +0 -45
- package/dist/runtime/ui.config/index.mjs +0 -43
- /package/dist/runtime/composables/{useCarouselScroll.mjs → useCarouselScroll.js} +0 -0
- /package/dist/runtime/composables/{usePopper.mjs → usePopper.js} +0 -0
- /package/dist/runtime/composables/{useShortcuts.mjs → useShortcuts.js} +0 -0
- /package/dist/runtime/composables/{useTimer.mjs → useTimer.js} +0 -0
- /package/dist/runtime/composables/{useToast.mjs → useToast.js} +0 -0
- /package/dist/runtime/ui.config/elements/{alert.mjs → alert.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatar.mjs → avatar.js} +0 -0
- /package/dist/runtime/ui.config/elements/{avatarGroup.mjs → avatarGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{badge.mjs → badge.js} +0 -0
- /package/dist/runtime/ui.config/elements/{button.mjs → button.js} +0 -0
- /package/dist/runtime/ui.config/elements/{buttonGroup.mjs → buttonGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{chip.mjs → chip.js} +0 -0
- /package/dist/runtime/ui.config/elements/{kbd.mjs → kbd.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meter.mjs → meter.js} +0 -0
- /package/dist/runtime/ui.config/elements/{meterGroup.mjs → meterGroup.js} +0 -0
- /package/dist/runtime/ui.config/elements/{progress.mjs → progress.js} +0 -0
- /package/dist/runtime/ui.config/forms/{checkbox.mjs → checkbox.js} +0 -0
- /package/dist/runtime/ui.config/forms/{formGroup.mjs → formGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{input.mjs → input.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radio.mjs → radio.js} +0 -0
- /package/dist/runtime/ui.config/forms/{radioGroup.mjs → radioGroup.js} +0 -0
- /package/dist/runtime/ui.config/forms/{range.mjs → range.js} +0 -0
- /package/dist/runtime/ui.config/forms/{toggle.mjs → toggle.js} +0 -0
- /package/dist/runtime/ui.config/layout/{card.mjs → card.js} +0 -0
- /package/dist/runtime/ui.config/layout/{container.mjs → container.js} +0 -0
- /package/dist/runtime/ui.config/layout/{divider.mjs → divider.js} +0 -0
- /package/dist/runtime/ui.config/layout/{skeleton.mjs → skeleton.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{commandPalette.mjs → commandPalette.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{horizontalNavigation.mjs → horizontalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{pagination.mjs → pagination.js} +0 -0
- /package/dist/runtime/ui.config/navigation/{verticalNavigation.mjs → verticalNavigation.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notification.mjs → notification.js} +0 -0
- /package/dist/runtime/ui.config/overlays/{notifications.mjs → notifications.js} +0 -0
- /package/dist/runtime/ui.config/{popper.mjs → popper.js} +0 -0
- /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
|
@@ -1,8 +1,83 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy, ProgressSize, ProgressAnimation, ProgressColor } from '../../types.js';
|
|
3
|
+
declare const config: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
indicator: {
|
|
6
|
+
container: {
|
|
7
|
+
base: string;
|
|
8
|
+
width: string;
|
|
9
|
+
transition: string;
|
|
10
|
+
};
|
|
11
|
+
align: string;
|
|
12
|
+
width: string;
|
|
13
|
+
color: string;
|
|
14
|
+
size: {
|
|
15
|
+
'2xs': string;
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
'2xl': string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
progress: {
|
|
25
|
+
base: string;
|
|
26
|
+
width: string;
|
|
27
|
+
size: {
|
|
28
|
+
'2xs': string;
|
|
29
|
+
xs: string;
|
|
30
|
+
sm: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
xl: string;
|
|
34
|
+
'2xl': string;
|
|
35
|
+
};
|
|
36
|
+
rounded: string;
|
|
37
|
+
track: string;
|
|
38
|
+
bar: string;
|
|
39
|
+
color: string;
|
|
40
|
+
background: string;
|
|
41
|
+
indeterminate: {
|
|
42
|
+
base: string;
|
|
43
|
+
rounded: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
steps: {
|
|
47
|
+
base: string;
|
|
48
|
+
color: string;
|
|
49
|
+
size: {
|
|
50
|
+
'2xs': string;
|
|
51
|
+
xs: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
xl: string;
|
|
56
|
+
'2xl': string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
step: {
|
|
60
|
+
base: string;
|
|
61
|
+
align: string;
|
|
62
|
+
active: string;
|
|
63
|
+
first: string;
|
|
64
|
+
};
|
|
65
|
+
animation: {
|
|
66
|
+
carousel: string;
|
|
67
|
+
'carousel-inverse': string;
|
|
68
|
+
swing: string;
|
|
69
|
+
elastic: string;
|
|
70
|
+
};
|
|
71
|
+
default: {
|
|
72
|
+
color: string;
|
|
73
|
+
size: string;
|
|
74
|
+
animation: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
2
77
|
declare const _default: import("vue").DefineComponent<{
|
|
3
78
|
value: {
|
|
4
79
|
type: NumberConstructor;
|
|
5
|
-
default:
|
|
80
|
+
default: any;
|
|
6
81
|
};
|
|
7
82
|
max: {
|
|
8
83
|
type: (NumberConstructor | {
|
|
@@ -13,10 +88,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
88
|
isArray(arg: any): arg is any[];
|
|
14
89
|
readonly prototype: any[];
|
|
15
90
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
16
|
-
from<
|
|
17
|
-
from<
|
|
18
|
-
from<
|
|
19
|
-
of<
|
|
91
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
92
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
93
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
94
|
+
of<T>(...items: T[]): T[];
|
|
95
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
96
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
20
97
|
readonly [Symbol.species]: ArrayConstructor;
|
|
21
98
|
})[];
|
|
22
99
|
default: number;
|
|
@@ -26,18 +103,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
103
|
default: boolean;
|
|
27
104
|
};
|
|
28
105
|
animation: {
|
|
29
|
-
type: PropType<
|
|
30
|
-
default: () =>
|
|
106
|
+
type: PropType<ProgressAnimation>;
|
|
107
|
+
default: () => string;
|
|
31
108
|
validator(value: string): boolean;
|
|
32
109
|
};
|
|
33
110
|
size: {
|
|
34
|
-
type: PropType<
|
|
35
|
-
default: () =>
|
|
111
|
+
type: PropType<ProgressSize>;
|
|
112
|
+
default: () => string;
|
|
36
113
|
validator(value: string): boolean;
|
|
37
114
|
};
|
|
38
115
|
color: {
|
|
39
|
-
type: PropType<
|
|
40
|
-
default: () =>
|
|
116
|
+
type: PropType<ProgressColor>;
|
|
117
|
+
default: () => string;
|
|
41
118
|
validator(value: string): any;
|
|
42
119
|
};
|
|
43
120
|
class: {
|
|
@@ -45,11 +122,86 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
122
|
default: () => "";
|
|
46
123
|
};
|
|
47
124
|
ui: {
|
|
48
|
-
type: PropType<
|
|
125
|
+
type: PropType<Partial<typeof config> & {
|
|
126
|
+
strategy?: Strategy;
|
|
127
|
+
}>;
|
|
49
128
|
default: () => {};
|
|
50
129
|
};
|
|
51
130
|
}, {
|
|
52
|
-
ui: import("vue").ComputedRef<
|
|
131
|
+
ui: import("vue").ComputedRef<{
|
|
132
|
+
wrapper: string;
|
|
133
|
+
indicator: {
|
|
134
|
+
container: {
|
|
135
|
+
base: string;
|
|
136
|
+
width: string;
|
|
137
|
+
transition: string;
|
|
138
|
+
};
|
|
139
|
+
align: string;
|
|
140
|
+
width: string;
|
|
141
|
+
color: string;
|
|
142
|
+
size: {
|
|
143
|
+
'2xs': string;
|
|
144
|
+
xs: string;
|
|
145
|
+
sm: string;
|
|
146
|
+
md: string;
|
|
147
|
+
lg: string;
|
|
148
|
+
xl: string;
|
|
149
|
+
'2xl': string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
progress: {
|
|
153
|
+
base: string;
|
|
154
|
+
width: string;
|
|
155
|
+
size: {
|
|
156
|
+
'2xs': string;
|
|
157
|
+
xs: string;
|
|
158
|
+
sm: string;
|
|
159
|
+
md: string;
|
|
160
|
+
lg: string;
|
|
161
|
+
xl: string;
|
|
162
|
+
'2xl': string;
|
|
163
|
+
};
|
|
164
|
+
rounded: string;
|
|
165
|
+
track: string;
|
|
166
|
+
bar: string;
|
|
167
|
+
color: string;
|
|
168
|
+
background: string;
|
|
169
|
+
indeterminate: {
|
|
170
|
+
base: string;
|
|
171
|
+
rounded: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
steps: {
|
|
175
|
+
base: string;
|
|
176
|
+
color: string;
|
|
177
|
+
size: {
|
|
178
|
+
'2xs': string;
|
|
179
|
+
xs: string;
|
|
180
|
+
sm: string;
|
|
181
|
+
md: string;
|
|
182
|
+
lg: string;
|
|
183
|
+
xl: string;
|
|
184
|
+
'2xl': string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
step: {
|
|
188
|
+
base: string;
|
|
189
|
+
align: string;
|
|
190
|
+
active: string;
|
|
191
|
+
first: string;
|
|
192
|
+
};
|
|
193
|
+
animation: {
|
|
194
|
+
carousel: string;
|
|
195
|
+
'carousel-inverse': string;
|
|
196
|
+
swing: string;
|
|
197
|
+
elastic: string;
|
|
198
|
+
};
|
|
199
|
+
default: {
|
|
200
|
+
color: string;
|
|
201
|
+
size: string;
|
|
202
|
+
animation: string;
|
|
203
|
+
};
|
|
204
|
+
}>;
|
|
53
205
|
attrs: import("vue").ComputedRef<Pick<{
|
|
54
206
|
[x: string]: unknown;
|
|
55
207
|
}, string>>;
|
|
@@ -60,12 +212,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
212
|
stepClasses: (index: string | number) => string;
|
|
61
213
|
isIndeterminate: import("vue").ComputedRef<boolean>;
|
|
62
214
|
isSteps: import("vue").ComputedRef<boolean>;
|
|
63
|
-
realMax: import("vue").ComputedRef<number
|
|
64
|
-
percent: import("vue").ComputedRef<number
|
|
215
|
+
realMax: import("vue").ComputedRef<number>;
|
|
216
|
+
percent: import("vue").ComputedRef<number>;
|
|
65
217
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
218
|
value: {
|
|
67
219
|
type: NumberConstructor;
|
|
68
|
-
default:
|
|
220
|
+
default: any;
|
|
69
221
|
};
|
|
70
222
|
max: {
|
|
71
223
|
type: (NumberConstructor | {
|
|
@@ -76,10 +228,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
228
|
isArray(arg: any): arg is any[];
|
|
77
229
|
readonly prototype: any[];
|
|
78
230
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
79
|
-
from<
|
|
80
|
-
from<
|
|
81
|
-
from<
|
|
82
|
-
of<
|
|
231
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
232
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
233
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
234
|
+
of<T>(...items: T[]): T[];
|
|
235
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
236
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
83
237
|
readonly [Symbol.species]: ArrayConstructor;
|
|
84
238
|
})[];
|
|
85
239
|
default: number;
|
|
@@ -89,18 +243,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
243
|
default: boolean;
|
|
90
244
|
};
|
|
91
245
|
animation: {
|
|
92
|
-
type: PropType<
|
|
93
|
-
default: () =>
|
|
246
|
+
type: PropType<ProgressAnimation>;
|
|
247
|
+
default: () => string;
|
|
94
248
|
validator(value: string): boolean;
|
|
95
249
|
};
|
|
96
250
|
size: {
|
|
97
|
-
type: PropType<
|
|
98
|
-
default: () =>
|
|
251
|
+
type: PropType<ProgressSize>;
|
|
252
|
+
default: () => string;
|
|
99
253
|
validator(value: string): boolean;
|
|
100
254
|
};
|
|
101
255
|
color: {
|
|
102
|
-
type: PropType<
|
|
103
|
-
default: () =>
|
|
256
|
+
type: PropType<ProgressColor>;
|
|
257
|
+
default: () => string;
|
|
104
258
|
validator(value: string): any;
|
|
105
259
|
};
|
|
106
260
|
class: {
|
|
@@ -108,16 +262,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
262
|
default: () => "";
|
|
109
263
|
};
|
|
110
264
|
ui: {
|
|
111
|
-
type: PropType<
|
|
265
|
+
type: PropType<Partial<typeof config> & {
|
|
266
|
+
strategy?: Strategy;
|
|
267
|
+
}>;
|
|
112
268
|
default: () => {};
|
|
113
269
|
};
|
|
114
270
|
}>>, {
|
|
115
|
-
|
|
116
|
-
|
|
271
|
+
size: "xs" | "sm" | "2xs" | "md" | "lg" | "xl" | "2xl";
|
|
272
|
+
ui: {};
|
|
273
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
117
274
|
class: any;
|
|
118
|
-
color: any;
|
|
119
|
-
ui: any;
|
|
120
275
|
max: number | any[];
|
|
276
|
+
value: number;
|
|
121
277
|
indicator: boolean;
|
|
122
278
|
animation: "carousel" | "carousel-inverse" | "swing" | "elastic";
|
|
123
279
|
}, {}>;
|
|
@@ -17,11 +17,13 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
<div v-if="label || $slots.label" :class="ui.inner">
|
|
19
19
|
<label :for="inputId" :class="ui.label">
|
|
20
|
-
<slot name="label">{{ label }}</slot>
|
|
20
|
+
<slot name="label" :label="label">{{ label }}</slot>
|
|
21
21
|
<span v-if="required" :class="ui.required">*</span>
|
|
22
22
|
</label>
|
|
23
|
-
<p v-if="help" :class="ui.help">
|
|
24
|
-
|
|
23
|
+
<p v-if="help || $slots.help" :class="ui.help">
|
|
24
|
+
<slot name="help" :help="help">
|
|
25
|
+
{{ help }}
|
|
26
|
+
</slot>
|
|
25
27
|
</p>
|
|
26
28
|
</div>
|
|
27
29
|
</div>
|
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { Strategy } from '../../types.js';
|
|
3
|
+
import colors from '#ui-colors';
|
|
4
|
+
declare const config: {
|
|
5
|
+
wrapper: string;
|
|
6
|
+
container: string;
|
|
7
|
+
base: string;
|
|
8
|
+
form: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
color: string;
|
|
11
|
+
background: string;
|
|
12
|
+
border: string;
|
|
13
|
+
ring: string;
|
|
14
|
+
inner: string;
|
|
15
|
+
label: string;
|
|
16
|
+
required: string;
|
|
17
|
+
help: string;
|
|
18
|
+
default: {
|
|
19
|
+
color: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
2
22
|
declare const _default: import("vue").DefineComponent<{
|
|
3
23
|
id: {
|
|
4
24
|
type: StringConstructor;
|
|
5
|
-
default: () =>
|
|
25
|
+
default: () => any;
|
|
6
26
|
};
|
|
7
27
|
value: {
|
|
8
|
-
type: (
|
|
9
|
-
default:
|
|
28
|
+
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: any;
|
|
10
30
|
};
|
|
11
31
|
modelValue: {
|
|
12
32
|
type: (BooleanConstructor | ArrayConstructor)[];
|
|
13
|
-
default:
|
|
33
|
+
default: any;
|
|
14
34
|
};
|
|
15
35
|
name: {
|
|
16
36
|
type: StringConstructor;
|
|
17
|
-
default:
|
|
37
|
+
default: any;
|
|
18
38
|
};
|
|
19
39
|
disabled: {
|
|
20
40
|
type: BooleanConstructor;
|
|
@@ -22,23 +42,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
42
|
};
|
|
23
43
|
indeterminate: {
|
|
24
44
|
type: BooleanConstructor;
|
|
25
|
-
default:
|
|
45
|
+
default: any;
|
|
26
46
|
};
|
|
27
47
|
help: {
|
|
28
48
|
type: StringConstructor;
|
|
29
|
-
default:
|
|
49
|
+
default: any;
|
|
30
50
|
};
|
|
31
51
|
label: {
|
|
32
52
|
type: StringConstructor;
|
|
33
|
-
default:
|
|
53
|
+
default: any;
|
|
34
54
|
};
|
|
35
55
|
required: {
|
|
36
56
|
type: BooleanConstructor;
|
|
37
57
|
default: boolean;
|
|
38
58
|
};
|
|
39
59
|
color: {
|
|
40
|
-
type: PropType<
|
|
41
|
-
default: () =>
|
|
60
|
+
type: PropType<(typeof colors)[number]>;
|
|
61
|
+
default: () => string;
|
|
42
62
|
validator(value: string): any;
|
|
43
63
|
};
|
|
44
64
|
inputClass: {
|
|
@@ -50,35 +70,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
70
|
default: () => "";
|
|
51
71
|
};
|
|
52
72
|
ui: {
|
|
53
|
-
type: PropType<
|
|
73
|
+
type: PropType<Partial<typeof config> & {
|
|
74
|
+
strategy?: Strategy;
|
|
75
|
+
}>;
|
|
54
76
|
default: () => {};
|
|
55
77
|
};
|
|
56
78
|
}, {
|
|
57
|
-
ui: import("vue").ComputedRef<
|
|
79
|
+
ui: import("vue").ComputedRef<{
|
|
80
|
+
wrapper: string;
|
|
81
|
+
container: string;
|
|
82
|
+
base: string;
|
|
83
|
+
form: string;
|
|
84
|
+
rounded: string;
|
|
85
|
+
color: string;
|
|
86
|
+
background: string;
|
|
87
|
+
border: string;
|
|
88
|
+
ring: string;
|
|
89
|
+
inner: string;
|
|
90
|
+
label: string;
|
|
91
|
+
required: string;
|
|
92
|
+
help: string;
|
|
93
|
+
default: {
|
|
94
|
+
color: string;
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
58
97
|
attrs: import("vue").ComputedRef<Pick<{
|
|
59
98
|
[x: string]: unknown;
|
|
60
99
|
}, string>>;
|
|
61
100
|
toggle: import("vue").WritableComputedRef<boolean | unknown[]>;
|
|
62
|
-
inputId:
|
|
63
|
-
name: import("vue").ComputedRef<string
|
|
101
|
+
inputId: string;
|
|
102
|
+
name: import("vue").ComputedRef<string>;
|
|
64
103
|
inputClass: import("vue").ComputedRef<string>;
|
|
65
104
|
onChange: (event: Event) => void;
|
|
66
105
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
106
|
id: {
|
|
68
107
|
type: StringConstructor;
|
|
69
|
-
default: () =>
|
|
108
|
+
default: () => any;
|
|
70
109
|
};
|
|
71
110
|
value: {
|
|
72
|
-
type: (
|
|
73
|
-
default:
|
|
111
|
+
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
112
|
+
default: any;
|
|
74
113
|
};
|
|
75
114
|
modelValue: {
|
|
76
115
|
type: (BooleanConstructor | ArrayConstructor)[];
|
|
77
|
-
default:
|
|
116
|
+
default: any;
|
|
78
117
|
};
|
|
79
118
|
name: {
|
|
80
119
|
type: StringConstructor;
|
|
81
|
-
default:
|
|
120
|
+
default: any;
|
|
82
121
|
};
|
|
83
122
|
disabled: {
|
|
84
123
|
type: BooleanConstructor;
|
|
@@ -86,23 +125,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
125
|
};
|
|
87
126
|
indeterminate: {
|
|
88
127
|
type: BooleanConstructor;
|
|
89
|
-
default:
|
|
128
|
+
default: any;
|
|
90
129
|
};
|
|
91
130
|
help: {
|
|
92
131
|
type: StringConstructor;
|
|
93
|
-
default:
|
|
132
|
+
default: any;
|
|
94
133
|
};
|
|
95
134
|
label: {
|
|
96
135
|
type: StringConstructor;
|
|
97
|
-
default:
|
|
136
|
+
default: any;
|
|
98
137
|
};
|
|
99
138
|
required: {
|
|
100
139
|
type: BooleanConstructor;
|
|
101
140
|
default: boolean;
|
|
102
141
|
};
|
|
103
142
|
color: {
|
|
104
|
-
type: PropType<
|
|
105
|
-
default: () =>
|
|
143
|
+
type: PropType<(typeof colors)[number]>;
|
|
144
|
+
default: () => string;
|
|
106
145
|
validator(value: string): any;
|
|
107
146
|
};
|
|
108
147
|
inputClass: {
|
|
@@ -114,25 +153,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
114
153
|
default: () => "";
|
|
115
154
|
};
|
|
116
155
|
ui: {
|
|
117
|
-
type: PropType<
|
|
156
|
+
type: PropType<Partial<typeof config> & {
|
|
157
|
+
strategy?: Strategy;
|
|
158
|
+
}>;
|
|
118
159
|
default: () => {};
|
|
119
160
|
};
|
|
120
161
|
}>> & {
|
|
121
|
-
onChange?: (
|
|
122
|
-
"onUpdate:modelValue"?: (
|
|
162
|
+
onChange?: (...args: any[]) => any;
|
|
163
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
123
164
|
}, {
|
|
124
|
-
|
|
125
|
-
name: string;
|
|
126
|
-
required: boolean;
|
|
127
|
-
label: string;
|
|
128
|
-
class: any;
|
|
129
|
-
color: any;
|
|
165
|
+
ui: {};
|
|
130
166
|
disabled: boolean;
|
|
131
|
-
|
|
167
|
+
color: "primary" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose";
|
|
168
|
+
label: string;
|
|
132
169
|
id: string;
|
|
170
|
+
class: any;
|
|
171
|
+
name: string;
|
|
133
172
|
modelValue: boolean | unknown[];
|
|
134
|
-
|
|
173
|
+
required: boolean;
|
|
174
|
+
value: string | number | boolean | Record<string, any>;
|
|
135
175
|
help: string;
|
|
176
|
+
indeterminate: boolean;
|
|
136
177
|
inputClass: string;
|
|
137
178
|
}, {}>;
|
|
138
179
|
export default _default;
|
|
@@ -87,8 +87,7 @@ export default defineComponent({
|
|
|
87
87
|
errors.value = await getErrors();
|
|
88
88
|
}
|
|
89
89
|
if (errors.value.length > 0) {
|
|
90
|
-
if (opts.silent)
|
|
91
|
-
return false;
|
|
90
|
+
if (opts.silent) return false;
|
|
92
91
|
throw new FormException(
|
|
93
92
|
`Form validation failed: ${JSON.stringify(errors.value, null, 2)}`
|
|
94
93
|
);
|
|
@@ -3,12 +3,13 @@ import type { ZodSchema } from 'zod';
|
|
|
3
3
|
import type { Schema as JoiSchema } from 'joi';
|
|
4
4
|
import type { ObjectSchema as YupObjectSchema } from 'yup';
|
|
5
5
|
import type { BaseSchema as ValibotSchema30, BaseSchemaAsync as ValibotSchemaAsync30 } from 'valibot30';
|
|
6
|
+
import type { GenericSchema as ValibotSchema31, GenericSchemaAsync as ValibotSchemaAsync31, SafeParser as ValibotSafeParser31, SafeParserAsync as ValibotSafeParserAsync31 } from 'valibot31';
|
|
6
7
|
import type { GenericSchema as ValibotSchema, GenericSchemaAsync as ValibotSchemaAsync, SafeParser as ValibotSafeParser, SafeParserAsync as ValibotSafeParserAsync } from 'valibot';
|
|
7
|
-
import type { FormError, FormEventType } from '../../types/form';
|
|
8
|
+
import type { FormError, FormEventType } from '../../types/form.js';
|
|
8
9
|
declare const _default: import("vue").DefineComponent<{
|
|
9
10
|
schema: {
|
|
10
|
-
type: PropType<ZodSchema
|
|
11
|
-
default:
|
|
11
|
+
type: PropType<ZodSchema> | PropType<YupObjectSchema<any>> | PropType<JoiSchema> | PropType<ValibotSchema30 | ValibotSchemaAsync30> | PropType<ValibotSchema31 | ValibotSchemaAsync31> | PropType<ValibotSafeParser31<any, any> | ValibotSafeParserAsync31<any, any>> | PropType<ValibotSchema | ValibotSchemaAsync> | PropType<ValibotSafeParser<any, any> | ValibotSafeParserAsync<any, any>>;
|
|
12
|
+
default: any;
|
|
12
13
|
};
|
|
13
14
|
state: {
|
|
14
15
|
type: ObjectConstructor;
|
|
@@ -16,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
};
|
|
17
18
|
validate: {
|
|
18
19
|
type: PropType<(state: any) => Promise<FormError[]>> | PropType<(state: any) => FormError[]>;
|
|
19
|
-
default: () =>
|
|
20
|
+
default: () => any[];
|
|
20
21
|
};
|
|
21
22
|
validateOn: {
|
|
22
23
|
type: PropType<FormEventType[]>;
|
|
@@ -24,10 +25,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
25
|
};
|
|
25
26
|
}, {
|
|
26
27
|
onSubmit: (payload: Event) => Promise<void>;
|
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "submit")[], "error" | "submit", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
29
|
schema: {
|
|
29
|
-
type: PropType<ZodSchema
|
|
30
|
-
default:
|
|
30
|
+
type: PropType<ZodSchema> | PropType<YupObjectSchema<any>> | PropType<JoiSchema> | PropType<ValibotSchema30 | ValibotSchemaAsync30> | PropType<ValibotSchema31 | ValibotSchemaAsync31> | PropType<ValibotSafeParser31<any, any> | ValibotSafeParserAsync31<any, any>> | PropType<ValibotSchema | ValibotSchemaAsync> | PropType<ValibotSafeParser<any, any> | ValibotSafeParserAsync<any, any>>;
|
|
31
|
+
default: any;
|
|
31
32
|
};
|
|
32
33
|
state: {
|
|
33
34
|
type: ObjectConstructor;
|
|
@@ -35,17 +36,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
36
|
};
|
|
36
37
|
validate: {
|
|
37
38
|
type: PropType<(state: any) => Promise<FormError[]>> | PropType<(state: any) => FormError[]>;
|
|
38
|
-
default: () =>
|
|
39
|
+
default: () => any[];
|
|
39
40
|
};
|
|
40
41
|
validateOn: {
|
|
41
42
|
type: PropType<FormEventType[]>;
|
|
42
43
|
default: () => string[];
|
|
43
44
|
};
|
|
44
45
|
}>> & {
|
|
45
|
-
onSubmit?: (
|
|
46
|
-
onError?: (
|
|
46
|
+
onSubmit?: (...args: any[]) => any;
|
|
47
|
+
onError?: (...args: any[]) => any;
|
|
47
48
|
}, {
|
|
48
|
-
schema: ZodSchema<any, import("zod").ZodTypeDef, any> | YupObjectSchema<any, import("yup").AnyObject, any, ""> | import("joi").AnySchema<any> | ValibotSchema30<any, any> | ValibotSchemaAsync30<any, any> |
|
|
49
|
+
schema: ZodSchema<any, import("zod").ZodTypeDef, any> | YupObjectSchema<any, import("yup").AnyObject, any, ""> | import("joi").AnySchema<any> | ValibotSchema30<any, any> | ValibotSchemaAsync30<any, any> | ValibotSchema31<unknown, unknown, import("valibot31").BaseIssue<unknown>> | ValibotSchemaAsync31<unknown, unknown, import("valibot31").BaseIssue<unknown>> | ValibotSafeParser31<any, any> | ValibotSafeParserAsync31<any, any> | ValibotSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | ValibotSchemaAsync<unknown, unknown, import("valibot").BaseIssue<unknown>>;
|
|
49
50
|
validate: ((state: any) => Promise<FormError[]>) | ((state: any) => FormError[]);
|
|
50
51
|
validateOn: FormEventType[];
|
|
51
52
|
}, {}>;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<div :class="[label ? ui.container : '']">
|
|
24
24
|
<slot v-bind="{ error }" />
|
|
25
25
|
|
|
26
|
-
<p v-if="
|
|
26
|
+
<p v-if="typeof error === 'string' && error" :class="[ui.error, size]">
|
|
27
27
|
<slot v-if="$slots.error" name="error" v-bind="{ error, label, name, hint, description, help }" />
|
|
28
28
|
<template v-else>
|
|
29
29
|
{{ error }}
|