@newtone-dev/ui-react-web 0.10.0 → 0.14.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.
Files changed (80) hide show
  1. package/README.md +9 -5
  2. package/dist/accordion/accordion.css +4 -4
  3. package/dist/avatar/avatar.css +7 -2
  4. package/dist/avatar/avatar.d.ts +7 -1
  5. package/dist/avatar/avatar.d.ts.map +1 -1
  6. package/dist/avatar/avatar.js +7 -2
  7. package/dist/avatar/avatar.js.map +1 -1
  8. package/dist/bar-list/bar-list.css +29 -4
  9. package/dist/card-box/card-box.css +5 -3
  10. package/dist/card-box/card-box.d.ts +11 -3
  11. package/dist/card-box/card-box.d.ts.map +1 -1
  12. package/dist/card-box/card-box.js +4 -2
  13. package/dist/card-box/card-box.js.map +1 -1
  14. package/dist/card-grid/card-grid.css +28 -1
  15. package/dist/card-grid/card-grid.d.ts +7 -1
  16. package/dist/card-grid/card-grid.d.ts.map +1 -1
  17. package/dist/card-grid/card-grid.js +14 -8
  18. package/dist/card-grid/card-grid.js.map +1 -1
  19. package/dist/chart-key/chart-key.css +4 -4
  20. package/dist/column-chart/column-chart.css +35 -6
  21. package/dist/control/control.css +21 -4
  22. package/dist/control/control.d.ts +15 -5
  23. package/dist/control/control.d.ts.map +1 -1
  24. package/dist/control/control.js +7 -6
  25. package/dist/control/control.js.map +1 -1
  26. package/dist/data-list/data-list.css +7 -5
  27. package/dist/data-list/data-list.d.ts +7 -1
  28. package/dist/data-list/data-list.d.ts.map +1 -1
  29. package/dist/data-list/data-list.js +7 -2
  30. package/dist/data-list/data-list.js.map +1 -1
  31. package/dist/feature-card/feature-card.css +1 -1
  32. package/dist/figure/figure.css +1 -1
  33. package/dist/framed-icon/framed-icon.css +1 -1
  34. package/dist/gallery/gallery.css +27 -2
  35. package/dist/gallery/gallery.d.ts.map +1 -1
  36. package/dist/gallery/gallery.js +5 -2
  37. package/dist/gallery/gallery.js.map +1 -1
  38. package/dist/icon/icon.d.ts.map +1 -1
  39. package/dist/icon/icon.js +30 -3
  40. package/dist/icon/icon.js.map +1 -1
  41. package/dist/icon-link/icon-link.css +2 -2
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +1 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/link/link.css +7 -7
  47. package/dist/logo-marquee/logo-marquee.d.ts.map +1 -1
  48. package/dist/logo-marquee/logo-marquee.js +6 -2
  49. package/dist/logo-marquee/logo-marquee.js.map +1 -1
  50. package/dist/media-window/index.d.ts +4 -0
  51. package/dist/media-window/index.d.ts.map +1 -0
  52. package/dist/media-window/index.js +3 -0
  53. package/dist/media-window/index.js.map +1 -0
  54. package/dist/media-window/media-window.css +5 -2
  55. package/dist/media-window/media-window.d.ts +28 -0
  56. package/dist/media-window/media-window.d.ts.map +1 -0
  57. package/dist/media-window/media-window.js +5 -0
  58. package/dist/media-window/media-window.js.map +1 -0
  59. package/dist/navbar/navbar.d.ts +16 -3
  60. package/dist/navbar/navbar.d.ts.map +1 -1
  61. package/dist/navbar/navbar.js +8 -5
  62. package/dist/navbar/navbar.js.map +1 -1
  63. package/dist/numbered-list/numbered-list.css +1 -1
  64. package/dist/on-media/on-media.css +175 -50
  65. package/dist/page/page.css +9 -9
  66. package/dist/page/page.d.ts +1 -1
  67. package/dist/segmented-control/segmented-control.css +28 -5
  68. package/dist/split-bar/split-bar.css +36 -4
  69. package/dist/stat-card/stat-card.css +3 -3
  70. package/dist/text/text.css +29 -2
  71. package/dist/tooltip/tooltip.css +13 -1
  72. package/dist/tooltip/tooltip.d.ts +9 -1
  73. package/dist/tooltip/tooltip.d.ts.map +1 -1
  74. package/dist/tooltip/tooltip.js +61 -4
  75. package/dist/tooltip/tooltip.js.map +1 -1
  76. package/dist/video-lightbox/video-lightbox.css +13 -7
  77. package/dist/video-lightbox/video-lightbox.d.ts.map +1 -1
  78. package/dist/video-lightbox/video-lightbox.js +5 -2
  79. package/dist/video-lightbox/video-lightbox.js.map +1 -1
  80. package/package.json +5 -1
package/README.md CHANGED
@@ -28,11 +28,15 @@ JavaScript can reach; `package.json`'s `exports` map is the complete one includi
28
28
  14/20 or 16/24.** A `size` prop picks a rung and the rung carries its height, its type pair, its
