@spectrum-web-components/icon 0.11.6 → 0.11.9

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.
@@ -249,281 +249,6 @@
249
249
  }
250
250
  }
251
251
  ]
252
- },
253
- {
254
- "kind": "javascript-module",
255
- "path": "src/icon.css.ts",
256
- "declarations": [
257
- {
258
- "kind": "variable",
259
- "name": "styles",
260
- "default": "css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}:host{height:var(\n--spectrum-icon-tshirt-size-height,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n);width:var(\n--spectrum-icon-tshirt-size-width,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n)}#container{height:100%}::slotted(*),img,svg{height:100%;vertical-align:top;width:100%}\n`"
261
- }
262
- ],
263
- "exports": [
264
- {
265
- "kind": "js",
266
- "name": "default",
267
- "declaration": {
268
- "name": "styles",
269
- "module": "src/icon.css.ts"
270
- }
271
- }
272
- ]
273
- },
274
- {
275
- "kind": "javascript-module",
276
- "path": "src/index.ts",
277
- "declarations": [],
278
- "exports": [
279
- {
280
- "kind": "js",
281
- "name": "*",
282
- "declaration": {
283
- "name": "*",
284
- "package": "./IconBase.js"
285
- }
286
- },
287
- {
288
- "kind": "js",
289
- "name": "*",
290
- "declaration": {
291
- "name": "*",
292
- "package": "./Icon.js"
293
- }
294
- }
295
- ]
296
- },
297
- {
298
- "kind": "javascript-module",
299
- "path": "src/spectrum-icon-arrow.css.ts",
300
- "declarations": [
301
- {
302
- "kind": "variable",
303
- "name": "styles",
304
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-ArrowDown100,.spectrum-UIIcon-ArrowDown200,.spectrum-UIIcon-ArrowDown300,.spectrum-UIIcon-ArrowDown400,.spectrum-UIIcon-ArrowDown500,.spectrum-UIIcon-ArrowDown600,.spectrum-UIIcon-ArrowDown75{transform:rotate(90deg)}.spectrum-UIIcon-ArrowLeft100,.spectrum-UIIcon-ArrowLeft200,.spectrum-UIIcon-ArrowLeft300,.spectrum-UIIcon-ArrowLeft400,.spectrum-UIIcon-ArrowLeft500,.spectrum-UIIcon-ArrowLeft600,.spectrum-UIIcon-ArrowLeft75{transform:rotate(180deg)}.spectrum-UIIcon-ArrowUp100,.spectrum-UIIcon-ArrowUp200,.spectrum-UIIcon-ArrowUp300,.spectrum-UIIcon-ArrowUp400,.spectrum-UIIcon-ArrowUp500,.spectrum-UIIcon-ArrowUp600,.spectrum-UIIcon-ArrowUp75{transform:rotate(270deg)}.spectrum-UIIcon-ArrowDown75,.spectrum-UIIcon-ArrowLeft75,.spectrum-UIIcon-ArrowRight75,.spectrum-UIIcon-ArrowUp75{height:var(--spectrum-alias-ui-icon-arrow-size-75);width:var(\n--spectrum-alias-ui-icon-arrow-size-75\n)}.spectrum-UIIcon-ArrowDown100,.spectrum-UIIcon-ArrowLeft100,.spectrum-UIIcon-ArrowRight100,.spectrum-UIIcon-ArrowUp100{height:var(--spectrum-alias-ui-icon-arrow-size-100);width:var(\n--spectrum-alias-ui-icon-arrow-size-100\n)}.spectrum-UIIcon-ArrowDown200,.spectrum-UIIcon-ArrowLeft200,.spectrum-UIIcon-ArrowRight200,.spectrum-UIIcon-ArrowUp200{height:var(--spectrum-alias-ui-icon-arrow-size-200);width:var(\n--spectrum-alias-ui-icon-arrow-size-200\n)}.spectrum-UIIcon-ArrowDown300,.spectrum-UIIcon-ArrowLeft300,.spectrum-UIIcon-ArrowRight300,.spectrum-UIIcon-ArrowUp300{height:var(--spectrum-alias-ui-icon-arrow-size-300);width:var(\n--spectrum-alias-ui-icon-arrow-size-300\n)}.spectrum-UIIcon-ArrowDown400,.spectrum-UIIcon-ArrowLeft400,.spectrum-UIIcon-ArrowRight400,.spectrum-UIIcon-ArrowUp400{height:var(--spectrum-alias-ui-icon-arrow-size-400);width:var(\n--spectrum-alias-ui-icon-arrow-size-400\n)}.spectrum-UIIcon-ArrowDown500,.spectrum-UIIcon-ArrowLeft500,.spectrum-UIIcon-ArrowRight500,.spectrum-UIIcon-ArrowUp500{height:var(--spectrum-alias-ui-icon-arrow-size-500);width:var(\n--spectrum-alias-ui-icon-arrow-size-500\n)}.spectrum-UIIcon-ArrowDown600,.spectrum-UIIcon-ArrowLeft600,.spectrum-UIIcon-ArrowRight600,.spectrum-UIIcon-ArrowUp600{height:var(--spectrum-alias-ui-icon-arrow-size-600);width:var(\n--spectrum-alias-ui-icon-arrow-size-600\n)}\n`"
305
- }
306
- ],
307
- "exports": [
308
- {
309
- "kind": "js",
310
- "name": "default",
311
- "declaration": {
312
- "name": "styles",
313
- "module": "src/spectrum-icon-arrow.css.ts"
314
- }
315
- }
316
- ]
317
- },
318
- {
319
- "kind": "javascript-module",
320
- "path": "src/spectrum-icon-asterisk.css.ts",
321
- "declarations": [
322
- {
323
- "kind": "variable",
324
- "name": "styles",
325
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Asterisk75{height:var(--spectrum-alias-ui-icon-asterisk-size-300);width:var(\n--spectrum-alias-ui-icon-asterisk-size-75,var(--spectrum-global-dimension-static-size-100)\n)}.spectrum-UIIcon-Asterisk100{height:var(\n--spectrum-alias-ui-icon-asterisk-size-100,var(--spectrum-global-dimension-size-100)\n);width:var(\n--spectrum-alias-ui-icon-asterisk-size-100,var(--spectrum-global-dimension-size-100)\n)}.spectrum-UIIcon-Asterisk200{height:var(--spectrum-alias-ui-icon-asterisk-size-200);width:var(\n--spectrum-alias-ui-icon-asterisk-size-200\n)}.spectrum-UIIcon-Asterisk300{height:var(--spectrum-alias-ui-icon-asterisk-size-300);width:var(\n--spectrum-alias-ui-icon-asterisk-size-300\n)}\n`"
326
- }
327
- ],
328
- "exports": [
329
- {
330
- "kind": "js",
331
- "name": "default",
332
- "declaration": {
333
- "name": "styles",
334
- "module": "src/spectrum-icon-asterisk.css.ts"
335
- }
336
- }
337
- ]
338
- },
339
- {
340
- "kind": "javascript-module",
341
- "path": "src/spectrum-icon-checkmark.css.ts",
342
- "declarations": [
343
- {
344
- "kind": "variable",
345
- "name": "styles",
346
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Checkmark50{height:var(--spectrum-alias-ui-icon-checkmark-size-50);width:var(\n--spectrum-alias-ui-icon-checkmark-size-50\n)}.spectrum-UIIcon-Checkmark75{height:var(--spectrum-alias-ui-icon-checkmark-size-75);width:var(\n--spectrum-alias-ui-icon-checkmark-size-75\n)}.spectrum-UIIcon-Checkmark100{height:var(--spectrum-alias-ui-icon-checkmark-size-100);width:var(\n--spectrum-alias-ui-icon-checkmark-size-100\n)}.spectrum-UIIcon-Checkmark200{height:var(--spectrum-alias-ui-icon-checkmark-size-200);width:var(\n--spectrum-alias-ui-icon-checkmark-size-200\n)}.spectrum-UIIcon-Checkmark300{height:var(--spectrum-alias-ui-icon-checkmark-size-300);width:var(\n--spectrum-alias-ui-icon-checkmark-size-300\n)}.spectrum-UIIcon-Checkmark400{height:var(--spectrum-alias-ui-icon-checkmark-size-400);width:var(\n--spectrum-alias-ui-icon-checkmark-size-400\n)}.spectrum-UIIcon-Checkmark500{height:var(--spectrum-alias-ui-icon-checkmark-size-500);width:var(\n--spectrum-alias-ui-icon-checkmark-size-500\n)}.spectrum-UIIcon-Checkmark600{height:var(--spectrum-alias-ui-icon-checkmark-size-600);width:var(\n--spectrum-alias-ui-icon-checkmark-size-600\n)}\n`"
347
- }
348
- ],
349
- "exports": [
350
- {
351
- "kind": "js",
352
- "name": "default",
353
- "declaration": {
354
- "name": "styles",
355
- "module": "src/spectrum-icon-checkmark.css.ts"
356
- }
357
- }
358
- ]
359
- },
360
- {
361
- "kind": "javascript-module",
362
- "path": "src/spectrum-icon-chevron.css.ts",
363
- "declarations": [
364
- {
365
- "kind": "variable",
366
- "name": "styles",
367
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-ChevronDown100,.spectrum-UIIcon-ChevronDown200,.spectrum-UIIcon-ChevronDown300,.spectrum-UIIcon-ChevronDown400,.spectrum-UIIcon-ChevronDown500,.spectrum-UIIcon-ChevronDown75{transform:rotate(90deg)}.spectrum-UIIcon-ChevronLeft100,.spectrum-UIIcon-ChevronLeft200,.spectrum-UIIcon-ChevronLeft300,.spectrum-UIIcon-ChevronLeft400,.spectrum-UIIcon-ChevronLeft500,.spectrum-UIIcon-ChevronLeft75{transform:rotate(180deg)}.spectrum-UIIcon-ChevronUp100,.spectrum-UIIcon-ChevronUp200,.spectrum-UIIcon-ChevronUp300,.spectrum-UIIcon-ChevronUp400,.spectrum-UIIcon-ChevronUp500,.spectrum-UIIcon-ChevronUp75{transform:rotate(270deg)}.spectrum-UIIcon-ChevronDown75,.spectrum-UIIcon-ChevronLeft75,.spectrum-UIIcon-ChevronRight75,.spectrum-UIIcon-ChevronUp75{height:var(--spectrum-alias-ui-icon-chevron-size-75);width:var(\n--spectrum-alias-ui-icon-chevron-size-75\n)}.spectrum-UIIcon-ChevronDown100,.spectrum-UIIcon-ChevronLeft100,.spectrum-UIIcon-ChevronRight100,.spectrum-UIIcon-ChevronUp100{height:var(--spectrum-alias-ui-icon-chevron-size-100);width:var(\n--spectrum-alias-ui-icon-chevron-size-100\n)}.spectrum-UIIcon-ChevronDown200,.spectrum-UIIcon-ChevronLeft200,.spectrum-UIIcon-ChevronRight200,.spectrum-UIIcon-ChevronUp200{height:var(--spectrum-alias-ui-icon-chevron-size-200);width:var(\n--spectrum-alias-ui-icon-chevron-size-200\n)}.spectrum-UIIcon-ChevronDown300,.spectrum-UIIcon-ChevronLeft300,.spectrum-UIIcon-ChevronRight300,.spectrum-UIIcon-ChevronUp300{height:var(--spectrum-alias-ui-icon-chevron-size-300);width:var(\n--spectrum-alias-ui-icon-chevron-size-300\n)}.spectrum-UIIcon-ChevronDown400,.spectrum-UIIcon-ChevronLeft400,.spectrum-UIIcon-ChevronRight400,.spectrum-UIIcon-ChevronUp400{height:var(--spectrum-alias-ui-icon-chevron-size-400);width:var(\n--spectrum-alias-ui-icon-chevron-size-400\n)}.spectrum-UIIcon-ChevronDown500,.spectrum-UIIcon-ChevronLeft500,.spectrum-UIIcon-ChevronRight500,.spectrum-UIIcon-ChevronUp500{height:var(--spectrum-alias-ui-icon-chevron-size-500);width:var(\n--spectrum-alias-ui-icon-chevron-size-500\n)}\n`"
368
- }
369
- ],
370
- "exports": [
371
- {
372
- "kind": "js",
373
- "name": "default",
374
- "declaration": {
375
- "name": "styles",
376
- "module": "src/spectrum-icon-chevron.css.ts"
377
- }
378
- }
379
- ]
380
- },
381
- {
382
- "kind": "javascript-module",
383
- "path": "src/spectrum-icon-corner-triangle.css.ts",
384
- "declarations": [
385
- {
386
- "kind": "variable",
387
- "name": "styles",
388
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-CornerTriangle75{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-75,var(--spectrum-global-dimension-size-65)\n)}.spectrum-UIIcon-CornerTriangle100{height:var(--spectrum-alias-ui-icon-cornertriangle-size-100);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-100\n)}.spectrum-UIIcon-CornerTriangle200{height:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-200,var(--spectrum-global-dimension-size-75)\n)}.spectrum-UIIcon-CornerTriangle300{height:var(--spectrum-alias-ui-icon-cornertriangle-size-300);width:var(\n--spectrum-alias-ui-icon-cornertriangle-size-300\n)}\n`"
389
- }
390
- ],
391
- "exports": [
392
- {
393
- "kind": "js",
394
- "name": "default",
395
- "declaration": {
396
- "name": "styles",
397
- "module": "src/spectrum-icon-corner-triangle.css.ts"
398
- }
399
- }
400
- ]
401
- },
402
- {
403
- "kind": "javascript-module",
404
- "path": "src/spectrum-icon-cross.css.ts",
405
- "declarations": [
406
- {
407
- "kind": "variable",
408
- "name": "styles",
409
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Cross75{height:var(--spectrum-alias-ui-icon-cross-size-75);width:var(\n--spectrum-alias-ui-icon-cross-size-75\n)}.spectrum-UIIcon-Cross100{height:var(--spectrum-alias-ui-icon-cross-size-100);width:var(\n--spectrum-alias-ui-icon-cross-size-100\n)}.spectrum-UIIcon-Cross200{height:var(--spectrum-alias-ui-icon-cross-size-200);width:var(\n--spectrum-alias-ui-icon-cross-size-200\n)}.spectrum-UIIcon-Cross300{height:var(--spectrum-alias-ui-icon-cross-size-300);width:var(\n--spectrum-alias-ui-icon-cross-size-300\n)}.spectrum-UIIcon-Cross400{height:var(--spectrum-alias-ui-icon-cross-size-400);width:var(\n--spectrum-alias-ui-icon-cross-size-400\n)}.spectrum-UIIcon-Cross500{height:var(--spectrum-alias-ui-icon-cross-size-500);width:var(\n--spectrum-alias-ui-icon-cross-size-500\n)}.spectrum-UIIcon-Cross600{height:var(--spectrum-alias-ui-icon-cross-size-600);width:var(\n--spectrum-alias-ui-icon-cross-size-600\n)}\n`"
410
- }
411
- ],
412
- "exports": [
413
- {
414
- "kind": "js",
415
- "name": "default",
416
- "declaration": {
417
- "name": "styles",
418
- "module": "src/spectrum-icon-cross.css.ts"
419
- }
420
- }
421
- ]
422
- },
423
- {
424
- "kind": "javascript-module",
425
- "path": "src/spectrum-icon-dash.css.ts",
426
- "declarations": [
427
- {
428
- "kind": "variable",
429
- "name": "styles",
430
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-Dash50{height:var(--spectrum-alias-ui-icon-dash-size-50);width:var(\n--spectrum-alias-ui-icon-dash-size-50\n)}.spectrum-UIIcon-Dash75{height:var(--spectrum-alias-ui-icon-dash-size-75);width:var(\n--spectrum-alias-ui-icon-dash-size-75\n)}.spectrum-UIIcon-Dash100{height:var(--spectrum-alias-ui-icon-dash-size-100);width:var(\n--spectrum-alias-ui-icon-dash-size-100\n)}.spectrum-UIIcon-Dash200{height:var(--spectrum-alias-ui-icon-dash-size-200);width:var(\n--spectrum-alias-ui-icon-dash-size-200\n)}.spectrum-UIIcon-Dash300{height:var(--spectrum-alias-ui-icon-dash-size-300);width:var(\n--spectrum-alias-ui-icon-dash-size-300\n)}.spectrum-UIIcon-Dash400{height:var(--spectrum-alias-ui-icon-dash-size-400);width:var(\n--spectrum-alias-ui-icon-dash-size-400\n)}.spectrum-UIIcon-Dash500{height:var(--spectrum-alias-ui-icon-dash-size-500);width:var(\n--spectrum-alias-ui-icon-dash-size-500\n)}.spectrum-UIIcon-Dash600{height:var(--spectrum-alias-ui-icon-dash-size-600);width:var(\n--spectrum-alias-ui-icon-dash-size-600\n)}\n`"
431
- }
432
- ],
433
- "exports": [
434
- {
435
- "kind": "js",
436
- "name": "default",
437
- "declaration": {
438
- "name": "styles",
439
- "module": "src/spectrum-icon-dash.css.ts"
440
- }
441
- }
442
- ]
443
- },
444
- {
445
- "kind": "javascript-module",
446
- "path": "src/spectrum-icon-double-gripper.css.ts",
447
- "declarations": [
448
- {
449
- "kind": "variable",
450
- "name": "styles",
451
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-DoubleGripper100{height:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-width,var(--spectrum-global-dimension-size-200)\n);width:var(\n--spectrum-alias-ui-icon-doublegripper-size-100-height\n)}\n`"
452
- }
453
- ],
454
- "exports": [
455
- {
456
- "kind": "js",
457
- "name": "default",
458
- "declaration": {
459
- "name": "styles",
460
- "module": "src/spectrum-icon-double-gripper.css.ts"
461
- }
462
- }
463
- ]
464
- },
465
- {
466
- "kind": "javascript-module",
467
- "path": "src/spectrum-icon-single-gripper.css.ts",
468
- "declarations": [
469
- {
470
- "kind": "variable",
471
- "name": "styles",
472
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-SingleGripper100{height:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-width,var(--spectrum-global-dimension-size-300)\n);width:var(\n--spectrum-alias-ui-icon-singlegripper-size-100-height\n)}\n`"
473
- }
474
- ],
475
- "exports": [
476
- {
477
- "kind": "js",
478
- "name": "default",
479
- "declaration": {
480
- "name": "styles",
481
- "module": "src/spectrum-icon-single-gripper.css.ts"
482
- }
483
- }
484
- ]
485
- },
486
- {
487
- "kind": "javascript-module",
488
- "path": "src/spectrum-icon-triple-gripper.css.ts",
489
- "declarations": [
490
- {
491
- "kind": "variable",
492
- "name": "styles",
493
- "default": "css`\n@media (forced-colors:active){.spectrum-Icon,.spectrum-UIIcon{forced-color-adjust:auto}}.spectrum-UIIcon-TripleGripper100{height:var(--spectrum-alias-ui-icon-triplegripper-size-100-width);width:var(\n--spectrum-alias-ui-icon-triplegripper-size-100-height,var(--spectrum-global-dimension-size-100)\n)}\n`"
494
- }
495
- ],
496
- "exports": [
497
- {
498
- "kind": "js",
499
- "name": "default",
500
- "declaration": {
501
- "name": "styles",
502
- "module": "src/spectrum-icon-triple-gripper.css.ts"
503
- }
504
- }
505
- ]
506
- },
507
- {
508
- "kind": "javascript-module",
509
- "path": "src/spectrum-icon.css.ts",
510
- "declarations": [
511
- {
512
- "kind": "variable",
513
- "name": "styles",
514
- "default": "css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}\n`"
515
- }
516
- ],
517
- "exports": [
518
- {
519
- "kind": "js",
520
- "name": "default",
521
- "declaration": {
522
- "name": "styles",
523
- "module": "src/spectrum-icon.css.ts"
524
- }
525
- }
526
- ]
527
252
  }
