@konstructio/ui 0.1.2-alpha.119 → 0.1.2-alpha.120

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 (135) hide show
  1. package/dist/Breadcrumb-DDRmDlWK.js +93 -0
  2. package/dist/{Checkbox-DRdyrKjk.js → Checkbox-DrounE52.js} +2 -2
  3. package/dist/{CollapsedSteps-CR7oCTRC.js → CollapsedSteps-DvBeYShi.js} +3 -3
  4. package/dist/{CommandInput-Du2o616y.js → CommandInput-_vujzQ6B.js} +2 -2
  5. package/dist/{Counter-DMkXIsOO.js → Counter-LQ5_uh06.js} +2 -2
  6. package/dist/{DayPicker-BtpJg2q3.js → DayPicker-D7KFB2bI.js} +383 -383
  7. package/dist/DropdownButton-BWfWN4fg.js +121 -0
  8. package/dist/{HamburgerTrigger-BgeS_nBA.js → HamburgerTrigger-CfrAnhmG.js} +10 -10
  9. package/dist/{Input-2M2I_H60.js → Input-O2bqyJKW.js} +2 -2
  10. package/dist/Modal-B-l4ii6w.js +84 -0
  11. package/dist/{Wrapper-JmStmade.js → Wrapper-B5PmrW4J.js} +3 -3
  12. package/dist/{Wrapper-ThpRi_Gg.js → Wrapper-CZCSSCLm.js} +2 -2
  13. package/dist/components/Alert/Alert.js +1 -1
  14. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  15. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
  16. package/dist/components/Breadcrumb/components/index.js +1 -1
  17. package/dist/components/Button/Button.variants.js +1 -0
  18. package/dist/components/Checkbox/Checkbox.js +1 -1
  19. package/dist/components/CheckboxCard/CheckboxCard.js +1 -1
  20. package/dist/components/Command/components/CommandInput.js +1 -1
  21. package/dist/components/Command/components/DialogContent.js +1 -1
  22. package/dist/components/Command/components/index.js +1 -1
  23. package/dist/components/ConfirmDialog/ConfirmDialog.js +7 -5
  24. package/dist/components/CopyButton/CopyButton.variants.js +3 -1
  25. package/dist/components/Counter/Counter.js +1 -1
  26. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
  27. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  28. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  29. package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +1 -1
  30. package/dist/components/Drawer/Drawer.js +78 -58
  31. package/dist/components/Drawer/Drawer.variants.js +40 -22
  32. package/dist/components/Drawer/components/Footer/Footer.js +5 -5
  33. package/dist/components/Drawer/constants/index.js +5 -4
  34. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  35. package/dist/components/DropdownButton/components/ActionSheet/ActionSheet.js +34 -0
  36. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
  37. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
  38. package/dist/components/Filter/utils/index.js +2 -2
  39. package/dist/components/Input/Input.js +1 -1
  40. package/dist/components/Input/Input.variants.js +1 -0
  41. package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +1 -1
  42. package/dist/components/Modal/Modal.js +1 -1
  43. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  44. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +12 -6
  45. package/dist/components/Modal/components/index.js +1 -1
  46. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  47. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  48. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  49. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  50. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
  51. package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +2 -2
  52. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
  53. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  54. package/dist/components/PhoneNumberInput/components/index.js +1 -1
  55. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  56. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  57. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  58. package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +1 -1
  59. package/dist/components/Select/Select.variants.js +2 -0
  60. package/dist/components/Select/components/List/List.js +2 -2
  61. package/dist/components/Sheet/Sheet.js +130 -0
  62. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  63. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +103 -86
  64. package/dist/components/Sidebar/components/index.js +1 -1
  65. package/dist/components/Table/components/Filter.js +1 -1
  66. package/dist/components/Tabs/components/Trigger.js +13 -13
  67. package/dist/components/TagSelect/TagSelect.js +1 -1
  68. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  69. package/dist/components/TagSelect/components/index.js +1 -1
  70. package/dist/components/TextArea/TextArea.variants.js +1 -0
  71. package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +7 -7
  72. package/dist/components/VirtualizedTable/components/Body/Body.js +47 -44
  73. package/dist/components/VirtualizedTable/components/Filter/Filter.js +68 -68
  74. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  75. package/dist/components/VirtualizedTable/components/Header/Header.js +38 -31
  76. package/dist/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.js +75 -0
  77. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +42 -35
  78. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +72 -72
  79. package/dist/components/VirtualizedTable/components/index.js +14 -12
  80. package/dist/components/VirtualizedTable/constants/index.js +5 -3
  81. package/dist/components/VirtualizedTable/constants/responsive.js +10 -0
  82. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  83. package/dist/components/VirtualizedTable/contexts/table.context.js +4 -0
  84. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  85. package/dist/components/VirtualizedTable/utils/index.js +8 -4
  86. package/dist/components/VirtualizedTable/utils/pinned-columns/index.js +6 -0
  87. package/dist/components/VirtualizedTable/utils/pinned-columns/pinned-columns.js +32 -0
  88. package/dist/components/index.js +147 -145
  89. package/dist/{components-B_SWqhCL.js → components-Bq71eyUH.js} +1 -1
  90. package/dist/{country-locale-map-DbrJ3bEE.js → country-locale-map-BQYYErun.js} +1407 -1407
  91. package/dist/{debounce-dMRJxNsT.js → debounce-DhCY9mXz.js} +2 -2
  92. package/dist/{dist-Dg3vyTx9.js → dist-BCqfbYE9.js} +1356 -1317
  93. package/dist/dist-CMqY_9n-.js +445 -0
  94. package/dist/{es2015-B_07N-UL.js → es2015-BvX7Yq5Q.js} +2 -2
  95. package/dist/index.js +158 -156
  96. package/dist/{isSymbol-BG9higgO.js → isSymbol-CcfkyZfq.js} +1 -1
  97. package/dist/lib/components/Drawer/Drawer.types.d.ts +10 -0
  98. package/dist/lib/components/Drawer/Drawer.variants.d.ts +1 -0
  99. package/dist/lib/components/Drawer/constants/index.d.ts +1 -0
  100. package/dist/lib/components/DropdownButton/DropdownButton.d.ts +2 -1
  101. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +25 -0
  102. package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.d.ts +7 -0
  103. package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.types.d.ts +12 -0
  104. package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
  105. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -0
  106. package/dist/lib/components/Sheet/Sheet.d.ts +21 -0
  107. package/dist/lib/components/Sheet/Sheet.types.d.ts +39 -0
  108. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +9 -0
  109. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +11 -2
  110. package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.d.ts +10 -0
  111. package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.types.d.ts +6 -0
  112. package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +1 -1
  113. package/dist/lib/components/VirtualizedTable/components/index.d.ts +1 -0
  114. package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
  115. package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +2 -0
  116. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +4 -0
  117. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  118. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +2 -1
  119. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
  120. package/dist/lib/components/VirtualizedTable/utils/pinned-columns/index.d.ts +1 -0
  121. package/dist/lib/components/VirtualizedTable/utils/pinned-columns/pinned-columns.d.ts +23 -0
  122. package/dist/lib/components/index.d.ts +3 -1
  123. package/dist/{libphonenumber-DtibHRPP.js → libphonenumber-BIeQOhzl.js} +196 -164
  124. package/dist/package.json +18 -18
  125. package/dist/{phone-number.provider-DnuL-yYF.js → phone-number.provider-CJeivoDY.js} +2 -2
  126. package/dist/{prop-types-BCUW56rg.js → prop-types-qsAjMBb1.js} +1 -1
  127. package/dist/{rolldown-runtime-Dw9YIBcH.js → rolldown-runtime-B28h4lGi.js} +6 -6
  128. package/dist/styles.css +1 -1
  129. package/dist/{table.provider-CzfMGbe4.js → table.provider-QUo2buYX.js} +561 -523
  130. package/dist/{x-Vur_9PXW.js → x-BmNOD9Gr.js} +2 -2
  131. package/package.json +18 -18
  132. package/dist/Breadcrumb-CpXRb08J.js +0 -93
  133. package/dist/DropdownButton-JilCRLJY.js +0 -92
  134. package/dist/Modal-0Wp5szX4.js +0 -84
  135. package/dist/dist-BCoDIdCt.js +0 -429
