@indielayer/ui 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) 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 +3 -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/theme/Button.base.theme.js +7 -7
  34. package/lib/components/card/theme/Card.base.theme.js +1 -1
  35. package/lib/components/checkbox/Checkbox.vue.d.ts +3 -0
  36. package/lib/components/checkbox/Checkbox.vue2.js +23 -23
  37. package/lib/components/checkbox/theme/Checkbox.base.theme.js +6 -6
  38. package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +2 -2
  39. package/lib/components/container/theme/Container.base.theme.js +2 -2
  40. package/lib/components/divider/Divider.vue.js +14 -14
  41. package/lib/components/divider/theme/Divider.base.theme.js +2 -2
  42. package/lib/components/drawer/Drawer.vue.js +2 -2
  43. package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
  44. package/lib/components/form/Form.vue.js +1 -1
  45. package/lib/components/form/theme/Form.base.theme.js +4 -4
  46. package/lib/components/form/theme/Form.carbon.theme.js +4 -4
  47. package/lib/components/formGroup/FormGroup.vue.d.ts +3 -0
  48. package/lib/components/formGroup/FormGroup.vue.js +16 -15
  49. package/lib/components/formGroup/theme/FormGroup.base.theme.js +1 -1
  50. package/lib/components/icon/theme/Icon.base.theme.js +1 -1
  51. package/lib/components/index.js +108 -107
  52. package/lib/components/input/Input.vue.d.ts +3 -0
  53. package/lib/components/input/Input.vue.js +4 -3
  54. package/lib/components/input/theme/Input.base.theme.js +10 -10
  55. package/lib/components/input/theme/Input.carbon.theme.js +10 -10
  56. package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -3
  57. package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +2 -2
  58. package/lib/components/label/Label.vue.d.ts +3 -0
  59. package/lib/components/label/Label.vue.js +26 -20
  60. package/lib/components/label/theme/Label.base.theme.js +1 -1
  61. package/lib/components/label/theme/Label.carbon.theme.js +3 -3
  62. package/lib/components/link/Link.vue.js +2 -2
  63. package/lib/components/link/Link.vue2.js +4 -4
  64. package/lib/components/loader/theme/Loader.base.theme.js +1 -1
  65. package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
  66. package/lib/components/menu/Menu.vue.js +19 -19
  67. package/lib/components/menu/theme/MenuItem.base.theme.js +21 -31
  68. package/lib/components/modal/Modal.vue.d.ts +4 -0
  69. package/lib/components/modal/Modal.vue.js +78 -74
  70. package/lib/components/modal/theme/Modal.base.theme.js +10 -10
  71. package/lib/components/modal/theme/Modal.carbon.theme.js +3 -3
  72. package/lib/components/notifications/Notifications.vue.js +1 -1
  73. package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
  74. package/lib/components/notifications/theme/Notifications.carbon.theme.js +3 -3
  75. package/lib/components/pagination/Pagination.vue.js +27 -27
  76. package/lib/components/popover/Popover.vue.d.ts +13 -0
  77. package/lib/components/popover/Popover.vue.js +13 -8
  78. package/lib/components/popover/Popover.vue2.js +3 -2
  79. package/lib/components/popover/Popover.vue3.js +2 -3
  80. package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -4
  81. package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -4
  82. package/lib/components/progress/Progress.vue.js +11 -11
  83. package/lib/components/progress/theme/Progress.base.theme.js +10 -10
  84. package/lib/components/radio/Radio.vue.d.ts +3 -0
  85. package/lib/components/radio/theme/Radio.base.theme.js +28 -28
  86. package/lib/components/radio/theme/Radio.carbon.theme.js +8 -8
  87. package/lib/components/select/Select.vue.d.ts +16 -0
  88. package/lib/components/select/Select.vue.js +95 -92
  89. package/lib/components/select/theme/Select.base.theme.js +11 -11
  90. package/lib/components/select/theme/Select.carbon.theme.js +10 -10
  91. package/lib/components/skeleton/theme/Skeleton.base.theme.js +1 -1
  92. package/lib/components/slider/Slider.vue.d.ts +3 -0
  93. package/lib/components/slider/Slider.vue.js +1 -1
  94. package/lib/components/slider/theme/Slider.carbon.theme.js +6 -6
  95. package/lib/components/stepper/Stepper.vue.js +14 -14
  96. package/lib/components/tab/Tab.vue.js +55 -54
  97. package/lib/components/tab/theme/TabGroup.base.theme.js +15 -15
  98. package/lib/components/tab/theme/TabGroup.carbon.theme.js +8 -8
  99. package/lib/components/table/Table.vue.js +192 -194
  100. package/lib/components/table/theme/Table.base.theme.js +3 -3
  101. package/lib/components/table/theme/Table.carbon.theme.js +7 -7
  102. package/lib/components/table/theme/TableHead.base.theme.js +1 -1
  103. package/lib/components/table/theme/TableHead.carbon.theme.js +1 -1
  104. package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
  105. package/lib/components/table/theme/TableHeader.carbon.theme.js +2 -2
  106. package/lib/components/table/theme/TableRow.base.theme.js +3 -3
  107. package/lib/components/table/theme/TableRow.carbon.theme.js +3 -3
  108. package/lib/components/tag/Tag.vue.js +4 -4
  109. package/lib/components/textarea/Textarea.vue.d.ts +7 -0
  110. package/lib/components/textarea/Textarea.vue.js +23 -21
  111. package/lib/components/textarea/theme/Textarea.base.theme.js +6 -6
  112. package/lib/components/textarea/theme/Textarea.carbon.theme.js +6 -6
  113. package/lib/components/toggle/Toggle.vue.d.ts +3 -0
  114. package/lib/components/toggle/Toggle.vue.js +26 -26
  115. package/lib/components/toggle/theme/Toggle.base.theme.js +1 -1
  116. package/lib/components/tooltip/ToggleTip.vue.d.ts +14 -0
  117. package/lib/components/tooltip/ToggleTip.vue.js +29 -0
  118. package/lib/components/tooltip/ToggleTip.vue2.js +4 -0
  119. package/lib/components/tooltip/Tooltip.vue.d.ts +22 -3
  120. package/lib/components/tooltip/Tooltip.vue.js +26 -17
  121. package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +1 -0
  122. package/lib/components/tooltip/index.d.ts +2 -0
  123. package/lib/composables/useColors.js +9 -9
  124. package/lib/composables/useInputtable.d.ts +1 -0
  125. package/lib/composables/useInputtable.js +20 -19
  126. package/lib/index.js +37 -35
  127. package/lib/index.umd.js +7 -3
  128. package/lib/tailwind.preset.js +0 -1
  129. package/lib/themes/base/index.js +3 -6
  130. package/lib/themes/base/styles.css.js +4 -0
  131. package/lib/version.d.ts +1 -1
  132. package/lib/version.js +1 -1
  133. package/package.json +2 -1
  134. package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
  135. package/src/components/badge/Badge.vue +1 -1
  136. package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +1 -1
  137. package/src/components/button/theme/Button.base.theme.ts +2 -2
  138. package/src/components/card/theme/Card.base.theme.ts +1 -1
  139. package/src/components/checkbox/Checkbox.vue +1 -1
  140. package/src/components/checkbox/theme/Checkbox.base.theme.ts +8 -8
  141. package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +2 -2
  142. package/src/components/container/theme/Container.base.theme.ts +2 -2
  143. package/src/components/divider/Divider.vue +1 -1
  144. package/src/components/divider/theme/Divider.base.theme.ts +2 -2
  145. package/src/components/drawer/Drawer.vue +2 -2
  146. package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
  147. package/src/components/form/Form.vue +1 -1
  148. package/src/components/form/theme/Form.base.theme.ts +1 -1
  149. package/src/components/form/theme/Form.carbon.theme.ts +1 -1
  150. package/src/components/formGroup/FormGroup.vue +1 -0
  151. package/src/components/formGroup/theme/FormGroup.base.theme.ts +1 -1
  152. package/src/components/icon/theme/Icon.base.theme.ts +2 -2
  153. package/src/components/input/Input.vue +2 -1
  154. package/src/components/input/theme/Input.base.theme.ts +5 -5
  155. package/src/components/input/theme/Input.carbon.theme.ts +6 -6
  156. package/src/components/inputFooter/theme/InputFooter.base.theme.ts +3 -3
  157. package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -2
  158. package/src/components/label/Label.vue +4 -1
  159. package/src/components/label/theme/Label.base.theme.ts +1 -1
  160. package/src/components/label/theme/Label.carbon.theme.ts +1 -1
  161. package/src/components/link/Link.vue +1 -1
  162. package/src/components/loader/theme/Loader.base.theme.ts +1 -1
  163. package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
  164. package/src/components/menu/Menu.vue +3 -3
  165. package/src/components/menu/theme/MenuItem.base.theme.ts +30 -34
  166. package/src/components/modal/Modal.vue +8 -3
  167. package/src/components/modal/theme/Modal.base.theme.ts +9 -6
  168. package/src/components/modal/theme/Modal.carbon.theme.ts +3 -3
  169. package/src/components/notifications/Notifications.vue +1 -1
  170. package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
  171. package/src/components/notifications/theme/Notifications.carbon.theme.ts +1 -1
  172. package/src/components/pagination/Pagination.vue +3 -3
  173. package/src/components/popover/Popover.vue +77 -2
  174. package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
  175. package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +1 -1
  176. package/src/components/progress/Progress.vue +1 -1
  177. package/src/components/progress/theme/Progress.base.theme.ts +2 -2
  178. package/src/components/radio/theme/Radio.base.theme.ts +8 -8
  179. package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
  180. package/src/components/select/Select.vue +7 -4
  181. package/src/components/select/theme/Select.base.theme.ts +8 -8
  182. package/src/components/select/theme/Select.carbon.theme.ts +8 -8
  183. package/src/components/skeleton/theme/Skeleton.base.theme.ts +1 -1
  184. package/src/components/slider/Slider.vue +1 -1
  185. package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
  186. package/src/components/stepper/Stepper.vue +3 -3
  187. package/src/components/tab/Tab.vue +3 -3
  188. package/src/components/tab/theme/TabGroup.base.theme.ts +4 -4
  189. package/src/components/tab/theme/TabGroup.carbon.theme.ts +3 -3
  190. package/src/components/table/Table.vue +2 -0
  191. package/src/components/table/theme/Table.base.theme.ts +1 -1
  192. package/src/components/table/theme/Table.carbon.theme.ts +2 -2
  193. package/src/components/table/theme/TableHead.base.theme.ts +1 -1
  194. package/src/components/table/theme/TableHead.carbon.theme.ts +1 -1
  195. package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
  196. package/src/components/table/theme/TableHeader.carbon.theme.ts +2 -2
  197. package/src/components/table/theme/TableRow.base.theme.ts +3 -3
  198. package/src/components/table/theme/TableRow.carbon.theme.ts +3 -3
  199. package/src/components/tag/Tag.vue +1 -1
  200. package/src/components/textarea/Textarea.vue +3 -1
  201. package/src/components/textarea/theme/Textarea.base.theme.ts +5 -4
  202. package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -5
  203. package/src/components/toggle/Toggle.vue +3 -3
  204. package/src/components/toggle/theme/Toggle.base.theme.ts +1 -1
  205. package/src/components/tooltip/ToggleTip.vue +31 -0
  206. package/src/components/tooltip/Tooltip.vue +14 -4
  207. package/src/components/tooltip/__tests__/ToggleTip.spec.ts +11 -0
  208. package/src/components/tooltip/index.ts +3 -0
  209. package/src/composables/useColors.ts +1 -1
  210. package/src/composables/useInputtable.ts +1 -0
  211. package/src/themes/base/index.ts +0 -3
  212. package/src/themes/base/styles.css +4 -0
  213. package/src/version.ts +1 -1
  214. package/volar.d.ts +1 -0
