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