@imfusion/web-ui 0.8.1-dev.46.g027b5df2 → 0.8.1-dev.48.g0dad5878

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.8.1-dev.46.g027b5df2",
3
+ "version": "0.8.1-dev.48.g0dad5878",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -84,6 +84,7 @@
84
84
  "verify:changelog": "tsx scripts/verify/changelog.ts",
85
85
  "verify:generated": "tsx scripts/verify/generated.ts",
86
86
  "verify:full": "tsx scripts/verify/full.ts",
87
+ "verify:fast": "tsx scripts/verify/full.ts --fast",
87
88
  "format": "vp fmt .",
88
89
  "lint": "vp lint . --fix",
89
90
  "test:unit": "vp test run --project unit",
@@ -2367,6 +2367,113 @@
2367
2367
  },
2368
2368
  "subComponents": []
2369
2369
  },
2370
+ "icon-button": {
2371
+ "root": {
2372
+ "name": "IconButton",
2373
+ "description": "IconButton — a square Button that shows a single Icon. Composes Button, so every Button variant and native attribute\npasses through.",
2374
+ "props": [
2375
+ {
2376
+ "name": "chamfer",
2377
+ "required": false,
2378
+ "type": "boolean | null",
2379
+ "defaultValue": null,
2380
+ "description": ""
2381
+ },
2382
+ {
2383
+ "name": "className",
2384
+ "required": false,
2385
+ "type": "string | ((state: ButtonState) => string)",
2386
+ "defaultValue": null,
2387
+ "description": "CSS class applied to the element, or a function that\nreturns a class based on the component's state."
2388
+ },
2389
+ {
2390
+ "name": "context",
2391
+ "required": false,
2392
+ "type": "\"default\" | \"oncolor\" | null",
2393
+ "defaultValue": null,
2394
+ "description": ""
2395
+ },
2396
+ {
2397
+ "name": "focusableWhenDisabled",
2398
+ "required": false,
2399
+ "type": "boolean",
2400
+ "defaultValue": "false",
2401
+ "description": "Whether the button should be focusable when disabled."
2402
+ },
2403
+ {
2404
+ "name": "glyph",
2405
+ "required": true,
2406
+ "type": "IconComponent",
2407
+ "defaultValue": null,
2408
+ "description": "Icon component imported from `@imfusion/web-ui/icons`."
2409
+ },
2410
+ {
2411
+ "name": "iconProps",
2412
+ "required": false,
2413
+ "type": "Omit<Omit<Omit<SVGProps<SVGSVGElement>, \"ref\"> & RefAttributes<SVGSVGElement>, \"color\"> & VariantProps<(props?: (ConfigVariants<...> & ClassProp)) => string> & { ...; }, \"glyph\">",
2414
+ "defaultValue": null,
2415
+ "description": "Props for the inner Icon, such as `strokeWidth` or a `size` override."
2416
+ },
2417
+ {
2418
+ "name": "label",
2419
+ "required": true,
2420
+ "type": "string",
2421
+ "defaultValue": null,
2422
+ "description": "Accessible name; the button renders no visible text."
2423
+ },
2424
+ {
2425
+ "name": "nativeButton",
2426
+ "required": false,
2427
+ "type": "boolean",
2428
+ "defaultValue": "true",
2429
+ "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (for example, `<div>`)."
2430
+ },
2431
+ {
2432
+ "name": "radius",
2433
+ "required": false,
2434
+ "type": "\"sm\" | \"md\" | \"lg\" | \"none\" | \"round\" | null",
2435
+ "defaultValue": null,
2436
+ "description": ""
2437
+ },
2438
+ {
2439
+ "name": "ref",
2440
+ "required": false,
2441
+ "type": "Ref<HTMLElement>",
2442
+ "defaultValue": null,
2443
+ "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}"
2444
+ },
2445
+ {
2446
+ "name": "render",
2447
+ "required": false,
2448
+ "type": "| ReactElement<\n unknown,\n string | JSXElementConstructor<any>\n >\n| ComponentRenderFn<HTMLProps, ButtonState>",
2449
+ "defaultValue": null,
2450
+ "description": "Allows you to replace the component's HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
2451
+ },
2452
+ {
2453
+ "name": "size",
2454
+ "required": false,
2455
+ "type": "\"sm\" | \"md\" | \"lg\" | \"hero\" | null",
2456
+ "defaultValue": "md",
2457
+ "description": ""
2458
+ },
2459
+ {
2460
+ "name": "style",
2461
+ "required": false,
2462
+ "type": "| CSSProperties\n| ((state: ButtonState) => CSSProperties)",
2463
+ "defaultValue": null,
2464
+ "description": "Style applied to the element, or a function that\nreturns a style object based on the component's state."
2465
+ },
2466
+ {
2467
+ "name": "variant",
2468
+ "required": false,
2469
+ "type": "| \"primary\"\n| \"secondary\"\n| \"positive\"\n| \"negative\"\n| \"outline\"\n| \"ghost\"\n| null",
2470
+ "defaultValue": null,
2471
+ "description": ""
2472
+ }
2473
+ ]
2474
+ },
2475
+ "subComponents": []
2476
+ },
2370
2477
  "input": {
2371
2478
  "root": {
2372
2479
  "name": "Input",
@@ -107,6 +107,11 @@ Frame or slice picker bound to the focused frame of ImFusion image sets, with a
107
107
  Renders a Web UI icon with an optional semantic foreground color. The default inherits the surrounding currentColor.
108
108
  - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .icon (jq: jq '.icon' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
109
109
 
110
+ ## IconButton
111
+ - category: Buttons, status: experimental
112
+ Square button that shows a single icon and no visible text, with its accessible name from `label`. Also called an icon-only or toolbar button. Use Button with `startIcon` or `endIcon` when a text label is visible.
113
+ - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .icon-button (jq: jq '.icon-button' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
114
+
110
115
  ## ImageDisplayOptions
111
116
  - category: Inputs, status: experimental
112
117
  Panel and toolbar controls for an image dataset's display options, including window, level, gamma, and invert settings.