@konstructio/ui 0.0.12-alpha.9 → 0.0.13-alpha.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 (144) hide show
  1. package/dist/{Modal-B-E9uaA6.js → Modal-i7eolhYH.js} +311 -307
  2. package/dist/components/Alert/Alert.js +24 -29
  3. package/dist/components/Alert/Alert.variants.js +9 -15
  4. package/dist/components/AlertDialog/AlertDialog.js +59 -46
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -2
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Autocomplete/Autocomplete.js +76 -72
  8. package/dist/components/Autocomplete/Autocomplete.variants.js +11 -20
  9. package/dist/components/Autocomplete/components/List/List.js +28 -30
  10. package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
  11. package/dist/components/Breadcrumb/Breadcrumb.js +47 -56
  12. package/dist/components/Breadcrumb/Breadcrumb.variants.js +6 -26
  13. package/dist/components/Breadcrumb/components/Item/Item.js +29 -41
  14. package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -20
  15. package/dist/components/Button/Button.js +33 -37
  16. package/dist/components/Button/Button.variants.js +138 -195
  17. package/dist/components/Card/Card.js +32 -37
  18. package/dist/components/Card/Card.variants.js +18 -53
  19. package/dist/components/Checkbox/Checkbox.js +65 -68
  20. package/dist/components/Checkbox/Checkbox.variants.js +11 -35
  21. package/dist/components/Command/Command.js +33 -25
  22. package/dist/components/Command/Command.variants.js +47 -94
  23. package/dist/components/Command/components/Command.js +1 -1
  24. package/dist/components/Command/components/CommandEmpty.js +1 -1
  25. package/dist/components/Command/components/CommandGroup.js +1 -1
  26. package/dist/components/Command/components/CommandInput.js +1 -1
  27. package/dist/components/Command/components/CommandItem.js +1 -1
  28. package/dist/components/Command/components/CommandList.js +1 -1
  29. package/dist/components/Command/components/CommandSeparator.js +1 -1
  30. package/dist/components/Command/components/DialogContent.js +1 -1
  31. package/dist/components/Command/components/DialogOverlay.js +8 -8
  32. package/dist/components/Divider/Divider.js +3 -2
  33. package/dist/components/Divider/Divider.variants.js +12 -9
  34. package/dist/components/Dropdown/Dropdown.js +6 -6
  35. package/dist/components/Dropdown/Dropdown.variants.js +31 -38
  36. package/dist/components/Dropdown/components/List/List.js +17 -15
  37. package/dist/components/Dropdown/components/List/List.variants.js +22 -32
  38. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -19
  39. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -30
  40. package/dist/components/Dropdown/components/Wrapper.js +127 -90
  41. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  42. package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
  43. package/dist/components/Input/Input.js +37 -37
  44. package/dist/components/Input/Input.variants.js +8 -13
  45. package/dist/components/Loading/Loading.js +60 -58
  46. package/dist/components/Loading/Loading.variants.js +9 -15
  47. package/dist/components/Modal/Modal.js +2 -2
  48. package/dist/components/Modal/components/Body/Body.js +1 -1
  49. package/dist/components/Modal/components/Footer/Footer.js +2 -2
  50. package/dist/components/Modal/components/Header/Header.js +3 -3
  51. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
  52. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
  53. package/dist/components/Modal/components/index.js +1 -1
  54. package/dist/components/NumberInput/NumberInput.js +93 -111
  55. package/dist/components/NumberInput/NumberInput.variants.js +30 -51
  56. package/dist/components/ProgressBar/ProgressBar.js +25 -29
  57. package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
  58. package/dist/components/Radio/Radio.js +45 -46
  59. package/dist/components/Radio/Radio.variants.js +4 -13
  60. package/dist/components/RadioCard/RadioCard.js +31 -37
  61. package/dist/components/RadioCard/RadioCard.variants.js +8 -17
  62. package/dist/components/RadioCardGroup/RadioCardGroup.js +22 -23
  63. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +3 -9
  64. package/dist/components/RadioGroup/RadioGroup.js +30 -31
  65. package/dist/components/RadioGroup/RadioGroup.variants.js +2 -8
  66. package/dist/components/Range/Range.js +28 -34
  67. package/dist/components/Range/Range.variants.js +21 -53
  68. package/dist/components/Sidebar/Sidebar.js +12 -13
  69. package/dist/components/Sidebar/Sidebar.variants.js +30 -56
  70. package/dist/components/Sidebar/components/Footer/Footer.js +5 -17
  71. package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
  72. package/dist/components/Sidebar/components/Logo/Logo.js +5 -15
  73. package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -36
  74. package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -28
  75. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
  76. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +21 -34
  77. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -13
  78. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -27
  79. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +7 -17
  80. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -19
  81. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
  82. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +8 -21
  83. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
  84. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -44
  85. package/dist/components/Slider/Slider.js +26 -27
  86. package/dist/components/Slider/Slider.variants.js +22 -34
  87. package/dist/components/Switch/Switch.js +103 -106
  88. package/dist/components/Switch/Switch.variants.js +28 -53
  89. package/dist/components/Table/Table.js +27 -0
  90. package/dist/components/Table/Table.variants.js +40 -0
  91. package/dist/components/Table/components/Body.js +18 -0
  92. package/dist/components/Table/components/Filter.js +9 -0
  93. package/dist/components/Table/components/Head.js +18 -0
  94. package/dist/components/Table/components/Row.js +28 -0
  95. package/dist/components/Table/components/index.js +10 -0
  96. package/dist/components/Tag/Tag.js +1 -1
  97. package/dist/components/TagSelect/TagSelect.variants.js +23 -55
  98. package/dist/components/TagSelect/components/Item/Item.js +12 -14
  99. package/dist/components/TagSelect/components/Item/Item.variants.js +11 -10
  100. package/dist/components/TagSelect/components/List/List.js +9 -10
  101. package/dist/components/TagSelect/components/List/List.variants.js +21 -35
  102. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +46 -48
  103. package/dist/components/TextArea/TextArea.js +20 -23
  104. package/dist/components/TextArea/TextArea.variants.js +19 -31
  105. package/dist/components/Toast/Toast.js +110 -116
  106. package/dist/components/Toast/Toast.variants.js +42 -70
  107. package/dist/components/Tooltip/Tooltip.js +21 -27
  108. package/dist/components/Tooltip/Tooltip.variants.js +61 -62
  109. package/dist/components/Typography/Typography.js +23 -19
  110. package/dist/components/Typography/Typography.variants.js +1 -7
  111. package/dist/components/index.js +22 -20
  112. package/dist/contexts/theme.provider.js +37 -39
  113. package/dist/domain/theme.js +0 -0
  114. package/dist/index-AM3avohj.js +133 -0
  115. package/dist/{index-BzaHYXkt.js → index-BOx5P4tS.js} +5 -5
  116. package/dist/index-Bk324h27.js +82 -0
  117. package/dist/{index-4ecjw_Aj.js → index-Bry5AFQ2.js} +1 -1
  118. package/dist/{index-CbTU3cnP.js → index-CWKdynYu.js} +1 -1
  119. package/dist/index-D9BbbgUq.js +47 -0
  120. package/dist/{index-DyKo5ZJT.js → index-DvFiic6N.js} +45 -45
  121. package/dist/{index-Dj1pom3_.js → index-G_6jG4Qc.js} +2 -2
  122. package/dist/{index-D_76wh4w.js → index-YaQrdkGE.js} +3 -3
  123. package/dist/{index-Cva-e5M4.js → index-bYyfdsls.js} +9 -9
  124. package/dist/index-dRxIWVBr.js +313 -0
  125. package/dist/{index-D7QNmo_D.js → index-g-TFwd6Y.js} +41 -41
  126. package/dist/index.d.ts +115 -98
  127. package/dist/index.js +30 -30
  128. package/dist/package.json +37 -36
  129. package/dist/styles.css +1 -1
  130. package/dist/ui/kubefirst-theme.css +296 -0
  131. package/dist/ui/theme.css +6 -0
  132. package/dist/ui/utilities.css +165 -0
  133. package/dist/utils/index.js +675 -424
  134. package/package.json +37 -36
  135. package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
  136. package/dist/index-B_6_jmOO.js +0 -68
  137. package/dist/index-BbsJ0VIJ.js +0 -47
  138. package/dist/index-CzSBQN5S.js +0 -432
  139. package/dist/index-DUA6Y_AE.js +0 -126
  140. package/dist/plugins/index.js +0 -4
  141. package/dist/plugins/konstruct.js +0 -118
  142. package/dist/plugins/utils/animation.styles.js +0 -162
  143. package/dist/plugins/utils/colors.js +0 -331
  144. package/dist/plugins/utils/index.js +0 -7
