@indielayer/ui 1.4.0 → 1.5.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 (217) hide show
  1. package/docs/components/common/CodePreview.vue +1 -1
  2. package/docs/components/common/CodeSnippet.vue +5 -7
  3. package/docs/components/common/DocumentPage.vue +89 -93
  4. package/docs/components/menu/DocsMenu.vue +75 -122
  5. package/docs/components/toolbar/PreToolbar.vue +10 -12
  6. package/docs/components/toolbar/Toolbar.vue +21 -8
  7. package/docs/layouts/default.vue +7 -3
  8. package/docs/pages/colors.vue +49 -54
  9. package/docs/pages/component/button/button-group.vue +6 -2
  10. package/docs/pages/component/button/size.vue +1 -1
  11. package/docs/pages/component/carousel/usage.vue +2 -2
  12. package/docs/pages/component/form/usage.vue +3 -3
  13. package/docs/pages/component/formGroup/usage.vue +1 -0
  14. package/docs/pages/component/input/usage.vue +8 -9
  15. package/docs/pages/component/modal/composed.vue +10 -2
  16. package/docs/pages/component/modal/usage.vue +11 -6
  17. package/docs/pages/component/popover/usage.vue +3 -3
  18. package/docs/pages/component/select/usage.vue +1 -0
  19. package/docs/pages/component/tabs/usage.vue +6 -1
  20. package/docs/pages/component/textarea/usage.vue +10 -13
  21. package/docs/pages/component/toggle/usage.vue +9 -11
  22. package/docs/pages/component/tooltip/index.vue +2 -2
  23. package/docs/pages/component/tooltip/usage.vue +4 -8
  24. package/docs/pages/icons.vue +54 -58
  25. package/docs/pages/index.vue +73 -77
  26. package/docs/pages/play.vue +2 -14
  27. package/docs/pages/typography.vue +26 -30
  28. package/docs/router/index.ts +2 -0
  29. package/exports/tailwind.preset.js +0 -1
  30. package/lib/components/accordion/theme/AccordionItem.base.theme.js +7 -7
  31. package/lib/components/badge/Badge.vue.js +7 -7
  32. package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +1 -1
  33. package/lib/components/button/Button.vue.js +2 -2
  34. package/lib/components/button/Button.vue2.js +26 -26
  35. package/lib/components/button/theme/Button.base.theme.js +7 -7
  36. package/lib/components/card/theme/Card.base.theme.js +1 -1
  37. package/lib/components/checkbox/Checkbox.vue.d.ts +3 -0
  38. package/lib/components/checkbox/Checkbox.vue2.js +23 -23
  39. package/lib/components/checkbox/theme/Checkbox.base.theme.js +6 -6
  40. package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +2 -2
  41. package/lib/components/container/theme/Container.base.theme.js +2 -2
  42. package/lib/components/divider/Divider.vue.js +14 -14
  43. package/lib/components/divider/theme/Divider.base.theme.js +2 -2
  44. package/lib/components/drawer/Drawer.vue.js +2 -2
  45. package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
  46. package/lib/components/form/Form.vue.js +1 -1
  47. package/lib/components/form/theme/Form.base.theme.js +4 -4
  48. package/lib/components/form/theme/Form.carbon.theme.js +4 -4
  49. package/lib/components/formGroup/FormGroup.vue.d.ts +3 -0
  50. package/lib/components/formGroup/FormGroup.vue.js +16 -15
  51. package/lib/components/formGroup/theme/FormGroup.base.theme.js +1 -1
  52. package/lib/components/icon/theme/Icon.base.theme.js +1 -1
  53. package/lib/components/index.js +108 -107
  54. package/lib/components/input/Input.vue.d.ts +3 -0
  55. package/lib/components/input/Input.vue.js +4 -3
  56. package/lib/components/input/theme/Input.base.theme.js +10 -10
  57. package/lib/components/input/theme/Input.carbon.theme.js +10 -10
  58. package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -3
  59. package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +2 -2
  60. package/lib/components/label/Label.vue.d.ts +3 -0
  61. package/lib/components/label/Label.vue.js +26 -20
  62. package/lib/components/label/theme/Label.base.theme.js +1 -1
  63. package/lib/components/label/theme/Label.carbon.theme.js +3 -3
  64. package/lib/components/link/Link.vue.js +2 -2
  65. package/lib/components/link/Link.vue2.js +4 -4
  66. package/lib/components/loader/theme/Loader.base.theme.js +1 -1
  67. package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
  68. package/lib/components/menu/Menu.vue.js +19 -19
  69. package/lib/components/menu/theme/MenuItem.base.theme.js +21 -31
  70. package/lib/components/modal/Modal.vue.d.ts +4 -0
  71. package/lib/components/modal/Modal.vue.js +80 -74
  72. package/lib/components/modal/theme/Modal.base.theme.js +10 -10
  73. package/lib/components/modal/theme/Modal.carbon.theme.js +3 -3
  74. package/lib/components/notifications/Notifications.vue.js +1 -1
  75. package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
  76. package/lib/components/notifications/theme/Notifications.carbon.theme.js +3 -3
  77. package/lib/components/pagination/Pagination.vue.js +27 -27
  78. package/lib/components/popover/Popover.vue.d.ts +13 -0
  79. package/lib/components/popover/Popover.vue.js +13 -8
  80. package/lib/components/popover/Popover.vue2.js +3 -2
  81. package/lib/components/popover/Popover.vue3.js +2 -3
  82. package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -4
  83. package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -4
  84. package/lib/components/progress/Progress.vue.js +11 -11
  85. package/lib/components/progress/theme/Progress.base.theme.js +10 -10
  86. package/lib/components/radio/Radio.vue.d.ts +3 -0
  87. package/lib/components/radio/theme/Radio.base.theme.js +28 -28
  88. package/lib/components/radio/theme/Radio.carbon.theme.js +8 -8
  89. package/lib/components/select/Select.vue.d.ts +16 -0
  90. package/lib/components/select/Select.vue.js +95 -92
  91. package/lib/components/select/theme/Select.base.theme.js +11 -11
  92. package/lib/components/select/theme/Select.carbon.theme.js +10 -10
  93. package/lib/components/skeleton/theme/Skeleton.base.theme.js +1 -1
  94. package/lib/components/slider/Slider.vue.d.ts +3 -0
  95. package/lib/components/slider/Slider.vue.js +1 -1
  96. package/lib/components/slider/theme/Slider.carbon.theme.js +6 -6
  97. package/lib/components/stepper/Stepper.vue.js +14 -14
  98. package/lib/components/tab/Tab.vue.js +55 -54
  99. package/lib/components/tab/theme/TabGroup.base.theme.js +15 -15
  100. package/lib/components/tab/theme/TabGroup.carbon.theme.js +8 -8
  101. package/lib/components/table/Table.vue.js +192 -194
  102. package/lib/components/table/theme/Table.base.theme.js +3 -3
  103. package/lib/components/table/theme/Table.carbon.theme.js +7 -7
  104. package/lib/components/table/theme/TableHead.base.theme.js +1 -1
  105. package/lib/components/table/theme/TableHead.carbon.theme.js +1 -1
  106. package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
  107. package/lib/components/table/theme/TableHeader.carbon.theme.js +2 -2
  108. package/lib/components/table/theme/TableRow.base.theme.js +3 -3
  109. package/lib/components/table/theme/TableRow.carbon.theme.js +3 -3
  110. package/lib/components/tag/Tag.vue.js +4 -4
  111. package/lib/components/textarea/Textarea.vue.d.ts +7 -0
  112. package/lib/components/textarea/Textarea.vue.js +23 -21
  113. package/lib/components/textarea/theme/Textarea.base.theme.js +6 -6
  114. package/lib/components/textarea/theme/Textarea.carbon.theme.js +6 -6
  115. package/lib/components/toggle/Toggle.vue.d.ts +3 -0
  116. package/lib/components/toggle/Toggle.vue.js +26 -26
  117. package/lib/components/toggle/theme/Toggle.base.theme.js +1 -1
  118. package/lib/components/tooltip/ToggleTip.vue.d.ts +14 -0
  119. package/lib/components/tooltip/ToggleTip.vue.js +29 -0
  120. package/lib/components/tooltip/ToggleTip.vue2.js +4 -0
  121. package/lib/components/tooltip/Tooltip.vue.d.ts +22 -3
  122. package/lib/components/tooltip/Tooltip.vue.js +26 -17
  123. package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +1 -0
  124. package/lib/components/tooltip/index.d.ts +2 -0
  125. package/lib/composables/useColors.js +9 -9
  126. package/lib/composables/useInputtable.d.ts +1 -0
  127. package/lib/composables/useInputtable.js +20 -19
  128. package/lib/index.js +37 -35
  129. package/lib/index.umd.js +7 -3
  130. package/lib/tailwind.preset.js +0 -1
  131. package/lib/themes/base/index.js +3 -6
  132. package/lib/themes/base/styles.css.js +4 -0
  133. package/lib/version.d.ts +1 -1
  134. package/lib/version.js +1 -1
  135. package/package.json +2 -1
  136. package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
  137. package/src/components/badge/Badge.vue +1 -1
  138. package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +1 -1
  139. package/src/components/button/Button.vue +1 -1
  140. package/src/components/button/theme/Button.base.theme.ts +2 -2
  141. package/src/components/card/theme/Card.base.theme.ts +1 -1
  142. package/src/components/checkbox/Checkbox.vue +1 -1
  143. package/src/components/checkbox/theme/Checkbox.base.theme.ts +8 -8
  144. package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +2 -2
  145. package/src/components/container/theme/Container.base.theme.ts +2 -2
  146. package/src/components/divider/Divider.vue +1 -1
  147. package/src/components/divider/theme/Divider.base.theme.ts +2 -2
  148. package/src/components/drawer/Drawer.vue +2 -2
  149. package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
  150. package/src/components/form/Form.vue +1 -1
  151. package/src/components/form/theme/Form.base.theme.ts +1 -1
  152. package/src/components/form/theme/Form.carbon.theme.ts +1 -1
  153. package/src/components/formGroup/FormGroup.vue +1 -0
  154. package/src/components/formGroup/theme/FormGroup.base.theme.ts +1 -1
  155. package/src/components/icon/theme/Icon.base.theme.ts +2 -2
  156. package/src/components/input/Input.vue +2 -1
  157. package/src/components/input/theme/Input.base.theme.ts +5 -5
  158. package/src/components/input/theme/Input.carbon.theme.ts +6 -6
  159. package/src/components/inputFooter/theme/InputFooter.base.theme.ts +3 -3
  160. package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -2
  161. package/src/components/label/Label.vue +4 -1
  162. package/src/components/label/theme/Label.base.theme.ts +1 -1
  163. package/src/components/label/theme/Label.carbon.theme.ts +1 -1
  164. package/src/components/link/Link.vue +1 -1
  165. package/src/components/loader/theme/Loader.base.theme.ts +1 -1
  166. package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
  167. package/src/components/menu/Menu.vue +3 -3
  168. package/src/components/menu/theme/MenuItem.base.theme.ts +30 -34
  169. package/src/components/modal/Modal.vue +11 -4
  170. package/src/components/modal/theme/Modal.base.theme.ts +9 -6
  171. package/src/components/modal/theme/Modal.carbon.theme.ts +3 -3
  172. package/src/components/notifications/Notifications.vue +1 -1
  173. package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
  174. package/src/components/notifications/theme/Notifications.carbon.theme.ts +1 -1
  175. package/src/components/pagination/Pagination.vue +3 -3
  176. package/src/components/popover/Popover.vue +77 -2
  177. package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
  178. package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +1 -1
  179. package/src/components/progress/Progress.vue +1 -1
  180. package/src/components/progress/theme/Progress.base.theme.ts +2 -2
  181. package/src/components/radio/theme/Radio.base.theme.ts +8 -8
  182. package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
  183. package/src/components/select/Select.vue +7 -4
  184. package/src/components/select/theme/Select.base.theme.ts +8 -8
  185. package/src/components/select/theme/Select.carbon.theme.ts +8 -8
  186. package/src/components/skeleton/theme/Skeleton.base.theme.ts +1 -1
  187. package/src/components/slider/Slider.vue +1 -1
  188. package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
  189. package/src/components/stepper/Stepper.vue +3 -3
  190. package/src/components/tab/Tab.vue +3 -3
  191. package/src/components/tab/theme/TabGroup.base.theme.ts +4 -4
  192. package/src/components/tab/theme/TabGroup.carbon.theme.ts +3 -3
  193. package/src/components/table/Table.vue +2 -0
  194. package/src/components/table/theme/Table.base.theme.ts +1 -1
  195. package/src/components/table/theme/Table.carbon.theme.ts +2 -2
  196. package/src/components/table/theme/TableHead.base.theme.ts +1 -1
  197. package/src/components/table/theme/TableHead.carbon.theme.ts +1 -1
  198. package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
  199. package/src/components/table/theme/TableHeader.carbon.theme.ts +2 -2
  200. package/src/components/table/theme/TableRow.base.theme.ts +3 -3
  201. package/src/components/table/theme/TableRow.carbon.theme.ts +3 -3
  202. package/src/components/tag/Tag.vue +1 -1
  203. package/src/components/textarea/Textarea.vue +3 -1
  204. package/src/components/textarea/theme/Textarea.base.theme.ts +5 -4
  205. package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -5
  206. package/src/components/toggle/Toggle.vue +3 -3
  207. package/src/components/toggle/theme/Toggle.base.theme.ts +1 -1
  208. package/src/components/tooltip/ToggleTip.vue +31 -0
  209. package/src/components/tooltip/Tooltip.vue +14 -4
  210. package/src/components/tooltip/__tests__/ToggleTip.spec.ts +11 -0
  211. package/src/components/tooltip/index.ts +3 -0
  212. package/src/composables/useColors.ts +1 -1
  213. package/src/composables/useInputtable.ts +1 -0
  214. package/src/themes/base/index.ts +0 -3
  215. package/src/themes/base/styles.css +4 -0
  216. package/src/version.ts +1 -1
  217. package/volar.d.ts +1 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as w, watch as m, unref as o, openBlock as i, createElementBlock as p, normalizeStyle as R, normalizeClass as u, createElementVNode as d, withKeys as T, withModifiers as H, withDirectives as O, mergeProps as U, toHandlers as X, vModelCheckbox as j, createBlock as V, renderSlot as C, toDisplayString as J, createCommentVNode as Q } from "vue";
