@stackone/malachite 2.137.0 → 2.139.0

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/COMPONENTS.md CHANGED
@@ -12,6 +12,7 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
12
12
  - **`SurfaceExpandableRow`** — A row that opens to reveal a body (used as `Surface.ExpandableRow`), for a line that carries its own controls. Not `Accordion`, which puts its header inside the toggle button, so a header holding a dropdown or a second button would be invalid: here the row surface takes the click and a cell opts out by wrapping its controls in `ExpandableRow.Controls`, while the arrow stays a real button so the keyboard reaches it. That opt-out is explicit rather than sniffing the event target for an interactive ancestor, because a control rendering into a shadow root retargets the event to its host. `sticky` pins the row while its body scrolls, offset by `stickyTopOffset` for whatever is already pinned above it; it only pins while open, since a closed row has nothing to scroll past. _Key props:_ `header`, `children`, `expanded`, `onToggle`, `sticky`, `stickyTopOffset`, `divider`, `tone`, `aria-label`, `className`, `style`.
13
13
  - **`DisclosureArrow`** — The expand/collapse triangle disclosure UI shares (`Accordion`, `Surface.ExpandableRow`). Owns its colour states so they never drift between usages: `text-primary` when expanded, `text-placeholder` otherwise, and dark on hover inside a `group` ancestor — put `group` on the clickable header or row so that hover state activates. _Key props:_ `expanded`, `size`, `className`.
14
14
  - **`Card`** — Generic content card. `title` heads it, with dimmed `subtitle` text beside it and `extra` actions at the right of the title row. By default the title and subtitle shrink to whatever `extra` leaves them, and on a framed card are cut short with the full text in a tooltip; `wrapExtra` instead moves `extra` onto a line of its own under them, still at the right, when the title and subtitle together do not fit on one line beside it, and the header grows by that line. On a framed card `wrapExtra` also adds 6px above and below the title row, so an `extra` taller than 32px makes the header taller than 44px even when nothing wraps; use a small or medium control there. Keep text that changes width, such as a live save status, out of a wrapping `extra`, or the header jumps between one line and two as it changes. `variant="framed"` draws the detached `Table`’s frame instead: the title row sits on a grey frame and the children in a bordered section inside it, so a card above a table, such as a chart over a log list, reads as part of the same set. `tone` (`CardTone`, the same `neutral` | `warning` | `error` | `success` as `Modal`’s tray) paints a framed card’s frame in that tray colour, for a verdict card; `neutral` keeps the default grey frame. Tone is colour alone, so the title has to say the outcome. It is a type error on a default card. `dimmed`, `border`, `size`, `glassFooter` and `headerConfig` do not apply to a framed card. A framed card given no children is its title row alone, such as a question with its answer buttons in `extra`. _Key props:_ `variant` (`CardVariant`: `default` | `framed`), `tone` (`CardTone`, framed only), `title`, `subtitle`, `extra`, `wrapExtra`, `padding`, `footer`.
15
+ - **`TileGrid`** — Tiles side by side, as many to a row as fit at 140px each, wrapping below that: a short set of things to pick from, such as AI clients. Each `TileGrid.Tile` is a decorative `icon` such as a logo, then its `title`, then a `description` that wraps rather than being cut, with no action label: the whole tile is one button, or an anchor with `href` (an unsafe scheme is dropped), named by its title and described by its description. `variant="more"` is a dashed tile on the sunken ground for a "See all" that leads past the grid. Name it with `aria-label` or `aria-labelledby` to make it a group. For one card that opens more detail beside its text use `LinkCard`; to choose one option use `ChoiceGroup`. _Key props:_ `aria-label`, `aria-labelledby`, `className`. `TileGrid.Tile`: `title`, `description`, `icon`, `variant` (`TileVariant`: `default` | `more`), `onClick`, `href`, `className`.
15
16
  - **`LinkCard`** — A compact card that opens more about one thing elsewhere on the screen, such as another tab of a side panel: an optional icon, a title coloured by `tone`, a one-line description cut with an ellipsis, optional `trailing` content such as a level scale, and an accent “Open →”. The whole card is one button, or an anchor with `href` (an unsafe scheme such as `javascript:` is dropped); with neither `onClick` nor a safe `href` it is a static card without the action. Tone is colour alone, so the title has to say the outcome. For a resource in a new tab use `ResourceCard`; for a row in a list use `Surface.Row`. _Key props:_ `title`, `description`, `tone` (`LinkCardTone`: `neutral` | `success` | `warning` | `error`), `icon`, `trailing` (both decorative; `trailing` sits inside the control, so never interactive), `actionLabel` (default `Open`), `onClick`, `href`, `className`.
16
17
  - **`ResourceCard`** — A card pointing at a resource elsewhere, such as an SDK’s documentation: a muted icon tile, a title, a description clamped to two lines and a link that opens in a new tab. `ResourceCard.Header` is the icon, title and description on their own, all phrasing content, so a section that opens on them, such as an `Accordion` header, can use it inside its button. _Key props:_ `icon`, `title`, `description`, `href`, `linkLabel` (default `Documentation`), `titleAs` (`h3` | `h4`), `className`. `ResourceCard.Header`: `icon`, `title`, `description`; phrasing content only, so its title is never a heading.
