@equal-experts/kuat-react 0.11.0 → 0.13.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.
Files changed (85) hide show
  1. package/README.md +3 -1
  2. package/dist/icon-button-B5hCoK1b.js +63 -0
  3. package/dist/icon-button.js +12 -0
  4. package/dist/index.js +942 -427
  5. package/dist/style.css +1 -1
  6. package/package.json +5 -1
  7. package/dist/accordion.d.ts +0 -2
  8. package/dist/alert-dialog.d.ts +0 -2
  9. package/dist/badge.d.ts +0 -3
  10. package/dist/button-group.d.ts +0 -2
  11. package/dist/button.d.ts +0 -3
  12. package/dist/carousel.d.ts +0 -2
  13. package/dist/checkbox.d.ts +0 -3
  14. package/dist/components/ui/accordion/accordion.d.ts +0 -7
  15. package/dist/components/ui/accordion/index.d.ts +0 -1
  16. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +0 -20
  17. package/dist/components/ui/alert-dialog/index.d.ts +0 -1
  18. package/dist/components/ui/badge/badge.d.ts +0 -16
  19. package/dist/components/ui/badge/index.d.ts +0 -2
  20. package/dist/components/ui/breadcrumb/Breadcrumb.d.ts +0 -29
  21. package/dist/components/ui/breadcrumb/breadcrumb-primitives.d.ts +0 -19
  22. package/dist/components/ui/breadcrumb/index.d.ts +0 -4
  23. package/dist/components/ui/button/button.d.ts +0 -27
  24. package/dist/components/ui/button/index.d.ts +0 -2
  25. package/dist/components/ui/button-group/button-group.d.ts +0 -23
  26. package/dist/components/ui/button-group/index.d.ts +0 -2
  27. package/dist/components/ui/carousel/carousel.d.ts +0 -50
  28. package/dist/components/ui/carousel/index.d.ts +0 -2
  29. package/dist/components/ui/checkbox/checkbox-field.d.ts +0 -23
  30. package/dist/components/ui/checkbox/checkbox.d.ts +0 -5
  31. package/dist/components/ui/checkbox/index.d.ts +0 -4
  32. package/dist/components/ui/content-card/content-card.d.ts +0 -29
  33. package/dist/components/ui/content-card/index.d.ts +0 -2
  34. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -27
  35. package/dist/components/ui/dropdown-menu/index.d.ts +0 -1
  36. package/dist/components/ui/ee-logo-icon/ee-logo-icon.d.ts +0 -11
  37. package/dist/components/ui/ee-logo-icon/index.d.ts +0 -2
  38. package/dist/components/ui/field/field.d.ts +0 -28
  39. package/dist/components/ui/field/index.d.ts +0 -2
  40. package/dist/components/ui/input/index.d.ts +0 -2
  41. package/dist/components/ui/input/input.d.ts +0 -20
  42. package/dist/components/ui/kuat-carousel/index.d.ts +0 -2
  43. package/dist/components/ui/kuat-carousel/kuat-carousel.d.ts +0 -16
  44. package/dist/components/ui/kuat-header/index.d.ts +0 -2
  45. package/dist/components/ui/kuat-header/kuat-header.d.ts +0 -38
  46. package/dist/components/ui/kuat-logo-lockup/index.d.ts +0 -2
  47. package/dist/components/ui/kuat-logo-lockup/kuat-logo-lockup.d.ts +0 -17
  48. package/dist/components/ui/kuat-radial-progress/index.d.ts +0 -2
  49. package/dist/components/ui/kuat-radial-progress/kuat-radial-progress.d.ts +0 -16
  50. package/dist/components/ui/radio/index.d.ts +0 -4
  51. package/dist/components/ui/radio/radio-field.d.ts +0 -25
  52. package/dist/components/ui/radio/radio.d.ts +0 -7
  53. package/dist/components/ui/select/constants.d.ts +0 -19
  54. package/dist/components/ui/select/index.d.ts +0 -3
  55. package/dist/components/ui/select/select.d.ts +0 -53
  56. package/dist/components/ui/separator/index.d.ts +0 -2
  57. package/dist/components/ui/separator/separator.d.ts +0 -9
  58. package/dist/components/ui/sonner/index.d.ts +0 -4
  59. package/dist/components/ui/sonner/sonner-content.d.ts +0 -15
  60. package/dist/components/ui/sonner/sonner.d.ts +0 -21
  61. package/dist/components/ui/switch/index.d.ts +0 -4
  62. package/dist/components/ui/switch/switch-field.d.ts +0 -23
  63. package/dist/components/ui/switch/switch.d.ts +0 -5
  64. package/dist/components/ui/textarea/index.d.ts +0 -2
  65. package/dist/components/ui/textarea/textarea.d.ts +0 -9
  66. package/dist/components/ui/toggle/constants.d.ts +0 -4
  67. package/dist/components/ui/toggle/index.d.ts +0 -6
  68. package/dist/components/ui/toggle/toggle-group.d.ts +0 -11
  69. package/dist/components/ui/toggle/toggle.d.ts +0 -9
  70. package/dist/field.d.ts +0 -3
  71. package/dist/index.d.ts +0 -44
  72. package/dist/input.d.ts +0 -3
  73. package/dist/kuat-carousel.d.ts +0 -2
  74. package/dist/kuat-radial-progress.d.ts +0 -7
  75. package/dist/lib/react-node-compat.d.ts +0 -7
  76. package/dist/lib/utils.d.ts +0 -3
  77. package/dist/radio.d.ts +0 -3
  78. package/dist/select.d.ts +0 -3
  79. package/dist/sonner.d.ts +0 -1
  80. package/dist/style.css.d.ts +0 -2
  81. package/dist/switch.d.ts +0 -1
  82. package/dist/test/setup.d.ts +0 -1
  83. package/dist/textarea.d.ts +0 -3
  84. package/dist/toggle-group.d.ts +0 -3
  85. package/dist/toggle.d.ts +0 -3
