@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,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
  };