17
18
  - **`SelectableCard`** — A card that is one option in a radio group — eyebrow, optional status tag, title, description, a count label and a top-right action slot. Use inside a `CardStrip`. Selection is controlled by the consumer: pass `selected`, which drives both the visual treatment and `aria-checked`. A selected card meets the sheet below the way a browser tab meets its toolbar — its bottom corners flare outward onto the strip’s rule — so its outline is one SVG path rather than borders, which would split into two lines at the tangent. `variant` picks the palette: `profile` (green), `library` (neutral) or `editing` (amber, for a profile with unsaved changes). `actions` stands in the card’s top-right corner, on the eyebrow row, and renders outside the control so a menu or icon button inside it stays clickable and keeps its own tab stop. Nothing else marks that corner: the flared outline, the tint and the green eyebrow already say which card is selected, so a radio there would only repeat them. `onDismiss` adds an x after `actions`, tinted like the eyebrow so it reads as part of the card — for discarding a draft card; `dismissDisabledReason` disables it and explains why in its tooltip. `isDefault` marks the card as the account default with a pin beside the title, named for assistive tech and tooltipped for everyone else — it belongs with the name it qualifies rather than among the actions, which read as things to press. `address` puts a one-line chip above the count for a copyable address such as a server URL: its `label` is cut short with an ellipsis, and its full `value` shows in a tooltip and is copied on click, without selecting the card. It takes the place of `description`, since the card has room for one or the other. For a row-shaped selectable use `Surface.Row` instead. _Key props:_ `value`, `title`, `titleIcon`, `isDefault`, `variant` (`profile` | `library` | `editing`), `eyebrow`, `status` (`label`, `type`, `tooltip`), `description`, `address` (`label`, `value`), `countLabel`, `actions`, `onDismiss` (`dismissLabel`, `dismissDisabledReason`), `selected`, `loading` (`loadingLabel`, `loadingHint`), `disabled`, `dimmed`, `onSelect`, `tabIndex`, `aria-label`, `className`, `style`.
@@ -135,7 +136,8 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
135
136
  - **`TimeBarChart`** — Counts per time bucket as stacked bars on a UTC axis by default, or a local display with `timeZone="local"`, the request-volume chart above a log list. Every bucket in `range` takes a slot whether or not it has data, so gaps read as gaps; a zone-less time string is read as UTC. Hover or arrow-key through buckets for a tooltip listing every series and the total; `highlightTime` shades the bucket holding a time from elsewhere on the page, such as the hovered log row. With `onRangeSelect`, dragging across bars reports the whole buckets covered, `end` exclusive so it goes straight back in as `range`, and whether the selection takes in the last bucket. `loading` dims bars already drawn rather than replacing them, and shows a spinner only when there is nothing to dim. Series colours follow the theme’s status tokens by `tone`, and failures always stack above successes whatever order `series` comes in, so position separates them where colour alone might not; a legend names them unless `legend={false}`. A visually hidden table carries the same numbers for screen readers. `timeZone` applies to axis labels, tooltips and the hidden table; stored instants, bucket boundaries and range selections remain UTC. Ticks stay on the UTC bars and only their labels change, so in a zone behind UTC a day or month bar is named by its local start, the previous date. Local tooltip times include their UTC offset. _Key props:_ `series` (`{ key, label, tone }[]`, stacked by tone with `error` on top; `TimeBarChartTone`: `success` | `error` | `neutral`), `buckets` (`{ start, values }[]`), `interval` (`{ unit, step }`; `TimeBarChartUnit`: `minute` | `hour` | `day` | `week` | `month`), `range` (`end` exclusive, as a selection reports it; at most 2,000 buckets, the newest kept), `TimeBarChartSize` (`small` | `medium` | `large`), `loading`, `error`, `errorTitle`, `errorSubTitle`, `valueLabel`, `legend`, `timeZone` (`utc` | `local`, default `utc`), `highlightTime`, `onRangeSelect`, `aria-label`, `aria-labelledby`, `className`, `style`.
136
137
  - **`TimeBarChartSwatch`** — The mark a `TimeBarChart` draws a series in, by its `tone`, for naming the series somewhere other than the chart's legend, such as a count beside the chart standing in for it. It matches the legend and the tooltip, and the bars draw the same colour at 40%; it follows the theme with them. Decorative: the label beside it does the naming. _Key props:_ `tone` (`TimeBarChartTone`).
137
138
  - **`Timeline`** — A vertical sequence of steps as an ordered list (`Timeline.Item`): a dot on a connecting line, a title, its timing at the right and a free-form body below, such as what happened to one API call. `titleCode` sets code after the title in the mono face as one phrase with it, such as `n8n called` then `Salesforce | Delete contact`. The dot is painted by `tone` from the theme’s text tokens (`neutral` is secondary text, the rest their status colours), or replaced by a decorative `marker` such as the caller’s logo. `icon` keeps the ring and draws a 12-14px glyph inside it in place of the dot, painted by `tone`, such as the call’s source type (MCP, API key, webhook); `skipped` beats `marker`, which beats `icon`. `stopped` puts an error badge (`stoppedLabel`, default "Stopped here") after the title of the step a flow ended on and paints its dot `error` unless a `tone` is set; the line ends at the last item. `meta` puts facts about a step in one wrapping row under its title, such as `calls` 2 and `status` 200, each label secondary and its value in the mono face, 18px apart, as a `dl`. `skipped` marks a step that never ran with a grey chevron in place of the dot; the title has to say so. For steps a person works through (complete, open, locked) use `StepList`. _Key props:_ `aria-label`, `aria-labelledby`; on `Timeline.Item`: `title`, `eyebrow` (a short label above the title naming the stage), `titleCode`, `time`, `tone` (`TimelineTone`: `neutral` | `info` | `success` | `warning` | `error`), `marker` (fills the 24px circle in place of the ringed dot), `icon` (a glyph inside the ring, painted by `tone`), `skipped`, `stopped`, `stoppedLabel`, `meta` (`TimelineMetaEntry[]`: `label`, `value`).
