@usecapsule/core-components 2.0.10 → 3.0.1-dev.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. package/css/capsule-core.css +134 -30
  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-415384b7.entry.js → p-127ac658.entry.js} +2 -2
  8. package/dist/capsule/{p-415384b7.entry.js.map → p-127ac658.entry.js.map} +1 -1
  9. package/dist/capsule/p-39584a7b.entry.js +2 -0
  10. package/dist/capsule/p-39584a7b.entry.js.map +1 -0
  11. package/dist/capsule/{p-b76350fd.entry.js → p-69756614.entry.js} +2 -2
  12. package/dist/capsule/{p-b76350fd.entry.js.map → p-69756614.entry.js.map} +1 -1
  13. package/dist/capsule/p-73398222.entry.js +2 -0
  14. package/dist/capsule/{p-fa4e3c14.entry.js.map → p-73398222.entry.js.map} +1 -1
  15. package/dist/capsule/p-8de15b15.entry.js +29 -0
  16. package/dist/capsule/p-8de15b15.entry.js.map +1 -0
  17. package/dist/capsule/p-97c33636.js +3 -0
  18. package/dist/capsule/p-97c33636.js.map +1 -0
  19. package/dist/capsule/p-f2393be6.js +2 -0
  20. package/dist/capsule/p-f2393be6.js.map +1 -0
  21. package/dist/capsule/p-f72482c3.entry.js +2 -0
  22. package/dist/capsule/{p-6b02ea8d.entry.js.map → p-f72482c3.entry.js.map} +1 -1
  23. package/dist/capsule/{p-4d957466.entry.js → p-fd26ce6e.entry.js} +2 -2
  24. package/dist/capsule/{p-4d957466.entry.js.map → p-fd26ce6e.entry.js.map} +1 -1
  25. package/dist/cjs/capsule.cjs.js +10 -10
  26. package/dist/cjs/capsule.cjs.js.map +1 -1
  27. package/dist/cjs/constants-9b1b01bb.js +29 -0
  28. package/dist/cjs/constants-9b1b01bb.js.map +1 -0
  29. package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +1136 -232
  30. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
  32. package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
  33. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  34. package/dist/cjs/cpsl-info-box.cjs.entry.js +3 -3
  35. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  36. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +55 -0
  37. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -0
  38. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  39. package/dist/cjs/index-5293d431.js +1414 -0
  40. package/dist/cjs/index-5293d431.js.map +1 -0
  41. package/dist/cjs/index.cjs.js +65 -24
  42. package/dist/cjs/index.cjs.js.map +1 -1
  43. package/dist/cjs/loader.cjs.js +2 -2
  44. package/dist/collection/assets/icons/brush.svg +3 -0
  45. package/dist/collection/assets/icons/check-circle.svg +3 -0
  46. package/dist/collection/assets/icons/chevron-up.svg +2 -2
  47. package/dist/collection/assets/icons/close.svg +3 -4
  48. package/dist/collection/assets/icons/cube.svg +3 -0
  49. package/dist/collection/assets/icons/file.svg +3 -0
  50. package/dist/collection/assets/icons/home.svg +3 -0
  51. package/dist/collection/assets/icons/image.svg +3 -0
  52. package/dist/collection/assets/icons/index.js +13 -3
  53. package/dist/collection/assets/icons/index.js.map +1 -1
  54. package/dist/collection/assets/icons/lightning-01.svg +3 -0
  55. package/dist/collection/assets/icons/lightning.svg +2 -2
  56. package/dist/collection/assets/icons/menu.svg +3 -0
  57. package/dist/collection/assets/icons/refresh.svg +3 -0
  58. package/dist/collection/assets/icons/settings.svg +4 -0
  59. package/dist/collection/assets/icons/stars.svg +4 -0
  60. package/dist/collection/assets/icons/x.svg +3 -0
  61. package/dist/collection/collection-manifest.json +18 -2
  62. package/dist/collection/components/cpsl-alert/cpsl-alert.css +21 -11
  63. package/dist/collection/components/cpsl-alert/cpsl-alert.js +34 -26
  64. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  65. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.css +67 -0
  66. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +85 -0
  67. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -0
  68. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +29 -0
  69. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +1 -0
  70. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +37 -0
  71. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +1 -0
  72. package/dist/collection/components/cpsl-avatar/cpsl-avatar.css +31 -0
  73. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +81 -0
  74. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js.map +1 -0
  75. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +29 -0
  76. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +1 -0
  77. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +37 -0
  78. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +1 -0
  79. package/dist/collection/components/cpsl-button/cpsl-button.css +276 -56
  80. package/dist/collection/components/cpsl-button/cpsl-button.js +104 -7
  81. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  82. package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +89 -0
  83. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +78 -0
  84. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -0
  85. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +29 -0
  86. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +1 -0
  87. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +37 -0
  88. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +1 -0
  89. package/dist/collection/components/cpsl-card/cpsl-card.css +81 -0
  90. package/dist/collection/components/cpsl-card/cpsl-card.js +19 -0
  91. package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -0
  92. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +29 -0
  93. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +1 -0
  94. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +37 -0
  95. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +1 -0
  96. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +110 -0
  97. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +64 -0
  98. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js.map +1 -0
  99. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +29 -0
  100. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +1 -0
  101. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +37 -0
  102. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +1 -0
  103. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +1 -1
  104. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +2 -2
  105. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  106. package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
  107. package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -1
  108. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  109. package/dist/collection/components/cpsl-drawer/cpsl-drawer.css +90 -0
  110. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +222 -0
  111. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -0
  112. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +29 -0
  113. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +1 -0
  114. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +37 -0
  115. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +1 -0
  116. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  117. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  118. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.css +210 -0
  119. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +406 -0
  120. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -0
  121. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +29 -0
  122. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +1 -0
  123. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +37 -0
  124. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +1 -0
  125. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  126. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  127. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -1
  128. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  129. package/dist/collection/components/cpsl-input/cpsl-input.css +39 -22
  130. package/dist/collection/components/cpsl-input/cpsl-input.js +47 -11
  131. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  132. package/dist/collection/components/cpsl-modal/cpsl-modal.css +16 -6
  133. package/dist/collection/components/cpsl-modal/cpsl-modal.js +21 -2
  134. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  135. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.css +91 -0
  136. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +224 -0
  137. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -0
  138. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +29 -0
  139. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +1 -0
  140. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +37 -0
  141. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +1 -0
  142. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.css +50 -0
  143. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +78 -0
  144. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -0
  145. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +29 -0
  146. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +1 -0
  147. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +37 -0
  148. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +1 -0
  149. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +62 -4
  150. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +35 -17
  151. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  152. package/dist/collection/components/cpsl-pagination/cpsl-pagination.css +67 -0
  153. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +174 -0
  154. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -0
  155. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +29 -0
  156. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +1 -0
  157. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +37 -0
  158. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +1 -0
  159. package/dist/collection/components/cpsl-pill/cpsl-pill.css +1 -1
  160. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  161. package/dist/collection/components/cpsl-popover/cpsl-popover.css +98 -0
  162. package/dist/collection/components/cpsl-popover/cpsl-popover.js +470 -0
  163. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -0
  164. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +29 -0
  165. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +1 -0
  166. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +37 -0
  167. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +1 -0
  168. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +3 -3
  169. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +1 -1
  170. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  171. package/dist/collection/components/cpsl-radio/cpsl-radio.css +97 -0
  172. package/dist/collection/components/cpsl-radio/cpsl-radio.js +66 -0
  173. package/dist/collection/components/cpsl-radio/cpsl-radio.js.map +1 -0
  174. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +29 -0
  175. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +1 -0
  176. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +37 -0
  177. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +1 -0
  178. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  179. package/dist/collection/components/cpsl-select/cpsl-select.css +227 -0
  180. package/dist/collection/components/cpsl-select/cpsl-select.js +393 -0
  181. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -0
  182. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +29 -0
  183. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +1 -0
  184. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +37 -0
  185. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +1 -0
  186. package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +104 -0
  187. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +85 -0
  188. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -0
  189. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +29 -0
  190. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +1 -0
  191. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +37 -0
  192. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +1 -0
  193. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +3 -3
  194. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  195. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  196. package/dist/collection/components/cpsl-switch/cpsl-switch.css +115 -0
  197. package/dist/collection/components/cpsl-switch/cpsl-switch.js +64 -0
  198. package/dist/collection/components/cpsl-switch/cpsl-switch.js.map +1 -0
  199. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +29 -0
  200. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +1 -0
  201. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +37 -0
  202. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +1 -0
  203. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  204. package/dist/collection/components/cpsl-table/cpsl-table.css +140 -0
  205. package/dist/collection/components/cpsl-table/cpsl-table.js +26 -0
  206. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -0
  207. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +29 -0
  208. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +1 -0
  209. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +37 -0
  210. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +1 -0
  211. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +2 -2
  212. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  213. package/dist/collection/components/cpsl-text/cpsl-text.css +4 -0
  214. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
  215. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  216. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -1
  217. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  218. package/dist/collection/constants.js +14 -0
  219. package/dist/collection/constants.js.map +1 -1
  220. package/dist/collection/index.js.map +1 -1
  221. package/dist/collection/interface.js.map +1 -1
  222. package/dist/collection/utils/theme/generateBorderRadii.js +28 -7
  223. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  224. package/dist/collection/utils/theme/generatePalette.js +30 -18
  225. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  226. package/dist/collection/utils/theme/utils.js +8 -0
  227. package/dist/collection/utils/theme/utils.js.map +1 -1
  228. package/dist/esm/capsule.js +11 -11
  229. package/dist/esm/capsule.js.map +1 -1
  230. package/dist/esm/constants-fce138fa.js +23 -0
  231. package/dist/esm/constants-fce138fa.js.map +1 -0
  232. package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_33.entry.js} +1122 -233
  233. package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
  234. package/dist/esm/cpsl-animation.entry.js +1 -1
  235. package/dist/esm/cpsl-col.entry.js +2 -2
  236. package/dist/esm/cpsl-grid.entry.js +3 -3
  237. package/dist/esm/cpsl-info-box.entry.js +3 -3
  238. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  239. package/dist/esm/cpsl-modal-v2.entry.js +51 -0
  240. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -0
  241. package/dist/esm/cpsl-row.entry.js +2 -2
  242. package/dist/esm/index-97ed6ec1.js +1383 -0
  243. package/dist/esm/index-97ed6ec1.js.map +1 -0
  244. package/dist/esm/index.js +65 -24
  245. package/dist/esm/index.js.map +1 -1
  246. package/dist/esm/loader.js +3 -3
  247. package/dist/loader/cdn.js +1 -3
  248. package/dist/loader/index.cjs.js +1 -3
  249. package/dist/loader/index.es2017.js +1 -3
  250. package/dist/loader/index.js +1 -3
  251. package/dist/types/assets/icons/index.d.ts +12 -2
  252. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +2 -2
  253. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +6 -0
  254. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +6 -0
  255. package/dist/types/components/cpsl-button/cpsl-button.d.ts +6 -1
  256. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +9 -0
  257. package/dist/types/components/cpsl-card/cpsl-card.d.ts +3 -0
  258. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +7 -0
  259. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +18 -0
  260. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +34 -0
  261. package/dist/types/components/cpsl-input/cpsl-input.d.ts +5 -1
  262. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +1 -0
  263. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +17 -0
  264. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +9 -0
  265. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +2 -1
  266. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +14 -0
  267. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +33 -0
  268. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +7 -0
  269. package/dist/types/components/cpsl-select/cpsl-select.d.ts +35 -0
  270. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +8 -0
  271. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +7 -0
  272. package/dist/types/components/cpsl-table/cpsl-table.d.ts +6 -0
  273. package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
  274. package/dist/types/components.d.ts +993 -12
  275. package/dist/types/constants.d.ts +14 -0
  276. package/dist/types/index.d.ts +1 -1
  277. package/dist/types/interface.d.ts +79 -0
  278. package/dist/types/stencil-public-runtime.d.ts +3 -8
  279. package/dist/types/utils/theme/utils.d.ts +1 -0
  280. package/package.json +3 -3
  281. package/dist/capsule/p-6b02ea8d.entry.js +0 -2
  282. package/dist/capsule/p-92b0d902.entry.js +0 -29
  283. package/dist/capsule/p-92b0d902.entry.js.map +0 -1
  284. package/dist/capsule/p-b2997f3c.js +0 -3
  285. package/dist/capsule/p-b2997f3c.js.map +0 -1
  286. package/dist/capsule/p-c2bf050b.js +0 -2
  287. package/dist/capsule/p-c2bf050b.js.map +0 -1
  288. package/dist/capsule/p-fa4e3c14.entry.js +0 -2
  289. package/dist/cjs/constants-4bb85cc5.js +0 -12
  290. package/dist/cjs/constants-4bb85cc5.js.map +0 -1
  291. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
  292. package/dist/cjs/index-87ba56f9.js +0 -2017
  293. package/dist/cjs/index-87ba56f9.js.map +0 -1
  294. package/dist/collection/assets/icons/farcaster-brand.svg +0 -10
  295. package/dist/collection/assets/icons/farcaster.svg +0 -10
  296. package/dist/esm/constants-7b49abd5.js +0 -9
  297. package/dist/esm/constants-7b49abd5.js.map +0 -1
  298. package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
  299. package/dist/esm/index-fd970ca2.js +0 -1987
  300. package/dist/esm/index-fd970ca2.js.map +0 -1
  301. package/dist/esm/polyfills/core-js.js +0 -11
  302. package/dist/esm/polyfills/dom.js +0 -79
  303. package/dist/esm/polyfills/es5-html-element.js +0 -1
  304. package/dist/esm/polyfills/index.js +0 -34
  305. package/dist/esm/polyfills/system.js +0 -6
  306. /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -0,0 +1,85 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslSelectItem {
3
+ constructor() {
4
+ this.handleItemClick = () => {
5
+ this.cpslSelectItemClick.emit(this.value);
6
+ };
7
+ this.selected = undefined;
8
+ this.value = undefined;
9
+ }
10
+ render() {
11
+ return (h(Host, { key: 'd85478b3b2eaa5c99ba1f3dbc0e3aae6d368540c' }, h("div", { key: '6066108863ef8440f79732e94a7849c06fe8cd5b', class: { container: true, selected: this.selected }, onClick: this.handleItemClick }, h("slot", { key: '857ce8891d6ae250e48e4af417e596b2a99fedb7' }))));
12
+ }
13
+ static get is() { return "cpsl-select-item"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["cpsl-select-item.scss"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["cpsl-select-item.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "selected": {
28
+ "type": "boolean",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "boolean",
32
+ "resolved": "boolean",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": true,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": "Whether the item is selected or not."
40
+ },
41
+ "attribute": "selected",
42
+ "reflect": false
43
+ },
44
+ "value": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "Value of the item."
57
+ },
58
+ "attribute": "value",
59
+ "reflect": false
60
+ }
61
+ };
62
+ }
63
+ static get events() {
64
+ return [{
65
+ "method": "cpslSelectItemClick",
66
+ "name": "cpslSelectItemClick",
67
+ "bubbles": true,
68
+ "cancelable": true,
69
+ "composed": true,
70
+ "docs": {
71
+ "tags": [{
72
+ "name": "internal",
73
+ "text": undefined
74
+ }],
75
+ "text": "Called when item is clicked."
76
+ },
77
+ "complexType": {
78
+ "original": "string",
79
+ "resolved": "string",
80
+ "references": {}
81
+ }
82
+ }];
83
+ }
84
+ }
85
+ //# sourceMappingURL=cpsl-select-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-select-item.js","sourceRoot":"","sources":["../../../../src/components/cpsl-select-item/cpsl-select-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,cAAc;;QAiBjB,oBAAe,GAAG,GAAG,EAAE;YAC7B,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,CAAC,CAAC;;;;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,eAAe;gBACrF,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, Event, h, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-select-item',\n styleUrl: 'cpsl-select-item.scss',\n shadow: true,\n})\nexport class CpslSelectItem {\n /**\n * Whether the item is selected or not.\n */\n @Prop() selected?: boolean;\n\n /**\n * Value of the item.\n */\n @Prop() value: string;\n\n /**\n * Called when item is clicked.\n * @internal\n */\n @Event() cpslSelectItemClick: EventEmitter<string>;\n\n private handleItemClick = () => {\n this.cpslSelectItemClick.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n <div class={{ container: true, selected: this.selected }} onClick={this.handleItemClick}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newE2EPage } from "@stencil/core/testing";
21
+ describe('cpsl-select-item', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-select-item></cpsl-select-item>');
25
+ const element = yield page.find('cpsl-select-item');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-select-item.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-select-item.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-select-item/test/cpsl-select-item.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;QAE/D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QACpD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-select-item', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-select-item></cpsl-select-item>');\n\n const element = await page.find('cpsl-select-item');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newSpecPage } from "@stencil/core/testing";
21
+ import { CpslSelectItem } from "../cpsl-select-item";
22
+ describe('cpsl-select-item', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslSelectItem],
26
+ html: `<cpsl-select-item></cpsl-select-item>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-select-item>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-select-item>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-select-item.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-select-item.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-select-item/test/cpsl-select-item.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,IAAI,EAAE,uCAAuC;SAC9C,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslSelectItem } from '../cpsl-select-item';\n\ndescribe('cpsl-select-item', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslSelectItem],\n html: `<cpsl-select-item></cpsl-select-item>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-select-item>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-select-item>\n `);\n });\n});\n"]}
@@ -101,13 +101,13 @@
101
101
  }
102
102
 
103
103
  .start-slider-container-background {
104
- background-color: var(--slider-container-start-background-color);
104
+ background: var(--slider-container-start-background-color);
105
105
  border-color: var(--slider-container-start-border-color);
106
106
  opacity: 100%;
107
107
  }
108
108
 
109
109
  .end-slider-container-background {
110
- background-color: var(--slider-container-end-background-color);
110
+ background: var(--slider-container-end-background-color);
111
111
  border-color: var(--slider-container-end-border-color);
112
112
  opacity: 0%;
113
113
  }
@@ -160,7 +160,7 @@
160
160
  height: calc(var(--slider-container-height) - 4px);
161
161
  width: calc(var(--slider-container-height) - 4px);
162
162
  color: var(--slider-color);
163
- background-color: var(--slider-background-color);
163
+ background: var(--slider-background-color);
164
164
  border-width: var(--slider-border-width);
165
165
  border-style: solid;
166
166
  border-color: var(--slider-border-color);
@@ -114,7 +114,7 @@ export class CpslSlideButton {
114
114
  return this.el.shadowRoot.getElementById('end-icon');
115
115
  }
116
116
  render() {
117
- return (h(Host, { key: 'ce018bff4b8a965f6828bac0a16ab0ebbf5000d6' }, h("div", { key: '0620f35a12979b3262eca8b1a25a1af59745761d', id: "slider-container", class: "slider-container" }, h("div", { key: '07c87359d2fff731a4432c802845ace2d361980b', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '4140a0ab0f2f59693a35b9d36c0a0b6fd6152fbe', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '39ca4cbcc83d4a8667f93cbeca1dd6c1637d0db2', id: "slider", class: { slider: true, disabled: this.disabled } }, h("cpsl-icon", { key: 'f0733efde0e3a00b34d0dd08267e2893f3dfc658', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), h("cpsl-icon", { key: '5f77af9484aad6bc02a8caa89e5c066334f9835b', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), h("span", { key: 'ebf3026838ed70e406704ba85ecd68c0aa04db13', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), h("span", { key: 'd13ea9ea109900c679c049702760b1c8ce08e38a', id: "end-text", class: "end-text" }, this.endText))));
117
+ return (h(Host, { key: '3596eacfceeab7bff0c45c7993480367d3981d5d' }, h("div", { key: 'c1ea3019d349361d4c60e5754be9c8ff77ade08b', id: "slider-container", class: "slider-container" }, h("div", { key: '49b34608c2315629006d7fc2f56bd8f4658a70e7', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '013654d1ab70af8220908d25d19ac16e31f81441', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: 'f09c57e5150fc41dfece17b8d0d869d8acd2326e', id: "slider", class: { slider: true, disabled: this.disabled } }, h("cpsl-icon", { key: '869f90456a9989e468d2b16d4995253615a40cef', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), h("cpsl-icon", { key: 'fcc96741040125aa98357e7ab46e13da46a780d2', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), h("span", { key: '56d9ebc90c1fcdfd0976574a60be0c4af0d8590d', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), h("span", { key: '6f8e10b9ed8738b899279be1e599b3fcd38a894d', id: "end-text", class: "end-text" }, this.endText))));
118
118
  }
119
119
  static get is() { return "cpsl-slide-button"; }
120
120
  static get encapsulation() { return "shadow"; }
@@ -152,7 +152,7 @@ export class CpslSlideButton {
152
152
  "mutable": false,
153
153
  "complexType": {
154
154
  "original": "IconType",
155
- "resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
155
+ "resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\"",
156
156
  "references": {
157
157
  "IconType": {
158
158
  "location": "import",
@@ -192,7 +192,7 @@ export class CpslSlideButton {
192
192
  "mutable": false,
193
193
  "complexType": {
194
194
  "original": "IconType",
195
- "resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
195
+ "resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\"",
196
196
  "references": {
197
197
  "IconType": {
198
198
  "location": "import",
@@ -5,13 +5,13 @@ export class CpslSpinner {
5
5
  this.speed = 1;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'f52df0bdd08e1de7ffb6cdda5f1791b1524cbbbe', style: {
8
+ return (h(Host, { key: '79425e262154e53691240dec1033910e693c1eaf', style: {
9
9
  'height': `${this.size}px`,
10
10
  'width': `${this.size}px`,
11
11
  'animation': `spin ${this.speed}s linear infinite`,
12
12
  '-webkit-animation': `spin ${this.speed}s linear infinite`,
13
13
  '-moz-animation': `spin ${this.speed}s linear infinite`,
14
- } }, h("svg", { key: '867ba4a123619a10de1700ed9c23a9c154fed67c', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, h("path", { key: 'd4711f92c2dd5d85b01e26e3c3a82f776cd1b72f', d: "M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37", "stroke-width": "6", "stroke-linecap": "round" }), h("circle", { key: '69cbe92b1cc4f8d1736d4529b78fc5969f127844', cx: "45", cy: "27", r: "5" }))));
14
+ } }, h("svg", { key: 'b212d3552fcae69b2e5538bc93c3a016444e9326', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, h("path", { key: '1801af097635352fb4ca20917a11bd66e5fe5543', d: "M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37", "stroke-width": "6", "stroke-linecap": "round" }), h("circle", { key: '1f54bfa6fae3ee4ed705e6442c8eba29d857406f', cx: "45", cy: "27", r: "5" }))));
15
15
  }
16
16
  static get is() { return "cpsl-spinner"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Convert a font size to a dynamic font size.
3
+ * Fonts that participate in Dynamic Type should use
4
+ * dynamic font sizes.
5
+ * @param size - The initial font size including the unit (i.e. px or pt)
6
+ * @param unit (optional) - The unit to convert to. Use this if you want to
7
+ * convert to a unit other than $baselineUnit.
8
+ */
9
+ /**
10
+ * Convert a font size to a dynamic font size but impose
11
+ * a maximum font size.
12
+ * @param size - The initial font size including the unit (i.e. px or pt)
13
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
14
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
15
+ * convert to a unit other than $baselineUnit.
16
+ */
17
+ /**
18
+ * Convert a font size to a dynamic font size but impose
19
+ * a minimum font size.
20
+ * @param size - The initial font size including the unit (i.e. px or pt)
21
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
22
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
23
+ * convert to a unit other than $baselineUnit.
24
+ */
25
+ /**
26
+ * Convert a font size to a dynamic font size but impose
27
+ * maximum and minimum font sizes.
28
+ * @param size - The initial font size including the unit (i.e. px or pt)
29
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
30
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
31
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
32
+ * convert to a unit other than $baselineUnit.
33
+ */
34
+ /**
35
+ * A heuristic that applies CSS to tablet
36
+ * viewports.
37
+ *
38
+ * Usage:
39
+ * @include tablet-viewport() {
40
+ * :host {
41
+ * background-color: green;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * A heuristic that applies CSS to mobile
47
+ * viewports (i.e. phones, not tablets).
48
+ *
49
+ * Usage:
50
+ * @include mobile-viewport() {
51
+ * :host {
52
+ * background-color: blue;
53
+ * }
54
+ * }
55
+ */
56
+ :host {
57
+ --container-height: 24px;
58
+ --container-width: 44px;
59
+ --container-padding: 2px;
60
+ --container-border-radius: var(--cpsl-border-radius-switch);
61
+ --container-background-color-default: var(--cpsl-color-switch-surface-default);
62
+ --container-background-color-checked: var(--cpsl-color-switch-surface-checked);
63
+ --thumb-size: calc(var(--container-height) - var(--container-padding) * 2);
64
+ --thumb-border-radius: var(--cpsl-border-radius-switch);
65
+ --thumb-background-color-default: var(--cpsl-color-switch-thumb-default);
66
+ --thumb-background-color-checked: var(--cpsl-color-switch-thumb-checked);
67
+ display: block;
68
+ position: relative;
69
+ height: var(--container-height);
70
+ width: var(--container-width);
71
+ cursor: pointer;
72
+ }
73
+
74
+ input {
75
+ position: absolute;
76
+ width: 100%;
77
+ height: 100%;
78
+ margin: 0px;
79
+ opacity: 0;
80
+ }
81
+
82
+ span.container {
83
+ display: inline-block;
84
+ position: relative;
85
+ box-sizing: border-box;
86
+ width: 100%;
87
+ height: 100%;
88
+ padding: var(--container-padding);
89
+ border-radius: var(--container-border-radius);
90
+ background: var(--container-background-color-default);
91
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08) inset;
92
+ transition: all 0.15s ease-in-out;
93
+ }
94
+ span.container.checked {
95
+ background: var(--container-background-color-checked);
96
+ box-shadow: none;
97
+ }
98
+
99
+ span.thumb {
100
+ display: inline-block;
101
+ position: relative;
102
+ background: var(--thumb-background-color-default);
103
+ box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1);
104
+ height: var(--thumb-size);
105
+ width: var(--thumb-size);
106
+ border-radius: var(--thumb-border-radius);
107
+ transform: translateX(0);
108
+ left: 0;
109
+ transition: all 0.15s ease-in-out;
110
+ }
111
+ span.thumb.checked {
112
+ background: var(--thumb-background-color-checked);
113
+ left: 100%;
114
+ transform: translateX(-100%);
115
+ }
@@ -0,0 +1,64 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslSwitch {
3
+ constructor() {
4
+ this.handleSwitchClick = () => {
5
+ this.cpslSwitchChanged.emit(!this.checked);
6
+ };
7
+ this.checked = undefined;
8
+ }
9
+ render() {
10
+ return (h(Host, { key: '522bcdfa156531915323f64b620d9207f9006c5b' }, h("input", { key: '2062a1c2d6b412d92e7da8c509a7e26c48fe7cd9', type: "checkbox", checked: this.checked }), h("span", { key: '58d096cdfd809bdb52294ea70a263a58f99971c7', onClick: this.handleSwitchClick, class: { container: true, checked: this.checked } }, h("span", { key: '15b702eb45d8fe3d61d6f2313cc291cd62fbd3c7', class: { thumb: true, checked: this.checked } }))));
11
+ }
12
+ static get is() { return "cpsl-switch"; }
13
+ static get encapsulation() { return "shadow"; }
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["cpsl-switch.scss"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["cpsl-switch.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "checked": {
27
+ "type": "boolean",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "boolean",
31
+ "resolved": "boolean",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": "Whether or not the switch is checked."
39
+ },
40
+ "attribute": "checked",
41
+ "reflect": false
42
+ }
43
+ };
44
+ }
45
+ static get events() {
46
+ return [{
47
+ "method": "cpslSwitchChanged",
48
+ "name": "cpslSwitchChanged",
49
+ "bubbles": true,
50
+ "cancelable": true,
51
+ "composed": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": "Emitted when the switch state changes."
55
+ },
56
+ "complexType": {
57
+ "original": "boolean",
58
+ "resolved": "boolean",
59
+ "references": {}
60
+ }
61
+ }];
62
+ }
63
+ }
64
+ //# sourceMappingURL=cpsl-switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-switch.js","sourceRoot":"","sources":["../../../../src/components/cpsl-switch/cpsl-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAgB,MAAM,eAAe,CAAC;AAO9E,MAAM,OAAO,UAAU;;QAWb,sBAAiB,GAAG,GAAG,EAAE;YAC/B,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC,CAAC;;;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI;YAChD,6DAAM,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;gBACtF,6DAAM,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,GAAI,CAClD,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, Event, h, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-switch',\n styleUrl: 'cpsl-switch.scss',\n shadow: true,\n})\nexport class CpslSwitch {\n /**\n * Whether or not the switch is checked.\n */\n @Prop() checked: boolean;\n\n /**\n * Emitted when the switch state changes.\n */\n @Event() cpslSwitchChanged!: EventEmitter<boolean>;\n\n private handleSwitchClick = () => {\n this.cpslSwitchChanged.emit(!this.checked);\n };\n\n render() {\n return (\n <Host>\n <input type=\"checkbox\" checked={this.checked} />\n <span onClick={this.handleSwitchClick} class={{ container: true, checked: this.checked }}>\n <span class={{ thumb: true, checked: this.checked }} />\n </span>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newE2EPage } from "@stencil/core/testing";
21
+ describe('cpsl-switch', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-switch></cpsl-switch>');
25
+ const element = yield page.find('cpsl-switch');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-switch.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-switch.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-switch/test/cpsl-switch.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QAErD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-switch', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-switch></cpsl-switch>');\n\n const element = await page.find('cpsl-switch');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newSpecPage } from "@stencil/core/testing";
21
+ import { CpslSwitch } from "../cpsl-switch";
22
+ describe('cpsl-switch', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslSwitch],
26
+ html: `<cpsl-switch></cpsl-switch>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-switch>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-switch>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-switch.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-switch.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-switch/test/cpsl-switch.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,UAAU,CAAC;YACxB,IAAI,EAAE,6BAA6B;SACpC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslSwitch } from '../cpsl-switch';\n\ndescribe('cpsl-switch', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslSwitch],\n html: `<cpsl-switch></cpsl-switch>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-switch>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-switch>\n `);\n });\n});\n"]}
@@ -21,7 +21,7 @@ export class CpslTab {
21
21
  }
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: 'ece9ef79afb7bd761b945f8495b5d7a5707eea28', onClick: this.onTabClicked }, h("div", { key: '787d62147f208c37bd7e494499be123317499ed3', class: { 'tab-container': true } }, h("slot", { key: '2834e0f4c14b2940941e0dbe78105835111688cf' }))));
24
+ return (h(Host, { key: '7421ddd0b946411ae0d4415b02d878affbe0ac94', onClick: this.onTabClicked }, h("div", { key: '94a73eac12e6cb326879f4ff8d7bb9977745201f', class: { 'tab-container': true } }, h("slot", { key: '504138d77b041b165448ed5d8027546087852023' }))));
25
25
  }
26
26
  static get is() { return "cpsl-tab"; }
27
27
  static get encapsulation() { return "shadow"; }