@newtone-dev/ui-react-web 0.26.3 → 0.27.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/dist/page/band.d.ts +2 -2
- package/dist/page/band.d.ts.map +1 -1
- package/dist/page/band.js +8 -11
- package/dist/page/band.js.map +1 -1
- package/package.json +1 -1
package/dist/page/band.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export interface PageBandProps extends HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
theme?: Theme;
|
|
20
20
|
mode?: Mode;
|
|
21
21
|
elevation?: Elevation;
|
|
22
|
-
/** Space between the band's children. 0.26.0; omitted,
|
|
22
|
+
/** Space between the band's children. 0.26.0; omitted, `8` from 0.27.0. components/page.md. */
|
|
23
23
|
gap?: SpaceStep;
|
|
24
|
-
/** The band's padding above and below. 0.26.0; omitted,
|
|
24
|
+
/** The band's padding above and below. 0.26.0; omitted, `12` from 0.27.0. components/page.md. */
|
|
25
25
|
padding?: SpaceStep;
|
|
26
26
|
/** One screenful under the bar, its content centred in it. 0.26.0; components/page.md. */
|
|
27
27
|
fold?: boolean;
|
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,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
|
|
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,+FAA+F;IAC/F,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,iGAAiG;IACjG,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,GAAO,EACP,OAAY,EACZ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,aAAa,+BAmCf"}
|
package/dist/page/band.js
CHANGED
|
@@ -30,19 +30,16 @@ import { Surface } from '../surface/index.js';
|
|
|
30
30
|
*
|
|
31
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, gap, padding, fold, className, children, ...rest }) {
|
|
34
|
-
// THE RHYTHM IS THE TRACK'S
|
|
35
|
-
// `gap`
|
|
36
|
-
//
|
|
37
|
-
|
|
33
|
+
export function PageBand({ as: As = 'section', theme, mode, elevation, gap = 8, padding = 12, fold, className, children, ...rest }) {
|
|
34
|
+
// THE RHYTHM IS THE TRACK'S: 8 / 12 BY DEFAULT FROM 0.27.0, the house's band
|
|
35
|
+
// (assembling-a-site.md §3). `gap={0} padding={0}` with no `fold` is the opt-out, and it renders
|
|
36
|
+
// what 0.25 rendered -- a block track, not a flex column -- because a flex column stops margins
|
|
37
|
+
// collapsing and the two sites that opt out lay out their own. components/page.md.
|
|
38
|
+
const flows = gap !== 0 || padding !== 0 || fold === true;
|
|
38
39
|
const track = flows
|
|
39
40
|
? {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
...(padding !== undefined && {
|
|
44
|
-
'--newtone-page-band-padding': `var(--newtone-space-${padding})`,
|
|
45
|
-
}),
|
|
41
|
+
'--newtone-page-band-gap': `var(--newtone-space-${gap})`,
|
|
42
|
+
'--newtone-page-band-padding': `var(--newtone-space-${padding})`,
|
|
46
43
|
}
|
|
47
44
|
: undefined;
|
|
48
45
|
return (_jsx(Surface, { as: As, theme: theme, mode: mode, elevation: elevation, className: ['newtone-page-band', className].filter(Boolean).join(' '), ...rest, children: _jsx("div", { className: [
|
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;AA+BpF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,QAAQ,CAAC,EACrB,EAAE,EAAE,EAAE,GAAG,SAAS,EAClB,KAAK,EACL,IAAI,EACJ,SAAS,EACT,GAAG,
|
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