@usableapp/cardds 0.7.104 → 0.7.105

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.
@@ -14,5 +14,5 @@ export interface JourneyBadgeProps extends ComponentProps<'span'> {
14
14
  * three beside a two-line title (day · number · month). Write it as the head's last child, after the title block */
15
15
  stretch?: boolean;
16
16
  }
17
- /** JourneyBadge — a tiny label over a big value: gate, seat, date, rating. `stretch`: a date in a head that takes its form from the title's height. */
17
+ /** JourneyBadge — a tiny label over a big value: gate, seat, date, rating. `stretch`: a date in a head that takes its form from the title's height, no taller than its own three lines. */
18
18
  export declare function JourneyBadge({ label, value, sub, plain, corner, stretch, className, ...rest }: JourneyBadgeProps): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cx } from '../cx.js';
3
- /** JourneyBadge — a tiny label over a big value: gate, seat, date, rating. `stretch`: a date in a head that takes its form from the title's height. */
3
+ /** JourneyBadge — a tiny label over a big value: gate, seat, date, rating. `stretch`: a date in a head that takes its form from the title's height, no taller than its own three lines. */
4
4
  export function JourneyBadge({ label, value, sub, plain, corner, stretch, className, ...rest }) {
5
5
  return (_jsxs("span", { className: cx('tile-badge', plain && 'tile-badge--plain', corner && 'tile-badge--corner', stretch && 'tile-badge--stretch', className), ...rest, children: [_jsx("span", { className: "tile-badge__label", children: label }), _jsx("span", { className: "tile-badge__value", children: value }), sub != null && _jsx("span", { className: "tile-badge__label", children: sub })] }));
6
6
  }
package/docs/reference.md CHANGED
@@ -497,9 +497,11 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
497
497
  - **A card is head · content · foot.**
498
498
  - **Head** (`.card__head`): the heading on the left; hints, actions or a
499
499
  more-menu — the contextual info — at the far right. With nothing at
500
- the far right it runs all the way across. The heading wraps freely —
501
- no line budget, no squeeze, no clamp (Lh 2026-09-16): a height rule on
502
- words only distorts them. The head is FLAT markup — heading, then an
500
+ the far right it runs all the way across. The heading wraps, no
501
+ squeeze, up to three lines and is cut there with an ellipsis (Lh
502
+ 2026-10-21; `--card-head-title-lines`, default 3). A date
503
+ (`JourneyBadge stretch`) beside it is as tall as the title block up to
504
+ its own three lines, at the head's top. The head is FLAT markup — heading, then an
503
505
  optional caption as a span, then the far-right thing; no
504
506
  wrapper element, no `<p>`: the head wraps, the caption takes the row
505
507
  below (`order`), the gap tokens do the rest (Lh 2026-09-16).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usableapp/cardds",
3
- "version": "0.7.104",
3
+ "version": "0.7.105",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev), tests/ measures the geometry.",