@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
@@ -3,7 +3,7 @@ import { t as x } from "./prop-types-qsAjMBb1.js";
3
3
  import { t as y } from "./utils-DnIJruo0.js";
4
4
  import { breadcrumbVariants as S, breadcrumbWrapperVariants as z } from "./components/Breadcrumb/Breadcrumb.variants.js";
5
5
  import { BackButton as C } from "./components/Breadcrumb/components/BackButton/BackButton.js";
6
- import { t as P } from "./CollapsedSteps-CkMuzOHx.js";
6
+ import { t as P } from "./CollapsedSteps-Dy2I7XDd.js";
7
7
  import { Item as $ } from "./components/Breadcrumb/components/Item/Item.js";
8
8
  import b, { Fragment as k, forwardRef as E, useId as L } from "react";
9
9
  import { Fragment as R, jsx as i, jsxs as d } from "react/jsx-runtime";
@@ -1,43 +1,43 @@
1
- import { o as g } from "./rolldown-runtime-B28h4lGi.js";
2
- import { a as h, n as v, r as u, t as y } from "./dist-D0f-mfFj.js";
1
+ import { o as h } from "./rolldown-runtime-B28h4lGi.js";
2
+ import { a as g, n as v, r as d, t as y } from "./dist-D0f-mfFj.js";
3
3
  import { t as b } from "./prop-types-qsAjMBb1.js";
4
4
  import { n as x, t as w } from "./useBreadcrumb-Ta3_czcd.js";
5
- import { t as d } from "./utils-DnIJruo0.js";
5
+ import { t as u } from "./utils-DnIJruo0.js";
6
6
  import l, { forwardRef as O } from "react";
