@imfusion/web-ui 0.8.1-dev.6.g254fcc45 → 0.8.1-dev.64.gbde1f63f
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 +250 -6
- package/README.md +28 -18
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/dist/{code-D2lwxHgd.js → code-BYkr5k55.js} +13 -13
- package/dist/codegen/gen-icons.d.ts +29 -4
- package/dist/codegen/sharpen-icon.d.ts +11 -0
- package/dist/components/account-card/account-card.d.ts +9 -9
- package/dist/components/app-shell/app-shell.d.ts +59 -34
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/button/button.d.ts +14 -7
- package/dist/components/callout/callout.d.ts +4 -4
- package/dist/components/card/card.d.ts +21 -7
- package/dist/components/chip/chip.cva.d.ts +1 -1
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/chip-link/chip-link.d.ts +1 -1
- package/dist/components/code/code.d.ts +1 -1
- package/dist/components/field/field.d.ts +5 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts +19 -0
- package/dist/components/icon-button/icon-button.meta.d.ts +2 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/kbd/aria-key-shortcuts.d.ts +5 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/kbd.d.ts +14 -0
- package/dist/components/kbd/kbd.meta.d.ts +2 -0
- package/dist/components/logo/logo.d.ts +3 -3
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/meter.d.ts +33 -0
- package/dist/components/meter/meter.meta.d.ts +2 -0
- package/dist/components/navigation-menu/subs/link.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +3 -3
- package/dist/components/prose/prose.d.ts +1 -1
- package/dist/components/row/row.d.ts +3 -3
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +47 -0
- package/dist/components/skeleton/skeleton.meta.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +11 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/stack/stack.d.ts +3 -3
- package/dist/components/table/table.d.ts +16 -7
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +7 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/typo/typo.d.ts +21 -12
- package/dist/icons/catalog.gen.d.ts +3804 -0
- package/dist/icons/create-icon.d.ts +3 -0
- package/dist/icons/icon-config-context.d.ts +3 -0
- package/dist/icons/icon-config.d.ts +2 -2
- package/dist/icons/icons.gen.d.ts +1737 -1672
- package/dist/icons-BsK_o-Cb.js +36358 -0
- package/dist/icons.js +2 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2080 -1607
- package/dist/integrations/code-highlight.js +6 -4
- package/dist/integrations/frame-selection/frame-selection-view.d.ts +24 -0
- package/dist/integrations/frame-selection/frame-selection.d.ts +21 -0
- package/dist/integrations/frame-selection/frame-selection.meta.d.ts +2 -0
- package/dist/integrations/frame-selection/index.d.ts +2 -0
- package/dist/integrations/frame-selection.js +121 -0
- package/dist/integrations/image-display-options/image-display-options-view.d.ts +1 -1
- package/dist/integrations/image-display-options/image-display-options.d.ts +1 -1
- package/dist/integrations/image-display-options.js +56 -55
- package/dist/llms/evals/runner/config.d.ts +1 -0
- package/dist/llms/gen-tokens.d.ts +1 -1
- package/dist/{paths-Oi0v8x-w.js → paths-B5Ht3ETc.js} +2 -2
- package/dist/separator-lzz4A3x_.js +26 -0
- package/dist/slider-Cqpreglu.js +116 -0
- package/dist/style.css +1 -1
- package/dist/tabs-DRyqtS04.js +358 -0
- package/dist/utils/email.d.ts +7 -0
- package/dist/utils/status-glyphs.d.ts +4 -0
- package/dist/vite.js +2 -2
- package/dist/web-ui-cli.js +1 -1
- package/docs/user-guide/AgentTooling.mdx +8 -3
- package/package.json +38 -38
- package/src/docgen/doc.gen.json +1377 -215
- package/src/llms/icon-catalog.gen.json +5541 -1671
- package/src/llms/llms.gen.txt +29 -2
- package/src/llms/skills/imf-web-ui/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +18 -4
- package/src/llms/skills/imf-web-ui-components/SKILL.md +3 -1
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +3 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +2 -1
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +5 -3
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +2 -3
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +3 -4
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +4 -2
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +83 -42
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +2 -0
- package/src/llms/skills/imf-web-ui-update/SKILL.md +42 -7
- package/src/llms/skills/imf-web-ui-user-profile/SKILL.md +95 -0
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +2 -0
- package/src/llms/tokens.gen.json +3 -3
- package/dist/icons-CaGCCwG-.js +0 -78
- package/dist/tabs-BS6rqrrA.js +0 -398
- /package/dist/{meta-j-7HGrWv.js → meta-V_KyLeGn.js} +0 -0
- /package/dist/{chunk-DmhlhrBa.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../
|
|
2
|
-
import { t } from "../meta-
|
|
3
|
-
import { i as n, n as r, r as i } from "../code-
|
|
1
|
+
import { t as e } from "../rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "../meta-V_KyLeGn.js";
|
|
3
|
+
import { i as n, n as r, r as i } from "../code-BYkr5k55.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";
|
|
@@ -80,7 +80,9 @@ var w = /* @__PURE__ */ e({
|
|
|
80
80
|
});
|
|
81
81
|
function T(e, t) {
|
|
82
82
|
return s(() => {
|
|
83
|
-
if (
|
|
83
|
+
if (t == null || e === "") return;
|
|
84
|
+
let n = C(e, t);
|
|
85
|
+
return /* @__PURE__ */ a("span", { dangerouslySetInnerHTML: { __html: n } });
|
|
84
86
|
}, [e, t]);
|
|
85
87
|
}
|
|
86
88
|
function E({ language: e, children: t, ...n }) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type FrameSelectionViewProps = React.ComponentProps<"div"> & {
|
|
2
|
+
/** Index of the focused frame, starting at 0. */
|
|
3
|
+
focus: number;
|
|
4
|
+
/** Number of frames in the selected image sets. Nothing renders for one frame or fewer. */
|
|
5
|
+
count: number;
|
|
6
|
+
/** Called with the new 0-based frame index while the thumb moves. */
|
|
7
|
+
onFocusChange: (index: number) => void;
|
|
8
|
+
/** Direction of the slider; the vertical layout stacks the readout under it. */
|
|
9
|
+
orientation?: "horizontal" | "vertical";
|
|
10
|
+
/** Accessible name of the slider thumb. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** Whether the slider ignores user interaction. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* FrameSelectionView - the SDK-free presentational surface behind
|
|
17
|
+
* `FrameSelection`: the same slider and readout, driven by plain props
|
|
18
|
+
* instead of live SDK data.
|
|
19
|
+
*/
|
|
20
|
+
export declare function FrameSelectionView({ focus, count, onFocusChange, orientation, label, disabled, className, style, ...props }: FrameSelectionViewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
export declare namespace FrameSelectionView {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Data, HandleArray } from '@imfusion/sdk';
|
|
2
|
+
import { FrameSelectionView } from './frame-selection-view';
|
|
3
|
+
type Props = Omit<React.ComponentProps<typeof FrameSelectionView>, "focus" | "count" | "onFocusChange"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Datasets to scan, for example from `useVisibleData()`. Non-image data, single-frame image sets, and image sets whose
|
|
6
|
+
* frame count differs from the first multi-frame set are ignored.
|
|
7
|
+
*/
|
|
8
|
+
data: HandleArray<Data>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* FrameSelection - a position slider bound to the focused frame of the multi-frame image sets in `data`.
|
|
12
|
+
* Every matching image set follows the slider, and a `{focus} | {count}` readout sits beside it.
|
|
13
|
+
* Renders nothing when `data` holds no multi-frame image set.
|
|
14
|
+
*
|
|
15
|
+
* Must render inside an `ImFusionProvider`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function FrameSelection({ data, orientation, label, disabled, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare namespace FrameSelection {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
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";
|
|
3
|
+
import { t as a } from "../separator-lzz4A3x_.js";
|
|
4
|
+
import { cva as o } from "class-variance-authority";
|
|
5
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect as u, useMemo as d, useState as f } from "react";
|
|
7
|
+
import { useImFusion as p } from "@imfusion/sdk-react";
|
|
8
|
+
var m = {
|
|
9
|
+
count: "imf-ui-frame-selection-module-count",
|
|
10
|
+
focus: "imf-ui-frame-selection-module-focus",
|
|
11
|
+
readout: "imf-ui-frame-selection-module-readout",
|
|
12
|
+
root: "imf-ui-frame-selection-module-root",
|
|
13
|
+
separator: "imf-ui-frame-selection-module-separator",
|
|
14
|
+
slider: "imf-ui-frame-selection-module-slider"
|
|
15
|
+
}, h = o(m.root);
|
|
16
|
+
function g({ focus: e, count: o, onFocusChange: s, orientation: u = "horizontal", label: d = "Frame", disabled: f = !1, className: p, style: g, ..._ }) {
|
|
17
|
+
if (o <= 1) return null;
|
|
18
|
+
let v = e + 1, y = {
|
|
19
|
+
"--digits": String(o).length,
|
|
20
|
+
"--count": o
|
|
21
|
+
};
|
|
22
|
+
return /* @__PURE__ */ l("div", {
|
|
23
|
+
..._,
|
|
24
|
+
"data-imf-ui-component": "FrameSelection",
|
|
25
|
+
"data-orientation": u,
|
|
26
|
+
className: h({ className: p }),
|
|
27
|
+
style: {
|
|
28
|
+
...y,
|
|
29
|
+
...g
|
|
30
|
+
},
|
|
31
|
+
children: [/* @__PURE__ */ c(n, {
|
|
32
|
+
className: m.slider,
|
|
33
|
+
variant: "position",
|
|
34
|
+
orientation: u,
|
|
35
|
+
disabled: f,
|
|
36
|
+
min: 1,
|
|
37
|
+
max: o,
|
|
38
|
+
value: v,
|
|
39
|
+
onValueChange: (e) => {
|
|
40
|
+
s((typeof e == "number" ? e : e[0]) - 1);
|
|
41
|
+
},
|
|
42
|
+
children: /* @__PURE__ */ c(i, { children: /* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(t, {
|
|
43
|
+
"aria-label": d,
|
|
44
|
+
getAriaValueText: (e, t) => `${String(t)} of ${String(o)}`
|
|
45
|
+
}) }) })
|
|
46
|
+
}), /* @__PURE__ */ l("div", {
|
|
47
|
+
className: m.readout,
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ c("span", {
|
|
51
|
+
className: m.focus,
|
|
52
|
+
children: v
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ c(a, {
|
|
55
|
+
className: m.separator,
|
|
56
|
+
orientation: u === "horizontal" ? "vertical" : "horizontal"
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ c("span", {
|
|
59
|
+
className: m.count,
|
|
60
|
+
children: o
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
g.displayName = "FrameSelectionView";
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/integrations/frame-selection/frame-selection.tsx
|
|
69
|
+
function _(e, t) {
|
|
70
|
+
if (e.length === 0) return [];
|
|
71
|
+
let n = t.bindings.getImages(e), r = null, i = [];
|
|
72
|
+
for (let e of n) e.size() > 1 && (r ??= e.size(), e.size() == r && i.push(e));
|
|
73
|
+
return i;
|
|
74
|
+
}
|
|
75
|
+
function v({ data: e, orientation: t = "horizontal", label: n = "Frame", disabled: r = !1, ...i }) {
|
|
76
|
+
let a = p(), o = d(() => _(e, a), [e, a]), l = o[0]?.size() ?? 0, [m, h] = f(() => o[0]?.focus() ?? 0);
|
|
77
|
+
return u(function() {
|
|
78
|
+
h(o[0]?.focus() ?? 0);
|
|
79
|
+
let e = o.map((e) => e.onSelectionChanged(() => {
|
|
80
|
+
let t = e.focus();
|
|
81
|
+
h((e) => e === t ? e : t);
|
|
82
|
+
}));
|
|
83
|
+
return () => e.forEach((e) => e());
|
|
84
|
+
}, [o]), u(function() {
|
|
85
|
+
let e = !1;
|
|
86
|
+
for (let t of o) t.focus() !== m && (t.setFocus(m), e = !0);
|
|
87
|
+
e && a.render();
|
|
88
|
+
}, [
|
|
89
|
+
m,
|
|
90
|
+
o,
|
|
91
|
+
a
|
|
92
|
+
]), /* @__PURE__ */ c(s, { children: l > 1 && /* @__PURE__ */ c(g, {
|
|
93
|
+
...i,
|
|
94
|
+
focus: m,
|
|
95
|
+
count: l,
|
|
96
|
+
onFocusChange: h,
|
|
97
|
+
orientation: t,
|
|
98
|
+
label: n,
|
|
99
|
+
disabled: r
|
|
100
|
+
}) });
|
|
101
|
+
}
|
|
102
|
+
v.displayName = "FrameSelection";
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/integrations/frame-selection/frame-selection.meta.ts
|
|
105
|
+
var y = {
|
|
106
|
+
name: "FrameSelection",
|
|
107
|
+
category: e.inputs,
|
|
108
|
+
status: "experimental",
|
|
109
|
+
description: "Frame or slice picker bound to the focused frame of ImFusion image sets, with a focus and count readout. For a position picker not tied to the SDK, use Slider with variant=\"position\".",
|
|
110
|
+
origin: "adapted",
|
|
111
|
+
internalDependencies: ["Slider", "Separator"],
|
|
112
|
+
upstream: {
|
|
113
|
+
name: "ImFusion Web SDK",
|
|
114
|
+
websiteLink: "https://www.imfusion.com/",
|
|
115
|
+
docLink: "https://docs.imfusion.com/",
|
|
116
|
+
llmDocLink: "https://docs.imfusion.com/",
|
|
117
|
+
runtimeDependencies: ["@imfusion/sdk", "@imfusion/sdk-react"]
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
export { v as FrameSelection, y as frameSelectionMeta };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeHandler, IntensityRange, Options, Ranges, Variant } from './image-display-options-view.utils';
|
|
2
|
-
type ImageDisplayOptionsViewProps = React.
|
|
2
|
+
type ImageDisplayOptionsViewProps = React.ComponentProps<"div"> & {
|
|
3
3
|
variant?: Variant;
|
|
4
4
|
/** Current option values for both dimensions. */
|
|
5
5
|
options: Options;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SharedImageSet } from '@imfusion/sdk';
|
|
2
2
|
import { Ranges, Variant } from './image-display-options-view.utils';
|
|
3
|
-
type Props = React.
|
|
3
|
+
type Props = React.ComponentProps<"div"> & {
|
|
4
4
|
/**
|
|
5
5
|
* The dataset whose display options are edited.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
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";
|
|
3
4
|
import { cva as b } from "class-variance-authority";
|
|
4
5
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
5
6
|
import { useId as w, useMemo as T, useState as E } from "react";
|
|
@@ -73,29 +74,29 @@ function F(e, t) {
|
|
|
73
74
|
//#endregion
|
|
74
75
|
//#region src/integrations/image-display-options/image-display-options-view.tsx
|
|
75
76
|
var I = b(k.root);
|
|
76
|
-
function L({ spec:
|
|
77
|
-
let
|
|
78
|
-
value:
|
|
79
|
-
min:
|
|
80
|
-
max:
|
|
81
|
-
step:
|
|
82
|
-
format:
|
|
77
|
+
function L({ spec: e, value: t, row: n, onChange: r }) {
|
|
78
|
+
let i = /* @__PURE__ */ C(m, {
|
|
79
|
+
value: t,
|
|
80
|
+
min: e.min,
|
|
81
|
+
max: e.max,
|
|
82
|
+
step: e.step,
|
|
83
|
+
format: e.format,
|
|
83
84
|
onValueChange: (e) => {
|
|
84
|
-
|
|
85
|
+
r(typeof e == "number" ? e : e[0]);
|
|
85
86
|
},
|
|
86
|
-
children: [/* @__PURE__ */ C(
|
|
87
|
+
children: [/* @__PURE__ */ C(o, {
|
|
87
88
|
justify: "between",
|
|
88
|
-
children: [/* @__PURE__ */ S(
|
|
89
|
-
}), /* @__PURE__ */ S(
|
|
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 })] }) })]
|
|
90
91
|
});
|
|
91
|
-
return
|
|
92
|
+
return n ? /* @__PURE__ */ S("div", {
|
|
92
93
|
className: k.rowField,
|
|
93
|
-
children:
|
|
94
|
-
}) :
|
|
94
|
+
children: i
|
|
95
|
+
}) : i;
|
|
95
96
|
}
|
|
96
97
|
function R({ checked: e, row: t, onChange: n }) {
|
|
97
98
|
let r = w();
|
|
98
|
-
return /* @__PURE__ */ C(
|
|
99
|
+
return /* @__PURE__ */ C(o, {
|
|
99
100
|
align: "center",
|
|
100
101
|
justify: t ? "start" : "between",
|
|
101
102
|
gap: "2",
|
|
@@ -104,18 +105,18 @@ function R({ checked: e, row: t, onChange: n }) {
|
|
|
104
105
|
id: r,
|
|
105
106
|
className: k.invertLabel,
|
|
106
107
|
children: "Invert"
|
|
107
|
-
}), /* @__PURE__ */ S(
|
|
108
|
+
}), /* @__PURE__ */ S(i, {
|
|
108
109
|
"aria-labelledby": r,
|
|
109
110
|
checked: e,
|
|
110
111
|
onCheckedChange: (e) => {
|
|
111
112
|
n(e);
|
|
112
113
|
},
|
|
113
|
-
children: /* @__PURE__ */ S(
|
|
114
|
+
children: /* @__PURE__ */ S(l, {})
|
|
114
115
|
})]
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
118
|
function z({ active: e, onChange: t }) {
|
|
118
|
-
return /* @__PURE__ */ C(
|
|
119
|
+
return /* @__PURE__ */ C(f, {
|
|
119
120
|
className: k.segment,
|
|
120
121
|
"aria-label": "Display dimension",
|
|
121
122
|
value: [e],
|
|
@@ -123,10 +124,10 @@ function z({ active: e, onChange: t }) {
|
|
|
123
124
|
let n = e[0];
|
|
124
125
|
(n === "2d" || n === "3d") && t(n);
|
|
125
126
|
},
|
|
126
|
-
children: [/* @__PURE__ */ S(
|
|
127
|
+
children: [/* @__PURE__ */ S(r, {
|
|
127
128
|
value: "2d",
|
|
128
129
|
children: "2D"
|
|
129
|
-
}), /* @__PURE__ */ S(
|
|
130
|
+
}), /* @__PURE__ */ S(r, {
|
|
130
131
|
value: "3d",
|
|
131
132
|
children: "3D"
|
|
132
133
|
})]
|
|
@@ -149,49 +150,49 @@ function B({ dimension: e, fields: t, options: n, row: r, onChange: i }) {
|
|
|
149
150
|
}
|
|
150
151
|
})] });
|
|
151
152
|
}
|
|
152
|
-
function V({ variant: e = "default", options:
|
|
153
|
-
let [h, g] = E("2d"), _ = N(i,
|
|
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) => {
|
|
154
155
|
g(e === "3d" ? "3d" : "2d");
|
|
155
156
|
};
|
|
156
157
|
return /* @__PURE__ */ S("div", {
|
|
157
|
-
...
|
|
158
|
+
...m,
|
|
158
159
|
"data-imf-ui-component": "ImageDisplayOptions",
|
|
159
|
-
className: I({ className:
|
|
160
|
+
className: I({ className: p }),
|
|
160
161
|
children: e === "default" ? /* @__PURE__ */ C(t, {
|
|
161
162
|
value: h,
|
|
162
163
|
onValueChange: v,
|
|
163
|
-
children: [/* @__PURE__ */ C(
|
|
164
|
-
/* @__PURE__ */ S(
|
|
164
|
+
children: [/* @__PURE__ */ C(s, { children: [
|
|
165
|
+
/* @__PURE__ */ S(c, {
|
|
165
166
|
value: "2d",
|
|
166
167
|
children: "2D Slices"
|
|
167
168
|
}),
|
|
168
|
-
/* @__PURE__ */ S(
|
|
169
|
+
/* @__PURE__ */ S(c, {
|
|
169
170
|
value: "3d",
|
|
170
171
|
children: "3D Volume"
|
|
171
172
|
}),
|
|
172
|
-
/* @__PURE__ */ S(
|
|
173
|
-
] }), /* @__PURE__ */ C(
|
|
173
|
+
/* @__PURE__ */ S(d, {})
|
|
174
|
+
] }), /* @__PURE__ */ C(a, { children: [/* @__PURE__ */ S(u, {
|
|
174
175
|
value: "2d",
|
|
175
|
-
children: /* @__PURE__ */ S(
|
|
176
|
+
children: /* @__PURE__ */ S(n, {
|
|
176
177
|
gap: "3",
|
|
177
178
|
children: /* @__PURE__ */ S(B, {
|
|
178
179
|
dimension: "2d",
|
|
179
180
|
fields: _["2d"],
|
|
180
|
-
options:
|
|
181
|
+
options: r,
|
|
181
182
|
row: !1,
|
|
182
|
-
onChange:
|
|
183
|
+
onChange: f
|
|
183
184
|
})
|
|
184
185
|
})
|
|
185
|
-
}), /* @__PURE__ */ S(
|
|
186
|
+
}), /* @__PURE__ */ S(u, {
|
|
186
187
|
value: "3d",
|
|
187
|
-
children: /* @__PURE__ */ S(
|
|
188
|
+
children: /* @__PURE__ */ S(n, {
|
|
188
189
|
gap: "3",
|
|
189
190
|
children: /* @__PURE__ */ S(B, {
|
|
190
191
|
dimension: "3d",
|
|
191
192
|
fields: _["3d"],
|
|
192
|
-
options:
|
|
193
|
+
options: r,
|
|
193
194
|
row: !1,
|
|
194
|
-
onChange:
|
|
195
|
+
onChange: f
|
|
195
196
|
})
|
|
196
197
|
})
|
|
197
198
|
})] })]
|
|
@@ -200,52 +201,52 @@ function V({ variant: e = "default", options: n, intensityRange: i, ranges: a, o
|
|
|
200
201
|
orientation: "vertical",
|
|
201
202
|
value: h,
|
|
202
203
|
onValueChange: v,
|
|
203
|
-
children: [/* @__PURE__ */ C(
|
|
204
|
+
children: [/* @__PURE__ */ C(s, {
|
|
204
205
|
fill: !0,
|
|
205
206
|
children: [
|
|
206
|
-
/* @__PURE__ */ S(
|
|
207
|
+
/* @__PURE__ */ S(c, {
|
|
207
208
|
value: "2d",
|
|
208
209
|
children: "2D"
|
|
209
210
|
}),
|
|
210
|
-
/* @__PURE__ */ S(
|
|
211
|
+
/* @__PURE__ */ S(c, {
|
|
211
212
|
value: "3d",
|
|
212
213
|
children: "3D"
|
|
213
214
|
}),
|
|
214
|
-
/* @__PURE__ */ S(
|
|
215
|
+
/* @__PURE__ */ S(d, {})
|
|
215
216
|
]
|
|
216
|
-
}), /* @__PURE__ */ C(
|
|
217
|
+
}), /* @__PURE__ */ C(a, {
|
|
217
218
|
className: k.horizontalPanel,
|
|
218
|
-
children: [/* @__PURE__ */ S(
|
|
219
|
+
children: [/* @__PURE__ */ S(u, {
|
|
219
220
|
value: "2d",
|
|
220
|
-
children: /* @__PURE__ */ S(
|
|
221
|
+
children: /* @__PURE__ */ S(o, {
|
|
221
222
|
align: "center",
|
|
222
223
|
gap: "3",
|
|
223
224
|
className: k.strip,
|
|
224
225
|
children: /* @__PURE__ */ S(B, {
|
|
225
226
|
dimension: "2d",
|
|
226
227
|
fields: _["2d"],
|
|
227
|
-
options:
|
|
228
|
+
options: r,
|
|
228
229
|
row: !0,
|
|
229
|
-
onChange:
|
|
230
|
+
onChange: f
|
|
230
231
|
})
|
|
231
232
|
})
|
|
232
|
-
}), /* @__PURE__ */ S(
|
|
233
|
+
}), /* @__PURE__ */ S(u, {
|
|
233
234
|
value: "3d",
|
|
234
|
-
children: /* @__PURE__ */ S(
|
|
235
|
+
children: /* @__PURE__ */ S(o, {
|
|
235
236
|
align: "center",
|
|
236
237
|
gap: "3",
|
|
237
238
|
className: k.strip,
|
|
238
239
|
children: /* @__PURE__ */ S(B, {
|
|
239
240
|
dimension: "3d",
|
|
240
241
|
fields: _["3d"],
|
|
241
|
-
options:
|
|
242
|
+
options: r,
|
|
242
243
|
row: !0,
|
|
243
|
-
onChange:
|
|
244
|
+
onChange: f
|
|
244
245
|
})
|
|
245
246
|
})
|
|
246
247
|
})]
|
|
247
248
|
})]
|
|
248
|
-
}) : /* @__PURE__ */ C(
|
|
249
|
+
}) : /* @__PURE__ */ C(o, {
|
|
249
250
|
align: "center",
|
|
250
251
|
gap: "3",
|
|
251
252
|
className: k.compactStrip,
|
|
@@ -255,9 +256,9 @@ function V({ variant: e = "default", options: n, intensityRange: i, ranges: a, o
|
|
|
255
256
|
}), /* @__PURE__ */ S(B, {
|
|
256
257
|
dimension: h,
|
|
257
258
|
fields: _[h],
|
|
258
|
-
options:
|
|
259
|
+
options: r,
|
|
259
260
|
row: !0,
|
|
260
|
-
onChange:
|
|
261
|
+
onChange: f
|
|
261
262
|
})]
|
|
262
263
|
})
|
|
263
264
|
});
|
|
@@ -295,7 +296,7 @@ H.displayName = "ImageDisplayOptions";
|
|
|
295
296
|
//#region src/integrations/image-display-options/image-display-options.meta.ts
|
|
296
297
|
var U = {
|
|
297
298
|
name: "ImageDisplayOptions",
|
|
298
|
-
category:
|
|
299
|
+
category: e.inputs,
|
|
299
300
|
status: "experimental",
|
|
300
301
|
description: "Panel and toolbar controls for an image dataset's display options, including window, level, gamma, and invert settings.",
|
|
301
302
|
origin: "adapted",
|
|
@@ -3,6 +3,7 @@ export declare const NO_SKILLS: boolean;
|
|
|
3
3
|
export declare const EVAL_ROOT: string;
|
|
4
4
|
export declare const TEMPLATE: string;
|
|
5
5
|
export declare const CODEX_HOME_DIR: string;
|
|
6
|
+
export declare const XDG_CONFIG_DIR: string;
|
|
6
7
|
export declare const RESULTS_DIR: string;
|
|
7
8
|
export declare const REPORT_PATH: string;
|
|
8
9
|
export declare const SCENARIOS_DIR: string;
|
|
@@ -4,4 +4,4 @@ export type TokenEntry = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare function collectTokenEntries(files: readonly string[]): TokenEntry[];
|
|
6
6
|
export declare function renderTokenIndex(tokens: readonly TokenEntry[]): string;
|
|
7
|
-
export declare function generateTokenIndex():
|
|
7
|
+
export declare function generateTokenIndex(): number;
|
|
@@ -16,8 +16,8 @@ var o = a(t(r(import.meta.url))), s = process.cwd();
|
|
|
16
16
|
function c(r) {
|
|
17
17
|
let a = s;
|
|
18
18
|
for (; a !== t(a) && !e(n(a, "node_modules", ".bin"));) a = t(a);
|
|
19
|
-
let o = n(a, "node_modules", ".bin", "prettier");
|
|
20
|
-
e(
|
|
19
|
+
let o = n(a, "node_modules", ".bin"), c = n(o, "vp"), [l, u] = e(c) ? [c, ["fmt", ...r]] : [n(o, "prettier"), ["--write", ...r]];
|
|
20
|
+
e(l) && i(l, u, {
|
|
21
21
|
cwd: s,
|
|
22
22
|
stdio: "ignore"
|
|
23
23
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
variantDashed: "imf-ui-separator-module-variantDashed",
|
|
7
|
+
variantDotted: "imf-ui-separator-module-variantDotted",
|
|
8
|
+
variantSolid: "imf-ui-separator-module-variantSolid"
|
|
9
|
+
}, i = e(r.root, { variants: { variant: {
|
|
10
|
+
solid: r.variantSolid,
|
|
11
|
+
dashed: r.variantDashed,
|
|
12
|
+
dotted: r.variantDotted
|
|
13
|
+
} } });
|
|
14
|
+
function a({ orientation: e = "horizontal", variant: r = "solid", ...a }) {
|
|
15
|
+
return /* @__PURE__ */ t(n, {
|
|
16
|
+
...a,
|
|
17
|
+
orientation: e,
|
|
18
|
+
"data-imf-ui-component": "Separator",
|
|
19
|
+
className: i({
|
|
20
|
+
variant: r,
|
|
21
|
+
className: a.className
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { a as t };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { cva as t } from "class-variance-authority";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Slider as r } from "@base-ui/react/slider";
|
|
5
|
+
//#region src/utils/resolve-state-props.ts
|
|
6
|
+
function i(e, t) {
|
|
7
|
+
return e instanceof Function ? e(t) : e;
|
|
8
|
+
}
|
|
9
|
+
function a(e, t) {
|
|
10
|
+
return i(e, t);
|
|
11
|
+
}
|
|
12
|
+
function o(e, t) {
|
|
13
|
+
return i(e, t);
|
|
14
|
+
}
|
|
15
|
+
var s = {
|
|
16
|
+
control: "imf-ui-slider-module-control",
|
|
17
|
+
indicator: "imf-ui-slider-module-indicator",
|
|
18
|
+
label: "imf-ui-slider-module-label",
|
|
19
|
+
root: "imf-ui-slider-module-root",
|
|
20
|
+
thumb: "imf-ui-slider-module-thumb",
|
|
21
|
+
track: "imf-ui-slider-module-track",
|
|
22
|
+
value: "imf-ui-slider-module-value",
|
|
23
|
+
variantPosition: "imf-ui-slider-module-variantPosition"
|
|
24
|
+
}, c = /* @__PURE__ */ e({
|
|
25
|
+
Control: () => y,
|
|
26
|
+
Indicator: () => x,
|
|
27
|
+
Label: () => _,
|
|
28
|
+
Root: () => g,
|
|
29
|
+
Thumb: () => S,
|
|
30
|
+
Track: () => b,
|
|
31
|
+
Value: () => v
|
|
32
|
+
}), l = t(s.root, { variants: { variant: {
|
|
33
|
+
default: null,
|
|
34
|
+
position: s.variantPosition
|
|
35
|
+
} } }), u = t(s.label), d = t(s.value), f = t(s.control), p = t(s.track), m = t(s.indicator), h = t(s.thumb);
|
|
36
|
+
function g({ variant: e = "default", value: t, defaultValue: i, onValueChange: o, onValueCommitted: s, min: c = 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 }) {
|
|
37
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
38
|
+
...S,
|
|
39
|
+
"data-imf-ui-component": "Slider.Root",
|
|
40
|
+
"data-orientation": h,
|
|
41
|
+
className: (t) => l({
|
|
42
|
+
variant: e,
|
|
43
|
+
className: a(S.className, t)
|
|
44
|
+
}),
|
|
45
|
+
value: t,
|
|
46
|
+
defaultValue: i,
|
|
47
|
+
onValueChange: o,
|
|
48
|
+
onValueCommitted: s,
|
|
49
|
+
min: c,
|
|
50
|
+
max: u,
|
|
51
|
+
step: d,
|
|
52
|
+
largeStep: f,
|
|
53
|
+
minStepsBetweenValues: p,
|
|
54
|
+
disabled: m,
|
|
55
|
+
orientation: h,
|
|
56
|
+
name: g,
|
|
57
|
+
form: _,
|
|
58
|
+
locale: v,
|
|
59
|
+
thumbAlignment: y,
|
|
60
|
+
thumbCollisionBehavior: b,
|
|
61
|
+
format: x
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
g.displayName = "Slider.Root";
|
|
65
|
+
function _(e) {
|
|
66
|
+
return /* @__PURE__ */ n(r.Label, {
|
|
67
|
+
...e,
|
|
68
|
+
"data-imf-ui-component": "Slider.Label",
|
|
69
|
+
className: (t) => u({ className: a(e.className, t) })
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
_.displayName = "Slider.Label";
|
|
73
|
+
function v({ children: e, ...t }) {
|
|
74
|
+
return /* @__PURE__ */ n(r.Value, {
|
|
75
|
+
...t,
|
|
76
|
+
"data-imf-ui-component": "Slider.Value",
|
|
77
|
+
className: (e) => d({ className: a(t.className, e) }),
|
|
78
|
+
children: e
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
v.displayName = "Slider.Value";
|
|
82
|
+
function y(e) {
|
|
83
|
+
return /* @__PURE__ */ n(r.Control, {
|
|
84
|
+
...e,
|
|
85
|
+
"data-imf-ui-component": "Slider.Control",
|
|
86
|
+
className: (t) => f({ className: a(e.className, t) })
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
y.displayName = "Slider.Control";
|
|
90
|
+
function b(e) {
|
|
91
|
+
return /* @__PURE__ */ n(r.Track, {
|
|
92
|
+
...e,
|
|
93
|
+
"data-imf-ui-component": "Slider.Track",
|
|
94
|
+
className: (t) => p({ className: a(e.className, t) })
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
b.displayName = "Slider.Track";
|
|
98
|
+
function x(e) {
|
|
99
|
+
return /* @__PURE__ */ n(r.Indicator, {
|
|
100
|
+
...e,
|
|
101
|
+
"data-imf-ui-component": "Slider.Indicator",
|
|
102
|
+
className: (t) => m({ className: a(e.className, t) })
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
x.displayName = "Slider.Indicator";
|
|
106
|
+
function S({ index: e, ...t }) {
|
|
107
|
+
return /* @__PURE__ */ n(r.Thumb, {
|
|
108
|
+
...t,
|
|
109
|
+
"data-imf-ui-component": "Slider.Thumb",
|
|
110
|
+
className: (e) => h({ className: a(t.className, e) }),
|
|
111
|
+
index: e
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
S.displayName = "Slider.Thumb";
|
|
115
|
+
//#endregion
|
|
116
|
+
export { S as a, c, g as i, a as l, x as n, b as o, _ as r, v as s, y as t, o as u };
|