@newtone-dev/ui-react-web 0.22.0 → 0.24.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.
@@ -34,8 +34,17 @@
34
34
  a presentational hint, so this is what makes the circle the caller was promised.
35
35
  adenario_website measured 108x256, 56x128 and 240x480 on 2026-09-15. */
36
36
  block-size: auto;
37
- aspect-ratio: 1;
38
- border-radius: 50%;
37
+
38
+ /* THE SHAPE AND THE CORNER ARE PROPS TOO, from `ratio` and `radius`: a cut-out portrait on this
39
+ plate is this component in every shape, not only in a circle. `1` and `50%` are the circle,
40
+ which is what every call site before them rendered and still renders.
41
+
42
+ A RATIO WITH NO RADIUS IS SQUARE, AND avatar.tsx IS WHERE THAT IS DECIDED: `50%` on a 2:3 box
43
+ is an ellipse, a fallback cannot tell a rectangle from a circle, so the component writes `0`
44
+ when it is handed a shape and not a corner. The `50%` here is reached only by something already
45
+ square. components/avatar.md, *`ratio` and `radius`*. */
46
+ aspect-ratio: var(--newtone-avatar-ratio, 1);
47
+ border-radius: var(--newtone-avatar-radius, 50%);
39
48
  /* TWO TOKENS AND THE GRADIENT IS DRAWN HERE, from 2026-10-01. A themed colour is one step, so a
40
49
  gradient cannot be one token: the ends are `avatar.gradient-{start,end}.fill`. Top to bottom
41
50
  is 180deg; Joshua asked for it turned 30 degrees counterclockwise, and CSS counts clockwise,
@@ -25,30 +25,52 @@ export interface AvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, '
25
25
  * avatar.md.
26
26
  */
27
27
  hoverSrc?: string;
28
+ /**
29
+ * The shape -- any CSS `aspect-ratio`, `1` when omitted, which with the default corner is the
30
+ * circle. A cut-out portrait on this plate is this component in every shape; the plate is what it
31
+ * is for, and the plate does not care what outline was cut around it. A string, like `size`, so a
32
+ * site's own `var()` survives. Since 2026-10-02, issue 329; avatar.md.
33
+ */
34
+ ratio?: string;
35
+ /**
36
+ * The corner -- any CSS `border-radius`, `50%` for a circle and **`0` as soon as a `ratio`
37
+ * arrives**, because `50%` on a 2:3 box is an ellipse and no fallback can tell the two apart. It
38
+ * is not a token: the core scale is 4 and 8, and the one caller that asked for this wants 24, so a
39
+ * default off the scale would be a corner nobody asked for. Since 2026-10-02, issue 329;
40
+ * avatar.md.
41
+ */
42
+ radius?: string;
28
43
  }
