@imfusion/web-ui 0.11.1-dev.7.gf073da2b → 0.11.1-dev.72.g7dc184e8
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 +199 -1
- package/dist/{code-Cl9AzRyF.js → code-72NzL5Cp.js} +13 -13
- package/dist/components/autocomplete/autocomplete.d.ts +144 -0
- package/dist/components/autocomplete/autocomplete.meta.d.ts +2 -0
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/checkbox/checkbox.cva.d.ts +3 -0
- package/dist/components/combobox/combobox.cva.d.ts +37 -0
- package/dist/components/combobox/combobox.d.ts +171 -0
- package/dist/components/combobox/combobox.meta.d.ts +2 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/dialog/dialog.d.ts +23 -3
- package/dist/components/file-drop-zone/collect-files.d.ts +56 -0
- package/dist/components/file-drop-zone/file-drop-zone-context.d.ts +15 -0
- package/dist/components/file-drop-zone/file-drop-zone.d.ts +185 -0
- package/dist/components/file-drop-zone/file-drop-zone.meta.d.ts +2 -0
- package/dist/components/file-drop-zone/format-bytes.d.ts +5 -0
- package/dist/components/file-drop-zone/index.d.ts +4 -0
- package/dist/components/image/image.d.ts +50 -0
- package/dist/components/image/image.meta.d.ts +2 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/input/input.d.ts +8 -1
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +135 -0
- package/dist/components/menu/menu.meta.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progress.d.ts +40 -0
- package/dist/components/progress/progress.meta.d.ts +2 -0
- package/dist/components/rich-link/rich-link.d.ts +1 -1
- package/dist/components/select/select.cva.d.ts +7 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/tab-nav/index.d.ts +2 -0
- package/dist/components/tab-nav/tab-nav.d.ts +26 -0
- package/dist/components/tab-nav/tab-nav.meta.d.ts +2 -0
- package/dist/components/table/table.d.ts +56 -1
- package/dist/components/tabs/tabs-underline.cva.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +13 -4
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.ts +32 -0
- package/dist/components/textarea/textarea.meta.d.ts +2 -0
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +5 -1
- package/dist/docgen/component-sources.d.ts +4 -0
- package/dist/icon-button-kVghav2z.js +171 -0
- package/dist/icons/catalog.gen.d.ts +7 -0
- package/dist/icons/icons.gen.d.ts +1 -0
- package/dist/{icons-vc1WZCxX.js → icons-CMetKl2x.js} +898 -893
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +5049 -3021
- package/dist/integrations/code-highlight.js +2 -2
- package/dist/integrations/frame-selection.js +1 -1
- package/dist/integrations/image-display-options.js +73 -71
- package/dist/integrations/layout-mode/index.d.ts +2 -0
- package/dist/integrations/layout-mode/layout-mode-view.d.ts +32 -0
- package/dist/integrations/layout-mode/layout-mode.d.ts +13 -0
- package/dist/integrations/layout-mode/layout-mode.meta.d.ts +2 -0
- package/dist/integrations/layout-mode.js +103 -0
- package/dist/integrations/view-tools/index.d.ts +4 -0
- package/dist/integrations/view-tools/use-view-interaction.d.ts +21 -0
- package/dist/integrations/view-tools/view-tools-view.d.ts +23 -0
- package/dist/integrations/view-tools/view-tools.d.ts +14 -0
- package/dist/integrations/view-tools/view-tools.meta.d.ts +2 -0
- package/dist/integrations/view-tools.js +133 -0
- package/dist/{resolve-state-props-DQf9WiGv.js → rolldown-runtime-Dy4uBu1J.js} +1 -12
- package/dist/row-CImu8yXV.js +136 -0
- package/dist/{scroll-area-z9Lf9uIk.js → scroll-area-CXQ_SxPX.js} +2 -1
- package/dist/{slider-Bf274cMe.js → slider-CpIZMAFl.js} +2 -1
- package/dist/style.css +2 -1
- package/dist/tabs-BqgyMmo6.js +173 -0
- package/dist/toggle-group-CVQzM3lQ.js +125 -0
- package/dist/toggle-group-ghJtINie.js +31 -0
- package/dist/utils/email.d.ts +4 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/initials.d.ts +4 -0
- package/dist/utils/item-parts.d.ts +23 -0
- package/dist/utils/stable-popup-height.d.ts +10 -0
- package/dist/utils-J6vbjIt1.js +46 -0
- package/package.json +4 -4
- package/src/docgen/doc.gen.json +7601 -2099
- package/src/llms/icon-catalog.gen.json +8 -0
- package/src/llms/llms.gen.txt +59 -2
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +5 -2
- package/src/llms/skills/imf-web-ui-components/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +2 -2
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +19 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +28 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +10 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +3 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +2 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/react/composition.md +54 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react/effects.md +59 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react/state.md +41 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react.md +7 -60
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +22 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/validation.md +7 -0
- package/src/llms/skills/imf-web-ui-ux/references/forms.md +3 -2
- package/src/llms/tokens.gen.json +21 -3
- package/dist/tabs-DsDSCA--.js +0 -376
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Form UX
|
|
2
2
|
|
|
3
|
-
Read this before building a form with more than two fields.
|
|
4
|
-
|
|
3
|
+
Read this before building a form with more than two fields. Build it with TanStack Form, the form library the
|
|
4
|
+
`imf-web-ui-conventions` tooling topic names: it owns state and validation, and Web UI supplies the controls. These rules
|
|
5
|
+
cover structure and feedback.
|
|
5
6
|
|
|
6
7
|
## Structure
|
|
7
8
|
|
package/src/llms/tokens.gen.json
CHANGED
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"name": "--imf-ui-color-primary-bg-luma-dark",
|
|
256
|
-
"value": "0.
|
|
256
|
+
"value": "0.66"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
"name": "--imf-ui-color-primary-bg-luma-light",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
"name": "--imf-ui-color-primary-fg-luma-dark",
|
|
268
|
-
"value": "0.
|
|
268
|
+
"value": "0.72"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"name": "--imf-ui-color-primary-fg-luma-light",
|
|
@@ -462,6 +462,24 @@
|
|
|
462
462
|
"value": "cubic-bezier(0, 0, 0.05, 1)"
|
|
463
463
|
}
|
|
464
464
|
],
|
|
465
|
+
"focus": [
|
|
466
|
+
{
|
|
467
|
+
"name": "--imf-ui-focus-ring-color",
|
|
468
|
+
"value": "var(--imf-ui-color-fg-primary)"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "--imf-ui-focus-ring-offset",
|
|
472
|
+
"value": "2px"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "--imf-ui-focus-ring-offset-inset",
|
|
476
|
+
"value": "calc(var(--imf-ui-focus-ring-width) * -1)"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "--imf-ui-focus-ring-width",
|
|
480
|
+
"value": "var(--imf-ui-border-size-2)"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
465
483
|
"font": [
|
|
466
484
|
{
|
|
467
485
|
"name": "--imf-ui-font-family-body",
|
|
@@ -955,5 +973,5 @@
|
|
|
955
973
|
}
|
|
956
974
|
]
|
|
957
975
|
},
|
|
958
|
-
"count":
|
|
976
|
+
"count": 237
|
|
959
977
|
}
|
package/dist/tabs-DsDSCA--.js
DELETED
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./resolve-state-props-DQf9WiGv.js";
|
|
2
|
-
import { _M as r, mh as i } from "./icons-vc1WZCxX.js";
|
|
3
|
-
import { t as a } from "./meta-V_KyLeGn.js";
|
|
4
|
-
import { cva as o } from "class-variance-authority";
|
|
5
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
-
import { Children as l, createContext as u, useCallback as d, useContext as f } from "react";
|
|
7
|
-
import { Toggle as p } from "@base-ui/react/toggle";
|
|
8
|
-
import { ToggleGroup as ee } from "@base-ui/react/toggle-group";
|
|
9
|
-
import { Switch as m } from "@base-ui/react/switch";
|
|
10
|
-
import { Tabs as h } from "@base-ui/react/tabs";
|
|
11
|
-
var g = {
|
|
12
|
-
flat: "imf-ui-kbd-module-flat",
|
|
13
|
-
icon: "imf-ui-kbd-module-icon",
|
|
14
|
-
primary: "imf-ui-kbd-module-primary",
|
|
15
|
-
root: "imf-ui-kbd-module-root"
|
|
16
|
-
}, _ = o(g.root, { variants: { variant: {
|
|
17
|
-
default: null,
|
|
18
|
-
primary: g.primary,
|
|
19
|
-
flat: g.flat
|
|
20
|
-
} } });
|
|
21
|
-
function v({ variant: e = "default", icon: t = !1, children: n, ...a }) {
|
|
22
|
-
return /* @__PURE__ */ c("kbd", {
|
|
23
|
-
...a,
|
|
24
|
-
"data-imf-ui-component": "Kbd",
|
|
25
|
-
className: _({
|
|
26
|
-
variant: e,
|
|
27
|
-
className: a.className
|
|
28
|
-
}),
|
|
29
|
-
children: [t && /* @__PURE__ */ s(r, {
|
|
30
|
-
glyph: i,
|
|
31
|
-
strokeWidth: 2,
|
|
32
|
-
"aria-hidden": !0,
|
|
33
|
-
className: g.icon
|
|
34
|
-
}), n]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/components/kbd/kbd.meta.ts
|
|
39
|
-
var te = {
|
|
40
|
-
name: "Kbd",
|
|
41
|
-
category: a.display,
|
|
42
|
-
status: "experimental",
|
|
43
|
-
description: "Shows a keyboard key or shortcut, such as the letter that activates a button. Also called a key hint; Button and Toggle render it through their `shortcut` prop.",
|
|
44
|
-
origin: "native",
|
|
45
|
-
internalDependencies: ["Icon"]
|
|
46
|
-
}, y = {
|
|
47
|
-
ctrl: "Control",
|
|
48
|
-
control: "Control",
|
|
49
|
-
cmd: "Meta",
|
|
50
|
-
"⌘": "Meta",
|
|
51
|
-
meta: "Meta",
|
|
52
|
-
opt: "Alt",
|
|
53
|
-
option: "Alt",
|
|
54
|
-
"⌥": "Alt",
|
|
55
|
-
alt: "Alt",
|
|
56
|
-
shift: "Shift",
|
|
57
|
-
"⇧": "Shift",
|
|
58
|
-
esc: "Escape",
|
|
59
|
-
escape: "Escape"
|
|
60
|
-
};
|
|
61
|
-
function b(e) {
|
|
62
|
-
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
63
|
-
if (t.length !== 0) return t.map((e) => y[e.toLowerCase()] ?? (e.length === 1 ? e.toUpperCase() : e)).join("+");
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/components/toggle-group/toggle-group-size.ts
|
|
67
|
-
var x = u("md"), S = {
|
|
68
|
-
root: "imf-ui-toggle-module-root",
|
|
69
|
-
shortcut: "imf-ui-toggle-module-shortcut",
|
|
70
|
-
sizeSm: "imf-ui-toggle-module-sizeSm"
|
|
71
|
-
}, C = o(S.root, { variants: { size: {
|
|
72
|
-
sm: S.sizeSm,
|
|
73
|
-
md: null
|
|
74
|
-
} } }), w = 2;
|
|
75
|
-
function T(e) {
|
|
76
|
-
let t = 0;
|
|
77
|
-
return l.forEach(e, (e) => {
|
|
78
|
-
typeof e == "string" || typeof e == "number" ? t += String(e).trim().length : e != null && typeof e != "boolean" && (t += w);
|
|
79
|
-
}), t;
|
|
80
|
-
}
|
|
81
|
-
function ne({ style: t, shortcut: r, size: i, children: a, ...o }) {
|
|
82
|
-
let l = f(x), u = {
|
|
83
|
-
"--glyph-count": T(a),
|
|
84
|
-
"--max-glyphs": w
|
|
85
|
-
};
|
|
86
|
-
return /* @__PURE__ */ c(p, {
|
|
87
|
-
"aria-keyshortcuts": r ? b(r) : void 0,
|
|
88
|
-
...o,
|
|
89
|
-
"data-imf-ui-component": "Toggle",
|
|
90
|
-
style: (n) => ({
|
|
91
|
-
...u,
|
|
92
|
-
...e(t, n)
|
|
93
|
-
}),
|
|
94
|
-
className: (e) => C({
|
|
95
|
-
size: i ?? l,
|
|
96
|
-
className: n(o.className, e)
|
|
97
|
-
}),
|
|
98
|
-
children: [a, r && /* @__PURE__ */ s(v, {
|
|
99
|
-
variant: "flat",
|
|
100
|
-
className: S.shortcut,
|
|
101
|
-
"aria-hidden": !0,
|
|
102
|
-
children: r
|
|
103
|
-
})]
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
var E = {
|
|
107
|
-
root: "imf-ui-toggle-group-module-root",
|
|
108
|
-
sizeSm: "imf-ui-toggle-group-module-sizeSm"
|
|
109
|
-
}, re = o(E.root, { variants: { size: {
|
|
110
|
-
sm: E.sizeSm,
|
|
111
|
-
md: null
|
|
112
|
-
} } });
|
|
113
|
-
function ie({ size: e = "md", ...t }) {
|
|
114
|
-
return /* @__PURE__ */ s(x.Provider, {
|
|
115
|
-
value: e ?? "md",
|
|
116
|
-
children: /* @__PURE__ */ s(ee, {
|
|
117
|
-
...t,
|
|
118
|
-
"data-imf-ui-component": "ToggleGroup",
|
|
119
|
-
className: (r) => re({
|
|
120
|
-
size: e,
|
|
121
|
-
className: n(t.className, r)
|
|
122
|
-
})
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
var D = {
|
|
127
|
-
root: "imf-ui-switch-module-root",
|
|
128
|
-
thumb: "imf-ui-switch-module-thumb"
|
|
129
|
-
}, ae = /* @__PURE__ */ t({
|
|
130
|
-
Root: () => A,
|
|
131
|
-
Thumb: () => j
|
|
132
|
-
}), O = o(D.root), k = o(D.thumb);
|
|
133
|
-
function A(e) {
|
|
134
|
-
return /* @__PURE__ */ s(m.Root, {
|
|
135
|
-
...e,
|
|
136
|
-
"data-imf-ui-component": "Switch.Root",
|
|
137
|
-
className: (t) => O({ className: n(e.className, t) })
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
A.displayName = "Switch.Root";
|
|
141
|
-
function j(e) {
|
|
142
|
-
return /* @__PURE__ */ s(m.Thumb, {
|
|
143
|
-
...e,
|
|
144
|
-
"data-imf-ui-component": "Switch.Thumb",
|
|
145
|
-
className: (t) => k({ className: n(e.className, t) })
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
j.displayName = "Switch.Thumb";
|
|
149
|
-
var M = {
|
|
150
|
-
alignCenter: "imf-ui-row-module-alignCenter",
|
|
151
|
-
alignEnd: "imf-ui-row-module-alignEnd",
|
|
152
|
-
alignStart: "imf-ui-row-module-alignStart",
|
|
153
|
-
alignStretch: "imf-ui-row-module-alignStretch",
|
|
154
|
-
gap1: "imf-ui-row-module-gap1",
|
|
155
|
-
gap10: "imf-ui-row-module-gap10",
|
|
156
|
-
gap2: "imf-ui-row-module-gap2",
|
|
157
|
-
gap3: "imf-ui-row-module-gap3",
|
|
158
|
-
gap4: "imf-ui-row-module-gap4",
|
|
159
|
-
gap5: "imf-ui-row-module-gap5",
|
|
160
|
-
gap6: "imf-ui-row-module-gap6",
|
|
161
|
-
gap7: "imf-ui-row-module-gap7",
|
|
162
|
-
gap8: "imf-ui-row-module-gap8",
|
|
163
|
-
gap9: "imf-ui-row-module-gap9",
|
|
164
|
-
justifyAround: "imf-ui-row-module-justifyAround",
|
|
165
|
-
justifyBetween: "imf-ui-row-module-justifyBetween",
|
|
166
|
-
justifyCenter: "imf-ui-row-module-justifyCenter",
|
|
167
|
-
justifyEnd: "imf-ui-row-module-justifyEnd",
|
|
168
|
-
justifyEvenly: "imf-ui-row-module-justifyEvenly",
|
|
169
|
-
justifyStart: "imf-ui-row-module-justifyStart",
|
|
170
|
-
root: "imf-ui-row-module-root",
|
|
171
|
-
wrap: "imf-ui-row-module-wrap"
|
|
172
|
-
}, N = o(M.root, { variants: {
|
|
173
|
-
gap: {
|
|
174
|
-
1: M.gap1,
|
|
175
|
-
2: M.gap2,
|
|
176
|
-
3: M.gap3,
|
|
177
|
-
4: M.gap4,
|
|
178
|
-
5: M.gap5,
|
|
179
|
-
6: M.gap6,
|
|
180
|
-
7: M.gap7,
|
|
181
|
-
8: M.gap8,
|
|
182
|
-
9: M.gap9,
|
|
183
|
-
10: M.gap10
|
|
184
|
-
},
|
|
185
|
-
align: {
|
|
186
|
-
start: M.alignStart,
|
|
187
|
-
center: M.alignCenter,
|
|
188
|
-
end: M.alignEnd,
|
|
189
|
-
stretch: M.alignStretch
|
|
190
|
-
},
|
|
191
|
-
justify: {
|
|
192
|
-
start: M.justifyStart,
|
|
193
|
-
center: M.justifyCenter,
|
|
194
|
-
end: M.justifyEnd,
|
|
195
|
-
between: M.justifyBetween,
|
|
196
|
-
around: M.justifyAround,
|
|
197
|
-
evenly: M.justifyEvenly
|
|
198
|
-
},
|
|
199
|
-
wrap: {
|
|
200
|
-
true: M.wrap,
|
|
201
|
-
false: null
|
|
202
|
-
}
|
|
203
|
-
} });
|
|
204
|
-
function P({ gap: e = "2", align: t = "stretch", justify: n = "start", wrap: r = !1, ...i }) {
|
|
205
|
-
return /* @__PURE__ */ s("div", {
|
|
206
|
-
...i,
|
|
207
|
-
"data-imf-ui-component": "Row",
|
|
208
|
-
className: N({
|
|
209
|
-
gap: e,
|
|
210
|
-
align: t,
|
|
211
|
-
justify: n,
|
|
212
|
-
wrap: r,
|
|
213
|
-
className: i.className
|
|
214
|
-
})
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
var F = {
|
|
218
|
-
alignCenter: "imf-ui-stack-module-alignCenter",
|
|
219
|
-
alignEnd: "imf-ui-stack-module-alignEnd",
|
|
220
|
-
alignStart: "imf-ui-stack-module-alignStart",
|
|
221
|
-
alignStretch: "imf-ui-stack-module-alignStretch",
|
|
222
|
-
gap0: "imf-ui-stack-module-gap0",
|
|
223
|
-
gap1: "imf-ui-stack-module-gap1",
|
|
224
|
-
gap10: "imf-ui-stack-module-gap10",
|
|
225
|
-
gap2: "imf-ui-stack-module-gap2",
|
|
226
|
-
gap3: "imf-ui-stack-module-gap3",
|
|
227
|
-
gap4: "imf-ui-stack-module-gap4",
|
|
228
|
-
gap5: "imf-ui-stack-module-gap5",
|
|
229
|
-
gap6: "imf-ui-stack-module-gap6",
|
|
230
|
-
gap7: "imf-ui-stack-module-gap7",
|
|
231
|
-
gap8: "imf-ui-stack-module-gap8",
|
|
232
|
-
gap9: "imf-ui-stack-module-gap9",
|
|
233
|
-
justifyAround: "imf-ui-stack-module-justifyAround",
|
|
234
|
-
justifyBetween: "imf-ui-stack-module-justifyBetween",
|
|
235
|
-
justifyCenter: "imf-ui-stack-module-justifyCenter",
|
|
236
|
-
justifyEnd: "imf-ui-stack-module-justifyEnd",
|
|
237
|
-
justifyEvenly: "imf-ui-stack-module-justifyEvenly",
|
|
238
|
-
justifyStart: "imf-ui-stack-module-justifyStart",
|
|
239
|
-
root: "imf-ui-stack-module-root"
|
|
240
|
-
}, I = o(F.root, { variants: {
|
|
241
|
-
gap: {
|
|
242
|
-
0: F.gap0,
|
|
243
|
-
1: F.gap1,
|
|
244
|
-
2: F.gap2,
|
|
245
|
-
3: F.gap3,
|
|
246
|
-
4: F.gap4,
|
|
247
|
-
5: F.gap5,
|
|
248
|
-
6: F.gap6,
|
|
249
|
-
7: F.gap7,
|
|
250
|
-
8: F.gap8,
|
|
251
|
-
9: F.gap9,
|
|
252
|
-
10: F.gap10
|
|
253
|
-
},
|
|
254
|
-
align: {
|
|
255
|
-
start: F.alignStart,
|
|
256
|
-
center: F.alignCenter,
|
|
257
|
-
end: F.alignEnd,
|
|
258
|
-
stretch: F.alignStretch
|
|
259
|
-
},
|
|
260
|
-
justify: {
|
|
261
|
-
start: F.justifyStart,
|
|
262
|
-
center: F.justifyCenter,
|
|
263
|
-
end: F.justifyEnd,
|
|
264
|
-
between: F.justifyBetween,
|
|
265
|
-
around: F.justifyAround,
|
|
266
|
-
evenly: F.justifyEvenly
|
|
267
|
-
}
|
|
268
|
-
} });
|
|
269
|
-
function L({ gap: e = "4", align: t = "stretch", justify: n = "start", ...r }) {
|
|
270
|
-
return /* @__PURE__ */ s("div", {
|
|
271
|
-
...r,
|
|
272
|
-
"data-imf-ui-component": "Stack",
|
|
273
|
-
className: I({
|
|
274
|
-
gap: e,
|
|
275
|
-
align: t,
|
|
276
|
-
justify: n,
|
|
277
|
-
className: r.className
|
|
278
|
-
})
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
var R = {
|
|
282
|
-
indicator: "imf-ui-tabs-module-indicator",
|
|
283
|
-
list: "imf-ui-tabs-module-list",
|
|
284
|
-
listFill: "imf-ui-tabs-module-listFill",
|
|
285
|
-
panel: "imf-ui-tabs-module-panel",
|
|
286
|
-
panelViewport: "imf-ui-tabs-module-panelViewport",
|
|
287
|
-
root: "imf-ui-tabs-module-root",
|
|
288
|
-
tab: "imf-ui-tabs-module-tab"
|
|
289
|
-
}, z = /* @__PURE__ */ t({
|
|
290
|
-
Indicator: () => Z,
|
|
291
|
-
List: () => Y,
|
|
292
|
-
Panel: () => $,
|
|
293
|
-
PanelViewport: () => Q,
|
|
294
|
-
Root: () => J,
|
|
295
|
-
Tab: () => X
|
|
296
|
-
}), B = o(R.list, { variants: { fill: {
|
|
297
|
-
true: R.listFill,
|
|
298
|
-
false: null
|
|
299
|
-
} } }), V = o(R.root), H = o(R.tab), U = o(R.indicator), W = o(R.panelViewport), G = o(R.panel);
|
|
300
|
-
function K(e, t) {
|
|
301
|
-
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
302
|
-
}
|
|
303
|
-
function q(e) {
|
|
304
|
-
let t = new ResizeObserver(() => {
|
|
305
|
-
let t = e.dataset.orientation === "vertical" ? e.scrollHeight > e.clientHeight : e.scrollWidth > e.clientWidth;
|
|
306
|
-
e.toggleAttribute("data-overflowing", t);
|
|
307
|
-
}), n = () => {
|
|
308
|
-
t.disconnect(), t.observe(e);
|
|
309
|
-
for (let n of e.children) t.observe(n);
|
|
310
|
-
}, r = new MutationObserver(n);
|
|
311
|
-
return r.observe(e, { childList: !0 }), n(), () => {
|
|
312
|
-
t.disconnect(), r.disconnect();
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
function J(e) {
|
|
316
|
-
return /* @__PURE__ */ s(h.Root, {
|
|
317
|
-
...e,
|
|
318
|
-
"data-imf-ui-component": "Tabs.Root",
|
|
319
|
-
className: (t) => V({ className: n(e.className, t) })
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
J.displayName = "Tabs.Root";
|
|
323
|
-
function Y({ fill: e = !1, ref: t, ...r }) {
|
|
324
|
-
let i = d((e) => {
|
|
325
|
-
if (!e) return;
|
|
326
|
-
K(t, e);
|
|
327
|
-
let n = q(e);
|
|
328
|
-
return () => {
|
|
329
|
-
n(), K(t, null);
|
|
330
|
-
};
|
|
331
|
-
}, [t]);
|
|
332
|
-
return /* @__PURE__ */ s(h.List, {
|
|
333
|
-
...r,
|
|
334
|
-
ref: i,
|
|
335
|
-
"data-imf-ui-component": "Tabs.List",
|
|
336
|
-
className: (t) => B({
|
|
337
|
-
fill: e,
|
|
338
|
-
className: n(r.className, t)
|
|
339
|
-
})
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
Y.displayName = "Tabs.List";
|
|
343
|
-
function X(e) {
|
|
344
|
-
return /* @__PURE__ */ s(h.Tab, {
|
|
345
|
-
...e,
|
|
346
|
-
"data-imf-ui-component": "Tabs.Tab",
|
|
347
|
-
className: (t) => H({ className: n(e.className, t) })
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
X.displayName = "Tabs.Tab";
|
|
351
|
-
function Z(e) {
|
|
352
|
-
return /* @__PURE__ */ s(h.Indicator, {
|
|
353
|
-
...e,
|
|
354
|
-
"data-imf-ui-component": "Tabs.Indicator",
|
|
355
|
-
className: (t) => U({ className: n(e.className, t) })
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
Z.displayName = "Tabs.Indicator";
|
|
359
|
-
function Q(e) {
|
|
360
|
-
return /* @__PURE__ */ s("div", {
|
|
361
|
-
...e,
|
|
362
|
-
"data-imf-ui-component": "Tabs.PanelViewport",
|
|
363
|
-
className: W({ className: e.className })
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
Q.displayName = "Tabs.PanelViewport";
|
|
367
|
-
function $(e) {
|
|
368
|
-
return /* @__PURE__ */ s(h.Panel, {
|
|
369
|
-
...e,
|
|
370
|
-
"data-imf-ui-component": "Tabs.Panel",
|
|
371
|
-
className: (t) => G({ className: n(e.className, t) })
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
$.displayName = "Tabs.Panel";
|
|
375
|
-
//#endregion
|
|
376
|
-
export { v as _, J as a, L as c, j as d, ae as f, te as g, b as h, Q as i, P as l, ne as m, Y as n, X as o, ie as p, $ as r, z as s, Z as t, A as u };
|