@indielayer/ui 1.9.3 → 1.10.1

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 (101) hide show
  1. package/docs/components/menu/DocsMenu.vue +1 -0
  2. package/docs/pages/component/form/usage.vue +2 -0
  3. package/docs/pages/component/menu/usage.vue +2 -0
  4. package/docs/pages/component/select/index.vue +7 -0
  5. package/docs/pages/component/select/multiple.vue +42 -0
  6. package/docs/pages/component/select/usage.vue +8 -12
  7. package/docs/pages/component/table/virtual.vue +19 -6
  8. package/docs/pages/component/toggle/index.vue +1 -1
  9. package/docs/pages/component/tooltip/index.vue +1 -1
  10. package/docs/pages/component/upload/index.vue +29 -0
  11. package/docs/pages/component/upload/usage.vue +115 -0
  12. package/docs/search/components.json +1 -1
  13. package/lib/common/icons.d.ts +2 -0
  14. package/lib/common/icons.js +17 -15
  15. package/lib/components/button/theme/Button.base.theme.js +30 -27
  16. package/lib/components/checkbox/Checkbox.vue2.js +9 -9
  17. package/lib/components/datepicker/Datepicker.vue.d.ts +4 -4
  18. package/lib/components/datepicker/Datepicker.vue.js +1 -1
  19. package/lib/components/drawer/Drawer.vue.js +1 -17
  20. package/lib/components/form/Form.vue.d.ts +4 -4
  21. package/lib/components/form/Form.vue.js +34 -34
  22. package/lib/components/formGroup/FormGroup.vue.d.ts +1 -1
  23. package/lib/components/formGroup/FormGroup.vue.js +39 -37
  24. package/lib/components/index.d.ts +1 -0
  25. package/lib/components/index.js +68 -66
  26. package/lib/components/label/theme/Label.base.theme.js +7 -7
  27. package/lib/components/menu/Menu.vue.d.ts +2 -0
  28. package/lib/components/menu/MenuItem.vue.d.ts +15 -3
  29. package/lib/components/menu/MenuItem.vue.js +1 -1
  30. package/lib/components/menu/MenuItem.vue2.js +43 -37
  31. package/lib/components/modal/Modal.vue.d.ts +4 -4
  32. package/lib/components/modal/Modal.vue.js +38 -34
  33. package/lib/components/notifications/Notifications.vue.d.ts +15 -0
  34. package/lib/components/notifications/Notifications.vue.js +149 -127
  35. package/lib/components/progress/Progress.vue.d.ts +4 -4
  36. package/lib/components/progress/Progress.vue.js +7 -7
  37. package/lib/components/scroll/Scroll.vue2.js +1 -1
  38. package/lib/components/select/Select.vue.d.ts +43 -1
  39. package/lib/components/select/Select.vue.js +358 -258
  40. package/lib/components/select/theme/Select.base.theme.js +1 -0
  41. package/lib/components/tab/Tab.vue.js +1 -1
  42. package/lib/components/tab/TabGroup.vue.js +2 -2
  43. package/lib/components/table/TableCell.vue.d.ts +1 -1
  44. package/lib/components/table/theme/TableHead.base.theme.js +1 -1
  45. package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
  46. package/lib/components/tag/Tag.vue.js +23 -21
  47. package/lib/components/textarea/Textarea.vue.js +1 -1
  48. package/lib/components/upload/Upload.vue.d.ts +195 -0
  49. package/lib/components/upload/Upload.vue.js +264 -0
  50. package/lib/components/upload/Upload.vue2.js +4 -0
  51. package/lib/components/upload/__tests__/Upload.spec.d.ts +1 -0
  52. package/lib/components/upload/index.d.ts +2 -0
  53. package/lib/components/upload/theme/Upload.base.theme.d.ts +3 -0
  54. package/lib/components/upload/theme/Upload.base.theme.js +8 -0
  55. package/lib/components/upload/theme/Upload.carbon.theme.d.ts +3 -0
  56. package/lib/components/upload/theme/Upload.carbon.theme.js +5 -0
  57. package/lib/composables/useVirtualList.js +56 -53
  58. package/lib/index.js +43 -41
  59. package/lib/index.umd.js +4 -4
  60. package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +501 -0
  61. package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +96 -0
  62. package/lib/theme.d.ts +2 -1
  63. package/lib/themes/base/components.d.ts +1 -0
  64. package/lib/themes/base/components.js +23 -21
  65. package/lib/themes/carbon/components.d.ts +1 -0
  66. package/lib/themes/carbon/components.js +23 -21
  67. package/lib/version.d.ts +1 -1
  68. package/lib/version.js +1 -1
  69. package/package.json +3 -3
  70. package/src/common/icons.ts +2 -0
  71. package/src/components/button/theme/Button.base.theme.ts +6 -3
  72. package/src/components/checkbox/Checkbox.vue +5 -5
  73. package/src/components/drawer/Drawer.vue +0 -16
  74. package/src/components/form/Form.vue +10 -4
  75. package/src/components/formGroup/FormGroup.vue +2 -0
  76. package/src/components/index.ts +1 -0
  77. package/src/components/label/theme/Label.base.theme.ts +7 -5
  78. package/src/components/menu/Menu.vue +2 -0
  79. package/src/components/menu/MenuItem.vue +8 -6
  80. package/src/components/modal/Modal.vue +6 -1
  81. package/src/components/notifications/Notifications.vue +34 -4
  82. package/src/components/progress/Progress.vue +2 -2
  83. package/src/components/select/Select.vue +166 -68
  84. package/src/components/select/theme/Select.base.theme.ts +2 -0
  85. package/src/components/table/theme/TableHead.base.theme.ts +1 -1
  86. package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
  87. package/src/components/tag/Tag.vue +12 -10
  88. package/src/components/upload/Upload.vue +365 -0
  89. package/src/components/upload/__tests__/Upload.spec.ts +11 -0
  90. package/src/components/upload/index.ts +2 -0
  91. package/src/components/upload/theme/Upload.base.theme.ts +9 -0
  92. package/src/components/upload/theme/Upload.carbon.theme.ts +7 -0
  93. package/src/composables/useInputtable.ts +1 -1
  94. package/src/composables/useVirtualList.ts +8 -5
  95. package/src/theme.ts +2 -0
  96. package/src/themes/base/components.ts +1 -0
  97. package/src/themes/carbon/components.ts +1 -0
  98. package/src/version.ts +1 -1
  99. package/volar.d.ts +1 -0
  100. package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -412
  101. package/lib/node_modules/.pnpm/@vueuse_shared@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -90
