@usecapsule/core-components 2.0.2 → 2.0.4-dev.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (406) hide show
  1. package/dist/capsule/capsule.esm.js +1 -52
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/index.esm.js +1 -572
  4. package/dist/capsule/index.esm.js.map +1 -1
  5. package/dist/capsule/p-0462f723.js +2 -0
  6. package/dist/capsule/p-0462f723.js.map +1 -0
  7. package/dist/capsule/p-68c73705.entry.js +2 -0
  8. package/dist/capsule/p-68c73705.entry.js.map +1 -0
  9. package/dist/capsule/p-6fb7c4d1.js +3 -0
  10. package/dist/capsule/p-6fb7c4d1.js.map +1 -0
  11. package/dist/capsule/p-91412151.entry.js +2 -0
  12. package/dist/capsule/p-91412151.entry.js.map +1 -0
  13. package/dist/capsule/p-a95ec4df.entry.js +2 -0
  14. package/dist/capsule/p-a95ec4df.entry.js.map +1 -0
  15. package/dist/capsule/p-c2bf050b.js +2 -0
  16. package/dist/capsule/p-c2bf050b.js.map +1 -0
  17. package/dist/capsule/p-cacdef26.entry.js +29 -0
  18. package/dist/capsule/p-cacdef26.entry.js.map +1 -0
  19. package/dist/capsule/p-d7be092d.entry.js +10 -0
  20. package/dist/capsule/p-d7be092d.entry.js.map +1 -0
  21. package/dist/capsule/p-e1255160.js +2 -0
  22. package/dist/capsule/p-e1255160.js.map +1 -0
  23. package/dist/capsule/p-f604b591.entry.js +2 -0
  24. package/dist/capsule/p-f604b591.entry.js.map +1 -0
  25. package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
  26. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
  27. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  28. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  29. package/dist/cjs/capsule.cjs.js +27 -0
  30. package/dist/cjs/capsule.cjs.js.map +1 -0
  31. package/dist/cjs/constants-4bb85cc5.js +12 -0
  32. package/dist/cjs/constants-4bb85cc5.js.map +1 -0
  33. package/dist/cjs/cpsl-alert_17.cjs.entry.js +10737 -0
  34. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
  35. package/dist/cjs/cpsl-animation.cjs.entry.js +20129 -0
  36. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -0
  37. package/dist/cjs/cpsl-col.cjs.entry.js +125 -0
  38. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -0
  39. package/dist/cjs/cpsl-grid.cjs.entry.js +25 -0
  40. package/dist/cjs/cpsl-grid.cjs.entry.js.map +1 -0
  41. package/dist/cjs/cpsl-info-box.cjs.entry.js +22 -0
  42. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -0
  43. package/dist/cjs/cpsl-row.cjs.entry.js +22 -0
  44. package/dist/cjs/cpsl-row.cjs.entry.js.map +1 -0
  45. package/dist/cjs/index-3fccb5b4.js +2012 -0
  46. package/dist/cjs/index-3fccb5b4.js.map +1 -0
  47. package/dist/cjs/index.cjs.js +342 -0
  48. package/dist/cjs/index.cjs.js.map +1 -0
  49. package/dist/cjs/loader.cjs.js +17 -0
  50. package/dist/cjs/loader.cjs.js.map +1 -0
  51. package/dist/collection/assets/icons/alert-circle.svg +3 -0
  52. package/dist/collection/assets/icons/angel-list-brand.svg +3 -0
  53. package/dist/collection/assets/icons/angel-list.svg +3 -0
  54. package/dist/collection/assets/icons/apple-brand.svg +3 -0
  55. package/dist/collection/assets/icons/apple.svg +3 -0
  56. package/dist/collection/assets/icons/arrow-narrow.svg +3 -0
  57. package/dist/collection/assets/icons/arrow.svg +3 -0
  58. package/dist/collection/assets/icons/backup-kit.svg +4 -0
  59. package/dist/collection/assets/icons/capsule-logo.svg +18 -0
  60. package/dist/collection/assets/icons/capsule-rings-dark.svg +34 -0
  61. package/dist/collection/assets/icons/capsule-rings.svg +34 -0
  62. package/dist/collection/assets/icons/capsule.svg +4 -0
  63. package/dist/collection/assets/icons/check.svg +3 -0
  64. package/dist/collection/assets/icons/clock.svg +3 -0
  65. package/dist/collection/assets/icons/close.svg +4 -0
  66. package/dist/collection/assets/icons/clubhouse-brand.svg +4 -0
  67. package/dist/collection/assets/icons/clubhouse.svg +4 -0
  68. package/dist/collection/assets/icons/copy.svg +3 -0
  69. package/dist/collection/assets/icons/decent-brand.svg +3 -0
  70. package/dist/collection/assets/icons/decent.svg +3 -0
  71. package/dist/collection/assets/icons/discord-brand.svg +4 -0
  72. package/dist/collection/assets/icons/discord.svg +4 -0
  73. package/dist/collection/assets/icons/download-cloud.svg +3 -0
  74. package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
  75. package/dist/collection/assets/icons/dribbble.svg +3 -0
  76. package/dist/collection/assets/icons/eye-off.svg +3 -0
  77. package/dist/collection/assets/icons/eye.svg +4 -0
  78. package/dist/collection/assets/icons/facebook-brand.svg +11 -0
  79. package/dist/collection/assets/icons/facebook.svg +10 -0
  80. package/dist/collection/assets/icons/figma-brand.svg +14 -0
  81. package/dist/collection/assets/icons/figma.svg +3 -0
  82. package/dist/collection/assets/icons/github-brand.svg +10 -0
  83. package/dist/collection/assets/icons/github.svg +10 -0
  84. package/dist/collection/assets/icons/google-brand.svg +13 -0
  85. package/dist/collection/assets/icons/google.svg +10 -0
  86. package/dist/collection/assets/icons/help-circle.svg +3 -0
  87. package/dist/collection/assets/icons/hero-email.svg +12 -0
  88. package/dist/collection/assets/icons/hero-lock.svg +4 -0
  89. package/dist/collection/assets/icons/hero-passkey.svg +12 -0
  90. package/dist/collection/assets/icons/hero-phone.svg +4 -0
  91. package/dist/collection/assets/icons/hero-wallet.svg +5 -0
  92. package/dist/collection/assets/icons/index.js +75 -0
  93. package/dist/collection/assets/icons/index.js.map +1 -0
  94. package/dist/collection/assets/icons/info-circle.svg +3 -0
  95. package/dist/collection/assets/icons/instagram-brand.svg +12 -0
  96. package/dist/collection/assets/icons/instagram.svg +12 -0
  97. package/dist/collection/assets/icons/key.svg +3 -0
  98. package/dist/collection/assets/icons/lightning.svg +3 -0
  99. package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
  100. package/dist/collection/assets/icons/linkedin.svg +10 -0
  101. package/dist/collection/assets/icons/mail.svg +3 -0
  102. package/dist/collection/assets/icons/more-login-options.svg +13 -0
  103. package/dist/collection/assets/icons/phone.svg +3 -0
  104. package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
  105. package/dist/collection/assets/icons/pintrest.svg +10 -0
  106. package/dist/collection/assets/icons/plus-circle.svg +5 -0
  107. package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
  108. package/dist/collection/assets/icons/ramp-network.svg +3 -0
  109. package/dist/collection/assets/icons/reddit-brand.svg +11 -0
  110. package/dist/collection/assets/icons/reddit.svg +3 -0
  111. package/dist/collection/assets/icons/signal-brand.svg +3 -0
  112. package/dist/collection/assets/icons/signal.svg +3 -0
  113. package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
  114. package/dist/collection/assets/icons/snapchat.svg +3 -0
  115. package/dist/collection/assets/icons/telegram-brand.svg +15 -0
  116. package/dist/collection/assets/icons/telegram.svg +10 -0
  117. package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
  118. package/dist/collection/assets/icons/tik-tok.svg +3 -0
  119. package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
  120. package/dist/collection/assets/icons/tumblr.svg +10 -0
  121. package/dist/collection/assets/icons/twitter-brand.svg +3 -0
  122. package/dist/collection/assets/icons/twitter.svg +3 -0
  123. package/dist/collection/assets/icons/wallet.svg +5 -0
  124. package/dist/collection/assets/icons/youtube-brand.svg +11 -0
  125. package/dist/collection/assets/icons/youtube.svg +3 -0
  126. package/dist/collection/collection-manifest.json +33 -0
  127. package/dist/collection/components/cpsl-alert/cpsl-alert.css +98 -0
  128. package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
  129. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
  130. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
  131. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
  132. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
  133. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
  134. package/dist/collection/components/cpsl-animation/cpsl-animation.css +17 -0
  135. package/dist/collection/components/cpsl-animation/cpsl-animation.js +102 -0
  136. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -0
  137. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +29 -0
  138. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +1 -0
  139. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +37 -0
  140. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +1 -0
  141. package/dist/collection/components/cpsl-button/cpsl-button.css +162 -0
  142. package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
  143. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
  144. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
  145. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
  146. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
  147. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
  148. package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
  149. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
  150. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
  151. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
  152. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
  153. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
  154. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
  155. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
  156. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
  157. package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
  158. package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
  159. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
  160. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
  161. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
  162. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
  163. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
  164. package/dist/collection/components/cpsl-divider/cpsl-divider.css +73 -0
  165. package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
  166. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
  167. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
  168. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
  169. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
  170. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
  171. package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
  172. package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
  173. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
  174. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
  175. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
  176. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
  177. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
  178. package/dist/collection/components/cpsl-icon/cpsl-icon.css +95 -0
  179. package/dist/collection/components/cpsl-icon/cpsl-icon.js +68 -0
  180. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
  181. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
  182. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
  183. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
  184. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
  185. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +77 -0
  186. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
  187. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
  188. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
  189. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
  190. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
  191. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
  192. package/dist/collection/components/cpsl-input/cpsl-input.css +194 -0
  193. package/dist/collection/components/cpsl-input/cpsl-input.js +708 -0
  194. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
  195. package/dist/collection/components/cpsl-input/input-interface.js +2 -0
  196. package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
  197. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
  198. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
  199. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
  200. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
  201. package/dist/collection/components/cpsl-modal/cpsl-modal.css +172 -0
  202. package/dist/collection/components/cpsl-modal/cpsl-modal.js +431 -0
  203. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  204. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
  205. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
  206. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
  207. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
  208. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
  209. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +108 -0
  210. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
  211. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
  212. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
  213. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
  214. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
  215. package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
  216. package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
  217. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
  218. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
  219. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
  220. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
  221. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
  222. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
  223. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
  224. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
  225. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
  226. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
  227. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
  228. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
  229. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
  230. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
  231. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +81 -0
  232. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
  233. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
  234. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
  235. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
  236. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
  237. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
  238. package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
  239. package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
  240. package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
  241. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
  242. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
  243. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
  244. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
  245. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +175 -0
  246. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +252 -0
  247. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
  248. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
  249. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
  250. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
  251. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
  252. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
  253. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
  254. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
  255. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
  256. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
  257. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
  258. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
  259. package/dist/collection/components/cpsl-tab/cpsl-tab.css +23 -0
  260. package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
  261. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
  262. package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
  263. package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
  264. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
  265. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
  266. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
  267. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
  268. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +111 -0
  269. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +170 -0
  270. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
  271. package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
  272. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
  273. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
  274. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
  275. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
  276. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
  277. package/dist/collection/components/cpsl-text/cpsl-text.css +59 -0
  278. package/dist/collection/components/cpsl-text/cpsl-text.js +19 -0
  279. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
  280. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
  281. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
  282. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
  283. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
  284. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +97 -0
  285. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
  286. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
  287. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
  288. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
  289. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
  290. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
  291. package/dist/collection/constants.js +6 -0
  292. package/dist/collection/constants.js.map +1 -0
  293. package/dist/collection/index.js +3 -0
  294. package/dist/collection/index.js.map +1 -0
  295. package/dist/collection/interface.js +2 -0
  296. package/dist/collection/interface.js.map +1 -0
  297. package/dist/collection/utils/media.js +18 -0
  298. package/dist/collection/utils/media.js.map +1 -0
  299. package/dist/collection/utils/theme/generateBorderRadii.js +56 -0
  300. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -0
  301. package/dist/collection/utils/theme/generateFont.js +7 -0
  302. package/dist/collection/utils/theme/generateFont.js.map +1 -0
  303. package/dist/collection/utils/theme/generatePalette.js +46 -0
  304. package/dist/collection/utils/theme/generatePalette.js.map +1 -0
  305. package/dist/collection/utils/theme/generateTheme.js +12 -0
  306. package/dist/collection/utils/theme/generateTheme.js.map +1 -0
  307. package/dist/collection/utils/theme/utils.js +21 -0
  308. package/dist/collection/utils/theme/utils.js.map +1 -0
  309. package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
  310. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
  311. package/dist/esm/capsule.js +22 -0
  312. package/dist/esm/capsule.js.map +1 -0
  313. package/dist/esm/cpsl-alert_17.entry.js +10717 -0
  314. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  315. package/dist/{capsule → esm}/cpsl-animation.entry.js +20 -114
  316. package/dist/esm/cpsl-animation.entry.js.map +1 -0
  317. package/dist/{capsule → esm}/cpsl-col.entry.js +4 -3
  318. package/dist/esm/cpsl-col.entry.js.map +1 -0
  319. package/dist/{capsule → esm}/cpsl-grid.entry.js +5 -4
  320. package/dist/esm/cpsl-grid.entry.js.map +1 -0
  321. package/dist/{capsule → esm}/cpsl-info-box.entry.js +4 -3
  322. package/dist/esm/cpsl-info-box.entry.js.map +1 -0
  323. package/dist/esm/cpsl-row.entry.js +18 -0
  324. package/dist/esm/cpsl-row.entry.js.map +1 -0
  325. package/dist/esm/index-f00e090c.js +1982 -0
  326. package/dist/esm/index-f00e090c.js.map +1 -0
  327. package/dist/esm/index.js +338 -0
  328. package/dist/esm/index.js.map +1 -0
  329. package/dist/esm/loader.js +13 -0
  330. package/dist/esm/loader.js.map +1 -0
  331. package/dist/esm/polyfills/core-js.js +11 -0
  332. package/dist/esm/polyfills/dom.js +79 -0
  333. package/dist/esm/polyfills/es5-html-element.js +1 -0
  334. package/dist/esm/polyfills/index.js +34 -0
  335. package/dist/esm/polyfills/system.js +6 -0
  336. package/dist/index.cjs.js +1 -0
  337. package/dist/index.js +1 -0
  338. package/dist/loader/cdn.js +3 -0
  339. package/dist/loader/index.cjs.js +3 -0
  340. package/dist/loader/index.d.ts +21 -0
  341. package/dist/loader/index.es2017.js +3 -0
  342. package/dist/loader/index.js +4 -0
  343. package/dist/loader/package.json +11 -0
  344. package/dist/scripts/buildIconLibrary.js +33 -0
  345. package/dist/scripts/buildIconLibrary.js.map +1 -0
  346. package/dist/types/assets/icons/index.d.ts +5 -0
  347. package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
  348. package/dist/types/index.d.ts +1 -1
  349. package/dist/types/interface.d.ts +0 -15
  350. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  351. package/dist/types/utils/theme/generateTheme.d.ts +2 -1
  352. package/package.json +2 -2
  353. package/dist/capsule/_commonjsHelpers-bc8ff177.js +0 -36
  354. package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +0 -1
  355. package/dist/capsule/cpsl-alert.entry.js +0 -31
  356. package/dist/capsule/cpsl-alert.entry.js.map +0 -1
  357. package/dist/capsule/cpsl-animation.entry.js.map +0 -1
  358. package/dist/capsule/cpsl-button.entry.js +0 -24
  359. package/dist/capsule/cpsl-button.entry.js.map +0 -1
  360. package/dist/capsule/cpsl-code-input.entry.js +0 -106
  361. package/dist/capsule/cpsl-code-input.entry.js.map +0 -1
  362. package/dist/capsule/cpsl-col.entry.js.map +0 -1
  363. package/dist/capsule/cpsl-divider.entry.js +0 -17
  364. package/dist/capsule/cpsl-divider.entry.js.map +0 -1
  365. package/dist/capsule/cpsl-grid.entry.js.map +0 -1
  366. package/dist/capsule/cpsl-icon.entry.js +0 -20
  367. package/dist/capsule/cpsl-icon.entry.js.map +0 -1
  368. package/dist/capsule/cpsl-info-box.entry.js.map +0 -1
  369. package/dist/capsule/cpsl-input.entry.js +0 -124
  370. package/dist/capsule/cpsl-input.entry.js.map +0 -1
  371. package/dist/capsule/cpsl-modal.entry.js +0 -3338
  372. package/dist/capsule/cpsl-modal.entry.js.map +0 -1
  373. package/dist/capsule/cpsl-overlay.entry.js +0 -44
  374. package/dist/capsule/cpsl-overlay.entry.js.map +0 -1
  375. package/dist/capsule/cpsl-pill.entry.js +0 -18
  376. package/dist/capsule/cpsl-pill.entry.js.map +0 -1
  377. package/dist/capsule/cpsl-progress-indicator.entry.js +0 -29
  378. package/dist/capsule/cpsl-progress-indicator.entry.js.map +0 -1
  379. package/dist/capsule/cpsl-qr-code.entry.js +0 -56
  380. package/dist/capsule/cpsl-qr-code.entry.js.map +0 -1
  381. package/dist/capsule/cpsl-row.entry.js +0 -17
  382. package/dist/capsule/cpsl-row.entry.js.map +0 -1
  383. package/dist/capsule/cpsl-slide-button.entry.js +0 -130
  384. package/dist/capsule/cpsl-slide-button.entry.js.map +0 -1
  385. package/dist/capsule/cpsl-spinner.entry.js +0 -25
  386. package/dist/capsule/cpsl-spinner.entry.js.map +0 -1
  387. package/dist/capsule/cpsl-tab.entry.js +0 -37
  388. package/dist/capsule/cpsl-tab.entry.js.map +0 -1
  389. package/dist/capsule/cpsl-tabs.entry.js +0 -71
  390. package/dist/capsule/cpsl-tabs.entry.js.map +0 -1
  391. package/dist/capsule/cpsl-text.entry.js +0 -66
  392. package/dist/capsule/cpsl-text.entry.js.map +0 -1
  393. package/dist/capsule/cpsl-tile-button.entry.js +0 -19
  394. package/dist/capsule/cpsl-tile-button.entry.js.map +0 -1
  395. package/dist/capsule/index-3ac1b9e9.js +0 -617
  396. package/dist/capsule/index-3ac1b9e9.js.map +0 -1
  397. package/dist/capsule/index-3ad00c7e.js +0 -6064
  398. package/dist/capsule/index-3ad00c7e.js.map +0 -1
  399. package/dist/capsule/index-f19e63df.js +0 -4148
  400. package/dist/capsule/index-f19e63df.js.map +0 -1
  401. package/dist/capsule/shadow-css-bc9e2af8.js +0 -478
  402. package/dist/capsule/shadow-css-bc9e2af8.js.map +0 -1
  403. /package/dist/{capsule → esm}/app-globals-0f993ce5.js +0 -0
  404. /package/dist/{capsule → esm}/app-globals-0f993ce5.js.map +0 -0
  405. /package/dist/{capsule → esm}/constants-7b49abd5.js +0 -0
  406. /package/dist/{capsule → esm}/constants-7b49abd5.js.map +0 -0
