@usecapsule/core-components 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (401) 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-modal/cpsl-modal.d.ts +2 -0
  60. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  61. package/dist/types/index.d.ts +1 -1
  62. package/dist/types/interface.d.ts +15 -0
  63. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  64. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  65. package/package.json +2 -2
  66. package/dist/capsule/p-0462f723.js +0 -2
  67. package/dist/capsule/p-0462f723.js.map +0 -1
  68. package/dist/capsule/p-202a85c9.entry.js +0 -29
  69. package/dist/capsule/p-202a85c9.entry.js.map +0 -1
  70. package/dist/capsule/p-68c73705.entry.js +0 -2
  71. package/dist/capsule/p-68c73705.entry.js.map +0 -1
  72. package/dist/capsule/p-6fb7c4d1.js +0 -3
  73. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  74. package/dist/capsule/p-91412151.entry.js +0 -2
  75. package/dist/capsule/p-91412151.entry.js.map +0 -1
  76. package/dist/capsule/p-a95ec4df.entry.js +0 -2
  77. package/dist/capsule/p-a95ec4df.entry.js.map +0 -1
  78. package/dist/capsule/p-c2bf050b.js +0 -2
  79. package/dist/capsule/p-c2bf050b.js.map +0 -1
  80. package/dist/capsule/p-d7be092d.entry.js +0 -10
  81. package/dist/capsule/p-d7be092d.entry.js.map +0 -1
  82. package/dist/capsule/p-e1255160.js +0 -2
  83. package/dist/capsule/p-e1255160.js.map +0 -1
  84. package/dist/capsule/p-f604b591.entry.js +0 -2
  85. package/dist/capsule/p-f604b591.entry.js.map +0 -1
  86. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  87. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  88. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  89. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  90. package/dist/cjs/capsule.cjs.js +0 -27
  91. package/dist/cjs/capsule.cjs.js.map +0 -1
  92. package/dist/cjs/constants-4bb85cc5.js +0 -12
  93. package/dist/cjs/constants-4bb85cc5.js.map +0 -1
  94. package/dist/cjs/cpsl-alert_17.cjs.entry.js +0 -10704
  95. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  96. package/dist/cjs/cpsl-animation.cjs.entry.js +0 -20129
  97. package/dist/cjs/cpsl-animation.cjs.entry.js.map +0 -1
  98. package/dist/cjs/cpsl-col.cjs.entry.js +0 -125
  99. package/dist/cjs/cpsl-col.cjs.entry.js.map +0 -1
  100. package/dist/cjs/cpsl-grid.cjs.entry.js +0 -25
  101. package/dist/cjs/cpsl-grid.cjs.entry.js.map +0 -1
  102. package/dist/cjs/cpsl-info-box.cjs.entry.js +0 -22
  103. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +0 -1
  104. package/dist/cjs/cpsl-row.cjs.entry.js +0 -22
  105. package/dist/cjs/cpsl-row.cjs.entry.js.map +0 -1
  106. package/dist/cjs/index-3fccb5b4.js +0 -2012
  107. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  108. package/dist/cjs/index.cjs.js +0 -342
  109. package/dist/cjs/index.cjs.js.map +0 -1
  110. package/dist/cjs/loader.cjs.js +0 -17
  111. package/dist/cjs/loader.cjs.js.map +0 -1
  112. package/dist/collection/assets/icons/alert-circle.svg +0 -3
  113. package/dist/collection/assets/icons/angel-list-brand.svg +0 -3
  114. package/dist/collection/assets/icons/angel-list.svg +0 -3
  115. package/dist/collection/assets/icons/apple-brand.svg +0 -3
  116. package/dist/collection/assets/icons/apple.svg +0 -3
  117. package/dist/collection/assets/icons/arrow-narrow.svg +0 -3
  118. package/dist/collection/assets/icons/arrow.svg +0 -3
  119. package/dist/collection/assets/icons/backup-kit.svg +0 -4
  120. package/dist/collection/assets/icons/capsule-logo.svg +0 -18
  121. package/dist/collection/assets/icons/capsule-rings-dark.svg +0 -34
  122. package/dist/collection/assets/icons/capsule-rings.svg +0 -34
  123. package/dist/collection/assets/icons/capsule.svg +0 -4
  124. package/dist/collection/assets/icons/check.svg +0 -3
  125. package/dist/collection/assets/icons/clock.svg +0 -3
  126. package/dist/collection/assets/icons/close.svg +0 -4
  127. package/dist/collection/assets/icons/clubhouse-brand.svg +0 -4
  128. package/dist/collection/assets/icons/clubhouse.svg +0 -4
  129. package/dist/collection/assets/icons/copy.svg +0 -3
  130. package/dist/collection/assets/icons/discord-brand.svg +0 -4
  131. package/dist/collection/assets/icons/discord.svg +0 -4
  132. package/dist/collection/assets/icons/download-cloud.svg +0 -3
  133. package/dist/collection/assets/icons/dribbble-brand.svg +0 -4
  134. package/dist/collection/assets/icons/dribbble.svg +0 -3
  135. package/dist/collection/assets/icons/eye-off.svg +0 -3
  136. package/dist/collection/assets/icons/eye.svg +0 -4
  137. package/dist/collection/assets/icons/facebook-brand.svg +0 -11
  138. package/dist/collection/assets/icons/facebook.svg +0 -10
  139. package/dist/collection/assets/icons/figma-brand.svg +0 -14
  140. package/dist/collection/assets/icons/figma.svg +0 -3
  141. package/dist/collection/assets/icons/github-brand.svg +0 -10
  142. package/dist/collection/assets/icons/github.svg +0 -10
  143. package/dist/collection/assets/icons/google-brand.svg +0 -13
  144. package/dist/collection/assets/icons/google.svg +0 -10
  145. package/dist/collection/assets/icons/help-circle.svg +0 -3
  146. package/dist/collection/assets/icons/hero-email.svg +0 -12
  147. package/dist/collection/assets/icons/hero-lock.svg +0 -4
  148. package/dist/collection/assets/icons/hero-passkey.svg +0 -12
  149. package/dist/collection/assets/icons/hero-phone.svg +0 -4
  150. package/dist/collection/assets/icons/hero-wallet.svg +0 -5
  151. package/dist/collection/assets/icons/index.js +0 -70
  152. package/dist/collection/assets/icons/index.js.map +0 -1
  153. package/dist/collection/assets/icons/info-circle.svg +0 -3
  154. package/dist/collection/assets/icons/instagram-brand.svg +0 -12
  155. package/dist/collection/assets/icons/instagram.svg +0 -12
  156. package/dist/collection/assets/icons/key.svg +0 -3
  157. package/dist/collection/assets/icons/linkedin-brand.svg +0 -10
  158. package/dist/collection/assets/icons/linkedin.svg +0 -10
  159. package/dist/collection/assets/icons/mail.svg +0 -3
  160. package/dist/collection/assets/icons/more-login-options.svg +0 -13
  161. package/dist/collection/assets/icons/phone.svg +0 -3
  162. package/dist/collection/assets/icons/pintrest-brand.svg +0 -11
  163. package/dist/collection/assets/icons/pintrest.svg +0 -10
  164. package/dist/collection/assets/icons/plus-circle.svg +0 -5
  165. package/dist/collection/assets/icons/reddit-brand.svg +0 -11
  166. package/dist/collection/assets/icons/reddit.svg +0 -3
  167. package/dist/collection/assets/icons/signal-brand.svg +0 -3
  168. package/dist/collection/assets/icons/signal.svg +0 -3
  169. package/dist/collection/assets/icons/snapchat-brand.svg +0 -4
  170. package/dist/collection/assets/icons/snapchat.svg +0 -3
  171. package/dist/collection/assets/icons/telegram-brand.svg +0 -15
  172. package/dist/collection/assets/icons/telegram.svg +0 -10
  173. package/dist/collection/assets/icons/tik-tok-brand.svg +0 -5
  174. package/dist/collection/assets/icons/tik-tok.svg +0 -3
  175. package/dist/collection/assets/icons/tumblr-brand.svg +0 -10
  176. package/dist/collection/assets/icons/tumblr.svg +0 -10
  177. package/dist/collection/assets/icons/twitter-brand.svg +0 -3
  178. package/dist/collection/assets/icons/twitter.svg +0 -3
  179. package/dist/collection/assets/icons/wallet.svg +0 -5
  180. package/dist/collection/assets/icons/youtube-brand.svg +0 -11
  181. package/dist/collection/assets/icons/youtube.svg +0 -3
  182. package/dist/collection/collection-manifest.json +0 -33
  183. package/dist/collection/components/cpsl-alert/cpsl-alert.css +0 -98
  184. package/dist/collection/components/cpsl-alert/cpsl-alert.js +0 -80
  185. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +0 -1
  186. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  187. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  188. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  189. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  190. package/dist/collection/components/cpsl-animation/cpsl-animation.css +0 -17
  191. package/dist/collection/components/cpsl-animation/cpsl-animation.js +0 -102
  192. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +0 -1
  193. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  194. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  195. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  196. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  197. package/dist/collection/components/cpsl-button/cpsl-button.css +0 -162
  198. package/dist/collection/components/cpsl-button/cpsl-button.js +0 -68
  199. package/dist/collection/components/cpsl-button/cpsl-button.js.map +0 -1
  200. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  201. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  202. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  203. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  204. package/dist/collection/components/cpsl-code-input/code-change-interface.js +0 -2
  205. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +0 -1
  206. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -134
  207. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +0 -223
  208. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +0 -1
  209. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  210. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  211. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  212. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  213. package/dist/collection/components/cpsl-col/cpsl-col.css +0 -200
  214. package/dist/collection/components/cpsl-col/cpsl-col.js +0 -528
  215. package/dist/collection/components/cpsl-col/cpsl-col.js.map +0 -1
  216. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  217. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  218. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  219. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  220. package/dist/collection/components/cpsl-divider/cpsl-divider.css +0 -73
  221. package/dist/collection/components/cpsl-divider/cpsl-divider.js +0 -19
  222. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +0 -1
  223. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  224. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  225. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  226. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  227. package/dist/collection/components/cpsl-grid/cpsl-grid.css +0 -235
  228. package/dist/collection/components/cpsl-grid/cpsl-grid.js +0 -46
  229. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +0 -1
  230. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  231. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  232. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  233. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  234. package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -95
  235. package/dist/collection/components/cpsl-icon/cpsl-icon.js +0 -68
  236. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +0 -1
  237. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  238. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  239. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  240. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  241. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +0 -77
  242. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +0 -19
  243. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +0 -1
  244. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  245. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  246. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  247. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  248. package/dist/collection/components/cpsl-input/cpsl-input.css +0 -194
  249. package/dist/collection/components/cpsl-input/cpsl-input.js +0 -708
  250. package/dist/collection/components/cpsl-input/cpsl-input.js.map +0 -1
  251. package/dist/collection/components/cpsl-input/input-interface.js +0 -2
  252. package/dist/collection/components/cpsl-input/input-interface.js.map +0 -1
  253. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  254. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  255. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  256. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  257. package/dist/collection/components/cpsl-modal/cpsl-modal.css +0 -172
  258. package/dist/collection/components/cpsl-modal/cpsl-modal.js +0 -423
  259. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  260. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  261. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  262. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  263. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  264. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +0 -11
  265. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +0 -108
  266. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +0 -1
  267. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  268. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  269. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  270. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  271. package/dist/collection/components/cpsl-pill/cpsl-pill.css +0 -92
  272. package/dist/collection/components/cpsl-pill/cpsl-pill.js +0 -43
  273. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +0 -1
  274. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  275. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  276. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  277. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  278. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +0 -82
  279. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +0 -71
  280. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +0 -1
  281. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +0 -2
  282. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +0 -1
  283. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  284. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  285. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  286. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  287. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +0 -81
  288. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +0 -107
  289. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +0 -1
  290. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  291. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  292. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  293. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  294. package/dist/collection/components/cpsl-row/cpsl-row.css +0 -136
  295. package/dist/collection/components/cpsl-row/cpsl-row.js +0 -19
  296. package/dist/collection/components/cpsl-row/cpsl-row.js.map +0 -1
  297. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  298. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  299. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  300. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  301. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +0 -175
  302. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +0 -252
  303. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +0 -1
  304. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  305. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  306. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  307. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  308. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +0 -68
  309. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +0 -69
  310. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +0 -1
  311. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  312. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  313. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  314. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  315. package/dist/collection/components/cpsl-tab/cpsl-tab.css +0 -23
  316. package/dist/collection/components/cpsl-tab/cpsl-tab.js +0 -121
  317. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +0 -1
  318. package/dist/collection/components/cpsl-tab/tab-interface.js +0 -2
  319. package/dist/collection/components/cpsl-tab/tab-interface.js.map +0 -1
  320. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  321. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  322. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  323. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  324. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +0 -111
  325. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +0 -170
  326. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +0 -1
  327. package/dist/collection/components/cpsl-tabs/tabs-interface.js +0 -2
  328. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +0 -1
  329. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  330. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  331. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  332. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  333. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -59
  334. package/dist/collection/components/cpsl-text/cpsl-text.js +0 -19
  335. package/dist/collection/components/cpsl-text/cpsl-text.js.map +0 -1
  336. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  337. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  338. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  339. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  340. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +0 -97
  341. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +0 -67
  342. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +0 -1
  343. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  344. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  345. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  346. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  347. package/dist/collection/constants.js +0 -6
  348. package/dist/collection/constants.js.map +0 -1
  349. package/dist/collection/index.js +0 -3
  350. package/dist/collection/index.js.map +0 -1
  351. package/dist/collection/interface.js +0 -2
  352. package/dist/collection/interface.js.map +0 -1
  353. package/dist/collection/utils/media.js +0 -18
  354. package/dist/collection/utils/media.js.map +0 -1
  355. package/dist/collection/utils/theme/generateBorderRadii.js +0 -56
  356. package/dist/collection/utils/theme/generateBorderRadii.js.map +0 -1
  357. package/dist/collection/utils/theme/generateFont.js +0 -7
  358. package/dist/collection/utils/theme/generateFont.js.map +0 -1
  359. package/dist/collection/utils/theme/generatePalette.js +0 -46
  360. package/dist/collection/utils/theme/generatePalette.js.map +0 -1
  361. package/dist/collection/utils/theme/generateTheme.js +0 -12
  362. package/dist/collection/utils/theme/generateTheme.js.map +0 -1
  363. package/dist/collection/utils/theme/utils.js +0 -21
  364. package/dist/collection/utils/theme/utils.js.map +0 -1
  365. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  366. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  367. package/dist/esm/capsule.js +0 -22
  368. package/dist/esm/capsule.js.map +0 -1
  369. package/dist/esm/cpsl-alert_17.entry.js +0 -10684
  370. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  371. package/dist/esm/cpsl-animation.entry.js.map +0 -1
  372. package/dist/esm/cpsl-col.entry.js.map +0 -1
  373. package/dist/esm/cpsl-grid.entry.js.map +0 -1
  374. package/dist/esm/cpsl-info-box.entry.js.map +0 -1
  375. package/dist/esm/cpsl-row.entry.js +0 -18
  376. package/dist/esm/cpsl-row.entry.js.map +0 -1
  377. package/dist/esm/index-f00e090c.js +0 -1982
  378. package/dist/esm/index-f00e090c.js.map +0 -1
  379. package/dist/esm/index.js +0 -338
  380. package/dist/esm/index.js.map +0 -1
  381. package/dist/esm/loader.js +0 -13
  382. package/dist/esm/loader.js.map +0 -1
  383. package/dist/esm/polyfills/core-js.js +0 -11
  384. package/dist/esm/polyfills/dom.js +0 -79
  385. package/dist/esm/polyfills/es5-html-element.js +0 -1
  386. package/dist/esm/polyfills/index.js +0 -34
  387. package/dist/esm/polyfills/system.js +0 -6
  388. package/dist/index.cjs.js +0 -1
  389. package/dist/index.js +0 -1
  390. package/dist/loader/cdn.js +0 -3
  391. package/dist/loader/index.cjs.js +0 -3
  392. package/dist/loader/index.d.ts +0 -21
  393. package/dist/loader/index.es2017.js +0 -3
  394. package/dist/loader/index.js +0 -4
  395. package/dist/loader/package.json +0 -11
  396. package/dist/scripts/buildIconLibrary.js +0 -33
  397. package/dist/scripts/buildIconLibrary.js.map +0 -1
  398. /package/dist/{esm → capsule}/app-globals-0f993ce5.js +0 -0
  399. /package/dist/{esm → capsule}/app-globals-0f993ce5.js.map +0 -0
  400. /package/dist/{esm → capsule}/constants-7b49abd5.js +0 -0
  401. /package/dist/{esm → capsule}/constants-7b49abd5.js.map +0 -0
