@imfusion/web-ui 0.6.4-dev.10.gefecdbe5 → 0.6.4-dev.23.gc1cc4132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/button.d.ts +4 -1
- package/dist/components/card/card.d.ts +5 -2
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +15 -15
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/select/select.d.ts +26 -26
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/typo/typo.d.ts +1 -1
- package/dist/index.js +662 -652
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/src/docgen/doc.gen.json +29 -7
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +2 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +5 -4
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import { Toast as E } from "@base-ui/react/toast";
|
|
|
24
24
|
import { Tooltip as D } from "@base-ui/react/tooltip";
|
|
25
25
|
var O = {
|
|
26
26
|
chamfer: "imf-ui-button-module-chamfer",
|
|
27
|
+
contextOncolor: "imf-ui-button-module-contextOncolor",
|
|
27
28
|
endIcon: "imf-ui-button-module-endIcon",
|
|
28
29
|
label: "imf-ui-button-module-label",
|
|
29
30
|
radiusLg: "imf-ui-button-module-radiusLg",
|
|
@@ -67,33 +68,38 @@ var O = {
|
|
|
67
68
|
md: O.radiusMd,
|
|
68
69
|
lg: O.radiusLg,
|
|
69
70
|
round: O.radiusRound
|
|
71
|
+
},
|
|
72
|
+
context: {
|
|
73
|
+
default: null,
|
|
74
|
+
oncolor: O.contextOncolor
|
|
70
75
|
}
|
|
71
76
|
} });
|
|
72
|
-
function Me({ variant: e = "primary", size: t = "md",
|
|
77
|
+
function Me({ variant: e = "primary", size: t = "md", context: n = "default", chamfer: r = t === "hero", radius: i = "none", className: a, startIcon: o, endIcon: s, children: c, ...l }) {
|
|
73
78
|
return /* @__PURE__ */ v(ge, {
|
|
74
|
-
...
|
|
79
|
+
...l,
|
|
75
80
|
"data-imf-ui-component": "Button",
|
|
76
|
-
className: (
|
|
81
|
+
className: (o) => je({
|
|
77
82
|
variant: e,
|
|
78
83
|
size: t,
|
|
79
|
-
chamfer:
|
|
80
|
-
radius:
|
|
81
|
-
|
|
84
|
+
chamfer: r,
|
|
85
|
+
radius: i,
|
|
86
|
+
context: n,
|
|
87
|
+
className: typeof a == "function" ? a(o) : a
|
|
82
88
|
}),
|
|
83
89
|
children: [
|
|
84
|
-
|
|
90
|
+
o != null && /* @__PURE__ */ _("span", {
|
|
85
91
|
className: O.startIcon,
|
|
86
92
|
"aria-hidden": !0,
|
|
87
|
-
children:
|
|
93
|
+
children: o
|
|
88
94
|
}),
|
|
89
95
|
/* @__PURE__ */ _("span", {
|
|
90
96
|
className: O.label,
|
|
91
|
-
children:
|
|
97
|
+
children: c
|
|
92
98
|
}),
|
|
93
|
-
|
|
99
|
+
s != null && /* @__PURE__ */ _("span", {
|
|
94
100
|
className: O.endIcon,
|
|
95
101
|
"aria-hidden": !0,
|
|
96
|
-
children:
|
|
102
|
+
children: s
|
|
97
103
|
})
|
|
98
104
|
]
|
|
99
105
|
});
|
|
@@ -223,31 +229,31 @@ var Ve = {
|
|
|
223
229
|
description: "Copies a value to the clipboard and briefly shows confirmation. Also called a copy-to-clipboard button; commonly used with Code.Block.",
|
|
224
230
|
origin: "native",
|
|
225
231
|
internalDependencies: ["Button"]
|
|
226
|
-
},
|
|
232
|
+
}, A = {
|
|
227
233
|
iconCheck: "imf-ui-checkbox-module-iconCheck",
|
|
228
234
|
iconIndeterminate: "imf-ui-checkbox-module-iconIndeterminate",
|
|
229
235
|
indicator: "imf-ui-checkbox-module-indicator",
|
|
230
236
|
root: "imf-ui-checkbox-module-root"
|
|
231
|
-
},
|
|
232
|
-
Indicator: () =>
|
|
233
|
-
Root: () =>
|
|
234
|
-
}),
|
|
235
|
-
function
|
|
237
|
+
}, He = /* @__PURE__ */ e({
|
|
238
|
+
Indicator: () => Ke,
|
|
239
|
+
Root: () => Ge
|
|
240
|
+
}), Ue = h(A.root), We = h(A.indicator);
|
|
241
|
+
function Ge({ className: e, ...t }) {
|
|
236
242
|
return /* @__PURE__ */ _(Ee.Root, {
|
|
237
243
|
...t,
|
|
238
244
|
"data-imf-ui-component": "Checkbox.Root",
|
|
239
|
-
className: (t) =>
|
|
245
|
+
className: (t) => Ue({ className: typeof e == "function" ? e(t) : e }),
|
|
240
246
|
children: t.children
|
|
241
247
|
});
|
|
242
248
|
}
|
|
243
|
-
|
|
244
|
-
function
|
|
249
|
+
Ge.displayName = "Checkbox.Root";
|
|
250
|
+
function Ke({ className: e, children: t, ...n }) {
|
|
245
251
|
return /* @__PURE__ */ _(Ee.Indicator, {
|
|
246
252
|
...n,
|
|
247
253
|
"data-imf-ui-component": "Checkbox.Indicator",
|
|
248
|
-
className: (t) =>
|
|
254
|
+
className: (t) => We({ className: typeof e == "function" ? e(t) : e }),
|
|
249
255
|
children: t ?? /* @__PURE__ */ v(ye, { children: [/* @__PURE__ */ _("span", {
|
|
250
|
-
className:
|
|
256
|
+
className: A.iconCheck,
|
|
251
257
|
"aria-hidden": !0,
|
|
252
258
|
children: /* @__PURE__ */ _(m, {
|
|
253
259
|
glyph: a,
|
|
@@ -255,7 +261,7 @@ function qe({ className: e, children: t, ...n }) {
|
|
|
255
261
|
strokeWidth: 3
|
|
256
262
|
})
|
|
257
263
|
}), /* @__PURE__ */ _("span", {
|
|
258
|
-
className:
|
|
264
|
+
className: A.iconIndeterminate,
|
|
259
265
|
"aria-hidden": !0,
|
|
260
266
|
children: /* @__PURE__ */ _(m, {
|
|
261
267
|
glyph: te,
|
|
@@ -265,10 +271,10 @@ function qe({ className: e, children: t, ...n }) {
|
|
|
265
271
|
})] })
|
|
266
272
|
});
|
|
267
273
|
}
|
|
268
|
-
|
|
274
|
+
Ke.displayName = "Checkbox.Indicator";
|
|
269
275
|
//#endregion
|
|
270
276
|
//#region src/components/checkbox/checkbox.meta.ts
|
|
271
|
-
var
|
|
277
|
+
var qe = {
|
|
272
278
|
name: "Checkbox",
|
|
273
279
|
category: t.inputs,
|
|
274
280
|
status: "stable",
|
|
@@ -280,77 +286,77 @@ var Je = {
|
|
|
280
286
|
docLink: "https://base-ui.com/react/components/checkbox",
|
|
281
287
|
llmDocLink: "https://base-ui.com/react/components/checkbox.md"
|
|
282
288
|
}
|
|
283
|
-
},
|
|
289
|
+
}, j = {
|
|
284
290
|
control: "imf-ui-field-module-control",
|
|
285
291
|
description: "imf-ui-field-module-description",
|
|
286
292
|
error: "imf-ui-field-module-error",
|
|
287
293
|
item: "imf-ui-field-module-item",
|
|
288
294
|
label: "imf-ui-field-module-label",
|
|
289
295
|
root: "imf-ui-field-module-root"
|
|
290
|
-
},
|
|
291
|
-
Control: () =>
|
|
292
|
-
Description: () =>
|
|
293
|
-
Error: () =>
|
|
294
|
-
Item: () =>
|
|
295
|
-
Label: () =>
|
|
296
|
-
Root: () =>
|
|
297
|
-
Validity: () =>
|
|
298
|
-
}),
|
|
299
|
-
function
|
|
296
|
+
}, Je = /* @__PURE__ */ e({
|
|
297
|
+
Control: () => at,
|
|
298
|
+
Description: () => it,
|
|
299
|
+
Error: () => ot,
|
|
300
|
+
Item: () => nt,
|
|
301
|
+
Label: () => rt,
|
|
302
|
+
Root: () => tt,
|
|
303
|
+
Validity: () => st
|
|
304
|
+
}), Ye = h(j.root), Xe = h(j.item), Ze = h(j.label), Qe = h(j.description), $e = h(j.control), et = h(j.error);
|
|
305
|
+
function tt({ className: e, ...t }) {
|
|
300
306
|
return /* @__PURE__ */ _(y.Root, {
|
|
301
307
|
...t,
|
|
302
308
|
"data-imf-ui-component": "Field.Root",
|
|
303
|
-
className: (t) =>
|
|
309
|
+
className: (t) => Ye({ className: typeof e == "function" ? e(t) : e })
|
|
304
310
|
});
|
|
305
311
|
}
|
|
306
|
-
|
|
307
|
-
function
|
|
312
|
+
tt.displayName = "Field.Root";
|
|
313
|
+
function nt({ className: e, ...t }) {
|
|
308
314
|
return /* @__PURE__ */ _(y.Item, {
|
|
309
315
|
...t,
|
|
310
316
|
"data-imf-ui-component": "Field.Item",
|
|
311
|
-
className: (t) =>
|
|
317
|
+
className: (t) => Xe({ className: typeof e == "function" ? e(t) : e })
|
|
312
318
|
});
|
|
313
319
|
}
|
|
314
|
-
|
|
315
|
-
function
|
|
320
|
+
nt.displayName = "Field.Item";
|
|
321
|
+
function rt({ className: e, ...t }) {
|
|
316
322
|
return /* @__PURE__ */ _(y.Label, {
|
|
317
323
|
...t,
|
|
318
324
|
"data-imf-ui-component": "Field.Label",
|
|
319
|
-
className: (t) =>
|
|
325
|
+
className: (t) => Ze({ className: typeof e == "function" ? e(t) : e })
|
|
320
326
|
});
|
|
321
327
|
}
|
|
322
|
-
|
|
323
|
-
function
|
|
328
|
+
rt.displayName = "Field.Label";
|
|
329
|
+
function it({ className: e, ...t }) {
|
|
324
330
|
return /* @__PURE__ */ _(y.Description, {
|
|
325
331
|
...t,
|
|
326
332
|
"data-imf-ui-component": "Field.Description",
|
|
327
|
-
className: (t) =>
|
|
333
|
+
className: (t) => Qe({ className: typeof e == "function" ? e(t) : e })
|
|
328
334
|
});
|
|
329
335
|
}
|
|
330
|
-
|
|
331
|
-
function
|
|
336
|
+
it.displayName = "Field.Description";
|
|
337
|
+
function at({ className: e, ...t }) {
|
|
332
338
|
return /* @__PURE__ */ _(y.Control, {
|
|
333
339
|
...t,
|
|
334
340
|
"data-imf-ui-component": "Field.Control",
|
|
335
|
-
className: (t) =>
|
|
341
|
+
className: (t) => $e({ className: typeof e == "function" ? e(t) : e })
|
|
336
342
|
});
|
|
337
343
|
}
|
|
338
|
-
|
|
339
|
-
function
|
|
344
|
+
at.displayName = "Field.Control";
|
|
345
|
+
function ot({ className: e, ...t }) {
|
|
340
346
|
return /* @__PURE__ */ _(y.Error, {
|
|
341
347
|
...t,
|
|
342
348
|
"data-imf-ui-component": "Field.Error",
|
|
343
|
-
className: (t) =>
|
|
349
|
+
className: (t) => et({ className: typeof e == "function" ? e(t) : e })
|
|
344
350
|
});
|
|
345
351
|
}
|
|
346
|
-
|
|
347
|
-
function
|
|
352
|
+
ot.displayName = "Field.Error";
|
|
353
|
+
function st({ children: e }) {
|
|
348
354
|
return /* @__PURE__ */ _(y.Validity, { children: e });
|
|
349
355
|
}
|
|
350
|
-
|
|
356
|
+
st.displayName = "Field.Validity";
|
|
351
357
|
//#endregion
|
|
352
358
|
//#region src/components/field/field.meta.ts
|
|
353
|
-
var
|
|
359
|
+
var ct = {
|
|
354
360
|
name: "Field",
|
|
355
361
|
category: t.inputs,
|
|
356
362
|
status: "stable",
|
|
@@ -362,32 +368,32 @@ var lt = {
|
|
|
362
368
|
docLink: "https://base-ui.com/react/components/field",
|
|
363
369
|
llmDocLink: "https://base-ui.com/react/components/field.md"
|
|
364
370
|
}
|
|
365
|
-
},
|
|
371
|
+
}, lt = {
|
|
366
372
|
legend: "imf-ui-fieldset-module-legend",
|
|
367
373
|
root: "imf-ui-fieldset-module-root"
|
|
368
|
-
},
|
|
369
|
-
Legend: () =>
|
|
370
|
-
Root: () =>
|
|
371
|
-
}),
|
|
372
|
-
function
|
|
374
|
+
}, ut = /* @__PURE__ */ e({
|
|
375
|
+
Legend: () => mt,
|
|
376
|
+
Root: () => pt
|
|
377
|
+
}), dt = h(lt.root), ft = h(lt.legend);
|
|
378
|
+
function pt({ className: e, ...t }) {
|
|
373
379
|
return /* @__PURE__ */ _(De.Root, {
|
|
374
380
|
...t,
|
|
375
381
|
"data-imf-ui-component": "Fieldset.Root",
|
|
376
|
-
className: (t) =>
|
|
382
|
+
className: (t) => dt({ className: typeof e == "function" ? e(t) : e })
|
|
377
383
|
});
|
|
378
384
|
}
|
|
379
|
-
|
|
380
|
-
function
|
|
385
|
+
pt.displayName = "Fieldset.Root";
|
|
386
|
+
function mt({ className: e, ...t }) {
|
|
381
387
|
return /* @__PURE__ */ _(De.Legend, {
|
|
382
388
|
...t,
|
|
383
389
|
"data-imf-ui-component": "Fieldset.Legend",
|
|
384
|
-
className: (t) =>
|
|
390
|
+
className: (t) => ft({ className: typeof e == "function" ? e(t) : e })
|
|
385
391
|
});
|
|
386
392
|
}
|
|
387
|
-
|
|
393
|
+
mt.displayName = "Fieldset.Legend";
|
|
388
394
|
//#endregion
|
|
389
395
|
//#region src/components/fieldset/fieldset.meta.ts
|
|
390
|
-
var
|
|
396
|
+
var ht = {
|
|
391
397
|
name: "Fieldset",
|
|
392
398
|
category: t.inputs,
|
|
393
399
|
status: "stable",
|
|
@@ -399,7 +405,7 @@ var gt = {
|
|
|
399
405
|
docLink: "https://base-ui.com/react/components/fieldset",
|
|
400
406
|
llmDocLink: "https://base-ui.com/react/components/fieldset.md"
|
|
401
407
|
}
|
|
402
|
-
},
|
|
408
|
+
}, M = {
|
|
403
409
|
clearButton: "imf-ui-input-module-clearButton",
|
|
404
410
|
root: "imf-ui-input-module-root",
|
|
405
411
|
searchRoot: "imf-ui-input-module-searchRoot",
|
|
@@ -409,19 +415,19 @@ var gt = {
|
|
|
409
415
|
variantFilled: "imf-ui-input-module-variantFilled",
|
|
410
416
|
variantGhost: "imf-ui-input-module-variantGhost",
|
|
411
417
|
variantOutline: "imf-ui-input-module-variantOutline"
|
|
412
|
-
},
|
|
418
|
+
}, gt = h(M.root, { variants: {
|
|
413
419
|
variant: {
|
|
414
|
-
outline:
|
|
415
|
-
filled:
|
|
416
|
-
ghost:
|
|
420
|
+
outline: M.variantOutline,
|
|
421
|
+
filled: M.variantFilled,
|
|
422
|
+
ghost: M.variantGhost
|
|
417
423
|
},
|
|
418
424
|
size: {
|
|
419
|
-
sm:
|
|
420
|
-
md:
|
|
421
|
-
lg:
|
|
425
|
+
sm: M.sizeSm,
|
|
426
|
+
md: M.sizeMd,
|
|
427
|
+
lg: M.sizeLg
|
|
422
428
|
}
|
|
423
429
|
} });
|
|
424
|
-
function
|
|
430
|
+
function _t({ variant: e = "outline", size: t = "md", type: n, value: r, defaultValue: i, onValueChange: a, onClear: o, disabled: s, className: c, ...l }) {
|
|
425
431
|
let d = n === "search", [ee, f] = Te(i ?? ""), p = r ?? ee, te = p != null && String(p).length > 0, ne = (e, t) => {
|
|
426
432
|
d && r === void 0 && f(e), a?.(e, t);
|
|
427
433
|
}, re = /* @__PURE__ */ _(Oe, {
|
|
@@ -432,17 +438,17 @@ function vt({ variant: e = "outline", size: t = "md", type: n, value: r, default
|
|
|
432
438
|
disabled: s,
|
|
433
439
|
onValueChange: d ? ne : a,
|
|
434
440
|
"data-imf-ui-component": "Input",
|
|
435
|
-
className: (n) =>
|
|
441
|
+
className: (n) => gt({
|
|
436
442
|
variant: e,
|
|
437
443
|
size: t,
|
|
438
444
|
className: typeof c == "function" ? c(n) : c
|
|
439
445
|
})
|
|
440
446
|
});
|
|
441
447
|
return d ? /* @__PURE__ */ v("div", {
|
|
442
|
-
className: typeof c == "string" ? `${
|
|
448
|
+
className: typeof c == "string" ? `${M.searchRoot} ${c}` : M.searchRoot,
|
|
443
449
|
children: [re, te && !s && /* @__PURE__ */ _("button", {
|
|
444
450
|
type: "button",
|
|
445
|
-
className:
|
|
451
|
+
className: M.clearButton,
|
|
446
452
|
"aria-label": "Clear input",
|
|
447
453
|
onClick: () => {
|
|
448
454
|
r === void 0 && f(""), o?.();
|
|
@@ -457,7 +463,7 @@ function vt({ variant: e = "outline", size: t = "md", type: n, value: r, default
|
|
|
457
463
|
}
|
|
458
464
|
//#endregion
|
|
459
465
|
//#region src/components/input/input.meta.ts
|
|
460
|
-
var
|
|
466
|
+
var vt = {
|
|
461
467
|
name: "Input",
|
|
462
468
|
category: t.inputs,
|
|
463
469
|
status: "stable",
|
|
@@ -469,7 +475,7 @@ var yt = {
|
|
|
469
475
|
docLink: "https://base-ui.com/react/components/input",
|
|
470
476
|
llmDocLink: "https://base-ui.com/react/components/input.md"
|
|
471
477
|
}
|
|
472
|
-
},
|
|
478
|
+
}, N = {
|
|
473
479
|
arrow: "imf-ui-select-module-arrow",
|
|
474
480
|
group: "imf-ui-select-module-group",
|
|
475
481
|
groupLabel: "imf-ui-select-module-groupLabel",
|
|
@@ -487,195 +493,195 @@ var yt = {
|
|
|
487
493
|
separator: "imf-ui-select-module-separator",
|
|
488
494
|
trigger: "imf-ui-select-module-trigger",
|
|
489
495
|
value: "imf-ui-select-module-value"
|
|
490
|
-
},
|
|
491
|
-
Arrow: () =>
|
|
492
|
-
Backdrop: () =>
|
|
493
|
-
Group: () =>
|
|
494
|
-
GroupLabel: () =>
|
|
495
|
-
Icon: () =>
|
|
496
|
-
Item: () =>
|
|
497
|
-
ItemIndicator: () =>
|
|
498
|
-
ItemText: () =>
|
|
499
|
-
Label: () =>
|
|
500
|
-
List: () =>
|
|
501
|
-
Popup: () =>
|
|
502
|
-
Portal: () =>
|
|
503
|
-
Positioner: () =>
|
|
504
|
-
Root: () =>
|
|
505
|
-
ScrollDownArrow: () =>
|
|
506
|
-
ScrollUpArrow: () =>
|
|
507
|
-
Separator: () =>
|
|
508
|
-
Trigger: () =>
|
|
509
|
-
Value: () =>
|
|
510
|
-
}),
|
|
511
|
-
function
|
|
496
|
+
}, yt = /* @__PURE__ */ e({
|
|
497
|
+
Arrow: () => qt,
|
|
498
|
+
Backdrop: () => Wt,
|
|
499
|
+
Group: () => Qt,
|
|
500
|
+
GroupLabel: () => $t,
|
|
501
|
+
Icon: () => Ht,
|
|
502
|
+
Item: () => Yt,
|
|
503
|
+
ItemIndicator: () => Xt,
|
|
504
|
+
ItemText: () => Zt,
|
|
505
|
+
Label: () => zt,
|
|
506
|
+
List: () => Jt,
|
|
507
|
+
Popup: () => Kt,
|
|
508
|
+
Portal: () => Ut,
|
|
509
|
+
Positioner: () => Gt,
|
|
510
|
+
Root: () => Rt,
|
|
511
|
+
ScrollDownArrow: () => nn,
|
|
512
|
+
ScrollUpArrow: () => tn,
|
|
513
|
+
Separator: () => en,
|
|
514
|
+
Trigger: () => Bt,
|
|
515
|
+
Value: () => Vt
|
|
516
|
+
}), bt = h(N.root), xt = h(N.label), St = h(N.trigger), Ct = h(N.value), wt = h(N.icon), Tt = h(N.backdrop), Et = h(N.positioner), Dt = h(N.popup), Ot = h(N.arrow), kt = h(N.list), At = h(N.item), jt = h(N.itemIndicator), Mt = h(N.itemText), Nt = h(N.group), Pt = h(N.groupLabel), Ft = h(N.separator), It = h(N.scrollUpArrow), Lt = h(N.scrollDownArrow);
|
|
517
|
+
function Rt({ className: e, style: t, ...n }) {
|
|
512
518
|
return /* @__PURE__ */ _("div", {
|
|
513
|
-
className:
|
|
519
|
+
className: bt({ className: e }),
|
|
514
520
|
style: t,
|
|
515
521
|
children: /* @__PURE__ */ _(b.Root, { ...n })
|
|
516
522
|
});
|
|
517
523
|
}
|
|
518
|
-
|
|
519
|
-
function
|
|
524
|
+
Rt.displayName = "Select.Root";
|
|
525
|
+
function zt({ className: e, ...t }) {
|
|
520
526
|
return /* @__PURE__ */ _(b.Label, {
|
|
521
527
|
...t,
|
|
522
528
|
"data-imf-ui-component": "Select.Label",
|
|
523
|
-
className: (t) =>
|
|
529
|
+
className: (t) => xt({ className: typeof e == "function" ? e(t) : e }),
|
|
524
530
|
children: t.children
|
|
525
531
|
});
|
|
526
532
|
}
|
|
527
|
-
|
|
528
|
-
function
|
|
533
|
+
zt.displayName = "Select.Label";
|
|
534
|
+
function Bt({ className: e, ...t }) {
|
|
529
535
|
return /* @__PURE__ */ _(b.Trigger, {
|
|
530
536
|
...t,
|
|
531
537
|
"data-imf-ui-component": "Select.Trigger",
|
|
532
|
-
className: (t) =>
|
|
538
|
+
className: (t) => St({ className: typeof e == "function" ? e(t) : e }),
|
|
533
539
|
children: t.children
|
|
534
540
|
});
|
|
535
541
|
}
|
|
536
|
-
|
|
537
|
-
function
|
|
542
|
+
Bt.displayName = "Select.Trigger";
|
|
543
|
+
function Vt({ className: e, children: t, ...n }) {
|
|
538
544
|
return /* @__PURE__ */ _(b.Value, {
|
|
539
545
|
...n,
|
|
540
546
|
"data-imf-ui-component": "Select.Value",
|
|
541
|
-
className: (t) =>
|
|
547
|
+
className: (t) => Ct({ className: typeof e == "function" ? e(t) : e }),
|
|
542
548
|
children: t
|
|
543
549
|
});
|
|
544
550
|
}
|
|
545
|
-
|
|
546
|
-
function
|
|
551
|
+
Vt.displayName = "Select.Value";
|
|
552
|
+
function Ht({ className: e, ...t }) {
|
|
547
553
|
return /* @__PURE__ */ _(b.Icon, {
|
|
548
554
|
...t,
|
|
549
555
|
"data-imf-ui-component": "Select.Icon",
|
|
550
|
-
className: (t) =>
|
|
556
|
+
className: (t) => wt({ className: typeof e == "function" ? e(t) : e }),
|
|
551
557
|
children: t.children
|
|
552
558
|
});
|
|
553
559
|
}
|
|
554
|
-
|
|
555
|
-
function
|
|
560
|
+
Ht.displayName = "Select.Icon";
|
|
561
|
+
function Ut(e) {
|
|
556
562
|
return /* @__PURE__ */ _(b.Portal, { ...e });
|
|
557
563
|
}
|
|
558
|
-
|
|
559
|
-
function
|
|
564
|
+
Ut.displayName = "Select.Portal";
|
|
565
|
+
function Wt({ className: e, ...t }) {
|
|
560
566
|
return /* @__PURE__ */ _(b.Backdrop, {
|
|
561
567
|
...t,
|
|
562
568
|
"data-imf-ui-component": "Select.Backdrop",
|
|
563
|
-
className: (t) =>
|
|
569
|
+
className: (t) => Tt({ className: typeof e == "function" ? e(t) : e })
|
|
564
570
|
});
|
|
565
571
|
}
|
|
566
|
-
|
|
567
|
-
function
|
|
572
|
+
Wt.displayName = "Select.Backdrop";
|
|
573
|
+
function Gt({ className: e, align: t = "start", alignItemWithTrigger: n = !1, ...r }) {
|
|
568
574
|
return /* @__PURE__ */ _(b.Positioner, {
|
|
569
575
|
...r,
|
|
570
576
|
align: t,
|
|
571
577
|
alignItemWithTrigger: n,
|
|
572
578
|
"data-imf-ui-component": "Select.Positioner",
|
|
573
|
-
className: (t) =>
|
|
579
|
+
className: (t) => Et({ className: typeof e == "function" ? e(t) : e }),
|
|
574
580
|
children: r.children
|
|
575
581
|
});
|
|
576
582
|
}
|
|
577
|
-
|
|
578
|
-
function
|
|
583
|
+
Gt.displayName = "Select.Positioner";
|
|
584
|
+
function Kt({ className: e, ...t }) {
|
|
579
585
|
return /* @__PURE__ */ _(b.Popup, {
|
|
580
586
|
...t,
|
|
581
587
|
"data-imf-ui-component": "Select.Popup",
|
|
582
|
-
className: (t) =>
|
|
588
|
+
className: (t) => Dt({ className: typeof e == "function" ? e(t) : e }),
|
|
583
589
|
children: t.children
|
|
584
590
|
});
|
|
585
591
|
}
|
|
586
|
-
|
|
587
|
-
function
|
|
592
|
+
Kt.displayName = "Select.Popup";
|
|
593
|
+
function qt({ className: e, ...t }) {
|
|
588
594
|
return /* @__PURE__ */ _(b.Arrow, {
|
|
589
595
|
...t,
|
|
590
596
|
"data-imf-ui-component": "Select.Arrow",
|
|
591
|
-
className: (t) =>
|
|
597
|
+
className: (t) => Ot({ className: typeof e == "function" ? e(t) : e }),
|
|
592
598
|
children: t.children
|
|
593
599
|
});
|
|
594
600
|
}
|
|
595
|
-
|
|
596
|
-
function
|
|
601
|
+
qt.displayName = "Select.Arrow";
|
|
602
|
+
function Jt({ className: e, ...t }) {
|
|
597
603
|
return /* @__PURE__ */ _(b.List, {
|
|
598
604
|
...t,
|
|
599
605
|
"data-imf-ui-component": "Select.List",
|
|
600
|
-
className: (t) =>
|
|
606
|
+
className: (t) => kt({ className: typeof e == "function" ? e(t) : e }),
|
|
601
607
|
children: t.children
|
|
602
608
|
});
|
|
603
609
|
}
|
|
604
|
-
|
|
605
|
-
function
|
|
610
|
+
Jt.displayName = "Select.List";
|
|
611
|
+
function Yt({ className: e, ...t }) {
|
|
606
612
|
return /* @__PURE__ */ _(b.Item, {
|
|
607
613
|
...t,
|
|
608
614
|
"data-imf-ui-component": "Select.Item",
|
|
609
|
-
className: (t) =>
|
|
615
|
+
className: (t) => At({ className: typeof e == "function" ? e(t) : e }),
|
|
610
616
|
children: t.children
|
|
611
617
|
});
|
|
612
618
|
}
|
|
613
|
-
|
|
614
|
-
function
|
|
619
|
+
Yt.displayName = "Select.Item";
|
|
620
|
+
function Xt({ className: e, ...t }) {
|
|
615
621
|
return /* @__PURE__ */ _(b.ItemIndicator, {
|
|
616
622
|
...t,
|
|
617
623
|
"data-imf-ui-component": "Select.ItemIndicator",
|
|
618
|
-
className: (t) =>
|
|
624
|
+
className: (t) => jt({ className: typeof e == "function" ? e(t) : e }),
|
|
619
625
|
children: t.children
|
|
620
626
|
});
|
|
621
627
|
}
|
|
622
|
-
|
|
623
|
-
function
|
|
628
|
+
Xt.displayName = "Select.ItemIndicator";
|
|
629
|
+
function Zt({ className: e, ...t }) {
|
|
624
630
|
return /* @__PURE__ */ _(b.ItemText, {
|
|
625
631
|
...t,
|
|
626
632
|
"data-imf-ui-component": "Select.ItemText",
|
|
627
|
-
className: (t) =>
|
|
633
|
+
className: (t) => Mt({ className: typeof e == "function" ? e(t) : e }),
|
|
628
634
|
children: t.children
|
|
629
635
|
});
|
|
630
636
|
}
|
|
631
|
-
|
|
632
|
-
function
|
|
637
|
+
Zt.displayName = "Select.ItemText";
|
|
638
|
+
function Qt({ className: e, ...t }) {
|
|
633
639
|
return /* @__PURE__ */ _(b.Group, {
|
|
634
640
|
...t,
|
|
635
641
|
"data-imf-ui-component": "Select.Group",
|
|
636
|
-
className: (t) =>
|
|
642
|
+
className: (t) => Nt({ className: typeof e == "function" ? e(t) : e }),
|
|
637
643
|
children: t.children
|
|
638
644
|
});
|
|
639
645
|
}
|
|
640
|
-
|
|
641
|
-
function
|
|
646
|
+
Qt.displayName = "Select.Group";
|
|
647
|
+
function $t({ className: e, ...t }) {
|
|
642
648
|
return /* @__PURE__ */ _(b.GroupLabel, {
|
|
643
649
|
...t,
|
|
644
650
|
"data-imf-ui-component": "Select.GroupLabel",
|
|
645
|
-
className: (t) =>
|
|
651
|
+
className: (t) => Pt({ className: typeof e == "function" ? e(t) : e }),
|
|
646
652
|
children: t.children
|
|
647
653
|
});
|
|
648
654
|
}
|
|
649
|
-
|
|
650
|
-
function
|
|
655
|
+
$t.displayName = "Select.GroupLabel";
|
|
656
|
+
function en({ className: e, ...t }) {
|
|
651
657
|
return /* @__PURE__ */ _(b.Separator, {
|
|
652
658
|
...t,
|
|
653
659
|
"data-imf-ui-component": "Select.Separator",
|
|
654
|
-
className: (t) =>
|
|
660
|
+
className: (t) => Ft({ className: typeof e == "function" ? e(t) : e })
|
|
655
661
|
});
|
|
656
662
|
}
|
|
657
|
-
|
|
658
|
-
function
|
|
663
|
+
en.displayName = "Select.Separator";
|
|
664
|
+
function tn({ className: e, ...t }) {
|
|
659
665
|
return /* @__PURE__ */ _(b.ScrollUpArrow, {
|
|
660
666
|
...t,
|
|
661
667
|
"data-imf-ui-component": "Select.ScrollUpArrow",
|
|
662
|
-
className: (t) =>
|
|
668
|
+
className: (t) => It({ className: typeof e == "function" ? e(t) : e }),
|
|
663
669
|
children: t.children
|
|
664
670
|
});
|
|
665
671
|
}
|
|
666
|
-
|
|
667
|
-
function
|
|
672
|
+
tn.displayName = "Select.ScrollUpArrow";
|
|
673
|
+
function nn({ className: e, ...t }) {
|
|
668
674
|
return /* @__PURE__ */ _(b.ScrollDownArrow, {
|
|
669
675
|
...t,
|
|
670
676
|
"data-imf-ui-component": "Select.ScrollDownArrow",
|
|
671
|
-
className: (t) =>
|
|
677
|
+
className: (t) => Lt({ className: typeof e == "function" ? e(t) : e }),
|
|
672
678
|
children: t.children
|
|
673
679
|
});
|
|
674
680
|
}
|
|
675
|
-
|
|
681
|
+
nn.displayName = "Select.ScrollDownArrow";
|
|
676
682
|
//#endregion
|
|
677
683
|
//#region src/components/select/select.meta.ts
|
|
678
|
-
var
|
|
684
|
+
var rn = {
|
|
679
685
|
name: "Select",
|
|
680
686
|
category: t.inputs,
|
|
681
687
|
status: "stable",
|
|
@@ -687,7 +693,7 @@ var an = {
|
|
|
687
693
|
docLink: "https://base-ui.com/react/components/select",
|
|
688
694
|
llmDocLink: "https://base-ui.com/react/components/select.md"
|
|
689
695
|
}
|
|
690
|
-
},
|
|
696
|
+
}, an = {
|
|
691
697
|
name: "Slider",
|
|
692
698
|
category: t.inputs,
|
|
693
699
|
status: "stable",
|
|
@@ -699,7 +705,7 @@ var an = {
|
|
|
699
705
|
docLink: "https://base-ui.com/react/components/slider",
|
|
700
706
|
llmDocLink: "https://base-ui.com/react/components/slider.md"
|
|
701
707
|
}
|
|
702
|
-
},
|
|
708
|
+
}, on = {
|
|
703
709
|
name: "Switch",
|
|
704
710
|
category: t.inputs,
|
|
705
711
|
status: "stable",
|
|
@@ -711,7 +717,7 @@ var an = {
|
|
|
711
717
|
docLink: "https://base-ui.com/react/components/switch",
|
|
712
718
|
llmDocLink: "https://base-ui.com/react/components/switch.md"
|
|
713
719
|
}
|
|
714
|
-
},
|
|
720
|
+
}, sn = {
|
|
715
721
|
name: "Toggle",
|
|
716
722
|
category: t.inputs,
|
|
717
723
|
status: "experimental",
|
|
@@ -723,7 +729,7 @@ var an = {
|
|
|
723
729
|
docLink: "https://base-ui.com/react/components/toggle",
|
|
724
730
|
llmDocLink: "https://base-ui.com/react/components/toggle.md"
|
|
725
731
|
}
|
|
726
|
-
},
|
|
732
|
+
}, cn = {
|
|
727
733
|
name: "ToggleGroup",
|
|
728
734
|
category: t.inputs,
|
|
729
735
|
status: "experimental",
|
|
@@ -735,7 +741,7 @@ var an = {
|
|
|
735
741
|
docLink: "https://base-ui.com/react/components/toggle-group",
|
|
736
742
|
llmDocLink: "https://base-ui.com/react/components/toggle-group.md"
|
|
737
743
|
}
|
|
738
|
-
},
|
|
744
|
+
}, P = {
|
|
739
745
|
aside: "imf-ui-app-shell-module-aside",
|
|
740
746
|
footer: "imf-ui-app-shell-module-footer",
|
|
741
747
|
header: "imf-ui-app-shell-module-header",
|
|
@@ -743,83 +749,83 @@ var an = {
|
|
|
743
749
|
navbar: "imf-ui-app-shell-module-navbar",
|
|
744
750
|
root: "imf-ui-app-shell-module-root",
|
|
745
751
|
section: "imf-ui-app-shell-module-section"
|
|
746
|
-
},
|
|
747
|
-
Aside: () =>
|
|
748
|
-
Footer: () =>
|
|
749
|
-
Header: () =>
|
|
750
|
-
Main: () =>
|
|
751
|
-
Navbar: () =>
|
|
752
|
-
Root: () =>
|
|
753
|
-
Section: () =>
|
|
754
|
-
}),
|
|
755
|
-
function
|
|
752
|
+
}, ln = /* @__PURE__ */ e({
|
|
753
|
+
Aside: () => bn,
|
|
754
|
+
Footer: () => xn,
|
|
755
|
+
Header: () => vn,
|
|
756
|
+
Main: () => Sn,
|
|
757
|
+
Navbar: () => yn,
|
|
758
|
+
Root: () => _n,
|
|
759
|
+
Section: () => Cn
|
|
760
|
+
}), un = h(P.root), dn = h(P.header), fn = h(P.navbar), pn = h(P.aside), mn = h(P.footer), hn = h(P.main), gn = h(P.section);
|
|
761
|
+
function _n({ className: e, ...t }) {
|
|
756
762
|
return /* @__PURE__ */ _("div", {
|
|
757
763
|
...t,
|
|
758
764
|
"data-imf-ui-component": "AppShell.Root",
|
|
759
|
-
className:
|
|
765
|
+
className: un({ className: e })
|
|
760
766
|
});
|
|
761
767
|
}
|
|
762
|
-
|
|
763
|
-
function
|
|
768
|
+
_n.displayName = "AppShell.Root";
|
|
769
|
+
function vn({ className: e, ...t }) {
|
|
764
770
|
return /* @__PURE__ */ _("header", {
|
|
765
771
|
...t,
|
|
766
772
|
"data-imf-ui-component": "AppShell.Header",
|
|
767
|
-
className:
|
|
773
|
+
className: dn({ className: e })
|
|
768
774
|
});
|
|
769
775
|
}
|
|
770
|
-
|
|
771
|
-
function
|
|
776
|
+
vn.displayName = "AppShell.Header";
|
|
777
|
+
function yn({ className: e, open: t, ...n }) {
|
|
772
778
|
return /* @__PURE__ */ _("nav", {
|
|
773
779
|
...n,
|
|
774
780
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
775
781
|
"data-open": t ? "" : void 0,
|
|
776
|
-
className:
|
|
782
|
+
className: fn({ className: e })
|
|
777
783
|
});
|
|
778
784
|
}
|
|
779
|
-
|
|
780
|
-
function
|
|
785
|
+
yn.displayName = "AppShell.Navbar";
|
|
786
|
+
function bn({ className: e, open: t, ...n }) {
|
|
781
787
|
return /* @__PURE__ */ _("aside", {
|
|
782
788
|
...n,
|
|
783
789
|
"data-imf-ui-component": "AppShell.Aside",
|
|
784
790
|
"data-open": t ? "" : void 0,
|
|
785
|
-
className:
|
|
791
|
+
className: pn({ className: e })
|
|
786
792
|
});
|
|
787
793
|
}
|
|
788
|
-
|
|
789
|
-
function
|
|
794
|
+
bn.displayName = "AppShell.Aside";
|
|
795
|
+
function xn({ className: e, ...t }) {
|
|
790
796
|
return /* @__PURE__ */ _("footer", {
|
|
791
797
|
...t,
|
|
792
798
|
"data-imf-ui-component": "AppShell.Footer",
|
|
793
|
-
className:
|
|
799
|
+
className: mn({ className: e })
|
|
794
800
|
});
|
|
795
801
|
}
|
|
796
|
-
|
|
797
|
-
function
|
|
802
|
+
xn.displayName = "AppShell.Footer";
|
|
803
|
+
function Sn({ className: e, ...t }) {
|
|
798
804
|
return /* @__PURE__ */ _("main", {
|
|
799
805
|
...t,
|
|
800
806
|
"data-imf-ui-component": "AppShell.Main",
|
|
801
|
-
className:
|
|
807
|
+
className: hn({ className: e })
|
|
802
808
|
});
|
|
803
809
|
}
|
|
804
|
-
|
|
805
|
-
function
|
|
810
|
+
Sn.displayName = "AppShell.Main";
|
|
811
|
+
function Cn({ className: e, grow: t, ...n }) {
|
|
806
812
|
return /* @__PURE__ */ _("div", {
|
|
807
813
|
...n,
|
|
808
814
|
"data-imf-ui-component": "AppShell.Section",
|
|
809
815
|
"data-grow": t ? "" : void 0,
|
|
810
|
-
className:
|
|
816
|
+
className: gn({ className: e })
|
|
811
817
|
});
|
|
812
818
|
}
|
|
813
|
-
|
|
819
|
+
Cn.displayName = "AppShell.Section";
|
|
814
820
|
//#endregion
|
|
815
821
|
//#region src/components/app-shell/app-shell.meta.ts
|
|
816
|
-
var
|
|
822
|
+
var wn = {
|
|
817
823
|
name: "AppShell",
|
|
818
824
|
category: t.layout,
|
|
819
825
|
status: "stable",
|
|
820
826
|
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.",
|
|
821
827
|
origin: "native"
|
|
822
|
-
},
|
|
828
|
+
}, F = {
|
|
823
829
|
content: "imf-ui-card-module-content",
|
|
824
830
|
densityComfortable: "imf-ui-card-module-densityComfortable",
|
|
825
831
|
densityCompact: "imf-ui-card-module-densityCompact",
|
|
@@ -843,49 +849,49 @@ var Tn = {
|
|
|
843
849
|
variantMinor: "imf-ui-card-module-variantMinor",
|
|
844
850
|
variantPrimary: "imf-ui-card-module-variantPrimary",
|
|
845
851
|
variantSupport: "imf-ui-card-module-variantSupport"
|
|
846
|
-
},
|
|
847
|
-
Content: () =>
|
|
848
|
-
Footer: () =>
|
|
849
|
-
Header: () =>
|
|
850
|
-
Image: () =>
|
|
851
|
-
Root: () =>
|
|
852
|
-
}),
|
|
852
|
+
}, Tn = /* @__PURE__ */ e({
|
|
853
|
+
Content: () => An,
|
|
854
|
+
Footer: () => jn,
|
|
855
|
+
Header: () => kn,
|
|
856
|
+
Image: () => On,
|
|
857
|
+
Root: () => Dn
|
|
858
|
+
}), En = h(F.root, { variants: {
|
|
853
859
|
density: {
|
|
854
|
-
compact:
|
|
855
|
-
comfortable:
|
|
856
|
-
spacious:
|
|
860
|
+
compact: F.densityCompact,
|
|
861
|
+
comfortable: F.densityComfortable,
|
|
862
|
+
spacious: F.densitySpacious
|
|
857
863
|
},
|
|
858
864
|
variant: {
|
|
859
|
-
main:
|
|
860
|
-
support:
|
|
861
|
-
minor:
|
|
862
|
-
primary:
|
|
863
|
-
brand:
|
|
865
|
+
main: F.variantMain,
|
|
866
|
+
support: F.variantSupport,
|
|
867
|
+
minor: F.variantMinor,
|
|
868
|
+
primary: F.variantPrimary,
|
|
869
|
+
brand: F.variantBrand
|
|
864
870
|
},
|
|
865
871
|
shadow: {
|
|
866
|
-
none:
|
|
867
|
-
sm:
|
|
868
|
-
md:
|
|
869
|
-
lg:
|
|
872
|
+
none: F.shadowNone,
|
|
873
|
+
sm: F.shadowSm,
|
|
874
|
+
md: F.shadowMd,
|
|
875
|
+
lg: F.shadowLg
|
|
870
876
|
},
|
|
871
877
|
radius: {
|
|
872
|
-
brand:
|
|
873
|
-
sm:
|
|
874
|
-
md:
|
|
875
|
-
lg:
|
|
878
|
+
brand: F.radiusBrand,
|
|
879
|
+
sm: F.radiusSm,
|
|
880
|
+
md: F.radiusMd,
|
|
881
|
+
lg: F.radiusLg
|
|
876
882
|
},
|
|
877
883
|
orientation: {
|
|
878
|
-
vertical:
|
|
879
|
-
horizontal:
|
|
884
|
+
vertical: F.orientationVertical,
|
|
885
|
+
horizontal: F.orientationHorizontal
|
|
880
886
|
}
|
|
881
887
|
} });
|
|
882
|
-
function
|
|
888
|
+
function Dn({ density: e = "comfortable", variant: t = "main", shadow: n = "lg", radius: r = "brand", orientation: i = "vertical", withBorder: a = !0, className: o, ...s }) {
|
|
883
889
|
let c = a && t !== "primary" && t !== "brand";
|
|
884
890
|
return /* @__PURE__ */ _("div", {
|
|
885
891
|
...s,
|
|
886
892
|
"data-imf-ui-component": "Card.Root",
|
|
887
893
|
"data-with-border": c ? "" : void 0,
|
|
888
|
-
className:
|
|
894
|
+
className: En({
|
|
889
895
|
density: e,
|
|
890
896
|
variant: t,
|
|
891
897
|
shadow: n,
|
|
@@ -895,50 +901,54 @@ function On({ density: e = "comfortable", variant: t = "main", shadow: n = "lg",
|
|
|
895
901
|
})
|
|
896
902
|
});
|
|
897
903
|
}
|
|
898
|
-
|
|
899
|
-
function
|
|
904
|
+
Dn.displayName = "Card.Root";
|
|
905
|
+
function On({ className: e, alt: t = "", aspectRatio: n = 16 / 10, style: r, ...i }) {
|
|
900
906
|
return /* @__PURE__ */ _("img", {
|
|
901
|
-
...
|
|
907
|
+
...i,
|
|
902
908
|
alt: t,
|
|
903
909
|
"data-imf-ui-component": "Card.Image",
|
|
904
|
-
className: h(
|
|
910
|
+
className: h(F.image)({ className: e }),
|
|
911
|
+
style: {
|
|
912
|
+
aspectRatio: n,
|
|
913
|
+
...r
|
|
914
|
+
}
|
|
905
915
|
});
|
|
906
916
|
}
|
|
907
|
-
|
|
908
|
-
function
|
|
917
|
+
On.displayName = "Card.Image";
|
|
918
|
+
function kn({ className: e, ...t }) {
|
|
909
919
|
return /* @__PURE__ */ _("div", {
|
|
910
920
|
...t,
|
|
911
921
|
"data-imf-ui-component": "Card.Header",
|
|
912
|
-
className: h(
|
|
922
|
+
className: h(F.header)({ className: e })
|
|
913
923
|
});
|
|
914
924
|
}
|
|
915
|
-
|
|
916
|
-
function
|
|
925
|
+
kn.displayName = "Card.Header";
|
|
926
|
+
function An({ className: e, ...t }) {
|
|
917
927
|
return /* @__PURE__ */ _("div", {
|
|
918
928
|
...t,
|
|
919
929
|
"data-imf-ui-component": "Card.Content",
|
|
920
|
-
className: h(
|
|
930
|
+
className: h(F.content)({ className: e })
|
|
921
931
|
});
|
|
922
932
|
}
|
|
923
|
-
|
|
924
|
-
function
|
|
933
|
+
An.displayName = "Card.Content";
|
|
934
|
+
function jn({ className: e, ...t }) {
|
|
925
935
|
return /* @__PURE__ */ _("div", {
|
|
926
936
|
...t,
|
|
927
937
|
"data-imf-ui-component": "Card.Footer",
|
|
928
|
-
className: h(
|
|
938
|
+
className: h(F.footer)({ className: e })
|
|
929
939
|
});
|
|
930
940
|
}
|
|
931
|
-
|
|
941
|
+
jn.displayName = "Card.Footer";
|
|
932
942
|
//#endregion
|
|
933
943
|
//#region src/components/card/card.meta.ts
|
|
934
|
-
var
|
|
944
|
+
var Mn = {
|
|
935
945
|
name: "Card",
|
|
936
946
|
category: t.layout,
|
|
937
947
|
status: "stable",
|
|
938
948
|
namespace: !0,
|
|
939
949
|
description: "Surface container for related content on a tonal background. Also called a panel or tile; compose it from optional image, header, content, and footer parts.",
|
|
940
950
|
origin: "native"
|
|
941
|
-
},
|
|
951
|
+
}, I = {
|
|
942
952
|
backdrop: "imf-ui-drawer-module-backdrop",
|
|
943
953
|
borderColorFgMinor: "imf-ui-drawer-module-borderColorFgMinor",
|
|
944
954
|
borderColorFgSupport: "imf-ui-drawer-module-borderColorFgSupport",
|
|
@@ -961,45 +971,45 @@ var Nn = {
|
|
|
961
971
|
title: "imf-ui-drawer-module-title",
|
|
962
972
|
trigger: "imf-ui-drawer-module-trigger",
|
|
963
973
|
viewport: "imf-ui-drawer-module-viewport"
|
|
964
|
-
},
|
|
965
|
-
Backdrop: () =>
|
|
966
|
-
Close: () =>
|
|
967
|
-
Content: () =>
|
|
968
|
-
Description: () =>
|
|
969
|
-
Indent: () =>
|
|
970
|
-
IndentBackground: () =>
|
|
971
|
-
Popup: () =>
|
|
972
|
-
Portal: () =>
|
|
973
|
-
Provider: () =>
|
|
974
|
-
Root: () =>
|
|
975
|
-
SwipeArea: () =>
|
|
976
|
-
Title: () =>
|
|
977
|
-
Trigger: () =>
|
|
978
|
-
Viewport: () =>
|
|
979
|
-
}),
|
|
974
|
+
}, Nn = /* @__PURE__ */ e({
|
|
975
|
+
Backdrop: () => Yn,
|
|
976
|
+
Close: () => tr,
|
|
977
|
+
Content: () => $n,
|
|
978
|
+
Description: () => nr,
|
|
979
|
+
Indent: () => ir,
|
|
980
|
+
IndentBackground: () => ar,
|
|
981
|
+
Popup: () => Qn,
|
|
982
|
+
Portal: () => Jn,
|
|
983
|
+
Provider: () => rr,
|
|
984
|
+
Root: () => Kn,
|
|
985
|
+
SwipeArea: () => or,
|
|
986
|
+
Title: () => er,
|
|
987
|
+
Trigger: () => qn,
|
|
988
|
+
Viewport: () => Xn
|
|
989
|
+
}), Pn = xe({
|
|
980
990
|
borderColor: "primary",
|
|
981
991
|
borderStyle: "solid"
|
|
982
|
-
}),
|
|
992
|
+
}), Fn = h(I.trigger), In = h(I.backdrop), Ln = h(I.viewport), Rn = h(I.popup, {
|
|
983
993
|
variants: {
|
|
984
994
|
borderColor: {
|
|
985
|
-
primary:
|
|
986
|
-
"fg-minor":
|
|
987
|
-
"fg-support":
|
|
988
|
-
none:
|
|
995
|
+
primary: I.borderColorPrimary,
|
|
996
|
+
"fg-minor": I.borderColorFgMinor,
|
|
997
|
+
"fg-support": I.borderColorFgSupport,
|
|
998
|
+
none: I.borderColorNone
|
|
989
999
|
},
|
|
990
1000
|
borderStyle: {
|
|
991
|
-
solid:
|
|
992
|
-
dashed:
|
|
993
|
-
none:
|
|
1001
|
+
solid: I.borderStyleSolid,
|
|
1002
|
+
dashed: I.borderStyleDashed,
|
|
1003
|
+
none: I.borderStyleNone
|
|
994
1004
|
}
|
|
995
1005
|
},
|
|
996
1006
|
defaultVariants: {
|
|
997
1007
|
borderColor: "primary",
|
|
998
1008
|
borderStyle: "solid"
|
|
999
1009
|
}
|
|
1000
|
-
}),
|
|
1001
|
-
function
|
|
1002
|
-
return /* @__PURE__ */ _(
|
|
1010
|
+
}), zn = h(I.content), Bn = h(I.title), Vn = h(I.close), Hn = h(I.description), Un = h(I.indent), Wn = h(I.indentBackground), Gn = h(I.swipeArea);
|
|
1011
|
+
function Kn({ borderColor: e = "primary", borderStyle: t = "solid", ...n }) {
|
|
1012
|
+
return /* @__PURE__ */ _(Pn.Provider, {
|
|
1003
1013
|
value: {
|
|
1004
1014
|
borderColor: e,
|
|
1005
1015
|
borderStyle: t
|
|
@@ -1007,117 +1017,117 @@ function qn({ borderColor: e = "primary", borderStyle: t = "solid", ...n }) {
|
|
|
1007
1017
|
children: /* @__PURE__ */ _(x.Root, { ...n })
|
|
1008
1018
|
});
|
|
1009
1019
|
}
|
|
1010
|
-
|
|
1011
|
-
function
|
|
1020
|
+
Kn.displayName = "Drawer.Root";
|
|
1021
|
+
function qn({ className: e, ...t }) {
|
|
1012
1022
|
return /* @__PURE__ */ _(x.Trigger, {
|
|
1013
1023
|
...t,
|
|
1014
1024
|
"data-imf-ui-component": "Drawer.Trigger",
|
|
1015
|
-
className: (t) =>
|
|
1025
|
+
className: (t) => Fn({ className: typeof e == "function" ? e(t) : e })
|
|
1016
1026
|
});
|
|
1017
1027
|
}
|
|
1018
|
-
|
|
1019
|
-
function
|
|
1028
|
+
qn.displayName = "Drawer.Trigger";
|
|
1029
|
+
function Jn(e) {
|
|
1020
1030
|
return /* @__PURE__ */ _(x.Portal, { ...e });
|
|
1021
1031
|
}
|
|
1022
|
-
|
|
1023
|
-
function
|
|
1032
|
+
Jn.displayName = "Drawer.Portal";
|
|
1033
|
+
function Yn({ className: e, ...t }) {
|
|
1024
1034
|
return /* @__PURE__ */ _(x.Backdrop, {
|
|
1025
1035
|
...t,
|
|
1026
1036
|
"data-imf-ui-component": "Drawer.Backdrop",
|
|
1027
|
-
className: (t) =>
|
|
1037
|
+
className: (t) => In({ className: typeof e == "function" ? e(t) : e })
|
|
1028
1038
|
});
|
|
1029
1039
|
}
|
|
1030
|
-
|
|
1031
|
-
function
|
|
1040
|
+
Yn.displayName = "Drawer.Backdrop";
|
|
1041
|
+
function Xn({ className: e, ...t }) {
|
|
1032
1042
|
return /* @__PURE__ */ _(x.Viewport, {
|
|
1033
1043
|
...t,
|
|
1034
1044
|
"data-imf-ui-component": "Drawer.Viewport",
|
|
1035
|
-
className: (t) =>
|
|
1045
|
+
className: (t) => Ln({ className: typeof e == "function" ? e(t) : e })
|
|
1036
1046
|
});
|
|
1037
1047
|
}
|
|
1038
|
-
|
|
1039
|
-
var
|
|
1040
|
-
left:
|
|
1041
|
-
right:
|
|
1042
|
-
down:
|
|
1043
|
-
up:
|
|
1048
|
+
Xn.displayName = "Drawer.Viewport";
|
|
1049
|
+
var Zn = {
|
|
1050
|
+
left: I.popupLeft,
|
|
1051
|
+
right: I.popupRight,
|
|
1052
|
+
down: I.popupBottom,
|
|
1053
|
+
up: I.popupTop
|
|
1044
1054
|
};
|
|
1045
|
-
function
|
|
1046
|
-
let i = Se(
|
|
1055
|
+
function Qn({ borderColor: e, borderStyle: t, className: n, ...r }) {
|
|
1056
|
+
let i = Se(Pn), a = e ?? i.borderColor, o = t ?? i.borderStyle;
|
|
1047
1057
|
return /* @__PURE__ */ _(x.Popup, {
|
|
1048
1058
|
...r,
|
|
1049
1059
|
"data-imf-ui-component": "Drawer.Popup",
|
|
1050
|
-
className: (e) =>
|
|
1060
|
+
className: (e) => Rn({
|
|
1051
1061
|
borderColor: a,
|
|
1052
1062
|
borderStyle: o,
|
|
1053
|
-
className: g(
|
|
1063
|
+
className: g(Zn[e.swipeDirection], typeof n == "function" ? n(e) : n)
|
|
1054
1064
|
})
|
|
1055
1065
|
});
|
|
1056
1066
|
}
|
|
1057
|
-
|
|
1058
|
-
function
|
|
1067
|
+
Qn.displayName = "Drawer.Popup";
|
|
1068
|
+
function $n({ className: e, ...t }) {
|
|
1059
1069
|
return /* @__PURE__ */ _(x.Content, {
|
|
1060
1070
|
...t,
|
|
1061
1071
|
"data-imf-ui-component": "Drawer.Content",
|
|
1062
|
-
className: (t) =>
|
|
1072
|
+
className: (t) => zn({ className: typeof e == "function" ? e(t) : e })
|
|
1063
1073
|
});
|
|
1064
1074
|
}
|
|
1065
|
-
|
|
1066
|
-
function
|
|
1075
|
+
$n.displayName = "Drawer.Content";
|
|
1076
|
+
function er({ className: e, ...t }) {
|
|
1067
1077
|
return /* @__PURE__ */ _(x.Title, {
|
|
1068
1078
|
...t,
|
|
1069
1079
|
"data-imf-ui-component": "Drawer.Title",
|
|
1070
|
-
className:
|
|
1080
|
+
className: Bn({ className: e })
|
|
1071
1081
|
});
|
|
1072
1082
|
}
|
|
1073
|
-
|
|
1074
|
-
function
|
|
1083
|
+
er.displayName = "Drawer.Title";
|
|
1084
|
+
function tr({ className: e, ...t }) {
|
|
1075
1085
|
return /* @__PURE__ */ _(x.Close, {
|
|
1076
1086
|
...t,
|
|
1077
1087
|
"data-imf-ui-component": "Drawer.Close",
|
|
1078
|
-
className: (t) =>
|
|
1088
|
+
className: (t) => Vn({ className: typeof e == "function" ? e(t) : e })
|
|
1079
1089
|
});
|
|
1080
1090
|
}
|
|
1081
|
-
|
|
1082
|
-
function
|
|
1091
|
+
tr.displayName = "Drawer.Close";
|
|
1092
|
+
function nr({ className: e, ...t }) {
|
|
1083
1093
|
return /* @__PURE__ */ _(x.Description, {
|
|
1084
1094
|
...t,
|
|
1085
1095
|
"data-imf-ui-component": "Drawer.Description",
|
|
1086
|
-
className:
|
|
1096
|
+
className: Hn({ className: e })
|
|
1087
1097
|
});
|
|
1088
1098
|
}
|
|
1089
|
-
|
|
1090
|
-
function
|
|
1099
|
+
nr.displayName = "Drawer.Description";
|
|
1100
|
+
function rr(e) {
|
|
1091
1101
|
return /* @__PURE__ */ _(x.Provider, { ...e });
|
|
1092
1102
|
}
|
|
1093
|
-
|
|
1094
|
-
function
|
|
1103
|
+
rr.displayName = "Drawer.Provider";
|
|
1104
|
+
function ir({ className: e, ...t }) {
|
|
1095
1105
|
return /* @__PURE__ */ _(x.Indent, {
|
|
1096
1106
|
...t,
|
|
1097
1107
|
"data-imf-ui-component": "Drawer.Indent",
|
|
1098
|
-
className: (t) =>
|
|
1108
|
+
className: (t) => Un({ className: typeof e == "function" ? e(t) : e })
|
|
1099
1109
|
});
|
|
1100
1110
|
}
|
|
1101
|
-
|
|
1102
|
-
function
|
|
1111
|
+
ir.displayName = "Drawer.Indent";
|
|
1112
|
+
function ar({ className: e, ...t }) {
|
|
1103
1113
|
return /* @__PURE__ */ _(x.IndentBackground, {
|
|
1104
1114
|
...t,
|
|
1105
1115
|
"data-imf-ui-component": "Drawer.IndentBackground",
|
|
1106
|
-
className: (t) =>
|
|
1116
|
+
className: (t) => Wn({ className: typeof e == "function" ? e(t) : e })
|
|
1107
1117
|
});
|
|
1108
1118
|
}
|
|
1109
|
-
|
|
1110
|
-
function
|
|
1119
|
+
ar.displayName = "Drawer.IndentBackground";
|
|
1120
|
+
function or({ className: e, ...t }) {
|
|
1111
1121
|
return /* @__PURE__ */ _(x.SwipeArea, {
|
|
1112
1122
|
...t,
|
|
1113
1123
|
"data-imf-ui-component": "Drawer.SwipeArea",
|
|
1114
|
-
className: (t) =>
|
|
1124
|
+
className: (t) => Gn({ className: typeof e == "function" ? e(t) : e })
|
|
1115
1125
|
});
|
|
1116
1126
|
}
|
|
1117
|
-
|
|
1127
|
+
or.displayName = "Drawer.SwipeArea";
|
|
1118
1128
|
//#endregion
|
|
1119
1129
|
//#region src/components/drawer/drawer.meta.ts
|
|
1120
|
-
var
|
|
1130
|
+
var sr = {
|
|
1121
1131
|
name: "Drawer",
|
|
1122
1132
|
category: t.layout,
|
|
1123
1133
|
status: "stable",
|
|
@@ -1129,7 +1139,7 @@ var cr = {
|
|
|
1129
1139
|
docLink: "https://base-ui.com/react/components/drawer",
|
|
1130
1140
|
llmDocLink: "https://base-ui.com/react/components/drawer.md"
|
|
1131
1141
|
}
|
|
1132
|
-
},
|
|
1142
|
+
}, L = {
|
|
1133
1143
|
arrow: "imf-ui-popover-module-arrow",
|
|
1134
1144
|
backdrop: "imf-ui-popover-module-backdrop",
|
|
1135
1145
|
close: "imf-ui-popover-module-close",
|
|
@@ -1153,150 +1163,150 @@ var cr = {
|
|
|
1153
1163
|
variantPrimary: "imf-ui-popover-module-variantPrimary",
|
|
1154
1164
|
variantSecondary: "imf-ui-popover-module-variantSecondary",
|
|
1155
1165
|
viewport: "imf-ui-popover-module-viewport"
|
|
1156
|
-
},
|
|
1157
|
-
Arrow: () =>
|
|
1158
|
-
Backdrop: () =>
|
|
1159
|
-
Close: () =>
|
|
1160
|
-
Description: () =>
|
|
1161
|
-
Eyebrow: () =>
|
|
1162
|
-
Inline: () =>
|
|
1163
|
-
Popup: () =>
|
|
1164
|
-
Portal: () =>
|
|
1165
|
-
Positioner: () =>
|
|
1166
|
-
Root: () =>
|
|
1167
|
-
Title: () =>
|
|
1168
|
-
Trigger: () =>
|
|
1169
|
-
Viewport: () =>
|
|
1170
|
-
createHandle: () =>
|
|
1171
|
-
}),
|
|
1166
|
+
}, cr = /* @__PURE__ */ e({
|
|
1167
|
+
Arrow: () => Er,
|
|
1168
|
+
Backdrop: () => Cr,
|
|
1169
|
+
Close: () => jr,
|
|
1170
|
+
Description: () => Ar,
|
|
1171
|
+
Eyebrow: () => Or,
|
|
1172
|
+
Inline: () => Mr,
|
|
1173
|
+
Popup: () => Tr,
|
|
1174
|
+
Portal: () => Sr,
|
|
1175
|
+
Positioner: () => wr,
|
|
1176
|
+
Root: () => br,
|
|
1177
|
+
Title: () => kr,
|
|
1178
|
+
Trigger: () => xr,
|
|
1179
|
+
Viewport: () => Dr,
|
|
1180
|
+
createHandle: () => yr
|
|
1181
|
+
}), lr = h(L.trigger, { variants: {
|
|
1172
1182
|
variant: {
|
|
1173
|
-
ghost:
|
|
1174
|
-
outline:
|
|
1175
|
-
primary:
|
|
1176
|
-
secondary:
|
|
1177
|
-
positive:
|
|
1178
|
-
negative:
|
|
1183
|
+
ghost: L.variantGhost,
|
|
1184
|
+
outline: L.variantOutline,
|
|
1185
|
+
primary: L.variantPrimary,
|
|
1186
|
+
secondary: L.variantSecondary,
|
|
1187
|
+
positive: L.variantPositive,
|
|
1188
|
+
negative: L.variantNegative
|
|
1179
1189
|
},
|
|
1180
|
-
inline: { true:
|
|
1181
|
-
} }),
|
|
1182
|
-
ghost:
|
|
1183
|
-
outline:
|
|
1184
|
-
primary:
|
|
1185
|
-
secondary:
|
|
1186
|
-
positive:
|
|
1187
|
-
negative:
|
|
1188
|
-
} } }),
|
|
1189
|
-
function
|
|
1190
|
+
inline: { true: L.triggerInline }
|
|
1191
|
+
} }), ur = h(L.backdrop), dr = h(L.positioner), fr = h(L.popup, { variants: { variant: {
|
|
1192
|
+
ghost: L.popupVariantGhost,
|
|
1193
|
+
outline: L.popupVariantOutline,
|
|
1194
|
+
primary: L.popupVariantPrimary,
|
|
1195
|
+
secondary: L.popupVariantSecondary,
|
|
1196
|
+
positive: L.popupVariantPositive,
|
|
1197
|
+
negative: L.popupVariantNegative
|
|
1198
|
+
} } }), pr = h(L.arrow), mr = h(L.viewport), hr = h(L.eyebrow), gr = h(L.title), _r = h(L.description), vr = h(L.close), yr = S.createHandle;
|
|
1199
|
+
function br(e) {
|
|
1190
1200
|
return /* @__PURE__ */ _(S.Root, { ...e });
|
|
1191
1201
|
}
|
|
1192
|
-
|
|
1193
|
-
function
|
|
1202
|
+
br.displayName = "Popover.Root";
|
|
1203
|
+
function xr({ variant: e = "ghost", inline: t = !1, className: n, ...r }) {
|
|
1194
1204
|
return /* @__PURE__ */ _(S.Trigger, {
|
|
1195
1205
|
...r,
|
|
1196
1206
|
"data-imf-ui-component": "Popover.Trigger",
|
|
1197
|
-
className: (r) =>
|
|
1207
|
+
className: (r) => lr({
|
|
1198
1208
|
variant: e,
|
|
1199
1209
|
inline: t || void 0,
|
|
1200
1210
|
className: typeof n == "function" ? n(r) : n
|
|
1201
1211
|
})
|
|
1202
1212
|
});
|
|
1203
1213
|
}
|
|
1204
|
-
|
|
1205
|
-
function
|
|
1214
|
+
xr.displayName = "Popover.Trigger";
|
|
1215
|
+
function Sr(e) {
|
|
1206
1216
|
return /* @__PURE__ */ _(S.Portal, { ...e });
|
|
1207
1217
|
}
|
|
1208
|
-
|
|
1209
|
-
function
|
|
1218
|
+
Sr.displayName = "Popover.Portal";
|
|
1219
|
+
function Cr({ className: e, ...t }) {
|
|
1210
1220
|
return /* @__PURE__ */ _(S.Backdrop, {
|
|
1211
1221
|
...t,
|
|
1212
1222
|
"data-imf-ui-component": "Popover.Backdrop",
|
|
1213
|
-
className: (t) =>
|
|
1223
|
+
className: (t) => ur({ className: typeof e == "function" ? e(t) : e })
|
|
1214
1224
|
});
|
|
1215
1225
|
}
|
|
1216
|
-
|
|
1217
|
-
function
|
|
1226
|
+
Cr.displayName = "Popover.Backdrop";
|
|
1227
|
+
function wr({ className: e, ...t }) {
|
|
1218
1228
|
return /* @__PURE__ */ _(S.Positioner, {
|
|
1219
1229
|
...t,
|
|
1220
1230
|
"data-imf-ui-component": "Popover.Positioner",
|
|
1221
|
-
className: (t) =>
|
|
1231
|
+
className: (t) => dr({ className: typeof e == "function" ? e(t) : e })
|
|
1222
1232
|
});
|
|
1223
1233
|
}
|
|
1224
|
-
|
|
1225
|
-
function
|
|
1234
|
+
wr.displayName = "Popover.Positioner";
|
|
1235
|
+
function Tr({ className: e, variant: t, ...n }) {
|
|
1226
1236
|
return /* @__PURE__ */ _(S.Popup, {
|
|
1227
1237
|
...n,
|
|
1228
1238
|
"data-imf-ui-component": "Popover.Popup",
|
|
1229
|
-
className: (n) =>
|
|
1239
|
+
className: (n) => fr({
|
|
1230
1240
|
variant: t,
|
|
1231
1241
|
className: typeof e == "function" ? e(n) : e
|
|
1232
1242
|
})
|
|
1233
1243
|
});
|
|
1234
1244
|
}
|
|
1235
|
-
|
|
1236
|
-
function
|
|
1245
|
+
Tr.displayName = "Popover.Popup";
|
|
1246
|
+
function Er({ className: e, ...t }) {
|
|
1237
1247
|
return /* @__PURE__ */ _(S.Arrow, {
|
|
1238
1248
|
...t,
|
|
1239
1249
|
"data-imf-ui-component": "Popover.Arrow",
|
|
1240
|
-
className: (t) =>
|
|
1250
|
+
className: (t) => pr({ className: typeof e == "function" ? e(t) : e })
|
|
1241
1251
|
});
|
|
1242
1252
|
}
|
|
1243
|
-
|
|
1244
|
-
function
|
|
1253
|
+
Er.displayName = "Popover.Arrow";
|
|
1254
|
+
function Dr({ className: e, ...t }) {
|
|
1245
1255
|
return /* @__PURE__ */ _(S.Viewport, {
|
|
1246
1256
|
...t,
|
|
1247
1257
|
"data-imf-ui-component": "Popover.Viewport",
|
|
1248
|
-
className: (t) =>
|
|
1258
|
+
className: (t) => mr({ className: typeof e == "function" ? e(t) : e })
|
|
1249
1259
|
});
|
|
1250
1260
|
}
|
|
1251
|
-
|
|
1252
|
-
function
|
|
1261
|
+
Dr.displayName = "Popover.Viewport";
|
|
1262
|
+
function Or({ className: e, ...t }) {
|
|
1253
1263
|
return /* @__PURE__ */ _("p", {
|
|
1254
1264
|
...t,
|
|
1255
1265
|
"data-imf-ui-component": "Popover.Eyebrow",
|
|
1256
|
-
className:
|
|
1266
|
+
className: hr({ className: e })
|
|
1257
1267
|
});
|
|
1258
1268
|
}
|
|
1259
|
-
|
|
1260
|
-
function
|
|
1269
|
+
Or.displayName = "Popover.Eyebrow";
|
|
1270
|
+
function kr({ className: e, ...t }) {
|
|
1261
1271
|
return /* @__PURE__ */ _(S.Title, {
|
|
1262
1272
|
...t,
|
|
1263
1273
|
"data-imf-ui-component": "Popover.Title",
|
|
1264
|
-
className:
|
|
1274
|
+
className: gr({ className: e })
|
|
1265
1275
|
});
|
|
1266
1276
|
}
|
|
1267
|
-
|
|
1268
|
-
function
|
|
1277
|
+
kr.displayName = "Popover.Title";
|
|
1278
|
+
function Ar({ className: e, ...t }) {
|
|
1269
1279
|
return /* @__PURE__ */ _(S.Description, {
|
|
1270
1280
|
...t,
|
|
1271
1281
|
"data-imf-ui-component": "Popover.Description",
|
|
1272
|
-
className:
|
|
1282
|
+
className: _r({ className: e })
|
|
1273
1283
|
});
|
|
1274
1284
|
}
|
|
1275
|
-
|
|
1276
|
-
function
|
|
1285
|
+
Ar.displayName = "Popover.Description";
|
|
1286
|
+
function jr({ className: e, ...t }) {
|
|
1277
1287
|
return /* @__PURE__ */ _(S.Close, {
|
|
1278
1288
|
...t,
|
|
1279
1289
|
"data-imf-ui-component": "Popover.Close",
|
|
1280
|
-
className: (t) =>
|
|
1290
|
+
className: (t) => vr({ className: typeof e == "function" ? e(t) : e })
|
|
1281
1291
|
});
|
|
1282
1292
|
}
|
|
1283
|
-
|
|
1284
|
-
function
|
|
1285
|
-
return /* @__PURE__ */ v(
|
|
1293
|
+
jr.displayName = "Popover.Close";
|
|
1294
|
+
function Mr({ trigger: e, title: t, children: n, delay: r = 150, side: i = "top", sideOffset: a = 6 }) {
|
|
1295
|
+
return /* @__PURE__ */ v(br, { children: [/* @__PURE__ */ _(xr, {
|
|
1286
1296
|
inline: !0,
|
|
1287
1297
|
openOnHover: !0,
|
|
1288
1298
|
delay: r,
|
|
1289
1299
|
children: e
|
|
1290
|
-
}), /* @__PURE__ */ _(
|
|
1300
|
+
}), /* @__PURE__ */ _(Sr, { children: /* @__PURE__ */ _(wr, {
|
|
1291
1301
|
side: i,
|
|
1292
1302
|
sideOffset: a,
|
|
1293
|
-
children: /* @__PURE__ */ v(
|
|
1303
|
+
children: /* @__PURE__ */ v(Tr, { children: [t && /* @__PURE__ */ _(kr, { children: t }), n && /* @__PURE__ */ _(Ar, { children: n })] })
|
|
1294
1304
|
}) })] });
|
|
1295
1305
|
}
|
|
1296
|
-
|
|
1306
|
+
Mr.displayName = "Popover.Inline";
|
|
1297
1307
|
//#endregion
|
|
1298
1308
|
//#region src/components/popover/popover.meta.ts
|
|
1299
|
-
var
|
|
1309
|
+
var Nr = {
|
|
1300
1310
|
name: "Popover",
|
|
1301
1311
|
category: t.display,
|
|
1302
1312
|
status: "stable",
|
|
@@ -1308,28 +1318,28 @@ var Pr = {
|
|
|
1308
1318
|
docLink: "https://base-ui.com/react/components/popover",
|
|
1309
1319
|
llmDocLink: "https://base-ui.com/react/components/popover.md"
|
|
1310
1320
|
}
|
|
1311
|
-
},
|
|
1321
|
+
}, Pr = {
|
|
1312
1322
|
name: "Row",
|
|
1313
1323
|
category: t.layout,
|
|
1314
1324
|
status: "stable",
|
|
1315
1325
|
description: "Horizontal layout primitive for spacing, aligning, and wrapping children. Also called a horizontal stack or flex row.",
|
|
1316
1326
|
origin: "native"
|
|
1317
|
-
},
|
|
1327
|
+
}, R = {
|
|
1318
1328
|
root: "imf-ui-separator-module-root",
|
|
1319
1329
|
variantDashed: "imf-ui-separator-module-variantDashed",
|
|
1320
1330
|
variantDotted: "imf-ui-separator-module-variantDotted",
|
|
1321
1331
|
variantSolid: "imf-ui-separator-module-variantSolid"
|
|
1322
|
-
},
|
|
1323
|
-
solid:
|
|
1324
|
-
dashed:
|
|
1325
|
-
dotted:
|
|
1332
|
+
}, Fr = h(R.root, { variants: { variant: {
|
|
1333
|
+
solid: R.variantSolid,
|
|
1334
|
+
dashed: R.variantDashed,
|
|
1335
|
+
dotted: R.variantDotted
|
|
1326
1336
|
} } });
|
|
1327
|
-
function
|
|
1337
|
+
function Ir({ orientation: e = "horizontal", variant: t = "solid", className: n, ...r }) {
|
|
1328
1338
|
return /* @__PURE__ */ _(ke, {
|
|
1329
1339
|
...r,
|
|
1330
1340
|
orientation: e,
|
|
1331
1341
|
"data-imf-ui-component": "Separator",
|
|
1332
|
-
className:
|
|
1342
|
+
className: Fr({
|
|
1333
1343
|
variant: t,
|
|
1334
1344
|
className: n
|
|
1335
1345
|
})
|
|
@@ -1337,7 +1347,7 @@ function Lr({ orientation: e = "horizontal", variant: t = "solid", className: n,
|
|
|
1337
1347
|
}
|
|
1338
1348
|
//#endregion
|
|
1339
1349
|
//#region src/components/separator/separator.meta.ts
|
|
1340
|
-
var
|
|
1350
|
+
var Lr = {
|
|
1341
1351
|
name: "Separator",
|
|
1342
1352
|
category: t.layout,
|
|
1343
1353
|
status: "stable",
|
|
@@ -1349,13 +1359,13 @@ var Rr = {
|
|
|
1349
1359
|
docLink: "https://base-ui.com/react/components/separator",
|
|
1350
1360
|
llmDocLink: "https://base-ui.com/react/components/separator.md"
|
|
1351
1361
|
}
|
|
1352
|
-
},
|
|
1362
|
+
}, Rr = {
|
|
1353
1363
|
name: "Stack",
|
|
1354
1364
|
category: t.layout,
|
|
1355
1365
|
status: "stable",
|
|
1356
1366
|
description: "Vertical layout primitive for spacing and aligning children. Also called a vertical stack or column.",
|
|
1357
1367
|
origin: "native"
|
|
1358
|
-
},
|
|
1368
|
+
}, z = {
|
|
1359
1369
|
description: "imf-ui-callout-module-description",
|
|
1360
1370
|
icon: "imf-ui-callout-module-icon",
|
|
1361
1371
|
maxWidthFull: "imf-ui-callout-module-maxWidthFull",
|
|
@@ -1371,28 +1381,28 @@ var Rr = {
|
|
|
1371
1381
|
variantNegative: "imf-ui-callout-module-variantNegative",
|
|
1372
1382
|
variantPositive: "imf-ui-callout-module-variantPositive",
|
|
1373
1383
|
variantWarning: "imf-ui-callout-module-variantWarning"
|
|
1374
|
-
},
|
|
1375
|
-
Description: () =>
|
|
1376
|
-
Icon: () =>
|
|
1377
|
-
Root: () =>
|
|
1378
|
-
Title: () =>
|
|
1379
|
-
}),
|
|
1384
|
+
}, zr = /* @__PURE__ */ e({
|
|
1385
|
+
Description: () => Kr,
|
|
1386
|
+
Icon: () => Wr,
|
|
1387
|
+
Root: () => Ur,
|
|
1388
|
+
Title: () => Gr
|
|
1389
|
+
}), Br = h(z.root, { variants: {
|
|
1380
1390
|
variant: {
|
|
1381
|
-
info:
|
|
1382
|
-
positive:
|
|
1383
|
-
warning:
|
|
1384
|
-
negative:
|
|
1385
|
-
"accent-1":
|
|
1386
|
-
"accent-2":
|
|
1387
|
-
"accent-3":
|
|
1391
|
+
info: z.variantInfo,
|
|
1392
|
+
positive: z.variantPositive,
|
|
1393
|
+
warning: z.variantWarning,
|
|
1394
|
+
negative: z.variantNegative,
|
|
1395
|
+
"accent-1": z.variantAccent1,
|
|
1396
|
+
"accent-2": z.variantAccent2,
|
|
1397
|
+
"accent-3": z.variantAccent3
|
|
1388
1398
|
},
|
|
1389
1399
|
maxWidth: {
|
|
1390
|
-
sm:
|
|
1391
|
-
md:
|
|
1392
|
-
lg:
|
|
1393
|
-
full:
|
|
1400
|
+
sm: z.maxWidthSm,
|
|
1401
|
+
md: z.maxWidthMd,
|
|
1402
|
+
lg: z.maxWidthLg,
|
|
1403
|
+
full: z.maxWidthFull
|
|
1394
1404
|
}
|
|
1395
|
-
} }),
|
|
1405
|
+
} }), Vr = {
|
|
1396
1406
|
info: s,
|
|
1397
1407
|
positive: o,
|
|
1398
1408
|
warning: d,
|
|
@@ -1400,16 +1410,16 @@ var Rr = {
|
|
|
1400
1410
|
"accent-1": f,
|
|
1401
1411
|
"accent-2": f,
|
|
1402
1412
|
"accent-3": f
|
|
1403
|
-
},
|
|
1404
|
-
function
|
|
1413
|
+
}, Hr = xe("info");
|
|
1414
|
+
function Ur({ variant: e = "info", maxWidth: t = "md", className: n, children: r, ...i }) {
|
|
1405
1415
|
let a = e ?? "info";
|
|
1406
|
-
return /* @__PURE__ */ _(
|
|
1416
|
+
return /* @__PURE__ */ _(Hr.Provider, {
|
|
1407
1417
|
value: a,
|
|
1408
1418
|
children: /* @__PURE__ */ _("div", {
|
|
1409
1419
|
...i,
|
|
1410
1420
|
role: "note",
|
|
1411
1421
|
"data-imf-ui-component": "Callout.Root",
|
|
1412
|
-
className:
|
|
1422
|
+
className: Br({
|
|
1413
1423
|
variant: e,
|
|
1414
1424
|
maxWidth: t,
|
|
1415
1425
|
className: n
|
|
@@ -1418,14 +1428,14 @@ function Wr({ variant: e = "info", maxWidth: t = "md", className: n, children: r
|
|
|
1418
1428
|
})
|
|
1419
1429
|
});
|
|
1420
1430
|
}
|
|
1421
|
-
|
|
1422
|
-
function
|
|
1423
|
-
let r =
|
|
1431
|
+
Ur.displayName = "Callout.Root";
|
|
1432
|
+
function Wr({ className: e, children: t, ...n }) {
|
|
1433
|
+
let r = Vr[Se(Hr)];
|
|
1424
1434
|
return /* @__PURE__ */ _("span", {
|
|
1425
1435
|
...n,
|
|
1426
1436
|
"aria-hidden": !0,
|
|
1427
1437
|
"data-imf-ui-component": "Callout.Icon",
|
|
1428
|
-
className: h(
|
|
1438
|
+
className: h(z.icon)({ className: e }),
|
|
1429
1439
|
children: t ?? /* @__PURE__ */ _(m, {
|
|
1430
1440
|
glyph: r,
|
|
1431
1441
|
size: 24,
|
|
@@ -1433,26 +1443,26 @@ function Gr({ className: e, children: t, ...n }) {
|
|
|
1433
1443
|
})
|
|
1434
1444
|
});
|
|
1435
1445
|
}
|
|
1436
|
-
|
|
1437
|
-
function
|
|
1446
|
+
Wr.displayName = "Callout.Icon";
|
|
1447
|
+
function Gr({ className: e, ...t }) {
|
|
1438
1448
|
return /* @__PURE__ */ _("div", {
|
|
1439
1449
|
...t,
|
|
1440
1450
|
"data-imf-ui-component": "Callout.Title",
|
|
1441
|
-
className: h(
|
|
1451
|
+
className: h(z.title)({ className: e })
|
|
1442
1452
|
});
|
|
1443
1453
|
}
|
|
1444
|
-
|
|
1445
|
-
function
|
|
1454
|
+
Gr.displayName = "Callout.Title";
|
|
1455
|
+
function Kr({ className: e, ...t }) {
|
|
1446
1456
|
return /* @__PURE__ */ _("div", {
|
|
1447
1457
|
...t,
|
|
1448
1458
|
"data-imf-ui-component": "Callout.Description",
|
|
1449
|
-
className: h(
|
|
1459
|
+
className: h(z.description)({ className: e })
|
|
1450
1460
|
});
|
|
1451
1461
|
}
|
|
1452
|
-
|
|
1462
|
+
Kr.displayName = "Callout.Description";
|
|
1453
1463
|
//#endregion
|
|
1454
1464
|
//#region src/components/callout/callout.meta.ts
|
|
1455
|
-
var
|
|
1465
|
+
var qr = {
|
|
1456
1466
|
name: "Callout",
|
|
1457
1467
|
category: t.display,
|
|
1458
1468
|
status: "stable",
|
|
@@ -1462,7 +1472,7 @@ var Jr = {
|
|
|
1462
1472
|
};
|
|
1463
1473
|
//#endregion
|
|
1464
1474
|
//#region src/components/chip/chip.tsx
|
|
1465
|
-
function
|
|
1475
|
+
function Jr({ variant: e = "minor", appearance: t = "outline", inline: n = !1, className: r, ...i }) {
|
|
1466
1476
|
return /* @__PURE__ */ _("span", {
|
|
1467
1477
|
...i,
|
|
1468
1478
|
"data-imf-ui-component": "Chip",
|
|
@@ -1477,48 +1487,48 @@ function Yr({ variant: e = "minor", appearance: t = "outline", inline: n = !1, c
|
|
|
1477
1487
|
}
|
|
1478
1488
|
//#endregion
|
|
1479
1489
|
//#region src/components/chip/chip.meta.ts
|
|
1480
|
-
var
|
|
1490
|
+
var Yr = {
|
|
1481
1491
|
name: "Chip",
|
|
1482
1492
|
category: t.display,
|
|
1483
1493
|
status: "stable",
|
|
1484
1494
|
description: "Compact label for tags, status, categories, counts, and metadata. Also called a badge or tag; its color and appearance are independent choices.",
|
|
1485
1495
|
origin: "native"
|
|
1486
|
-
},
|
|
1496
|
+
}, B = {
|
|
1487
1497
|
iconClosed: "imf-ui-collapsible-module-iconClosed",
|
|
1488
1498
|
iconOpen: "imf-ui-collapsible-module-iconOpen",
|
|
1489
1499
|
panel: "imf-ui-collapsible-module-panel",
|
|
1490
1500
|
root: "imf-ui-collapsible-module-root",
|
|
1491
1501
|
trigger: "imf-ui-collapsible-module-trigger",
|
|
1492
1502
|
variantSolid: "imf-ui-collapsible-module-variantSolid"
|
|
1493
|
-
},
|
|
1494
|
-
Panel: () =>
|
|
1495
|
-
Root: () =>
|
|
1496
|
-
Trigger: () =>
|
|
1497
|
-
}),
|
|
1503
|
+
}, Xr = /* @__PURE__ */ e({
|
|
1504
|
+
Panel: () => ni,
|
|
1505
|
+
Root: () => Qr,
|
|
1506
|
+
Trigger: () => ei
|
|
1507
|
+
}), Zr = h(B.root, { variants: { variant: {
|
|
1498
1508
|
default: null,
|
|
1499
|
-
solid:
|
|
1509
|
+
solid: B.variantSolid
|
|
1500
1510
|
} } });
|
|
1501
|
-
function
|
|
1511
|
+
function Qr({ variant: e = "default", className: t, ...n }) {
|
|
1502
1512
|
return /* @__PURE__ */ _(Ae.Root, {
|
|
1503
1513
|
...n,
|
|
1504
1514
|
"data-imf-ui-component": "Collapsible.Root",
|
|
1505
|
-
className: (n) =>
|
|
1515
|
+
className: (n) => Zr({
|
|
1506
1516
|
variant: e,
|
|
1507
1517
|
className: typeof t == "function" ? t(n) : t
|
|
1508
1518
|
})
|
|
1509
1519
|
});
|
|
1510
1520
|
}
|
|
1511
|
-
|
|
1512
|
-
var
|
|
1513
|
-
function
|
|
1521
|
+
Qr.displayName = "Collapsible.Root";
|
|
1522
|
+
var $r = h(B.trigger);
|
|
1523
|
+
function ei({ className: e, children: t, ...n }) {
|
|
1514
1524
|
return /* @__PURE__ */ v(Ae.Trigger, {
|
|
1515
1525
|
...n,
|
|
1516
1526
|
"data-imf-ui-component": "Collapsible.Trigger",
|
|
1517
|
-
className: (t) =>
|
|
1527
|
+
className: (t) => $r({ className: typeof e == "function" ? e(t) : e }),
|
|
1518
1528
|
children: [
|
|
1519
1529
|
t,
|
|
1520
1530
|
/* @__PURE__ */ _("span", {
|
|
1521
|
-
className:
|
|
1531
|
+
className: B.iconClosed,
|
|
1522
1532
|
"aria-hidden": !0,
|
|
1523
1533
|
children: /* @__PURE__ */ _(m, {
|
|
1524
1534
|
glyph: i,
|
|
@@ -1527,7 +1537,7 @@ function ti({ className: e, children: t, ...n }) {
|
|
|
1527
1537
|
})
|
|
1528
1538
|
}),
|
|
1529
1539
|
/* @__PURE__ */ _("span", {
|
|
1530
|
-
className:
|
|
1540
|
+
className: B.iconOpen,
|
|
1531
1541
|
"aria-hidden": !0,
|
|
1532
1542
|
children: /* @__PURE__ */ _(m, {
|
|
1533
1543
|
glyph: l,
|
|
@@ -1538,19 +1548,19 @@ function ti({ className: e, children: t, ...n }) {
|
|
|
1538
1548
|
]
|
|
1539
1549
|
});
|
|
1540
1550
|
}
|
|
1541
|
-
|
|
1542
|
-
var
|
|
1543
|
-
function
|
|
1551
|
+
ei.displayName = "Collapsible.Trigger";
|
|
1552
|
+
var ti = h(B.panel);
|
|
1553
|
+
function ni({ className: e, ...t }) {
|
|
1544
1554
|
return /* @__PURE__ */ _(Ae.Panel, {
|
|
1545
1555
|
...t,
|
|
1546
1556
|
"data-imf-ui-component": "Collapsible.Panel",
|
|
1547
|
-
className: (t) =>
|
|
1557
|
+
className: (t) => ti({ className: typeof e == "function" ? e(t) : e })
|
|
1548
1558
|
});
|
|
1549
1559
|
}
|
|
1550
|
-
|
|
1560
|
+
ni.displayName = "Collapsible.Panel";
|
|
1551
1561
|
//#endregion
|
|
1552
1562
|
//#region src/components/collapsible/collapsible.meta.ts
|
|
1553
|
-
var
|
|
1563
|
+
var ri = {
|
|
1554
1564
|
name: "Collapsible",
|
|
1555
1565
|
category: t.display,
|
|
1556
1566
|
status: "stable",
|
|
@@ -1562,7 +1572,7 @@ var ii = {
|
|
|
1562
1572
|
docLink: "https://base-ui.com/react/components/collapsible",
|
|
1563
1573
|
llmDocLink: "https://base-ui.com/react/components/collapsible.md"
|
|
1564
1574
|
}
|
|
1565
|
-
},
|
|
1575
|
+
}, V = {
|
|
1566
1576
|
root: "imf-ui-logo-module-root",
|
|
1567
1577
|
sizeFit: "imf-ui-logo-module-sizeFit",
|
|
1568
1578
|
sizeHero: "imf-ui-logo-module-sizeHero",
|
|
@@ -1577,30 +1587,30 @@ var ii = {
|
|
|
1577
1587
|
variantMinor: "imf-ui-logo-module-variantMinor",
|
|
1578
1588
|
variantOncolor: "imf-ui-logo-module-variantOncolor",
|
|
1579
1589
|
variantSupport: "imf-ui-logo-module-variantSupport"
|
|
1580
|
-
},
|
|
1590
|
+
}, ii = h(V.root, { variants: {
|
|
1581
1591
|
size: {
|
|
1582
|
-
xs:
|
|
1583
|
-
sm:
|
|
1584
|
-
md:
|
|
1585
|
-
lg:
|
|
1586
|
-
xl:
|
|
1587
|
-
hero:
|
|
1588
|
-
fit:
|
|
1592
|
+
xs: V.sizeXs,
|
|
1593
|
+
sm: V.sizeSm,
|
|
1594
|
+
md: V.sizeMd,
|
|
1595
|
+
lg: V.sizeLg,
|
|
1596
|
+
xl: V.sizeXl,
|
|
1597
|
+
hero: V.sizeHero,
|
|
1598
|
+
fit: V.sizeFit
|
|
1589
1599
|
},
|
|
1590
1600
|
variant: {
|
|
1591
|
-
inherit:
|
|
1592
|
-
main:
|
|
1593
|
-
support:
|
|
1594
|
-
minor:
|
|
1595
|
-
brand:
|
|
1596
|
-
oncolor:
|
|
1601
|
+
inherit: V.variantInherit,
|
|
1602
|
+
main: V.variantMain,
|
|
1603
|
+
support: V.variantSupport,
|
|
1604
|
+
minor: V.variantMinor,
|
|
1605
|
+
brand: V.variantBrand,
|
|
1606
|
+
oncolor: V.variantOncolor
|
|
1597
1607
|
}
|
|
1598
1608
|
} });
|
|
1599
|
-
function
|
|
1609
|
+
function ai({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, className: a, style: o, ...s }) {
|
|
1600
1610
|
return /* @__PURE__ */ _("span", {
|
|
1601
1611
|
...s,
|
|
1602
1612
|
"data-imf-ui-component": "Logo",
|
|
1603
|
-
className:
|
|
1613
|
+
className: ii({
|
|
1604
1614
|
size: n,
|
|
1605
1615
|
variant: r,
|
|
1606
1616
|
className: a
|
|
@@ -1620,7 +1630,7 @@ function oi({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, c
|
|
|
1620
1630
|
}
|
|
1621
1631
|
//#endregion
|
|
1622
1632
|
//#region src/components/logo/logo.meta.ts
|
|
1623
|
-
var
|
|
1633
|
+
var oi = {
|
|
1624
1634
|
name: "Logo",
|
|
1625
1635
|
category: t.display,
|
|
1626
1636
|
status: "stable",
|
|
@@ -1629,7 +1639,7 @@ var si = {
|
|
|
1629
1639
|
};
|
|
1630
1640
|
//#endregion
|
|
1631
1641
|
//#region src/components/logo/imfusion/imfusion.tsx
|
|
1632
|
-
function
|
|
1642
|
+
function si(e) {
|
|
1633
1643
|
return /* @__PURE__ */ v("svg", {
|
|
1634
1644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1635
1645
|
viewBox: "50 50 652.51 90",
|
|
@@ -1654,7 +1664,7 @@ function ci(e) {
|
|
|
1654
1664
|
]
|
|
1655
1665
|
});
|
|
1656
1666
|
}
|
|
1657
|
-
function
|
|
1667
|
+
function ci(e) {
|
|
1658
1668
|
return /* @__PURE__ */ v("svg", {
|
|
1659
1669
|
viewBox: "0 0 384 216",
|
|
1660
1670
|
fill: "currentColor",
|
|
@@ -1663,149 +1673,149 @@ function li(e) {
|
|
|
1663
1673
|
children: [/* @__PURE__ */ _("path", { d: "M384 216H0V191.572L284.499 153.679L384 79.1303V216Z" }), /* @__PURE__ */ _("path", { d: "M384 24.4271L99.501 62.3215L0 136.869V0H384V24.4271Z" })]
|
|
1664
1674
|
});
|
|
1665
1675
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return /* @__PURE__ */ _(
|
|
1676
|
+
function li({ glyph: e = !1, alt: t = "ImFusion", variant: n = "brand", ...r }) {
|
|
1677
|
+
return /* @__PURE__ */ _(ai, {
|
|
1668
1678
|
...r,
|
|
1669
|
-
src: _(e ?
|
|
1679
|
+
src: _(e ? ci : si, {}),
|
|
1670
1680
|
alt: t,
|
|
1671
1681
|
variant: n
|
|
1672
1682
|
});
|
|
1673
1683
|
}
|
|
1674
|
-
var
|
|
1684
|
+
var ui = {
|
|
1675
1685
|
item: "imf-ui-navigation-menu-root-module-item",
|
|
1676
1686
|
list: "imf-ui-navigation-menu-root-module-list",
|
|
1677
1687
|
root: "imf-ui-navigation-menu-root-module-root"
|
|
1678
|
-
},
|
|
1688
|
+
}, di = {
|
|
1679
1689
|
content: "imf-ui-navigation-menu-structure-module-content",
|
|
1680
1690
|
viewport: "imf-ui-navigation-menu-structure-module-viewport"
|
|
1681
|
-
},
|
|
1682
|
-
function
|
|
1691
|
+
}, fi = h(ui.root), pi = h(ui.list), mi = h(ui.item), hi = h(di.content), gi = h(di.viewport);
|
|
1692
|
+
function _i({ orientation: e = "horizontal", className: t, ...n }) {
|
|
1683
1693
|
return /* @__PURE__ */ _(T.Root, {
|
|
1684
1694
|
...n,
|
|
1685
1695
|
orientation: e,
|
|
1686
1696
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1687
1697
|
"data-orientation": e,
|
|
1688
|
-
className: (e) =>
|
|
1698
|
+
className: (e) => fi({ className: typeof t == "function" ? t(e) : t })
|
|
1689
1699
|
});
|
|
1690
1700
|
}
|
|
1691
|
-
|
|
1692
|
-
function
|
|
1701
|
+
_i.displayName = "NavigationMenu.Root";
|
|
1702
|
+
function vi({ className: e, ...t }) {
|
|
1693
1703
|
return /* @__PURE__ */ _(T.List, {
|
|
1694
1704
|
...t,
|
|
1695
1705
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1696
|
-
className: (t) =>
|
|
1706
|
+
className: (t) => pi({ className: typeof e == "function" ? e(t) : e })
|
|
1697
1707
|
});
|
|
1698
1708
|
}
|
|
1699
|
-
|
|
1700
|
-
function
|
|
1709
|
+
vi.displayName = "NavigationMenu.List";
|
|
1710
|
+
function yi({ className: e, ...t }) {
|
|
1701
1711
|
return /* @__PURE__ */ _(T.Item, {
|
|
1702
1712
|
...t,
|
|
1703
1713
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
1704
|
-
className: (t) =>
|
|
1714
|
+
className: (t) => mi({ className: typeof e == "function" ? e(t) : e })
|
|
1705
1715
|
});
|
|
1706
1716
|
}
|
|
1707
|
-
|
|
1708
|
-
function
|
|
1717
|
+
yi.displayName = "NavigationMenu.Item";
|
|
1718
|
+
function bi({ className: e, ...t }) {
|
|
1709
1719
|
return /* @__PURE__ */ _(T.Content, {
|
|
1710
1720
|
...t,
|
|
1711
1721
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
1712
|
-
className: (t) =>
|
|
1722
|
+
className: (t) => hi({ className: typeof e == "function" ? e(t) : e })
|
|
1713
1723
|
});
|
|
1714
1724
|
}
|
|
1715
|
-
|
|
1716
|
-
function
|
|
1725
|
+
bi.displayName = "NavigationMenu.Content";
|
|
1726
|
+
function xi({ className: e, ...t }) {
|
|
1717
1727
|
return /* @__PURE__ */ _(T.Viewport, {
|
|
1718
1728
|
...t,
|
|
1719
1729
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
1720
|
-
className: (t) =>
|
|
1730
|
+
className: (t) => gi({ className: typeof e == "function" ? e(t) : e })
|
|
1721
1731
|
});
|
|
1722
1732
|
}
|
|
1723
|
-
|
|
1724
|
-
var
|
|
1733
|
+
xi.displayName = "NavigationMenu.Viewport";
|
|
1734
|
+
var Si = {
|
|
1725
1735
|
icon: "imf-ui-navigation-menu-trigger-module-icon",
|
|
1726
1736
|
trigger: "imf-ui-navigation-menu-trigger-module-trigger"
|
|
1727
|
-
},
|
|
1728
|
-
function
|
|
1737
|
+
}, Ci = h(Si.trigger), wi = h(Si.icon);
|
|
1738
|
+
function Ti({ active: e = !1, hideChevron: t = !1, nested: n = !1, children: r, className: a, ...o }) {
|
|
1729
1739
|
return /* @__PURE__ */ v(T.Trigger, {
|
|
1730
1740
|
...o,
|
|
1731
1741
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
1732
1742
|
"data-active": e ? "" : void 0,
|
|
1733
1743
|
"data-nested": n ? "" : void 0,
|
|
1734
|
-
className: (e) =>
|
|
1735
|
-
children: [r, !t && /* @__PURE__ */ _(
|
|
1744
|
+
className: (e) => Ci({ className: typeof a == "function" ? a(e) : a }),
|
|
1745
|
+
children: [r, !t && /* @__PURE__ */ _(Ei, { children: /* @__PURE__ */ _(m, {
|
|
1736
1746
|
glyph: i,
|
|
1737
1747
|
size: 14
|
|
1738
1748
|
}) })]
|
|
1739
1749
|
});
|
|
1740
1750
|
}
|
|
1741
|
-
|
|
1742
|
-
function
|
|
1751
|
+
Ti.displayName = "NavigationMenu.Trigger";
|
|
1752
|
+
function Ei({ className: e, ...t }) {
|
|
1743
1753
|
return /* @__PURE__ */ _(T.Icon, {
|
|
1744
1754
|
...t,
|
|
1745
1755
|
"data-imf-ui-component": "NavigationMenu.Icon",
|
|
1746
|
-
className: (t) =>
|
|
1756
|
+
className: (t) => wi({ className: typeof e == "function" ? e(t) : e })
|
|
1747
1757
|
});
|
|
1748
1758
|
}
|
|
1749
|
-
|
|
1750
|
-
var
|
|
1759
|
+
Ei.displayName = "NavigationMenu.Icon";
|
|
1760
|
+
var H = {
|
|
1751
1761
|
arrow: "imf-ui-navigation-menu-overlay-module-arrow",
|
|
1752
1762
|
backdrop: "imf-ui-navigation-menu-overlay-module-backdrop",
|
|
1753
1763
|
popup: "imf-ui-navigation-menu-overlay-module-popup",
|
|
1754
1764
|
positioner: "imf-ui-navigation-menu-overlay-module-positioner"
|
|
1755
|
-
},
|
|
1756
|
-
function
|
|
1765
|
+
}, Di = h(H.positioner), Oi = h(H.popup), ki = h(H.arrow), Ai = h(H.backdrop);
|
|
1766
|
+
function ji(e) {
|
|
1757
1767
|
return /* @__PURE__ */ _(T.Portal, { ...e });
|
|
1758
1768
|
}
|
|
1759
|
-
|
|
1760
|
-
function
|
|
1769
|
+
ji.displayName = "NavigationMenu.Portal";
|
|
1770
|
+
function Mi({ align: e = "start", className: t, ...n }) {
|
|
1761
1771
|
return /* @__PURE__ */ _(T.Positioner, {
|
|
1762
1772
|
...n,
|
|
1763
1773
|
align: e,
|
|
1764
1774
|
"data-imf-ui-component": "NavigationMenu.Positioner",
|
|
1765
|
-
className: (e) =>
|
|
1775
|
+
className: (e) => Di({ className: typeof t == "function" ? t(e) : t })
|
|
1766
1776
|
});
|
|
1767
1777
|
}
|
|
1768
|
-
|
|
1769
|
-
function
|
|
1778
|
+
Mi.displayName = "NavigationMenu.Positioner";
|
|
1779
|
+
function Ni({ className: e, ...t }) {
|
|
1770
1780
|
return /* @__PURE__ */ _(T.Popup, {
|
|
1771
1781
|
...t,
|
|
1772
1782
|
"data-imf-ui-component": "NavigationMenu.Popup",
|
|
1773
|
-
className: (t) =>
|
|
1783
|
+
className: (t) => Oi({ className: typeof e == "function" ? e(t) : e })
|
|
1774
1784
|
});
|
|
1775
1785
|
}
|
|
1776
|
-
|
|
1777
|
-
function
|
|
1786
|
+
Ni.displayName = "NavigationMenu.Popup";
|
|
1787
|
+
function Pi({ className: e, ...t }) {
|
|
1778
1788
|
return /* @__PURE__ */ _(T.Arrow, {
|
|
1779
1789
|
...t,
|
|
1780
1790
|
"data-imf-ui-component": "NavigationMenu.Arrow",
|
|
1781
|
-
className: (t) =>
|
|
1791
|
+
className: (t) => ki({ className: typeof e == "function" ? e(t) : e })
|
|
1782
1792
|
});
|
|
1783
1793
|
}
|
|
1784
|
-
|
|
1785
|
-
function
|
|
1794
|
+
Pi.displayName = "NavigationMenu.Arrow";
|
|
1795
|
+
function Fi({ className: e, ...t }) {
|
|
1786
1796
|
return /* @__PURE__ */ _(T.Backdrop, {
|
|
1787
1797
|
...t,
|
|
1788
1798
|
"data-imf-ui-component": "NavigationMenu.Backdrop",
|
|
1789
|
-
className: (t) =>
|
|
1799
|
+
className: (t) => Ai({ className: typeof e == "function" ? e(t) : e })
|
|
1790
1800
|
});
|
|
1791
1801
|
}
|
|
1792
|
-
|
|
1793
|
-
var
|
|
1802
|
+
Fi.displayName = "NavigationMenu.Backdrop";
|
|
1803
|
+
var U = {
|
|
1794
1804
|
link: "imf-ui-navigation-menu-link-module-link",
|
|
1795
1805
|
linkArrow: "imf-ui-navigation-menu-link-module-linkArrow",
|
|
1796
1806
|
linkCard: "imf-ui-navigation-menu-link-module-linkCard",
|
|
1797
1807
|
linkCardDescription: "imf-ui-navigation-menu-link-module-linkCardDescription",
|
|
1798
1808
|
linkCardTitle: "imf-ui-navigation-menu-link-module-linkCardTitle",
|
|
1799
1809
|
linkList: "imf-ui-navigation-menu-link-module-linkList"
|
|
1800
|
-
},
|
|
1801
|
-
function
|
|
1810
|
+
}, Ii = h(U.link), Li = h(U.linkList), Ri = h(U.linkCard);
|
|
1811
|
+
function zi({ className: e, children: t, render: n, ...r }) {
|
|
1802
1812
|
return /* @__PURE__ */ _(T.Link, {
|
|
1803
1813
|
...r,
|
|
1804
1814
|
render: n,
|
|
1805
1815
|
"data-imf-ui-component": "NavigationMenu.Link",
|
|
1806
|
-
className: (t) =>
|
|
1816
|
+
className: (t) => Ii({ className: typeof e == "function" ? e(t) : e }),
|
|
1807
1817
|
children: n ? t : /* @__PURE__ */ v(ye, { children: [t, /* @__PURE__ */ _("span", {
|
|
1808
|
-
className:
|
|
1818
|
+
className: U.linkArrow,
|
|
1809
1819
|
"aria-hidden": !0,
|
|
1810
1820
|
children: /* @__PURE__ */ _(m, {
|
|
1811
1821
|
glyph: c,
|
|
@@ -1814,54 +1824,54 @@ function Bi({ className: e, children: t, render: n, ...r }) {
|
|
|
1814
1824
|
})] })
|
|
1815
1825
|
});
|
|
1816
1826
|
}
|
|
1817
|
-
|
|
1818
|
-
function
|
|
1827
|
+
zi.displayName = "NavigationMenu.Link";
|
|
1828
|
+
function Bi({ className: e, ...t }) {
|
|
1819
1829
|
return /* @__PURE__ */ _("ul", {
|
|
1820
1830
|
...t,
|
|
1821
1831
|
"data-imf-ui-component": "NavigationMenu.LinkList",
|
|
1822
|
-
className:
|
|
1832
|
+
className: Li({ className: e })
|
|
1823
1833
|
});
|
|
1824
1834
|
}
|
|
1825
|
-
|
|
1826
|
-
function
|
|
1835
|
+
Bi.displayName = "NavigationMenu.LinkList";
|
|
1836
|
+
function Vi({ title: e, description: t, image: n, imageAlt: r = "", className: i, ...a }) {
|
|
1827
1837
|
return /* @__PURE__ */ _(T.Link, {
|
|
1828
1838
|
...a,
|
|
1829
1839
|
"data-imf-ui-component": "NavigationMenu.LinkCard",
|
|
1830
|
-
className: (e) =>
|
|
1831
|
-
children: /* @__PURE__ */ v(
|
|
1840
|
+
className: (e) => Ri({ className: typeof i == "function" ? i(e) : i }),
|
|
1841
|
+
children: /* @__PURE__ */ v(Dn, {
|
|
1832
1842
|
variant: "main",
|
|
1833
1843
|
density: "compact",
|
|
1834
1844
|
withBorder: !1,
|
|
1835
1845
|
children: [
|
|
1836
|
-
n && /* @__PURE__ */ _(
|
|
1846
|
+
n && /* @__PURE__ */ _(On, {
|
|
1837
1847
|
src: n,
|
|
1838
1848
|
alt: r
|
|
1839
1849
|
}),
|
|
1840
|
-
/* @__PURE__ */ _(
|
|
1841
|
-
className:
|
|
1850
|
+
/* @__PURE__ */ _(kn, { children: /* @__PURE__ */ _("span", {
|
|
1851
|
+
className: U.linkCardTitle,
|
|
1842
1852
|
children: e
|
|
1843
1853
|
}) }),
|
|
1844
|
-
t && /* @__PURE__ */ _(
|
|
1845
|
-
className:
|
|
1854
|
+
t && /* @__PURE__ */ _(An, { children: /* @__PURE__ */ _("span", {
|
|
1855
|
+
className: U.linkCardDescription,
|
|
1846
1856
|
children: t
|
|
1847
1857
|
}) })
|
|
1848
1858
|
]
|
|
1849
1859
|
})
|
|
1850
1860
|
});
|
|
1851
1861
|
}
|
|
1852
|
-
|
|
1853
|
-
var
|
|
1862
|
+
Vi.displayName = "NavigationMenu.LinkCard";
|
|
1863
|
+
var Hi = {
|
|
1854
1864
|
flyoutLink: "imf-ui-navigation-menu-flyout-link-module-flyoutLink",
|
|
1855
1865
|
linkArrow: "imf-ui-navigation-menu-flyout-link-module-linkArrow"
|
|
1856
|
-
},
|
|
1857
|
-
function
|
|
1866
|
+
}, Ui = h(Hi.flyoutLink);
|
|
1867
|
+
function Wi({ className: e, children: t, render: n, ...r }) {
|
|
1858
1868
|
return /* @__PURE__ */ _(T.Link, {
|
|
1859
1869
|
...r,
|
|
1860
1870
|
render: n,
|
|
1861
1871
|
"data-imf-ui-component": "NavigationMenu.FlyoutLink",
|
|
1862
|
-
className: (t) =>
|
|
1872
|
+
className: (t) => Ui({ className: typeof e == "function" ? e(t) : e }),
|
|
1863
1873
|
children: n ? t : /* @__PURE__ */ v(ye, { children: [t, /* @__PURE__ */ _("span", {
|
|
1864
|
-
className:
|
|
1874
|
+
className: Hi.linkArrow,
|
|
1865
1875
|
"aria-hidden": !0,
|
|
1866
1876
|
children: /* @__PURE__ */ _(m, {
|
|
1867
1877
|
glyph: c,
|
|
@@ -1870,10 +1880,10 @@ function Gi({ className: e, children: t, render: n, ...r }) {
|
|
|
1870
1880
|
})] })
|
|
1871
1881
|
});
|
|
1872
1882
|
}
|
|
1873
|
-
|
|
1883
|
+
Wi.displayName = "NavigationMenu.FlyoutLink";
|
|
1874
1884
|
//#endregion
|
|
1875
1885
|
//#region src/breakpoints/registry.ts
|
|
1876
|
-
var
|
|
1886
|
+
var Gi = {
|
|
1877
1887
|
mobile: 375,
|
|
1878
1888
|
sm: 640,
|
|
1879
1889
|
md: 768,
|
|
@@ -1882,16 +1892,16 @@ var Ki = {
|
|
|
1882
1892
|
};
|
|
1883
1893
|
//#endregion
|
|
1884
1894
|
//#region src/breakpoints/min-width.ts
|
|
1885
|
-
function
|
|
1886
|
-
return `(min-width: ${String(
|
|
1895
|
+
function Ki(e) {
|
|
1896
|
+
return `(min-width: ${String(Gi[e])}px)`;
|
|
1887
1897
|
}
|
|
1888
1898
|
//#endregion
|
|
1889
1899
|
//#region src/config.ts
|
|
1890
|
-
var
|
|
1891
|
-
cssVarPrefix:
|
|
1900
|
+
var qi = "imf-ui", W = {
|
|
1901
|
+
cssVarPrefix: qi,
|
|
1892
1902
|
colorScheme: {
|
|
1893
|
-
storageKey: `${
|
|
1894
|
-
attr: `data-${
|
|
1903
|
+
storageKey: `${qi}-color-scheme`,
|
|
1904
|
+
attr: `data-${qi}-color-scheme`,
|
|
1895
1905
|
options: [
|
|
1896
1906
|
"light",
|
|
1897
1907
|
"system",
|
|
@@ -1901,45 +1911,45 @@ var Ji = "imf-ui", U = {
|
|
|
1901
1911
|
};
|
|
1902
1912
|
//#endregion
|
|
1903
1913
|
//#region src/hooks/use-color-scheme.ts
|
|
1904
|
-
function
|
|
1914
|
+
function Ji() {
|
|
1905
1915
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1906
1916
|
}
|
|
1907
|
-
function
|
|
1917
|
+
function Yi(e) {
|
|
1908
1918
|
return e === "light" || e === "dark" || e === "system" ? e : "system";
|
|
1909
1919
|
}
|
|
1910
|
-
function
|
|
1911
|
-
return
|
|
1920
|
+
function Xi() {
|
|
1921
|
+
return Yi(localStorage.getItem(W.colorScheme.storageKey));
|
|
1912
1922
|
}
|
|
1913
|
-
function
|
|
1914
|
-
let t = e !== void 0, [n, r] = Te(() => e ??
|
|
1923
|
+
function Zi({ value: e } = {}) {
|
|
1924
|
+
let t = e !== void 0, [n, r] = Te(() => e ?? Xi()), i = e ?? n, [a, o] = Te(() => i === "system" ? Ji() : i);
|
|
1915
1925
|
Ce(function() {
|
|
1916
1926
|
if (i !== "system") {
|
|
1917
|
-
document.documentElement.setAttribute(
|
|
1927
|
+
document.documentElement.setAttribute(W.colorScheme.attr, i), o(i);
|
|
1918
1928
|
return;
|
|
1919
1929
|
}
|
|
1920
|
-
document.documentElement.removeAttribute(
|
|
1930
|
+
document.documentElement.removeAttribute(W.colorScheme.attr), o(Ji());
|
|
1921
1931
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => o(e.matches ? "dark" : "light");
|
|
1922
1932
|
return e.addEventListener("change", t), function() {
|
|
1923
1933
|
e.removeEventListener("change", t);
|
|
1924
1934
|
};
|
|
1925
1935
|
}, [i]);
|
|
1926
1936
|
function s(e) {
|
|
1927
|
-
t || (e === "system" ? localStorage.removeItem(
|
|
1937
|
+
t || (e === "system" ? localStorage.removeItem(W.colorScheme.storageKey) : localStorage.setItem(W.colorScheme.storageKey, e), r(e));
|
|
1928
1938
|
}
|
|
1929
1939
|
return {
|
|
1930
1940
|
colorScheme: i,
|
|
1931
1941
|
resolvedColorScheme: a,
|
|
1932
1942
|
setColorScheme: s,
|
|
1933
|
-
colorSchemeOptions:
|
|
1943
|
+
colorSchemeOptions: W.colorScheme.options
|
|
1934
1944
|
};
|
|
1935
1945
|
}
|
|
1936
1946
|
//#endregion
|
|
1937
1947
|
//#region src/hooks/use-media-query.ts
|
|
1938
|
-
function
|
|
1948
|
+
function Qi(e, t) {
|
|
1939
1949
|
return typeof t == "boolean" ? t : typeof window < "u" && "matchMedia" in window ? window.matchMedia(e).matches : !1;
|
|
1940
1950
|
}
|
|
1941
|
-
function
|
|
1942
|
-
let [r, i] = Te(n ? t :
|
|
1951
|
+
function $i(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0 }) {
|
|
1952
|
+
let [r, i] = Te(n ? t : Qi(e));
|
|
1943
1953
|
return Ce(() => {
|
|
1944
1954
|
try {
|
|
1945
1955
|
if ("matchMedia" in window) {
|
|
@@ -1955,7 +1965,7 @@ function ea(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0
|
|
|
1955
1965
|
}
|
|
1956
1966
|
}, [e]), r ?? !1;
|
|
1957
1967
|
}
|
|
1958
|
-
var
|
|
1968
|
+
var G = {
|
|
1959
1969
|
submenuContent: "imf-ui-navigation-menu-inline-submenu-module-submenuContent",
|
|
1960
1970
|
submenuDescription: "imf-ui-navigation-menu-inline-submenu-module-submenuDescription",
|
|
1961
1971
|
submenuHint: "imf-ui-navigation-menu-inline-submenu-module-submenuHint",
|
|
@@ -1970,44 +1980,44 @@ var W = {
|
|
|
1970
1980
|
};
|
|
1971
1981
|
//#endregion
|
|
1972
1982
|
//#region src/components/navigation-menu/subs/inline-submenu.tsx
|
|
1973
|
-
function
|
|
1974
|
-
let n =
|
|
1983
|
+
function ea({ items: e, defaultValue: t }) {
|
|
1984
|
+
let n = $i(Ki("md"), !0);
|
|
1975
1985
|
return /* @__PURE__ */ _(T.Root, {
|
|
1976
1986
|
orientation: n ? "vertical" : "horizontal",
|
|
1977
1987
|
defaultValue: t,
|
|
1978
1988
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1979
1989
|
"data-orientation": n ? "vertical" : "horizontal",
|
|
1980
|
-
className:
|
|
1990
|
+
className: G.submenuRoot,
|
|
1981
1991
|
children: /* @__PURE__ */ v("div", {
|
|
1982
|
-
className:
|
|
1992
|
+
className: G.submenuLayout,
|
|
1983
1993
|
children: [/* @__PURE__ */ _(T.List, {
|
|
1984
1994
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1985
|
-
className:
|
|
1995
|
+
className: G.submenuList,
|
|
1986
1996
|
children: e.map((e) => /* @__PURE__ */ v(T.Item, {
|
|
1987
1997
|
value: e.value,
|
|
1988
1998
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
1989
1999
|
children: [/* @__PURE__ */ v(T.Trigger, {
|
|
1990
2000
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
1991
|
-
className:
|
|
2001
|
+
className: G.submenuTrigger,
|
|
1992
2002
|
children: [/* @__PURE__ */ _("span", {
|
|
1993
|
-
className:
|
|
2003
|
+
className: G.submenuLabel,
|
|
1994
2004
|
children: e.label
|
|
1995
2005
|
}), e.hint && /* @__PURE__ */ _("span", {
|
|
1996
|
-
className:
|
|
2006
|
+
className: G.submenuHint,
|
|
1997
2007
|
children: e.hint
|
|
1998
2008
|
})]
|
|
1999
2009
|
}), /* @__PURE__ */ v(T.Content, {
|
|
2000
2010
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
2001
|
-
className:
|
|
2011
|
+
className: G.submenuContent,
|
|
2002
2012
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h4", {
|
|
2003
|
-
className:
|
|
2013
|
+
className: G.submenuTitle,
|
|
2004
2014
|
children: e.title
|
|
2005
2015
|
}), e.description && /* @__PURE__ */ _("p", {
|
|
2006
|
-
className:
|
|
2016
|
+
className: G.submenuDescription,
|
|
2007
2017
|
children: e.description
|
|
2008
2018
|
})] }), /* @__PURE__ */ _("ul", {
|
|
2009
|
-
className:
|
|
2010
|
-
children: e.links.map((e, t) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(
|
|
2019
|
+
className: G.submenuLinkList,
|
|
2020
|
+
children: e.links.map((e, t) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(Vi, {
|
|
2011
2021
|
href: e.href,
|
|
2012
2022
|
title: e.title,
|
|
2013
2023
|
description: e.description
|
|
@@ -2017,33 +2027,33 @@ function ta({ items: e, defaultValue: t }) {
|
|
|
2017
2027
|
}, e.value))
|
|
2018
2028
|
}), /* @__PURE__ */ _(T.Viewport, {
|
|
2019
2029
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
2020
|
-
className:
|
|
2030
|
+
className: G.submenuViewport
|
|
2021
2031
|
})]
|
|
2022
2032
|
})
|
|
2023
2033
|
});
|
|
2024
2034
|
}
|
|
2025
|
-
|
|
2035
|
+
ea.displayName = "NavigationMenu.InlineSubmenu";
|
|
2026
2036
|
//#endregion
|
|
2027
2037
|
//#region src/components/navigation-menu/navigation-menu.tsx
|
|
2028
|
-
var
|
|
2029
|
-
Arrow: () =>
|
|
2030
|
-
Backdrop: () =>
|
|
2031
|
-
Content: () =>
|
|
2032
|
-
FlyoutLink: () =>
|
|
2033
|
-
Icon: () =>
|
|
2034
|
-
InlineSubmenu: () =>
|
|
2035
|
-
Item: () =>
|
|
2036
|
-
Link: () =>
|
|
2037
|
-
LinkCard: () =>
|
|
2038
|
-
LinkList: () =>
|
|
2039
|
-
List: () =>
|
|
2040
|
-
Popup: () =>
|
|
2041
|
-
Portal: () =>
|
|
2042
|
-
Positioner: () =>
|
|
2043
|
-
Root: () =>
|
|
2044
|
-
Trigger: () =>
|
|
2045
|
-
Viewport: () =>
|
|
2046
|
-
}),
|
|
2038
|
+
var ta = /* @__PURE__ */ e({
|
|
2039
|
+
Arrow: () => Pi,
|
|
2040
|
+
Backdrop: () => Fi,
|
|
2041
|
+
Content: () => bi,
|
|
2042
|
+
FlyoutLink: () => Wi,
|
|
2043
|
+
Icon: () => Ei,
|
|
2044
|
+
InlineSubmenu: () => ea,
|
|
2045
|
+
Item: () => yi,
|
|
2046
|
+
Link: () => zi,
|
|
2047
|
+
LinkCard: () => Vi,
|
|
2048
|
+
LinkList: () => Bi,
|
|
2049
|
+
List: () => vi,
|
|
2050
|
+
Popup: () => Ni,
|
|
2051
|
+
Portal: () => ji,
|
|
2052
|
+
Positioner: () => Mi,
|
|
2053
|
+
Root: () => _i,
|
|
2054
|
+
Trigger: () => Ti,
|
|
2055
|
+
Viewport: () => xi
|
|
2056
|
+
}), na = {
|
|
2047
2057
|
name: "NavigationMenu",
|
|
2048
2058
|
category: t.display,
|
|
2049
2059
|
status: "experimental",
|
|
@@ -2056,14 +2066,14 @@ var na = /* @__PURE__ */ e({
|
|
|
2056
2066
|
docLink: "https://base-ui.com/react/components/navigation-menu",
|
|
2057
2067
|
llmDocLink: "https://base-ui.com/react/components/navigation-menu.md"
|
|
2058
2068
|
}
|
|
2059
|
-
},
|
|
2069
|
+
}, K = {
|
|
2060
2070
|
fill: "imf-ui-spinner-module-fill",
|
|
2061
2071
|
glyph: "imf-ui-spinner-module-glyph",
|
|
2062
2072
|
root: "imf-ui-spinner-module-root",
|
|
2063
2073
|
sizeLg: "imf-ui-spinner-module-sizeLg",
|
|
2064
2074
|
sizeMd: "imf-ui-spinner-module-sizeMd",
|
|
2065
2075
|
sizeSm: "imf-ui-spinner-module-sizeSm"
|
|
2066
|
-
},
|
|
2076
|
+
}, q = {
|
|
2067
2077
|
HALF: 8,
|
|
2068
2078
|
INSET: -11,
|
|
2069
2079
|
TILT0: -.44,
|
|
@@ -2072,16 +2082,16 @@ var na = /* @__PURE__ */ e({
|
|
|
2072
2082
|
BR_S: 2.1,
|
|
2073
2083
|
SWAY: 11.5,
|
|
2074
2084
|
SWAY_RATIO: 1.35
|
|
2075
|
-
},
|
|
2085
|
+
}, ra = 100 / 2, ia = [
|
|
2076
2086
|
[0, 0],
|
|
2077
2087
|
[100, 0],
|
|
2078
2088
|
[100, 100],
|
|
2079
2089
|
[0, 100]
|
|
2080
2090
|
];
|
|
2081
|
-
function
|
|
2091
|
+
function aa(e, t, n, r) {
|
|
2082
2092
|
let i = [], a = (i) => n * (i[1] - t) - r * (i[0] - e) >= 0;
|
|
2083
2093
|
for (let o = 0; o < 4; o++) {
|
|
2084
|
-
let s =
|
|
2094
|
+
let s = ia[o], c = ia[(o + 1) % 4], l = a(s), u = a(c);
|
|
2085
2095
|
if (l && i.push(s), l !== u) {
|
|
2086
2096
|
let a = ((e - s[0]) * r - (t - s[1]) * n) / ((c[0] - s[0]) * r - (c[1] - s[1]) * n);
|
|
2087
2097
|
i.push([s[0] + a * (c[0] - s[0]), s[1] + a * (c[1] - s[1])]);
|
|
@@ -2089,7 +2099,7 @@ function oa(e, t, n, r) {
|
|
|
2089
2099
|
}
|
|
2090
2100
|
return i;
|
|
2091
2101
|
}
|
|
2092
|
-
function
|
|
2102
|
+
function oa(e, t) {
|
|
2093
2103
|
let n = 0, r = Infinity;
|
|
2094
2104
|
for (let i = 0; i < e.length; i++) {
|
|
2095
2105
|
let a = e[i], o = e[(i + 1) % e.length], s = ((a[0] + o[0]) / 2 - t[0]) ** 2 + ((a[1] + o[1]) / 2 - t[1]) ** 2;
|
|
@@ -2101,38 +2111,38 @@ function sa(e, t) {
|
|
|
2101
2111
|
...e.slice(n + 1)
|
|
2102
2112
|
];
|
|
2103
2113
|
}
|
|
2104
|
-
function
|
|
2105
|
-
let s =
|
|
2106
|
-
return
|
|
2114
|
+
function sa(e, t, n, r, i, a, o) {
|
|
2115
|
+
let s = ra + e * t * a, c = ra + e * t * o, l = e * n, u = s + e * r * l - e * a * q.INSET, d = c + e * i * l - e * o * q.INSET;
|
|
2116
|
+
return oa(aa(s, c, e * r, e * i), [u, d]);
|
|
2107
2117
|
}
|
|
2108
|
-
function
|
|
2109
|
-
let t =
|
|
2110
|
-
return [
|
|
2118
|
+
function ca(e) {
|
|
2119
|
+
let t = q.TILT0 + (q.ROT_S > 0 ? e / (q.ROT_S * 1e3) * Math.PI * 2 : 0), n = q.BR_AMT > 0 ? (1 - Math.cos(e / (q.BR_S * 1e3) * Math.PI * 2)) / 2 : 0, r = q.HALF + q.BR_AMT * n, i = q.SWAY * Math.sin(e / (q.BR_S * 1e3 * q.SWAY_RATIO) * Math.PI * 2), a = Math.cos(t), o = Math.sin(t), s = -o, c = a;
|
|
2120
|
+
return [la(sa(1, r, i, a, o, s, c)), la(sa(-1, r, i, a, o, s, c))];
|
|
2111
2121
|
}
|
|
2112
|
-
function
|
|
2122
|
+
function la(e) {
|
|
2113
2123
|
return "M" + e.map((e) => e[0].toFixed(2) + " " + e[1].toFixed(2)).join("L") + "Z";
|
|
2114
2124
|
}
|
|
2115
|
-
var
|
|
2116
|
-
sm:
|
|
2117
|
-
md:
|
|
2118
|
-
lg:
|
|
2125
|
+
var ua = q.ROT_S * 1e3, da = h(K.root, { variants: { size: {
|
|
2126
|
+
sm: K.sizeSm,
|
|
2127
|
+
md: K.sizeMd,
|
|
2128
|
+
lg: K.sizeLg
|
|
2119
2129
|
} } });
|
|
2120
|
-
function
|
|
2130
|
+
function fa({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
2121
2131
|
let i = we(null), a = we(null);
|
|
2122
2132
|
Ce(function() {
|
|
2123
2133
|
let e = 0, t = performance.now(), n = (r) => {
|
|
2124
|
-
let [o, s] =
|
|
2134
|
+
let [o, s] = ca((r - t) % ua);
|
|
2125
2135
|
i.current?.setAttribute("d", o), a.current?.setAttribute("d", s), e = requestAnimationFrame(n);
|
|
2126
2136
|
};
|
|
2127
2137
|
return e = requestAnimationFrame(n), function() {
|
|
2128
2138
|
cancelAnimationFrame(e);
|
|
2129
2139
|
};
|
|
2130
2140
|
}, []);
|
|
2131
|
-
let [o, s] =
|
|
2141
|
+
let [o, s] = ca(0);
|
|
2132
2142
|
return /* @__PURE__ */ _("span", {
|
|
2133
2143
|
...r,
|
|
2134
2144
|
"data-imf-ui-component": "Spinner",
|
|
2135
|
-
className:
|
|
2145
|
+
className: da({
|
|
2136
2146
|
size: e,
|
|
2137
2147
|
className: n
|
|
2138
2148
|
}),
|
|
@@ -2142,14 +2152,14 @@ function pa({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
|
2142
2152
|
viewBox: "0 0 100 100",
|
|
2143
2153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2144
2154
|
"aria-hidden": "true",
|
|
2145
|
-
className:
|
|
2155
|
+
className: K.glyph,
|
|
2146
2156
|
children: [/* @__PURE__ */ _("path", {
|
|
2147
2157
|
ref: i,
|
|
2148
|
-
className:
|
|
2158
|
+
className: K.fill,
|
|
2149
2159
|
d: o
|
|
2150
2160
|
}), /* @__PURE__ */ _("path", {
|
|
2151
2161
|
ref: a,
|
|
2152
|
-
className:
|
|
2162
|
+
className: K.fill,
|
|
2153
2163
|
d: s
|
|
2154
2164
|
})]
|
|
2155
2165
|
})
|
|
@@ -2157,13 +2167,13 @@ function pa({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
|
2157
2167
|
}
|
|
2158
2168
|
//#endregion
|
|
2159
2169
|
//#region src/components/spinner/spinner.meta.ts
|
|
2160
|
-
var
|
|
2170
|
+
var pa = {
|
|
2161
2171
|
name: "Spinner",
|
|
2162
2172
|
category: t.display,
|
|
2163
2173
|
status: "stable",
|
|
2164
2174
|
description: "Indeterminate loading indicator. Also called a loader or progress spinner.",
|
|
2165
2175
|
origin: "native"
|
|
2166
|
-
},
|
|
2176
|
+
}, J = {
|
|
2167
2177
|
body: "imf-ui-table-module-body",
|
|
2168
2178
|
cell: "imf-ui-table-module-cell",
|
|
2169
2179
|
header: "imf-ui-table-module-header",
|
|
@@ -2172,61 +2182,61 @@ var ma = {
|
|
|
2172
2182
|
root: "imf-ui-table-module-root",
|
|
2173
2183
|
row: "imf-ui-table-module-row",
|
|
2174
2184
|
sortIndicator: "imf-ui-table-module-sortIndicator"
|
|
2175
|
-
},
|
|
2176
|
-
Body: () =>
|
|
2185
|
+
}, ma = /* @__PURE__ */ e({
|
|
2186
|
+
Body: () => Ta,
|
|
2177
2187
|
Cell: () => Oa,
|
|
2178
|
-
Header: () =>
|
|
2188
|
+
Header: () => wa,
|
|
2179
2189
|
HeaderButton: () => ka,
|
|
2180
|
-
HeaderCell: () =>
|
|
2181
|
-
Root: () =>
|
|
2182
|
-
Row: () =>
|
|
2190
|
+
HeaderCell: () => Da,
|
|
2191
|
+
Root: () => Ca,
|
|
2192
|
+
Row: () => Ea,
|
|
2183
2193
|
SortableHeaderCell: () => Ma
|
|
2184
|
-
}),
|
|
2185
|
-
function
|
|
2194
|
+
}), ha = h(J.root), ga = h(J.header), _a = h(J.body), va = h(J.row), ya = h(J.headerCell), ba = h(J.cell), xa = h(J.headerButton), Sa = h(J.sortIndicator);
|
|
2195
|
+
function Ca({ className: e, ...t }) {
|
|
2186
2196
|
return /* @__PURE__ */ _("table", {
|
|
2187
2197
|
...t,
|
|
2188
2198
|
"data-imf-ui-component": "Table.Root",
|
|
2189
|
-
className:
|
|
2199
|
+
className: ha({ className: e })
|
|
2190
2200
|
});
|
|
2191
2201
|
}
|
|
2192
|
-
|
|
2193
|
-
function
|
|
2202
|
+
Ca.displayName = "Table.Root";
|
|
2203
|
+
function wa({ className: e, ...t }) {
|
|
2194
2204
|
return /* @__PURE__ */ _("thead", {
|
|
2195
2205
|
...t,
|
|
2196
2206
|
"data-imf-ui-component": "Table.Header",
|
|
2197
|
-
className:
|
|
2207
|
+
className: ga({ className: e })
|
|
2198
2208
|
});
|
|
2199
2209
|
}
|
|
2200
|
-
|
|
2201
|
-
function
|
|
2210
|
+
wa.displayName = "Table.Header";
|
|
2211
|
+
function Ta({ className: e, ...t }) {
|
|
2202
2212
|
return /* @__PURE__ */ _("tbody", {
|
|
2203
2213
|
...t,
|
|
2204
2214
|
"data-imf-ui-component": "Table.Body",
|
|
2205
|
-
className:
|
|
2215
|
+
className: _a({ className: e })
|
|
2206
2216
|
});
|
|
2207
2217
|
}
|
|
2208
|
-
|
|
2209
|
-
function
|
|
2218
|
+
Ta.displayName = "Table.Body";
|
|
2219
|
+
function Ea({ className: e, ...t }) {
|
|
2210
2220
|
return /* @__PURE__ */ _("tr", {
|
|
2211
2221
|
...t,
|
|
2212
2222
|
"data-imf-ui-component": "Table.Row",
|
|
2213
|
-
className:
|
|
2223
|
+
className: va({ className: e })
|
|
2214
2224
|
});
|
|
2215
2225
|
}
|
|
2216
|
-
|
|
2217
|
-
function
|
|
2226
|
+
Ea.displayName = "Table.Row";
|
|
2227
|
+
function Da({ className: e, ...t }) {
|
|
2218
2228
|
return /* @__PURE__ */ _("th", {
|
|
2219
2229
|
...t,
|
|
2220
2230
|
"data-imf-ui-component": "Table.HeaderCell",
|
|
2221
|
-
className:
|
|
2231
|
+
className: ya({ className: e })
|
|
2222
2232
|
});
|
|
2223
2233
|
}
|
|
2224
|
-
|
|
2234
|
+
Da.displayName = "Table.HeaderCell";
|
|
2225
2235
|
function Oa({ className: e, ...t }) {
|
|
2226
2236
|
return /* @__PURE__ */ _("td", {
|
|
2227
2237
|
...t,
|
|
2228
2238
|
"data-imf-ui-component": "Table.Cell",
|
|
2229
|
-
className:
|
|
2239
|
+
className: ba({ className: e })
|
|
2230
2240
|
});
|
|
2231
2241
|
}
|
|
2232
2242
|
Oa.displayName = "Table.Cell";
|
|
@@ -2235,7 +2245,7 @@ function ka({ className: e, type: t = "button", ...n }) {
|
|
|
2235
2245
|
...n,
|
|
2236
2246
|
type: t,
|
|
2237
2247
|
"data-imf-ui-component": "Table.HeaderButton",
|
|
2238
|
-
className:
|
|
2248
|
+
className: xa({ className: e })
|
|
2239
2249
|
});
|
|
2240
2250
|
}
|
|
2241
2251
|
ka.displayName = "Table.HeaderButton";
|
|
@@ -2245,7 +2255,7 @@ function Aa(e) {
|
|
|
2245
2255
|
function ja({ sorted: e }) {
|
|
2246
2256
|
let t = e === "asc" ? ne : e === "desc" ? n : r;
|
|
2247
2257
|
return /* @__PURE__ */ _("span", {
|
|
2248
|
-
className:
|
|
2258
|
+
className: Sa(),
|
|
2249
2259
|
"data-sorted": e || void 0,
|
|
2250
2260
|
"aria-hidden": !0,
|
|
2251
2261
|
children: /* @__PURE__ */ _(m, {
|
|
@@ -2256,14 +2266,14 @@ function ja({ sorted: e }) {
|
|
|
2256
2266
|
});
|
|
2257
2267
|
}
|
|
2258
2268
|
function Ma({ sortDirection: e, onToggle: t, children: n, ...r }) {
|
|
2259
|
-
return t ? /* @__PURE__ */ _(
|
|
2269
|
+
return t ? /* @__PURE__ */ _(Da, {
|
|
2260
2270
|
...r,
|
|
2261
2271
|
"aria-sort": Aa(e),
|
|
2262
2272
|
children: /* @__PURE__ */ v(ka, {
|
|
2263
2273
|
onClick: t,
|
|
2264
2274
|
children: [n, /* @__PURE__ */ _(ja, { sorted: e })]
|
|
2265
2275
|
})
|
|
2266
|
-
}) : /* @__PURE__ */ _(
|
|
2276
|
+
}) : /* @__PURE__ */ _(Da, {
|
|
2267
2277
|
...r,
|
|
2268
2278
|
children: n
|
|
2269
2279
|
});
|
|
@@ -2888,4 +2898,4 @@ function Ho({ children: e, icons: t }) {
|
|
|
2888
2898
|
});
|
|
2889
2899
|
}
|
|
2890
2900
|
//#endregion
|
|
2891
|
-
export {
|
|
2901
|
+
export { ln as AppShell, Me as Button, zr as Callout, Tn as Card, He as Checkbox, Jr as Chip, Ie as ChipLink, ae as Code, Xr as Collapsible, t as ComponentCategories, Be as CopyButton, Nn as Drawer, Je as Field, ut as Fieldset, m as Icon, li as ImFusionLogo, _t as Input, ai as Logo, ta as NavigationMenu, cr as Popover, fe as Row, yt as Select, Ir as Separator, le as Slider, fa as Spinner, ue as Stack, pe as Switch, ma as Table, me as Tabs, Fa as Toast, de as Toggle, he as ToggleGroup, oo as Tooltip, wo as Typo, Ho as WebUIProvider, wn as appShellMeta, Ne as buttonMeta, qr as calloutMeta, Mn as cardMeta, qe as checkboxMeta, Le as chipLinkMeta, Yr as chipMeta, ce as codeMeta, ri as collapsibleMeta, W as config, Ve as copyButtonMeta, _e as cva, ve as cx, sr as drawerMeta, ct as fieldMeta, ht as fieldsetMeta, re as iconMeta, vt as inputMeta, oi as logoMeta, na as navigationMenuMeta, Nr as popoverMeta, Pr as rowMeta, rn as selectMeta, Lr as separatorMeta, an as sliderMeta, pa as spinnerMeta, Rr as stackMeta, on as switchMeta, Na as tableMeta, Pa as tabsMeta, ao as toastMeta, cn as toggleGroupMeta, sn as toggleMeta, Co as tooltipMeta, zo as typoMeta, oe as useClipboard, Zi as useColorScheme, $i as useMediaQuery };
|