@usecapsule/core-components 2.0.1 → 2.0.2

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/_commonjsHelpers-bc8ff177.js +36 -0
  2. package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +1 -0
  3. package/dist/capsule/capsule.esm.js +52 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/cpsl-alert.entry.js +31 -0
  6. package/dist/capsule/cpsl-alert.entry.js.map +1 -0
  7. package/dist/{esm → capsule}/cpsl-animation.entry.js +114 -20
  8. package/dist/capsule/cpsl-animation.entry.js.map +1 -0
  9. package/dist/capsule/cpsl-button.entry.js +24 -0
  10. package/dist/capsule/cpsl-button.entry.js.map +1 -0
  11. package/dist/capsule/cpsl-code-input.entry.js +106 -0
  12. package/dist/capsule/cpsl-code-input.entry.js.map +1 -0
  13. package/dist/{esm → capsule}/cpsl-col.entry.js +3 -4
  14. package/dist/capsule/cpsl-col.entry.js.map +1 -0
  15. package/dist/capsule/cpsl-divider.entry.js +17 -0
  16. package/dist/capsule/cpsl-divider.entry.js.map +1 -0
  17. package/dist/{esm → capsule}/cpsl-grid.entry.js +4 -5
  18. package/dist/capsule/cpsl-grid.entry.js.map +1 -0
  19. package/dist/capsule/cpsl-icon.entry.js +20 -0
  20. package/dist/capsule/cpsl-icon.entry.js.map +1 -0
  21. package/dist/{esm → capsule}/cpsl-info-box.entry.js +3 -4
  22. package/dist/capsule/cpsl-info-box.entry.js.map +1 -0
  23. package/dist/capsule/cpsl-input.entry.js +124 -0
  24. package/dist/capsule/cpsl-input.entry.js.map +1 -0
  25. package/dist/capsule/cpsl-modal.entry.js +3338 -0
  26. package/dist/capsule/cpsl-modal.entry.js.map +1 -0
  27. package/dist/capsule/cpsl-overlay.entry.js +44 -0
  28. package/dist/capsule/cpsl-overlay.entry.js.map +1 -0
  29. package/dist/capsule/cpsl-pill.entry.js +18 -0
  30. package/dist/capsule/cpsl-pill.entry.js.map +1 -0
  31. package/dist/capsule/cpsl-progress-indicator.entry.js +29 -0
  32. package/dist/capsule/cpsl-progress-indicator.entry.js.map +1 -0
  33. package/dist/capsule/cpsl-qr-code.entry.js +56 -0
  34. package/dist/capsule/cpsl-qr-code.entry.js.map +1 -0
  35. package/dist/capsule/cpsl-row.entry.js +17 -0
  36. package/dist/capsule/cpsl-row.entry.js.map +1 -0
  37. package/dist/capsule/cpsl-slide-button.entry.js +130 -0
  38. package/dist/capsule/cpsl-slide-button.entry.js.map +1 -0
  39. package/dist/capsule/cpsl-spinner.entry.js +25 -0
  40. package/dist/capsule/cpsl-spinner.entry.js.map +1 -0
  41. package/dist/capsule/cpsl-tab.entry.js +37 -0
  42. package/dist/capsule/cpsl-tab.entry.js.map +1 -0
  43. package/dist/capsule/cpsl-tabs.entry.js +71 -0
  44. package/dist/capsule/cpsl-tabs.entry.js.map +1 -0
  45. package/dist/capsule/cpsl-text.entry.js +66 -0
  46. package/dist/capsule/cpsl-text.entry.js.map +1 -0
  47. package/dist/capsule/cpsl-tile-button.entry.js +19 -0
  48. package/dist/capsule/cpsl-tile-button.entry.js.map +1 -0
  49. package/dist/capsule/index-3ac1b9e9.js +617 -0
  50. package/dist/capsule/index-3ac1b9e9.js.map +1 -0
  51. package/dist/capsule/index-3ad00c7e.js +6064 -0
  52. package/dist/capsule/index-3ad00c7e.js.map +1 -0
  53. package/dist/capsule/index-f19e63df.js +4148 -0
  54. package/dist/capsule/index-f19e63df.js.map +1 -0
  55. package/dist/capsule/index.esm.js +572 -1
  56. package/dist/capsule/index.esm.js.map +1 -1
  57. package/dist/capsule/shadow-css-bc9e2af8.js +478 -0
  58. package/dist/capsule/shadow-css-bc9e2af8.js.map +1 -0
  59. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  60. package/dist/types/index.d.ts +1 -1
  61. package/dist/types/interface.d.ts +15 -0
  62. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  63. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  64. package/package.json +2 -2
  65. package/dist/capsule/p-0462f723.js +0 -2
  66. package/dist/capsule/p-0462f723.js.map +0 -1
  67. package/dist/capsule/p-654cb899.entry.js +0 -29
  68. package/dist/capsule/p-654cb899.entry.js.map +0 -1
  69. package/dist/capsule/p-68c73705.entry.js +0 -2
  70. package/dist/capsule/p-68c73705.entry.js.map +0 -1
  71. package/dist/capsule/p-6fb7c4d1.js +0 -3
  72. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  73. package/dist/capsule/p-91412151.entry.js +0 -2
  74. package/dist/capsule/p-91412151.entry.js.map +0 -1
  75. package/dist/capsule/p-a95ec4df.entry.js +0 -2
  76. package/dist/capsule/p-a95ec4df.entry.js.map +0 -1
  77. package/dist/capsule/p-c2bf050b.js +0 -2
  78. package/dist/capsule/p-c2bf050b.js.map +0 -1
  79. package/dist/capsule/p-d7be092d.entry.js +0 -10
  80. package/dist/capsule/p-d7be092d.entry.js.map +0 -1
  81. package/dist/capsule/p-e1255160.js +0 -2
  82. package/dist/capsule/p-e1255160.js.map +0 -1
  83. package/dist/capsule/p-f604b591.entry.js +0 -2
  84. package/dist/capsule/p-f604b591.entry.js.map +0 -1
  85. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  86. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  87. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  88. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  89. package/dist/cjs/capsule.cjs.js +0 -27
  90. package/dist/cjs/capsule.cjs.js.map +0 -1
  91. package/dist/cjs/constants-4bb85cc5.js +0 -12
  92. package/dist/cjs/constants-4bb85cc5.js.map +0 -1
  93. package/dist/cjs/cpsl-alert_17.cjs.entry.js +0 -10711
  94. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  95. package/dist/cjs/cpsl-animation.cjs.entry.js +0 -20129
  96. package/dist/cjs/cpsl-animation.cjs.entry.js.map +0 -1
  97. package/dist/cjs/cpsl-col.cjs.entry.js +0 -125
  98. package/dist/cjs/cpsl-col.cjs.entry.js.map +0 -1
  99. package/dist/cjs/cpsl-grid.cjs.entry.js +0 -25
  100. package/dist/cjs/cpsl-grid.cjs.entry.js.map +0 -1
  101. package/dist/cjs/cpsl-info-box.cjs.entry.js +0 -22
  102. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +0 -1
  103. package/dist/cjs/cpsl-row.cjs.entry.js +0 -22
  104. package/dist/cjs/cpsl-row.cjs.entry.js.map +0 -1
  105. package/dist/cjs/index-3fccb5b4.js +0 -2012
  106. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  107. package/dist/cjs/index.cjs.js +0 -342
  108. package/dist/cjs/index.cjs.js.map +0 -1
  109. package/dist/cjs/loader.cjs.js +0 -17
  110. package/dist/cjs/loader.cjs.js.map +0 -1
  111. package/dist/collection/assets/icons/alert-circle.svg +0 -3
  112. package/dist/collection/assets/icons/angel-list-brand.svg +0 -3
  113. package/dist/collection/assets/icons/angel-list.svg +0 -3
  114. package/dist/collection/assets/icons/apple-brand.svg +0 -3
  115. package/dist/collection/assets/icons/apple.svg +0 -3
  116. package/dist/collection/assets/icons/arrow-narrow.svg +0 -3
  117. package/dist/collection/assets/icons/arrow.svg +0 -3
  118. package/dist/collection/assets/icons/backup-kit.svg +0 -4
  119. package/dist/collection/assets/icons/capsule-logo.svg +0 -18
  120. package/dist/collection/assets/icons/capsule-rings-dark.svg +0 -34
  121. package/dist/collection/assets/icons/capsule-rings.svg +0 -34
  122. package/dist/collection/assets/icons/capsule.svg +0 -4
  123. package/dist/collection/assets/icons/check.svg +0 -3
  124. package/dist/collection/assets/icons/clock.svg +0 -3
  125. package/dist/collection/assets/icons/close.svg +0 -4
  126. package/dist/collection/assets/icons/clubhouse-brand.svg +0 -4
  127. package/dist/collection/assets/icons/clubhouse.svg +0 -4
  128. package/dist/collection/assets/icons/copy.svg +0 -3
  129. package/dist/collection/assets/icons/discord-brand.svg +0 -4
  130. package/dist/collection/assets/icons/discord.svg +0 -4
  131. package/dist/collection/assets/icons/download-cloud.svg +0 -3
  132. package/dist/collection/assets/icons/dribbble-brand.svg +0 -4
  133. package/dist/collection/assets/icons/dribbble.svg +0 -3
  134. package/dist/collection/assets/icons/eye-off.svg +0 -3
  135. package/dist/collection/assets/icons/eye.svg +0 -4
  136. package/dist/collection/assets/icons/facebook-brand.svg +0 -11
  137. package/dist/collection/assets/icons/facebook.svg +0 -10
  138. package/dist/collection/assets/icons/figma-brand.svg +0 -14
  139. package/dist/collection/assets/icons/figma.svg +0 -3
  140. package/dist/collection/assets/icons/github-brand.svg +0 -10
  141. package/dist/collection/assets/icons/github.svg +0 -10
  142. package/dist/collection/assets/icons/google-brand.svg +0 -13
  143. package/dist/collection/assets/icons/google.svg +0 -10
  144. package/dist/collection/assets/icons/help-circle.svg +0 -3
  145. package/dist/collection/assets/icons/hero-email.svg +0 -12
  146. package/dist/collection/assets/icons/hero-lock.svg +0 -4
  147. package/dist/collection/assets/icons/hero-passkey.svg +0 -12
  148. package/dist/collection/assets/icons/hero-phone.svg +0 -4
  149. package/dist/collection/assets/icons/hero-wallet.svg +0 -5
  150. package/dist/collection/assets/icons/index.js +0 -70
  151. package/dist/collection/assets/icons/index.js.map +0 -1
  152. package/dist/collection/assets/icons/info-circle.svg +0 -3
  153. package/dist/collection/assets/icons/instagram-brand.svg +0 -12
  154. package/dist/collection/assets/icons/instagram.svg +0 -12
  155. package/dist/collection/assets/icons/key.svg +0 -3
  156. package/dist/collection/assets/icons/linkedin-brand.svg +0 -10
  157. package/dist/collection/assets/icons/linkedin.svg +0 -10
  158. package/dist/collection/assets/icons/mail.svg +0 -3
  159. package/dist/collection/assets/icons/more-login-options.svg +0 -13
  160. package/dist/collection/assets/icons/phone.svg +0 -3
  161. package/dist/collection/assets/icons/pintrest-brand.svg +0 -11
  162. package/dist/collection/assets/icons/pintrest.svg +0 -10
  163. package/dist/collection/assets/icons/plus-circle.svg +0 -5
  164. package/dist/collection/assets/icons/reddit-brand.svg +0 -11
  165. package/dist/collection/assets/icons/reddit.svg +0 -3
  166. package/dist/collection/assets/icons/signal-brand.svg +0 -3
  167. package/dist/collection/assets/icons/signal.svg +0 -3
  168. package/dist/collection/assets/icons/snapchat-brand.svg +0 -4
  169. package/dist/collection/assets/icons/snapchat.svg +0 -3
  170. package/dist/collection/assets/icons/telegram-brand.svg +0 -15
  171. package/dist/collection/assets/icons/telegram.svg +0 -10
  172. package/dist/collection/assets/icons/tik-tok-brand.svg +0 -5
  173. package/dist/collection/assets/icons/tik-tok.svg +0 -3
  174. package/dist/collection/assets/icons/tumblr-brand.svg +0 -10
  175. package/dist/collection/assets/icons/tumblr.svg +0 -10
  176. package/dist/collection/assets/icons/twitter-brand.svg +0 -3
  177. package/dist/collection/assets/icons/twitter.svg +0 -3
  178. package/dist/collection/assets/icons/wallet.svg +0 -5
  179. package/dist/collection/assets/icons/youtube-brand.svg +0 -11
  180. package/dist/collection/assets/icons/youtube.svg +0 -3
  181. package/dist/collection/collection-manifest.json +0 -33
  182. package/dist/collection/components/cpsl-alert/cpsl-alert.css +0 -98
  183. package/dist/collection/components/cpsl-alert/cpsl-alert.js +0 -80
  184. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +0 -1
  185. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  186. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  187. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  188. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  189. package/dist/collection/components/cpsl-animation/cpsl-animation.css +0 -17
  190. package/dist/collection/components/cpsl-animation/cpsl-animation.js +0 -102
  191. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +0 -1
  192. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  193. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  194. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  195. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  196. package/dist/collection/components/cpsl-button/cpsl-button.css +0 -162
  197. package/dist/collection/components/cpsl-button/cpsl-button.js +0 -68
  198. package/dist/collection/components/cpsl-button/cpsl-button.js.map +0 -1
  199. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  200. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  201. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  202. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  203. package/dist/collection/components/cpsl-code-input/code-change-interface.js +0 -2
  204. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +0 -1
  205. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -134
  206. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +0 -223
  207. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +0 -1
  208. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  209. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  210. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  211. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  212. package/dist/collection/components/cpsl-col/cpsl-col.css +0 -200
  213. package/dist/collection/components/cpsl-col/cpsl-col.js +0 -528
  214. package/dist/collection/components/cpsl-col/cpsl-col.js.map +0 -1
  215. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  216. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  217. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  218. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  219. package/dist/collection/components/cpsl-divider/cpsl-divider.css +0 -73
  220. package/dist/collection/components/cpsl-divider/cpsl-divider.js +0 -19
  221. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +0 -1
  222. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  223. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  224. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  225. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  226. package/dist/collection/components/cpsl-grid/cpsl-grid.css +0 -235
  227. package/dist/collection/components/cpsl-grid/cpsl-grid.js +0 -46
  228. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +0 -1
  229. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  230. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  231. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  232. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  233. package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -95
  234. package/dist/collection/components/cpsl-icon/cpsl-icon.js +0 -68
  235. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +0 -1
  236. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  237. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  238. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  239. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  240. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +0 -77
  241. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +0 -19
  242. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +0 -1
  243. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  244. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  245. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  246. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  247. package/dist/collection/components/cpsl-input/cpsl-input.css +0 -194
  248. package/dist/collection/components/cpsl-input/cpsl-input.js +0 -708
  249. package/dist/collection/components/cpsl-input/cpsl-input.js.map +0 -1
  250. package/dist/collection/components/cpsl-input/input-interface.js +0 -2
  251. package/dist/collection/components/cpsl-input/input-interface.js.map +0 -1
  252. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  253. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  254. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  255. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  256. package/dist/collection/components/cpsl-modal/cpsl-modal.css +0 -172
  257. package/dist/collection/components/cpsl-modal/cpsl-modal.js +0 -430
  258. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  259. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  260. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  261. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  262. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  263. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +0 -11
  264. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +0 -108
  265. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +0 -1
  266. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  267. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  268. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  269. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  270. package/dist/collection/components/cpsl-pill/cpsl-pill.css +0 -92
  271. package/dist/collection/components/cpsl-pill/cpsl-pill.js +0 -43
  272. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +0 -1
  273. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  274. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  275. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  276. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  277. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +0 -82
  278. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +0 -71
  279. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +0 -1
  280. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +0 -2
  281. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +0 -1
  282. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  283. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  284. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  285. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  286. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +0 -81
  287. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +0 -107
  288. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +0 -1
  289. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  290. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  291. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  292. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  293. package/dist/collection/components/cpsl-row/cpsl-row.css +0 -136
  294. package/dist/collection/components/cpsl-row/cpsl-row.js +0 -19
  295. package/dist/collection/components/cpsl-row/cpsl-row.js.map +0 -1
  296. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  297. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  298. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  299. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  300. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +0 -175
  301. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +0 -252
  302. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +0 -1
  303. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  304. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  305. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  306. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  307. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +0 -68
  308. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +0 -69
  309. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +0 -1
  310. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  311. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  312. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  313. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  314. package/dist/collection/components/cpsl-tab/cpsl-tab.css +0 -23
  315. package/dist/collection/components/cpsl-tab/cpsl-tab.js +0 -121
  316. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +0 -1
  317. package/dist/collection/components/cpsl-tab/tab-interface.js +0 -2
  318. package/dist/collection/components/cpsl-tab/tab-interface.js.map +0 -1
  319. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  320. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  321. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  322. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  323. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +0 -111
  324. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +0 -170
  325. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +0 -1
  326. package/dist/collection/components/cpsl-tabs/tabs-interface.js +0 -2
  327. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +0 -1
  328. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  329. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  330. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  331. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  332. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -59
  333. package/dist/collection/components/cpsl-text/cpsl-text.js +0 -19
  334. package/dist/collection/components/cpsl-text/cpsl-text.js.map +0 -1
  335. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  336. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  337. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  338. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  339. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +0 -97
  340. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +0 -67
  341. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +0 -1
  342. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  343. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  344. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  345. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  346. package/dist/collection/constants.js +0 -6
  347. package/dist/collection/constants.js.map +0 -1
  348. package/dist/collection/index.js +0 -3
  349. package/dist/collection/index.js.map +0 -1
  350. package/dist/collection/interface.js +0 -2
  351. package/dist/collection/interface.js.map +0 -1
  352. package/dist/collection/utils/media.js +0 -18
  353. package/dist/collection/utils/media.js.map +0 -1
  354. package/dist/collection/utils/theme/generateBorderRadii.js +0 -56
  355. package/dist/collection/utils/theme/generateBorderRadii.js.map +0 -1
  356. package/dist/collection/utils/theme/generateFont.js +0 -7
  357. package/dist/collection/utils/theme/generateFont.js.map +0 -1
  358. package/dist/collection/utils/theme/generatePalette.js +0 -46
  359. package/dist/collection/utils/theme/generatePalette.js.map +0 -1
  360. package/dist/collection/utils/theme/generateTheme.js +0 -12
  361. package/dist/collection/utils/theme/generateTheme.js.map +0 -1
  362. package/dist/collection/utils/theme/utils.js +0 -21
  363. package/dist/collection/utils/theme/utils.js.map +0 -1
  364. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  365. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  366. package/dist/esm/capsule.js +0 -22
  367. package/dist/esm/capsule.js.map +0 -1
  368. package/dist/esm/cpsl-alert_17.entry.js +0 -10691
  369. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  370. package/dist/esm/cpsl-animation.entry.js.map +0 -1
  371. package/dist/esm/cpsl-col.entry.js.map +0 -1
  372. package/dist/esm/cpsl-grid.entry.js.map +0 -1
  373. package/dist/esm/cpsl-info-box.entry.js.map +0 -1
  374. package/dist/esm/cpsl-row.entry.js +0 -18
  375. package/dist/esm/cpsl-row.entry.js.map +0 -1
  376. package/dist/esm/index-f00e090c.js +0 -1982
  377. package/dist/esm/index-f00e090c.js.map +0 -1
  378. package/dist/esm/index.js +0 -338
  379. package/dist/esm/index.js.map +0 -1
  380. package/dist/esm/loader.js +0 -13
  381. package/dist/esm/loader.js.map +0 -1
  382. package/dist/esm/polyfills/core-js.js +0 -11
  383. package/dist/esm/polyfills/dom.js +0 -79
  384. package/dist/esm/polyfills/es5-html-element.js +0 -1
  385. package/dist/esm/polyfills/index.js +0 -34
  386. package/dist/esm/polyfills/system.js +0 -6
  387. package/dist/index.cjs.js +0 -1
  388. package/dist/index.js +0 -1
  389. package/dist/loader/cdn.js +0 -3
  390. package/dist/loader/index.cjs.js +0 -3
  391. package/dist/loader/index.d.ts +0 -21
  392. package/dist/loader/index.es2017.js +0 -3
  393. package/dist/loader/index.js +0 -4
  394. package/dist/loader/package.json +0 -11
  395. package/dist/scripts/buildIconLibrary.js +0 -33
  396. package/dist/scripts/buildIconLibrary.js.map +0 -1
  397. /package/dist/{esm → capsule}/app-globals-0f993ce5.js +0 -0
  398. /package/dist/{esm → capsule}/app-globals-0f993ce5.js.map +0 -0
  399. /package/dist/{esm → capsule}/constants-7b49abd5.js +0 -0
  400. /package/dist/{esm → capsule}/constants-7b49abd5.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"file":"cpsl-slide-button.entry.esm.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,60FAA60F;;MCQ31F,eAAe;;;;;;;;;;IAiC1B,gBAAgB;QACd,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC/D;IAEO,WAAW,CAAC,EAAe;QACjC,MAAM,WAAW,GAAG,CAAC,CAAe;YAClC,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC;YAEjB,QAAQ,CAAC,CAAC,WAAW;gBACnB,KAAK,OAAO;oBACV,EAAE,CAAC,WAAW,GAAG,aAAa,CAAC;oBAC/B,MAAM;gBACR;oBACE,EAAE,CAAC,YAAY,GAAG,aAAa,CAAC;aACnC;SACF,CAAC;QAEF,MAAM,aAAa,GAAG,CAAC,CAAa;YAClC,CAAC,CAAC,cAAc,EAAE,CAAC;YAEnB,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC;YACj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,EAAE,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC3E,IAAI,CAAC,SAAS,CACV,EACP,6DAAM,EAAE,EAAC,UAAU,EAAC,KAAK,EAAC,UAAU,IACjC,IAAI,CAAC,OAAO,CACR,CACH,CACD,EACP;KACH;;;;;;;","names":[],"sources":["src/components/cpsl-slide-button/cpsl-slide-button.scss?tag=cpsl-slide-button&encapsulation=shadow","src/components/cpsl-slide-button/cpsl-slide-button.tsx"],"sourcesContent":["@import '../../themes/capsule.globals';\n\n:host {\n /* SLIDER CONTAINER VARS */\n --slider-container-font-size: 14px;\n --slider-container-height: 44px;\n --slider-container-border-width: 1px;\n --slider-container-box-shadow: 0px 0px 4px 0px var(--cpsl-color-alpha-black-10) inset;\n\n --slider-container-start-background-color: var(--cpsl-color-slideButton-slider-container-start-background);\n --slider-container-end-background-color: var(--cpsl-color-slideButton-slider-container-end-background);\n --slider-container-start-border-color: var(--cpsl-color-slideButton-slider-container-start-border);\n --slider-container-end-border-color: var(--cpsl-color-slideButton-slider-container-end-border);\n\n /* SLIDER VARS */\n --slider-border-width: 1px;\n --slider-box-shadow: 3px 0px 4px 0px var(--cpsl-color-alpha-black-16);\n\n --slider-border-color: var(--cpsl-color-slideButton-slider-border);\n --slider-background-color: var(--cpsl-color-slideButton-slider-background);\n --slider-color: var(--cpsl-color-slideButton-slider-text);\n\n /* START TEXT VARS */\n --start-text-color: var(--cpsl-color-slideButton-start-text);\n\n /* END TEXT VARS */\n --end-text-color: var(--cpsl-color-slideButton-end-text);\n\n font-family: $font-family-base;\n display: block;\n}\n\n.slider-container {\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n\n font-size: var(--slider-container-font-size);\n font-weight: 500;\n\n height: var(--slider-container-height);\n\n border-width: var(--slider-container-border-width);\n border-style: solid;\n border-radius: calc(var(--slider-container-height) / 2);\n\n box-shadow: var(--slider-container-box-shadow);\n}\n\n.slider-container-background {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.start-slider-container-background {\n background-color: var(--slider-container-start-background-color);\n border-color: var(--slider-container-start-border-color);\n opacity: 100%;\n}\n\n.end-slider-container-background {\n background-color: var(--slider-container-end-background-color);\n border-color: var(--slider-container-end-border-color);\n opacity: 0%;\n}\n\n.start-text {\n user-select: none;\n color: var(--start-text-color);\n position: absolute;\n text-align: center;\n\n opacity: 100%;\n\n // Make text the width of the container minus the button, gap and right padding\n width: calc(100% - var(--slider-container-height) - 8px - 16px);\n left: calc(var(--slider-container-height) - 4px + 8px);\n\n &.disabled {\n left: 0;\n width: 100%;\n }\n}\n\n.end-text {\n user-select: none;\n color: var(--end-text-color);\n position: absolute;\n text-align: center;\n\n opacity: 0%;\n\n // Make text the width of the container minus the button, gap and left padding\n width: calc(100% - var(--slider-container-height) - 8px);\n left: 16px;\n}\n\n.icon {\n position: absolute;\n}\n\n.start-icon {\n opacity: 100%;\n}\n\n.end-icon {\n opacity: 0%;\n}\n\n.slider {\n left: 1px;\n cursor: pointer;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: center;\n\n position: absolute;\n z-index: 10;\n\n height: calc(var(--slider-container-height) - 4px);\n width: calc(var(--slider-container-height) - 4px);\n\n color: var(--slider-color);\n background-color: var(--slider-background-color);\n\n border-width: var(--slider-border-width);\n border-style: solid;\n border-color: var(--slider-border-color);\n border-radius: 100%;\n\n box-shadow: var(--slider-box-shadow);\n\n cpsl-icon {\n --icon-color: var(--slider-color);\n }\n\n &.disabled {\n visibility: hidden;\n }\n}\n","import { Component, Host, Prop, h, Element, EventEmitter, Event } from '@stencil/core';\nimport { IconType } from '../../interface';\n\n@Component({\n tag: 'cpsl-slide-button',\n styleUrl: 'cpsl-slide-button.scss',\n shadow: true,\n})\nexport class CpslSlideButton {\n @Element() el!: HTMLCpslSlideButtonElement;\n\n /**\n * Whether or not the component is disabled. If true, the component will display the `startText`.\n */\n @Prop() disabled: boolean;\n\n /**\n * The name of the ending icon to show.\n */\n @Prop() endIcon: IconType;\n\n /**\n * The ending text.\n */\n @Prop() endText: string;\n\n /**\n * The name of the starting icon to show.\n */\n @Prop() startIcon: IconType;\n\n /**\n * The starting text.\n */\n @Prop() startText: string;\n\n /**\n * The `cpslComplete` event is fired when the slider is at the end.\n */\n @Event() cpslComplete!: EventEmitter<boolean>;\n\n componentDidLoad() {\n this.dragElement(this.el.shadowRoot.getElementById('slider'));\n }\n\n private dragElement(el: HTMLElement) {\n const pointerDown = (e: PointerEvent) => {\n pos3 = e.clientX;\n\n switch (e.pointerType) {\n case 'mouse':\n el.onmousedown = dragMouseDown;\n break;\n default:\n el.ontouchstart = dragTouchDown;\n }\n };\n\n const dragMouseDown = (e: MouseEvent) => {\n e.preventDefault();\n // get the mouse cursor position at startup:\n pos3 = e.clientX;\n document.onmouseup = closeDragElement;\n // call a function whenever the cursor moves:\n document.onmousemove = elementMouseDrag;\n };\n\n const dragTouchDown = (e: TouchEvent) => {\n e.preventDefault();\n const touchLocation = e.targetTouches[0];\n // get the mouse cursor position at startup:\n pos3 = touchLocation.clientX;\n document.ontouchend = closeDragElement;\n // call a function whenever the cursor moves:\n document.ontouchmove = elementTouchDrag;\n };\n\n const elementMouseDrag = (e: MouseEvent) => {\n e.preventDefault();\n // calculate the new cursor position:\n pos1 = pos3 - e.clientX;\n pos3 = e.clientX;\n // set the element's new position:\n finishElementDrag(pos1);\n };\n\n const elementTouchDrag = (e: TouchEvent) => {\n e.preventDefault();\n const touchLocation = e.targetTouches[0];\n // calculate the new cursor position:\n pos1 = pos3 - touchLocation.clientX;\n pos3 = touchLocation.clientX;\n // set the element's new position:\n finishElementDrag(pos1);\n };\n\n const finishElementDrag = (pos: number) => {\n const newPos = el.offsetLeft - pos;\n if (newPos >= minX && newPos <= maxX) {\n const newPosPercent = Math.max(Math.min(Math.round((newPos / maxX) * 100) / 100, 100), 0);\n\n startTextEl.style.opacity = `${(1 - newPosPercent * 2) * 100}%`;\n endTextEl.style.opacity = `${newPosPercent * 100}%`;\n\n startIconEl.style.opacity = `${(1 - newPosPercent * 2) * 100}%`;\n endIconEl.style.opacity = `${newPosPercent * 100}%`;\n\n endBackgroundEl.style.opacity = `${newPosPercent * 100}%`;\n\n el.style.left = `${newPos}px`;\n }\n };\n\n const closeDragElement = () => {\n if (el.offsetLeft + sliderHeight >= containerWidth - sliderHeight / 2) {\n el.style.left = `${maxX}px`;\n startTextEl.style.opacity = '0%';\n endTextEl.style.opacity = '100%';\n startIconEl.style.opacity = '0%';\n endIconEl.style.opacity = '100%';\n endBackgroundEl.style.opacity = '100%';\n this.cpslComplete.emit(true);\n } else {\n el.style.left = `${minX}px`;\n startTextEl.style.opacity = '100%';\n endTextEl.style.opacity = '0%';\n startIconEl.style.opacity = '100%';\n endIconEl.style.opacity = '0%';\n endBackgroundEl.style.opacity = '0%';\n }\n // stop moving when mouse button is released:\n document.onmouseup = null;\n document.onmousemove = null;\n document.ontouchend = null;\n document.ontouchmove = null;\n };\n\n const startIconEl = this.startIconEl;\n const endIconEl = this.endIconEl;\n const startTextEl = this.startTextEl;\n const endTextEl = this.endTextEl;\n const endBackgroundEl = this.endBackgroundEl;\n\n const sliderContainerEl = this.sliderContainerEl;\n const containerWidth = sliderContainerEl.clientWidth;\n\n const sliderHeight = el.getBoundingClientRect().height;\n\n // Offset min by 1 for 1px left padding\n const minX = 1;\n // Offset max by the slider width and 1px for padding\n const maxX = containerWidth - sliderHeight - 1;\n\n let pos1 = 0,\n pos3 = 0;\n\n el.onpointerdown = pointerDown;\n }\n\n private get sliderContainerEl() {\n return this.el.shadowRoot.getElementById('slider-container');\n }\n\n private get startTextEl() {\n return this.el.shadowRoot.getElementById('start-text');\n }\n\n private get endTextEl() {\n return this.el.shadowRoot.getElementById('end-text');\n }\n\n private get endBackgroundEl() {\n return this.el.shadowRoot.getElementById('end-slider-container-background');\n }\n\n private get startIconEl() {\n return this.el.shadowRoot.getElementById('start-icon');\n }\n\n private get endIconEl() {\n return this.el.shadowRoot.getElementById('end-icon');\n }\n\n render() {\n return (\n <Host>\n <div id=\"slider-container\" class=\"slider-container\">\n <div id=\"start-slider-container-background\" class={{ 'start-slider-container-background': true, 'slider-container-background': true }} />\n <div id=\"end-slider-container-background\" class={{ 'end-slider-container-background': true, 'slider-container-background': true }} />\n <div id=\"slider\" class={{ slider: true, disabled: this.disabled }}>\n <cpsl-icon id=\"start-icon\" class={{ 'start-icon': true, 'icon': true }} icon={this.startIcon} />\n <cpsl-icon id=\"end-icon\" class={{ 'end-icon': true, 'icon': true }} icon={this.endIcon} />\n </div>\n <span id=\"start-text\" class={{ 'start-text': true, 'disabled': this.disabled }}>\n {this.startText}\n </span>\n <span id=\"end-text\" class=\"end-text\">\n {this.endText}\n </span>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,25 @@
1
+ import { r as registerInstance, h, a as Host } from './index-f19e63df.js';
2
+
3
+ const cpslSpinnerCss = ":host{--path-color:var(--cpsl-color-spinner-path);--circle-color:var(--cpsl-color-spinner-circle);display:flex;justify-content:center;align-items:center}:host path{stroke:var(--path-color)}:host circle{fill:var(--circle-color)}";
4
+
5
+ const CpslSpinner = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.size = 54;
9
+ this.speed = 1;
10
+ }
11
+ render() {
12
+ return (h(Host, { key: 'a5750daafb24fde73b6b86dc441132aa388a72bc', style: {
13
+ 'height': `${this.size}px`,
14
+ 'width': `${this.size}px`,
15
+ 'animation': `spin ${this.speed}s linear infinite`,
16
+ '-webkit-animation': `spin ${this.speed}s linear infinite`,
17
+ '-moz-animation': `spin ${this.speed}s linear infinite`,
18
+ } }, h("svg", { key: 'a4aae8ef7eb5e46f59aa3f6f9b2c121e277c275b', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, h("path", { key: '2f759dc4725d298cfe114973e5d33c8237c3c06b', d: "M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37", "stroke-width": "6", "stroke-linecap": "round" }), h("circle", { key: 'b4a4c9553ea35e28a1a116641cab7bd8a434e5c6', cx: "45", cy: "27", r: "5" }))));
19
+ }
20
+ };
21
+ CpslSpinner.style = cpslSpinnerCss;
22
+
23
+ export { CpslSpinner as cpsl_spinner };
24
+
25
+ //# sourceMappingURL=cpsl-spinner.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cpsl-spinner.entry.esm.js","mappings":";;AAAA,MAAM,cAAc,GAAG,qOAAqO;;MCO/O,WAAW;;;oBAKE,EAAE;qBAMD,CAAC;;IAE1B,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;gBAC1B,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;gBACzB,WAAW,EAAE,QAAQ,IAAI,CAAC,KAAK,mBAAmB;gBAClD,mBAAmB,EAAE,QAAQ,IAAI,CAAC,KAAK,mBAAmB;gBAC1D,gBAAgB,EAAE,QAAQ,IAAI,CAAC,KAAK,mBAAmB;aACxD,IAED,4DAAK,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,IAC1G,6DACE,CAAC,EAAC,sIAAsI,kBAC3H,GAAG,oBACD,OAAO,GACtB,EACF,+DAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,CAC5B,CACD,EACP;KACH;;;;;;","names":[],"sources":["src/components/cpsl-spinner/cpsl-spinner.scss?tag=cpsl-spinner&encapsulation=shadow","src/components/cpsl-spinner/cpsl-spinner.tsx"],"sourcesContent":["@import '../../themes/capsule.globals';\n\n:host {\n --path-color: var(--cpsl-color-spinner-path);\n --circle-color: var(--cpsl-color-spinner-circle);\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n path {\n stroke: var(--path-color);\n }\n\n circle {\n fill: var(--circle-color);\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-spinner',\n styleUrl: 'cpsl-spinner.scss',\n shadow: true,\n})\nexport class CpslSpinner {\n /**\n * Size of the spinner in pixels.\n * Default is 50.\n */\n @Prop() size?: number = 54;\n\n /**\n * Rotation speed of the spinner in seconds.\n * Default is 1.\n */\n @Prop() speed?: number = 1;\n\n render() {\n return (\n <Host\n style={{\n 'height': `${this.size}px`,\n 'width': `${this.size}px`,\n 'animation': `spin ${this.speed}s linear infinite`,\n '-webkit-animation': `spin ${this.speed}s linear infinite`,\n '-moz-animation': `spin ${this.speed}s linear infinite`,\n }}\n >\n <svg height={this.size} width={this.size} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 54 54\" fill=\"none\">\n <path\n d=\"M43.1586 17C39.8082 11.5978 33.8243 8 27 8C16.5066 8 8 16.5066 8 27C8 37.4934 16.5066 46 27 46C33.8242 46 39.8082 42.4022 43.1586 37\"\n stroke-width=\"6\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"45\" cy=\"27\" r=\"5\" />\n </svg>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,37 @@
1
+ import { r as registerInstance, e as createEvent, h, a as Host, g as getElement } from './index-f19e63df.js';
2
+
3
+ const cpslTabCss = ":host{--tab-color:var(--cpsl-color-text-primary);padding-top:var(--tab-top-padding);padding-bottom:var(--tab-bottom-padding);padding-left:var(--tab-left-padding);padding-right:var(--tab-right-padding);display:flex;flex:1 1 auto;align-items:center;cursor:pointer;z-index:10}.tab-container{align-items:center;overflow:hidden;width:100%;text-overflow:ellipsis;text-align:center;white-space:nowrap;font-weight:500;color:var(--tab-color)}";
4
+
5
+ const CpslTab = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.cpslTabButtonClick = createEvent(this, "cpslTabButtonClick", 7);
9
+ this.onTabClicked = () => {
10
+ this.cpslTabButtonClick.emit({ tab: this.tab, selected: this.selected });
11
+ };
12
+ this.selected = false;
13
+ this.tab = undefined;
14
+ }
15
+ onTabsChanged(ev) {
16
+ this.setSelected(ev);
17
+ }
18
+ onTabsInit(ev) {
19
+ this.setSelected(ev);
20
+ }
21
+ setSelected(ev) {
22
+ const dispatchedFrom = ev.target;
23
+ const parent = this.el.parentElement;
24
+ if (ev.composedPath().includes(parent) || (dispatchedFrom === null || dispatchedFrom === void 0 ? void 0 : dispatchedFrom.contains(this.el))) {
25
+ this.selected = this.tab === ev.detail.tab;
26
+ }
27
+ }
28
+ render() {
29
+ return (h(Host, { key: 'b16c5891e0c814a6a8e1b498b3efc8ce4d9cf45e', onClick: this.onTabClicked }, h("div", { key: '3227832d09b2cea5be41ce528e58b8f246386d79', class: { 'tab-container': true } }, h("slot", { key: 'd578f97656b4f6596b044cd93575574463160600' }))));
30
+ }
31
+ get el() { return getElement(this); }
32
+ };
33
+ CpslTab.style = cpslTabCss;
34
+
35
+ export { CpslTab as cpsl_tab };
36
+
37
+ //# sourceMappingURL=cpsl-tab.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cpsl-tab.entry.esm.js","mappings":";;AAAA,MAAM,UAAU,GAAG,mbAAmb;;MCSzb,OAAO;;;;QAuCV,iBAAY,GAAG;YACrB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC1E,CAAC;wBAnCiB,KAAK;;;IAexB,aAAa,CAAC,EAAuC;QACnD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;KACtB;IAGD,UAAU,CAAC,EAAuC;QAChD,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;KACtB;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;YAC3E,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC;SAC5C;KACF;IAMD,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,YAAY,IAC9B,4DAAK,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,IACnC,8DAAa,CACT,CACD,EACP;KACH;;;;;;;","names":[],"sources":["src/components/cpsl-tab/cpsl-tab.scss?tag=cpsl-tab&encapsulation=shadow","src/components/cpsl-tab/cpsl-tab.tsx"],"sourcesContent":[":host {\n --tab-color: var(--cpsl-color-text-primary);\n padding-top: var(--tab-top-padding);\n padding-bottom: var(--tab-bottom-padding);\n padding-left: var(--tab-left-padding);\n padding-right: var(--tab-right-padding);\n\n display: flex;\n flex: 1 1 auto;\n align-items: center;\n\n cursor: pointer;\n\n z-index: 10;\n}\n\n.tab-container {\n align-items: center;\n overflow: hidden;\n width: 100%;\n text-overflow: ellipsis;\n text-align: center;\n white-space: nowrap;\n font-weight: 500;\n color: var(--tab-color);\n}\n","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"],"version":3}
@@ -0,0 +1,71 @@
1
+ import { r as registerInstance, e as createEvent, h, a as Host, g as getElement } from './index-f19e63df.js';
2
+
3
+ const cpslTabsCss = ":host{--tab-top-padding:5px;--tab-bottom-padding:5px;--tab-left-padding:16px;--tab-right-padding:16px;--tabs-border-radius:var(--cpsl-border-radius-tabs);--tabs-font-size:12px;--tabs-line-height:24px;--tabs-border-width:1px;--tabs-border-color:var(--cpsl-color-tabs-border);--tabs-background-color:var(--cpsl-color-tabs-background);--slider-background-color:var(--cpsl-color-tabs-slider-background);display:inline-block;max-width:100%;font-family:var(--cpsl-font-family, inherit)}:host(.full-width){display:block}.tabs-container{position:relative;display:flex;overflow-x:scroll;overflow-y:hidden;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--tabs-background-color);font-size:var(--tabs-font-size);line-height:var(--tabs-line-height);-ms-overflow-style:none;scrollbar-width:none}.tabs-container::-webkit-scrollbar{display:none}.slider{position:absolute;top:calc(var(--tabs-border-width) * -1);bottom:calc(var(--tabs-border-width) * -1);left:-1px;border-width:var(--tabs-border-width);border-style:solid;border-color:var(--tabs-border-color);border-radius:var(--tabs-border-radius);background-color:var(--slider-background-color);box-shadow:-1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10)}.loaded{transition:all 0.5s}";
4
+
5
+ const CpslTabs = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.cpslTabsChanged = createEvent(this, "cpslTabsChanged", 7);
9
+ this.cpslTabsInit = createEvent(this, "cpslTabsInit", 7);
10
+ this.onTabClicked = (ev) => {
11
+ const { tab } = ev.detail;
12
+ if (tab !== this.selectedTab) {
13
+ this.selectedTabRect = getTab(this.tabs, tab).getBoundingClientRect();
14
+ this.cpslTabsChanged.emit({
15
+ tab,
16
+ });
17
+ }
18
+ };
19
+ this.selectedTabRect = undefined;
20
+ this.loaded = false;
21
+ this.fullWidth = undefined;
22
+ this.selectedTab = undefined;
23
+ }
24
+ updateSlider() {
25
+ setTimeout(() => {
26
+ this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();
27
+ }, 50);
28
+ }
29
+ updateTab(newValue, oldValue) {
30
+ if (Boolean(newValue) && !Boolean(oldValue)) {
31
+ this.selectedTabRect = getTab(this.tabs, this.selectedTab).getBoundingClientRect();
32
+ }
33
+ }
34
+ componentWillLoad() {
35
+ var _a, _b;
36
+ 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 };
37
+ this.cpslTabsInit.emit({
38
+ tab: this.selectedTab,
39
+ });
40
+ }
41
+ componentDidLoad() {
42
+ var _a, _b;
43
+ 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 };
44
+ setTimeout(() => {
45
+ this.loaded = true;
46
+ }, 50);
47
+ }
48
+ get tabs() {
49
+ return Array.from(this.el.querySelectorAll('cpsl-tab'));
50
+ }
51
+ render() {
52
+ const tabsPosition = this.el.getBoundingClientRect();
53
+ const tabsBorderWidth = +getComputedStyle(this.el).getPropertyValue('--tabs-border-width').slice(0, -2);
54
+ const selectedTabRect = this.selectedTabRect;
55
+ return (h(Host, { key: '5f03a3f029645ee970383b37e191232d621c53b9', class: { 'full-width': this.fullWidth }, onCpslTabButtonClick: this.onTabClicked }, h("div", { key: 'e2c5310cf6fcf9d4d78c0d21c27f2ed1383d5798', class: "tabs-container" }, h("slot", { key: '033a6f5a08a857902709c1c7e167a181433424e4' }), h("div", { key: '85d604ec4134f5d0a19922b0c2a4c3df85a97d67', class: { slider: true, loaded: this.loaded }, style: { width: `${selectedTabRect.width}px`, left: `${selectedTabRect.x - tabsPosition.x - tabsBorderWidth * 2}px` } }))));
56
+ }
57
+ get el() { return getElement(this); }
58
+ static get watchers() { return {
59
+ "fullWidth": ["updateSlider"],
60
+ "selectedTab": ["updateTab"]
61
+ }; }
62
+ };
63
+ const getTab = (tabs, tab) => {
64
+ const tabEl = typeof tab === 'string' ? tabs.find(t => t.tab === tab) : tab;
65
+ return tabEl;
66
+ };
67
+ CpslTabs.style = cpslTabsCss;
68
+
69
+ export { CpslTabs as cpsl_tabs };
70
+
71
+ //# sourceMappingURL=cpsl-tabs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cpsl-tabs.entry.esm.js","mappings":";;AAAA,MAAM,WAAW,GAAG,q2CAAq2C;;MCS52C,QAAQ;;;;;QA+DX,iBAAY,GAAG,CAAC,EAAoC;YAC1D,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC;YAE1B,IAAI,GAAG,KAAK,IAAI,CAAC,WAAW,EAAE;gBAC5B,IAAI,CAAC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["@import '../../themes/capsule.globals';\n\n:host {\n --tab-top-padding: 5px;\n --tab-bottom-padding: 5px;\n --tab-left-padding: 16px;\n --tab-right-padding: 16px;\n\n --tabs-border-radius: var(--cpsl-border-radius-tabs);\n --tabs-font-size: 12px;\n --tabs-line-height: 24px;\n --tabs-border-width: 1px;\n --tabs-border-color: var(--cpsl-color-tabs-border);\n --tabs-background-color: var(--cpsl-color-tabs-background);\n\n --slider-background-color: var(--cpsl-color-tabs-slider-background);\n\n display: inline-block;\n max-width: 100%;\n font-family: $font-family-base;\n}\n\n:host(.full-width) {\n display: block;\n}\n\n.tabs-container {\n position: relative;\n display: flex;\n overflow-x: scroll;\n overflow-y: hidden;\n\n border-width: var(--tabs-border-width);\n border-style: solid;\n border-color: var(--tabs-border-color);\n border-radius: var(--tabs-border-radius);\n\n background-color: var(--tabs-background-color);\n\n font-size: var(--tabs-font-size);\n line-height: var(--tabs-line-height);\n\n &::-webkit-scrollbar {\n display: none;\n }\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n\n.slider {\n position: absolute;\n top: calc(var(--tabs-border-width) * -1);\n bottom: calc(var(--tabs-border-width) * -1);\n left: -1px;\n\n border-width: var(--tabs-border-width);\n border-style: solid;\n border-color: var(--tabs-border-color);\n border-radius: var(--tabs-border-radius);\n\n background-color: var(--slider-background-color);\n\n box-shadow: -1px 0px 2px 0px var(--cpsl-color-alpha-black-10), 1px 0px 2px 0px var(--cpsl-color-alpha-black-10);\n}\n\n.loaded {\n transition: all 0.5s;\n}\n","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"],"version":3}
@@ -0,0 +1,66 @@
1
+ import { r as registerInstance, h, a as Host } from './index-f19e63df.js';
2
+
3
+ const cpslTextCss = ":host{font-family:var(--cpsl-font-family, inherit);color:var(--cpsl-color-text-primary);padding:0px;margin:0px;display:block}:host p,h1,h2,h3,h4,h5,h6{padding:0px;margin:0px;font-weight:inherit;font-size:inherit;letter-spacing:inherit}:host(.primary){color:var(--cpsl-color-text-primary)}:host(.secondary){color:var(--cpsl-color-text-secondary)}:host(.subtle){color:var(--cpsl-color-text-subtle)}:host(.inverted){color:var(--cpsl-color-text-inverted)}:host(.error){color:var(--cpsl-color-text-error)}:host(.medium){font-weight:500}:host(.semi-bold){font-weight:600}:host(.bold){font-weight:700}:host(.body-2xs){font-size:var(--cpsl-font-size-body-2xs)}:host(.body-xs){font-size:var(--cpsl-font-size-body-xs)}:host(.body-s){font-size:var(--cpsl-font-size-body-s)}:host(.body-m){font-size:var(--cpsl-font-size-body-m)}:host(.body-l){font-size:var(--cpsl-font-size-body-l)}:host(.body-xl){font-size:var(--cpsl-font-size-body-xl)}:host(.heading-xs){font-size:var(--cpsl-font-size-heading-xs)}:host(.heading-s){font-size:var(--cpsl-font-size-heading-s)}:host(.heading-m){font-size:var(--cpsl-font-size-heading-m);letter-spacing:-0.4px}:host(.heading-l){font-size:var(--cpsl-font-size-heading-l);letter-spacing:-1.12px}:host(.heading-xl){font-size:var(--cpsl-font-size-heading-xl);letter-spacing:-1.28px}:host(.heading-2xl){font-size:var(--cpsl-font-size-heading-2xl);letter-spacing:-1.44px}";
4
+
5
+ const CpslText = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.color = 'primary';
9
+ this.variant = 'bodyM';
10
+ this.weight = 'regular';
11
+ }
12
+ get Content() {
13
+ switch (this.variant) {
14
+ case 'headingXS': {
15
+ return (h("h6", null, h("slot", null)));
16
+ }
17
+ case 'headingS': {
18
+ return (h("h5", null, h("slot", null)));
19
+ }
20
+ case 'headingM': {
21
+ return (h("h4", null, h("slot", null)));
22
+ }
23
+ case 'headingL': {
24
+ return (h("h3", null, h("slot", null)));
25
+ }
26
+ case 'headingXL': {
27
+ return (h("h2", null, h("slot", null)));
28
+ }
29
+ case 'heading2XL': {
30
+ return (h("h1", null, h("slot", null)));
31
+ }
32
+ default: {
33
+ return (h("p", null, h("slot", null)));
34
+ }
35
+ }
36
+ }
37
+ render() {
38
+ return (h(Host, { key: '81d87b0076045e9a26a78d1a237c2d83a3bdbdc5', class: {
39
+ 'primary': this.color === 'primary',
40
+ 'secondary': this.color === 'secondary',
41
+ 'subtle': this.color === 'subtle',
42
+ 'inverted': this.color === 'inverted',
43
+ 'error': this.color === 'error',
44
+ 'medium': this.weight === 'medium',
45
+ 'semi-bold': this.weight === 'semiBold',
46
+ 'bold': this.weight === 'bold',
47
+ 'body-2xs': this.variant === 'body2XS',
48
+ 'body-xs': this.variant === 'bodyXS',
49
+ 'body-s': this.variant === 'bodyS',
50
+ 'body-m': this.variant === 'bodyM',
51
+ 'body-l': this.variant === 'bodyL',
52
+ 'body-xl': this.variant === 'bodyXL',
53
+ 'heading-xs': this.variant === 'headingXS',
54
+ 'heading-s': this.variant === 'headingS',
55
+ 'heading-m': this.variant === 'headingM',
56
+ 'heading-l': this.variant === 'headingL',
57
+ 'heading-xl': this.variant === 'headingXL',
58
+ 'heading-2xl': this.variant === 'heading2XL',
59
+ } }, this.Content));
60
+ }
61
+ };
62
+ CpslText.style = cpslTextCss;
63
+
64
+ export { CpslText as cpsl_text };
65
+
66
+ //# sourceMappingUR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,OAAO;gBAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBAClC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;gBAClC,SAAS,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;gBACpC,YAAY,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;gBAC1C,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,WAAW,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACxC,YAAY,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;gBAC1C,aAAa,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;aAC7C,IAEA,IAAI,CAAC,OAAO,CACR,EACP;KACH;;;;;;","names":[],"sources":["src/components/cpsl-text/cpsl-text.scss?tag=cpsl-text&encapsulation=shadow","src/components/cpsl-text/cpsl-text.tsx"],"sourcesContent":["@import '../../themes/capsule.globals';\n\n:host {\n font-family: $font-family-base;\n\n color: var(--cpsl-color-text-primary);\n padding: 0px;\n margin: 0px;\n\n display: block;\n}\n\n:host p,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n padding: 0px;\n margin: 0px;\n font-weight: inherit;\n font-size: inherit;\n letter-spacing: inherit;\n}\n\n:host(.primary) {\n color: var(--cpsl-color-text-primary);\n}\n\n:host(.secondary) {\n color: var(--cpsl-color-text-secondary);\n}\n\n:host(.subtle) {\n color: var(--cpsl-color-text-subtle);\n}\n\n:host(.inverted) {\n color: var(--cpsl-color-text-inverted);\n}\n\n:host(.error) {\n color: var(--cpsl-color-text-error);\n}\n\n:host(.medium) {\n font-weight: 500;\n}\n\n:host(.semi-bold) {\n font-weight: 600;\n}\n\n:host(.bold) {\n font-weight: 700;\n}\n\n:host(.body-2xs) {\n font-size: var(--cpsl-font-size-body-2xs);\n}\n\n:host(.body-xs) {\n font-size: var(--cpsl-font-size-body-xs);\n}\n\n:host(.body-s) {\n font-size: var(--cpsl-font-size-body-s);\n}\n\n:host(.body-m) {\n font-size: var(--cpsl-font-size-body-m);\n}\n\n:host(.body-l) {\n font-size: var(--cpsl-font-size-body-l);\n}\n\n:host(.body-xl) {\n font-size: var(--cpsl-font-size-body-xl);\n}\n\n:host(.heading-xs) {\n font-size: var(--cpsl-font-size-heading-xs);\n}\n\n:host(.heading-s) {\n font-size: var(--cpsl-font-size-heading-s);\n}\n\n:host(.heading-m) {\n font-size: var(--cpsl-font-size-heading-m);\n letter-spacing: -0.4px;\n}\n\n:host(.heading-l) {\n font-size: var(--cpsl-font-size-heading-l);\n letter-spacing: -1.12px;\n}\n\n:host(.heading-xl) {\n font-size: var(--cpsl-font-size-heading-xl);\n letter-spacing: -1.28px;\n}\n\n:host(.heading-2xl) {\n font-size: var(--cpsl-font-size-heading-2xl);\n letter-spacing: -1.44px;\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-text',\n styleUrl: 'cpsl-text.scss',\n shadow: true,\n})\nexport class CpslText {\n /**\n * The color of text.\n * Options are: `\"primary\"`, `\"secondary\", `\"subtle\", `\"inverted\", `\"error\".\n * Default is: `\"primary\"`.\n */\n @Prop() color?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error' = 'primary';\n\n /**\n * The variant of text.\n * Options are: `\"body2XS\"`, `\"bodyXS\", `\"bodyS\", `\"bodyM\", `\"bodyL\", `\"bodyXL\", `\"headingXS\", `\"headingS\", `\"headingM\", `\"headingL\", `\"headingXL\", `\"heading2XL\".\n * Default is: `\"bodyM\"`.\n */\n @Prop() variant?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL' = 'bodyM';\n\n /**\n * The weight of text.\n * Options are: `\"regular\"`, `\"medium\", `\"semiBold\", `\"bold\".\n * Default is: `\"regular\"`.\n */\n @Prop() weight?: 'regular' | 'medium' | 'semiBold' | 'bold' = 'regular';\n\n private get Content() {\n switch (this.variant) {\n case 'headingXS': {\n return (\n <h6>\n <slot></slot>\n </h6>\n );\n }\n case 'headingS': {\n return (\n <h5>\n <slot></slot>\n </h5>\n );\n }\n case 'headingM': {\n return (\n <h4>\n <slot></slot>\n </h4>\n );\n }\n case 'headingL': {\n return (\n <h3>\n <slot></slot>\n </h3>\n );\n }\n case 'headingXL': {\n return (\n <h2>\n <slot></slot>\n </h2>\n );\n }\n case 'heading2XL': {\n return (\n <h1>\n <slot></slot>\n </h1>\n );\n }\n default: {\n return (\n <p>\n <slot></slot>\n </p>\n );\n }\n }\n }\n\n render() {\n return (\n <Host\n class={{\n // COLORS\n 'primary': this.color === 'primary',\n 'secondary': this.color === 'secondary',\n 'subtle': this.color === 'subtle',\n 'inverted': this.color === 'inverted',\n 'error': this.color === 'error',\n // WEIGHTS\n 'medium': this.weight === 'medium',\n 'semi-bold': this.weight === 'semiBold',\n 'bold': this.weight === 'bold',\n // SIZES\n 'body-2xs': this.variant === 'body2XS',\n 'body-xs': this.variant === 'bodyXS',\n 'body-s': this.variant === 'bodyS',\n 'body-m': this.variant === 'bodyM',\n 'body-l': this.variant === 'bodyL',\n 'body-xl': this.variant === 'bodyXL',\n 'heading-xs': this.variant === 'headingXS',\n 'heading-s': this.variant === 'headingS',\n 'heading-m': this.variant === 'headingM',\n 'heading-l': this.variant === 'headingL',\n 'heading-xl': this.variant === 'headingXL',\n 'heading-2xl': this.variant === 'heading2XL',\n }}\n >\n {this.Content}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,19 @@
1
+ import { r as registerInstance, h, a as Host } from './index-f19e63df.js';
2
+
3
+ const cpslTileButtonCss = ":host{--button-icon-color:var(--cpsl-color-text-primary);--button-border-radius:var(--cpsl-border-radius-tile-button);--button-background-color:var(--cpsl-color-tile-button-surface-default);--button-border-color:var(--cpsl-color-tile-button-border);--button-width:72px;--button-height:56px;--button-gap:4px;--button-box-shadow:0px -4px 4px 0px var(--cpsl-color-alpha-black-2) inset, 0px 4px 4px 0px var(--cpsl-color-alpha-white-4) inset}:host :hover{--button-background-color:var(--cpsl-color-tile-button-surface-hover)}:host :active{--button-background-color:var(--cpsl-color-tile-button-surface-pressed)}.button-native{border-radius:var(--button-border-radius);-webkit-padding-start:var(--button-padding-start);padding-inline-start:var(--button-padding-start);-webkit-padding-end:var(--button-padding-end);padding-inline-end:var(--button-padding-end);padding-top:var(--button-padding-top);padding-bottom:var(--button-padding-bottom);border:1px solid transparent;cursor:pointer;background-color:var(--button-background-color);border-color:var(--button-border-color);display:flex;flex-direction:column;gap:var(--button-gap);align-items:center;justify-content:center;width:var(--button-width);height:var(--button-height);box-shadow:var(--button-box-shadow)}.button-native cpsl-icon{--icon-color:var(--button-icon-color)}";
4
+
5
+ const CpslTileButton = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.src = undefined;
9
+ this.icon = undefined;
10
+ }
11
+ render() {
12
+ return (h(Host, { key: '14b2eadfe974ab600b6acf93e583bda702a8d764' }, h("button", { key: 'd49e6badbcf1f7a30f97e7348e7171924c00b52f', class: "button-native" }, h("cpsl-icon", { key: '6fee0738b703c3f16a3e0bec4e8cb81393bbfbf6', exportparts: "icon", src: this.src, icon: this.icon }), h("slot", { key: 'b74a90c5b5bf6cd61e05f45244f78312b68fddbb' }))));
13
+ }
14
+ };
15
+ CpslTileButton.style = cpslTileButtonCss;
16
+
17
+ export { CpslTileButton as cpsl_tile_button };
18
+
19
+ //# sourceMappingURL=cpsl-tile-button.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cpsl-tile-button.entry.esm.js","mappings":";;AAAA,MAAM,iBAAiB,GAAG,yyCAAyyC;;MCQtzC,cAAc;;;;;;IAWzB,MAAM;QACJ,QACE,EAAC,IAAI,uDACH,+DAAQ,KAAK,EAAC,eAAe,IAC3B,kEAAW,WAAW,EAAC,MAAM,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,EAChE,8DAAa,CACN,CACJ,EACP;KACH;;;;;;","names":[],"sources":["src/components/cpsl-tile-button/cpsl-tile-button.scss?tag=cpsl-tile-button&encapsulation=shadow","src/components/cpsl-tile-button/cpsl-tile-button.tsx"],"sourcesContent":["@import '../../themes/capsule.globals';\n\n:host {\n --button-icon-color: var(--cpsl-color-text-primary);\n\n --button-border-radius: var(--cpsl-border-radius-tile-button);\n\n --button-background-color: var(--cpsl-color-tile-button-surface-default);\n --button-border-color: var(--cpsl-color-tile-button-border);\n\n --button-width: 72px;\n --button-height: 56px;\n --button-gap: 4px;\n\n --button-box-shadow: 0px -4px 4px 0px var(--cpsl-color-alpha-black-2) inset, 0px 4px 4px 0px var(--cpsl-color-alpha-white-4) inset;\n}\n\n:host {\n :hover {\n --button-background-color: var(--cpsl-color-tile-button-surface-hover);\n }\n :active {\n --button-background-color: var(--cpsl-color-tile-button-surface-pressed);\n }\n}\n\n.button-native {\n @include border-radius(var(--button-border-radius));\n @include padding(var(--button-padding-top), var(--button-padding-end), var(--button-padding-bottom), var(--button-padding-start));\n\n border: 1px solid transparent;\n cursor: pointer;\n\n background-color: var(--button-background-color);\n border-color: var(--button-border-color);\n\n display: flex;\n flex-direction: column;\n gap: var(--button-gap);\n\n align-items: center;\n justify-content: center;\n\n width: var(--button-width);\n height: var(--button-height);\n\n box-shadow: var(--button-box-shadow);\n\n cpsl-icon {\n --icon-color: var(--button-icon-color);\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport { IconType } from '../../interface';\n\n@Component({\n tag: 'cpsl-tile-button',\n styleUrl: 'cpsl-tile-button.scss',\n shadow: true,\n})\nexport class CpslTileButton {\n /**\n * The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() src?: string;\n\n /**\n * The name of the icon. If both `icon` and `src` are provided, `icon` will be used.\n */\n @Prop() icon?: IconType;\n\n render() {\n return (\n <Host>\n <button class=\"button-native\">\n <cpsl-icon exportparts=\"icon\" src={this.src} icon={this.icon} />\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}