29
44
  /**
30
- * A person, in a circle, on a plate.
45
+ * A person, on a plate -- in a circle unless a `ratio` says otherwise.
31
46
  *
32
47
  * **The plate is the point and it is why this is not an `<img>` with a class.** A portrait is
33
- * usually a photograph with a transparent or near-white edge, and a circle cut out of one sits on
34
- * nothing unless something is behind it. `avatar.ground` is `role.surface.secondary` -- a recess in
35
- * the current surface, resolved per theme and per mode -- so the plate follows the page into dark
36
- * without the caller naming a second colour. That is exactly what three hand-written copies in
37
- * the consuming site were doing by hand and what none of them did for dark.
48
+ * usually a photograph with a transparent or near-white edge, and a shape cut out of one sits on
49
+ * nothing unless something is behind it. The plate is `avatar.gradient-start.fill` and
50
+ * `avatar.gradient-end.fill` -- two theme maps, so it resolves per theme, per mode and per elevation
51
+ * -- so it follows the page into dark without the caller naming a second colour. That is exactly what
52
+ * three hand-written copies in the consuming site were doing by hand and what none of them did for
53
+ * dark. (It was one `avatar.fill` until 2026-10-01, when the ground became a gradient Joshua can tune
54
+ * in the studio; a themed colour is one step, so a gradient cannot be one token.)
55
+ *
56
+ * **BECAUSE THE PLATE IS THE POINT, THE SHAPE IS A KNOB AND NOT A PREMISE.** `ratio` and `radius`,
57
+ * from 2026-10-02: a cut-out portrait on this ground is this component in every shape, and a consumer
58
+ * whose rectangle re-drew the gradient by hand is why -- issue 329. Both default to the circle.
38
59
  *
39
60
  * ---- the size is the caller's, and that was settled by the third call site ----
40
61
  *
41
- * **There is no `size` prop, and the first draft had one.** It offered `sm` / `md` / `lg` at 3.5rem,
62
+ * **`size` is a prop from 2026-09-26, and the first draft's version of it was a ladder.** It offered
63
+ * `sm` / `md` / `lg` at 3.5rem,
42
64
  * 7rem and 15rem, sized from two of the three call sites this arrived from. The third is
43
65
  * `clamp(5rem, 28%, 7rem)` -- a portrait that gives way as its card narrows -- and it is not a rung
44
66
  * on any ladder those two could have implied. **A ladder proposed at two would have been wrong about
45
67
  * its own shape**, which is exactly what governance/code/propose-the-system-at-the-third-repetition.md
46
68
  * says the third occurrence is for.
47
69
  *
48
- * So the diameter is `--newtone-avatar-size`, read with a 7rem default and declared by the caller on
49
- * an element it already owns. **That is `--newtone-card-grid-min`'s shape, and this is its third
50
- * use**: a custom property does not have to reach an element to be read by it, so all three call
51
- * sites keep their own exact value and none of them passes anything.
70
+ * So the measure is `--newtone-avatar-size`, read with a 7rem default and written inline from the
71
+ * prop. **That is `--newtone-card-grid-min`'s shape**, and `ratio` and `radius` are its second and
72
+ * third use on this component: a CSS string, so a `clamp()`, a `calc()` or a site's own `var()`
73
+ * survives the move, and every call site keeps its own exact value.
52
74
  *
53
75
  * **What it deliberately does not have is a corner marker.** A consuming site's own portrait component
54
76
  * puts a country flag on one, hardcoding a path into that app's public folder, and that is the
@@ -56,5 +78,5 @@ export interface AvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, '
56
78
  * Nothing here has a slot for one. The day a second site wants a marker, what crosses is the slot,
57
79
  * not the flag.
58
80
  */
59
- export declare function Avatar({ src, alt, size, hoverSrc, className, style, ...rest }: AvatarProps): import("react").JSX.Element;
81
+ export declare function Avatar({ src, alt, size, hoverSrc, ratio, radius, className, style, ...rest }: AvatarProps): import("react").JSX.Element;
60
82
  //# sourceMappingURL=avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE7D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACjF;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAmE1F"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE7D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACjF;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,MAAM,CAAC,EACnB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACV,EAAE,WAAW,+BAiFb"}