1
+ import { defineComponent as P, ref as w, watch as m, unref as a, openBlock as i, createElementBlock as p, normalizeStyle as R, normalizeClass as u, createElementVNode as d, withKeys as T, withModifiers as H, withDirectives as O, mergeProps as U, toHandlers as X, vModelCheckbox as j, createBlock as V, renderSlot as C, toDisplayString as J, createCommentVNode as Q } from "vue";
2
2
  import { useTheme as W } from "../../composables/useTheme.js";
3
3
  import { useCommon as I } from "../../composables/useCommon.js";
4
4
  import { useColors as Y } from "../../composables/useColors.js";
@@ -9,9 +9,9 @@ import x from "../inputFooter/InputFooter.vue.js";
9
9
  const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled", "disabled", "required"], le = {
10
10
  key: 1,
11
11
  name: "check-icon",
12
- class: "w-2/3 h-[2px] bg-white dark:bg-gray-900"
13
- }, ae = /* @__PURE__ */ d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1), oe = [
14
- ae
12
+ class: "w-2/3 h-[2px] bg-white dark:bg-secondary-900"
13
+ }, oe = /* @__PURE__ */ d("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1), ae = [
14
+ oe
15
15
  ], re = ["textContent"], ie = {
16
16
  ...I.props(),
17
17
  ...Y.props("primary"),
@@ -46,22 +46,22 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
46
46
  setError: E
47
47
  } = f(s, { focus: y, emit: v, withListeners: !1 });
