@spectrum-web-components/theme 1.0.0-rc.0 → 1.0.0-rc.2
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 +1 -1
- package/core-tokens.dev.js +1 -1
- package/core-tokens.dev.js.map +2 -2
- package/core-tokens.js +1 -1
- package/core-tokens.js.map +2 -2
- package/package.json +50 -4
- package/spectrum-two/scale-large.d.ts +1 -0
- package/spectrum-two/scale-large.dev.js +6 -0
- package/spectrum-two/scale-large.dev.js.map +7 -0
- package/spectrum-two/scale-large.js +2 -0
- package/spectrum-two/scale-large.js.map +7 -0
- package/spectrum-two/scale-medium.d.ts +1 -0
- package/spectrum-two/scale-medium.dev.js +6 -0
- package/spectrum-two/scale-medium.dev.js.map +7 -0
- package/spectrum-two/scale-medium.js +2 -0
- package/spectrum-two/scale-medium.js.map +7 -0
- package/spectrum-two/theme-dark.d.ts +1 -0
- package/spectrum-two/theme-dark.dev.js +6 -0
- package/spectrum-two/theme-dark.dev.js.map +7 -0
- package/spectrum-two/theme-dark.js +2 -0
- package/spectrum-two/theme-dark.js.map +7 -0
- package/spectrum-two/theme-darkest-core-tokens.d.ts +1 -0
- package/spectrum-two/theme-darkest-core-tokens.dev.js +6 -0
- package/spectrum-two/theme-darkest-core-tokens.dev.js.map +7 -0
- package/spectrum-two/theme-darkest-core-tokens.js +2 -0
- package/spectrum-two/theme-darkest-core-tokens.js.map +7 -0
- package/spectrum-two/theme-darkest.d.ts +1 -0
- package/spectrum-two/theme-darkest.dev.js +6 -0
- package/spectrum-two/theme-darkest.dev.js.map +7 -0
- package/spectrum-two/theme-darkest.js +2 -0
- package/spectrum-two/theme-darkest.js.map +7 -0
- package/spectrum-two/theme-light.d.ts +1 -0
- package/spectrum-two/theme-light.dev.js +6 -0
- package/spectrum-two/theme-light.dev.js.map +7 -0
- package/spectrum-two/theme-light.js +2 -0
- package/spectrum-two/theme-light.js.map +7 -0
- package/spectrum-two/theme-lightest-core-tokens.d.ts +1 -0
- package/spectrum-two/theme-lightest-core-tokens.dev.js +6 -0
- package/spectrum-two/theme-lightest-core-tokens.dev.js.map +7 -0
- package/spectrum-two/theme-lightest-core-tokens.js +2 -0
- package/spectrum-two/theme-lightest-core-tokens.js.map +7 -0
- package/spectrum-two/theme-lightest.d.ts +1 -0
- package/spectrum-two/theme-lightest.dev.js +6 -0
- package/spectrum-two/theme-lightest.dev.js.map +7 -0
- package/spectrum-two/theme-lightest.js +2 -0
- package/spectrum-two/theme-lightest.js.map +7 -0
- package/src/Theme.d.ts +0 -2
- package/src/Theme.dev.js +3 -37
- package/src/Theme.dev.js.map +2 -2
- package/src/Theme.js +1 -1
- package/src/Theme.js.map +3 -3
- package/src/express/core-tokens.dev.js +1 -1
- package/src/express/core-tokens.dev.js.map +2 -2
- package/src/express/core-tokens.js +1 -1
- package/src/express/core-tokens.js.map +2 -2
- package/src/express/theme-core-tokens.css.dev.js +1 -1
- package/src/express/theme-core-tokens.css.dev.js.map +1 -1
- package/src/express/theme-core-tokens.css.js +1 -1
- package/src/express/theme-core-tokens.css.js.map +1 -1
- package/src/express/theme.css.dev.js +1 -1
- package/src/express/theme.css.dev.js.map +1 -1
- package/src/express/theme.css.js +1 -1
- package/src/express/theme.css.js.map +1 -1
- package/src/spectrum-two/scale-large-core-tokens.css.dev.js +1 -1
- package/src/spectrum-two/scale-large-core-tokens.css.dev.js.map +1 -1
- package/src/spectrum-two/scale-large-core-tokens.css.js +1 -1
- package/src/spectrum-two/scale-large-core-tokens.css.js.map +1 -1
- package/src/spectrum-two/scale-large.css.d.ts +2 -0
- package/src/spectrum-two/scale-large.css.dev.js +7 -0
- package/src/spectrum-two/scale-large.css.dev.js.map +7 -0
- package/src/spectrum-two/scale-large.css.js +4 -0
- package/src/spectrum-two/scale-large.css.js.map +7 -0
- package/src/spectrum-two/scale-medium-core-tokens.css.dev.js +1 -1
- package/src/spectrum-two/scale-medium-core-tokens.css.dev.js.map +1 -1
- package/src/spectrum-two/scale-medium-core-tokens.css.js +1 -1
- package/src/spectrum-two/scale-medium-core-tokens.css.js.map +1 -1
- package/src/spectrum-two/scale-medium.css.d.ts +2 -0
- package/src/spectrum-two/scale-medium.css.dev.js +7 -0
- package/src/spectrum-two/scale-medium.css.dev.js.map +7 -0
- package/src/spectrum-two/scale-medium.css.js +4 -0
- package/src/spectrum-two/scale-medium.css.js.map +7 -0
- package/src/spectrum-two/theme-core-tokens.css.dev.js +1 -1
- package/src/spectrum-two/theme-core-tokens.css.dev.js.map +1 -1
- package/src/spectrum-two/theme-core-tokens.css.js +1 -1
- package/src/spectrum-two/theme-core-tokens.css.js.map +1 -1
- package/src/spectrum-two/theme-dark-core-tokens.css.dev.js +1 -1
- package/src/spectrum-two/theme-dark-core-tokens.css.dev.js.map +1 -1
- package/src/spectrum-two/theme-dark-core-tokens.css.js +1 -1
- package/src/spectrum-two/theme-dark-core-tokens.css.js.map +1 -1
- package/src/spectrum-two/theme-dark.css.d.ts +2 -0
- package/src/spectrum-two/theme-dark.css.dev.js +7 -0
- package/src/spectrum-two/theme-dark.css.dev.js.map +7 -0
- package/src/spectrum-two/theme-dark.css.js +4 -0
- package/src/spectrum-two/theme-dark.css.js.map +7 -0
- package/src/spectrum-two/theme-light-core-tokens.css.dev.js +1 -1
- package/src/spectrum-two/theme-light-core-tokens.css.dev.js.map +1 -1
- package/src/spectrum-two/theme-light-core-tokens.css.js +1 -1
- package/src/spectrum-two/theme-light-core-tokens.css.js.map +1 -1
- package/src/spectrum-two/theme-light.css.d.ts +2 -0
- package/src/spectrum-two/theme-light.css.dev.js +7 -0
- package/src/spectrum-two/theme-light.css.dev.js.map +7 -0
- package/src/spectrum-two/theme-light.css.js +4 -0
- package/src/spectrum-two/theme-light.css.js.map +7 -0
- package/src/spectrum-two/theme.css.dev.js +1 -1
- package/src/spectrum-two/theme.css.dev.js.map +1 -1
- package/src/spectrum-two/theme.css.js +3 -3
- package/src/spectrum-two/theme.css.js.map +1 -1
- package/src/spectrum-two/themes-core-tokens.d.ts +2 -0
- package/src/spectrum-two/themes-core-tokens.dev.js +2 -0
- package/src/spectrum-two/themes-core-tokens.dev.js.map +2 -2
- package/src/spectrum-two/themes-core-tokens.js +1 -1
- package/src/spectrum-two/themes-core-tokens.js.map +2 -2
- package/src/spectrum-two/themes.d.ts +6 -0
- package/src/spectrum-two/themes.dev.js +8 -0
- package/src/spectrum-two/themes.dev.js.map +7 -0
- package/src/spectrum-two/themes.js +2 -0
- package/src/spectrum-two/themes.js.map +7 -0
- package/src/theme-core-tokens.css.dev.js +1 -1
- package/src/theme-core-tokens.css.dev.js.map +1 -1
- package/src/theme-core-tokens.css.js +1 -1
- package/src/theme-core-tokens.css.js.map +1 -1
- package/src/theme-interfaces.d.ts +3 -3
- package/src/theme-interfaces.dev.js +3 -1
- package/src/theme-interfaces.dev.js.map +2 -2
- package/src/theme-interfaces.js +1 -1
- package/src/theme-interfaces.js.map +2 -2
- package/src/theme.css.dev.js +1 -1
- package/src/theme.css.dev.js.map +1 -1
- package/src/theme.css.js +3 -3
- package/src/theme.css.js.map +1 -1
- package/test/theme-devmode.test.js +0 -23
- package/test/theme-devmode.test.js.map +2 -2
- package/test/theme-lazy.test.js +16 -26
- package/test/theme-lazy.test.js.map +2 -2
- package/test/themes.test.js +13 -28
- package/test/themes.test.js.map +2 -2
package/README.md
CHANGED
package/core-tokens.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { Theme } from "./src/Theme.dev.js";
|
|
3
3
|
import coreStyles from "./src/theme-core-tokens.css.js";
|
|
4
|
-
Theme.registerThemeFragment("spectrum", "
|
|
4
|
+
Theme.registerThemeFragment("spectrum", "system", coreStyles);
|
|
5
5
|
//# sourceMappingURL=core-tokens.dev.js.map
|
package/core-tokens.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["core-tokens.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-core-tokens.css.js';\nTheme.registerThemeFragment('spectrum', '
|
|
5
|
-
"mappings": ";AAYA,SAAS,aAAa;AAEtB,OAAO,gBAAgB;AACvB,MAAM,sBAAsB,YAAY,
|
|
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-core-tokens.css.js';\nTheme.registerThemeFragment('spectrum', 'system', coreStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,SAAS,aAAa;AAEtB,OAAO,gBAAgB;AACvB,MAAM,sBAAsB,YAAY,UAAU,UAAU;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/core-tokens.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import{Theme as e}from"./src/Theme.js";import m from"./src/theme-core-tokens.css.js";e.registerThemeFragment("spectrum","
|
|
1
|
+
"use strict";import{Theme as e}from"./src/Theme.js";import m from"./src/theme-core-tokens.css.js";e.registerThemeFragment("spectrum","system",m);
|
|
2
2
|
//# sourceMappingURL=core-tokens.js.map
|
package/core-tokens.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["core-tokens.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-core-tokens.css.js';\nTheme.registerThemeFragment('spectrum', '
|
|
5
|
-
"mappings": "aAYA,OAAS,SAAAA,MAAa,iBAEtB,OAAOC,MAAgB,iCACvBD,EAAM,sBAAsB,WAAY,
|
|
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-core-tokens.css.js';\nTheme.registerThemeFragment('spectrum', 'system', coreStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAS,SAAAA,MAAa,iBAEtB,OAAOC,MAAgB,iCACvBD,EAAM,sBAAsB,WAAY,SAAUC,CAAU",
|
|
6
6
|
"names": ["Theme", "coreStyles"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/theme",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -112,18 +112,50 @@
|
|
|
112
112
|
"development": "./spectrum-two/scale-large-core-tokens.dev.js",
|
|
113
113
|
"default": "./spectrum-two/scale-large-core-tokens.js"
|
|
114
114
|
},
|
|
115
|
+
"./spectrum-two/scale-large.js": {
|
|
116
|
+
"development": "./spectrum-two/scale-large.dev.js",
|
|
117
|
+
"default": "./spectrum-two/scale-large.js"
|
|
118
|
+
},
|
|
115
119
|
"./spectrum-two/scale-medium-core-tokens.js": {
|
|
116
120
|
"development": "./spectrum-two/scale-medium-core-tokens.dev.js",
|
|
117
121
|
"default": "./spectrum-two/scale-medium-core-tokens.js"
|
|
118
122
|
},
|
|
123
|
+
"./spectrum-two/scale-medium.js": {
|
|
124
|
+
"development": "./spectrum-two/scale-medium.dev.js",
|
|
125
|
+
"default": "./spectrum-two/scale-medium.js"
|
|
126
|
+
},
|
|
119
127
|
"./spectrum-two/theme-dark-core-tokens.js": {
|
|
120
128
|
"development": "./spectrum-two/theme-dark-core-tokens.dev.js",
|
|
121
129
|
"default": "./spectrum-two/theme-dark-core-tokens.js"
|
|
122
130
|
},
|
|
131
|
+
"./spectrum-two/theme-dark.js": {
|
|
132
|
+
"development": "./spectrum-two/theme-dark.dev.js",
|
|
133
|
+
"default": "./spectrum-two/theme-dark.js"
|
|
134
|
+
},
|
|
135
|
+
"./spectrum-two/theme-darkest-core-tokens.js": {
|
|
136
|
+
"development": "./spectrum-two/theme-darkest-core-tokens.dev.js",
|
|
137
|
+
"default": "./spectrum-two/theme-darkest-core-tokens.js"
|
|
138
|
+
},
|
|
139
|
+
"./spectrum-two/theme-darkest.js": {
|
|
140
|
+
"development": "./spectrum-two/theme-darkest.dev.js",
|
|
141
|
+
"default": "./spectrum-two/theme-darkest.js"
|
|
142
|
+
},
|
|
123
143
|
"./spectrum-two/theme-light-core-tokens.js": {
|
|
124
144
|
"development": "./spectrum-two/theme-light-core-tokens.dev.js",
|
|
125
145
|
"default": "./spectrum-two/theme-light-core-tokens.js"
|
|
126
146
|
},
|
|
147
|
+
"./spectrum-two/theme-light.js": {
|
|
148
|
+
"development": "./spectrum-two/theme-light.dev.js",
|
|
149
|
+
"default": "./spectrum-two/theme-light.js"
|
|
150
|
+
},
|
|
151
|
+
"./spectrum-two/theme-lightest-core-tokens.js": {
|
|
152
|
+
"development": "./spectrum-two/theme-lightest-core-tokens.dev.js",
|
|
153
|
+
"default": "./spectrum-two/theme-lightest-core-tokens.js"
|
|
154
|
+
},
|
|
155
|
+
"./spectrum-two/theme-lightest.js": {
|
|
156
|
+
"development": "./spectrum-two/theme-lightest.dev.js",
|
|
157
|
+
"default": "./spectrum-two/theme-lightest.js"
|
|
158
|
+
},
|
|
127
159
|
"./src/express/core-tokens.js": {
|
|
128
160
|
"development": "./src/express/core-tokens.dev.js",
|
|
129
161
|
"default": "./src/express/core-tokens.js"
|
|
@@ -158,10 +190,24 @@
|
|
|
158
190
|
"development": "./src/spectrum-two/core.dev.js",
|
|
159
191
|
"default": "./src/spectrum-two/core.js"
|
|
160
192
|
},
|
|
193
|
+
"./src/spectrum-two/scale-large-core-tokens.css.js": "./src/spectrum-two/scale-large-core-tokens.css.js",
|
|
194
|
+
"./src/spectrum-two/scale-large.css.js": "./src/spectrum-two/scale-large.css.js",
|
|
195
|
+
"./src/spectrum-two/scale-medium-core-tokens.css.js": "./src/spectrum-two/scale-medium-core-tokens.css.js",
|
|
196
|
+
"./src/spectrum-two/scale-medium.css.js": "./src/spectrum-two/scale-medium.css.js",
|
|
197
|
+
"./src/spectrum-two/theme-core-tokens.css.js": "./src/spectrum-two/theme-core-tokens.css.js",
|
|
198
|
+
"./src/spectrum-two/theme-dark-core-tokens.css.js": "./src/spectrum-two/theme-dark-core-tokens.css.js",
|
|
199
|
+
"./src/spectrum-two/theme-dark.css.js": "./src/spectrum-two/theme-dark.css.js",
|
|
200
|
+
"./src/spectrum-two/theme-light-core-tokens.css.js": "./src/spectrum-two/theme-light-core-tokens.css.js",
|
|
201
|
+
"./src/spectrum-two/theme-light.css.js": "./src/spectrum-two/theme-light.css.js",
|
|
202
|
+
"./src/spectrum-two/theme.css.js": "./src/spectrum-two/theme.css.js",
|
|
161
203
|
"./src/spectrum-two/themes-core-tokens.js": {
|
|
162
204
|
"development": "./src/spectrum-two/themes-core-tokens.dev.js",
|
|
163
205
|
"default": "./src/spectrum-two/themes-core-tokens.js"
|
|
164
206
|
},
|
|
207
|
+
"./src/spectrum-two/themes.js": {
|
|
208
|
+
"development": "./src/spectrum-two/themes.dev.js",
|
|
209
|
+
"default": "./src/spectrum-two/themes.js"
|
|
210
|
+
},
|
|
165
211
|
"./core.js": {
|
|
166
212
|
"development": "./core.dev.js",
|
|
167
213
|
"default": "./core.js"
|
|
@@ -237,8 +283,8 @@
|
|
|
237
283
|
"lit-html"
|
|
238
284
|
],
|
|
239
285
|
"dependencies": {
|
|
240
|
-
"@spectrum-web-components/base": "^1.0.0-rc.
|
|
241
|
-
"@spectrum-web-components/styles": "^1.0.0-rc.
|
|
286
|
+
"@spectrum-web-components/base": "^1.0.0-rc.2",
|
|
287
|
+
"@spectrum-web-components/styles": "^1.0.0-rc.2"
|
|
242
288
|
},
|
|
243
289
|
"types": "./src/index.d.ts",
|
|
244
290
|
"customElements": "custom-elements.json",
|
|
@@ -265,5 +311,5 @@
|
|
|
265
311
|
"./src/spectrum-two/themes.js",
|
|
266
312
|
"./src/spectrum-two/themes-*.js"
|
|
267
313
|
],
|
|
268
|
-
"gitHead": "
|
|
314
|
+
"gitHead": "45ad539f37a4325a83d02253ea9135c90e1b8b3d"
|
|
269
315
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import largeStyles from "../src/spectrum-two/scale-large.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("large-spectrum-two", "scale", largeStyles);
|
|
6
|
+
//# sourceMappingURL=scale-large.dev.js.map
|
|
@@ -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/spectrum-two/scale-large.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('large-spectrum-two', 'scale', largeStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,sBAAsB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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/spectrum-two/scale-large.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('large-spectrum-two', 'scale', largeStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAiB,yCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,qBAAsB,QAASD,CAAW",
|
|
6
|
+
"names": ["largeStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import mediumStyles from "../src/spectrum-two/scale-medium.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("medium-spectrum-two", "scale", mediumStyles);
|
|
6
|
+
//# sourceMappingURL=scale-medium.dev.js.map
|
|
@@ -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/spectrum-two/scale-medium.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('medium-spectrum-two', 'scale', mediumStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,kBAAkB;AACzB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,uBAAuB,SAAS,YAAY;",
|
|
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/spectrum-two/scale-medium.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('medium-spectrum-two', 'scale', mediumStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAkB,0CACzB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,sBAAuB,QAASD,CAAY",
|
|
6
|
+
"names": ["mediumStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import darkStyles from "../src/spectrum-two/theme-dark.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("dark-spectrum-two", "color", darkStyles);
|
|
6
|
+
//# sourceMappingURL=theme-dark.dev.js.map
|
|
@@ -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/spectrum-two/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('dark-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,gBAAgB;AACvB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,qBAAqB,SAAS,UAAU;",
|
|
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/spectrum-two/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('dark-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAgB,wCACvB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,oBAAqB,QAASD,CAAU",
|
|
6
|
+
"names": ["darkStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core-tokens.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import darkStyles from "../src/spectrum-two/theme-dark-core-tokens.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core-tokens.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("darkest-spectrum-two", "color", darkStyles);
|
|
6
|
+
//# sourceMappingURL=theme-darkest-core-tokens.dev.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-darkest-core-tokens.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/spectrum-two/theme-dark-core-tokens.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core-tokens.dev.js'\n\nTheme.registerThemeFragment('darkest-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,gBAAgB;AACvB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,wBAAwB,SAAS,UAAU;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-darkest-core-tokens.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/spectrum-two/theme-dark-core-tokens.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core-tokens.js';\n\nTheme.registerThemeFragment('darkest-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAgB,oDACvB,OAAS,SAAAC,MAAa,kBACtB,MAAO,qCAEPA,EAAM,sBAAsB,uBAAwB,QAASD,CAAU",
|
|
6
|
+
"names": ["darkStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import darkStyles from "../src/spectrum-two/theme-dark.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("darkest-spectrum-two", "color", darkStyles);
|
|
6
|
+
//# sourceMappingURL=theme-darkest.dev.js.map
|
|
@@ -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/spectrum-two/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('darkest-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,gBAAgB;AACvB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,wBAAwB,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/spectrum-two/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('darkest-spectrum-two', 'color', darkStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAgB,wCACvB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,uBAAwB,QAASD,CAAU",
|
|
6
|
+
"names": ["darkStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import lightStyles from "../src/spectrum-two/theme-light.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("light-spectrum-two", "color", lightStyles);
|
|
6
|
+
//# sourceMappingURL=theme-light.dev.js.map
|
|
@@ -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/spectrum-two/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('light-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,sBAAsB,SAAS,WAAW;",
|
|
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/spectrum-two/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('light-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAiB,yCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,qBAAsB,QAASD,CAAW",
|
|
6
|
+
"names": ["lightStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core-tokens.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import lightStyles from "../src/spectrum-two/theme-light-core-tokens.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core-tokens.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("lightest-spectrum-two", "color", lightStyles);
|
|
6
|
+
//# sourceMappingURL=theme-lightest-core-tokens.dev.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-lightest-core-tokens.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/spectrum-two/theme-light-core-tokens.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core-tokens.dev.js'\n\nTheme.registerThemeFragment('lightest-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,yBAAyB,SAAS,WAAW;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import t from"../src/spectrum-two/theme-light-core-tokens.css.js";import{Theme as e}from"../src/Theme.js";import"../src/spectrum-two/core-tokens.js";e.registerThemeFragment("lightest-spectrum-two","color",t);
|
|
2
|
+
//# sourceMappingURL=theme-lightest-core-tokens.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["theme-lightest-core-tokens.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/spectrum-two/theme-light-core-tokens.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core-tokens.js';\n\nTheme.registerThemeFragment('lightest-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAiB,qDACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,qCAEPA,EAAM,sBAAsB,wBAAyB,QAASD,CAAW",
|
|
6
|
+
"names": ["lightStyles", "Theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../src/spectrum-two/core.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import lightStyles from "../src/spectrum-two/theme-light.css.js";
|
|
3
|
+
import { Theme } from "../src/Theme.dev.js";
|
|
4
|
+
import "../src/spectrum-two/core.dev.js";
|
|
5
|
+
Theme.registerThemeFragment("lightest-spectrum-two", "color", lightStyles);
|
|
6
|
+
//# sourceMappingURL=theme-lightest.dev.js.map
|
|
@@ -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/spectrum-two/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/spectrum-two/core.dev.js'\n\nTheme.registerThemeFragment('lightest-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,yBAAyB,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/spectrum-two/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/spectrum-two/core.js';\n\nTheme.registerThemeFragment('lightest-spectrum-two', 'color', lightStyles);\n"],
|
|
5
|
+
"mappings": "aAYA,OAAOA,MAAiB,yCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,8BAEPA,EAAM,sBAAsB,wBAAyB,QAASD,CAAW",
|
|
6
|
+
"names": ["lightStyles", "Theme"]
|
|
7
|
+
}
|
package/src/Theme.d.ts
CHANGED
|
@@ -35,8 +35,6 @@ export declare class Theme extends HTMLElement implements ThemeKindProvider {
|
|
|
35
35
|
*/
|
|
36
36
|
get system(): SystemVariant | '';
|
|
37
37
|
set system(newValue: SystemVariant | '');
|
|
38
|
-
get theme(): SystemVariant | '';
|
|
39
|
-
set theme(newValue: SystemVariant | '');
|
|
40
38
|
private _color;
|
|
41
39
|
/**
|
|
42
40
|
* The Spectrum color stops to apply to content scoped by this `sp-theme` element.
|
package/src/Theme.dev.js
CHANGED
|
@@ -31,15 +31,7 @@ const _Theme = class _Theme extends HTMLElement {
|
|
|
31
31
|
this.updateComplete = this.__createDeferredPromise();
|
|
32
32
|
}
|
|
33
33
|
static get observedAttributes() {
|
|
34
|
-
return [
|
|
35
|
-
"color",
|
|
36
|
-
"scale",
|
|
37
|
-
"lang",
|
|
38
|
-
"dir",
|
|
39
|
-
"system",
|
|
40
|
-
/* deprecated attributes, but still observing */
|
|
41
|
-
"theme"
|
|
42
|
-
];
|
|
34
|
+
return ["color", "scale", "lang", "dir", "system"];
|
|
43
35
|
}
|
|
44
36
|
set dir(dir) {
|
|
45
37
|
if (dir === this.dir) return;
|
|
@@ -69,10 +61,6 @@ const _Theme = class _Theme extends HTMLElement {
|
|
|
69
61
|
} else if (attrName === "lang" && !!value) {
|
|
70
62
|
this.lang = value;
|
|
71
63
|
this._provideContext();
|
|
72
|
-
} else if (attrName === "theme") {
|
|
73
|
-
this.theme = value;
|
|
74
|
-
this._provideSystemContext();
|
|
75
|
-
warnBetaSystem(this, value);
|
|
76
64
|
} else if (attrName === "system") {
|
|
77
65
|
this.system = value;
|
|
78
66
|
this._provideSystemContext();
|
|
@@ -109,22 +97,6 @@ const _Theme = class _Theme extends HTMLElement {
|
|
|
109
97
|
this.removeAttribute("system");
|
|
110
98
|
}
|
|
111
99
|
}
|
|
112
|
-
/*
|
|
113
|
-
* @deprecated The `theme` attribute has been deprecated in favor of the `system` attribute.
|
|
114
|
-
*/
|
|
115
|
-
get theme() {
|
|
116
|
-
if (!this.system) {
|
|
117
|
-
this.removeAttribute("system");
|
|
118
|
-
}
|
|
119
|
-
return this.system;
|
|
120
|
-
}
|
|
121
|
-
/*
|
|
122
|
-
* @deprecated The `theme` attribute has been deprecated in favor of the `system` attribute.
|
|
123
|
-
*/
|
|
124
|
-
set theme(newValue) {
|
|
125
|
-
this.system = newValue;
|
|
126
|
-
this.requestUpdate();
|
|
127
|
-
}
|
|
128
100
|
/**
|
|
129
101
|
* The Spectrum color stops to apply to content scoped by this `sp-theme` element.
|
|
130
102
|
*
|
|
@@ -180,7 +152,7 @@ const _Theme = class _Theme extends HTMLElement {
|
|
|
180
152
|
..._Theme.themeFragmentsByKind.keys()
|
|
181
153
|
];
|
|
182
154
|
const getStyle = (fragments, name, kind) => {
|
|
183
|
-
const currentStyles = kind && kind !== "
|
|
155
|
+
const currentStyles = kind && kind !== "system" && this.system !== "spectrum" ? fragments.get(`${name}-${this.system}`) : fragments.get(name);
|
|
184
156
|
const isAppliedFragment = name === "spectrum" || !kind || this.hasAttribute(kind);
|
|
185
157
|
if (currentStyles && isAppliedFragment) {
|
|
186
158
|
return currentStyles.styles;
|
|
@@ -209,7 +181,6 @@ const _Theme = class _Theme extends HTMLElement {
|
|
|
209
181
|
this.system,
|
|
210
182
|
this.color,
|
|
211
183
|
this.scale,
|
|
212
|
-
this.hasAttribute("theme"),
|
|
213
184
|
themeFragmentsByKind
|
|
214
185
|
);
|
|
215
186
|
return [...styles];
|
|
@@ -336,7 +307,7 @@ function warnBetaSystem(instance, value) {
|
|
|
336
307
|
);
|
|
337
308
|
}
|
|
338
309
|
}
|
|
339
|
-
function checkForIssues(instance, system, color, scale,
|
|
310
|
+
function checkForIssues(instance, system, color, scale, themeFragmentsByKind) {
|
|
340
311
|
if (true) {
|
|
341
312
|
const issues = [];
|
|
342
313
|
const checkForAttribute = (name, resolvedValue, actualValue) => {
|
|
@@ -358,11 +329,6 @@ function checkForIssues(instance, system, color, scale, hasThemeAttribute, theme
|
|
|
358
329
|
);
|
|
359
330
|
}
|
|
360
331
|
};
|
|
361
|
-
if (hasThemeAttribute) {
|
|
362
|
-
issues.push(
|
|
363
|
-
`DEPRECATION NOTICE: the "theme" attribute has been deprecated in favor of "system". For more information, see: https://opensource.adobe.com/spectrum-web-components/tools/theme/`
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
332
|
if (["lightest", "darkest"].includes(color || "")) {
|
|
367
333
|
issues.push(
|
|
368
334
|
`DEPRECATION NOTICE: Color "lightest" and "darkest" are deprecated. For more information, see: https://opensource.adobe.com/spectrum-web-components/tools/theme/`
|