@indielayer/ui 1.6.1 → 1.6.2

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 (62) hide show
  1. package/docs/components/toolbar/Toolbar.vue +4 -2
  2. package/docs/components/toolbar/ToolbarSearch.vue +256 -0
  3. package/docs/pages/component/button/usage.vue +1 -1
  4. package/docs/pages/component/checkbox/states.vue +1 -1
  5. package/docs/pages/component/checkbox/usage.vue +1 -8
  6. package/docs/pages/component/input/size.vue +3 -2
  7. package/docs/pages/component/input/states.vue +3 -3
  8. package/docs/pages/component/input/usage.vue +1 -1
  9. package/docs/pages/component/input/variants.vue +2 -2
  10. package/docs/pages/component/radio/usage.vue +6 -7
  11. package/docs/pages/component/table/usage.vue +35 -40
  12. package/docs/pages/component/textarea/states.vue +8 -9
  13. package/docs/pages/component/textarea/variants.vue +7 -8
  14. package/docs/search/components.json +1 -0
  15. package/lib/components/button/theme/Button.base.theme.js +1 -1
  16. package/lib/components/card/theme/Card.base.theme.js +3 -3
  17. package/lib/components/checkbox/Checkbox.vue.d.ts +13 -3
  18. package/lib/components/formGroup/FormGroup.vue.d.ts +13 -3
  19. package/lib/components/input/Input.vue.d.ts +13 -3
  20. package/lib/components/input/Input.vue.js +15 -15
  21. package/lib/components/input/theme/Input.base.theme.js +1 -1
  22. package/lib/components/modal/Modal.vue.d.ts +30 -4
  23. package/lib/components/modal/Modal.vue.js +74 -60
  24. package/lib/components/modal/theme/Modal.base.theme.js +12 -8
  25. package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
  26. package/lib/components/radio/Radio.vue.d.ts +13 -3
  27. package/lib/components/select/Select.vue.d.ts +13 -3
  28. package/lib/components/select/theme/Select.base.theme.js +1 -1
  29. package/lib/components/slider/Slider.vue.d.ts +13 -3
  30. package/lib/components/table/Table.vue.js +101 -98
  31. package/lib/components/table/theme/TableCell.base.theme.js +1 -1
  32. package/lib/components/table/theme/TableHead.base.theme.js +5 -5
  33. package/lib/components/table/theme/TableHeader.base.theme.js +2 -2
  34. package/lib/components/table/theme/TableRow.base.theme.js +1 -1
  35. package/lib/components/textarea/Textarea.vue.d.ts +13 -3
  36. package/lib/components/textarea/Textarea.vue.js +9 -9
  37. package/lib/components/textarea/theme/Textarea.base.theme.js +1 -1
  38. package/lib/components/toggle/Toggle.vue.d.ts +13 -3
  39. package/lib/composables/useInputtable.d.ts +4 -1
  40. package/lib/composables/useInputtable.js +22 -19
  41. package/lib/index.js +1 -1
  42. package/lib/index.umd.js +4 -4
  43. package/lib/version.d.ts +1 -1
  44. package/lib/version.js +1 -1
  45. package/package.json +7 -5
  46. package/src/components/button/theme/Button.base.theme.ts +2 -2
  47. package/src/components/card/theme/Card.base.theme.ts +1 -1
  48. package/src/components/input/Input.vue +3 -4
  49. package/src/components/input/theme/Input.base.theme.ts +1 -1
  50. package/src/components/modal/Modal.vue +32 -18
  51. package/src/components/modal/theme/Modal.base.theme.ts +10 -0
  52. package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
  53. package/src/components/select/theme/Select.base.theme.ts +1 -1
  54. package/src/components/table/Table.vue +1 -1
  55. package/src/components/table/theme/TableCell.base.theme.ts +1 -1
  56. package/src/components/table/theme/TableHead.base.theme.ts +2 -2
  57. package/src/components/table/theme/TableHeader.base.theme.ts +2 -2
  58. package/src/components/table/theme/TableRow.base.theme.ts +1 -1
  59. package/src/components/textarea/Textarea.vue +1 -1
  60. package/src/components/textarea/theme/Textarea.base.theme.ts +1 -1
  61. package/src/composables/useInputtable.ts +5 -1
  62. package/src/version.ts +1 -1
@@ -22,7 +22,10 @@ declare const inputProps: {
22
22
  default: string;
23
23
  };
24
24
  block: BooleanConstructor;