@@ -294,7 +294,7 @@ declare const datepickerProps: {
294
294
  default: string;
295
295
  };
296
296
  weekStart: {
297
- type: PropType<0 | 1 | 2 | "0" | "1" | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
297
+ type: PropType<0 | 1 | "0" | "1" | 2 | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
298
298
  default: number;
299
299
  };
300
300
  weekNumbers: {
@@ -861,7 +861,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
861
861
  default: string;
862
862
  };
863
863
  weekStart: {
864
- type: PropType<0 | 1 | 2 | "0" | "1" | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
864
+ type: PropType<0 | 1 | "0" | "1" | 2 | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
865
865
  default: number;
866
866
  };
867
867
  weekNumbers: {
@@ -1427,7 +1427,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
1427
1427
  default: string;
1428
1428
  };
1429
1429
  weekStart: {
1430
- type: PropType<0 | 1 | 2 | "0" | "1" | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
1430
+ type: PropType<0 | 1 | "0" | "1" | 2 | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined>;
1431
1431
  default: number;
1432
1432
  };
1433
1433
  weekNumbers: {
@@ -1794,7 +1794,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
1794
1794
  quarter: number;
1795
1795
  year: number;
1796
1796
  }) => boolean) | Partial<import("@vuepic/vue-datepicker").Highlight> | undefined;
1797
- weekStart: 0 | 1 | 2 | "0" | "1" | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined;
1797
+ weekStart: 0 | 1 | "0" | "1" | 2 | 3 | 4 | 5 | 6 | "2" | "3" | "4" | "5" | "6" | undefined;
1798
1798
  weekNumbers: import("@vuepic/vue-datepicker").WeekNumberType | {
1799
1799
  type: import("@vuepic/vue-datepicker").WeekNumberType;
1800
1800
  hideOnOffsetDates?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, ref as d, openBlock as D, createElementBlock as C, normalizeStyle as I, unref as n, normalizeClass as P, createVNode as u, createSlots as T, withCtx as m, withKeys as p, withModifiers as R, renderList as j, renderSlot as F, normalizeProps as A, guardReactiveProps as z } from "vue";
2
- import { useMutationObserver as L } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
2
+ import { useMutationObserver as L } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useCommon as q } from "../../composables/useCommon.js";
4
4
  import { useInputtable as f } from "../../composables/useInputtable.js";
