@newtone-dev/ui-react-web 0.30.0 → 0.32.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/drawer/drawer.d.ts +9 -0
- package/dist/drawer/drawer.d.ts.map +1 -0
- package/dist/drawer/drawer.js +36 -0
- package/dist/drawer/drawer.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/navbar/navbar.css +2 -2
- package/dist/navbar/navbar.d.ts +2 -2
- package/dist/navbar/navbar.d.ts.map +1 -1
- package/dist/navbar/navbar.js +5 -24
- package/dist/navbar/navbar.js.map +1 -1
- package/dist/shell/context.d.ts +14 -0
- package/dist/shell/context.d.ts.map +1 -0
- package/dist/shell/context.js +10 -0
- package/dist/shell/context.js.map +1 -0
- package/dist/shell/header/header.d.ts +12 -0
- package/dist/shell/header/header.d.ts.map +1 -0
- package/dist/shell/header/header.js +10 -0
- package/dist/shell/header/header.js.map +1 -0
- package/dist/shell/index.d.ts +7 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +4 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/panel/panel.d.ts +11 -0
- package/dist/shell/panel/panel.d.ts.map +1 -0
- package/dist/shell/panel/panel.js +9 -0
- package/dist/shell/panel/panel.js.map +1 -0
- package/dist/shell/panel-link/panel-link.d.ts +14 -0
- package/dist/shell/panel-link/panel-link.d.ts.map +1 -0
- package/dist/shell/panel-link/panel-link.js +16 -0
- package/dist/shell/panel-link/panel-link.js.map +1 -0
- package/dist/shell/shell.css +241 -0
- package/dist/shell/shell.d.ts +66 -0
- package/dist/shell/shell.d.ts.map +1 -0
- package/dist/shell/shell.js +82 -0
- package/dist/shell/shell.js.map +1 -0
- package/dist/shell/toggle/toggle.d.ts +15 -0
- package/dist/shell/toggle/toggle.d.ts.map +1 -0
- package/dist/shell/toggle/toggle.js +13 -0
- package/dist/shell/toggle/toggle.js.map +1 -0
- package/dist/{page → site}/band.d.ts +8 -8
- package/dist/{page → site}/band.d.ts.map +1 -1
- package/dist/{page → site}/band.js +12 -12
- package/dist/{page → site}/band.js.map +1 -1
- package/dist/{page → site}/footer.d.ts +11 -11
- package/dist/{page → site}/footer.d.ts.map +1 -1
- package/dist/site/footer.js +30 -0
- package/dist/{page → site}/footer.js.map +1 -1
- package/dist/site/index.d.ts +5 -0
- package/dist/{page → site}/index.d.ts.map +1 -1
- package/dist/site/index.js +8 -0
- package/dist/{page → site}/index.js.map +1 -1
- package/dist/{page/page.css → site/site.css} +70 -68
- package/dist/{page/page.d.ts → site/site.d.ts} +29 -27
- package/dist/site/site.d.ts.map +1 -0
- package/dist/{page/page.js → site/site.js} +17 -17
- package/dist/site/site.js.map +1 -0
- package/dist/text/selection-paint.d.ts +1 -1
- package/dist/text/selection-paint.js +1 -1
- package/package.json +10 -5
- package/dist/page/footer.js +0 -30
- package/dist/page/index.d.ts +0 -5
- package/dist/page/index.js +0 -8
- package/dist/page/page.d.ts.map +0 -1
- package/dist/page/page.js.map +0 -1
|
@@ -14,7 +14,7 @@ import { useEffect } from 'react';
|
|
|
14
14
|
* makes the highlight's background transparent, and this writes one gradient layer per selected line
|
|
15
15
|
* into the inline background of the block whose text it is. The ink is still the browser's.
|
|
16
16
|
*
|
|
17
|
-
* Renders nothing. `
|
|
17
|
+
* Renders nothing. `Site` mounts it; two mounts share one listener.
|
|
18
18
|
*/
|
|
19
19
|
export function SelectionPaint() {
|
|
20
20
|
useEffect(install, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newtone-dev/ui-react-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -93,9 +93,13 @@
|
|
|
93
93
|
"types": "./dist/numbered-list/index.d.ts",
|
|
94
94
|
"default": "./dist/numbered-list/index.js"
|
|
95
95
|
},
|
|
96
|
-
"./
|
|
97
|
-
"types": "./dist/
|
|
98
|
-
"default": "./dist/
|
|
96
|
+
"./shell": {
|
|
97
|
+
"types": "./dist/shell/index.d.ts",
|
|
98
|
+
"default": "./dist/shell/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./site": {
|
|
101
|
+
"types": "./dist/site/index.d.ts",
|
|
102
|
+
"default": "./dist/site/index.js"
|
|
99
103
|
},
|
|
100
104
|
"./quick-action": {
|
|
101
105
|
"types": "./dist/quick-action/index.d.ts",
|
|
@@ -154,7 +158,8 @@
|
|
|
154
158
|
"./navbar.css": "./dist/navbar/navbar.css",
|
|
155
159
|
"./numbered-list.css": "./dist/numbered-list/numbered-list.css",
|
|
156
160
|
"./on-media.css": "./dist/on-media/on-media.css",
|
|
157
|
-
"./
|
|
161
|
+
"./shell.css": "./dist/shell/shell.css",
|
|
162
|
+
"./site.css": "./dist/site/site.css",
|
|
158
163
|
"./quick-action.css": "./dist/quick-action/quick-action.css",
|
|
159
164
|
"./segmented-control.css": "./dist/segmented-control/segmented-control.css",
|
|
160
165
|
"./stat-card.css": "./dist/stat-card/stat-card.css",
|
package/dist/page/footer.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from '../text/index.js';
|
|
3
|
-
import { Link } from '../link/index.js';
|
|
4
|
-
import { Children } from 'react';
|
|
5
|
-
/**
|
|
6
|
-
* The upper block is the brand beside a `nav` of the columns, and the rule is its bottom border;
|
|
7
|
-
* the bar follows. Children are sorted by type rather than by a slot prop so a site writes them in
|
|
8
|
-
* reading order.
|
|
9
|
-
*/
|
|
10
|
-
export function PageFooter({ children }) {
|
|
11
|
-
const items = Children.toArray(children);
|
|
12
|
-
const isType = (c, t) => typeof c === 'object' && c !== null && c.type === t;
|
|
13
|
-
const brand = items.filter((c) => isType(c, PageFooterBrand));
|
|
14
|
-
const columns = items.filter((c) => isType(c, PageFooterColumn));
|
|
15
|
-
const bar = items.filter((c) => isType(c, PageFooterBar));
|
|
16
|
-
return (_jsxs("div", { className: "newtone-page-footer-body", children: [_jsxs("div", { className: "newtone-page-footer-top", children: [brand, columns.length > 0 ? (_jsx("nav", { className: "newtone-page-footer-nav", "aria-label": "Site", children: columns })) : null] }), bar] }));
|
|
17
|
-
}
|
|
18
|
-
export function PageFooterBrand({ href, label, mark, children }) {
|
|
19
|
-
return (_jsxs("div", { className: "newtone-page-footer-brand", children: [_jsx("a", { href: href, className: "newtone-page-footer-brand-link", "aria-label": label, children: mark }), children ? (_jsx(Text, { as: "div", scale: "body", className: "newtone-page-footer-contact", children: children })) : null] }));
|
|
20
|
-
}
|
|
21
|
-
export function PageFooterColumn({ title, children }) {
|
|
22
|
-
return (_jsxs("div", { className: "newtone-page-footer-column", children: [_jsx(Text, { as: "h2", scale: "eyebrow", case: "upper", className: "newtone-page-footer-title", children: title }), _jsx("ul", { className: "newtone-page-footer-list", children: children })] }));
|
|
23
|
-
}
|
|
24
|
-
export function PageFooterLink({ href, children }) {
|
|
25
|
-
return (_jsx("li", { children: _jsx(Text, { as: "span", scale: "body", children: _jsx(Link, { variant: "standalone", href: href, children: children }) }) }));
|
|
26
|
-
}
|
|
27
|
-
export function PageFooterBar({ copyright, children }) {
|
|
28
|
-
return (_jsxs("div", { className: "newtone-page-footer-bar", children: [copyright ? (_jsx(Text, { as: "p", scale: "caption", className: "newtone-page-footer-quiet", children: copyright })) : null, children ? (_jsx(Text, { as: "div", scale: "caption", className: "newtone-page-footer-small", children: children })) : null] }));
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=footer.js.map
|
package/dist/page/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Page } from './page.js';
|
|
2
|
-
export type { PageProps } from './page.js';
|
|
3
|
-
export type { PageBandProps } from './band.js';
|
|
4
|
-
export type { PageFooterProps, PageFooterBrandProps, PageFooterColumnProps, PageFooterLinkProps, PageFooterBarProps, } from './footer.js';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/page/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// The door. `Page`, and the band's prop type -- but not the band.
|
|
2
|
-
//
|
|
3
|
-
// The band is reachable only as `Page.Band`, for the reason navbar/index.ts gives about its own
|
|
4
|
-
// parts: a band outside a page is not a thing. It reads `--newtone-page-max-inline-size` and
|
|
5
|
-
// `--newtone-page-gutter`, both declared on `.newtone-page`, and outside one it resolves neither.
|
|
6
|
-
// The dotted name says that at the call site.
|
|
7
|
-
export { Page } from './page.js';
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/dist/page/page.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,EACH,UAAU,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,GACjB,MAAM,aAAa,CAAA;AACpB,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,gCA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