29
29
  glyph and its padding together; there is no second axis. `contracts/button.md`, *Sizes*.
30
30
 
31
- | | `sm` | `md` | `lg` |
32
- | --- | --- | --- | --- |
33
- | `Control` | 36 | 40 | 44 |
34
- | `Button`, `Navbar` | 40 | 44 | 48 |
35
- | `Action`, `QuickAction` | 48 | — | 56 |
31
+ | | `sm` | `md` | `lg` | `xl` |
32
+ | --- | --- | --- | --- | --- |
33
+ | `Control` | 36 | 40 | 44 | 48 |
34
+ | `Button`, `Navbar` | 40 | 44 | 48 | — |
35
+ | `Action`, `QuickAction` | 48 | — | 56 | — |
36
+
37
+ **A `Control` sits a rung below a `Button` at the first three positions, and `xl` is the exception.**
38
+ It exists for controls standing on a photograph — `Gallery`'s arrows, `VideoLightbox`'s close — where
39
+ there is no page whose primary action they could compete with.
36
40
 
37
41
  ## The idea in one example
38
42
 
@@ -133,11 +133,11 @@
133
133
  }
134
134
 
135
135
  .newtone-accordion-row {
136
- border-block-start: 1px solid var(--newtone-accordion-divider);
136
+ border-block-start: 1px solid var(--newtone-accordion-divider-border);
137
137
  }
138
138
 
139
139
  .newtone-accordion-row:last-child {
140
- border-block-end: 1px solid var(--newtone-accordion-divider);
140
+ border-block-end: 1px solid var(--newtone-accordion-divider-border);
141
141
  }
142
142
 
143
143
  .newtone-accordion-summary {
@@ -182,7 +182,7 @@
182
182
  }
183
183
 
184
184
  .newtone-accordion-summary:hover .newtone-accordion-marker {
185
- background: var(--newtone-accordion-marker-hover);
185
+ background: var(--newtone-accordion-marker-hover-fill);
186
186
  }
187
187
 
188
188
  /* THE GLYPH ROTATES AND THE BUTTON AROUND IT DOES NOT, 2026-09-14. Joshua: "the whole button should
@@ -230,7 +230,7 @@
230
230
  max-width: 40rem;
231
231
  margin-inline-start: var(--newtone-accordion-indent);
232
232
  padding-block-end: var(--newtone-accordion-pad);
233
- color: var(--newtone-accordion-description);
233
+ color: var(--newtone-accordion-description-text);
234
234
  }
235
235
 
236
236
  @media (prefers-reduced-motion: reduce) {
@@ -9,7 +9,12 @@
9
9
  * default and declared nowhere in this library -- the `--newtone-card-grid-min` shape, third use.
10
10
  * It is not a token because a diameter is not re-themed; it is not a prop because the three call
11
11
  * sites this arrived from want 3.5rem, `clamp(5rem, 28%, 7rem)` and 15rem, and the middle one is
12
- * not a rung on any ladder the other two imply. */
12
+ * not a rung on any ladder the other two imply.
13
+ *
14
+ * SINCE 2026-09-26 IT IS A PROP, `size`, AND THE REASON ABOVE WAS ABOUT THE TYPE. A consuming site
15
+ * declares no `--newtone-*` property (the 2026-09-18 decision, issue 201), so avatar.tsx writes the
16
+ * property inline. It takes a CSS string, which is what lets the `clamp()` survive: no ladder had to
17
+ * be invented for the prop to exist. */
13
18
  .newtone-avatar {
14
19
  display: block;
15
20
  flex: none;
@@ -31,7 +36,7 @@
31
36
  block-size: auto;
32
37
  aspect-ratio: 1;
33
38
  border-radius: 50%;
34
- background: var(--newtone-avatar-ground);
39
+ background: var(--newtone-avatar-fill);
35
40
 
36
41
  /* A photograph is almost never square. Without this, a 4:3 original is squeezed into the
37
42
  circle and every face in a row is a different shape. */
@@ -8,6 +8,12 @@ export interface AvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, '
8
8
  * three call sites beside a written-out name actually want.
9
9
  */
10
10
  alt: string;
11
+ /**
12
+ * The diameter -- any CSS length, `7rem` when omitted. Written inline as `--newtone-avatar-size`.
13
+ * A string, so a `clamp()` or a site's own `var()` survives. Since 2026-09-26, issue 201;
14
+ * avatar.md.
15
+ */
16
+ size?: string;
11
17
  }
12
18
  /**
13
19
  * A person, in a circle, on a plate.
@@ -39,5 +45,5 @@ export interface AvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, '
39
45
  * Nothing here has a slot for one. The day a second site wants a marker, what crosses is the slot,
40
46
  * not the flag.
41
47
  */
