@newtone-dev/ui-react-web 0.2.0 → 0.5.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 (51) hide show
  1. package/README.md +40 -14
  2. package/dist/action/action.css +64 -5
  3. package/dist/action/action.d.ts +22 -1
  4. package/dist/action/action.d.ts.map +1 -1
  5. package/dist/action/action.js +16 -2
  6. package/dist/action/action.js.map +1 -1
  7. package/dist/button/button.css +81 -5
  8. package/dist/button/button.d.ts +24 -1
  9. package/dist/button/button.d.ts.map +1 -1
  10. package/dist/button/button.js +12 -2
  11. package/dist/button/button.js.map +1 -1
  12. package/dist/control/control.css +49 -23
  13. package/dist/control/control.d.ts +33 -9
  14. package/dist/control/control.d.ts.map +1 -1
  15. package/dist/control/control.js +31 -17
  16. package/dist/control/control.js.map +1 -1
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +1 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/navbar/link/drawer/drawer.css +4 -3
  22. package/dist/navbar/link/link.css +15 -3
  23. package/dist/navbar/menu-button/menu-button.css +10 -3
  24. package/dist/navbar/navbar.css +186 -4
  25. package/dist/navbar/navbar.d.ts +33 -1
  26. package/dist/navbar/navbar.d.ts.map +1 -1
  27. package/dist/navbar/navbar.js +4 -2
  28. package/dist/navbar/navbar.js.map +1 -1
  29. package/dist/page/band.d.ts +52 -0
  30. package/dist/page/band.d.ts.map +1 -0
  31. package/dist/page/band.js +36 -0
  32. package/dist/page/band.js.map +1 -0
  33. package/dist/page/index.d.ts +4 -0
  34. package/dist/page/index.d.ts.map +1 -0
  35. package/dist/page/index.js +8 -0
  36. package/dist/page/index.js.map +1 -0
  37. package/dist/page/page.css +240 -0
  38. package/dist/page/page.d.ts +137 -0
  39. package/dist/page/page.d.ts.map +1 -0
  40. package/dist/page/page.js +29 -0
  41. package/dist/page/page.js.map +1 -0
  42. package/dist/quick-action/quick-action.css +36 -7
  43. package/dist/quick-action/quick-action.d.ts +26 -6
  44. package/dist/quick-action/quick-action.d.ts.map +1 -1
  45. package/dist/quick-action/quick-action.js +11 -7
  46. package/dist/quick-action/quick-action.js.map +1 -1
  47. package/dist/wrapper/wrapper.d.ts +11 -2
  48. package/dist/wrapper/wrapper.d.ts.map +1 -1
  49. package/dist/wrapper/wrapper.js +5 -1
  50. package/dist/wrapper/wrapper.js.map +1 -1
  51. package/package.json +6 -1
@@ -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,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,CAAA;AA0BrC,UAAU,aAAa;IACnB,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAA;IACZ,wFAAwF;IACxF,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;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,C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AM,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,SAAS,EACT,GAAG,IAAI,EACV,EAAE,YAAY,+BAkEd"}
@@ -3,9 +3,12 @@ import { Icon } from '../icon/index.js';
3
3
  /**
4
4
  * THE GLYPH SIZE THAT PAIRS WITH EACH CONTROL SIZE'S LABEL LEADING. Read the map, not the letter.
5
5
  *
6
- * `md` IS 20px AND `lg` IS 24px FROM 2026-09-16, and the numbers are not a preference: a glyph is
7
- * sized to the leading of the text it sits with, so 20px goes with 14/20 and 24px with 16/24 --
8
- * governance/code/an-icon-and-the-text-beside-it-share-one-size-and-leading-pair.md.
6
+ * EVERY RUNG IS 20px FROM 2026-09-21, and the map is kept rather than collapsed to a constant. A
7
+ * glyph is sized to the leading of the text it sits with, so 20px goes with 14/20 and 24px with
8
+ * 16/24 -- governance/code/an-icon-and-the-text-beside-it-share-one-size-and-leading-pair.md. All
9
+ * three of this component's rungs take 14/20, so all three take the 20px mark; the map stays
10
+ * because the pairing is the fact, and a fourth rung at 48 would take 16/24 and a 24px mark. A
11
+ * constant here would have to be re-derived into a map on that day.
9
12
  *
10
13
  * IT WAS `{ md: 'md', lg: 'lg' }` -- 24px and 32px -- AND THAT PAIRED NOTHING. The label was
11
14
  * `typography.size.sm` (14) with `typography.line-height.tight` (1.2), so a 24px mark stood against
@@ -13,16 +16,18 @@ import { Icon } from '../icon/index.js';
13
16
  * expressed at all until `typography.step` existed, because four ratios across nine sizes let 14px
14
17
  * reach 16.8, 18.9, 21 or 23.8 and never 20. contracts/typography.md section 7.2.
15
18
  *
16
- * THE BOX SHRINKS WITH THE GLYPH and that is the design, not a side effect: the padding is one
17
- * value per size so that equal padding around one glyph reads as a square. md is 20 + 2x12 = 44,
18
- * which is the floor this library argues for rather than a number near it, and lg is 24 + 2x16 = 56.
19
- * Holding 48 would have meant a `space` value of 14 whose only job was to leave one box undisturbed.
19
+ * THE BOX IS EQUAL PADDING AROUND ONE GLYPH, so with the glyph fixed at 20 the padding alone moves
20
+ * the box: 20 + 2x8 = 36, 20 + 2x10 = 40, 20 + 2x12 = 44. Those are three rungs of the ladder in
21
+ * contracts/button.md, *Sizes*, and 10 is the one padding value the quarter-rem `space` scale did
22
+ * not have -- `space.2-5` arrived with them.
20
23
  *
21
- * NO PAIR EXISTS FOR A 32px GLYPH and none was invented to keep `lg` where it was. Nothing has ever
22
- * rendered a non-media `lg` -- see the component blueprint -- so it is the cheapest size in the
23
- * library to move, and a 22/32 step is one line the day a call site asks for one.
24
+ * NO PAIR EXISTS FOR A 32px GLYPH and none was invented when `lg` was 56. Nothing had ever rendered
25
+ * a non-media `lg`, so it was the cheapest size in the library to move, and it has now moved twice:
26
+ * 32 to 24 on 2026-09-16, 24 to 20 on 2026-09-21. A 22/32 step is one line the day a call site asks
27
+ * -- and a more expensive line than it was, since contracts/typography.md section 7.2.1 closed the
28
+ * set at two and a third pair now has to say which rung spends it.
24
29
  */
