@usecapsule/core-components 3.2.0-dev.1 → 3.3.0-dev.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. package/css/capsule-core.css +25 -10
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/{p-a6aaf3f4.entry.js → p-0e558c7f.entry.js} +3 -3
  8. package/dist/capsule/p-0e558c7f.entry.js.map +1 -0
  9. package/dist/capsule/{p-452b9998.entry.js → p-1bd11889.entry.js} +2 -2
  10. package/dist/capsule/p-1bd11889.entry.js.map +1 -0
  11. package/dist/capsule/p-32cdf894.entry.js +2 -0
  12. package/dist/capsule/p-32cdf894.entry.js.map +1 -0
  13. package/dist/capsule/p-3b042fd1.entry.js +2 -0
  14. package/dist/capsule/{p-6793ef7a.entry.js.map → p-3b042fd1.entry.js.map} +1 -1
  15. package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
  16. package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
  17. package/dist/capsule/p-5965b15e.entry.js +2 -0
  18. package/dist/capsule/{p-f6c74d69.entry.js.map → p-5965b15e.entry.js.map} +1 -1
  19. package/dist/capsule/{p-447d49b9.entry.js → p-5d62e610.entry.js} +2 -2
  20. package/dist/capsule/{p-447d49b9.entry.js.map → p-5d62e610.entry.js.map} +1 -1
  21. package/dist/capsule/p-60508b1e.entry.js +20 -0
  22. package/dist/capsule/p-60508b1e.entry.js.map +1 -0
  23. package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
  24. package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
  25. package/dist/capsule/p-e1255160.js.map +1 -1
  26. package/dist/capsule/p-f2393be6.js.map +1 -1
  27. package/dist/capsule/p-fa6b7678.js +3 -0
  28. package/dist/capsule/p-fa6b7678.js.map +1 -0
  29. package/dist/cjs/capsule.cjs.js +10 -10
  30. package/dist/cjs/capsule.cjs.js.map +1 -1
  31. package/dist/cjs/cpsl-alert_34.cjs.entry.js +17036 -13428
  32. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
  33. package/dist/cjs/cpsl-animation.cjs.entry.js +8 -4
  34. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  35. package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
  36. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
  37. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  38. package/dist/cjs/cpsl-hero.cjs.entry.js +38 -0
  39. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
  40. package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
  41. package/dist/cjs/cpsl-info-box.cjs.entry.js +3 -3
  42. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  43. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
  44. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  45. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  46. package/dist/cjs/index-65f57499.js +1439 -0
  47. package/dist/cjs/index-65f57499.js.map +1 -0
  48. package/dist/cjs/index.cjs.js +47 -16
  49. package/dist/cjs/index.cjs.js.map +1 -1
  50. package/dist/cjs/loader.cjs.js +2 -2
  51. package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
  52. package/dist/collection/assets/icons/bank.svg +3 -0
  53. package/dist/collection/assets/icons/credit-card.svg +3 -0
  54. package/dist/collection/assets/icons/dot.svg +3 -0
  55. package/dist/collection/assets/icons/download.svg +3 -0
  56. package/dist/collection/assets/icons/globe.svg +3 -0
  57. package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
  58. package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
  59. package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
  60. package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
  61. package/dist/collection/assets/icons/index.js +21 -3
  62. package/dist/collection/assets/icons/index.js.map +1 -1
  63. package/dist/collection/assets/icons/link-external.svg +3 -0
  64. package/dist/collection/assets/icons/log-out.svg +3 -0
  65. package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
  66. package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
  67. package/dist/collection/assets/icons/qr-code-02.svg +3 -0
  68. package/dist/collection/assets/icons/qr-code.svg +3 -0
  69. package/dist/collection/assets/icons/refresh.svg +3 -3
  70. package/dist/collection/assets/icons/search.svg +3 -0
  71. package/dist/collection/assets/icons/send.svg +3 -0
  72. package/dist/collection/assets/icons/shield.svg +3 -0
  73. package/dist/collection/assets/icons/stripe-brand.svg +3 -0
  74. package/dist/collection/collection-manifest.json +4 -3
  75. package/dist/collection/components/cpsl-alert/cpsl-alert.js +3 -3
  76. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  77. package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
  78. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
  79. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
  80. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  81. package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
  82. package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +13 -131
  83. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
  84. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  85. package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
  86. package/dist/collection/components/cpsl-button/cpsl-button.js +9 -5
  87. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  88. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +2 -2
  89. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -1
  90. package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
  91. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  92. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  93. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
  94. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +13 -7
  95. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  96. package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
  97. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
  98. package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
  99. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  100. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
  101. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  102. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  103. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  104. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
  105. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +5 -5
  106. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  107. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  108. package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
  109. package/dist/collection/components/cpsl-hero/cpsl-hero.js +64 -9
  110. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  111. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
  112. package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
  113. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  114. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
  115. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
  116. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
  117. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
  118. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  119. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
  120. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
  121. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  122. package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
  123. package/dist/collection/components/cpsl-input/cpsl-input.js +117 -11
  124. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  125. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
  126. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  127. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +2 -2
  128. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -1
  129. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
  130. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  131. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  132. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
  133. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  134. package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
  135. package/dist/collection/components/cpsl-popover/cpsl-popover.js +16 -6
  136. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  137. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
  138. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
  139. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  140. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  141. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  142. package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
  143. package/dist/collection/components/cpsl-select/cpsl-select.js +96 -4
  144. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  145. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  146. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  147. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
  148. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  149. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
  150. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
  151. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
  152. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  153. package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
  154. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  155. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  156. package/dist/collection/components/cpsl-table/cpsl-table.js +3 -1
  157. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  158. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
  159. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +5 -2
  160. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  161. package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
  162. package/dist/collection/components/cpsl-text/cpsl-text.js +7 -3
  163. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  164. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
  165. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  166. package/dist/collection/interface.js.map +1 -1
  167. package/dist/collection/utils/media.js +3 -0
  168. package/dist/collection/utils/media.js.map +1 -1
  169. package/dist/collection/utils/theme/generateBorderRadii.js +4 -3
  170. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  171. package/dist/collection/utils/theme/generateFont.js +1 -1
  172. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  173. package/dist/collection/utils/theme/generatePalette.js +28 -9
  174. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  175. package/dist/collection/utils/theme/generateTheme.js +13 -3
  176. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  177. package/dist/collection/utils/theme/utils.js +1 -0
  178. package/dist/collection/utils/theme/utils.js.map +1 -1
  179. package/dist/esm/capsule.js +11 -11
  180. package/dist/esm/capsule.js.map +1 -1
  181. package/dist/esm/cpsl-alert_34.entry.js +17036 -13428
  182. package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
  183. package/dist/esm/cpsl-animation.entry.js +7 -3
  184. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  185. package/dist/esm/cpsl-col.entry.js +25 -6
  186. package/dist/esm/cpsl-col.entry.js.map +1 -1
  187. package/dist/esm/cpsl-grid.entry.js +3 -3
  188. package/dist/esm/cpsl-hero.entry.js +34 -0
  189. package/dist/esm/cpsl-hero.entry.js.map +1 -0
  190. package/dist/esm/cpsl-identicon.entry.js +2 -2
  191. package/dist/esm/cpsl-info-box.entry.js +3 -3
  192. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  193. package/dist/esm/cpsl-modal-v2.entry.js +3 -2
  194. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  195. package/dist/esm/cpsl-row.entry.js +2 -2
  196. package/dist/esm/index-91db3414.js +1408 -0
  197. package/dist/esm/index-91db3414.js.map +1 -0
  198. package/dist/esm/index.js +47 -16
  199. package/dist/esm/index.js.map +1 -1
  200. package/dist/esm/loader.js +3 -3
  201. package/dist/loader/cdn.js +1 -3
  202. package/dist/loader/index.cjs.js +1 -3
  203. package/dist/loader/index.d.ts +3 -0
  204. package/dist/loader/index.es2017.js +1 -3
  205. package/dist/loader/index.js +1 -3
  206. package/dist/scripts/buildAssets.js +1 -1
  207. package/dist/types/assets/icons/index.d.ts +20 -2
  208. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
  209. package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
  210. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
  211. package/dist/types/components/cpsl-auth-modal/cpsl-auth-modal.d.ts +58 -0
  212. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
  213. package/dist/types/components/cpsl-button/cpsl-button.d.ts +30 -1
  214. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
  215. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
  216. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
  217. package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
  218. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
  219. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
  220. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
  221. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
  222. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
  223. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +21 -1
  224. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  225. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
  226. package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
  227. package/dist/types/components/cpsl-input/cpsl-input.d.ts +148 -0
  228. package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
  229. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
  230. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
  231. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
  232. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
  233. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
  234. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +53 -0
  235. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
  236. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +11 -0
  237. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
  238. package/dist/types/components/cpsl-select/cpsl-select.d.ts +67 -1
  239. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
  240. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
  241. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
  242. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
  243. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
  244. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
  245. package/dist/types/components/cpsl-text/cpsl-text.d.ts +16 -1
  246. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  247. package/dist/types/components.d.ts +216 -118
  248. package/dist/types/interface.d.ts +13 -0
  249. package/dist/types/stencil-public-runtime.d.ts +3 -10
  250. package/dist/types/utils/theme/generatePalette.d.ts +4 -2
  251. package/dist/types/utils/theme/generateTheme.d.ts +5 -1
  252. package/package.json +6 -12
  253. package/readme.md +47 -2
  254. package/dist/capsule/p-0462f723.js +0 -2
  255. package/dist/capsule/p-0462f723.js.map +0 -1
  256. package/dist/capsule/p-303e6e89.entry.js +0 -29
  257. package/dist/capsule/p-303e6e89.entry.js.map +0 -1
  258. package/dist/capsule/p-452b9998.entry.js.map +0 -1
  259. package/dist/capsule/p-6793ef7a.entry.js +0 -2
  260. package/dist/capsule/p-7dde3172.js +0 -3
  261. package/dist/capsule/p-7dde3172.js.map +0 -1
  262. package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
  263. package/dist/capsule/p-f6c74d69.entry.js +0 -2
  264. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  265. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  266. package/dist/cjs/index-528f7428.js +0 -2107
  267. package/dist/cjs/index-528f7428.js.map +0 -1
  268. package/dist/collection/assets/icons/double-arc.svg +0 -13
  269. package/dist/collection/assets/icons/single-arc.svg +0 -11
  270. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  271. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  272. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  273. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  274. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  275. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  276. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  277. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  278. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +0 -29
  279. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
  280. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
  281. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
  282. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
  283. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
  284. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
  285. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +0 -1
  286. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  287. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  288. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  289. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  290. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +0 -29
  291. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
  292. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
  293. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
  294. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
  295. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
  296. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
  297. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
  298. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
  299. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
  300. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
  301. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +0 -1
  302. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  303. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  304. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  305. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  306. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  307. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  308. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  309. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  310. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  311. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  312. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  313. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  314. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +0 -29
  315. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
  316. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
  317. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
  318. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  319. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  320. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  321. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  322. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
  323. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
  324. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
  325. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +0 -1
  326. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  327. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  328. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  329. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  330. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +0 -29
  331. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
  332. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
  333. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +0 -1
  334. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  335. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  336. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  337. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  338. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +0 -29
  339. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
  340. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
  341. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +0 -1
  342. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  343. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  344. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  345. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  346. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  347. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  348. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  349. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  350. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  351. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  352. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  353. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  354. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  355. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
  356. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
  357. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
  358. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
  359. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
  360. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
  361. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
  362. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +0 -1
  363. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  364. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  365. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  366. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  367. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +0 -29
  368. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
  369. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
  370. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +0 -1
  371. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  372. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  373. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  374. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  375. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +0 -29
  376. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
  377. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
  378. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +0 -1
  379. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  380. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  381. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  382. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  383. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  384. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  385. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  386. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  387. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +0 -29
  388. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
  389. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
  390. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +0 -1
  391. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  392. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  393. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  394. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  395. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +0 -29
  396. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
  397. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
  398. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
  399. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
  400. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
  401. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
  402. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +0 -1
  403. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  404. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  405. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  406. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  407. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  408. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  409. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  410. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  411. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +0 -29
  412. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
  413. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
  414. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +0 -1
  415. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  416. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  417. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  418. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  419. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +0 -29
  420. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
  421. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
  422. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +0 -1
  423. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  424. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  425. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  426. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  427. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  428. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  429. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  430. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  431. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  432. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  433. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  434. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  435. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  436. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  437. package/dist/esm/index-b188f201.js +0 -2076
  438. package/dist/esm/index-b188f201.js.map +0 -1
  439. package/dist/esm/polyfills/core-js.js +0 -11
  440. package/dist/esm/polyfills/dom.js +0 -79
  441. package/dist/esm/polyfills/es5-html-element.js +0 -1
  442. package/dist/esm/polyfills/index.js +0 -34
  443. package/dist/esm/polyfills/system.js +0 -6
  444. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +0 -39
  445. /package/dist/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → norwood/capsule-repos/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"generatePalette.js","sourceRoot":"","sources":["../../../../src/utils/theme/generatePalette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQ7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAwE,EAAW,EAAE;IACpK,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,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AE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACnI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,mCAAmC,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACzI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,kCAAkC,EAAE,GAAG,CAAC,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAEvI,IAAI,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QAC3B,MAAM,YAAY,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACrG,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { mix, readableColorIsBlack } from 'color2k';\nimport { Theme } from '../../interface';\nimport { getCssColors, isColor, overlayMix } from './utils';\nimport { COLOR_MIXES, DEFAULT_THEME, UTILITY_COLORS } from '../../constants';\n\nexport type Palette = {\n foregroundColors: string[];\n backgroundColors: string[];\n isDarkBackground: boolean;\n};\n\nexport const generatePalette = ({ foregroundColor, backgroundColor, customPalette }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>): Palette => {\n if (!Boolean(foregroundColor) || !isColor(foregroundColor)) {\n foregroundColor = DEFAULT_THEME.foregroundColor;\n }\n if (!Boolean(backgroundColor) || !isColor(backgroundColor)) {\n backgroundColor = DEFAULT_THEME.backgroundColor;\n }\n\n const isDarkBackground = !readableColorIsBlack(backgroundColor);\n\n const palette: Palette = {\n foregroundColors: [],\n backgroundColors: [],\n isDarkBackground,\n };\n\n const backgroundMixColor = isDarkBackground ? '#FFFFFF' : '#000000';\n const foregroundMixColor = isDarkBackground ? '#000000' : '#FFFFFF';\n\n COLOR_MIXES.forEach(value => {\n palette.foregroundColors.push(mix(foregroundColor, foregroundMixColor, value));\n palette.backgroundColors.push(mix(backgroundColor, backgroundMixColor, value));\n });\n\n // BACKGROUND\n document.documentElement.style.setProperty('--cpsl-color-background-0', palette.backgroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-background-4', palette.backgroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-background-8', palette.backgroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-background-16', palette.backgroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-background-32', palette.backgroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-background-48', palette.backgroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-background-64', palette.backgroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-background-80', palette.backgroundColors[7]);\n document.documentElement.style.setProperty('--cpsl-color-background-96', palette.backgroundColors[8]);\n\n // FOREGROUND\n document.documentElement.style.setProperty('--cpsl-color-foreground-0', palette.foregroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-4', palette.foregroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-8', palette.foregroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-16', palette.foregroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-32', palette.foregroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-48', palette.foregroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-64', palette.foregroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-80', palette.foregroundColors[7]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-96', palette.foregroundColors[8]);\n\n const utilityLightMixColor = '#FFFFFF';\n const utilityLightMixValue = 0.72;\n // UTILITY\n const red = overlayMix(foregroundColor, UTILITY_COLORS.red);\n const yellow = overlayMix(foregroundColor, UTILITY_COLORS.yellow);\n const green = overlayMix(foregroundColor, UTILITY_COLORS.green);\n document.documentElement.style.setProperty('--cpsl-color-utility-red', red);\n document.documentElement.style.setProperty('--cpsl-color-utility-yellow', yellow);\n document.documentElement.style.setProperty('--cpsl-color-utility-green', green);\n document.documentElement.style.setProperty('--cpsl-color-utility-red-light', mix(red, utilityLightMixColor, utilityLightMixValue));\n document.documentElement.style.setProperty('--cpsl-color-utility-yellow-light', mix(yellow, utilityLightMixColor, utilityLightMixValue));\n document.documentElement.style.setProperty('--cpsl-color-utility-green-light', mix(green, utilityLightMixColor, utilityLightMixValue));\n\n if (Boolean(customPalette)) {\n const cssColorVars = getCssColors(customPalette);\n Object.entries(cssColorVars).forEach(([k, v]) => document.documentElement.style.setProperty(k, v));\n }\n\n return palette;\n};\n"]}