528
253
  ]
529
254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/icon",
3
- "version": "0.11.6",
3
+ "version": "0.11.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,17 +44,17 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.5",
48
- "@spectrum-web-components/iconset": "^0.6.5",
47
+ "@spectrum-web-components/base": "^0.5.7",
48
+ "@spectrum-web-components/iconset": "^0.6.7",
49
49
  "tslib": "^2.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@spectrum-css/icon": "^3.0.20"
52
+ "@spectrum-css/icon": "^3.0.21"
53
53
  },
54
54
  "types": "./src/index.d.ts",
55
55
  "customElements": "custom-elements.json",
56
56
  "sideEffects": [
57
57
  "./sp-*.js"
58
58
  ],
59
- "gitHead": "bdff893e2b95aba7737c58d01c6ac68861cb8b2e"
59
+ "gitHead": "275ee61b152ac3eed0cd1603d8eab2aec90876a0"
60
60
  }
package/src/Icon.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["Icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAAlC;;QAmCY,oBAAe,GAAG,CAAC,KAAkB,EAAQ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ACpD,CAAC;IAES,KAAK,CAAC,iBAAiB;QAC7B,MAAM,QAAQ,GAAG,CAAC,MAAM,KAAK,CAAC,iBAAiB,EAAE,CAAY,CAAC;QAC9D,MAAM,IAAI,CAAC,iBAAiB,CAAC;QAC7B,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AApGG;IADC,QAAQ,EAAE;iCACS;AAGpB;IADC,QAAQ,EAAE;kCACU;AAGrB;IADC,KAAK,CAAC,YAAY,CAAC;2CACgB","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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { IconsetRegistry } from '@spectrum-web-components/iconset/src/iconset-registry.js';\n\nimport { IconBase } from './IconBase.js';\n\n/**\n * @element sp-icon\n */\nexport class Icon extends IconBase {\n @property()\n public src?: string;\n\n @property()\n public name?: string;\n\n @query('#container')\n private iconContainer?: HTMLElement;\n\n private updateIconPromise?: Promise<void>;\n\n public connectedCallback(): void {\n super.connectedCallback();\n window.addEventListener('sp-iconset-added', this.iconsetListener);\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('sp-iconset-added', this.iconsetListener);\n }\n\n public firstUpdated(): void {\n this.updateIconPromise = this.updateIcon();\n }\n\n public attributeChangedCallback(\n name: string,\n old: string,\n value: string\n ): void {\n super.attributeChangedCallback(name, old, value);\n this.updateIconPromise = this.updateIcon(); // any of our attributes change, update our icon\n }\n\n private iconsetListener = (event: CustomEvent): void => {\n if (!this.name) {\n return;\n }\n // parse the icon name to get iconset name\n const icon = this.parseIcon(this.name);\n if (event.detail.name === icon.iconset) {\n this.updateIconPromise = this.updateIcon();\n }\n };\n\n protected render(): TemplateResult {\n if (this.name) {\n return html`\n <div id=\"container\"></div>\n `;\n } else if (this.src) {\n return html`\n <img src=\"${this.src}\" alt=${ifDefined(this.label)} />\n `;\n }\n return super.render();\n }\n\n private async updateIcon(): Promise<void> {\n if (this.updateIconPromise) {\n await this.updateIconPromise;\n }\n if (!this.name) {\n return Promise.resolve();\n }\n // parse the icon name to get iconset name\n const icon = this.parseIcon(this.name);\n // try to retrieve the iconset\n const iconset = IconsetRegistry.getInstance().getIconset(icon.iconset);\n if (!iconset) {\n // we can stop here as there's nothing to be done till we get the iconset\n return Promise.resolve();\n }\n if (!this.iconContainer) {\n return Promise.resolve();\n }\n this.iconContainer.innerHTML = '';\n return iconset.applyIconToElement(\n this.iconContainer,\n icon.icon,\n this.size || '',\n this.label ? this.label : ''\n );\n }\n\n private parseIcon(icon: string): { iconset: string; icon: string } {\n const iconParts = icon.split(':');\n let iconsetName = 'default';\n let iconName = icon;\n if (iconParts.length > 1) {\n iconsetName = iconParts[0];\n iconName = iconParts[1];\n }\n return { iconset: iconsetName, icon: iconName };\n }\n\n protected async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this.updateIconPromise;\n return complete;\n }\n}\n"]}
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["Icon.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAE3F,OAAO,EAAE,QAAQ,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,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;SAC3B;QACD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACpD,CAAC;IAEkB,KAAK,CAAC,iBAAiB;QACtC,MAAM,QAAQ,GAAG,CAAC,MAAM,KAAK,CAAC,iBAAiB,EAAE,CAAY,CAAC;QAC9D,MAAM,IAAI,CAAC,iBAAiB,CAAC;QAC7B,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AApGG;IADC,QAAQ,EAAE;iCACS;AAGpB;IADC,QAAQ,EAAE;kCACU;AAGrB;IADC,KAAK,CAAC,YAAY,CAAC;2CACgB","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 { html, TemplateResult } from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { IconsetRegistry } from '@spectrum-web-components/iconset/src/iconset-registry.js';\n\nimport { IconBase } from './IconBase.js';\n\n/**\n * @element sp-icon\n */\nexport class Icon extends IconBase {\n @property()\n public src?: string;\n\n @property()\n public name?: string;\n\n @query('#container')\n private iconContainer?: HTMLElement;\n\n private updateIconPromise?: Promise<void>;\n\n public override connectedCallback(): void {\n super.connectedCallback();\n window.addEventListener('sp-iconset-added', this.iconsetListener);\n }\n\n public override disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('sp-iconset-added', this.iconsetListener);\n }\n\n public override firstUpdated(): void {\n this.updateIconPromise = this.updateIcon();\n }\n\n public override attributeChangedCallback(\n name: string,\n old: string,\n value: string\n ): void {\n super.attributeChangedCallback(name, old, value);\n this.updateIconPromise = this.updateIcon(); // any of our attributes change, update our icon\n }\n\n private iconsetListener = (event: CustomEvent): void => {\n if (!this.name) {\n return;\n }\n // parse the icon name to get iconset name\n const icon = this.parseIcon(this.name);\n if (event.detail.name === icon.iconset) {\n this.updateIconPromise = this.updateIcon();\n }\n };\n\n protected override render(): TemplateResult {\n if (this.name) {\n return html`\n <div id=\"container\"></div>\n `;\n } else if (this.src) {\n return html`\n <img src=\"${this.src}\" alt=${ifDefined(this.label)} />\n `;\n }\n return super.render();\n }\n\n private async updateIcon(): Promise<void> {\n if (this.updateIconPromise) {\n await this.updateIconPromise;\n }\n if (!this.name) {\n return Promise.resolve();\n }\n // parse the icon name to get iconset name\n const icon = this.parseIcon(this.name);\n // try to retrieve the iconset\n const iconset = IconsetRegistry.getInstance().getIconset(icon.iconset);\n if (!iconset) {\n // we can stop here as there's nothing to be done till we get the iconset\n return Promise.resolve();\n }\n if (!this.iconContainer) {\n return Promise.resolve();\n }\n this.iconContainer.innerHTML = '';\n return iconset.applyIconToElement(\n this.iconContainer,\n icon.icon,\n this.size || '',\n this.label ? this.label : ''\n );\n }\n\n private parseIcon(icon: string): { iconset: string; icon: string } {\n const iconParts = icon.split(':');\n let iconsetName = 'default';\n let iconName = icon;\n if (iconParts.length > 1) {\n iconsetName = iconParts[0];\n iconName = iconParts[1];\n }\n return { iconset: iconsetName, icon: iconName };\n }\n\n protected override async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this.updateIconPromise;\n return complete;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IconBase.js","sourceRoot":"","sources":["IconBase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,eAAe;IAClC,MAAM,KAAK,MAAM;QACpB,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAQS,MAAM;QACZ,OAAO,IAAI,CAAA;;SAEV,CAAC;IACN,CAAC;CACJ;AAVG;IADC,QAAQ,EAAE;uCACW;AAGtB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACiB","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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport iconStyles from './icon.css.js';\n\nexport class IconBase extends SpectrumElement {\n public static get styles(): CSSResultArray {\n return [iconStyles];\n }\n\n @property()\n public label?: string;\n\n @property({ reflect: true })\n public size?: 's' | 'm' | 'l' | 'xl' | 'xxl';\n\n protected render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"]}
1
+ {"version":3,"file":"IconBase.js","sourceRoot":"","sources":["IconBase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,eAAe;IAClC,MAAM,KAAc,MAAM;QAC7B,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAQkB,MAAM;QACrB,OAAO,IAAI,CAAA;;SAEV,CAAC;IACN,CAAC;CACJ;AAVG;IADC,QAAQ,EAAE;uCACW;AAGtB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACiB","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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport iconStyles from './icon.css.js';\n\nexport class IconBase extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [iconStyles];\n }\n\n @property()\n public label?: string;\n\n @property({ reflect: true })\n public size?: 's' | 'm' | 'l' | 'xl' | 'xxl';\n\n protected override render(): TemplateResult {\n return html`\n <slot></slot>\n `;\n }\n}\n"]}
package/src/icon.css.js CHANGED
@@ -35,7 +35,7 @@ const styles = css `
35
35
  --spectrum-icon-tshirt-size-width,var(
36
36
  --spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)
37
37
  )
38
- )}#container{height:100%}::slotted(*),img,svg{height:100%;vertical-align:top;width:100%}
38
+ )}#container{height:100%}::slotted(*),img,svg{color:inherit;height:100%;vertical-align:top;width:100%}@media (forced-colors:active){::slotted(*),img,svg{forced-color-adjust:auto}}
39
39
  `;
