@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.106

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 (151) hide show
  1. package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-BOrb536P.js} +39 -39
  2. package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-DVBxqgW_.js} +2 -2
  3. package/dist/Checkbox-B20uoUKD.js +249 -0
  4. package/dist/{CommandInput-BLq69pOT.js → CommandInput-BWt6-vUK.js} +3 -3
  5. package/dist/{Counter-BV680M5r.js → Counter-DiQb-he2.js} +2 -2
  6. package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
  7. package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-hCVYZ1LA.js} +5 -5
  8. package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-CnJjnsp6.js} +11 -8
  9. package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-BT2yUUJ-.js} +2 -2
  10. package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-DgCBCa5X.js} +1 -1
  11. package/dist/{Input-Cf44DzfE.js → Input-wp-rsCmX.js} +2 -2
  12. package/dist/{Modal-Dyn088X7.js → Modal-CkAf9UY7.js} +3 -3
  13. package/dist/{Switch-aPhL5rNG.js → Switch-CyJXptgc.js} +80 -77
  14. package/dist/{Toast-3NEz7LLa.js → Toast-DLJDExxw.js} +7 -6
  15. package/dist/{Wrapper-DP6Sxngx.js → Wrapper-B8Ja3k4j.js} +63 -63
  16. package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CvDRHgN4.js} +3 -3
  17. package/dist/components/Alert/Alert.js +1 -1
  18. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  19. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  20. package/dist/components/AlertDialog/components/index.js +1 -1
  21. package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
  22. package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
  23. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  24. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
  25. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  26. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  27. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  28. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  29. package/dist/components/Checkbox/Checkbox.js +1 -1
  30. package/dist/components/Command/Command.js +1 -1
  31. package/dist/components/Command/components/Command.js +1 -1
  32. package/dist/components/Command/components/CommandEmpty.js +1 -1
  33. package/dist/components/Command/components/CommandGroup.js +1 -1
  34. package/dist/components/Command/components/CommandInput.js +1 -1
  35. package/dist/components/Command/components/CommandItem.js +1 -1
  36. package/dist/components/Command/components/CommandList.js +1 -1
  37. package/dist/components/Command/components/CommandSeparator.js +1 -1
  38. package/dist/components/Command/components/DialogContent.js +2 -2
  39. package/dist/components/Command/components/DialogOverlay.js +1 -1
  40. package/dist/components/Command/components/index.js +1 -1
  41. package/dist/components/Counter/Counter.js +1 -1
  42. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
  43. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +2 -2
  44. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  45. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  46. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  47. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  48. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
  49. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
  50. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  51. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  52. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  53. package/dist/components/Datepicker/DatePicker.js +1 -1
  54. package/dist/components/Drawer/Drawer.js +27 -25
  55. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  56. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
  57. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
  58. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
  59. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
  60. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
  61. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +42 -40
  62. package/dist/components/Filter/utils/index.js +1 -1
  63. package/dist/components/ImageUpload/ImageUpload.js +1 -1
  64. package/dist/components/Input/Input.js +1 -1
  65. package/dist/components/LineChart/LineChart.js +1 -1
  66. package/dist/components/Modal/Modal.js +1 -1
  67. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  68. package/dist/components/Modal/components/index.js +1 -1
  69. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  70. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  71. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  72. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  73. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
  74. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  75. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  76. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
  77. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
  78. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  79. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  80. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  81. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  82. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  83. package/dist/components/PieChart/PieChart.js +30 -27
  84. package/dist/components/Range/Range.js +1 -1
  85. package/dist/components/Select/Select.js +36 -33
  86. package/dist/components/Select/components/List/List.js +31 -31
  87. package/dist/components/Select/hooks/useNavigationList.js +2 -3
  88. package/dist/components/Select/hooks/useSelect.js +8 -8
  89. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  90. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
  91. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
  92. package/dist/components/Sidebar/components/index.js +1 -1
  93. package/dist/components/Slider/Slider.js +1 -1
  94. package/dist/components/Switch/Switch.js +1 -1
  95. package/dist/components/Switch/Switch.variants.js +15 -7
  96. package/dist/components/Table/components/Filter.js +1 -1
  97. package/dist/components/Tabs/Tabs.js +1 -1
  98. package/dist/components/Tabs/components/Content.js +1 -1
  99. package/dist/components/Tabs/components/List.js +1 -1
  100. package/dist/components/Tabs/components/Trigger.js +1 -1
  101. package/dist/components/TagSelect/TagSelect.js +1 -1
  102. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  103. package/dist/components/TagSelect/components/index.js +1 -1
  104. package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
  105. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +16 -16
  106. package/dist/components/Toast/Toast.js +1 -1
  107. package/dist/components/Tooltip/Tooltip.js +1 -1
  108. package/dist/components/Typography/Typography.js +19 -16
  109. package/dist/components/VirtualizedTable/VirtualizedTable.js +1 -1
  110. package/dist/components/VirtualizedTable/components/Body/Body.js +1 -1
  111. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
  112. package/dist/components/VirtualizedTable/components/Filter/Filter.js +3 -3
  113. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  114. package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
  115. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +2 -2
  116. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  117. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  118. package/dist/components/index.js +10 -10
  119. package/dist/{components-Cf345jTv.js → components-MnxnhLqM.js} +1 -1
  120. package/dist/{constants-CxJJRVK3.js → constants-CSsr7_YV.js} +1 -1
  121. package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
  122. package/dist/{dist-BaPW7qXd2.js → dist-B6ExqXM_2.js} +1 -1
  123. package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
  124. package/dist/{dist-BdobXn93.js → dist-C87gsBDM.js} +1 -1
  125. package/dist/{dist-DDck_2lb.js → dist-CqNOgbfR.js} +117 -116
  126. package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
  127. package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR2.js} +38 -38
  128. package/dist/{dist-DFCz63oC2.js → dist-Z0F27ATp2.js} +157 -158
  129. package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
  130. package/dist/{dist-tGUUcv8n.js → dist-oJzmvhAb.js} +114 -115
  131. package/dist/{dist-BlPTJNIm.js → dist-ut_BEHii.js} +1 -1
  132. package/dist/es2015-B_07N-UL.js +796 -0
  133. package/dist/index.js +10 -10
  134. package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
  135. package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
  136. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
  137. package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
  138. package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
  139. package/dist/package.json +21 -21
  140. package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
  141. package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
  142. package/dist/{react-CvUtBTMg.js → react-B6Nc0Fib.js} +835 -827
  143. package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
  144. package/dist/styles.css +1 -1
  145. package/dist/{table.provider-B0BafHuU.js → table.provider-DfZ74xMZ.js} +95 -95
  146. package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
  147. package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
  148. package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
  149. package/package.json +21 -21
  150. package/dist/Checkbox-B_ngk9Dj.js +0 -249
  151. package/dist/es2015-DigR3dar.js +0 -795
