@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.50

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 (203) hide show
  1. package/dist/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
  2. package/dist/DatePicker.css +1 -1
  3. package/dist/Modal-CjC-CIJ8.js +99 -0
  4. package/dist/assets/icons/index.js +7 -0
  5. package/dist/chevron-down-DgT-uSF9.js +5 -0
  6. package/dist/chevron-right-DYvXLeql.js +7 -0
  7. package/dist/chevron-up-DEfvgPCw.js +54 -0
  8. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  9. package/dist/components/Alert/Alert.js +2 -2
  10. package/dist/components/AlertDialog/AlertDialog.js +81 -53
  11. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
  12. package/dist/components/AlertDialog/components/index.js +1 -1
  13. package/dist/components/Badge/Badge.js +41 -44
  14. package/dist/components/Badge/Badge.variants.js +52 -13
  15. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  16. package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
  17. package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
  18. package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
  19. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  20. package/dist/components/Button/Button.js +1 -1
  21. package/dist/components/Button/Button.variants.js +108 -98
  22. package/dist/components/Card/Card.variants.js +7 -12
  23. package/dist/components/Checkbox/Checkbox.js +108 -105
  24. package/dist/components/Checkbox/Checkbox.variants.js +34 -7
  25. package/dist/components/Command/Command.js +2 -2
  26. package/dist/components/Command/components/Command.js +1 -1
  27. package/dist/components/Command/components/CommandEmpty.js +1 -1
  28. package/dist/components/Command/components/CommandGroup.js +1 -1
  29. package/dist/components/Command/components/CommandInput.js +2 -2
  30. package/dist/components/Command/components/CommandItem.js +1 -1
  31. package/dist/components/Command/components/CommandList.js +1 -1
  32. package/dist/components/Command/components/CommandSeparator.js +1 -1
  33. package/dist/components/Command/components/DialogContent.js +2 -2
  34. package/dist/components/Command/components/DialogOverlay.js +1 -1
  35. package/dist/components/Counter/Counter.js +210 -0
  36. package/dist/components/Counter/Counter.variants.js +70 -0
  37. package/dist/components/Datepicker/DatePicker.js +1587 -1353
  38. package/dist/components/Divider/Divider.variants.js +1 -1
  39. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  40. package/dist/components/Filter/Filter.js +1 -1
  41. package/dist/components/Filter/Filter.variants.js +8 -7
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
  43. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
  44. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  45. package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
  46. package/dist/components/Filter/events/index.js +3 -3
  47. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  48. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  49. package/dist/components/Input/Input.js +185 -118
  50. package/dist/components/Input/Input.variants.js +24 -19
  51. package/dist/components/Loading/Loading.js +1 -7
  52. package/dist/components/Modal/Modal.js +2 -2
  53. package/dist/components/Modal/components/Body/Body.js +1 -1
  54. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  55. package/dist/components/Modal/components/Header/Header.js +1 -1
  56. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
  57. package/dist/components/Modal/components/index.js +1 -1
  58. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
  60. package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
  61. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
  62. package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
  63. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
  64. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
  65. package/dist/components/MultiSelectDropdown/components/index.js +8 -0
  66. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
  67. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
  68. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
  69. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  70. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
  71. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  72. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
  73. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
  74. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
  75. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
  76. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  77. package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
  78. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  79. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  80. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  81. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  82. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
  83. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  84. package/dist/components/PieChart/PieChart.js +463 -482
  85. package/dist/components/Radio/Radio.js +47 -44
  86. package/dist/components/Radio/Radio.variants.js +12 -8
  87. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  88. package/dist/components/RadioGroup/RadioGroup.js +10 -10
  89. package/dist/components/Range/Range.js +1 -1
  90. package/dist/components/Select/Select.js +48 -0
  91. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
  92. package/dist/components/Select/components/List/List.js +172 -0
  93. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
  94. package/dist/components/Select/components/ListItem/ListItem.js +117 -0
  95. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
  96. package/dist/components/Select/components/Wrapper.js +226 -0
  97. package/dist/components/Select/constants/index.js +4 -0
  98. package/dist/components/Select/constants/pagination.js +4 -0
  99. package/dist/components/Select/contexts/index.js +6 -0
  100. package/dist/components/Select/contexts/select.context.js +36 -0
  101. package/dist/components/Select/contexts/select.hook.js +11 -0
  102. package/dist/components/Select/contexts/select.provider.js +58 -0
  103. package/dist/components/Select/hooks/useNavigationList.js +50 -0
  104. package/dist/components/Select/hooks/useSelect.js +103 -0
  105. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  106. package/dist/components/Slider/Slider.js +1 -1
  107. package/dist/components/Switch/Switch.js +156 -129
  108. package/dist/components/Switch/Switch.variants.js +19 -10
  109. package/dist/components/Tabs/Tabs.js +1 -1
  110. package/dist/components/Tabs/Tabs.variants.js +4 -3
  111. package/dist/components/Tabs/components/Content.js +1 -1
  112. package/dist/components/Tabs/components/List.js +1 -1
  113. package/dist/components/Tabs/components/Trigger.js +1 -1
  114. package/dist/components/Tag/Tag.js +1 -1
  115. package/dist/components/Tag/Tag.variants.js +1 -0
  116. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
  117. package/dist/components/TimePicker/TimePicker.js +1 -1
  118. package/dist/components/TimePicker/TimePicker.variants.js +26 -14
  119. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
  120. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
  121. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
  122. package/dist/components/Toast/Toast.js +283 -256
  123. package/dist/components/Toast/Toast.variants.js +37 -24
  124. package/dist/components/Tooltip/Tooltip.js +15 -14
  125. package/dist/components/Tooltip/Tooltip.variants.js +5 -4
  126. package/dist/components/Typography/Typography.js +23 -25
  127. package/dist/components/Typography/Typography.variants.js +55 -52
  128. package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
  129. package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
  130. package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
  131. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
  132. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
  133. package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
  134. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
  135. package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
  136. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
  137. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
  138. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
  139. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
  140. package/dist/components/VirtualizedTable/components/index.js +8 -6
  141. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  142. package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
  143. package/dist/components/index.js +94 -86
  144. package/dist/contexts/theme.provider.js +0 -1
  145. package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
  146. package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
  147. package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
  148. package/dist/index-BG8O18ZY.js +93 -0
  149. package/dist/index-BKjcReYh.js +55 -0
  150. package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
  151. package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
  152. package/dist/index-BmVmDQGH.js +662 -0
  153. package/dist/index-BvoZGpli.js +60 -0
  154. package/dist/index-Byr10W8m.js +1873 -0
  155. package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
  156. package/dist/index-CeZcoQDw.js +479 -0
  157. package/dist/index-D6KzX_ef.js +135 -0
  158. package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
  159. package/dist/index-DKfEnhKr.js +200 -0
  160. package/dist/index-DLcqcWxM.js +29 -0
  161. package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
  162. package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
  163. package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
  164. package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
  165. package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
  166. package/dist/index.d.ts +2142 -99
  167. package/dist/index.js +116 -106
  168. package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
  169. package/dist/loader-juvMSJ9L.js +5 -0
  170. package/dist/package.json +43 -33
  171. package/dist/styles.css +1 -1
  172. package/dist/ui/civo-theme.css +194 -168
  173. package/dist/ui/theme.css +27 -0
  174. package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
  175. package/dist/utils/index.js +534 -501
  176. package/dist/x-BXShoIAM.js +8 -0
  177. package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
  178. package/package.json +43 -33
  179. package/dist/Modal-D-NOEWMX.js +0 -98
  180. package/dist/chevron-down-MZvQoT2F.js +0 -11
  181. package/dist/chevron-right-VYBOBhRt.js +0 -19
  182. package/dist/components/Dropdown/Dropdown.js +0 -42
  183. package/dist/components/Dropdown/components/List/List.js +0 -79
  184. package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
  185. package/dist/components/Dropdown/components/Wrapper.js +0 -205
  186. package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
  187. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  188. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
  189. package/dist/components/Dropdown/contexts/index.js +0 -6
  190. package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
  191. package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
  192. package/dist/components/NumberInput/NumberInput.js +0 -179
  193. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  194. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  195. package/dist/index-BITvcJAz.js +0 -423
  196. package/dist/index-BfXxHr_2.js +0 -125
  197. package/dist/index-Cvx4lqTq.js +0 -47
  198. package/dist/index-DBbEcSUG.js +0 -31
  199. package/dist/index-DQH6odE9.js +0 -82
  200. package/dist/index-DzIBBMjs.js +0 -436
  201. package/dist/index-os7vysFS.js +0 -131
  202. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  203. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
