@usecapsule/core-components 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/css/capsule-core.css +160 -0
  2. package/css/capsule-core.css.map +1 -0
  3. package/dist/capsule/capsule.esm.js +2 -0
  4. package/dist/capsule/capsule.esm.js.map +1 -0
  5. package/dist/capsule/index.esm.js +2 -0
  6. package/dist/capsule/index.esm.js.map +1 -0
  7. package/dist/capsule/p-11048392.entry.js +2 -0
  8. package/dist/capsule/p-11048392.entry.js.map +1 -0
  9. package/dist/capsule/p-62e7869a.entry.js +2 -0
  10. package/dist/capsule/p-62e7869a.entry.js.map +1 -0
  11. package/dist/capsule/p-888b5108.entry.js +20 -0
  12. package/dist/capsule/p-888b5108.entry.js.map +1 -0
  13. package/dist/capsule/p-9647dd63.js +3 -0
  14. package/dist/capsule/p-9647dd63.js.map +1 -0
  15. package/dist/capsule/p-b7cb3ddd.entry.js +2 -0
  16. package/dist/capsule/p-b7cb3ddd.entry.js.map +1 -0
  17. package/dist/capsule/p-d871d963.entry.js +2 -0
  18. package/dist/capsule/p-d871d963.entry.js.map +1 -0
  19. package/dist/capsule/p-e1255160.js +2 -0
  20. package/dist/capsule/p-e1255160.js.map +1 -0
  21. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  23. package/dist/cjs/capsule.cjs.js +27 -0
  24. package/dist/cjs/capsule.cjs.js.map +1 -0
  25. package/dist/cjs/cpsl-alert_17.cjs.entry.js +7483 -0
  26. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
  27. package/dist/cjs/cpsl-col.cjs.entry.js +125 -0
  28. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -0
  29. package/dist/cjs/cpsl-grid.cjs.entry.js +25 -0
  30. package/dist/cjs/cpsl-grid.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-info-box.cjs.entry.js +22 -0
  32. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -0
  33. package/dist/cjs/cpsl-row.cjs.entry.js +22 -0
  34. package/dist/cjs/cpsl-row.cjs.entry.js.map +1 -0
  35. package/dist/cjs/index-2a026742.js +1962 -0
  36. package/dist/cjs/index-2a026742.js.map +1 -0
  37. package/dist/cjs/index.cjs.js +4 -0
  38. package/dist/cjs/index.cjs.js.map +1 -0
  39. package/dist/cjs/loader.cjs.js +17 -0
  40. package/dist/cjs/loader.cjs.js.map +1 -0
  41. package/dist/collection/assets/icons/alert-circle.svg +3 -0
  42. package/dist/collection/assets/icons/angel-list-brand.svg +3 -0
  43. package/dist/collection/assets/icons/angel-list.svg +3 -0
  44. package/dist/collection/assets/icons/apple-brand.svg +3 -0
  45. package/dist/collection/assets/icons/apple.svg +3 -0
  46. package/dist/collection/assets/icons/arrow-narrow.svg +3 -0
  47. package/dist/collection/assets/icons/arrow.svg +3 -0
  48. package/dist/collection/assets/icons/backup-kit.svg +4 -0
  49. package/dist/collection/assets/icons/capsule-logo.svg +18 -0
  50. package/dist/collection/assets/icons/capsule-rings.svg +34 -0
  51. package/dist/collection/assets/icons/capsule.svg +4 -0
  52. package/dist/collection/assets/icons/check.svg +3 -0
  53. package/dist/collection/assets/icons/clock.svg +3 -0
  54. package/dist/collection/assets/icons/close.svg +4 -0
  55. package/dist/collection/assets/icons/clubhouse-brand.svg +4 -0
  56. package/dist/collection/assets/icons/clubhouse.svg +4 -0
  57. package/dist/collection/assets/icons/copy.svg +3 -0
  58. package/dist/collection/assets/icons/discord-brand.svg +4 -0
  59. package/dist/collection/assets/icons/discord.svg +4 -0
  60. package/dist/collection/assets/icons/download-cloud.svg +3 -0
  61. package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
  62. package/dist/collection/assets/icons/dribbble.svg +3 -0
  63. package/dist/collection/assets/icons/eye-off.svg +3 -0
  64. package/dist/collection/assets/icons/eye.svg +4 -0
  65. package/dist/collection/assets/icons/facebook-brand.svg +11 -0
  66. package/dist/collection/assets/icons/facebook.svg +10 -0
  67. package/dist/collection/assets/icons/figma-brand.svg +14 -0
  68. package/dist/collection/assets/icons/figma.svg +3 -0
  69. package/dist/collection/assets/icons/github-brand.svg +10 -0
  70. package/dist/collection/assets/icons/github.svg +10 -0
  71. package/dist/collection/assets/icons/google-brand.svg +13 -0
  72. package/dist/collection/assets/icons/google.svg +10 -0
  73. package/dist/collection/assets/icons/help-circle.svg +3 -0
  74. package/dist/collection/assets/icons/hero-email.svg +34 -0
  75. package/dist/collection/assets/icons/hero-lock.svg +34 -0
  76. package/dist/collection/assets/icons/hero-passkey.svg +33 -0
  77. package/dist/collection/assets/icons/hero-phone.svg +15 -0
  78. package/dist/collection/assets/icons/hero-wallet.svg +44 -0
  79. package/dist/collection/assets/icons/index.js +69 -0
  80. package/dist/collection/assets/icons/index.js.map +1 -0
  81. package/dist/collection/assets/icons/info-circle.svg +3 -0
  82. package/dist/collection/assets/icons/instagram-brand.svg +12 -0
  83. package/dist/collection/assets/icons/instagram.svg +12 -0
  84. package/dist/collection/assets/icons/key.svg +3 -0
  85. package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
  86. package/dist/collection/assets/icons/linkedin.svg +10 -0
  87. package/dist/collection/assets/icons/mail.svg +3 -0
  88. package/dist/collection/assets/icons/more-login-options.svg +12 -0
  89. package/dist/collection/assets/icons/phone.svg +3 -0
  90. package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
  91. package/dist/collection/assets/icons/pintrest.svg +10 -0
  92. package/dist/collection/assets/icons/reddit-brand.svg +11 -0
  93. package/dist/collection/assets/icons/reddit.svg +3 -0
  94. package/dist/collection/assets/icons/signal-brand.svg +3 -0
  95. package/dist/collection/assets/icons/signal.svg +3 -0
  96. package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
  97. package/dist/collection/assets/icons/snapchat.svg +3 -0
  98. package/dist/collection/assets/icons/telegram-brand.svg +15 -0
  99. package/dist/collection/assets/icons/telegram.svg +10 -0
  100. package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
  101. package/dist/collection/assets/icons/tik-tok.svg +3 -0
  102. package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
  103. package/dist/collection/assets/icons/tumblr.svg +10 -0
  104. package/dist/collection/assets/icons/twitter-brand.svg +3 -0
  105. package/dist/collection/assets/icons/twitter.svg +3 -0
  106. package/dist/collection/assets/icons/x-brand.svg +3 -0
  107. package/dist/collection/assets/icons/x.svg +3 -0
  108. package/dist/collection/assets/icons/youtube-brand.svg +11 -0
  109. package/dist/collection/assets/icons/youtube.svg +3 -0
  110. package/dist/collection/collection-manifest.json +32 -0
  111. package/dist/collection/components/cpsl-alert/cpsl-alert.css +97 -0
  112. package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
  113. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
  114. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
  115. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
  116. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
  117. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
  118. package/dist/collection/components/cpsl-button/cpsl-button.css +158 -0
  119. package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
  120. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
  121. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
  122. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
  123. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
  124. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
  125. package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
  126. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
  127. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
  128. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
  129. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
  130. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
  131. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
  132. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
  133. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
  134. package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
  135. package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
  136. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
  137. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
  138. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
  139. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
  140. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
  141. package/dist/collection/components/cpsl-divider/cpsl-divider.css +72 -0
  142. package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
  143. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
  144. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
  145. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
  146. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
  147. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
  148. package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
  149. package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
  150. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
  151. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
  152. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
  153. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
  154. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
  155. package/dist/collection/components/cpsl-icon/cpsl-icon.css +81 -0
  156. package/dist/collection/components/cpsl-icon/cpsl-icon.js +69 -0
  157. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
  158. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
  159. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
  160. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
  161. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
  162. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +74 -0
  163. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
  164. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
  165. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
  166. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
  167. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
  168. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
  169. package/dist/collection/components/cpsl-input/cpsl-input.css +187 -0
  170. package/dist/collection/components/cpsl-input/cpsl-input.js +706 -0
  171. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
  172. package/dist/collection/components/cpsl-input/input-interface.js +2 -0
  173. package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
  174. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
  175. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
  176. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
  177. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
  178. package/dist/collection/components/cpsl-modal/cpsl-modal.css +120 -0
  179. package/dist/collection/components/cpsl-modal/cpsl-modal.js +106 -0
  180. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  181. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
  182. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
  183. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
  184. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
  185. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
  186. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +91 -0
  187. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
  188. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
  189. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
  190. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
  191. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
  192. package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
  193. package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
  194. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
  195. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
  196. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
  197. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
  198. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
  199. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
  200. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
  201. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
  202. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
  203. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
  204. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
  205. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
  206. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
  207. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
  208. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +79 -0
  209. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
  210. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
  211. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
  212. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
  213. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
  214. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
  215. package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
  216. package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
  217. package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
  218. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
  219. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
  220. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
  221. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
  222. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +165 -0
  223. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +205 -0
  224. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
  225. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
  226. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
  227. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
  228. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
  229. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
  230. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
  231. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
  232. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
  233. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
  234. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
  235. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
  236. package/dist/collection/components/cpsl-tab/cpsl-tab.css +20 -0
  237. package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
  238. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
  239. package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
  240. package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
  241. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
  242. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
  243. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
  244. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
  245. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +110 -0
  246. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +163 -0
  247. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
  248. package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
  249. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
  250. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
  251. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
  252. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
  253. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
  254. package/dist/collection/components/cpsl-text/cpsl-text.css +59 -0
  255. package/dist/collection/components/cpsl-text/cpsl-text.js +19 -0
  256. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
  257. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
  258. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
  259. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
  260. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
  261. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +94 -0
  262. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
  263. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
  264. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
  265. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
  266. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
  267. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
  268. package/dist/collection/index.js +2 -0
  269. package/dist/collection/index.js.map +1 -0
  270. package/dist/collection/interface.js +2 -0
  271. package/dist/collection/interface.js.map +1 -0
  272. package/dist/collection/utils/media.js +18 -0
  273. package/dist/collection/utils/media.js.map +1 -0
  274. package/dist/esm/app-globals-0f993ce5.js +5 -0
  275. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  276. package/dist/esm/capsule.js +22 -0
  277. package/dist/esm/capsule.js.map +1 -0
  278. package/dist/esm/cpsl-alert_17.entry.js +7463 -0
  279. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  280. package/dist/esm/cpsl-col.entry.js +121 -0
  281. package/dist/esm/cpsl-col.entry.js.map +1 -0
  282. package/dist/esm/cpsl-grid.entry.js +21 -0
  283. package/dist/esm/cpsl-grid.entry.js.map +1 -0
  284. package/dist/esm/cpsl-info-box.entry.js +18 -0
  285. package/dist/esm/cpsl-info-box.entry.js.map +1 -0
  286. package/dist/esm/cpsl-row.entry.js +18 -0
  287. package/dist/esm/cpsl-row.entry.js.map +1 -0
  288. package/dist/esm/index-7c2f5cb9.js +1932 -0
  289. package/dist/esm/index-7c2f5cb9.js.map +1 -0
  290. package/dist/esm/index.js +3 -0
  291. package/dist/esm/index.js.map +1 -0
  292. package/dist/esm/loader.js +13 -0
  293. package/dist/esm/loader.js.map +1 -0
  294. package/dist/esm/polyfills/core-js.js +11 -0
  295. package/dist/esm/polyfills/dom.js +79 -0
  296. package/dist/esm/polyfills/es5-html-element.js +1 -0
  297. package/dist/esm/polyfills/index.js +34 -0
  298. package/dist/esm/polyfills/system.js +6 -0
  299. package/dist/index.cjs.js +1 -0
  300. package/dist/index.js +1 -0
  301. package/dist/loader/cdn.js +3 -0
  302. package/dist/loader/index.cjs.js +3 -0
  303. package/dist/loader/index.d.ts +21 -0
  304. package/dist/loader/index.es2017.js +3 -0
  305. package/dist/loader/index.js +4 -0
  306. package/dist/loader/package.json +11 -0
  307. package/dist/scripts/buildIconLibrary.js +33 -0
  308. package/dist/scripts/buildIconLibrary.js.map +1 -0
  309. package/dist/types/Users/taylorbosch/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +5 -0
  310. package/dist/types/assets/icons/index.d.ts +69 -0
  311. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +7 -0
  312. package/dist/types/components/cpsl-button/cpsl-button.d.ts +5 -0
  313. package/dist/types/components/cpsl-code-input/code-change-interface.d.ts +3 -0
  314. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +17 -0
  315. package/dist/types/components/cpsl-col/cpsl-col.d.ts +34 -0
  316. package/dist/types/components/cpsl-divider/cpsl-divider.d.ts +3 -0
  317. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +4 -0
  318. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  319. package/dist/types/components/cpsl-info-box/cpsl-info-box.d.ts +3 -0
  320. package/dist/types/components/cpsl-input/cpsl-input.d.ts +53 -0
  321. package/dist/types/components/cpsl-input/input-interface.d.ts +8 -0
  322. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +15 -0
  323. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +9 -0
  324. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +4 -0
  325. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +5 -0
  326. package/dist/types/components/cpsl-progress-indicator/progress-indicator-interface.d.ts +4 -0
  327. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +8 -0
  328. package/dist/types/components/cpsl-row/cpsl-row.d.ts +3 -0
  329. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +19 -0
  330. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +5 -0
  331. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +14 -0
  332. package/dist/types/components/cpsl-tab/tab-interface.d.ts +4 -0
  333. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +17 -0
  334. package/dist/types/components/cpsl-tabs/tabs-interface.d.ts +9 -0
  335. package/dist/types/components/cpsl-text/cpsl-text.d.ts +3 -0
  336. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  337. package/dist/types/components.d.ts +1094 -0
  338. package/dist/types/index.d.ts +1 -0
  339. package/dist/types/interface.d.ts +10 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  341. package/dist/types/utils/media.d.ts +2 -0
  342. package/package.json +51 -0
  343. package/readme.md +3 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-input.js","sourceRoot":"","sources":["../../../../src/components/cpsl-input/cpsl-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AASrG,MAAM,OAAO,SAAS;;QAGZ,YAAO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IAAI,CAAC,UAAU,CAAQ,CAC5C,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAED,IAAI,QAAQ,GAAG,CAAC,CAAC","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, State, Element, Watch } from '@stencil/core';\nimport { AutocompleteTypes, IconType, TextFieldTypes } from '../../interface';\nimport { InputChangeEventDetail, InputInputEventDetail } from './input-interface';\n\n@Component({\n tag: 'cpsl-input',\n styleUrl: 'cpsl-input.scss',\n shadow: true,\n})\nexport class CpslInput {\n @Element() el!: HTMLCpslInputElement;\n\n private inputId = `cpsl-input-${inputIds++}`;\n /**\n * The value of the input when the input is focused.\n */\n private focusedValue?: string | number | null;\n\n @State() hasFocus = false;\n\n /**\n * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\n * Available options: `\"off\"`, `\"none\"`, `\"on\"`, `\"sentences\"`, `\"words\"`, `\"characters\"`.\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() autocapitalize = 'off';\n\n /**\n * Indicates whether the value of the control can be automatically completed by the browser.\n */\n @Prop() autocomplete: AutocompleteTypes = 'off';\n\n /**\n * Whether auto correction should be enabled when the user is entering/editing the text value.\n */\n @Prop() autocorrect: 'on' | 'off' = 'off';\n\n /**\n * Whether to disable auto disabling of the slotted components.\n */\n @Prop() noAutoDisable: boolean;\n\n /**\n * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element.\n *\n * This may not be sufficient for the element to be focused on page load.\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() autofocus = false;\n\n /**\n * If `true`, the user cannot interact with the input.\n */\n @Prop() disabled = false;\n\n /**\n * A hint to the browser for which enter key to display.\n * Possible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n * `\"previous\"`, `\"search\"`, and `\"send\"`.\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';\n\n /**\n * Error text to show below the input. If this is provided the input will enter an error state.\n */\n @Prop() errorText?: string;\n\n /**\n * Helper text to show below the input. If `\"errorText\"` is provided that will take precedence.\n */\n @Prop() helperText?: string;\n\n /**\n * A hint to the browser for which keyboard to display.\n * Possible values: `\"none\"`, `\"text\"`, `\"tel\"`, `\"url\"`,\n * `\"email\"`, `\"numeric\"`, `\"decimal\"`, and `\"search\"`.\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() inputmode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';\n\n /**\n * The label for the input.\n */\n @Prop() label?: string;\n\n /**\n * The maximum value, which must not be less than its minimum (min attribute) value.\n */\n @Prop() max?: string | number;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter.\n */\n @Prop() maxlength?: number;\n\n /**\n * The minimum value, which must not be greater than its maximum (max attribute) value.\n */\n @Prop() min?: string | number;\n\n /**\n * If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter.\n */\n @Prop() minlength?: number;\n\n /**\n * If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `\"email\"`, otherwise it is ignored.\n */\n @Prop() multiple?: boolean;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name: string = this.inputId;\n\n /**\n * A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, `\"date\"`, or `\"password\"`, otherwise it is ignored. When the type attribute is `\"date\"`, `pattern` will only be used in browsers that do not support the `\"date\"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information.\n */\n @Prop() pattern?: string;\n\n /**\n * Instructional text that shows before the input has a value.\n * This property applies only when the `type` property is set to `\"email\"`,\n * `\"number\"`, `\"password\"`, `\"search\"`, `\"tel\"`, `\"text\"`, or `\"url\"`, otherwise it is ignored.\n */\n @Prop() placeholder?: string;\n\n /**\n * If `true`, the user cannot modify the value.\n */\n @Prop() readonly = false;\n\n /**\n * If `true`, the user must fill in a value before submitting a form.\n */\n @Prop() required = false;\n\n /**\n * If `true`, the element will have its spelling and grammar checked.\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() spellcheck = false;\n\n /**\n * The external source of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used.\n */\n @Prop() startIconSrc?: string;\n\n /**\n * The name of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used.\n */\n @Prop() startIcon?: IconType;\n\n /**\n * Works with the min and max attributes to limit the increments at which a value can be set.\n * Possible values are: `\"any\"` or a positive floating point number.\n */\n @Prop() step?: string;\n\n /**\n * The type of control to display. The default type is `text`.\n */\n @Prop() type: TextFieldTypes = 'text';\n\n /**\n * The value of the controlled input.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * The `cpslInput` event is fired each time the user modifies the input's value.\n * Unlike the `cpslChange` event, the `cpslInput` event is fired for each alteration\n * to the input's value. This typically happens for each keystroke as the user types.\n *\n * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface\n * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\n * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\n * the input is cleared on edit, the type is `null`.\n */\n @Event() cpslInput!: EventEmitter<InputInputEventDetail>;\n\n /**\n * The `cpslChange` event is fired when the user modifies the input's value.\n * Unlike the `cpslInput` event, the `cpslChange` event is only fired when changes\n * are committed, not as the user types.\n *\n * Depending on the way the users interacts with the element, the `cpslChange`\n * event fires at a different moment:\n * - When the element loses focus after its value has changed: for elements\n * where the user's interaction is typing.\n */\n @Event() cpslChange!: EventEmitter<InputChangeEventDetail>;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() cpslBlur!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() cpslFocus!: EventEmitter<FocusEvent>;\n\n @Watch('disabled')\n handleDisable() {\n if (this.disabled) {\n this.disableSlots();\n } else {\n this.enableSlots();\n }\n }\n\n componentDidLoad() {\n if (Boolean(this.value)) {\n this.enableSlots();\n } else {\n this.disableSlots();\n }\n }\n\n private disableSlots() {\n if (!this.noAutoDisable) {\n this.el.querySelector('[slot=\"end\"]').setAttribute('disabled', 'true');\n this.el.querySelector('[slot=\"start\"]').setAttribute('disabled', 'true');\n }\n }\n\n private enableSlots() {\n this.el.querySelector('[slot=\"end\"]').setAttribute('disabled', 'false');\n this.el.querySelector('[slot=\"start\"]').setAttribute('disabled', 'false');\n }\n\n /**\n * Emits a `cpslInput` event.\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n\n this.cpslInput.emit({ value: newValue, event });\n }\n\n /**\n * Emits a `cpslChange` event.\n *\n * This API should be called for user committed changes.\n * This API should not be used for external value changes.\n */\n private emitValueChange(event?: Event) {\n const { value } = this;\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n // Emitting a value change should update the internal state for tracking the focused value\n this.focusedValue = newValue;\n this.cpslChange.emit({ value: newValue, event });\n }\n\n private onInput = (ev: InputEvent | Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (Boolean(input)) {\n this.value = input.value || '';\n input.value === '' ? this.disableSlots() : this.enableSlots();\n }\n this.emitInputChange(ev);\n };\n\n private onChange = (ev: Event) => {\n this.emitValueChange(ev);\n };\n\n private onBlur = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n /**\n * Emits the `cpslChange` event when the input value\n * is different than the value when the input was focused.\n */\n this.emitValueChange(ev);\n }\n\n this.cpslBlur.emit(ev);\n };\n\n private onFocus = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.cpslFocus.emit(ev);\n };\n\n private focusInput = () => {\n this.nativeInput.focus();\n };\n\n private get nativeInput() {\n return this.el.shadowRoot.getElementById(this.inputId);\n }\n\n render() {\n return (\n <Host class={{ 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': Boolean(this.focusedValue) || Boolean(this.value) }}>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n <div onClick={this.focusInput} class={{ 'input-container': true, 'error-container': Boolean(this.errorText) }}>\n <slot name=\"start\"></slot>\n <input\n class=\"native-input\"\n id={this.inputId}\n disabled={this.disabled}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n autoFocus={this.autofocus}\n enterKeyHint={this.enterkeyhint}\n inputMode={this.inputmode}\n min={this.min}\n max={this.max}\n minLength={this.minlength}\n maxLength={this.maxlength}\n multiple={this.multiple}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder || ''}\n readOnly={this.readonly}\n required={this.required}\n spellcheck={this.spellcheck}\n type={this.type}\n value={this.value}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <slot name=\"end\"></slot>\n </div>\n {(this.errorText || this.helperText) && (\n <div class={{ 'helper-text-container': true, 'error-text': Boolean(this.errorText) }}>\n <cpsl-icon icon={Boolean(this.errorText) ? 'alertCircle' : 'infoCircle'} />\n <span>{this.errorText ?? this.helperText}</span>\n </div>\n )}\n </Host>\n );\n }\n}\n\nlet inputIds = 0;\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input-interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-interface.js","sourceRoot":"","sources":["../../../../src/components/cpsl-input/input-interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Values are converted to strings when emitted which is\n * why we do not have a `number` type here even though the\n * `value` prop accepts a `number` type.\n */\nexport interface InputChangeEventDetail {\n value?: string | null;\n event?: Event;\n}\n\nexport interface InputInputEventDetail {\n value?: string | null;\n event?: Event;\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-input', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-input></cpsl-input>');
25
+ const element = yield page.find('cpsl-input');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-input.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-input.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-input/test/cpsl-input.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;QAEnD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,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-input', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-input></cpsl-input>');\n\n const element = await page.find('cpsl-input');\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 { CpslInput } from "../cpsl-input";
22
+ describe('cpsl-input', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslInput],
26
+ html: `<cpsl-input></cpsl-input>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-input>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-input>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-input.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-input.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-input/test/cpsl-input.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,SAAS,CAAC;YACvB,IAAI,EAAE,2BAA2B;SAClC,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 { CpslInput } from '../cpsl-input';\n\ndescribe('cpsl-input', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslInput],\n html: `<cpsl-input></cpsl-input>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-input>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-input>\n `);\n });\n});\n"]}
@@ -0,0 +1,120 @@
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-width: 360px;
58
+ --container-gap: 16px;
59
+ --container-border-radius: var(--cpsl-border-radius-modal);
60
+ --container-border-width: 1px;
61
+ --container-border-color: var(--cpsl-color-modal-border);
62
+ --container-background-color: var(--cpsl-color-modal-surface-footer);
63
+ --container-padding-bottom: 16px;
64
+ --container-box-shadow: 0px 2px 4px 0px var(--cpsl-color-alpha-black-8);
65
+ --inner-container-background-color: var(--cpsl-color-modal-surface-main);
66
+ --inner-container-border-radius: var(--cpsl-border-radius-modal);
67
+ --inner-container-box-shadow: 0px 1px 2px 0px var(--cpsl-color-alpha-black-8);
68
+ --inner-container-padding-top: 8px;
69
+ --inner-container-padding-end: 16px;
70
+ --inner-container-padding-bottom: 24px;
71
+ --inner-container-padding-start: 16px;
72
+ --inner-container-margin-bottom: 16px;
73
+ display: inline-block;
74
+ }
75
+
76
+ .modal-container {
77
+ -webkit-padding-start: var(--container-padding-start);
78
+ padding-inline-start: var(--container-padding-start);
79
+ -webkit-padding-end: var(--container-padding-end);
80
+ padding-inline-end: var(--container-padding-end);
81
+ padding-top: var(--container-padding-top);
82
+ padding-bottom: var(--container-padding-bottom);
83
+ width: var(--container-width);
84
+ display: flex;
85
+ flex-direction: column;
86
+ border: var(--container-border-width) solid var(--container-border-color);
87
+ border-radius: var(--container-border-radius);
88
+ box-shadow: var(--container-box-shadow);
89
+ background-color: var(--container-background-color);
90
+ }
91
+
92
+ .modal-inner-container {
93
+ -webkit-padding-start: var(--inner-container-padding-start);
94
+ padding-inline-start: var(--inner-container-padding-start);
95
+ -webkit-padding-end: var(--inner-container-padding-end);
96
+ padding-inline-end: var(--inner-container-padding-end);
97
+ padding-top: var(--inner-container-padding-top);
98
+ padding-bottom: var(--inner-container-padding-bottom);
99
+ margin-bottom: var(--inner-container-margin-bottom);
100
+ display: flex;
101
+ flex-direction: column;
102
+ flex: 1;
103
+ border-radius: var(--inner-container-border-radius);
104
+ box-shadow: var(--inner-container-box-shadow);
105
+ background-color: var(--inner-container-background-color);
106
+ }
107
+
108
+ .expanded {
109
+ height: 0px;
110
+ overflow: hidden;
111
+ }
112
+
113
+ .modal-inner-container.no-footer {
114
+ margin-bottom: 0px;
115
+ box-shadow: none;
116
+ }
117
+
118
+ .modal-container.no-footer {
119
+ padding-bottom: 0px;
120
+ }
@@ -0,0 +1,106 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import gsap from "gsap";
3
+ export class CpslModal {
4
+ constructor() {
5
+ this.noFooter = undefined;
6
+ this.footerExpanded = undefined;
7
+ this.transitionDuration = 0.5;
8
+ }
9
+ toggleHeight() {
10
+ this.footerExpanded ? this.expandFooterTl.play() : this.expandFooterTl.reverse();
11
+ }
12
+ componentDidLoad() {
13
+ if (!Boolean(this.el.querySelector('[slot="footer"]'))) {
14
+ this.noFooter = true;
15
+ }
16
+ this.expandFooterTl = gsap
17
+ .timeline({ reversed: true, paused: true })
18
+ .to(this.bodyEl, { height: '0px', duration: this.transitionDuration })
19
+ .to(this.footerEl, { height: '0px', duration: this.transitionDuration }, '<')
20
+ .to(this.footerExpandedEl, { height: 'auto', duration: this.transitionDuration }, '<')
21
+ .to(this.headerEl, { height: '0px', duration: this.transitionDuration }, '<')
22
+ .to(this.headerExpandedEl, { height: 'auto', duration: this.transitionDuration }, '<');
23
+ }
24
+ get bodyEl() {
25
+ return this.el.shadowRoot.getElementById('modal-body');
26
+ }
27
+ get footerEl() {
28
+ return this.el.shadowRoot.getElementById('modal-footer');
29
+ }
30
+ get footerExpandedEl() {
31
+ return this.el.shadowRoot.getElementById('modal-footer-expanded');
32
+ }
33
+ get headerEl() {
34
+ return this.el.shadowRoot.getElementById('modal-header');
35
+ }
36
+ get headerExpandedEl() {
37
+ return this.el.shadowRoot.getElementById('modal-header-expanded');
38
+ }
39
+ render() {
40
+ return (h(Host, { key: '45648b4e6b8d2f18f09b877bc1913115ea506947' }, h("div", { key: '1b04a8c36b4089333f7613ffea2c7235e8549bf9', class: { 'modal-container': true, 'no-footer': this.noFooter } }, h("div", { key: '6f5d4bcf3d1ad5199501d4ba0918f282051932e8', class: { 'modal-inner-container': true, 'no-footer': this.noFooter } }, h("div", { key: '001f1694aad6ae618f81b12648fe4b02a74a3728', id: "modal-header", class: "no-overflow" }, h("slot", { key: '56a22e98051e7a5e8c2d8d9ee351e6f03c01b657', name: "header" })), h("div", { key: 'b9370ca7e9b0233280f22a549c3fac571ff5180b', id: "modal-header-expanded", class: { 'expanded': true, 'no-overflow': true } }, h("slot", { key: 'a30b50116dbcc9b130d3560110a513973e81efe2', name: "footerExpandedHeader" })), h("div", { key: '6a4fa5e0f2d5fc56c1928559b5844b43dc660001', id: "modal-body", class: "no-overflow" }, h("slot", { key: '05dbb046b433a2335a84d843b037243c1a224096', name: "body" }))), h("div", { key: '7b8c37b0fb0417e58483df88591c3bc1374cd47f', id: "modal-footer", class: "no-overflow" }, h("slot", { key: 'fc24c24d862458e1a614efa4435fe43849bff790', name: "footer" })), h("div", { key: '07d939dba8ccfc0d340a181d1c0a048cb4146a26', id: "modal-footer-expanded", class: { 'expanded': true, 'no-overflow': true } }, h("slot", { key: 'e5e77e9d5a0b8c71138ffe320b0dcb0a38af6d93', name: "footerExpandedFooter" })))));
41
+ }
42
+ static get is() { return "cpsl-modal"; }
43
+ static get encapsulation() { return "shadow"; }
44
+ static get originalStyleUrls() {
45
+ return {
46
+ "$": ["cpsl-modal.scss"]
47
+ };
48
+ }
49
+ static get styleUrls() {
50
+ return {
51
+ "$": ["cpsl-modal.css"]
52
+ };
53
+ }
54
+ static get properties() {
55
+ return {
56
+ "footerExpanded": {
57
+ "type": "boolean",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "boolean",
61
+ "resolved": "boolean",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": "Whether or not to show `footerExpandedFooter` and `footerExpandedHeader` slots."
69
+ },
70
+ "attribute": "footer-expanded",
71
+ "reflect": false
72
+ },
73
+ "transitionDuration": {
74
+ "type": "number",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "number",
78
+ "resolved": "number",
79
+ "references": {}
80
+ },
81
+ "required": false,
82
+ "optional": false,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": "Duration in seconds of the footer expansion animation.\nDefault is .5."
86
+ },
87
+ "attribute": "transition-duration",
88
+ "reflect": false,
89
+ "defaultValue": "0.5"
90
+ }
91
+ };
92
+ }
93
+ static get states() {
94
+ return {
95
+ "noFooter": {}
96
+ };
97
+ }
98
+ static get elementRef() { return "el"; }
99
+ static get watchers() {
100
+ return [{
101
+ "propName": "footerExpanded",
102
+ "methodName": "toggleHeight"
103
+ }];
104
+ }
105
+ }
106
+ //# sourceMappingURL=cpsl-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-modal.js","sourceRoot":"","sources":["../../../../src/components/cpsl-modal/cpsl-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,SAAS;;;;kCAgBiB,GAAG;;IAGxC,YAAY;QACV,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;IACnF,CAAC;IAED,gBAAgB;QACd,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC;YACvD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACvB,CAAC;QAED,IAAI,CAAC,cAAc,GAAG,IAAI;aACvB,QAAQ,CAAC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CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC;IACpE,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACjE,4DAAK,KAAK,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE;oBACvE,4DAAK,EAAE,EAAC,cAAc,EAAC,KAAK,EAAC,aAAa;wBACxC,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;oBACN,4DAAK,EAAE,EAAC,uBAAuB,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;wBAC9E,6DAAM,IAAI,EAAC,sBAAsB,GAAQ,CACrC;oBACN,4DAAK,EAAE,EAAC,YAAY,EAAC,KAAK,EAAC,aAAa;wBACtC,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACF;gBACN,4DAAK,EAAE,EAAC,cAAc,EAAC,KAAK,EAAC,aAAa;oBACxC,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;gBACN,4DAAK,EAAE,EAAC,uBAAuB,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;oBAC9E,6DAAM,IAAI,EAAC,sBAAsB,GAAQ,CACrC,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport gsap from 'gsap';\n\n@Component({\n tag: 'cpsl-modal',\n styleUrl: 'cpsl-modal.scss',\n shadow: true,\n})\nexport class CpslModal {\n private expandFooterTl;\n\n @Element() el!: HTMLCpslModalElement;\n\n @State() noFooter: boolean;\n\n /**\n * Whether or not to show `footerExpandedFooter` and `footerExpandedHeader` slots.\n */\n @Prop() footerExpanded: boolean;\n\n /**\n * Duration in seconds of the footer expansion animation.\n * Default is .5.\n */\n @Prop() transitionDuration: number = 0.5;\n\n @Watch('footerExpanded')\n toggleHeight() {\n this.footerExpanded ? this.expandFooterTl.play() : this.expandFooterTl.reverse();\n }\n\n componentDidLoad() {\n if (!Boolean(this.el.querySelector('[slot=\"footer\"]'))) {\n this.noFooter = true;\n }\n\n this.expandFooterTl = gsap\n .timeline({ reversed: true, paused: true })\n .to(this.bodyEl, { height: '0px', duration: this.transitionDuration })\n .to(this.footerEl, { height: '0px', duration: this.transitionDuration }, '<')\n .to(this.footerExpandedEl, { height: 'auto', duration: this.transitionDuration }, '<')\n .to(this.headerEl, { height: '0px', duration: this.transitionDuration }, '<')\n .to(this.headerExpandedEl, { height: 'auto', duration: this.transitionDuration }, '<');\n }\n\n private get bodyEl() {\n return this.el.shadowRoot.getElementById('modal-body');\n }\n\n private get footerEl() {\n return this.el.shadowRoot.getElementById('modal-footer');\n }\n\n private get footerExpandedEl() {\n return this.el.shadowRoot.getElementById('modal-footer-expanded');\n }\n\n private get headerEl() {\n return this.el.shadowRoot.getElementById('modal-header');\n }\n\n private get headerExpandedEl() {\n return this.el.shadowRoot.getElementById('modal-header-expanded');\n }\n\n render() {\n return (\n <Host>\n <div class={{ 'modal-container': true, 'no-footer': this.noFooter }}>\n <div class={{ 'modal-inner-container': true, 'no-footer': this.noFooter }}>\n <div id=\"modal-header\" class=\"no-overflow\">\n <slot name=\"header\"></slot>\n </div>\n <div id=\"modal-header-expanded\" class={{ 'expanded': true, 'no-overflow': true }}>\n <slot name=\"footerExpandedHeader\"></slot>\n </div>\n <div id=\"modal-body\" class=\"no-overflow\">\n <slot name=\"body\"></slot>\n </div>\n </div>\n <div id=\"modal-footer\" class=\"no-overflow\">\n <slot name=\"footer\"></slot>\n </div>\n <div id=\"modal-footer-expanded\" class={{ 'expanded': true, 'no-overflow': true }}>\n <slot name=\"footerExpandedFooter\"></slot>\n </div>\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-modal', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-modal></cpsl-modal>');
25
+ const element = yield page.find('cpsl-modal');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-modal.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-modal.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-modal/test/cpsl-modal.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;QAEnD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,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-modal', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-modal></cpsl-modal>');\n\n const element = await page.find('cpsl-modal');\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 { CpslModal } from "../cpsl-modal";
22
+ describe('cpsl-modal', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslModal],
26
+ html: `<cpsl-modal></cpsl-modal>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-modal>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-modal>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-modal.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-modal.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-modal/test/cpsl-modal.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,SAAS,CAAC;YACvB,IAAI,EAAE,2BAA2B;SAClC,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 { CpslModal } from '../cpsl-modal';\n\ndescribe('cpsl-modal', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslModal],\n html: `<cpsl-modal></cpsl-modal>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-modal>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-modal>\n `);\n });\n});\n"]}
@@ -0,0 +1,11 @@
1
+ :host {
2
+ position: fixed;
3
+ width: 100%;
4
+ height: 100%;
5
+ top: 0;
6
+ left: 0;
7
+ z-index: 100000;
8
+ opacity: 0%;
9
+ display: none;
10
+ background-color: var(--cpsl-color-alpha-black-50);
11
+ }
@@ -0,0 +1,91 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import gsap from "gsap";
3
+ export class CpslOverlay {
4
+ constructor() {
5
+ this.open = undefined;
6
+ this.transitionDuration = 0.5;
7
+ }
8
+ toggleHeight() {
9
+ this.open ? this.showTl.play() : this.showTl.reverse();
10
+ if (this.open) {
11
+ document.documentElement.style.overflow = 'hidden';
12
+ }
13
+ else {
14
+ setTimeout(() => {
15
+ document.documentElement.style.overflow = 'auto';
16
+ }, this.transitionDuration * 1000);
17
+ }
18
+ }
19
+ componentDidLoad() {
20
+ this.showTl = gsap
21
+ .timeline({ reversed: true, paused: true })
22
+ .to(this.el, { display: 'block', duration: this.transitionDuration })
23
+ .to(this.el, { opacity: '100%', duration: this.transitionDuration }, '<');
24
+ if (this.open) {
25
+ this.showTl.play();
26
+ document.documentElement.style.overflow = 'hidden';
27
+ }
28
+ }
29
+ render() {
30
+ return (h(Host, { key: 'ec64ff70a149919dd412cb2f14424c08717adfe1' }, h("slot", { key: '56f2de234d3dbf4375159cd07f45933bfb309866' })));
31
+ }
32
+ static get is() { return "cpsl-overlay"; }
33
+ static get encapsulation() { return "shadow"; }
34
+ static get originalStyleUrls() {
35
+ return {
36
+ "$": ["cpsl-overlay.scss"]
37
+ };
38
+ }
39
+ static get styleUrls() {
40
+ return {
41
+ "$": ["cpsl-overlay.css"]
42
+ };
43
+ }
44
+ static get properties() {
45
+ return {
46
+ "open": {
47
+ "type": "boolean",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "boolean",
51
+ "resolved": "boolean",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Whether or not to show the overlay."
59
+ },
60
+ "attribute": "open",
61
+ "reflect": false
62
+ },
63
+ "transitionDuration": {
64
+ "type": "number",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "number",
68
+ "resolved": "number",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Duration in seconds of the fade in/out animation.\nDefault is .5."
76
+ },
77
+ "attribute": "transition-duration",
78
+ "reflect": false,
79
+ "defaultValue": "0.5"
80
+ }
81
+ };
82
+ }
83
+ static get elementRef() { return "el"; }
84
+ static get watchers() {
85
+ return [{
86
+ "propName": "open",
87
+ "methodName": "toggleHeight"
88
+ }];
89
+ }
90
+ }
91
+ //# sourceMappingURL=cpsl-overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-overlay.js","sourceRoot":"","sources":["../../../../src/components/cpsl-overlay/cpsl-overlay.tsx"],"names":[],"mappings":"AAAA,O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AAO,CACL,EAAC,IAAI;YACH,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Element, Watch } from '@stencil/core';\nimport gsap from 'gsap';\n\n@Component({\n tag: 'cpsl-overlay',\n styleUrl: 'cpsl-overlay.scss',\n shadow: true,\n})\nexport class CpslOverlay {\n private showTl;\n\n @Element() el!: HTMLCpslOverlayElement;\n\n /**\n * Whether or not to show the overlay.\n */\n @Prop() open: boolean;\n\n /**\n * Duration in seconds of the fade in/out animation.\n * Default is .5.\n */\n @Prop() transitionDuration: number = 0.5;\n\n @Watch('open')\n toggleHeight() {\n this.open ? this.showTl.play() : this.showTl.reverse();\n\n if (this.open) {\n document.documentElement.style.overflow = 'hidden';\n } else {\n // Setting a timeout here to prevent modal from shifting when the scroll bar appears\n setTimeout(() => {\n document.documentElement.style.overflow = 'auto';\n }, this.transitionDuration * 1000);\n }\n }\n\n componentDidLoad() {\n this.showTl = gsap\n .timeline({ reversed: true, paused: true })\n .to(this.el, { display: 'block', duration: this.transitionDuration })\n .to(this.el, { opacity: '100%', duration: this.transitionDuration }, '<');\n\n if (this.open) {\n this.showTl.play();\n document.documentElement.style.overflow = 'hidden';\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\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-overlay', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-overlay></cpsl-overlay>');
25
+ const element = yield page.find('cpsl-overlay');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-overlay.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-overlay.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-overlay/test/cpsl-overlay.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;QAEvD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChD,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-overlay', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-overlay></cpsl-overlay>');\n\n const element = await page.find('cpsl-overlay');\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 { CpslOverlay } from "../cpsl-overlay";
22
+ describe('cpsl-overlay', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslOverlay],
26
+ html: `<cpsl-overlay></cpsl-overlay>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-overlay>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-overlay>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-overlay.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-overlay.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-overlay/test/cpsl-overlay.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,IAAI,EAAE,+BAA+B;SACtC,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 { CpslOverlay } from '../cpsl-overlay';\n\ndescribe('cpsl-overlay', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslOverlay],\n html: `<cpsl-overlay></cpsl-overlay>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-overlay>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-overlay>\n `);\n });\n});\n"]}