@spectrum-web-components/theme 0.12.0 → 0.13.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 +17 -0
- package/core.dev.js +4 -0
- package/core.dev.js.map +7 -0
- package/core.js +4 -15
- package/core.js.map +7 -1
- package/custom-elements.json +3 -3
- package/express/scale-large.dev.js +5 -0
- package/express/scale-large.dev.js.map +7 -0
- package/express/scale-large.js +5 -16
- package/express/scale-large.js.map +7 -1
- package/express/scale-medium.dev.js +5 -0
- package/express/scale-medium.dev.js.map +7 -0
- package/express/scale-medium.js +5 -16
- package/express/scale-medium.js.map +7 -1
- package/express/theme-dark.dev.js +5 -0
- package/express/theme-dark.dev.js.map +7 -0
- package/express/theme-dark.js +5 -16
- package/express/theme-dark.js.map +7 -1
- package/express/theme-darkest.dev.js +5 -0
- package/express/theme-darkest.dev.js.map +7 -0
- package/express/theme-darkest.js +5 -16
- package/express/theme-darkest.js.map +7 -1
- package/express/theme-light.dev.js +5 -0
- package/express/theme-light.dev.js.map +7 -0
- package/express/theme-light.js +5 -16
- package/express/theme-light.js.map +7 -1
- package/express/theme-lightest.dev.js +5 -0
- package/express/theme-lightest.dev.js.map +7 -0
- package/express/theme-lightest.js +5 -16
- package/express/theme-lightest.js.map +7 -1
- package/package.json +97 -24
- package/scale-large.dev.js +5 -0
- package/scale-large.dev.js.map +7 -0
- package/scale-large.js +5 -16
- package/scale-large.js.map +7 -1
- package/scale-medium.dev.js +5 -0
- package/scale-medium.dev.js.map +7 -0
- package/scale-medium.js +5 -16
- package/scale-medium.js.map +7 -1
- package/sp-theme.dev.js +3 -0
- package/sp-theme.dev.js.map +7 -0
- package/sp-theme.js +3 -14
- package/sp-theme.js.map +7 -1
- package/src/Theme.dev.js +299 -0
- package/src/Theme.dev.js.map +7 -0
- package/src/Theme.js +276 -339
- package/src/Theme.js.map +7 -1
- package/src/express/core.dev.js +4 -0
- package/src/express/core.dev.js.map +7 -0
- package/src/express/core.js +4 -15
- package/src/express/core.js.map +7 -1
- package/src/express/scale-large.css.dev.js +190 -0
- package/src/express/scale-large.css.dev.js.map +7 -0
- package/src/express/scale-large.css.js +18 -21
- package/src/express/scale-large.css.js.map +7 -1
- package/src/express/scale-medium.css.dev.js +198 -0
- package/src/express/scale-medium.css.dev.js.map +7 -0
- package/src/express/scale-medium.css.js +18 -21
- package/src/express/scale-medium.css.js.map +7 -1
- package/src/express/theme-dark.css.dev.js +56 -0
- package/src/express/theme-dark.css.dev.js.map +7 -0
- package/src/express/theme-dark.css.js +4 -15
- package/src/express/theme-dark.css.js.map +7 -1
- package/src/express/theme-light.css.dev.js +56 -0
- package/src/express/theme-light.css.dev.js.map +7 -0
- package/src/express/theme-light.css.js +4 -15
- package/src/express/theme-light.css.js.map +7 -1
- package/src/express/theme.css.dev.js +1846 -0
- package/src/express/theme.css.dev.js.map +7 -0
- package/src/express/theme.css.js +6 -17
- package/src/express/theme.css.js.map +7 -1
- package/src/express/themes.dev.js +7 -0
- package/src/express/themes.dev.js.map +7 -0
- package/src/express/themes.js +7 -18
- package/src/express/themes.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/scale-large.css.dev.js +198 -0
- package/src/scale-large.css.dev.js.map +7 -0
- package/src/scale-large.css.js +18 -21
- package/src/scale-large.css.js.map +7 -1
- package/src/scale-medium.css.dev.js +200 -0
- package/src/scale-medium.css.dev.js.map +7 -0
- package/src/scale-medium.css.js +18 -21
- package/src/scale-medium.css.js.map +7 -1
- package/src/theme-dark.css.dev.js +58 -0
- package/src/theme-dark.css.dev.js.map +7 -0
- package/src/theme-dark.css.js +4 -15
- package/src/theme-dark.css.js.map +7 -1
- package/src/theme-darkest.css.dev.js +58 -0
- package/src/theme-darkest.css.dev.js.map +7 -0
- package/src/theme-darkest.css.js +4 -15
- package/src/theme-darkest.css.js.map +7 -1
- package/src/theme-light.css.dev.js +58 -0
- package/src/theme-light.css.dev.js.map +7 -0
- package/src/theme-light.css.js +4 -15
- package/src/theme-light.css.js.map +7 -1
- package/src/theme-lightest.css.dev.js +52 -0
- package/src/theme-lightest.css.dev.js.map +7 -0
- package/src/theme-lightest.css.js +4 -15
- package/src/theme-lightest.css.js.map +7 -1
- package/src/theme.css.dev.js +1840 -0
- package/src/theme.css.dev.js.map +7 -0
- package/src/theme.css.js +6 -17
- package/src/theme.css.js.map +7 -1
- package/src/themes.dev.js +7 -0
- package/src/themes.dev.js.map +7 -0
- package/src/themes.js +7 -18
- package/src/themes.js.map +7 -1
- package/src/typography.css.dev.js +946 -0
- package/src/typography.css.dev.js.map +7 -0
- package/src/typography.css.js +3 -14
- package/src/typography.css.js.map +7 -1
- package/stories/theme.stories.js +38 -43
- package/stories/theme.stories.js.map +7 -1
- package/test/theme-devmode.test.js +25 -0
- package/test/theme-devmode.test.js.map +7 -0
- package/test/theme-lazy.test.js +90 -108
- package/test/theme-lazy.test.js.map +7 -1
- package/test/theme.test-vrt.js +4 -15
- package/test/theme.test-vrt.js.map +7 -1
- package/test/themes.test.js +103 -120
- package/test/themes.test.js.map +7 -1
- package/theme-dark.dev.js +5 -0
- package/theme-dark.dev.js.map +7 -0
- package/theme-dark.js +5 -16
- package/theme-dark.js.map +7 -1
- package/theme-darkest.dev.js +5 -0
- package/theme-darkest.dev.js.map +7 -0
- package/theme-darkest.js +5 -16
- package/theme-darkest.js.map +7 -1
- package/theme-light.dev.js +5 -0
- package/theme-light.dev.js.map +7 -0
- package/theme-light.js +5 -16
- package/theme-light.js.map +7 -1
- package/theme-lightest.dev.js +5 -0
- package/theme-lightest.dev.js.map +7 -0
- package/theme-lightest.js +5 -16
- package/theme-lightest.js.map +7 -1
package/README.md
CHANGED
|
@@ -54,6 +54,23 @@ import '@spectrum-web-components/theme/express/scale-medium.js';
|
|
|
54
54
|
import '@spectrum-web-components/theme/express/scale-large.js';
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
+
## Example
|
|
58
|
+
|
|
59
|
+
An `<sp-theme>` element expects a value for each of its `theme`, `color`, and `scale` attributes to be provided on the element.
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<sp-theme
|
|
63
|
+
theme="spectrum"
|
|
64
|
+
color="light"
|
|
65
|
+
scale="medium"
|
|
66
|
+
style="background-color: var(--spectrum-global-color-gray-100)"
|
|
67
|
+
>
|
|
68
|
+
<sp-button onclick="spAlert(this, 'Themed <sp-button> clicked!')">
|
|
69
|
+
Click me!
|
|
70
|
+
</sp-button>
|
|
71
|
+
</sp-theme>
|
|
72
|
+
```
|
|
73
|
+
|
|
57
74
|
## Quick start
|
|
58
75
|
|
|
59
76
|
```
|
package/core.dev.js
ADDED
package/core.dev.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["core.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Theme } from './src/Theme.dev.js'\n\nimport coreStyles from './src/theme.css.js';\n\nTheme.registerThemeFragment('spectrum', 'theme', coreStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AAEA;AAEA,MAAM,sBAAsB,YAAY,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/core.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import { Theme } from './src/Theme.js';
|
|
13
|
-
import coreStyles from './src/theme.css.js';
|
|
14
|
-
Theme.registerThemeFragment('spectrum', 'theme', coreStyles);
|
|
15
|
-
//# sourceMappingURL=core.js.map
|
|
1
|
+
import { Theme } from "./src/Theme.js";
|
|
2
|
+
import coreStyles from "./src/theme.css.js";
|
|
3
|
+
Theme.registerThemeFragment("spectrum", "theme", coreStyles);
|
|
4
|
+
//# sourceMappingURL=core.js.map
|
package/core.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["core.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Theme } from './src/Theme.js';\n\nimport coreStyles from './src/theme.css.js';\n\nTheme.registerThemeFragment('spectrum', 'theme', coreStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AAEA;AAEA,MAAM,sBAAsB,YAAY,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/custom-elements.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-theme.
|
|
7
|
+
"path": "sp-theme.js",
|
|
8
8
|
"declarations": [],
|
|
9
9
|
"exports": [
|
|
10
10
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"kind": "javascript-module",
|
|
22
|
-
"path": "src/Theme.
|
|
22
|
+
"path": "src/Theme.js",
|
|
23
23
|
"declarations": [
|
|
24
24
|
{
|
|
25
25
|
"kind": "class",
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"name": "Theme",
|
|
398
398
|
"declaration": {
|
|
399
399
|
"name": "Theme",
|
|
400
|
-
"module": "src/Theme.
|
|
400
|
+
"module": "src/Theme.js"
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["scale-large.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from '../src/express/scale-large.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('large-express', 'scale', largeStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/express/scale-large.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import largeStyles from '../src/express/scale-large.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('large-express', 'scale', largeStyles);
|
|
16
|
-
//# sourceMappingURL=scale-large.js.map
|
|
1
|
+
import largeStyles from "../src/express/scale-large.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("large-express", "scale", largeStyles);
|
|
5
|
+
//# sourceMappingURL=scale-large.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["scale-large.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from '../src/express/scale-large.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('large-express', 'scale', largeStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["scale-medium.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from '../src/express/scale-medium.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('medium-express', 'scale', mediumStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,kBAAkB,SAAS,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/express/scale-medium.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import mediumStyles from '../src/express/scale-medium.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('medium-express', 'scale', mediumStyles);
|
|
16
|
-
//# sourceMappingURL=scale-medium.js.map
|
|
1
|
+
import mediumStyles from "../src/express/scale-medium.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("medium-express", "scale", mediumStyles);
|
|
5
|
+
//# sourceMappingURL=scale-medium.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["scale-medium.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from '../src/express/scale-medium.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('medium-express', 'scale', mediumStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,kBAAkB,SAAS,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-dark.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('dark-express', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,gBAAgB,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/express/theme-dark.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import darkStyles from '../src/express/theme-dark.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('dark-express', 'color', darkStyles);
|
|
16
|
-
//# sourceMappingURL=theme-dark.js.map
|
|
1
|
+
import darkStyles from "../src/express/theme-dark.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("dark-express", "color", darkStyles);
|
|
5
|
+
//# sourceMappingURL=theme-dark.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-dark.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('dark-express', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,gBAAgB,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-darkest.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('darkest-express', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,mBAAmB,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/express/theme-darkest.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import darkStyles from '../src/express/theme-dark.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('darkest-express', 'color', darkStyles);
|
|
16
|
-
//# sourceMappingURL=theme-darkest.js.map
|
|
1
|
+
import darkStyles from "../src/express/theme-dark.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("darkest-express", "color", darkStyles);
|
|
5
|
+
//# sourceMappingURL=theme-darkest.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-darkest.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('darkest-express', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,mBAAmB,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-light.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('light-express', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/express/theme-light.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import lightStyles from '../src/express/theme-light.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('light-express', 'color', lightStyles);
|
|
16
|
-
//# sourceMappingURL=theme-light.js.map
|
|
1
|
+
import lightStyles from "../src/express/theme-light.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("light-express", "color", lightStyles);
|
|
5
|
+
//# sourceMappingURL=theme-light.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-light.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('light-express', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-lightest.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('lightest-express', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,oBAAoB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
-
governing permissions and limitations under the License.
|
|
11
|
-
*/
|
|
12
|
-
import lightStyles from '../src/express/theme-light.css.js';
|
|
13
|
-
import { Theme } from '../src/Theme.js';
|
|
14
|
-
import '../src/express/core.js';
|
|
15
|
-
Theme.registerThemeFragment('lightest-express', 'color', lightStyles);
|
|
16
|
-
//# sourceMappingURL=theme-lightest.js.map
|
|
1
|
+
import lightStyles from "../src/express/theme-light.css.js";
|
|
2
|
+
import { Theme } from "../src/Theme.js";
|
|
3
|
+
import "../src/express/core.js";
|
|
4
|
+
Theme.registerThemeFragment("lightest-express", "color", lightStyles);
|
|
5
|
+
//# sourceMappingURL=theme-lightest.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-lightest.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('lightest-express', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,oBAAoB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,27 +20,100 @@
|
|
|
20
20
|
"module": "./src/index.js",
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
|
-
".":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
".": {
|
|
24
|
+
"development": "./src/index.dev.js",
|
|
25
|
+
"default": "./src/index.js"
|
|
26
|
+
},
|
|
27
27
|
"./package.json": "./package.json",
|
|
28
|
-
"./
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"./
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"./
|
|
37
|
-
"./
|
|
38
|
-
"./theme-
|
|
39
|
-
"./theme-
|
|
40
|
-
"./theme-
|
|
41
|
-
"./theme-
|
|
42
|
-
"./theme
|
|
43
|
-
"./
|
|
28
|
+
"./src/Theme.js": {
|
|
29
|
+
"development": "./src/Theme.dev.js",
|
|
30
|
+
"default": "./src/Theme.js"
|
|
31
|
+
},
|
|
32
|
+
"./src/index.js": {
|
|
33
|
+
"development": "./src/index.dev.js",
|
|
34
|
+
"default": "./src/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./src/scale-large.css.js": "./src/scale-large.css.js",
|
|
37
|
+
"./src/scale-medium.css.js": "./src/scale-medium.css.js",
|
|
38
|
+
"./src/theme-dark.css.js": "./src/theme-dark.css.js",
|
|
39
|
+
"./src/theme-darkest.css.js": "./src/theme-darkest.css.js",
|
|
40
|
+
"./src/theme-light.css.js": "./src/theme-light.css.js",
|
|
41
|
+
"./src/theme-lightest.css.js": "./src/theme-lightest.css.js",
|
|
42
|
+
"./src/theme.css.js": "./src/theme.css.js",
|
|
43
|
+
"./src/themes.js": {
|
|
44
|
+
"development": "./src/themes.dev.js",
|
|
45
|
+
"default": "./src/themes.js"
|
|
46
|
+
},
|
|
47
|
+
"./src/typography.css.js": "./src/typography.css.js",
|
|
48
|
+
"./express/scale-large.js": {
|
|
49
|
+
"development": "./express/scale-large.dev.js",
|
|
50
|
+
"default": "./express/scale-large.js"
|
|
51
|
+
},
|
|
52
|
+
"./express/scale-medium.js": {
|
|
53
|
+
"development": "./express/scale-medium.dev.js",
|
|
54
|
+
"default": "./express/scale-medium.js"
|
|
55
|
+
},
|
|
56
|
+
"./express/theme-dark.js": {
|
|
57
|
+
"development": "./express/theme-dark.dev.js",
|
|
58
|
+
"default": "./express/theme-dark.js"
|
|
59
|
+
},
|
|
60
|
+
"./express/theme-darkest.js": {
|
|
61
|
+
"development": "./express/theme-darkest.dev.js",
|
|
62
|
+
"default": "./express/theme-darkest.js"
|
|
63
|
+
},
|
|
64
|
+
"./express/theme-light.js": {
|
|
65
|
+
"development": "./express/theme-light.dev.js",
|
|
66
|
+
"default": "./express/theme-light.js"
|
|
67
|
+
},
|
|
68
|
+
"./express/theme-lightest.js": {
|
|
69
|
+
"development": "./express/theme-lightest.dev.js",
|
|
70
|
+
"default": "./express/theme-lightest.js"
|
|
71
|
+
},
|
|
72
|
+
"./src/express/core.js": {
|
|
73
|
+
"development": "./src/express/core.dev.js",
|
|
74
|
+
"default": "./src/express/core.js"
|
|
75
|
+
},
|
|
76
|
+
"./src/express/scale-large.css.js": "./src/express/scale-large.css.js",
|
|
77
|
+
"./src/express/scale-medium.css.js": "./src/express/scale-medium.css.js",
|
|
78
|
+
"./src/express/theme-dark.css.js": "./src/express/theme-dark.css.js",
|
|
79
|
+
"./src/express/theme-light.css.js": "./src/express/theme-light.css.js",
|
|
80
|
+
"./src/express/theme.css.js": "./src/express/theme.css.js",
|
|
81
|
+
"./src/express/themes.js": {
|
|
82
|
+
"development": "./src/express/themes.dev.js",
|
|
83
|
+
"default": "./src/express/themes.js"
|
|
84
|
+
},
|
|
85
|
+
"./core.js": {
|
|
86
|
+
"development": "./core.dev.js",
|
|
87
|
+
"default": "./core.js"
|
|
88
|
+
},
|
|
89
|
+
"./sp-theme.js": {
|
|
90
|
+
"development": "./sp-theme.dev.js",
|
|
91
|
+
"default": "./sp-theme.js"
|
|
92
|
+
},
|
|
93
|
+
"./scale-medium.js": {
|
|
94
|
+
"development": "./scale-medium.dev.js",
|
|
95
|
+
"default": "./scale-medium.js"
|
|
96
|
+
},
|
|
97
|
+
"./scale-large.js": {
|
|
98
|
+
"development": "./scale-large.dev.js",
|
|
99
|
+
"default": "./scale-large.js"
|
|
100
|
+
},
|
|
101
|
+
"./theme-lightest.js": {
|
|
102
|
+
"development": "./theme-lightest.dev.js",
|
|
103
|
+
"default": "./theme-lightest.js"
|
|
104
|
+
},
|
|
105
|
+
"./theme-light.js": {
|
|
106
|
+
"development": "./theme-light.dev.js",
|
|
107
|
+
"default": "./theme-light.js"
|
|
108
|
+
},
|
|
109
|
+
"./theme-dark.js": {
|
|
110
|
+
"development": "./theme-dark.dev.js",
|
|
111
|
+
"default": "./theme-dark.js"
|
|
112
|
+
},
|
|
113
|
+
"./theme-darkest.js": {
|
|
114
|
+
"development": "./theme-darkest.dev.js",
|
|
115
|
+
"default": "./theme-darkest.js"
|
|
116
|
+
}
|
|
44
117
|
},
|
|
45
118
|
"scripts": {
|
|
46
119
|
"test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
|
|
@@ -60,8 +133,8 @@
|
|
|
60
133
|
"lit-html"
|
|
61
134
|
],
|
|
62
135
|
"dependencies": {
|
|
63
|
-
"@spectrum-web-components/base": "^0.
|
|
64
|
-
"@spectrum-web-components/styles": "^0.15.
|
|
136
|
+
"@spectrum-web-components/base": "^0.6.0",
|
|
137
|
+
"@spectrum-web-components/styles": "^0.15.1",
|
|
65
138
|
"tslib": "^2.0.0"
|
|
66
139
|
},
|
|
67
140
|
"types": "./src/index.d.ts",
|
|
@@ -77,5 +150,5 @@
|
|
|
77
150
|
"./src/express/core.js",
|
|
78
151
|
"./src/express/themes.js"
|
|
79
152
|
],
|
|
80
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "50cac779bbb0d6735c2061f1eceb86b9daf9b22b"
|
|
81
154
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["scale-large.ts"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from './src/scale-large.css.js';\nimport { Theme } from './src/Theme.dev.js'\nimport './core.dev.js'\n\nTheme.registerThemeFragment('large', 'scale', largeStyles);\n"],
|
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,SAAS,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|