25
- const GLYPH = { md: 'sm', lg: 'md' };
30
+ const GLYPH = { sm: 'sm', md: 'sm', lg: 'sm' };
26
31
  /**
27
32
  * A glyph you press to move around a page rather than to act on it: a deck's previous and next, a
28
33
  * step back, a panel opened.
@@ -50,13 +55,22 @@ const GLYPH = { md: 'sm', lg: 'md' };
50
55
  * draws *Previous* and *Next* beside the glyphs. Both breaks are argued in
51
56
  * `components/control.md`; neither is a rule that was copied past without being read.
52
57
  *
53
- * ---- there is no `sm`, and 44 is why -------------------------------------
58
+ * ---- `sm` came back at 36, and not by lowering a floor ---------------------
54
59
  *
55
- * The reference ships `sm` at **28px**. `icon-link.tsx` in this library already argues that 44px is
56
- * a floor rather than a taste -- the smallest target a finger reliably hits, the same number on
57
- * every platform -- and draws a 2.75rem box for it. **A library cannot hold both sentences.** `md`
58
- * is 48 and `lg` is 64, and a control smaller than the floor needs a call site that can say why the
59
- * floor does not apply to it.
60
+ * The reference ships `sm` at **28px**. `icon-link.tsx` in this library argues that 44px is a floor
61
+ * rather than a taste -- the smallest target a finger reliably hits, the same number on every
62
+ * platform -- and draws a 2.75rem box for it. **A library cannot hold both sentences**, so this one
63
+ * shipped nothing under 44 and carried a trigger for a call site that could say why the floor did
64
+ * not apply to it.
65
+ *
66
+ * THAT TRIGGER NEVER FIRED. What changed on 2026-09-21 is that the floor became a LADDER -- five
67
+ * heights, closed -- and this component's three rungs on it are 36, 40 and 44. **28 is still
68
+ * refused, and for a better reason than before**: it is not on the ladder. A floor only refuses
69
+ * what is under it, so 41 and 47 were conformant and neither is a decision; a closed set can ask
70
+ * the question a floor cannot, which is *is this number one of five*.
71
+ *
72
+ * newtone_ui_react-web.md section 5 carries the amended invariant and why 44 (WCAG 2.5.5, AAA) gave
73
+ * way to 36 (clear of 2.5.8's 24x24, AA).
60
74
  *
61
75
  * ---- no transition, and that is a vocabulary this library does not have ----
62
76
  *
@@ -1 +1 @@
1
- {"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/control/control.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAiB,MAAM,kBAAkB,CAAA;AAKtD;;;;;;;;;;;;;;;;;;;;;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AAS;KACZ;SACI,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAA;IAEd,6FAA6F;IAC7F,8FAA8F;IAC9F,oCAAoC;IACpC,EAAE;IACF,+FAA+F;IAC/F,+FAA+F;IAC/F,0FAA0F;IAC1F,EAAE;IACF,4FAA4F;IAC5F,+FAA+F;IAC/F,+FAA+F;IAC/F,8FAA8F;IAC9F,cAAc;IACd,MAAM,KAAK,GAAG,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CAAA;IACjE,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAQ,CAAA;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CACtB,8BACK,IAAI,EACJ,KAAK,IACP,CACN,CAAC,CAAC,CAAC,CACA,8BACK,KAAK,EACL,IAAI,IACN,CACN,CAAA;IAED,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,IAG3B,CAAA;QACD,OAAO,CACH,YAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,gBAAc,SAAS,KAAM,MAAM,YAC/D,OAAO,GACR,CACP,CAAA;IACL,CAAC;IAED,OAAO,CACH,iBACI,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,OAAO,gBACN,SAAS,KAChB,IAAgD,YAEpD,OAAO,GACH,CACZ,CAAA;AACL,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export type { ButtonProps, ButtonVariant } from './button/index.js';
7
7
  export { Link } from './link/index.js';
8
8
  export type { LinkProps, LinkVariant } from './link/index.js';
9
9
  export { Text } from './text/index.js';
10
- export type { TextProps, TextScale, TextFont, TextWeight, TextCase, TextFigures } from './text/index.js';
10
+ export type { TextProps, TextScale, TextFont, TextWeight, TextCase, TextFigures, } from './text/index.js';
11
11
  export { Navbar } from './navbar/index.js';
12
12
  export type { NavbarProps, NavbarBrandProps, NavbarLinksProps, NavbarLinkProps, NavbarActionsProps, NavbarMenuButtonProps, } from './navbar/index.js';
13
13
  export { Identity } from './identity/index.js';
@@ -52,6 +52,8 @@ export { Action } from './action/index.js';
52
52
  export type { ActionProps } from './action/index.js';
53
53
  export { QuickAction } from './quick-action/index.js';
54
54
  export type { QuickActionProps } from './quick-action/index.js';
55
+ export { Page } from './page/index.js';
56
+ export type { PageProps } from './page/index.js';
55
57
  export { maxChroma, deriveScale, seedProperties, validateSeeds, oklchToHex, oklchToLinearSrgb, hexToOklch, cssNumber, STEPS, } from './color/index.js';
56
58
  export type { Oklch, Gamut, PaletteStep, Seed, SeedGroup, Seeds } from './color/index.js';
57
59
  //# sourceMappingURL=index.d.ts.map
@@ -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,I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AS,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/dist/index.js CHANGED
@@ -25,5 +25,6 @@ export { DataList } from './data-list/index.js';
25
25
  export { Control } from './control/index.js';
26
26
  export { Action } from './action/index.js';
27
27
  export { QuickAction } from './quick-action/index.js';
28
+ export { Page } from './page/index.js';
28
29
  export { maxChroma, deriveScale, seedProperties, validateSeeds, oklchToHex, oklchToLinearSrgb, hexToOklch, cssNumber, STEPS, } from './color/index.js';
29
30
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAQ5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAS1C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,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X,cAAc,EACd,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,KAAK,GACR,MAAM,kBAAkB,CAAA"}
@@ -23,9 +23,9 @@
23
23
  cursor: pointer;
24
24
  font: inherit;
25
25
  font-family: var(--newtone-navbar-link-label-family);
26
- font-size: var(--newtone-navbar-link-label-size);
26
+ font-size: var(--newtone-navbar-link-text-size);
27
27
  font-weight: var(--newtone-navbar-link-label-weight);
28
- line-height: var(--newtone-navbar-link-label-line-height);
28
+ line-height: var(--newtone-navbar-link-text-leading);
29
29
  }
30
30
 
31
31
  .newtone-navbar-drawer {
@@ -34,7 +34,8 @@
34
34
  top: calc(100% + var(--newtone-navbar-padding-y));
35
35
  left: 0;
36
36
  min-width: 14rem;
37
- padding: var(--newtone-navbar-link-padding-y) var(--newtone-navbar-link-padding-x);
37
+ padding: var(--newtone-navbar-link-pad-y)
38
+ calc(var(--newtone-navbar-link-pad-y) + var(--newtone-navbar-link-gap));
38
39
  background: var(--newtone-navbar-bar-fill);
39
40
  border: 1px solid var(--newtone-navbar-bar-border);
40
41
  border-radius: var(--newtone-navbar-link-radius);
@@ -1,11 +1,23 @@
1
1
  .newtone-navbar-link {
2
2
  display: inline-flex;
3
3
  align-items: center;
4
- padding: var(--newtone-navbar-link-padding-y) var(--newtone-navbar-link-padding-x);
4
+ /* THE RUNG IS DECLARED ON THE BAR AND RESOLVED HERE, and this component takes no size prop of
5
+ * its own. A bar whose link and whose call to action could be sized separately is the defect
6
+ * the ladder was written from: 12/14.4 at 30.4px beside a Button at 16/19.2 and 37.2, two
7
+ * sizes on one line at one semantic level.
8
+ * governance/code/one-row-of-chrome-states-its-height-once.md, and navbar.css for the rungs. */
9
+ /* DERIVED, NOT AUTHORED -- see button.css. A link has no border, so nothing is subtracted:
10
+ * `pad-y` on the block axis, `pad-y + gap` on the inline one. At `md` that is 12 and 20. */
11
+ padding: var(--newtone-navbar-link-pad-y)
12
+ calc(var(--newtone-navbar-link-pad-y) + var(--newtone-navbar-link-gap));
5
13
  font-family: var(--newtone-navbar-link-label-family);