138
- - **`Table`** — Data table with columns, sizing, pagination and row selection. `column.align` places a column's header as well as its cells. What lands on the aligned edge is the last thing in the header row rather than the title: the sort caret on a sortable column, the info icon on one carrying `info` without a sorter. `headerVariant` picks the header layout, and only `inline` lines header and body up exactly, because both are cells of one `<table>`. `detached` builds them from flex rows (with table, row, columnheader and cell roles, so a clickable row is a focusable row named by its cells that Enter activates, as the inline table's is), where a sortable header cell is 32px narrower than a non-sortable one — its padding sits on the inner button rather than on the flex item — so its header cells sit 15–17px off their column at any alignment; reach for `inline` where exact alignment matters. Sorting is internal, so the array passed as `data` is not the order rendered once a column is sorted: `onVisibleOrderChange` reports the rows in render order — the whole of `data`, compared by `rowKey` so an equal order never re-fires — for a consumer stepping a master-detail view the way the user sees it. On the detached header, `title`, `subtitle` and `extra` add a title row on the frame above the column headers, the row a `framed` `Card` draws, and it docks with them under `stickyHeaderTop` (with `showHeader={false}` nothing docks and it scrolls with the rows). The inline header has no frame, so it draws none of the three and warns in development. _Key props:_ `TableColumns` (incl. `align`, and `titleShrinks` for a title that truncates itself in a fixed-width column, inline header only), `TableSize`, `TableType`, `TableRowSelection`, `TablePaginationPosition` (`pagination.position`, in antd naming: a pager on each edge named, aligned as named, 16px from the rows; bottom right by default), `rowDensity` (`default`; `compact`, about 30px rows; `snug`, 38px rows with 12px side padding and a tighter header), `headerVariant`, `title`, `subtitle`, `extra`, `onVisibleOrderChange`, `scrollHeight` (a height, or `"fill"` for the room left in its scroller once the content above and below it fits, so the page itself never scrolls), `loadingRowCount` (skeleton rows while `loading`, 1 to 50), `aria-label` and `aria-labelledby` (name the table in either layout, in its loading and error states too; a detached table with neither takes its name from its title row).
139
+ - **`Table`** — Data table with columns, sizing, pagination and row selection. `column.align` places a column's header as well as its cells. What lands on the aligned edge is the last thing in the header row rather than the title: the sort caret on a sortable column, the info icon on one carrying `info` without a sorter. `headerVariant` picks the header layout, and only `inline` lines header and body up exactly, because both are cells of one `<table>`. `detached` builds them from flex rows (with table, row, columnheader and cell roles, so a clickable row is a focusable row named by its cells that Enter activates, as the inline table's is), where a sortable header cell is 32px narrower than a non-sortable one — its padding sits on the inner button rather than on the flex item — so its header cells sit 15–17px off their column at any alignment; reach for `inline` where exact alignment matters. Sorting is internal, so the array passed as `data` is not the order rendered once a column is sorted: `onVisibleOrderChange` reports the rows in render order — the whole of `data`, compared by `rowKey` so an equal order never re-fires — for a consumer stepping a master-detail view the way the user sees it. On the detached header, `title`, `subtitle` and `extra` add a title row on the frame above the column headers, the row a `framed` `Card` draws, and it docks with them under `stickyHeaderTop` (with `showHeader={false}` nothing docks and it scrolls with the rows). The inline header has no frame, so it draws none of the three and warns in development. _Key props:_ `TableColumns` (incl. `align`, and `titleShrinks` for a title that truncates itself in a fixed-width column, inline header only), `TableSize`, `TableType`, `TableRowSelection`, `TablePaginationPosition` (`pagination.position`, in antd naming: a pager on each edge named, aligned as named, 16px from the rows; bottom right by default), `rowDensity` (`default`; `compact`, about 30px rows; `snug`, 38px rows with 12px side padding and a tighter header), `headerVariant`, `title`, `subtitle`, `extra`, `onVisibleOrderChange`, `scrollHeight` (a height, or `"fill"` for the room left in its scroller once the content above and below it fits, so the page itself never scrolls), `loadingRowCount` (skeleton rows while `loading`, 1 to 50), `expandable` (`TableExpandable`: parent rows that open onto child rows, controlled by `expandedRowKeys`, with a `summary` beside the parent; children follow their parent through a sort; right and left open and close a focused clickable parent, and its toggle button any parent; detached only), `rowThread` (`TableRowThread`: a gutter ahead of the first column joining the rows of a thread with a dot and a line, the dot a button when given `onClick`; `rowThreadTitle` names the column; detached only), `onReachEnd` (called as the last row nears view, for loading the next page; once per length of `data` while the end stays in view, called again after scrolling away and back, a reload through `loading` or an `error` clearing; never while `loading`, `loadingMore` or `error`, nor on an empty table, so pass `loadingMore` while a page loads; detached only) with `loadingMore` and `loadingMoreText` for the trailing row, `aria-label` and `aria-labelledby` (name the table in either layout, in its loading and error states too; a detached table with neither takes its name from its title row).
140
+ - **`TableColumnPicker`** — Chooses which of a table’s columns show: an outline `Columns` button opening a list of checkbox rows, one per column. Controlled by `visibleKeys`, which every change hands back in `columns` order with locked columns included, so the table keeps its order whatever order columns are switched on in. A column with `hideable: false` stays listed and checked, says it is always shown, and cannot be turned off. `onReset` adds a Reset action to the header for putting the defaults back. The consumer filters the `columns` it passes to `Table`. _Key props:_ `columns` (`TableColumnPickerColumn[]`: `key`, `title`, `hideable`), `visibleKeys`, `onVisibleKeysChange`, `onReset`, `label`.
139
141
  - **`Statistic`** — Displays a statistic value with a label; primary/secondary sizes. _Key props:_ `StatisticValueSize`.