package/dist/index.js CHANGED
@@ -1,117 +1,273 @@
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-B_FcJvc1.js";
7
- import { K as ye, a as Te, b as De, d as xe, c as Me, u as Be } from "./kuat-carousel-DUR-L0dP.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({
1
+ import { c as d } from "./utils-DLUjLwnh.js";
2
+ import { S as be } from "./button-group-enIzvVeN.js";
3
+ import { d as Sa, B as Ha, a as Ta, b as ya, c as Da } from "./button-group-enIzvVeN.js";
4
+ import { jsxs as s, jsx as e, Fragment as M } from "react/jsx-runtime";
5
+ import * as o from "react";
6
+ import { ChevronRight as $, Menu as Ve, ChevronLeft as Ie, X as xe, User as ee, LayoutGrid as ke, ChevronDown as se, MoreHorizontal as Me } from "lucide-react";
7
+ import { B as J } from "./button-C0a1gFoV.js";
8
+ import { d as Va, c as Ia, a as xa, b as Ma } from "./button-C0a1gFoV.js";
9
+ import { I as Be } from "./icon-button-B5hCoK1b.js";
10
+ import { b as Oa, a as Pa, e as Ua, d as Fa, c as Za, i as Ka } from "./icon-button-B5hCoK1b.js";
11
+ import * as b from "@radix-ui/react-dropdown-menu";
12
+ import { C as Ga, a as qa, b as ja, d as Ya, c as za, u as Xa } from "./carousel-B_FcJvc1.js";
13
+ import { K as Ja, a as Qa, b as er, d as ar, c as rr, u as lr } from "./kuat-carousel-DUR-L0dP.js";
14
+ import { b as sr, a as nr, K as ir } from "./kuat-radial-progress-YcpYzHjk.js";
15
+ import { A as dr, c as cr, a as ur, b as hr } from "./accordion-CUlVo4uo.js";
16
+ import { A as pr, i as _r, j as br, d as kr, h as fr, f as Nr, e as gr, b as Cr, a as vr, g as wr, c as Ar } from "./alert-dialog-yHaNWLGX.js";
17
+ import { c as Lr, a as Sr, B as Hr, b as Tr } from "./badge-BZgdEQSD.js";
18
+ import { a as Dr, T as Rr } from "./textarea-B0irOcAM.js";
19
+ import { a as Ir, I as xr } from "./input-DmkHok33.js";
20
+ import { j as Br, F as Or, a as Pr, b as Ur, c as Fr, d as Zr, e as Kr, f as $r, g as Gr, h as qr, i as jr } from "./field-CpIBifwy.js";
21
+ import { K as zr, j as Xr, k as Wr, S as Jr, a as Qr, b as el, c as al, d as rl, e as ll, f as tl, g as sl, h as nl, i as il } from "./select-CkwcI4vN.js";
22
+ import { b as dl, c as cl, C as ul, a as hl } from "./checkbox-field-7OmstdY0.js";
23
+ import { c as pl, d as _l, b as bl, R as kl, a as fl } from "./radio-field-BD77QCpO.js";
24
+ import { b as gl, c as Cl, S as vl, a as wl } from "./switch-field-xn_CPJH7.js";
25
+ import { a as El, b as Ll, T as Sl, c as Hl, d as Tl } from "./constants-Cfitvm6L.js";
26
+ import { a as Dl, S as Rl, b as Vl, t as Il } from "./sonner-content-CXBD6jNn.js";
27
+ const fa = o.forwardRef(function({
25
28
  className: r,
26
29
  asChild: l = !1,
27
- width: o = "default",
28
- maxWidth: d = "373px",
30
+ width: t = "default",
31
+ maxWidth: i = "373px",
29
32
  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
- ..._ ?? {},
45
- "--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 })
33
+ imageAlt: h = "",
34
+ contentText: N = null,
35
+ headerAccessory: k = null,
36
+ customContent: _ = null,
37
+ footer: p = null,
38
+ badge: y,
39
+ category: g,
40
+ title: C,
41
+ titleHeadingLevel: V = 3,
42
+ children: v,
43
+ style: E,
44
+ ...S
45
+ }, w) {
46
+ const H = `h${V}`, L = t === "fluid" ? "content-card--width-fluid" : t === "custom" ? "content-card--width-custom" : "content-card--width-default", T = t === "custom" ? {
47
+ ...E ?? {},
48
+ "--content-card-max-width": typeof i == "number" ? `${i}px` : i ?? "373px"
49
+ } : E, j = /* @__PURE__ */ s(M, { children: [
50
+ u !== null ? /* @__PURE__ */ e("div", { className: "content-card__media", children: /* @__PURE__ */ e("img", { className: "content-card__media-img", alt: h, src: u }) }) : null,
51
+ /* @__PURE__ */ s("div", { className: "content-card__body", children: [
52
+ /* @__PURE__ */ s("div", { className: "content-card__heading-row", children: [
53
+ /* @__PURE__ */ s("div", { className: "content-card__heading-left", children: [
54
+ /* @__PURE__ */ s("div", { className: "content-card__heading-meta", children: [
55
+ /* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: y }),
56
+ /* @__PURE__ */ e("p", { className: "content-card__category", children: g })
54
57
  ] }),
55
- /* @__PURE__ */ e($, { className: "content-card__title", children: h })
58
+ /* @__PURE__ */ e(H, { className: "content-card__title", children: C })
56
59
  ] }),
57
60
  /* @__PURE__ */ e(
58
61
  "div",
59
62
  {
60
63
  "data-slot": "header-accessory",
61
64
  className: "content-card__header-accessory",
62
- children: p ?? null
65
+ children: k ?? null
63
66
  }
64
67
  )
65
68
  ] }),
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 })
69
+ N != null ? /* @__PURE__ */ e("div", { "data-slot": "content", className: "content-card__content", children: /* @__PURE__ */ e("p", { className: "content-card__content-text", children: N }) }) : null,
70
+ /* @__PURE__ */ e("div", { "data-slot": "custom-content", className: "content-card__custom-content", children: _ ?? null }),
71
+ /* @__PURE__ */ e("div", { "data-slot": "footer", className: "content-card__footer", children: p ?? null })
69
72
  ] })
70
73
  ] });