6
- font-size: var(--newtone-navbar-link-label-size);
14
+ font-size: var(--newtone-navbar-link-text-size);
7
15
  font-weight: var(--newtone-navbar-link-label-weight);
8
- line-height: var(--newtone-navbar-link-label-line-height);
16
+ line-height: var(--newtone-navbar-link-text-leading);
17
+
18
+ /* PUBLISHED, NEVER DECLARED -- issues/open/156. A link has no border, so the box is the leading
19
+ * plus twice the padding. Read it; writing it changes no geometry. */
20
+ --newtone-navbar-link-height: calc(var(--newtone-navbar-link-text-leading) + 2 * var(--newtone-navbar-link-pad-y));
9
21
  text-decoration: none;
10
22
  border-radius: var(--newtone-navbar-link-radius);
11
23
  }
@@ -3,11 +3,18 @@
3
3
  .newtone-navbar-menu-button {
4
4
  display: none;
5
5
  align-items: center;
6
- padding: var(--newtone-navbar-link-padding-y) var(--newtone-navbar-link-padding-x);
6
+ /* IT SPENDS THE LINK'S RUNG, which the bar declared -- so the disclosure, the links and a
7
+ * Button in `actions` are all one height and one type pair. It carries a border where a link
8
+ * does not, so its box is one pixel taller on each side and that is the border, not a rung. */
9
+ /* THE BORDER IS SUBTRACTED FROM THE BLOCK PADDING, as it is on Button and Action. A link has
10
+ * no border and this does, so without the subtraction the disclosure would render two pixels
11
+ * taller than the links it sits beside -- in a row whose whole point is one height. */
12
+ padding: calc(var(--newtone-navbar-link-pad-y) - 1px)
13
+ calc(var(--newtone-navbar-link-pad-y) + var(--newtone-navbar-link-gap) - 1px);
7
14
  font-family: var(--newtone-navbar-link-label-family);
8
- font-size: var(--newtone-navbar-link-label-size);
15
+ font-size: var(--newtone-navbar-link-text-size);
9
16
  font-weight: var(--newtone-navbar-link-label-weight);
10
- line-height: var(--newtone-navbar-link-label-line-height);
17
+ line-height: var(--newtone-navbar-link-text-leading);
11
18
  background: var(--newtone-navbar-link-elsewhere-rest-fill);
12
19
  color: var(--newtone-navbar-link-elsewhere-rest-text);
13
20
  border: 1px solid var(--newtone-navbar-bar-border);
@@ -75,15 +75,141 @@
75
75
  box-sizing: border-box;
76
76
  display: flex;
77
77
  align-items: center;
78
- gap: var(--newtone-navbar-gap);
79
- min-block-size: calc(var(--newtone-navbar-min-block-size) + var(--newtone-navbar-hairline));
80
- padding: var(--newtone-navbar-padding-y) var(--newtone-navbar-padding-x);
78
+ /* THE GAP MOVED TO THE TRACK on 2026-09-21. The header now holds one child. */
79
+
80
+ /* A FIXED HEIGHT FROM 2026-09-21 LATE, WHERE IT WAS A FLOOR. Joshua: *"navbars should always
81
+ * measure 64px + 1px border, 65 in total."* It was `min-block-size` from 2026-09-17, and the
82
+ * contract argued the floor deliberately -- content taller than the 48px budget GREW the bar
83
+ * rather than losing its tail, so the component owed neither an overflow check nor a clip.
84
+ *
85
+ * WHAT CHANGED IS THAT THE BUDGET BECAME ENFORCEABLE. A floor was the honest answer while a bar
86
+ * could hold anything of any height; the control ladder closed that set, and the tallest rung a
87
+ * bar spends is `lg` at 48 -- which is the budget exactly. `always` is now a promise the
88
+ * component can keep rather than a number it hopes for. contracts/button.md, *Sizes*.
89
+ *
90
+ * A SITE THAT NEEDS A DIFFERENT BAR STILL SETS ITS OWN `height`, at one class, loading later --
91
+ * `harbour-space_website`'s masthead is 80 at wide and 64 narrow and is unaffected. That is the
92
+ * hatch, and it is the same one it was already using. */
93
+ block-size: calc(var(--newtone-navbar-min-block-size) + var(--newtone-navbar-hairline));
94
+
95
+ /* THE INLINE HALF IS THE PAGE'S GUTTER WHEN THERE IS A PAGE, since 2026-09-21 late, and this
96
+ bar's own token when there is not. contracts/navbar.md, *Parts*.
97
+ *
98
+ * WHAT IT BUYS IS A VERTICAL LINE. The ground runs edge to edge and the contents do not, so the
99
+ * only thing that puts the first word of a page under the mark in this bar is the two of them
100
+ * spending ONE number -- and knowledge/shared/the-width-ladder.md records two sites writing that
101
+ * alignment by hand, independently, with the same arithmetic error in it both times.
102
+ *
103
+ * READING ANOTHER GROUP'S NAME IS PERMITTED HERE BECAUSE A LENGTH HAS NO AREA, which is the
104
+ * reasoning blueprints/newtone/repos/newtone_ui_react-web.md section 5 already carried for
105
+ * `Wrapper` spending core space steps. The two alternatives are both worse and both already
106
+ * named: a consumer writing this padding is the 2026-09-18 debt, and the page writing
107
+ * `--newtone-navbar-padding-x` onto this element is that same debt with the library holding the
108
+ * pen.
109
+ *
110
+ * THE FALLBACK IS WHAT KEEPS IT HONEST. A bar outside a page resolves its own token and nothing
111
+ * about it changed -- `atril_web`'s document bar is that case, and four sites that override this
112
+ * padding by hand are untouched, because their sheets load after this one. */
113
+ padding: var(--newtone-navbar-padding-y)
114
+ var(--newtone-page-gutter, var(--newtone-navbar-padding-x));
81
115
  background: var(--newtone-navbar-bar-fill);
82
116
  border-bottom: var(--newtone-navbar-hairline) solid var(--newtone-navbar-bar-border);
83
117
 
84
118
  --newtone-navbar-hairline: 1px;
85
119
  }