@@ -0,0 +1,7 @@
1
+ import { S as a } from "../../loader-juvMSJ9L.js";
2
+ import * as e from "react";
3
+ const L = (t) => /* @__PURE__ */ e.createElement("svg", { width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M8.16667 0.8225L7.34417 0L4.08333 3.26083L0.8225 0L0 0.8225L3.26083 4.08333L0 7.34417L0.8225 8.16667L4.08333 4.90583L7.34417 8.16667L8.16667 7.34417L4.90583 4.08333L8.16667 0.8225Z", fill: "#364153" }));
4
+ export {
5
+ a as Loader,
6
+ L as X
7
+ };
@@ -0,0 +1,5 @@
1
+ import { c as o } from "./createLucideIcon-D4r5Phnh.js";
2
+ const n = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], e = o("chevron-down", n);
3
+ export {
4
+ e as C
5
+ };
@@ -0,0 +1,7 @@
1
+ import { c as o } from "./createLucideIcon-D4r5Phnh.js";
2
+ const e = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], n = o("chevron-left", e);
3
+ const t = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], h = o("chevron-right", t);
4
+ export {
5
+ n as C,
6
+ h as a
7
+ };
@@ -0,0 +1,54 @@
1
+ import l, { forwardRef as c } from "react";
2
+ import { P as a } from "./index-BOE_3f_Z.js";
3
+ function p() {
4
+ return p = Object.assign || function(e) {
5
+ for (var o = 1; o < arguments.length; o++) {
6
+ var t = arguments[o];
7
+ for (var r in t)
8
+ Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
9
+ }
10
+ return e;
11
+ }, p.apply(this, arguments);
12
+ }
13
+ function u(e, o) {
14
+ if (e == null) return {};
15
+ var t = v(e, o), r, n;
16
+ if (Object.getOwnPropertySymbols) {
17
+ var i = Object.getOwnPropertySymbols(e);
18
+ for (n = 0; n < i.length; n++)
19
+ r = i[n], !(o.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
20
+ }
21
+ return t;
22
+ }
23
+ function v(e, o) {
24
+ if (e == null) return {};
25
+ var t = {}, r = Object.keys(e), n, i;
26
+ for (i = 0; i < r.length; i++)
27
+ n = r[i], !(o.indexOf(n) >= 0) && (t[n] = e[n]);
28
+ return t;
29
+ }
30
+ var s = c(function(e, o) {
31
+ var t = e.color, r = t === void 0 ? "currentColor" : t, n = e.size, i = n === void 0 ? 24 : n, f = u(e, ["color", "size"]);
32
+ return /* @__PURE__ */ l.createElement("svg", p({
33
+ ref: o,
34
+ xmlns: "http://www.w3.org/2000/svg",
35
+ width: i,
36
+ height: i,
37
+ viewBox: "0 0 24 24",
38
+ fill: "none",
39
+ stroke: r,
40
+ strokeWidth: "2",
41
+ strokeLinecap: "round",
42
+ strokeLinejoin: "round"
43
+ }, f), /* @__PURE__ */ l.createElement("polyline", {
44
+ points: "18 15 12 9 6 15"
45
+ }));
46
+ });
47
+ s.propTypes = {
48
+ color: a.string,
49
+ size: a.oneOfType([a.string, a.number])
50
+ };
51
+ s.displayName = "ChevronUp";
52
+ export {
53
+ s as C
54
+ };
@@ -0,0 +1,5 @@
1
+ import { c as o } from "./createLucideIcon-D4r5Phnh.js";
2
+ const c = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], n = o("chevron-up", c);
3
+ export {
4
+ n as C
5
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsx as l, jsxs as s } from "react/jsx-runtime";
2
2
  import { useRef as f, useState as h, useMemo as b, isValidElement as C, useCallback as V, useEffect as v } from "react";
