@imfusion/web-ui 0.8.1-dev.58.g0912b389 → 0.8.1-dev.64.gbde1f63f
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 +10 -0
- package/dist/{code-GwkswukD.js → code-BYkr5k55.js} +12 -12
- package/dist/components/account-card/account-card.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/button/button.d.ts +10 -4
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/chip/chip.cva.d.ts +1 -1
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/kbd/aria-key-shortcuts.d.ts +5 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/kbd.d.ts +14 -0
- package/dist/components/kbd/kbd.meta.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/row/row.d.ts +2 -2
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +7 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +1 -1
- package/dist/icons/catalog.gen.d.ts +7 -0
- package/dist/icons/icons.gen.d.ts +1 -0
- package/dist/{icons-DUxZcuf9.js → icons-BsK_o-Cb.js} +1833 -1814
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1349 -1334
- package/dist/integrations/code-highlight.js +1 -1
- package/dist/integrations/frame-selection.js +7 -7
- package/dist/integrations/image-display-options.js +71 -71
- package/dist/style.css +1 -1
- package/dist/tabs-DRyqtS04.js +358 -0
- package/package.json +2 -1
- package/src/docgen/doc.gen.json +58 -0
- package/src/llms/icon-catalog.gen.json +8 -0
- package/src/llms/llms.gen.txt +5 -0
- package/src/llms/skills/imf-web-ui/SKILL.md +1 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +22 -19
- package/dist/tabs-Dsfp8Ogj.js +0 -295
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { t } from "../meta-V_KyLeGn.js";
|
|
3
|
-
import { i as n, n as r, r as i } from "../code-
|
|
3
|
+
import { i as n, n as r, r as i } from "../code-BYkr5k55.js";
|
|
4
4
|
import { jsx as a } from "react/jsx-runtime";
|
|
5
5
|
import { cloneElement as o, useMemo as s } from "react";
|
|
6
6
|
import { createHighlighter as c, defineLanguage as l, renderNodesToHtml as u, renderTokens as d } from "@tanstack/highlight/core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as i } from "../
|
|
1
|
+
import { t as e } from "../meta-V_KyLeGn.js";
|
|
2
|
+
import { a as t, i as n, o as r, t as i } from "../slider-Cqpreglu.js";
|
|
3
3
|
import { t as a } from "../separator-lzz4A3x_.js";
|
|
4
4
|
import { cva as o } from "class-variance-authority";
|
|
5
5
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -13,9 +13,9 @@ var m = {
|
|
|
13
13
|
separator: "imf-ui-frame-selection-module-separator",
|
|
14
14
|
slider: "imf-ui-frame-selection-module-slider"
|
|
15
15
|
}, h = o(m.root);
|
|
16
|
-
function g({ focus:
|
|
16
|
+
function g({ focus: e, count: o, onFocusChange: s, orientation: u = "horizontal", label: d = "Frame", disabled: f = !1, className: p, style: g, ..._ }) {
|
|
17
17
|
if (o <= 1) return null;
|
|
18
|
-
let v =
|
|
18
|
+
let v = e + 1, y = {
|
|
19
19
|
"--digits": String(o).length,
|
|
20
20
|
"--count": o
|
|
21
21
|
};
|
|
@@ -28,7 +28,7 @@ function g({ focus: i, count: o, onFocusChange: s, orientation: u = "horizontal"
|
|
|
28
28
|
...y,
|
|
29
29
|
...g
|
|
30
30
|
},
|
|
31
|
-
children: [/* @__PURE__ */ c(
|
|
31
|
+
children: [/* @__PURE__ */ c(n, {
|
|
32
32
|
className: m.slider,
|
|
33
33
|
variant: "position",
|
|
34
34
|
orientation: u,
|
|
@@ -39,7 +39,7 @@ function g({ focus: i, count: o, onFocusChange: s, orientation: u = "horizontal"
|
|
|
39
39
|
onValueChange: (e) => {
|
|
40
40
|
s((typeof e == "number" ? e : e[0]) - 1);
|
|
41
41
|
},
|
|
42
|
-
children: /* @__PURE__ */ c(
|
|
42
|
+
children: /* @__PURE__ */ c(i, { children: /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(t, {
|
|
43
43
|
"aria-label": d,
|
|
44
44
|
getAriaValueText: (e, t) => `${String(t)} of ${String(o)}`
|
|
45
45
|
}) }) })
|
|
@@ -104,7 +104,7 @@ v.displayName = "FrameSelection";
|
|
|
104
104
|
//#region src/integrations/frame-selection/frame-selection.meta.ts
|
|
105
105
|
var y = {
|
|
106
106
|
name: "FrameSelection",
|
|
107
|
-
category:
|
|
107
|
+
category: e.inputs,
|
|
108
108
|
status: "experimental",
|
|
109
109
|
description: "Frame or slice picker bound to the focused frame of ImFusion image sets, with a focus and count readout. For a position picker not tied to the SDK, use Slider with variant=\"position\".",
|
|
110
110
|
origin: "adapted",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as s } from "../
|
|
3
|
-
import { a as
|
|
1
|
+
import { t as e } from "../meta-V_KyLeGn.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, t as d, u as f } from "../tabs-DRyqtS04.js";
|
|
3
|
+
import { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from "../slider-Cqpreglu.js";
|
|
4
4
|
import { cva as b } from "class-variance-authority";
|
|
5
5
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
6
6
|
import { useId as w, useMemo as T, useState as E } from "react";
|
|
@@ -74,29 +74,29 @@ function F(e, t) {
|
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/integrations/image-display-options/image-display-options-view.tsx
|
|
76
76
|
var I = b(k.root);
|
|
77
|
-
function L({ spec:
|
|
78
|
-
let
|
|
79
|
-
value:
|
|
80
|
-
min:
|
|
81
|
-
max:
|
|
82
|
-
step:
|
|
83
|
-
format:
|
|
77
|
+
function L({ spec: e, value: t, row: n, onChange: r }) {
|
|
78
|
+
let i = /* @__PURE__ */ C(m, {
|
|
79
|
+
value: t,
|
|
80
|
+
min: e.min,
|
|
81
|
+
max: e.max,
|
|
82
|
+
step: e.step,
|
|
83
|
+
format: e.format,
|
|
84
84
|
onValueChange: (e) => {
|
|
85
|
-
|
|
85
|
+
r(typeof e == "number" ? e : e[0]);
|
|
86
86
|
},
|
|
87
|
-
children: [/* @__PURE__ */ C(
|
|
87
|
+
children: [/* @__PURE__ */ C(o, {
|
|
88
88
|
justify: "between",
|
|
89
|
-
children: [/* @__PURE__ */ S(
|
|
90
|
-
}), /* @__PURE__ */ S(
|
|
89
|
+
children: [/* @__PURE__ */ S(_, { children: e.label }), /* @__PURE__ */ S(v, {})]
|
|
90
|
+
}), /* @__PURE__ */ S(y, { children: /* @__PURE__ */ C(g, { children: [/* @__PURE__ */ S(h, {}), /* @__PURE__ */ S(p, { "aria-label": e.label })] }) })]
|
|
91
91
|
});
|
|
92
|
-
return
|
|
92
|
+
return n ? /* @__PURE__ */ S("div", {
|
|
93
93
|
className: k.rowField,
|
|
94
|
-
children:
|
|
95
|
-
}) :
|
|
94
|
+
children: i
|
|
95
|
+
}) : i;
|
|
96
96
|
}
|
|
97
97
|
function R({ checked: e, row: t, onChange: n }) {
|
|
98
98
|
let r = w();
|
|
99
|
-
return /* @__PURE__ */ C(
|
|
99
|
+
return /* @__PURE__ */ C(o, {
|
|
100
100
|
align: "center",
|
|
101
101
|
justify: t ? "start" : "between",
|
|
102
102
|
gap: "2",
|
|
@@ -105,18 +105,18 @@ function R({ checked: e, row: t, onChange: n }) {
|
|
|
105
105
|
id: r,
|
|
106
106
|
className: k.invertLabel,
|
|
107
107
|
children: "Invert"
|
|
108
|
-
}), /* @__PURE__ */ S(
|
|
108
|
+
}), /* @__PURE__ */ S(i, {
|
|
109
109
|
"aria-labelledby": r,
|
|
110
110
|
checked: e,
|
|
111
111
|
onCheckedChange: (e) => {
|
|
112
112
|
n(e);
|
|
113
113
|
},
|
|
114
|
-
children: /* @__PURE__ */ S(
|
|
114
|
+
children: /* @__PURE__ */ S(l, {})
|
|
115
115
|
})]
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function z({ active: e, onChange: t }) {
|
|
119
|
-
return /* @__PURE__ */ C(
|
|
119
|
+
return /* @__PURE__ */ C(f, {
|
|
120
120
|
className: k.segment,
|
|
121
121
|
"aria-label": "Display dimension",
|
|
122
122
|
value: [e],
|
|
@@ -124,10 +124,10 @@ function z({ active: e, onChange: t }) {
|
|
|
124
124
|
let n = e[0];
|
|
125
125
|
(n === "2d" || n === "3d") && t(n);
|
|
126
126
|
},
|
|
127
|
-
children: [/* @__PURE__ */ S(
|
|
127
|
+
children: [/* @__PURE__ */ S(r, {
|
|
128
128
|
value: "2d",
|
|
129
129
|
children: "2D"
|
|
130
|
-
}), /* @__PURE__ */ S(
|
|
130
|
+
}), /* @__PURE__ */ S(r, {
|
|
131
131
|
value: "3d",
|
|
132
132
|
children: "3D"
|
|
133
133
|
})]
|
|
@@ -150,115 +150,115 @@ function B({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
|
|
|
150
150
|
}
|
|
151
151
|
})] });
|
|
152
152
|
}
|
|
153
|
-
function V({ variant: e = "default", options:
|
|
154
|
-
let [
|
|
155
|
-
|
|
153
|
+
function V({ variant: e = "default", options: r, intensityRange: i, ranges: l, onOptionsChange: f, className: p, ...m }) {
|
|
154
|
+
let [h, g] = E("2d"), _ = N(i, l), v = (e) => {
|
|
155
|
+
g(e === "3d" ? "3d" : "2d");
|
|
156
156
|
};
|
|
157
157
|
return /* @__PURE__ */ S("div", {
|
|
158
|
-
...
|
|
158
|
+
...m,
|
|
159
159
|
"data-imf-ui-component": "ImageDisplayOptions",
|
|
160
|
-
className: I({ className:
|
|
161
|
-
children: e === "default" ? /* @__PURE__ */ C(
|
|
162
|
-
value:
|
|
163
|
-
onValueChange:
|
|
164
|
-
children: [/* @__PURE__ */ C(
|
|
165
|
-
/* @__PURE__ */ S(
|
|
160
|
+
className: I({ className: p }),
|
|
161
|
+
children: e === "default" ? /* @__PURE__ */ C(t, {
|
|
162
|
+
value: h,
|
|
163
|
+
onValueChange: v,
|
|
164
|
+
children: [/* @__PURE__ */ C(s, { children: [
|
|
165
|
+
/* @__PURE__ */ S(c, {
|
|
166
166
|
value: "2d",
|
|
167
167
|
children: "2D Slices"
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */ S(
|
|
169
|
+
/* @__PURE__ */ S(c, {
|
|
170
170
|
value: "3d",
|
|
171
171
|
children: "3D Volume"
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */ S(
|
|
174
|
-
] }), /* @__PURE__ */ C(
|
|
173
|
+
/* @__PURE__ */ S(d, {})
|
|
174
|
+
] }), /* @__PURE__ */ C(a, { children: [/* @__PURE__ */ S(u, {
|
|
175
175
|
value: "2d",
|
|
176
|
-
children: /* @__PURE__ */ S(
|
|
176
|
+
children: /* @__PURE__ */ S(n, {
|
|
177
177
|
gap: "3",
|
|
178
178
|
children: /* @__PURE__ */ S(B, {
|
|
179
179
|
dimension: "2d",
|
|
180
|
-
fields:
|
|
181
|
-
options:
|
|
180
|
+
fields: _["2d"],
|
|
181
|
+
options: r,
|
|
182
182
|
row: !1,
|
|
183
|
-
onChange:
|
|
183
|
+
onChange: f
|
|
184
184
|
})
|
|
185
185
|
})
|
|
186
|
-
}), /* @__PURE__ */ S(
|
|
186
|
+
}), /* @__PURE__ */ S(u, {
|
|
187
187
|
value: "3d",
|
|
188
|
-
children: /* @__PURE__ */ S(
|
|
188
|
+
children: /* @__PURE__ */ S(n, {
|
|
189
189
|
gap: "3",
|
|
190
190
|
children: /* @__PURE__ */ S(B, {
|
|
191
191
|
dimension: "3d",
|
|
192
|
-
fields:
|
|
193
|
-
options:
|
|
192
|
+
fields: _["3d"],
|
|
193
|
+
options: r,
|
|
194
194
|
row: !1,
|
|
195
|
-
onChange:
|
|
195
|
+
onChange: f
|
|
196
196
|
})
|
|
197
197
|
})
|
|
198
198
|
})] })]
|
|
199
|
-
}) : e === "horizontal" ? /* @__PURE__ */ C(
|
|
199
|
+
}) : e === "horizontal" ? /* @__PURE__ */ C(t, {
|
|
200
200
|
className: k.horizontalTabs,
|
|
201
201
|
orientation: "vertical",
|
|
202
|
-
value:
|
|
203
|
-
onValueChange:
|
|
204
|
-
children: [/* @__PURE__ */ C(
|
|
202
|
+
value: h,
|
|
203
|
+
onValueChange: v,
|
|
204
|
+
children: [/* @__PURE__ */ C(s, {
|
|
205
205
|
fill: !0,
|
|
206
206
|
children: [
|
|
207
|
-
/* @__PURE__ */ S(
|
|
207
|
+
/* @__PURE__ */ S(c, {
|
|
208
208
|
value: "2d",
|
|
209
209
|
children: "2D"
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */ S(
|
|
211
|
+
/* @__PURE__ */ S(c, {
|
|
212
212
|
value: "3d",
|
|
213
213
|
children: "3D"
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */ S(
|
|
215
|
+
/* @__PURE__ */ S(d, {})
|
|
216
216
|
]
|
|
217
|
-
}), /* @__PURE__ */ C(
|
|
217
|
+
}), /* @__PURE__ */ C(a, {
|
|
218
218
|
className: k.horizontalPanel,
|
|
219
|
-
children: [/* @__PURE__ */ S(
|
|
219
|
+
children: [/* @__PURE__ */ S(u, {
|
|
220
220
|
value: "2d",
|
|
221
|
-
children: /* @__PURE__ */ S(
|
|
221
|
+
children: /* @__PURE__ */ S(o, {
|
|
222
222
|
align: "center",
|
|
223
223
|
gap: "3",
|
|
224
224
|
className: k.strip,
|
|
225
225
|
children: /* @__PURE__ */ S(B, {
|
|
226
226
|
dimension: "2d",
|
|
227
|
-
fields:
|
|
228
|
-
options:
|
|
227
|
+
fields: _["2d"],
|
|
228
|
+
options: r,
|
|
229
229
|
row: !0,
|
|
230
|
-
onChange:
|
|
230
|
+
onChange: f
|
|
231
231
|
})
|
|
232
232
|
})
|
|
233
|
-
}), /* @__PURE__ */ S(
|
|
233
|
+
}), /* @__PURE__ */ S(u, {
|
|
234
234
|
value: "3d",
|
|
235
|
-
children: /* @__PURE__ */ S(
|
|
235
|
+
children: /* @__PURE__ */ S(o, {
|
|
236
236
|
align: "center",
|
|
237
237
|
gap: "3",
|
|
238
238
|
className: k.strip,
|
|
239
239
|
children: /* @__PURE__ */ S(B, {
|
|
240
240
|
dimension: "3d",
|
|
241
|
-
fields:
|
|
242
|
-
options:
|
|
241
|
+
fields: _["3d"],
|
|
242
|
+
options: r,
|
|
243
243
|
row: !0,
|
|
244
|
-
onChange:
|
|
244
|
+
onChange: f
|
|
245
245
|
})
|
|
246
246
|
})
|
|
247
247
|
})]
|
|
248
248
|
})]
|
|
249
|
-
}) : /* @__PURE__ */ C(
|
|
249
|
+
}) : /* @__PURE__ */ C(o, {
|
|
250
250
|
align: "center",
|
|
251
251
|
gap: "3",
|
|
252
252
|
className: k.compactStrip,
|
|
253
253
|
children: [/* @__PURE__ */ S(z, {
|
|
254
|
-
active:
|
|
255
|
-
onChange:
|
|
254
|
+
active: h,
|
|
255
|
+
onChange: g
|
|
256
256
|
}), /* @__PURE__ */ S(B, {
|
|
257
|
-
dimension:
|
|
258
|
-
fields:
|
|
259
|
-
options:
|
|
257
|
+
dimension: h,
|
|
258
|
+
fields: _[h],
|
|
259
|
+
options: r,
|
|
260
260
|
row: !0,
|
|
261
|
-
onChange:
|
|
261
|
+
onChange: f
|
|
262
262
|
})]
|
|
263
263
|
})
|
|
264
264
|
});
|
|
@@ -296,7 +296,7 @@ H.displayName = "ImageDisplayOptions";
|
|
|
296
296
|
//#region src/integrations/image-display-options/image-display-options.meta.ts
|
|
297
297
|
var U = {
|
|
298
298
|
name: "ImageDisplayOptions",
|
|
299
|
-
category:
|
|
299
|
+
category: e.inputs,
|
|
300
300
|
status: "experimental",
|
|
301
301
|
description: "Panel and toolbar controls for an image dataset's display options, including window, level, gamma, and invert settings.",
|
|
302
302
|
origin: "adapted",
|