@imfusion/web-ui 0.11.1-dev.72.g7dc184e8 → 0.11.1-dev.74.g7422f7b2

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.
@@ -0,0 +1,429 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { ja as t, vM as n } from "./icons-CMetKl2x.js";
3
+ import { t as r } from "./meta-V_KyLeGn.js";
4
+ import { a as i, i as a, n as ee, r as o } from "./utils-J6vbjIt1.js";
5
+ import "./separator-BxUMVvFE.js";
6
+ import { cva as s, cx as c } from "class-variance-authority";
7
+ import { jsx as l } from "react/jsx-runtime";
8
+ import { createContext as te, useCallback as ne, useContext as u } from "react";
9
+ import { Select as d } from "@base-ui/react/select";
10
+ import { Switch as f } from "@base-ui/react/switch";
11
+ import { Tabs as p } from "@base-ui/react/tabs";
12
+ var m = {
13
+ arrow: "imf-ui-select-module-arrow",
14
+ group: "imf-ui-select-module-group",
15
+ groupLabel: "imf-ui-select-module-groupLabel",
16
+ icon: "imf-ui-select-module-icon",
17
+ item: "imf-ui-select-module-item",
18
+ itemDescription: "imf-ui-select-module-itemDescription",
19
+ itemIndicator: "imf-ui-select-module-itemIndicator",
20
+ itemText: "imf-ui-select-module-itemText",
21
+ label: "imf-ui-select-module-label",
22
+ list: "imf-ui-select-module-list",
23
+ popup: "imf-ui-select-module-popup",
24
+ positioner: "imf-ui-select-module-positioner",
25
+ root: "imf-ui-select-module-root",
26
+ scrollDownArrow: "imf-ui-select-module-scrollDownArrow",
27
+ scrollUpArrow: "imf-ui-select-module-scrollUpArrow",
28
+ separator: "imf-ui-select-module-separator",
29
+ trigger: "imf-ui-select-module-trigger",
30
+ value: "imf-ui-select-module-value",
31
+ widthFull: "imf-ui-select-module-widthFull",
32
+ widthWide: "imf-ui-select-module-widthWide"
33
+ }, h = s(m.popup), g = s(m.list), _ = s(m.item), v = s(m.itemIndicator), y = s(m.itemText), b = s(m.itemDescription), re = /* @__PURE__ */ e({
34
+ Arrow: () => A,
35
+ Backdrop: () => D,
36
+ Group: () => I,
37
+ GroupLabel: () => L,
38
+ Icon: () => T,
39
+ Item: () => M,
40
+ ItemDescription: () => F,
41
+ ItemIndicator: () => N,
42
+ ItemText: () => P,
43
+ Label: () => S,
44
+ List: () => j,
45
+ Popup: () => k,
46
+ Portal: () => E,
47
+ Positioner: () => O,
48
+ Root: () => x,
49
+ ScrollDownArrow: () => B,
50
+ ScrollUpArrow: () => z,
51
+ Separator: () => R,
52
+ Trigger: () => C,
53
+ Value: () => w
54
+ }), ie = s(m.root, { variants: { width: {
55
+ auto: m.widthAuto,
56
+ wide: m.widthWide,
57
+ full: m.widthFull
58
+ } } }), ae = s(m.label), oe = s(m.trigger), se = s(m.value), ce = s(m.icon), le = s(m.backdrop), ue = s(m.positioner), de = s(m.arrow), fe = s(m.group), pe = s(m.groupLabel), me = s(m.separator), he = s(m.scrollUpArrow), ge = s(m.scrollDownArrow);
59
+ function x({ width: e = "auto", className: t, style: n, ...r }) {
60
+ return /* @__PURE__ */ l("div", {
61
+ className: ie({
62
+ width: e,
63
+ className: t
64
+ }),
65
+ style: n,
66
+ children: /* @__PURE__ */ l(d.Root, { ...r })
67
+ });
68
+ }
69
+ x.displayName = "Select.Root";
70
+ function S(e) {
71
+ return /* @__PURE__ */ l(d.Label, {
72
+ ...e,
73
+ "data-imf-ui-component": "Select.Label",
74
+ className: (t) => ae({ className: i(e.className, t) })
75
+ });
76
+ }
77
+ S.displayName = "Select.Label";
78
+ function C(e) {
79
+ return /* @__PURE__ */ l(d.Trigger, {
80
+ ...e,
81
+ "data-imf-ui-component": "Select.Trigger",
82
+ className: (t) => oe({ className: i(e.className, t) })
83
+ });
84
+ }
85
+ C.displayName = "Select.Trigger";
86
+ function w({ children: e, ...t }) {
87
+ return /* @__PURE__ */ l(d.Value, {
88
+ ...t,
89
+ "data-imf-ui-component": "Select.Value",
90
+ className: (e) => se({ className: i(t.className, e) }),
91
+ children: e
92
+ });
93
+ }
94
+ w.displayName = "Select.Value";
95
+ function T(e) {
96
+ return /* @__PURE__ */ l(d.Icon, {
97
+ ...e,
98
+ "data-imf-ui-component": "Select.Icon",
99
+ className: (t) => ce({ className: i(e.className, t) })
100
+ });
101
+ }
102
+ T.displayName = "Select.Icon";
103
+ function E(e) {
104
+ return /* @__PURE__ */ l(d.Portal, { ...e });
105
+ }
106
+ E.displayName = "Select.Portal";
107
+ function D(e) {
108
+ return /* @__PURE__ */ l(d.Backdrop, {
109
+ ...e,
110
+ "data-imf-ui-component": "Select.Backdrop",
111
+ className: (t) => le({ className: i(e.className, t) })
112
+ });
113
+ }
114
+ D.displayName = "Select.Backdrop";
115
+ function O({ align: e = "start", alignItemWithTrigger: t = !1, sideOffset: n = 4, ...r }) {
116
+ return /* @__PURE__ */ l(d.Positioner, {
117
+ ...r,
118
+ align: e,
119
+ alignItemWithTrigger: t,
120
+ sideOffset: n,
121
+ "data-imf-ui-component": "Select.Positioner",
122
+ className: (e) => ue({ className: i(r.className, e) })
123
+ });
124
+ }
125
+ O.displayName = "Select.Positioner";
126
+ function k(e) {
127
+ return /* @__PURE__ */ l(d.Popup, {
128
+ ...e,
129
+ "data-imf-ui-component": "Select.Popup",
130
+ className: (t) => h({ className: i(e.className, t) })
131
+ });
132
+ }
133
+ k.displayName = "Select.Popup";
134
+ function A(e) {
135
+ return /* @__PURE__ */ l(d.Arrow, {
136
+ ...e,
137
+ "data-imf-ui-component": "Select.Arrow",
138
+ className: (t) => de({ className: i(e.className, t) })
139
+ });
140
+ }
141
+ A.displayName = "Select.Arrow";
142
+ function j(e) {
143
+ return /* @__PURE__ */ l(d.List, {
144
+ ...e,
145
+ "data-imf-ui-component": "Select.List",
146
+ className: (t) => g({ className: i(e.className, t) })
147
+ });
148
+ }
149
+ j.displayName = "Select.List";
150
+ function M(e) {
151
+ let { context: t, ariaProps: n } = a();
152
+ return /* @__PURE__ */ l(ee, {
153
+ value: t,
154
+ children: /* @__PURE__ */ l(d.Item, {
155
+ ...n,
156
+ ...e,
157
+ "data-imf-ui-component": "Select.Item",
158
+ className: (t) => _({ className: i(e.className, t) })
159
+ })
160
+ });
161
+ }
162
+ M.displayName = "Select.Item";
163
+ function N({ children: e, ...r }) {
164
+ return /* @__PURE__ */ l(d.ItemIndicator, {
165
+ ...r,
166
+ "data-imf-ui-component": "Select.ItemIndicator",
167
+ className: (e) => v({ className: i(r.className, e) }),
168
+ children: e ?? /* @__PURE__ */ l(n, {
169
+ glyph: t,
170
+ size: 16,
171
+ "aria-hidden": !0
172
+ })
173
+ });
174
+ }
175
+ N.displayName = "Select.ItemIndicator";
176
+ function P(e) {
177
+ let t = o("label");
178
+ return /* @__PURE__ */ l(d.ItemText, {
179
+ id: t,
180
+ ...e,
181
+ "data-imf-ui-component": "Select.ItemText",
182
+ className: (t) => y({ className: i(e.className, t) })
183
+ });
184
+ }
185
+ P.displayName = "Select.ItemText";
186
+ function F(e) {
187
+ let t = o("description");
188
+ return /* @__PURE__ */ l("div", {
189
+ id: t,
190
+ ...e,
191
+ "data-imf-ui-component": "Select.ItemDescription",
192
+ className: b({ className: e.className })
193
+ });
194
+ }
195
+ F.displayName = "Select.ItemDescription";
196
+ function I(e) {
197
+ return /* @__PURE__ */ l(d.Group, {
198
+ ...e,
199
+ "data-imf-ui-component": "Select.Group",
200
+ className: (t) => fe({ className: i(e.className, t) })
201
+ });
202
+ }
203
+ I.displayName = "Select.Group";
204
+ function L(e) {
205
+ return /* @__PURE__ */ l(d.GroupLabel, {
206
+ ...e,
207
+ "data-imf-ui-component": "Select.GroupLabel",
208
+ className: (t) => pe({ className: i(e.className, t) })
209
+ });
210
+ }
211
+ L.displayName = "Select.GroupLabel";
212
+ function R(e) {
213
+ return /* @__PURE__ */ l(d.Separator, {
214
+ ...e,
215
+ "data-imf-ui-component": "Select.Separator",
216
+ className: (t) => me({ className: i(e.className, t) })
217
+ });
218
+ }
219
+ R.displayName = "Select.Separator";
220
+ function z(e) {
221
+ return /* @__PURE__ */ l(d.ScrollUpArrow, {
222
+ ...e,
223
+ "data-imf-ui-component": "Select.ScrollUpArrow",
224
+ className: (t) => he({ className: i(e.className, t) })
225
+ });
226
+ }
227
+ z.displayName = "Select.ScrollUpArrow";
228
+ function B(e) {
229
+ return /* @__PURE__ */ l(d.ScrollDownArrow, {
230
+ ...e,
231
+ "data-imf-ui-component": "Select.ScrollDownArrow",
232
+ className: (t) => ge({ className: i(e.className, t) })
233
+ });
234
+ }
235
+ B.displayName = "Select.ScrollDownArrow";
236
+ //#endregion
237
+ //#region src/components/select/select.meta.ts
238
+ var _e = {
239
+ name: "Select",
240
+ category: r.inputs,
241
+ status: "stable",
242
+ description: "Dropdown for choosing a value from a known list. Also called a picker; use it for a labeled, keyboard-accessible option list.",
243
+ origin: "adapted",
244
+ upstream: {
245
+ name: "Base UI",
246
+ websiteLink: "https://base-ui.com/",
247
+ docLink: "https://base-ui.com/react/components/select",
248
+ llmDocLink: "https://base-ui.com/react/components/select.md"
249
+ }
250
+ }, V = {
251
+ root: "imf-ui-switch-module-root",
252
+ thumb: "imf-ui-switch-module-thumb"
253
+ }, ve = /* @__PURE__ */ e({
254
+ Root: () => H,
255
+ Thumb: () => U
256
+ }), ye = s(V.root), be = s(V.thumb);
257
+ function H(e) {
258
+ return /* @__PURE__ */ l(f.Root, {
259
+ ...e,
260
+ "data-imf-ui-component": "Switch.Root",
261
+ className: (t) => ye({ className: i(e.className, t) })
262
+ });
263
+ }
264
+ H.displayName = "Switch.Root";
265
+ function U(e) {
266
+ return /* @__PURE__ */ l(f.Thumb, {
267
+ ...e,
268
+ "data-imf-ui-component": "Switch.Thumb",
269
+ className: (t) => be({ className: i(e.className, t) })
270
+ });
271
+ }
272
+ U.displayName = "Switch.Thumb";
273
+ //#endregion
274
+ //#region src/components/separator/separator.meta.ts
275
+ var xe = {
276
+ name: "Separator",
277
+ category: r.layout,
278
+ status: "stable",
279
+ description: "Line that divides content horizontally or vertically. Also called a divider or rule.",
280
+ origin: "adapted",
281
+ upstream: {
282
+ name: "Base UI",
283
+ websiteLink: "https://base-ui.com/",
284
+ docLink: "https://base-ui.com/react/components/separator",
285
+ llmDocLink: "https://base-ui.com/react/components/separator.md"
286
+ }
287
+ }, W = {
288
+ item: "imf-ui-tabs-underline-module-item",
289
+ rule: "imf-ui-tabs-underline-module-rule"
290
+ }, Se = s(W.rule), Ce = s(W.item), G = {
291
+ indicator: "imf-ui-tabs-module-indicator",
292
+ indicatorUnderline: "imf-ui-tabs-module-indicatorUnderline",
293
+ list: "imf-ui-tabs-module-list",
294
+ listFill: "imf-ui-tabs-module-listFill",
295
+ listUnderline: "imf-ui-tabs-module-listUnderline",
296
+ panel: "imf-ui-tabs-module-panel",
297
+ panelUnderline: "imf-ui-tabs-module-panelUnderline",
298
+ panelViewport: "imf-ui-tabs-module-panelViewport",
299
+ panelViewportUnderline: "imf-ui-tabs-module-panelViewportUnderline",
300
+ root: "imf-ui-tabs-module-root",
301
+ tab: "imf-ui-tabs-module-tab",
302
+ tabUnderline: "imf-ui-tabs-module-tabUnderline"
303
+ }, we = /* @__PURE__ */ e({
304
+ Indicator: () => Z,
305
+ List: () => Y,
306
+ Panel: () => $,
307
+ PanelViewport: () => Q,
308
+ Root: () => J,
309
+ Tab: () => X
310
+ }), Te = s(G.list, { variants: {
311
+ fill: {
312
+ true: G.listFill,
313
+ false: null
314
+ },
315
+ appearance: {
316
+ boxed: null,
317
+ underline: c(G.listUnderline, Se())
318
+ }
319
+ } }), Ee = s(G.root), De = s(null, { variants: { appearance: {
320
+ boxed: G.tab,
321
+ underline: c(G.tabUnderline, Ce())
322
+ } } }), Oe = s(null, { variants: { appearance: {
323
+ boxed: G.indicator,
324
+ underline: G.indicatorUnderline
325
+ } } }), ke = s(G.panelViewport, { variants: { appearance: {
326
+ boxed: null,
327
+ underline: G.panelViewportUnderline
328
+ } } }), Ae = s(G.panel, { variants: { appearance: {
329
+ boxed: null,
330
+ underline: G.panelUnderline
331
+ } } }), K = te("boxed");
332
+ function q(e, t) {
333
+ typeof e == "function" ? e(t) : e && (e.current = t);
334
+ }
335
+ function je(e) {
336
+ let t = new ResizeObserver(() => {
337
+ let t = e.dataset.orientation === "vertical" ? e.scrollHeight > e.clientHeight : e.scrollWidth > e.clientWidth;
338
+ e.toggleAttribute("data-overflowing", t);
339
+ }), n = () => {
340
+ t.disconnect(), t.observe(e);
341
+ for (let n of e.children) t.observe(n);
342
+ }, r = new MutationObserver(n);
343
+ return r.observe(e, { childList: !0 }), n(), () => {
344
+ t.disconnect(), r.disconnect();
345
+ };
346
+ }
347
+ function J({ appearance: e = "boxed", ...t }) {
348
+ let n = t.orientation === "vertical" ? "boxed" : e;
349
+ return /* @__PURE__ */ l(K, {
350
+ value: n,
351
+ children: /* @__PURE__ */ l(p.Root, {
352
+ ...t,
353
+ "data-imf-ui-component": "Tabs.Root",
354
+ className: (e) => Ee({ className: i(t.className, e) })
355
+ })
356
+ });
357
+ }
358
+ J.displayName = "Tabs.Root";
359
+ function Y({ fill: e = !1, ref: t, ...n }) {
360
+ let r = u(K), a = ne((e) => {
361
+ if (!e) return;
362
+ q(t, e);
363
+ let n = je(e);
364
+ return () => {
365
+ n(), q(t, null);
366
+ };
367
+ }, [t]);
368
+ return /* @__PURE__ */ l(p.List, {
369
+ ...n,
370
+ ref: a,
371
+ "data-imf-ui-component": "Tabs.List",
372
+ className: (t) => Te({
373
+ fill: e,
374
+ appearance: r,
375
+ className: i(n.className, t)
376
+ })
377
+ });
378
+ }
379
+ Y.displayName = "Tabs.List";
380
+ function X(e) {
381
+ let t = u(K);
382
+ return /* @__PURE__ */ l(p.Tab, {
383
+ ...e,
384
+ "data-imf-ui-component": "Tabs.Tab",
385
+ className: (n) => De({
386
+ appearance: t,
387
+ className: i(e.className, n)
388
+ })
389
+ });
390
+ }
391
+ X.displayName = "Tabs.Tab";
392
+ function Z(e) {
393
+ let t = u(K);
394
+ return /* @__PURE__ */ l(p.Indicator, {
395
+ ...e,
396
+ "data-imf-ui-component": "Tabs.Indicator",
397
+ className: (n) => Oe({
398
+ appearance: t,
399
+ className: i(e.className, n)
400
+ })
401
+ });
402
+ }
403
+ Z.displayName = "Tabs.Indicator";
404
+ function Q(e) {
405
+ let t = u(K);
406
+ return /* @__PURE__ */ l("div", {
407
+ ...e,
408
+ "data-imf-ui-component": "Tabs.PanelViewport",
409
+ className: ke({
410
+ appearance: t,
411
+ className: e.className
412
+ })
413
+ });
414
+ }
415
+ Q.displayName = "Tabs.PanelViewport";
416
+ function $(e) {
417
+ let t = u(K);
418
+ return /* @__PURE__ */ l(p.Panel, {
419
+ ...e,
420
+ "data-imf-ui-component": "Tabs.Panel",
421
+ className: (n) => Ae({
422
+ appearance: t,
423
+ className: i(e.className, n)
424
+ })
425
+ });
426
+ }
427
+ $.displayName = "Tabs.Panel";
428
+ //#endregion
429
+ export { v as A, O as C, re as D, w as E, g as M, h as N, _ as O, E as S, C as T, N as _, J as a, j as b, Ce as c, H as d, U as f, M as g, T as h, Q as i, y as j, b as k, Se as l, _e as m, Y as n, X as o, ve as p, $ as r, we as s, Z as t, xe as u, P as v, x as w, k as x, S as y };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.11.1-dev.72.g7dc184e8",
3
+ "version": "0.11.1-dev.74.g7422f7b2",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -6860,7 +6860,7 @@
6860
6860
  "required": false,
