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