5
5
  import { useInteractive as M } from "../../composables/useInteractive.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as X, ref as a, watchEffect as j, watch as K, computed as v, onMounted as M, openBlock as y, createBlock as O, Teleport as q, createVNode as w, Transition as F, withCtx as g, withDirectives as G, createElementVNode as k, normalizeClass as $, unref as n, createElementBlock as H, createCommentVNode as x, normalizeStyle as I, renderSlot as f, vShow as J } from "vue";
2
- import { useBreakpoints as Q, breakpointsTailwind as U, useEventListener as S, useSwipe as W } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
2
+ import { useBreakpoints as Q, breakpointsTailwind as U, useEventListener as S, useSwipe as W } from "../../node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
3
3
  import { useTheme as Y } from "../../composables/useTheme.js";
4
4
  import Z from "../scroll/Scroll.vue.js";
5
5
  const ee = {
@@ -50,22 +50,6 @@ const ee = {
50
50
  e.key === "Escape" && s.value && l();
51
51
  }
52
52
  W(d, {
53
- // passive: false,
54
- // onSwipe(e: TouchEvent) {
55
- // if (lengthX.value < 0) {
56
- // const length = Math.abs(lengthX.value)
57
- // left.value = `${length}px`
58
- // } else {
59
- // left.value = '0'
60
- // }
61
- // },
62
- // onSwipeEnd(e: TouchEvent, direction: UseSwipeDirection) {
63
- // if (lengthX.value < 0 && props.width && (Math.abs(lengthX.value) / props.width) >= 0.5) {
64
- // left.value = '100%'
65
- // } else {
66
- // left.value = '0'
67
- // }
68
- // },
69
53
  onSwipeEnd(e, o) {
70
54
  i.value && (t.position === "left" && o === "left" || t.position === "right" && o === "right" || t.position === "top" && o === "up" || t.position === "bottom" && o === "down") && l();
71
55
  }
@@ -11,7 +11,7 @@ declare const formProps: {
11
11
  };
12
12
  disabled: BooleanConstructor;
13
13
  errors: {
14
- type: PropType<[FormError[], FormError]>;
14
+ type: PropType<FormError | FormError[]>;
15
15
  default: () => never[];
16
16
  };
17
17
  title: StringConstructor;
@@ -51,7 +51,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
51
51
  };
52
52
  disabled: BooleanConstructor;
53
53
  errors: {
54
- type: PropType<[FormError[], FormError]>;
54
+ type: PropType<FormError | FormError[]>;
55
55
  default: () => never[];
56
56
  };
57
57
  title: StringConstructor;
@@ -71,7 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
71
71
  };
72
72
  disabled: BooleanConstructor;
73
73
  errors: {
74
- type: PropType<[FormError[], FormError]>;
74
+ type: PropType<FormError | FormError[]>;
75
75
  default: () => never[];
76
76
  };
77
77
  title: StringConstructor;
@@ -86,7 +86,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
86
86
  autoValidate: boolean;
87
87
  autoFocus: boolean;
88
88
  disabled: boolean;
89
- errors: [FormError[], FormError];
89
+ errors: FormError | FormError[];
90
90
  hasFooter: boolean;
91
91
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
92
92
  header?(_: {}): any;
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, provide as I, onMounted as S, watch as $, nextTick as A, openBlock as c, createElementBlock as m, normalizeStyle as C, unref as i, normalizeClass as a, renderSlot as r, toDisplayString as p, createCommentVNode as f, createElementVNode as y } from "vue";
1
+ import { defineComponent as E, provide as I, onMounted as S, watch as $, nextTick as A, openBlock as c, createElementBlock as f, normalizeStyle as C, unref as n, normalizeClass as l, renderSlot as d, toDisplayString as p, createCommentVNode as m, createElementVNode as y } from "vue";
2
2
  import { injectFormKey as N } from "../../composables/keys.js";
3
3
  import { useTheme as T } from "../../composables/useTheme.js";
