@konstructio/ui 0.1.2-alpha.41 → 0.1.2-alpha.44

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 (113) hide show
  1. package/dist/{Modal-CtAG97Ts.js → Modal-CjC-CIJ8.js} +2 -2
  2. package/dist/chevron-right-DYvXLeql.js +7 -0
  3. package/dist/{chevron-up-CRyLc5Ml.js → chevron-up-DEfvgPCw.js} +1 -1
  4. package/dist/components/Alert/Alert.js +2 -2
  5. package/dist/components/AlertDialog/AlertDialog.js +75 -49
  6. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
  7. package/dist/components/AlertDialog/components/index.js +1 -1
  8. package/dist/components/Badge/Badge.js +31 -30
  9. package/dist/components/Badge/Badge.variants.js +53 -16
  10. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  11. package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
  13. package/dist/components/Button/Button.js +1 -1
  14. package/dist/components/Card/Card.variants.js +4 -5
  15. package/dist/components/Checkbox/Checkbox.js +4 -4
  16. package/dist/components/Checkbox/Checkbox.variants.js +5 -1
  17. package/dist/components/Command/Command.js +2 -2
  18. package/dist/components/Command/components/Command.js +1 -1
  19. package/dist/components/Command/components/CommandEmpty.js +1 -1
  20. package/dist/components/Command/components/CommandGroup.js +1 -1
  21. package/dist/components/Command/components/CommandInput.js +2 -2
  22. package/dist/components/Command/components/CommandItem.js +1 -1
  23. package/dist/components/Command/components/CommandList.js +1 -1
  24. package/dist/components/Command/components/CommandSeparator.js +1 -1
  25. package/dist/components/Command/components/DialogContent.js +2 -2
  26. package/dist/components/Command/components/DialogOverlay.js +1 -1
  27. package/dist/components/Datepicker/DatePicker.js +1231 -1047
  28. package/dist/components/Dropdown/Dropdown.js +13 -13
  29. package/dist/components/Dropdown/Dropdown.variants.js +7 -6
  30. package/dist/components/Dropdown/components/List/List.js +42 -20
  31. package/dist/components/Dropdown/components/List/List.variants.js +5 -5
  32. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -20
  33. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +2 -2
  34. package/dist/components/Dropdown/components/Wrapper.js +60 -46
  35. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  36. package/dist/components/Filter/Filter.variants.js +6 -5
  37. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -46
  38. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
  39. package/dist/components/Filter/components/ResetButton/ResetButton.js +28 -14
  40. package/dist/components/Input/Input.js +1 -1
  41. package/dist/components/Input/Input.variants.js +2 -2
  42. package/dist/components/Modal/Modal.js +1 -1
  43. package/dist/components/Modal/components/Body/Body.js +1 -1
  44. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  45. package/dist/components/Modal/components/Header/Header.js +1 -1
  46. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
  47. package/dist/components/Modal/components/index.js +1 -1
  48. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  49. package/dist/components/NumberInput/NumberInput.js +2 -2
  50. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +358 -315
  51. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  52. package/dist/components/PhoneNumberInput/components/Wrapper.js +58 -58
  53. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +2 -2
  54. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  55. package/dist/components/PieChart/PieChart.js +4 -4
  56. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  57. package/dist/components/Range/Range.js +1 -1
  58. package/dist/components/Slider/Slider.js +1 -1
  59. package/dist/components/Switch/Switch.js +2 -2
  60. package/dist/components/Tabs/Tabs.js +1 -1
  61. package/dist/components/Tabs/Tabs.variants.js +3 -2
  62. package/dist/components/Tabs/components/Content.js +1 -1
  63. package/dist/components/Tabs/components/List.js +1 -1
  64. package/dist/components/Tabs/components/Trigger.js +1 -1
  65. package/dist/components/Tag/Tag.js +1 -1
  66. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
  67. package/dist/components/TimePicker/TimePicker.js +1 -1
  68. package/dist/components/TimePicker/TimePicker.variants.js +20 -13
  69. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +23 -16
  70. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
  71. package/dist/components/Toast/Toast.js +8 -8
  72. package/dist/components/Tooltip/Tooltip.js +1 -1
  73. package/dist/components/Typography/Typography.js +11 -9
  74. package/dist/components/VirtualizedTable/VirtualizedTable.js +58 -54
  75. package/dist/components/VirtualizedTable/components/Actions/Actions.js +58 -26
  76. package/dist/components/VirtualizedTable/components/Body/Body.js +72 -46
  77. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +80 -77
  78. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
  79. package/dist/components/VirtualizedTable/components/Filter/Filter.js +37 -40
  80. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +19 -18
  81. package/dist/components/VirtualizedTable/components/Header/Header.js +49 -31
  82. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +36 -23
  83. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +74 -35
  84. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  85. package/dist/components/index.js +1 -1
  86. package/dist/{index-mPY_8Y5v.js → index-AV6ZtGhy.js} +1 -1
  87. package/dist/{index-CigKKiZS.js → index-BG8O18ZY.js} +5 -3
  88. package/dist/{index-DrWQH0QF.js → index-BKjcReYh.js} +2 -2
  89. package/dist/{index--V_ZsiQe.js → index-BOE_3f_Z.js} +4 -4
  90. package/dist/{index-Dbt2vBmS.js → index-BlSRBdPy.js} +1 -1
  91. package/dist/{index-C3tHPg8y.js → index-BmVmDQGH.js} +2 -2
  92. package/dist/{index-BtQfgaSF.js → index-BvoZGpli.js} +2 -2
  93. package/dist/{index-2hB40Iuc.js → index-Byr10W8m.js} +6 -6
  94. package/dist/index-CPU02rhe.js +134 -0
  95. package/dist/{index-Ds6U2x4Z.js → index-CeZcoQDw.js} +11 -11
  96. package/dist/{index-CdwPV0FE.js → index-D9SSJ6om.js} +3 -3
  97. package/dist/{index-CIAmiWcw.js → index-DKfEnhKr.js} +2 -2
  98. package/dist/{index-CSFe9uC5.js → index-DMb4KD0b.js} +1 -1
  99. package/dist/{index-ohdbKsws.js → index-DtEcCIrM.js} +1 -1
  100. package/dist/{index-BbQkJE5L.js → index-Dy59FQl5.js} +1 -1
  101. package/dist/{index-DpW9ExsS.js → index-gSPwC-1I.js} +3 -3
  102. package/dist/{index-DH2Fnov1.js → index-vcSp8YRZ.js} +4 -4
  103. package/dist/index.d.ts +2 -1
  104. package/dist/index.js +1 -1
  105. package/dist/{libphonenumber-_7ZyKWA7.js → libphonenumber-FTwQ9nyV.js} +11 -11
  106. package/dist/package.json +21 -21
  107. package/dist/styles.css +1 -1
  108. package/dist/ui/civo-theme.css +11 -10
  109. package/dist/{x-DPU9OdYH.js → x-Eoa9FJjA.js} +1 -1
  110. package/package.json +21 -21
  111. package/dist/chevron-left-C4LEg1fH.js +0 -7
  112. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  113. package/dist/index-C65LtGuU.js +0 -137
