@imfusion/web-ui 0.10.1-dev.2.gb6347f49 → 0.10.1-dev.34.gb01a818e

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/README.md +4 -2
  3. package/THIRD_PARTY_NOTICES.md +110 -0
  4. package/dist/code-NTcddiYk.js +139 -0
  5. package/dist/components/account-card/account-card.d.ts +9 -26
  6. package/dist/components/app-shell/app-shell.d.ts +21 -11
  7. package/dist/components/callout/callout.d.ts +1 -1
  8. package/dist/components/chip/chip.d.ts +1 -1
  9. package/dist/components/color-scheme-toggle/color-scheme-preference.d.ts +3 -0
  10. package/dist/components/color-scheme-toggle/color-scheme-toggle.d.ts +17 -0
  11. package/dist/components/color-scheme-toggle/color-scheme-toggle.meta.d.ts +2 -0
  12. package/dist/components/color-scheme-toggle/index.d.ts +2 -0
  13. package/dist/components/dialog/dialog.d.ts +148 -0
  14. package/dist/components/dialog/dialog.meta.d.ts +2 -0
  15. package/dist/components/dialog/index.d.ts +2 -0
  16. package/dist/components/drawer/drawer.d.ts +1 -1
  17. package/dist/components/scroll-area/index.d.ts +2 -0
  18. package/dist/components/scroll-area/scroll-area.d.ts +49 -0
  19. package/dist/components/scroll-area/scroll-area.meta.d.ts +2 -0
  20. package/dist/components/skeleton/skeleton.d.ts +17 -2
  21. package/dist/components/toggle/toggle.d.ts +8 -2
  22. package/dist/components/toggle-group/toggle-group-size.d.ts +3 -0
  23. package/dist/components/toggle-group/toggle-group.d.ts +7 -3
  24. package/dist/index.d.ts +4 -0
  25. package/dist/index.js +2336 -1898
  26. package/dist/integrations/code-highlight.js +2 -2
  27. package/dist/integrations/frame-selection.js +1 -1
  28. package/dist/integrations/image-display-options.js +123 -113
  29. package/dist/{rolldown-runtime-Dy4uBu1J.js → resolve-state-props-DQf9WiGv.js} +12 -1
  30. package/dist/scroll-area-z9Lf9uIk.js +89 -0
  31. package/dist/slider-Bf274cMe.js +106 -0
  32. package/dist/style.css +1 -1
  33. package/dist/{tabs-DRyqtS04.js → tabs-CU46aGud.js} +106 -88
  34. package/docs/user-guide/UsagePatterns.mdx +4 -0
  35. package/package.json +2 -2
  36. package/src/docgen/doc.gen.json +1261 -47
  37. package/src/llms/llms.gen.txt +18 -1
  38. package/src/llms/skills/imf-web-ui-audit/SKILL.md +15 -10
  39. package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +3 -1
  40. package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +2 -3
  41. package/src/llms/skills/imf-web-ui-conventions/topics/components.md +4 -1
  42. package/src/llms/skills/imf-web-ui-conventions/topics/data.md +24 -5
  43. package/src/llms/skills/imf-web-ui-conventions/topics/git.md +5 -2
  44. package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +3 -0
  45. package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +11 -0
  46. package/src/llms/skills/imf-web-ui-conventions/topics/react.md +6 -4
  47. package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +3 -1
  48. package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +2 -2
  49. package/src/llms/skills/imf-web-ui-conventions/topics/typescript.md +2 -0
  50. package/src/llms/skills/imf-web-ui-ux/SKILL.md +2 -1
  51. package/src/llms/tokens.gen.json +1 -1
  52. package/dist/code-BYkr5k55.js +0 -134
  53. package/dist/slider-Cqpreglu.js +0 -116