1
+ {"version":3,"file":"generatePalette.js","sourceRoot":"","sources":["../../../../src/utils/theme/generatePalette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQ7E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,eAAe,EACf,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,GACmG,EAAE,EAAE;IACpH,IAAI,CAAC,eAAe,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QAClD,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC;IAClD,CAAC;IACD,IAAI,CAAC,eAAe,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QAClD,eAAe,GAAG,aAAa,CAAC,eAAe,CAAC;IAClD,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,O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K,CAAC,WAAW,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;IAChF,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,gCAAgC,EAAE,GAAG,CAAC,GAAG,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACnI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,mCAAmC,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IACzI,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,kCAAkC,EAAE,GAAG,CAAC,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAEvI,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,YAAY,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACrG,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { mix, readableColorIsBlack } from 'color2k';\nimport { Theme } from '../../interface';\nimport { getCssColors, isColor, overlayMix } from './utils';\nimport { COLOR_MIXES, DEFAULT_THEME, UTILITY_COLORS } from '../../constants';\n\nexport type Palette = {\n foregroundColors: string[];\n backgroundColors: string[];\n accentColors: string[];\n};\n\nexport const generatePalette = ({\n foregroundColor,\n backgroundColor,\n accentColor,\n isDarkTheme,\n customPalette,\n}: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'accentColor' | 'customPalette'> & { isDarkTheme: boolean }) => {\n if (!foregroundColor || !isColor(foregroundColor)) {\n foregroundColor = DEFAULT_THEME.foregroundColor;\n }\n if (!backgroundColor || !isColor(backgroundColor)) {\n backgroundColor = DEFAULT_THEME.backgroundColor;\n }\n if (!Boolean(accentColor) || !isColor(accentColor)) {\n accentColor = foregroundColor;\n }\n\n const isDarkAccent = Boolean(accentColor) ? !readableColorIsBlack(accentColor) : false;\n\n const palette: Palette = {\n foregroundColors: [],\n backgroundColors: [],\n accentColors: [],\n };\n\n const backgroundMixColor = isDarkTheme ? '#FFFFFF' : '#000000';\n const foregroundMixColor = isDarkTheme ? '#000000' : '#FFFFFF';\n const accentMixColor = isDarkAccent ? '#FFFFFF' : '#000000';\n\n COLOR_MIXES.forEach(value => {\n palette.foregroundColors.push(mix(foregroundColor, foregroundMixColor, value));\n palette.backgroundColors.push(mix(backgroundColor, backgroundMixColor, value));\n palette.accentColors.push(mix(accentColor, accentMixColor, value));\n });\n\n // BACKGROUND\n document.documentElement.style.setProperty('--cpsl-color-background-0', palette.backgroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-background-4', palette.backgroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-background-8', palette.backgroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-background-16', palette.backgroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-background-32', palette.backgroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-background-48', palette.backgroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-background-64', palette.backgroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-background-80', palette.backgroundColors[7]);\n document.documentElement.style.setProperty('--cpsl-color-background-96', palette.backgroundColors[8]);\n\n // FOREGROUND\n document.documentElement.style.setProperty('--cpsl-color-foreground-0', palette.foregroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-4', palette.foregroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-8', palette.foregroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-16', palette.foregroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-32', palette.foregroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-48', palette.foregroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-64', palette.foregroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-80', palette.foregroundColors[7]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-96', palette.foregroundColors[8]);\n\n // ACCENT\n document.documentElement.style.setProperty('--cpsl-color-accent-0', palette.accentColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-accent-4', palette.accentColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-accent-8', palette.accentColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-accent-16', palette.accentColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-accent-32', palette.accentColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-accent-48', palette.accentColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-accent-64', palette.accentColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-accent-80', palette.accentColors[7]);\n document.documentElement.style.setProperty('--cpsl-color-accent-96', palette.accentColors[8]);\n\n // CONTRAST\n document.documentElement.style.setProperty('--cpsl-color-contrast', isDarkTheme ? '#FFFFFF' : '#000000');\n\n const utilityLightMixColor = '#FFFFFF';\n const utilityLightMixValue = 0.72;\n // UTILITY\n const red = overlayMix(foregroundColor, UTILITY_COLORS.red);\n const yellow = overlayMix(foregroundColor, UTILITY_COLORS.yellow);\n const green = overlayMix(foregroundColor, UTILITY_COLORS.green);\n document.documentElement.style.setProperty('--cpsl-color-utility-red', red);\n document.documentElement.style.setProperty('--cpsl-color-utility-yellow', yellow);\n document.documentElement.style.setProperty('--cpsl-color-utility-green', green);\n document.documentElement.style.setProperty('--cpsl-color-utility-red-light', mix(red, utilityLightMixColor, utilityLightMixValue));\n document.documentElement.style.setProperty('--cpsl-color-utility-yellow-light', mix(yellow, utilityLightMixColor, utilityLightMixValue));\n document.documentElement.style.setProperty('--cpsl-color-utility-green-light', mix(green, utilityLightMixColor, utilityLightMixValue));\n\n if (customPalette) {\n const cssColorVars = getCssColors(customPalette);\n Object.entries(cssColorVars).forEach(([k, v]) => document.documentElement.style.setProperty(k, v));\n }\n};\n"]}
@@ -2,10 +2,20 @@ import { DEFAULT_THEME } from "../../constants";
2
2
  import { generateBorderRadii } from "./generateBorderRadii";
