@konstructio/ui 0.1.6 → 0.1.8

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 (70) hide show
  1. package/dist/check-Bekes_eB.js +14 -0
  2. package/dist/components/CopyButton/CopyButton.js +12 -12
  3. package/dist/components/DateRangePicker/DateRangePicker.js +58 -57
  4. package/dist/components/DateRangePicker/DateRangePicker.variants.js +1 -0
  5. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +55 -54
  6. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +17 -17
  7. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +15 -14
  8. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  9. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +74 -55
  10. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  11. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  12. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  13. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
  14. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +38 -38
  15. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  16. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +60 -56
  17. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +21 -14
  18. package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +41 -25
  19. package/dist/components/DateRangePicker/contexts/date-range-picker/date-range-picker.provider.js +15 -14
  20. package/dist/components/Filter/Filter.variants.js +12 -7
  21. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/MobilePresets/MobilePresets.js +39 -0
  22. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.js +17 -14
  23. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.js +48 -27
  24. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +13 -12
  25. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +53 -17
  26. package/dist/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.provider.js +87 -78
  27. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +44 -20
  28. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +58 -50
  29. package/dist/components/Filter/hooks/index.js +5 -2
  30. package/dist/components/Filter/hooks/useFilterSheet.js +6 -0
  31. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +18 -18
  32. package/dist/components/Sheet/Sheet.js +143 -139
  33. package/dist/components/Sheet/components/SheetStep/SheetStep.js +57 -55
  34. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
  35. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +42 -42
  36. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +25 -2
  37. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +1 -1
  38. package/dist/components/Tabs/Tabs.variants.js +4 -7
  39. package/dist/components/Tabs/components/Trigger.js +5 -5
  40. package/dist/components/Tooltip/Tooltip.js +17 -17
  41. package/dist/components/VirtualizedTable/components/Filter/Filter.js +40 -39
  42. package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
  43. package/dist/components/VirtualizedTable/constants/index.js +6 -5
  44. package/dist/components/VirtualizedTable/constants/responsive.js +2 -1
  45. package/dist/{constants-YCGllWdf.js → constants-Cw00eFTQ.js} +13 -13
  46. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +6 -0
  47. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.types.d.ts +2 -0
  48. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.types.d.ts +2 -0
  49. package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.d.ts +1 -1
  50. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +3 -1
  51. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.context.d.ts +2 -0
  52. package/dist/lib/components/DateRangePicker/contexts/date-range-picker/date-range-picker.types.d.ts +1 -0
  53. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/MobilePresets/MobilePresets.d.ts +3 -0
  54. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/MobilePresets/MobilePresets.types.d.ts +3 -0
  55. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.d.ts +2 -1
  56. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/PanelActions/PanelActions.types.d.ts +4 -0
  57. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.d.ts +2 -1
  58. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/components/Picker/Picker.types.d.ts +4 -0
  59. package/dist/lib/components/Filter/components/CustomDateRangeFilterDropdown/contexts/custom-date-range-filter-dropdown/custom-date-range-filter-dropdown.types.d.ts +2 -0
  60. package/dist/lib/components/Filter/components/FilterDropdown/FilterDropdown.types.d.ts +8 -0
  61. package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
  62. package/dist/lib/components/Filter/hooks/useFilterSheet.d.ts +2 -0
  63. package/dist/lib/components/Sheet/Sheet.types.d.ts +12 -0
  64. package/dist/lib/components/Sheet/components/SheetStep/SheetStep.d.ts +21 -3
  65. package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +1 -0
  66. package/dist/package.json +18 -18
  67. package/dist/styles.css +1 -1
  68. package/dist/ui/utilities.css +23 -0
  69. package/package.json +18 -18
  70. package/dist/StepIndicatorContent-C6MILk4c.js +0 -36
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { t as C } from "../../../../utils-DnIJruo0.js";
3
- import { useEffect as O, useLayoutEffect as L, useRef as c } from "react";
4
- import { jsx as j } from "react/jsx-runtime";
5
- import { animate as y, motion as G, useMotionValue as M } from "motion/react";
6
- var h = "100%", u = {
2
+ import { t as L } from "../../../../utils-DnIJruo0.js";
3
+ import { forwardRef as j, useCallback as G, useEffect as M, useLayoutEffect as V, useRef as u } from "react";
4
+ import { jsx as W } from "react/jsx-runtime";
5
+ import { animate as h, motion as D, useMotionValue as K } from "motion/react";
6
+ var E = "100%", l = {
7
7
  type: "spring",
8
8
  stiffness: 380,
9
9
  damping: 38
10
- }, E = { duration: 0 }, V = 0.05, l = (t) => typeof t == "number" ? t : t.direction, P = "-30%", W = {
11
- enter: (t) => l(t) > 0 ? {
12
- x: h,
10
+ }, R = { duration: 0 }, X = 0.05, d = (t) => typeof t == "number" ? t : t.direction, P = "-30%", q = {
11
+ enter: (t) => d(t) > 0 ? {
12
+ x: E,
13
13
  opacity: 1,
14
14
  zIndex: 1
15
15
  } : {
@@ -20,75 +20,77 @@ var h = "100%", u = {
20
20
  center: (t) => ({
21
21
  x: 0,
22
22
  opacity: 1,
23
- zIndex: l(t) > 0 ? 1 : 0
23
+ zIndex: d(t) > 0 ? 1 : 0
24
24
  }),
25
25
  exit: (t) => typeof t == "object" && t.instant ? {
26
26
  opacity: 0,
27
- transition: E
28
- } : l(t) > 0 ? {
27
+ transition: R
28
+ } : d(t) > 0 ? {
29
29
  x: P,
30
30
  opacity: 1,
31
31
  zIndex: 0
32
32
  } : {
33
- x: h,
33
+ x: E,
34
34
  opacity: 1,
35
35
  zIndex: 1
36
36
  }
37
- }, D = ({ step: t, direction: R, animated: s, canSwipeBack: r, onMount: I, commitSignal: f, isArmed: S, onBackStart: m, onBackMove: A, onBackEnd: T, onBackCommit: g, onBackCancel: N, children: _ }) => {
38
- const n = M(0), a = c(null), o = c(!1), d = c(f);
39
- L(() => {
40
- I(a.current?.getBoundingClientRect().height ?? 0);
37
+ }, w = j(({ step: t, direction: m, animated: a, canSwipeBack: o, onMount: I, commitSignal: f, isArmed: S, onBackStart: A, onBackMove: T, onBackEnd: g, onBackCommit: N, onBackCancel: _, children: b }, s) => {
38
+ const r = K(0), c = u(null), i = u(!1), p = u(f), z = G((e) => {
39
+ c.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
40
+ }, [s]);
41
+ V(() => {
42
+ I(c.current?.getBoundingClientRect().height ?? 0);
41
43
  }, []);
42
44
  const x = () => {
43
- const i = n.get();
44
- if (typeof i == "string") {
45
- const e = a.current?.offsetWidth ?? 0;
46
- n.set(parseFloat(i) / 100 * e || 0);
45
+ const e = r.get();
46
+ if (typeof e == "string") {
47
+ const n = c.current?.offsetWidth ?? 0;
48
+ r.set(parseFloat(e) / 100 * n || 0);
47
49
  }
48
- }, p = () => {
49
- n.stop(), x(), y(n, a.current?.offsetWidth ?? 0, {
50
- ...u,
51
- onComplete: g
50
+ }, v = () => {
51
+ r.stop(), x(), h(r, c.current?.offsetWidth ?? 0, {
52
+ ...l,
53
+ onComplete: N
52
54
  });
53
55
  };
54
- O(() => {
55
- d.current !== f && (d.current = f, p());
56
+ M(() => {
57
+ p.current !== f && (p.current = f, v());
56
58
  }, [f]);
57
- const b = (i, e) => {
58
- o.current = r && S(e), o.current && (n.stop(), x(), m());
59
- }, z = (i, e) => {
60
- if (!o.current) return;
61
- const v = e.offset.x >= 0 ? e.offset.x : e.offset.x * V;
62
- n.set(v), A(Math.max(v, 0));
63
- }, F = (i, e) => {
64
- if (o.current) {
65
- if (o.current = !1, T(e) === "back") {
66
- p();
59
+ const C = (e, n) => {
60
+ i.current = o && S(n), i.current && (r.stop(), x(), A());
61
+ }, F = (e, n) => {
62
+ if (!i.current) return;
63
+ const y = n.offset.x >= 0 ? n.offset.x : n.offset.x * X;
64
+ r.set(y), T(Math.max(y, 0));
65
+ }, O = (e, n) => {
66
+ if (i.current) {
67
+ if (i.current = !1, g(n) === "back") {
68
+ v();
67
69
  return;
68
70
  }
69
- y(n, 0, {
70
- ...u,
71
- onComplete: N
71
+ h(r, 0, {
72
+ ...l,
73
+ onComplete: _
72
74
  });
73
75
  }
74
76
  };
75
- return /* @__PURE__ */ j(G.div, {
76
- ref: a,
77
- custom: R,
78
- className: C("relative flex w-full flex-col bg-white dark:bg-metal-800", r && "touch-pan-y"),
79
- style: { x: n },
80
- variants: s ? W : void 0,
81
- initial: s ? "enter" : !1,
77
+ return /* @__PURE__ */ W(D.div, {
78
+ ref: z,
79
+ custom: m,
80
+ className: L("relative flex w-full flex-col bg-white dark:bg-metal-800", o && "touch-pan-y"),
81
+ style: { x: r },
82
+ variants: a ? q : void 0,
83
+ initial: a ? "enter" : !1,
82
84
  animate: "center",
83
- exit: s ? "exit" : void 0,
84
- transition: s ? u : E,
85
- onPanStart: r ? b : void 0,
86
- onPan: r ? z : void 0,
87
- onPanEnd: r ? F : void 0,
88
- children: _
85
+ exit: a ? "exit" : void 0,
86
+ transition: a ? l : R,
87
+ onPanStart: o ? C : void 0,
88
+ onPan: o ? F : void 0,
89
+ onPanEnd: o ? O : void 0,
90
+ children: b
89
91
  }, t);
90
- };
91
- D.displayName = "KonstructSheetStep";
92
+ });
93
+ w.displayName = "KonstructSheetStep";
92
94
  export {
93
- D as SheetStep
95
+ w as SheetStep
94
96
  };
@@ -51,7 +51,7 @@ var et = (o) => {
51
51
  }), /* @__PURE__ */ t(M, { children: /* @__PURE__ */ s(U, {
52
52
  side: "right",
53
53
  sideOffset: 12,
54
- className: T("z-60 flex w-fit items-center gap-2 rounded px-3 py-2 text-sm shadow-lg whitespace-nowrap", "animate-in fade-in-0", w, y, E),
54
+ className: T("z-60 flex w-fit items-center gap-2 rounded px-3 py-2 text-sm shadow-lg whitespace-nowrap", "animate-tooltip-pop origin-(--radix-tooltip-content-transform-origin) motion-reduce:animate-none", w, y, E),
55
55
  children: [g, /* @__PURE__ */ t(z, { className: O })]
56
56
  }) })] })
57
57
  }) : n;
@@ -1,21 +1,21 @@
1
- import { t } from "../../../../utils-DnIJruo0.js";
1
+ import { t as i } from "../../../../utils-DnIJruo0.js";
2
2
  import { useStepItemLogic as w } from "../../hooks/useStepItemLogic.js";
3
3
  import { stepContentVariants as v, stepDescriptionVariants as C, stepIndicatorVariants as k, stepLabelVariants as g, stepVariants as I } from "../../Stepper.variants.js";
4
4
  import { getStepAriaLabel as x } from "../../utils/index.js";
5
5
  import { StepConnector as y } from "../StepConnector/StepConnector.js";
6
- import { t as S } from "../../../../StepIndicatorContent-C6MILk4c.js";
6
+ import { StepIndicatorContent as S } from "../StepIndicatorContent/StepIndicatorContent.js";
7
7
  import { memo as K } from "react";
8
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
9
- var L = ({ classNames: r, clickable: D, icons: m, index: c, isLast: p, showConnector: b, size: n, step: i, variant: o, onClick: V }) => {
8
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
9
+ var L = ({ classNames: r, clickable: D, icons: m, index: c, isLast: p, showConnector: b, size: a, step: t, variant: o, onClick: V }) => {
10
10
  const { isClickable: l, isDisabled: h, LabelComponent: s, status: e, handleClick: u, handleKeyDown: f } = w({
11
11
  clickable: D,
12
- step: i,
12
+ step: t,
13
13
  onClick: V
14
14
  });
15
15
  return o === "horizontal" ? /* @__PURE__ */ d("div", {
16
16
  className: "flex items-center",
17
17
  children: [/* @__PURE__ */ d("div", {
18
- className: t(I({
18
+ className: i(I({
19
19
  orientation: "horizontal",
20
20
  variant: o,
21
21
  clickable: l
@@ -26,47 +26,47 @@ var L = ({ classNames: r, clickable: D, icons: m, index: c, isLast: p, showConne
26
26
  onKeyDown: f,
27
27
  "aria-current": e === "active" ? "step" : void 0,
28
28
  ...h && { "aria-disabled": !0 },
29
- "aria-label": x(c, i.label, e),
30
- children: [/* @__PURE__ */ a("div", {
31
- className: t(k({
29
+ "aria-label": x(c, t.label, e),
30
+ children: [/* @__PURE__ */ n("div", {
31
+ className: i(k({
32
32
  status: e,
33
- size: n
33
+ size: a
34
34
  }), r?.indicator),
35
35
  "aria-hidden": "true",
36
- children: /* @__PURE__ */ a(S, {
36
+ children: /* @__PURE__ */ n(S, {
37
37
  status: e,
38
38
  index: c,
39
- size: n,
39
+ size: a,
40
40
  icons: m,
41
41
  className: r?.indicatorContent
42
42
  })
43
43
  }), /* @__PURE__ */ d("div", {
44
- className: t(v({ variant: o }), r?.content),
45
- children: [i.label && /* @__PURE__ */ a(s, {
46
- className: t(g({
44
+ className: i(v({ variant: o }), r?.content),
45
+ children: [t.label && /* @__PURE__ */ n(s, {
46
+ className: i(g({
47
47
  status: e,
48
- size: n,
48
+ size: a,
49
49
  variant: o
50
50
  }), r?.label),
51
- children: i.label
52
- }), i.description && /* @__PURE__ */ a("span", {
53
- className: t(C({
51
+ children: t.label
52
+ }), t.description && /* @__PURE__ */ n("span", {
53
+ className: i(C({
54
54
  status: e,
55
- size: n,
55
+ size: a,
56
56
  variant: o
57
57
  }), r?.description),
58
- children: i.description
58
+ children: t.description
59
59
  })]
60
60
  })]
61
- }), !p && b && /* @__PURE__ */ a("div", {
62
- className: t("h-0.5 w-7.5 mx-2 transition-colors duration-200", e === "completed" || e === "active" ? "bg-aurora-500" : e === "error" ? "bg-red-700 dark:bg-red-600" : "bg-slate-300 dark:bg-metal-400", r?.connector),
61
+ }), !p && b && /* @__PURE__ */ n("div", {
62
+ className: i("h-0.5 w-7.5 mx-2 transition-colors duration-200", e === "completed" || e === "active" ? "bg-aurora-500" : e === "error" ? "bg-red-700 dark:bg-red-600" : "bg-slate-300 dark:bg-metal-400", r?.connector),
63
63
  role: "presentation",
64
64
  "aria-hidden": "true"
65
65
  })]
66
66
  }) : /* @__PURE__ */ d("div", {
67
67
  className: "flex flex-1 items-start",
68
68
  children: [/* @__PURE__ */ d("div", {
69
- className: t(I({
69
+ className: i(I({
70
70
  orientation: "horizontal",
71
71
  variant: o,
72
72
  clickable: l
@@ -77,44 +77,44 @@ var L = ({ classNames: r, clickable: D, icons: m, index: c, isLast: p, showConne
77
77
  onKeyDown: f,
78
78
  "aria-current": e === "active" ? "step" : void 0,
79
79
  ...h && { "aria-disabled": !0 },
80
- "aria-label": x(c, i.label, e),
81
- children: [/* @__PURE__ */ a("div", {
82
- className: t(k({
80
+ "aria-label": x(c, t.label, e),
81
+ children: [/* @__PURE__ */ n("div", {
82
+ className: i(k({
83
83
  status: e,
84
- size: n
84
+ size: a
85
85
  }), r?.indicator),
86
86
  "aria-hidden": "true",
87
- children: /* @__PURE__ */ a(S, {
87
+ children: /* @__PURE__ */ n(S, {
88
88
  status: e,
89
89
  index: c,
90
- size: n,
90
+ size: a,
91
91
  icons: m,
92
92
  className: r?.indicatorContent
93
93
  })
94
94
  }), /* @__PURE__ */ d("div", {
95
- className: t(v({ variant: o }), r?.content),
96
- children: [i.label && /* @__PURE__ */ a(s, {
97
- className: t(g({
95
+ className: i(v({ variant: o }), r?.content),
96
+ children: [t.label && /* @__PURE__ */ n(s, {
97
+ className: i(g({
98
98
  status: e,
99
- size: n,
99
+ size: a,
100
100
  variant: o
101
101
  }), r?.label),
102
- children: i.label
103
- }), i.description && /* @__PURE__ */ a("span", {
104
- className: t(C({
102
+ children: t.label
103
+ }), t.description && /* @__PURE__ */ n("span", {
104
+ className: i(C({
105
105
  status: e,
106
- size: n,
106
+ size: a,
107
107
  variant: o
108
108
  }), r?.description),
109
- children: i.description
109
+ children: t.description
110
110
  })]
111
111
  })]
112
- }), !p && b && /* @__PURE__ */ a(y, {
112
+ }), !p && b && /* @__PURE__ */ n(y, {
113
113
  orientation: "horizontal",
114
114
  status: e,
115
- size: n,
115
+ size: a,
116
116
  variant: o,
117
- className: t("mt-6.5", r?.connector)
117
+ className: i("mt-6.5", r?.connector)
118
118
  })]
119
119
  });
120
120
  }, F = K(L);
@@ -1,4 +1,27 @@
1
- import { t as o } from "../../../../StepIndicatorContent-C6MILk4c.js";
1
+ import { t as m } from "../../../../check-Bekes_eB.js";
2
+ import { ExclamationIcon as p } from "../../../../assets/icons/components/Exclamation.js";
3
+ import { t as d } from "../../../../utils-DnIJruo0.js";
4
+ import { CHECK_ICON_SIZE_MAP as f, ICON_SIZE_MAP as a } from "../../constants/index.js";
5
+ import { memo as h } from "react";
6
+ import { jsx as t } from "react/jsx-runtime";
7
+ var C = ({ className: r, icons: e, index: i, size: o, status: n }) => n === "completed" ? e?.completed ? /* @__PURE__ */ t("span", {
8
+ className: r,
9
+ children: e.completed
10
+ }) : /* @__PURE__ */ t(m, {
11
+ className: d(f[o], r),
12
+ strokeWidth: 2.5,
13
+ "aria-hidden": "true"
14
+ }) : n === "error" ? e?.error ? /* @__PURE__ */ t("span", {
15
+ className: r,
16
+ children: e.error
17
+ }) : /* @__PURE__ */ t(p, {
18
+ size: a[o],
19
+ className: r
20
+ }) : /* @__PURE__ */ t("span", {
21
+ className: r,
22
+ "aria-hidden": "true",
23
+ children: i + 1
24
+ }), S = h(C);
2
25
  export {
3
- o as StepIndicatorContent
26
+ S as StepIndicatorContent
4
27
  };
@@ -3,7 +3,7 @@ import { useStepItemLogic as x } from "../../hooks/useStepItemLogic.js";
3
3
  import { stepContentVariants as V, stepDescriptionVariants as I, stepIndicatorVariants as S, stepLabelVariants as k, stepVariants as D } from "../../Stepper.variants.js";
4
4
  import { getStepAriaLabel as L } from "../../utils/index.js";
5
5
  import { StepConnector as g } from "../StepConnector/StepConnector.js";
6
- import { t as j } from "../../../../StepIndicatorContent-C6MILk4c.js";
6
+ import { StepIndicatorContent as j } from "../StepIndicatorContent/StepIndicatorContent.js";
7
7
  import { memo as w } from "react";
8
8
  import { jsx as n, jsxs as c } from "react/jsx-runtime";
9
9
  var y = ({ classNames: e, clickable: m, icons: p, index: d, isLast: s, showConnector: b, size: o, step: r, variant: i, onClick: f }) => {
@@ -1,11 +1,11 @@
1
1
  import { t } from "../../dist-B9GE4SXf.js";
2
- var e = t([""], {
2
+ var r = t([""], {
3
3
  variants: { variant: {
4
4
  horizontal: "",
5
5
  vertical: "flex gap-6"
6
6
  } },
7
7
  defaultVariants: { variant: "horizontal" }
8
- }), r = t([""], {
8
+ }), e = t([""], {
9
9
  variants: { variant: { default: "" } },
10
10
  defaultVariants: { variant: "default" }
11
11
  }), i = t(["flex"], {
@@ -17,9 +17,6 @@ var e = t([""], {
17
17
  defaultVariants: { variant: "default" }
18
18
  }), f = t([
19
19
  "cursor-pointer",
20
- "relative",
21
- "tap-target",
22
- "touch-hit-area",
23
20
  "h-[27px]",
24
21
  "w-fit",
25
22
  "block",
@@ -66,8 +63,8 @@ var e = t([""], {
66
63
  defaultVariants: { variant: "default" }
67
64
  });
68
65
  export {
69
- r as contentVariants,
66
+ e as contentVariants,
70
67
  i as listVariants,
71
- e as rootVariants,
68
+ r as rootVariants,
72
69
  f as triggerVariants
73
70
  };
@@ -1,19 +1,19 @@
1
- import { i as t } from "../../../dist-DeWnSzlM.js";
1
+ import { i as o } from "../../../dist-DeWnSzlM.js";
2
2
  import { Typography as s } from "../../Typography/Typography.js";
3
3
  import { t as n } from "../../../utils-DnIJruo0.js";
4
4
  import { triggerVariants as u } from "../Tabs.variants.js";
5
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(t, {
6
+ var l = (r) => r === void 0 ? "auto" : r ? "active" : "inactive", m = ({ tab: r, label: a, isActive: t, className: e }) => /* @__PURE__ */ i(o, {
7
7
  value: r,
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",
8
+ className: "group/tab relative tap-target touch-hit-area 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
9
  children: /* @__PURE__ */ i(s, {
10
10
  variant: "body2",
11
11
  component: "span",
12
12
  className: n(u({
13
- variant: l(a),
13
+ variant: l(t),
14
14
  className: e
15
15
  })),
16
- children: o
16
+ children: a
17
17
  })
18
18
  });
19
19
  m.displayName = "KonstructTabsTrigger";
@@ -1,32 +1,32 @@
1
1
  import { a as w, i as C, n as b, o as j, r as O, t as P } from "../../dist-DsOk4psA.js";
2
- import { t } from "../../utils-DnIJruo0.js";
2
+ import { t as e } from "../../utils-DnIJruo0.js";
3
3
  import { useState as y } from "react";
4
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
5
- var k = ({ content: o, children: i, asOverlay: r = !1, disabled: a = !1, overlayClassName: n, overlayLabel: p, wrapperClassName: m, side: d = "top", sideOffset: c = 4, bgClassName: f = "bg-slate-700", arrowClassName: h = "fill-slate-700", textClassName: g = "text-white", className: T, delayDuration: u = 0 }) => {
6
- const [x, v] = y(!1), N = r ? /* @__PURE__ */ e("span", {
4
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
5
+ var k = ({ content: t, children: r, asOverlay: s = !1, disabled: a = !1, overlayClassName: n, overlayLabel: p, wrapperClassName: m, side: d = "top", sideOffset: c = 4, bgClassName: f = "bg-slate-700", arrowClassName: h = "fill-slate-700", textClassName: g = "text-white", className: u, delayDuration: x = 0 }) => {
6
+ const [T, v] = y(!1), N = s ? /* @__PURE__ */ o("span", {
7
7
  role: "img",
8
- "aria-label": p ?? (typeof o == "string" ? o : void 0),
8
+ "aria-label": p ?? (typeof t == "string" ? t : void 0),
9
9
  hidden: a,
10
- className: t("absolute cursor-help", n ?? "inset-0")
11
- }) : /* @__PURE__ */ e("span", { children: i }), l = /* @__PURE__ */ e(w, {
12
- delayDuration: u,
13
- children: /* @__PURE__ */ s(P, {
14
- open: !a && x,
10
+ className: e("absolute cursor-help", n ?? "inset-0")
11
+ }) : /* @__PURE__ */ o("span", { children: r }), l = /* @__PURE__ */ o(w, {
12
+ delayDuration: x,
13
+ children: /* @__PURE__ */ i(P, {
14
+ open: !a && T,
15
15
  onOpenChange: v,
16
- children: [/* @__PURE__ */ e(j, {
16
+ children: [/* @__PURE__ */ o(j, {
17
17
  asChild: !0,
18
18
  children: N
19
- }), /* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(O, {
19
+ }), /* @__PURE__ */ o(C, { children: /* @__PURE__ */ i(O, {
20
20
  side: d,
21
21
  sideOffset: c,
22
- className: t("rounded px-2 py-1 text-xs shadow-md", "animate-in fade-in-0", f, g, T),
23
- children: [o, /* @__PURE__ */ e(b, { className: h })]
22
+ className: e("rounded px-2 py-1 text-xs shadow-md", "animate-tooltip-pop origin-(--radix-tooltip-content-transform-origin) motion-reduce:animate-none", f, g, u),
23
+ children: [t, /* @__PURE__ */ o(b, { className: h })]
24
24
  }) })]
25
25
  })
26
26
  });
27
- return r ? /* @__PURE__ */ s("div", {
28
- className: t("relative", m),
29
- children: [i, l]
27
+ return s ? /* @__PURE__ */ i("div", {
28
+ className: e("relative", m),
29
+ children: [r, l]
30
30
  }) : l;
31
31
  };
32
32
  export {
@@ -1,43 +1,44 @@
1
- import { o as U } from "../../../../rolldown-runtime-B28h4lGi.js";
1
+ import { o as K } from "../../../../rolldown-runtime-B28h4lGi.js";
2
2
  import { t as X } from "../../../../debounce-DhCY9mXz.js";
3
- import { Button as x } from "../../../Button/Button.js";
3
+ import { Button as R } from "../../../Button/Button.js";
4
4
  import { Filter as n } from "../../../Filter/Filter.js";
5
- import { resetEvent as Y } from "../../../Filter/events/index.js";
6
- import { t as Z } from "../../../../Input-CE6J6HIW.js";
5
+ import { resetEvent as Z } from "../../../Filter/events/index.js";
6
+ import { t as C } from "../../../../Input-CE6J6HIW.js";
7
+ import { useMediaQuery as ee } from "../../../../hooks/useMediaQuery.js";
7
8
  import { t as d } from "../../../../utils-DnIJruo0.js";
8
- import { HIDE_BELOW_CLASS as C, SHOW_BELOW_CLASS as ee } from "../../constants/responsive.js";
9
- import { useTableContext as te } from "../../contexts/table.hook.js";
10
- import { useIsFlexWrapped as ae } from "../../hooks/useIsFlexWrapped/useIsFlexWrapped.js";
11
- import { t as re } from "../../../../events.types-BG1Uh8i6.js";
12
- import { getTableId as oe } from "../../utils/get-table-id.js";
13
- import { useEffect as se, useMemo as ne, useRef as D } from "react";
9
+ import { HIDE_BELOW_CLASS as te, SHOW_BELOW_CLASS as ae } from "../../constants/responsive.js";
10
+ import { useTableContext as re } from "../../contexts/table.hook.js";
11
+ import { useIsFlexWrapped as oe } from "../../hooks/useIsFlexWrapped/useIsFlexWrapped.js";
12
+ import { t as se } from "../../../../events.types-BG1Uh8i6.js";
13
+ import { getTableId as ne } from "../../utils/get-table-id.js";
14
+ import { useEffect as le, useMemo as ce, useRef as D } from "react";
14
15
  import { jsx as o, jsxs as y } from "react/jsx-runtime";
15
- var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multiSelectFilter: k, placeholder: A, showFilterInput: b = !0, showResetButton: E = !0, resetButtonClassName: B, closeOnApply: I = !0 }) => {
16
- const l = D(null), v = D(null), M = ae(v), m = oe(T), { termOfSearch: j, multiselectSelected: N, dateFilters: f, dateRangeFilters: g, timeFilters: L, onChangeTermOfSearch: c, onSelectMultiselect: P, onSelectDateFilter: W, onSelectDateRangeFilter: S, onSelectTimeFilter: z } = te(), w = [...O ?? k?.map((e) => ({
16
+ var me = /* @__PURE__ */ K(X(), 1), Oe = ({ id: _, actions: T, filters: E, multiSelectFilter: O, placeholder: k, showFilterInput: b = !0, showResetButton: A = !0, resetButtonClassName: I, closeOnApply: M = !0 }) => {
17
+ const l = D(null), v = D(null), B = oe(v), f = ee("(max-width: 767.98px)") && B ? "left" : "right", m = ne(_), { termOfSearch: j, multiselectSelected: L, dateFilters: N, dateRangeFilters: P, timeFilters: g, onChangeTermOfSearch: c, onSelectMultiselect: W, onSelectDateFilter: z, onSelectDateRangeFilter: w, onSelectTimeFilter: H } = re(), S = [...E ?? O?.map((e) => ({
17
18
  ...e,
18
19
  type: "badgeMultiSelect"
19
- })) ?? [], ..._ ?? []], H = w.filter((e) => e.type === "action" && !!e.iconOnlyBelow), F = (e, t) => {
20
- P(e, t.map((r) => r.id));
20
+ })) ?? [], ...T ?? []], Q = S.filter((e) => e.type === "action" && !!e.iconOnlyBelow), F = (e, t) => {
21
+ W(e, t.map((r) => r.id));
21
22
  }, q = () => {
22
23
  c(""), l.current && (l.current.value = "");
23
24
  };
24
- se(() => {
25
+ le(() => {
25
26
  const e = new AbortController();
26
- return document.addEventListener(re.RESET_FILTERS, (t) => {
27
+ return document.addEventListener(se.RESET_FILTERS, (t) => {
27
28
  const { detail: r } = t;
28
- r.tableId === m && (c(""), l.current && (l.current.value = ""), Y(m));
29
+ r.tableId === m && (c(""), l.current && (l.current.value = ""), Z(m));
29
30
  }, { signal: e.signal }), () => e.abort();
30
31
  }, [m, c]);
31
- const V = ne(() => (0, le.default)((e) => {
32
+ const U = ce(() => (0, me.default)((e) => {
32
33
  c(e.target.value);
33
- }, 500), [c]), $ = !!j || Object.values(N ?? {}).flat().length > 0 || Object.values(f ?? {}).some(Boolean) || Object.values(g ?? {}).some(Boolean) || Object.values(L ?? {}).some(Boolean), G = (e) => {
34
+ }, 500), [c]), V = !!j || Object.values(L ?? {}).flat().length > 0 || Object.values(N ?? {}).some(Boolean) || Object.values(P ?? {}).some(Boolean) || Object.values(g ?? {}).some(Boolean), Y = (e) => {
34
35
  if (e.type === "action") {
35
- const { label: a, appearance: p = "compact", variant: i = "secondary", leftIcon: u, rightIcon: h, iconOnlyBelow: R, className: K, type: ce, ...Q } = e;
36
- return /* @__PURE__ */ y(x, {
36
+ const { label: a, appearance: p = "compact", variant: i = "secondary", leftIcon: u, rightIcon: h, iconOnlyBelow: x, className: G, type: pe, ...J } = e;
37
+ return /* @__PURE__ */ y(R, {
37
38
  appearance: p,
38
39
  variant: i,
39
- className: d(R && C[R], K),
40
- ...Q,
40
+ className: d(x && te[x], G),
41
+ ...J,
41
42
  children: [
42
43
  u,
43
44
  a,
@@ -45,7 +46,7 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
45
46
  ]
46
47
  }, a);
47
48
  }
48
- const { key: t, label: r, position: s = M ? "left" : "right" } = e;
49
+ const { key: t, label: r, position: s = f } = e;
49
50
  if (e.type === "textMultiSelect") return /* @__PURE__ */ o(n.TextMultiSelect, {
50
51
  label: r,
51
52
  position: s,
@@ -59,7 +60,7 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
59
60
  position: s,
60
61
  countryCode: e.countryCode,
61
62
  onApply: (a) => {
62
- W(t, a);
63
+ z(t, a);
63
64
  }
64
65
  }, t);
65
66
  if (e.type === "dateRange") return /* @__PURE__ */ o(n.DateRangeFilterDropdown, {
@@ -73,7 +74,7 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
73
74
  maxDate: e.maxDate,
74
75
  countryCode: e.countryCode,
75
76
  onApply: (a) => {
76
- S(t, a);
77
+ w(t, a);
77
78
  },
78
79
  onRangeChange: e.onRangeChange
79
80
  }, t);
@@ -83,7 +84,7 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
83
84
  ...i,
84
85
  position: s,
85
86
  onApply: (u) => {
86
- S(t, u);
87
+ w(t, u);
87
88
  }
88
89
  }, t);
89
90
  }
@@ -94,7 +95,7 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
94
95
  presets: e.presets,
95
96
  showTimePicker: e.showTimePicker,
96
97
  onApply: (a) => {
97
- z(t, a);
98
+ H(t, a);
98
99
  }
99
100
  }, t) : /* @__PURE__ */ o(n.BadgeMultiSelect, {
100
101
  label: r,
@@ -104,10 +105,10 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
104
105
  F(t, a);
105
106
  }
106
107
  }, t);
107
- }, J = ({ label: e, variant: t = "secondary", leftIcon: r, rightIcon: s, iconOnlyBelow: a, className: p, appearance: i, type: u, ...h }) => /* @__PURE__ */ o(x, {
108
+ }, $ = ({ label: e, variant: t = "secondary", leftIcon: r, rightIcon: s, iconOnlyBelow: a, className: p, appearance: i, type: u, ...h }) => /* @__PURE__ */ o(R, {
108
109
  variant: t,
109
110
  "aria-label": e,
110
- className: d("relative size-10 shrink-0 p-0 pointer-coarse:min-h-10 touch-hit-area [&>svg]:size-5", a && ee[a], p),
111
+ className: d("relative size-10 shrink-0 p-0 pointer-coarse:min-h-10 touch-hit-area [&>svg]:size-5", a && ae[a], p),
111
112
  ...h,
112
113
  children: r ?? s
113
114
  }, e);
@@ -117,24 +118,24 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
117
118
  children: [
118
119
  b && /* @__PURE__ */ o("div", {
119
120
  className: "kvt-search-wrapper w-60 min-w-0 max-sm:grow max-sm:basis-0",
120
- children: /* @__PURE__ */ o(Z, {
121
+ children: /* @__PURE__ */ o(C, {
121
122
  ref: l,
122
- placeholder: A,
123
+ placeholder: k,
123
124
  isSearch: !0,
124
125
  autoComplete: "false",
125
126
  className: "kvt-search w-full",
126
127
  inputMode: "search",
127
- onChange: V
128
+ onChange: U
128
129
  })
129
130
  }),
130
- H.map(J),
131
+ Q.map($),
131
132
  /* @__PURE__ */ y(n, {
132
133
  className: "kvt-filter-actions flex-wrap gap-4 max-sm:basis-full",
133
- closeOnApply: I,
134
+ closeOnApply: M,
134
135
  resetScope: m,
135
- children: [w.map(G), E && /* @__PURE__ */ o(n.ResetButton, {
136
- className: d("select-none max-md:ml-auto", B),
137
- disabled: !$,
136
+ children: [S.map(Y), A && /* @__PURE__ */ o(n.ResetButton, {
137
+ className: d("select-none max-md:h-auto max-md:min-h-0! max-md:py-0", I),
138
+ disabled: !V,
138
139
  onClick: q
139
140
  })]
140
141
  })
@@ -142,5 +143,5 @@ var le = /* @__PURE__ */ U(X(), 1), De = ({ id: T, actions: _, filters: O, multi
142
143
  });
143
144
  };
144
145
  export {
145
- De as Filter
146
+ Oe as Filter
146
147
  };