@shortfuse/materialdesignweb 0.9.3 → 0.10.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 +51 -37
- package/api/README.md +5 -0
- package/api/css.css-data.json +23 -0
- package/api/custom-elements.json +116343 -0
- package/api/html.html-data.json +2994 -0
- package/bin/mdw-css.js +8 -8
- package/components/BottomSheet.js +2 -2
- package/components/Box.js +2 -2
- package/components/NavItem.js +4 -1
- package/components/Page.js +3 -0
- package/components/Pane.js +0 -2
- package/components/SideSheet.js +2 -2
- package/components/Surface.js +2 -2
- package/core/Composition.js +57 -16
- package/core/CompositionAdapter.js +55 -12
- package/core/CustomElement.js +177 -34
- package/core/customTypes.js +66 -0
- package/core/jsonMergePatch.js +203 -20
- package/core/observe.js +256 -10
- package/dist/CustomElement.min.js +1 -1
- package/dist/CustomElement.min.js.map +3 -3
- package/dist/index.min.js +171 -158
- package/dist/index.min.js.map +4 -4
- package/dist/meta.json +1 -1
- package/loaders/theme.js +4 -1
- package/mixins/{FlexableMixin.js → FlexboxMixin.js} +5 -3
- package/package.json +32 -10
- package/services/theme.js +115 -97
- package/types/components/NavBarItem.d.ts +1 -0
- package/types/components/NavDrawerItem.d.ts +1 -0
- package/types/components/NavItem.d.ts +1 -0
- package/types/components/NavItem.d.ts.map +1 -1
- package/types/components/NavRailItem.d.ts +1 -0
- package/types/components/Page.d.ts.map +1 -1
- package/types/core/Composition.d.ts +5 -1
- package/types/core/Composition.d.ts.map +1 -1
- package/types/core/CompositionAdapter.d.ts +0 -25
- package/types/core/CompositionAdapter.d.ts.map +1 -1
- package/types/core/CustomElement.d.ts +122 -19
- package/types/core/CustomElement.d.ts.map +1 -1
- package/types/core/customTypes.d.ts +8 -0
- package/types/core/customTypes.d.ts.map +1 -1
- package/types/core/jsonMergePatch.d.ts +58 -4
- package/types/core/jsonMergePatch.d.ts.map +1 -1
- package/types/core/observe.d.ts +21 -2
- package/types/core/observe.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/mixins/FlexboxMixin.d.ts +14 -0
- package/types/mixins/FlexboxMixin.d.ts.map +1 -0
- package/types/services/theme.d.ts +6 -0
- package/types/services/theme.d.ts.map +1 -1
- package/types/mixins/FlexableMixin.d.ts +0 -14
- package/types/mixins/FlexableMixin.d.ts.map +0 -1
package/dist/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"core/optimizations.js":{"bytes":597,"imports":[],"format":"esm"},"core/CompositionAdapter.js":{"bytes":
|
|
1
|
+
{"inputs":{"core/optimizations.js":{"bytes":597,"imports":[],"format":"esm"},"core/CompositionAdapter.js":{"bytes":10868,"imports":[{"path":"core/optimizations.js","kind":"import-statement","original":"./optimizations.js"}],"format":"esm"},"core/css.js":{"bytes":4807,"imports":[],"format":"esm"},"core/dom.js":{"bytes":2583,"imports":[],"format":"esm"},"core/jsonMergePatch.js":{"bytes":9129,"imports":[],"format":"esm"},"core/observe.js":{"bytes":20743,"imports":[{"path":"core/dom.js","kind":"import-statement","original":"./dom.js"},{"path":"core/jsonMergePatch.js","kind":"import-statement","original":"./jsonMergePatch.js"}],"format":"esm"},"core/uid.js":{"bytes":475,"imports":[],"format":"esm"},"core/template.js":{"bytes":3062,"imports":[{"path":"core/uid.js","kind":"import-statement","original":"./uid.js"}],"format":"esm"},"core/Composition.js":{"bytes":47177,"imports":[{"path":"core/CompositionAdapter.js","kind":"import-statement","original":"./CompositionAdapter.js"},{"path":"core/css.js","kind":"import-statement","original":"./css.js"},{"path":"core/observe.js","kind":"import-statement","original":"./observe.js"},{"path":"core/optimizations.js","kind":"import-statement","original":"./optimizations.js"},{"path":"core/template.js","kind":"import-statement","original":"./template.js"},{"path":"core/uid.js","kind":"import-statement","original":"./uid.js"}],"format":"esm"},"core/CustomElement.js":{"bytes":43089,"imports":[{"path":"core/Composition.js","kind":"import-statement","original":"./Composition.js"},{"path":"core/css.js","kind":"import-statement","original":"./css.js"},{"path":"core/dom.js","kind":"import-statement","original":"./dom.js"},{"path":"core/jsonMergePatch.js","kind":"import-statement","original":"./jsonMergePatch.js"},{"path":"core/observe.js","kind":"import-statement","original":"./observe.js"},{"path":"core/template.js","kind":"import-statement","original":"./template.js"}],"format":"esm"}},"outputs":{"dist/CustomElement.min.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":204290},"dist/CustomElement.min.js":{"imports":[],"exports":["cloneAttributeCallback","default"],"entryPoint":"core/CustomElement.js","inputs":{"core/optimizations.js":{"bytesInOutput":108},"core/CompositionAdapter.js":{"bytesInOutput":2966},"core/css.js":{"bytesInOutput":1043},"core/dom.js":{"bytesInOutput":586},"core/jsonMergePatch.js":{"bytesInOutput":2335},"core/observe.js":{"bytesInOutput":5589},"core/uid.js":{"bytesInOutput":131},"core/template.js":{"bytesInOutput":723},"core/Composition.js":{"bytesInOutput":12901},"core/CustomElement.js":{"bytesInOutput":9970}},"bytes":36449}}}
|
package/loaders/theme.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { addGlobalCss } from '../core/css.js';
|
|
2
2
|
import {
|
|
3
|
+
generateResetCSS,
|
|
3
4
|
generateThemeCSS,
|
|
4
5
|
generateTypographyGlobalCSS,
|
|
5
6
|
themeOptionsFromSearchParams,
|
|
6
7
|
} from '../services/theme.js';
|
|
7
8
|
import { getCurrentSearchParams } from '../utils/searchParams.js';
|
|
8
9
|
|
|
10
|
+
const options = themeOptionsFromSearchParams(getCurrentSearchParams());
|
|
9
11
|
addGlobalCss([
|
|
10
|
-
generateThemeCSS(
|
|
12
|
+
generateThemeCSS(options),
|
|
11
13
|
generateTypographyGlobalCSS(),
|
|
14
|
+
options.resetCSS ? generateResetCSS() : '',
|
|
12
15
|
].join('\n'));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Layout helper mixin providing
|
|
2
|
+
* Layout helper mixin providing flexbox utilities (gap, padding, axis).
|
|
3
3
|
* @param {typeof import('../core/CustomElement.js').default} Base
|
|
4
4
|
*/
|
|
5
|
-
export default function
|
|
5
|
+
export default function FlexboxMixin(Base) {
|
|
6
6
|
return Base
|
|
7
7
|
.observe({
|
|
8
8
|
/** Set `display: block` on the host (boolean) */
|
|
@@ -130,7 +130,7 @@ export default function FlexableMixin(Base) {
|
|
|
130
130
|
:host(:is([gap="24"])) {gap: 24px;}
|
|
131
131
|
|
|
132
132
|
:host(:is([padding])) {padding: 0;}
|
|
133
|
-
:host(:is([padding="pane"])) { padding
|
|
133
|
+
:host(:is([padding="pane"])) { padding: var(--mdw-pane__padding, 16px) }
|
|
134
134
|
:host(:is([padding="4"])) {padding: 4px;}
|
|
135
135
|
:host(:is([padding="8"])) {padding: 8px;}
|
|
136
136
|
:host(:is([padding="12"])) {padding: 12px;}
|
|
@@ -138,6 +138,7 @@ export default function FlexableMixin(Base) {
|
|
|
138
138
|
:host(:is([padding="20"])) {padding: 20px;}
|
|
139
139
|
:host(:is([padding="24"])) {padding: 24px;}
|
|
140
140
|
:host(:is([padding-x])) {padding-inline: 0;}
|
|
141
|
+
:host(:is([padding-x="pane"])) {padding-inline: var(--mdw-pane__padding-inline, 16px);}
|
|
141
142
|
:host(:is([padding-x="4"])) {padding-inline: 4px;}
|
|
142
143
|
:host(:is([padding-x="8"])) {padding-inline: 8px;}
|
|
143
144
|
:host(:is([padding-x="12"])) {padding-inline: 12px;}
|
|
@@ -145,6 +146,7 @@ export default function FlexableMixin(Base) {
|
|
|
145
146
|
:host(:is([padding-x="20"])) {padding-inline: 20px;}
|
|
146
147
|
:host(:is([padding-x="24"])) {padding-inline: 24px;}
|
|
147
148
|
:host(:is([padding-y])) {padding-block: 0;}
|
|
149
|
+
:host(:is([padding-y="pane"])) {padding-block: var(--mdw-pane__padding-block, 16px);}
|
|
148
150
|
:host(:is([padding-y="4"])) {padding-block: 4px;}
|
|
149
151
|
:host(:is([padding-y="8"])) {padding-block: 8px;}
|
|
150
152
|
:host(:is([padding-y="12"])) {padding-block: 12px;}
|
package/package.json
CHANGED
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "https://github.com/clshortfuse/materialdesignweb/issues"
|
|
9
9
|
},
|
|
10
|
-
"customElements": "
|
|
10
|
+
"customElements": "api/custom-elements.json",
|
|
11
11
|
"description": "Material Design for Web",
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@babel/preset-env": "^7.26.9",
|
|
14
14
|
"@esm-bundle/chai": "^4.3.4-fix.0",
|
|
15
15
|
"@playwright/test": "^1.50.1",
|
|
16
|
+
"@pwrs/cem": "^0.7.5",
|
|
16
17
|
"@rollup/plugin-babel": "^6.0.4",
|
|
17
18
|
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
18
19
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -31,9 +32,10 @@
|
|
|
31
32
|
"ajv": "^8.17.1",
|
|
32
33
|
"browserslist-to-esbuild": "^2.1.1",
|
|
33
34
|
"clean-css": "^5.3.3",
|
|
35
|
+
"custom-element-vs-code-integration": "^1.5.0",
|
|
34
36
|
"custom-elements-manifest": "^2.1.0",
|
|
35
37
|
"element-internals-polyfill": "^1.3.13",
|
|
36
|
-
"esbuild": "^0.
|
|
38
|
+
"esbuild": "^0.27.2",
|
|
37
39
|
"esbuild-postcss": "^0.0.4",
|
|
38
40
|
"eslint": "^8.57.1",
|
|
39
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -65,6 +67,7 @@
|
|
|
65
67
|
"./utils/*": "./utils/*"
|
|
66
68
|
},
|
|
67
69
|
"files": [
|
|
70
|
+
"/api",
|
|
68
71
|
"/bin",
|
|
69
72
|
"/dist",
|
|
70
73
|
"/constants",
|
|
@@ -98,20 +101,27 @@
|
|
|
98
101
|
"url": "git+https://github.com/clshortfuse/materialdesignweb.git"
|
|
99
102
|
},
|
|
100
103
|
"scripts": {
|
|
101
|
-
"cem": "node scripts/cem-generate.js",
|
|
102
|
-
"demo": "node build/esbuild.js demo/demo.js --outdir=demo --minify --metafile",
|
|
104
|
+
"cem": "node scripts/cem-generate.js && node scripts/cem-vscode.js",
|
|
103
105
|
"demo:rollup": "rollup -c build/rollup.config.js demo/demo.js --dir=demo --compact",
|
|
104
106
|
"build:index": "node build/esbuild.js index.js --outdir=dist --minify --metafile --production --format=iife",
|
|
107
|
+
"build:demo:css": "node bin/mdw-css.js --custom=yellow,orange:orange,green:0f0,alias:aqua | npx esbuild --minify --loader=css > demo/theme.css",
|
|
108
|
+
"build:demo:css-alt": "node bin/mdw-css.js --color=a46750 --custom=yellow,orange:orange,green:0f0,alias:aqua | npx esbuild --minify --loader=css > demo/alt-theme.css",
|
|
109
|
+
"build:demo:js": "node build/esbuild.js demo/demo.js --outdir=demo --minify --metafile",
|
|
110
|
+
"build:demo": "npm run build:demo:css && npm run build:demo:css-alt && npm run build:demo:js",
|
|
105
111
|
"build:custom-element": "node build/esbuild.js core/CustomElement.js --outdir=dist --minify --metafile --production --format=esm",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
112
|
+
"build": "npm run build:index && npm run build:custom-element",
|
|
113
|
+
"demo": "npm run build:demo",
|
|
114
|
+
"dist": "npm run build",
|
|
115
|
+
"api": "npm run cem",
|
|
116
|
+
"prepublishOnly": "npm run types && npm run api && npm run dist",
|
|
117
|
+
"eslint": "eslint core components mixins --ignore-path .gitignore --ext .js",
|
|
118
|
+
"lint": "npm run eslint && tsc --noEmit",
|
|
119
|
+
"pretest": "npm run eslint && npm run build:index",
|
|
111
120
|
"preversion": "npm run prepublishOnly",
|
|
112
121
|
"serve": "node build/esbuild.js demo/demo.js --outdir=demo --metafile --serve --live --tree-shaking=true",
|
|
113
122
|
"serve:rollup": "rollup -c build/rollup.config.js demo/demo.js --dir=demo --watch --environment SERVE",
|
|
114
123
|
"test": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers chromium firefox webkit --concurrency 1",
|
|
124
|
+
"test:cem": "npx @pwrs/cem validate",
|
|
115
125
|
"test:custom": "web-test-runner \"test/**/*.test.js\" --node-resolve --concurrency 1",
|
|
116
126
|
"test:chromium": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers chromium",
|
|
117
127
|
"test:firefox": "web-test-runner \"test/**/*.test.js\" --node-resolve --playwright --browsers firefox --concurrency 1",
|
|
@@ -133,6 +143,18 @@
|
|
|
133
143
|
"./demo/demo/*.js",
|
|
134
144
|
"./demo/polyfills/*.js"
|
|
135
145
|
],
|
|
146
|
+
"contributes": {
|
|
147
|
+
"html": {
|
|
148
|
+
"customData": [
|
|
149
|
+
"./api/html.html-data.json"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"css": {
|
|
153
|
+
"customData": [
|
|
154
|
+
"./api/css.css-data.json"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
},
|
|
136
158
|
"type": "module",
|
|
137
159
|
"typesVersions": {
|
|
138
160
|
"*": {
|
|
@@ -141,5 +163,5 @@
|
|
|
141
163
|
]
|
|
142
164
|
}
|
|
143
165
|
},
|
|
144
|
-
"version": "0.
|
|
166
|
+
"version": "0.10.0"
|
|
145
167
|
}
|
package/services/theme.js
CHANGED
|
@@ -25,6 +25,7 @@ export const TYPE_STYLES = [
|
|
|
25
25
|
* @prop {string} [color]
|
|
26
26
|
* @prop {Iterable<[string,string?]>} [custom] Map()
|
|
27
27
|
* @prop {'auto'|'light'|'dark'} [lightness='auto']
|
|
28
|
+
* @prop {boolean} [resetCSS=true] defaults to true
|
|
28
29
|
* @return {string}
|
|
29
30
|
*/
|
|
30
31
|
|
|
@@ -95,102 +96,102 @@ function getShapeEdgesSVGs() {
|
|
|
95
96
|
*/
|
|
96
97
|
export function generateTypographyCSS(config = TYPOGRAPHY_DEFAULT) {
|
|
97
98
|
return /* css */ `
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
99
|
+
:root {
|
|
100
|
+
--mdw-typeface__brand: ${config.face.brand};
|
|
101
|
+
--mdw-typeface__weight-regular: ${config.face.weight.regular};
|
|
102
|
+
--mdw-typeface__weight-medium: ${config.face.weight.medium};
|
|
103
|
+
--mdw-typeface__plain: ${config.face.plain};
|
|
104
|
+
|
|
105
|
+
--mdw-typescale__display-large__font-family: ${config.scale.display.large.fontFamily};
|
|
106
|
+
--mdw-typescale__display-large__line-height: calc(${config.scale.display.large.lineHeight} * 0.0625rem);
|
|
107
|
+
--mdw-typescale__display-large__font-size: calc(${config.scale.display.large.fontSize} * 0.0625rem);
|
|
108
|
+
--mdw-typescale__display-large__letter-spacing: calc(${config.scale.display.large.letterSpacing} * 0.0625rem);
|
|
109
|
+
--mdw-typescale__display-large__font-weight: ${config.scale.display.large.weight};
|
|
110
|
+
|
|
111
|
+
--mdw-typescale__display-medium__font-family: ${config.scale.display.medium.fontFamily};
|
|
112
|
+
--mdw-typescale__display-medium__line-height: calc(${config.scale.display.medium.lineHeight} * 0.0625rem);
|
|
113
|
+
--mdw-typescale__display-medium__font-size: calc(${config.scale.display.medium.fontSize} * 0.0625rem);
|
|
114
|
+
--mdw-typescale__display-medium__letter-spacing: calc(${config.scale.display.medium.letterSpacing} * 0.0625rem);
|
|
115
|
+
--mdw-typescale__display-medium__font-weight: ${config.scale.display.medium.weight};
|
|
116
|
+
|
|
117
|
+
--mdw-typescale__display-small__font-family: ${config.scale.display.small.fontFamily};
|
|
118
|
+
--mdw-typescale__display-small__line-height: calc(${config.scale.display.small.lineHeight} * 0.0625rem);
|
|
119
|
+
--mdw-typescale__display-small__font-size: calc(${config.scale.display.small.fontSize} * 0.0625rem);
|
|
120
|
+
--mdw-typescale__display-small__letter-spacing: calc(${config.scale.display.small.letterSpacing} * 0.0625rem);
|
|
121
|
+
--mdw-typescale__display-small__font-weight: ${config.scale.display.small.weight};
|
|
122
|
+
|
|
123
|
+
--mdw-typescale__headline-large__font-family: ${config.scale.headline.large.fontFamily};
|
|
124
|
+
--mdw-typescale__headline-large__line-height: calc(${config.scale.headline.large.lineHeight} * 0.0625rem);
|
|
125
|
+
--mdw-typescale__headline-large__font-size: calc(${config.scale.headline.large.fontSize} * 0.0625rem);
|
|
126
|
+
--mdw-typescale__headline-large__letter-spacing: calc(${config.scale.headline.large.letterSpacing} * 0.0625rem);
|
|
127
|
+
--mdw-typescale__headline-large__font-weight: ${config.scale.headline.large.weight};
|
|
128
|
+
|
|
129
|
+
--mdw-typescale__headline-medium__font-family: ${config.scale.headline.medium.fontFamily};
|
|
130
|
+
--mdw-typescale__headline-medium__line-height: calc(${config.scale.headline.medium.lineHeight} * 0.0625rem);
|
|
131
|
+
--mdw-typescale__headline-medium__font-size: calc(${config.scale.headline.medium.fontSize} * 0.0625rem);
|
|
132
|
+
--mdw-typescale__headline-medium__letter-spacing: calc(${config.scale.headline.medium.letterSpacing} * 0.0625rem);
|
|
133
|
+
--mdw-typescale__headline-medium__font-weight: ${config.scale.headline.medium.weight};
|
|
134
|
+
|
|
135
|
+
--mdw-typescale__headline-small__font-family: ${config.scale.headline.small.fontFamily};
|
|
136
|
+
--mdw-typescale__headline-small__line-height: calc(${config.scale.headline.small.lineHeight} * 0.0625rem);
|
|
137
|
+
--mdw-typescale__headline-small__font-size: calc(${config.scale.headline.small.fontSize} * 0.0625rem);
|
|
138
|
+
--mdw-typescale__headline-small__letter-spacing: calc(${config.scale.headline.small.letterSpacing} * 0.0625rem);
|
|
139
|
+
--mdw-typescale__headline-small__font-weight: ${config.scale.headline.small.weight};
|
|
140
|
+
|
|
141
|
+
--mdw-typescale__title-large__font-family: ${config.scale.title.large.fontFamily};
|
|
142
|
+
--mdw-typescale__title-large__line-height: calc(${config.scale.title.large.lineHeight} * 0.0625rem);
|
|
143
|
+
--mdw-typescale__title-large__font-size: calc(${config.scale.title.large.fontSize} * 0.0625rem);
|
|
144
|
+
--mdw-typescale__title-large__letter-spacing: calc(${config.scale.title.large.letterSpacing} * 0.0625rem);
|
|
145
|
+
--mdw-typescale__title-large__font-weight: ${config.scale.title.large.weight};
|
|
146
|
+
|
|
147
|
+
--mdw-typescale__title-medium__font-family: ${config.scale.title.medium.fontFamily};
|
|
148
|
+
--mdw-typescale__title-medium__line-height: calc(${config.scale.title.medium.lineHeight} * 0.0625rem);
|
|
149
|
+
--mdw-typescale__title-medium__font-size: calc(${config.scale.title.medium.fontSize} * 0.0625rem);
|
|
150
|
+
--mdw-typescale__title-medium__letter-spacing: calc(${config.scale.title.medium.letterSpacing} * 0.0625rem);
|
|
151
|
+
--mdw-typescale__title-medium__font-weight: ${config.scale.title.medium.weight};
|
|
152
|
+
|
|
153
|
+
--mdw-typescale__title-small__font-family: ${config.scale.title.small.fontFamily};
|
|
154
|
+
--mdw-typescale__title-small__line-height: calc(${config.scale.title.small.lineHeight} * 0.0625rem);
|
|
155
|
+
--mdw-typescale__title-small__font-size: calc(${config.scale.title.small.fontSize} * 0.0625rem);
|
|
156
|
+
--mdw-typescale__title-small__letter-spacing: calc(${config.scale.title.small.letterSpacing} * 0.0625rem);
|
|
157
|
+
--mdw-typescale__title-small__font-weight: ${config.scale.title.small.weight};
|
|
158
|
+
|
|
159
|
+
--mdw-typescale__label-large__font-family: ${config.scale.label.large.fontFamily};
|
|
160
|
+
--mdw-typescale__label-large__line-height: calc(${config.scale.label.large.lineHeight} * 0.0625rem);
|
|
161
|
+
--mdw-typescale__label-large__font-size: calc(${config.scale.label.large.fontSize} * 0.0625rem);
|
|
162
|
+
--mdw-typescale__label-large__letter-spacing: calc(${config.scale.label.large.letterSpacing} * 0.0625rem);
|
|
163
|
+
--mdw-typescale__label-large__font-weight: ${config.scale.label.large.weight};
|
|
164
|
+
|
|
165
|
+
--mdw-typescale__label-medium__font-family: ${config.scale.label.medium.fontFamily};
|
|
166
|
+
--mdw-typescale__label-medium__line-height: calc(${config.scale.label.medium.lineHeight} * 0.0625rem);
|
|
167
|
+
--mdw-typescale__label-medium__font-size: calc(${config.scale.label.medium.fontSize} * 0.0625rem);
|
|
168
|
+
--mdw-typescale__label-medium__letter-spacing: calc(${config.scale.label.medium.letterSpacing} * 0.0625rem);
|
|
169
|
+
--mdw-typescale__label-medium__font-weight: ${config.scale.label.medium.weight};
|
|
170
|
+
|
|
171
|
+
--mdw-typescale__label-small__font-family: ${config.scale.label.small.fontFamily};
|
|
172
|
+
--mdw-typescale__label-small__line-height: calc(${config.scale.label.small.lineHeight} * 0.0625rem);
|
|
173
|
+
--mdw-typescale__label-small__font-size: calc(${config.scale.label.small.fontSize} * 0.0625rem);
|
|
174
|
+
--mdw-typescale__label-small__letter-spacing: calc(${config.scale.label.small.letterSpacing} * 0.0625rem);
|
|
175
|
+
--mdw-typescale__label-small__font-weight: ${config.scale.label.small.weight};
|
|
176
|
+
|
|
177
|
+
--mdw-typescale__body-large__font-family: ${config.scale.body.large.fontFamily};
|
|
178
|
+
--mdw-typescale__body-large__line-height: calc(${config.scale.body.large.lineHeight} * 0.0625rem);
|
|
179
|
+
--mdw-typescale__body-large__font-size: calc(${config.scale.body.large.fontSize} * 0.0625rem);
|
|
180
|
+
--mdw-typescale__body-large__letter-spacing: calc(${config.scale.body.large.letterSpacing} * 0.0625rem);
|
|
181
|
+
--mdw-typescale__body-large__font-weight: ${config.scale.body.large.weight};
|
|
182
|
+
|
|
183
|
+
--mdw-typescale__body-medium__font-family: ${config.scale.body.medium.fontFamily};
|
|
184
|
+
--mdw-typescale__body-medium__line-height: calc(${config.scale.body.medium.lineHeight} * 0.0625rem);
|
|
185
|
+
--mdw-typescale__body-medium__font-size: calc(${config.scale.body.medium.fontSize} * 0.0625rem);
|
|
186
|
+
--mdw-typescale__body-medium__letter-spacing: calc(${config.scale.body.medium.letterSpacing} * 0.0625rem);
|
|
187
|
+
--mdw-typescale__body-medium__font-weight: ${config.scale.body.medium.weight};
|
|
188
|
+
|
|
189
|
+
--mdw-typescale__body-small__font-family: ${config.scale.body.small.fontFamily};
|
|
190
|
+
--mdw-typescale__body-small__line-height: calc(${config.scale.body.small.lineHeight} * 0.0625rem);
|
|
191
|
+
--mdw-typescale__body-small__font-size: calc(${config.scale.body.small.fontSize} * 0.0625rem);
|
|
192
|
+
--mdw-typescale__body-small__letter-spacing: calc(${config.scale.body.small.letterSpacing} * 0.0625rem);
|
|
193
|
+
--mdw-typescale__body-small__font-weight: ${config.scale.body.small.weight};
|
|
194
|
+
}`;
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
/** @return {string} */
|
|
@@ -208,6 +209,21 @@ export function generateTypographyGlobalCSS() {
|
|
|
208
209
|
.join('\n')}}`;
|
|
209
210
|
}
|
|
210
211
|
|
|
212
|
+
/** @return {string} */
|
|
213
|
+
export function generateResetCSS() {
|
|
214
|
+
return /* css */ `
|
|
215
|
+
html{
|
|
216
|
+
background-color:rgb(var(--mdw-color__background));
|
|
217
|
+
color:rgb(var(--mdw-color__on-background));
|
|
218
|
+
}
|
|
219
|
+
html,body{
|
|
220
|
+
font:var(--mdw-typescale__body-large__font);
|
|
221
|
+
letter-spacing:var(--mdw-typescale__body-large__letter-spacing);
|
|
222
|
+
margin:0;
|
|
223
|
+
padding:0;
|
|
224
|
+
}`;
|
|
225
|
+
}
|
|
226
|
+
|
|
211
227
|
/**
|
|
212
228
|
* @param {typeof SHAPE_ROUNDED_DEFAULT} [config]
|
|
213
229
|
* @return {string}
|
|
@@ -293,7 +309,9 @@ export function themeOptionsFromSearchParams(searchParams) {
|
|
|
293
309
|
.map((c) => c.split(':')) ?? []);
|
|
294
310
|
|
|
295
311
|
const lightness = /** @type {ThemeOptions['lightness']} */(searchParams?.get('lightness') ?? 'auto');
|
|
296
|
-
|
|
312
|
+
const resetCSSParam = searchParams?.get('resetCSS') ?? searchParams?.get('resetCss');
|
|
313
|
+
const resetCSS = resetCSSParam !== 'false';
|
|
314
|
+
return { color, custom, lightness, resetCSS };
|
|
297
315
|
}
|
|
298
316
|
|
|
299
317
|
/**
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavBarItem.d.ts.map
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavDrawerItem.d.ts.map
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof CustomElement & import("../core/CustomElement.js"
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
export type DeprecatedHTMLAnchorElementProperties = "charset" | "coords" | "name" | "shape";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../components/NavItem.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../components/NavItem.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAYc,SAAS,GAAC,QAAQ,GAAC,MAAM,GAAC,OAAO;0BAPrB,0BAA0B"}
|
|
@@ -92,6 +92,7 @@ declare const _default: typeof import("../index.js").CustomElement & import("../
|
|
|
92
92
|
_anchorAriaLabelledby: never;
|
|
93
93
|
_anchorHref: never;
|
|
94
94
|
iconVariation: () => string;
|
|
95
|
+
_customRippleState: never;
|
|
95
96
|
}, any[]>;
|
|
96
97
|
export default _default;
|
|
97
98
|
//# sourceMappingURL=NavRailItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../components/Page.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../components/Page.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;IAoHI,oFAAoF;;;;0BAlH9D,0BAA0B"}
|
|
@@ -17,6 +17,7 @@ export default class Composition<T> {
|
|
|
17
17
|
searchIndex: number;
|
|
18
18
|
cacheIndex: number;
|
|
19
19
|
commentIndex: number;
|
|
20
|
+
adapterIndex: number;
|
|
20
21
|
/** @type {this['nodesToBind'][0]} */
|
|
21
22
|
nodeEntry: this["nodesToBind"][0];
|
|
22
23
|
};
|
|
@@ -156,6 +157,7 @@ export type RenderOptions<T> = {
|
|
|
156
157
|
*/
|
|
157
158
|
context?: any;
|
|
158
159
|
injections?: any;
|
|
160
|
+
iterationIndex?: number;
|
|
159
161
|
};
|
|
160
162
|
export type RenderDraw<T> = {
|
|
161
163
|
target: Element | DocumentFragment;
|
|
@@ -229,6 +231,7 @@ export type RenderGraphAction = {
|
|
|
229
231
|
defaultValue?: any;
|
|
230
232
|
search: RenderGraphSearch;
|
|
231
233
|
injections?: InterpolateOptions["injections"];
|
|
234
|
+
adapterIndex?: number;
|
|
232
235
|
};
|
|
233
236
|
export type InterpolateOptions = {
|
|
234
237
|
/**
|
|
@@ -247,7 +250,7 @@ export type InterpolateOptions = {
|
|
|
247
250
|
export type InitializationState = {
|
|
248
251
|
lastElement: Element;
|
|
249
252
|
lastChildNode: ChildNode;
|
|
250
|
-
nodes: (
|
|
253
|
+
nodes: (ChildNode)[];
|
|
251
254
|
caches: any[];
|
|
252
255
|
comments: Comment[];
|
|
253
256
|
nodeStates: Uint8Array;
|
|
@@ -255,6 +258,7 @@ export type InitializationState = {
|
|
|
255
258
|
refs: HTMLElement[];
|
|
256
259
|
lastChildNodeIndex: number;
|
|
257
260
|
options: RenderOptions<unknown>;
|
|
261
|
+
adapters: CompositionAdapter<any>[][];
|
|
258
262
|
};
|
|
259
263
|
import CompositionAdapter from './CompositionAdapter.js';
|
|
260
264
|
//# sourceMappingURL=Composition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../../core/Composition.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Composition.d.ts","sourceRoot":"","sources":["../../core/Composition.js"],"names":[],"mappings":"AA4dA,kBAAkB;AAClB,iCADc,CAAC;IAEb,kCAA8C;IAa9C,6BAAgC;IA2GhC;;;;OAIG;IACH,8BAHY,qBAAqB,CAAC,OAAO,WAAW,CAAC,GAAC,CAAC,CAAC,GAC5C,WAAW,CAAC,GAAC,CAAC,CAazB;IAlCD;;OAEG;IACH,sBAFW,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,EAQhC;IA7GD;;;;;;QAME,qCAAqC;mBAA1B,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;MAEjC;IAKF,kDAAkD;IAClD,aADW;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAC,EAAE,CAC7B;IAEjB,uBAAuB;IACvB,OADW,MAAM,EAAE,CACR;IAEX,kCAAkC;IAClC,UADW,iBAAiB,EAAE,CAChB;IAEd,oBAAoB;IACpB,WADW,GAAG,EAAE,CACD;IAEf;;;OAGG;IACH,eAFU,GAAG,CAAC,WAAS,MAAM,EAAE,iBAAiB,CAAC,CAEnC;IAEd;;;OAGG;IACH,oBAFU,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAEvB;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACT;IAErB,0BAA0B;IAC1B,kBADW,GAAG,CAAC,MAAM,CAAC,CACL;IAEjB;;;OAGG;IACH,MAFU,MAAM,EAAE,CAER;IAEV;;;;;;;OAOG;IACH,SAFU,kBAAkB,CAAC,CAAC,CAAC,CAEvB;IAER;;;;OAIG;IACH,QAFU,GAAG,CAAC,MAAM,GAAC,MAAM,EAAE,wBAAwB,CA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R,MAAM,EAAE,EAAE;kBACV,GAAG;gBACH,iBAAiB;;;gBAKlB,CAAC,KAAK,EAAC,mBAAmB,EAAE,KAAK,EAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAC,GAAG,KAAK,GAAG;mBACrE,MAAM;gBACN,MAAM;iBACN,MAAM;eACN,MAAM;mBACN,GAAG;YACH,iBAAiB;iBACjB,kBAAkB,CAAC,YAAY,CAAC;mBAChC,MAAM;;;;;;eAkNN,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC;;;;iBAClB;QAAC,QAAQ,EAAC,MAAM,CAAA;KAAC,GAAG,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,GAAG;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC;;;iBAKvD,OAAO;mBACP,SAAS;WACT,CAAC,SAAS,CAAC,EAAE;YACb,GAAG,EAAE;cACL,OAAO,EAAE;gBACT,UAAU;kBACV,UAAU;UACV,WAAW,EAAE;wBACb,MAAM;aACN,aAAa,CAAC,OAAC,CAAC;cAChB,kBAAkB,CAAC,GAAG,CAAC,EAAE,EAAE;;+BArYN,yBAAyB"}
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @template T
|
|
3
|
-
* @typedef {import('./Composition.js').default<T>} Composition
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @template T
|
|
7
|
-
* @typedef {import('./Composition.js').RenderOptions<T>} RenderOptions
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @template T
|
|
11
|
-
* @typedef {Object} DomAdapterCreateOptions
|
|
12
|
-
* @prop {Comment} anchorNode
|
|
13
|
-
* @prop {(...args:any[]) => HTMLElement} [create]
|
|
14
|
-
* @prop {Composition<T>} composition
|
|
15
|
-
* @prop {RenderOptions<T>} renderOptions
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* @typedef {Object} ItemMetadata
|
|
19
|
-
* @prop {Element} element
|
|
20
|
-
* @prop {any} key
|
|
21
|
-
* @prop {Element|Comment} domNode
|
|
22
|
-
* @prop {Function} render
|
|
23
|
-
* @prop {boolean} [hidden]
|
|
24
|
-
* @prop {Comment} [comment]
|
|
25
|
-
*/
|
|
26
1
|
/** @template T */
|
|
27
2
|
export default class CompositionAdapter<T> {
|
|
28
3
|
/** @param {DomAdapterCreateOptions<T>} options */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositionAdapter.d.ts","sourceRoot":"","sources":["../../core/CompositionAdapter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CompositionAdapter.d.ts","sourceRoot":"","sources":["../../core/CompositionAdapter.js"],"names":[],"mappings":"AA+DA,kBAAkB;AAClB,wCADc,CAAC;IAEb,kDAAkD;IAClD,qBADY,uBAAuB,CAAC,CAAC,CAAC,EAmCrC;IAjCC,oBAAoC;IAEpC,6BAA6B;IAC7B,UADW,YAAY,EAAE,CACP;IAClB;;;;;;OAMG;IACH,MAFU,GAAG,EAAE,CAED;IAEd;;OAEG;IACH,+BAAkC;IAElC,6BAA6B;IAC7B,aADW,WAAW,CAAC,CAAC,CAAC,CACa;IACtC,+BAA+B;IAC/B,eADW,aAAa,CAAC,CAAC,CAAC,CACe;IAE1C,qCAAqC;IACrC,eADW,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CACR;IAEzB,wBAAwB;IACxB,gBADW,OAAO,EAAE,CACI;IAExB,0BAA0B;IAC1B,iBADW,MAAM,GAAC,IAAI,CACK;IAC3B,0BAA0B;IAC1B,eADW,MAAM,GAAC,IAAI,CACG;IAG3B;;;;OAIG;IACH,gBAJW,OAAO,CAAC,CAAC,CAAC,QACV,CAAC,GACA,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC,CAInD;IAED,mBAGC;IAED,mBAMC;IAED,kBAYC;IAED,4BAA4B;IAC5B,qBADY,MAAM,QAajB;IAED;;;;;;;;;;;OAWG;IACH,qBAVW,MAAM,WACN,GAA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