4
4
  const j = {
@@ -31,11 +31,11 @@ const j = {
31
31
  props: z,
32
32
  emits: ["submit"],
33
33
  setup(h, { emit: b }) {
34
- const l = h, F = b, s = [];
34
+ const u = h, F = b, s = [];
35
35
  I(N, {
36
- registerInput: (e, t, o, d) => {
37
- const u = s.find((B) => B.name === e);
38
- u ? (u.focus = t, u.validate = o, u.setError = d) : s.push({ name: e, focus: t, validate: o, setError: d });
36
+ registerInput: (e, t, o, i) => {
37
+ const a = s.find((B) => B.name === e);
38
+ a ? (a.focus = t, a.validate = o, a.setError = i) : s.push({ name: e, focus: t, validate: o, setError: i });
39
39
  },
40
40
  unregisterInput: (e) => {
41
41
  const t = s.findIndex((o) => o.name === e);
@@ -43,17 +43,17 @@ const j = {
43
43
  },
44
44
  isInsideForm: !0
45
45
  }), S(async () => {
46
- l.autoFocus && s && s.length > 0 && setTimeout(s[0].focus, 50);
47
- }), $(() => l.errors, (e) => {
46
+ u.autoFocus && s && s.length > 0 && setTimeout(s[0].focus, 50);
47
+ }), $(() => u.errors, (e) => {
48
48
  e && A(() => {
49
49
  if (Array.isArray(e))
50
- e.forEach((t) => {
51
- const o = s.find((d) => d.name === t.field);
52
- o && o.setError(t.msg);
50
+ e.forEach((t, o) => {
51
+ const i = s.find((a) => a.name === t.field);
52
+ i && (i.setError(t.msg), o === 0 && i.focus && i.focus());
53
53
  });
54
54
  else {
55
55
  const t = s.find((o) => o.name === e.field);
56
- t && t.setError(e.msg);
56
+ t && (t.setError(e.msg), t.focus && t.focus());
57
57
  }
58
58
  });
59
59
  });
@@ -64,43 +64,43 @@ const j = {
64
64
  }), e;
65
65
  }, V = (e) => {
66
66
  e.preventDefault(), e.stopPropagation();
67
- const t = l.autoValidate ? g() : !0;
67
+ const t = u.autoValidate ? g() : !0;
68
68
  F("submit", t);
69
- }, { styles: k, classes: n, className: v } = T("Form", {}, l);
70
- return (e, t) => (c(), m("form", {
71
- style: C(i(k)),
72
- class: a([
73
- i(v),
74
- i(n).wrapper
69
+ }, { styles: k, classes: r, className: v } = T("Form", {}, u);
70
+ return (e, t) => (c(), f("form", {
71
+ style: C(n(k)),
72
+ class: l([
73
+ n(v),
74
+ n(r).wrapper
75
75
  ]),
76
76
  onSubmit: V
77
77
  }, [
78
- r(e.$slots, "header", {}, () => [
79
- e.title || e.description ? (c(), m("div", j, [
80
- e.title ? (c(), m("p", {
78
+ d(e.$slots, "header", {}, () => [
79
+ e.title || e.description ? (c(), f("div", j, [
80
+ e.title ? (c(), f("p", {
81
81
  key: 0,
82
- class: a(i(n).title)
83
- }, p(e.title), 3)) : f("", !0),
84
- e.description ? (c(), m("p", {
82
+ class: l(n(r).title)
83
+ }, p(e.title), 3)) : m("", !0),
84
+ e.description ? (c(), f("p", {
85
85
  key: 1,
86
- class: a(i(n).description)
87
- }, p(e.description), 3)) : f("", !0)
88
- ])) : f("", !0)
86
+ class: l(n(r).description)
87
+ }, p(e.description), 3)) : m("", !0)
88
+ ])) : m("", !0)
89
89
  ]),
90
90
  y("fieldset", {
91
91
  disabled: e.disabled,
92
- class: a([i(n).content, "contents"])
92
+ class: l([n(r).content, "contents"])
93
93
  }, [
94
- r(e.$slots, "default")
94
+ d(e.$slots, "default")
95
95
  ], 10, w),
96
- e.hasFooter ? r(e.$slots, "footer", { key: 0 }, () => [
96
+ e.hasFooter ? d(e.$slots, "footer", { key: 0 }, () => [
97
97
  y("div", {
98
- class: a(i(n).footer)
98
+ class: l(n(r).footer)
99
99
  }, [
100
- r(e.$slots, "primary-action"),
101
- r(e.$slots, "secondary-action")
100
+ d(e.$slots, "primary-action"),
101
+ d(e.$slots, "secondary-action")
102
102
  ], 2)
103
- ]) : f("", !0)
103
+ ]) : m("", !0)
104
104
  ], 38));
105
105
  }
106
106
  });
@@ -86,7 +86,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
86
86
  };
87
87
  }>, {
88
88
  focus: () => void;
89
- blur: typeof blur;
89
+ blur: () => void;
90
90
  reset: () => void;
91
91
  validate: (val?: any) => boolean;
92
92
  setError: (val: string) => void;
@@ -1,31 +1,31 @@
1
- import { defineComponent as k, computed as q, provide as w, openBlock as m, createBlock as d, mergeProps as B, unref as o, toHandlers as K, withKeys as N, withCtx as $, createElementVNode as A, normalizeClass as E, renderSlot as O, createCommentVNode as P } from "vue";
2
- import { useTheme as j } from "../../composables/useTheme.js";
3
- import { useInteractive as z } from "../../composables/useInteractive.js";
4
- import { useInputtable as a } from "../../composables/useInputtable.js";
5
- import { injectFormGroupKey as H } from "../../composables/keys.js";
6
- import S from "../label/Label.vue.js";
7
- import T from "../inputFooter/InputFooter.vue.js";
8
- const X = {
9
- ...z.props(),
10
- ...a.props(),
1
+ import { defineComponent as q, computed as w, provide as B, openBlock as m, createBlock as d, mergeProps as K, unref as o, toHandlers as N, withKeys as $, withCtx as A, createElementVNode as E, normalizeClass as O, renderSlot as P, createCommentVNode as j } from "vue";
2
+ import { useTheme as z } from "../../composables/useTheme.js";
3
+ import { useInteractive as H } from "../../composables/useInteractive.js";
4
+ import { useInputtable as i } from "../../composables/useInputtable.js";
5
+ import { injectFormGroupKey as S } from "../../composables/keys.js";
6
+ import T from "../label/Label.vue.js";
7
+ import X from "../inputFooter/InputFooter.vue.js";
8
+ const D = {
9
+ ...H.props(),
10
+ ...i.props(),
11
11
  vertical: {
12
12
  type: Boolean,
13
13
  default: !1
14
14
  }
15
- }, D = {
15
+ }, J = {
16
16
  name: "XFormGroup"
17
- }, Y = /* @__PURE__ */ k({
18
- ...D,
19
- props: X,
20
- emits: a.emits(),
17
+ }, Z = /* @__PURE__ */ q({
18
+ ...J,
19
+ props: D,
20
+ emits: i.emits(),
21
21
  setup(f, { expose: c, emit: V }) {
22
- const r = f, t = [], y = q(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
23
- w(H, {
22
+ const r = f, t = [], y = w(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
23
+ B(S, {
24
24
  registerInputGroup: (e, s) => {
25
25
  t.push({ name: e, focus: s });
26
26
  },
27
27
  unregisterInputGroup: (e) => {
28
- const s = t.findIndex((C) => C.name === e);
28
+ const s = t.findIndex((k) => k.name === e);
29
29
  t.splice(s, 1);
30
30
  },
31
31
  setValue: (e) => {
@@ -34,47 +34,49 @@ const X = {
34
34
  isInsideFormGroup: !0,
35
35
  value: y
36
36
  });
37
- function i() {
37
+ function a() {
38
38
  var e;
39
39
  (e = t[0]) == null || e.focus();
40
40
  }
41
+ function v() {
42
+ }
41
43
  const n = V, {
42
44
  errorInternal: u,
43
- isInsideForm: v,
45
+ isInsideForm: h,
44
46
  isFirstValidation: p,
45
- reset: h,
47
+ reset: I,
46
48
  validate: l,
47
- setError: I
48
- } = a(r, { focus: i, emit: n }), b = {
49
+ setError: b
50
+ } = i(r, { focus: a, emit: n }), F = {
49
51
  change: (e) => {
50
52
  r.validateOnInput && !p.value && l(r.modelValue);
51
53
  }
52
54
  };
53
- function F() {
55
+ function G() {
54
56
  r.validateOnInput && !p.value && l(r.modelValue);
55
57
  }
56
- const { styles: G, classes: g, className: _ } = j("FormGroup", {}, r, { errorInternal: u });
57
- return c({ focus: i, blur, reset: h, validate: l, setError: I }), (e, s) => (m(), d(S, B({
58
+ const { styles: g, classes: _, className: C } = z("FormGroup", {}, r, { errorInternal: u });
59
+ return c({ focus: a, blur: v, reset: I, validate: l, setError: b }), (e, s) => (m(), d(T, K({
58
60
  tag: "fieldset",
59
- style: o(G),
61
+ style: o(g),
60
62
  disabled: e.disabled,
61
63
  required: e.required,
62
- "is-inside-form": o(v),
64
+ "is-inside-form": o(h),
63
65
  label: e.label,
64
66
  class: [
65
- o(_)
67
+ o(C)
66
68
  ],
67
69
  tooltip: e.tooltip
68
- }, K(b), {
69
- onKeyup: N(F, ["space"])
70
+ }, N(F), {
71
+ onKeyup: $(G, ["space"])
70
72
  }), {
71
- default: $(() => [
72
- A("div", {
73
- class: E(o(g).wrapper)
73
+ default: A(() => [
74
+ E("div", {
75
+ class: O(o(_).wrapper)
74
76
  }, [
75
- O(e.$slots, "default")
77
+ P(e.$slots, "default")
76
78
  ], 2),
77
- e.hideFooter ? P("", !0) : (m(), d(T, {
79
+ e.hideFooter ? j("", !0) : (m(), d(X, {
78
80
  key: 0,
79
81
  error: o(u),
80
82
  helper: e.helper
@@ -85,5 +87,5 @@ const X = {
85
87
  }
86
88
  });
87
89
  export {
88
- Y as default
90
+ Z as default
89
91
  };
@@ -42,3 +42,4 @@ export * from './textarea';
42
42
  export * from './themeProvider';
43
43
  export * from './toggle';
44
44
  export * from './tooltip';
45
+ export * from './upload';
@@ -18,100 +18,102 @@ import { default as h } from "./notifications/Notifications.vue.js";
18
18
  import { default as H } from "./pagination/Pagination.vue.js";
19
19
  import { default as y } from "./progress/Progress.vue.js";
20
20
  import { default as Q } from "./qrCode/QrCode.vue.js";
21
- import { default as q } from "./select/Select.vue.js";
22
- import { default as E } from "./skeleton/Skeleton.vue.js";
23
- import { default as K } from "./stepper/Stepper.vue.js";
24
- import { default as U } from "./tab/Tab.vue.js";
21
+ import { default as j } from "./select/Select.vue.js";
22
+ import { default as z } from "./skeleton/Skeleton.vue.js";
23
+ import { default as J } from "./stepper/Stepper.vue.js";
24
+ import { default as O } from "./tab/Tab.vue.js";
25
25
  import { default as W } from "./tab/TabGroup.vue.js";
26
26
  import { default as Z } from "./table/Table.vue.js";
27
27
  import { default as $ } from "./textarea/Textarea.vue.js";
28
28
  import { default as oe } from "./themeProvider/ThemeProvider.vue.js";
29
29
  import { default as ae } from "./toggle/Toggle.vue.js";
30
- import { default as fe } from "./alert/Alert.vue.js";
31
- import { default as de } from "./avatar/Avatar.vue.js";
32
- import { default as ue } from "./button/Button.vue.js";
33
- import { default as se } from "./button/ButtonGroup.vue.js";
34
- import { default as Xe } from "./carousel/CarouselSlide.vue.js";
35
- import { default as ne } from "./checkbox/Checkbox.vue.js";
36
- import { default as ce } from "./icon/Icon.vue.js";
37
- import { default as ge } from "./input/Input.vue.js";
38
- import { default as Se } from "./inputFooter/InputFooter.vue.js";
39
- import { default as Pe } from "./label/Label.vue.js";
40
- import { default as Be } from "./link/Link.vue.js";
41
- import { default as Ae } from "./loader/Loader.vue.js";
42
- import { default as Fe } from "./menu/MenuItem.vue.js";
43
- import { default as Le } from "./pagination/PaginationItem.vue.js";
44
- import { default as he } from "./popover/Popover.vue.js";
45
- import { default as He } from "./popover/PopoverContainer.vue.js";
46
- import { default as ye } from "./radio/Radio.vue.js";
47
- import { default as Qe } from "./scroll/Scroll.vue.js";
48
- import { default as qe } from "./slider/Slider.vue.js";
49
- import { default as Ee } from "./spacer/Spacer.js";
50
- import { default as Ke } from "./spinner/Spinner.vue.js";
51
- import { default as Ue } from "./table/TableBody.js";
52
- import { default as We } from "./table/TableCell.vue.js";
53
- import { default as Ze } from "./table/TableHead.vue.js";
54
- import { default as $e } from "./table/TableHeader.vue.js";
55
- import { default as oo } from "./table/TableRow.vue.js";
56
- import { default as ao } from "./tag/Tag.vue.js";
57
- import { default as fo } from "./tooltip/Tooltip.vue.js";
58
- import { default as po } from "./tooltip/ToggleTip.vue.js";
30
+ import { default as fe } from "./upload/Upload.vue.js";
31
+ import { default as de } from "./alert/Alert.vue.js";
32
+ import { default as ue } from "./avatar/Avatar.vue.js";
33
+ import { default as se } from "./button/Button.vue.js";
34
+ import { default as Xe } from "./button/ButtonGroup.vue.js";
35
+ import { default as ne } from "./carousel/CarouselSlide.vue.js";
36
+ import { default as ce } from "./checkbox/Checkbox.vue.js";
37
+ import { default as ge } from "./icon/Icon.vue.js";
38
+ import { default as Se } from "./input/Input.vue.js";
39
+ import { default as Pe } from "./inputFooter/InputFooter.vue.js";
40
+ import { default as Be } from "./label/Label.vue.js";
41
+ import { default as Ae } from "./link/Link.vue.js";
42
+ import { default as Fe } from "./loader/Loader.vue.js";
43
+ import { default as Le } from "./menu/MenuItem.vue.js";
44
+ import { default as he } from "./pagination/PaginationItem.vue.js";
45
+ import { default as He } from "./popover/Popover.vue.js";
46
+ import { default as ye } from "./popover/PopoverContainer.vue.js";
47
+ import { default as Qe } from "./radio/Radio.vue.js";
48
+ import { default as je } from "./scroll/Scroll.vue.js";
49
+ import { default as ze } from "./slider/Slider.vue.js";
50
+ import { default as Je } from "./spacer/Spacer.js";
51
+ import { default as Oe } from "./spinner/Spinner.vue.js";
52
+ import { default as We } from "./table/TableBody.js";
53
+ import { default as Ze } from "./table/TableCell.vue.js";
54
+ import { default as $e } from "./table/TableHead.vue.js";
55
+ import { default as oo } from "./table/TableHeader.vue.js";
56
+ import { default as ao } from "./table/TableRow.vue.js";
57
+ import { default as fo } from "./tag/Tag.vue.js";
58
+ import { default as po } from "./tooltip/Tooltip.vue.js";
59
+ import { default as mo } from "./tooltip/ToggleTip.vue.js";
59
60
  export {
60
61
  a as XAccordion,
61
62
  f as XAccordionItem,
62
- fe as XAlert,
63
- de as XAvatar,
63
+ de as XAlert,
64
+ ue as XAvatar,
64
65
  d as XBadge,
65
66
  u as XBreadcrumbs,
66
- ue as XButton,
67
- se as XButtonGroup,
67
+ se as XButton,
68
+ Xe as XButtonGroup,
68
69
  s as XCard,
69
70
  X as XCarousel,
70
- Xe as XCarouselSlide,
71
- ne as XCheckbox,
71
+ ne as XCarouselSlide,
72
+ ce as XCheckbox,
72
73
  n as XContainer,
73
74
  c as XDatepicker,
74
75
  g as XDivider,
75
76
  S as XDrawer,
76
77
  P as XForm,
77
78
  B as XFormGroup,
78
- ce as XIcon,
79
+ ge as XIcon,
79
80
  A as XImage,
80
- ge as XInput,
81
- Se as XInputFooter,
82
- Pe as XLabel,
83
- Be as XLink,
84
- Ae as XLoader,
81
+ Se as XInput,
82
+ Pe as XInputFooter,
83
+ Be as XLabel,
84
+ Ae as XLink,
85
+ Fe as XLoader,
85
86
  F as XMenu,
86
- Fe as XMenuItem,
87
+ Le as XMenuItem,
87
88
  L as XModal,
88
89
  h as XNotifications,
89
90
  H as XPagination,
90
- Le as XPaginationItem,
91
- he as XPopover,
92
- He as XPopoverContainer,
91
+ he as XPaginationItem,
92
+ He as XPopover,
93
+ ye as XPopoverContainer,
93
94
  y as XProgress,
94
95
  Q as XQrCode,
95
- ye as XRadio,
96
- Qe as XScroll,
97
- q as XSelect,
98
- E as XSkeleton,
99
- qe as XSlider,
100
- Ee as XSpacer,
101
- Ke as XSpinner,
102
- K as XStepper,
103
- U as XTab,
96
+ Qe as XRadio,
97
+ je as XScroll,
98
+ j as XSelect,
99
+ z as XSkeleton,
100
+ ze as XSlider,
101
+ Je as XSpacer,
102
+ Oe as XSpinner,
103
+ J as XStepper,
104
+ O as XTab,
104
105
  W as XTabGroup,
105
106
  Z as XTable,
106
- Ue as XTableBody,
107
- We as XTableCell,
108
- Ze as XTableHead,
109
- $e as XTableHeader,
110
- oo as XTableRow,
111
- ao as XTag,
107
+ We as XTableBody,
108
+ Ze as XTableCell,
109
+ $e as XTableHead,
110
+ oo as XTableHeader,
111
+ ao as XTableRow,
112
+ fo as XTag,
112
113
  $ as XTextarea,
113
114
  oe as XThemeProvider,
114
115
  ae as XToggle,
115
- po as XToggleTip,
116
- fo as XTooltip
116
+ mo as XToggleTip,
117
+ po as XTooltip,
118
+ fe as XUpload
117
119
  };
@@ -1,15 +1,15 @@
1
- const s = {
1
+ const t = {
2
2
  classes: {
3
- wrapper: ({ props: t }) => {
3
+ wrapper: ({ props: s }) => {
4
4
  const e = ["block relative align-bottom focus:outline-none"];
5
- return t.isInsideForm && e.push("mb-5"), t.block && e.push("w-full"), e;
5
+ return s.isInsideForm && e.push("mb-5"), s.block && e.push("w-full"), e;
6
6
  },
7
- label: ({ props: t }) => {
8
- const e = "flex items-center gap-2 font-medium text-secondary-800 dark:text-secondary-200 mb-1";
9
- return t.size === "xs" ? e + " text-xs" : t.size === "sm" ? e + " text-sm" : t.size === "lg" ? e + " text-lg" : t.size === "xl" ? e + " text-xl" : e;
7
+ label: ({ props: s }) => {
8
+ const e = ["flex items-center gap-2 font-medium text-secondary-800 dark:text-secondary-200 mb-1"];
9
+ return s.size === "xs" ? e.push("text-xs") : s.size === "sm" ? e.push("text-sm") : s.size === "lg" ? e.push("text-lg") : s.size === "xl" && e.push("text-xl"), s.required && e.push('[&_span]:after:content-["*"] [&_span]:after:ml-0.5 [&_span]:after:text-error-500'), e;
10
10
  }
11
11
  }
12
- }, l = s;
12
+ }, l = t;
13
13
  export {
14
14
  l as default
15
15
  };
@@ -51,6 +51,8 @@ export type MenuArrayItem = {
51
51
  disabled?: boolean;
52
52
  active?: boolean;
53
53
  attrs?: Record<string, unknown>;
54
+ prefix?: string;
55
+ suffix?: string;
54
56
  onClick?: (e: MouseEvent) => void;
55
57
  };
56
58
  export type MenuProps = ExtractPublicPropTypes<typeof menuProps>;
@@ -32,6 +32,8 @@ declare const menuItemProps: {
32
32
  selected: BooleanConstructor;
33
33
  disabled: BooleanConstructor;
34
34
  minimal: BooleanConstructor;
35
+ prefix: StringConstructor;
36
+ suffix: StringConstructor;
35
37
  color: {
36
38
  readonly type: StringConstructor;
37
39
  readonly default: string | undefined;
@@ -80,6 +82,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
80
82
  selected: BooleanConstructor;
81
83
  disabled: BooleanConstructor;
82
84
  minimal: BooleanConstructor;
85
+ prefix: StringConstructor;
86
+ suffix: StringConstructor;
83
87
  color: {
84
88
  readonly type: StringConstructor;
85
89
  readonly default: string | undefined;
@@ -120,6 +124,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
120
124
  selected: BooleanConstructor;
121
125
  disabled: BooleanConstructor;
122
126
  minimal: BooleanConstructor;
127
+ prefix: StringConstructor;
128
+ suffix: StringConstructor;
123
129
  color: {
124
130
  readonly type: StringConstructor;
125
131
  readonly default: string | undefined;
@@ -146,9 +152,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
146
152
  exact: boolean;
147
153
  selected: boolean;
148
154
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
149
- prefix?(_: {}): any;
150
- default?(_: {}): any;
151
- suffix?(_: {}): any;
155
+ prefix?(_: {
156
+ item: MenuItemProps;
157
+ }): any;
158
+ default?(_: {
159
+ item: MenuItemProps;
160
+ }): any;
161
+ suffix?(_: {
162
+ item: MenuItemProps;
163
+ }): any;
152
164
  }>;
153
165
  export default _default;
154
166
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,7 +3,7 @@ import o from "./MenuItem.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = {
5
5
  $style: o
6
- }, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-95a80ef5"]]);
6
+ }, c = /* @__PURE__ */ t(s, [["__cssModules", e], ["__scopeId", "data-v-47a57bf7"]]);
7
7
  export {
8
8
  c as default
9
9
  };