@@ -1,127 +1,144 @@
1
- import { t as re } from "../../../../HamburgerTrigger-BgeS_nBA.js";
2
- import { t as u } from "../../../../utils-DnIJruo0.js";
3
- import { Drawer as te } from "../../../Drawer/Drawer.js";
4
- import { SidebarContext as I } from "../../contexts/SidebarContext.js";
5
- import { useSidebarMode as ne } from "../../hooks/useSidebarMode.js";
6
- import { dragVariants as oe, wrapperSiderbarVariants as N } from "../../Sidebar.variants.js";
7
- import { useCallback as v, useEffect as o, useRef as s, useState as b } from "react";
8
- import { Fragment as se, jsx as d, jsxs as P } from "react/jsx-runtime";
9
- var de = 280, ae = ({ animateOnHover: _ = !0, canResize: $ = !0, children: D, dividerClassName: j, drawerBreakpoint: U, drawerClassNames: p, drawerMaxWidth: R = de, expandedBreakpoint: X, expandOnHover: C = !0, initialMode: W, initialWidth: L = 256, maxWith: a = 300, minWith: c = 240, mode: q = "auto", separatorClassName: E, style: O, theme: S, triggerClassName: B, openNavigationLabel: G, wrapperClassName: z, onModeChange: w }) => {
10
- const e = ne(q, X, U, W), [T, g] = b(!1), [H, J] = b(null), [f, V] = b(null), m = e === "drawer" ? "drawer" : f ?? e, n = s(null), t = s(null), h = s(!1), k = s(!1), M = s(w), A = s(e);
11
- o(() => {
12
- M.current = w;
13
- }, [w]), o(() => {
14
- A.current !== e && (A.current = e, M.current?.(e, "viewport"));
15
- }, [e]), o(() => {
1
+ import { t as se } from "../../../../HamburgerTrigger-CfrAnhmG.js";
2
+ import { t as a } from "../../../../utils-DnIJruo0.js";
3
+ import { Drawer as ae } from "../../../Drawer/Drawer.js";
4
+ import { SidebarContext as P } from "../../contexts/SidebarContext.js";
5
+ import { useSidebarMode as de } from "../../hooks/useSidebarMode.js";
6
+ import { dragVariants as le, wrapperSiderbarVariants as _ } from "../../Sidebar.variants.js";
7
+ import { useCallback as m, useEffect as s, useRef as d, useState as E } from "react";
8
+ import { Fragment as ce, jsx as l, jsxs as O } from "react/jsx-runtime";
9
+ var ie = 280, ue = ({ animateOnHover: $ = !0, canResize: j = !0, children: R, dividerClassName: U, drawerBreakpoint: X, drawerClassNames: v, drawerMaxWidth: k = ie, expandedBreakpoint: K, expandOnHover: W = !0, expandAsOverlay: q = !1, initialMode: B, initialWidth: S = 256, maxWith: c = 300, minWith: i = 240, mode: G = "auto", separatorClassName: z, style: T, theme: H, triggerClassName: J, openNavigationLabel: Q, overlayClassName: Y, wrapperClassName: V, onModeChange: b }) => {
10
+ const e = de(G, K, X, B), [A, h] = E(!1), [F, Z] = E(null), [u, x] = E(null), w = e === "drawer" ? "drawer" : u ?? e, n = d(null), t = d(null), M = d(!1), N = d(!1), y = d(b), C = d(e);
11
+ s(() => {
12
+ y.current = b;
13
+ }, [b]), s(() => {
14
+ C.current !== e && (C.current = e, y.current?.(e, "viewport"));
15
+ }, [e]), s(() => {
16
16
  if (e !== "drawer") return;
17
17
  const r = () => {
18
- J(window.innerWidth);
18
+ Z(window.innerWidth);
19
19
  };
20
20
  return r(), window.addEventListener("resize", r), () => {
21
21
  window.removeEventListener("resize", r);
22
22
  };
23
23
  }, [e]);
24
- const x = v((r) => {
25
- if (!h.current) {
24
+ const D = m((r) => {
25
+ if (!M.current) {
26
26
  n.current && (n.current.style.opacity = "0");
27
27
  return;
28
28
  }
29
- let i = r.clientX;
30
- i < c && (i = c), i > a && (i = a), t.current && n.current && (t.current.style.width = `${i}px`, n.current.classList.add("opacity-100"));
31
- }, [a, c]), F = v(() => {
32
- h.current = !1, n.current && n.current.classList.remove("opacity-100"), t.current && t.current.classList.remove("transition-none"), document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", F);
33
- }, [x]), K = (r) => {
34
- r.preventDefault(), r.stopPropagation(), h.current = !0, t.current && t.current.classList.add("transition-none"), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", document.addEventListener("mousemove", x), document.addEventListener("mouseup", F);
29
+ let o = r.clientX;
30
+ o < i && (o = i), o > c && (o = c), t.current && n.current && (t.current.style.width = `${o}px`, n.current.classList.add("opacity-100"));
31
+ }, [c, i]), I = m(() => {
32
+ M.current = !1, n.current && n.current.classList.remove("opacity-100"), t.current && t.current.classList.remove("transition-none"), document.body.style.userSelect = "", document.body.style.cursor = "", document.removeEventListener("mousemove", D), document.removeEventListener("mouseup", I);
33
+ }, [D]), ee = (r) => {
34
+ r.preventDefault(), r.stopPropagation(), M.current = !0, t.current && t.current.classList.add("transition-none"), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize", document.addEventListener("mousemove", D), document.addEventListener("mouseup", I);
35
35
  };
36
- o(() => {
37
- m !== "expanded" && t.current && (t.current.style.width = "");
38
- }, [m]), o(() => {
39
- e !== "drawer" && g(!1), V(null);
40
- }, [e]), o(() => {
41
- if (k.current || m !== "expanded" || !t.current) return;
42
- const r = Math.min(Math.max(L, c), a);
43
- t.current.style.width = `${r}px`, k.current = !0;
36
+ s(() => {
37
+ w !== "expanded" && t.current && (t.current.style.width = "");
38
+ }, [w]), s(() => {
39
+ e !== "drawer" && h(!1), x(null);
40
+ }, [e]), s(() => {
41
+ if (N.current || w !== "expanded" || !t.current) return;
42
+ const r = Math.min(Math.max(S, i), c);
43
+ t.current.style.width = `${r}px`, N.current = !0;
44
44
  }, [
45
- L,
46
- a,
45
+ S,
47
46
  c,
48
- m
47
+ i,
48
+ w
49
49
  ]);
50
- const Q = () => {
51
- g(!0);
52
- }, y = v(() => {
53
- g(!1);
54
- }, []), Y = v(() => {
55
- const r = (f ?? e) === "collapsed" ? "expanded" : "collapsed";
56
- V(r), M.current?.(r, "user");
57
- }, [f, e]);
58
- if (e === "drawer") return /* @__PURE__ */ P(se, { children: [/* @__PURE__ */ d(re, {
59
- isOpen: T,
60
- onClick: Q,
61
- className: B,
62
- openNavigationLabel: G
63
- }), /* @__PURE__ */ d(te, {
64
- isOpen: T,
65
- onClose: y,
50
+ const re = () => {
51
+ h(!0);
52
+ }, L = m(() => {
53
+ h(!1);
54
+ }, []), te = m(() => {
55
+ const r = (u ?? e) === "collapsed" ? "expanded" : "collapsed";
56
+ x(r), y.current?.(r, "user");
57
+ }, [u, e]), p = q && e === "collapsed" && u === "expanded", g = m(() => {
58
+ x(null), y.current?.("collapsed", "user");
59
+ }, []);
60
+ if (s(() => {
61
+ if (!p) return;
62
+ const r = (o) => {
63
+ o.key === "Escape" && g();
64
+ };
65
+ return document.addEventListener("keydown", r), () => {
66
+ document.removeEventListener("keydown", r);
67
+ };
68
+ }, [p, g]), e === "drawer") return /* @__PURE__ */ O(ce, { children: [/* @__PURE__ */ l(se, {
69
+ isOpen: A,
70
+ onClick: re,
71
+ className: J,
72
+ openNavigationLabel: Q
73
+ }), /* @__PURE__ */ l(ae, {
74
+ isOpen: A,
75
+ onClose: L,
66
76
  position: "left",
67
- defaultWidth: H !== null ? Math.min(H, R) : R,
68
- theme: S,
77
+ defaultWidth: F !== null ? Math.min(F, k) : k,
78
+ fullScreenOnMobile: !1,
79
+ initialFocus: "panel",
80
+ theme: H,
69
81
  classNames: {
70
- ...p,
71
- root: u("z-60", p?.root),
72
- panel: u(N({ mode: "expanded" }), "h-full border-r-0", z, p?.panel),
73
- content: u("gap-0", p?.content)
82
+ ...v,
83
+ root: a("z-60", v?.root),
84
+ panel: a(_({ mode: "expanded" }), "h-full border-r-0", V, v?.panel),
85
+ content: a("gap-0", v?.content)
74
86
  },
75
- children: /* @__PURE__ */ d(I.Provider, {
87
+ children: /* @__PURE__ */ l(P.Provider, {
76
88
  value: {
77
89
  mode: "expanded",
78
90
  isCollapsed: !1,
79
91
  expandOnHover: !1,
80
92
  animateOnHover: !1,
81
- separatorClassName: E,
82
- closeDrawer: y,
93
+ separatorClassName: z,
94
+ closeDrawer: L,
83
95
  canToggle: !1,
84
96
  toggleMode: () => {
85
97
  }
86
98
  },
87
- children: /* @__PURE__ */ d("div", {
99
+ children: /* @__PURE__ */ l("div", {
88
100
  className: "konstruct-sidebar group/sidebar flex flex-col flex-1 min-h-0",
89
101
  "data-mode": "expanded",
90
- style: O,
91
- children: D
102
+ style: T,
103
+ children: R
92
104
  })
93
105
  })
94
106
  })] });
95
- const l = f ?? e, Z = $ && l === "expanded", ee = {
96
- mode: l,
97
- isCollapsed: l === "collapsed",
98
- expandOnHover: C,
99
- animateOnHover: _,
100
- separatorClassName: E,
101
- closeDrawer: y,
107
+ const f = u ?? e, ne = j && f === "expanded", oe = {
108
+ mode: f,
109
+ isCollapsed: f === "collapsed",
110
+ expandOnHover: W,
111
+ animateOnHover: $,
112
+ separatorClassName: z,
113
+ closeDrawer: p ? g : L,
102
114
  canToggle: !0,
103
- toggleMode: Y
115
+ toggleMode: te
104
116
  };
105
- return /* @__PURE__ */ d(I.Provider, {
106
- value: ee,
107
- children: /* @__PURE__ */ P("aside", {
117
+ return /* @__PURE__ */ O(P.Provider, {
118
+ value: oe,
119
+ children: [p && /* @__PURE__ */ l("div", {
120
+ className: a("konstruct-sidebar-overlay fixed inset-0 z-50 bg-black/55", Y),
121
+ role: "presentation",
122
+ onClick: g
123
+ }), /* @__PURE__ */ O("aside", {
108
124
  ref: t,
109
- className: u("konstruct-sidebar", N({
110
- mode: l,
111
- className: z
125
+ className: a("konstruct-sidebar", _({
126
+ mode: f,
127
+ className: V
112
128
  })),
113
- "data-theme": S,
114
- "data-mode": l,
115
- style: O,
116
- children: [D, Z && /* @__PURE__ */ d("div", {
129
+ "data-theme": H,
130
+ "data-mode": f,
131
+ "data-overlay": p ? "" : void 0,
132
+ style: T,
133
+ children: [R, ne && /* @__PURE__ */ l("div", {
117
134
  ref: n,
118
- className: u(oe({ className: j })),
119
- onMouseDown: K
135
+ className: a(le({ className: U })),
136
+ onMouseDown: ee
120
137
  })]
121
- })
138
+ })]
122
139
  });
123
140
  };
124
- ae.displayName = "Sidebar.Wrapper";
141
+ ue.displayName = "Sidebar.Wrapper";
125
142
  export {
126
- ae as Wrapper
143
+ ue as Wrapper
127
144
  };
@@ -1,4 +1,4 @@
1
- import { t as r } from "../../../HamburgerTrigger-BgeS_nBA.js";
1
+ import { t as r } from "../../../HamburgerTrigger-CfrAnhmG.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,4 +1,4 @@
1
- import { t as a } from "../../../Input-2M2I_H60.js";
1
+ import { t as a } from "../../../Input-O2bqyJKW.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,22 +1,22 @@
1
- import { t as e } from "../../../utils-DnIJruo0.js";
2
- import { Typography as m } from "../../Typography/Typography.js";
1
+ import { t } from "../../../utils-DnIJruo0.js";
2
+ import { Typography as s } from "../../Typography/Typography.js";
3
3
  import { i as n } from "../../../dist-C1a-68Kb.js";
4
- import { triggerVariants as p } from "../Tabs.variants.js";
5
- import { jsx as a } from "react/jsx-runtime";
6
- var s = (r) => r === void 0 ? "auto" : r ? "active" : "inactive", g = ({ tab: r, label: t, isActive: i, className: o }) => /* @__PURE__ */ a(n, {
4
+ import { triggerVariants as u } from "../Tabs.variants.js";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ var l = (r) => r === void 0 ? "auto" : r ? "active" : "inactive", m = ({ tab: r, label: o, isActive: a, className: e }) => /* @__PURE__ */ i(n, {
7
7
  value: r,
8
- className: "group/tab",
9
- children: /* @__PURE__ */ a(m, {
8
+ className: "group/tab rounded-xs outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-aurora-500 kubefirst:focus-visible:outline-kubefirst-primary",
9
+ children: /* @__PURE__ */ i(s, {
10
10
  variant: "body2",
11
11
  component: "span",
12
- className: e(p({
13
- variant: s(i),
14
- className: o
12
+ className: t(u({
13
+ variant: l(a),
14
+ className: e
15
15
  })),
16
- children: t
16
+ children: o
17
17
  })
18
18
  });
19
- g.displayName = "KonstructTabsTrigger";
19
+ m.displayName = "KonstructTabsTrigger";
20
20
  export {
21
- g as Trigger
21
+ m as Trigger
22
22
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as m } from "../../Wrapper-JmStmade.js";
2
+ import { t as m } from "../../Wrapper-B5PmrW4J.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-JmStmade.js";
1
+ import { t as p } from "../../../../Wrapper-B5PmrW4J.js";
2
2
  export {
3
3
  p as Wrapper
4
4
  };
@@ -1,4 +1,4 @@
1
- import { t as m } from "../../../Wrapper-JmStmade.js";
1
+ import { t as m } from "../../../Wrapper-B5PmrW4J.js";
2
2
  import { Item as t } from "./Item/Item.js";
3
3
  import { List as i } from "./List/List.js";
4
4
  export {
@@ -15,6 +15,7 @@ var r = e([
15
15
  "rounded",
16
16
  "text-slate-800",
17
17
  "text-sm",
18
+ "max-md:text-base",
18
19
  "transition-all",
19
20
  "w-full",
20
21
  "disabled:bg-gray-50",
@@ -1,20 +1,20 @@
1
1
  import { t as r } from "../../../../../../utils-DnIJruo0.js";
2
- import { Button as l } from "../../../../../Button/Button.js";
2
+ import { Button as n } from "../../../../../Button/Button.js";
3
3
  import { t as m } from "../../../../../../ellipsis-vertical-C_yX7aQe.js";
4
- import { actionsTriggerVariants as n } from "../../Actions.variants.js";
5
- import { forwardRef as c } from "react";
4
+ import { actionsTriggerVariants as c } from "../../Actions.variants.js";
5
+ import { forwardRef as l } from "react";
6
6
  import { jsx as i, jsxs as p } from "react/jsx-runtime";
7
- var f = c(({ className: a, iconClassName: s, isOpen: t = !1, ...o }, e) => /* @__PURE__ */ p(l, {
7
+ var f = l(({ className: a, iconClassName: o, isOpen: s = !1, ...t }, e) => /* @__PURE__ */ p(n, {
8
8
  ref: e,
9
9
  type: "button",
10
10
  variant: "link",
11
11
  shape: "circle",
12
12
  size: "large",
13
- className: r(n({ isOpen: t }), a),
14
- ...o,
13
+ className: r(c({ isOpen: s }), "pointer-coarse:min-h-11 pointer-coarse:min-w-11", a),
14
+ ...t,
15
15
  children: [/* @__PURE__ */ i(m, {
16
16
  "aria-hidden": "true",
17
- className: r("w-7 h-7", s)
17
+ className: r("w-7 h-7", o)
18
18
  }), /* @__PURE__ */ i("span", {
19
19
  className: "sr-only",
20
20
  children: "Show Actions"
@@ -1,29 +1,31 @@
1
- import { t } from "../../../../utils-DnIJruo0.js";
2
- import { useTableContext as I } from "../../contexts/table.hook.js";
3
- import { isPaginationBarVisible as T } from "../../utils/pagination.js";
4
- import { n as q } from "../../../../table.provider-CzfMGbe4.js";
5
- import { Skeleton as G } from "../Skeleton/Skeleton.js";
6
- import { ExpandableRow as J } from "../ExpandableRow/ExpandableRow.js";
7
- import { Fragment as K } from "react";
8
- import { jsx as e, jsxs as Q } from "react/jsx-runtime";
9
- var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) => {
10
- const { table: m, pageSize: E, totalItems: R = -1 / 0, tableLoading: C, tableError: c, enableExpandedRow: D, classNameExpandedRow: _, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: u, classNameHoverRow: B, classNameActiveExpandedRow: V, renderExpandedRow: f, isBorderOnAdjacentCell: L, isExpandColumnVisible: A } = I();
11
- if (v || C) return /* @__PURE__ */ e(G, {
12
- numberOfRows: E,
13
- table: m
1
+ import { t as r } from "../../../../utils-DnIJruo0.js";
2
+ import { HIDE_BELOW_CLASS as T } from "../../constants/responsive.js";
3
+ import { useTableContext as q } from "../../contexts/table.hook.js";
4
+ import { isPaginationBarVisible as G } from "../../utils/pagination.js";
5
+ import { getPinnedCellProps as J } from "../../utils/pinned-columns/pinned-columns.js";
6
+ import { n as K } from "../../../../table.provider-QUo2buYX.js";
7
+ import { Skeleton as Q } from "../Skeleton/Skeleton.js";
8
+ import { ExpandableRow as U } from "../ExpandableRow/ExpandableRow.js";
9
+ import { Fragment as X } from "react";
10
+ import { jsx as e, jsxs as Y } from "react/jsx-runtime";
11
+ var se = ({ isLoading: y, showPagination: E, emptyState: C, errorState: n }) => {
12
+ const { table: d, pageSize: R, totalItems: D = -1 / 0, tableLoading: _, tableError: c, enableExpandedRow: B, classNameExpandedRow: L, classNameExpandedCell: j, classNameExpandedContent: z, enableHoverRow: f, classNameHoverRow: P, classNameActiveExpandedRow: V, renderExpandedRow: u, isBorderOnAdjacentCell: A, isExpandColumnVisible: H, pinnedWidths: O } = q();
13
+ if (y || _) return /* @__PURE__ */ e(Q, {
14
+ numberOfRows: R,
15
+ table: d
14
16
  });
15
- const r = m.getRowModel().rows ?? [], d = N && T(R), x = r.length === 0 && !!c && !!a, h = r.length > 0 ? null : c && a ? typeof a == "function" ? a(c) : a : y ?? null;
17
+ const a = d.getRowModel().rows ?? [], l = E && G(D), x = a.length === 0 && !!c && !!n, h = a.length > 0 ? null : c && n ? typeof n == "function" ? n(c) : n : C ?? null;
16
18
  if (h) {
17
- const l = m.getVisibleLeafColumns().length;
19
+ const s = d.getVisibleLeafColumns().length;
18
20
  return /* @__PURE__ */ e("tbody", {
19
- className: t("kvt-body", "text-slate-800", "text-sm", "font-normal", "relative", "dark:border-x"),
21
+ className: r("kvt-body", "text-slate-800", "text-sm", "font-normal", "relative", "dark:border-x"),
20
22
  children: /* @__PURE__ */ e("tr", {
21
- className: t(x ? "kvt-error-row" : "kvt-empty-row", "border-b", "border-b-gray-200", "dark:border-b-metal-700", "bg-transparent"),
23
+ className: r(x ? "kvt-error-row" : "kvt-empty-row", "border-b", "border-b-gray-200", "dark:border-b-metal-700", "bg-transparent"),
22
24
  "data-empty-row": !0,
23
25
  "data-error-row": x ? !0 : void 0,
24
26
  children: /* @__PURE__ */ e("td", {
25
- colSpan: l,
26
- className: t("p-0", "bg-white", "dark:bg-metal-900", "dark:border", "dark:border-metal-700", "rounded-b-lg"),
27
+ colSpan: s,
28
+ className: r("p-0", "bg-white", "dark:bg-metal-900", "dark:border", "dark:border-metal-700", "rounded-b-lg"),
27
29
  children: /* @__PURE__ */ e("div", {
28
30
  className: "flex items-center justify-center",
29
31
  children: h
@@ -33,42 +35,43 @@ var te = ({ isLoading: v, showPagination: N, emptyState: y, errorState: a }) =>
33
35
  });
34
36
  }
35
37
  return /* @__PURE__ */ e("tbody", {
36
- className: t("kvt-body", "text-slate-800", "text-sm", "font-normal", "relative", "dark:border-x"),
37
- children: r.map((l, b) => {
38
- const { id: p, original: g, getVisibleCells: F } = l, { meta: s = {} } = g, i = F(), n = D && l.getIsExpanded(), H = !!s.expandedRow || !!f, k = i[0]?.column.id !== "__expand" || A ? 0 : L ? 1 : null;
39
- return /* @__PURE__ */ Q(K, { children: [/* @__PURE__ */ e("tr", {
40
- className: t("kvt-row", { "group/row": u }, "border-b", "border-b-gray-200", "dark:text-metal-50", "dark:border-b-metal-700", "bg-transparent", s.className),
38
+ className: r("kvt-body", "text-slate-800", "text-sm", "font-normal", "relative", "dark:border-x"),
39
+ children: a.map((s, b) => {
40
+ const { id: p, original: g, getVisibleCells: F } = s, { meta: i = {} } = g, m = F(), o = B && s.getIsExpanded(), I = !!i.expandedRow || !!u, k = m[0]?.column.id !== "__expand" || H ? 0 : A ? 1 : null;
41
+ return /* @__PURE__ */ Y(X, { children: [/* @__PURE__ */ e("tr", {
42
+ className: r("kvt-row", { "group/row": f }, "border-b", "border-b-gray-200", "dark:text-metal-50", "dark:border-b-metal-700", "bg-transparent", i.className),
41
43
  "data-row-id": p,
42
- ...s.attributes ?? {},
43
- children: i.map(({ id: M, column: o, getContext: O }, w) => {
44
- const P = typeof o.columnDef.meta?.className == "function" ? o.columnDef.meta?.className(g) : o.columnDef.meta?.className;
44
+ ...i.attributes ?? {},
45
+ children: m.map(({ id: M, column: t, getContext: S }, w) => {
46
+ const W = typeof t.columnDef.meta?.className == "function" ? t.columnDef.meta?.className(g) : t.columnDef.meta?.className, { hideBelow: N } = t.columnDef.meta ?? {}, v = J(d, t, O);
45
47
  return /* @__PURE__ */ e("td", {
46
- className: t("kvt-cell", "px-4", "py-1", "text-sm", "bg-white", "dark:bg-metal-900", "dark:border-t", "dark:border-metal-700", "dark:first:border-l", "dark:last:border-r", "[tr[data-actions-open]_&]:bg-zinc-100", "dark:[tr[data-actions-open]_&]:bg-metal-800", {
47
- "group-hover/row:bg-zinc-100 dark:group-hover/row:bg-metal-800": u,
48
- [t("bg-zinc-100 dark:bg-metal-800", V)]: !!n
49
- }, B, P, {
50
- "rounded-bl-lg": b === r.length - 1 && k !== null && w === k && !d && !n,
51
- "rounded-br-lg": b === r.length - 1 && w === i.length - 1 && !d && !n,
52
- "dark:[tr:last-child_&]:border-b": !d
48
+ style: v.style,
49
+ className: r("kvt-cell", "px-4", "py-1", "text-sm", "bg-white", "dark:bg-metal-900", "dark:border-t", "dark:border-metal-700", "dark:first:border-l", "dark:last:border-r", "[tr[data-actions-open]_&]:bg-zinc-100", "dark:[tr[data-actions-open]_&]:bg-metal-800", {
50
+ "group-hover/row:bg-zinc-100 dark:group-hover/row:bg-metal-800": f,
51
+ [r("bg-zinc-100 dark:bg-metal-800", V)]: !!o
52
+ }, P, v.className, N && T[N], W, {
53
+ "rounded-bl-lg": b === a.length - 1 && k !== null && w === k && !l && !o,
54
+ "rounded-br-lg": b === a.length - 1 && w === m.length - 1 && !l && !o,
55
+ "dark:[tr:last-child_&]:border-b": !l
53
56
  }),
54
- "data-expanded": n ? !0 : void 0,
55
- ...o.columnDef.meta?.attributes ?? {},
56
- children: q(o.columnDef.cell, O())
57
+ "data-expanded": o ? !0 : void 0,
58
+ ...t.columnDef.meta?.attributes ?? {},
59
+ children: K(t.columnDef.cell, S())
57
60
  }, M);
58
61
  })
59
- }), H && /* @__PURE__ */ e(J, {
62
+ }), I && /* @__PURE__ */ e(U, {
60
63
  classNameExpandedCell: j,
61
64
  classNameExpandedContent: z,
62
- classNameExpandedRow: _,
63
- colSpan: i.length,
65
+ classNameExpandedRow: L,
66
+ colSpan: m.length,
64
67
  id: p,
65
- isExpanded: !!n,
66
- isLastRow: b === r.length - 1 && !d,
67
- children: s.expandedRow ?? f?.(g)
68
+ isExpanded: !!o,
69
+ isLastRow: b === a.length - 1 && !l,
70
+ children: i.expandedRow ?? u?.(g)
68
71
  })] }, p);
69
72
  })
70
73
  });
71
74
  };
72
75
  export {
73
- te as Body
76
+ se as Body
74
77
  };