@imfusion/web-ui 0.6.4-dev.8.g41d03f2f → 0.7.0
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/CHANGELOG.md +391 -0
- package/README.md +22 -55
- package/dist/assets/vendors/base-ui.d.ts +2 -3
- package/dist/breakpoints/min-width.d.ts +3 -7
- package/dist/breakpoints/registry.d.ts +3 -9
- package/dist/{code-Ce8uiPsv.js → code-D2lwxHgd.js} +15 -15
- package/dist/codegen/gen-breakpoints-css.d.ts +0 -4
- package/dist/codegen/gen-token-css.d.ts +0 -2
- package/dist/components/app-shell/app-shell.d.ts +7 -11
- package/dist/components/button/button.d.ts +7 -12
- package/dist/components/callout/callout.d.ts +11 -18
- package/dist/components/card/card.d.ts +11 -10
- package/dist/components/checkbox/checkbox.d.ts +2 -38
- package/dist/components/chip/chip.cva.d.ts +2 -4
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/code/code.d.ts +2 -2
- package/dist/components/collapsible/collapsible.d.ts +4 -35
- package/dist/components/copy-button/copy-button.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +17 -100
- package/dist/components/field/field.d.ts +7 -67
- package/dist/components/fieldset/fieldset.d.ts +2 -15
- package/dist/components/icon/icon.d.ts +2 -2
- package/dist/components/input/input.d.ts +2 -8
- package/dist/components/logo/imfusion/imfusion.d.ts +2 -5
- package/dist/components/logo/imfusion/marks.d.ts +10 -0
- package/dist/components/logo/logo.d.ts +3 -3
- package/dist/components/navigation-menu/subs/flyout-link.d.ts +5 -19
- package/dist/components/navigation-menu/subs/inline-submenu.d.ts +2 -4
- package/dist/components/navigation-menu/subs/link.d.ts +6 -23
- package/dist/components/navigation-menu/subs/overlay.d.ts +6 -51
- package/dist/components/navigation-menu/subs/shared.d.ts +4 -14
- package/dist/components/navigation-menu/subs/structure.d.ts +7 -29
- package/dist/components/navigation-menu/subs/trigger.d.ts +11 -20
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.d.ts +72 -0
- package/dist/components/number-field/number-field.meta.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +23 -98
- package/dist/components/row/row.d.ts +1 -1
- package/dist/components/select/select.d.ts +26 -189
- package/dist/components/separator/separator.d.ts +5 -4
- package/dist/components/slider/slider.d.ts +7 -77
- package/dist/components/spinner/spinner.d.ts +13 -8
- package/dist/components/stack/stack.d.ts +3 -4
- package/dist/components/switch/switch.d.ts +2 -31
- package/dist/components/table/table.d.ts +10 -18
- package/dist/components/tabs/tabs.d.ts +18 -52
- package/dist/components/toast/toast.d.ts +16 -103
- package/dist/components/toggle/toggle.d.ts +3 -21
- package/dist/components/toggle-group/toggle-group.d.ts +3 -20
- package/dist/components/tooltip/tooltip.d.ts +26 -85
- package/dist/components/typo/typo.d.ts +25 -25
- package/dist/docgen/gen-docgen.utils.d.ts +3 -4
- package/dist/hooks/use-color-scheme.d.ts +5 -11
- package/dist/hooks/use-media-query.d.ts +2 -7
- package/dist/{icons-Cy1HAosO.js → icons-CaGCCwG-.js} +7 -7
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1486 -1368
- package/dist/integrations/code-highlight/highlighter.d.ts +1 -56
- package/dist/integrations/code-highlight.js +41 -189
- package/dist/integrations/image-display-options/image-display-options-view.utils.d.ts +0 -1
- package/dist/integrations/image-display-options.js +54 -54
- package/dist/llms/evals/runner/affected.d.ts +2 -0
- package/dist/llms/evals/runner/benchmark.d.ts +12 -0
- package/dist/llms/evals/runner/compare.d.ts +2 -0
- package/dist/llms/evals/runner/config.d.ts +29 -0
- package/dist/llms/evals/runner/evidence.d.ts +7 -0
- package/dist/llms/evals/runner/execute.d.ts +32 -0
- package/dist/llms/evals/runner/grade.d.ts +10 -0
- package/dist/llms/evals/runner/report-md.d.ts +2 -0
- package/dist/llms/evals/runner/report.d.ts +4 -0
- package/dist/llms/evals/runner/run.d.ts +2 -0
- package/dist/llms/evals/runner/scenario.d.ts +3 -0
- package/dist/llms/evals/runner/types.d.ts +140 -0
- package/dist/llms/evals/runner/workspace.d.ts +2 -0
- package/dist/llms/evals/runner/write-generated.d.ts +1 -0
- package/dist/provider/web-ui-provider.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/tabs-BS6rqrrA.js +398 -0
- package/dist/tokens/apply.d.ts +4 -9
- package/dist/tokens/control-registry.d.ts +3 -6
- package/dist/tokens/types.d.ts +7 -24
- package/dist/tokens/use-token-controls.d.ts +3 -12
- package/dist/types/meta.d.ts +15 -32
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/resolve-state-props.d.ts +4 -0
- package/dist/vite/brand-assets.d.ts +3 -0
- package/dist/vite/index.d.ts +2 -0
- package/dist/vite/readable-css-module-names.d.ts +11 -0
- package/dist/vite.js +55 -0
- package/dist/web-ui-cli.js +322 -0
- package/docs/user-guide/AgentTooling.mdx +133 -0
- package/docs/user-guide/BrandAssets.mdx +103 -0
- package/docs/user-guide/Changelog.mdx +26 -0
- package/docs/user-guide/GettingStarted.mdx +71 -0
- package/docs/user-guide/HowItsBuilt.mdx +114 -0
- package/docs/user-guide/Tokens.mdx +88 -0
- package/docs/user-guide/UsagePatterns.mdx +123 -0
- package/package.json +28 -22
- package/src/assets/public/favicon/apple-touch-icon.png +0 -0
- package/src/assets/public/favicon/favicon-16.png +0 -0
- package/src/assets/public/favicon/favicon-32.png +0 -0
- package/src/assets/public/favicon/favicon.ico +0 -0
- package/src/assets/public/favicon/favicon.svg +7 -0
- package/src/assets/public/favicon/icon-192.png +0 -0
- package/src/assets/public/favicon/icon-512.png +0 -0
- package/src/assets/public/favicon/og-image.png +0 -0
- package/src/assets/public/spinner/imfusion-spinner-black.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-blue.webp +0 -0
- package/src/assets/public/spinner/imfusion-spinner-white.webp +0 -0
- package/src/docgen/doc.gen.json +3255 -603
- package/src/llms/install-templates/AGENTS.md +4 -4
- package/src/llms/install-templates/hooks/baseline-staleness.sh +9 -2
- package/src/llms/llms.gen.txt +7 -1
- package/src/llms/skills/imf-web-ui/SKILL.md +44 -21
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +25 -11
- package/src/llms/skills/imf-web-ui-components/SKILL.md +7 -3
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +0 -1
- package/src/llms/skills/imf-web-ui-conventions/templates/REPORT.md +21 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +15 -10
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +7 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +10 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +13 -11
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +17 -9
- package/src/llms/skills/imf-web-ui-update/SKILL.md +47 -19
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +6 -3
- package/src/llms/tokens.gen.json +79 -15
- package/bin/install.js +0 -446
- package/dist/build/vite-css-module-names/index.d.ts +0 -20
- package/dist/build/vite-css-module-names.js +0 -17
- package/dist/components/spinner/spinner.geometry.d.ts +0 -37
- package/dist/integrations/code-highlight/languages/cmake.d.ts +0 -1
- package/dist/integrations/code-highlight/languages/cpp.d.ts +0 -1
- package/dist/tabs-DIe1Utiy.js +0 -371
- /package/dist/{meta-CySnRuVp.js → meta-j-7HGrWv.js} +0 -0
package/dist/tabs-DIe1Utiy.js
DELETED
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { cva as t } from "class-variance-authority";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import { Children as r } from "react";
|
|
5
|
-
import { Slider as i } from "@base-ui/react/slider";
|
|
6
|
-
import { Switch as a } from "@base-ui/react/switch";
|
|
7
|
-
import { Toggle as o } from "@base-ui/react/toggle";
|
|
8
|
-
import { ToggleGroup as s } from "@base-ui/react/toggle-group";
|
|
9
|
-
import { Tabs as c } from "@base-ui/react/tabs";
|
|
10
|
-
var l = {
|
|
11
|
-
control: "imf-ui-slider-module-control",
|
|
12
|
-
indicator: "imf-ui-slider-module-indicator",
|
|
13
|
-
label: "imf-ui-slider-module-label",
|
|
14
|
-
root: "imf-ui-slider-module-root",
|
|
15
|
-
thumb: "imf-ui-slider-module-thumb",
|
|
16
|
-
track: "imf-ui-slider-module-track",
|
|
17
|
-
value: "imf-ui-slider-module-value"
|
|
18
|
-
}, u = /* @__PURE__ */ e({
|
|
19
|
-
Control: () => x,
|
|
20
|
-
Indicator: () => C,
|
|
21
|
-
Label: () => y,
|
|
22
|
-
Root: () => v,
|
|
23
|
-
Thumb: () => w,
|
|
24
|
-
Track: () => S,
|
|
25
|
-
Value: () => b
|
|
26
|
-
}), d = t(l.root), f = t(l.label), p = t(l.value), m = t(l.control), h = t(l.track), g = t(l.indicator), _ = t(l.thumb);
|
|
27
|
-
function v({ value: e, defaultValue: t, onValueChange: r, onValueCommitted: a, min: o = 0, max: s = 100, step: c = 1, largeStep: l = 10, minStepsBetweenValues: u = 0, disabled: f = !1, orientation: p = "horizontal", name: m, form: h, locale: g, thumbAlignment: _ = "edge", thumbCollisionBehavior: v = "push", format: y, className: b, ...x }) {
|
|
28
|
-
return /* @__PURE__ */ n(i.Root, {
|
|
29
|
-
...x,
|
|
30
|
-
"data-imf-ui-component": "Slider.Root",
|
|
31
|
-
"data-orientation": p,
|
|
32
|
-
className: (e) => d({ className: typeof b == "function" ? b(e) : b }),
|
|
33
|
-
value: e,
|
|
34
|
-
defaultValue: t,
|
|
35
|
-
onValueChange: r,
|
|
36
|
-
onValueCommitted: a,
|
|
37
|
-
min: o,
|
|
38
|
-
max: s,
|
|
39
|
-
step: c,
|
|
40
|
-
largeStep: l,
|
|
41
|
-
minStepsBetweenValues: u,
|
|
42
|
-
disabled: f,
|
|
43
|
-
orientation: p,
|
|
44
|
-
name: m,
|
|
45
|
-
form: h,
|
|
46
|
-
locale: g,
|
|
47
|
-
thumbAlignment: _,
|
|
48
|
-
thumbCollisionBehavior: v,
|
|
49
|
-
format: y,
|
|
50
|
-
children: x.children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
v.displayName = "Slider.Root";
|
|
54
|
-
function y({ className: e, ...t }) {
|
|
55
|
-
return /* @__PURE__ */ n(i.Label, {
|
|
56
|
-
...t,
|
|
57
|
-
"data-imf-ui-component": "Slider.Label",
|
|
58
|
-
className: (t) => f({ className: typeof e == "function" ? e(t) : e }),
|
|
59
|
-
children: t.children
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
y.displayName = "Slider.Label";
|
|
63
|
-
function b({ className: e, children: t, ...r }) {
|
|
64
|
-
return /* @__PURE__ */ n(i.Value, {
|
|
65
|
-
...r,
|
|
66
|
-
"data-imf-ui-component": "Slider.Value",
|
|
67
|
-
className: (t) => p({ className: typeof e == "function" ? e(t) : e }),
|
|
68
|
-
children: t
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
b.displayName = "Slider.Value";
|
|
72
|
-
function x({ className: e, ...t }) {
|
|
73
|
-
return /* @__PURE__ */ n(i.Control, {
|
|
74
|
-
...t,
|
|
75
|
-
"data-imf-ui-component": "Slider.Control",
|
|
76
|
-
className: (t) => m({ className: typeof e == "function" ? e(t) : e }),
|
|
77
|
-
children: t.children
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
x.displayName = "Slider.Control";
|
|
81
|
-
function S({ className: e, ...t }) {
|
|
82
|
-
return /* @__PURE__ */ n(i.Track, {
|
|
83
|
-
...t,
|
|
84
|
-
"data-imf-ui-component": "Slider.Track",
|
|
85
|
-
className: (t) => h({ className: typeof e == "function" ? e(t) : e }),
|
|
86
|
-
children: t.children
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
S.displayName = "Slider.Track";
|
|
90
|
-
function C({ className: e, ...t }) {
|
|
91
|
-
return /* @__PURE__ */ n(i.Indicator, {
|
|
92
|
-
...t,
|
|
93
|
-
"data-imf-ui-component": "Slider.Indicator",
|
|
94
|
-
className: (t) => g({ className: typeof e == "function" ? e(t) : e })
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
C.displayName = "Slider.Indicator";
|
|
98
|
-
function w({ index: e, className: t, ...r }) {
|
|
99
|
-
return /* @__PURE__ */ n(i.Thumb, {
|
|
100
|
-
...r,
|
|
101
|
-
"data-imf-ui-component": "Slider.Thumb",
|
|
102
|
-
className: (e) => _({ className: typeof t == "function" ? t(e) : t }),
|
|
103
|
-
index: e
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
w.displayName = "Slider.Thumb";
|
|
107
|
-
var T = {
|
|
108
|
-
root: "imf-ui-switch-module-root",
|
|
109
|
-
thumb: "imf-ui-switch-module-thumb"
|
|
110
|
-
}, E = /* @__PURE__ */ e({
|
|
111
|
-
Root: () => O,
|
|
112
|
-
Thumb: () => k
|
|
113
|
-
}), D = t(T.root), ee = t(T.thumb);
|
|
114
|
-
function O({ className: e, ...t }) {
|
|
115
|
-
return /* @__PURE__ */ n(a.Root, {
|
|
116
|
-
...t,
|
|
117
|
-
"data-imf-ui-component": "Switch.Root",
|
|
118
|
-
className: (t) => D({ className: typeof e == "function" ? e(t) : e }),
|
|
119
|
-
children: t.children
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
O.displayName = "Switch.Root";
|
|
123
|
-
function k({ className: e, ...t }) {
|
|
124
|
-
return /* @__PURE__ */ n(a.Thumb, {
|
|
125
|
-
...t,
|
|
126
|
-
"data-imf-ui-component": "Switch.Thumb",
|
|
127
|
-
className: (t) => ee({ className: typeof e == "function" ? e(t) : e })
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
k.displayName = "Switch.Thumb";
|
|
131
|
-
//#endregion
|
|
132
|
-
//#region src/components/toggle/toggle.tsx
|
|
133
|
-
var A = t({ root: "imf-ui-toggle-module-root" }.root), j = 2;
|
|
134
|
-
function M(e) {
|
|
135
|
-
let t = 0;
|
|
136
|
-
return r.forEach(e, (e) => {
|
|
137
|
-
typeof e == "string" || typeof e == "number" ? t += String(e).trim().length : e != null && typeof e != "boolean" && (t += j);
|
|
138
|
-
}), t;
|
|
139
|
-
}
|
|
140
|
-
function N({ className: e, style: t, children: r, ...i }) {
|
|
141
|
-
let a = {
|
|
142
|
-
"--glyph-count": M(r),
|
|
143
|
-
"--max-glyphs": j
|
|
144
|
-
};
|
|
145
|
-
return /* @__PURE__ */ n(o, {
|
|
146
|
-
...i,
|
|
147
|
-
"data-imf-ui-component": "Toggle",
|
|
148
|
-
style: (e) => ({
|
|
149
|
-
...a,
|
|
150
|
-
...typeof t == "function" ? t(e) : t
|
|
151
|
-
}),
|
|
152
|
-
className: (t) => A({ className: typeof e == "function" ? e(t) : e }),
|
|
153
|
-
children: r
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/components/toggle-group/toggle-group.tsx
|
|
158
|
-
var te = t({ root: "imf-ui-toggle-group-module-root" }.root);
|
|
159
|
-
function ne({ className: e, ...t }) {
|
|
160
|
-
return /* @__PURE__ */ n(s, {
|
|
161
|
-
...t,
|
|
162
|
-
"data-imf-ui-component": "ToggleGroup",
|
|
163
|
-
className: (t) => te({ className: typeof e == "function" ? e(t) : e })
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
var P = {
|
|
167
|
-
alignCenter: "imf-ui-row-module-alignCenter",
|
|
168
|
-
alignEnd: "imf-ui-row-module-alignEnd",
|
|
169
|
-
alignStart: "imf-ui-row-module-alignStart",
|
|
170
|
-
alignStretch: "imf-ui-row-module-alignStretch",
|
|
171
|
-
gap1: "imf-ui-row-module-gap1",
|
|
172
|
-
gap10: "imf-ui-row-module-gap10",
|
|
173
|
-
gap2: "imf-ui-row-module-gap2",
|
|
174
|
-
gap3: "imf-ui-row-module-gap3",
|
|
175
|
-
gap4: "imf-ui-row-module-gap4",
|
|
176
|
-
gap5: "imf-ui-row-module-gap5",
|
|
177
|
-
gap6: "imf-ui-row-module-gap6",
|
|
178
|
-
gap7: "imf-ui-row-module-gap7",
|
|
179
|
-
gap8: "imf-ui-row-module-gap8",
|
|
180
|
-
gap9: "imf-ui-row-module-gap9",
|
|
181
|
-
justifyAround: "imf-ui-row-module-justifyAround",
|
|
182
|
-
justifyBetween: "imf-ui-row-module-justifyBetween",
|
|
183
|
-
justifyCenter: "imf-ui-row-module-justifyCenter",
|
|
184
|
-
justifyEnd: "imf-ui-row-module-justifyEnd",
|
|
185
|
-
justifyEvenly: "imf-ui-row-module-justifyEvenly",
|
|
186
|
-
justifyStart: "imf-ui-row-module-justifyStart",
|
|
187
|
-
root: "imf-ui-row-module-root",
|
|
188
|
-
wrap: "imf-ui-row-module-wrap"
|
|
189
|
-
}, F = t(P.root, { variants: {
|
|
190
|
-
gap: {
|
|
191
|
-
1: P.gap1,
|
|
192
|
-
2: P.gap2,
|
|
193
|
-
3: P.gap3,
|
|
194
|
-
4: P.gap4,
|
|
195
|
-
5: P.gap5,
|
|
196
|
-
6: P.gap6,
|
|
197
|
-
7: P.gap7,
|
|
198
|
-
8: P.gap8,
|
|
199
|
-
9: P.gap9,
|
|
200
|
-
10: P.gap10
|
|
201
|
-
},
|
|
202
|
-
align: {
|
|
203
|
-
start: P.alignStart,
|
|
204
|
-
center: P.alignCenter,
|
|
205
|
-
end: P.alignEnd,
|
|
206
|
-
stretch: P.alignStretch
|
|
207
|
-
},
|
|
208
|
-
justify: {
|
|
209
|
-
start: P.justifyStart,
|
|
210
|
-
center: P.justifyCenter,
|
|
211
|
-
end: P.justifyEnd,
|
|
212
|
-
between: P.justifyBetween,
|
|
213
|
-
around: P.justifyAround,
|
|
214
|
-
evenly: P.justifyEvenly
|
|
215
|
-
},
|
|
216
|
-
wrap: {
|
|
217
|
-
true: P.wrap,
|
|
218
|
-
false: null
|
|
219
|
-
}
|
|
220
|
-
} });
|
|
221
|
-
function I({ gap: e = "2", align: t = "stretch", justify: r = "start", wrap: i = !1, className: a, ...o }) {
|
|
222
|
-
return /* @__PURE__ */ n("div", {
|
|
223
|
-
...o,
|
|
224
|
-
"data-imf-ui-component": "Row",
|
|
225
|
-
className: F({
|
|
226
|
-
gap: e,
|
|
227
|
-
align: t,
|
|
228
|
-
justify: r,
|
|
229
|
-
wrap: i,
|
|
230
|
-
className: a
|
|
231
|
-
}),
|
|
232
|
-
children: o.children
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
var L = {
|
|
236
|
-
alignCenter: "imf-ui-stack-module-alignCenter",
|
|
237
|
-
alignEnd: "imf-ui-stack-module-alignEnd",
|
|
238
|
-
alignStart: "imf-ui-stack-module-alignStart",
|
|
239
|
-
alignStretch: "imf-ui-stack-module-alignStretch",
|
|
240
|
-
gap0: "imf-ui-stack-module-gap0",
|
|
241
|
-
gap1: "imf-ui-stack-module-gap1",
|
|
242
|
-
gap10: "imf-ui-stack-module-gap10",
|
|
243
|
-
gap2: "imf-ui-stack-module-gap2",
|
|
244
|
-
gap3: "imf-ui-stack-module-gap3",
|
|
245
|
-
gap4: "imf-ui-stack-module-gap4",
|
|
246
|
-
gap5: "imf-ui-stack-module-gap5",
|
|
247
|
-
gap6: "imf-ui-stack-module-gap6",
|
|
248
|
-
gap7: "imf-ui-stack-module-gap7",
|
|
249
|
-
gap8: "imf-ui-stack-module-gap8",
|
|
250
|
-
gap9: "imf-ui-stack-module-gap9",
|
|
251
|
-
justifyAround: "imf-ui-stack-module-justifyAround",
|
|
252
|
-
justifyBetween: "imf-ui-stack-module-justifyBetween",
|
|
253
|
-
justifyCenter: "imf-ui-stack-module-justifyCenter",
|
|
254
|
-
justifyEnd: "imf-ui-stack-module-justifyEnd",
|
|
255
|
-
justifyEvenly: "imf-ui-stack-module-justifyEvenly",
|
|
256
|
-
justifyStart: "imf-ui-stack-module-justifyStart",
|
|
257
|
-
root: "imf-ui-stack-module-root"
|
|
258
|
-
}, R = t(L.root, { variants: {
|
|
259
|
-
gap: {
|
|
260
|
-
0: L.gap0,
|
|
261
|
-
1: L.gap1,
|
|
262
|
-
2: L.gap2,
|
|
263
|
-
3: L.gap3,
|
|
264
|
-
4: L.gap4,
|
|
265
|
-
5: L.gap5,
|
|
266
|
-
6: L.gap6,
|
|
267
|
-
7: L.gap7,
|
|
268
|
-
8: L.gap8,
|
|
269
|
-
9: L.gap9,
|
|
270
|
-
10: L.gap10
|
|
271
|
-
},
|
|
272
|
-
align: {
|
|
273
|
-
start: L.alignStart,
|
|
274
|
-
center: L.alignCenter,
|
|
275
|
-
end: L.alignEnd,
|
|
276
|
-
stretch: L.alignStretch
|
|
277
|
-
},
|
|
278
|
-
justify: {
|
|
279
|
-
start: L.justifyStart,
|
|
280
|
-
center: L.justifyCenter,
|
|
281
|
-
end: L.justifyEnd,
|
|
282
|
-
between: L.justifyBetween,
|
|
283
|
-
around: L.justifyAround,
|
|
284
|
-
evenly: L.justifyEvenly
|
|
285
|
-
}
|
|
286
|
-
} });
|
|
287
|
-
function z({ gap: e = "4", align: t = "stretch", justify: r = "start", className: i, ...a }) {
|
|
288
|
-
return /* @__PURE__ */ n("div", {
|
|
289
|
-
...a,
|
|
290
|
-
"data-imf-ui-component": "Stack",
|
|
291
|
-
className: R({
|
|
292
|
-
gap: e,
|
|
293
|
-
align: t,
|
|
294
|
-
justify: r,
|
|
295
|
-
className: i
|
|
296
|
-
}),
|
|
297
|
-
children: a.children
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
var B = {
|
|
301
|
-
indicator: "imf-ui-tabs-module-indicator",
|
|
302
|
-
list: "imf-ui-tabs-module-list",
|
|
303
|
-
listFill: "imf-ui-tabs-module-listFill",
|
|
304
|
-
panel: "imf-ui-tabs-module-panel",
|
|
305
|
-
panelViewport: "imf-ui-tabs-module-panelViewport",
|
|
306
|
-
root: "imf-ui-tabs-module-root",
|
|
307
|
-
tab: "imf-ui-tabs-module-tab"
|
|
308
|
-
}, V = /* @__PURE__ */ e({
|
|
309
|
-
Indicator: () => Z,
|
|
310
|
-
List: () => Y,
|
|
311
|
-
Panel: () => $,
|
|
312
|
-
PanelViewport: () => Q,
|
|
313
|
-
Root: () => J,
|
|
314
|
-
Tab: () => X
|
|
315
|
-
}), H = t(B.list, { variants: { fill: {
|
|
316
|
-
true: B.listFill,
|
|
317
|
-
false: null
|
|
318
|
-
} } }), U = t(B.root), W = t(B.tab), G = t(B.indicator), K = t(B.panelViewport), q = t(B.panel);
|
|
319
|
-
function J({ className: e, ...t }) {
|
|
320
|
-
return /* @__PURE__ */ n(c.Root, {
|
|
321
|
-
...t,
|
|
322
|
-
"data-imf-ui-component": "Tabs.Root",
|
|
323
|
-
className: (t) => U({ className: typeof e == "function" ? e(t) : e })
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
J.displayName = "Tabs.Root";
|
|
327
|
-
function Y({ fill: e = !1, className: t, ...r }) {
|
|
328
|
-
return /* @__PURE__ */ n(c.List, {
|
|
329
|
-
...r,
|
|
330
|
-
"data-imf-ui-component": "Tabs.List",
|
|
331
|
-
className: (n) => H({
|
|
332
|
-
fill: e,
|
|
333
|
-
className: typeof t == "function" ? t(n) : t
|
|
334
|
-
})
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
Y.displayName = "Tabs.List";
|
|
338
|
-
function X({ className: e, ...t }) {
|
|
339
|
-
return /* @__PURE__ */ n(c.Tab, {
|
|
340
|
-
...t,
|
|
341
|
-
"data-imf-ui-component": "Tabs.Tab",
|
|
342
|
-
className: (t) => W({ className: typeof e == "function" ? e(t) : e })
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
X.displayName = "Tabs.Tab";
|
|
346
|
-
function Z({ className: e, ...t }) {
|
|
347
|
-
return /* @__PURE__ */ n(c.Indicator, {
|
|
348
|
-
...t,
|
|
349
|
-
"data-imf-ui-component": "Tabs.Indicator",
|
|
350
|
-
className: (t) => G({ className: typeof e == "function" ? e(t) : e })
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
Z.displayName = "Tabs.Indicator";
|
|
354
|
-
function Q({ className: e, ...t }) {
|
|
355
|
-
return /* @__PURE__ */ n("div", {
|
|
356
|
-
...t,
|
|
357
|
-
"data-imf-ui-component": "Tabs.PanelViewport",
|
|
358
|
-
className: K({ className: e })
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
Q.displayName = "Tabs.PanelViewport";
|
|
362
|
-
function $({ className: e, ...t }) {
|
|
363
|
-
return /* @__PURE__ */ n(c.Panel, {
|
|
364
|
-
...t,
|
|
365
|
-
"data-imf-ui-component": "Tabs.Panel",
|
|
366
|
-
className: (t) => q({ className: typeof e == "function" ? e(t) : e })
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
$.displayName = "Tabs.Panel";
|
|
370
|
-
//#endregion
|
|
371
|
-
export { u as S, y as _, J as a, S as b, z as c, N as d, O as f, C as g, x as h, Q as i, I as l, E as m, Y as n, X as o, k as p, $ as r, V as s, Z as t, ne as u, v, b as x, w as y };
|
|
File without changes
|