@@ -1,81 +1,75 @@
1
1
  import { c as t } from "../../../../index-BNmRGtA6.js";
2
- const a = t(["max-h-[250px]", "overflow-y-auto"], {
2
+ const e = t(["max-h-[250px]", "overflow-y-auto"], {
3
3
  variants: {
4
4
  variant: {
5
5
  default: "bg-white"
6
- },
7
- theme: {
8
- kubefirst: "",
9
- colony: "",
10
- civo: ""
11
6
  }
12
7
  },
13
8
  defaultVariants: {
14
- variant: "default",
15
- theme: "kubefirst"
9
+ variant: "default"
16
10
  }
17
11
  }), r = t(
18
- ["p-1", "text-center", "w-full block", "bg-white"],
12
+ ["p-1", "text-center", "w-full", "block", "bg-white"],
19
13
  {
20
14
  variants: {
21
15
  variant: {
22
16
  default: ""
23
- },
24
- theme: {
25
- kubefirst: "",
26
- colony: "",
27
- civo: ""
28
17
  }
29
18
  },
30
19
  defaultVariants: {
31
- variant: "default",
32
- theme: "kubefirst"
20
+ variant: "default"
33
21
  }
34
22
  }
35
- ), i = t(["focus-visible:outline-none"], {
36
- variants: {
37
- variant: {
38
- default: ""
23
+ ), o = t(
24
+ [
25
+ "focus-visible:outline-none",
26
+ "focus:bg-purple-100",
27
+ "hover:bg-purple-100",
28
+ "border-transparent",
29
+ "colony:focus:bg-red-100",
30
+ "colony:hover:bg-red-100",
31
+ "civo:focus:bg-blue-100",
32
+ "civo:hover:bg-blue-100"
33
+ ],
34
+ {
35
+ variants: {
36
+ variant: {
37
+ default: ""
38
+ }
39
39
  },
40
- theme: {
41
- kubefirst: ["focus:bg-purple-100", "hover:bg-purple-100"],
42
- colony: ["focus:bg-red-100", "hover:bg-red-100"],
43
- civo: ""
40
+ defaultVariants: {
41
+ variant: "default"
44
42
  }
45
- },
46
- defaultVariants: {
47
- variant: "default",
48
- theme: "kubefirst"
49
43
  }
50
- }), o = t(
44
+ ), n = t(
51
45
  [
52
46
  "cursor-pointer",
53
47
  "focus-visible:outline-none",
54
48
  "px-3",
55
49
  "py-1.5",
56
50
  "w-full",
57
- "text-left"
51
+ "text-left",
52
+ "focus:bg-purple-100",
53
+ "hover:bg-purple-100",
54
+ "colony:focus:bg-red-100",
55
+ "colony:hover:bg-red-100",
56
+ "civo:focus:bg-blue-100",
57
+ "civo:hover:bg-blue-100"
58
58
  ],
59
59
  {
60
60
  variants: {
61
61
  variant: {
62
62
  default: ""
63
- },
64
- theme: {
65
- kubefirst: ["focus:bg-purple-100", "hover:bg-purple-100"],
66
- colony: ["focus:bg-red-100", "hover:bg-red-100"],
67
- civo: ""
68
63
  }
69
64
  },
70
65
  defaultVariants: {
71
- variant: "default",
72
- theme: "kubefirst"
66
+ variant: "default"
73
67
  }
74
68
  }
75
69
  );
76
70
  export {
77
- o as buttonVariants,
71
+ n as buttonVariants,
78
72
  r as emptyListVariants,
79
- i as listItemVariants,
80
- a as listVariants
73
+ o as listItemVariants,
74
+ e as listVariants
81
75
  };
@@ -1,40 +1,39 @@
1
- import { jsx as a, jsxs as y } from "react/jsx-runtime";
2
- import d, { forwardRef as O, useId as j, Fragment as w } from "react";
1
+ import { jsx as a, jsxs as v } from "react/jsx-runtime";
2
+ import h, { forwardRef as b, useId as y, Fragment as O } from "react";
3
3
  import { cn as c } from "../../utils/index.js";
4
- import { chevronVariants as x, breadcrumbVariants as P, breadcrumbWrapperVariants as T } from "./Breadcrumb.variants.js";
5
- import { Item as k } from "./components/Item/Item.js";
6
- import { P as s } from "../../index-C5psggHV.js";
7
- import { useTheme as N } from "../../contexts/theme.hook.js";
8
- function h() {
9
- return h = Object.assign || function(e) {
4
+ import { chevronVariants as j, breadcrumbVariants as w, breadcrumbWrapperVariants as P } from "./Breadcrumb.variants.js";
5
+ import { Item as x } from "./components/Item/Item.js";
6
+ import { P as l } from "../../index-C5psggHV.js";
7
+ function m() {
8
+ return m = Object.assign || function(r) {
10
9
  for (var n = 1; n < arguments.length; n++) {
11
- var r = arguments[n];
12
- for (var t in r)
13
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
10
+ var e = arguments[n];
11
+ for (var t in e)
12
+ Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
14
13
  }
15
- return e;
16
- }, h.apply(this, arguments);
14
+ return r;
15
+ }, m.apply(this, arguments);
17
16
  }
18
- function _(e, n) {
19
- if (e == null) return {};
20
- var r = L(e, n), t, o;
17
+ function k(r, n) {
18
+ if (r == null) return {};
19
+ var e = N(r, n), t, o;
21
20
  if (Object.getOwnPropertySymbols) {
22
- var i = Object.getOwnPropertySymbols(e);
21
+ var i = Object.getOwnPropertySymbols(r);
23
22
  for (o = 0; o < i.length; o++)
24
- t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
23
+ t = i[o], !(n.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(r, t) && (e[t] = r[t]);
25
24
  }
26
- return r;
25
+ return e;
27
26
  }
28
- function L(e, n) {
29
- if (e == null) return {};
30
- var r = {}, t = Object.keys(e), o, i;
27
+ function N(r, n) {
28
+ if (r == null) return {};
29
+ var e = {}, t = Object.keys(r), o, i;
31
30
  for (i = 0; i < t.length; i++)
32
- o = t[i], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
33
- return r;
31
+ o = t[i], !(n.indexOf(o) >= 0) && (e[o] = r[o]);
32
+ return e;
34
33
  }
35
- var p = O(function(e, n) {
36
- var r = e.color, t = r === void 0 ? "currentColor" : r, o = e.size, i = o === void 0 ? 24 : o, l = _(e, ["color", "size"]);
37
- return /* @__PURE__ */ d.createElement("svg", h({
34
+ var p = b(function(r, n) {
35
+ var e = r.color, t = e === void 0 ? "currentColor" : e, o = r.size, i = o === void 0 ? 24 : o, s = k(r, ["color", "size"]);
36
+ return /* @__PURE__ */ h.createElement("svg", m({
38
37
  ref: n,
39
38
  xmlns: "http://www.w3.org/2000/svg",
40
39
  width: i,
@@ -45,65 +44,57 @@ var p = O(function(e, n) {
45
44
  strokeWidth: "2",
46
45
  strokeLinecap: "round",
47
46
  strokeLinejoin: "round"
48
- }, l), /* @__PURE__ */ d.createElement("polyline", {
47
+ }, s), /* @__PURE__ */ h.createElement("polyline", {
49
48
  points: "9 18 15 12 9 6"
50
49
  }));
51
50
  });
52
51
  p.propTypes = {
53
- color: s.string,
54
- size: s.oneOfType([s.string, s.number])
52
+ color: l.string,
53
+ size: l.oneOfType([l.string, l.number])
55
54
  };
56
55
  p.displayName = "ChevronRight";
57
- const V = ({
58
- className: e,
56
+ const C = ({
57
+ className: r,
59
58
  size: n,
60
- steps: r,
59
+ steps: e,
61
60
  theme: t,
62
61
  "aria-label": o = "breadcrumb",
63
62
  wrapperClassName: i,
64
- ...l
63
+ ...s
65
64
  }) => {
66
- const g = j(), { theme: v } = N(), m = t ?? v;
65
+ const d = y();
67
66
  return /* @__PURE__ */ a(
68
67
  "nav",
69
68
  {
70
69
  "aria-label": o,
70
+ "data-theme": t,
71
71
  className: c(
72
- T({
73
- className: i,
74
- theme: m
72
+ P({
73
+ className: i
75
74
  })
76
75
  ),
77
76
  children: /* @__PURE__ */ a(
78
77
  "ol",
79
78
  {
80
- className: c(
81
- P({ theme: m, className: e, size: n })
82
- ),
83
- ...l,
84
- children: r.map(({ label: f, ...b }, u) => /* @__PURE__ */ y(w, { children: [
79
+ className: c(w({ className: r, size: n })),
80
+ ...s,
81
+ children: e.map(({ label: f, ...g }, u) => /* @__PURE__ */ v(O, { children: [
85
82
  /* @__PURE__ */ a(
86
- k,
83
+ x,
87
84
  {
88
- ...b,
85
+ ...g,
89
86
  label: f,
90
- isLast: u === r.length - 1,
91
- size: n,
92
- theme: m
87
+ isLast: u === e.length - 1,
88
+ size: n
93
89
  }
94
90
  ),
95
- u !== r.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(
96
- p,
97
- {
98
- className: c(x({ size: n, theme: m }))
99
- }
100
- ) })
101
- ] }, `${g}-${f}`))
91
+ u !== e.length - 1 && /* @__PURE__ */ a("li", { "aria-hidden": "true", children: /* @__PURE__ */ a(p, { className: c(j({ size: n })) }) })
92
+ ] }, `${d}-${f}`))
102
93
  }
103
94
  )
104
95
  }
105
96
  );
106
97
  };
107
98
  export {
108
- V as Breadcrumb
99
+ C as Breadcrumb
109
100
  };
@@ -1,31 +1,18 @@
1
- import { c as e } from "../../index-BNmRGtA6.js";
2
- const a = e(
1
+ import { c as a } from "../../index-BNmRGtA6.js";
2
+ const e = a(
3
3
  ["text-slate-500", "cursor-pointer"],
4
4
  {
5
5
  variants: {
6
- theme: {
7
- kubefirst: "",
8
- colony: "",
9
- civo: ""
10
- },
11
6
  size: {
12
7
  sm: "",
13
8
  base: "",
14
9
  lg: "",
15
10
  xl: ""
16
11
  }
17
- },
18
- defaultVariants: {
19
- theme: "kubefirst"
20
12
  }
21
13
  }
22
- ), s = e(["flex", "gap-1", "items-center"], {
14
+ ), t = a(["flex", "gap-1", "items-center"], {
23
15
  variants: {
24
- theme: {
25
- kubefirst: "",
26
- colony: "",
27
- civo: ""
28
- },
29
16
  size: {
30
17
  sm: "",
31
18
  base: "",
@@ -34,16 +21,10 @@ const a = e(
34
21
  }
35
22
  },
36
23
  defaultVariants: {
37
- theme: "kubefirst",
38
24
  size: "base"
39
25
  }
40
- }), r = e("text-[#abadc6]", {
26
+ }), r = a("text-[#abadc6]", {
41
27
  variants: {
42
- theme: {
43
- kubefirst: "",
44
- colony: "",
45
- civo: ""
46
- },
47
28
  size: {
48
29
  sm: ["w-3", "h-3"],
49
30
  base: ["w-4", "h-4"],
@@ -52,12 +33,11 @@ const a = e(
52
33
  }
53
34
  },
54
35
  defaultVariants: {
55
- theme: "kubefirst",
56
36
  size: "base"
57
37
  }
58
38
  });
59
39
  export {
60
- s as breadcrumbVariants,
61
- a as breadcrumbWrapperVariants,
40
+ t as breadcrumbVariants,
41
+ e as breadcrumbWrapperVariants,
62
42
  r as chevronVariants
63
43
  };
@@ -1,61 +1,49 @@
1
- import { jsx as r, Fragment as p } from "react/jsx-runtime";
1
+ import { jsx as a, Fragment as f } from "react/jsx-runtime";
2
2
  import { cn as n } from "../../../../utils/index.js";
3
- import { u as b, L as k } from "../../../../useBreadcrumb-BsIeMoR1.js";
4
- import { breadcrumbLinkVariants as c, breadcrumbLabelVariants as L, breadcrumbItemVariants as N } from "./Item.variants.js";
5
- import { useTheme as x } from "../../../../contexts/theme.hook.js";
6
- const j = ({
7
- isActive: e,
8
- isLast: o,
3
+ import { u as b, L as h } from "../../../../useBreadcrumb-BsIeMoR1.js";
4
+ import { breadcrumbLinkVariants as c, breadcrumbLabelVariants as p, breadcrumbItemVariants as k } from "./Item.variants.js";
5
+ const V = ({
6
+ isActive: r,
7
+ isLast: d,
9
8
  label: s,
10
- size: d,
11
- target: t,
12
- theme: h,
13
- to: a
9
+ size: l,
10
+ target: m,
11
+ theme: t,
12
+ to: e
14
13
  }) => {
15
- const { theme: l } = x(), { isInsideRouter: u } = b(), m = h ?? l, i = (f) => {
16
- a === "#" && f.preventDefault();
14
+ const { isInsideRouter: o } = b(), i = (u) => {
15
+ e === "#" && u.preventDefault();
17
16
  };
18
- return /* @__PURE__ */ r(
17
+ return /* @__PURE__ */ a(
19
18
  "li",
20
19
  {
21
- "aria-current": o ? "page" : void 0,
22
- className: n(N({ theme: m, size: d })),
23
- children: a ? /* @__PURE__ */ r(p, { children: u ? /* @__PURE__ */ r(
24
- k,
20
+ "aria-current": d ? "page" : void 0,
21
+ className: n(k({ size: l })),
22
+ "data-theme": t,
23
+ children: e ? /* @__PURE__ */ a(f, { children: o ? /* @__PURE__ */ a(
24
+ h,
25
25
  {
26
- to: a,
27
- target: t,
28
- className: n(
29
- c({ theme: m, isActive: e })
30
- ),
31
- "aria-disabled": e ? "true" : "false",
26
+ to: e,
27
+ target: m,
28
+ className: n(c({ isActive: r })),
29
+ "aria-disabled": r ? "true" : "false",
32
30
  onClick: i,
33
31
  children: s
34
32
  }
35
- ) : /* @__PURE__ */ r(
33
+ ) : /* @__PURE__ */ a(
36
34
  "a",
37
35
  {
38
- href: a,
39
- target: t,
40
- className: n(
41
- c({ theme: m, isActive: e })
42
- ),
43
- "aria-disabled": e ? "true" : "false",
36
+ href: e,
37
+ target: m,
38
+ className: n(c({ isActive: r })),
39
+ "aria-disabled": r ? "true" : "false",
44
40
  onClick: i,
45
41
  children: s
46
42
  }
47
- ) }) : /* @__PURE__ */ r(
48
- "span",
49
- {
50
- className: n(
51
- L({ theme: m, isActive: e })
52
- ),
53
- children: s
54
- }
55
- )
43
+ ) }) : /* @__PURE__ */ a("span", { className: n(p({ isActive: r })), children: s })
56
44
  }
57
45
  );
58
46
  };
59
47
  export {
60
- j as Item
48
+ V as Item
61
49
  };
@@ -3,11 +3,6 @@ const i = t(
3
3
  ["group", "font-semibold", "text-inherit"],
4
4
  {
5
5
  variants: {
6
- theme: {
7
- kubefirst: "",
8
- colony: "",
9
- civo: ""
10
- },
11
6
  size: {
12
7
  sm: "text-xs",
13
8
  base: "text-sm",
@@ -16,24 +11,17 @@ const i = t(
16
11
  }
17
12
  },
18
13
  defaultVariants: {
19
- theme: "kubefirst",
20
14
  size: "base"
21
15
  }
22
16
  }
23
17
  ), o = t(["text-inherit"], {
24
18
  variants: {
25
- theme: {
26
- kubefirst: "",
27
- colony: "",
28
- civo: ""
29
- },
30
19
  isActive: {
31
20
  true: "",
32
21
  false: ["text-slate-400", "cursor-auto"]
33
22
  }
34
23
  },
35
24
  defaultVariants: {
36
- theme: "kubefirst",
37
25
  isActive: !0
38
26
  },
39
27
  compoundVariants: [
@@ -42,7 +30,7 @@ const i = t(
42
30
  class: [
43
31
  "group-focus-within:no-underline",
44
32
  "group-focus-within:outline",
45
- "group-focus-within:outline-8",
33
+ "group-focus-within:outline-2",
46
34
  "group-focus-within:outline-offset-4",
47
35
  "group-focus-within:outline-slate-500",
48
36
  "group-focus-within:rounded-sm",
@@ -56,7 +44,7 @@ const i = t(
56
44
  class: [
57
45
  "group-focus-within:no-underline",
58
46
  "group-focus-within:outline",
59
- "group-focus-within:outline-8",
47
+ "group-focus-within:outline-2",
60
48
  "group-focus-within:outline-offset-4",
61
49
  "group-focus-within:outline-slate-500",
62
50
  "group-focus-within:rounded-sm",
@@ -68,18 +56,12 @@ const i = t(
68
56
  ]
69
57
  }), s = t(["text-inherit"], {
70
58
  variants: {
71
- theme: {
72
- kubefirst: "",
73
- colony: "",
74
- civo: ""
75
- },
76
59
  isActive: {
77
60
  true: "",
78
61
  false: ["text-slate-400"]
79
62
  }
80
63
  },
81
64
  defaultVariants: {
82
- theme: "kubefirst",
83
65
  isActive: !0
84
66
  }
85
67
  });
@@ -1,42 +1,38 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { S as u } from "../../index-B_6_jmOO.js";
4
- import { cn as l } from "../../utils/index.js";
5
- import { buttonVariants as x } from "./Button.variants.js";
6
- import { useTheme as T } from "../../contexts/theme.hook.js";
7
- const B = c(
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ import { S as u } from "../../index-Bk324h27.js";
4
+ import { cn as c } from "../../utils/index.js";
5
+ import { buttonVariants as l } from "./Button.variants.js";
6
+ const x = i(
8
7
  ({
9
- className: o,
10
- variant: e,
8
+ className: t,
9
+ variant: r,
11
10
  theme: m,
12
- size: r,
13
- version: n,
14
- disabled: t = !1,
15
- asChild: s = !1,
16
- ...i
17
- }, f) => {
18
- const a = s ? u : "button", { theme: p } = T();
19
- return /* @__PURE__ */ h(
20
- a,
21
- {
22
- ref: f,
23
- className: l(
24
- x({
25
- variant: e,
26
- disabled: t,
27
- theme: m ?? p,
28
- size: r,
29
- className: o,
30
- version: n
31
- })
32
- ),
33
- disabled: t,
34
- ...i
35
- }
36
- );
37
- }
11
+ size: a,
12
+ version: f,
13
+ disabled: o = !1,
14
+ asChild: n = !1,
15
+ ...p
16
+ }, s) => /* @__PURE__ */ e(
17
+ n ? u : "button",
18
+ {
19
+ ref: s,
20
+ "data-theme": m,
21
+ className: c(
22
+ l({
23
+ variant: r,
24
+ disabled: o,
25
+ size: a,
26
+ className: t,
27
+ version: f
28
+ })
29
+ ),
30
+ disabled: o,
31
+ ...p
32
+ }
33
+ )
38
34
  );
39
- B.displayName = "Button";
35
+ x.displayName = "Button";
40
36
  export {
41
- B as Button
37
+ x as Button
42
38
  };