3
3
  import { generateFont } from "./generateFont";
4
4
  import { generatePalette } from "./generatePalette";
5
- export const generateTheme = ({ foregroundColor = DEFAULT_THEME.foregroundColor, backgroundColor = DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }) => {
6
- const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });
5
+ /**
6
+ * Generates css theme variables.
7
+ * @returns @boolean Whether background is dark or not.
8
+ */
9
+ export const generateTheme = ({ foregroundColor = DEFAULT_THEME.foregroundColor, backgroundColor = DEFAULT_THEME.backgroundColor, accentColor, darkForegroundColor, darkBackgroundColor, darkAccentColor, mode = 'light', font, customPalette, borderRadius, customFontSizes, customBorderRadii, }) => {
10
+ const isDarkTheme = mode === 'dark';
11
+ generatePalette({
12
+ foregroundColor: isDarkTheme ? (darkForegroundColor !== null && darkForegroundColor !== void 0 ? darkForegroundColor : foregroundColor) : foregroundColor,
13
+ backgroundColor: isDarkTheme ? (darkBackgroundColor !== null && darkBackgroundColor !== void 0 ? darkBackgroundColor : backgroundColor) : backgroundColor,
14
+ accentColor: isDarkTheme ? (darkAccentColor !== null && darkAccentColor !== void 0 ? darkAccentColor : accentColor) : accentColor,
15
+ customPalette,
16
+ isDarkTheme,
17
+ });
7
18
  generateFont({ font, customFontSizes });
8
19
  generateBorderRadii({ borderRadius, customBorderRadii });
9
- return palette.isDarkBackground;
10
20
  };
