@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,47 +1,46 @@
1
- import { jsxs as y, jsx as u } from "react/jsx-runtime";
2
- import { R as j } from "../../index-CbTU3cnP.js";
3
- import p, { forwardRef as d, useId as E, useState as T, useCallback as x } from "react";
4
- import { cn as h } from "../../utils/index.js";
5
- import { labelVariants as $, buttonVariants as P, numberInputVariants as L } from "./NumberInput.variants.js";
6
- import { P as a } from "../../index-C5psggHV.js";
7
- import { useTheme as W } from "../../contexts/theme.hook.js";
1
+ import { jsxs as m, jsx as u } from "react/jsx-runtime";
2
+ import { R as O } from "../../index-CWKdynYu.js";
3
+ import p, { forwardRef as d, useId as N, useCallback as w } from "react";
4
+ import { cn as y } from "../../utils/index.js";
5
+ import { labelVariants as z, buttonVariants as j, numberInputVariants as _ } from "./NumberInput.variants.js";
6
+ import { P as s } from "../../index-C5psggHV.js";
8
7
  function v() {
9
- return v = Object.assign || function(e) {
10
- for (var o = 1; o < arguments.length; o++) {
11
- var r = arguments[o];
12
- for (var t in r)
13
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
8
+ return v = Object.assign || function(t) {
9
+ for (var i = 1; i < arguments.length; i++) {
10
+ var r = arguments[i];
11
+ for (var e in r)
12
+ Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
14
13
  }
15
- return e;
14
+ return t;
16
15
  }, v.apply(this, arguments);
17
16
  }
18
- function V(e, o) {
19
- if (e == null) return {};
20
- var r = M(e, o), t, n;
17
+ function E(t, i) {
18
+ if (t == null) return {};
19
+ var r = $(t, i), e, n;
21
20
  if (Object.getOwnPropertySymbols) {
22
- var i = Object.getOwnPropertySymbols(e);
23
- for (n = 0; n < i.length; n++)
24
- t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
21
+ var o = Object.getOwnPropertySymbols(t);
22
+ for (n = 0; n < o.length; n++)
23
+ e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (r[e] = t[e]);
25
24
  }
26
25
  return r;
27
26
  }
28
- function M(e, o) {
29
- if (e == null) return {};
30
- var r = {}, t = Object.keys(e), n, i;
31
- for (i = 0; i < t.length; i++)
32
- n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
27
+ function $(t, i) {
28
+ if (t == null) return {};
29
+ var r = {}, e = Object.keys(t), n, o;
30
+ for (o = 0; o < e.length; o++)
31
+ n = e[o], !(i.indexOf(n) >= 0) && (r[n] = t[n]);
33
32
  return r;
34
33
  }
35
- var O = d(function(e, o) {
36
- var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, f = V(e, ["color", "size"]);
34
+ var h = d(function(t, i) {
35
+ var r = t.color, e = r === void 0 ? "currentColor" : r, n = t.size, o = n === void 0 ? 24 : n, f = E(t, ["color", "size"]);
37
36
  return /* @__PURE__ */ p.createElement("svg", v({
38
- ref: o,
37
+ ref: i,
39
38
  xmlns: "http://www.w3.org/2000/svg",
40
- width: i,
41
- height: i,
39
+ width: o,
40
+ height: o,
42
41
  viewBox: "0 0 24 24",
43
42
  fill: "none",
44
- stroke: t,
43
+ stroke: e,
45
44
  strokeWidth: "2",
46
45
  strokeLinecap: "round",
47
46
  strokeLinejoin: "round"
@@ -52,48 +51,48 @@ var O = d(function(e, o) {
52
51
  y2: "12"
53
52
  }));
54
53
  });
55
- O.propTypes = {
56
- color: a.string,
57
- size: a.oneOfType([a.string, a.number])
54
+ h.propTypes = {
55
+ color: s.string,
56
+ size: s.oneOfType([s.string, s.number])
58
57
  };
59
- O.displayName = "Minus";
58
+ h.displayName = "Minus";
60
59
  function b() {
61
- return b = Object.assign || function(e) {
62
- for (var o = 1; o < arguments.length; o++) {
63
- var r = arguments[o];
64
- for (var t in r)
65
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
60
+ return b = Object.assign || function(t) {
61
+ for (var i = 1; i < arguments.length; i++) {
62
+ var r = arguments[i];
63
+ for (var e in r)
64
+ Object.prototype.hasOwnProperty.call(r, e) && (t[e] = r[e]);
66
65
  }
67
- return e;
66
+ return t;
68
67
  }, b.apply(this, arguments);
69
68
  }
70
- function R(e, o) {
71
- if (e == null) return {};
72
- var r = S(e, o), t, n;
69
+ function L(t, i) {
70
+ if (t == null) return {};
71
+ var r = W(t, i), e, n;
73
72
  if (Object.getOwnPropertySymbols) {
74
- var i = Object.getOwnPropertySymbols(e);
75
- for (n = 0; n < i.length; n++)
76
- t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
73
+ var o = Object.getOwnPropertySymbols(t);
74
+ for (n = 0; n < o.length; n++)
75
+ e = o[n], !(i.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (r[e] = t[e]);
77
76
  }
78
77
  return r;
79
78
  }
80
- function S(e, o) {
81
- if (e == null) return {};
82
- var r = {}, t = Object.keys(e), n, i;
83
- for (i = 0; i < t.length; i++)
84
- n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
79
+ function W(t, i) {
80
+ if (t == null) return {};
81
+ var r = {}, e = Object.keys(t), n, o;
82
+ for (o = 0; o < e.length; o++)
83
+ n = e[o], !(i.indexOf(n) >= 0) && (r[n] = t[n]);
85
84
  return r;
86
85
  }
87
- var g = d(function(e, o) {
88
- var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, f = R(e, ["color", "size"]);
86
+ var g = d(function(t, i) {
87
+ var r = t.color, e = r === void 0 ? "currentColor" : r, n = t.size, o = n === void 0 ? 24 : n, f = L(t, ["color", "size"]);
89
88
  return /* @__PURE__ */ p.createElement("svg", b({
90
- ref: o,
89
+ ref: i,
91
90
  xmlns: "http://www.w3.org/2000/svg",
92
- width: i,
93
- height: i,
91
+ width: o,
92
+ height: o,
94
93
  viewBox: "0 0 24 24",
95
94
  fill: "none",
96
- stroke: t,
95
+ stroke: e,
97
96
  strokeWidth: "2",
98
97
  strokeLinecap: "round",
99
98
  strokeLinejoin: "round"
@@ -110,81 +109,64 @@ var g = d(function(e, o) {
110
109
  }));
111
110
  });
112
111
  g.propTypes = {
113
- color: a.string,
114
- size: a.oneOfType([a.string, a.number])
112
+ color: s.string,
113
+ size: s.oneOfType([s.string, s.number])
115
114
  };
116
115
  g.displayName = "Plus";
117
- const J = d(
116
+ const S = d(
118
117
  ({
119
- className: e,
120
- init: o,
121
- label: r,
122
- max: t = -1 / 0,
123
- min: n = 1 / 0,
124
- name: i,
125
- theme: f,
126
- onChange: s
127
- }, k) => {
128
- const { theme: I } = W(), m = f ?? I, N = E(), [c, w] = T(() => o || 0), z = x(() => {
129
- let l = 0;
130
- n === 1 / 0 ? l = c - 1 : l = Math.max(n, c - 1), w(l), s == null || s(l);
131
- }, [c, n, s]), _ = x(() => {
132
- let l = 0;
133
- t === -1 / 0 ? l = c + 1 : l = Math.min(t, c + 1), w(l), s == null || s(l);
134
- }, [c, t, s]);
135
- return /* @__PURE__ */ y("div", { className: "flex flex-col gap-1", children: [
136
- r ? /* @__PURE__ */ u(
137
- "label",
138
- {
139
- htmlFor: i ?? N,
140
- className: h(
141
- $({
142
- theme: m
143
- })
144
- ),
145
- children: r
146
- }
147
- ) : null,
148
- /* @__PURE__ */ y("div", { className: "flex items-center", role: "presentation", children: [
149
- /* @__PURE__ */ y(
118
+ className: t,
119
+ label: i,
120
+ max: r = -1 / 0,
121
+ min: e = 1 / 0,
122
+ name: n,
123
+ theme: o,
124
+ value: f,
125
+ onChange: l
126
+ }, x) => {
127
+ const P = N(), a = f ?? 0, k = w(() => {
128
+ let c = 0;
129
+ e === 1 / 0 ? c = a - 1 : c = Math.max(e, a - 1), l == null || l({ target: { value: c } });
130
+ }, [a, e, l]), I = w(() => {
131
+ let c = 0;
132
+ r === -1 / 0 ? c = a + 1 : c = Math.min(r, a + 1), l == null || l({ target: { value: c } });
133
+ }, [a, r, l]);
134
+ return /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", "data-theme": o, children: [
135
+ i ? /* @__PURE__ */ u("label", { htmlFor: n ?? P, className: y(z()), children: i }) : null,
136
+ /* @__PURE__ */ m("div", { className: "flex items-center", role: "presentation", children: [
137
+ /* @__PURE__ */ m(
150
138
  "button",
151
139
  {
152
140
  type: "button",
153
- onClick: z,
154
- className: h(
155
- P({ theme: m, button: "rigth" })
156
- ),
141
+ onClick: k,
142
+ className: y(j({ button: "rigth" })),
157
143
  children: [
158
- /* @__PURE__ */ u(O, { className: "w-4 h-4" }),
159
- /* @__PURE__ */ u(j, { children: "Decrement" })
144
+ /* @__PURE__ */ u(h, { className: "w-4 h-4" }),
145
+ /* @__PURE__ */ u(O, { children: "Decrement" })
160
146
  ]
161
147
  }
162
148
  ),
163
149
  /* @__PURE__ */ u(
164
150
  "input",
165
151
  {
166
- ref: k,
152
+ ref: x,
167
153
  type: "number",
168
- value: c,
169
- name: i,
170
- className: h(
171
- L({ className: e, theme: m })
172
- ),
154
+ value: a,
155
+ name: n,
156
+ className: y(_({ className: t })),
173
157
  readOnly: !0,
174
- "aria-label": r
158
+ "aria-label": typeof i == "string" ? i : "number input"
175
159
  }
176
160
  ),
177
- /* @__PURE__ */ y(
161
+ /* @__PURE__ */ m(
178
162
  "button",
179
163
  {
180
164
  type: "button",
181
- onClick: _,
182
- className: h(
183
- P({ theme: m, button: "left" })
184
- ),
165
+ onClick: I,
166
+ className: y(j({ button: "left" })),
185
167
  children: [
186
168
  /* @__PURE__ */ u(g, { className: "w-4 h-4" }),
187
- /* @__PURE__ */ u(j, { children: "Increment" })
169
+ /* @__PURE__ */ u(O, { children: "Increment" })
188
170
  ]
189
171
  }
190
172
  )
@@ -193,5 +175,5 @@ const J = d(
193
175
  }
194
176
  );
195
177
  export {
196
- J as NumberInput
178
+ S as NumberInput
197
179
  };
@@ -1,71 +1,50 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const t = e(
2
+ const r = e([
3
+ "[&::-webkit-inner-spin-button]:appearance-none",
4
+ "[&::-webkit-outer-spin-button]:appearance-none",
5
+ "[-moz-appearance:textfield]",
6
+ "appearance-none",
7
+ "border",
8
+ "border-x-0",
9
+ "focus-visible:outline-none",
10
+ "focus-visible:ring-transparent",
11
+ "h-9",
12
+ "max-w-16",
13
+ "text-right",
14
+ "px-3",
15
+ "border-gray-200"
16
+ ]), n = e(
3
17
  [
4
- "[&::-webkit-inner-spin-button]:appearance-none",
5
- "[&::-webkit-outer-spin-button]:appearance-none",
6
- "[-moz-appearance:textfield]",
7
- "appearance-none",
18
+ "h-9",
19
+ "w-9",
20
+ "flex",
21
+ "items-center",
22
+ "justify-center",
8
23
  "border",
9
- "border-x-0",
10
- "focus-visible:outline-none",
11
- "focus-visible:ring-transparent",
12
- "p-1",
13
- "text-center"
24
+ "text-slate-400",
25
+ "border-gray-200",
26
+ "cursor-pointer"
14
27
  ],
15
28
  {
16
29
  variants: {
17
- theme: {
18
- colony: ["border-red-700", "text-red-700"],
19
- kubefirst: ["border-kubefirst-primary", "text-kubefirst-primary"],
20
- civo: ""
21
- }
22
- },
23
- defaultVariants: {
24
- theme: "kubefirst"
25
- }
26
- }
27
- ), a = e(
28
- ["p-2", "items-center", "justify-center", "border"],
29
- {
30
- variants: {
31
- theme: {
32
- colony: ["border-red-700", "text-red-700", "hover:bg-red-50"],
33
- kubefirst: [
34
- "border-kubefirst-primary",
35
- "text-kubefirst-primary",
36
- "hover:text-kubefirst-secondary",
37
- "hover:border-kubefirst-secondary",
38
- "hover:bg-purple-100"
39
- ],
40
- civo: ""
41
- },
42
30
  button: {
43
- left: ["rounded-e-sm"],
44
- rigth: ["rounded-s-sm"]
31
+ left: ["rounded-e"],
32
+ rigth: ["rounded-s"]
45
33
  }
46
- },
47
- defaultVariants: {
48
- theme: "kubefirst"
49
34
  }
50
35
  }
51
- ), n = e(["pl-1", "text-base", "cursor-pointer"], {
36
+ ), a = e(["cursor-pointer"], {
52
37
  variants: {
53
38
  variant: {
54
39
  default: ""
55
- },
56
- theme: {
57
- kubefirst: "",
58
- colony: "",
59
- civo: ""
60
40
  }
61
41
  },
62
42
  defaultVariants: {
63
- variant: "default",
64
- theme: "kubefirst"
43
+ variant: "default"
65
44
  }
66
45
  });
67
46
  export {
68
- a as buttonVariants,
69
- n as labelVariants,
70
- t as numberInputVariants
47
+ n as buttonVariants,
48
+ a as labelVariants,
49
+ r as numberInputVariants
71
50
  };
@@ -1,34 +1,30 @@
1
- import { jsxs as r, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
2
  import { cn as o } from "../../utils/index.js";
3
3
  import { progressBarProgress as l, progressBarVariants as d } from "./ProgressBar.variants.js";
4
- import { useTheme as c } from "../../contexts/theme.hook.js";
5
- const p = ({
6
- label: e,
7
- theme: m,
4
+ const f = ({
5
+ label: r,
6
+ theme: e,
8
7
  percent: s,
9
- status: n
10
- }) => {
11
- const { theme: a } = c(), t = m ?? a;
12
- return /* @__PURE__ */ r("div", { className: "w-full", children: [
13
- /* @__PURE__ */ r("div", { className: o("flex", e ? "justify-between" : "justify-end"), children: [
14
- e ? /* @__PURE__ */ i("label", { className: "font-semibold", children: e }) : null,
15
- /* @__PURE__ */ r("span", { className: "font-semibold", children: [
16
- s,
17
- "%"
18
- ] })
19
- ] }),
20
- /* @__PURE__ */ i("div", { className: o(d({ theme: t })), children: /* @__PURE__ */ i(
21
- "div",
22
- {
23
- className: o(
24
- l({ theme: t, status: n }),
25
- s > 0 && s < 99 ? "transition-width duration-500" : "transition-colors duration-0"
26
- ),
27
- style: { width: `${s}%` }
28
- }
29
- ) })
30
- ] });
31
- };
8
+ status: t
9
+ }) => /* @__PURE__ */ i("div", { className: "w-full", "data-theme": e, children: [
10
+ /* @__PURE__ */ i("div", { className: o("flex", r ? "justify-between" : "justify-end"), children: [
11
+ r ? /* @__PURE__ */ a("label", { className: "font-semibold", children: r }) : null,
12
+ /* @__PURE__ */ i("span", { className: "font-semibold", children: [
13
+ s,
14
+ "%"
15
+ ] })
16
+ ] }),
17
+ /* @__PURE__ */ a("div", { className: o(d()), children: /* @__PURE__ */ a(
18
+ "div",
19
+ {
20
+ className: o(
21
+ l({ status: t }),
22
+ s > 0 && s < 99 ? "transition-width duration-500" : "transition-colors duration-0"
23
+ ),
24
+ style: { width: `${s}%` }
25
+ }
26
+ ) })
27
+ ] });
32
28
  export {
33
- p as ProgressBar
29
+ f as ProgressBar
34
30
  };
@@ -1,27 +1,14 @@
1
1
  import { c as s } from "../../index-BNmRGtA6.js";
2
- const t = s(
3
- ["h-2", "rounded-full", "overflow-hidden", "mt-4", "bg-zinc-200"],
4
- {
5
- variants: {
6
- theme: {
7
- kubefirst: "",
8
- colony: "",
9
- civo: ""
10
- }
11
- },
12
- defaultVariants: {
13
- theme: "kubefirst"
14
- }
15
- }
16
- ), r = s(
2
+ const a = s([
3
+ "h-2",
4
+ "rounded-full",
5
+ "overflow-hidden",
6
+ "mt-4",
7
+ "bg-zinc-200"
8
+ ]), t = s(
17
9
  ["h-full", "bg-[length:100%_100%]", "animate-gradient-move"],
18
10
  {
19
11
  variants: {
20
- theme: {
21
- kubefirst: "",
22
- colony: "",
23
- civo: ""
24
- },
25
12
  status: {
26
13
  success: "",
27
14
  progress: "",
@@ -31,27 +18,19 @@ const t = s(
31
18
  compoundVariants: [
32
19
  {
33
20
  status: "progress",
34
- theme: "kubefirst",
35
- class: ["bg-kubefirst-gradient"]
21
+ class: ["bg-linear-to-r from-[#81e2b4] to-kubefirst-primary"]
36
22
  },
37
23
  {
38
24
  status: "success",
39
- theme: "kubefirst",
40
25
  class: ["bg-[#81E2B4]"]
41
- },
42
- {
43
- status: "progress",
44
- theme: "colony",
45
- class: ["bg-kubefirst-gradient"]
46
26
  }
47
27
  ],
48
28
  defaultVariants: {
49
- theme: "kubefirst",
50
29
  status: "success"
51
30
  }
52
31
  }
53
32
  );
54
33
  export {
55
- r as progressBarProgress,
56
- t as progressBarVariants
34
+ t as progressBarProgress,
35
+ a as progressBarVariants
57
36
  };
@@ -1,72 +1,71 @@
1
- import { jsxs as T, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as V, useId as j, useCallback as w } from "react";
3
- import { cn as r } from "../../utils/index.js";
4
- import { radioVariants as F, labelRadioVariants as $, wrapperRadioVariants as y } from "./Radio.variants.js";
5
- import { useTheme as I } from "../../contexts/theme.hook.js";
6
- const D = V(
1
+ import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as x, useId as V, useCallback as h } from "react";
3
+ import { cn as e } from "../../utils/index.js";
4
+ import { radioVariants as j, labelRadioVariants as w, wrapperRadioVariants as F } from "./Radio.variants.js";
5
+ const z = x(
7
6
  ({
8
- checked: t = !1,
9
- className: c,
10
- defaultChecked: o,
11
- disabled: a,
12
- label: d,
7
+ checked: i = !1,
8
+ className: m,
9
+ defaultChecked: l,
10
+ disabled: s,
11
+ label: c,
13
12
  labelTextClassName: p,
14
- name: i,
15
- theme: n,
16
- value: m,
17
- wrapperClassName: f,
18
- onChange: s
19
- }, h) => {
20
- const N = j(), { theme: u } = I(), l = `${N}-${i}`, x = n ?? u, R = w(
13
+ name: t,
14
+ theme: f,
15
+ value: o,
16
+ wrapperClassName: n,
17
+ onChange: a
18
+ }, N) => {
19
+ const d = `${V()}-${t}`, R = h(
21
20
  (b) => {
22
- s == null || s(b);
21
+ a == null || a(b);
23
22
  },
24
- [s]
23
+ [a]
25
24
  );
26
- return /* @__PURE__ */ T(
25
+ return /* @__PURE__ */ u(
27
26
  "label",
28
27
  {
29
- htmlFor: l,
30
- className: r(
31
- y({
32
- className: f,
33
- disabled: a || !1
28
+ htmlFor: d,
29
+ className: e(
30
+ F({
31
+ className: n,
32
+ disabled: s || !1
34
33
  })
35
34
  ),
35
+ "data-theme": f,
36
36
  children: [
37
- /* @__PURE__ */ e(
37
+ /* @__PURE__ */ r(
38
38
  "input",
39
39
  {
40
- ref: h,
41
- id: l,
40
+ ref: N,
41
+ id: d,
42
42
  type: "radio",
43
- name: i,
44
- value: m,
45
- checked: t,
46
- defaultChecked: o,
43
+ name: t,
44
+ value: o,
45
+ checked: i,
46
+ defaultChecked: l,
47
47
  className: "hidden peer",
48
- onChange: () => R(m),
49
- disabled: a
48
+ onChange: () => R(o),
49
+ disabled: s
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ e(
52
+ /* @__PURE__ */ r(
53
53
  "span",
54
54
  {
55
- className: r(
56
- F({
57
- className: c,
58
- theme: x,
59
- disabled: a || !1,
60
- checked: t || o || !1
55
+ className: e(
56
+ j({
57
+ className: m,
58
+ disabled: s || !1,
59
+ checked: i || l || !1
61
60
  })
62
61
  )
63
62
  }
64
63
  ),
65
- /* @__PURE__ */ e(
64
+ /* @__PURE__ */ r(
66
65
  "span",
67
66
  {
68
- className: r($({ className: p })),
69
- children: d
67
+ className: e(w({ className: p })),
68
+ children: c
70
69
  }
71
70
  )
72
71
  ]
@@ -75,5 +74,5 @@ const D = V(
75
74
  }
76
75
  );
77
76
  export {
78
- D as Radio
77
+ z as Radio
79
78
  };