86
120
 
121
+ /* ---- the strip above the bar --------------------------------------------
122
+ *
123
+ * THE BAR'S FILL, CONTINUED UPWARD PAST ITS OWN TOP EDGE. Added 2026-09-21 --
124
+ * governance/code/a-band-that-meets-an-over-scroll-edge-paints-past-its-own-box.md, and
125
+ * blueprints/newtone/contracts/navbar.md, *Parts*.
126
+ *
127
+ * WHAT IT IS FOR. Pull a page past its own top edge on a trackpad and what shows above the bar is
128
+ * THE CANVAS -- `<html>`'s background, the one surface on a page no component owns, and one colour
129
+ * for a page that may have two grounds. So the bar answers for its own end rather than asking the
130
+ * page to be painted for it. It is also the bar's OWN colour, which is the second half of why it is
131
+ * here: a page shell painting this strip would be reading `navbar.bar.*.fill` from outside the group
132
+ * that owns it.
133
+ *
134
+ * IT COSTS NO SCROLL AND THAT IS NOT LUCK. Overflow above the origin is not scrollable, so this adds
135
+ * no scrollbar and no page height. The footer at the other end of the page CANNOT use this spelling
136
+ * for exactly that reason -- overflow below the bottom IS scrollable -- and uses a spread shadow
137
+ * instead. `node tools/check-page-paint.mjs <url>` is the measurement.
138
+ *
139
+ * WHEN THE BAR IS STUCK, THIS IS ABOVE THE VIEWPORT AND UNPAINTABLE. It resolves against the bar,
140
+ * which is `position: sticky` and therefore positioned; at any scroll position past the top the bar's
141
+ * own box is at the viewport's top edge, so everything above it is off screen. The only moment this
142
+ * shows is `scrollTop <= 0`, which is the moment it is for.
143
+ *
144
+ * WHAT WOULD BREAK IT: a bar that is not the first thing in the document. All six consumers render
145
+ * `<Navbar>` first -- checked, 2026-09-21 -- and a bar with content above it would have this paint
146
+ * lying over that content. The bar's own `top: 0` already assumes the same thing, so this does not
147
+ * add an assumption; it makes an existing one visible. */
148
+ .newtone-navbar::before {
149
+ content: '';
150
+ position: absolute;
151
+ inset-block-end: 100%;
152
+ inset-inline: 0;
153
+ block-size: 100vh;
154
+ background: var(--newtone-navbar-bar-fill);
155
+ pointer-events: none;
156
+ }
157
+
158
+ /* ---- the track ----------------------------------------------------------
159
+ *
160
+ * THE ROW. Added 2026-09-21 so the bar can be full-bleed and its contents capped at once, which one
161
+ * box cannot be. contracts/navbar.md, *Parts*.
162
+ *
163
+ * `flex: 1` FILLS WHAT THE HEADER'S PADDING LEAVES, so with no cap this computes exactly the box the
164
+ * bar computed before the track existed and five consumers see no change. `max-inline-size` is set
165
+ * inline by the component only when a caller passed one; `margin-inline: auto` then centres the
166
+ * capped row in what is left.
167
+ *
168
+ * THE PADDING IS NOT HERE AND THAT IS LOAD-BEARING. Four consuming sites write `padding-inline`
169
+ * against `.newtone-navbar`. Moving it inward would have left all four insetting the GROUND
170
+ * instead of the row -- a colour, so the first visible symptom would have been the hairline
171
+ * stopping short of the screen edge, which nothing in this house measures.
172
+ *
173
+ * IT IS DELIBERATELY NOT POSITIONED. The collapsed panel below is `position: absolute; top: 100%;
174
+ * left: 0; right: 0`, and it must resolve against the STICKY HEADER: a panel that resolved against
175
+ * a capped track would stop at the cap instead of spanning the screen. Giving this rule a
176
+ * `position` is the one edit here that would break a phone and nothing else. */
177
+ .newtone-navbar-track {
178
+ flex: 1;
179
+ display: flex;
180
+ align-items: center;
181
+ gap: var(--newtone-navbar-gap);
182
+ margin-inline: auto;
183
+ min-inline-size: 0;
184
+ }
185
+
186
+ /* ---- the rungs ----------------------------------------------------------
187
+ *
188
+ * 40, 44, 48 -- Button's three, spent by the link and the menu button. Declared on the BAR and
189
+ * resolved by both, which is governance/code/one-row-of-chrome-states-its-height-once.md: one
190
+ * number, above them, rather than two components computing their way to the same one.
191
+ *
192
+ * EACH RUNG NAMES BOTH LEAVES OF ONE STEP. The link read `typography.size.xs` on a ratio until
193
+ * 2026-09-21 -- 12/14.4, a number nobody chose -- beside a Button at 16/19.2. That is the defect
194
+ * this whole ladder was written from. */
195
+ .newtone-navbar--sm {
196
+ --newtone-navbar-link-pad-y: var(--newtone-navbar-link-size-sm-padding-y);
197
+ --newtone-navbar-link-text-size: var(--newtone-navbar-link-size-sm-label-size);
198
+ --newtone-navbar-link-text-leading: var(--newtone-navbar-link-size-sm-label-line-height);
199
+ }
200
+
201
+ .newtone-navbar--md {
202
+ --newtone-navbar-link-pad-y: var(--newtone-navbar-link-size-md-padding-y);
203
+ --newtone-navbar-link-text-size: var(--newtone-navbar-link-size-md-label-size);
204
+ --newtone-navbar-link-text-leading: var(--newtone-navbar-link-size-md-label-line-height);
205
+ }
206
+
207
+ .newtone-navbar--lg {
208
+ --newtone-navbar-link-pad-y: var(--newtone-navbar-link-size-lg-padding-y);
209
+ --newtone-navbar-link-text-size: var(--newtone-navbar-link-size-lg-label-size);
210
+ --newtone-navbar-link-text-leading: var(--newtone-navbar-link-size-lg-label-line-height);
211
+ }
212
+
87
213
  /* What this margin does to the position of the links and the actions, why no prop exposes it, and
88
214
  which of the two centres a site writes for itself: blueprints/newtone/contracts/navbar.md,
89
215
  "Where the parts sit", and the `align` row in "Deliberately not in v1".
@@ -115,6 +241,59 @@
115
241
  gap: var(--newtone-navbar-gap);
116
242
  }
117
243
 
244
+ /* ---- the centre ---------------------------------------------------------
245
+ *
246
+ * EQUAL SIDE TRACKS, SO THE LINKS LAND ON THE PAGE'S CENTRE. Added 2026-09-21 --
247
+ * contracts/navbar.md, "Where the parts sit", which carries these three lines and the overrule
248
+ * that put them here.
249
+ *
250
+ * WHAT THIS REPLACES. The brand's `margin-right: auto` above pinned links and actions to the far
251
+ * edge, and the contract argued for five days that the bar should ship no centre at all. It
252
+ * stopped arguing that when somebody asked: Joshua, 2026-09-21, *"I don't know why the navLink
253
+ * are next to the main CTA but they shouldn't, they should be centered, and this is true for
254
+ * other websites."* The `align` PROP is still refused and its trigger is still unfired -- what
255
+ * moved is which arrangement the library ships, not how many it offers.
256
+ *
257
+ * WHY NOT ONE DECLARATION. Cancelling the brand's margin alone centres the links in the GAP
258
+ * between the brand and the actions, which is the page's centre only when those two happen to be
259
+ * the same width. `adenario_website` found that on 2026-09-13 and wrote these three instead;
260
+ * eight days later they moved here unchanged. Equal tracks are indifferent to what they contain,
261
+ * which is the property being bought.
262
+ *
263
+ * WHY NOT A GRID. `minmax(0, 1fr) auto minmax(0, 1fr)` reaches the same centre by construction and
264
+ * is what the reference bar does -- and it would change this component's layout model. The
265
+ * collapsed panel below is THIS FLEX ROW turned into a column, and five consumers copy those rules
266
+ * to move their own breakpoint. Equal flex tracks cost none of that.
267
+ *
268
+ * THE GATE IS NOT DECORATION. Below 48rem the links leave the row and become the panel, so there
269
+ * is nothing left in the bar to centre and the two remaining parts want opposite ends -- the
270
+ * brand keeps its `margin-right: auto` and nothing here applies. The literal is the same one the
271
+ * collapse uses and the same one five site stylesheets carry; `node tools/check-breakpoints.mjs`
272
+ * counts them.
273
+ *
274
+ * WHAT WOULD BREAK IT: a bar with `Links` and no `Actions`. With the right-hand track absent the
275
+ * links take the far edge while looking like they were centred. Checked across all six consumers
276
+ * before this shipped -- every bar that renders `Links` also renders `Actions`, and the one that
277
+ * renders neither (`atril_web`'s document bar, `Brand` alone) computes the identical box, because
278
+ * `flex: 1 1 0` on a lone free-space taker is `margin-right: auto` by another name. If that bar
279
+ * ever exists, it decides between a fourth declaration and a `:has()`, and it is not decided here
280
+ * in advance. */
281
+ @media (min-width: 48rem) {
282
+ .newtone-navbar-brand {
283
+ margin-right: 0;
284
+ flex: 1 1 0;
285
+ }
286
+
287
+ .newtone-navbar-links {
288
+ flex: 0 0 auto;
289
+ }
290
+
291
+ .newtone-navbar-actions {
292
+ flex: 1 1 0;
293
+ justify-content: flex-end;
294
+ }
295
+ }
296
+
118
297
  /* :focus-visible, not :focus, per contracts/button.md. A navbar is the first thing a keyboard
119
298
  reaches on every page, so of everywhere focus could be missing, here is the worst. */
