@imfusion/web-ui 0.11.1-dev.33.gefbd75be → 0.11.1-dev.35.g0028b4dd
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 +6 -0
- 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/tabs/tabs-underline.cva.d.ts +6 -0
- package/dist/components/tabs/tabs.d.ts +13 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1459 -1425
- package/dist/integrations/image-display-options.js +33 -33
- package/dist/style.css +1 -1
- package/dist/{tabs-U3Cg6YAw.js → tabs-D5DTlk0d.js} +174 -127
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +60 -2
- package/src/llms/llms.gen.txt +6 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e, o as t, s as n } from "./utils-RZJAXfcf.js";
|
|
2
2
|
import { _M as r, mh as i } from "./icons-vc1WZCxX.js";
|
|
3
3
|
import { t as a } from "./meta-V_KyLeGn.js";
|
|
4
|
-
import { cva as o } from "class-variance-authority";
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { Children as
|
|
7
|
-
import { Toggle as
|
|
8
|
-
import { ToggleGroup as
|
|
4
|
+
import { cva as o, cx as s } from "class-variance-authority";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { Children as u, createContext as d, useCallback as f, useContext as p } from "react";
|
|
7
|
+
import { Toggle as ee } from "@base-ui/react/toggle";
|
|
8
|
+
import { ToggleGroup as te } from "@base-ui/react/toggle-group";
|
|
9
9
|
import { Switch as m } from "@base-ui/react/switch";
|
|
10
10
|
import { Tabs as h } from "@base-ui/react/tabs";
|
|
11
11
|
var g = {
|
|
@@ -13,20 +13,20 @@ var g = {
|
|
|
13
13
|
icon: "imf-ui-kbd-module-icon",
|
|
14
14
|
primary: "imf-ui-kbd-module-primary",
|
|
15
15
|
root: "imf-ui-kbd-module-root"
|
|
16
|
-
},
|
|
16
|
+
}, ne = o(g.root, { variants: { variant: {
|
|
17
17
|
default: null,
|
|
18
18
|
primary: g.primary,
|
|
19
19
|
flat: g.flat
|
|
20
20
|
} } });
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
function _({ variant: e = "default", icon: t = !1, children: n, ...a }) {
|
|
22
|
+
return /* @__PURE__ */ l("kbd", {
|
|
23
23
|
...a,
|
|
24
24
|
"data-imf-ui-component": "Kbd",
|
|
25
|
-
className:
|
|
25
|
+
className: ne({
|
|
26
26
|
variant: e,
|
|
27
27
|
className: a.className
|
|
28
28
|
}),
|
|
29
|
-
children: [t && /* @__PURE__ */
|
|
29
|
+
children: [t && /* @__PURE__ */ c(r, {
|
|
30
30
|
glyph: i,
|
|
31
31
|
strokeWidth: 2,
|
|
32
32
|
"aria-hidden": !0,
|
|
@@ -36,14 +36,14 @@ function v({ variant: e = "default", icon: t = !1, children: n, ...a }) {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/components/kbd/kbd.meta.ts
|
|
39
|
-
var
|
|
39
|
+
var v = {
|
|
40
40
|
name: "Kbd",
|
|
41
41
|
category: a.display,
|
|
42
42
|
status: "experimental",
|
|
43
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
44
|
origin: "native",
|
|
45
45
|
internalDependencies: ["Icon"]
|
|
46
|
-
},
|
|
46
|
+
}, re = {
|
|
47
47
|
ctrl: "Control",
|
|
48
48
|
control: "Control",
|
|
49
49
|
cmd: "Meta",
|
|
@@ -58,65 +58,65 @@ var te = {
|
|
|
58
58
|
esc: "Escape",
|
|
59
59
|
escape: "Escape"
|
|
60
60
|
};
|
|
61
|
-
function
|
|
61
|
+
function y(e) {
|
|
62
62
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
63
|
-
if (t.length !== 0) return t.map((e) =>
|
|
63
|
+
if (t.length !== 0) return t.map((e) => re[e.toLowerCase()] ?? (e.length === 1 ? e.toUpperCase() : e)).join("+");
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/components/toggle-group/toggle-group-size.ts
|
|
67
|
-
var
|
|
67
|
+
var b = d("md"), x = {
|
|
68
68
|
root: "imf-ui-toggle-module-root",
|
|
69
69
|
shortcut: "imf-ui-toggle-module-shortcut",
|
|
70
70
|
sizeSm: "imf-ui-toggle-module-sizeSm"
|
|
71
|
-
},
|
|
72
|
-
sm:
|
|
71
|
+
}, ie = o(x.root, { variants: { size: {
|
|
72
|
+
sm: x.sizeSm,
|
|
73
73
|
md: null
|
|
74
|
-
} } }),
|
|
75
|
-
function
|
|
74
|
+
} } }), S = 2;
|
|
75
|
+
function ae(e) {
|
|
76
76
|
let t = 0;
|
|
77
|
-
return
|
|
78
|
-
typeof e == "string" || typeof e == "number" ? t += String(e).trim().length : e != null && typeof e != "boolean" && (t +=
|
|
77
|
+
return u.forEach(e, (e) => {
|
|
78
|
+
typeof e == "string" || typeof e == "number" ? t += String(e).trim().length : e != null && typeof e != "boolean" && (t += S);
|
|
79
79
|
}), t;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
let
|
|
83
|
-
"--glyph-count":
|
|
84
|
-
"--max-glyphs":
|
|
81
|
+
function C({ style: n, shortcut: r, size: i, children: a, ...o }) {
|
|
82
|
+
let s = p(b), u = {
|
|
83
|
+
"--glyph-count": ae(a),
|
|
84
|
+
"--max-glyphs": S
|
|
85
85
|
};
|
|
86
|
-
return /* @__PURE__ */
|
|
87
|
-
"aria-keyshortcuts": r ?
|
|
86
|
+
return /* @__PURE__ */ l(ee, {
|
|
87
|
+
"aria-keyshortcuts": r ? y(r) : void 0,
|
|
88
88
|
...o,
|
|
89
89
|
"data-imf-ui-component": "Toggle",
|
|
90
90
|
style: (e) => ({
|
|
91
91
|
...u,
|
|
92
92
|
...t(n, e)
|
|
93
93
|
}),
|
|
94
|
-
className: (t) =>
|
|
95
|
-
size: i ??
|
|
94
|
+
className: (t) => ie({
|
|
95
|
+
size: i ?? s,
|
|
96
96
|
className: e(o.className, t)
|
|
97
97
|
}),
|
|
98
|
-
children: [a, r && /* @__PURE__ */
|
|
98
|
+
children: [a, r && /* @__PURE__ */ c(_, {
|
|
99
99
|
variant: "flat",
|
|
100
|
-
className:
|
|
100
|
+
className: x.shortcut,
|
|
101
101
|
"aria-hidden": !0,
|
|
102
102
|
children: r
|
|
103
103
|
})]
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
var
|
|
106
|
+
var w = {
|
|
107
107
|
root: "imf-ui-toggle-group-module-root",
|
|
108
108
|
sizeSm: "imf-ui-toggle-group-module-sizeSm"
|
|
109
|
-
},
|
|
110
|
-
sm:
|
|
109
|
+
}, T = o(w.root, { variants: { size: {
|
|
110
|
+
sm: w.sizeSm,
|
|
111
111
|
md: null
|
|
112
112
|
} } });
|
|
113
|
-
function
|
|
114
|
-
return /* @__PURE__ */
|
|
113
|
+
function E({ size: t = "md", ...n }) {
|
|
114
|
+
return /* @__PURE__ */ c(b.Provider, {
|
|
115
115
|
value: t ?? "md",
|
|
116
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ c(te, {
|
|
117
117
|
...n,
|
|
118
118
|
"data-imf-ui-component": "ToggleGroup",
|
|
119
|
-
className: (r) =>
|
|
119
|
+
className: (r) => T({
|
|
120
120
|
size: t,
|
|
121
121
|
className: e(n.className, r)
|
|
122
122
|
})
|
|
@@ -126,27 +126,27 @@ function ie({ size: t = "md", ...n }) {
|
|
|
126
126
|
var D = {
|
|
127
127
|
root: "imf-ui-switch-module-root",
|
|
128
128
|
thumb: "imf-ui-switch-module-thumb"
|
|
129
|
-
},
|
|
130
|
-
Root: () =>
|
|
131
|
-
Thumb: () =>
|
|
132
|
-
}),
|
|
133
|
-
function
|
|
134
|
-
return /* @__PURE__ */
|
|
129
|
+
}, oe = /* @__PURE__ */ n({
|
|
130
|
+
Root: () => O,
|
|
131
|
+
Thumb: () => k
|
|
132
|
+
}), se = o(D.root), ce = o(D.thumb);
|
|
133
|
+
function O(t) {
|
|
134
|
+
return /* @__PURE__ */ c(m.Root, {
|
|
135
135
|
...t,
|
|
136
136
|
"data-imf-ui-component": "Switch.Root",
|
|
137
|
-
className: (n) =>
|
|
137
|
+
className: (n) => se({ className: e(t.className, n) })
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
142
|
-
return /* @__PURE__ */
|
|
140
|
+
O.displayName = "Switch.Root";
|
|
141
|
+
function k(t) {
|
|
142
|
+
return /* @__PURE__ */ c(m.Thumb, {
|
|
143
143
|
...t,
|
|
144
144
|
"data-imf-ui-component": "Switch.Thumb",
|
|
145
|
-
className: (n) =>
|
|
145
|
+
className: (n) => ce({ className: e(t.className, n) })
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
var
|
|
148
|
+
k.displayName = "Switch.Thumb";
|
|
149
|
+
var A = {
|
|
150
150
|
alignCenter: "imf-ui-row-module-alignCenter",
|
|
151
151
|
alignEnd: "imf-ui-row-module-alignEnd",
|
|
152
152
|
alignStart: "imf-ui-row-module-alignStart",
|
|
@@ -169,43 +169,43 @@ var M = {
|
|
|
169
169
|
justifyStart: "imf-ui-row-module-justifyStart",
|
|
170
170
|
root: "imf-ui-row-module-root",
|
|
171
171
|
wrap: "imf-ui-row-module-wrap"
|
|
172
|
-
},
|
|
172
|
+
}, j = o(A.root, { variants: {
|
|
173
173
|
gap: {
|
|
174
|
-
1:
|
|
175
|
-
2:
|
|
176
|
-
3:
|
|
177
|
-
4:
|
|
178
|
-
5:
|
|
179
|
-
6:
|
|
180
|
-
7:
|
|
181
|
-
8:
|
|
182
|
-
9:
|
|
183
|
-
10:
|
|
174
|
+
1: A.gap1,
|
|
175
|
+
2: A.gap2,
|
|
176
|
+
3: A.gap3,
|
|
177
|
+
4: A.gap4,
|
|
178
|
+
5: A.gap5,
|
|
179
|
+
6: A.gap6,
|
|
180
|
+
7: A.gap7,
|
|
181
|
+
8: A.gap8,
|
|
182
|
+
9: A.gap9,
|
|
183
|
+
10: A.gap10
|
|
184
184
|
},
|
|
185
185
|
align: {
|
|
186
|
-
start:
|
|
187
|
-
center:
|
|
188
|
-
end:
|
|
189
|
-
stretch:
|
|
186
|
+
start: A.alignStart,
|
|
187
|
+
center: A.alignCenter,
|
|
188
|
+
end: A.alignEnd,
|
|
189
|
+
stretch: A.alignStretch
|
|
190
190
|
},
|
|
191
191
|
justify: {
|
|
192
|
-
start:
|
|
193
|
-
center:
|
|
194
|
-
end:
|
|
195
|
-
between:
|
|
196
|
-
around:
|
|
197
|
-
evenly:
|
|
192
|
+
start: A.justifyStart,
|
|
193
|
+
center: A.justifyCenter,
|
|
194
|
+
end: A.justifyEnd,
|
|
195
|
+
between: A.justifyBetween,
|
|
196
|
+
around: A.justifyAround,
|
|
197
|
+
evenly: A.justifyEvenly
|
|
198
198
|
},
|
|
199
199
|
wrap: {
|
|
200
|
-
true:
|
|
200
|
+
true: A.wrap,
|
|
201
201
|
false: null
|
|
202
202
|
}
|
|
203
203
|
} });
|
|
204
|
-
function
|
|
205
|
-
return /* @__PURE__ */
|
|
204
|
+
function M({ gap: e = "2", align: t = "stretch", justify: n = "start", wrap: r = !1, ...i }) {
|
|
205
|
+
return /* @__PURE__ */ c("div", {
|
|
206
206
|
...i,
|
|
207
207
|
"data-imf-ui-component": "Row",
|
|
208
|
-
className:
|
|
208
|
+
className: j({
|
|
209
209
|
gap: e,
|
|
210
210
|
align: t,
|
|
211
211
|
justify: n,
|
|
@@ -214,7 +214,7 @@ function P({ gap: e = "2", align: t = "stretch", justify: n = "start", wrap: r =
|
|
|
214
214
|
})
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var N = {
|
|
218
218
|
alignCenter: "imf-ui-stack-module-alignCenter",
|
|
219
219
|
alignEnd: "imf-ui-stack-module-alignEnd",
|
|
220
220
|
alignStart: "imf-ui-stack-module-alignStart",
|
|
@@ -237,40 +237,40 @@ var F = {
|
|
|
237
237
|
justifyEvenly: "imf-ui-stack-module-justifyEvenly",
|
|
238
238
|
justifyStart: "imf-ui-stack-module-justifyStart",
|
|
239
239
|
root: "imf-ui-stack-module-root"
|
|
240
|
-
},
|
|
240
|
+
}, P = o(N.root, { variants: {
|
|
241
241
|
gap: {
|
|
242
|
-
0:
|
|
243
|
-
1:
|
|
244
|
-
2:
|
|
245
|
-
3:
|
|
246
|
-
4:
|
|
247
|
-
5:
|
|
248
|
-
6:
|
|
249
|
-
7:
|
|
250
|
-
8:
|
|
251
|
-
9:
|
|
252
|
-
10:
|
|
242
|
+
0: N.gap0,
|
|
243
|
+
1: N.gap1,
|
|
244
|
+
2: N.gap2,
|
|
245
|
+
3: N.gap3,
|
|
246
|
+
4: N.gap4,
|
|
247
|
+
5: N.gap5,
|
|
248
|
+
6: N.gap6,
|
|
249
|
+
7: N.gap7,
|
|
250
|
+
8: N.gap8,
|
|
251
|
+
9: N.gap9,
|
|
252
|
+
10: N.gap10
|
|
253
253
|
},
|
|
254
254
|
align: {
|
|
255
|
-
start:
|
|
256
|
-
center:
|
|
257
|
-
end:
|
|
258
|
-
stretch:
|
|
255
|
+
start: N.alignStart,
|
|
256
|
+
center: N.alignCenter,
|
|
257
|
+
end: N.alignEnd,
|
|
258
|
+
stretch: N.alignStretch
|
|
259
259
|
},
|
|
260
260
|
justify: {
|
|
261
|
-
start:
|
|
262
|
-
center:
|
|
263
|
-
end:
|
|
264
|
-
between:
|
|
265
|
-
around:
|
|
266
|
-
evenly:
|
|
261
|
+
start: N.justifyStart,
|
|
262
|
+
center: N.justifyCenter,
|
|
263
|
+
end: N.justifyEnd,
|
|
264
|
+
between: N.justifyBetween,
|
|
265
|
+
around: N.justifyAround,
|
|
266
|
+
evenly: N.justifyEvenly
|
|
267
267
|
}
|
|
268
268
|
} });
|
|
269
|
-
function
|
|
270
|
-
return /* @__PURE__ */
|
|
269
|
+
function F({ gap: e = "4", align: t = "stretch", justify: n = "start", ...r }) {
|
|
270
|
+
return /* @__PURE__ */ c("div", {
|
|
271
271
|
...r,
|
|
272
272
|
"data-imf-ui-component": "Stack",
|
|
273
|
-
className:
|
|
273
|
+
className: P({
|
|
274
274
|
gap: e,
|
|
275
275
|
align: t,
|
|
276
276
|
justify: n,
|
|
@@ -278,25 +278,51 @@ function L({ gap: e = "4", align: t = "stretch", justify: n = "start", ...r }) {
|
|
|
278
278
|
})
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var I = {
|
|
282
|
+
item: "imf-ui-tabs-underline-module-item",
|
|
283
|
+
rule: "imf-ui-tabs-underline-module-rule"
|
|
284
|
+
}, L = o(I.rule), R = o(I.item), z = {
|
|
282
285
|
indicator: "imf-ui-tabs-module-indicator",
|
|
286
|
+
indicatorUnderline: "imf-ui-tabs-module-indicatorUnderline",
|
|
283
287
|
list: "imf-ui-tabs-module-list",
|
|
284
288
|
listFill: "imf-ui-tabs-module-listFill",
|
|
289
|
+
listUnderline: "imf-ui-tabs-module-listUnderline",
|
|
285
290
|
panel: "imf-ui-tabs-module-panel",
|
|
291
|
+
panelUnderline: "imf-ui-tabs-module-panelUnderline",
|
|
286
292
|
panelViewport: "imf-ui-tabs-module-panelViewport",
|
|
293
|
+
panelViewportUnderline: "imf-ui-tabs-module-panelViewportUnderline",
|
|
287
294
|
root: "imf-ui-tabs-module-root",
|
|
288
|
-
tab: "imf-ui-tabs-module-tab"
|
|
289
|
-
|
|
295
|
+
tab: "imf-ui-tabs-module-tab",
|
|
296
|
+
tabUnderline: "imf-ui-tabs-module-tabUnderline"
|
|
297
|
+
}, B = /* @__PURE__ */ n({
|
|
290
298
|
Indicator: () => Z,
|
|
291
299
|
List: () => Y,
|
|
292
300
|
Panel: () => $,
|
|
293
301
|
PanelViewport: () => Q,
|
|
294
302
|
Root: () => J,
|
|
295
303
|
Tab: () => X
|
|
296
|
-
}),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
304
|
+
}), V = o(z.list, { variants: {
|
|
305
|
+
fill: {
|
|
306
|
+
true: z.listFill,
|
|
307
|
+
false: null
|
|
308
|
+
},
|
|
309
|
+
appearance: {
|
|
310
|
+
boxed: null,
|
|
311
|
+
underline: s(z.listUnderline, L())
|
|
312
|
+
}
|
|
313
|
+
} }), H = o(z.root), U = o(null, { variants: { appearance: {
|
|
314
|
+
boxed: z.tab,
|
|
315
|
+
underline: s(z.tabUnderline, R())
|
|
316
|
+
} } }), W = o(null, { variants: { appearance: {
|
|
317
|
+
boxed: z.indicator,
|
|
318
|
+
underline: z.indicatorUnderline
|
|
319
|
+
} } }), le = o(z.panelViewport, { variants: { appearance: {
|
|
320
|
+
boxed: null,
|
|
321
|
+
underline: z.panelViewportUnderline
|
|
322
|
+
} } }), ue = o(z.panel, { variants: { appearance: {
|
|
323
|
+
boxed: null,
|
|
324
|
+
underline: z.panelUnderline
|
|
325
|
+
} } }), G = d("boxed");
|
|
300
326
|
function K(e, t) {
|
|
301
327
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
302
328
|
}
|
|
@@ -312,16 +338,20 @@ function q(e) {
|
|
|
312
338
|
t.disconnect(), r.disconnect();
|
|
313
339
|
};
|
|
314
340
|
}
|
|
315
|
-
function J(t) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
341
|
+
function J({ appearance: t = "boxed", ...n }) {
|
|
342
|
+
let r = n.orientation === "vertical" ? "boxed" : t;
|
|
343
|
+
return /* @__PURE__ */ c(G, {
|
|
344
|
+
value: r,
|
|
345
|
+
children: /* @__PURE__ */ c(h.Root, {
|
|
346
|
+
...n,
|
|
347
|
+
"data-imf-ui-component": "Tabs.Root",
|
|
348
|
+
className: (t) => H({ className: e(n.className, t) })
|
|
349
|
+
})
|
|
320
350
|
});
|
|
321
351
|
}
|
|
322
352
|
J.displayName = "Tabs.Root";
|
|
323
353
|
function Y({ fill: t = !1, ref: n, ...r }) {
|
|
324
|
-
let i =
|
|
354
|
+
let i = p(G), a = f((e) => {
|
|
325
355
|
if (!e) return;
|
|
326
356
|
K(n, e);
|
|
327
357
|
let t = q(e);
|
|
@@ -329,48 +359,65 @@ function Y({ fill: t = !1, ref: n, ...r }) {
|
|
|
329
359
|
t(), K(n, null);
|
|
330
360
|
};
|
|
331
361
|
}, [n]);
|
|
332
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ c(h.List, {
|
|
333
363
|
...r,
|
|
334
|
-
ref:
|
|
364
|
+
ref: a,
|
|
335
365
|
"data-imf-ui-component": "Tabs.List",
|
|
336
|
-
className: (n) =>
|
|
366
|
+
className: (n) => V({
|
|
337
367
|
fill: t,
|
|
368
|
+
appearance: i,
|
|
338
369
|
className: e(r.className, n)
|
|
339
370
|
})
|
|
340
371
|
});
|
|
341
372
|
}
|
|
342
373
|
Y.displayName = "Tabs.List";
|
|
343
374
|
function X(t) {
|
|
344
|
-
|
|
375
|
+
let n = p(G);
|
|
376
|
+
return /* @__PURE__ */ c(h.Tab, {
|
|
345
377
|
...t,
|
|
346
378
|
"data-imf-ui-component": "Tabs.Tab",
|
|
347
|
-
className: (
|
|
379
|
+
className: (r) => U({
|
|
380
|
+
appearance: n,
|
|
381
|
+
className: e(t.className, r)
|
|
382
|
+
})
|
|
348
383
|
});
|
|
349
384
|
}
|
|
350
385
|
X.displayName = "Tabs.Tab";
|
|
351
386
|
function Z(t) {
|
|
352
|
-
|
|
387
|
+
let n = p(G);
|
|
388
|
+
return /* @__PURE__ */ c(h.Indicator, {
|
|
353
389
|
...t,
|
|
354
390
|
"data-imf-ui-component": "Tabs.Indicator",
|
|
355
|
-
className: (
|
|
391
|
+
className: (r) => W({
|
|
392
|
+
appearance: n,
|
|
393
|
+
className: e(t.className, r)
|
|
394
|
+
})
|
|
356
395
|
});
|
|
357
396
|
}
|
|
358
397
|
Z.displayName = "Tabs.Indicator";
|
|
359
398
|
function Q(e) {
|
|
360
|
-
|
|
399
|
+
let t = p(G);
|
|
400
|
+
return /* @__PURE__ */ c("div", {
|
|
361
401
|
...e,
|
|
362
402
|
"data-imf-ui-component": "Tabs.PanelViewport",
|
|
363
|
-
className:
|
|
403
|
+
className: le({
|
|
404
|
+
appearance: t,
|
|
405
|
+
className: e.className
|
|
406
|
+
})
|
|
364
407
|
});
|
|
365
408
|
}
|
|
366
409
|
Q.displayName = "Tabs.PanelViewport";
|
|
367
410
|
function $(t) {
|
|
368
|
-
|
|
411
|
+
let n = p(G);
|
|
412
|
+
return /* @__PURE__ */ c(h.Panel, {
|
|
369
413
|
...t,
|
|
370
414
|
"data-imf-ui-component": "Tabs.Panel",
|
|
371
|
-
className: (
|
|
415
|
+
className: (r) => ue({
|
|
416
|
+
appearance: n,
|
|
417
|
+
className: e(t.className, r)
|
|
418
|
+
})
|
|
372
419
|
});
|
|
373
420
|
}
|
|
374
421
|
$.displayName = "Tabs.Panel";
|
|
375
422
|
//#endregion
|
|
376
|
-
export {
|
|
423
|
+
export { y as _, J as a, R as c, M as d, O as f, C as g, E as h, Q as i, L as l, oe as m, Y as n, X as o, k as p, $ as r, B as s, Z as t, F as u, v, _ as y };
|
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -10799,6 +10799,57 @@
|
|
|
10799
10799
|
}
|
|
10800
10800
|
]
|
|
10801
10801
|
},
|
|
10802
|
+
"tab-nav": {
|
|
10803
|
+
"root": {
|
|
10804
|
+
"name": "TabNav.Root",
|
|
10805
|
+
"description": "TabNav.Root — a `<nav>` of links that draws the hairline under its items. Give it an `aria-label` that names the\nnavigation, such as \"Project\".\nNot based on any upstream component.",
|
|
10806
|
+
"props": [
|
|
10807
|
+
{
|
|
10808
|
+
"name": "aria-label",
|
|
10809
|
+
"required": true,
|
|
10810
|
+
"type": "string",
|
|
10811
|
+
"defaultValue": null,
|
|
10812
|
+
"description": "Names the navigation for screen readers, such as \"Project\"."
|
|
10813
|
+
},
|
|
10814
|
+
{
|
|
10815
|
+
"name": "ref",
|
|
10816
|
+
"required": false,
|
|
10817
|
+
"type": "Ref<HTMLElement>",
|
|
10818
|
+
"defaultValue": null,
|
|
10819
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
|
|
10820
|
+
}
|
|
10821
|
+
]
|
|
10822
|
+
},
|
|
10823
|
+
"subComponents": [
|
|
10824
|
+
{
|
|
10825
|
+
"name": "TabNav.Item",
|
|
10826
|
+
"description": "TabNav.Item — a link in the row. Renders an `<a>`; pass a router link as `render` to navigate without a page load.",
|
|
10827
|
+
"props": [
|
|
10828
|
+
{
|
|
10829
|
+
"name": "current",
|
|
10830
|
+
"required": false,
|
|
10831
|
+
"type": "boolean",
|
|
10832
|
+
"defaultValue": "false",
|
|
10833
|
+
"description": "Marks the item as the page the user is on: sets `aria-current=\"page\"` and `data-current`, and draws the bar."
|
|
10834
|
+
},
|
|
10835
|
+
{
|
|
10836
|
+
"name": "ref",
|
|
10837
|
+
"required": false,
|
|
10838
|
+
"type": "Ref<HTMLElement>",
|
|
10839
|
+
"defaultValue": null,
|
|
10840
|
+
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
|
|
10841
|
+
},
|
|
10842
|
+
{
|
|
10843
|
+
"name": "render",
|
|
10844
|
+
"required": false,
|
|
10845
|
+
"type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, {}>",
|
|
10846
|
+
"defaultValue": null,
|
|
10847
|
+
"description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
10848
|
+
}
|
|
10849
|
+
]
|
|
10850
|
+
}
|
|
10851
|
+
]
|
|
10852
|
+
},
|
|
10802
10853
|
"table": {
|
|
10803
10854
|
"root": {
|
|
10804
10855
|
"name": "Table.Root",
|
|
@@ -10987,6 +11038,13 @@
|
|
|
10987
11038
|
"name": "Tabs.Root",
|
|
10988
11039
|
"description": "Tabs.Root — container that manages the active tab value and orientation context.",
|
|
10989
11040
|
"props": [
|
|
11041
|
+
{
|
|
11042
|
+
"name": "appearance",
|
|
11043
|
+
"required": false,
|
|
11044
|
+
"type": "TabsAppearance",
|
|
11045
|
+
"defaultValue": "boxed",
|
|
11046
|
+
"description": "`\"boxed\"` outlines the active tab in a box that fuses into a framed panel. `\"underline\"` marks it with a bar under\nits label on a hairline rule, with an unframed panel. Underline is horizontal only: a vertical Tabs stays boxed."
|
|
11047
|
+
},
|
|
10990
11048
|
{
|
|
10991
11049
|
"name": "className",
|
|
10992
11050
|
"required": false,
|
|
@@ -11048,7 +11106,7 @@
|
|
|
11048
11106
|
"subComponents": [
|
|
11049
11107
|
{
|
|
11050
11108
|
"name": "Tabs.Indicator",
|
|
11051
|
-
"description": "Tabs.Indicator — the bordered box marking the active tab, positioned via\nthe `--active-tab-*` CSS custom properties Base UI writes onto it. Render\nonce per Tabs.List, after the Tabs.Tab list.",
|
|
11109
|
+
"description": "Tabs.Indicator — the bordered box (boxed) or bar (underline) marking the active tab, positioned via\nthe `--active-tab-*` CSS custom properties Base UI writes onto it. Render\nonce per Tabs.List, after the Tabs.Tab list.",
|
|
11052
11110
|
"props": [
|
|
11053
11111
|
{
|
|
11054
11112
|
"name": "className",
|
|
@@ -11192,7 +11250,7 @@
|
|
|
11192
11250
|
},
|
|
11193
11251
|
{
|
|
11194
11252
|
"name": "Tabs.PanelViewport",
|
|
11195
|
-
"description": "Tabs.PanelViewport — the shared frame Tabs.Panel elements render inside.\nNo Base UI equivalent exists; it's surfaced as a named part since its\nhairline border is what Tabs.Indicator visually fuses into.",
|
|
11253
|
+
"description": "Tabs.PanelViewport — the shared frame Tabs.Panel elements render inside.\nNo Base UI equivalent exists; it's surfaced as a named part since its\nhairline border is what the boxed Tabs.Indicator visually fuses into. The underline appearance draws no frame.",
|
|
11196
11254
|
"props": [
|
|
11197
11255
|
{
|
|
11198
11256
|
"name": "ref",
|
package/src/llms/llms.gen.txt
CHANGED
|
@@ -241,6 +241,11 @@ Two-state control for an on/off setting that takes effect immediately. Also call
|
|
|
241
241
|
- props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .switch (jq: jq '.switch' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
|
|
242
242
|
- further reading (usage/anatomy, not props): https://base-ui.com/react/components/switch.md
|
|
243
243
|
|
|
244
|
+
## TabNav
|
|
245
|
+
- category: Display, status: experimental
|
|
246
|
+
Row of links to routes with a bar under the current one, such as the sections of a project. Also called route tabs or link tabs; use Tabs to switch panels on one page.
|
|
247
|
+
- props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .tab-nav (jq: jq '.tab-nav' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
|
|
248
|
+
|
|
244
249
|
## Table
|
|
245
250
|
- category: Display, status: stable
|
|
246
251
|
Presentational table parts for static tabular data. Pair them with a headless table library for sorting, pagination, or selection.
|
|
@@ -248,7 +253,7 @@ Presentational table parts for static tabular data. Pair them with a headless ta
|
|
|
248
253
|
|
|
249
254
|
## Tabs
|
|
250
255
|
- category: Display, status: stable
|
|
251
|
-
Switches between related panels within one view. Also called a tab strip or tab bar; it supports horizontal and vertical layouts.
|
|
256
|
+
Switches between related panels within one view. Also called a tab strip or tab bar; it supports horizontal and vertical layouts and a boxed or underline look. Use TabNav for links to routes.
|
|
252
257
|
- props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .tabs (jq: jq '.tabs' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
|
|
253
258
|
- further reading (usage/anatomy, not props): https://base-ui.com/react/components/tabs.md
|
|
254
259
|
|