@@ -1,252 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class CpslSlideButton {
3
- constructor() {
4
- this.disabled = undefined;
5
- this.endIcon = undefined;
6
- this.endText = undefined;
7
- this.startIcon = undefined;
8
- this.startText = undefined;
9
- }
10
- componentDidLoad() {
11
- this.dragElement(this.el.shadowRoot.getElementById('slider'));
12
- }
13
- dragElement(el) {
14
- const pointerDown = (e) => {
15
- pos3 = e.clientX;
16
- switch (e.pointerType) {
17
- case 'mouse':
18
- el.onmousedown = dragMouseDown;
19
- break;
20
- default:
21
- el.ontouchstart = dragTouchDown;
22
- }
23
- };
24
- const dragMouseDown = (e) => {
25
- e.preventDefault();
26
- pos3 = e.clientX;
27
- document.onmouseup = closeDragElement;
28
- document.onmousemove = elementMouseDrag;
29
- };
30
- const dragTouchDown = (e) => {
31
- e.preventDefault();
32
- const touchLocation = e.targetTouches[0];
33
- pos3 = touchLocation.clientX;
34
- document.ontouchend = closeDragElement;
35
- document.ontouchmove = elementTouchDrag;
36
- };
37
- const elementMouseDrag = (e) => {
38
- e.preventDefault();
39
- pos1 = pos3 - e.clientX;
40
- pos3 = e.clientX;
41
- finishElementDrag(pos1);
42
- };
43
- const elementTouchDrag = (e) => {
44
- e.preventDefault();
45
- const touchLocation = e.targetTouches[0];
46
- pos1 = pos3 - touchLocation.clientX;
47
- pos3 = touchLocation.clientX;
48
- finishElementDrag(pos1);
49
- };
50
- const finishElementDrag = (pos) => {
51
- const newPos = el.offsetLeft - pos;
52
- if (newPos >= minX && newPos <= maxX) {
53
- const newPosPercent = Math.max(Math.min(Math.round((newPos / maxX) * 100) / 100, 100), 0);
54
- startTextEl.style.opacity = `${(1 - newPosPercent * 2) * 100}%`;
55
- endTextEl.style.opacity = `${newPosPercent * 100}%`;
56
- startIconEl.style.opacity = `${(1 - newPosPercent * 2) * 100}%`;
57
- endIconEl.style.opacity = `${newPosPercent * 100}%`;
58
- endBackgroundEl.style.opacity = `${newPosPercent * 100}%`;
59
- el.style.left = `${newPos}px`;
60
- }
61
- };
62
- const closeDragElement = () => {
63
- if (el.offsetLeft + sliderHeight >= containerWidth - sliderHeight / 2) {
64
- el.style.left = `${maxX}px`;
65
- startTextEl.style.opacity = '0%';
66
- endTextEl.style.opacity = '100%';
67
- startIconEl.style.opacity = '0%';
68
- endIconEl.style.opacity = '100%';
69
- endBackgroundEl.style.opacity = '100%';
70
- this.cpslComplete.emit(true);
71
- }
72
- else {
73
- el.style.left = `${minX}px`;
74
- startTextEl.style.opacity = '100%';
75
- endTextEl.style.opacity = '0%';
76
- startIconEl.style.opacity = '100%';
77
- endIconEl.style.opacity = '0%';
78
- endBackgroundEl.style.opacity = '0%';
79
- }
80
- document.onmouseup = null;
81
- document.onmousemove = null;
82
- document.ontouchend = null;
83
- document.ontouchmove = null;
84
- };
85
- const startIconEl = this.startIconEl;
86
- const endIconEl = this.endIconEl;
87
- const startTextEl = this.startTextEl;
88
- const endTextEl = this.endTextEl;
89
- const endBackgroundEl = this.endBackgroundEl;
90
- const sliderContainerEl = this.sliderContainerEl;
91
- const containerWidth = sliderContainerEl.clientWidth;
92
- const sliderHeight = el.getBoundingClientRect().height;
93
- const minX = 1;
94
- const maxX = containerWidth - sliderHeight - 1;
95
- let pos1 = 0, pos3 = 0;
96
- el.onpointerdown = pointerDown;
97
- }
98
- get sliderContainerEl() {
99
- return this.el.shadowRoot.getElementById('slider-container');
100
- }
101
- get startTextEl() {
102
- return this.el.shadowRoot.getElementById('start-text');
103
- }
104
- get endTextEl() {
105
- return this.el.shadowRoot.getElementById('end-text');
106
- }
107
- get endBackgroundEl() {
108
- return this.el.shadowRoot.getElementById('end-slider-container-background');
109
- }
110
- get startIconEl() {
111
- return this.el.shadowRoot.getElementById('start-icon');
112
- }
113
- get endIconEl() {
114
- return this.el.shadowRoot.getElementById('end-icon');
115
- }
116
- render() {
117
- return (h(Host, { key: 'd01cbdfa0b7e8f17ebb3a1f7ba49aded0ec70de6' }, h("div", { key: '37fd16cc1f2d7fb26929438a382f0684195d16f9', id: "slider-container", class: "slider-container" }, h("div", { key: '2504155ec8fb97a2daea8c1856db4332edf69fd4', id: "start-slider-container-background", class: { 'start-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: '475d235f0c1ea7ac8551c81cf94ca0dd657d3d74', id: "end-slider-container-background", class: { 'end-slider-container-background': true, 'slider-container-background': true } }), h("div", { key: 'c534e20d7d609392ef2f52e20b7b66a3cbb2d207', id: "slider", class: { slider: true, disabled: this.disabled } }, h("cpsl-icon", { key: '76ea202fba460ab3083ba48e673582bf37440544', id: "start-icon", class: { 'start-icon': true, 'icon': true }, icon: this.startIcon }), h("cpsl-icon", { key: 'dd92b0769644334cdba131523099cabc49b6f4e9', id: "end-icon", class: { 'end-icon': true, 'icon': true }, icon: this.endIcon })), h("span", { key: '97ff537baacce0bc3a2c31cc25fefc6078015f54', id: "start-text", class: { 'start-text': true, 'disabled': this.disabled } }, this.startText), h("span", { key: 'c51e4d97e30e6b03adcf9fb9567a75f865822c9d', id: "end-text", class: "end-text" }, this.endText))));
118
- }
119
- static get is() { return "cpsl-slide-button"; }
120
- static get encapsulation() { return "shadow"; }
121
- static get originalStyleUrls() {
122
- return {
123
- "$": ["cpsl-slide-button.scss"]
124
- };
125
- }
126
- static get styleUrls() {
127
- return {
128
- "$": ["cpsl-slide-button.css"]
129
- };
130
- }
131
- static get properties() {
132
- return {
133
- "disabled": {
134
- "type": "boolean",
135
- "mutable": false,
136
- "complexType": {
137
- "original": "boolean",
138
- "resolved": "boolean",
139
- "references": {}
140
- },
141
- "required": false,
142
- "optional": false,
143
- "docs": {
144
- "tags": [],
145
- "text": "Whether or not the component is disabled. If true, the component will display the `startText`."
146
- },
147
- "attribute": "disabled",
148
- "reflect": false
149
- },
150
- "endIcon": {
151
- "type": "string",
152
- "mutable": false,
153
- "complexType": {
154
- "original": "IconType",
155
- "resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
156
- "references": {
157
- "IconType": {
158
- "location": "import",
159
- "path": "../../interface",
160
- "id": "src/interface.ts::IconType"
161
- }
162
- }
163
- },
164
- "required": false,
165
- "optional": false,
166
- "docs": {
167
- "tags": [],
168
- "text": "The name of the ending icon to show."
169
- },
170
- "attribute": "end-icon",
171
- "reflect": false
172
- },
173
- "endText": {
174
- "type": "string",
175
- "mutable": false,
176
- "complexType": {
177
- "original": "string",
178
- "resolved": "string",
179
- "references": {}
180
- },
181
- "required": false,
182
- "optional": false,
183
- "docs": {
184
- "tags": [],
185
- "text": "The ending text."
186
- },
187
- "attribute": "end-text",
188
- "reflect": false
189
- },
190
- "startIcon": {
191
- "type": "string",
192
- "mutable": false,
193
- "complexType": {
194
- "original": "IconType",
195
- "resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"youtubeBrand\" | \"youtube\"",
196
- "references": {
197
- "IconType": {
198
- "location": "import",
199
- "path": "../../interface",
200
- "id": "src/interface.ts::IconType"
201
- }
202
- }
203
- },
204
- "required": false,
205
- "optional": false,
206
- "docs": {
207
- "tags": [],
208
- "text": "The name of the starting icon to show."
209
- },
210
- "attribute": "start-icon",
211
- "reflect": false
212
- },
213
- "startText": {
214
- "type": "string",
215
- "mutable": false,
216
- "complexType": {
217
- "original": "string",
218
- "resolved": "string",
219
- "references": {}
220
- },
221
- "required": false,
222
- "optional": false,
223
- "docs": {
224
- "tags": [],
225
- "text": "The starting text."
226
- },
227
- "attribute": "start-text",
228
- "reflect": false
229
- }
230
- };
231
- }
232
- static get events() {
233
- return [{
234
- "method": "cpslComplete",
235
- "name": "cpslComplete",
236
- "bubbles": true,
237
- "cancelable": true,
238
- "composed": true,
239
- "docs": {
240
- "tags": [],
241
- "text": "The `cpslComplete` event is fired when the slider is at the end."
242
- },
243
- "complexType": {
244
- "original": "boolean",
245
- "resolved": "boolean",
246
- "references": {}
247
- }
248
- }];
249
- }
250
- static get elementRef() { return "el"; }
251
- }
252
- //# sourceMappingURL=cpsl-slide-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-slide-button.js","sourceRoot":"","sources":["../../../../src/components/cpsl-slide-button/cpsl-slide-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AAQvF,MAAM,OAAO,eAAe;;;;;;;;IAiC1B,gBAAgB;QACd,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChE,CAAC;IAEO,WAAW,CAAC,EAAe;QAC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I,EAAE,GAAI;gBACzI,4DAAK,EAAE,EAAC,iCAAiC,EAAC,KAAK,EAAE,EAAE,iCAAiC,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAE,GAAI;gBACrI,4DAAK,EAAE,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;oBAC/D,kEAAW,EAAE,EAAC,YAAY,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,GAAI;oBAChG,kEAAW,EAAE,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,GAAI,CACtF;gBACN,6DAAM,EAAE,EAAC,YAAY,EAAC,KAAK,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC3E,IAAI,CAAC,SAAS,CACV;gBACP,6DAAM,EAAE,EAAC,UAAU,EAAC,KAAK,EAAC,UAAU,IACjC,IAAI,CAAC,OAAO,CACR,CACH,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -1,29 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try {
5
- step(generator.next(value));
6
- }
7
- catch (e) {
8
- reject(e);
9
- } }
10
- function rejected(value) { try {
11
- step(generator["throw"](value));
12
- }
13
- catch (e) {
14
- reject(e);
15
- } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- import { newE2EPage } from "@stencil/core/testing";
21
- describe('cpsl-slide-button', () => {
22
- it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
- const page = yield newE2EPage();
24
- yield page.setContent('<cpsl-slide-button></cpsl-slide-button>');
25
- const element = yield page.find('cpsl-slide-button');
26
- expect(element).toHaveClass('hydrated');
27
- }));
28
- });
29
- //# sourceMappingURL=cpsl-slide-button.e2e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-slide-button.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-slide-button/test/cpsl-slide-button.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC;QAEjE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACrD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-slide-button', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-slide-button></cpsl-slide-button>');\n\n const element = await page.find('cpsl-slide-button');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -1,37 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try {
5
- step(generator.next(value));
6
- }
7
- catch (e) {
8
- reject(e);
9
- } }
10
- function rejected(value) { try {
11
- step(generator["throw"](value));
12
- }
13
- catch (e) {
14
- reject(e);
15
- } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- import { newSpecPage } from "@stencil/core/testing";
21
- import { CpslSlideButton } from "../cpsl-slide-button";
22
- describe('cpsl-slide-button', () => {
23
- it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
- const page = yield newSpecPage({
25
- components: [CpslSlideButton],
26
- html: `<cpsl-slide-button></cpsl-slide-button>`,
27
- });
28
- expect(page.root).toEqualHtml(`
29
- <cpsl-slide-button>
30
- <mock:shadow-root>
31
- <slot></slot>
32
- </mock:shadow-root>
33
- </cpsl-slide-button>
34
- `);
35
- }));
36
- });
37
- //# sourceMappingURL=cpsl-slide-button.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-slide-button.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-slide-button/test/cpsl-slide-button.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,eAAe,CAAC;YAC7B,IAAI,EAAE,yCAAyC;SAChD,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslSlideButton } from '../cpsl-slide-button';\n\ndescribe('cpsl-slide-button', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslSlideButton],\n html: `<cpsl-slide-button></cpsl-slide-button>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-slide-button>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-slide-button>\n `);\n });\n});\n"]}
@@ -1,68 +0,0 @@
1
- /**
2
- * Convert a font size to a dynamic font size.
3
- * Fonts that participate in Dynamic Type should use
4
- * dynamic font sizes.
5
- * @param size - The initial font size including the unit (i.e. px or pt)
6
- * @param unit (optional) - The unit to convert to. Use this if you want to
7
- * convert to a unit other than $baselineUnit.
8
- */
9
- /**
10
- * Convert a font size to a dynamic font size but impose
11
- * a maximum font size.
12
- * @param size - The initial font size including the unit (i.e. px or pt)
13
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
14
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
15
- * convert to a unit other than $baselineUnit.
16
- */
17
- /**
18
- * Convert a font size to a dynamic font size but impose
19
- * a minimum font size.
20
- * @param size - The initial font size including the unit (i.e. px or pt)
21
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
22
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
23
- * convert to a unit other than $baselineUnit.
24
- */
25
- /**
26
- * Convert a font size to a dynamic font size but impose
27
- * maximum and minimum font sizes.
28
- * @param size - The initial font size including the unit (i.e. px or pt)
29
- * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
30
- * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
31
- * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
32
- * convert to a unit other than $baselineUnit.
33
- */
34
- /**
35
- * A heuristic that applies CSS to tablet
36
- * viewports.
37
- *
38
- * Usage:
39
- * @include tablet-viewport() {
40
- * :host {
41
- * background-color: green;
42
- * }
43
- * }
44
- */
45
- /**
46
- * A heuristic that applies CSS to mobile
47
- * viewports (i.e. phones, not tablets).
48
- *
49
- * Usage:
50
- * @include mobile-viewport() {
51
- * :host {
52
- * background-color: blue;
53
- * }
54
- * }
55
- */
56
- :host {
57
- --path-color: var(--cpsl-color-spinner-path);
58
- --circle-color: var(--cpsl-color-spinner-circle);
59
- display: flex;
60
- justify-content: center;
61
- align-items: center;
62
- }
63
- :host path {
64
- stroke: var(--path-color);
65
- }
66
- :host circle {
67
- fill: var(--circle-color);
68
- }
@@ -1,69 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class CpslSpinner {
3
- constructor() {
4
- this.size = 54;
5
- this.speed = 1;
6
- }
7
- render() {
8
- return (h(Host, { key: 'ccfa5727ea42f54e265ed2fc40632c608485a980', style: {
9
- 'height': `${this.size}px`,
10
- 'width': `${this.size}px`,
11
- 'animation': `spin ${this.speed}s linear infinite`,
12
- '-webkit-animation': `spin ${this.speed}s linear infinite`,
13
- '-moz-animation': `spin ${this.speed}s linear infinite`,
14
- } }, h("svg", { key: '507b1f733ae8bdf6d53966b1b64d687911f7c8a3', height: this.size, width: this.size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 54 54", fill: "none" }, h("path", { key: 'ea462771d440975eea28cc13f2eb787c827746be', 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: '1e60ac891f97076ad558fb83f51c552f34626370', cx: "45", cy: "27", r: "5" }))));
15
- }
16
- static get is() { return "cpsl-spinner"; }
17
- static get encapsulation() { return "shadow"; }
18
- static get originalStyleUrls() {
19
- return {
20
- "$": ["cpsl-spinner.scss"]
21
- };
22
- }
23
- static get styleUrls() {
24
- return {
25
- "$": ["cpsl-spinner.css"]
26
- };
27
- }
28
- static get properties() {
29
- return {
30
- "size": {
31
- "type": "number",
32
- "mutable": false,
33
- "complexType": {
34
- "original": "number",
35
- "resolved": "number",
36
- "references": {}
37
- },
38
- "required": false,
39
- "optional": true,
40
- "docs": {
41
- "tags": [],
42
- "text": "Size of the spinner in pixels.\nDefault is 50."
43
- },
44
- "attribute": "size",
45
- "reflect": false,
46
- "defaultValue": "54"
47
- },
48
- "speed": {
49
- "type": "number",
50
- "mutable": false,
51
- "complexType": {
52
- "original": "number",
53
- "resolved": "number",
54
- "references": {}
55
- },
56
- "required": false,
57
- "optional": true,
58
- "docs": {
59
- "tags": [],
60
- "text": "Rotation speed of the spinner in seconds.\nDefault is 1."
61
- },
62
- "attribute": "speed",
63
- "reflect": false,
64
- "defaultValue": "1"
65
- }
66
- };
67
- }
68
- }
69
- //# sourceMappingURL=cpsl-spinner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-spinner.js","sourceRoot":"","sources":["../../../../src/components/cpsl-spinner/cpsl-spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,WAAW;;oBAKE,EAAE;qBAMD,CAAC;;IAE1B,MAAM;QACJ,OAAO,CACL,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;YAED,4DAAK,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;gBAC1G,6DACE,CAAC,EAAC,sIAAsI,kBAC3H,GAAG,oBACD,OAAO,GACtB;gBACF,+DAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,CAC5B,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
@@ -1,29 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try {
5
- step(generator.next(value));
6
- }
7
- catch (e) {
8
- reject(e);
9
- } }
10
- function rejected(value) { try {
11
- step(generator["throw"](value));
12
- }
13
- catch (e) {
14
- reject(e);
15
- } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- import { newE2EPage } from "@stencil/core/testing";
21
- describe('cpsl-spinner', () => {
22
- it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
- const page = yield newE2EPage();
24
- yield page.setContent('<cpsl-spinner></cpsl-spinner>');
25
- const element = yield page.find('cpsl-spinner');
26
- expect(element).toHaveClass('hydrated');
27
- }));
28
- });
29
- //# sourceMappingURL=cpsl-spinner.e2e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-spinner.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-spinner/test/cpsl-spinner.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAAC;QAEvD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-spinner', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-spinner></cpsl-spinner>');\n\n const element = await page.find('cpsl-spinner');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -1,37 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try {
5
- step(generator.next(value));
6
- }
7
- catch (e) {
8
- reject(e);
9
- } }
10
- function rejected(value) { try {
11
- step(generator["throw"](value));
12
- }
13
- catch (e) {
14
- reject(e);
15
- } }
16
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
- step((generator = generator.apply(thisArg, _arguments || [])).next());
18
- });
19
- };
20
- import { newSpecPage } from "@stencil/core/testing";
21
- import { CpslSpinner } from "../cpsl-spinner";
22
- describe('cpsl-spinner', () => {
23
- it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
- const page = yield newSpecPage({
25
- components: [CpslSpinner],
26
- html: `<cpsl-spinner></cpsl-spinner>`,
27
- });
28
- expect(page.root).toEqualHtml(`
29
- <cpsl-spinner>
30
- <mock:shadow-root>
31
- <slot></slot>
32
- </mock:shadow-root>
33
- </cpsl-spinner>
34
- `);
35
- }));
36
- });
37
- //# sourceMappingURL=cpsl-spinner.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cpsl-spinner.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-spinner/test/cpsl-spinner.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;YACzB,IAAI,EAAE,+BAA+B;SACtC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslSpinner } from '../cpsl-spinner';\n\ndescribe('cpsl-spinner', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslSpinner],\n html: `<cpsl-spinner></cpsl-spinner>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-spinner>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-spinner>\n `);\n });\n});\n"]}
@@ -1,23 +0,0 @@
1
- :host {
2
- --tab-color: var(--cpsl-color-text-primary);
3
- padding-top: var(--tab-top-padding);
4
- padding-bottom: var(--tab-bottom-padding);
5
- padding-left: var(--tab-left-padding);
6
- padding-right: var(--tab-right-padding);
7
- display: flex;
8
- flex: 1 1 auto;
9
- align-items: center;
10
- cursor: pointer;
11
- z-index: 10;
12
- }
13
-
14
- .tab-container {
15
- align-items: center;
16
- overflow: hidden;
17
- width: 100%;
18
- text-overflow: ellipsis;
19
- text-align: center;
20
- white-space: nowrap;
21
- font-weight: 500;
22
- color: var(--tab-color);
23
- }