120
299
  .newtone-navbar-link:focus-visible,
@@ -153,7 +332,10 @@
153
332
  display: none;
154
333
  flex-direction: column;
155
334
  align-items: stretch;
156
- padding: var(--newtone-navbar-padding-y) var(--newtone-navbar-padding-x);
335
+ /* The same expression as the bar's, for the same reason one level down: the panel hangs off
336
+ the bar and a reader sees the two edges at once. */
337
+ padding: var(--newtone-navbar-padding-y)
338
+ var(--newtone-page-gutter, var(--newtone-navbar-padding-x));
157
339
  background: var(--newtone-navbar-bar-fill);
158
340
  border-bottom: 1px solid var(--newtone-navbar-bar-border);
159
341
  }
@@ -26,10 +26,42 @@ import { NavbarMenuButton } from './menu-button/menu-button.js';
26
26
  * **This is the one contract that binds a single library.** A navbar is a website component and
27
27
  * newtone_ui_swift and newtone_ui_android do not build websites. See ../DECISIONS.md.
28
28
  */
29
+ /**
30
+ * Which rung the whole row spends -- 40, 44 or 48. `Button`'s ladder, and the bar's links and menu
31
+ * button resolve it rather than carrying a size of their own.
32
+ *
33
+ * THAT IS THE POINT OF PUTTING IT HERE. On 2026-09-21 this bar rendered a 12/14.4 link at 30.4px
34
+ * beside a Button at 16/19.2 and 37.2 -- two sizes and two heights on one line, both navigation
35
+ * chrome at one semantic level. governance/code/one-row-of-chrome-states-its-height-once.md:
36
+ * *declare the height once, above them, and let both resolve it, never tune one component's
37
+ * padding until it happens to equal the other's.*
38
+ */
39
+ export type NavbarSize = 'sm' | 'md' | 'lg';
29
40
  export interface NavbarProps extends HTMLAttributes<HTMLElement> {
30
41
  /** Controlled open state for the collapsed menu. Omit for uncontrolled. */
31
42
  open?: boolean;
32
43
  onOpenChange?: (open: boolean) => void;
44
+ /**
45
+ * Which rung the row spends. Defaults to `md` -- 44px on 14/20.
46
+ *
47
+ * A site putting a `Button` in `actions` passes it the same rung, and then the whole row is one
48
+ * height and one type pair by construction rather than by matching.
49
+ */
50
+ size?: NavbarSize;
51
+ /**
52
+ * The bar's **own** maximum content width -- any CSS length. Omitted means uncapped, which is
53
+ * what every bar rendered before this existed, so a consumer that has never asked for one sees
54
+ * no change.
55
+ *
56
+ * **IT IS NOT THE PAGE'S MEASURE AND MUST NOT BE WIRED TO ONE.** Joshua, 2026-09-21: *"the
57
+ * navbar should be independent of the page width... at least the main navbar variant should
58
+ * take full-width and a max-width, just like all pages do. It's just that they should not be
59
+ * linked together."* A site that wants them equal passes the same value in both places and has
60
+ * SAID so; a site that wants them different is not fighting this component to get there.
61
+ *
62
+ * It caps the TRACK. The bar's ground and its hairline run edge to edge at every width.
63
+ */
64
+ maxInlineSize?: string;
33
65
  children?: ReactNode;
34
66
  }
