@newtone-dev/ui-react-web 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/accordion/accordion.css +1 -1
- package/dist/action/action.css +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button.js +1 -1
- package/dist/card-box/card-box.css +5 -2
- package/dist/card-box/card-box.d.ts +11 -6
- package/dist/card-box/card-box.d.ts.map +1 -1
- package/dist/card-box/card-box.js +2 -2
- package/dist/card-box/card-box.js.map +1 -1
- package/dist/card-grid/card-grid.css +2 -2
- package/dist/color/index.js +1 -1
- package/dist/color/index.js.map +1 -1
- package/dist/control/control.css +1 -1
- package/dist/feature-card/feature-card.css +2 -2
- package/dist/framed-icon/framed-icon.d.ts +1 -1
- package/dist/gallery/gallery.css +2 -2
- package/dist/icon/icon.d.ts +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.js +1 -1
- package/dist/navbar/navbar.css +5 -5
- package/dist/navbar/navbar.d.ts +6 -2
- package/dist/navbar/navbar.d.ts.map +1 -1
- package/dist/navbar/navbar.js +7 -1
- package/dist/navbar/navbar.js.map +1 -1
- package/dist/on-media/on-media.css +1 -1
- package/dist/page/band.d.ts +9 -2
- package/dist/page/band.d.ts.map +1 -1
- package/dist/page/band.js +23 -3
- package/dist/page/band.js.map +1 -1
- package/dist/page/footer.d.ts +54 -0
- package/dist/page/footer.d.ts.map +1 -0
- package/dist/page/footer.js +30 -0
- package/dist/page/footer.js.map +1 -0
- package/dist/page/index.d.ts +1 -0
- package/dist/page/index.d.ts.map +1 -1
- package/dist/page/page.css +130 -4
- package/dist/page/page.d.ts +8 -2
- package/dist/page/page.d.ts.map +1 -1
- package/dist/page/page.js +6 -0
- package/dist/page/page.js.map +1 -1
- package/dist/quick-action/quick-action.css +1 -1
- package/dist/quick-action/quick-action.d.ts +1 -1
- package/dist/quick-action/quick-action.js +1 -1
- package/dist/segmented-control/segmented-control.css +1 -1
- package/dist/segmented-control/segmented-control.d.ts +1 -1
- package/dist/stat-card/stat-card.css +1 -1
- package/dist/tag/tag.d.ts +2 -2
- package/dist/text/text.css +2 -2
- package/dist/text/text.d.ts +1 -1
- package/dist/text/text.js +1 -1
- package/dist/video-lightbox/video-lightbox.css +3 -3
- package/dist/wrapper/wrapper.d.ts +3 -3
- package/dist/wrapper/wrapper.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Newtone's component library for React on the web.
|
|
4
4
|
|
|
5
5
|
> The authoritative description of this repo is
|
|
6
|
-
> `~/source/
|
|
7
|
-
> discharge `~/source/
|
|
6
|
+
> `~/source/production/newtone/ui_react-web/_blueprint/index.md`, and the components here
|
|
7
|
+
> discharge `~/source/production/newtone/_blueprint/contracts/`. If this README and those disagree,
|
|
8
8
|
> they win.
|
|
9
9
|
|
|
10
10
|
## What is here
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
* `40rem` is 640px, the live page's `--container-xs` resolved. It is a block's CAP rather than a
|
|
94
94
|
* slot's minimum, which makes it the second of that kind in this repo after master-page.css's
|
|
95
95
|
* reading measure, and **the sixth block width written here by hand** --
|
|
96
|
-
*
|
|
96
|
+
* production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md counts them. */
|
|
97
97
|
|
|
98
98
|
.newtone-accordion {
|
|
99
99
|
/* The rhythm, as four properties, because the second call site moves four numbers and nothing
|
package/dist/action/action.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Action -- the one thing a page is asking for. See the repo blueprint, section 3, and
|
|
2
|
-
*
|
|
2
|
+
* production/newtone/ui_react-web/_blueprint/components/action.md.
|
|
3
3
|
*
|
|
4
4
|
* ---- the corner is a literal and it is not a missing radius step ----------
|
|
5
5
|
*
|
package/dist/button/button.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type ButtonProps = (ButtonCommon & Omit<ButtonHTMLAttributes<HTMLButtonEl
|
|
|
55
55
|
href: string;
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
|
-
* Discharges
|
|
58
|
+
* Discharges production/newtone/_blueprint/contracts/button.md.
|
|
59
59
|
*
|
|
60
60
|
* **Button takes no facet props.** No theme, no mode, no elevation. Every colour it uses
|
|
61
61
|
* is a `button.*` token pointing at a role, and a role resolves against the Surface this
|
package/dist/button/button.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Icon } from '../icon/index.js';
|
|
|
3
3
|
// THE GLYPH IS THE RUNG'S, from contracts/button.md's *glyph* column: 20 at 40 and 44, 24 at 48.
|
|
4
4
|
const GLYPH = { sm: 'sm', md: 'sm', lg: 'md' };
|
|
5
5
|
/**
|
|
6
|
-
* Discharges
|
|
6
|
+
* Discharges production/newtone/_blueprint/contracts/button.md.
|
|
7
7
|
*
|
|
8
8
|
* **Button takes no facet props.** No theme, no mode, no elevation. Every colour it uses
|
|
9
9
|
* is a `button.*` token pointing at a role, and a role resolves against the Surface this
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* relationship between them stops existing.
|
|
26
26
|
*
|
|
27
27
|
* `radius.sm` and `radius.md` are all there is: issue 023 built two steps from twelve call sites,
|
|
28
|
-
* and
|
|
28
|
+
* and production/newtone/_knowledge/the-corner-and-the-hairline.md is why they are named rather than numbered.
|
|
29
29
|
* **What would earn a third step is a third writer of a corner that is neither a control nor a small
|
|
30
30
|
* thing** -- this box and the plate inside it are two, and they are the same decision.
|
|
31
31
|
*
|
|
@@ -62,7 +62,10 @@
|
|
|
62
62
|
* than a hole -- the day a band paints its own ground, a transparent card would read straight
|
|
63
63
|
* through it, and the ring alone is not a card. */
|
|
64
64
|
|
|
65
|
+
/* THE CARD WRITES ITS INK AS WELL AS ITS GROUND, 2026-10-06: a themed card kept the band's ink until
|
|
66
|
+
the closing card put a light heading on a light emphasis ground. card-box.md, *`theme`*. */
|
|
65
67
|
.newtone-card-box {
|
|
68
|
+
color: var(--newtone-card-box-rest-text);
|
|
66
69
|
background: var(--newtone-card-box-rest-fill);
|
|
67
70
|
border: 1px solid var(--newtone-card-box-ring, var(--newtone-card-box-rest-border));
|
|
68
71
|
border-radius: var(--newtone-card-box-radius);
|
|
@@ -76,7 +79,7 @@
|
|
|
76
79
|
* over every state, as it wins over rest. card-box.md, *`href`*. */
|
|
77
80
|
a.newtone-card-box {
|
|
78
81
|
display: block;
|
|
79
|
-
color: inherit
|
|
82
|
+
/* `color: inherit` left 2026-10-06: the anchor takes the card's own ink from the rule above. */
|
|
80
83
|
text-decoration: none;
|
|
81
84
|
}
|
|
82
85
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Elevation } from '../surface/index.js';
|
|
1
|
+
import { type Elevation, type Theme } from '../surface/index.js';
|
|
2
2
|
import { type SpaceStep, type WrapperAlign, type WrapperDirection } from '../wrapper/index.js';
|
|
3
3
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
6
6
|
*
|
|
7
7
|
* **It is two elements, because a themed box is two elements.** Newtone's `Wrapper` declares no
|
|
8
8
|
* colour of any kind -- a box that read a role to decide its colour would be doing what
|
|
9
|
-
*
|
|
9
|
+
* production/newtone/_blueprint/contracts/roles.md section 3 forbids -- so `Surface` decides the colour, the
|
|
10
10
|
* sheet beside this file applies it, and `Wrapper` lays out. The library's own docblock argues the
|
|
11
11
|
* shape; this is the first thing in this repo to build on it.
|
|
12
12
|
*
|
|
@@ -67,10 +67,10 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
67
67
|
* gained a third attribute and all three re-points lost a race they had been winning, silently, in
|
|
68
68
|
* the only mode that site ships. A card the same colour as the page is the arrangement above failing
|
|
69
69
|
* rather than the arrangement above holding.
|
|
70
|
-
* See
|
|
70
|
+
* See production/adenario/website/_issues/done/148-three-card-families-that-are-the-page-in-one-mode-and-not-in-the-other.md.
|
|
71
71
|
*
|
|
72
72
|
* **THE PROP IS FORWARDED TO `Surface` AND READ NOWHERE IN THIS FILE**, which is the whole of why it
|
|
73
|
-
* is allowed to exist here.
|
|
73
|
+
* is allowed to exist here. production/newtone/ui_react-web/_blueprint/index.md section 5's first row
|
|
74
74
|
* used to read *no component takes a facet prop*; it now draws the line at LEARNING one -- no
|
|
75
75
|
* default, no branch, no value read -- because a component that hands the attribute to the `Surface`
|
|
76
76
|
* it was already rendering has not learned that `high` exists. It is DESTRUCTURED rather than left to
|
|
@@ -96,7 +96,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
96
96
|
/**
|
|
97
97
|
* The eight custom palettes the `extended` slice gives a role set, since 2026-10-02. Joshua: *"for
|
|
98
98
|
* the extended palette cards, we need something similar to the primary roles"*. It names a group the
|
|
99
|
-
* studio tunes, never a colour.
|
|
99
|
+
* studio tunes, never a colour. production/newtone/_blueprint/DECISIONS/2026-10-02-the-extended-palettes-get-a-role-set.md
|
|
100
100
|
*/
|
|
101
101
|
export type ExtendedPalette = 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
|
|
102
102
|
export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -117,6 +117,11 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
117
117
|
* is what every card written before 2026-09-18 does. See the docblock for what asked.
|
|
118
118
|
*/
|
|
119
119
|
elevation?: Elevation;
|
|
120
|
+
/**
|
|
121
|
+
* The card's theme, forwarded to its `Surface` and read nowhere here, exactly as `elevation`.
|
|
122
|
+
* From 0.26.0, for the closing card every page ends with: assembling-a-site.md §5, issue 331.
|
|
123
|
+
*/
|
|
124
|
+
theme?: Theme;
|
|
120
125
|
/**
|
|
121
126
|
* Whether the card draws its ring. Defaults to `true`. `false` is for a card whose ground already
|
|
122
127
|
* tells it apart -- a raised one -- and arrived 2026-09-25; see card-box.md. It says whether there
|
|
@@ -155,5 +160,5 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
155
160
|
className?: string;
|
|
156
161
|
children?: ReactNode;
|
|
157
162
|
}
|
|
158
|
-
export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href, extended, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
|
|
163
|
+
export declare function CardBox({ direction, padding, gap, align, elevation, theme, outlined, size, ring, href, extended, className, style, children, ...rest }: CardBoxProps): import("react").JSX.Element;
|
|
159
164
|
//# 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;
|
|
1
|
+
{"version":3,"file":"card-box.d.ts","sourceRoot":"","sources":["../../src/card-box/card-box.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,EAEH,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/E,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;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,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,KAAK,EACL,QAAe,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,YAAY,+BAiCd"}
|
|
@@ -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, extended, 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-extended": extended, style: ring === undefined
|
|
6
|
+
export function CardBox({ direction, padding, gap, align, elevation, theme, outlined = true, size, ring, href, extended, className, style, children, ...rest }) {
|
|
7
|
+
return (_jsx(Surface, { as: href === undefined ? 'div' : 'a', ...(href === undefined ? {} : { href }), elevation: elevation, theme: theme, className: ['newtone-card-box', className].filter(Boolean).join(' '), "data-outlined": outlined ? undefined : 'false', "data-size": size, "data-newtone-extended": extended, 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,
|
|
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,EAA8B,MAAM,qBAAqB,CAAA;AACzE,OAAO,EACH,OAAO,GAIV,MAAM,qBAAqB,CAAA;AAqK5B,MAAM,UAAU,OAAO,CAAC,EACpB,SAAS,EACT,OAAO,EACP,GAAG,EACH,KAAK,EACL,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACI;IACX,OAAO,CACH,KAAC,OAAO,IACJ,EAAE,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAEhC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EACxC,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,mBACrD,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,eAClC,IAAI,2BACQ,QAAQ,EAC/B,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"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* `15rem` is 240px, the live page's `--newtone-card-grid-min` read on 2026-09-04. **It is the fifth block
|
|
22
22
|
* width this repo has written by hand**, and the first that neither existing card states -- so it is
|
|
23
|
-
* a fifth number rather than a third repeat.
|
|
23
|
+
* a fifth number rather than a third repeat. production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md counts them.
|
|
24
24
|
*
|
|
25
25
|
* ---- and the floor was asked for a second value on 2026-09-05 ------------
|
|
26
26
|
*
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
* than about a number.
|
|
77
77
|
*
|
|
78
78
|
* **`faculty`'s 260 is now restorable and this sitting did not restore it.** Nothing built in
|
|
79
|
-
*
|
|
79
|
+
* production/harbour-space/website/_issues/done/042-testimonials-components.md renders, so moving a shipped band's floor would be a
|
|
80
80
|
* change nobody could look at -- `governance/evidence/verify-what-renders-not-what-was-written.md`. The 20px
|
|
81
81
|
* concession stands until the sitting that renders the band spends it.
|
|
82
82
|
*
|
package/dist/color/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The web port of
|
|
1
|
+
// The web port of production/newtone/_blueprint/contracts/color-derivation.md.
|
|
2
2
|
//
|
|
3
3
|
// This is the runtime half of `identity`: the tokens repo derives the default seeds at
|
|
4
4
|
// build time in newtone_ui_tokens/compute/, and this derives a scoped seed set in the
|
package/dist/color/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/color/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/color/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,EAAE;AACF,uFAAuF;AACvF,sFAAsF;AACtF,wFAAwF;AACxF,qEAAqE;AACrE,EAAE;AACF,yFAAyF;AACzF,sFAAsF;AACtF,2FAA2F;AAC3F,EAAE;AACF,yFAAyF;AACzF,oFAAoF;AACpF,2DAA2D;AAC3D,iEAAiE;AACjE,+CAA+C;AAE/C,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEjF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAE/C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
|
package/dist/control/control.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Control -- a glyph you press to move around a page. See the repo blueprint, section 3, and
|
|
2
|
-
*
|
|
2
|
+
* production/newtone/ui_react-web/_blueprint/components/control.md.
|
|
3
3
|
*
|
|
4
4
|
* ---- the box is square when it is bare, and a row when it is labelled -----
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* card kinds arrived at about the same room independently; nothing connects the two numbers, so the
|
|
14
14
|
* day one of them moves because that card's copy got longer, the row stops wrapping at one width.
|
|
15
15
|
* The trigger fired, the decision was made again rather than inherited, and the answer was to
|
|
16
|
-
* propose rather than build --
|
|
16
|
+
* propose rather than build -- production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md.
|
|
17
17
|
*
|
|
18
18
|
* **`min(..., 100%)` is not tidiness.** A bare `min-width` is a floor a flex item will not shrink
|
|
19
19
|
* past, so a card in a container narrower than its own minimum pushes out of it and gives the page
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
* **The token resolves to `role.text.secondary` and that is legal here as of 2026-09-07.** This card
|
|
69
69
|
* declares no fill of its own -- the `CardBox` around it is what paints -- so the description sits on
|
|
70
70
|
* the same ground running prose sits on, and the role's answer to *how much contrast is enough* is
|
|
71
|
-
* the right answer rather than a borrowed one. `
|
|
71
|
+
* the right answer rather than a borrowed one. `production/newtone/_blueprint/contracts/roles.md` section 3
|
|
72
72
|
* narrowed its prohibition to exactly that distinction when its own trigger fired.
|
|
73
73
|
*
|
|
74
74
|
* The consuming site's third level of ink lands on the second one here; there is no third level in
|
|
@@ -56,7 +56,7 @@ export type FramedIconShape = 'square' | 'round';
|
|
|
56
56
|
* custom ones. Fixed by contracts/seeds.md, so the list cannot drift from a seed. Joshua: *"a slice
|
|
57
57
|
* in newtone for signage, that we would use on status tags or icon tiles, that would have all
|
|
58
58
|
* palettes"*. It names a group the studio tunes, never a colour -- which is why it is not the `fill`
|
|
59
|
-
* this file refuses.
|
|
59
|
+
* this file refuses. production/newtone/_blueprint/DECISIONS/2026-10-02-signage-is-a-slice-for-every-palette.md
|
|
60
60
|
*/
|
|
61
61
|
export type SignagePalette = 'neutral' | 'accent' | 'support' | 'success' | 'warning' | 'error' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
|
|
62
62
|
export interface FramedIconProps extends HTMLAttributes<HTMLElement> {
|
package/dist/gallery/gallery.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* `26rem` is 416px, the live gallery's own floor, and it is `mode-card`'s number -- so this is the
|
|
9
9
|
* ninth block width written by hand here and no new number.
|
|
10
|
-
*
|
|
10
|
+
* production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md counts them; ten over six distinct numbers after this
|
|
11
11
|
* band, against a written condition of *a seventh number*, so it did not fire.
|
|
12
12
|
*
|
|
13
13
|
* **`1.4` is the decision the issue left open and it landed here rather than in card-grid.**
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* governance/documents/copy-the-argument-not-the-rule.md says the reason is what crosses. **Our row stacks
|
|
52
52
|
* somewhere else**: 416 + 16 + 320 is 752px of content and this page spends 32px a side above the
|
|
53
53
|
* phone width, so it goes one-up near 816. Neither number is that, and a third hand-typed width is
|
|
54
|
-
* not this repo's to spend --
|
|
54
|
+
* not this repo's to spend -- production/newtone/ui_tokens/_issues/done/022-breakpoint-vocabulary.md gave Newtone `phone` (768)
|
|
55
55
|
* and `laptop` (1280), `60rem` is already written twice in newtone_website, and
|
|
56
56
|
* `node tools/check-breakpoints.mjs` fails on a width two repos type that the vocabulary does not
|
|
57
57
|
* name. **The give-way is 48 pixels wide** -- and the sentence that used to describe it here was
|
package/dist/icon/icon.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import type { HTMLAttributes } from 'react';
|
|
|
42
42
|
*
|
|
43
43
|
* **No `color` prop, and that one is a refusal rather than a count.** The reference resolves a text
|
|
44
44
|
* role through a theme hook and sets it inline. Newtone forbids a component reading a role
|
|
45
|
-
* (
|
|
45
|
+
* (production/newtone/_blueprint/contracts/roles.md, section 3), so the glyph inherits `currentColor` from the
|
|
46
46
|
* text it sits beside -- which is what an icon beside a label wants anyway, and it means the two can
|
|
47
47
|
* never come apart.
|
|
48
48
|
*
|
package/dist/link/link.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Discharges
|
|
23
|
+
* Discharges production/newtone/_blueprint/contracts/link.md.
|
|
24
24
|
*
|
|
25
25
|
* **Link takes no facet props**, for the same reason Button does not: every colour it uses is a
|
|
26
26
|
* `link.*` token pointing at a palette step, and the Surface it sits on decides which theme those
|
package/dist/link/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/**
|
|
3
|
-
* Discharges
|
|
3
|
+
* Discharges production/newtone/_blueprint/contracts/link.md.
|
|
4
4
|
*
|
|
5
5
|
* **Link takes no facet props**, for the same reason Button does not: every colour it uses is a
|
|
6
6
|
* `link.*` token pointing at a palette step, and the Surface it sits on decides which theme those
|
package/dist/navbar/navbar.css
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
pointer-events: none;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/* THE BAR IS 65px AND 48 OF THEM ARE THE SITE'S.
|
|
48
|
+
/* THE BAR IS 65px AND 48 OF THEM ARE THE SITE'S. production/newtone/_blueprint/contracts/navbar.md,
|
|
49
49
|
"The bar is 65px".
|
|
50
50
|
*
|
|
51
51
|
* 64 of content box -- 8 + 48 + 8 -- plus the 1px hairline. Until 2026-09-17 this rule declared no
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
*
|
|
98
98
|
* WHAT IT BUYS IS A VERTICAL LINE. The ground runs edge to edge and the contents do not, so the
|
|
99
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/
|
|
100
|
+
* spending ONE number -- and knowledge/the-width-ladder.md records two sites writing that
|
|
101
101
|
* alignment by hand, independently, with the same arithmetic error in it both times.
|
|
102
102
|
*
|
|
103
103
|
* READING ANOTHER GROUP'S NAME IS PERMITTED HERE BECAUSE A LENGTH HAS NO AREA, which is the
|
|
104
|
-
* reasoning
|
|
104
|
+
* reasoning production/newtone/ui_react-web/_blueprint/index.md section 5 already carried for
|
|
105
105
|
* `Wrapper` spending core space steps. The two alternatives are both worse and both already
|
|
106
106
|
* named: a consumer writing this padding is the 2026-09-18 debt, and the page writing
|
|
107
107
|
* `--newtone-navbar-padding-x` onto this element is that same debt with the library holding the
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
*
|
|
123
123
|
* THE BAR'S FILL, CONTINUED UPWARD PAST ITS OWN TOP EDGE. Added 2026-09-21 --
|
|
124
124
|
* governance/code/a-band-that-meets-an-over-scroll-edge-paints-past-its-own-box.md, and
|
|
125
|
-
*
|
|
125
|
+
* production/newtone/_blueprint/contracts/navbar.md, *Parts*.
|
|
126
126
|
*
|
|
127
127
|
* WHAT IT IS FOR. Pull a page past its own top edge on a trackpad and what shows above the bar is
|
|
128
128
|
* THE CANVAS -- `<html>`'s background, the one surface on a page no component owns, and one colour
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/* What this margin does to the position of the links and the actions, why no prop exposes it, and
|
|
214
|
-
which of the two centres a site writes for itself:
|
|
214
|
+
which of the two centres a site writes for itself: production/newtone/_blueprint/contracts/navbar.md,
|
|
215
215
|
"Where the parts sit", and the `align` row in "Deliberately not in v1".
|
|
216
216
|
*
|
|
217
217
|
* IT SAID "THREE CENTRES" UNTIL 2026-09-20 and the contract it points at says two -- three
|
package/dist/navbar/navbar.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { NavbarLink } from './link/link.js';
|
|
|
5
5
|
import { NavbarActions } from './actions/actions.js';
|
|
6
6
|
import { NavbarMenuButton } from './menu-button/menu-button.js';
|
|
7
7
|
/**
|
|
8
|
-
* Discharges
|
|
8
|
+
* Discharges production/newtone/_blueprint/contracts/navbar.md.
|
|
9
9
|
*
|
|
10
10
|
* **The navbar reports. The site decides.** This component publishes the two facts it is the
|
|
11
11
|
* only thing that can see -- whether the page has scrolled past the threshold, and whether its
|
|
@@ -60,8 +60,12 @@ export interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
|
60
60
|
* SAID so; a site that wants them different is not fighting this component to get there.
|
|
61
61
|
*
|
|
62
62
|
* It caps the TRACK. The bar's ground and its hairline run edge to edge at every width.
|
|
63
|
+
*
|
|
64
|
+
* **`"page"`, from 0.26.0, follows `Page`'s cap**: the page's `maxInlineSize` less the two
|
|
65
|
+
* gutters the bar pays outside its track, so the bar's mark and the page's first character share
|
|
66
|
+
* an edge at every width. components/navbar.md, issue 336.
|
|
63
67
|
*/
|
|
64
|
-
maxInlineSize?: string;
|
|
68
|
+
maxInlineSize?: 'page' | (string & {});
|
|
65
69
|
/**
|
|
66
70
|
* The bar's rendered height, hairline included -- any CSS length. Omitted is 65px, the contract's
|
|
67
71
|
* height. Written inline on the header, where it out-specifies that rule. A site whose bar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../src/navbar/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOH,KAAK,cAAc,EACnB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAA;AAEd,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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;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,IAAW,EACX,aAAa,EACb,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,WAAW,+BAuHb;yBAlIe,MAAM;aA4IP,WAAW;aACX,WAAW;aACZ,UAAU;aACP,aAAa;aACV,gBAAgB"}
|
package/dist/navbar/navbar.js
CHANGED
|
@@ -83,7 +83,13 @@ export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSiz
|
|
|
83
83
|
? undefined
|
|
84
84
|
: { '--newtone-navbar-threshold': scrollThreshold } }), _jsx("header", { ...rest, className: ['newtone-navbar', `newtone-navbar--${size}`, className]
|
|
85
85
|
.filter(Boolean)
|
|
86
|
-
.join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, style: blockSize === undefined ? style : { blockSize, ...style }, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined
|
|
86
|
+
.join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, style: blockSize === undefined ? style : { blockSize, ...style }, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined
|
|
87
|
+
? undefined
|
|
88
|
+
: {
|
|
89
|
+
maxInlineSize: maxInlineSize === 'page'
|
|
90
|
+
? 'calc(var(--newtone-page-max-inline-size, 100vw) - 2 * var(--newtone-page-gutter, 0px))'
|
|
91
|
+
: maxInlineSize,
|
|
92
|
+
}, children: children }) })] }));
|
|
87
93
|
}
|
|
88
94
|
/**
|
|
89
95
|
* 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,GAIX,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;
|
|
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,GAIX,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;AAqF/D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,IAAI,GAAG,IAAI,EACX,aAAa,EACb,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAK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SAAS,EAAC,yBAAyB,iBACvB,MAAM,EAClB,KAAK,EACD,eAAe,KAAK,SAAS;oBACzB,CAAC,CAAC,SAAS;oBACX,CAAC,CAAE,EAAE,4BAA4B,EAAE,eAAe,EAAoB,GAEhF,EACF,oBAKQ,IAAI,EACR,SAAS,EAAE,CAAC,gBAAgB,EAAE,mBAAmB,IAAI,EAAE,EAAE,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,EAC7D,KAAK,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,YAgBhE,cACI,SAAS,EAAC,sBAAsB,EAChC,KAAK,EACD,aAAa,KAAK,SAAS;wBACvB,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC;4BACI,aAAa,EACT,aAAa,KAAK,MAAM;gCACpB,CAAC,CAAC,wFAAwF;gCAC1F,CAAC,CAAC,aAAa;yBAC1B,YAGV,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"}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* relative to.*
|
|
24
24
|
*
|
|
25
25
|
* So none of these values resolves against anything, and there is no role this could have been --
|
|
26
|
-
* `
|
|
26
|
+
* `production/newtone/_blueprint/contracts/roles.md` section 1 already answers it, because a role may exist
|
|
27
27
|
* only where the area is fixed by what the thing is, and a photograph fixes nothing.
|
|
28
28
|
*
|
|
29
29
|
* ---- and why this sheet still declares no colour -------------------------
|
package/dist/page/band.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Elevation, type Mode, type Theme } from '../surface/index.js';
|
|
2
2
|
import type { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import type { SpaceStep } from '../wrapper/index.js';
|
|
3
4
|
export interface PageBandProps extends HTMLAttributes<HTMLElement> {
|
|
4
5
|
/** The band's element. Omitted means `section`. */
|
|
5
6
|
as?: ElementType;
|
|
@@ -18,6 +19,12 @@ export interface PageBandProps extends HTMLAttributes<HTMLElement> {
|
|
|
18
19
|
theme?: Theme;
|
|
19
20
|
mode?: Mode;
|
|
20
21
|
elevation?: Elevation;
|
|
22
|
+
/** Space between the band's children. 0.26.0; omitted, none. components/page.md. */
|
|
23
|
+
gap?: SpaceStep;
|
|
24
|
+
/** The band's padding above and below. 0.26.0; omitted, none. components/page.md. */
|
|
25
|
+
padding?: SpaceStep;
|
|
26
|
+
/** One screenful under the bar, its content centred in it. 0.26.0; components/page.md. */
|
|
27
|
+
fold?: boolean;
|
|
21
28
|
children?: ReactNode;
|
|
22
29
|
}
|
|
23
30
|
/**
|
|
@@ -46,7 +53,7 @@ export interface PageBandProps extends HTMLAttributes<HTMLElement> {
|
|
|
46
53
|
* named in components/page.md -- a React context makes every band a client component, and a prop
|
|
47
54
|
* per band is one number written once per section.
|
|
48
55
|
*
|
|
49
|
-
* Discharges
|
|
56
|
+
* Discharges production/newtone/ui_react-web/_blueprint/components/page.md, *The band*.
|
|
50
57
|
*/
|
|
51
|
-
export declare function PageBand({ as: As, theme, mode, elevation, className, children, ...rest }: PageBandProps): import("react").JSX.Element;
|
|
58
|
+
export declare function PageBand({ as: As, theme, mode, elevation, gap, padding, fold, className, children, ...rest }: PageBandProps): import("react").JSX.Element;
|
|
52
59
|
//# sourceMappingURL=band.d.ts.map
|
package/dist/page/band.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,EAAiB,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,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,oFAAoF;IACpF,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,qFAAqF;IACrF,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,0FAA0F;IAC1F,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,QAAQ,CAAC,EACrB,EAAE,EAAE,EAAc,EAClB,KAAK,EACL,IAAI,EACJ,SAAS,EACT,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,aAAa,+BAsCf"}
|
package/dist/page/band.js
CHANGED
|
@@ -28,9 +28,29 @@ import { Surface } from '../surface/index.js';
|
|
|
28
28
|
* named in components/page.md -- a React context makes every band a client component, and a prop
|
|
29
29
|
* per band is one number written once per section.
|
|
30
30
|
*
|
|
31
|
-
* Discharges
|
|
31
|
+
* Discharges production/newtone/ui_react-web/_blueprint/components/page.md, *The band*.
|
|
32
32
|
*/
|
|
33
|
-
export function PageBand({ as: As = 'section', theme, mode, elevation, className, children, ...rest }) {
|
|
34
|
-
|
|
33
|
+
export function PageBand({ as: As = 'section', theme, mode, elevation, gap, padding, fold, className, children, ...rest }) {
|
|
34
|
+
// THE RHYTHM IS THE TRACK'S, FROM 0.26.0, and it is applied only when asked for: an omitted
|
|
35
|
+
// `gap` and `padding` render what 0.25 rendered, so every band already on a page is unmoved
|
|
36
|
+
// until 0.27.0 makes 8 / 12 the default. assembling-a-site.md §3.
|
|
37
|
+
const flows = gap !== undefined || padding !== undefined || fold === true;
|
|
38
|
+
const track = flows
|
|
39
|
+
? {
|
|
40
|
+
...(gap !== undefined && {
|
|
41
|
+
'--newtone-page-band-gap': `var(--newtone-space-${gap})`,
|
|
42
|
+
}),
|
|
43
|
+
...(padding !== undefined && {
|
|
44
|
+
'--newtone-page-band-padding': `var(--newtone-space-${padding})`,
|
|
45
|
+
}),
|
|
46
|
+
}
|
|
47
|
+
: undefined;
|
|
48
|
+
return (_jsx(Surface, { as: As, theme: theme, mode: mode, elevation: elevation, className: ['newtone-page-band', className].filter(Boolean).join(' '), ...rest, children: _jsx("div", { className: [
|
|
49
|
+
'newtone-page-track',
|
|
50
|
+
flows && 'newtone-page-track--flow',
|
|
51
|
+
fold && 'newtone-page-track--fold',
|
|
52
|
+
]
|
|
53
|
+
.filter(Boolean)
|
|
54
|
+
.join(' '), style: track, children: children }) }));
|
|
35
55
|
}
|
|
36
56
|
//# sourceMappingURL=band.js.map
|
package/dist/page/band.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/page/band.tsx"],"names":[],"mappings":";AAAA,0FAA0F;AAC1F,iGAAiG;AACjG,OAAO,EAAE,OAAO,EAAyC,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"band.js","sourceRoot":"","sources":["../../src/page/band.tsx"],"names":[],"mappings":";AAAA,0FAA0F;AAC1F,iGAAiG;AACjG,OAAO,EAAE,OAAO,EAAyC,MAAM,qBAAqB,CAAA;AA+BpF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,QAAQ,CAAC,EACrB,EAAE,EAAE,EAAE,GAAG,SAAS,EAClB,KAAK,EACL,IAAI,EACJ,SAAS,EACT,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACK;IACZ,4FAA4F;IAC5F,4FAA4F;IAC5F,kEAAkE;IAClE,MAAM,KAAK,GAAG,GAAG,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAA;IACzE,MAAM,KAAK,GAA8B,KAAK;QAC1C,CAAC,CAAE;YACG,GAAG,CAAC,GAAG,KAAK,SAAS,IAAI;gBACrB,yBAAyB,EAAE,uBAAuB,GAAG,GAAG;aAC3D,CAAC;YACF,GAAG,CAAC,OAAO,KAAK,SAAS,IAAI;gBACzB,6BAA6B,EAAE,uBAAuB,OAAO,GAAG;aACnE,CAAC;SACa;QACrB,CAAC,CAAC,SAAS,CAAA;IACf,OAAO,CACH,KAAC,OAAO,IACJ,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACjE,IAAI,YAER,cACI,SAAS,EAAE;gBACP,oBAAoB;gBACpB,KAAK,IAAI,0BAA0B;gBACnC,IAAI,IAAI,0BAA0B;aACrC;iBACI,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,CAAC,GAAG,CAAC,EACd,KAAK,EAAE,KAAK,YAEX,QAAQ,GACP,GACA,CACb,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The footer's parts, from 0.26.0. They are the anatomy
|
|
4
|
+
* governance/code/a-footer-is-built-the-way-adenarios-is.md binds every site to -- brand and
|
|
5
|
+
* contact beside columns of links under eyebrows, a rule, a bottom bar -- written once, with
|
|
6
|
+
* adenario's numbers, after three sites had written them by hand (adenario, Andrea's, Fluxus's).
|
|
7
|
+
* They render inside the footer slot's own track, so none of them pays a gutter.
|
|
8
|
+
* components/page.md, *The footer's parts*; assembling-a-site.md §6.
|
|
9
|
+
*
|
|
10
|
+
* A SITE FILLS THE SLOTS IT HAS CONTENT FOR. There is no slot for a city, social accounts, legal
|
|
11
|
+
* pages or mode controls: a site with one puts it in the bar's or the brand's children, and the
|
|
12
|
+
* slot is built when a second site has the same thing to put there.
|
|
13
|
+
*/
|
|
14
|
+
export interface PageFooterProps {
|
|
15
|
+
/** `FooterBrand` and `FooterColumn`s, then at most one `FooterBar`. */
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The upper block is the brand beside a `nav` of the columns, and the rule is its bottom border;
|
|
20
|
+
* the bar follows. Children are sorted by type rather than by a slot prop so a site writes them in
|
|
21
|
+
* reading order.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PageFooter({ children }: PageFooterProps): import("react").JSX.Element;
|
|
24
|
+
export interface PageFooterBrandProps {
|
|
25
|
+
/** Where the mark goes; a site's home. */
|
|
26
|
+
href: string;
|
|
27
|
+
/** The link's accessible name, e.g. "Joshua Allen, home". */
|
|
28
|
+
label: string;
|
|
29
|
+
/** The site's own drawing: a logotype or a monogram. */
|
|
30
|
+
mark: ReactNode;
|
|
31
|
+
/** The ways to reach the owner, each a line. */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export declare function PageFooterBrand({ href, label, mark, children }: PageFooterBrandProps): import("react").JSX.Element;
|
|
35
|
+
export interface PageFooterColumnProps {
|
|
36
|
+
/** Set as an eyebrow in capitals -- the one place a heading is at eyebrow scale. */
|
|
37
|
+
title: string;
|
|
38
|
+
/** `FooterLink`s. */
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
export declare function PageFooterColumn({ title, children }: PageFooterColumnProps): import("react").JSX.Element;
|
|
42
|
+
export interface PageFooterLinkProps {
|
|
43
|
+
href: string;
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}
|
|
46
|
+
export declare function PageFooterLink({ href, children }: PageFooterLinkProps): import("react").JSX.Element;
|
|
47
|
+
export interface PageFooterBarProps {
|
|
48
|
+
/** The copyright line, e.g. "© 2026 Joshua Allen". */
|
|
49
|
+
copyright?: string;
|
|
50
|
+
/** Whatever small print the site has, after the copyright. */
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
export declare function PageFooterBar({ copyright, children }: PageFooterBarProps): import("react").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../src/page/footer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEhD;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,eAAe;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,+BAoBvD;AAED,MAAM,WAAW,oBAAoB;IACjC,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,IAAI,EAAE,SAAS,CAAA;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,oBAAoB,+BAepF;AAED,MAAM,WAAW,qBAAqB;IAClC,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAA;IACb,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,qBAAqB,+BAS1E;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAUrE;AAED,MAAM,WAAW,kBAAkB;IAC/B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,kBAAkB,+BAexE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../text/index.js';
|
|
3
|
+
import { Link } from '../link/index.js';
|
|
4
|
+
import { Children } from 'react';
|
|
5
|
+
/**
|
|
6
|
+
* The upper block is the brand beside a `nav` of the columns, and the rule is its bottom border;
|
|
7
|
+
* the bar follows. Children are sorted by type rather than by a slot prop so a site writes them in
|
|
8
|
+
* reading order.
|
|
9
|
+
*/
|
|
10
|
+
export function PageFooter({ children }) {
|
|
11
|
+
const items = Children.toArray(children);
|
|
12
|
+
const isType = (c, t) => typeof c === 'object' && c !== null && c.type === t;
|
|
13
|
+
const brand = items.filter((c) => isType(c, PageFooterBrand));
|
|
14
|
+
const columns = items.filter((c) => isType(c, PageFooterColumn));
|
|
15
|
+
const bar = items.filter((c) => isType(c, PageFooterBar));
|
|
16
|
+
return (_jsxs("div", { className: "newtone-page-footer-body", children: [_jsxs("div", { className: "newtone-page-footer-top", children: [brand, columns.length > 0 ? (_jsx("nav", { className: "newtone-page-footer-nav", "aria-label": "Site", children: columns })) : null] }), bar] }));
|
|
17
|
+
}
|
|
18
|
+
export function PageFooterBrand({ href, label, mark, children }) {
|
|
19
|
+
return (_jsxs("div", { className: "newtone-page-footer-brand", children: [_jsx("a", { href: href, className: "newtone-page-footer-brand-link", "aria-label": label, children: mark }), children ? (_jsx(Text, { as: "div", scale: "body", className: "newtone-page-footer-contact", children: children })) : null] }));
|
|
20
|
+
}
|
|
21
|
+
export function PageFooterColumn({ title, children }) {
|
|
22
|
+
return (_jsxs("div", { className: "newtone-page-footer-column", children: [_jsx(Text, { as: "h2", scale: "eyebrow", case: "upper", className: "newtone-page-footer-title", children: title }), _jsx("ul", { className: "newtone-page-footer-list", children: children })] }));
|
|
23
|
+
}
|
|
24
|
+
export function PageFooterLink({ href, children }) {
|
|
25
|
+
return (_jsx("li", { children: _jsx(Text, { as: "span", scale: "body", children: _jsx(Link, { variant: "standalone", href: href, children: children }) }) }));
|
|
26
|
+
}
|
|
27
|
+
export function PageFooterBar({ copyright, children }) {
|
|
28
|
+
return (_jsxs("div", { className: "newtone-page-footer-bar", children: [copyright ? (_jsx(Text, { as: "p", scale: "caption", className: "newtone-page-footer-quiet", children: copyright })) : null, children ? (_jsx(Text, { as: "div", scale: "caption", className: "newtone-page-footer-small", children: children })) : null] }));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","sour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IAAC,EAAE,EAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,2BAA2B,YAC/D,QAAQ,GACN,CACV,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC"}
|
package/dist/page/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Page } from './page.js';
|
|
2
2
|
export type { PageProps } from './page.js';
|
|
3
3
|
export type { PageBandProps } from './band.js';
|
|
4
|
+
export type { PageFooterProps, PageFooterBrandProps, PageFooterColumnProps, PageFooterLinkProps, PageFooterBarProps, } from './footer.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/page/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/page/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/page/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,YAAY,EACR,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,GACrB,MAAM,aAAa,CAAA"}
|
package/dist/page/page.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
its own box.
|
|
3
3
|
*
|
|
4
4
|
* Every colour here is a `page.*` token. Nothing names a role, a facet or another component's group
|
|
5
|
-
* --
|
|
5
|
+
* -- production/newtone/ui_react-web/_blueprint/index.md section 5. The bar's colour is the bar's, which
|
|
6
6
|
* is why the strip above the bar is painted in navbar.css and not here.
|
|
7
7
|
*
|
|
8
8
|
* One literal: `1px`, for the hairline the gap leaves. Border WIDTH has no core scale to point at --
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
*
|
|
39
39
|
* 64 / 32 / 16, which is the ladder four consuming sites had each written for themselves.
|
|
40
40
|
* Joshua, 2026-09-21: *"The page padding on websites should be 64 on desktop, 32px on tablet and
|
|
41
|
-
* 16px on mobile."*
|
|
41
|
+
* 16px on mobile."* production/newtone/ui_react-web/_blueprint/components/page.md, *The
|
|
42
42
|
* gutter*.
|
|
43
43
|
*
|
|
44
44
|
* IT IS CSS AND NOT A TOKEN, AND THAT IS FORCED. A media query condition cannot read a custom
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
* earlier one -- the same defect `joshuaallenmx_website`'s journal entries had at 420px. One margin
|
|
85
85
|
* has neither problem. **Trigger for the other spelling: this library ships a horizontal scroller.**
|
|
86
86
|
*
|
|
87
|
-
* IT IS NOT A BLEED AND IS NOT CALLED ONE. knowledge/
|
|
87
|
+
* IT IS NOT A BLEED AND IS NOT CALLED ONE. knowledge/the-width-ladder.md defines a bleed as
|
|
88
88
|
* the ABSENCE of a container -- it pays no gutter and touches the glass. This pays a gutter.
|
|
89
89
|
*
|
|
90
90
|
* ON THE CONTAINER, NEVER ON THE CARD. A row takes it and the cards inside keep their own boxes; on
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
*
|
|
161
161
|
* THE CAP IS HERE AND NEVER ON A BAND. The grounds and both hairlines run edge to edge; only what is
|
|
162
162
|
* read stops. A hairline that ends 400px short of the screen edge on a wide display is the mistake
|
|
163
|
-
* knowledge/
|
|
163
|
+
* knowledge/the-width-ladder.md already describes for a bar whose colour does.
|
|
164
164
|
*
|
|
165
165
|
* `max-inline-size` READS A CUSTOM PROPERTY FROM 2026-09-21 LATE, where it was an inline style on
|
|
166
166
|
* the one track the component rendered. `Page` declares `--newtone-page-max-inline-size` on
|
|
@@ -238,3 +238,129 @@
|
|
|
238
238
|
min-inline-size: 0;
|
|
239
239
|
background: var(--newtone-page-fill);
|
|
240
240
|
}
|
|
241
|
+
|
|
242
|
+
/* ---- the band's ink, its rhythm and the fold, 0.26.0 --------------------------------------------
|
|
243
|
+
components/page.md, *The band's rhythm, its ink, the fold, and the footer's parts*. */
|
|
244
|
+
|
|
245
|
+
/* ONE SCREENFUL UNDER THE BAR AND ITS HAIRLINE. Three sites wrote this by hand, two of them reading
|
|
246
|
+
the navbar's group to do it (issue 243); the library reads its own sibling's length once, here. */
|
|
247
|
+
.newtone-page {
|
|
248
|
+
--newtone-page-fold-block-size: calc(100dvh - var(--newtone-navbar-min-block-size) - 1px);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* A BAND WRITES ITS INK AS WELL AS ITS GROUND, so a band on `strong` or `emphasis` resolves its own
|
|
252
|
+
text color instead of inheriting the page's (issue 287). The footer is the same box. */
|
|
253
|
+
.newtone-page-band,
|
|
254
|
+
.newtone-page-footer {
|
|
255
|
+
color: var(--newtone-page-text);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* THE RHYTHM IS ON THE TRACK, AND ONLY WHEN A BAND ASKS. A flex column does not collapse its
|
|
259
|
+
children's margins, which is why the class is opt-in until 0.27.0 rather than on every track. */
|
|
260
|
+
.newtone-page-track--flow {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
gap: var(--newtone-page-band-gap, 0);
|
|
264
|
+
padding-block: var(--newtone-page-band-padding, 0);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.newtone-page-track--fold {
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
min-block-size: var(--newtone-page-fold-block-size);
|
|
270
|
+
justify-content: center;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* ---- the footer's parts, 0.26.0 -----------------------------------------------------------------
|
|
274
|
+
ADENARIO'S NUMBERS, as Andrea's and Fluxus's copies of them were. They are literals because there
|
|
275
|
+
is no space token for a viewport-scaled length, and this is now the one copy. */
|
|
276
|
+
|
|
277
|
+
.newtone-page-footer-body {
|
|
278
|
+
padding-block: clamp(3rem, 8vh, 5rem) clamp(2.5rem, 6vh, 4rem);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.newtone-page-footer-top {
|
|
282
|
+
display: grid;
|
|
283
|
+
grid-template-columns: minmax(14rem, 20rem) 1fr;
|
|
284
|
+
gap: clamp(2.5rem, 6vw, 6rem);
|
|
285
|
+
align-items: start;
|
|
286
|
+
padding-block-end: clamp(2.5rem, 6vh, 4rem);
|
|
287
|
+
border-block-end: 1px solid var(--newtone-page-divider-border);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.newtone-page-footer-brand {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
align-items: flex-start;
|
|
294
|
+
gap: var(--newtone-space-3);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.newtone-page-footer-brand-link {
|
|
298
|
+
display: inline-flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
color: var(--newtone-page-footer-brand-text);
|
|
301
|
+
text-decoration: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.newtone-page-footer-contact {
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: var(--newtone-space-2);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.newtone-page-footer-nav {
|
|
311
|
+
display: grid;
|
|
312
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
313
|
+
gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
|
|
314
|
+
/* The columns' links are neutral at rest, as adenario's and Andrea's are. The library setting
|
|
315
|
+
its own Link's knob from its own token, which a consumer may not. */
|
|
316
|
+
--newtone-link-standalone-rest-text: var(--newtone-page-footer-link-rest-text);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.newtone-page-footer-column {
|
|
320
|
+
display: flex;
|
|
321
|
+
flex-direction: column;
|
|
322
|
+
gap: var(--newtone-space-3);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.newtone-page-footer-title {
|
|
326
|
+
color: var(--newtone-page-footer-title-text);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.newtone-page-footer-list {
|
|
330
|
+
list-style: none;
|
|
331
|
+
margin: 0;
|
|
332
|
+
padding: 0;
|
|
333
|
+
display: flex;
|
|
334
|
+
flex-direction: column;
|
|
335
|
+
gap: var(--newtone-space-2);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.newtone-page-footer-bar {
|
|
339
|
+
display: flex;
|
|
340
|
+
flex-wrap: wrap;
|
|
341
|
+
align-items: baseline;
|
|
342
|
+
justify-content: space-between;
|
|
343
|
+
gap: var(--newtone-space-3) var(--newtone-space-6);
|
|
344
|
+
padding-block-start: clamp(2.5rem, 6vh, 4rem);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.newtone-page-footer-quiet {
|
|
348
|
+
color: var(--newtone-page-footer-quiet-text);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.newtone-page-footer-small {
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-wrap: wrap;
|
|
354
|
+
gap: var(--newtone-space-3) var(--newtone-space-6);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media (max-width: 48rem) {
|
|
358
|
+
.newtone-page-footer-top {
|
|
359
|
+
grid-template-columns: minmax(0, 1fr);
|
|
360
|
+
gap: clamp(2rem, 6vh, 3rem);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.newtone-page-footer-nav {
|
|
364
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
365
|
+
}
|
|
366
|
+
}
|
package/dist/page/page.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Elevation, type Mode, type Theme } from '../surface/index.js';
|
|
2
2
|
import { PageBand } from './band.js';
|
|
3
|
+
import { PageFooter, PageFooterBar, PageFooterBrand, PageFooterColumn, PageFooterLink } from './footer.js';
|
|
3
4
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
4
5
|
/**
|
|
5
6
|
* The shell a route renders inside: a sticky bar, a body, and a footer.
|
|
@@ -33,7 +34,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
33
34
|
* **`footerElevation` omitted is *same rung*; `"deep"` is *one below*.** The footer is a nested
|
|
34
35
|
* `Surface`, so with no attribute it resolves whatever the page resolves, and `--newtone-page-fill`
|
|
35
36
|
* read inside it comes back as that rung's ground. **Nothing here compares the two**, and nothing
|
|
36
|
-
* here defaults either:
|
|
37
|
+
* here defaults either: production/newtone/ui_react-web/_blueprint/index.md section 5's first row counts
|
|
37
38
|
* a default as a READ, and a component that read a facet would have learned that `deep` exists.
|
|
38
39
|
*
|
|
39
40
|
* **The four facet props are declared literally rather than inherited through `Pick<SurfaceProps>`,
|
|
@@ -46,7 +47,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
46
47
|
*
|
|
47
48
|
* The grounds run edge to edge and only `.newtone-page-track` stops. **A hairline that stops 400px
|
|
48
49
|
* short of the screen edge on a wide display is the same mistake as a bar whose colour does**, which
|
|
49
|
-
* knowledge/
|
|
50
|
+
* knowledge/the-width-ladder.md argues one band higher, and it is the split `Navbar` took the
|
|
50
51
|
* day before this.
|
|
51
52
|
*
|
|
52
53
|
* **`maxInlineSize` is a string and the ladder is not in this library.** §8's container half is *real
|
|
@@ -133,5 +134,10 @@ export interface PageProps extends HTMLAttributes<HTMLElement> {
|
|
|
133
134
|
export declare function Page({ navbar, footer, maxInlineSize, theme, mode, elevation, footerElevation, className, children, ...rest }: PageProps): import("react").JSX.Element;
|
|
134
135
|
export declare namespace Page {
|
|
135
136
|
export { PageBand as Band };
|
|
137
|
+
export { PageFooter as Footer };
|
|
138
|
+
export { PageFooterBrand as FooterBrand };
|
|
139
|
+
export { PageFooterColumn as FooterColumn };
|
|
140
|
+
export { PageFooterLink as FooterLink };
|
|
141
|
+
export { PageFooterBar as FooterBar };
|
|
136
142
|
}
|
|
137
143
|
//# sourceMappingURL=page.d.ts.map
|
package/dist/page/page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/page/page.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/page/page.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EACH,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACjB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC1D;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,0DAA0D;IAC1D,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,kFAAkF;IAClF,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,wBAAgB,IAAI,CAAC,EACjB,MAAM,EACN,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,eAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,SAAS,+BAmDX;yBA9De,IAAI;aAwER,QAAQ;aACN,UAAU;aACL,eAAe;aACd,gBAAgB;aAClB,cAAc;aACf,aAAa"}
|
package/dist/page/page.js
CHANGED
|
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
// and this renders inside server components -- see the repo blueprint, section 4.3.
|
|
4
4
|
import { Surface } from '../surface/index.js';
|
|
5
5
|
import { PageBand } from './band.js';
|
|
6
|
+
import { PageFooter, PageFooterBar, PageFooterBrand, PageFooterColumn, PageFooterLink, } from './footer.js';
|
|
6
7
|
import { SelectionPaint } from '../text/selection-paint.js';
|
|
7
8
|
export function Page({ navbar, footer, maxInlineSize, theme, mode, elevation, footerElevation, className, children, ...rest }) {
|
|
8
9
|
// THE CAP IS A CUSTOM PROPERTY ON THE ROOT FROM 2026-09-21 LATE, where it was an inline
|
|
@@ -27,4 +28,9 @@ export function Page({ navbar, footer, maxInlineSize, theme, mode, elevation, fo
|
|
|
27
28
|
* a silent failure rather than a loud one. `index.ts` exports `Page` and the band's prop type.
|
|
28
29
|
*/
|
|
29
30
|
Page.Band = PageBand;
|
|
31
|
+
Page.Footer = PageFooter;
|
|
32
|
+
Page.FooterBrand = PageFooterBrand;
|
|
33
|
+
Page.FooterColumn = PageFooterColumn;
|
|
34
|
+
Page.FooterLink = PageFooterLink;
|
|
35
|
+
Page.FooterBar = PageFooterBar;
|
|
30
36
|
//# sourceMappingURL=page.js.map
|
package/dist/page/page.js.map
CHANGED
|
@@ -1 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J,EAAE,EAAC,QAAQ,EACX,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAC,qBAAqB,YAM/B,cAAK,SAAS,EAAC,oBAAoB,YAAE,MAAM,GAAO,GAC5C,CACb,CAAC,CAAC,CAAC,IAAI,IACN,IACA,CACb,CAAA;AACL,CAAC;AAED;;;;;;;GAOG;AACH,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAA;AACpB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAA;AACxB,IAAI,CAAC,WAAW,GAAG,eAAe,CAAA;AAClC,IAAI,CAAC,YAAY,GAAG,gBAAgB,CAAA;AACpC,IAAI,CAAC,UAAU,GAAG,cAAc,CAAA;AAChC,IAAI,CAAC,SAAS,GAAG,aAAa,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* QuickAction -- one round action a page keeps within reach. See the repo blueprint, section 3, and
|
|
2
|
-
*
|
|
2
|
+
* production/newtone/ui_react-web/_blueprint/components/quick-action.md.
|
|
3
3
|
*
|
|
4
4
|
* ---- the size is a ladder now, and the knob it replaced is deleted -------
|
|
5
5
|
*
|
|
@@ -58,7 +58,7 @@ export type QuickActionProps = QuickActionCommon & ((Omit<ButtonHTMLAttributes<H
|
|
|
58
58
|
* sites anywhere in this house.** It is the only component in this library in that position, and
|
|
59
59
|
* the only one whose shape was settled by reading a reference rather than by a consumer pushing on
|
|
60
60
|
* it -- which is the thing the preamble refuses, built anyway on an explicit decision after the
|
|
61
|
-
* cost was put on the table. `
|
|
61
|
+
* cost was put on the table. `production/newtone/ui_react-web/_issues/open/154-the-round-action-nothing-presses.md`.
|
|
62
62
|
*
|
|
63
63
|
* **So every refusal below is argued from the reference and from sibling components, and none of
|
|
64
64
|
* them has been tested.** They may all be right. Whoever gives this a consumer should expect to
|
|
@@ -20,7 +20,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* sites anywhere in this house.** It is the only component in this library in that position, and
|
|
21
21
|
* the only one whose shape was settled by reading a reference rather than by a consumer pushing on
|
|
22
22
|
* it -- which is the thing the preamble refuses, built anyway on an explicit decision after the
|
|
23
|
-
* cost was put on the table. `
|
|
23
|
+
* cost was put on the table. `production/newtone/ui_react-web/_issues/open/154-the-round-action-nothing-presses.md`.
|
|
24
24
|
*
|
|
25
25
|
* **So every refusal below is argued from the reference and from sibling components, and none of
|
|
26
26
|
* them has been tested.** They may all be right. Whoever gives this a consumer should expect to
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* The chosen segment carries `box-shadow: var(--shadow-s)` live -- two layers, 8% and 4% black.
|
|
52
52
|
* **Newtone has no elevation vocabulary and this repo has never written a shadow**: `grep -rn
|
|
53
53
|
* "box-shadow" src/` returns nothing. A shadow declared in one component's sheet is an elevation the
|
|
54
|
-
* rest of the site cannot agree with, which is `
|
|
54
|
+
* rest of the site cannot agree with, which is `production/newtone/_blueprint/contracts/roles.md`'s reason a
|
|
55
55
|
* component may not read a role, one layer down. The chosen segment is told apart by its ground and
|
|
56
56
|
* its ink, which is what `card-box/` already relies on. Section 8 carries the row.
|
|
57
57
|
*
|
|
@@ -51,7 +51,7 @@ import type { HTMLAttributes } from 'react';
|
|
|
51
51
|
* The track needs `role` and `aria-label`. **This file said `Wrapper` admitted neither, and it was
|
|
52
52
|
* half wrong** -- `role` was refused and `aria-label` compiled all along, because TypeScript does
|
|
53
53
|
* not check a JSX attribute whose name is not a valid identifier, so it was arriving at the element
|
|
54
|
-
* unexamined rather than being admitted. `
|
|
54
|
+
* unexamined rather than being admitted. `production/newtone/ui_react-web/_issues/done/026-a-box-cannot-carry-an-attribute.md` was
|
|
55
55
|
* closed by compiling that claim instead of reading it.
|
|
56
56
|
*
|
|
57
57
|
* **Both are legal on a box now and this stays a plain `<div>`**, because the reason that decided it
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* shades that agree today.
|
|
24
24
|
*
|
|
25
25
|
* **The three inks are three tokens and all three resolve to a role**, which is legal here and was
|
|
26
|
-
* not until 2026-09-07: `
|
|
26
|
+
* not until 2026-09-07: `production/newtone/_blueprint/contracts/roles.md` section 3 forbade a component
|
|
27
27
|
* reading a role, its own *trigger to revisit* fired at the stated count of three, and the
|
|
28
28
|
* prohibition was narrowed to what it was always arguing -- a component may not borrow a role for
|
|
29
29
|
* its own ink over its own FILL. This card declares no fill. Its head, figure and caption sit on
|
package/dist/tag/tag.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'react';
|
|
|
4
4
|
*
|
|
5
5
|
* ---- the two tones are two SCOPES, not two colours -----------------------
|
|
6
6
|
*
|
|
7
|
-
* `
|
|
7
|
+
* `production/harbour-space/website/_issues/done/031-structure-components.md` asked for both of the live page's pairs to be resolved
|
|
8
8
|
* into colours before either was chosen, and named the failure it expected: one pair for both
|
|
9
9
|
* tones, which would leave the shape of a degree unreadable down the column of module rows.
|
|
10
10
|
*
|
|
@@ -56,7 +56,7 @@ import type { HTMLAttributes } from 'react';
|
|
|
56
56
|
*
|
|
57
57
|
* **It is two elements, because a themed box is two elements.** `Surface` emits the scope and paints
|
|
58
58
|
* nothing -- a component that painted would have to read a role, which
|
|
59
|
-
*
|
|
59
|
+
* production/newtone/_blueprint/contracts/roles.md forbids -- so the sheet beside this file paints and `Text`
|
|
60
60
|
* is the type. card-box.tsx is the same arrangement for the same reason.
|
|
61
61
|
*
|
|
62
62
|
* **The type is `body-sm` at `weight="medium"`**, which is 14px and 500 -- the live page's own pair
|
package/dist/text/text.css
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
code, and not unmatched. EIGHT RULES ACROSS adenario_website AND newtone_website SET A TYPE
|
|
16
16
|
PROPERTY THAT HAD NEVER RENDERED -- a section heading, an eyebrow, a page head's tracking, an
|
|
17
17
|
ordinal's leading, a run of fine print, and the wordmark in Newtone's own masthead.
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
production/adenario/website/_issues/done/101-every-type-rule-this-site-writes-loses-to-an-attribute.md is the count and
|
|
19
|
+
production/newtone/ui_react-web/_blueprint/index.md section 5 is the rule. The consumer-facing half
|
|
20
20
|
is contracts/typography.md section 7.1: declare a scale token to retune, write a class to
|
|
21
21
|
override, and never read a scale token from outside.
|
|
22
22
|
|
package/dist/text/text.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
|
54
54
|
children?: ReactNode;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Discharges
|
|
57
|
+
* Discharges production/newtone/_blueprint/contracts/typography.md section 7 -- the instance half of
|
|
58
58
|
* the line between what a seed decides and what one passage decides.
|
|
59
59
|
*
|
|
60
60
|
* **A Text may only spend what the seed bought.** The seed decides which families load and
|
package/dist/text/text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement, } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* Discharges
|
|
3
|
+
* Discharges production/newtone/_blueprint/contracts/typography.md section 7 -- the instance half of
|
|
4
4
|
* the line between what a seed decides and what one passage decides.
|
|
5
5
|
*
|
|
6
6
|
* **A Text may only spend what the seed bought.** The seed decides which families load and
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* `20rem` is 320px, the live tile's floor, and it is `achievement-card`'s and `feature-card`'s
|
|
8
8
|
* number -- so the tenth block width written by hand here and no new number.
|
|
9
|
-
*
|
|
9
|
+
* production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md holds the count.
|
|
10
10
|
*
|
|
11
11
|
* `flex-grow` is `1` against the gallery's `1.4`, which is the pair the live row spends. The
|
|
12
12
|
* argument for putting both factors in the cards' own sheets rather than in card-grid/ is in
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
* `--newtone-breakpoint-wide` is 1280 and it is the width this whole family already means by *a
|
|
62
62
|
* large screen* -- reused rather than chosen, which is `--gutter`'s argument and `48rem`'s. **A
|
|
63
63
|
* media query cannot read a custom property and a declaration can**, which is the half of
|
|
64
|
-
*
|
|
65
|
-
* not one of
|
|
64
|
+
* production/newtone/ui_tokens/_issues/done/022-breakpoint-vocabulary.md's finding nothing had spent until now. So this number is
|
|
65
|
+
* not one of production/newtone/ui_tokens/_issues/done/030-the-block-width-family.md's: it is not written by hand.
|
|
66
66
|
*
|
|
67
67
|
* `overflow: visible` on the dialog so the close row can sit above the player's rounded corner
|
|
68
68
|
* rather than inside it.
|
|
@@ -64,7 +64,7 @@ export type WrapperPadding = SpaceStep | {
|
|
|
64
64
|
* box, which is a different question from whether a box may be named.
|
|
65
65
|
*
|
|
66
66
|
* The blueprint's section 3 carries the compiled table and
|
|
67
|
-
* `
|
|
67
|
+
* `production/newtone/ui_react-web/_issues/done/026-a-box-cannot-carry-an-attribute.md` the nine sittings it took to get two boxes.
|
|
68
68
|
*/
|
|
69
69
|
export interface WrapperProps extends HTMLAttributes<HTMLElement> {
|
|
70
70
|
/** Which way the contents run. */
|
|
@@ -83,7 +83,7 @@ export interface WrapperProps extends HTMLAttributes<HTMLElement> {
|
|
|
83
83
|
* A box, and layout is the whole of it.
|
|
84
84
|
*
|
|
85
85
|
* **It declares no colour of any kind, and that is a consequence rather than a preference.** A box
|
|
86
|
-
* that paints has to read a role, and
|
|
86
|
+
* that paints has to read a role, and production/newtone/_blueprint/contracts/roles.md section 3 forbids a
|
|
87
87
|
* component from reading one: a role answers *how much contrast is enough* once, for everything
|
|
88
88
|
* that reads it, which is only meaningful where the area is fixed by what the thing is. A
|
|
89
89
|
* component's area is its own business. `Surface` already answers the colour question without
|
|
@@ -116,7 +116,7 @@ export interface WrapperProps extends HTMLAttributes<HTMLElement> {
|
|
|
116
116
|
*
|
|
117
117
|
* **The prop list is five and it was cut by counting rather than by reading.** 102 call sites
|
|
118
118
|
* across a 78-component library; what is missing is in the blueprint's section 8 with the count
|
|
119
|
-
* behind each one. `
|
|
119
|
+
* behind each one. `production/newtone/_knowledge/the-box-that-does-not-paint.md` is the story.
|
|
120
120
|
*/
|
|
121
121
|
export declare function Wrapper({ direction, gap, padding, align, wrap, as, style, ...rest }: WrapperProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
122
122
|
//# sourceMappingURL=wrapper.d.ts.map
|
package/dist/wrapper/wrapper.js
CHANGED
|
@@ -22,7 +22,7 @@ function resolveAlign(align, direction) {
|
|
|
22
22
|
* A box, and layout is the whole of it.
|
|
23
23
|
*
|
|
24
24
|
* **It declares no colour of any kind, and that is a consequence rather than a preference.** A box
|
|
25
|
-
* that paints has to read a role, and
|
|
25
|
+
* that paints has to read a role, and production/newtone/_blueprint/contracts/roles.md section 3 forbids a
|
|
26
26
|
* component from reading one: a role answers *how much contrast is enough* once, for everything
|
|
27
27
|
* that reads it, which is only meaningful where the area is fixed by what the thing is. A
|
|
28
28
|
* component's area is its own business. `Surface` already answers the colour question without
|
|
@@ -55,7 +55,7 @@ function resolveAlign(align, direction) {
|
|
|
55
55
|
*
|
|
56
56
|
* **The prop list is five and it was cut by counting rather than by reading.** 102 call sites
|
|
57
57
|
* across a 78-component library; what is missing is in the blueprint's section 8 with the count
|
|
58
|
-
* behind each one. `
|
|
58
|
+
* behind each one. `production/newtone/_knowledge/the-box-that-does-not-paint.md` is the story.
|
|
59
59
|
*/
|
|
60
60
|
export function Wrapper({ direction = 'column', gap, padding, align, wrap, as = 'div', style, ...rest }) {
|
|
61
61
|
const layout = {
|