42
- export declare function Avatar({ src, alt, className, ...rest }: AvatarProps): import("react").JSX.Element;
48
+ export declare function Avatar({ src, alt, size, className, style, ...rest }: AvatarProps): import("react").JSX.Element;
43
49
  //# 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,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACjF,GAAG,EAAE,MAAM,CAAA;IACX;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAanE"}
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,GAAG,EAAE,MAAM,CAAA;IACX;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAoBhF"}
@@ -29,10 +29,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
29
29
  * Nothing here has a slot for one. The day a second site wants a marker, what crosses is the slot,
30
30
  * not the flag.
31
31
  */
32
- export function Avatar({ src, alt, className, ...rest }) {
32
+ export function Avatar({ src, alt, size, className, style, ...rest }) {
33
33
  return (_jsx("img", { src: src, alt: alt, className: ['newtone-avatar', className].filter(Boolean).join(' '),
34
34
  // Both default here rather than at each call site, because a portrait is never the
35
35
  // thing a reader is waiting for and every existing call site wrote both by hand.
36
- loading: "lazy", decoding: "async", ...rest }));
36
+ loading: "lazy", decoding: "async",
37
+ // The diameter, written here since 2026-09-26 rather than declared by the caller's
38
+ // sheet: a consuming site declares no `--newtone-*` property (issue 201).
39
+ style: size === undefined
40
+ ? style
41
+ : { '--newtone-avatar-size': size, ...style }, ...rest }));
37
42
  }
38
43
  //# sourceMappingURL=avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/avatar/avatar.tsx"],"names":[],"mappings":";AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,EAAe;IAChE,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,KACZ,IAAI,GACV,CACL,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../src/avatar/avatar.tsx"],"names":[],"mappings":";AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAe;IAC7E,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;QAChB,mFAAmF;QACnF,0EAA0E;QAC1E,KAAK,EACD,IAAI,KAAK,SAAS;YACd,CAAC,CAAC,KAAK;YACP,CAAC,CAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,GAAG,KAAK,EAAoB,KAEpE,IAAI,GACV,CACL,CAAA;AACL,CAAC"}
@@ -22,7 +22,7 @@
22
22
 
23
23
  .newtone-bar-list-label,
24
24
  .newtone-bar-list-value {
25
- color: var(--newtone-chart-label);
25
+ color: var(--newtone-chart-label-text);
26
26
  }
27
27
 
28
28
  .newtone-bar-list-track {
@@ -41,7 +41,7 @@
41
41
  bottom: calc(var(--newtone-space-2) / -2);
42
42
  left: 0;
43
43
  width: 1px;
44
- background: var(--newtone-chart-axis);
44
+ background: var(--newtone-chart-axis-border);
45
45
  }
46
46
 
47
47
  .newtone-bar-list-bar {
@@ -49,11 +49,11 @@
49
49
  width: calc((100% - 3rem) * var(--_bar-list-share));
50
50
  height: 100%;
51
51
  border-radius: 0 var(--newtone-chart-radius) var(--newtone-chart-radius) 0;
52
- background: var(--newtone-chart-mark);
52
+ background: var(--newtone-chart-mark-rest-fill);
53
53
  }
54
54
 
55
55
  .newtone-bar-list[data-tone='muted'] .newtone-bar-list-bar {
56
- background: var(--newtone-chart-mark-muted);
56
+ background: var(--newtone-chart-mark-muted-fill);
57
57
  }
58
58
 
59
59
  .newtone-bar-list[data-fill] {
@@ -78,8 +78,33 @@
78
78
  }
79
79
  }
80
80
 
81
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
82
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
83
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
84
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
85
+ Repo blueprint section 4, *Breakpoints*. */
86
+ :where([data-newtone-breakpoints='container']) {
87
+ container: newtone-breakpoints / inline-size;
88
+ }
89
+
81
90
  /* Below `stack`, each name above its bar; the rows keep their fixed height. */
