@konstructio/ui 0.0.12-alpha.2 → 0.0.12-alpha.20

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 (93) hide show
  1. package/dist/{Modal-DZUwNzSW.js → Modal-B-E9uaA6.js} +354 -346
  2. package/dist/components/Alert/Alert.js +1 -1
  3. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  4. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  5. package/dist/components/AlertDialog/components/index.js +1 -1
  6. package/dist/components/Autocomplete/Autocomplete.variants.js +0 -1
  7. package/dist/components/Breadcrumb/Breadcrumb.variants.js +18 -15
  8. package/dist/components/Checkbox/Checkbox.js +1 -1
  9. package/dist/components/Command/Command.js +32 -0
  10. package/dist/components/Command/Command.variants.js +97 -0
  11. package/dist/components/Command/components/Command.js +8 -0
  12. package/dist/components/Command/components/CommandEmpty.js +15 -0
  13. package/dist/components/Command/components/CommandGroup.js +19 -0
  14. package/dist/components/Command/components/CommandInput.js +84 -0
  15. package/dist/components/Command/components/CommandItem.js +29 -0
  16. package/dist/components/Command/components/CommandList.js +16 -0
  17. package/dist/components/Command/components/CommandSeparator.js +16 -0
  18. package/dist/components/Command/components/CommandShortcut.js +19 -0
  19. package/dist/components/Command/components/DialogContent.js +31 -0
  20. package/dist/components/Command/components/DialogOverlay.js +19 -0
  21. package/dist/components/Command/components/index.js +20 -0
  22. package/dist/components/Command/contexts/Command.context.js +13 -0
  23. package/dist/components/Command/contexts/Command.provider.js +24 -0
  24. package/dist/components/Command/contexts/index.js +6 -0
  25. package/dist/components/Dropdown/Dropdown.js +6 -6
  26. package/dist/components/Dropdown/Dropdown.variants.js +22 -3
  27. package/dist/components/Dropdown/components/List/List.js +42 -16
  28. package/dist/components/Dropdown/components/List/List.variants.js +7 -5
  29. package/dist/components/Dropdown/components/ListItem/ListItem.js +26 -21
  30. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +6 -4
  31. package/dist/components/Dropdown/components/Wrapper.js +97 -63
  32. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  33. package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
  34. package/dist/components/Input/Input.js +112 -67
  35. package/dist/components/Input/Input.variants.js +5 -6
  36. package/dist/components/Loading/Loading.js +102 -21
  37. package/dist/components/Loading/Loading.variants.js +13 -14
  38. package/dist/components/Modal/Modal.js +3 -3
  39. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
  40. package/dist/components/Modal/components/index.js +1 -1
  41. package/dist/components/NumberInput/NumberInput.js +88 -88
  42. package/dist/components/NumberInput/NumberInput.variants.js +23 -19
  43. package/dist/components/Range/Range.js +1 -1
  44. package/dist/components/Sidebar/Sidebar.variants.js +2 -1
  45. package/dist/components/Sidebar/components/Logo/Logo.variants.js +9 -17
  46. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -2
  47. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +6 -5
  48. package/dist/components/Slider/Slider.js +1 -1
  49. package/dist/components/Switch/Switch.js +1 -1
  50. package/dist/components/Switch/Switch.variants.js +4 -4
  51. package/dist/components/Table/Table.js +31 -0
  52. package/dist/components/Table/Table.variants.js +78 -0
  53. package/dist/components/Table/components/Body.js +28 -0
  54. package/dist/components/Table/components/Filter.js +9 -0
  55. package/dist/components/Table/components/Head.js +28 -0
  56. package/dist/components/Table/components/Row.js +34 -0
  57. package/dist/components/Tag/Tag.js +17 -5
  58. package/dist/components/Tag/Tag.variants.js +11 -1
  59. package/dist/components/TagSelect/TagSelect.js +6 -71
  60. package/dist/components/TagSelect/TagSelect.variants.js +29 -50
  61. package/dist/components/TagSelect/components/Item/Item.js +23 -0
  62. package/dist/components/TagSelect/components/Item/Item.variants.js +31 -0
  63. package/dist/components/TagSelect/components/List/List.js +13 -0
  64. package/dist/components/TagSelect/components/List/List.variants.js +37 -0
  65. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +88 -0
  66. package/dist/components/TagSelect/components/index.js +8 -0
  67. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  68. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  69. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  70. package/dist/components/TagSelect/contexts/index.js +6 -0
  71. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  72. package/dist/components/TextArea/TextArea.js +28 -22
  73. package/dist/components/TextArea/TextArea.variants.js +0 -1
  74. package/dist/components/Toast/Toast.js +141 -128
  75. package/dist/components/Toast/Toast.variants.js +2 -3
  76. package/dist/components/Typography/Typography.js +23 -22
  77. package/dist/components/Typography/Typography.variants.js +49 -22
  78. package/dist/components/index.js +22 -20
  79. package/dist/{index-C6WtlN_F.js → index-BzaHYXkt.js} +1 -1
  80. package/dist/{index-Z1voPZOH.js → index-CbTU3cnP.js} +1 -1
  81. package/dist/index-CzSBQN5S.js +432 -0
  82. package/dist/index-D7QNmo_D.js +422 -0
  83. package/dist/index-DUA6Y_AE.js +126 -0
  84. package/dist/{index-B33at13_.js → index-D_76wh4w.js} +1 -1
  85. package/dist/index-DyKo5ZJT.js +446 -0
  86. package/dist/index.d.ts +82 -16
  87. package/dist/index.js +18 -16
  88. package/dist/package.json +26 -24
  89. package/dist/styles.css +1 -1
  90. package/dist/utils/index.js +320 -322
  91. package/package.json +26 -24
  92. package/dist/index-3jTPaVvh.js +0 -551
  93. package/dist/index-BTeAm7mx.js +0 -19133
