@spectrum-web-components/theme 1.9.0 → 1.9.1-nightly.20251028214328
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/CHANGELOG.md +655 -0
- package/package.json +319 -319
- package/src/express/scale-large-core-tokens.css.dev.js.map +2 -2
- package/src/express/scale-large-core-tokens.css.js.map +2 -2
- package/src/express/scale-large.css.dev.js.map +2 -2
- package/src/express/scale-large.css.js.map +2 -2
- package/src/express/scale-medium-core-tokens.css.dev.js.map +2 -2
- package/src/express/scale-medium-core-tokens.css.js.map +2 -2
- package/src/express/scale-medium.css.dev.js.map +2 -2
- package/src/express/scale-medium.css.js.map +2 -2
- package/src/express/theme-core-tokens.css.dev.js.map +2 -2
- package/src/express/theme-core-tokens.css.js.map +2 -2
- package/src/express/theme-dark-core-tokens.css.dev.js.map +2 -2
- package/src/express/theme-dark-core-tokens.css.js.map +2 -2
- package/src/express/theme-dark.css.dev.js.map +2 -2
- package/src/express/theme-dark.css.js.map +2 -2
- package/src/express/theme-light-core-tokens.css.dev.js.map +2 -2
- package/src/express/theme-light-core-tokens.css.js.map +2 -2
- package/src/express/theme-light.css.dev.js.map +2 -2
- package/src/express/theme-light.css.js.map +2 -2
- package/src/express/theme.css.dev.js.map +2 -2
- package/src/express/theme.css.js.map +2 -2
- package/src/scale-large-core-tokens.css.dev.js.map +2 -2
- package/src/scale-large-core-tokens.css.js.map +2 -2
- package/src/scale-large.css.dev.js.map +2 -2
- package/src/scale-large.css.js.map +2 -2
- package/src/scale-medium-core-tokens.css.dev.js.map +2 -2
- package/src/scale-medium-core-tokens.css.js.map +2 -2
- package/src/scale-medium.css.dev.js.map +2 -2
- package/src/scale-medium.css.js.map +2 -2
- package/src/spectrum-two/scale-large-core-tokens.css.dev.js.map +2 -2
- package/src/spectrum-two/scale-large-core-tokens.css.js.map +2 -2
- package/src/spectrum-two/scale-large.css.dev.js.map +2 -2
- package/src/spectrum-two/scale-large.css.js.map +2 -2
- package/src/spectrum-two/scale-medium-core-tokens.css.dev.js.map +2 -2
- package/src/spectrum-two/scale-medium-core-tokens.css.js.map +2 -2
- package/src/spectrum-two/scale-medium.css.dev.js.map +2 -2
- package/src/spectrum-two/scale-medium.css.js.map +2 -2
- package/src/spectrum-two/theme-core-tokens.css.dev.js.map +2 -2
- package/src/spectrum-two/theme-core-tokens.css.js.map +2 -2
- package/src/spectrum-two/theme-dark-core-tokens.css.dev.js.map +2 -2
- package/src/spectrum-two/theme-dark-core-tokens.css.js.map +2 -2
- package/src/spectrum-two/theme-dark.css.dev.js.map +2 -2
- package/src/spectrum-two/theme-dark.css.js.map +2 -2
- package/src/spectrum-two/theme-light-core-tokens.css.dev.js.map +2 -2
- package/src/spectrum-two/theme-light-core-tokens.css.js.map +2 -2
- package/src/spectrum-two/theme-light.css.dev.js.map +2 -2
- package/src/spectrum-two/theme-light.css.js.map +2 -2
- package/src/spectrum-two/theme.css.dev.js.map +2 -2
- package/src/spectrum-two/theme.css.js.map +2 -2
- package/src/theme-core-tokens.css.dev.js.map +2 -2
- package/src/theme-core-tokens.css.js.map +2 -2
- package/src/theme-dark-core-tokens.css.dev.js.map +2 -2
- package/src/theme-dark-core-tokens.css.js.map +2 -2
- package/src/theme-dark.css.dev.js.map +2 -2
- package/src/theme-dark.css.js.map +2 -2
- package/src/theme-darkest-core-tokens.css.dev.js.map +2 -2
- package/src/theme-darkest-core-tokens.css.js.map +2 -2
- package/src/theme-darkest.css.dev.js.map +2 -2
- package/src/theme-darkest.css.js.map +2 -2
- package/src/theme-light-core-tokens.css.dev.js.map +2 -2
- package/src/theme-light-core-tokens.css.js.map +2 -2
- package/src/theme-light.css.dev.js.map +2 -2
- package/src/theme-light.css.js.map +2 -2
- package/src/theme-lightest-core-tokens.css.dev.js.map +2 -2
- package/src/theme-lightest-core-tokens.css.js.map +2 -2
- package/src/theme-lightest.css.dev.js.map +2 -2
- package/src/theme-lightest.css.js.map +2 -2
- package/src/theme.css.dev.js.map +2 -2
- package/src/theme.css.js.map +2 -2
- package/src/typography.css.dev.js.map +2 -2
- package/src/typography.css.js.map +2 -2
- package/stories/theme.stories.js +258 -0
- package/stories/theme.stories.js.map +7 -0
- package/test/theme-devmode.test.js +46 -0
- package/test/theme-devmode.test.js.map +7 -0
- package/test/theme-lazy.test.js +114 -0
- package/test/theme-lazy.test.js.map +7 -0
- package/test/theme.test-vrt.js +5 -0
- package/{scale-large-core-tokens.dev.js.map → test/theme.test-vrt.js.map} +3 -3
- package/test/theme.test.js +13 -0
- package/test/theme.test.js.map +7 -0
- package/test/themes.test.js +169 -0
- package/test/themes.test.js.map +7 -0
- package/core-tokens.d.ts +0 -12
- package/core-tokens.dev.js +0 -5
- package/core-tokens.dev.js.map +0 -7
- package/core-tokens.js +0 -2
- package/core-tokens.js.map +0 -7
- package/core.d.ts +0 -12
- package/core.dev.js +0 -5
- package/core.dev.js.map +0 -7
- package/core.js +0 -2
- package/core.js.map +0 -7
- package/custom-elements.json +0 -469
- package/scale-large-core-tokens.d.ts +0 -12
- package/scale-large-core-tokens.dev.js +0 -6
- package/scale-large-core-tokens.js +0 -2
- package/scale-large-core-tokens.js.map +0 -7
- package/scale-large.d.ts +0 -12
- package/scale-large.dev.js +0 -6
- package/scale-large.dev.js.map +0 -7
- package/scale-large.js +0 -2
- package/scale-large.js.map +0 -7
- package/scale-medium-core-tokens.d.ts +0 -12
- package/scale-medium-core-tokens.dev.js +0 -6
- package/scale-medium-core-tokens.dev.js.map +0 -7
- package/scale-medium-core-tokens.js +0 -2
- package/scale-medium-core-tokens.js.map +0 -7
- package/scale-medium.d.ts +0 -12
- package/scale-medium.dev.js +0 -6
- package/scale-medium.dev.js.map +0 -7
- package/scale-medium.js +0 -2
- package/scale-medium.js.map +0 -7
- package/sp-theme.d.ts +0 -17
- package/sp-theme.dev.js +0 -4
- package/sp-theme.dev.js.map +0 -7
- package/sp-theme.js +0 -2
- package/sp-theme.js.map +0 -7
- package/theme-dark-core-tokens.d.ts +0 -12
- package/theme-dark-core-tokens.dev.js +0 -6
- package/theme-dark-core-tokens.dev.js.map +0 -7
- package/theme-dark-core-tokens.js +0 -2
- package/theme-dark-core-tokens.js.map +0 -7
- package/theme-dark.d.ts +0 -12
- package/theme-dark.dev.js +0 -6
- package/theme-dark.dev.js.map +0 -7
- package/theme-dark.js +0 -2
- package/theme-dark.js.map +0 -7
- package/theme-darkest-core-tokens.d.ts +0 -12
- package/theme-darkest-core-tokens.dev.js +0 -6
- package/theme-darkest-core-tokens.dev.js.map +0 -7
- package/theme-darkest-core-tokens.js +0 -2
- package/theme-darkest-core-tokens.js.map +0 -7
- package/theme-darkest.d.ts +0 -12
- package/theme-darkest.dev.js +0 -6
- package/theme-darkest.dev.js.map +0 -7
- package/theme-darkest.js +0 -2
- package/theme-darkest.js.map +0 -7
- package/theme-light-core-tokens.d.ts +0 -12
- package/theme-light-core-tokens.dev.js +0 -6
- package/theme-light-core-tokens.dev.js.map +0 -7
- package/theme-light-core-tokens.js +0 -2
- package/theme-light-core-tokens.js.map +0 -7
- package/theme-light.d.ts +0 -12
- package/theme-light.dev.js +0 -6
- package/theme-light.dev.js.map +0 -7
- package/theme-light.js +0 -2
- package/theme-light.js.map +0 -7
- package/theme-lightest-core-tokens.d.ts +0 -12
- package/theme-lightest-core-tokens.dev.js +0 -6
- package/theme-lightest-core-tokens.dev.js.map +0 -7
- package/theme-lightest-core-tokens.js +0 -2
- package/theme-lightest-core-tokens.js.map +0 -7
- package/theme-lightest.d.ts +0 -12
- package/theme-lightest.dev.js +0 -6
- package/theme-lightest.dev.js.map +0 -7
- package/theme-lightest.js +0 -2
- package/theme-lightest.js.map +0 -7
package/custom-elements.json
DELETED
|
@@ -1,469 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-theme.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-theme",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "Theme",
|
|
15
|
-
"module": "/src/Theme.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/Theme.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "class",
|
|
26
|
-
"description": "",
|
|
27
|
-
"name": "Theme",
|
|
28
|
-
"slots": [
|
|
29
|
-
{
|
|
30
|
-
"description": "Content on which to apply the CSS Custom Properties defined by the current theme configuration",
|
|
31
|
-
"name": ""
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"members": [
|
|
35
|
-
{
|
|
36
|
-
"kind": "field",
|
|
37
|
-
"name": "themeFragmentsByKind",
|
|
38
|
-
"type": {
|
|
39
|
-
"text": "ThemeFragmentMap"
|
|
40
|
-
},
|
|
41
|
-
"privacy": "private",
|
|
42
|
-
"static": true,
|
|
43
|
-
"default": "new Map()"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"kind": "field",
|
|
47
|
-
"name": "defaultFragments",
|
|
48
|
-
"type": {
|
|
49
|
-
"text": "Set<FragmentName>"
|
|
50
|
-
},
|
|
51
|
-
"privacy": "private",
|
|
52
|
-
"static": true,
|
|
53
|
-
"default": "new Set(['spectrum'])"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"kind": "field",
|
|
57
|
-
"name": "templateElement",
|
|
58
|
-
"type": {
|
|
59
|
-
"text": "HTMLTemplateElement | undefined"
|
|
60
|
-
},
|
|
61
|
-
"privacy": "private",
|
|
62
|
-
"static": true
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"kind": "field",
|
|
66
|
-
"name": "instances",
|
|
67
|
-
"type": {
|
|
68
|
-
"text": "Set<Theme>"
|
|
69
|
-
},
|
|
70
|
-
"privacy": "private",
|
|
71
|
-
"static": true,
|
|
72
|
-
"default": "new Set()"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"kind": "field",
|
|
76
|
-
"name": "VERSION",
|
|
77
|
-
"static": true,
|
|
78
|
-
"default": "version"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"kind": "field",
|
|
82
|
-
"name": "_dir",
|
|
83
|
-
"type": {
|
|
84
|
-
"text": "'ltr' | 'rtl' | ''"
|
|
85
|
-
},
|
|
86
|
-
"default": "''"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"kind": "field",
|
|
90
|
-
"name": "dir",
|
|
91
|
-
"type": {
|
|
92
|
-
"text": "\"ltr\" | \"rtl\" | \"\""
|
|
93
|
-
},
|
|
94
|
-
"description": "Reading direction of the content scoped to this `sp-theme` element.",
|
|
95
|
-
"attribute": "dir"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"kind": "field",
|
|
99
|
-
"name": "shadowRoot",
|
|
100
|
-
"type": {
|
|
101
|
-
"text": "ShadowRootWithAdoptedStyleSheets"
|
|
102
|
-
},
|
|
103
|
-
"privacy": "public"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"kind": "field",
|
|
107
|
-
"name": "_system",
|
|
108
|
-
"type": {
|
|
109
|
-
"text": "SystemVariant | ''"
|
|
110
|
-
},
|
|
111
|
-
"privacy": "private",
|
|
112
|
-
"default": "'spectrum'"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"kind": "field",
|
|
116
|
-
"name": "system",
|
|
117
|
-
"type": {
|
|
118
|
-
"text": "\"spectrum\" | \"express\""
|
|
119
|
-
},
|
|
120
|
-
"description": "The Spectrum system that is applied to the content scoped to this `sp-theme` element.\n\nA value is required.",
|
|
121
|
-
"attribute": "system"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"kind": "field",
|
|
125
|
-
"name": "_color",
|
|
126
|
-
"type": {
|
|
127
|
-
"text": "Color | ''"
|
|
128
|
-
},
|
|
129
|
-
"privacy": "private",
|
|
130
|
-
"default": "''"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"kind": "field",
|
|
134
|
-
"name": "color",
|
|
135
|
-
"type": {
|
|
136
|
-
"text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
|
|
137
|
-
},
|
|
138
|
-
"description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
|
|
139
|
-
"attribute": "color"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"kind": "field",
|
|
143
|
-
"name": "_scale",
|
|
144
|
-
"type": {
|
|
145
|
-
"text": "Scale | ''"
|
|
146
|
-
},
|
|
147
|
-
"privacy": "private",
|
|
148
|
-
"default": "''"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"kind": "field",
|
|
152
|
-
"name": "scale",
|
|
153
|
-
"type": {
|
|
154
|
-
"text": "\"medium\" | \"large\" | \"\""
|
|
155
|
-
},
|
|
156
|
-
"description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
|
|
157
|
-
"attribute": "scale"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"kind": "field",
|
|
161
|
-
"name": "template",
|
|
162
|
-
"type": {
|
|
163
|
-
"text": "HTMLTemplateElement"
|
|
164
|
-
},
|
|
165
|
-
"privacy": "private",
|
|
166
|
-
"static": true,
|
|
167
|
-
"readonly": true
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"kind": "field",
|
|
171
|
-
"name": "_systemContextConsumers",
|
|
172
|
-
"privacy": "private",
|
|
173
|
-
"default": "new Map< HTMLElement, [SystemContextCallback, () => void] >()"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"kind": "method",
|
|
177
|
-
"name": "_handleSystemContext",
|
|
178
|
-
"privacy": "private",
|
|
179
|
-
"return": {
|
|
180
|
-
"type": {
|
|
181
|
-
"text": "void"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"parameters": [
|
|
185
|
-
{
|
|
186
|
-
"name": "event",
|
|
187
|
-
"type": {
|
|
188
|
-
"text": "CustomEvent<{ callback: SystemContextCallback }>"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"kind": "field",
|
|
195
|
-
"name": "updateComplete",
|
|
196
|
-
"type": {
|
|
197
|
-
"text": "Promise<boolean>"
|
|
198
|
-
},
|
|
199
|
-
"privacy": "public"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"kind": "field",
|
|
203
|
-
"name": "__resolve",
|
|
204
|
-
"type": {
|
|
205
|
-
"text": "(completed: boolean) => void"
|
|
206
|
-
},
|
|
207
|
-
"privacy": "private"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"kind": "method",
|
|
211
|
-
"name": "__createDeferredPromise",
|
|
212
|
-
"privacy": "private",
|
|
213
|
-
"return": {
|
|
214
|
-
"type": {
|
|
215
|
-
"text": "Promise<boolean>"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"kind": "method",
|
|
221
|
-
"name": "startManagingContentDirection",
|
|
222
|
-
"privacy": "public",
|
|
223
|
-
"return": {
|
|
224
|
-
"type": {
|
|
225
|
-
"text": "void"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"parameters": [
|
|
229
|
-
{
|
|
230
|
-
"name": "el",
|
|
231
|
-
"type": {
|
|
232
|
-
"text": "HTMLElement"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"kind": "method",
|
|
239
|
-
"name": "stopManagingContentDirection",
|
|
240
|
-
"privacy": "public",
|
|
241
|
-
"return": {
|
|
242
|
-
"type": {
|
|
243
|
-
"text": "void"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
"parameters": [
|
|
247
|
-
{
|
|
248
|
-
"name": "el",
|
|
249
|
-
"type": {
|
|
250
|
-
"text": "HTMLElement"
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"kind": "field",
|
|
257
|
-
"name": "trackedChildren",
|
|
258
|
-
"type": {
|
|
259
|
-
"text": "Set<HTMLElement>"
|
|
260
|
-
},
|
|
261
|
-
"privacy": "private",
|
|
262
|
-
"default": "new Set()"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"kind": "field",
|
|
266
|
-
"name": "_updateRequested",
|
|
267
|
-
"type": {
|
|
268
|
-
"text": "boolean"
|
|
269
|
-
},
|
|
270
|
-
"privacy": "private",
|
|
271
|
-
"default": "false"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"kind": "method",
|
|
275
|
-
"name": "shouldAdoptStyles",
|
|
276
|
-
"privacy": "private",
|
|
277
|
-
"return": {
|
|
278
|
-
"type": {
|
|
279
|
-
"text": "Promise<void>"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"kind": "method",
|
|
285
|
-
"name": "adoptStyles",
|
|
286
|
-
"privacy": "protected",
|
|
287
|
-
"return": {
|
|
288
|
-
"type": {
|
|
289
|
-
"text": "void"
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"kind": "method",
|
|
295
|
-
"name": "registerThemeFragment",
|
|
296
|
-
"static": true,
|
|
297
|
-
"return": {
|
|
298
|
-
"type": {
|
|
299
|
-
"text": "void"
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
"parameters": [
|
|
303
|
-
{
|
|
304
|
-
"name": "name",
|
|
305
|
-
"type": {
|
|
306
|
-
"text": "FragmentName"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"name": "kind",
|
|
311
|
-
"type": {
|
|
312
|
-
"text": "FragmentType"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "styles",
|
|
317
|
-
"type": {
|
|
318
|
-
"text": "CSSResultGroup"
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
]
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"kind": "field",
|
|
325
|
-
"name": "_contextConsumers",
|
|
326
|
-
"privacy": "private",
|
|
327
|
-
"default": "new Map< HTMLElement, [ProvideLang['callback'], () => void] >()"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"kind": "method",
|
|
331
|
-
"name": "_provideContext",
|
|
332
|
-
"privacy": "private",
|
|
333
|
-
"return": {
|
|
334
|
-
"type": {
|
|
335
|
-
"text": "void"
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"kind": "method",
|
|
341
|
-
"name": "_provideSystemContext",
|
|
342
|
-
"privacy": "private",
|
|
343
|
-
"return": {
|
|
344
|
-
"type": {
|
|
345
|
-
"text": "void"
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"kind": "method",
|
|
351
|
-
"name": "_handleContextPresence",
|
|
352
|
-
"privacy": "private",
|
|
353
|
-
"return": {
|
|
354
|
-
"type": {
|
|
355
|
-
"text": "void"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
"parameters": [
|
|
359
|
-
{
|
|
360
|
-
"name": "event",
|
|
361
|
-
"type": {
|
|
362
|
-
"text": "CustomEvent<ProvideLang>"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"attributes": [
|
|
369
|
-
{
|
|
370
|
-
"name": "color",
|
|
371
|
-
"type": {
|
|
372
|
-
"text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
|
|
373
|
-
},
|
|
374
|
-
"description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
|
|
375
|
-
"fieldName": "color"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "scale",
|
|
379
|
-
"type": {
|
|
380
|
-
"text": "\"medium\" | \"large\" | \"\""
|
|
381
|
-
},
|
|
382
|
-
"description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
|
|
383
|
-
"fieldName": "scale"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "lang",
|
|
387
|
-
"type": {
|
|
388
|
-
"text": "string"
|
|
389
|
-
},
|
|
390
|
-
"description": "The language of the content scoped to this `sp-theme` element, see: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\" target=\"_blank\">MDN reference</a>.",
|
|
391
|
-
"default": "\"\""
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"name": "dir",
|
|
395
|
-
"type": {
|
|
396
|
-
"text": "\"ltr\" | \"rtl\" | \"\""
|
|
397
|
-
},
|
|
398
|
-
"description": "Reading direction of the content scoped to this `sp-theme` element.",
|
|
399
|
-
"fieldName": "dir"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "system",
|
|
403
|
-
"type": {
|
|
404
|
-
"text": "\"spectrum\" | \"express\""
|
|
405
|
-
},
|
|
406
|
-
"description": "The Spectrum system that is applied to the content scoped to this `sp-theme` element.\n\nA value is required.",
|
|
407
|
-
"fieldName": "system"
|
|
408
|
-
}
|
|
409
|
-
],
|
|
410
|
-
"superclass": {
|
|
411
|
-
"name": "HTMLElement"
|
|
412
|
-
},
|
|
413
|
-
"tagName": "sp-theme",
|
|
414
|
-
"customElement": true
|
|
415
|
-
}
|
|
416
|
-
],
|
|
417
|
-
"exports": [
|
|
418
|
-
{
|
|
419
|
-
"kind": "js",
|
|
420
|
-
"name": "ProvideLang",
|
|
421
|
-
"declaration": {
|
|
422
|
-
"name": "ProvideLang",
|
|
423
|
-
"module": "src/Theme.js"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"kind": "js",
|
|
428
|
-
"name": "ThemeFragmentMap",
|
|
429
|
-
"declaration": {
|
|
430
|
-
"name": "ThemeFragmentMap",
|
|
431
|
-
"module": "src/Theme.js"
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
"kind": "js",
|
|
436
|
-
"name": "Color",
|
|
437
|
-
"declaration": {
|
|
438
|
-
"name": "Color",
|
|
439
|
-
"module": "src/Theme.js"
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"kind": "js",
|
|
444
|
-
"name": "Scale",
|
|
445
|
-
"declaration": {
|
|
446
|
-
"name": "Scale",
|
|
447
|
-
"module": "src/Theme.js"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"kind": "js",
|
|
452
|
-
"name": "SystemVariant",
|
|
453
|
-
"declaration": {
|
|
454
|
-
"name": "SystemVariant",
|
|
455
|
-
"module": "src/Theme.js"
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"kind": "js",
|
|
460
|
-
"name": "Theme",
|
|
461
|
-
"declaration": {
|
|
462
|
-
"name": "Theme",
|
|
463
|
-
"module": "src/Theme.js"
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
]
|
|
467
|
-
}
|
|
468
|
-
]
|
|
469
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
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 './core-tokens.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import largeStyles from "./src/scale-large-core-tokens.css.js";
|
|
3
|
-
import { Theme } from "./src/Theme.dev.js";
|
|
4
|
-
import "./core-tokens.dev.js";
|
|
5
|
-
Theme.registerThemeFragment("large", "scale", largeStyles);
|
|
6
|
-
//# sourceMappingURL=scale-large-core-tokens.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-large-core-tokens.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport largeStyles from './src/scale-large-core-tokens.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core-tokens.js';\n\nTheme.registerThemeFragment('large', 'scale', largeStyles);\n"],
|
|
5
|
-
"mappings": "aAYA,OAAOA,MAAiB,uCACxB,OAAS,SAAAC,MAAa,iBACtB,MAAO,mBAEPA,EAAM,sBAAsB,QAAS,QAASD,CAAW",
|
|
6
|
-
"names": ["largeStyles", "Theme"]
|
|
7
|
-
}
|
package/scale-large.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
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 './core.js';
|
package/scale-large.dev.js
DELETED
package/scale-large.dev.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-large.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing 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,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,SAAS,SAAS,WAAW;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/scale-large.js
DELETED
package/scale-large.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-large.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport largeStyles from './src/scale-large.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core.js';\n\nTheme.registerThemeFragment('large', 'scale', largeStyles);\n"],
|
|
5
|
-
"mappings": "aAYA,OAAOA,MAAiB,2BACxB,OAAS,SAAAC,MAAa,iBACtB,MAAO,YAEPA,EAAM,sBAAsB,QAAS,QAASD,CAAW",
|
|
6
|
-
"names": ["largeStyles", "Theme"]
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
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 './core-tokens.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import mediumStyles from "./src/scale-medium-core-tokens.css.js";
|
|
3
|
-
import { Theme } from "./src/Theme.dev.js";
|
|
4
|
-
import "./core-tokens.dev.js";
|
|
5
|
-
Theme.registerThemeFragment("medium", "scale", mediumStyles);
|
|
6
|
-
//# sourceMappingURL=scale-medium-core-tokens.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-medium-core-tokens.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport mediumStyles from './src/scale-medium-core-tokens.css.js';\nimport { Theme } from './src/Theme.dev.js'\nimport './core-tokens.dev.js'\n\nTheme.registerThemeFragment('medium', 'scale', mediumStyles);\n"],
|
|
5
|
-
"mappings": ";AAYA,OAAO,kBAAkB;AACzB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,UAAU,SAAS,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-medium-core-tokens.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport mediumStyles from './src/scale-medium-core-tokens.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core-tokens.js';\n\nTheme.registerThemeFragment('medium', 'scale', mediumStyles);\n"],
|
|
5
|
-
"mappings": "aAYA,OAAOA,MAAkB,wCACzB,OAAS,SAAAC,MAAa,iBACtB,MAAO,mBAEPA,EAAM,sBAAsB,SAAU,QAASD,CAAY",
|
|
6
|
-
"names": ["mediumStyles", "Theme"]
|
|
7
|
-
}
|
package/scale-medium.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
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 './core.js';
|
package/scale-medium.dev.js
DELETED
package/scale-medium.dev.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-medium.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport mediumStyles from './src/scale-medium.css.js';\nimport { Theme } from './src/Theme.dev.js'\nimport './core.dev.js'\n\nTheme.registerThemeFragment('medium', 'scale', mediumStyles);\n"],
|
|
5
|
-
"mappings": ";AAYA,OAAO,kBAAkB;AACzB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,UAAU,SAAS,YAAY;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/scale-medium.js
DELETED
package/scale-medium.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["scale-medium.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport mediumStyles from './src/scale-medium.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core.js';\n\nTheme.registerThemeFragment('medium', 'scale', mediumStyles);\n"],
|
|
5
|
-
"mappings": "aAYA,OAAOA,MAAkB,4BACzB,OAAS,SAAAC,MAAa,iBACtB,MAAO,YAEPA,EAAM,sBAAsB,SAAU,QAASD,CAAY",
|
|
6
|
-
"names": ["mediumStyles", "Theme"]
|
|
7
|
-
}
|
package/sp-theme.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Adobe. All rights reserved.
|
|
3
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
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
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
'sp-theme': Theme;
|
|
16
|
-
}
|
|
17
|
-
}
|
package/sp-theme.dev.js
DELETED