@imfusion/web-ui 0.11.1-dev.31.gb80c710e → 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 +25 -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
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +9 -1
- package/src/llms/tokens.gen.json +19 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../meta-V_KyLeGn.js";
|
|
2
|
-
import { a as t,
|
|
2
|
+
import { a as t, d as n, f as r, g as i, h as a, i as o, n as s, o as c, p as l, r as u, t as d, u as f } from "../tabs-D5DTlk0d.js";
|
|
3
3
|
import { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from "../slider-BKDxeTmk.js";
|
|
4
4
|
import { t as b } from "../scroll-area-CUo1NBaW.js";
|
|
5
5
|
import { cva as x } from "class-variance-authority";
|
|
@@ -74,49 +74,49 @@ function I(e, t) {
|
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/integrations/image-display-options/image-display-options-view.tsx
|
|
76
76
|
var L = x(A.root);
|
|
77
|
-
function R({ spec: e, value: t, row:
|
|
78
|
-
let
|
|
77
|
+
function R({ spec: e, value: t, row: r, onChange: i }) {
|
|
78
|
+
let a = /* @__PURE__ */ w(m, {
|
|
79
79
|
value: t,
|
|
80
80
|
min: e.min,
|
|
81
81
|
max: e.max,
|
|
82
82
|
step: e.step,
|
|
83
83
|
format: e.format,
|
|
84
84
|
onValueChange: (e) => {
|
|
85
|
-
|
|
85
|
+
i(typeof e == "number" ? e : e[0]);
|
|
86
86
|
},
|
|
87
|
-
children: [/* @__PURE__ */ w(
|
|
87
|
+
children: [/* @__PURE__ */ w(n, {
|
|
88
88
|
justify: "between",
|
|
89
89
|
children: [/* @__PURE__ */ C(_, { children: e.label }), /* @__PURE__ */ C(v, {})]
|
|
90
90
|
}), /* @__PURE__ */ C(y, { children: /* @__PURE__ */ w(g, { children: [/* @__PURE__ */ C(h, {}), /* @__PURE__ */ C(p, { "aria-label": e.label })] }) })]
|
|
91
91
|
});
|
|
92
|
-
return
|
|
92
|
+
return r ? /* @__PURE__ */ C("div", {
|
|
93
93
|
className: A.rowField,
|
|
94
|
-
children:
|
|
95
|
-
}) :
|
|
94
|
+
children: a
|
|
95
|
+
}) : a;
|
|
96
96
|
}
|
|
97
|
-
function z({ checked: e, row: t, onChange:
|
|
98
|
-
let
|
|
99
|
-
return /* @__PURE__ */ w(
|
|
97
|
+
function z({ checked: e, row: t, onChange: i }) {
|
|
98
|
+
let a = T();
|
|
99
|
+
return /* @__PURE__ */ w(n, {
|
|
100
100
|
align: "center",
|
|
101
101
|
justify: t ? "start" : "between",
|
|
102
102
|
gap: "2",
|
|
103
103
|
className: A.invertRow,
|
|
104
104
|
children: [/* @__PURE__ */ C("span", {
|
|
105
|
-
id:
|
|
105
|
+
id: a,
|
|
106
106
|
className: A.invertLabel,
|
|
107
107
|
children: "Invert"
|
|
108
|
-
}), /* @__PURE__ */ C(
|
|
109
|
-
"aria-labelledby":
|
|
108
|
+
}), /* @__PURE__ */ C(r, {
|
|
109
|
+
"aria-labelledby": a,
|
|
110
110
|
checked: e,
|
|
111
111
|
onCheckedChange: (e) => {
|
|
112
|
-
|
|
112
|
+
i(e);
|
|
113
113
|
},
|
|
114
|
-
children: /* @__PURE__ */ C(
|
|
114
|
+
children: /* @__PURE__ */ C(l, {})
|
|
115
115
|
})]
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function B({ active: e, onChange: t }) {
|
|
119
|
-
return /* @__PURE__ */ w(
|
|
119
|
+
return /* @__PURE__ */ w(a, {
|
|
120
120
|
className: A.segment,
|
|
121
121
|
"aria-label": "Display dimension",
|
|
122
122
|
value: [e],
|
|
@@ -124,10 +124,10 @@ function B({ active: e, onChange: t }) {
|
|
|
124
124
|
let n = e[0];
|
|
125
125
|
(n === "2d" || n === "3d") && t(n);
|
|
126
126
|
},
|
|
127
|
-
children: [/* @__PURE__ */ C(
|
|
127
|
+
children: [/* @__PURE__ */ C(i, {
|
|
128
128
|
value: "2d",
|
|
129
129
|
children: "2D"
|
|
130
|
-
}), /* @__PURE__ */ C(
|
|
130
|
+
}), /* @__PURE__ */ C(i, {
|
|
131
131
|
value: "3d",
|
|
132
132
|
children: "3D"
|
|
133
133
|
})]
|
|
@@ -150,8 +150,8 @@ function V({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
|
|
|
150
150
|
}
|
|
151
151
|
})] });
|
|
152
152
|
}
|
|
153
|
-
function H({ variant: e = "default", options: r, intensityRange:
|
|
154
|
-
let [h, g] = D("2d"), _ = P(
|
|
153
|
+
function H({ variant: e = "default", options: r, intensityRange: i, ranges: a, onOptionsChange: l, className: p, ...m }) {
|
|
154
|
+
let [h, g] = D("2d"), _ = P(i, a), v = (e) => {
|
|
155
155
|
g(e === "3d" ? "3d" : "2d");
|
|
156
156
|
};
|
|
157
157
|
return /* @__PURE__ */ C("div", {
|
|
@@ -171,28 +171,28 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
171
171
|
children: "3D Volume"
|
|
172
172
|
}),
|
|
173
173
|
/* @__PURE__ */ C(d, {})
|
|
174
|
-
] }), /* @__PURE__ */ w(
|
|
174
|
+
] }), /* @__PURE__ */ w(o, { children: [/* @__PURE__ */ C(u, {
|
|
175
175
|
value: "2d",
|
|
176
|
-
children: /* @__PURE__ */ C(
|
|
176
|
+
children: /* @__PURE__ */ C(f, {
|
|
177
177
|
gap: "3",
|
|
178
178
|
children: /* @__PURE__ */ C(V, {
|
|
179
179
|
dimension: "2d",
|
|
180
180
|
fields: _["2d"],
|
|
181
181
|
options: r,
|
|
182
182
|
row: !1,
|
|
183
|
-
onChange:
|
|
183
|
+
onChange: l
|
|
184
184
|
})
|
|
185
185
|
})
|
|
186
186
|
}), /* @__PURE__ */ C(u, {
|
|
187
187
|
value: "3d",
|
|
188
|
-
children: /* @__PURE__ */ C(
|
|
188
|
+
children: /* @__PURE__ */ C(f, {
|
|
189
189
|
gap: "3",
|
|
190
190
|
children: /* @__PURE__ */ C(V, {
|
|
191
191
|
dimension: "3d",
|
|
192
192
|
fields: _["3d"],
|
|
193
193
|
options: r,
|
|
194
194
|
row: !1,
|
|
195
|
-
onChange:
|
|
195
|
+
onChange: l
|
|
196
196
|
})
|
|
197
197
|
})
|
|
198
198
|
})] })]
|
|
@@ -214,14 +214,14 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
214
214
|
}),
|
|
215
215
|
/* @__PURE__ */ C(d, {})
|
|
216
216
|
]
|
|
217
|
-
}), /* @__PURE__ */ w(
|
|
217
|
+
}), /* @__PURE__ */ w(o, {
|
|
218
218
|
className: A.horizontalPanel,
|
|
219
219
|
children: [/* @__PURE__ */ C(u, {
|
|
220
220
|
value: "2d",
|
|
221
221
|
children: /* @__PURE__ */ C(b, {
|
|
222
222
|
orientation: "horizontal",
|
|
223
223
|
className: A.strip,
|
|
224
|
-
children: /* @__PURE__ */ C(
|
|
224
|
+
children: /* @__PURE__ */ C(n, {
|
|
225
225
|
align: "center",
|
|
226
226
|
gap: "3",
|
|
227
227
|
children: /* @__PURE__ */ C(V, {
|
|
@@ -229,7 +229,7 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
229
229
|
fields: _["2d"],
|
|
230
230
|
options: r,
|
|
231
231
|
row: !0,
|
|
232
|
-
onChange:
|
|
232
|
+
onChange: l
|
|
233
233
|
})
|
|
234
234
|
})
|
|
235
235
|
})
|
|
@@ -238,7 +238,7 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
238
238
|
children: /* @__PURE__ */ C(b, {
|
|
239
239
|
orientation: "horizontal",
|
|
240
240
|
className: A.strip,
|
|
241
|
-
children: /* @__PURE__ */ C(
|
|
241
|
+
children: /* @__PURE__ */ C(n, {
|
|
242
242
|
align: "center",
|
|
243
243
|
gap: "3",
|
|
244
244
|
children: /* @__PURE__ */ C(V, {
|
|
@@ -246,7 +246,7 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
246
246
|
fields: _["3d"],
|
|
247
247
|
options: r,
|
|
248
248
|
row: !0,
|
|
249
|
-
onChange:
|
|
249
|
+
onChange: l
|
|
250
250
|
})
|
|
251
251
|
})
|
|
252
252
|
})
|
|
@@ -255,7 +255,7 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
255
255
|
}) : /* @__PURE__ */ C(b, {
|
|
256
256
|
orientation: "horizontal",
|
|
257
257
|
className: A.strip,
|
|
258
|
-
children: /* @__PURE__ */ w(
|
|
258
|
+
children: /* @__PURE__ */ w(n, {
|
|
259
259
|
align: "center",
|
|
260
260
|
gap: "3",
|
|
261
261
|
children: [/* @__PURE__ */ C(B, {
|
|
@@ -266,7 +266,7 @@ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, o
|
|
|
266
266
|
fields: _[h],
|
|
267
267
|
options: r,
|
|
268
268
|
row: !0,
|
|
269
|
-
onChange:
|
|
269
|
+
onChange: l
|
|
270
270
|
})]
|
|
271
271
|
})
|
|
272
272
|
})
|