82
91
  @media (max-width: 40rem) {
92
+ .newtone-bar-list:where(:not([data-newtone-breakpoints='container'] *)) {
93
+ grid-template-columns: minmax(0, 1fr);
94
+ row-gap: var(--newtone-space-1);
95
+ }
96
+
97
+ .newtone-bar-list[data-fill]:where(:not([data-newtone-breakpoints='container'] *)) {
98
+ grid-auto-rows: auto;
99
+ }
100
+
101
+ .newtone-bar-list[data-fill]
102
+ .newtone-bar-list-track:where(:not([data-newtone-breakpoints='container'] *)) {
103
+ height: var(--newtone-space-5);
104
+ }
105
+ }
106
+
107
+ @container newtone-breakpoints (max-width: 40rem) {
83
108
  .newtone-bar-list {
84
109
  grid-template-columns: minmax(0, 1fr);
85
110
  row-gap: var(--newtone-space-1);
@@ -49,9 +49,11 @@
49
49
  * **The seam is set on the card's own element and never above it.** `--newtone-card-box-ring` inherits like
50
50
  * any custom property, so a value declared on a band would repaint every card under it at once.
51
51
  * `pricing-card.css` sets it on `.pricing-card`, which IS this element -- `className` lands on the
52
- * `Surface` -- and pins it back to the divider for the card that has only one state. That is the
53
- * whole of the contract; issue 045 and section 4.1.13's decision A carry why the alternative, a
54
- * `ring` prop, is a vocabulary bought from one call site.
52
+ * `Surface` -- and pins it back to the divider for the card that has only one state. That was the
53
+ * whole of the contract until 2026-09-26, when it became the `ring` prop written on this element by
54
+ * card-box.tsx, because a site declares no `--newtone-*` property (issue 201). Issue 045 and section 4.1.13's decision A carry
55
+ * why a `ring` prop was refused as a vocabulary bought from one call site; the prop's type is what
56
+ * answered that, since a CSS string teaches this file no ring colours.
55
57
  *
56
58
  * ---- the ground ----------------------------------------------------------
57
59
  *
@@ -89,7 +89,9 @@ import type { HTMLAttributes, ReactNode } from 'react';
89
89
  * call site, and a tone prop would be this file learning a vocabulary of ring colours from it --
90
90
  * `governance/evidence/size-an-api-from-call-sites-not-from-the-type.md`. What card-box.css publishes instead
91
91
  * is `--newtone-card-box-ring`, defaulting to the divider it has always drawn, so a card that says nothing
92
- * is unchanged by construction. The sheet beside this file carries the one rule the seam runs on.
92
+ * is unchanged by construction. **Since 2026-09-26 it is also a prop, `ring`, and the refusal above is
93
+ * answered by its type**: a string rather than a vocabulary, so this file still learns no ring colours,
94
+ * and the site stops declaring a `--newtone-*` property (the 2026-09-18 decision, issue 201). The sheet beside this file carries the one rule the seam runs on.
93
95
  */
94
96
  export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
95
97
  /** Which way the card's contents run. */
@@ -112,7 +114,7 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
112
114
  /**
113
115
  * Whether the card draws its ring. Defaults to `true`. `false` is for a card whose ground already
114
116
  * tells it apart -- a raised one -- and arrived 2026-09-25; see card-box.md. It says whether there
115
- * is a ring, never what colour: that is `--newtone-card-box-ring`, and issue 201's prop.
117
+ * is a ring, never what colour: that is `ring`, issue 201's prop.
116
118
  */
117
119
  outlined?: boolean;
118
120
  /**
@@ -121,9 +123,15 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
121
123
  * An explicit `padding` or `gap` still wins. card-box.md, *`size`*.
122
124
  */
123
125
  size?: 'sm' | 'lg';
126
+ /**
127
+ * The ring's colour -- any CSS colour, the divider when omitted. Written inline on the card's own
128
+ * element as `--newtone-card-box-ring`. A string and not a vocabulary, so a site that turns the
129
+ * ring under its own selector passes its own `var()`. Since 2026-09-26, issue 201; card-box.md.
130
+ */
131
+ ring?: string;
124
132
  /** The card's own class. It lands on the outer element, where a slot minimum belongs. */
125
133
  className?: string;
126
134
  children?: ReactNode;
127
135
  }
128
- export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, className, children, ...rest }: CardBoxProps): import("react").JSX.Element;
136
+ export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
129
137
  //# 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,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAEH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC7D,yCAAyC;IACzC,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,oEAAoE;IACpE,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAe,EACf,IAAI,EACJ,SAA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4Bd"}
@@ -3,7 +3,9 @@ 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, className, children, ...rest }) {
7
- return (_jsx(Surface, { elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, ...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 }) }));
6
+ export function CardBox({ direction, padding, gap, align, elevation, outlined = true, size, ring, className, style, children, ...rest }) {
7
+ return (_jsx(Surface, { elevation: elevation, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, style: ring === undefined
8
+ ? style
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 }) }));
8
10
  }
9
11
  //# sourceMappingURL=card-box.js.map
@@ -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;AAgI5B,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACI;IACX,OAAO,CACH,KAAC,OAAO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,SAAS,CAAC,CAAC,CAAC,OAAO,eAClC,IAAI,EACf,KAAK,EACD,IAAI,KAAK,SAAS;YACd,CAAC,CAAC,KAAK;YACP,CAAC,CAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,GAAG,KAAK,EAAoB,KAEtE,IAAI,YAKR,KAAC,OAAO,IACJ,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAC3C,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,SAAS,EAAC,uBAAuB,YAEhC,QAAQ,GACH,GACJ,CACb,CAAA;AACL,CAAC"}
@@ -56,7 +56,8 @@
56
56
  * concession; a concession of the number of columns is a different band.**
57
57
  *
58
58
  * **So the floor is a value a row can state, and the answer is a fourth candidate none of the three
59
- * above.** `--newtone-card-grid-min` with `15rem` as its default: a band that wants a wider card sets the
59
+ * above.** (Since 2026-09-26 the band passes it as `minColumnSize` and card-grid.tsx writes it: a
60
+ * consuming site declares no `--newtone-*` property, the 2026-09-18 decision, issue 201.) `--newtone-card-grid-min` with `15rem` as its default: a band that wants a wider card sets the
60
61
  * property in its own sheet on an element it already owns, and a band that wants 240 says nothing.