@@ -1,27 +1,34 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /**
3
- * A person, in a circle, on a plate.
3
+ * A person, on a plate -- in a circle unless a `ratio` says otherwise.
4
4
  *
5
5
  * **The plate is the point and it is why this is not an `<img>` with a class.** A portrait is
6
- * usually a photograph with a transparent or near-white edge, and a circle cut out of one sits on
7
- * nothing unless something is behind it. `avatar.ground` is `role.surface.secondary` -- a recess in
8
- * the current surface, resolved per theme and per mode -- so the plate follows the page into dark
9
- * without the caller naming a second colour. That is exactly what three hand-written copies in
10
- * the consuming site were doing by hand and what none of them did for dark.
6
+ * usually a photograph with a transparent or near-white edge, and a shape cut out of one sits on
7
+ * nothing unless something is behind it. The plate is `avatar.gradient-start.fill` and
8
+ * `avatar.gradient-end.fill` -- two theme maps, so it resolves per theme, per mode and per elevation
9
+ * -- so it follows the page into dark without the caller naming a second colour. That is exactly what
10
+ * three hand-written copies in the consuming site were doing by hand and what none of them did for
11
+ * dark. (It was one `avatar.fill` until 2026-10-01, when the ground became a gradient Joshua can tune
12
+ * in the studio; a themed colour is one step, so a gradient cannot be one token.)
13
+ *
14
+ * **BECAUSE THE PLATE IS THE POINT, THE SHAPE IS A KNOB AND NOT A PREMISE.** `ratio` and `radius`,
15
+ * from 2026-10-02: a cut-out portrait on this ground is this component in every shape, and a consumer
16
+ * whose rectangle re-drew the gradient by hand is why -- issue 329. Both default to the circle.
11
17
  *
12
18
  * ---- the size is the caller's, and that was settled by the third call site ----
13
19
  *
14
- * **There is no `size` prop, and the first draft had one.** It offered `sm` / `md` / `lg` at 3.5rem,
20
+ * **`size` is a prop from 2026-09-26, and the first draft's version of it was a ladder.** It offered
21
+ * `sm` / `md` / `lg` at 3.5rem,
15
22
  * 7rem and 15rem, sized from two of the three call sites this arrived from. The third is
16
23
  * `clamp(5rem, 28%, 7rem)` -- a portrait that gives way as its card narrows -- and it is not a rung
17
24
  * on any ladder those two could have implied. **A ladder proposed at two would have been wrong about
18
25
  * its own shape**, which is exactly what governance/code/propose-the-system-at-the-third-repetition.md
19
26
  * says the third occurrence is for.
20
27
  *
21
- * So the diameter is `--newtone-avatar-size`, read with a 7rem default and declared by the caller on
22
- * an element it already owns. **That is `--newtone-card-grid-min`'s shape, and this is its third
23
- * use**: a custom property does not have to reach an element to be read by it, so all three call
24
- * sites keep their own exact value and none of them passes anything.
28
+ * So the measure is `--newtone-avatar-size`, read with a 7rem default and written inline from the
29
+ * prop. **That is `--newtone-card-grid-min`'s shape**, and `ratio` and `radius` are its second and
30
+ * third use on this component: a CSS string, so a `clamp()`, a `calc()` or a site's own `var()`
31
+ * survives the move, and every call site keeps its own exact value.
25
32
  *
26
33
  * **What it deliberately does not have is a corner marker.** A consuming site's own portrait component
27
34
  * puts a country flag on one, hardcoding a path into that app's public folder, and that is the
@@ -29,10 +36,27 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
29
36
  * Nothing here has a slot for one. The day a second site wants a marker, what crosses is the slot,
30
37
  * not the flag.
31
38
  */