6861
6861
  "type": "string",
6862
6862
  "defaultValue": null,
6863
- "description": "Key hint shown at the end of the input, such as `\"/\"` or `\"Ctrl K\"`. It hides before the text or placeholder reaches\nit, and while a search input shows its clear button. It also sets `aria-keyshortcuts` in its notation\n(`Control+K`), which an explicit `aria-keyshortcuts` prop overrides. Display only: bind the key in the app. With a\nshortcut, `className` also reaches a wrapping element, as it does for a search input."
6863
+ "description": "Key hint shown at the end of the input, such as `\"/\"` or `\"Ctrl K\"`. It hides before the text or placeholder reaches\nit, and while a search input shows its clear button. It also sets `aria-keyshortcuts` in its notation\n(`Control+K`), which an explicit `aria-keyshortcuts` prop overrides. Display only: bind the key in the app. With a\nshortcut, `className` also reaches a wrapping element, as it does for a search input. Pass `\"\"` when no key applies\nright now but one may later: the input keeps its wrapper, so switching the hint on does not remount it and drop focus."
6864
6864
  },
6865
6865
  {
6866
6866
  "name": "size",
@@ -16140,6 +16140,13 @@
16140
16140
  "type": "Variant",
16141
16141
  "defaultValue": "default",
16142
16142
  "description": "Layout: a stacked card (`default`), a horizontal row with side tabs\n(`horizontal`), or a flat compact row (`horizontal-compact`)."
16143
+ },
16144
+ {
16145
+ "name": "withGamma",
16146
+ "required": false,
16147
+ "type": "boolean",
16148
+ "defaultValue": "false",
16149
+ "description": "Show the 2D Gamma slider."
16143
16150
  }
