@vuetify/nightly 3.7.4-master.2024-11-24 → 3.7.4-master.2024-11-28

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.
Files changed (56) hide show
  1. package/dist/json/attributes.json +2929 -2929
  2. package/dist/json/importMap-labs.json +18 -18
  3. package/dist/json/importMap.json +144 -144
  4. package/dist/json/web-types.json +5611 -5611
  5. package/dist/vuetify-labs.css +2603 -2603
  6. package/dist/vuetify-labs.d.ts +199 -199
  7. package/dist/vuetify-labs.esm.js +45 -42
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +45 -42
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +1011 -1011
  12. package/dist/vuetify.d.ts +177 -177
  13. package/dist/vuetify.esm.js +42 -39
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +42 -39
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +26 -25
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
  21. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  22. package/lib/components/VAutocomplete/index.d.mts +28 -28
  23. package/lib/components/VChip/VChip.mjs +1 -1
  24. package/lib/components/VChip/VChip.mjs.map +1 -1
  25. package/lib/components/VChip/index.d.mts +9 -9
  26. package/lib/components/VCombobox/VCombobox.mjs +4 -4
  27. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  28. package/lib/components/VCombobox/index.d.mts +28 -28
  29. package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
  30. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  31. package/lib/components/VDatePicker/index.d.mts +6 -6
  32. package/lib/components/VList/VList.mjs +3 -2
  33. package/lib/components/VList/VList.mjs.map +1 -1
  34. package/lib/components/VList/index.d.mts +12 -12
  35. package/lib/components/VSelect/VSelect.mjs +3 -3
  36. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  37. package/lib/components/VSelect/index.d.mts +28 -28
  38. package/lib/components/VStepper/VStepper.mjs +5 -4
  39. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  40. package/lib/components/VStepper/VStepperItem.mjs +5 -4
  41. package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
  42. package/lib/components/VStepper/index.d.mts +58 -52
  43. package/lib/components/index.d.mts +126 -126
  44. package/lib/composables/form.mjs +7 -2
  45. package/lib/composables/form.mjs.map +1 -1
  46. package/lib/composables/validation.mjs +10 -12
  47. package/lib/composables/validation.mjs.map +1 -1
  48. package/lib/entry-bundler.mjs +1 -1
  49. package/lib/framework.mjs +1 -1
  50. package/lib/index.d.mts +51 -51
  51. package/lib/labs/VNumberInput/VNumberInput.mjs +3 -3
  52. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  53. package/lib/labs/VStepperVertical/index.d.mts +51 -51
  54. package/lib/labs/VTreeview/index.d.mts +22 -22
  55. package/lib/labs/components.d.mts +73 -73
  56. package/package.json +1 -1
@@ -6,6 +6,7 @@ import "./VStepperItem.css";
6
6
  import { VAvatar } from "../VAvatar/VAvatar.mjs";
7
7
  import { VIcon } from "../VIcon/VIcon.mjs"; // Composables
8
8
  import { makeGroupItemProps, useGroupItem } from "../../composables/group.mjs";
9
+ import { IconValue } from "../../composables/icons.mjs";
9
10
  import { genOverlays } from "../../composables/variant.mjs"; // Directives
10
11
  import { Ripple } from "../../directives/ripple/index.mjs"; // Utilities
11
12
  import { computed } from 'vue';