61
62
  * `structure` and `faculty` say nothing.
62
63
  *
@@ -96,10 +97,30 @@
96
97
  gap: var(--newtone-card-grid-gap);
97
98
  }
98
99
 
100
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
101
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
102
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
103
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
104
+ Repo blueprint section 4, *Breakpoints*. */
105
+ :where([data-newtone-breakpoints='container']) {
106
+ container: newtone-breakpoints / inline-size;
107
+ }
108
+
99
109
  /* A COUNT AND A FILL, 2026-09-25. `columns={n}` is n equal tracks above 40rem and one at or below;
100
110
  * `--_card-grid-count` is written by the component and by nobody else. `fill` shares the height
101
111
  * out between the rows, above 40rem, like BarList's and ColumnChart's. card-grid.md. */
102
112
  @media (min-width: 40.001rem) {
113
+ .newtone-card-grid--columns[data-count]:where(:not([data-newtone-breakpoints='container'] *)) {
114
+ grid-template-columns: repeat(var(--_card-grid-count), minmax(0, 1fr));
115
+ }
116
+
117
+ .newtone-card-grid--columns[data-fill]:where(:not([data-newtone-breakpoints='container'] *)) {
118
+ height: 100%;
119
+ grid-auto-rows: minmax(0, 1fr);
120
+ }
121
+ }
122
+
123
+ @container newtone-breakpoints (min-width: 40.001rem) {
103
124
  .newtone-card-grid--columns[data-count] {
104
125
  grid-template-columns: repeat(var(--_card-grid-count), minmax(0, 1fr));
105
126
  }
@@ -111,6 +132,12 @@
111
132
  }
112
133
 
