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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/index.esm.js.map +1 -1
  4. package/dist/capsule/p-0462f723.js.map +1 -1
  5. package/dist/capsule/p-05cb769b.entry.js +10 -0
  6. package/dist/capsule/p-05cb769b.entry.js.map +1 -0
  7. package/dist/capsule/p-0eea90f8.entry.js +2 -0
  8. package/dist/capsule/{p-3fca138b.entry.js.map → p-0eea90f8.entry.js.map} +1 -1
  9. package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
  10. package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
  11. package/dist/capsule/p-7233228e.entry.js +29 -0
  12. package/dist/capsule/p-7233228e.entry.js.map +1 -0
  13. package/dist/capsule/{p-29340cea.entry.js → p-742bda0b.entry.js} +2 -2
  14. package/dist/capsule/{p-29340cea.entry.js.map → p-742bda0b.entry.js.map} +1 -1
  15. package/dist/capsule/{p-895001cf.entry.js → p-c1aa1ffb.entry.js} +2 -2
  16. package/dist/capsule/{p-895001cf.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
  17. package/dist/capsule/p-d351f076.entry.js +2 -0
  18. package/dist/capsule/p-d351f076.entry.js.map +1 -0
  19. package/dist/capsule/{p-1bb78dd3.entry.js → p-dc4591d5.entry.js} +2 -2
  20. package/dist/capsule/{p-1bb78dd3.entry.js.map → p-dc4591d5.entry.js.map} +1 -1
  21. package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
  22. package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
  23. package/dist/capsule/p-e1255160.js.map +1 -1
  24. package/dist/capsule/p-f2393be6.js.map +1 -1
  25. package/dist/capsule/p-fa6b7678.js +3 -0
  26. package/dist/capsule/p-fa6b7678.js.map +1 -0
  27. package/dist/cjs/capsule.cjs.js +10 -10
  28. package/dist/cjs/capsule.cjs.js.map +1 -1
  29. package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +136 -93
  30. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-animation.cjs.entry.js +5 -2
  32. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  33. package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
  34. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
  35. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  36. package/dist/cjs/cpsl-hero.cjs.entry.js +35 -0
  37. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
  38. package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
  39. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  40. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
  41. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  43. package/dist/cjs/index-65f57499.js +1439 -0
  44. package/dist/cjs/index-65f57499.js.map +1 -0
  45. package/dist/cjs/index.cjs.js +10 -2
  46. package/dist/cjs/index.cjs.js.map +1 -1
  47. package/dist/cjs/loader.cjs.js +2 -2
  48. package/dist/collection/assets/icons/index.js +1 -3
  49. package/dist/collection/assets/icons/index.js.map +1 -1
  50. package/dist/collection/collection-manifest.json +2 -2
  51. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  52. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  53. package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
  54. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
  55. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
  56. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  57. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  58. package/dist/collection/components/cpsl-button/cpsl-button.js +5 -2
  59. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  60. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  61. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
  62. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  63. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  64. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +5 -3
  65. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  66. package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
  67. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
  68. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  69. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
  70. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  71. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
  72. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  73. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
  74. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
  75. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  76. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  77. package/dist/collection/components/cpsl-hero/cpsl-hero.css +47 -29
  78. package/dist/collection/components/cpsl-hero/cpsl-hero.js +39 -2
  79. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  80. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js +1 -1
  81. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
  82. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  83. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  84. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
  85. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  86. package/dist/collection/components/cpsl-input/cpsl-input.js +36 -2
  87. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  88. package/dist/collection/components/cpsl-modal/cpsl-modal.js +1 -1
  89. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  90. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
  91. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  92. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  93. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
  94. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  95. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  96. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
  97. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  98. package/dist/collection/components/cpsl-popover/cpsl-popover.js +18 -6
  99. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  100. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  101. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  102. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  103. package/dist/collection/components/cpsl-select/cpsl-select.js +3 -1
  104. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  105. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  106. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
  107. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  108. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  109. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  110. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  111. package/dist/collection/components/cpsl-table/cpsl-table.js +11 -1
  112. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  113. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +7 -1
  114. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  115. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -2
  116. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  117. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  118. package/dist/collection/interface.js.map +1 -1
  119. package/dist/collection/utils/media.js +3 -0
  120. package/dist/collection/utils/media.js.map +1 -1
  121. package/dist/collection/utils/theme/generateBorderRadii.js +1 -1
  122. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  123. package/dist/collection/utils/theme/generatePalette.js +4 -1
  124. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  125. package/dist/collection/utils/theme/generateTheme.js +4 -0
  126. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  127. package/dist/collection/utils/theme/utils.js +1 -0
  128. package/dist/collection/utils/theme/utils.js.map +1 -1
  129. package/dist/esm/capsule.js +11 -11
  130. package/dist/esm/capsule.js.map +1 -1
  131. package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +137 -93
  132. package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
  133. package/dist/esm/cpsl-animation.entry.js +5 -2
  134. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  135. package/dist/esm/cpsl-col.entry.js +25 -6
  136. package/dist/esm/cpsl-col.entry.js.map +1 -1
  137. package/dist/esm/cpsl-grid.entry.js +3 -3
  138. package/dist/esm/cpsl-hero.entry.js +31 -0
  139. package/dist/esm/cpsl-hero.entry.js.map +1 -0
  140. package/dist/esm/cpsl-identicon.entry.js +2 -2
  141. package/dist/esm/cpsl-info-box.entry.js +2 -2
  142. package/dist/esm/cpsl-modal-v2.entry.js +3 -2
  143. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  144. package/dist/esm/cpsl-row.entry.js +2 -2
  145. package/dist/esm/index-91db3414.js +1408 -0
  146. package/dist/esm/index-91db3414.js.map +1 -0
  147. package/dist/esm/index.js +10 -2
  148. package/dist/esm/index.js.map +1 -1
  149. package/dist/esm/loader.js +3 -3
  150. package/dist/loader/cdn.js +1 -3
  151. package/dist/loader/index.cjs.js +1 -3
  152. package/dist/loader/index.d.ts +3 -0
  153. package/dist/loader/index.es2017.js +1 -3
  154. package/dist/loader/index.js +1 -3
  155. package/dist/scripts/buildAssets.js +1 -1
  156. package/dist/types/assets/icons/index.d.ts +0 -2
  157. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
  158. package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
  159. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
  160. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
  161. package/dist/types/components/cpsl-button/cpsl-button.d.ts +29 -0
  162. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
  163. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
  164. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
  165. package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
  166. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
  167. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
  168. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
  169. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
  170. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
  171. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +7 -0
  172. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  173. package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
  174. package/dist/types/components/cpsl-input/cpsl-input.d.ts +138 -0
  175. package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
  176. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +39 -0
  177. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
  178. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
  179. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
  180. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
  181. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
  182. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +55 -2
  183. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
  184. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +10 -0
  185. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
  186. package/dist/types/components/cpsl-select/cpsl-select.d.ts +45 -0
  187. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
  188. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
  189. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
  190. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
  191. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
  192. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
  193. package/dist/types/components/cpsl-text/cpsl-text.d.ts +15 -0
  194. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  195. package/dist/types/components.d.ts +32 -6
  196. package/dist/types/stencil-public-runtime.d.ts +3 -10
  197. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  198. package/dist/types/utils/theme/generatePalette.d.ts +1 -1
  199. package/dist/types/utils/theme/generateTheme.d.ts +4 -0
  200. package/package.json +4 -10
  201. package/readme.md +47 -2
  202. package/dist/capsule/p-3fca138b.entry.js +0 -2
  203. package/dist/capsule/p-7dde3172.js +0 -3
  204. package/dist/capsule/p-7dde3172.js.map +0 -1
  205. package/dist/capsule/p-a6aaf3f4.entry.js +0 -10
  206. package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
  207. package/dist/capsule/p-c4220447.entry.js +0 -29
  208. package/dist/capsule/p-c4220447.entry.js.map +0 -1
  209. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
  210. package/dist/cjs/index-528f7428.js +0 -2107
  211. package/dist/cjs/index-528f7428.js.map +0 -1
  212. package/dist/collection/assets/icons/double-arc.svg +0 -13
  213. package/dist/collection/assets/icons/single-arc.svg +0 -11
  214. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  215. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  216. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  217. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  218. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  219. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  220. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  221. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  222. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +0 -29
  223. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
  224. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
  225. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
  226. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
  227. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
  228. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
  229. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +0 -1
  230. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  231. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  232. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  233. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  234. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +0 -29
  235. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
  236. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
  237. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
  238. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
  239. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
  240. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
  241. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
  242. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
  243. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
  244. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
  245. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +0 -1
  246. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  247. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  248. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  249. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  250. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  251. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  252. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  253. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  254. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  255. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  256. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  257. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  258. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +0 -29
  259. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
  260. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
  261. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
  262. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  263. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  264. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  265. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  266. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
  267. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
  268. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
  269. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +0 -1
  270. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  271. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  272. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  273. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  274. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +0 -29
  275. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
  276. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
  277. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +0 -1
  278. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  279. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  280. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  281. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  282. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +0 -29
  283. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
  284. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
  285. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +0 -1
  286. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  287. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  288. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  289. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  290. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  291. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  292. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  293. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  294. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  295. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  296. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  297. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  298. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
  299. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
  300. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
  301. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
  302. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
  303. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
  304. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
  305. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +0 -1
  306. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  307. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  308. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  309. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  310. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +0 -29
  311. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
  312. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
  313. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +0 -1
  314. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  315. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  316. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  317. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  318. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +0 -29
  319. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
  320. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
  321. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +0 -1
  322. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  323. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  324. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  325. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  326. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  327. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  328. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  329. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  330. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +0 -29
  331. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
  332. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
  333. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +0 -1
  334. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  335. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  336. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  337. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  338. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +0 -29
  339. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
  340. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
  341. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
  342. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
  343. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
  344. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
  345. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +0 -1
  346. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  347. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  348. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  349. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  350. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  351. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  352. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  353. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  354. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +0 -29
  355. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
  356. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
  357. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +0 -1
  358. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  359. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  360. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  361. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  362. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +0 -29
  363. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
  364. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
  365. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +0 -1
  366. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  367. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  368. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  369. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  370. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  371. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  372. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  373. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  374. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  375. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  376. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  377. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  378. package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
  379. package/dist/esm/index-b188f201.js +0 -2076
  380. package/dist/esm/index-b188f201.js.map +0 -1
  381. package/dist/esm/polyfills/core-js.js +0 -11
  382. package/dist/esm/polyfills/dom.js +0 -79
  383. package/dist/esm/polyfills/es5-html-element.js +0 -1
  384. package/dist/esm/polyfills/index.js +0 -34
  385. package/dist/esm/polyfills/system.js +0 -6
  386. /package/dist/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → taylorbosch/Documents/GitHub/Capsule/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -7,19 +7,72 @@ export declare class CpslPopover {
7
7
  private triggerClicked;
8
8
  positionX?: number;
9
9
  positionY?: number;
10
+ /**
11
+ * ID for the element that the popover anchors to.
12
+ */
10
13
  anchorEl?: HTMLElement;
14
+ /**
15
+ * Vertical anchor origin.
16
+ * Options are: `"left"`, `"center"`, `"right"`.
17
+ * Default is: `"left"`.
18
+ */
11
19
  anchorOriginHorizontal?: 'left' | 'center' | 'right';
20
+ /**
21
+ * Vertical anchor origin.
22
+ * Options are: `"top"`, `"center"`, `"bottom"`.
23
+ * Default is: `"bottom"`.
24
+ */
12
25
  anchorOriginVertical?: 'top' | 'center' | 'bottom';
26
+ /**
27
+ * If `true` the container will use the width of the content, else it will be set to the width of the trigger.
28
+ * Default is `true`
29
+ */
13
30
  autoWidth?: boolean;
31
+ /**
32
+ * Whether or not to disable to popover.
33
+ */
14
34
  disabled: boolean;
35
+ /**
36
+ * Used internally to prevent select from blurring unintentionally.
37
+ */
15
38
  preventBlur: boolean;
39
+ /**
40
+ * Vertical transformation origin.
41
+ * Options are: `"left"`, `"center"`, `"right"`.
42
+ * Default is: `"left"`.
43
+ */
16
44
  transformOriginHorizontal?: 'left' | 'center' | 'right';
45
+ /**
46
+ * Vertical transformation origin.
47
+ * Options are: `"top"`, `"center"`, `"bottom"`.
48
+ * Default is: `"bottom"`.
49
+ */
17
50
  transformOriginVertical?: 'top' | 'center' | 'bottom';
51
+ /**
52
+ * Which trigger causes the popover to open.
53
+ * Options are: `"click"`, `"hover"`.
54
+ * Default is: `"click"`.
55
+ */
18
56
  triggerAction: 'click' | 'hover';
57
+ /**
58
+ * ID for the element that triggers the popover to open.
59
+ */
19
60
  trigger: string;
61
+ /**
62
+ * Padding from edge of window for the popover container.
63
+ */
20
64
  windowPadding?: number;
21
- cpslOpen: EventEmitter<void>;
22
- cpslClose: EventEmitter<void>;
65
+ /**
66
+ * Emitted when the popover opens.
67
+ */
68
+ cpslOpen: EventEmitter;
69
+ /**
70
+ * Emitted when the popover closes.
71
+ */
72
+ cpslClose: EventEmitter;
73
+ /**
74
+ * Call to close the popover manually.
75
+ */
23
76
  closePopover(): Promise<void>;
24
77
  onTriggerChange(): void;
25
78
  onAnchorChange(): void;
@@ -1,5 +1,11 @@
1
1
  export declare class CpslProgressIndicator {
2
+ /**
3
+ * Total number of steps.
4
+ */
2
5
  totalSteps: number;
6
+ /**
7
+ * Current zero based step.
8
+ */
3
9
  step: number;
4
10
  render(): any;
5
11
  }
@@ -1,7 +1,17 @@
1
1
  export declare class CpslQrCode {
2
2
  el: HTMLCpslQrCodeElement;
3
+ /**
4
+ * URL for the QR code to link to.
5
+ */
3
6
  url: string;
7
+ /**
8
+ * Source for the center image of the QR code.
9
+ */
4
10
  imageSrc?: string;
11
+ /**
12
+ * Size of the QR code in pixels.
13
+ * Default is 250.
14
+ */
5
15
  size?: number;
6
16
  componentDidLoad(): void;
7
17
  render(): any;
@@ -1,6 +1,12 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class CpslRadio {
3
+ /**
4
+ * Whether or not the radio is checked.
5
+ */
3
6
  checked: boolean;
7
+ /**
8
+ * Emitted when the radio state changes.
9
+ */
4
10
  cpslRadioChanged: EventEmitter<boolean>;
5
11
  private handleRadioClick;
6
12
  render(): any;
@@ -7,20 +7,65 @@ export declare class CpslSelect {
7
7
  hasFocus: boolean;
8
8
  popoverOpen: boolean;
9
9
  hasSelectedItem: boolean;
10
+ /**
11
+ * If `true`, the user cannot interact with the input.
12
+ */
10
13
  disabled: boolean;
14
+ /**
15
+ * Set the max height of the dropdown.
16
+ */
11
17
  dropdownMaxHeight?: number;
18
+ /**
19
+ * Error text to show below the input. If this is provided the input will enter an error state.
20
+ */
12
21
  errorText?: string;
22
+ /**
23
+ * Format value for display when selected.
24
+ */
13
25
  formatValue?: (value: string) => string;
26
+ /**
27
+ * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
28
+ */
14
29
  helperText?: string;
30
+ /**
31
+ * ID of the element, must be unique for the popover trigger.
32
+ */
15
33
  id: string;
34
+ /**
35
+ * The label for the input.
36
+ */
16
37
  label?: string;
38
+ /**
39
+ * Placeholder to display if `selectedValue` is empty.
40
+ */
17
41
  placeholder?: string;
42
+ /**
43
+ * If `true`, the user must fill in a value before submitting a form.
44
+ */
18
45
  required: boolean;
46
+ /**
47
+ * Value of the selected item.
48
+ */
19
49
  selectedValue?: string;
50
+ /**
51
+ * Will show the formatted selected item (passed in the `selected-item` slot) in the select rather than the item value.
52
+ */
20
53
  showFormattedSelectedItem?: boolean;
54
+ /**
55
+ * If `true`, the label will display an "optional" tag.
56
+ */
21
57
  showOptionalLabel: boolean;
58
+ /**
59
+ * Emitted when the input loses focus.
60
+ */
22
61
  cpslBlur: EventEmitter<FocusEvent>;
62
+ /**
63
+ * Emitted when the input has focus.
64
+ */
23
65
  cpslFocus: EventEmitter<FocusEvent>;
66
+ /**
67
+ * Emitted when the value changes.
68
+ */
24
69
  cpslSelectValueChange: EventEmitter<string>;
25
70
  onValueChange(): void;
26
71
  handleValueChange(): void;
@@ -1,7 +1,17 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class CpslSelectItem {
3
+ /**
4
+ * Whether the item is selected or not.
5
+ */
3
6
  selected?: boolean;
7
+ /**
8
+ * Value of the item.
9
+ */
4
10
  value: string;
11
+ /**
12
+ * Called when item is clicked.
13
+ * @internal
14
+ */
5
15
  cpslSelectItemClick: EventEmitter<string>;
6
16
  private handleItemClick;
7
17
  render(): any;
@@ -2,11 +2,29 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { IconType } from '../../interface';
3
3
  export declare class CpslSlideButton {
4
4
  el: HTMLCpslSlideButtonElement;
5
+ /**
6
+ * Whether or not the component is disabled. If true, the component will display the `startText`.
7
+ */
5
8
  disabled: boolean;
9
+ /**
10
+ * The name of the ending icon to show.
11
+ */
6
12
  endIcon: IconType;
13
+ /**
14
+ * The ending text.
15
+ */
7
16
  endText: string;
17
+ /**
18
+ * The name of the starting icon to show.
19
+ */
8
20
  startIcon: IconType;
21
+ /**
22
+ * The starting text.
23
+ */
9
24
  startText: string;
25
+ /**
26
+ * The `cpslComplete` event is fired when the slider is at the end.
27
+ */
10
28
  cpslComplete: EventEmitter<boolean>;
11
29
  componentDidLoad(): void;
12
30
  private dragElement;
@@ -1,5 +1,13 @@
1
1
  export declare class CpslSpinner {
2
+ /**
3
+ * Size of the spinner in pixels.
4
+ * Default is 50.
5
+ */
2
6
  size?: number;
7
+ /**
8
+ * Rotation speed of the spinner in seconds.
9
+ * Default is 1.
10
+ */
3
11
  speed?: number;
4
12
  render(): any;
5
13
  }
@@ -1,6 +1,12 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class CpslSwitch {
3
+ /**
4
+ * Whether or not the switch is checked.
5
+ */
3
6
  checked: boolean;
7
+ /**
8
+ * Emitted when the switch state changes.
9
+ */
4
10
  cpslSwitchChanged: EventEmitter<boolean>;
5
11
  private handleSwitchClick;
6
12
  render(): any;
@@ -3,8 +3,19 @@ import { TabClickEventDetail } from './tab-interface';
3
3
  import { TabsChangedEventDetail } from '../cpsl-tabs/tabs-interface';
4
4
  export declare class CpslTab {
5
5
  el: HTMLCpslTabElement;
6
+ /**
7
+ * The selected tab component
8
+ */
6
9
  selected: boolean;
10
+ /**
11
+ * A tab id must be provided for each `cpsl-tab`. It's used internally to reference
12
+ * the selected tab or by the router to switch between them.
13
+ */
7
14
  tab: string;
15
+ /**
16
+ * Emitted when tabs are clicked
17
+ * @internal
18
+ */
8
19
  cpslTabButtonClick: EventEmitter<TabClickEventDetail>;
9
20
  onTabsChanged(ev: CustomEvent<TabsChangedEventDetail>): void;
10
21
  onTabsInit(ev: CustomEvent<TabsChangedEventDetail>): void;
@@ -4,9 +4,22 @@ export declare class CpslTabs {
4
4
  el: HTMLCpslTabsElement;
5
5
  selectedTabRect?: DOMRect;
6
6
  loaded: boolean;
7
+ /**
8
+ * Whether or not the tabs take the full width of their container.
9
+ */
7
10
  fullWidth?: boolean;
11
+ /**
12
+ * The selected tab component
13
+ */
8
14
  selectedTab?: string;
15
+ /**
16
+ * Emitted when a tab is changed
17
+ */
9
18
  cpslTabsChanged: EventEmitter<TabsChangedEventDetail>;
19
+ /**
20
+ * Emitted when tabs are initialized
21
+ * @internal
22
+ */
10
23
  cpslTabsInit: EventEmitter<TabsChangedEventDetail>;
11
24
  updateSlider(): void;
12
25
  updateTab(newValue?: string, oldValue?: string): void;
@@ -1,6 +1,21 @@
1
1
  export declare class CpslText {
2
+ /**
3
+ * The color of text.
4
+ * Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error".
5
+ * Default is: `"primary"`.
6
+ */
2
7
  color?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
8
+ /**
9
+ * The variant of text.
10
+ * Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL".
11
+ * Default is: `"bodyM"`.
12
+ */
3
13
  variant?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
14
+ /**
15
+ * The weight of text.
16
+ * Options are: `"regular"`, `"medium", `"semiBold", `"bold".
17
+ * Default is: `"regular"`.
18
+ */
4
19
  weight?: 'regular' | 'medium' | 'semiBold' | 'bold';
5
20
  private get Content();
6
21
  render(): any;
@@ -1,6 +1,12 @@
1
1
  import { IconType } from '../../interface';
2
2
  export declare class CpslTileButton {
3
+ /**
4
+ * The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.
5
+ */
3
6
  src?: string;
7
+ /**
8
+ * The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
9
+ */
4
10
  icon?: IconType;
5
11
  render(): any;
6
12
  }
@@ -333,6 +333,8 @@ export namespace Components {
333
333
  "fixed": boolean;
334
334
  }
335
335
  interface CpslHero {
336
+ "subtitle"?: string;
337
+ "title": string;
336
338
  /**
337
339
  * The variant of the button. Options are: `"default"`, `"loading", `"success". Default is: `"default"`.
338
340
  */
@@ -781,7 +783,18 @@ export namespace Components {
781
783
  /**
782
784
  * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
783
785
  */
784
- "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
786
+ "variant"?: | 'body2XS'
787
+ | 'bodyXS'
788
+ | 'bodyS'
789
+ | 'bodyM'
790
+ | 'bodyL'
791
+ | 'bodyXL'
792
+ | 'headingXS'
793
+ | 'headingS'
794
+ | 'headingM'
795
+ | 'headingL'
796
+ | 'headingXL'
797
+ | 'heading2XL';
785
798
  /**
786
799
  * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
787
800
  */
@@ -1123,8 +1136,8 @@ declare global {
1123
1136
  new (): HTMLCpslPillElement;
1124
1137
  };
1125
1138
  interface HTMLCpslPopoverElementEventMap {
1126
- "cpslOpen": void;
1127
- "cpslClose": void;
1139
+ "cpslOpen": any;
1140
+ "cpslClose": any;
1128
1141
  }
1129
1142
  interface HTMLCpslPopoverElement extends Components.CpslPopover, HTMLStencilElement {
1130
1143
  addEventListener<K extends keyof HTMLCpslPopoverElementEventMap>(type: K, listener: (this: HTMLCpslPopoverElement, ev: CpslPopoverCustomEvent<HTMLCpslPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1692,6 +1705,8 @@ declare namespace LocalJSX {
1692
1705
  "fixed"?: boolean;
1693
1706
  }
1694
1707
  interface CpslHero {
1708
+ "subtitle"?: string;
1709
+ "title"?: string;
1695
1710
  /**
1696
1711
  * The variant of the button. Options are: `"default"`, `"loading", `"success". Default is: `"default"`.
1697
1712
  */
@@ -2014,11 +2029,11 @@ declare namespace LocalJSX {
2014
2029
  /**
2015
2030
  * Emitted when the popover closes.
2016
2031
  */
2017
- "onCpslClose"?: (event: CpslPopoverCustomEvent<void>) => void;
2032
+ "onCpslClose"?: (event: CpslPopoverCustomEvent<any>) => void;
2018
2033
  /**
2019
2034
  * Emitted when the popover opens.
2020
2035
  */
2021
- "onCpslOpen"?: (event: CpslPopoverCustomEvent<void>) => void;
2036
+ "onCpslOpen"?: (event: CpslPopoverCustomEvent<any>) => void;
2022
2037
  /**
2023
2038
  * Used internally to prevent select from blurring unintentionally.
2024
2039
  */
@@ -2232,7 +2247,18 @@ declare namespace LocalJSX {
2232
2247
  /**
2233
2248
  * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
2234
2249
  */
2235
- "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
2250
+ "variant"?: | 'body2XS'
2251
+ | 'bodyXS'
2252
+ | 'bodyS'
2253
+ | 'bodyM'
2254
+ | 'bodyL'
2255
+ | 'bodyXL'
2256
+ | 'headingXS'
2257
+ | 'headingS'
2258
+ | 'headingM'
2259
+ | 'headingL'
2260
+ | 'headingXL'
2261
+ | 'heading2XL';
2236
2262
  /**
2237
2263
  * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
2238
2264
  */
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
768
768
  hrefLang?: string;
769
769
  hreflang?: string;
770
770
  media?: string;
771
+ ping?: string;
771
772
  rel?: string;
772
773
  target?: string;
773
774
  referrerPolicy?: ReferrerPolicy;
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
794
795
  cite?: string;
795
796
  }
796
797
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
797
- autoFocus?: boolean;
798
798
  disabled?: boolean;
799
799
  form?: string;
800
800
  formAction?: string;
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
921
921
  autocapitalize?: string;
922
922
  autoComplete?: string;
923
923
  autocomplete?: string;
924
- autoFocus?: boolean;
925
- autofocus?: boolean | string;
926
924
  capture?: string;
927
925
  checked?: boolean;
928
926
  crossOrigin?: string;
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
979
977
  popoverTarget?: string;
980
978
  }
981
979
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
982
- autoFocus?: boolean;
983
- autofocus?: boolean | string;
984
980
  challenge?: string;
985
981
  disabled?: boolean;
986
982
  form?: string;
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
993
989
  interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
994
990
  form?: string;
995
991
  htmlFor?: string;
996
- htmlfor?: string;
997
992
  }
998
993
  interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
999
994
  value?: string | string[] | number;
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
1104
1099
  interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1105
1100
  form?: string;
1106
1101
  htmlFor?: string;
1107
- htmlfor?: string;
1108
1102
  name?: string;
1109
1103
  }
1110
1104
  interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
1129
1123
  type?: string;
1130
1124
  }
1131
1125
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1132
- autoFocus?: boolean;
1133
1126
  disabled?: boolean;
1134
1127
  form?: string;
1135
1128
  multiple?: boolean;
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
1164
1157
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1158
  autoComplete?: string;
1166
1159
  autocomplete?: string;
1167
- autoFocus?: boolean;
1168
- autofocus?: boolean | string;
1169
1160
  cols?: number;
1170
1161
  disabled?: boolean;
1171
1162
  form?: string;
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
1218
1209
  interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1219
1210
  innerHTML?: string;
1220
1211
  accessKey?: string;
1212
+ autoFocus?: boolean;
1213
+ autofocus?: boolean | string;
1221
1214
  class?: string | {
1222
1215
  [className: string]: boolean;
1223
1216
  };
@@ -1,2 +1,2 @@
1
1
  import { Theme } from '../../interface';
2
- export declare const generateBorderRadii: ({ borderRadius, customBorderRadii }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
2
+ export declare const generateBorderRadii: ({ borderRadius, customBorderRadii, }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
@@ -4,4 +4,4 @@ export type Palette = {
4
4
  backgroundColors: string[];
5
5
  isDarkBackground: boolean;
6
6
  };
7
- export declare const generatePalette: ({ foregroundColor, backgroundColor, customPalette }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>) => Palette;
7
+ export declare const generatePalette: ({ foregroundColor, backgroundColor, customPalette, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>) => Palette;
@@ -1,2 +1,6 @@
1
1
  import { Theme } from '../../interface';
2
+ /**
3
+ * Generates css theme variables.
4
+ * @returns @boolean Whether background is dark or not.
5
+ */
2
6
  export declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }: Theme) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecapsule/core-components",
3
- "version": "3.2.0-dev.0",
3
+ "version": "3.2.0",
4
4
  "description": "Capsule Core Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -21,7 +21,6 @@
21
21
  "test": "stencil test --spec --e2e",
22
22
  "test.watch": "stencil test --spec --e2e --watchAll",
23
23
  "generate": "stencil generate",
24
- "lint": "eslint src/**/*{.ts,.tsx}",
25
24
  "build:css": "sass --embed-sources src/css:./css",
26
25
  "build:assets": "ts-node -T ./scripts/buildAssets.ts",
27
26
  "storybook": "storybook dev -p 6006",
@@ -37,7 +36,7 @@
37
36
  },
38
37
  "devDependencies": {
39
38
  "@babel/plugin-transform-react-jsx": "^7.24.7",
40
- "@stencil-community/eslint-plugin": "^0.7.2",
39
+ "@chromatic-com/storybook": "^1.6.0",
41
40
  "@stencil/react-output-target": "^0.5.3",
42
41
  "@stencil/sass": "^3.0.10",
43
42
  "@storybook/addon-essentials": "^8.1.11",
@@ -51,20 +50,15 @@
51
50
  "@storybook/test": "^8.1.11",
52
51
  "@types/jest": "^29.5.6",
53
52
  "@types/node": "^16.18.11",
54
- "@typescript-eslint/eslint-plugin": "^7.1.1",
55
- "@typescript-eslint/parser": "^7.1.1",
56
- "eslint": "^8.57.0",
57
- "eslint-plugin-react": "^7.34.0",
58
- "eslint-plugin-storybook": "^0.8.0",
59
53
  "jest": "^29.7.0",
60
54
  "jest-cli": "^29.7.0",
61
55
  "puppeteer": "^21.9.0",
62
56
  "rollup-plugin-dotenv": "^0.5.0",
63
- "rollup-plugin-node-polyfills": "^0.2.1",
64
57
  "sass": "^1.71.1",
65
58
  "stencil-inline-svg": "^1.1.0",
66
59
  "storybook": "^8.1.11",
60
+ "storybook-addon-stencil": "^0.2.1",
67
61
  "ts-node": "^10.9.2"
68
62
  },
69
- "gitHead": "ca0d8cab915d9cef706c8dd619176032cdcd165f"
63
+ "gitHead": "2f9f59b43c147849f37d50a136970f56dce05be9"
70
64
  }
package/readme.md CHANGED
@@ -1,3 +1,48 @@
1
- # Capsule Core Components
1
+ # component-library
2
2
 
3
- The core stencil library for our common capsule components.
3
+ Cross-framework common component library
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ yarn install
9
+ ```
10
+
11
+ ## Running
12
+
13
+ The component examples can either be run in React or bare HTML.
14
+
15
+ ### React
16
+
17
+ ```bash
18
+ yarn build
19
+ yarn start-react
20
+ ```
21
+
22
+ ### HTML
23
+
24
+ ```bash
25
+ yarn start-html
26
+ ```
27
+
28
+ ## Building
29
+
30
+ This will build the component libraries for both web components and React.
31
+
32
+ ```bash
33
+ yarn build
34
+ ```
35
+
36
+ ## Generating New Components
37
+
38
+ This should be used when adding new components to the library. It will initialize the component, test and styles.
39
+
40
+ Once run, follow the prompts to name your component.
41
+
42
+ > **Note** Components **MUST** begin the the `cpsl-` string in order for them to pass linting.
43
+
44
+ > **Note** The styles should be changed to Sass once the component is generated. Rename the generated `css` file to `scss` and update the import in the component.
45
+
46
+ ```bash
47
+ yarn generate
48
+ ```
@@ -1,2 +0,0 @@
1
- import{r as a,h as e,H as s}from"./p-7dde3172.js";const c=":host{display:flex;flex-wrap:wrap}";const r=c;const o=class{constructor(e){a(this,e)}render(){return e(s,{key:"557a2f245ec7a47aa32d26c27cd2d944d63311a3"},e("slot",{key:"e39a195e96e045812dfda0f1509cc6e05c6efab6"}))}};o.style=r;export{o as cpsl_row};
2
- //# sourceMappingURL=p-3fca138b.entry.js.map
@@ -1,3 +0,0 @@
1
- const t="capsule";let e;let n;let s=false;let o=false;let l=false;const c=(t,e="")=>{{return()=>{}}};const i=(t,e)=>{{return()=>{}}};const f="{visibility:hidden}.hydrated{visibility:inherit}";const r="slot-fb{display:contents}slot-fb[hidden]{display:none}";const u={};const a="http://www.w3.org/2000/svg";const d="http://www.w3.org/1999/xhtml";const v=t=>t!=null;const p=t=>{t=typeof t;return t==="object"||t==="function"};function y(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const h=(t,e,...n)=>{let s=null;let o=null;let l=false;let c=false;const i=[];const f=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(l=typeof t!=="function"&&!p(s)){s=String(s)}if(l&&c){i[i.length-1].t+=s}else{i.push(l?m(null,s):s)}c=l}}};f(n);if(e){if(e.key){o=e.key}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,i,$)}const r=m(t,null);r.o=e;if(i.length>0){r.l=i}{r.i=o}return r};const m=(t,e)=>{const n={u:0,v:t,t:e,p:null,l:null};{n.o=null}{n.i=null}return n};const b={};const w=t=>t&&t.v===b;const $={forEach:(t,e)=>t.map(g).forEach(e),map:(t,e)=>t.map(g).map(e).map(S)};const g=t=>({vattrs:t.o,vchildren:t.l,vkey:t.i,vname:t.h,vtag:t.v,vtext:t.t});const S=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return h(t.vtag,e,...t.vchildren||[])}const e=m(t.vtag,t.vtext);e.o=t.vattrs;e.l=t.vchildren;e.i=t.vkey;e.h=t.vname;return e};const j=(t,e)=>{if(t!=null&&!p(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const O=t=>$t(t).$hostElement$;const k=(t,e,n)=>{const s=O(t);return{emit:t=>C(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const C=(t,e,n)=>{const s=Pt.ce(e,n);t.dispatchEvent(s);return s};const M=new WeakMap;const x=(t,e,n)=>{let s=Mt.get(t);if(Ut&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Mt.set(t,s)};const E=(t,e,n)=>{var s;const o=L(e);const l=Mt.get(o);t=t.nodeType===11?t:Et;if(l){if(typeof l==="string"){t=t.head||t;let n=M.get(t);let c;if(!n){M.set(t,n=new Set)}if(!n.has(o)){{c=Et.createElement("style");c.innerHTML=l;const e=(s=Pt.m)!==null&&s!==void 0?s:y(Et);if(e!=null){c.setAttribute("nonce",e)}t.insertBefore(c,t.querySelector("link"))}if(e.u&4){c.innerHTML+=r}if(n){n.add(o)}}}else if(!t.adoptedStyleSheets.includes(l)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]}}return o};const P=t=>{const e=t.$;const n=t.$hostElement$;const s=e.u;const o=c("attachStyles",e.S);const l=E(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};const L=(t,e)=>"sc-"+t.S;const R=(t,e,n,s,o,l)=>{if(n!==s){let c=jt(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const o=W(n);const l=W(s);e.remove(...o.filter((t=>t&&!l.includes(t))));e.add(...l.filter((t=>t&&!o.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(jt(xt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n||s){const o=e.endsWith(A);e=e.replace(F,"");if(n){Pt.rel(t,e,n,o)}if(s){Pt.ael(t,e,s,o)}}}else{const i=p(s);if((c||i&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=o){t[e]=o}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||l&4||o)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const U=/\s/;const W=t=>!t?[]:t.split(U);const A="Capture";const F=new RegExp(A+"$");const N=(t,e,n,s)=>{const o=e.p.nodeType===11&&e.p.host?e.p.host:e.p;const l=t&&t.o||u;const c=e.o||u;{for(s in l){if(!(s in c)){R(o,s,l[s],undefined,n,e.u)}}}for(s in c){R(o,s,l[s],c[s],n,e.u)}};const T=(t,s,l,c)=>{const i=s.l[l];let f=0;let r;let u;if(i.t!==null){r=i.p=Et.createTextNode(i.t)}else{if(!o){o=i.v==="svg"}r=i.p=Et.createElementNS(o?a:d,i.v);if(o&&i.v==="foreignObject"){o=false}{N(null,i,o)}if(v(e)&&r["s-si"]!==e){r.classList.add(r["s-si"]=e)}if(i.l){for(f=0;f<i.l.length;++f){u=T(t,i,f);if(u){r.appendChild(u)}}}{if(i.v==="svg"){o=false}else if(r.tagName==="foreignObject"){o=true}}}r["s-hn"]=n;return r};const H=(t,e,s,o,l,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===n){i=i.shadowRoot}for(;l<=c;++l){if(o[l]){f=T(null,s,l);if(f){o[l].p=f;i.insertBefore(f,e)}}}};const q=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.p;_(e);if(t){t.remove()}}}};const D=(t,e,n,s,o=false)=>{let l=0;let c=0;let i=0;let f=0;let r=e.length-1;let u=e[0];let a=e[r];let d=s.length-1;let v=s[0];let p=s[d];let y;let h;while(l<=r&&c<=d){if(u==null){u=e[++l]}else if(a==null){a=e[--r]}else if(v==null){v=s[++c]}else if(p==null){p=s[--d]}else if(I(u,v,o)){V(u,v,o);u=e[++l];v=s[++c]}else if(I(a,p,o)){V(a,p,o);a=e[--r];p=s[--d]}else if(I(u,p,o)){V(u,p,o);t.insertBefore(u.p,a.p.nextSibling);u=e[++l];p=s[--d]}else if(I(a,v,o)){V(a,v,o);t.insertBefore(a.p,u.p);a=e[--r];v=s[++c]}else{i=-1;{for(f=l;f<=r;++f){if(e[f]&&e[f].i!==null&&e[f].i===v.i){i=f;break}}}if(i>=0){h=e[i];if(h.v!==v.v){y=T(e&&e[c],n,i)}else{V(h,v,o);e[i]=undefined;y=h.p}v=s[++c]}else{y=T(e&&e[c],n,c);v=s[++c]}if(y){{u.p.parentNode.insertBefore(y,u.p)}}}}if(l>r){H(t,s[d+1]==null?null:s[d+1].p,n,s,c,d)}else if(c>d){q(e,l,r)}};const I=(t,e,n=false)=>{if(t.v===e.v){if(!n){return t.i===e.i}return true}return false};const V=(t,e,n=false)=>{const l=e.p=t.p;const c=t.l;const i=e.l;const f=e.v;const r=e.t;if(r===null){{o=f==="svg"?true:f==="foreignObject"?false:o}{if(f==="slot"&&!s);else{N(t,e,o)}}if(c!==null&&i!==null){D(l,c,e,i,n)}else if(i!==null){if(t.t!==null){l.textContent=""}H(l,null,e,i,0,i.length-1)}else if(c!==null){q(c,0,c.length-1)}if(o&&f==="svg"){o=false}}else if(t.t!==r){l.data=r}};const _=t=>{{t.o&&t.o.ref&&t.o.ref(null);t.l&&t.l.map(_)}};const z=(t,o,l=false)=>{const c=t.$hostElement$;const i=t.$;const f=t.j||m(null,null);const r=w(o)?o:h(null,null,o);n=c.tagName;if(i.O){r.o=r.o||{};i.O.map((([t,e])=>r.o[e]=c[t]))}if(l&&r.o){for(const t of Object.keys(r.o)){if(c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){r.o[t]=c[t]}}}r.v=null;r.u|=4;t.j=r;r.p=f.p=c.shadowRoot||c;{e=c["s-sc"]}s=(i.u&1)!==0;V(f,r,l)};const B=(t,e)=>{if(e&&!t.k&&e["s-p"]){e["s-p"].push(new Promise((e=>t.k=e)))}};const G=(t,e)=>{{t.u|=16}if(t.u&4){t.u|=512;return}B(t,t.C);const n=()=>J(t,e);return qt(n)};const J=(t,e)=>{const n=c("scheduleUpdate",t.$.S);const s=t.M;let o;if(e){{t.u|=256;if(t.P){t.P.map((([t,e])=>nt(s,t,e)));t.P=undefined}}{o=nt(s,"componentWillLoad")}}{o=K(o,(()=>nt(s,"componentWillRender")))}n();return K(o,(()=>X(t,s,e)))};const K=(t,e)=>Q(t)?t.then(e):e();const Q=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const X=async(t,e,n)=>{var s;const o=t.$hostElement$;const l=c("update",t.$.S);const i=o["s-rc"];if(n){P(t)}const f=c("render",t.$.S);{Y(t,e,o,n)}if(i){i.map((t=>t()));o["s-rc"]=undefined}f();l();{const e=(s=o["s-p"])!==null&&s!==void 0?s:[];const n=()=>Z(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.u|=4;e.length=0}}};const Y=(t,e,n,s)=>{try{e=e.render();{t.u&=~16}{t.u|=2}{{{z(t,e,s)}}}}catch(e){Ot(e,t.$hostElement$)}return null};const Z=t=>{const e=t.$.S;const n=t.$hostElement$;const s=c("postUpdate",e);const o=t.M;const l=t.C;if(!(t.u&64)){t.u|=64;{st(n)}{nt(o,"componentDidLoad")}s();{t.L(n);if(!l){et()}}}else{s()}{t.R(n)}{if(t.k){t.k();t.k=undefined}if(t.u&512){Ht((()=>G(t,false)))}t.u&=~(4|512)}};const tt=t=>{{const e=$t(t);const n=e.$hostElement$.isConnected;if(n&&(e.u&(2|16))===2){G(e,false)}return n}};const et=e=>{{st(Et.documentElement)}Ht((()=>C(xt,"appload",{detail:{namespace:t}})))};const nt=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){Ot(t)}}return undefined};const st=t=>t.classList.add("hydrated");const ot=(t,e)=>$t(t).U.get(e);const lt=(t,e,n,s)=>{const o=$t(t);const l=o.$hostElement$;const c=o.U.get(e);const i=o.u;const f=o.M;n=j(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){o.U.set(e,n);if(f){if(s.A&&i&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){Ot(t,l)}}))}}if((i&(2|16))===2){G(o,false)}}}};const ct=(t,e,n)=>{var s;const o=t.prototype;if(e.W){if(t.watchers){e.A=t.watchers}const l=Object.entries(e.W);l.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(o,t,{get(){return ot(this,t)},set(n){lt(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(o,t,{value(...e){var n;const s=$t(this);return(n=s===null||s===void 0?void 0:s.F)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.M)===null||n===void 0?void 0:n[t](...e)}))}})}}));if(n&1){const n=new Map;o.attributeChangedCallback=function(t,s,l){Pt.jmp((()=>{var c;const i=n.get(t);if(this.hasOwnProperty(i)){l=this[i];delete this[i]}else if(o.hasOwnProperty(i)&&typeof this[i]==="number"&&this[i]==l){return}else if(i==null){const n=$t(this);const o=n===null||n===void 0?void 0:n.u;if(o&&!(o&8)&&o&128&&l!==s){const o=n.M;const i=(c=e.A)===null||c===void 0?void 0:c[t];i===null||i===void 0?void 0:i.forEach((e=>{if(o[e]!=null){o[e].call(o,l,s,t)}}))}return}this[i]=l===null&&typeof this[i]==="boolean"?false:l}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=e.A)!==null&&s!==void 0?s:{}),...l.filter((([t,e])=>e[0]&15)).map((([t,s])=>{var o;const l=s[1]||t;n.set(l,t);if(s[0]&512){(o=e.O)===null||o===void 0?void 0:o.push([t,l])}return l}))]))}}return t};const it=async(t,e,n,s)=>{let o;if((e.u&32)===0){e.u|=32;const s=n.N;if(s){o=Ct(n);if(o.then){const t=i();o=await o;t()}if(!o.isProxied){{n.A=o.watchers}ct(o,n,2);o.isProxied=true}const t=c("createInstance",n.S);{e.u|=8}try{new o(e)}catch(t){Ot(t)}{e.u&=~8}{e.u|=128}t()}else{o=t.constructor;customElements.whenDefined(n.S).then((()=>e.u|=128))}if(o.style){let t=o.style;const e=L(n);if(!Mt.has(e)){const s=c("registerStyles",n.S);x(e,t,!!(n.u&1));s()}}}const l=e.C;const f=()=>G(e,true);if(l&&l["s-rc"]){l["s-rc"].push(f)}else{f()}};const ft=t=>{};const rt=t=>{if((Pt.u&1)===0){const e=$t(t);const n=e.$;const s=c("connectedCallback",n.S);if(!(e.u&1)){e.u|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){B(e,e.C=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{it(t,e,n)}}else{pt(t,e,n.T);if(e===null||e===void 0?void 0:e.M);else if(e===null||e===void 0?void 0:e.H){e.H.then((()=>ft()))}}s()}};const ut=t=>{{nt(t,"disconnectedCallback")}};const at=async t=>{if((Pt.u&1)===0){const e=$t(t);{if(e.q){e.q.map((t=>t()));e.q=undefined}}if(e===null||e===void 0?void 0:e.M){ut(e.M)}else if(e===null||e===void 0?void 0:e.H){e.H.then((()=>ut(e.M)))}}};const dt=(t,e={})=>{var n;const s=c();const o=[];const l=e.exclude||[];const i=xt.customElements;const u=Et.head;const a=u.querySelector("meta[charset]");const d=Et.createElement("style");const v=[];let p;let h=true;Object.assign(Pt,e);Pt.D=new URL(e.resourcesUrl||"./",Et.baseURI).href;let m=false;t.map((t=>{t[1].map((e=>{var n;const s={u:e[0],S:e[1],W:e[2],T:e[3]};if(s.u&4){m=true}{s.W=e[2]}{s.T=e[3]}{s.O=[]}{s.A=(n=e[4])!==null&&n!==void 0?n:{}}const c=s.S;const f=class extends HTMLElement{constructor(t){super(t);t=this;St(t,s);if(s.u&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(p){clearTimeout(p);p=null}if(h){v.push(this)}else{Pt.jmp((()=>rt(this)))}}disconnectedCallback(){Pt.jmp((()=>at(this)))}componentOnReady(){return $t(this).H}};s.N=t[0];if(!l.includes(c)&&!i.get(c)){o.push(c);i.define(c,ct(f,s,1))}}))}));if(o.length>0){if(m){d.textContent+=r}{d.textContent+=o+f}if(d.innerHTML.length){d.setAttribute("data-styles","");const t=(n=Pt.m)!==null&&n!==void 0?n:y(Et);if(t!=null){d.setAttribute("nonce",t)}u.insertBefore(d,a?a.nextSibling:u.firstChild)}}h=false;if(v.length){v.map((t=>t.connectedCallback()))}else{{Pt.jmp((()=>p=setTimeout(et,30)))}}s()};const vt=(t,e)=>e;const pt=(t,e,n,s)=>{if(n){n.map((([n,s,o])=>{const l=ht(t,n);const c=yt(e,o);const i=mt(n);Pt.ael(l,s,c,i);(e.q=e.q||[]).push((()=>Pt.rel(l,s,c,i)))}))}};const yt=(t,e)=>n=>{try{{if(t.u&256){t.M[e](n)}else{(t.P=t.P||[]).push([e,n])}}}catch(t){Ot(t)}};const ht=(t,e)=>{if(e&8)return xt;return t};const mt=t=>Lt?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0;const bt=t=>Pt.m=t;const wt=new WeakMap;const $t=t=>wt.get(t);const gt=(t,e)=>wt.set(e.M=t,e);const St=(t,e)=>{const n={u:0,$hostElement$:t,$:e,U:new Map};{n.F=new Promise((t=>n.R=t))}{n.H=new Promise((t=>n.L=t));t["s-p"]=[];t["s-rc"]=[]}pt(t,n,e.T);return wt.set(t,n)};const jt=(t,e)=>e in t;const Ot=(t,e)=>(0,console.error)(t,e);const kt=new Map;const Ct=(t,e,n)=>{const s=t.S.replace(/-/g,"_");const o=t.N;const l=kt.get(o);if(l){return l[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{kt.set(o,t)}return t[s]}),Ot)};const Mt=new Map;const xt=typeof window!=="undefined"?window:{};const Et=xt.document||{head:{}};const Pt={u:0,D:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const Lt=(()=>{let t=false;try{Et.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(t){}return t})();const Rt=t=>Promise.resolve(t);const Ut=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Wt=[];const At=[];const Ft=(t,e)=>n=>{t.push(n);if(!l){l=true;if(e&&Pt.u&4){Ht(Tt)}else{Pt.raf(Tt)}}};const Nt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){Ot(t)}}t.length=0};const Tt=()=>{Nt(Wt);{Nt(At);if(l=Wt.length>0){Pt.raf(Tt)}}};const Ht=t=>Rt().then(t);const qt=Ft(At,true);export{vt as F,b as H,dt as b,k as c,tt as f,O as g,h,Rt as p,gt as r,bt as s};
3
- //# sourceMappingURL=p-7dde3172.js.map