40
40
  export default styles;
41
41
  //# sourceMappingURL=icon.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.css.js","sourceRoot":"","sources":["icon.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}:host{height:var(\n--spectrum-icon-tshirt-size-height,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n);width:var(\n--spectrum-icon-tshirt-size-width,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n)}#container{height:100%}::slotted(*),img,svg{height:100%;vertical-align:top;width:100%}\n`;\nexport default styles;"]}
1
+ {"version":3,"file":"icon.css.js","sourceRoot":"","sources":["icon.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{fill:currentColor;color:inherit;display:inline-block;pointer-events:none}:host(:not(:root)){overflow:hidden}@media (forced-colors:active){.spectrum-UIIcon,:host{forced-color-adjust:auto}}:host{--spectrum-icon-size-s:var(\n--spectrum-alias-workflow-icon-size-s,var(--spectrum-global-dimension-size-200)\n);--spectrum-icon-size-m:var(\n--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225)\n);--spectrum-icon-size-l:var(--spectrum-alias-workflow-icon-size-l);--spectrum-icon-size-xl:var(\n--spectrum-alias-workflow-icon-size-xl,var(--spectrum-global-dimension-size-275)\n);--spectrum-icon-size-xxl:var(--spectrum-global-dimension-size-400)}:host([size=s]){height:var(\n--spectrum-icon-size-s\n);width:var(--spectrum-icon-size-s)}:host([size=m]){height:var(\n--spectrum-icon-size-m\n);width:var(--spectrum-icon-size-m)}:host([size=l]){height:var(\n--spectrum-icon-size-l\n);width:var(--spectrum-icon-size-l)}:host([size=xl]){height:var(\n--spectrum-icon-size-xl\n);width:var(--spectrum-icon-size-xl)}:host([size=xxl]){height:var(\n--spectrum-icon-size-xxl\n);width:var(--spectrum-icon-size-xxl)}:host{height:var(\n--spectrum-icon-tshirt-size-height,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n);width:var(\n--spectrum-icon-tshirt-size-width,var(\n--spectrum-alias-workflow-icon-size,var(--spectrum-global-dimension-size-225)\n)\n)}#container{height:100%}::slotted(*),img,svg{color:inherit;height:100%;vertical-align:top;width:100%}@media (forced-colors:active){::slotted(*),img,svg{forced-color-adjust:auto}}\n`;\nexport default styles;"]}