@equal-experts/kuat-react 0.10.0 → 0.12.0

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.
package/dist/index.js CHANGED
@@ -1,117 +1,210 @@
1
1
  import { c as s } from "./utils-DLUjLwnh.js";
2
- import { S as M } from "./button-group-enIzvVeN.js";
3
- import { d as Ne, B as _e, a as He, b as we, c as Se } from "./button-group-enIzvVeN.js";
4
- import { jsxs as n, jsx as e, Fragment as S } from "react/jsx-runtime";
5
- import * as t from "react";
6
- import { C as Ve, a as ke, b as Ee, d as Re, c as Ae, u as ve } from "./carousel-vRCoMeVE.js";
7
- import { K as ye, a as Te, b as De, d as xe, c as Me, u as Be } from "./kuat-carousel-DsHwXGpb.js";
8
- import { b as Ze, a as Ke, K as Fe } from "./kuat-radial-progress-YcpYzHjk.js";
9
- import { A as Ge, c as Ue, a as $e, b as je } from "./accordion-CUlVo4uo.js";
10
- import { A as Ye, i as qe, j as ze, d as Je, h as Qe, f as We, e as ea, b as aa, a as ra, g as la, c as oa } from "./alert-dialog-yHaNWLGX.js";
11
- import { c as na, a as sa, B as da, b as ca } from "./badge-BZgdEQSD.js";
12
- import { ChevronRight as B, MoreHorizontal as j, ChevronDown as X } from "lucide-react";
13
- import * as c from "@radix-ui/react-dropdown-menu";
14
- import { d as ua, c as ma, a as ha, B as pa, b as fa } from "./button-C0a1gFoV.js";
15
- import { a as ga, T as ba } from "./textarea-B0irOcAM.js";
16
- import { a as _a, I as Ha } from "./input-DmkHok33.js";
17
- import { j as Sa, F as La, a as Va, b as ka, c as Ea, d as Ra, e as Aa, f as va, g as Ia, h as ya, i as Ta } from "./field-CpIBifwy.js";
18
- import { K as xa, j as Ma, k as Ba, S as Oa, a as Za, b as Ka, c as Fa, d as Pa, e as Ga, f as Ua, g as $a, h as ja, i as Xa } from "./select-CkwcI4vN.js";
19
- import { b as qa, c as za, C as Ja, a as Qa } from "./checkbox-field-7OmstdY0.js";
20
- import { c as er, d as ar, b as rr, R as lr, a as or } from "./radio-field-BD77QCpO.js";
21
- import { b as nr, c as sr, S as dr, a as cr } from "./switch-field-xn_CPJH7.js";
22
- import { a as ur, b as mr, T as hr, c as pr, d as fr } from "./constants-Cfitvm6L.js";
23
- import { a as gr, S as br, b as Nr, t as _r } from "./sonner-content-CXBD6jNn.js";
24
- const me = t.forwardRef(function({
25
- className: r,
26
- asChild: l = !1,
2
+ import { S as Q } from "./button-group-enIzvVeN.js";
3
+ import { d as Fe, B as Ge, a as Ue, b as je, c as qe } from "./button-group-enIzvVeN.js";
4
+ import { jsxs as t, jsx as e, Fragment as I } from "react/jsx-runtime";
5
+ import * as n from "react";
6
+ import { ChevronRight as W, Menu as de, X as ce, User as ee, ChevronDown as U, MoreHorizontal as ie } from "lucide-react";
7
+ import { B as J } from "./button-C0a1gFoV.js";
8
+ import { d as ze, c as Ye, a as Je, b as Qe } from "./button-C0a1gFoV.js";
9
+ import * as i from "@radix-ui/react-dropdown-menu";
10
+ import { C as ea, a as aa, b as ra, d as la, c as oa, u as ta } from "./carousel-B_FcJvc1.js";
11
+ import { K as sa, a as da, b as ca, d as ia, c as ua, u as ha } from "./kuat-carousel-DUR-L0dP.js";
12
+ import { b as pa, a as ba, K as fa } from "./kuat-radial-progress-YcpYzHjk.js";
13
+ import { A as Na, c as ga, a as Ca, b as ka } from "./accordion-CUlVo4uo.js";
14
+ import { A as Ha, i as Sa, j as va, d as La, h as ya, f as Ea, e as Va, b as Aa, a as Ra, g as Da, c as Ta } from "./alert-dialog-yHaNWLGX.js";
15
+ import { c as Ia, a as Ma, B as Oa, b as Ba } from "./badge-BZgdEQSD.js";
16
+ import { a as Za, T as Pa } from "./textarea-B0irOcAM.js";
17
+ import { a as Fa, I as Ga } from "./input-DmkHok33.js";
18
+ import { j as ja, F as qa, a as Xa, b as za, c as Ya, d as Ja, e as Qa, f as Wa, g as er, h as ar, i as rr } from "./field-CpIBifwy.js";
19
+ import { K as or, j as tr, k as nr, S as sr, a as dr, b as cr, c as ir, d as ur, e as hr, f as mr, g as pr, h as br, i as fr } from "./select-CkwcI4vN.js";
20
+ import { b as Nr, c as gr, C as Cr, a as kr } from "./checkbox-field-7OmstdY0.js";
21
+ import { c as Hr, d as Sr, b as vr, R as Lr, a as yr } from "./radio-field-BD77QCpO.js";
22
+ import { b as Vr, c as Ar, S as Rr, a as Dr } from "./switch-field-xn_CPJH7.js";
23
+ import { a as xr, b as Ir, T as Mr, c as Or, d as Br } from "./constants-Cfitvm6L.js";
24
+ import { a as Zr, S as Pr, b as $r, t as Fr } from "./sonner-content-CXBD6jNn.js";
25
+ const Ie = n.forwardRef(function({
26
+ className: l,
27
+ asChild: r = !1,
27
28
  width: o = "default",
28
29
  maxWidth: d = "373px",
29
- imageSrc: u = null,
30
- imageAlt: i = "",
31
- contentText: f = null,
32
- headerAccessory: p = null,
33
- customContent: C = null,
34
- footer: N = null,
35
- badge: g,
36
- category: m,
37
- title: h,
38
- titleHeadingLevel: L = 3,
39
- children: y,
40
- style: _,
41
- ...b
42
- }, H) {
43
- const $ = `h${L}`, T = o === "fluid" ? "content-card--width-fluid" : o === "custom" ? "content-card--width-custom" : "content-card--width-default", V = o === "custom" ? {
44
- ..._ ?? {},
30
+ imageSrc: c = null,
31
+ imageAlt: h = "",
32
+ contentText: _ = null,
33
+ headerAccessory: b = null,
34
+ customContent: y = null,
35
+ footer: D = null,
36
+ badge: E,
37
+ category: f,
38
+ title: m,
39
+ titleHeadingLevel: H = 3,
40
+ children: R,
41
+ style: N,
42
+ ...g
43
+ }, k) {
44
+ const V = `h${H}`, S = o === "fluid" ? "content-card--width-fluid" : o === "custom" ? "content-card--width-custom" : "content-card--width-default", w = o === "custom" ? {
45
+ ...N ?? {},
45
46
  "--content-card-max-width": typeof d == "number" ? `${d}px` : d ?? "373px"
46
- } : _, D = /* @__PURE__ */ n(S, { children: [
47
- u !== null ? /* @__PURE__ */ e("div", { className: "content-card__media", children: /* @__PURE__ */ e("img", { className: "content-card__media-img", alt: i, src: u }) }) : null,
48
- /* @__PURE__ */ n("div", { className: "content-card__body", children: [
49
- /* @__PURE__ */ n("div", { className: "content-card__heading-row", children: [
50
- /* @__PURE__ */ n("div", { className: "content-card__heading-left", children: [
51
- /* @__PURE__ */ n("div", { className: "content-card__heading-meta", children: [
52
- /* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: g }),
53
- /* @__PURE__ */ e("p", { className: "content-card__category", children: m })
47
+ } : N, C = /* @__PURE__ */ t(I, { children: [
48
+ c !== null ? /* @__PURE__ */ e("div", { className: "content-card__media", children: /* @__PURE__ */ e("img", { className: "content-card__media-img", alt: h, src: c }) }) : null,
49
+ /* @__PURE__ */ t("div", { className: "content-card__body", children: [
50
+ /* @__PURE__ */ t("div", { className: "content-card__heading-row", children: [
51
+ /* @__PURE__ */ t("div", { className: "content-card__heading-left", children: [
52
+ /* @__PURE__ */ t("div", { className: "content-card__heading-meta", children: [
53
+ /* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: E }),
54
+ /* @__PURE__ */ e("p", { className: "content-card__category", children: f })
54
55
  ] }),
55
- /* @__PURE__ */ e($, { className: "content-card__title", children: h })
56
+ /* @__PURE__ */ e(V, { className: "content-card__title", children: m })
56
57
  ] }),
57
58
  /* @__PURE__ */ e(
58
59
  "div",
59
60
  {
60
61
  "data-slot": "header-accessory",
61
62
  className: "content-card__header-accessory",
62
- children: p ?? null
63
+ children: b ?? null
63
64
  }
64
65
  )
65
66
  ] }),
66
- f != null ? /* @__PURE__ */ e("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ e("p", { className: "content-card__content-text", children: f }) }) : null,
67
- /* @__PURE__ */ e("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: C ?? null }),
68
- /* @__PURE__ */ e("div", { "data-slot": "footer", className: "content-card__footer", children: N ?? null })
67
+ _ != null ? /* @__PURE__ */ e("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ e("p", { className: "content-card__content-text", children: _ }) }) : null,
68
+ /* @__PURE__ */ e("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: y ?? null }),
69
+ /* @__PURE__ */ e("div", { "data-slot": "footer", className: "content-card__footer", children: D ?? null })
69
70
  ] })
70
71
  ] });
71
- if (l) {
72
- const x = t.Children.only(y);
73
- if (!t.isValidElement(x))
72
+ if (r) {
73
+ const T = n.Children.only(R);
74
+ if (!n.isValidElement(T))
74
75
  throw new Error("ContentCard: when `asChild` is true, provide a single React element child.");
75
- const w = x;
76
- return t.cloneElement(
77
- w,
76
+ const A = T;
77
+ return n.cloneElement(
78
+ A,
78
79
  {
79
- ...b,
80
- ref: H,
80
+ ...g,
81
+ ref: k,
81
82
  "data-slot": "content-card",
82
- className: s("content-card", T, w.props.className, r),
83
+ className: s("content-card", S, A.props.className, l),
83
84
  style: o === "custom" ? {
84
- ...w.props.style ?? {},
85
- ...V
86
- } : V ?? w.props.style
85
+ ...A.props.style ?? {},
86
+ ...w
87
+ } : w ?? A.props.style
87
88
  },
88
- D
89
+ C
89
90
  );
90
91
  }
91
92
  return /* @__PURE__ */ e(
92
93
  "div",
93
94
  {
94
- ref: H,
95
+ ref: k,
95
96
  "data-slot": "content-card",
96
- className: s("content-card", T, r),
97
- style: V,
98
- ...b,
99
- children: D
97
+ className: s("content-card", S, l),
98
+ style: w,
99
+ ...g,
100
+ children: C
100
101
  }
101
102
  );
102
- });
103
- function k({ className: a, textColor: r = "grey" }) {
104
- return /* @__PURE__ */ n(
103
+ }), M = i.Root, O = i.Trigger, j = i.Group, ue = n.forwardRef(({ className: a, inset: l, children: r, ...o }, d) => /* @__PURE__ */ t(
104
+ i.SubTrigger,
105
+ {
106
+ ref: d,
107
+ className: s(
108
+ "dropdown-menu-sub-trigger",
109
+ l && "dropdown-menu-sub-trigger--inset",
110
+ a
111
+ ),
112
+ ...o,
113
+ children: [
114
+ r,
115
+ /* @__PURE__ */ e(W, { className: "dropdown-menu-sub-trigger__icon" })
116
+ ]
117
+ }
118
+ ));
119
+ ue.displayName = i.SubTrigger.displayName;
120
+ const he = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e(
121
+ i.SubContent,
122
+ {
123
+ ref: r,
124
+ className: s("dropdown-menu-content", "dropdown-menu-sub-content", a),
125
+ ...l
126
+ }
127
+ ));
128
+ he.displayName = i.SubContent.displayName;
129
+ const B = n.forwardRef(({ className: a, sideOffset: l = 4, ...r }, o) => /* @__PURE__ */ e(i.Portal, { children: /* @__PURE__ */ e(
130
+ i.Content,
131
+ {
132
+ ref: o,
133
+ sideOffset: l,
134
+ className: s("dropdown-menu-content", a),
135
+ ...r
136
+ }
137
+ ) }));
138
+ B.displayName = i.Content.displayName;
139
+ const K = n.forwardRef(({ className: a, inset: l, ...r }, o) => /* @__PURE__ */ e(
140
+ i.Item,
141
+ {
142
+ ref: o,
143
+ className: s(
144
+ "dropdown-menu-item",
145
+ l && "dropdown-menu-item--inset",
146
+ a
147
+ ),
148
+ ...r
149
+ }
150
+ ));
151
+ K.displayName = i.Item.displayName;
152
+ const me = n.forwardRef(({ className: a, children: l, checked: r, ...o }, d) => /* @__PURE__ */ e(
153
+ i.CheckboxItem,
154
+ {
155
+ ref: d,
156
+ className: s("dropdown-menu-item", "dropdown-menu-checkbox-item", a),
157
+ checked: r,
158
+ ...o,
159
+ children: l
160
+ }
161
+ ));
162
+ me.displayName = i.CheckboxItem.displayName;
163
+ const pe = n.forwardRef(({ className: a, children: l, ...r }, o) => /* @__PURE__ */ e(
164
+ i.RadioItem,
165
+ {
166
+ ref: o,
167
+ className: s("dropdown-menu-item", "dropdown-menu-radio-item", a),
168
+ ...r,
169
+ children: l
170
+ }
171
+ ));
172
+ pe.displayName = i.RadioItem.displayName;
173
+ const be = n.forwardRef(({ className: a, inset: l, ...r }, o) => /* @__PURE__ */ e(
174
+ i.Label,
175
+ {
176
+ ref: o,
177
+ className: s(
178
+ "dropdown-menu-label",
179
+ l && "dropdown-menu-label--inset",
180
+ a
181
+ ),
182
+ ...r
183
+ }
184
+ ));
185
+ be.displayName = i.Label.displayName;
186
+ const fe = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e(
187
+ i.Separator,
188
+ {
189
+ ref: r,
190
+ className: s("dropdown-menu-separator", a),
191
+ ...l
192
+ }
193
+ ));
194
+ fe.displayName = i.Separator.displayName;
195
+ const Me = ["default", "demo"];
196
+ function P({ className: a, textColor: l = "grey" }) {
197
+ return /* @__PURE__ */ t(
105
198
  "svg",
106
199
  {
107
- className: s("ee-logo", `ee-logo--${r}`, a),
200
+ className: s("ee-logo", `ee-logo--${l}`, a),
108
201
  viewBox: "0 0 500 133",
109
202
  fill: "none",
110
203
  xmlns: "http://www.w3.org/2000/svg",
111
204
  "aria-label": "Equal Experts logo",
112
205
  children: [
113
- /* @__PURE__ */ n("g", { clipPath: "url(#ee-logo-clip)", children: [
114
- /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
206
+ /* @__PURE__ */ t("g", { clipPath: "url(#ee-logo-clip)", children: [
207
+ /* @__PURE__ */ t("g", { className: "ee-logo__text", fill: "currentColor", children: [
115
208
  /* @__PURE__ */ e("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
116
209
  /* @__PURE__ */ e("path", { d: "M227.495 29.0742C227.495 11.6766 233.601 0.136902 250.675 0.136902C267.75 0.136902 273.855 11.6766 273.855 29.0742V29.3382C273.855 41.4549 270.92 50.6084 263.454 55.2243L271.869 65.0037L260.568 70.7736L252.446 58.256C251.872 58.3312 251.293 58.3606 250.714 58.344C233.64 58.344 227.534 46.7945 227.534 29.3187L227.495 29.0742ZM241.194 29.2307C241.194 40.6921 243.669 46.55 250.685 46.55C257.701 46.55 260.254 40.6823 260.254 29.2307C260.254 17.779 257.691 11.9211 250.685 11.9211C243.679 11.9211 241.194 17.8572 241.194 29.2307Z" }),
117
210
  /* @__PURE__ */ e("path", { d: "M295.871 1.36911V35.2059C295.871 42.7947 297.436 46.5891 304.119 46.5891C310.802 46.5891 312.368 42.7947 312.368 35.2059V1.36911H325.401V35.8318C325.401 50.5009 320.284 58.3244 304.119 58.3244C287.955 58.3244 282.847 50.5009 282.847 35.8318V1.36911H295.871Z" }),
@@ -122,7 +215,7 @@ function k({ className: a, textColor: r = "grey" }) {
122
215
  /* @__PURE__ */ e("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
123
216
  /* @__PURE__ */ e("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
124
217
  /* @__PURE__ */ e("path", { d: "M124.198 2.44485H85.6262V21.0844H124.198V112.092H85.6262V130.741H124.198H142.847V112.092V21.0844V2.44485H124.198Z", fill: "#1795D4" }),
125
- /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
218
+ /* @__PURE__ */ t("g", { className: "ee-logo__text", fill: "currentColor", children: [
126
219
  /* @__PURE__ */ e("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
127
220
  /* @__PURE__ */ e("path", { d: "M240.773 75.3015C243.17 80.1912 246.712 87.0368 249.677 92.2101H249.931C252.984 87.2519 256.614 80.1716 258.924 75.3015H273.601C269.687 83.2228 263.63 93.6868 258.014 102.928L274.765 130.868H259.168L250.088 113.969H249.853L240.616 130.868H225.264L241.683 102.821C236.487 94.0193 229.941 82.1275 226.174 75.2819L240.773 75.3015Z" }),
128
221
  /* @__PURE__ */ e("path", { d: "M296.204 75.3015C301.096 75.3015 305.939 75.634 309.648 76.8759C315.842 79.0959 319.873 85.1982 319.873 93.7748C319.873 106.39 311.879 112.649 298.425 112.649H294.804V130.849H281.8V75.3015H296.204ZM294.804 101.021H297.358C302.965 101.021 306.164 100.366 306.164 93.7748C306.164 91.3006 305.254 89.1589 303.767 88.1614C302.28 87.1639 300.313 86.9292 297.505 86.9292H294.785L294.804 101.021Z" }),
@@ -137,136 +230,320 @@ function k({ className: a, textColor: r = "grey" }) {
137
230
  }
138
231
  );
139
232
  }
140
- const Y = t.forwardRef(
233
+ const _e = (a, l) => /* @__PURE__ */ e("a", { href: a.url, className: l, children: a.label });
234
+ function Ne(a) {
235
+ return Array.isArray(a);
236
+ }
237
+ function ge(a) {
238
+ return Array.isArray(a);
239
+ }
240
+ function ae({ items: a }) {
241
+ return /* @__PURE__ */ e(B, { align: "start", className: "kuat-header__dropdown-content", children: /* @__PURE__ */ e(j, { children: a.map((l) => /* @__PURE__ */ e(K, { asChild: !0, children: _e(l, "kuat-header__dropdown-link") }, `${l.label}-${l.url}`)) }) });
242
+ }
243
+ function Ce({ items: a, variant: l }) {
244
+ return /* @__PURE__ */ e("div", { className: "kuat-header__nav-items", children: a.map((r) => {
245
+ var o;
246
+ return (o = r.items) != null && o.length ? /* @__PURE__ */ t(M, { children: [
247
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t(
248
+ "button",
249
+ {
250
+ type: "button",
251
+ className: s(
252
+ "kuat-header__nav-trigger",
253
+ l === "bold" && "kuat-header__nav-trigger--bold"
254
+ ),
255
+ "aria-haspopup": "menu",
256
+ children: [
257
+ r.label,
258
+ /* @__PURE__ */ e(U, { className: "h-4 w-4", "aria-hidden": !0 })
259
+ ]
260
+ }
261
+ ) }),
262
+ /* @__PURE__ */ e(ae, { items: r.items })
263
+ ] }, `${r.label}-${r.url}`) : /* @__PURE__ */ e(
264
+ "a",
265
+ {
266
+ href: r.url,
267
+ className: s(
268
+ "kuat-header__nav-link",
269
+ l === "bold" && "kuat-header__nav-link--bold"
270
+ ),
271
+ children: r.label
272
+ },
273
+ `${r.label}-${r.url}`
274
+ );
275
+ }) });
276
+ }
277
+ function ke({ items: a, variant: l }) {
278
+ return /* @__PURE__ */ e("div", { className: "kuat-header__actions-items", children: a.map((r) => {
279
+ var d;
280
+ const o = r.icon ?? /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": !0 });
281
+ return (d = r.items) != null && d.length ? /* @__PURE__ */ t(M, { children: [
282
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t(
283
+ "button",
284
+ {
285
+ type: "button",
286
+ className: s(
287
+ "kuat-header__action-trigger",
288
+ l === "bold" && "kuat-header__action-trigger--bold"
289
+ ),
290
+ "aria-haspopup": "menu",
291
+ children: [
292
+ o,
293
+ /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: r.label }),
294
+ /* @__PURE__ */ e(U, { className: "h-4 w-4", "aria-hidden": !0 })
295
+ ]
296
+ }
297
+ ) }),
298
+ /* @__PURE__ */ e(ae, { items: r.items })
299
+ ] }, `${r.label}-${r.url}`) : /* @__PURE__ */ t(
300
+ "a",
301
+ {
302
+ href: r.url,
303
+ className: s(
304
+ "kuat-header__action-link",
305
+ l === "bold" && "kuat-header__action-link--bold"
306
+ ),
307
+ children: [
308
+ o,
309
+ /* @__PURE__ */ e("span", { children: r.label })
310
+ ]
311
+ },
312
+ `${r.label}-${r.url}`
313
+ );
314
+ }) });
315
+ }
316
+ const we = n.forwardRef(
141
317
  ({
142
318
  className: a,
143
- variant: r = "default",
144
- logo: l,
319
+ variant: l = "default",
320
+ logo: r,
145
321
  title: o,
146
322
  navigation: d,
147
- actions: u,
148
- mobileMenuTrigger: i,
149
- mobileMenu: f,
150
- hideLogo: p,
151
- children: C,
152
- ...N
153
- }, g) => {
154
- const m = l !== void 0 ? l : !p && /* @__PURE__ */ e(
155
- k,
323
+ actions: c,
324
+ mobileMenuTrigger: h,
325
+ mobileMenu: _,
326
+ hideLogo: b,
327
+ lockupVariant: y = "default",
328
+ children: D,
329
+ ...E
330
+ }, f) => {
331
+ const m = Ne(d), H = ge(c), R = m || H, [N, g] = n.useState(!1), k = n.useRef(null), V = n.useRef(null);
332
+ n.useEffect(() => {
333
+ var X;
334
+ if (!N)
335
+ return;
336
+ const u = document.body, v = u.style.overflow;
337
+ u.style.overflow = "hidden";
338
+ const p = document.activeElement, Z = (X = V.current) == null ? void 0 : X.querySelector(
339
+ "button, a, [tabindex]:not([tabindex='-1'])"
340
+ );
341
+ Z == null || Z.focus();
342
+ const q = (L) => {
343
+ if (L.key === "Escape") {
344
+ L.preventDefault(), g(!1);
345
+ return;
346
+ }
347
+ if (L.key !== "Tab" || !V.current)
348
+ return;
349
+ const x = V.current.querySelectorAll(
350
+ "button, a, [tabindex]:not([tabindex='-1'])"
351
+ );
352
+ if (!x.length)
353
+ return;
354
+ const z = x[0], Y = x[x.length - 1];
355
+ L.shiftKey && document.activeElement === z ? (L.preventDefault(), Y.focus()) : !L.shiftKey && document.activeElement === Y && (L.preventDefault(), z.focus());
356
+ };
357
+ return document.addEventListener("keydown", q), () => {
358
+ u.style.overflow = v, document.removeEventListener("keydown", q), k.current ? k.current.focus() : p == null || p.focus();
359
+ };
360
+ }, [N]);
361
+ const S = r !== void 0 ? r : !b && /* @__PURE__ */ e(
362
+ P,
156
363
  {
157
364
  className: "ee-logo--desktop shrink-0",
158
- textColor: r === "bold" ? "white" : "grey"
365
+ textColor: l === "bold" ? "white" : "grey"
159
366
  }
160
- ), h = l !== void 0 ? l : !p && /* @__PURE__ */ e(
161
- k,
367
+ ), w = r !== void 0 ? r : !b && /* @__PURE__ */ e(
368
+ P,
162
369
  {
163
370
  className: "ee-logo--mobile shrink-0",
164
- textColor: r === "bold" ? "white" : "grey"
371
+ textColor: l === "bold" ? "white" : "grey"
165
372
  }
166
- );
167
- return /* @__PURE__ */ n(
373
+ ), C = r !== void 0 ? "default" : y, T = S && C === "default", A = w && C === "default", ne = S && C === "demo", se = w && C === "demo";
374
+ return /* @__PURE__ */ t(
168
375
  "header",
169
376
  {
170
- ref: g,
377
+ ref: f,
171
378
  className: s(
172
379
  "kuat-header",
173
- `kuat-header--${r}`,
380
+ `kuat-header--${l}`,
174
381
  a
175
382
  ),
176
- ...N,
383
+ ...E,
177
384
  children: [
178
- /* @__PURE__ */ n("div", { className: "kuat-header__desktop", children: [
179
- /* @__PURE__ */ n("div", { className: "kuat-header__desktop-left", children: [
180
- m && /* @__PURE__ */ n(S, { children: [
181
- /* @__PURE__ */ e("div", { className: "shrink-0", children: m }),
385
+ /* @__PURE__ */ t("div", { className: "kuat-header__desktop", children: [
386
+ /* @__PURE__ */ t("div", { className: "kuat-header__desktop-left", children: [
387
+ T && /* @__PURE__ */ t(I, { children: [
388
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: S }),
182
389
  /* @__PURE__ */ e(
183
- M,
390
+ Q,
184
391
  {
185
392
  orientation: "vertical",
186
393
  className: "kuat-header__separator"
187
394
  }
188
395
  )
189
396
  ] }),
190
- o && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: o })
397
+ ne && /* @__PURE__ */ t("div", { className: "kuat-header__desktop-demo-lockup", children: [
398
+ o && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-demo-title", children: o }),
399
+ /* @__PURE__ */ t("div", { className: "kuat-header__demo-byline", children: [
400
+ /* @__PURE__ */ e("span", { className: "kuat-header__demo-label", children: "A demo by" }),
401
+ /* @__PURE__ */ e("div", { className: "kuat-header__desktop-demo-logo", children: S })
402
+ ] })
403
+ ] }),
404
+ o && C === "default" && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: o })
191
405
  ] }),
192
- /* @__PURE__ */ n("div", { className: "kuat-header__desktop-right", children: [
193
- d && /* @__PURE__ */ e("nav", { className: "flex items-center", children: d }),
194
- u && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: u })
406
+ /* @__PURE__ */ t("div", { className: "kuat-header__desktop-right", children: [
407
+ m ? d.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e(Ce, { items: d, variant: l }) }) : d ? /* @__PURE__ */ e("nav", { className: "flex items-center", children: d }) : null,
408
+ H ? c.length > 0 && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(ke, { items: c, variant: l }) }) : c ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: c }) : null
195
409
  ] })
196
410
  ] }),
197
- /* @__PURE__ */ n("div", { className: "kuat-header__mobile", children: [
198
- /* @__PURE__ */ n("div", { className: "kuat-header__mobile-left", children: [
199
- h && /* @__PURE__ */ e("div", { className: "shrink-0", children: h }),
200
- o && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: o })
411
+ /* @__PURE__ */ t("div", { className: "kuat-header__mobile", children: [
412
+ /* @__PURE__ */ t("div", { className: "kuat-header__mobile-left", children: [
413
+ A && /* @__PURE__ */ e("div", { className: "shrink-0", children: w }),
414
+ se && /* @__PURE__ */ t("div", { className: "kuat-header__mobile-demo-lockup", children: [
415
+ o && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-demo-title", children: o }),
416
+ /* @__PURE__ */ t("div", { className: "kuat-header__demo-byline", children: [
417
+ /* @__PURE__ */ e("span", { className: "kuat-header__demo-label", children: "A demo by" }),
418
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-demo-logo", children: w })
419
+ ] })
420
+ ] }),
421
+ o && C === "default" && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: o })
201
422
  ] }),
202
- i && /* @__PURE__ */ e("div", { className: "shrink-0", children: i })
423
+ h ? /* @__PURE__ */ e("div", { className: "shrink-0", children: h }) : R ? /* @__PURE__ */ e(
424
+ J,
425
+ {
426
+ ref: k,
427
+ variant: "ghost",
428
+ size: "icon",
429
+ className: s(
430
+ "kuat-header__mobile-trigger",
431
+ l === "bold" && "kuat-header__mobile-trigger--bold"
432
+ ),
433
+ "aria-label": "Open menu",
434
+ "aria-expanded": N,
435
+ "aria-controls": "kuat-header-mobile-menu",
436
+ onClick: () => g(!0),
437
+ children: /* @__PURE__ */ e(de, { className: "h-6 w-6", "aria-hidden": !0 })
438
+ }
439
+ ) : null
203
440
  ] }),
204
- f,
205
- C
441
+ R ? N && /* @__PURE__ */ t(
442
+ "div",
443
+ {
444
+ id: "kuat-header-mobile-menu",
445
+ ref: V,
446
+ className: "kuat-header__mobile-sheet",
447
+ role: "dialog",
448
+ "aria-modal": "true",
449
+ "aria-label": "Navigation menu",
450
+ children: [
451
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-header", children: /* @__PURE__ */ e(
452
+ J,
453
+ {
454
+ variant: "ghost",
455
+ size: "icon",
456
+ className: "kuat-header__mobile-close",
457
+ "aria-label": "Close menu",
458
+ onClick: () => g(!1),
459
+ children: /* @__PURE__ */ e(ce, { className: "h-6 w-6", "aria-hidden": !0 })
460
+ }
461
+ ) }),
462
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-nav", children: m && d.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: d.map((u) => {
463
+ var v;
464
+ return /* @__PURE__ */ t("li", { children: [
465
+ /* @__PURE__ */ e("a", { href: u.url, className: "kuat-header__mobile-link", children: u.label }),
466
+ (v = u.items) != null && v.length ? /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-sub-list", children: u.items.map((p) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: p.url, className: "kuat-header__mobile-sub-link", children: p.label }) }, `${p.label}-${p.url}`)) }) : null
467
+ ] }, `${u.label}-${u.url}`);
468
+ }) }) }) }),
469
+ H && c.length > 0 ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-actions", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: c.map((u) => {
470
+ var v;
471
+ return /* @__PURE__ */ t("li", { children: [
472
+ /* @__PURE__ */ t("a", { href: u.url, className: "kuat-header__mobile-link", children: [
473
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-action-icon", children: u.icon ?? /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": !0 }) }),
474
+ u.label
475
+ ] }),
476
+ (v = u.items) != null && v.length ? /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-sub-list", children: u.items.map((p) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: p.url, className: "kuat-header__mobile-sub-link", children: p.label }) }, `${p.label}-${p.url}`)) }) : null
477
+ ] }, `${u.label}-${u.url}`);
478
+ }) }) }) : null
479
+ ]
480
+ }
481
+ ) : _,
482
+ D
206
483
  ]
207
484
  }
208
485
  );
209
486
  }
210
487
  );
211
- Y.displayName = "KuatHeader";
212
- function he(a) {
213
- const r = (a == null ? void 0 : a.variant) ?? "default";
214
- return s("kuat-header", `kuat-header--${r}`);
488
+ we.displayName = "KuatHeader";
489
+ function Oe(a) {
490
+ const l = (a == null ? void 0 : a.variant) ?? "default";
491
+ return s("kuat-header", `kuat-header--${l}`);
215
492
  }
216
- const pe = ["service", "demo"], fe = ["light", "dark"], q = t.forwardRef(
493
+ const Be = ["service", "demo"], Ke = ["light", "dark"], He = n.forwardRef(
217
494
  ({
218
495
  className: a,
219
- title: r,
220
- use: l = "service",
496
+ title: l,
497
+ use: r = "service",
221
498
  mode: o = "light",
222
499
  forceDark: d = !1,
223
- ...u
224
- }, i) => {
225
- const f = d ? "dark" : o, p = /* @__PURE__ */ e(
226
- k,
500
+ ...c
501
+ }, h) => {
502
+ const _ = d ? "dark" : o, b = /* @__PURE__ */ e(
503
+ P,
227
504
  {
228
505
  className: s(
229
506
  "kuat-logo-lockup__logo",
230
- l === "demo" && "kuat-logo-lockup__logo--demo"
507
+ r === "demo" && "kuat-logo-lockup__logo--demo"
231
508
  ),
232
- textColor: f === "dark" ? "white" : "grey"
509
+ textColor: _ === "dark" ? "white" : "grey"
233
510
  }
234
511
  );
235
512
  return /* @__PURE__ */ e(
236
513
  "div",
237
514
  {
238
- ref: i,
515
+ ref: h,
239
516
  className: s(
240
517
  "kuat-logo-lockup",
241
- `kuat-logo-lockup--${f}`,
242
- `kuat-logo-lockup--${l}`,
518
+ `kuat-logo-lockup--${_}`,
519
+ `kuat-logo-lockup--${r}`,
243
520
  a
244
521
  ),
245
- ...u,
246
- children: l === "service" ? /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__service-inner", children: [
247
- /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: p }),
522
+ ...c,
523
+ children: r === "service" ? /* @__PURE__ */ t("div", { className: "kuat-logo-lockup__service-inner", children: [
524
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: b }),
248
525
  /* @__PURE__ */ e(
249
- M,
526
+ Q,
250
527
  {
251
528
  orientation: "vertical",
252
529
  className: "kuat-logo-lockup__separator"
253
530
  }
254
531
  ),
255
- /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__service-name", children: r })
256
- ] }) : /* @__PURE__ */ n(S, { children: [
257
- /* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: r }),
258
- /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__demo-attribution", children: [
532
+ /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__service-name", children: l })
533
+ ] }) : /* @__PURE__ */ t(I, { children: [
534
+ /* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: l }),
535
+ /* @__PURE__ */ t("div", { className: "kuat-logo-lockup__demo-attribution", children: [
259
536
  /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
260
- /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: p })
537
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: b })
261
538
  ] })
262
539
  ] })
263
540
  }
264
541
  );
265
542
  }
266
543
  );
267
- q.displayName = "KuatLogoLockup";
268
- function Ce({ className: a }) {
269
- return /* @__PURE__ */ n(
544
+ He.displayName = "KuatLogoLockup";
545
+ function Ze({ className: a }) {
546
+ return /* @__PURE__ */ t(
270
547
  "svg",
271
548
  {
272
549
  className: s("ee-logo-icon", a),
@@ -307,35 +584,35 @@ function Ce({ className: a }) {
307
584
  }
308
585
  );
309
586
  }
310
- const O = t.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l }, o) => /* @__PURE__ */ e(
587
+ const re = n.forwardRef(({ className: a, "aria-label": l = "Breadcrumb", ...r }, o) => /* @__PURE__ */ e(
311
588
  "nav",
312
589
  {
313
590
  ref: o,
314
- "aria-label": r,
591
+ "aria-label": l,
315
592
  className: s("breadcrumb", a),
316
- ...l
593
+ ...r
317
594
  }
318
595
  ));
319
- O.displayName = "BreadcrumbRoot";
320
- const Z = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("ol", { ref: l, className: s("breadcrumb-list", a), ...r }));
321
- Z.displayName = "BreadcrumbList";
322
- const E = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("li", { ref: l, className: s("breadcrumb-item", a), ...r }));
323
- E.displayName = "BreadcrumbItem";
324
- const K = t.forwardRef(({ className: a, render: r, asChild: l = !1, ...o }, d) => {
325
- var u;
326
- if (r) {
327
- const i = r.props;
328
- return t.cloneElement(r, {
596
+ re.displayName = "BreadcrumbRoot";
597
+ const le = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e("ol", { ref: r, className: s("breadcrumb-list", a), ...l }));
598
+ le.displayName = "BreadcrumbList";
599
+ const $ = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e("li", { ref: r, className: s("breadcrumb-item", a), ...l }));
600
+ $.displayName = "BreadcrumbItem";
601
+ const oe = n.forwardRef(({ className: a, render: l, asChild: r = !1, ...o }, d) => {
602
+ var c;
603
+ if (l) {
604
+ const h = l.props;
605
+ return n.cloneElement(l, {
329
606
  ...o,
330
607
  ref: d,
331
- className: s("breadcrumb-link", i == null ? void 0 : i.className, a)
608
+ className: s("breadcrumb-link", h == null ? void 0 : h.className, a)
332
609
  });
333
610
  }
334
- if (l && t.Children.only(o.children)) {
335
- const i = t.Children.only(o.children);
336
- return t.cloneElement(i, {
611
+ if (r && n.Children.only(o.children)) {
612
+ const h = n.Children.only(o.children);
613
+ return n.cloneElement(h, {
337
614
  ref: d,
338
- className: s("breadcrumb-link", (u = i.props) == null ? void 0 : u.className, a),
615
+ className: s("breadcrumb-link", (c = h.props) == null ? void 0 : c.className, a),
339
616
  ...o
340
617
  });
341
618
  }
@@ -348,149 +625,57 @@ const K = t.forwardRef(({ className: a, render: r, asChild: l = !1, ...o }, d) =
348
625
  }
349
626
  );
350
627
  });
351
- K.displayName = "BreadcrumbLink";
352
- const R = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
628
+ oe.displayName = "BreadcrumbLink";
629
+ const F = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e(
353
630
  "span",
354
631
  {
355
- ref: l,
632
+ ref: r,
356
633
  role: "link",
357
634
  "aria-disabled": "true",
358
635
  "aria-current": "page",
359
636
  className: s("breadcrumb-page", a),
360
- ...r
637
+ ...l
361
638
  }
362
639
  ));
363
- R.displayName = "BreadcrumbPage";
364
- const A = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
640
+ F.displayName = "BreadcrumbPage";
641
+ const G = n.forwardRef(({ className: a, children: l, ...r }, o) => /* @__PURE__ */ e(
365
642
  "span",
366
643
  {
367
644
  ref: o,
368
645
  role: "presentation",
369
646
  "aria-hidden": "true",
370
647
  className: s("breadcrumb-separator", a),
371
- ...l,
372
- children: r ?? /* @__PURE__ */ e(B, { className: "breadcrumb-separator__icon" })
648
+ ...r,
649
+ children: l ?? /* @__PURE__ */ e(W, { className: "breadcrumb-separator__icon" })
373
650
  }
374
651
  ));
375
- A.displayName = "BreadcrumbSeparator";
376
- const F = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
652
+ G.displayName = "BreadcrumbSeparator";
653
+ const te = n.forwardRef(({ className: a, ...l }, r) => /* @__PURE__ */ e(
377
654
  "span",
378
655
  {
379
- ref: l,
656
+ ref: r,
380
657
  role: "presentation",
381
658
  "aria-hidden": "true",
382
659
  className: s("breadcrumb-ellipsis", a),
383
- ...r,
384
- children: /* @__PURE__ */ e(j, { className: "breadcrumb-ellipsis__icon" })
385
- }
386
- ));
387
- F.displayName = "BreadcrumbEllipsis";
388
- const P = c.Root, G = c.Trigger, U = c.Group, z = t.forwardRef(({ className: a, inset: r, children: l, ...o }, d) => /* @__PURE__ */ n(
389
- c.SubTrigger,
390
- {
391
- ref: d,
392
- className: s(
393
- "dropdown-menu-sub-trigger",
394
- r && "dropdown-menu-sub-trigger--inset",
395
- a
396
- ),
397
- ...o,
398
- children: [
399
- l,
400
- /* @__PURE__ */ e(B, { className: "dropdown-menu-sub-trigger__icon" })
401
- ]
402
- }
403
- ));
404
- z.displayName = c.SubTrigger.displayName;
405
- const J = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
406
- c.SubContent,
407
- {
408
- ref: l,
409
- className: s("dropdown-menu-content", "dropdown-menu-sub-content", a),
410
- ...r
411
- }
412
- ));
413
- J.displayName = c.SubContent.displayName;
414
- const v = t.forwardRef(({ className: a, sideOffset: r = 4, ...l }, o) => /* @__PURE__ */ e(c.Portal, { children: /* @__PURE__ */ e(
415
- c.Content,
416
- {
417
- ref: o,
418
- sideOffset: r,
419
- className: s("dropdown-menu-content", a),
420
- ...l
421
- }
422
- ) }));
423
- v.displayName = c.Content.displayName;
424
- const I = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
425
- c.Item,
426
- {
427
- ref: o,
428
- className: s(
429
- "dropdown-menu-item",
430
- r && "dropdown-menu-item--inset",
431
- a
432
- ),
433
- ...l
434
- }
435
- ));
436
- I.displayName = c.Item.displayName;
437
- const Q = t.forwardRef(({ className: a, children: r, checked: l, ...o }, d) => /* @__PURE__ */ e(
438
- c.CheckboxItem,
439
- {
440
- ref: d,
441
- className: s("dropdown-menu-item", "dropdown-menu-checkbox-item", a),
442
- checked: l,
443
- ...o,
444
- children: r
445
- }
446
- ));
447
- Q.displayName = c.CheckboxItem.displayName;
448
- const W = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
449
- c.RadioItem,
450
- {
451
- ref: o,
452
- className: s("dropdown-menu-item", "dropdown-menu-radio-item", a),
453
660
  ...l,
454
- children: r
455
- }
456
- ));
457
- W.displayName = c.RadioItem.displayName;
458
- const ee = t.forwardRef(({ className: a, inset: r, ...l }, o) => /* @__PURE__ */ e(
459
- c.Label,
460
- {
461
- ref: o,
462
- className: s(
463
- "dropdown-menu-label",
464
- r && "dropdown-menu-label--inset",
465
- a
466
- ),
467
- ...l
468
- }
469
- ));
470
- ee.displayName = c.Label.displayName;
471
- const ae = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
472
- c.Separator,
473
- {
474
- ref: l,
475
- className: s("dropdown-menu-separator", a),
476
- ...r
661
+ children: /* @__PURE__ */ e(ie, { className: "breadcrumb-ellipsis__icon" })
477
662
  }
478
663
  ));
479
- ae.displayName = c.Separator.displayName;
480
- const re = 640;
481
- function le(a = re) {
482
- const [r, l] = t.useState(!1);
483
- return t.useEffect(() => {
664
+ te.displayName = "BreadcrumbEllipsis";
665
+ const Se = 640;
666
+ function ve(a = Se) {
667
+ const [l, r] = n.useState(!1);
668
+ return n.useEffect(() => {
484
669
  if (typeof window > "u" || typeof window.matchMedia != "function")
485
670
  return;
486
- const o = window.matchMedia(`(max-width: ${a}px)`), d = () => l(o.matches);
671
+ const o = window.matchMedia(`(max-width: ${a}px)`), d = () => r(o.matches);
487
672
  return d(), o.addEventListener("change", d), () => o.removeEventListener("change", d);
488
- }, [a]), r;
673
+ }, [a]), l;
489
674
  }
490
- const oe = ({ href: a, children: r, className: l }) => /* @__PURE__ */ e("a", { href: a, className: l, children: r });
491
- function te(a, r, l, o) {
492
- return a.children && a.children.length > 0 ? /* @__PURE__ */ n(P, { children: [
493
- /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ n(
675
+ const Le = ({ href: a, children: l, className: r }) => /* @__PURE__ */ e("a", { href: a, className: r, children: l });
676
+ function ye(a, l, r, o) {
677
+ return a.children && a.children.length > 0 ? /* @__PURE__ */ t(M, { children: [
678
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t(
494
679
  "button",
495
680
  {
496
681
  type: "button",
@@ -502,7 +687,7 @@ function te(a, r, l, o) {
502
687
  children: [
503
688
  a.label,
504
689
  /* @__PURE__ */ e(
505
- X,
690
+ U,
506
691
  {
507
692
  className: "breadcrumb-dropdown-trigger__icon",
508
693
  "aria-hidden": !0
@@ -512,41 +697,41 @@ function te(a, r, l, o) {
512
697
  ]
513
698
  }
514
699
  ) }),
515
- /* @__PURE__ */ e(v, { align: "start", children: /* @__PURE__ */ e(U, { children: a.children.map((u, i) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: u.href, children: u.label }) }, i)) }) })
516
- ] }) : r ? /* @__PURE__ */ e(R, { children: a.label }) : a.href ? /* @__PURE__ */ e(
517
- K,
700
+ /* @__PURE__ */ e(B, { align: "start", children: /* @__PURE__ */ e(j, { children: a.children.map((c, h) => /* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ e("a", { href: c.href, children: c.label }) }, h)) }) })
701
+ ] }) : l ? /* @__PURE__ */ e(F, { children: a.label }) : a.href ? /* @__PURE__ */ e(
702
+ oe,
518
703
  {
519
- render: /* @__PURE__ */ e(l, { href: a.href, children: a.label })
704
+ render: /* @__PURE__ */ e(r, { href: a.href, children: a.label })
520
705
  }
521
- ) : /* @__PURE__ */ e(R, { children: a.label });
706
+ ) : /* @__PURE__ */ e(F, { children: a.label });
522
707
  }
523
- function ne({
708
+ function Ee({
524
709
  items: a,
525
- linkComponent: r = oe,
526
- separator: l,
710
+ linkComponent: l = Le,
711
+ separator: r,
527
712
  className: o,
528
713
  "aria-label": d = "Breadcrumb",
529
- ...u
530
- }, i) {
531
- const f = le();
714
+ ...c
715
+ }, h) {
716
+ const _ = ve();
532
717
  if (!a.length) return null;
533
- const p = f && a.length > 2, C = p ? [a[0], a[a.length - 1]] : a, g = (p ? a.slice(1, -1) : []).flatMap(
534
- (m) => m.href ? [{ label: m.label, href: m.href }] : (m.children ?? []).map((h) => ({ label: h.label, href: h.href }))
718
+ const b = _ && a.length > 2, y = b ? [a[0], a[a.length - 1]] : a, E = (b ? a.slice(1, -1) : []).flatMap(
719
+ (f) => f.href ? [{ label: f.label, href: f.href }] : (f.children ?? []).map((m) => ({ label: m.label, href: m.href }))
535
720
  );
536
721
  return /* @__PURE__ */ e(
537
- O,
722
+ re,
538
723
  {
539
- ref: i,
724
+ ref: h,
540
725
  "aria-label": d,
541
726
  className: o,
542
- ...u,
543
- children: /* @__PURE__ */ e(Z, { children: C.map((m, h) => {
544
- const L = p ? h === 0 ? 0 : a.length - 1 : h, _ = h === C.length - 1 && !m.href && !m.children;
545
- return /* @__PURE__ */ n(t.Fragment, { children: [
546
- h > 0 && /* @__PURE__ */ e(A, { children: l }),
547
- p && h === 1 && g.length > 0 && /* @__PURE__ */ n(S, { children: [
548
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ n(P, { children: [
549
- /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ n(
727
+ ...c,
728
+ children: /* @__PURE__ */ e(le, { children: y.map((f, m) => {
729
+ const H = b ? m === 0 ? 0 : a.length - 1 : m, N = m === y.length - 1 && !f.href && !f.children;
730
+ return /* @__PURE__ */ t(n.Fragment, { children: [
731
+ m > 0 && /* @__PURE__ */ e(G, { children: r }),
732
+ b && m === 1 && E.length > 0 && /* @__PURE__ */ t(I, { children: [
733
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ t(M, { children: [
734
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t(
550
735
  "button",
551
736
  {
552
737
  type: "button",
@@ -557,135 +742,136 @@ function ne({
557
742
  ),
558
743
  "aria-haspopup": "menu",
559
744
  children: [
560
- /* @__PURE__ */ e(F, {}),
745
+ /* @__PURE__ */ e(te, {}),
561
746
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Show more pages" })
562
747
  ]
563
748
  }
564
749
  ) }),
565
- /* @__PURE__ */ e(v, { align: "start", children: /* @__PURE__ */ e(U, { children: g.map((b, H) => /* @__PURE__ */ e(I, { asChild: !0, children: /* @__PURE__ */ e("a", { href: b.href, children: b.label }) }, H)) }) })
750
+ /* @__PURE__ */ e(B, { align: "start", children: /* @__PURE__ */ e(j, { children: E.map((g, k) => /* @__PURE__ */ e(K, { asChild: !0, children: /* @__PURE__ */ e("a", { href: g.href, children: g.label }) }, k)) }) })
566
751
  ] }) }),
567
- /* @__PURE__ */ e(A, { children: l })
752
+ /* @__PURE__ */ e(G, { children: r })
568
753
  ] }),
569
- /* @__PURE__ */ e(E, { children: te(m, _, r) })
570
- ] }, L);
754
+ /* @__PURE__ */ e($, { children: ye(f, N, l) })
755
+ ] }, H);
571
756
  }) })
572
757
  }
573
758
  );
574
759
  }
575
- const se = t.forwardRef(
576
- ne
760
+ const Ve = n.forwardRef(
761
+ Ee
577
762
  );
578
- se.displayName = "Breadcrumb";
763
+ Ve.displayName = "Breadcrumb";
579
764
  export {
580
- Ge as Accordion,
581
- Ue as AccordionContent,
582
- $e as AccordionItem,
583
- je as AccordionTrigger,
584
- Ye as AlertDialog,
585
- qe as AlertDialogAction,
586
- ze as AlertDialogCancel,
587
- Je as AlertDialogContent,
588
- Qe as AlertDialogDescription,
589
- We as AlertDialogFooter,
590
- ea as AlertDialogHeader,
591
- aa as AlertDialogOverlay,
592
- ra as AlertDialogPortal,
593
- la as AlertDialogTitle,
594
- oa as AlertDialogTrigger,
595
- na as BADGE_ROUNDNESS,
596
- sa as BADGE_VARIANTS,
597
- ua as BUTTON_COLORS,
598
- Ne as BUTTON_GROUP_ORIENTATIONS,
599
- ma as BUTTON_SIZES,
600
- ha as BUTTON_VARIANTS,
601
- da as Badge,
602
- se as Breadcrumb,
603
- F as BreadcrumbEllipsis,
604
- E as BreadcrumbItem,
605
- K as BreadcrumbLink,
606
- Z as BreadcrumbList,
607
- R as BreadcrumbPage,
608
- O as BreadcrumbRoot,
609
- A as BreadcrumbSeparator,
610
- pa as Button,
611
- _e as ButtonGroup,
612
- He as ButtonGroupSeparator,
613
- we as ButtonGroupText,
614
- qa as CHECKBOX_FIELD_APPEARANCES,
615
- za as CHECKBOX_FIELD_LAYOUTS,
616
- Ve as Carousel,
617
- ke as CarouselContent,
618
- Ee as CarouselItem,
619
- Re as CarouselNext,
620
- Ae as CarouselPrevious,
621
- Ja as Checkbox,
622
- Qa as CheckboxField,
623
- me as ContentCard,
624
- k as EELogo,
625
- Ce as EELogoIcon,
626
- Sa as FIELD_ORIENTATIONS,
627
- La as Field,
628
- Va as FieldContent,
629
- ka as FieldDescription,
630
- Ea as FieldError,
631
- Ra as FieldGroup,
632
- Aa as FieldLabel,
633
- va as FieldLegend,
634
- Ia as FieldSeparator,
635
- ya as FieldSet,
636
- Ta as FieldTitle,
637
- _a as INPUT_SIZES,
638
- Ha as Input,
639
- fe as KUAT_LOGO_LOCKUP_MODE,
640
- pe as KUAT_LOGO_LOCKUP_USE,
641
- Ze as KUAT_RADIAL_PROGRESS_COLORS,
642
- Ke as KUAT_RADIAL_PROGRESS_SIZES,
643
- ye as KuatCarousel,
644
- Te as KuatCarouselContent,
645
- De as KuatCarouselItem,
646
- xe as KuatCarouselNext,
647
- Me as KuatCarouselPrevious,
648
- Y as KuatHeader,
649
- q as KuatLogoLockup,
650
- Fe as KuatRadialProgress,
651
- xa as KuatSelect,
652
- er as RADIO_FIELD_APPEARANCES,
653
- ar as RADIO_FIELD_LAYOUTS,
654
- rr as RadioField,
655
- lr as RadioGroup,
656
- or as RadioGroupItem,
657
- Ma as SELECT_LINES,
658
- Ba as SELECT_SIZES,
659
- gr as SONNER_POSITIONS,
660
- nr as SWITCH_FIELD_APPEARANCES,
661
- sr as SWITCH_FIELD_LAYOUTS,
662
- Oa as Select,
663
- Za as SelectContent,
664
- Ka as SelectGroup,
665
- Fa as SelectItem,
666
- Pa as SelectLabel,
667
- Ga as SelectScrollDownButton,
668
- Ua as SelectScrollUpButton,
669
- $a as SelectSeparator,
670
- ja as SelectTrigger,
671
- Xa as SelectValue,
672
- br as Sonner,
673
- Nr as SonnerContent,
674
- dr as Switch,
675
- cr as SwitchField,
676
- ga as TEXTAREA_RESIZE,
677
- ur as TOGGLE_SIZES,
678
- mr as TOGGLE_SKINS,
679
- ba as Textarea,
680
- hr as Toggle,
681
- pr as ToggleGroup,
682
- fr as ToggleGroupItem,
683
- ca as badgeVariants,
684
- Se as buttonGroupVariants,
685
- fa as buttonVariants,
765
+ Na as Accordion,
766
+ ga as AccordionContent,
767
+ Ca as AccordionItem,
768
+ ka as AccordionTrigger,
769
+ Ha as AlertDialog,
770
+ Sa as AlertDialogAction,
771
+ va as AlertDialogCancel,
772
+ La as AlertDialogContent,
773
+ ya as AlertDialogDescription,
774
+ Ea as AlertDialogFooter,
775
+ Va as AlertDialogHeader,
776
+ Aa as AlertDialogOverlay,
777
+ Ra as AlertDialogPortal,
778
+ Da as AlertDialogTitle,
779
+ Ta as AlertDialogTrigger,
780
+ Ia as BADGE_ROUNDNESS,
781
+ Ma as BADGE_VARIANTS,
782
+ ze as BUTTON_COLORS,
783
+ Fe as BUTTON_GROUP_ORIENTATIONS,
784
+ Ye as BUTTON_SIZES,
785
+ Je as BUTTON_VARIANTS,
786
+ Oa as Badge,
787
+ Ve as Breadcrumb,
788
+ te as BreadcrumbEllipsis,
789
+ $ as BreadcrumbItem,
790
+ oe as BreadcrumbLink,
791
+ le as BreadcrumbList,
792
+ F as BreadcrumbPage,
793
+ re as BreadcrumbRoot,
794
+ G as BreadcrumbSeparator,
795
+ J as Button,
796
+ Ge as ButtonGroup,
797
+ Ue as ButtonGroupSeparator,
798
+ je as ButtonGroupText,
799
+ Nr as CHECKBOX_FIELD_APPEARANCES,
800
+ gr as CHECKBOX_FIELD_LAYOUTS,
801
+ ea as Carousel,
802
+ aa as CarouselContent,
803
+ ra as CarouselItem,
804
+ la as CarouselNext,
805
+ oa as CarouselPrevious,
806
+ Cr as Checkbox,
807
+ kr as CheckboxField,
808
+ Ie as ContentCard,
809
+ P as EELogo,
810
+ Ze as EELogoIcon,
811
+ ja as FIELD_ORIENTATIONS,
812
+ qa as Field,
813
+ Xa as FieldContent,
814
+ za as FieldDescription,
815
+ Ya as FieldError,
816
+ Ja as FieldGroup,
817
+ Qa as FieldLabel,
818
+ Wa as FieldLegend,
819
+ er as FieldSeparator,
820
+ ar as FieldSet,
821
+ rr as FieldTitle,
822
+ Fa as INPUT_SIZES,
823
+ Ga as Input,
824
+ Me as KUAT_HEADER_LOCKUP_VARIANTS,
825
+ Ke as KUAT_LOGO_LOCKUP_MODE,
826
+ Be as KUAT_LOGO_LOCKUP_USE,
827
+ pa as KUAT_RADIAL_PROGRESS_COLORS,
828
+ ba as KUAT_RADIAL_PROGRESS_SIZES,
829
+ sa as KuatCarousel,
830
+ da as KuatCarouselContent,
831
+ ca as KuatCarouselItem,
832
+ ia as KuatCarouselNext,
833
+ ua as KuatCarouselPrevious,
834
+ we as KuatHeader,
835
+ He as KuatLogoLockup,
836
+ fa as KuatRadialProgress,
837
+ or as KuatSelect,
838
+ Hr as RADIO_FIELD_APPEARANCES,
839
+ Sr as RADIO_FIELD_LAYOUTS,
840
+ vr as RadioField,
841
+ Lr as RadioGroup,
842
+ yr as RadioGroupItem,
843
+ tr as SELECT_LINES,
844
+ nr as SELECT_SIZES,
845
+ Zr as SONNER_POSITIONS,
846
+ Vr as SWITCH_FIELD_APPEARANCES,
847
+ Ar as SWITCH_FIELD_LAYOUTS,
848
+ sr as Select,
849
+ dr as SelectContent,
850
+ cr as SelectGroup,
851
+ ir as SelectItem,
852
+ ur as SelectLabel,
853
+ hr as SelectScrollDownButton,
854
+ mr as SelectScrollUpButton,
855
+ pr as SelectSeparator,
856
+ br as SelectTrigger,
857
+ fr as SelectValue,
858
+ Pr as Sonner,
859
+ $r as SonnerContent,
860
+ Rr as Switch,
861
+ Dr as SwitchField,
862
+ Za as TEXTAREA_RESIZE,
863
+ xr as TOGGLE_SIZES,
864
+ Ir as TOGGLE_SKINS,
865
+ Pa as Textarea,
866
+ Mr as Toggle,
867
+ Or as ToggleGroup,
868
+ Br as ToggleGroupItem,
869
+ Ba as badgeVariants,
870
+ qe as buttonGroupVariants,
871
+ Qe as buttonVariants,
686
872
  s as cn,
687
- he as kuatHeaderVariants,
688
- _r as toast,
689
- ve as useCarousel,
690
- Be as useKuatCarousel
873
+ Oe as kuatHeaderVariants,
874
+ Fr as toast,
875
+ ta as useCarousel,
876
+ ha as useKuatCarousel
691
877
  };