@equal-experts/kuat-react 0.15.0-beta.1 → 0.15.0-beta.2
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/agent-docs/AGENTS.md +1 -1
- package/agent-docs/README.md +1 -1
- package/agent-docs/components/components.manifest.json +24 -0
- package/agent-docs/components/counter-badge.md +57 -0
- package/agent-docs/components/status-badge.md +68 -0
- package/agent-docs/components/tag-group.md +53 -0
- package/agent-docs/components/tag.md +72 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-decision-tree.md +4 -0
- package/agent-docs/external/kuat-agent-rules/reference/media-types/web-product/component-registry.md +7 -0
- package/agent-docs/manifest.json +3 -3
- package/agent-docs/rules/LOADING-consumer.md +1 -1
- package/dist/badge-BFeIqSCP.js +25 -0
- package/dist/badge.js +1 -1
- package/dist/components/ui/badge/badge.d.ts +8 -1
- package/dist/components/ui/counter-badge/counter-badge.d.ts +15 -0
- package/dist/components/ui/counter-badge/index.d.ts +2 -0
- package/dist/components/ui/status-badge/index.d.ts +2 -0
- package/dist/components/ui/status-badge/status-badge.d.ts +16 -0
- package/dist/components/ui/tag/index.d.ts +2 -0
- package/dist/components/ui/tag/tag.d.ts +25 -0
- package/dist/components/ui/tag-group/index.d.ts +4 -0
- package/dist/components/ui/tag-group/tag-group-context.d.ts +8 -0
- package/dist/components/ui/tag-group/tag-group.d.ts +7 -0
- package/dist/counter-badge-JLm2U18L.js +27 -0
- package/dist/counter-badge.d.ts +3 -0
- package/dist/counter-badge.js +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +219 -200
- package/dist/status-badge-Cqb6TNYB.js +43 -0
- package/dist/status-badge.d.ts +3 -0
- package/dist/status-badge.js +9 -0
- package/dist/style.css +1 -1
- package/dist/tag-CkE_Xgvs.js +89 -0
- package/dist/tag-group-context-D_b_R9lC.js +9 -0
- package/dist/tag-group-tBUBPRjX.js +26 -0
- package/dist/tag-group.d.ts +3 -0
- package/dist/tag-group.js +9 -0
- package/dist/tag.d.ts +3 -0
- package/dist/tag.js +9 -0
- package/package.json +18 -1
- package/dist/badge-BZgdEQSD.js +0 -22
package/dist/index.js
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
import { c as d } from "./utils-DLUjLwnh.js";
|
|
2
2
|
import { S as be } from "./button-group-enIzvVeN.js";
|
|
3
|
-
import { d as
|
|
3
|
+
import { d as Ta, B as La, a as Ha, b as ya, c as Da } from "./button-group-enIzvVeN.js";
|
|
4
4
|
import { jsxs as s, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
5
5
|
import * as i from "react";
|
|
6
|
-
import { a as
|
|
7
|
-
import { ChevronRight as
|
|
6
|
+
import { a as Ra, C as Ia } from "./callout-DFmAtUwR.js";
|
|
7
|
+
import { ChevronRight as K, Menu as Re, ChevronLeft as Ie, X as xe, User as ee, LayoutGrid as fe, ChevronDown as se, MoreHorizontal as Me } from "lucide-react";
|
|
8
8
|
import { B as J } from "./button-C0a1gFoV.js";
|
|
9
9
|
import { d as Ma, c as Ba, a as Oa, b as Pa } from "./button-C0a1gFoV.js";
|
|
10
10
|
import { I as Be } from "./icon-button-B5hCoK1b.js";
|
|
11
|
-
import { b as
|
|
11
|
+
import { b as Ga, a as Za, e as Fa, d as Ka, c as $a, i as qa } from "./icon-button-B5hCoK1b.js";
|
|
12
12
|
import * as b from "@radix-ui/react-dropdown-menu";
|
|
13
13
|
import { C as ja, a as za, b as Xa, d as Wa, c as Ja, u as Qa } from "./carousel-B_FcJvc1.js";
|
|
14
14
|
import { K as ar, a as rr, b as lr, d as tr, c as sr, u as nr } from "./kuat-carousel-DUR-L0dP.js";
|
|
15
15
|
import { b as ir, a as dr, K as cr } from "./kuat-radial-progress-YcpYzHjk.js";
|
|
16
16
|
import { A as hr, c as mr, a as pr, b as _r } from "./accordion-CUlVo4uo.js";
|
|
17
|
-
import { A as
|
|
18
|
-
import { c as
|
|
19
|
-
import {
|
|
20
|
-
import { a as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
17
|
+
import { A as fr, i as kr, j as Nr, d as gr, h as Cr, f as vr, e as Ar, b as wr, a as Er, g as Sr, c as Tr } from "./alert-dialog-yHaNWLGX.js";
|
|
18
|
+
import { c as Hr, a as yr, B as Dr, b as Vr } from "./badge-BFeIqSCP.js";
|
|
19
|
+
import { b as Ir, a as xr, S as Mr, s as Br } from "./status-badge-Cqb6TNYB.js";
|
|
20
|
+
import { a as Pr, b as Ur, T as Gr, t as Zr } from "./tag-CkE_Xgvs.js";
|
|
21
|
+
import { T as Kr } from "./tag-group-tBUBPRjX.js";
|
|
22
|
+
import { T as qr, u as Yr } from "./tag-group-context-D_b_R9lC.js";
|
|
23
|
+
import { a as zr, C as Xr, c as Wr } from "./counter-badge-JLm2U18L.js";
|
|
24
|
+
import { a as Qr, T as el } from "./textarea-B0irOcAM.js";
|
|
25
|
+
import { a as rl, I as ll } from "./input-DmkHok33.js";
|
|
26
|
+
import { j as sl, F as nl, a as ol, b as il, c as dl, d as cl, e as ul, f as hl, g as ml, h as pl, i as _l } from "./field-CpIBifwy.js";
|
|
27
|
+
import { K as fl, j as kl, k as Nl, S as gl, a as Cl, b as vl, c as Al, d as wl, e as El, f as Sl, g as Tl, h as Ll, i as Hl } from "./select-CkwcI4vN.js";
|
|
28
|
+
import { b as Dl, c as Vl, C as Rl, a as Il } from "./checkbox-field-7OmstdY0.js";
|
|
29
|
+
import { c as Ml, d as Bl, b as Ol, R as Pl, a as Ul } from "./radio-field-BD77QCpO.js";
|
|
30
|
+
import { b as Zl, c as Fl, S as Kl, a as $l } from "./switch-field-xn_CPJH7.js";
|
|
31
|
+
import { a as Yl, b as jl, T as zl, c as Xl, d as Wl } from "./constants-Cfitvm6L.js";
|
|
32
|
+
import { a as Ql, S as et, b as at, t as rt } from "./sonner-content-CXBD6jNn.js";
|
|
33
|
+
const ka = i.forwardRef(function({
|
|
29
34
|
className: r,
|
|
30
35
|
asChild: l = !1,
|
|
31
36
|
width: t = "default",
|
|
@@ -33,18 +38,18 @@ const fa = i.forwardRef(function({
|
|
|
33
38
|
imageSrc: u = null,
|
|
34
39
|
imageAlt: h = "",
|
|
35
40
|
contentText: N = null,
|
|
36
|
-
headerAccessory:
|
|
41
|
+
headerAccessory: f = null,
|
|
37
42
|
customContent: _ = null,
|
|
38
43
|
footer: p = null,
|
|
39
44
|
badge: y,
|
|
40
45
|
category: g,
|
|
41
46
|
title: C,
|
|
42
|
-
titleHeadingLevel:
|
|
47
|
+
titleHeadingLevel: R = 3,
|
|
43
48
|
children: v,
|
|
44
49
|
style: E,
|
|
45
|
-
...
|
|
46
|
-
},
|
|
47
|
-
const
|
|
50
|
+
...T
|
|
51
|
+
}, A) {
|
|
52
|
+
const L = `h${R}`, S = t === "fluid" ? "content-card--width-fluid" : t === "custom" ? "content-card--width-custom" : "content-card--width-default", H = t === "custom" ? {
|
|
48
53
|
...E ?? {},
|
|
49
54
|
"--content-card-max-width": typeof o == "number" ? `${o}px` : o ?? "373px"
|
|
50
55
|
} : E, Y = /* @__PURE__ */ s(M, { children: [
|
|
@@ -56,14 +61,14 @@ const fa = i.forwardRef(function({
|
|
|
56
61
|
/* @__PURE__ */ e("div", { "data-slot": "badge", className: "content-card__badge", children: y }),
|
|
57
62
|
/* @__PURE__ */ e("p", { className: "content-card__category", children: g })
|
|
58
63
|
] }),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(L, { className: "content-card__title", children: C })
|
|
60
65
|
] }),
|
|
61
66
|
/* @__PURE__ */ e(
|
|
62
67
|
"div",
|
|
63
68
|
{
|
|
64
69
|
"data-slot": "header-accessory",
|
|
65
70
|
className: "content-card__header-accessory",
|
|
66
|
-
children:
|
|
71
|
+
children: f ?? null
|
|
67
72
|
}
|
|
68
73
|
)
|
|
69
74
|
] }),
|
|
@@ -80,14 +85,14 @@ const fa = i.forwardRef(function({
|
|
|
80
85
|
return i.cloneElement(
|
|
81
86
|
D,
|
|
82
87
|
{
|
|
83
|
-
...
|
|
84
|
-
ref:
|
|
88
|
+
...T,
|
|
89
|
+
ref: A,
|
|
85
90
|
"data-slot": "content-card",
|
|
86
|
-
className: d("content-card",
|
|
91
|
+
className: d("content-card", S, D.props.className, r),
|
|
87
92
|
style: t === "custom" ? {
|
|
88
93
|
...D.props.style ?? {},
|
|
89
|
-
...
|
|
90
|
-
} :
|
|
94
|
+
...H
|
|
95
|
+
} : H ?? D.props.style
|
|
91
96
|
},
|
|
92
97
|
Y
|
|
93
98
|
);
|
|
@@ -95,15 +100,15 @@ const fa = i.forwardRef(function({
|
|
|
95
100
|
return /* @__PURE__ */ e(
|
|
96
101
|
"div",
|
|
97
102
|
{
|
|
98
|
-
ref:
|
|
103
|
+
ref: A,
|
|
99
104
|
"data-slot": "content-card",
|
|
100
|
-
className: d("content-card",
|
|
101
|
-
style:
|
|
102
|
-
...
|
|
105
|
+
className: d("content-card", S, r),
|
|
106
|
+
style: H,
|
|
107
|
+
...T,
|
|
103
108
|
children: Y
|
|
104
109
|
}
|
|
105
110
|
);
|
|
106
|
-
}), B = b.Root, O = b.Trigger,
|
|
111
|
+
}), B = b.Root, O = b.Trigger, $ = b.Group, Oe = i.forwardRef(({ className: a, inset: r, children: l, ...t }, o) => /* @__PURE__ */ s(
|
|
107
112
|
b.SubTrigger,
|
|
108
113
|
{
|
|
109
114
|
ref: o,
|
|
@@ -115,7 +120,7 @@ const fa = i.forwardRef(function({
|
|
|
115
120
|
...t,
|
|
116
121
|
children: [
|
|
117
122
|
l,
|
|
118
|
-
/* @__PURE__ */ e(
|
|
123
|
+
/* @__PURE__ */ e(K, { className: "dropdown-menu-sub-trigger__icon" })
|
|
119
124
|
]
|
|
120
125
|
}
|
|
121
126
|
));
|
|
@@ -163,7 +168,7 @@ const Ue = i.forwardRef(({ className: a, children: r, checked: l, ...t }, o) =>
|
|
|
163
168
|
}
|
|
164
169
|
));
|
|
165
170
|
Ue.displayName = b.CheckboxItem.displayName;
|
|
166
|
-
const
|
|
171
|
+
const Ge = i.forwardRef(({ className: a, children: r, ...l }, t) => /* @__PURE__ */ e(
|
|
167
172
|
b.RadioItem,
|
|
168
173
|
{
|
|
169
174
|
ref: t,
|
|
@@ -172,7 +177,7 @@ const Fe = i.forwardRef(({ className: a, children: r, ...l }, t) => /* @__PURE__
|
|
|
172
177
|
children: r
|
|
173
178
|
}
|
|
174
179
|
));
|
|
175
|
-
|
|
180
|
+
Ge.displayName = b.RadioItem.displayName;
|
|
176
181
|
const Ze = i.forwardRef(({ className: a, inset: r, ...l }, t) => /* @__PURE__ */ e(
|
|
177
182
|
b.Label,
|
|
178
183
|
{
|
|
@@ -186,7 +191,7 @@ const Ze = i.forwardRef(({ className: a, inset: r, ...l }, t) => /* @__PURE__ */
|
|
|
186
191
|
}
|
|
187
192
|
));
|
|
188
193
|
Ze.displayName = b.Label.displayName;
|
|
189
|
-
const
|
|
194
|
+
const Fe = i.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
|
|
190
195
|
b.Separator,
|
|
191
196
|
{
|
|
192
197
|
ref: l,
|
|
@@ -194,7 +199,7 @@ const Ke = i.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
|
|
|
194
199
|
...r
|
|
195
200
|
}
|
|
196
201
|
));
|
|
197
|
-
|
|
202
|
+
Fe.displayName = b.Separator.displayName;
|
|
198
203
|
const x = {
|
|
199
204
|
trigger: "Equal Experts apps",
|
|
200
205
|
nav: "Equal Experts applications",
|
|
@@ -205,8 +210,8 @@ const x = {
|
|
|
205
210
|
teaserTitle: "Account",
|
|
206
211
|
nav: "Account",
|
|
207
212
|
title: "Account"
|
|
208
|
-
},
|
|
209
|
-
function
|
|
213
|
+
}, Ke = "No applications are available right now.";
|
|
214
|
+
function $e(a) {
|
|
210
215
|
return a ? a.loading || a.apps.length > 0 ? !0 : a.empty === "message" : !1;
|
|
211
216
|
}
|
|
212
217
|
function qe(a) {
|
|
@@ -219,8 +224,8 @@ function qe(a) {
|
|
|
219
224
|
teaserDescription: ((u = a == null ? void 0 : a.labels) == null ? void 0 : u.teaserDescription) ?? x.teaserDescription
|
|
220
225
|
};
|
|
221
226
|
}
|
|
222
|
-
function
|
|
223
|
-
return (a == null ? void 0 : a.emptyMessage) ??
|
|
227
|
+
function ke(a) {
|
|
228
|
+
return (a == null ? void 0 : a.emptyMessage) ?? Ke;
|
|
224
229
|
}
|
|
225
230
|
function Ye(a) {
|
|
226
231
|
var r, l;
|
|
@@ -242,8 +247,8 @@ function ze(a) {
|
|
|
242
247
|
return ((r = a == null ? void 0 : a.items) == null ? void 0 : r.length) === 1 && Ne(a).length > 0;
|
|
243
248
|
}
|
|
244
249
|
function Xe(a) {
|
|
245
|
-
var
|
|
246
|
-
const r = a == null ? void 0 : a.labels, l = a == null ? void 0 : a.mobile, t = (_ = (
|
|
250
|
+
var f, _;
|
|
251
|
+
const r = a == null ? void 0 : a.labels, l = a == null ? void 0 : a.mobile, t = (_ = (f = a == null ? void 0 : a.items) == null ? void 0 : f[0]) == null ? void 0 : _.label, o = (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;
|
|
247
252
|
return { teaserTitle: o, teaserDescription: u, nav: N, title: h };
|
|
248
253
|
}
|
|
249
254
|
function We(a) {
|
|
@@ -315,7 +320,7 @@ function ge({
|
|
|
315
320
|
);
|
|
316
321
|
}
|
|
317
322
|
function Ce({ items: a }) {
|
|
318
|
-
return /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(
|
|
323
|
+
return /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e($, { children: a.map((r) => /* @__PURE__ */ e(P, { asChild: !0, children: Qe(r, "kuat-header__dropdown-link") }, `${r.label}-${r.url}`)) }) });
|
|
319
324
|
}
|
|
320
325
|
function aa({ items: a, variant: r }) {
|
|
321
326
|
return /* @__PURE__ */ e("div", { className: "kuat-header__nav-items", children: a.map((l) => {
|
|
@@ -397,12 +402,12 @@ function la({
|
|
|
397
402
|
config: a,
|
|
398
403
|
labels: r
|
|
399
404
|
}) {
|
|
400
|
-
const l =
|
|
405
|
+
const l = ke(a), t = a.apps, o = a.loading, u = a.empty ?? "hide", h = a.linkTarget, N = a.onSelect, f = a.onOpen;
|
|
401
406
|
return /* @__PURE__ */ s(
|
|
402
407
|
B,
|
|
403
408
|
{
|
|
404
409
|
onOpenChange: (_) => {
|
|
405
|
-
_ && (
|
|
410
|
+
_ && (f == null || f());
|
|
406
411
|
},
|
|
407
412
|
children: [
|
|
408
413
|
/* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ e(
|
|
@@ -416,7 +421,7 @@ function la({
|
|
|
416
421
|
"aria-label": r.trigger,
|
|
417
422
|
"aria-haspopup": "menu",
|
|
418
423
|
"aria-controls": _e,
|
|
419
|
-
children: /* @__PURE__ */ e(
|
|
424
|
+
children: /* @__PURE__ */ e(fe, { className: "h-5 w-5", "aria-hidden": !0 })
|
|
420
425
|
}
|
|
421
426
|
) }),
|
|
422
427
|
/* @__PURE__ */ e(
|
|
@@ -425,7 +430,7 @@ function la({
|
|
|
425
430
|
id: _e,
|
|
426
431
|
align: "end",
|
|
427
432
|
className: "kuat-header__app-switcher-panel",
|
|
428
|
-
children: /* @__PURE__ */ e(
|
|
433
|
+
children: /* @__PURE__ */ e($, { className: "kuat-header__app-switcher-scroll", children: o ? /* @__PURE__ */ s(M, { children: [
|
|
429
434
|
/* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 }),
|
|
430
435
|
/* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 }),
|
|
431
436
|
/* @__PURE__ */ e("div", { className: "kuat-header__app-switcher-skeleton", "aria-hidden": !0 })
|
|
@@ -462,56 +467,56 @@ const ta = i.forwardRef(
|
|
|
462
467
|
account: u,
|
|
463
468
|
accountMarkup: h,
|
|
464
469
|
mobileMenuTrigger: N,
|
|
465
|
-
mobileMenu:
|
|
470
|
+
mobileMenu: f,
|
|
466
471
|
lockup: _,
|
|
467
472
|
appSwitcher: p,
|
|
468
473
|
mobileMenuAriaLabel: y,
|
|
469
474
|
children: g,
|
|
470
475
|
...C
|
|
471
|
-
},
|
|
476
|
+
}, R) => {
|
|
472
477
|
var ue, he;
|
|
473
|
-
const v = Xe(u), E = Ye(u),
|
|
478
|
+
const v = Xe(u), E = Ye(u), T = je(u), A = qe(p), L = $e(p), S = We({ logo: l, lockup: _ }), H = ea(o), I = !f && (H || T || !!h || L || E), D = Je({
|
|
474
479
|
mobileMenuAriaLabel: y,
|
|
475
|
-
showAppSwitcher:
|
|
476
|
-
hasStructuredNavigation:
|
|
480
|
+
showAppSwitcher: L,
|
|
481
|
+
hasStructuredNavigation: H,
|
|
477
482
|
hasAccountMobileTier: E
|
|
478
|
-
}), [
|
|
483
|
+
}), [w, j] = i.useState(!1), [k, U] = i.useState("main"), z = i.useRef(null), G = i.useRef(null), ne = i.useRef(null), oe = i.useRef(null), ie = i.useRef(null), X = i.useRef(null), W = i.useRef(null);
|
|
479
484
|
i.useEffect(() => {
|
|
480
|
-
|
|
481
|
-
}, [
|
|
482
|
-
if (!
|
|
485
|
+
w || U("main");
|
|
486
|
+
}, [w]), i.useEffect(() => {
|
|
487
|
+
if (!w)
|
|
483
488
|
return;
|
|
484
489
|
const n = document.body, c = n.style.overflow;
|
|
485
490
|
return n.style.overflow = "hidden", () => {
|
|
486
491
|
n.style.overflow = c, z.current && z.current.focus();
|
|
487
492
|
};
|
|
488
|
-
}, [
|
|
489
|
-
if (!
|
|
493
|
+
}, [w]), i.useEffect(() => {
|
|
494
|
+
if (!w)
|
|
490
495
|
return;
|
|
491
496
|
const n = window.requestAnimationFrame(() => {
|
|
492
497
|
var m;
|
|
493
|
-
const c =
|
|
498
|
+
const c = G.current;
|
|
494
499
|
(m = c == null ? void 0 : c.querySelector("button, a, [tabindex]:not([tabindex='-1'])")) == null || m.focus();
|
|
495
500
|
});
|
|
496
501
|
return () => window.cancelAnimationFrame(n);
|
|
497
|
-
}, [
|
|
502
|
+
}, [w, k]), i.useEffect(() => {
|
|
498
503
|
const n = ie.current, c = X.current, m = W.current;
|
|
499
|
-
if (!
|
|
504
|
+
if (!w) {
|
|
500
505
|
n == null || n.removeAttribute("inert"), c == null || c.removeAttribute("inert"), m == null || m.removeAttribute("inert");
|
|
501
506
|
return;
|
|
502
507
|
}
|
|
503
|
-
n && (
|
|
504
|
-
}, [
|
|
505
|
-
if (!
|
|
508
|
+
n && (k !== "main" ? n.setAttribute("inert", "") : n.removeAttribute("inert")), c && (k !== "apps" ? c.setAttribute("inert", "") : c.removeAttribute("inert")), m && (k !== "account" ? m.setAttribute("inert", "") : m.removeAttribute("inert"));
|
|
509
|
+
}, [w, k]), i.useEffect(() => {
|
|
510
|
+
if (!w)
|
|
506
511
|
return;
|
|
507
512
|
const n = (c) => {
|
|
508
513
|
if (c.key === "Escape") {
|
|
509
514
|
c.preventDefault(), j(!1);
|
|
510
515
|
return;
|
|
511
516
|
}
|
|
512
|
-
if (c.key !== "Tab" || !
|
|
517
|
+
if (c.key !== "Tab" || !G.current)
|
|
513
518
|
return;
|
|
514
|
-
const m =
|
|
519
|
+
const m = G.current.querySelectorAll(
|
|
515
520
|
"button, a, [tabindex]:not([tabindex='-1'])"
|
|
516
521
|
);
|
|
517
522
|
if (!m.length)
|
|
@@ -522,18 +527,18 @@ const ta = i.forwardRef(
|
|
|
522
527
|
return document.addEventListener("keydown", n), () => {
|
|
523
528
|
document.removeEventListener("keydown", n);
|
|
524
529
|
};
|
|
525
|
-
}, [
|
|
526
|
-
const de = r === "bold" ? "white" : "grey",
|
|
530
|
+
}, [w, k]);
|
|
531
|
+
const de = r === "bold" ? "white" : "grey", Se = S.mode === "builtin" ? /* @__PURE__ */ e(
|
|
527
532
|
ae,
|
|
528
533
|
{
|
|
529
534
|
className: "ee-logo--desktop shrink-0",
|
|
530
535
|
textColor: de
|
|
531
536
|
}
|
|
532
|
-
) : null,
|
|
537
|
+
) : null, Te = S.mode === "builtin" ? /* @__PURE__ */ e(ae, { className: "ee-logo--mobile shrink-0", textColor: de }) : null, Z = S.mode === "custom" ? l : S.mode === "builtin" ? Se : null, F = S.mode === "custom" ? l : S.mode === "builtin" ? Te : null, V = S.lockupVariant, Le = !!Z && V === "default", He = !!F && V === "default", ye = !!Z && V === "demo", De = !!F && V === "demo", Ve = ke(p), ce = (ue = u == null ? void 0 : u.mobile) == null ? void 0 : ue.items;
|
|
533
538
|
return /* @__PURE__ */ s(
|
|
534
539
|
"header",
|
|
535
540
|
{
|
|
536
|
-
ref:
|
|
541
|
+
ref: R,
|
|
537
542
|
className: d(
|
|
538
543
|
"kuat-header",
|
|
539
544
|
`kuat-header--${r}`,
|
|
@@ -543,7 +548,7 @@ const ta = i.forwardRef(
|
|
|
543
548
|
children: [
|
|
544
549
|
/* @__PURE__ */ s("div", { className: "kuat-header__desktop", children: [
|
|
545
550
|
/* @__PURE__ */ s("div", { className: "kuat-header__desktop-left", children: [
|
|
546
|
-
|
|
551
|
+
Le && /* @__PURE__ */ s(M, { children: [
|
|
547
552
|
/* @__PURE__ */ e("div", { className: "shrink-0", children: Z }),
|
|
548
553
|
/* @__PURE__ */ e(
|
|
549
554
|
be,
|
|
@@ -560,31 +565,31 @@ const ta = i.forwardRef(
|
|
|
560
565
|
/* @__PURE__ */ e("div", { className: "kuat-header__desktop-demo-logo", children: Z })
|
|
561
566
|
] })
|
|
562
567
|
] }),
|
|
563
|
-
t &&
|
|
568
|
+
t && V === "default" && /* @__PURE__ */ e("h1", { className: "kuat-header__desktop-title", children: t })
|
|
564
569
|
] }),
|
|
565
570
|
/* @__PURE__ */ s("div", { className: "kuat-header__desktop-right", children: [
|
|
566
|
-
|
|
567
|
-
|
|
571
|
+
H ? o.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e(aa, { items: o, variant: r }) }) : o ? /* @__PURE__ */ e("nav", { className: "flex items-center", children: o }) : null,
|
|
572
|
+
L && p ? /* @__PURE__ */ e("div", { className: "kuat-header__nav-dropdown-wrap", children: /* @__PURE__ */ e(
|
|
568
573
|
la,
|
|
569
574
|
{
|
|
570
575
|
config: p,
|
|
571
|
-
labels:
|
|
576
|
+
labels: A
|
|
572
577
|
}
|
|
573
578
|
) }) : null,
|
|
574
|
-
|
|
579
|
+
T && 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
|
|
575
580
|
] })
|
|
576
581
|
] }),
|
|
577
582
|
/* @__PURE__ */ s("div", { className: "kuat-header__mobile", children: [
|
|
578
583
|
/* @__PURE__ */ s("div", { className: "kuat-header__mobile-left", children: [
|
|
579
|
-
|
|
584
|
+
He && /* @__PURE__ */ e("div", { className: "shrink-0", children: F }),
|
|
580
585
|
De && /* @__PURE__ */ s("div", { className: "kuat-header__mobile-demo-lockup", children: [
|
|
581
586
|
t && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-demo-title", children: t }),
|
|
582
587
|
/* @__PURE__ */ s("div", { className: "kuat-header__demo-byline", children: [
|
|
583
588
|
/* @__PURE__ */ e("span", { className: "kuat-header__demo-label", children: "A demo by" }),
|
|
584
|
-
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-demo-logo", children:
|
|
589
|
+
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-demo-logo", children: F })
|
|
585
590
|
] })
|
|
586
591
|
] }),
|
|
587
|
-
t &&
|
|
592
|
+
t && V === "default" && /* @__PURE__ */ e("p", { className: "kuat-header__mobile-title", children: t })
|
|
588
593
|
] }),
|
|
589
594
|
N ? /* @__PURE__ */ e("div", { className: "shrink-0", children: N }) : I ? /* @__PURE__ */ e(
|
|
590
595
|
J,
|
|
@@ -597,18 +602,18 @@ const ta = i.forwardRef(
|
|
|
597
602
|
r === "bold" && "kuat-header__mobile-trigger--bold"
|
|
598
603
|
),
|
|
599
604
|
"aria-label": "Open menu",
|
|
600
|
-
"aria-expanded":
|
|
605
|
+
"aria-expanded": w,
|
|
601
606
|
"aria-controls": "kuat-header-mobile-menu",
|
|
602
607
|
onClick: () => j(!0),
|
|
603
|
-
children: /* @__PURE__ */ e(
|
|
608
|
+
children: /* @__PURE__ */ e(Re, { className: "h-6 w-6", "aria-hidden": !0 })
|
|
604
609
|
}
|
|
605
610
|
) : null
|
|
606
611
|
] }),
|
|
607
|
-
I ?
|
|
612
|
+
I ? w && /* @__PURE__ */ s(
|
|
608
613
|
"div",
|
|
609
614
|
{
|
|
610
615
|
id: "kuat-header-mobile-menu",
|
|
611
|
-
ref:
|
|
616
|
+
ref: G,
|
|
612
617
|
className: "kuat-header__mobile-sheet",
|
|
613
618
|
role: "dialog",
|
|
614
619
|
"aria-modal": "true",
|
|
@@ -619,10 +624,10 @@ const ta = i.forwardRef(
|
|
|
619
624
|
{
|
|
620
625
|
className: d(
|
|
621
626
|
"kuat-header__mobile-sheet-header",
|
|
622
|
-
(
|
|
627
|
+
(k === "apps" || k === "account") && "kuat-header__mobile-sheet-header--split"
|
|
623
628
|
),
|
|
624
629
|
children: [
|
|
625
|
-
|
|
630
|
+
k === "apps" || k === "account" ? /* @__PURE__ */ s(
|
|
626
631
|
J,
|
|
627
632
|
{
|
|
628
633
|
type: "button",
|
|
@@ -630,7 +635,7 @@ const ta = i.forwardRef(
|
|
|
630
635
|
className: "kuat-header__mobile-back",
|
|
631
636
|
"aria-label": "Back to main menu",
|
|
632
637
|
onClick: () => {
|
|
633
|
-
const n =
|
|
638
|
+
const n = k;
|
|
634
639
|
U("main"), requestAnimationFrame(() => {
|
|
635
640
|
var c, m;
|
|
636
641
|
n === "apps" ? (c = ne.current) == null || c.focus() : (m = oe.current) == null || m.focus();
|
|
@@ -662,19 +667,19 @@ const ta = i.forwardRef(
|
|
|
662
667
|
ref: ie,
|
|
663
668
|
className: d(
|
|
664
669
|
"kuat-header__mobile-panel",
|
|
665
|
-
|
|
670
|
+
k !== "main" && "kuat-header__mobile-panel--hidden"
|
|
666
671
|
),
|
|
667
|
-
"aria-hidden":
|
|
672
|
+
"aria-hidden": k !== "main",
|
|
668
673
|
children: [
|
|
669
674
|
/* @__PURE__ */ s("div", { className: "kuat-header__mobile-panel-inner", children: [
|
|
670
|
-
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-nav", children:
|
|
675
|
+
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-sheet-nav", children: H && o.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Primary navigation", children: /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: o.map((n) => {
|
|
671
676
|
var c;
|
|
672
677
|
return /* @__PURE__ */ s("li", { children: [
|
|
673
678
|
/* @__PURE__ */ e("a", { href: n.url, className: "kuat-header__mobile-link", children: n.label }),
|
|
674
679
|
(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
|
|
675
680
|
] }, `${n.label}-${n.url}`);
|
|
676
681
|
}) }) }) }),
|
|
677
|
-
E ||
|
|
682
|
+
E || L ? /* @__PURE__ */ s("div", { className: "kuat-header__mobile-sheet-sticky", children: [
|
|
678
683
|
E ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-app-teaser-wrap", children: /* @__PURE__ */ s(
|
|
679
684
|
"button",
|
|
680
685
|
{
|
|
@@ -698,7 +703,7 @@ const ta = i.forwardRef(
|
|
|
698
703
|
v.teaserDescription ? /* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-desc", children: v.teaserDescription }) : null
|
|
699
704
|
] }),
|
|
700
705
|
/* @__PURE__ */ e(
|
|
701
|
-
|
|
706
|
+
K,
|
|
702
707
|
{
|
|
703
708
|
className: "kuat-header__mobile-app-teaser-chevron h-5 w-5 shrink-0",
|
|
704
709
|
"aria-hidden": !0
|
|
@@ -707,13 +712,13 @@ const ta = i.forwardRef(
|
|
|
707
712
|
]
|
|
708
713
|
}
|
|
709
714
|
) }) : null,
|
|
710
|
-
|
|
715
|
+
L ? /* @__PURE__ */ e("div", { className: "kuat-header__mobile-app-teaser-wrap", children: /* @__PURE__ */ s(
|
|
711
716
|
"button",
|
|
712
717
|
{
|
|
713
718
|
ref: ne,
|
|
714
719
|
type: "button",
|
|
715
720
|
className: "kuat-header__mobile-app-teaser",
|
|
716
|
-
"aria-label": `${
|
|
721
|
+
"aria-label": `${A.teaserTitle}, ${A.teaserDescription}`,
|
|
717
722
|
onClick: () => {
|
|
718
723
|
var n;
|
|
719
724
|
(n = p == null ? void 0 : p.onOpen) == null || n.call(p), U("apps"), requestAnimationFrame(() => {
|
|
@@ -725,36 +730,36 @@ const ta = i.forwardRef(
|
|
|
725
730
|
});
|
|
726
731
|
},
|
|
727
732
|
children: [
|
|
728
|
-
/* @__PURE__ */ e(
|
|
733
|
+
/* @__PURE__ */ e(fe, { className: "kuat-header__mobile-app-teaser-icon h-6 w-6 shrink-0", "aria-hidden": !0 }),
|
|
729
734
|
/* @__PURE__ */ s("span", { className: "kuat-header__mobile-app-teaser-text", children: [
|
|
730
|
-
/* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-title", children:
|
|
731
|
-
/* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-desc", children:
|
|
735
|
+
/* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-title", children: A.teaserTitle }),
|
|
736
|
+
/* @__PURE__ */ e("span", { className: "kuat-header__mobile-app-teaser-desc", children: A.teaserDescription })
|
|
732
737
|
] }),
|
|
733
|
-
/* @__PURE__ */ e(
|
|
738
|
+
/* @__PURE__ */ e(K, { className: "kuat-header__mobile-app-teaser-chevron h-5 w-5 shrink-0", "aria-hidden": !0 })
|
|
734
739
|
]
|
|
735
740
|
}
|
|
736
741
|
) }) : null
|
|
737
742
|
] }) : null
|
|
738
743
|
] }),
|
|
739
|
-
|
|
744
|
+
T && 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: [
|
|
740
745
|
/* @__PURE__ */ e("span", { className: "kuat-header__mobile-action-icon", children: n.icon ?? /* @__PURE__ */ e(ee, { className: "h-4 w-4", "aria-hidden": !0 }) }),
|
|
741
746
|
n.label
|
|
742
747
|
] }) }, `${n.label}-${n.href}`)) }) }) : null
|
|
743
748
|
]
|
|
744
749
|
}
|
|
745
750
|
),
|
|
746
|
-
|
|
751
|
+
L && p ? /* @__PURE__ */ s(
|
|
747
752
|
"div",
|
|
748
753
|
{
|
|
749
754
|
ref: X,
|
|
750
755
|
className: d(
|
|
751
756
|
"kuat-header__mobile-panel kuat-header__mobile-panel--apps",
|
|
752
|
-
|
|
757
|
+
k !== "apps" && "kuat-header__mobile-panel--hidden"
|
|
753
758
|
),
|
|
754
|
-
"aria-hidden":
|
|
759
|
+
"aria-hidden": k !== "apps",
|
|
755
760
|
children: [
|
|
756
|
-
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-apps-heading", children:
|
|
757
|
-
/* @__PURE__ */ e("nav", { "aria-label":
|
|
761
|
+
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-apps-heading", children: A.title }),
|
|
762
|
+
/* @__PURE__ */ e("nav", { "aria-label": A.nav, className: "kuat-header__mobile-apps-nav", children: p.loading ? /* @__PURE__ */ s("ul", { className: "kuat-header__mobile-list", children: [
|
|
758
763
|
/* @__PURE__ */ e("li", { className: "kuat-header__app-switcher-skeleton kuat-header__app-switcher-skeleton--mobile", "aria-hidden": !0 }),
|
|
759
764
|
/* @__PURE__ */ e("li", { className: "kuat-header__app-switcher-skeleton kuat-header__app-switcher-skeleton--mobile", "aria-hidden": !0 })
|
|
760
765
|
] }) : p.apps.length ? /* @__PURE__ */ e("ul", { className: "kuat-header__mobile-list", children: p.apps.map((n) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
|
|
@@ -776,7 +781,7 @@ const ta = i.forwardRef(
|
|
|
776
781
|
] })
|
|
777
782
|
]
|
|
778
783
|
}
|
|
779
|
-
) }, n.id)) }) : (p.empty ?? "hide") === "message" ? /* @__PURE__ */ e("p", { className: "kuat-header__mobile-apps-empty px-3 text-sm text-muted-foreground", children:
|
|
784
|
+
) }, n.id)) }) : (p.empty ?? "hide") === "message" ? /* @__PURE__ */ e("p", { className: "kuat-header__mobile-apps-empty px-3 text-sm text-muted-foreground", children: Ve }) : null })
|
|
780
785
|
]
|
|
781
786
|
}
|
|
782
787
|
) : null,
|
|
@@ -786,9 +791,9 @@ const ta = i.forwardRef(
|
|
|
786
791
|
ref: W,
|
|
787
792
|
className: d(
|
|
788
793
|
"kuat-header__mobile-panel kuat-header__mobile-panel--apps kuat-header__mobile-panel--account",
|
|
789
|
-
|
|
794
|
+
k !== "account" && "kuat-header__mobile-panel--hidden"
|
|
790
795
|
),
|
|
791
|
-
"aria-hidden":
|
|
796
|
+
"aria-hidden": k !== "account",
|
|
792
797
|
children: [
|
|
793
798
|
/* @__PURE__ */ e("div", { className: "kuat-header__mobile-apps-heading", children: v.title }),
|
|
794
799
|
/* @__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}`)) }) })
|
|
@@ -797,7 +802,7 @@ const ta = i.forwardRef(
|
|
|
797
802
|
) : null
|
|
798
803
|
]
|
|
799
804
|
}
|
|
800
|
-
) :
|
|
805
|
+
) : f,
|
|
801
806
|
g
|
|
802
807
|
]
|
|
803
808
|
}
|
|
@@ -809,7 +814,7 @@ function Ca(a) {
|
|
|
809
814
|
const r = (a == null ? void 0 : a.variant) ?? "default";
|
|
810
815
|
return d("kuat-header", `kuat-header--${r}`);
|
|
811
816
|
}
|
|
812
|
-
const va = ["service", "demo"],
|
|
817
|
+
const va = ["service", "demo"], Aa = ["light", "dark"], sa = i.forwardRef(
|
|
813
818
|
({
|
|
814
819
|
className: a,
|
|
815
820
|
title: r,
|
|
@@ -818,7 +823,7 @@ const va = ["service", "demo"], wa = ["light", "dark"], sa = i.forwardRef(
|
|
|
818
823
|
forceDark: o = !1,
|
|
819
824
|
...u
|
|
820
825
|
}, h) => {
|
|
821
|
-
const N = o ? "dark" : t,
|
|
826
|
+
const N = o ? "dark" : t, f = /* @__PURE__ */ e(
|
|
822
827
|
ae,
|
|
823
828
|
{
|
|
824
829
|
className: d(
|
|
@@ -840,7 +845,7 @@ const va = ["service", "demo"], wa = ["light", "dark"], sa = i.forwardRef(
|
|
|
840
845
|
),
|
|
841
846
|
...u,
|
|
842
847
|
children: l === "service" ? /* @__PURE__ */ s("div", { className: "kuat-logo-lockup__service-inner", children: [
|
|
843
|
-
/* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children:
|
|
848
|
+
/* @__PURE__ */ e("div", { className: "kuat-logo-lockup__logo-wrap", children: f }),
|
|
844
849
|
/* @__PURE__ */ e(
|
|
845
850
|
be,
|
|
846
851
|
{
|
|
@@ -853,7 +858,7 @@ const va = ["service", "demo"], wa = ["light", "dark"], sa = i.forwardRef(
|
|
|
853
858
|
/* @__PURE__ */ e("h2", { className: "kuat-logo-lockup__demo-title", children: r }),
|
|
854
859
|
/* @__PURE__ */ s("div", { className: "kuat-logo-lockup__demo-attribution", children: [
|
|
855
860
|
/* @__PURE__ */ e("span", { className: "kuat-logo-lockup__demo-by", children: "A demo by" }),
|
|
856
|
-
/* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children:
|
|
861
|
+
/* @__PURE__ */ e("div", { className: "kuat-logo-lockup__demo-logo-wrap", children: f })
|
|
857
862
|
] })
|
|
858
863
|
] })
|
|
859
864
|
}
|
|
@@ -861,7 +866,7 @@ const va = ["service", "demo"], wa = ["light", "dark"], sa = i.forwardRef(
|
|
|
861
866
|
}
|
|
862
867
|
);
|
|
863
868
|
sa.displayName = "KuatLogoLockup";
|
|
864
|
-
function
|
|
869
|
+
function wa({ className: a }) {
|
|
865
870
|
return /* @__PURE__ */ s(
|
|
866
871
|
"svg",
|
|
867
872
|
{
|
|
@@ -913,11 +918,11 @@ const ve = i.forwardRef(({ className: a, "aria-label": r = "Breadcrumb", ...l },
|
|
|
913
918
|
}
|
|
914
919
|
));
|
|
915
920
|
ve.displayName = "BreadcrumbRoot";
|
|
916
|
-
const
|
|
917
|
-
|
|
921
|
+
const Ae = i.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("ol", { ref: l, className: d("breadcrumb-list", a), ...r }));
|
|
922
|
+
Ae.displayName = "BreadcrumbList";
|
|
918
923
|
const re = i.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e("li", { ref: l, className: d("breadcrumb-item", a), ...r }));
|
|
919
924
|
re.displayName = "BreadcrumbItem";
|
|
920
|
-
const
|
|
925
|
+
const we = i.forwardRef(({ className: a, render: r, asChild: l = !1, ...t }, o) => {
|
|
921
926
|
var u;
|
|
922
927
|
if (r) {
|
|
923
928
|
const h = r.props;
|
|
@@ -944,7 +949,7 @@ const Ae = i.forwardRef(({ className: a, render: r, asChild: l = !1, ...t }, o)
|
|
|
944
949
|
}
|
|
945
950
|
);
|
|
946
951
|
});
|
|
947
|
-
|
|
952
|
+
we.displayName = "BreadcrumbLink";
|
|
948
953
|
const le = i.forwardRef(({ className: a, ...r }, l) => /* @__PURE__ */ e(
|
|
949
954
|
"span",
|
|
950
955
|
{
|
|
@@ -965,7 +970,7 @@ const te = i.forwardRef(({ className: a, children: r, ...l }, t) => /* @__PURE__
|
|
|
965
970
|
"aria-hidden": "true",
|
|
966
971
|
className: d("breadcrumb-separator", a),
|
|
967
972
|
...l,
|
|
968
|
-
children: r ?? /* @__PURE__ */ e(
|
|
973
|
+
children: r ?? /* @__PURE__ */ e(K, { className: "breadcrumb-separator__icon" })
|
|
969
974
|
}
|
|
970
975
|
));
|
|
971
976
|
te.displayName = "BreadcrumbSeparator";
|
|
@@ -1016,9 +1021,9 @@ function da(a, r, l, t) {
|
|
|
1016
1021
|
]
|
|
1017
1022
|
}
|
|
1018
1023
|
) }),
|
|
1019
|
-
/* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e(
|
|
1024
|
+
/* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e($, { children: a.children.map((u, h) => /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e("a", { href: u.href, children: u.label }) }, h)) }) })
|
|
1020
1025
|
] }) : r ? /* @__PURE__ */ e(le, { children: a.label }) : a.href ? /* @__PURE__ */ e(
|
|
1021
|
-
|
|
1026
|
+
we,
|
|
1022
1027
|
{
|
|
1023
1028
|
render: /* @__PURE__ */ e(l, { href: a.href, children: a.label })
|
|
1024
1029
|
}
|
|
@@ -1034,7 +1039,7 @@ function ca({
|
|
|
1034
1039
|
}, h) {
|
|
1035
1040
|
const N = oa();
|
|
1036
1041
|
if (!a.length) return null;
|
|
1037
|
-
const
|
|
1042
|
+
const f = N && a.length > 2, _ = f ? [a[0], a[a.length - 1]] : a, y = (f ? a.slice(1, -1) : []).flatMap(
|
|
1038
1043
|
(g) => g.href ? [{ label: g.label, href: g.href }] : (g.children ?? []).map((C) => ({ label: C.label, href: C.href }))
|
|
1039
1044
|
);
|
|
1040
1045
|
return /* @__PURE__ */ e(
|
|
@@ -1044,11 +1049,11 @@ function ca({
|
|
|
1044
1049
|
"aria-label": o,
|
|
1045
1050
|
className: t,
|
|
1046
1051
|
...u,
|
|
1047
|
-
children: /* @__PURE__ */ e(
|
|
1048
|
-
const
|
|
1052
|
+
children: /* @__PURE__ */ e(Ae, { children: _.map((g, C) => {
|
|
1053
|
+
const R = f ? C === 0 ? 0 : a.length - 1 : C, E = C === _.length - 1 && !g.href && !g.children;
|
|
1049
1054
|
return /* @__PURE__ */ s(i.Fragment, { children: [
|
|
1050
1055
|
C > 0 && /* @__PURE__ */ e(te, { children: l }),
|
|
1051
|
-
|
|
1056
|
+
f && C === 1 && y.length > 0 && /* @__PURE__ */ s(M, { children: [
|
|
1052
1057
|
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ s(B, { children: [
|
|
1053
1058
|
/* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1054
1059
|
"button",
|
|
@@ -1066,12 +1071,12 @@ function ca({
|
|
|
1066
1071
|
]
|
|
1067
1072
|
}
|
|
1068
1073
|
) }),
|
|
1069
|
-
/* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e(
|
|
1074
|
+
/* @__PURE__ */ e(q, { align: "start", children: /* @__PURE__ */ e($, { children: y.map((T, A) => /* @__PURE__ */ e(P, { asChild: !0, children: /* @__PURE__ */ e("a", { href: T.href, children: T.label }) }, A)) }) })
|
|
1070
1075
|
] }) }),
|
|
1071
1076
|
/* @__PURE__ */ e(te, { children: l })
|
|
1072
1077
|
] }),
|
|
1073
1078
|
/* @__PURE__ */ e(re, { children: da(g, E, r) })
|
|
1074
|
-
] },
|
|
1079
|
+
] }, R);
|
|
1075
1080
|
}) })
|
|
1076
1081
|
}
|
|
1077
1082
|
);
|
|
@@ -1085,72 +1090,74 @@ export {
|
|
|
1085
1090
|
mr as AccordionContent,
|
|
1086
1091
|
pr as AccordionItem,
|
|
1087
1092
|
_r as AccordionTrigger,
|
|
1088
|
-
|
|
1089
|
-
|
|
1093
|
+
fr as AlertDialog,
|
|
1094
|
+
kr as AlertDialogAction,
|
|
1090
1095
|
Nr as AlertDialogCancel,
|
|
1091
1096
|
gr as AlertDialogContent,
|
|
1092
1097
|
Cr as AlertDialogDescription,
|
|
1093
1098
|
vr as AlertDialogFooter,
|
|
1094
|
-
|
|
1095
|
-
|
|
1099
|
+
Ar as AlertDialogHeader,
|
|
1100
|
+
wr as AlertDialogOverlay,
|
|
1096
1101
|
Er as AlertDialogPortal,
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1102
|
+
Sr as AlertDialogTitle,
|
|
1103
|
+
Tr as AlertDialogTrigger,
|
|
1104
|
+
Hr as BADGE_ROUNDNESS,
|
|
1100
1105
|
yr as BADGE_VARIANTS,
|
|
1101
1106
|
Ma as BUTTON_COLORS,
|
|
1102
|
-
|
|
1107
|
+
Ta as BUTTON_GROUP_ORIENTATIONS,
|
|
1103
1108
|
Ba as BUTTON_SIZES,
|
|
1104
1109
|
Oa as BUTTON_VARIANTS,
|
|
1105
1110
|
Dr as Badge,
|
|
1106
1111
|
ua as Breadcrumb,
|
|
1107
1112
|
Ee as BreadcrumbEllipsis,
|
|
1108
1113
|
re as BreadcrumbItem,
|
|
1109
|
-
|
|
1110
|
-
|
|
1114
|
+
we as BreadcrumbLink,
|
|
1115
|
+
Ae as BreadcrumbList,
|
|
1111
1116
|
le as BreadcrumbPage,
|
|
1112
1117
|
ve as BreadcrumbRoot,
|
|
1113
1118
|
te as BreadcrumbSeparator,
|
|
1114
1119
|
J as Button,
|
|
1115
|
-
|
|
1116
|
-
|
|
1120
|
+
La as ButtonGroup,
|
|
1121
|
+
Ha as ButtonGroupSeparator,
|
|
1117
1122
|
ya as ButtonGroupText,
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1123
|
+
Ra as CALLOUT_TYPES,
|
|
1124
|
+
Dl as CHECKBOX_FIELD_APPEARANCES,
|
|
1125
|
+
Vl as CHECKBOX_FIELD_LAYOUTS,
|
|
1126
|
+
zr as COUNTER_BADGE_TYPES,
|
|
1121
1127
|
Ia as Callout,
|
|
1122
1128
|
ja as Carousel,
|
|
1123
1129
|
za as CarouselContent,
|
|
1124
1130
|
Xa as CarouselItem,
|
|
1125
1131
|
Wa as CarouselNext,
|
|
1126
1132
|
Ja as CarouselPrevious,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1133
|
+
Rl as Checkbox,
|
|
1134
|
+
Il as CheckboxField,
|
|
1135
|
+
ka as ContentCard,
|
|
1136
|
+
Xr as CounterBadge,
|
|
1130
1137
|
ae as EELogo,
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1138
|
+
wa as EELogoIcon,
|
|
1139
|
+
sl as FIELD_ORIENTATIONS,
|
|
1140
|
+
nl as Field,
|
|
1141
|
+
ol as FieldContent,
|
|
1142
|
+
il as FieldDescription,
|
|
1143
|
+
dl as FieldError,
|
|
1144
|
+
cl as FieldGroup,
|
|
1145
|
+
ul as FieldLabel,
|
|
1146
|
+
hl as FieldLegend,
|
|
1147
|
+
ml as FieldSeparator,
|
|
1148
|
+
pl as FieldSet,
|
|
1149
|
+
_l as FieldTitle,
|
|
1150
|
+
Ga as ICON_BUTTON_ROUNDNESS,
|
|
1144
1151
|
Za as ICON_BUTTON_SIZES,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1152
|
+
Fa as ICON_BUTTON_SIZE_LG_ALIAS,
|
|
1153
|
+
Ka as ICON_BUTTON_SIZE_SM_ALIAS,
|
|
1154
|
+
$a as ICON_BUTTON_VARIANT_DEFAULT_ALIAS,
|
|
1155
|
+
rl as INPUT_SIZES,
|
|
1149
1156
|
Be as IconButton,
|
|
1150
|
-
|
|
1157
|
+
ll as Input,
|
|
1151
1158
|
ga as KUAT_HEADER_APP_SWITCHER_EMPTY,
|
|
1152
1159
|
Na as KUAT_HEADER_LOCKUP_VARIANTS,
|
|
1153
|
-
|
|
1160
|
+
Aa as KUAT_LOGO_LOCKUP_MODE,
|
|
1154
1161
|
va as KUAT_LOGO_LOCKUP_USE,
|
|
1155
1162
|
ir as KUAT_RADIAL_PROGRESS_COLORS,
|
|
1156
1163
|
dr as KUAT_RADIAL_PROGRESS_SIZES,
|
|
@@ -1162,48 +1169,60 @@ export {
|
|
|
1162
1169
|
ta as KuatHeader,
|
|
1163
1170
|
sa as KuatLogoLockup,
|
|
1164
1171
|
cr as KuatRadialProgress,
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1172
|
+
fl as KuatSelect,
|
|
1173
|
+
Ml as RADIO_FIELD_APPEARANCES,
|
|
1174
|
+
Bl as RADIO_FIELD_LAYOUTS,
|
|
1175
|
+
Ol as RadioField,
|
|
1176
|
+
Pl as RadioGroup,
|
|
1177
|
+
Ul as RadioGroupItem,
|
|
1178
|
+
kl as SELECT_LINES,
|
|
1179
|
+
Nl as SELECT_SIZES,
|
|
1180
|
+
Ql as SONNER_POSITIONS,
|
|
1181
|
+
Ir as STATUS_BADGE_SIZES,
|
|
1182
|
+
xr as STATUS_BADGE_TYPES,
|
|
1183
|
+
Zl as SWITCH_FIELD_APPEARANCES,
|
|
1184
|
+
Fl as SWITCH_FIELD_LAYOUTS,
|
|
1185
|
+
gl as Select,
|
|
1186
|
+
Cl as SelectContent,
|
|
1187
|
+
vl as SelectGroup,
|
|
1188
|
+
Al as SelectItem,
|
|
1189
|
+
wl as SelectLabel,
|
|
1190
|
+
El as SelectScrollDownButton,
|
|
1191
|
+
Sl as SelectScrollUpButton,
|
|
1192
|
+
Tl as SelectSeparator,
|
|
1193
|
+
Ll as SelectTrigger,
|
|
1194
|
+
Hl as SelectValue,
|
|
1195
|
+
et as Sonner,
|
|
1196
|
+
at as SonnerContent,
|
|
1197
|
+
Mr as StatusBadge,
|
|
1198
|
+
Kl as Switch,
|
|
1199
|
+
$l as SwitchField,
|
|
1200
|
+
Pr as TAG_COLORS,
|
|
1201
|
+
Ur as TAG_MODES,
|
|
1202
|
+
Qr as TEXTAREA_RESIZE,
|
|
1203
|
+
Yl as TOGGLE_SIZES,
|
|
1204
|
+
jl as TOGGLE_SKINS,
|
|
1205
|
+
Gr as Tag,
|
|
1206
|
+
Kr as TagGroup,
|
|
1207
|
+
qr as TagGroupContext,
|
|
1208
|
+
el as Textarea,
|
|
1209
|
+
zl as Toggle,
|
|
1210
|
+
Xl as ToggleGroup,
|
|
1211
|
+
Wl as ToggleGroupItem,
|
|
1212
|
+
Vr as badgeVariants,
|
|
1198
1213
|
Da as buttonGroupVariants,
|
|
1199
1214
|
Pa as buttonVariants,
|
|
1200
1215
|
d as cn,
|
|
1216
|
+
Wr as counterBadgeVariants,
|
|
1201
1217
|
qa as iconButtonVariants,
|
|
1202
1218
|
Ca as kuatHeaderVariants,
|
|
1203
1219
|
qe as resolveAppSwitcherLabels,
|
|
1204
1220
|
We as resolveHeaderLockup,
|
|
1205
|
-
|
|
1206
|
-
|
|
1221
|
+
$e as shouldShowAppSwitcher,
|
|
1222
|
+
Br as statusBadgeVariants,
|
|
1223
|
+
Zr as tagVariants,
|
|
1224
|
+
rt as toast,
|
|
1207
1225
|
Qa as useCarousel,
|
|
1208
|
-
nr as useKuatCarousel
|
|
1226
|
+
nr as useKuatCarousel,
|
|
1227
|
+
Yr as useTagGroup
|
|
1209
1228
|
};
|