@konstructio/ui 0.1.3 → 0.1.4

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 (95) hide show
  1. package/dist/{Breadcrumb-DzavonoC.js → Breadcrumb-BiiOnn0p.js} +1 -1
  2. package/dist/{CollapsedSteps-CkMuzOHx.js → CollapsedSteps-Dy2I7XDd.js} +35 -35
  3. package/dist/{Input-C1Js3pbF.js → Input-CE6J6HIW.js} +6 -6
  4. package/dist/components/Alert/Alert.js +19 -18
  5. package/dist/components/Alert/Alert.variants.js +11 -4
  6. package/dist/components/Autocomplete/Autocomplete.variants.js +6 -5
  7. package/dist/components/Badge/Badge.js +20 -20
  8. package/dist/components/Badge/Badge.variants.js +5 -0
  9. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  10. package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
  11. package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -2
  13. package/dist/components/Breadcrumb/components/index.js +1 -1
  14. package/dist/components/Button/Button.variants.js +2 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.js +67 -63
  16. package/dist/components/ButtonGroup/ButtonGroup.variants.js +18 -5
  17. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +51 -32
  18. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +56 -8
  19. package/dist/components/Checkbox/Checkbox.variants.js +8 -4
  20. package/dist/components/Command/components/DialogContent.js +5 -5
  21. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
  22. package/dist/components/CopyButton/CopyButton.variants.js +4 -3
  23. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
  24. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
  26. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  27. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  28. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  29. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  30. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
  31. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
  32. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  33. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
  34. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
  35. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +15 -14
  36. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +22 -22
  37. package/dist/components/Input/Input.js +1 -1
  38. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +6 -2
  39. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +5 -5
  40. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
  41. package/dist/components/Range/Range.variants.js +9 -4
  42. package/dist/components/Select/Select.js +21 -20
  43. package/dist/components/Select/components/ListItem/ListItem.js +47 -37
  44. package/dist/components/Select/contexts/select.context.js +1 -0
  45. package/dist/components/Select/contexts/select.provider.js +28 -27
  46. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +3 -1
  47. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +6 -3
  48. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -0
  49. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +4 -2
  50. package/dist/components/Slider/Slider.variants.js +9 -4
  51. package/dist/components/Switch/Switch.variants.js +8 -4
  52. package/dist/components/Table/components/Filter.js +1 -1
  53. package/dist/components/Toast/Toast.variants.js +7 -3
  54. package/dist/components/VirtualizedTable/assets/chevron-down.js +6 -6
  55. package/dist/components/VirtualizedTable/assets/chevron-up.js +4 -4
  56. package/dist/components/VirtualizedTable/components/Body/Body.js +59 -56
  57. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +42 -40
  58. package/dist/components/VirtualizedTable/components/Filter/Filter.js +85 -68
  59. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  60. package/dist/components/VirtualizedTable/components/Header/Header.js +51 -49
  61. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +34 -33
  62. package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +11 -11
  63. package/dist/components/VirtualizedTable/constants/index.js +10 -5
  64. package/dist/components/VirtualizedTable/constants/responsive.js +70 -1
  65. package/dist/components/VirtualizedTable/hooks/index.js +6 -2
  66. package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.js +4 -0
  67. package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.js +20 -0
  68. package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/index.js +4 -0
  69. package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.js +18 -0
  70. package/dist/components/VirtualizedTable/utils/index.js +10 -8
  71. package/dist/components/VirtualizedTable/utils/responsive-edges/responsive-edges.js +8 -0
  72. package/dist/components/index.js +77 -73
  73. package/dist/{constants-q2QnJrOb.js → constants-YCGllWdf.js} +1 -1
  74. package/dist/index.js +77 -73
  75. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
  76. package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +1 -0
  77. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +2 -1
  78. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +9 -0
  79. package/dist/lib/components/Select/Select.types.d.ts +2 -0
  80. package/dist/lib/components/Select/contexts/select.context.d.ts +1 -0
  81. package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
  82. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
  83. package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +1 -2
  84. package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +1 -2
  85. package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +10 -0
  86. package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +2 -0
  87. package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.d.ts +1 -0
  88. package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.d.ts +1 -0
  89. package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/index.d.ts +1 -0
  90. package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.d.ts +2 -0
  91. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
  92. package/dist/lib/components/VirtualizedTable/utils/responsive-edges/responsive-edges.d.ts +6 -0
  93. package/dist/package.json +8 -8
  94. package/dist/styles.css +1 -1
  95. package/package.json +8 -8
