@imfusion/web-ui 0.11.1-dev.65.g9b6bba80 → 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 CHANGED
@@ -62,6 +62,9 @@
62
62
  - `@imfusion/web-ui/icons` adds four viewport layout icons in the Layout category: `LayoutAuto`, `LayoutRows`,
63
63
  `LayoutFocusPlusStack`, and `LayoutFocusPlusRows`. [Iconography](src/icons/iconography.stories.tsx#Iconography)
64
64
  — Stephan Wenninger <wenninger@imfusion.com>
65
+ - `@imfusion/web-ui/icons` adds `LabelMap` in the Medical Imaging category: an image frame split into regions, one of them
66
+ painted. The drawing is a draft for design review. [Iconography](src/icons/iconography.stories.tsx#Iconography) —
67
+ Nikolaus Brunner <brunner@imfusion.com>
65
68
  - `LayoutMode` is new, from `@imfusion/web-ui/integrations/layout-mode`. It switches the ImFusion Web SDK viewer between
66
69
  Auto, Rows, Focus + stack, and Focus + rows through `useLayoutMode`. `variant="compact"` is a row of icon toggles and
67
70
  `variant="labeled"` a vertical list with each mode's name beside its icon; every name can be replaced through its label
@@ -196,10 +199,18 @@
196
199
  - `npm run dev` starts Storybook on the next free port again while another checkout's Storybook runs. — Nikolaus Brunner
197
200
  <brunner@imfusion.com>
198
201
  - A Storybook sidebar row's status icon stays in place on hover. — Nikolaus Brunner <brunner@imfusion.com>
202
+ - A docs page's `Uses` links open the linked component's page on the hosted Storybook too. — Nikolaus Brunner
203
+ <brunner@imfusion.com>
199
204
  - `npm run ci:status` lists queued and running builds beside finished ones. — Nikolaus Brunner <brunner@imfusion.com>
200
205
  - Components — Nikolaus Brunner <brunner@imfusion.com>
201
206
  - A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
202
207
  - A `Popover.Trigger` rendered as another component keeps that component's styles, so `render={<Button />}` looks like a Button.
208
+ - `ScrollArea` keeps scrolling inside only along a direction it overflows. Along the other one, the wheel scrolls the
209
+ page. [ScrollArea](src/components/scroll-area/scroll-area.mdx)
210
+ - A ghost `Button` or `IconButton` fades all its content on hover, an `Icon` with its own colour included, such as
211
+ `iconProps={{ variant: "negative" }}`. [Button](src/components/button/button.mdx)
212
+ - Components — Ehsan Shafiei <shafiei@imfusion.com>
213
+ - `Code.Block` passes scrolling to the page when the code cannot scroll farther in that direction. [Code](src/components/code/code.mdx)
203
214
  - `dist/style.css` opens with the layer order statement (`imf-ui.tokens`, `imf-ui.base`, `imf-ui.components`), so each
204
215
  component's own focus style beats the base focus ring and a focused field shows only its primary border.
205
216
  ([WEBSDK-274](https://imfusion.atlassian.net/browse/WEBSDK-274)) — Nikolaus Brunner <brunner@imfusion.com>
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Xo as t, _M as n, ja as r } from "./icons-vc1WZCxX.js";
2
+ import { Xo as t, ja as n, vM as r } from "./icons-CIACWV-N.js";
3
3
  import { t as i } from "./meta-V_KyLeGn.js";
4
4
  import { a, i as o, n as s, o as c, s as l } from "./scroll-area-CXQ_SxPX.js";
5
5
  import { cx as u } from "class-variance-authority";
@@ -34,7 +34,7 @@ var x = {
34
34
  InlineLink: () => w
35
35
  });
36
36
  function C({ copyable: e = !1, children: i, render: a, ...o }) {
37
- let { copied: s, copy: c } = b(), l = g(null), u = s ? r : t;
37
+ let { copied: s, copy: c } = b(), l = g(null), u = s ? n : t;
38
38
  return v({
39
39
  defaultTagName: "code",
40
40
  render: a,
@@ -53,7 +53,7 @@ function C({ copyable: e = !1, children: i, render: a, ...o }) {
53
53
  "data-copied": s || void 0,
54
54
  "aria-label": s ? "Copied" : "Copy",
55
55
  onClick: () => c(l.current?.textContent ?? ""),
56
- children: /* @__PURE__ */ f(n, {
56
+ children: /* @__PURE__ */ f(r, {
57
57
  glyph: u,
58
58
  size: 12,
59
59
  strokeWidth: 2,
@@ -87,7 +87,7 @@ function w({ kind: e = "external", ...t }) {
87
87
  }
88
88
  w.displayName = "Code.InlineLink";
89
89
  function T({ className: e, language: i, hideCopy: d = !1, children: m, ...h }) {
90
- let { copied: _, copy: v } = b(), y = g(null), S = _ ? r : t;
90
+ let { copied: _, copy: v } = b(), y = g(null), S = _ ? n : t;
91
91
  return /* @__PURE__ */ p("div", {
92
92
  "data-imf-ui-component": "Code.Block",
93
93
  className: u(x.block, e),
@@ -102,7 +102,7 @@ function T({ className: e, language: i, hideCopy: d = !1, children: m, ...h }) {
102
102
  "data-copied": _ || void 0,
103
103
  "aria-label": _ ? "Copied" : "Copy",
104
104
  onClick: () => v(y.current?.textContent ?? ""),
105
- children: /* @__PURE__ */ f(n, {
105
+ children: /* @__PURE__ */ f(r, {
106
106
  glyph: S,
107
107
  size: 12,
108
108
  strokeWidth: 2,
@@ -1,6 +1,6 @@
1
- import { _M as e } from "./icons-vc1WZCxX.js";
1
+ import { vM as e } from "./icons-CIACWV-N.js";
2
2
  import { t } from "./meta-V_KyLeGn.js";
3
- import { a as n, r } from "./toggle-group-eGr6_hgQ.js";
3
+ import { a as n, r } from "./toggle-group-CnVw-abL.js";
4
4
  import { a as i } from "./utils-J6vbjIt1.js";
5
5
  import { Button as a } from "@base-ui/react/button";
6
6
  import { cva as o } from "class-variance-authority";
@@ -5941,6 +5941,13 @@ export declare const ICON_CATALOG: readonly [{
5941
5941
  readonly style: "regular";
5942
5942
  readonly origin: "iconoir";
5943
5943
  readonly file: "regular/label.svg";
5944
+ }, {
5945
+ readonly name: "LabelMap";
5946
+ readonly category: "Medical Imaging";
5947
+ readonly tags: readonly ["label map", "labelmap", "segmentation", "regions", "mask", "pixels"];
5948
+ readonly style: "regular";
5949
+ readonly origin: "imfusion";
5950
+ readonly file: "regular/label-map.svg";
5944
5951
  }, {
5945
5952
  readonly name: "LabelPropagationAction";
5946
5953
  readonly category: "Medical Imaging";
@@ -847,6 +847,7 @@ export declare const KeyMinus: import('.').IconComponent;
847
847
  export declare const KeyPlus: import('.').IconComponent;
848
848
  export declare const KeyXmark: import('.').IconComponent;
849
849
  export declare const Label: import('.').IconComponent;
850
+ export declare const LabelMap: import('.').IconComponent;
850
851
  export declare const LabelPropagationAction: import('.').IconComponent;
851
852
  export declare const LabelSolid: import('.').IconComponent;
852
853
  export declare const Lamp: import('.').IconComponent;