@@ -17,20 +18,20 @@ export const makeStepperItemProps = propsFactory({
17
18
  subtitle: String,
18
19
  complete: Boolean,
19
20
  completeIcon: {
20
- type: String,
21
+ type: IconValue,
21
22
  default: '$complete'
22
23
  },
23
24
  editable: Boolean,
24
25
  editIcon: {
25
- type: String,
26
+ type: IconValue,
26
27
  default: '$edit'
27
28
  },
28
29
  error: Boolean,
29
30
  errorIcon: {
30
- type: String,
31
+ type: IconValue,
31
32
  default: '$error'
32
33
  },
33
- icon: String,
34
+ icon: IconValue,
34
35
  ripple: {
35
36
  type: [Boolean, Object],
36
37
  default: true
@@ -1 +1 @@
1
- {"version":3,"file":"VStepperItem.mjs","names":["VAvatar","VIcon","makeGroupItemProps","useGroupItem","genOverlays","Ripple","computed","VStepperSymbol","genericComponent","propsFactory","useRender","makeStepperItemProps","color","String","title","subtitle","complete","Boolean","completeIcon","type","default","editable","editIcon","error","errorIcon","icon","ripple","Object","rules","Array","makeVStepperItemProps","VStepperItem","name","directives","props","emits","val","setup","_ref","slots","group","step","value","isValid","every","handler","isClickable","disabled","canEdit","hasError","hasCompleted","length","isSelected","slotProps","hasColor","hasTitle","hasSubtitle","onClick","toggle","_withDirectives","_createVNode","selectedClass","undefined","_resolveDirective"],"sources":["../../../src/components/VStepper/VStepperItem.tsx"],"sourcesContent":["// Styles\nimport './VStepperItem.sass'\n\n// Components\nimport { VAvatar } from '@/components/VAvatar/VAvatar'\nimport { VIcon } from '@/components/VIcon/VIcon'\n\n// Composables\nimport { makeGroupItemProps, useGroupItem } from '@/composables/group'\nimport { genOverlays } from '@/composables/variant'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed } from 'vue'\nimport { VStepperSymbol } from './shared'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { RippleDirectiveBinding } from '@/directives/ripple'\n\nexport type StepperItem = string | Record<string, any>\n\nexport type StepperItemSlot = {\n canEdit: boolean\n hasError: boolean\n hasCompleted: boolean\n title?: string | number\n subtitle?: string | number\n step: any\n}\n\nexport type VStepperItemSlots = {\n default: StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n}\n\nexport type ValidationRule = () => string | boolean\n\nexport const makeStepperItemProps = propsFactory({\n color: String,\n title: String,\n subtitle: String,\n complete: Boolean,\n completeIcon: {\n type: String,\n default: '$complete',\n },\n editable: Boolean,\n editIcon: {\n type: String,\n default: '$edit',\n },\n error: Boolean,\n errorIcon: {\n type: String,\n default: '$error',\n },\n icon: String,\n ripple: {\n type: [Boolean, Object] as PropType<RippleDirectiveBinding['value']>,\n default: true,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n}, 'StepperItem')\n\nexport const makeVStepperItemProps = propsFactory({\n ...makeStepperItemProps(),\n ...makeGroupItemProps(),\n}, 'VStepperItem')\n\nexport const VStepperItem = genericComponent<VStepperItemSlots>()({\n name: 'VStepperItem',\n\n directives: { Ripple },\n\n props: makeVStepperItemProps(),\n\n emits: {\n 'group:selected': (val: { value: boolean }) => true,\n },\n\n setup (props, { slots }) {\n const group = useGroupItem(props, VStepperSymbol, true)\n const step = computed(() => group?.value.value ?? props.value)\n const isValid = computed(() => props.rules.every(handler => handler() === true))\n const isClickable = computed(() => !props.disabled && props.editable)\n const canEdit = computed(() => !props.disabled && props.editable)\n const hasError = computed(() => props.error || !isValid.value)\n const hasCompleted = computed(() => props.complete || (props.rules.length > 0 && isValid.value))\n const icon = computed(() => {\n if (hasError.value) return props.errorIcon\n if (hasCompleted.value) return props.completeIcon\n if (group.isSelected.value && props.editable) return props.editIcon\n\n return props.icon\n })\n const slotProps = computed(() => ({\n canEdit: canEdit.value,\n hasError: hasError.value,\n hasCompleted: hasCompleted.value,\n title: props.title,\n subtitle: props.subtitle,\n step: step.value,\n value: props.value,\n }))\n\n useRender(() => {\n const hasColor = (\n !group ||\n group.isSelected.value ||\n hasCompleted.value ||\n canEdit.value\n ) && (\n !hasError.value &&\n !props.disabled\n )\n const hasTitle = !!(props.title != null || slots.title)\n const hasSubtitle = !!(props.subtitle != null || slots.subtitle)\n\n function onClick () {\n group?.toggle()\n }\n\n return (\n <button\n class={[\n 'v-stepper-item',\n {\n 'v-stepper-item--complete': hasCompleted.value,\n 'v-stepper-item--disabled': props.disabled,\n 'v-stepper-item--error': hasError.value,\n },\n group?.selectedClass.value,\n ]}\n disabled={ !props.editable }\n v-ripple={[\n props.ripple && props.editable,\n null,\n null,\n ]}\n onClick={ onClick }\n >\n { isClickable.value && genOverlays(true, 'v-stepper-item') }\n\n <VAvatar\n key=\"stepper-avatar\"\n class=\"v-stepper-item__avatar\"\n color={ hasColor ? props.color : undefined }\n size={ 24 }\n >\n { slots.icon?.(slotProps.value) ?? (\n icon.value ? (\n <VIcon icon={ icon.value }></VIcon>\n ) : step.value\n )}\n </VAvatar>\n\n <div class=\"v-stepper-item__content\">\n { hasTitle && (\n <div\n key=\"title\"\n class=\"v-stepper-item__title\"\n >\n { slots.title?.(slotProps.value) ?? props.title }\n </div>\n )}\n\n { hasSubtitle && (\n <div\n key=\"subtitle\"\n class=\"v-stepper-item__subtitle\"\n >\n { slots.subtitle?.(slotProps.value) ?? props.subtitle }\n </div>\n )}\n\n { slots.default?.(slotProps.value) }\n </div>\n </button>\n )\n })\n return {}\n },\n})\n\nexport type VStepperItem = InstanceType<typeof VStepperItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,OAAO;AAAA,SACPC,KAAK,8BAEd;AAAA,SACSC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,WAAW,yCAEpB;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAwBA,OAAO,MAAMC,oBAAoB,GAAGF,YAAY,CAAC;EAC/CG,KAAK,EAAEC,MAAM;EACbC,KAAK,EAAED,MAAM;EACbE,QAAQ,EAAEF,MAAM;EAChBG,QAAQ,EAAEC,OAAO;EACjBC,YAAY,EAAE;IACZC,IAAI,EAAEN,MAAM;IACZO,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAEJ,OAAO;EACjBK,QAAQ,EAAE;IACRH,IAAI,EAAEN,MAAM;IACZO,OAAO,EAAE;EACX,CAAC;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AAW,IAAAI,YAAA;QAAA;QAAA;MAAA,IAKPrB,KAAK,CAACxB,QAAQ,GAAGsC,SAAS,CAACX,KAAK,CAAC,IAAIR,KAAK,CAACnB,QAAQ,EAExD,EAECwB,KAAK,CAACnB,OAAO,GAAGiC,SAAS,CAACX,KAAK,CAAC,QAAAqB,iBAAA,YAxClC7B,KAAK,CAACR,MAAM,IAAIQ,KAAK,CAACb,QAAQ,EAC9B,IAAI;IA2CZ,CAAC,CAAC;IACF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VStepperItem.mjs","names":["VAvatar","VIcon","makeGroupItemProps","useGroupItem","IconValue","genOverlays","Ripple","computed","VStepperSymbol","genericComponent","propsFactory","useRender","makeStepperItemProps","color","String","title","subtitle","complete","Boolean","completeIcon","type","default","editable","editIcon","error","errorIcon","icon","ripple","Object","rules","Array","makeVStepperItemProps","VStepperItem","name","directives","props","emits","val","setup","_ref","slots","group","step","value","isValid","every","handler","isClickable","disabled","canEdit","hasError","hasCompleted","length","isSelected","slotProps","hasColor","hasTitle","hasSubtitle","onClick","toggle","_withDirectives","_createVNode","selectedClass","undefined","_resolveDirective"],"sources":["../../../src/components/VStepper/VStepperItem.tsx"],"sourcesContent":["// Styles\nimport './VStepperItem.sass'\n\n// Components\nimport { VAvatar } from '@/components/VAvatar/VAvatar'\nimport { VIcon } from '@/components/VIcon/VIcon'\n\n// Composables\nimport { makeGroupItemProps, useGroupItem } from '@/composables/group'\nimport { IconValue } from '@/composables/icons'\nimport { genOverlays } from '@/composables/variant'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed } from 'vue'\nimport { VStepperSymbol } from './shared'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { RippleDirectiveBinding } from '@/directives/ripple'\n\nexport type StepperItem = string | Record<string, any>\n\nexport type StepperItemSlot = {\n canEdit: boolean\n hasError: boolean\n hasCompleted: boolean\n title?: string | number\n subtitle?: string | number\n step: any\n}\n\nexport type VStepperItemSlots = {\n default: StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n}\n\nexport type ValidationRule = () => string | boolean\n\nexport const makeStepperItemProps = propsFactory({\n color: String,\n title: String,\n subtitle: String,\n complete: Boolean,\n completeIcon: {\n type: IconValue,\n default: '$complete',\n },\n editable: Boolean,\n editIcon: {\n type: IconValue,\n default: '$edit',\n },\n error: Boolean,\n errorIcon: {\n type: IconValue,\n default: '$error',\n },\n icon: IconValue,\n ripple: {\n type: [Boolean, Object] as PropType<RippleDirectiveBinding['value']>,\n default: true,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n}, 'StepperItem')\n\nexport const makeVStepperItemProps = propsFactory({\n ...makeStepperItemProps(),\n ...makeGroupItemProps(),\n}, 'VStepperItem')\n\nexport const VStepperItem = genericComponent<VStepperItemSlots>()({\n name: 'VStepperItem',\n\n directives: { Ripple },\n\n props: makeVStepperItemProps(),\n\n emits: {\n 'group:selected': (val: { value: boolean }) => true,\n },\n\n setup (props, { slots }) {\n const group = useGroupItem(props, VStepperSymbol, true)\n const step = computed(() => group?.value.value ?? props.value)\n const isValid = computed(() => props.rules.every(handler => handler() === true))\n const isClickable = computed(() => !props.disabled && props.editable)\n const canEdit = computed(() => !props.disabled && props.editable)\n const hasError = computed(() => props.error || !isValid.value)\n const hasCompleted = computed(() => props.complete || (props.rules.length > 0 && isValid.value))\n const icon = computed(() => {\n if (hasError.value) return props.errorIcon\n if (hasCompleted.value) return props.completeIcon\n if (group.isSelected.value && props.editable) return props.editIcon\n\n return props.icon\n })\n const slotProps = computed(() => ({\n canEdit: canEdit.value,\n hasError: hasError.value,\n hasCompleted: hasCompleted.value,\n title: props.title,\n subtitle: props.subtitle,\n step: step.value,\n value: props.value,\n }))\n\n useRender(() => {\n const hasColor = (\n !group ||\n group.isSelected.value ||\n hasCompleted.value ||\n canEdit.value\n ) && (\n !hasError.value &&\n !props.disabled\n )\n const hasTitle = !!(props.title != null || slots.title)\n const hasSubtitle = !!(props.subtitle != null || slots.subtitle)\n\n function onClick () {\n group?.toggle()\n }\n\n return (\n <button\n class={[\n 'v-stepper-item',\n {\n 'v-stepper-item--complete': hasCompleted.value,\n 'v-stepper-item--disabled': props.disabled,\n 'v-stepper-item--error': hasError.value,\n },\n group?.selectedClass.value,\n ]}\n disabled={ !props.editable }\n v-ripple={[\n props.ripple && props.editable,\n null,\n null,\n ]}\n onClick={ onClick }\n >\n { isClickable.value && genOverlays(true, 'v-stepper-item') }\n\n <VAvatar\n key=\"stepper-avatar\"\n class=\"v-stepper-item__avatar\"\n color={ hasColor ? props.color : undefined }\n size={ 24 }\n >\n { slots.icon?.(slotProps.value) ?? (\n icon.value ? (\n <VIcon icon={ icon.value }></VIcon>\n ) : step.value\n )}\n </VAvatar>\n\n <div class=\"v-stepper-item__content\">\n { hasTitle && (\n <div\n key=\"title\"\n class=\"v-stepper-item__title\"\n >\n { slots.title?.(slotProps.value) ?? props.title }\n </div>\n )}\n\n { hasSubtitle && (\n <div\n key=\"subtitle\"\n class=\"v-stepper-item__subtitle\"\n >\n { slots.subtitle?.(slotProps.value) ?? props.subtitle }\n </div>\n )}\n\n { slots.default?.(slotProps.value) }\n </div>\n </button>\n )\n })\n return {}\n },\n})\n\nexport type VStepperItem = InstanceType<typeof VStepperItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,OAAO;AAAA,SACPC,KAAK,8BAEd;AAAA,SACSC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,SAAS;AAAA,SACTC,WAAW,yCAEpB;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAwBA,OAAO,MAAMC,oBAAoB,GAAGF,YAAY,CAAC;EAC/CG,KAAK,EAA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GAAAkB,YAAA,CAAA5D,KAAA;UAAA,QACMyB,IAAI,CAACiB;QAAK,WACtBD,IAAI,CAACC,KAAK,CACf;MAAA,IAAAkB,YAAA;QAAA;MAAA,IAICL,QAAQ,IAAAK,YAAA;QAAA;QAAA;MAAA,IAKJrB,KAAK,CAACzB,KAAK,GAAGuC,SAAS,CAACX,KAAK,CAAC,IAAIR,KAAK,CAACpB,KAAK,EAElD,EAEC0C,WAAW,IAAAI,YAAA;QAAA;QAAA;MAAA,IAKPrB,KAAK,CAACxB,QAAQ,GAAGsC,SAAS,CAACX,KAAK,CAAC,IAAIR,KAAK,CAACnB,QAAQ,EAExD,EAECwB,KAAK,CAACnB,OAAO,GAAGiC,SAAS,CAACX,KAAK,CAAC,QAAAqB,iBAAA,YAxClC7B,KAAK,CAACR,MAAM,IAAIQ,KAAK,CAACb,QAAQ,EAC9B,IAAI;IA2CZ,CAAC,CAAC;IACF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, DirectiveBinding, PropType } from 'vue';
2
+ import { ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent, DirectiveBinding } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -17,6 +17,12 @@ declare const breakpoints: readonly ["sm", "md", "lg", "xl", "xxl"];
17
17
  type Breakpoint = typeof breakpoints[number];
18
18
  type DisplayBreakpoint = 'xs' | Breakpoint;
19
19
 
20
+ type JSXComponent<Props = any> = {
21
+ new (): ComponentPublicInstance<Props>;
22
+ } | FunctionalComponent<Props>;
23
+ type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
24
+ declare const IconValue: PropType<IconValue>;
25
+
20
26
  interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
21
27
  value?: boolean | {
22
28
  class: string;
@@ -47,15 +53,15 @@ declare const VStepperItem: {
47
53
  ripple: boolean | {
48
54
  class: string;
49
55
  } | undefined;
50
- completeIcon: string;
56
+ completeIcon: IconValue;
51
57
  editable: boolean;
52
- editIcon: string;
53
- errorIcon: string;
58
+ editIcon: IconValue;
59
+ errorIcon: IconValue;
54
60
  } & {
55
61
  color?: string | undefined;
56
62
  value?: any;
57
63
  title?: string | undefined;
58
- icon?: string | undefined;
64
+ icon?: IconValue | undefined;
59
65
  selectedClass?: string | undefined;
60
66
  subtitle?: string | undefined;
61
67
  } & {
@@ -92,15 +98,15 @@ declare const VStepperItem: {
92
98
  ripple: boolean | {
93
99
  class: string;
94
100
  } | undefined;
95
- completeIcon: string;
101
+ completeIcon: IconValue;
96
102
  editable: boolean;
97
- editIcon: string;
98
- errorIcon: string;
103
+ editIcon: IconValue;
104
+ errorIcon: IconValue;
99
105
  } & {
100
106
  color?: string | undefined;
101
107
  value?: any;
102
108
  title?: string | undefined;
103
- icon?: string | undefined;
109
+ icon?: IconValue | undefined;
104
110
  selectedClass?: string | undefined;
105
111
  subtitle?: string | undefined;
106
112
  } & {
@@ -133,10 +139,10 @@ declare const VStepperItem: {
133
139
  ripple: boolean | {
134
140
  class: string;
135
141
  } | undefined;
136
- completeIcon: string;
142
+ completeIcon: IconValue;
137
143
  editable: boolean;
138
- editIcon: string;
139
- errorIcon: string;
144
+ editIcon: IconValue;
145
+ errorIcon: IconValue;
140
146
  }, true, {}, vue.SlotsType<Partial<{
141
147
  default: (arg: StepperItemSlot) => vue.VNode[];
142
148
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -157,15 +163,15 @@ declare const VStepperItem: {
157
163
  ripple: boolean | {
158
164
  class: string;
159
165
  } | undefined;
160
- completeIcon: string;
166
+ completeIcon: IconValue;
161
167
  editable: boolean;
162
- editIcon: string;
163
- errorIcon: string;
168
+ editIcon: IconValue;
169
+ errorIcon: IconValue;
164
170
  } & {
165
171
  color?: string | undefined;
166
172
  value?: any;
167
173
  title?: string | undefined;
168
- icon?: string | undefined;
174
+ icon?: IconValue | undefined;
169
175
  selectedClass?: string | undefined;
170
176
  subtitle?: string | undefined;
171
177
  } & {
@@ -198,10 +204,10 @@ declare const VStepperItem: {
198
204
  ripple: boolean | {
199
205
  class: string;
200
206
  } | undefined;
201
- completeIcon: string;
207
+ completeIcon: IconValue;
202
208
  editable: boolean;
203
- editIcon: string;
204
- errorIcon: string;
209
+ editIcon: IconValue;
210
+ errorIcon: IconValue;
205
211
  }>;
206
212
  __isFragment?: never;
207
213
  __isTeleport?: never;
@@ -214,15 +220,15 @@ declare const VStepperItem: {
214
220
  ripple: boolean | {
215
221
  class: string;
216
222
  } | undefined;
217
- completeIcon: string;
223
+ completeIcon: IconValue;
218
224
  editable: boolean;
219
- editIcon: string;
220
- errorIcon: string;
225
+ editIcon: IconValue;
226
+ errorIcon: IconValue;
221
227
  } & {
222
228
  color?: string | undefined;
223
229
  value?: any;
224
230
  title?: string | undefined;
225
- icon?: string | undefined;
231
+ icon?: IconValue | undefined;
226
232
  selectedClass?: string | undefined;
227
233
  subtitle?: string | undefined;
228
234
  } & {
@@ -259,10 +265,10 @@ declare const VStepperItem: {
259
265
  ripple: boolean | {
260
266
  class: string;
261
267
  } | undefined;
262
- completeIcon: string;
268
+ completeIcon: IconValue;
263
269
  editable: boolean;
264
- editIcon: string;
265
- errorIcon: string;
270
+ editIcon: IconValue;
271
+ errorIcon: IconValue;
266
272
  }, {}, string, vue.SlotsType<Partial<{
267
273
  default: (arg: StepperItemSlot) => vue.VNode[];
268
274
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -277,20 +283,20 @@ declare const VStepperItem: {
277
283
  subtitle: StringConstructor;
278
284
  complete: BooleanConstructor;
279
285
  completeIcon: {
280
- type: StringConstructor;
286
+ type: PropType<IconValue>;
281
287
  default: string;
282
288
  };
283
289
  editable: BooleanConstructor;
284
290
  editIcon: {
285
- type: StringConstructor;
291
+ type: PropType<IconValue>;
286
292
  default: string;
287
293
  };
288
294
  error: BooleanConstructor;
289
295
  errorIcon: {
290
- type: StringConstructor;
296
+ type: PropType<IconValue>;
291
297
  default: string;
292
298
  };
293
- icon: StringConstructor;
299
+ icon: PropType<IconValue>;
294
300
  ripple: {
295
301
  type: PropType<RippleDirectiveBinding["value"]>;
296
302
  default: boolean;
@@ -308,20 +314,20 @@ declare const VStepperItem: {
308
314
  subtitle: StringConstructor;
309
315
  complete: BooleanConstructor;
310
316
  completeIcon: {
311
- type: StringConstructor;
317
+ type: PropType<IconValue>;
312
318
  default: string;
313
319
  };
314
320
  editable: BooleanConstructor;
315
321
  editIcon: {
316
- type: StringConstructor;
322
+ type: PropType<IconValue>;
317
323
  default: string;
318
324
  };
319
325
  error: BooleanConstructor;
320
326
  errorIcon: {
321
- type: StringConstructor;
327
+ type: PropType<IconValue>;
322
328
  default: string;
323
329
  };
324
- icon: StringConstructor;
330
+ icon: PropType<IconValue>;
325
331
  ripple: {
326
332
  type: PropType<RippleDirectiveBinding["value"]>;
327
333
  default: boolean;
@@ -376,9 +382,9 @@ declare const VStepper: {
376
382
  modelValue?: any;
377
383
  rounded?: string | number | boolean | undefined;
378
384
  bgColor?: string | undefined;
379
- completeIcon?: string | undefined;
380
- editIcon?: string | undefined;
381
- errorIcon?: string | undefined;
385
+ completeIcon?: IconValue | undefined;
386
+ editIcon?: IconValue | undefined;
387
+ errorIcon?: IconValue | undefined;
382
388
  } & {
383
389
  $children?: vue.VNodeChild | {
384
390
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -466,9 +472,9 @@ declare const VStepper: {
466
472
  modelValue?: any;
467
473
  rounded?: string | number | boolean | undefined;
468
474
  bgColor?: string | undefined;
469
- completeIcon?: string | undefined;
470
- editIcon?: string | undefined;
471
- errorIcon?: string | undefined;
475
+ completeIcon?: IconValue | undefined;
476
+ editIcon?: IconValue | undefined;
477
+ errorIcon?: IconValue | undefined;
472
478
  } & {
473
479
  $children?: vue.VNodeChild | {
474
480
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -592,9 +598,9 @@ declare const VStepper: {
592
598
  modelValue?: any;
593
599
  rounded?: string | number | boolean | undefined;
594
600
  bgColor?: string | undefined;
595
- completeIcon?: string | undefined;
596
- editIcon?: string | undefined;
597
- errorIcon?: string | undefined;
601
+ completeIcon?: IconValue | undefined;
602
+ editIcon?: IconValue | undefined;
603
+ errorIcon?: IconValue | undefined;
598
604
  } & {
599
605
  $children?: vue.VNodeChild | {
600
606
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -705,9 +711,9 @@ declare const VStepper: {
705
711
  modelValue?: any;
706
712
  rounded?: string | number | boolean | undefined;
707
713
  bgColor?: string | undefined;
708
- completeIcon?: string | undefined;
709
- editIcon?: string | undefined;
710
- errorIcon?: string | undefined;
714
+ completeIcon?: IconValue | undefined;
715
+ editIcon?: IconValue | undefined;
716
+ errorIcon?: IconValue | undefined;
711
717
  } & {
712
718
  $children?: vue.VNodeChild | {
713
719
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -854,10 +860,10 @@ declare const VStepper: {
854
860
  mobileBreakpoint: PropType<number | DisplayBreakpoint>;
855
861
  altLabels: BooleanConstructor;
856
862
  bgColor: StringConstructor;
857
- completeIcon: StringConstructor;
858
- editIcon: StringConstructor;
863
+ completeIcon: PropType<IconValue>;
864
+ editIcon: PropType<IconValue>;
859
865
  editable: BooleanConstructor;
860
- errorIcon: StringConstructor;
866
+ errorIcon: PropType<IconValue>;
861
867
  hideActions: BooleanConstructor;
862
868
  items: {
863
869
  type: PropType<readonly StepperItem[]>;
@@ -936,10 +942,10 @@ declare const VStepper: {
936
942
  mobileBreakpoint: PropType<number | DisplayBreakpoint>;
937
943
  altLabels: BooleanConstructor;
938
944
  bgColor: StringConstructor;
939
- completeIcon: StringConstructor;
940
- editIcon: StringConstructor;
945
+ completeIcon: PropType<IconValue>;
946
+ editIcon: PropType<IconValue>;
941
947
  editable: BooleanConstructor;
942
- errorIcon: StringConstructor;
948
+ errorIcon: PropType<IconValue>;
943
949
  hideActions: BooleanConstructor;
944
950
  items: {
945
951
  type: PropType<readonly StepperItem[]>;