25
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
25
+ modelValue: {
26
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
27
+ readonly default: undefined;
28
+ };
26
29
  id: StringConstructor;
27
30
  name: StringConstructor;
28
31
  readonly: BooleanConstructor;
@@ -86,7 +89,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
86
89
  default: string;
87
90
  };
88
91
  block: BooleanConstructor;
89
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
92
+ modelValue: {
93
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
94
+ readonly default: undefined;
95
+ };
90
96
  id: StringConstructor;
91
97
  name: StringConstructor;
92
98
  readonly: BooleanConstructor;
@@ -148,7 +154,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
148
154
  default: string;
149
155
  };
150
156
  block: BooleanConstructor;
151
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
157
+ modelValue: {
158
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
159
+ readonly default: undefined;
160
+ };
152
161
  id: StringConstructor;
153
162
  name: StringConstructor;
154
163
  readonly: BooleanConstructor;
@@ -192,6 +201,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
192
201
  block: boolean;
193
202
  loading: boolean;
194
203
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
204
+ modelValue: string | number | boolean | object | any[] | undefined;
195
205
  readonly: boolean;
196
206
  required: boolean;
197
207
  validateOnInput: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, ref as y, watch as H, openBlock as t, createBlock as l, normalizeStyle as X, unref as r, normalizeClass as a, withCtx as j, createElementVNode as h, renderSlot as b, createCommentVNode as u, mergeProps as A, toHandlers as D } from "vue";
1
+ import { defineComponent as F, ref as y, watch as H, openBlock as l, createBlock as t, normalizeStyle as X, unref as r, normalizeClass as a, withCtx as j, createElementVNode as h, renderSlot as b, createCommentVNode as u, mergeProps as A, toHandlers as D } from "vue";
2
2
  import { useTheme as G } from "../../composables/useTheme.js";
3
3
  import { useColors as J } from "../../composables/useColors.js";
4
4
  import { useCommon as v } from "../../composables/useCommon.js";
@@ -60,21 +60,21 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
60
60
  function C() {
61
61
  n.value = n.value === "password" ? "text" : "password";
62
62
  }
