@imfusion/web-ui 0.9.1-dev.9.gdfff1530 → 0.10.1-dev.11.g9f5bc06e
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 +116 -21
- package/dist/code-NTcddiYk.js +139 -0
- package/dist/components/app-shell/app-shell.d.ts +1 -1
- package/dist/components/dialog/dialog.d.ts +148 -0
- package/dist/components/dialog/dialog.meta.d.ts +2 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/scroll-area.d.ts +49 -0
- package/dist/components/scroll-area/scroll-area.meta.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2072 -1743
- package/dist/integrations/code-highlight.js +2 -2
- package/dist/integrations/frame-selection.js +1 -1
- package/dist/integrations/image-display-options.js +121 -111
- package/dist/{rolldown-runtime-Dy4uBu1J.js → resolve-state-props-DQf9WiGv.js} +12 -1
- package/dist/scroll-area-z9Lf9uIk.js +89 -0
- package/dist/slider-Bf274cMe.js +106 -0
- package/dist/style.css +1 -1
- package/dist/{tabs-DRyqtS04.js → tabs-Do0BFL12.js} +31 -32
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +1099 -0
- package/src/llms/llms.gen.txt +12 -0
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +1 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +2 -3
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +4 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +11 -5
- package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +11 -0
- package/src/llms/skills/imf-web-ui-conventions/topics/react.md +6 -4
- package/src/llms/skills/imf-web-ui-update/SKILL.md +20 -10
- package/dist/code-BYkr5k55.js +0 -134
- package/dist/slider-Cqpreglu.js +0 -116
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as e } from "../resolve-state-props-DQf9WiGv.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-NTcddiYk.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
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-
|
|
2
|
+
import { a as t, i as n, o as r, t as i } from "../slider-Bf274cMe.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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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-
|
|
3
|
-
import { a as p, i as m, n as h, o as g, r as _, s as v, t as y } from "../slider-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
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-Do0BFL12.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-Bf274cMe.js";
|
|
4
|
+
import { t as b } from "../scroll-area-z9Lf9uIk.js";
|
|
5
|
+
import { cva as x } from "class-variance-authority";
|
|
6
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
7
|
+
import { useId as T, useMemo as E, useState as D } from "react";
|
|
8
|
+
import { useDisplayOptions2d as O, useDisplayOptions3d as k } from "@imfusion/sdk-react";
|
|
9
|
+
var A = {
|
|
10
10
|
horizontalPanel: "imf-ui-image-display-options-module-horizontalPanel",
|
|
11
11
|
horizontalTabs: "imf-ui-image-display-options-module-horizontalTabs",
|
|
12
12
|
invertLabel: "imf-ui-image-display-options-module-invertLabel",
|
|
@@ -15,7 +15,7 @@ var k = {
|
|
|
15
15
|
rowField: "imf-ui-image-display-options-module-rowField",
|
|
16
16
|
segment: "imf-ui-image-display-options-module-segment",
|
|
17
17
|
strip: "imf-ui-image-display-options-module-strip"
|
|
18
|
-
},
|
|
18
|
+
}, j = {
|
|
19
19
|
key: "gamma",
|
|
20
20
|
label: "Gamma",
|
|
21
21
|
min: .1,
|
|
@@ -23,14 +23,14 @@ var k = {
|
|
|
23
23
|
step: .1,
|
|
24
24
|
format: { maximumFractionDigits: 1 }
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function M(e) {
|
|
27
27
|
return e > 0 ? 10 ** Math.floor(Math.log10(e / 1e3)) : 1;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function N(e) {
|
|
30
30
|
return !(e > 0) || e >= 1 ? 0 : Math.ceil(-Math.log10(e));
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let r = t - e, i =
|
|
32
|
+
function P([e, t], n) {
|
|
33
|
+
let r = t - e, i = M(r), a = { maximumFractionDigits: N(i) }, o = (e) => {
|
|
34
34
|
let t = n?.[e.key];
|
|
35
35
|
if (!t) return e;
|
|
36
36
|
let r = t.step ?? e.step;
|
|
@@ -39,7 +39,7 @@ function N([e, t], n) {
|
|
|
39
39
|
min: t.min ?? e.min,
|
|
40
40
|
max: t.max ?? e.max,
|
|
41
41
|
step: r,
|
|
42
|
-
format: t.step === void 0 ? e.format : { maximumFractionDigits:
|
|
42
|
+
format: t.step === void 0 ? e.format : { maximumFractionDigits: N(r) }
|
|
43
43
|
};
|
|
44
44
|
}, s = o({
|
|
45
45
|
key: "window",
|
|
@@ -60,22 +60,22 @@ function N([e, t], n) {
|
|
|
60
60
|
"2d": [
|
|
61
61
|
s,
|
|
62
62
|
c,
|
|
63
|
-
o(
|
|
63
|
+
o(j)
|
|
64
64
|
],
|
|
65
65
|
"3d": [s, c]
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function F(e, t) {
|
|
69
69
|
return e === "window" ? { window: t } : e === "level" ? { level: t } : { gamma: t };
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function I(e, t) {
|
|
72
72
|
return t === "window" ? e.window : t === "level" ? e.level : "gamma" in e ? e.gamma : 0;
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/integrations/image-display-options/image-display-options-view.tsx
|
|
76
|
-
var
|
|
77
|
-
function
|
|
78
|
-
let i = /* @__PURE__ */
|
|
76
|
+
var L = x(A.root);
|
|
77
|
+
function R({ spec: e, value: t, row: n, onChange: r }) {
|
|
78
|
+
let i = /* @__PURE__ */ w(m, {
|
|
79
79
|
value: t,
|
|
80
80
|
min: e.min,
|
|
81
81
|
max: e.max,
|
|
@@ -84,65 +84,65 @@ function L({ spec: e, value: t, row: n, onChange: r }) {
|
|
|
84
84
|
onValueChange: (e) => {
|
|
85
85
|
r(typeof e == "number" ? e : e[0]);
|
|
86
86
|
},
|
|
87
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ w(o, {
|
|
88
88
|
justify: "between",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
90
|
-
}), /* @__PURE__ */
|
|
89
|
+
children: [/* @__PURE__ */ C(_, { children: e.label }), /* @__PURE__ */ C(v, {})]
|
|
90
|
+
}), /* @__PURE__ */ C(y, { children: /* @__PURE__ */ w(g, { children: [/* @__PURE__ */ C(h, {}), /* @__PURE__ */ C(p, { "aria-label": e.label })] }) })]
|
|
91
91
|
});
|
|
92
|
-
return n ? /* @__PURE__ */
|
|
93
|
-
className:
|
|
92
|
+
return n ? /* @__PURE__ */ C("div", {
|
|
93
|
+
className: A.rowField,
|
|
94
94
|
children: i
|
|
95
95
|
}) : i;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
let r =
|
|
99
|
-
return /* @__PURE__ */
|
|
97
|
+
function z({ checked: e, row: t, onChange: n }) {
|
|
98
|
+
let r = T();
|
|
99
|
+
return /* @__PURE__ */ w(o, {
|
|
100
100
|
align: "center",
|
|
101
101
|
justify: t ? "start" : "between",
|
|
102
102
|
gap: "2",
|
|
103
|
-
className:
|
|
104
|
-
children: [/* @__PURE__ */
|
|
103
|
+
className: A.invertRow,
|
|
104
|
+
children: [/* @__PURE__ */ C("span", {
|
|
105
105
|
id: r,
|
|
106
|
-
className:
|
|
106
|
+
className: A.invertLabel,
|
|
107
107
|
children: "Invert"
|
|
108
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ C(i, {
|
|
109
109
|
"aria-labelledby": r,
|
|
110
110
|
checked: e,
|
|
111
111
|
onCheckedChange: (e) => {
|
|
112
112
|
n(e);
|
|
113
113
|
},
|
|
114
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ C(l, {})
|
|
115
115
|
})]
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
return /* @__PURE__ */
|
|
120
|
-
className:
|
|
118
|
+
function B({ active: e, onChange: t }) {
|
|
119
|
+
return /* @__PURE__ */ w(f, {
|
|
120
|
+
className: A.segment,
|
|
121
121
|
"aria-label": "Display dimension",
|
|
122
122
|
value: [e],
|
|
123
123
|
onValueChange: (e) => {
|
|
124
124
|
let n = e[0];
|
|
125
125
|
(n === "2d" || n === "3d") && t(n);
|
|
126
126
|
},
|
|
127
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ C(r, {
|
|
128
128
|
value: "2d",
|
|
129
129
|
children: "2D"
|
|
130
|
-
}), /* @__PURE__ */
|
|
130
|
+
}), /* @__PURE__ */ C(r, {
|
|
131
131
|
value: "3d",
|
|
132
132
|
children: "3D"
|
|
133
133
|
})]
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function V({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
|
|
137
137
|
let a = n[e];
|
|
138
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ w(S, { children: [t.map((t) => /* @__PURE__ */ C(R, {
|
|
139
139
|
spec: t,
|
|
140
|
-
value:
|
|
140
|
+
value: I(a, t.key),
|
|
141
141
|
row: r,
|
|
142
142
|
onChange: (n) => {
|
|
143
|
-
i(e,
|
|
143
|
+
i(e, F(t.key, n));
|
|
144
144
|
}
|
|
145
|
-
}, t.key)), /* @__PURE__ */
|
|
145
|
+
}, t.key)), /* @__PURE__ */ C(z, {
|
|
146
146
|
checked: a.invert,
|
|
147
147
|
row: r,
|
|
148
148
|
onChange: (t) => {
|
|
@@ -150,32 +150,32 @@ function B({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
|
|
|
150
150
|
}
|
|
151
151
|
})] });
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
let [h, g] =
|
|
153
|
+
function H({ variant: e = "default", options: r, intensityRange: i, ranges: l, onOptionsChange: f, className: p, ...m }) {
|
|
154
|
+
let [h, g] = D("2d"), _ = P(i, l), v = (e) => {
|
|
155
155
|
g(e === "3d" ? "3d" : "2d");
|
|
156
156
|
};
|
|
157
|
-
return /* @__PURE__ */
|
|
157
|
+
return /* @__PURE__ */ C("div", {
|
|
158
158
|
...m,
|
|
159
159
|
"data-imf-ui-component": "ImageDisplayOptions",
|
|
160
|
-
className:
|
|
161
|
-
children: e === "default" ? /* @__PURE__ */
|
|
160
|
+
className: L({ className: p }),
|
|
161
|
+
children: e === "default" ? /* @__PURE__ */ w(t, {
|
|
162
162
|
value: h,
|
|
163
163
|
onValueChange: v,
|
|
164
|
-
children: [/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
164
|
+
children: [/* @__PURE__ */ w(s, { children: [
|
|
165
|
+
/* @__PURE__ */ C(c, {
|
|
166
166
|
value: "2d",
|
|
167
167
|
children: "2D Slices"
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ C(c, {
|
|
170
170
|
value: "3d",
|
|
171
171
|
children: "3D Volume"
|
|
172
172
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
] }), /* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ C(d, {})
|
|
174
|
+
] }), /* @__PURE__ */ w(a, { children: [/* @__PURE__ */ C(u, {
|
|
175
175
|
value: "2d",
|
|
176
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ C(n, {
|
|
177
177
|
gap: "3",
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ C(V, {
|
|
179
179
|
dimension: "2d",
|
|
180
180
|
fields: _["2d"],
|
|
181
181
|
options: r,
|
|
@@ -183,11 +183,11 @@ function V({ variant: e = "default", options: r, intensityRange: i, ranges: l, o
|
|
|
183
183
|
onChange: f
|
|
184
184
|
})
|
|
185
185
|
})
|
|
186
|
-
}), /* @__PURE__ */
|
|
186
|
+
}), /* @__PURE__ */ C(u, {
|
|
187
187
|
value: "3d",
|
|
188
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ C(n, {
|
|
189
189
|
gap: "3",
|
|
190
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ C(V, {
|
|
191
191
|
dimension: "3d",
|
|
192
192
|
fields: _["3d"],
|
|
193
193
|
options: r,
|
|
@@ -196,78 +196,87 @@ function V({ variant: e = "default", options: r, intensityRange: i, ranges: l, o
|
|
|
196
196
|
})
|
|
197
197
|
})
|
|
198
198
|
})] })]
|
|
199
|
-
}) : e === "horizontal" ? /* @__PURE__ */
|
|
200
|
-
className:
|
|
199
|
+
}) : e === "horizontal" ? /* @__PURE__ */ w(t, {
|
|
200
|
+
className: A.horizontalTabs,
|
|
201
201
|
orientation: "vertical",
|
|
202
202
|
value: h,
|
|
203
203
|
onValueChange: v,
|
|
204
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ w(s, {
|
|
205
205
|
fill: !0,
|
|
206
206
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ C(c, {
|
|
208
208
|
value: "2d",
|
|
209
209
|
children: "2D"
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ C(c, {
|
|
212
212
|
value: "3d",
|
|
213
213
|
children: "3D"
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ C(d, {})
|
|
216
216
|
]
|
|
217
|
-
}), /* @__PURE__ */
|
|
218
|
-
className:
|
|
219
|
-
children: [/* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ w(a, {
|
|
218
|
+
className: A.horizontalPanel,
|
|
219
|
+
children: [/* @__PURE__ */ C(u, {
|
|
220
220
|
value: "2d",
|
|
221
|
-
children: /* @__PURE__ */
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
221
|
+
children: /* @__PURE__ */ C(b, {
|
|
222
|
+
orientation: "horizontal",
|
|
223
|
+
className: A.strip,
|
|
224
|
+
children: /* @__PURE__ */ C(o, {
|
|
225
|
+
align: "center",
|
|
226
|
+
gap: "3",
|
|
227
|
+
children: /* @__PURE__ */ C(V, {
|
|
228
|
+
dimension: "2d",
|
|
229
|
+
fields: _["2d"],
|
|
230
|
+
options: r,
|
|
231
|
+
row: !0,
|
|
232
|
+
onChange: f
|
|
233
|
+
})
|
|
231
234
|
})
|
|
232
235
|
})
|
|
233
|
-
}), /* @__PURE__ */
|
|
236
|
+
}), /* @__PURE__ */ C(u, {
|
|
234
237
|
value: "3d",
|
|
235
|
-
children: /* @__PURE__ */
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
children: /* @__PURE__ */ C(b, {
|
|
239
|
+
orientation: "horizontal",
|
|
240
|
+
className: A.strip,
|
|
241
|
+
children: /* @__PURE__ */ C(o, {
|
|
242
|
+
align: "center",
|
|
243
|
+
gap: "3",
|
|
244
|
+
children: /* @__PURE__ */ C(V, {
|
|
245
|
+
dimension: "3d",
|
|
246
|
+
fields: _["3d"],
|
|
247
|
+
options: r,
|
|
248
|
+
row: !0,
|
|
249
|
+
onChange: f
|
|
250
|
+
})
|
|
245
251
|
})
|
|
246
252
|
})
|
|
247
253
|
})]
|
|
248
254
|
})]
|
|
249
|
-
}) : /* @__PURE__ */ C(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
}) : /* @__PURE__ */ C(b, {
|
|
256
|
+
orientation: "horizontal",
|
|
257
|
+
className: A.strip,
|
|
258
|
+
children: /* @__PURE__ */ w(o, {
|
|
259
|
+
align: "center",
|
|
260
|
+
gap: "3",
|
|
261
|
+
children: [/* @__PURE__ */ C(B, {
|
|
262
|
+
active: h,
|
|
263
|
+
onChange: g
|
|
264
|
+
}), /* @__PURE__ */ C(V, {
|
|
265
|
+
dimension: h,
|
|
266
|
+
fields: _[h],
|
|
267
|
+
options: r,
|
|
268
|
+
row: !0,
|
|
269
|
+
onChange: f
|
|
270
|
+
})]
|
|
271
|
+
})
|
|
263
272
|
})
|
|
264
273
|
});
|
|
265
274
|
}
|
|
266
|
-
|
|
275
|
+
H.displayName = "ImageDisplayOptionsView";
|
|
267
276
|
//#endregion
|
|
268
277
|
//#region src/integrations/image-display-options/image-display-options.tsx
|
|
269
|
-
function
|
|
270
|
-
let i =
|
|
278
|
+
function U({ data: e, variant: t = "default", ranges: n, ...r }) {
|
|
279
|
+
let i = O(e), a = k(e), o = {
|
|
271
280
|
"2d": {
|
|
272
281
|
window: i.window,
|
|
273
282
|
level: i.level,
|
|
@@ -279,8 +288,8 @@ function H({ data: e, variant: t = "default", ranges: n, ...r }) {
|
|
|
279
288
|
level: a.level,
|
|
280
289
|
invert: a.invert
|
|
281
290
|
}
|
|
282
|
-
}, s =
|
|
283
|
-
return /* @__PURE__ */
|
|
291
|
+
}, s = E(() => e.minmaxIntensityOriginal(), [e]);
|
|
292
|
+
return /* @__PURE__ */ C(H, {
|
|
284
293
|
...r,
|
|
285
294
|
variant: t,
|
|
286
295
|
options: o,
|
|
@@ -291,10 +300,10 @@ function H({ data: e, variant: t = "default", ranges: n, ...r }) {
|
|
|
291
300
|
}
|
|
292
301
|
});
|
|
293
302
|
}
|
|
294
|
-
|
|
303
|
+
U.displayName = "ImageDisplayOptions";
|
|
295
304
|
//#endregion
|
|
296
305
|
//#region src/integrations/image-display-options/image-display-options.meta.ts
|
|
297
|
-
var
|
|
306
|
+
var W = {
|
|
298
307
|
name: "ImageDisplayOptions",
|
|
299
308
|
category: e.inputs,
|
|
300
309
|
status: "experimental",
|
|
@@ -307,7 +316,8 @@ var U = {
|
|
|
307
316
|
"ToggleGroup",
|
|
308
317
|
"Toggle",
|
|
309
318
|
"Row",
|
|
310
|
-
"Stack"
|
|
319
|
+
"Stack",
|
|
320
|
+
"ScrollArea"
|
|
311
321
|
],
|
|
312
322
|
upstream: {
|
|
313
323
|
name: "ImFusion Web SDK",
|
|
@@ -318,4 +328,4 @@ var U = {
|
|
|
318
328
|
}
|
|
319
329
|
};
|
|
320
330
|
//#endregion
|
|
321
|
-
export {
|
|
331
|
+
export { U as ImageDisplayOptions, W as imageDisplayOptionsMeta };
|
|
@@ -8,4 +8,15 @@ var e = Object.defineProperty, t = (t, n) => {
|
|
|
8
8
|
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
|
|
11
|
+
//#region src/utils/resolve-state-props.ts
|
|
12
|
+
function n(e, t) {
|
|
13
|
+
return e instanceof Function ? e(t) : e;
|
|
14
|
+
}
|
|
15
|
+
function r(e, t) {
|
|
16
|
+
return n(e, t);
|
|
17
|
+
}
|
|
18
|
+
function i(e, t) {
|
|
19
|
+
return n(e, t);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as n, t as r, r as t };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { r as e, t } from "./resolve-state-props-DQf9WiGv.js";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { ScrollArea as a } from "@base-ui/react/scroll-area";
|
|
5
|
+
var o = {
|
|
6
|
+
content: "imf-ui-scroll-area-module-content",
|
|
7
|
+
corner: "imf-ui-scroll-area-module-corner",
|
|
8
|
+
root: "imf-ui-scroll-area-module-root",
|
|
9
|
+
scrollbar: "imf-ui-scroll-area-module-scrollbar",
|
|
10
|
+
thumb: "imf-ui-scroll-area-module-thumb",
|
|
11
|
+
viewport: "imf-ui-scroll-area-module-viewport"
|
|
12
|
+
}, s = /* @__PURE__ */ e({
|
|
13
|
+
Auto: () => b,
|
|
14
|
+
Content: () => g,
|
|
15
|
+
Corner: () => y,
|
|
16
|
+
Root: () => m,
|
|
17
|
+
Scrollbar: () => _,
|
|
18
|
+
Thumb: () => v,
|
|
19
|
+
Viewport: () => h
|
|
20
|
+
}), c = n(o.root), l = n(o.viewport), u = n(o.content), d = n(o.scrollbar), f = n(o.thumb), p = n(o.corner);
|
|
21
|
+
function m(e) {
|
|
22
|
+
return /* @__PURE__ */ r(a.Root, {
|
|
23
|
+
...e,
|
|
24
|
+
"data-imf-ui-component": "ScrollArea.Root",
|
|
25
|
+
className: (n) => c({ className: t(e.className, n) })
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
m.displayName = "ScrollArea.Root";
|
|
29
|
+
function h(e) {
|
|
30
|
+
return /* @__PURE__ */ r(a.Viewport, {
|
|
31
|
+
...e,
|
|
32
|
+
"data-imf-ui-component": "ScrollArea.Viewport",
|
|
33
|
+
className: (n) => l({ className: t(e.className, n) })
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
h.displayName = "ScrollArea.Viewport";
|
|
37
|
+
function g(e) {
|
|
38
|
+
return /* @__PURE__ */ r(a.Content, {
|
|
39
|
+
...e,
|
|
40
|
+
"data-imf-ui-component": "ScrollArea.Content",
|
|
41
|
+
className: (n) => u({ className: t(e.className, n) })
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
g.displayName = "ScrollArea.Content";
|
|
45
|
+
function _(e) {
|
|
46
|
+
return /* @__PURE__ */ r(a.Scrollbar, {
|
|
47
|
+
...e,
|
|
48
|
+
"data-imf-ui-component": "ScrollArea.Scrollbar",
|
|
49
|
+
className: (n) => d({ className: t(e.className, n) })
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
_.displayName = "ScrollArea.Scrollbar";
|
|
53
|
+
function v(e) {
|
|
54
|
+
return /* @__PURE__ */ r(a.Thumb, {
|
|
55
|
+
...e,
|
|
56
|
+
"data-imf-ui-component": "ScrollArea.Thumb",
|
|
57
|
+
className: (n) => f({ className: t(e.className, n) })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
v.displayName = "ScrollArea.Thumb";
|
|
61
|
+
function y(e) {
|
|
62
|
+
return /* @__PURE__ */ r(a.Corner, {
|
|
63
|
+
...e,
|
|
64
|
+
"data-imf-ui-component": "ScrollArea.Corner",
|
|
65
|
+
className: (n) => p({ className: t(e.className, n) })
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
y.displayName = "ScrollArea.Corner";
|
|
69
|
+
function b({ orientation: e = "vertical", children: t, ...n }) {
|
|
70
|
+
let a = e === "vertical" || e === "both", o = e === "horizontal" || e === "both";
|
|
71
|
+
return /* @__PURE__ */ i(m, {
|
|
72
|
+
...n,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(g, { children: t }) }),
|
|
75
|
+
a && /* @__PURE__ */ r(_, {
|
|
76
|
+
orientation: "vertical",
|
|
77
|
+
children: /* @__PURE__ */ r(v, {})
|
|
78
|
+
}),
|
|
79
|
+
o && /* @__PURE__ */ r(_, {
|
|
80
|
+
orientation: "horizontal",
|
|
81
|
+
children: /* @__PURE__ */ r(v, {})
|
|
82
|
+
}),
|
|
83
|
+
e === "both" && /* @__PURE__ */ r(y, {})
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
b.displayName = "ScrollArea.Auto";
|
|
88
|
+
//#endregion
|
|
89
|
+
export { _ as a, s as c, m as i, g as n, v as o, y as r, h as s, b as t };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { r as e, t } from "./resolve-state-props-DQf9WiGv.js";
|
|
2
|
+
import { cva as n } from "class-variance-authority";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import { Slider as i } from "@base-ui/react/slider";
|
|
5
|
+
var a = {
|
|
6
|
+
control: "imf-ui-slider-module-control",
|
|
7
|
+
indicator: "imf-ui-slider-module-indicator",
|
|
8
|
+
label: "imf-ui-slider-module-label",
|
|
9
|
+
root: "imf-ui-slider-module-root",
|
|
10
|
+
thumb: "imf-ui-slider-module-thumb",
|
|
11
|
+
track: "imf-ui-slider-module-track",
|
|
12
|
+
value: "imf-ui-slider-module-value",
|
|
13
|
+
variantPosition: "imf-ui-slider-module-variantPosition"
|
|
14
|
+
}, o = /* @__PURE__ */ e({
|
|
15
|
+
Control: () => _,
|
|
16
|
+
Indicator: () => y,
|
|
17
|
+
Label: () => h,
|
|
18
|
+
Root: () => m,
|
|
19
|
+
Thumb: () => b,
|
|
20
|
+
Track: () => v,
|
|
21
|
+
Value: () => g
|
|
22
|
+
}), s = n(a.root, { variants: { variant: {
|
|
23
|
+
default: null,
|
|
24
|
+
position: a.variantPosition
|
|
25
|
+
} } }), c = n(a.label), l = n(a.value), u = n(a.control), d = n(a.track), f = n(a.indicator), p = n(a.thumb);
|
|
26
|
+
function m({ variant: e = "default", value: n, defaultValue: a, onValueChange: o, onValueCommitted: c, min: l = 0, max: u = 100, step: d = 1, largeStep: f = 10, minStepsBetweenValues: p = 0, disabled: m = !1, orientation: h = "horizontal", name: g, form: _, locale: v, thumbAlignment: y = "edge", thumbCollisionBehavior: b = "push", format: x, ...S }) {
|
|
27
|
+
return /* @__PURE__ */ r(i.Root, {
|
|
28
|
+
...S,
|
|
29
|
+
"data-imf-ui-component": "Slider.Root",
|
|
30
|
+
"data-orientation": h,
|
|
31
|
+
className: (n) => s({
|
|
32
|
+
variant: e,
|
|
33
|
+
className: t(S.className, n)
|
|
34
|
+
}),
|
|
35
|
+
value: n,
|
|
36
|
+
defaultValue: a,
|
|
37
|
+
onValueChange: o,
|
|
38
|
+
onValueCommitted: c,
|
|
39
|
+
min: l,
|
|
40
|
+
max: u,
|
|
41
|
+
step: d,
|
|
42
|
+
largeStep: f,
|
|
43
|
+
minStepsBetweenValues: p,
|
|
44
|
+
disabled: m,
|
|
45
|
+
orientation: h,
|
|
46
|
+
name: g,
|
|
47
|
+
form: _,
|
|
48
|
+
locale: v,
|
|
49
|
+
thumbAlignment: y,
|
|
50
|
+
thumbCollisionBehavior: b,
|
|
51
|
+
format: x
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
m.displayName = "Slider.Root";
|
|
55
|
+
function h(e) {
|
|
56
|
+
return /* @__PURE__ */ r(i.Label, {
|
|
57
|
+
...e,
|
|
58
|
+
"data-imf-ui-component": "Slider.Label",
|
|
59
|
+
className: (n) => c({ className: t(e.className, n) })
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
h.displayName = "Slider.Label";
|
|
63
|
+
function g({ children: e, ...n }) {
|
|
64
|
+
return /* @__PURE__ */ r(i.Value, {
|
|
65
|
+
...n,
|
|
66
|
+
"data-imf-ui-component": "Slider.Value",
|
|
67
|
+
className: (e) => l({ className: t(n.className, e) }),
|
|
68
|
+
children: e
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
g.displayName = "Slider.Value";
|
|
72
|
+
function _(e) {
|
|
73
|
+
return /* @__PURE__ */ r(i.Control, {
|
|
74
|
+
...e,
|
|
75
|
+
"data-imf-ui-component": "Slider.Control",
|
|
76
|
+
className: (n) => u({ className: t(e.className, n) })
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
_.displayName = "Slider.Control";
|
|
80
|
+
function v(e) {
|
|
81
|
+
return /* @__PURE__ */ r(i.Track, {
|
|
82
|
+
...e,
|
|
83
|
+
"data-imf-ui-component": "Slider.Track",
|
|
84
|
+
className: (n) => d({ className: t(e.className, n) })
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
v.displayName = "Slider.Track";
|
|
88
|
+
function y(e) {
|
|
89
|
+
return /* @__PURE__ */ r(i.Indicator, {
|
|
90
|
+
...e,
|
|
91
|
+
"data-imf-ui-component": "Slider.Indicator",
|
|
92
|
+
className: (n) => f({ className: t(e.className, n) })
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
y.displayName = "Slider.Indicator";
|
|
96
|
+
function b({ index: e, ...n }) {
|
|
97
|
+
return /* @__PURE__ */ r(i.Thumb, {
|
|
98
|
+
...n,
|
|
99
|
+
"data-imf-ui-component": "Slider.Thumb",
|
|
100
|
+
className: (e) => p({ className: t(n.className, e) }),
|
|
101
|
+
index: e
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
b.displayName = "Slider.Thumb";
|
|
105
|
+
//#endregion
|
|
106
|
+
export { b as a, o as c, m as i, y as n, v as o, h as r, g as s, _ as t };
|