@@ -7,7 +7,7 @@ import A from "../icon/Icon.vue.js";
7
7
  import { stepperIncompleteIcon as F, errorIcon as L, successIcon as T, stepperPristineIcon as W } from "../../common/icons.js";
8
8
  const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" }, G = { class: "grid text-left" }, H = { class: "text-sm truncate" }, J = {
9
9
  key: 0,
10
- class: "text-xs text-gray-500"
10
+ class: "text-xs text-secondary-500"
11
11
  }, K = {
12
12
  ...v.validators(),
13
13
  variant: ["line"]
@@ -44,22 +44,22 @@ const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" },
44
44
  ...O,
45
45
  props: M,
46
46
  emits: ["update:modelValue"],
47
- setup(y, { emit: g }) {
48
- const l = y, _ = g, b = c(null), S = c(null), h = c(null);
47
+ setup(y, { emit: _ }) {
48
+ const n = y, g = _, b = c(null), S = c(null), h = c(null);
49
49
  function k(t, a) {
50
- t.disabled || !l.interactive || _("update:modelValue", a);
50
+ t.disabled || !n.interactive || g("update:modelValue", a);
51
51
  }
52
52
  function C(t, a) {
53
- return t.status === "incomplete" ? l.iconIncomplete || F : t.status === "error" ? l.iconError || L : t.status === "complete" ? l.iconComplete || T : l.iconPristine || W;
53
+ return t.status === "incomplete" ? n.iconIncomplete || F : t.status === "error" ? n.iconError || L : t.status === "complete" ? n.iconComplete || T : n.iconPristine || W;
54
54
  }
55
- const { styles: w, classes: n, className: x } = D("Stepper", {}, l);
55
+ const { styles: w, classes: l, className: x } = D("Stepper", {}, n);
56
56
  return (t, a) => (i(), d("div", null, [
57
57
  r("div", {
58
58
  ref_key: "wrapperRef",
59
59
  ref: S,
60
60
  class: s(["relative", [
61
61
  o(x),
62
- o(n).wrapper
62
+ o(l).wrapper
63
63
  ]]),
64
64
  style: B(o(w))
65
65
  }, [
@@ -69,19 +69,19 @@ const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" },
69
69
  scrollbar: !1,
70
70
  horizontal: "",
71
71
  mousewheel: "",
72
- class: s(o(n).scroller)
72
+ class: s(o(l).scroller)
73
73
  }, {
74
74
  default: p(() => [
75
75
  r("div", {
76
76
  ref_key: "stepperRef",
77
77
  ref: h,
78
- class: s(["relative", o(n).list])
78
+ class: s(["relative", o(l).list])
79
79
  }, [
80
80
  (i(!0), d(R, null, V(t.steps, (e, m) => (i(), N(z(t.interactive ? "button" : "div"), {
81
81
  key: m,
82
- class: s([o(n).step, {
82
+ class: s([o(l).step, {
83
83
  "cursor-pointer": t.interactive && !e.disabled,
84
- "text-gray-400 dark:text-gray-600": e.disabled,
84
+ "text-secondary-400 dark:text-secondary-600": e.disabled,
85
85
  "flex-1": t.grow
86
86
  }]),
87
87
  disabled: e.disabled || !t.interactive,
@@ -90,13 +90,13 @@ const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" },
90
90
  default: p(() => [
91
91
  r("div", j, [
92
92
  r("div", {
93
- class: s(["h-0.5 w-full mb-2", [e.status === "complete" || e.status === "incomplete" ? "bg-primary-500" : "bg-gray-200 dark:bg-gray-700"]])
93
+ class: s(["h-0.5 w-full mb-2", [e.status === "complete" || e.status === "incomplete" ? "bg-primary-500" : "bg-secondary-200 dark:bg-secondary-700"]])
94
94
  }, null, 2),
95
95
  r("div", q, [
96
96
  u(A, {
97
97
  icon: C(e),
98
98
  size: "sm",
99
- class: s([o(n).icon, {
99
+ class: s([o(l).icon, {
100
100
  "text-primary-500": e.status === "complete" || e.status === "incomplete",
101
101
  "text-error-500": e.status === "error"
102
102
  }])
@@ -116,7 +116,7 @@ const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" },
116
116
  }, 8, ["class"])
117
117
  ], 6),
118
118
  r("div", {
119
- class: s(o(n).content)
119
+ class: s(o(l).content)
120
120
  }, [
121
121
  P(t.$slots, "default")
122
122
  ], 2)
@@ -1,13 +1,13 @@
1
- import { defineComponent as R, computed as s, ref as v, inject as j, reactive as D, onMounted as L, openBlock as d, createBlock as m, resolveDynamicComponent as V, normalizeStyle as E, unref as o, normalizeClass as c, withCtx as M, renderSlot as x, createElementVNode as f, createCommentVNode as k, toDisplayString as O, Teleport as P } from "vue";
2
- import { useMutationObserver as X } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
3
- import { injectTabGroupKey as F } from "../../composables/keys.js";
4
- import { useCommon as C } from "../../composables/useCommon.js";
5
- import { useTheme as G } from "../../composables/useTheme.js";
6
- import z from "../icon/Icon.vue.js";
7
- import I from "../link/Link.vue.js";
8
- import { closeIcon as K } from "../../common/icons.js";
9
- const q = {
10
- ...C.props(),
1
+ import { defineComponent as R, computed as s, ref as d, inject as j, reactive as D, onMounted as E, openBlock as c, createBlock as m, resolveDynamicComponent as L, normalizeStyle as V, unref as o, normalizeClass as v, withCtx as M, renderSlot as g, createElementVNode as z, createCommentVNode as p, toDisplayString as O, Teleport as P, createElementBlock as X } from "vue";
2
+ import { useMutationObserver as F } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
3
+ import { injectTabGroupKey as G } from "../../composables/keys.js";
4
+ import { useCommon as x } from "../../composables/useCommon.js";
5
+ import { useTheme as I } from "../../composables/useTheme.js";
6
+ import C from "../icon/Icon.vue.js";
7
+ import K from "../link/Link.vue.js";
8
+ import { closeIcon as q } from "../../common/icons.js";
9
+ const A = {
10
+ ...x.props(),
11
11
  value: {
12
12
  type: [String, Number]
13
13
  },
@@ -21,21 +21,21 @@ const q = {
21
21
  disabled: Boolean,
22
22
  exact: Boolean,
23
23
  removable: Boolean
24
- }, A = {
24
+ }, H = {
25
25
  name: "XTab",
26
26
  validators: {
27
- ...C.validators()
27
+ ...x.validators()
28
28
  }
29
- }, ee = /* @__PURE__ */ R({
30
- ...A,
31
- props: q,
29
+ }, te = /* @__PURE__ */ R({
30
+ ...H,
31
+ props: A,
32
32
  emits: ["remove"],
33
33
  setup(T) {
34
34
  const t = T, i = s(() => {
35
35
  var e, u;
36
36
  return ((u = (e = l.value) == null ? void 0 : e.$el) == null ? void 0 : u.href) || t.value;
37
- }), S = s(() => t.label || t.value), p = v(null), l = v(null), a = j(F, {
38
- tabsContentRef: v(null),
37
+ }), S = s(() => t.label || t.value), b = d(null), l = d(null), a = j(G, {
38
+ tabsContentRef: d(null),
39
39
  activateTab: () => {
40
40
  },
41
41
  state: D({
@@ -47,43 +47,43 @@ const q = {
47
47
  size: "md",
48
48
  color: "primary"
49
49
  })
50
- }), g = s(() => a.state.exact || t.exact), b = s(() => t.size || a.state.size);
51
- L(() => {
52
- p.value = a.tabsContentRef.value, t.to && l.value && (y(), X(l.value.$el, y, {
50
+ }), k = s(() => a.state.exact || t.exact), f = s(() => t.size || a.state.size);
51
+ E(() => {
52
+ b.value = a.tabsContentRef.value, t.to && l.value && (y(), F(l.value.$el, y, {
53
53
  attributes: !0,
54
54
  attributeFilter: ["class"]
55
55
  }));
56
56
  });
57
57
  function y() {
58
- l.value && l.value.$el && t.to && l.value.$el.classList.contains(g.value ? "router-link-exact-active" : "router-link-active") && a.activateTab(i.value);
58
+ l.value && l.value.$el && t.to && l.value.$el.classList.contains(k.value ? "router-link-exact-active" : "router-link-active") && a.activateTab(i.value);
59
59
  }
60
- const r = s(() => a.state.active === i.value), h = s(() => a.state.color);
61
- function $(e) {
60
+ const r = s(() => a.state.active === i.value), $ = s(() => a.state.color);
61
+ function h(e) {
62
62
  if (t.disabled) {
63
63
  e.preventDefault(), e.stopPropagation();
64
64
  return;
65
65
  }
66
66
  !t.to && typeof i.value < "u" && a.activateTab(i.value);
67
67
  }
68
- const { styles: w, classes: n, className: B } = G("Tab", {}, v({
68
+ const { styles: w, classes: n, className: B } = I("Tab", {}, d({
69
69
  ...t,
70
- size: b.value,
71
- exact: g.value
70
+ size: f.value,
71
+ exact: k.value
72
72
  }), {
73
73
  ...a.state,
74
74
  selected: r
75
75
  });
76
- return (e, u) => (d(), m(V(e.to ? I : e.tag), {
76
+ return (e, u) => (c(), m(L(e.to ? K : e.tag), {
77
77
  ref_key: "elRef",
78
78
  ref: l,
79
79
  "data-value": i.value,
80
80
  to: e.to,
81
- color: r.value ? h.value : void 0,
82
- style: E([
81
+ color: r.value ? $.value : void 0,
82
+ style: V([
83
83
  o(w),
84
84
  e.to && r.value && o(a).state.variant === "block" ? "--x-link-text: var(--x-tab-group-text); --x-link-text-hover: var(--x-tab-group-text);" : ""
85
85
  ]),
86
- class: c([
86
+ class: v([
87
87
  o(B),
88
88
  o(n).wrapper,
89
89
  "shrink-0",
@@ -92,57 +92,58 @@ const q = {
92
92
  "text-[color:var(--x-tab-group-text)] dark:text-[color:var(--x-tab-group-dark-text)]": r.value,
93
93
  "cursor-pointer": !e.disabled,
94
94
  "cursor-not-allowed": e.disabled,
95
- "cursor-not-allowed text-gray-500": e.disabled && !r.value
95
+ "cursor-not-allowed text-secondary-500": e.disabled && !r.value
96
96
  }
97
97
  ]),
98
98
  "aria-disabled": e.disabled ? "true" : void 0,
99
99
  "aria-selected": r.value ? "true" : "false",
100
- onClick: $
100
+ onClick: h
101
101
  }, {
102
102
  default: M(() => [
103
- x(e.$slots, "tab", {
103
+ g(e.$slots, "tab", {
104
104
  label: e.label,
105
105
  value: e.value,
106
- size: b.value,
106
+ size: f.value,
107
107
  icon: e.icon
108
108
  }, () => [
109
- f("div", {
110
- class: c(o(n).content)
109
+ z("div", {
110
+ class: v(o(n).content)
111
111
  }, [
112
- e.icon ? (d(), m(z, {
112
+ e.icon ? (c(), m(C, {
113
113
  key: 0,
114
114
  icon: e.icon,
115
- size: b.value,
116
- class: c(o(n).icon)
117
- }, null, 8, ["icon", "size", "class"])) : k("", !0),
118
- f("div", {
119
- class: c(o(n).label)
115
+ size: f.value,
116
+ class: v(o(n).icon)
117
+ }, null, 8, ["icon", "size", "class"])) : p("", !0),
118
+ z("div", {
119
+ class: v(o(n).label)
120
120
  }, O(S.value), 3),
121
- e.removable ? (d(), m(z, {
121
+ e.removable ? (c(), m(C, {
122
122
  key: 1,
123
123
  size: "sm",
124
- icon: o(K),
125
- class: "ml-2 cursor-pointer hover:text-gray-700 dark:hover:text-gray-500 transition-colors duration-150",
124
+ icon: o(q),
125
+ class: "ml-2 cursor-pointer hover:text-secondary-700 dark:hover:text-secondary-500 transition-colors duration-150",
126
126
  onClick: u[0] || (u[0] = (N) => e.$emit("remove", N))
127
- }, null, 8, ["icon"])) : k("", !0)
127
+ }, null, 8, ["icon"])) : p("", !0)
128
128
  ], 2)
129
129
  ]),
130
- r.value && p.value ? (d(), m(P, {
130
+ r.value && b.value ? (c(), m(P, {
131
131
  key: 0,
132
- to: p.value
132
+ to: b.value
133
133
  }, [
134
- f("div", {
134
+ e.$slots.default ? (c(), X("div", {
135
+ key: 0,
135
136
  role: "tabpanel",
136
- class: c(o(n).tabpanel)
137
+ class: v(o(n).tabpanel)
137
138
  }, [
138
- x(e.$slots, "default")
139
- ], 2)
140
- ], 8, ["to"])) : k("", !0)
139
+ g(e.$slots, "default")
140
+ ], 2)) : p("", !0)
141
+ ], 8, ["to"])) : p("", !0)
141
142
  ]),
142
143
  _: 3
143
144
  }, 8, ["data-value", "to", "color", "style", "class", "aria-disabled", "aria-selected"]));
144
145
  }
145
146
  });
146
147
  export {
147
- ee as default
148
+ te as default
148
149
  };
@@ -1,31 +1,31 @@
1
- const l = {
1
+ const o = {
2
2
  classes: {
3
3
  wrapper: "",
4
4
  scroller: ({ props: t }) => {
5
- const a = [""];
6
- return t.fullWidth || a.push("!w-fit"), t.variant === "block" && a.push("rounded-md"), t.variant === "block" && !t.ghost && a.push("bg-slate-100 dark:bg-gray-800 p-1"), a;
5
+ const r = [""];
6
+ return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push("rounded-md"), t.variant === "block" && !t.ghost && r.push("bg-secondary-100 dark:bg-secondary-800 p-1"), r;
7
7
  },
8
8
  list: ({ props: t }) => {
9
- const a = ["flex min-w-full w-fit"];
10
- return t.variant === "line" && a.push("border-b border-gray-200 dark:border-gray-700"), t.variant === "line" && !t.grow && a.push("space-x-8"), t.variant === "block" && a.push("z-[1]"), t.align === "center" && a.push("justify-center"), t.align === "right" && a.push("justify-end"), a;
9
+ const r = ["flex min-w-full w-fit"];
10
+ return t.variant === "line" && r.push("border-b border-secondary-200 dark:border-secondary-700"), t.variant === "line" && !t.grow && r.push("space-x-8"), t.variant === "block" && r.push("z-[1]"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
11
11
  },
12
12
  tracker: ({ props: t }) => {
13
- const a = ["absolute transition-all duration-150"];
14
- return t.variant === "line" && a.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && a.push("rounded-md h-full top-0 bg-[color:var(--x-tab-group-bg)] dark:bg-[color:var(--x-tab-group-dark-bg)]"), a;
13
+ const r = ["absolute transition-all duration-150"];
14
+ return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("rounded-md h-full top-0 bg-[color:var(--x-tab-group-bg)] dark:bg-[color:var(--x-tab-group-dark-bg)]"), r;
15
15
  }
16
16
  },
17
- styles: ({ props: t, colors: a, css: e }) => {
18
- const i = a.getPalette("gray"), r = a.getPalette(t.color);
17
+ styles: ({ props: t, colors: r, css: e }) => {
18
+ const n = r.getPalette("secondary"), a = r.getPalette(t.color);
19
19
  return e.variables({
20
- text: r[600],
21
- bg: t.ghost ? r[50] : "#fff",
20
+ text: a[600],
21
+ bg: t.ghost ? a[50] : "#fff",
22
22
  dark: {
23
- text: r[400],
24
- bg: t.ghost ? r[900] : i[700]
23
+ text: a[400],
24
+ bg: t.ghost ? a[900] : n[700]
25
25
  }
26
26
  });
27
27
  }
28
- }, n = l;
28
+ }, i = o;
29
29
  export {
30
- n as default
30
+ i as default
31
31
  };
@@ -1,31 +1,31 @@
1
- const l = {
1
+ const n = {
2
2
  classes: {
3
3
  wrapper: "",
4
4
  scroller: ({ props: t }) => {
5
5
  const r = [""];
6
- return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push(""), t.variant === "block" && !t.ghost && r.push("bg-gray-200 dark:bg-gray-800"), r;
6
+ return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push(""), t.variant === "block" && !t.ghost && r.push("bg-secondary-200 dark:bg-secondary-800"), r;
7
7
  },
8
8
  list: ({ props: t }) => {
9
9
  const r = ["flex min-w-full w-fit"];
10
- return t.variant === "line" && r.push("border-b border-gray-200 dark:border-gray-700"), t.variant === "line" && !t.grow && r.push(""), t.variant === "block" && r.push("z-[1] py-1.5"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
10
+ return t.variant === "line" && r.push("border-b border-secondary-200 dark:border-secondary-700"), t.variant === "line" && !t.grow && r.push(""), t.variant === "block" && r.push("z-[1] py-1.5"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
11
11
  },
12
12
  tracker: ({ props: t }) => {
13
13
  const r = ["absolute transition-all duration-150"];
14
- return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-gray-100 dark:bg-gray-700"), r;
14
+ return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-secondary-100 dark:bg-secondary-700"), r;
15
15
  }
16
16
  },
17
17
  styles: ({ props: t, colors: r, css: e }) => {
18
- const i = r.getPalette("gray"), a = r.getPalette(t.color);
18
+ const o = r.getPalette("gray"), a = r.getPalette(t.color);
19
19
  return e.variables({
20
20
  text: a[600],
21
21
  bg: t.ghost ? a[50] : "#fff",
22
22
  dark: {
23
23
  text: a[400],
24
- bg: t.ghost ? a[900] : i[700]
24
+ bg: t.ghost ? a[900] : o[700]
25
25
  }
26
26
  });
27
27
  }
28
- }, o = l;
28
+ }, i = n;
29
29
  export {
30
- o as default
30
+ i as default
31
31
  };