@newtone-dev/ui-react-web 0.24.0 → 0.26.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.
- 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 +47 -63
- package/dist/card-box/card-box.d.ts +21 -11
- 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-box/index.d.ts +1 -1
- package/dist/card-box/index.d.ts.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +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/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;;;;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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","sourceRoot":"","sources":["../../src/page/footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAoBhD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAmB;IACpD,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACxC,MAAM,MAAM,GAAG,CAAC,CAAU,EAAE,CAAU,EAAE,EAAE,CACtC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAK,CAAwB,CAAC,IAAI,KAAK,CAAC,CAAA;IAC/E,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAA;IAC7D,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAA;IAChE,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAA;IACzD,OAAO,CACH,eAAK,SAAS,EAAC,0BAA0B,aACrC,eAAK,SAAS,EAAC,yBAAyB,aACnC,KAAK,EACL,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAA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AyB,aACnC,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,IAAI,IAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAC,2BAA2B,YAC7D,SAAS,GACP,CACV,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACR,KAAC,IAAI,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/page/page.tsx"],"names":[],"mappings":";AAAA,mGAAmG;AACnG,oFAAoF;AACpF,OAAO,EAAE,OAAO,EAAyC,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAqI3D,MAAM,UAAU,IAAI,CAAC,EACjB,MAAM,EACN,MAAM,EACN,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,eAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACC;IACR,wFAAwF;IACxF,8FAA8F;IAC9F,+FAA+F;IAC/F,gGAAgG;IAChG,uEAAuE;IACvE,EAAE;IACF,4FAA4F;IAC5F,yEAAyE;IACzE,MAAM,IAAI,GAAG,aAAa;QACtB,CAAC,CAAE,EAAE,gCAAgC,EAAE,aAAa,EAAoB;QACxE,CAAC,CAAC,SAAS,CAAA;IAEf,OAAO,CACH,MAAC,OAAO,IACJ,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAChE,KAAK,EAAE,IAAI,KACP,IAAI,aAEP,MAAM,EAGP,KAAC,cAAc,KAAG,EAGlB,eAAK,SAAS,EAAC,mBAAmB,aAI9B,eAAM,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAQ,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AAG,CAAC,EAChE,KAAK,EAAE,IAAI,KACP,IAAI,aAEP,MAAM,EAGP,KAAC,cAAc,KAAG,EAGlB,eAAK,SAAS,EAAC,mBAAmB,aAI9B,eAAM,SAAS,EAAC,mBAAmB,YAAE,QAAQ,GAAQ,EAGpD,MAAM,CAAC,CAAC,CAAC,CACN,KAAC,OAAO,IACJ,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 = {
|