@@ -1,6 +1,6 @@
1
- import { t as e } from "../rolldown-runtime-Dy4uBu1J.js";
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-BYkr5k55.js";
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-Cqpreglu.js";
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-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
- import { cva as b } from "class-variance-authority";
5
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
6
- import { useId as w, useMemo as T, useState as E } from "react";
7
- import { useDisplayOptions2d as D, useDisplayOptions3d as O } from "@imfusion/sdk-react";
8
- var k = {
9
- compactStrip: "imf-ui-image-display-options-module-compactStrip",
2
+ import { a as t, c as n, d as r, i, l as a, m as o, n as s, o as c, p as l, r as u, t as d, u as f } from "../tabs-CU46aGud.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
- }, A = {
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 j(e) {
26
+ function M(e) {
27
27
  return e > 0 ? 10 ** Math.floor(Math.log10(e / 1e3)) : 1;
28
28
  }
29
- function M(e) {
29
+ function N(e) {
30
30
  return !(e > 0) || e >= 1 ? 0 : Math.ceil(-Math.log10(e));
31
31
  }
32
- function N([e, t], n) {
33
- let r = t - e, i = j(r), a = { maximumFractionDigits: M(i) }, o = (e) => {
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: M(r) }
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(A)
63
+ o(j)
64
64
  ],
65
65
  "3d": [s, c]
66
66
  };
67
67
  }
68
- function P(e, t) {
68
+ function F(e, t) {
69
69
  return e === "window" ? { window: t } : e === "level" ? { level: t } : { gamma: t };
70
70
  }
71
- function F(e, t) {
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 I = b(k.root);
77
- function L({ spec: e, value: t, row: n, onChange: r }) {
78
- let i = /* @__PURE__ */ C(m, {
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__ */ C(o, {
87
+ children: [/* @__PURE__ */ w(a, {
88
88
  justify: "between",
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 })] }) })]
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__ */ S("div", {
93
- className: k.rowField,
92
+ return n ? /* @__PURE__ */ C("div", {
93
+ className: A.rowField,
94
94
  children: i
95
95
  }) : i;
96
96
  }
97
- function R({ checked: e, row: t, onChange: n }) {
98
- let r = w();
99
- return /* @__PURE__ */ C(o, {
97
+ function z({ checked: e, row: t, onChange: n }) {
98
+ let i = T();
99
+ return /* @__PURE__ */ w(a, {
100
100
  align: "center",
101
101
  justify: t ? "start" : "between",
102
102
  gap: "2",
103
- className: k.invertRow,
104
- children: [/* @__PURE__ */ S("span", {
105
- id: r,
106
- className: k.invertLabel,
103
+ className: A.invertRow,
104
+ children: [/* @__PURE__ */ C("span", {
105
+ id: i,
106
+ className: A.invertLabel,
107
107
  children: "Invert"
108
- }), /* @__PURE__ */ S(i, {
109
- "aria-labelledby": r,
108
+ }), /* @__PURE__ */ C(f, {
109
+ "aria-labelledby": i,
110
110
  checked: e,
111
111
  onCheckedChange: (e) => {
112
112
  n(e);
113
113
  },
114
- children: /* @__PURE__ */ S(l, {})
114
+ children: /* @__PURE__ */ C(r, {})
115
115
  })]
116
116
  });
117
117
  }
118
- function z({ active: e, onChange: t }) {
119
- return /* @__PURE__ */ C(f, {
120
- className: k.segment,
118
+ function B({ active: e, onChange: t }) {
119
+ return /* @__PURE__ */ w(l, {
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__ */ S(r, {
127
+ children: [/* @__PURE__ */ C(o, {
128
128
  value: "2d",
129
129
  children: "2D"
130
- }), /* @__PURE__ */ S(r, {
130
+ }), /* @__PURE__ */ C(o, {
131
131
  value: "3d",
132
132
  children: "3D"
133
133
  })]
134
134
  });
135
135
  }
136
- function B({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
136
+ function V({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
137
137
  let a = n[e];
138
- return /* @__PURE__ */ C(x, { children: [t.map((t) => /* @__PURE__ */ S(L, {
138
+ return /* @__PURE__ */ w(S, { children: [t.map((t) => /* @__PURE__ */ C(R, {
139
139
  spec: t,
140
- value: F(a, t.key),
140
+ value: I(a, t.key),
141
141
  row: r,
142
142
  onChange: (n) => {
143
- i(e, P(t.key, n));
143
+ i(e, F(t.key, n));
144
144
  }
145
- }, t.key)), /* @__PURE__ */ S(R, {
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 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) => {
153
+ function H({ variant: e = "default", options: r, intensityRange: o, ranges: l, onOptionsChange: f, className: p, ...m }) {
154
+ let [h, g] = D("2d"), _ = P(o, l), v = (e) => {
155
155
  g(e === "3d" ? "3d" : "2d");
156
156
  };
157
- return /* @__PURE__ */ S("div", {
157
+ return /* @__PURE__ */ C("div", {
158
158
  ...m,
159
159
  "data-imf-ui-component": "ImageDisplayOptions",
160
- className: I({ className: p }),
161
- children: e === "default" ? /* @__PURE__ */ C(t, {
160
+ className: L({ className: p }),
161
+ children: e === "default" ? /* @__PURE__ */ w(t, {
162
162
  value: h,
163
163
  onValueChange: v,
164
- children: [/* @__PURE__ */ C(s, { children: [
165
- /* @__PURE__ */ S(c, {
164
+ children: [/* @__PURE__ */ w(s, { children: [
165
+ /* @__PURE__ */ C(c, {
166
166
  value: "2d",
167
167
  children: "2D Slices"
168
168
  }),
169
- /* @__PURE__ */ S(c, {
169
+ /* @__PURE__ */ C(c, {
170
170
  value: "3d",
171
171
  children: "3D Volume"
172
172
  }),
173
- /* @__PURE__ */ S(d, {})
174
- ] }), /* @__PURE__ */ C(a, { children: [/* @__PURE__ */ S(u, {
173
+ /* @__PURE__ */ C(d, {})
174
+ ] }), /* @__PURE__ */ w(i, { children: [/* @__PURE__ */ C(u, {
175
175
  value: "2d",
176
- children: /* @__PURE__ */ S(n, {
176
+ children: /* @__PURE__ */ C(n, {
177
177
  gap: "3",
178
- children: /* @__PURE__ */ S(B, {
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__ */ S(u, {
186
+ }), /* @__PURE__ */ C(u, {
187
187
  value: "3d",
188
- children: /* @__PURE__ */ S(n, {
188
+ children: /* @__PURE__ */ C(n, {
189
189
  gap: "3",
190
- children: /* @__PURE__ */ S(B, {
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__ */ C(t, {
200
- className: k.horizontalTabs,
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__ */ C(s, {
204
+ children: [/* @__PURE__ */ w(s, {
205
205
  fill: !0,
206
206
  children: [
207
- /* @__PURE__ */ S(c, {
207
+ /* @__PURE__ */ C(c, {
208
208
  value: "2d",
209
209
  children: "2D"
210
210
  }),
211
- /* @__PURE__ */ S(c, {
211
+ /* @__PURE__ */ C(c, {
212
212
  value: "3d",
213
213
  children: "3D"
214
214
  }),
215
- /* @__PURE__ */ S(d, {})
215
+ /* @__PURE__ */ C(d, {})
216
216
  ]
217
- }), /* @__PURE__ */ C(a, {
218
- className: k.horizontalPanel,
219
- children: [/* @__PURE__ */ S(u, {
217
+ }), /* @__PURE__ */ w(i, {
218
+ className: A.horizontalPanel,
219
+ children: [/* @__PURE__ */ C(u, {
220
220
  value: "2d",
221
- children: /* @__PURE__ */ S(o, {
222
- align: "center",
223
- gap: "3",
224
- className: k.strip,
225
- children: /* @__PURE__ */ S(B, {
226
- dimension: "2d",
227
- fields: _["2d"],
228
- options: r,
229
- row: !0,
230
- onChange: f
221
+ children: /* @__PURE__ */ C(b, {
222
+ orientation: "horizontal",
223
+ className: A.strip,
224
+ children: /* @__PURE__ */ C(a, {
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__ */ S(u, {
236
+ }), /* @__PURE__ */ C(u, {
234
237
  value: "3d",
235
- children: /* @__PURE__ */ S(o, {
236
- align: "center",
237
- gap: "3",
238
- className: k.strip,
239
- children: /* @__PURE__ */ S(B, {
240
- dimension: "3d",
241
- fields: _["3d"],
242
- options: r,
243
- row: !0,
244
- onChange: f
238
+ children: /* @__PURE__ */ C(b, {
239
+ orientation: "horizontal",
240
+ className: A.strip,
241
+ children: /* @__PURE__ */ C(a, {
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(o, {
250
- align: "center",
251
- gap: "3",
252
- className: k.compactStrip,
253
- children: [/* @__PURE__ */ S(z, {
254
- active: h,
255
- onChange: g
256
- }), /* @__PURE__ */ S(B, {
257
- dimension: h,
258
- fields: _[h],
259
- options: r,
260
- row: !0,
261
- onChange: f
262
- })]
255
+ }) : /* @__PURE__ */ C(b, {
256
+ orientation: "horizontal",
257
+ className: A.strip,
258
+ children: /* @__PURE__ */ w(a, {
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
- V.displayName = "ImageDisplayOptionsView";
275
+ H.displayName = "ImageDisplayOptionsView";
267
276
  //#endregion
268
277
  //#region src/integrations/image-display-options/image-display-options.tsx
269
- function H({ data: e, variant: t = "default", ranges: n, ...r }) {
270
- let i = D(e), a = O(e), o = {
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 = T(() => e.minmaxIntensityOriginal(), [e]);
283
- return /* @__PURE__ */ S(V, {
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
- H.displayName = "ImageDisplayOptions";
303
+ U.displayName = "ImageDisplayOptions";
295
304
  //#endregion
296
305
  //#region src/integrations/image-display-options/image-display-options.meta.ts
297
- var U = {
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 { H as ImageDisplayOptions, U as imageDisplayOptionsMeta };
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
- export { t };
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 };