@spectrum-web-components/theme 0.14.0 → 0.14.1

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.
Files changed (139) hide show
  1. package/core.dev.js +1 -0
  2. package/core.dev.js.map +1 -1
  3. package/core.js +1 -1
  4. package/core.js.map +2 -2
  5. package/express/scale-large.dev.js +1 -0
  6. package/express/scale-large.dev.js.map +1 -1
  7. package/express/scale-large.js +1 -1
  8. package/express/scale-large.js.map +2 -2
  9. package/express/scale-medium.dev.js +1 -0
  10. package/express/scale-medium.dev.js.map +1 -1
  11. package/express/scale-medium.js +1 -1
  12. package/express/scale-medium.js.map +2 -2
  13. package/express/theme-dark.dev.js +1 -0
  14. package/express/theme-dark.dev.js.map +1 -1
  15. package/express/theme-dark.js +1 -1
  16. package/express/theme-dark.js.map +2 -2
  17. package/express/theme-darkest.dev.js +1 -0
  18. package/express/theme-darkest.dev.js.map +1 -1
  19. package/express/theme-darkest.js +1 -1
  20. package/express/theme-darkest.js.map +2 -2
  21. package/express/theme-light.dev.js +1 -0
  22. package/express/theme-light.dev.js.map +1 -1
  23. package/express/theme-light.js +1 -1
  24. package/express/theme-light.js.map +2 -2
  25. package/express/theme-lightest.dev.js +1 -0
  26. package/express/theme-lightest.dev.js.map +1 -1
  27. package/express/theme-lightest.js +1 -1
  28. package/express/theme-lightest.js.map +2 -2
  29. package/package.json +3 -3
  30. package/scale-large.dev.js +1 -0
  31. package/scale-large.dev.js.map +1 -1
  32. package/scale-large.js +1 -1
  33. package/scale-large.js.map +2 -2
  34. package/scale-medium.dev.js +1 -0
  35. package/scale-medium.dev.js.map +1 -1
  36. package/scale-medium.js +1 -1
  37. package/scale-medium.js.map +2 -2
  38. package/sp-theme.dev.js +1 -0
  39. package/sp-theme.dev.js.map +1 -1
  40. package/sp-theme.js +1 -1
  41. package/sp-theme.js.map +2 -2
  42. package/src/Theme.dev.js +43 -13
  43. package/src/Theme.dev.js.map +2 -2
  44. package/src/Theme.js +1 -1
  45. package/src/Theme.js.map +2 -2
  46. package/src/express/core.dev.js +1 -0
  47. package/src/express/core.dev.js.map +1 -1
  48. package/src/express/core.js +1 -1
  49. package/src/express/core.js.map +2 -2
  50. package/src/express/scale-large.css.dev.js +2 -15
  51. package/src/express/scale-large.css.dev.js.map +2 -2
  52. package/src/express/scale-large.css.js +2 -16
  53. package/src/express/scale-large.css.js.map +3 -3
  54. package/src/express/scale-medium.css.dev.js +2 -15
  55. package/src/express/scale-medium.css.dev.js.map +2 -2
  56. package/src/express/scale-medium.css.js +2 -16
  57. package/src/express/scale-medium.css.js.map +3 -3
  58. package/src/express/theme-dark.css.dev.js +1 -0
  59. package/src/express/theme-dark.css.dev.js.map +1 -1
  60. package/src/express/theme-dark.css.js +1 -1
  61. package/src/express/theme-dark.css.js.map +2 -2
  62. package/src/express/theme-light.css.dev.js +1 -0
  63. package/src/express/theme-light.css.dev.js.map +1 -1
  64. package/src/express/theme-light.css.js +1 -1
  65. package/src/express/theme-light.css.js.map +2 -2
  66. package/src/express/theme.css.dev.js +27 -2
  67. package/src/express/theme.css.dev.js.map +2 -2
  68. package/src/express/theme.css.js +27 -3
  69. package/src/express/theme.css.js.map +3 -3
  70. package/src/express/themes.dev.js +1 -0
  71. package/src/express/themes.dev.js.map +1 -1
  72. package/src/express/themes.js +1 -1
  73. package/src/express/themes.js.map +1 -1
  74. package/src/index.dev.js +1 -0
  75. package/src/index.dev.js.map +1 -1
  76. package/src/index.js +1 -1
  77. package/src/index.js.map +1 -1
  78. package/src/scale-large.css.dev.js +2 -15
  79. package/src/scale-large.css.dev.js.map +2 -2
  80. package/src/scale-large.css.js +2 -16
  81. package/src/scale-large.css.js.map +3 -3
  82. package/src/scale-medium.css.dev.js +2 -15
  83. package/src/scale-medium.css.dev.js.map +2 -2
  84. package/src/scale-medium.css.js +2 -16
  85. package/src/scale-medium.css.js.map +3 -3
  86. package/src/theme-dark.css.dev.js +1 -0
  87. package/src/theme-dark.css.dev.js.map +1 -1
  88. package/src/theme-dark.css.js +1 -1
  89. package/src/theme-dark.css.js.map +2 -2
  90. package/src/theme-darkest.css.dev.js +1 -0
  91. package/src/theme-darkest.css.dev.js.map +1 -1
  92. package/src/theme-darkest.css.js +1 -1
  93. package/src/theme-darkest.css.js.map +2 -2
  94. package/src/theme-light.css.dev.js +1 -0
  95. package/src/theme-light.css.dev.js.map +1 -1
  96. package/src/theme-light.css.js +1 -1
  97. package/src/theme-light.css.js.map +2 -2
  98. package/src/theme-lightest.css.dev.js +1 -0
  99. package/src/theme-lightest.css.dev.js.map +1 -1
  100. package/src/theme-lightest.css.js +1 -1
  101. package/src/theme-lightest.css.js.map +2 -2
  102. package/src/theme.css.dev.js +27 -2
  103. package/src/theme.css.dev.js.map +2 -2
  104. package/src/theme.css.js +27 -3
  105. package/src/theme.css.js.map +3 -3
  106. package/src/themes.dev.js +1 -0
  107. package/src/themes.dev.js.map +1 -1
  108. package/src/themes.js +1 -1
  109. package/src/themes.js.map +1 -1
  110. package/src/typography.css.dev.js +1 -0
  111. package/src/typography.css.dev.js.map +1 -1
  112. package/src/typography.css.js +1 -1
  113. package/src/typography.css.js.map +2 -2
  114. package/stories/theme.stories.js +56 -14
  115. package/stories/theme.stories.js.map +1 -1
  116. package/test/theme-devmode.test.js +29 -2
  117. package/test/theme-devmode.test.js.map +1 -1
  118. package/test/theme-lazy.test.js +118 -6
  119. package/test/theme-lazy.test.js.map +1 -1
  120. package/test/theme.test-vrt.js +4 -1
  121. package/test/theme.test-vrt.js.map +1 -1
  122. package/test/themes.test.js +145 -10
  123. package/test/themes.test.js.map +1 -1
  124. package/theme-dark.dev.js +1 -0
  125. package/theme-dark.dev.js.map +1 -1
  126. package/theme-dark.js +1 -1
  127. package/theme-dark.js.map +2 -2
  128. package/theme-darkest.dev.js +1 -0
  129. package/theme-darkest.dev.js.map +1 -1
  130. package/theme-darkest.js +1 -1
  131. package/theme-darkest.js.map +2 -2
  132. package/theme-light.dev.js +1 -0
  133. package/theme-light.dev.js.map +1 -1
  134. package/theme-light.js +1 -1
  135. package/theme-light.js.map +2 -2
  136. package/theme-lightest.dev.js +1 -0
  137. package/theme-lightest.dev.js.map +1 -1
  138. package/theme-lightest.js +1 -1
  139. package/theme-lightest.js.map +2 -2
