@newtone-dev/ui-react-web 0.10.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/dist/accordion/accordion.css +4 -4
- package/dist/avatar/avatar.css +7 -2
- package/dist/avatar/avatar.d.ts +7 -1
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/avatar/avatar.js +7 -2
- package/dist/avatar/avatar.js.map +1 -1
- package/dist/bar-list/bar-list.css +29 -4
- package/dist/card-box/card-box.css +5 -3
- package/dist/card-box/card-box.d.ts +11 -3
- package/dist/card-box/card-box.d.ts.map +1 -1
- package/dist/card-box/card-box.js +4 -2
- package/dist/card-box/card-box.js.map +1 -1
- package/dist/card-grid/card-grid.css +28 -1
- package/dist/card-grid/card-grid.d.ts +7 -1
- package/dist/card-grid/card-grid.d.ts.map +1 -1
- package/dist/card-grid/card-grid.js +14 -8
- package/dist/card-grid/card-grid.js.map +1 -1
- package/dist/chart-key/chart-key.css +4 -4
- package/dist/column-chart/column-chart.css +35 -6
- package/dist/control/control.css +21 -4
- package/dist/control/control.d.ts +15 -5
- package/dist/control/control.d.ts.map +1 -1
- package/dist/control/control.js +7 -6
- package/dist/control/control.js.map +1 -1
- package/dist/data-list/data-list.css +7 -5
- package/dist/data-list/data-list.d.ts +7 -1
- package/dist/data-list/data-list.d.ts.map +1 -1
- package/dist/data-list/data-list.js +7 -2
- package/dist/data-list/data-list.js.map +1 -1
- package/dist/feature-card/feature-card.css +1 -1
- package/dist/figure/figure.css +1 -1
- package/dist/framed-icon/framed-icon.css +1 -1
- package/dist/gallery/gallery.css +27 -2
- package/dist/gallery/gallery.d.ts.map +1 -1
- package/dist/gallery/gallery.js +5 -2
- package/dist/gallery/gallery.js.map +1 -1
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.js +30 -3
- package/dist/icon/icon.js.map +1 -1
- package/dist/icon-link/icon-link.css +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/link/link.css +7 -7
- package/dist/logo-marquee/logo-marquee.d.ts.map +1 -1
- package/dist/logo-marquee/logo-marquee.js +6 -2
- package/dist/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/media-window/index.d.ts +4 -0
- package/dist/media-window/index.d.ts.map +1 -0
- package/dist/media-window/index.js +3 -0
- package/dist/media-window/index.js.map +1 -0
- package/dist/media-window/media-window.css +5 -2
- package/dist/media-window/media-window.d.ts +28 -0
- package/dist/media-window/media-window.d.ts.map +1 -0
- package/dist/media-window/media-window.js +5 -0
- package/dist/media-window/media-window.js.map +1 -0
- package/dist/navbar/navbar.d.ts +16 -3
- package/dist/navbar/navbar.d.ts.map +1 -1
- package/dist/navbar/navbar.js +8 -5
- package/dist/navbar/navbar.js.map +1 -1
- package/dist/numbered-list/numbered-list.css +1 -1
- package/dist/on-media/on-media.css +175 -50
- package/dist/page/page.css +9 -9
- package/dist/page/page.d.ts +1 -1
- package/dist/segmented-control/segmented-control.css +28 -5
- package/dist/split-bar/split-bar.css +36 -4
- package/dist/stat-card/stat-card.css +3 -3
- package/dist/text/text.css +29 -2
- package/dist/tooltip/tooltip.css +13 -1
- package/dist/tooltip/tooltip.d.ts +9 -1
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +61 -4
- package/dist/tooltip/tooltip.js.map +1 -1
- package/dist/video-lightbox/video-lightbox.css +13 -7
- package/dist/video-lightbox/video-lightbox.d.ts.map +1 -1
- package/dist/video-lightbox/video-lightbox.js +5 -2
- package/dist/video-lightbox/video-lightbox.js.map +1 -1
- package/package.json +5 -1
package/dist/navbar/navbar.js
CHANGED
|
@@ -14,14 +14,15 @@ import { NavbarMenuButton } from './menu-button/menu-button.js';
|
|
|
14
14
|
* is absolutely positioned against the document origin -- it has no positioned ancestor -- so it
|
|
15
15
|
* sits at the top of the page, out of flow, taking up no space. Its height is
|
|
16
16
|
* `--newtone-navbar-threshold`, default `1px`, and the attribute appears when it scrolls out of
|
|
17
|
-
* view. A site that wants the swap to happen after the first screenful
|
|
18
|
-
* `100vh
|
|
17
|
+
* view. A site that wants the swap to happen after the first screenful passes
|
|
18
|
+
* `scrollThreshold="100vh"`, which this file writes onto the sentinel -- since 2026-09-26 a site
|
|
19
|
+
* declares no `--newtone-*` property of its own (issue 201). Picking the number here would be this component deciding what a fold is for layouts
|
|
19
20
|
* it has never seen.
|
|
20
21
|
*
|
|
21
22
|
* An IntersectionObserver rather than a scroll handler: a scroll handler runs on every frame of
|
|
22
23
|
* every scroll to answer a question whose answer changes twice a page.
|
|
23
24
|
*/
|
|
24
|
-
export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSize, className, children, ...rest }) {
|
|
25
|
+
export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSize, blockSize, scrollThreshold, className, style, children, ...rest }) {
|
|
25
26
|
const [openState, setOpenState] = useState(false);
|
|
26
27
|
const [scrolled, setScrolled] = useState(false);
|
|
27
28
|
const [collapsible, setCollapsible] = useState(false);
|
|
@@ -78,9 +79,11 @@ export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSiz
|
|
|
78
79
|
document.body.style.overflow = previous;
|
|
79
80
|
};
|
|
80
81
|
}, [open]);
|
|
81
|
-
return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true"
|
|
82
|
+
return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true", style: scrollThreshold === undefined
|
|
83
|
+
? undefined
|
|
84
|
+
: { '--newtone-navbar-threshold': scrollThreshold } }), _jsx("header", { ...rest, className: ['newtone-navbar', `newtone-navbar--${size}`, className]
|
|
82
85
|
.filter(Boolean)
|
|
83
|
-
.join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined ? undefined : { maxInlineSize }, children: children }) })] }));
|
|
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 ? undefined : { maxInlineSize }, children: children }) })] }));
|
|
84
87
|
}
|
|
85
88
|
/**
|
|
86
89
|
* 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,
|
|
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;AAiF/D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YA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--newtone-numbered-list-marker);
|
|
30
|
+
color: var(--newtone-numbered-list-marker-text);
|
|
31
31
|
|
|
32
32
|
/* Tabular figures so 9 and 10 do not shift the column. Silently ignored by a family with no
|
|
33
33
|
`tnum`, which is the same no-op `Text figures="tabular"` documents. */
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Every other stylesheet here sits next to the component that emits its markup. This one does not,
|
|
7
7
|
* because there is no element to render and no prop for a caller to pass: what it publishes is a
|
|
8
|
-
* VOCABULARY --
|
|
8
|
+
* VOCABULARY -- six class names and the states under them -- worn by markup in this library and in
|
|
9
9
|
* the sites that consume it. `on-media/` is the only folder in `src/` with no `index.ts`, and the
|
|
10
10
|
* blueprint's section 4.1 says why that absence is the design rather than an oversight.
|
|
11
11
|
*
|
|
12
|
+
* FIVE UNTIL 2026-09-26. `.newtone-on-media-control` was a 48px disc that four elements wore; three
|
|
13
|
+
* of them were real controls and became `<Control>`s, and the fourth -- a decorative `<span>` --
|
|
14
|
+
* took the box away with it as `.newtone-on-media-disc`. issues/done/155.
|
|
15
|
+
*
|
|
12
16
|
* ---- why the colours are literals ----------------------------------------
|
|
13
17
|
*
|
|
14
18
|
* A Newtone role is RELATIVE. It resolves against the surface, so a box painted from one recedes
|
|
@@ -25,9 +29,16 @@
|
|
|
25
29
|
* ---- and why this sheet still declares no colour -------------------------
|
|
26
30
|
*
|
|
27
31
|
* The nineteen channels are a token group, `newtone_ui_tokens/src/semantic/on-media.json`, emitted
|
|
28
|
-
* once at `:root` because a literal has no facet to vary on. This file reads them and writes none
|
|
29
|
-
* which is section 5's *a component reads only its own tokens* holding here exactly as
|
|
30
|
-
* everywhere else.
|
|
32
|
+
* once at `:root` because a literal has no facet to vary on. This file reads them and writes none
|
|
33
|
+
* OF ITS OWN, which is section 5's *a component reads only its own tokens* holding here exactly as
|
|
34
|
+
* it holds everywhere else.
|
|
35
|
+
*
|
|
36
|
+
* WHAT IT DOES WRITE, FROM 2026-09-26, IS 27 OF `Control`'S -- and it is the only file in this
|
|
37
|
+
* library that declares a name the token build emits. That is a stated breach of
|
|
38
|
+
* newtone_ui_tokens.md section 5, amended the same day with three conditions this rule keeps: one
|
|
39
|
+
* file, `--newtone-control-*` only, never at `:root`. The argument is in the rule below.
|
|
40
|
+
*
|
|
41
|
+
* **What has to exist once is each ALPHA**: bare `white` and bare `black` appear
|
|
31
42
|
* more than once below and a keyword cannot drift from itself, where `62%` written in two places is
|
|
32
43
|
* a number somebody can retune in one of them.
|
|
33
44
|
*
|
|
@@ -48,45 +59,153 @@
|
|
|
48
59
|
* client* is the check, and it is the reason this paragraph is worded the way it is rather than
|
|
49
60
|
* the obvious way. */
|
|
50
61
|
|
|
51
|
-
/* A
|
|
62
|
+
/* WHAT A `Control` BECOMES ON A PICTURE, and it is a RE-POINT rather than a box.
|
|
63
|
+
*
|
|
64
|
+
* Worn beside `.newtone-control` on the same element -- `<Control className="newtone-on-media-control">`.
|
|
65
|
+
* Every value below is one of Control's own custom properties pointed at an on-media channel, so the
|
|
66
|
+
* component is told nothing and reads the names it always reads. Three call sites in this library:
|
|
67
|
+
* gallery/'s two arrows and video-lightbox/'s close.
|
|
68
|
+
*
|
|
69
|
+
* ---- why this is not simply three declarations of paint ---------------------
|
|
70
|
+
*
|
|
71
|
+
* IT IS THE ONE FORM THAT DOES NOT DEPEND ON IMPORT ORDER. `background-color` here would be `0,1,0`
|
|
72
|
+
* against `.newtone-control--primary`'s `0,1,0`, so the winner would be whichever sheet loads
|
|
73
|
+
* second -- and a consuming site loads THIS sheet FIRST, argued at the head of this file, which is
|
|
74
|
+
* the losing position. A custom property declared on an ELEMENT beats the same name declared at
|
|
75
|
+
* `:root`, always, and reaches nothing else on the page: the themed control a metre away is
|
|
76
|
+
* untouched. Section 4.1 of the repo blueprint.
|
|
77
|
+
*
|
|
78
|
+
* THE 27 NAMES HERE ARE EMITTED BY THE TOKEN BUILD, which newtone_ui_tokens.md section 5 says this
|
|
79
|
+
* library may not declare. That row was amended the same day with three conditions, and all three
|
|
80
|
+
* are visible in this rule: one file, `--newtone-control-*` only, never at `:root`. The harm that
|
|
81
|
+
* row names is two declarations competing for a whole page; these compete for one box, on purpose.
|
|
82
|
+
*
|
|
83
|
+
* ---- both tiers, one appearance --------------------------------------------
|
|
52
84
|
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* ~100% an unblurred plate would need. **Where `backdrop-filter` is unsupported this degrades to a
|
|
58
|
-
* black glyph on a flat 45% wash**, which is legible by luck rather than by arithmetic.
|
|
85
|
+
* `primary` is a soft outline and `secondary` a ghost so a row of controls can sit under a page's
|
|
86
|
+
* Button without competing with it. ON A PHOTOGRAPH THERE IS NO PAGE AND NO BUTTON, so the tier has
|
|
87
|
+
* no hierarchy to sit inside and the two are given one appearance. That is the ground saying so,
|
|
88
|
+
* rather than a rule nobody could enforce about which variant a caller may pass.
|
|
59
89
|
*
|
|
60
|
-
*
|
|
61
|
-
* line so its box is the same whether or not a variant paints one; a border with no colour falls
|
|
62
|
-
* back to `currentColor`, which here is the glyph -- the loudest rim available. This is the only way
|
|
63
|
-
* to say *no rim* without changing the box, and a removed border would be a layout shift where a
|
|
64
|
-
* transparent one is a rim that is not there.
|
|
90
|
+
* ---- what is NOT here ------------------------------------------------------
|
|
65
91
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
92
|
+
* THE SIZE. A ground can re-point a colour and cannot re-point a size: `icon.tsx` writes
|
|
93
|
+
* `--newtone-icon-px` inline from its own prop, so a stylesheet that grew the box would leave a
|
|
94
|
+
* 20px glyph inside a 24px leading -- the exact defect Control shipped with on 2026-09-16. The 48 is
|
|
95
|
+
* `size="xl"`, a rung, and the rung carries the glyph with it. components/control.md.
|
|
96
|
+
*
|
|
97
|
+
* THE BLUR IS, because no token carries one. It is load-bearing rather than decorative and the
|
|
98
|
+
* trade travels with it: a photograph carries high-frequency detail and a translucent plate inherits
|
|
99
|
+
* it straight through, so blurring the backdrop removes the frequency and keeps the colour, and that
|
|
100
|
+
* is what lets the fill sit at 45% instead of the ~100% an unblurred plate would need. **Where
|
|
101
|
+
* `backdrop-filter` is unsupported this degrades to a black glyph on a flat 45% wash**, which is
|
|
102
|
+
* legible by luck rather than by arithmetic.
|
|
103
|
+
*
|
|
104
|
+
* THE RIM IS `transparent` AND IS STILL DRAWN. `control.css` writes `border: 1px solid` on every
|
|
105
|
+
* control so the box is the same whether or not a variant paints a line; a border with no colour
|
|
106
|
+
* falls back to `currentColor`, which here is the glyph -- the loudest rim available. Stating the
|
|
107
|
+
* colour is the only way to say *no rim* without changing the box.
|
|
108
|
+
*
|
|
109
|
+
* `50%` IS THE CORNER AND THE GROUND'S TO SET. Control's `round` prop spells the same thing for a
|
|
110
|
+
* caller who wants a circle on a page; this is a photograph making one. Both write `50%`, which is
|
|
111
|
+
* geometry and names no length, so neither adds a writer to the radius scale. */
|
|
69
112
|
.newtone-on-media-control {
|
|
113
|
+
--newtone-control-radius: 50%;
|
|
114
|
+
|
|
115
|
+
--newtone-control-primary-rest-fill: var(--newtone-on-media-control-rest-fill);
|
|
116
|
+
--newtone-control-primary-rest-text: var(--newtone-on-media-control-rest-text);
|
|
117
|
+
--newtone-control-primary-rest-border: transparent;
|
|
118
|
+
--newtone-control-primary-hover-fill: var(--newtone-on-media-control-hover-fill);
|
|
119
|
+
--newtone-control-primary-hover-text: var(--newtone-on-media-control-rest-text);
|
|
120
|
+
--newtone-control-primary-hover-border: transparent;
|
|
121
|
+
--newtone-control-primary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
|
|
122
|
+
--newtone-control-primary-pressed-text: var(--newtone-on-media-control-rest-text);
|
|
123
|
+
--newtone-control-primary-pressed-border: transparent;
|
|
124
|
+
--newtone-control-primary-disabled-fill: var(--newtone-on-media-control-rest-fill);
|
|
125
|
+
--newtone-control-primary-disabled-text: var(--newtone-on-media-control-rest-text);
|
|
126
|
+
--newtone-control-primary-disabled-border: transparent;
|
|
127
|
+
--newtone-control-primary-focus-ring: var(--newtone-on-media-focus-ring);
|
|
128
|
+
|
|
129
|
+
--newtone-control-secondary-rest-fill: var(--newtone-on-media-control-rest-fill);
|
|
130
|
+
--newtone-control-secondary-rest-text: var(--newtone-on-media-control-rest-text);
|
|
131
|
+
--newtone-control-secondary-rest-border: transparent;
|
|
132
|
+
--newtone-control-secondary-hover-fill: var(--newtone-on-media-control-hover-fill);
|
|
133
|
+
--newtone-control-secondary-hover-text: var(--newtone-on-media-control-rest-text);
|
|
134
|
+
--newtone-control-secondary-hover-border: transparent;
|
|
135
|
+
--newtone-control-secondary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
|
|
136
|
+
--newtone-control-secondary-pressed-text: var(--newtone-on-media-control-rest-text);
|
|
137
|
+
--newtone-control-secondary-pressed-border: transparent;
|
|
138
|
+
--newtone-control-secondary-disabled-fill: var(--newtone-on-media-control-rest-fill);
|
|
139
|
+
--newtone-control-secondary-disabled-text: var(--newtone-on-media-control-rest-text);
|
|
140
|
+
--newtone-control-secondary-disabled-border: transparent;
|
|
141
|
+
--newtone-control-secondary-focus-ring: var(--newtone-on-media-focus-ring);
|
|
142
|
+
|
|
143
|
+
-webkit-backdrop-filter: blur(16px);
|
|
144
|
+
backdrop-filter: blur(16px);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* THE RIM, FROM 0.14.0 (2026-09-29) -- "maybe a gradient border from 75% white on the top to 50% black
|
|
148
|
+
* on the bottom." The colour is the token `on-media.control.rest.border`, a `linear-gradient`, and a
|
|
149
|
+
* gradient cannot be a `border-color`; painted on the border box as a background it would show through
|
|
150
|
+
* the 45% fill. So it is a ring: a box 1px larger than the element on every side, painted with the
|
|
151
|
+
* gradient, with its content box masked away. It sits over the transparent 1px rim the box already
|
|
152
|
+
* draws, so nothing moves, and it takes no pointer. The disc below wears the same ring. Repo blueprint,
|
|
153
|
+
* section 3, *The disc and the control wear a gradient rim*. */
|
|
154
|
+
.newtone-on-media-control::before,
|
|
155
|
+
.newtone-on-media-disc::before {
|
|
156
|
+
content: '';
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset: -1px;
|
|
159
|
+
padding: 1px;
|
|
160
|
+
border-radius: inherit;
|
|
161
|
+
background: var(--newtone-on-media-control-rest-border);
|
|
162
|
+
-webkit-mask:
|
|
163
|
+
linear-gradient(#000 0 0) content-box,
|
|
164
|
+
linear-gradient(#000 0 0);
|
|
165
|
+
-webkit-mask-composite: xor;
|
|
166
|
+
mask:
|
|
167
|
+
linear-gradient(#000 0 0) content-box exclude,
|
|
168
|
+
linear-gradient(#000 0 0);
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* The ring needs a positioned box, and these two are often positioned already: a gallery's arrows and
|
|
173
|
+
* the lightbox's disc are `absolute`, at the same specificity as this sheet. So `relative` is written
|
|
174
|
+
* at none, and any class that places the box wins over it whatever the import order. */
|
|
175
|
+
:where(.newtone-on-media-control, .newtone-on-media-disc) {
|
|
176
|
+
position: relative;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* THE SAME DISC WITH NO PRESS IN IT, and it exists because of one element.
|
|
180
|
+
*
|
|
181
|
+
* `video-lightbox/`'s play disc is a `<span aria-hidden>` inside the tile's own `<button>` -- the
|
|
182
|
+
* whole poster is the press target, the tile has one accessible name and it is the film's title, and
|
|
183
|
+
* announcing a play glyph beside it would be one control named twice. So there is no `<Control>` it
|
|
184
|
+
* could be: a Control that cannot be pressed, or a FramedIcon that cannot either, and neither of
|
|
185
|
+
* those is a thing. It wears this instead, added 2026-09-26 with issue 155.
|
|
186
|
+
*
|
|
187
|
+
* NO `cursor`, NO `:hover`, NO `:active`, NO FOCUS RING, because a decoration has no states of its
|
|
188
|
+
* own. The tile paints this box's hover from the TILE's hover -- the pointer is over the button and
|
|
189
|
+
* only incidentally over the disc -- which is video-lightbox.css's rule and the reason this file
|
|
190
|
+
* publishes channels rather than only classes. Until today that rule was at equal specificity with a
|
|
191
|
+
* `:hover` here and won on import order; there is nothing to win against now.
|
|
192
|
+
*
|
|
193
|
+
* `3rem` is written as a length rather than through `--newtone-space-12`, which is
|
|
194
|
+
* `framed-icon.css`'s arrangement for its own two sizes: geometry that IS the shape is not a step a
|
|
195
|
+
* caller chose. It is 48 because that is what a control on a photograph measures -- the ladder's
|
|
196
|
+
* fourth rung -- and it is a literal here because a decoration has no rung to read it from. */
|
|
197
|
+
.newtone-on-media-disc {
|
|
70
198
|
display: grid;
|
|
71
199
|
place-items: center;
|
|
72
200
|
width: 3rem;
|
|
73
201
|
height: 3rem;
|
|
74
202
|
padding: 0;
|
|
75
|
-
background-color: var(--newtone-on-media-control-
|
|
76
|
-
color: var(--newtone-on-media-control-
|
|
203
|
+
background-color: var(--newtone-on-media-control-rest-fill);
|
|
204
|
+
color: var(--newtone-on-media-control-rest-text);
|
|
77
205
|
border: 1px solid transparent;
|
|
78
206
|
border-radius: 50%;
|
|
79
207
|
-webkit-backdrop-filter: blur(16px);
|
|
80
208
|
backdrop-filter: blur(16px);
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.newtone-on-media-control:hover {
|
|
85
|
-
background-color: var(--newtone-on-media-control-bg-hover);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.newtone-on-media-control:active {
|
|
89
|
-
background-color: var(--newtone-on-media-control-bg-press);
|
|
90
209
|
}
|
|
91
210
|
|
|
92
211
|
/* The filled action, and it is three declarations because it is PAINT and not a box.
|
|
@@ -109,19 +228,19 @@
|
|
|
109
228
|
*
|
|
110
229
|
* The radius is the consumer's for the same reason the rest of the box is. */
|
|
111
230
|
.newtone-on-media-button {
|
|
112
|
-
background-color: var(--newtone-on-media-button-
|
|
113
|
-
color: var(--newtone-on-media-button-
|
|
231
|
+
background-color: var(--newtone-on-media-button-rest-fill);
|
|
232
|
+
color: var(--newtone-on-media-button-rest-text);
|
|
114
233
|
border-color: transparent;
|
|
115
234
|
}
|
|
116
235
|
|
|
117
236
|
.newtone-on-media-button:hover {
|
|
118
|
-
background-color: var(--newtone-on-media-button-
|
|
119
|
-
color: var(--newtone-on-media-button-
|
|
237
|
+
background-color: var(--newtone-on-media-button-hover-fill);
|
|
238
|
+
color: var(--newtone-on-media-button-rest-text);
|
|
120
239
|
}
|
|
121
240
|
|
|
122
241
|
.newtone-on-media-button:active {
|
|
123
|
-
background-color: var(--newtone-on-media-button-
|
|
124
|
-
color: var(--newtone-on-media-button-
|
|
242
|
+
background-color: var(--newtone-on-media-button-pressed-fill);
|
|
243
|
+
color: var(--newtone-on-media-button-rest-text);
|
|
125
244
|
}
|
|
126
245
|
|
|
127
246
|
/* The same box, outlined. **It is a modifier and not a second class**, worn beside the one above: a
|
|
@@ -145,19 +264,19 @@
|
|
|
145
264
|
* These three rules come AFTER the three above at the same specificity, which is what makes the
|
|
146
265
|
* modifier win. Inside one file that ordering is a constraint rather than a taste. */
|
|
147
266
|
.newtone-on-media-button-outline {
|
|
148
|
-
background-color: var(--newtone-on-media-button-outline-
|
|
149
|
-
color: var(--newtone-on-media-button-outline-
|
|
150
|
-
border-color: var(--newtone-on-media-button-outline-border);
|
|
267
|
+
background-color: var(--newtone-on-media-button-outline-rest-fill);
|
|
268
|
+
color: var(--newtone-on-media-button-outline-rest-text);
|
|
269
|
+
border-color: var(--newtone-on-media-button-outline-rest-border);
|
|
151
270
|
}
|
|
152
271
|
|
|
153
272
|
.newtone-on-media-button-outline:hover {
|
|
154
|
-
background-color: var(--newtone-on-media-button-outline-
|
|
155
|
-
color: var(--newtone-on-media-button-outline-
|
|
273
|
+
background-color: var(--newtone-on-media-button-outline-hover-fill);
|
|
274
|
+
color: var(--newtone-on-media-button-outline-rest-text);
|
|
156
275
|
}
|
|
157
276
|
|
|
158
277
|
.newtone-on-media-button-outline:active {
|
|
159
|
-
background-color: var(--newtone-on-media-button-outline-
|
|
160
|
-
color: var(--newtone-on-media-button-outline-
|
|
278
|
+
background-color: var(--newtone-on-media-button-outline-pressed-fill);
|
|
279
|
+
color: var(--newtone-on-media-button-outline-rest-text);
|
|
161
280
|
}
|
|
162
281
|
|
|
163
282
|
/* Words on a picture. It sets `color` and nothing else, so a heading is still a heading and a
|
|
@@ -176,7 +295,7 @@
|
|
|
176
295
|
width: 0.5rem;
|
|
177
296
|
height: 0.5rem;
|
|
178
297
|
padding: 0;
|
|
179
|
-
background-color: var(--newtone-on-media-mark);
|
|
298
|
+
background-color: var(--newtone-on-media-mark-rest-fill);
|
|
180
299
|
border: 0;
|
|
181
300
|
border-radius: calc(infinity * 1px);
|
|
182
301
|
cursor: pointer;
|
|
@@ -184,15 +303,21 @@
|
|
|
184
303
|
|
|
185
304
|
.newtone-on-media-mark[aria-current] {
|
|
186
305
|
width: 1.5rem;
|
|
187
|
-
background-color: var(--newtone-on-media-mark-current);
|
|
306
|
+
background-color: var(--newtone-on-media-mark-current-fill);
|
|
188
307
|
}
|
|
189
308
|
|
|
190
|
-
/* The one ring, for
|
|
191
|
-
* on one and takes the same answer. `2px solid` is the expression this library's
|
|
192
|
-
* navbar all already use.
|
|
193
|
-
|
|
309
|
+
/* The one ring, for the two classes that still need one. A focus ring on a photograph has the same
|
|
310
|
+
* problem as a fill on one and takes the same answer. `2px solid` is the expression this library's
|
|
311
|
+
* link, button and navbar all already use.
|
|
312
|
+
*
|
|
313
|
+
* `.newtone-on-media-control` LEFT THIS SELECTOR ON 2026-09-26 and did not lose the ring: it is a
|
|
314
|
+
* `.newtone-control` now, `control.css` draws `2px solid` with the same offset, and the colour is
|
|
315
|
+
* `--newtone-control-*-focus-ring`, re-pointed above. Two rules writing one outline at equal
|
|
316
|
+
* specificity would have been decided by import order for no gain. `.newtone-on-media-disc` is not
|
|
317
|
+
* here either, and never was: it is `aria-hidden` inside somebody else's button and cannot take
|
|
318
|
+
* focus. */
|
|
194
319
|
.newtone-on-media-button:focus-visible,
|
|
195
320
|
.newtone-on-media-mark:focus-visible {
|
|
196
|
-
outline: 2px solid var(--newtone-on-media-ring);
|
|
321
|
+
outline: 2px solid var(--newtone-on-media-focus-ring);
|
|
197
322
|
outline-offset: 2px;
|
|
198
323
|
}
|
package/dist/page/page.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
display: grid;
|
|
33
33
|
grid-template-rows: auto 1fr;
|
|
34
34
|
min-block-size: 100dvh;
|
|
35
|
-
background: var(--newtone-page-
|
|
35
|
+
background: var(--newtone-page-fill);
|
|
36
36
|
|
|
37
37
|
/* ---- the gutter, and the tighter one a phone gets ---------------------
|
|
38
38
|
*
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
display: grid;
|
|
112
112
|
grid-template-rows: 1fr auto;
|
|
113
113
|
gap: 1px;
|
|
114
|
-
background: var(--newtone-page-divider);
|
|
114
|
+
background: var(--newtone-page-divider-border);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/* `min-inline-size: 0` IS NOT DECORATION. A grid item's automatic minimum size is its content, so a
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
cannot see. */
|
|
121
121
|
.newtone-page-main {
|
|
122
122
|
min-inline-size: 0;
|
|
123
|
-
background: var(--newtone-page-
|
|
123
|
+
background: var(--newtone-page-fill);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/* ---- the footer, and the paint below it ---------------------------------
|
|
127
127
|
*
|
|
128
128
|
* THE GROUND IS THE SAME TOKEN AS THE MAIN REGION'S AND RESOLVES TO A DIFFERENT COLOUR. This element
|
|
129
|
-
* is a `Surface`, so `--newtone-page-
|
|
129
|
+
* is a `Surface`, so `--newtone-page-fill` resolves at ITS elevation: the page's rung when the
|
|
130
130
|
* caller passed no `footerElevation`, one below when they passed `deep`. There is no second token,
|
|
131
131
|
* because a `page.footer-ground` would be a name for a value the cascade already computes and the
|
|
132
132
|
* two would agree at `base` and diverge nowhere a test looks.
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
* affects no layout at all. `node tools/check-page-paint.mjs <url>` is that measurement. */
|
|
153
153
|
.newtone-page-footer {
|
|
154
154
|
min-inline-size: 0;
|
|
155
|
-
background: var(--newtone-page-
|
|
156
|
-
box-shadow: 0 100vh 0 100vh var(--newtone-page-
|
|
155
|
+
background: var(--newtone-page-fill);
|
|
156
|
+
box-shadow: 0 100vh 0 100vh var(--newtone-page-fill);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/* ---- the track ----------------------------------------------------------
|
|
@@ -212,14 +212,14 @@
|
|
|
212
212
|
* and scroll the document sideways. The main region's own copy does not cover this, because that
|
|
213
213
|
* rule protects the grid ROW and this one protects the band's own box.
|
|
214
214
|
*
|
|
215
|
-
* IT PAINTS `--newtone-page-
|
|
215
|
+
* IT PAINTS `--newtone-page-fill` AND IT HAS TO, BECAUSE A SURFACE DECIDES A COLOUR AND DOES NOT
|
|
216
216
|
* APPLY ONE. The facets re-point every role token under this element; painting is the element's own
|
|
217
217
|
* job.
|
|
218
218
|
*
|
|
219
219
|
* THIS RULE SHIPPED WITHOUT THE DECLARATION FOR EXACTLY ONE MEASUREMENT, and the comment that stood
|
|
220
220
|
* here argued for its absence -- that painting would *"make every band opaque at the page's rung and
|
|
221
221
|
* silently break the nested-Surface resolution that `footerElevation` is built on"*. THAT IS BACKWARDS.
|
|
222
|
-
* `--newtone-page-
|
|
222
|
+
* `--newtone-page-fill` read inside a Surface resolves at THAT Surface's facets, which is the very
|
|
223
223
|
* mechanism `footerElevation` runs on: the footer paints this same token and comes back one rung
|
|
224
224
|
* below. A band with no facets paints the page's own colour and is invisible as a band, which is what
|
|
225
225
|
* a page of one band wants.
|
|
@@ -236,5 +236,5 @@
|
|
|
236
236
|
* two elements -- which is the check in components/page.md, unchanged by any of this. */
|
|
237
237
|
.newtone-page-band {
|
|
238
238
|
min-inline-size: 0;
|
|
239
|
-
background: var(--newtone-page-
|
|
239
|
+
background: var(--newtone-page-fill);
|
|
240
240
|
}
|
package/dist/page/page.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
31
31
|
* ---- same rung, or one below -------------------------------------------
|
|
32
32
|
*
|
|
33
33
|
* **`footerElevation` omitted is *same rung*; `"deep"` is *one below*.** The footer is a nested
|
|
34
|
-
* `Surface`, so with no attribute it resolves whatever the page resolves, and `--newtone-page-
|
|
34
|
+
* `Surface`, so with no attribute it resolves whatever the page resolves, and `--newtone-page-fill`
|
|
35
35
|
* read inside it comes back as that rung's ground. **Nothing here compares the two**, and nothing
|
|
36
36
|
* here defaults either: blueprints/newtone/repos/newtone_ui_react-web.md section 5's first row counts
|
|
37
37
|
* a default as a READ, and a component that read a facet would have learned that `deep` exists.
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
border-radius: calc(
|
|
137
137
|
var(--newtone-segmented-control-radius) + var(--newtone-segmented-control-padding)
|
|
138
138
|
);
|
|
139
|
-
background: var(--newtone-segmented-control-track);
|
|
139
|
+
background: var(--newtone-segmented-control-track-fill);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.newtone-segmented-control-segment {
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
padding-block: var(--newtone-segmented-control-segment-padding-block);
|
|
148
148
|
padding-inline: var(--newtone-segmented-control-segment-padding-inline);
|
|
149
149
|
border-radius: var(--newtone-segmented-control-segment-radius);
|
|
150
|
-
color: var(--newtone-segmented-control-segment-text);
|
|
150
|
+
color: var(--newtone-segmented-control-segment-rest-text);
|
|
151
151
|
white-space: nowrap;
|
|
152
152
|
cursor: pointer;
|
|
153
153
|
user-select: none;
|
|
@@ -167,12 +167,12 @@
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
.newtone-segmented-control-segment:hover {
|
|
170
|
-
color: var(--newtone-segmented-control-segment-text
|
|
170
|
+
color: var(--newtone-segmented-control-segment-hover-text);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.newtone-segmented-control-segment:has(.newtone-segmented-control-input:checked) {
|
|
174
|
-
background: var(--newtone-segmented-control-chosen-fill);
|
|
175
|
-
color: var(--newtone-segmented-control-chosen-text);
|
|
174
|
+
background: var(--newtone-segmented-control-segment-chosen-fill);
|
|
175
|
+
color: var(--newtone-segmented-control-segment-chosen-text);
|
|
176
176
|
cursor: default;
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -191,7 +191,30 @@
|
|
|
191
191
|
color: var(--newtone-segmented-control-badge-text);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
|
|
195
|
+
`@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
|
|
196
|
+
`@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
|
|
197
|
+
that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
|
|
198
|
+
Repo blueprint section 4, *Breakpoints*. */
|
|
199
|
+
:where([data-newtone-breakpoints='container']) {
|
|
200
|
+
container: newtone-breakpoints / inline-size;
|
|
201
|
+
}
|
|
202
|
+
|
|
194
203
|
@media (max-width: 48rem) {
|
|
204
|
+
.newtone-segmented-control:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
205
|
+
display: flex;
|
|
206
|
+
inline-size: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.newtone-segmented-control-segment:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
210
|
+
flex: 1 1 0;
|
|
211
|
+
min-inline-size: 0;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
padding-inline: var(--newtone-segmented-control-segment-padding-inline-narrow);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@container newtone-breakpoints (max-width: 48rem) {
|
|
195
218
|
.newtone-segmented-control {
|
|
196
219
|
display: flex;
|
|
197
220
|
inline-size: 100%;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.newtone-split-bar-label {
|
|
23
|
-
color: var(--newtone-chart-label);
|
|
23
|
+
color: var(--newtone-chart-label-text);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.newtone-split-bar-track {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
height: var(--newtone-space-8);
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
border-radius: var(--newtone-chart-radius);
|
|
31
|
-
background: var(--newtone-chart-mark-muted);
|
|
31
|
+
background: var(--newtone-chart-mark-muted-fill);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.newtone-split-bar-part {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
justify-content: flex-end;
|
|
38
38
|
width: calc(var(--_split-bar-share) * 100%);
|
|
39
39
|
padding-inline: var(--newtone-space-6);
|
|
40
|
-
background: var(--newtone-chart-mark);
|
|
41
|
-
color: var(--newtone-chart-
|
|
40
|
+
background: var(--newtone-chart-mark-rest-fill);
|
|
41
|
+
color: var(--newtone-chart-mark-rest-text);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.newtone-split-bar[data-fill] {
|
|
@@ -63,7 +63,39 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
|
|
67
|
+
`@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
|
|
68
|
+
`@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
|
|
69
|
+
that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
|
|
70
|
+
Repo blueprint section 4, *Breakpoints*. */
|
|
71
|
+
:where([data-newtone-breakpoints='container']) {
|
|
72
|
+
container: newtone-breakpoints / inline-size;
|
|
73
|
+
}
|
|
74
|
+
|
|
66
75
|
@media (max-width: 40rem) {
|
|
76
|
+
.newtone-split-bar:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
77
|
+
grid-template-columns: minmax(0, 1fr);
|
|
78
|
+
row-gap: var(--newtone-space-1);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.newtone-split-bar[data-fill]:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
82
|
+
grid-auto-rows: auto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Tall enough for the share's own phone size (display-xl steps down to 48), so the figure is
|
|
86
|
+
never shrunk off the scale to fit the bar. */
|
|
87
|
+
.newtone-split-bar-track:where(:not([data-newtone-breakpoints='container'] *)),
|
|
88
|
+
.newtone-split-bar[data-fill]
|
|
89
|
+
.newtone-split-bar-track:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
90
|
+
height: var(--newtone-space-16);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.newtone-split-bar-part:where(:not([data-newtone-breakpoints='container'] *)) {
|
|
94
|
+
padding-inline: var(--newtone-space-3);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@container newtone-breakpoints (max-width: 40rem) {
|
|
67
99
|
.newtone-split-bar {
|
|
68
100
|
grid-template-columns: minmax(0, 1fr);
|
|
69
101
|
row-gap: var(--newtone-space-1);
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.newtone-stat-card-head {
|
|
47
|
-
color: var(--newtone-stat-card-head);
|
|
47
|
+
color: var(--newtone-stat-card-head-text);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.newtone-stat-card-figure {
|
|
51
|
-
color: var(--newtone-stat-card-figure);
|
|
51
|
+
color: var(--newtone-stat-card-figure-text);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.newtone-stat-card-caption {
|
|
55
|
-
color: var(--newtone-stat-card-caption);
|
|
55
|
+
color: var(--newtone-stat-card-caption-text);
|
|
56
56
|
}
|