113
134
  @media (max-width: 40rem) {
135
+ .newtone-card-grid--columns[data-count]:where(:not([data-newtone-breakpoints='container'] *)) {
136
+ grid-template-columns: minmax(0, 1fr);
137
+ }
138
+ }
139
+
140
+ @container newtone-breakpoints (max-width: 40rem) {
114
141
  .newtone-card-grid--columns[data-count] {
115
142
  grid-template-columns: minmax(0, 1fr);
116
143
  }
@@ -62,7 +62,13 @@ export interface CardGridProps extends HTMLAttributes<HTMLElement> {
62
62
  * as `BarList` and `ColumnChart`; it sets `data-fill`, which a filling container grows.
63
63
  */
64
64
  fill?: boolean;
65
+ /**
66
+ * The column mode's floor -- any CSS length, `15rem` when omitted. Written inline on this
67
+ * element as `--newtone-card-grid-min`, which card-grid.css reads. A string so a site can pass
68
+ * its own `var()` and keep a breakpoint on its own name. Since 2026-09-26; card-grid.md.
69
+ */
70
+ minColumnSize?: string;
65
71
  children?: ReactNode;
66
72
  }
67
- export declare function CardGrid({ columns, fill, children, className, style, ...rest }: CardGridProps): import("react").JSX.Element;
73
+ export declare function CardGrid({ columns, fill, minColumnSize, children, className, style, ...rest }: CardGridProps): import("react").JSX.Element;
68
74
  //# sourceMappingURL=card-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"card-grid.d.ts","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAI1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,QAAQ,CAAC,EACrB,OAAO,EACP,IAAY,EACZ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACV,EAAE,aAAa,+BA0Cf"}
1
+ {"version":3,"file":"card-grid.d.ts","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAI1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,QAAQ,CAAC,EACrB,OAAO,EACP,IAAY,EACZ,aAAa,EACb,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACV,EAAE,aAAa,+BA8Cf"}
@@ -1,18 +1,24 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Wrapper } from '../wrapper/index.js';
3
- export function CardGrid({ columns, fill = false, children, className, style, ...rest }) {
3
+ export function CardGrid({ columns, fill = false, minColumnSize, children, className, style, ...rest }) {
4
4
  // The tracks are a rule in card-grid.css, not props: invariant per row kind, which is
5
5
  // card-box.tsx's argument unchanged.
6
6
  //
7
7
  // **The floor is the one thing a row states about itself, and as of 2026-09-06 it is a value
8
- // rather than a constant.** The sheet reads `--newtone-card-grid-min` with a 15rem default; a band that
9
- // wants a wider card declares the property in its own stylesheet, on an element it already
10
- // owns, and inheritance carries it down. It is not a prop here because it never had to be: a
11
- // custom property does not have to reach this element to be read by it. card-grid.css carries
12
- // the three values that produced that answer and the two candidates it beat.
8
+ // rather than a constant.** The sheet reads `--newtone-card-grid-min` with a 15rem default. From
9
+ // 2026-09-06 a band declared the property in its own stylesheet and inheritance carried it down;
10
+ // **since 2026-09-26 it is `minColumnSize`, written here and nowhere else**, because a consuming
11
+ // site declares no `--newtone-*` property at all (the 2026-09-18 decision, issue 201). A string,
12
+ // so a band that moves its floor at a breakpoint passes its own `var()`. card-grid.css carries
13
+ // the three values that produced the property and the two candidates it beat.
13
14
  if (columns) {
14
- return (_jsx("div", { className: ['newtone-card-grid--columns', className].filter(Boolean).join(' '), "data-count": typeof columns === 'number' ? '' : undefined, "data-fill": fill ? '' : undefined, style: typeof columns === 'number'
15
- ? { '--_card-grid-count': columns, ...style }
15
+ const written = {};
16
+ if (typeof columns === 'number')
17
+ written['--_card-grid-count'] = columns;
18
+ if (minColumnSize !== undefined)
19
+ written['--newtone-card-grid-min'] = minColumnSize;
20
+ return (_jsx("div", { className: ['newtone-card-grid--columns', className].filter(Boolean).join(' '), "data-count": typeof columns === 'number' ? '' : undefined, "data-fill": fill ? '' : undefined, style: Object.keys(written).length > 0
21
+ ? { ...written, ...style }
16
22
  : style, ...rest, children: children }));
17
23
  }
18
24
  // gap={4} is 16px, the original's own gutter between cards at every width. It writes a narrower
@@ -1 +1 @@
1
- {"version":3,"file":"card-grid.js","sourceRoot":"","sources":["../../src/card-grid/card-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAwE7C,MAAM,UAAU,QAAQ,CAAC,EACrB,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACK;IACZ,sFAAsF;IACtF,qCAAqC;IACrC,EAAE;IACF,6FAA6F;IAC7F,wGAAwG;IACxG,2FAA2F;IAC3F,6FAA6F;IAC7F,8FAA8F;IAC9F,6EAA6E;IAC7E,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,CACH,cACI,SAAS,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,gBAClE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,eAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAChC,KAAK,EACD,OAAO,OAAO,KAAK,QAAQ;gBACvB,CAAC,CAAE,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,KAAK,EAAoB;gBAChE,CAAC,CAAC,KAAK,KAEX,IAAI,YAEP,QAAQ,GACP,CACT,CAAA;IACL,CAAC;IAED,gGAAgG;IAChG,+FAA+F;IAC/F,4FAA4F;IAC5F,8FAA8F;IAC9F,EAAE;IACF,6FAA6F;IAC7F,8FAA8F;IAC9F,6FAA6F;IAC7F,kEAAkE;IAClE,OAAO,CACH,KAAC,OAAO,IAAC,SAAS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AEX,IAAI,YAEP,QAAQ,GACP,CACT,CAAA;IACL,CAAC;IAED,gGAAgG;IAChG,+FAA+F;IAC/F,4FAA4F;IAC5F,8FAA8F;IAC9F,EAAE;IACF,6FAA6F;IAC7F,8FAA8F;IAC9F,6FAA6F;IAC7F,kEAAkE;IAClE,OAAO,CACH,KAAC,OAAO,IAAC,SAAS,EAAC,KAAK,EAAC,IAAI,QAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAM,IAAI,YAC7E,QAAQ,GACH,CACb,CAAA;AACL,CAAC"}
@@ -17,17 +17,17 @@
17
17
  width: 0.875rem;
18
18
  height: 0.875rem;
19
19
  border-radius: var(--newtone-chart-radius);
20
- background: var(--newtone-chart-mark);
20
+ background: var(--newtone-chart-mark-rest-fill);
21
21
  }
22
22
 
23
23
  .newtone-chart-key-swatch[data-tone='muted'] {
24
- background: var(--newtone-chart-mark-muted);
24
+ background: var(--newtone-chart-mark-muted-fill);
25
25
  }
26
26
 
27
27
  .newtone-chart-key-swatch[data-tone='off'] {
28
- background: var(--newtone-chart-mark-off);
28
+ background: var(--newtone-chart-mark-off-fill);
29
29
  }
30
30
 
31
31
  .newtone-chart-key-label {
32
- color: var(--newtone-chart-label);
32
+ color: var(--newtone-chart-label-text);
33
33
  }
@@ -12,12 +12,34 @@
12
12
  align-items: flex-end;
13
13
  gap: 1px;
14
14
  height: 20rem;
15
- border-bottom: 1px solid var(--newtone-chart-axis);
15
+ border-bottom: 1px solid var(--newtone-chart-axis-border);
16
+ }
17
+
18
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
19
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
20
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
21
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
22
+ Repo blueprint section 4, *Breakpoints*. */
23
+ :where([data-newtone-breakpoints='container']) {
24
+ container: newtone-breakpoints / inline-size;
16
25
  }
17
26
 
18
27
  /* Filling a container is a wide-screen behaviour: below `stack` a container is not stretched, and a plot
19
28
  that took "the height left" would take none. The fixed heights hold there. */
20
29
  @media (min-width: 40.001rem) {
30
+ .newtone-column-chart[data-fill]:where(:not([data-newtone-breakpoints='container'] *)) {
31
+ height: 100%;
32
+ }
33
+
34
+ .newtone-column-chart[data-fill]
35
+ .newtone-column-chart-plot:where(:not([data-newtone-breakpoints='container'] *)) {
36
+ flex: 1;
37
+ min-height: 0;
38
+ height: auto;
39
+ }
40
+ }
41
+
42
+ @container newtone-breakpoints (min-width: 40.001rem) {
21
43
  .newtone-column-chart[data-fill] {
22
44
  height: 100%;
23
45
  }
@@ -37,22 +59,22 @@
37
59
  height: calc(var(--_column-chart-share) * 100%);
38
60
  overflow: hidden;
39
61
  border-radius: var(--newtone-chart-radius) var(--newtone-chart-radius) 0 0;
40
- background: var(--newtone-chart-mark);
62
+ background: var(--newtone-chart-mark-rest-fill);
41
63
  transform-origin: bottom;
42
64
  }
43
65
 
44
66
  .newtone-column-chart-column[data-tone='muted'] {
45
- background: var(--newtone-chart-mark-muted);
67
+ background: var(--newtone-chart-mark-muted-fill);
46
68
  }
47
69
 
48
70
  .newtone-column-chart-column[data-tone='off'] {
49
- background: var(--newtone-chart-mark-off);
71
+ background: var(--newtone-chart-mark-off-fill);
50
72
  }
51
73
 
52
74
  .newtone-column-chart-inner {
53
75
  flex: none;
54
76
  height: calc(var(--_column-chart-inner) * 100%);
55
- background: var(--newtone-chart-mark);
77
+ background: var(--newtone-chart-mark-rest-fill);
56
78
  }
57
79
 
58
80
  .newtone-column-chart-ticks {
@@ -64,7 +86,7 @@
64
86
  position: absolute;
65
87
  left: calc(var(--_column-chart-at) * 100%);
66
88
  transform: translateX(-50%);
67
- color: var(--newtone-chart-label);
89
+ color: var(--newtone-chart-label-text);
68
90
  white-space: nowrap;
69
91
  }
70
92
 
@@ -82,6 +104,13 @@
82
104
  }
83
105
 
84
106
  @media (max-width: 40rem) {
107
+ .newtone-column-chart-plot:where(:not([data-newtone-breakpoints='container'] *)) {
108
+ gap: 0;
109
+ height: 12rem;
110
+ }
111
+ }
112
+
113
+ @container newtone-breakpoints (max-width: 40rem) {
85
114
  .newtone-column-chart-plot {
86
115
  gap: 0;
87
116
  height: 12rem;
@@ -109,12 +109,13 @@
109
109
 
110
110
  /* ---- the rungs ----------------------------------------------------------
111
111
  *
112
- * 36, 40, 44 -- three of the ladder's five, and a rung below Button at every position.
113
- * contracts/button.md, *Sizes*.
112
+ * 36, 40, 44, 48 -- four of the ladder's five. The first three sit a rung below Button at every
113
+ * position; `xl` is the exception and its own rule below says why. contracts/button.md, *Sizes*.
114
114
  *
115
115
  * THE BORDER IS SUBTRACTED ONCE HERE so each rung states only its padding VALUE and the classes
116
- * describe the OUTER box: 20 + 2x8 = 36, 20 + 2x10 = 40, 20 + 2x12 = 44. The glyph is 20 at every
117
- * rung because every rung takes 14/20, so the padding alone moves the box.
116
+ * describe the OUTER box: 20 + 2x8 = 36, 20 + 2x10 = 40, 20 + 2x12 = 44, 24 + 2x12 = 48. The glyph
117
+ * is 20 on the three rungs that take 14/20, so on those the padding alone moves the box; `xl` takes
118
+ * 16/24 and a 24px glyph, and it is the leading that moves it.
118
119
  *
119
120
  * `--newtone-control-pad` IS SET PER RUNG AND READ BY THE BASE RULE, so a rung is three
120
121
  * declarations rather than a copy of the box. The published height below needs the two numbers by
@@ -140,6 +141,22 @@
140
141
  --newtone-control-text-leading: var(--newtone-control-size-lg-label-line-height);
141
142
  }
142
143
 
144
+ /* THE FOURTH RUNG, 2026-09-26, AND IT IS THE ONE THE PADDING DOES NOT MOVE. `xl` takes `lg`'s 12
145
+ * and is four pixels taller anyway, because it is the only rung on the 16/24 half of the ladder:
146
+ * 24 + 2x12 = 48. So the glyph moves instead -- `control.tsx`'s GLYPH map sends `xl` to `Icon`'s
147
+ * `md`, 24px -- and the pair is still both leaves of one step.
148
+ *
149
+ * ITS CALL SITES ARE ON A PHOTOGRAPH. Gallery's two arrows and VideoLightbox's close were 48px
150
+ * discs under `on-media.css`'s own box from 2026-09-07; this is the size they were already. 48 is
151
+ * also Button's `lg`, so an `xl` Control ties the tallest button in the system -- allowed here and
152
+ * nowhere else, because *a control is chrome and a button is the page speaking* is a sentence about
153
+ * a bar, and a photograph has no bar on it. contracts/button.md, *Sizes*. */
154
+ .newtone-control--xl {
155
+ --newtone-control-pad: var(--newtone-control-size-xl-padding);
156
+ --newtone-control-text-size: var(--newtone-control-size-xl-label-size);
157
+ --newtone-control-text-leading: var(--newtone-control-size-xl-label-line-height);
158
+ }
159
+
143
160
  /* A bare control needs NO rule of its own to be square, and the first draft of this sheet wrote two.
144
161
  *
145
162
  * `icon.css` gives the glyph an explicit `width` and `height` off `--newtone-icon-px`, so the
@@ -1,7 +1,7 @@
1
1
  import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
2
  export type ControlVariant = 'primary' | 'secondary';
3
3
  /**
4
- * Three rungs of the ladder's five: **36, 40, 44**.
4
+ * Four rungs of the ladder's five: **36, 40, 44, 48**.
5
5
  *
6
6
  * A CONTROL SITS A RUNG BELOW A BUTTON AT EVERY POSITION, and that is the design rather than an
7
7
  * accident of porting. A control is chrome -- a back arrow, a pager, a close -- and a page's Button
@@ -11,19 +11,29 @@ export type ControlVariant = 'primary' | 'secondary';
11
11
  * call site moves up a rung. `sm` at 36 is the size this component refused at 28 and has now
12
12
  * gained from the other end: not by lowering a floor, but because the floor became a closed set of
13
13
  * five heights -- newtone_ui_react-web.md section 5.
14
+ *
15
+ * `xl` ARRIVED 2026-09-26 AND IT IS THE ONE RUNG THAT BREAKS THE SENTENCE ABOVE. 48 is Button's
16
+ * `lg`, so an `xl` Control ties the tallest button this system offers -- and the argument *a bar
17
+ * full of controls as tall as the page's primary action* has a page in it. The three call sites
18
+ * that asked have none: Gallery's two arrows and VideoLightbox's close stand on a PHOTOGRAPH.
19
+ * contracts/button.md, *Sizes*, and components/control.md, *It is the cascade, and the class is the
20
+ * selector*.
14
21
  */
15
- export type ControlSize = 'sm' | 'md' | 'lg';
22
+ export type ControlSize = 'sm' | 'md' | 'lg' | 'xl';
16
23
  interface ControlCommon {
17
24
  /** A Material Symbols ligature -- `arrow_back`, `chevron_right`, `close`. */
18
25
  icon: string;
19
26
  /** `primary` is the soft outline, `secondary` the ghost. Neither is ever the accent. */
20
27
  variant?: ControlVariant;
21
28
  /**
22
- * Which rung: 36, 40 or 44. Defaults to `md`, which is 40.
29
+ * Which rung: 36, 40, 44 or 48. Defaults to `md`, which is 40.
23
30
  *
24
31
  * **`md` was 44 and `lg` was 56 until 2026-09-21**, so this default renders four pixels shorter
25
- * than it used to and `lg` twelve. A call site that wanted the old `md` now asks for `lg`; a
26
- * call site that wanted the old `lg` has no rung here and wants an `Action`.
32
+ * than it used to and `lg` twelve. A call site that wanted the old `md` now asks for `lg`.
33
+ *
34
+ * **`xl` is 48 and arrived 2026-09-26**, with the three on-media discs that had been rendering
35
+ * at that size since 2026-09-07. It is the only rung whose glyph is 24 rather than 20, because
36
+ * it is the only one on the 16/24 half of the ladder.
27
37
  */
28
38
  size?: ControlSize;
29
39
  /** Fill the glyph (the family's `FILL` axis). Defaults to outlined. */
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/control/control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAGvE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,CAAA;AACpD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AA+B5C,UAAU,aAAa;IACnB,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAA;IACZ,wFAAwF;IACxF,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,KAAK,WAAW,GACV;IACI,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,GACD;IACI,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAEP;;;;;GAKG;AACH,KAAK,cAAc,GACb,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,GAAG;IACxE,uEAAuE;IACvE,IAAI,CAAC,EAAE,SAAS,CAAA;CACnB,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IACjF,qFAAqF;IACrF,IAAI,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAER,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,WAAW,GAAG,cAAc,CAAA;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,OAAO,CAAC,EACpB,IAAI,EACJ,OAAmB,EACnB,IAAW,EACX,KAAK,EACL,SAAS,EACT,IAAY,EACZ,OAAe,EACf,KAAa,EACb,SAAS,EACT,GAAG,IAAI,EACV,EAAE,YAAY,+BAmEd"}
1
+ {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/control/control.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAGvE,MAAM,MAAM,cAAc,GAAG,SAA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