package/core.dev.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { Theme } from "./src/Theme.dev.js";
2
3
  import coreStyles from "./src/theme.css.js";
3
4
  Theme.registerThemeFragment("spectrum", "theme", coreStyles);
package/core.dev.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["core.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Theme } from './src/Theme.dev.js'\n\nimport coreStyles from './src/theme.css.js';\n\nTheme.registerThemeFragment('spectrum', 'theme', coreStyles);\n"],
5
- "mappings": "AAYA;AAEA;AAEA,MAAM,sBAAsB,YAAY,SAAS,UAAU;",
5
+ "mappings": ";AAYA,SAAS,aAAa;AAEtB,OAAO,gBAAgB;AAEvB,MAAM,sBAAsB,YAAY,SAAS,UAAU;",
6
6
  "names": []
7
7
  }
package/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Theme as e}from"./src/Theme.js";import m from"./src/theme.css.js";e.registerThemeFragment("spectrum","theme",m);
1
+ "use strict";import{Theme as e}from"./src/Theme.js";import m from"./src/theme.css.js";e.registerThemeFragment("spectrum","theme",m);
2
2
  //# sourceMappingURL=core.js.map
package/core.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["core.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { Theme } from './src/Theme.js';\n\nimport coreStyles from './src/theme.css.js';\n\nTheme.registerThemeFragment('spectrum', 'theme', coreStyles);\n"],
5
- "mappings": "AAYA,uCAEA,kCAEA,EAAM,sBAAsB,WAAY,QAAS,CAAU",
6
- "names": []
5
+ "mappings": "aAYA,OAAS,SAAAA,MAAa,iBAEtB,OAAOC,MAAgB,qBAEvBD,EAAM,sBAAsB,WAAY,QAASC,CAAU",
6
+ "names": ["Theme", "coreStyles"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import largeStyles from "../src/express/scale-large.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-large.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from '../src/express/scale-large.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('large-express', 'scale', largeStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
5
+ "mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import e from"../src/express/scale-large.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("large-express","scale",e);
1
+ "use strict";import e from"../src/express/scale-large.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("large-express","scale",e);
2
2
  //# sourceMappingURL=scale-large.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-large.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from '../src/express/scale-large.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('large-express', 'scale', largeStyles);\n"],
5
- "mappings": "AAYA,iDACA,wCACA,+BAEA,EAAM,sBAAsB,gBAAiB,QAAS,CAAW",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAiB,oCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,gBAAiB,QAASD,CAAW",
6
+ "names": ["largeStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import mediumStyles from "../src/express/scale-medium.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-medium.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from '../src/express/scale-medium.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('medium-express', 'scale', mediumStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,kBAAkB,SAAS,YAAY;",
5
+ "mappings": ";AAYA,OAAO,kBAAkB;AACzB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,kBAAkB,SAAS,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import e from"../src/express/scale-medium.css.js";import{Theme as m}from"../src/Theme.js";import"../src/express/core.js";m.registerThemeFragment("medium-express","scale",e);
1
+ "use strict";import e from"../src/express/scale-medium.css.js";import{Theme as m}from"../src/Theme.js";import"../src/express/core.js";m.registerThemeFragment("medium-express","scale",e);
2
2
  //# sourceMappingURL=scale-medium.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-medium.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from '../src/express/scale-medium.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('medium-express', 'scale', mediumStyles);\n"],
5
- "mappings": "AAYA,kDACA,wCACA,+BAEA,EAAM,sBAAsB,iBAAkB,QAAS,CAAY",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAkB,qCACzB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,iBAAkB,QAASD,CAAY",
6
+ "names": ["mediumStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import darkStyles from "../src/express/theme-dark.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-dark.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('dark-express', 'color', darkStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,gBAAgB,SAAS,UAAU;",
5
+ "mappings": ";AAYA,OAAO,gBAAgB;AACvB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,gBAAgB,SAAS,UAAU;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import r from"../src/express/theme-dark.css.js";import{Theme as e}from"../src/Theme.js";import"../src/express/core.js";e.registerThemeFragment("dark-express","color",r);
1
+ "use strict";import r from"../src/express/theme-dark.css.js";import{Theme as e}from"../src/Theme.js";import"../src/express/core.js";e.registerThemeFragment("dark-express","color",r);
2
2
  //# sourceMappingURL=theme-dark.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-dark.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('dark-express', 'color', darkStyles);\n"],
5
- "mappings": "AAYA,gDACA,wCACA,+BAEA,EAAM,sBAAsB,eAAgB,QAAS,CAAU",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAgB,mCACvB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,eAAgB,QAASD,CAAU",
6
+ "names": ["darkStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import darkStyles from "../src/express/theme-dark.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-darkest.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('darkest-express', 'color', darkStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,mBAAmB,SAAS,UAAU;",
5
+ "mappings": ";AAYA,OAAO,gBAAgB;AACvB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,mBAAmB,SAAS,UAAU;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import r from"../src/express/theme-dark.css.js";import{Theme as e}from"../src/Theme.js";import"../src/express/core.js";e.registerThemeFragment("darkest-express","color",r);
1
+ "use strict";import r from"../src/express/theme-dark.css.js";import{Theme as e}from"../src/Theme.js";import"../src/express/core.js";e.registerThemeFragment("darkest-express","color",r);
2
2
  //# sourceMappingURL=theme-darkest.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-darkest.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport darkStyles from '../src/express/theme-dark.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('darkest-express', 'color', darkStyles);\n"],
5
- "mappings": "AAYA,gDACA,wCACA,+BAEA,EAAM,sBAAsB,kBAAmB,QAAS,CAAU",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAgB,mCACvB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,kBAAmB,QAASD,CAAU",
6
+ "names": ["darkStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import lightStyles from "../src/express/theme-light.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-light.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('light-express', 'color', lightStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
5
+ "mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,iBAAiB,SAAS,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import e from"../src/express/theme-light.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("light-express","color",e);
1
+ "use strict";import e from"../src/express/theme-light.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("light-express","color",e);
2
2
  //# sourceMappingURL=theme-light.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-light.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('light-express', 'color', lightStyles);\n"],
5
- "mappings": "AAYA,iDACA,wCACA,+BAEA,EAAM,sBAAsB,gBAAiB,QAAS,CAAW",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAiB,oCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,gBAAiB,QAASD,CAAW",
6
+ "names": ["lightStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import lightStyles from "../src/express/theme-light.css.js";
2
3
  import { Theme } from "../src/Theme.dev.js";
3
4
  import "../src/express/core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-lightest.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.dev.js'\nimport '../src/express/core.dev.js'\n\nTheme.registerThemeFragment('lightest-express', 'color', lightStyles);\n"],
5
- "mappings": "AAYA;AACA;AACA;AAEA,MAAM,sBAAsB,oBAAoB,SAAS,WAAW;",
5
+ "mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,oBAAoB,SAAS,WAAW;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- import e from"../src/express/theme-light.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("lightest-express","color",e);
1
+ "use strict";import e from"../src/express/theme-light.css.js";import{Theme as r}from"../src/Theme.js";import"../src/express/core.js";r.registerThemeFragment("lightest-express","color",e);
2
2
  //# sourceMappingURL=theme-lightest.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["theme-lightest.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport lightStyles from '../src/express/theme-light.css.js';\nimport { Theme } from '../src/Theme.js';\nimport '../src/express/core.js';\n\nTheme.registerThemeFragment('lightest-express', 'color', lightStyles);\n"],
5
- "mappings": "AAYA,iDACA,wCACA,+BAEA,EAAM,sBAAsB,mBAAoB,QAAS,CAAW",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAiB,oCACxB,OAAS,SAAAC,MAAa,kBACtB,MAAO,yBAEPA,EAAM,sBAAsB,mBAAoB,QAASD,CAAW",
6
+ "names": ["lightStyles", "Theme"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/theme",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -134,7 +134,7 @@
134
134
  ],
135
135
  "dependencies": {
136
136
  "@spectrum-web-components/base": "^0.7.0",
137
- "@spectrum-web-components/styles": "^0.16.0",
137
+ "@spectrum-web-components/styles": "^0.17.0",
138
138
  "tslib": "^2.0.0"
139
139
  },
140
140
  "types": "./src/index.d.ts",
@@ -151,5 +151,5 @@
151
151
  "./src/express/core.js",
152
152
  "./src/express/themes.js"
153
153
  ],
154
- "gitHead": "05c81318844160db3f8156144106e643507fef97"
154
+ "gitHead": "1cfea66c39440232b9982509573801b8e3a9f692"
155
155
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import largeStyles from "./src/scale-large.css.js";
2
3
  import { Theme } from "./src/Theme.dev.js";
3
4
  import "./core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-large.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from './src/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;AACA;AACA;AAEA,MAAM,sBAAsB,SAAS,SAAS,WAAW;",
5
+ "mappings": ";AAYA,OAAO,iBAAiB;AACxB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,SAAS,SAAS,WAAW;",
6
6
  "names": []
7
7
  }
package/scale-large.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"./src/scale-large.css.js";import{Theme as r}from"./src/Theme.js";import"./core.js";r.registerThemeFragment("large","scale",e);
1
+ "use strict";import e from"./src/scale-large.css.js";import{Theme as r}from"./src/Theme.js";import"./core.js";r.registerThemeFragment("large","scale",e);
2
2
  //# sourceMappingURL=scale-large.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-large.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport largeStyles from './src/scale-large.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core.js';\n\nTheme.registerThemeFragment('large', 'scale', largeStyles);\n"],
5
- "mappings": "AAYA,wCACA,uCACA,kBAEA,EAAM,sBAAsB,QAAS,QAAS,CAAW",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAiB,2BACxB,OAAS,SAAAC,MAAa,iBACtB,MAAO,YAEPA,EAAM,sBAAsB,QAAS,QAASD,CAAW",
6
+ "names": ["largeStyles", "Theme"]
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import mediumStyles from "./src/scale-medium.css.js";
2
3
  import { Theme } from "./src/Theme.dev.js";
3
4
  import "./core.dev.js";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-medium.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from './src/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;AACA;AACA;AAEA,MAAM,sBAAsB,UAAU,SAAS,YAAY;",
5
+ "mappings": ";AAYA,OAAO,kBAAkB;AACzB,SAAS,aAAa;AACtB,OAAO;AAEP,MAAM,sBAAsB,UAAU,SAAS,YAAY;",
6
6
  "names": []
7
7
  }
package/scale-medium.js CHANGED
@@ -1,2 +1,2 @@
1
- import m from"./src/scale-medium.css.js";import{Theme as e}from"./src/Theme.js";import"./core.js";e.registerThemeFragment("medium","scale",m);
1
+ "use strict";import m from"./src/scale-medium.css.js";import{Theme as e}from"./src/Theme.js";import"./core.js";e.registerThemeFragment("medium","scale",m);
2
2
  //# sourceMappingURL=scale-medium.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["scale-medium.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport mediumStyles from './src/scale-medium.css.js';\nimport { Theme } from './src/Theme.js';\nimport './core.js';\n\nTheme.registerThemeFragment('medium', 'scale', mediumStyles);\n"],
5
- "mappings": "AAYA,yCACA,uCACA,kBAEA,EAAM,sBAAsB,SAAU,QAAS,CAAY",
6
- "names": []
5
+ "mappings": "aAYA,OAAOA,MAAkB,4BACzB,OAAS,SAAAC,MAAa,iBACtB,MAAO,YAEPA,EAAM,sBAAsB,SAAU,QAASD,CAAY",
6
+ "names": ["mediumStyles", "Theme"]
7
7
  }
package/sp-theme.dev.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import { Theme } from "./src/Theme.dev.js";
2
3
  customElements.define("sp-theme", Theme);
3
4
  //# sourceMappingURL=sp-theme.dev.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-theme.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Theme } from './src/Theme.dev.js'\n\ncustomElements.define('sp-theme', Theme);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-theme': Theme;\n }\n}\n"],
5
- "mappings": "AAWA;AAEA,eAAe,OAAO,YAAY,KAAK;",
5
+ "mappings": ";AAWA,SAAS,aAAa;AAEtB,eAAe,OAAO,YAAY,KAAK;",
6
6
  "names": []
7
7
  }
package/sp-theme.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Theme as e}from"./src/Theme.js";customElements.define("sp-theme",e);
1
+ "use strict";import{Theme as e}from"./src/Theme.js";customElements.define("sp-theme",e);
2
2
  //# sourceMappingURL=sp-theme.js.map
package/sp-theme.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["sp-theme.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Theme } from './src/Theme.js';\n\ncustomElements.define('sp-theme', Theme);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-theme': Theme;\n }\n}\n"],
5
- "mappings": "AAWA,uCAEA,eAAe,OAAO,WAAY,CAAK",
6
- "names": []
5
+ "mappings": "aAWA,OAAS,SAAAA,MAAa,iBAEtB,eAAe,OAAO,WAAYA,CAAK",
6
+ "names": ["Theme"]
7
7
  }
package/src/Theme.dev.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import {
2
3
  supportsAdoptingStyleSheets
3
4
  } from "@spectrum-web-components/base";
@@ -27,8 +28,14 @@ const _Theme = class extends HTMLElement {
27
28
  const node = document.importNode(_Theme.template.content, true);
28
29
  this.shadowRoot.appendChild(node);
29
30
  this.shouldAdoptStyles();
30
- this.addEventListener("sp-query-theme", this.onQueryTheme);
31
- this.addEventListener("sp-language-context", this._handleContextPresence);
31
+ this.addEventListener(
32
+ "sp-query-theme",
33
+ this.onQueryTheme
34
+ );
35
+ this.addEventListener(
36
+ "sp-language-context",
37
+ this._handleContextPresence
38
+ );
32
39
  this.updateComplete = this.__createDeferredPromise();
33
40
  }
34
41
  static get observedAttributes() {
@@ -141,7 +148,9 @@ const _Theme = class extends HTMLElement {
141
148
  return;
142
149
  };
143
150
  const styles = themeKinds.reduce((acc, kind) => {
144
- const kindFragments = _Theme.themeFragmentsByKind.get(kind);
151
+ const kindFragments = _Theme.themeFragmentsByKind.get(
152
+ kind
153
+ );
145
154
  let style;
146
155
  if (kind === "app" || kind === "core") {
147
156
  style = getStyle(kindFragments, kind);
@@ -160,20 +169,31 @@ const _Theme = class extends HTMLElement {
160
169
  var _a;
161
170
  const themeModifier = this.theme && this.theme !== "spectrum" ? `-${this.theme}` : "";
162
171
  if (!resolvedValue) {
163
- issues.push(`You have not explicitly set the "${name}" attribute and there is no default value on which to fallback.`);
172
+ issues.push(
173
+ `You have not explicitly set the "${name}" attribute and there is no default value on which to fallback.`
174
+ );
164
175
  } else if (!actualValue) {
165
- issues.push(`You have not explicitly set the "${name}" attribute, the default value ("${resolvedValue}") is being used as a fallback.`);
176
+ issues.push(
177
+ `You have not explicitly set the "${name}" attribute, the default value ("${resolvedValue}") is being used as a fallback.`
178
+ );
166
179
  } else if (!((_a = _Theme.themeFragmentsByKind.get(name)) == null ? void 0 : _a.get(resolvedValue + themeModifier))) {
167
- issues.push(`You have set "${name}='${resolvedValue}'" but the associated theme fragment has not been loaded.`);
180
+ issues.push(
181
+ `You have set "${name}='${resolvedValue}'" but the associated theme fragment has not been loaded.`
182
+ );
168
183
  }
169
184
  };
170
185
  checkForAttribute("theme", this.theme, this._theme);
171
186
  checkForAttribute("color", this.color, this._color);
172
187
  checkForAttribute("scale", this.scale, this._scale);
173
188
  if (issues.length) {
174
- window.__swc.warn(this, "You are leveraging an <sp-theme> element and the following issues may disrupt your theme delivery:", "https://opensource.adobe.com/spectrum-web-components/components/theme/#example", {
175
- issues
176
- });
189
+ window.__swc.warn(
190
+ this,
191
+ "You are leveraging an <sp-theme> element and the following issues may disrupt your theme delivery:",
192
+ "https://opensource.adobe.com/spectrum-web-components/components/theme/#example",
193
+ {
194
+ issues
195
+ }
196
+ );
177
197
  }
178
198
  }
179
199
  return [...styles];
@@ -243,17 +263,25 @@ const _Theme = class extends HTMLElement {
243
263
  continue;
244
264
  let cssText = styles2.cssText;
245
265
  if (!_Theme.defaultFragments.has(name)) {
246
- cssText = cssText.replace(":host", `:host([${kind}='${name}'])`);
266
+ cssText = cssText.replace(
267
+ ":host",
268
+ `:host([${kind}='${name}'])`
269
+ );
247
270
  }
248
271
  fragmentCSS.push(cssText);
249
272
  }
250
273
  }
251
- window.ShadyCSS.ScopingShim.prepareAdoptedCssText(fragmentCSS, this.localName);
274
+ window.ShadyCSS.ScopingShim.prepareAdoptedCssText(
275
+ fragmentCSS,
276
+ this.localName
277
+ );
252
278
  window.ShadyCSS.prepareTemplate(_Theme.template, this.localName);
253
279
  } else if (supportsAdoptingStyleSheets) {
254
280
  const styleSheets = [];
255
281
  for (const style of styles) {
256
- styleSheets.push(style.styleSheet);
282
+ styleSheets.push(
283
+ style.styleSheet
284
+ );
257
285
  }
258
286
  this.shadowRoot.adoptedStyleSheets = styleSheets;
259
287
  } else {
@@ -287,7 +315,9 @@ const _Theme = class extends HTMLElement {
287
315
  this._contextConsumers.set(target, event.detail.callback);
288
316
  const callback = this._contextConsumers.get(target);
289
317
  if (callback) {
290
- callback(this.lang || document.documentElement.lang || navigator.language);
318
+ callback(
319
+ this.lang || document.documentElement.lang || navigator.language
320
+ );
291
321
  }
292
322
  }
293
323
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["Theme.ts"],
4
4
  "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResult,\n CSSResultGroup,\n supportsAdoptingStyleSheets,\n} from '@spectrum-web-components/base';\n\ndeclare global {\n interface Window {\n ShadyCSS: {\n nativeShadow: boolean;\n prepareTemplate(\n template: HTMLTemplateElement,\n elementName: string,\n typeExtension?: string\n ): void;\n styleElement(host: HTMLElement): void;\n ScopingShim: {\n prepareAdoptedCssText(\n cssTextArray: string[],\n elementName: string\n ): void;\n };\n };\n }\n}\n\ntype ShadowRootWithAdoptedStyleSheets = HTMLElement['shadowRoot'] & {\n adoptedStyleSheets?: CSSStyleSheet[];\n};\n\ntype FragmentType = 'color' | 'scale' | 'theme' | 'core' | 'app';\ntype SettableFragmentTypes = 'color' | 'scale' | 'theme';\ntype FragmentMap = Map<string, { name: string; styles: CSSResultGroup }>;\nexport type ThemeFragmentMap = Map<FragmentType, FragmentMap>;\nexport type Color =\n | 'light'\n | 'lightest'\n | 'dark'\n | 'darkest'\n | 'light-express'\n | 'lightest-express'\n | 'dark-express'\n | 'darkest-express';\nexport type Scale = 'medium' | 'large' | 'medium-express' | 'large-express';\nexport type ThemeVariant = 'spectrum' | 'express';\nconst ThemeVariantValues = ['spectrum', 'express'];\nconst ScaleValues = ['medium', 'large', 'medium-express', 'large-express'];\nconst ColorValues = [\n 'light',\n 'lightest',\n 'dark',\n 'darkest',\n 'light-express',\n 'lightest-express',\n 'dark-express',\n 'darkest-express',\n];\ntype FragmentName = Color | Scale | ThemeVariant | 'core' | 'app';\n\nexport interface ThemeData {\n color?: Color;\n scale?: Scale;\n lang?: string;\n theme?: ThemeVariant;\n}\n\ntype ThemeKindProvider = {\n [P in SettableFragmentTypes]: ThemeVariant | Color | Scale | '';\n};\n\nexport interface ProvideLang {\n callback: (lang: string) => void;\n}\n\n/**\n * @element sp-theme\n * @attr {string} [lang=\"\"] - 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>.\n *\n * @slot - Content on which to apply the CSS Custom Properties defined by the current theme configuration\n */\nexport class Theme extends HTMLElement implements ThemeKindProvider {\n private static themeFragmentsByKind: ThemeFragmentMap = new Map();\n private static defaultFragments: Set<FragmentName> = new Set(['spectrum']);\n private static templateElement?: HTMLTemplateElement;\n private static instances: Set<Theme> = new Set();\n\n static get observedAttributes(): string[] {\n return ['color', 'scale', 'theme', 'lang', 'dir'];\n }\n\n _dir: 'ltr' | 'rtl' | '' = '';\n\n override set dir(dir: 'ltr' | 'rtl' | '') {\n if (dir === this.dir) return;\n this.setAttribute('dir', dir);\n this._dir = dir;\n const targetDir = dir === 'rtl' ? dir : 'ltr';\n this.trackedChildren.forEach((el) => {\n el.setAttribute('dir', targetDir);\n });\n }\n\n /**\n * Reading direction of the content scoped to this `sp-theme` element.\n * @type {\"ltr\" | \"rtl\" | \"\"}\n * @attr\n */\n override get dir(): 'ltr' | 'rtl' | '' {\n return this._dir;\n }\n\n protected attributeChangedCallback(\n attrName: SettableFragmentTypes | 'lang' | 'dir',\n old: string | null,\n value: string | null\n ): void {\n if (old === value) {\n return;\n }\n if (attrName === 'color') {\n this.color = value as Color;\n } else if (attrName === 'scale') {\n this.scale = value as Scale;\n } else if (attrName === 'lang' && !!value) {\n this.lang = value;\n this._provideContext();\n } else if (attrName === 'theme') {\n this.theme = value as ThemeVariant;\n } else if (attrName === 'dir') {\n this.dir = value as 'ltr' | 'rtl' | '';\n }\n }\n\n private requestUpdate(): void {\n if (window.ShadyCSS !== undefined && !window.ShadyCSS.nativeShadow) {\n window.ShadyCSS.styleElement(this);\n } else {\n this.shouldAdoptStyles();\n }\n }\n\n public override shadowRoot!: ShadowRootWithAdoptedStyleSheets;\n\n private _theme: ThemeVariant | '' = 'spectrum';\n\n /**\n * The Spectrum theme that is applied to the content scoped to this `sp-theme` element.\n *\n * A value is requried.\n * @type {\"spectrum\" | \"express\" | \"\"}\n * @attr\n */\n get theme(): ThemeVariant | '' {\n const themeFragments = Theme.themeFragmentsByKind.get('theme');\n const { name } =\n (themeFragments && themeFragments.get('default')) || {};\n return this._theme || (name as ThemeVariant) || '';\n }\n\n set theme(newValue: ThemeVariant | '') {\n if (newValue === this._theme) return;\n const theme =\n !!newValue && ThemeVariantValues.includes(newValue)\n ? newValue\n : this.theme;\n if (theme !== this._theme) {\n this._theme = theme;\n this.requestUpdate();\n }\n if (theme) {\n this.setAttribute('theme', theme);\n } else {\n this.removeAttribute('theme');\n }\n }\n\n private _color: Color | '' = '';\n\n /**\n * The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n *\n * A value is requried.\n * @type {\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\"}\n * @attr\n */\n get color(): Color | '' {\n const themeFragments = Theme.themeFragmentsByKind.get('color');\n const { name } =\n (themeFragments && themeFragments.get('default')) || {};\n return this._color || (name as Color) || '';\n }\n\n set color(newValue: Color | '') {\n if (newValue === this._color) return;\n const color =\n !!newValue && ColorValues.includes(newValue)\n ? newValue\n : this.color;\n if (color !== this._color) {\n this._color = color;\n this.requestUpdate();\n }\n if (color) {\n this.setAttribute('color', color);\n } else {\n this.removeAttribute('color');\n }\n }\n\n private _scale: Scale | '' = '';\n\n /**\n * The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n *\n * A value is requried.\n * @type {\"medium\" | \"large\" | \"\"}\n * @attr\n */\n get scale(): Scale | '' {\n const themeFragments = Theme.themeFragmentsByKind.get('scale');\n const { name } =\n (themeFragments && themeFragments.get('default')) || {};\n return this._scale || (name as Scale) || '';\n }\n\n set scale(newValue: Scale | '') {\n if (newValue === this._scale) return;\n const scale =\n !!newValue && ScaleValues.includes(newValue)\n ? newValue\n : this.scale;\n if (scale !== this._scale) {\n this._scale = scale;\n this.requestUpdate();\n }\n if (scale) {\n this.setAttribute('scale', scale);\n } else {\n this.removeAttribute('scale');\n }\n }\n\n private get styles(): CSSResultGroup[] {\n const themeKinds: FragmentType[] = [\n ...Theme.themeFragmentsByKind.keys(),\n ];\n const getStyle = (\n fragments: FragmentMap,\n name: FragmentName,\n kind?: FragmentType\n ): CSSResultGroup | undefined => {\n const currentStyles =\n kind && kind !== 'theme' && this.theme === 'express'\n ? fragments.get(`${name}-express`)\n : fragments.get(name);\n // theme=\"spectrum\" is available by default and doesn't need to be applied.\n const isAppliedFragment =\n name === 'spectrum' || !kind || this.hasAttribute(kind);\n if (currentStyles && isAppliedFragment) {\n return currentStyles.styles;\n }\n return;\n };\n const styles = themeKinds.reduce((acc, kind) => {\n const kindFragments = Theme.themeFragmentsByKind.get(\n kind\n ) as FragmentMap;\n let style: CSSResultGroup | undefined;\n if (kind === 'app' || kind === 'core') {\n style = getStyle(kindFragments, kind);\n } else {\n const { [kind]: name } = this;\n style = getStyle(kindFragments, <FragmentName>name, kind);\n }\n if (style) {\n acc.push(style);\n }\n return acc;\n }, [] as CSSResultGroup[]);\n if (window.__swc.DEBUG) {\n const issues: string[] = [];\n const checkForAttribute = (\n name: FragmentType,\n resolvedValue?: string,\n actualValue?: string\n ): void => {\n const themeModifier =\n this.theme && this.theme !== 'spectrum'\n ? `-${this.theme}`\n : '';\n if (!resolvedValue) {\n issues.push(\n `You have not explicitly set the \"${name}\" attribute and there is no default value on which to fallback.`\n );\n } else if (!actualValue) {\n issues.push(\n `You have not explicitly set the \"${name}\" attribute, the default value (\"${resolvedValue}\") is being used as a fallback.`\n );\n } else if (\n !Theme.themeFragmentsByKind\n .get(name)\n ?.get(resolvedValue + themeModifier)\n ) {\n issues.push(\n `You have set \"${name}='${resolvedValue}'\" but the associated theme fragment has not been loaded.`\n );\n }\n };\n checkForAttribute('theme', this.theme, this._theme);\n checkForAttribute('color', this.color, this._color);\n checkForAttribute('scale', this.scale, this._scale);\n if (issues.length) {\n window.__swc.warn(\n this,\n 'You are leveraging an <sp-theme> element and the following issues may disrupt your theme delivery:',\n 'https://opensource.adobe.com/spectrum-web-components/components/theme/#example',\n {\n issues\n },\n );\n }\n }\n return [...styles];\n }\n\n private static get template(): HTMLTemplateElement {\n if (!this.templateElement) {\n this.templateElement = document.createElement('template');\n this.templateElement.innerHTML = '<slot></slot>';\n }\n return this.templateElement;\n }\n\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n const node = document.importNode(Theme.template.content, true);\n this.shadowRoot.appendChild(node);\n this.shouldAdoptStyles();\n this.addEventListener(\n 'sp-query-theme',\n this.onQueryTheme as EventListener\n );\n this.addEventListener(\n 'sp-language-context',\n this._handleContextPresence as EventListener\n );\n this.updateComplete = this.__createDeferredPromise();\n }\n\n public updateComplete!: Promise<boolean>;\n private __resolve!: (compelted: boolean) => void;\n\n private __createDeferredPromise(): Promise<boolean> {\n return new Promise((resolve) => {\n this.__resolve = resolve;\n });\n }\n\n private onQueryTheme(event: CustomEvent<ThemeData>): void {\n if (event.defaultPrevented) {\n return;\n }\n event.preventDefault();\n const { detail: theme } = event;\n theme.color = this.color || undefined;\n theme.scale = this.scale || undefined;\n theme.lang =\n this.lang || document.documentElement.lang || navigator.language;\n theme.theme = this.theme || undefined;\n }\n\n protected connectedCallback(): void {\n this.shouldAdoptStyles();\n // Note, first update/render handles styleElement so we only call this if\n // connected after first update.\n /* c8 ignore next 3 */\n if (window.ShadyCSS !== undefined) {\n window.ShadyCSS.styleElement(this);\n }\n // Add `this` to the instances array.\n Theme.instances.add(this);\n if (!this.hasAttribute('dir')) {\n let dirParent = ((this as HTMLElement).assignedSlot ||\n this.parentNode) as HTMLElement | DocumentFragment | ShadowRoot;\n while (\n dirParent !== document.documentElement &&\n !(dirParent instanceof Theme)\n ) {\n dirParent = ((dirParent as HTMLElement).assignedSlot || // step into the shadow DOM of the parent of a slotted node\n dirParent.parentNode || // DOM Element detected\n (dirParent as ShadowRoot).host) as\n | HTMLElement\n | DocumentFragment\n | ShadowRoot;\n }\n this.dir = dirParent.dir === 'rtl' ? dirParent.dir : 'ltr';\n }\n }\n\n protected disconnectedCallback(): void {\n // Remove `this` to the instances array.\n Theme.instances.delete(this);\n }\n\n public startManagingContentDirection(el: HTMLElement): void {\n this.trackedChildren.add(el);\n }\n\n public stopManagingContentDirection(el: HTMLElement): void {\n this.trackedChildren.delete(el);\n }\n\n private trackedChildren: Set<HTMLElement> = new Set();\n\n private _updateRequested = false;\n\n private async shouldAdoptStyles(): Promise<void> {\n if (!this._updateRequested) {\n this.updateComplete = this.__createDeferredPromise();\n this._updateRequested = true;\n this._updateRequested = await false;\n this.adoptStyles();\n this.__resolve(true);\n }\n }\n\n protected adoptStyles(): void {\n const styles = this.styles; // No test coverage on Edge\n\n // There are three separate cases here based on Shadow DOM support.\n // (1) shadowRoot polyfilled: use ShadyCSS\n // (2) shadowRoot.adoptedStyleSheets available: use it.\n // (3) shadowRoot.adoptedStyleSheets polyfilled: append styles after\n // rendering\n /* c8 ignore next */ if (\n window.ShadyCSS !== undefined &&\n !window.ShadyCSS.nativeShadow &&\n window.ShadyCSS.ScopingShim\n ) {\n // For browsers using the shim, there seems to be one set of\n // processed styles per template, so it is hard to nest styles. So,\n // for those, we load in all style fragments and then switch using a\n // host selector (e.g. :host([color='dark']))\n const fragmentCSS: string[] = [];\n for (const [kind, fragments] of Theme.themeFragmentsByKind) {\n for (const [name, { styles }] of fragments) {\n if (name === 'default') continue;\n let cssText = (styles as CSSResult).cssText;\n if (!Theme.defaultFragments.has(name as FragmentName)) {\n cssText = cssText.replace(\n ':host',\n `:host([${kind}='${name}'])`\n );\n }\n fragmentCSS.push(cssText);\n }\n }\n window.ShadyCSS.ScopingShim.prepareAdoptedCssText(\n fragmentCSS,\n this.localName\n );\n window.ShadyCSS.prepareTemplate(Theme.template, this.localName);\n } else if (supportsAdoptingStyleSheets) {\n const styleSheets: CSSStyleSheet[] = [];\n for (const style of styles) {\n styleSheets.push(\n (style as CSSResult).styleSheet as CSSStyleSheet\n );\n }\n this.shadowRoot.adoptedStyleSheets = styleSheets;\n } else {\n const styleNodes = this.shadowRoot.querySelectorAll('style');\n styleNodes.forEach((element) => element.remove());\n styles.forEach((s) => {\n const style = document.createElement('style');\n style.textContent = (s as CSSResult).cssText;\n this.shadowRoot.appendChild(style);\n });\n }\n }\n\n static registerThemeFragment(\n name: FragmentName,\n kind: FragmentType,\n styles: CSSResultGroup\n ): void {\n const fragmentMap = Theme.themeFragmentsByKind.get(kind) || new Map();\n if (fragmentMap.size === 0) {\n Theme.themeFragmentsByKind.set(kind, fragmentMap);\n // we're adding our first fragment for this kind, set as default\n fragmentMap.set('default', { name, styles });\n Theme.defaultFragments.add(name);\n }\n fragmentMap.set(name, { name, styles });\n Theme.instances.forEach((instance) => instance.shouldAdoptStyles());\n }\n\n private _contextConsumers = new Map<HTMLElement, ProvideLang['callback']>();\n\n private _provideContext(): void {\n this._contextConsumers.forEach((consume) => consume(this.lang));\n }\n\n private _handleContextPresence(event: CustomEvent<ProvideLang>): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (this._contextConsumers.has(target)) {\n this._contextConsumers.delete(target);\n } else {\n this._contextConsumers.set(target, event.detail.callback);\n const callback = this._contextConsumers.get(target);\n if (callback) {\n callback(\n this.lang ||\n document.documentElement.lang ||\n navigator.language\n );\n }\n }\n }\n}\n"],
5
- "mappings": "AAYA;AAAA;AAAA;AA6CA,MAAM,qBAAqB,CAAC,YAAY,SAAS;AACjD,MAAM,cAAc,CAAC,UAAU,SAAS,kBAAkB,eAAe;AACzE,MAAM,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAwBO,6BAAoB,YAAyC;AAAA,EA6PhE,cAAc;AACV,UAAM;AApPV,gBAA2B;AAqDnB,kBAA4B;AAiC5B,kBAAqB;AAiCrB,kBAAqB;AA4MrB,2BAAoC,oBAAI,IAAI;AAE5C,4BAAmB;AAmFnB,6BAAoB,oBAAI,IAA0C;AAnKtE,SAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAClC,UAAM,OAAO,SAAS,WAAW,OAAM,SAAS,SAAS,IAAI;AAC7D,SAAK,WAAW,YAAY,IAAI;AAChC,SAAK,kBAAkB;AACvB,SAAK,iBACD,kBACA,KAAK,YACT;AACA,SAAK,iBACD,uBACA,KAAK,sBACT;AACA,SAAK,iBAAiB,KAAK,wBAAwB;AAAA,EACvD;AAAA,aAtQW,qBAA+B;AACtC,WAAO,CAAC,SAAS,SAAS,SAAS,QAAQ,KAAK;AAAA,EACpD;AAAA,MAIa,IAAI,KAAyB;AACtC,QAAI,QAAQ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