@imfusion/web-ui 0.9.1-dev.6.gbdb251ae → 0.9.1-dev.9.gdfff1530

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.9.1-dev.6.gbdb251ae",
3
+ "version": "0.9.1-dev.9.gdfff1530",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",
@@ -5268,6 +5268,50 @@
5268
5268
  },
5269
5269
  "subComponents": []
5270
5270
  },
5271
+ "rich-link": {
5272
+ "root": {
5273
+ "name": "RichLink",
5274
+ "description": "RichLink — a link as a whole row: an optional leading icon on a tinted tile, the label with an optional description\nline, and a trailing icon for where it leads. Draws no divider; stacked links get their spacing from the layout. Wrap it\nwith TanStack Router's `createLink` to use it as a router link.",
5275
+ "props": [
5276
+ {
5277
+ "name": "description",
5278
+ "required": false,
5279
+ "type": "ReactNode",
5280
+ "defaultValue": null,
5281
+ "description": "Second line under the label. When set, the label turns bold."
5282
+ },
5283
+ {
5284
+ "name": "endGlyph",
5285
+ "required": false,
5286
+ "type": "IconComponent",
5287
+ "defaultValue": null,
5288
+ "description": "Trailing icon from `@imfusion/web-ui/icons`, replacing the arrow `kind` picks, such as `Download` for a file."
5289
+ },
5290
+ {
5291
+ "name": "glyph",
5292
+ "required": false,
5293
+ "type": "IconComponent",
5294
+ "defaultValue": null,
5295
+ "description": "Leading icon from `@imfusion/web-ui/icons`, shown on a tile in the primary color."
5296
+ },
5297
+ {
5298
+ "name": "kind",
5299
+ "required": false,
5300
+ "type": "\"external\" | \"internal\"",
5301
+ "defaultValue": "external",
5302
+ "description": "Link target scope. `\"external\"` (default) opens in a new tab with a diagonal `ArrowUpRight` icon; `\"internal\"` stays in the current tab with a horizontal `ArrowRight` icon."
5303
+ },
5304
+ {
5305
+ "name": "ref",
5306
+ "required": false,
5307
+ "type": "Ref<HTMLAnchorElement>",
5308
+ "defaultValue": null,
5309
+ "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}"
5310
+ }
5311
+ ]
5312
+ },
5313
+ "subComponents": []
5314
+ },
5271
5315
  "row": {
5272
5316
  "root": {
5273
5317
  "name": "Row",
@@ -163,6 +163,11 @@ Floating panel anchored to a trigger for contextual content, quick forms, or act
163
163
  Flow container that spaces long-form text and the blocks inside it. Also called an article or rich-text container. Use Stack or Row for UI layout.
164
164
  - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .prose (jq: jq '.prose' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
165
165
 
166
+ ## RichLink
167
+ - category: Buttons, status: experimental
168
+ Link as a whole row: optional leading icon, label, optional description line, and a trailing arrow for where it leads. Also called a link row or resource link. Use ChipLink for a compact link inside other content.
169
+ - props: node_modules/@imfusion/web-ui/src/docgen/doc.gen.json -> .rich-link (jq: jq '.rich-link' node_modules/@imfusion/web-ui/src/docgen/doc.gen.json)
170
+
166
171
  ## Row
167
172
  - category: Layout, status: stable
168
173
  Horizontal layout primitive for spacing, aligning, and wrapping children. Also called a horizontal stack or flex row.
@@ -46,6 +46,8 @@ reason.
46
46
  ## Choose between similar controls
47
47
 
48
48
  - `Button` performs an action, `ChipLink` goes somewhere, and `Chip` labels something.
49
+ - Use `ChipLink` for a link inside text or a row of chips, and `RichLink` for a link that fills its own row, such as a list
50
+ of resources.
49
51
  - Use plain `Table` parts for static small data. Pair them with a headless table library for sorting, pagination, or column
50
52
  logic. TanStack Table is the recommended choice.
51
53
  - Use `Callout` for persistent in-place status. Put transient confirmation near the action until a toast pattern exists.