71
74
  if (l) {
72
- const x = t.Children.only(y);
73
- if (!t.isValidElement(x))
75
+ const I = o.Children.only(v);
76
+ if (!o.isValidElement(I))
74
77
  throw new Error("ContentCard: when `asChild` is true, provide a single React element child.");
75
- const w = x;
76
- return t.cloneElement(
77
- w,
78
+ const D = I;
79
+ return o.cloneElement(
80
+ D,
78
81
  {
79
- ...b,
80
- ref: H,
82
+ ...S,
83
+ ref: w,
81
84
  "data-slot": "content-card",
82
- className: s("content-card", T, w.props.className, r),
83
- style: o === "custom" ? {
84
- ...w.props.style ?? {},
85
- ...V
86
- } : V ?? w.props.style
85
+ className: d("content-card", L, D.props.className, r),
86
+ style: t === "custom" ? {
87
+ ...D.props.style ?? {},
88
+ ...T
89
+ } : T ?? D.props.style
87
90
  },
88
- D
91
+ j
89
92
  );
90
93
  }
91
94
  return /* @__PURE__ */ e(
92
95
  "div",
93
96
  {
94
- ref: H,
97
+ ref: w,
95
98
  "data-slot": "content-card",
96
- className: s("content-card", T, r),
97
- style: V,
98
- ...b,
99
- children: D
99
+ className: d("content-card", L, r),
100
+ style: T,
101
+ ...S,
102
+ children: j
100
103
  }
101
104
  );
102
- });
103
- function k({ className: a, textColor: r = "grey" }) {
104
- return /* @__PURE__ */ n(
105
+ }), B = b.Root, O = b.Trigger, G = b.Group, Oe = o.forwardRef(({ className: a, inset: r, children: l, ...t }, i) => /* @__PURE__ */ s(
106
+ b.SubTrigger,
107
+ {
108
+ ref: i,
109
+ className: d(
110
+ "dropdown-menu-sub-trigger",
111
+ r && "dropdown-menu-sub-trigger--inset",
112
+ a
113
+ ),
114
+ ...t,
115
+ children: [
116
+ l,
117
+ /* @__PURE__ */ e($, { className: "dropdown-menu-sub-trigger__icon" })
118
+ ]
119
+ }
120
+ ));
121
+ Oe.displayName = b.SubTrigger.displayName;
122
+ const Pe = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
123
+ b.SubContent,
124
+ {
125
+ ref: l,
126
+ className: d("dropdown-menu-content", "dropdown-menu-sub-content", a),
127
+ ...r
128
+ }
129
+ ));
130
+ Pe.displayName = b.SubContent.displayName;
131
+ const q = o.forwardRef(({ className: a, sideOffset: r = 4, ...l }, t) => /* @__PURE__ */ e(b.Portal, { children: /* @__PURE__ */ e(
132
+ b.Content,
133
+ {
134
+ ref: t,
135
+ sideOffset: r,
136
+ className: d("dropdown-menu-content", a),
137
+ ...l
138
+ }
139
+ ) }));
140
+ q.displayName = b.Content.displayName;
141
+ const P = o.forwardRef(({ className: a, inset: r, ...l }, t) => /* @__PURE__ */ e(
142
+ b.Item,
143
+ {
144
+ ref: t,
145
+ className: d(
146
+ "dropdown-menu-item",
147
+ r && "dropdown-menu-item--inset",
148
+ a
149
+ ),
150
+ ...l
151
+ }
152
+ ));
153
+ P.displayName = b.Item.displayName;
154
+ const Ue = o.forwardRef(({ className: a, children: r, checked: l, ...t }, i) => /* @__PURE__ */ e(
155
+ b.CheckboxItem,
156
+ {
157
+ ref: i,
158
+ className: d("dropdown-menu-item", "dropdown-menu-checkbox-item", a),
159
+ checked: l,
160
+ ...t,
161
+ children: r
162
+ }
163
+ ));
164
+ Ue.displayName = b.CheckboxItem.displayName;
165
+ const Fe = o.forwardRef(({ className: a, children: r, ...l }, t) => /* @__PURE__ */ e(
166
+ b.RadioItem,
167
+ {
168
+ ref: t,
169
+ className: d("dropdown-menu-item", "dropdown-menu-radio-item", a),
170
+ ...l,
171
+ children: r
172
+ }
173
+ ));
174
+ Fe.displayName = b.RadioItem.displayName;
175
+ const Ze = o.forwardRef(({ className: a, inset: r, ...l }, t) => /* @__PURE__ */ e(
176
+ b.Label,
177
+ {
178
+ ref: t,
179
+ className: d(
180
+ "dropdown-menu-label",
181
+ r && "dropdown-menu-label--inset",
182
+ a
183
+ ),
184
+ ...l
185
+ }
186
+ ));
187
+ Ze.displayName = b.Label.displayName;
188
+ const Ke = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
189
+ b.Separator,
190
+ {
191
+ ref: l,
192
+ className: d("dropdown-menu-separator", a),
193
+ ...r
194
+ }
195
+ ));
196
+ Ke.displayName = b.Separator.displayName;
197
+ const x = {
198
+ trigger: "Equal Experts apps",
199
+ nav: "Equal Experts applications",
200
+ title: "Equal Experts apps",
201
+ teaserTitle: "Equal Experts apps",
202
+ teaserDescription: "Switch between EE services"
203
+ }, Q = {
204
+ teaserTitle: "Account",
205
+ nav: "Account",
206
+ title: "Account"
207
+ }, $e = "No applications are available right now.";
208
+ function Ge(a) {
209
+ return a ? a.loading || a.apps.length > 0 ? !0 : a.empty === "message" : !1;
210
+ }
211
+ function qe(a) {
212
+ var r, l, t, i, u;
213
+ return {
214
+ trigger: ((r = a == null ? void 0 : a.labels) == null ? void 0 : r.trigger) ?? x.trigger,
215
+ nav: ((l = a == null ? void 0 : a.labels) == null ? void 0 : l.nav) ?? x.nav,
216
+ title: ((t = a == null ? void 0 : a.labels) == null ? void 0 : t.title) ?? x.title,
217
+ teaserTitle: ((i = a == null ? void 0 : a.labels) == null ? void 0 : i.teaserTitle) ?? x.teaserTitle,
218
+ teaserDescription: ((u = a == null ? void 0 : a.labels) == null ? void 0 : u.teaserDescription) ?? x.teaserDescription
219
+ };
220
+ }
221
+ function fe(a) {
222
+ return (a == null ? void 0 : a.emptyMessage) ?? $e;
223
+ }
224
+ function je(a) {
225
+ var r, l;
226
+ return !!((l = (r = a == null ? void 0 : a.mobile) == null ? void 0 : r.items) != null && l.length);
227
+ }
228
+ function Ye(a) {
229
+ var r;
230
+ return !!((r = a == null ? void 0 : a.items) != null && r.length);
231
+ }
232
+ function Ne(a) {
233
+ var r, l;
234
+ return ((l = (r = a == null ? void 0 : a.mobile) == null ? void 0 : r.items) == null ? void 0 : l.map((t) => ({
235
+ label: t.label,
236
+ url: t.href
237
+ }))) ?? [];
238
+ }
239
+ function ze(a) {
240
+ var r;
241
+ return ((r = a == null ? void 0 : a.items) == null ? void 0 : r.length) === 1 && Ne(a).length > 0;
242
+ }
243
+ function Xe(a) {
244
+ var k, _;
245
+ const r = a == null ? void 0 : a.labels, l = a == null ? void 0 : a.mobile, t = (_ = (k = a == null ? void 0 : a.items) == null ? void 0 : k[0]) == null ? void 0 : _.label, i = (r == null ? void 0 : r.teaserTitle) ?? (l == null ? void 0 : l.heading) ?? Q.teaserTitle, u = (r == null ? void 0 : r.teaserDescription) ?? (l == null ? void 0 : l.subtitle) ?? (t ? `Signed in as ${t}` : ""), h = (r == null ? void 0 : r.title) ?? (l == null ? void 0 : l.heading) ?? Q.title, N = (r == null ? void 0 : r.nav) ?? Q.nav;
246
+ return { teaserTitle: i, teaserDescription: u, nav: N, title: h };
247
+ }
248
+ function We(a) {
249
+ var r, l;
250
+ return a.logo === null ? { mode: "hidden", lockupVariant: "default" } : a.logo !== void 0 ? {
251
+ mode: "custom",
252
+ lockupVariant: ((r = a.lockup) == null ? void 0 : r.variant) ?? "default"
253
+ } : (l = a.lockup) != null && l.variant ? { mode: "builtin", lockupVariant: a.lockup.variant } : { mode: "hidden", lockupVariant: "default" };
254
+ }
255
+ function Je(a) {
256
+ return a.mobileMenuAriaLabel ? a.mobileMenuAriaLabel : a.showAppSwitcher && !a.hasStructuredNavigation && !a.hasAccountMobileTier ? "Equal Experts apps menu" : a.hasAccountMobileTier && !a.hasStructuredNavigation && !a.showAppSwitcher ? "Account menu" : "Navigation menu";
257
+ }
258
+ const Na = ["default", "demo"], ga = ["hide", "message"];
259
+ function ae({ className: a, textColor: r = "grey" }) {
260
+ return /* @__PURE__ */ s(
105
261
  "svg",
106
262
  {
107
- className: s("ee-logo", `ee-logo--${r}`, a),
263
+ className: d("ee-logo", `ee-logo--${r}`, a),
108
264
  viewBox: "0 0 500 133",
109
265
  fill: "none",
110
266
  xmlns: "http://www.w3.org/2000/svg",
111
267
  "aria-label": "Equal Experts logo",
112
268
  children: [
113
- /* @__PURE__ */ n("g", { clipPath: "url(#ee-logo-clip)", children: [
114
- /* @__PURE__ */ n("g", { className: "ee-logo__text", fill: "currentColor", children: [
269
+ /* @__PURE__ */ s("g", { clipPath: "url(#ee-logo-clip)", children: [
270
+ /* @__PURE__ */ s("g", { className: "ee-logo__text", fill: "currentColor", children: [
115
271
  /* @__PURE__ */ e("path", { d: "M220.235 1.45712L219.413 13.0751H197.72V23.2946H216.859V34.844H197.72V45.3862H219.667V57.0237H184.687V1.45712H220.235Z" }),
116
272
  /* @__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
273
  /* @__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 +278,7 @@ function k({ className: a, textColor: r = "grey" }) {
122
278
  /* @__PURE__ */ e("path", { d: "M102.74 75.3895H40.5969V93.029H102.74V75.3895Z", fill: "#1795D4" }),
123
279
  /* @__PURE__ */ e("path", { d: "M0.489227 2.44485V20.7938V110.382V128.741H19.1389H56.6732V110.382H19.1389V20.7938H56.6732V2.44485H19.1389H0.489227Z", fill: "#1795D4" }),
124
280
  /* @__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: [
281
+ /* @__PURE__ */ s("g", { className: "ee-logo__text", fill: "currentColor", children: [
126
282
  /* @__PURE__ */ e("path", { d: "M220.235 75.2819L219.413 86.9096H197.72V97.1291H216.859V108.679H197.72V119.231H219.667V130.849H184.687V75.2819H220.235Z" }),
127
283
  /* @__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
284
  /* @__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,139 +293,578 @@ function k({ className: a, textColor: r = "grey" }) {
137
293
  }
138
294
  );
139
295
  }
140
- const Y = t.forwardRef(
296
+ const _e = "kuat-header-app-switcher-menu", Qe = (a, r) => /* @__PURE__ */ e("a", { href: a.url, className: r, children: a.label });
297
+ function ea(a) {
298
+ return Array.isArray(a);
299
+ }
300
+ function ge({
301
+ align: a = "start",
302
+ className: r,
303
+ id: l,
304
+ children: t
305
+ }) {
306
+ return /* @__PURE__ */ e(
307
+ q,
308
+ {
309
+ id: l,
310
+ align: a,
311
+ className: d("kuat-header__dropdown-content", r),
312
+ children: t
313
+ }
314
+ );
315
+ }
316
+ function Ce({ items: a }) {
317
+ return /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(G, { children: a.map((r) => /* @__PURE__ */ e(P, { asChild: !0, children: Qe(r, "kuat-header__dropdown-link") }, `${r.label}-${r.url}`)) }) });
318
+ }
319
+ function aa({ items: a, variant: r }) {
320
+ return /* @__PURE__ */ e("div", { className: "kuat-header__nav-items", children: a.map((l) => {
321
+ var t;
322
+ return (t = l.items) != null && t.length ? /* @__PURE__ */ s(B, { children: [
323
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ s(
324
+ "button",
325
+ {
326
+ type: "button",
327
+ className: d(
328
+ "kuat-header__nav-trigger",
329
+ r === "bold" && "kuat-header__nav-trigger--bold"
330
+ ),
331
+ "aria-haspopup": "menu",
332
+ children: [
333
+ l.label,
334
+ /* @__PURE__ */ e(se, { className: "h-4 w-4", "aria-hidden": !0 })
335
+ ]
336
+ }
337
+ ) }),
338
+ /* @__PURE__ */ e(Ce, { items: l.items })
339
+ ] }, `${l.label}-${l.url}`) : /* @__PURE__ */ e(
340
+ "a",
341
+ {
342
+ href: l.url,
343
+ className: d(
344
+ "kuat-header__nav-link",
345
+ r === "bold" && "kuat-header__nav-link--bold"
346
+ ),
347
+ children: l.label
348
+ },
349
+ `${l.label}-${l.url}`
350
+ );
351
+ }) });
352
+ }
353
+ function ra({
354
+ account: a,
355
+ variant: r
356
+ }) {
357
+ const l = ze(a), t = Ne(a);
358
+ return /* @__PURE__ */ e("div", { className: "kuat-header__actions-items", children: a.items.map((i, u) => {
359
+ const h = i.icon ?? /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": !0 });
360
+ return l && u === 0 ? /* @__PURE__ */ s(B, { children: [
361
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ s(
362
+ "button",
363
+ {
364
+ type: "button",
365
+ className: d(
366
+ "kuat-header__action-trigger",
367
+ r === "bold" && "kuat-header__action-trigger--bold"
368
+ ),
369
+ "aria-haspopup": "menu",
370
+ children: [
371
+ h,
372
+ /* @__PURE__ */ e("span", { className: "hidden sm:inline", children: i.label }),
373
+ /* @__PURE__ */ e(se, { className: "h-4 w-4", "aria-hidden": !0 })
374
+ ]
375
+ }
376
+ ) }),
377
+ /* @__PURE__ */ e(Ce, { items: t })
378
+ ] }, `${i.label}-${i.href}`) : /* @__PURE__ */ s(
379
+ "a",
380
+ {
381
+ href: i.href,
382
+ className: d(
383
+ "kuat-header__action-link",
384
+ r === "bold" && "kuat-header__action-link--bold"
385
+ ),
386
+ children: [
387
+ h,
388
+ /* @__PURE__ */ e("span", { children: i.label })
389
+ ]
390
+ },
391
+ `${i.label}-${i.href}`
392
+ );
393
+ }) });
394
+ }
395
+ function la({
396
+ config: a,
397
+ labels: r
398
+ }) {
399
+ const l = fe(a), t = a.apps, i = a.loading, u = a.empty ?? "hide", h = a.linkTarget, N = a.onSelect, k = a.onOpen;
400
+ return /* @__PURE__ */ s(
401
+ B,
402
+ {
403
+ onOpenChange: (_) => {
404
+ _ && (k == null || k());
405
+ },
406
+ children: [
407
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
408
+ Be,
409
+ {
410
+ type: "button",
411
+ variant: "ghost",
412
+ color: "ee-blue",
413
+ size: "regular",
414
+ className: "kuat-header__app-switcher-trigger",
415
+ "aria-label": r.trigger,
416
+ "aria-haspopup": "menu",
417
+ "aria-controls": _e,
418
+ children: /* @__PURE__ */ e(ke, { className: "h-5 w-5", "aria-hidden": !0 })
419
+ }
420
+ ) }),
421
+ /* @__PURE__ */ e(
422
+ ge,
423
+ {
424
+ id: _e,
425
+ align: "end",
426
+ className: "kuat-header__app-switcher-panel",
427
+ children: /* @__PURE__ */ e(G, { className: "kuat-header__app-switcher-scroll", children: i ? /* @__PURE__ */ s(M, { children: [
428
+ /* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 }),
429
+ /* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 }),
430
+ /* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 })
431
+ ] }) : t != null && t.length ? t.map((_) => /* @__PURE__ */ e(P, { asChild: !0, className: "kuat-header__app-switcher-item p-0 focus:bg-accent", children: /* @__PURE__ */ s(
432
+ "a",
433
+ {
434
+ href: _.href,
435
+ target: h ?? "_self",
436
+ rel: h === "_blank" ? "noopener noreferrer" : void 0,
437
+ className: "kuat-header__app-switcher-link",
438
+ onClick: () => N == null ? void 0 : N(_),
439
+ children: [
440
+ _.icon ? /* @__PURE__ */ e("span", { className: "kuat-header__app-switcher-icon", "aria-hidden": !0, children: _.icon }) : null,
441
+ /* @__PURE__ */ s("span", { className: "kuat-header__app-switcher-text", children: [
442
+ /* @__PURE__ */ e("span", { className: "kuat-header__app-switcher-label", children: _.label }),
443
+ _.description ? /* @__PURE__ */ e("span", { className: "kuat-header__app-switcher-desc", children: _.description }) : null
444
+ ] })
445
+ ]
446
+ }
447
+ ) }, _.id)) : u === "message" ? /* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-empty px-3 py-3 text-sm text-muted-foreground", children: l }) : null })
448
+ }
449
+ )
450
+ ]
451
+ }
452
+ );
453
+ }
454
+ const ta = o.forwardRef(
141
455
  ({
142
456
  className: a,
143
457
  variant: r = "default",
144
458
  logo: l,
145
- title: o,
146
- 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,
156
- {
157
- className: "ee-logo--desktop shrink-0",
158
- textColor: r === "bold" ? "white" : "grey"
459
+ title: t,
460
+ navigation: i,
461
+ account: u,
462
+ accountMarkup: h,
463
+ mobileMenuTrigger: N,
464
+ mobileMenu: k,
465
+ lockup: _,
466
+ appSwitcher: p,
467
+ mobileMenuAriaLabel: y,
468
+ children: g,
469
+ ...C
470
+ }, V) => {
471
+ var ue, he;
472
+ const v = Xe(u), E = je(u), S = Ye(u), w = qe(p), H = Ge(p), L = We({ logo: l, lockup: _ }), T = ea(i), I = !k && (T || S || !!h || H || E), D = Je({
473
+ mobileMenuAriaLabel: y,
474
+ showAppSwitcher: H,
475
+ hasStructuredNavigation: T,
476
+ hasAccountMobileTier: E
477
+ }), [A, Y] = o.useState(!1), [f, U] = o.useState("main"), z = o.useRef(null), F = o.useRef(null), ne = o.useRef(null), ie = o.useRef(null), oe = o.useRef(null), X = o.useRef(null), W = o.useRef(null);
478
+ o.useEffect(() => {
479
+ A || U("main");
480
+ }, [A]), o.useEffect(() => {
481
+ if (!A)
482
+ return;
483
+ const n = document.body, c = n.style.overflow;
484
+ return n.style.overflow = "hidden", () => {
485
+ n.style.overflow = c, z.current && z.current.focus();
486
+ };
487
+ }, [A]), o.useEffect(() => {
488
+ if (!A)
489
+ return;
490
+ const n = window.requestAnimationFrame(() => {
491
+ var m;
492
+ const c = F.current;
493
+ (m = c == null ? void 0 : c.querySelector("button, a, [tabindex]:not([tabindex='-1'])")) == null || m.focus();
494
+ });
495
+ return () => window.cancelAnimationFrame(n);
496
+ }, [A, f]), o.useEffect(() => {
497
+ const n = oe.current, c = X.current, m = W.current;
498
+ if (!A) {
499
+ n == null || n.removeAttribute("inert"), c == null || c.removeAttribute("inert"), m == null || m.removeAttribute("inert");
500
+ return;
159
501
  }
160
- ), h = l !== void 0 ? l : !p && /* @__PURE__ */ e(
161
- k,
502
+ n && (f !== "main" ? n.setAttribute("inert", "") : n.removeAttribute("inert")), c && (f !== "apps" ? c.setAttribute("inert", "") : c.removeAttribute("inert")), m && (f !== "account" ? m.setAttribute("inert", "") : m.removeAttribute("inert"));
503
+ }, [A, f]), o.useEffect(() => {
504
+ if (!A)
505
+ return;
506
+ const n = (c) => {
507
+ if (c.key === "Escape") {
508
+ c.preventDefault(), Y(!1);
509
+ return;
510
+ }
511
+ if (c.key !== "Tab" || !F.current)
512
+ return;
513
+ const m = F.current.querySelectorAll(
514
+ "button, a, [tabindex]:not([tabindex='-1'])"
515
+ );
516
+ if (!m.length)
517
+ return;
518
+ const me = m[0], pe = m[m.length - 1];
519
+ c.shiftKey && document.activeElement === me ? (c.preventDefault(), pe.focus()) : !c.shiftKey && document.activeElement === pe && (c.preventDefault(), me.focus());
520
+ };
521
+ return document.addEventListener("keydown", n), () => {
522
+ document.removeEventListener("keydown", n);
523
+ };
524
+ }, [A, f]);
525
+ const de = r === "bold" ? "white" : "grey", Le = L.mode === "builtin" ? /* @__PURE__ */ e(
526
+ ae,
162
527
  {
163
- className: "ee-logo--mobile shrink-0",
164
- textColor: r === "bold" ? "white" : "grey"
528
+ className: "ee-logo--desktop shrink-0",
529
+ textColor: de
165
530
  }
166
- );
167
- return /* @__PURE__ */ n(
531
+ ) : null, Se = L.mode === "builtin" ? /* @__PURE__ */ e(ae, { className: "ee-logo--mobile shrink-0", textColor: de }) : null, Z = L.mode === "custom" ? l : L.mode === "builtin" ? Le : null, K = L.mode === "custom" ? l : L.mode === "builtin" ? Se : null, R = L.lockupVariant, He = !!Z && R === "default", Te = !!K && R === "default", ye = !!Z && R === "demo", De = !!K && R === "demo", Re = fe(p), ce = (ue = u == null ? void 0 : u.mobile) == null ? void 0 : ue.items;
532
+ return /* @__PURE__ */ s(
168
533
  "header",
169
534
  {
170
- ref: g,
171
- className: s(
535
+ ref: V,
536
+ className: d(
172
537
  "kuat-header",
173
538
  `kuat-header--${r}`,
174
539
  a
175
540
  ),
176
- ...N,
541
+ ...C,
177
542
  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 }),
543
+ /* @__PURE__ */ s("div", { className: "kuat-header__desktop", children: [
544
+ /* @__PURE__ */ s("div", { className: "kuat-header__desktop-left", children: [
545
+ He && /* @__PURE__ */ s(M, { children: [
546
+ /* @__PURE__ */ e("div", { className: "shrink-0", children: Z }),
182
547
  /* @__PURE__ */ e(
183
- M,
548
+ be,
184
549
  {
185
550
  orientation: "vertical",
186
551
  className: "kuat-header__separator"
187
552
  }
188
553
  )
189
554
  ] }),
190
- o && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: o })
555
+ ye && /* @__PURE__ */ s("div", { className: "kuat-header__desktop-demo-lockup", children: [
556
+ t && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-demo-title", children: t }),
557
+ /* @__PURE__ */ s("div", { className: "kuat-header__demo-byline", children: [
558
+ /* @__PURE__ */ e("span", { className: "kuat-header__demo-label", children: "A demo by" }),
559
+ /* @__PURE__ */ e("div", { className: "kuat-header__desktop-demo-logo", children: Z })
560
+ ] })
561
+ ] }),
562
+ t && R === "default" && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: t })
191
563
  ] }),
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 })
564
+ /* @__PURE__ */ s("div", { className: "kuat-header__desktop-right", children: [
565
+ T ? i.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e(aa, { items: i, variant: r }) }) : i ? /* @__PURE__ */ e("nav", { className: "flex items-center", children: i }) : null,
566
+ H && p ? /* @__PURE__ */ e("div", { className: "kuat-header__nav-dropdown-wrap", children: /* @__PURE__ */ e(
567
+ la,
568
+ {
569
+ config: p,
570
+ labels: w
571
+ }
572
+ ) }) : null,
573
+ S && u ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e(ra, { account: u, variant: r }) }) : h ? /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: h }) : null
195
574
  ] })
196
575
  ] }),
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 })
576
+ /* @__PURE__ */ s("div", { className: "kuat-header__mobile", children: [
577
+ /* @__PURE__ */ s("div", { className: "kuat-header__mobile-left", children: [
578
+ Te && /* @__PURE__ */ e("div", { className: "shrink-0", children: K }),
579
+ De && /* @__PURE__ */ s("div", { className: "kuat-header__mobile-demo-lockup", children: [
580
+ t && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-demo-title", children: t }),
581
+ /* @__PURE__ */ s("div", { className: "kuat-header__demo-byline", children: [
582
+ /* @__PURE__ */ e("span", { className: "kuat-header__demo-label", children: "A demo by" }),
583
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-demo-logo", children: K })
584
+ ] })
585
+ ] }),
586
+ t && R === "default" && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: t })
201
587
  ] }),
202
- i && /* @__PURE__ */ e("div", { className: "shrink-0", children: i })
588
+ N ? /* @__PURE__ */ e("div", { className: "shrink-0", children: N }) : I ? /* @__PURE__ */ e(
589
+ J,
590
+ {
591
+ ref: z,
592
+ variant: "ghost",
593
+ size: "icon",
594
+ className: d(
595
+ "kuat-header__mobile-trigger",
596
+ r === "bold" && "kuat-header__mobile-trigger--bold"
597
+ ),
598
+ "aria-label": "Open menu",
599
+ "aria-expanded": A,
600
+ "aria-controls": "kuat-header-mobile-menu",
601
+ onClick: () => Y(!0),
602
+ children: /* @__PURE__ */ e(Ve, { className: "h-6 w-6", "aria-hidden": !0 })
603
+ }
604
+ ) : null
203
605
  ] }),
204
- f,
205
- C
606
+ I ? A && /* @__PURE__ */ s(
607
+ "div",
608
+ {
609
+ id: "kuat-header-mobile-menu",
610
+ ref: F,
611
+ className: "kuat-header__mobile-sheet",
612
+ role: "dialog",
613
+ "aria-modal": "true",
614
+ "aria-label": D,
615
+ children: [
616
+ /* @__PURE__ */ s(
617
+ "div",
618
+ {
619
+ className: d(
620
+ "kuat-header__mobile-sheet-header",
621
+ (f === "apps" || f === "account") && "kuat-header__mobile-sheet-header--split"
622
+ ),
623
+ children: [
624
+ f === "apps" || f === "account" ? /* @__PURE__ */ s(
625
+ J,
626
+ {
627
+ type: "button",
628
+ variant: "ghost",
629
+ className: "kuat-header__mobile-back",
630
+ "aria-label": "Back to main menu",
631
+ onClick: () => {
632
+ const n = f;
633
+ U("main"), requestAnimationFrame(() => {
634
+ var c, m;
635
+ n === "apps" ? (c = ne.current) == null || c.focus() : (m = ie.current) == null || m.focus();
636
+ });
637
+ },
638
+ children: [
639
+ /* @__PURE__ */ e(Ie, { className: "h-6 w-6", "aria-hidden": !0 }),
640
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-back-text", children: "Back" })
641
+ ]
642
+ }
643
+ ) : /* @__PURE__ */ e("span", { "aria-hidden": !0, className: "kuat-header__mobile-sheet-header-spacer" }),
644
+ /* @__PURE__ */ e(
645
+ J,
646
+ {
647
+ variant: "ghost",
648
+ size: "icon",
649
+ className: "kuat-header__mobile-close",
650
+ "aria-label": "Close menu",
651
+ onClick: () => Y(!1),
652
+ children: /* @__PURE__ */ e(xe, { className: "h-6 w-6", "aria-hidden": !0 })
653
+ }
654
+ )
655
+ ]
656
+ }
657
+ ),
658
+ /* @__PURE__ */ s(
659
+ "div",
660
+ {
661
+ ref: oe,
662
+ className: d(
663
+ "kuat-header__mobile-panel",
664
+ f !== "main" && "kuat-header__mobile-panel--hidden"
665
+ ),
666
+ "aria-hidden": f !== "main",
667
+ children: [
668
+ /* @__PURE__ */ s("div", { className: "kuat-header__mobile-panel-inner", children: [
669
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-nav", children: T && i.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: i.map((n) => {
670
+ var c;
671
+ return /* @__PURE__ */ s("li", { children: [
672
+ /* @__PURE__ */ e("a", { href: n.url, className: "kuat-header__mobile-link", children: n.label }),
673
+ (c = n.items) != null && c.length ? /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-sub-list", children: n.items.map((m) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: m.url, className: "kuat-header__mobile-sub-link", children: m.label }) }, `${m.label}-${m.url}`)) }) : null
674
+ ] }, `${n.label}-${n.url}`);
675
+ }) }) }) }),
676
+ E || H ? /* @__PURE__ */ s("div", { className: "kuat-header__mobile-sheet-sticky", children: [
677
+ E ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-app-teaser-wrap", children: /* @__PURE__ */ s(
678
+ "button",
679
+ {
680
+ ref: ie,
681
+ type: "button",
682
+ className: "kuat-header__mobile-app-teaser",
683
+ "aria-label": v.teaserDescription ? `${v.teaserTitle}, ${v.teaserDescription}` : v.teaserTitle,
684
+ onClick: () => {
685
+ U("account"), requestAnimationFrame(() => {
686
+ var c;
687
+ const n = (c = W.current) == null ? void 0 : c.querySelector(
688
+ "a"
689
+ );
690
+ n == null || n.focus();
691
+ });
692
+ },
693
+ children: [
694
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-icon shrink-0", "aria-hidden": !0, children: ((he = u == null ? void 0 : u.items[0]) == null ? void 0 : he.icon) ?? /* @__PURE__ */ e(ee, { className: "h-6 w-6", "aria-hidden": !0 }) }),
695
+ /* @__PURE__ */ s("span", { className: "kuat-header__mobile-app-teaser-text", children: [
696
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-title", children: v.teaserTitle }),
697
+ v.teaserDescription ? /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-desc", children: v.teaserDescription }) : null
698
+ ] }),
699
+ /* @__PURE__ */ e(
700
+ $,
701
+ {
702
+ className: "kuat-header__mobile-app-teaser-chevron h-5 w-5 shrink-0",
703
+ "aria-hidden": !0
704
+ }
705
+ )
706
+ ]
707
+ }
708
+ ) }) : null,
709
+ H ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-app-teaser-wrap", children: /* @__PURE__ */ s(
710
+ "button",
711
+ {
712
+ ref: ne,
713
+ type: "button",
714
+ className: "kuat-header__mobile-app-teaser",
715
+ "aria-label": `${w.teaserTitle}, ${w.teaserDescription}`,
716
+ onClick: () => {
717
+ var n;
718
+ (n = p == null ? void 0 : p.onOpen) == null || n.call(p), U("apps"), requestAnimationFrame(() => {
719
+ var m;
720
+ const c = (m = X.current) == null ? void 0 : m.querySelector(
721
+ "a, button"
722
+ );
723
+ c == null || c.focus();
724
+ });
725
+ },
726
+ children: [
727
+ /* @__PURE__ */ e(ke, { className: "kuat-header__mobile-app-teaser-icon h-6 w-6 shrink-0", "aria-hidden": !0 }),
728
+ /* @__PURE__ */ s("span", { className: "kuat-header__mobile-app-teaser-text", children: [
729
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-title", children: w.teaserTitle }),
730
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-desc", children: w.teaserDescription })
731
+ ] }),
732
+ /* @__PURE__ */ e($, { className: "kuat-header__mobile-app-teaser-chevron h-5 w-5 shrink-0", "aria-hidden": !0 })
733
+ ]
734
+ }
735
+ ) }) : null
736
+ ] }) : null
737
+ ] }),
738
+ S && u && !E ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-actions", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: u.items.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s("a", { href: n.href, className: "kuat-header__mobile-link", children: [
739
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-action-icon", children: n.icon ?? /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": !0 }) }),
740
+ n.label
741
+ ] }) }, `${n.label}-${n.href}`)) }) }) : null
742
+ ]
743
+ }
744
+ ),
745
+ H && p ? /* @__PURE__ */ s(
746
+ "div",
747
+ {
748
+ ref: X,
749
+ className: d(
750
+ "kuat-header__mobile-panel kuat-header__mobile-panel--apps",
751
+ f !== "apps" && "kuat-header__mobile-panel--hidden"
752
+ ),
753
+ "aria-hidden": f !== "apps",
754
+ children: [
755
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-apps-heading", children: w.title }),
756
+ /* @__PURE__ */ e("nav", { "aria-label": w.nav, className: "kuat-header__mobile-apps-nav", children: p.loading ? /* @__PURE__ */ s("ul", { className: "kuat-header__mobile-list", children: [
757
+ /* @__PURE__ */ e("li", { className: "kuat-header__app-switcher-skeleton kuat-header__app-switcher-skeleton--mobile", "aria-hidden": !0 }),
758
+ /* @__PURE__ */ e("li", { className: "kuat-header__app-switcher-skeleton kuat-header__app-switcher-skeleton--mobile", "aria-hidden": !0 })
759
+ ] }) : p.apps.length ? /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: p.apps.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
760
+ "a",
761
+ {
762
+ href: n.href,
763
+ className: "kuat-header__mobile-app-link",
764
+ target: p.linkTarget ?? "_self",
765
+ rel: p.linkTarget === "_blank" ? "noopener noreferrer" : void 0,
766
+ onClick: () => {
767
+ var c;
768
+ return (c = p.onSelect) == null ? void 0 : c.call(p, n);
769
+ },
770
+ children: [
771
+ n.icon ? /* @__PURE__ */ e("span", { className: "kuat-header__mobile-action-icon", "aria-hidden": !0, children: n.icon }) : null,
772
+ /* @__PURE__ */ s("span", { className: "kuat-header__mobile-app-link-text", children: [
773
+ /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-link-label", children: n.label }),
774
+ n.description ? /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-link-desc", children: n.description }) : null
775
+ ] })
776
+ ]
777
+ }
778
+ ) }, n.id)) }) : (p.empty ?? "hide") === "message" ? /* @__PURE__ */ e("p", { className: "kuat-header__mobile-apps-empty px-3 text-sm text-muted-foreground", children: Re }) : null })
779
+ ]
780
+ }
781
+ ) : null,
782
+ E && ce ? /* @__PURE__ */ s(
783
+ "div",
784
+ {
785
+ ref: W,
786
+ className: d(
787
+ "kuat-header__mobile-panel kuat-header__mobile-panel--apps kuat-header__mobile-panel--account",
788
+ f !== "account" && "kuat-header__mobile-panel--hidden"
789
+ ),
790
+ "aria-hidden": f !== "account",
791
+ children: [
792
+ /* @__PURE__ */ e("div", { className: "kuat-header__mobile-apps-heading", children: v.title }),
793
+ /* @__PURE__ */ e("nav", { "aria-label": v.nav, className: "kuat-header__mobile-apps-nav", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: ce.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("a", { href: n.href, className: "kuat-header__mobile-app-link", children: /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-link-text", children: /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-link-label", children: n.label }) }) }) }, `${n.label}-${n.href}`)) }) })
794
+ ]
795
+ }
796
+ ) : null
797
+ ]
798
+ }
799
+ ) : k,
800
+ g
206
801
  ]
