@spectrum-web-components/theme 0.48.1 → 0.49.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/theme",
3
- "version": "0.48.1",
3
+ "version": "0.49.0-beta.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -237,8 +237,8 @@
237
237
  "lit-html"
238
238
  ],
239
239
  "dependencies": {
240
- "@spectrum-web-components/base": "^0.48.1",
241
- "@spectrum-web-components/styles": "^0.48.1"
240
+ "@spectrum-web-components/base": "^0.49.0-beta.0",
241
+ "@spectrum-web-components/styles": "^0.49.0-beta.0"
242
242
  },
243
243
  "types": "./src/index.d.ts",
244
244
  "customElements": "custom-elements.json",
@@ -265,5 +265,5 @@
265
265
  "./src/spectrum-two/themes.js",
266
266
  "./src/spectrum-two/themes-*.js"
267
267
  ],
268
- "gitHead": "b756ecc3587411e4dbeb825bad40a9f4a3c7a248"
268
+ "gitHead": "1aa9165b6529e70339c9c632d47335a2c0894f0b"
269
269
  }
@@ -1,445 +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 requried.",
121
- "attribute": "system"
122
- },
123
- {
124
- "kind": "field",
125
- "name": "theme",
126
- "type": {
127
- "text": "SystemVariant | ''"
128
- }
129
- },
130
- {
131
- "kind": "field",
132
- "name": "_color",
133
- "type": {
134
- "text": "Color | ''"
135
- },
136
- "privacy": "private",
137
- "default": "''"
138
- },
139
- {
140
- "kind": "field",
141
- "name": "color",
142
- "type": {
143
- "text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
144
- },
145
- "description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is requried.",
146
- "attribute": "color"
147
- },
148
- {
149
- "kind": "field",
150
- "name": "_scale",
151
- "type": {
152
- "text": "Scale | ''"
153
- },
154
- "privacy": "private",
155
- "default": "''"
156
- },
157
- {
158
- "kind": "field",
159
- "name": "scale",
160
- "type": {
161
- "text": "\"medium\" | \"large\" | \"\""
162
- },
163
- "description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is requried.",
164
- "attribute": "scale"
165
- },
166
- {
167
- "kind": "field",
168
- "name": "template",
169
- "type": {
170
- "text": "HTMLTemplateElement"
171
- },
172
- "privacy": "private",
173
- "static": true,
174
- "readonly": true
175
- },
176
- {
177
- "kind": "field",
178
- "name": "updateComplete",
179
- "type": {
180
- "text": "Promise<boolean>"
181
- },
182
- "privacy": "public"
183
- },
184
- {
185
- "kind": "field",
186
- "name": "__resolve",
187
- "type": {
188
- "text": "(compelted: boolean) => void"
189
- },
190
- "privacy": "private"
191
- },
192
- {
193
- "kind": "method",
194
- "name": "__createDeferredPromise",
195
- "privacy": "private",
196
- "return": {
197
- "type": {
198
- "text": "Promise<boolean>"
199
- }
200
- }
201
- },
202
- {
203
- "kind": "method",
204
- "name": "startManagingContentDirection",
205
- "privacy": "public",
206
- "return": {
207
- "type": {
208
- "text": "void"
209
- }
210
- },
211
- "parameters": [
212
- {
213
- "name": "el",
214
- "type": {
215
- "text": "HTMLElement"
216
- }
217
- }
218
- ]
219
- },
220
- {
221
- "kind": "method",
222
- "name": "stopManagingContentDirection",
223
- "privacy": "public",
224
- "return": {
225
- "type": {
226
- "text": "void"
227
- }
228
- },
229
- "parameters": [
230
- {
231
- "name": "el",
232
- "type": {
233
- "text": "HTMLElement"
234
- }
235
- }
236
- ]
237
- },
238
- {
239
- "kind": "field",
240
- "name": "trackedChildren",
241
- "type": {
242
- "text": "Set<HTMLElement>"
243
- },
244
- "privacy": "private",
245
- "default": "new Set()"
246
- },
247
- {
248
- "kind": "field",
249
- "name": "_updateRequested",
250
- "type": {
251
- "text": "boolean"
252
- },
253
- "privacy": "private",
254
- "default": "false"
255
- },
256
- {
257
- "kind": "method",
258
- "name": "shouldAdoptStyles",
259
- "privacy": "private",
260
- "return": {
261
- "type": {
262
- "text": "Promise<void>"
263
- }
264
- }
265
- },
266
- {
267
- "kind": "method",
268
- "name": "adoptStyles",
269
- "privacy": "protected",
270
- "return": {
271
- "type": {
272
- "text": "void"
273
- }
274
- }
275
- },
276
- {
277
- "kind": "method",
278
- "name": "registerThemeFragment",
279
- "static": true,
280
- "return": {
281
- "type": {
282
- "text": "void"
283
- }
284
- },
285
- "parameters": [
286
- {
287
- "name": "name",
288
- "type": {
289
- "text": "FragmentName"
290
- }
291
- },
292
- {
293
- "name": "kind",
294
- "type": {
295
- "text": "FragmentType"
296
- }
297
- },
298
- {
299
- "name": "styles",
300
- "type": {
301
- "text": "CSSResultGroup"
302
- }
303
- }
304
- ]
305
- },
306
- {
307
- "kind": "field",
308
- "name": "_contextConsumers",
309
- "privacy": "private",
310
- "default": "new Map<\n HTMLElement,\n [ProvideLang['callback'], () => void]\n >()"
311
- },
312
- {
313
- "kind": "method",
314
- "name": "_provideContext",
315
- "privacy": "private",
316
- "return": {
317
- "type": {
318
- "text": "void"
319
- }
320
- }
321
- },
322
- {
323
- "kind": "method",
324
- "name": "_handleContextPresence",
325
- "privacy": "private",
326
- "return": {
327
- "type": {
328
- "text": "void"
329
- }
330
- },
331
- "parameters": [
332
- {
333
- "name": "event",
334
- "type": {
335
- "text": "CustomEvent<ProvideLang>"
336
- }
337
- }
338
- ]
339
- }
340
- ],
341
- "attributes": [
342
- {
343
- "name": "color",
344
- "type": {
345
- "text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
346
- },
347
- "description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is requried.",
348
- "fieldName": "color"
349
- },
350
- {
351
- "name": "scale",
352
- "type": {
353
- "text": "\"medium\" | \"large\" | \"\""
354
- },
355
- "description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is requried.",
356
- "fieldName": "scale"
357
- },
358
- {
359
- "name": "lang",
360
- "type": {
361
- "text": "string"
362
- },
363
- "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>.",
364
- "default": "\"\""
365
- },
366
- {
367
- "name": "dir",
368
- "type": {
369
- "text": "\"ltr\" | \"rtl\" | \"\""
370
- },
371
- "description": "Reading direction of the content scoped to this `sp-theme` element.",
372
- "fieldName": "dir"
373
- },
374
- {
375
- "name": "system",
376
- "type": {
377
- "text": "\"spectrum\" | \"express\""
378
- },
379
- "description": "The Spectrum system that is applied to the content scoped to this `sp-theme` element.\n\nA value is requried.",
380
- "fieldName": "system"
381
- },
382
- {
383
- "name": "theme"
384
- }
385
- ],
386
- "superclass": {
387
- "name": "HTMLElement"
388
- },
389
- "tagName": "sp-theme",
390
- "customElement": true
391
- }
392
- ],
393
- "exports": [
394
- {
395
- "kind": "js",
396
- "name": "ProvideLang",
397
- "declaration": {
398
- "name": "ProvideLang",
399
- "module": "src/Theme.js"
400
- }
401
- },
402
- {
403
- "kind": "js",
404
- "name": "ThemeFragmentMap",
405
- "declaration": {
406
- "name": "ThemeFragmentMap",
407
- "module": "src/Theme.js"
408
- }
409
- },
410
- {
411
- "kind": "js",
412
- "name": "Color",
413
- "declaration": {
414
- "name": "Color",
415
- "module": "src/Theme.js"
416
- }
417
- },
418
- {
419
- "kind": "js",
420
- "name": "Scale",
421
- "declaration": {
422
- "name": "Scale",
423
- "module": "src/Theme.js"
424
- }
425
- },
426
- {
427
- "kind": "js",
428
- "name": "SystemVariant",
429
- "declaration": {
430
- "name": "SystemVariant",
431
- "module": "src/Theme.js"
432
- }
433
- },
434
- {
435
- "kind": "js",
436
- "name": "Theme",
437
- "declaration": {
438
- "name": "Theme",
439
- "module": "src/Theme.js"
440
- }
441
- }
442
- ]
443
- }
444
- ]
445
- }