@@ -1,93 +1,97 @@
1
- import { n as Q, t as c } from "../../utils-DnIJruo0.js";
2
- import { buttonGroupPillVariants as R, buttonGroupVariants as T, buttonGroupWrapperVariants as U } from "./ButtonGroup.variants.js";
3
- import { ButtonGroupItem as X } from "./components/ButtonGroupItem/ButtonGroupItem.js";
4
- import { ButtonGroupLabel as Y } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
5
- import { ButtonGroupMessage as Z } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
6
- import { useButtonGroup as _ } from "./hooks/useButtonGroup.js";
7
- import { useMemo as ee } from "react";
8
- import { jsx as a, jsxs as G } from "react/jsx-runtime";
9
- import { motion as te } from "motion/react";
10
- var ae = ({ className: g, contentClassName: B, defaultValue: I, descriptionAlign: N, descriptionClassName: x, disabled: s, duration: m, error: o, errorClassName: D, helperText: u, helperTextClassName: $, isRequired: p, itemClassName: w, itemLabelClassName: K, label: i, labelAlign: S, labelClassName: V, name: j, options: t, pillClassName: L, requiredClassName: M, theme: C, value: E, wrapperClassName: F, onValueChange: O }) => {
11
- const { animationDirection: P, groupRef: W, id: n, selected: r, handleKeyDown: k, handleSelect: q } = _({
12
- defaultValue: I,
13
- disabled: s ?? void 0,
1
+ import { n as R, t as u } from "../../utils-DnIJruo0.js";
2
+ import { buttonGroupPillVariants as T, buttonGroupVariants as U, buttonGroupWrapperVariants as X } from "./ButtonGroup.variants.js";
3
+ import { ButtonGroupItem as Y } from "./components/ButtonGroupItem/ButtonGroupItem.js";
4
+ import { ButtonGroupLabel as Z } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
5
+ import { ButtonGroupMessage as _ } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
6
+ import { useButtonGroup as ee } from "./hooks/useButtonGroup.js";
7
+ import { useMemo as te } from "react";
8
+ import { jsx as a, jsxs as g } from "react/jsx-runtime";
9
+ import { motion as ae } from "motion/react";
10
+ var re = ({ className: B, contentClassName: I, defaultValue: N, descriptionAlign: x, descriptionClassName: D, disabled: o, duration: m, error: s, errorClassName: $, helperText: p, helperTextClassName: w, isRequired: f, itemClassName: K, itemLabelClassName: S, label: i, labelAlign: V, labelClassName: j, name: L, options: t, pillClassName: M, requiredClassName: C, theme: E, value: F, variant: n, wrapperClassName: O, onValueChange: P }) => {
11
+ const { animationDirection: W, groupRef: k, id: l, selected: r, handleKeyDown: q, handleSelect: z } = ee({
12
+ defaultValue: N,
13
+ disabled: o ?? void 0,
14
14
  options: t,
15
- value: E,
16
- onValueChange: O
17
- }), f = `${n}-label`, v = `${n}-error`, h = `${n}-helper-text`, l = typeof o == "string" && o.length > 0, z = Q(l && v, !l && !!u && h), b = t.length, y = ee(() => t.findIndex((e) => e.value === r), [t, r]);
18
- return /* @__PURE__ */ G("div", {
19
- className: c(U(), F),
20
- "data-theme": C,
15
+ value: F,
16
+ onValueChange: P
17
+ }), v = `${l}-label`, h = `${l}-error`, b = `${l}-helper-text`, d = typeof s == "string" && s.length > 0, A = R(d && h, !d && !!p && b), y = t.length, G = te(() => t.findIndex((e) => e.value === r), [t, r]);
18
+ return /* @__PURE__ */ g("div", {
19
+ className: u(X(), O),
20
+ "data-theme": E,
21
21
  children: [
22
- i && /* @__PURE__ */ a(Y, {
23
- className: V,
24
- id: f,
25
- isRequired: p,
22
+ i && /* @__PURE__ */ a(Z, {
23
+ className: j,
24
+ id: v,
25
+ isRequired: f,
26
26
  label: i,
27
- requiredClassName: M
27
+ requiredClassName: C
28
28
  }),
29
- /* @__PURE__ */ G("div", {
30
- ref: W,
29
+ /* @__PURE__ */ g("div", {
30
+ ref: k,
31
31
  role: "radiogroup",
32
- "aria-labelledby": i ? f : void 0,
33
- "aria-invalid": l || void 0,
34
- "aria-describedby": z,
35
- "aria-required": p || void 0,
36
- className: c(T({ disabled: s }), g),
37
- children: [y >= 0 && /* @__PURE__ */ a(te.div, {
32
+ "aria-labelledby": i ? v : void 0,
33
+ "aria-invalid": d || void 0,
34
+ "aria-describedby": A,
35
+ "aria-required": f || void 0,
36
+ className: u(U({
37
+ disabled: o,
38
+ variant: n
39
+ }), B),
40
+ children: [n !== "outline" && G >= 0 && /* @__PURE__ */ a(ae.div, {
38
41
  "aria-hidden": "true",
39
- className: c(R(), L),
42
+ className: u(T(), M),
40
43
  initial: !1,
41
44
  animate: {
42
- left: `calc(${y} * (100% / ${b}) + 8px)`,
43
- width: `calc(100% / ${b} - 16px)`
45
+ left: `calc(${G} * (100% / ${y}) + 8px)`,
46
+ width: `calc(100% / ${y} - 16px)`
44
47
  },
45
48
  transition: {
46
49
  type: "tween",
47
50
  ease: "linear",
48
51
  duration: m ?? 0.3
49
52
  }
50
- }), t.map((e, d) => {
51
- const A = r === e.value, H = s || e.disabled, J = !!e.description;
52
- return /* @__PURE__ */ a(X, {
53
- animationDirection: P,
54
- className: w,
55
- contentClassName: B,
56
- descriptionAlign: N,
57
- descriptionClassName: x,
53
+ }), t.map((e, c) => {
54
+ const H = r === e.value, J = o || e.disabled, Q = !!e.description;
55
+ return /* @__PURE__ */ a(Y, {
56
+ animationDirection: W,
57
+ className: K,
58
+ contentClassName: I,
59
+ descriptionAlign: x,
60
+ descriptionClassName: D,
58
61
  duration: m,
59
- hasDescription: J,
60
- index: d,
61
- isDisabled: !!H,
62
- isFirst: d === 0,
63
- isLast: d === t.length - 1,
64
- isSelected: A,
65
- labelAlign: S,
66
- labelClassName: K,
62
+ hasDescription: Q,
63
+ index: c,
64
+ isDisabled: !!J,
65
+ isFirst: c === 0,
66
+ isLast: c === t.length - 1,
67
+ isSelected: H,
68
+ labelAlign: V,
69
+ labelClassName: S,
67
70
  option: e,
68
71
  value: e.value,
69
- onKeyDown: k,
70
- onSelect: q
72
+ variant: n ?? void 0,
73
+ onKeyDown: q,
74
+ onSelect: z
71
75
  }, e.value);
72
76
  })]
73
77
  }),
74
78
  /* @__PURE__ */ a("input", {
75
79
  type: "hidden",
76
- name: j,
80
+ name: L,
77
81
  value: r ?? ""
78
82
  }),
79
- /* @__PURE__ */ a(Z, {
80
- error: o,
81
- errorClassName: D,
82
- errorId: v,
83
- helperText: u,
84
- helperTextClassName: $,
85
- helperTextId: h
83
+ /* @__PURE__ */ a(_, {
84
+ error: s,
85
+ errorClassName: $,
86
+ errorId: h,
87
+ helperText: p,
88
+ helperTextClassName: w,
89
+ helperTextId: b
86
90
  })
87
91
  ]
88
92
  });
89
93
  };
90
- ae.displayName = "KonstructButtonGroup";
94
+ re.displayName = "KonstructButtonGroup";
91
95
  export {
92
- ae as ButtonGroup
96
+ re as ButtonGroup
93
97
  };
@@ -19,11 +19,24 @@ var e = t([
19
19
  "bg-metal-900",
20
20
  "rounded-lg"
21
21
  ], {
22
- variants: { disabled: {
23
- true: "opacity-50 cursor-not-allowed",
24
- false: ""
25
- } },
26
- defaultVariants: { disabled: !1 }
22
+ variants: {
23
+ variant: {
24
+ pill: "",
25
+ outline: [
26
+ "w-fit",
27
+ "bg-transparent",
28
+ "rounded"
29
+ ]
30
+ },
31
+ disabled: {
32
+ true: "opacity-50 cursor-not-allowed",
33
+ false: ""
34
+ }
35
+ },
36
+ defaultVariants: {
37
+ variant: "pill",
38
+ disabled: !1
39
+ }
27
40
  });
28
41
  export {
29
42
  e as buttonGroupPillVariants,
@@ -1,60 +1,79 @@
1
- import { t as r } from "../../../../utils-DnIJruo0.js";
2
- import { buttonGroupDescriptionVariants as L, buttonGroupItemContentVariants as V, buttonGroupItemVariants as g, buttonGroupLabelVariants as o } from "./ButtonGroupItem.variants.js";
3
- import { memo as w } from "react";
4
- import { jsx as s, jsxs as a } from "react/jsx-runtime";
5
- import { motion as j } from "motion/react";
6
- var k = (t, n) => n === "none" ? t ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : t ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = w(({ animationDirection: t, className: n, contentClassName: d, descriptionAlign: p, descriptionClassName: h, duration: b = 0.3, hasDescription: f, index: c, isDisabled: l, isFirst: v, isLast: y, isSelected: i, labelAlign: m, labelClassName: u, option: e, value: N, onKeyDown: G, onSelect: x }) => /* @__PURE__ */ s("button", {
1
+ import { t as a } from "../../../../utils-DnIJruo0.js";
2
+ import { buttonGroupDescriptionVariants as g, buttonGroupItemContentVariants as k, buttonGroupItemVariants as L, buttonGroupLabelVariants as v, buttonGroupOutlineItemVariants as w } from "./ButtonGroupItem.variants.js";
3
+ import { memo as j } from "react";
4
+ import { jsx as s, jsxs as r } from "react/jsx-runtime";
5
+ import { motion as B } from "motion/react";
6
+ var C = (c, l) => l === "none" ? c ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : c ? "inset(0 0 0 0)" : l === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", K = j(({ animationDirection: c, className: l, contentClassName: y, descriptionAlign: N, descriptionClassName: G, duration: I = 0.3, hasDescription: x, index: i, isDisabled: t, isFirst: d, isLast: o, isSelected: n, labelAlign: p, labelClassName: u, option: e, value: h, variant: V, onKeyDown: b, onSelect: f }) => V === "outline" ? /* @__PURE__ */ s("button", {
7
7
  type: "button",
8
8
  role: "radio",
9
- "aria-checked": i,
9
+ "aria-checked": n,
10
10
  "data-value": e.value,
11
- disabled: l,
12
- tabIndex: i || c === 0 ? 0 : -1,
13
- onClick: () => !l && x(N),
14
- onKeyDown: (I) => G(I, c),
15
- className: r(g({
16
- disabled: l,
17
- isFirst: v,
18
- isLast: y
19
- }), "relative", n),
20
- children: /* @__PURE__ */ a("div", {
21
- className: r(V({ hasDescription: f }), "relative", d),
22
- children: [/* @__PURE__ */ a("span", {
11
+ disabled: t,
12
+ tabIndex: n || i === 0 ? 0 : -1,
13
+ onClick: () => !t && f(h),
14
+ onKeyDown: (m) => b(m, i),
15
+ className: a(w({
16
+ selected: n,
17
+ disabled: t,
18
+ isFirst: d,
19
+ isLast: o
20
+ }), l),
21
+ children: /* @__PURE__ */ r("span", {
22
+ className: a("flex items-center gap-2", u),
23
+ children: [e.icon, e.label]
24
+ })
25
+ }) : /* @__PURE__ */ s("button", {
26
+ type: "button",
27
+ role: "radio",
28
+ "aria-checked": n,
29
+ "data-value": e.value,
30
+ disabled: t,
31
+ tabIndex: n || i === 0 ? 0 : -1,
32
+ onClick: () => !t && f(h),
33
+ onKeyDown: (m) => b(m, i),
34
+ className: a(L({
35
+ disabled: t,
36
+ isFirst: d,
37
+ isLast: o
38
+ }), "relative", l),
39
+ children: /* @__PURE__ */ r("div", {
40
+ className: a(k({ hasDescription: x }), "relative", y),
41
+ children: [/* @__PURE__ */ r("span", {
23
42
  className: "relative w-full",
24
- children: [/* @__PURE__ */ a("span", {
25
- className: r(o({
43
+ children: [/* @__PURE__ */ r("span", {
44
+ className: a(v({
26
45
  selected: !1,
27
- labelAlign: m
46
+ labelAlign: p
28
47
  }), u),
29
- children: [/* @__PURE__ */ a("span", {
48
+ children: [/* @__PURE__ */ r("span", {
30
49
  className: "flex items-center gap-2",
31
50
  children: [e.icon, e.label]
32
51
  }), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
33
- }), /* @__PURE__ */ a(j.span, {
34
- className: r(o({
52
+ }), /* @__PURE__ */ r(B.span, {
53
+ className: a(v({
35
54
  selected: !0,
36
- labelAlign: m
55
+ labelAlign: p
37
56
  }), "absolute inset-0", u),
38
57
  "aria-hidden": "true",
39
58
  initial: !1,
40
- animate: { clipPath: k(i, t) },
59
+ animate: { clipPath: C(n, c) },
41
60
  transition: {
42
61
  type: "tween",
43
62
  ease: "linear",
44
- duration: b
63
+ duration: I
45
64
  },
46
- children: [/* @__PURE__ */ a("span", {
65
+ children: [/* @__PURE__ */ r("span", {
47
66
  className: "flex items-center gap-2",
48
67
  children: [e.icon, e.label]
49
68
  }), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
50
69
  })]
51
70
  }), e.description && /* @__PURE__ */ s("span", {
52
- className: r(L({ descriptionAlign: p }), h),
71
+ className: a(g({ descriptionAlign: N }), G),
53
72
  children: e.description
54
73
  })]
55
74
  })
56
75
  }, e.value));
57
- B.displayName = "KonstructButtonGroupItem";
76
+ K.displayName = "KonstructButtonGroupItem";
58
77
  export {
59
- B as ButtonGroupItem
78
+ K as ButtonGroupItem
60
79
  };
@@ -1,5 +1,5 @@
1
- import { t } from "../../../../dist-B9GE4SXf.js";
2
- var r = t([
1
+ import { t as e } from "../../../../dist-B9GE4SXf.js";
2
+ var r = e([
3
3
  "flex",
4
4
  "flex-1",
5
5
  "items-start",
@@ -35,7 +35,54 @@ var r = t([
35
35
  isFirst: !1,
36
36
  isLast: !1
37
37
  }
38
- }), a = t([
38
+ }), a = e([
39
+ "flex",
40
+ "items-center",
41
+ "h-9",
42
+ "px-4",
43
+ "py-2",
44
+ "-ml-px",
45
+ "first:ml-0",
46
+ "border",
47
+ "bg-metal-800",
48
+ "text-sm",
49
+ "font-medium",
50
+ "leading-5",
51
+ "tracking-[0.1px]",
52
+ "whitespace-nowrap",
53
+ "cursor-pointer",
54
+ "select-none",
55
+ "transition-colors",
56
+ "focus:outline-none",
57
+ "focus-visible:ring-2",
58
+ "focus-visible:ring-aurora-500",
59
+ "focus-visible:ring-inset"
60
+ ], {
61
+ variants: {
62
+ selected: {
63
+ true: "relative z-10 border-aurora-500 text-aurora-500",
64
+ false: "border-metal-700 text-metal-300 hover:text-metal-50"
65
+ },
66
+ disabled: {
67
+ true: "pointer-events-none opacity-50",
68
+ false: ""
69
+ },
70
+ isFirst: {
71
+ true: "rounded-l",
72
+ false: ""
73
+ },
74
+ isLast: {
75
+ true: "rounded-r",
76
+ false: ""
77
+ }
78
+ },
79
+ defaultVariants: {
80
+ selected: !1,
81
+ disabled: !1,
82
+ isFirst: !1,
83
+ isLast: !1
84
+ }
85
+ }), s = e([
39
86
  "flex",
40
87
  "flex-col",
41
88
  "flex-1",
@@ -48,7 +95,7 @@ var r = t([
48
95
  false: "justify-center"
49
96
  } },
50
97
  defaultVariants: { hasDescription: !1 }
51
- }), s = t([
98
+ }), i = e([
52
99
  "text-sm",
53
100
  "font-medium",
54
101
  "leading-5",
@@ -76,7 +123,7 @@ var r = t([
76
123
  selected: !1,
77
124
  labelAlign: "left"
78
125
  }
79
- }), i = t([
126
+ }), n = e([
80
127
  "text-sm",
81
128
  "font-normal",
82
129
  "leading-5",
@@ -91,8 +138,9 @@ var r = t([
91
138
  defaultVariants: { descriptionAlign: "left" }
92
139
  });
93
140
  export {
94
- i as buttonGroupDescriptionVariants,
95
- a as buttonGroupItemContentVariants,
141
+ n as buttonGroupDescriptionVariants,
142
+ s as buttonGroupItemContentVariants,
96
143
  r as buttonGroupItemVariants,
97
- s as buttonGroupLabelVariants
144
+ i as buttonGroupLabelVariants,
145
+ a as buttonGroupOutlineItemVariants
98
146
  };
@@ -1,10 +1,14 @@
1
1
  import { t as e } from "../../dist-B9GE4SXf.js";
2
- var a = e([
2
+ var t = e([
3
3
  "cursor-pointer",
4
4
  "tap-target",
5
5
  "touch-hit-area",
6
6
  "relative",
7
7
  "shrink-0",
8
+ "outline-none",
9
+ "focus-visible:outline-2",
10
+ "focus-visible:outline-offset-2",
11
+ "focus-visible:outline-aurora-500",
8
12
  "active:scale-90",
9
13
  "motion-reduce:active:scale-100",
10
14
  "border",
@@ -56,7 +60,7 @@ var a = e([
56
60
  ]
57
61
  }],
58
62
  defaultVariants: { variant: "default" }
59
- }), t = e([
63
+ }), a = e([
60
64
  "select-none",
61
65
  "cursor-pointer",
62
66
  "text-sm",
@@ -64,6 +68,6 @@ var a = e([
64
68
  "dark:text-slate-50"
65
69
  ]);
66
70
  export {
67
- a as checkboxVariants,
68
- t as labelVariants
71
+ t as checkboxVariants,
72
+ a as labelVariants
69
73
  };
@@ -1,15 +1,15 @@
1
- import { n as r, o as d, r as o } from "../../../dist-DWopnVS-.js";
1
+ import { n as i, o as d, r as o } from "../../../dist-DWopnVS-.js";
2
2
  import { t as l } from "../../../x-BmNOD9Gr.js";
3
3
  import { t as m } from "../../../utils-DnIJruo0.js";
4
4
  import { DialogOverlay as p } from "./DialogOverlay.js";
5
5
  import { forwardRef as f } from "react";
6
6
  import { jsx as t, jsxs as a } from "react/jsx-runtime";
7
- var c = f(({ className: e, children: s, ...n }, i) => /* @__PURE__ */ a(d, { children: [/* @__PURE__ */ t(p, {}), /* @__PURE__ */ a(o, {
8
- ref: i,
7
+ var c = f(({ className: e, children: s, ...n }, r) => /* @__PURE__ */ a(d, { children: [/* @__PURE__ */ t(p, {}), /* @__PURE__ */ a(o, {
8
+ ref: r,
9
9
  className: m("fixed text-white left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", e),
10
10
  ...n,
11
- children: [s, /* @__PURE__ */ a(r, {
12
- className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-white",
11
+ children: [s, /* @__PURE__ */ a(i, {
12
+ className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-aurora-500 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-white",
13
13
  children: [/* @__PURE__ */ t(l, { className: "h-4 w-4" }), /* @__PURE__ */ t("span", {
14
14
  className: "sr-only",
15
15
  children: "Close"
@@ -2,7 +2,7 @@ import { WarningIcon as K } from "../../assets/icons/components/Warning.js";
2
2
  import { t as g } from "../../utils-DnIJruo0.js";
3
3
  import { Button as C } from "../Button/Button.js";
4
4
  import { CopyButton as T } from "../CopyButton/CopyButton.js";
5
- import { t as V } from "../../Input-C1Js3pbF.js";
5
+ import { t as V } from "../../Input-CE6J6HIW.js";
6
6
  import { t as l } from "../../Modal-Bwq7Gc0A.js";
7
7
  import { Typography as d } from "../Typography/Typography.js";
8
8
  import { useEffect as W, useId as A, useState as G } from "react";
@@ -1,5 +1,5 @@
1
- import { t } from "../../dist-B9GE4SXf.js";
2
- var i = t([
1
+ import { t as e } from "../../dist-B9GE4SXf.js";
2
+ var i = e([
3
3
  "inline-flex",
4
4
  "shrink-0",
5
5
  "items-center",
@@ -10,7 +10,8 @@ var i = t([
10
10
  "transition-colors",
11
11
  "focus-visible:outline-none",
12
12
  "focus-visible:ring-1",
13
- "focus-visible:ring-ring",
13
+ "focus-visible:ring-aurora-500",
14
+ "kubefirst:focus-visible:ring-kubefirst-primary",
14
15
  "disabled:pointer-events-none",
15
16
  "disabled:opacity-45",
16
17
  "pointer-coarse:min-h-11",
@@ -2,7 +2,7 @@ import { useDateRangePicker as q } from "../../contexts/date-range-picker/date-r
2
2
  import { createDisabledMatcher as z } from "../../utils/disabled-dates/disabled-dates.js";
3
3
  import { IndependentModeCalendar as A } from "./components/IndependentModeCalendar/IndependentModeCalendar.js";
4
4
  import { TogetherModeCalendar as B } from "./components/TogetherModeCalendar/TogetherModeCalendar.js";
5
- import "../../../../constants-q2QnJrOb.js";
5
+ import "../../../../constants-YCGllWdf.js";
6
6
  import '../../../../style.css';import '../../../../CalendarPanel.css';/* empty css */
7
7
  import { useMemo as F } from "react";
8
8
  import { jsx as x } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { t as r } from "../../../../../../utils-DnIJruo0.js";
2
2
  import { getMonthName as o } from "../../../../utils/validation/validation.js";
3
3
  import { calendarMonthTitleVariants as i } from "../../CalendarPanel.variants.js";
4
- import "../../../../../../constants-q2QnJrOb.js";
4
+ import "../../../../../../constants-YCGllWdf.js";
5
5
  import { getWeeksInMonth as l } from "../../utils/index.js";
6
6
  import { Suspense as m, lazy as s } from "react";
7
7
  import { jsx as e, jsxs as h } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t as n } from "../../../../../../../../DayPicker-D7KFB2bI.js";
2
- import { s as d } from "../../../../../../../../constants-q2QnJrOb.js";
2
+ import { s as d } from "../../../../../../../../constants-YCGllWdf.js";
3
3
  import { useMemo as c } from "react";
4
4
  import { jsx as l } from "react/jsx-runtime";
5
5
  var f = ({ month: r, range: e, onRangeSelect: o, disabled: t, disabledMatcher: m, showOutsideDays: s, classNames: a }) => {
@@ -1,6 +1,6 @@
1
1
  import { t as a } from "../../../../../../utils-DnIJruo0.js";
2
2
  import { calendarGridContainerVariants as Q, calendarPanelVariants as U } from "../../CalendarPanel.variants.js";
3
- import "../../../../../../constants-q2QnJrOb.js";
3
+ import "../../../../../../constants-YCGllWdf.js";
4
4
  import { useIndependentCarousel as X } from "../../hooks/useIndependentCarousel.js";
5
5
  import { CalendarDivider as Y } from "../CalendarDivider/CalendarDivider.js";
6
6
  import { CalendarMonth as s } from "../CalendarMonth/CalendarMonth.js";
@@ -1,4 +1,4 @@
1
- import { s as e } from "../../../../../constants-q2QnJrOb.js";
1
+ import { s as e } from "../../../../../constants-YCGllWdf.js";
2
2
  export {
3
3
  e as createDayPickerClassNames
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { getMonthName as E } from "../../../utils/validation/validation.js";
2
- import { a as s, i as _, n as r, o as T, r as e, s as o, t } from "../../../../../constants-q2QnJrOb.js";
2
+ import { a as s, i as _, n as r, o as T, r as e, s as o, t } from "../../../../../constants-YCGllWdf.js";
3
3
  export {
4
4
  t as GAP_WIDTH,
5
5
  r as MONTH_HEADER_HEIGHT,
@@ -1,5 +1,5 @@
1
1
  import { getMonthName as t } from "../../../utils/validation/validation.js";
2
- import { a as o, i as r, n as s, o as H, r as E, s as m, t as _ } from "../../../../../constants-q2QnJrOb.js";
2
+ import { a as o, i as r, n as s, o as H, r as E, s as m, t as _ } from "../../../../../constants-YCGllWdf.js";
3
3
  import { calculateCalendarHeight as T, getNextMonth as i, getPrevMonth as I, getWeeksInMonth as M } from "../utils/index.js";
4
4
  import { useTogetherCarousel as N } from "./useTogetherCarousel.js";
5
5
  import { useIndependentCarousel as h } from "./useIndependentCarousel.js";
@@ -1,4 +1,4 @@
1
- import { r as W } from "../../../../../constants-q2QnJrOb.js";
1
+ import { r as W } from "../../../../../constants-YCGllWdf.js";
2
2
  import { calculateCalendarHeight as j, getNextMonth as m, getPrevMonth as h, getWeeksInMonth as k } from "../utils/index.js";
3
3
  import { useEffect as g, useMemo as p, useRef as L, useState as i } from "react";
4
4
  var Q = ({ displayedMonths: u, animationDuration: F, navigationMode: I }) => {
@@ -1,4 +1,4 @@
1
- import { r as L } from "../../../../../constants-q2QnJrOb.js";
1
+ import { r as L } from "../../../../../constants-YCGllWdf.js";
2
2
  import { calculateCalendarHeight as X, getNextMonth as T, getPrevMonth as g, getWeeksInMonth as $ } from "../utils/index.js";
3
3
  import { useEffect as H, useMemo as j, useRef as E, useState as a } from "react";
4
4
  var Z = ({ displayedMonths: l, animationDuration: I, disabled: N, canNavigatePrev: S, canNavigateNext: b, navigationMode: W, numberOfMonths: F = 2, navigatePrevMonth: p, navigateNextMonth: v }) => {
@@ -1,4 +1,4 @@
1
- import "../../../../../constants-q2QnJrOb.js";
1
+ import "../../../../../constants-YCGllWdf.js";
2
2
  var E = (t) => {
3
3
  const e = t.getFullYear(), a = t.getMonth(), n = new Date(e, a, 1), r = new Date(e, a + 1, 0), o = n.getDay() + r.getDate();
4
4
  return Math.ceil(o / 7);
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../../../../../../utils-DnIJruo0.js";
2
- import { t as F } from "../../../../../../Input-C1Js3pbF.js";
2
+ import { t as F } from "../../../../../../Input-CE6J6HIW.js";
3
3
  import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
4
4
  import { Typography as p } from "../../../../../Typography/Typography.js";
5
5
  import { dateInputWrapperVariants as y, dateTimeGroupVariants as C, inputLabelVariants as l, inputRequiredMarkVariants as L, timeInputWrapperVariants as N } from "../../DateTimeInputs.variants.js";
@@ -1,5 +1,5 @@
1
1
  import { t } from "../../../../../../utils-DnIJruo0.js";
2
- import { t as F } from "../../../../../../Input-C1Js3pbF.js";
2
+ import { t as F } from "../../../../../../Input-CE6J6HIW.js";
3
3
  import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
4
4
  import { Typography as p } from "../../../../../Typography/Typography.js";
5
5
  import { dateInputWrapperVariants as y, dateTimeGroupVariants as C, inputLabelVariants as l, inputRequiredMarkVariants as L, timeInputWrapperVariants as N } from "../../DateTimeInputs.variants.js";
@@ -1,25 +1,26 @@
1
- import { a as l, i as p, r as f, t as c } from "../../../../dist-DPLBSjtu.js";
1
+ import { a as l, i as p, r as c, t as f } from "../../../../dist-DPLBSjtu.js";
2
2
  import { useFilterContext as h } from "../../contexts/filter.hook.js";
3
3
  import { t as g } from "../../../../utils-DnIJruo0.js";
4
4
  import { jsx as e, jsxs as u } from "react/jsx-runtime";
5
- var w = ({ isOpen: r, trigger: t, triggerClassName: o, position: a = "left", contentClassName: n, children: s, onOpenChange: i }) => {
6
- const { theme: m } = h();
7
- return /* @__PURE__ */ u(c, {
8
- open: r,
9
- onOpenChange: i,
5
+ var w = ({ isOpen: o, trigger: r, triggerClassName: t, position: a = "left", contentClassName: i, children: n, onOpenChange: s }) => {
6
+ const { theme: d } = h();
7
+ return /* @__PURE__ */ u(f, {
8
+ open: o,
9
+ onOpenChange: s,
10
10
  children: [/* @__PURE__ */ e(l, {
11
- className: o,
12
- children: t
13
- }), /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(f, {
14
- "data-theme": m,
11
+ className: t,
12
+ children: r
13
+ }), /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(c, {
14
+ "data-theme": d,
15
15
  side: "bottom",
16
16
  sideOffset: 4,
17
+ collisionPadding: 16,
17
18
  align: a === "right" ? "end" : "start",
18
- onOpenAutoFocus: (d) => {
19
- d.preventDefault();
19
+ onOpenAutoFocus: (m) => {
20
+ m.preventDefault();
20
21
  },
21
- className: g("bg-white", "rounded-md", "shadow-md", "animate-in", "fade-in-0", "z-50", "dark:bg-metal-800", "dark:border-metal-700", n),
22
- children: s
22
+ className: g("bg-white", "rounded-md", "shadow-md", "animate-in", "fade-in-0", "z-50", "dark:bg-metal-800", "dark:border-metal-700", i),
23
+ children: n
23
24
  }) })]
24
25
  });
25
26
  };