32
- export function Avatar({ src, alt, size, hoverSrc, className, style, ...rest }) {
33
- // The diameter, written here since 2026-09-26 rather than declared by the caller's sheet: a
34
- // consuming site declares no `--newtone-*` property (issue 201).
35
- const sized = size === undefined ? style : { '--newtone-avatar-size': size, ...style };
39
+ export function Avatar({ src, alt, size, hoverSrc, ratio, radius, className, style, ...rest }) {
40
+ // The measure, the shape and the corner, each written here since 2026-09-26, 2026-10-02 and
41
+ // 2026-10-02 rather than declared by the caller's sheet: a consuming site declares no
42
+ // `--newtone-*` property (issue 201). Each is the property avatar.css already reads.
43
+ //
44
+ // A RATIO WITH NO RADIUS IS SQUARE, AND THIS LINE IS THE WHOLE OF THAT DECISION. `border-radius:
45
+ // 50%` on a 2:3 box is an ellipse; the sheet's fallback cannot tell a rectangle from a circle,
46
+ // because a custom property has no conditions. So a shape given without a corner gets `0`, and
47
+ // the sheet's `50%` is reached only by something that is already square. avatar.md, *`ratio` and
48
+ // `radius`*.
49
+ const corner = radius ?? (ratio === undefined ? undefined : '0');
50
+ const vars = {};
51
+ if (size !== undefined)
52
+ vars['--newtone-avatar-size'] = size;
53
+ if (ratio !== undefined)
54
+ vars['--newtone-avatar-ratio'] = ratio;
55
+ if (corner !== undefined)
56
+ vars['--newtone-avatar-radius'] = corner;
57
+ // OMITTING EVERY PROP WRITES NO `style` ATTRIBUTE AT ALL, which is what keeps a call site that
58
+ // has never heard of these props rendering the markup it rendered before.
59
+ const sized = Object.keys(vars).length === 0 ? style : { ...vars, ...style };
36
60
  // NO PICTURE IS A SPAN AND NOT AN `<img>` WITHOUT A SOURCE: each engine draws a sourceless
37
61
  // `<img>` its own way -- an empty box, a broken-image glyph, nothing -- and none of them is the
38
62
  // plate. `alt` keeps its meaning: a name makes the span an image named by it, and `""` hides it.
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/avatar/avatar.tsx"],"names":[],"mappings":";AA8BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAe;IACvF,4FAA4F;IAC5F,iEAAiE;IACjE,MAAM,KAAK,GACP,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,GAAG,KAAK,EAAoB,CAAA;IAE/F,2FAA2F;IAC3F,gGAAgG;IAChG,iGAAiG;IACjG,+FAA+F;IAC/F,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACpB,OAAO,CACH,eACI,SAAS,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAClE,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,gBACjB,GAAG,IAAI,SAAS,iBACf,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GACrC,CACL,CAAA;IACL,C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Q,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,CACH,gBACI,SAAS,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,EAAE,SAAS,CAAC;iBAC3D,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,CAAC,GAAG,CAAC,EACd,KAAK,EAAE,KAAK,aAEZ,cACI,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,QAAQ,EAAC,OAAO,EAChB,SAAS,EAAC,sBAAsB,KAC5B,IAAI,GACV,EACF,cACI,GAAG,EAAE,QAAQ,EACb,GAAG,EAAC,EAAE,EACN,QAAQ,EAAC,OAAO,EAChB,SAAS,EAAC,uBAAuB,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,GACrB,IACC,CACV,CAAA;IACL,CAAC;IAED,OAAO,CACH,cACI,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAClE,mFAAmF;QACnF,iFAAiF;QACjF,OAAO,EAAC,MAAM,EACd,QAAQ,EAAC,OAAO,EAChB,KAAK,EAAE,KAAK,KACR,IAAI,GACV,CACL,CAAA;AACL,CAAC"}
@@ -95,6 +95,70 @@ a.newtone-card-box:focus-visible {
95
95
  outline-offset: 2px;
96
96
  }
97
97
 
98
+ /* A CARD WHOSE WHOLE GROUND IS ONE PALETTE, 2026-10-02: `signage`. Joshua, of Andrea's talk page:
99
+ * *"3 cards, in the extended palette colors"*, the whole card and not a tile on it. The ground and the
100
+ * ink are the signage slice's pair, the same one FramedIcon reads, so the studio tunes both from one
101
+ * row each. The ink is set on the box and the children inherit it, since `Text` declares no colour.
102
+ * One rule per palette, for framed-icon.css's reason: a palette name cannot be spliced into a
103
+ * property name in CSS. No hover rule, because the slice has no state leaves; a card that is a link
104
+ * and asks for `signage` is the trigger. card-box.md, *`signage`*. */
105
+ .newtone-card-box[data-newtone-signage='neutral'] {
106
+ background: var(--newtone-signage-neutral-fill);
107
+ color: var(--newtone-signage-neutral-text);
108
+ }
109
+ .newtone-card-box[data-newtone-signage='accent'] {
110
+ background: var(--newtone-signage-accent-fill);
111
+ color: var(--newtone-signage-accent-text);
112
+ }
113
+ .newtone-card-box[data-newtone-signage='support'] {
114
+ background: var(--newtone-signage-support-fill);
115
+ color: var(--newtone-signage-support-text);
116
+ }
117
+ .newtone-card-box[data-newtone-signage='success'] {
118
+ background: var(--newtone-signage-success-fill);
119
+ color: var(--newtone-signage-success-text);
120
+ }
121
+ .newtone-card-box[data-newtone-signage='warning'] {
122
+ background: var(--newtone-signage-warning-fill);
123
+ color: var(--newtone-signage-warning-text);
124
+ }
125
+ .newtone-card-box[data-newtone-signage='error'] {
126
+ background: var(--newtone-signage-error-fill);
127
+ color: var(--newtone-signage-error-text);
128
+ }
129
+ .newtone-card-box[data-newtone-signage='red'] {
130
+ background: var(--newtone-signage-red-fill);
131
+ color: var(--newtone-signage-red-text);
132
+ }
133
+ .newtone-card-box[data-newtone-signage='orange'] {
134
+ background: var(--newtone-signage-orange-fill);
135
+ color: var(--newtone-signage-orange-text);
136
+ }
137
+ .newtone-card-box[data-newtone-signage='yellow'] {
138
+ background: var(--newtone-signage-yellow-fill);
139
+ color: var(--newtone-signage-yellow-text);
140
+ }
141
+ .newtone-card-box[data-newtone-signage='green'] {
142
+ background: var(--newtone-signage-green-fill);
143
+ color: var(--newtone-signage-green-text);
144
+ }
145
+ .newtone-card-box[data-newtone-signage='teal'] {
146
+ background: var(--newtone-signage-teal-fill);
147
+ color: var(--newtone-signage-teal-text);
148
+ }
149
+ .newtone-card-box[data-newtone-signage='blue'] {
150
+ background: var(--newtone-signage-blue-fill);
151
+ color: var(--newtone-signage-blue-text);
152
+ }
153
+ .newtone-card-box[data-newtone-signage='purple'] {
154
+ background: var(--newtone-signage-purple-fill);
155
+ color: var(--newtone-signage-purple-text);
156
+ }
157
+ .newtone-card-box[data-newtone-signage='pink'] {
158
+ background: var(--newtone-signage-pink-fill);
159
+ color: var(--newtone-signage-pink-text);
160
+ }
161
+
98
162
  /* No ring, 2026-09-25: `outlined={false}`, for a card whose ground tells it apart. card-box.md. */
99
163
  .newtone-card-box[data-outlined='false'] {
100
164
  border: none;
@@ -1,5 +1,6 @@
1
1
  import { type Elevation } from '../surface/index.js';
2
2
  import { type SpaceStep, type WrapperAlign, type WrapperDirection } from '../wrapper/index.js';
3
+ import type { SignagePalette } from '../framed-icon/index.js';
3
4
  import type { HTMLAttributes, ReactNode } from 'react';
4
5
  /**
5
6
  * The box a card is: an outlined, padded surface with a corner on it.
@@ -135,6 +136,13 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
135
136
  * that is not a link must not look like one. Since 2026-10-01; card-box.md, *`href`*.
136
137
  */
137
138
  href?: string;
139
+ /**
140
+ * Paints the whole card from one palette of the `signage` slice: its ground from that palette's
141
+ * fill and its ink from its text, read in whatever scope the card sits in. Unset, nothing changes.
142
+ * No hover: the slice has no state leaves. Since 2026-10-02, Andrea Arellano's question cards;
143
+ * card-box.md, *`signage`*.
144
+ */
145
+ signage?: SignagePalette;
138
146
  /** The link's own, passed through: a new tab is the page's decision, as on `IconLink`. */
139
147
  target?: string;
140
148
  rel?: string;
@@ -142,5 +150,5 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
142
150
  className?: string;
143
151
  children?: ReactNode;
144
152
  }
145
- export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
153
+ export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href, signage, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
146
154
  //# sourceMappingURL=card-box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-box.d.ts","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":"AAEA,O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,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAe,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,YAAY,+BAgCd"}
@@ -3,8 +3,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // this is a server component -- see the repo blueprint, section 4.3.
4
4
  import { Surface } from '../surface/index.js';
5
5
  import { Wrapper, } from '../wrapper/index.js';
6
- export function CardBox({ direction, padding, gap, align, elevation, outlined = true, size, ring, href, className, style, children, ...rest }) {
7
- return (_jsx(Surface, { as: href === undefined ? 'div' : 'a', ...(href === undefined ? {} : { href }), elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, style: ring === undefined
6
+ export function CardBox({ direction, padding, gap, align, elevation, outlined = true, size, ring, href, signage, className, style, children, ...rest }) {
7
+ return (_jsx(Surface, { as: href === undefined ? 'div' : 'a', ...(href === undefined ? {} : { href }), elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, "data-newtone-signage": signage, style: ring === undefined
8
8
  ? style
9
9
  : { '--newtone-card-box-ring': ring, ...style }, ...rest, children: _jsx(Wrapper, { direction: direction, gap: gap ?? (size === 'sm' ? 2 : undefined), align: align, padding: padding ?? (size === 'sm' ? 4 : size === 'lg' ? 8 : 2), className: "newtone-card-box-body", children: children }) }));
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"card-box.js","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":";AAAA,uGAAuG;AACvG,qEAAqE;AACrE,OAAO,EAAE,OAAO,EAAkB,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EACH,OAAO,GAIV,MAAM,qBAAqB,CAAA;AAiJ5B,MA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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,SAAS,EAAC,uBAAuB,YAEhC,QAAQ,GACH,GACJ,CACb,CAAA;AACL,CAAC"}
@@ -75,3 +75,64 @@
75
75
  height: 2.5rem;
76
76
  border-radius: 50%;
77
77
  }
78
+
79
+ /* THE SIGNAGE PALETTES, 2026-10-02. Set, `signage` paints from that palette's group in the
80
+ `signage` slice, in whatever theme the mark sits in; unset, the two lines above stand. The
81
+ glyph still inherits through `currentColor`. One rule per palette, because a component reads
82
+ only its own tokens and a palette name cannot be spliced into a property name in CSS. */
83
+ .newtone-framed-icon[data-newtone-signage='neutral'] {
84
+ background: var(--newtone-signage-neutral-fill);
85
+ color: var(--newtone-signage-neutral-text);
86
+ }
87
+ .newtone-framed-icon[data-newtone-signage='accent'] {
88
+ background: var(--newtone-signage-accent-fill);
89
+ color: var(--newtone-signage-accent-text);
90
+ }
91
+ .newtone-framed-icon[data-newtone-signage='support'] {
92
+ background: var(--newtone-signage-support-fill);
93
+ color: var(--newtone-signage-support-text);
94
+ }
95
+ .newtone-framed-icon[data-newtone-signage='success'] {
96
+ background: var(--newtone-signage-success-fill);
97
+ color: var(--newtone-signage-success-text);
98
+ }
99
+ .newtone-framed-icon[data-newtone-signage='warning'] {
100
+ background: var(--newtone-signage-warning-fill);
101
+ color: var(--newtone-signage-warning-text);
102
+ }
103
+ .newtone-framed-icon[data-newtone-signage='error'] {
104
+ background: var(--newtone-signage-error-fill);
105
+ color: var(--newtone-signage-error-text);
106
+ }
107
+ .newtone-framed-icon[data-newtone-signage='red'] {
108
+ background: var(--newtone-signage-red-fill);
109
+ color: var(--newtone-signage-red-text);
110
+ }
111
+ .newtone-framed-icon[data-newtone-signage='orange'] {
112
+ background: var(--newtone-signage-orange-fill);
113
+ color: var(--newtone-signage-orange-text);
114
+ }
115
+ .newtone-framed-icon[data-newtone-signage='yellow'] {
116
+ background: var(--newtone-signage-yellow-fill);
117
+ color: var(--newtone-signage-yellow-text);
118
+ }
119
+ .newtone-framed-icon[data-newtone-signage='green'] {
120
+ background: var(--newtone-signage-green-fill);
121
+ color: var(--newtone-signage-green-text);
122
+ }
123
+ .newtone-framed-icon[data-newtone-signage='teal'] {
124
+ background: var(--newtone-signage-teal-fill);
125
+ color: var(--newtone-signage-teal-text);
126
+ }
127
+ .newtone-framed-icon[data-newtone-signage='blue'] {
128
+ background: var(--newtone-signage-blue-fill);
129
+ color: var(--newtone-signage-blue-text);
130
+ }
131
+ .newtone-framed-icon[data-newtone-signage='purple'] {
132
+ background: var(--newtone-signage-purple-fill);
133
+ color: var(--newtone-signage-purple-text);
134
+ }
135
+ .newtone-framed-icon[data-newtone-signage='pink'] {
136
+ background: var(--newtone-signage-pink-fill);
137
+ color: var(--newtone-signage-pink-text);
138
+ }
@@ -51,11 +51,21 @@ import type { HTMLAttributes } from 'react';
51
51
  * drift.
52
52
  */
53
53
  export type FramedIconShape = 'square' | 'round';
54
+ /**
55
+ * The palettes the `signage` slice names, since 2026-10-02: the six system palettes and the eight
56
+ * custom ones. Fixed by contracts/seeds.md, so the list cannot drift from a seed. Joshua: *"a slice
57
+ * in newtone for signage, that we would use on status tags or icon tiles, that would have all
58
+ * palettes"*. It names a group the studio tunes, never a colour -- which is why it is not the `fill`
59
+ * this file refuses. blueprints/newtone/DECISIONS/2026-10-02-signage-is-a-slice-for-every-palette.md
60
+ */
61
+ export type SignagePalette = 'neutral' | 'accent' | 'support' | 'success' | 'warning' | 'error' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
54
62
  export interface FramedIconProps extends HTMLAttributes<HTMLElement> {
55
63
  /** A Material Symbols ligature. */
56
64
  icon: string;
57
65
  /** The 96px square a credential leads with, or the 40px circle a feature card leads with. */
58
66
  shape: FramedIconShape;
67
+ /** Paint from the `signage` slice's palette instead of `framed-icon`. Unset, nothing changes. */
68
+ signage?: SignagePalette;
59
69
  }
60
- export declare function FramedIcon({ icon, shape, className, ...rest }: FramedIconProps): import("react").JSX.Element;
70
+ export declare function FramedIcon({ icon, shape, signage, className, ...rest }: FramedIconProps): import("react").JSX.Element;
61
71
  //# sourceMappingURL=framed-icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framed-icon.d.ts","sourceRoot":"","sources":["../../src/framed-icon/framed-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,CAAA;AAShD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,WAAW,CAAC;IAChE,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,6FAA6F;IAC7F,KAAK,EAAE,eAAe,CAAA;CACzB;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAW9E"}
1
+ {"version":3,"file":"framed-icon.d.ts","sourceRoot":"","sources":["../../src/framed-icon/framed-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GACpB,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,CAAA;AASZ,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,WAAW,CAAC;IAChE,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,6FAA6F;IAC7F,KAAK,EAAE,eAAe,CAAA;IACtB,iGAAiG;IACjG,OAAO,CAAC,EAAE,cAAc,CAAA;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAYvF"}
@@ -6,9 +6,9 @@ import { Icon } from '../icon/index.js';
6
6
  * caller decides.
7
7
  */
8
8
  const GLYPH = { square: 'xl', round: 'md' };
9
- export function FramedIcon({ icon, shape, className, ...rest }) {
9
+ export function FramedIcon({ icon, shape, signage, className, ...rest }) {
10
10
  return (_jsx("span", { className: [`newtone-framed-icon newtone-framed-icon--${shape}`, className]
11
11
  .filter(Boolean)
12
- .join(' '), ...rest, children: _jsx(Icon, { name: icon, size: GLYPH[shape] }) }));
12
+ .join(' '), "data-newtone-signage": signage, ...rest, children: _jsx(Icon, { name: icon, size: GLYPH[shape] }) }));
13
13
  }
14
14
  //# sourceMappingURL=framed-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"framed-icon.js","sourceRoot":"","sources":["../../src/framed-icon/framed-icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,kBAAkB,CAAA;AAyDtD;;;;GAIG;AACH,MAAM,KAAK,GAAsC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AAS9E,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAmB;IAC3E,OAAO,CACH,eACI,SAAS,EAAE,CAAC,4CAA4C,KAAK,EAAE,EAAE,SAAS,CAAC;aACtE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACV,IAAI,YAER,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,GAAI,GACrC,CACV,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"framed-icon.js","sourceRoot":"","sources":["../../src/framed-icon/framed-icon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,kBAAkB,CAAA;AAgFtD;;;;GAIG;AACH,MAAM,KAAK,GAAsC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;AAW9E,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAmB;IACpF,OAAO,CACH,eACI,SAAS,EAAE,CAAC,4CAA4C,KAAK,EAAE,EAAE,SAAS,CAAC;aACtE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,0BACQ,OAAO,KACzB,IAAI,YAER,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,GAAI,GACrC,CACV,CAAA;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** The door. See the repo blueprint, section 4.1.6. */
2
2
  export { FramedIcon } from './framed-icon.js';
3
- export type { FramedIconProps, FramedIconShape } from './framed-icon.js';
3
+ export type { FramedIconProps, FramedIconShape, SignagePalette } from './framed-icon.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/framed-icon/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/framed-icon/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export type { IdentityProps } from './identity/index.js';
15
15
  export { Icon } from './icon/index.js';
16
16
  export type { IconProps, IconSize } from './icon/index.js';
17
17
  export { FramedIcon } from './framed-icon/index.js';
18
- export type { FramedIconProps, FramedIconShape } from './framed-icon/index.js';
18
+ export type { FramedIconProps, FramedIconShape, SignagePalette } from './framed-icon/index.js';
19
19
  export { CardBox } from './card-box/index.js';
20
20
  export type { CardBoxProps } from './card-box/index.js';
21
21
  export { CardGrid } from './card-grid/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,SAAS,GACZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,YAAY,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,GACd,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,YAAY,EACR,WAAW,EACX,gBAAgB,EAChB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AAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EACH,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,KAAK,GACR,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",