207
802
  }
208
803
  );
209
804
  }
210
805
  );
211
- Y.displayName = "KuatHeader";
212
- function he(a) {
806
+ ta.displayName = "KuatHeader";
807
+ function Ca(a) {
213
808
  const r = (a == null ? void 0 : a.variant) ?? "default";
214
- return s("kuat-header", `kuat-header--${r}`);
809
+ return d("kuat-header", `kuat-header--${r}`);
215
810
  }
216
- const pe = ["service", "demo"], fe = ["light", "dark"], q = t.forwardRef(
811
+ const va = ["service", "demo"], wa = ["light", "dark"], sa = o.forwardRef(
217
812
  ({
218
813
  className: a,
219
814
  title: r,
220
815
  use: l = "service",
221
- mode: o = "light",
222
- forceDark: d = !1,
816
+ mode: t = "light",
817
+ forceDark: i = !1,
223
818
  ...u
224
- }, i) => {
225
- const f = d ? "dark" : o, p = /* @__PURE__ */ e(
226
- k,
819
+ }, h) => {
820
+ const N = i ? "dark" : t, k = /* @__PURE__ */ e(
821
+ ae,
227
822
  {
228
- className: s(
823
+ className: d(
229
824
  "kuat-logo-lockup__logo",
230
825
  l === "demo" && "kuat-logo-lockup__logo--demo"
231
826
  ),
232
- textColor: f === "dark" ? "white" : "grey"
827
+ textColor: N === "dark" ? "white" : "grey"
233
828
  }
234
829
  );
235
830
  return /* @__PURE__ */ e(
236
831
  "div",
237
832
  {
238
- ref: i,
239
- className: s(
833
+ ref: h,
834
+ className: d(
240
835
  "kuat-logo-lockup",
241
- `kuat-logo-lockup--${f}`,
836
+ `kuat-logo-lockup--${N}`,
242
837
  `kuat-logo-lockup--${l}`,
243
838
  a
244
839
  ),
245
840
  ...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 }),
841
+ children: l === "service" ? /* @__PURE__ */ s("div", { className: "kuat-logo-lockup__service-inner", children: [
842
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: k }),
248
843
  /* @__PURE__ */ e(
249
- M,
844
+ be,
250
845
  {
251
846
  orientation: "vertical",
252
847
  className: "kuat-logo-lockup__separator"
253
848
  }
254
849
  ),
255
850
  /* @__PURE__ */ e("span", { className: "kuat-logo-lockup__service-name", children: r })
256
- ] }) : /* @__PURE__ */ n(S, { children: [
851
+ ] }) : /* @__PURE__ */ s(M, { children: [
257
852
  /* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: r }),
258
- /* @__PURE__ */ n("div", { className: "kuat-logo-lockup__demo-attribution", children: [
853
+ /* @__PURE__ */ s("div", { className: "kuat-logo-lockup__demo-attribution", children: [
259
854
  /* @__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 })
855
+ /* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: k })
261
856
  ] })
262
857
  ] })
263
858
  }
264
859
  );
265
860
  }
266
861
  );
267
- q.displayName = "KuatLogoLockup";
268
- function Ce({ className: a }) {
269
- return /* @__PURE__ */ n(
862
+ sa.displayName = "KuatLogoLockup";
863
+ function Aa({ className: a }) {
864
+ return /* @__PURE__ */ s(
270
865
  "svg",
271
866
  {
272
- className: s("ee-logo-icon", a),
867
+ className: d("ee-logo-icon", a),
273
868
  viewBox: "0 0 143 133",
274
869
  fill: "none",
275
870
  xmlns: "http://www.w3.org/2000/svg",
@@ -307,194 +902,102 @@ function Ce({ className: a }) {
307
902
  }
308
903
  );
309
904
  }
310
- const O = t.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l }, o) => /* @__PURE__ */ e(
905
+ const ve = o.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l }, t) => /* @__PURE__ */ e(
311
906
  "nav",
312
907
  {
313
- ref: o,
908
+ ref: t,
314
909
  "aria-label": r,
315
- className: s("breadcrumb", a),
910
+ className: d("breadcrumb", a),
316
911
  ...l
317
912
  }
318
913
  ));
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) => {
914
+ ve.displayName = "BreadcrumbRoot";
915
+ const we = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("ol", { ref: l, className: d("breadcrumb-list", a), ...r }));
916
+ we.displayName = "BreadcrumbList";
917
+ const re = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("li", { ref: l, className: d("breadcrumb-item", a), ...r }));
918
+ re.displayName = "BreadcrumbItem";
919
+ const Ae = o.forwardRef(({ className: a, render: r, asChild: l = !1, ...t }, i) => {
325
920
  var u;
326
921
  if (r) {
327
- const i = r.props;
328
- return t.cloneElement(r, {
329
- ...o,
330
- ref: d,
331
- className: s("breadcrumb-link", i == null ? void 0 : i.className, a)
922
+ const h = r.props;
923
+ return o.cloneElement(r, {
924
+ ...t,
925
+ ref: i,
926
+ className: d("breadcrumb-link", h == null ? void 0 : h.className, a)
332
927
  });
333
928
  }
334
- if (l && t.Children.only(o.children)) {
335
- const i = t.Children.only(o.children);
336
- return t.cloneElement(i, {
337
- ref: d,
338
- className: s("breadcrumb-link", (u = i.props) == null ? void 0 : u.className, a),
339
- ...o
929
+ if (l && o.Children.only(t.children)) {
930
+ const h = o.Children.only(t.children);
931
+ return o.cloneElement(h, {
932
+ ref: i,
933
+ className: d("breadcrumb-link", (u = h.props) == null ? void 0 : u.className, a),
934
+ ...t
340
935
  });
341
936
  }
342
937
  return /* @__PURE__ */ e(
343
938
  "a",
344
939
  {
345
- ref: d,
346
- className: s("breadcrumb-link", a),
347
- ...o
940
+ ref: i,
941
+ className: d("breadcrumb-link", a),
942
+ ...t
348
943
  }
349
944
  );
350
945
  });
351
- K.displayName = "BreadcrumbLink";
352
- const R = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
946
+ Ae.displayName = "BreadcrumbLink";
947
+ const le = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
353
948
  "span",
354
949
  {
355
950
  ref: l,
356
951
  role: "link",
357
952
  "aria-disabled": "true",
358
953
  "aria-current": "page",
359
- className: s("breadcrumb-page", a),
954
+ className: d("breadcrumb-page", a),
360
955
  ...r
361
956
  }
362
957
  ));
363
- R.displayName = "BreadcrumbPage";
364
- const A = t.forwardRef(({ className: a, children: r, ...l }, o) => /* @__PURE__ */ e(
958
+ le.displayName = "BreadcrumbPage";
959
+ const te = o.forwardRef(({ className: a, children: r, ...l }, t) => /* @__PURE__ */ e(
365
960
  "span",
366
961
  {
367
- ref: o,
962
+ ref: t,
368
963
  role: "presentation",
369
964
  "aria-hidden": "true",
370
- className: s("breadcrumb-separator", a),
965
+ className: d("breadcrumb-separator", a),
371
966
  ...l,
372
- children: r ?? /* @__PURE__ */ e(B, { className: "breadcrumb-separator__icon" })
967
+ children: r ?? /* @__PURE__ */ e($, { className: "breadcrumb-separator__icon" })
373
968
  }
374
969
  ));
375
- A.displayName = "BreadcrumbSeparator";
376
- const F = t.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
970
+ te.displayName = "BreadcrumbSeparator";
971
+ const Ee = o.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
377
972
  "span",
378
973
  {
379
974
  ref: l,
380
975
  role: "presentation",
381
976
  "aria-hidden": "true",
382
- className: s("breadcrumb-ellipsis", a),
977
+ className: d("breadcrumb-ellipsis", a),
383
978
  ...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
- ]
979
+ children: /* @__PURE__ */ e(Me, { className: "breadcrumb-ellipsis__icon" })
402
980
  }
403
981
  ));
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
- ...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
477
- }
478
- ));
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(() => {
982
+ Ee.displayName = "BreadcrumbEllipsis";
983
+ const na = 640;
984
+ function ia(a = na) {
985
+ const [r, l] = o.useState(!1);
986
+ return o.useEffect(() => {
484
987
  if (typeof window > "u" || typeof window.matchMedia != "function")
485
988
  return;
486
- const o = window.matchMedia(`(max-width: ${a}px)`), d = () => l(o.matches);
487
- return d(), o.addEventListener("change", d), () => o.removeEventListener("change", d);
989
+ const t = window.matchMedia(`(max-width: ${a}px)`), i = () => l(t.matches);
990
+ return i(), t.addEventListener("change", i), () => t.removeEventListener("change", i);
488
991
  }, [a]), r;
489
992
  }
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(
993
+ const oa = ({ href: a, children: r, className: l }) => /* @__PURE__ */ e("a", { href: a, className: l, children: r });
994
+ function da(a, r, l, t) {
995
+ return a.children && a.children.length > 0 ? /* @__PURE__ */ s(B, { children: [
996
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ s(
494
997
  "button",
495
998
  {
496
999
  type: "button",
497
- className: s(
1000
+ className: d(
498
1001
  "breadcrumb-dropdown-trigger",
499
1002
  "inline-flex items-center gap-1 font-medium"
500
1003
  ),
@@ -502,7 +1005,7 @@ function te(a, r, l, o) {
502
1005
  children: [
503
1006
  a.label,
504
1007
  /* @__PURE__ */ e(
505
- X,
1008
+ se,
506
1009
  {
507
1010
  className: "breadcrumb-dropdown-trigger__icon",
508
1011
  "aria-hidden": !0
@@ -512,180 +1015,192 @@ function te(a, r, l, o) {
512
1015
  ]
513
1016
  }
514
1017
  ) }),
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,
1018
+ /* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e(G, { children: a.children.map((u, h) => /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e("a", { href: u.href, children: u.label }) }, h)) }) })
1019
+ ] }) : r ? /* @__PURE__ */ e(le, { children: a.label }) : a.href ? /* @__PURE__ */ e(
1020
+ Ae,
518
1021
  {
519
1022
  render: /* @__PURE__ */ e(l, { href: a.href, children: a.label })
520
1023
  }
521
- ) : /* @__PURE__ */ e(R, { children: a.label });
1024
+ ) : /* @__PURE__ */ e(le, { children: a.label });
522
1025
  }
523
- function ne({
1026
+ function ca({
524
1027
  items: a,
525
- linkComponent: r = oe,
1028
+ linkComponent: r = oa,
526
1029
  separator: l,
527
- className: o,
528
- "aria-label": d = "Breadcrumb",
1030
+ className: t,
1031
+ "aria-label": i = "Breadcrumb",
529
1032
  ...u
530
- }, i) {
531
- const f = le();
1033
+ }, h) {
1034
+ const N = ia();
532
1035
  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 }))
1036
+ const k = N && a.length > 2, _ = k ? [a[0], a[a.length - 1]] : a, y = (k ? a.slice(1, -1) : []).flatMap(
1037
+ (g) => g.href ? [{ label: g.label, href: g.href }] : (g.children ?? []).map((C) => ({ label: C.label, href: C.href }))
535
1038
  );
536
1039
  return /* @__PURE__ */ e(
537
- O,
1040
+ ve,
538
1041
  {
539
- ref: i,
540
- "aria-label": d,
541
- className: o,
1042
+ ref: h,
1043
+ "aria-label": i,
1044
+ className: t,
542
1045
  ...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(
1046
+ children: /* @__PURE__ */ e(we, { children: _.map((g, C) => {
1047
+ const V = k ? C === 0 ? 0 : a.length - 1 : C, E = C === _.length - 1 && !g.href && !g.children;
1048
+ return /* @__PURE__ */ s(o.Fragment, { children: [
1049
+ C > 0 && /* @__PURE__ */ e(te, { children: l }),
1050
+ k && C === 1 && y.length > 0 && /* @__PURE__ */ s(M, { children: [
1051
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ s(B, { children: [
1052
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ s(
550
1053
  "button",
551
1054
  {
552
1055
  type: "button",
553
- className: s(
1056
+ className: d(
554
1057
  "breadcrumb-dropdown-trigger",
555
1058
  "breadcrumb-ellipsis-trigger",
556
1059
  "inline-flex items-center"
557
1060
  ),
558
1061
  "aria-haspopup": "menu",
559
1062
  children: [
560
- /* @__PURE__ */ e(F, {}),
1063
+ /* @__PURE__ */ e(Ee, {}),
561
1064
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Show more pages" })
562
1065
  ]
563
1066
  }
564
1067
  ) }),
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)) }) })
1068
+ /* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e(G, { children: y.map((S, w) => /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e("a", { href: S.href, children: S.label }) }, w)) }) })
566
1069
  ] }) }),
567
- /* @__PURE__ */ e(A, { children: l })
1070
+ /* @__PURE__ */ e(te, { children: l })
568
1071
  ] }),
569
- /* @__PURE__ */ e(E, { children: te(m, _, r) })
570
- ] }, L);
1072
+ /* @__PURE__ */ e(re, { children: da(g, E, r) })
1073
+ ] }, V);
571
1074
  }) })
572
1075
  }
573
1076
  );
574
1077
  }
575
- const se = t.forwardRef(
576
- ne
1078
+ const ua = o.forwardRef(
1079
+ ca
577
1080
  );
578
- se.displayName = "Breadcrumb";
1081
+ ua.displayName = "Breadcrumb";
579
1082
  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,
686
- s as cn,
687
- he as kuatHeaderVariants,
688
- _r as toast,
689
- ve as useCarousel,
690
- Be as useKuatCarousel
1083
+ dr as Accordion,
1084
+ cr as AccordionContent,
1085
+ ur as AccordionItem,
1086
+ hr as AccordionTrigger,
1087
+ pr as AlertDialog,
1088
+ _r as AlertDialogAction,
1089
+ br as AlertDialogCancel,
1090
+ kr as AlertDialogContent,
1091
+ fr as AlertDialogDescription,
1092
+ Nr as AlertDialogFooter,
1093
+ gr as AlertDialogHeader,
1094
+ Cr as AlertDialogOverlay,
1095
+ vr as AlertDialogPortal,
1096
+ wr as AlertDialogTitle,
1097
+ Ar as AlertDialogTrigger,
1098
+ Lr as BADGE_ROUNDNESS,
1099
+ Sr as BADGE_VARIANTS,
1100
+ Va as BUTTON_COLORS,
1101
+ Sa as BUTTON_GROUP_ORIENTATIONS,
1102
+ Ia as BUTTON_SIZES,
1103
+ xa as BUTTON_VARIANTS,
1104
+ Hr as Badge,
1105
+ ua as Breadcrumb,
1106
+ Ee as BreadcrumbEllipsis,
1107
+ re as BreadcrumbItem,
1108
+ Ae as BreadcrumbLink,
1109
+ we as BreadcrumbList,
1110
+ le as BreadcrumbPage,
1111
+ ve as BreadcrumbRoot,
1112
+ te as BreadcrumbSeparator,
1113
+ J as Button,
1114
+ Ha as ButtonGroup,
1115
+ Ta as ButtonGroupSeparator,
1116
+ ya as ButtonGroupText,
1117
+ dl as CHECKBOX_FIELD_APPEARANCES,
1118
+ cl as CHECKBOX_FIELD_LAYOUTS,
1119
+ Ga as Carousel,
1120
+ qa as CarouselContent,
1121
+ ja as CarouselItem,
1122
+ Ya as CarouselNext,
1123
+ za as CarouselPrevious,
1124
+ ul as Checkbox,
1125
+ hl as CheckboxField,
1126
+ fa as ContentCard,
1127
+ ae as EELogo,
1128
+ Aa as EELogoIcon,
1129
+ Br as FIELD_ORIENTATIONS,
1130
+ Or as Field,
1131
+ Pr as FieldContent,
1132
+ Ur as FieldDescription,
1133
+ Fr as FieldError,
1134
+ Zr as FieldGroup,
1135
+ Kr as FieldLabel,
1136
+ $r as FieldLegend,
1137
+ Gr as FieldSeparator,
1138
+ qr as FieldSet,
1139
+ jr as FieldTitle,
1140
+ Oa as ICON_BUTTON_ROUNDNESS,
1141
+ Pa as ICON_BUTTON_SIZES,
1142
+ Ua as ICON_BUTTON_SIZE_LG_ALIAS,
1143
+ Fa as ICON_BUTTON_SIZE_SM_ALIAS,
1144
+ Za as ICON_BUTTON_VARIANT_DEFAULT_ALIAS,
1145
+ Ir as INPUT_SIZES,
1146
+ Be as IconButton,
1147
+ xr as Input,
1148
+ ga as KUAT_HEADER_APP_SWITCHER_EMPTY,
1149
+ Na as KUAT_HEADER_LOCKUP_VARIANTS,
1150
+ wa as KUAT_LOGO_LOCKUP_MODE,
1151
+ va as KUAT_LOGO_LOCKUP_USE,
1152
+ sr as KUAT_RADIAL_PROGRESS_COLORS,
1153
+ nr as KUAT_RADIAL_PROGRESS_SIZES,
1154
+ Ja as KuatCarousel,
1155
+ Qa as KuatCarouselContent,
1156
+ er as KuatCarouselItem,
1157
+ ar as KuatCarouselNext,
1158
+ rr as KuatCarouselPrevious,
1159
+ ta as KuatHeader,
1160
+ sa as KuatLogoLockup,
1161
+ ir as KuatRadialProgress,
1162
+ zr as KuatSelect,
1163
+ pl as RADIO_FIELD_APPEARANCES,
1164
+ _l as RADIO_FIELD_LAYOUTS,
1165
+ bl as RadioField,
1166
+ kl as RadioGroup,
1167
+ fl as RadioGroupItem,
1168
+ Xr as SELECT_LINES,
1169
+ Wr as SELECT_SIZES,
1170
+ Dl as SONNER_POSITIONS,
1171
+ gl as SWITCH_FIELD_APPEARANCES,
1172
+ Cl as SWITCH_FIELD_LAYOUTS,
1173
+ Jr as Select,
1174
+ Qr as SelectContent,
1175
+ el as SelectGroup,
1176
+ al as SelectItem,
1177
+ rl as SelectLabel,
1178
+ ll as SelectScrollDownButton,
1179
+ tl as SelectScrollUpButton,
1180
+ sl as SelectSeparator,
1181
+ nl as SelectTrigger,
1182
+ il as SelectValue,
1183
+ Rl as Sonner,
1184
+ Vl as SonnerContent,
1185
+ vl as Switch,
1186
+ wl as SwitchField,
1187
+ Dr as TEXTAREA_RESIZE,
1188
+ El as TOGGLE_SIZES,
1189
+ Ll as TOGGLE_SKINS,
1190
+ Rr as Textarea,
1191
+ Sl as Toggle,
1192
+ Hl as ToggleGroup,
1193
+ Tl as ToggleGroupItem,
1194
+ Tr as badgeVariants,
1195
+ Da as buttonGroupVariants,
1196
+ Ma as buttonVariants,
1197
+ d as cn,
1198
+ Ka as iconButtonVariants,
1199
+ Ca as kuatHeaderVariants,
1200
+ qe as resolveAppSwitcherLabels,
1201
+ We as resolveHeaderLockup,
1202
+ Ge as shouldShowAppSwitcher,
1203
+ Il as toast,
1204
+ Xa as useCarousel,
1205
+ lr as useKuatCarousel
691
1206
  };