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