140
142
  - **`Avatar`** — Logo/initial avatar. Renders the image when available, otherwise a coloured tile with the first letter of `name`, or with `fallback="placeholder"` the generic "no logo available" tile. Encapsulates the fallback colour. _Key props:_ `src`, `name`, `size`, `shape="square" | "circle"`, `fallback="initial" | "placeholder"`.
141
143
  - **`ZoomableImage`** — An image shown inline as a button that enlarges it, for a screenshot too detailed to read at its inline size. The thumbnail is shown at its own width up to the width of its container, never stretched, and stops at 240px tall, cropping a tall image to its top. The enlarged image sits on the scrim with no card, as large as the window allows at its own aspect ratio, up to its natural size, and a click anywhere or ESC closes it. The thumbnail is named `Enlarge image: <alt>` and the dialog is named by `title`, or by `alt` when `title` is missing or empty, so `alt` must be non-empty. `onError` reports a thumbnail that failed to load, so the caller can leave it out rather than show a broken image. The thumbnail loads lazily, so for one below the fold that report comes once it nears the viewport, not on render. Inside a `SidePanel` it enlarges over the panel and its aside instead, on a blurred veil; Escape, the veil or the close button closes it and leaves the panel open. _Key props:_ `src`, `alt`, `title`, `onError`.
@@ -1,65 +1,59 @@
1
- import { jsxs as c, Fragment as C, jsx as e } from "react/jsx-runtime";
2
- import { useId as R, useState as E } from "react";
1
+ import { jsxs as i, Fragment as R, jsx as e } from "react/jsx-runtime";
2
+ import { useId as E, useState as C } from "react";
3
3
  import L from "./CustomIcons/ForwardArrowIcon.js";
4
4
  import O from "./TruncatedTooltip.js";
5
- import b from "./Typography/Text.js";
5
+ import u from "./Typography/Text.js";
6
6
  import { getFontSize as A, getTextColor as F } from "./Typography/textStyles.js";