@@ -0,0 +1,121 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslTab {
3
+ constructor() {
4
+ this.onTabClicked = () => {
5
+ this.cpslTabButtonClick.emit({ tab: this.tab, selected: this.selected });
6
+ };
7
+ this.selected = false;
8
+ this.tab = undefined;
9
+ }
10
+ onTabsChanged(ev) {
11
+ this.setSelected(ev);
12
+ }
13
+ onTabsInit(ev) {
14
+ this.setSelected(ev);
15
+ }
16
+ setSelected(ev) {
17
+ const dispatchedFrom = ev.target;
18
+ const parent = this.el.parentElement;
19
+ if (ev.composedPath().includes(parent) || (dispatchedFrom === null || dispatchedFrom === void 0 ? void 0 : dispatchedFrom.contains(this.el))) {
20
+ this.selected = this.tab === ev.detail.tab;
21
+ }
22
+ }
23
+ render() {
24
+ return (h(Host, { key: '482701b2915c5e5e30c3ee8c13ef35ef4c7cfcb8', onClick: this.onTabClicked }, h("div", { key: '583db91ddbbf32225880b03d8521b117a85f5bf1', class: { 'tab-container': true } }, h("slot", { key: 'a1596c1858376a41ee72d4133966fd7ed75e79c0' }))));
25
+ }
26
+ static get is() { return "cpsl-tab"; }
27
+ static get encapsulation() { return "shadow"; }
28
+ static get originalStyleUrls() {
29
+ return {
30
+ "$": ["cpsl-tab.scss"]
31
+ };
32
+ }
33
+ static get styleUrls() {
34
+ return {
35
+ "$": ["cpsl-tab.css"]
36
+ };
37
+ }
38
+ static get properties() {
39
+ return {
40
+ "selected": {
41
+ "type": "boolean",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "boolean",
45
+ "resolved": "boolean",
46
+ "references": {}
47
+ },
48
+ "required": false,
49
+ "optional": false,
50
+ "docs": {
51
+ "tags": [],
52
+ "text": "The selected tab component"
53
+ },
54
+ "attribute": "selected",
55
+ "reflect": false,
56
+ "defaultValue": "false"
57
+ },
58
+ "tab": {
59
+ "type": "string",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "string",
63
+ "resolved": "string",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": "A tab id must be provided for each `cpsl-tab`. It's used internally to reference\nthe selected tab or by the router to switch between them."
71
+ },
72
+ "attribute": "tab",
73
+ "reflect": false
74
+ }
75
+ };
76
+ }
77
+ static get events() {
78
+ return [{
79
+ "method": "cpslTabButtonClick",
80
+ "name": "cpslTabButtonClick",
81
+ "bubbles": true,
82
+ "cancelable": true,
83
+ "composed": true,
84
+ "docs": {
85
+ "tags": [{
86
+ "name": "internal",
87
+ "text": undefined
88
+ }],
89
+ "text": "Emitted when tabs are clicked"
90
+ },
91
+ "complexType": {
92
+ "original": "TabClickEventDetail",
93
+ "resolved": "TabClickEventDetail",
94
+ "references": {
95
+ "TabClickEventDetail": {
96
+ "location": "import",
97
+ "path": "./tab-interface",
98
+ "id": "src/components/cpsl-tab/tab-interface.ts::TabClickEventDetail"
99
+ }
100
+ }
101
+ }
102
+ }];
103
+ }
104
+ static get elementRef() { return "el"; }
105
+ static get listeners() {
106
+ return [{
107
+ "name": "cpslTabsChanged",
108
+ "method": "onTabsChanged",
109
+ "target": "window",
110
+ "capture": false,
111
+ "passive": false
112
+ }, {
113
+ "name": "cpslTabsInit",
114
+ "method": "onTabsInit",
115
+ "target": "window",
116
+ "capture": false,
117
+ "passive": false
118
+ }];
119
+ }
120
+ }
121
+ //# sourceMappingURL=cpsl-tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tab.js","sourceRoot":"","sources":["../../../../src/components/cpsl-tab/cpsl-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAS/F,MAAM,OAAO,OAAO;;QAuCV,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,CAAC,CAAC;wBAnCiB,KAAK;;;IAexB,aAAa,CAAC,EAAuC;QACnD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACvB,CAAC;IAGD,UAAU,CAAC,EAAuC;QAChD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IACvB,CAAC;IAEO,WAAW,CAAC,EAAuC;QACzD,MAAM,cAAc,GAAG,EAAE,CAAC,MAAqB,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,aAA4B,CAAC;QAEpD,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA,EAAE,CAAC;YAC5E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;QAC7C,CAAC;IACH,CAAC;IAMD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,YAAY;YAC9B,4DAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;gBACnC,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, Listen, Element } from '@stencil/core';\nimport { TabClickEventDetail } from './tab-interface';\nimport { TabsChangedEventDetail } from '../cpsl-tabs/tabs-interface';\n\n@Component({\n tag: 'cpsl-tab',\n styleUrl: 'cpsl-tab.scss',\n shadow: true,\n})\nexport class CpslTab {\n @Element() el!: HTMLCpslTabElement;\n\n /**\n * The selected tab component\n */\n @Prop() selected = false;\n\n /**\n * A tab id must be provided for each `cpsl-tab`. It's used internally to reference\n * the selected tab or by the router to switch between them.\n */\n @Prop() tab: string;\n\n /**\n * Emitted when tabs are clicked\n * @internal\n */\n @Event() cpslTabButtonClick!: EventEmitter<TabClickEventDetail>;\n\n @Listen('cpslTabsChanged', { target: 'window' })\n onTabsChanged(ev: CustomEvent<TabsChangedEventDetail>) {\n this.setSelected(ev);\n }\n\n @Listen('cpslTabsInit', { target: 'window' })\n onTabsInit(ev: CustomEvent<TabsChangedEventDetail>) {\n this.setSelected(ev);\n }\n\n private setSelected(ev: CustomEvent<TabsChangedEventDetail>) {\n const dispatchedFrom = ev.target as HTMLElement;\n const parent = this.el.parentElement as EventTarget;\n\n if (ev.composedPath().includes(parent) || dispatchedFrom?.contains(this.el)) {\n this.selected = this.tab === ev.detail.tab;\n }\n }\n\n private onTabClicked = () => {\n this.cpslTabButtonClick.emit({ tab: this.tab, selected: this.selected });\n };\n\n render() {\n return (\n <Host onClick={this.onTabClicked}>\n <div class={{ 'tab-container': true }}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tab-interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-interface.js","sourceRoot":"","sources":["../../../../src/components/cpsl-tab/tab-interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface TabClickEventDetail {\n tab: string;\n selected: boolean;\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-tab', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-tab></cpsl-tab>');
25
+ const element = yield page.find('cpsl-tab');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-tab.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tab.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-tab/test/cpsl-tab.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;QAE/C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,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-tab', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-tab></cpsl-tab>');\n\n const element = await page.find('cpsl-tab');\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 { CpslTab } from "../cpsl-tab";
22
+ describe('cpsl-tab', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslTab],
26
+ html: `<cpsl-tab></cpsl-tab>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-tab>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-tab>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-tab.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tab.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-tab/test/cpsl-tab.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,uBAAuB;SAC9B,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 { CpslTab } from '../cpsl-tab';\n\ndescribe('cpsl-tab', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslTab],\n html: `<cpsl-tab></cpsl-tab>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-tab>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-tab>\n `);\n });\n});\n"]}
@@ -0,0 +1,111 @@
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
+ --tab-top-padding: 5px;
58
+ --tab-bottom-padding: 5px;
59
+ --tab-left-padding: 16px;
60
+ --tab-right-padding: 16px;
61
+ --tabs-border-radius: var(--cpsl-border-radius-tabs);
62
+ --tabs-font-size: 12px;
63
+ --tabs-line-height: 24px;
64
+ --tabs-border-width: 1px;
65
+ --tabs-border-color: var(--cpsl-color-tabs-border);
66
+ --tabs-background-color: var(--cpsl-color-tabs-background);
67
+ --slider-background-color: var(--cpsl-color-tabs-slider-background);
68
+ display: inline-block;
69
+ max-width: 100%;
70
+ font-family: var(--cpsl-font-family, inherit);
71
+ }
72
+
73
+ :host(.full-width) {
74
+ display: block;
75
+ }
76
+
77
+ .tabs-container {
78
+ position: relative;
79
+ display: flex;
80
+ overflow-x: scroll;
81
+ overflow-y: hidden;
82
+ border-width: var(--tabs-border-width);
83
+ border-style: solid;
84
+ border-color: var(--tabs-border-color);
85
+ border-radius: var(--tabs-border-radius);
86
+ background-color: var(--tabs-background-color);
87
+ font-size: var(--tabs-font-size);
88
+ line-height: var(--tabs-line-height);
89
+ -ms-overflow-style: none;
90
+ scrollbar-width: none;
91
+ }
92
+ .tabs-container::-webkit-scrollbar {
93
+ display: none;
94
+ }
95
+
96
+ .slider {
97
+ position: absolute;
98
+ top: calc(var(--tabs-border-width) * -1);
99
+ bottom: calc(var(--tabs-border-width) * -1);
100
+ left: -1px;
101
+ border-width: var(--tabs-border-width);
102
+ border-style: solid;
103
+ border-color: var(--tabs-border-color);
104
+ border-radius: var(--tabs-border-radius);
105
+ background-color: var(--slider-background-color);
106
+ box-shadow: -1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10);
107
+ }
108
+
109
+ .loaded {
110
+ transition: all 0.5s;
111
+ }
@@ -0,0 +1,170 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslTabs {
3
+ constructor() {
4
+ this.onTabClicked = (ev) => {
5
+ const { tab } = ev.detail;
6
+ if (tab !== this.selectedTab) {
7
+ this.selectedTabRect = getTab(this.tabs, tab).getBoundingClientRect();
8
+ this.cpslTabsChanged.emit({
9
+ tab,
10
+ });
11
+ }
12
+ };
13
+ this.selectedTabRect = undefined;
14
+ this.loaded = false;
15
+ this.fullWidth = undefined;
16
+ this.selectedTab = undefined;
17
+ }
18
+ updateSlider() {
19
+ setTimeout(() => {
20
+ this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();
21
+ }, 50);
22
+ }
23
+ updateTab(newValue, oldValue) {
24
+ if (Boolean(newValue) && !Boolean(oldValue)) {
25
+ this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();
26
+ }
27
+ }
28
+ componentWillLoad() {
29
+ var _a, _b;
30
+ this.selectedTabRect = (_b = (_a = getTab(this.tabs, this.selectedTab)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : { width: 0, x: 0 };
31
+ this.cpslTabsInit.emit({
32
+ tab: this.selectedTab,
33
+ });
34
+ }
35
+ componentDidLoad() {
36
+ var _a, _b;
37
+ this.selectedTabRect = (_b = (_a = getTab(this.tabs, this.selectedTab)) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) !== null && _b !== void 0 ? _b : { width: 0, x: 0 };
38
+ setTimeout(() => {
39
+ this.loaded = true;
40
+ }, 50);
41
+ }
42
+ get tabs() {
43
+ return Array.from(this.el.querySelectorAll('cpsl-tab'));
44
+ }
45
+ render() {
46
+ const tabsPosition = this.el.getBoundingClientRect();
47
+ const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);
48
+ const selectedTabRect = this.selectedTabRect;
49
+ return (h(Host, { key: 'db244b5a0ed262508ff5e5ca45e8f61cfcd6df35', class: { 'full-width': this.fullWidth }, onCpslTabButtonClick: this.onTabClicked }, h("div", { key: '9acd1dcaab946f97d68d5fe625859c245b6fbebc', class: "tabs-container" }, h("slot", { key: '6e58a5354af8118118773c9a296f06b90067d416' }), h("div", { key: '87a9977e13ccc5b3993d459284ce4dc886eb1103', class: { slider: true, loaded: this.loaded }, style: { width: `${selectedTabRect.width}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth * 2}px` } }))));
50
+ }
51
+ static get is() { return "cpsl-tabs"; }
52
+ static get encapsulation() { return "shadow"; }
53
+ static get originalStyleUrls() {
54
+ return {
55
+ "$": ["cpsl-tabs.scss"]
56
+ };
57
+ }
58
+ static get styleUrls() {
59
+ return {
60
+ "$": ["cpsl-tabs.css"]
61
+ };
62
+ }
63
+ static get properties() {
64
+ return {
65
+ "fullWidth": {
66
+ "type": "boolean",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "boolean",
70
+ "resolved": "boolean",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": true,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Whether or not the tabs take the full width of their container."
78
+ },
79
+ "attribute": "full-width",
80
+ "reflect": false
81
+ },
82
+ "selectedTab": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "string",
87
+ "resolved": "string",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": true,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": "The selected tab component"
95
+ },
96
+ "attribute": "selected-tab",
97
+ "reflect": false
98
+ }
99
+ };
100
+ }
101
+ static get states() {
102
+ return {
103
+ "selectedTabRect": {},
104
+ "loaded": {}
105
+ };
106
+ }
107
+ static get events() {
108
+ return [{
109
+ "method": "cpslTabsChanged",
110
+ "name": "cpslTabsChanged",
111
+ "bubbles": true,
112
+ "cancelable": true,
113
+ "composed": true,
114
+ "docs": {
115
+ "tags": [],
116
+ "text": "Emitted when a tab is changed"
117
+ },
118
+ "complexType": {
119
+ "original": "TabsChangedEventDetail",
120
+ "resolved": "TabsChangedEventDetail",
121
+ "references": {
122
+ "TabsChangedEventDetail": {
123
+ "location": "import",
124
+ "path": "./tabs-interface",
125
+ "id": "src/components/cpsl-tabs/tabs-interface.ts::TabsChangedEventDetail"
126
+ }
127
+ }
128
+ }
129
+ }, {
130
+ "method": "cpslTabsInit",
131
+ "name": "cpslTabsInit",
132
+ "bubbles": true,
133
+ "cancelable": true,
134
+ "composed": true,
135
+ "docs": {
136
+ "tags": [{
137
+ "name": "internal",
138
+ "text": undefined
139
+ }],
140
+ "text": "Emitted when tabs are initialized"
141
+ },
142
+ "complexType": {
143
+ "original": "TabsChangedEventDetail",
144
+ "resolved": "TabsChangedEventDetail",
145
+ "references": {
146
+ "TabsChangedEventDetail": {
147
+ "location": "import",
148
+ "path": "./tabs-interface",
149
+ "id": "src/components/cpsl-tabs/tabs-interface.ts::TabsChangedEventDetail"
150
+ }
151
+ }
152
+ }
153
+ }];
154
+ }
155
+ static get elementRef() { return "el"; }
156
+ static get watchers() {
157
+ return [{
158
+ "propName": "fullWidth",
159
+ "methodName": "updateSlider"
160
+ }, {
161
+ "propName": "selectedTab",
162
+ "methodName": "updateTab"
163
+ }];
164
+ }
165
+ }
166
+ const getTab = (tabs, tab) => {
167
+ const tabEl = typeof tab === 'string' ? tabs.find(t => t.tab === tab) : tab;
168
+ return tabEl;
169
+ };
170
+ //# sourceMappingURL=cpsl-tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tabs.js","sourceRoot":"","sources":["../../../../src/components/cpsl-tabs/cpsl-tabs.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Element, h, Event, Prop, EventEmitter, State, Watch } from '@stencil/core';\nimport { TabClickEventDetail } from '../cpsl-tab/tab-interface';\nimport { TabsChangedEventDetail } from './tabs-interface';\n\n@Component({\n tag: 'cpsl-tabs',\n styleUrl: 'cpsl-tabs.scss',\n shadow: true,\n})\nexport class CpslTabs {\n @Element() el!: HTMLCpslTabsElement;\n\n @State() selectedTabRect?: DOMRect;\n @State() loaded: boolean = false;\n\n /**\n * Whether or not the tabs take the full width of their container.\n */\n @Prop() fullWidth?: boolean;\n\n /**\n * The selected tab component\n */\n @Prop() selectedTab?: string;\n\n /**\n * Emitted when a tab is changed\n */\n @Event() cpslTabsChanged!: EventEmitter<TabsChangedEventDetail>;\n\n /**\n * Emitted when tabs are initialized\n * @internal\n */\n @Event() cpslTabsInit!: EventEmitter<TabsChangedEventDetail>;\n\n @Watch('fullWidth')\n updateSlider() {\n // Allow component to condense or expand before recalculating silder\n setTimeout(() => {\n this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();\n }, 50);\n }\n\n @Watch('selectedTab')\n updateTab(newValue?: string, oldValue?: string) {\n if (Boolean(newValue) && !Boolean(oldValue)) {\n this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();\n }\n }\n\n componentWillLoad() {\n this.selectedTabRect = getTab(this.tabs, this.selectedTab)?.getBoundingClientRect() ?? ({ width: 0, x: 0 } as DOMRect);\n\n this.cpslTabsInit.emit({\n tab: this.selectedTab,\n });\n }\n\n componentDidLoad() {\n this.selectedTabRect = getTab(this.tabs, this.selectedTab)?.getBoundingClientRect() ?? ({ width: 0, x: 0 } as DOMRect);\n\n // Allow slider to be rendered with the correct initial style before the transition is added\n setTimeout(() => {\n this.loaded = true;\n }, 50);\n }\n\n private get tabs() {\n return Array.from(this.el.querySelectorAll('cpsl-tab'));\n }\n\n private onTabClicked = (ev: CustomEvent<TabClickEventDetail>) => {\n const { tab } = ev.detail;\n\n if (tab !== this.selectedTab) {\n this.selectedTabRect = getTab(this.tabs, tab).getBoundingClientRect();\n\n this.cpslTabsChanged.emit({\n tab,\n });\n }\n };\n\n render() {\n const tabsPosition = this.el.getBoundingClientRect();\n // Get border width as a number\n const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);\n const selectedTabRect = this.selectedTabRect;\n\n return (\n <Host class={{ 'full-width': this.fullWidth }} onCpslTabButtonClick={this.onTabClicked}>\n <div class=\"tabs-container\">\n <slot></slot>\n <div\n class={{ slider: true, loaded: this.loaded }}\n style={{ width: `${selectedTabRect.width}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth * 2}px` }}\n />\n </div>\n </Host>\n );\n }\n}\n\nconst getTab = (tabs: HTMLCpslTabElement[], tab: string | HTMLCpslTabElement): HTMLCpslTabElement | undefined => {\n const tabEl = typeof tab === 'string' ? tabs.find(t => t.tab === tab) : tab;\n\n return tabEl;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tabs-interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs-interface.js","sourceRoot":"","sources":["../../../../src/components/cpsl-tabs/tabs-interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface TabsCustomEvent extends CustomEvent {\n detail: { tab: string };\n target: HTMLCpslTabsElement;\n}\n\nexport interface TabsChangedEventDetail {\n tab?: string;\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-tabs', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-tabs></cpsl-tabs>');
25
+ const element = yield page.find('cpsl-tabs');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-tabs.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tabs.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-tabs/test/cpsl-tabs.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC7C,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-tabs', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-tabs></cpsl-tabs>');\n\n const element = await page.find('cpsl-tabs');\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 { CpslTabs } from "../cpsl-tabs";
22
+ describe('cpsl-tabs', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslTabs],
26
+ html: `<cpsl-tabs></cpsl-tabs>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-tabs>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-tabs>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-tabs.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-tabs.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-tabs/test/cpsl-tabs.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,QAAQ,CAAC;YACtB,IAAI,EAAE,yBAAyB;SAChC,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 { CpslTabs } from '../cpsl-tabs';\n\ndescribe('cpsl-tabs', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslTabs],\n html: `<cpsl-tabs></cpsl-tabs>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-tabs>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-tabs>\n `);\n });\n});\n"]}
@@ -0,0 +1,59 @@
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
+ font-family: var(--cpsl-font-family, inherit);
58
+ color: var(--cpsl-color-text-primary);
59
+ }