@@ -1,20 +1,20 @@
1
- import { o as K } from "../../../../rolldown-runtime-Ck3dxwZt.js";
1
+ import { o as Q } from "../../../../rolldown-runtime-Dw9YIBcH.js";
2
2
  import { t as n } from "../../../../utils-Cx-WzRZF.js";
3
- import { t as Q } from "../../../../Loading-DUh9PMJN.js";
4
- import { t as W } from "../../../../debounce-C5Ycjilj.js";
5
- import { useSelectContext as Y } from "../../contexts/select.hook.js";
6
- import { n as $, t as R } from "../../../../AdditionalOptions-D0BAS2HG.js";
7
- import { listGroupLabelVariants as ee, listVariants as te } from "./List.variants.js";
3
+ import { t as W } from "../../../../Loading-DUh9PMJN.js";
4
+ import { t as Y } from "../../../../debounce-BdyZeJQk.js";
5
+ import { useSelectContext as $ } from "../../contexts/select.hook.js";
6
+ import { n as R, t as ee } from "../../../../AdditionalOptions-D0BAS2HG.js";
7
+ import { listGroupLabelVariants as te, listVariants as re } from "./List.variants.js";
8
8
  import "../../constants/pagination.js";
9
9
  import "../../constants/list.js";
10
- import { useNavigationUlList as re } from "../../hooks/useNavigationList.js";
10
+ import { useNavigationUlList as oe } from "../../hooks/useNavigationList.js";
11
11
  import { ListItem as g } from "../ListItem/ListItem.js";
12
- import { Fragment as oe, forwardRef as se, useEffect as ne, useImperativeHandle as ae, useMemo as T, useRef as H, useState as ie } from "react";
12
+ import { Fragment as se, forwardRef as ne, useEffect as ae, useImperativeHandle as ie, useMemo as T, useRef as H, useState as le } from "react";
13
13
  import { jsx as o, jsxs as I } from "react/jsx-runtime";
