@stoovles/carbon-makekit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,2317 @@
1
+ import { jsx as e, jsxs as N, Fragment as Re } from "react/jsx-runtime";
2
+ import z, { createContext as X, useState as W, useCallback as M, useContext as Q, useId as O, forwardRef as te, useRef as F, useEffect as V, Children as fe, isValidElement as oe, useMemo as ue, cloneElement as je } from "react";
3
+ import { createPortal as Oe } from "react-dom";
4
+ const we = X({
5
+ theme: "white",
6
+ setTheme: () => {
7
+ }
8
+ });
9
+ function dn() {
10
+ return Q(we);
11
+ }
12
+ const Fe = {
13
+ white: "cds--white",
14
+ g10: "cds--g10",
15
+ g90: "cds--g90",
16
+ g100: "cds--g100"
17
+ }, fn = z.forwardRef(
18
+ function({ theme: n = "white", children: o }, c) {
19
+ const [t, a] = W(n), s = M((i) => {
20
+ a(i);
21
+ }, []);
22
+ return /* @__PURE__ */ e(we.Provider, { value: { theme: t, setTheme: s }, children: /* @__PURE__ */ e("div", { ref: c, className: Fe[t], children: o }) });
23
+ }
24
+ ), Ge = {
25
+ primary: "cds--btn--primary",
26
+ secondary: "cds--btn--secondary",
27
+ tertiary: "cds--btn--tertiary",
28
+ ghost: "cds--btn--ghost",
29
+ danger: "cds--btn--danger",
30
+ "danger-tertiary": "cds--btn--danger--tertiary",
31
+ "danger-ghost": "cds--btn--danger--ghost"
32
+ }, Ve = ["danger", "danger-tertiary", "danger-ghost"];
33
+ function le(...r) {
34
+ return r.filter(Boolean).join(" ");
35
+ }
36
+ function Ke(r, n, o, c, t, a, s) {
37
+ const i = n === "xl" || n === "2xl" ? n === "xl" ? "cds--btn--xl" : "cds--btn--2xl" : n && !o ? `cds--btn--${n}` : "";
38
+ return le(
39
+ s,
40
+ "cds--btn",
41
+ Ge[r],
42
+ i,
43
+ n ? `cds--layout--size-${n}` : "",
44
+ c ? "cds--btn--disabled" : "",
45
+ o ? "cds--btn--expressive" : "",
46
+ t ? "cds--btn--icon-only" : "",
47
+ t && a && r === "ghost" ? "cds--btn--selected" : ""
48
+ );
49
+ }
50
+ const un = z.forwardRef(
51
+ function({
52
+ kind: n = "primary",
53
+ size: o,
54
+ type: c = "button",
55
+ disabled: t = !1,
56
+ isExpressive: a = !1,
57
+ isSelected: s = !1,
58
+ hasIconOnly: i = !1,
59
+ renderIcon: f,
60
+ href: b,
61
+ tooltipText: g,
62
+ dangerDescription: h = "Danger",
63
+ className: l,
64
+ children: u,
65
+ "aria-describedby": p,
66
+ "aria-pressed": v,
67
+ "aria-label": m,
68
+ ...y
69
+ }, d) {
70
+ const k = O(), x = Ve.includes(n), _ = Ke(
71
+ n,
72
+ o,
73
+ a,
74
+ t,
75
+ i,
76
+ s,
77
+ l
78
+ ), $ = f ? /* @__PURE__ */ e(f, { className: "cds--btn__icon", "aria-hidden": "true" }) : null, B = x && h ? /* @__PURE__ */ e("span", { id: k, className: "cds--visually-hidden", children: h }) : null, w = [x ? k : "", p].filter(Boolean).join(" ") || void 0, C = le(
79
+ _,
80
+ i && g ? "cds--tooltip__trigger cds--tooltip--a11y" : ""
81
+ ), A = v ?? (i && n === "ghost" ? s : void 0), T = m ?? (i && g ? g : void 0), D = /* @__PURE__ */ N(Re, { children: [
82
+ B,
83
+ u,
84
+ $,
85
+ i && g ? /* @__PURE__ */ e("span", { className: "cds--assistive-text", role: "tooltip", children: g }) : null
86
+ ] }), I = !!b && !t;
87
+ let H;
88
+ return I ? H = /* @__PURE__ */ e(
89
+ "a",
90
+ {
91
+ ref: d,
92
+ href: b,
93
+ className: C,
94
+ "aria-describedby": w,
95
+ "aria-pressed": A,
96
+ "aria-label": T,
97
+ ...y,
98
+ children: D
99
+ }
100
+ ) : H = /* @__PURE__ */ e(
101
+ "button",
102
+ {
103
+ ref: d,
104
+ type: c,
105
+ disabled: t,
106
+ className: C,
107
+ "aria-describedby": w,
108
+ "aria-pressed": A,
109
+ "aria-label": T,
110
+ ...y,
111
+ children: D
112
+ }
113
+ ), i && g ? /* @__PURE__ */ e(
114
+ "span",
115
+ {
116
+ className: le(
117
+ "cds--icon-tooltip",
118
+ t ? "cds--icon-tooltip--disabled" : ""
119
+ ),
120
+ children: /* @__PURE__ */ e("div", { className: "cds--tooltip-trigger__wrapper", children: H })
121
+ }
122
+ ) : H;
123
+ }
124
+ );
125
+ function qe(...r) {
126
+ return r.filter(Boolean).join(" ");
127
+ }
128
+ const bn = z.forwardRef(
129
+ function({
130
+ as: n,
131
+ className: o,
132
+ children: c,
133
+ disabled: t = !1,
134
+ inline: a = !1,
135
+ visited: s = !1,
136
+ size: i = "md",
137
+ renderIcon: f,
138
+ href: b,
139
+ target: g,
140
+ ...h
141
+ }, l) {
142
+ const u = qe(
143
+ "cds--link",
144
+ o,
145
+ i === "sm" ? "cds--link--sm" : "",
146
+ i === "lg" ? "cds--link--lg" : "",
147
+ t ? "cds--link--disabled" : "",
148
+ s ? "cds--link--visited" : "",
149
+ a ? "cds--link--inline" : ""
150
+ ), p = f ? /* @__PURE__ */ e(f, { className: "cds--link__icon", "aria-hidden": "true" }) : null;
151
+ return t ? /* @__PURE__ */ N(
152
+ "p",
153
+ {
154
+ ref: l,
155
+ className: u,
156
+ ...h,
157
+ children: [
158
+ c,
159
+ p
160
+ ]
161
+ }
162
+ ) : /* @__PURE__ */ N(
163
+ n || "a",
164
+ {
165
+ ref: l,
166
+ className: u,
167
+ href: b,
168
+ target: g,
169
+ ...h,
170
+ children: [
171
+ c,
172
+ p
173
+ ]
174
+ }
175
+ );
176
+ }
177
+ );
178
+ function Ue(...r) {
179
+ return r.filter(Boolean).join(" ");
180
+ }
181
+ const Ye = {
182
+ red: "cds--tag--red",
183
+ magenta: "cds--tag--magenta",
184
+ purple: "cds--tag--purple",
185
+ blue: "cds--tag--blue",
186
+ cyan: "cds--tag--cyan",
187
+ teal: "cds--tag--teal",
188
+ green: "cds--tag--green",
189
+ gray: "cds--tag--gray",
190
+ "cool-gray": "cds--tag--cool-gray",
191
+ "warm-gray": "cds--tag--warm-gray",
192
+ "high-contrast": "cds--tag--high-contrast",
193
+ outline: "cds--tag--outline"
194
+ };
195
+ function Je() {
196
+ return /* @__PURE__ */ e(
197
+ "svg",
198
+ {
199
+ xmlns: "http://www.w3.org/2000/svg",
200
+ width: 16,
201
+ height: 16,
202
+ viewBox: "0 0 32 32",
203
+ fill: "currentColor",
204
+ focusable: "false",
205
+ "aria-hidden": "true",
206
+ children: /* @__PURE__ */ e("path", { d: "M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z" })
207
+ }
208
+ );
209
+ }
210
+ const gn = z.forwardRef(function({
211
+ type: n = "gray",
212
+ size: o = "md",
213
+ filter: c = !1,
214
+ disabled: t = !1,
215
+ onClose: a,
216
+ renderIcon: s,
217
+ className: i,
218
+ children: f,
219
+ ...b
220
+ }, g) {
221
+ const h = Ue(
222
+ "cds--tag",
223
+ Ye[n],
224
+ o === "sm" ? "cds--tag--sm" : "",
225
+ o === "lg" ? "cds--tag--lg" : "",
226
+ c ? "cds--tag--filter" : "",
227
+ t ? "cds--tag--disabled" : "",
228
+ i
229
+ );
230
+ return /* @__PURE__ */ N(
231
+ "span",
232
+ {
233
+ ref: g,
234
+ className: h,
235
+ "aria-disabled": t || void 0,
236
+ ...b,
237
+ children: [
238
+ s ? /* @__PURE__ */ e("span", { className: "cds--tag__custom-icon", children: /* @__PURE__ */ e(s, { "aria-hidden": "true" }) }) : null,
239
+ /* @__PURE__ */ e("span", { className: "cds--tag__label", children: f }),
240
+ c ? /* @__PURE__ */ e(
241
+ "button",
242
+ {
243
+ type: "button",
244
+ className: "cds--tag__close-icon",
245
+ "aria-label": "Clear filter",
246
+ disabled: t,
247
+ onClick: a,
248
+ children: /* @__PURE__ */ e(Je, {})
249
+ }
250
+ ) : null
251
+ ]
252
+ }
253
+ );
254
+ });
255
+ function he(...r) {
256
+ return r.filter(Boolean).join(" ");
257
+ }
258
+ const mn = z.forwardRef(function({
259
+ active: n = !0,
260
+ withOverlay: o = !1,
261
+ small: c = !1,
262
+ description: t = "Loading",
263
+ className: a,
264
+ ...s
265
+ }, i) {
266
+ const f = he(
267
+ "cds--loading",
268
+ c ? "cds--loading--small" : "",
269
+ n ? "" : "cds--loading--stop",
270
+ a
271
+ ), b = he(
272
+ "cds--loading-overlay",
273
+ n ? "" : "cds--loading-overlay--stop"
274
+ ), g = /* @__PURE__ */ e(
275
+ "div",
276
+ {
277
+ ref: o ? void 0 : i,
278
+ ...s,
279
+ "aria-atomic": "true",
280
+ "aria-live": n ? "assertive" : "off",
281
+ "aria-busy": n || void 0,
282
+ className: f,
283
+ children: /* @__PURE__ */ N(
284
+ "svg",
285
+ {
286
+ className: "cds--loading__svg",
287
+ viewBox: "0 0 100 100",
288
+ role: "img",
289
+ "aria-label": t,
290
+ children: [
291
+ /* @__PURE__ */ e("title", { children: t }),
292
+ c ? /* @__PURE__ */ e("circle", { className: "cds--loading__background", cx: "50%", cy: "50%", r: "42" }) : null,
293
+ /* @__PURE__ */ e(
294
+ "circle",
295
+ {
296
+ className: "cds--loading__stroke",
297
+ cx: "50%",
298
+ cy: "50%",
299
+ r: c ? "42" : "44"
300
+ }
301
+ )
302
+ ]
303
+ }
304
+ )
305
+ }
306
+ );
307
+ return o ? /* @__PURE__ */ e("div", { ref: i, className: b, children: g }) : g;
308
+ });
309
+ function _e(...r) {
310
+ return r.filter(Boolean).join(" ");
311
+ }
312
+ const hn = z.forwardRef(
313
+ function({ className: n, children: o, noTrailingSlash: c, ...t }, a) {
314
+ return /* @__PURE__ */ e("nav", { ref: a, "aria-label": "Breadcrumb", className: n, ...t, children: /* @__PURE__ */ e(
315
+ "ol",
316
+ {
317
+ className: _e(
318
+ "cds--breadcrumb",
319
+ c ? "cds--breadcrumb--no-trailing-slash" : ""
320
+ ),
321
+ children: o
322
+ }
323
+ ) });
324
+ }
325
+ ), pn = z.forwardRef(
326
+ function({ className: n, href: o, isCurrentPage: c, children: t, ...a }, s) {
327
+ const i = _e(
328
+ "cds--breadcrumb-item",
329
+ c ? "cds--breadcrumb-item--current" : "",
330
+ n
331
+ );
332
+ return /* @__PURE__ */ e("li", { ref: s, className: i, ...a, children: c ? o ? /* @__PURE__ */ e("a", { href: o, className: "cds--link", "aria-current": "page", children: t }) : /* @__PURE__ */ e("span", { className: "cds--link", "aria-current": "page", children: t }) : o ? /* @__PURE__ */ e("a", { href: o, className: "cds--link", children: t }) : /* @__PURE__ */ e("span", { className: "cds--link", children: t }) });
333
+ }
334
+ );
335
+ function Y(...r) {
336
+ return r.filter(Boolean).join(" ");
337
+ }
338
+ function pe({ warning: r }) {
339
+ return r ? /* @__PURE__ */ N(
340
+ "svg",
341
+ {
342
+ className: "cds--text-input__invalid-icon cds--text-input__invalid-icon--warning",
343
+ xmlns: "http://www.w3.org/2000/svg",
344
+ viewBox: "0 0 16 16",
345
+ width: 16,
346
+ height: 16,
347
+ "aria-hidden": "true",
348
+ focusable: "false",
349
+ children: [
350
+ /* @__PURE__ */ e("path", { d: "M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z" }),
351
+ /* @__PURE__ */ e(
352
+ "path",
353
+ {
354
+ d: "M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z",
355
+ fill: "none",
356
+ opacity: 0
357
+ }
358
+ )
359
+ ]
360
+ }
361
+ ) : /* @__PURE__ */ e(
362
+ "svg",
363
+ {
364
+ className: "cds--text-input__invalid-icon",
365
+ xmlns: "http://www.w3.org/2000/svg",
366
+ viewBox: "0 0 16 16",
367
+ width: 16,
368
+ height: 16,
369
+ "aria-hidden": "true",
370
+ focusable: "false",
371
+ children: /* @__PURE__ */ e("path", { d: "M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.4,3.6h1.1v5H7.4V3.6z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z" })
372
+ }
373
+ );
374
+ }
375
+ const Qe = te(
376
+ function(n, o) {
377
+ const c = O(), {
378
+ id: t,
379
+ labelText: a,
380
+ helperText: s,
381
+ invalidText: i,
382
+ warnText: f,
383
+ placeholder: b,
384
+ defaultValue: g,
385
+ value: h,
386
+ onChange: l,
387
+ disabled: u,
388
+ invalid: p,
389
+ warn: v,
390
+ readOnly: m,
391
+ size: y = "md",
392
+ type: d = "text",
393
+ hideLabel: k,
394
+ inline: x,
395
+ light: _,
396
+ className: $,
397
+ ...B
398
+ } = n, w = t ?? c, C = !!(p && i), A = !!(v && f && !C), T = !!s && !C && !A, D = y === "sm" ? "cds--text-input--sm" : y === "lg" ? "cds--text-input--lg" : y === "xl" ? "cds--text-input--xl" : void 0, I = Y(
399
+ "cds--label",
400
+ u && "cds--label--disabled",
401
+ k && "cds--visually-hidden",
402
+ x && "cds--label--inline",
403
+ x && y === "sm" && "cds--label--inline--sm",
404
+ x && y === "lg" && "cds--label--inline--lg"
405
+ ), H = `${w}-helper`, P = `${w}-requirement`, K = Y(
406
+ T && H,
407
+ (C || A) && P
408
+ );
409
+ return /* @__PURE__ */ e("div", { className: Y("cds--form-item", $), children: /* @__PURE__ */ N(
410
+ "div",
411
+ {
412
+ className: Y(
413
+ "cds--text-input-wrapper",
414
+ x && "cds--text-input-wrapper--inline",
415
+ x && C && "cds--text-input-wrapper--inline--invalid"
416
+ ),
417
+ children: [
418
+ /* @__PURE__ */ e("label", { htmlFor: w, className: I, children: a }),
419
+ /* @__PURE__ */ N(
420
+ "div",
421
+ {
422
+ className: Y(
423
+ "cds--text-input__field-wrapper",
424
+ A && "cds--text-input__field-wrapper--warning"
425
+ ),
426
+ "data-invalid": C ? !0 : void 0,
427
+ children: [
428
+ /* @__PURE__ */ e(
429
+ "input",
430
+ {
431
+ ref: o,
432
+ id: w,
433
+ type: d,
434
+ className: Y(
435
+ "cds--text-input",
436
+ D,
437
+ _ && "cds--text-input--light",
438
+ C && "cds--text-input--invalid",
439
+ A && "cds--text-input--warning"
440
+ ),
441
+ placeholder: b,
442
+ defaultValue: g,
443
+ value: h,
444
+ onChange: l,
445
+ disabled: u,
446
+ readOnly: m,
447
+ "aria-invalid": C || void 0,
448
+ "aria-describedby": K || void 0,
449
+ ...B
450
+ }
451
+ ),
452
+ C && /* @__PURE__ */ e(pe, {}),
453
+ A && /* @__PURE__ */ e(pe, { warning: !0 })
454
+ ]
455
+ }
456
+ ),
457
+ T && /* @__PURE__ */ e("div", { id: H, className: "cds--form__helper-text", children: s }),
458
+ C && /* @__PURE__ */ e(
459
+ "div",
460
+ {
461
+ id: P,
462
+ className: "cds--form-requirement",
463
+ role: "alert",
464
+ children: i
465
+ }
466
+ ),
467
+ A && /* @__PURE__ */ e(
468
+ "div",
469
+ {
470
+ id: P,
471
+ className: "cds--form-requirement",
472
+ role: "alert",
473
+ children: f
474
+ }
475
+ )
476
+ ]
477
+ }
478
+ ) });
479
+ }
480
+ );
481
+ Qe.displayName = "TextInput";
482
+ function de(...r) {
483
+ return r.filter(Boolean).join(" ");
484
+ }
485
+ const Xe = te(
486
+ function(n, o) {
487
+ const {
488
+ id: c,
489
+ labelText: t,
490
+ checked: a,
491
+ defaultChecked: s,
492
+ indeterminate: i,
493
+ onChange: f,
494
+ disabled: b,
495
+ hideLabel: g,
496
+ readOnly: h,
497
+ className: l,
498
+ ...u
499
+ } = n, p = F(null), v = M(
500
+ (m) => {
501
+ p.current = m, m && (m.indeterminate = !!i), typeof o == "function" ? o(m) : o && (o.current = m);
502
+ },
503
+ [o]
504
+ );
505
+ return V(() => {
506
+ p.current && (p.current.indeterminate = !!i);
507
+ }, [i]), /* @__PURE__ */ N("div", { className: de("cds--form-item", "cds--checkbox-wrapper", l), children: [
508
+ /* @__PURE__ */ e(
509
+ "input",
510
+ {
511
+ ref: v,
512
+ type: "checkbox",
513
+ id: c,
514
+ className: "cds--checkbox",
515
+ checked: a,
516
+ defaultChecked: s,
517
+ onChange: f,
518
+ disabled: b,
519
+ readOnly: h,
520
+ "aria-readonly": h || void 0,
521
+ ...u
522
+ }
523
+ ),
524
+ /* @__PURE__ */ e("label", { htmlFor: c, className: "cds--checkbox-label", children: /* @__PURE__ */ e(
525
+ "span",
526
+ {
527
+ className: de(
528
+ "cds--checkbox-label-text",
529
+ g && "cds--visually-hidden"
530
+ ),
531
+ children: t
532
+ }
533
+ ) })
534
+ ] });
535
+ }
536
+ );
537
+ Xe.displayName = "Checkbox";
538
+ function vn({
539
+ legendText: r,
540
+ orientation: n = "vertical",
541
+ children: o,
542
+ className: c,
543
+ ...t
544
+ }) {
545
+ return /* @__PURE__ */ N(
546
+ "fieldset",
547
+ {
548
+ className: de(
549
+ "cds--checkbox-group",
550
+ n === "horizontal" && "cds--checkbox-group--horizontal",
551
+ c
552
+ ),
553
+ ...t,
554
+ children: [
555
+ r ? /* @__PURE__ */ e("legend", { className: "cds--label", children: r }) : null,
556
+ o
557
+ ]
558
+ }
559
+ );
560
+ }
561
+ function re(...r) {
562
+ return r.filter(Boolean).join(" ");
563
+ }
564
+ const Ne = te(
565
+ function(n, o) {
566
+ const {
567
+ id: c,
568
+ labelText: t,
569
+ value: a,
570
+ name: s,
571
+ checked: i,
572
+ defaultChecked: f,
573
+ onChange: b,
574
+ disabled: g,
575
+ hideLabel: h,
576
+ readOnly: l,
577
+ labelPosition: u = "right",
578
+ className: p,
579
+ ...v
580
+ } = n;
581
+ return /* @__PURE__ */ N(
582
+ "div",
583
+ {
584
+ className: re(
585
+ "cds--form-item",
586
+ "cds--radio-button-wrapper",
587
+ u === "left" && "cds--radio-button-wrapper--label-left",
588
+ u === "right" && "cds--radio-button-wrapper--label-right",
589
+ p
590
+ ),
591
+ children: [
592
+ /* @__PURE__ */ e(
593
+ "input",
594
+ {
595
+ ref: o,
596
+ type: "radio",
597
+ id: c,
598
+ className: "cds--radio-button",
599
+ name: s,
600
+ value: a,
601
+ checked: i,
602
+ defaultChecked: f,
603
+ onChange: b,
604
+ disabled: g,
605
+ readOnly: l,
606
+ "aria-readonly": l || void 0,
607
+ ...v
608
+ }
609
+ ),
610
+ /* @__PURE__ */ N("label", { htmlFor: c, className: "cds--radio-button__label", children: [
611
+ /* @__PURE__ */ e("span", { className: "cds--radio-button__appearance", "aria-hidden": "true" }),
612
+ /* @__PURE__ */ e(
613
+ "span",
614
+ {
615
+ className: re(
616
+ "cds--radio-button__label-text",
617
+ h && "cds--visually-hidden"
618
+ ),
619
+ children: t
620
+ }
621
+ )
622
+ ] })
623
+ ]
624
+ }
625
+ );
626
+ }
627
+ );
628
+ Ne.displayName = "RadioButton";
629
+ function yn({
630
+ name: r,
631
+ legendText: n,
632
+ orientation: o = "vertical",
633
+ defaultSelected: c,
634
+ valueSelected: t,
635
+ onChange: a,
636
+ disabled: s,
637
+ children: i,
638
+ className: f,
639
+ ...b
640
+ }) {
641
+ const [g, h] = W(c ?? ""), l = t !== void 0, u = l ? t : g, p = M(
642
+ (m, y) => {
643
+ l || h(m), a == null || a(m, y);
644
+ },
645
+ [l, a]
646
+ ), v = fe.map(i, (m) => {
647
+ if (!oe(m) || m.type !== Ne)
648
+ return m;
649
+ const y = m.props;
650
+ return z.cloneElement(
651
+ m,
652
+ {
653
+ name: r,
654
+ checked: u === y.value,
655
+ disabled: s || y.disabled,
656
+ onChange: (d) => {
657
+ var k;
658
+ (k = y.onChange) == null || k.call(y, d), !d.defaultPrevented && !s && p(y.value, d);
659
+ }
660
+ }
661
+ );
662
+ });
663
+ return /* @__PURE__ */ e("div", { className: re("cds--form-item", f), ...b, children: /* @__PURE__ */ N(
664
+ "fieldset",
665
+ {
666
+ className: re(
667
+ "cds--radio-button-group",
668
+ o === "vertical" && "cds--radio-button-group--vertical"
669
+ ),
670
+ children: [
671
+ n ? /* @__PURE__ */ e("legend", { className: "cds--label", children: n }) : null,
672
+ v
673
+ ]
674
+ }
675
+ ) });
676
+ }
677
+ function ee(...r) {
678
+ return r.filter(Boolean).join(" ");
679
+ }
680
+ const Ze = te(
681
+ function(n, o) {
682
+ const {
683
+ id: c,
684
+ labelText: t,
685
+ labelA: a = "Off",
686
+ labelB: s = "On",
687
+ toggled: i,
688
+ defaultToggled: f = !1,
689
+ onToggle: b,
690
+ disabled: g,
691
+ size: h = "md",
692
+ hideLabel: l,
693
+ readOnly: u,
694
+ className: p,
695
+ onClick: v,
696
+ ...m
697
+ } = n, [y, d] = W(f), k = i !== void 0, x = k ? !!i : y, _ = M(
698
+ (B) => {
699
+ if (v == null || v(B), B.defaultPrevented || g || u)
700
+ return;
701
+ const w = !x;
702
+ k || d(w), b == null || b(w);
703
+ },
704
+ [g, u, k, x, v, b]
705
+ ), $ = ee(
706
+ "cds--toggle__label-text",
707
+ !!(l && t) && "cds--visually-hidden"
708
+ );
709
+ return /* @__PURE__ */ e("div", { className: ee("cds--form-item", p), children: /* @__PURE__ */ N(
710
+ "div",
711
+ {
712
+ className: ee(
713
+ "cds--toggle",
714
+ g && "cds--toggle--disabled",
715
+ u && "cds--toggle--readonly",
716
+ h === "sm" && "cds--toggle--sm"
717
+ ),
718
+ children: [
719
+ /* @__PURE__ */ e(
720
+ "button",
721
+ {
722
+ ref: o,
723
+ id: c,
724
+ type: "button",
725
+ role: "switch",
726
+ "aria-checked": x,
727
+ "aria-readonly": u || void 0,
728
+ disabled: g,
729
+ className: "cds--toggle__button cds--toggle-input",
730
+ onClick: _,
731
+ ...m
732
+ }
733
+ ),
734
+ /* @__PURE__ */ N(
735
+ "label",
736
+ {
737
+ htmlFor: c,
738
+ className: "cds--toggle__label cds--toggle-input__label",
739
+ children: [
740
+ t ? /* @__PURE__ */ e("span", { className: $, children: t }) : null,
741
+ /* @__PURE__ */ N(
742
+ "div",
743
+ {
744
+ className: ee(
745
+ "cds--toggle__appearance",
746
+ h === "sm" && "cds--toggle__appearance--sm"
747
+ ),
748
+ children: [
749
+ /* @__PURE__ */ e(
750
+ "div",
751
+ {
752
+ className: ee(
753
+ "cds--toggle__switch",
754
+ x && "cds--toggle__switch--checked"
755
+ ),
756
+ children: h === "sm" && !u ? /* @__PURE__ */ e(
757
+ "svg",
758
+ {
759
+ className: "cds--toggle__check",
760
+ width: 6,
761
+ height: 5,
762
+ viewBox: "0 0 6 5",
763
+ "aria-hidden": "true",
764
+ focusable: "false",
765
+ children: /* @__PURE__ */ e("path", { d: "M2.2 2.7L5 0 6 1 2.2 5 0 2.7 1 1.5z" })
766
+ }
767
+ ) : null
768
+ }
769
+ ),
770
+ /* @__PURE__ */ e("span", { className: "cds--toggle__text", "aria-hidden": "true", children: x ? s : a })
771
+ ]
772
+ }
773
+ )
774
+ ]
775
+ }
776
+ )
777
+ ]
778
+ }
779
+ ) });
780
+ }
781
+ );
782
+ Ze.displayName = "Toggle";
783
+ function J(...r) {
784
+ return r.filter(Boolean).join(" ");
785
+ }
786
+ function ve({ warning: r }) {
787
+ return r ? /* @__PURE__ */ N(
788
+ "svg",
789
+ {
790
+ className: "cds--list-box__invalid-icon cds--list-box__invalid-icon--warning",
791
+ xmlns: "http://www.w3.org/2000/svg",
792
+ viewBox: "0 0 16 16",
793
+ width: 16,
794
+ height: 16,
795
+ "aria-hidden": "true",
796
+ focusable: "false",
797
+ children: [
798
+ /* @__PURE__ */ e("path", { d: "M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z" }),
799
+ /* @__PURE__ */ e(
800
+ "path",
801
+ {
802
+ d: "M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z",
803
+ fill: "none",
804
+ opacity: 0
805
+ }
806
+ )
807
+ ]
808
+ }
809
+ ) : /* @__PURE__ */ e(
810
+ "svg",
811
+ {
812
+ className: "cds--list-box__invalid-icon",
813
+ xmlns: "http://www.w3.org/2000/svg",
814
+ viewBox: "0 0 16 16",
815
+ width: 16,
816
+ height: 16,
817
+ "aria-hidden": "true",
818
+ focusable: "false",
819
+ children: /* @__PURE__ */ e("path", { d: "M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.4,3.6h1.1v5H7.4V3.6z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z" })
820
+ }
821
+ );
822
+ }
823
+ function en() {
824
+ return /* @__PURE__ */ e(
825
+ "svg",
826
+ {
827
+ xmlns: "http://www.w3.org/2000/svg",
828
+ viewBox: "0 0 16 16",
829
+ width: 16,
830
+ height: 16,
831
+ "aria-hidden": "true",
832
+ focusable: "false",
833
+ children: /* @__PURE__ */ e("polygon", { points: "8,11 3,6 3.7,5.3 8,9.6 12.3,5.3 13,6 " })
834
+ }
835
+ );
836
+ }
837
+ const nn = te(
838
+ function(n, o) {
839
+ const c = O(), {
840
+ id: t,
841
+ items: a,
842
+ selectedItem: s,
843
+ onChange: i,
844
+ titleText: f,
845
+ helperText: b,
846
+ invalidText: g,
847
+ warnText: h,
848
+ disabled: l,
849
+ invalid: u,
850
+ warn: p,
851
+ size: v = "md",
852
+ type: m = "default",
853
+ label: y,
854
+ readOnly: d,
855
+ hideLabel: k,
856
+ direction: x = "bottom",
857
+ className: _,
858
+ ...$
859
+ } = n, B = s !== void 0, [w, C] = W(null), A = B ? s ?? null : w, [T, D] = W(!1), [I, H] = W(0), P = F(null), K = M(
860
+ (S) => {
861
+ P.current = S, typeof o == "function" ? o(S) : o && (o.current = S);
862
+ },
863
+ [o]
864
+ ), R = `${t}-${c}-lbl`, G = `${t}-${c}-hlp`, q = `${t}-${c}-req`, Z = `${t}-${c}-menu`, L = ue(() => A ? a.findIndex((S) => S.id === A.id) : -1, [a, A]), U = !!(u && g), ae = !!(p && h && !U), me = !!b && !U && !ae, $e = J(
865
+ f != null && f !== "" && R,
866
+ me && G,
867
+ (U || ae) && q
868
+ );
869
+ V(() => {
870
+ if (!T)
871
+ return;
872
+ const S = (E) => {
873
+ const j = P.current;
874
+ j && !j.contains(E.target) && D(!1);
875
+ };
876
+ return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
877
+ }, [T]);
878
+ const ce = M(
879
+ (S) => {
880
+ B || C(S), i == null || i({ selectedItem: S });
881
+ },
882
+ [B, i]
883
+ ), ie = M(() => {
884
+ l || d || D((S) => {
885
+ const E = !S;
886
+ if (E) {
887
+ const j = L >= 0 ? L : a.length > 0 ? 0 : -1;
888
+ H(j >= 0 ? j : 0);
889
+ }
890
+ return E;
891
+ });
892
+ }, [l, d, L, a.length]), Ee = M(
893
+ (S) => {
894
+ if (!(l || d)) {
895
+ if (S.key === "Escape" && T) {
896
+ S.preventDefault(), D(!1);
897
+ return;
898
+ }
899
+ if (S.key === "Enter" || S.key === " ") {
900
+ S.preventDefault(), T && I >= 0 && a[I] ? (ce(a[I]), D(!1)) : ie();
901
+ return;
902
+ }
903
+ if (S.key === "ArrowDown") {
904
+ if (S.preventDefault(), !T) {
905
+ H(L >= 0 ? L : 0), D(!0);
906
+ return;
907
+ }
908
+ H(
909
+ (E) => a.length === 0 ? 0 : (E + 1) % a.length
910
+ );
911
+ return;
912
+ }
913
+ if (S.key === "ArrowUp") {
914
+ if (S.preventDefault(), !T) {
915
+ const E = L >= 0 ? L : Math.max(0, a.length - 1);
916
+ H(E), D(!0);
917
+ return;
918
+ }
919
+ H(
920
+ (E) => a.length === 0 ? 0 : (E - 1 + a.length) % a.length
921
+ );
922
+ }
923
+ }
924
+ },
925
+ [
926
+ l,
927
+ d,
928
+ T,
929
+ I,
930
+ a,
931
+ ie,
932
+ ce,
933
+ L
934
+ ]
935
+ ), Le = (A == null ? void 0 : A.label) ?? y ?? (f ? String(f) : ""), Pe = f ? void 0 : y ?? "Options";
936
+ return /* @__PURE__ */ N("div", { ref: K, className: J("cds--form-item", _), ...$, children: [
937
+ f ? /* @__PURE__ */ e(
938
+ "label",
939
+ {
940
+ id: R,
941
+ htmlFor: t,
942
+ className: J("cds--label", k && "cds--visually-hidden"),
943
+ children: f
944
+ }
945
+ ) : null,
946
+ /* @__PURE__ */ N(
947
+ "div",
948
+ {
949
+ className: J(
950
+ "cds--dropdown",
951
+ "cds--list-box",
952
+ T && "cds--dropdown--open",
953
+ T && "cds--list-box--expanded",
954
+ v === "sm" && "cds--dropdown--sm",
955
+ v === "sm" && "cds--list-box--sm",
956
+ v === "lg" && "cds--dropdown--lg",
957
+ v === "lg" && "cds--list-box--lg",
958
+ m === "inline" && "cds--dropdown--inline",
959
+ m === "inline" && "cds--list-box--inline",
960
+ l && "cds--dropdown--disabled",
961
+ l && "cds--list-box--disabled",
962
+ u && "cds--dropdown--invalid",
963
+ p && "cds--dropdown--warning",
964
+ p && "cds--list-box--warning",
965
+ x === "top" && "cds--list-box--up"
966
+ ),
967
+ "data-invalid": u ? !0 : void 0,
968
+ children: [
969
+ /* @__PURE__ */ N(
970
+ "button",
971
+ {
972
+ type: "button",
973
+ id: t,
974
+ className: "cds--list-box__field",
975
+ role: "combobox",
976
+ "aria-expanded": T,
977
+ "aria-haspopup": "listbox",
978
+ "aria-controls": Z,
979
+ "aria-label": Pe,
980
+ "aria-activedescendant": T && I >= 0 ? `${t}-item-${I}` : void 0,
981
+ "aria-labelledby": f ? R : void 0,
982
+ "aria-describedby": $e || void 0,
983
+ "aria-invalid": U || void 0,
984
+ "aria-readonly": d || void 0,
985
+ disabled: l,
986
+ onClick: () => {
987
+ d || ie();
988
+ },
989
+ onKeyDown: Ee,
990
+ children: [
991
+ /* @__PURE__ */ e("span", { className: "cds--list-box__label", children: Le }),
992
+ U && /* @__PURE__ */ e(ve, {}),
993
+ ae && /* @__PURE__ */ e(ve, { warning: !0 }),
994
+ /* @__PURE__ */ e(
995
+ "div",
996
+ {
997
+ className: J(
998
+ "cds--list-box__menu-icon",
999
+ T && "cds--list-box__menu-icon--open"
1000
+ ),
1001
+ children: /* @__PURE__ */ e(en, {})
1002
+ }
1003
+ )
1004
+ ]
1005
+ }
1006
+ ),
1007
+ /* @__PURE__ */ e(
1008
+ "ul",
1009
+ {
1010
+ id: Z,
1011
+ className: "cds--list-box__menu",
1012
+ role: "listbox",
1013
+ "aria-labelledby": f ? R : void 0,
1014
+ tabIndex: -1,
1015
+ children: a.map((S, E) => {
1016
+ const j = (A == null ? void 0 : A.id) === S.id;
1017
+ return /* @__PURE__ */ e(
1018
+ "li",
1019
+ {
1020
+ role: "presentation",
1021
+ className: J(
1022
+ "cds--list-box__menu-item",
1023
+ j && "cds--list-box__menu-item--active",
1024
+ T && I === E && "cds--list-box__menu-item--highlighted"
1025
+ ),
1026
+ children: /* @__PURE__ */ e(
1027
+ "div",
1028
+ {
1029
+ id: `${t}-item-${E}`,
1030
+ role: "option",
1031
+ "aria-selected": j,
1032
+ className: "cds--list-box__menu-item__option",
1033
+ onMouseDown: (We) => {
1034
+ We.preventDefault();
1035
+ },
1036
+ onClick: () => {
1037
+ l || d || (ce(S), D(!1));
1038
+ },
1039
+ children: S.label
1040
+ }
1041
+ )
1042
+ },
1043
+ S.id
1044
+ );
1045
+ })
1046
+ }
1047
+ )
1048
+ ]
1049
+ }
1050
+ ),
1051
+ me ? /* @__PURE__ */ e("div", { id: G, className: "cds--form__helper-text", children: b }) : null,
1052
+ U ? /* @__PURE__ */ e(
1053
+ "div",
1054
+ {
1055
+ id: q,
1056
+ className: "cds--form-requirement",
1057
+ role: "alert",
1058
+ children: g
1059
+ }
1060
+ ) : null,
1061
+ ae ? /* @__PURE__ */ e(
1062
+ "div",
1063
+ {
1064
+ id: q,
1065
+ className: "cds--form-requirement",
1066
+ role: "alert",
1067
+ children: h
1068
+ }
1069
+ ) : null
1070
+ ] });
1071
+ }
1072
+ );
1073
+ nn.displayName = "Dropdown";
1074
+ function ne(...r) {
1075
+ return r.filter(Boolean).join(" ");
1076
+ }
1077
+ const tn = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
1078
+ function ye(r) {
1079
+ return Array.from(r.querySelectorAll(tn)).filter(
1080
+ (n) => n.offsetParent !== null || n === document.activeElement
1081
+ );
1082
+ }
1083
+ const xn = z.forwardRef(
1084
+ function({
1085
+ open: n,
1086
+ onRequestClose: o,
1087
+ onRequestSubmit: c,
1088
+ modalLabel: t,
1089
+ modalHeading: a,
1090
+ primaryButtonText: s,
1091
+ secondaryButtonText: i,
1092
+ primaryButtonDisabled: f,
1093
+ secondaryButtons: b,
1094
+ danger: g,
1095
+ preventCloseOnClickOutside: h,
1096
+ size: l = "md",
1097
+ passiveModal: u,
1098
+ hasScrollingContent: p,
1099
+ children: v,
1100
+ className: m,
1101
+ ...y
1102
+ }, d) {
1103
+ const k = O(), x = O(), _ = F(null), $ = M(
1104
+ (I) => {
1105
+ _.current = I, typeof d == "function" ? d(I) : d && (d.current = I);
1106
+ },
1107
+ [d]
1108
+ ), B = l === "md" ? "" : `cds--modal-container--${l}`, w = Array.isArray(b) && b.length === 2, C = M(() => {
1109
+ o == null || o();
1110
+ }, [o]);
1111
+ V(() => {
1112
+ if (!n)
1113
+ return;
1114
+ function I(H) {
1115
+ H.key === "Escape" && (H.stopPropagation(), C());
1116
+ }
1117
+ return document.addEventListener("keydown", I), () => document.removeEventListener("keydown", I);
1118
+ }, [n, C]), V(() => {
1119
+ if (!n || !_.current)
1120
+ return;
1121
+ const I = _.current, P = ye(I)[0];
1122
+ P == null || P.focus();
1123
+ function K(R) {
1124
+ if (R.key !== "Tab" || !_.current)
1125
+ return;
1126
+ const G = ye(_.current);
1127
+ if (G.length === 0)
1128
+ return;
1129
+ const q = G[0], Z = G[G.length - 1], L = document.activeElement;
1130
+ R.shiftKey ? (L === q || !_.current.contains(L)) && (R.preventDefault(), Z.focus()) : L === Z && (R.preventDefault(), q.focus());
1131
+ }
1132
+ return document.addEventListener("keydown", K), () => document.removeEventListener("keydown", K);
1133
+ }, [n]);
1134
+ function A(I) {
1135
+ h || I.target === I.currentTarget && C();
1136
+ }
1137
+ if (typeof document > "u" || !n)
1138
+ return null;
1139
+ const T = [t && x, a && k].filter(Boolean).join(" ") || void 0, D = /* @__PURE__ */ e(
1140
+ "div",
1141
+ {
1142
+ ...y,
1143
+ ref: $,
1144
+ className: ne("cds--modal", n && "cds--modal-is-visible", m),
1145
+ role: "presentation",
1146
+ onMouseDown: A,
1147
+ children: /* @__PURE__ */ N(
1148
+ "div",
1149
+ {
1150
+ className: ne("cds--modal-container", B),
1151
+ role: "dialog",
1152
+ "aria-modal": "true",
1153
+ "aria-labelledby": T,
1154
+ children: [
1155
+ /* @__PURE__ */ N("div", { className: "cds--modal-header", children: [
1156
+ t ? /* @__PURE__ */ e("p", { className: "cds--modal-header__label", id: x, children: t }) : null,
1157
+ a ? /* @__PURE__ */ e("h2", { className: "cds--modal-header__heading", id: k, children: a }) : null,
1158
+ /* @__PURE__ */ e(
1159
+ "button",
1160
+ {
1161
+ type: "button",
1162
+ "aria-label": "Close",
1163
+ className: "cds--modal-close",
1164
+ onClick: C,
1165
+ children: /* @__PURE__ */ e(
1166
+ "svg",
1167
+ {
1168
+ className: "cds--modal-close__icon",
1169
+ "aria-hidden": "true",
1170
+ width: 20,
1171
+ height: 20,
1172
+ viewBox: "0 0 32 32",
1173
+ children: /* @__PURE__ */ e("path", { d: "M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z" })
1174
+ }
1175
+ )
1176
+ }
1177
+ )
1178
+ ] }),
1179
+ /* @__PURE__ */ e(
1180
+ "div",
1181
+ {
1182
+ className: ne(
1183
+ "cds--modal-content",
1184
+ p && "cds--modal-scroll-content"
1185
+ ),
1186
+ ...p ? {
1187
+ tabIndex: 0,
1188
+ role: "region",
1189
+ "aria-labelledby": T
1190
+ } : {},
1191
+ children: v
1192
+ }
1193
+ ),
1194
+ u ? null : /* @__PURE__ */ N(
1195
+ "div",
1196
+ {
1197
+ className: ne(
1198
+ "cds--modal-footer",
1199
+ w && "cds--modal-footer--three-button"
1200
+ ),
1201
+ children: [
1202
+ Array.isArray(b) && b.length > 0 && b.length <= 2 ? b.map((I, H) => /* @__PURE__ */ e(z.Fragment, { children: I }, H)) : i && /* @__PURE__ */ e(
1203
+ "button",
1204
+ {
1205
+ type: "button",
1206
+ className: "cds--btn cds--btn--secondary",
1207
+ onClick: C,
1208
+ children: i
1209
+ }
1210
+ ),
1211
+ s ? /* @__PURE__ */ e(
1212
+ "button",
1213
+ {
1214
+ type: "button",
1215
+ className: ne(
1216
+ "cds--btn",
1217
+ g ? "cds--btn--danger" : "cds--btn--primary"
1218
+ ),
1219
+ disabled: f,
1220
+ onClick: (I) => {
1221
+ c == null || c(I);
1222
+ },
1223
+ children: s
1224
+ }
1225
+ ) : null
1226
+ ]
1227
+ }
1228
+ )
1229
+ ]
1230
+ }
1231
+ )
1232
+ }
1233
+ );
1234
+ return Oe(D, document.body);
1235
+ }
1236
+ );
1237
+ function ke(...r) {
1238
+ return r.filter(Boolean).join(" ");
1239
+ }
1240
+ function Se(r) {
1241
+ return r === "error" ? "alert" : "status";
1242
+ }
1243
+ function Be({ kind: r }) {
1244
+ const n = {
1245
+ "aria-hidden": !0,
1246
+ width: 20,
1247
+ height: 20,
1248
+ viewBox: "0 0 32 32",
1249
+ fill: "currentColor",
1250
+ focusable: "false"
1251
+ };
1252
+ switch (r) {
1253
+ case "success":
1254
+ return /* @__PURE__ */ e("svg", { ...n, children: /* @__PURE__ */ e("path", { d: "M16 2a14 14 0 1014 14A14.016 14.016 0 0016 2zm-2 19.59l-5-5L10.59 15 14 18.41 22.59 9.82 24 11.23z" }) });
1255
+ case "info":
1256
+ case "info-square":
1257
+ return /* @__PURE__ */ e("svg", { ...n, children: /* @__PURE__ */ e("path", { d: "M16 2a14 14 0 1014 14A14.016 14.016 0 0016 2zm1 22h-2v-9h2zm0-12h-2V8h2z" }) });
1258
+ case "warning":
1259
+ case "warning-alt":
1260
+ return /* @__PURE__ */ e("svg", { ...n, children: /* @__PURE__ */ e("path", { d: "M16 2L2 28h28zm0 4.2L25.8 26H6.2zm-1 8v6h2v-6zm0 8v2h2v-2z" }) });
1261
+ case "error":
1262
+ default:
1263
+ return /* @__PURE__ */ e("svg", { ...n, children: /* @__PURE__ */ e("path", { d: "M16 2a14 14 0 1014 14A14.016 14.016 0 0016 2zm-1 6h2v10h-2zm0 12h2v2h-2z" }) });
1264
+ }
1265
+ }
1266
+ const wn = z.forwardRef(function({
1267
+ kind: n = "info",
1268
+ title: o,
1269
+ subtitle: c,
1270
+ hideCloseButton: t,
1271
+ onClose: a,
1272
+ lowContrast: s,
1273
+ role: i,
1274
+ statusIconDescription: f = "notification",
1275
+ className: b,
1276
+ children: g,
1277
+ ...h
1278
+ }, l) {
1279
+ const u = i ?? Se(n);
1280
+ return /* @__PURE__ */ N(
1281
+ "div",
1282
+ {
1283
+ ...h,
1284
+ ref: l,
1285
+ role: u,
1286
+ className: ke(
1287
+ "cds--inline-notification",
1288
+ `cds--inline-notification--${n}`,
1289
+ s && "cds--inline-notification--low-contrast",
1290
+ b
1291
+ ),
1292
+ children: [
1293
+ /* @__PURE__ */ N("div", { className: "cds--inline-notification__details", children: [
1294
+ /* @__PURE__ */ e(
1295
+ "div",
1296
+ {
1297
+ className: "cds--inline-notification__icon",
1298
+ "aria-label": f,
1299
+ children: /* @__PURE__ */ e(Be, { kind: n })
1300
+ }
1301
+ ),
1302
+ /* @__PURE__ */ N("div", { className: "cds--inline-notification__text-wrapper", children: [
1303
+ /* @__PURE__ */ e("p", { className: "cds--inline-notification__title", children: o }),
1304
+ c ? /* @__PURE__ */ e("div", { className: "cds--inline-notification__subtitle", children: c }) : null,
1305
+ g
1306
+ ] })
1307
+ ] }),
1308
+ t ? null : /* @__PURE__ */ e(
1309
+ "button",
1310
+ {
1311
+ type: "button",
1312
+ "aria-label": "closes notification",
1313
+ className: "cds--inline-notification__close-button",
1314
+ onClick: a,
1315
+ children: /* @__PURE__ */ e("span", { className: "cds--inline-notification__close-icon", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: 16, height: 16, viewBox: "0 0 32 32", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z" }) }) })
1316
+ }
1317
+ )
1318
+ ]
1319
+ }
1320
+ );
1321
+ }), _n = z.forwardRef(function({
1322
+ kind: n = "info",
1323
+ title: o,
1324
+ subtitle: c,
1325
+ caption: t,
1326
+ timeout: a,
1327
+ hideCloseButton: s,
1328
+ onClose: i,
1329
+ lowContrast: f,
1330
+ role: b,
1331
+ statusIconDescription: g = "notification",
1332
+ className: h,
1333
+ children: l,
1334
+ ...u
1335
+ }, p) {
1336
+ const v = b ?? Se(n), m = F(i);
1337
+ return m.current = i, V(() => {
1338
+ if (a == null || a <= 0)
1339
+ return;
1340
+ const y = window.setTimeout(() => {
1341
+ var d;
1342
+ (d = m.current) == null || d.call(m);
1343
+ }, a);
1344
+ return () => window.clearTimeout(y);
1345
+ }, [a]), /* @__PURE__ */ N(
1346
+ "div",
1347
+ {
1348
+ ...u,
1349
+ ref: p,
1350
+ role: v,
1351
+ className: ke(
1352
+ "cds--toast-notification",
1353
+ `cds--toast-notification--${n}`,
1354
+ f && "cds--toast-notification--low-contrast",
1355
+ h
1356
+ ),
1357
+ children: [
1358
+ /* @__PURE__ */ e(
1359
+ "div",
1360
+ {
1361
+ className: "cds--toast-notification__icon",
1362
+ "aria-label": g,
1363
+ children: /* @__PURE__ */ e(Be, { kind: n })
1364
+ }
1365
+ ),
1366
+ /* @__PURE__ */ N("div", { className: "cds--toast-notification__content", children: [
1367
+ /* @__PURE__ */ e("p", { className: "cds--toast-notification__title", children: o }),
1368
+ c ? /* @__PURE__ */ e("div", { className: "cds--toast-notification__subtitle", children: c }) : null,
1369
+ t ? /* @__PURE__ */ e("div", { className: "cds--toast-notification__caption", children: t }) : null,
1370
+ l
1371
+ ] }),
1372
+ s ? null : /* @__PURE__ */ e(
1373
+ "button",
1374
+ {
1375
+ type: "button",
1376
+ "aria-label": "closes notification",
1377
+ className: "cds--toast-notification__close-button",
1378
+ onClick: i,
1379
+ children: /* @__PURE__ */ e("span", { className: "cds--toast-notification__close-icon", "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: 16, height: 16, viewBox: "0 0 32 32", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z" }) }) })
1380
+ }
1381
+ )
1382
+ ]
1383
+ }
1384
+ );
1385
+ });
1386
+ function be(...r) {
1387
+ return r.filter(Boolean).join(" ");
1388
+ }
1389
+ const Ie = X(null);
1390
+ function ge(r) {
1391
+ const n = Q(Ie);
1392
+ if (!n)
1393
+ throw new Error(`${r} must be used within <Tabs>`);
1394
+ return n;
1395
+ }
1396
+ const Te = X(-1), Ce = X(-1), Ae = X(
1397
+ null
1398
+ ), Nn = z.forwardRef(function({
1399
+ selectedIndex: n,
1400
+ defaultSelectedIndex: o = 0,
1401
+ onChange: c,
1402
+ children: t,
1403
+ className: a,
1404
+ ...s
1405
+ }, i) {
1406
+ const f = O().replace(/:/g, ""), b = n !== void 0, [g, h] = W(o), l = b ? n : g, u = M(
1407
+ (v) => {
1408
+ b || h(v), c == null || c(v);
1409
+ },
1410
+ [b, c]
1411
+ ), p = ue(
1412
+ () => ({
1413
+ baseId: f,
1414
+ selectedIndex: l,
1415
+ setSelectedIndex: u
1416
+ }),
1417
+ [f, l, u]
1418
+ );
1419
+ return /* @__PURE__ */ e(Ie.Provider, { value: p, children: /* @__PURE__ */ e("div", { ref: i, className: a, ...s, children: t }) });
1420
+ }), kn = z.forwardRef(
1421
+ function({
1422
+ activation: n = "automatic",
1423
+ "aria-label": o,
1424
+ contained: c = !1,
1425
+ children: t,
1426
+ className: a,
1427
+ ...s
1428
+ }, i) {
1429
+ const { selectedIndex: f, setSelectedIndex: b } = ge("TabList"), [g, h] = W(f), l = F(null), u = F(null);
1430
+ V(() => {
1431
+ h(f);
1432
+ }, [f]);
1433
+ const p = M(
1434
+ (d) => {
1435
+ l.current = d, typeof i == "function" ? i(d) : i && (i.current = d);
1436
+ },
1437
+ [i]
1438
+ ), v = ue(
1439
+ () => ({
1440
+ activation: n,
1441
+ focusedTabIndex: g,
1442
+ setFocusedTabIndex: h
1443
+ }),
1444
+ [n, g]
1445
+ ), m = M(() => {
1446
+ const d = u.current;
1447
+ return d ? Array.from(
1448
+ d.querySelectorAll(
1449
+ 'button[role="tab"]:not([disabled])'
1450
+ )
1451
+ ) : [];
1452
+ }, []), y = M(
1453
+ (d) => {
1454
+ if (d.key !== "ArrowLeft" && d.key !== "ArrowRight")
1455
+ return;
1456
+ d.preventDefault();
1457
+ const k = m();
1458
+ if (k.length === 0)
1459
+ return;
1460
+ const x = document.activeElement, _ = k.findIndex((T) => T === x);
1461
+ if (_ < 0)
1462
+ return;
1463
+ const $ = d.key === "ArrowRight" ? 1 : -1;
1464
+ let B = _ + $;
1465
+ B < 0 && (B = k.length - 1), B >= k.length && (B = 0);
1466
+ const w = k[B], C = w == null ? void 0 : w.getAttribute("data-mk-tab-index"), A = C != null ? Number(C) : B;
1467
+ w == null || w.focus(), n === "automatic" && b(A);
1468
+ },
1469
+ [n, m, b]
1470
+ );
1471
+ return /* @__PURE__ */ e(
1472
+ "div",
1473
+ {
1474
+ className: be("cds--tabs", c && "cds--tabs--contained", a),
1475
+ ref: p,
1476
+ children: /* @__PURE__ */ e(Ae.Provider, { value: v, children: /* @__PURE__ */ e(
1477
+ "div",
1478
+ {
1479
+ ...s,
1480
+ ref: u,
1481
+ role: "tablist",
1482
+ "aria-label": o,
1483
+ className: "cds--tab--list",
1484
+ onKeyDown: y,
1485
+ children: /* @__PURE__ */ e("div", { className: "cds--tabs__nav", children: fe.map(
1486
+ t,
1487
+ (d, k) => oe(d) ? /* @__PURE__ */ e(Te.Provider, { value: k, children: d }, k) : d
1488
+ ) })
1489
+ }
1490
+ ) })
1491
+ }
1492
+ );
1493
+ }
1494
+ ), Sn = z.forwardRef(function({ disabled: n, children: o, className: c, onClick: t, onKeyDown: a, onFocus: s, ...i }, f) {
1495
+ const { baseId: b, selectedIndex: g, setSelectedIndex: h } = ge("Tab"), l = Q(Te), u = Q(Ae), p = `${b}-tab-${l}`, v = `${b}-panel-${l}`, m = g === l, y = (u == null ? void 0 : u.focusedTabIndex) ?? g, d = u == null ? void 0 : u.setFocusedTabIndex, k = (x) => {
1496
+ a == null || a(x), !x.defaultPrevented && (u == null ? void 0 : u.activation) === "manual" && (x.key === "Enter" || x.key === " ") && (x.preventDefault(), n || h(l));
1497
+ };
1498
+ return /* @__PURE__ */ e(
1499
+ "button",
1500
+ {
1501
+ ...i,
1502
+ ref: f,
1503
+ type: "button",
1504
+ role: "tab",
1505
+ id: p,
1506
+ "data-mk-tab-index": l,
1507
+ "aria-controls": v,
1508
+ "aria-selected": m,
1509
+ "aria-disabled": n || void 0,
1510
+ disabled: n,
1511
+ tabIndex: y === l ? 0 : -1,
1512
+ className: be(
1513
+ "cds--tabs__nav-item",
1514
+ "cds--tabs__nav-link",
1515
+ m && "cds--tabs__nav-item--selected",
1516
+ n && "cds--tabs__nav-item--disabled",
1517
+ c
1518
+ ),
1519
+ onFocus: (x) => {
1520
+ d == null || d(l), s == null || s(x);
1521
+ },
1522
+ onClick: (x) => {
1523
+ n || h(l), t == null || t(x);
1524
+ },
1525
+ onKeyDown: k,
1526
+ children: /* @__PURE__ */ e("span", { className: "cds--tabs__nav-item-label-wrapper", children: /* @__PURE__ */ e("span", { className: "cds--tabs__nav-item-label", children: o }) })
1527
+ }
1528
+ );
1529
+ }), Bn = z.forwardRef(
1530
+ function({ children: n, className: o, ...c }, t) {
1531
+ return /* @__PURE__ */ e("div", { ref: t, className: o, ...c, children: fe.map(
1532
+ n,
1533
+ (a, s) => oe(a) ? /* @__PURE__ */ e(Ce.Provider, { value: s, children: a }, s) : a
1534
+ ) });
1535
+ }
1536
+ ), In = z.forwardRef(
1537
+ function({ children: n, className: o, ...c }, t) {
1538
+ const { baseId: a, selectedIndex: s } = ge("TabPanel"), i = Q(Ce), f = `${a}-tab-${i}`, b = `${a}-panel-${i}`;
1539
+ return /* @__PURE__ */ e(
1540
+ "div",
1541
+ {
1542
+ ...c,
1543
+ ref: t,
1544
+ id: b,
1545
+ role: "tabpanel",
1546
+ "aria-labelledby": f,
1547
+ hidden: !(s === i),
1548
+ className: be("cds--tab-content", o),
1549
+ children: n
1550
+ }
1551
+ );
1552
+ }
1553
+ );
1554
+ function ze(...r) {
1555
+ return r.filter(Boolean).join(" ");
1556
+ }
1557
+ const He = X(!1), Tn = z.forwardRef(
1558
+ function({
1559
+ align: n = "start",
1560
+ size: o = "md",
1561
+ disabled: c = !1,
1562
+ children: t,
1563
+ className: a,
1564
+ ...s
1565
+ }, i) {
1566
+ return /* @__PURE__ */ e(He.Provider, { value: c, children: /* @__PURE__ */ e(
1567
+ "ul",
1568
+ {
1569
+ ...s,
1570
+ ref: i,
1571
+ className: ze(
1572
+ "cds--accordion",
1573
+ `cds--accordion--${o}`,
1574
+ `cds--accordion--${n}`,
1575
+ a
1576
+ ),
1577
+ children: t
1578
+ }
1579
+ ) });
1580
+ }
1581
+ ), Cn = z.forwardRef(
1582
+ function({
1583
+ title: n,
1584
+ open: o,
1585
+ defaultOpen: c = !1,
1586
+ disabled: t,
1587
+ onHeadingClick: a,
1588
+ children: s,
1589
+ className: i,
1590
+ ...f
1591
+ }, b) {
1592
+ const h = Q(He) || !!t, l = O().replace(/:/g, ""), u = o !== void 0, [p, v] = W(c), m = u ? !!o : p;
1593
+ return /* @__PURE__ */ N(
1594
+ "li",
1595
+ {
1596
+ ...f,
1597
+ ref: b,
1598
+ className: ze(
1599
+ "cds--accordion__item",
1600
+ m && "cds--accordion__item--active",
1601
+ h && "cds--accordion__item--disabled",
1602
+ i
1603
+ ),
1604
+ children: [
1605
+ /* @__PURE__ */ N(
1606
+ "button",
1607
+ {
1608
+ type: "button",
1609
+ className: "cds--accordion__heading",
1610
+ "aria-expanded": m,
1611
+ "aria-controls": l,
1612
+ disabled: h,
1613
+ onClick: (y) => {
1614
+ if (h)
1615
+ return;
1616
+ const d = !m;
1617
+ a == null || a(y, d), u || v(d);
1618
+ },
1619
+ children: [
1620
+ /* @__PURE__ */ e(
1621
+ "svg",
1622
+ {
1623
+ className: "cds--accordion__arrow",
1624
+ "aria-hidden": "true",
1625
+ width: 16,
1626
+ height: 16,
1627
+ viewBox: "0 0 16 16",
1628
+ focusable: "false",
1629
+ children: /* @__PURE__ */ e("path", { d: "M8 11L3 6h10z", fill: "currentColor" })
1630
+ }
1631
+ ),
1632
+ /* @__PURE__ */ e("div", { className: "cds--accordion__title", children: n })
1633
+ ]
1634
+ }
1635
+ ),
1636
+ /* @__PURE__ */ e("div", { className: "cds--accordion__wrapper", children: /* @__PURE__ */ e("div", { className: "cds--accordion__content", id: l, children: s }) })
1637
+ ]
1638
+ }
1639
+ );
1640
+ }
1641
+ );
1642
+ function se(...r) {
1643
+ return r.filter(Boolean).join(" ");
1644
+ }
1645
+ const An = z.forwardRef(
1646
+ function({
1647
+ align: n = "top",
1648
+ label: o,
1649
+ description: c,
1650
+ children: t,
1651
+ enterDelayMs: a = 100,
1652
+ leaveDelayMs: s = 300,
1653
+ defaultOpen: i = !1,
1654
+ className: f,
1655
+ ...b
1656
+ }, g) {
1657
+ const h = O().replace(/:/g, ""), [l, u] = W(i), p = F(null), v = F(null), m = M(() => {
1658
+ p.current != null && (clearTimeout(p.current), p.current = null);
1659
+ }, []), y = M(() => {
1660
+ v.current != null && (clearTimeout(v.current), v.current = null);
1661
+ }, []), d = M(() => {
1662
+ y(), m(), p.current = setTimeout(() => {
1663
+ u(!0), p.current = null;
1664
+ }, a);
1665
+ }, [m, y, a]), k = M(() => {
1666
+ m(), y(), v.current = setTimeout(() => {
1667
+ u(!1), v.current = null;
1668
+ }, s);
1669
+ }, [m, y, s]);
1670
+ V(() => () => {
1671
+ m(), y();
1672
+ }, [m, y]);
1673
+ const x = o ?? c;
1674
+ if (!oe(t))
1675
+ return null;
1676
+ const _ = t.props, $ = {
1677
+ ..._,
1678
+ className: se("cds--tooltip-trigger", _.className),
1679
+ "aria-describedby": l ? h : void 0,
1680
+ onMouseEnter: (B) => {
1681
+ var w;
1682
+ (w = _.onMouseEnter) == null || w.call(_, B), d();
1683
+ },
1684
+ onMouseLeave: (B) => {
1685
+ var w;
1686
+ (w = _.onMouseLeave) == null || w.call(_, B), k();
1687
+ },
1688
+ onFocus: (B) => {
1689
+ var w;
1690
+ (w = _.onFocus) == null || w.call(_, B), d();
1691
+ },
1692
+ onBlur: (B) => {
1693
+ var w;
1694
+ (w = _.onBlur) == null || w.call(_, B), k();
1695
+ }
1696
+ };
1697
+ return /* @__PURE__ */ N(
1698
+ "span",
1699
+ {
1700
+ ...b,
1701
+ ref: g,
1702
+ className: se(
1703
+ "cds--popover-container",
1704
+ "cds--tooltip",
1705
+ "cds--popover--caret",
1706
+ "cds--popover--drop-shadow",
1707
+ "cds--popover--high-contrast",
1708
+ l && "cds--popover--open",
1709
+ `cds--popover--${n}`,
1710
+ f
1711
+ ),
1712
+ children: [
1713
+ /* @__PURE__ */ e("div", { className: "cds--tooltip-trigger__wrapper", children: je(t, $) }),
1714
+ /* @__PURE__ */ N("span", { className: "cds--popover", children: [
1715
+ /* @__PURE__ */ e(
1716
+ "span",
1717
+ {
1718
+ className: se("cds--popover-content", "cds--tooltip-content"),
1719
+ id: h,
1720
+ role: "tooltip",
1721
+ children: x
1722
+ }
1723
+ ),
1724
+ /* @__PURE__ */ e("span", { className: "cds--popover-caret", "aria-hidden": "true" })
1725
+ ] })
1726
+ ]
1727
+ }
1728
+ );
1729
+ }
1730
+ ), zn = "#000000", Hn = "#ffffff", Mn = {
1731
+ 10: "#fcf4d6",
1732
+ 20: "#fddc69",
1733
+ 30: "#f1c21b",
1734
+ 40: "#d2a106",
1735
+ 50: "#b28600",
1736
+ 60: "#8e6a00",
1737
+ 70: "#684e00",
1738
+ 80: "#483700",
1739
+ 90: "#302400",
1740
+ 100: "#1c1500"
1741
+ }, Dn = {
1742
+ 10: "#fff2e8",
1743
+ 20: "#ffd9be",
1744
+ 30: "#ffb784",
1745
+ 40: "#ff832b",
1746
+ 50: "#eb6200",
1747
+ 60: "#ba4e00",
1748
+ 70: "#8a3800",
1749
+ 80: "#5e2900",
1750
+ 90: "#3e1a00",
1751
+ 100: "#231000"
1752
+ }, $n = {
1753
+ 10: "#fff1f1",
1754
+ 20: "#ffd7d9",
1755
+ 30: "#ffb3b8",
1756
+ 40: "#ff8389",
1757
+ 50: "#fa4d56",
1758
+ 60: "#da1e28",
1759
+ 70: "#a2191f",
1760
+ 80: "#750e13",
1761
+ 90: "#520408",
1762
+ 100: "#2d0709"
1763
+ }, En = {
1764
+ 10: "#fff0f7",
1765
+ 20: "#ffd6e8",
1766
+ 30: "#ffafd2",
1767
+ 40: "#ff7eb6",
1768
+ 50: "#ee5396",
1769
+ 60: "#d02670",
1770
+ 70: "#9f1853",
1771
+ 80: "#740937",
1772
+ 90: "#510224",
1773
+ 100: "#2a0a18"
1774
+ }, Ln = {
1775
+ 10: "#f6f2ff",
1776
+ 20: "#e8daff",
1777
+ 30: "#d4bbff",
1778
+ 40: "#be95ff",
1779
+ 50: "#a56eff",
1780
+ 60: "#8a3ffc",
1781
+ 70: "#6929c4",
1782
+ 80: "#491d8b",
1783
+ 90: "#31135e",
1784
+ 100: "#1c0f30"
1785
+ }, Pn = {
1786
+ 10: "#edf5ff",
1787
+ 20: "#d0e2ff",
1788
+ 30: "#a6c8ff",
1789
+ 40: "#78a9ff",
1790
+ 50: "#4589ff",
1791
+ 60: "#0f62fe",
1792
+ 70: "#0043ce",
1793
+ 80: "#002d9c",
1794
+ 90: "#001d6c",
1795
+ 100: "#001141"
1796
+ }, Wn = {
1797
+ 10: "#e5f6ff",
1798
+ 20: "#bae6ff",
1799
+ 30: "#82cfff",
1800
+ 40: "#33b1ff",
1801
+ 50: "#1192e8",
1802
+ 60: "#0072c3",
1803
+ 70: "#00539a",
1804
+ 80: "#003a6d",
1805
+ 90: "#012749",
1806
+ 100: "#061727"
1807
+ }, Rn = {
1808
+ 10: "#d9fbfb",
1809
+ 20: "#9ef0f0",
1810
+ 30: "#3ddbd9",
1811
+ 40: "#08bdba",
1812
+ 50: "#009d9a",
1813
+ 60: "#007d79",
1814
+ 70: "#005d5d",
1815
+ 80: "#004144",
1816
+ 90: "#022b30",
1817
+ 100: "#081a1c"
1818
+ }, jn = {
1819
+ 10: "#defbe6",
1820
+ 20: "#a7f0ba",
1821
+ 30: "#6fdc8c",
1822
+ 40: "#42be65",
1823
+ 50: "#24a148",
1824
+ 60: "#198038",
1825
+ 70: "#0e6027",
1826
+ 80: "#044317",
1827
+ 90: "#022d0d",
1828
+ 100: "#071908"
1829
+ }, On = {
1830
+ 10: "#f2f4f8",
1831
+ 20: "#dde1e6",
1832
+ 30: "#c1c7cd",
1833
+ 40: "#a2a9b0",
1834
+ 50: "#878d96",
1835
+ 60: "#697077",
1836
+ 70: "#4d5358",
1837
+ 80: "#343a3f",
1838
+ 90: "#21272a",
1839
+ 100: "#121619"
1840
+ }, Fn = {
1841
+ 10: "#f4f4f4",
1842
+ 20: "#e0e0e0",
1843
+ 30: "#c6c6c6",
1844
+ 40: "#a8a8a8",
1845
+ 50: "#8d8d8d",
1846
+ 60: "#6f6f6f",
1847
+ 70: "#525252",
1848
+ 80: "#393939",
1849
+ 90: "#262626",
1850
+ 100: "#161616"
1851
+ }, Gn = {
1852
+ 10: "#f7f3f2",
1853
+ 20: "#e5e0df",
1854
+ 30: "#cac5c4",
1855
+ 40: "#ada8a8",
1856
+ 50: "#8f8b8b",
1857
+ 60: "#726e6e",
1858
+ 70: "#565151",
1859
+ 80: "#3c3838",
1860
+ 90: "#272525",
1861
+ 100: "#171414"
1862
+ }, Me = {
1863
+ background: "#ffffff",
1864
+ backgroundInverse: "#393939",
1865
+ backgroundBrand: "#0f62fe",
1866
+ backgroundHover: "rgba(141,141,141,0.12)",
1867
+ backgroundActive: "rgba(141,141,141,0.5)",
1868
+ backgroundSelected: "rgba(141,141,141,0.2)",
1869
+ backgroundSelectedHover: "rgba(141,141,141,0.32)",
1870
+ layer01: "#f4f4f4",
1871
+ layer02: "#ffffff",
1872
+ layer03: "#f4f4f4",
1873
+ layerHover01: "#e8e8e8",
1874
+ layerHover02: "#e8e8e8",
1875
+ layerHover03: "#e8e8e8",
1876
+ layerActive01: "#c6c6c6",
1877
+ layerActive02: "#c6c6c6",
1878
+ layerActive03: "#c6c6c6",
1879
+ layerSelected01: "#e0e0e0",
1880
+ layerSelected02: "#e0e0e0",
1881
+ layerSelected03: "#e0e0e0",
1882
+ layerSelectedInverse: "#161616",
1883
+ layerAccent01: "#e0e0e0",
1884
+ layerAccent02: "#e0e0e0",
1885
+ layerAccent03: "#e0e0e0",
1886
+ field01: "#f4f4f4",
1887
+ field02: "#ffffff",
1888
+ field03: "#f4f4f4",
1889
+ fieldHover01: "#e8e8e8",
1890
+ fieldHover02: "#e8e8e8",
1891
+ fieldHover03: "#e8e8e8",
1892
+ borderSubtle00: "#e0e0e0",
1893
+ borderSubtle01: "#c6c6c6",
1894
+ borderSubtle02: "#e0e0e0",
1895
+ borderSubtle03: "#c6c6c6",
1896
+ borderStrong01: "#8d8d8d",
1897
+ borderStrong02: "#8d8d8d",
1898
+ borderStrong03: "#8d8d8d",
1899
+ borderInverse: "#161616",
1900
+ borderInteractive: "#0f62fe",
1901
+ borderDisabled: "#c6c6c6",
1902
+ textPrimary: "#161616",
1903
+ textSecondary: "#525252",
1904
+ textPlaceholder: "rgba(22,22,22,0.4)",
1905
+ textHelper: "#6f6f6f",
1906
+ textError: "#da1e28",
1907
+ textInverse: "#ffffff",
1908
+ textOnColor: "#ffffff",
1909
+ textOnColorDisabled: "#8d8d8d",
1910
+ textDisabled: "rgba(22,22,22,0.25)",
1911
+ linkPrimary: "#0f62fe",
1912
+ linkPrimaryHover: "#0043ce",
1913
+ linkSecondary: "#0043ce",
1914
+ linkInverse: "#78a9ff",
1915
+ linkVisited: "#8a3ffc",
1916
+ iconPrimary: "#161616",
1917
+ iconSecondary: "#525252",
1918
+ iconInverse: "#ffffff",
1919
+ iconOnColor: "#ffffff",
1920
+ iconOnColorDisabled: "#8d8d8d",
1921
+ iconDisabled: "rgba(22,22,22,0.25)",
1922
+ iconInteractive: "#0f62fe",
1923
+ supportError: "#da1e28",
1924
+ supportSuccess: "#24a148",
1925
+ supportWarning: "#f1c21b",
1926
+ supportInfo: "#0043ce",
1927
+ supportErrorInverse: "#fa4d56",
1928
+ supportSuccessInverse: "#42be65",
1929
+ supportWarningInverse: "#f1c21b",
1930
+ supportInfoInverse: "#4589ff",
1931
+ focus: "#0f62fe",
1932
+ focusInset: "#ffffff",
1933
+ focusInverse: "#ffffff",
1934
+ interactive: "#0f62fe",
1935
+ highlight: "#d0e2ff",
1936
+ toggleOff: "#8d8d8d",
1937
+ overlay: "rgba(0,0,0,0.5)",
1938
+ skeletonBackground: "#e8e8e8",
1939
+ skeletonElement: "#c6c6c6",
1940
+ buttonPrimaryBackground: "#0f62fe",
1941
+ buttonPrimaryHover: "#0050e6",
1942
+ buttonPrimaryActive: "#002d9c",
1943
+ buttonSecondaryBackground: "#393939",
1944
+ buttonSecondaryHover: "#474747",
1945
+ buttonSecondaryActive: "#6f6f6f",
1946
+ buttonTertiaryBackground: "transparent",
1947
+ buttonTertiaryHover: "#0353e9",
1948
+ buttonTertiaryActive: "#002d9c",
1949
+ buttonDangerBackground: "#da1e28",
1950
+ buttonDangerHover: "#b81922",
1951
+ buttonDangerActive: "#750e13",
1952
+ buttonDisabled: "#c6c6c6",
1953
+ notificationInfoBackground: "#edf5ff",
1954
+ notificationInfoBorder: "#0043ce",
1955
+ notificationSuccessBackground: "#defbe6",
1956
+ notificationSuccessBorder: "#24a148",
1957
+ notificationWarningBackground: "#fcf4d6",
1958
+ notificationWarningBorder: "#f1c21b",
1959
+ notificationErrorBackground: "#fff1f1",
1960
+ notificationErrorBorder: "#da1e28",
1961
+ tagBackgroundGray: "#e0e0e0",
1962
+ tagBackgroundCoolGray: "#dde1e6",
1963
+ tagBackgroundWarmGray: "#e5e0df",
1964
+ tagBackgroundRed: "#ffd7d9",
1965
+ tagBackgroundMagenta: "#ffd6e8",
1966
+ tagBackgroundPurple: "#e8daff",
1967
+ tagBackgroundBlue: "#d0e2ff",
1968
+ tagBackgroundCyan: "#bae6ff",
1969
+ tagBackgroundTeal: "#9ef0f0",
1970
+ tagBackgroundGreen: "#a7f0ba"
1971
+ }, an = {
1972
+ ...Me,
1973
+ background: "#f4f4f4",
1974
+ layer01: "#ffffff",
1975
+ layer02: "#f4f4f4",
1976
+ layer03: "#ffffff",
1977
+ field01: "#ffffff",
1978
+ field02: "#f4f4f4",
1979
+ field03: "#ffffff",
1980
+ layerHover01: "#e8e8e8",
1981
+ layerHover02: "#e8e8e8",
1982
+ layerHover03: "#e8e8e8"
1983
+ }, De = {
1984
+ background: "#262626",
1985
+ backgroundInverse: "#f4f4f4",
1986
+ backgroundBrand: "#0f62fe",
1987
+ backgroundHover: "rgba(141,141,141,0.16)",
1988
+ backgroundActive: "rgba(141,141,141,0.4)",
1989
+ backgroundSelected: "rgba(141,141,141,0.24)",
1990
+ backgroundSelectedHover: "rgba(141,141,141,0.32)",
1991
+ layer01: "#393939",
1992
+ layer02: "#525252",
1993
+ layer03: "#6f6f6f",
1994
+ layerHover01: "#474747",
1995
+ layerHover02: "#636363",
1996
+ layerHover03: "#5e5e5e",
1997
+ layerActive01: "#6f6f6f",
1998
+ layerActive02: "#8d8d8d",
1999
+ layerActive03: "#8d8d8d",
2000
+ layerSelected01: "#525252",
2001
+ layerSelected02: "#6f6f6f",
2002
+ layerSelected03: "#525252",
2003
+ layerSelectedInverse: "#f4f4f4",
2004
+ layerAccent01: "#525252",
2005
+ layerAccent02: "#6f6f6f",
2006
+ layerAccent03: "#525252",
2007
+ field01: "#393939",
2008
+ field02: "#525252",
2009
+ field03: "#6f6f6f",
2010
+ fieldHover01: "#474747",
2011
+ fieldHover02: "#636363",
2012
+ fieldHover03: "#5e5e5e",
2013
+ borderSubtle00: "#525252",
2014
+ borderSubtle01: "#6f6f6f",
2015
+ borderSubtle02: "#525252",
2016
+ borderSubtle03: "#6f6f6f",
2017
+ borderStrong01: "#8d8d8d",
2018
+ borderStrong02: "#a8a8a8",
2019
+ borderStrong03: "#8d8d8d",
2020
+ borderInverse: "#f4f4f4",
2021
+ borderInteractive: "#4589ff",
2022
+ borderDisabled: "#525252",
2023
+ textPrimary: "#f4f4f4",
2024
+ textSecondary: "#c6c6c6",
2025
+ textPlaceholder: "rgba(244,244,244,0.4)",
2026
+ textHelper: "#a8a8a8",
2027
+ textError: "#ff8389",
2028
+ textInverse: "#161616",
2029
+ textOnColor: "#ffffff",
2030
+ textOnColorDisabled: "#8d8d8d",
2031
+ textDisabled: "rgba(244,244,244,0.25)",
2032
+ linkPrimary: "#78a9ff",
2033
+ linkPrimaryHover: "#a6c8ff",
2034
+ linkSecondary: "#a6c8ff",
2035
+ linkInverse: "#0f62fe",
2036
+ linkVisited: "#be95ff",
2037
+ iconPrimary: "#f4f4f4",
2038
+ iconSecondary: "#c6c6c6",
2039
+ iconInverse: "#161616",
2040
+ iconOnColor: "#ffffff",
2041
+ iconOnColorDisabled: "#8d8d8d",
2042
+ iconDisabled: "rgba(244,244,244,0.25)",
2043
+ iconInteractive: "#ffffff",
2044
+ supportError: "#ff8389",
2045
+ supportSuccess: "#42be65",
2046
+ supportWarning: "#f1c21b",
2047
+ supportInfo: "#4589ff",
2048
+ supportErrorInverse: "#da1e28",
2049
+ supportSuccessInverse: "#24a148",
2050
+ supportWarningInverse: "#f1c21b",
2051
+ supportInfoInverse: "#0043ce",
2052
+ focus: "#ffffff",
2053
+ focusInset: "#161616",
2054
+ focusInverse: "#0f62fe",
2055
+ interactive: "#4589ff",
2056
+ highlight: "#002d9c",
2057
+ toggleOff: "#8d8d8d",
2058
+ overlay: "rgba(0,0,0,0.65)",
2059
+ skeletonBackground: "#333333",
2060
+ skeletonElement: "#525252",
2061
+ buttonPrimaryBackground: "#0f62fe",
2062
+ buttonPrimaryHover: "#0050e6",
2063
+ buttonPrimaryActive: "#002d9c",
2064
+ buttonSecondaryBackground: "#6f6f6f",
2065
+ buttonSecondaryHover: "#5e5e5e",
2066
+ buttonSecondaryActive: "#393939",
2067
+ buttonTertiaryBackground: "transparent",
2068
+ buttonTertiaryHover: "#f4f4f4",
2069
+ buttonTertiaryActive: "#c6c6c6",
2070
+ buttonDangerBackground: "#da1e28",
2071
+ buttonDangerHover: "#b81922",
2072
+ buttonDangerActive: "#750e13",
2073
+ buttonDisabled: "#525252",
2074
+ notificationInfoBackground: "#001d6c",
2075
+ notificationInfoBorder: "#4589ff",
2076
+ notificationSuccessBackground: "#022d0d",
2077
+ notificationSuccessBorder: "#42be65",
2078
+ notificationWarningBackground: "#302400",
2079
+ notificationWarningBorder: "#f1c21b",
2080
+ notificationErrorBackground: "#520408",
2081
+ notificationErrorBorder: "#ff8389",
2082
+ tagBackgroundGray: "#525252",
2083
+ tagBackgroundCoolGray: "#4d5358",
2084
+ tagBackgroundWarmGray: "#565151",
2085
+ tagBackgroundRed: "#750e13",
2086
+ tagBackgroundMagenta: "#740937",
2087
+ tagBackgroundPurple: "#491d8b",
2088
+ tagBackgroundBlue: "#002d9c",
2089
+ tagBackgroundCyan: "#003a6d",
2090
+ tagBackgroundTeal: "#004144",
2091
+ tagBackgroundGreen: "#044317"
2092
+ }, rn = {
2093
+ ...De,
2094
+ background: "#161616",
2095
+ layer01: "#262626",
2096
+ layer02: "#393939",
2097
+ layer03: "#525252",
2098
+ layerHover01: "#333333",
2099
+ layerHover02: "#474747",
2100
+ layerHover03: "#636363",
2101
+ layerActive01: "#525252",
2102
+ layerActive02: "#6f6f6f",
2103
+ layerActive03: "#8d8d8d",
2104
+ layerSelected01: "#393939",
2105
+ layerSelected02: "#525252",
2106
+ layerSelected03: "#6f6f6f",
2107
+ layerSelectedInverse: "#f4f4f4",
2108
+ layerAccent01: "#393939",
2109
+ layerAccent02: "#525252",
2110
+ layerAccent03: "#6f6f6f",
2111
+ field01: "#262626",
2112
+ field02: "#393939",
2113
+ field03: "#525252",
2114
+ fieldHover01: "#333333",
2115
+ fieldHover02: "#474747",
2116
+ fieldHover03: "#636363",
2117
+ borderSubtle00: "#393939",
2118
+ borderSubtle01: "#525252",
2119
+ borderSubtle02: "#393939",
2120
+ borderSubtle03: "#525252",
2121
+ borderStrong01: "#6f6f6f",
2122
+ borderStrong02: "#8d8d8d",
2123
+ borderStrong03: "#6f6f6f",
2124
+ borderDisabled: "#393939",
2125
+ skeletonBackground: "#292929",
2126
+ skeletonElement: "#393939"
2127
+ }, Vn = {
2128
+ white: Me,
2129
+ g10: an,
2130
+ g90: De,
2131
+ g100: rn
2132
+ }, xe = {
2133
+ sans: "'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif",
2134
+ serif: "'IBM Plex Serif', 'Georgia', Times, serif",
2135
+ mono: "'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace",
2136
+ sansCondensed: "'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif"
2137
+ }, Kn = {
2138
+ light: 300,
2139
+ regular: 400,
2140
+ semibold: 600
2141
+ }, qn = [
2142
+ 12,
2143
+ 14,
2144
+ 16,
2145
+ 18,
2146
+ 20,
2147
+ 24,
2148
+ 28,
2149
+ 32,
2150
+ 36,
2151
+ 42,
2152
+ 48,
2153
+ 54,
2154
+ 60,
2155
+ 68,
2156
+ 76,
2157
+ 84,
2158
+ 92,
2159
+ 102,
2160
+ 112,
2161
+ 122,
2162
+ 132,
2163
+ 144,
2164
+ 156
2165
+ ], Un = {
2166
+ label01: { fontSize: "0.75rem", fontWeight: 400, lineHeight: 1.33333, letterSpacing: "0.32px" },
2167
+ label02: { fontSize: "0.875rem", fontWeight: 400, lineHeight: 1.28572, letterSpacing: "0.16px" },
2168
+ helperText01: { fontSize: "0.75rem", fontWeight: 400, lineHeight: 1.33333, letterSpacing: "0.32px" },
2169
+ helperText02: { fontSize: "0.875rem", fontWeight: 400, lineHeight: 1.28572, letterSpacing: "0.16px" },
2170
+ bodyCompact01: { fontSize: "0.875rem", fontWeight: 400, lineHeight: 1.28572, letterSpacing: "0.16px" },
2171
+ bodyCompact02: { fontSize: "1rem", fontWeight: 400, lineHeight: 1.375, letterSpacing: "0px" },
2172
+ body01: { fontSize: "0.875rem", fontWeight: 400, lineHeight: 1.42857, letterSpacing: "0.16px" },
2173
+ body02: { fontSize: "1rem", fontWeight: 400, lineHeight: 1.5, letterSpacing: "0px" },
2174
+ code01: { fontSize: "0.75rem", fontWeight: 400, lineHeight: 1.33333, letterSpacing: "0.32px", fontFamily: xe.mono },
2175
+ code02: { fontSize: "0.875rem", fontWeight: 400, lineHeight: 1.42857, letterSpacing: "0.32px", fontFamily: xe.mono },
2176
+ headingCompact01: { fontSize: "0.875rem", fontWeight: 600, lineHeight: 1.28572, letterSpacing: "0.16px" },
2177
+ headingCompact02: { fontSize: "1rem", fontWeight: 600, lineHeight: 1.375, letterSpacing: "0px" },
2178
+ heading03: { fontSize: "1.25rem", fontWeight: 400, lineHeight: 1.4, letterSpacing: "0px" },
2179
+ heading04: { fontSize: "1.75rem", fontWeight: 400, lineHeight: 1.28572, letterSpacing: "0px" },
2180
+ heading05: { fontSize: "2rem", fontWeight: 400, lineHeight: 1.25, letterSpacing: "0px" },
2181
+ heading06: { fontSize: "2.625rem", fontWeight: 300, lineHeight: 1.199, letterSpacing: "0px" },
2182
+ heading07: { fontSize: "3.375rem", fontWeight: 300, lineHeight: 1.199, letterSpacing: "0px" }
2183
+ }, Yn = 8, Jn = {
2184
+ spacing01: "0.125rem",
2185
+ // 2px
2186
+ spacing02: "0.25rem",
2187
+ // 4px
2188
+ spacing03: "0.5rem",
2189
+ // 8px
2190
+ spacing04: "0.75rem",
2191
+ // 12px
2192
+ spacing05: "1rem",
2193
+ // 16px
2194
+ spacing06: "1.5rem",
2195
+ // 24px
2196
+ spacing07: "2rem",
2197
+ // 32px
2198
+ spacing08: "2.5rem",
2199
+ // 40px
2200
+ spacing09: "3rem",
2201
+ // 48px
2202
+ spacing10: "4rem",
2203
+ // 64px
2204
+ spacing11: "5rem",
2205
+ // 80px
2206
+ spacing12: "6rem",
2207
+ // 96px
2208
+ spacing13: "10rem"
2209
+ // 160px
2210
+ }, Qn = {
2211
+ xs: "1.5rem",
2212
+ // 24px
2213
+ sm: "2rem",
2214
+ // 32px
2215
+ md: "2.5rem",
2216
+ // 40px
2217
+ lg: "3rem",
2218
+ // 48px
2219
+ xl: "4rem",
2220
+ // 64px
2221
+ "2xl": "5rem"
2222
+ // 80px
2223
+ }, Xn = {
2224
+ sm: "1rem",
2225
+ // 16px
2226
+ md: "1.25rem"
2227
+ // 20px
2228
+ }, Zn = {
2229
+ fast01: "70ms",
2230
+ fast02: "110ms",
2231
+ moderate01: "150ms",
2232
+ moderate02: "240ms",
2233
+ slow01: "400ms",
2234
+ slow02: "700ms"
2235
+ }, et = {
2236
+ standard: {
2237
+ productive: "cubic-bezier(0.2, 0, 0.38, 0.9)",
2238
+ expressive: "cubic-bezier(0.4, 0.14, 0.3, 1)"
2239
+ },
2240
+ entrance: {
2241
+ productive: "cubic-bezier(0, 0, 0.38, 0.9)",
2242
+ expressive: "cubic-bezier(0, 0, 0.3, 1)"
2243
+ },
2244
+ exit: {
2245
+ productive: "cubic-bezier(0.2, 0, 1, 0.9)",
2246
+ expressive: "cubic-bezier(0.4, 0.14, 1, 1)"
2247
+ }
2248
+ }, nt = {
2249
+ sm: { width: "20rem", columns: 4, margin: "0" },
2250
+ // 320px
2251
+ md: { width: "42rem", columns: 8, margin: "1rem" },
2252
+ // 672px
2253
+ lg: { width: "66rem", columns: 16, margin: "1rem" },
2254
+ // 1056px
2255
+ xlg: { width: "82rem", columns: 16, margin: "1rem" },
2256
+ // 1312px
2257
+ max: { width: "99rem", columns: 16, margin: "1.5rem" }
2258
+ // 1584px
2259
+ };
2260
+ export {
2261
+ Tn as Accordion,
2262
+ Cn as AccordionItem,
2263
+ hn as Breadcrumb,
2264
+ pn as BreadcrumbItem,
2265
+ un as Button,
2266
+ Xe as Checkbox,
2267
+ vn as CheckboxGroup,
2268
+ nn as Dropdown,
2269
+ wn as InlineNotification,
2270
+ bn as Link,
2271
+ mn as Loading,
2272
+ xn as Modal,
2273
+ Ne as RadioButton,
2274
+ yn as RadioButtonGroup,
2275
+ Sn as Tab,
2276
+ kn as TabList,
2277
+ In as TabPanel,
2278
+ Bn as TabPanels,
2279
+ Nn as Tabs,
2280
+ gn as Tag,
2281
+ Qe as TextInput,
2282
+ fn as ThemeProvider,
2283
+ _n as ToastNotification,
2284
+ Ze as Toggle,
2285
+ An as Tooltip,
2286
+ zn as black,
2287
+ Pn as blue,
2288
+ nt as breakpoints,
2289
+ Qn as containerSizes,
2290
+ On as coolGray,
2291
+ Wn as cyan,
2292
+ Zn as duration,
2293
+ et as easings,
2294
+ xe as fontFamilies,
2295
+ Kn as fontWeights,
2296
+ rn as g100Theme,
2297
+ an as g10Theme,
2298
+ De as g90Theme,
2299
+ Fn as gray,
2300
+ jn as green,
2301
+ Xn as iconSizes,
2302
+ En as magenta,
2303
+ Yn as miniUnit,
2304
+ Dn as orange,
2305
+ Ln as purple,
2306
+ $n as red,
2307
+ Jn as spacing,
2308
+ Rn as teal,
2309
+ Vn as themes,
2310
+ qn as typeScale,
2311
+ Un as typeStyles,
2312
+ dn as useTheme,
2313
+ Gn as warmGray,
2314
+ Hn as white,
2315
+ Me as whiteTheme,
2316
+ Mn as yellow
2317
+ };