35
67
  /**
@@ -47,7 +79,7 @@ export interface NavbarProps extends HTMLAttributes<HTMLElement> {
47
79
  * An IntersectionObserver rather than a scroll handler: a scroll handler runs on every frame of
48
80
  * every scroll to answer a question whose answer changes twice a page.
49
81
  */
50
- export declare function Navbar({ open: openProp, onOpenChange, className, children, ...rest }: NavbarProps): import("react").JSX.Element;
82
+ export declare function Navbar({ open: openProp, onOpenChange, size, maxInlineSize, className, children, ...rest }: NavbarProps): import("react").JSX.Element;
51
83
  export declare namespace Navbar {
52
84
  export { NavbarBrand as Brand };
53
85
  export { NavbarLinks as Links };
@@ -1 +1 @@
1
- {"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../src/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAMH,KAAK,cAAc,EACnB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB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;AAE3C,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5D,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,IAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,WAAW,+BAoGb;yBA5Ge,MAAM;aAsHP,WAAW;aACX,WAAW;aACZ,UAAU;aACP,aAAa;aACV,gBAAgB"}
@@ -21,7 +21,7 @@ import { NavbarMenuButton } from './menu-button/menu-button.js';
21
21
  * An IntersectionObserver rather than a scroll handler: a scroll handler runs on every frame of
22
22
  * every scroll to answer a question whose answer changes twice a page.
23
23
  */
24
- export function Navbar({ open: openProp, onOpenChange, className, children, ...rest }) {
24
+ export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSize, className, children, ...rest }) {
25
25
  const [openState, setOpenState] = useState(false);
26
26
  const [scrolled, setScrolled] = useState(false);
27
27
  const [collapsible, setCollapsible] = useState(false);
@@ -78,7 +78,9 @@ export function Navbar({ open: openProp, onOpenChange, className, children, ...r
78
78
  document.body.style.overflow = previous;
79
79
  };
80
80
  }, [open]);
