@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/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
|
*
|
|
@@ -95,68 +95,52 @@ a.newtone-card-box:focus-visible {
|
|
|
95
95
|
outline-offset: 2px;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
/* A CARD WHOSE WHOLE GROUND IS ONE PALETTE, 2026-10-02: `
|
|
99
|
-
* *"3 cards, in the extended palette colors"*, the whole card and not a tile on it
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
.newtone-card-box[data-newtone-
|
|
106
|
-
background: var(--newtone-
|
|
107
|
-
color: var(--newtone-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
color: var(--newtone-
|
|
124
|
-
}
|
|
125
|
-
.newtone-card-box[data-newtone-
|
|
126
|
-
background: var(--newtone-
|
|
127
|
-
color: var(--newtone-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
color: var(--newtone-
|
|
144
|
-
}
|
|
145
|
-
.newtone-card-box[data-newtone-signage='teal'] {
|
|
146
|
-
background: var(--newtone-signage-teal-fill);
|
|
147
|
-
color: var(--newtone-signage-teal-text);
|
|
148
|
-
}
|
|
149
|
-
.newtone-card-box[data-newtone-signage='blue'] {
|
|
150
|
-
background: var(--newtone-signage-blue-fill);
|
|
151
|
-
color: var(--newtone-signage-blue-text);
|
|
152
|
-
}
|
|
153
|
-
.newtone-card-box[data-newtone-signage='purple'] {
|
|
154
|
-
background: var(--newtone-signage-purple-fill);
|
|
155
|
-
color: var(--newtone-signage-purple-text);
|
|
156
|
-
}
|
|
157
|
-
.newtone-card-box[data-newtone-signage='pink'] {
|
|
158
|
-
background: var(--newtone-signage-pink-fill);
|
|
159
|
-
color: var(--newtone-signage-pink-text);
|
|
98
|
+
/* A CARD WHOSE WHOLE GROUND IS ONE EXTENDED PALETTE, 2026-10-02: `extended`. Joshua, of Andrea's
|
|
99
|
+
* talk page: *"3 cards, in the extended palette colors"*, the whole card and not a tile on it; then
|
|
100
|
+
* *"something similar to the primary roles"*, so the card reads the `extended` slice's role set and
|
|
101
|
+
* not signage's pair, which it read for one day. Ground, ink and ring come from `primary`, in
|
|
102
|
+
* whatever theme the card sits in; the ink is set on the box and the children inherit it. One rule
|
|
103
|
+
* per palette, for framed-icon.css's reason. No hover, and no secondary leaf read yet: the triggers
|
|
104
|
+
* are in card-box.md, *`extended`*. */
|
|
105
|
+
.newtone-card-box[data-newtone-extended='red'] {
|
|
106
|
+
background: var(--newtone-extended-red-primary-fill);
|
|
107
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-red-primary-border));
|
|
108
|
+
color: var(--newtone-extended-red-primary-text);
|
|
109
|
+
}
|
|
110
|
+
.newtone-card-box[data-newtone-extended='orange'] {
|
|
111
|
+
background: var(--newtone-extended-orange-primary-fill);
|
|
112
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-orange-primary-border));
|
|
113
|
+
color: var(--newtone-extended-orange-primary-text);
|
|
114
|
+
}
|
|
115
|
+
.newtone-card-box[data-newtone-extended='yellow'] {
|
|
116
|
+
background: var(--newtone-extended-yellow-primary-fill);
|
|
117
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-yellow-primary-border));
|
|
118
|
+
color: var(--newtone-extended-yellow-primary-text);
|
|
119
|
+
}
|
|
120
|
+
.newtone-card-box[data-newtone-extended='green'] {
|
|
121
|
+
background: var(--newtone-extended-green-primary-fill);
|
|
122
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-green-primary-border));
|
|
123
|
+
color: var(--newtone-extended-green-primary-text);
|
|
124
|
+
}
|
|
125
|
+
.newtone-card-box[data-newtone-extended='teal'] {
|
|
126
|
+
background: var(--newtone-extended-teal-primary-fill);
|
|
127
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-teal-primary-border));
|
|
128
|
+
color: var(--newtone-extended-teal-primary-text);
|
|
129
|
+
}
|
|
130
|
+
.newtone-card-box[data-newtone-extended='blue'] {
|
|
131
|
+
background: var(--newtone-extended-blue-primary-fill);
|
|
132
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-blue-primary-border));
|
|
133
|
+
color: var(--newtone-extended-blue-primary-text);
|
|
134
|
+
}
|
|
135
|
+
.newtone-card-box[data-newtone-extended='purple'] {
|
|
136
|
+
background: var(--newtone-extended-purple-primary-fill);
|
|
137
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-purple-primary-border));
|
|
138
|
+
color: var(--newtone-extended-purple-primary-text);
|
|
139
|
+
}
|
|
140
|
+
.newtone-card-box[data-newtone-extended='pink'] {
|
|
141
|
+
background: var(--newtone-extended-pink-primary-fill);
|
|
142
|
+
border-color: var(--newtone-card-box-ring, var(--newtone-extended-pink-primary-border));
|
|
143
|
+
color: var(--newtone-extended-pink-primary-text);
|
|
160
144
|
}
|
|
161
145
|
|
|
162
146
|
/* No ring, 2026-09-25: `outlined={false}`, for a card whose ground tells it apart. card-box.md. */
|
|
@@ -1,13 +1,12 @@
|
|
|
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
|
-
import type { SignagePalette } from '../framed-icon/index.js';
|
|
4
3
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
5
4
|
/**
|
|
6
5
|
* The box a card is: an outlined, padded surface with a corner on it.
|
|
7
6
|
*
|
|
8
7
|
* **It is two elements, because a themed box is two elements.** Newtone's `Wrapper` declares no
|
|
9
8
|
* colour of any kind -- a box that read a role to decide its colour would be doing what
|
|
10
|
-
*
|
|
9
|
+
* production/newtone/_blueprint/contracts/roles.md section 3 forbids -- so `Surface` decides the colour, the
|
|
11
10
|
* sheet beside this file applies it, and `Wrapper` lays out. The library's own docblock argues the
|
|
12
11
|
* shape; this is the first thing in this repo to build on it.
|
|
13
12
|
*
|
|
@@ -68,10 +67,10 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
68
67
|
* gained a third attribute and all three re-points lost a race they had been winning, silently, in
|
|
69
68
|
* the only mode that site ships. A card the same colour as the page is the arrangement above failing
|
|
70
69
|
* rather than the arrangement above holding.
|
|
71
|
-
* 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.
|
|
72
71
|
*
|
|
73
72
|
* **THE PROP IS FORWARDED TO `Surface` AND READ NOWHERE IN THIS FILE**, which is the whole of why it
|
|
74
|
-
* is allowed to exist here.
|
|
73
|
+
* is allowed to exist here. production/newtone/ui_react-web/_blueprint/index.md section 5's first row
|
|
75
74
|
* used to read *no component takes a facet prop*; it now draws the line at LEARNING one -- no
|
|
76
75
|
* default, no branch, no value read -- because a component that hands the attribute to the `Surface`
|
|
77
76
|
* it was already rendering has not learned that `high` exists. It is DESTRUCTURED rather than left to
|
|
@@ -94,6 +93,12 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
94
93
|
* answered by its type**: a string rather than a vocabulary, so this file still learns no ring colours,
|
|
95
94
|
* and the site stops declaring a `--newtone-*` property (the 2026-09-18 decision, issue 201). The sheet beside this file carries the one rule the seam runs on.
|
|
96
95
|
*/
|
|
96
|
+
/**
|
|
97
|
+
* The eight custom palettes the `extended` slice gives a role set, since 2026-10-02. Joshua: *"for
|
|
98
|
+
* the extended palette cards, we need something similar to the primary roles"*. It names a group the
|
|
99
|
+
* studio tunes, never a colour. production/newtone/_blueprint/DECISIONS/2026-10-02-the-extended-palettes-get-a-role-set.md
|
|
100
|
+
*/
|
|
101
|
+
export type ExtendedPalette = 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
|
|
97
102
|
export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
98
103
|
/** Which way the card's contents run. */
|
|
99
104
|
direction?: WrapperDirection;
|
|
@@ -112,6 +117,11 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
112
117
|
* is what every card written before 2026-09-18 does. See the docblock for what asked.
|
|
113
118
|
*/
|
|
114
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;
|
|
115
125
|
/**
|
|
116
126
|
* Whether the card draws its ring. Defaults to `true`. `false` is for a card whose ground already
|
|
117
127
|
* tells it apart -- a raised one -- and arrived 2026-09-25; see card-box.md. It says whether there
|
|
@@ -137,12 +147,12 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
137
147
|
*/
|
|
138
148
|
href?: string;
|
|
139
149
|
/**
|
|
140
|
-
* Paints the whole card from one palette
|
|
141
|
-
* fill
|
|
142
|
-
*
|
|
143
|
-
* card-box.md, *`
|
|
150
|
+
* Paints the whole card from one extended palette's role set, the `extended` slice: its ground
|
|
151
|
+
* from `primary.fill`, its ink from `primary.text`, its ring from `primary.border`, read in
|
|
152
|
+
* whatever theme the card sits in. Unset, nothing changes. No hover yet. Since 2026-10-02, when
|
|
153
|
+
* it replaced a one-day `signage`; Andrea Arellano's question cards; card-box.md, *`extended`*.
|
|
144
154
|
*/
|
|
145
|
-
|
|
155
|
+
extended?: ExtendedPalette;
|
|
146
156
|
/** The link's own, passed through: a new tab is the page's decision, as on `IconLink`. */
|
|
147
157
|
target?: string;
|
|
148
158
|
rel?: string;
|
|
@@ -150,5 +160,5 @@ export interface CardBoxProps extends HTMLAttributes<HTMLElement> {
|
|
|
150
160
|
className?: string;
|
|
151
161
|
children?: ReactNode;
|
|
152
162
|
}
|
|
153
|
-
export declare function CardBox({ direction, padding, gap, align, elevation, outlined, size, ring, href,
|
|
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;
|
|
154
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,
|
|
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-
|
|
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"}
|
package/dist/card-box/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/card-box/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/card-box/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -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/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type { IconProps, IconSize } from './icon/index.js';
|
|
|
17
17
|
export { FramedIcon } from './framed-icon/index.js';
|
|
18
18
|
export type { FramedIconProps, FramedIconShape, SignagePalette } from './framed-icon/index.js';
|
|
19
19
|
export { CardBox } from './card-box/index.js';
|
|
20
|
-
export type { CardBoxProps } from './card-box/index.js';
|
|
20
|
+
export type { CardBoxProps, ExtendedPalette } from './card-box/index.js';
|
|
21
21
|
export { CardGrid } from './card-grid/index.js';
|
|
22
22
|
export type { CardGridProps } from './card-grid/index.js';
|
|
23
23
|
export { Tooltip } from './tooltip/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,SAAS,GACZ,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,Y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AY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EACH,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,KAAK,GACR,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA"}
|
package/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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3C,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC5D,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACtC;;;;;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,CAA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,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 -------------------------
|