@imfusion/web-ui 0.11.1-dev.47.g23180a23 → 0.11.1-dev.49.gcda1589f

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 (31) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{code-BX1Humcy.js → code-BaLXMEMa.js} +2 -2
  3. package/dist/icon-button-roSB497o.js +171 -0
  4. package/dist/index.js +2599 -2780
  5. package/dist/integrations/code-highlight.js +2 -2
  6. package/dist/integrations/frame-selection.js +1 -1
  7. package/dist/integrations/image-display-options.js +75 -73
  8. package/dist/integrations/layout-mode/index.d.ts +2 -0
  9. package/dist/integrations/layout-mode/layout-mode-view.d.ts +32 -0
  10. package/dist/integrations/layout-mode/layout-mode.d.ts +13 -0
  11. package/dist/integrations/layout-mode/layout-mode.meta.d.ts +2 -0
  12. package/dist/integrations/layout-mode.js +103 -0
  13. package/dist/integrations/view-tools/index.d.ts +4 -0
  14. package/dist/integrations/view-tools/use-view-interaction.d.ts +21 -0
  15. package/dist/integrations/view-tools/view-tools-view.d.ts +23 -0
  16. package/dist/integrations/view-tools/view-tools.d.ts +14 -0
  17. package/dist/integrations/view-tools/view-tools.meta.d.ts +2 -0
  18. package/dist/integrations/view-tools.js +133 -0
  19. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  20. package/dist/row-CImu8yXV.js +136 -0
  21. package/dist/{scroll-area-CUo1NBaW.js → scroll-area-CXQ_SxPX.js} +21 -20
  22. package/dist/{slider-BKDxeTmk.js → slider-CpIZMAFl.js} +24 -23
  23. package/dist/style.css +1 -1
  24. package/dist/tabs-BqgyMmo6.js +173 -0
  25. package/dist/toggle-group-Bhb3qicp.js +31 -0
  26. package/dist/toggle-group-eGr6_hgQ.js +125 -0
  27. package/dist/{utils-RZJAXfcf.js → utils-J6vbjIt1.js} +11 -21
  28. package/package.json +3 -3
  29. package/src/docgen/doc.gen.json +130 -0
  30. package/src/llms/llms.gen.txt +12 -0
  31. package/dist/tabs-CLeLjFNy.js +0 -423
@@ -0,0 +1,136 @@
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,4 +1,5 @@
1
- import { a as e, s as t } from "./utils-RZJAXfcf.js";
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { a as t } from "./utils-J6vbjIt1.js";
2
3
  import { cva as n } from "class-variance-authority";
3
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
5
  import { ScrollArea as a } from "@base-ui/react/scroll-area";