@@ -1,22 +1,22 @@
1
- import { jsxs as y, jsx as a } from "react/jsx-runtime";
2
- import s, { forwardRef as u, useId as b } from "react";
3
- import { cn as w } from "../../utils/index.js";
4
- import { inputVariants as j } from "./Input.variants.js";
5
- import { P as l } from "../../index-C5psggHV.js";
6
- import { useTheme as N } from "../../contexts/theme.hook.js";
7
- function p() {
8
- return p = Object.assign || function(e) {
1
+ import { jsxs as O, jsx as c } from "react/jsx-runtime";
2
+ import l, { forwardRef as p, useState as E, useId as k } from "react";
3
+ import { cn as z } from "../../utils/index.js";
4
+ import { inputVariants as N } from "./Input.variants.js";
5
+ import { P as a } from "../../index-C5psggHV.js";
6
+ import { useTheme as $ } from "../../contexts/theme.hook.js";
7
+ function u() {
8
+ return u = Object.assign || function(e) {
9
9
  for (var o = 1; o < arguments.length; o++) {
10
10
  var r = arguments[o];
11
11
  for (var t in r)
12
12
  Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
13
13
  }
14
14
  return e;
15
- }, p.apply(this, arguments);
15
+ }, u.apply(this, arguments);
16
16
  }
17
- function P(e, o) {
17
+ function _(e, o) {
18
18
  if (e == null) return {};
19
- var r = k(e, o), t, n;
19
+ var r = L(e, o), t, n;
20
20
  if (Object.getOwnPropertySymbols) {
21
21
  var i = Object.getOwnPropertySymbols(e);
22
22
  for (n = 0; n < i.length; n++)
@@ -24,16 +24,16 @@ function P(e, o) {
24
24
  }
25
25
  return r;
26
26
  }
27
- function k(e, o) {
27
+ function L(e, o) {
28
28
  if (e == null) return {};
29
29
  var r = {}, t = Object.keys(e), n, i;
30
30
  for (i = 0; i < t.length; i++)
31
31
  n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
32
32
  return r;
33
33
  }
34
- var m = u(function(e, o) {
35
- var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, c = P(e, ["color", "size"]);
36
- return /* @__PURE__ */ s.createElement("svg", p({
34
+ var y = p(function(e, o) {
35
+ var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, s = _(e, ["color", "size"]);
36
+ return /* @__PURE__ */ l.createElement("svg", u({
37
37
  ref: o,
38
38
  xmlns: "http://www.w3.org/2000/svg",
39
39
  width: i,
@@ -44,40 +44,40 @@ var m = u(function(e, o) {
44
44
  strokeWidth: "2",
45
45
  strokeLinecap: "round",
46
46
  strokeLinejoin: "round"
47
- }, c), /* @__PURE__ */ s.createElement("circle", {
47
+ }, s), /* @__PURE__ */ l.createElement("circle", {
48
48
  cx: "12",
49
49
  cy: "12",
50
50
  r: "10"
51
- }), /* @__PURE__ */ s.createElement("line", {
51
+ }), /* @__PURE__ */ l.createElement("line", {
52
52
  x1: "12",
53
53
  y1: "8",
54
54
  x2: "12",
55
55
  y2: "12"
56
- }), /* @__PURE__ */ s.createElement("line", {
56
+ }), /* @__PURE__ */ l.createElement("line", {
57
57
  x1: "12",
58
58
  y1: "16",
59
59
  x2: "12.01",
60
60
  y2: "16"
61
61
  }));
62
62
  });
63
- m.propTypes = {
64
- color: l.string,
65
- size: l.oneOfType([l.string, l.number])
63
+ y.propTypes = {
64
+ color: a.string,
65
+ size: a.oneOfType([a.string, a.number])
66
66
  };
67
- m.displayName = "AlertCircle";
68
- function f() {
69
- return f = Object.assign || function(e) {
67
+ y.displayName = "AlertCircle";
68
+ function m() {
69
+ return m = Object.assign || function(e) {
70
70
  for (var o = 1; o < arguments.length; o++) {
71
71
  var r = arguments[o];
72
72
  for (var t in r)
73
73
  Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
74
74
  }
75
75
  return e;
76
- }, f.apply(this, arguments);
76
+ }, m.apply(this, arguments);
77
77
  }
78
- function E(e, o) {
78
+ function W(e, o) {
79
79
  if (e == null) return {};
80
- var r = z(e, o), t, n;
80
+ var r = T(e, o), t, n;
81
81
  if (Object.getOwnPropertySymbols) {
82
82
  var i = Object.getOwnPropertySymbols(e);
83
83
  for (n = 0; n < i.length; n++)
@@ -85,16 +85,16 @@ function E(e, o) {
85
85
  }
86
86
  return r;
87
87
  }
88
- function z(e, o) {
88
+ function T(e, o) {
89
89
  if (e == null) return {};
90
90
  var r = {}, t = Object.keys(e), n, i;
91
91
  for (i = 0; i < t.length; i++)
92
92
  n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
93
93
  return r;
94
94
  }
95
- var h = u(function(e, o) {
96
- var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, c = E(e, ["color", "size"]);
97
- return /* @__PURE__ */ s.createElement("svg", f({
95
+ var v = p(function(e, o) {
96
+ var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, s = W(e, ["color", "size"]);
97
+ return /* @__PURE__ */ l.createElement("svg", m({
98
98
  ref: o,
99
99
  xmlns: "http://www.w3.org/2000/svg",
100
100
  width: i,
@@ -105,21 +105,74 @@ var h = u(function(e, o) {
105
105
  strokeWidth: "2",
106
106
  strokeLinecap: "round",
107
107
  strokeLinejoin: "round"
108
- }, c), /* @__PURE__ */ s.createElement("path", {
108
+ }, s), /* @__PURE__ */ l.createElement("path", {
109
109
  d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"
110
- }), /* @__PURE__ */ s.createElement("line", {
110
+ }), /* @__PURE__ */ l.createElement("line", {
111
111
  x1: "1",
112
112
  y1: "1",
113
113
  x2: "23",
114
114
  y2: "23"
115
115
  }));
116
116
  });
117
- h.propTypes = {
118
- color: l.string,
119
- size: l.oneOfType([l.string, l.number])
117
+ v.propTypes = {
118
+ color: a.string,
119
+ size: a.oneOfType([a.string, a.number])
120
120
  };
121
- h.displayName = "EyeOff";
122
- const _ = u(
121
+ v.displayName = "EyeOff";
122
+ function h() {
123
+ return h = Object.assign || function(e) {
124
+ for (var o = 1; o < arguments.length; o++) {
125
+ var r = arguments[o];
126
+ for (var t in r)
127
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = r[t]);
128
+ }
129
+ return e;
130
+ }, h.apply(this, arguments);
131
+ }
132
+ function C(e, o) {
133
+ if (e == null) return {};
134
+ var r = I(e, o), t, n;
135
+ if (Object.getOwnPropertySymbols) {
136
+ var i = Object.getOwnPropertySymbols(e);
137
+ for (n = 0; n < i.length; n++)
138
+ t = i[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
139
+ }
140
+ return r;
141
+ }
142
+ function I(e, o) {
143
+ if (e == null) return {};
144
+ var r = {}, t = Object.keys(e), n, i;
145
+ for (i = 0; i < t.length; i++)
146
+ n = t[i], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
147
+ return r;
148
+ }
149
+ var g = p(function(e, o) {
150
+ var r = e.color, t = r === void 0 ? "currentColor" : r, n = e.size, i = n === void 0 ? 24 : n, s = C(e, ["color", "size"]);
151
+ return /* @__PURE__ */ l.createElement("svg", h({
152
+ ref: o,
153
+ xmlns: "http://www.w3.org/2000/svg",
154
+ width: i,
155
+ height: i,
156
+ viewBox: "0 0 24 24",
157
+ fill: "none",
158
+ stroke: t,
159
+ strokeWidth: "2",
160
+ strokeLinecap: "round",
161
+ strokeLinejoin: "round"
162
+ }, s), /* @__PURE__ */ l.createElement("path", {
163
+ d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
164
+ }), /* @__PURE__ */ l.createElement("circle", {
165
+ cx: "12",
166
+ cy: "12",
167
+ r: "3"
168
+ }));
169
+ });
170
+ g.propTypes = {
171
+ color: a.string,
172
+ size: a.oneOfType([a.string, a.number])
173
+ };
174
+ g.displayName = "Eye";
175
+ const S = p(
123
176
  ({
124
177
  className: e,
125
178
  error: o,
@@ -127,50 +180,42 @@ const _ = u(
127
180
  labelClassName: t,
128
181
  name: n,
129
182
  type: i,
130
- theme: c,
131
- onClickIcon: g,
132
- ...d
133
- }, x) => {
134
- const v = b(), { theme: O } = N();
135
- return /* @__PURE__ */ y("div", { className: "flex flex-col gap-1.5", children: [
136
- r ? /* @__PURE__ */ a(
137
- "label",
138
- {
139
- htmlFor: v,
140
- className: w("pl-1 cursor-pointer", t),
141
- children: r
142
- }
143
- ) : null,
144
- /* @__PURE__ */ y("div", { className: "relative", children: [
145
- /* @__PURE__ */ a(
183
+ theme: s,
184
+ ...w
185
+ }, b) => {
186
+ const [f, x] = E(!1), d = k(), { theme: j } = $(), P = f ? g : v;
187
+ return /* @__PURE__ */ O("div", { className: "flex flex-col gap-1.5 w-full", children: [
188
+ r ? /* @__PURE__ */ c("label", { htmlFor: d, className: z("cursor-pointer", t), children: r }) : null,
189
+ /* @__PURE__ */ O("div", { className: "relative", children: [
190
+ /* @__PURE__ */ c(
146
191
  "input",
147
192
  {
148
- id: v,
149
- ref: x,
193
+ id: d,
194
+ ref: b,
150
195
  name: n,
151
- type: i,
152
- className: j({
196
+ type: f ? "text" : i,
197
+ className: N({
153
198
  className: e,
154
- theme: c ?? O,
199
+ theme: s ?? j,
155
200
  variant: o ? "error" : "default"
156
201
  }),
157
- ...d
202
+ ...w
158
203
  }
159
204
  ),
160
- o ? /* @__PURE__ */ a("i", { className: "absolute right-2 text-red-600 top-0 translate-y-[40%]", children: /* @__PURE__ */ a(m, { className: "w-5 h-5" }) }) : null,
161
- i === "password" ? /* @__PURE__ */ a("i", { className: "absolute right-2 text-slate-400 top-0 translate-y-[40%]", children: /* @__PURE__ */ a(
162
- h,
205
+ o ? /* @__PURE__ */ c("i", { className: "absolute right-3 text-red-600 top-0 translate-y-[40%]", children: /* @__PURE__ */ c(y, { className: "w-5 h-5" }) }) : null,
206
+ i === "password" && !o ? /* @__PURE__ */ c("i", { className: "absolute right-3 text-slate-400 top-0 translate-y-[40%]", children: /* @__PURE__ */ c(
207
+ P,
163
208
  {
164
209
  className: "w-5 h-5 cursor-pointer",
165
- onClick: g
210
+ onClick: () => x(!f)
166
211
  }
167
212
  ) }) : null
168
213
  ] }),
169
- o ? /* @__PURE__ */ a("span", { className: "text-xs text-red-600 -mt-0.5 pl-2", children: o }) : null
214
+ o ? /* @__PURE__ */ c("span", { className: "text-xs text-red-600 -mt-0.5", children: o }) : null
170
215
  ] });
171
216
  }
172
217
  );
173
- _.displayName = "Input";
218
+ S.displayName = "Input";
174
219
  export {
175
- _ as Input
220
+ S as Input
176
221
  };
@@ -1,5 +1,5 @@
1
1
  import { c as r } from "../../index-BNmRGtA6.js";
2
- const t = r(
2
+ const o = r(
3
3
  [
4
4
  "bg-transparent",
5
5
  "border",
@@ -11,12 +11,11 @@ const t = r(
11
11
  "focus-visible:ring-1",
12
12
  "h-9",
13
13
  "placeholder:text-muted-foreground",
14
- "px-3",
14
+ "pl-3",
15
+ "pr-10",
15
16
  "py-1",
16
17
  "rounded-md",
17
18
  "shadow-sm",
18
- "text-base",
19
- "text-zinc-700",
20
19
  "transition-colors",
21
20
  "w-full"
22
21
  ],
@@ -24,7 +23,7 @@ const t = r(
24
23
  variants: {
25
24
  variant: {
26
25
  default: "",
27
- error: ["border-red-600", "pr-8", "focus-visible:ring-transparent"]
26
+ error: "!border-red-600 pr-8 focus-visible:ring-transparent"
28
27
  },
29
28
  theme: {
30
29
  kubefirst: "focus:ring-kubefirst-primary",
@@ -39,5 +38,5 @@ const t = r(
39
38
  }
40
39
  );
41
40
  export {
42
- t as inputVariants
41
+ o as inputVariants
43
42
  };
@@ -1,28 +1,109 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { useId as m } from "react";
3
- import { loadingVariants as a } from "./Loading.variants.js";
4
- import { useTheme as d } from "../../contexts/theme.hook.js";
5
- const c = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20d='M21%2012a9%209%200%201%201-6.219-8.56'%20/%3e%3c/svg%3e", l = ({
6
- className: e,
7
- theme: o,
8
- variant: t,
9
- ...r
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { cn as h } from "../../utils/index.js";
3
+ import { loadingVariants as g } from "./Loading.variants.js";
4
+ import { forwardRef as s, createElement as i } from "react";
5
+ import { useTheme as w } from "../../contexts/theme.hook.js";
6
+ /**
7
+ * @license lucide-react v0.477.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */
12
+ const C = (r) => r.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), m = (...r) => r.filter((e, o, t) => !!e && e.trim() !== "" && t.indexOf(e) === o).join(" ").trim();
13
+ /**
14
+ * @license lucide-react v0.477.0 - ISC
15
+ *
16
+ * This source code is licensed under the ISC license.
17
+ * See the LICENSE file in the root directory of this source tree.
18
+ */
19
+ var L = {
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ width: 24,
22
+ height: 24,
23
+ viewBox: "0 0 24 24",
24
+ fill: "none",
25
+ stroke: "currentColor",
26
+ strokeWidth: 2,
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round"
29
+ };
30
+ /**
31
+ * @license lucide-react v0.477.0 - ISC
32
+ *
33
+ * This source code is licensed under the ISC license.
34
+ * See the LICENSE file in the root directory of this source tree.
35
+ */
36
+ const k = s(
37
+ ({
38
+ color: r = "currentColor",
39
+ size: e = 24,
40
+ strokeWidth: o = 2,
41
+ absoluteStrokeWidth: t,
42
+ className: a = "",
43
+ children: n,
44
+ iconNode: c,
45
+ ...d
46
+ }, l) => i(
47
+ "svg",
48
+ {
49
+ ref: l,
50
+ ...L,
51
+ width: e,
52
+ height: e,
53
+ stroke: r,
54
+ strokeWidth: t ? Number(o) * 24 / Number(e) : o,
55
+ className: m("lucide", a),
56
+ ...d
57
+ },
58
+ [
59
+ ...c.map(([u, p]) => i(u, p)),
60
+ ...Array.isArray(n) ? n : [n]
61
+ ]
62
+ )
63
+ );
64
+ /**
65
+ * @license lucide-react v0.477.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */
70
+ const x = (r, e) => {
71
+ const o = s(
72
+ ({ className: t, ...a }, n) => i(k, {
73
+ ref: n,
74
+ iconNode: e,
75
+ className: m(`lucide-${C(r)}`, t),
76
+ ...a
77
+ })
78
+ );
79
+ return o.displayName = `${r}`, o;
80
+ };
81
+ /**
82
+ * @license lucide-react v0.477.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */
87
+ const b = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], y = x("LoaderCircle", b), N = ({
88
+ className: r,
89
+ theme: e,
90
+ ...o
10
91
  }) => {
11
- const i = m(), { theme: s } = d();
12
- return /* @__PURE__ */ n(
13
- c,
92
+ const { theme: t } = w();
93
+ return /* @__PURE__ */ f(
94
+ y,
14
95
  {
15
- id: i,
16
- className: a({
17
- className: e,
18
- theme: o ?? s,
19
- variant: t
20
- }),
21
- ...r
96
+ className: h(
97
+ g({
98
+ className: r,
99
+ theme: e ?? t
100
+ })
101
+ ),
102
+ ...o
22
103
  }
23
104
  );
24
105
  };
25
- l.displayName = "Loading";
106
+ N.displayName = "Loading";
26
107
  export {
27
- l as Loading
108
+ N as Loading
28
109
  };
@@ -1,20 +1,19 @@
1
1
  import { c as t } from "../../index-BNmRGtA6.js";
2
- const i = t(["h-", "w-8", "animate-spin"], {
3
- variants: {
4
- variant: {
5
- default: ""
2
+ const r = t(
3
+ ["h-8", "w-8", "animate-spin", "text-inherit"],
4
+ {
5
+ variants: {
6
+ theme: {
7
+ kubefirst: "text-kubefirst-primary",
8
+ colony: "text-colony-primary",
9
+ civo: "text-civo-primary"
10
+ }
6
11
  },
7
- theme: {
8
- kubefirst: "text-kubefirst-primary",
9
- colony: "text-colony-primary",
10
- civo: "text-civo-primary"
12
+ defaultVariants: {
13
+ theme: "kubefirst"
11
14
  }
12
- },
13
- defaultVariants: {
14
- variant: "default",
15
- theme: "kubefirst"
16
15
  }
17
- });
16
+ );
18
17
  export {
19
- i as loadingVariants
18
+ r as loadingVariants
20
19
  };
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
- import "../../index-BTeAm7mx.js";
3
- import { M as d } from "../../Modal-DZUwNzSW.js";
2
+ import "react";
3
+ import "../../index-D7QNmo_D.js";
4
+ import { M as d } from "../../Modal-B-E9uaA6.js";
4
5
  import "./components/Header/Header.js";
5
6
  import "./components/Body/Body.js";
6
7
  import "./components/Footer/Footer.js";
7
- import "./hooks/useModal.js";
8
8
  export {
9
9
  d as Modal
10
10
  };
@@ -1,13 +1,12 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../../index-Z1voPZOH.js";
2
+ import "../../../../index-CbTU3cnP.js";
3
3
  import "react";
4
- import { W as x } from "../../../../Modal-DZUwNzSW.js";
4
+ import { W as s } from "../../../../Modal-B-E9uaA6.js";
5
5
  import "../../../../Combination-b348x__d.js";
6
6
  import "../../../../utils/index.js";
7
7
  import "./Wrapper.variants.js";
8
- import "../../hooks/useModal.js";
9
8
  import "../../../../x-DU-Zw-L_.js";
10
9
  import "../../../../contexts/theme.hook.js";
11
10
  export {
12
- x as Wrapper
11
+ s as Wrapper
13
12
  };
@@ -1,7 +1,7 @@
1
1
  import { Body as e } from "./Body/Body.js";
2
2
  import { Footer as t } from "./Footer/Footer.js";
3
3
  import { Header as m } from "./Header/Header.js";
4
- import { W as a } from "../../../Modal-DZUwNzSW.js";
4
+ import { W as a } from "../../../Modal-B-E9uaA6.js";
5
5
  export {
6
6
  e as Body,
7
7
  t as Footer,