@imfusion/web-ui 0.6.0 → 0.6.1-dev.12.ge86ac0a1
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/README.md +41 -29
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +197 -0
- package/dist/components/toast/toast.meta.d.ts +2 -0
- package/dist/icons/icon-config.d.ts +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +961 -798
- package/dist/provider/web-ui-provider.d.ts +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/docgen/doc.gen.json +381 -0
- package/src/llms/llms.gen.txt +6 -0
- package/dist/icons/icon-config-provider.d.ts +0 -8
- package/dist/icons/icon-context.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -7,17 +7,18 @@ import { Button as ge } from "@base-ui/react/button";
|
|
|
7
7
|
import { cva as _e, cva as h, cx as ve, cx as g } from "class-variance-authority";
|
|
8
8
|
import { Fragment as ye, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
9
9
|
import { IconoirProvider as be } from "iconoir-react";
|
|
10
|
-
import { createContext as xe, useContext as
|
|
11
|
-
import { Checkbox as
|
|
12
|
-
import { Field as
|
|
13
|
-
import { Fieldset as
|
|
14
|
-
import { Input as
|
|
15
|
-
import { Select as
|
|
16
|
-
import { Drawer as
|
|
17
|
-
import { Popover as
|
|
18
|
-
import { Separator as
|
|
19
|
-
import { Collapsible as
|
|
20
|
-
import { NavigationMenu as
|
|
10
|
+
import { createContext as xe, useContext as Se, useEffect as Ce, useRef as we, useState as y } from "react";
|
|
11
|
+
import { Checkbox as Te } from "@base-ui/react/checkbox";
|
|
12
|
+
import { Field as b } from "@base-ui/react/field";
|
|
13
|
+
import { Fieldset as Ee } from "@base-ui/react/fieldset";
|
|
14
|
+
import { Input as De } from "@base-ui/react/input";
|
|
15
|
+
import { Select as x } from "@base-ui/react/select";
|
|
16
|
+
import { Drawer as S } from "@base-ui/react/drawer";
|
|
17
|
+
import { Popover as C } from "@base-ui/react/popover";
|
|
18
|
+
import { Separator as Oe } from "@base-ui/react/separator";
|
|
19
|
+
import { Collapsible as ke } from "@base-ui/react/collapsible";
|
|
20
|
+
import { NavigationMenu as w } from "@base-ui/react/navigation-menu";
|
|
21
|
+
import { Toast as T } from "@base-ui/react/toast";
|
|
21
22
|
import { Tooltip as E } from "@base-ui/react/tooltip";
|
|
22
23
|
var D = {
|
|
23
24
|
chamfer: "imf-ui-button-module-chamfer",
|
|
@@ -39,7 +40,7 @@ var D = {
|
|
|
39
40
|
variantPositive: "imf-ui-button-module-variantPositive",
|
|
40
41
|
variantPrimary: "imf-ui-button-module-variantPrimary",
|
|
41
42
|
variantSecondary: "imf-ui-button-module-variantSecondary"
|
|
42
|
-
},
|
|
43
|
+
}, Ae = h(D.root, { variants: {
|
|
43
44
|
variant: {
|
|
44
45
|
primary: D.variantPrimary,
|
|
45
46
|
secondary: D.variantSecondary,
|
|
@@ -66,11 +67,11 @@ var D = {
|
|
|
66
67
|
round: D.radiusRound
|
|
67
68
|
}
|
|
68
69
|
} });
|
|
69
|
-
function
|
|
70
|
+
function je({ variant: e = "primary", size: t = "md", chamfer: n = t === "hero", radius: r = "none", className: i, startIcon: a, endIcon: o, children: s, ...c }) {
|
|
70
71
|
return /* @__PURE__ */ v(ge, {
|
|
71
72
|
...c,
|
|
72
73
|
"data-imf-ui-component": "Button",
|
|
73
|
-
className: (a) =>
|
|
74
|
+
className: (a) => Ae({
|
|
74
75
|
variant: e,
|
|
75
76
|
size: t,
|
|
76
77
|
chamfer: n,
|
|
@@ -97,7 +98,7 @@ function Ae({ variant: e = "primary", size: t = "md", chamfer: n = t === "hero",
|
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
99
100
|
//#region src/components/button/button.meta.ts
|
|
100
|
-
var
|
|
101
|
+
var Me = {
|
|
101
102
|
name: "Button",
|
|
102
103
|
category: t.buttons,
|
|
103
104
|
status: "stable",
|
|
@@ -127,7 +128,7 @@ var je = {
|
|
|
127
128
|
variantPrimary: "imf-ui-chip-module-variantPrimary",
|
|
128
129
|
variantSupport: "imf-ui-chip-module-variantSupport",
|
|
129
130
|
variantWarning: "imf-ui-chip-module-variantWarning"
|
|
130
|
-
},
|
|
131
|
+
}, Ne = h(O.root, { variants: {
|
|
131
132
|
variant: {
|
|
132
133
|
main: O.variantMain,
|
|
133
134
|
support: O.variantSupport,
|
|
@@ -151,13 +152,13 @@ var je = {
|
|
|
151
152
|
false: null,
|
|
152
153
|
true: O.inline
|
|
153
154
|
}
|
|
154
|
-
} }),
|
|
155
|
+
} }), Pe = {
|
|
155
156
|
icon: "imf-ui-chip-link-module-icon",
|
|
156
157
|
root: "imf-ui-chip-link-module-root"
|
|
157
158
|
};
|
|
158
159
|
//#endregion
|
|
159
160
|
//#region src/components/chip-link/chip-link.tsx
|
|
160
|
-
function
|
|
161
|
+
function Fe({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kind: r = "external", className: i, children: a, ...o }) {
|
|
161
162
|
let s = r === "external" ? p : c;
|
|
162
163
|
return /* @__PURE__ */ v("a", {
|
|
163
164
|
...r === "external" ? {
|
|
@@ -167,14 +168,14 @@ function Pe({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
167
168
|
...o,
|
|
168
169
|
"data-imf-ui-component": "ChipLink",
|
|
169
170
|
"data-kind": r,
|
|
170
|
-
className:
|
|
171
|
+
className: Ne({
|
|
171
172
|
variant: e,
|
|
172
173
|
appearance: t,
|
|
173
174
|
inline: n,
|
|
174
|
-
className: g(
|
|
175
|
+
className: g(Pe.root, i)
|
|
175
176
|
}),
|
|
176
177
|
children: [a, /* @__PURE__ */ _("span", {
|
|
177
|
-
className:
|
|
178
|
+
className: Pe.icon,
|
|
178
179
|
"aria-hidden": !0,
|
|
179
180
|
children: /* @__PURE__ */ _(m, {
|
|
180
181
|
glyph: s,
|
|
@@ -185,23 +186,23 @@ function Pe({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
185
186
|
}
|
|
186
187
|
//#endregion
|
|
187
188
|
//#region src/components/chip-link/chip-link.meta.ts
|
|
188
|
-
var
|
|
189
|
+
var Ie = {
|
|
189
190
|
name: "ChipLink",
|
|
190
191
|
category: t.buttons,
|
|
191
192
|
status: "stable",
|
|
192
193
|
description: "Inline link styled as a chip — a small labeled anchor that auto-appends a directional icon. Use for external doc references and source attribution (opens in a new tab) or in-app navigation badges (stays in the current tab). Also called a link chip or link badge.",
|
|
193
194
|
origin: "native"
|
|
194
|
-
},
|
|
195
|
-
function
|
|
196
|
-
let { copied: c, copy: l } = oe({ timeout:
|
|
197
|
-
return /* @__PURE__ */ _(
|
|
195
|
+
}, Le = { root: "imf-ui-copy-button-module-root" }, Re = 1500;
|
|
196
|
+
function ze({ value: e, label: t = "Copy", copiedLabel: n = "Copied", variant: r = "secondary", size: i = "sm", className: o, ...s }) {
|
|
197
|
+
let { copied: c, copy: l } = oe({ timeout: Re }), u = c ? a : ee;
|
|
198
|
+
return /* @__PURE__ */ _(je, {
|
|
198
199
|
...s,
|
|
199
200
|
variant: r,
|
|
200
201
|
size: i,
|
|
201
202
|
"data-copied": c || void 0,
|
|
202
203
|
"aria-label": c ? n : t,
|
|
203
204
|
onClick: () => l(e),
|
|
204
|
-
className: (e) => g(
|
|
205
|
+
className: (e) => g(Le.root, typeof o == "function" ? o(e) : o),
|
|
205
206
|
children: /* @__PURE__ */ _(m, {
|
|
206
207
|
glyph: u,
|
|
207
208
|
size: 15,
|
|
@@ -210,10 +211,10 @@ function Re({ value: e, label: t = "Copy", copiedLabel: n = "Copied", variant: r
|
|
|
210
211
|
})
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
|
-
|
|
214
|
+
ze.displayName = "CopyButton";
|
|
214
215
|
//#endregion
|
|
215
216
|
//#region src/components/copy-button/copy-button.meta.ts
|
|
216
|
-
var
|
|
217
|
+
var Be = {
|
|
217
218
|
name: "CopyButton",
|
|
218
219
|
category: t.buttons,
|
|
219
220
|
status: "stable",
|
|
@@ -225,24 +226,24 @@ var ze = {
|
|
|
225
226
|
iconIndeterminate: "imf-ui-checkbox-module-iconIndeterminate",
|
|
226
227
|
indicator: "imf-ui-checkbox-module-indicator",
|
|
227
228
|
root: "imf-ui-checkbox-module-root"
|
|
228
|
-
},
|
|
229
|
-
Indicator: () =>
|
|
230
|
-
Root: () =>
|
|
231
|
-
}),
|
|
232
|
-
function
|
|
233
|
-
return /* @__PURE__ */ _(
|
|
229
|
+
}, Ve = /* @__PURE__ */ e({
|
|
230
|
+
Indicator: () => Ge,
|
|
231
|
+
Root: () => We
|
|
232
|
+
}), He = h(k.root), Ue = h(k.indicator);
|
|
233
|
+
function We({ className: e, ...t }) {
|
|
234
|
+
return /* @__PURE__ */ _(Te.Root, {
|
|
234
235
|
...t,
|
|
235
236
|
"data-imf-ui-component": "Checkbox.Root",
|
|
236
|
-
className: (t) =>
|
|
237
|
+
className: (t) => He({ className: typeof e == "function" ? e(t) : e }),
|
|
237
238
|
children: t.children
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
function
|
|
242
|
-
return /* @__PURE__ */ _(
|
|
241
|
+
We.displayName = "Checkbox.Root";
|
|
242
|
+
function Ge({ className: e, children: t, ...n }) {
|
|
243
|
+
return /* @__PURE__ */ _(Te.Indicator, {
|
|
243
244
|
...n,
|
|
244
245
|
"data-imf-ui-component": "Checkbox.Indicator",
|
|
245
|
-
className: (t) =>
|
|
246
|
+
className: (t) => Ue({ className: typeof e == "function" ? e(t) : e }),
|
|
246
247
|
children: t ?? /* @__PURE__ */ v(ye, { children: [/* @__PURE__ */ _("span", {
|
|
247
248
|
className: k.iconCheck,
|
|
248
249
|
"aria-hidden": !0,
|
|
@@ -262,10 +263,10 @@ function We({ className: e, children: t, ...n }) {
|
|
|
262
263
|
})] })
|
|
263
264
|
});
|
|
264
265
|
}
|
|
265
|
-
|
|
266
|
+
Ge.displayName = "Checkbox.Indicator";
|
|
266
267
|
//#endregion
|
|
267
268
|
//#region src/components/checkbox/checkbox.meta.ts
|
|
268
|
-
var
|
|
269
|
+
var Ke = {
|
|
269
270
|
name: "Checkbox",
|
|
270
271
|
category: t.inputs,
|
|
271
272
|
status: "stable",
|
|
@@ -284,70 +285,70 @@ var Ge = {
|
|
|
284
285
|
item: "imf-ui-field-module-item",
|
|
285
286
|
label: "imf-ui-field-module-label",
|
|
286
287
|
root: "imf-ui-field-module-root"
|
|
287
|
-
},
|
|
288
|
-
Control: () =>
|
|
289
|
-
Description: () =>
|
|
290
|
-
Error: () =>
|
|
291
|
-
Item: () =>
|
|
292
|
-
Label: () =>
|
|
293
|
-
Root: () =>
|
|
294
|
-
Validity: () =>
|
|
295
|
-
}),
|
|
296
|
-
function $e({ className: e, ...t }) {
|
|
297
|
-
return /* @__PURE__ */ _(x.Root, {
|
|
298
|
-
...t,
|
|
299
|
-
"data-imf-ui-component": "Field.Root",
|
|
300
|
-
className: (t) => qe({ className: typeof e == "function" ? e(t) : e })
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
$e.displayName = "Field.Root";
|
|
288
|
+
}, qe = /* @__PURE__ */ e({
|
|
289
|
+
Control: () => it,
|
|
290
|
+
Description: () => rt,
|
|
291
|
+
Error: () => at,
|
|
292
|
+
Item: () => tt,
|
|
293
|
+
Label: () => nt,
|
|
294
|
+
Root: () => et,
|
|
295
|
+
Validity: () => ot
|
|
296
|
+
}), Je = h(A.root), Ye = h(A.item), Xe = h(A.label), Ze = h(A.description), Qe = h(A.control), $e = h(A.error);
|
|
304
297
|
function et({ className: e, ...t }) {
|
|
305
|
-
return /* @__PURE__ */ _(
|
|
298
|
+
return /* @__PURE__ */ _(b.Root, {
|
|
306
299
|
...t,
|
|
307
|
-
"data-imf-ui-component": "Field.
|
|
300
|
+
"data-imf-ui-component": "Field.Root",
|
|
308
301
|
className: (t) => Je({ className: typeof e == "function" ? e(t) : e })
|
|
309
302
|
});
|
|
310
303
|
}
|
|
311
|
-
et.displayName = "Field.
|
|
304
|
+
et.displayName = "Field.Root";
|
|
312
305
|
function tt({ className: e, ...t }) {
|
|
313
|
-
return /* @__PURE__ */ _(
|
|
306
|
+
return /* @__PURE__ */ _(b.Item, {
|
|
314
307
|
...t,
|
|
315
|
-
"data-imf-ui-component": "Field.
|
|
308
|
+
"data-imf-ui-component": "Field.Item",
|
|
316
309
|
className: (t) => Ye({ className: typeof e == "function" ? e(t) : e })
|
|
317
310
|
});
|
|
318
311
|
}
|
|
319
|
-
tt.displayName = "Field.
|
|
312
|
+
tt.displayName = "Field.Item";
|
|
320
313
|
function nt({ className: e, ...t }) {
|
|
321
|
-
return /* @__PURE__ */ _(
|
|
314
|
+
return /* @__PURE__ */ _(b.Label, {
|
|
322
315
|
...t,
|
|
323
|
-
"data-imf-ui-component": "Field.
|
|
316
|
+
"data-imf-ui-component": "Field.Label",
|
|
324
317
|
className: (t) => Xe({ className: typeof e == "function" ? e(t) : e })
|
|
325
318
|
});
|
|
326
319
|
}
|
|
327
|
-
nt.displayName = "Field.
|
|
320
|
+
nt.displayName = "Field.Label";
|
|
328
321
|
function rt({ className: e, ...t }) {
|
|
329
|
-
return /* @__PURE__ */ _(
|
|
322
|
+
return /* @__PURE__ */ _(b.Description, {
|
|
330
323
|
...t,
|
|
331
|
-
"data-imf-ui-component": "Field.
|
|
324
|
+
"data-imf-ui-component": "Field.Description",
|
|
332
325
|
className: (t) => Ze({ className: typeof e == "function" ? e(t) : e })
|
|
333
326
|
});
|
|
334
327
|
}
|
|
335
|
-
rt.displayName = "Field.
|
|
328
|
+
rt.displayName = "Field.Description";
|
|
336
329
|
function it({ className: e, ...t }) {
|
|
337
|
-
return /* @__PURE__ */ _(
|
|
330
|
+
return /* @__PURE__ */ _(b.Control, {
|
|
338
331
|
...t,
|
|
339
|
-
"data-imf-ui-component": "Field.
|
|
332
|
+
"data-imf-ui-component": "Field.Control",
|
|
340
333
|
className: (t) => Qe({ className: typeof e == "function" ? e(t) : e })
|
|
341
334
|
});
|
|
342
335
|
}
|
|
343
|
-
it.displayName = "Field.
|
|
344
|
-
function at({
|
|
345
|
-
return /* @__PURE__ */ _(
|
|
336
|
+
it.displayName = "Field.Control";
|
|
337
|
+
function at({ className: e, ...t }) {
|
|
338
|
+
return /* @__PURE__ */ _(b.Error, {
|
|
339
|
+
...t,
|
|
340
|
+
"data-imf-ui-component": "Field.Error",
|
|
341
|
+
className: (t) => $e({ className: typeof e == "function" ? e(t) : e })
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
at.displayName = "Field.Error";
|
|
345
|
+
function ot({ children: e }) {
|
|
346
|
+
return /* @__PURE__ */ _(b.Validity, { children: e });
|
|
346
347
|
}
|
|
347
|
-
|
|
348
|
+
ot.displayName = "Field.Validity";
|
|
348
349
|
//#endregion
|
|
349
350
|
//#region src/components/field/field.meta.ts
|
|
350
|
-
var
|
|
351
|
+
var st = {
|
|
351
352
|
name: "Field",
|
|
352
353
|
category: t.inputs,
|
|
353
354
|
status: "stable",
|
|
@@ -359,32 +360,32 @@ var ot = {
|
|
|
359
360
|
docLink: "https://base-ui.com/react/components/field",
|
|
360
361
|
llmDocLink: "https://base-ui.com/react/components/field.md"
|
|
361
362
|
}
|
|
362
|
-
},
|
|
363
|
+
}, ct = {
|
|
363
364
|
legend: "imf-ui-fieldset-module-legend",
|
|
364
365
|
root: "imf-ui-fieldset-module-root"
|
|
365
|
-
},
|
|
366
|
-
Legend: () =>
|
|
367
|
-
Root: () =>
|
|
368
|
-
}),
|
|
369
|
-
function
|
|
370
|
-
return /* @__PURE__ */ _(
|
|
366
|
+
}, lt = /* @__PURE__ */ e({
|
|
367
|
+
Legend: () => pt,
|
|
368
|
+
Root: () => ft
|
|
369
|
+
}), ut = h(ct.root), dt = h(ct.legend);
|
|
370
|
+
function ft({ className: e, ...t }) {
|
|
371
|
+
return /* @__PURE__ */ _(Ee.Root, {
|
|
371
372
|
...t,
|
|
372
373
|
"data-imf-ui-component": "Fieldset.Root",
|
|
373
|
-
className: (t) =>
|
|
374
|
+
className: (t) => ut({ className: typeof e == "function" ? e(t) : e })
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
|
-
|
|
377
|
-
function
|
|
378
|
-
return /* @__PURE__ */ _(
|
|
377
|
+
ft.displayName = "Fieldset.Root";
|
|
378
|
+
function pt({ className: e, ...t }) {
|
|
379
|
+
return /* @__PURE__ */ _(Ee.Legend, {
|
|
379
380
|
...t,
|
|
380
381
|
"data-imf-ui-component": "Fieldset.Legend",
|
|
381
|
-
className: (t) =>
|
|
382
|
+
className: (t) => dt({ className: typeof e == "function" ? e(t) : e })
|
|
382
383
|
});
|
|
383
384
|
}
|
|
384
|
-
|
|
385
|
+
pt.displayName = "Fieldset.Legend";
|
|
385
386
|
//#endregion
|
|
386
387
|
//#region src/components/fieldset/fieldset.meta.ts
|
|
387
|
-
var
|
|
388
|
+
var mt = {
|
|
388
389
|
name: "Fieldset",
|
|
389
390
|
category: t.inputs,
|
|
390
391
|
status: "stable",
|
|
@@ -406,7 +407,7 @@ var pt = {
|
|
|
406
407
|
variantFilled: "imf-ui-input-module-variantFilled",
|
|
407
408
|
variantGhost: "imf-ui-input-module-variantGhost",
|
|
408
409
|
variantOutline: "imf-ui-input-module-variantOutline"
|
|
409
|
-
},
|
|
410
|
+
}, ht = h(j.root, { variants: {
|
|
410
411
|
variant: {
|
|
411
412
|
outline: j.variantOutline,
|
|
412
413
|
filled: j.variantFilled,
|
|
@@ -418,10 +419,10 @@ var pt = {
|
|
|
418
419
|
lg: j.sizeLg
|
|
419
420
|
}
|
|
420
421
|
} });
|
|
421
|
-
function
|
|
422
|
-
let d = n === "search", [ee, f] =
|
|
422
|
+
function gt({ variant: e = "outline", size: t = "md", type: n, value: r, defaultValue: i, onValueChange: a, onClear: o, disabled: s, className: c, ...l }) {
|
|
423
|
+
let d = n === "search", [ee, f] = y(i ?? ""), p = r ?? ee, te = p != null && String(p).length > 0, ne = (e, t) => {
|
|
423
424
|
d && r === void 0 && f(e), a?.(e, t);
|
|
424
|
-
}, re = /* @__PURE__ */ _(
|
|
425
|
+
}, re = /* @__PURE__ */ _(De, {
|
|
425
426
|
...l,
|
|
426
427
|
type: n,
|
|
427
428
|
value: d ? p : r,
|
|
@@ -429,7 +430,7 @@ function ht({ variant: e = "outline", size: t = "md", type: n, value: r, default
|
|
|
429
430
|
disabled: s,
|
|
430
431
|
onValueChange: d ? ne : a,
|
|
431
432
|
"data-imf-ui-component": "Input",
|
|
432
|
-
className: (n) =>
|
|
433
|
+
className: (n) => ht({
|
|
433
434
|
variant: e,
|
|
434
435
|
size: t,
|
|
435
436
|
className: typeof c == "function" ? c(n) : c
|
|
@@ -454,7 +455,7 @@ function ht({ variant: e = "outline", size: t = "md", type: n, value: r, default
|
|
|
454
455
|
}
|
|
455
456
|
//#endregion
|
|
456
457
|
//#region src/components/input/input.meta.ts
|
|
457
|
-
var
|
|
458
|
+
var _t = {
|
|
458
459
|
name: "Input",
|
|
459
460
|
category: t.inputs,
|
|
460
461
|
status: "stable",
|
|
@@ -484,195 +485,195 @@ var gt = {
|
|
|
484
485
|
separator: "imf-ui-select-module-separator",
|
|
485
486
|
trigger: "imf-ui-select-module-trigger",
|
|
486
487
|
value: "imf-ui-select-module-value"
|
|
487
|
-
},
|
|
488
|
-
Arrow: () =>
|
|
489
|
-
Backdrop: () =>
|
|
490
|
-
Group: () =>
|
|
491
|
-
GroupLabel: () =>
|
|
492
|
-
Icon: () =>
|
|
493
|
-
Item: () =>
|
|
494
|
-
ItemIndicator: () =>
|
|
495
|
-
ItemText: () =>
|
|
496
|
-
Label: () =>
|
|
497
|
-
List: () =>
|
|
498
|
-
Popup: () =>
|
|
499
|
-
Portal: () =>
|
|
500
|
-
Positioner: () =>
|
|
501
|
-
Root: () =>
|
|
502
|
-
ScrollDownArrow: () =>
|
|
503
|
-
ScrollUpArrow: () =>
|
|
504
|
-
Separator: () =>
|
|
505
|
-
Trigger: () =>
|
|
506
|
-
Value: () =>
|
|
507
|
-
}),
|
|
508
|
-
function
|
|
488
|
+
}, vt = /* @__PURE__ */ e({
|
|
489
|
+
Arrow: () => Kt,
|
|
490
|
+
Backdrop: () => Ut,
|
|
491
|
+
Group: () => Zt,
|
|
492
|
+
GroupLabel: () => Qt,
|
|
493
|
+
Icon: () => Vt,
|
|
494
|
+
Item: () => Jt,
|
|
495
|
+
ItemIndicator: () => Yt,
|
|
496
|
+
ItemText: () => Xt,
|
|
497
|
+
Label: () => Rt,
|
|
498
|
+
List: () => qt,
|
|
499
|
+
Popup: () => Gt,
|
|
500
|
+
Portal: () => Ht,
|
|
501
|
+
Positioner: () => Wt,
|
|
502
|
+
Root: () => Lt,
|
|
503
|
+
ScrollDownArrow: () => tn,
|
|
504
|
+
ScrollUpArrow: () => en,
|
|
505
|
+
Separator: () => $t,
|
|
506
|
+
Trigger: () => zt,
|
|
507
|
+
Value: () => Bt
|
|
508
|
+
}), yt = h(M.root), bt = h(M.label), xt = h(M.trigger), St = h(M.value), Ct = h(M.icon), wt = h(M.backdrop), Tt = h(M.positioner), Et = h(M.popup), Dt = h(M.arrow), Ot = h(M.list), kt = h(M.item), At = h(M.itemIndicator), jt = h(M.itemText), Mt = h(M.group), Nt = h(M.groupLabel), Pt = h(M.separator), Ft = h(M.scrollUpArrow), It = h(M.scrollDownArrow);
|
|
509
|
+
function Lt({ className: e, style: t, ...n }) {
|
|
509
510
|
return /* @__PURE__ */ _("div", {
|
|
510
|
-
className:
|
|
511
|
+
className: yt({ className: e }),
|
|
511
512
|
style: t,
|
|
512
|
-
children: /* @__PURE__ */ _(
|
|
513
|
+
children: /* @__PURE__ */ _(x.Root, { ...n })
|
|
513
514
|
});
|
|
514
515
|
}
|
|
515
|
-
|
|
516
|
-
function
|
|
517
|
-
return /* @__PURE__ */ _(
|
|
516
|
+
Lt.displayName = "Select.Root";
|
|
517
|
+
function Rt({ className: e, ...t }) {
|
|
518
|
+
return /* @__PURE__ */ _(x.Label, {
|
|
518
519
|
...t,
|
|
519
520
|
"data-imf-ui-component": "Select.Label",
|
|
520
|
-
className: (t) =>
|
|
521
|
+
className: (t) => bt({ className: typeof e == "function" ? e(t) : e }),
|
|
521
522
|
children: t.children
|
|
522
523
|
});
|
|
523
524
|
}
|
|
524
|
-
|
|
525
|
-
function
|
|
526
|
-
return /* @__PURE__ */ _(
|
|
525
|
+
Rt.displayName = "Select.Label";
|
|
526
|
+
function zt({ className: e, ...t }) {
|
|
527
|
+
return /* @__PURE__ */ _(x.Trigger, {
|
|
527
528
|
...t,
|
|
528
529
|
"data-imf-ui-component": "Select.Trigger",
|
|
529
|
-
className: (t) =>
|
|
530
|
+
className: (t) => xt({ className: typeof e == "function" ? e(t) : e }),
|
|
530
531
|
children: t.children
|
|
531
532
|
});
|
|
532
533
|
}
|
|
533
|
-
|
|
534
|
-
function
|
|
535
|
-
return /* @__PURE__ */ _(
|
|
534
|
+
zt.displayName = "Select.Trigger";
|
|
535
|
+
function Bt({ className: e, children: t, ...n }) {
|
|
536
|
+
return /* @__PURE__ */ _(x.Value, {
|
|
536
537
|
...n,
|
|
537
538
|
"data-imf-ui-component": "Select.Value",
|
|
538
|
-
className: (t) =>
|
|
539
|
+
className: (t) => St({ className: typeof e == "function" ? e(t) : e }),
|
|
539
540
|
children: t
|
|
540
541
|
});
|
|
541
542
|
}
|
|
542
|
-
|
|
543
|
-
function
|
|
544
|
-
return /* @__PURE__ */ _(
|
|
543
|
+
Bt.displayName = "Select.Value";
|
|
544
|
+
function Vt({ className: e, ...t }) {
|
|
545
|
+
return /* @__PURE__ */ _(x.Icon, {
|
|
545
546
|
...t,
|
|
546
547
|
"data-imf-ui-component": "Select.Icon",
|
|
547
|
-
className: (t) =>
|
|
548
|
+
className: (t) => Ct({ className: typeof e == "function" ? e(t) : e }),
|
|
548
549
|
children: t.children
|
|
549
550
|
});
|
|
550
551
|
}
|
|
551
|
-
|
|
552
|
-
function
|
|
553
|
-
return /* @__PURE__ */ _(
|
|
552
|
+
Vt.displayName = "Select.Icon";
|
|
553
|
+
function Ht(e) {
|
|
554
|
+
return /* @__PURE__ */ _(x.Portal, { ...e });
|
|
554
555
|
}
|
|
555
|
-
|
|
556
|
-
function
|
|
557
|
-
return /* @__PURE__ */ _(
|
|
556
|
+
Ht.displayName = "Select.Portal";
|
|
557
|
+
function Ut({ className: e, ...t }) {
|
|
558
|
+
return /* @__PURE__ */ _(x.Backdrop, {
|
|
558
559
|
...t,
|
|
559
560
|
"data-imf-ui-component": "Select.Backdrop",
|
|
560
|
-
className: (t) =>
|
|
561
|
+
className: (t) => wt({ className: typeof e == "function" ? e(t) : e })
|
|
561
562
|
});
|
|
562
563
|
}
|
|
563
|
-
|
|
564
|
-
function
|
|
565
|
-
return /* @__PURE__ */ _(
|
|
564
|
+
Ut.displayName = "Select.Backdrop";
|
|
565
|
+
function Wt({ className: e, align: t = "start", alignItemWithTrigger: n = !1, ...r }) {
|
|
566
|
+
return /* @__PURE__ */ _(x.Positioner, {
|
|
566
567
|
...r,
|
|
567
568
|
align: t,
|
|
568
569
|
alignItemWithTrigger: n,
|
|
569
570
|
"data-imf-ui-component": "Select.Positioner",
|
|
570
|
-
className: (t) => wt({ className: typeof e == "function" ? e(t) : e }),
|
|
571
|
-
children: r.children
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
Ut.displayName = "Select.Positioner";
|
|
575
|
-
function Wt({ className: e, ...t }) {
|
|
576
|
-
return /* @__PURE__ */ _(S.Popup, {
|
|
577
|
-
...t,
|
|
578
|
-
"data-imf-ui-component": "Select.Popup",
|
|
579
571
|
className: (t) => Tt({ className: typeof e == "function" ? e(t) : e }),
|
|
580
|
-
children:
|
|
572
|
+
children: r.children
|
|
581
573
|
});
|
|
582
574
|
}
|
|
583
|
-
Wt.displayName = "Select.
|
|
575
|
+
Wt.displayName = "Select.Positioner";
|
|
584
576
|
function Gt({ className: e, ...t }) {
|
|
585
|
-
return /* @__PURE__ */ _(
|
|
577
|
+
return /* @__PURE__ */ _(x.Popup, {
|
|
586
578
|
...t,
|
|
587
|
-
"data-imf-ui-component": "Select.
|
|
579
|
+
"data-imf-ui-component": "Select.Popup",
|
|
588
580
|
className: (t) => Et({ className: typeof e == "function" ? e(t) : e }),
|
|
589
581
|
children: t.children
|
|
590
582
|
});
|
|
591
583
|
}
|
|
592
|
-
Gt.displayName = "Select.
|
|
584
|
+
Gt.displayName = "Select.Popup";
|
|
593
585
|
function Kt({ className: e, ...t }) {
|
|
594
|
-
return /* @__PURE__ */ _(
|
|
586
|
+
return /* @__PURE__ */ _(x.Arrow, {
|
|
595
587
|
...t,
|
|
596
|
-
"data-imf-ui-component": "Select.
|
|
588
|
+
"data-imf-ui-component": "Select.Arrow",
|
|
597
589
|
className: (t) => Dt({ className: typeof e == "function" ? e(t) : e }),
|
|
598
590
|
children: t.children
|
|
599
591
|
});
|
|
600
592
|
}
|
|
601
|
-
Kt.displayName = "Select.
|
|
593
|
+
Kt.displayName = "Select.Arrow";
|
|
602
594
|
function qt({ className: e, ...t }) {
|
|
603
|
-
return /* @__PURE__ */ _(
|
|
595
|
+
return /* @__PURE__ */ _(x.List, {
|
|
604
596
|
...t,
|
|
605
|
-
"data-imf-ui-component": "Select.
|
|
597
|
+
"data-imf-ui-component": "Select.List",
|
|
606
598
|
className: (t) => Ot({ className: typeof e == "function" ? e(t) : e }),
|
|
607
599
|
children: t.children
|
|
608
600
|
});
|
|
609
601
|
}
|
|
610
|
-
qt.displayName = "Select.
|
|
602
|
+
qt.displayName = "Select.List";
|
|
611
603
|
function Jt({ className: e, ...t }) {
|
|
612
|
-
return /* @__PURE__ */ _(
|
|
604
|
+
return /* @__PURE__ */ _(x.Item, {
|
|
613
605
|
...t,
|
|
614
|
-
"data-imf-ui-component": "Select.
|
|
606
|
+
"data-imf-ui-component": "Select.Item",
|
|
615
607
|
className: (t) => kt({ className: typeof e == "function" ? e(t) : e }),
|
|
616
608
|
children: t.children
|
|
617
609
|
});
|
|
618
610
|
}
|
|
619
|
-
Jt.displayName = "Select.
|
|
611
|
+
Jt.displayName = "Select.Item";
|
|
620
612
|
function Yt({ className: e, ...t }) {
|
|
621
|
-
return /* @__PURE__ */ _(
|
|
613
|
+
return /* @__PURE__ */ _(x.ItemIndicator, {
|
|
622
614
|
...t,
|
|
623
|
-
"data-imf-ui-component": "Select.
|
|
615
|
+
"data-imf-ui-component": "Select.ItemIndicator",
|
|
624
616
|
className: (t) => At({ className: typeof e == "function" ? e(t) : e }),
|
|
625
617
|
children: t.children
|
|
626
618
|
});
|
|
627
619
|
}
|
|
628
|
-
Yt.displayName = "Select.
|
|
620
|
+
Yt.displayName = "Select.ItemIndicator";
|
|
629
621
|
function Xt({ className: e, ...t }) {
|
|
630
|
-
return /* @__PURE__ */ _(
|
|
622
|
+
return /* @__PURE__ */ _(x.ItemText, {
|
|
631
623
|
...t,
|
|
632
|
-
"data-imf-ui-component": "Select.
|
|
624
|
+
"data-imf-ui-component": "Select.ItemText",
|
|
633
625
|
className: (t) => jt({ className: typeof e == "function" ? e(t) : e }),
|
|
634
626
|
children: t.children
|
|
635
627
|
});
|
|
636
628
|
}
|
|
637
|
-
Xt.displayName = "Select.
|
|
629
|
+
Xt.displayName = "Select.ItemText";
|
|
638
630
|
function Zt({ className: e, ...t }) {
|
|
639
|
-
return /* @__PURE__ */ _(
|
|
631
|
+
return /* @__PURE__ */ _(x.Group, {
|
|
640
632
|
...t,
|
|
641
|
-
"data-imf-ui-component": "Select.
|
|
633
|
+
"data-imf-ui-component": "Select.Group",
|
|
642
634
|
className: (t) => Mt({ className: typeof e == "function" ? e(t) : e }),
|
|
643
635
|
children: t.children
|
|
644
636
|
});
|
|
645
637
|
}
|
|
646
|
-
Zt.displayName = "Select.
|
|
638
|
+
Zt.displayName = "Select.Group";
|
|
647
639
|
function Qt({ className: e, ...t }) {
|
|
648
|
-
return /* @__PURE__ */ _(
|
|
640
|
+
return /* @__PURE__ */ _(x.GroupLabel, {
|
|
649
641
|
...t,
|
|
650
|
-
"data-imf-ui-component": "Select.
|
|
651
|
-
className: (t) => Nt({ className: typeof e == "function" ? e(t) : e })
|
|
642
|
+
"data-imf-ui-component": "Select.GroupLabel",
|
|
643
|
+
className: (t) => Nt({ className: typeof e == "function" ? e(t) : e }),
|
|
644
|
+
children: t.children
|
|
652
645
|
});
|
|
653
646
|
}
|
|
654
|
-
Qt.displayName = "Select.
|
|
647
|
+
Qt.displayName = "Select.GroupLabel";
|
|
655
648
|
function $t({ className: e, ...t }) {
|
|
656
|
-
return /* @__PURE__ */ _(
|
|
649
|
+
return /* @__PURE__ */ _(x.Separator, {
|
|
650
|
+
...t,
|
|
651
|
+
"data-imf-ui-component": "Select.Separator",
|
|
652
|
+
className: (t) => Pt({ className: typeof e == "function" ? e(t) : e })
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
$t.displayName = "Select.Separator";
|
|
656
|
+
function en({ className: e, ...t }) {
|
|
657
|
+
return /* @__PURE__ */ _(x.ScrollUpArrow, {
|
|
657
658
|
...t,
|
|
658
659
|
"data-imf-ui-component": "Select.ScrollUpArrow",
|
|
659
|
-
className: (t) =>
|
|
660
|
+
className: (t) => Ft({ className: typeof e == "function" ? e(t) : e }),
|
|
660
661
|
children: t.children
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
|
-
|
|
664
|
-
function
|
|
665
|
-
return /* @__PURE__ */ _(
|
|
664
|
+
en.displayName = "Select.ScrollUpArrow";
|
|
665
|
+
function tn({ className: e, ...t }) {
|
|
666
|
+
return /* @__PURE__ */ _(x.ScrollDownArrow, {
|
|
666
667
|
...t,
|
|
667
668
|
"data-imf-ui-component": "Select.ScrollDownArrow",
|
|
668
|
-
className: (t) =>
|
|
669
|
+
className: (t) => It({ className: typeof e == "function" ? e(t) : e }),
|
|
669
670
|
children: t.children
|
|
670
671
|
});
|
|
671
672
|
}
|
|
672
|
-
|
|
673
|
+
tn.displayName = "Select.ScrollDownArrow";
|
|
673
674
|
//#endregion
|
|
674
675
|
//#region src/components/select/select.meta.ts
|
|
675
|
-
var
|
|
676
|
+
var nn = {
|
|
676
677
|
name: "Select",
|
|
677
678
|
category: t.inputs,
|
|
678
679
|
status: "stable",
|
|
@@ -684,7 +685,7 @@ var tn = {
|
|
|
684
685
|
docLink: "https://base-ui.com/react/components/select",
|
|
685
686
|
llmDocLink: "https://base-ui.com/react/components/select.md"
|
|
686
687
|
}
|
|
687
|
-
},
|
|
688
|
+
}, rn = {
|
|
688
689
|
name: "Slider",
|
|
689
690
|
category: t.inputs,
|
|
690
691
|
status: "stable",
|
|
@@ -696,7 +697,7 @@ var tn = {
|
|
|
696
697
|
docLink: "https://base-ui.com/react/components/slider",
|
|
697
698
|
llmDocLink: "https://base-ui.com/react/components/slider.md"
|
|
698
699
|
}
|
|
699
|
-
},
|
|
700
|
+
}, an = {
|
|
700
701
|
name: "Switch",
|
|
701
702
|
category: t.inputs,
|
|
702
703
|
status: "stable",
|
|
@@ -708,7 +709,7 @@ var tn = {
|
|
|
708
709
|
docLink: "https://base-ui.com/react/components/switch",
|
|
709
710
|
llmDocLink: "https://base-ui.com/react/components/switch.md"
|
|
710
711
|
}
|
|
711
|
-
},
|
|
712
|
+
}, on = {
|
|
712
713
|
name: "Toggle",
|
|
713
714
|
category: t.inputs,
|
|
714
715
|
status: "experimental",
|
|
@@ -720,7 +721,7 @@ var tn = {
|
|
|
720
721
|
docLink: "https://base-ui.com/react/components/toggle",
|
|
721
722
|
llmDocLink: "https://base-ui.com/react/components/toggle.md"
|
|
722
723
|
}
|
|
723
|
-
},
|
|
724
|
+
}, sn = {
|
|
724
725
|
name: "ToggleGroup",
|
|
725
726
|
category: t.inputs,
|
|
726
727
|
status: "experimental",
|
|
@@ -740,77 +741,77 @@ var tn = {
|
|
|
740
741
|
navbar: "imf-ui-app-shell-module-navbar",
|
|
741
742
|
root: "imf-ui-app-shell-module-root",
|
|
742
743
|
section: "imf-ui-app-shell-module-section"
|
|
743
|
-
},
|
|
744
|
-
Aside: () =>
|
|
745
|
-
Footer: () =>
|
|
746
|
-
Header: () =>
|
|
747
|
-
Main: () =>
|
|
748
|
-
Navbar: () =>
|
|
749
|
-
Root: () =>
|
|
750
|
-
Section: () =>
|
|
751
|
-
}),
|
|
752
|
-
function
|
|
744
|
+
}, cn = /* @__PURE__ */ e({
|
|
745
|
+
Aside: () => yn,
|
|
746
|
+
Footer: () => bn,
|
|
747
|
+
Header: () => _n,
|
|
748
|
+
Main: () => xn,
|
|
749
|
+
Navbar: () => vn,
|
|
750
|
+
Root: () => gn,
|
|
751
|
+
Section: () => Sn
|
|
752
|
+
}), ln = h(N.root), un = h(N.header), dn = h(N.navbar), fn = h(N.aside), pn = h(N.footer), mn = h(N.main), hn = h(N.section);
|
|
753
|
+
function gn({ className: e, ...t }) {
|
|
753
754
|
return /* @__PURE__ */ _("div", {
|
|
754
755
|
...t,
|
|
755
756
|
"data-imf-ui-component": "AppShell.Root",
|
|
756
|
-
className:
|
|
757
|
+
className: ln({ className: e })
|
|
757
758
|
});
|
|
758
759
|
}
|
|
759
|
-
|
|
760
|
-
function
|
|
760
|
+
gn.displayName = "AppShell.Root";
|
|
761
|
+
function _n({ className: e, ...t }) {
|
|
761
762
|
return /* @__PURE__ */ _("header", {
|
|
762
763
|
...t,
|
|
763
764
|
"data-imf-ui-component": "AppShell.Header",
|
|
764
|
-
className:
|
|
765
|
+
className: un({ className: e })
|
|
765
766
|
});
|
|
766
767
|
}
|
|
767
|
-
|
|
768
|
-
function
|
|
768
|
+
_n.displayName = "AppShell.Header";
|
|
769
|
+
function vn({ className: e, open: t, ...n }) {
|
|
769
770
|
return /* @__PURE__ */ _("nav", {
|
|
770
771
|
...n,
|
|
771
772
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
772
773
|
"data-open": t ? "" : void 0,
|
|
773
|
-
className:
|
|
774
|
+
className: dn({ className: e })
|
|
774
775
|
});
|
|
775
776
|
}
|
|
776
|
-
|
|
777
|
-
function
|
|
777
|
+
vn.displayName = "AppShell.Navbar";
|
|
778
|
+
function yn({ className: e, open: t, ...n }) {
|
|
778
779
|
return /* @__PURE__ */ _("aside", {
|
|
779
780
|
...n,
|
|
780
781
|
"data-imf-ui-component": "AppShell.Aside",
|
|
781
782
|
"data-open": t ? "" : void 0,
|
|
782
|
-
className:
|
|
783
|
+
className: fn({ className: e })
|
|
783
784
|
});
|
|
784
785
|
}
|
|
785
|
-
|
|
786
|
-
function
|
|
786
|
+
yn.displayName = "AppShell.Aside";
|
|
787
|
+
function bn({ className: e, ...t }) {
|
|
787
788
|
return /* @__PURE__ */ _("footer", {
|
|
788
789
|
...t,
|
|
789
790
|
"data-imf-ui-component": "AppShell.Footer",
|
|
790
|
-
className:
|
|
791
|
+
className: pn({ className: e })
|
|
791
792
|
});
|
|
792
793
|
}
|
|
793
|
-
|
|
794
|
-
function
|
|
794
|
+
bn.displayName = "AppShell.Footer";
|
|
795
|
+
function xn({ className: e, ...t }) {
|
|
795
796
|
return /* @__PURE__ */ _("main", {
|
|
796
797
|
...t,
|
|
797
798
|
"data-imf-ui-component": "AppShell.Main",
|
|
798
|
-
className:
|
|
799
|
+
className: mn({ className: e })
|
|
799
800
|
});
|
|
800
801
|
}
|
|
801
|
-
|
|
802
|
-
function
|
|
802
|
+
xn.displayName = "AppShell.Main";
|
|
803
|
+
function Sn({ className: e, grow: t, ...n }) {
|
|
803
804
|
return /* @__PURE__ */ _("div", {
|
|
804
805
|
...n,
|
|
805
806
|
"data-imf-ui-component": "AppShell.Section",
|
|
806
807
|
"data-grow": t ? "" : void 0,
|
|
807
|
-
className:
|
|
808
|
+
className: hn({ className: e })
|
|
808
809
|
});
|
|
809
810
|
}
|
|
810
|
-
|
|
811
|
+
Sn.displayName = "AppShell.Section";
|
|
811
812
|
//#endregion
|
|
812
813
|
//#region src/components/app-shell/app-shell.meta.ts
|
|
813
|
-
var
|
|
814
|
+
var Cn = {
|
|
814
815
|
name: "AppShell",
|
|
815
816
|
category: t.layout,
|
|
816
817
|
status: "stable",
|
|
@@ -840,13 +841,13 @@ var Sn = {
|
|
|
840
841
|
variantMinor: "imf-ui-card-module-variantMinor",
|
|
841
842
|
variantPrimary: "imf-ui-card-module-variantPrimary",
|
|
842
843
|
variantSupport: "imf-ui-card-module-variantSupport"
|
|
843
|
-
},
|
|
844
|
-
Content: () =>
|
|
845
|
-
Footer: () =>
|
|
846
|
-
Header: () =>
|
|
847
|
-
Image: () =>
|
|
848
|
-
Root: () =>
|
|
849
|
-
}),
|
|
844
|
+
}, wn = /* @__PURE__ */ e({
|
|
845
|
+
Content: () => kn,
|
|
846
|
+
Footer: () => An,
|
|
847
|
+
Header: () => On,
|
|
848
|
+
Image: () => Dn,
|
|
849
|
+
Root: () => En
|
|
850
|
+
}), Tn = h(P.root, { variants: {
|
|
850
851
|
density: {
|
|
851
852
|
compact: P.densityCompact,
|
|
852
853
|
comfortable: P.densityComfortable,
|
|
@@ -876,13 +877,13 @@ var Sn = {
|
|
|
876
877
|
horizontal: P.orientationHorizontal
|
|
877
878
|
}
|
|
878
879
|
} });
|
|
879
|
-
function
|
|
880
|
+
function En({ density: e = "comfortable", variant: t = "main", shadow: n = "lg", radius: r = "brand", orientation: i = "vertical", withBorder: a = !0, className: o, ...s }) {
|
|
880
881
|
let c = a && t !== "primary" && t !== "brand";
|
|
881
882
|
return /* @__PURE__ */ _("div", {
|
|
882
883
|
...s,
|
|
883
884
|
"data-imf-ui-component": "Card.Root",
|
|
884
885
|
"data-with-border": c ? "" : void 0,
|
|
885
|
-
className:
|
|
886
|
+
className: Tn({
|
|
886
887
|
density: e,
|
|
887
888
|
variant: t,
|
|
888
889
|
shadow: n,
|
|
@@ -892,8 +893,8 @@ function Tn({ density: e = "comfortable", variant: t = "main", shadow: n = "lg",
|
|
|
892
893
|
})
|
|
893
894
|
});
|
|
894
895
|
}
|
|
895
|
-
|
|
896
|
-
function
|
|
896
|
+
En.displayName = "Card.Root";
|
|
897
|
+
function Dn({ className: e, alt: t = "", ...n }) {
|
|
897
898
|
return /* @__PURE__ */ _("img", {
|
|
898
899
|
...n,
|
|
899
900
|
alt: t,
|
|
@@ -901,34 +902,34 @@ function En({ className: e, alt: t = "", ...n }) {
|
|
|
901
902
|
className: h(P.image)({ className: e })
|
|
902
903
|
});
|
|
903
904
|
}
|
|
904
|
-
|
|
905
|
-
function
|
|
905
|
+
Dn.displayName = "Card.Image";
|
|
906
|
+
function On({ className: e, ...t }) {
|
|
906
907
|
return /* @__PURE__ */ _("div", {
|
|
907
908
|
...t,
|
|
908
909
|
"data-imf-ui-component": "Card.Header",
|
|
909
910
|
className: h(P.header)({ className: e })
|
|
910
911
|
});
|
|
911
912
|
}
|
|
912
|
-
|
|
913
|
-
function
|
|
913
|
+
On.displayName = "Card.Header";
|
|
914
|
+
function kn({ className: e, ...t }) {
|
|
914
915
|
return /* @__PURE__ */ _("div", {
|
|
915
916
|
...t,
|
|
916
917
|
"data-imf-ui-component": "Card.Content",
|
|
917
918
|
className: h(P.content)({ className: e })
|
|
918
919
|
});
|
|
919
920
|
}
|
|
920
|
-
|
|
921
|
-
function
|
|
921
|
+
kn.displayName = "Card.Content";
|
|
922
|
+
function An({ className: e, ...t }) {
|
|
922
923
|
return /* @__PURE__ */ _("div", {
|
|
923
924
|
...t,
|
|
924
925
|
"data-imf-ui-component": "Card.Footer",
|
|
925
926
|
className: h(P.footer)({ className: e })
|
|
926
927
|
});
|
|
927
928
|
}
|
|
928
|
-
|
|
929
|
+
An.displayName = "Card.Footer";
|
|
929
930
|
//#endregion
|
|
930
931
|
//#region src/components/card/card.meta.ts
|
|
931
|
-
var
|
|
932
|
+
var jn = {
|
|
932
933
|
name: "Card",
|
|
933
934
|
category: t.layout,
|
|
934
935
|
status: "stable",
|
|
@@ -958,25 +959,25 @@ var An = {
|
|
|
958
959
|
title: "imf-ui-drawer-module-title",
|
|
959
960
|
trigger: "imf-ui-drawer-module-trigger",
|
|
960
961
|
viewport: "imf-ui-drawer-module-viewport"
|
|
961
|
-
},
|
|
962
|
-
Backdrop: () =>
|
|
963
|
-
Close: () =>
|
|
964
|
-
Content: () =>
|
|
965
|
-
Description: () =>
|
|
966
|
-
Indent: () =>
|
|
967
|
-
IndentBackground: () =>
|
|
968
|
-
Popup: () =>
|
|
969
|
-
Portal: () =>
|
|
970
|
-
Provider: () =>
|
|
971
|
-
Root: () =>
|
|
972
|
-
SwipeArea: () =>
|
|
973
|
-
Title: () =>
|
|
974
|
-
Trigger: () =>
|
|
975
|
-
Viewport: () =>
|
|
976
|
-
}),
|
|
962
|
+
}, Mn = /* @__PURE__ */ e({
|
|
963
|
+
Backdrop: () => Jn,
|
|
964
|
+
Close: () => er,
|
|
965
|
+
Content: () => Qn,
|
|
966
|
+
Description: () => tr,
|
|
967
|
+
Indent: () => rr,
|
|
968
|
+
IndentBackground: () => ir,
|
|
969
|
+
Popup: () => Zn,
|
|
970
|
+
Portal: () => qn,
|
|
971
|
+
Provider: () => nr,
|
|
972
|
+
Root: () => Gn,
|
|
973
|
+
SwipeArea: () => ar,
|
|
974
|
+
Title: () => $n,
|
|
975
|
+
Trigger: () => Kn,
|
|
976
|
+
Viewport: () => Yn
|
|
977
|
+
}), Nn = xe({
|
|
977
978
|
borderColor: "primary",
|
|
978
979
|
borderStyle: "solid"
|
|
979
|
-
}),
|
|
980
|
+
}), Pn = h(F.trigger), Fn = h(F.backdrop), In = h(F.viewport), Ln = h(F.popup, {
|
|
980
981
|
variants: {
|
|
981
982
|
borderColor: {
|
|
982
983
|
primary: F.borderColorPrimary,
|
|
@@ -994,127 +995,127 @@ var An = {
|
|
|
994
995
|
borderColor: "primary",
|
|
995
996
|
borderStyle: "solid"
|
|
996
997
|
}
|
|
997
|
-
}),
|
|
998
|
-
function
|
|
999
|
-
return /* @__PURE__ */ _(
|
|
998
|
+
}), Rn = h(F.content), zn = h(F.title), Bn = h(F.close), Vn = h(F.description), Hn = h(F.indent), Un = h(F.indentBackground), Wn = h(F.swipeArea);
|
|
999
|
+
function Gn({ borderColor: e = "primary", borderStyle: t = "solid", ...n }) {
|
|
1000
|
+
return /* @__PURE__ */ _(Nn.Provider, {
|
|
1000
1001
|
value: {
|
|
1001
1002
|
borderColor: e,
|
|
1002
1003
|
borderStyle: t
|
|
1003
1004
|
},
|
|
1004
|
-
children: /* @__PURE__ */ _(
|
|
1005
|
+
children: /* @__PURE__ */ _(S.Root, { ...n })
|
|
1005
1006
|
});
|
|
1006
1007
|
}
|
|
1007
|
-
|
|
1008
|
-
function
|
|
1009
|
-
return /* @__PURE__ */ _(
|
|
1008
|
+
Gn.displayName = "Drawer.Root";
|
|
1009
|
+
function Kn({ className: e, ...t }) {
|
|
1010
|
+
return /* @__PURE__ */ _(S.Trigger, {
|
|
1010
1011
|
...t,
|
|
1011
1012
|
"data-imf-ui-component": "Drawer.Trigger",
|
|
1012
|
-
className: (t) =>
|
|
1013
|
+
className: (t) => Pn({ className: typeof e == "function" ? e(t) : e })
|
|
1013
1014
|
});
|
|
1014
1015
|
}
|
|
1015
|
-
|
|
1016
|
-
function
|
|
1017
|
-
return /* @__PURE__ */ _(
|
|
1016
|
+
Kn.displayName = "Drawer.Trigger";
|
|
1017
|
+
function qn(e) {
|
|
1018
|
+
return /* @__PURE__ */ _(S.Portal, { ...e });
|
|
1018
1019
|
}
|
|
1019
|
-
|
|
1020
|
-
function
|
|
1021
|
-
return /* @__PURE__ */ _(
|
|
1020
|
+
qn.displayName = "Drawer.Portal";
|
|
1021
|
+
function Jn({ className: e, ...t }) {
|
|
1022
|
+
return /* @__PURE__ */ _(S.Backdrop, {
|
|
1022
1023
|
...t,
|
|
1023
1024
|
"data-imf-ui-component": "Drawer.Backdrop",
|
|
1024
|
-
className: (t) =>
|
|
1025
|
+
className: (t) => Fn({ className: typeof e == "function" ? e(t) : e })
|
|
1025
1026
|
});
|
|
1026
1027
|
}
|
|
1027
|
-
|
|
1028
|
-
function
|
|
1029
|
-
return /* @__PURE__ */ _(
|
|
1028
|
+
Jn.displayName = "Drawer.Backdrop";
|
|
1029
|
+
function Yn({ className: e, ...t }) {
|
|
1030
|
+
return /* @__PURE__ */ _(S.Viewport, {
|
|
1030
1031
|
...t,
|
|
1031
1032
|
"data-imf-ui-component": "Drawer.Viewport",
|
|
1032
|
-
className: (t) =>
|
|
1033
|
+
className: (t) => In({ className: typeof e == "function" ? e(t) : e })
|
|
1033
1034
|
});
|
|
1034
1035
|
}
|
|
1035
|
-
|
|
1036
|
-
var
|
|
1036
|
+
Yn.displayName = "Drawer.Viewport";
|
|
1037
|
+
var Xn = {
|
|
1037
1038
|
left: F.popupLeft,
|
|
1038
1039
|
right: F.popupRight,
|
|
1039
1040
|
down: F.popupBottom,
|
|
1040
1041
|
up: F.popupTop
|
|
1041
1042
|
};
|
|
1042
|
-
function
|
|
1043
|
-
let i =
|
|
1044
|
-
return /* @__PURE__ */ _(
|
|
1043
|
+
function Zn({ borderColor: e, borderStyle: t, className: n, ...r }) {
|
|
1044
|
+
let i = Se(Nn), a = e ?? i.borderColor, o = t ?? i.borderStyle;
|
|
1045
|
+
return /* @__PURE__ */ _(S.Popup, {
|
|
1045
1046
|
...r,
|
|
1046
1047
|
"data-imf-ui-component": "Drawer.Popup",
|
|
1047
|
-
className: (e) =>
|
|
1048
|
+
className: (e) => Ln({
|
|
1048
1049
|
borderColor: a,
|
|
1049
1050
|
borderStyle: o,
|
|
1050
|
-
className: g(
|
|
1051
|
+
className: g(Xn[e.swipeDirection], typeof n == "function" ? n(e) : n)
|
|
1051
1052
|
})
|
|
1052
1053
|
});
|
|
1053
1054
|
}
|
|
1054
|
-
|
|
1055
|
-
function
|
|
1056
|
-
return /* @__PURE__ */ _(
|
|
1055
|
+
Zn.displayName = "Drawer.Popup";
|
|
1056
|
+
function Qn({ className: e, ...t }) {
|
|
1057
|
+
return /* @__PURE__ */ _(S.Content, {
|
|
1057
1058
|
...t,
|
|
1058
1059
|
"data-imf-ui-component": "Drawer.Content",
|
|
1059
|
-
className: (t) =>
|
|
1060
|
+
className: (t) => Rn({ className: typeof e == "function" ? e(t) : e })
|
|
1060
1061
|
});
|
|
1061
1062
|
}
|
|
1062
|
-
|
|
1063
|
-
function
|
|
1064
|
-
return /* @__PURE__ */ _(
|
|
1063
|
+
Qn.displayName = "Drawer.Content";
|
|
1064
|
+
function $n({ className: e, ...t }) {
|
|
1065
|
+
return /* @__PURE__ */ _(S.Title, {
|
|
1065
1066
|
...t,
|
|
1066
1067
|
"data-imf-ui-component": "Drawer.Title",
|
|
1067
|
-
className:
|
|
1068
|
+
className: zn({ className: e })
|
|
1068
1069
|
});
|
|
1069
1070
|
}
|
|
1070
|
-
|
|
1071
|
-
function
|
|
1072
|
-
return /* @__PURE__ */ _(
|
|
1071
|
+
$n.displayName = "Drawer.Title";
|
|
1072
|
+
function er({ className: e, ...t }) {
|
|
1073
|
+
return /* @__PURE__ */ _(S.Close, {
|
|
1073
1074
|
...t,
|
|
1074
1075
|
"data-imf-ui-component": "Drawer.Close",
|
|
1075
|
-
className: (t) =>
|
|
1076
|
+
className: (t) => Bn({ className: typeof e == "function" ? e(t) : e })
|
|
1076
1077
|
});
|
|
1077
1078
|
}
|
|
1078
|
-
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */ _(
|
|
1079
|
+
er.displayName = "Drawer.Close";
|
|
1080
|
+
function tr({ className: e, ...t }) {
|
|
1081
|
+
return /* @__PURE__ */ _(S.Description, {
|
|
1081
1082
|
...t,
|
|
1082
1083
|
"data-imf-ui-component": "Drawer.Description",
|
|
1083
|
-
className:
|
|
1084
|
+
className: Vn({ className: e })
|
|
1084
1085
|
});
|
|
1085
1086
|
}
|
|
1086
|
-
|
|
1087
|
-
function
|
|
1088
|
-
return /* @__PURE__ */ _(
|
|
1087
|
+
tr.displayName = "Drawer.Description";
|
|
1088
|
+
function nr(e) {
|
|
1089
|
+
return /* @__PURE__ */ _(S.Provider, { ...e });
|
|
1089
1090
|
}
|
|
1090
|
-
|
|
1091
|
-
function
|
|
1092
|
-
return /* @__PURE__ */ _(
|
|
1091
|
+
nr.displayName = "Drawer.Provider";
|
|
1092
|
+
function rr({ className: e, ...t }) {
|
|
1093
|
+
return /* @__PURE__ */ _(S.Indent, {
|
|
1093
1094
|
...t,
|
|
1094
1095
|
"data-imf-ui-component": "Drawer.Indent",
|
|
1095
|
-
className: (t) =>
|
|
1096
|
+
className: (t) => Hn({ className: typeof e == "function" ? e(t) : e })
|
|
1096
1097
|
});
|
|
1097
1098
|
}
|
|
1098
|
-
|
|
1099
|
-
function
|
|
1100
|
-
return /* @__PURE__ */ _(
|
|
1099
|
+
rr.displayName = "Drawer.Indent";
|
|
1100
|
+
function ir({ className: e, ...t }) {
|
|
1101
|
+
return /* @__PURE__ */ _(S.IndentBackground, {
|
|
1101
1102
|
...t,
|
|
1102
1103
|
"data-imf-ui-component": "Drawer.IndentBackground",
|
|
1103
|
-
className: (t) =>
|
|
1104
|
+
className: (t) => Un({ className: typeof e == "function" ? e(t) : e })
|
|
1104
1105
|
});
|
|
1105
1106
|
}
|
|
1106
|
-
|
|
1107
|
-
function
|
|
1108
|
-
return /* @__PURE__ */ _(
|
|
1107
|
+
ir.displayName = "Drawer.IndentBackground";
|
|
1108
|
+
function ar({ className: e, ...t }) {
|
|
1109
|
+
return /* @__PURE__ */ _(S.SwipeArea, {
|
|
1109
1110
|
...t,
|
|
1110
1111
|
"data-imf-ui-component": "Drawer.SwipeArea",
|
|
1111
|
-
className: (t) =>
|
|
1112
|
+
className: (t) => Wn({ className: typeof e == "function" ? e(t) : e })
|
|
1112
1113
|
});
|
|
1113
1114
|
}
|
|
1114
|
-
|
|
1115
|
+
ar.displayName = "Drawer.SwipeArea";
|
|
1115
1116
|
//#endregion
|
|
1116
1117
|
//#region src/components/drawer/drawer.meta.ts
|
|
1117
|
-
var
|
|
1118
|
+
var or = {
|
|
1118
1119
|
name: "Drawer",
|
|
1119
1120
|
category: t.layout,
|
|
1120
1121
|
status: "stable",
|
|
@@ -1150,22 +1151,22 @@ var ar = {
|
|
|
1150
1151
|
variantPrimary: "imf-ui-popover-module-variantPrimary",
|
|
1151
1152
|
variantSecondary: "imf-ui-popover-module-variantSecondary",
|
|
1152
1153
|
viewport: "imf-ui-popover-module-viewport"
|
|
1153
|
-
},
|
|
1154
|
-
Arrow: () =>
|
|
1155
|
-
Backdrop: () =>
|
|
1156
|
-
Close: () =>
|
|
1157
|
-
Description: () =>
|
|
1158
|
-
Eyebrow: () =>
|
|
1159
|
-
Inline: () =>
|
|
1160
|
-
Popup: () =>
|
|
1161
|
-
Portal: () =>
|
|
1162
|
-
Positioner: () =>
|
|
1163
|
-
Root: () =>
|
|
1164
|
-
Title: () =>
|
|
1165
|
-
Trigger: () =>
|
|
1166
|
-
Viewport: () =>
|
|
1167
|
-
createHandle: () =>
|
|
1168
|
-
}),
|
|
1154
|
+
}, sr = /* @__PURE__ */ e({
|
|
1155
|
+
Arrow: () => Tr,
|
|
1156
|
+
Backdrop: () => Sr,
|
|
1157
|
+
Close: () => Ar,
|
|
1158
|
+
Description: () => kr,
|
|
1159
|
+
Eyebrow: () => Dr,
|
|
1160
|
+
Inline: () => jr,
|
|
1161
|
+
Popup: () => wr,
|
|
1162
|
+
Portal: () => xr,
|
|
1163
|
+
Positioner: () => Cr,
|
|
1164
|
+
Root: () => yr,
|
|
1165
|
+
Title: () => Or,
|
|
1166
|
+
Trigger: () => br,
|
|
1167
|
+
Viewport: () => Er,
|
|
1168
|
+
createHandle: () => vr
|
|
1169
|
+
}), cr = h(I.trigger, { variants: {
|
|
1169
1170
|
variant: {
|
|
1170
1171
|
ghost: I.variantGhost,
|
|
1171
1172
|
outline: I.variantOutline,
|
|
@@ -1175,125 +1176,125 @@ var ar = {
|
|
|
1175
1176
|
negative: I.variantNegative
|
|
1176
1177
|
},
|
|
1177
1178
|
inline: { true: I.triggerInline }
|
|
1178
|
-
} }),
|
|
1179
|
+
} }), lr = h(I.backdrop), ur = h(I.positioner), dr = h(I.popup, { variants: { variant: {
|
|
1179
1180
|
ghost: I.popupVariantGhost,
|
|
1180
1181
|
outline: I.popupVariantOutline,
|
|
1181
1182
|
primary: I.popupVariantPrimary,
|
|
1182
1183
|
secondary: I.popupVariantSecondary,
|
|
1183
1184
|
positive: I.popupVariantPositive,
|
|
1184
1185
|
negative: I.popupVariantNegative
|
|
1185
|
-
} } }),
|
|
1186
|
-
function
|
|
1187
|
-
return /* @__PURE__ */ _(
|
|
1186
|
+
} } }), fr = h(I.arrow), pr = h(I.viewport), mr = h(I.eyebrow), hr = h(I.title), gr = h(I.description), _r = h(I.close), vr = C.createHandle;
|
|
1187
|
+
function yr(e) {
|
|
1188
|
+
return /* @__PURE__ */ _(C.Root, { ...e });
|
|
1188
1189
|
}
|
|
1189
|
-
|
|
1190
|
-
function
|
|
1191
|
-
return /* @__PURE__ */ _(
|
|
1190
|
+
yr.displayName = "Popover.Root";
|
|
1191
|
+
function br({ variant: e = "ghost", inline: t = !1, className: n, ...r }) {
|
|
1192
|
+
return /* @__PURE__ */ _(C.Trigger, {
|
|
1192
1193
|
...r,
|
|
1193
1194
|
"data-imf-ui-component": "Popover.Trigger",
|
|
1194
|
-
className: (r) =>
|
|
1195
|
+
className: (r) => cr({
|
|
1195
1196
|
variant: e,
|
|
1196
1197
|
inline: t || void 0,
|
|
1197
1198
|
className: typeof n == "function" ? n(r) : n
|
|
1198
1199
|
})
|
|
1199
1200
|
});
|
|
1200
1201
|
}
|
|
1201
|
-
|
|
1202
|
-
function
|
|
1203
|
-
return /* @__PURE__ */ _(
|
|
1202
|
+
br.displayName = "Popover.Trigger";
|
|
1203
|
+
function xr(e) {
|
|
1204
|
+
return /* @__PURE__ */ _(C.Portal, { ...e });
|
|
1204
1205
|
}
|
|
1205
|
-
|
|
1206
|
-
function
|
|
1207
|
-
return /* @__PURE__ */ _(
|
|
1206
|
+
xr.displayName = "Popover.Portal";
|
|
1207
|
+
function Sr({ className: e, ...t }) {
|
|
1208
|
+
return /* @__PURE__ */ _(C.Backdrop, {
|
|
1208
1209
|
...t,
|
|
1209
1210
|
"data-imf-ui-component": "Popover.Backdrop",
|
|
1210
|
-
className: (t) =>
|
|
1211
|
+
className: (t) => lr({ className: typeof e == "function" ? e(t) : e })
|
|
1211
1212
|
});
|
|
1212
1213
|
}
|
|
1213
|
-
|
|
1214
|
-
function
|
|
1215
|
-
return /* @__PURE__ */ _(
|
|
1214
|
+
Sr.displayName = "Popover.Backdrop";
|
|
1215
|
+
function Cr({ className: e, ...t }) {
|
|
1216
|
+
return /* @__PURE__ */ _(C.Positioner, {
|
|
1216
1217
|
...t,
|
|
1217
1218
|
"data-imf-ui-component": "Popover.Positioner",
|
|
1218
|
-
className: (t) =>
|
|
1219
|
+
className: (t) => ur({ className: typeof e == "function" ? e(t) : e })
|
|
1219
1220
|
});
|
|
1220
1221
|
}
|
|
1221
|
-
|
|
1222
|
-
function
|
|
1223
|
-
return /* @__PURE__ */ _(
|
|
1222
|
+
Cr.displayName = "Popover.Positioner";
|
|
1223
|
+
function wr({ className: e, variant: t, ...n }) {
|
|
1224
|
+
return /* @__PURE__ */ _(C.Popup, {
|
|
1224
1225
|
...n,
|
|
1225
1226
|
"data-imf-ui-component": "Popover.Popup",
|
|
1226
|
-
className: (n) =>
|
|
1227
|
+
className: (n) => dr({
|
|
1227
1228
|
variant: t,
|
|
1228
1229
|
className: typeof e == "function" ? e(n) : e
|
|
1229
1230
|
})
|
|
1230
1231
|
});
|
|
1231
1232
|
}
|
|
1232
|
-
|
|
1233
|
-
function
|
|
1234
|
-
return /* @__PURE__ */ _(
|
|
1233
|
+
wr.displayName = "Popover.Popup";
|
|
1234
|
+
function Tr({ className: e, ...t }) {
|
|
1235
|
+
return /* @__PURE__ */ _(C.Arrow, {
|
|
1235
1236
|
...t,
|
|
1236
1237
|
"data-imf-ui-component": "Popover.Arrow",
|
|
1237
|
-
className: (t) =>
|
|
1238
|
+
className: (t) => fr({ className: typeof e == "function" ? e(t) : e })
|
|
1238
1239
|
});
|
|
1239
1240
|
}
|
|
1240
|
-
|
|
1241
|
-
function
|
|
1242
|
-
return /* @__PURE__ */ _(
|
|
1241
|
+
Tr.displayName = "Popover.Arrow";
|
|
1242
|
+
function Er({ className: e, ...t }) {
|
|
1243
|
+
return /* @__PURE__ */ _(C.Viewport, {
|
|
1243
1244
|
...t,
|
|
1244
1245
|
"data-imf-ui-component": "Popover.Viewport",
|
|
1245
|
-
className: (t) =>
|
|
1246
|
+
className: (t) => pr({ className: typeof e == "function" ? e(t) : e })
|
|
1246
1247
|
});
|
|
1247
1248
|
}
|
|
1248
|
-
|
|
1249
|
-
function
|
|
1249
|
+
Er.displayName = "Popover.Viewport";
|
|
1250
|
+
function Dr({ className: e, ...t }) {
|
|
1250
1251
|
return /* @__PURE__ */ _("p", {
|
|
1251
1252
|
...t,
|
|
1252
1253
|
"data-imf-ui-component": "Popover.Eyebrow",
|
|
1253
|
-
className:
|
|
1254
|
+
className: mr({ className: e })
|
|
1254
1255
|
});
|
|
1255
1256
|
}
|
|
1256
|
-
|
|
1257
|
-
function
|
|
1258
|
-
return /* @__PURE__ */ _(
|
|
1257
|
+
Dr.displayName = "Popover.Eyebrow";
|
|
1258
|
+
function Or({ className: e, ...t }) {
|
|
1259
|
+
return /* @__PURE__ */ _(C.Title, {
|
|
1259
1260
|
...t,
|
|
1260
1261
|
"data-imf-ui-component": "Popover.Title",
|
|
1261
|
-
className:
|
|
1262
|
+
className: hr({ className: e })
|
|
1262
1263
|
});
|
|
1263
1264
|
}
|
|
1264
|
-
|
|
1265
|
-
function
|
|
1266
|
-
return /* @__PURE__ */ _(
|
|
1265
|
+
Or.displayName = "Popover.Title";
|
|
1266
|
+
function kr({ className: e, ...t }) {
|
|
1267
|
+
return /* @__PURE__ */ _(C.Description, {
|
|
1267
1268
|
...t,
|
|
1268
1269
|
"data-imf-ui-component": "Popover.Description",
|
|
1269
|
-
className:
|
|
1270
|
+
className: gr({ className: e })
|
|
1270
1271
|
});
|
|
1271
1272
|
}
|
|
1272
|
-
|
|
1273
|
-
function
|
|
1274
|
-
return /* @__PURE__ */ _(
|
|
1273
|
+
kr.displayName = "Popover.Description";
|
|
1274
|
+
function Ar({ className: e, ...t }) {
|
|
1275
|
+
return /* @__PURE__ */ _(C.Close, {
|
|
1275
1276
|
...t,
|
|
1276
1277
|
"data-imf-ui-component": "Popover.Close",
|
|
1277
|
-
className: (t) =>
|
|
1278
|
+
className: (t) => _r({ className: typeof e == "function" ? e(t) : e })
|
|
1278
1279
|
});
|
|
1279
1280
|
}
|
|
1280
|
-
|
|
1281
|
-
function
|
|
1282
|
-
return /* @__PURE__ */ v(
|
|
1281
|
+
Ar.displayName = "Popover.Close";
|
|
1282
|
+
function jr({ trigger: e, title: t, children: n, delay: r = 150, side: i = "top", sideOffset: a = 6 }) {
|
|
1283
|
+
return /* @__PURE__ */ v(yr, { children: [/* @__PURE__ */ _(br, {
|
|
1283
1284
|
inline: !0,
|
|
1284
1285
|
openOnHover: !0,
|
|
1285
1286
|
delay: r,
|
|
1286
1287
|
children: e
|
|
1287
|
-
}), /* @__PURE__ */ _(
|
|
1288
|
+
}), /* @__PURE__ */ _(xr, { children: /* @__PURE__ */ _(Cr, {
|
|
1288
1289
|
side: i,
|
|
1289
1290
|
sideOffset: a,
|
|
1290
|
-
children: /* @__PURE__ */ v(
|
|
1291
|
+
children: /* @__PURE__ */ v(wr, { children: [t && /* @__PURE__ */ _(Or, { children: t }), n && /* @__PURE__ */ _(kr, { children: n })] })
|
|
1291
1292
|
}) })] });
|
|
1292
1293
|
}
|
|
1293
|
-
|
|
1294
|
+
jr.displayName = "Popover.Inline";
|
|
1294
1295
|
//#endregion
|
|
1295
1296
|
//#region src/components/popover/popover.meta.ts
|
|
1296
|
-
var
|
|
1297
|
+
var Mr = {
|
|
1297
1298
|
name: "Popover",
|
|
1298
1299
|
category: t.display,
|
|
1299
1300
|
status: "stable",
|
|
@@ -1305,28 +1306,28 @@ var Ar = {
|
|
|
1305
1306
|
docLink: "https://base-ui.com/react/components/popover",
|
|
1306
1307
|
llmDocLink: "https://base-ui.com/react/components/popover.md"
|
|
1307
1308
|
}
|
|
1308
|
-
},
|
|
1309
|
+
}, Nr = {
|
|
1309
1310
|
name: "Row",
|
|
1310
1311
|
category: t.layout,
|
|
1311
1312
|
status: "stable",
|
|
1312
1313
|
description: "Horizontal layout primitive — children are arranged left-to-right with configurable spacing, alignment, and optional wrapping. Also called hstack, horizontal stack, flex row.",
|
|
1313
1314
|
origin: "native"
|
|
1314
|
-
},
|
|
1315
|
+
}, L = {
|
|
1315
1316
|
root: "imf-ui-separator-module-root",
|
|
1316
1317
|
variantDashed: "imf-ui-separator-module-variantDashed",
|
|
1317
1318
|
variantDotted: "imf-ui-separator-module-variantDotted",
|
|
1318
1319
|
variantSolid: "imf-ui-separator-module-variantSolid"
|
|
1319
|
-
},
|
|
1320
|
-
solid:
|
|
1321
|
-
dashed:
|
|
1322
|
-
dotted:
|
|
1320
|
+
}, Pr = h(L.root, { variants: { variant: {
|
|
1321
|
+
solid: L.variantSolid,
|
|
1322
|
+
dashed: L.variantDashed,
|
|
1323
|
+
dotted: L.variantDotted
|
|
1323
1324
|
} } });
|
|
1324
|
-
function
|
|
1325
|
-
return /* @__PURE__ */ _(
|
|
1325
|
+
function Fr({ orientation: e = "horizontal", variant: t = "solid", className: n, ...r }) {
|
|
1326
|
+
return /* @__PURE__ */ _(Oe, {
|
|
1326
1327
|
...r,
|
|
1327
1328
|
orientation: e,
|
|
1328
1329
|
"data-imf-ui-component": "Separator",
|
|
1329
|
-
className:
|
|
1330
|
+
className: Pr({
|
|
1330
1331
|
variant: t,
|
|
1331
1332
|
className: n
|
|
1332
1333
|
})
|
|
@@ -1334,7 +1335,7 @@ function Nr({ orientation: e = "horizontal", variant: t = "solid", className: n,
|
|
|
1334
1335
|
}
|
|
1335
1336
|
//#endregion
|
|
1336
1337
|
//#region src/components/separator/separator.meta.ts
|
|
1337
|
-
var
|
|
1338
|
+
var Ir = {
|
|
1338
1339
|
name: "Separator",
|
|
1339
1340
|
category: t.layout,
|
|
1340
1341
|
status: "stable",
|
|
@@ -1346,13 +1347,13 @@ var Pr = {
|
|
|
1346
1347
|
docLink: "https://base-ui.com/react/components/separator",
|
|
1347
1348
|
llmDocLink: "https://base-ui.com/react/components/separator.md"
|
|
1348
1349
|
}
|
|
1349
|
-
},
|
|
1350
|
+
}, Lr = {
|
|
1350
1351
|
name: "Stack",
|
|
1351
1352
|
category: t.layout,
|
|
1352
1353
|
status: "stable",
|
|
1353
1354
|
description: "Vertical layout primitive — children stack top-to-bottom with configurable spacing and alignment. Use it instead of writing flex column layouts by hand. Also called a vstack or column.",
|
|
1354
1355
|
origin: "native"
|
|
1355
|
-
},
|
|
1356
|
+
}, R = {
|
|
1356
1357
|
description: "imf-ui-callout-module-description",
|
|
1357
1358
|
icon: "imf-ui-callout-module-icon",
|
|
1358
1359
|
maxWidthFull: "imf-ui-callout-module-maxWidthFull",
|
|
@@ -1368,28 +1369,28 @@ var Pr = {
|
|
|
1368
1369
|
variantNegative: "imf-ui-callout-module-variantNegative",
|
|
1369
1370
|
variantPositive: "imf-ui-callout-module-variantPositive",
|
|
1370
1371
|
variantWarning: "imf-ui-callout-module-variantWarning"
|
|
1371
|
-
},
|
|
1372
|
-
Description: () =>
|
|
1373
|
-
Icon: () =>
|
|
1374
|
-
Root: () =>
|
|
1375
|
-
Title: () =>
|
|
1376
|
-
}),
|
|
1372
|
+
}, Rr = /* @__PURE__ */ e({
|
|
1373
|
+
Description: () => Gr,
|
|
1374
|
+
Icon: () => Ur,
|
|
1375
|
+
Root: () => Hr,
|
|
1376
|
+
Title: () => Wr
|
|
1377
|
+
}), zr = h(R.root, { variants: {
|
|
1377
1378
|
variant: {
|
|
1378
|
-
info:
|
|
1379
|
-
positive:
|
|
1380
|
-
warning:
|
|
1381
|
-
negative:
|
|
1382
|
-
"accent-1":
|
|
1383
|
-
"accent-2":
|
|
1384
|
-
"accent-3":
|
|
1379
|
+
info: R.variantInfo,
|
|
1380
|
+
positive: R.variantPositive,
|
|
1381
|
+
warning: R.variantWarning,
|
|
1382
|
+
negative: R.variantNegative,
|
|
1383
|
+
"accent-1": R.variantAccent1,
|
|
1384
|
+
"accent-2": R.variantAccent2,
|
|
1385
|
+
"accent-3": R.variantAccent3
|
|
1385
1386
|
},
|
|
1386
1387
|
maxWidth: {
|
|
1387
|
-
sm:
|
|
1388
|
-
md:
|
|
1389
|
-
lg:
|
|
1390
|
-
full:
|
|
1388
|
+
sm: R.maxWidthSm,
|
|
1389
|
+
md: R.maxWidthMd,
|
|
1390
|
+
lg: R.maxWidthLg,
|
|
1391
|
+
full: R.maxWidthFull
|
|
1391
1392
|
}
|
|
1392
|
-
} }),
|
|
1393
|
+
} }), Br = {
|
|
1393
1394
|
info: s,
|
|
1394
1395
|
positive: o,
|
|
1395
1396
|
warning: d,
|
|
@@ -1397,16 +1398,16 @@ var Pr = {
|
|
|
1397
1398
|
"accent-1": f,
|
|
1398
1399
|
"accent-2": f,
|
|
1399
1400
|
"accent-3": f
|
|
1400
|
-
},
|
|
1401
|
-
function
|
|
1401
|
+
}, Vr = xe("info");
|
|
1402
|
+
function Hr({ variant: e = "info", maxWidth: t = "md", className: n, children: r, ...i }) {
|
|
1402
1403
|
let a = e ?? "info";
|
|
1403
|
-
return /* @__PURE__ */ _(
|
|
1404
|
+
return /* @__PURE__ */ _(Vr.Provider, {
|
|
1404
1405
|
value: a,
|
|
1405
1406
|
children: /* @__PURE__ */ _("div", {
|
|
1406
1407
|
...i,
|
|
1407
1408
|
role: "note",
|
|
1408
1409
|
"data-imf-ui-component": "Callout.Root",
|
|
1409
|
-
className:
|
|
1410
|
+
className: zr({
|
|
1410
1411
|
variant: e,
|
|
1411
1412
|
maxWidth: t,
|
|
1412
1413
|
className: n
|
|
@@ -1415,14 +1416,14 @@ function Br({ variant: e = "info", maxWidth: t = "md", className: n, children: r
|
|
|
1415
1416
|
})
|
|
1416
1417
|
});
|
|
1417
1418
|
}
|
|
1418
|
-
|
|
1419
|
-
function
|
|
1420
|
-
let r =
|
|
1419
|
+
Hr.displayName = "Callout.Root";
|
|
1420
|
+
function Ur({ className: e, children: t, ...n }) {
|
|
1421
|
+
let r = Br[Se(Vr)];
|
|
1421
1422
|
return /* @__PURE__ */ _("span", {
|
|
1422
1423
|
...n,
|
|
1423
1424
|
"aria-hidden": !0,
|
|
1424
1425
|
"data-imf-ui-component": "Callout.Icon",
|
|
1425
|
-
className: h(
|
|
1426
|
+
className: h(R.icon)({ className: e }),
|
|
1426
1427
|
children: t ?? /* @__PURE__ */ _(m, {
|
|
1427
1428
|
glyph: r,
|
|
1428
1429
|
size: 24,
|
|
@@ -1430,26 +1431,26 @@ function Vr({ className: e, children: t, ...n }) {
|
|
|
1430
1431
|
})
|
|
1431
1432
|
});
|
|
1432
1433
|
}
|
|
1433
|
-
|
|
1434
|
-
function
|
|
1434
|
+
Ur.displayName = "Callout.Icon";
|
|
1435
|
+
function Wr({ className: e, ...t }) {
|
|
1435
1436
|
return /* @__PURE__ */ _("div", {
|
|
1436
1437
|
...t,
|
|
1437
1438
|
"data-imf-ui-component": "Callout.Title",
|
|
1438
|
-
className: h(
|
|
1439
|
+
className: h(R.title)({ className: e })
|
|
1439
1440
|
});
|
|
1440
1441
|
}
|
|
1441
|
-
|
|
1442
|
-
function
|
|
1442
|
+
Wr.displayName = "Callout.Title";
|
|
1443
|
+
function Gr({ className: e, ...t }) {
|
|
1443
1444
|
return /* @__PURE__ */ _("div", {
|
|
1444
1445
|
...t,
|
|
1445
1446
|
"data-imf-ui-component": "Callout.Description",
|
|
1446
|
-
className: h(
|
|
1447
|
+
className: h(R.description)({ className: e })
|
|
1447
1448
|
});
|
|
1448
1449
|
}
|
|
1449
|
-
|
|
1450
|
+
Gr.displayName = "Callout.Description";
|
|
1450
1451
|
//#endregion
|
|
1451
1452
|
//#region src/components/callout/callout.meta.ts
|
|
1452
|
-
var
|
|
1453
|
+
var Kr = {
|
|
1453
1454
|
name: "Callout",
|
|
1454
1455
|
category: t.display,
|
|
1455
1456
|
status: "stable",
|
|
@@ -1459,11 +1460,11 @@ var Wr = {
|
|
|
1459
1460
|
};
|
|
1460
1461
|
//#endregion
|
|
1461
1462
|
//#region src/components/chip/chip.tsx
|
|
1462
|
-
function
|
|
1463
|
+
function qr({ variant: e = "minor", appearance: t = "outline", inline: n = !1, className: r, ...i }) {
|
|
1463
1464
|
return /* @__PURE__ */ _("span", {
|
|
1464
1465
|
...i,
|
|
1465
1466
|
"data-imf-ui-component": "Chip",
|
|
1466
|
-
className:
|
|
1467
|
+
className: Ne({
|
|
1467
1468
|
variant: e,
|
|
1468
1469
|
appearance: t,
|
|
1469
1470
|
inline: n,
|
|
@@ -1474,48 +1475,48 @@ function Gr({ variant: e = "minor", appearance: t = "outline", inline: n = !1, c
|
|
|
1474
1475
|
}
|
|
1475
1476
|
//#endregion
|
|
1476
1477
|
//#region src/components/chip/chip.meta.ts
|
|
1477
|
-
var
|
|
1478
|
+
var Jr = {
|
|
1478
1479
|
name: "Chip",
|
|
1479
1480
|
category: t.display,
|
|
1480
1481
|
status: "stable",
|
|
1481
1482
|
description: "Compact inline label for tags, status, categories, counts, or metadata. Also known as a badge, tag, or pill. Two dimensions — a color variant for semantic role and a shape variant for visual appearance, including an inline form that sits naturally in flowing body text.",
|
|
1482
1483
|
origin: "native"
|
|
1483
|
-
},
|
|
1484
|
+
}, z = {
|
|
1484
1485
|
iconClosed: "imf-ui-collapsible-module-iconClosed",
|
|
1485
1486
|
iconOpen: "imf-ui-collapsible-module-iconOpen",
|
|
1486
1487
|
panel: "imf-ui-collapsible-module-panel",
|
|
1487
1488
|
root: "imf-ui-collapsible-module-root",
|
|
1488
1489
|
trigger: "imf-ui-collapsible-module-trigger",
|
|
1489
1490
|
variantSolid: "imf-ui-collapsible-module-variantSolid"
|
|
1490
|
-
},
|
|
1491
|
-
Panel: () =>
|
|
1492
|
-
Root: () =>
|
|
1493
|
-
Trigger: () =>
|
|
1494
|
-
}),
|
|
1491
|
+
}, Yr = /* @__PURE__ */ e({
|
|
1492
|
+
Panel: () => ti,
|
|
1493
|
+
Root: () => Zr,
|
|
1494
|
+
Trigger: () => $r
|
|
1495
|
+
}), Xr = h(z.root, { variants: { variant: {
|
|
1495
1496
|
default: null,
|
|
1496
|
-
solid:
|
|
1497
|
+
solid: z.variantSolid
|
|
1497
1498
|
} } });
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */ _(
|
|
1499
|
+
function Zr({ variant: e = "default", className: t, ...n }) {
|
|
1500
|
+
return /* @__PURE__ */ _(ke.Root, {
|
|
1500
1501
|
...n,
|
|
1501
1502
|
"data-imf-ui-component": "Collapsible.Root",
|
|
1502
|
-
className: (n) =>
|
|
1503
|
+
className: (n) => Xr({
|
|
1503
1504
|
variant: e,
|
|
1504
1505
|
className: typeof t == "function" ? t(n) : t
|
|
1505
1506
|
})
|
|
1506
1507
|
});
|
|
1507
1508
|
}
|
|
1508
|
-
|
|
1509
|
-
var
|
|
1510
|
-
function
|
|
1511
|
-
return /* @__PURE__ */ v(
|
|
1509
|
+
Zr.displayName = "Collapsible.Root";
|
|
1510
|
+
var Qr = h(z.trigger);
|
|
1511
|
+
function $r({ className: e, children: t, ...n }) {
|
|
1512
|
+
return /* @__PURE__ */ v(ke.Trigger, {
|
|
1512
1513
|
...n,
|
|
1513
1514
|
"data-imf-ui-component": "Collapsible.Trigger",
|
|
1514
|
-
className: (t) =>
|
|
1515
|
+
className: (t) => Qr({ className: typeof e == "function" ? e(t) : e }),
|
|
1515
1516
|
children: [
|
|
1516
1517
|
t,
|
|
1517
1518
|
/* @__PURE__ */ _("span", {
|
|
1518
|
-
className:
|
|
1519
|
+
className: z.iconClosed,
|
|
1519
1520
|
"aria-hidden": !0,
|
|
1520
1521
|
children: /* @__PURE__ */ _(m, {
|
|
1521
1522
|
glyph: i,
|
|
@@ -1524,7 +1525,7 @@ function Zr({ className: e, children: t, ...n }) {
|
|
|
1524
1525
|
})
|
|
1525
1526
|
}),
|
|
1526
1527
|
/* @__PURE__ */ _("span", {
|
|
1527
|
-
className:
|
|
1528
|
+
className: z.iconOpen,
|
|
1528
1529
|
"aria-hidden": !0,
|
|
1529
1530
|
children: /* @__PURE__ */ _(m, {
|
|
1530
1531
|
glyph: l,
|
|
@@ -1535,19 +1536,19 @@ function Zr({ className: e, children: t, ...n }) {
|
|
|
1535
1536
|
]
|
|
1536
1537
|
});
|
|
1537
1538
|
}
|
|
1538
|
-
|
|
1539
|
-
var
|
|
1540
|
-
function
|
|
1541
|
-
return /* @__PURE__ */ _(
|
|
1539
|
+
$r.displayName = "Collapsible.Trigger";
|
|
1540
|
+
var ei = h(z.panel);
|
|
1541
|
+
function ti({ className: e, ...t }) {
|
|
1542
|
+
return /* @__PURE__ */ _(ke.Panel, {
|
|
1542
1543
|
...t,
|
|
1543
1544
|
"data-imf-ui-component": "Collapsible.Panel",
|
|
1544
|
-
className: (t) =>
|
|
1545
|
+
className: (t) => ei({ className: typeof e == "function" ? e(t) : e })
|
|
1545
1546
|
});
|
|
1546
1547
|
}
|
|
1547
|
-
|
|
1548
|
+
ti.displayName = "Collapsible.Panel";
|
|
1548
1549
|
//#endregion
|
|
1549
1550
|
//#region src/components/collapsible/collapsible.meta.ts
|
|
1550
|
-
var
|
|
1551
|
+
var ni = {
|
|
1551
1552
|
name: "Collapsible",
|
|
1552
1553
|
category: t.display,
|
|
1553
1554
|
status: "stable",
|
|
@@ -1559,7 +1560,7 @@ var ei = {
|
|
|
1559
1560
|
docLink: "https://base-ui.com/react/components/collapsible",
|
|
1560
1561
|
llmDocLink: "https://base-ui.com/react/components/collapsible.md"
|
|
1561
1562
|
}
|
|
1562
|
-
},
|
|
1563
|
+
}, B = {
|
|
1563
1564
|
root: "imf-ui-logo-module-root",
|
|
1564
1565
|
sizeFit: "imf-ui-logo-module-sizeFit",
|
|
1565
1566
|
sizeHero: "imf-ui-logo-module-sizeHero",
|
|
@@ -1574,30 +1575,30 @@ var ei = {
|
|
|
1574
1575
|
variantMinor: "imf-ui-logo-module-variantMinor",
|
|
1575
1576
|
variantOncolor: "imf-ui-logo-module-variantOncolor",
|
|
1576
1577
|
variantSupport: "imf-ui-logo-module-variantSupport"
|
|
1577
|
-
},
|
|
1578
|
+
}, ri = h(B.root, { variants: {
|
|
1578
1579
|
size: {
|
|
1579
|
-
xs:
|
|
1580
|
-
sm:
|
|
1581
|
-
md:
|
|
1582
|
-
lg:
|
|
1583
|
-
xl:
|
|
1584
|
-
hero:
|
|
1585
|
-
fit:
|
|
1580
|
+
xs: B.sizeXs,
|
|
1581
|
+
sm: B.sizeSm,
|
|
1582
|
+
md: B.sizeMd,
|
|
1583
|
+
lg: B.sizeLg,
|
|
1584
|
+
xl: B.sizeXl,
|
|
1585
|
+
hero: B.sizeHero,
|
|
1586
|
+
fit: B.sizeFit
|
|
1586
1587
|
},
|
|
1587
1588
|
variant: {
|
|
1588
|
-
inherit:
|
|
1589
|
-
main:
|
|
1590
|
-
support:
|
|
1591
|
-
minor:
|
|
1592
|
-
brand:
|
|
1593
|
-
oncolor:
|
|
1589
|
+
inherit: B.variantInherit,
|
|
1590
|
+
main: B.variantMain,
|
|
1591
|
+
support: B.variantSupport,
|
|
1592
|
+
minor: B.variantMinor,
|
|
1593
|
+
brand: B.variantBrand,
|
|
1594
|
+
oncolor: B.variantOncolor
|
|
1594
1595
|
}
|
|
1595
1596
|
} });
|
|
1596
|
-
function
|
|
1597
|
+
function ii({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, className: a, style: o, ...s }) {
|
|
1597
1598
|
return /* @__PURE__ */ _("span", {
|
|
1598
1599
|
...s,
|
|
1599
1600
|
"data-imf-ui-component": "Logo",
|
|
1600
|
-
className:
|
|
1601
|
+
className: ri({
|
|
1601
1602
|
size: n,
|
|
1602
1603
|
variant: r,
|
|
1603
1604
|
className: a
|
|
@@ -1617,7 +1618,7 @@ function ni({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, c
|
|
|
1617
1618
|
}
|
|
1618
1619
|
//#endregion
|
|
1619
1620
|
//#region src/components/logo/logo.meta.ts
|
|
1620
|
-
var
|
|
1621
|
+
var ai = {
|
|
1621
1622
|
name: "Logo",
|
|
1622
1623
|
category: t.display,
|
|
1623
1624
|
status: "stable",
|
|
@@ -1626,7 +1627,7 @@ var ri = {
|
|
|
1626
1627
|
};
|
|
1627
1628
|
//#endregion
|
|
1628
1629
|
//#region src/components/logo/imfusion/imfusion.tsx
|
|
1629
|
-
function
|
|
1630
|
+
function oi(e) {
|
|
1630
1631
|
return /* @__PURE__ */ v("svg", {
|
|
1631
1632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1632
1633
|
viewBox: "50 50 652.51 90",
|
|
@@ -1651,7 +1652,7 @@ function ii(e) {
|
|
|
1651
1652
|
]
|
|
1652
1653
|
});
|
|
1653
1654
|
}
|
|
1654
|
-
function
|
|
1655
|
+
function si(e) {
|
|
1655
1656
|
return /* @__PURE__ */ v("svg", {
|
|
1656
1657
|
viewBox: "0 0 384 216",
|
|
1657
1658
|
fill: "currentColor",
|
|
@@ -1660,149 +1661,149 @@ function ai(e) {
|
|
|
1660
1661
|
children: [/* @__PURE__ */ _("path", { d: "M384 216H0V191.572L284.499 153.679L384 79.1303V216Z" }), /* @__PURE__ */ _("path", { d: "M384 24.4271L99.501 62.3215L0 136.869V0H384V24.4271Z" })]
|
|
1661
1662
|
});
|
|
1662
1663
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return /* @__PURE__ */ _(
|
|
1664
|
+
function ci({ glyph: e = !1, alt: t = "ImFusion", variant: n = "brand", ...r }) {
|
|
1665
|
+
return /* @__PURE__ */ _(ii, {
|
|
1665
1666
|
...r,
|
|
1666
|
-
src: _(e ?
|
|
1667
|
+
src: _(e ? si : oi, {}),
|
|
1667
1668
|
alt: t,
|
|
1668
1669
|
variant: n
|
|
1669
1670
|
});
|
|
1670
1671
|
}
|
|
1671
|
-
var
|
|
1672
|
+
var li = {
|
|
1672
1673
|
item: "imf-ui-navigation-menu-root-module-item",
|
|
1673
1674
|
list: "imf-ui-navigation-menu-root-module-list",
|
|
1674
1675
|
root: "imf-ui-navigation-menu-root-module-root"
|
|
1675
|
-
},
|
|
1676
|
+
}, ui = {
|
|
1676
1677
|
content: "imf-ui-navigation-menu-structure-module-content",
|
|
1677
1678
|
viewport: "imf-ui-navigation-menu-structure-module-viewport"
|
|
1678
|
-
},
|
|
1679
|
-
function
|
|
1680
|
-
return /* @__PURE__ */ _(
|
|
1679
|
+
}, di = h(li.root), fi = h(li.list), pi = h(li.item), mi = h(ui.content), hi = h(ui.viewport);
|
|
1680
|
+
function gi({ orientation: e = "horizontal", className: t, ...n }) {
|
|
1681
|
+
return /* @__PURE__ */ _(w.Root, {
|
|
1681
1682
|
...n,
|
|
1682
1683
|
orientation: e,
|
|
1683
1684
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1684
1685
|
"data-orientation": e,
|
|
1685
|
-
className: (e) =>
|
|
1686
|
+
className: (e) => di({ className: typeof t == "function" ? t(e) : t })
|
|
1686
1687
|
});
|
|
1687
1688
|
}
|
|
1688
|
-
|
|
1689
|
-
function
|
|
1690
|
-
return /* @__PURE__ */ _(
|
|
1689
|
+
gi.displayName = "NavigationMenu.Root";
|
|
1690
|
+
function _i({ className: e, ...t }) {
|
|
1691
|
+
return /* @__PURE__ */ _(w.List, {
|
|
1691
1692
|
...t,
|
|
1692
1693
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1693
|
-
className: (t) =>
|
|
1694
|
+
className: (t) => fi({ className: typeof e == "function" ? e(t) : e })
|
|
1694
1695
|
});
|
|
1695
1696
|
}
|
|
1696
|
-
|
|
1697
|
-
function
|
|
1698
|
-
return /* @__PURE__ */ _(
|
|
1697
|
+
_i.displayName = "NavigationMenu.List";
|
|
1698
|
+
function vi({ className: e, ...t }) {
|
|
1699
|
+
return /* @__PURE__ */ _(w.Item, {
|
|
1699
1700
|
...t,
|
|
1700
1701
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
1701
|
-
className: (t) =>
|
|
1702
|
+
className: (t) => pi({ className: typeof e == "function" ? e(t) : e })
|
|
1702
1703
|
});
|
|
1703
1704
|
}
|
|
1704
|
-
|
|
1705
|
-
function
|
|
1706
|
-
return /* @__PURE__ */ _(
|
|
1705
|
+
vi.displayName = "NavigationMenu.Item";
|
|
1706
|
+
function yi({ className: e, ...t }) {
|
|
1707
|
+
return /* @__PURE__ */ _(w.Content, {
|
|
1707
1708
|
...t,
|
|
1708
1709
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
1709
|
-
className: (t) =>
|
|
1710
|
+
className: (t) => mi({ className: typeof e == "function" ? e(t) : e })
|
|
1710
1711
|
});
|
|
1711
1712
|
}
|
|
1712
|
-
|
|
1713
|
-
function
|
|
1714
|
-
return /* @__PURE__ */ _(
|
|
1713
|
+
yi.displayName = "NavigationMenu.Content";
|
|
1714
|
+
function bi({ className: e, ...t }) {
|
|
1715
|
+
return /* @__PURE__ */ _(w.Viewport, {
|
|
1715
1716
|
...t,
|
|
1716
1717
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
1717
|
-
className: (t) =>
|
|
1718
|
+
className: (t) => hi({ className: typeof e == "function" ? e(t) : e })
|
|
1718
1719
|
});
|
|
1719
1720
|
}
|
|
1720
|
-
|
|
1721
|
-
var
|
|
1721
|
+
bi.displayName = "NavigationMenu.Viewport";
|
|
1722
|
+
var xi = {
|
|
1722
1723
|
icon: "imf-ui-navigation-menu-trigger-module-icon",
|
|
1723
1724
|
trigger: "imf-ui-navigation-menu-trigger-module-trigger"
|
|
1724
|
-
},
|
|
1725
|
-
function
|
|
1726
|
-
return /* @__PURE__ */ v(
|
|
1725
|
+
}, Si = h(xi.trigger), Ci = h(xi.icon);
|
|
1726
|
+
function wi({ active: e = !1, hideChevron: t = !1, nested: n = !1, children: r, className: a, ...o }) {
|
|
1727
|
+
return /* @__PURE__ */ v(w.Trigger, {
|
|
1727
1728
|
...o,
|
|
1728
1729
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
1729
1730
|
"data-active": e ? "" : void 0,
|
|
1730
1731
|
"data-nested": n ? "" : void 0,
|
|
1731
|
-
className: (e) =>
|
|
1732
|
-
children: [r, !t && /* @__PURE__ */ _(
|
|
1732
|
+
className: (e) => Si({ className: typeof a == "function" ? a(e) : a }),
|
|
1733
|
+
children: [r, !t && /* @__PURE__ */ _(Ti, { children: /* @__PURE__ */ _(m, {
|
|
1733
1734
|
glyph: i,
|
|
1734
1735
|
size: 14
|
|
1735
1736
|
}) })]
|
|
1736
1737
|
});
|
|
1737
1738
|
}
|
|
1738
|
-
|
|
1739
|
-
function
|
|
1740
|
-
return /* @__PURE__ */ _(
|
|
1739
|
+
wi.displayName = "NavigationMenu.Trigger";
|
|
1740
|
+
function Ti({ className: e, ...t }) {
|
|
1741
|
+
return /* @__PURE__ */ _(w.Icon, {
|
|
1741
1742
|
...t,
|
|
1742
1743
|
"data-imf-ui-component": "NavigationMenu.Icon",
|
|
1743
|
-
className: (t) =>
|
|
1744
|
+
className: (t) => Ci({ className: typeof e == "function" ? e(t) : e })
|
|
1744
1745
|
});
|
|
1745
1746
|
}
|
|
1746
|
-
|
|
1747
|
-
var
|
|
1747
|
+
Ti.displayName = "NavigationMenu.Icon";
|
|
1748
|
+
var V = {
|
|
1748
1749
|
arrow: "imf-ui-navigation-menu-overlay-module-arrow",
|
|
1749
1750
|
backdrop: "imf-ui-navigation-menu-overlay-module-backdrop",
|
|
1750
1751
|
popup: "imf-ui-navigation-menu-overlay-module-popup",
|
|
1751
1752
|
positioner: "imf-ui-navigation-menu-overlay-module-positioner"
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1754
|
-
return /* @__PURE__ */ _(
|
|
1753
|
+
}, Ei = h(V.positioner), Di = h(V.popup), Oi = h(V.arrow), ki = h(V.backdrop);
|
|
1754
|
+
function Ai(e) {
|
|
1755
|
+
return /* @__PURE__ */ _(w.Portal, { ...e });
|
|
1755
1756
|
}
|
|
1756
|
-
|
|
1757
|
-
function
|
|
1758
|
-
return /* @__PURE__ */ _(
|
|
1757
|
+
Ai.displayName = "NavigationMenu.Portal";
|
|
1758
|
+
function ji({ align: e = "start", className: t, ...n }) {
|
|
1759
|
+
return /* @__PURE__ */ _(w.Positioner, {
|
|
1759
1760
|
...n,
|
|
1760
1761
|
align: e,
|
|
1761
1762
|
"data-imf-ui-component": "NavigationMenu.Positioner",
|
|
1762
|
-
className: (e) =>
|
|
1763
|
+
className: (e) => Ei({ className: typeof t == "function" ? t(e) : t })
|
|
1763
1764
|
});
|
|
1764
1765
|
}
|
|
1765
|
-
|
|
1766
|
-
function
|
|
1767
|
-
return /* @__PURE__ */ _(
|
|
1766
|
+
ji.displayName = "NavigationMenu.Positioner";
|
|
1767
|
+
function Mi({ className: e, ...t }) {
|
|
1768
|
+
return /* @__PURE__ */ _(w.Popup, {
|
|
1768
1769
|
...t,
|
|
1769
1770
|
"data-imf-ui-component": "NavigationMenu.Popup",
|
|
1770
|
-
className: (t) =>
|
|
1771
|
+
className: (t) => Di({ className: typeof e == "function" ? e(t) : e })
|
|
1771
1772
|
});
|
|
1772
1773
|
}
|
|
1773
|
-
|
|
1774
|
-
function
|
|
1775
|
-
return /* @__PURE__ */ _(
|
|
1774
|
+
Mi.displayName = "NavigationMenu.Popup";
|
|
1775
|
+
function Ni({ className: e, ...t }) {
|
|
1776
|
+
return /* @__PURE__ */ _(w.Arrow, {
|
|
1776
1777
|
...t,
|
|
1777
1778
|
"data-imf-ui-component": "NavigationMenu.Arrow",
|
|
1778
|
-
className: (t) =>
|
|
1779
|
+
className: (t) => Oi({ className: typeof e == "function" ? e(t) : e })
|
|
1779
1780
|
});
|
|
1780
1781
|
}
|
|
1781
|
-
|
|
1782
|
-
function
|
|
1783
|
-
return /* @__PURE__ */ _(
|
|
1782
|
+
Ni.displayName = "NavigationMenu.Arrow";
|
|
1783
|
+
function Pi({ className: e, ...t }) {
|
|
1784
|
+
return /* @__PURE__ */ _(w.Backdrop, {
|
|
1784
1785
|
...t,
|
|
1785
1786
|
"data-imf-ui-component": "NavigationMenu.Backdrop",
|
|
1786
|
-
className: (t) =>
|
|
1787
|
+
className: (t) => ki({ className: typeof e == "function" ? e(t) : e })
|
|
1787
1788
|
});
|
|
1788
1789
|
}
|
|
1789
|
-
|
|
1790
|
-
var
|
|
1790
|
+
Pi.displayName = "NavigationMenu.Backdrop";
|
|
1791
|
+
var H = {
|
|
1791
1792
|
link: "imf-ui-navigation-menu-link-module-link",
|
|
1792
1793
|
linkArrow: "imf-ui-navigation-menu-link-module-linkArrow",
|
|
1793
1794
|
linkCard: "imf-ui-navigation-menu-link-module-linkCard",
|
|
1794
1795
|
linkCardDescription: "imf-ui-navigation-menu-link-module-linkCardDescription",
|
|
1795
1796
|
linkCardTitle: "imf-ui-navigation-menu-link-module-linkCardTitle",
|
|
1796
1797
|
linkList: "imf-ui-navigation-menu-link-module-linkList"
|
|
1797
|
-
},
|
|
1798
|
-
function
|
|
1799
|
-
return /* @__PURE__ */ _(
|
|
1798
|
+
}, Fi = h(H.link), Ii = h(H.linkList), Li = h(H.linkCard);
|
|
1799
|
+
function Ri({ className: e, children: t, render: n, ...r }) {
|
|
1800
|
+
return /* @__PURE__ */ _(w.Link, {
|
|
1800
1801
|
...r,
|
|
1801
1802
|
render: n,
|
|
1802
1803
|
"data-imf-ui-component": "NavigationMenu.Link",
|
|
1803
|
-
className: (t) =>
|
|
1804
|
+
className: (t) => Fi({ className: typeof e == "function" ? e(t) : e }),
|
|
1804
1805
|
children: n ? t : /* @__PURE__ */ v(ye, { children: [t, /* @__PURE__ */ _("span", {
|
|
1805
|
-
className:
|
|
1806
|
+
className: H.linkArrow,
|
|
1806
1807
|
"aria-hidden": !0,
|
|
1807
1808
|
children: /* @__PURE__ */ _(m, {
|
|
1808
1809
|
glyph: c,
|
|
@@ -1811,54 +1812,54 @@ function Ii({ className: e, children: t, render: n, ...r }) {
|
|
|
1811
1812
|
})] })
|
|
1812
1813
|
});
|
|
1813
1814
|
}
|
|
1814
|
-
|
|
1815
|
-
function
|
|
1815
|
+
Ri.displayName = "NavigationMenu.Link";
|
|
1816
|
+
function zi({ className: e, ...t }) {
|
|
1816
1817
|
return /* @__PURE__ */ _("ul", {
|
|
1817
1818
|
...t,
|
|
1818
1819
|
"data-imf-ui-component": "NavigationMenu.LinkList",
|
|
1819
|
-
className:
|
|
1820
|
+
className: Ii({ className: e })
|
|
1820
1821
|
});
|
|
1821
1822
|
}
|
|
1822
|
-
|
|
1823
|
-
function
|
|
1824
|
-
return /* @__PURE__ */ _(
|
|
1823
|
+
zi.displayName = "NavigationMenu.LinkList";
|
|
1824
|
+
function Bi({ title: e, description: t, image: n, imageAlt: r = "", className: i, ...a }) {
|
|
1825
|
+
return /* @__PURE__ */ _(w.Link, {
|
|
1825
1826
|
...a,
|
|
1826
1827
|
"data-imf-ui-component": "NavigationMenu.LinkCard",
|
|
1827
|
-
className: (e) =>
|
|
1828
|
-
children: /* @__PURE__ */ v(
|
|
1828
|
+
className: (e) => Li({ className: typeof i == "function" ? i(e) : i }),
|
|
1829
|
+
children: /* @__PURE__ */ v(En, {
|
|
1829
1830
|
variant: "main",
|
|
1830
1831
|
density: "compact",
|
|
1831
1832
|
withBorder: !1,
|
|
1832
1833
|
children: [
|
|
1833
|
-
n && /* @__PURE__ */ _(
|
|
1834
|
+
n && /* @__PURE__ */ _(Dn, {
|
|
1834
1835
|
src: n,
|
|
1835
1836
|
alt: r
|
|
1836
1837
|
}),
|
|
1837
|
-
/* @__PURE__ */ _(
|
|
1838
|
-
className:
|
|
1838
|
+
/* @__PURE__ */ _(On, { children: /* @__PURE__ */ _("span", {
|
|
1839
|
+
className: H.linkCardTitle,
|
|
1839
1840
|
children: e
|
|
1840
1841
|
}) }),
|
|
1841
|
-
t && /* @__PURE__ */ _(
|
|
1842
|
-
className:
|
|
1842
|
+
t && /* @__PURE__ */ _(kn, { children: /* @__PURE__ */ _("span", {
|
|
1843
|
+
className: H.linkCardDescription,
|
|
1843
1844
|
children: t
|
|
1844
1845
|
}) })
|
|
1845
1846
|
]
|
|
1846
1847
|
})
|
|
1847
1848
|
});
|
|
1848
1849
|
}
|
|
1849
|
-
|
|
1850
|
-
var
|
|
1850
|
+
Bi.displayName = "NavigationMenu.LinkCard";
|
|
1851
|
+
var Vi = {
|
|
1851
1852
|
flyoutLink: "imf-ui-navigation-menu-flyout-link-module-flyoutLink",
|
|
1852
1853
|
linkArrow: "imf-ui-navigation-menu-flyout-link-module-linkArrow"
|
|
1853
|
-
},
|
|
1854
|
-
function
|
|
1855
|
-
return /* @__PURE__ */ _(
|
|
1854
|
+
}, Hi = h(Vi.flyoutLink);
|
|
1855
|
+
function Ui({ className: e, children: t, render: n, ...r }) {
|
|
1856
|
+
return /* @__PURE__ */ _(w.Link, {
|
|
1856
1857
|
...r,
|
|
1857
1858
|
render: n,
|
|
1858
1859
|
"data-imf-ui-component": "NavigationMenu.FlyoutLink",
|
|
1859
|
-
className: (t) =>
|
|
1860
|
+
className: (t) => Hi({ className: typeof e == "function" ? e(t) : e }),
|
|
1860
1861
|
children: n ? t : /* @__PURE__ */ v(ye, { children: [t, /* @__PURE__ */ _("span", {
|
|
1861
|
-
className:
|
|
1862
|
+
className: Vi.linkArrow,
|
|
1862
1863
|
"aria-hidden": !0,
|
|
1863
1864
|
children: /* @__PURE__ */ _(m, {
|
|
1864
1865
|
glyph: c,
|
|
@@ -1867,10 +1868,10 @@ function Vi({ className: e, children: t, render: n, ...r }) {
|
|
|
1867
1868
|
})] })
|
|
1868
1869
|
});
|
|
1869
1870
|
}
|
|
1870
|
-
|
|
1871
|
+
Ui.displayName = "NavigationMenu.FlyoutLink";
|
|
1871
1872
|
//#endregion
|
|
1872
1873
|
//#region src/breakpoints/registry.ts
|
|
1873
|
-
var
|
|
1874
|
+
var Wi = {
|
|
1874
1875
|
mobile: 375,
|
|
1875
1876
|
sm: 640,
|
|
1876
1877
|
md: 768,
|
|
@@ -1879,16 +1880,16 @@ var Hi = {
|
|
|
1879
1880
|
};
|
|
1880
1881
|
//#endregion
|
|
1881
1882
|
//#region src/breakpoints/min-width.ts
|
|
1882
|
-
function
|
|
1883
|
-
return `(min-width: ${String(
|
|
1883
|
+
function Gi(e) {
|
|
1884
|
+
return `(min-width: ${String(Wi[e])}px)`;
|
|
1884
1885
|
}
|
|
1885
1886
|
//#endregion
|
|
1886
1887
|
//#region src/config.ts
|
|
1887
|
-
var
|
|
1888
|
-
cssVarPrefix:
|
|
1888
|
+
var Ki = "imf-ui", U = {
|
|
1889
|
+
cssVarPrefix: Ki,
|
|
1889
1890
|
colorScheme: {
|
|
1890
|
-
storageKey: `${
|
|
1891
|
-
attr: `data-${
|
|
1891
|
+
storageKey: `${Ki}-color-scheme`,
|
|
1892
|
+
attr: `data-${Ki}-color-scheme`,
|
|
1892
1893
|
options: [
|
|
1893
1894
|
"light",
|
|
1894
1895
|
"system",
|
|
@@ -1898,46 +1899,46 @@ var Wi = "imf-ui", W = {
|
|
|
1898
1899
|
};
|
|
1899
1900
|
//#endregion
|
|
1900
1901
|
//#region src/hooks/use-color-scheme.ts
|
|
1901
|
-
function
|
|
1902
|
+
function qi() {
|
|
1902
1903
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1903
1904
|
}
|
|
1904
|
-
function
|
|
1905
|
+
function Ji(e) {
|
|
1905
1906
|
return e === "light" || e === "dark" || e === "system" ? e : "system";
|
|
1906
1907
|
}
|
|
1907
|
-
function
|
|
1908
|
-
return
|
|
1908
|
+
function Yi() {
|
|
1909
|
+
return Ji(localStorage.getItem(U.colorScheme.storageKey));
|
|
1909
1910
|
}
|
|
1910
|
-
function
|
|
1911
|
-
let t = e !== void 0, [n, r] =
|
|
1912
|
-
|
|
1911
|
+
function Xi({ value: e } = {}) {
|
|
1912
|
+
let t = e !== void 0, [n, r] = y(() => e ?? Yi()), i = e ?? n, [a, o] = y(() => i === "system" ? qi() : i);
|
|
1913
|
+
Ce(function() {
|
|
1913
1914
|
if (i !== "system") {
|
|
1914
|
-
document.documentElement.setAttribute(
|
|
1915
|
+
document.documentElement.setAttribute(U.colorScheme.attr, i), o(i);
|
|
1915
1916
|
return;
|
|
1916
1917
|
}
|
|
1917
|
-
document.documentElement.removeAttribute(
|
|
1918
|
+
document.documentElement.removeAttribute(U.colorScheme.attr), o(qi());
|
|
1918
1919
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => o(e.matches ? "dark" : "light");
|
|
1919
1920
|
return e.addEventListener("change", t), function() {
|
|
1920
1921
|
e.removeEventListener("change", t);
|
|
1921
1922
|
};
|
|
1922
1923
|
}, [i]);
|
|
1923
1924
|
function s(e) {
|
|
1924
|
-
t || (e === "system" ? localStorage.removeItem(
|
|
1925
|
+
t || (e === "system" ? localStorage.removeItem(U.colorScheme.storageKey) : localStorage.setItem(U.colorScheme.storageKey, e), r(e));
|
|
1925
1926
|
}
|
|
1926
1927
|
return {
|
|
1927
1928
|
colorScheme: i,
|
|
1928
1929
|
resolvedColorScheme: a,
|
|
1929
1930
|
setColorScheme: s,
|
|
1930
|
-
colorSchemeOptions:
|
|
1931
|
+
colorSchemeOptions: U.colorScheme.options
|
|
1931
1932
|
};
|
|
1932
1933
|
}
|
|
1933
1934
|
//#endregion
|
|
1934
1935
|
//#region src/hooks/use-media-query.ts
|
|
1935
|
-
function
|
|
1936
|
+
function Zi(e, t) {
|
|
1936
1937
|
return typeof t == "boolean" ? t : typeof window < "u" && "matchMedia" in window ? window.matchMedia(e).matches : !1;
|
|
1937
1938
|
}
|
|
1938
|
-
function
|
|
1939
|
-
let [r, i] =
|
|
1940
|
-
return
|
|
1939
|
+
function Qi(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0 }) {
|
|
1940
|
+
let [r, i] = y(n ? t : Zi(e));
|
|
1941
|
+
return Ce(() => {
|
|
1941
1942
|
try {
|
|
1942
1943
|
if ("matchMedia" in window) {
|
|
1943
1944
|
let t = window.matchMedia(e);
|
|
@@ -1952,7 +1953,7 @@ function Xi(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0
|
|
|
1952
1953
|
}
|
|
1953
1954
|
}, [e]), r ?? !1;
|
|
1954
1955
|
}
|
|
1955
|
-
var
|
|
1956
|
+
var W = {
|
|
1956
1957
|
submenuContent: "imf-ui-navigation-menu-inline-submenu-module-submenuContent",
|
|
1957
1958
|
submenuDescription: "imf-ui-navigation-menu-inline-submenu-module-submenuDescription",
|
|
1958
1959
|
submenuHint: "imf-ui-navigation-menu-inline-submenu-module-submenuHint",
|
|
@@ -1967,44 +1968,44 @@ var G = {
|
|
|
1967
1968
|
};
|
|
1968
1969
|
//#endregion
|
|
1969
1970
|
//#region src/components/navigation-menu/subs/inline-submenu.tsx
|
|
1970
|
-
function
|
|
1971
|
-
let n =
|
|
1972
|
-
return /* @__PURE__ */ _(
|
|
1971
|
+
function $i({ items: e, defaultValue: t }) {
|
|
1972
|
+
let n = Qi(Gi("md"), !0);
|
|
1973
|
+
return /* @__PURE__ */ _(w.Root, {
|
|
1973
1974
|
orientation: n ? "vertical" : "horizontal",
|
|
1974
1975
|
defaultValue: t,
|
|
1975
1976
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1976
1977
|
"data-orientation": n ? "vertical" : "horizontal",
|
|
1977
|
-
className:
|
|
1978
|
+
className: W.submenuRoot,
|
|
1978
1979
|
children: /* @__PURE__ */ v("div", {
|
|
1979
|
-
className:
|
|
1980
|
-
children: [/* @__PURE__ */ _(
|
|
1980
|
+
className: W.submenuLayout,
|
|
1981
|
+
children: [/* @__PURE__ */ _(w.List, {
|
|
1981
1982
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1982
|
-
className:
|
|
1983
|
-
children: e.map((e) => /* @__PURE__ */ v(
|
|
1983
|
+
className: W.submenuList,
|
|
1984
|
+
children: e.map((e) => /* @__PURE__ */ v(w.Item, {
|
|
1984
1985
|
value: e.value,
|
|
1985
1986
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
1986
|
-
children: [/* @__PURE__ */ v(
|
|
1987
|
+
children: [/* @__PURE__ */ v(w.Trigger, {
|
|
1987
1988
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
1988
|
-
className:
|
|
1989
|
+
className: W.submenuTrigger,
|
|
1989
1990
|
children: [/* @__PURE__ */ _("span", {
|
|
1990
|
-
className:
|
|
1991
|
+
className: W.submenuLabel,
|
|
1991
1992
|
children: e.label
|
|
1992
1993
|
}), e.hint && /* @__PURE__ */ _("span", {
|
|
1993
|
-
className:
|
|
1994
|
+
className: W.submenuHint,
|
|
1994
1995
|
children: e.hint
|
|
1995
1996
|
})]
|
|
1996
|
-
}), /* @__PURE__ */ v(
|
|
1997
|
+
}), /* @__PURE__ */ v(w.Content, {
|
|
1997
1998
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
1998
|
-
className:
|
|
1999
|
+
className: W.submenuContent,
|
|
1999
2000
|
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("h4", {
|
|
2000
|
-
className:
|
|
2001
|
+
className: W.submenuTitle,
|
|
2001
2002
|
children: e.title
|
|
2002
2003
|
}), e.description && /* @__PURE__ */ _("p", {
|
|
2003
|
-
className:
|
|
2004
|
+
className: W.submenuDescription,
|
|
2004
2005
|
children: e.description
|
|
2005
2006
|
})] }), /* @__PURE__ */ _("ul", {
|
|
2006
|
-
className:
|
|
2007
|
-
children: e.links.map((e, t) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(
|
|
2007
|
+
className: W.submenuLinkList,
|
|
2008
|
+
children: e.links.map((e, t) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ _(Bi, {
|
|
2008
2009
|
href: e.href,
|
|
2009
2010
|
title: e.title,
|
|
2010
2011
|
description: e.description
|
|
@@ -2012,35 +2013,35 @@ function Zi({ items: e, defaultValue: t }) {
|
|
|
2012
2013
|
})]
|
|
2013
2014
|
})]
|
|
2014
2015
|
}, e.value))
|
|
2015
|
-
}), /* @__PURE__ */ _(
|
|
2016
|
+
}), /* @__PURE__ */ _(w.Viewport, {
|
|
2016
2017
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
2017
|
-
className:
|
|
2018
|
+
className: W.submenuViewport
|
|
2018
2019
|
})]
|
|
2019
2020
|
})
|
|
2020
2021
|
});
|
|
2021
2022
|
}
|
|
2022
|
-
|
|
2023
|
+
$i.displayName = "NavigationMenu.InlineSubmenu";
|
|
2023
2024
|
//#endregion
|
|
2024
2025
|
//#region src/components/navigation-menu/navigation-menu.tsx
|
|
2025
|
-
var
|
|
2026
|
-
Arrow: () =>
|
|
2027
|
-
Backdrop: () =>
|
|
2028
|
-
Content: () =>
|
|
2029
|
-
FlyoutLink: () =>
|
|
2030
|
-
Icon: () =>
|
|
2031
|
-
InlineSubmenu: () =>
|
|
2032
|
-
Item: () =>
|
|
2033
|
-
Link: () =>
|
|
2034
|
-
LinkCard: () =>
|
|
2035
|
-
LinkList: () =>
|
|
2036
|
-
List: () =>
|
|
2037
|
-
Popup: () =>
|
|
2038
|
-
Portal: () =>
|
|
2039
|
-
Positioner: () =>
|
|
2040
|
-
Root: () =>
|
|
2041
|
-
Trigger: () =>
|
|
2042
|
-
Viewport: () =>
|
|
2043
|
-
}),
|
|
2026
|
+
var ea = /* @__PURE__ */ e({
|
|
2027
|
+
Arrow: () => Ni,
|
|
2028
|
+
Backdrop: () => Pi,
|
|
2029
|
+
Content: () => yi,
|
|
2030
|
+
FlyoutLink: () => Ui,
|
|
2031
|
+
Icon: () => Ti,
|
|
2032
|
+
InlineSubmenu: () => $i,
|
|
2033
|
+
Item: () => vi,
|
|
2034
|
+
Link: () => Ri,
|
|
2035
|
+
LinkCard: () => Bi,
|
|
2036
|
+
LinkList: () => zi,
|
|
2037
|
+
List: () => _i,
|
|
2038
|
+
Popup: () => Mi,
|
|
2039
|
+
Portal: () => Ai,
|
|
2040
|
+
Positioner: () => ji,
|
|
2041
|
+
Root: () => gi,
|
|
2042
|
+
Trigger: () => wi,
|
|
2043
|
+
Viewport: () => bi
|
|
2044
|
+
}), ta = {
|
|
2044
2045
|
name: "NavigationMenu",
|
|
2045
2046
|
category: t.display,
|
|
2046
2047
|
status: "experimental",
|
|
@@ -2053,14 +2054,14 @@ var Qi = /* @__PURE__ */ e({
|
|
|
2053
2054
|
docLink: "https://base-ui.com/react/components/navigation-menu",
|
|
2054
2055
|
llmDocLink: "https://base-ui.com/react/components/navigation-menu.md"
|
|
2055
2056
|
}
|
|
2056
|
-
},
|
|
2057
|
+
}, G = {
|
|
2057
2058
|
fill: "imf-ui-spinner-module-fill",
|
|
2058
2059
|
glyph: "imf-ui-spinner-module-glyph",
|
|
2059
2060
|
root: "imf-ui-spinner-module-root",
|
|
2060
2061
|
sizeLg: "imf-ui-spinner-module-sizeLg",
|
|
2061
2062
|
sizeMd: "imf-ui-spinner-module-sizeMd",
|
|
2062
2063
|
sizeSm: "imf-ui-spinner-module-sizeSm"
|
|
2063
|
-
},
|
|
2064
|
+
}, K = {
|
|
2064
2065
|
HALF: 8,
|
|
2065
2066
|
INSET: -11,
|
|
2066
2067
|
TILT0: -.44,
|
|
@@ -2069,16 +2070,16 @@ var Qi = /* @__PURE__ */ e({
|
|
|
2069
2070
|
BR_S: 2.1,
|
|
2070
2071
|
SWAY: 11.5,
|
|
2071
2072
|
SWAY_RATIO: 1.35
|
|
2072
|
-
},
|
|
2073
|
+
}, na = 100 / 2, ra = [
|
|
2073
2074
|
[0, 0],
|
|
2074
2075
|
[100, 0],
|
|
2075
2076
|
[100, 100],
|
|
2076
2077
|
[0, 100]
|
|
2077
2078
|
];
|
|
2078
|
-
function
|
|
2079
|
+
function ia(e, t, n, r) {
|
|
2079
2080
|
let i = [], a = (i) => n * (i[1] - t) - r * (i[0] - e) >= 0;
|
|
2080
2081
|
for (let o = 0; o < 4; o++) {
|
|
2081
|
-
let s =
|
|
2082
|
+
let s = ra[o], c = ra[(o + 1) % 4], l = a(s), u = a(c);
|
|
2082
2083
|
if (l && i.push(s), l !== u) {
|
|
2083
2084
|
let a = ((e - s[0]) * r - (t - s[1]) * n) / ((c[0] - s[0]) * r - (c[1] - s[1]) * n);
|
|
2084
2085
|
i.push([s[0] + a * (c[0] - s[0]), s[1] + a * (c[1] - s[1])]);
|
|
@@ -2086,7 +2087,7 @@ function na(e, t, n, r) {
|
|
|
2086
2087
|
}
|
|
2087
2088
|
return i;
|
|
2088
2089
|
}
|
|
2089
|
-
function
|
|
2090
|
+
function aa(e, t) {
|
|
2090
2091
|
let n = 0, r = Infinity;
|
|
2091
2092
|
for (let i = 0; i < e.length; i++) {
|
|
2092
2093
|
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;
|
|
@@ -2098,38 +2099,38 @@ function ra(e, t) {
|
|
|
2098
2099
|
...e.slice(n + 1)
|
|
2099
2100
|
];
|
|
2100
2101
|
}
|
|
2101
|
-
function
|
|
2102
|
-
let s =
|
|
2103
|
-
return
|
|
2102
|
+
function oa(e, t, n, r, i, a, o) {
|
|
2103
|
+
let s = na + e * t * a, c = na + e * t * o, l = e * n, u = s + e * r * l - e * a * K.INSET, d = c + e * i * l - e * o * K.INSET;
|
|
2104
|
+
return aa(ia(s, c, e * r, e * i), [u, d]);
|
|
2104
2105
|
}
|
|
2105
|
-
function
|
|
2106
|
-
let t =
|
|
2107
|
-
return [oa(
|
|
2106
|
+
function sa(e) {
|
|
2107
|
+
let t = K.TILT0 + (K.ROT_S > 0 ? e / (K.ROT_S * 1e3) * Math.PI * 2 : 0), n = K.BR_AMT > 0 ? (1 - Math.cos(e / (K.BR_S * 1e3) * Math.PI * 2)) / 2 : 0, r = K.HALF + K.BR_AMT * n, i = K.SWAY * Math.sin(e / (K.BR_S * 1e3 * K.SWAY_RATIO) * Math.PI * 2), a = Math.cos(t), o = Math.sin(t), s = -o, c = a;
|
|
2108
|
+
return [ca(oa(1, r, i, a, o, s, c)), ca(oa(-1, r, i, a, o, s, c))];
|
|
2108
2109
|
}
|
|
2109
|
-
function
|
|
2110
|
+
function ca(e) {
|
|
2110
2111
|
return "M" + e.map((e) => e[0].toFixed(2) + " " + e[1].toFixed(2)).join("L") + "Z";
|
|
2111
2112
|
}
|
|
2112
|
-
var
|
|
2113
|
-
sm:
|
|
2114
|
-
md:
|
|
2115
|
-
lg:
|
|
2113
|
+
var la = K.ROT_S * 1e3, ua = h(G.root, { variants: { size: {
|
|
2114
|
+
sm: G.sizeSm,
|
|
2115
|
+
md: G.sizeMd,
|
|
2116
|
+
lg: G.sizeLg
|
|
2116
2117
|
} } });
|
|
2117
|
-
function
|
|
2118
|
-
let i =
|
|
2119
|
-
|
|
2118
|
+
function da({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
2119
|
+
let i = we(null), a = we(null);
|
|
2120
|
+
Ce(function() {
|
|
2120
2121
|
let e = 0, t = performance.now(), n = (r) => {
|
|
2121
|
-
let [o, s] =
|
|
2122
|
+
let [o, s] = sa((r - t) % la);
|
|
2122
2123
|
i.current?.setAttribute("d", o), a.current?.setAttribute("d", s), e = requestAnimationFrame(n);
|
|
2123
2124
|
};
|
|
2124
2125
|
return e = requestAnimationFrame(n), function() {
|
|
2125
2126
|
cancelAnimationFrame(e);
|
|
2126
2127
|
};
|
|
2127
2128
|
}, []);
|
|
2128
|
-
let [o, s] =
|
|
2129
|
+
let [o, s] = sa(0);
|
|
2129
2130
|
return /* @__PURE__ */ _("span", {
|
|
2130
2131
|
...r,
|
|
2131
2132
|
"data-imf-ui-component": "Spinner",
|
|
2132
|
-
className:
|
|
2133
|
+
className: ua({
|
|
2133
2134
|
size: e,
|
|
2134
2135
|
className: n
|
|
2135
2136
|
}),
|
|
@@ -2139,14 +2140,14 @@ function la({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
|
2139
2140
|
viewBox: "0 0 100 100",
|
|
2140
2141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2141
2142
|
"aria-hidden": "true",
|
|
2142
|
-
className:
|
|
2143
|
+
className: G.glyph,
|
|
2143
2144
|
children: [/* @__PURE__ */ _("path", {
|
|
2144
2145
|
ref: i,
|
|
2145
|
-
className:
|
|
2146
|
+
className: G.fill,
|
|
2146
2147
|
d: o
|
|
2147
2148
|
}), /* @__PURE__ */ _("path", {
|
|
2148
2149
|
ref: a,
|
|
2149
|
-
className:
|
|
2150
|
+
className: G.fill,
|
|
2150
2151
|
d: s
|
|
2151
2152
|
})]
|
|
2152
2153
|
})
|
|
@@ -2154,13 +2155,13 @@ function la({ size: e = "md", label: t = "Loading", className: n, ...r }) {
|
|
|
2154
2155
|
}
|
|
2155
2156
|
//#endregion
|
|
2156
2157
|
//#region src/components/spinner/spinner.meta.ts
|
|
2157
|
-
var
|
|
2158
|
+
var fa = {
|
|
2158
2159
|
name: "Spinner",
|
|
2159
2160
|
category: t.display,
|
|
2160
2161
|
status: "stable",
|
|
2161
2162
|
description: "Loading indicator built from the animated ImFusion glyph. Also called a loader, progress spinner, or activity indicator; signals indeterminate loading.",
|
|
2162
2163
|
origin: "native"
|
|
2163
|
-
},
|
|
2164
|
+
}, q = {
|
|
2164
2165
|
body: "imf-ui-table-module-body",
|
|
2165
2166
|
cell: "imf-ui-table-module-cell",
|
|
2166
2167
|
header: "imf-ui-table-module-header",
|
|
@@ -2169,80 +2170,80 @@ var ua = {
|
|
|
2169
2170
|
root: "imf-ui-table-module-root",
|
|
2170
2171
|
row: "imf-ui-table-module-row",
|
|
2171
2172
|
sortIndicator: "imf-ui-table-module-sortIndicator"
|
|
2172
|
-
},
|
|
2173
|
-
Body: () =>
|
|
2174
|
-
Cell: () =>
|
|
2175
|
-
Header: () =>
|
|
2176
|
-
HeaderButton: () =>
|
|
2177
|
-
HeaderCell: () =>
|
|
2178
|
-
Root: () =>
|
|
2179
|
-
Row: () =>
|
|
2180
|
-
SortableHeaderCell: () =>
|
|
2181
|
-
}),
|
|
2182
|
-
function
|
|
2173
|
+
}, pa = /* @__PURE__ */ e({
|
|
2174
|
+
Body: () => wa,
|
|
2175
|
+
Cell: () => Ea,
|
|
2176
|
+
Header: () => Ca,
|
|
2177
|
+
HeaderButton: () => Da,
|
|
2178
|
+
HeaderCell: () => J,
|
|
2179
|
+
Root: () => Sa,
|
|
2180
|
+
Row: () => Ta,
|
|
2181
|
+
SortableHeaderCell: () => Aa
|
|
2182
|
+
}), ma = h(q.root), ha = h(q.header), ga = h(q.body), _a = h(q.row), va = h(q.headerCell), ya = h(q.cell), ba = h(q.headerButton), xa = h(q.sortIndicator);
|
|
2183
|
+
function Sa({ className: e, ...t }) {
|
|
2183
2184
|
return /* @__PURE__ */ _("table", {
|
|
2184
2185
|
...t,
|
|
2185
2186
|
"data-imf-ui-component": "Table.Root",
|
|
2186
|
-
className:
|
|
2187
|
+
className: ma({ className: e })
|
|
2187
2188
|
});
|
|
2188
2189
|
}
|
|
2189
|
-
|
|
2190
|
-
function
|
|
2190
|
+
Sa.displayName = "Table.Root";
|
|
2191
|
+
function Ca({ className: e, ...t }) {
|
|
2191
2192
|
return /* @__PURE__ */ _("thead", {
|
|
2192
2193
|
...t,
|
|
2193
2194
|
"data-imf-ui-component": "Table.Header",
|
|
2194
|
-
className:
|
|
2195
|
+
className: ha({ className: e })
|
|
2195
2196
|
});
|
|
2196
2197
|
}
|
|
2197
|
-
|
|
2198
|
-
function
|
|
2198
|
+
Ca.displayName = "Table.Header";
|
|
2199
|
+
function wa({ className: e, ...t }) {
|
|
2199
2200
|
return /* @__PURE__ */ _("tbody", {
|
|
2200
2201
|
...t,
|
|
2201
2202
|
"data-imf-ui-component": "Table.Body",
|
|
2202
|
-
className:
|
|
2203
|
+
className: ga({ className: e })
|
|
2203
2204
|
});
|
|
2204
2205
|
}
|
|
2205
|
-
|
|
2206
|
-
function
|
|
2206
|
+
wa.displayName = "Table.Body";
|
|
2207
|
+
function Ta({ className: e, ...t }) {
|
|
2207
2208
|
return /* @__PURE__ */ _("tr", {
|
|
2208
2209
|
...t,
|
|
2209
2210
|
"data-imf-ui-component": "Table.Row",
|
|
2210
|
-
className:
|
|
2211
|
+
className: _a({ className: e })
|
|
2211
2212
|
});
|
|
2212
2213
|
}
|
|
2213
|
-
|
|
2214
|
-
function
|
|
2214
|
+
Ta.displayName = "Table.Row";
|
|
2215
|
+
function J({ className: e, ...t }) {
|
|
2215
2216
|
return /* @__PURE__ */ _("th", {
|
|
2216
2217
|
...t,
|
|
2217
2218
|
"data-imf-ui-component": "Table.HeaderCell",
|
|
2218
|
-
className:
|
|
2219
|
+
className: va({ className: e })
|
|
2219
2220
|
});
|
|
2220
2221
|
}
|
|
2221
|
-
|
|
2222
|
-
function
|
|
2222
|
+
J.displayName = "Table.HeaderCell";
|
|
2223
|
+
function Ea({ className: e, ...t }) {
|
|
2223
2224
|
return /* @__PURE__ */ _("td", {
|
|
2224
2225
|
...t,
|
|
2225
2226
|
"data-imf-ui-component": "Table.Cell",
|
|
2226
|
-
className:
|
|
2227
|
+
className: ya({ className: e })
|
|
2227
2228
|
});
|
|
2228
2229
|
}
|
|
2229
|
-
|
|
2230
|
-
function
|
|
2230
|
+
Ea.displayName = "Table.Cell";
|
|
2231
|
+
function Da({ className: e, type: t = "button", ...n }) {
|
|
2231
2232
|
return /* @__PURE__ */ _("button", {
|
|
2232
2233
|
...n,
|
|
2233
2234
|
type: t,
|
|
2234
2235
|
"data-imf-ui-component": "Table.HeaderButton",
|
|
2235
|
-
className:
|
|
2236
|
+
className: ba({ className: e })
|
|
2236
2237
|
});
|
|
2237
2238
|
}
|
|
2238
|
-
|
|
2239
|
-
function
|
|
2239
|
+
Da.displayName = "Table.HeaderButton";
|
|
2240
|
+
function Oa(e) {
|
|
2240
2241
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
2241
2242
|
}
|
|
2242
|
-
function
|
|
2243
|
+
function ka({ sorted: e }) {
|
|
2243
2244
|
let t = e === "asc" ? ne : e === "desc" ? n : r;
|
|
2244
2245
|
return /* @__PURE__ */ _("span", {
|
|
2245
|
-
className:
|
|
2246
|
+
className: xa(),
|
|
2246
2247
|
"data-sorted": e || void 0,
|
|
2247
2248
|
"aria-hidden": !0,
|
|
2248
2249
|
children: /* @__PURE__ */ _(m, {
|
|
@@ -2252,29 +2253,29 @@ function Da({ sorted: e }) {
|
|
|
2252
2253
|
})
|
|
2253
2254
|
});
|
|
2254
2255
|
}
|
|
2255
|
-
function
|
|
2256
|
-
return t ? /* @__PURE__ */ _(
|
|
2256
|
+
function Aa({ sortDirection: e, onToggle: t, children: n, ...r }) {
|
|
2257
|
+
return t ? /* @__PURE__ */ _(J, {
|
|
2257
2258
|
...r,
|
|
2258
|
-
"aria-sort":
|
|
2259
|
-
children: /* @__PURE__ */ v(
|
|
2259
|
+
"aria-sort": Oa(e),
|
|
2260
|
+
children: /* @__PURE__ */ v(Da, {
|
|
2260
2261
|
onClick: t,
|
|
2261
|
-
children: [n, /* @__PURE__ */ _(
|
|
2262
|
+
children: [n, /* @__PURE__ */ _(ka, { sorted: e })]
|
|
2262
2263
|
})
|
|
2263
|
-
}) : /* @__PURE__ */ _(
|
|
2264
|
+
}) : /* @__PURE__ */ _(J, {
|
|
2264
2265
|
...r,
|
|
2265
2266
|
children: n
|
|
2266
2267
|
});
|
|
2267
2268
|
}
|
|
2268
|
-
|
|
2269
|
+
Aa.displayName = "Table.SortableHeaderCell";
|
|
2269
2270
|
//#endregion
|
|
2270
2271
|
//#region src/components/table/table.meta.ts
|
|
2271
|
-
var
|
|
2272
|
+
var ja = {
|
|
2272
2273
|
name: "Table",
|
|
2273
2274
|
category: t.display,
|
|
2274
2275
|
status: "stable",
|
|
2275
2276
|
description: "Styled, static building blocks for tabular data — Root, Header, Body, Row, HeaderCell, Cell, HeaderButton, SortableHeaderCell. Also called a data grid anatomy. Purely presentational with no data logic; for a full data grid, drive these parts with a headless table library (TanStack Table recommended) that you install yourself.",
|
|
2276
2277
|
origin: "native"
|
|
2277
|
-
},
|
|
2278
|
+
}, Ma = {
|
|
2278
2279
|
name: "Tabs",
|
|
2279
2280
|
category: t.display,
|
|
2280
2281
|
status: "stable",
|
|
@@ -2287,6 +2288,169 @@ var ka = {
|
|
|
2287
2288
|
docLink: "https://base-ui.com/react/components/tabs",
|
|
2288
2289
|
llmDocLink: "https://base-ui.com/react/components/tabs.md"
|
|
2289
2290
|
}
|
|
2291
|
+
}, Y = {
|
|
2292
|
+
action: "imf-ui-toast-module-action",
|
|
2293
|
+
arrow: "imf-ui-toast-module-arrow",
|
|
2294
|
+
close: "imf-ui-toast-module-close",
|
|
2295
|
+
content: "imf-ui-toast-module-content",
|
|
2296
|
+
description: "imf-ui-toast-module-description",
|
|
2297
|
+
portal: "imf-ui-toast-module-portal",
|
|
2298
|
+
positionBottomCenter: "imf-ui-toast-module-positionBottomCenter",
|
|
2299
|
+
positionBottomLeft: "imf-ui-toast-module-positionBottomLeft",
|
|
2300
|
+
positionBottomRight: "imf-ui-toast-module-positionBottomRight",
|
|
2301
|
+
positioner: "imf-ui-toast-module-positioner",
|
|
2302
|
+
positionTopCenter: "imf-ui-toast-module-positionTopCenter",
|
|
2303
|
+
positionTopLeft: "imf-ui-toast-module-positionTopLeft",
|
|
2304
|
+
positionTopRight: "imf-ui-toast-module-positionTopRight",
|
|
2305
|
+
root: "imf-ui-toast-module-root",
|
|
2306
|
+
title: "imf-ui-toast-module-title",
|
|
2307
|
+
variantError: "imf-ui-toast-module-variantError",
|
|
2308
|
+
variantInfo: "imf-ui-toast-module-variantInfo",
|
|
2309
|
+
variantSuccess: "imf-ui-toast-module-variantSuccess",
|
|
2310
|
+
variantWarning: "imf-ui-toast-module-variantWarning",
|
|
2311
|
+
viewport: "imf-ui-toast-module-viewport"
|
|
2312
|
+
}, Na = /* @__PURE__ */ e({
|
|
2313
|
+
Action: () => eo,
|
|
2314
|
+
Arrow: () => no,
|
|
2315
|
+
Close: () => $a,
|
|
2316
|
+
Content: () => Xa,
|
|
2317
|
+
Description: () => Qa,
|
|
2318
|
+
Portal: () => qa,
|
|
2319
|
+
Positioner: () => to,
|
|
2320
|
+
Provider: () => Ka,
|
|
2321
|
+
Root: () => Ya,
|
|
2322
|
+
Title: () => Za,
|
|
2323
|
+
Viewport: () => Ja,
|
|
2324
|
+
createToastManager: () => Ga,
|
|
2325
|
+
useToastManager: () => Wa
|
|
2326
|
+
}), Pa = h(Y.portal), Fa = h(Y.viewport, {
|
|
2327
|
+
variants: { position: {
|
|
2328
|
+
"top-left": Y.positionTopLeft,
|
|
2329
|
+
"top-center": Y.positionTopCenter,
|
|
2330
|
+
"top-right": Y.positionTopRight,
|
|
2331
|
+
"bottom-left": Y.positionBottomLeft,
|
|
2332
|
+
"bottom-center": Y.positionBottomCenter,
|
|
2333
|
+
"bottom-right": Y.positionBottomRight
|
|
2334
|
+
} },
|
|
2335
|
+
defaultVariants: { position: "bottom-center" }
|
|
2336
|
+
}), Ia = h(Y.root, {
|
|
2337
|
+
variants: { variant: {
|
|
2338
|
+
neutral: null,
|
|
2339
|
+
info: Y.variantInfo,
|
|
2340
|
+
success: Y.variantSuccess,
|
|
2341
|
+
warning: Y.variantWarning,
|
|
2342
|
+
error: Y.variantError
|
|
2343
|
+
} },
|
|
2344
|
+
defaultVariants: { variant: "neutral" }
|
|
2345
|
+
}), La = h(Y.content), Ra = h(Y.title), za = h(Y.description), Ba = h(Y.close), Va = h(Y.action), Ha = h(Y.positioner), Ua = h(Y.arrow), Wa = T.useToastManager, Ga = T.createToastManager;
|
|
2346
|
+
function Ka({ timeout: e = 5e3, limit: t = 3, ...n }) {
|
|
2347
|
+
return /* @__PURE__ */ _(T.Provider, {
|
|
2348
|
+
...n,
|
|
2349
|
+
timeout: e,
|
|
2350
|
+
limit: t
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
Ka.displayName = "Toast.Provider";
|
|
2354
|
+
function qa({ className: e, ...t }) {
|
|
2355
|
+
return /* @__PURE__ */ _(T.Portal, {
|
|
2356
|
+
...t,
|
|
2357
|
+
"data-imf-ui-component": "Toast.Portal",
|
|
2358
|
+
className: (t) => Pa({ className: typeof e == "function" ? e(t) : e })
|
|
2359
|
+
});
|
|
2360
|
+
}
|
|
2361
|
+
qa.displayName = "Toast.Portal";
|
|
2362
|
+
function Ja({ className: e, position: t = "bottom-center", ...n }) {
|
|
2363
|
+
return /* @__PURE__ */ _(T.Viewport, {
|
|
2364
|
+
...n,
|
|
2365
|
+
"data-imf-ui-component": "Toast.Viewport",
|
|
2366
|
+
className: (n) => Fa({
|
|
2367
|
+
position: t,
|
|
2368
|
+
className: typeof e == "function" ? e(n) : e
|
|
2369
|
+
})
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2372
|
+
Ja.displayName = "Toast.Viewport";
|
|
2373
|
+
function Ya({ className: e, variant: t = "neutral", ...n }) {
|
|
2374
|
+
return /* @__PURE__ */ _(T.Root, {
|
|
2375
|
+
...n,
|
|
2376
|
+
"data-imf-ui-component": "Toast.Root",
|
|
2377
|
+
className: (n) => Ia({
|
|
2378
|
+
variant: t,
|
|
2379
|
+
className: typeof e == "function" ? e(n) : e
|
|
2380
|
+
})
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
Ya.displayName = "Toast.Root";
|
|
2384
|
+
function Xa({ className: e, ...t }) {
|
|
2385
|
+
return /* @__PURE__ */ _(T.Content, {
|
|
2386
|
+
...t,
|
|
2387
|
+
"data-imf-ui-component": "Toast.Content",
|
|
2388
|
+
className: (t) => La({ className: typeof e == "function" ? e(t) : e })
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2391
|
+
Xa.displayName = "Toast.Content";
|
|
2392
|
+
function Za({ className: e, ...t }) {
|
|
2393
|
+
return /* @__PURE__ */ _(T.Title, {
|
|
2394
|
+
...t,
|
|
2395
|
+
"data-imf-ui-component": "Toast.Title",
|
|
2396
|
+
className: (t) => Ra({ className: typeof e == "function" ? e(t) : e })
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
Za.displayName = "Toast.Title";
|
|
2400
|
+
function Qa({ className: e, ...t }) {
|
|
2401
|
+
return /* @__PURE__ */ _(T.Description, {
|
|
2402
|
+
...t,
|
|
2403
|
+
"data-imf-ui-component": "Toast.Description",
|
|
2404
|
+
className: (t) => za({ className: typeof e == "function" ? e(t) : e })
|
|
2405
|
+
});
|
|
2406
|
+
}
|
|
2407
|
+
Qa.displayName = "Toast.Description";
|
|
2408
|
+
function $a({ className: e, ...t }) {
|
|
2409
|
+
return /* @__PURE__ */ _(T.Close, {
|
|
2410
|
+
...t,
|
|
2411
|
+
"data-imf-ui-component": "Toast.Close",
|
|
2412
|
+
className: (t) => Ba({ className: typeof e == "function" ? e(t) : e })
|
|
2413
|
+
});
|
|
2414
|
+
}
|
|
2415
|
+
$a.displayName = "Toast.Close";
|
|
2416
|
+
function eo({ className: e, ...t }) {
|
|
2417
|
+
return /* @__PURE__ */ _(T.Action, {
|
|
2418
|
+
...t,
|
|
2419
|
+
"data-imf-ui-component": "Toast.Action",
|
|
2420
|
+
className: (t) => Va({ className: typeof e == "function" ? e(t) : e })
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
eo.displayName = "Toast.Action";
|
|
2424
|
+
function to({ className: e, ...t }) {
|
|
2425
|
+
return /* @__PURE__ */ _(T.Positioner, {
|
|
2426
|
+
...t,
|
|
2427
|
+
"data-imf-ui-component": "Toast.Positioner",
|
|
2428
|
+
className: (t) => Ha({ className: typeof e == "function" ? e(t) : e })
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
to.displayName = "Toast.Positioner";
|
|
2432
|
+
function no({ className: e, ...t }) {
|
|
2433
|
+
return /* @__PURE__ */ _(T.Arrow, {
|
|
2434
|
+
...t,
|
|
2435
|
+
"data-imf-ui-component": "Toast.Arrow",
|
|
2436
|
+
className: (t) => Ua({ className: typeof e == "function" ? e(t) : e })
|
|
2437
|
+
});
|
|
2438
|
+
}
|
|
2439
|
+
no.displayName = "Toast.Arrow";
|
|
2440
|
+
//#endregion
|
|
2441
|
+
//#region src/components/toast/toast.meta.ts
|
|
2442
|
+
var ro = {
|
|
2443
|
+
name: "Toast",
|
|
2444
|
+
category: t.display,
|
|
2445
|
+
status: "experimental",
|
|
2446
|
+
description: "Transient message stack that reports the outcome of a background action without interrupting the page. Use for save confirmations, undo offers, and async progress; attach one to an element for contextual feedback like a copy confirmation. Also called a snackbar, notification, or flash message; for a message that stays inline in the page use Callout instead.",
|
|
2447
|
+
origin: "adapted",
|
|
2448
|
+
upstream: {
|
|
2449
|
+
name: "Base UI",
|
|
2450
|
+
websiteLink: "https://base-ui.com/",
|
|
2451
|
+
docLink: "https://base-ui.com/react/components/toast",
|
|
2452
|
+
llmDocLink: "https://base-ui.com/react/components/toast.md"
|
|
2453
|
+
}
|
|
2290
2454
|
}, X = {
|
|
2291
2455
|
arrow: "imf-ui-tooltip-module-arrow",
|
|
2292
2456
|
popup: "imf-ui-tooltip-module-popup",
|
|
@@ -2302,18 +2466,18 @@ var ka = {
|
|
|
2302
2466
|
variantPrimary: "imf-ui-tooltip-module-variantPrimary",
|
|
2303
2467
|
variantSecondary: "imf-ui-tooltip-module-variantSecondary",
|
|
2304
2468
|
viewport: "imf-ui-tooltip-module-viewport"
|
|
2305
|
-
},
|
|
2306
|
-
Arrow: () =>
|
|
2307
|
-
Inline: () =>
|
|
2308
|
-
Popup: () =>
|
|
2309
|
-
Portal: () =>
|
|
2310
|
-
Positioner: () =>
|
|
2311
|
-
Provider: () =>
|
|
2312
|
-
Root: () =>
|
|
2313
|
-
Trigger: () =>
|
|
2314
|
-
Viewport: () =>
|
|
2315
|
-
createHandle: () =>
|
|
2316
|
-
}),
|
|
2469
|
+
}, io = /* @__PURE__ */ e({
|
|
2470
|
+
Arrow: () => vo,
|
|
2471
|
+
Inline: () => bo,
|
|
2472
|
+
Popup: () => _o,
|
|
2473
|
+
Portal: () => ho,
|
|
2474
|
+
Positioner: () => go,
|
|
2475
|
+
Provider: () => fo,
|
|
2476
|
+
Root: () => po,
|
|
2477
|
+
Trigger: () => mo,
|
|
2478
|
+
Viewport: () => yo,
|
|
2479
|
+
createHandle: () => uo
|
|
2480
|
+
}), ao = h(X.trigger, { variants: {
|
|
2317
2481
|
variant: {
|
|
2318
2482
|
primary: X.variantPrimary,
|
|
2319
2483
|
secondary: X.variantSecondary,
|
|
@@ -2321,88 +2485,88 @@ var ka = {
|
|
|
2321
2485
|
negative: X.variantNegative
|
|
2322
2486
|
},
|
|
2323
2487
|
inline: { true: X.triggerInline }
|
|
2324
|
-
} }),
|
|
2488
|
+
} }), oo = h(X.positioner), so = h(X.popup, { variants: { variant: {
|
|
2325
2489
|
primary: X.popupVariantPrimary,
|
|
2326
2490
|
secondary: X.popupVariantSecondary,
|
|
2327
2491
|
positive: X.popupVariantPositive,
|
|
2328
2492
|
negative: X.popupVariantNegative
|
|
2329
|
-
} } }),
|
|
2330
|
-
function
|
|
2493
|
+
} } }), co = h(X.arrow), lo = h(X.viewport), uo = E.createHandle;
|
|
2494
|
+
function fo(e) {
|
|
2331
2495
|
return /* @__PURE__ */ _(E.Provider, { ...e });
|
|
2332
2496
|
}
|
|
2333
|
-
|
|
2334
|
-
function
|
|
2497
|
+
fo.displayName = "Tooltip.Provider";
|
|
2498
|
+
function po(e) {
|
|
2335
2499
|
return /* @__PURE__ */ _(E.Root, { ...e });
|
|
2336
2500
|
}
|
|
2337
|
-
|
|
2338
|
-
function
|
|
2501
|
+
po.displayName = "Tooltip.Root";
|
|
2502
|
+
function mo({ variant: e = "secondary", inline: t = !1, delay: n = 250, className: r, ...i }) {
|
|
2339
2503
|
return /* @__PURE__ */ _(E.Trigger, {
|
|
2340
2504
|
...i,
|
|
2341
2505
|
delay: n,
|
|
2342
2506
|
"data-imf-ui-component": "Tooltip.Trigger",
|
|
2343
|
-
className: (n) =>
|
|
2507
|
+
className: (n) => ao({
|
|
2344
2508
|
variant: e,
|
|
2345
2509
|
inline: t || void 0,
|
|
2346
2510
|
className: typeof r == "function" ? r(n) : r
|
|
2347
2511
|
})
|
|
2348
2512
|
});
|
|
2349
2513
|
}
|
|
2350
|
-
|
|
2351
|
-
function
|
|
2514
|
+
mo.displayName = "Tooltip.Trigger";
|
|
2515
|
+
function ho(e) {
|
|
2352
2516
|
return /* @__PURE__ */ _(E.Portal, { ...e });
|
|
2353
2517
|
}
|
|
2354
|
-
|
|
2355
|
-
function
|
|
2518
|
+
ho.displayName = "Tooltip.Portal";
|
|
2519
|
+
function go({ className: e, sideOffset: t = 13, ...n }) {
|
|
2356
2520
|
return /* @__PURE__ */ _(E.Positioner, {
|
|
2357
2521
|
...n,
|
|
2358
2522
|
sideOffset: t,
|
|
2359
2523
|
"data-imf-ui-component": "Tooltip.Positioner",
|
|
2360
|
-
className: (t) =>
|
|
2524
|
+
className: (t) => oo({ className: typeof e == "function" ? e(t) : e })
|
|
2361
2525
|
});
|
|
2362
2526
|
}
|
|
2363
|
-
|
|
2364
|
-
function
|
|
2527
|
+
go.displayName = "Tooltip.Positioner";
|
|
2528
|
+
function _o({ className: e, variant: t, ...n }) {
|
|
2365
2529
|
return /* @__PURE__ */ _(E.Popup, {
|
|
2366
2530
|
...n,
|
|
2367
2531
|
"data-imf-ui-component": "Tooltip.Popup",
|
|
2368
|
-
className: (n) =>
|
|
2532
|
+
className: (n) => so({
|
|
2369
2533
|
variant: t,
|
|
2370
2534
|
className: typeof e == "function" ? e(n) : e
|
|
2371
2535
|
})
|
|
2372
2536
|
});
|
|
2373
2537
|
}
|
|
2374
|
-
|
|
2375
|
-
function
|
|
2538
|
+
_o.displayName = "Tooltip.Popup";
|
|
2539
|
+
function vo({ className: e, ...t }) {
|
|
2376
2540
|
return /* @__PURE__ */ _(E.Arrow, {
|
|
2377
2541
|
...t,
|
|
2378
2542
|
"data-imf-ui-component": "Tooltip.Arrow",
|
|
2379
|
-
className: (t) =>
|
|
2543
|
+
className: (t) => co({ className: typeof e == "function" ? e(t) : e })
|
|
2380
2544
|
});
|
|
2381
2545
|
}
|
|
2382
|
-
|
|
2383
|
-
function
|
|
2546
|
+
vo.displayName = "Tooltip.Arrow";
|
|
2547
|
+
function yo({ className: e, ...t }) {
|
|
2384
2548
|
return /* @__PURE__ */ _(E.Viewport, {
|
|
2385
2549
|
...t,
|
|
2386
2550
|
"data-imf-ui-component": "Tooltip.Viewport",
|
|
2387
|
-
className: (t) =>
|
|
2551
|
+
className: (t) => lo({ className: typeof e == "function" ? e(t) : e })
|
|
2388
2552
|
});
|
|
2389
2553
|
}
|
|
2390
|
-
|
|
2391
|
-
function
|
|
2392
|
-
return /* @__PURE__ */ v(
|
|
2554
|
+
yo.displayName = "Tooltip.Viewport";
|
|
2555
|
+
function bo({ trigger: e, children: t, delay: n = 150, side: r = "top", sideOffset: i = 13 }) {
|
|
2556
|
+
return /* @__PURE__ */ v(po, { children: [/* @__PURE__ */ _(mo, {
|
|
2393
2557
|
inline: !0,
|
|
2394
2558
|
delay: n,
|
|
2395
2559
|
children: e
|
|
2396
|
-
}), /* @__PURE__ */ _(
|
|
2560
|
+
}), /* @__PURE__ */ _(ho, { children: /* @__PURE__ */ _(go, {
|
|
2397
2561
|
side: r,
|
|
2398
2562
|
sideOffset: i,
|
|
2399
|
-
children: /* @__PURE__ */ _(
|
|
2563
|
+
children: /* @__PURE__ */ _(_o, { children: t })
|
|
2400
2564
|
}) })] });
|
|
2401
2565
|
}
|
|
2402
|
-
|
|
2566
|
+
bo.displayName = "Tooltip.Inline";
|
|
2403
2567
|
//#endregion
|
|
2404
2568
|
//#region src/components/tooltip/tooltip.meta.ts
|
|
2405
|
-
var
|
|
2569
|
+
var xo = {
|
|
2406
2570
|
name: "Tooltip",
|
|
2407
2571
|
category: t.display,
|
|
2408
2572
|
status: "stable",
|
|
@@ -2443,21 +2607,21 @@ var qa = {
|
|
|
2443
2607
|
variantPrimary: "imf-ui-typo-module-variantPrimary",
|
|
2444
2608
|
variantSupport: "imf-ui-typo-module-variantSupport",
|
|
2445
2609
|
variantWarning: "imf-ui-typo-module-variantWarning"
|
|
2446
|
-
},
|
|
2447
|
-
Blockquote: () =>
|
|
2448
|
-
Detail: () =>
|
|
2449
|
-
H1: () =>
|
|
2450
|
-
H2: () =>
|
|
2451
|
-
H3: () =>
|
|
2452
|
-
H4: () =>
|
|
2453
|
-
Highlight: () =>
|
|
2454
|
-
InlineCode: () =>
|
|
2455
|
-
Lead: () =>
|
|
2456
|
-
Link: () =>
|
|
2457
|
-
OrderedList: () =>
|
|
2458
|
-
P: () =>
|
|
2459
|
-
Small: () =>
|
|
2460
|
-
UnorderedList: () =>
|
|
2610
|
+
}, So = /* @__PURE__ */ e({
|
|
2611
|
+
Blockquote: () => jo,
|
|
2612
|
+
Detail: () => ko,
|
|
2613
|
+
H1: () => Co,
|
|
2614
|
+
H2: () => wo,
|
|
2615
|
+
H3: () => To,
|
|
2616
|
+
H4: () => Eo,
|
|
2617
|
+
Highlight: () => No,
|
|
2618
|
+
InlineCode: () => Mo,
|
|
2619
|
+
Lead: () => Oo,
|
|
2620
|
+
Link: () => Po,
|
|
2621
|
+
OrderedList: () => Fo,
|
|
2622
|
+
P: () => Do,
|
|
2623
|
+
Small: () => Ao,
|
|
2624
|
+
UnorderedList: () => Io
|
|
2461
2625
|
}), Q = h("", { variants: { variant: {
|
|
2462
2626
|
main: Z.variantMain,
|
|
2463
2627
|
support: Z.variantSupport,
|
|
@@ -2476,7 +2640,7 @@ var qa = {
|
|
|
2476
2640
|
default: Z.spacingDefault,
|
|
2477
2641
|
none: Z.spacingNone
|
|
2478
2642
|
} } });
|
|
2479
|
-
function
|
|
2643
|
+
function Co({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2480
2644
|
return /* @__PURE__ */ _("h1", {
|
|
2481
2645
|
...r,
|
|
2482
2646
|
"data-imf-ui-component": "Typo.H1",
|
|
@@ -2487,8 +2651,8 @@ function Ya({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2487
2651
|
children: r.children
|
|
2488
2652
|
});
|
|
2489
2653
|
}
|
|
2490
|
-
|
|
2491
|
-
function
|
|
2654
|
+
Co.displayName = "Typo.H1";
|
|
2655
|
+
function wo({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2492
2656
|
return /* @__PURE__ */ _("h2", {
|
|
2493
2657
|
...r,
|
|
2494
2658
|
"data-imf-ui-component": "Typo.H2",
|
|
@@ -2499,8 +2663,8 @@ function Xa({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2499
2663
|
children: r.children
|
|
2500
2664
|
});
|
|
2501
2665
|
}
|
|
2502
|
-
|
|
2503
|
-
function
|
|
2666
|
+
wo.displayName = "Typo.H2";
|
|
2667
|
+
function To({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2504
2668
|
return /* @__PURE__ */ _("h3", {
|
|
2505
2669
|
...r,
|
|
2506
2670
|
"data-imf-ui-component": "Typo.H3",
|
|
@@ -2511,8 +2675,8 @@ function Za({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2511
2675
|
children: r.children
|
|
2512
2676
|
});
|
|
2513
2677
|
}
|
|
2514
|
-
|
|
2515
|
-
function
|
|
2678
|
+
To.displayName = "Typo.H3";
|
|
2679
|
+
function Eo({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2516
2680
|
return /* @__PURE__ */ _("h4", {
|
|
2517
2681
|
...r,
|
|
2518
2682
|
"data-imf-ui-component": "Typo.H4",
|
|
@@ -2523,8 +2687,8 @@ function Qa({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2523
2687
|
children: r.children
|
|
2524
2688
|
});
|
|
2525
2689
|
}
|
|
2526
|
-
|
|
2527
|
-
function
|
|
2690
|
+
Eo.displayName = "Typo.H4";
|
|
2691
|
+
function Do({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2528
2692
|
return /* @__PURE__ */ _("p", {
|
|
2529
2693
|
...r,
|
|
2530
2694
|
"data-imf-ui-component": "Typo.P",
|
|
@@ -2535,8 +2699,8 @@ function $a({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2535
2699
|
children: r.children
|
|
2536
2700
|
});
|
|
2537
2701
|
}
|
|
2538
|
-
|
|
2539
|
-
function
|
|
2702
|
+
Do.displayName = "Typo.P";
|
|
2703
|
+
function Oo({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2540
2704
|
return /* @__PURE__ */ _("p", {
|
|
2541
2705
|
...r,
|
|
2542
2706
|
"data-imf-ui-component": "Typo.Lead",
|
|
@@ -2547,8 +2711,8 @@ function eo({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2547
2711
|
children: r.children
|
|
2548
2712
|
});
|
|
2549
2713
|
}
|
|
2550
|
-
|
|
2551
|
-
function
|
|
2714
|
+
Oo.displayName = "Typo.Lead";
|
|
2715
|
+
function ko({ variant: e = "main", className: t, ...n }) {
|
|
2552
2716
|
return /* @__PURE__ */ _("p", {
|
|
2553
2717
|
...n,
|
|
2554
2718
|
"data-imf-ui-component": "Typo.Detail",
|
|
@@ -2559,8 +2723,8 @@ function to({ variant: e = "main", className: t, ...n }) {
|
|
|
2559
2723
|
children: n.children
|
|
2560
2724
|
});
|
|
2561
2725
|
}
|
|
2562
|
-
|
|
2563
|
-
function
|
|
2726
|
+
ko.displayName = "Typo.Detail";
|
|
2727
|
+
function Ao({ variant: e = "minor", className: t, ...n }) {
|
|
2564
2728
|
return /* @__PURE__ */ _("small", {
|
|
2565
2729
|
...n,
|
|
2566
2730
|
"data-imf-ui-component": "Typo.Small",
|
|
@@ -2571,8 +2735,8 @@ function no({ variant: e = "minor", className: t, ...n }) {
|
|
|
2571
2735
|
children: n.children
|
|
2572
2736
|
});
|
|
2573
2737
|
}
|
|
2574
|
-
|
|
2575
|
-
function
|
|
2738
|
+
Ao.displayName = "Typo.Small";
|
|
2739
|
+
function jo({ variant: e = "support", spacing: t = "default", className: n, ...r }) {
|
|
2576
2740
|
return /* @__PURE__ */ _("blockquote", {
|
|
2577
2741
|
...r,
|
|
2578
2742
|
"data-imf-ui-component": "Typo.Blockquote",
|
|
@@ -2583,12 +2747,12 @@ function ro({ variant: e = "support", spacing: t = "default", className: n, ...r
|
|
|
2583
2747
|
children: r.children
|
|
2584
2748
|
});
|
|
2585
2749
|
}
|
|
2586
|
-
|
|
2587
|
-
function
|
|
2750
|
+
jo.displayName = "Typo.Blockquote";
|
|
2751
|
+
function Mo(e) {
|
|
2588
2752
|
return /* @__PURE__ */ _(se, { ...e });
|
|
2589
2753
|
}
|
|
2590
|
-
|
|
2591
|
-
function
|
|
2754
|
+
Mo.displayName = "Typo.InlineCode";
|
|
2755
|
+
function No({ variant: e = "oncolor", className: t, ...n }) {
|
|
2592
2756
|
return /* @__PURE__ */ _("mark", {
|
|
2593
2757
|
...n,
|
|
2594
2758
|
"data-imf-ui-component": "Typo.Highlight",
|
|
@@ -2599,8 +2763,8 @@ function ao({ variant: e = "oncolor", className: t, ...n }) {
|
|
|
2599
2763
|
children: n.children
|
|
2600
2764
|
});
|
|
2601
2765
|
}
|
|
2602
|
-
|
|
2603
|
-
function
|
|
2766
|
+
No.displayName = "Typo.Highlight";
|
|
2767
|
+
function Po({ variant: e = "main", kind: t = "external", className: n, ...r }) {
|
|
2604
2768
|
let i = t === "external" ? p : c;
|
|
2605
2769
|
return /* @__PURE__ */ v("a", {
|
|
2606
2770
|
...t === "external" ? {
|
|
@@ -2621,8 +2785,8 @@ function oo({ variant: e = "main", kind: t = "external", className: n, ...r }) {
|
|
|
2621
2785
|
})]
|
|
2622
2786
|
});
|
|
2623
2787
|
}
|
|
2624
|
-
|
|
2625
|
-
function
|
|
2788
|
+
Po.displayName = "Typo.Link";
|
|
2789
|
+
function Fo({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2626
2790
|
return /* @__PURE__ */ _("ol", {
|
|
2627
2791
|
...r,
|
|
2628
2792
|
"data-imf-ui-component": "Typo.OrderedList",
|
|
@@ -2633,8 +2797,8 @@ function so({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2633
2797
|
children: r.children
|
|
2634
2798
|
});
|
|
2635
2799
|
}
|
|
2636
|
-
|
|
2637
|
-
function
|
|
2800
|
+
Fo.displayName = "Typo.OrderedList";
|
|
2801
|
+
function Io({ variant: e = "main", spacing: t = "default", className: n, ...r }) {
|
|
2638
2802
|
return /* @__PURE__ */ _("ul", {
|
|
2639
2803
|
...r,
|
|
2640
2804
|
"data-imf-ui-component": "Typo.UnorderedList",
|
|
@@ -2645,30 +2809,28 @@ function co({ variant: e = "main", spacing: t = "default", className: n, ...r })
|
|
|
2645
2809
|
children: r.children
|
|
2646
2810
|
});
|
|
2647
2811
|
}
|
|
2648
|
-
|
|
2812
|
+
Io.displayName = "Typo.UnorderedList";
|
|
2649
2813
|
//#endregion
|
|
2650
2814
|
//#region src/components/typo/typo.meta.ts
|
|
2651
|
-
var
|
|
2815
|
+
var Lo = {
|
|
2652
2816
|
name: "Typo",
|
|
2653
2817
|
category: t.display,
|
|
2654
2818
|
status: "stable",
|
|
2655
2819
|
namespace: !0,
|
|
2656
2820
|
description: "Typographic primitives — a family of heading (H1–H4), paragraph (P, Lead), and inline accent (InlineCode, Highlight, Link) components. Most support a color role — main, support, or minor — plus the standard HTML attributes for its element; InlineCode is a fixed neutral chip (it renders Code.Inline).",
|
|
2657
2821
|
origin: "native"
|
|
2658
|
-
},
|
|
2822
|
+
}, Ro = xe({
|
|
2659
2823
|
color: "currentColor",
|
|
2660
2824
|
width: "1.5em",
|
|
2661
2825
|
height: "1.5em",
|
|
2662
2826
|
strokeWidth: 1.5
|
|
2663
2827
|
});
|
|
2664
|
-
|
|
2665
|
-
//#region src/icons/icon-config-provider.tsx
|
|
2666
|
-
function fo({ children: e, value: t }) {
|
|
2828
|
+
function zo({ children: e, value: t }) {
|
|
2667
2829
|
let n = {
|
|
2668
|
-
...
|
|
2830
|
+
...Se(Ro),
|
|
2669
2831
|
...t
|
|
2670
2832
|
};
|
|
2671
|
-
return /* @__PURE__ */ _(
|
|
2833
|
+
return /* @__PURE__ */ _(Ro, {
|
|
2672
2834
|
value: n,
|
|
2673
2835
|
children: /* @__PURE__ */ _(be, {
|
|
2674
2836
|
iconProps: n,
|
|
@@ -2676,13 +2838,14 @@ function fo({ children: e, value: t }) {
|
|
|
2676
2838
|
})
|
|
2677
2839
|
});
|
|
2678
2840
|
}
|
|
2841
|
+
zo.displayName = "IconConfig.Provider";
|
|
2679
2842
|
//#endregion
|
|
2680
2843
|
//#region src/provider/web-ui-provider.tsx
|
|
2681
|
-
function
|
|
2682
|
-
return /* @__PURE__ */ _(
|
|
2844
|
+
function Bo({ children: e, icons: t }) {
|
|
2845
|
+
return /* @__PURE__ */ _(zo, {
|
|
2683
2846
|
value: t,
|
|
2684
|
-
children: e
|
|
2847
|
+
children: /* @__PURE__ */ v(Ka, { children: [e, " "] })
|
|
2685
2848
|
});
|
|
2686
2849
|
}
|
|
2687
2850
|
//#endregion
|
|
2688
|
-
export {
|
|
2851
|
+
export { cn as AppShell, je as Button, Rr as Callout, wn as Card, Ve as Checkbox, qr as Chip, Fe as ChipLink, ae as Code, Yr as Collapsible, t as ComponentCategories, ze as CopyButton, Mn as Drawer, qe as Field, lt as Fieldset, m as Icon, ci as ImFusionLogo, gt as Input, ii as Logo, ea as NavigationMenu, sr as Popover, fe as Row, vt as Select, Fr as Separator, le as Slider, da as Spinner, ue as Stack, pe as Switch, pa as Table, me as Tabs, Na as Toast, de as Toggle, he as ToggleGroup, io as Tooltip, So as Typo, Bo as WebUIProvider, Cn as appShellMeta, Me as buttonMeta, Kr as calloutMeta, jn as cardMeta, Ke as checkboxMeta, Ie as chipLinkMeta, Jr as chipMeta, ce as codeMeta, ni as collapsibleMeta, U as config, Be as copyButtonMeta, _e as cva, ve as cx, or as drawerMeta, st as fieldMeta, mt as fieldsetMeta, re as iconMeta, _t as inputMeta, ai as logoMeta, ta as navigationMenuMeta, Mr as popoverMeta, Nr as rowMeta, nn as selectMeta, Ir as separatorMeta, rn as sliderMeta, fa as spinnerMeta, Lr as stackMeta, an as switchMeta, ja as tableMeta, Ma as tabsMeta, ro as toastMeta, sn as toggleGroupMeta, on as toggleMeta, xo as tooltipMeta, Lo as typoMeta, oe as useClipboard, Xi as useColorScheme, Qi as useMediaQuery };
|