7
- import { ROW_HOVER as _ } from "./chromeStyles.js";
8
- import { devWarning as z } from "./devWarning.js";
9
- import { FOCUS_RING as W, isFocusVisible as D } from "./focusRing.js";
10
- import { isRenderableNode as g } from "./renderableNode.js";
11
- import { safeHref as V } from "./safeHref.js";
12
- const j = {
7
+ import { cardHref as _ } from "./cardHref.js";
8
+ import { ROW_HOVER as z } from "./chromeStyles.js";
9
+ import { FOCUS_RING as D, isFocusVisible as V } from "./focusRing.js";
10
+ import { isRenderableNode as b } from "./renderableNode.js";
11
+ const W = {
13
12
  neutral: "primary",
14
13
  success: "success",
15
14
  warning: "warning",
16
15
  error: "error"
17
- }, d = "flex w-full items-center gap-[12px] rounded-[var(--malachite-radius-10,10px)] border border-solid border-[var(--malachite-card-border,rgb(232,232,232))] bg-[var(--malachite-card-background,rgb(255,255,255))] px-[12px] py-[10px] text-start text-[var(--malachite-text-primary,rgb(10,10,10))] no-underline", v = `cursor-pointer ${_} hover:border-[var(--malachite-secondary-border-hover,rgb(186,186,186))] ${W}`, k = {
16
+ }, c = "flex w-full items-center gap-[12px] rounded-[var(--malachite-radius-10,10px)] border border-solid border-[var(--malachite-card-border,rgb(232,232,232))] bg-[var(--malachite-card-background,rgb(255,255,255))] px-[12px] py-[10px] text-start text-[var(--malachite-text-primary,rgb(10,10,10))] no-underline", g = `cursor-pointer ${z} hover:border-[var(--malachite-secondary-border-hover,rgb(186,186,186))] ${D}`, j = {
18
17
  color: F("secondary"),
19
18
  fontSize: A("xsmall")
20
- }, Z = ({
21
- title: $,
19
+ }, M = ({
20
+ title: w,
22
21
  description: r,
23
- tone: w = "neutral",
24
- icon: m,
25
- trailing: f,
26
- actionLabel: N = "Open",
22
+ tone: v = "neutral",
23
+ icon: d,
24
+ trailing: m,
25
+ actionLabel: $ = "Open",
27
26
  onClick: a,
28
- href: n,
29
- className: o = ""
27
+ href: N,
28
+ className: n = ""
30
29
  }) => {
31
- const t = V(n);
32
- n && !t && z(
33
- `LinkCard.href:${n}`,
34
- `LinkCard dropped the unsafe href "${n}"; without an onClick it is a static card.`
35
- );
36
- const y = !!(t || a), i = R(), p = `${i}-title`, h = `${i}-description`, x = `${i}-action`, [S, s] = E(!1), T = {
37
- onFocus: (I) => s(D(I.currentTarget, !1)),
38
- onPointerDown: () => s(!1),
39
- onBlur: () => s(!1)
40
- }, u = {
41
- "aria-labelledby": `${p} ${x}`,
42
- "aria-describedby": r ? h : void 0,
30
+ const t = _("LinkCard", "card", N), y = !!(t || a), o = E(), f = `${o}-title`, p = `${o}-description`, x = `${o}-action`, [S, l] = C(!1), T = {
31
+ onFocus: (I) => l(V(I.currentTarget, !1)),
32
+ onPointerDown: () => l(!1),
33
+ onBlur: () => l(!1)
34
+ }, h = {
35
+ "aria-labelledby": `${f} ${x}`,
36
+ "aria-describedby": r ? p : void 0,
43
37
  ...T
44
- }, l = /* @__PURE__ */ c(C, { children: [
45
- g(m) && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "flex flex-none items-center", children: m }),
46
- /* @__PURE__ */ c("span", { className: "flex min-w-0 flex-1 flex-col gap-[1px] leading-[15px]", children: [
47
- /* @__PURE__ */ e("span", { id: p, className: "flex min-w-0 [overflow-wrap:anywhere]", children: /* @__PURE__ */ e(
48
- b,
38
+ }, s = /* @__PURE__ */ i(R, { children: [
39
+ b(d) && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "flex flex-none items-center", children: d }),
40
+ /* @__PURE__ */ i("span", { className: "flex min-w-0 flex-1 flex-col gap-[1px] leading-[15px]", children: [
41
+ /* @__PURE__ */ e("span", { id: f, className: "flex min-w-0 [overflow-wrap:anywhere]", children: /* @__PURE__ */ e(
42
+ u,
49
43
  {
50
44
  size: "small",
51
45
  fontWeight: "bold",
52
- color: j[w],
46
+ color: W[v],
53
47
  className: "min-w-0 leading-[17px]",
54
- children: $
48
+ children: w
55
49
  }
56
50
  ) }),
57
51
  r && /* @__PURE__ */ e(
58
52
  "span",
59
53
  {
60
- id: h,
54
+ id: p,
61
55
  className: "flex min-w-0 [overflow-wrap:anywhere]",
62
- style: k,
56
+ style: j,
63
57
  children: S ? r : /* @__PURE__ */ e(
64
58
  O,
65
59
  {
@@ -73,9 +67,9 @@ const j = {
73
67
  }
74
68
  )
75
69
  ] }),
76
- g(f) && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "flex flex-none items-center", children: f }),
77
- y && /* @__PURE__ */ c("span", { className: "flex flex-none items-center gap-[3px] text-[var(--malachite-accent-foreground,rgb(2,122,66))]", children: [
78
- /* @__PURE__ */ e("span", { id: x, className: "flex", children: /* @__PURE__ */ e(b, { size: "xsmall", fontWeight: "semi-bold", color: "inherit", wrap: !1, children: N }) }),
70
+ b(m) && /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "flex flex-none items-center", children: m }),
71
+ y && /* @__PURE__ */ i("span", { className: "flex flex-none items-center gap-[3px] text-[var(--malachite-accent-foreground,rgb(2,122,66))]", children: [
72
+ /* @__PURE__ */ e("span", { id: x, className: "flex", children: /* @__PURE__ */ e(u, { size: "xsmall", fontWeight: "semi-bold", color: "inherit", wrap: !1, children: $ }) }),
79
73
  /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "flex", children: /* @__PURE__ */ e(L, { size: 12 }) })
80
74
  ] })
81
75
  ] });
@@ -84,23 +78,23 @@ const j = {
84
78
  {
85
79
  href: t,
86
80
  onClick: a,
87
- ...u,
88
- className: `${d} ${v} ${o}`,
89
- children: l
81
+ ...h,
82
+ className: `${c} ${g} ${n}`,
83
+ children: s
90
84
  }
91
85
  ) : a ? /* @__PURE__ */ e(
92
86
  "button",
93
87
  {
94
88
  type: "button",
95
89
  onClick: a,
96
- ...u,
97
- className: `m-0 appearance-none font-[inherit] ${d} ${v} ${o}`,
98
- children: l
90
+ ...h,
91
+ className: `m-0 appearance-none font-[inherit] ${c} ${g} ${n}`,
92
+ children: s
99
93
  }
100
- ) : /* @__PURE__ */ e("div", { className: `${d} ${o}`, children: l });
94
+ ) : /* @__PURE__ */ e("div", { className: `${c} ${n}`, children: s });
101
95
  };
102
96
  export {
103
- Z as LinkCard,
104
- Z as default
97
+ M as LinkCard,
98
+ M as default
105
99
  };
106
100
  //# sourceMappingURL=LinkCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkCard.js","sources":["../../src/components/LinkCard.tsx"],"sourcesContent":["import type React from 'react';\nimport { useId, useState } from 'react';\nimport ForwardArrowIcon from './CustomIcons/ForwardArrowIcon';\nimport TruncatedTooltip from './TruncatedTooltip';\nimport Text from './Typography/Text';\nimport { getFontSize, getTextColor } from './Typography/textStyles';\nimport { ROW_HOVER } from './chromeStyles';\nimport { devWarning } from './devWarning';\nimport { FOCUS_RING, isFocusVisible } from './focusRing';\nimport { isRenderableNode } from './renderableNode';\nimport { safeHref } from './safeHref';\n\nexport type LinkCardTone = 'neutral' | 'success' | 'warning' | 'error';\n\nexport interface LinkCardProps {\n title: string;\n /** One line under the title; shown in full on hover, or when a clickable card takes keyboard focus. */\n description?: string;\n /** Colours the title. */\n tone?: LinkCardTone;\n /**\n * Decorative, before the title. Paths are filled with `currentColor`, so colour one through\n * `color`, as `Hexagon` does; a path keeping its own `fill` needs `data-malachite-shape`.\n */\n icon?: React.ReactNode;\n /** Decorative content before the action, e.g. a level scale. Must not be interactive. */\n trailing?: React.ReactNode;\n actionLabel?: string;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n /** Renders a link instead of a button; unsafe schemes are dropped. */\n href?: string;\n className?: string;\n}\n\nconst TITLE_COLOR = {\n neutral: 'primary',\n success: 'success',\n warning: 'warning',\n error: 'error',\n} as const;\n\nconst CARD_CLASSES =\n 'flex w-full items-center gap-[12px] rounded-[var(--malachite-radius-10,10px)] border border-solid border-[var(--malachite-card-border,rgb(232,232,232))] bg-[var(--malachite-card-background,rgb(255,255,255))] px-[12px] py-[10px] text-start text-[var(--malachite-text-primary,rgb(10,10,10))] no-underline';\n\nconst INTERACTIVE_CLASSES = `cursor-pointer ${ROW_HOVER} hover:border-[var(--malachite-secondary-border-hover,rgb(186,186,186))] ${FOCUS_RING}`;\n\nconst DESCRIPTION_STYLE: React.CSSProperties = {\n color: getTextColor('secondary'),\n fontSize: getFontSize('xsmall'),\n};\n\n/** A compact card that opens more detail elsewhere, such as another tab of a panel. */\nconst LinkCard: React.FC<LinkCardProps> = ({\n title,\n description,\n tone = 'neutral',\n icon,\n trailing,\n actionLabel = 'Open',\n onClick,\n href: rawHref,\n className = '',\n}) => {\n const href = safeHref(rawHref);\n if (rawHref && !href) {\n devWarning(\n `LinkCard.href:${rawHref}`,\n `LinkCard dropped the unsafe href \"${rawHref}\"; without an onClick it is a static card.`,\n );\n }\n const interactive = Boolean(href || onClick);\n const id = useId();\n const titleId = `${id}-title`;\n const descriptionId = `${id}-description`;\n const actionId = `${id}-action`;\n const [revealed, setRevealed] = useState(false);\n const reveal = {\n onFocus: (event: React.FocusEvent<HTMLElement>) =>\n setRevealed(isFocusVisible(event.currentTarget, false)),\n onPointerDown: () => setRevealed(false),\n onBlur: () => setRevealed(false),\n };\n const labelling = {\n 'aria-labelledby': `${titleId} ${actionId}`,\n 'aria-describedby': description ? descriptionId : undefined,\n ...reveal,\n };\n const body = (\n <>\n {isRenderableNode(icon) && (\n <span aria-hidden=\"true\" className=\"flex flex-none items-center\">\n {icon}\n </span>\n )}\n <span className=\"flex min-w-0 flex-1 flex-col gap-[1px] leading-[15px]\">\n <span id={titleId} className=\"flex min-w-0 [overflow-wrap:anywhere]\">\n <Text\n size=\"small\"\n fontWeight=\"bold\"\n color={TITLE_COLOR[tone]}\n className=\"min-w-0 leading-[17px]\"\n >\n {title}\n </Text>\n </span>\n {description && (\n <span\n id={descriptionId}\n className=\"flex min-w-0 [overflow-wrap:anywhere]\"\n style={DESCRIPTION_STYLE}\n >\n {revealed ? (\n description\n ) : (\n <TruncatedTooltip\n text={description}\n delay={1}\n triggerAs=\"span\"\n describesTrigger={false}\n >\n {description}\n </TruncatedTooltip>\n )}\n </span>\n )}\n </span>\n {isRenderableNode(trailing) && (\n <span aria-hidden=\"true\" className=\"flex flex-none items-center\">\n {trailing}\n </span>\n )}\n {interactive && (\n <span className=\"flex flex-none items-center gap-[3px] text-[var(--malachite-accent-foreground,rgb(2,122,66))]\">\n <span id={actionId} className=\"flex\">\n <Text size=\"xsmall\" fontWeight=\"semi-bold\" color=\"inherit\" wrap={false}>\n {actionLabel}\n </Text>\n </span>\n <span aria-hidden=\"true\" className=\"flex\">\n <ForwardArrowIcon size={12} />\n </span>\n </span>\n )}\n </>\n );\n if (href) {\n return (\n <a\n href={href}\n onClick={onClick}\n {...labelling}\n className={`${CARD_CLASSES} ${INTERACTIVE_CLASSES} ${className}`}\n >\n {body}\n </a>\n );\n }\n if (onClick) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n {...labelling}\n className={`m-0 appearance-none font-[inherit] ${CARD_CLASSES} ${INTERACTIVE_CLASSES} ${className}`}\n >\n {body}\n </button>\n );\n }\n return <div className={`${CARD_CLASSES} ${className}`}>{body}</div>;\n};\n\nexport default LinkCard;\nexport { LinkCard };\n"],"names":["TITLE_COLOR","CARD_CLASSES","INTERACTIVE_CLASSES","ROW_HOVER","FOCUS_RING","DESCRIPTION_STYLE","getTextColor","getFontSize","LinkCard","title","description","tone","icon","trailing","actionLabel","onClick","rawHref","className","href","safeHref","devWarning","interactive","id","useId","titleId","descriptionId","actionId","revealed","setRevealed","useState","reveal","event","isFocusVisible","labelling","body","jsxs","Fragment","isRenderableNode","jsx","Text","TruncatedTooltip","ForwardArrowIcon"],"mappings":";;;;;;;;;;;AAkCA,MAAMA,IAAc;AAAA,EAChB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX,GAEMC,IACF,kTAEEC,IAAsB,kBAAkBC,CAAS,4EAA4EC,CAAU,IAEvIC,IAAyC;AAAA,EAC3C,OAAOC,EAAa,WAAW;AAAA,EAC/B,UAAUC,EAAY,QAAQ;AAClC,GAGMC,IAAoC,CAAC;AAAA,EACvC,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,MAAMC;AAAA,EACN,WAAAC,IAAY;AAChB,MAAM;AACF,QAAMC,IAAOC,EAASH,CAAO;AAC7B,EAAIA,KAAW,CAACE,KACZE;AAAA,IACI,iBAAiBJ,CAAO;AAAA,IACxB,qCAAqCA,CAAO;AAAA,EAAA;AAGpD,QAAMK,IAAc,GAAQH,KAAQH,IAC9BO,IAAKC,EAAA,GACLC,IAAU,GAAGF,CAAE,UACfG,IAAgB,GAAGH,CAAE,gBACrBI,IAAW,GAAGJ,CAAE,WAChB,CAACK,GAAUC,CAAW,IAAIC,EAAS,EAAK,GACxCC,IAAS;AAAA,IACX,SAAS,CAACC,MACNH,EAAYI,EAAeD,EAAM,e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ACa,GAAA,EAAK,MAAK,UAAS,YAAW,aAAY,OAAM,WAAU,MAAM,IAC5D,aACL,GACJ;AAAA,MACA,gBAAAD,EAAC,QAAA,EAAK,eAAY,QAAO,WAAU,QAC/B,UAAA,gBAAAA,EAACG,GAAA,EAAiB,MAAM,GAAA,CAAI,EAAA,CAChC;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GAER;AAEJ,SAAIvB,IAEI,gBAAAoB;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAApB;AAAA,MACA,SAAAH;AAAA,MACC,GAAGkB;AAAA,MACJ,WAAW,GAAGhC,CAAY,IAAIC,CAAmB,IAAIe,CAAS;AAAA,MAE7D,UAAAiB;AAAA,IAAA;AAAA,EAAA,IAITnB,IAEI,gBAAAuB;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,SAAAvB;AAAA,MACC,GAAGkB;AAAA,MACJ,WAAW,sCAAsChC,CAAY,IAAIC,CAAmB,IAAIe,CAAS;AAAA,MAEhG,UAAAiB;AAAA,IAAA;AAAA,EAAA,IAIN,gBAAAI,EAAC,SAAI,WAAW,GAAGrC,CAAY,IAAIgB,CAAS,IAAK,UAAAiB,EAAA,CAAK;AACjE;"}
1
+ {"version":3,"file":"LinkCard.js","sources":["../../src/components/LinkCard.tsx"],"sourcesContent":["import type React from 'react';\nimport { useId, useState } from 'react';\nimport ForwardArrowIcon from './CustomIcons/ForwardArrowIcon';\nimport TruncatedTooltip from './TruncatedTooltip';\nimport Text from './Typography/Text';\nimport { getFontSize, getTextColor } from './Typography/textStyles';\nimport { cardHref } from './cardHref';\nimport { ROW_HOVER } from './chromeStyles';\nimport { FOCUS_RING, isFocusVisible } from './focusRing';\nimport { isRenderableNode } from './renderableNode';\n\nexport type LinkCardTone = 'neutral' | 'success' | 'warning' | 'error';\n\nexport interface LinkCardProps {\n title: string;\n /** One line under the title; shown in full on hover, or when a clickable card takes keyboard focus. */\n description?: string;\n /** Colours the title. */\n tone?: LinkCardTone;\n /**\n * Decorative, before the title. Paths are filled with `currentColor`, so colour one through\n * `color`, as `Hexagon` does; a path keeping its own `fill` needs `data-malachite-shape`.\n */\n icon?: React.ReactNode;\n /** Decorative content before the action, e.g. a level scale. Must not be interactive. */\n trailing?: React.ReactNode;\n actionLabel?: string;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n /** Renders a link instead of a button; unsafe schemes are dropped. */\n href?: string;\n className?: string;\n}\n\nconst TITLE_COLOR = {\n neutral: 'primary',\n success: 'success',\n warning: 'warning',\n error: 'error',\n} as const;\n\nconst CARD_CLASSES =\n 'flex w-full items-center gap-[12px] rounded-[var(--malachite-radius-10,10px)] border border-solid border-[var(--malachite-card-border,rgb(232,232,232))] bg-[var(--malachite-card-background,rgb(255,255,255))] px-[12px] py-[10px] text-start text-[var(--malachite-text-primary,rgb(10,10,10))] no-underline';\n\nconst INTERACTIVE_CLASSES = `cursor-pointer ${ROW_HOVER} hover:border-[var(--malachite-secondary-border-hover,rgb(186,186,186))] ${FOCUS_RING}`;\n\nconst DESCRIPTION_STYLE: React.CSSProperties = {\n color: getTextColor('secondary'),\n fontSize: getFontSize('xsmall'),\n};\n\n/** A compact card that opens more detail elsewhere, such as another tab of a panel. */\nconst LinkCard: React.FC<LinkCardProps> = ({\n title,\n description,\n tone = 'neutral',\n icon,\n trailing,\n actionLabel = 'Open',\n onClick,\n href: rawHref,\n className = '',\n}) => {\n const href = cardHref('LinkCard', 'card', rawHref);\n const interactive = Boolean(href || onClick);\n const id = useId();\n const titleId = `${id}-title`;\n const descriptionId = `${id}-description`;\n const actionId = `${id}-action`;\n const [revealed, setRevealed] = useState(false);\n const reveal = {\n onFocus: (event: React.FocusEvent<HTMLElement>) =>\n setRevealed(isFocusVisible(event.currentTarget, false)),\n onPointerDown: () => setRevealed(false),\n onBlur: () => setRevealed(false),\n };\n const labelling = {\n 'aria-labelledby': `${titleId} ${actionId}`,\n 'aria-describedby': description ? descriptionId : undefined,\n ...reveal,\n };\n const body = (\n <>\n {isRenderableNode(icon) && (\n <span aria-hidden=\"true\" className=\"flex flex-none items-center\">\n {icon}\n </span>\n )}\n <span className=\"flex min-w-0 flex-1 flex-col gap-[1px] leading-[15px]\">\n <span id={titleId} className=\"flex min-w-0 [overflow-wrap:anywhere]\">\n <Text\n size=\"small\"\n fontWeight=\"bold\"\n color={TITLE_COLOR[tone]}\n className=\"min-w-0 leading-[17px]\"\n >\n {title}\n </Text>\n </span>\n {description && (\n <span\n id={descriptionId}\n className=\"flex min-w-0 [overflow-wrap:anywhere]\"\n style={DESCRIPTION_STYLE}\n >\n {revealed ? (\n description\n ) : (\n <TruncatedTooltip\n text={description}\n delay={1}\n triggerAs=\"span\"\n describesTrigger={false}\n >\n {description}\n </TruncatedTooltip>\n )}\n </span>\n )}\n </span>\n {isRenderableNode(trailing) && (\n <span aria-hidden=\"true\" className=\"flex flex-none items-center\">\n {trailing}\n </span>\n )}\n {interactive && (\n <span className=\"flex flex-none items-center gap-[3px] text-[var(--malachite-accent-foreground,rgb(2,122,66))]\">\n <span id={actionId} className=\"flex\">\n <Text size=\"xsmall\" fontWeight=\"semi-bold\" color=\"inherit\" wrap={false}>\n {actionLabel}\n </Text>\n </span>\n <span aria-hidden=\"true\" className=\"flex\">\n <ForwardArrowIcon size={12} />\n </span>\n </span>\n )}\n </>\n );\n if (href) {\n return (\n <a\n href={href}\n onClick={onClick}\n {...labelling}\n className={`${CARD_CLASSES} ${INTERACTIVE_CLASSES} ${className}`}\n >\n {body}\n </a>\n );\n }\n if (onClick) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n {...labelling}\n className={`m-0 appearance-none font-[inherit] ${CARD_CLASSES} ${INTERACTIVE_CLASSES} ${className}`}\n >\n {body}\n </button>\n );\n }\n return <div className={`${CARD_CLASSES} ${className}`}>{body}</div>;\n};\n\nexport default LinkCard;\nexport { LinkCard };\n"],"names":["TITLE_COLOR","CARD_CLASSES","INTERACTIVE_CLASSES","ROW_HOVER","FOCUS_RING","DESCRIPTION_STYLE","getTextColor","getFontSize","LinkCard","title","description","tone","icon","trailing","actionLabel","onClick","rawHref","className","href","cardHref","interactive","id","useId","titleId","descriptionId","actionId","revealed","setRevealed","useState","reveal","event","isFocusVisible","labelling","body","jsxs","Fragment","isRenderableNode","jsx","Text","TruncatedTooltip","ForwardArrowIcon"],"mappings":";;;;;;;;;;AAiCA,MAAMA,IAAc;AAAA,EAChB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX,GAEMC,IACF,kTAEEC,IAAsB,kBAAkBC,CAAS,4EAA4EC,CAAU,IAEvIC,IAAyC;AAAA,EAC3C,OAAOC,EAAa,WAAW;AAAA,EAC/B,UAAUC,EAAY,QAAQ;AAClC,GAGMC,IAAoC,CAAC;AAAA,EACvC,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,MAAMC;AAAA,EACN,WAAAC,IAAY;AAChB,MAAM;AACF,QAAMC,IAAOC,EAAS,YAAY,QAAQH,CAAO,GAC3CI,IAAc,GAAQF,KAAQH,IAC9BM,IAAKC,EAAA,GACLC,IAAU,GAAGF,CAAE,UACfG,IAAgB,GAAGH,CAAE,gBACrBI,IAAW,GAAGJ,CAAE,WAChB,CAACK,GAAUC,CAAW,IAAIC,EAAS,EAAK,GACxCC,IAAS;AAAA,IACX,SAAS,CAACC,MACNH,EAAYI,EAAeD,EAAM,eAAe,EAAK,CAAC;AAAA,IAC1D,eAAe,MAAMH,EAAY,EAAK;AAAA,IACtC,QAAQ,MAAMA,EAAY,EAAK;AAAA,EAAA,GAE7BK,IAAY;AAAA,IACd,mBAAmB,GAAGT,CAAO,IAAIE,CAAQ;AAAA,IACzC,oBAAoBf,IAAcc,IAAgB;AAAA,IAClD,GAAGK;AAAA,EAAA,GAEDI,IACF,gBAAAC,EAAAC,GAAA,E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