@imfusion/web-ui 0.6.4-dev.29.g527b8ff6 → 0.6.4-dev.31.gcef47041
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 +14 -15
- package/dist/{code-Ce8uiPsv.js → code-D2lwxHgd.js} +15 -15
- package/dist/components/app-shell/app-shell.d.ts +7 -11
- package/dist/components/button/button.d.ts +3 -10
- package/dist/components/callout/callout.d.ts +4 -8
- package/dist/components/card/card.d.ts +5 -5
- package/dist/components/checkbox/checkbox.d.ts +2 -38
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/code/code.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +3 -33
- package/dist/components/copy-button/copy-button.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +16 -97
- package/dist/components/field/field.d.ts +7 -67
- package/dist/components/fieldset/fieldset.d.ts +2 -15
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/input/input.d.ts +2 -8
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/navigation-menu/subs/flyout-link.d.ts +2 -14
- package/dist/components/navigation-menu/subs/link.d.ts +6 -23
- package/dist/components/navigation-menu/subs/overlay.d.ts +6 -51
- package/dist/components/navigation-menu/subs/shared.d.ts +4 -14
- package/dist/components/navigation-menu/subs/structure.d.ts +7 -29
- package/dist/components/navigation-menu/subs/trigger.d.ts +6 -13
- package/dist/components/popover/popover.d.ts +22 -94
- package/dist/components/row/row.d.ts +1 -1
- package/dist/components/select/select.d.ts +22 -184
- package/dist/components/separator/separator.d.ts +5 -4
- package/dist/components/slider/slider.d.ts +7 -77
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +2 -31
- package/dist/components/table/table.d.ts +7 -13
- package/dist/components/tabs/tabs.d.ts +13 -43
- package/dist/components/toast/toast.d.ts +15 -100
- package/dist/components/toggle/toggle.d.ts +3 -20
- package/dist/components/toggle-group/toggle-group.d.ts +3 -19
- package/dist/components/tooltip/tooltip.d.ts +20 -74
- package/dist/components/typo/typo.d.ts +14 -21
- package/dist/{icons-Cy1HAosO.js → icons-CaGCCwG-.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/index.js +1270 -1286
- package/dist/integrations/code-highlight.js +2 -2
- package/dist/integrations/image-display-options.js +54 -54
- package/dist/{tabs-DIe1Utiy.js → tabs-By5ir2pt.js} +162 -159
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/resolve-state-props.d.ts +4 -0
- package/package.json +2 -2
- package/src/docgen/doc.gen.json +2445 -552
- package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +10 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +1 -1
- /package/dist/{meta-CySnRuVp.js → meta-j-7HGrWv.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Button as
|
|
7
|
-
import { cva as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { IconoirProvider as
|
|
10
|
-
import { createContext as
|
|
11
|
-
import { Checkbox as
|
|
2
|
+
import { C as t, S as n, c as r, d as i, l as a, m as o, s, u as c } from "./tabs-By5ir2pt.js";
|
|
3
|
+
import { t as l } from "./meta-j-7HGrWv.js";
|
|
4
|
+
import { At as u, GT as d, Kv as ee, Ma as te, Na as ne, Pm as re, Qt as f, Qv as ie, RA as ae, Wk as oe, Xo as se, aE as ce, hn as le, iv as ue, r as p, sn as de, t as fe, zk as pe } from "./icons-CaGCCwG-.js";
|
|
5
|
+
import { a as me, o as he, r as ge, t as _e } from "./code-D2lwxHgd.js";
|
|
6
|
+
import { Button as ve } from "@base-ui/react/button";
|
|
7
|
+
import { cva as ye, cva as m, cx as be, cx as h } from "class-variance-authority";
|
|
8
|
+
import { Fragment as xe, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
+
import { IconoirProvider as Se } from "iconoir-react";
|
|
10
|
+
import { createContext as Ce, useContext as we, useEffect as Te, useRef as Ee, useState as v } from "react";
|
|
11
|
+
import { Checkbox as De } from "@base-ui/react/checkbox";
|
|
12
12
|
import { Field as y } from "@base-ui/react/field";
|
|
13
|
-
import { Fieldset as
|
|
14
|
-
import { Input as
|
|
13
|
+
import { Fieldset as Oe } from "@base-ui/react/fieldset";
|
|
14
|
+
import { Input as ke } from "@base-ui/react/input";
|
|
15
15
|
import { Select as b } from "@base-ui/react/select";
|
|
16
16
|
import { Drawer as x } from "@base-ui/react/drawer";
|
|
17
17
|
import { Popover as S } from "@base-ui/react/popover";
|
|
18
|
-
import { Separator as
|
|
18
|
+
import { Separator as Ae } from "@base-ui/react/separator";
|
|
19
19
|
import { mergeProps as C } from "@base-ui/react/merge-props";
|
|
20
20
|
import { useRender as w } from "@base-ui/react/use-render";
|
|
21
|
-
import { Collapsible as
|
|
21
|
+
import { Collapsible as je } from "@base-ui/react/collapsible";
|
|
22
22
|
import { NavigationMenu as T } from "@base-ui/react/navigation-menu";
|
|
23
23
|
import { Toast as E } from "@base-ui/react/toast";
|
|
24
24
|
import { Tooltip as D } from "@base-ui/react/tooltip";
|
|
@@ -43,7 +43,7 @@ var O = {
|
|
|
43
43
|
variantPositive: "imf-ui-button-module-variantPositive",
|
|
44
44
|
variantPrimary: "imf-ui-button-module-variantPrimary",
|
|
45
45
|
variantSecondary: "imf-ui-button-module-variantSecondary"
|
|
46
|
-
},
|
|
46
|
+
}, Me = m(O.root, { variants: {
|
|
47
47
|
variant: {
|
|
48
48
|
primary: O.variantPrimary,
|
|
49
49
|
secondary: O.variantSecondary,
|
|
@@ -74,29 +74,29 @@ var O = {
|
|
|
74
74
|
oncolor: O.contextOncolor
|
|
75
75
|
}
|
|
76
76
|
} });
|
|
77
|
-
function
|
|
78
|
-
return /* @__PURE__ */
|
|
77
|
+
function Ne({ variant: e = "primary", size: n = "md", context: r = "default", chamfer: i = n === "hero", radius: a = "none", startIcon: o, endIcon: s, children: c, ...l }) {
|
|
78
|
+
return /* @__PURE__ */ _(ve, {
|
|
79
79
|
...l,
|
|
80
80
|
"data-imf-ui-component": "Button",
|
|
81
|
-
className: (o) =>
|
|
81
|
+
className: (o) => Me({
|
|
82
82
|
variant: e,
|
|
83
|
-
size:
|
|
84
|
-
chamfer:
|
|
85
|
-
radius:
|
|
86
|
-
context:
|
|
87
|
-
className:
|
|
83
|
+
size: n,
|
|
84
|
+
chamfer: i,
|
|
85
|
+
radius: a,
|
|
86
|
+
context: r,
|
|
87
|
+
className: t(l.className, o)
|
|
88
88
|
}),
|
|
89
89
|
children: [
|
|
90
|
-
o != null && /* @__PURE__ */
|
|
90
|
+
o != null && /* @__PURE__ */ g("span", {
|
|
91
91
|
className: O.startIcon,
|
|
92
92
|
"aria-hidden": !0,
|
|
93
93
|
children: o
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ g("span", {
|
|
96
96
|
className: O.label,
|
|
97
97
|
children: c
|
|
98
98
|
}),
|
|
99
|
-
s != null && /* @__PURE__ */
|
|
99
|
+
s != null && /* @__PURE__ */ g("span", {
|
|
100
100
|
className: O.endIcon,
|
|
101
101
|
"aria-hidden": !0,
|
|
102
102
|
children: s
|
|
@@ -106,9 +106,9 @@ function Me({ variant: e = "primary", size: t = "md", context: n = "default", ch
|
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/components/button/button.meta.ts
|
|
109
|
-
var
|
|
109
|
+
var Pe = {
|
|
110
110
|
name: "Button",
|
|
111
|
-
category:
|
|
111
|
+
category: l.buttons,
|
|
112
112
|
status: "stable",
|
|
113
113
|
description: "Triggers an action such as submit, confirm, cancel, navigate, or delete. Also called a CTA or action button; variants and sizes communicate its importance.",
|
|
114
114
|
origin: "adapted",
|
|
@@ -136,7 +136,7 @@ var Ne = {
|
|
|
136
136
|
variantPrimary: "imf-ui-chip-module-variantPrimary",
|
|
137
137
|
variantSupport: "imf-ui-chip-module-variantSupport",
|
|
138
138
|
variantWarning: "imf-ui-chip-module-variantWarning"
|
|
139
|
-
},
|
|
139
|
+
}, Fe = m(k.root, { variants: {
|
|
140
140
|
variant: {
|
|
141
141
|
main: k.variantMain,
|
|
142
142
|
support: k.variantSupport,
|
|
@@ -160,15 +160,15 @@ var Ne = {
|
|
|
160
160
|
false: null,
|
|
161
161
|
true: k.inline
|
|
162
162
|
}
|
|
163
|
-
} }),
|
|
163
|
+
} }), Ie = {
|
|
164
164
|
icon: "imf-ui-chip-link-module-icon",
|
|
165
165
|
root: "imf-ui-chip-link-module-root"
|
|
166
166
|
};
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region src/components/chip-link/chip-link.tsx
|
|
169
|
-
function
|
|
170
|
-
let s = r === "external" ?
|
|
171
|
-
return /* @__PURE__ */
|
|
169
|
+
function Le({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kind: r = "external", className: i, children: a, ...o }) {
|
|
170
|
+
let s = r === "external" ? le : f;
|
|
171
|
+
return /* @__PURE__ */ _("a", {
|
|
172
172
|
...r === "external" ? {
|
|
173
173
|
target: "_blank",
|
|
174
174
|
rel: "noreferrer"
|
|
@@ -176,16 +176,16 @@ function Ie({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
176
176
|
...o,
|
|
177
177
|
"data-imf-ui-component": "ChipLink",
|
|
178
178
|
"data-kind": r,
|
|
179
|
-
className:
|
|
179
|
+
className: Fe({
|
|
180
180
|
variant: e,
|
|
181
181
|
appearance: t,
|
|
182
182
|
inline: n,
|
|
183
|
-
className:
|
|
183
|
+
className: h(Ie.root, i)
|
|
184
184
|
}),
|
|
185
|
-
children: [a, /* @__PURE__ */
|
|
186
|
-
className:
|
|
185
|
+
children: [a, /* @__PURE__ */ g("span", {
|
|
186
|
+
className: Ie.icon,
|
|
187
187
|
"aria-hidden": !0,
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ g(p, {
|
|
189
189
|
glyph: s,
|
|
190
190
|
size: 12
|
|
191
191
|
})
|
|
@@ -194,89 +194,88 @@ function Ie({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
194
194
|
}
|
|
195
195
|
//#endregion
|
|
196
196
|
//#region src/components/chip-link/chip-link.meta.ts
|
|
197
|
-
var
|
|
197
|
+
var Re = {
|
|
198
198
|
name: "ChipLink",
|
|
199
|
-
category:
|
|
199
|
+
category: l.buttons,
|
|
200
200
|
status: "stable",
|
|
201
201
|
description: "Link styled as a compact chip, with a directional icon for external references or in-app navigation. Also called a link chip or link badge.",
|
|
202
202
|
origin: "native"
|
|
203
|
-
},
|
|
204
|
-
function
|
|
205
|
-
let { copied:
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
...
|
|
208
|
-
variant:
|
|
209
|
-
size:
|
|
210
|
-
"data-copied":
|
|
211
|
-
"aria-label":
|
|
212
|
-
onClick: () =>
|
|
213
|
-
className: (e) =>
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
-
glyph:
|
|
203
|
+
}, ze = { root: "imf-ui-copy-button-module-root" }, Be = 1500;
|
|
204
|
+
function Ve({ value: e, label: n = "Copy", copiedLabel: r = "Copied", variant: i = "secondary", size: a = "sm", ...o }) {
|
|
205
|
+
let { copied: s, copy: c } = he({ timeout: Be }), l = s ? te : se;
|
|
206
|
+
return /* @__PURE__ */ g(Ne, {
|
|
207
|
+
...o,
|
|
208
|
+
variant: i,
|
|
209
|
+
size: a,
|
|
210
|
+
"data-copied": s || void 0,
|
|
211
|
+
"aria-label": s ? r : n,
|
|
212
|
+
onClick: () => c(e),
|
|
213
|
+
className: (e) => h(ze.root, t(o.className, e)),
|
|
214
|
+
children: /* @__PURE__ */ g(p, {
|
|
215
|
+
glyph: l,
|
|
216
216
|
size: 15,
|
|
217
217
|
strokeWidth: 2,
|
|
218
218
|
"aria-hidden": !0
|
|
219
219
|
})
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
Ve.displayName = "CopyButton";
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/components/copy-button/copy-button.meta.ts
|
|
225
|
-
var
|
|
225
|
+
var He = {
|
|
226
226
|
name: "CopyButton",
|
|
227
|
-
category:
|
|
227
|
+
category: l.buttons,
|
|
228
228
|
status: "stable",
|
|
229
229
|
description: "Copies a value to the clipboard and briefly shows confirmation. Also called a copy-to-clipboard button; commonly used with Code.Block.",
|
|
230
230
|
origin: "native",
|
|
231
231
|
internalDependencies: ["Button"]
|
|
232
|
-
},
|
|
232
|
+
}, Ue = {
|
|
233
233
|
iconCheck: "imf-ui-checkbox-module-iconCheck",
|
|
234
234
|
iconIndeterminate: "imf-ui-checkbox-module-iconIndeterminate",
|
|
235
235
|
indicator: "imf-ui-checkbox-module-indicator",
|
|
236
236
|
root: "imf-ui-checkbox-module-root"
|
|
237
|
-
},
|
|
238
|
-
Indicator: () =>
|
|
239
|
-
Root: () =>
|
|
240
|
-
}),
|
|
241
|
-
function
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
...
|
|
237
|
+
}, We = /* @__PURE__ */ e({
|
|
238
|
+
Indicator: () => Je,
|
|
239
|
+
Root: () => qe
|
|
240
|
+
}), Ge = m(Ue.root), Ke = m(Ue.indicator);
|
|
241
|
+
function qe(e) {
|
|
242
|
+
return /* @__PURE__ */ g(De.Root, {
|
|
243
|
+
...e,
|
|
244
244
|
"data-imf-ui-component": "Checkbox.Root",
|
|
245
|
-
className: (
|
|
246
|
-
children: t.children
|
|
245
|
+
className: (n) => Ge({ className: t(e.className, n) })
|
|
247
246
|
});
|
|
248
247
|
}
|
|
249
|
-
|
|
250
|
-
function
|
|
251
|
-
return /* @__PURE__ */
|
|
248
|
+
qe.displayName = "Checkbox.Root";
|
|
249
|
+
function Je({ children: e, ...n }) {
|
|
250
|
+
return /* @__PURE__ */ g(De.Indicator, {
|
|
252
251
|
...n,
|
|
253
252
|
"data-imf-ui-component": "Checkbox.Indicator",
|
|
254
|
-
className: (
|
|
255
|
-
children:
|
|
256
|
-
className:
|
|
253
|
+
className: (e) => Ke({ className: t(n.className, e) }),
|
|
254
|
+
children: e ?? /* @__PURE__ */ _(xe, { children: [/* @__PURE__ */ g("span", {
|
|
255
|
+
className: Ue.iconCheck,
|
|
257
256
|
"aria-hidden": !0,
|
|
258
|
-
children: /* @__PURE__ */
|
|
259
|
-
glyph:
|
|
257
|
+
children: /* @__PURE__ */ g(p, {
|
|
258
|
+
glyph: te,
|
|
260
259
|
size: 12,
|
|
261
260
|
strokeWidth: 3
|
|
262
261
|
})
|
|
263
|
-
}), /* @__PURE__ */
|
|
264
|
-
className:
|
|
262
|
+
}), /* @__PURE__ */ g("span", {
|
|
263
|
+
className: Ue.iconIndeterminate,
|
|
265
264
|
"aria-hidden": !0,
|
|
266
|
-
children: /* @__PURE__ */
|
|
267
|
-
glyph:
|
|
265
|
+
children: /* @__PURE__ */ g(p, {
|
|
266
|
+
glyph: ue,
|
|
268
267
|
size: 12,
|
|
269
268
|
strokeWidth: 3
|
|
270
269
|
})
|
|
271
270
|
})] })
|
|
272
271
|
});
|
|
273
272
|
}
|
|
274
|
-
|
|
273
|
+
Je.displayName = "Checkbox.Indicator";
|
|
275
274
|
//#endregion
|
|
276
275
|
//#region src/components/checkbox/checkbox.meta.ts
|
|
277
|
-
var
|
|
276
|
+
var Ye = {
|
|
278
277
|
name: "Checkbox",
|
|
279
|
-
category:
|
|
278
|
+
category: l.inputs,
|
|
280
279
|
status: "stable",
|
|
281
280
|
description: "Binary form control for submitted choices such as terms, table rows, or list items. Also called a check box; it supports an indeterminate parent state.",
|
|
282
281
|
origin: "adapted",
|
|
@@ -286,79 +285,79 @@ var qe = {
|
|
|
286
285
|
docLink: "https://base-ui.com/react/components/checkbox",
|
|
287
286
|
llmDocLink: "https://base-ui.com/react/components/checkbox.md"
|
|
288
287
|
}
|
|
289
|
-
},
|
|
288
|
+
}, A = {
|
|
290
289
|
control: "imf-ui-field-module-control",
|
|
291
290
|
description: "imf-ui-field-module-description",
|
|
292
291
|
error: "imf-ui-field-module-error",
|
|
293
292
|
item: "imf-ui-field-module-item",
|
|
294
293
|
label: "imf-ui-field-module-label",
|
|
295
294
|
root: "imf-ui-field-module-root"
|
|
296
|
-
},
|
|
297
|
-
Control: () =>
|
|
298
|
-
Description: () =>
|
|
299
|
-
Error: () =>
|
|
300
|
-
Item: () =>
|
|
301
|
-
Label: () =>
|
|
302
|
-
Root: () =>
|
|
303
|
-
Validity: () =>
|
|
304
|
-
}),
|
|
305
|
-
function
|
|
306
|
-
return /* @__PURE__ */
|
|
307
|
-
...
|
|
295
|
+
}, Xe = /* @__PURE__ */ e({
|
|
296
|
+
Control: () => st,
|
|
297
|
+
Description: () => ot,
|
|
298
|
+
Error: () => ct,
|
|
299
|
+
Item: () => it,
|
|
300
|
+
Label: () => at,
|
|
301
|
+
Root: () => rt,
|
|
302
|
+
Validity: () => lt
|
|
303
|
+
}), Ze = m(A.root), Qe = m(A.item), $e = m(A.label), et = m(A.description), tt = m(A.control), nt = m(A.error);
|
|
304
|
+
function rt(e) {
|
|
305
|
+
return /* @__PURE__ */ g(y.Root, {
|
|
306
|
+
...e,
|
|
308
307
|
"data-imf-ui-component": "Field.Root",
|
|
309
|
-
className: (
|
|
308
|
+
className: (n) => Ze({ className: t(e.className, n) })
|
|
310
309
|
});
|
|
311
310
|
}
|
|
312
|
-
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */
|
|
315
|
-
...
|
|
311
|
+
rt.displayName = "Field.Root";
|
|
312
|
+
function it(e) {
|
|
313
|
+
return /* @__PURE__ */ g(y.Item, {
|
|
314
|
+
...e,
|
|
316
315
|
"data-imf-ui-component": "Field.Item",
|
|
317
|
-
className: (
|
|
316
|
+
className: (n) => Qe({ className: t(e.className, n) })
|
|
318
317
|
});
|
|
319
318
|
}
|
|
320
|
-
|
|
321
|
-
function
|
|
322
|
-
return /* @__PURE__ */
|
|
323
|
-
...
|
|
319
|
+
it.displayName = "Field.Item";
|
|
320
|
+
function at(e) {
|
|
321
|
+
return /* @__PURE__ */ g(y.Label, {
|
|
322
|
+
...e,
|
|
324
323
|
"data-imf-ui-component": "Field.Label",
|
|
325
|
-
className: (
|
|
324
|
+
className: (n) => $e({ className: t(e.className, n) })
|
|
326
325
|
});
|
|
327
326
|
}
|
|
328
|
-
|
|
329
|
-
function
|
|
330
|
-
return /* @__PURE__ */
|
|
331
|
-
...
|
|
327
|
+
at.displayName = "Field.Label";
|
|
328
|
+
function ot(e) {
|
|
329
|
+
return /* @__PURE__ */ g(y.Description, {
|
|
330
|
+
...e,
|
|
332
331
|
"data-imf-ui-component": "Field.Description",
|
|
333
|
-
className: (
|
|
332
|
+
className: (n) => et({ className: t(e.className, n) })
|
|
334
333
|
});
|
|
335
334
|
}
|
|
336
|
-
|
|
337
|
-
function
|
|
338
|
-
return /* @__PURE__ */
|
|
339
|
-
...
|
|
335
|
+
ot.displayName = "Field.Description";
|
|
336
|
+
function st(e) {
|
|
337
|
+
return /* @__PURE__ */ g(y.Control, {
|
|
338
|
+
...e,
|
|
340
339
|
"data-imf-ui-component": "Field.Control",
|
|
341
|
-
className: (
|
|
340
|
+
className: (n) => tt({ className: t(e.className, n) })
|
|
342
341
|
});
|
|
343
342
|
}
|
|
344
|
-
|
|
345
|
-
function
|
|
346
|
-
return /* @__PURE__ */
|
|
347
|
-
...
|
|
343
|
+
st.displayName = "Field.Control";
|
|
344
|
+
function ct(e) {
|
|
345
|
+
return /* @__PURE__ */ g(y.Error, {
|
|
346
|
+
...e,
|
|
348
347
|
"data-imf-ui-component": "Field.Error",
|
|
349
|
-
className: (
|
|
348
|
+
className: (n) => nt({ className: t(e.className, n) })
|
|
350
349
|
});
|
|
351
350
|
}
|
|
352
|
-
|
|
353
|
-
function
|
|
354
|
-
return /* @__PURE__ */
|
|
351
|
+
ct.displayName = "Field.Error";
|
|
352
|
+
function lt({ children: e }) {
|
|
353
|
+
return /* @__PURE__ */ g(y.Validity, { children: e });
|
|
355
354
|
}
|
|
356
|
-
|
|
355
|
+
lt.displayName = "Field.Validity";
|
|
357
356
|
//#endregion
|
|
358
357
|
//#region src/components/field/field.meta.ts
|
|
359
|
-
var
|
|
358
|
+
var ut = {
|
|
360
359
|
name: "Field",
|
|
361
|
-
category:
|
|
360
|
+
category: l.inputs,
|
|
362
361
|
status: "stable",
|
|
363
362
|
description: "Accessible field composition for a label, control, supporting text, and validation message. Use it with Input, Checkbox, Select, and other form controls.",
|
|
364
363
|
origin: "adapted",
|
|
@@ -368,34 +367,34 @@ var ct = {
|
|
|
368
367
|
docLink: "https://base-ui.com/react/components/field",
|
|
369
368
|
llmDocLink: "https://base-ui.com/react/components/field.md"
|
|
370
369
|
}
|
|
371
|
-
},
|
|
370
|
+
}, dt = {
|
|
372
371
|
legend: "imf-ui-fieldset-module-legend",
|
|
373
372
|
root: "imf-ui-fieldset-module-root"
|
|
374
|
-
},
|
|
375
|
-
Legend: () =>
|
|
376
|
-
Root: () =>
|
|
377
|
-
}),
|
|
378
|
-
function
|
|
379
|
-
return /* @__PURE__ */
|
|
380
|
-
...
|
|
373
|
+
}, ft = /* @__PURE__ */ e({
|
|
374
|
+
Legend: () => gt,
|
|
375
|
+
Root: () => ht
|
|
376
|
+
}), pt = m(dt.root), mt = m(dt.legend);
|
|
377
|
+
function ht(e) {
|
|
378
|
+
return /* @__PURE__ */ g(Oe.Root, {
|
|
379
|
+
...e,
|
|
381
380
|
"data-imf-ui-component": "Fieldset.Root",
|
|
382
|
-
className: (
|
|
381
|
+
className: (n) => pt({ className: t(e.className, n) })
|
|
383
382
|
});
|
|
384
383
|
}
|
|
385
|
-
|
|
386
|
-
function
|
|
387
|
-
return /* @__PURE__ */
|
|
388
|
-
...
|
|
384
|
+
ht.displayName = "Fieldset.Root";
|
|
385
|
+
function gt(e) {
|
|
386
|
+
return /* @__PURE__ */ g(Oe.Legend, {
|
|
387
|
+
...e,
|
|
389
388
|
"data-imf-ui-component": "Fieldset.Legend",
|
|
390
|
-
className: (
|
|
389
|
+
className: (n) => mt({ className: t(e.className, n) })
|
|
391
390
|
});
|
|
392
391
|
}
|
|
393
|
-
|
|
392
|
+
gt.displayName = "Fieldset.Legend";
|
|
394
393
|
//#endregion
|
|
395
394
|
//#region src/components/fieldset/fieldset.meta.ts
|
|
396
|
-
var
|
|
395
|
+
var _t = {
|
|
397
396
|
name: "Fieldset",
|
|
398
|
-
category:
|
|
397
|
+
category: l.inputs,
|
|
399
398
|
status: "stable",
|
|
400
399
|
description: "Semantic group for related form controls with a shared legend. Also called a form group; it can propagate a disabled state to the group.",
|
|
401
400
|
origin: "adapted",
|
|
@@ -405,7 +404,7 @@ var ht = {
|
|
|
405
404
|
docLink: "https://base-ui.com/react/components/fieldset",
|
|
406
405
|
llmDocLink: "https://base-ui.com/react/components/fieldset.md"
|
|
407
406
|
}
|
|
408
|
-
},
|
|
407
|
+
}, j = {
|
|
409
408
|
clearButton: "imf-ui-input-module-clearButton",
|
|
410
409
|
root: "imf-ui-input-module-root",
|
|
411
410
|
searchRoot: "imf-ui-input-module-searchRoot",
|
|
@@ -415,57 +414,57 @@ var ht = {
|
|
|
415
414
|
variantFilled: "imf-ui-input-module-variantFilled",
|
|
416
415
|
variantGhost: "imf-ui-input-module-variantGhost",
|
|
417
416
|
variantOutline: "imf-ui-input-module-variantOutline"
|
|
418
|
-
},
|
|
417
|
+
}, vt = m(j.root, { variants: {
|
|
419
418
|
variant: {
|
|
420
|
-
outline:
|
|
421
|
-
filled:
|
|
422
|
-
ghost:
|
|
419
|
+
outline: j.variantOutline,
|
|
420
|
+
filled: j.variantFilled,
|
|
421
|
+
ghost: j.variantGhost
|
|
423
422
|
},
|
|
424
423
|
size: {
|
|
425
|
-
sm:
|
|
426
|
-
md:
|
|
427
|
-
lg:
|
|
424
|
+
sm: j.sizeSm,
|
|
425
|
+
md: j.sizeMd,
|
|
426
|
+
lg: j.sizeLg
|
|
428
427
|
}
|
|
429
428
|
} });
|
|
430
|
-
function
|
|
431
|
-
let d =
|
|
432
|
-
d &&
|
|
433
|
-
},
|
|
434
|
-
...
|
|
435
|
-
type:
|
|
436
|
-
value: d ?
|
|
437
|
-
defaultValue: d ? void 0 :
|
|
438
|
-
disabled:
|
|
439
|
-
onValueChange: d ?
|
|
429
|
+
function yt({ variant: e = "outline", size: n = "md", type: r, value: i, defaultValue: a, onValueChange: o, onClear: s, disabled: c, className: l, ...u }) {
|
|
430
|
+
let d = r === "search", [ee, te] = v(a ?? ""), ne = i ?? ee, re = ne != null && String(ne).length > 0, f = (e, t) => {
|
|
431
|
+
d && i === void 0 && te(e), o?.(e, t);
|
|
432
|
+
}, ie = /* @__PURE__ */ g(ke, {
|
|
433
|
+
...u,
|
|
434
|
+
type: r,
|
|
435
|
+
value: d ? ne : i,
|
|
436
|
+
defaultValue: d ? void 0 : a,
|
|
437
|
+
disabled: c,
|
|
438
|
+
onValueChange: d ? f : o,
|
|
440
439
|
"data-imf-ui-component": "Input",
|
|
441
|
-
className: (
|
|
440
|
+
className: (r) => vt({
|
|
442
441
|
variant: e,
|
|
443
|
-
size:
|
|
444
|
-
className:
|
|
442
|
+
size: n,
|
|
443
|
+
className: t(l, r)
|
|
445
444
|
})
|
|
446
445
|
});
|
|
447
|
-
return d ? /* @__PURE__ */
|
|
448
|
-
className: typeof
|
|
449
|
-
children: [
|
|
446
|
+
return d ? /* @__PURE__ */ _("div", {
|
|
447
|
+
className: typeof l == "string" ? `${j.searchRoot} ${l}` : j.searchRoot,
|
|
448
|
+
children: [ie, re && !c && /* @__PURE__ */ g("button", {
|
|
450
449
|
type: "button",
|
|
451
|
-
className:
|
|
450
|
+
className: j.clearButton,
|
|
452
451
|
"aria-label": "Clear input",
|
|
453
452
|
onClick: () => {
|
|
454
|
-
|
|
453
|
+
i === void 0 && te(""), s?.();
|
|
455
454
|
},
|
|
456
|
-
children: /* @__PURE__ */
|
|
457
|
-
glyph:
|
|
455
|
+
children: /* @__PURE__ */ g(p, {
|
|
456
|
+
glyph: ae,
|
|
458
457
|
size: 16,
|
|
459
458
|
"aria-hidden": !0
|
|
460
459
|
})
|
|
461
460
|
})]
|
|
462
|
-
}) :
|
|
461
|
+
}) : ie;
|
|
463
462
|
}
|
|
464
463
|
//#endregion
|
|
465
464
|
//#region src/components/input/input.meta.ts
|
|
466
|
-
var
|
|
465
|
+
var bt = {
|
|
467
466
|
name: "Input",
|
|
468
|
-
category:
|
|
467
|
+
category: l.inputs,
|
|
469
468
|
status: "stable",
|
|
470
469
|
description: "Single-line text input for form data entry. Also called a text field; it supports controlled values and Field validation state.",
|
|
471
470
|
origin: "adapted",
|
|
@@ -475,7 +474,7 @@ var vt = {
|
|
|
475
474
|
docLink: "https://base-ui.com/react/components/input",
|
|
476
475
|
llmDocLink: "https://base-ui.com/react/components/input.md"
|
|
477
476
|
}
|
|
478
|
-
},
|
|
477
|
+
}, M = {
|
|
479
478
|
arrow: "imf-ui-select-module-arrow",
|
|
480
479
|
group: "imf-ui-select-module-group",
|
|
481
480
|
groupLabel: "imf-ui-select-module-groupLabel",
|
|
@@ -493,197 +492,183 @@ var vt = {
|
|
|
493
492
|
separator: "imf-ui-select-module-separator",
|
|
494
493
|
trigger: "imf-ui-select-module-trigger",
|
|
495
494
|
value: "imf-ui-select-module-value"
|
|
496
|
-
},
|
|
497
|
-
Arrow: () =>
|
|
498
|
-
Backdrop: () =>
|
|
499
|
-
Group: () =>
|
|
500
|
-
GroupLabel: () =>
|
|
501
|
-
Icon: () =>
|
|
502
|
-
Item: () =>
|
|
503
|
-
ItemIndicator: () =>
|
|
504
|
-
ItemText: () =>
|
|
505
|
-
Label: () =>
|
|
506
|
-
List: () =>
|
|
507
|
-
Popup: () =>
|
|
508
|
-
Portal: () =>
|
|
509
|
-
Positioner: () =>
|
|
510
|
-
Root: () =>
|
|
511
|
-
ScrollDownArrow: () =>
|
|
512
|
-
ScrollUpArrow: () =>
|
|
513
|
-
Separator: () =>
|
|
514
|
-
Trigger: () =>
|
|
515
|
-
Value: () =>
|
|
516
|
-
}),
|
|
517
|
-
function
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
className:
|
|
495
|
+
}, xt = /* @__PURE__ */ e({
|
|
496
|
+
Arrow: () => Yt,
|
|
497
|
+
Backdrop: () => Kt,
|
|
498
|
+
Group: () => en,
|
|
499
|
+
GroupLabel: () => tn,
|
|
500
|
+
Icon: () => Wt,
|
|
501
|
+
Item: () => Zt,
|
|
502
|
+
ItemIndicator: () => Qt,
|
|
503
|
+
ItemText: () => $t,
|
|
504
|
+
Label: () => Vt,
|
|
505
|
+
List: () => Xt,
|
|
506
|
+
Popup: () => Jt,
|
|
507
|
+
Portal: () => Gt,
|
|
508
|
+
Positioner: () => qt,
|
|
509
|
+
Root: () => Bt,
|
|
510
|
+
ScrollDownArrow: () => an,
|
|
511
|
+
ScrollUpArrow: () => rn,
|
|
512
|
+
Separator: () => nn,
|
|
513
|
+
Trigger: () => Ht,
|
|
514
|
+
Value: () => Ut
|
|
515
|
+
}), St = m(M.root), Ct = m(M.label), wt = m(M.trigger), Tt = m(M.value), Et = m(M.icon), Dt = m(M.backdrop), Ot = m(M.positioner), kt = m(M.popup), At = m(M.arrow), jt = m(M.list), Mt = m(M.item), Nt = m(M.itemIndicator), Pt = m(M.itemText), Ft = m(M.group), It = m(M.groupLabel), Lt = m(M.separator), Rt = m(M.scrollUpArrow), zt = m(M.scrollDownArrow);
|
|
516
|
+
function Bt({ className: e, style: t, ...n }) {
|
|
517
|
+
return /* @__PURE__ */ g("div", {
|
|
518
|
+
className: St({ className: e }),
|
|
520
519
|
style: t,
|
|
521
|
-
children: /* @__PURE__ */
|
|
520
|
+
children: /* @__PURE__ */ g(b.Root, { ...n })
|
|
522
521
|
});
|
|
523
522
|
}
|
|
524
|
-
|
|
525
|
-
function
|
|
526
|
-
return /* @__PURE__ */
|
|
527
|
-
...
|
|
523
|
+
Bt.displayName = "Select.Root";
|
|
524
|
+
function Vt(e) {
|
|
525
|
+
return /* @__PURE__ */ g(b.Label, {
|
|
526
|
+
...e,
|
|
528
527
|
"data-imf-ui-component": "Select.Label",
|
|
529
|
-
className: (
|
|
530
|
-
children: t.children
|
|
528
|
+
className: (n) => Ct({ className: t(e.className, n) })
|
|
531
529
|
});
|
|
532
530
|
}
|
|
533
|
-
|
|
534
|
-
function
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
-
...
|
|
531
|
+
Vt.displayName = "Select.Label";
|
|
532
|
+
function Ht(e) {
|
|
533
|
+
return /* @__PURE__ */ g(b.Trigger, {
|
|
534
|
+
...e,
|
|
537
535
|
"data-imf-ui-component": "Select.Trigger",
|
|
538
|
-
className: (
|
|
539
|
-
children: t.children
|
|
536
|
+
className: (n) => wt({ className: t(e.className, n) })
|
|
540
537
|
});
|
|
541
538
|
}
|
|
542
|
-
|
|
543
|
-
function
|
|
544
|
-
return /* @__PURE__ */
|
|
539
|
+
Ht.displayName = "Select.Trigger";
|
|
540
|
+
function Ut({ children: e, ...n }) {
|
|
541
|
+
return /* @__PURE__ */ g(b.Value, {
|
|
545
542
|
...n,
|
|
546
543
|
"data-imf-ui-component": "Select.Value",
|
|
547
|
-
className: (
|
|
548
|
-
children:
|
|
544
|
+
className: (e) => Tt({ className: t(n.className, e) }),
|
|
545
|
+
children: e
|
|
549
546
|
});
|
|
550
547
|
}
|
|
551
|
-
|
|
552
|
-
function
|
|
553
|
-
return /* @__PURE__ */
|
|
554
|
-
...
|
|
548
|
+
Ut.displayName = "Select.Value";
|
|
549
|
+
function Wt(e) {
|
|
550
|
+
return /* @__PURE__ */ g(b.Icon, {
|
|
551
|
+
...e,
|
|
555
552
|
"data-imf-ui-component": "Select.Icon",
|
|
556
|
-
className: (
|
|
557
|
-
children: t.children
|
|
553
|
+
className: (n) => Et({ className: t(e.className, n) })
|
|
558
554
|
});
|
|
559
555
|
}
|
|
560
|
-
|
|
561
|
-
function
|
|
562
|
-
return /* @__PURE__ */
|
|
556
|
+
Wt.displayName = "Select.Icon";
|
|
557
|
+
function Gt(e) {
|
|
558
|
+
return /* @__PURE__ */ g(b.Portal, { ...e });
|
|
563
559
|
}
|
|
564
|
-
|
|
565
|
-
function
|
|
566
|
-
return /* @__PURE__ */
|
|
567
|
-
...
|
|
560
|
+
Gt.displayName = "Select.Portal";
|
|
561
|
+
function Kt(e) {
|
|
562
|
+
return /* @__PURE__ */ g(b.Backdrop, {
|
|
563
|
+
...e,
|
|
568
564
|
"data-imf-ui-component": "Select.Backdrop",
|
|
569
|
-
className: (
|
|
565
|
+
className: (n) => Dt({ className: t(e.className, n) })
|
|
570
566
|
});
|
|
571
567
|
}
|
|
572
|
-
|
|
573
|
-
function
|
|
574
|
-
return /* @__PURE__ */
|
|
568
|
+
Kt.displayName = "Select.Backdrop";
|
|
569
|
+
function qt({ align: e = "start", alignItemWithTrigger: n = !1, ...r }) {
|
|
570
|
+
return /* @__PURE__ */ g(b.Positioner, {
|
|
575
571
|
...r,
|
|
576
|
-
align:
|
|
572
|
+
align: e,
|
|
577
573
|
alignItemWithTrigger: n,
|
|
578
574
|
"data-imf-ui-component": "Select.Positioner",
|
|
579
|
-
className: (
|
|
580
|
-
children: r.children
|
|
575
|
+
className: (e) => Ot({ className: t(r.className, e) })
|
|
581
576
|
});
|
|
582
577
|
}
|
|
583
|
-
|
|
584
|
-
function
|
|
585
|
-
return /* @__PURE__ */
|
|
586
|
-
...
|
|
578
|
+
qt.displayName = "Select.Positioner";
|
|
579
|
+
function Jt(e) {
|
|
580
|
+
return /* @__PURE__ */ g(b.Popup, {
|
|
581
|
+
...e,
|
|
587
582
|
"data-imf-ui-component": "Select.Popup",
|
|
588
|
-
className: (
|
|
589
|
-
children: t.children
|
|
583
|
+
className: (n) => kt({ className: t(e.className, n) })
|
|
590
584
|
});
|
|
591
585
|
}
|
|
592
|
-
|
|
593
|
-
function
|
|
594
|
-
return /* @__PURE__ */
|
|
595
|
-
...
|
|
586
|
+
Jt.displayName = "Select.Popup";
|
|
587
|
+
function Yt(e) {
|
|
588
|
+
return /* @__PURE__ */ g(b.Arrow, {
|
|
589
|
+
...e,
|
|
596
590
|
"data-imf-ui-component": "Select.Arrow",
|
|
597
|
-
className: (
|
|
598
|
-
children: t.children
|
|
591
|
+
className: (n) => At({ className: t(e.className, n) })
|
|
599
592
|
});
|
|
600
593
|
}
|
|
601
|
-
|
|
602
|
-
function
|
|
603
|
-
return /* @__PURE__ */
|
|
604
|
-
...
|
|
594
|
+
Yt.displayName = "Select.Arrow";
|
|
595
|
+
function Xt(e) {
|
|
596
|
+
return /* @__PURE__ */ g(b.List, {
|
|
597
|
+
...e,
|
|
605
598
|
"data-imf-ui-component": "Select.List",
|
|
606
|
-
className: (
|
|
607
|
-
children: t.children
|
|
599
|
+
className: (n) => jt({ className: t(e.className, n) })
|
|
608
600
|
});
|
|
609
601
|
}
|
|
610
|
-
|
|
611
|
-
function
|
|
612
|
-
return /* @__PURE__ */
|
|
613
|
-
...
|
|
602
|
+
Xt.displayName = "Select.List";
|
|
603
|
+
function Zt(e) {
|
|
604
|
+
return /* @__PURE__ */ g(b.Item, {
|
|
605
|
+
...e,
|
|
614
606
|
"data-imf-ui-component": "Select.Item",
|
|
615
|
-
className: (
|
|
616
|
-
children: t.children
|
|
607
|
+
className: (n) => Mt({ className: t(e.className, n) })
|
|
617
608
|
});
|
|
618
609
|
}
|
|
619
|
-
|
|
620
|
-
function
|
|
621
|
-
return /* @__PURE__ */
|
|
622
|
-
...
|
|
610
|
+
Zt.displayName = "Select.Item";
|
|
611
|
+
function Qt(e) {
|
|
612
|
+
return /* @__PURE__ */ g(b.ItemIndicator, {
|
|
613
|
+
...e,
|
|
623
614
|
"data-imf-ui-component": "Select.ItemIndicator",
|
|
624
|
-
className: (
|
|
625
|
-
children: t.children
|
|
615
|
+
className: (n) => Nt({ className: t(e.className, n) })
|
|
626
616
|
});
|
|
627
617
|
}
|
|
628
|
-
|
|
629
|
-
function
|
|
630
|
-
return /* @__PURE__ */
|
|
631
|
-
...
|
|
618
|
+
Qt.displayName = "Select.ItemIndicator";
|
|
619
|
+
function $t(e) {
|
|
620
|
+
return /* @__PURE__ */ g(b.ItemText, {
|
|
621
|
+
...e,
|
|
632
622
|
"data-imf-ui-component": "Select.ItemText",
|
|
633
|
-
className: (
|
|
634
|
-
children: t.children
|
|
623
|
+
className: (n) => Pt({ className: t(e.className, n) })
|
|
635
624
|
});
|
|
636
625
|
}
|
|
637
|
-
|
|
638
|
-
function
|
|
639
|
-
return /* @__PURE__ */
|
|
640
|
-
...
|
|
626
|
+
$t.displayName = "Select.ItemText";
|
|
627
|
+
function en(e) {
|
|
628
|
+
return /* @__PURE__ */ g(b.Group, {
|
|
629
|
+
...e,
|
|
641
630
|
"data-imf-ui-component": "Select.Group",
|
|
642
|
-
className: (
|
|
643
|
-
children: t.children
|
|
631
|
+
className: (n) => Ft({ className: t(e.className, n) })
|
|
644
632
|
});
|
|
645
633
|
}
|
|
646
|
-
|
|
647
|
-
function
|
|
648
|
-
return /* @__PURE__ */
|
|
649
|
-
...
|
|
634
|
+
en.displayName = "Select.Group";
|
|
635
|
+
function tn(e) {
|
|
636
|
+
return /* @__PURE__ */ g(b.GroupLabel, {
|
|
637
|
+
...e,
|
|
650
638
|
"data-imf-ui-component": "Select.GroupLabel",
|
|
651
|
-
className: (
|
|
652
|
-
children: t.children
|
|
639
|
+
className: (n) => It({ className: t(e.className, n) })
|
|
653
640
|
});
|
|
654
641
|
}
|
|
655
|
-
|
|
656
|
-
function
|
|
657
|
-
return /* @__PURE__ */
|
|
658
|
-
...
|
|
642
|
+
tn.displayName = "Select.GroupLabel";
|
|
643
|
+
function nn(e) {
|
|
644
|
+
return /* @__PURE__ */ g(b.Separator, {
|
|
645
|
+
...e,
|
|
659
646
|
"data-imf-ui-component": "Select.Separator",
|
|
660
|
-
className: (
|
|
647
|
+
className: (n) => Lt({ className: t(e.className, n) })
|
|
661
648
|
});
|
|
662
649
|
}
|
|
663
|
-
|
|
664
|
-
function
|
|
665
|
-
return /* @__PURE__ */
|
|
666
|
-
...
|
|
650
|
+
nn.displayName = "Select.Separator";
|
|
651
|
+
function rn(e) {
|
|
652
|
+
return /* @__PURE__ */ g(b.ScrollUpArrow, {
|
|
653
|
+
...e,
|
|
667
654
|
"data-imf-ui-component": "Select.ScrollUpArrow",
|
|
668
|
-
className: (
|
|
669
|
-
children: t.children
|
|
655
|
+
className: (n) => Rt({ className: t(e.className, n) })
|
|
670
656
|
});
|
|
671
657
|
}
|
|
672
|
-
|
|
673
|
-
function
|
|
674
|
-
return /* @__PURE__ */
|
|
675
|
-
...
|
|
658
|
+
rn.displayName = "Select.ScrollUpArrow";
|
|
659
|
+
function an(e) {
|
|
660
|
+
return /* @__PURE__ */ g(b.ScrollDownArrow, {
|
|
661
|
+
...e,
|
|
676
662
|
"data-imf-ui-component": "Select.ScrollDownArrow",
|
|
677
|
-
className: (
|
|
678
|
-
children: t.children
|
|
663
|
+
className: (n) => zt({ className: t(e.className, n) })
|
|
679
664
|
});
|
|
680
665
|
}
|
|
681
|
-
|
|
666
|
+
an.displayName = "Select.ScrollDownArrow";
|
|
682
667
|
//#endregion
|
|
683
668
|
//#region src/components/select/select.meta.ts
|
|
684
|
-
var
|
|
669
|
+
var on = {
|
|
685
670
|
name: "Select",
|
|
686
|
-
category:
|
|
671
|
+
category: l.inputs,
|
|
687
672
|
status: "stable",
|
|
688
673
|
description: "Dropdown for choosing a value from a known list. Also called a picker; use it for a labeled, keyboard-accessible option list.",
|
|
689
674
|
origin: "adapted",
|
|
@@ -693,9 +678,9 @@ var rn = {
|
|
|
693
678
|
docLink: "https://base-ui.com/react/components/select",
|
|
694
679
|
llmDocLink: "https://base-ui.com/react/components/select.md"
|
|
695
680
|
}
|
|
696
|
-
},
|
|
681
|
+
}, sn = {
|
|
697
682
|
name: "Slider",
|
|
698
|
-
category:
|
|
683
|
+
category: l.inputs,
|
|
699
684
|
status: "stable",
|
|
700
685
|
description: "Numeric input for choosing one value or a range by dragging a thumb. Also called a range input; use it when relative magnitude matters.",
|
|
701
686
|
origin: "adapted",
|
|
@@ -705,9 +690,9 @@ var rn = {
|
|
|
705
690
|
docLink: "https://base-ui.com/react/components/slider",
|
|
706
691
|
llmDocLink: "https://base-ui.com/react/components/slider.md"
|
|
707
692
|
}
|
|
708
|
-
},
|
|
693
|
+
}, cn = {
|
|
709
694
|
name: "Switch",
|
|
710
|
-
category:
|
|
695
|
+
category: l.inputs,
|
|
711
696
|
status: "stable",
|
|
712
697
|
description: "Two-state control for an on/off setting that takes effect immediately. Also called a toggle; use Checkbox for a submitted choice.",
|
|
713
698
|
origin: "adapted",
|
|
@@ -717,9 +702,9 @@ var rn = {
|
|
|
717
702
|
docLink: "https://base-ui.com/react/components/switch",
|
|
718
703
|
llmDocLink: "https://base-ui.com/react/components/switch.md"
|
|
719
704
|
}
|
|
720
|
-
},
|
|
705
|
+
}, ln = {
|
|
721
706
|
name: "Toggle",
|
|
722
|
-
category:
|
|
707
|
+
category: l.inputs,
|
|
723
708
|
status: "experimental",
|
|
724
709
|
description: "Two-state button for a pressed or unpressed option. Compose several in ToggleGroup for a segmented control.",
|
|
725
710
|
origin: "adapted",
|
|
@@ -729,9 +714,9 @@ var rn = {
|
|
|
729
714
|
docLink: "https://base-ui.com/react/components/toggle",
|
|
730
715
|
llmDocLink: "https://base-ui.com/react/components/toggle.md"
|
|
731
716
|
}
|
|
732
|
-
},
|
|
717
|
+
}, un = {
|
|
733
718
|
name: "ToggleGroup",
|
|
734
|
-
category:
|
|
719
|
+
category: l.inputs,
|
|
735
720
|
status: "experimental",
|
|
736
721
|
description: "Group of connected Toggle buttons that share a selection. Also called a segmented control; set `multiple` for more than one active option.",
|
|
737
722
|
origin: "adapted",
|
|
@@ -741,7 +726,7 @@ var rn = {
|
|
|
741
726
|
docLink: "https://base-ui.com/react/components/toggle-group",
|
|
742
727
|
llmDocLink: "https://base-ui.com/react/components/toggle-group.md"
|
|
743
728
|
}
|
|
744
|
-
},
|
|
729
|
+
}, N = {
|
|
745
730
|
aside: "imf-ui-app-shell-module-aside",
|
|
746
731
|
footer: "imf-ui-app-shell-module-footer",
|
|
747
732
|
header: "imf-ui-app-shell-module-header",
|
|
@@ -749,83 +734,83 @@ var rn = {
|
|
|
749
734
|
navbar: "imf-ui-app-shell-module-navbar",
|
|
750
735
|
root: "imf-ui-app-shell-module-root",
|
|
751
736
|
section: "imf-ui-app-shell-module-section"
|
|
752
|
-
},
|
|
753
|
-
Aside: () =>
|
|
754
|
-
Footer: () =>
|
|
755
|
-
Header: () =>
|
|
756
|
-
Main: () =>
|
|
757
|
-
Navbar: () =>
|
|
758
|
-
Root: () =>
|
|
759
|
-
Section: () =>
|
|
760
|
-
}),
|
|
761
|
-
function
|
|
762
|
-
return /* @__PURE__ */
|
|
763
|
-
...
|
|
737
|
+
}, dn = /* @__PURE__ */ e({
|
|
738
|
+
Aside: () => Sn,
|
|
739
|
+
Footer: () => Cn,
|
|
740
|
+
Header: () => bn,
|
|
741
|
+
Main: () => wn,
|
|
742
|
+
Navbar: () => xn,
|
|
743
|
+
Root: () => yn,
|
|
744
|
+
Section: () => Tn
|
|
745
|
+
}), fn = m(N.root), pn = m(N.header), mn = m(N.navbar), hn = m(N.aside), gn = m(N.footer), _n = m(N.main), vn = m(N.section);
|
|
746
|
+
function yn(e) {
|
|
747
|
+
return /* @__PURE__ */ g("div", {
|
|
748
|
+
...e,
|
|
764
749
|
"data-imf-ui-component": "AppShell.Root",
|
|
765
|
-
className:
|
|
750
|
+
className: fn({ className: e.className })
|
|
766
751
|
});
|
|
767
752
|
}
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
return /* @__PURE__ */
|
|
771
|
-
...
|
|
753
|
+
yn.displayName = "AppShell.Root";
|
|
754
|
+
function bn(e) {
|
|
755
|
+
return /* @__PURE__ */ g("header", {
|
|
756
|
+
...e,
|
|
772
757
|
"data-imf-ui-component": "AppShell.Header",
|
|
773
|
-
className:
|
|
758
|
+
className: pn({ className: e.className })
|
|
774
759
|
});
|
|
775
760
|
}
|
|
776
|
-
|
|
777
|
-
function
|
|
778
|
-
return /* @__PURE__ */
|
|
779
|
-
...
|
|
761
|
+
bn.displayName = "AppShell.Header";
|
|
762
|
+
function xn({ open: e, ...t }) {
|
|
763
|
+
return /* @__PURE__ */ g("nav", {
|
|
764
|
+
...t,
|
|
780
765
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
781
|
-
"data-open":
|
|
782
|
-
className:
|
|
766
|
+
"data-open": e ? "" : void 0,
|
|
767
|
+
className: mn({ className: t.className })
|
|
783
768
|
});
|
|
784
769
|
}
|
|
785
|
-
|
|
786
|
-
function
|
|
787
|
-
return /* @__PURE__ */
|
|
788
|
-
...
|
|
770
|
+
xn.displayName = "AppShell.Navbar";
|
|
771
|
+
function Sn({ open: e, ...t }) {
|
|
772
|
+
return /* @__PURE__ */ g("aside", {
|
|
773
|
+
...t,
|
|
789
774
|
"data-imf-ui-component": "AppShell.Aside",
|
|
790
|
-
"data-open":
|
|
791
|
-
className:
|
|
775
|
+
"data-open": e ? "" : void 0,
|
|
776
|
+
className: hn({ className: t.className })
|
|
792
777
|
});
|
|
793
778
|
}
|
|
794
|
-
|
|
795
|
-
function
|
|
796
|
-
return /* @__PURE__ */
|
|
797
|
-
...
|
|
779
|
+
Sn.displayName = "AppShell.Aside";
|
|
780
|
+
function Cn(e) {
|
|
781
|
+
return /* @__PURE__ */ g("footer", {
|
|
782
|
+
...e,
|
|
798
783
|
"data-imf-ui-component": "AppShell.Footer",
|
|
799
|
-
className:
|
|
784
|
+
className: gn({ className: e.className })
|
|
800
785
|
});
|
|
801
786
|
}
|
|
802
|
-
|
|
803
|
-
function
|
|
804
|
-
return /* @__PURE__ */
|
|
805
|
-
...
|
|
787
|
+
Cn.displayName = "AppShell.Footer";
|
|
788
|
+
function wn(e) {
|
|
789
|
+
return /* @__PURE__ */ g("main", {
|
|
790
|
+
...e,
|
|
806
791
|
"data-imf-ui-component": "AppShell.Main",
|
|
807
|
-
className:
|
|
792
|
+
className: _n({ className: e.className })
|
|
808
793
|
});
|
|
809
794
|
}
|
|
810
|
-
|
|
811
|
-
function
|
|
812
|
-
return /* @__PURE__ */
|
|
813
|
-
...
|
|
795
|
+
wn.displayName = "AppShell.Main";
|
|
796
|
+
function Tn({ grow: e, ...t }) {
|
|
797
|
+
return /* @__PURE__ */ g("div", {
|
|
798
|
+
...t,
|
|
814
799
|
"data-imf-ui-component": "AppShell.Section",
|
|
815
|
-
"data-grow":
|
|
816
|
-
className:
|
|
800
|
+
"data-grow": e ? "" : void 0,
|
|
801
|
+
className: vn({ className: t.className })
|
|
817
802
|
});
|
|
818
803
|
}
|
|
819
|
-
|
|
804
|
+
Tn.displayName = "AppShell.Section";
|
|
820
805
|
//#endregion
|
|
821
806
|
//#region src/components/app-shell/app-shell.meta.ts
|
|
822
|
-
var
|
|
807
|
+
var En = {
|
|
823
808
|
name: "AppShell",
|
|
824
|
-
category:
|
|
809
|
+
category: l.layout,
|
|
825
810
|
status: "stable",
|
|
826
811
|
description: "Application layout shell for a header, sidebars, footer, and scrolling main area. Also called an app layout or dashboard shell; sizing is CSS-driven and sidebars can become sliding panels on small screens.",
|
|
827
812
|
origin: "native"
|
|
828
|
-
},
|
|
813
|
+
}, P = {
|
|
829
814
|
content: "imf-ui-card-module-content",
|
|
830
815
|
densityComfortable: "imf-ui-card-module-densityComfortable",
|
|
831
816
|
densityCompact: "imf-ui-card-module-densityCompact",
|
|
@@ -849,106 +834,106 @@ var wn = {
|
|
|
849
834
|
variantMinor: "imf-ui-card-module-variantMinor",
|
|
850
835
|
variantPrimary: "imf-ui-card-module-variantPrimary",
|
|
851
836
|
variantSupport: "imf-ui-card-module-variantSupport"
|
|
852
|
-
},
|
|
853
|
-
Content: () =>
|
|
854
|
-
Footer: () =>
|
|
855
|
-
Header: () =>
|
|
856
|
-
Image: () =>
|
|
857
|
-
Root: () =>
|
|
858
|
-
}),
|
|
837
|
+
}, Dn = /* @__PURE__ */ e({
|
|
838
|
+
Content: () => Mn,
|
|
839
|
+
Footer: () => Nn,
|
|
840
|
+
Header: () => jn,
|
|
841
|
+
Image: () => An,
|
|
842
|
+
Root: () => kn
|
|
843
|
+
}), On = m(P.root, { variants: {
|
|
859
844
|
density: {
|
|
860
|
-
compact:
|
|
861
|
-
comfortable:
|
|
862
|
-
spacious:
|
|
845
|
+
compact: P.densityCompact,
|
|
846
|
+
comfortable: P.densityComfortable,
|
|
847
|
+
spacious: P.densitySpacious
|
|
863
848
|
},
|
|
864
849
|
variant: {
|
|
865
|
-
main:
|
|
866
|
-
support:
|
|
867
|
-
minor:
|
|
868
|
-
primary:
|
|
869
|
-
brand:
|
|
850
|
+
main: P.variantMain,
|
|
851
|
+
support: P.variantSupport,
|
|
852
|
+
minor: P.variantMinor,
|
|
853
|
+
primary: P.variantPrimary,
|
|
854
|
+
brand: P.variantBrand
|
|
870
855
|
},
|
|
871
856
|
shadow: {
|
|
872
|
-
none:
|
|
873
|
-
sm:
|
|
874
|
-
md:
|
|
875
|
-
lg:
|
|
857
|
+
none: P.shadowNone,
|
|
858
|
+
sm: P.shadowSm,
|
|
859
|
+
md: P.shadowMd,
|
|
860
|
+
lg: P.shadowLg
|
|
876
861
|
},
|
|
877
862
|
radius: {
|
|
878
|
-
brand:
|
|
879
|
-
sm:
|
|
880
|
-
md:
|
|
881
|
-
lg:
|
|
863
|
+
brand: P.radiusBrand,
|
|
864
|
+
sm: P.radiusSm,
|
|
865
|
+
md: P.radiusMd,
|
|
866
|
+
lg: P.radiusLg
|
|
882
867
|
},
|
|
883
868
|
orientation: {
|
|
884
|
-
vertical:
|
|
885
|
-
horizontal:
|
|
869
|
+
vertical: P.orientationVertical,
|
|
870
|
+
horizontal: P.orientationHorizontal
|
|
886
871
|
}
|
|
887
872
|
} });
|
|
888
|
-
function
|
|
889
|
-
let
|
|
890
|
-
return /* @__PURE__ */
|
|
891
|
-
...
|
|
873
|
+
function kn({ density: e = "comfortable", variant: t = "main", shadow: n = "lg", radius: r = "brand", orientation: i = "vertical", withBorder: a = !0, ...o }) {
|
|
874
|
+
let s = a && t !== "primary" && t !== "brand";
|
|
875
|
+
return /* @__PURE__ */ g("div", {
|
|
876
|
+
...o,
|
|
892
877
|
"data-imf-ui-component": "Card.Root",
|
|
893
|
-
"data-with-border":
|
|
894
|
-
className:
|
|
878
|
+
"data-with-border": s ? "" : void 0,
|
|
879
|
+
className: On({
|
|
895
880
|
density: e,
|
|
896
881
|
variant: t,
|
|
897
882
|
shadow: n,
|
|
898
883
|
radius: r,
|
|
899
884
|
orientation: i,
|
|
900
|
-
className: o
|
|
885
|
+
className: o.className
|
|
901
886
|
})
|
|
902
887
|
});
|
|
903
888
|
}
|
|
904
|
-
|
|
905
|
-
function
|
|
906
|
-
return /* @__PURE__ */
|
|
907
|
-
...
|
|
908
|
-
alt:
|
|
889
|
+
kn.displayName = "Card.Root";
|
|
890
|
+
function An({ alt: e = "", aspectRatio: t = 16 / 10, style: n, ...r }) {
|
|
891
|
+
return /* @__PURE__ */ g("img", {
|
|
892
|
+
...r,
|
|
893
|
+
alt: e,
|
|
909
894
|
"data-imf-ui-component": "Card.Image",
|
|
910
|
-
className:
|
|
895
|
+
className: m(P.image)({ className: r.className }),
|
|
911
896
|
style: {
|
|
912
|
-
aspectRatio:
|
|
913
|
-
...
|
|
897
|
+
aspectRatio: t,
|
|
898
|
+
...n
|
|
914
899
|
}
|
|
915
900
|
});
|
|
916
901
|
}
|
|
917
|
-
|
|
918
|
-
function
|
|
919
|
-
return /* @__PURE__ */
|
|
920
|
-
...
|
|
902
|
+
An.displayName = "Card.Image";
|
|
903
|
+
function jn(e) {
|
|
904
|
+
return /* @__PURE__ */ g("div", {
|
|
905
|
+
...e,
|
|
921
906
|
"data-imf-ui-component": "Card.Header",
|
|
922
|
-
className:
|
|
907
|
+
className: m(P.header)({ className: e.className })
|
|
923
908
|
});
|
|
924
909
|
}
|
|
925
|
-
|
|
926
|
-
function
|
|
927
|
-
return /* @__PURE__ */
|
|
928
|
-
...
|
|
910
|
+
jn.displayName = "Card.Header";
|
|
911
|
+
function Mn(e) {
|
|
912
|
+
return /* @__PURE__ */ g("div", {
|
|
913
|
+
...e,
|
|
929
914
|
"data-imf-ui-component": "Card.Content",
|
|
930
|
-
className:
|
|
915
|
+
className: m(P.content)({ className: e.className })
|
|
931
916
|
});
|
|
932
917
|
}
|
|
933
|
-
|
|
934
|
-
function
|
|
935
|
-
return /* @__PURE__ */
|
|
936
|
-
...
|
|
918
|
+
Mn.displayName = "Card.Content";
|
|
919
|
+
function Nn(e) {
|
|
920
|
+
return /* @__PURE__ */ g("div", {
|
|
921
|
+
...e,
|
|
937
922
|
"data-imf-ui-component": "Card.Footer",
|
|
938
|
-
className:
|
|
923
|
+
className: m(P.footer)({ className: e.className })
|
|
939
924
|
});
|
|
940
925
|
}
|
|
941
|
-
|
|
926
|
+
Nn.displayName = "Card.Footer";
|
|
942
927
|
//#endregion
|
|
943
928
|
//#region src/components/card/card.meta.ts
|
|
944
|
-
var
|
|
929
|
+
var Pn = {
|
|
945
930
|
name: "Card",
|
|
946
|
-
category:
|
|
931
|
+
category: l.layout,
|
|
947
932
|
status: "stable",
|
|
948
933
|
namespace: !0,
|
|
949
934
|
description: "Surface container for related content on a tonal background. Also called a panel or tile; compose it from optional image, header, content, and footer parts.",
|
|
950
935
|
origin: "native"
|
|
951
|
-
},
|
|
936
|
+
}, F = {
|
|
952
937
|
backdrop: "imf-ui-drawer-module-backdrop",
|
|
953
938
|
borderColorFgMinor: "imf-ui-drawer-module-borderColorFgMinor",
|
|
954
939
|
borderColorFgSupport: "imf-ui-drawer-module-borderColorFgSupport",
|
|
@@ -971,165 +956,165 @@ var Mn = {
|
|
|
971
956
|
title: "imf-ui-drawer-module-title",
|
|
972
957
|
trigger: "imf-ui-drawer-module-trigger",
|
|
973
958
|
viewport: "imf-ui-drawer-module-viewport"
|
|
974
|
-
},
|
|
975
|
-
Backdrop: () =>
|
|
976
|
-
Close: () =>
|
|
977
|
-
Content: () =>
|
|
978
|
-
Description: () =>
|
|
979
|
-
Indent: () =>
|
|
980
|
-
IndentBackground: () =>
|
|
981
|
-
Popup: () =>
|
|
982
|
-
Portal: () =>
|
|
983
|
-
Provider: () =>
|
|
984
|
-
Root: () =>
|
|
985
|
-
SwipeArea: () =>
|
|
986
|
-
Title: () =>
|
|
987
|
-
Trigger: () =>
|
|
988
|
-
Viewport: () =>
|
|
989
|
-
}),
|
|
959
|
+
}, Fn = /* @__PURE__ */ e({
|
|
960
|
+
Backdrop: () => Zn,
|
|
961
|
+
Close: () => rr,
|
|
962
|
+
Content: () => tr,
|
|
963
|
+
Description: () => ir,
|
|
964
|
+
Indent: () => or,
|
|
965
|
+
IndentBackground: () => sr,
|
|
966
|
+
Popup: () => er,
|
|
967
|
+
Portal: () => Xn,
|
|
968
|
+
Provider: () => ar,
|
|
969
|
+
Root: () => Jn,
|
|
970
|
+
SwipeArea: () => cr,
|
|
971
|
+
Title: () => nr,
|
|
972
|
+
Trigger: () => Yn,
|
|
973
|
+
Viewport: () => Qn
|
|
974
|
+
}), In = Ce({
|
|
990
975
|
borderColor: "primary",
|
|
991
976
|
borderStyle: "solid"
|
|
992
|
-
}),
|
|
977
|
+
}), Ln = m(F.trigger), Rn = m(F.backdrop), zn = m(F.viewport), Bn = m(F.popup, {
|
|
993
978
|
variants: {
|
|
994
979
|
borderColor: {
|
|
995
|
-
primary:
|
|
996
|
-
"fg-minor":
|
|
997
|
-
"fg-support":
|
|
998
|
-
none:
|
|
980
|
+
primary: F.borderColorPrimary,
|
|
981
|
+
"fg-minor": F.borderColorFgMinor,
|
|
982
|
+
"fg-support": F.borderColorFgSupport,
|
|
983
|
+
none: F.borderColorNone
|
|
999
984
|
},
|
|
1000
985
|
borderStyle: {
|
|
1001
|
-
solid:
|
|
1002
|
-
dashed:
|
|
1003
|
-
none:
|
|
986
|
+
solid: F.borderStyleSolid,
|
|
987
|
+
dashed: F.borderStyleDashed,
|
|
988
|
+
none: F.borderStyleNone
|
|
1004
989
|
}
|
|
1005
990
|
},
|
|
1006
991
|
defaultVariants: {
|
|
1007
992
|
borderColor: "primary",
|
|
1008
993
|
borderStyle: "solid"
|
|
1009
994
|
}
|
|
1010
|
-
}),
|
|
1011
|
-
function
|
|
1012
|
-
return /* @__PURE__ */
|
|
995
|
+
}), Vn = m(F.content), Hn = m(F.title), Un = m(F.close), Wn = m(F.description), Gn = m(F.indent), Kn = m(F.indentBackground), qn = m(F.swipeArea);
|
|
996
|
+
function Jn({ borderColor: e = "primary", borderStyle: t = "solid", ...n }) {
|
|
997
|
+
return /* @__PURE__ */ g(In.Provider, {
|
|
1013
998
|
value: {
|
|
1014
999
|
borderColor: e,
|
|
1015
1000
|
borderStyle: t
|
|
1016
1001
|
},
|
|
1017
|
-
children: /* @__PURE__ */
|
|
1002
|
+
children: /* @__PURE__ */ g(x.Root, { ...n })
|
|
1018
1003
|
});
|
|
1019
1004
|
}
|
|
1020
|
-
|
|
1021
|
-
function
|
|
1022
|
-
return /* @__PURE__ */
|
|
1023
|
-
...
|
|
1005
|
+
Jn.displayName = "Drawer.Root";
|
|
1006
|
+
function Yn(e) {
|
|
1007
|
+
return /* @__PURE__ */ g(x.Trigger, {
|
|
1008
|
+
...e,
|
|
1024
1009
|
"data-imf-ui-component": "Drawer.Trigger",
|
|
1025
|
-
className: (
|
|
1010
|
+
className: (n) => Ln({ className: t(e.className, n) })
|
|
1026
1011
|
});
|
|
1027
1012
|
}
|
|
1028
|
-
|
|
1029
|
-
function
|
|
1030
|
-
return /* @__PURE__ */
|
|
1013
|
+
Yn.displayName = "Drawer.Trigger";
|
|
1014
|
+
function Xn(e) {
|
|
1015
|
+
return /* @__PURE__ */ g(x.Portal, { ...e });
|
|
1031
1016
|
}
|
|
1032
|
-
|
|
1033
|
-
function
|
|
1034
|
-
return /* @__PURE__ */
|
|
1035
|
-
...
|
|
1017
|
+
Xn.displayName = "Drawer.Portal";
|
|
1018
|
+
function Zn(e) {
|
|
1019
|
+
return /* @__PURE__ */ g(x.Backdrop, {
|
|
1020
|
+
...e,
|
|
1036
1021
|
"data-imf-ui-component": "Drawer.Backdrop",
|
|
1037
|
-
className: (
|
|
1022
|
+
className: (n) => Rn({ className: t(e.className, n) })
|
|
1038
1023
|
});
|
|
1039
1024
|
}
|
|
1040
|
-
|
|
1041
|
-
function
|
|
1042
|
-
return /* @__PURE__ */
|
|
1043
|
-
...
|
|
1025
|
+
Zn.displayName = "Drawer.Backdrop";
|
|
1026
|
+
function Qn(e) {
|
|
1027
|
+
return /* @__PURE__ */ g(x.Viewport, {
|
|
1028
|
+
...e,
|
|
1044
1029
|
"data-imf-ui-component": "Drawer.Viewport",
|
|
1045
|
-
className: (
|
|
1030
|
+
className: (n) => zn({ className: t(e.className, n) })
|
|
1046
1031
|
});
|
|
1047
1032
|
}
|
|
1048
|
-
|
|
1049
|
-
var
|
|
1050
|
-
left:
|
|
1051
|
-
right:
|
|
1052
|
-
down:
|
|
1053
|
-
up:
|
|
1033
|
+
Qn.displayName = "Drawer.Viewport";
|
|
1034
|
+
var $n = {
|
|
1035
|
+
left: F.popupLeft,
|
|
1036
|
+
right: F.popupRight,
|
|
1037
|
+
down: F.popupBottom,
|
|
1038
|
+
up: F.popupTop
|
|
1054
1039
|
};
|
|
1055
|
-
function
|
|
1056
|
-
let i =
|
|
1057
|
-
return /* @__PURE__ */
|
|
1040
|
+
function er({ borderColor: e, borderStyle: n, ...r }) {
|
|
1041
|
+
let i = we(In), a = e ?? i.borderColor, o = n ?? i.borderStyle;
|
|
1042
|
+
return /* @__PURE__ */ g(x.Popup, {
|
|
1058
1043
|
...r,
|
|
1059
1044
|
"data-imf-ui-component": "Drawer.Popup",
|
|
1060
|
-
className: (e) =>
|
|
1045
|
+
className: (e) => Bn({
|
|
1061
1046
|
borderColor: a,
|
|
1062
1047
|
borderStyle: o,
|
|
1063
|
-
className:
|
|
1048
|
+
className: h($n[e.swipeDirection], t(r.className, e))
|
|
1064
1049
|
})
|
|
1065
1050
|
});
|
|
1066
1051
|
}
|
|
1067
|
-
|
|
1068
|
-
function
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
...
|
|
1052
|
+
er.displayName = "Drawer.Popup";
|
|
1053
|
+
function tr(e) {
|
|
1054
|
+
return /* @__PURE__ */ g(x.Content, {
|
|
1055
|
+
...e,
|
|
1071
1056
|
"data-imf-ui-component": "Drawer.Content",
|
|
1072
|
-
className: (
|
|
1057
|
+
className: (n) => Vn({ className: t(e.className, n) })
|
|
1073
1058
|
});
|
|
1074
1059
|
}
|
|
1075
|
-
|
|
1076
|
-
function
|
|
1077
|
-
return /* @__PURE__ */
|
|
1078
|
-
...
|
|
1060
|
+
tr.displayName = "Drawer.Content";
|
|
1061
|
+
function nr(e) {
|
|
1062
|
+
return /* @__PURE__ */ g(x.Title, {
|
|
1063
|
+
...e,
|
|
1079
1064
|
"data-imf-ui-component": "Drawer.Title",
|
|
1080
|
-
className:
|
|
1065
|
+
className: Hn({ className: e.className })
|
|
1081
1066
|
});
|
|
1082
1067
|
}
|
|
1083
|
-
|
|
1084
|
-
function
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
-
...
|
|
1068
|
+
nr.displayName = "Drawer.Title";
|
|
1069
|
+
function rr(e) {
|
|
1070
|
+
return /* @__PURE__ */ g(x.Close, {
|
|
1071
|
+
...e,
|
|
1087
1072
|
"data-imf-ui-component": "Drawer.Close",
|
|
1088
|
-
className: (
|
|
1073
|
+
className: (n) => Un({ className: t(e.className, n) })
|
|
1089
1074
|
});
|
|
1090
1075
|
}
|
|
1091
|
-
|
|
1092
|
-
function
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
...
|
|
1076
|
+
rr.displayName = "Drawer.Close";
|
|
1077
|
+
function ir(e) {
|
|
1078
|
+
return /* @__PURE__ */ g(x.Description, {
|
|
1079
|
+
...e,
|
|
1095
1080
|
"data-imf-ui-component": "Drawer.Description",
|
|
1096
|
-
className:
|
|
1081
|
+
className: Wn({ className: e.className })
|
|
1097
1082
|
});
|
|
1098
1083
|
}
|
|
1099
|
-
|
|
1100
|
-
function
|
|
1101
|
-
return /* @__PURE__ */
|
|
1084
|
+
ir.displayName = "Drawer.Description";
|
|
1085
|
+
function ar(e) {
|
|
1086
|
+
return /* @__PURE__ */ g(x.Provider, { ...e });
|
|
1102
1087
|
}
|
|
1103
|
-
|
|
1104
|
-
function
|
|
1105
|
-
return /* @__PURE__ */
|
|
1106
|
-
...
|
|
1088
|
+
ar.displayName = "Drawer.Provider";
|
|
1089
|
+
function or(e) {
|
|
1090
|
+
return /* @__PURE__ */ g(x.Indent, {
|
|
1091
|
+
...e,
|
|
1107
1092
|
"data-imf-ui-component": "Drawer.Indent",
|
|
1108
|
-
className: (
|
|
1093
|
+
className: (n) => Gn({ className: t(e.className, n) })
|
|
1109
1094
|
});
|
|
1110
1095
|
}
|
|
1111
|
-
|
|
1112
|
-
function
|
|
1113
|
-
return /* @__PURE__ */
|
|
1114
|
-
...
|
|
1096
|
+
or.displayName = "Drawer.Indent";
|
|
1097
|
+
function sr(e) {
|
|
1098
|
+
return /* @__PURE__ */ g(x.IndentBackground, {
|
|
1099
|
+
...e,
|
|
1115
1100
|
"data-imf-ui-component": "Drawer.IndentBackground",
|
|
1116
|
-
className: (
|
|
1101
|
+
className: (n) => Kn({ className: t(e.className, n) })
|
|
1117
1102
|
});
|
|
1118
1103
|
}
|
|
1119
|
-
|
|
1120
|
-
function
|
|
1121
|
-
return /* @__PURE__ */
|
|
1122
|
-
...
|
|
1104
|
+
sr.displayName = "Drawer.IndentBackground";
|
|
1105
|
+
function cr(e) {
|
|
1106
|
+
return /* @__PURE__ */ g(x.SwipeArea, {
|
|
1107
|
+
...e,
|
|
1123
1108
|
"data-imf-ui-component": "Drawer.SwipeArea",
|
|
1124
|
-
className: (
|
|
1109
|
+
className: (n) => qn({ className: t(e.className, n) })
|
|
1125
1110
|
});
|
|
1126
1111
|
}
|
|
1127
|
-
|
|
1112
|
+
cr.displayName = "Drawer.SwipeArea";
|
|
1128
1113
|
//#endregion
|
|
1129
1114
|
//#region src/components/drawer/drawer.meta.ts
|
|
1130
|
-
var
|
|
1115
|
+
var lr = {
|
|
1131
1116
|
name: "Drawer",
|
|
1132
|
-
category:
|
|
1117
|
+
category: l.layout,
|
|
1133
1118
|
status: "stable",
|
|
1134
1119
|
description: "Off-canvas panel that slides in from a screen edge for navigation, settings, filters, or focused tasks. Also called a sidebar, side panel, or sheet.",
|
|
1135
1120
|
origin: "adapted",
|
|
@@ -1139,7 +1124,7 @@ var sr = {
|
|
|
1139
1124
|
docLink: "https://base-ui.com/react/components/drawer",
|
|
1140
1125
|
llmDocLink: "https://base-ui.com/react/components/drawer.md"
|
|
1141
1126
|
}
|
|
1142
|
-
},
|
|
1127
|
+
}, I = {
|
|
1143
1128
|
arrow: "imf-ui-popover-module-arrow",
|
|
1144
1129
|
backdrop: "imf-ui-popover-module-backdrop",
|
|
1145
1130
|
close: "imf-ui-popover-module-close",
|
|
@@ -1163,152 +1148,152 @@ var sr = {
|
|
|
1163
1148
|
variantPrimary: "imf-ui-popover-module-variantPrimary",
|
|
1164
1149
|
variantSecondary: "imf-ui-popover-module-variantSecondary",
|
|
1165
1150
|
viewport: "imf-ui-popover-module-viewport"
|
|
1166
|
-
},
|
|
1167
|
-
Arrow: () =>
|
|
1168
|
-
Backdrop: () =>
|
|
1169
|
-
Close: () =>
|
|
1170
|
-
Description: () =>
|
|
1171
|
-
Eyebrow: () =>
|
|
1172
|
-
Inline: () =>
|
|
1173
|
-
Popup: () =>
|
|
1174
|
-
Portal: () =>
|
|
1175
|
-
Positioner: () =>
|
|
1176
|
-
Root: () =>
|
|
1177
|
-
Title: () =>
|
|
1178
|
-
Trigger: () =>
|
|
1179
|
-
Viewport: () =>
|
|
1180
|
-
createHandle: () =>
|
|
1181
|
-
}),
|
|
1151
|
+
}, ur = /* @__PURE__ */ e({
|
|
1152
|
+
Arrow: () => Or,
|
|
1153
|
+
Backdrop: () => Tr,
|
|
1154
|
+
Close: () => Nr,
|
|
1155
|
+
Description: () => Mr,
|
|
1156
|
+
Eyebrow: () => Ar,
|
|
1157
|
+
Inline: () => Pr,
|
|
1158
|
+
Popup: () => Dr,
|
|
1159
|
+
Portal: () => wr,
|
|
1160
|
+
Positioner: () => Er,
|
|
1161
|
+
Root: () => Sr,
|
|
1162
|
+
Title: () => jr,
|
|
1163
|
+
Trigger: () => Cr,
|
|
1164
|
+
Viewport: () => kr,
|
|
1165
|
+
createHandle: () => xr
|
|
1166
|
+
}), dr = m(I.trigger, { variants: {
|
|
1182
1167
|
variant: {
|
|
1183
|
-
ghost:
|
|
1184
|
-
outline:
|
|
1185
|
-
primary:
|
|
1186
|
-
secondary:
|
|
1187
|
-
positive:
|
|
1188
|
-
negative:
|
|
1168
|
+
ghost: I.variantGhost,
|
|
1169
|
+
outline: I.variantOutline,
|
|
1170
|
+
primary: I.variantPrimary,
|
|
1171
|
+
secondary: I.variantSecondary,
|
|
1172
|
+
positive: I.variantPositive,
|
|
1173
|
+
negative: I.variantNegative
|
|
1189
1174
|
},
|
|
1190
|
-
inline: { true:
|
|
1191
|
-
} }),
|
|
1192
|
-
ghost:
|
|
1193
|
-
outline:
|
|
1194
|
-
primary:
|
|
1195
|
-
secondary:
|
|
1196
|
-
positive:
|
|
1197
|
-
negative:
|
|
1198
|
-
} } }),
|
|
1199
|
-
function
|
|
1200
|
-
return /* @__PURE__ */
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
function
|
|
1204
|
-
return /* @__PURE__ */
|
|
1175
|
+
inline: { true: I.triggerInline }
|
|
1176
|
+
} }), fr = m(I.backdrop), pr = m(I.positioner), mr = m(I.popup, { variants: { variant: {
|
|
1177
|
+
ghost: I.popupVariantGhost,
|
|
1178
|
+
outline: I.popupVariantOutline,
|
|
1179
|
+
primary: I.popupVariantPrimary,
|
|
1180
|
+
secondary: I.popupVariantSecondary,
|
|
1181
|
+
positive: I.popupVariantPositive,
|
|
1182
|
+
negative: I.popupVariantNegative
|
|
1183
|
+
} } }), hr = m(I.arrow), gr = m(I.viewport), _r = m(I.eyebrow), vr = m(I.title), yr = m(I.description), br = m(I.close), xr = S.createHandle;
|
|
1184
|
+
function Sr(e) {
|
|
1185
|
+
return /* @__PURE__ */ g(S.Root, { ...e });
|
|
1186
|
+
}
|
|
1187
|
+
Sr.displayName = "Popover.Root";
|
|
1188
|
+
function Cr({ variant: e = "ghost", inline: n = !1, ...r }) {
|
|
1189
|
+
return /* @__PURE__ */ g(S.Trigger, {
|
|
1205
1190
|
...r,
|
|
1206
1191
|
"data-imf-ui-component": "Popover.Trigger",
|
|
1207
|
-
className: (
|
|
1192
|
+
className: (i) => dr({
|
|
1208
1193
|
variant: e,
|
|
1209
|
-
inline:
|
|
1210
|
-
className:
|
|
1194
|
+
inline: n,
|
|
1195
|
+
className: t(r.className, i)
|
|
1211
1196
|
})
|
|
1212
1197
|
});
|
|
1213
1198
|
}
|
|
1214
|
-
|
|
1215
|
-
function
|
|
1216
|
-
return /* @__PURE__ */
|
|
1199
|
+
Cr.displayName = "Popover.Trigger";
|
|
1200
|
+
function wr(e) {
|
|
1201
|
+
return /* @__PURE__ */ g(S.Portal, { ...e });
|
|
1217
1202
|
}
|
|
1218
|
-
|
|
1219
|
-
function
|
|
1220
|
-
return /* @__PURE__ */
|
|
1221
|
-
...
|
|
1203
|
+
wr.displayName = "Popover.Portal";
|
|
1204
|
+
function Tr(e) {
|
|
1205
|
+
return /* @__PURE__ */ g(S.Backdrop, {
|
|
1206
|
+
...e,
|
|
1222
1207
|
"data-imf-ui-component": "Popover.Backdrop",
|
|
1223
|
-
className: (
|
|
1208
|
+
className: (n) => fr({ className: t(e.className, n) })
|
|
1224
1209
|
});
|
|
1225
1210
|
}
|
|
1226
|
-
|
|
1227
|
-
function
|
|
1228
|
-
return /* @__PURE__ */
|
|
1229
|
-
...
|
|
1211
|
+
Tr.displayName = "Popover.Backdrop";
|
|
1212
|
+
function Er(e) {
|
|
1213
|
+
return /* @__PURE__ */ g(S.Positioner, {
|
|
1214
|
+
...e,
|
|
1230
1215
|
"data-imf-ui-component": "Popover.Positioner",
|
|
1231
|
-
className: (
|
|
1216
|
+
className: (n) => pr({ className: t(e.className, n) })
|
|
1232
1217
|
});
|
|
1233
1218
|
}
|
|
1234
|
-
|
|
1235
|
-
function
|
|
1236
|
-
return /* @__PURE__ */
|
|
1219
|
+
Er.displayName = "Popover.Positioner";
|
|
1220
|
+
function Dr({ variant: e, ...n }) {
|
|
1221
|
+
return /* @__PURE__ */ g(S.Popup, {
|
|
1237
1222
|
...n,
|
|
1238
1223
|
"data-imf-ui-component": "Popover.Popup",
|
|
1239
|
-
className: (
|
|
1240
|
-
variant:
|
|
1241
|
-
className:
|
|
1224
|
+
className: (r) => mr({
|
|
1225
|
+
variant: e,
|
|
1226
|
+
className: t(n.className, r)
|
|
1242
1227
|
})
|
|
1243
1228
|
});
|
|
1244
1229
|
}
|
|
1245
|
-
|
|
1246
|
-
function
|
|
1247
|
-
return /* @__PURE__ */
|
|
1248
|
-
...
|
|
1230
|
+
Dr.displayName = "Popover.Popup";
|
|
1231
|
+
function Or(e) {
|
|
1232
|
+
return /* @__PURE__ */ g(S.Arrow, {
|
|
1233
|
+
...e,
|
|
1249
1234
|
"data-imf-ui-component": "Popover.Arrow",
|
|
1250
|
-
className: (
|
|
1235
|
+
className: (n) => hr({ className: t(e.className, n) })
|
|
1251
1236
|
});
|
|
1252
1237
|
}
|
|
1253
|
-
|
|
1254
|
-
function
|
|
1255
|
-
return /* @__PURE__ */
|
|
1256
|
-
...
|
|
1238
|
+
Or.displayName = "Popover.Arrow";
|
|
1239
|
+
function kr(e) {
|
|
1240
|
+
return /* @__PURE__ */ g(S.Viewport, {
|
|
1241
|
+
...e,
|
|
1257
1242
|
"data-imf-ui-component": "Popover.Viewport",
|
|
1258
|
-
className: (
|
|
1243
|
+
className: (n) => gr({ className: t(e.className, n) })
|
|
1259
1244
|
});
|
|
1260
1245
|
}
|
|
1261
|
-
|
|
1262
|
-
function
|
|
1263
|
-
return /* @__PURE__ */
|
|
1264
|
-
...
|
|
1246
|
+
kr.displayName = "Popover.Viewport";
|
|
1247
|
+
function Ar(e) {
|
|
1248
|
+
return /* @__PURE__ */ g("p", {
|
|
1249
|
+
...e,
|
|
1265
1250
|
"data-imf-ui-component": "Popover.Eyebrow",
|
|
1266
|
-
className:
|
|
1251
|
+
className: _r({ className: e.className })
|
|
1267
1252
|
});
|
|
1268
1253
|
}
|
|
1269
|
-
|
|
1270
|
-
function
|
|
1271
|
-
return /* @__PURE__ */
|
|
1272
|
-
...
|
|
1254
|
+
Ar.displayName = "Popover.Eyebrow";
|
|
1255
|
+
function jr(e) {
|
|
1256
|
+
return /* @__PURE__ */ g(S.Title, {
|
|
1257
|
+
...e,
|
|
1273
1258
|
"data-imf-ui-component": "Popover.Title",
|
|
1274
|
-
className:
|
|
1259
|
+
className: vr({ className: e.className })
|
|
1275
1260
|
});
|
|
1276
1261
|
}
|
|
1277
|
-
|
|
1278
|
-
function
|
|
1279
|
-
return /* @__PURE__ */
|
|
1280
|
-
...
|
|
1262
|
+
jr.displayName = "Popover.Title";
|
|
1263
|
+
function Mr(e) {
|
|
1264
|
+
return /* @__PURE__ */ g(S.Description, {
|
|
1265
|
+
...e,
|
|
1281
1266
|
"data-imf-ui-component": "Popover.Description",
|
|
1282
|
-
className:
|
|
1267
|
+
className: yr({ className: e.className })
|
|
1283
1268
|
});
|
|
1284
1269
|
}
|
|
1285
|
-
|
|
1286
|
-
function
|
|
1287
|
-
return /* @__PURE__ */
|
|
1288
|
-
...
|
|
1270
|
+
Mr.displayName = "Popover.Description";
|
|
1271
|
+
function Nr(e) {
|
|
1272
|
+
return /* @__PURE__ */ g(S.Close, {
|
|
1273
|
+
...e,
|
|
1289
1274
|
"data-imf-ui-component": "Popover.Close",
|
|
1290
|
-
className: (
|
|
1275
|
+
className: (n) => br({ className: t(e.className, n) })
|
|
1291
1276
|
});
|
|
1292
1277
|
}
|
|
1293
|
-
|
|
1294
|
-
function
|
|
1295
|
-
return /* @__PURE__ */
|
|
1278
|
+
Nr.displayName = "Popover.Close";
|
|
1279
|
+
function Pr({ trigger: e, title: t, children: n, delay: r = 150, side: i = "top", sideOffset: a = 6 }) {
|
|
1280
|
+
return /* @__PURE__ */ _(Sr, { children: [/* @__PURE__ */ g(Cr, {
|
|
1296
1281
|
inline: !0,
|
|
1297
1282
|
openOnHover: !0,
|
|
1298
1283
|
delay: r,
|
|
1299
1284
|
children: e
|
|
1300
|
-
}), /* @__PURE__ */
|
|
1285
|
+
}), /* @__PURE__ */ g(wr, { children: /* @__PURE__ */ g(Er, {
|
|
1301
1286
|
side: i,
|
|
1302
1287
|
sideOffset: a,
|
|
1303
|
-
children: /* @__PURE__ */
|
|
1288
|
+
children: /* @__PURE__ */ _(Dr, { children: [t && /* @__PURE__ */ g(jr, { children: t }), n && /* @__PURE__ */ g(Mr, { children: n })] })
|
|
1304
1289
|
}) })] });
|
|
1305
1290
|
}
|
|
1306
|
-
|
|
1291
|
+
Pr.displayName = "Popover.Inline";
|
|
1307
1292
|
//#endregion
|
|
1308
1293
|
//#region src/components/popover/popover.meta.ts
|
|
1309
|
-
var
|
|
1294
|
+
var Fr = {
|
|
1310
1295
|
name: "Popover",
|
|
1311
|
-
category:
|
|
1296
|
+
category: l.display,
|
|
1312
1297
|
status: "stable",
|
|
1313
1298
|
description: "Floating panel anchored to a trigger for contextual content, quick forms, or actions. Also called a popup or flyout; use Tooltip for hints without interaction.",
|
|
1314
1299
|
origin: "adapted",
|
|
@@ -1318,38 +1303,38 @@ var Nr = {
|
|
|
1318
1303
|
docLink: "https://base-ui.com/react/components/popover",
|
|
1319
1304
|
llmDocLink: "https://base-ui.com/react/components/popover.md"
|
|
1320
1305
|
}
|
|
1321
|
-
},
|
|
1306
|
+
}, Ir = {
|
|
1322
1307
|
name: "Row",
|
|
1323
|
-
category:
|
|
1308
|
+
category: l.layout,
|
|
1324
1309
|
status: "stable",
|
|
1325
1310
|
description: "Horizontal layout primitive for spacing, aligning, and wrapping children. Also called a horizontal stack or flex row.",
|
|
1326
1311
|
origin: "native"
|
|
1327
|
-
},
|
|
1312
|
+
}, L = {
|
|
1328
1313
|
root: "imf-ui-separator-module-root",
|
|
1329
1314
|
variantDashed: "imf-ui-separator-module-variantDashed",
|
|
1330
1315
|
variantDotted: "imf-ui-separator-module-variantDotted",
|
|
1331
1316
|
variantSolid: "imf-ui-separator-module-variantSolid"
|
|
1332
|
-
},
|
|
1333
|
-
solid:
|
|
1334
|
-
dashed:
|
|
1335
|
-
dotted:
|
|
1317
|
+
}, Lr = m(L.root, { variants: { variant: {
|
|
1318
|
+
solid: L.variantSolid,
|
|
1319
|
+
dashed: L.variantDashed,
|
|
1320
|
+
dotted: L.variantDotted
|
|
1336
1321
|
} } });
|
|
1337
|
-
function
|
|
1338
|
-
return /* @__PURE__ */
|
|
1339
|
-
...
|
|
1322
|
+
function Rr({ orientation: e = "horizontal", variant: t = "solid", ...n }) {
|
|
1323
|
+
return /* @__PURE__ */ g(Ae, {
|
|
1324
|
+
...n,
|
|
1340
1325
|
orientation: e,
|
|
1341
1326
|
"data-imf-ui-component": "Separator",
|
|
1342
|
-
className:
|
|
1327
|
+
className: Lr({
|
|
1343
1328
|
variant: t,
|
|
1344
|
-
className: n
|
|
1329
|
+
className: n.className
|
|
1345
1330
|
})
|
|
1346
1331
|
});
|
|
1347
1332
|
}
|
|
1348
1333
|
//#endregion
|
|
1349
1334
|
//#region src/components/separator/separator.meta.ts
|
|
1350
|
-
var
|
|
1335
|
+
var zr = {
|
|
1351
1336
|
name: "Separator",
|
|
1352
|
-
category:
|
|
1337
|
+
category: l.layout,
|
|
1353
1338
|
status: "stable",
|
|
1354
1339
|
description: "Line that divides content horizontally or vertically. Also called a divider or rule.",
|
|
1355
1340
|
origin: "adapted",
|
|
@@ -1359,13 +1344,13 @@ var Lr = {
|
|
|
1359
1344
|
docLink: "https://base-ui.com/react/components/separator",
|
|
1360
1345
|
llmDocLink: "https://base-ui.com/react/components/separator.md"
|
|
1361
1346
|
}
|
|
1362
|
-
},
|
|
1347
|
+
}, Br = {
|
|
1363
1348
|
name: "Stack",
|
|
1364
|
-
category:
|
|
1349
|
+
category: l.layout,
|
|
1365
1350
|
status: "stable",
|
|
1366
1351
|
description: "Vertical layout primitive for spacing and aligning children. Also called a vertical stack or column.",
|
|
1367
1352
|
origin: "native"
|
|
1368
|
-
},
|
|
1353
|
+
}, R = {
|
|
1369
1354
|
description: "imf-ui-callout-module-description",
|
|
1370
1355
|
icon: "imf-ui-callout-module-icon",
|
|
1371
1356
|
maxWidthFull: "imf-ui-callout-module-maxWidthFull",
|
|
@@ -1381,90 +1366,90 @@ var Lr = {
|
|
|
1381
1366
|
variantNegative: "imf-ui-callout-module-variantNegative",
|
|
1382
1367
|
variantPositive: "imf-ui-callout-module-variantPositive",
|
|
1383
1368
|
variantWarning: "imf-ui-callout-module-variantWarning"
|
|
1384
|
-
},
|
|
1385
|
-
Description: () =>
|
|
1386
|
-
Icon: () =>
|
|
1387
|
-
Root: () =>
|
|
1388
|
-
Title: () =>
|
|
1389
|
-
}),
|
|
1369
|
+
}, Vr = /* @__PURE__ */ e({
|
|
1370
|
+
Description: () => Jr,
|
|
1371
|
+
Icon: () => Kr,
|
|
1372
|
+
Root: () => Gr,
|
|
1373
|
+
Title: () => qr
|
|
1374
|
+
}), Hr = m(R.root, { variants: {
|
|
1390
1375
|
variant: {
|
|
1391
|
-
info:
|
|
1392
|
-
positive:
|
|
1393
|
-
warning:
|
|
1394
|
-
negative:
|
|
1395
|
-
"accent-1":
|
|
1396
|
-
"accent-2":
|
|
1397
|
-
"accent-3":
|
|
1376
|
+
info: R.variantInfo,
|
|
1377
|
+
positive: R.variantPositive,
|
|
1378
|
+
warning: R.variantWarning,
|
|
1379
|
+
negative: R.variantNegative,
|
|
1380
|
+
"accent-1": R.variantAccent1,
|
|
1381
|
+
"accent-2": R.variantAccent2,
|
|
1382
|
+
"accent-3": R.variantAccent3
|
|
1398
1383
|
},
|
|
1399
1384
|
maxWidth: {
|
|
1400
|
-
sm:
|
|
1401
|
-
md:
|
|
1402
|
-
lg:
|
|
1403
|
-
full:
|
|
1385
|
+
sm: R.maxWidthSm,
|
|
1386
|
+
md: R.maxWidthMd,
|
|
1387
|
+
lg: R.maxWidthLg,
|
|
1388
|
+
full: R.maxWidthFull
|
|
1404
1389
|
}
|
|
1405
|
-
} }),
|
|
1406
|
-
info:
|
|
1407
|
-
positive:
|
|
1408
|
-
warning:
|
|
1409
|
-
negative:
|
|
1410
|
-
"accent-1":
|
|
1411
|
-
"accent-2":
|
|
1412
|
-
"accent-3":
|
|
1413
|
-
},
|
|
1414
|
-
function
|
|
1415
|
-
let
|
|
1416
|
-
return /* @__PURE__ */
|
|
1417
|
-
value:
|
|
1418
|
-
children: /* @__PURE__ */
|
|
1419
|
-
...
|
|
1390
|
+
} }), Ur = {
|
|
1391
|
+
info: re,
|
|
1392
|
+
positive: ne,
|
|
1393
|
+
warning: oe,
|
|
1394
|
+
negative: pe,
|
|
1395
|
+
"accent-1": ce,
|
|
1396
|
+
"accent-2": ce,
|
|
1397
|
+
"accent-3": ce
|
|
1398
|
+
}, Wr = Ce("info");
|
|
1399
|
+
function Gr({ variant: e = "info", maxWidth: t = "md", children: n, ...r }) {
|
|
1400
|
+
let i = e ?? "info";
|
|
1401
|
+
return /* @__PURE__ */ g(Wr.Provider, {
|
|
1402
|
+
value: i,
|
|
1403
|
+
children: /* @__PURE__ */ g("div", {
|
|
1404
|
+
...r,
|
|
1420
1405
|
role: "note",
|
|
1421
1406
|
"data-imf-ui-component": "Callout.Root",
|
|
1422
|
-
className:
|
|
1407
|
+
className: Hr({
|
|
1423
1408
|
variant: e,
|
|
1424
1409
|
maxWidth: t,
|
|
1425
|
-
className:
|
|
1410
|
+
className: r.className
|
|
1426
1411
|
}),
|
|
1427
|
-
children:
|
|
1412
|
+
children: n
|
|
1428
1413
|
})
|
|
1429
1414
|
});
|
|
1430
1415
|
}
|
|
1431
|
-
|
|
1432
|
-
function
|
|
1433
|
-
let
|
|
1434
|
-
return /* @__PURE__ */
|
|
1435
|
-
...
|
|
1416
|
+
Gr.displayName = "Callout.Root";
|
|
1417
|
+
function Kr({ children: e, ...t }) {
|
|
1418
|
+
let n = Ur[we(Wr)];
|
|
1419
|
+
return /* @__PURE__ */ g("span", {
|
|
1420
|
+
...t,
|
|
1436
1421
|
"aria-hidden": !0,
|
|
1437
1422
|
"data-imf-ui-component": "Callout.Icon",
|
|
1438
|
-
className:
|
|
1439
|
-
children:
|
|
1440
|
-
glyph:
|
|
1423
|
+
className: m(R.icon)({ className: t.className }),
|
|
1424
|
+
children: e ?? /* @__PURE__ */ g(p, {
|
|
1425
|
+
glyph: n,
|
|
1441
1426
|
size: 24,
|
|
1442
1427
|
strokeWidth: 2
|
|
1443
1428
|
})
|
|
1444
1429
|
});
|
|
1445
1430
|
}
|
|
1446
|
-
|
|
1447
|
-
function
|
|
1448
|
-
return /* @__PURE__ */
|
|
1449
|
-
...
|
|
1431
|
+
Kr.displayName = "Callout.Icon";
|
|
1432
|
+
function qr(e) {
|
|
1433
|
+
return /* @__PURE__ */ g("div", {
|
|
1434
|
+
...e,
|
|
1450
1435
|
"data-imf-ui-component": "Callout.Title",
|
|
1451
|
-
className:
|
|
1436
|
+
className: m(R.title)({ className: e.className })
|
|
1452
1437
|
});
|
|
1453
1438
|
}
|
|
1454
|
-
|
|
1455
|
-
function
|
|
1456
|
-
return /* @__PURE__ */
|
|
1457
|
-
...
|
|
1439
|
+
qr.displayName = "Callout.Title";
|
|
1440
|
+
function Jr(e) {
|
|
1441
|
+
return /* @__PURE__ */ g("div", {
|
|
1442
|
+
...e,
|
|
1458
1443
|
"data-imf-ui-component": "Callout.Description",
|
|
1459
|
-
className:
|
|
1444
|
+
className: m(R.description)({ className: e.className })
|
|
1460
1445
|
});
|
|
1461
1446
|
}
|
|
1462
|
-
|
|
1447
|
+
Jr.displayName = "Callout.Description";
|
|
1463
1448
|
//#endregion
|
|
1464
1449
|
//#region src/components/callout/callout.meta.ts
|
|
1465
|
-
var
|
|
1450
|
+
var Yr = {
|
|
1466
1451
|
name: "Callout",
|
|
1467
|
-
category:
|
|
1452
|
+
category: l.display,
|
|
1468
1453
|
status: "stable",
|
|
1469
1454
|
namespace: !0,
|
|
1470
1455
|
description: "Persistent, in-place status message for information, success, warnings, and errors. Also called an inline alert or notice; it is not a transient toast or modal dialog.",
|
|
@@ -1472,75 +1457,74 @@ var qr = {
|
|
|
1472
1457
|
};
|
|
1473
1458
|
//#endregion
|
|
1474
1459
|
//#region src/components/chip/chip.tsx
|
|
1475
|
-
function
|
|
1476
|
-
return /* @__PURE__ */
|
|
1477
|
-
...
|
|
1460
|
+
function Xr({ variant: e = "minor", appearance: t = "outline", inline: n = !1, ...r }) {
|
|
1461
|
+
return /* @__PURE__ */ g("span", {
|
|
1462
|
+
...r,
|
|
1478
1463
|
"data-imf-ui-component": "Chip",
|
|
1479
|
-
className:
|
|
1464
|
+
className: Fe({
|
|
1480
1465
|
variant: e,
|
|
1481
1466
|
appearance: t,
|
|
1482
1467
|
inline: n,
|
|
1483
|
-
className: r
|
|
1484
|
-
})
|
|
1485
|
-
children: i.children
|
|
1468
|
+
className: r.className
|
|
1469
|
+
})
|
|
1486
1470
|
});
|
|
1487
1471
|
}
|
|
1488
1472
|
//#endregion
|
|
1489
1473
|
//#region src/components/chip/chip.meta.ts
|
|
1490
|
-
var
|
|
1474
|
+
var Zr = {
|
|
1491
1475
|
name: "Chip",
|
|
1492
|
-
category:
|
|
1476
|
+
category: l.display,
|
|
1493
1477
|
status: "stable",
|
|
1494
1478
|
description: "Compact label for tags, status, categories, counts, and metadata. Also called a badge or tag; its color and appearance are independent choices.",
|
|
1495
1479
|
origin: "native"
|
|
1496
|
-
},
|
|
1480
|
+
}, z = {
|
|
1497
1481
|
iconClosed: "imf-ui-collapsible-module-iconClosed",
|
|
1498
1482
|
iconOpen: "imf-ui-collapsible-module-iconOpen",
|
|
1499
1483
|
panel: "imf-ui-collapsible-module-panel",
|
|
1500
1484
|
root: "imf-ui-collapsible-module-root",
|
|
1501
1485
|
trigger: "imf-ui-collapsible-module-trigger",
|
|
1502
1486
|
variantSolid: "imf-ui-collapsible-module-variantSolid"
|
|
1503
|
-
},
|
|
1504
|
-
Panel: () =>
|
|
1505
|
-
Root: () =>
|
|
1506
|
-
Trigger: () =>
|
|
1507
|
-
}),
|
|
1487
|
+
}, Qr = /* @__PURE__ */ e({
|
|
1488
|
+
Panel: () => ii,
|
|
1489
|
+
Root: () => ei,
|
|
1490
|
+
Trigger: () => ni
|
|
1491
|
+
}), $r = m(z.root, { variants: { variant: {
|
|
1508
1492
|
default: null,
|
|
1509
|
-
solid:
|
|
1493
|
+
solid: z.variantSolid
|
|
1510
1494
|
} } });
|
|
1511
|
-
function
|
|
1512
|
-
return /* @__PURE__ */
|
|
1495
|
+
function ei({ variant: e = "default", ...n }) {
|
|
1496
|
+
return /* @__PURE__ */ g(je.Root, {
|
|
1513
1497
|
...n,
|
|
1514
1498
|
"data-imf-ui-component": "Collapsible.Root",
|
|
1515
|
-
className: (
|
|
1499
|
+
className: (r) => $r({
|
|
1516
1500
|
variant: e,
|
|
1517
|
-
className:
|
|
1501
|
+
className: t(n.className, r)
|
|
1518
1502
|
})
|
|
1519
1503
|
});
|
|
1520
1504
|
}
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1523
|
-
function
|
|
1524
|
-
return /* @__PURE__ */
|
|
1505
|
+
ei.displayName = "Collapsible.Root";
|
|
1506
|
+
var ti = m(z.trigger);
|
|
1507
|
+
function ni({ children: e, ...n }) {
|
|
1508
|
+
return /* @__PURE__ */ _(je.Trigger, {
|
|
1525
1509
|
...n,
|
|
1526
1510
|
"data-imf-ui-component": "Collapsible.Trigger",
|
|
1527
|
-
className: (
|
|
1511
|
+
className: (e) => ti({ className: t(n.className, e) }),
|
|
1528
1512
|
children: [
|
|
1529
|
-
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
className:
|
|
1513
|
+
e,
|
|
1514
|
+
/* @__PURE__ */ g("span", {
|
|
1515
|
+
className: z.iconClosed,
|
|
1532
1516
|
"aria-hidden": !0,
|
|
1533
|
-
children: /* @__PURE__ */
|
|
1534
|
-
glyph:
|
|
1517
|
+
children: /* @__PURE__ */ g(p, {
|
|
1518
|
+
glyph: ee,
|
|
1535
1519
|
size: 16,
|
|
1536
1520
|
strokeWidth: 1.5
|
|
1537
1521
|
})
|
|
1538
1522
|
}),
|
|
1539
|
-
/* @__PURE__ */
|
|
1540
|
-
className:
|
|
1523
|
+
/* @__PURE__ */ g("span", {
|
|
1524
|
+
className: z.iconOpen,
|
|
1541
1525
|
"aria-hidden": !0,
|
|
1542
|
-
children: /* @__PURE__ */
|
|
1543
|
-
glyph:
|
|
1526
|
+
children: /* @__PURE__ */ g(p, {
|
|
1527
|
+
glyph: ie,
|
|
1544
1528
|
size: 16,
|
|
1545
1529
|
strokeWidth: 1.5
|
|
1546
1530
|
})
|
|
@@ -1548,21 +1532,21 @@ function ei({ className: e, children: t, ...n }) {
|
|
|
1548
1532
|
]
|
|
1549
1533
|
});
|
|
1550
1534
|
}
|
|
1551
|
-
|
|
1552
|
-
var
|
|
1553
|
-
function
|
|
1554
|
-
return /* @__PURE__ */
|
|
1555
|
-
...
|
|
1535
|
+
ni.displayName = "Collapsible.Trigger";
|
|
1536
|
+
var ri = m(z.panel);
|
|
1537
|
+
function ii(e) {
|
|
1538
|
+
return /* @__PURE__ */ g(je.Panel, {
|
|
1539
|
+
...e,
|
|
1556
1540
|
"data-imf-ui-component": "Collapsible.Panel",
|
|
1557
|
-
className: (
|
|
1541
|
+
className: (n) => ri({ className: t(e.className, n) })
|
|
1558
1542
|
});
|
|
1559
1543
|
}
|
|
1560
|
-
|
|
1544
|
+
ii.displayName = "Collapsible.Panel";
|
|
1561
1545
|
//#endregion
|
|
1562
1546
|
//#region src/components/collapsible/collapsible.meta.ts
|
|
1563
|
-
var
|
|
1547
|
+
var ai = {
|
|
1564
1548
|
name: "Collapsible",
|
|
1565
|
-
category:
|
|
1549
|
+
category: l.display,
|
|
1566
1550
|
status: "stable",
|
|
1567
1551
|
description: "Show-and-hide region for secondary content such as FAQs, settings, or details. Also called a disclosure or expand/collapse.",
|
|
1568
1552
|
origin: "adapted",
|
|
@@ -1572,7 +1556,7 @@ var ri = {
|
|
|
1572
1556
|
docLink: "https://base-ui.com/react/components/collapsible",
|
|
1573
1557
|
llmDocLink: "https://base-ui.com/react/components/collapsible.md"
|
|
1574
1558
|
}
|
|
1575
|
-
},
|
|
1559
|
+
}, B = {
|
|
1576
1560
|
root: "imf-ui-logo-module-root",
|
|
1577
1561
|
sizeFit: "imf-ui-logo-module-sizeFit",
|
|
1578
1562
|
sizeHero: "imf-ui-logo-module-sizeHero",
|
|
@@ -1587,41 +1571,41 @@ var ri = {
|
|
|
1587
1571
|
variantMinor: "imf-ui-logo-module-variantMinor",
|
|
1588
1572
|
variantOncolor: "imf-ui-logo-module-variantOncolor",
|
|
1589
1573
|
variantSupport: "imf-ui-logo-module-variantSupport"
|
|
1590
|
-
},
|
|
1574
|
+
}, oi = m(B.root, { variants: {
|
|
1591
1575
|
size: {
|
|
1592
|
-
xs:
|
|
1593
|
-
sm:
|
|
1594
|
-
md:
|
|
1595
|
-
lg:
|
|
1596
|
-
xl:
|
|
1597
|
-
hero:
|
|
1598
|
-
fit:
|
|
1576
|
+
xs: B.sizeXs,
|
|
1577
|
+
sm: B.sizeSm,
|
|
1578
|
+
md: B.sizeMd,
|
|
1579
|
+
lg: B.sizeLg,
|
|
1580
|
+
xl: B.sizeXl,
|
|
1581
|
+
hero: B.sizeHero,
|
|
1582
|
+
fit: B.sizeFit
|
|
1599
1583
|
},
|
|
1600
1584
|
variant: {
|
|
1601
|
-
inherit:
|
|
1602
|
-
main:
|
|
1603
|
-
support:
|
|
1604
|
-
minor:
|
|
1605
|
-
brand:
|
|
1606
|
-
oncolor:
|
|
1585
|
+
inherit: B.variantInherit,
|
|
1586
|
+
main: B.variantMain,
|
|
1587
|
+
support: B.variantSupport,
|
|
1588
|
+
minor: B.variantMinor,
|
|
1589
|
+
brand: B.variantBrand,
|
|
1590
|
+
oncolor: B.variantOncolor
|
|
1607
1591
|
}
|
|
1608
1592
|
} });
|
|
1609
|
-
function
|
|
1610
|
-
return /* @__PURE__ */
|
|
1611
|
-
...
|
|
1593
|
+
function si({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, style: a, ...o }) {
|
|
1594
|
+
return /* @__PURE__ */ g("span", {
|
|
1595
|
+
...o,
|
|
1612
1596
|
"data-imf-ui-component": "Logo",
|
|
1613
|
-
className:
|
|
1597
|
+
className: oi({
|
|
1614
1598
|
size: n,
|
|
1615
1599
|
variant: r,
|
|
1616
|
-
className:
|
|
1600
|
+
className: o.className
|
|
1617
1601
|
}),
|
|
1618
1602
|
role: "img",
|
|
1619
1603
|
"aria-label": t,
|
|
1620
|
-
style: i == null ?
|
|
1621
|
-
...
|
|
1604
|
+
style: i == null ? a : {
|
|
1605
|
+
...a,
|
|
1622
1606
|
height: i
|
|
1623
1607
|
},
|
|
1624
|
-
children: typeof e == "string" ? /* @__PURE__ */
|
|
1608
|
+
children: typeof e == "string" ? /* @__PURE__ */ g("img", {
|
|
1625
1609
|
src: e,
|
|
1626
1610
|
alt: "",
|
|
1627
1611
|
"aria-hidden": "true"
|
|
@@ -1630,260 +1614,260 @@ function ai({ src: e, alt: t, size: n = "md", variant: r = "brand", height: i, c
|
|
|
1630
1614
|
}
|
|
1631
1615
|
//#endregion
|
|
1632
1616
|
//#region src/components/logo/logo.meta.ts
|
|
1633
|
-
var
|
|
1617
|
+
var ci = {
|
|
1634
1618
|
name: "Logo",
|
|
1635
|
-
category:
|
|
1619
|
+
category: l.display,
|
|
1636
1620
|
status: "stable",
|
|
1637
1621
|
description: "Renders a logo from a URL or inline React element with consistent sizing. Also called a wordmark or brand mark.",
|
|
1638
1622
|
origin: "native"
|
|
1639
1623
|
};
|
|
1640
1624
|
//#endregion
|
|
1641
1625
|
//#region src/components/logo/imfusion/imfusion.tsx
|
|
1642
|
-
function
|
|
1643
|
-
return /* @__PURE__ */
|
|
1626
|
+
function li(e) {
|
|
1627
|
+
return /* @__PURE__ */ _("svg", {
|
|
1644
1628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1645
1629
|
viewBox: "50 50 652.51 90",
|
|
1646
1630
|
fill: "currentColor",
|
|
1647
1631
|
...e,
|
|
1648
1632
|
children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1650
|
-
/* @__PURE__ */
|
|
1651
|
-
/* @__PURE__ */
|
|
1652
|
-
/* @__PURE__ */
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
/* @__PURE__ */
|
|
1633
|
+
/* @__PURE__ */ g("path", { d: "M642.11,74.66h15.13v9.25h1.22c3.42-6.78,9.64-10.48,20.5-10.48,10.13,0,23.55,5.55,23.55,22.81v42.53h-15.86v-41.3c0-8.75-5.25-11.96-12.2-11.96-10,0-16.47,6.41-16.47,19.11v34.15h-15.86v-64.11Z" }),
|
|
1634
|
+
/* @__PURE__ */ g("path", { d: "M585.58,106.71c0,13.32,6.34,20.96,17.45,20.96s17.45-7.64,17.45-20.96-6.34-20.96-17.45-20.96-17.45,7.64-17.45,20.96ZM569.47,106.71c0-21.45,14.4-33.29,33.55-33.29s33.55,11.84,33.55,33.29-14.4,33.29-33.55,33.29-33.55-11.84-33.55-33.29Z" }),
|
|
1635
|
+
/* @__PURE__ */ g("path", { d: "M548.09,74.66h15.86v64.11h-15.86v-64.11ZM548.09,50.62h15.86v16.02h-15.86v-16.02Z" }),
|
|
1636
|
+
/* @__PURE__ */ g("path", { d: "M486.09,93.4c0-10.97,9.88-19.97,27.7-19.97s27.45,8.38,28.79,19.72v1.85h-15.01c-.24-7.27-5.25-9.98-13.66-9.98s-12.44,3.33-12.44,7.52c0,3.7,2.93,5.42,7.2,6.16l12.93,2.34c11.22,2.1,21.59,6.16,21.59,18.12,0,11.34-9.27,20.84-28.92,20.84s-29.77-10.11-30.75-21.45v-1.85h15.37c.37,7.15,6.34,11.47,15.62,11.47,8.17,0,13.3-2.84,13.3-7.77,0-4.19-3.9-5.67-9.88-6.78l-12.93-2.34c-9.76-1.73-18.91-5.67-18.91-17.88Z" }),
|
|
1637
|
+
/* @__PURE__ */ g("path", { d: "M418.91,74.66h15.86v41.3c0,8.75,5.25,11.96,12.2,11.96,10,0,16.47-6.41,16.47-19.11v-34.15h15.86v64.11h-15.13v-9.25h-1.22c-3.42,6.78-9.76,10.48-20.5,10.48-10.13,0-23.55-5.55-23.55-22.81v-42.53Z" }),
|
|
1638
|
+
/* @__PURE__ */ g("polygon", { points: "360.86 50 418.91 50 418.91 62.82 377.69 62.82 377.69 87.97 411.44 87.98 411.44 100.8 377.69 100.79 377.69 138.77 360.86 138.77 360.86 50" }),
|
|
1639
|
+
/* @__PURE__ */ g("path", { d: "M254.56,74.66h14.88v7.4h1.22c3.29-4.93,8.91-8.63,18.67-8.63s14.88,4.07,18.91,10.11h1.22c3.29-4.81,9.15-10.11,21.23-10.11,12.69,0,22.69,7.89,22.69,22.07v43.27h-15.86v-42.04c0-7.4-3.9-11.22-11.35-11.22-8.54,0-14.27,5.18-14.27,15.16v38.1h-15.86v-42.04c0-7.4-3.9-11.22-11.35-11.22-8.54,0-14.27,5.18-14.27,15.16v38.1h-15.86v-64.11Z" }),
|
|
1640
|
+
/* @__PURE__ */ g("rect", {
|
|
1657
1641
|
x: "230",
|
|
1658
1642
|
y: "50",
|
|
1659
1643
|
width: "17.08",
|
|
1660
1644
|
height: "88.77"
|
|
1661
1645
|
}),
|
|
1662
|
-
/* @__PURE__ */
|
|
1663
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ g("polygon", { points: "208 139 50 139 50 128.93 167.06 113.32 208 82.6 208 139" }),
|
|
1647
|
+
/* @__PURE__ */ g("polygon", { points: "208 60.06 90.94 75.68 50 106.4 50 50 208 50 208 60.06" })
|
|
1664
1648
|
]
|
|
1665
1649
|
});
|
|
1666
1650
|
}
|
|
1667
|
-
function
|
|
1668
|
-
return /* @__PURE__ */
|
|
1651
|
+
function ui(e) {
|
|
1652
|
+
return /* @__PURE__ */ _("svg", {
|
|
1669
1653
|
viewBox: "0 0 384 216",
|
|
1670
1654
|
fill: "currentColor",
|
|
1671
1655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1672
1656
|
...e,
|
|
1673
|
-
children: [/* @__PURE__ */
|
|
1657
|
+
children: [/* @__PURE__ */ g("path", { d: "M384 216H0V191.572L284.499 153.679L384 79.1303V216Z" }), /* @__PURE__ */ g("path", { d: "M384 24.4271L99.501 62.3215L0 136.869V0H384V24.4271Z" })]
|
|
1674
1658
|
});
|
|
1675
1659
|
}
|
|
1676
|
-
function
|
|
1677
|
-
return /* @__PURE__ */
|
|
1660
|
+
function di({ glyph: e = !1, alt: t = "ImFusion", variant: n = "brand", ...r }) {
|
|
1661
|
+
return /* @__PURE__ */ g(si, {
|
|
1678
1662
|
...r,
|
|
1679
|
-
src:
|
|
1663
|
+
src: g(e ? ui : li, {}),
|
|
1680
1664
|
alt: t,
|
|
1681
1665
|
variant: n
|
|
1682
1666
|
});
|
|
1683
1667
|
}
|
|
1684
|
-
var
|
|
1668
|
+
var fi = {
|
|
1685
1669
|
item: "imf-ui-navigation-menu-root-module-item",
|
|
1686
1670
|
list: "imf-ui-navigation-menu-root-module-list",
|
|
1687
1671
|
root: "imf-ui-navigation-menu-root-module-root"
|
|
1688
|
-
},
|
|
1672
|
+
}, pi = {
|
|
1689
1673
|
content: "imf-ui-navigation-menu-structure-module-content",
|
|
1690
1674
|
viewport: "imf-ui-navigation-menu-structure-module-viewport"
|
|
1691
|
-
},
|
|
1692
|
-
function
|
|
1693
|
-
return /* @__PURE__ */
|
|
1694
|
-
...
|
|
1675
|
+
}, mi = m(fi.root), hi = m(fi.list), gi = m(fi.item), _i = m(pi.content), vi = m(pi.viewport);
|
|
1676
|
+
function yi({ orientation: e = "horizontal", className: n, ...r }) {
|
|
1677
|
+
return /* @__PURE__ */ g(T.Root, {
|
|
1678
|
+
...r,
|
|
1695
1679
|
orientation: e,
|
|
1696
1680
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1697
1681
|
"data-orientation": e,
|
|
1698
|
-
className: (e) =>
|
|
1682
|
+
className: (e) => mi({ className: t(n, e) })
|
|
1699
1683
|
});
|
|
1700
1684
|
}
|
|
1701
|
-
|
|
1702
|
-
function
|
|
1703
|
-
return /* @__PURE__ */
|
|
1704
|
-
...
|
|
1685
|
+
yi.displayName = "NavigationMenu.Root";
|
|
1686
|
+
function bi(e) {
|
|
1687
|
+
return /* @__PURE__ */ g(T.List, {
|
|
1688
|
+
...e,
|
|
1705
1689
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1706
|
-
className: (
|
|
1690
|
+
className: (n) => hi({ className: t(e.className, n) })
|
|
1707
1691
|
});
|
|
1708
1692
|
}
|
|
1709
|
-
|
|
1710
|
-
function
|
|
1711
|
-
return /* @__PURE__ */
|
|
1712
|
-
...
|
|
1693
|
+
bi.displayName = "NavigationMenu.List";
|
|
1694
|
+
function xi(e) {
|
|
1695
|
+
return /* @__PURE__ */ g(T.Item, {
|
|
1696
|
+
...e,
|
|
1713
1697
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
1714
|
-
className: (
|
|
1698
|
+
className: (n) => gi({ className: t(e.className, n) })
|
|
1715
1699
|
});
|
|
1716
1700
|
}
|
|
1717
|
-
|
|
1718
|
-
function
|
|
1719
|
-
return /* @__PURE__ */
|
|
1720
|
-
...
|
|
1701
|
+
xi.displayName = "NavigationMenu.Item";
|
|
1702
|
+
function Si(e) {
|
|
1703
|
+
return /* @__PURE__ */ g(T.Content, {
|
|
1704
|
+
...e,
|
|
1721
1705
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
1722
|
-
className: (
|
|
1706
|
+
className: (n) => _i({ className: t(e.className, n) })
|
|
1723
1707
|
});
|
|
1724
1708
|
}
|
|
1725
|
-
|
|
1726
|
-
function
|
|
1727
|
-
return /* @__PURE__ */
|
|
1728
|
-
...
|
|
1709
|
+
Si.displayName = "NavigationMenu.Content";
|
|
1710
|
+
function Ci(e) {
|
|
1711
|
+
return /* @__PURE__ */ g(T.Viewport, {
|
|
1712
|
+
...e,
|
|
1729
1713
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
1730
|
-
className: (
|
|
1714
|
+
className: (n) => vi({ className: t(e.className, n) })
|
|
1731
1715
|
});
|
|
1732
1716
|
}
|
|
1733
|
-
|
|
1734
|
-
var
|
|
1717
|
+
Ci.displayName = "NavigationMenu.Viewport";
|
|
1718
|
+
var wi = {
|
|
1735
1719
|
icon: "imf-ui-navigation-menu-trigger-module-icon",
|
|
1736
1720
|
trigger: "imf-ui-navigation-menu-trigger-module-trigger"
|
|
1737
|
-
},
|
|
1738
|
-
function
|
|
1739
|
-
return /* @__PURE__ */
|
|
1740
|
-
...
|
|
1721
|
+
}, Ti = m(wi.trigger), Ei = m(wi.icon);
|
|
1722
|
+
function Di({ active: e = !1, hideChevron: n = !1, nested: r = !1, children: i, ...a }) {
|
|
1723
|
+
return /* @__PURE__ */ _(T.Trigger, {
|
|
1724
|
+
...a,
|
|
1741
1725
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
1742
1726
|
"data-active": e ? "" : void 0,
|
|
1743
|
-
"data-nested":
|
|
1744
|
-
className: (e) =>
|
|
1745
|
-
children: [
|
|
1746
|
-
glyph:
|
|
1727
|
+
"data-nested": r ? "" : void 0,
|
|
1728
|
+
className: (e) => Ti({ className: t(a.className, e) }),
|
|
1729
|
+
children: [i, !n && /* @__PURE__ */ g(Oi, { children: /* @__PURE__ */ g(p, {
|
|
1730
|
+
glyph: ee,
|
|
1747
1731
|
size: 14
|
|
1748
1732
|
}) })]
|
|
1749
1733
|
});
|
|
1750
1734
|
}
|
|
1751
|
-
|
|
1752
|
-
function
|
|
1753
|
-
return /* @__PURE__ */
|
|
1754
|
-
...
|
|
1735
|
+
Di.displayName = "NavigationMenu.Trigger";
|
|
1736
|
+
function Oi(e) {
|
|
1737
|
+
return /* @__PURE__ */ g(T.Icon, {
|
|
1738
|
+
...e,
|
|
1755
1739
|
"data-imf-ui-component": "NavigationMenu.Icon",
|
|
1756
|
-
className: (
|
|
1740
|
+
className: (n) => Ei({ className: t(e.className, n) })
|
|
1757
1741
|
});
|
|
1758
1742
|
}
|
|
1759
|
-
|
|
1760
|
-
var
|
|
1743
|
+
Oi.displayName = "NavigationMenu.Icon";
|
|
1744
|
+
var V = {
|
|
1761
1745
|
arrow: "imf-ui-navigation-menu-overlay-module-arrow",
|
|
1762
1746
|
backdrop: "imf-ui-navigation-menu-overlay-module-backdrop",
|
|
1763
1747
|
popup: "imf-ui-navigation-menu-overlay-module-popup",
|
|
1764
1748
|
positioner: "imf-ui-navigation-menu-overlay-module-positioner"
|
|
1765
|
-
},
|
|
1766
|
-
function
|
|
1767
|
-
return /* @__PURE__ */
|
|
1749
|
+
}, ki = m(V.positioner), Ai = m(V.popup), ji = m(V.arrow), Mi = m(V.backdrop);
|
|
1750
|
+
function Ni(e) {
|
|
1751
|
+
return /* @__PURE__ */ g(T.Portal, { ...e });
|
|
1768
1752
|
}
|
|
1769
|
-
|
|
1770
|
-
function
|
|
1771
|
-
return /* @__PURE__ */
|
|
1753
|
+
Ni.displayName = "NavigationMenu.Portal";
|
|
1754
|
+
function Pi({ align: e = "start", ...n }) {
|
|
1755
|
+
return /* @__PURE__ */ g(T.Positioner, {
|
|
1772
1756
|
...n,
|
|
1773
1757
|
align: e,
|
|
1774
1758
|
"data-imf-ui-component": "NavigationMenu.Positioner",
|
|
1775
|
-
className: (e) =>
|
|
1759
|
+
className: (e) => ki({ className: t(n.className, e) })
|
|
1776
1760
|
});
|
|
1777
1761
|
}
|
|
1778
|
-
|
|
1779
|
-
function
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
...
|
|
1762
|
+
Pi.displayName = "NavigationMenu.Positioner";
|
|
1763
|
+
function Fi(e) {
|
|
1764
|
+
return /* @__PURE__ */ g(T.Popup, {
|
|
1765
|
+
...e,
|
|
1782
1766
|
"data-imf-ui-component": "NavigationMenu.Popup",
|
|
1783
|
-
className: (
|
|
1767
|
+
className: (n) => Ai({ className: t(e.className, n) })
|
|
1784
1768
|
});
|
|
1785
1769
|
}
|
|
1786
|
-
|
|
1787
|
-
function
|
|
1788
|
-
return /* @__PURE__ */
|
|
1789
|
-
...
|
|
1770
|
+
Fi.displayName = "NavigationMenu.Popup";
|
|
1771
|
+
function Ii(e) {
|
|
1772
|
+
return /* @__PURE__ */ g(T.Arrow, {
|
|
1773
|
+
...e,
|
|
1790
1774
|
"data-imf-ui-component": "NavigationMenu.Arrow",
|
|
1791
|
-
className: (
|
|
1775
|
+
className: (n) => ji({ className: t(e.className, n) })
|
|
1792
1776
|
});
|
|
1793
1777
|
}
|
|
1794
|
-
|
|
1795
|
-
function
|
|
1796
|
-
return /* @__PURE__ */
|
|
1797
|
-
...
|
|
1778
|
+
Ii.displayName = "NavigationMenu.Arrow";
|
|
1779
|
+
function Li(e) {
|
|
1780
|
+
return /* @__PURE__ */ g(T.Backdrop, {
|
|
1781
|
+
...e,
|
|
1798
1782
|
"data-imf-ui-component": "NavigationMenu.Backdrop",
|
|
1799
|
-
className: (
|
|
1783
|
+
className: (n) => Mi({ className: t(e.className, n) })
|
|
1800
1784
|
});
|
|
1801
1785
|
}
|
|
1802
|
-
|
|
1803
|
-
var
|
|
1786
|
+
Li.displayName = "NavigationMenu.Backdrop";
|
|
1787
|
+
var H = {
|
|
1804
1788
|
link: "imf-ui-navigation-menu-link-module-link",
|
|
1805
1789
|
linkArrow: "imf-ui-navigation-menu-link-module-linkArrow",
|
|
1806
1790
|
linkCard: "imf-ui-navigation-menu-link-module-linkCard",
|
|
1807
1791
|
linkCardDescription: "imf-ui-navigation-menu-link-module-linkCardDescription",
|
|
1808
1792
|
linkCardTitle: "imf-ui-navigation-menu-link-module-linkCardTitle",
|
|
1809
1793
|
linkList: "imf-ui-navigation-menu-link-module-linkList"
|
|
1810
|
-
},
|
|
1811
|
-
function
|
|
1812
|
-
return /* @__PURE__ */
|
|
1794
|
+
}, Ri = m(H.link), zi = m(H.linkList), Bi = m(H.linkCard);
|
|
1795
|
+
function Vi({ children: e, render: n, ...r }) {
|
|
1796
|
+
return /* @__PURE__ */ g(T.Link, {
|
|
1813
1797
|
...r,
|
|
1814
1798
|
render: n,
|
|
1815
1799
|
"data-imf-ui-component": "NavigationMenu.Link",
|
|
1816
|
-
className: (
|
|
1817
|
-
children: n ?
|
|
1818
|
-
className:
|
|
1800
|
+
className: (e) => Ri({ className: t(r.className, e) }),
|
|
1801
|
+
children: n ? e : /* @__PURE__ */ _(xe, { children: [e, /* @__PURE__ */ g("span", {
|
|
1802
|
+
className: H.linkArrow,
|
|
1819
1803
|
"aria-hidden": !0,
|
|
1820
|
-
children: /* @__PURE__ */
|
|
1821
|
-
glyph:
|
|
1804
|
+
children: /* @__PURE__ */ g(p, {
|
|
1805
|
+
glyph: f,
|
|
1822
1806
|
size: 14
|
|
1823
1807
|
})
|
|
1824
1808
|
})] })
|
|
1825
1809
|
});
|
|
1826
1810
|
}
|
|
1827
|
-
|
|
1828
|
-
function
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
...
|
|
1811
|
+
Vi.displayName = "NavigationMenu.Link";
|
|
1812
|
+
function Hi(e) {
|
|
1813
|
+
return /* @__PURE__ */ g("ul", {
|
|
1814
|
+
...e,
|
|
1831
1815
|
"data-imf-ui-component": "NavigationMenu.LinkList",
|
|
1832
|
-
className:
|
|
1816
|
+
className: zi({ className: e.className })
|
|
1833
1817
|
});
|
|
1834
1818
|
}
|
|
1835
|
-
|
|
1836
|
-
function
|
|
1837
|
-
return /* @__PURE__ */
|
|
1819
|
+
Hi.displayName = "NavigationMenu.LinkList";
|
|
1820
|
+
function Ui({ title: e, description: n, image: r, imageAlt: i = "", ...a }) {
|
|
1821
|
+
return /* @__PURE__ */ g(T.Link, {
|
|
1838
1822
|
...a,
|
|
1839
1823
|
"data-imf-ui-component": "NavigationMenu.LinkCard",
|
|
1840
|
-
className: (e) =>
|
|
1841
|
-
children: /* @__PURE__ */
|
|
1824
|
+
className: (e) => Bi({ className: t(a.className, e) }),
|
|
1825
|
+
children: /* @__PURE__ */ _(kn, {
|
|
1842
1826
|
variant: "main",
|
|
1843
1827
|
density: "compact",
|
|
1844
1828
|
withBorder: !1,
|
|
1845
1829
|
children: [
|
|
1846
|
-
|
|
1847
|
-
src:
|
|
1848
|
-
alt:
|
|
1830
|
+
r && /* @__PURE__ */ g(An, {
|
|
1831
|
+
src: r,
|
|
1832
|
+
alt: i
|
|
1849
1833
|
}),
|
|
1850
|
-
/* @__PURE__ */
|
|
1851
|
-
className:
|
|
1834
|
+
/* @__PURE__ */ g(jn, { children: /* @__PURE__ */ g("span", {
|
|
1835
|
+
className: H.linkCardTitle,
|
|
1852
1836
|
children: e
|
|
1853
1837
|
}) }),
|
|
1854
|
-
|
|
1855
|
-
className:
|
|
1856
|
-
children:
|
|
1838
|
+
n && /* @__PURE__ */ g(Mn, { children: /* @__PURE__ */ g("span", {
|
|
1839
|
+
className: H.linkCardDescription,
|
|
1840
|
+
children: n
|
|
1857
1841
|
}) })
|
|
1858
1842
|
]
|
|
1859
1843
|
})
|
|
1860
1844
|
});
|
|
1861
1845
|
}
|
|
1862
|
-
|
|
1863
|
-
var
|
|
1846
|
+
Ui.displayName = "NavigationMenu.LinkCard";
|
|
1847
|
+
var Wi = {
|
|
1864
1848
|
flyoutLink: "imf-ui-navigation-menu-flyout-link-module-flyoutLink",
|
|
1865
1849
|
linkArrow: "imf-ui-navigation-menu-flyout-link-module-linkArrow"
|
|
1866
|
-
},
|
|
1867
|
-
function
|
|
1868
|
-
return /* @__PURE__ */
|
|
1850
|
+
}, Gi = m(Wi.flyoutLink);
|
|
1851
|
+
function Ki({ children: e, render: n, ...r }) {
|
|
1852
|
+
return /* @__PURE__ */ g(T.Link, {
|
|
1869
1853
|
...r,
|
|
1870
1854
|
render: n,
|
|
1871
1855
|
"data-imf-ui-component": "NavigationMenu.FlyoutLink",
|
|
1872
|
-
className: (
|
|
1873
|
-
children: n ?
|
|
1874
|
-
className:
|
|
1856
|
+
className: (e) => Gi({ className: t(r.className, e) }),
|
|
1857
|
+
children: n ? e : /* @__PURE__ */ _(xe, { children: [e, /* @__PURE__ */ g("span", {
|
|
1858
|
+
className: Wi.linkArrow,
|
|
1875
1859
|
"aria-hidden": !0,
|
|
1876
|
-
children: /* @__PURE__ */
|
|
1877
|
-
glyph:
|
|
1860
|
+
children: /* @__PURE__ */ g(p, {
|
|
1861
|
+
glyph: f,
|
|
1878
1862
|
size: 14
|
|
1879
1863
|
})
|
|
1880
1864
|
})] })
|
|
1881
1865
|
});
|
|
1882
1866
|
}
|
|
1883
|
-
|
|
1867
|
+
Ki.displayName = "NavigationMenu.FlyoutLink";
|
|
1884
1868
|
//#endregion
|
|
1885
1869
|
//#region src/breakpoints/registry.ts
|
|
1886
|
-
var
|
|
1870
|
+
var qi = {
|
|
1887
1871
|
mobile: 375,
|
|
1888
1872
|
sm: 640,
|
|
1889
1873
|
md: 768,
|
|
@@ -1892,16 +1876,16 @@ var Gi = {
|
|
|
1892
1876
|
};
|
|
1893
1877
|
//#endregion
|
|
1894
1878
|
//#region src/breakpoints/min-width.ts
|
|
1895
|
-
function
|
|
1896
|
-
return `(min-width: ${String(
|
|
1879
|
+
function Ji(e) {
|
|
1880
|
+
return `(min-width: ${String(qi[e])}px)`;
|
|
1897
1881
|
}
|
|
1898
1882
|
//#endregion
|
|
1899
1883
|
//#region src/config.ts
|
|
1900
|
-
var
|
|
1901
|
-
cssVarPrefix:
|
|
1884
|
+
var Yi = "imf-ui", U = {
|
|
1885
|
+
cssVarPrefix: Yi,
|
|
1902
1886
|
colorScheme: {
|
|
1903
|
-
storageKey: `${
|
|
1904
|
-
attr: `data-${
|
|
1887
|
+
storageKey: `${Yi}-color-scheme`,
|
|
1888
|
+
attr: `data-${Yi}-color-scheme`,
|
|
1905
1889
|
options: [
|
|
1906
1890
|
"light",
|
|
1907
1891
|
"system",
|
|
@@ -1911,49 +1895,49 @@ var qi = "imf-ui", W = {
|
|
|
1911
1895
|
};
|
|
1912
1896
|
//#endregion
|
|
1913
1897
|
//#region src/hooks/use-color-scheme.ts
|
|
1914
|
-
function
|
|
1898
|
+
function Xi() {
|
|
1915
1899
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1916
1900
|
}
|
|
1917
|
-
function
|
|
1901
|
+
function Zi(e) {
|
|
1918
1902
|
return e === "light" || e === "dark" || e === "system" ? e : "system";
|
|
1919
1903
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
1904
|
+
function Qi() {
|
|
1905
|
+
return Zi(localStorage.getItem(U.colorScheme.storageKey));
|
|
1922
1906
|
}
|
|
1923
|
-
function
|
|
1924
|
-
let t = e !== void 0, [n, r] =
|
|
1925
|
-
|
|
1907
|
+
function $i({ value: e } = {}) {
|
|
1908
|
+
let t = e !== void 0, [n, r] = v(() => e ?? Qi()), i = e ?? n, [a, o] = v(() => i === "system" ? Xi() : i);
|
|
1909
|
+
Te(function() {
|
|
1926
1910
|
if (i !== "system") {
|
|
1927
|
-
document.documentElement.setAttribute(
|
|
1911
|
+
document.documentElement.setAttribute(U.colorScheme.attr, i), o(i);
|
|
1928
1912
|
return;
|
|
1929
1913
|
}
|
|
1930
1914
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
|
|
1931
|
-
document.documentElement.setAttribute(
|
|
1915
|
+
document.documentElement.setAttribute(U.colorScheme.attr, e), o(e);
|
|
1932
1916
|
};
|
|
1933
|
-
t(
|
|
1917
|
+
t(Xi());
|
|
1934
1918
|
let n = (e) => t(e.matches ? "dark" : "light");
|
|
1935
1919
|
return e.addEventListener("change", n), function() {
|
|
1936
1920
|
e.removeEventListener("change", n);
|
|
1937
1921
|
};
|
|
1938
1922
|
}, [i]);
|
|
1939
1923
|
function s(e) {
|
|
1940
|
-
t || (e === "system" ? localStorage.removeItem(
|
|
1924
|
+
t || (e === "system" ? localStorage.removeItem(U.colorScheme.storageKey) : localStorage.setItem(U.colorScheme.storageKey, e), r(e));
|
|
1941
1925
|
}
|
|
1942
1926
|
return {
|
|
1943
1927
|
colorScheme: i,
|
|
1944
1928
|
resolvedColorScheme: a,
|
|
1945
1929
|
setColorScheme: s,
|
|
1946
|
-
colorSchemeOptions:
|
|
1930
|
+
colorSchemeOptions: U.colorScheme.options
|
|
1947
1931
|
};
|
|
1948
1932
|
}
|
|
1949
1933
|
//#endregion
|
|
1950
1934
|
//#region src/hooks/use-media-query.ts
|
|
1951
|
-
function
|
|
1935
|
+
function ea(e, t) {
|
|
1952
1936
|
return typeof t == "boolean" ? t : typeof window < "u" && "matchMedia" in window ? window.matchMedia(e).matches : !1;
|
|
1953
1937
|
}
|
|
1954
|
-
function
|
|
1955
|
-
let [r, i] =
|
|
1956
|
-
return
|
|
1938
|
+
function ta(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0 }) {
|
|
1939
|
+
let [r, i] = v(n ? t : ea(e));
|
|
1940
|
+
return Te(() => {
|
|
1957
1941
|
try {
|
|
1958
1942
|
if ("matchMedia" in window) {
|
|
1959
1943
|
let t = window.matchMedia(e);
|
|
@@ -1968,7 +1952,7 @@ function $i(e, t, { getInitialValueInEffect: n } = { getInitialValueInEffect: !0
|
|
|
1968
1952
|
}
|
|
1969
1953
|
}, [e]), r ?? !1;
|
|
1970
1954
|
}
|
|
1971
|
-
var
|
|
1955
|
+
var W = {
|
|
1972
1956
|
submenuContent: "imf-ui-navigation-menu-inline-submenu-module-submenuContent",
|
|
1973
1957
|
submenuDescription: "imf-ui-navigation-menu-inline-submenu-module-submenuDescription",
|
|
1974
1958
|
submenuHint: "imf-ui-navigation-menu-inline-submenu-module-submenuHint",
|
|
@@ -1983,44 +1967,44 @@ var G = {
|
|
|
1983
1967
|
};
|
|
1984
1968
|
//#endregion
|
|
1985
1969
|
//#region src/components/navigation-menu/subs/inline-submenu.tsx
|
|
1986
|
-
function
|
|
1987
|
-
let n =
|
|
1988
|
-
return /* @__PURE__ */
|
|
1970
|
+
function na({ items: e, defaultValue: t }) {
|
|
1971
|
+
let n = ta(Ji("md"), !0);
|
|
1972
|
+
return /* @__PURE__ */ g(T.Root, {
|
|
1989
1973
|
orientation: n ? "vertical" : "horizontal",
|
|
1990
1974
|
defaultValue: t,
|
|
1991
1975
|
"data-imf-ui-component": "NavigationMenu.Root",
|
|
1992
1976
|
"data-orientation": n ? "vertical" : "horizontal",
|
|
1993
|
-
className:
|
|
1994
|
-
children: /* @__PURE__ */
|
|
1995
|
-
className:
|
|
1996
|
-
children: [/* @__PURE__ */
|
|
1977
|
+
className: W.submenuRoot,
|
|
1978
|
+
children: /* @__PURE__ */ _("div", {
|
|
1979
|
+
className: W.submenuLayout,
|
|
1980
|
+
children: [/* @__PURE__ */ g(T.List, {
|
|
1997
1981
|
"data-imf-ui-component": "NavigationMenu.List",
|
|
1998
|
-
className:
|
|
1999
|
-
children: e.map((e) => /* @__PURE__ */
|
|
1982
|
+
className: W.submenuList,
|
|
1983
|
+
children: e.map((e) => /* @__PURE__ */ _(T.Item, {
|
|
2000
1984
|
value: e.value,
|
|
2001
1985
|
"data-imf-ui-component": "NavigationMenu.Item",
|
|
2002
|
-
children: [/* @__PURE__ */
|
|
1986
|
+
children: [/* @__PURE__ */ _(T.Trigger, {
|
|
2003
1987
|
"data-imf-ui-component": "NavigationMenu.Trigger",
|
|
2004
|
-
className:
|
|
2005
|
-
children: [/* @__PURE__ */
|
|
2006
|
-
className:
|
|
1988
|
+
className: W.submenuTrigger,
|
|
1989
|
+
children: [/* @__PURE__ */ g("span", {
|
|
1990
|
+
className: W.submenuLabel,
|
|
2007
1991
|
children: e.label
|
|
2008
|
-
}), e.hint && /* @__PURE__ */
|
|
2009
|
-
className:
|
|
1992
|
+
}), e.hint && /* @__PURE__ */ g("span", {
|
|
1993
|
+
className: W.submenuHint,
|
|
2010
1994
|
children: e.hint
|
|
2011
1995
|
})]
|
|
2012
|
-
}), /* @__PURE__ */
|
|
1996
|
+
}), /* @__PURE__ */ _(T.Content, {
|
|
2013
1997
|
"data-imf-ui-component": "NavigationMenu.Content",
|
|
2014
|
-
className:
|
|
2015
|
-
children: [/* @__PURE__ */
|
|
2016
|
-
className:
|
|
1998
|
+
className: W.submenuContent,
|
|
1999
|
+
children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h4", {
|
|
2000
|
+
className: W.submenuTitle,
|
|
2017
2001
|
children: e.title
|
|
2018
|
-
}), e.description && /* @__PURE__ */
|
|
2019
|
-
className:
|
|
2002
|
+
}), e.description && /* @__PURE__ */ g("p", {
|
|
2003
|
+
className: W.submenuDescription,
|
|
2020
2004
|
children: e.description
|
|
2021
|
-
})] }), /* @__PURE__ */
|
|
2022
|
-
className:
|
|
2023
|
-
children: e.links.map((e, t) => /* @__PURE__ */
|
|
2005
|
+
})] }), /* @__PURE__ */ g("ul", {
|
|
2006
|
+
className: W.submenuLinkList,
|
|
2007
|
+
children: e.links.map((e, t) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(Ui, {
|
|
2024
2008
|
href: e.href,
|
|
2025
2009
|
title: e.title,
|
|
2026
2010
|
description: e.description
|
|
@@ -2028,37 +2012,37 @@ function ea({ items: e, defaultValue: t }) {
|
|
|
2028
2012
|
})]
|
|
2029
2013
|
})]
|
|
2030
2014
|
}, e.value))
|
|
2031
|
-
}), /* @__PURE__ */
|
|
2015
|
+
}), /* @__PURE__ */ g(T.Viewport, {
|
|
2032
2016
|
"data-imf-ui-component": "NavigationMenu.Viewport",
|
|
2033
|
-
className:
|
|
2017
|
+
className: W.submenuViewport
|
|
2034
2018
|
})]
|
|
2035
2019
|
})
|
|
2036
2020
|
});
|
|
2037
2021
|
}
|
|
2038
|
-
|
|
2022
|
+
na.displayName = "NavigationMenu.InlineSubmenu";
|
|
2039
2023
|
//#endregion
|
|
2040
2024
|
//#region src/components/navigation-menu/navigation-menu.tsx
|
|
2041
|
-
var
|
|
2042
|
-
Arrow: () =>
|
|
2043
|
-
Backdrop: () =>
|
|
2044
|
-
Content: () =>
|
|
2045
|
-
FlyoutLink: () =>
|
|
2046
|
-
Icon: () =>
|
|
2047
|
-
InlineSubmenu: () =>
|
|
2048
|
-
Item: () =>
|
|
2049
|
-
Link: () =>
|
|
2050
|
-
LinkCard: () =>
|
|
2051
|
-
LinkList: () =>
|
|
2052
|
-
List: () =>
|
|
2053
|
-
Popup: () =>
|
|
2054
|
-
Portal: () =>
|
|
2055
|
-
Positioner: () =>
|
|
2056
|
-
Root: () =>
|
|
2057
|
-
Trigger: () =>
|
|
2058
|
-
Viewport: () =>
|
|
2059
|
-
}),
|
|
2025
|
+
var ra = /* @__PURE__ */ e({
|
|
2026
|
+
Arrow: () => Ii,
|
|
2027
|
+
Backdrop: () => Li,
|
|
2028
|
+
Content: () => Si,
|
|
2029
|
+
FlyoutLink: () => Ki,
|
|
2030
|
+
Icon: () => Oi,
|
|
2031
|
+
InlineSubmenu: () => na,
|
|
2032
|
+
Item: () => xi,
|
|
2033
|
+
Link: () => Vi,
|
|
2034
|
+
LinkCard: () => Ui,
|
|
2035
|
+
LinkList: () => Hi,
|
|
2036
|
+
List: () => bi,
|
|
2037
|
+
Popup: () => Fi,
|
|
2038
|
+
Portal: () => Ni,
|
|
2039
|
+
Positioner: () => Pi,
|
|
2040
|
+
Root: () => yi,
|
|
2041
|
+
Trigger: () => Di,
|
|
2042
|
+
Viewport: () => Ci
|
|
2043
|
+
}), ia = {
|
|
2060
2044
|
name: "NavigationMenu",
|
|
2061
|
-
category:
|
|
2045
|
+
category: l.display,
|
|
2062
2046
|
status: "experimental",
|
|
2063
2047
|
namespace: !0,
|
|
2064
2048
|
description: "Navigation menu with horizontal or vertical triggers and anchored flyout panels. Also called a menu bar or mega menu; it supports links, rich cards, and nested navigation.",
|
|
@@ -2069,14 +2053,14 @@ var ta = /* @__PURE__ */ e({
|
|
|
2069
2053
|
docLink: "https://base-ui.com/react/components/navigation-menu",
|
|
2070
2054
|
llmDocLink: "https://base-ui.com/react/components/navigation-menu.md"
|
|
2071
2055
|
}
|
|
2072
|
-
},
|
|
2056
|
+
}, G = {
|
|
2073
2057
|
fill: "imf-ui-spinner-module-fill",
|
|
2074
2058
|
glyph: "imf-ui-spinner-module-glyph",
|
|
2075
2059
|
root: "imf-ui-spinner-module-root",
|
|
2076
2060
|
sizeLg: "imf-ui-spinner-module-sizeLg",
|
|
2077
2061
|
sizeMd: "imf-ui-spinner-module-sizeMd",
|
|
2078
2062
|
sizeSm: "imf-ui-spinner-module-sizeSm"
|
|
2079
|
-
},
|
|
2063
|
+
}, K = {
|
|
2080
2064
|
HALF: 8,
|
|
2081
2065
|
INSET: -11,
|
|
2082
2066
|
TILT0: -.44,
|
|
@@ -2085,16 +2069,16 @@ var ta = /* @__PURE__ */ e({
|
|
|
2085
2069
|
BR_S: 2.1,
|
|
2086
2070
|
SWAY: 11.5,
|
|
2087
2071
|
SWAY_RATIO: 1.35
|
|
2088
|
-
},
|
|
2072
|
+
}, aa = 100 / 2, oa = [
|
|
2089
2073
|
[0, 0],
|
|
2090
2074
|
[100, 0],
|
|
2091
2075
|
[100, 100],
|
|
2092
2076
|
[0, 100]
|
|
2093
2077
|
];
|
|
2094
|
-
function
|
|
2078
|
+
function sa(e, t, n, r) {
|
|
2095
2079
|
let i = [], a = (i) => n * (i[1] - t) - r * (i[0] - e) >= 0;
|
|
2096
2080
|
for (let o = 0; o < 4; o++) {
|
|
2097
|
-
let s =
|
|
2081
|
+
let s = oa[o], c = oa[(o + 1) % 4], l = a(s), u = a(c);
|
|
2098
2082
|
if (l && i.push(s), l !== u) {
|
|
2099
2083
|
let a = ((e - s[0]) * r - (t - s[1]) * n) / ((c[0] - s[0]) * r - (c[1] - s[1]) * n);
|
|
2100
2084
|
i.push([s[0] + a * (c[0] - s[0]), s[1] + a * (c[1] - s[1])]);
|
|
@@ -2102,7 +2086,7 @@ function aa(e, t, n, r) {
|
|
|
2102
2086
|
}
|
|
2103
2087
|
return i;
|
|
2104
2088
|
}
|
|
2105
|
-
function
|
|
2089
|
+
function ca(e, t) {
|
|
2106
2090
|
let n = 0, r = Infinity;
|
|
2107
2091
|
for (let i = 0; i < e.length; i++) {
|
|
2108
2092
|
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;
|
|
@@ -2114,69 +2098,69 @@ function oa(e, t) {
|
|
|
2114
2098
|
...e.slice(n + 1)
|
|
2115
2099
|
];
|
|
2116
2100
|
}
|
|
2117
|
-
function
|
|
2118
|
-
let s =
|
|
2119
|
-
return
|
|
2101
|
+
function la(e, t, n, r, i, a, o) {
|
|
2102
|
+
let s = aa + e * t * a, c = aa + e * t * o, l = e * n, u = s + e * r * l - e * a * K.INSET, d = c + e * i * l - e * o * K.INSET;
|
|
2103
|
+
return ca(sa(s, c, e * r, e * i), [u, d]);
|
|
2120
2104
|
}
|
|
2121
|
-
function
|
|
2122
|
-
let t =
|
|
2123
|
-
return [la(
|
|
2105
|
+
function ua(e) {
|
|
2106
|
+
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;
|
|
2107
|
+
return [da(la(1, r, i, a, o, s, c)), da(la(-1, r, i, a, o, s, c))];
|
|
2124
2108
|
}
|
|
2125
|
-
function
|
|
2109
|
+
function da(e) {
|
|
2126
2110
|
return "M" + e.map((e) => e[0].toFixed(2) + " " + e[1].toFixed(2)).join("L") + "Z";
|
|
2127
2111
|
}
|
|
2128
|
-
var
|
|
2129
|
-
sm:
|
|
2130
|
-
md:
|
|
2131
|
-
lg:
|
|
2112
|
+
var fa = K.ROT_S * 1e3, pa = m(G.root, { variants: { size: {
|
|
2113
|
+
sm: G.sizeSm,
|
|
2114
|
+
md: G.sizeMd,
|
|
2115
|
+
lg: G.sizeLg
|
|
2132
2116
|
} } });
|
|
2133
|
-
function
|
|
2134
|
-
let
|
|
2135
|
-
|
|
2136
|
-
let e = 0, t = performance.now(), n = (
|
|
2137
|
-
let [o, s] =
|
|
2138
|
-
|
|
2117
|
+
function ma({ size: e = "md", label: t = "Loading", ...n }) {
|
|
2118
|
+
let r = Ee(null), i = Ee(null);
|
|
2119
|
+
Te(function() {
|
|
2120
|
+
let e = 0, t = performance.now(), n = (a) => {
|
|
2121
|
+
let [o, s] = ua((a - t) % fa);
|
|
2122
|
+
r.current?.setAttribute("d", o), i.current?.setAttribute("d", s), e = requestAnimationFrame(n);
|
|
2139
2123
|
};
|
|
2140
2124
|
return e = requestAnimationFrame(n), function() {
|
|
2141
2125
|
cancelAnimationFrame(e);
|
|
2142
2126
|
};
|
|
2143
2127
|
}, []);
|
|
2144
|
-
let [
|
|
2145
|
-
return /* @__PURE__ */
|
|
2146
|
-
...
|
|
2128
|
+
let [a, o] = ua(0);
|
|
2129
|
+
return /* @__PURE__ */ g("span", {
|
|
2130
|
+
...n,
|
|
2147
2131
|
"data-imf-ui-component": "Spinner",
|
|
2148
|
-
className:
|
|
2132
|
+
className: pa({
|
|
2149
2133
|
size: e,
|
|
2150
|
-
className: n
|
|
2134
|
+
className: n.className
|
|
2151
2135
|
}),
|
|
2152
2136
|
role: "status",
|
|
2153
2137
|
"aria-label": t,
|
|
2154
|
-
children: /* @__PURE__ */
|
|
2138
|
+
children: /* @__PURE__ */ _("svg", {
|
|
2155
2139
|
viewBox: "0 0 100 100",
|
|
2156
2140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2157
2141
|
"aria-hidden": "true",
|
|
2158
|
-
className:
|
|
2159
|
-
children: [/* @__PURE__ */
|
|
2142
|
+
className: G.glyph,
|
|
2143
|
+
children: [/* @__PURE__ */ g("path", {
|
|
2144
|
+
ref: r,
|
|
2145
|
+
className: G.fill,
|
|
2146
|
+
d: a
|
|
2147
|
+
}), /* @__PURE__ */ g("path", {
|
|
2160
2148
|
ref: i,
|
|
2161
|
-
className:
|
|
2149
|
+
className: G.fill,
|
|
2162
2150
|
d: o
|
|
2163
|
-
}), /* @__PURE__ */ _("path", {
|
|
2164
|
-
ref: a,
|
|
2165
|
-
className: K.fill,
|
|
2166
|
-
d: s
|
|
2167
2151
|
})]
|
|
2168
2152
|
})
|
|
2169
2153
|
});
|
|
2170
2154
|
}
|
|
2171
2155
|
//#endregion
|
|
2172
2156
|
//#region src/components/spinner/spinner.meta.ts
|
|
2173
|
-
var
|
|
2157
|
+
var ha = {
|
|
2174
2158
|
name: "Spinner",
|
|
2175
|
-
category:
|
|
2159
|
+
category: l.display,
|
|
2176
2160
|
status: "stable",
|
|
2177
2161
|
description: "Indeterminate loading indicator. Also called a loader or progress spinner.",
|
|
2178
2162
|
origin: "native"
|
|
2179
|
-
},
|
|
2163
|
+
}, q = {
|
|
2180
2164
|
body: "imf-ui-table-module-body",
|
|
2181
2165
|
cell: "imf-ui-table-module-cell",
|
|
2182
2166
|
header: "imf-ui-table-module-header",
|
|
@@ -2185,114 +2169,114 @@ var pa = {
|
|
|
2185
2169
|
root: "imf-ui-table-module-root",
|
|
2186
2170
|
row: "imf-ui-table-module-row",
|
|
2187
2171
|
sortIndicator: "imf-ui-table-module-sortIndicator"
|
|
2188
|
-
},
|
|
2189
|
-
Body: () =>
|
|
2190
|
-
Cell: () =>
|
|
2191
|
-
Header: () =>
|
|
2192
|
-
HeaderButton: () =>
|
|
2193
|
-
HeaderCell: () =>
|
|
2194
|
-
Root: () =>
|
|
2195
|
-
Row: () =>
|
|
2196
|
-
SortableHeaderCell: () =>
|
|
2197
|
-
}),
|
|
2198
|
-
function
|
|
2199
|
-
return /* @__PURE__ */
|
|
2200
|
-
...
|
|
2172
|
+
}, ga = /* @__PURE__ */ e({
|
|
2173
|
+
Body: () => Da,
|
|
2174
|
+
Cell: () => ka,
|
|
2175
|
+
Header: () => Ea,
|
|
2176
|
+
HeaderButton: () => Aa,
|
|
2177
|
+
HeaderCell: () => J,
|
|
2178
|
+
Root: () => Ta,
|
|
2179
|
+
Row: () => Oa,
|
|
2180
|
+
SortableHeaderCell: () => Na
|
|
2181
|
+
}), _a = m(q.root), va = m(q.header), ya = m(q.body), ba = m(q.row), xa = m(q.headerCell), Sa = m(q.cell), Ca = m(q.headerButton), wa = m(q.sortIndicator);
|
|
2182
|
+
function Ta(e) {
|
|
2183
|
+
return /* @__PURE__ */ g("table", {
|
|
2184
|
+
...e,
|
|
2201
2185
|
"data-imf-ui-component": "Table.Root",
|
|
2202
|
-
className:
|
|
2186
|
+
className: _a({ className: e.className })
|
|
2203
2187
|
});
|
|
2204
2188
|
}
|
|
2205
|
-
|
|
2206
|
-
function
|
|
2207
|
-
return /* @__PURE__ */
|
|
2208
|
-
...
|
|
2189
|
+
Ta.displayName = "Table.Root";
|
|
2190
|
+
function Ea(e) {
|
|
2191
|
+
return /* @__PURE__ */ g("thead", {
|
|
2192
|
+
...e,
|
|
2209
2193
|
"data-imf-ui-component": "Table.Header",
|
|
2210
|
-
className:
|
|
2194
|
+
className: va({ className: e.className })
|
|
2211
2195
|
});
|
|
2212
2196
|
}
|
|
2213
|
-
|
|
2214
|
-
function
|
|
2215
|
-
return /* @__PURE__ */
|
|
2216
|
-
...
|
|
2197
|
+
Ea.displayName = "Table.Header";
|
|
2198
|
+
function Da(e) {
|
|
2199
|
+
return /* @__PURE__ */ g("tbody", {
|
|
2200
|
+
...e,
|
|
2217
2201
|
"data-imf-ui-component": "Table.Body",
|
|
2218
|
-
className:
|
|
2202
|
+
className: ya({ className: e.className })
|
|
2219
2203
|
});
|
|
2220
2204
|
}
|
|
2221
|
-
|
|
2222
|
-
function
|
|
2223
|
-
return /* @__PURE__ */
|
|
2224
|
-
...
|
|
2205
|
+
Da.displayName = "Table.Body";
|
|
2206
|
+
function Oa(e) {
|
|
2207
|
+
return /* @__PURE__ */ g("tr", {
|
|
2208
|
+
...e,
|
|
2225
2209
|
"data-imf-ui-component": "Table.Row",
|
|
2226
|
-
className:
|
|
2210
|
+
className: ba({ className: e.className })
|
|
2227
2211
|
});
|
|
2228
2212
|
}
|
|
2229
|
-
|
|
2230
|
-
function
|
|
2231
|
-
return /* @__PURE__ */
|
|
2232
|
-
...
|
|
2213
|
+
Oa.displayName = "Table.Row";
|
|
2214
|
+
function J(e) {
|
|
2215
|
+
return /* @__PURE__ */ g("th", {
|
|
2216
|
+
...e,
|
|
2233
2217
|
"data-imf-ui-component": "Table.HeaderCell",
|
|
2234
|
-
className:
|
|
2218
|
+
className: xa({ className: e.className })
|
|
2235
2219
|
});
|
|
2236
2220
|
}
|
|
2237
|
-
|
|
2238
|
-
function
|
|
2239
|
-
return /* @__PURE__ */
|
|
2240
|
-
...
|
|
2221
|
+
J.displayName = "Table.HeaderCell";
|
|
2222
|
+
function ka(e) {
|
|
2223
|
+
return /* @__PURE__ */ g("td", {
|
|
2224
|
+
...e,
|
|
2241
2225
|
"data-imf-ui-component": "Table.Cell",
|
|
2242
|
-
className:
|
|
2226
|
+
className: Sa({ className: e.className })
|
|
2243
2227
|
});
|
|
2244
2228
|
}
|
|
2245
|
-
|
|
2246
|
-
function
|
|
2247
|
-
return /* @__PURE__ */
|
|
2248
|
-
...
|
|
2249
|
-
type:
|
|
2229
|
+
ka.displayName = "Table.Cell";
|
|
2230
|
+
function Aa({ type: e = "button", ...t }) {
|
|
2231
|
+
return /* @__PURE__ */ g("button", {
|
|
2232
|
+
...t,
|
|
2233
|
+
type: e,
|
|
2250
2234
|
"data-imf-ui-component": "Table.HeaderButton",
|
|
2251
|
-
className:
|
|
2235
|
+
className: Ca({ className: t.className })
|
|
2252
2236
|
});
|
|
2253
2237
|
}
|
|
2254
|
-
|
|
2255
|
-
function
|
|
2238
|
+
Aa.displayName = "Table.HeaderButton";
|
|
2239
|
+
function ja(e) {
|
|
2256
2240
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
2257
2241
|
}
|
|
2258
|
-
function
|
|
2259
|
-
let t = e === "asc" ?
|
|
2260
|
-
return /* @__PURE__ */
|
|
2261
|
-
className:
|
|
2242
|
+
function Ma({ sorted: e }) {
|
|
2243
|
+
let t = e === "asc" ? de : e === "desc" ? u : d;
|
|
2244
|
+
return /* @__PURE__ */ g("span", {
|
|
2245
|
+
className: wa(),
|
|
2262
2246
|
"data-sorted": e || void 0,
|
|
2263
2247
|
"aria-hidden": !0,
|
|
2264
|
-
children: /* @__PURE__ */
|
|
2248
|
+
children: /* @__PURE__ */ g(p, {
|
|
2265
2249
|
glyph: t,
|
|
2266
2250
|
size: 14,
|
|
2267
2251
|
strokeWidth: 1.5
|
|
2268
2252
|
})
|
|
2269
2253
|
});
|
|
2270
2254
|
}
|
|
2271
|
-
function
|
|
2272
|
-
return t ? /* @__PURE__ */
|
|
2255
|
+
function Na({ sortDirection: e, onToggle: t, children: n, ...r }) {
|
|
2256
|
+
return t ? /* @__PURE__ */ g(J, {
|
|
2273
2257
|
...r,
|
|
2274
|
-
"aria-sort":
|
|
2275
|
-
children: /* @__PURE__ */
|
|
2258
|
+
"aria-sort": ja(e),
|
|
2259
|
+
children: /* @__PURE__ */ _(Aa, {
|
|
2276
2260
|
onClick: t,
|
|
2277
|
-
children: [n, /* @__PURE__ */
|
|
2261
|
+
children: [n, /* @__PURE__ */ g(Ma, { sorted: e })]
|
|
2278
2262
|
})
|
|
2279
|
-
}) : /* @__PURE__ */
|
|
2263
|
+
}) : /* @__PURE__ */ g(J, {
|
|
2280
2264
|
...r,
|
|
2281
2265
|
children: n
|
|
2282
2266
|
});
|
|
2283
2267
|
}
|
|
2284
|
-
|
|
2268
|
+
Na.displayName = "Table.SortableHeaderCell";
|
|
2285
2269
|
//#endregion
|
|
2286
2270
|
//#region src/components/table/table.meta.ts
|
|
2287
|
-
var
|
|
2271
|
+
var Pa = {
|
|
2288
2272
|
name: "Table",
|
|
2289
|
-
category:
|
|
2273
|
+
category: l.display,
|
|
2290
2274
|
status: "stable",
|
|
2291
2275
|
description: "Presentational table parts for static tabular data. Pair them with a headless table library for sorting, pagination, or selection.",
|
|
2292
2276
|
origin: "native"
|
|
2293
|
-
},
|
|
2277
|
+
}, Fa = {
|
|
2294
2278
|
name: "Tabs",
|
|
2295
|
-
category:
|
|
2279
|
+
category: l.display,
|
|
2296
2280
|
status: "stable",
|
|
2297
2281
|
namespace: !0,
|
|
2298
2282
|
description: "Switches between related panels within one view. Also called a tab strip or tab bar; it supports horizontal and vertical layouts.",
|
|
@@ -2328,21 +2312,21 @@ var Na = {
|
|
|
2328
2312
|
widthContent: "imf-ui-toast-module-widthContent",
|
|
2329
2313
|
widthDefault: "imf-ui-toast-module-widthDefault",
|
|
2330
2314
|
widthWide: "imf-ui-toast-module-widthWide"
|
|
2331
|
-
},
|
|
2332
|
-
Action: () =>
|
|
2333
|
-
Arrow: () =>
|
|
2334
|
-
Close: () =>
|
|
2335
|
-
Content: () =>
|
|
2336
|
-
Description: () =>
|
|
2337
|
-
Portal: () =>
|
|
2338
|
-
Positioner: () =>
|
|
2339
|
-
Provider: () =>
|
|
2340
|
-
Root: () =>
|
|
2341
|
-
Title: () =>
|
|
2342
|
-
Viewport: () =>
|
|
2343
|
-
createToastManager: () =>
|
|
2344
|
-
useToastManager: () =>
|
|
2345
|
-
}),
|
|
2315
|
+
}, Ia = /* @__PURE__ */ e({
|
|
2316
|
+
Action: () => ro,
|
|
2317
|
+
Arrow: () => ao,
|
|
2318
|
+
Close: () => no,
|
|
2319
|
+
Content: () => $a,
|
|
2320
|
+
Description: () => to,
|
|
2321
|
+
Portal: () => Xa,
|
|
2322
|
+
Positioner: () => io,
|
|
2323
|
+
Provider: () => Ya,
|
|
2324
|
+
Root: () => Qa,
|
|
2325
|
+
Title: () => eo,
|
|
2326
|
+
Viewport: () => Za,
|
|
2327
|
+
createToastManager: () => Ja,
|
|
2328
|
+
useToastManager: () => qa
|
|
2329
|
+
}), La = m(Y.portal), Ra = m(Y.viewport, {
|
|
2346
2330
|
variants: {
|
|
2347
2331
|
position: {
|
|
2348
2332
|
"top-left": Y.positionTopLeft,
|
|
@@ -2363,7 +2347,7 @@ var Na = {
|
|
|
2363
2347
|
position: "bottom-center",
|
|
2364
2348
|
width: "default"
|
|
2365
2349
|
}
|
|
2366
|
-
}),
|
|
2350
|
+
}), za = m(Y.root, {
|
|
2367
2351
|
variants: { variant: {
|
|
2368
2352
|
neutral: null,
|
|
2369
2353
|
info: Y.variantInfo,
|
|
@@ -2372,107 +2356,107 @@ var Na = {
|
|
|
2372
2356
|
error: Y.variantError
|
|
2373
2357
|
} },
|
|
2374
2358
|
defaultVariants: { variant: "neutral" }
|
|
2375
|
-
}),
|
|
2376
|
-
function
|
|
2377
|
-
return /* @__PURE__ */
|
|
2359
|
+
}), Ba = m(Y.content), Va = m(Y.title), Ha = m(Y.description), Ua = m(Y.close), Wa = m(Y.action), Ga = m(Y.positioner), Ka = m(Y.arrow), qa = E.useToastManager, Ja = E.createToastManager;
|
|
2360
|
+
function Ya({ timeout: e = 5e3, limit: t = 3, ...n }) {
|
|
2361
|
+
return /* @__PURE__ */ g(E.Provider, {
|
|
2378
2362
|
...n,
|
|
2379
2363
|
timeout: e,
|
|
2380
2364
|
limit: t
|
|
2381
2365
|
});
|
|
2382
2366
|
}
|
|
2383
|
-
|
|
2384
|
-
function
|
|
2385
|
-
return /* @__PURE__ */
|
|
2386
|
-
...
|
|
2367
|
+
Ya.displayName = "Toast.Provider";
|
|
2368
|
+
function Xa(e) {
|
|
2369
|
+
return /* @__PURE__ */ g(E.Portal, {
|
|
2370
|
+
...e,
|
|
2387
2371
|
"data-imf-ui-component": "Toast.Portal",
|
|
2388
|
-
className: (
|
|
2372
|
+
className: (n) => La({ className: t(e.className, n) })
|
|
2389
2373
|
});
|
|
2390
2374
|
}
|
|
2391
|
-
|
|
2392
|
-
function
|
|
2393
|
-
return /* @__PURE__ */
|
|
2375
|
+
Xa.displayName = "Toast.Portal";
|
|
2376
|
+
function Za({ position: e = "bottom-center", width: n = "default", ...r }) {
|
|
2377
|
+
return /* @__PURE__ */ g(E.Viewport, {
|
|
2394
2378
|
...r,
|
|
2395
2379
|
"data-imf-ui-component": "Toast.Viewport",
|
|
2396
|
-
className: (
|
|
2397
|
-
position:
|
|
2380
|
+
className: (i) => Ra({
|
|
2381
|
+
position: e,
|
|
2398
2382
|
width: n,
|
|
2399
|
-
className:
|
|
2383
|
+
className: t(r.className, i)
|
|
2400
2384
|
})
|
|
2401
2385
|
});
|
|
2402
2386
|
}
|
|
2403
|
-
|
|
2404
|
-
function
|
|
2405
|
-
return /* @__PURE__ */
|
|
2387
|
+
Za.displayName = "Toast.Viewport";
|
|
2388
|
+
function Qa({ variant: e = "neutral", ...n }) {
|
|
2389
|
+
return /* @__PURE__ */ g(E.Root, {
|
|
2406
2390
|
...n,
|
|
2407
2391
|
"data-imf-ui-component": "Toast.Root",
|
|
2408
|
-
className: (
|
|
2409
|
-
variant:
|
|
2410
|
-
className:
|
|
2392
|
+
className: (r) => za({
|
|
2393
|
+
variant: e,
|
|
2394
|
+
className: t(n.className, r)
|
|
2411
2395
|
})
|
|
2412
2396
|
});
|
|
2413
2397
|
}
|
|
2414
|
-
|
|
2415
|
-
function
|
|
2416
|
-
return /* @__PURE__ */
|
|
2417
|
-
...
|
|
2398
|
+
Qa.displayName = "Toast.Root";
|
|
2399
|
+
function $a(e) {
|
|
2400
|
+
return /* @__PURE__ */ g(E.Content, {
|
|
2401
|
+
...e,
|
|
2418
2402
|
"data-imf-ui-component": "Toast.Content",
|
|
2419
|
-
className: (
|
|
2403
|
+
className: (n) => Ba({ className: t(e.className, n) })
|
|
2420
2404
|
});
|
|
2421
2405
|
}
|
|
2422
|
-
|
|
2423
|
-
function
|
|
2424
|
-
return /* @__PURE__ */
|
|
2425
|
-
...
|
|
2406
|
+
$a.displayName = "Toast.Content";
|
|
2407
|
+
function eo(e) {
|
|
2408
|
+
return /* @__PURE__ */ g(E.Title, {
|
|
2409
|
+
...e,
|
|
2426
2410
|
"data-imf-ui-component": "Toast.Title",
|
|
2427
|
-
className: (
|
|
2411
|
+
className: (n) => Va({ className: t(e.className, n) })
|
|
2428
2412
|
});
|
|
2429
2413
|
}
|
|
2430
|
-
|
|
2431
|
-
function
|
|
2432
|
-
return /* @__PURE__ */
|
|
2433
|
-
...
|
|
2414
|
+
eo.displayName = "Toast.Title";
|
|
2415
|
+
function to(e) {
|
|
2416
|
+
return /* @__PURE__ */ g(E.Description, {
|
|
2417
|
+
...e,
|
|
2434
2418
|
"data-imf-ui-component": "Toast.Description",
|
|
2435
|
-
className: (
|
|
2419
|
+
className: (n) => Ha({ className: t(e.className, n) })
|
|
2436
2420
|
});
|
|
2437
2421
|
}
|
|
2438
|
-
|
|
2439
|
-
function
|
|
2440
|
-
return /* @__PURE__ */
|
|
2441
|
-
...
|
|
2422
|
+
to.displayName = "Toast.Description";
|
|
2423
|
+
function no(e) {
|
|
2424
|
+
return /* @__PURE__ */ g(E.Close, {
|
|
2425
|
+
...e,
|
|
2442
2426
|
"data-imf-ui-component": "Toast.Close",
|
|
2443
|
-
className: (
|
|
2427
|
+
className: (n) => Ua({ className: t(e.className, n) })
|
|
2444
2428
|
});
|
|
2445
2429
|
}
|
|
2446
|
-
|
|
2447
|
-
function
|
|
2448
|
-
return /* @__PURE__ */
|
|
2449
|
-
...
|
|
2430
|
+
no.displayName = "Toast.Close";
|
|
2431
|
+
function ro(e) {
|
|
2432
|
+
return /* @__PURE__ */ g(E.Action, {
|
|
2433
|
+
...e,
|
|
2450
2434
|
"data-imf-ui-component": "Toast.Action",
|
|
2451
|
-
className: (
|
|
2435
|
+
className: (n) => Wa({ className: t(e.className, n) })
|
|
2452
2436
|
});
|
|
2453
2437
|
}
|
|
2454
|
-
|
|
2455
|
-
function
|
|
2456
|
-
return /* @__PURE__ */
|
|
2457
|
-
...
|
|
2438
|
+
ro.displayName = "Toast.Action";
|
|
2439
|
+
function io(e) {
|
|
2440
|
+
return /* @__PURE__ */ g(E.Positioner, {
|
|
2441
|
+
...e,
|
|
2458
2442
|
"data-imf-ui-component": "Toast.Positioner",
|
|
2459
|
-
className: (
|
|
2443
|
+
className: (n) => Ga({ className: t(e.className, n) })
|
|
2460
2444
|
});
|
|
2461
2445
|
}
|
|
2462
|
-
|
|
2463
|
-
function
|
|
2464
|
-
return /* @__PURE__ */
|
|
2465
|
-
...
|
|
2446
|
+
io.displayName = "Toast.Positioner";
|
|
2447
|
+
function ao(e) {
|
|
2448
|
+
return /* @__PURE__ */ g(E.Arrow, {
|
|
2449
|
+
...e,
|
|
2466
2450
|
"data-imf-ui-component": "Toast.Arrow",
|
|
2467
|
-
className: (
|
|
2451
|
+
className: (n) => Ka({ className: t(e.className, n) })
|
|
2468
2452
|
});
|
|
2469
2453
|
}
|
|
2470
|
-
|
|
2454
|
+
ao.displayName = "Toast.Arrow";
|
|
2471
2455
|
//#endregion
|
|
2472
2456
|
//#region src/components/toast/toast.meta.ts
|
|
2473
|
-
var
|
|
2457
|
+
var oo = {
|
|
2474
2458
|
name: "Toast",
|
|
2475
|
-
category:
|
|
2459
|
+
category: l.display,
|
|
2476
2460
|
status: "experimental",
|
|
2477
2461
|
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.",
|
|
2478
2462
|
origin: "adapted",
|
|
@@ -2497,18 +2481,18 @@ var ao = {
|
|
|
2497
2481
|
variantPrimary: "imf-ui-tooltip-module-variantPrimary",
|
|
2498
2482
|
variantSecondary: "imf-ui-tooltip-module-variantSecondary",
|
|
2499
2483
|
viewport: "imf-ui-tooltip-module-viewport"
|
|
2500
|
-
},
|
|
2501
|
-
Arrow: () =>
|
|
2502
|
-
Inline: () =>
|
|
2503
|
-
Popup: () =>
|
|
2504
|
-
Portal: () =>
|
|
2505
|
-
Positioner: () =>
|
|
2506
|
-
Provider: () =>
|
|
2507
|
-
Root: () =>
|
|
2508
|
-
Trigger: () =>
|
|
2509
|
-
Viewport: () =>
|
|
2510
|
-
createHandle: () =>
|
|
2511
|
-
}),
|
|
2484
|
+
}, so = /* @__PURE__ */ e({
|
|
2485
|
+
Arrow: () => xo,
|
|
2486
|
+
Inline: () => Co,
|
|
2487
|
+
Popup: () => bo,
|
|
2488
|
+
Portal: () => vo,
|
|
2489
|
+
Positioner: () => yo,
|
|
2490
|
+
Provider: () => ho,
|
|
2491
|
+
Root: () => go,
|
|
2492
|
+
Trigger: () => _o,
|
|
2493
|
+
Viewport: () => So,
|
|
2494
|
+
createHandle: () => mo
|
|
2495
|
+
}), co = m(X.trigger, { variants: {
|
|
2512
2496
|
variant: {
|
|
2513
2497
|
primary: X.variantPrimary,
|
|
2514
2498
|
secondary: X.variantSecondary,
|
|
@@ -2516,90 +2500,90 @@ var ao = {
|
|
|
2516
2500
|
negative: X.variantNegative
|
|
2517
2501
|
},
|
|
2518
2502
|
inline: { true: X.triggerInline }
|
|
2519
|
-
} }),
|
|
2503
|
+
} }), lo = m(X.positioner), uo = m(X.popup, { variants: { variant: {
|
|
2520
2504
|
primary: X.popupVariantPrimary,
|
|
2521
2505
|
secondary: X.popupVariantSecondary,
|
|
2522
2506
|
positive: X.popupVariantPositive,
|
|
2523
2507
|
negative: X.popupVariantNegative
|
|
2524
|
-
} } }),
|
|
2525
|
-
function mo(e) {
|
|
2526
|
-
return /* @__PURE__ */ _(D.Provider, { ...e });
|
|
2527
|
-
}
|
|
2528
|
-
mo.displayName = "Tooltip.Provider";
|
|
2508
|
+
} } }), fo = m(X.arrow), po = m(X.viewport), mo = D.createHandle;
|
|
2529
2509
|
function ho(e) {
|
|
2530
|
-
return /* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ g(D.Provider, { ...e });
|
|
2531
2511
|
}
|
|
2532
|
-
ho.displayName = "Tooltip.
|
|
2533
|
-
function go(
|
|
2534
|
-
return /* @__PURE__ */
|
|
2512
|
+
ho.displayName = "Tooltip.Provider";
|
|
2513
|
+
function go(e) {
|
|
2514
|
+
return /* @__PURE__ */ g(D.Root, { ...e });
|
|
2515
|
+
}
|
|
2516
|
+
go.displayName = "Tooltip.Root";
|
|
2517
|
+
function _o({ variant: e = "secondary", inline: n = !1, delay: r = 250, ...i }) {
|
|
2518
|
+
return /* @__PURE__ */ g(D.Trigger, {
|
|
2535
2519
|
...i,
|
|
2536
|
-
delay:
|
|
2520
|
+
delay: r,
|
|
2537
2521
|
"data-imf-ui-component": "Tooltip.Trigger",
|
|
2538
|
-
className: (
|
|
2522
|
+
className: (r) => co({
|
|
2539
2523
|
variant: e,
|
|
2540
|
-
inline:
|
|
2541
|
-
className:
|
|
2524
|
+
inline: n,
|
|
2525
|
+
className: t(i.className, r)
|
|
2542
2526
|
})
|
|
2543
2527
|
});
|
|
2544
2528
|
}
|
|
2545
|
-
|
|
2546
|
-
function
|
|
2547
|
-
return /* @__PURE__ */
|
|
2529
|
+
_o.displayName = "Tooltip.Trigger";
|
|
2530
|
+
function vo(e) {
|
|
2531
|
+
return /* @__PURE__ */ g(D.Portal, { ...e });
|
|
2548
2532
|
}
|
|
2549
|
-
|
|
2550
|
-
function
|
|
2551
|
-
return /* @__PURE__ */
|
|
2533
|
+
vo.displayName = "Tooltip.Portal";
|
|
2534
|
+
function yo({ sideOffset: e = 13, ...n }) {
|
|
2535
|
+
return /* @__PURE__ */ g(D.Positioner, {
|
|
2552
2536
|
...n,
|
|
2553
|
-
sideOffset:
|
|
2537
|
+
sideOffset: e,
|
|
2554
2538
|
"data-imf-ui-component": "Tooltip.Positioner",
|
|
2555
|
-
className: (
|
|
2539
|
+
className: (e) => lo({ className: t(n.className, e) })
|
|
2556
2540
|
});
|
|
2557
2541
|
}
|
|
2558
|
-
|
|
2559
|
-
function
|
|
2560
|
-
return /* @__PURE__ */
|
|
2542
|
+
yo.displayName = "Tooltip.Positioner";
|
|
2543
|
+
function bo({ variant: e, ...n }) {
|
|
2544
|
+
return /* @__PURE__ */ g(D.Popup, {
|
|
2561
2545
|
...n,
|
|
2562
2546
|
"data-imf-ui-component": "Tooltip.Popup",
|
|
2563
|
-
className: (
|
|
2564
|
-
variant:
|
|
2565
|
-
className:
|
|
2547
|
+
className: (r) => uo({
|
|
2548
|
+
variant: e,
|
|
2549
|
+
className: t(n.className, r)
|
|
2566
2550
|
})
|
|
2567
2551
|
});
|
|
2568
2552
|
}
|
|
2569
|
-
|
|
2570
|
-
function
|
|
2571
|
-
return /* @__PURE__ */
|
|
2572
|
-
...
|
|
2553
|
+
bo.displayName = "Tooltip.Popup";
|
|
2554
|
+
function xo(e) {
|
|
2555
|
+
return /* @__PURE__ */ g(D.Arrow, {
|
|
2556
|
+
...e,
|
|
2573
2557
|
"data-imf-ui-component": "Tooltip.Arrow",
|
|
2574
|
-
className: (
|
|
2558
|
+
className: (n) => fo({ className: t(e.className, n) })
|
|
2575
2559
|
});
|
|
2576
2560
|
}
|
|
2577
|
-
|
|
2578
|
-
function
|
|
2579
|
-
return /* @__PURE__ */
|
|
2580
|
-
...
|
|
2561
|
+
xo.displayName = "Tooltip.Arrow";
|
|
2562
|
+
function So(e) {
|
|
2563
|
+
return /* @__PURE__ */ g(D.Viewport, {
|
|
2564
|
+
...e,
|
|
2581
2565
|
"data-imf-ui-component": "Tooltip.Viewport",
|
|
2582
|
-
className: (
|
|
2566
|
+
className: (n) => po({ className: t(e.className, n) })
|
|
2583
2567
|
});
|
|
2584
2568
|
}
|
|
2585
|
-
|
|
2586
|
-
function
|
|
2587
|
-
return /* @__PURE__ */
|
|
2569
|
+
So.displayName = "Tooltip.Viewport";
|
|
2570
|
+
function Co({ trigger: e, children: t, delay: n = 150, side: r = "top", sideOffset: i = 13 }) {
|
|
2571
|
+
return /* @__PURE__ */ _(go, { children: [/* @__PURE__ */ g(_o, {
|
|
2588
2572
|
inline: !0,
|
|
2589
2573
|
delay: n,
|
|
2590
2574
|
children: e
|
|
2591
|
-
}), /* @__PURE__ */
|
|
2575
|
+
}), /* @__PURE__ */ g(vo, { children: /* @__PURE__ */ g(yo, {
|
|
2592
2576
|
side: r,
|
|
2593
2577
|
sideOffset: i,
|
|
2594
|
-
children: /* @__PURE__ */
|
|
2578
|
+
children: /* @__PURE__ */ g(bo, { children: t })
|
|
2595
2579
|
}) })] });
|
|
2596
2580
|
}
|
|
2597
|
-
|
|
2581
|
+
Co.displayName = "Tooltip.Inline";
|
|
2598
2582
|
//#endregion
|
|
2599
2583
|
//#region src/components/tooltip/tooltip.meta.ts
|
|
2600
|
-
var
|
|
2584
|
+
var wo = {
|
|
2601
2585
|
name: "Tooltip",
|
|
2602
|
-
category:
|
|
2586
|
+
category: l.display,
|
|
2603
2587
|
status: "stable",
|
|
2604
2588
|
description: "Hover- or focus-triggered label for brief help about a control or term. Also called a hint; use Popover for a panel with actions.",
|
|
2605
2589
|
origin: "adapted",
|
|
@@ -2637,22 +2621,22 @@ var Co = {
|
|
|
2637
2621
|
variantPrimary: "imf-ui-typo-module-variantPrimary",
|
|
2638
2622
|
variantSupport: "imf-ui-typo-module-variantSupport",
|
|
2639
2623
|
variantWarning: "imf-ui-typo-module-variantWarning"
|
|
2640
|
-
},
|
|
2641
|
-
Blockquote: () =>
|
|
2642
|
-
Detail: () =>
|
|
2643
|
-
H1: () =>
|
|
2644
|
-
H2: () =>
|
|
2645
|
-
H3: () =>
|
|
2646
|
-
H4: () =>
|
|
2647
|
-
Highlight: () =>
|
|
2648
|
-
InlineCode: () =>
|
|
2649
|
-
Lead: () =>
|
|
2650
|
-
Link: () =>
|
|
2651
|
-
OrderedList: () =>
|
|
2652
|
-
P: () =>
|
|
2653
|
-
Small: () =>
|
|
2654
|
-
UnorderedList: () =>
|
|
2655
|
-
}), Q =
|
|
2624
|
+
}, To = /* @__PURE__ */ e({
|
|
2625
|
+
Blockquote: () => Po,
|
|
2626
|
+
Detail: () => Mo,
|
|
2627
|
+
H1: () => Eo,
|
|
2628
|
+
H2: () => Do,
|
|
2629
|
+
H3: () => Oo,
|
|
2630
|
+
H4: () => ko,
|
|
2631
|
+
Highlight: () => Io,
|
|
2632
|
+
InlineCode: () => Fo,
|
|
2633
|
+
Lead: () => jo,
|
|
2634
|
+
Link: () => Lo,
|
|
2635
|
+
OrderedList: () => Ro,
|
|
2636
|
+
P: () => Ao,
|
|
2637
|
+
Small: () => No,
|
|
2638
|
+
UnorderedList: () => zo
|
|
2639
|
+
}), Q = m("", { variants: { variant: {
|
|
2656
2640
|
main: Z.variantMain,
|
|
2657
2641
|
support: Z.variantSupport,
|
|
2658
2642
|
minor: Z.variantMinor,
|
|
@@ -2666,239 +2650,239 @@ var Co = {
|
|
|
2666
2650
|
"accent-1": Z.variantAccent1,
|
|
2667
2651
|
"accent-2": Z.variantAccent2,
|
|
2668
2652
|
"accent-3": Z.variantAccent3
|
|
2669
|
-
} } }), $ =
|
|
2653
|
+
} } }), $ = m("", { variants: { spacing: {
|
|
2670
2654
|
default: Z.spacingDefault,
|
|
2671
2655
|
none: Z.spacingNone
|
|
2672
2656
|
} } });
|
|
2673
|
-
function
|
|
2657
|
+
function Eo({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2674
2658
|
return w({
|
|
2675
2659
|
defaultTagName: "h1",
|
|
2676
|
-
render:
|
|
2660
|
+
render: n,
|
|
2677
2661
|
props: {
|
|
2678
|
-
...C(
|
|
2662
|
+
...C(r, { className: Q({
|
|
2679
2663
|
variant: e,
|
|
2680
|
-
className:
|
|
2664
|
+
className: h(Z.h1, $({ spacing: t }))
|
|
2681
2665
|
}) }),
|
|
2682
2666
|
"data-imf-ui-component": "Typo.H1"
|
|
2683
2667
|
}
|
|
2684
2668
|
});
|
|
2685
2669
|
}
|
|
2686
|
-
|
|
2687
|
-
function
|
|
2670
|
+
Eo.displayName = "Typo.H1";
|
|
2671
|
+
function Do({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2688
2672
|
return w({
|
|
2689
2673
|
defaultTagName: "h2",
|
|
2690
|
-
render:
|
|
2674
|
+
render: n,
|
|
2691
2675
|
props: {
|
|
2692
|
-
...C(
|
|
2676
|
+
...C(r, { className: Q({
|
|
2693
2677
|
variant: e,
|
|
2694
|
-
className:
|
|
2678
|
+
className: h(Z.h2, $({ spacing: t }))
|
|
2695
2679
|
}) }),
|
|
2696
2680
|
"data-imf-ui-component": "Typo.H2"
|
|
2697
2681
|
}
|
|
2698
2682
|
});
|
|
2699
2683
|
}
|
|
2700
|
-
|
|
2701
|
-
function
|
|
2684
|
+
Do.displayName = "Typo.H2";
|
|
2685
|
+
function Oo({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2702
2686
|
return w({
|
|
2703
2687
|
defaultTagName: "h3",
|
|
2704
|
-
render:
|
|
2688
|
+
render: n,
|
|
2705
2689
|
props: {
|
|
2706
|
-
...C(
|
|
2690
|
+
...C(r, { className: Q({
|
|
2707
2691
|
variant: e,
|
|
2708
|
-
className:
|
|
2692
|
+
className: h(Z.h3, $({ spacing: t }))
|
|
2709
2693
|
}) }),
|
|
2710
2694
|
"data-imf-ui-component": "Typo.H3"
|
|
2711
2695
|
}
|
|
2712
2696
|
});
|
|
2713
2697
|
}
|
|
2714
|
-
|
|
2715
|
-
function
|
|
2698
|
+
Oo.displayName = "Typo.H3";
|
|
2699
|
+
function ko({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2716
2700
|
return w({
|
|
2717
2701
|
defaultTagName: "h4",
|
|
2718
|
-
render:
|
|
2702
|
+
render: n,
|
|
2719
2703
|
props: {
|
|
2720
|
-
...C(
|
|
2704
|
+
...C(r, { className: Q({
|
|
2721
2705
|
variant: e,
|
|
2722
|
-
className:
|
|
2706
|
+
className: h(Z.h4, $({ spacing: t }))
|
|
2723
2707
|
}) }),
|
|
2724
2708
|
"data-imf-ui-component": "Typo.H4"
|
|
2725
2709
|
}
|
|
2726
2710
|
});
|
|
2727
2711
|
}
|
|
2728
|
-
|
|
2729
|
-
function
|
|
2712
|
+
ko.displayName = "Typo.H4";
|
|
2713
|
+
function Ao({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2730
2714
|
return w({
|
|
2731
2715
|
defaultTagName: "p",
|
|
2732
|
-
render:
|
|
2716
|
+
render: n,
|
|
2733
2717
|
props: {
|
|
2734
|
-
...C(
|
|
2718
|
+
...C(r, { className: Q({
|
|
2735
2719
|
variant: e,
|
|
2736
|
-
className:
|
|
2720
|
+
className: h(Z.p, $({ spacing: t }))
|
|
2737
2721
|
}) }),
|
|
2738
2722
|
"data-imf-ui-component": "Typo.P"
|
|
2739
2723
|
}
|
|
2740
2724
|
});
|
|
2741
2725
|
}
|
|
2742
|
-
|
|
2743
|
-
function
|
|
2726
|
+
Ao.displayName = "Typo.P";
|
|
2727
|
+
function jo({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2744
2728
|
return w({
|
|
2745
2729
|
defaultTagName: "p",
|
|
2746
|
-
render:
|
|
2730
|
+
render: n,
|
|
2747
2731
|
props: {
|
|
2748
|
-
...C(
|
|
2732
|
+
...C(r, { className: Q({
|
|
2749
2733
|
variant: e,
|
|
2750
|
-
className:
|
|
2734
|
+
className: h(Z.lead, $({ spacing: t }))
|
|
2751
2735
|
}) }),
|
|
2752
2736
|
"data-imf-ui-component": "Typo.Lead"
|
|
2753
2737
|
}
|
|
2754
2738
|
});
|
|
2755
2739
|
}
|
|
2756
|
-
|
|
2757
|
-
function
|
|
2740
|
+
jo.displayName = "Typo.Lead";
|
|
2741
|
+
function Mo({ variant: e = "main", render: t, ...n }) {
|
|
2758
2742
|
return w({
|
|
2759
2743
|
defaultTagName: "p",
|
|
2760
|
-
render:
|
|
2744
|
+
render: t,
|
|
2761
2745
|
props: {
|
|
2762
|
-
...C(
|
|
2746
|
+
...C(n, { className: Q({
|
|
2763
2747
|
variant: e,
|
|
2764
|
-
className:
|
|
2748
|
+
className: h(Z.detail)
|
|
2765
2749
|
}) }),
|
|
2766
2750
|
"data-imf-ui-component": "Typo.Detail"
|
|
2767
2751
|
}
|
|
2768
2752
|
});
|
|
2769
2753
|
}
|
|
2770
|
-
|
|
2771
|
-
function
|
|
2754
|
+
Mo.displayName = "Typo.Detail";
|
|
2755
|
+
function No({ variant: e = "minor", render: t, ...n }) {
|
|
2772
2756
|
return w({
|
|
2773
2757
|
defaultTagName: "small",
|
|
2774
|
-
render:
|
|
2758
|
+
render: t,
|
|
2775
2759
|
props: {
|
|
2776
|
-
...C(
|
|
2760
|
+
...C(n, { className: Q({
|
|
2777
2761
|
variant: e,
|
|
2778
|
-
className:
|
|
2762
|
+
className: h(Z.small)
|
|
2779
2763
|
}) }),
|
|
2780
2764
|
"data-imf-ui-component": "Typo.Small"
|
|
2781
2765
|
}
|
|
2782
2766
|
});
|
|
2783
2767
|
}
|
|
2784
|
-
|
|
2785
|
-
function
|
|
2768
|
+
No.displayName = "Typo.Small";
|
|
2769
|
+
function Po({ variant: e = "support", spacing: t = "default", render: n, ...r }) {
|
|
2786
2770
|
return w({
|
|
2787
2771
|
defaultTagName: "blockquote",
|
|
2788
|
-
render:
|
|
2772
|
+
render: n,
|
|
2789
2773
|
props: {
|
|
2790
|
-
...C(
|
|
2774
|
+
...C(r, { className: Q({
|
|
2791
2775
|
variant: e,
|
|
2792
|
-
className:
|
|
2776
|
+
className: h(Z.blockquote, $({ spacing: t }))
|
|
2793
2777
|
}) }),
|
|
2794
2778
|
"data-imf-ui-component": "Typo.Blockquote"
|
|
2795
2779
|
}
|
|
2796
2780
|
});
|
|
2797
2781
|
}
|
|
2798
|
-
|
|
2799
|
-
function
|
|
2800
|
-
return /* @__PURE__ */
|
|
2782
|
+
Po.displayName = "Typo.Blockquote";
|
|
2783
|
+
function Fo(e) {
|
|
2784
|
+
return /* @__PURE__ */ g(ge, { ...e });
|
|
2801
2785
|
}
|
|
2802
|
-
|
|
2803
|
-
function
|
|
2786
|
+
Fo.displayName = "Typo.InlineCode";
|
|
2787
|
+
function Io({ variant: e = "oncolor", render: t, ...n }) {
|
|
2804
2788
|
return w({
|
|
2805
2789
|
defaultTagName: "mark",
|
|
2806
|
-
render:
|
|
2790
|
+
render: t,
|
|
2807
2791
|
props: {
|
|
2808
|
-
...C(
|
|
2792
|
+
...C(n, { className: Q({
|
|
2809
2793
|
variant: e,
|
|
2810
|
-
className:
|
|
2794
|
+
className: h(Z.highlight)
|
|
2811
2795
|
}) }),
|
|
2812
2796
|
"data-imf-ui-component": "Typo.Highlight"
|
|
2813
2797
|
}
|
|
2814
2798
|
});
|
|
2815
2799
|
}
|
|
2816
|
-
|
|
2817
|
-
function
|
|
2800
|
+
Io.displayName = "Typo.Highlight";
|
|
2801
|
+
function Lo({ variant: e = "primary", kind: t = "external", render: n, ...r }) {
|
|
2818
2802
|
return w({
|
|
2819
2803
|
defaultTagName: "a",
|
|
2820
|
-
render:
|
|
2804
|
+
render: n,
|
|
2821
2805
|
props: {
|
|
2822
2806
|
...C(t === "external" ? {
|
|
2823
2807
|
target: "_blank",
|
|
2824
2808
|
rel: "noreferrer"
|
|
2825
|
-
} : {},
|
|
2809
|
+
} : {}, r, {
|
|
2826
2810
|
className: Q({
|
|
2827
2811
|
variant: e,
|
|
2828
|
-
className:
|
|
2812
|
+
className: h(Z.link)
|
|
2829
2813
|
}),
|
|
2830
|
-
children:
|
|
2814
|
+
children: r.children
|
|
2831
2815
|
}),
|
|
2832
2816
|
"data-imf-ui-component": "Typo.Link",
|
|
2833
2817
|
"data-kind": t
|
|
2834
2818
|
}
|
|
2835
2819
|
});
|
|
2836
2820
|
}
|
|
2837
|
-
|
|
2838
|
-
function
|
|
2821
|
+
Lo.displayName = "Typo.Link";
|
|
2822
|
+
function Ro({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2839
2823
|
return w({
|
|
2840
2824
|
defaultTagName: "ol",
|
|
2841
|
-
render:
|
|
2825
|
+
render: n,
|
|
2842
2826
|
props: {
|
|
2843
|
-
...C(
|
|
2827
|
+
...C(r, { className: Q({
|
|
2844
2828
|
variant: e,
|
|
2845
|
-
className:
|
|
2829
|
+
className: h(Z.orderedList, $({ spacing: t }))
|
|
2846
2830
|
}) }),
|
|
2847
2831
|
"data-imf-ui-component": "Typo.OrderedList"
|
|
2848
2832
|
}
|
|
2849
2833
|
});
|
|
2850
2834
|
}
|
|
2851
|
-
|
|
2852
|
-
function
|
|
2835
|
+
Ro.displayName = "Typo.OrderedList";
|
|
2836
|
+
function zo({ variant: e = "main", spacing: t = "default", render: n, ...r }) {
|
|
2853
2837
|
return w({
|
|
2854
2838
|
defaultTagName: "ul",
|
|
2855
|
-
render:
|
|
2839
|
+
render: n,
|
|
2856
2840
|
props: {
|
|
2857
|
-
...C(
|
|
2841
|
+
...C(r, { className: Q({
|
|
2858
2842
|
variant: e,
|
|
2859
|
-
className:
|
|
2843
|
+
className: h(Z.unorderedList, $({ spacing: t }))
|
|
2860
2844
|
}) }),
|
|
2861
2845
|
"data-imf-ui-component": "Typo.UnorderedList"
|
|
2862
2846
|
}
|
|
2863
2847
|
});
|
|
2864
2848
|
}
|
|
2865
|
-
|
|
2849
|
+
zo.displayName = "Typo.UnorderedList";
|
|
2866
2850
|
//#endregion
|
|
2867
2851
|
//#region src/components/typo/typo.meta.ts
|
|
2868
|
-
var
|
|
2852
|
+
var Bo = {
|
|
2869
2853
|
name: "Typo",
|
|
2870
|
-
category:
|
|
2854
|
+
category: l.display,
|
|
2871
2855
|
status: "stable",
|
|
2872
2856
|
namespace: !0,
|
|
2873
2857
|
description: "Semantic text primitives for headings, paragraphs, lists, quotes, links, and inline code. The namespace uses native HTML elements and token-based text roles.",
|
|
2874
2858
|
origin: "native"
|
|
2875
|
-
},
|
|
2859
|
+
}, Vo = Ce({
|
|
2876
2860
|
color: "currentColor",
|
|
2877
2861
|
width: "1.5em",
|
|
2878
2862
|
height: "1.5em",
|
|
2879
2863
|
strokeWidth: 1.5
|
|
2880
2864
|
});
|
|
2881
|
-
function
|
|
2865
|
+
function Ho({ children: e, value: t }) {
|
|
2882
2866
|
let n = {
|
|
2883
|
-
...
|
|
2867
|
+
...we(Vo),
|
|
2884
2868
|
...t
|
|
2885
2869
|
};
|
|
2886
|
-
return /* @__PURE__ */
|
|
2870
|
+
return /* @__PURE__ */ g(Vo, {
|
|
2887
2871
|
value: n,
|
|
2888
|
-
children: /* @__PURE__ */
|
|
2872
|
+
children: /* @__PURE__ */ g(Se, {
|
|
2889
2873
|
iconProps: n,
|
|
2890
2874
|
children: e
|
|
2891
2875
|
})
|
|
2892
2876
|
});
|
|
2893
2877
|
}
|
|
2894
|
-
|
|
2878
|
+
Ho.displayName = "IconConfig.Provider";
|
|
2895
2879
|
//#endregion
|
|
2896
2880
|
//#region src/provider/web-ui-provider.tsx
|
|
2897
|
-
function
|
|
2898
|
-
return
|
|
2881
|
+
function Uo({ children: e, icons: t, colorScheme: n }) {
|
|
2882
|
+
return $i({ value: n }), /* @__PURE__ */ g(Ho, {
|
|
2899
2883
|
value: t,
|
|
2900
|
-
children: /* @__PURE__ */
|
|
2884
|
+
children: /* @__PURE__ */ _(Ya, { children: [e, " "] })
|
|
2901
2885
|
});
|
|
2902
2886
|
}
|
|
2903
2887
|
//#endregion
|
|
2904
|
-
export {
|
|
2888
|
+
export { dn as AppShell, Ne as Button, Vr as Callout, Dn as Card, We as Checkbox, Xr as Chip, Le as ChipLink, me as Code, Qr as Collapsible, l as ComponentCategories, Ve as CopyButton, Fn as Drawer, Xe as Field, ft as Fieldset, p as Icon, di as ImFusionLogo, yt as Input, si as Logo, ra as NavigationMenu, ur as Popover, a as Row, xt as Select, Rr as Separator, n as Slider, ma as Spinner, r as Stack, o as Switch, ga as Table, s as Tabs, Ia as Toast, i as Toggle, c as ToggleGroup, so as Tooltip, To as Typo, Uo as WebUIProvider, En as appShellMeta, Pe as buttonMeta, Yr as calloutMeta, Pn as cardMeta, Ye as checkboxMeta, Re as chipLinkMeta, Zr as chipMeta, _e as codeMeta, ai as collapsibleMeta, U as config, He as copyButtonMeta, ye as cva, be as cx, lr as drawerMeta, ut as fieldMeta, _t as fieldsetMeta, fe as iconMeta, bt as inputMeta, ci as logoMeta, ia as navigationMenuMeta, Fr as popoverMeta, Ir as rowMeta, on as selectMeta, zr as separatorMeta, sn as sliderMeta, ha as spinnerMeta, Br as stackMeta, cn as switchMeta, Pa as tableMeta, Fa as tabsMeta, oo as toastMeta, un as toggleGroupMeta, ln as toggleMeta, wo as tooltipMeta, Bo as typoMeta, he as useClipboard, $i as useColorScheme, ta as useMediaQuery };
|