16144
16151
  ]
16145
16152
  },
@@ -147,7 +147,7 @@ Picture with AVIF and WebP sources, reserved space, lazy loading, and a fallback
147
147
 
148
148
  ## ImageDisplayOptions
149
149
  - category: Inputs, status: experimental
150
- Panel and toolbar controls for an image dataset's display options, including window, level, gamma, and invert settings.
150
+ Panel and toolbar controls for an image dataset's display options: window, level, optional gamma, invert, auto window, and transfer-function presets.
151
151
  - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .image-display-options (jq: jq '.image-display-options' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
152
152
  - further reading (usage/anatomy, not props): https://docs.imfusion.com/
153
153
 
@@ -1,136 +0,0 @@
1
- import { cva as e } from "class-variance-authority";
2
- import { jsx as t } from "react/jsx-runtime";
3
- var n = {
4
- alignCenter: "imf-ui-stack-module-alignCenter",
5
- alignEnd: "imf-ui-stack-module-alignEnd",
6
- alignStart: "imf-ui-stack-module-alignStart",
7
- alignStretch: "imf-ui-stack-module-alignStretch",
8
- gap0: "imf-ui-stack-module-gap0",
9
- gap1: "imf-ui-stack-module-gap1",
10
- gap10: "imf-ui-stack-module-gap10",
11
- gap2: "imf-ui-stack-module-gap2",
12
- gap3: "imf-ui-stack-module-gap3",
13
- gap4: "imf-ui-stack-module-gap4",
14
- gap5: "imf-ui-stack-module-gap5",
15
- gap6: "imf-ui-stack-module-gap6",
16
- gap7: "imf-ui-stack-module-gap7",
17
- gap8: "imf-ui-stack-module-gap8",
18
- gap9: "imf-ui-stack-module-gap9",
19
- justifyAround: "imf-ui-stack-module-justifyAround",
20
- justifyBetween: "imf-ui-stack-module-justifyBetween",
21
- justifyCenter: "imf-ui-stack-module-justifyCenter",
22
- justifyEnd: "imf-ui-stack-module-justifyEnd",
23
- justifyEvenly: "imf-ui-stack-module-justifyEvenly",
24
- justifyStart: "imf-ui-stack-module-justifyStart",
25
- root: "imf-ui-stack-module-root"
26
- }, r = e(n.root, { variants: {
27
- gap: {
28
- 0: n.gap0,
29
- 1: n.gap1,
30
- 2: n.gap2,
31
- 3: n.gap3,
32
- 4: n.gap4,
33
- 5: n.gap5,
34
- 6: n.gap6,
35
- 7: n.gap7,
36
- 8: n.gap8,
37
- 9: n.gap9,
38
- 10: n.gap10
39
- },
40
- align: {
41
- start: n.alignStart,
42
- center: n.alignCenter,
43
- end: n.alignEnd,
44
- stretch: n.alignStretch
45
- },
46
- justify: {
47
- start: n.justifyStart,
48
- center: n.justifyCenter,
49
- end: n.justifyEnd,
50
- between: n.justifyBetween,
51
- around: n.justifyAround,
52
- evenly: n.justifyEvenly
53
- }
54
- } });
55
- function i({ gap: e = "4", align: n = "stretch", justify: i = "start", ...a }) {
56
- return /* @__PURE__ */ t("div", {
57
- ...a,
58
- "data-imf-ui-component": "Stack",
59
- className: r({
60
- gap: e,
61
- align: n,
62
- justify: i,
63
- className: a.className
64
- })
65
- });
66
- }
67
- var a = {
68
- alignCenter: "imf-ui-row-module-alignCenter",
69
- alignEnd: "imf-ui-row-module-alignEnd",
70
- alignStart: "imf-ui-row-module-alignStart",
71
- alignStretch: "imf-ui-row-module-alignStretch",
72
- gap1: "imf-ui-row-module-gap1",
73
- gap10: "imf-ui-row-module-gap10",
74
- gap2: "imf-ui-row-module-gap2",
75
- gap3: "imf-ui-row-module-gap3",
76
- gap4: "imf-ui-row-module-gap4",
77
- gap5: "imf-ui-row-module-gap5",
78
- gap6: "imf-ui-row-module-gap6",
79
- gap7: "imf-ui-row-module-gap7",
80
- gap8: "imf-ui-row-module-gap8",
81
- gap9: "imf-ui-row-module-gap9",
82
- justifyAround: "imf-ui-row-module-justifyAround",
83
- justifyBetween: "imf-ui-row-module-justifyBetween",
84
- justifyCenter: "imf-ui-row-module-justifyCenter",
85
- justifyEnd: "imf-ui-row-module-justifyEnd",
86
- justifyEvenly: "imf-ui-row-module-justifyEvenly",
87
- justifyStart: "imf-ui-row-module-justifyStart",
88
- root: "imf-ui-row-module-root",
89
- wrap: "imf-ui-row-module-wrap"
90
- }, o = e(a.root, { variants: {
91
- gap: {
92
- 1: a.gap1,
93
- 2: a.gap2,
94
- 3: a.gap3,
95
- 4: a.gap4,
96
- 5: a.gap5,
97
- 6: a.gap6,
98
- 7: a.gap7,
99
- 8: a.gap8,
100
- 9: a.gap9,
101
- 10: a.gap10
102
- },
103
- align: {
104
- start: a.alignStart,
105
- center: a.alignCenter,
106
- end: a.alignEnd,
107
- stretch: a.alignStretch
108
- },
109
- justify: {
110
- start: a.justifyStart,
111
- center: a.justifyCenter,
112
- end: a.justifyEnd,
113
- between: a.justifyBetween,
114
- around: a.justifyAround,
115
- evenly: a.justifyEvenly
116
- },
117
- wrap: {
118
- true: a.wrap,
119
- false: null
120
- }
121
- } });
122
- function s({ gap: e = "2", align: n = "stretch", justify: r = "start", wrap: i = !1, ...a }) {
123
- return /* @__PURE__ */ t("div", {
124
- ...a,
125
- "data-imf-ui-component": "Row",
126
- className: o({
127
- gap: e,
128
- align: n,
129
- justify: r,
130
- wrap: i,
131
- className: a.className
132
- })
133
- });
134
- }
135
- //#endregion
136
- export { i as n, s as t };
@@ -1,34 +0,0 @@
1
- import { cva as e } from "class-variance-authority";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Separator as n } from "@base-ui/react/separator";
4
- var r = {
5
- root: "imf-ui-separator-module-root",
6
- toneMinor: "imf-ui-separator-module-toneMinor",
7
- variantDashed: "imf-ui-separator-module-variantDashed",
8
- variantDotted: "imf-ui-separator-module-variantDotted",
9
- variantSolid: "imf-ui-separator-module-variantSolid"
10
- }, i = e(r.root, { variants: {
11
- variant: {
12
- solid: r.variantSolid,
13
- dashed: r.variantDashed,
14
- dotted: r.variantDotted
15
- },
16
- tone: {
17
- primary: null,
18
- minor: r.toneMinor
19
- }
20
- } });
21
- function a({ orientation: e = "horizontal", variant: r = "solid", tone: a = "primary", ...o }) {
22
- return /* @__PURE__ */ t(n, {
23
- ...o,
24
- orientation: e,
25
- "data-imf-ui-component": "Separator",
26
- className: i({
27
- variant: r,
28
- tone: a,
29
- className: o.className
30
- })
31
- });
32
- }
33
- //#endregion
34
- export { a as t };