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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (643) hide show
  1. package/css/capsule-core.css +12 -0
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -52
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -572
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/p-0462f723.js +2 -0
  8. package/dist/capsule/p-0462f723.js.map +1 -0
  9. package/dist/capsule/p-0cab90fa.entry.js +2 -0
  10. package/dist/capsule/p-0cab90fa.entry.js.map +1 -0
  11. package/dist/capsule/p-193ac141.entry.js +2 -0
  12. package/dist/capsule/p-193ac141.entry.js.map +1 -0
  13. package/dist/capsule/p-6fb7c4d1.js +3 -0
  14. package/dist/capsule/p-6fb7c4d1.js.map +1 -0
  15. package/dist/capsule/p-a95ec4df.entry.js +2 -0
  16. package/dist/capsule/p-a95ec4df.entry.js.map +1 -0
  17. package/dist/capsule/p-c2bf050b.js +2 -0
  18. package/dist/capsule/p-c2bf050b.js.map +1 -0
  19. package/dist/capsule/p-cb8dc0a4.entry.js +2 -0
  20. package/dist/capsule/p-cb8dc0a4.entry.js.map +1 -0
  21. package/dist/capsule/p-cc052d36.entry.js +29 -0
  22. package/dist/capsule/p-cc052d36.entry.js.map +1 -0
  23. package/dist/capsule/p-d7be092d.entry.js +10 -0
  24. package/dist/capsule/p-d7be092d.entry.js.map +1 -0
  25. package/dist/capsule/p-e1255160.js +2 -0
  26. package/dist/capsule/p-e1255160.js.map +1 -0
  27. package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
  28. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
  29. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  30. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  31. package/dist/cjs/capsule.cjs.js +27 -0
  32. package/dist/cjs/capsule.cjs.js.map +1 -0
  33. package/dist/cjs/constants-4bb85cc5.js +12 -0
  34. package/dist/cjs/constants-4bb85cc5.js.map +1 -0
  35. package/dist/cjs/cpsl-alert_18.cjs.entry.js +14798 -0
  36. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
  37. package/dist/cjs/cpsl-animation.cjs.entry.js +20129 -0
  38. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -0
  39. package/dist/cjs/cpsl-col.cjs.entry.js +125 -0
  40. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -0
  41. package/dist/cjs/cpsl-grid.cjs.entry.js +25 -0
  42. package/dist/cjs/cpsl-grid.cjs.entry.js.map +1 -0
  43. package/dist/cjs/cpsl-info-box.cjs.entry.js +22 -0
  44. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -0
  45. package/dist/cjs/cpsl-row.cjs.entry.js +22 -0
  46. package/dist/cjs/cpsl-row.cjs.entry.js.map +1 -0
  47. package/dist/cjs/index-3fccb5b4.js +2012 -0
  48. package/dist/cjs/index-3fccb5b4.js.map +1 -0
  49. package/dist/cjs/index.cjs.js +362 -0
  50. package/dist/cjs/index.cjs.js.map +1 -0
  51. package/dist/cjs/loader.cjs.js +17 -0
  52. package/dist/cjs/loader.cjs.js.map +1 -0
  53. package/dist/collection/assets/icons/AD.svg +15 -0
  54. package/dist/collection/assets/icons/AE.svg +13 -0
  55. package/dist/collection/assets/icons/AF.svg +14 -0
  56. package/dist/collection/assets/icons/AG.svg +15 -0
  57. package/dist/collection/assets/icons/AI.svg +19 -0
  58. package/dist/collection/assets/icons/AL.svg +11 -0
  59. package/dist/collection/assets/icons/AM.svg +12 -0
  60. package/dist/collection/assets/icons/AO.svg +14 -0
  61. package/dist/collection/assets/icons/AR.svg +13 -0
  62. package/dist/collection/assets/icons/AS.svg +15 -0
  63. package/dist/collection/assets/icons/AT.svg +12 -0
  64. package/dist/collection/assets/icons/AU.svg +20 -0
  65. package/dist/collection/assets/icons/AW.svg +15 -0
  66. package/dist/collection/assets/icons/AX.svg +15 -0
  67. package/dist/collection/assets/icons/AZ.svg +14 -0
  68. package/dist/collection/assets/icons/BA.svg +13 -0
  69. package/dist/collection/assets/icons/BB.svg +13 -0
  70. package/dist/collection/assets/icons/BD.svg +11 -0
  71. package/dist/collection/assets/icons/BE.svg +12 -0
  72. package/dist/collection/assets/icons/BF.svg +12 -0
  73. package/dist/collection/assets/icons/BG.svg +12 -0
  74. package/dist/collection/assets/icons/BH.svg +11 -0
  75. package/dist/collection/assets/icons/BI.svg +18 -0
  76. package/dist/collection/assets/icons/BJ.svg +12 -0
  77. package/dist/collection/assets/icons/BL.svg +16 -0
  78. package/dist/collection/assets/icons/BM.svg +20 -0
  79. package/dist/collection/assets/icons/BN.svg +19 -0
  80. package/dist/collection/assets/icons/BO.svg +12 -0
  81. package/dist/collection/assets/icons/BQ.svg +14 -0
  82. package/dist/collection/assets/icons/BQ2.svg +20 -0
  83. package/dist/collection/assets/icons/BQ3.svg +15 -0
  84. package/dist/collection/assets/icons/BR.svg +14 -0
  85. package/dist/collection/assets/icons/BS.svg +13 -0
  86. package/dist/collection/assets/icons/BT.svg +12 -0
  87. package/dist/collection/assets/icons/BW.svg +13 -0
  88. package/dist/collection/assets/icons/BY.svg +18 -0
  89. package/dist/collection/assets/icons/BZ.svg +17 -0
  90. package/dist/collection/assets/icons/CA.svg +13 -0
  91. package/dist/collection/assets/icons/CC.svg +19 -0
  92. package/dist/collection/assets/icons/CD.svg +12 -0
  93. package/dist/collection/assets/icons/CD2.svg +14 -0
  94. package/dist/collection/assets/icons/CF.svg +20 -0
  95. package/dist/collection/assets/icons/CH.svg +11 -0
  96. package/dist/collection/assets/icons/CK.svg +22 -0
  97. package/dist/collection/assets/icons/CL.svg +13 -0
  98. package/dist/collection/assets/icons/CM.svg +13 -0
  99. package/dist/collection/assets/icons/CN.svg +15 -0
  100. package/dist/collection/assets/icons/CO.svg +12 -0
  101. package/dist/collection/assets/icons/CR.svg +13 -0
  102. package/dist/collection/assets/icons/CU.svg +15 -0
  103. package/dist/collection/assets/icons/CW.svg +14 -0
  104. package/dist/collection/assets/icons/CX.svg +19 -0
  105. package/dist/collection/assets/icons/CY.svg +12 -0
  106. package/dist/collection/assets/icons/CZ.svg +12 -0
  107. package/dist/collection/assets/icons/DE.svg +12 -0
  108. package/dist/collection/assets/icons/DJ.svg +13 -0
  109. package/dist/collection/assets/icons/DK.svg +14 -0
  110. package/dist/collection/assets/icons/DM.svg +34 -0
  111. package/dist/collection/assets/icons/DO.svg +17 -0
  112. package/dist/collection/assets/icons/DS.svg +13 -0
  113. package/dist/collection/assets/icons/DZ.svg +13 -0
  114. package/dist/collection/assets/icons/EC.svg +15 -0
  115. package/dist/collection/assets/icons/EE.svg +12 -0
  116. package/dist/collection/assets/icons/EG.svg +13 -0
  117. package/dist/collection/assets/icons/EH.svg +15 -0
  118. package/dist/collection/assets/icons/ER.svg +13 -0
  119. package/dist/collection/assets/icons/ES.svg +12 -0
  120. package/dist/collection/assets/icons/ET.svg +15 -0
  121. package/dist/collection/assets/icons/FI.svg +11 -0
  122. package/dist/collection/assets/icons/FJ.svg +18 -0
  123. package/dist/collection/assets/icons/FK.svg +18 -0
  124. package/dist/collection/assets/icons/FM.svg +14 -0
  125. package/dist/collection/assets/icons/FO.svg +12 -0
  126. package/dist/collection/assets/icons/FR.svg +12 -0
  127. package/dist/collection/assets/icons/GA.svg +12 -0
  128. package/dist/collection/assets/icons/GB-2.svg +11 -0
  129. package/dist/collection/assets/icons/GB.svg +23 -0
  130. package/dist/collection/assets/icons/GD.svg +26 -0
  131. package/dist/collection/assets/icons/GE.svg +15 -0
  132. package/dist/collection/assets/icons/GG.svg +12 -0
  133. package/dist/collection/assets/icons/GH.svg +13 -0
  134. package/dist/collection/assets/icons/GI.svg +13 -0
  135. package/dist/collection/assets/icons/GL.svg +13 -0
  136. package/dist/collection/assets/icons/GM.svg +13 -0
  137. package/dist/collection/assets/icons/GN.svg +12 -0
  138. package/dist/collection/assets/icons/GQ.svg +16 -0
  139. package/dist/collection/assets/icons/GR.svg +15 -0
  140. package/dist/collection/assets/icons/GT.svg +14 -0
  141. package/dist/collection/assets/icons/GU.svg +18 -0
  142. package/dist/collection/assets/icons/GW.svg +14 -0
  143. package/dist/collection/assets/icons/GY.svg +15 -0
  144. package/dist/collection/assets/icons/HK.svg +15 -0
  145. package/dist/collection/assets/icons/HN.svg +17 -0
  146. package/dist/collection/assets/icons/HR.svg +31 -0
  147. package/dist/collection/assets/icons/HT.svg +17 -0
  148. package/dist/collection/assets/icons/HU.svg +12 -0
  149. package/dist/collection/assets/icons/ID.svg +11 -0
  150. package/dist/collection/assets/icons/IE.svg +12 -0
  151. package/dist/collection/assets/icons/IL.svg +13 -0
  152. package/dist/collection/assets/icons/IM.svg +11 -0
  153. package/dist/collection/assets/icons/IN.svg +15 -0
  154. package/dist/collection/assets/icons/IO.svg +29 -0
  155. package/dist/collection/assets/icons/IQ.svg +15 -0
  156. package/dist/collection/assets/icons/IR.svg +13 -0
  157. package/dist/collection/assets/icons/IS.svg +15 -0
  158. package/dist/collection/assets/icons/IT.svg +12 -0
  159. package/dist/collection/assets/icons/JE.svg +13 -0
  160. package/dist/collection/assets/icons/JM.svg +14 -0
  161. package/dist/collection/assets/icons/JO.svg +14 -0
  162. package/dist/collection/assets/icons/JP.svg +11 -0
  163. package/dist/collection/assets/icons/KE.svg +19 -0
  164. package/dist/collection/assets/icons/KG.svg +16 -0
  165. package/dist/collection/assets/icons/KH.svg +13 -0
  166. package/dist/collection/assets/icons/KI.svg +17 -0
  167. package/dist/collection/assets/icons/KM.svg +19 -0
  168. package/dist/collection/assets/icons/KN.svg +15 -0
  169. package/dist/collection/assets/icons/KP.svg +15 -0
  170. package/dist/collection/assets/icons/KR.svg +30 -0
  171. package/dist/collection/assets/icons/KW.svg +13 -0
  172. package/dist/collection/assets/icons/KY.svg +20 -0
  173. package/dist/collection/assets/icons/KZ.svg +13 -0
  174. package/dist/collection/assets/icons/LA.svg +13 -0
  175. package/dist/collection/assets/icons/LB.svg +13 -0
  176. package/dist/collection/assets/icons/LC.svg +13 -0
  177. package/dist/collection/assets/icons/LI.svg +12 -0
  178. package/dist/collection/assets/icons/LK.svg +14 -0
  179. package/dist/collection/assets/icons/LR.svg +23 -0
  180. package/dist/collection/assets/icons/LS.svg +13 -0
  181. package/dist/collection/assets/icons/LT.svg +12 -0
  182. package/dist/collection/assets/icons/LU.svg +12 -0
  183. package/dist/collection/assets/icons/LV.svg +12 -0
  184. package/dist/collection/assets/icons/LY.svg +14 -0
  185. package/dist/collection/assets/icons/MA.svg +11 -0
  186. package/dist/collection/assets/icons/MC.svg +11 -0
  187. package/dist/collection/assets/icons/MD.svg +15 -0
  188. package/dist/collection/assets/icons/ME.svg +15 -0
  189. package/dist/collection/assets/icons/MG.svg +12 -0
  190. package/dist/collection/assets/icons/MH.svg +13 -0
  191. package/dist/collection/assets/icons/MK.svg +20 -0
  192. package/dist/collection/assets/icons/ML.svg +12 -0
  193. package/dist/collection/assets/icons/MM.svg +13 -0
  194. package/dist/collection/assets/icons/MN.svg +19 -0
  195. package/dist/collection/assets/icons/MO.svg +18 -0
  196. package/dist/collection/assets/icons/MP.svg +14 -0
  197. package/dist/collection/assets/icons/MQ.svg +18 -0
  198. package/dist/collection/assets/icons/MR.svg +12 -0
  199. package/dist/collection/assets/icons/MS.svg +17 -0
  200. package/dist/collection/assets/icons/MT.svg +12 -0
  201. package/dist/collection/assets/icons/MU.svg +13 -0
  202. package/dist/collection/assets/icons/MV.svg +12 -0
  203. package/dist/collection/assets/icons/MW.svg +13 -0
  204. package/dist/collection/assets/icons/MX.svg +14 -0
  205. package/dist/collection/assets/icons/MY.svg +17 -0
  206. package/dist/collection/assets/icons/MZ.svg +17 -0
  207. package/dist/collection/assets/icons/NA.svg +14 -0
  208. package/dist/collection/assets/icons/NE.svg +13 -0
  209. package/dist/collection/assets/icons/NF.svg +13 -0
  210. package/dist/collection/assets/icons/NG.svg +12 -0
  211. package/dist/collection/assets/icons/NI.svg +16 -0
  212. package/dist/collection/assets/icons/NL.svg +12 -0
  213. package/dist/collection/assets/icons/NO.svg +15 -0
  214. package/dist/collection/assets/icons/NP.svg +16 -0
  215. package/dist/collection/assets/icons/NR.svg +14 -0
  216. package/dist/collection/assets/icons/NU.svg +20 -0
  217. package/dist/collection/assets/icons/NZ.svg +18 -0
  218. package/dist/collection/assets/icons/OM.svg +15 -0
  219. package/dist/collection/assets/icons/PA.svg +14 -0
  220. package/dist/collection/assets/icons/PE.svg +12 -0
  221. package/dist/collection/assets/icons/PF.svg +17 -0
  222. package/dist/collection/assets/icons/PG.svg +17 -0
  223. package/dist/collection/assets/icons/PH.svg +16 -0
  224. package/dist/collection/assets/icons/PK.svg +14 -0
  225. package/dist/collection/assets/icons/PL.svg +11 -0
  226. package/dist/collection/assets/icons/PN.svg +18 -0
  227. package/dist/collection/assets/icons/PR.svg +15 -0
  228. package/dist/collection/assets/icons/PS.svg +13 -0
  229. package/dist/collection/assets/icons/PT.svg +14 -0
  230. package/dist/collection/assets/icons/PW.svg +11 -0
  231. package/dist/collection/assets/icons/PY.svg +14 -0
  232. package/dist/collection/assets/icons/QA.svg +11 -0
  233. package/dist/collection/assets/icons/RO.svg +12 -0
  234. package/dist/collection/assets/icons/RS.svg +16 -0
  235. package/dist/collection/assets/icons/RU.svg +12 -0
  236. package/dist/collection/assets/icons/RW.svg +13 -0
  237. package/dist/collection/assets/icons/SA.svg +16 -0
  238. package/dist/collection/assets/icons/SB.svg +17 -0
  239. package/dist/collection/assets/icons/SC.svg +14 -0
  240. package/dist/collection/assets/icons/SE.svg +14 -0
  241. package/dist/collection/assets/icons/SG.svg +17 -0
  242. package/dist/collection/assets/icons/SI.svg +13 -0
  243. package/dist/collection/assets/icons/SK.svg +16 -0
  244. package/dist/collection/assets/icons/SL.svg +12 -0
  245. package/dist/collection/assets/icons/SM.svg +16 -0
  246. package/dist/collection/assets/icons/SN.svg +13 -0
  247. package/dist/collection/assets/icons/SO.svg +11 -0
  248. package/dist/collection/assets/icons/SR.svg +14 -0
  249. package/dist/collection/assets/icons/SS.svg +15 -0
  250. package/dist/collection/assets/icons/ST.svg +15 -0
  251. package/dist/collection/assets/icons/SV.svg +15 -0
  252. package/dist/collection/assets/icons/SX.svg +17 -0
  253. package/dist/collection/assets/icons/SY.svg +14 -0
  254. package/dist/collection/assets/icons/SZ.svg +21 -0
  255. package/dist/collection/assets/icons/TC.svg +19 -0
  256. package/dist/collection/assets/icons/TD.svg +12 -0
  257. package/dist/collection/assets/icons/TG.svg +15 -0
  258. package/dist/collection/assets/icons/TH.svg +13 -0
  259. package/dist/collection/assets/icons/TJ.svg +20 -0
  260. package/dist/collection/assets/icons/TK.svg +15 -0
  261. package/dist/collection/assets/icons/TL.svg +13 -0
  262. package/dist/collection/assets/icons/TM.svg +30 -0
  263. package/dist/collection/assets/icons/TN.svg +13 -0
  264. package/dist/collection/assets/icons/TO.svg +12 -0
  265. package/dist/collection/assets/icons/TR.svg +12 -0
  266. package/dist/collection/assets/icons/TT.svg +13 -0
  267. package/dist/collection/assets/icons/TV.svg +25 -0
  268. package/dist/collection/assets/icons/TW.svg +14 -0
  269. package/dist/collection/assets/icons/TZ.svg +13 -0
  270. package/dist/collection/assets/icons/UA.svg +11 -0
  271. package/dist/collection/assets/icons/UG.svg +16 -0
  272. package/dist/collection/assets/icons/US.svg +15 -0
  273. package/dist/collection/assets/icons/UY.svg +16 -0
  274. package/dist/collection/assets/icons/UZ.svg +27 -0
  275. package/dist/collection/assets/icons/VC.svg +15 -0
  276. package/dist/collection/assets/icons/VE.svg +20 -0
  277. package/dist/collection/assets/icons/VG.svg +24 -0
  278. package/dist/collection/assets/icons/VI.svg +18 -0
  279. package/dist/collection/assets/icons/VN.svg +11 -0
  280. package/dist/collection/assets/icons/VU.svg +32 -0
  281. package/dist/collection/assets/icons/WS.svg +16 -0
  282. package/dist/collection/assets/icons/YE.svg +12 -0
  283. package/dist/collection/assets/icons/ZA.svg +15 -0
  284. package/dist/collection/assets/icons/ZM.svg +14 -0
  285. package/dist/collection/assets/icons/ZW.svg +20 -0
  286. package/dist/collection/assets/icons/alert-circle.svg +3 -0
  287. package/dist/collection/assets/icons/angel-list-brand.svg +3 -0
  288. package/dist/collection/assets/icons/angel-list.svg +3 -0
  289. package/dist/collection/assets/icons/apple-brand.svg +3 -0
  290. package/dist/collection/assets/icons/apple.svg +3 -0
  291. package/dist/collection/assets/icons/arrow-narrow.svg +3 -0
  292. package/dist/collection/assets/icons/arrow.svg +3 -0
  293. package/dist/collection/assets/icons/backup-kit.svg +4 -0
  294. package/dist/collection/assets/icons/capsule-logo.svg +18 -0
  295. package/dist/collection/assets/icons/capsule-rings-dark.svg +34 -0
  296. package/dist/collection/assets/icons/capsule-rings.svg +34 -0
  297. package/dist/collection/assets/icons/capsule.svg +4 -0
  298. package/dist/collection/assets/icons/check.svg +3 -0
  299. package/dist/collection/assets/icons/chevron-up.svg +3 -0
  300. package/dist/collection/assets/icons/clock.svg +3 -0
  301. package/dist/collection/assets/icons/close.svg +4 -0
  302. package/dist/collection/assets/icons/clubhouse-brand.svg +4 -0
  303. package/dist/collection/assets/icons/clubhouse.svg +4 -0
  304. package/dist/collection/assets/icons/copy.svg +3 -0
  305. package/dist/collection/assets/icons/discord-brand.svg +4 -0
  306. package/dist/collection/assets/icons/discord.svg +4 -0
  307. package/dist/collection/assets/icons/download-cloud.svg +3 -0
  308. package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
  309. package/dist/collection/assets/icons/dribbble.svg +3 -0
  310. package/dist/collection/assets/icons/earth.svg +11 -0
  311. package/dist/collection/assets/icons/eye-off.svg +3 -0
  312. package/dist/collection/assets/icons/eye.svg +4 -0
  313. package/dist/collection/assets/icons/facebook-brand.svg +11 -0
  314. package/dist/collection/assets/icons/facebook.svg +10 -0
  315. package/dist/collection/assets/icons/figma-brand.svg +14 -0
  316. package/dist/collection/assets/icons/figma.svg +3 -0
  317. package/dist/collection/assets/icons/github-brand.svg +10 -0
  318. package/dist/collection/assets/icons/github.svg +10 -0
  319. package/dist/collection/assets/icons/google-brand.svg +13 -0
  320. package/dist/collection/assets/icons/google.svg +10 -0
  321. package/dist/collection/assets/icons/help-circle.svg +3 -0
  322. package/dist/collection/assets/icons/hero-email.svg +12 -0
  323. package/dist/collection/assets/icons/hero-lock.svg +4 -0
  324. package/dist/collection/assets/icons/hero-passkey.svg +12 -0
  325. package/dist/collection/assets/icons/hero-phone.svg +4 -0
  326. package/dist/collection/assets/icons/hero-wallet.svg +5 -0
  327. package/dist/collection/assets/icons/index.js +305 -0
  328. package/dist/collection/assets/icons/index.js.map +1 -0
  329. package/dist/collection/assets/icons/info-circle.svg +3 -0
  330. package/dist/collection/assets/icons/instagram-brand.svg +12 -0
  331. package/dist/collection/assets/icons/instagram.svg +12 -0
  332. package/dist/collection/assets/icons/key.svg +3 -0
  333. package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
  334. package/dist/collection/assets/icons/linkedin.svg +10 -0
  335. package/dist/collection/assets/icons/mail.svg +3 -0
  336. package/dist/collection/assets/icons/more-login-options.svg +13 -0
  337. package/dist/collection/assets/icons/phone.svg +3 -0
  338. package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
  339. package/dist/collection/assets/icons/pintrest.svg +10 -0
  340. package/dist/collection/assets/icons/plus-circle.svg +5 -0
  341. package/dist/collection/assets/icons/reddit-brand.svg +11 -0
  342. package/dist/collection/assets/icons/reddit.svg +3 -0
  343. package/dist/collection/assets/icons/signal-brand.svg +3 -0
  344. package/dist/collection/assets/icons/signal.svg +3 -0
  345. package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
  346. package/dist/collection/assets/icons/snapchat.svg +3 -0
  347. package/dist/collection/assets/icons/telegram-brand.svg +15 -0
  348. package/dist/collection/assets/icons/telegram.svg +10 -0
  349. package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
  350. package/dist/collection/assets/icons/tik-tok.svg +3 -0
  351. package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
  352. package/dist/collection/assets/icons/tumblr.svg +10 -0
  353. package/dist/collection/assets/icons/twitter-brand.svg +3 -0
  354. package/dist/collection/assets/icons/twitter.svg +3 -0
  355. package/dist/collection/assets/icons/wallet.svg +5 -0
  356. package/dist/collection/assets/icons/youtube-brand.svg +11 -0
  357. package/dist/collection/assets/icons/youtube.svg +3 -0
  358. package/dist/collection/collection-manifest.json +34 -0
  359. package/dist/collection/components/cpsl-alert/cpsl-alert.css +98 -0
  360. package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
  361. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
  362. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
  363. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
  364. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
  365. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
  366. package/dist/collection/components/cpsl-animation/cpsl-animation.css +17 -0
  367. package/dist/collection/components/cpsl-animation/cpsl-animation.js +102 -0
  368. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -0
  369. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +29 -0
  370. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +1 -0
  371. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +37 -0
  372. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +1 -0
  373. package/dist/collection/components/cpsl-button/cpsl-button.css +162 -0
  374. package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
  375. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
  376. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
  377. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
  378. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
  379. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
  380. package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
  381. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
  382. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
  383. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
  384. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
  385. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
  386. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
  387. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
  388. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
  389. package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
  390. package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
  391. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
  392. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
  393. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
  394. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
  395. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
  396. package/dist/collection/components/cpsl-divider/cpsl-divider.css +73 -0
  397. package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
  398. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
  399. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
  400. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
  401. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
  402. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
  403. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +88 -0
  404. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +113 -0
  405. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
  406. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
  407. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
  408. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
  409. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
  410. package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
  411. package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
  412. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
  413. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
  414. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
  415. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
  416. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
  417. package/dist/collection/components/cpsl-icon/cpsl-icon.css +95 -0
  418. package/dist/collection/components/cpsl-icon/cpsl-icon.js +68 -0
  419. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
  420. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
  421. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
  422. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
  423. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
  424. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +77 -0
  425. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
  426. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
  427. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
  428. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
  429. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
  430. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
  431. package/dist/collection/components/cpsl-input/cpsl-input.css +194 -0
  432. package/dist/collection/components/cpsl-input/cpsl-input.js +708 -0
  433. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
  434. package/dist/collection/components/cpsl-input/input-interface.js +2 -0
  435. package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
  436. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
  437. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
  438. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
  439. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
  440. package/dist/collection/components/cpsl-modal/cpsl-modal.css +172 -0
  441. package/dist/collection/components/cpsl-modal/cpsl-modal.js +429 -0
  442. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  443. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
  444. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
  445. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
  446. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
  447. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
  448. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +108 -0
  449. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
  450. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
  451. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
  452. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
  453. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
  454. package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
  455. package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
  456. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
  457. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
  458. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
  459. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
  460. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
  461. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
  462. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
  463. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
  464. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
  465. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
  466. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
  467. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
  468. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
  469. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
  470. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +81 -0
  471. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
  472. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
  473. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
  474. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
  475. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
  476. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
  477. package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
  478. package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
  479. package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
  480. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
  481. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
  482. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
  483. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
  484. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +175 -0
  485. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +252 -0
  486. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
  487. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
  488. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
  489. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
  490. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
  491. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
  492. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
  493. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
  494. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
  495. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
  496. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
  497. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
  498. package/dist/collection/components/cpsl-tab/cpsl-tab.css +23 -0
  499. package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
  500. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
  501. package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
  502. package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
  503. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
  504. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
  505. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
  506. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
  507. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +111 -0
  508. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +170 -0
  509. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
  510. package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
  511. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
  512. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
  513. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
  514. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
  515. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
  516. package/dist/collection/components/cpsl-text/cpsl-text.css +160 -0
  517. package/dist/collection/components/cpsl-text/cpsl-text.js +128 -0
  518. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
  519. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
  520. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
  521. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
  522. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
  523. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +97 -0
  524. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
  525. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
  526. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
  527. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
  528. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
  529. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
  530. package/dist/collection/constants.js +6 -0
  531. package/dist/collection/constants.js.map +1 -0
  532. package/dist/collection/index.js +3 -0
  533. package/dist/collection/index.js.map +1 -0
  534. package/dist/collection/interface.js +2 -0
  535. package/dist/collection/interface.js.map +1 -0
  536. package/dist/collection/utils/media.js +18 -0
  537. package/dist/collection/utils/media.js.map +1 -0
  538. package/dist/collection/utils/theme/generateBorderRadii.js +56 -0
  539. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -0
  540. package/dist/collection/utils/theme/generateFont.js +28 -0
  541. package/dist/collection/utils/theme/generateFont.js.map +1 -0
  542. package/dist/collection/utils/theme/generatePalette.js +46 -0
  543. package/dist/collection/utils/theme/generatePalette.js.map +1 -0
  544. package/dist/collection/utils/theme/generateTheme.js +11 -0
  545. package/dist/collection/utils/theme/generateTheme.js.map +1 -0
  546. package/dist/collection/utils/theme/utils.js +21 -0
  547. package/dist/collection/utils/theme/utils.js.map +1 -0
  548. package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
  549. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
  550. package/dist/esm/capsule.js +22 -0
  551. package/dist/esm/capsule.js.map +1 -0
  552. package/dist/esm/cpsl-alert_18.entry.js +14777 -0
  553. package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
  554. package/dist/{capsule → esm}/cpsl-animation.entry.js +20 -114
  555. package/dist/esm/cpsl-animation.entry.js.map +1 -0
  556. package/dist/{capsule → esm}/cpsl-col.entry.js +4 -3
  557. package/dist/esm/cpsl-col.entry.js.map +1 -0
  558. package/dist/{capsule → esm}/cpsl-grid.entry.js +5 -4
  559. package/dist/esm/cpsl-grid.entry.js.map +1 -0
  560. package/dist/{capsule → esm}/cpsl-info-box.entry.js +4 -3
  561. package/dist/esm/cpsl-info-box.entry.js.map +1 -0
  562. package/dist/esm/cpsl-row.entry.js +18 -0
  563. package/dist/esm/cpsl-row.entry.js.map +1 -0
  564. package/dist/esm/index-f00e090c.js +1982 -0
  565. package/dist/esm/index-f00e090c.js.map +1 -0
  566. package/dist/esm/index.js +358 -0
  567. package/dist/esm/index.js.map +1 -0
  568. package/dist/esm/loader.js +13 -0
  569. package/dist/esm/loader.js.map +1 -0
  570. package/dist/esm/polyfills/core-js.js +11 -0
  571. package/dist/esm/polyfills/dom.js +79 -0
  572. package/dist/esm/polyfills/es5-html-element.js +1 -0
  573. package/dist/esm/polyfills/index.js +34 -0
  574. package/dist/esm/polyfills/system.js +6 -0
  575. package/dist/index.cjs.js +1 -0
  576. package/dist/index.js +1 -0
  577. package/dist/loader/cdn.js +3 -0
  578. package/dist/loader/index.cjs.js +3 -0
  579. package/dist/loader/index.d.ts +21 -0
  580. package/dist/loader/index.es2017.js +3 -0
  581. package/dist/loader/index.js +4 -0
  582. package/dist/loader/package.json +11 -0
  583. package/dist/scripts/buildIconLibrary.js +33 -0
  584. package/dist/scripts/buildIconLibrary.js.map +1 -0
  585. package/dist/types/assets/icons/index.d.ts +235 -0
  586. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +25 -0
  587. package/dist/types/components.d.ts +53 -0
  588. package/package.json +2 -3
  589. package/dist/capsule/_commonjsHelpers-bc8ff177.js +0 -36
  590. package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +0 -1
  591. package/dist/capsule/cpsl-alert.entry.js +0 -31
  592. package/dist/capsule/cpsl-alert.entry.js.map +0 -1
  593. package/dist/capsule/cpsl-animation.entry.js.map +0 -1
  594. package/dist/capsule/cpsl-button.entry.js +0 -24
  595. package/dist/capsule/cpsl-button.entry.js.map +0 -1
  596. package/dist/capsule/cpsl-code-input.entry.js +0 -106
  597. package/dist/capsule/cpsl-code-input.entry.js.map +0 -1
  598. package/dist/capsule/cpsl-col.entry.js.map +0 -1
  599. package/dist/capsule/cpsl-divider.entry.js +0 -17
  600. package/dist/capsule/cpsl-divider.entry.js.map +0 -1
  601. package/dist/capsule/cpsl-grid.entry.js.map +0 -1
  602. package/dist/capsule/cpsl-icon.entry.js +0 -20
  603. package/dist/capsule/cpsl-icon.entry.js.map +0 -1
  604. package/dist/capsule/cpsl-info-box.entry.js.map +0 -1
  605. package/dist/capsule/cpsl-input.entry.js +0 -124
  606. package/dist/capsule/cpsl-input.entry.js.map +0 -1
  607. package/dist/capsule/cpsl-modal.entry.js +0 -3338
  608. package/dist/capsule/cpsl-modal.entry.js.map +0 -1
  609. package/dist/capsule/cpsl-overlay.entry.js +0 -44
  610. package/dist/capsule/cpsl-overlay.entry.js.map +0 -1
  611. package/dist/capsule/cpsl-pill.entry.js +0 -18
  612. package/dist/capsule/cpsl-pill.entry.js.map +0 -1
  613. package/dist/capsule/cpsl-progress-indicator.entry.js +0 -29
  614. package/dist/capsule/cpsl-progress-indicator.entry.js.map +0 -1
  615. package/dist/capsule/cpsl-qr-code.entry.js +0 -56
  616. package/dist/capsule/cpsl-qr-code.entry.js.map +0 -1
  617. package/dist/capsule/cpsl-row.entry.js +0 -17
  618. package/dist/capsule/cpsl-row.entry.js.map +0 -1
  619. package/dist/capsule/cpsl-slide-button.entry.js +0 -130
  620. package/dist/capsule/cpsl-slide-button.entry.js.map +0 -1
  621. package/dist/capsule/cpsl-spinner.entry.js +0 -25
  622. package/dist/capsule/cpsl-spinner.entry.js.map +0 -1
  623. package/dist/capsule/cpsl-tab.entry.js +0 -37
  624. package/dist/capsule/cpsl-tab.entry.js.map +0 -1
  625. package/dist/capsule/cpsl-tabs.entry.js +0 -71
  626. package/dist/capsule/cpsl-tabs.entry.js.map +0 -1
  627. package/dist/capsule/cpsl-text.entry.js +0 -66
  628. package/dist/capsule/cpsl-text.entry.js.map +0 -1
  629. package/dist/capsule/cpsl-tile-button.entry.js +0 -19
  630. package/dist/capsule/cpsl-tile-button.entry.js.map +0 -1
  631. package/dist/capsule/index-3ac1b9e9.js +0 -617
  632. package/dist/capsule/index-3ac1b9e9.js.map +0 -1
  633. package/dist/capsule/index-3ad00c7e.js +0 -6064
  634. package/dist/capsule/index-3ad00c7e.js.map +0 -1
  635. package/dist/capsule/index-f19e63df.js +0 -4148
  636. package/dist/capsule/index-f19e63df.js.map +0 -1
  637. package/dist/capsule/shadow-css-bc9e2af8.js +0 -478
  638. package/dist/capsule/shadow-css-bc9e2af8.js.map +0 -1
  639. /package/dist/{capsule → esm}/app-globals-0f993ce5.js +0 -0
  640. /package/dist/{capsule → esm}/app-globals-0f993ce5.js.map +0 -0
  641. /package/dist/{capsule → esm}/constants-7b49abd5.js +0 -0
  642. /package/dist/{capsule → esm}/constants-7b49abd5.js.map +0 -0
  643. /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -0,0 +1,73 @@
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
+ --divider-height: 1px;
58
+ --divider-color: var(--cpsl-color-divider);
59
+ display: flex;
60
+ align-items: center;
61
+ height: 24px;
62
+ color: var(--cpsl-color-text-subtle);
63
+ font-family: var(--cpsl-font-family, inherit);
64
+ font-size: clamp(14px, 0.875rem, 21px);
65
+ font-weight: 600;
66
+ gap: 16px;
67
+ }
68
+
69
+ :host div {
70
+ flex: 1;
71
+ background-color: var(--divider-color);
72
+ height: var(--divider-height);
73
+ }
@@ -0,0 +1,19 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslDivider {
3
+ render() {
4
+ return (h(Host, { key: '7b35806d55027d32c6f8c0e5cfcaef46f35ebd68' }, h("div", { key: '5af8157b329cfd491256537c267adbe3e15c8914' }), h("slot", { key: '913734d72f49bc1092f447326710223eb85f901e' }), h("div", { key: '47b8c8569f8e43a830bfb84636faca0df7b7e7df' })));
5
+ }
6
+ static get is() { return "cpsl-divider"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["cpsl-divider.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["cpsl-divider.css"]
16
+ };
17
+ }
18
+ }
19
+ //# sourceMappingURL=cpsl-divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-divider.js","sourceRoot":"","sources":["../../../../src/components/cpsl-divider/cpsl-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,WAAW;IACtB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,6DAAO;YACP,8DAAa;YACb,6DAAO,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'cpsl-divider',\n styleUrl: 'cpsl-divider.scss',\n shadow: true,\n})\nexport class CpslDivider {\n render() {\n return (\n <Host>\n <div />\n <slot></slot>\n <div />\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newE2EPage } from "@stencil/core/testing";
21
+ describe('cpsl-divider', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-divider></cpsl-divider>');
25
+ const element = yield page.find('cpsl-divider');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-divider.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-divider.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-divider/test/cpsl-divider.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-divider', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-divider></cpsl-divider>');\n\n const element = await page.find('cpsl-divider');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newSpecPage } from "@stencil/core/testing";
21
+ import { CpslDivider } from "../cpsl-divider";
22
+ describe('cpsl-divider', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslDivider],
26
+ html: `<cpsl-divider></cpsl-divider>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-divider>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-divider>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-divider.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-divider.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-divider/test/cpsl-divider.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 { CpslDivider } from '../cpsl-divider';\n\ndescribe('cpsl-divider', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslDivider],\n html: `<cpsl-divider></cpsl-divider>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-divider>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-divider>\n `);\n });\n});\n"]}
@@ -0,0 +1,88 @@
1
+ :host {
2
+ display: block;
3
+ position: relative;
4
+ font-family: Arial, sans-serif;
5
+ }
6
+
7
+ .input-container {
8
+ position: relative;
9
+ width: 100%;
10
+ }
11
+
12
+ ::slotted(cpsl-dropdown) {
13
+ position: absolute;
14
+ width: 100%;
15
+ top: 100%;
16
+ left: 0;
17
+ z-index: 2;
18
+ }
19
+
20
+ .dropdown-button {
21
+ display: flex;
22
+ width: 100%;
23
+ padding: 0 4px;
24
+ background: none;
25
+ border: none;
26
+ align-items: center;
27
+ justify-content: space-between;
28
+ cursor: pointer;
29
+ white-space: nowrap;
30
+ overflow: hidden;
31
+ text-overflow: ellipsis;
32
+ font: inherit;
33
+ color: inherit;
34
+ }
35
+
36
+ .dropdown-button span {
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ flex-grow: 1;
41
+ }
42
+
43
+ .dropdown-button div {
44
+ margin-left: 8px;
45
+ display: flex;
46
+ align-items: center;
47
+ }
48
+
49
+ .dropdown-options {
50
+ display: none;
51
+ position: absolute;
52
+ list-style: none;
53
+ padding: 0;
54
+ margin: 0;
55
+ border: 1px solid #ccc;
56
+ background: white;
57
+ z-index: 1000;
58
+ }
59
+ .dropdown-options.open {
60
+ display: block;
61
+ border-radius: 8px;
62
+ border: 1px solid #483e3e;
63
+ }
64
+
65
+ .dropdown-options.open {
66
+ display: block;
67
+ margin-top: 20px;
68
+ }
69
+
70
+ .dropdown-options li {
71
+ padding: 6px;
72
+ cursor: pointer;
73
+ display: flex;
74
+ align-items: center;
75
+ border-bottom: 1px solid #ccc;
76
+ }
77
+
78
+ .dropdown-options li svg {
79
+ width: 24px;
80
+ height: 24px;
81
+ margin-right: 8px;
82
+ padding: 0 8px;
83
+ }
84
+
85
+ .dropdown-value {
86
+ margin-left: 8px;
87
+ color: #6c757d;
88
+ }
@@ -0,0 +1,113 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { Icons } from "../../assets/icons";
3
+ export class CpslDropdown {
4
+ constructor() {
5
+ this.toggleDropdown = () => {
6
+ this.isOpen = !this.isOpen;
7
+ };
8
+ this.selectItem = (item) => {
9
+ this.selectedItem = item;
10
+ this.toggleDropdown();
11
+ };
12
+ this.handleItemSelect = (item) => () => {
13
+ this.selectItem(item);
14
+ };
15
+ this.width = '100%';
16
+ this.isOpen = false;
17
+ this.selectedItem = undefined;
18
+ this.items = [];
19
+ }
20
+ handleOpenChange() {
21
+ if (this.isOpen) {
22
+ this.adjustPosition();
23
+ }
24
+ }
25
+ adjustPosition() {
26
+ var _a;
27
+ const dropdownOptions = this.el.shadowRoot.querySelector('.dropdown-options');
28
+ const hostRect = this.el.getBoundingClientRect();
29
+ const parentRect = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
30
+ if (parentRect) {
31
+ this.width = `${parentRect.width}px`;
32
+ dropdownOptions.style.left = `${parentRect.left - hostRect.left}px`;
33
+ }
34
+ }
35
+ componentWillLoad() {
36
+ if (this.items.length > 0) {
37
+ this.selectedItem = this.items[0];
38
+ }
39
+ }
40
+ render() {
41
+ var _a, _b, _c;
42
+ return (h(Host, { key: '6882468bccd50b57e16ce09ca360392415c0b1ce', style: { width: this.width } }, h("button", { key: '0f34c3f861543fd6f2781adeb371f6dbbf4a7e7c', class: "dropdown-button", onClick: this.toggleDropdown }, `${((_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.selectedLabel) || ((_b = this.selectedItem) === null || _b === void 0 ? void 0 : _b.label)} ${(_c = this.selectedItem) === null || _c === void 0 ? void 0 : _c.value}`, h("div", { key: '9d266062c49e3fce689eccf57229534043d975e8', innerHTML: Icons['chevronUp'] })), h("ul", { key: 'c82c76fae351883748e0094d218cfff8261b8ed8', class: { 'dropdown-options': true, 'open': this.isOpen }, style: { width: this.width } }, this.items.map(item => h("li", { onClick: this.handleItemSelect(item) }, h("span", { innerHTML: item.icon }), item.label, " ", h("span", { class: "dropdown-value" }, item.value))))));
43
+ }
44
+ static get is() { return "cpsl-dropdown"; }
45
+ static get encapsulation() { return "shadow"; }
46
+ static get originalStyleUrls() {
47
+ return {
48
+ "$": ["cpsl-dropdown.scss"]
49
+ };
50
+ }
51
+ static get styleUrls() {
52
+ return {
53
+ "$": ["cpsl-dropdown.css"]
54
+ };
55
+ }
56
+ static get properties() {
57
+ return {
58
+ "width": {
59
+ "type": "string",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "string",
63
+ "resolved": "string",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": "Width of the dropdown"
71
+ },
72
+ "attribute": "width",
73
+ "reflect": false,
74
+ "defaultValue": "'100%'"
75
+ },
76
+ "items": {
77
+ "type": "unknown",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "Array<{ icon: string, label: string, value: string, selectedLabel?: string }>",
81
+ "resolved": "{ icon: string; label: string; value: string; selectedLabel?: string; }[]",
82
+ "references": {
83
+ "Array": {
84
+ "location": "global",
85
+ "id": "global::Array"
86
+ }
87
+ }
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Items to be presented in the dropdown"
94
+ },
95
+ "defaultValue": "[]"
96
+ }
97
+ };
98
+ }
99
+ static get states() {
100
+ return {
101
+ "isOpen": {},
102
+ "selectedItem": {}
103
+ };
104
+ }
105
+ static get elementRef() { return "el"; }
106
+ static get watchers() {
107
+ return [{
108
+ "propName": "isOpen",
109
+ "methodName": "handleOpenChange"
110
+ }];
111
+ }
112
+ }
113
+ //# sourceMappingURL=cpsl-dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-dropdown.js","sourceRoot":"","sources":["../../../../src/components/cpsl-dropdown/cpsl-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAsB,KAAK,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAO3C,MAAM,OAAO,YAAY;;QAcf,mBAAc,GAAG,GAAG,EAAE;YAC5B,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC;QAEM,eAAU,GAAG,CAAC,IAA4E,EAAE,EAAE;YACpG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YACzB,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC,CAAC;QAEM,qBAAgB,GAAG,CAAC,IAA4E,EAAE,EAAE,CAAC,GAAG,EAAE;YAChH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAA;qBApBuB,MAAM;sBACH,KAAK;;qBAM+D,EAAE;;IAgBjG,gBAAgB;QACd,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC;IACH,CAAC;IAEO,cAAc;;QACpB,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAgB,CAAC;QAC7F,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC;QACjD,MAAM,UAAU,GAAG,MAAA,IAAI,CAAC,EAAE,CAAC,aAAa,0CAAE,qBAAqB,EAAE,CAAC;QAClE,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,GAAG,GAAG,UAAU,CAAC,KAAK,IAAI,CAAC;YACrC,eAAe,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,CAAC;QACtE,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,MAAM;;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YAChC,+DAAQ,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,IAAI,CAAC,cAAc;gBACzD,GAAG,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,aAAa,MAAI,MAAA,IAAI,CAAC,YAAY,0CAAE,KAAK,CAAA,IAAI,MAAA,IAAI,CAAC,YAAY,0CAAE,KAAK,EAAE;gBAC9F,4DAAK,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,GAAI,CAC/B;YACT,2DAAI,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IACvF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CACrB,UAAI,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBACtC,YAAM,SAAS,EAAE,IAAI,CAAC,IAAI,GAAS;gBAClC,IAAI,CAAC,KAAK;;gBAAE,YAAM,KAAK,EAAC,gBAAgB,IAAE,IAAI,CAAC,KAAK,CAAQ,CAC1D,CACN,CACE,CACA,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State, Element, ComponentInterface, Watch } from '@stencil/core';\nimport { Icons } from '../../assets/icons';\n\n@Component({\n tag: 'cpsl-dropdown',\n styleUrl: 'cpsl-dropdown.scss',\n shadow: true,\n})\nexport class CpslDropdown implements ComponentInterface {\n @Element() el: HTMLCpslDropdownElement;\n /**\n * Width of the dropdown\n */\n @Prop() width: string = '100%';\n @State() isOpen: boolean = false;\n @State() selectedItem: { icon: string, label: string, value: string, selectedLabel?: string };\n\n /**\n * Items to be presented in the dropdown\n */\n @Prop() items: Array<{ icon: string, label: string, value: string, selectedLabel?: string }> = [];\n\n private toggleDropdown = () => {\n this.isOpen = !this.isOpen;\n };\n\n private selectItem = (item: { icon: string, label: string, value: string, selectedLabel?: string }) => {\n this.selectedItem = item;\n this.toggleDropdown();\n };\n\n private handleItemSelect = (item: { icon: string, label: string, value: string, selectedLabel?: string }) => () => {\n this.selectItem(item);\n }\n\n @Watch('isOpen')\n handleOpenChange() {\n if (this.isOpen) {\n this.adjustPosition();\n }\n }\n\n private adjustPosition() {\n const dropdownOptions = this.el.shadowRoot.querySelector('.dropdown-options') as HTMLElement;\n const hostRect = this.el.getBoundingClientRect(); \n const parentRect = this.el.parentElement?.getBoundingClientRect();\n if (parentRect) {\n this.width = `${parentRect.width}px`;\n dropdownOptions.style.left = `${parentRect.left - hostRect.left}px`;\n }\n }\n\n componentWillLoad() {\n if (this.items.length > 0) {\n this.selectedItem = this.items[0];\n }\n }\n\n render() {\n return (\n <Host style={{ width: this.width }}>\n <button class=\"dropdown-button\" onClick={this.toggleDropdown}>\n {`${this.selectedItem?.selectedLabel || this.selectedItem?.label} ${this.selectedItem?.value}`}\n <div innerHTML={Icons['chevronUp']} />\n </button>\n <ul class={{ 'dropdown-options': true, 'open': this.isOpen }} style={{ width: this.width }}>\n {this.items.map(item =>\n <li onClick={this.handleItemSelect(item)}>\n <span innerHTML={item.icon}></span>\n {item.label} <span class=\"dropdown-value\">{item.value}</span>\n </li>\n )}\n </ul>\n </Host>\n );\n } \n}\n"]}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newE2EPage } from "@stencil/core/testing";
21
+ describe('cpsl-dropdown', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-dropdown></cpsl-dropdown>');
25
+ const element = yield page.find('cpsl-dropdown');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-dropdown.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-dropdown.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-dropdown/test/cpsl-dropdown.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACjD,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-dropdown', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-dropdown></cpsl-dropdown>');\n\n const element = await page.find('cpsl-dropdown');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newSpecPage } from "@stencil/core/testing";
21
+ import { CpslDropdown } from "../cpsl-dropdown";
22
+ describe('cpsl-dropdown', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslDropdown],
26
+ html: `<cpsl-dropdown></cpsl-dropdown>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-dropdown>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-dropdown>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-dropdown.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-dropdown.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-dropdown/test/cpsl-dropdown.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,IAAI,EAAE,iCAAiC;SACxC,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 { CpslDropdown } from '../cpsl-dropdown';\n\ndescribe('cpsl-dropdown', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslDropdown],\n html: `<cpsl-dropdown></cpsl-dropdown>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-dropdown>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-dropdown>\n `);\n });\n});\n"]}