@spectrum-web-components/theme 1.2.0-beta.1 → 1.2.0-beta.3

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.
@@ -0,0 +1,469 @@
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": "_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 requried.",
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 requried.",
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<\n HTMLElement,\n [SystemContextCallback, () => void]\n >()"
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": "(compelted: 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<\n HTMLElement,\n [ProvideLang['callback'], () => void]\n >()"
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 requried.",
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 requried.",
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 requried.",
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/theme",
3
- "version": "1.2.0-beta.1",
3
+ "version": "1.2.0-beta.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -283,8 +283,8 @@
283
283
  "lit-html"
284
284
  ],
285
285
  "dependencies": {
286
- "@spectrum-web-components/base": "^1.2.0-beta.1",
287
- "@spectrum-web-components/styles": "^1.2.0-beta.1"
286
+ "@spectrum-web-components/base": "^1.2.0-beta.3",
287
+ "@spectrum-web-components/styles": "^1.2.0-beta.3"
288
288
  },
289
289
  "types": "./src/index.d.ts",
290
290
  "customElements": "custom-elements.json",
@@ -311,5 +311,5 @@
311
311
  "./src/spectrum-two/themes.js",
312
312
  "./src/spectrum-two/themes-*.js"
313
313
  ],
314
- "gitHead": "10139c3ba67a3abfb114859efadac87d9dc4a472"
314
+ "gitHead": "f8978dc08b7495f6cbf0e9f096d0cec2e55f0428"
315
315
  }