@@ -9,7 +10,7 @@ var o = {
9
10
  scrollbar: "imf-ui-scroll-area-module-scrollbar",
10
11
  thumb: "imf-ui-scroll-area-module-thumb",
11
12
  viewport: "imf-ui-scroll-area-module-viewport"
12
- }, s = /* @__PURE__ */ t({
13
+ }, s = /* @__PURE__ */ e({
13
14
  Auto: () => b,
14
15
  Content: () => g,
15
16
  Corner: () => y,
@@ -18,51 +19,51 @@ var o = {
18
19
  Thumb: () => v,
19
20
  Viewport: () => h
20
21
  }), 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(t) {
22
+ function m(e) {
22
23
  return /* @__PURE__ */ r(a.Root, {
23
- ...t,
24
+ ...e,
24
25
  "data-imf-ui-component": "ScrollArea.Root",
25
- className: (n) => c({ className: e(t.className, n) })
26
+ className: (n) => c({ className: t(e.className, n) })
26
27
  });
27
28
  }
28
29
  m.displayName = "ScrollArea.Root";
29
- function h(t) {
30
+ function h(e) {
30
31
  return /* @__PURE__ */ r(a.Viewport, {
31
- ...t,
32
+ ...e,
32
33
  "data-imf-ui-component": "ScrollArea.Viewport",
33
- className: (n) => l({ className: e(t.className, n) })
34
+ className: (n) => l({ className: t(e.className, n) })
34
35
  });
35
36
  }
36
37
  h.displayName = "ScrollArea.Viewport";
37
- function g(t) {
38
+ function g(e) {
38
39
  return /* @__PURE__ */ r(a.Content, {
39
- ...t,
40
+ ...e,
40
41
  "data-imf-ui-component": "ScrollArea.Content",
41
- className: (n) => u({ className: e(t.className, n) })
42
+ className: (n) => u({ className: t(e.className, n) })
42
43
  });
43
44
  }
44
45
  g.displayName = "ScrollArea.Content";
45
- function _(t) {
46
+ function _(e) {
46
47
  return /* @__PURE__ */ r(a.Scrollbar, {
47
- ...t,
48
+ ...e,
48
49
  "data-imf-ui-component": "ScrollArea.Scrollbar",
49
- className: (n) => d({ className: e(t.className, n) })
50
+ className: (n) => d({ className: t(e.className, n) })
50
51
  });
51
52
  }
52
53
  _.displayName = "ScrollArea.Scrollbar";
53
- function v(t) {
54
+ function v(e) {
54
55
  return /* @__PURE__ */ r(a.Thumb, {
55
- ...t,
56
+ ...e,
56
57
  "data-imf-ui-component": "ScrollArea.Thumb",
57
- className: (n) => f({ className: e(t.className, n) })
58
+ className: (n) => f({ className: t(e.className, n) })
58
59
  });
59
60
  }
60
61
  v.displayName = "ScrollArea.Thumb";
61
- function y(t) {
62
+ function y(e) {
62
63
  return /* @__PURE__ */ r(a.Corner, {
63
- ...t,
64
+ ...e,
64
65
  "data-imf-ui-component": "ScrollArea.Corner",
65
- className: (n) => p({ className: e(t.className, n) })
66
+ className: (n) => p({ className: t(e.className, n) })
66
67
  });
67
68
  }
68
69
  y.displayName = "ScrollArea.Corner";
@@ -1,4 +1,5 @@
1
- import { a as e, s as t } from "./utils-RZJAXfcf.js";
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { a as t } from "./utils-J6vbjIt1.js";
2
3
  import { cva as n } from "class-variance-authority";
3
4
  import { jsx as r } from "react/jsx-runtime";
4
5
  import { Slider as i } from "@base-ui/react/slider";
@@ -11,7 +12,7 @@ var a = {
11
12
  track: "imf-ui-slider-module-track",
12
13
  value: "imf-ui-slider-module-value",
13
14
  variantPosition: "imf-ui-slider-module-variantPosition"
14
- }, o = /* @__PURE__ */ t({
15
+ }, o = /* @__PURE__ */ e({
15
16
  Control: () => _,
16
17
  Indicator: () => y,
17
18
  Label: () => h,
@@ -23,14 +24,14 @@ var a = {
23
24
  default: null,
24
25
  position: a.variantPosition
25
26
  } } }), 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: t = "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
+ 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
28
  return /* @__PURE__ */ r(i.Root, {
28
29
  ...S,
29
30
  "data-imf-ui-component": "Slider.Root",
30
31
  "data-orientation": h,
31
32
  className: (n) => s({
32
- variant: t,
33
- className: e(S.className, n)
33
+ variant: e,
34
+ className: t(S.className, n)
34
35
  }),
35
36
  value: n,
36
37
  defaultValue: a,
@@ -52,53 +53,53 @@ function m({ variant: t = "default", value: n, defaultValue: a, onValueChange: o
52
53
  });
53
54
  }
54
55
  m.displayName = "Slider.Root";
55
- function h(t) {
56
+ function h(e) {
56
57
  return /* @__PURE__ */ r(i.Label, {
57
- ...t,
58
+ ...e,
58
59
  "data-imf-ui-component": "Slider.Label",
59
- className: (n) => c({ className: e(t.className, n) })
60
+ className: (n) => c({ className: t(e.className, n) })
60
61
  });
61
62
  }
62
63
  h.displayName = "Slider.Label";
63
- function g({ children: t, ...n }) {
64
+ function g({ children: e, ...n }) {
64
65
  return /* @__PURE__ */ r(i.Value, {
65
66
  ...n,
66
67
  "data-imf-ui-component": "Slider.Value",
67
- className: (t) => l({ className: e(n.className, t) }),
68
- children: t
68
+ className: (e) => l({ className: t(n.className, e) }),
69
+ children: e
69
70
  });
70
71
  }
71
72
  g.displayName = "Slider.Value";
72
- function _(t) {
73
+ function _(e) {
73
74
  return /* @__PURE__ */ r(i.Control, {
74
- ...t,
75
+ ...e,
75
76
  "data-imf-ui-component": "Slider.Control",
76
- className: (n) => u({ className: e(t.className, n) })
77
+ className: (n) => u({ className: t(e.className, n) })
77
78
  });
78
79
  }
79
80
  _.displayName = "Slider.Control";
80
- function v(t) {
81
+ function v(e) {
81
82
  return /* @__PURE__ */ r(i.Track, {
82
- ...t,
83
+ ...e,
83
84
  "data-imf-ui-component": "Slider.Track",
84
- className: (n) => d({ className: e(t.className, n) })
85
+ className: (n) => d({ className: t(e.className, n) })
85
86
  });
86
87
  }
87
88
  v.displayName = "Slider.Track";
88
- function y(t) {
89
+ function y(e) {
89
90
  return /* @__PURE__ */ r(i.Indicator, {
90
- ...t,
91
+ ...e,
91
92
  "data-imf-ui-component": "Slider.Indicator",
92
- className: (n) => f({ className: e(t.className, n) })
93
+ className: (n) => f({ className: t(e.className, n) })
93
94
  });
94
95
  }
95
96
  y.displayName = "Slider.Indicator";
96
- function b({ index: t, ...n }) {
97
+ function b({ index: e, ...n }) {
97
98
  return /* @__PURE__ */ r(i.Thumb, {
98
99
  ...n,
99
100
  "data-imf-ui-component": "Slider.Thumb",
100
- className: (t) => p({ className: e(n.className, t) }),
101
- index: t
101
+ className: (e) => p({ className: t(n.className, e) }),
102
+ index: e
102
103
  });
103
104
  }
104
105
  b.displayName = "Slider.Thumb";