63
- const { focus: g, blur: $ } = S(c), {
63
+ const { focus: g, blur: R } = S(c), {
64
64
  errorInternal: m,
65
- hideFooterInternal: R,
66
- isInsideForm: L,
67
- inputListeners: P,
68
- reset: V,
65
+ hideFooterInternal: V,
66
+ isInsideForm: $,
67
+ inputListeners: L,
68
+ reset: P,
69
69
  validate: B,
70
70
  setError: T
71
71
  } = f(o, { focus: g, emit: N }), { styles: q, classes: s, className: E } = G("Input", {}, o, { errorInternal: m });
72
- return w({ focus: g, blur: $, reset: V, validate: B, setError: T }), (e, i) => (t(), l(O, {
72
+ return w({ focus: g, blur: R, reset: P, validate: B, setError: T }), (e, i) => (l(), t(O, {
73
73
  style: X(r(q)),
74
74
  block: e.block,
75
75
  disabled: e.disabled,
76
76
  required: e.required,
77
- "is-inside-form": r(L),
77
+ "is-inside-form": r($),
78
78
  label: e.label,
79
79
  class: a([
80
80
  r(E),
@@ -85,10 +85,10 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
85
85
  default: j(() => [
86
86
  h("div", U, [
87
87
  b(e.$slots, "prefix", {}, () => [
88
- e.iconLeft ? (t(), l(d, {
88
+ e.iconLeft || e.icon ? (l(), t(d, {
89
89
  key: 0,
90
90
  size: e.size,
91
- icon: e.iconLeft,
91
+ icon: e.iconLeft || e.icon,
92
92
  class: a(["ml-2 left-1", r(s).icon])
93
93
  }, null, 8, ["size", "icon", "class"])) : u("", !0)
94
94
  ]),
@@ -116,15 +116,15 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
116
116
  placeholder: e.placeholder,
117
117
  readonly: e.readonly,
118
118
  type: n.value,
119
- value: e.modelValue || ""
120
- }, e.$attrs, D(r(P), !0), { onChange: I }), null, 16, W),
119
+ value: typeof e.modelValue < "u" ? e.modelValue : ""
120
+ }, D(r(L), !0), { onChange: I }), null, 16, W),
121
121
  b(e.$slots, "suffix", {}, () => [
122
- e.iconRight ? (t(), l(d, {
122
+ e.iconRight ? (l(), t(d, {
123
123
  key: 0,
124
124
  size: e.size,
125
125
  icon: e.iconRight,
126
126
  class: a(["mr-2 right-1", r(s).icon])
127
- }, null, 8, ["size", "icon", "class"])) : e.type === "password" && e.showPasswordToggle ? (t(), l(d, {
127
+ }, null, 8, ["size", "icon", "class"])) : e.type === "password" && e.showPasswordToggle ? (l(), t(d, {
128
128
  key: 1,
129
129
  size: e.size,
130
130
  icon: n.value === "password" ? r(K) : r(M),
@@ -133,7 +133,7 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
133
133
  }, null, 8, ["size", "icon", "class"])) : u("", !0)
134
134
  ])
135
135
  ]),
136
- r(R) ? u("", !0) : (t(), l(Q, {
136
+ r(V) ? u("", !0) : (l(), t(Q, {
137
137
  key: 0,
138
138
  error: r(m),
139
139
  helper: e.helper
@@ -3,7 +3,7 @@ const o = {
3
3
  wrapper: "",
4
4
  input: ({ props: r, data: s }) => {
5
5
  const e = ["appearance-none block w-full placeholder-secondary-400 dark:placeholder-secondary-500 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out border-secondary-300 dark:border-secondary-700 border shadow-sm rounded-md"];
6
- return !s.errorInternal && !r.disabled && e.push("hover:border-secondary-400 dark:hover:border-secondary-500"), r.size === "xs" ? e.push("px-2 py-1 text-xs") : r.size === "sm" ? e.push("px-2 py-2 text-sm") : r.size === "lg" ? e.push("px-4 py-3 text-lg") : r.size === "xl" ? e.push("px-5 py-4 text-xl") : e.push("px-3 py-2"), e.push(r.disabled ? "bg-secondary-100 dark:bg-secondary-700 text-secondary-400 dark:text-secondary-600 cursor-not-allowed" : "bg-white dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), e;
6
+ return !s.errorInternal && !r.disabled && e.push("hover:border-secondary-400 dark:hover:border-secondary-500"), r.size === "xs" ? e.push("px-2 py-1 text-xs") : r.size === "sm" ? e.push("px-2 py-1.5 text-sm") : r.size === "lg" ? e.push("px-4 py-3 text-lg") : r.size === "xl" ? e.push("px-5 py-4 text-xl") : e.push("px-3 py-2"), e.push(r.disabled ? "bg-secondary-100 dark:bg-secondary-700 text-secondary-400 dark:text-secondary-600 cursor-not-allowed" : "bg-white dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), e;
7
7
  },
8
8
  icon: "text-secondary-600 dark:text-secondary-300 absolute my-auto inset-y-0"
9
9
  },
@@ -2,14 +2,22 @@ import { type PropType, type ExtractPublicPropTypes } from 'vue';
2
2
  import { type ThemeComponent } from '../../composables/useTheme';
3
3
  import { type FormError } from '../form/Form.vue';
4
4
  declare const modalSize: readonly ["xs", "sm", "md", "lg", "xl", "full"];
5
+ declare const modalPosition: readonly ["top", "center", "bottom"];
5
6
  declare const modalProps: {
6
7
  size: {
7
8
  type: PropType<"xs" | "sm" | "md" | "lg" | "xl" | "full">;
8
9
  default: string;
9
10
  };
11
+ position: {
12
+ type: PropType<"top" | "bottom" | "center">;
13
+ default: string;
14
+ };
10
15
  modelValue: BooleanConstructor;
11
16
  showClose: BooleanConstructor;
12
- backdrop: BooleanConstructor;
17
+ backdrop: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
13
21
  hasActions: {
14
22
  type: BooleanConstructor;
15
23
  default: boolean;
@@ -39,8 +47,9 @@ declare const modalProps: {
39
47
  persistent: BooleanConstructor;
40
48
  };
41
49
  export type ModalSize = typeof modalSize[number];
50
+ export type ModalPosition = typeof modalPosition[number];
42
51
  export type ModalProps = ExtractPublicPropTypes<typeof modalProps>;
43
- type InternalClasses = 'wrapper' | 'backdrop' | 'modal' | 'closeIcon' | 'header' | 'content' | 'actions' | 'title' | 'description' | 'label';
52
+ type InternalClasses = 'wrapper' | 'backdrop' | 'modal' | 'modalWrapper' | 'closeIcon' | 'header' | 'content' | 'actions' | 'title' | 'description' | 'label';
44
53
  type InternaData = {
45
54
  visible: boolean;
46
55
  };
@@ -51,9 +60,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
51
60
  type: PropType<"xs" | "sm" | "md" | "lg" | "xl" | "full">;
52
61
  default: string;
53
62
  };
63
+ position: {
64
+ type: PropType<"top" | "bottom" | "center">;
65
+ default: string;
66
+ };
54
67
  modelValue: BooleanConstructor;
55
68
  showClose: BooleanConstructor;
56
- backdrop: BooleanConstructor;
69
+ backdrop: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
57
73
  hasActions: {
58
74
  type: BooleanConstructor;
59
75
  default: boolean;
@@ -89,9 +105,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
89
105
  type: PropType<"xs" | "sm" | "md" | "lg" | "xl" | "full">;
90
106
  default: string;
91
107
  };
108
+ position: {
109
+ type: PropType<"top" | "bottom" | "center">;
110
+ default: string;
111
+ };
92
112
  modelValue: BooleanConstructor;
93
113
  showClose: BooleanConstructor;
94
- backdrop: BooleanConstructor;
114
+ backdrop: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
95
118
  hasActions: {
96
119
  type: BooleanConstructor;
97
120
  default: boolean;
@@ -124,6 +147,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
124
147
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
125
148
  }, {
126
149
  size: "xs" | "sm" | "md" | "lg" | "xl" | "full";
150
+ position: "top" | "bottom" | "center";
127
151
  loading: boolean;
128
152
  modelValue: boolean;
129
153
  fluid: boolean;
@@ -139,7 +163,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
139
163
  }, {}>, {
140
164
  image?(_: {}): any;
141
165
  header?(_: {}): any;
166
+ "header-content"?(_: {}): any;
142
167
  default?(_: {}): any;
168
+ footer?(_: {}): any;
143
169
  actions?(_: {}): any;
144
170
  "cancel-action"?(_: {}): any;
145
171
  "tertiary-action"?(_: {}): any;
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, ref as f, watch as g, nextTick as B, useSlots as I, computed as M, openBlock as t, createBlock as p, Teleport as P, createElementBlock as i, normalizeStyle as W, unref as o, normalizeClass as s, createCommentVNode as a, createElementVNode as S, resolveDynamicComponent as K, withCtx as w, renderSlot as r, toDisplayString as v } from "vue";
1
+ import { defineComponent as X, ref as f, watch as g, nextTick as B, useSlots as H, computed as I, openBlock as t, createBlock as p, Teleport as M, createElementBlock as r, normalizeStyle as j, unref as o, normalizeClass as a, createCommentVNode as s, createElementVNode as S, resolveDynamicComponent as K, withCtx as w, renderSlot as i, toDisplayString as v } from "vue";
2
2
  import { onClickOutside as L, useEventListener as q } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
3
3
  import { useTheme as G } from "../../composables/useTheme.js";
4
4
  import { useFocusTrap as J } from "../../composables/useFocusTrap.js";
@@ -6,14 +6,21 @@ import { closeIcon as Q } from "../../common/icons.js";
6
6
  import U from "../button/Button.vue.js";
7
7
  import Y from "../scroll/Scroll.vue.js";
8
8
  import Z from "../form/Form.vue.js";
9
- const _ = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-screen" }, x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = {
9
+ const _ = { key: 0 }, x = ["xs", "sm", "md", "lg", "xl", "full"], ee = ["top", "center", "bottom"], oe = {
10
10
  size: {
11
11
  type: String,
12
12
  default: "xl"
13
13
  },
14
+ position: {
15
+ type: String,
16
+ default: "center"
17
+ },
14
18
  modelValue: Boolean,
15
19
  showClose: Boolean,
16
- backdrop: Boolean,
20
+ backdrop: {
21
+ type: Boolean,
22
+ default: !0
23
+ },
17
24
  hasActions: {
18
25
  type: Boolean,
19
26
  default: !0
@@ -45,14 +52,15 @@ const _ = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-s
45
52
  }, te = {
46
53
  name: "XModal",
47
54
  validators: {
48
- size: ee
55
+ size: x,
56
+ position: ee
49
57
  }
50
- }, ce = /* @__PURE__ */ H({
58
+ }, ce = /* @__PURE__ */ X({
51
59
  ...te,
52
60
  props: oe,
53
61
  emits: ["update:modelValue", "submit"],
54
- setup(V, { expose: C, emit: T }) {
55
- const n = V, b = T, u = f(n.modelValue), d = f(!1), y = f(null), $ = f(null), { initFocusTrap: D, clearFocusTrap: z } = J();
62
+ setup($, { expose: V, emit: C }) {
63
+ const n = $, b = C, u = f(n.modelValue), d = f(!1), y = f(null), T = f(null), { initFocusTrap: D, clearFocusTrap: z } = J();
56
64
  let c;
57
65
  g(u, (e) => {
58
66
  c && (c(), c = void 0), e && setTimeout(() => {
@@ -80,26 +88,28 @@ const _ = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-s
80
88
  function O() {
81
89
  b("update:modelValue", !0), d.value = !0;
82
90
  }
83
- const k = I(), R = M(() => !!(k["tertiary-action"] || k["cancel-action"])), { styles: N, classes: l, className: X } = G("Modal", {}, n, {
91
+ const k = H(), R = I(() => !!(k["tertiary-action"] || k["cancel-action"])), { styles: N, classes: l, className: P } = G("Modal", {}, n, {
84
92
  visible: d
85
93
  });
86
- return C({ open: O, close: m }), (e, h) => (t(), p(P, { to: "body" }, [
87
- u.value ? (t(), i("div", {
94
+ return V({ open: O, close: m }), (e, h) => (t(), p(M, { to: "body" }, [
95
+ u.value ? (t(), r("div", {
88
96
  key: 0,
89
97
  ref_key: "modalWrapperRef",
90
- ref: $,
91
- style: W(o(N)),
92
- class: s([
93
- o(X),
98
+ ref: T,
99
+ style: j(o(N)),
100
+ class: a([
101
+ o(P),
94
102
  o(l).wrapper,
95
103
  d.value ? "visible" : "invisible ease-in duration-100"
96
104
  ])
97
105
  }, [
98
- e.backdrop ? (t(), i("div", {
106
+ e.backdrop ? (t(), r("div", {
99
107
  key: 0,
100
- class: s(o(l).backdrop)
101
- }, null, 2)) : a("", !0),
102
- S("div", _, [
108
+ class: a(o(l).backdrop)
109
+ }, null, 2)) : s("", !0),
110
+ S("div", {
111
+ class: a(o(l).modalWrapper)
112
+ }, [
103
113
  (t(), p(K(e.isForm ? Z : "div"), {
104
114
  ref_key: "modalRef",
105
115
  ref: y,
@@ -108,75 +118,79 @@ const _ = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-s
108
118
  title: e.formTitle,
109
119
  description: e.formDescription,
110
120
  errors: e.formErrors,
111
- class: s(o(l).modal),
121
+ class: a(o(l).modal),
112
122
  "auto-focus": "",
113
123
  "has-footer": !1,
114
124
  role: "dialog",
115
125
  "aria-modal": "true",
116
126
  "aria-labelledby": "modal-headline",
117
- onSubmit: h[0] || (h[0] = (j) => e.$emit("submit", j))
127
+ onSubmit: h[0] || (h[0] = (W) => e.$emit("submit", W))
118
128
  }, {
119
129
  default: w(() => [
120
- r(e.$slots, "image"),
121
- e.hasHeader ? (t(), i("div", {
122
- key: 0,
123
- class: s(o(l).header)
124
- }, [
125
- r(e.$slots, "header", {}, () => [
126
- e.label ? (t(), i("div", {
127
- key: 0,
128
- class: s(o(l).label)
129
- }, v(e.label), 3)) : a("", !0),
130
- e.title ? (t(), i("div", {
131
- key: 1,
132
- class: s(o(l).title)
133
- }, v(e.title), 3)) : a("", !0)
134
- ])
135
- ], 2)) : a("", !0),
130
+ i(e.$slots, "image"),
131
+ i(e.$slots, "header", {}, () => [
132
+ e.hasHeader ? (t(), r("div", {
133
+ key: 0,
134
+ class: a(o(l).header)
135
+ }, [
136
+ i(e.$slots, "header-content", {}, () => [
137
+ e.label ? (t(), r("div", {
138
+ key: 0,
139
+ class: a(o(l).label)
140
+ }, v(e.label), 3)) : s("", !0),
141
+ e.title ? (t(), r("div", {
142
+ key: 1,
143
+ class: a(o(l).title)
144
+ }, v(e.title), 3)) : s("", !0)
145
+ ])
146
+ ], 2)) : s("", !0)
147
+ ]),
136
148
  e.$slots.default ? (t(), p(Y, {
137
- key: 1,
149
+ key: 0,
138
150
  scrollbar: !1,
139
151
  vertical: ""
140
152
  }, {
141
153
  default: w(() => [
142
154
  S("div", {
143
- class: s(o(l).content)
155
+ class: a(o(l).content)
144
156
  }, [
145
- e.description ? (t(), i("div", {
157
+ e.description ? (t(), r("div", {
146
158
  key: 0,
147
- class: s(o(l).description)
148
- }, v(e.description), 3)) : a("", !0),
149
- r(e.$slots, "default")
159
+ class: a(o(l).description)
160
+ }, v(e.description), 3)) : s("", !0),
161
+ i(e.$slots, "default")
150
162
  ], 2)
151
163
  ]),
152
164
  _: 3
153
- })) : a("", !0),
165
+ })) : s("", !0),
154
166
  e.showClose ? (t(), p(U, {
155
- key: 2,
167
+ key: 1,
156
168
  ghost: "",
157
169
  size: "sm",
158
170
  tabindex: "-1",
159
171
  icon: o(Q),
160
- class: s(o(l).closeIcon),
172
+ class: a(o(l).closeIcon),
161
173
  onClick: m
162
- }, null, 8, ["icon", "class"])) : a("", !0),
163
- e.hasActions ? (t(), i("div", {
164
- key: 3,
165
- class: s(o(l).actions)
166
- }, [
167
- r(e.$slots, "actions", {}, () => [
168
- r(e.$slots, "cancel-action"),
169
- R.value ? (t(), i("div", x)) : a("", !0),
170
- r(e.$slots, "tertiary-action"),
171
- r(e.$slots, "secondary-action"),
172
- r(e.$slots, "primary-action")
173
- ])
174
- ], 2)) : a("", !0)
174
+ }, null, 8, ["icon", "class"])) : s("", !0),
175
+ i(e.$slots, "footer", {}, () => [
176
+ e.hasActions ? (t(), r("div", {
177
+ key: 0,
178
+ class: a(o(l).actions)
179
+ }, [
180
+ i(e.$slots, "actions", {}, () => [
181
+ i(e.$slots, "cancel-action"),
182
+ R.value ? (t(), r("div", _)) : s("", !0),
183
+ i(e.$slots, "tertiary-action"),
184
+ i(e.$slots, "secondary-action"),
185
+ i(e.$slots, "primary-action")
186
+ ])
187
+ ], 2)) : s("", !0)
188
+ ])
175
189
  ]),
176
190
  _: 3
177
191
  }, 40, ["disabled", "auto-validate", "title", "description", "errors", "class"]))
178
- ])
179
- ], 6)) : a("", !0)
192
+ ], 2)
193
+ ], 6)) : s("", !0)
180
194
  ]));
181
195
  }
182
196
  });
@@ -2,22 +2,26 @@ const a = {
2
2
  classes: {
3
3
  wrapper: "fixed z-40 inset-0 overflow-y-auto transition-all",
4
4
  backdrop: ({ data: e }) => {
5
- const t = ["fixed inset-0 bg-secondary-500 dark:bg-black transition-opacity"];
6
- return e.visible ? t.push("ease-out duration-200 opacity-30 dark:opacity-70") : t.push("ease-in duration-100 opacity-0"), t;
5
+ const s = ["fixed inset-0 bg-secondary-500 dark:bg-black transition-opacity"];
6
+ return e.visible ? s.push("ease-out duration-200 opacity-30 dark:opacity-70") : s.push("ease-in duration-100 opacity-0"), s;
7
7
  },
8
- modal: ({ props: e, data: t }) => {
9
- const s = ["relative flex flex-col z-10 bg-white dark:bg-secondary-900 rounded-md shadow-lg transform transition-all overflow-hidden max-h-full w-full"];
10
- return t.visible ? s.push("ease-out duration-200 opacity-100 translate-y-0 sm:scale-100") : s.push("ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"), e.size === "xs" ? s.push("sm:max-w-xs") : e.size === "sm" ? s.push("sm:max-w-sm") : e.size === "lg" ? s.push("sm:max-w-xl") : e.size === "xl" ? s.push("sm:max-w-3xl") : s.push("sm:max-w-lg"), s;
8
+ modalWrapper: ({ props: e }) => {
9
+ const s = ["flex justify-center p-4 sm:p-8 md:py-20 h-screen"];
10
+ return e.position === "top" ? s.push("items-start") : e.position === "bottom" ? s.push("items-end") : s.push("sm:items-end items-center"), s;
11
+ },
12
+ modal: ({ props: e, data: s }) => {
13
+ const t = ["relative flex flex-col z-10 bg-white dark:bg-secondary-900 rounded-md shadow-lg transform transition-all overflow-hidden max-h-full w-full"];
14
+ return s.visible ? t.push("ease-out duration-200 opacity-100 translate-y-0 sm:scale-100") : t.push("ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"), e.size === "xs" ? t.push("sm:max-w-xs") : e.size === "sm" ? t.push("sm:max-w-sm") : e.size === "lg" ? t.push("sm:max-w-xl") : e.size === "xl" ? t.push("sm:max-w-3xl") : t.push("sm:max-w-lg"), t;
11
15
  },
12
16
  closeIcon: "!absolute top-2 z-10 right-2",
13
17
  header: "text-lg pl-6 py-4 border-b pr-12",
14
18
  content: "px-6 py-4",
15
- actions: ({ props: e, slots: t }) => ["flex gap-4 bg-secondary-50 dark:bg-secondary-800 p-4 justify-end"],
19
+ actions: ({ props: e, slots: s }) => ["flex gap-4 bg-secondary-50 dark:bg-secondary-800 p-4 justify-end"],
16
20
  label: "text-xs text-secondary-500 mb-1",
17
21
  title: "text-xl font-semibold",
18
22
  description: "text-sm mb-8"
19
23
  }
20
- }, l = a;
24
+ }, i = a;
21
25
  export {
22
- l as default
26
+ i as default
23
27
  };
@@ -1,6 +1,6 @@
1
1
  const e = {
2
2
  classes: {
3
- wrapper: "fixed z-50 w-full sm:w-auto overflow-y-auto max-h-screen",
3
+ wrapper: "fixed z-50 w-full sm:w-auto max-h-screen",
4
4
  list: "flex flex-col items-end w-full sm:w-[520px] px-4",
5
5
  item: "w-full flex items-center rounded-md px-4 py-3 bg-secondary-800 dark:bg-secondary-50 text-white dark:text-secondary-900 border border-secondary-700 dark:border-secondary-100"
6
6
  }
@@ -3,7 +3,10 @@ import { type ThemeComponent } from '../../composables/useTheme';
3
3
  declare const radioProps: {
4
4
  value: (StringConstructor | NumberConstructor)[];
5
5
  glow: BooleanConstructor;
6
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
6
+ modelValue: {
7
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
8
+ readonly default: undefined;
9
+ };
7
10
  id: StringConstructor;
8
11
  name: StringConstructor;
9
12
  readonly: BooleanConstructor;
@@ -50,7 +53,10 @@ export interface RadioTheme extends ThemeComponent<RadioProps, InternalClasses,
50
53
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
51
54
  value: (StringConstructor | NumberConstructor)[];
52
55
  glow: BooleanConstructor;
53
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
56
+ modelValue: {
57
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
58
+ readonly default: undefined;
59
+ };
54
60
  id: StringConstructor;
55
61
  name: StringConstructor;
56
62
  readonly: BooleanConstructor;
@@ -93,7 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
93
99
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
94
100
  value: (StringConstructor | NumberConstructor)[];
95
101
  glow: BooleanConstructor;
96
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
102
+ modelValue: {
103
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
104
+ readonly default: undefined;
105
+ };
97
106
  id: StringConstructor;
98
107
  name: StringConstructor;
99
108
  readonly: BooleanConstructor;
@@ -136,6 +145,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
136
145
  size: import("../../composables/useCommon").Size;
137
146
  loading: boolean;
138
147
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
148
+ modelValue: string | number | boolean | object | any[] | undefined;
139
149
  readonly: boolean;
140
150
  required: boolean;
141
151
  validateOnInput: boolean;
@@ -6,7 +6,10 @@ declare const selectProps: {
6
6
  multiple: BooleanConstructor;
7
7
  flat: BooleanConstructor;
8
8
  native: BooleanConstructor;
9
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
9
+ modelValue: {
10
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
11
+ readonly default: undefined;
12
+ };
10
13
  id: StringConstructor;
11
14
  name: StringConstructor;
12
15
  readonly: BooleanConstructor;
@@ -59,7 +62,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
59
62
  multiple: BooleanConstructor;
60
63
  flat: BooleanConstructor;
61
64
  native: BooleanConstructor;
62
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
65
+ modelValue: {
66
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
67
+ readonly default: undefined;
68
+ };
63
69
  id: StringConstructor;
64
70
  name: StringConstructor;
65
71
  readonly: BooleanConstructor;
@@ -105,7 +111,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
105
111
  multiple: BooleanConstructor;
106
112
  flat: BooleanConstructor;
107
113
  native: BooleanConstructor;
108
- modelValue: PropType<string | number | boolean | object | any[] | undefined>;
114
+ modelValue: {
115
+ readonly type: PropType<string | number | boolean | object | any[] | undefined>;
116
+ readonly default: undefined;
117
+ };
109
118
  id: StringConstructor;
110
119
  name: StringConstructor;
111
120
  readonly: BooleanConstructor;
@@ -148,6 +157,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
148
157
  size: import("../../composables/useCommon").Size;
149
158
  loading: boolean;
150
159
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
160
+ modelValue: string | number | boolean | object | any[] | undefined;
151
161
  readonly: boolean;
152
162
  required: boolean;
153
163
  validateOnInput: boolean;
@@ -3,7 +3,7 @@ const t = {
3
3
  wrapper: "",
4
4
  box: ({ props: e, data: s }) => {
5
5
  const r = ["w-full border border-secondary-300 dark:border-secondary-700 pr-8 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out rounded-md shadow-sm"];
6
- return !s.errorInternal && !e.disabled && r.push("hover:border-secondary-400 dark:hover:border-secondary-500"), e.size === "xs" ? r.push("px-2 py-1 text-xs") : e.size === "sm" ? r.push("px-2 py-2 text-sm") : e.size === "lg" ? r.push("px-4 py-3 text-lg") : e.size === "xl" ? r.push("px-5 py-4 text-xl") : r.push("px-3 py-2"), e.disabled ? r.push("bg-secondary-100 dark:bg-secondary-700 text-secondary-400 dark:text-secondary-600 cursor-not-allowed") : r.push("bg-white dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), s.errorInternal ? r.push("border-error-500 dark:border-error-400 group-focus:outline-error-500") : e.disabled || r.push("group-focus:outline-[color:var(--x-select-border)]"), r;
6
+ return !s.errorInternal && !e.disabled && r.push("hover:border-secondary-400 dark:hover:border-secondary-500"), e.size === "xs" ? r.push("px-2 py-1 text-xs") : e.size === "sm" ? r.push("px-2 py-1.5 text-sm") : e.size === "lg" ? r.push("px-4 py-3 text-lg") : e.size === "xl" ? r.push("px-5 py-4 text-xl") : r.push("px-3 py-2"), e.disabled ? r.push("bg-secondary-100 dark:bg-secondary-700 text-secondary-400 dark:text-secondary-600 cursor-not-allowed") : r.push("bg-white dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), s.errorInternal ? r.push("border-error-500 dark:border-error-400 group-focus:outline-error-500") : e.disabled || r.push("group-focus:outline-[color:var(--x-select-border)]"), r;
7
7
  },
8
8
  content: "p-1 max-h-72 overflow-y-auto",
9
9
  iconWrapper: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2",
@@ -13,7 +13,10 @@ declare const sliderProps: {
13
13
  type: (StringConstructor | NumberConstructor)[];
14
14
  default: number;
15
15
  };
16
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
16
+ modelValue: {
17
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
18
+ readonly default: undefined;
19
+ };
17
20
  id: StringConstructor;
18
21
  name: StringConstructor;
19
22
  readonly: BooleanConstructor;
@@ -60,7 +63,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
60
63
  type: (StringConstructor | NumberConstructor)[];
61
64
  default: number;
62
65
  };
63
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
66
+ modelValue: {
67
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
68
+ readonly default: undefined;
69
+ };
64
70
  id: StringConstructor;
65
71
  name: StringConstructor;
66
72
  readonly: BooleanConstructor;
@@ -108,7 +114,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
108
114
  type: (StringConstructor | NumberConstructor)[];
109
115
  default: number;
110
116
  };
111
- modelValue: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
117
+ modelValue: {
118
+ readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
119
+ readonly default: undefined;
120
+ };
112
121
  id: StringConstructor;
113
122
  name: StringConstructor;
114
123
  readonly: BooleanConstructor;
@@ -144,6 +153,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
144
153
  color: string;
145
154
  loading: boolean;
146
155
  loadingStatus: import("../loader/Loader.vue").LoaderStatus;
156
+ modelValue: string | number | boolean | object | any[] | undefined;
147
157
  readonly: boolean;
148
158
  required: boolean;
149
159
  validateOnInput: boolean;