11
21
  //# sourceMappingURL=generateTheme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateTheme.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,iBAAiB,GACX,EAAW,EAAE;IACnB,MAAM,OAAO,GAAG,eAAe,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,CAAC;IAErF,YAAY,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IAExC,mBAAmB,CAAC,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEzD,OAAO,OAAO,CAAC,gBAAgB,CAAC;AAClC,CAAC,CAAC","sourcesContent":["import { DEFAULT_THEME } from '../../constants';\nimport { Theme } from '../../interface';\nimport { generateBorderRadii } from './generateBorderRadii';\nimport { generateFont } from './generateFont';\nimport { generatePalette } from './generatePalette';\n\n/**\n * Generates css theme variables.\n * @returns @boolean Whether background is dark or not.\n */\nexport const generateTheme = ({\n foregroundColor = DEFAULT_THEME.foregroundColor,\n backgroundColor = DEFAULT_THEME.backgroundColor,\n font,\n customPalette,\n borderRadius,\n customFontSizes,\n customBorderRadii,\n}: Theme): boolean => {\n const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });\n\n generateFont({ font, customFontSizes });\n\n generateBorderRadii({ borderRadius, customBorderRadii });\n\n return palette.isDarkBackground;\n};\n"]}
1
+ {"version":3,"file":"generateTheme.js","sourceRoot":"","sources":["../../../../src/utils/theme/generateTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,eAAe,GAAG,aAAa,CAAC,eAAe,EAC/C,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,IAAI,GAAG,OAAO,EACd,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,iBAAiB,GACX,EAAE,EAAE;IACV,MAAM,WAAW,GAAG,IAAI,KAAK,MAAM,CAAC;IAEpC,eAAe,CAAC;QACd,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe;QACzF,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe;QACzF,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW;QACzE,aAAa;QACb,WAAW;KACZ,CAAC,CAAC;IAEH,YAAY,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IAExC,mBAAmB,CAAC,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC","sourcesContent":["import { DEFAULT_THEME } from '../../constants';\nimport { Theme } from '../../interface';\nimport { generateBorderRadii } from './generateBorderRadii';\nimport { generateFont } from './generateFont';\nimport { generatePalette } from './generatePalette';\n\n/**\n * Generates css theme variables.\n * @returns @boolean Whether background is dark or not.\n */\nexport const generateTheme = ({\n foregroundColor = DEFAULT_THEME.foregroundColor,\n backgroundColor = DEFAULT_THEME.backgroundColor,\n accentColor,\n darkForegroundColor,\n darkBackgroundColor,\n darkAccentColor,\n mode = 'light',\n font,\n customPalette,\n borderRadius,\n customFontSizes,\n customBorderRadii,\n}: Theme) => {\n const isDarkTheme = mode === 'dark';\n\n generatePalette({\n foregroundColor: isDarkTheme ? (darkForegroundColor ?? foregroundColor) : foregroundColor,\n backgroundColor: isDarkTheme ? (darkBackgroundColor ?? backgroundColor) : backgroundColor,\n accentColor: isDarkTheme ? (darkAccentColor ?? accentColor) : accentColor,\n customPalette,\n isDarkTheme,\n });\n\n generateFont({ font, customFontSizes });\n\n generateBorderRadii({ borderRadius, customBorderRadii });\n};\n"]}
@@ -6,6 +6,7 @@ export const isColor = strColor => {
6
6
  return s.color !== '';
7
7
  };
8
8
  const toKebabCase = (pascal) => pascal.replace(/([a-z0–9])([A-Z])/g, '$1-$2').toLowerCase();
9
+ // This function handles arrays and objects
9
10
  const buildVars = (prev, obj) => {
10
11
  let resp = {};
11
12
  for (const k in obj) {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/utils/theme/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,EAAE;IAChC,MAAM,CAAC,GAAG,IAAI,MAAM,EAAE,CAAC,KAAK,CAAC;IAC7B,CAAC,CAAC,KAAK,GAAG,QAAQ,CAAC;IACnB,OAAO,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;AAGpG,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,GAAQ,EAA2B,EA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AE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEtK,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC","sourcesContent":["import { parseToRgba, rgba } from 'color2k';\nimport { CustomBorderRadii, CustomPalette } from '../../interface';\nimport { overlay } from 'color-blend';\n\nexport const isColor = strColor => {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n};\n\nconst toKebabCase = (pascal: string) => pascal.replace(/([a-z0–9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// This function handles arrays and objects\nconst buildVars = (prev: string, obj: any): { [k: string]: string } => {\n let resp = {};\n\n for (const k in obj) {\n const name = `${prev}-${toKebabCase(k)}`;\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n resp = { ...resp, ...buildVars(name, obj[k]) };\n } else {\n resp[name] = obj[k];\n }\n }\n\n return resp;\n};\n\nexport const getCssColors = (customPalette: CustomPalette): { [k: string]: string } => buildVars('--cpsl-color', customPalette);\nexport const getCssBorderRadii = (customBorderRadii: CustomBorderRadii): { [k: string]: string } => buildVars('--cpsl-border-radius', customBorderRadii);\n\nexport const overlayMix = (baseColor: string, overlayColor: string) => {\n const baseRGBA = parseToRgba(baseColor);\n const overlayRGBA = parseToRgba(overlayColor);\n\n const finalRGBA = overlay({ r: baseRGBA[0], g: baseRGBA[1], b: baseRGBA[2], a: 0.1 }, { r: overlayRGBA[0], g: overlayRGBA[1], b: overlayRGBA[2], a: overlayRGBA[3] });\n\n return rgba(finalRGBA.r, finalRGBA.g, finalRGBA.b, finalRGBA.a);\n};\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/utils/theme/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,E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,EAAE,iBAAiB,CAAC,CAAC;AAEzJ,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,SAAiB,EAAE,YAAoB,EAAE,EAAE;IACpE,MAAM,QAAQ,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAE9C,MAAM,SAAS,GAAG,OAAO,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEtK,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC","sourcesContent":["import { parseToRgba, rgba } from 'color2k';\nimport { CustomBorderRadii, CustomPalette } from '../../interface';\nimport { overlay } from 'color-blend';\n\nexport const isColor = strColor => {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n};\n\nconst toKebabCase = (pascal: string) => pascal.replace(/([a-z0–9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// This function handles arrays and objects\nconst buildVars = (prev: string, obj: any): { [k: string]: string } => {\n let resp = {};\n\n for (const k in obj) {\n const name = `${prev}-${toKebabCase(k)}`;\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n resp = { ...resp, ...buildVars(name, obj[k]) };\n } else {\n resp[name] = obj[k];\n }\n }\n\n return resp;\n};\n\nexport const getCssColors = (customPalette: CustomPalette): { [k: string]: string } => buildVars('--cpsl-color', customPalette);\nexport const getCssBorderRadii = (customBorderRadii: CustomBorderRadii): { [k: string]: string } => buildVars('--cpsl-border-radius', customBorderRadii);\n\nexport const overlayMix = (baseColor: string, overlayColor: string) => {\n const baseRGBA = parseToRgba(baseColor);\n const overlayRGBA = parseToRgba(overlayColor);\n\n const finalRGBA = overlay({ r: baseRGBA[0], g: baseRGBA[1], b: baseRGBA[2], a: 0.1 }, { r: overlayRGBA[0], g: overlayRGBA[1], b: overlayRGBA[2], a: overlayRGBA[3] });\n\n return rgba(finalRGBA.r, finalRGBA.g, finalRGBA.b, finalRGBA.a);\n};\n"]}
@@ -1,22 +1,22 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-b188f201.js';
2
- export { s as setNonce } from './index-b188f201.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-91db3414.js';
2
+ export { s as setNonce } from './index-91db3414.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.12.5 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
- const patchBrowser = () => {
9
- const importMeta = import.meta.url;
10
- const opts = {};
11
- if (importMeta !== '') {
12
- opts.resourcesUrl = new URL('.', importMeta).href;
13
- }
14
- return promiseResolve(opts);
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
15
  };
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-identicon",[[1,"cpsl-identicon",{"hash":[1],"size":[2]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_34",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-file-upload",{"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-select",{"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"label":[1],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[1,"cpsl-hero",{"variant":[513],"title":[513],"subtitle":[513]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-nav-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-button",{"as":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"size":[1],"target":[1],"variant":[513]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-popover",{"anchorEl":[16],"anchorOriginHorizontal":[1,"anchor-origin-horizontal"],"anchorOriginVertical":[1,"anchor-origin-vertical"],"autoWidth":[4,"auto-width"],"disabled":[4],"preventBlur":[4,"prevent-blur"],"transformOriginHorizontal":[1,"transform-origin-horizontal"],"transformOriginVertical":[1,"transform-origin-vertical"],"triggerAction":[1,"trigger-action"],"trigger":[1],"windowPadding":[2,"window-padding"],"open":[32],"positionX":[32],"positionY":[32],"closePopover":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"preventBlur":["onTriggerChange"],"anchorOriginHorizontal":["onAnchorChange"],"anchorOriginVertical":["onAnchorChange"],"open":["onOpenChange"]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-card"],[1,"cpsl-overlay",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
19
+ return bootstrapLazy([["cpsl-hero",[[1,"cpsl-hero",{"height":[2],"hideFadeOut":[4,"hide-fade-out"],"variant":[513],"title":[513],"subtitle":[513],"withDefaultTheme":[4,"with-default-theme"]}]]],["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-identicon",[[1,"cpsl-identicon",{"hash":[1],"size":[2]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_34",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-select",{"anchorElId":[1,"anchor-el-id"],"autoWidth":[4,"auto-width"],"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"label":[1],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"showSearch":[4,"show-search"],"searchPlaceholder":[1,"search-placeholder"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-file-upload",{"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-auth-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"],"hasFooter":[32],"isMobile":[32]},null,{"open":["toggleModal"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[1,"cpsl-icon-group",{"expandFrom":[1,"expand-from"],"disabled":[4],"icons":[16],"isHovered":[32]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[1,"cpsl-nav-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-button",{"as":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"size":[1],"target":[1],"variant":[513]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"contrastText":[4,"contrast-text"],"enterkeyhint":[1],"errorText":[1,"error-text"],"mask":[1],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32],"maskedInput":[32]},null,{"disabled":["handleDisable"],"mask":["handleSetupMask"],"value":["handleValueChange"]}],[1,"cpsl-popover",{"anchorEl":[16],"anchorOriginHorizontal":[1,"anchor-origin-horizontal"],"anchorOriginVertical":[1,"anchor-origin-vertical"],"autoWidth":[4,"auto-width"],"disabled":[4],"preventBlur":[4,"prevent-blur"],"transformOriginHorizontal":[1,"transform-origin-horizontal"],"transformOriginVertical":[1,"transform-origin-vertical"],"triggerAction":[1,"trigger-action"],"trigger":[1],"windowPadding":[2,"window-padding"],"open":[32],"positionX":[32],"positionY":[32],"closePopover":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"preventBlur":["onTriggerChange"],"anchorOriginHorizontal":["onAnchorChange"],"anchorOriginVertical":["onAnchorChange"],"open":["onOpenChange"]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-card"],[1,"cpsl-overlay",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
20
20
  });
21
21
 
22
22
  //# sourceMappingURL=capsule.js.map
@@ -1 +1 @@
1
- {"file":"capsule.js","mappings":";;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.5 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
1
+ {"file":"capsule.js","mappings":";;;;AAAA;AACA;AACA;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACrC,EAAE,MAAM,IAAI,GAAiE,EAAE,CAAC;AAChF,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AACtD,GAAG;AACH,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}