@imfusion/web-ui 0.11.1-dev.66.g88142bbf → 0.11.1-dev.68.g14d48720
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 +5 -0
- package/dist/{code-BaLXMEMa.js → code-BEEa9MB9.js} +5 -5
- package/dist/{icon-button-roSB497o.js → icon-button-D4cnLN_x.js} +2 -2
- package/dist/icons/catalog.gen.d.ts +7 -0
- package/dist/icons/icons.gen.d.ts +1 -0
- package/dist/{icons-vc1WZCxX.js → icons-CIACWV-N.js} +914 -893
- package/dist/icons.js +1 -1
- package/dist/index.js +176 -176
- package/dist/integrations/code-highlight.js +1 -1
- package/dist/integrations/image-display-options.js +1 -1
- package/dist/integrations/layout-mode.js +9 -9
- package/dist/integrations/view-tools.js +16 -16
- package/dist/style.css +1 -1
- package/dist/{toggle-group-eGr6_hgQ.js → toggle-group-CnVw-abL.js} +3 -3
- package/dist/{toggle-group-Bhb3qicp.js → toggle-group-D5UAcbsi.js} +1 -1
- package/package.json +1 -1
- package/src/llms/icon-catalog.gen.json +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../rolldown-runtime-Dy4uBu1J.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-BEEa9MB9.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 { n as t, t as n } from "../toggle-group-
|
|
2
|
+
import { n as t, t as n } from "../toggle-group-CnVw-abL.js";
|
|
3
3
|
import { n as r, t as i } from "../row-CImu8yXV.js";
|
|
4
4
|
import { t as a } from "../scroll-area-CXQ_SxPX.js";
|
|
5
5
|
import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "../slider-CpIZMAFl.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $h as e, Qh as t, Zh as n, ng as r, vM as i } from "../icons-CIACWV-N.js";
|
|
2
2
|
import { t as a } from "../meta-V_KyLeGn.js";
|
|
3
|
-
import { n as o, t as s } from "../toggle-group-
|
|
3
|
+
import { n as o, t as s } from "../toggle-group-CnVw-abL.js";
|
|
4
4
|
import { a as c } from "../utils-J6vbjIt1.js";
|
|
5
|
-
import "../toggle-group-
|
|
5
|
+
import "../toggle-group-D5UAcbsi.js";
|
|
6
6
|
import { cva as l } from "class-variance-authority";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
8
|
import { useLayoutMode as f } from "@imfusion/sdk-react";
|
|
@@ -16,11 +16,11 @@ var p = {
|
|
|
16
16
|
} } }), h = [
|
|
17
17
|
{
|
|
18
18
|
mode: "Auto",
|
|
19
|
-
glyph:
|
|
19
|
+
glyph: n
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
mode: "Rows",
|
|
23
|
-
glyph:
|
|
23
|
+
glyph: r
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
mode: "FocusPlusStack",
|
|
@@ -28,13 +28,13 @@ var p = {
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
mode: "FocusPlusRows",
|
|
31
|
-
glyph:
|
|
31
|
+
glyph: t
|
|
32
32
|
}
|
|
33
33
|
];
|
|
34
34
|
function g(e) {
|
|
35
35
|
return h.some((t) => t.mode === e);
|
|
36
36
|
}
|
|
37
|
-
function _({ mode: e, onModeChange: t, variant: n = "compact", label:
|
|
37
|
+
function _({ mode: e, onModeChange: t, variant: n = "compact", label: r = "Layout", autoLabel: a = "Auto", rowsLabel: l = "Rows", focusPlusStackLabel: f = "Focus + stack", focusPlusRowsLabel: _ = "Focus + rows", orientation: v = "horizontal", className: y, ...b }) {
|
|
38
38
|
let x = {
|
|
39
39
|
Auto: a,
|
|
40
40
|
Rows: l,
|
|
@@ -45,7 +45,7 @@ function _({ mode: e, onModeChange: t, variant: n = "compact", label: i = "Layou
|
|
|
45
45
|
g(e[0]) && t(e[0]);
|
|
46
46
|
}
|
|
47
47
|
return /* @__PURE__ */ u(s, {
|
|
48
|
-
"aria-label":
|
|
48
|
+
"aria-label": r,
|
|
49
49
|
...b,
|
|
50
50
|
orientation: S ? "vertical" : v,
|
|
51
51
|
className: (e) => m({
|
|
@@ -58,7 +58,7 @@ function _({ mode: e, onModeChange: t, variant: n = "compact", label: i = "Layou
|
|
|
58
58
|
value: e,
|
|
59
59
|
"aria-label": S ? void 0 : x[e],
|
|
60
60
|
className: p.toggle,
|
|
61
|
-
children: [/* @__PURE__ */ u(
|
|
61
|
+
children: [/* @__PURE__ */ u(i, {
|
|
62
62
|
glyph: t,
|
|
63
63
|
size: 16,
|
|
64
64
|
"aria-hidden": !0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hl as e, pM as t, tk as n, vM as r, yC as i } from "../icons-CIACWV-N.js";
|
|
2
2
|
import { t as a } from "../meta-V_KyLeGn.js";
|
|
3
|
-
import { n as o, t as s } from "../toggle-group-
|
|
4
|
-
import { n as c } from "../icon-button-
|
|
3
|
+
import { n as o, t as s } from "../toggle-group-CnVw-abL.js";
|
|
4
|
+
import { n as c } from "../icon-button-D4cnLN_x.js";
|
|
5
5
|
import { n as l, t as u } from "../row-CImu8yXV.js";
|
|
6
6
|
import { cva as d } from "class-variance-authority";
|
|
7
7
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -48,14 +48,14 @@ function b() {
|
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/integrations/view-tools/view-tools-view.tsx
|
|
50
50
|
var x = d({ root: "imf-ui-view-tools-module-root" }.root), S = {
|
|
51
|
-
Pan:
|
|
52
|
-
Zoom:
|
|
53
|
-
Windowing:
|
|
51
|
+
Pan: e,
|
|
52
|
+
Zoom: t,
|
|
53
|
+
Windowing: n
|
|
54
54
|
};
|
|
55
55
|
function C(e) {
|
|
56
56
|
return typeof e == "string" && Object.hasOwn(S, e);
|
|
57
57
|
}
|
|
58
|
-
function w({ viewInteraction:
|
|
58
|
+
function w({ viewInteraction: e, onViewInteractionChange: t, onReset: n, orientation: a = "horizontal", "aria-label": d = "View tools", className: m, ...h }) {
|
|
59
59
|
let g = a === "vertical" ? l : u;
|
|
60
60
|
return /* @__PURE__ */ f("div", {
|
|
61
61
|
role: "group",
|
|
@@ -69,23 +69,23 @@ function w({ viewInteraction: t, onViewInteractionChange: n, onReset: r, orienta
|
|
|
69
69
|
align: "center",
|
|
70
70
|
children: [/* @__PURE__ */ f(s, {
|
|
71
71
|
orientation: a,
|
|
72
|
-
value:
|
|
72
|
+
value: e === "Default" ? [] : [e],
|
|
73
73
|
onValueChange: (e) => {
|
|
74
|
-
|
|
74
|
+
t(C(e[0]) ? e[0] : "Default");
|
|
75
75
|
},
|
|
76
|
-
children: Object.entries(S).map(([
|
|
77
|
-
value:
|
|
78
|
-
"aria-label":
|
|
79
|
-
children: /* @__PURE__ */ f(
|
|
80
|
-
glyph:
|
|
76
|
+
children: Object.entries(S).map(([e, t]) => /* @__PURE__ */ f(o, {
|
|
77
|
+
value: e,
|
|
78
|
+
"aria-label": e,
|
|
79
|
+
children: /* @__PURE__ */ f(r, {
|
|
80
|
+
glyph: t,
|
|
81
81
|
"aria-hidden": !0
|
|
82
82
|
})
|
|
83
|
-
},
|
|
83
|
+
}, e))
|
|
84
84
|
}), /* @__PURE__ */ f(c, {
|
|
85
85
|
glyph: i,
|
|
86
86
|
label: "Reset view",
|
|
87
87
|
variant: "ghost",
|
|
88
|
-
onClick:
|
|
88
|
+
onClick: n
|
|
89
89
|
})]
|
|
90
90
|
})
|
|
91
91
|
});
|