@imfusion/web-ui 0.9.1-dev.6.gbdb251ae → 0.9.1-dev.7.g0a2385ef

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
@@ -4,6 +4,10 @@
4
4
 
5
5
  ### Added
6
6
 
7
+ - `RichLink` is a link that fills a row: an optional icon on a tile tinted in the primary color, a label, an optional
8
+ description line, and a trailing arrow for where it leads, which `endGlyph` replaces. It renders a plain anchor, so
9
+ TanStack Router's `createLink` can wrap it
10
+ ([WEBSDK-272](https://imfusion.atlassian.net/browse/WEBSDK-272)) — Nikolaus Brunner <brunner@imfusion.com>
7
11
  - Agent skills — Nikolaus Brunner <brunner@imfusion.com>
8
12
  - `imf-web-ui-conventions` puts a stand-in for a missing Web UI component in `components/web-ui-pending/`, built as
9
13
  the library would ship it and deleted once it does.
@@ -12,6 +16,9 @@
12
16
 
13
17
  ### Changed
14
18
 
19
+ - Agent skills — Nikolaus Brunner <brunner@imfusion.com>
20
+ - `imf-web-ui-ux` picks `ChipLink` for a link inside text or a row of chips and `RichLink` for a link that fills its own
21
+ row ([WEBSDK-272](https://imfusion.atlassian.net/browse/WEBSDK-272)).
15
22
  - Components — Nikolaus Brunner <brunner@imfusion.com>
16
23
  - The `variant="position"` Slider thumb is primary at rest and gray on hover, with an outline ring on keyboard focus. It is
17
24
  opaque, so a `Slider.Indicator` under it stays hidden.
@@ -0,0 +1,2 @@
1
+ export { RichLink } from './rich-link';
2
+ export { richLinkMeta } from './rich-link.meta';
@@ -0,0 +1,18 @@
1
+ import { IconComponent } from '../icon';
2
+ type Props = React.ComponentProps<"a"> & {
3
+ /** Leading icon from `@imfusion/web-ui/icons`, shown on a tile in the primary color. */
4
+ glyph?: IconComponent;
5
+ /** Second line under the label. When set, the label turns bold. */
6
+ description?: React.ReactNode;
7
+ /** 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. */
8
+ kind?: "external" | "internal";
9
+ /** Trailing icon from `@imfusion/web-ui/icons`, replacing the arrow `kind` picks, such as `Download` for a file. */
10
+ endGlyph?: IconComponent;
11
+ };
12
+ /**
13
+ * RichLink — a link as a whole row: an optional leading icon on a tinted tile, the label with an optional description
14
+ * line, and a trailing icon for where it leads. Draws no divider; stacked links get their spacing from the layout. Wrap it
15
+ * with TanStack Router's `createLink` to use it as a router link.
16
+ */
17
+ export declare function RichLink({ glyph, description, kind, endGlyph, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../types/meta';
2
+ export declare const richLinkMeta: ComponentMeta;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { Button, buttonMeta } from './components/button';
2
2
  export { ChipLink, chipLinkMeta } from './components/chip-link';
3
3
  export { CopyButton, copyButtonMeta } from './components/copy-button';
4
4
  export { IconButton, iconButtonMeta } from './components/icon-button';
5
+ export { RichLink, richLinkMeta } from './components/rich-link';
5
6
  export { Checkbox, checkboxMeta } from './components/checkbox';
6
7
  export { Field, fieldMeta } from './components/field';
7
8
  export { Fieldset, fieldsetMeta } from './components/fieldset';