@usecapsule/core-components 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (400) 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-81a385a0.entry.js +29 -0
  12. package/dist/capsule/p-81a385a0.entry.js.map +1 -0
  13. package/dist/capsule/p-91412151.entry.js +2 -0
  14. package/dist/capsule/p-91412151.entry.js.map +1 -0
  15. package/dist/capsule/p-a95ec4df.entry.js +2 -0
  16. package/dist/capsule/p-a95ec4df.entry.js.map +1 -0
  17. package/dist/capsule/p-c2bf050b.js +2 -0
  18. package/dist/capsule/p-c2bf050b.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 +10710 -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/discord-brand.svg +4 -0
  70. package/dist/collection/assets/icons/discord.svg +4 -0
  71. package/dist/collection/assets/icons/download-cloud.svg +3 -0
  72. package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
  73. package/dist/collection/assets/icons/dribbble.svg +3 -0
  74. package/dist/collection/assets/icons/eye-off.svg +3 -0
  75. package/dist/collection/assets/icons/eye.svg +4 -0
  76. package/dist/collection/assets/icons/facebook-brand.svg +11 -0
  77. package/dist/collection/assets/icons/facebook.svg +10 -0
  78. package/dist/collection/assets/icons/figma-brand.svg +14 -0
  79. package/dist/collection/assets/icons/figma.svg +3 -0
  80. package/dist/collection/assets/icons/github-brand.svg +10 -0
  81. package/dist/collection/assets/icons/github.svg +10 -0
  82. package/dist/collection/assets/icons/google-brand.svg +13 -0
  83. package/dist/collection/assets/icons/google.svg +10 -0
  84. package/dist/collection/assets/icons/help-circle.svg +3 -0
  85. package/dist/collection/assets/icons/hero-email.svg +12 -0
  86. package/dist/collection/assets/icons/hero-lock.svg +4 -0
  87. package/dist/collection/assets/icons/hero-passkey.svg +12 -0
  88. package/dist/collection/assets/icons/hero-phone.svg +4 -0
  89. package/dist/collection/assets/icons/hero-wallet.svg +5 -0
  90. package/dist/collection/assets/icons/index.js +70 -0
  91. package/dist/collection/assets/icons/index.js.map +1 -0
  92. package/dist/collection/assets/icons/info-circle.svg +3 -0
  93. package/dist/collection/assets/icons/instagram-brand.svg +12 -0
  94. package/dist/collection/assets/icons/instagram.svg +12 -0
  95. package/dist/collection/assets/icons/key.svg +3 -0
  96. package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
  97. package/dist/collection/assets/icons/linkedin.svg +10 -0
  98. package/dist/collection/assets/icons/mail.svg +3 -0
  99. package/dist/collection/assets/icons/more-login-options.svg +13 -0
  100. package/dist/collection/assets/icons/phone.svg +3 -0
  101. package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
  102. package/dist/collection/assets/icons/pintrest.svg +10 -0
  103. package/dist/collection/assets/icons/plus-circle.svg +5 -0
  104. package/dist/collection/assets/icons/reddit-brand.svg +11 -0
  105. package/dist/collection/assets/icons/reddit.svg +3 -0
  106. package/dist/collection/assets/icons/signal-brand.svg +3 -0
  107. package/dist/collection/assets/icons/signal.svg +3 -0
  108. package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
  109. package/dist/collection/assets/icons/snapchat.svg +3 -0
  110. package/dist/collection/assets/icons/telegram-brand.svg +15 -0
  111. package/dist/collection/assets/icons/telegram.svg +10 -0
  112. package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
  113. package/dist/collection/assets/icons/tik-tok.svg +3 -0
  114. package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
  115. package/dist/collection/assets/icons/tumblr.svg +10 -0
  116. package/dist/collection/assets/icons/twitter-brand.svg +3 -0
  117. package/dist/collection/assets/icons/twitter.svg +3 -0
  118. package/dist/collection/assets/icons/wallet.svg +5 -0
  119. package/dist/collection/assets/icons/youtube-brand.svg +11 -0
  120. package/dist/collection/assets/icons/youtube.svg +3 -0
  121. package/dist/collection/collection-manifest.json +33 -0
  122. package/dist/collection/components/cpsl-alert/cpsl-alert.css +98 -0
  123. package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
  124. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
  125. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
  126. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
  127. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
  128. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
  129. package/dist/collection/components/cpsl-animation/cpsl-animation.css +17 -0
  130. package/dist/collection/components/cpsl-animation/cpsl-animation.js +102 -0
  131. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -0
  132. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +29 -0
  133. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +1 -0
  134. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +37 -0
  135. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +1 -0
  136. package/dist/collection/components/cpsl-button/cpsl-button.css +162 -0
  137. package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
  138. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
  139. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
  140. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
  141. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
  142. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
  143. package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
  144. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
  145. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
  146. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
  147. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
  148. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
  149. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
  150. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
  151. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
  152. package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
  153. package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
  154. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
  155. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
  156. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
  157. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
  158. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
  159. package/dist/collection/components/cpsl-divider/cpsl-divider.css +73 -0
  160. package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
  161. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
  162. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
  163. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
  164. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
  165. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
  166. package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
  167. package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
  168. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
  169. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
  170. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
  171. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
  172. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
  173. package/dist/collection/components/cpsl-icon/cpsl-icon.css +95 -0
  174. package/dist/collection/components/cpsl-icon/cpsl-icon.js +68 -0
  175. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
  176. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
  177. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
  178. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
  179. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
  180. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +77 -0
  181. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
  182. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
  183. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
  184. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
  185. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
  186. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
  187. package/dist/collection/components/cpsl-input/cpsl-input.css +194 -0
  188. package/dist/collection/components/cpsl-input/cpsl-input.js +708 -0
  189. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
  190. package/dist/collection/components/cpsl-input/input-interface.js +2 -0
  191. package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
  192. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
  193. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
  194. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
  195. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
  196. package/dist/collection/components/cpsl-modal/cpsl-modal.css +172 -0
  197. package/dist/collection/components/cpsl-modal/cpsl-modal.js +429 -0
  198. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  199. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
  200. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
  201. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
  202. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
  203. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
  204. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +108 -0
  205. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
  206. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
  207. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
  208. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
  209. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
  210. package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
  211. package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
  212. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
  213. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
  214. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
  215. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
  216. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
  217. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
  218. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
  219. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
  220. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
  221. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
  222. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
  223. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
  224. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
  225. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
  226. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +81 -0
  227. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
  228. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
  229. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
  230. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
  231. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
  232. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
  233. package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
  234. package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
  235. package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
  236. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
  237. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
  238. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
  239. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
  240. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +175 -0
  241. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +252 -0
  242. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
  243. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
  244. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
  245. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
  246. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
  247. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
  248. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
  249. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
  250. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
  251. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
  252. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
  253. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
  254. package/dist/collection/components/cpsl-tab/cpsl-tab.css +23 -0
  255. package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
  256. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
  257. package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
  258. package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
  259. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
  260. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
  261. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
  262. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
  263. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +111 -0
  264. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +170 -0
  265. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
  266. package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
  267. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
  268. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
  269. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
  270. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
  271. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
  272. package/dist/collection/components/cpsl-text/cpsl-text.css +59 -0
  273. package/dist/collection/components/cpsl-text/cpsl-text.js +19 -0
  274. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
  275. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
  276. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
  277. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
  278. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
  279. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +97 -0
  280. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
  281. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
  282. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
  283. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
  284. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
  285. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
  286. package/dist/collection/constants.js +6 -0
  287. package/dist/collection/constants.js.map +1 -0
  288. package/dist/collection/index.js +3 -0
  289. package/dist/collection/index.js.map +1 -0
  290. package/dist/collection/interface.js +2 -0
  291. package/dist/collection/interface.js.map +1 -0
  292. package/dist/collection/utils/media.js +18 -0
  293. package/dist/collection/utils/media.js.map +1 -0
  294. package/dist/collection/utils/theme/generateBorderRadii.js +56 -0
  295. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -0
  296. package/dist/collection/utils/theme/generateFont.js +7 -0
  297. package/dist/collection/utils/theme/generateFont.js.map +1 -0
  298. package/dist/collection/utils/theme/generatePalette.js +46 -0
  299. package/dist/collection/utils/theme/generatePalette.js.map +1 -0
  300. package/dist/collection/utils/theme/generateTheme.js +12 -0
  301. package/dist/collection/utils/theme/generateTheme.js.map +1 -0
  302. package/dist/collection/utils/theme/utils.js +21 -0
  303. package/dist/collection/utils/theme/utils.js.map +1 -0
  304. package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
  305. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
  306. package/dist/esm/capsule.js +22 -0
  307. package/dist/esm/capsule.js.map +1 -0
  308. package/dist/esm/cpsl-alert_17.entry.js +10690 -0
  309. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  310. package/dist/{capsule → esm}/cpsl-animation.entry.js +20 -114
  311. package/dist/esm/cpsl-animation.entry.js.map +1 -0
  312. package/dist/{capsule → esm}/cpsl-col.entry.js +4 -3
  313. package/dist/esm/cpsl-col.entry.js.map +1 -0
  314. package/dist/{capsule → esm}/cpsl-grid.entry.js +5 -4
  315. package/dist/esm/cpsl-grid.entry.js.map +1 -0
  316. package/dist/{capsule → esm}/cpsl-info-box.entry.js +4 -3
  317. package/dist/esm/cpsl-info-box.entry.js.map +1 -0
  318. package/dist/esm/cpsl-row.entry.js +18 -0
  319. package/dist/esm/cpsl-row.entry.js.map +1 -0
  320. package/dist/esm/index-f00e090c.js +1982 -0
  321. package/dist/esm/index-f00e090c.js.map +1 -0
  322. package/dist/esm/index.js +338 -0
  323. package/dist/esm/index.js.map +1 -0
  324. package/dist/esm/loader.js +13 -0
  325. package/dist/esm/loader.js.map +1 -0
  326. package/dist/esm/polyfills/core-js.js +11 -0
  327. package/dist/esm/polyfills/dom.js +79 -0
  328. package/dist/esm/polyfills/es5-html-element.js +1 -0
  329. package/dist/esm/polyfills/index.js +34 -0
  330. package/dist/esm/polyfills/system.js +6 -0
  331. package/dist/index.cjs.js +1 -0
  332. package/dist/index.js +1 -0
  333. package/dist/loader/cdn.js +3 -0
  334. package/dist/loader/index.cjs.js +3 -0
  335. package/dist/loader/index.d.ts +21 -0
  336. package/dist/loader/index.es2017.js +3 -0
  337. package/dist/loader/index.js +4 -0
  338. package/dist/loader/package.json +11 -0
  339. package/dist/scripts/buildIconLibrary.js +33 -0
  340. package/dist/scripts/buildIconLibrary.js.map +1 -0
  341. package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
  342. package/dist/types/index.d.ts +1 -1
  343. package/dist/types/interface.d.ts +0 -15
  344. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  345. package/dist/types/utils/theme/generateTheme.d.ts +2 -1
  346. package/package.json +2 -2
  347. package/dist/capsule/_commonjsHelpers-bc8ff177.js +0 -36
  348. package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +0 -1
  349. package/dist/capsule/cpsl-alert.entry.js +0 -31
  350. package/dist/capsule/cpsl-alert.entry.js.map +0 -1
  351. package/dist/capsule/cpsl-animation.entry.js.map +0 -1
  352. package/dist/capsule/cpsl-button.entry.js +0 -24
  353. package/dist/capsule/cpsl-button.entry.js.map +0 -1
  354. package/dist/capsule/cpsl-code-input.entry.js +0 -106
  355. package/dist/capsule/cpsl-code-input.entry.js.map +0 -1
  356. package/dist/capsule/cpsl-col.entry.js.map +0 -1
  357. package/dist/capsule/cpsl-divider.entry.js +0 -17
  358. package/dist/capsule/cpsl-divider.entry.js.map +0 -1
  359. package/dist/capsule/cpsl-grid.entry.js.map +0 -1
  360. package/dist/capsule/cpsl-icon.entry.js +0 -20
  361. package/dist/capsule/cpsl-icon.entry.js.map +0 -1
  362. package/dist/capsule/cpsl-info-box.entry.js.map +0 -1
  363. package/dist/capsule/cpsl-input.entry.js +0 -124
  364. package/dist/capsule/cpsl-input.entry.js.map +0 -1
  365. package/dist/capsule/cpsl-modal.entry.js +0 -3338
  366. package/dist/capsule/cpsl-modal.entry.js.map +0 -1
  367. package/dist/capsule/cpsl-overlay.entry.js +0 -44
  368. package/dist/capsule/cpsl-overlay.entry.js.map +0 -1
  369. package/dist/capsule/cpsl-pill.entry.js +0 -18
  370. package/dist/capsule/cpsl-pill.entry.js.map +0 -1
  371. package/dist/capsule/cpsl-progress-indicator.entry.js +0 -29
  372. package/dist/capsule/cpsl-progress-indicator.entry.js.map +0 -1
  373. package/dist/capsule/cpsl-qr-code.entry.js +0 -56
  374. package/dist/capsule/cpsl-qr-code.entry.js.map +0 -1
  375. package/dist/capsule/cpsl-row.entry.js +0 -17
  376. package/dist/capsule/cpsl-row.entry.js.map +0 -1
  377. package/dist/capsule/cpsl-slide-button.entry.js +0 -130
  378. package/dist/capsule/cpsl-slide-button.entry.js.map +0 -1
  379. package/dist/capsule/cpsl-spinner.entry.js +0 -25
  380. package/dist/capsule/cpsl-spinner.entry.js.map +0 -1
  381. package/dist/capsule/cpsl-tab.entry.js +0 -37
  382. package/dist/capsule/cpsl-tab.entry.js.map +0 -1
  383. package/dist/capsule/cpsl-tabs.entry.js +0 -71
  384. package/dist/capsule/cpsl-tabs.entry.js.map +0 -1
  385. package/dist/capsule/cpsl-text.entry.js +0 -66
  386. package/dist/capsule/cpsl-text.entry.js.map +0 -1
  387. package/dist/capsule/cpsl-tile-button.entry.js +0 -19
  388. package/dist/capsule/cpsl-tile-button.entry.js.map +0 -1
  389. package/dist/capsule/index-3ac1b9e9.js +0 -617
  390. package/dist/capsule/index-3ac1b9e9.js.map +0 -1
  391. package/dist/capsule/index-3ad00c7e.js +0 -6064
  392. package/dist/capsule/index-3ad00c7e.js.map +0 -1
  393. package/dist/capsule/index-f19e63df.js +0 -4148
  394. package/dist/capsule/index-f19e63df.js.map +0 -1
  395. package/dist/capsule/shadow-css-bc9e2af8.js +0 -478
  396. package/dist/capsule/shadow-css-bc9e2af8.js.map +0 -1
  397. /package/dist/{capsule → esm}/app-globals-0f993ce5.js +0 -0
  398. /package/dist/{capsule → esm}/app-globals-0f993ce5.js.map +0 -0
  399. /package/dist/{capsule → esm}/constants-7b49abd5.js +0 -0
  400. /package/dist/{capsule → esm}/constants-7b49abd5.js.map +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as d,h as i,H as p}from"./p-6fb7c4d1.js";const a=":host{-webkit-padding-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xs, var(--cpsl-grid-padding, 0px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-sm, var(--cpsl-grid-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-md, var(--cpsl-grid-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-lg, var(--cpsl-grid-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-start:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));-webkit-padding-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-inline-end:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-top:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px));padding-bottom:var(--cpsl-grid-padding-xl, var(--cpsl-grid-padding, 0px))}}:host(.grid-fixed){width:var(--cpsl-grid-width-xs, var(--cpsl-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--cpsl-grid-width-sm, var(--cpsl-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--cpsl-grid-width-md, var(--cpsl-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--cpsl-grid-width-lg, var(--cpsl-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--cpsl-grid-width-xl, var(--cpsl-grid-width, 1140px))}}:host(.cpsl-no-padding){--cpsl-grid-column-padding:0;--cpsl-grid-column-padding-xs:0;--cpsl-grid-column-padding-sm:0;--cpsl-grid-column-padding-md:0;--cpsl-grid-column-padding-lg:0;--cpsl-grid-column-padding-xl:0}";const g=a;const r=class{constructor(i){d(this,i);this.fixed=false}render(){return i(p,{key:"1d6d165e50e9a7c745bdd699d4123bf4d850d636",class:{"grid-fixed":this.fixed}},i("slot",{key:"11169a28e7cc3ef39b9632b6892750ddb6dbffc6"}))}};r.style=g;export{r as cpsl_grid};