@@ -1,13 +1,13 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { useId as N, useState as y, useRef as E, useCallback as O, useEffect as I } from "react";
3
- import { cn as m } from "../../../../utils/index.js";
3
+ import { cn as c } from "../../../../utils/index.js";
4
4
  import { timePickerVariants as L } from "../../TimePicker.variants.js";
5
5
  import { WrapperList as j } from "../WrapperList/WrapperList.js";
6
6
  import { C as P } from "../../../../chevron-down-DgT-uSF9.js";
7
7
  import { useTimePickerContext as R } from "../../contexts/time-picker.hook.js";
8
8
  const V = ({
9
9
  name: d,
10
- label: i,
10
+ label: l,
11
11
  required: p,
12
12
  scrollBehavior: f,
13
13
  className: u,
@@ -15,12 +15,12 @@ const V = ({
15
15
  listItemClassName: h,
16
16
  listItemButtonClassName: w
17
17
  }) => {
18
- const b = N(), [n, r] = y(!1), l = E(null), { format: g, formattedTime: c } = R(), s = d ?? `time-${b}`, k = O(() => r((e) => !e), []);
18
+ const b = N(), [n, r] = y(!1), i = E(null), { format: k, formattedTime: m } = R(), s = d ?? `time-${b}`, g = O(() => r((e) => !e), []);
19
19
  return I(() => {
20
20
  const e = new AbortController(), v = (o) => {
21
21
  o.key === "Escape" && r(!1);
22
22
  }, C = (o) => {
23
- l.current?.contains(o.target) || r(!1);
23
+ i.current?.contains(o.target) || r(!1);
24
24
  };
25
25
  return document.addEventListener("mousedown", C, {
26
26
  signal: e.signal
@@ -32,17 +32,24 @@ const V = ({
32
32
  }, []), /* @__PURE__ */ t(
33
33
  "div",
34
34
  {
35
- ref: l,
36
- className: m(
35
+ ref: i,
36
+ className: c(
37
37
  "w-max text-slate-800 text-sm flex flex-col gap-2",
38
- g === "12" ? "w-52" : "w-[140px]"
38
+ k === "12" ? "w-52" : "w-[140px]"
39
39
  ),
40
40
  children: [
41
- i ? /* @__PURE__ */ t("label", { htmlFor: s, className: "text-slate-500 font-medium", children: [
42
- i,
43
- " ",
44
- p && /* @__PURE__ */ a("span", { className: "text-red-600", children: "*" })
45
- ] }) : null,
41
+ l ? /* @__PURE__ */ t(
42
+ "label",
43
+ {
44
+ htmlFor: s,
45
+ className: "text-slate-500 dark:text-metal-50 font-medium",
46
+ children: [
47
+ l,
48
+ " ",
49
+ p && /* @__PURE__ */ a("span", { className: "text-red-600", children: "*" })
50
+ ]
51
+ }
52
+ ) : null,
46
53
  /* @__PURE__ */ t("div", { className: "relative", children: [
47
54
  /* @__PURE__ */ t(
48
55
  "button",
@@ -51,11 +58,11 @@ const V = ({
51
58
  "aria-haspopup": "listbox",
52
59
  "aria-expanded": "true",
53
60
  "aria-controls": "time-options",
54
- className: m(L({ className: u })),
61
+ className: c(L({ className: u })),
55
62
  "data-open": n,
56
- onClick: k,
63
+ onClick: g,
57
64
  children: [
58
- c,
65
+ m,
59
66
  /* @__PURE__ */ a(
60
67
  P,
61
68
  {
@@ -82,7 +89,7 @@ const V = ({
82
89
  {
83
90
  type: "hidden",
84
91
  name: s,
85
- value: c,
92
+ value: m,
86
93
  className: "hidden"
87
94
  }
88
95
  )
@@ -1,51 +1,59 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as n } from "react";
3
- import { cn as s } from "../../../../utils/index.js";
4
- import { getHours as d, getMinutes as M } from "../../utils/index.js";
5
- import { HoursList as x } from "../HoursList/HoursList.js";
6
- import { MeridianList as L } from "../MeridianList/MeridianList.js";
7
- import { MinutesList as g } from "../MinutesList/MinutesList.js";
8
- import { wrapperVariants as H } from "./WrapperList.variants.js";
9
- import { useTimePickerContext as j } from "../../contexts/time-picker.hook.js";
10
- const v = ({
11
- isOpen: m,
12
- scrollBehavior: p,
3
+ import { cn as c } from "../../../../utils/index.js";
4
+ import { getHours as s, getMinutes as x } from "../../utils/index.js";
5
+ import { HoursList as g } from "../HoursList/HoursList.js";
6
+ import { MeridianList as b } from "../MeridianList/MeridianList.js";
7
+ import { MinutesList as M } from "../MinutesList/MinutesList.js";
8
+ import { useTimePickerContext as h } from "../../contexts/time-picker.hook.js";
9
+ const T = ({
10
+ isOpen: d,
11
+ scrollBehavior: m,
13
12
  listClassName: o,
14
- listItemClassName: i,
15
- listItemButtonClassName: t
13
+ listItemClassName: e,
14
+ listItemButtonClassName: i
16
15
  }) => {
17
- const { time: r } = j(), u = n(() => d(r), [r]), f = n(() => M(r), [r]);
18
- return m ? /* @__PURE__ */ c("div", { role: "group", className: s(H()), children: [
19
- /* @__PURE__ */ e(
20
- x,
21
- {
22
- hours: u,
23
- scrollBehavior: p,
24
- listClassName: o,
25
- listItemClassName: i,
26
- listItemButtonClassName: t
27
- }
28
- ),
29
- /* @__PURE__ */ e(
30
- g,
31
- {
32
- minutes: f,
33
- scrollBehavior: p,
34
- listClassName: o,
35
- listItemClassName: i,
36
- listItemButtonClassName: t
37
- }
38
- ),
39
- /* @__PURE__ */ e(
40
- L,
41
- {
42
- listClassName: o,
43
- listItemClassName: i,
44
- listItemButtonClassName: t
45
- }
46
- )
47
- ] }) : null;
16
+ const { time: r } = h(), p = n(() => s(r), [r]), u = n(() => x(r), [r]);
17
+ return d ? /* @__PURE__ */ f(
18
+ "div",
19
+ {
20
+ role: "group",
21
+ className: c(
22
+ "flex gap-1.5 p-2 rounded-md shadow w-full max-h-[216px] absolute mt-1 bg-white z-10 animate-in fade-in-0 zoom-in-95 dark:bg-metal-800 dark:border dark:border-metal-700"
23
+ ),
24
+ children: [
25
+ /* @__PURE__ */ t(
26
+ g,
27
+ {
28
+ hours: p,
29
+ scrollBehavior: m,
30
+ listClassName: o,
31
+ listItemClassName: e,
32
+ listItemButtonClassName: i
33
+ }
34
+ ),
35
+ /* @__PURE__ */ t(
36
+ M,
37
+ {
38
+ minutes: u,
39
+ scrollBehavior: m,
40
+ listClassName: o,
41
+ listItemClassName: e,
42
+ listItemButtonClassName: i
43
+ }
44
+ ),
45
+ /* @__PURE__ */ t(
46
+ b,
47
+ {
48
+ listClassName: o,
49
+ listItemClassName: e,
50
+ listItemButtonClassName: i
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ ) : null;
48
56
  };
49
57
  export {
50
- v as WrapperList
58
+ T as WrapperList
51
59
  };
@@ -1,19 +1,19 @@
1
1
  import { jsx as i, jsxs as A, Fragment as ae } from "react/jsx-runtime";
2
- import { S as B } from "../../index-BtQfgaSF.js";
2
+ import { S as B } from "../../index-BvoZGpli.js";
3
3
  import * as n from "react";
4
4
  import { useRef as xe, useEffect as be, useMemo as re, isValidElement as ne, useCallback as ge } from "react";
5
5
  import * as Se from "react-dom";
6
- import { P as D, c as Ne, a as Ie, b as x, d as Ae, u as De } from "../../index-CIAmiWcw.js";
6
+ import { P as D, c as Ne, a as Ie, b as x, d as Ae, u as De } from "../../index-DKfEnhKr.js";
7
7
  import { u as ie } from "../../index-DLcqcWxM.js";
8
- import { c as _e } from "../../index-CigKKiZS.js";
9
- import { B as Fe, R as Le } from "../../index-Dbt2vBmS.js";
10
- import { P as Me } from "../../index-CSFe9uC5.js";
11
- import { P as Oe } from "../../index-mPY_8Y5v.js";
8
+ import { c as _e } from "../../index-BG8O18ZY.js";
9
+ import { B as Fe, R as Le } from "../../index-BlSRBdPy.js";
10
+ import { P as Me } from "../../index-DMb4KD0b.js";
11
+ import { P as Oe } from "../../index-AV6ZtGhy.js";
12
12
  import { u as X } from "../../index-0ioNhtNM.js";
13
- import { R as ke } from "../../index-DrWQH0QF.js";
13
+ import { R as ke } from "../../index-BKjcReYh.js";
14
14
  import { cn as j } from "../../utils/index.js";
15
15
  import { closeToastVariants as Ve, toastVariants as Ke, viewportToastVariants as He } from "./Toast.variants.js";
16
- import { X as We } from "../../x-DPU9OdYH.js";
16
+ import { X as We } from "../../x-Eoa9FJjA.js";
17
17
  var Ue = Object.freeze({
18
18
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
19
19
  position: "absolute",
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { S as u } from "../../index-BtQfgaSF.js";
2
+ import { S as u } from "../../index-BvoZGpli.js";
3
3
  import { forwardRef as v, useRef as N, useImperativeHandle as h, useMemo as w, isValidElement as x } from "react";
4
4
  import { cn as o } from "../../utils/index.js";
5
5
  import { arrowVariants as R, tooltipVariants as V } from "./Tooltip.variants.js";
@@ -2,27 +2,29 @@ import { jsx as y } from "react/jsx-runtime";
2
2
  import { forwardRef as f } from "react";
3
3
  import { cn as n } from "../../utils/index.js";
4
4
  import { typographyVariants as c } from "./Typography.variants.js";
5
- const h = f(
6
- ({ className: r, theme: p, children: m, variant: o, component: t, ...e }, a) => {
7
- const s = t ?? (o?.includes("h") ? o : "p");
5
+ const d = f(
6
+ ({ className: t, theme: r, children: p, variant: o, component: e, ...m }, a) => {
7
+ const s = e ?? (o?.includes("h") ? o : "p");
8
8
  return /* @__PURE__ */ y(
9
9
  s,
10
10
  {
11
11
  ref: a,
12
- "data-theme": p,
12
+ "data-theme": r,
13
13
  className: n(
14
+ "text-slate-800",
15
+ "dark:text-metal-50",
14
16
  c({
15
- className: r,
17
+ className: t,
16
18
  variant: o
17
19
  })
18
20
  ),
19
- ...e,
20
- children: m
21
+ ...m,
22
+ children: p
21
23
  }
22
24
  );
23
25
  }
24
26
  );
25
- h.displayName = "Typography";
27
+ d.displayName = "Typography";
26
28
  export {
27
- h as Typography
29
+ d as Typography
28
30
  };
@@ -1,121 +1,125 @@
1
1
  import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
- import { useMemo as K } from "react";
2
+ import { useMemo as I } from "react";
3
3
  import { cn as c } from "../../utils/index.js";
4
- import { TableProvider as M } from "./contexts/table.provider.js";
5
- import { Filter as W } from "./components/Filter/Filter.js";
6
- import { WrapperBody as k } from "./components/WrapperBody/WrapperBody.js";
7
- import { Header as q } from "./components/Header/Header.js";
8
- import { Body as C } from "./components/Body/Body.js";
9
- import { Pagination as F } from "./components/Pagination/Pagination.js";
10
- import { TruncateText as G } from "./components/TruncateText/TruncateText.js";
11
- import { Actions as J } from "./components/Actions/Actions.js";
12
- const O = ({
4
+ import { TableProvider as K } from "./contexts/table.provider.js";
5
+ import { Filter as M } from "./components/Filter/Filter.js";
6
+ import { WrapperBody as W } from "./components/WrapperBody/WrapperBody.js";
7
+ import { Header as g } from "./components/Header/Header.js";
8
+ import { Body as q } from "./components/Body/Body.js";
9
+ import { Pagination as C } from "./components/Pagination/Pagination.js";
10
+ import { TruncateText as F } from "./components/TruncateText/TruncateText.js";
11
+ import { Actions as G } from "./components/Actions/Actions.js";
12
+ const J = ({
13
13
  id: n,
14
- ariaLabel: f,
15
- columns: p,
16
- data: d,
17
- totalItems: u = -1 / 0,
18
- className: b,
14
+ ariaLabel: p,
15
+ columns: d,
16
+ data: f,
17
+ totalItems: b = -1 / 0,
18
+ className: u,
19
19
  classNameHeaderActiveArrows: T,
20
20
  classNameHeaderArrows: x,
21
21
  classNameHeaderTable: N,
22
22
  classNameTable: A,
23
23
  classNameWrapperTable: y,
24
- isLoading: o,
24
+ isLoading: a,
25
25
  fetchData: h,
26
26
  queryOptions: z,
27
27
  // Pagination
28
28
  showPagination: B,
29
- showTotalItems: t,
30
- showDropdownPagination: a,
29
+ showTotalItems: i,
30
+ showDropdownPagination: t,
31
31
  showDotPagination: l,
32
32
  showFormPagination: m,
33
33
  pageSizes: V,
34
34
  // Filter
35
35
  showFilter: j = !1,
36
- showFilterInput: v,
37
- filterSearchPlaceholder: w = "",
38
- multiSelectFilter: P,
39
- filterActions: E,
40
- showResetButton: H = !0,
41
- resetButtonClassName: I
36
+ showFilterInput: k,
37
+ filterSearchPlaceholder: v = "",
38
+ multiSelectFilter: w,
39
+ filterActions: P,
40
+ showResetButton: E = !0,
41
+ resetButtonClassName: H
42
42
  }) => {
43
- const e = K(
43
+ const e = I(
44
44
  () => B || [
45
+ i,
45
46
  t,
46
- a,
47
47
  l,
48
48
  m
49
49
  ].some(Boolean),
50
50
  []
51
51
  );
52
52
  return /* @__PURE__ */ r(
53
- M,
53
+ K,
54
54
  {
55
55
  id: n,
56
- columns: p,
57
- data: d,
56
+ columns: d,
57
+ data: f,
58
58
  fetchData: h,
59
- totalItems: u,
59
+ totalItems: b,
60
60
  queryOptions: z,
61
61
  isPaginationEnabled: e,
62
- children: /* @__PURE__ */ s("section", { className: c("w-full min-w-fit", b), children: [
62
+ children: /* @__PURE__ */ s("section", { className: c("w-full min-w-fit", u), children: [
63
63
  j && /* @__PURE__ */ r(
64
- W,
64
+ M,
65
65
  {
66
- actions: E,
67
- multiSelectFilter: P,
68
- placeholder: w,
69
- showFilterInput: v,
70
- showResetButton: H,
71
- resetButtonClassName: I
66
+ actions: P,
67
+ multiSelectFilter: w,
68
+ placeholder: v,
69
+ showFilterInput: k,
70
+ showResetButton: E,
71
+ resetButtonClassName: H
72
72
  }
73
73
  ),
74
74
  /* @__PURE__ */ r(
75
- k,
75
+ W,
76
76
  {
77
77
  showPagination: e,
78
78
  classNameWrapperTable: y,
79
- isLoading: o,
79
+ isLoading: a,
80
80
  children: /* @__PURE__ */ s(
81
81
  "table",
82
82
  {
83
- className: c("w-full border-collapse table-fixed", A),
84
- "aria-label": f,
83
+ className: c(
84
+ "w-full border-collapse table-fixed",
85
+ "dark:border-separate dark:border-spacing-0",
86
+ A
87
+ ),
88
+ "aria-label": p,
85
89
  children: [
86
90
  /* @__PURE__ */ r(
87
- q,
91
+ g,
88
92
  {
89
93
  className: N,
90
94
  classNameArrows: x,
91
95
  classNameActiveArrows: T
92
96
  }
93
97
  ),
94
- /* @__PURE__ */ r(C, { isLoading: o, showPagination: e })
98
+ /* @__PURE__ */ r(q, { isLoading: a, showPagination: e })
95
99
  ]
96
100
  }
97
101
  )
98
102
  }
99
103
  ),
100
104
  e && /* @__PURE__ */ r(
101
- F,
105
+ C,
102
106
  {
103
- showTotalItems: t,
104
- showDropdownPagination: a,
107
+ showTotalItems: i,
108
+ showDropdownPagination: t,
105
109
  showDotPagination: l,
106
110
  showFormPagination: m,
107
111
  pageSizes: V,
108
- isLoading: o
112
+ isLoading: a
109
113
  }
110
114
  )
111
115
  ] })
112
116
  }
113
117
  );
114
- }, i = O;
115
- i.displayName = "KonstructVirtualizedTable";
116
- i.TruncateText = G;
117
- i.Actions = J;
118
+ }, o = J;
119
+ o.displayName = "KonstructVirtualizedTable";
120
+ o.TruncateText = F;
121
+ o.Actions = G;
118
122
  export {
119
- G as TruncateText,
120
- i as VirtualizedTable
123
+ F as TruncateText,
124
+ o as VirtualizedTable
121
125
  };
@@ -1,64 +1,96 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import { Button as t } from "../../../Button/Button.js";
3
- import { cn as r } from "../../../../utils/index.js";
4
- import { E as u } from "../../../../ellipsis-vertical-BVPtjl5f.js";
5
- const w = ({
3
+ import { cn as e } from "../../../../utils/index.js";
4
+ import { E as m } from "../../../../ellipsis-vertical-BVPtjl5f.js";
5
+ const b = ({
6
6
  actions: a,
7
7
  wrapperClassName: l,
8
8
  triggerButtonClassName: s,
9
9
  iconTriggerButtonClassName: n,
10
- wrapperActionsClassName: c,
11
- wrapperContentActionsClassName: d,
10
+ wrapperActionsClassName: d,
11
+ wrapperContentActionsClassName: c,
12
12
  ...h
13
- }) => a ? /* @__PURE__ */ i("div", { className: r("relative group", l), children: [
13
+ }) => a ? /* @__PURE__ */ i("div", { className: e("relative group", l), children: [
14
14
  /* @__PURE__ */ i(
15
15
  t,
16
16
  {
17
17
  variant: "text",
18
18
  shape: "circle",
19
19
  size: "large",
20
- className: r(
21
- "text-slate-400 group-hover:text-slate-800 group-hover:bg-aurora-50",
20
+ className: e(
21
+ "text-slate-400",
22
+ "group-hover:text-slate-800",
23
+ "group-hover:bg-aurora-50",
24
+ "dark:text-metal-400",
25
+ "dark:group-hover:text-aurora-500",
26
+ "dark:group-hover:bg-aurora-900",
22
27
  s
23
28
  ),
24
29
  role: "presentation",
25
30
  children: [
26
- /* @__PURE__ */ e(
27
- u,
31
+ /* @__PURE__ */ r(
32
+ m,
28
33
  {
29
34
  "aria-hidden": "true",
30
- className: r("w-7 h-7", n)
35
+ className: e("w-7 h-7", n)
31
36
  }
32
37
  ),
33
- /* @__PURE__ */ e("span", { className: "sr-only", children: "Show Actions" })
38
+ /* @__PURE__ */ r("span", { className: "sr-only", children: "Show Actions" })
34
39
  ]
35
40
  }
36
41
  ),
37
- /* @__PURE__ */ e(
42
+ /* @__PURE__ */ r(
38
43
  "div",
39
44
  {
40
- className: r(
41
- "absolute top-full right-0 w-[215px] hidden group-hover:block z-10",
42
- c
45
+ className: e(
46
+ "absolute",
47
+ "top-full",
48
+ "right-0",
49
+ "w-[215px]",
50
+ "hidden",
51
+ "group-hover:block",
52
+ "z-10",
53
+ d
43
54
  ),
44
- children: /* @__PURE__ */ e(
55
+ children: /* @__PURE__ */ r(
45
56
  "div",
46
57
  {
47
- className: r(
48
- "bg-white mt-0.5 py-2 rounded-lg shadow-lg border border-zinc-100 animate-in fade-in-0",
49
- d
58
+ className: e(
59
+ "bg-white",
60
+ "mt-0.5",
61
+ "py-2",
62
+ "rounded-lg",
63
+ "shadow-lg",
64
+ "border",
65
+ "border-zinc-100",
66
+ "animate-in",
67
+ "fade-in-0",
68
+ c
50
69
  ),
51
- children: a.map(({ label: o, className: p, onClick: m }) => /* @__PURE__ */ e(
70
+ children: a.map(({ label: o, className: p, onClick: u }) => /* @__PURE__ */ r(
52
71
  t,
53
72
  {
54
- className: r(
55
- "w-full text-slate-800 cursor-pointer p-0 h-9 flex gap-2 text-sm font-normal justify-start hover:bg-gray-50 hover:text-slate-800 rounded-none px-6",
73
+ className: e(
74
+ "w-full",
75
+ "text-slate-800",
76
+ "cursor-pointer",
77
+ "p-0",
78
+ "h-9",
79
+ "flex",
80
+ "gap-2",
81
+ "text-sm",
82
+ "font-normal",
83
+ "justify-start",
84
+ "hover:bg-gray-50",
85
+ "hover:text-slate-800",
86
+ "rounded-none",
87
+ "px-6",
56
88
  p
57
89
  ),
58
90
  variant: "text",
59
91
  asChild: !0,
60
92
  role: "presentation",
61
- children: /* @__PURE__ */ e(t, { onClick: () => m(h.row.original), children: o })
93
+ children: /* @__PURE__ */ r(t, { onClick: () => u(h.row.original), children: o })
62
94
  },
63
95
  o
64
96
  ))
@@ -68,5 +100,5 @@ const w = ({
68
100
  )
69
101
  ] }) : null;
70
102
  export {
71
- w as Actions
103
+ b as Actions
72
104
  };