81
- return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true" }), _jsx("header", { ...rest, className: ['newtone-navbar', className].filter(Boolean).join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, children: children })] }));
81
+ return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true" }), _jsx("header", { ...rest, className: ['newtone-navbar', `newtone-navbar--${size}`, className]
82
+ .filter(Boolean)
83
+ .join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined ? undefined : { maxInlineSize }, children: children }) })] }));
82
84
  }
83
85
  /**
84
86
  * The parts hang off `Navbar` and are exported nowhere else.
@@ -1 +1 @@
1
- {"version":3,"file":"navbar.js","sourceRoot":"","sources":["../../src/navbar/navbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,GAGX,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAoC/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACG;IACV,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,CAAC,QAAQ,EAAE,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,SAAS,CAAC;qBAC9D,MAAM,CAAC,OAAO,CAAC;qBACf,IAAI,CAAC,GAAG,CAAC,kCACgB,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,mCACxB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,qCACnB,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YAgB7D,cACI,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAE,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,YAEjE,QAAQ,GACP,GACD,IACY,CAC5B,CAAA;AACL,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,GAAG,WAAW,CAAA;AAC1B,MAAM,CAAC,KAAK,GAAG,WAAW,CAAA;AAC1B,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA;AACxB,MAAM,CAAC,OAAO,GAAG,aAAa,CAAA;AAC9B,MAAM,CAAC,UAAU,GAAG,gBAAgB,CAAA"}
@@ -0,0 +1,52 @@
1
+ import { type Elevation, type Mode, type Theme } from '../surface/index.js';
2
+ import type { ElementType, HTMLAttributes, ReactNode } from 'react';
3
+ export interface PageBandProps extends HTMLAttributes<HTMLElement> {
4
+ /** The band's element. Omitted means `section`. */
5
+ as?: ElementType;
6
+ /**
7
+ * Forwarded to the band's `Surface`, unread.
8
+ *
9
+ * **This is what an edge-to-edge section is made of.** A band's whole reason to exist is that it
10
+ * paints a ground the page's own ground does not -- so these three are not incidental to the
11
+ * component, they are its content. It still learns nothing: `Surface` writes the attribute, the
12
+ * generated block resolves against it, and nothing in this file knows that `emphasis` exists.
13
+ *
14
+ * Declared literally rather than through `Pick<SurfaceProps, …>`. See the repo blueprint,
15
+ * section 5: an inherited type forwards the same props and writes none of these lines, so the
16
+ * count that tells forwarding from learning would stop moving while components kept forwarding.
17
+ */
18
+ theme?: Theme;
19
+ mode?: Mode;
20
+ elevation?: Elevation;
21
+ children?: ReactNode;
22
+ }
23
+ /**
24
+ * A full-bleed section with a capped track inside it.
25
+ *
26
+ * **A page's content goes in bands, and `<main>` holds no track of its own.** Until 2026-09-21 it
27
+ * did -- one capped, gutter-paid box, with every block of the page inside it. That is the right
28
+ * shape for a page that is a column of prose and it makes an edge-to-edge section *impossible*: a
29
+ * section that changes ground has to BE the full-width box, and nothing can be a box it is inside
30
+ * of. Joshua, 2026-09-21: *"she should have clear edge to edge sections."*
31
+ *
32
+ * **The negative-margin escape was not taken.** `margin-inline: calc(-1 * <gutter>)` with `100vw`
33
+ * lets a child break out of a container, and `100vw` includes the scrollbar on the platforms that
34
+ * reserve space for one -- so the page gains a few pixels of sideways scroll on Windows and none on
35
+ * a Mac. A shape that is correct on the machine it was written on is the worst kind of wrong.
36
+ *
37
+ * **Two elements, and deliberately nothing else.** No `.section`, no divider between bands, no
38
+ * variant, no named arrangement. A band that changes ground IS the separator; two that do not are
39
+ * two paragraphs. `adenario_website` carries the other answer and its own stylesheet records that
40
+ * rule being written, suppressed, deleted and partly restored over two days --
41
+ * governance/code/one-page-shows-two-dividers-and-names-where-each-one-comes-from.md is parked on
42
+ * exactly that question.
43
+ *
44
+ * **The cap arrives as a custom property and not as a prop**, because a band is a child the
45
+ * CONSUMER renders: `Page` cannot pass it anything. The two alternatives are both worse and both
46
+ * named in components/page.md -- a React context makes every band a client component, and a prop
47
+ * per band is one number written once per section.
48
+ *
49
+ * Discharges blueprints/newtone/repos/newtone_ui_react-web/components/page.md, *The band*.
50
+ */
51
+ export declare function PageBand({ as: As, theme, mode, elevation, className, children, ...rest }: PageBandProps): import("react").JSX.Element;
52
+ //# sourceMappingURL=band.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"band.d.ts","sourceRoot":"","sources":["../../src/page/band.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnE,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D,mDAAmD;IACnD,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,QAAQ,CAAC,EACrB,EAAE,EAAE,EAAc,EAClB,KAAK,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,aAAa,+BAaf"}