2
+ //# sourceMappingURL=p-91412151.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["cpslGridCss","CpslGridStyle0","CpslGrid","render","h","Host","key","class","this","fixed"],"sources":["src/components/cpsl-grid/cpsl-grid.scss?tag=cpsl-grid&encapsulation=shadow","src/components/cpsl-grid/cpsl-grid.tsx"],"sourcesContent":["@import './cpsl-grid.vars';\n\n// Grid\n// --------------------------------------------------\n\n:host {\n /**\n * @prop --cpsl-grid-padding: Padding for the Grid\n * @prop --cpsl-grid-padding-xs: Padding for the Grid on xs screens\n * @prop --cpsl-grid-padding-sm: Padding for the Grid on sm screens\n * @prop --cpsl-grid-padding-md: Padding for the Grid on md screens\n * @prop --cpsl-grid-padding-lg: Padding for the Grid on lg screens\n * @prop --cpsl-grid-padding-xl: Padding for the Grid on xl screens\n *\n * @prop --cpsl-grid-width: Width of the fixed Grid\n * @prop --cpsl-grid-width-xs: Width of the fixed Grid on xs screens\n * @prop --cpsl-grid-width-sm: Width of the fixed Grid on sm screens\n * @prop --cpsl-grid-width-md: Width of the fixed Grid on md screens\n * @prop --cpsl-grid-width-lg: Width of the fixed Grid on lg screens\n * @prop --cpsl-grid-width-xl: Width of the fixed Grid on xl screens\n */\n\n @include make-breakpoint-padding($grid-paddings);\n @include margin-horizontal(auto);\n\n display: block;\n\n flex: 1;\n}\n\n// Fixed Grid\n// --------------------------------------------------\n\n:host(.grid-fixed) {\n @include make-grid-widths();\n}\n\n// Grid Padding\n// --------------------------------------------------\n\n// Remove the padding from grid and all immediate children columns\n:host(.cpsl-no-padding) {\n --cpsl-grid-column-padding: 0;\n --cpsl-grid-column-padding-xs: 0;\n --cpsl-grid-column-padding-sm: 0;\n --cpsl-grid-column-padding-md: 0;\n --cpsl-grid-column-padding-lg: 0;\n --cpsl-grid-column-padding-xl: 0;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-grid',\n styleUrl: 'cpsl-grid.scss',\n shadow: true,\n})\nexport class CpslGrid {\n /**\n * If `true`, the grid will have a fixed width based on the screen size.\n */\n @Prop() fixed = false;\n\n render() {\n return (\n <Host\n class={{\n 'grid-fixed': this.fixed,\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAc,2vGACpB,MAAAC,EAAeD,E,MCMFE,EAAQ,M,oCAIH,K,CAEhB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO,CACL,aAAcC,KAAKC,QAGrBL,EAAA,QAAAE,IAAA,6C"}
@@ -0,0 +1,2 @@
1
+ import{r as d,f as i,h as n,H as a}from"./p-6fb7c4d1.js";const p={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};const l=d=>{if(d===undefined||d===""){return true}if(window.matchMedia){const i=p[d];return window.matchMedia(i).matches}return false};const r=":host{-webkit-padding-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-start:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));-webkit-padding-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-inline-end:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-top:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));padding-bottom:var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px))}}";const g=r;const c=typeof window!=="undefined"?window:undefined;const s=c&&!!(c.CSS&&c.CSS.supports&&c.CSS.supports("--a: 0"));const t=["","xs","sm","md","lg","xl"];const e=class{constructor(i){d(this,i);this.offset=undefined;this.offsetXs=undefined;this.offsetSm=undefined;this.offsetMd=undefined;this.offsetLg=undefined;this.offsetXl=undefined;this.pull=undefined;this.pullXs=undefined;this.pullSm=undefined;this.pullMd=undefined;this.pullLg=undefined;this.pullXl=undefined;this.push=undefined;this.pushXs=undefined;this.pushSm=undefined;this.pushMd=undefined;this.pushLg=undefined;this.pushXl=undefined;this.size=undefined;this.sizeXs=undefined;this.sizeSm=undefined;this.sizeMd=undefined;this.sizeLg=undefined;this.sizeXl=undefined}onResize(){i(this)}getColumns(d){let i;for(const n of t){const a=l(n);const p=this[d+n.charAt(0).toUpperCase()+n.slice(1)];if(a&&p!==undefined){i=p}}return i}calculateSize(){const d=this.getColumns("size");if(!d||d===""){return}const i=d==="auto"?"auto":s?`calc(calc(${d} / var(--ion-grid-columns, 12)) * 100%)`:d/12*100+"%";return{flex:`0 0 ${i}`,width:`${i}`,"max-width":`${i}`}}calculatePosition(d,i){const n=this.getColumns(d);if(!n){return}const a=s?`calc(calc(${n} / var(--ion-grid-columns, 12)) * 100%)`:n>0&&n<12?n/12*100+"%":"auto";return{[i]:a}}calculateOffset(d){return this.calculatePosition("offset",d?"margin-right":"margin-left")}calculatePull(d){return this.calculatePosition("pull",d?"left":"right")}calculatePush(d){return this.calculatePosition("push",d?"right":"left")}render(){const d=document.dir==="rtl";return n(a,{key:"fdb8a99b8b9225949b4eea931277e461efac29eb",style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(d)),this.calculatePull(d)),this.calculatePush(d)),this.calculateSize())},n("slot",{key:"0976c09d835a37413455f787596a75eafc1db14f"}))}};e.style=g;export{e as cpsl_col};
2
+ //# sourceMappingURL=p-a95ec4df.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SIZE_TO_MEDIA","xs","sm","md","lg","xl","matchBreakpoint","breakpoint","undefined","window","matchMedia","mediaQuery","matches","cpslColCss","CpslColStyle0","win","SUPPORTS_VARS","CSS","supports","BREAKPOINTS","CpslCol","onResize","forceUpdate","this","getColumns","property","matched","columns","charAt","toUpperCase","slice","calculateSize","colSize","flex","width","calculatePosition","modifier","amount","calculateOffset","isRTL","calculatePull","calculatePush","render","document","dir","h","Host","key","style","Object","assign"],"sources":["src/utils/media.ts","src/components/cpsl-col/cpsl-col.scss?tag=cpsl-col&encapsulation=shadow","src/components/cpsl-col/cpsl-col.tsx"],"sourcesContent":["export const SIZE_TO_MEDIA: any = {\n xs: '(min-width: 0px)',\n sm: '(min-width: 576px)',\n md: '(min-width: 768px)',\n lg: '(min-width: 992px)',\n xl: '(min-width: 1200px)',\n};\n\n// Check if the window matches the media query\n// at the breakpoint passed\n// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px\nexport const matchBreakpoint = (breakpoint: string | undefined) => {\n if (breakpoint === undefined || breakpoint === '') {\n return true;\n }\n if ((window as any).matchMedia) {\n const mediaQuery = SIZE_TO_MEDIA[breakpoint];\n return window.matchMedia(mediaQuery).matches;\n }\n return false;\n};\n","@import './cpsl-col.vars';\n\n// Column\n// --------------------------------------------------\n\n:host {\n /**\n * @prop --cpsl-grid-columns: The number of total Columns in the Grid\n * @prop --cpsl-grid-column-padding: Padding for the Column\n * @prop --cpsl-grid-column-padding-xs: Padding for the Column on xs screens and up\n * @prop --cpsl-grid-column-padding-sm: Padding for the Column on sm screens and up\n * @prop --cpsl-grid-column-padding-md: Padding for the Column on md screens and up\n * @prop --cpsl-grid-column-padding-lg: Padding for the Column on lg screens and up\n * @prop --cpsl-grid-column-padding-xl: Padding for the Column on xl screens and up\n */\n @include make-breakpoint-padding($grid-column-paddings);\n @include margin(0);\n\n box-sizing: border-box;\n\n position: relative;\n\n flex-basis: 0;\n flex-grow: 1;\n\n width: 100%;\n max-width: 100%;\n min-height: 1px; // Prevent columns from collapsing when empty\n}\n","import { Component, Host, Listen, Prop, forceUpdate, h } from '@stencil/core';\nimport { matchBreakpoint } from '../../utils/media';\n\nconst win = typeof (window as any) !== 'undefined' ? (window as any) : undefined;\nconst SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));\nconst BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];\n\n@Component({\n tag: 'cpsl-col',\n styleUrl: 'cpsl-col.scss',\n shadow: true,\n})\nexport class CpslCol {\n /**\n * The amount to offset the column, in terms of how many columns it should shift to the end\n * of the total available.\n */\n @Prop() offset?: string;\n\n /**\n * The amount to offset the column for xs screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetXs?: string;\n\n /**\n * The amount to offset the column for sm screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetSm?: string;\n\n /**\n * The amount to offset the column for md screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetMd?: string;\n\n /**\n * The amount to offset the column for lg screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetLg?: string;\n\n /**\n * The amount to offset the column for xl screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetXl?: string;\n\n /**\n * The amount to pull the column, in terms of how many columns it should shift to the start of\n * the total available.\n */\n @Prop() pull?: string;\n\n /**\n * The amount to pull the column for xs screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullXs?: string;\n /**\n * The amount to pull the column for sm screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullSm?: string;\n /**\n * The amount to pull the column for md screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullMd?: string;\n /**\n * The amount to pull the column for lg screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullLg?: string;\n /**\n * The amount to pull the column for xl screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullXl?: string;\n\n /**\n * The amount to push the column, in terms of how many columns it should shift to the end\n * of the total available.\n */\n @Prop() push?: string;\n\n /**\n * The amount to push the column for xs screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushXs?: string;\n\n /**\n * The amount to push the column for sm screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushSm?: string;\n\n /**\n * The amount to push the column for md screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushMd?: string;\n\n /**\n * The amount to push the column for lg screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushLg?: string;\n\n /**\n * The amount to push the column for xl screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushXl?: string;\n\n /**\n * The size of the column, in terms of how many columns it should take up out of the total\n * available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() size?: string;\n\n /**\n * The size of the column for xs screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeXs?: string;\n\n /**\n * The size of the column for sm screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeSm?: string;\n\n /**\n * The size of the column for md screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeMd?: string;\n\n /**\n * The size of the column for lg screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeLg?: string;\n\n /**\n * The size of the column for xl screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeXl?: string;\n\n @Listen('resize', { target: 'window' })\n onResize() {\n forceUpdate(this);\n }\n\n // Loop through all of the breakpoints to see if the media query\n // matches and grab the column value from the relevant prop if so\n private getColumns(property: string) {\n let matched;\n\n for (const breakpoint of BREAKPOINTS) {\n const matches = matchBreakpoint(breakpoint);\n\n // Grab the value of the property, if it exists and our\n // media query matches we return the value\n const columns = (this as any)[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];\n\n if (matches && columns !== undefined) {\n matched = columns;\n }\n }\n\n // Return the last matched columns since the breakpoints\n // increase in size and we want to return the largest match\n return matched;\n }\n\n private calculateSize() {\n const columns = this.getColumns('size');\n\n // If size wasn't set for any breakpoint\n // or if the user set the size without a value\n // it means we need to stick with the default and return\n // e.g. <ion-col size-md>\n if (!columns || columns === '') {\n return;\n }\n\n // If the size is set to auto then don't calculate a size\n const colSize =\n columns === 'auto'\n ? 'auto'\n : // If CSS supports variables we should use the grid columns var\n SUPPORTS_VARS\n ? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`\n : // Convert the columns to a percentage by dividing by the total number\n // of columns (12) and then multiplying by 100\n (columns / 12) * 100 + '%';\n\n return {\n 'flex': `0 0 ${colSize}`,\n 'width': `${colSize}`,\n 'max-width': `${colSize}`,\n };\n }\n\n // Called by push, pull, and offset since they use the same calculations\n private calculatePosition(property: string, modifier: string) {\n const columns = this.getColumns(property);\n\n if (!columns) {\n return;\n }\n\n // If the number of columns passed are greater than 0 and less than\n // 12 we can position the column, else default to auto\n const amount = SUPPORTS_VARS\n ? // If CSS supports variables we should use the grid columns var\n `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`\n : // Convert the columns to a percentage by dividing by the total number\n // of columns (12) and then multiplying by 100\n columns > 0 && columns < 12\n ? (columns / 12) * 100 + '%'\n : 'auto';\n\n return {\n [modifier]: amount,\n };\n }\n\n private calculateOffset(isRTL: boolean) {\n return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');\n }\n\n private calculatePull(isRTL: boolean) {\n return this.calculatePosition('pull', isRTL ? 'left' : 'right');\n }\n\n private calculatePush(isRTL: boolean) {\n return this.calculatePosition('push', isRTL ? 'right' : 'left');\n }\n\n render() {\n const isRTL = document.dir === 'rtl';\n return (\n <Host\n style={{\n ...this.calculateOffset(isRTL),\n ...this.calculatePull(isRTL),\n ...this.calculatePush(isRTL),\n ...this.calculateSize(),\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAO,MAAMA,EAAqB,CAChCC,GAAI,mBACJC,GAAI,qBACJC,GAAI,qBACJC,GAAI,qBACJC,GAAI,uBAMC,MAAMC,EAAmBC,IAC9B,GAAIA,IAAeC,WAAaD,IAAe,GAAI,CACjD,OAAO,I,CAET,GAAKE,OAAeC,WAAY,CAC9B,MAAMC,EAAaX,EAAcO,GACjC,OAAOE,OAAOC,WAAWC,GAAYC,O,CAEvC,OAAO,KAAK,ECnBd,MAAMC,EAAa,i+FACnB,MAAAC,EAAeD,ECEf,MAAME,SAAcN,SAAmB,YAAeA,OAAiBD,UACvE,MAAMQ,EAAgBD,MAAUA,EAAIE,KAAOF,EAAIE,IAAIC,UAAYH,EAAIE,IAAIC,SAAS,WAChF,MAAMC,EAAc,CAAC,GAAI,KAAM,KAAM,KAAM,KAAM,M,MAOpCC,EAAO,M,6iBA8IlB,QAAAC,GACEC,EAAYC,K,CAKN,UAAAC,CAAWC,GACjB,IAAIC,EAEJ,IAAK,MAAMnB,KAAcY,EAAa,CACpC,MAAMP,EAAUN,EAAgBC,GAIhC,MAAMoB,EAAWJ,KAAaE,EAAWlB,EAAWqB,OAAO,GAAGC,cAAgBtB,EAAWuB,MAAM,IAE/F,GAAIlB,GAAWe,IAAYnB,UAAW,CACpCkB,EAAUC,C,EAMd,OAAOD,C,CAGD,aAAAK,GACN,MAAMJ,EAAUJ,KAAKC,WAAW,QAMhC,IAAKG,GAAWA,IAAY,GAAI,CAC9B,M,CAIF,MAAMK,EACJL,IAAY,OACR,OAEFX,EACE,aAAaW,2CAGZA,EAAU,GAAM,IAAM,IAE7B,MAAO,CACLM,KAAQ,OAAOD,IACfE,MAAS,GAAGF,IACZ,YAAa,GAAGA,I,CAKZ,iBAAAG,CAAkBV,EAAkBW,GAC1C,MAAMT,EAAUJ,KAAKC,WAAWC,GAEhC,IAAKE,EAAS,CACZ,M,CAKF,MAAMU,EAASrB,EAEX,aAAaW,2CAGfA,EAAU,GAAKA,EAAU,GACtBA,EAAU,GAAM,IAAM,IACvB,OAEJ,MAAO,CACLS,CAACA,GAAWC,E,CAIR,eAAAC,CAAgBC,GACtB,OAAOhB,KAAKY,kBAAkB,SAAUI,EAAQ,eAAiB,c,CAG3D,aAAAC,CAAcD,GACpB,OAAOhB,KAAKY,kBAAkB,OAAQI,EAAQ,OAAS,Q,CAGjD,aAAAE,CAAcF,GACpB,OAAOhB,KAAKY,kBAAkB,OAAQI,EAAQ,QAAU,O,CAG1D,MAAAG,GACE,MAAMH,EAAQI,SAASC,MAAQ,MAC/B,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAKC,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,GACA3B,KAAKe,gBAAgBC,IACrBhB,KAAKiB,cAAcD,IACnBhB,KAAKkB,cAAcF,IACnBhB,KAAKQ,kBAGVc,EAAA,QAAAE,IAAA,6C"}
@@ -0,0 +1,2 @@
1
+ const o=480;const r={foregroundColor:"#121212",backgroundColor:"#FAFAFA"};export{r as D,o as M};
2
+ //# sourceMappingURL=p-c2bf050b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MOBILE_SIZE","DEFAULT_THEME","foregroundColor","backgroundColor"],"sources":["src/constants.ts"],"sourcesContent":["import { Theme } from './interface';\n\nexport const MOBILE_SIZE = 480;\n\nexport const DEFAULT_THEME: Theme = {\n foregroundColor: '#121212',\n backgroundColor: '#FAFAFA',\n};\n"],"mappings":"MAEaA,EAAc,I,MAEdC,EAAuB,CAClCC,gBAAiB,UACjBC,gBAAiB,kB"}