3
- import { V as k } from "../../index-DBbEcSUG.js";
3
+ import { V as k } from "../../index-BKjcReYh.js";
4
4
  import { cn as a } from "../../utils/index.js";
5
5
  import { closeButtonVariants as w, alertVariants as x } from "./Alert.variants.js";
6
- import { X as y } from "../../x-4F_5p77m.js";
6
+ import { X as y } from "../../x-Eoa9FJjA.js";
7
7
  const R = ({
8
8
  theme: i,
9
9
  type: o,
@@ -1,76 +1,103 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { R as A, A as D, P as v, O as j, C as k, T, D as w, a as P, b as R } from "../../index-os7vysFS.js";
3
- import { Button as l } from "../Button/Button.js";
4
- import { cn as t } from "../../utils/index.js";
5
- import { useAlertDialog as z } from "./hooks/useAlertDialog.js";
6
- const G = ({
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { R as j, A as T, P as w, O as K, C as P, T as z, D as B, a as E, b as S } from "../../index-D6KzX_ef.js";
3
+ import { useRef as q, useState as F, useEffect as G } from "react";
4
+ import { Button as s } from "../Button/Button.js";
5
+ import { cn as n } from "../../utils/index.js";
6
+ import { useAlertDialog as H } from "./hooks/useAlertDialog.js";
7
+ const I = ({
7
8
  buttonCancel: {
8
- className: s,
9
- text: i = "Cancel",
10
- ...r
9
+ className: i,
10
+ text: o = "Cancel",
11
+ ...c
11
12
  } = {},
12
13
  buttonConfirm: {
13
- className: o,
14
- text: c = "OK",
15
- ...m
14
+ className: d,
15
+ text: m = "OK",
16
+ ...f
16
17
  } = {},
17
- buttonTriggerClassName: d,
18
- buttonTriggerText: p,
19
- description: f,
20
- showCancelButton: h = !0,
21
- theme: n,
22
- title: x,
23
- wrapperClassName: u,
24
- onConfirm: C,
25
- ...b
18
+ buttonTriggerClassName: p,
19
+ buttonTriggerVariant: u,
20
+ buttonTriggerText: h,
21
+ description: x,
22
+ showCancelButton: b = !0,
23
+ theme: a,
24
+ title: g,
25
+ wrapperClassName: C,
26
+ onConfirm: N,
27
+ ...y
26
28
  }) => {
27
- const { isOpen: N, handleCancel: g, handleConfirm: y, handleOpen: O } = z({
28
- onConfirm: C
29
+ const r = q(null), [k, A] = F(null), { isOpen: D, handleCancel: O, handleConfirm: v, handleOpen: R } = H({
30
+ onConfirm: N
29
31
  });
30
- return /* @__PURE__ */ a(A, { open: N, ...b, children: [
32
+ return G(() => {
33
+ if (!r.current || a)
34
+ return;
35
+ const l = r.current.closest("[data-theme]");
36
+ l && A(l);
37
+ }, []), /* @__PURE__ */ t(j, { open: D, ...y, children: [
31
38
  /* @__PURE__ */ e(
32
- D,
39
+ T,
33
40
  {
34
- className: d,
35
- text: p,
36
- "data-theme": n,
37
- onOpen: O
41
+ ref: r,
42
+ className: p,
43
+ variant: u,
44
+ text: h,
45
+ "data-theme": a,
46
+ onOpen: R
38
47
  }
39
48
  ),
40
- /* @__PURE__ */ a(v, { children: [
41
- /* @__PURE__ */ e(j, { className: "bg-black opacity-70 inset-0 fixed animate-in fade-in-0" }),
42
- /* @__PURE__ */ a(
43
- k,
49
+ /* @__PURE__ */ t(w, { container: k, children: [
50
+ /* @__PURE__ */ e(K, { className: "bg-black opacity-70 dark:opacity-85 inset-0 fixed animate-in fade-in-0" }),
51
+ /* @__PURE__ */ t(
52
+ P,
44
53
  {
45
- "data-theme": n,
46
- className: t(
47
- "bg-white rounded-md fixed top-1/2 left-1/2 -translate-y-2/4 -translate-x-2/4 flex flex-col gap-8 p-8 animate-in fade-in-0 zoom-in-85",
48
- u
54
+ "data-theme": a,
55
+ className: n(
56
+ "bg-white",
57
+ "rounded-md",
58
+ "fixed",
59
+ "top-1/2",
60
+ "left-1/2",
61
+ "-translate-y-2/4",
62
+ "-translate-x-2/4",
63
+ "flex",
64
+ "flex-col",
65
+ "gap-6",
66
+ "p-8",
67
+ "animate-in",
68
+ "fade-in-0",
69
+ "zoom-in-85",
70
+ "border",
71
+ "border-transparent",
72
+ "dark:bg-metal-800",
73
+ "dark:border-metal-700",
74
+ "dark:border-slate-700",
75
+ C
49
76
  ),
50
77
  children: [
51
- /* @__PURE__ */ e(T, { className: "text-base text-slate-700 font-semibold", children: x }),
52
- /* @__PURE__ */ e(w, { className: "text-sm text-slate-800", children: f }),
53
- /* @__PURE__ */ a("div", { className: "flex flex-row gap-5 justify-end", children: [
54
- h && /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e(
55
- l,
78
+ /* @__PURE__ */ e(z, { className: "text-base text-slate-700 font-semibold", children: g }),
79
+ /* @__PURE__ */ e(B, { className: "text-sm text-slate-800", children: x }),
80
+ /* @__PURE__ */ t("div", { className: "flex flex-row gap-2 justify-end", children: [
81
+ b && /* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(
82
+ s,
56
83
  {
57
84
  type: "button",
58
85
  variant: "secondary",
59
- className: t(s),
60
- onClick: g,
61
- ...r,
62
- children: i
86
+ className: n(i),
87
+ onClick: O,
88
+ ...c,
89
+ children: o
63
90
  }
64
91
  ) }),
65
- /* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ e(
66
- l,
92
+ /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(
93
+ s,
67
94
  {
68
95
  type: "button",
69
96
  variant: "primary",
70
- className: t(o),
71
- onClick: y,
72
- ...m,
73
- children: c
97
+ className: n(d),
98
+ onClick: v,
99
+ ...f,
100
+ children: m
74
101
  }
75
102
  ) })
76
103
  ] })
@@ -80,6 +107,7 @@ const G = ({
80
107
  ] })
81
108
  ] });
82
109
  };
110
+ I.displayName = "KonstructAlertDialog";
83
111
  export {
84
- G as AlertDialog
112
+ I as AlertDialog
85
113
  };
@@ -1,7 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import { A as p } from "../../../index-os7vysFS.js";
2
+ import { A as e } from "../../../index-D6KzX_ef.js";
3
+ import "react";
3
4
  import "../../Button/Button.js";
4
5
  import "../../../utils/index.js";
5
6
  export {
6
- p as AlertDialogTrigger
7
+ e as AlertDialogTrigger
7
8
  };
@@ -1,4 +1,4 @@
1
- import { A as g } from "../../../index-os7vysFS.js";
1
+ import { A as g } from "../../../index-D6KzX_ef.js";
2
2
  export {
3
3
  g as AlertDialogTrigger
4
4
  };
@@ -1,77 +1,74 @@
1
- import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
- import { useRef as f, useState as h, useCallback as g, useEffect as v } from "react";
1
+ import { jsxs as u, jsx as s } from "react/jsx-runtime";
2
+ import { useRef as y, useState as w, useCallback as S, useEffect as x } from "react";
3
+ import { S as V } from "../../loader-juvMSJ9L.js";
3
4
  import { cn as c } from "../../utils/index.js";
4
- import { buttonDismissVariants as w, badgeVariants as x } from "./Badge.variants.js";
5
- import { c as y } from "../../createLucideIcon-D2CN7Ma9.js";
6
- /**
7
- * @license lucide-react v0.545.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 M = [
13
- ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
14
- ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
15
- ], Z = y("x", M), N = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M7.05002%201.45002C7.05002%201.17155%206.9394%200.904476%206.74249%200.707562C6.54557%200.510649%206.2785%200.400024%206.00002%200.400024C5.72155%200.400024%205.45448%200.510649%205.25756%200.707562C5.06065%200.904476%204.95002%201.17155%204.95002%201.45002C4.95002%201.7285%205.06065%201.99557%205.25756%202.19249C5.45448%202.3894%205.72155%202.50002%206.00002%202.50002C6.2785%202.50002%206.54557%202.3894%206.74249%202.19249C6.9394%201.99557%207.05002%201.7285%207.05002%201.45002ZM7.05002%2010.55C7.05002%2010.2715%206.9394%2010.0045%206.74249%209.80756C6.54557%209.61065%206.2785%209.50002%206.00002%209.50002C5.72155%209.50002%205.45448%209.61065%205.25756%209.80756C5.06065%2010.0045%204.95002%2010.2715%204.95002%2010.55C4.95002%2010.8285%205.06065%2011.0956%205.25756%2011.2925C5.45448%2011.4894%205.72155%2011.6%206.00002%2011.6C6.2785%2011.6%206.54557%2011.4894%206.74249%2011.2925C6.9394%2011.0956%207.05002%2010.8285%207.05002%2010.55ZM1.45002%207.05002C1.7285%207.05002%201.99557%206.9394%202.19249%206.74249C2.3894%206.54557%202.50002%206.2785%202.50002%206.00002C2.50002%205.72155%202.3894%205.45448%202.19249%205.25756C1.99557%205.06065%201.7285%204.95002%201.45002%204.95002C1.17155%204.95002%200.904476%205.06065%200.707562%205.25756C0.510649%205.45448%200.400024%205.72155%200.400024%206.00002C0.400024%206.2785%200.510649%206.54557%200.707562%206.74249C0.904476%206.9394%201.17155%207.05002%201.45002%207.05002ZM11.6%206.00002C11.6%205.72155%2011.4894%205.45448%2011.2925%205.25756C11.0956%205.06065%2010.8285%204.95002%2010.55%204.95002C10.2715%204.95002%2010.0045%205.06065%209.80756%205.25756C9.61065%205.45448%209.50002%205.72155%209.50002%206.00002C9.50002%206.2785%209.61065%206.54557%209.80756%206.74249C10.0045%206.9394%2010.2715%207.05002%2010.55%207.05002C10.8285%207.05002%2011.0956%206.9394%2011.2925%206.74249C11.4894%206.54557%2011.6%206.2785%2011.6%206.00002ZM3.52596%209.9594C3.62349%209.86187%203.70085%209.74609%203.75363%209.61867C3.80641%209.49124%203.83358%209.35467%203.83358%209.21674C3.83358%209.07882%203.80641%208.94225%203.75363%208.81482C3.70085%208.6874%203.62349%208.57161%203.52596%208.47409C3.42844%208.37656%203.31265%208.2992%203.18523%208.24642C3.0578%208.19364%202.92123%208.16647%202.78331%208.16647C2.50476%208.16647%202.23761%208.27712%202.04065%208.47409C1.84368%208.67105%201.73303%208.93819%201.73303%209.21674C1.73303%209.49529%201.84368%209.76243%202.04065%209.9594C2.23761%2010.1564%202.50476%2010.267%202.78331%2010.267C3.06186%2010.267%203.329%2010.1564%203.52596%209.9594ZM3.52596%203.52377C3.62833%203.42738%203.7103%203.31141%203.76701%203.18274C3.82371%203.05407%203.85399%202.91532%203.85605%202.77472C3.85812%202.63413%203.83192%202.49455%203.77902%202.36427C3.72611%202.23399%203.64758%202.11566%203.54808%202.01631C3.44858%201.91695%203.33014%201.8386%203.19978%201.78589C3.06942%201.73318%202.92981%201.70718%202.78921%201.70945C2.64862%201.71172%202.50992%201.74221%202.38133%201.7991C2.25274%201.85599%202.13689%201.93814%202.04065%202.04065C1.84368%202.23761%201.73303%202.50476%201.73303%202.78331C1.73303%203.06186%201.84368%203.329%202.04065%203.52596C2.23761%203.72293%202.50476%203.83358%202.78331%203.83358C3.06186%203.83358%203.329%203.72293%203.52596%203.52596V3.52377ZM8.47409%209.9594C8.57161%2010.0569%208.6874%2010.1343%208.81482%2010.1871C8.94225%2010.2399%209.07882%2010.267%209.21674%2010.267C9.35467%2010.267%209.49124%2010.2399%209.61867%2010.1871C9.74609%2010.1343%209.86187%2010.0569%209.9594%209.9594C10.0569%209.86187%2010.1343%209.74609%2010.1871%209.61867C10.2399%209.49124%2010.267%209.35467%2010.267%209.21674C10.267%209.07882%2010.2399%208.94225%2010.1871%208.81482C10.1343%208.6874%2010.0569%208.57161%209.9594%208.47409C9.86187%208.37656%209.74609%208.2992%209.61867%208.24642C9.49124%208.19364%209.35467%208.16647%209.21674%208.16647C9.07882%208.16647%208.94225%208.19364%208.81482%208.24642C8.6874%208.2992%208.57161%208.37656%208.47409%208.47409C8.37656%208.57161%208.2992%208.6874%208.24642%208.81482C8.19364%208.94225%208.16647%209.07882%208.16647%209.21674C8.16647%209.35467%208.19364%209.49124%208.24642%209.61867C8.2992%209.74609%208.37656%209.86187%208.47409%209.9594Z'%20fill='currentColor'%20/%3e%3c/svg%3e", B = ({
16
- className: d,
17
- dismissible: m = !1,
18
- label: a,
19
- loading: r = !1,
20
- size: o,
21
- variant: i,
5
+ import { buttonDismissVariants as D, badgeVariants as j } from "./Badge.variants.js";
6
+ import { S as p } from "../../index-BvoZGpli.js";
7
+ import { X as E } from "../../x-BXShoIAM.js";
8
+ const q = ({
9
+ className: b,
10
+ dismissible: f = !1,
11
+ isSelectable: h = !0,
12
+ label: r,
13
+ leftIcon: i,
14
+ loading: n = !1,
15
+ rightIcon: o,
16
+ size: l,
17
+ variant: m,
22
18
  onClick: e,
23
- onDismiss: n
19
+ onDismiss: d
24
20
  }) => {
25
- const C = f(null), [u, p] = h("visible"), b = g(
21
+ const a = y(null), [v, N] = w("visible"), g = S(
26
22
  (t) => {
27
- t.stopPropagation(), n?.(), p("hidden");
23
+ t.stopPropagation(), d?.(), N("hidden");
28
24
  },
29
- [n]
25
+ [d]
30
26
  );
31
- return v(() => {
27
+ return x(() => {
32
28
  const t = new AbortController();
33
- return C.current?.addEventListener(
29
+ return a.current?.addEventListener(
34
30
  "animationend",
35
31
  () => {
36
- C.current?.style.setProperty("display", "none"), C.current?.remove();
32
+ a.current?.style.setProperty("display", "none"), a.current?.remove();
37
33
  },
38
34
  { signal: t.signal }
39
35
  ), () => t.abort();
40
- }, []), /* @__PURE__ */ l(
36
+ }, []), /* @__PURE__ */ u(
41
37
  "span",
42
38
  {
43
- ref: C,
44
- className: c(
45
- x({ variant: i, size: o, className: d }),
46
- e && "cursor-pointer"
47
- ),
39
+ ref: a,
40
+ className: c(j({ variant: m, size: l, className: b }), {
41
+ "select-none": !h,
42
+ "cursor-pointer": e
43
+ }),
48
44
  role: e ? "button" : void 0,
49
45
  onClick: e,
50
46
  tabIndex: e ? 0 : void 0,
51
- "aria-label": e ? `${a} badge` : void 0,
52
- "aria-busy": r,
47
+ "aria-label": e ? `${r} badge` : void 0,
48
+ "aria-busy": n,
53
49
  "aria-live": "polite",
54
- "data-state": u,
50
+ "data-state": v,
55
51
  children: [
56
- r && /* @__PURE__ */ s(N, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
57
- a,
58
- m && /* @__PURE__ */ l(
52
+ n && /* @__PURE__ */ s(V, { className: "h-3 w-3 animate-spin animate-duration-time-2" }),
53
+ i ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: i }) : null,
54
+ r,
55
+ f ? /* @__PURE__ */ u(
59
56
  "button",
60
57
  {
61
58
  type: "button",
62
- className: c(w({ size: o, variant: i })),
63
- onClick: b,
59
+ className: c(D({ size: l, variant: m })),
60
+ onClick: g,
64
61
  "aria-label": "Dismiss",
65
62
  children: [
66
- /* @__PURE__ */ s(Z, { className: "h-full w-full" }),
63
+ /* @__PURE__ */ s(E, { className: "h-full w-full" }),
67
64
  /* @__PURE__ */ s("span", { className: "sr-only", children: "Dismiss" })
68
65
  ]
69
66
  }
70
- )
67
+ ) : o ? /* @__PURE__ */ s(p, { className: "h-3 w-3", children: o }) : null
71
68
  ]
72
69
  }
73
70
  );
74
71
  };
75
72
  export {
76
- B as Badge
73
+ q as Badge
77
74
  };
@@ -17,14 +17,51 @@ const a = e(
17
17
  {
18
18
  variants: {
19
19
  variant: {
20
- default: ["bg-gray-100", "text-gray-800"],
21
- danger: ["bg-red-100", "text-red-800"],
22
- info: ["bg-blue-100", "text-blue-800"],
23
- success: ["bg-green-100", "text-green-800"],
24
- warning: ["bg-yellow-100", "text-yellow-800"]
20
+ default: [
21
+ "bg-gray-100",
22
+ "text-gray-800",
23
+ "dark:text-gray-300",
24
+ "dark:bg-gray-300/15"
25
+ ],
26
+ danger: [
27
+ "bg-red-100",
28
+ "text-red-800",
29
+ "dark:text-red-400",
30
+ "dark:bg-red-400/10"
31
+ ],
32
+ info: [
33
+ "bg-blue-100",
34
+ "text-blue-800",
35
+ "dark:text-sky-400",
36
+ "dark:bg-sky-400/10"
37
+ ],
38
+ success: [
39
+ "bg-green-100",
40
+ "text-green-800",
41
+ "dark:text-green-400",
42
+ "dark:bg-green-400/10"
43
+ ],
44
+ warning: [
45
+ "bg-yellow-100",
46
+ "text-yellow-800",
47
+ "dark:text-amber-300",
48
+ "dark:bg-amber-300/10"
49
+ ],
50
+ violet: [
51
+ "bg-violet-50",
52
+ "text-violet-800",
53
+ "dark:text-purple-400",
54
+ "dark:bg-purple-400/8"
55
+ ],
56
+ orange: [
57
+ "bg-orange-50",
58
+ "text-orange-800",
59
+ "dark:text-orange-400",
60
+ "dark:bg-orange-400/10"
61
+ ]
25
62
  },
26
63
  size: {
27
- default: "text-sm leading-[16px]"
64
+ default: "text-xs leading-4"
28
65
  }
29
66
  },
30
67
  defaultVariants: {
@@ -32,7 +69,7 @@ const a = e(
32
69
  size: "default"
33
70
  }
34
71
  }
35
- ), n = e(
72
+ ), r = e(
36
73
  [
37
74
  "rounded-full",
38
75
  "inline-flex",
@@ -46,11 +83,13 @@ const a = e(
46
83
  {
47
84
  variants: {
48
85
  variant: {
49
- default: ["text-gray-700"],
50
- danger: ["text-red-700"],
51
- info: ["text-blue-700"],
52
- success: ["text-green-700"],
53
- warning: ["text-yellow-700"]
86
+ default: ["text-gray-700", "dark:text-gray-300"],
87
+ danger: ["text-red-700", "dark:text-red-400"],
88
+ info: ["text-blue-700", "dark:text-sky-400"],
89
+ success: ["text-green-700", "dark:text-green-400"],
90
+ warning: ["text-yellow-700", "dark:text-amber-300"],
91
+ violet: ["text-violet-700", "dark:text-purple-400"],
92
+ orange: ["text-orange-800", "dark:text-orange-400"]
54
93
  },
55
94
  size: {
56
95
  default: ["h-3.5", "w-3.5"]
@@ -64,5 +103,5 @@ const a = e(
64
103
  );
65
104
  export {
66
105
  a as badgeVariants,
67
- n as buttonDismissVariants
106
+ r as buttonDismissVariants
68
107
  };
@@ -3,7 +3,7 @@ import u, { forwardRef as b, useId as v, Fragment as y } from "react";
3
3
  import { cn as h } from "../../utils/index.js";
4
4
  import { breadcrumbVariants as O, breadcrumbWrapperVariants as j } from "./Breadcrumb.variants.js";
5
5
  import { Item as w } from "./components/Item/Item.js";
6
- import { P as l } from "../../index-N2OStZoU.js";
6
+ import { P as l } from "../../index-BOE_3f_Z.js";
7
7
  function m() {
8
8
  return m = Object.assign || function(r) {
9
9
  for (var o = 1; o < arguments.length; o++) {
@@ -1,6 +1,6 @@
1
1
  import { c as e } from "../../index-D29mdTf5.js";
2
- const r = e([
3
- "text-slate-500",
2
+ const t = e([
3
+ "text-gray-600",
4
4
  "text-md",
5
5
  "flex",
6
6
  "gap-2",
@@ -8,5 +8,5 @@ const r = e([
8
8
  ]), a = e(["flex", "gap-1", "items-center"]);
9
9
  export {
10
10
  a as breadcrumbVariants,
11
- r as breadcrumbWrapperVariants
11
+ t as breadcrumbWrapperVariants
12
12
  };
@@ -1,50 +1,50 @@
1
- import { jsx as a, Fragment as p } from "react/jsx-runtime";
1
+ import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
2
  import { cn as m } from "../../../../utils/index.js";
3
- import { u as h, L as b } from "../../../../useBreadcrumb-B8DnuqkR.js";
4
- import { breadcrumbLinkVariants as o, breadcrumbLabelVariants as k } from "./Item.variants.js";
5
- const I = ({
3
+ import { u as h, L as b } from "../../../../useBreadcrumb-BAHbGQ_O.js";
4
+ import { breadcrumbLinkVariants as d, breadcrumbLabelVariants as k } from "./Item.variants.js";
5
+ const g = ({
6
6
  isActive: r,
7
7
  isLast: t,
8
8
  label: n,
9
9
  target: s,
10
10
  theme: c,
11
- to: e,
12
- component: d = "a",
13
- isReactRouterDom: l = !1
11
+ to: a,
12
+ component: l = "a"
14
13
  }) => {
15
- const { isInsideRouter: u } = h(), i = (f) => {
16
- e === "#" && f.preventDefault();
17
- };
18
- return /* @__PURE__ */ a(
14
+ const { isInsideRouter: u } = h(), o = (f) => {
15
+ a === "#" && f.preventDefault();
16
+ }, i = l;
17
+ return /* @__PURE__ */ e(
19
18
  "li",
20
19
  {
21
20
  "aria-current": t ? "page" : void 0,
22
21
  className: "group font-medium text-inherit",
23
22
  "data-theme": c,
24
- children: e ? /* @__PURE__ */ a(p, { children: u || l ? /* @__PURE__ */ a(
23
+ children: a ? /* @__PURE__ */ e(p, { children: u ? /* @__PURE__ */ e(
25
24
  b,
26
25
  {
27
- to: e,
26
+ to: a,
28
27
  target: s,
29
- className: m(o({ isActive: r })),
28
+ className: m(d({ isActive: r })),
30
29
  "aria-disabled": r ? "true" : "false",
31
- onClick: i,
30
+ onClick: o,
32
31
  children: n
33
32
  }
34
- ) : /* @__PURE__ */ a(
35
- d,
33
+ ) : /* @__PURE__ */ e(
34
+ i,
36
35
  {
37
- href: e,
36
+ href: i === "a" ? a : void 0,
37
+ to: i !== "a" ? a : void 0,
38
38
  target: s,
39
- className: m(o({ isActive: r })),
39
+ className: m(d({ isActive: r })),
40
40
  "aria-disabled": r ? "true" : "false",
41
- onClick: i,
41
+ onClick: o,
42
42
  children: n
43
43
  }
44
- ) }) : /* @__PURE__ */ a("span", { className: m(k({ isActive: r })), children: n })
44
+ ) }) : /* @__PURE__ */ e("span", { className: m(k({ isActive: r })), children: n })
45
45
  }
46
46
  );
47
47
  };
48
48
  export {
49
- I as Item
49
+ g as Item
50
50
  };