@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,16 +1,15 @@
1
1
  import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import j, { forwardRef as _, useId as A, useCallback as H } from "react";
4
- import { u as K } from "../../index-B_6_jmOO.js";
5
- import { a as W, c as $, b as I } from "../../index-Cva-e5M4.js";
6
- import { u as q, a as F } from "../../index-4ecjw_Aj.js";
7
- import { P as V } from "../../index-Dj1pom3_.js";
8
- import { P as T } from "../../index-D7QNmo_D.js";
4
+ import { u as K } from "../../index-Bk324h27.js";
5
+ import { a as W, c as $, b as I } from "../../index-bYyfdsls.js";
6
+ import { u as q, a as F } from "../../index-Bry5AFQ2.js";
7
+ import { P as V } from "../../index-G_6jG4Qc.js";
8
+ import { P as z } from "../../index-g-TFwd6Y.js";
9
9
  import { cn as N } from "../../utils/index.js";
10
10
  import { checkboxVariants as X, labelVariants as G } from "./Checkbox.variants.js";
11
11
  import { useToggle as J } from "../../hooks/useToggle.js";
12
12
  import { P } from "../../index-C5psggHV.js";
13
- import { useTheme as Q } from "../../contexts/theme.hook.js";
14
13
  function E() {
15
14
  return E = Object.assign || function(e) {
16
15
  for (var s = 1; s < arguments.length; s++) {
@@ -21,9 +20,9 @@ function E() {
21
20
  return e;
22
21
  }, E.apply(this, arguments);
23
22
  }
24
- function U(e, s) {
23
+ function Q(e, s) {
25
24
  if (e == null) return {};
26
- var t = Y(e, s), o, n;
25
+ var t = U(e, s), o, n;
27
26
  if (Object.getOwnPropertySymbols) {
28
27
  var r = Object.getOwnPropertySymbols(e);
29
28
  for (n = 0; n < r.length; n++)
@@ -31,7 +30,7 @@ function U(e, s) {
31
30
  }
32
31
  return t;
33
32
  }
34
- function Y(e, s) {
33
+ function U(e, s) {
35
34
  if (e == null) return {};
36
35
  var t = {}, o = Object.keys(e), n, r;
37
36
  for (r = 0; r < o.length; r++)
@@ -39,7 +38,7 @@ function Y(e, s) {
39
38
  return t;
40
39
  }
41
40
  var O = _(function(e, s) {
42
- var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = U(e, ["color", "size"]);
41
+ var t = e.color, o = t === void 0 ? "currentColor" : t, n = e.size, r = n === void 0 ? 24 : n, l = Q(e, ["color", "size"]);
43
42
  return /* @__PURE__ */ j.createElement("svg", E({
44
43
  ref: s,
45
44
  xmlns: "http://www.w3.org/2000/svg",
@@ -60,7 +59,7 @@ O.propTypes = {
60
59
  size: P.oneOfType([P.string, P.number])
61
60
  };
62
61
  O.displayName = "Check";
63
- var R = "Checkbox", [Z, ke] = $(R), [ee, te] = Z(R), z = u.forwardRef(
62
+ var R = "Checkbox", [Y, he] = $(R), [Z, ee] = Y(R), L = u.forwardRef(
64
63
  (e, s) => {
65
64
  const {
66
65
  __scopeCheckbox: t,
@@ -68,68 +67,68 @@ var R = "Checkbox", [Z, ke] = $(R), [ee, te] = Z(R), z = u.forwardRef(
68
67
  checked: n,
69
68
  defaultChecked: r,
70
69
  required: l,
71
- disabled: a,
70
+ disabled: c,
72
71
  value: b = "on",
73
72
  onCheckedChange: C,
74
73
  form: d,
75
74
  ...p
76
- } = e, [i, k] = u.useState(null), v = K(s, (c) => k(c)), x = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [m = !1, w] = W({
75
+ } = e, [i, h] = u.useState(null), k = K(s, (a) => h(a)), y = u.useRef(!1), g = i ? d || !!i.closest("form") : !0, [v = !1, w] = W({
77
76
  prop: n,
78
77
  defaultProp: r,
79
78
  onChange: C
80
- }), M = u.useRef(m);
79
+ }), M = u.useRef(v);
81
80
  return u.useEffect(() => {
82
- const c = i == null ? void 0 : i.form;
83
- if (c) {
84
- const y = () => w(M.current);
85
- return c.addEventListener("reset", y), () => c.removeEventListener("reset", y);
81
+ const a = i == null ? void 0 : i.form;
82
+ if (a) {
83
+ const x = () => w(M.current);
84
+ return a.addEventListener("reset", x), () => a.removeEventListener("reset", x);
86
85
  }
87
- }, [i, w]), /* @__PURE__ */ S(ee, { scope: t, state: m, disabled: a, children: [
86
+ }, [i, w]), /* @__PURE__ */ S(Z, { scope: t, state: v, disabled: c, children: [
88
87
  /* @__PURE__ */ f(
89
- T.button,
88
+ z.button,
90
89
  {
91
90
  type: "button",
92
91
  role: "checkbox",
93
- "aria-checked": h(m) ? "mixed" : m,
92
+ "aria-checked": m(v) ? "mixed" : v,
94
93
  "aria-required": l,
95
- "data-state": B(m),
96
- "data-disabled": a ? "" : void 0,
97
- disabled: a,
94
+ "data-state": B(v),
95
+ "data-disabled": c ? "" : void 0,
96
+ disabled: c,
98
97
  value: b,
99
98
  ...p,
100
- ref: v,
101
- onKeyDown: I(e.onKeyDown, (c) => {
102
- c.key === "Enter" && c.preventDefault();
99
+ ref: k,
100
+ onKeyDown: I(e.onKeyDown, (a) => {
101
+ a.key === "Enter" && a.preventDefault();
103
102
  }),
104
- onClick: I(e.onClick, (c) => {
105
- w((y) => h(y) ? !0 : !y), g && (x.current = c.isPropagationStopped(), x.current || c.stopPropagation());
103
+ onClick: I(e.onClick, (a) => {
104
+ w((x) => m(x) ? !0 : !x), g && (y.current = a.isPropagationStopped(), y.current || a.stopPropagation());
106
105
  })
107
106
  }
108
107
  ),
109
108
  g && /* @__PURE__ */ f(
110
- re,
109
+ te,
111
110
  {
112
111
  control: i,
113
- bubbles: !x.current,
112
+ bubbles: !y.current,
114
113
  name: o,
115
114
  value: b,
116
- checked: m,
115
+ checked: v,
117
116
  required: l,
118
- disabled: a,
117
+ disabled: c,
119
118
  form: d,
120
119
  style: { transform: "translateX(-100%)" },
121
- defaultChecked: h(r) ? !1 : r
120
+ defaultChecked: m(r) ? !1 : r
122
121
  }
123
122
  )
124
123
  ] });
125
124
  }
126
125
  );
127
- z.displayName = R;
128
- var L = "CheckboxIndicator", D = u.forwardRef(
126
+ L.displayName = R;
127
+ var T = "CheckboxIndicator", D = u.forwardRef(
129
128
  (e, s) => {
130
- const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = te(L, t);
131
- return /* @__PURE__ */ f(V, { present: o || h(r.state) || r.state === !0, children: /* @__PURE__ */ f(
132
- T.span,
129
+ const { __scopeCheckbox: t, forceMount: o, ...n } = e, r = ee(T, t);
130
+ return /* @__PURE__ */ f(V, { present: o || m(r.state) || r.state === !0, children: /* @__PURE__ */ f(
131
+ z.span,
133
132
  {
134
133
  "data-state": B(r.state),
135
134
  "data-disabled": r.disabled ? "" : void 0,
@@ -140,17 +139,17 @@ var L = "CheckboxIndicator", D = u.forwardRef(
140
139
  ) });
141
140
  }
142
141
  );
143
- D.displayName = L;
144
- var re = (e) => {
145
- const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), a = q(t), b = F(s);
142
+ D.displayName = T;
143
+ var te = (e) => {
144
+ const { control: s, checked: t, bubbles: o = !0, defaultChecked: n, ...r } = e, l = u.useRef(null), c = q(t), b = F(s);
146
145
  u.useEffect(() => {
147
- const d = l.current, p = window.HTMLInputElement.prototype, k = Object.getOwnPropertyDescriptor(p, "checked").set;
148
- if (a !== t && k) {
149
- const v = new Event("click", { bubbles: o });
150
- d.indeterminate = h(t), k.call(d, h(t) ? !1 : t), d.dispatchEvent(v);
146
+ const d = l.current, p = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(p, "checked").set;
147
+ if (c !== t && h) {
148
+ const k = new Event("click", { bubbles: o });
149
+ d.indeterminate = m(t), h.call(d, m(t) ? !1 : t), d.dispatchEvent(k);
151
150
  }
152
- }, [a, t, o]);
153
- const C = u.useRef(h(t) ? !1 : t);
151
+ }, [c, t, o]);
152
+ const C = u.useRef(m(t) ? !1 : t);
154
153
  return /* @__PURE__ */ f(
155
154
  "input",
156
155
  {
@@ -171,14 +170,14 @@ var re = (e) => {
171
170
  }
172
171
  );
173
172
  };
174
- function h(e) {
173
+ function m(e) {
175
174
  return e === "indeterminate";
176
175
  }
177
176
  function B(e) {
178
- return h(e) ? "indeterminate" : e ? "checked" : "unchecked";
177
+ return m(e) ? "indeterminate" : e ? "checked" : "unchecked";
179
178
  }
180
- var oe = z, ne = D;
181
- const ve = _(
179
+ var re = L, oe = D;
180
+ const be = _(
182
181
  ({
183
182
  ariaLabelledBy: e,
184
183
  className: s,
@@ -187,46 +186,44 @@ const ve = _(
187
186
  id: n,
188
187
  label: r,
189
188
  labelClassName: l,
190
- name: a,
189
+ name: c,
191
190
  theme: b,
192
191
  title: C,
193
192
  variant: d,
194
193
  onChange: p
195
194
  }, i) => {
196
- const [k, v] = J(t), x = A(), { theme: g } = Q(), m = H(() => {
197
- v(), p == null || p();
198
- }, [p, v]);
199
- return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", children: [
195
+ const [h, k] = J(t), y = A(), g = H(() => {
196
+ k(), p == null || p();
197
+ }, [p, k]);
198
+ return /* @__PURE__ */ S("div", { className: "flex items-center gap-2", "data-theme": b, children: [
200
199
  /* @__PURE__ */ f(
201
- oe,
200
+ re,
202
201
  {
203
- id: n ?? x,
204
- checked: k,
202
+ id: n ?? y,
203
+ checked: h,
205
204
  ref: i,
206
- name: a,
205
+ name: c,
207
206
  disabled: o,
208
207
  "aria-labelledby": e,
209
208
  title: C,
210
209
  className: N(
211
210
  X({
212
211
  className: s,
213
- theme: b ?? g,
214
212
  variant: d,
215
- checked: k
213
+ checked: h
216
214
  })
217
215
  ),
218
- onCheckedChange: m,
219
- children: /* @__PURE__ */ f(ne, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
216
+ onCheckedChange: g,
217
+ children: /* @__PURE__ */ f(oe, { children: /* @__PURE__ */ f(O, { className: "w-4 h-4 stroke-2" }) })
220
218
  }
221
219
  ),
222
220
  r ? /* @__PURE__ */ f(
223
221
  "label",
224
222
  {
225
- htmlFor: a ?? n,
223
+ htmlFor: c ?? n,
226
224
  className: N(
227
225
  G({
228
226
  variant: d,
229
- theme: b,
230
227
  className: l
231
228
  })
232
229
  ),
@@ -237,5 +234,5 @@ const ve = _(
237
234
  }
238
235
  );
239
236
  export {
240
- ve as Checkbox
237
+ be as Checkbox
241
238
  };
@@ -1,5 +1,5 @@
1
- import { c as e } from "../../index-BNmRGtA6.js";
2
- const r = e(
1
+ import { c as r } from "../../index-BNmRGtA6.js";
2
+ const e = r(
3
3
  [
4
4
  "cursor-pointer",
5
5
  "border",
@@ -9,18 +9,15 @@ const r = e(
9
9
  "flex",
10
10
  "justify-center",
11
11
  "items-center",
12
- "text-white"
12
+ "text-white",
13
+ "border-kubefirst-primary",
14
+ "colony:border-red-700"
13
15
  ],
14
16
  {
15
17
  variants: {
16
18
  variant: {
17
19
  default: ""
18
20
  },
19
- theme: {
20
- colony: "",
21
- kubefirst: "",
22
- civo: ""
23
- },
24
21
  checked: {
25
22
  true: "",
26
23
  false: ""
@@ -28,46 +25,25 @@ const r = e(
28
25
  },
29
26
  compoundVariants: [
30
27
  {
31
- theme: "kubefirst",
32
- class: ["border-kubefirst-primary"]
33
- },
34
- {
35
- theme: "kubefirst",
36
28
  checked: !0,
37
- class: ["bg-kubefirst-primary"]
38
- },
39
- {
40
- theme: "colony",
41
- class: ["border-red-700"]
42
- },
43
- {
44
- theme: "colony",
45
- checked: !0,
46
- class: ["bg-red-700"]
29
+ class: ["bg-kubefirst-primary", "colony:bg-red-700"]
47
30
  }
48
31
  ],
49
32
  defaultVariants: {
50
- variant: "default",
51
- theme: "kubefirst"
33
+ variant: "default"
52
34
  }
53
35
  }
54
- ), a = e(["cursor-pointer"], {
36
+ ), t = r(["cursor-pointer"], {
55
37
  variants: {
56
38
  variant: {
57
39
  default: ""
58
- },
59
- theme: {
60
- colony: "",
61
- kubefirst: "",
62
- civo: ""
63
40
  }
64
41
  },
65
42
  defaultVariants: {
66
- variant: "default",
67
- theme: "kubefirst"
43
+ variant: "default"
68
44
  }
69
45
  });
70
46
  export {
71
- r as checkboxVariants,
72
- a as labelVariants
47
+ e as checkboxVariants,
48
+ t as labelVariants
73
49
  };
@@ -1,32 +1,40 @@
1
1
  import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
- import { R as t, D as s } from "../../index-DyKo5ZJT.js";
3
- import { V as p } from "../../index-CbTU3cnP.js";
4
- import { cn as r } from "../../utils/index.js";
5
- import { wrapperVariants as l } from "./Command.variants.js";
6
- import { DialogContent as f } from "./components/DialogContent.js";
7
- import { Command as c } from "./components/Command.js";
8
- import { CommandGroup as R } from "./components/CommandGroup.js";
9
- import { CommandItem as v } from "./components/CommandItem.js";
10
- import { CommandSeparator as G } from "./components/CommandSeparator.js";
11
- const g = ({
12
- children: m,
2
+ import { R as s, D as p } from "../../index-DvFiic6N.js";
3
+ import { V as l } from "../../index-CWKdynYu.js";
4
+ import { cn as m } from "../../utils/index.js";
5
+ import { wrapperVariants as f } from "./Command.variants.js";
6
+ import { DialogContent as c } from "./components/DialogContent.js";
7
+ import { Command as h } from "./components/Command.js";
8
+ import { CommandGroup as b } from "./components/CommandGroup.js";
9
+ import { CommandItem as y } from "./components/CommandItem.js";
10
+ import { CommandSeparator as H } from "./components/CommandSeparator.js";
11
+ const j = ({
12
+ children: r,
13
13
  title: a,
14
14
  titleClassName: e,
15
15
  wrapperClassName: n,
16
+ theme: t,
16
17
  ...d
17
- }) => /* @__PURE__ */ o(t, { ...d, children: /* @__PURE__ */ i(f, { className: "overflow-hidden p-0 border-0 !rounded-none", children: [
18
- /* @__PURE__ */ o(s, { className: r("hidden", e), children: /* @__PURE__ */ o(p, { children: a }) }),
19
- /* @__PURE__ */ o(
20
- c,
21
- {
22
- className: r(l({ className: n })),
23
- children: m
24
- }
25
- )
26
- ] }) });
18
+ }) => /* @__PURE__ */ o(s, { ...d, children: /* @__PURE__ */ i(
19
+ c,
20
+ {
21
+ className: "overflow-hidden p-0 border-0 !rounded-none",
22
+ "data-theme": t,
23
+ children: [
24
+ /* @__PURE__ */ o(p, { className: m("hidden", e), children: /* @__PURE__ */ o(l, { children: a }) }),
25
+ /* @__PURE__ */ o(
26
+ h,
27
+ {
28
+ className: m(f({ className: n })),
29
+ children: r
30
+ }
31
+ )
32
+ ]
33
+ }
34
+ ) });
27
35
  export {
28
- g as Command,
29
- R as CommandGroup,
30
- v as CommandItem,
31
- G as CommandSeparator
36
+ j as Command,
37
+ b as CommandGroup,
38
+ y as CommandItem,
39
+ H as CommandSeparator
32
40
  };
@@ -1,97 +1,50 @@
1
1
  import { c as e } from "../../index-BNmRGtA6.js";
2
- const r = e([], {
3
- variants: {
4
- theme: {
5
- colony: "",
6
- kubefirst: "",
7
- civo: ""
8
- }
9
- },
10
- defaultVariants: {
11
- theme: "kubefirst"
12
- }
13
- }), o = e(
14
- [
15
- "[&_[cmdk-group-heading]]:font-medium",
16
- "[&_[cmdk-group-heading]]:px-2",
17
- "[&_[cmdk-group-heading]]:text-muted-foreground",
18
- "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
19
- "[&_[cmdk-group]]:px-2",
20
- "[&_[cmdk-input-wrapper]_svg]:h-5",
21
- "[&_[cmdk-input-wrapper]_svg]:w-5",
22
- "[&_[cmdk-input]]:h-12",
23
- "[&_[cmdk-item]]:px-2",
24
- "[&_[cmdk-item]]:py-3",
25
- "[&_[cmdk-item]_svg]:h-5",
26
- "[&_[cmdk-item]_svg]:w-5",
27
- "bg-popover",
28
- "flex",
29
- "items-center",
30
- "justify-center",
31
- "overflow-hidden",
32
- "text-popover-foreground",
33
- "border",
34
- "rounded-md",
35
- "border-neutral-900/35",
36
- "bg-neutral-900/30"
37
- ],
38
- {
39
- variants: {
40
- theme: {
41
- colony: "",
42
- kubefirst: "",
43
- civo: ""
44
- }
45
- },
46
- defaultVariants: {
47
- theme: "kubefirst"
48
- }
49
- }
50
- ), n = e(
51
- [
52
- "bg-transparent",
53
- "disabled:cursor-not-allowed",
54
- "disabled:opacity-50",
55
- "flex",
56
- "h-10",
57
- "outline-none",
58
- "placeholder:text-muted-foreground",
59
- "py-3",
60
- "rounded-md",
61
- "text-sm",
62
- "w-full",
63
- "text-white/80"
64
- ],
65
- {
66
- variants: {
67
- theme: {
68
- colony: "",
69
- kubefirst: "",
70
- civo: ""
71
- }
72
- },
73
- defaultVariants: {
74
- theme: "kubefirst"
75
- }
76
- }
77
- ), i = e(
78
- ["mr-2", "h-4", "w-4", "shrink-0", "opacity-80", "text-white"],
79
- {
80
- variants: {
81
- theme: {
82
- colony: "",
83
- kubefirst: "",
84
- civo: ""
85
- }
86
- },
87
- defaultVariants: {
88
- theme: "kubefirst"
89
- }
90
- }
91
- );
2
+ const r = e([
3
+ "[&_[cmdk-group-heading]]:font-medium",
4
+ "[&_[cmdk-group-heading]]:px-2",
5
+ "[&_[cmdk-group-heading]]:text-muted-foreground",
6
+ "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
7
+ "[&_[cmdk-group]]:px-2",
8
+ "[&_[cmdk-input-wrapper]_svg]:h-5",
9
+ "[&_[cmdk-input-wrapper]_svg]:w-5",
10
+ "[&_[cmdk-input]]:h-12",
11
+ "[&_[cmdk-item]]:px-2",
12
+ "[&_[cmdk-item]]:py-3",
13
+ "[&_[cmdk-item]_svg]:h-5",
14
+ "[&_[cmdk-item]_svg]:w-5",
15
+ "bg-popover",
16
+ "flex",
17
+ "items-center",
18
+ "justify-center",
19
+ "overflow-hidden",
20
+ "text-popover-foreground",
21
+ "border",
22
+ "rounded-md",
23
+ "border-neutral-900/35",
24
+ "bg-neutral-900/30"
25
+ ]), d = e([
26
+ "bg-transparent",
27
+ "disabled:cursor-not-allowed",
28
+ "disabled:opacity-50",
29
+ "flex",
30
+ "h-10",
31
+ "outline-none",
32
+ "placeholder:text-muted-foreground",
33
+ "py-3",
34
+ "rounded-md",
35
+ "text-sm",
36
+ "w-full",
37
+ "text-white/80"
38
+ ]), o = e([
39
+ "mr-2",
40
+ "h-4",
41
+ "w-4",
42
+ "shrink-0",
43
+ "opacity-80",
44
+ "text-white"
45
+ ]);
92
46
  export {
93
- r as commandVariants,
94
- n as inputVariants,
95
- i as searchInconInputVariants,
96
- o as wrapperVariants
47
+ d as inputVariants,
48
+ o as searchInconInputVariants,
49
+ r as wrapperVariants
97
50
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { V as o } from "../../../index-CzSBQN5S.js";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
4
  const s = p(({ className: r, children: a, ...e }, i) => /* @__PURE__ */ m(o, { ref: i, className: r, ...e, children: /* @__PURE__ */ m("div", { className: "w-[500px]", children: a }) }));
5
5
  s.displayName = o.displayName;
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { V as m } from "../../../index-CzSBQN5S.js";
3
+ import { _ as m } from "../../../index-dRxIWVBr.js";
4
4
  const r = p((t, e) => /* @__PURE__ */ o(
5
5
  m.Empty,
6
6
  {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { V as o } from "../../../index-CzSBQN5S.js";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
4
  import { cn as a } from "../../../utils/index.js";
5
5
  const t = p(({ className: r, ...m }, d) => /* @__PURE__ */ e(
6
6
  o.Group,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as y, jsx as c } from "react/jsx-runtime";
2
- import { V as m } from "../../../index-CzSBQN5S.js";
2
+ import { _ as m } from "../../../index-dRxIWVBr.js";
3
3
  import s, { forwardRef as u } from "react";
4
4
  import { cn as f } from "../../../utils/index.js";
5
5
  import { searchInconInputVariants as v, inputVariants as g } from "../Command.variants.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { forwardRef as i, useContext as p, useCallback as c } from "react";
3
- import { V as r } from "../../../index-CzSBQN5S.js";
3
+ import { _ as r } from "../../../index-dRxIWVBr.js";
4
4
  import { cn as l } from "../../../utils/index.js";
5
5
  import { CommandContext as u } from "../contexts/Command.context.js";
6
6
  const f = i(({ className: a, onSelect: e, ...s }, o) => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { forwardRef as s } from "react";
3
- import { V as o } from "../../../index-CzSBQN5S.js";
3
+ import { _ as o } from "../../../index-dRxIWVBr.js";
4
4
  import { cn as t } from "../../../utils/index.js";
5
5
  const e = s(({ className: m, ...r }, a) => /* @__PURE__ */ i(
6
6
  o.List,
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { V as r } from "../../../index-CzSBQN5S.js";
3
+ import { _ as r } from "../../../index-dRxIWVBr.js";
4
4
  import { cn as t } from "../../../utils/index.js";
5
5
  const s = p(({ className: o, ...a }, m) => /* @__PURE__ */ e(
6
6
  r.Separator,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import { a as r, C as o, b as l } from "../../../index-DyKo5ZJT.js";
3
+ import { a as r, C as o, b as l } from "../../../index-DvFiic6N.js";
4
4
  import { cn as m } from "../../../utils/index.js";
5
5
  import { DialogOverlay as p } from "./DialogOverlay.js";
6
6
  import { X as c } from "../../../x-DU-Zw-L_.js";
@@ -1,19 +1,19 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { O as a } from "../../../index-DyKo5ZJT.js";
4
- import { cn as m } from "../../../utils/index.js";
5
- const r = i(({ className: t, ...e }, o) => /* @__PURE__ */ s(
2
+ import { forwardRef as d } from "react";
3
+ import { O as a } from "../../../index-DvFiic6N.js";
4
+ import { cn as i } from "../../../utils/index.js";
5
+ const m = d(({ className: t, ...e }, o) => /* @__PURE__ */ s(
6
6
  a,
7
7
  {
8
8
  ref: o,
9
- className: m(
10
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
9
+ className: i(
10
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 delay-200",
11
11
  t
12
12
  ),
13
13
  ...e
14
14
  }
15
15
  ));
16
- r.displayName = a.displayName;
16
+ m.displayName = a.displayName;
17
17
  export {
18
- r as DialogOverlay
18
+ m as DialogOverlay
19
19
  };