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