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