7
- import { jsx as a, jsxs as k } from "react/jsx-runtime";
8
- var c = /* @__PURE__ */ g(b());
7
+ import { jsx as i, jsxs as k } from "react/jsx-runtime";
8
+ var c = /* @__PURE__ */ h(b());
9
9
  function m() {
10
10
  return m = Object.assign || function(e) {
11
- for (var n = 1; n < arguments.length; n++) {
12
- var o = arguments[n];
11
+ for (var a = 1; a < arguments.length; a++) {
12
+ var o = arguments[a];
13
13
  for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
14
14
  }
15
15
  return e;
16
16
  }, m.apply(this, arguments);
17
17
  }
18
- function j(e, n) {
18
+ function j(e, a) {
19
19
  if (e == null) return {};
20
- var o = N(e, n), r, t;
20
+ var o = N(e, a), r, t;
21
21
  if (Object.getOwnPropertySymbols) {
22
- var i = Object.getOwnPropertySymbols(e);
23
- for (t = 0; t < i.length; t++)
24
- r = i[t], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
22
+ var n = Object.getOwnPropertySymbols(e);
23
+ for (t = 0; t < n.length; t++)
24
+ r = n[t], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
25
25
  }
26
26
  return o;
27
27
  }
28
- function N(e, n) {
28
+ function N(e, a) {
29
29
  if (e == null) return {};
30
- for (var o = {}, r = Object.keys(e), t, i = 0; i < r.length; i++)
31
- t = r[i], !(n.indexOf(t) >= 0) && (o[t] = e[t]);
30
+ for (var o = {}, r = Object.keys(e), t, n = 0; n < r.length; n++)
31
+ t = r[n], !(a.indexOf(t) >= 0) && (o[t] = e[t]);
32
32
  return o;
33
33
  }
34
- var p = O(function(e, n) {
35
- var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size, i = t === void 0 ? 24 : t, s = j(e, ["color", "size"]);
34
+ var p = O(function(e, a) {
35
+ var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size, n = t === void 0 ? 24 : t, s = j(e, ["color", "size"]);
36
36
  return /* @__PURE__ */ l.createElement("svg", m({
37
- ref: n,
37
+ ref: a,
38
38
  xmlns: "http://www.w3.org/2000/svg",
39
- width: i,
40
- height: i,
39
+ width: n,
40
+ height: n,
41
41
  viewBox: "0 0 24 24",
42
42
  fill: "none",
43
43
  stroke: r,
@@ -63,44 +63,44 @@ p.propTypes = {
63
63
  size: c.default.oneOfType([c.default.string, c.default.number])
64
64
  };
65
65
  p.displayName = "MoreHorizontal";
66
- var f = d("flex w-full items-center gap-1 px-4 py-1.5 text-sm font-semibold outline-none", "text-gray-600 hover:bg-gray-50 focus:bg-gray-50 hover:cursor-pointer", "dark:text-gray-300 dark:hover:bg-metal-700 dark:focus:bg-metal-700"), R = ({ label: e, steps: n }) => {
66
+ var f = u("flex w-full items-center gap-1 px-4 py-1.5 text-sm font-semibold outline-none", "text-gray-600 hover:bg-gray-50 focus:bg-gray-50 hover:cursor-pointer", "dark:text-gray-300 dark:hover:bg-metal-700 dark:focus:bg-metal-700"), R = ({ label: e, steps: a }) => {
67
67
  const { isInsideRouter: o } = w();
68
- return /* @__PURE__ */ a("li", {
68
+ return /* @__PURE__ */ i("li", {
69
69
  className: "flex items-center",
70
70
  children: /* @__PURE__ */ k(y, {
71
71
  modal: !1,
72
- children: [/* @__PURE__ */ a(h, {
72
+ children: [/* @__PURE__ */ i(g, {
73
73
  "aria-label": e,
74
- className: d("flex items-center rounded-xs text-gray-400 hover:text-gray-500", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-500", "dark:hover:text-gray-300 cursor-pointer"),
75
- children: /* @__PURE__ */ a(p, {
74
+ className: u("flex items-center rounded-xs text-gray-400 hover:text-gray-500", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-aurora-500", "dark:hover:text-gray-300 cursor-pointer", "relative tap-target touch-hit-area"),
75
+ children: /* @__PURE__ */ i(p, {
76
76
  className: "w-5 h-5",
77
77
  "aria-hidden": "true"
78
78
  })
79
- }), /* @__PURE__ */ a(v, {
79
+ }), /* @__PURE__ */ i(v, {
80
80
  align: "start",
81
81
  sideOffset: 4,
82
82
  loop: !0,
83
- className: d("z-50 min-w-40 rounded border border-gray-200 bg-white py-2 shadow-xs", "animate-in fade-in-0", "dark:border-metal-700 dark:bg-metal-800"),
84
- children: n.map(({ label: r, to: t, target: i, component: s }) => t ? o && !s ? /* @__PURE__ */ a(u, {
83
+ className: u("z-50 min-w-40 rounded border border-gray-200 bg-white py-2 shadow-xs", "animate-in fade-in-0", "dark:border-metal-700 dark:bg-metal-800"),
84
+ children: a.map(({ label: r, to: t, target: n, component: s }) => t ? o && !s ? /* @__PURE__ */ i(d, {
85
85
  asChild: !0,
86
- children: /* @__PURE__ */ a(x, {
86
+ children: /* @__PURE__ */ i(x, {
87
87
  to: t,
88
- target: i,
88
+ target: n,
89
89
  className: f,
90
90
  children: r
91
91
  })
92
- }, r) : /* @__PURE__ */ a(u, {
92
+ }, r) : /* @__PURE__ */ i(d, {
93
93
  asChild: !0,
94
- children: /* @__PURE__ */ a(s ?? "a", {
94
+ children: /* @__PURE__ */ i(s ?? "a", {
95
95
  href: s ? void 0 : t,
96
96
  to: s ? t : void 0,
97
- target: i,
97
+ target: n,
98
98
  className: f,
99
99
  children: r
100
100
  })
101
- }, r) : /* @__PURE__ */ a(u, {
101
+ }, r) : /* @__PURE__ */ i(d, {
102
102
  disabled: !0,
103
- className: d(f, "cursor-default"),
103
+ className: u(f, "cursor-default"),
104
104
  children: r
105
105
  }, r))
106
106
  })]
@@ -107,8 +107,8 @@ O.propTypes = {
107
107
  size: c.default.oneOfType([c.default.string, c.default.number])
108
108
  };
109
109
  O.displayName = "Eye";
110
- var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hidePasswordLabel: n = "Hide password", id: a, isRequired: p = !1, isSearch: j = !1, label: k, labelAction: I, labelClassName: _, labelWrapperClassName: z, name: $, showPasswordLabel: T = "Show password", theme: L, type: f = "text", ...W }, S) => {
111
- const M = G(), u = a ?? M, N = `${u}-error`, E = `${u}-helper-text`, B = J(f === "password"), [m, C] = Q(() => f !== "password"), s = typeof o == "string" && o.length > 0, h = f === "password", P = !s && !!r, A = K(s && N, P && E), H = m ? O : b;
110
+ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hidePasswordLabel: n = "Hide password", id: a, isRequired: p = !1, isSearch: j = !1, label: k, labelAction: I, labelClassName: _, labelWrapperClassName: z, name: $, showPasswordLabel: T = "Show password", theme: L, type: u = "text", ...W }, S) => {
111
+ const M = G(), f = a ?? M, N = `${f}-error`, E = `${f}-helper-text`, B = J(u === "password"), [m, C] = Q(() => u !== "password"), s = typeof o == "string" && o.length > 0, h = u === "password", P = !s && !!r, A = K(s && N, P && E), H = m ? O : b;
112
112
  return /* @__PURE__ */ v("div", {
113
113
  className: "flex flex-col gap-2 w-full relative",
114
114
  "data-theme": L,
@@ -118,7 +118,7 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
118
118
  children: [/* @__PURE__ */ v(g, {
119
119
  component: "label",
120
120
  variant: "labelLarge",
121
- htmlFor: u,
121
+ htmlFor: f,
122
122
  className: l("cursor-pointer", "flex", "gap-1", "text-sm", "font-medium", _),
123
123
  children: [
124
124
  k,
@@ -141,10 +141,10 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
141
141
  }) : null,
142
142
  /* @__PURE__ */ i("input", {
143
143
  ...W,
144
- id: u,
144
+ id: f,
145
145
  ref: S,
146
146
  name: $,
147
- type: m ? B.current ? "text" : f : "password",
147
+ type: m ? B.current ? "text" : u : "password",
148
148
  "data-error": s,
149
149
  "aria-invalid": s || void 0,
150
150
  "aria-describedby": A,
@@ -165,7 +165,7 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
165
165
  h ? /* @__PURE__ */ i("button", {
166
166
  type: "button",
167
167
  "aria-label": m ? n : T,
168
- className: l("-translate-y-1/2", "absolute", "cursor-pointer", "right-3", "text-slate-400", "top-1/2"),
168
+ className: l("-translate-y-1/2", "absolute", "cursor-pointer", "right-3", "rounded outline-none focus-visible:ring-1 focus-visible:ring-aurora-500", "tap-target touch-hit-area", "text-slate-400", "top-1/2"),
169
169
  onClick: () => C(!m),
170
170
  children: /* @__PURE__ */ i(H, { className: "w-5 h-5" })
171
171
  }) : null
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import { t as v } from "../../x-BmNOD9Gr.js";
3
- import { t as I } from "../../dist-C_jtUTU9.js";
3
+ import { t as N } from "../../dist-C_jtUTU9.js";
4
4
  import { t } from "../../utils-DnIJruo0.js";
5
- import { CheckCircleFilledIcon as N } from "../../assets/icons/components/CheckCircleFilled.js";
5
+ import { CheckCircleFilledIcon as I } from "../../assets/icons/components/CheckCircleFilled.js";
6
6
  import { ErrorIcon as g } from "../../assets/icons/components/Error.js";
7
7
  import { InfoCircleIcon as b } from "../../assets/icons/components/InfoCircle.js";
8
8
  import { WarningTriangleIcon as x } from "../../assets/icons/components/WarningTriangle.js";
9
9
  import { alertVariants as V, closeButtonVariants as k, descriptionVariants as w, iconVariants as A, titleVariants as E } from "./Alert.variants.js";
10
10
  import { useEffect as j, useRef as P, useState as R } from "react";
11
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
12
- var B = {
13
- success: N,
11
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
12
+ var z = {
13
+ success: I,
14
14
  info: b,
15
15
  warning: x,
16
16
  danger: g
17
- }, _ = ({ action: o, icon: d, theme: f, type: r, title: i, description: c, isVisible: s = !0, showCloseButton: u = !1 }) => {
17
+ }, X = ({ action: i, icon: d, theme: f, type: e, title: o, description: c, isVisible: s = !0, showCloseButton: u = !1 }) => {
18
18
  const a = P(null), [p, h] = R(s), C = () => {
19
19
  const n = a.current;
20
20
  n && n.setAttribute("data-state", "hidden");
@@ -25,11 +25,11 @@ var B = {
25
25
  a.current?.style.setProperty("display", "none"), h(!1);
26
26
  }, { signal: n.signal }), () => n.abort();
27
27
  }, []), !p) return null;
28
- const m = r ? B[r] : null;
28
+ const m = e ? z[e] : null;
29
29
  return /* @__PURE__ */ l("div", {
30
30
  ref: a,
31
31
  className: t(V({
32
- type: r,
32
+ type: e,
33
33
  isVisible: s
34
34
  })),
35
35
  "data-state": s ? "visible" : "hidden",
@@ -37,29 +37,30 @@ var B = {
37
37
  role: "alert",
38
38
  "aria-live": "polite",
39
39
  children: [
40
- d ?? (m && /* @__PURE__ */ e(m, { className: t(A({ type: r })) })),
40
+ d ?? (m && /* @__PURE__ */ r(m, { className: t(A({ type: e })) })),
41
41
  /* @__PURE__ */ l("div", {
42
42
  className: "flex flex-col gap-1 flex-1",
43
- children: [i && /* @__PURE__ */ e("p", {
44
- className: t(E({ type: r })),
45
- children: i
46
- }), c && /* @__PURE__ */ e("div", {
47
- className: t(w({ type: r })),
43
+ children: [o && /* @__PURE__ */ r("p", {
44
+ className: t(E({ type: e })),
45
+ children: o
46
+ }), c && /* @__PURE__ */ r("div", {
47
+ className: t(w({ type: e })),
48
48
  children: c
49
49
  })]
50
50
  }),
51
- o ? /* @__PURE__ */ e("div", {
51
+ i ? /* @__PURE__ */ r("div", {
52
52
  className: "shrink-0 self-center",
53
- children: o
53
+ children: i
54
54
  }) : null,
55
55
  u && /* @__PURE__ */ l("button", {
56
56
  type: "button",
57
+ className: t(k({ type: e })),
57
58
  onClick: C,
58
- children: [/* @__PURE__ */ e(v, { className: t(k({ type: r })) }), /* @__PURE__ */ e(I, { children: "Dismiss alert" })]
59
+ children: [/* @__PURE__ */ r(v, { className: "size-4" }), /* @__PURE__ */ r(N, { children: "Dismiss alert" })]
59
60
  })
60
61
  ]
61
62
  });
62
63
  };
63
64
  export {
64
- _ as Alert
65
+ X as Alert
65
66
  };
@@ -68,7 +68,7 @@ var r = e([
68
68
  info: ["text-blue-700", "dark:text-blue-200"],
69
69
  warning: ["text-yellow-700", "dark:text-yellow-100"],
70
70
  danger: ["text-red-700", "dark:text-rose-200"]
71
- } } }), o = e(["size-5", "shrink-0"], { variants: { type: {
71
+ } } }), n = e(["size-5", "shrink-0"], { variants: { type: {
72
72
  success: ["text-green-600", "dark:text-green-400"],
73
73
  info: [
74
74
  "text-blue-600",
@@ -77,11 +77,18 @@ var r = e([
77
77
  ],
78
78
  warning: ["text-yellow-600", "dark:text-yellow-400"],
79
79
  danger: ["text-red-600", "dark:text-rose-400"]
80
- } } }), n = e([
80
+ } } }), o = e([
81
81
  "size-4",
82
82
  "absolute",
83
83
  "right-3",
84
84
  "top-3",
85
+ "flex",
86
+ "items-center",
87
+ "justify-center",
88
+ "rounded",
89
+ "outline-none",
90
+ "focus-visible:ring-1",
91
+ "focus-visible:ring-aurora-500",
85
92
  "cursor-pointer",
86
93
  "tap-target",
87
94
  "touch-hit-area",
@@ -97,8 +104,8 @@ var r = e([
97
104
  } } });
98
105
  export {
99
106
  r as alertVariants,
100
- n as closeButtonVariants,
107
+ o as closeButtonVariants,
101
108
  d as descriptionVariants,
102
- o as iconVariants,
109
+ n as iconVariants,
103
110
  a as titleVariants
104
111
  };
@@ -1,5 +1,5 @@
1
1
  import { t as r } from "../../dist-B9GE4SXf.js";
2
- var e = r([
2
+ var i = r([
3
3
  "flex",
4
4
  "w-full",
5
5
  "rounded-md",
@@ -11,7 +11,8 @@ var e = r([
11
11
  "placeholder:text-muted-foreground",
12
12
  "focus-visible:outline-none",
13
13
  "focus-visible:ring-1",
14
- "focus-visible:ring-ring",
14
+ "focus-visible:ring-aurora-500",
15
+ "kubefirst:focus-visible:ring-kubefirst-primary",
15
16
  "disabled:cursor-not-allowed",
16
17
  "disabled:opacity-50",
17
18
  "shadow-2xs",
@@ -19,12 +20,12 @@ var e = r([
19
20
  "px-2",
20
21
  "focus:ring-aurora-500",
21
22
  "kubefirst:focus:ring-kubefirst-primary"
22
- ]), i = r([
23
+ ]), o = r([
23
24
  "pl-1",
24
25
  "text-base",
25
26
  "cursor-pointer"
26
27
  ]);
27
28
  export {
28
- e as autocompleteVariants,
29
- i as labelVariants
29
+ i as autocompleteVariants,
30
+ o as labelVariants
30
31
  };
@@ -1,29 +1,29 @@
1
1
  import { t as x } from "../../x-C8O1IsaM.js";
2
2
  import { LoaderIcon as D } from "../../assets/icons/components/Loader.js";
3
- import { t as c } from "../../utils-DnIJruo0.js";
3
+ import { t as u } from "../../utils-DnIJruo0.js";
4
4
  import { badgeVariants as V, buttonDismissVariants as j } from "./Badge.variants.js";
5
- import { t as p } from "../../dist-CK8FUUUn.js";
5
+ import { t as f } from "../../dist-CK8FUUUn.js";
6
6
  import { useEffect as E, useRef as L, useState as P } from "react";
7
- import { jsx as s, jsxs as f } from "react/jsx-runtime";
8
- var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, leftIcon: n, loading: o = !1, rightIcon: l, size: m, variant: d, onClick: e, onDismiss: v }) => {
9
- const u = L(null), [r, N] = P("visible"), y = (t) => {
10
- t.stopPropagation(), v?.(), N("hidden");
7
+ import { jsx as s, jsxs as p } from "react/jsx-runtime";
8
+ var q = ({ className: b, dismissible: v = !1, isSelectable: g = !0, label: i, leftIcon: n, loading: o = !1, rightIcon: l, size: m, variant: c, onClick: e, onDismiss: h }) => {
9
+ const d = L(null), [r, N] = P("visible"), y = (a) => {
10
+ a.stopPropagation(), h?.(), N("hidden");
11
11
  };
12
12
  return E(() => {
13
13
  if (r !== "hidden") return;
14
- const t = new AbortController(), a = u.current;
15
- return a?.addEventListener("animationend", (w) => {
16
- w.target === a && (a.style.setProperty("display", "none"), a.remove());
17
- }, { signal: t.signal }), () => t.abort();
18
- }, [r]), /* @__PURE__ */ f("span", {
19
- ref: u,
20
- className: c(V({
21
- variant: d,
14
+ const a = new AbortController(), t = d.current;
15
+ return t?.addEventListener("animationend", (w) => {
16
+ w.target === t && (t.style.setProperty("display", "none"), t.remove());
17
+ }, { signal: a.signal }), () => a.abort();
18
+ }, [r]), /* @__PURE__ */ p("span", {
19
+ ref: d,
20
+ className: u(V({
21
+ variant: c,
22
22
  size: m,
23
23
  className: b
24
24
  }), {
25
25
  "select-none": !g,
26
- "cursor-pointer": e
26
+ "cursor-pointer tap-target outline-none focus-visible:ring-1 focus-visible:ring-aurora-500 active:scale-95 motion-reduce:active:scale-100": e
27
27
  }),
28
28
  role: e ? "button" : void 0,
29
29
  onClick: e,
@@ -37,16 +37,16 @@ var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, le
37
37
  size: 12,
38
38
  className: "animate-spin animate-duration-time-2"
39
39
  }),
40
- n ? /* @__PURE__ */ s(p, {
40
+ n ? /* @__PURE__ */ s(f, {
41
41
  className: "h-3 w-3",
42
42
  children: n
43
43
  }) : null,
44
44
  i,
45
- h ? /* @__PURE__ */ f("button", {
45
+ v ? /* @__PURE__ */ p("button", {
46
46
  type: "button",
47
- className: c(j({
47
+ className: u(j({
48
48
  size: m,
49
- variant: d
49
+ variant: c
50
50
  })),
51
51
  onClick: y,
52
52
  "aria-label": "Dismiss",
@@ -54,7 +54,7 @@ var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, le
54
54
  className: "sr-only",
55
55
  children: "Dismiss"
56
56
  })]
57
- }) : l ? /* @__PURE__ */ s(p, {
57
+ }) : l ? /* @__PURE__ */ s(f, {
58
58
  className: "h-3 w-3",
59
59
  children: l
60
60
  }) : null
@@ -69,7 +69,12 @@ var a = e([
69
69
  "inline-flex",
70
70
  "items-center",
71
71
  "justify-center",
72
+ "relative",
73
+ "tap-target",
74
+ "touch-hit-area",
72
75
  "focus:outline-none",
76
+ "focus-visible:ring-1",
77
+ "focus-visible:ring-aurora-500",
73
78
  "text-inherit",
74
79
  "cursor-pointer",
75
80
  "text-gray-700"
@@ -1,4 +1,4 @@
1
- import { t as m } from "../../Breadcrumb-DzavonoC.js";
1
+ import { t as m } from "../../Breadcrumb-BiiOnn0p.js";
2
2
  export {
3
3
  m as Breadcrumb
4
4
  };
@@ -12,7 +12,7 @@ var r = t([
12
12
  "dark:hover:text-gray-300",
13
13
  "focus-visible:outline-2",
14
14
  "focus-visible:outline-offset-2",
15
- "focus-visible:outline-gray-500"
15
+ "focus-visible:outline-aurora-500"
16
16
  ]);
17
17
  export {
18
18
  r as backButtonVariants
@@ -1,4 +1,4 @@
1
- import { t as p } from "../../../../CollapsedSteps-CkMuzOHx.js";
1
+ import { t as p } from "../../../../CollapsedSteps-Dy2I7XDd.js";
2
2
  export {
3
3
  p as CollapsedSteps
4
4
  };
@@ -17,7 +17,7 @@ var s = e([
17
17
  "group-[&:has(:focus-visible)]:no-underline",
18
18
  "group-[&:has(:focus-visible)]:outline-2",
19
19
  "group-[&:has(:focus-visible)]:outline-offset-6",
20
- "group-[&:has(:focus-visible)]:outline-gray-500",
20
+ "group-[&:has(:focus-visible)]:outline-aurora-500",
21
21
  "group-[&:has(:focus-visible)]:text-gray-500",
22
22
  "group-[&:has(:focus-visible)]:rounded-xs",
23
23
  "group-hover:rounded-xs",
@@ -31,7 +31,7 @@ var s = e([
31
31
  "group-[&:has(:focus-visible)]:no-underline",
32
32
  "group-[&:has(:focus-visible)]:outline-2",
33
33
  "group-[&:has(:focus-visible)]:outline-offset-6",
34
- "group-[&:has(:focus-visible)]:outline-gray-500",
34
+ "group-[&:has(:focus-visible)]:outline-aurora-500",
35
35
  "group-[&:has(:focus-visible)]:text-gray-500",
36
36
  "group-[&:has(:focus-visible)]:rounded-xs",
37
37
  "group-hover:rounded-xs",
@@ -1,6 +1,6 @@
1
1
  import { BackButton as t } from "./BackButton/BackButton.js";
2
2
  import { Item as r } from "./Item/Item.js";
3
- import { t as e } from "../../../CollapsedSteps-CkMuzOHx.js";
3
+ import { t as e } from "../../../CollapsedSteps-Dy2I7XDd.js";
4
4
  export {
5
5
  t as BackButton,
6
6
  e as CollapsedSteps,
@@ -10,7 +10,8 @@ var a = r([
10
10
  "flex",
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
  "font-semibold",
15
16
  "gap-2",
16
17
  "inline-flex",