14
- var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className: P, groupedOptions: l, inputRef: c, isLoading: j, itemClassName: u, name: M, searchable: f = !1, listItemSecondRowClassName: p, wrapperInputRef: O, isInfiniteScrollEnabled: h, noOptionsText: C, onFetchMoreOptions: L, visibleItems: E }, S) => {
15
- const m = H(null), v = H(null), [b, F] = ie(!1), { canContinueFetching: d, canFilter: y, isOpen: q, isTyping: k, options: G, page: w, searchTerm: s, setCanContinueFetching: A, setOptions: U, setPage: V } = Y(), z = E !== void 0 ? { maxHeight: E * 40 } : void 0;
16
- ae(S, () => m.current, [m]);
17
- const a = l.length > 0 && $(l[0]), x = f && y ? G.filter((e) => {
14
+ var ce = /* @__PURE__ */ Q(Y(), 1), Ee = ne(({ additionalOptions: N, className: O, groupedOptions: l, inputRef: c, isLoading: P, itemClassName: u, name: j, searchable: f = !1, listItemSecondRowClassName: p, wrapperInputRef: M, isInfiniteScrollEnabled: h, noOptionsText: C, onFetchMoreOptions: L, visibleItems: E }, S) => {
15
+ const m = H(null), v = H(null), [b, F] = le(!1), { canContinueFetching: d, canFilter: y, isOpen: q, isTyping: k, options: G, page: w, searchTerm: s, setCanContinueFetching: A, setOptions: U, setPage: V } = $(), z = E !== void 0 ? { maxHeight: E * 40 } : void 0;
16
+ ie(S, () => m.current, [m]);
17
+ const a = l.length > 0 && R(l[0]), x = f && y ? G.filter((e) => {
18
18
  const t = s.toLowerCase();
19
19
  return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(t);
20
20
  }) : G, _ = T(() => {
@@ -32,23 +32,23 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
32
32
  f,
33
33
  y,
34
34
  s
35
- ]);
36
- re({
35
+ ]), D = a ? _.flatMap((e) => e.options) : x;
36
+ oe({
37
37
  ulRef: m,
38
- wrapperInputRef: O,
38
+ wrapperInputRef: M,
39
39
  searchable: f,
40
- filteredOptions: a ? _.flatMap((e) => e.options) : x
40
+ filteredOptions: D
41
41
  });
42
- const D = x.filter((e, t, r) => t === r.findIndex((i) => i.value === e.value)), X = a ? _.length === 0 : x.length === 0, Z = T(() => (0, le.default)(async (e) => {
42
+ const X = x.filter((e, t, r) => t === r.findIndex((i) => i.value === e.value)), Z = a ? _.length === 0 : x.length === 0, B = T(() => (0, ce.default)(async (e) => {
43
43
  const [t] = e;
44
44
  if (t.isIntersecting && !b && L && d) try {
45
45
  F(!0);
46
- const r = w + 1, { data: i, hasMore: B } = await L({
46
+ const r = w + 1, { data: i, hasMore: J } = await L({
47
47
  page: r,
48
48
  pageSize: 10,
49
49
  termOfSearch: s
50
50
  });
51
- V(r), A(B), U((J) => [...J, ...i]);
51
+ V(r), A(J), U((K) => [...K, ...i]);
52
52
  } catch {
53
53
  console.error("Error fetching more options");
54
54
  } finally {
@@ -60,9 +60,9 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
60
60
  s,
61
61
  w
62
62
  ]);
63
- return ne(() => {
63
+ return ae(() => {
64
64
  if (h && d && v.current && !k) {
65
- const e = new IntersectionObserver(Z, { threshold: 0.1 });
65
+ const e = new IntersectionObserver(B, { threshold: 0.1 });
66
66
  return e.observe(v.current), () => e.disconnect();
67
67
  }
68
68
  }, [
@@ -73,20 +73,20 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
73
73
  w
74
74
  ]), /* @__PURE__ */ I("ul", {
75
75
  ref: m,
76
- title: M,
76
+ title: j,
77
77
  role: "listbox",
78
- className: n(te({ className: P })),
78
+ className: n(re({ className: O })),
79
79
  style: z,
80
80
  "data-state": q ? "open" : "closed",
81
81
  children: [
82
- j ? /* @__PURE__ */ o(g, {
82
+ P ? /* @__PURE__ */ o(g, {
83
83
  className: n("select-none", u),
84
84
  isClickable: !1,
85
85
  inputRef: c,
86
86
  value: "Loading...",
87
87
  label: "Loading...",
88
88
  listItemSecondRowClassName: p
89
- }) : X ? /* @__PURE__ */ o(g, {
89
+ }) : Z ? /* @__PURE__ */ o(g, {
90
90
  isEmpty: !0,
91
91
  className: n("select-none", u),
92
92
  isClickable: !1,
@@ -94,11 +94,11 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
94
94
  value: C ?? "",
95
95
  label: C ?? "No options",
96
96
  listItemSecondRowClassName: p
97
- }) : a ? _.map((e) => /* @__PURE__ */ I(oe, { children: [/* @__PURE__ */ o("li", {
97
+ }) : a ? _.map((e) => /* @__PURE__ */ I(se, { children: [/* @__PURE__ */ o("li", {
98
98
  role: "presentation",
99
99
  "aria-hidden": "true",
100
100
  "data-action": "true",
101
- className: n(ee()),
101
+ className: n(te()),
102
102
  children: e.groupLabel
103
103
  }), e.options.map((t) => /* @__PURE__ */ o(g, {
104
104
  className: n("select-none", u),
@@ -106,7 +106,7 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
106
106
  inputRef: c,
107
107
  listItemSecondRowClassName: p,
108
108
  ...t
109
- }, t.value))] }, e.groupLabel)) : D.map((e) => /* @__PURE__ */ o(g, {
109
+ }, t.value))] }, e.groupLabel)) : X.map((e) => /* @__PURE__ */ o(g, {
110
110
  className: n("select-none", u),
111
111
  isClickable: !0,
112
112
  inputRef: c,
@@ -119,12 +119,12 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
119
119
  "data-action": "true",
120
120
  className: "flex items-center justify-center py-3",
121
121
  onClick: (e) => e.stopPropagation(),
122
- children: /* @__PURE__ */ o(Q, { className: "w-4 h-4 text-aurora-500 select-none" })
122
+ children: /* @__PURE__ */ o(W, { className: "w-4 h-4 text-aurora-500 select-none" })
123
123
  }),
124
- /* @__PURE__ */ o(R, { additionalOptions: N })
124
+ /* @__PURE__ */ o(ee, { additionalOptions: N })
125
125
  ]
126
126
  });
127
127
  });
128
128
  export {
129
- Ce as List
129
+ Ee as List
130
130
  };
@@ -1,7 +1,7 @@
1
1
  import { useSelectContext as k } from "../contexts/select.hook.js";
2
- import { useEffect as a, useRef as b } from "react";
2
+ import { useEffect as a, useRef as m } from "react";
3
3
  var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) => {
4
- const r = b(0), { isOpen: s } = k();
4
+ const r = m(0), { isOpen: s } = k();
5
5
  a(() => {
6
6
  const g = n.current?.querySelectorAll("li") ?? [], t = Array.from(g).filter((c) => c.getAttribute("data-action") !== "true"), u = new AbortController(), i = () => {
7
7
  r.current < t.length - 1 ? (r.current = r.current + 1, t[r.current].focus()) : (r.current = 0, t[0].focus());
@@ -21,7 +21,6 @@ var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) =>
21
21
  break;
22
22
  case "Enter":
23
23
  t[r.current]?.click();
24
- break;
25
24
  }
26
25
  }, { signal: u.signal }), () => {
27
26
  u.abort();
@@ -1,11 +1,11 @@
1
- import { useClickOutside as m } from "../../../hooks/useClickOutside.js";
2
- import { useSelectContext as E } from "../contexts/select.hook.js";
3
- import { useCallback as b, useEffect as l, useRef as g } from "react";
4
- var h = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
5
- const t = g(null), d = g(null), { value: o, setSearchTerm: f, setCanFilter: u, toggleOpen: n } = E();
6
- return m(t, b(() => {
1
+ import { useClickOutside as E } from "../../../hooks/useClickOutside.js";
2
+ import { useSelectContext as b } from "../contexts/select.hook.js";
3
+ import { useCallback as p, useEffect as l, useRef as g } from "react";
4
+ var k = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
5
+ const t = g(null), d = g(null), { value: o, setSearchTerm: f, setCanFilter: u, toggleOpen: n } = b(), m = p(() => {
7
6
  n(!1);
8
- }, [n])), l(() => {
7
+ }, [n]);
8
+ return E(t, m), l(() => {
9
9
  const e = new AbortController(), s = (a) => {
10
10
  a.key === "Escape" && n(!1);
11
11
  };
@@ -52,5 +52,5 @@ var h = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
52
52
  };
53
53
  };
54
54
  export {
55
- h as useSelect
55
+ k as useSelect
56
56
  };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../../../HamburgerTrigger-DRylBL2d.js";
1
+ import { t as e } from "../../../../HamburgerTrigger-BT2yUUJ-.js";
2
2
  export {
3
3
  e as HamburgerTrigger
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { t as u } from "../../../../utils-Cx-WzRZF.js";
2
- import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-tGUUcv8n.js";
2
+ import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-oJzmvhAb.js";
3
3
  import { useSidebarContext as H } from "../../contexts/SidebarContext.js";
4
4
  import { NavigationOptionContext as R } from "./NavigationOption.context.js";
5
5
  import { navigationOptionVariants as z } from "./NavigationOption.variants.js";
@@ -1,4 +1,4 @@
1
- import { t as Q } from "../../../../HamburgerTrigger-DRylBL2d.js";
1
+ import { t as Q } from "../../../../HamburgerTrigger-BT2yUUJ-.js";
2
2
  import { t as l } from "../../../../utils-Cx-WzRZF.js";
3
3
  import { Drawer as Y } from "../../../Drawer/Drawer.js";
4
4
  import { SidebarContext as k } from "../../contexts/SidebarContext.js";
@@ -1,4 +1,4 @@
1
- import { t as r } from "../../../HamburgerTrigger-DRylBL2d.js";
1
+ import { t as r } from "../../../HamburgerTrigger-BT2yUUJ-.js";
2
2
  import { CollapseTrigger as m } from "./CollapseTrigger/CollapseTrigger.js";
3
3
  import { Footer as p } from "./Footer/Footer.js";
4
4
  import { Label as f } from "./Label/Label.js";
@@ -1,5 +1,5 @@
1
1
  import { t } from "../../utils-Cx-WzRZF.js";
2
- import { i as v, r as N, t as S } from "../../dist-DDck_2lb.js";
2
+ import { i as v, r as N, t as S } from "../../dist-CqNOgbfR.js";
3
3
  import { sliderVariants as V, thumbVariants as g, trackVariants as j } from "./Slider.variants.js";
4
4
  import { forwardRef as b, useEffect as w, useImperativeHandle as y, useRef as R, useState as k } from "react";
5
5
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../Switch-aPhL5rNG.js";
1
+ import { t as o } from "../../Switch-CyJXptgc.js";
2
2
  export {
3
3
  o as Switch
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { t as a } from "../../dist-B9GE4SXf.js";
2
- var t = a([
2
+ var e = a([
3
3
  "w-10",
4
4
  "h-5",
5
5
  "flex",
@@ -13,8 +13,6 @@ var t = a([
13
13
  "delay-10",
14
14
  "duration-250",
15
15
  "cursor-pointer",
16
- "bg-aurora-500",
17
- "kubefirst:bg-kubefirst-primary",
18
16
  "[&+label,&+span]:cursor-pointer",
19
17
  "disabled:[&+label,&+span,&]:cursor-not-allowed",
20
18
  "disabled:bg-gray-200",
@@ -24,7 +22,17 @@ var t = a([
24
22
  "dark:disabled:data-[state=unchecked]:[&>span]:bg-metal-600",
25
23
  "dark:disabled:data-[state=unchecked]:bg-metal-700",
26
24
  "dark:disabled:[&>span]:bg-metal-600"
27
- ]), d = a([
25
+ ], {
26
+ variants: { variant: {
27
+ default: ["bg-aurora-500", "kubefirst:bg-kubefirst-primary"],
28
+ black: [
29
+ "bg-black",
30
+ "dark:bg-aurora-500",
31
+ "kubefirst:bg-kubefirst-primary"
32
+ ]
33
+ } },
34
+ defaultVariants: { variant: "default" }
35
+ }), d = a([
28
36
  "block",
29
37
  "w-4",
30
38
  "h-4",
@@ -34,12 +42,12 @@ var t = a([
34
42
  "rounded-full",
35
43
  "shadow-md",
36
44
  "transition-all",
37
- "translate-x-1",
38
- "data-[state=checked]:translate-x-5",
45
+ "translate-x-0.5",
46
+ "data-[state=checked]:translate-x-5.5",
39
47
  "delay-10",
40
48
  "duration-300"
41
49
  ]);
42
50
  export {
43
- t as switchVariants,
51
+ e as switchVariants,
44
52
  d as thumbVariants
45
53
  };
@@ -1,4 +1,4 @@
1
- import { t as a } from "../../../Input-Cf44DzfE.js";
1
+ import { t as a } from "../../../Input-wp-rsCmX.js";
2
2
  import { jsx as s, jsxs as t } from "react/jsx-runtime";
3
3
  var m = ({ children: e, ...r }) => /* @__PURE__ */ t("div", {
4
4
  className: "flex px-4 py-6 rounded-t",
@@ -1,5 +1,5 @@
1
1
  import { t as s } from "../../utils-Cx-WzRZF.js";
2
- import { r as e } from "../../dist-BlPTJNIm.js";
2
+ import { r as e } from "../../dist-ut_BEHii.js";
3
3
  import { rootVariants as p } from "./Tabs.variants.js";
4
4
  import { Content as n } from "./components/Content.js";
5
5
  import { List as f } from "./components/List.js";
@@ -1,5 +1,5 @@
1
1
  import { t as r } from "../../../utils-Cx-WzRZF.js";
2
- import { t as n } from "../../../dist-BlPTJNIm.js";
2
+ import { t as n } from "../../../dist-ut_BEHii.js";
3
3
  import { contentVariants as m } from "../Tabs.variants.js";
4
4
  import { jsx as s } from "react/jsx-runtime";
5
5
  var e = ({ children: t, className: o, ...a }) => /* @__PURE__ */ s(n, {
@@ -1,5 +1,5 @@
1
1
  import { t as a } from "../../../utils-Cx-WzRZF.js";
2
- import { n } from "../../../dist-BlPTJNIm.js";
2
+ import { n } from "../../../dist-ut_BEHii.js";
3
3
  import { listVariants as t } from "../Tabs.variants.js";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  var e = ({ children: s, className: i, orientation: m, ...o }) => /* @__PURE__ */ r("div", {
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../../../utils-Cx-WzRZF.js";
2
2
  import { Typography as m } from "../../Typography/Typography.js";
3
- import { i as n } from "../../../dist-BlPTJNIm.js";
3
+ import { i as n } from "../../../dist-ut_BEHii.js";
4
4
  import { triggerVariants as p } from "../Tabs.variants.js";
5
5
  import { jsx as r } from "react/jsx-runtime";
6
6
  var s = ({ tab: a, label: i, isActive: o, className: t }) => /* @__PURE__ */ r(n, {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as m } from "../../Wrapper-CVJSuYWx.js";
2
+ import { t as m } from "../../Wrapper-CvDRHgN4.js";
3
3
  import { TagSelectProvider as p } from "./contexts/TagSelect.provider.js";
4
4
  import { forwardRef as a } from "react";
5
5
  import { jsx as r } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as p } from "../../../../Wrapper-CVJSuYWx.js";
1
+ import { t as p } from "../../../../Wrapper-CvDRHgN4.js";
2
2
  export {
3
3
  p as Wrapper
4
4
  };
@@ -1,4 +1,4 @@
1
- import { t as m } from "../../../Wrapper-CVJSuYWx.js";
1
+ import { t as m } from "../../../Wrapper-CvDRHgN4.js";
2
2
  import { Item as t } from "./Item/Item.js";
3
3
  import { List as i } from "./List/List.js";
4
4
  export {
@@ -1,15 +1,15 @@
1
- import { useClickOutside as o } from "../../../hooks/useClickOutside.js";
2
- import { useTagSelect as s } from "../contexts/TagSelect.hook.js";
3
- import { useCallback as l, useEffect as c, useRef as u } from "react";
4
- var m = () => {
5
- const n = u(null), { onOpen: e } = s();
6
- return o(n, l(() => {
1
+ import { useClickOutside as s } from "../../../hooks/useClickOutside.js";
2
+ import { useTagSelect as l } from "../contexts/TagSelect.hook.js";
3
+ import { useCallback as c, useEffect as u, useRef as d } from "react";
4
+ var g = () => {
5
+ const n = d(null), { onOpen: e } = l(), a = c(() => {
7
6
  e(!1);
8
- }, [e])), c(() => {
9
- const t = new AbortController(), r = (a) => {
10
- a.key === "Escape" && e(!1);
7
+ }, [e]);
8
+ return s(n, a), u(() => {
9
+ const t = new AbortController(), o = (r) => {
10
+ r.key === "Escape" && e(!1);
11
11
  };
12
- return document.addEventListener("keydown", r, { signal: t.signal }), () => {
12
+ return document.addEventListener("keydown", o, { signal: t.signal }), () => {
13
13
  t.abort();
14
14
  };
15
15
  }, [e]), {
@@ -20,5 +20,5 @@ var m = () => {
20
20
  };
21
21
  };
22
22
  export {
23
- m as useTagSelect
23
+ g as useTagSelect
24
24
  };
@@ -1,15 +1,15 @@
1
1
  import { t as y } from "../../../../utils-Cx-WzRZF.js";
2
- import { useClickOutside as Q } from "../../../../hooks/useClickOutside.js";
3
- import { t as X } from "../../../../chevron-down-DNP-OOAQ.js";
2
+ import { useClickOutside as X } from "../../../../hooks/useClickOutside.js";
3
+ import { t as Y } from "../../../../chevron-down-DNP-OOAQ.js";
4
4
  import { Typography as w } from "../../../Typography/Typography.js";
5
5
  import { parseTimeString as P } from "../../utils/index.js";
6
- import { useTimePickerContext as Y } from "../../contexts/time-picker.hook.js";
7
- import { timePickerVariants as Z } from "../../TimePicker.variants.js";
8
- import { WrapperList as _ } from "../WrapperList/WrapperList.js";
9
- import { useCallback as ee, useEffect as S, useId as te, useRef as C, useState as I } from "react";
6
+ import { useTimePickerContext as Z } from "../../contexts/time-picker.hook.js";
7
+ import { timePickerVariants as _ } from "../../TimePicker.variants.js";
8
+ import { WrapperList as ee } from "../WrapperList/WrapperList.js";
9
+ import { useCallback as te, useEffect as S, useId as re, useRef as C, useState as I } from "react";
10
10
  import { jsx as s, jsxs as p } from "react/jsx-runtime";
11
- var ue = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, listClassName: V, listItemClassName: F, listItemButtonClassName: W, disabled: l, mode: T = "select", showList: $ = !0, error: j, placeholder: B }) => {
12
- const H = te(), [u, a] = I(!1), m = C(!1), b = C(null), M = C(null), { format: f, formattedTime: i, setTimeDirectly: E, setIsTyping: v } = Y(), g = A ?? `time-${H}`, [k, h] = I(i), [L, n] = I(), x = j || L;
11
+ var me = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, listClassName: V, listItemClassName: F, listItemButtonClassName: W, disabled: l, mode: T = "select", showList: $ = !0, error: j, placeholder: B }) => {
12
+ const H = re(), [u, a] = I(!1), m = C(!1), b = C(null), M = C(null), { format: f, formattedTime: i, setTimeDirectly: E, setIsTyping: v } = Z(), g = A ?? `time-${H}`, [k, h] = I(i), [L, n] = I(), x = j || L;
13
13
  S(() => {
14
14
  m.current || (h(i), n(void 0));
15
15
  }, [i]);
@@ -43,17 +43,17 @@ var ue = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, l
43
43
  m.current = !0, v(!0);
44
44
  const o = r.length < k.length;
45
45
  if (f === "12") {
46
- const c = r.replace(/[^0-9:apmAPM\s]/g, "").replace(/[apm]/gi, (J) => J.toUpperCase());
46
+ const c = r.replace(/[^0-9:apmAPM\s]/g, "").replace(/[apm]/gi, (Q) => Q.toUpperCase());
47
47
  c.match(/^(\d{0,2}):?(\d{0,2})\s?(A|AM|P|PM)?$/i) || c === "" ? (e = c.slice(0, 8), !o && /^\d{2}$/.test(e) && (e = e + ":")) : e = k;
48
48
  } else
49
49
  e = r.replace(/[^0-9:]/g, "").replace(/:+/g, ":").slice(0, 5), !o && /^\d{2}$/.test(e) && (e = e + ":");
50
50
  h(e), n(void 0);
51
51
  const d = P(e, f);
52
52
  d && E(d);
53
- };
54
- return Q(b, ee(() => {
53
+ }, J = te(() => {
55
54
  a(!1);
56
- }, [])), S(() => {
55
+ }, []);
56
+ return X(b, J), S(() => {
57
57
  const t = new AbortController(), r = (e) => {
58
58
  e.key === "Escape" && a(!1);
59
59
  };
@@ -87,11 +87,11 @@ var ue = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, l
87
87
  "aria-haspopup": "listbox",
88
88
  "aria-expanded": "true",
89
89
  "aria-controls": "time-options",
90
- className: y(Z({ className: R }), l && "opacity-50 cursor-not-allowed"),
90
+ className: y(_({ className: R }), l && "opacity-50 cursor-not-allowed"),
91
91
  "data-open": u,
92
92
  onClick: K,
93
93
  disabled: l,
94
- children: [i, /* @__PURE__ */ s(X, {
94
+ children: [i, /* @__PURE__ */ s(Y, {
95
95
  className: "w-4 h-4 transition-all text-gray-400 data-[open=true]:rotate-180",
96
96
  "data-open": u
97
97
  })]
@@ -115,7 +115,7 @@ var ue = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, l
115
115
  className: "text-red-600 dark:text-red-500 text-xs",
116
116
  children: x
117
117
  })]
118
- }), $ && /* @__PURE__ */ s(_, {
118
+ }), $ && /* @__PURE__ */ s(ee, {
119
119
  isOpen: u,
120
120
  scrollBehavior: O,
121
121
  listClassName: V,
@@ -134,5 +134,5 @@ var ue = ({ name: A, label: N, isRequired: D, scrollBehavior: O, className: R, l
134
134
  });
135
135
  };
136
136
  export {
137
- ue as Wrapper
137
+ me as Wrapper
138
138
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as o } from "../../Toast-3NEz7LLa.js";
2
+ import { t as o } from "../../Toast-DLJDExxw.js";
3
3
  export {
4
4
  o as Toast
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { t as p } from "../../utils-Cx-WzRZF.js";
2
- import { a as c, i as h, n as x, o as f, r as g, t as w } from "../../dist-tGUUcv8n.js";
2
+ import { a as c, i as h, n as x, o as f, r as g, t as w } from "../../dist-oJzmvhAb.js";
3
3
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
4
4
  var C = ({ content: t, children: e, side: s = "top", sideOffset: o = 4, bgClassName: i = "bg-slate-700", arrowClassName: l = "fill-slate-700", textClassName: n = "text-white", className: d, delayDuration: m = 0 }) => /* @__PURE__ */ r(h, {
5
5
  delayDuration: m,
@@ -1,18 +1,21 @@
1
- import { t as s } from "../../utils-Cx-WzRZF.js";
2
- import { typographyVariants as y } from "./Typography.variants.js";
3
- import { forwardRef as f } from "react";
4
- import { jsx as h } from "react/jsx-runtime";
5
- var i = f(({ className: o, theme: p, children: m, variant: r, component: t, ...a }, e) => /* @__PURE__ */ h(t ?? (r?.includes("h") ? r : "p"), {
6
- ref: e,
7
- "data-theme": p,
8
- className: s(y({
9
- className: o,
10
- variant: r
11
- })),
12
- ...a,
13
- children: m
14
- }));
15
- i.displayName = "KonstructTypography";
1
+ import { t as y } from "../../utils-Cx-WzRZF.js";
2
+ import { typographyVariants as f } from "./Typography.variants.js";
3
+ import { forwardRef as n } from "react";
4
+ import { jsx as c } from "react/jsx-runtime";
5
+ var h = n(({ className: r, theme: p, children: t, variant: o, component: m, ...a }, e) => {
6
+ const s = m ?? (o?.includes("h") ? o : "p");
7
+ return /* @__PURE__ */ c(s, {
8
+ ref: e,
9
+ "data-theme": p,
10
+ className: y(f({
11
+ className: r,
12
+ variant: o
13
+ })),
14
+ ...a,
15
+ children: t
16
+ });
17
+ });
18
+ h.displayName = "KonstructTypography";
16
19
  export {
17
- i as Typography
20
+ h as Typography
18
21
  };
@@ -1,6 +1,6 @@
1
1
  import { t as l } from "../../utils-Cx-WzRZF.js";
2
2
  import { Actions as ee } from "./components/Actions/Actions.js";
3
- import { t as re } from "../../table.provider-B0BafHuU.js";
3
+ import { t as re } from "../../table.provider-DfZ74xMZ.js";
4
4
  import { sendResetFiltersEvent as te } from "./events/filters/filters.js";
5
5
  import { sendRefreshEvent as ae } from "./events/refresh/refresh.js";
6
6
  import { sendCollapseRowEvent as le, sendExpandRowEvent as oe, sendToggleRowEvent as ie } from "./events/row/row.js";
@@ -1,5 +1,5 @@
1
1
  import { t as r } from "../../../../utils-Cx-WzRZF.js";
2
- import { n as I } from "../../../../table.provider-B0BafHuU.js";
2
+ import { n as I } from "../../../../table.provider-DfZ74xMZ.js";
3
3
  import { useTableContext as T } from "../../contexts/table.hook.js";
4
4
  import { isPaginationBarVisible as q } from "../../utils/pagination.js";
5
5
  import { Skeleton as G } from "../Skeleton/Skeleton.js";
@@ -1,7 +1,7 @@
1
1
  import { t as o } from "../../../../utils-Cx-WzRZF.js";
2
2
  import { t as u } from "../../../../chevron-up-Bjpvg6ui.js";
3
3
  import { Typography as c } from "../../../Typography/Typography.js";
4
- import { i as b, n as v, r as w, t as S } from "../../../../dist-BaPW7qXd2.js";
4
+ import { i as b, n as v, r as w, t as S } from "../../../../dist-B6ExqXM_2.js";
5
5
  import { listVariants as k } from "../../../Select/components/List/List.variants.js";
6
6
  import { listItemVariants as N } from "../../../Select/components/ListItem/ListItem.variants.js";
7
7
  import { selectVariants as C } from "../../../Select/Select.variants.js";
@@ -1,10 +1,10 @@
1
- import { o as z } from "../../../../rolldown-runtime-Ck3dxwZt.js";
2
- import { t as V } from "../../../../Input-Cf44DzfE.js";
1
+ import { o as z } from "../../../../rolldown-runtime-Dw9YIBcH.js";
2
+ import { t as V } from "../../../../Input-wp-rsCmX.js";
3
3
  import { t as $ } from "../../../../utils-Cx-WzRZF.js";
4
4
  import { Button as G } from "../../../Button/Button.js";
5
5
  import { resetEvent as H } from "../../../Filter/events/index.js";
6
6
  import { Filter as o } from "../../../Filter/Filter.js";
7
- import { t as J } from "../../../../debounce-C5Ycjilj.js";
7
+ import { t as J } from "../../../../debounce-BdyZeJQk.js";
8
8
  import { useTableContext as K } from "../../contexts/table.hook.js";
9
9
  import { getTableId as Q } from "../../utils/get-table-id.js";
10
10
  import { t as U } from "../../../../events.types-BG1Uh8i6.js";
@@ -1,4 +1,4 @@
1
- import { t as s } from "../../../../Input-Cf44DzfE.js";
1
+ import { t as s } from "../../../../Input-wp-rsCmX.js";
2
2
  import { Button as i } from "../../../Button/Button.js";
3
3
  import { Typography as p } from "../../../Typography/Typography.js";
4
4
  import { useTableContext as u } from "../../contexts/table.hook.js";
@@ -1,5 +1,5 @@
1
1
  import { t } from "../../../../utils-Cx-WzRZF.js";
2
- import { n as g } from "../../../../table.provider-B0BafHuU.js";
2
+ import { n as g } from "../../../../table.provider-DfZ74xMZ.js";
3
3
  import { useTableContext as k } from "../../contexts/table.hook.js";
4
4
  import u from "../../assets/chevron-up.js";
5
5
  import C from "../../assets/chevron-down.js";
@@ -1,7 +1,7 @@
1
- import { o as R } from "../../../../rolldown-runtime-Ck3dxwZt.js";
1
+ import { o as R } from "../../../../rolldown-runtime-Dw9YIBcH.js";
2
2
  import { t as i } from "../../../../utils-Cx-WzRZF.js";
3
3
  import { Typography as l } from "../../../Typography/Typography.js";
4
- import { t as _ } from "../../../../debounce-C5Ycjilj.js";
4
+ import { t as _ } from "../../../../debounce-BdyZeJQk.js";
5
5
  import { Tooltip as g } from "../../../Tooltip/Tooltip.js";
6
6
  import { useCallback as v, useEffect as a, useRef as z, useState as E } from "react";
7
7
  import { jsx as n } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as r } from "../../../table.provider-B0BafHuU.js";
1
+ import { t as r } from "../../../table.provider-DfZ74xMZ.js";
2
2
  import { TableContext as e } from "./table.context.js";
3
3
  import { useTableContext as a } from "./table.hook.js";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { t as o } from "../../../table.provider-B0BafHuU.js";
1
+ import { t as o } from "../../../table.provider-DfZ74xMZ.js";
2
2
  export {
3
3
  o as TableProvider
4
4
  };