48
48
  c ? (m(() => r.value, () => {
49
- const e = o(r.value);
49
+ const e = a(r.value);
50
50
  e && Array.isArray(e) && e.includes(s.value) ? l.value = !0 : l.value = !1;
51
51
  }, { immediate: !0, deep: !0 }), m(() => l.value, (e) => {
52
52
  if (!s.value)
53
53
  return;
54
- const a = o(r.value);
54
+ const o = a(r.value);
55
55
  if (e)
56
- if (a && Array.isArray(a)) {
57
- if (!a.includes(s.value)) {
58
- const n = [...a, s.value];
56
+ if (o && Array.isArray(o)) {
57
+ if (!o.includes(s.value)) {
58
+ const n = [...o, s.value];
59
59
  r.setValue(n);
60
60
  }
61
61
  } else
62
62
  r.setValue([s.value]);
63
- else if (a && Array.isArray(a) && a.includes(s.value)) {
64
- const n = a.findIndex((D) => D === s.value), g = [...a];
63
+ else if (o && Array.isArray(o) && o.includes(s.value)) {
64
+ const n = o.findIndex((D) => D === s.value), g = [...o];
65
65
  g.splice(n, 1), r.setValue(g);
66
66
  }
67
67
  })) : (m(() => s.modelValue, (e) => {
@@ -76,23 +76,23 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
76
76
  }, 0);
77
77
  }
78
78
  }, { styles: L, classes: t, className: M } = W("Checkbox", {}, s, { checked: l, isInsideForm: S, isInsideFormGroup: c });
79
- return B({ focus: y, blur: F, toggle: b, reset: q, validate: k, setError: E }), (e, a) => (i(), p("label", {
80
- style: R(o(L)),
79
+ return B({ focus: y, blur: F, toggle: b, reset: q, validate: k, setError: E }), (e, o) => (i(), p("label", {
80
+ style: R(a(L)),
81
81
  class: u([
82
- o(M),
83
- o(t).wrapper
82
+ a(M),
83
+ a(t).wrapper
84
84
  ])
85
85
  }, [
86
86
  d("div", {
87
87
  ref_key: "elRef",
88
88
  ref: h,
89
- class: u(o(t).content),
89
+ class: u(a(t).content),
90
90
  tabindex: "0",
91
91
  onKeypress: T(H(b, ["prevent", "stop"]), ["space"])
92
92
  }, [
93
93
  O(d("input", U({
94
94
  id: e.id,
95
- "onUpdate:modelValue": a[0] || (a[0] = (n) => l.value = n),
95
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
96
96
  name: e.name,
97
97
  "aria-checked": e.indeterminate ? "mixed" : l.value ? "true" : "false",
98
98
  "aria-disabled": e.disabled ? "true" : void 0,
@@ -105,7 +105,7 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
105
105
  ]),
106
106
  d("div", {
107
107
  class: u([
108
- o(t).box,
108
+ a(t).box,
109
109
  [e.glow && !e.disabled && !e.loading ? e.$style["checkbox--glow"] : ""]
110
110
  ])
111
111
  }, [
@@ -116,12 +116,12 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
116
116
  }, null, 8, ["size"])) : e.indeterminate ? (i(), p("span", le)) : C(e.$slots, "icon", { key: 2 }, () => [
117
117
  (i(), p("svg", {
118
118
  viewBox: "0 0 20 20",
119
- class: u([o(t).icon, { "opacity-0": !l.value }])
120
- }, oe, 2))
119
+ class: u([a(t).icon, { "opacity-0": !l.value }])
120
+ }, ae, 2))
121
121
  ])
122
122
  ], 2),
123
123
  d("div", {
124
- class: u(o(t).label)
124
+ class: u(a(t).label)
125
125
  }, [
126
126
  e.label ? (i(), p("span", {
127
127
  key: 0,
@@ -129,9 +129,9 @@ const ee = ["onKeypress"], se = ["id", "name", "aria-checked", "aria-disabled",
129
129
  }, null, 8, re)) : C(e.$slots, "default", { key: 1 })
130
130
  ], 2)
131
131
  ], 42, ee),
132
- o(N) ? Q("", !0) : (i(), V(x, {
132
+ a(N) ? Q("", !0) : (i(), V(x, {
133
133
  key: 0,
134
- error: o(G),
134
+ error: a(G),
135
135
  helper: e.helper
136
136
  }, null, 8, ["error", "helper"]))
137
137
  ], 6));
@@ -5,19 +5,19 @@ const o = {
5
5
  return r.isInsideForm && !r.isInsideFormGroup && e.push("mb-3"), e;
6
6
  },
7
7
  box: ({ props: r }) => {
8
- const e = ["rounded flex justify-center items-center shrink-0 border-2 border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
9
- return r.size === "xs" || r.size === "sm" ? e.push("h-4 w-4") : r.size === "xl" ? e.push("h-6 w-6") : e.push("h-5 w-5"), e;
8
+ const e = ["rounded flex justify-center items-center shrink-0 border border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)]"];
9
+ return r.size === "lg" ? e.push("h-5 w-5") : r.size === "xl" ? e.push("h-6 w-6") : e.push("h-4 w-4"), e;
10
10
  },
11
11
  content: ({ props: r }) => {
12
- const e = ["flex items-center"];
12
+ const e = ["flex items-baseline"];
13
13
  return r.disabled && e.push("cursor-not-allowed"), e;
14
14
  },
15
15
  icon: ({ props: r }) => {
16
- const e = ["fill-current text-white dark:text-gray-900"];
17
- return r.size === "xs" || r.size === "sm" ? e.push("h-2 w-2") : r.size === "xl" ? e.push("h-4 w-4") : e.push("h-3 w-3"), e;
16
+ const e = ["fill-current text-white"];
17
+ return r.size === "lg" ? e.push("h-3 w-3") : r.size === "xl" ? e.push("h-4 w-4") : e.push("h-2.5 w-2.5"), e;
18
18
  },
19
19
  label: ({ props: r }) => {
20
- const e = ["inline-block font-medium text-gray-800 dark:text-gray-200 pl-2"];
20
+ const e = ["inline-block font-medium text-secondary-800 dark:text-secondary-200 pl-2"];
21
21
  return r.size === "xs" ? e.push("text-xs") : r.size === "sm" ? e.push("text-sm") : r.size === "lg" ? e.push("text-lg") : r.size === "xl" && e.push("text-xl"), e;
22
22
  }
23
23
  },
@@ -13,11 +13,11 @@ const o = {
13
13
  return r.disabled && e.push("cursor-not-allowed"), e;
14
14
  },
15
15
  icon: ({ props: r }) => {
16
- const e = ["fill-current text-white dark:text-gray-900"];
16
+ const e = ["fill-current text-white dark:text-secondary-900"];
17
17
  return r.size === "xs" || r.size === "sm" ? e.push("h-2 w-2") : r.size === "xl" ? e.push("h-3.5 w-3.5") : e.push("h-2.5 w-2.5"), e;
18
18
  },
19
19
  label: ({ props: r }) => {
20
- const e = ["text-gray-800 dark:text-gray-200 pl-2 text-sm"];
20
+ const e = ["text-secondary-800 dark:text-secondary-200 pl-2 text-sm"];
21
21
  return r.size === "xs" ? e.push("text-xs") : r.size === "sm" ? e.push("text-sm") : r.size === "lg" ? e.push("text-lg") : r.size === "xl" && e.push("text-xl"), e;
22
22
  }
23
23
  },
@@ -1,8 +1,8 @@
1
1
  const a = {
2
2
  classes: {
3
3
  wrapper: ({ props: s }) => {
4
- const e = ["px-4 md:px-8"];
5
- return s.fluid || e.push("max-w-screen-2xl mx-auto"), e;
4
+ const e = ["px-4 md:px-6"];
5
+ return s.fluid || e.push("max-w-screen-lg mx-auto"), e;
6
6
  }
7
7
  }
8
8
  }, t = a;
@@ -1,32 +1,32 @@
1
- import { defineComponent as p, openBlock as s, createElementBlock as o, normalizeStyle as r, unref as t, normalizeClass as a, createElementVNode as i, toDisplayString as u, createCommentVNode as v } from "vue";
1
+ import { defineComponent as p, openBlock as o, createElementBlock as r, normalizeStyle as s, unref as t, normalizeClass as a, createElementVNode as n, toDisplayString as u, createCommentVNode as v } from "vue";
2
2
  import { useTheme as y } from "../../composables/useTheme.js";
3
3
  const h = ["textContent"], f = {
4
4
  label: String,
5
5
  vertical: Boolean
6
- }, g = { name: "XDivider" }, x = /* @__PURE__ */ p({
7
- ...g,
6
+ }, C = { name: "XDivider" }, x = /* @__PURE__ */ p({
7
+ ...C,
8
8
  props: f,
9
- setup(n) {
10
- const c = n, { styles: m, classes: l, className: d } = y("Divider", {}, c);
11
- return (e, C) => (s(), o("div", {
12
- style: r(t(m)),
9
+ setup(i) {
10
+ const c = i, { styles: d, classes: l, className: m } = y("Divider", {}, c);
11
+ return (e, b) => (o(), r("div", {
12
+ style: s(t(d)),
13
13
  class: a([
14
- t(d),
14
+ t(m),
15
15
  t(l).wrapper
16
16
  ])
17
17
  }, [
18
- i("div", {
18
+ n("div", {
19
19
  class: a(t(l).line),
20
- style: r([
20
+ style: s([
21
21
  {
22
22
  width: e.vertical ? "1px" : "auto",
23
23
  height: e.vertical ? "auto" : "1px"
24
24
  }
25
25
  ])
26
26
  }, null, 6),
27
- e.label ? (s(), o("div", {
27
+ e.label ? (o(), r("div", {
28
28
  key: 0,
29
- class: a(["font-medium text-sm text-gray-600 dark:text-gray-300", [
29
+ class: a(["font-medium text-sm text-secondary-600 dark:text-secondary-300", [
30
30
  t(l).label,
31
31
  {
32
32
  "my-2": e.vertical,
@@ -35,9 +35,9 @@ const h = ["textContent"], f = {
35
35
  ]]),
36
36
  textContent: u(e.label)
37
37
  }, null, 10, h)) : v("", !0),
38
- i("div", {
38
+ n("div", {
39
39
  class: a(t(l).line),
40
- style: r([
40
+ style: s([
41
41
  {
42
42
  width: e.vertical ? "1px" : "auto",
43
43
  height: e.vertical ? "auto" : "1px"
@@ -1,8 +1,8 @@
1
1
  const t = {
2
2
  classes: {
3
3
  wrapper: ({ props: e }) => `flex justify-center items-center ${e.vertical ? "h-full flex-col" : "w-full"}`,
4
- label: "font-medium text-sm text-gray-600 dark:text-gray-300",
5
- line: "bg-gray-200 dark:bg-slate-700 flex-grow"
4
+ label: "font-medium text-sm text-secondary-600 dark:text-secondary-300",
5
+ line: "bg-secondary-200 dark:bg-secondary-700 flex-grow"
6
6
  }
7
7
  }, l = t;
8
8
  export {
@@ -86,14 +86,14 @@ const ee = {
86
86
  return;
87
87
  }
88
88
  e.addEventListener("transitionend", o), setTimeout(() => {
89
- t.backdrop && e.classList.add("bg-gray-500/30"), t.position === "top" ? e.style.top = "0" : t.position === "bottom" ? e.style.bottom = "0" : t.position === "left" ? e.style.left = "0" : t.position === "right" && (e.style.right = "0");
89
+ t.backdrop && e.classList.add("bg-slate-500/30"), t.position === "top" ? e.style.top = "0" : t.position === "bottom" ? e.style.bottom = "0" : t.position === "left" ? e.style.left = "0" : t.position === "right" && (e.style.right = "0");
90
90
  }, 1);
91
91
  }
92
92
  function R(e) {
93
93
  }
94
94
  function D(e, o) {
95
95
  e.addEventListener("transitionend", o), setTimeout(() => {
96
- t.backdrop && e.classList.remove("bg-gray-500/30"), t.position === "top" ? e.style.top = `-${t.height}px` : t.position === "bottom" ? e.style.bottom = `-${t.height}px` : t.position === "left" ? e.style.left = `-${t.width}px` : t.position === "right" && (e.style.right = `-${t.width}px`);
96
+ t.backdrop && e.classList.remove("bg-slate-500/30"), t.position === "top" ? e.style.top = `-${t.height}px` : t.position === "bottom" ? e.style.bottom = `-${t.height}px` : t.position === "left" ? e.style.left = `-${t.width}px` : t.position === "right" && (e.style.right = `-${t.width}px`);
97
97
  }, 1);
98
98
  }
99
99
  function z(e) {
@@ -1,6 +1,6 @@
1
1
  const e = {
2
2
  classes: {
3
- wrapper: "flex flex-col max-h-full bg-white dark:bg-gray-800",
3
+ wrapper: "flex flex-col max-h-full bg-white dark:bg-secondary-800",
4
4
  backdrop: "duration-150 ease-in-out"
5
5
  }
6
6
  }, a = e;
@@ -3,7 +3,7 @@ import { injectFormKey as N } from "../../composables/keys.js";
3
3
  import { useTheme as T } from "../../composables/useTheme.js";
4
4
  const j = {
5
5
  key: 0,
6
- class: "mb-10"
6
+ class: "mb-6"
7
7
  }, w = ["disabled"], z = {
8
8
  autoValidate: {
9
9
  type: Boolean,
@@ -1,12 +1,12 @@
1
- const t = {
1
+ const e = {
2
2
  classes: {
3
3
  wrapper: "relative",
4
4
  content: "",
5
5
  title: "text-xl mb-1",
6
- description: "text-gray-500",
6
+ description: "text-secondary-500",
7
7
  footer: "space-x-4 mt-4"
8
8
  }
9
- }, e = t;
9
+ }, t = e;
10
10
  export {
11
- e as default
11
+ t as default
12
12
  };
@@ -1,12 +1,12 @@
1
- const t = {
1
+ const e = {
2
2
  classes: {
3
3
  wrapper: "relative",
4
4
  content: "grid",
5
5
  title: "text-xl mb-1",
6
- description: "text-gray-500",
6
+ description: "text-secondary-500",
7
7
  footer: "grid grid-cols-2 gap-4 lg:flex mt-8"
8
8
  }
9
- }, e = t;
9
+ }, t = e;
10
10
  export {
11
- e as default
11
+ t as default
12
12
  };
@@ -22,6 +22,7 @@ declare const formGroupProps: {
22
22
  readonly type: ArrayConstructor;
23
23
  readonly default: () => never[];
24
24
  };
25
+ tooltip: StringConstructor;
25
26
  disabled: BooleanConstructor;
26
27
  loading: BooleanConstructor;
27
28
  loadingLabel: StringConstructor;
@@ -67,6 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
68
  readonly type: ArrayConstructor;
68
69
  readonly default: () => never[];
69
70
  };
71
+ tooltip: StringConstructor;
70
72
  disabled: BooleanConstructor;
71
73
  loading: BooleanConstructor;
72
74
  loadingLabel: StringConstructor;
@@ -102,6 +104,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
104
  readonly type: ArrayConstructor;
103
105
  readonly default: () => never[];
104
106
  };
107
+ tooltip: StringConstructor;
105
108
  disabled: BooleanConstructor;
106
109
  loading: BooleanConstructor;
107
110
  loadingLabel: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as k, provide as q, openBlock as m, createBlock as p, mergeProps as B, unref as o, toHandlers as N, withCtx as $, createElementVNode as w, normalizeClass as A, renderSlot as E, createCommentVNode as P } from "vue";
1
+ import { defineComponent as C, computed as k, provide as q, openBlock as p, createBlock as m, mergeProps as B, unref as o, toHandlers as N, withCtx as $, createElementVNode as w, normalizeClass as A, renderSlot as E, createCommentVNode as P } from "vue";
2
2
  import { useTheme as j } from "../../composables/useTheme.js";
3
3
  import { useInteractive as z } from "../../composables/useInteractive.js";
4
4
  import { useInputtable as l } from "../../composables/useInputtable.js";
@@ -14,19 +14,19 @@ const S = {
14
14
  }
15
15
  }, T = {
16
16
  name: "XFormGroup"
17
- }, R = /* @__PURE__ */ C({
17
+ }, U = /* @__PURE__ */ C({
18
18
  ...T,
19
19
  props: S,
20
20
  emits: l.emits(),
21
21
  setup(d, { expose: f, emit: c }) {
22
- const r = d, s = [], V = k(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
22
+ const r = d, t = [], V = k(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
23
23
  q(H, {
24
- registerInputGroup: (e, t) => {
25
- s.push({ name: e, focus: t });
24
+ registerInputGroup: (e, s) => {
25
+ t.push({ name: e, focus: s });
26
26
  },
27
27
  unregisterInputGroup: (e) => {
28
- const t = s.findIndex((g) => g.name === e);
29
- s.splice(t, 1);
28
+ const s = t.findIndex((_) => _.name === e);
29
+ t.splice(s, 1);
30
30
  },
31
31
  setValue: (e) => {
32
32
  n("update:modelValue", e);
@@ -36,7 +36,7 @@ const S = {
36
36
  });
37
37
  function i() {
38
38
  var e;
39
- (e = s[0]) == null || e.focus();
39
+ (e = t[0]) == null || e.focus();
40
40
  }
41
41
  const n = c, {
42
42
  errorInternal: a,
@@ -49,8 +49,8 @@ const S = {
49
49
  change: (e) => {
50
50
  r.validateOnInput && !b.value && u(r.modelValue);
51
51
  }
52
- }, { styles: F, classes: G, className: _ } = j("FormGroup", {}, r, { errorInternal: a });
53
- return f({ focus: i, blur, reset: h, validate: u, setError: v }), (e, t) => (m(), p(K, B({
52
+ }, { styles: F, classes: G, className: g } = j("FormGroup", {}, r, { errorInternal: a });
53
+ return f({ focus: i, blur, reset: h, validate: u, setError: v }), (e, s) => (p(), m(K, B({
54
54
  tag: "fieldset",
55
55
  style: o(F),
56
56
  disabled: e.disabled,
@@ -58,8 +58,9 @@ const S = {
58
58
  "is-inside-form": o(y),
59
59
  label: e.label,
60
60
  class: [
61
- o(_)
62
- ]
61
+ o(g)
62
+ ],
63
+ tooltip: e.tooltip
63
64
  }, N(I)), {
64
65
  default: $(() => [
65
66
  w("div", {
@@ -67,16 +68,16 @@ const S = {
67
68
  }, [
68
69
  E(e.$slots, "default")
69
70
  ], 2),
70
- e.hideFooter ? P("", !0) : (m(), p(O, {
71
+ e.hideFooter ? P("", !0) : (p(), m(O, {
71
72
  key: 0,
72
73
  error: o(a),
73
74
  helper: e.helper
74
75
  }, null, 8, ["error", "helper"]))
75
76
  ]),
76
77
  _: 3
77
- }, 16, ["style", "disabled", "required", "is-inside-form", "label", "class"]));
78
+ }, 16, ["style", "disabled", "required", "is-inside-form", "label", "class", "tooltip"]));
78
79
  }
79
80
  });
80
81
  export {
81
- R as default
82
+ U as default
82
83
  };
@@ -2,7 +2,7 @@ const t = {
2
2
  classes: {
3
3
  wrapper: ({ props: s }) => {
4
4
  const e = [""];
5
- return s.vertical ? e.push("grid gap-1") : e.push("flex gap-2"), e;
5
+ return s.vertical ? e.push("grid gap-1") : e.push("flex gap-4"), e;
6
6
  }
7
7
  }
8
8
  }, a = t;
@@ -2,7 +2,7 @@ const t = {
2
2
  classes: {
3
3
  wrapper: ({ props: s }) => {
4
4
  const e = "inline shrink-0";
5
- return s.size === "xs" ? e + " h-3 w-3" : s.size === "sm" ? e + " h-4 w-4" : s.size === "lg" ? e + " h-6 w-6" : s.size === "xl" ? e + " h-9 w-9" : e + " h-5 w-5";
5
+ return s.size === "xs" ? e + " h-3 w-3" : s.size === "sm" ? e + " h-4 w-4" : s.size === "lg" ? e + " h-6 w-6" : s.size === "xl" ? e + " h-7 w-7" : e + " h-4 w-4";
6
6
  }
7
7
  }
8
8
  }, i = t;