@imfusion/web-ui 0.11.1-dev.72.g7dc184e8 → 0.11.1-dev.73.g65836a33
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/CHANGELOG.md +2 -1
- package/dist/components/input/input.d.ts +2 -1
- package/dist/index.js +1005 -1005
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $A as t, Dt as n, F_ as r, Ma as i, Qj as a, Tb as o, Xo as s, Yt as c, bE as l, dA as ee, dy as u, en as d, fn as f, gM as te, hM as ne, ij as re, in as ie, ja as p, oE as ae, py as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
2
|
+
import { $A as t, Dt as n, F_ as r, Ma as i, Qj as a, Tb as o, Xo as s, Yt as c, bE as l, dA as ee, dy as u, en as d, fn as f, gM as te, hM as ne, ij as re, in as ie, ja as p, oE as ae, py as m, sA as oe, sy as se, tM as ce, vM as h, yv as le, zm as g } from "./icons-CMetKl2x.js";
|
|
3
|
+
import { t as _ } from "./meta-V_KyLeGn.js";
|
|
4
|
+
import { a as ue, i as de, n as fe, r as pe, t as me } from "./toggle-group-CVQzM3lQ.js";
|
|
5
|
+
import { a as v, i as he, n as ge, o as _e, r as ve, t as ye } from "./utils-J6vbjIt1.js";
|
|
6
6
|
import { i as be, n as xe, r as Se, t as Ce } from "./icon-button-kVghav2z.js";
|
|
7
7
|
import { a as we, o as Te, r as Ee, t as De } from "./code-72NzL5Cp.js";
|
|
8
8
|
import { n as Oe, t as ke } from "./toggle-group-ghJtINie.js";
|
|
@@ -106,7 +106,7 @@ function wt({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
106
106
|
children: [a, /* @__PURE__ */ x("span", {
|
|
107
107
|
className: Ct.icon,
|
|
108
108
|
"aria-hidden": !0,
|
|
109
|
-
children: /* @__PURE__ */ x(
|
|
109
|
+
children: /* @__PURE__ */ x(h, {
|
|
110
110
|
glyph: s,
|
|
111
111
|
size: 12
|
|
112
112
|
})
|
|
@@ -117,7 +117,7 @@ function wt({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
117
117
|
//#region src/components/chip-link/chip-link.meta.ts
|
|
118
118
|
var Tt = {
|
|
119
119
|
name: "ChipLink",
|
|
120
|
-
category:
|
|
120
|
+
category: _.buttons,
|
|
121
121
|
status: "stable",
|
|
122
122
|
description: "Link styled as a compact chip, with a directional icon for external references or in-app navigation. Also called a link chip or link badge.",
|
|
123
123
|
origin: "native"
|
|
@@ -131,8 +131,8 @@ function Ot({ value: e, label: t = "Copy", copiedLabel: n = "Copied", variant: r
|
|
|
131
131
|
"data-copied": o || void 0,
|
|
132
132
|
"aria-label": o ? n : t,
|
|
133
133
|
onClick: () => c(e),
|
|
134
|
-
className: (e) => b(Et.root,
|
|
135
|
-
children: /* @__PURE__ */ x(
|
|
134
|
+
className: (e) => b(Et.root, v(a.className, e)),
|
|
135
|
+
children: /* @__PURE__ */ x(h, {
|
|
136
136
|
glyph: l,
|
|
137
137
|
size: 15,
|
|
138
138
|
strokeWidth: 2,
|
|
@@ -145,7 +145,7 @@ Ot.displayName = "CopyButton";
|
|
|
145
145
|
//#region src/components/copy-button/copy-button.meta.ts
|
|
146
146
|
var kt = {
|
|
147
147
|
name: "CopyButton",
|
|
148
|
-
category:
|
|
148
|
+
category: _.buttons,
|
|
149
149
|
status: "stable",
|
|
150
150
|
description: "Copies a value to the clipboard and briefly shows confirmation. Also called a copy-to-clipboard button; commonly used with Code.Block.",
|
|
151
151
|
origin: "native",
|
|
@@ -172,7 +172,7 @@ function Mt({ glyph: e, description: t, kind: n = "external", endGlyph: r, child
|
|
|
172
172
|
children: [
|
|
173
173
|
e && /* @__PURE__ */ x("span", {
|
|
174
174
|
className: At.tile,
|
|
175
|
-
children: /* @__PURE__ */ x(
|
|
175
|
+
children: /* @__PURE__ */ x(h, {
|
|
176
176
|
glyph: e,
|
|
177
177
|
className: At.tileGlyph,
|
|
178
178
|
"aria-hidden": !0
|
|
@@ -188,7 +188,7 @@ function Mt({ glyph: e, description: t, kind: n = "external", endGlyph: r, child
|
|
|
188
188
|
children: t
|
|
189
189
|
})]
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */ x(
|
|
191
|
+
/* @__PURE__ */ x(h, {
|
|
192
192
|
glyph: r ?? (n === "external" ? f : c),
|
|
193
193
|
variant: "support",
|
|
194
194
|
className: At.end,
|
|
@@ -201,7 +201,7 @@ function Mt({ glyph: e, description: t, kind: n = "external", endGlyph: r, child
|
|
|
201
201
|
//#region src/components/rich-link/rich-link.meta.ts
|
|
202
202
|
var Nt = {
|
|
203
203
|
name: "RichLink",
|
|
204
|
-
category:
|
|
204
|
+
category: _.buttons,
|
|
205
205
|
status: "experimental",
|
|
206
206
|
description: "Link as a whole row: optional leading icon, label, optional description line, and a trailing arrow for where it leads. Also called a link row or resource link. Use ChipLink for a compact link inside other content.",
|
|
207
207
|
origin: "native",
|
|
@@ -313,7 +313,7 @@ function Cn(e) {
|
|
|
313
313
|
return /* @__PURE__ */ x(T.InputGroup, {
|
|
314
314
|
...e,
|
|
315
315
|
"data-imf-ui-component": "Autocomplete.InputGroup",
|
|
316
|
-
className: (t) => Gt({ className:
|
|
316
|
+
className: (t) => Gt({ className: v(e.className, t) })
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
Cn.displayName = "Autocomplete.InputGroup";
|
|
@@ -321,7 +321,7 @@ function wn(e) {
|
|
|
321
321
|
return /* @__PURE__ */ x(T.Input, {
|
|
322
322
|
...e,
|
|
323
323
|
"data-imf-ui-component": "Autocomplete.Input",
|
|
324
|
-
className: (t) => qt({ className:
|
|
324
|
+
className: (t) => qt({ className: v(e.className, t) })
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
wn.displayName = "Autocomplete.Input";
|
|
@@ -329,9 +329,9 @@ function Tn({ children: e, ...t }) {
|
|
|
329
329
|
return /* @__PURE__ */ x(T.Trigger, {
|
|
330
330
|
...t,
|
|
331
331
|
"data-imf-ui-component": "Autocomplete.Trigger",
|
|
332
|
-
className: (e) => Jt({ className:
|
|
333
|
-
children: e ?? /* @__PURE__ */ x(
|
|
334
|
-
glyph:
|
|
332
|
+
className: (e) => Jt({ className: v(t.className, e) }),
|
|
333
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
334
|
+
glyph: se,
|
|
335
335
|
size: 16,
|
|
336
336
|
"aria-hidden": !0
|
|
337
337
|
})
|
|
@@ -342,7 +342,7 @@ function En(e) {
|
|
|
342
342
|
return /* @__PURE__ */ x(T.Icon, {
|
|
343
343
|
...e,
|
|
344
344
|
"data-imf-ui-component": "Autocomplete.Icon",
|
|
345
|
-
className: (t) => Yt({ className:
|
|
345
|
+
className: (t) => Yt({ className: v(e.className, t) })
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
En.displayName = "Autocomplete.Icon";
|
|
@@ -350,8 +350,8 @@ function Dn({ children: e, ...t }) {
|
|
|
350
350
|
return /* @__PURE__ */ x(T.Clear, {
|
|
351
351
|
...t,
|
|
352
352
|
"data-imf-ui-component": "Autocomplete.Clear",
|
|
353
|
-
className: (e) => Xt({ className:
|
|
354
|
-
children: e ?? /* @__PURE__ */ x(
|
|
353
|
+
className: (e) => Xt({ className: v(t.className, e) }),
|
|
354
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
355
355
|
glyph: a,
|
|
356
356
|
size: 16,
|
|
357
357
|
"aria-hidden": !0
|
|
@@ -371,7 +371,7 @@ function An(e) {
|
|
|
371
371
|
return /* @__PURE__ */ x(T.Backdrop, {
|
|
372
372
|
...e,
|
|
373
373
|
"data-imf-ui-component": "Autocomplete.Backdrop",
|
|
374
|
-
className: (t) => $t({ className:
|
|
374
|
+
className: (t) => $t({ className: v(e.className, t) })
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
An.displayName = "Autocomplete.Backdrop";
|
|
@@ -381,7 +381,7 @@ function jn({ align: e = "start", sideOffset: t = 4, ...n }) {
|
|
|
381
381
|
align: e,
|
|
382
382
|
sideOffset: t,
|
|
383
383
|
"data-imf-ui-component": "Autocomplete.Positioner",
|
|
384
|
-
className: (e) => en({ className:
|
|
384
|
+
className: (e) => en({ className: v(n.className, e) })
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
jn.displayName = "Autocomplete.Positioner";
|
|
@@ -392,10 +392,10 @@ function Mn(e) {
|
|
|
392
392
|
ref: t,
|
|
393
393
|
style: (t) => ({
|
|
394
394
|
...n,
|
|
395
|
-
...
|
|
395
|
+
..._e(e.style, t)
|
|
396
396
|
}),
|
|
397
397
|
"data-imf-ui-component": "Autocomplete.Popup",
|
|
398
|
-
className: (t) => tn({ className:
|
|
398
|
+
className: (t) => tn({ className: v(e.className, t) })
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
Mn.displayName = "Autocomplete.Popup";
|
|
@@ -403,7 +403,7 @@ function Nn(e) {
|
|
|
403
403
|
return /* @__PURE__ */ x(T.Arrow, {
|
|
404
404
|
...e,
|
|
405
405
|
"data-imf-ui-component": "Autocomplete.Arrow",
|
|
406
|
-
className: (t) => nn({ className:
|
|
406
|
+
className: (t) => nn({ className: v(e.className, t) })
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
Nn.displayName = "Autocomplete.Arrow";
|
|
@@ -411,7 +411,7 @@ function Pn(e) {
|
|
|
411
411
|
return /* @__PURE__ */ x(T.Status, {
|
|
412
412
|
...e,
|
|
413
413
|
"data-imf-ui-component": "Autocomplete.Status",
|
|
414
|
-
className: (t) => on({ className:
|
|
414
|
+
className: (t) => on({ className: v(e.className, t) })
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
Pn.displayName = "Autocomplete.Status";
|
|
@@ -419,7 +419,7 @@ function Fn(e) {
|
|
|
419
419
|
return /* @__PURE__ */ x(T.Empty, {
|
|
420
420
|
...e,
|
|
421
421
|
"data-imf-ui-component": "Autocomplete.Empty",
|
|
422
|
-
className: (t) => sn({ className:
|
|
422
|
+
className: (t) => sn({ className: v(e.className, t) })
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
Fn.displayName = "Autocomplete.Empty";
|
|
@@ -430,10 +430,10 @@ function In(e) {
|
|
|
430
430
|
ref: n,
|
|
431
431
|
style: (n) => ({
|
|
432
432
|
...t ? r : void 0,
|
|
433
|
-
...
|
|
433
|
+
..._e(e.style, n)
|
|
434
434
|
}),
|
|
435
435
|
"data-imf-ui-component": "Autocomplete.List",
|
|
436
|
-
className: (t) => rn({ className:
|
|
436
|
+
className: (t) => rn({ className: v(e.className, t) })
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
In.displayName = "Autocomplete.List";
|
|
@@ -441,7 +441,7 @@ function Ln(e) {
|
|
|
441
441
|
return /* @__PURE__ */ x(T.Row, {
|
|
442
442
|
...e,
|
|
443
443
|
"data-imf-ui-component": "Autocomplete.Row",
|
|
444
|
-
className: (t) => an({ className:
|
|
444
|
+
className: (t) => an({ className: v(e.className, t) })
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
Ln.displayName = "Autocomplete.Row";
|
|
@@ -450,14 +450,14 @@ function Rn(e) {
|
|
|
450
450
|
}
|
|
451
451
|
Rn.displayName = "Autocomplete.Collection";
|
|
452
452
|
function zn(e) {
|
|
453
|
-
let { context: t, ariaProps: n } =
|
|
454
|
-
return /* @__PURE__ */ x(
|
|
453
|
+
let { context: t, ariaProps: n } = he();
|
|
454
|
+
return /* @__PURE__ */ x(ge, {
|
|
455
455
|
value: t,
|
|
456
456
|
children: /* @__PURE__ */ x(T.Item, {
|
|
457
457
|
...n,
|
|
458
458
|
...e,
|
|
459
459
|
"data-imf-ui-component": "Autocomplete.Item",
|
|
460
|
-
className: (t) => _n({ className:
|
|
460
|
+
className: (t) => _n({ className: v(e.className, t) })
|
|
461
461
|
})
|
|
462
462
|
});
|
|
463
463
|
}
|
|
@@ -486,7 +486,7 @@ function Hn(e) {
|
|
|
486
486
|
return /* @__PURE__ */ x(T.Group, {
|
|
487
487
|
...e,
|
|
488
488
|
"data-imf-ui-component": "Autocomplete.Group",
|
|
489
|
-
className: (t) => cn({ className:
|
|
489
|
+
className: (t) => cn({ className: v(e.className, t) })
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
Hn.displayName = "Autocomplete.Group";
|
|
@@ -494,7 +494,7 @@ function Un(e) {
|
|
|
494
494
|
return /* @__PURE__ */ x(T.GroupLabel, {
|
|
495
495
|
...e,
|
|
496
496
|
"data-imf-ui-component": "Autocomplete.GroupLabel",
|
|
497
|
-
className: (t) => ln({ className:
|
|
497
|
+
className: (t) => ln({ className: v(e.className, t) })
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
Un.displayName = "Autocomplete.GroupLabel";
|
|
@@ -502,13 +502,13 @@ function Wn(e) {
|
|
|
502
502
|
return /* @__PURE__ */ x(ct, {
|
|
503
503
|
...e,
|
|
504
504
|
"data-imf-ui-component": "Autocomplete.Separator",
|
|
505
|
-
className: (t) => un({ className:
|
|
505
|
+
className: (t) => un({ className: v(e.className, t) })
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
Wn.displayName = "Autocomplete.Separator";
|
|
509
509
|
var Gn = T.useFilter, Kn = T.useFilteredItems, qn = {
|
|
510
510
|
name: "Autocomplete",
|
|
511
|
-
category:
|
|
511
|
+
category: _.inputs,
|
|
512
512
|
status: "experimental",
|
|
513
513
|
description: "Text input that suggests options as you type, keeping free text. Also called a typeahead or search suggestions. Use Combobox when the value must come from the list.",
|
|
514
514
|
origin: "adapted",
|
|
@@ -531,7 +531,7 @@ function Yn(e) {
|
|
|
531
531
|
return /* @__PURE__ */ x(lt.Root, {
|
|
532
532
|
...e,
|
|
533
533
|
"data-imf-ui-component": "Checkbox.Root",
|
|
534
|
-
className: (t) => Ft({ className:
|
|
534
|
+
className: (t) => Ft({ className: v(e.className, t) })
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
Yn.displayName = "Checkbox.Root";
|
|
@@ -539,11 +539,11 @@ function Xn({ children: e, ...t }) {
|
|
|
539
539
|
return /* @__PURE__ */ x(lt.Indicator, {
|
|
540
540
|
...t,
|
|
541
541
|
"data-imf-ui-component": "Checkbox.Indicator",
|
|
542
|
-
className: (e) => It({ className:
|
|
542
|
+
className: (e) => It({ className: v(t.className, e) }),
|
|
543
543
|
children: e ?? /* @__PURE__ */ S(Ye, { children: [/* @__PURE__ */ x("span", {
|
|
544
544
|
className: Pt.iconCheck,
|
|
545
545
|
"aria-hidden": !0,
|
|
546
|
-
children: /* @__PURE__ */ x(
|
|
546
|
+
children: /* @__PURE__ */ x(h, {
|
|
547
547
|
glyph: p,
|
|
548
548
|
size: 12,
|
|
549
549
|
strokeWidth: 3
|
|
@@ -551,8 +551,8 @@ function Xn({ children: e, ...t }) {
|
|
|
551
551
|
}), /* @__PURE__ */ x("span", {
|
|
552
552
|
className: Pt.iconIndeterminate,
|
|
553
553
|
"aria-hidden": !0,
|
|
554
|
-
children: /* @__PURE__ */ x(
|
|
555
|
-
glyph:
|
|
554
|
+
children: /* @__PURE__ */ x(h, {
|
|
555
|
+
glyph: le,
|
|
556
556
|
size: 12,
|
|
557
557
|
strokeWidth: 3
|
|
558
558
|
})
|
|
@@ -564,7 +564,7 @@ Xn.displayName = "Checkbox.Indicator";
|
|
|
564
564
|
//#region src/components/checkbox/checkbox.meta.ts
|
|
565
565
|
var Zn = {
|
|
566
566
|
name: "Checkbox",
|
|
567
|
-
category:
|
|
567
|
+
category: _.inputs,
|
|
568
568
|
status: "stable",
|
|
569
569
|
description: "Binary form control for submitted choices such as terms, table rows, or list items. Also called a check box; it supports an indeterminate parent state.",
|
|
570
570
|
origin: "adapted",
|
|
@@ -643,12 +643,12 @@ function fr({ label: e = "Color scheme", lightLabel: t = "Light", systemLabel: n
|
|
|
643
643
|
function l(e) {
|
|
644
644
|
ur(e[0]) && o(e[0]);
|
|
645
645
|
}
|
|
646
|
-
return /* @__PURE__ */ x(
|
|
646
|
+
return /* @__PURE__ */ x(me, {
|
|
647
647
|
"aria-label": e,
|
|
648
648
|
...i,
|
|
649
649
|
value: [a],
|
|
650
650
|
onValueChange: l,
|
|
651
|
-
children: s.map((e) => /* @__PURE__ */ x(
|
|
651
|
+
children: s.map((e) => /* @__PURE__ */ x(fe, {
|
|
652
652
|
value: e,
|
|
653
653
|
className: dr.toggle,
|
|
654
654
|
children: c[e]
|
|
@@ -659,7 +659,7 @@ function fr({ label: e = "Color scheme", lightLabel: t = "Light", systemLabel: n
|
|
|
659
659
|
//#region src/components/color-scheme-toggle/color-scheme-toggle.meta.ts
|
|
660
660
|
var pr = {
|
|
661
661
|
name: "ColorSchemeToggle",
|
|
662
|
-
category:
|
|
662
|
+
category: _.inputs,
|
|
663
663
|
status: "experimental",
|
|
664
664
|
description: "Light, System, and Dark segments that set and remember the page's color scheme. Also called an appearance or theme switch; built on ToggleGroup, which is the choice for any other segmented selection.",
|
|
665
665
|
origin: "native",
|
|
@@ -720,7 +720,7 @@ function _r(e) {
|
|
|
720
720
|
return /* @__PURE__ */ x(E.Label, {
|
|
721
721
|
...e,
|
|
722
722
|
"data-imf-ui-component": "Combobox.Label",
|
|
723
|
-
className: (t) => Wt({ className:
|
|
723
|
+
className: (t) => Wt({ className: v(e.className, t) })
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
726
|
_r.displayName = "Combobox.Label";
|
|
@@ -728,7 +728,7 @@ function vr(e) {
|
|
|
728
728
|
return /* @__PURE__ */ x(E.InputGroup, {
|
|
729
729
|
...e,
|
|
730
730
|
"data-imf-ui-component": "Combobox.InputGroup",
|
|
731
|
-
className: (t) => Gt({ className:
|
|
731
|
+
className: (t) => Gt({ className: v(e.className, t) })
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
vr.displayName = "Combobox.InputGroup";
|
|
@@ -738,7 +738,7 @@ function yr(e) {
|
|
|
738
738
|
...t ? { "aria-expanded": !0 } : {},
|
|
739
739
|
...e,
|
|
740
740
|
"data-imf-ui-component": "Combobox.Input",
|
|
741
|
-
className: (t) => qt({ className:
|
|
741
|
+
className: (t) => qt({ className: v(e.className, t) })
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
yr.displayName = "Combobox.Input";
|
|
@@ -746,9 +746,9 @@ function br({ children: e, ...t }) {
|
|
|
746
746
|
return /* @__PURE__ */ x(E.Trigger, {
|
|
747
747
|
...t,
|
|
748
748
|
"data-imf-ui-component": "Combobox.Trigger",
|
|
749
|
-
className: (e) => Jt({ className:
|
|
750
|
-
children: e ?? /* @__PURE__ */ x(
|
|
751
|
-
glyph:
|
|
749
|
+
className: (e) => Jt({ className: v(t.className, e) }),
|
|
750
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
751
|
+
glyph: se,
|
|
752
752
|
size: 16,
|
|
753
753
|
"aria-hidden": !0
|
|
754
754
|
})
|
|
@@ -759,7 +759,7 @@ function xr(e) {
|
|
|
759
759
|
return /* @__PURE__ */ x(E.Icon, {
|
|
760
760
|
...e,
|
|
761
761
|
"data-imf-ui-component": "Combobox.Icon",
|
|
762
|
-
className: (t) => Yt({ className:
|
|
762
|
+
className: (t) => Yt({ className: v(e.className, t) })
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
765
|
xr.displayName = "Combobox.Icon";
|
|
@@ -767,8 +767,8 @@ function Sr({ children: e, ...t }) {
|
|
|
767
767
|
return /* @__PURE__ */ x(E.Clear, {
|
|
768
768
|
...t,
|
|
769
769
|
"data-imf-ui-component": "Combobox.Clear",
|
|
770
|
-
className: (e) => Xt({ className:
|
|
771
|
-
children: e ?? /* @__PURE__ */ x(
|
|
770
|
+
className: (e) => Xt({ className: v(t.className, e) }),
|
|
771
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
772
772
|
glyph: a,
|
|
773
773
|
size: 16,
|
|
774
774
|
"aria-hidden": !0
|
|
@@ -784,7 +784,7 @@ function wr(e) {
|
|
|
784
784
|
return /* @__PURE__ */ x(E.Chips, {
|
|
785
785
|
...e,
|
|
786
786
|
"data-imf-ui-component": "Combobox.Chips",
|
|
787
|
-
className: (t) => Kt({ className:
|
|
787
|
+
className: (t) => Kt({ className: v(e.className, t) })
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
wr.displayName = "Combobox.Chips";
|
|
@@ -792,7 +792,7 @@ function Tr(e) {
|
|
|
792
792
|
return /* @__PURE__ */ x(E.Chip, {
|
|
793
793
|
...e,
|
|
794
794
|
"data-imf-ui-component": "Combobox.Chip",
|
|
795
|
-
className: (t) => Zt({ className:
|
|
795
|
+
className: (t) => Zt({ className: v(e.className, t) })
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
Tr.displayName = "Combobox.Chip";
|
|
@@ -800,8 +800,8 @@ function Er({ children: e, ...t }) {
|
|
|
800
800
|
return /* @__PURE__ */ x(E.ChipRemove, {
|
|
801
801
|
...t,
|
|
802
802
|
"data-imf-ui-component": "Combobox.ChipRemove",
|
|
803
|
-
className: (e) => Qt({ className:
|
|
804
|
-
children: e ?? /* @__PURE__ */ x(
|
|
803
|
+
className: (e) => Qt({ className: v(t.className, e) }),
|
|
804
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
805
805
|
glyph: a,
|
|
806
806
|
size: 12,
|
|
807
807
|
"aria-hidden": !0
|
|
@@ -817,7 +817,7 @@ function Or(e) {
|
|
|
817
817
|
return /* @__PURE__ */ x(E.Backdrop, {
|
|
818
818
|
...e,
|
|
819
819
|
"data-imf-ui-component": "Combobox.Backdrop",
|
|
820
|
-
className: (t) => $t({ className:
|
|
820
|
+
className: (t) => $t({ className: v(e.className, t) })
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
Or.displayName = "Combobox.Backdrop";
|
|
@@ -827,7 +827,7 @@ function kr({ align: e = "start", sideOffset: t = 4, ...n }) {
|
|
|
827
827
|
align: e,
|
|
828
828
|
sideOffset: t,
|
|
829
829
|
"data-imf-ui-component": "Combobox.Positioner",
|
|
830
|
-
className: (e) => en({ className:
|
|
830
|
+
className: (e) => en({ className: v(n.className, e) })
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
kr.displayName = "Combobox.Positioner";
|
|
@@ -838,10 +838,10 @@ function Ar(e) {
|
|
|
838
838
|
ref: t,
|
|
839
839
|
style: (t) => ({
|
|
840
840
|
...n,
|
|
841
|
-
...
|
|
841
|
+
..._e(e.style, t)
|
|
842
842
|
}),
|
|
843
843
|
"data-imf-ui-component": "Combobox.Popup",
|
|
844
|
-
className: (t) => tn({ className:
|
|
844
|
+
className: (t) => tn({ className: v(e.className, t) })
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
847
|
Ar.displayName = "Combobox.Popup";
|
|
@@ -849,7 +849,7 @@ function jr(e) {
|
|
|
849
849
|
return /* @__PURE__ */ x(E.Arrow, {
|
|
850
850
|
...e,
|
|
851
851
|
"data-imf-ui-component": "Combobox.Arrow",
|
|
852
|
-
className: (t) => nn({ className:
|
|
852
|
+
className: (t) => nn({ className: v(e.className, t) })
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
855
|
jr.displayName = "Combobox.Arrow";
|
|
@@ -857,7 +857,7 @@ function Mr(e) {
|
|
|
857
857
|
return /* @__PURE__ */ x(E.Status, {
|
|
858
858
|
...e,
|
|
859
859
|
"data-imf-ui-component": "Combobox.Status",
|
|
860
|
-
className: (t) => on({ className:
|
|
860
|
+
className: (t) => on({ className: v(e.className, t) })
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
Mr.displayName = "Combobox.Status";
|
|
@@ -865,7 +865,7 @@ function Nr(e) {
|
|
|
865
865
|
return /* @__PURE__ */ x(E.Empty, {
|
|
866
866
|
...e,
|
|
867
867
|
"data-imf-ui-component": "Combobox.Empty",
|
|
868
|
-
className: (t) => sn({ className:
|
|
868
|
+
className: (t) => sn({ className: v(e.className, t) })
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
Nr.displayName = "Combobox.Empty";
|
|
@@ -876,10 +876,10 @@ function Pr(e) {
|
|
|
876
876
|
ref: n,
|
|
877
877
|
style: (n) => ({
|
|
878
878
|
...t ? r : void 0,
|
|
879
|
-
...
|
|
879
|
+
..._e(e.style, n)
|
|
880
880
|
}),
|
|
881
881
|
"data-imf-ui-component": "Combobox.List",
|
|
882
|
-
className: (t) => rn({ className:
|
|
882
|
+
className: (t) => rn({ className: v(e.className, t) })
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
Pr.displayName = "Combobox.List";
|
|
@@ -887,7 +887,7 @@ function Fr(e) {
|
|
|
887
887
|
return /* @__PURE__ */ x(E.Row, {
|
|
888
888
|
...e,
|
|
889
889
|
"data-imf-ui-component": "Combobox.Row",
|
|
890
|
-
className: (t) => an({ className:
|
|
890
|
+
className: (t) => an({ className: v(e.className, t) })
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
Fr.displayName = "Combobox.Row";
|
|
@@ -896,14 +896,14 @@ function Ir(e) {
|
|
|
896
896
|
}
|
|
897
897
|
Ir.displayName = "Combobox.Collection";
|
|
898
898
|
function Lr(e) {
|
|
899
|
-
let { context: t, ariaProps: n } =
|
|
900
|
-
return /* @__PURE__ */ x(
|
|
899
|
+
let { context: t, ariaProps: n } = he();
|
|
900
|
+
return /* @__PURE__ */ x(ge, {
|
|
901
901
|
value: t,
|
|
902
902
|
children: /* @__PURE__ */ x(E.Item, {
|
|
903
903
|
...n,
|
|
904
904
|
...e,
|
|
905
905
|
"data-imf-ui-component": "Combobox.Item",
|
|
906
|
-
className: (t) => dn({ className:
|
|
906
|
+
className: (t) => dn({ className: v(e.className, t) })
|
|
907
907
|
})
|
|
908
908
|
});
|
|
909
909
|
}
|
|
@@ -915,8 +915,8 @@ function Rr({ children: e, keepMounted: t, render: n, ...r }) {
|
|
|
915
915
|
keepMounted: t,
|
|
916
916
|
render: n,
|
|
917
917
|
"data-imf-ui-component": "Combobox.ItemIndicator",
|
|
918
|
-
className: (e) => fn({ className:
|
|
919
|
-
children: e ?? /* @__PURE__ */ x(
|
|
918
|
+
className: (e) => fn({ className: v(r.className, e) }),
|
|
919
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
920
920
|
glyph: p,
|
|
921
921
|
size: 16,
|
|
922
922
|
"aria-hidden": !0
|
|
@@ -935,10 +935,10 @@ function Rr({ children: e, keepMounted: t, render: n, ...r }) {
|
|
|
935
935
|
keepMounted: t ?? !0,
|
|
936
936
|
render: a,
|
|
937
937
|
"data-imf-ui-component": "Combobox.ItemIndicator",
|
|
938
|
-
className: (e) => pn({ className:
|
|
938
|
+
className: (e) => pn({ className: v(r.className, e) }),
|
|
939
939
|
children: e ?? /* @__PURE__ */ x("span", {
|
|
940
940
|
className: mn(),
|
|
941
|
-
children: /* @__PURE__ */ x(
|
|
941
|
+
children: /* @__PURE__ */ x(h, {
|
|
942
942
|
glyph: p,
|
|
943
943
|
size: 12,
|
|
944
944
|
strokeWidth: 3,
|
|
@@ -972,7 +972,7 @@ function Vr(e) {
|
|
|
972
972
|
return /* @__PURE__ */ x(E.Group, {
|
|
973
973
|
...e,
|
|
974
974
|
"data-imf-ui-component": "Combobox.Group",
|
|
975
|
-
className: (t) => cn({ className:
|
|
975
|
+
className: (t) => cn({ className: v(e.className, t) })
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
Vr.displayName = "Combobox.Group";
|
|
@@ -980,7 +980,7 @@ function Hr(e) {
|
|
|
980
980
|
return /* @__PURE__ */ x(E.GroupLabel, {
|
|
981
981
|
...e,
|
|
982
982
|
"data-imf-ui-component": "Combobox.GroupLabel",
|
|
983
|
-
className: (t) => ln({ className:
|
|
983
|
+
className: (t) => ln({ className: v(e.className, t) })
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
Hr.displayName = "Combobox.GroupLabel";
|
|
@@ -988,13 +988,13 @@ function Ur(e) {
|
|
|
988
988
|
return /* @__PURE__ */ x(ct, {
|
|
989
989
|
...e,
|
|
990
990
|
"data-imf-ui-component": "Combobox.Separator",
|
|
991
|
-
className: (t) => un({ className:
|
|
991
|
+
className: (t) => un({ className: v(e.className, t) })
|
|
992
992
|
});
|
|
993
993
|
}
|
|
994
994
|
Ur.displayName = "Combobox.Separator";
|
|
995
995
|
var Wr = E.useFilter, Gr = E.useFilteredItems, Kr = {
|
|
996
996
|
name: "Combobox",
|
|
997
|
-
category:
|
|
997
|
+
category: _.inputs,
|
|
998
998
|
status: "experimental",
|
|
999
999
|
description: "Text input with a filterable list of options, for choosing one or several from a long list. Also called a searchable select, typeahead, or multi-select. Use Select for short lists and Autocomplete when free text is allowed.",
|
|
1000
1000
|
origin: "adapted",
|
|
@@ -1030,7 +1030,7 @@ function ti(e) {
|
|
|
1030
1030
|
return /* @__PURE__ */ x(ut.Root, {
|
|
1031
1031
|
...e,
|
|
1032
1032
|
"data-imf-ui-component": "Field.Root",
|
|
1033
|
-
className: (t) => Yr({ className:
|
|
1033
|
+
className: (t) => Yr({ className: v(e.className, t) })
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
ti.displayName = "Field.Root";
|
|
@@ -1038,7 +1038,7 @@ function ni(e) {
|
|
|
1038
1038
|
return /* @__PURE__ */ x(ut.Item, {
|
|
1039
1039
|
...e,
|
|
1040
1040
|
"data-imf-ui-component": "Field.Item",
|
|
1041
|
-
className: (t) => Xr({ className:
|
|
1041
|
+
className: (t) => Xr({ className: v(e.className, t) })
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
ni.displayName = "Field.Item";
|
|
@@ -1046,7 +1046,7 @@ function ri(e) {
|
|
|
1046
1046
|
return /* @__PURE__ */ x(ut.Label, {
|
|
1047
1047
|
...e,
|
|
1048
1048
|
"data-imf-ui-component": "Field.Label",
|
|
1049
|
-
className: (t) => Zr({ className:
|
|
1049
|
+
className: (t) => Zr({ className: v(e.className, t) })
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
ri.displayName = "Field.Label";
|
|
@@ -1054,7 +1054,7 @@ function ii(e) {
|
|
|
1054
1054
|
return /* @__PURE__ */ x(ut.Description, {
|
|
1055
1055
|
...e,
|
|
1056
1056
|
"data-imf-ui-component": "Field.Description",
|
|
1057
|
-
className: (t) => Qr({ className:
|
|
1057
|
+
className: (t) => Qr({ className: v(e.className, t) })
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
1060
|
ii.displayName = "Field.Description";
|
|
@@ -1062,7 +1062,7 @@ function ai(e) {
|
|
|
1062
1062
|
return /* @__PURE__ */ x(ut.Control, {
|
|
1063
1063
|
...e,
|
|
1064
1064
|
"data-imf-ui-component": "Field.Control",
|
|
1065
|
-
className: (t) => $r({ className:
|
|
1065
|
+
className: (t) => $r({ className: v(e.className, t) })
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
ai.displayName = "Field.Control";
|
|
@@ -1071,7 +1071,7 @@ function oi({ role: e = "alert", ...t }) {
|
|
|
1071
1071
|
...t,
|
|
1072
1072
|
role: e,
|
|
1073
1073
|
"data-imf-ui-component": "Field.Error",
|
|
1074
|
-
className: (e) => ei({ className:
|
|
1074
|
+
className: (e) => ei({ className: v(t.className, e) })
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
oi.displayName = "Field.Error";
|
|
@@ -1083,7 +1083,7 @@ si.displayName = "Field.Validity";
|
|
|
1083
1083
|
//#region src/components/field/field.meta.ts
|
|
1084
1084
|
var ci = {
|
|
1085
1085
|
name: "Field",
|
|
1086
|
-
category:
|
|
1086
|
+
category: _.inputs,
|
|
1087
1087
|
status: "stable",
|
|
1088
1088
|
description: "Accessible field composition for a label, control, supporting text, and validation message. Use it with Input, Checkbox, Select, and other form controls.",
|
|
1089
1089
|
origin: "adapted",
|
|
@@ -1104,7 +1104,7 @@ function pi(e) {
|
|
|
1104
1104
|
return /* @__PURE__ */ x(dt.Root, {
|
|
1105
1105
|
...e,
|
|
1106
1106
|
"data-imf-ui-component": "Fieldset.Root",
|
|
1107
|
-
className: (t) => di({ className:
|
|
1107
|
+
className: (t) => di({ className: v(e.className, t) })
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
1110
|
pi.displayName = "Fieldset.Root";
|
|
@@ -1112,7 +1112,7 @@ function mi(e) {
|
|
|
1112
1112
|
return /* @__PURE__ */ x(dt.Legend, {
|
|
1113
1113
|
...e,
|
|
1114
1114
|
"data-imf-ui-component": "Fieldset.Legend",
|
|
1115
|
-
className: (t) => fi({ className:
|
|
1115
|
+
className: (t) => fi({ className: v(e.className, t) })
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
mi.displayName = "Fieldset.Legend";
|
|
@@ -1120,7 +1120,7 @@ mi.displayName = "Fieldset.Legend";
|
|
|
1120
1120
|
//#region src/components/fieldset/fieldset.meta.ts
|
|
1121
1121
|
var hi = {
|
|
1122
1122
|
name: "Fieldset",
|
|
1123
|
-
category:
|
|
1123
|
+
category: _.inputs,
|
|
1124
1124
|
status: "stable",
|
|
1125
1125
|
description: "Semantic group for related form controls with a shared legend. Also called a form group; it can propagate a disabled state to the group.",
|
|
1126
1126
|
origin: "adapted",
|
|
@@ -1131,7 +1131,7 @@ var hi = {
|
|
|
1131
1131
|
llmDocLink: "https://base-ui.com/react/components/fieldset.md"
|
|
1132
1132
|
}
|
|
1133
1133
|
}, gi = {
|
|
1134
|
-
info:
|
|
1134
|
+
info: g,
|
|
1135
1135
|
positive: i,
|
|
1136
1136
|
warning: re,
|
|
1137
1137
|
negative: t
|
|
@@ -1203,7 +1203,7 @@ function Si({ children: e, ...t }) {
|
|
|
1203
1203
|
"aria-hidden": !0,
|
|
1204
1204
|
"data-imf-ui-component": "Callout.Icon",
|
|
1205
1205
|
className: y(L.icon)({ className: t.className }),
|
|
1206
|
-
children: e ?? /* @__PURE__ */ x(
|
|
1206
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
1207
1207
|
glyph: n,
|
|
1208
1208
|
size: 24,
|
|
1209
1209
|
strokeWidth: 2
|
|
@@ -1231,7 +1231,7 @@ wi.displayName = "Callout.Description";
|
|
|
1231
1231
|
//#region src/components/callout/callout.meta.ts
|
|
1232
1232
|
var Ti = {
|
|
1233
1233
|
name: "Callout",
|
|
1234
|
-
category:
|
|
1234
|
+
category: _.display,
|
|
1235
1235
|
status: "stable",
|
|
1236
1236
|
namespace: !0,
|
|
1237
1237
|
description: "Persistent, in-place status message for information, success, warnings, and errors. Also called an inline alert or notice; it is not a transient toast or modal dialog.",
|
|
@@ -1348,7 +1348,7 @@ function ji({ variant: e = "info", children: t, ...n }) {
|
|
|
1348
1348
|
variant: e,
|
|
1349
1349
|
className: n.className
|
|
1350
1350
|
}),
|
|
1351
|
-
children: t ?? /* @__PURE__ */ x(
|
|
1351
|
+
children: t ?? /* @__PURE__ */ x(h, {
|
|
1352
1352
|
glyph: gi[e ?? "info"],
|
|
1353
1353
|
className: R.statusGlyph
|
|
1354
1354
|
})
|
|
@@ -1383,7 +1383,7 @@ Pi.displayName = "Card.Footer";
|
|
|
1383
1383
|
//#region src/components/card/card.meta.ts
|
|
1384
1384
|
var Fi = {
|
|
1385
1385
|
name: "Card",
|
|
1386
|
-
category:
|
|
1386
|
+
category: _.layout,
|
|
1387
1387
|
status: "stable",
|
|
1388
1388
|
namespace: !0,
|
|
1389
1389
|
description: "Surface container for related content on a tonal background. Also called a panel or tile; compose it from optional image, status, header, content, and footer parts.",
|
|
@@ -1427,7 +1427,7 @@ function Ui({ size: e = "md", layout: t = "stacked", ...n }) {
|
|
|
1427
1427
|
className: (r) => Ri({
|
|
1428
1428
|
size: e,
|
|
1429
1429
|
layout: t,
|
|
1430
|
-
className:
|
|
1430
|
+
className: v(n.className, r)
|
|
1431
1431
|
})
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
@@ -1436,7 +1436,7 @@ function Wi(e) {
|
|
|
1436
1436
|
return /* @__PURE__ */ x(ft.Label, {
|
|
1437
1437
|
...e,
|
|
1438
1438
|
"data-imf-ui-component": "Progress.Label",
|
|
1439
|
-
className: (t) => zi({ className:
|
|
1439
|
+
className: (t) => zi({ className: v(e.className, t) })
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
1442
|
Wi.displayName = "Progress.Label";
|
|
@@ -1444,7 +1444,7 @@ function Gi(e) {
|
|
|
1444
1444
|
return /* @__PURE__ */ x(ft.Value, {
|
|
1445
1445
|
...e,
|
|
1446
1446
|
"data-imf-ui-component": "Progress.Value",
|
|
1447
|
-
className: (t) => Bi({ className:
|
|
1447
|
+
className: (t) => Bi({ className: v(e.className, t) })
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
Gi.displayName = "Progress.Value";
|
|
@@ -1452,7 +1452,7 @@ function Ki(e) {
|
|
|
1452
1452
|
return /* @__PURE__ */ x(ft.Track, {
|
|
1453
1453
|
...e,
|
|
1454
1454
|
"data-imf-ui-component": "Progress.Track",
|
|
1455
|
-
className: (t) => Vi({ className:
|
|
1455
|
+
className: (t) => Vi({ className: v(e.className, t) })
|
|
1456
1456
|
});
|
|
1457
1457
|
}
|
|
1458
1458
|
Ki.displayName = "Progress.Track";
|
|
@@ -1460,7 +1460,7 @@ function qi(e) {
|
|
|
1460
1460
|
return /* @__PURE__ */ x(ft.Indicator, {
|
|
1461
1461
|
...e,
|
|
1462
1462
|
"data-imf-ui-component": "Progress.Indicator",
|
|
1463
|
-
className: (t) => Hi({ className:
|
|
1463
|
+
className: (t) => Hi({ className: v(e.className, t) })
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
qi.displayName = "Progress.Indicator";
|
|
@@ -1468,7 +1468,7 @@ qi.displayName = "Progress.Indicator";
|
|
|
1468
1468
|
//#region src/components/progress/progress.meta.ts
|
|
1469
1469
|
var Ji = {
|
|
1470
1470
|
name: "Progress",
|
|
1471
|
-
category:
|
|
1471
|
+
category: _.display,
|
|
1472
1472
|
status: "experimental",
|
|
1473
1473
|
description: "Bar for the completion of a running task, such as an upload or export. Also called a progress bar. Indeterminate when the amount is unknown. Use Meter for a static measure within a range.",
|
|
1474
1474
|
origin: "adapted",
|
|
@@ -1480,7 +1480,7 @@ var Ji = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}, Yi = {
|
|
1482
1482
|
name: "Stack",
|
|
1483
|
-
category:
|
|
1483
|
+
category: _.layout,
|
|
1484
1484
|
status: "stable",
|
|
1485
1485
|
description: "Vertical layout primitive for spacing and aligning children. Also called a vertical stack or column.",
|
|
1486
1486
|
origin: "native"
|
|
@@ -1805,7 +1805,7 @@ ma.displayName = "Typo.UnorderedList";
|
|
|
1805
1805
|
//#region src/components/typo/typo.meta.ts
|
|
1806
1806
|
var ha = {
|
|
1807
1807
|
name: "Typo",
|
|
1808
|
-
category:
|
|
1808
|
+
category: _.display,
|
|
1809
1809
|
status: "stable",
|
|
1810
1810
|
namespace: !0,
|
|
1811
1811
|
description: "Semantic text primitives for display and standard headings, paragraphs, lists, quotes, links, and inline code. The namespace uses native HTML elements and token-based text roles.",
|
|
@@ -2061,67 +2061,67 @@ function Wa(e) {
|
|
|
2061
2061
|
return Array.from(e.dataTransfer.types).includes("Files");
|
|
2062
2062
|
}
|
|
2063
2063
|
function Ga({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", disabled: i = !1, invalid: a = !1, onFilesAdded: o, onDragStateChange: s, formatStatus: c = Ua, children: l, className: ee, "aria-labelledby": u, "aria-describedby": d, onDragEnter: f, onDragOver: te, onDragLeave: ne, onDrop: re, ...ie }) {
|
|
2064
|
-
let p = r ?? "md", ae = n && t,
|
|
2064
|
+
let p = r ?? "md", ae = n && t, m = ot(null), oe = ot(null), se = ot(/* @__PURE__ */ new Set()), ce = ot("idle"), [h, le] = w("idle"), [g, _] = w(!1), [ue, de] = w(null), [fe, pe] = w(null), [me, v] = w({
|
|
2065
2065
|
id: 0,
|
|
2066
2066
|
text: ""
|
|
2067
|
-
}),
|
|
2067
|
+
}), he = ot({
|
|
2068
2068
|
onFilesAdded: o,
|
|
2069
2069
|
onDragStateChange: s,
|
|
2070
2070
|
formatStatus: c
|
|
2071
2071
|
});
|
|
2072
2072
|
nt(() => {
|
|
2073
|
-
|
|
2073
|
+
he.current = {
|
|
2074
2074
|
onFilesAdded: o,
|
|
2075
2075
|
onDragStateChange: s,
|
|
2076
2076
|
formatStatus: c
|
|
2077
2077
|
};
|
|
2078
2078
|
});
|
|
2079
|
-
let
|
|
2079
|
+
let ge = at(() => ({
|
|
2080
2080
|
size: p,
|
|
2081
2081
|
disabled: i,
|
|
2082
2082
|
directory: ae,
|
|
2083
|
-
filled:
|
|
2084
|
-
openPicker: (e) => (e === "folder" ?
|
|
2085
|
-
setFilled:
|
|
2086
|
-
registerTitle:
|
|
2087
|
-
registerDescription:
|
|
2083
|
+
filled: g,
|
|
2084
|
+
openPicker: (e) => (e === "folder" ? oe : m).current?.click(),
|
|
2085
|
+
setFilled: _,
|
|
2086
|
+
registerTitle: de,
|
|
2087
|
+
registerDescription: pe
|
|
2088
2088
|
}), [
|
|
2089
2089
|
p,
|
|
2090
2090
|
i,
|
|
2091
2091
|
ae,
|
|
2092
|
-
|
|
2092
|
+
g
|
|
2093
2093
|
]);
|
|
2094
|
-
function
|
|
2095
|
-
|
|
2094
|
+
function _e(e) {
|
|
2095
|
+
ce.current !== e && (ce.current = e, le(e), he.current.onDragStateChange?.(e));
|
|
2096
2096
|
}
|
|
2097
2097
|
function ve(e, t) {
|
|
2098
|
-
let n =
|
|
2098
|
+
let n = se.current;
|
|
2099
2099
|
t ? n.add(e.target) : n.delete(e.target);
|
|
2100
2100
|
for (let t of n) (!(t instanceof Node) || !e.currentTarget.contains(t)) && n.delete(t);
|
|
2101
2101
|
}
|
|
2102
2102
|
function ye({ accepted: e, rejected: t }) {
|
|
2103
|
-
e.length + t.length !== 0 && (
|
|
2103
|
+
e.length + t.length !== 0 && (v((n) => ({
|
|
2104
2104
|
id: n.id + 1,
|
|
2105
|
-
text:
|
|
2106
|
-
})),
|
|
2105
|
+
text: he.current.formatStatus(e.length, t.length)
|
|
2106
|
+
})), he.current.onFilesAdded?.(e, t));
|
|
2107
2107
|
}
|
|
2108
2108
|
function be(t) {
|
|
2109
|
-
f?.(t), Wa(t) && (t.preventDefault(), ve(t, !0), i ||
|
|
2109
|
+
f?.(t), Wa(t) && (t.preventDefault(), ve(t, !0), i || _e(xa(t.dataTransfer.items, e)));
|
|
2110
2110
|
}
|
|
2111
2111
|
function xe(t) {
|
|
2112
2112
|
if (te?.(t), !Wa(t)) return;
|
|
2113
2113
|
if (t.preventDefault(), i) {
|
|
2114
|
-
t.dataTransfer.dropEffect = "none",
|
|
2114
|
+
t.dataTransfer.dropEffect = "none", _e("idle");
|
|
2115
2115
|
return;
|
|
2116
2116
|
}
|
|
2117
2117
|
let n = xa(t.dataTransfer.items, e);
|
|
2118
|
-
|
|
2118
|
+
_e(n), t.dataTransfer.dropEffect = n === "rejecting" ? "none" : "copy";
|
|
2119
2119
|
}
|
|
2120
2120
|
function Se(e) {
|
|
2121
|
-
ne?.(e), Wa(e) && (ve(e, !1),
|
|
2121
|
+
ne?.(e), Wa(e) && (ve(e, !1), se.current.size === 0 && _e("idle"));
|
|
2122
2122
|
}
|
|
2123
2123
|
function Ce(n) {
|
|
2124
|
-
re?.(n), !(!Wa(n) || (n.preventDefault(),
|
|
2124
|
+
re?.(n), !(!Wa(n) || (n.preventDefault(), se.current.clear(), _e("idle"), i)) && Pa(Sa(n.dataTransfer), {
|
|
2125
2125
|
accept: e,
|
|
2126
2126
|
directory: ae,
|
|
2127
2127
|
multiple: t
|
|
@@ -2136,18 +2136,18 @@ function Ga({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2136
2136
|
fromFolder: r
|
|
2137
2137
|
}));
|
|
2138
2138
|
}
|
|
2139
|
-
let Te = i ? "idle" :
|
|
2139
|
+
let Te = i ? "idle" : h, Ee = [fe, d].filter(Boolean).join(" ") || void 0;
|
|
2140
2140
|
return /* @__PURE__ */ x(Ba.Provider, {
|
|
2141
|
-
value:
|
|
2141
|
+
value: ge,
|
|
2142
2142
|
children: /* @__PURE__ */ S("div", {
|
|
2143
2143
|
role: "group",
|
|
2144
2144
|
"data-drag-over": Te === "idle" ? void 0 : "",
|
|
2145
2145
|
"data-drag-reject": Te === "rejecting" ? "" : void 0,
|
|
2146
2146
|
"data-disabled": i ? "" : void 0,
|
|
2147
|
-
"data-filled":
|
|
2147
|
+
"data-filled": g ? "" : void 0,
|
|
2148
2148
|
"data-invalid": a ? "" : void 0,
|
|
2149
2149
|
...ie,
|
|
2150
|
-
"aria-labelledby": u ??
|
|
2150
|
+
"aria-labelledby": u ?? ue ?? void 0,
|
|
2151
2151
|
"aria-describedby": Ee,
|
|
2152
2152
|
"data-imf-ui-component": "FileDropZone.Root",
|
|
2153
2153
|
className: Ha({
|
|
@@ -2177,7 +2177,7 @@ function Ga({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2177
2177
|
}),
|
|
2178
2178
|
l,
|
|
2179
2179
|
/* @__PURE__ */ x("input", {
|
|
2180
|
-
ref:
|
|
2180
|
+
ref: m,
|
|
2181
2181
|
type: "file",
|
|
2182
2182
|
hidden: !0,
|
|
2183
2183
|
multiple: t,
|
|
@@ -2186,7 +2186,7 @@ function Ga({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2186
2186
|
onChange: (e) => we(e, !1)
|
|
2187
2187
|
}),
|
|
2188
2188
|
ae && /* @__PURE__ */ x("input", {
|
|
2189
|
-
ref:
|
|
2189
|
+
ref: oe,
|
|
2190
2190
|
type: "file",
|
|
2191
2191
|
hidden: !0,
|
|
2192
2192
|
multiple: !0,
|
|
@@ -2197,7 +2197,7 @@ function Ga({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2197
2197
|
/* @__PURE__ */ x("span", {
|
|
2198
2198
|
role: "status",
|
|
2199
2199
|
className: V.visuallyHidden,
|
|
2200
|
-
children: /* @__PURE__ */ x("span", { children:
|
|
2200
|
+
children: /* @__PURE__ */ x("span", { children: me.text }, me.id)
|
|
2201
2201
|
})
|
|
2202
2202
|
]
|
|
2203
2203
|
})
|
|
@@ -2291,10 +2291,10 @@ function Za({ glyph: e, size: t = 48, ...n }) {
|
|
|
2291
2291
|
"aria-hidden": !0,
|
|
2292
2292
|
"data-imf-ui-component": "FileDropZone.Glyph",
|
|
2293
2293
|
className: V.glyph,
|
|
2294
|
-
children: /* @__PURE__ */ x(
|
|
2294
|
+
children: /* @__PURE__ */ x(h, {
|
|
2295
2295
|
variant: "inherit",
|
|
2296
2296
|
...n,
|
|
2297
|
-
glyph: e ?? (r.filled ? o :
|
|
2297
|
+
glyph: e ?? (r.filled ? o : oe),
|
|
2298
2298
|
size: t
|
|
2299
2299
|
})
|
|
2300
2300
|
}) : null;
|
|
@@ -2340,10 +2340,10 @@ function to(e, t) {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
var no = (e) => e.status === "done" || e.status === "error" ? 100 : e.progress ?? 0;
|
|
2342
2342
|
function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, heading: o = "Upload files", title: s, description: c, folders: l = !0, labels: ee, size: u = "lg", multiple: d = !0, accept: f, disabled: te = !1, onFilesAdded: ne, onDragStateChange: re, ...ie }) {
|
|
2343
|
-
let [p, ae] = w(null), [
|
|
2343
|
+
let [p, ae] = w(null), [m, oe] = w("idle"), [se, ce] = w(/* @__PURE__ */ new Set()), [h, le] = w(0), g = {
|
|
2344
2344
|
...eo,
|
|
2345
2345
|
...ee
|
|
2346
|
-
},
|
|
2346
|
+
}, _ = e.filter((e) => e.status === "queued"), ue = e.some((e) => e.status === "uploading"), de = e.length > 0 && _.length === 0 && !ue, fe = e.filter((e) => e.status === "done").length, pe = e.filter((e) => e.status === "error").length, me = e.filter((e) => se.has(e.id)), v = me.reduce((e, t) => e + no(t), 0) / Math.max(me.length, 1), he = g.uploaded(fe, pe), ge = l && d, _e = za(f), ve = s ?? (d ? ge ? "Drop files or a folder" : "Drop files" : "Drop a file"), ye = c ?? ([_e, ge ? "Folders are scanned, including subfolders." : ""].filter(Boolean).join(_e ? ". " : "") || void 0), Se = m === "idle" ? ve : m === "accepting" ? g.dropToAdd : g.cantAdd, Ce = m === "accepting" ? g.releaseToAdd(d) : m === "rejecting" ? g.addTypes(_e) : ye;
|
|
2347
2347
|
return /* @__PURE__ */ S(Oi, {
|
|
2348
2348
|
withBorder: !0,
|
|
2349
2349
|
children: [
|
|
@@ -2357,8 +2357,8 @@ function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2357
2357
|
size: u,
|
|
2358
2358
|
multiple: d,
|
|
2359
2359
|
accept: f,
|
|
2360
|
-
directory:
|
|
2361
|
-
disabled: te ||
|
|
2360
|
+
directory: ge,
|
|
2361
|
+
disabled: te || ue,
|
|
2362
2362
|
onFilesAdded: (e, t) => {
|
|
2363
2363
|
ae(t.length === 0 ? null : {
|
|
2364
2364
|
paths: t.map((e) => e.path),
|
|
@@ -2366,39 +2366,39 @@ function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2366
2366
|
}), ne?.(e, t);
|
|
2367
2367
|
},
|
|
2368
2368
|
onDragStateChange: (e) => {
|
|
2369
|
-
|
|
2369
|
+
oe(e), re?.(e);
|
|
2370
2370
|
},
|
|
2371
2371
|
children: [
|
|
2372
2372
|
/* @__PURE__ */ x(Za, {}),
|
|
2373
2373
|
/* @__PURE__ */ x(Ka, { children: Se }),
|
|
2374
2374
|
Ce && /* @__PURE__ */ x(qa, { children: Ce }),
|
|
2375
|
-
/* @__PURE__ */ S(Ja, { children: [/* @__PURE__ */ x(Qa, { children:
|
|
2375
|
+
/* @__PURE__ */ S(Ja, { children: [/* @__PURE__ */ x(Qa, { children: g.chooseFiles }), /* @__PURE__ */ x(Qa, {
|
|
2376
2376
|
mode: "folder",
|
|
2377
|
-
children:
|
|
2377
|
+
children: g.chooseFolder
|
|
2378
2378
|
})] })
|
|
2379
2379
|
]
|
|
2380
2380
|
}),
|
|
2381
2381
|
p && /* @__PURE__ */ S(xi, {
|
|
2382
2382
|
variant: "warning",
|
|
2383
|
-
children: [/* @__PURE__ */ x(Si, {}), /* @__PURE__ */ x(wi, { children:
|
|
2383
|
+
children: [/* @__PURE__ */ x(Si, {}), /* @__PURE__ */ x(wi, { children: g.skipped({
|
|
2384
2384
|
count: p.paths.length,
|
|
2385
2385
|
paths: p.paths,
|
|
2386
|
-
types: p.byType ?
|
|
2386
|
+
types: p.byType ? _e : ""
|
|
2387
2387
|
}) })]
|
|
2388
2388
|
}),
|
|
2389
2389
|
e.length > 0 && /* @__PURE__ */ S(Ae, {
|
|
2390
2390
|
gap: "3",
|
|
2391
2391
|
align: "stretch",
|
|
2392
|
-
children: [
|
|
2393
|
-
value:
|
|
2392
|
+
children: [me.length > 0 && _.length === 0 && /* @__PURE__ */ S(Ui, {
|
|
2393
|
+
value: v,
|
|
2394
2394
|
children: [
|
|
2395
|
-
/* @__PURE__ */ x(Wi, { children:
|
|
2395
|
+
/* @__PURE__ */ x(Wi, { children: g.overall }),
|
|
2396
2396
|
/* @__PURE__ */ x(Gi, {}),
|
|
2397
2397
|
/* @__PURE__ */ x(Ki, { children: /* @__PURE__ */ x(qi, {}) })
|
|
2398
2398
|
]
|
|
2399
2399
|
}), /* @__PURE__ */ x("ul", {
|
|
2400
2400
|
className: V.uploadList,
|
|
2401
|
-
"aria-label":
|
|
2401
|
+
"aria-label": g.files,
|
|
2402
2402
|
children: e.map((e) => {
|
|
2403
2403
|
let n = e.path ?? e.file.name, i = e.status === "queued" || e.status === "error";
|
|
2404
2404
|
return /* @__PURE__ */ x("li", {
|
|
@@ -2412,25 +2412,25 @@ function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2412
2412
|
}),
|
|
2413
2413
|
/* @__PURE__ */ x("span", {
|
|
2414
2414
|
className: b(V.uploadSize, e.status === "error" && V.uploadFailed),
|
|
2415
|
-
children: e.status === "error" ?
|
|
2415
|
+
children: e.status === "error" ? g.failed : ga(e.file.size)
|
|
2416
2416
|
}),
|
|
2417
2417
|
/* @__PURE__ */ S("div", {
|
|
2418
2418
|
className: V.uploadRowActions,
|
|
2419
2419
|
children: [e.status === "error" && r && /* @__PURE__ */ x(be, {
|
|
2420
2420
|
variant: "ghost",
|
|
2421
2421
|
size: "sm",
|
|
2422
|
-
"aria-label":
|
|
2423
|
-
disabled: te ||
|
|
2422
|
+
"aria-label": g.retryName(n),
|
|
2423
|
+
disabled: te || ue,
|
|
2424
2424
|
onClick: () => {
|
|
2425
|
-
|
|
2425
|
+
ce((t) => new Set(t).add(e.id)), le(1), r(e.id);
|
|
2426
2426
|
},
|
|
2427
|
-
children:
|
|
2427
|
+
children: g.retry
|
|
2428
2428
|
}), /* @__PURE__ */ x(xe, {
|
|
2429
2429
|
glyph: a,
|
|
2430
|
-
label:
|
|
2430
|
+
label: g.remove(n),
|
|
2431
2431
|
size: "sm",
|
|
2432
2432
|
variant: "ghost",
|
|
2433
|
-
disabled: te ||
|
|
2433
|
+
disabled: te || ue,
|
|
2434
2434
|
onClick: () => t(e.id)
|
|
2435
2435
|
})]
|
|
2436
2436
|
})
|
|
@@ -2440,11 +2440,11 @@ function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2440
2440
|
value: e.status === "uploading" ? e.progress ?? null : 100,
|
|
2441
2441
|
size: "sm",
|
|
2442
2442
|
layout: "inline",
|
|
2443
|
-
"aria-valuetext": to(e,
|
|
2443
|
+
"aria-valuetext": to(e, g),
|
|
2444
2444
|
children: [
|
|
2445
2445
|
/* @__PURE__ */ x(Wi, { children: n }),
|
|
2446
2446
|
/* @__PURE__ */ x(Ki, { children: /* @__PURE__ */ x(qi, {}) }),
|
|
2447
|
-
/* @__PURE__ */ x(Gi, { children: () => to(e,
|
|
2447
|
+
/* @__PURE__ */ x(Gi, { children: () => to(e, g) })
|
|
2448
2448
|
]
|
|
2449
2449
|
})
|
|
2450
2450
|
}, e.id);
|
|
@@ -2454,27 +2454,27 @@ function ro({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2454
2454
|
]
|
|
2455
2455
|
}) }),
|
|
2456
2456
|
/* @__PURE__ */ S(Pi, { children: [
|
|
2457
|
-
|
|
2457
|
+
de && /* @__PURE__ */ x(ia, { children: he }),
|
|
2458
2458
|
/* @__PURE__ */ x("div", {
|
|
2459
2459
|
className: V.uploadAction,
|
|
2460
|
-
children:
|
|
2460
|
+
children: de ? i && /* @__PURE__ */ x(be, {
|
|
2461
2461
|
variant: "secondary",
|
|
2462
2462
|
onClick: () => {
|
|
2463
|
-
ae(null),
|
|
2463
|
+
ae(null), ce(/* @__PURE__ */ new Set()), i();
|
|
2464
2464
|
},
|
|
2465
|
-
children:
|
|
2465
|
+
children: g.startOver
|
|
2466
2466
|
}) : /* @__PURE__ */ x(be, {
|
|
2467
|
-
disabled: te ||
|
|
2467
|
+
disabled: te || _.length === 0 || ue,
|
|
2468
2468
|
onClick: () => {
|
|
2469
|
-
|
|
2469
|
+
ce(new Set(_.map((e) => e.id))), le(_.length), n();
|
|
2470
2470
|
},
|
|
2471
|
-
children:
|
|
2471
|
+
children: ue ? g.uploading : g.upload(_.length)
|
|
2472
2472
|
})
|
|
2473
2473
|
}),
|
|
2474
2474
|
/* @__PURE__ */ x("span", {
|
|
2475
2475
|
role: "status",
|
|
2476
2476
|
className: V.visuallyHidden,
|
|
2477
|
-
children:
|
|
2477
|
+
children: ue ? g.uploadingStatus(h) : de ? he : ""
|
|
2478
2478
|
})
|
|
2479
2479
|
] })
|
|
2480
2480
|
]
|
|
@@ -2485,7 +2485,7 @@ ro.displayName = "FileDropZone.Upload";
|
|
|
2485
2485
|
//#region src/components/file-drop-zone/file-drop-zone.meta.ts
|
|
2486
2486
|
var io = {
|
|
2487
2487
|
name: "FileDropZone",
|
|
2488
|
-
category:
|
|
2488
|
+
category: _.inputs,
|
|
2489
2489
|
status: "experimental",
|
|
2490
2490
|
description: "Drop zone with picker buttons for files or whole folders, reporting accepted and rejected files. Also called a file upload area or dropzone. For a single native file control inside a form, use Input.",
|
|
2491
2491
|
origin: "native",
|
|
@@ -2499,7 +2499,7 @@ var io = {
|
|
|
2499
2499
|
"Stack",
|
|
2500
2500
|
"Typo"
|
|
2501
2501
|
]
|
|
2502
|
-
},
|
|
2502
|
+
}, ao = {
|
|
2503
2503
|
clearButton: "imf-ui-input-module-clearButton",
|
|
2504
2504
|
root: "imf-ui-input-module-root",
|
|
2505
2505
|
shortcut: "imf-ui-input-module-shortcut",
|
|
@@ -2512,62 +2512,62 @@ var io = {
|
|
|
2512
2512
|
variantGhost: "imf-ui-input-module-variantGhost",
|
|
2513
2513
|
variantOutline: "imf-ui-input-module-variantOutline",
|
|
2514
2514
|
wrapper: "imf-ui-input-module-wrapper"
|
|
2515
|
-
},
|
|
2516
|
-
sm:
|
|
2517
|
-
md:
|
|
2518
|
-
lg:
|
|
2519
|
-
},
|
|
2515
|
+
}, oo = {
|
|
2516
|
+
sm: ao.sizeSm,
|
|
2517
|
+
md: ao.sizeMd,
|
|
2518
|
+
lg: ao.sizeLg
|
|
2519
|
+
}, so = y(ao.root, { variants: {
|
|
2520
2520
|
variant: {
|
|
2521
|
-
outline:
|
|
2522
|
-
filled:
|
|
2523
|
-
ghost:
|
|
2521
|
+
outline: ao.variantOutline,
|
|
2522
|
+
filled: ao.variantFilled,
|
|
2523
|
+
ghost: ao.variantGhost
|
|
2524
2524
|
},
|
|
2525
|
-
size:
|
|
2526
|
-
} }),
|
|
2527
|
-
function
|
|
2528
|
-
let d = n === "search", [f, te] = w(i ?? ""), ne = r ?? f, re = ne != null && String(ne).length > 0, ie = d && re && !l && !u.readOnly,
|
|
2525
|
+
size: oo
|
|
2526
|
+
} }), co = y(ao.shortcutTrack, { variants: { size: oo } });
|
|
2527
|
+
function lo({ variant: e = "outline", size: t = "md", type: n, value: r, defaultValue: i, onValueChange: o, onClear: s, shortcut: c, disabled: l, className: ee, ...u }) {
|
|
2528
|
+
let d = n === "search", [f, te] = w(i ?? ""), ne = r ?? f, re = ne != null && String(ne).length > 0, ie = c !== void 0, p = d && re && !l && !u.readOnly, ae = (e, t) => {
|
|
2529
2529
|
r === void 0 && te(e), o?.(e, t);
|
|
2530
|
-
},
|
|
2531
|
-
"aria-keyshortcuts": c ?
|
|
2530
|
+
}, m = /* @__PURE__ */ x(pt, {
|
|
2531
|
+
"aria-keyshortcuts": c ? pe(c) : void 0,
|
|
2532
2532
|
...u,
|
|
2533
2533
|
type: n,
|
|
2534
2534
|
value: d ? ne : r,
|
|
2535
2535
|
defaultValue: d ? void 0 : i,
|
|
2536
2536
|
disabled: l,
|
|
2537
|
-
onValueChange: d ||
|
|
2537
|
+
onValueChange: d || ie ? ae : o,
|
|
2538
2538
|
"data-imf-ui-component": "Input",
|
|
2539
|
-
className: (n) =>
|
|
2539
|
+
className: (n) => so({
|
|
2540
2540
|
variant: e,
|
|
2541
2541
|
size: t,
|
|
2542
|
-
className:
|
|
2542
|
+
className: v(ee, n)
|
|
2543
2543
|
})
|
|
2544
2544
|
});
|
|
2545
|
-
if (!d && !
|
|
2546
|
-
let oe = typeof ee == "string" ? `${
|
|
2545
|
+
if (!d && !ie) return m;
|
|
2546
|
+
let oe = typeof ee == "string" ? `${ao.wrapper} ${ee}` : ao.wrapper;
|
|
2547
2547
|
return /* @__PURE__ */ S("div", {
|
|
2548
2548
|
className: oe,
|
|
2549
2549
|
children: [
|
|
2550
|
-
|
|
2551
|
-
c && !
|
|
2552
|
-
className:
|
|
2550
|
+
m,
|
|
2551
|
+
c && !p && !l && /* @__PURE__ */ S("div", {
|
|
2552
|
+
className: co({ size: t }),
|
|
2553
2553
|
"aria-hidden": !0,
|
|
2554
2554
|
children: [/* @__PURE__ */ x("span", {
|
|
2555
|
-
className:
|
|
2555
|
+
className: ao.shortcutMirror,
|
|
2556
2556
|
children: re ? ne : u.placeholder
|
|
2557
|
-
}), /* @__PURE__ */ x(
|
|
2557
|
+
}), /* @__PURE__ */ x(ue, {
|
|
2558
2558
|
variant: "flat",
|
|
2559
|
-
className:
|
|
2559
|
+
className: ao.shortcut,
|
|
2560
2560
|
children: c
|
|
2561
2561
|
})]
|
|
2562
2562
|
}),
|
|
2563
|
-
|
|
2563
|
+
p && /* @__PURE__ */ x("button", {
|
|
2564
2564
|
type: "button",
|
|
2565
|
-
className:
|
|
2565
|
+
className: ao.clearButton,
|
|
2566
2566
|
"aria-label": "Clear input",
|
|
2567
2567
|
onClick: () => {
|
|
2568
2568
|
r === void 0 && te(""), s?.();
|
|
2569
2569
|
},
|
|
2570
|
-
children: /* @__PURE__ */ x(
|
|
2570
|
+
children: /* @__PURE__ */ x(h, {
|
|
2571
2571
|
glyph: a,
|
|
2572
2572
|
size: 16,
|
|
2573
2573
|
"aria-hidden": !0
|
|
@@ -2578,9 +2578,9 @@ function co({ variant: e = "outline", size: t = "md", type: n, value: r, default
|
|
|
2578
2578
|
}
|
|
2579
2579
|
//#endregion
|
|
2580
2580
|
//#region src/components/input/input.meta.ts
|
|
2581
|
-
var
|
|
2581
|
+
var uo = {
|
|
2582
2582
|
name: "Input",
|
|
2583
|
-
category:
|
|
2583
|
+
category: _.inputs,
|
|
2584
2584
|
status: "stable",
|
|
2585
2585
|
description: "Single-line text input for form data entry. Also called a text field; it supports controlled values and Field validation state.",
|
|
2586
2586
|
origin: "adapted",
|
|
@@ -2590,7 +2590,7 @@ var lo = {
|
|
|
2590
2590
|
docLink: "https://base-ui.com/react/components/input",
|
|
2591
2591
|
llmDocLink: "https://base-ui.com/react/components/input.md"
|
|
2592
2592
|
}
|
|
2593
|
-
},
|
|
2593
|
+
}, H = {
|
|
2594
2594
|
decrement: "imf-ui-number-field-module-decrement",
|
|
2595
2595
|
group: "imf-ui-number-field-module-group",
|
|
2596
2596
|
increment: "imf-ui-number-field-module-increment",
|
|
@@ -2607,32 +2607,32 @@ var lo = {
|
|
|
2607
2607
|
variantPrimary: "imf-ui-number-field-module-variantPrimary",
|
|
2608
2608
|
widthAuto: "imf-ui-number-field-module-widthAuto",
|
|
2609
2609
|
widthFull: "imf-ui-number-field-module-widthFull"
|
|
2610
|
-
},
|
|
2611
|
-
Decrement: () =>
|
|
2612
|
-
Group: () =>
|
|
2613
|
-
Increment: () =>
|
|
2614
|
-
Input: () =>
|
|
2615
|
-
Root: () =>
|
|
2616
|
-
ScrubArea: () =>
|
|
2617
|
-
ScrubAreaCursor: () =>
|
|
2618
|
-
Stepper: () =>
|
|
2619
|
-
}),
|
|
2620
|
-
auto:
|
|
2621
|
-
full:
|
|
2622
|
-
} } }),
|
|
2610
|
+
}, fo = /* @__PURE__ */ e({
|
|
2611
|
+
Decrement: () => To,
|
|
2612
|
+
Group: () => So,
|
|
2613
|
+
Increment: () => wo,
|
|
2614
|
+
Input: () => Co,
|
|
2615
|
+
Root: () => xo,
|
|
2616
|
+
ScrubArea: () => Eo,
|
|
2617
|
+
ScrubAreaCursor: () => Do,
|
|
2618
|
+
Stepper: () => Oo
|
|
2619
|
+
}), po = y(H.root, { variants: { width: {
|
|
2620
|
+
auto: H.widthAuto,
|
|
2621
|
+
full: H.widthFull
|
|
2622
|
+
} } }), mo = y(H.group, { variants: {
|
|
2623
2623
|
variant: {
|
|
2624
|
-
outline:
|
|
2625
|
-
primary:
|
|
2626
|
-
filled:
|
|
2627
|
-
ghost:
|
|
2624
|
+
outline: H.variantOutline,
|
|
2625
|
+
primary: H.variantPrimary,
|
|
2626
|
+
filled: H.variantFilled,
|
|
2627
|
+
ghost: H.variantGhost
|
|
2628
2628
|
},
|
|
2629
2629
|
size: {
|
|
2630
|
-
sm:
|
|
2631
|
-
md:
|
|
2632
|
-
lg:
|
|
2630
|
+
sm: H.sizeSm,
|
|
2631
|
+
md: H.sizeMd,
|
|
2632
|
+
lg: H.sizeLg
|
|
2633
2633
|
}
|
|
2634
|
-
} }),
|
|
2635
|
-
function
|
|
2634
|
+
} }), ho = y(H.input), go = y(H.increment), _o = y(H.decrement), vo = y(H.scrubArea), yo = y(H.scrubAreaCursor);
|
|
2635
|
+
function bo(e, t) {
|
|
2636
2636
|
if (typeof e != "number" || t?.minimumFractionDigits !== void 0) return t;
|
|
2637
2637
|
let n = (String(e).split(".")[1] ?? "").length;
|
|
2638
2638
|
return n === 0 ? t : {
|
|
@@ -2640,102 +2640,102 @@ function yo(e, t) {
|
|
|
2640
2640
|
minimumFractionDigits: n
|
|
2641
2641
|
};
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function xo({ width: e = "auto", step: t, format: n, ...r }) {
|
|
2644
2644
|
return /* @__PURE__ */ x(mt.Root, {
|
|
2645
2645
|
...r,
|
|
2646
2646
|
step: t,
|
|
2647
|
-
format:
|
|
2647
|
+
format: bo(t, n),
|
|
2648
2648
|
"data-imf-ui-component": "NumberField.Root",
|
|
2649
|
-
className: (t) =>
|
|
2649
|
+
className: (t) => po({
|
|
2650
2650
|
width: e,
|
|
2651
|
-
className:
|
|
2651
|
+
className: v(r.className, t)
|
|
2652
2652
|
})
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
|
-
|
|
2656
|
-
function
|
|
2655
|
+
xo.displayName = "NumberField.Root";
|
|
2656
|
+
function So({ variant: e = "outline", size: t = "md", ...n }) {
|
|
2657
2657
|
return /* @__PURE__ */ x(mt.Group, {
|
|
2658
2658
|
...n,
|
|
2659
2659
|
"data-imf-ui-component": "NumberField.Group",
|
|
2660
|
-
className: (r) =>
|
|
2660
|
+
className: (r) => mo({
|
|
2661
2661
|
variant: e,
|
|
2662
2662
|
size: t,
|
|
2663
|
-
className:
|
|
2663
|
+
className: v(n.className, r)
|
|
2664
2664
|
})
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
|
-
|
|
2668
|
-
function
|
|
2667
|
+
So.displayName = "NumberField.Group";
|
|
2668
|
+
function Co(e) {
|
|
2669
2669
|
return /* @__PURE__ */ x(mt.Input, {
|
|
2670
2670
|
...e,
|
|
2671
2671
|
"data-imf-ui-component": "NumberField.Input",
|
|
2672
|
-
className: (t) =>
|
|
2672
|
+
className: (t) => ho({ className: v(e.className, t) })
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
|
-
|
|
2676
|
-
function
|
|
2675
|
+
Co.displayName = "NumberField.Input";
|
|
2676
|
+
function wo(e) {
|
|
2677
2677
|
return /* @__PURE__ */ x(mt.Increment, {
|
|
2678
2678
|
...e,
|
|
2679
2679
|
"data-imf-ui-component": "NumberField.Increment",
|
|
2680
|
-
className: (t) =>
|
|
2680
|
+
className: (t) => go({ className: v(e.className, t) }),
|
|
2681
2681
|
children: "+"
|
|
2682
2682
|
});
|
|
2683
2683
|
}
|
|
2684
|
-
|
|
2685
|
-
function
|
|
2684
|
+
wo.displayName = "NumberField.Increment";
|
|
2685
|
+
function To(e) {
|
|
2686
2686
|
return /* @__PURE__ */ x(mt.Decrement, {
|
|
2687
2687
|
...e,
|
|
2688
2688
|
"data-imf-ui-component": "NumberField.Decrement",
|
|
2689
|
-
className: (t) =>
|
|
2689
|
+
className: (t) => _o({ className: v(e.className, t) }),
|
|
2690
2690
|
children: "-"
|
|
2691
2691
|
});
|
|
2692
2692
|
}
|
|
2693
|
-
|
|
2694
|
-
function
|
|
2693
|
+
To.displayName = "NumberField.Decrement";
|
|
2694
|
+
function Eo(e) {
|
|
2695
2695
|
return /* @__PURE__ */ x(mt.ScrubArea, {
|
|
2696
2696
|
...e,
|
|
2697
2697
|
"data-imf-ui-component": "NumberField.ScrubArea",
|
|
2698
|
-
className: (t) =>
|
|
2698
|
+
className: (t) => vo({ className: v(e.className, t) })
|
|
2699
2699
|
});
|
|
2700
2700
|
}
|
|
2701
|
-
|
|
2702
|
-
function
|
|
2701
|
+
Eo.displayName = "NumberField.ScrubArea";
|
|
2702
|
+
function Do(e) {
|
|
2703
2703
|
return /* @__PURE__ */ x(mt.ScrubAreaCursor, {
|
|
2704
2704
|
...e,
|
|
2705
2705
|
"data-imf-ui-component": "NumberField.ScrubAreaCursor",
|
|
2706
|
-
className: (t) =>
|
|
2706
|
+
className: (t) => yo({ className: v(e.className, t) })
|
|
2707
2707
|
});
|
|
2708
2708
|
}
|
|
2709
|
-
|
|
2710
|
-
function
|
|
2711
|
-
return /* @__PURE__ */ S(
|
|
2709
|
+
Do.displayName = "NumberField.ScrubAreaCursor";
|
|
2710
|
+
function Oo({ layout: e = "trailing", variant: t = "outline", size: n = "md", width: r = "auto", scrub: i, ...a }) {
|
|
2711
|
+
return /* @__PURE__ */ S(xo, {
|
|
2712
2712
|
...a,
|
|
2713
2713
|
width: r,
|
|
2714
|
-
children: [i != null && /* @__PURE__ */ S(
|
|
2714
|
+
children: [i != null && /* @__PURE__ */ S(Eo, { children: [i, /* @__PURE__ */ x(Do, { children: /* @__PURE__ */ x(h, {
|
|
2715
2715
|
glyph: d,
|
|
2716
2716
|
size: 20,
|
|
2717
2717
|
"aria-hidden": !0
|
|
2718
|
-
}) })] }), /* @__PURE__ */ x(
|
|
2718
|
+
}) })] }), /* @__PURE__ */ x(So, {
|
|
2719
2719
|
variant: t,
|
|
2720
2720
|
size: n,
|
|
2721
2721
|
children: e === "flanking" ? /* @__PURE__ */ S(Ye, { children: [
|
|
2722
|
-
/* @__PURE__ */ x(
|
|
2723
|
-
/* @__PURE__ */ x(
|
|
2724
|
-
/* @__PURE__ */ x(
|
|
2722
|
+
/* @__PURE__ */ x(To, {}),
|
|
2723
|
+
/* @__PURE__ */ x(Co, {}),
|
|
2724
|
+
/* @__PURE__ */ x(wo, {})
|
|
2725
2725
|
] }) : /* @__PURE__ */ S(Ye, { children: [
|
|
2726
|
-
/* @__PURE__ */ x(
|
|
2727
|
-
/* @__PURE__ */ x(
|
|
2728
|
-
/* @__PURE__ */ x(
|
|
2726
|
+
/* @__PURE__ */ x(Co, {}),
|
|
2727
|
+
/* @__PURE__ */ x(To, {}),
|
|
2728
|
+
/* @__PURE__ */ x(wo, {})
|
|
2729
2729
|
] })
|
|
2730
2730
|
})]
|
|
2731
2731
|
});
|
|
2732
2732
|
}
|
|
2733
|
-
|
|
2733
|
+
Oo.displayName = "NumberField.Stepper";
|
|
2734
2734
|
//#endregion
|
|
2735
2735
|
//#region src/components/number-field/number-field.meta.ts
|
|
2736
|
-
var
|
|
2736
|
+
var ko = {
|
|
2737
2737
|
name: "NumberField",
|
|
2738
|
-
category:
|
|
2738
|
+
category: _.inputs,
|
|
2739
2739
|
status: "experimental",
|
|
2740
2740
|
description: "Numeric entry with increment and decrement controls. Also called a number field, spinner, or stepper; use it instead of Input with type=\"number\" whenever a value is numeric. NumberField.Stepper composes the whole control in one element and takes a scrub prop that turns its label into a drag handle.",
|
|
2741
2741
|
origin: "adapted",
|
|
@@ -2745,35 +2745,35 @@ var Oo = {
|
|
|
2745
2745
|
docLink: "https://base-ui.com/react/components/number-field",
|
|
2746
2746
|
llmDocLink: "https://base-ui.com/react/components/number-field.md"
|
|
2747
2747
|
}
|
|
2748
|
-
},
|
|
2749
|
-
Arrow: () =>
|
|
2750
|
-
Backdrop: () =>
|
|
2751
|
-
Group: () =>
|
|
2752
|
-
GroupLabel: () =>
|
|
2753
|
-
Icon: () =>
|
|
2754
|
-
Item: () =>
|
|
2755
|
-
ItemDescription: () =>
|
|
2756
|
-
ItemIndicator: () =>
|
|
2757
|
-
ItemText: () =>
|
|
2758
|
-
Label: () =>
|
|
2759
|
-
List: () =>
|
|
2760
|
-
Popup: () =>
|
|
2761
|
-
Portal: () =>
|
|
2762
|
-
Positioner: () =>
|
|
2763
|
-
Root: () =>
|
|
2764
|
-
ScrollDownArrow: () =>
|
|
2765
|
-
ScrollUpArrow: () =>
|
|
2766
|
-
Separator: () =>
|
|
2767
|
-
Trigger: () =>
|
|
2768
|
-
Value: () =>
|
|
2769
|
-
}),
|
|
2748
|
+
}, Ao = /* @__PURE__ */ e({
|
|
2749
|
+
Arrow: () => $o,
|
|
2750
|
+
Backdrop: () => Xo,
|
|
2751
|
+
Group: () => as,
|
|
2752
|
+
GroupLabel: () => os,
|
|
2753
|
+
Icon: () => Jo,
|
|
2754
|
+
Item: () => ts,
|
|
2755
|
+
ItemDescription: () => is,
|
|
2756
|
+
ItemIndicator: () => ns,
|
|
2757
|
+
ItemText: () => rs,
|
|
2758
|
+
Label: () => Go,
|
|
2759
|
+
List: () => es,
|
|
2760
|
+
Popup: () => Qo,
|
|
2761
|
+
Portal: () => Yo,
|
|
2762
|
+
Positioner: () => Zo,
|
|
2763
|
+
Root: () => Wo,
|
|
2764
|
+
ScrollDownArrow: () => ls,
|
|
2765
|
+
ScrollUpArrow: () => cs,
|
|
2766
|
+
Separator: () => ss,
|
|
2767
|
+
Trigger: () => Ko,
|
|
2768
|
+
Value: () => qo
|
|
2769
|
+
}), jo = y(F.root, { variants: { width: {
|
|
2770
2770
|
auto: F.widthAuto,
|
|
2771
2771
|
wide: F.widthWide,
|
|
2772
2772
|
full: F.widthFull
|
|
2773
|
-
} } }),
|
|
2774
|
-
function
|
|
2773
|
+
} } }), Mo = y(F.label), No = y(F.trigger), Po = y(F.value), Fo = y(F.icon), Io = y(F.backdrop), Lo = y(F.positioner), Ro = y(F.arrow), zo = y(F.group), Bo = y(F.groupLabel), Vo = y(F.separator), Ho = y(F.scrollUpArrow), Uo = y(F.scrollDownArrow);
|
|
2774
|
+
function Wo({ width: e = "auto", className: t, style: n, ...r }) {
|
|
2775
2775
|
return /* @__PURE__ */ x("div", {
|
|
2776
|
-
className:
|
|
2776
|
+
className: jo({
|
|
2777
2777
|
width: e,
|
|
2778
2778
|
className: t
|
|
2779
2779
|
}),
|
|
@@ -2781,124 +2781,124 @@ function Uo({ width: e = "auto", className: t, style: n, ...r }) {
|
|
|
2781
2781
|
children: /* @__PURE__ */ x(k.Root, { ...r })
|
|
2782
2782
|
});
|
|
2783
2783
|
}
|
|
2784
|
-
|
|
2785
|
-
function
|
|
2784
|
+
Wo.displayName = "Select.Root";
|
|
2785
|
+
function Go(e) {
|
|
2786
2786
|
return /* @__PURE__ */ x(k.Label, {
|
|
2787
2787
|
...e,
|
|
2788
2788
|
"data-imf-ui-component": "Select.Label",
|
|
2789
|
-
className: (t) =>
|
|
2789
|
+
className: (t) => Mo({ className: v(e.className, t) })
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2793
|
-
function
|
|
2792
|
+
Go.displayName = "Select.Label";
|
|
2793
|
+
function Ko(e) {
|
|
2794
2794
|
return /* @__PURE__ */ x(k.Trigger, {
|
|
2795
2795
|
...e,
|
|
2796
2796
|
"data-imf-ui-component": "Select.Trigger",
|
|
2797
|
-
className: (t) =>
|
|
2797
|
+
className: (t) => No({ className: v(e.className, t) })
|
|
2798
2798
|
});
|
|
2799
2799
|
}
|
|
2800
|
-
|
|
2801
|
-
function
|
|
2800
|
+
Ko.displayName = "Select.Trigger";
|
|
2801
|
+
function qo({ children: e, ...t }) {
|
|
2802
2802
|
return /* @__PURE__ */ x(k.Value, {
|
|
2803
2803
|
...t,
|
|
2804
2804
|
"data-imf-ui-component": "Select.Value",
|
|
2805
|
-
className: (e) =>
|
|
2805
|
+
className: (e) => Po({ className: v(t.className, e) }),
|
|
2806
2806
|
children: e
|
|
2807
2807
|
});
|
|
2808
2808
|
}
|
|
2809
|
-
|
|
2810
|
-
function
|
|
2809
|
+
qo.displayName = "Select.Value";
|
|
2810
|
+
function Jo(e) {
|
|
2811
2811
|
return /* @__PURE__ */ x(k.Icon, {
|
|
2812
2812
|
...e,
|
|
2813
2813
|
"data-imf-ui-component": "Select.Icon",
|
|
2814
|
-
className: (t) =>
|
|
2814
|
+
className: (t) => Fo({ className: v(e.className, t) })
|
|
2815
2815
|
});
|
|
2816
2816
|
}
|
|
2817
|
-
|
|
2818
|
-
function
|
|
2817
|
+
Jo.displayName = "Select.Icon";
|
|
2818
|
+
function Yo(e) {
|
|
2819
2819
|
return /* @__PURE__ */ x(k.Portal, { ...e });
|
|
2820
2820
|
}
|
|
2821
|
-
|
|
2822
|
-
function
|
|
2821
|
+
Yo.displayName = "Select.Portal";
|
|
2822
|
+
function Xo(e) {
|
|
2823
2823
|
return /* @__PURE__ */ x(k.Backdrop, {
|
|
2824
2824
|
...e,
|
|
2825
2825
|
"data-imf-ui-component": "Select.Backdrop",
|
|
2826
|
-
className: (t) =>
|
|
2826
|
+
className: (t) => Io({ className: v(e.className, t) })
|
|
2827
2827
|
});
|
|
2828
2828
|
}
|
|
2829
|
-
|
|
2830
|
-
function
|
|
2829
|
+
Xo.displayName = "Select.Backdrop";
|
|
2830
|
+
function Zo({ align: e = "start", alignItemWithTrigger: t = !1, sideOffset: n = 4, ...r }) {
|
|
2831
2831
|
return /* @__PURE__ */ x(k.Positioner, {
|
|
2832
2832
|
...r,
|
|
2833
2833
|
align: e,
|
|
2834
2834
|
alignItemWithTrigger: t,
|
|
2835
2835
|
sideOffset: n,
|
|
2836
2836
|
"data-imf-ui-component": "Select.Positioner",
|
|
2837
|
-
className: (e) =>
|
|
2837
|
+
className: (e) => Lo({ className: v(r.className, e) })
|
|
2838
2838
|
});
|
|
2839
2839
|
}
|
|
2840
|
-
|
|
2841
|
-
function
|
|
2840
|
+
Zo.displayName = "Select.Positioner";
|
|
2841
|
+
function Qo(e) {
|
|
2842
2842
|
return /* @__PURE__ */ x(k.Popup, {
|
|
2843
2843
|
...e,
|
|
2844
2844
|
"data-imf-ui-component": "Select.Popup",
|
|
2845
|
-
className: (t) => Lt({ className:
|
|
2845
|
+
className: (t) => Lt({ className: v(e.className, t) })
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
|
-
|
|
2849
|
-
function
|
|
2848
|
+
Qo.displayName = "Select.Popup";
|
|
2849
|
+
function $o(e) {
|
|
2850
2850
|
return /* @__PURE__ */ x(k.Arrow, {
|
|
2851
2851
|
...e,
|
|
2852
2852
|
"data-imf-ui-component": "Select.Arrow",
|
|
2853
|
-
className: (t) =>
|
|
2853
|
+
className: (t) => Ro({ className: v(e.className, t) })
|
|
2854
2854
|
});
|
|
2855
2855
|
}
|
|
2856
|
-
|
|
2857
|
-
function
|
|
2856
|
+
$o.displayName = "Select.Arrow";
|
|
2857
|
+
function es(e) {
|
|
2858
2858
|
return /* @__PURE__ */ x(k.List, {
|
|
2859
2859
|
...e,
|
|
2860
2860
|
"data-imf-ui-component": "Select.List",
|
|
2861
|
-
className: (t) => Rt({ className:
|
|
2861
|
+
className: (t) => Rt({ className: v(e.className, t) })
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
|
-
|
|
2865
|
-
function
|
|
2866
|
-
let { context: t, ariaProps: n } =
|
|
2867
|
-
return /* @__PURE__ */ x(
|
|
2864
|
+
es.displayName = "Select.List";
|
|
2865
|
+
function ts(e) {
|
|
2866
|
+
let { context: t, ariaProps: n } = he();
|
|
2867
|
+
return /* @__PURE__ */ x(ge, {
|
|
2868
2868
|
value: t,
|
|
2869
2869
|
children: /* @__PURE__ */ x(k.Item, {
|
|
2870
2870
|
...n,
|
|
2871
2871
|
...e,
|
|
2872
2872
|
"data-imf-ui-component": "Select.Item",
|
|
2873
|
-
className: (t) => zt({ className:
|
|
2873
|
+
className: (t) => zt({ className: v(e.className, t) })
|
|
2874
2874
|
})
|
|
2875
2875
|
});
|
|
2876
2876
|
}
|
|
2877
|
-
|
|
2878
|
-
function
|
|
2877
|
+
ts.displayName = "Select.Item";
|
|
2878
|
+
function ns({ children: e, ...t }) {
|
|
2879
2879
|
return /* @__PURE__ */ x(k.ItemIndicator, {
|
|
2880
2880
|
...t,
|
|
2881
2881
|
"data-imf-ui-component": "Select.ItemIndicator",
|
|
2882
|
-
className: (e) => Bt({ className:
|
|
2883
|
-
children: e ?? /* @__PURE__ */ x(
|
|
2882
|
+
className: (e) => Bt({ className: v(t.className, e) }),
|
|
2883
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
2884
2884
|
glyph: p,
|
|
2885
2885
|
size: 16,
|
|
2886
2886
|
"aria-hidden": !0
|
|
2887
2887
|
})
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2891
|
-
function
|
|
2890
|
+
ns.displayName = "Select.ItemIndicator";
|
|
2891
|
+
function rs(e) {
|
|
2892
2892
|
let t = ve("label");
|
|
2893
2893
|
return /* @__PURE__ */ x(k.ItemText, {
|
|
2894
2894
|
id: t,
|
|
2895
2895
|
...e,
|
|
2896
2896
|
"data-imf-ui-component": "Select.ItemText",
|
|
2897
|
-
className: (t) => Vt({ className:
|
|
2897
|
+
className: (t) => Vt({ className: v(e.className, t) })
|
|
2898
2898
|
});
|
|
2899
2899
|
}
|
|
2900
|
-
|
|
2901
|
-
function
|
|
2900
|
+
rs.displayName = "Select.ItemText";
|
|
2901
|
+
function is(e) {
|
|
2902
2902
|
let t = ve("description");
|
|
2903
2903
|
return /* @__PURE__ */ x("div", {
|
|
2904
2904
|
id: t,
|
|
@@ -2907,52 +2907,52 @@ function rs(e) {
|
|
|
2907
2907
|
className: Ht({ className: e.className })
|
|
2908
2908
|
});
|
|
2909
2909
|
}
|
|
2910
|
-
|
|
2911
|
-
function
|
|
2910
|
+
is.displayName = "Select.ItemDescription";
|
|
2911
|
+
function as(e) {
|
|
2912
2912
|
return /* @__PURE__ */ x(k.Group, {
|
|
2913
2913
|
...e,
|
|
2914
2914
|
"data-imf-ui-component": "Select.Group",
|
|
2915
|
-
className: (t) =>
|
|
2915
|
+
className: (t) => zo({ className: v(e.className, t) })
|
|
2916
2916
|
});
|
|
2917
2917
|
}
|
|
2918
|
-
|
|
2919
|
-
function
|
|
2918
|
+
as.displayName = "Select.Group";
|
|
2919
|
+
function os(e) {
|
|
2920
2920
|
return /* @__PURE__ */ x(k.GroupLabel, {
|
|
2921
2921
|
...e,
|
|
2922
2922
|
"data-imf-ui-component": "Select.GroupLabel",
|
|
2923
|
-
className: (t) =>
|
|
2923
|
+
className: (t) => Bo({ className: v(e.className, t) })
|
|
2924
2924
|
});
|
|
2925
2925
|
}
|
|
2926
|
-
|
|
2927
|
-
function
|
|
2926
|
+
os.displayName = "Select.GroupLabel";
|
|
2927
|
+
function ss(e) {
|
|
2928
2928
|
return /* @__PURE__ */ x(k.Separator, {
|
|
2929
2929
|
...e,
|
|
2930
2930
|
"data-imf-ui-component": "Select.Separator",
|
|
2931
|
-
className: (t) =>
|
|
2931
|
+
className: (t) => Vo({ className: v(e.className, t) })
|
|
2932
2932
|
});
|
|
2933
2933
|
}
|
|
2934
|
-
|
|
2935
|
-
function
|
|
2934
|
+
ss.displayName = "Select.Separator";
|
|
2935
|
+
function cs(e) {
|
|
2936
2936
|
return /* @__PURE__ */ x(k.ScrollUpArrow, {
|
|
2937
2937
|
...e,
|
|
2938
2938
|
"data-imf-ui-component": "Select.ScrollUpArrow",
|
|
2939
|
-
className: (t) =>
|
|
2939
|
+
className: (t) => Ho({ className: v(e.className, t) })
|
|
2940
2940
|
});
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2943
|
-
function
|
|
2942
|
+
cs.displayName = "Select.ScrollUpArrow";
|
|
2943
|
+
function ls(e) {
|
|
2944
2944
|
return /* @__PURE__ */ x(k.ScrollDownArrow, {
|
|
2945
2945
|
...e,
|
|
2946
2946
|
"data-imf-ui-component": "Select.ScrollDownArrow",
|
|
2947
|
-
className: (t) =>
|
|
2947
|
+
className: (t) => Uo({ className: v(e.className, t) })
|
|
2948
2948
|
});
|
|
2949
2949
|
}
|
|
2950
|
-
|
|
2950
|
+
ls.displayName = "Select.ScrollDownArrow";
|
|
2951
2951
|
//#endregion
|
|
2952
2952
|
//#region src/components/select/select.meta.ts
|
|
2953
|
-
var
|
|
2953
|
+
var us = {
|
|
2954
2954
|
name: "Select",
|
|
2955
|
-
category:
|
|
2955
|
+
category: _.inputs,
|
|
2956
2956
|
status: "stable",
|
|
2957
2957
|
description: "Dropdown for choosing a value from a known list. Also called a picker; use it for a labeled, keyboard-accessible option list.",
|
|
2958
2958
|
origin: "adapted",
|
|
@@ -2962,9 +2962,9 @@ var ls = {
|
|
|
2962
2962
|
docLink: "https://base-ui.com/react/components/select",
|
|
2963
2963
|
llmDocLink: "https://base-ui.com/react/components/select.md"
|
|
2964
2964
|
}
|
|
2965
|
-
},
|
|
2965
|
+
}, ds = {
|
|
2966
2966
|
name: "Slider",
|
|
2967
|
-
category:
|
|
2967
|
+
category: _.inputs,
|
|
2968
2968
|
status: "stable",
|
|
2969
2969
|
description: "Numeric input for choosing one value or a range by dragging a thumb. Also called a range input; use it when relative magnitude matters. The position variant is a scrubber for picking one slice or frame.",
|
|
2970
2970
|
origin: "adapted",
|
|
@@ -2974,9 +2974,9 @@ var ls = {
|
|
|
2974
2974
|
docLink: "https://base-ui.com/react/components/slider",
|
|
2975
2975
|
llmDocLink: "https://base-ui.com/react/components/slider.md"
|
|
2976
2976
|
}
|
|
2977
|
-
},
|
|
2977
|
+
}, fs = {
|
|
2978
2978
|
name: "Switch",
|
|
2979
|
-
category:
|
|
2979
|
+
category: _.inputs,
|
|
2980
2980
|
status: "stable",
|
|
2981
2981
|
description: "Two-state control for an on/off setting that takes effect immediately. Also called a toggle; use Checkbox for a submitted choice.",
|
|
2982
2982
|
origin: "adapted",
|
|
@@ -2986,7 +2986,7 @@ var ls = {
|
|
|
2986
2986
|
docLink: "https://base-ui.com/react/components/switch",
|
|
2987
2987
|
llmDocLink: "https://base-ui.com/react/components/switch.md"
|
|
2988
2988
|
}
|
|
2989
|
-
},
|
|
2989
|
+
}, U = {
|
|
2990
2990
|
control: "imf-ui-textarea-module-control",
|
|
2991
2991
|
corner: "imf-ui-textarea-module-corner",
|
|
2992
2992
|
resizeBoth: "imf-ui-textarea-module-resizeBoth",
|
|
@@ -3001,25 +3001,25 @@ var ls = {
|
|
|
3001
3001
|
variantFilled: "imf-ui-textarea-module-variantFilled",
|
|
3002
3002
|
variantGhost: "imf-ui-textarea-module-variantGhost",
|
|
3003
3003
|
variantOutline: "imf-ui-textarea-module-variantOutline"
|
|
3004
|
-
},
|
|
3004
|
+
}, ps = y(U.control, { variants: {
|
|
3005
3005
|
variant: {
|
|
3006
|
-
outline:
|
|
3007
|
-
filled:
|
|
3008
|
-
ghost:
|
|
3006
|
+
outline: U.variantOutline,
|
|
3007
|
+
filled: U.variantFilled,
|
|
3008
|
+
ghost: U.variantGhost
|
|
3009
3009
|
},
|
|
3010
3010
|
size: {
|
|
3011
|
-
sm:
|
|
3012
|
-
md:
|
|
3013
|
-
lg:
|
|
3011
|
+
sm: U.sizeSm,
|
|
3012
|
+
md: U.sizeMd,
|
|
3013
|
+
lg: U.sizeLg
|
|
3014
3014
|
},
|
|
3015
3015
|
resize: {
|
|
3016
|
-
vertical:
|
|
3017
|
-
horizontal:
|
|
3018
|
-
both:
|
|
3019
|
-
none:
|
|
3016
|
+
vertical: U.resizeVertical,
|
|
3017
|
+
horizontal: U.resizeHorizontal,
|
|
3018
|
+
both: U.resizeBoth,
|
|
3019
|
+
none: U.resizeNone
|
|
3020
3020
|
}
|
|
3021
3021
|
} });
|
|
3022
|
-
function
|
|
3022
|
+
function ms({ variant: e = "outline", size: t = "md", rows: n = 3, resize: r = "vertical", render: i = /* @__PURE__ */ x("textarea", {}), className: a, style: o, ...s }) {
|
|
3023
3023
|
let c = {
|
|
3024
3024
|
...s,
|
|
3025
3025
|
rows: n
|
|
@@ -3027,30 +3027,30 @@ function ps({ variant: e = "outline", size: t = "md", rows: n = 3, resize: r = "
|
|
|
3027
3027
|
return /* @__PURE__ */ S("span", {
|
|
3028
3028
|
"data-imf-ui-component": "Textarea",
|
|
3029
3029
|
className: [
|
|
3030
|
-
|
|
3031
|
-
r === "horizontal" || r === "both" ?
|
|
3030
|
+
U.root,
|
|
3031
|
+
r === "horizontal" || r === "both" ? U.rootInline : "",
|
|
3032
3032
|
a
|
|
3033
3033
|
].filter(Boolean).join(" "),
|
|
3034
3034
|
style: o,
|
|
3035
3035
|
children: [/* @__PURE__ */ x(pt, {
|
|
3036
3036
|
...c,
|
|
3037
3037
|
render: i,
|
|
3038
|
-
className:
|
|
3038
|
+
className: ps({
|
|
3039
3039
|
variant: e,
|
|
3040
3040
|
size: t,
|
|
3041
3041
|
resize: r
|
|
3042
3042
|
})
|
|
3043
3043
|
}), /* @__PURE__ */ x("span", {
|
|
3044
|
-
className:
|
|
3044
|
+
className: U.corner,
|
|
3045
3045
|
"aria-hidden": "true"
|
|
3046
3046
|
})]
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
3049
|
//#endregion
|
|
3050
3050
|
//#region src/components/textarea/textarea.meta.ts
|
|
3051
|
-
var
|
|
3051
|
+
var hs = {
|
|
3052
3052
|
name: "Textarea",
|
|
3053
|
-
category:
|
|
3053
|
+
category: _.inputs,
|
|
3054
3054
|
status: "experimental",
|
|
3055
3055
|
description: "Multi-line text input for longer free text, such as a description or note. Also called a text area; use Input for a single line. It reads validation state from Field.",
|
|
3056
3056
|
origin: "adapted",
|
|
@@ -3060,7 +3060,7 @@ var ms = {
|
|
|
3060
3060
|
docLink: "https://base-ui.com/react/components/input",
|
|
3061
3061
|
llmDocLink: "https://base-ui.com/react/components/input.md"
|
|
3062
3062
|
}
|
|
3063
|
-
},
|
|
3063
|
+
}, gs = {
|
|
3064
3064
|
mobile: 375,
|
|
3065
3065
|
sm: 640,
|
|
3066
3066
|
md: 768,
|
|
@@ -3069,10 +3069,10 @@ var ms = {
|
|
|
3069
3069
|
};
|
|
3070
3070
|
//#endregion
|
|
3071
3071
|
//#region src/breakpoints/min-width.ts
|
|
3072
|
-
function
|
|
3073
|
-
return `(min-width: ${String(
|
|
3072
|
+
function _s(e) {
|
|
3073
|
+
return `(min-width: ${String(gs[e])}px)`;
|
|
3074
3074
|
}
|
|
3075
|
-
var
|
|
3075
|
+
var W = {
|
|
3076
3076
|
backdrop: "imf-ui-drawer-module-backdrop",
|
|
3077
3077
|
borderColorFgMinor: "imf-ui-drawer-module-borderColorFgMinor",
|
|
3078
3078
|
borderColorFgSupport: "imf-ui-drawer-module-borderColorFgSupport",
|
|
@@ -3097,45 +3097,45 @@ var G = {
|
|
|
3097
3097
|
title: "imf-ui-drawer-module-title",
|
|
3098
3098
|
trigger: "imf-ui-drawer-module-trigger",
|
|
3099
3099
|
viewport: "imf-ui-drawer-module-viewport"
|
|
3100
|
-
},
|
|
3101
|
-
Backdrop: () =>
|
|
3102
|
-
Close: () =>
|
|
3103
|
-
Content: () =>
|
|
3104
|
-
Description: () =>
|
|
3105
|
-
Indent: () =>
|
|
3106
|
-
IndentBackground: () =>
|
|
3107
|
-
Popup: () =>
|
|
3108
|
-
Portal: () =>
|
|
3109
|
-
Provider: () =>
|
|
3110
|
-
Root: () =>
|
|
3111
|
-
SwipeArea: () =>
|
|
3112
|
-
Title: () =>
|
|
3113
|
-
Trigger: () =>
|
|
3114
|
-
Viewport: () =>
|
|
3115
|
-
}),
|
|
3100
|
+
}, vs = /* @__PURE__ */ e({
|
|
3101
|
+
Backdrop: () => Ps,
|
|
3102
|
+
Close: () => Bs,
|
|
3103
|
+
Content: () => Rs,
|
|
3104
|
+
Description: () => Vs,
|
|
3105
|
+
Indent: () => Us,
|
|
3106
|
+
IndentBackground: () => Ws,
|
|
3107
|
+
Popup: () => Ls,
|
|
3108
|
+
Portal: () => Ns,
|
|
3109
|
+
Provider: () => Hs,
|
|
3110
|
+
Root: () => js,
|
|
3111
|
+
SwipeArea: () => Gs,
|
|
3112
|
+
Title: () => zs,
|
|
3113
|
+
Trigger: () => Ms,
|
|
3114
|
+
Viewport: () => Fs
|
|
3115
|
+
}), ys = $e({
|
|
3116
3116
|
borderColor: "none",
|
|
3117
3117
|
borderStyle: "solid"
|
|
3118
|
-
}),
|
|
3118
|
+
}), bs = y(W.trigger), xs = y(W.backdrop), Ss = y(W.viewport), Cs = y(W.popup, {
|
|
3119
3119
|
variants: {
|
|
3120
3120
|
borderColor: {
|
|
3121
|
-
primary:
|
|
3122
|
-
"fg-minor":
|
|
3123
|
-
"fg-support":
|
|
3124
|
-
none:
|
|
3121
|
+
primary: W.borderColorPrimary,
|
|
3122
|
+
"fg-minor": W.borderColorFgMinor,
|
|
3123
|
+
"fg-support": W.borderColorFgSupport,
|
|
3124
|
+
none: W.borderColorNone
|
|
3125
3125
|
},
|
|
3126
3126
|
borderStyle: {
|
|
3127
|
-
solid:
|
|
3128
|
-
dashed:
|
|
3129
|
-
none:
|
|
3127
|
+
solid: W.borderStyleSolid,
|
|
3128
|
+
dashed: W.borderStyleDashed,
|
|
3129
|
+
none: W.borderStyleNone
|
|
3130
3130
|
}
|
|
3131
3131
|
},
|
|
3132
3132
|
defaultVariants: {
|
|
3133
3133
|
borderColor: "none",
|
|
3134
3134
|
borderStyle: "solid"
|
|
3135
3135
|
}
|
|
3136
|
-
}),
|
|
3137
|
-
function
|
|
3138
|
-
return /* @__PURE__ */ x(
|
|
3136
|
+
}), ws = y(W.content), Ts = y(W.title), Es = y(W.close), Ds = y(W.description), Os = y(W.indent), ks = y(W.indentBackground), As = y(W.swipeArea);
|
|
3137
|
+
function js({ borderColor: e = "none", borderStyle: t = "solid", ...n }) {
|
|
3138
|
+
return /* @__PURE__ */ x(ys.Provider, {
|
|
3139
3139
|
value: {
|
|
3140
3140
|
borderColor: e,
|
|
3141
3141
|
borderStyle: t
|
|
@@ -3143,126 +3143,126 @@ function As({ borderColor: e = "none", borderStyle: t = "solid", ...n }) {
|
|
|
3143
3143
|
children: /* @__PURE__ */ x(A.Root, { ...n })
|
|
3144
3144
|
});
|
|
3145
3145
|
}
|
|
3146
|
-
|
|
3147
|
-
function
|
|
3146
|
+
js.displayName = "Drawer.Root";
|
|
3147
|
+
function Ms(e) {
|
|
3148
3148
|
return /* @__PURE__ */ x(A.Trigger, {
|
|
3149
3149
|
...e,
|
|
3150
3150
|
"data-imf-ui-component": "Drawer.Trigger",
|
|
3151
|
-
className: (t) =>
|
|
3151
|
+
className: (t) => bs({ className: v(e.className, t) })
|
|
3152
3152
|
});
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3155
|
-
function
|
|
3154
|
+
Ms.displayName = "Drawer.Trigger";
|
|
3155
|
+
function Ns(e) {
|
|
3156
3156
|
return /* @__PURE__ */ x(A.Portal, { ...e });
|
|
3157
3157
|
}
|
|
3158
|
-
|
|
3159
|
-
function
|
|
3158
|
+
Ns.displayName = "Drawer.Portal";
|
|
3159
|
+
function Ps(e) {
|
|
3160
3160
|
return /* @__PURE__ */ x(A.Backdrop, {
|
|
3161
3161
|
...e,
|
|
3162
3162
|
"data-imf-ui-component": "Drawer.Backdrop",
|
|
3163
|
-
className: (t) =>
|
|
3163
|
+
className: (t) => xs({ className: v(e.className, t) })
|
|
3164
3164
|
});
|
|
3165
3165
|
}
|
|
3166
|
-
|
|
3167
|
-
function
|
|
3166
|
+
Ps.displayName = "Drawer.Backdrop";
|
|
3167
|
+
function Fs(e) {
|
|
3168
3168
|
return /* @__PURE__ */ x(A.Viewport, {
|
|
3169
3169
|
...e,
|
|
3170
3170
|
"data-imf-ui-component": "Drawer.Viewport",
|
|
3171
|
-
className: (t) =>
|
|
3171
|
+
className: (t) => Ss({ className: v(e.className, t) })
|
|
3172
3172
|
});
|
|
3173
3173
|
}
|
|
3174
|
-
|
|
3175
|
-
var
|
|
3176
|
-
left:
|
|
3177
|
-
right:
|
|
3178
|
-
down:
|
|
3179
|
-
up:
|
|
3174
|
+
Fs.displayName = "Drawer.Viewport";
|
|
3175
|
+
var Is = {
|
|
3176
|
+
left: W.popupLeft,
|
|
3177
|
+
right: W.popupRight,
|
|
3178
|
+
down: W.popupBottom,
|
|
3179
|
+
up: W.popupTop
|
|
3180
3180
|
};
|
|
3181
|
-
function
|
|
3182
|
-
let r = C(
|
|
3181
|
+
function Ls({ borderColor: e, borderStyle: t, ...n }) {
|
|
3182
|
+
let r = C(ys), i = e ?? r.borderColor, a = t ?? r.borderStyle;
|
|
3183
3183
|
return /* @__PURE__ */ x(A.Popup, {
|
|
3184
3184
|
...n,
|
|
3185
3185
|
"data-imf-ui-component": "Drawer.Popup",
|
|
3186
|
-
className: (e) =>
|
|
3186
|
+
className: (e) => Cs({
|
|
3187
3187
|
borderColor: i,
|
|
3188
3188
|
borderStyle: a,
|
|
3189
|
-
className: b(
|
|
3189
|
+
className: b(Is[e.swipeDirection], v(n.className, e))
|
|
3190
3190
|
})
|
|
3191
3191
|
});
|
|
3192
3192
|
}
|
|
3193
|
-
|
|
3194
|
-
function
|
|
3193
|
+
Ls.displayName = "Drawer.Popup";
|
|
3194
|
+
function Rs({ children: e, ...t }) {
|
|
3195
3195
|
return /* @__PURE__ */ x(A.Content, {
|
|
3196
3196
|
...t,
|
|
3197
3197
|
"data-imf-ui-component": "Drawer.Content",
|
|
3198
|
-
className: (e) =>
|
|
3198
|
+
className: (e) => ws({ className: v(t.className, e) }),
|
|
3199
3199
|
children: /* @__PURE__ */ x(ze, {
|
|
3200
|
-
className:
|
|
3200
|
+
className: W.contentScroll,
|
|
3201
3201
|
children: /* @__PURE__ */ x("div", {
|
|
3202
|
-
className:
|
|
3202
|
+
className: W.contentBody,
|
|
3203
3203
|
children: e
|
|
3204
3204
|
})
|
|
3205
3205
|
})
|
|
3206
3206
|
});
|
|
3207
3207
|
}
|
|
3208
|
-
|
|
3209
|
-
function
|
|
3208
|
+
Rs.displayName = "Drawer.Content";
|
|
3209
|
+
function zs(e) {
|
|
3210
3210
|
return /* @__PURE__ */ x(A.Title, {
|
|
3211
3211
|
...e,
|
|
3212
3212
|
"data-imf-ui-component": "Drawer.Title",
|
|
3213
|
-
className:
|
|
3213
|
+
className: Ts({ className: e.className })
|
|
3214
3214
|
});
|
|
3215
3215
|
}
|
|
3216
|
-
|
|
3217
|
-
function
|
|
3216
|
+
zs.displayName = "Drawer.Title";
|
|
3217
|
+
function Bs(e) {
|
|
3218
3218
|
return /* @__PURE__ */ x(A.Close, {
|
|
3219
3219
|
...e,
|
|
3220
3220
|
"data-imf-ui-component": "Drawer.Close",
|
|
3221
|
-
className: (t) =>
|
|
3221
|
+
className: (t) => Es({ className: v(e.className, t) })
|
|
3222
3222
|
});
|
|
3223
3223
|
}
|
|
3224
|
-
|
|
3225
|
-
function
|
|
3224
|
+
Bs.displayName = "Drawer.Close";
|
|
3225
|
+
function Vs(e) {
|
|
3226
3226
|
return /* @__PURE__ */ x(A.Description, {
|
|
3227
3227
|
...e,
|
|
3228
3228
|
"data-imf-ui-component": "Drawer.Description",
|
|
3229
|
-
className:
|
|
3229
|
+
className: Ds({ className: e.className })
|
|
3230
3230
|
});
|
|
3231
3231
|
}
|
|
3232
|
-
|
|
3233
|
-
function
|
|
3232
|
+
Vs.displayName = "Drawer.Description";
|
|
3233
|
+
function Hs(e) {
|
|
3234
3234
|
return /* @__PURE__ */ x(A.Provider, { ...e });
|
|
3235
3235
|
}
|
|
3236
|
-
|
|
3237
|
-
function
|
|
3236
|
+
Hs.displayName = "Drawer.Provider";
|
|
3237
|
+
function Us(e) {
|
|
3238
3238
|
return /* @__PURE__ */ x(A.Indent, {
|
|
3239
3239
|
...e,
|
|
3240
3240
|
"data-imf-ui-component": "Drawer.Indent",
|
|
3241
|
-
className: (t) =>
|
|
3241
|
+
className: (t) => Os({ className: v(e.className, t) })
|
|
3242
3242
|
});
|
|
3243
3243
|
}
|
|
3244
|
-
|
|
3245
|
-
function
|
|
3244
|
+
Us.displayName = "Drawer.Indent";
|
|
3245
|
+
function Ws(e) {
|
|
3246
3246
|
return /* @__PURE__ */ x(A.IndentBackground, {
|
|
3247
3247
|
...e,
|
|
3248
3248
|
"data-imf-ui-component": "Drawer.IndentBackground",
|
|
3249
|
-
className: (t) =>
|
|
3249
|
+
className: (t) => ks({ className: v(e.className, t) })
|
|
3250
3250
|
});
|
|
3251
3251
|
}
|
|
3252
|
-
|
|
3253
|
-
function
|
|
3252
|
+
Ws.displayName = "Drawer.IndentBackground";
|
|
3253
|
+
function Gs(e) {
|
|
3254
3254
|
return /* @__PURE__ */ x(A.SwipeArea, {
|
|
3255
3255
|
...e,
|
|
3256
3256
|
"data-imf-ui-component": "Drawer.SwipeArea",
|
|
3257
|
-
className: (t) =>
|
|
3257
|
+
className: (t) => As({ className: v(e.className, t) })
|
|
3258
3258
|
});
|
|
3259
3259
|
}
|
|
3260
|
-
|
|
3260
|
+
Gs.displayName = "Drawer.SwipeArea";
|
|
3261
3261
|
//#endregion
|
|
3262
3262
|
//#region src/components/drawer/drawer.meta.ts
|
|
3263
|
-
var
|
|
3263
|
+
var Ks = {
|
|
3264
3264
|
name: "Drawer",
|
|
3265
|
-
category:
|
|
3265
|
+
category: _.layout,
|
|
3266
3266
|
status: "stable",
|
|
3267
3267
|
description: "Off-canvas panel that slides in from a screen edge for navigation, settings, filters, or focused tasks. Also called a sidebar, side panel, or sheet.",
|
|
3268
3268
|
origin: "adapted",
|
|
@@ -3273,7 +3273,7 @@ var Gs = {
|
|
|
3273
3273
|
docLink: "https://base-ui.com/react/components/drawer",
|
|
3274
3274
|
llmDocLink: "https://base-ui.com/react/components/drawer.md"
|
|
3275
3275
|
}
|
|
3276
|
-
},
|
|
3276
|
+
}, G = {
|
|
3277
3277
|
root: "imf-ui-logo-module-root",
|
|
3278
3278
|
sizeFit: "imf-ui-logo-module-sizeFit",
|
|
3279
3279
|
sizeHero: "imf-ui-logo-module-sizeHero",
|
|
@@ -3288,30 +3288,30 @@ var Gs = {
|
|
|
3288
3288
|
variantMinor: "imf-ui-logo-module-variantMinor",
|
|
3289
3289
|
variantOncolor: "imf-ui-logo-module-variantOncolor",
|
|
3290
3290
|
variantSupport: "imf-ui-logo-module-variantSupport"
|
|
3291
|
-
},
|
|
3291
|
+
}, qs = y(G.root, { variants: {
|
|
3292
3292
|
size: {
|
|
3293
|
-
xs:
|
|
3294
|
-
sm:
|
|
3295
|
-
md:
|
|
3296
|
-
lg:
|
|
3297
|
-
xl:
|
|
3298
|
-
hero:
|
|
3299
|
-
fit:
|
|
3293
|
+
xs: G.sizeXs,
|
|
3294
|
+
sm: G.sizeSm,
|
|
3295
|
+
md: G.sizeMd,
|
|
3296
|
+
lg: G.sizeLg,
|
|
3297
|
+
xl: G.sizeXl,
|
|
3298
|
+
hero: G.sizeHero,
|
|
3299
|
+
fit: G.sizeFit
|
|
3300
3300
|
},
|
|
3301
3301
|
variant: {
|
|
3302
|
-
inherit:
|
|
3303
|
-
main:
|
|
3304
|
-
support:
|
|
3305
|
-
minor:
|
|
3306
|
-
brand:
|
|
3307
|
-
oncolor:
|
|
3302
|
+
inherit: G.variantInherit,
|
|
3303
|
+
main: G.variantMain,
|
|
3304
|
+
support: G.variantSupport,
|
|
3305
|
+
minor: G.variantMinor,
|
|
3306
|
+
brand: G.variantBrand,
|
|
3307
|
+
oncolor: G.variantOncolor
|
|
3308
3308
|
}
|
|
3309
3309
|
} });
|
|
3310
|
-
function
|
|
3310
|
+
function Js({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, style: a, ...o }) {
|
|
3311
3311
|
return /* @__PURE__ */ x("span", {
|
|
3312
3312
|
...o,
|
|
3313
3313
|
"data-imf-ui-component": "Logo",
|
|
3314
|
-
className:
|
|
3314
|
+
className: qs({
|
|
3315
3315
|
size: n,
|
|
3316
3316
|
variant: r,
|
|
3317
3317
|
className: o.className
|
|
@@ -3331,13 +3331,13 @@ function qs({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, s
|
|
|
3331
3331
|
}
|
|
3332
3332
|
//#endregion
|
|
3333
3333
|
//#region src/components/logo/logo.meta.ts
|
|
3334
|
-
var
|
|
3334
|
+
var Ys = {
|
|
3335
3335
|
name: "Logo",
|
|
3336
|
-
category:
|
|
3336
|
+
category: _.display,
|
|
3337
3337
|
status: "stable",
|
|
3338
3338
|
description: "Renders a logo from a URL or inline React element with consistent sizing. Also called a wordmark or brand mark.",
|
|
3339
3339
|
origin: "native"
|
|
3340
|
-
},
|
|
3340
|
+
}, Xs = {
|
|
3341
3341
|
viewBox: "50 50 652.51 90",
|
|
3342
3342
|
shapes: [
|
|
3343
3343
|
["path", { d: "M642.11,74.66h15.13v9.25h1.22c3.42-6.78,9.64-10.48,20.5-10.48,10.13,0,23.55,5.55,23.55,22.81v42.53h-15.86v-41.3c0-8.75-5.25-11.96-12.2-11.96-10,0-16.47,6.41-16.47,19.11v34.15h-15.86v-64.11Z" }],
|
|
@@ -3356,13 +3356,13 @@ var Js = {
|
|
|
3356
3356
|
["polygon", { points: "208 139 50 139 50 128.93 167.06 113.32 208 82.6 208 139" }],
|
|
3357
3357
|
["polygon", { points: "208 60.06 90.94 75.68 50 106.4 50 50 208 50 208 60.06" }]
|
|
3358
3358
|
]
|
|
3359
|
-
},
|
|
3359
|
+
}, Zs = {
|
|
3360
3360
|
viewBox: "0 0 384 216",
|
|
3361
3361
|
shapes: [["path", { d: "M384 216H0V191.572L284.499 153.679L384 79.1303V216Z" }], ["path", { d: "M384 24.4271L99.501 62.3215L0 136.869V0H384V24.4271Z" }]]
|
|
3362
3362
|
};
|
|
3363
3363
|
//#endregion
|
|
3364
3364
|
//#region src/components/logo/imfusion/imfusion.tsx
|
|
3365
|
-
function
|
|
3365
|
+
function Qs({ mark: e, ...t }) {
|
|
3366
3366
|
return /* @__PURE__ */ x("svg", {
|
|
3367
3367
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3368
3368
|
viewBox: e.viewBox,
|
|
@@ -3374,53 +3374,53 @@ function Zs({ mark: e, ...t }) {
|
|
|
3374
3374
|
}))
|
|
3375
3375
|
});
|
|
3376
3376
|
}
|
|
3377
|
-
function
|
|
3378
|
-
return /* @__PURE__ */ x(
|
|
3377
|
+
function $s({ glyph: e = !1, alt: t = "ImFusion", variant: n = "brand", ...r }) {
|
|
3378
|
+
return /* @__PURE__ */ x(Js, {
|
|
3379
3379
|
...r,
|
|
3380
|
-
src: /* @__PURE__ */ x(
|
|
3380
|
+
src: /* @__PURE__ */ x(Qs, { mark: e ? Zs : Xs }),
|
|
3381
3381
|
alt: t,
|
|
3382
3382
|
variant: n
|
|
3383
3383
|
});
|
|
3384
3384
|
}
|
|
3385
3385
|
//#endregion
|
|
3386
3386
|
//#region src/components/logo/product/marks.ts
|
|
3387
|
-
var
|
|
3387
|
+
var ec = "0 0 842.21 335.39", tc = "M842.21,99.26L742.95,0L0,0L0,236.13L99.26,335.39L842.21,335.39Z", nc = {
|
|
3388
3388
|
labels: "M49.53,50.68v136.01h94.36v-21.53h-65.27V50.68h-29.09ZM153.84,117.55h25.12c.38-8.5,7.84-12.94,18.61-12.94s17.28,4.53,17.28,12.85c0,5.57-3.31,7.65-9.92,8.31l-22.48,2.17c-19.08,1.98-34.29,10.39-34.29,30.13s15.77,30.32,36.84,30.32c16.72,0,24.46-6.05,29.28-12.47h1.89c0,4.44.47,7.75,1.42,10.77h26.16v-2.83c-2.27-5.29-2.83-11.9-2.83-21.54v-39.1c0-26.35-17.19-37.69-42.79-37.69s-42.12,11.34-44.3,29.19v2.83h0ZM175.38,156.75c0-8.31,6.05-11.81,14.26-12.66l10.67-1.13c6.04-.66,9.44-1.51,12.47-3.12h1.89v5.86c0,18.04-12.47,23.9-22.86,23.9s-16.43-4.91-16.43-12.85h0ZM255.96,50.68v136.01h26.64v-11.24h1.89c4.35,7.08,13.41,13.22,29.94,13.22,24.75,0,45.15-16.34,45.15-51.38s-20.4-51.38-45.15-51.38c-16.53,0-24.94,6.14-28.81,11.52h-1.89v-46.75h-27.77ZM282.6,137.29c0-20.31,9.63-30.89,24.37-30.89s24.46,10.58,24.46,30.89-9.63,30.79-24.46,30.79-24.37-10.48-24.37-30.79h0ZM365.64,137.2c0,34.47,19.83,51.76,50.44,51.76s42.69-17.57,45.53-31.17v-2.83h-24.18c-1.32,6.42-6.99,14.45-21.72,14.45s-23.14-10.58-23.52-25.41h71.41v-10.39c0-30.41-17.66-48.08-47.79-48.08s-50.15,17.19-50.15,51.67h0ZM392.46,126.43c1.13-11.99,8.31-21.63,23.05-21.63s21.82,9.26,22.01,21.63h-45.05ZM474.73,50.68v136.01h27.77V50.68h-27.77ZM514.51,115.76c0,17.57,13.13,26.82,32.02,29.94l18.61,3.02c8.69,1.42,14.36,3.68,14.36,10.39,0,7.18-6.42,11.33-18.61,11.33s-21.54-4.35-22.57-14.55h-25.79v2.83c2.36,17.38,18.8,30.22,48.36,30.22s44.58-12.66,44.58-31.83-13.7-25.78-33.63-29l-18.51-3.02c-7.18-1.23-12.75-3.68-12.75-10.29s6.71-10.48,17.19-10.48,18.14,3.78,19.08,13.22h25.12v-2.83c-2.36-16.81-18.04-28.81-44.96-28.81s-42.5,11.81-42.5,29.85h0Z",
|
|
3389
3389
|
suite: "M45.6,87.38c0,20.98,14.84,34.21,39.5,39.03l19.28,3.78c15.78,3.02,24.66,7.37,24.66,18.81s-9.54,18.99-26.84,18.99-29.77-7.47-31.66-24h-27.59v2.84c1.32,23.53,22.77,41.58,59.54,41.58s55-18.05,55-41.39-15.59-34.11-41.2-39.12l-19.28-3.78c-14.36-2.74-22.96-7.37-22.96-18.24s9.54-17.67,24.85-17.67,27.22,6.43,27.4,22.87h27.31v-2.83c-1.42-23.06-20.6-40.45-55.38-40.45s-52.64,18.14-52.64,39.6h0ZM262.03,186.13v-98.94h-27.78v56.98c0,16.73-10.21,23.44-21.73,23.44-10.21,0-16.82-5.67-16.82-17.01v-63.41h-27.78v65.11c0,23.25,14.18,35.82,36.38,35.82,17.86,0,25.89-8.32,29.2-13.51h1.89v11.53h26.65ZM277.41,50.05v23.44h27.97v-23.44h-27.97ZM277.5,87.19v98.94h27.88v-98.94h-27.88ZM311.52,87.19v18.52h17.95v54.24c0,17.01,10.49,26.18,27.78,26.18h19.75v-19.47h-12.38c-5.01,0-7.65-2.74-7.65-7.56v-53.39h20.51v-18.52h-20.51v-26.18h-27.5v26.18h-17.95ZM379.68,136.61c0,34.49,19.85,51.79,50.46,51.79s42.71-17.58,45.55-31.19v-2.83h-24.19c-1.32,6.43-6.99,14.46-21.73,14.46s-23.15-10.58-23.53-25.42h71.44v-10.4c0-30.43-17.67-48.1-47.82-48.1s-50.18,17.2-50.18,51.69h0ZM406.51,125.84c1.13-12,8.32-21.64,23.06-21.64s21.83,9.26,22.02,21.64h-45.08Z",
|
|
3390
3390
|
sdk: "M45.6,87.38c0,20.98,14.84,34.21,39.5,39.03l19.28,3.78c15.78,3.02,24.66,7.37,24.66,18.81s-9.54,18.99-26.84,18.99-29.77-7.47-31.66-24h-27.59v2.84c1.32,23.53,22.77,41.58,59.54,41.58s55-18.05,55-41.39-15.59-34.11-41.2-39.12l-19.28-3.78c-14.36-2.74-22.96-7.37-22.96-18.24s9.54-17.67,24.85-17.67,27.22,6.43,27.4,22.87h27.31v-2.83c-1.42-23.06-20.6-40.45-55.38-40.45s-52.64,18.14-52.64,39.6h0ZM170.02,50.05v136.08h51.97c42.05,0,67.76-26.55,67.76-68.04s-25.7-68.04-67.76-68.04h-51.97ZM199.13,71.32h22.3c25.33,0,39.31,18.33,39.31,46.78s-13.99,46.78-39.31,46.78h-22.3v-93.56h0ZM331.69,143.7l13.8-13.99,44.13,56.42h32.98v-2.83l-58.02-72.86,56.89-57.55v-2.84h-33.36l-54.53,56.51h-1.89v-56.51h-29.11v136.08h29.11v-42.43h0Z"
|
|
3391
|
-
},
|
|
3391
|
+
}, rc = {
|
|
3392
3392
|
word: "imf-ui-product-module-word",
|
|
3393
3393
|
wordBrand: "imf-ui-product-module-wordBrand",
|
|
3394
3394
|
wordOncolor: "imf-ui-product-module-wordOncolor"
|
|
3395
|
-
},
|
|
3395
|
+
}, ic = {
|
|
3396
3396
|
labels: "ImFusion Labels",
|
|
3397
3397
|
suite: "ImFusion Suite",
|
|
3398
3398
|
sdk: "ImFusion SDK"
|
|
3399
|
-
},
|
|
3400
|
-
brand:
|
|
3401
|
-
oncolor:
|
|
3399
|
+
}, ac = {
|
|
3400
|
+
brand: rc.wordOncolor,
|
|
3401
|
+
oncolor: rc.wordBrand
|
|
3402
3402
|
};
|
|
3403
|
-
function
|
|
3404
|
-
let a =
|
|
3403
|
+
function oc({ product: e, cutout: t = !1, alt: n, variant: r = "brand", ...i }) {
|
|
3404
|
+
let a = nc[e], o = /* @__PURE__ */ x("svg", {
|
|
3405
3405
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3406
|
-
viewBox:
|
|
3406
|
+
viewBox: ec,
|
|
3407
3407
|
fill: "currentColor",
|
|
3408
3408
|
fillRule: "evenodd",
|
|
3409
|
-
children: t ? /* @__PURE__ */ x("path", { d: `${
|
|
3409
|
+
children: t ? /* @__PURE__ */ x("path", { d: `${tc} ${a}` }) : /* @__PURE__ */ S(Ye, { children: [/* @__PURE__ */ x("path", { d: tc }), /* @__PURE__ */ x("path", {
|
|
3410
3410
|
d: a,
|
|
3411
|
-
className:
|
|
3411
|
+
className: ac[r] ?? rc.word
|
|
3412
3412
|
})] })
|
|
3413
3413
|
});
|
|
3414
|
-
return /* @__PURE__ */ x(
|
|
3414
|
+
return /* @__PURE__ */ x(Js, {
|
|
3415
3415
|
...i,
|
|
3416
3416
|
src: o,
|
|
3417
|
-
alt: n ??
|
|
3417
|
+
alt: n ?? ic[e],
|
|
3418
3418
|
variant: r
|
|
3419
3419
|
});
|
|
3420
3420
|
}
|
|
3421
3421
|
//#endregion
|
|
3422
3422
|
//#region src/hooks/use-disclosure.ts
|
|
3423
|
-
function
|
|
3423
|
+
function sc({ open: e, defaultOpen: t = !1, onOpenChange: n } = {}) {
|
|
3424
3424
|
let [r, i] = w(t), a = e ?? r, o = e !== void 0, s = ot({
|
|
3425
3425
|
isOpen: a,
|
|
3426
3426
|
onOpenChange: n
|
|
@@ -3442,11 +3442,11 @@ function oc({ open: e, defaultOpen: t = !1, onOpenChange: n } = {}) {
|
|
|
3442
3442
|
}
|
|
3443
3443
|
//#endregion
|
|
3444
3444
|
//#region src/hooks/use-media-query.ts
|
|
3445
|
-
function
|
|
3445
|
+
function cc(e, t) {
|
|
3446
3446
|
return typeof t == "boolean" ? t : typeof window < "u" && "matchMedia" in window && window.matchMedia(e).matches;
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3449
|
-
let [r, i] = w(n ? t :
|
|
3448
|
+
function lc(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0 }) {
|
|
3449
|
+
let [r, i] = w(n ? t : cc(e));
|
|
3450
3450
|
return nt(() => {
|
|
3451
3451
|
try {
|
|
3452
3452
|
if ("matchMedia" in window) {
|
|
@@ -3462,7 +3462,7 @@ function cc(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0
|
|
|
3462
3462
|
}
|
|
3463
3463
|
}, [e]), r ?? !1;
|
|
3464
3464
|
}
|
|
3465
|
-
var
|
|
3465
|
+
var K = {
|
|
3466
3466
|
aside: "imf-ui-app-shell-module-aside",
|
|
3467
3467
|
asideDrawer: "imf-ui-app-shell-module-asideDrawer",
|
|
3468
3468
|
asideDrawerClose: "imf-ui-app-shell-module-asideDrawerClose",
|
|
@@ -3500,87 +3500,87 @@ var q = {
|
|
|
3500
3500
|
resizeHandle: "imf-ui-app-shell-module-resizeHandle",
|
|
3501
3501
|
root: "imf-ui-app-shell-module-root",
|
|
3502
3502
|
section: "imf-ui-app-shell-module-section"
|
|
3503
|
-
},
|
|
3504
|
-
Aside: () =>
|
|
3505
|
-
Footer: () =>
|
|
3506
|
-
Header: () =>
|
|
3507
|
-
Main: () =>
|
|
3508
|
-
NavItem: () =>
|
|
3509
|
-
Navbar: () =>
|
|
3510
|
-
Root: () =>
|
|
3511
|
-
Section: () =>
|
|
3512
|
-
}),
|
|
3513
|
-
default:
|
|
3514
|
-
branded:
|
|
3515
|
-
} } }),
|
|
3503
|
+
}, uc = /* @__PURE__ */ e({
|
|
3504
|
+
Aside: () => Mc,
|
|
3505
|
+
Footer: () => Rc,
|
|
3506
|
+
Header: () => Cc,
|
|
3507
|
+
Main: () => zc,
|
|
3508
|
+
NavItem: () => Hc,
|
|
3509
|
+
Navbar: () => jc,
|
|
3510
|
+
Root: () => xc,
|
|
3511
|
+
Section: () => Bc
|
|
3512
|
+
}), dc = y(K.root), fc = y("", { variants: { variant: {
|
|
3513
|
+
default: K.navbarDefault,
|
|
3514
|
+
branded: K.navbarBranded
|
|
3515
|
+
} } }), pc = y("", {
|
|
3516
3516
|
variants: { variant: {
|
|
3517
|
-
default:
|
|
3518
|
-
branded:
|
|
3517
|
+
default: K.headerDefault,
|
|
3518
|
+
branded: K.headerBranded
|
|
3519
3519
|
} },
|
|
3520
3520
|
defaultVariants: { variant: "default" }
|
|
3521
|
-
}),
|
|
3521
|
+
}), mc = y(K.aside), hc = y(K.footer), gc = y(K.main), _c = y(K.section), vc = $e(null), yc = $e({
|
|
3522
3522
|
sections: {},
|
|
3523
3523
|
setSections: () => void 0
|
|
3524
|
-
}),
|
|
3525
|
-
function
|
|
3524
|
+
}), bc = $e(!1);
|
|
3525
|
+
function xc({ ref: e, children: t, ...n }) {
|
|
3526
3526
|
let [r, i] = w(null), [a, o] = w({}), s = tt((t) => {
|
|
3527
3527
|
i(t), typeof e == "function" ? e(t) : e && (e.current = t);
|
|
3528
3528
|
}, [e]), c = at(() => ({
|
|
3529
3529
|
sections: a,
|
|
3530
3530
|
setSections: o
|
|
3531
3531
|
}), [a]);
|
|
3532
|
-
return /* @__PURE__ */ x(
|
|
3532
|
+
return /* @__PURE__ */ x(vc.Provider, {
|
|
3533
3533
|
value: r,
|
|
3534
|
-
children: /* @__PURE__ */ x(
|
|
3534
|
+
children: /* @__PURE__ */ x(yc.Provider, {
|
|
3535
3535
|
value: c,
|
|
3536
3536
|
children: /* @__PURE__ */ S("div", {
|
|
3537
3537
|
...n,
|
|
3538
3538
|
ref: s,
|
|
3539
3539
|
"data-imf-ui-component": "AppShell.Root",
|
|
3540
3540
|
"data-has-navbar": a.navbar ? "" : void 0,
|
|
3541
|
-
className:
|
|
3542
|
-
children: [/* @__PURE__ */ x(
|
|
3541
|
+
className: dc({ className: n.className }),
|
|
3542
|
+
children: [/* @__PURE__ */ x(Sc, {}), t]
|
|
3543
3543
|
})
|
|
3544
3544
|
})
|
|
3545
3545
|
});
|
|
3546
3546
|
}
|
|
3547
|
-
|
|
3548
|
-
function
|
|
3549
|
-
let { navbar: e } = C(
|
|
3547
|
+
xc.displayName = "AppShell.Root";
|
|
3548
|
+
function Sc() {
|
|
3549
|
+
let { navbar: e } = C(yc).sections;
|
|
3550
3550
|
return e ? /* @__PURE__ */ S("div", {
|
|
3551
3551
|
"data-imf-ui-component": "AppShell.Bar",
|
|
3552
|
-
className: b(
|
|
3552
|
+
className: b(K.bar, pc({ variant: e.variant })),
|
|
3553
3553
|
children: [e.logo ? /* @__PURE__ */ x("div", {
|
|
3554
|
-
className:
|
|
3554
|
+
className: K.barLogo,
|
|
3555
3555
|
children: e.logo
|
|
3556
3556
|
}) : null, /* @__PURE__ */ x("div", {
|
|
3557
|
-
className:
|
|
3558
|
-
children: /* @__PURE__ */ x(
|
|
3557
|
+
className: K.barActions,
|
|
3558
|
+
children: /* @__PURE__ */ x(Vc, {})
|
|
3559
3559
|
})]
|
|
3560
3560
|
}) : null;
|
|
3561
3561
|
}
|
|
3562
|
-
function
|
|
3563
|
-
let { sections: r } = C(
|
|
3562
|
+
function Cc({ className: e, children: t, ...n }) {
|
|
3563
|
+
let { sections: r } = C(yc);
|
|
3564
3564
|
return /* @__PURE__ */ x("header", {
|
|
3565
3565
|
...n,
|
|
3566
3566
|
"data-imf-ui-component": "AppShell.Header",
|
|
3567
|
-
className: b(
|
|
3567
|
+
className: b(K.header, pc({ variant: r.navbar?.variant }), e),
|
|
3568
3568
|
children: /* @__PURE__ */ x("div", {
|
|
3569
|
-
className:
|
|
3569
|
+
className: K.headerContent,
|
|
3570
3570
|
children: t
|
|
3571
3571
|
})
|
|
3572
3572
|
});
|
|
3573
3573
|
}
|
|
3574
|
-
|
|
3575
|
-
function
|
|
3576
|
-
let o = C(
|
|
3577
|
-
return /* @__PURE__ */ x(
|
|
3574
|
+
Cc.displayName = "AppShell.Header";
|
|
3575
|
+
function wc({ open: e, onOpenChange: t, swipeDirection: n, label: r, className: i, children: a }) {
|
|
3576
|
+
let o = C(vc);
|
|
3577
|
+
return /* @__PURE__ */ x(js, {
|
|
3578
3578
|
open: e,
|
|
3579
3579
|
onOpenChange: t,
|
|
3580
3580
|
swipeDirection: n,
|
|
3581
|
-
children: /* @__PURE__ */ S(
|
|
3581
|
+
children: /* @__PURE__ */ S(Ns, {
|
|
3582
3582
|
container: o,
|
|
3583
|
-
children: [/* @__PURE__ */ x(
|
|
3583
|
+
children: [/* @__PURE__ */ x(Ps, {}), /* @__PURE__ */ x(Fs, { children: /* @__PURE__ */ x(Ls, {
|
|
3584
3584
|
borderColor: "none",
|
|
3585
3585
|
"aria-label": r,
|
|
3586
3586
|
className: i,
|
|
@@ -3589,11 +3589,11 @@ function Cc({ open: e, onOpenChange: t, swipeDirection: n, label: r, className:
|
|
|
3589
3589
|
})
|
|
3590
3590
|
});
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3592
|
+
function Tc({ className: e, children: t }) {
|
|
3593
3593
|
return /* @__PURE__ */ S(Pe, {
|
|
3594
|
-
className:
|
|
3594
|
+
className: K.drawerScroll,
|
|
3595
3595
|
children: [/* @__PURE__ */ x(Re, { children: /* @__PURE__ */ x(Fe, {
|
|
3596
|
-
className: b(
|
|
3596
|
+
className: b(K.drawerContent, e),
|
|
3597
3597
|
children: t
|
|
3598
3598
|
}) }), /* @__PURE__ */ x(Me, {
|
|
3599
3599
|
orientation: "vertical",
|
|
@@ -3601,10 +3601,10 @@ function wc({ className: e, children: t }) {
|
|
|
3601
3601
|
})]
|
|
3602
3602
|
});
|
|
3603
3603
|
}
|
|
3604
|
-
function
|
|
3605
|
-
return
|
|
3604
|
+
function Ec(e) {
|
|
3605
|
+
return lc(_s(e), void 0, { getInitialValueInEffect: !1 });
|
|
3606
3606
|
}
|
|
3607
|
-
function
|
|
3607
|
+
function Dc(e, t, n, r) {
|
|
3608
3608
|
nt(() => {
|
|
3609
3609
|
e && t && !n && r(!1);
|
|
3610
3610
|
}, [
|
|
@@ -3614,39 +3614,39 @@ function Ec(e, t, n, r) {
|
|
|
3614
3614
|
r
|
|
3615
3615
|
]);
|
|
3616
3616
|
}
|
|
3617
|
-
function
|
|
3617
|
+
function Oc({ logo: e, account: t, closable: n, children: r }) {
|
|
3618
3618
|
return /* @__PURE__ */ S(Ye, { children: [
|
|
3619
3619
|
/* @__PURE__ */ S("div", {
|
|
3620
|
-
className:
|
|
3620
|
+
className: K.navbarBrand,
|
|
3621
3621
|
children: [/* @__PURE__ */ x("span", {
|
|
3622
|
-
className:
|
|
3622
|
+
className: K.navbarLogo,
|
|
3623
3623
|
children: e
|
|
3624
|
-
}), n && /* @__PURE__ */ x(
|
|
3624
|
+
}), n && /* @__PURE__ */ x(Vc, { className: K.navbarDrawerClose })]
|
|
3625
3625
|
}),
|
|
3626
3626
|
/* @__PURE__ */ x("div", {
|
|
3627
|
-
className:
|
|
3627
|
+
className: K.navbarNav,
|
|
3628
3628
|
children: r
|
|
3629
3629
|
}),
|
|
3630
3630
|
t ? /* @__PURE__ */ x("div", {
|
|
3631
|
-
className:
|
|
3631
|
+
className: K.navbarFoot,
|
|
3632
3632
|
children: t
|
|
3633
3633
|
}) : null
|
|
3634
3634
|
] });
|
|
3635
3635
|
}
|
|
3636
|
-
var
|
|
3636
|
+
var kc = /* @__PURE__ */ x($s, {
|
|
3637
3637
|
variant: "brand",
|
|
3638
3638
|
size: "sm"
|
|
3639
|
-
}),
|
|
3639
|
+
}), Ac = /* @__PURE__ */ x($s, {
|
|
3640
3640
|
variant: "oncolor",
|
|
3641
3641
|
size: "sm"
|
|
3642
3642
|
});
|
|
3643
|
-
function
|
|
3644
|
-
let l =
|
|
3643
|
+
function jc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r, logo: i = e === "branded" ? Ac : kc, account: a, children: o, id: s, ...c }) {
|
|
3644
|
+
let l = Ec("md"), ee = rt(), u = s ?? ee, { open: d, setOpen: f } = sc({
|
|
3645
3645
|
open: t,
|
|
3646
3646
|
defaultOpen: n,
|
|
3647
3647
|
onOpenChange: r
|
|
3648
|
-
}), { setSections: te } = C(
|
|
3649
|
-
return
|
|
3648
|
+
}), { setSections: te } = C(yc);
|
|
3649
|
+
return Dc(l, d, t !== void 0, f), it(() => (te((t) => ({
|
|
3650
3650
|
...t,
|
|
3651
3651
|
navbar: {
|
|
3652
3652
|
id: u,
|
|
@@ -3670,27 +3670,27 @@ function Ac({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3670
3670
|
...c,
|
|
3671
3671
|
id: u,
|
|
3672
3672
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
3673
|
-
className: b(
|
|
3674
|
-
children: /* @__PURE__ */ x(
|
|
3673
|
+
className: b(K.navbar, fc({ variant: e }), c.className),
|
|
3674
|
+
children: /* @__PURE__ */ x(Oc, {
|
|
3675
3675
|
logo: i,
|
|
3676
3676
|
account: a,
|
|
3677
3677
|
closable: !1,
|
|
3678
3678
|
children: o
|
|
3679
3679
|
})
|
|
3680
|
-
}) : /* @__PURE__ */ x(
|
|
3680
|
+
}) : /* @__PURE__ */ x(wc, {
|
|
3681
3681
|
open: d,
|
|
3682
3682
|
onOpenChange: f,
|
|
3683
3683
|
swipeDirection: "left",
|
|
3684
3684
|
label: c["aria-label"],
|
|
3685
|
-
className: b(
|
|
3686
|
-
children: /* @__PURE__ */ x(
|
|
3685
|
+
className: b(K.navbarDrawer, fc({ variant: e })),
|
|
3686
|
+
children: /* @__PURE__ */ x(bc.Provider, {
|
|
3687
3687
|
value: !0,
|
|
3688
3688
|
children: /* @__PURE__ */ x("nav", {
|
|
3689
3689
|
...c,
|
|
3690
3690
|
id: u,
|
|
3691
3691
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
3692
|
-
className: b(
|
|
3693
|
-
children: /* @__PURE__ */ x(
|
|
3692
|
+
className: b(K.drawerSection, c.className),
|
|
3693
|
+
children: /* @__PURE__ */ x(Tc, { children: /* @__PURE__ */ x(Oc, {
|
|
3694
3694
|
logo: i,
|
|
3695
3695
|
account: a,
|
|
3696
3696
|
closable: !0,
|
|
@@ -3700,91 +3700,91 @@ function Ac({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3700
3700
|
})
|
|
3701
3701
|
});
|
|
3702
3702
|
}
|
|
3703
|
-
|
|
3704
|
-
function
|
|
3705
|
-
let ee =
|
|
3703
|
+
jc.displayName = "AppShell.Navbar";
|
|
3704
|
+
function Mc({ open: e, defaultOpen: t, onOpenChange: n, resizable: r = !0, onWidthChange: i, resizeLabel: o = "Resize panel", closeLabel: s = "Close panel", children: c, ...l }) {
|
|
3705
|
+
let ee = Ec("lg"), u = Ec("md"), { open: d, setOpen: f } = sc({
|
|
3706
3706
|
open: e,
|
|
3707
3707
|
defaultOpen: t,
|
|
3708
3708
|
onOpenChange: n
|
|
3709
3709
|
});
|
|
3710
|
-
return
|
|
3710
|
+
return Dc(ee, d, e !== void 0, f), ee ? /* @__PURE__ */ S("aside", {
|
|
3711
3711
|
...l,
|
|
3712
3712
|
"data-imf-ui-component": "AppShell.Aside",
|
|
3713
|
-
className:
|
|
3714
|
-
children: [r && /* @__PURE__ */ x(
|
|
3713
|
+
className: mc({ className: l.className }),
|
|
3714
|
+
children: [r && /* @__PURE__ */ x(Lc, {
|
|
3715
3715
|
label: o,
|
|
3716
3716
|
onWidthChange: i
|
|
3717
3717
|
}), c]
|
|
3718
|
-
}) : /* @__PURE__ */ x(
|
|
3718
|
+
}) : /* @__PURE__ */ x(wc, {
|
|
3719
3719
|
open: d,
|
|
3720
3720
|
onOpenChange: f,
|
|
3721
3721
|
swipeDirection: u ? "right" : "down",
|
|
3722
3722
|
label: l["aria-label"],
|
|
3723
|
-
className:
|
|
3723
|
+
className: K.asideDrawer,
|
|
3724
3724
|
children: /* @__PURE__ */ S("aside", {
|
|
3725
3725
|
...l,
|
|
3726
3726
|
"data-imf-ui-component": "AppShell.Aside",
|
|
3727
|
-
className: b(
|
|
3728
|
-
children: [/* @__PURE__ */ x(
|
|
3727
|
+
className: b(K.drawerSection, l.className),
|
|
3728
|
+
children: [/* @__PURE__ */ x(Bs, {
|
|
3729
3729
|
render: /* @__PURE__ */ x(xe, {
|
|
3730
3730
|
glyph: a,
|
|
3731
3731
|
label: s,
|
|
3732
3732
|
variant: "ghost"
|
|
3733
3733
|
}),
|
|
3734
|
-
className:
|
|
3735
|
-
}), /* @__PURE__ */ x(
|
|
3736
|
-
className:
|
|
3734
|
+
className: K.asideDrawerClose
|
|
3735
|
+
}), /* @__PURE__ */ x(Tc, {
|
|
3736
|
+
className: K.asideDrawerContent,
|
|
3737
3737
|
children: c
|
|
3738
3738
|
})]
|
|
3739
3739
|
})
|
|
3740
3740
|
});
|
|
3741
3741
|
}
|
|
3742
|
-
|
|
3743
|
-
var
|
|
3744
|
-
function
|
|
3742
|
+
Mc.displayName = "AppShell.Aside";
|
|
3743
|
+
var Nc = "--imf-ui-appshell-aside-width";
|
|
3744
|
+
function Pc(e) {
|
|
3745
3745
|
let t = e?.parentElement, n = t?.parentElement;
|
|
3746
3746
|
return t && n ? {
|
|
3747
3747
|
aside: t,
|
|
3748
3748
|
root: n
|
|
3749
3749
|
} : void 0;
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3751
|
+
function Fc() {
|
|
3752
3752
|
return parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
3753
3753
|
}
|
|
3754
|
-
function
|
|
3754
|
+
function Ic(e) {
|
|
3755
3755
|
let t = getComputedStyle(e), n = Math.round(parseFloat(t.minWidth)) || 0, r = Math.round(parseFloat(t.maxWidth));
|
|
3756
3756
|
return {
|
|
3757
3757
|
min: n,
|
|
3758
3758
|
max: Number.isNaN(r) ? n : Math.max(n, r)
|
|
3759
3759
|
};
|
|
3760
3760
|
}
|
|
3761
|
-
function
|
|
3761
|
+
function Lc({ label: e, onWidthChange: t }) {
|
|
3762
3762
|
let n = ot(null), r = ot(!1), [i, a] = w(), o = tt(() => {
|
|
3763
|
-
let e =
|
|
3763
|
+
let e = Pc(n.current);
|
|
3764
3764
|
if (!e) return;
|
|
3765
3765
|
let t = Math.round(e.aside.getBoundingClientRect().width);
|
|
3766
3766
|
return a({
|
|
3767
3767
|
now: t,
|
|
3768
|
-
...
|
|
3768
|
+
...Ic(e.aside)
|
|
3769
3769
|
}), t;
|
|
3770
3770
|
}, []), s = (e) => {
|
|
3771
|
-
let t =
|
|
3771
|
+
let t = Pc(n.current);
|
|
3772
3772
|
if (!t) return;
|
|
3773
|
-
let { min: r, max: i } =
|
|
3774
|
-
t.root.style.setProperty(
|
|
3773
|
+
let { min: r, max: i } = Ic(t.aside);
|
|
3774
|
+
t.root.style.setProperty(Nc, `${String(Math.min(i, Math.max(r, e)))}px`);
|
|
3775
3775
|
}, c = () => {
|
|
3776
3776
|
let e = o();
|
|
3777
3777
|
e !== void 0 && t?.(e);
|
|
3778
3778
|
}, l = () => {
|
|
3779
|
-
r.current && (r.current = !1,
|
|
3779
|
+
r.current && (r.current = !1, Pc(n.current)?.root.removeAttribute("data-resizing"), c());
|
|
3780
3780
|
}, ee = () => {
|
|
3781
|
-
|
|
3781
|
+
Pc(n.current)?.root.style.removeProperty(Nc), c();
|
|
3782
3782
|
};
|
|
3783
3783
|
return it(() => {
|
|
3784
3784
|
o();
|
|
3785
|
-
let e =
|
|
3785
|
+
let e = Pc(n.current)?.root;
|
|
3786
3786
|
return () => {
|
|
3787
|
-
e?.style.removeProperty(
|
|
3787
|
+
e?.style.removeProperty(Nc);
|
|
3788
3788
|
};
|
|
3789
3789
|
}, [o]), /* @__PURE__ */ x("div", {
|
|
3790
3790
|
ref: n,
|
|
@@ -3795,12 +3795,12 @@ function Ic({ label: e, onWidthChange: t }) {
|
|
|
3795
3795
|
"aria-valuemin": i?.min,
|
|
3796
3796
|
"aria-valuemax": i?.max,
|
|
3797
3797
|
tabIndex: 0,
|
|
3798
|
-
className:
|
|
3798
|
+
className: K.resizeHandle,
|
|
3799
3799
|
onPointerDown: (e) => {
|
|
3800
|
-
e.button === 0 && (e.currentTarget.setPointerCapture(e.pointerId), r.current = !0,
|
|
3800
|
+
e.button === 0 && (e.currentTarget.setPointerCapture(e.pointerId), r.current = !0, Pc(n.current)?.root.setAttribute("data-resizing", ""));
|
|
3801
3801
|
},
|
|
3802
3802
|
onPointerMove: (e) => {
|
|
3803
|
-
let t =
|
|
3803
|
+
let t = Pc(n.current);
|
|
3804
3804
|
t && r.current && s(t.aside.getBoundingClientRect().right - e.clientX);
|
|
3805
3805
|
},
|
|
3806
3806
|
onPointerUp: l,
|
|
@@ -3808,27 +3808,27 @@ function Ic({ label: e, onWidthChange: t }) {
|
|
|
3808
3808
|
onLostPointerCapture: l,
|
|
3809
3809
|
onDoubleClick: ee,
|
|
3810
3810
|
onKeyDown: (e) => {
|
|
3811
|
-
let t =
|
|
3811
|
+
let t = Pc(n.current);
|
|
3812
3812
|
if (!t) return;
|
|
3813
3813
|
let r = t.aside.getBoundingClientRect().width;
|
|
3814
|
-
if (e.key === "ArrowLeft") s(r +
|
|
3815
|
-
else if (e.key === "ArrowRight") s(r -
|
|
3814
|
+
if (e.key === "ArrowLeft") s(r + Fc());
|
|
3815
|
+
else if (e.key === "ArrowRight") s(r - Fc());
|
|
3816
3816
|
else if (e.key !== "Home") return;
|
|
3817
3817
|
e.preventDefault(), e.key === "Home" ? ee() : c();
|
|
3818
3818
|
}
|
|
3819
3819
|
});
|
|
3820
3820
|
}
|
|
3821
|
-
function
|
|
3821
|
+
function Rc(e) {
|
|
3822
3822
|
return /* @__PURE__ */ x("footer", {
|
|
3823
3823
|
...e,
|
|
3824
3824
|
"data-imf-ui-component": "AppShell.Footer",
|
|
3825
|
-
className:
|
|
3825
|
+
className: hc({ className: e.className })
|
|
3826
3826
|
});
|
|
3827
3827
|
}
|
|
3828
|
-
|
|
3829
|
-
function
|
|
3828
|
+
Rc.displayName = "AppShell.Footer";
|
|
3829
|
+
function zc({ children: e, ...t }) {
|
|
3830
3830
|
return /* @__PURE__ */ S(Pe, {
|
|
3831
|
-
className:
|
|
3831
|
+
className: gc(),
|
|
3832
3832
|
children: [
|
|
3833
3833
|
/* @__PURE__ */ x(Re, {
|
|
3834
3834
|
render: /* @__PURE__ */ x("main", {
|
|
@@ -3838,7 +3838,7 @@ function Rc({ children: e, ...t }) {
|
|
|
3838
3838
|
className: t.className
|
|
3839
3839
|
}),
|
|
3840
3840
|
children: /* @__PURE__ */ x(Fe, {
|
|
3841
|
-
className:
|
|
3841
|
+
className: K.mainContent,
|
|
3842
3842
|
children: e
|
|
3843
3843
|
})
|
|
3844
3844
|
}),
|
|
@@ -3854,18 +3854,18 @@ function Rc({ children: e, ...t }) {
|
|
|
3854
3854
|
]
|
|
3855
3855
|
});
|
|
3856
3856
|
}
|
|
3857
|
-
|
|
3858
|
-
function
|
|
3857
|
+
zc.displayName = "AppShell.Main";
|
|
3858
|
+
function Bc({ grow: e, ...t }) {
|
|
3859
3859
|
return /* @__PURE__ */ x("div", {
|
|
3860
3860
|
...t,
|
|
3861
3861
|
"data-imf-ui-component": "AppShell.Section",
|
|
3862
3862
|
"data-grow": e ? "" : void 0,
|
|
3863
|
-
className:
|
|
3863
|
+
className: _c({ className: t.className })
|
|
3864
3864
|
});
|
|
3865
3865
|
}
|
|
3866
|
-
|
|
3867
|
-
function
|
|
3868
|
-
let t = C(
|
|
3866
|
+
Bc.displayName = "AppShell.Section";
|
|
3867
|
+
function Vc({ className: e }) {
|
|
3868
|
+
let t = C(yc).sections.navbar, n = C(bc);
|
|
3869
3869
|
return t ? /* @__PURE__ */ x(Ke, {
|
|
3870
3870
|
onClick: () => t.onOpenChange(!t.open),
|
|
3871
3871
|
"aria-expanded": t.open,
|
|
@@ -3874,27 +3874,27 @@ function Bc({ className: e }) {
|
|
|
3874
3874
|
"data-imf-ui-component": "AppShell.Burger",
|
|
3875
3875
|
"data-opened": t.open ? "" : void 0,
|
|
3876
3876
|
"data-behind-drawer": t.open && !n ? "" : void 0,
|
|
3877
|
-
className: b(
|
|
3877
|
+
className: b(K.burger, e),
|
|
3878
3878
|
children: /* @__PURE__ */ S("svg", {
|
|
3879
|
-
className:
|
|
3879
|
+
className: K.burgerIcon,
|
|
3880
3880
|
viewBox: "0 0 24 18",
|
|
3881
3881
|
"aria-hidden": "true",
|
|
3882
3882
|
focusable: "false",
|
|
3883
3883
|
children: [
|
|
3884
3884
|
/* @__PURE__ */ x("rect", {
|
|
3885
|
-
className:
|
|
3885
|
+
className: K.burgerBand,
|
|
3886
3886
|
width: "24",
|
|
3887
3887
|
height: "3",
|
|
3888
3888
|
y: "0"
|
|
3889
3889
|
}),
|
|
3890
3890
|
/* @__PURE__ */ x("rect", {
|
|
3891
|
-
className:
|
|
3891
|
+
className: K.burgerBand,
|
|
3892
3892
|
width: "24",
|
|
3893
3893
|
height: "3",
|
|
3894
3894
|
y: "7.5"
|
|
3895
3895
|
}),
|
|
3896
3896
|
/* @__PURE__ */ x("rect", {
|
|
3897
|
-
className:
|
|
3897
|
+
className: K.burgerBand,
|
|
3898
3898
|
width: "24",
|
|
3899
3899
|
height: "3",
|
|
3900
3900
|
y: "15"
|
|
@@ -3903,8 +3903,8 @@ function Bc({ className: e }) {
|
|
|
3903
3903
|
})
|
|
3904
3904
|
}) : null;
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3907
|
-
let { sections: o } = C(
|
|
3906
|
+
function Hc({ icon: e, description: t, children: n, render: r, onClick: i, ...a }) {
|
|
3907
|
+
let { sections: o } = C(yc), s = C(bc);
|
|
3908
3908
|
function c(e) {
|
|
3909
3909
|
if (i?.(e), e.defaultPrevented) return;
|
|
3910
3910
|
let t = e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey;
|
|
@@ -3916,17 +3916,17 @@ function Vc({ icon: e, description: t, children: n, render: r, onClick: i, ...a
|
|
|
3916
3916
|
props: {
|
|
3917
3917
|
...O(a, {
|
|
3918
3918
|
onClick: c,
|
|
3919
|
-
className:
|
|
3919
|
+
className: K.navItem,
|
|
3920
3920
|
children: /* @__PURE__ */ S(Ye, { children: [e && /* @__PURE__ */ x("span", {
|
|
3921
|
-
className:
|
|
3921
|
+
className: K.navItemIcon,
|
|
3922
3922
|
children: e
|
|
3923
3923
|
}), /* @__PURE__ */ S("span", {
|
|
3924
|
-
className:
|
|
3924
|
+
className: K.navItemText,
|
|
3925
3925
|
children: [/* @__PURE__ */ x("span", {
|
|
3926
|
-
className:
|
|
3926
|
+
className: K.navItemLabel,
|
|
3927
3927
|
children: n
|
|
3928
3928
|
}), t && /* @__PURE__ */ x("span", {
|
|
3929
|
-
className:
|
|
3929
|
+
className: K.navItemDescription,
|
|
3930
3930
|
children: t
|
|
3931
3931
|
})]
|
|
3932
3932
|
})] })
|
|
@@ -3935,17 +3935,17 @@ function Vc({ icon: e, description: t, children: n, render: r, onClick: i, ...a
|
|
|
3935
3935
|
}
|
|
3936
3936
|
});
|
|
3937
3937
|
}
|
|
3938
|
-
|
|
3938
|
+
Hc.displayName = "AppShell.NavItem";
|
|
3939
3939
|
//#endregion
|
|
3940
3940
|
//#region src/components/app-shell/app-shell.meta.ts
|
|
3941
|
-
var
|
|
3941
|
+
var Uc = {
|
|
3942
3942
|
name: "AppShell",
|
|
3943
|
-
category:
|
|
3943
|
+
category: _.layout,
|
|
3944
3944
|
status: "stable",
|
|
3945
3945
|
description: "Application layout shell for a header, sidebars, footer, and scrolling main area. Also called an app layout or dashboard shell; sizing is CSS-driven and sidebars can become sliding panels on small screens.",
|
|
3946
3946
|
origin: "native",
|
|
3947
3947
|
internalDependencies: ["Drawer", "ScrollArea"]
|
|
3948
|
-
},
|
|
3948
|
+
}, q = {
|
|
3949
3949
|
backdrop: "imf-ui-dialog-module-backdrop",
|
|
3950
3950
|
body: "imf-ui-dialog-module-body",
|
|
3951
3951
|
bodyContent: "imf-ui-dialog-module-bodyContent",
|
|
@@ -3972,203 +3972,203 @@ var Hc = {
|
|
|
3972
3972
|
trigger: "imf-ui-dialog-module-trigger",
|
|
3973
3973
|
triggerInline: "imf-ui-dialog-module-triggerInline",
|
|
3974
3974
|
viewport: "imf-ui-dialog-module-viewport"
|
|
3975
|
-
},
|
|
3976
|
-
Alert: () =>
|
|
3977
|
-
Backdrop: () =>
|
|
3978
|
-
Body: () =>
|
|
3979
|
-
Close: () =>
|
|
3980
|
-
Description: () =>
|
|
3981
|
-
Footer: () =>
|
|
3982
|
-
Header: () =>
|
|
3983
|
-
Inline: () =>
|
|
3984
|
-
Popup: () =>
|
|
3985
|
-
Portal: () =>
|
|
3986
|
-
Root: () =>
|
|
3987
|
-
Simple: () =>
|
|
3988
|
-
Status: () =>
|
|
3989
|
-
Title: () =>
|
|
3990
|
-
Trigger: () =>
|
|
3991
|
-
Viewport: () =>
|
|
3992
|
-
createHandle: () =>
|
|
3993
|
-
}),
|
|
3994
|
-
sm:
|
|
3995
|
-
md:
|
|
3996
|
-
lg:
|
|
3997
|
-
full:
|
|
3998
|
-
} } }),
|
|
3999
|
-
primary:
|
|
4000
|
-
main:
|
|
4001
|
-
support:
|
|
4002
|
-
minor:
|
|
4003
|
-
} } }),
|
|
4004
|
-
info:
|
|
4005
|
-
positive:
|
|
4006
|
-
warning:
|
|
4007
|
-
negative:
|
|
4008
|
-
} } }),
|
|
4009
|
-
function
|
|
3975
|
+
}, Wc = /* @__PURE__ */ e({
|
|
3976
|
+
Alert: () => xl,
|
|
3977
|
+
Backdrop: () => cl,
|
|
3978
|
+
Body: () => fl,
|
|
3979
|
+
Close: () => _l,
|
|
3980
|
+
Description: () => gl,
|
|
3981
|
+
Footer: () => pl,
|
|
3982
|
+
Header: () => dl,
|
|
3983
|
+
Inline: () => bl,
|
|
3984
|
+
Popup: () => ul,
|
|
3985
|
+
Portal: () => sl,
|
|
3986
|
+
Root: () => al,
|
|
3987
|
+
Simple: () => yl,
|
|
3988
|
+
Status: () => ml,
|
|
3989
|
+
Title: () => hl,
|
|
3990
|
+
Trigger: () => ol,
|
|
3991
|
+
Viewport: () => ll,
|
|
3992
|
+
createHandle: () => il
|
|
3993
|
+
}), Gc = $e(void 0), Kc = y(q.trigger, { variants: { inline: { true: q.triggerInline } } }), qc = y(q.backdrop), Jc = y(q.viewport), Yc = y(q.popup, { variants: { size: {
|
|
3994
|
+
sm: q.sizeSm,
|
|
3995
|
+
md: q.sizeMd,
|
|
3996
|
+
lg: q.sizeLg,
|
|
3997
|
+
full: q.sizeFull
|
|
3998
|
+
} } }), Xc = y(q.header, { variants: { variant: {
|
|
3999
|
+
primary: q.headerPrimary,
|
|
4000
|
+
main: q.headerMain,
|
|
4001
|
+
support: q.headerSupport,
|
|
4002
|
+
minor: q.headerMinor
|
|
4003
|
+
} } }), Zc = y(q.status, { variants: { variant: {
|
|
4004
|
+
info: q.statusInfo,
|
|
4005
|
+
positive: q.statusPositive,
|
|
4006
|
+
warning: q.statusWarning,
|
|
4007
|
+
negative: q.statusNegative
|
|
4008
|
+
} } }), Qc = y(q.body), $c = y(q.bodyContent), el = y(q.footer), tl = y(q.title), nl = y(q.description), rl = y(q.close), il = gt.createHandle;
|
|
4009
|
+
function al(e) {
|
|
4010
4010
|
return /* @__PURE__ */ x(gt.Root, { ...e });
|
|
4011
4011
|
}
|
|
4012
|
-
|
|
4013
|
-
function
|
|
4012
|
+
al.displayName = "Dialog.Root";
|
|
4013
|
+
function ol({ inline: e = !1, ...t }) {
|
|
4014
4014
|
return /* @__PURE__ */ x(gt.Trigger, {
|
|
4015
4015
|
...t,
|
|
4016
4016
|
"data-imf-ui-component": "Dialog.Trigger",
|
|
4017
|
-
className: (n) =>
|
|
4017
|
+
className: (n) => Kc({
|
|
4018
4018
|
inline: e,
|
|
4019
|
-
className:
|
|
4019
|
+
className: v(t.className, n)
|
|
4020
4020
|
})
|
|
4021
4021
|
});
|
|
4022
4022
|
}
|
|
4023
|
-
|
|
4024
|
-
function
|
|
4023
|
+
ol.displayName = "Dialog.Trigger";
|
|
4024
|
+
function sl(e) {
|
|
4025
4025
|
return /* @__PURE__ */ x(gt.Portal, { ...e });
|
|
4026
4026
|
}
|
|
4027
|
-
|
|
4028
|
-
function
|
|
4027
|
+
sl.displayName = "Dialog.Portal";
|
|
4028
|
+
function cl(e) {
|
|
4029
4029
|
return /* @__PURE__ */ x(gt.Backdrop, {
|
|
4030
4030
|
...e,
|
|
4031
4031
|
"data-imf-ui-component": "Dialog.Backdrop",
|
|
4032
|
-
className: (t) =>
|
|
4032
|
+
className: (t) => qc({ className: v(e.className, t) })
|
|
4033
4033
|
});
|
|
4034
4034
|
}
|
|
4035
|
-
|
|
4036
|
-
function
|
|
4035
|
+
cl.displayName = "Dialog.Backdrop";
|
|
4036
|
+
function ll(e) {
|
|
4037
4037
|
return /* @__PURE__ */ x(gt.Viewport, {
|
|
4038
4038
|
...e,
|
|
4039
4039
|
"data-imf-ui-component": "Dialog.Viewport",
|
|
4040
|
-
className: (t) =>
|
|
4040
|
+
className: (t) => Jc({ className: v(e.className, t) })
|
|
4041
4041
|
});
|
|
4042
4042
|
}
|
|
4043
|
-
|
|
4044
|
-
function
|
|
4043
|
+
ll.displayName = "Dialog.Viewport";
|
|
4044
|
+
function ul({ size: e = "md", ...t }) {
|
|
4045
4045
|
return /* @__PURE__ */ x(gt.Popup, {
|
|
4046
4046
|
...t,
|
|
4047
4047
|
"data-imf-ui-component": "Dialog.Popup",
|
|
4048
|
-
className: (n) =>
|
|
4048
|
+
className: (n) => Yc({
|
|
4049
4049
|
size: e,
|
|
4050
|
-
className:
|
|
4050
|
+
className: v(t.className, n)
|
|
4051
4051
|
}),
|
|
4052
|
-
children: /* @__PURE__ */ x(
|
|
4052
|
+
children: /* @__PURE__ */ x(Gc.Provider, {
|
|
4053
4053
|
value: void 0,
|
|
4054
4054
|
children: t.children
|
|
4055
4055
|
})
|
|
4056
4056
|
});
|
|
4057
4057
|
}
|
|
4058
|
-
|
|
4059
|
-
function
|
|
4060
|
-
return /* @__PURE__ */ x(
|
|
4058
|
+
ul.displayName = "Dialog.Popup";
|
|
4059
|
+
function dl({ variant: e = "main", ...t }) {
|
|
4060
|
+
return /* @__PURE__ */ x(Gc.Provider, {
|
|
4061
4061
|
value: e,
|
|
4062
4062
|
children: /* @__PURE__ */ x("div", {
|
|
4063
4063
|
...t,
|
|
4064
4064
|
"data-imf-ui-component": "Dialog.Header",
|
|
4065
|
-
className:
|
|
4065
|
+
className: Xc({
|
|
4066
4066
|
variant: e,
|
|
4067
4067
|
className: t.className
|
|
4068
4068
|
})
|
|
4069
4069
|
})
|
|
4070
4070
|
});
|
|
4071
4071
|
}
|
|
4072
|
-
|
|
4073
|
-
function
|
|
4072
|
+
dl.displayName = "Dialog.Header";
|
|
4073
|
+
function fl({ children: e, ...t }) {
|
|
4074
4074
|
return /* @__PURE__ */ x(ze, {
|
|
4075
4075
|
render: /* @__PURE__ */ x("div", { "data-imf-ui-component": "Dialog.Body" }),
|
|
4076
4076
|
...t,
|
|
4077
|
-
className: (e) =>
|
|
4077
|
+
className: (e) => Qc({ className: v(t.className, e) }),
|
|
4078
4078
|
children: /* @__PURE__ */ x("div", {
|
|
4079
|
-
className:
|
|
4079
|
+
className: $c(),
|
|
4080
4080
|
children: e
|
|
4081
4081
|
})
|
|
4082
4082
|
});
|
|
4083
4083
|
}
|
|
4084
|
-
|
|
4085
|
-
function
|
|
4084
|
+
fl.displayName = "Dialog.Body";
|
|
4085
|
+
function pl(e) {
|
|
4086
4086
|
return /* @__PURE__ */ x("div", {
|
|
4087
4087
|
...e,
|
|
4088
4088
|
"data-imf-ui-component": "Dialog.Footer",
|
|
4089
|
-
className:
|
|
4089
|
+
className: el({ className: e.className })
|
|
4090
4090
|
});
|
|
4091
4091
|
}
|
|
4092
|
-
|
|
4093
|
-
function
|
|
4092
|
+
pl.displayName = "Dialog.Footer";
|
|
4093
|
+
function ml({ variant: e = "info", children: t, ...n }) {
|
|
4094
4094
|
return /* @__PURE__ */ x("div", {
|
|
4095
4095
|
...n,
|
|
4096
4096
|
"aria-hidden": !0,
|
|
4097
4097
|
"data-imf-ui-component": "Dialog.Status",
|
|
4098
|
-
className:
|
|
4098
|
+
className: Zc({
|
|
4099
4099
|
variant: e,
|
|
4100
4100
|
className: n.className
|
|
4101
4101
|
}),
|
|
4102
|
-
children: t ?? /* @__PURE__ */ x(
|
|
4102
|
+
children: t ?? /* @__PURE__ */ x(h, {
|
|
4103
4103
|
glyph: gi[e ?? "info"],
|
|
4104
|
-
className:
|
|
4104
|
+
className: q.statusGlyph
|
|
4105
4105
|
})
|
|
4106
4106
|
});
|
|
4107
4107
|
}
|
|
4108
|
-
|
|
4109
|
-
function
|
|
4110
|
-
let t = C(
|
|
4108
|
+
ml.displayName = "Dialog.Status";
|
|
4109
|
+
function hl(e) {
|
|
4110
|
+
let t = C(Gc);
|
|
4111
4111
|
return /* @__PURE__ */ x(gt.Title, {
|
|
4112
4112
|
render: /* @__PURE__ */ x(ta, {
|
|
4113
4113
|
variant: t === "primary" ? "oncolor" : "primary",
|
|
4114
4114
|
fadeAfterFirstLine: !1
|
|
4115
4115
|
}),
|
|
4116
4116
|
...e,
|
|
4117
|
-
className: (t) =>
|
|
4117
|
+
className: (t) => tl({ className: v(e.className, t) })
|
|
4118
4118
|
});
|
|
4119
4119
|
}
|
|
4120
|
-
|
|
4121
|
-
function
|
|
4122
|
-
let t = C(
|
|
4120
|
+
hl.displayName = "Dialog.Title";
|
|
4121
|
+
function gl(e) {
|
|
4122
|
+
let t = C(Gc);
|
|
4123
4123
|
return /* @__PURE__ */ x(gt.Description, {
|
|
4124
4124
|
render: /* @__PURE__ */ x(ia, { variant: t === "primary" ? "oncolor" : "support" }),
|
|
4125
4125
|
...e,
|
|
4126
|
-
className: (t) =>
|
|
4126
|
+
className: (t) => nl({ className: v(e.className, t) })
|
|
4127
4127
|
});
|
|
4128
4128
|
}
|
|
4129
|
-
|
|
4130
|
-
function
|
|
4131
|
-
let t = C(
|
|
4129
|
+
gl.displayName = "Dialog.Description";
|
|
4130
|
+
function _l(e) {
|
|
4131
|
+
let t = C(Gc), n = e.children == null && e.render == null;
|
|
4132
4132
|
return /* @__PURE__ */ x(gt.Close, {
|
|
4133
4133
|
...e,
|
|
4134
4134
|
render: n ? /* @__PURE__ */ x(xe, {
|
|
4135
|
-
glyph:
|
|
4135
|
+
glyph: ce,
|
|
4136
4136
|
label: e["aria-label"] ?? "Close",
|
|
4137
4137
|
variant: "ghost",
|
|
4138
4138
|
size: "sm",
|
|
4139
4139
|
context: t === "primary" ? "oncolor" : "default"
|
|
4140
4140
|
}) : e.render,
|
|
4141
4141
|
"data-imf-ui-component": "Dialog.Close",
|
|
4142
|
-
className: (t) =>
|
|
4142
|
+
className: (t) => rl({ className: v(e.className, t) })
|
|
4143
4143
|
});
|
|
4144
4144
|
}
|
|
4145
|
-
|
|
4146
|
-
function
|
|
4147
|
-
return /* @__PURE__ */ S(
|
|
4145
|
+
_l.displayName = "Dialog.Close";
|
|
4146
|
+
function vl({ eyebrow: e, title: t, description: n, status: r, headerVariant: i, size: a, actions: o, children: s }) {
|
|
4147
|
+
return /* @__PURE__ */ S(sl, { children: [/* @__PURE__ */ x(cl, {}), /* @__PURE__ */ x(ll, { children: /* @__PURE__ */ S(ul, {
|
|
4148
4148
|
size: a,
|
|
4149
4149
|
children: [
|
|
4150
|
-
r && /* @__PURE__ */ x(
|
|
4151
|
-
/* @__PURE__ */ S(
|
|
4150
|
+
r && /* @__PURE__ */ x(ml, { variant: r }),
|
|
4151
|
+
/* @__PURE__ */ S(dl, {
|
|
4152
4152
|
variant: i,
|
|
4153
4153
|
children: [
|
|
4154
4154
|
e && /* @__PURE__ */ x(ca, {
|
|
4155
4155
|
variant: i === "primary" ? "oncolor" : "support",
|
|
4156
4156
|
children: e
|
|
4157
4157
|
}),
|
|
4158
|
-
/* @__PURE__ */ x(
|
|
4159
|
-
n && /* @__PURE__ */ x(
|
|
4160
|
-
!o && /* @__PURE__ */ x(
|
|
4158
|
+
/* @__PURE__ */ x(hl, { children: t }),
|
|
4159
|
+
n && /* @__PURE__ */ x(gl, { children: n }),
|
|
4160
|
+
!o && /* @__PURE__ */ x(_l, {})
|
|
4161
4161
|
]
|
|
4162
4162
|
}),
|
|
4163
|
-
s && /* @__PURE__ */ x(
|
|
4164
|
-
o && /* @__PURE__ */ x(
|
|
4163
|
+
s && /* @__PURE__ */ x(fl, { children: s }),
|
|
4164
|
+
o && /* @__PURE__ */ x(pl, { children: o })
|
|
4165
4165
|
]
|
|
4166
4166
|
}) })] });
|
|
4167
4167
|
}
|
|
4168
|
-
function
|
|
4169
|
-
return /* @__PURE__ */ S(
|
|
4168
|
+
function yl({ trigger: e, headerVariant: t = "main", size: n = "md", eyebrow: r, title: i, description: a, status: o, actions: s, children: c, ...l }) {
|
|
4169
|
+
return /* @__PURE__ */ S(al, {
|
|
4170
4170
|
...l,
|
|
4171
|
-
children: [e && /* @__PURE__ */ x(
|
|
4171
|
+
children: [e && /* @__PURE__ */ x(ol, { render: e }), /* @__PURE__ */ x(vl, {
|
|
4172
4172
|
eyebrow: r,
|
|
4173
4173
|
title: i,
|
|
4174
4174
|
description: a,
|
|
@@ -4180,14 +4180,14 @@ function vl({ trigger: e, headerVariant: t = "main", size: n = "md", eyebrow: r,
|
|
|
4180
4180
|
})]
|
|
4181
4181
|
});
|
|
4182
4182
|
}
|
|
4183
|
-
|
|
4184
|
-
function
|
|
4185
|
-
return /* @__PURE__ */ S(
|
|
4183
|
+
yl.displayName = "Dialog.Simple";
|
|
4184
|
+
function bl({ trigger: e, headerVariant: t = "main", size: n = "md", eyebrow: r, title: i, description: a, status: o, actions: s, children: c, ...l }) {
|
|
4185
|
+
return /* @__PURE__ */ S(al, {
|
|
4186
4186
|
...l,
|
|
4187
|
-
children: [/* @__PURE__ */ x(
|
|
4187
|
+
children: [/* @__PURE__ */ x(ol, {
|
|
4188
4188
|
inline: !0,
|
|
4189
4189
|
children: e
|
|
4190
|
-
}), /* @__PURE__ */ x(
|
|
4190
|
+
}), /* @__PURE__ */ x(vl, {
|
|
4191
4191
|
eyebrow: r,
|
|
4192
4192
|
title: i,
|
|
4193
4193
|
description: a,
|
|
@@ -4199,11 +4199,11 @@ function yl({ trigger: e, headerVariant: t = "main", size: n = "md", eyebrow: r,
|
|
|
4199
4199
|
})]
|
|
4200
4200
|
});
|
|
4201
4201
|
}
|
|
4202
|
-
|
|
4203
|
-
function
|
|
4202
|
+
bl.displayName = "Dialog.Inline";
|
|
4203
|
+
function xl({ trigger: e, size: t = "sm", eyebrow: n, title: r, description: i, status: a, actions: o, children: s, ...c }) {
|
|
4204
4204
|
return /* @__PURE__ */ S(ht.Root, {
|
|
4205
4205
|
...c,
|
|
4206
|
-
children: [e && /* @__PURE__ */ x(
|
|
4206
|
+
children: [e && /* @__PURE__ */ x(ol, { render: e }), /* @__PURE__ */ x(vl, {
|
|
4207
4207
|
eyebrow: n,
|
|
4208
4208
|
title: r,
|
|
4209
4209
|
description: i,
|
|
@@ -4214,12 +4214,12 @@ function bl({ trigger: e, size: t = "sm", eyebrow: n, title: r, description: i,
|
|
|
4214
4214
|
})]
|
|
4215
4215
|
});
|
|
4216
4216
|
}
|
|
4217
|
-
|
|
4217
|
+
xl.displayName = "Dialog.Alert";
|
|
4218
4218
|
//#endregion
|
|
4219
4219
|
//#region src/components/dialog/dialog.meta.ts
|
|
4220
|
-
var
|
|
4220
|
+
var Sl = {
|
|
4221
4221
|
name: "Dialog",
|
|
4222
|
-
category:
|
|
4222
|
+
category: _.layout,
|
|
4223
4223
|
status: "experimental",
|
|
4224
4224
|
description: "Modal window over a dimmed page for focused tasks, forms, confirmations, or viewers. Also called a modal; use Drawer for a panel from the screen edge and Popover for content anchored to a trigger.",
|
|
4225
4225
|
origin: "adapted",
|
|
@@ -4235,7 +4235,7 @@ var xl = {
|
|
|
4235
4235
|
"Icon",
|
|
4236
4236
|
"Typo"
|
|
4237
4237
|
]
|
|
4238
|
-
},
|
|
4238
|
+
}, J = {
|
|
4239
4239
|
arrow: "imf-ui-popover-module-arrow",
|
|
4240
4240
|
backdrop: "imf-ui-popover-module-backdrop",
|
|
4241
4241
|
close: "imf-ui-popover-module-close",
|
|
@@ -4259,153 +4259,153 @@ var xl = {
|
|
|
4259
4259
|
variantPrimary: "imf-ui-popover-module-variantPrimary",
|
|
4260
4260
|
variantSecondary: "imf-ui-popover-module-variantSecondary",
|
|
4261
4261
|
viewport: "imf-ui-popover-module-viewport"
|
|
4262
|
-
},
|
|
4263
|
-
Arrow: () =>
|
|
4264
|
-
Backdrop: () =>
|
|
4265
|
-
Close: () =>
|
|
4266
|
-
Description: () =>
|
|
4267
|
-
Eyebrow: () =>
|
|
4268
|
-
Inline: () =>
|
|
4269
|
-
Popup: () =>
|
|
4270
|
-
Portal: () =>
|
|
4271
|
-
Positioner: () =>
|
|
4272
|
-
Root: () =>
|
|
4273
|
-
Title: () =>
|
|
4274
|
-
Trigger: () =>
|
|
4275
|
-
Viewport: () =>
|
|
4276
|
-
createHandle: () =>
|
|
4277
|
-
}),
|
|
4262
|
+
}, Cl = /* @__PURE__ */ e({
|
|
4263
|
+
Arrow: () => Vl,
|
|
4264
|
+
Backdrop: () => Rl,
|
|
4265
|
+
Close: () => Kl,
|
|
4266
|
+
Description: () => Gl,
|
|
4267
|
+
Eyebrow: () => Ul,
|
|
4268
|
+
Inline: () => ql,
|
|
4269
|
+
Popup: () => Bl,
|
|
4270
|
+
Portal: () => Ll,
|
|
4271
|
+
Positioner: () => zl,
|
|
4272
|
+
Root: () => Fl,
|
|
4273
|
+
Title: () => Wl,
|
|
4274
|
+
Trigger: () => Il,
|
|
4275
|
+
Viewport: () => Hl,
|
|
4276
|
+
createHandle: () => Pl
|
|
4277
|
+
}), wl = y(J.trigger, { variants: {
|
|
4278
4278
|
variant: {
|
|
4279
|
-
ghost:
|
|
4280
|
-
outline:
|
|
4281
|
-
primary:
|
|
4282
|
-
secondary:
|
|
4283
|
-
positive:
|
|
4284
|
-
negative:
|
|
4279
|
+
ghost: J.variantGhost,
|
|
4280
|
+
outline: J.variantOutline,
|
|
4281
|
+
primary: J.variantPrimary,
|
|
4282
|
+
secondary: J.variantSecondary,
|
|
4283
|
+
positive: J.variantPositive,
|
|
4284
|
+
negative: J.variantNegative
|
|
4285
4285
|
},
|
|
4286
|
-
inline: { true:
|
|
4287
|
-
} }),
|
|
4288
|
-
ghost:
|
|
4289
|
-
outline:
|
|
4290
|
-
primary:
|
|
4291
|
-
secondary:
|
|
4292
|
-
positive:
|
|
4293
|
-
negative:
|
|
4294
|
-
} } }),
|
|
4295
|
-
function
|
|
4286
|
+
inline: { true: J.triggerInline }
|
|
4287
|
+
} }), Tl = y(J.backdrop), El = y(J.positioner), Dl = y(J.popup, { variants: { variant: {
|
|
4288
|
+
ghost: J.popupVariantGhost,
|
|
4289
|
+
outline: J.popupVariantOutline,
|
|
4290
|
+
primary: J.popupVariantPrimary,
|
|
4291
|
+
secondary: J.popupVariantSecondary,
|
|
4292
|
+
positive: J.popupVariantPositive,
|
|
4293
|
+
negative: J.popupVariantNegative
|
|
4294
|
+
} } }), Ol = y(J.arrow), kl = y(J.viewport), Al = y(J.eyebrow), jl = y(J.title), Ml = y(J.description), Nl = y(J.close), Pl = _t.createHandle;
|
|
4295
|
+
function Fl(e) {
|
|
4296
4296
|
return /* @__PURE__ */ x(_t.Root, { ...e });
|
|
4297
4297
|
}
|
|
4298
|
-
|
|
4299
|
-
function
|
|
4298
|
+
Fl.displayName = "Popover.Root";
|
|
4299
|
+
function Il({ variant: e = "ghost", inline: t = !1, ...n }) {
|
|
4300
4300
|
return /* @__PURE__ */ x(_t.Trigger, {
|
|
4301
4301
|
...n,
|
|
4302
4302
|
"data-imf-ui-component": "Popover.Trigger",
|
|
4303
|
-
className: (r) => n.render ?
|
|
4303
|
+
className: (r) => n.render ? v(n.className, r) : wl({
|
|
4304
4304
|
variant: e,
|
|
4305
4305
|
inline: t,
|
|
4306
|
-
className:
|
|
4306
|
+
className: v(n.className, r)
|
|
4307
4307
|
})
|
|
4308
4308
|
});
|
|
4309
4309
|
}
|
|
4310
|
-
|
|
4311
|
-
function
|
|
4310
|
+
Il.displayName = "Popover.Trigger";
|
|
4311
|
+
function Ll(e) {
|
|
4312
4312
|
return /* @__PURE__ */ x(_t.Portal, { ...e });
|
|
4313
4313
|
}
|
|
4314
|
-
|
|
4315
|
-
function
|
|
4314
|
+
Ll.displayName = "Popover.Portal";
|
|
4315
|
+
function Rl(e) {
|
|
4316
4316
|
return /* @__PURE__ */ x(_t.Backdrop, {
|
|
4317
4317
|
...e,
|
|
4318
4318
|
"data-imf-ui-component": "Popover.Backdrop",
|
|
4319
|
-
className: (t) =>
|
|
4319
|
+
className: (t) => Tl({ className: v(e.className, t) })
|
|
4320
4320
|
});
|
|
4321
4321
|
}
|
|
4322
|
-
|
|
4323
|
-
function
|
|
4322
|
+
Rl.displayName = "Popover.Backdrop";
|
|
4323
|
+
function zl({ sideOffset: e = 4, ...t }) {
|
|
4324
4324
|
return /* @__PURE__ */ x(_t.Positioner, {
|
|
4325
4325
|
...t,
|
|
4326
4326
|
sideOffset: e,
|
|
4327
4327
|
"data-imf-ui-component": "Popover.Positioner",
|
|
4328
|
-
className: (e) =>
|
|
4328
|
+
className: (e) => El({ className: v(t.className, e) })
|
|
4329
4329
|
});
|
|
4330
4330
|
}
|
|
4331
|
-
|
|
4332
|
-
function
|
|
4331
|
+
zl.displayName = "Popover.Positioner";
|
|
4332
|
+
function Bl({ variant: e, ...t }) {
|
|
4333
4333
|
return /* @__PURE__ */ x(_t.Popup, {
|
|
4334
4334
|
...t,
|
|
4335
4335
|
"data-imf-ui-component": "Popover.Popup",
|
|
4336
|
-
className: (n) =>
|
|
4336
|
+
className: (n) => Dl({
|
|
4337
4337
|
variant: e,
|
|
4338
|
-
className:
|
|
4338
|
+
className: v(t.className, n)
|
|
4339
4339
|
})
|
|
4340
4340
|
});
|
|
4341
4341
|
}
|
|
4342
|
-
|
|
4343
|
-
function
|
|
4342
|
+
Bl.displayName = "Popover.Popup";
|
|
4343
|
+
function Vl(e) {
|
|
4344
4344
|
return /* @__PURE__ */ x(_t.Arrow, {
|
|
4345
4345
|
...e,
|
|
4346
4346
|
"data-imf-ui-component": "Popover.Arrow",
|
|
4347
|
-
className: (t) =>
|
|
4347
|
+
className: (t) => Ol({ className: v(e.className, t) })
|
|
4348
4348
|
});
|
|
4349
4349
|
}
|
|
4350
|
-
|
|
4351
|
-
function
|
|
4350
|
+
Vl.displayName = "Popover.Arrow";
|
|
4351
|
+
function Hl(e) {
|
|
4352
4352
|
return /* @__PURE__ */ x(_t.Viewport, {
|
|
4353
4353
|
...e,
|
|
4354
4354
|
"data-imf-ui-component": "Popover.Viewport",
|
|
4355
|
-
className: (t) =>
|
|
4355
|
+
className: (t) => kl({ className: v(e.className, t) })
|
|
4356
4356
|
});
|
|
4357
4357
|
}
|
|
4358
|
-
|
|
4359
|
-
function
|
|
4358
|
+
Hl.displayName = "Popover.Viewport";
|
|
4359
|
+
function Ul(e) {
|
|
4360
4360
|
return /* @__PURE__ */ x("p", {
|
|
4361
4361
|
...e,
|
|
4362
4362
|
"data-imf-ui-component": "Popover.Eyebrow",
|
|
4363
|
-
className:
|
|
4363
|
+
className: Al({ className: e.className })
|
|
4364
4364
|
});
|
|
4365
4365
|
}
|
|
4366
|
-
|
|
4367
|
-
function
|
|
4366
|
+
Ul.displayName = "Popover.Eyebrow";
|
|
4367
|
+
function Wl(e) {
|
|
4368
4368
|
return /* @__PURE__ */ x(_t.Title, {
|
|
4369
4369
|
...e,
|
|
4370
4370
|
"data-imf-ui-component": "Popover.Title",
|
|
4371
|
-
className:
|
|
4371
|
+
className: jl({ className: e.className })
|
|
4372
4372
|
});
|
|
4373
4373
|
}
|
|
4374
|
-
|
|
4375
|
-
function
|
|
4374
|
+
Wl.displayName = "Popover.Title";
|
|
4375
|
+
function Gl(e) {
|
|
4376
4376
|
return /* @__PURE__ */ x(_t.Description, {
|
|
4377
4377
|
...e,
|
|
4378
4378
|
"data-imf-ui-component": "Popover.Description",
|
|
4379
|
-
className:
|
|
4379
|
+
className: Ml({ className: e.className })
|
|
4380
4380
|
});
|
|
4381
4381
|
}
|
|
4382
|
-
|
|
4383
|
-
function
|
|
4382
|
+
Gl.displayName = "Popover.Description";
|
|
4383
|
+
function Kl(e) {
|
|
4384
4384
|
return /* @__PURE__ */ x(_t.Close, {
|
|
4385
4385
|
...e,
|
|
4386
4386
|
"data-imf-ui-component": "Popover.Close",
|
|
4387
|
-
className: (t) =>
|
|
4387
|
+
className: (t) => Nl({ className: v(e.className, t) })
|
|
4388
4388
|
});
|
|
4389
4389
|
}
|
|
4390
|
-
|
|
4391
|
-
function
|
|
4392
|
-
return /* @__PURE__ */ S(
|
|
4390
|
+
Kl.displayName = "Popover.Close";
|
|
4391
|
+
function ql({ trigger: e, title: t, children: n, delay: r = 150, side: i = "top", sideOffset: a = 6 }) {
|
|
4392
|
+
return /* @__PURE__ */ S(Fl, { children: [/* @__PURE__ */ x(Il, {
|
|
4393
4393
|
inline: !0,
|
|
4394
4394
|
openOnHover: !0,
|
|
4395
4395
|
delay: r,
|
|
4396
4396
|
children: e
|
|
4397
|
-
}), /* @__PURE__ */ x(
|
|
4397
|
+
}), /* @__PURE__ */ x(Ll, { children: /* @__PURE__ */ x(zl, {
|
|
4398
4398
|
side: i,
|
|
4399
4399
|
sideOffset: a,
|
|
4400
|
-
children: /* @__PURE__ */ S(
|
|
4400
|
+
children: /* @__PURE__ */ S(Bl, { children: [t && /* @__PURE__ */ x(Wl, { children: t }), n && /* @__PURE__ */ x(Gl, { children: n })] })
|
|
4401
4401
|
}) })] });
|
|
4402
4402
|
}
|
|
4403
|
-
|
|
4403
|
+
ql.displayName = "Popover.Inline";
|
|
4404
4404
|
//#endregion
|
|
4405
4405
|
//#region src/components/popover/popover.meta.ts
|
|
4406
|
-
var
|
|
4406
|
+
var Jl = {
|
|
4407
4407
|
name: "Popover",
|
|
4408
|
-
category:
|
|
4408
|
+
category: _.display,
|
|
4409
4409
|
status: "stable",
|
|
4410
4410
|
description: "Floating panel anchored to a trigger for contextual content, quick forms, or actions. Also called a popup or flyout; use Tooltip for hints without interaction.",
|
|
4411
4411
|
origin: "adapted",
|
|
@@ -4415,31 +4415,31 @@ var ql = {
|
|
|
4415
4415
|
docLink: "https://base-ui.com/react/components/popover",
|
|
4416
4416
|
llmDocLink: "https://base-ui.com/react/components/popover.md"
|
|
4417
4417
|
}
|
|
4418
|
-
},
|
|
4419
|
-
function
|
|
4418
|
+
}, Yl = y({ root: "imf-ui-prose-module-root" }.root);
|
|
4419
|
+
function Xl(e) {
|
|
4420
4420
|
return /* @__PURE__ */ x("div", {
|
|
4421
4421
|
...e,
|
|
4422
4422
|
"data-imf-ui-component": "Prose",
|
|
4423
|
-
className:
|
|
4423
|
+
className: Yl({ className: e.className })
|
|
4424
4424
|
});
|
|
4425
4425
|
}
|
|
4426
4426
|
//#endregion
|
|
4427
4427
|
//#region src/components/prose/prose.meta.ts
|
|
4428
|
-
var
|
|
4428
|
+
var Zl = {
|
|
4429
4429
|
name: "Prose",
|
|
4430
|
-
category:
|
|
4430
|
+
category: _.layout,
|
|
4431
4431
|
status: "experimental",
|
|
4432
4432
|
description: "Flow container that spaces long-form text and the blocks inside it. Also called an article or rich-text container. Use Stack or Row for UI layout.",
|
|
4433
4433
|
origin: "native"
|
|
4434
|
-
},
|
|
4434
|
+
}, Ql = {
|
|
4435
4435
|
name: "Row",
|
|
4436
|
-
category:
|
|
4436
|
+
category: _.layout,
|
|
4437
4437
|
status: "stable",
|
|
4438
4438
|
description: "Horizontal layout primitive for spacing, aligning, and wrapping children. Also called a horizontal stack or flex row.",
|
|
4439
4439
|
origin: "native"
|
|
4440
|
-
},
|
|
4440
|
+
}, $l = {
|
|
4441
4441
|
name: "ScrollArea",
|
|
4442
|
-
category:
|
|
4442
|
+
category: _.layout,
|
|
4443
4443
|
status: "experimental",
|
|
4444
4444
|
description: "Scrollable region with the library's overlay scrollbar and edge fades, for lists, panels, and dialog bodies. Also called a scroll container; use it instead of a bare overflow: auto.",
|
|
4445
4445
|
origin: "adapted",
|
|
@@ -4449,9 +4449,9 @@ var Xl = {
|
|
|
4449
4449
|
docLink: "https://base-ui.com/react/components/scroll-area",
|
|
4450
4450
|
llmDocLink: "https://base-ui.com/react/components/scroll-area.md"
|
|
4451
4451
|
}
|
|
4452
|
-
},
|
|
4452
|
+
}, eu = {
|
|
4453
4453
|
name: "Separator",
|
|
4454
|
-
category:
|
|
4454
|
+
category: _.layout,
|
|
4455
4455
|
status: "stable",
|
|
4456
4456
|
description: "Line that divides content horizontally or vertically. Also called a divider or rule.",
|
|
4457
4457
|
origin: "adapted",
|
|
@@ -4461,7 +4461,7 @@ var Xl = {
|
|
|
4461
4461
|
docLink: "https://base-ui.com/react/components/separator",
|
|
4462
4462
|
llmDocLink: "https://base-ui.com/react/components/separator.md"
|
|
4463
4463
|
}
|
|
4464
|
-
},
|
|
4464
|
+
}, tu = {
|
|
4465
4465
|
contextOncolor: "imf-ui-avatar-module-contextOncolor",
|
|
4466
4466
|
fallback: "imf-ui-avatar-module-fallback",
|
|
4467
4467
|
glyph: "imf-ui-avatar-module-glyph",
|
|
@@ -4470,65 +4470,65 @@ var Xl = {
|
|
|
4470
4470
|
sizeLg: "imf-ui-avatar-module-sizeLg",
|
|
4471
4471
|
sizeMd: "imf-ui-avatar-module-sizeMd",
|
|
4472
4472
|
sizeSm: "imf-ui-avatar-module-sizeSm"
|
|
4473
|
-
},
|
|
4474
|
-
Fallback: () =>
|
|
4475
|
-
Image: () =>
|
|
4476
|
-
Root: () =>
|
|
4477
|
-
}),
|
|
4473
|
+
}, nu = /* @__PURE__ */ e({
|
|
4474
|
+
Fallback: () => au,
|
|
4475
|
+
Image: () => ou,
|
|
4476
|
+
Root: () => iu
|
|
4477
|
+
}), ru = y(tu.root, { variants: {
|
|
4478
4478
|
size: {
|
|
4479
|
-
sm:
|
|
4480
|
-
md:
|
|
4481
|
-
lg:
|
|
4479
|
+
sm: tu.sizeSm,
|
|
4480
|
+
md: tu.sizeMd,
|
|
4481
|
+
lg: tu.sizeLg
|
|
4482
4482
|
},
|
|
4483
4483
|
context: {
|
|
4484
4484
|
default: null,
|
|
4485
|
-
oncolor:
|
|
4485
|
+
oncolor: tu.contextOncolor
|
|
4486
4486
|
}
|
|
4487
4487
|
} });
|
|
4488
|
-
function
|
|
4488
|
+
function iu({ size: e = "md", context: t = "default", ...n }) {
|
|
4489
4489
|
let r = n["aria-label"] != null || n["aria-labelledby"] != null;
|
|
4490
4490
|
return /* @__PURE__ */ x(vt.Root, {
|
|
4491
4491
|
role: r ? "img" : void 0,
|
|
4492
4492
|
"aria-hidden": !r || void 0,
|
|
4493
4493
|
...n,
|
|
4494
4494
|
"data-imf-ui-component": "Avatar.Root",
|
|
4495
|
-
className: (r) =>
|
|
4495
|
+
className: (r) => ru({
|
|
4496
4496
|
size: e,
|
|
4497
4497
|
context: t,
|
|
4498
|
-
className:
|
|
4498
|
+
className: v(n.className, r)
|
|
4499
4499
|
})
|
|
4500
4500
|
});
|
|
4501
4501
|
}
|
|
4502
|
-
|
|
4503
|
-
function
|
|
4502
|
+
iu.displayName = "Avatar.Root";
|
|
4503
|
+
function au({ children: e, ...t }) {
|
|
4504
4504
|
return /* @__PURE__ */ x(vt.Fallback, {
|
|
4505
4505
|
...t,
|
|
4506
4506
|
"data-imf-ui-component": "Avatar.Fallback",
|
|
4507
|
-
className: (e) => y(
|
|
4508
|
-
children: e ?? /* @__PURE__ */ x(
|
|
4507
|
+
className: (e) => y(tu.fallback)({ className: v(t.className, e) }),
|
|
4508
|
+
children: e ?? /* @__PURE__ */ x(h, {
|
|
4509
4509
|
glyph: ee,
|
|
4510
|
-
className:
|
|
4510
|
+
className: tu.glyph,
|
|
4511
4511
|
"aria-hidden": !0
|
|
4512
4512
|
})
|
|
4513
4513
|
});
|
|
4514
4514
|
}
|
|
4515
|
-
|
|
4516
|
-
function
|
|
4515
|
+
au.displayName = "Avatar.Fallback";
|
|
4516
|
+
function ou({ alt: e = "", ...t }) {
|
|
4517
4517
|
return /* @__PURE__ */ x(vt.Image, {
|
|
4518
4518
|
...t,
|
|
4519
4519
|
alt: e,
|
|
4520
4520
|
"data-imf-ui-component": "Avatar.Image",
|
|
4521
|
-
className: (e) => y(
|
|
4521
|
+
className: (e) => y(tu.image)({ className: v(t.className, e) })
|
|
4522
4522
|
});
|
|
4523
4523
|
}
|
|
4524
|
-
|
|
4524
|
+
ou.displayName = "Avatar.Image";
|
|
4525
4525
|
//#endregion
|
|
4526
4526
|
//#region src/utils/break-hints.tsx
|
|
4527
|
-
var
|
|
4528
|
-
function
|
|
4529
|
-
return Xe.map(e, (e) => typeof e == "string" ? e.split(
|
|
4527
|
+
var su = /(?=@)|(?<=\.)/;
|
|
4528
|
+
function cu(e) {
|
|
4529
|
+
return Xe.map(e, (e) => typeof e == "string" ? e.split(su).flatMap((e, t) => t === 0 ? [e] : [/* @__PURE__ */ x("wbr", {}, t), e]) : e);
|
|
4530
4530
|
}
|
|
4531
|
-
var
|
|
4531
|
+
var lu = {
|
|
4532
4532
|
action: "imf-ui-account-card-module-action",
|
|
4533
4533
|
avatar: "imf-ui-account-card-module-avatar",
|
|
4534
4534
|
contextOncolor: "imf-ui-account-card-module-contextOncolor",
|
|
@@ -4537,101 +4537,101 @@ var cu = {
|
|
|
4537
4537
|
root: "imf-ui-account-card-module-root",
|
|
4538
4538
|
subtitle: "imf-ui-account-card-module-subtitle",
|
|
4539
4539
|
title: "imf-ui-account-card-module-title"
|
|
4540
|
-
},
|
|
4541
|
-
Action: () =>
|
|
4542
|
-
Avatar: () =>
|
|
4543
|
-
Description: () =>
|
|
4544
|
-
Role: () =>
|
|
4545
|
-
Root: () =>
|
|
4546
|
-
Subtitle: () =>
|
|
4547
|
-
Title: () =>
|
|
4548
|
-
}),
|
|
4540
|
+
}, uu = /* @__PURE__ */ e({
|
|
4541
|
+
Action: () => yu,
|
|
4542
|
+
Avatar: () => mu,
|
|
4543
|
+
Description: () => _u,
|
|
4544
|
+
Role: () => vu,
|
|
4545
|
+
Root: () => pu,
|
|
4546
|
+
Subtitle: () => gu,
|
|
4547
|
+
Title: () => hu
|
|
4548
|
+
}), du = y(lu.root, { variants: { context: {
|
|
4549
4549
|
default: null,
|
|
4550
|
-
oncolor:
|
|
4551
|
-
} } }),
|
|
4552
|
-
function
|
|
4553
|
-
return /* @__PURE__ */ x(
|
|
4550
|
+
oncolor: lu.contextOncolor
|
|
4551
|
+
} } }), fu = $e("default");
|
|
4552
|
+
function pu({ context: e = "default", ...t }) {
|
|
4553
|
+
return /* @__PURE__ */ x(fu.Provider, {
|
|
4554
4554
|
value: e ?? "default",
|
|
4555
4555
|
children: /* @__PURE__ */ x("div", {
|
|
4556
4556
|
...t,
|
|
4557
4557
|
"data-imf-ui-component": "AccountCard.Root",
|
|
4558
|
-
className:
|
|
4558
|
+
className: du({
|
|
4559
4559
|
context: e,
|
|
4560
4560
|
className: t.className
|
|
4561
4561
|
})
|
|
4562
4562
|
})
|
|
4563
4563
|
});
|
|
4564
4564
|
}
|
|
4565
|
-
|
|
4566
|
-
function
|
|
4567
|
-
let i = C(
|
|
4565
|
+
pu.displayName = "AccountCard.Root";
|
|
4566
|
+
function mu({ src: e, size: t = "sm", children: n, ...r }) {
|
|
4567
|
+
let i = C(fu);
|
|
4568
4568
|
return /* @__PURE__ */ x("span", {
|
|
4569
4569
|
...r,
|
|
4570
4570
|
"aria-hidden": !0,
|
|
4571
4571
|
"data-imf-ui-component": "AccountCard.Avatar",
|
|
4572
|
-
className: b(
|
|
4573
|
-
children: /* @__PURE__ */ S(
|
|
4572
|
+
className: b(lu.avatar, r.className),
|
|
4573
|
+
children: /* @__PURE__ */ S(iu, {
|
|
4574
4574
|
context: i,
|
|
4575
4575
|
size: t,
|
|
4576
|
-
children: [/* @__PURE__ */ x(
|
|
4576
|
+
children: [/* @__PURE__ */ x(au, { children: n }), e != null && /* @__PURE__ */ x(ou, { src: e })]
|
|
4577
4577
|
})
|
|
4578
4578
|
});
|
|
4579
4579
|
}
|
|
4580
|
-
|
|
4581
|
-
function
|
|
4580
|
+
mu.displayName = "AccountCard.Avatar";
|
|
4581
|
+
function hu({ children: e, ...t }) {
|
|
4582
4582
|
return /* @__PURE__ */ x("span", {
|
|
4583
4583
|
...t,
|
|
4584
4584
|
"data-imf-ui-component": "AccountCard.Title",
|
|
4585
|
-
className: b(
|
|
4586
|
-
children:
|
|
4585
|
+
className: b(lu.title, t.className),
|
|
4586
|
+
children: cu(e)
|
|
4587
4587
|
});
|
|
4588
4588
|
}
|
|
4589
|
-
|
|
4590
|
-
function
|
|
4589
|
+
hu.displayName = "AccountCard.Title";
|
|
4590
|
+
function gu({ children: e, ...t }) {
|
|
4591
4591
|
return /* @__PURE__ */ x("span", {
|
|
4592
4592
|
...t,
|
|
4593
4593
|
"data-imf-ui-component": "AccountCard.Subtitle",
|
|
4594
|
-
className: b(
|
|
4595
|
-
children:
|
|
4594
|
+
className: b(lu.subtitle, t.className),
|
|
4595
|
+
children: cu(e)
|
|
4596
4596
|
});
|
|
4597
4597
|
}
|
|
4598
|
-
|
|
4599
|
-
function
|
|
4598
|
+
gu.displayName = "AccountCard.Subtitle";
|
|
4599
|
+
function _u(e) {
|
|
4600
4600
|
return /* @__PURE__ */ x("span", {
|
|
4601
4601
|
...e,
|
|
4602
4602
|
"data-imf-ui-component": "AccountCard.Description",
|
|
4603
|
-
className: b(
|
|
4603
|
+
className: b(lu.description, e.className)
|
|
4604
4604
|
});
|
|
4605
4605
|
}
|
|
4606
|
-
|
|
4607
|
-
function
|
|
4606
|
+
_u.displayName = "AccountCard.Description";
|
|
4607
|
+
function vu(e) {
|
|
4608
4608
|
return /* @__PURE__ */ x("span", {
|
|
4609
4609
|
...e,
|
|
4610
4610
|
"data-imf-ui-component": "AccountCard.Role",
|
|
4611
|
-
className: b(
|
|
4611
|
+
className: b(lu.role, e.className)
|
|
4612
4612
|
});
|
|
4613
4613
|
}
|
|
4614
|
-
|
|
4615
|
-
function
|
|
4614
|
+
vu.displayName = "AccountCard.Role";
|
|
4615
|
+
function yu(e) {
|
|
4616
4616
|
return /* @__PURE__ */ x("div", {
|
|
4617
4617
|
...e,
|
|
4618
4618
|
"data-imf-ui-component": "AccountCard.Action",
|
|
4619
|
-
className: b(
|
|
4619
|
+
className: b(lu.action, e.className)
|
|
4620
4620
|
});
|
|
4621
4621
|
}
|
|
4622
|
-
|
|
4622
|
+
yu.displayName = "AccountCard.Action";
|
|
4623
4623
|
//#endregion
|
|
4624
4624
|
//#region src/components/account-card/account-card.meta.ts
|
|
4625
|
-
var
|
|
4625
|
+
var bu = {
|
|
4626
4626
|
name: "AccountCard",
|
|
4627
|
-
category:
|
|
4627
|
+
category: _.display,
|
|
4628
4628
|
status: "experimental",
|
|
4629
4629
|
description: "The signed-in person's account row: the avatar in a lead column, the name or email, a quiet line under it, and organization and role below, with a trailing action such as Log out. Also called an ID card or user row; for a bare person badge, use Avatar.",
|
|
4630
4630
|
origin: "native",
|
|
4631
4631
|
internalDependencies: ["Avatar"]
|
|
4632
|
-
},
|
|
4632
|
+
}, xu = {
|
|
4633
4633
|
name: "Avatar",
|
|
4634
|
-
category:
|
|
4634
|
+
category: _.display,
|
|
4635
4635
|
status: "experimental",
|
|
4636
4636
|
description: "Round badge that stands for a person, showing their photo, their initials, or a person glyph. Also called a profile picture or user badge; for a signed-in account row with a name, use AccountCard.",
|
|
4637
4637
|
origin: "adapted",
|
|
@@ -4644,7 +4644,7 @@ var yu = {
|
|
|
4644
4644
|
};
|
|
4645
4645
|
//#endregion
|
|
4646
4646
|
//#region src/components/chip/chip.tsx
|
|
4647
|
-
function
|
|
4647
|
+
function Su({ variant: e = "minor", appearance: t = "outline", inline: n = !1, children: r, ...i }) {
|
|
4648
4648
|
return /* @__PURE__ */ x("span", {
|
|
4649
4649
|
...i,
|
|
4650
4650
|
"data-imf-ui-component": "Chip",
|
|
@@ -4662,60 +4662,60 @@ function xu({ variant: e = "minor", appearance: t = "outline", inline: n = !1, c
|
|
|
4662
4662
|
}
|
|
4663
4663
|
//#endregion
|
|
4664
4664
|
//#region src/components/chip/chip.meta.ts
|
|
4665
|
-
var
|
|
4665
|
+
var Cu = {
|
|
4666
4666
|
name: "Chip",
|
|
4667
|
-
category:
|
|
4667
|
+
category: _.display,
|
|
4668
4668
|
status: "stable",
|
|
4669
4669
|
description: "Compact label for tags, status, categories, counts, and metadata. Also called a badge or tag; its color and appearance are independent choices.",
|
|
4670
4670
|
origin: "native"
|
|
4671
|
-
},
|
|
4671
|
+
}, wu = {
|
|
4672
4672
|
iconClosed: "imf-ui-collapsible-module-iconClosed",
|
|
4673
4673
|
iconOpen: "imf-ui-collapsible-module-iconOpen",
|
|
4674
4674
|
panel: "imf-ui-collapsible-module-panel",
|
|
4675
4675
|
root: "imf-ui-collapsible-module-root",
|
|
4676
4676
|
trigger: "imf-ui-collapsible-module-trigger",
|
|
4677
4677
|
variantSolid: "imf-ui-collapsible-module-variantSolid"
|
|
4678
|
-
},
|
|
4679
|
-
Panel: () =>
|
|
4680
|
-
Root: () =>
|
|
4681
|
-
Trigger: () =>
|
|
4682
|
-
}),
|
|
4678
|
+
}, Tu = /* @__PURE__ */ e({
|
|
4679
|
+
Panel: () => ju,
|
|
4680
|
+
Root: () => Du,
|
|
4681
|
+
Trigger: () => ku
|
|
4682
|
+
}), Eu = y(wu.root, { variants: { variant: {
|
|
4683
4683
|
default: null,
|
|
4684
|
-
solid:
|
|
4684
|
+
solid: wu.variantSolid
|
|
4685
4685
|
} } });
|
|
4686
|
-
function
|
|
4686
|
+
function Du({ variant: e = "default", ...t }) {
|
|
4687
4687
|
return /* @__PURE__ */ x(yt.Root, {
|
|
4688
4688
|
...t,
|
|
4689
4689
|
"data-imf-ui-component": "Collapsible.Root",
|
|
4690
|
-
className: (n) =>
|
|
4690
|
+
className: (n) => Eu({
|
|
4691
4691
|
variant: e,
|
|
4692
|
-
className:
|
|
4692
|
+
className: v(t.className, n)
|
|
4693
4693
|
})
|
|
4694
4694
|
});
|
|
4695
4695
|
}
|
|
4696
|
-
|
|
4697
|
-
var
|
|
4698
|
-
function
|
|
4696
|
+
Du.displayName = "Collapsible.Root";
|
|
4697
|
+
var Ou = y(wu.trigger);
|
|
4698
|
+
function ku({ children: e, ...t }) {
|
|
4699
4699
|
return /* @__PURE__ */ S(yt.Trigger, {
|
|
4700
4700
|
...t,
|
|
4701
4701
|
"data-imf-ui-component": "Collapsible.Trigger",
|
|
4702
|
-
className: (e) =>
|
|
4702
|
+
className: (e) => Ou({ className: v(t.className, e) }),
|
|
4703
4703
|
children: [
|
|
4704
4704
|
e,
|
|
4705
4705
|
/* @__PURE__ */ x("span", {
|
|
4706
|
-
className:
|
|
4706
|
+
className: wu.iconClosed,
|
|
4707
4707
|
"aria-hidden": !0,
|
|
4708
|
-
children: /* @__PURE__ */ x(
|
|
4709
|
-
glyph:
|
|
4708
|
+
children: /* @__PURE__ */ x(h, {
|
|
4709
|
+
glyph: se,
|
|
4710
4710
|
size: 16,
|
|
4711
4711
|
strokeWidth: 1.5
|
|
4712
4712
|
})
|
|
4713
4713
|
}),
|
|
4714
4714
|
/* @__PURE__ */ x("span", {
|
|
4715
|
-
className:
|
|
4715
|
+
className: wu.iconOpen,
|
|
4716
4716
|
"aria-hidden": !0,
|
|
4717
|
-
children: /* @__PURE__ */ x(
|
|
4718
|
-
glyph:
|
|
4717
|
+
children: /* @__PURE__ */ x(h, {
|
|
4718
|
+
glyph: m,
|
|
4719
4719
|
size: 16,
|
|
4720
4720
|
strokeWidth: 1.5
|
|
4721
4721
|
})
|
|
@@ -4723,21 +4723,21 @@ function Ou({ children: e, ...t }) {
|
|
|
4723
4723
|
]
|
|
4724
4724
|
});
|
|
4725
4725
|
}
|
|
4726
|
-
|
|
4727
|
-
var
|
|
4728
|
-
function
|
|
4726
|
+
ku.displayName = "Collapsible.Trigger";
|
|
4727
|
+
var Au = y(wu.panel);
|
|
4728
|
+
function ju(e) {
|
|
4729
4729
|
return /* @__PURE__ */ x(yt.Panel, {
|
|
4730
4730
|
...e,
|
|
4731
4731
|
"data-imf-ui-component": "Collapsible.Panel",
|
|
4732
|
-
className: (t) =>
|
|
4732
|
+
className: (t) => Au({ className: v(e.className, t) })
|
|
4733
4733
|
});
|
|
4734
4734
|
}
|
|
4735
|
-
|
|
4735
|
+
ju.displayName = "Collapsible.Panel";
|
|
4736
4736
|
//#endregion
|
|
4737
4737
|
//#region src/components/collapsible/collapsible.meta.ts
|
|
4738
|
-
var
|
|
4738
|
+
var Mu = {
|
|
4739
4739
|
name: "Collapsible",
|
|
4740
|
-
category:
|
|
4740
|
+
category: _.display,
|
|
4741
4741
|
status: "stable",
|
|
4742
4742
|
description: "Show-and-hide region for secondary content such as FAQs, settings, or details. Also called a disclosure or expand/collapse.",
|
|
4743
4743
|
origin: "adapted",
|
|
@@ -4747,7 +4747,7 @@ var ju = {
|
|
|
4747
4747
|
docLink: "https://base-ui.com/react/components/collapsible",
|
|
4748
4748
|
llmDocLink: "https://base-ui.com/react/components/collapsible.md"
|
|
4749
4749
|
}
|
|
4750
|
-
},
|
|
4750
|
+
}, Y = {
|
|
4751
4751
|
borderSingle: "imf-ui-image-module-borderSingle",
|
|
4752
4752
|
fitContain: "imf-ui-image-module-fitContain",
|
|
4753
4753
|
fitCover: "imf-ui-image-module-fitCover",
|
|
@@ -4761,21 +4761,21 @@ var ju = {
|
|
|
4761
4761
|
radiusRound: "imf-ui-image-module-radiusRound",
|
|
4762
4762
|
radiusSm: "imf-ui-image-module-radiusSm",
|
|
4763
4763
|
root: "imf-ui-image-module-root"
|
|
4764
|
-
}, Nu = y(
|
|
4764
|
+
}, Nu = y(Y.root, { variants: {
|
|
4765
4765
|
radius: {
|
|
4766
4766
|
none: null,
|
|
4767
|
-
sm:
|
|
4768
|
-
md:
|
|
4769
|
-
lg:
|
|
4770
|
-
round:
|
|
4767
|
+
sm: Y.radiusSm,
|
|
4768
|
+
md: Y.radiusMd,
|
|
4769
|
+
lg: Y.radiusLg,
|
|
4770
|
+
round: Y.radiusRound
|
|
4771
4771
|
},
|
|
4772
4772
|
fit: {
|
|
4773
|
-
cover:
|
|
4774
|
-
contain:
|
|
4773
|
+
cover: Y.fitCover,
|
|
4774
|
+
contain: Y.fitContain
|
|
4775
4775
|
},
|
|
4776
4776
|
border: {
|
|
4777
4777
|
none: null,
|
|
4778
|
-
single:
|
|
4778
|
+
single: Y.borderSingle
|
|
4779
4779
|
}
|
|
4780
4780
|
} });
|
|
4781
4781
|
function Pu({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priority: o = !1, loading: s = "lazy", decoding: c = "async", radius: l = "none", fit: ee = "cover", border: u = "none", borderWidth: d = 1, aspectRatio: f, className: te, style: ne, ref: re, ...ie }) {
|
|
@@ -4784,16 +4784,16 @@ function Pu({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4784
4784
|
ie.srcSet,
|
|
4785
4785
|
i,
|
|
4786
4786
|
a
|
|
4787
|
-
].join("|"), [ae,
|
|
4787
|
+
].join("|"), [ae, m] = w({
|
|
4788
4788
|
key: p,
|
|
4789
4789
|
status: "loading"
|
|
4790
4790
|
});
|
|
4791
|
-
ae.key !== p &&
|
|
4791
|
+
ae.key !== p && m({
|
|
4792
4792
|
key: p,
|
|
4793
4793
|
status: "loading"
|
|
4794
4794
|
});
|
|
4795
|
-
let { status:
|
|
4796
|
-
if (
|
|
4795
|
+
let { status: oe } = ae, se = ot(null), ce = tt((e) => {
|
|
4796
|
+
if (se.current = e, typeof re == "function") {
|
|
4797
4797
|
let t = re(e);
|
|
4798
4798
|
return () => {
|
|
4799
4799
|
typeof t == "function" ? t() : re(null);
|
|
@@ -4804,27 +4804,27 @@ function Pu({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4804
4804
|
};
|
|
4805
4805
|
}, [re]);
|
|
4806
4806
|
it(() => {
|
|
4807
|
-
let e =
|
|
4808
|
-
e?.complete &&
|
|
4807
|
+
let e = se.current;
|
|
4808
|
+
e?.complete && m({
|
|
4809
4809
|
key: p,
|
|
4810
4810
|
status: e.naturalWidth > 0 ? "loaded" : "error"
|
|
4811
4811
|
});
|
|
4812
4812
|
}, [p]);
|
|
4813
|
-
let
|
|
4814
|
-
|
|
4813
|
+
let le = () => {
|
|
4814
|
+
m({
|
|
4815
4815
|
key: p,
|
|
4816
4816
|
status: "loaded"
|
|
4817
4817
|
});
|
|
4818
|
-
},
|
|
4819
|
-
|
|
4818
|
+
}, g = () => {
|
|
4819
|
+
m({
|
|
4820
4820
|
key: p,
|
|
4821
4821
|
status: "error"
|
|
4822
4822
|
});
|
|
4823
4823
|
};
|
|
4824
4824
|
return /* @__PURE__ */ S("span", {
|
|
4825
4825
|
"data-imf-ui-component": "Image",
|
|
4826
|
-
"data-loading":
|
|
4827
|
-
"data-error":
|
|
4826
|
+
"data-loading": oe === "loading" ? "" : void 0,
|
|
4827
|
+
"data-error": oe === "error" ? "" : void 0,
|
|
4828
4828
|
className: Nu({
|
|
4829
4829
|
radius: l,
|
|
4830
4830
|
fit: ee,
|
|
@@ -4838,20 +4838,20 @@ function Pu({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4838
4838
|
...ne
|
|
4839
4839
|
},
|
|
4840
4840
|
children: [
|
|
4841
|
-
|
|
4842
|
-
className:
|
|
4841
|
+
oe === "loading" && /* @__PURE__ */ x("span", {
|
|
4842
|
+
className: Y.pulse,
|
|
4843
4843
|
"aria-hidden": !0
|
|
4844
4844
|
}),
|
|
4845
|
-
|
|
4846
|
-
className:
|
|
4847
|
-
children: /* @__PURE__ */ x(
|
|
4845
|
+
oe === "error" && /* @__PURE__ */ x("span", {
|
|
4846
|
+
className: Y.layer,
|
|
4847
|
+
children: /* @__PURE__ */ x(h, {
|
|
4848
4848
|
glyph: r,
|
|
4849
|
-
className:
|
|
4849
|
+
className: Y.glyph,
|
|
4850
4850
|
"aria-hidden": !0
|
|
4851
4851
|
})
|
|
4852
4852
|
}),
|
|
4853
4853
|
/* @__PURE__ */ S("picture", {
|
|
4854
|
-
className:
|
|
4854
|
+
className: Y.picture,
|
|
4855
4855
|
children: [
|
|
4856
4856
|
i && /* @__PURE__ */ x("source", {
|
|
4857
4857
|
type: "image/avif",
|
|
@@ -4865,17 +4865,17 @@ function Pu({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4865
4865
|
}),
|
|
4866
4866
|
/* @__PURE__ */ x("img", {
|
|
4867
4867
|
...O(ie, {
|
|
4868
|
-
onLoad:
|
|
4869
|
-
onError:
|
|
4868
|
+
onLoad: le,
|
|
4869
|
+
onError: g
|
|
4870
4870
|
}),
|
|
4871
|
-
ref:
|
|
4871
|
+
ref: ce,
|
|
4872
4872
|
alt: e,
|
|
4873
4873
|
width: t,
|
|
4874
4874
|
height: n,
|
|
4875
4875
|
loading: o ? "eager" : s,
|
|
4876
4876
|
decoding: c,
|
|
4877
4877
|
fetchPriority: o ? "high" : ie.fetchPriority,
|
|
4878
|
-
className:
|
|
4878
|
+
className: Y.image
|
|
4879
4879
|
})
|
|
4880
4880
|
]
|
|
4881
4881
|
})
|
|
@@ -4887,7 +4887,7 @@ Pu.displayName = "Image";
|
|
|
4887
4887
|
//#region src/components/image/image.meta.ts
|
|
4888
4888
|
var Fu = {
|
|
4889
4889
|
name: "Image",
|
|
4890
|
-
category:
|
|
4890
|
+
category: _.display,
|
|
4891
4891
|
status: "experimental",
|
|
4892
4892
|
description: "Picture with AVIF and WebP sources, reserved space, lazy loading, and a fallback while it loads or when it fails. Also called a photo, thumbnail or media. Use Avatar for a person and Card.Image for a card's edge-to-edge slot.",
|
|
4893
4893
|
origin: "native",
|
|
@@ -4909,7 +4909,7 @@ function Uu({ min: e = 0, max: t = 100, ...n }) {
|
|
|
4909
4909
|
return /* @__PURE__ */ x(bt.Root, {
|
|
4910
4910
|
...n,
|
|
4911
4911
|
"data-imf-ui-component": "Meter.Root",
|
|
4912
|
-
className: (e) => Ru({ className:
|
|
4912
|
+
className: (e) => Ru({ className: v(n.className, e) }),
|
|
4913
4913
|
min: e,
|
|
4914
4914
|
max: t
|
|
4915
4915
|
});
|
|
@@ -4919,7 +4919,7 @@ function Wu(e) {
|
|
|
4919
4919
|
return /* @__PURE__ */ x(bt.Label, {
|
|
4920
4920
|
...e,
|
|
4921
4921
|
"data-imf-ui-component": "Meter.Label",
|
|
4922
|
-
className: (t) => zu({ className:
|
|
4922
|
+
className: (t) => zu({ className: v(e.className, t) })
|
|
4923
4923
|
});
|
|
4924
4924
|
}
|
|
4925
4925
|
Wu.displayName = "Meter.Label";
|
|
@@ -4927,7 +4927,7 @@ function Gu(e) {
|
|
|
4927
4927
|
return /* @__PURE__ */ x(bt.Value, {
|
|
4928
4928
|
...e,
|
|
4929
4929
|
"data-imf-ui-component": "Meter.Value",
|
|
4930
|
-
className: (t) => Bu({ className:
|
|
4930
|
+
className: (t) => Bu({ className: v(e.className, t) })
|
|
4931
4931
|
});
|
|
4932
4932
|
}
|
|
4933
4933
|
Gu.displayName = "Meter.Value";
|
|
@@ -4935,7 +4935,7 @@ function Ku(e) {
|
|
|
4935
4935
|
return /* @__PURE__ */ x(bt.Track, {
|
|
4936
4936
|
...e,
|
|
4937
4937
|
"data-imf-ui-component": "Meter.Track",
|
|
4938
|
-
className: (t) => Vu({ className:
|
|
4938
|
+
className: (t) => Vu({ className: v(e.className, t) })
|
|
4939
4939
|
});
|
|
4940
4940
|
}
|
|
4941
4941
|
Ku.displayName = "Meter.Track";
|
|
@@ -4943,7 +4943,7 @@ function qu(e) {
|
|
|
4943
4943
|
return /* @__PURE__ */ x(bt.Indicator, {
|
|
4944
4944
|
...e,
|
|
4945
4945
|
"data-imf-ui-component": "Meter.Indicator",
|
|
4946
|
-
className: (t) => Hu({ className:
|
|
4946
|
+
className: (t) => Hu({ className: v(e.className, t) })
|
|
4947
4947
|
});
|
|
4948
4948
|
}
|
|
4949
4949
|
qu.displayName = "Meter.Indicator";
|
|
@@ -4951,7 +4951,7 @@ qu.displayName = "Meter.Indicator";
|
|
|
4951
4951
|
//#region src/components/meter/meter.meta.ts
|
|
4952
4952
|
var Ju = {
|
|
4953
4953
|
name: "Meter",
|
|
4954
|
-
category:
|
|
4954
|
+
category: _.display,
|
|
4955
4955
|
status: "experimental",
|
|
4956
4956
|
description: "Read-only bar for a measured amount within a known range, such as seats in use or storage used. Also called a gauge or usage bar. Use Slider when the user sets the value.",
|
|
4957
4957
|
origin: "adapted",
|
|
@@ -5019,7 +5019,7 @@ function dd(e) {
|
|
|
5019
5019
|
return /* @__PURE__ */ x(j.Trigger, {
|
|
5020
5020
|
...e,
|
|
5021
5021
|
"data-imf-ui-component": "Menu.Trigger",
|
|
5022
|
-
className: (t) => e.render ?
|
|
5022
|
+
className: (t) => e.render ? v(e.className, t) : Xu({ className: v(e.className, t) })
|
|
5023
5023
|
});
|
|
5024
5024
|
}
|
|
5025
5025
|
dd.displayName = "Menu.Trigger";
|
|
@@ -5031,7 +5031,7 @@ function pd(e) {
|
|
|
5031
5031
|
return /* @__PURE__ */ x(j.Backdrop, {
|
|
5032
5032
|
...e,
|
|
5033
5033
|
"data-imf-ui-component": "Menu.Backdrop",
|
|
5034
|
-
className: (t) => Zu({ className:
|
|
5034
|
+
className: (t) => Zu({ className: v(e.className, t) })
|
|
5035
5035
|
});
|
|
5036
5036
|
}
|
|
5037
5037
|
pd.displayName = "Menu.Backdrop";
|
|
@@ -5041,7 +5041,7 @@ function md({ sideOffset: e = 4, alignOffset: t = 0, ...n }) {
|
|
|
5041
5041
|
sideOffset: e,
|
|
5042
5042
|
alignOffset: t,
|
|
5043
5043
|
"data-imf-ui-component": "Menu.Positioner",
|
|
5044
|
-
className: (e) => Qu({ className:
|
|
5044
|
+
className: (e) => Qu({ className: v(n.className, e) })
|
|
5045
5045
|
});
|
|
5046
5046
|
}
|
|
5047
5047
|
md.displayName = "Menu.Positioner";
|
|
@@ -5051,7 +5051,7 @@ function hd({ size: e = "sm", ...t }) {
|
|
|
5051
5051
|
"data-imf-ui-component": "Menu.Popup",
|
|
5052
5052
|
className: (n) => $u({
|
|
5053
5053
|
size: e,
|
|
5054
|
-
className:
|
|
5054
|
+
className: v(t.className, n)
|
|
5055
5055
|
})
|
|
5056
5056
|
});
|
|
5057
5057
|
}
|
|
@@ -5060,7 +5060,7 @@ function gd(e) {
|
|
|
5060
5060
|
return /* @__PURE__ */ x(j.Arrow, {
|
|
5061
5061
|
...e,
|
|
5062
5062
|
"data-imf-ui-component": "Menu.Arrow",
|
|
5063
|
-
className: (t) => ed({ className:
|
|
5063
|
+
className: (t) => ed({ className: v(e.className, t) })
|
|
5064
5064
|
});
|
|
5065
5065
|
}
|
|
5066
5066
|
gd.displayName = "Menu.Arrow";
|
|
@@ -5068,7 +5068,7 @@ function _d(e) {
|
|
|
5068
5068
|
return /* @__PURE__ */ x(j.Viewport, {
|
|
5069
5069
|
...e,
|
|
5070
5070
|
"data-imf-ui-component": "Menu.Viewport",
|
|
5071
|
-
className: (t) => td({ className:
|
|
5071
|
+
className: (t) => td({ className: v(e.className, t) })
|
|
5072
5072
|
});
|
|
5073
5073
|
}
|
|
5074
5074
|
_d.displayName = "Menu.Viewport";
|
|
@@ -5126,7 +5126,7 @@ function xd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5126
5126
|
...a,
|
|
5127
5127
|
label: vd(r, i),
|
|
5128
5128
|
"data-imf-ui-component": "Menu.Item",
|
|
5129
|
-
className: (e) => nd({ className:
|
|
5129
|
+
className: (e) => nd({ className: v(a.className, e) }),
|
|
5130
5130
|
children: /* @__PURE__ */ x(bd, {
|
|
5131
5131
|
icon: e,
|
|
5132
5132
|
description: t,
|
|
@@ -5147,7 +5147,7 @@ function Sd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5147
5147
|
...a,
|
|
5148
5148
|
label: vd(r, i),
|
|
5149
5149
|
"data-imf-ui-component": "Menu.LinkItem",
|
|
5150
|
-
className: (e) => nd({ className:
|
|
5150
|
+
className: (e) => nd({ className: v(a.className, e) }),
|
|
5151
5151
|
children: /* @__PURE__ */ x(bd, {
|
|
5152
5152
|
icon: e,
|
|
5153
5153
|
description: t,
|
|
@@ -5162,7 +5162,7 @@ function Cd(e) {
|
|
|
5162
5162
|
return /* @__PURE__ */ x(j.CheckboxItemIndicator, {
|
|
5163
5163
|
...e,
|
|
5164
5164
|
"data-imf-ui-component": "Menu.CheckboxItemIndicator",
|
|
5165
|
-
className: (t) => sd({ className:
|
|
5165
|
+
className: (t) => sd({ className: v(e.className, t) })
|
|
5166
5166
|
});
|
|
5167
5167
|
}
|
|
5168
5168
|
Cd.displayName = "Menu.CheckboxItemIndicator";
|
|
@@ -5176,13 +5176,13 @@ function wd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5176
5176
|
...a,
|
|
5177
5177
|
label: vd(r, i),
|
|
5178
5178
|
"data-imf-ui-component": "Menu.CheckboxItem",
|
|
5179
|
-
className: (e) => nd({ className:
|
|
5179
|
+
className: (e) => nd({ className: v(a.className, e) }),
|
|
5180
5180
|
children: /* @__PURE__ */ x(bd, {
|
|
5181
5181
|
icon: e,
|
|
5182
5182
|
description: t,
|
|
5183
5183
|
badge: n,
|
|
5184
5184
|
ids: o,
|
|
5185
|
-
indicator: /* @__PURE__ */ x(Cd, { children: /* @__PURE__ */ x(
|
|
5185
|
+
indicator: /* @__PURE__ */ x(Cd, { children: /* @__PURE__ */ x(h, {
|
|
5186
5186
|
glyph: p,
|
|
5187
5187
|
size: 16,
|
|
5188
5188
|
"aria-hidden": !0
|
|
@@ -5196,7 +5196,7 @@ function Td(e) {
|
|
|
5196
5196
|
return /* @__PURE__ */ x(j.RadioGroup, {
|
|
5197
5197
|
...e,
|
|
5198
5198
|
"data-imf-ui-component": "Menu.RadioGroup",
|
|
5199
|
-
className: (t) => ad({ className:
|
|
5199
|
+
className: (t) => ad({ className: v(e.className, t) })
|
|
5200
5200
|
});
|
|
5201
5201
|
}
|
|
5202
5202
|
Td.displayName = "Menu.RadioGroup";
|
|
@@ -5204,7 +5204,7 @@ function Ed(e) {
|
|
|
5204
5204
|
return /* @__PURE__ */ x(j.RadioItemIndicator, {
|
|
5205
5205
|
...e,
|
|
5206
5206
|
"data-imf-ui-component": "Menu.RadioItemIndicator",
|
|
5207
|
-
className: (t) => sd({ className:
|
|
5207
|
+
className: (t) => sd({ className: v(e.className, t) })
|
|
5208
5208
|
});
|
|
5209
5209
|
}
|
|
5210
5210
|
Ed.displayName = "Menu.RadioItemIndicator";
|
|
@@ -5218,13 +5218,13 @@ function Dd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5218
5218
|
...a,
|
|
5219
5219
|
label: vd(r, i),
|
|
5220
5220
|
"data-imf-ui-component": "Menu.RadioItem",
|
|
5221
|
-
className: (e) => nd({ className:
|
|
5221
|
+
className: (e) => nd({ className: v(a.className, e) }),
|
|
5222
5222
|
children: /* @__PURE__ */ x(bd, {
|
|
5223
5223
|
icon: e,
|
|
5224
5224
|
description: t,
|
|
5225
5225
|
badge: n,
|
|
5226
5226
|
ids: o,
|
|
5227
|
-
indicator: /* @__PURE__ */ x(Ed, { children: /* @__PURE__ */ x(
|
|
5227
|
+
indicator: /* @__PURE__ */ x(Ed, { children: /* @__PURE__ */ x(h, {
|
|
5228
5228
|
glyph: p,
|
|
5229
5229
|
size: 16,
|
|
5230
5230
|
"aria-hidden": !0
|
|
@@ -5248,13 +5248,13 @@ function kd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5248
5248
|
...a,
|
|
5249
5249
|
label: vd(r, i),
|
|
5250
5250
|
"data-imf-ui-component": "Menu.SubmenuTrigger",
|
|
5251
|
-
className: (e) => nd({ className:
|
|
5251
|
+
className: (e) => nd({ className: v(a.className, e) }),
|
|
5252
5252
|
children: /* @__PURE__ */ x(bd, {
|
|
5253
5253
|
icon: e,
|
|
5254
5254
|
description: t,
|
|
5255
5255
|
badge: n,
|
|
5256
5256
|
ids: o,
|
|
5257
|
-
indicator: /* @__PURE__ */ x(
|
|
5257
|
+
indicator: /* @__PURE__ */ x(h, {
|
|
5258
5258
|
glyph: u,
|
|
5259
5259
|
size: 16,
|
|
5260
5260
|
"aria-hidden": !0
|
|
@@ -5268,7 +5268,7 @@ function Ad(e) {
|
|
|
5268
5268
|
return /* @__PURE__ */ x(j.Separator, {
|
|
5269
5269
|
...e,
|
|
5270
5270
|
"data-imf-ui-component": "Menu.Separator",
|
|
5271
|
-
className: (t) => rd({ className:
|
|
5271
|
+
className: (t) => rd({ className: v(e.className, t) })
|
|
5272
5272
|
});
|
|
5273
5273
|
}
|
|
5274
5274
|
Ad.displayName = "Menu.Separator";
|
|
@@ -5276,7 +5276,7 @@ function jd(e) {
|
|
|
5276
5276
|
return /* @__PURE__ */ x(j.Group, {
|
|
5277
5277
|
...e,
|
|
5278
5278
|
"data-imf-ui-component": "Menu.Group",
|
|
5279
|
-
className: (t) => id({ className:
|
|
5279
|
+
className: (t) => id({ className: v(e.className, t) })
|
|
5280
5280
|
});
|
|
5281
5281
|
}
|
|
5282
5282
|
jd.displayName = "Menu.Group";
|
|
@@ -5284,7 +5284,7 @@ function Md(e) {
|
|
|
5284
5284
|
return /* @__PURE__ */ x(j.GroupLabel, {
|
|
5285
5285
|
...e,
|
|
5286
5286
|
"data-imf-ui-component": "Menu.GroupLabel",
|
|
5287
|
-
className: (t) => od({ className:
|
|
5287
|
+
className: (t) => od({ className: v(e.className, t) })
|
|
5288
5288
|
});
|
|
5289
5289
|
}
|
|
5290
5290
|
Md.displayName = "Menu.GroupLabel";
|
|
@@ -5292,7 +5292,7 @@ Md.displayName = "Menu.GroupLabel";
|
|
|
5292
5292
|
//#region src/components/menu/menu.meta.ts
|
|
5293
5293
|
var Nd = {
|
|
5294
5294
|
name: "Menu",
|
|
5295
|
-
category:
|
|
5295
|
+
category: _.display,
|
|
5296
5296
|
status: "experimental",
|
|
5297
5297
|
description: "Action menu opened from a trigger: items with icon, description and badge, checkbox and radio items, groups, submenus. Also dropdown or actions menu. Not for navigation (NavigationMenu) or picking a value (Select).",
|
|
5298
5298
|
origin: "adapted",
|
|
@@ -5317,7 +5317,7 @@ function Vd({ orientation: e = "horizontal", className: t, ...n }) {
|
|
|
5317
5317
|
orientation: e,
|
|
5318
5318
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
5319
5319
|
"data-orientation": e,
|
|
5320
|
-
className: (e) => Id({ className:
|
|
5320
|
+
className: (e) => Id({ className: v(t, e) })
|
|
5321
5321
|
});
|
|
5322
5322
|
}
|
|
5323
5323
|
Vd.displayName = "NavigationMenu.Root";
|
|
@@ -5325,7 +5325,7 @@ function Hd(e) {
|
|
|
5325
5325
|
return /* @__PURE__ */ x(M.List, {
|
|
5326
5326
|
...e,
|
|
5327
5327
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
5328
|
-
className: (t) => Ld({ className:
|
|
5328
|
+
className: (t) => Ld({ className: v(e.className, t) })
|
|
5329
5329
|
});
|
|
5330
5330
|
}
|
|
5331
5331
|
Hd.displayName = "NavigationMenu.List";
|
|
@@ -5333,7 +5333,7 @@ function Ud(e) {
|
|
|
5333
5333
|
return /* @__PURE__ */ x(M.Item, {
|
|
5334
5334
|
...e,
|
|
5335
5335
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
5336
|
-
className: (t) => Rd({ className:
|
|
5336
|
+
className: (t) => Rd({ className: v(e.className, t) })
|
|
5337
5337
|
});
|
|
5338
5338
|
}
|
|
5339
5339
|
Ud.displayName = "NavigationMenu.Item";
|
|
@@ -5341,7 +5341,7 @@ function Wd(e) {
|
|
|
5341
5341
|
return /* @__PURE__ */ x(M.Content, {
|
|
5342
5342
|
...e,
|
|
5343
5343
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
5344
|
-
className: (t) => zd({ className:
|
|
5344
|
+
className: (t) => zd({ className: v(e.className, t) })
|
|
5345
5345
|
});
|
|
5346
5346
|
}
|
|
5347
5347
|
Wd.displayName = "NavigationMenu.Content";
|
|
@@ -5349,7 +5349,7 @@ function Gd(e) {
|
|
|
5349
5349
|
return /* @__PURE__ */ x(M.Viewport, {
|
|
5350
5350
|
...e,
|
|
5351
5351
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
5352
|
-
className: (t) => Bd({ className:
|
|
5352
|
+
className: (t) => Bd({ className: v(e.className, t) })
|
|
5353
5353
|
});
|
|
5354
5354
|
}
|
|
5355
5355
|
Gd.displayName = "NavigationMenu.Viewport";
|
|
@@ -5363,9 +5363,9 @@ function Yd({ active: e = !1, hideChevron: t = !1, nested: n = !1, children: r,
|
|
|
5363
5363
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
5364
5364
|
"data-active": e ? "" : void 0,
|
|
5365
5365
|
"data-nested": n ? "" : void 0,
|
|
5366
|
-
className: (e) => qd({ className:
|
|
5367
|
-
children: [r, !t && /* @__PURE__ */ x(Xd, { children: /* @__PURE__ */ x(
|
|
5368
|
-
glyph:
|
|
5366
|
+
className: (e) => qd({ className: v(i.className, e) }),
|
|
5367
|
+
children: [r, !t && /* @__PURE__ */ x(Xd, { children: /* @__PURE__ */ x(h, {
|
|
5368
|
+
glyph: se,
|
|
5369
5369
|
size: 14
|
|
5370
5370
|
}) })]
|
|
5371
5371
|
});
|
|
@@ -5375,7 +5375,7 @@ function Xd(e) {
|
|
|
5375
5375
|
return /* @__PURE__ */ x(M.Icon, {
|
|
5376
5376
|
...e,
|
|
5377
5377
|
"data-imf-ui-component": "NavigationMenu.Icon",
|
|
5378
|
-
className: (t) => Jd({ className:
|
|
5378
|
+
className: (t) => Jd({ className: v(e.className, t) })
|
|
5379
5379
|
});
|
|
5380
5380
|
}
|
|
5381
5381
|
Xd.displayName = "NavigationMenu.Icon";
|
|
@@ -5394,7 +5394,7 @@ function rf({ align: e = "start", ...t }) {
|
|
|
5394
5394
|
...t,
|
|
5395
5395
|
align: e,
|
|
5396
5396
|
"data-imf-ui-component": "NavigationMenu.Positioner",
|
|
5397
|
-
className: (e) => Qd({ className:
|
|
5397
|
+
className: (e) => Qd({ className: v(t.className, e) })
|
|
5398
5398
|
});
|
|
5399
5399
|
}
|
|
5400
5400
|
rf.displayName = "NavigationMenu.Positioner";
|
|
@@ -5402,7 +5402,7 @@ function af(e) {
|
|
|
5402
5402
|
return /* @__PURE__ */ x(M.Popup, {
|
|
5403
5403
|
...e,
|
|
5404
5404
|
"data-imf-ui-component": "NavigationMenu.Popup",
|
|
5405
|
-
className: (t) => $d({ className:
|
|
5405
|
+
className: (t) => $d({ className: v(e.className, t) })
|
|
5406
5406
|
});
|
|
5407
5407
|
}
|
|
5408
5408
|
af.displayName = "NavigationMenu.Popup";
|
|
@@ -5410,7 +5410,7 @@ function of(e) {
|
|
|
5410
5410
|
return /* @__PURE__ */ x(M.Arrow, {
|
|
5411
5411
|
...e,
|
|
5412
5412
|
"data-imf-ui-component": "NavigationMenu.Arrow",
|
|
5413
|
-
className: (t) => ef({ className:
|
|
5413
|
+
className: (t) => ef({ className: v(e.className, t) })
|
|
5414
5414
|
});
|
|
5415
5415
|
}
|
|
5416
5416
|
of.displayName = "NavigationMenu.Arrow";
|
|
@@ -5418,7 +5418,7 @@ function sf(e) {
|
|
|
5418
5418
|
return /* @__PURE__ */ x(M.Backdrop, {
|
|
5419
5419
|
...e,
|
|
5420
5420
|
"data-imf-ui-component": "NavigationMenu.Backdrop",
|
|
5421
|
-
className: (t) => tf({ className:
|
|
5421
|
+
className: (t) => tf({ className: v(e.className, t) })
|
|
5422
5422
|
});
|
|
5423
5423
|
}
|
|
5424
5424
|
sf.displayName = "NavigationMenu.Backdrop";
|
|
@@ -5433,7 +5433,7 @@ function ff(e) {
|
|
|
5433
5433
|
return /* @__PURE__ */ x(M.Link, {
|
|
5434
5434
|
...e,
|
|
5435
5435
|
"data-imf-ui-component": "NavigationMenu.Link",
|
|
5436
|
-
className: (t) => lf({ className:
|
|
5436
|
+
className: (t) => lf({ className: v(e.className, t) })
|
|
5437
5437
|
});
|
|
5438
5438
|
}
|
|
5439
5439
|
ff.displayName = "NavigationMenu.Link";
|
|
@@ -5449,7 +5449,7 @@ function mf({ title: e, description: t, image: n, imageAlt: r = "", ...i }) {
|
|
|
5449
5449
|
return /* @__PURE__ */ x(M.Link, {
|
|
5450
5450
|
...i,
|
|
5451
5451
|
"data-imf-ui-component": "NavigationMenu.LinkCard",
|
|
5452
|
-
className: (e) => df({ className:
|
|
5452
|
+
className: (e) => df({ className: v(i.className, e) }),
|
|
5453
5453
|
children: /* @__PURE__ */ S(Oi, {
|
|
5454
5454
|
variant: "main",
|
|
5455
5455
|
density: "compact",
|
|
@@ -5481,11 +5481,11 @@ function _f({ children: e, render: t, ...n }) {
|
|
|
5481
5481
|
...n,
|
|
5482
5482
|
render: t,
|
|
5483
5483
|
"data-imf-ui-component": "NavigationMenu.FlyoutLink",
|
|
5484
|
-
className: (e) => gf({ className:
|
|
5484
|
+
className: (e) => gf({ className: v(n.className, e) }),
|
|
5485
5485
|
children: t ? e : /* @__PURE__ */ S(Ye, { children: [e, /* @__PURE__ */ x("span", {
|
|
5486
5486
|
className: hf.linkArrow,
|
|
5487
5487
|
"aria-hidden": !0,
|
|
5488
|
-
children: /* @__PURE__ */ x(
|
|
5488
|
+
children: /* @__PURE__ */ x(h, {
|
|
5489
5489
|
glyph: c,
|
|
5490
5490
|
size: 14
|
|
5491
5491
|
})
|
|
@@ -5509,7 +5509,7 @@ var vf = {
|
|
|
5509
5509
|
//#endregion
|
|
5510
5510
|
//#region src/components/navigation-menu/subs/inline-submenu.tsx
|
|
5511
5511
|
function yf({ items: e, defaultValue: t }) {
|
|
5512
|
-
let n =
|
|
5512
|
+
let n = lc(_s("md"), !0);
|
|
5513
5513
|
return /* @__PURE__ */ x(M.Root, {
|
|
5514
5514
|
orientation: n ? "vertical" : "horizontal",
|
|
5515
5515
|
defaultValue: t,
|
|
@@ -5583,7 +5583,7 @@ var bf = /* @__PURE__ */ e({
|
|
|
5583
5583
|
Viewport: () => Gd
|
|
5584
5584
|
}), xf = {
|
|
5585
5585
|
name: "NavigationMenu",
|
|
5586
|
-
category:
|
|
5586
|
+
category: _.display,
|
|
5587
5587
|
status: "experimental",
|
|
5588
5588
|
namespace: !0,
|
|
5589
5589
|
description: "Navigation menu with horizontal or vertical triggers and anchored flyout panels. Also called a menu bar or mega menu; it supports links, rich cards, and nested navigation.",
|
|
@@ -5707,7 +5707,7 @@ kf.displayName = "Skeleton.Suspense";
|
|
|
5707
5707
|
//#region src/components/skeleton/skeleton.meta.ts
|
|
5708
5708
|
var Af = {
|
|
5709
5709
|
name: "Skeleton",
|
|
5710
|
-
category:
|
|
5710
|
+
category: _.display,
|
|
5711
5711
|
status: "experimental",
|
|
5712
5712
|
description: "Loading placeholder that stands in for data at the size it will take, so nothing shifts when it lands. Also called a skeleton loader or ghost. Use Spinner when the layout is unknown.",
|
|
5713
5713
|
origin: "native"
|
|
@@ -5748,7 +5748,7 @@ function Lf({ size: e = "md", variant: t = "blue", label: n = "Loading", ...r })
|
|
|
5748
5748
|
//#region src/components/spinner/spinner.meta.ts
|
|
5749
5749
|
var Rf = {
|
|
5750
5750
|
name: "Spinner",
|
|
5751
|
-
category:
|
|
5751
|
+
category: _.display,
|
|
5752
5752
|
status: "stable",
|
|
5753
5753
|
description: "Indeterminate loading indicator. Also called a loader or progress spinner.",
|
|
5754
5754
|
origin: "native"
|
|
@@ -5909,7 +5909,7 @@ function lp({ sorted: e }) {
|
|
|
5909
5909
|
className: Zf(),
|
|
5910
5910
|
"data-sorted": e || void 0,
|
|
5911
5911
|
"aria-hidden": !0,
|
|
5912
|
-
children: /* @__PURE__ */ x(
|
|
5912
|
+
children: /* @__PURE__ */ x(h, {
|
|
5913
5913
|
glyph: t,
|
|
5914
5914
|
size: 14,
|
|
5915
5915
|
strokeWidth: 1.5
|
|
@@ -5995,7 +5995,7 @@ pp.displayName = "Table.EmptyRow";
|
|
|
5995
5995
|
//#region src/components/table/table.meta.ts
|
|
5996
5996
|
var mp = {
|
|
5997
5997
|
name: "Table",
|
|
5998
|
-
category:
|
|
5998
|
+
category: _.display,
|
|
5999
5999
|
status: "stable",
|
|
6000
6000
|
description: "Presentational table parts for static tabular data. Pair them with a headless table library for sorting or pagination.",
|
|
6001
6001
|
origin: "native",
|
|
@@ -6029,14 +6029,14 @@ yp.displayName = "TabNav.Item";
|
|
|
6029
6029
|
//#region src/components/tab-nav/tab-nav.meta.ts
|
|
6030
6030
|
var bp = {
|
|
6031
6031
|
name: "TabNav",
|
|
6032
|
-
category:
|
|
6032
|
+
category: _.display,
|
|
6033
6033
|
status: "experimental",
|
|
6034
6034
|
description: "Row of links to routes with a bar under the current one, such as the sections of a project. Also called route tabs or link tabs; use Tabs to switch panels on one page.",
|
|
6035
6035
|
origin: "native",
|
|
6036
6036
|
internalDependencies: ["Tabs"]
|
|
6037
6037
|
}, xp = {
|
|
6038
6038
|
name: "Tabs",
|
|
6039
|
-
category:
|
|
6039
|
+
category: _.display,
|
|
6040
6040
|
status: "stable",
|
|
6041
6041
|
namespace: !0,
|
|
6042
6042
|
description: "Switches between related panels within one view. Also called a tab strip or tab bar; it supports horizontal and vertical layouts and a boxed or underline look. Use TabNav for links to routes.",
|
|
@@ -6129,7 +6129,7 @@ function Ip(e) {
|
|
|
6129
6129
|
return /* @__PURE__ */ x(N.Portal, {
|
|
6130
6130
|
...e,
|
|
6131
6131
|
"data-imf-ui-component": "Toast.Portal",
|
|
6132
|
-
className: (t) => Cp({ className:
|
|
6132
|
+
className: (t) => Cp({ className: v(e.className, t) })
|
|
6133
6133
|
});
|
|
6134
6134
|
}
|
|
6135
6135
|
Ip.displayName = "Toast.Portal";
|
|
@@ -6140,7 +6140,7 @@ function Lp({ position: e = "bottom-center", width: t = "default", ...n }) {
|
|
|
6140
6140
|
className: (r) => wp({
|
|
6141
6141
|
position: e,
|
|
6142
6142
|
width: t,
|
|
6143
|
-
className:
|
|
6143
|
+
className: v(n.className, r)
|
|
6144
6144
|
})
|
|
6145
6145
|
});
|
|
6146
6146
|
}
|
|
@@ -6151,7 +6151,7 @@ function Rp({ variant: e = "neutral", ...t }) {
|
|
|
6151
6151
|
"data-imf-ui-component": "Toast.Root",
|
|
6152
6152
|
className: (n) => Tp({
|
|
6153
6153
|
variant: e,
|
|
6154
|
-
className:
|
|
6154
|
+
className: v(t.className, n)
|
|
6155
6155
|
})
|
|
6156
6156
|
});
|
|
6157
6157
|
}
|
|
@@ -6160,7 +6160,7 @@ function zp(e) {
|
|
|
6160
6160
|
return /* @__PURE__ */ x(N.Content, {
|
|
6161
6161
|
...e,
|
|
6162
6162
|
"data-imf-ui-component": "Toast.Content",
|
|
6163
|
-
className: (t) => Ep({ className:
|
|
6163
|
+
className: (t) => Ep({ className: v(e.className, t) })
|
|
6164
6164
|
});
|
|
6165
6165
|
}
|
|
6166
6166
|
zp.displayName = "Toast.Content";
|
|
@@ -6168,7 +6168,7 @@ function Bp(e) {
|
|
|
6168
6168
|
return /* @__PURE__ */ x(N.Title, {
|
|
6169
6169
|
...e,
|
|
6170
6170
|
"data-imf-ui-component": "Toast.Title",
|
|
6171
|
-
className: (t) => Dp({ className:
|
|
6171
|
+
className: (t) => Dp({ className: v(e.className, t) })
|
|
6172
6172
|
});
|
|
6173
6173
|
}
|
|
6174
6174
|
Bp.displayName = "Toast.Title";
|
|
@@ -6176,7 +6176,7 @@ function Vp(e) {
|
|
|
6176
6176
|
return /* @__PURE__ */ x(N.Description, {
|
|
6177
6177
|
...e,
|
|
6178
6178
|
"data-imf-ui-component": "Toast.Description",
|
|
6179
|
-
className: (t) => Op({ className:
|
|
6179
|
+
className: (t) => Op({ className: v(e.className, t) })
|
|
6180
6180
|
});
|
|
6181
6181
|
}
|
|
6182
6182
|
Vp.displayName = "Toast.Description";
|
|
@@ -6184,7 +6184,7 @@ function Hp(e) {
|
|
|
6184
6184
|
return /* @__PURE__ */ x(N.Close, {
|
|
6185
6185
|
...e,
|
|
6186
6186
|
"data-imf-ui-component": "Toast.Close",
|
|
6187
|
-
className: (t) => kp({ className:
|
|
6187
|
+
className: (t) => kp({ className: v(e.className, t) })
|
|
6188
6188
|
});
|
|
6189
6189
|
}
|
|
6190
6190
|
Hp.displayName = "Toast.Close";
|
|
@@ -6192,7 +6192,7 @@ function Up(e) {
|
|
|
6192
6192
|
return /* @__PURE__ */ x(N.Action, {
|
|
6193
6193
|
...e,
|
|
6194
6194
|
"data-imf-ui-component": "Toast.Action",
|
|
6195
|
-
className: (t) => Ap({ className:
|
|
6195
|
+
className: (t) => Ap({ className: v(e.className, t) })
|
|
6196
6196
|
});
|
|
6197
6197
|
}
|
|
6198
6198
|
Up.displayName = "Toast.Action";
|
|
@@ -6200,7 +6200,7 @@ function Wp(e) {
|
|
|
6200
6200
|
return /* @__PURE__ */ x(N.Positioner, {
|
|
6201
6201
|
...e,
|
|
6202
6202
|
"data-imf-ui-component": "Toast.Positioner",
|
|
6203
|
-
className: (t) => jp({ className:
|
|
6203
|
+
className: (t) => jp({ className: v(e.className, t) })
|
|
6204
6204
|
});
|
|
6205
6205
|
}
|
|
6206
6206
|
Wp.displayName = "Toast.Positioner";
|
|
@@ -6208,7 +6208,7 @@ function Gp(e) {
|
|
|
6208
6208
|
return /* @__PURE__ */ x(N.Arrow, {
|
|
6209
6209
|
...e,
|
|
6210
6210
|
"data-imf-ui-component": "Toast.Arrow",
|
|
6211
|
-
className: (t) => Mp({ className:
|
|
6211
|
+
className: (t) => Mp({ className: v(e.className, t) })
|
|
6212
6212
|
});
|
|
6213
6213
|
}
|
|
6214
6214
|
Gp.displayName = "Toast.Arrow";
|
|
@@ -6216,7 +6216,7 @@ Gp.displayName = "Toast.Arrow";
|
|
|
6216
6216
|
//#region src/components/toast/toast.meta.ts
|
|
6217
6217
|
var Kp = {
|
|
6218
6218
|
name: "Toast",
|
|
6219
|
-
category:
|
|
6219
|
+
category: _.display,
|
|
6220
6220
|
status: "experimental",
|
|
6221
6221
|
description: "Transient message stack that reports the outcome of a background action without interrupting the page. Use for save confirmations, undo offers, and async progress; attach one to an element for contextual feedback like a copy confirmation. Also called a snackbar, notification, or flash message; for a message that stays inline in the page use Callout instead.",
|
|
6222
6222
|
origin: "adapted",
|
|
@@ -6282,7 +6282,7 @@ function nm({ variant: e = "secondary", inline: t = !1, delay: n = 250, ...r })
|
|
|
6282
6282
|
className: (n) => Jp({
|
|
6283
6283
|
variant: e,
|
|
6284
6284
|
inline: t,
|
|
6285
|
-
className:
|
|
6285
|
+
className: v(r.className, n)
|
|
6286
6286
|
})
|
|
6287
6287
|
});
|
|
6288
6288
|
}
|
|
@@ -6296,7 +6296,7 @@ function im({ sideOffset: e = 13, ...t }) {
|
|
|
6296
6296
|
...t,
|
|
6297
6297
|
sideOffset: e,
|
|
6298
6298
|
"data-imf-ui-component": "Tooltip.Positioner",
|
|
6299
|
-
className: (e) => Yp({ className:
|
|
6299
|
+
className: (e) => Yp({ className: v(t.className, e) })
|
|
6300
6300
|
});
|
|
6301
6301
|
}
|
|
6302
6302
|
im.displayName = "Tooltip.Positioner";
|
|
@@ -6306,7 +6306,7 @@ function am({ variant: e, ...t }) {
|
|
|
6306
6306
|
"data-imf-ui-component": "Tooltip.Popup",
|
|
6307
6307
|
className: (n) => Xp({
|
|
6308
6308
|
variant: e,
|
|
6309
|
-
className:
|
|
6309
|
+
className: v(t.className, n)
|
|
6310
6310
|
})
|
|
6311
6311
|
});
|
|
6312
6312
|
}
|
|
@@ -6315,7 +6315,7 @@ function om(e) {
|
|
|
6315
6315
|
return /* @__PURE__ */ x(xt.Arrow, {
|
|
6316
6316
|
...e,
|
|
6317
6317
|
"data-imf-ui-component": "Tooltip.Arrow",
|
|
6318
|
-
className: (t) => Zp({ className:
|
|
6318
|
+
className: (t) => Zp({ className: v(e.className, t) })
|
|
6319
6319
|
});
|
|
6320
6320
|
}
|
|
6321
6321
|
om.displayName = "Tooltip.Arrow";
|
|
@@ -6323,7 +6323,7 @@ function sm(e) {
|
|
|
6323
6323
|
return /* @__PURE__ */ x(xt.Viewport, {
|
|
6324
6324
|
...e,
|
|
6325
6325
|
"data-imf-ui-component": "Tooltip.Viewport",
|
|
6326
|
-
className: (t) => Qp({ className:
|
|
6326
|
+
className: (t) => Qp({ className: v(e.className, t) })
|
|
6327
6327
|
});
|
|
6328
6328
|
}
|
|
6329
6329
|
sm.displayName = "Tooltip.Viewport";
|
|
@@ -6343,7 +6343,7 @@ cm.displayName = "Tooltip.Inline";
|
|
|
6343
6343
|
//#region src/components/tooltip/tooltip.meta.ts
|
|
6344
6344
|
var lm = {
|
|
6345
6345
|
name: "Tooltip",
|
|
6346
|
-
category:
|
|
6346
|
+
category: _.display,
|
|
6347
6347
|
status: "stable",
|
|
6348
6348
|
description: "Hover- or focus-triggered label for brief help about a control or term. Also called a hint; use Popover for a panel with actions.",
|
|
6349
6349
|
origin: "adapted",
|
|
@@ -6397,4 +6397,4 @@ function hm(e) {
|
|
|
6397
6397
|
return fm(mm(e).local.split(/[._-]+/));
|
|
6398
6398
|
}
|
|
6399
6399
|
//#endregion
|
|
6400
|
-
export {
|
|
6400
|
+
export { uu as AccountCard, uc as AppShell, bn as Autocomplete, nu as Avatar, be as Button, _i as Callout, Ei as Card, Jn as Checkbox, Su as Chip, wt as ChipLink, we as Code, Tu as Collapsible, fr as ColorSchemeToggle, mr as Combobox, _ as ComponentCategories, Ot as CopyButton, Wc as Dialog, vs as Drawer, Jr as Field, ui as Fieldset, Va as FileDropZone, h as Icon, xe as IconButton, $s as ImFusionLogo, Pu as Image, lo as Input, ue as Kbd, Js as Logo, Yu as Menu, Lu as Meter, bf as NavigationMenu, fo as NumberField, Cl as Popover, oc as ProductLogo, Li as Progress, Xl as Prose, Mt as RichLink, je as Row, Ne as ScrollArea, Ao as Select, Ge as Separator, Cf as Skeleton, Be as Slider, Lf as Spinner, Ae as Stack, He as Switch, gp as TabNav, zf as Table, We as Tabs, ms as Textarea, Sp as Toast, fe as Toggle, me as ToggleGroup, qp as Tooltip, Xi as Typo, dm as WebUIProvider, bu as accountCardMeta, Uc as appShellMeta, qn as autocompleteMeta, xu as avatarMeta, Se as buttonMeta, Ti as calloutMeta, Fi as cardMeta, Zn as checkboxMeta, Tt as chipLinkMeta, Cu as chipMeta, De as codeMeta, Mu as collapsibleMeta, pr as colorSchemeToggleMeta, Kr as comboboxMeta, $n as config, kt as copyButtonMeta, qe as cva, Je as cx, Sl as dialogMeta, Ks as drawerMeta, ci as fieldMeta, hi as fieldsetMeta, io as fileDropZoneMeta, Ce as iconButtonMeta, te as iconMeta, Fu as imageMeta, hm as initialsFromEmail, pm as initialsFromName, uo as inputMeta, de as kbdMeta, Ys as logoMeta, Nd as menuMeta, Ju as meterMeta, _s as minWidth, xf as navigationMenuMeta, ko as numberFieldMeta, Jl as popoverMeta, Ji as progressMeta, Zl as proseMeta, Nt as richLinkMeta, Ql as rowMeta, $l as scrollAreaMeta, us as selectMeta, eu as separatorMeta, Af as skeletonMeta, ds as sliderMeta, Rf as spinnerMeta, mm as splitEmail, Yi as stackMeta, fs as switchMeta, bp as tabNavMeta, mp as tableMeta, xp as tabsMeta, hs as textareaMeta, Kp as toastMeta, ke as toggleGroupMeta, Oe as toggleMeta, lm as tooltipMeta, ha as typoMeta, Te as useClipboard, lr as useColorScheme, sc as useDisclosure, lc as useMediaQuery, cu as withBreakHints };
|