@usecapsule/core-components 2.0.4-dev.dropdown.1 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. package/css/capsule-core.css +0 -12
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/{p-0cab90fa.entry.js → p-68c73705.entry.js} +2 -2
  8. package/dist/capsule/{p-193ac141.entry.js → p-91412151.entry.js} +2 -2
  9. package/dist/capsule/p-cacdef26.entry.js +29 -0
  10. package/dist/capsule/p-cacdef26.entry.js.map +1 -0
  11. package/dist/capsule/p-f604b591.entry.js +2 -0
  12. package/dist/cjs/capsule.cjs.js +1 -1
  13. package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_17.cjs.entry.js} +45 -4106
  14. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
  16. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  17. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  18. package/dist/cjs/index-3fccb5b4.js +2 -2
  19. package/dist/cjs/index.cjs.js +8 -28
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/assets/icons/decent-brand.svg +3 -0
  23. package/dist/collection/assets/icons/decent.svg +3 -0
  24. package/dist/collection/assets/icons/index.js +6 -236
  25. package/dist/collection/assets/icons/index.js.map +1 -1
  26. package/dist/collection/assets/icons/lightning.svg +3 -0
  27. package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
  28. package/dist/collection/assets/icons/ramp-network.svg +3 -0
  29. package/dist/collection/collection-manifest.json +0 -1
  30. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  31. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  32. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  33. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  34. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  35. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  36. package/dist/collection/components/cpsl-modal/cpsl-modal.js +4 -2
  37. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  38. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  39. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  40. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  41. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  42. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  43. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  44. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  45. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  46. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -101
  47. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -110
  48. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  49. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  50. package/dist/collection/index.js +1 -1
  51. package/dist/collection/index.js.map +1 -1
  52. package/dist/collection/interface.js.map +1 -1
  53. package/dist/collection/utils/theme/generateFont.js +4 -25
  54. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  55. package/dist/collection/utils/theme/generateTheme.js +3 -2
  56. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  57. package/dist/esm/capsule.js +1 -1
  58. package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_17.entry.js} +46 -4106
  59. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  60. package/dist/esm/cpsl-grid.entry.js +2 -2
  61. package/dist/esm/cpsl-info-box.entry.js +1 -1
  62. package/dist/esm/cpsl-row.entry.js +1 -1
  63. package/dist/esm/index-f00e090c.js +2 -2
  64. package/dist/esm/index.js +8 -28
  65. package/dist/esm/index.js.map +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/types/assets/icons/index.d.ts +5 -235
  68. package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
  69. package/dist/types/components.d.ts +0 -53
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/interface.d.ts +0 -15
  72. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  73. package/dist/types/utils/theme/generateTheme.d.ts +2 -1
  74. package/package.json +3 -2
  75. package/dist/capsule/p-0ff96d5e.entry.js +0 -29
  76. package/dist/capsule/p-0ff96d5e.entry.js.map +0 -1
  77. package/dist/capsule/p-cb8dc0a4.entry.js +0 -2
  78. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
  79. package/dist/collection/assets/icons/AD.svg +0 -15
  80. package/dist/collection/assets/icons/AE.svg +0 -13
  81. package/dist/collection/assets/icons/AF.svg +0 -14
  82. package/dist/collection/assets/icons/AG.svg +0 -15
  83. package/dist/collection/assets/icons/AI.svg +0 -19
  84. package/dist/collection/assets/icons/AL.svg +0 -11
  85. package/dist/collection/assets/icons/AM.svg +0 -12
  86. package/dist/collection/assets/icons/AO.svg +0 -14
  87. package/dist/collection/assets/icons/AR.svg +0 -13
  88. package/dist/collection/assets/icons/AS.svg +0 -15
  89. package/dist/collection/assets/icons/AT.svg +0 -12
  90. package/dist/collection/assets/icons/AU.svg +0 -20
  91. package/dist/collection/assets/icons/AW.svg +0 -15
  92. package/dist/collection/assets/icons/AX.svg +0 -15
  93. package/dist/collection/assets/icons/AZ.svg +0 -14
  94. package/dist/collection/assets/icons/BA.svg +0 -13
  95. package/dist/collection/assets/icons/BB.svg +0 -13
  96. package/dist/collection/assets/icons/BD.svg +0 -11
  97. package/dist/collection/assets/icons/BE.svg +0 -12
  98. package/dist/collection/assets/icons/BF.svg +0 -12
  99. package/dist/collection/assets/icons/BG.svg +0 -12
  100. package/dist/collection/assets/icons/BH.svg +0 -11
  101. package/dist/collection/assets/icons/BI.svg +0 -18
  102. package/dist/collection/assets/icons/BJ.svg +0 -12
  103. package/dist/collection/assets/icons/BL.svg +0 -16
  104. package/dist/collection/assets/icons/BM.svg +0 -20
  105. package/dist/collection/assets/icons/BN.svg +0 -19
  106. package/dist/collection/assets/icons/BO.svg +0 -12
  107. package/dist/collection/assets/icons/BQ.svg +0 -14
  108. package/dist/collection/assets/icons/BQ2.svg +0 -20
  109. package/dist/collection/assets/icons/BQ3.svg +0 -15
  110. package/dist/collection/assets/icons/BR.svg +0 -14
  111. package/dist/collection/assets/icons/BS.svg +0 -13
  112. package/dist/collection/assets/icons/BT.svg +0 -12
  113. package/dist/collection/assets/icons/BW.svg +0 -13
  114. package/dist/collection/assets/icons/BY.svg +0 -18
  115. package/dist/collection/assets/icons/BZ.svg +0 -17
  116. package/dist/collection/assets/icons/CA.svg +0 -13
  117. package/dist/collection/assets/icons/CC.svg +0 -19
  118. package/dist/collection/assets/icons/CD.svg +0 -12
  119. package/dist/collection/assets/icons/CD2.svg +0 -14
  120. package/dist/collection/assets/icons/CF.svg +0 -20
  121. package/dist/collection/assets/icons/CH.svg +0 -11
  122. package/dist/collection/assets/icons/CK.svg +0 -22
  123. package/dist/collection/assets/icons/CL.svg +0 -13
  124. package/dist/collection/assets/icons/CM.svg +0 -13
  125. package/dist/collection/assets/icons/CN.svg +0 -15
  126. package/dist/collection/assets/icons/CO.svg +0 -12
  127. package/dist/collection/assets/icons/CR.svg +0 -13
  128. package/dist/collection/assets/icons/CU.svg +0 -15
  129. package/dist/collection/assets/icons/CW.svg +0 -14
  130. package/dist/collection/assets/icons/CX.svg +0 -19
  131. package/dist/collection/assets/icons/CY.svg +0 -12
  132. package/dist/collection/assets/icons/CZ.svg +0 -12
  133. package/dist/collection/assets/icons/DE.svg +0 -12
  134. package/dist/collection/assets/icons/DJ.svg +0 -13
  135. package/dist/collection/assets/icons/DK.svg +0 -14
  136. package/dist/collection/assets/icons/DM.svg +0 -34
  137. package/dist/collection/assets/icons/DO.svg +0 -17
  138. package/dist/collection/assets/icons/DS.svg +0 -13
  139. package/dist/collection/assets/icons/DZ.svg +0 -13
  140. package/dist/collection/assets/icons/EC.svg +0 -15
  141. package/dist/collection/assets/icons/EE.svg +0 -12
  142. package/dist/collection/assets/icons/EG.svg +0 -13
  143. package/dist/collection/assets/icons/EH.svg +0 -15
  144. package/dist/collection/assets/icons/ER.svg +0 -13
  145. package/dist/collection/assets/icons/ES.svg +0 -12
  146. package/dist/collection/assets/icons/ET.svg +0 -15
  147. package/dist/collection/assets/icons/FI.svg +0 -11
  148. package/dist/collection/assets/icons/FJ.svg +0 -18
  149. package/dist/collection/assets/icons/FK.svg +0 -18
  150. package/dist/collection/assets/icons/FM.svg +0 -14
  151. package/dist/collection/assets/icons/FO.svg +0 -12
  152. package/dist/collection/assets/icons/FR.svg +0 -12
  153. package/dist/collection/assets/icons/GA.svg +0 -12
  154. package/dist/collection/assets/icons/GB-2.svg +0 -11
  155. package/dist/collection/assets/icons/GB.svg +0 -23
  156. package/dist/collection/assets/icons/GD.svg +0 -26
  157. package/dist/collection/assets/icons/GE.svg +0 -15
  158. package/dist/collection/assets/icons/GG.svg +0 -12
  159. package/dist/collection/assets/icons/GH.svg +0 -13
  160. package/dist/collection/assets/icons/GI.svg +0 -13
  161. package/dist/collection/assets/icons/GL.svg +0 -13
  162. package/dist/collection/assets/icons/GM.svg +0 -13
  163. package/dist/collection/assets/icons/GN.svg +0 -12
  164. package/dist/collection/assets/icons/GQ.svg +0 -16
  165. package/dist/collection/assets/icons/GR.svg +0 -15
  166. package/dist/collection/assets/icons/GT.svg +0 -14
  167. package/dist/collection/assets/icons/GU.svg +0 -18
  168. package/dist/collection/assets/icons/GW.svg +0 -14
  169. package/dist/collection/assets/icons/GY.svg +0 -15
  170. package/dist/collection/assets/icons/HK.svg +0 -15
  171. package/dist/collection/assets/icons/HN.svg +0 -17
  172. package/dist/collection/assets/icons/HR.svg +0 -31
  173. package/dist/collection/assets/icons/HT.svg +0 -17
  174. package/dist/collection/assets/icons/HU.svg +0 -12
  175. package/dist/collection/assets/icons/ID.svg +0 -11
  176. package/dist/collection/assets/icons/IE.svg +0 -12
  177. package/dist/collection/assets/icons/IL.svg +0 -13
  178. package/dist/collection/assets/icons/IM.svg +0 -11
  179. package/dist/collection/assets/icons/IN.svg +0 -15
  180. package/dist/collection/assets/icons/IO.svg +0 -29
  181. package/dist/collection/assets/icons/IQ.svg +0 -15
  182. package/dist/collection/assets/icons/IR.svg +0 -13
  183. package/dist/collection/assets/icons/IS.svg +0 -15
  184. package/dist/collection/assets/icons/IT.svg +0 -12
  185. package/dist/collection/assets/icons/JE.svg +0 -13
  186. package/dist/collection/assets/icons/JM.svg +0 -14
  187. package/dist/collection/assets/icons/JO.svg +0 -14
  188. package/dist/collection/assets/icons/JP.svg +0 -11
  189. package/dist/collection/assets/icons/KE.svg +0 -19
  190. package/dist/collection/assets/icons/KG.svg +0 -16
  191. package/dist/collection/assets/icons/KH.svg +0 -13
  192. package/dist/collection/assets/icons/KI.svg +0 -17
  193. package/dist/collection/assets/icons/KM.svg +0 -19
  194. package/dist/collection/assets/icons/KN.svg +0 -15
  195. package/dist/collection/assets/icons/KP.svg +0 -15
  196. package/dist/collection/assets/icons/KR.svg +0 -30
  197. package/dist/collection/assets/icons/KW.svg +0 -13
  198. package/dist/collection/assets/icons/KY.svg +0 -20
  199. package/dist/collection/assets/icons/KZ.svg +0 -13
  200. package/dist/collection/assets/icons/LA.svg +0 -13
  201. package/dist/collection/assets/icons/LB.svg +0 -13
  202. package/dist/collection/assets/icons/LC.svg +0 -13
  203. package/dist/collection/assets/icons/LI.svg +0 -12
  204. package/dist/collection/assets/icons/LK.svg +0 -14
  205. package/dist/collection/assets/icons/LR.svg +0 -23
  206. package/dist/collection/assets/icons/LS.svg +0 -13
  207. package/dist/collection/assets/icons/LT.svg +0 -12
  208. package/dist/collection/assets/icons/LU.svg +0 -12
  209. package/dist/collection/assets/icons/LV.svg +0 -12
  210. package/dist/collection/assets/icons/LY.svg +0 -14
  211. package/dist/collection/assets/icons/MA.svg +0 -11
  212. package/dist/collection/assets/icons/MC.svg +0 -11
  213. package/dist/collection/assets/icons/MD.svg +0 -15
  214. package/dist/collection/assets/icons/ME.svg +0 -15
  215. package/dist/collection/assets/icons/MG.svg +0 -12
  216. package/dist/collection/assets/icons/MH.svg +0 -13
  217. package/dist/collection/assets/icons/MK.svg +0 -20
  218. package/dist/collection/assets/icons/ML.svg +0 -12
  219. package/dist/collection/assets/icons/MM.svg +0 -13
  220. package/dist/collection/assets/icons/MN.svg +0 -19
  221. package/dist/collection/assets/icons/MO.svg +0 -18
  222. package/dist/collection/assets/icons/MP.svg +0 -14
  223. package/dist/collection/assets/icons/MQ.svg +0 -18
  224. package/dist/collection/assets/icons/MR.svg +0 -12
  225. package/dist/collection/assets/icons/MS.svg +0 -17
  226. package/dist/collection/assets/icons/MT.svg +0 -12
  227. package/dist/collection/assets/icons/MU.svg +0 -13
  228. package/dist/collection/assets/icons/MV.svg +0 -12
  229. package/dist/collection/assets/icons/MW.svg +0 -13
  230. package/dist/collection/assets/icons/MX.svg +0 -14
  231. package/dist/collection/assets/icons/MY.svg +0 -17
  232. package/dist/collection/assets/icons/MZ.svg +0 -17
  233. package/dist/collection/assets/icons/NA.svg +0 -14
  234. package/dist/collection/assets/icons/NE.svg +0 -13
  235. package/dist/collection/assets/icons/NF.svg +0 -13
  236. package/dist/collection/assets/icons/NG.svg +0 -12
  237. package/dist/collection/assets/icons/NI.svg +0 -16
  238. package/dist/collection/assets/icons/NL.svg +0 -12
  239. package/dist/collection/assets/icons/NO.svg +0 -15
  240. package/dist/collection/assets/icons/NP.svg +0 -16
  241. package/dist/collection/assets/icons/NR.svg +0 -14
  242. package/dist/collection/assets/icons/NU.svg +0 -20
  243. package/dist/collection/assets/icons/NZ.svg +0 -18
  244. package/dist/collection/assets/icons/OM.svg +0 -15
  245. package/dist/collection/assets/icons/PA.svg +0 -14
  246. package/dist/collection/assets/icons/PE.svg +0 -12
  247. package/dist/collection/assets/icons/PF.svg +0 -17
  248. package/dist/collection/assets/icons/PG.svg +0 -17
  249. package/dist/collection/assets/icons/PH.svg +0 -16
  250. package/dist/collection/assets/icons/PK.svg +0 -14
  251. package/dist/collection/assets/icons/PL.svg +0 -11
  252. package/dist/collection/assets/icons/PN.svg +0 -18
  253. package/dist/collection/assets/icons/PR.svg +0 -15
  254. package/dist/collection/assets/icons/PS.svg +0 -13
  255. package/dist/collection/assets/icons/PT.svg +0 -14
  256. package/dist/collection/assets/icons/PW.svg +0 -11
  257. package/dist/collection/assets/icons/PY.svg +0 -14
  258. package/dist/collection/assets/icons/QA.svg +0 -11
  259. package/dist/collection/assets/icons/RO.svg +0 -12
  260. package/dist/collection/assets/icons/RS.svg +0 -16
  261. package/dist/collection/assets/icons/RU.svg +0 -12
  262. package/dist/collection/assets/icons/RW.svg +0 -13
  263. package/dist/collection/assets/icons/SA.svg +0 -16
  264. package/dist/collection/assets/icons/SB.svg +0 -17
  265. package/dist/collection/assets/icons/SC.svg +0 -14
  266. package/dist/collection/assets/icons/SE.svg +0 -14
  267. package/dist/collection/assets/icons/SG.svg +0 -17
  268. package/dist/collection/assets/icons/SI.svg +0 -13
  269. package/dist/collection/assets/icons/SK.svg +0 -16
  270. package/dist/collection/assets/icons/SL.svg +0 -12
  271. package/dist/collection/assets/icons/SM.svg +0 -16
  272. package/dist/collection/assets/icons/SN.svg +0 -13
  273. package/dist/collection/assets/icons/SO.svg +0 -11
  274. package/dist/collection/assets/icons/SR.svg +0 -14
  275. package/dist/collection/assets/icons/SS.svg +0 -15
  276. package/dist/collection/assets/icons/ST.svg +0 -15
  277. package/dist/collection/assets/icons/SV.svg +0 -15
  278. package/dist/collection/assets/icons/SX.svg +0 -17
  279. package/dist/collection/assets/icons/SY.svg +0 -14
  280. package/dist/collection/assets/icons/SZ.svg +0 -21
  281. package/dist/collection/assets/icons/TC.svg +0 -19
  282. package/dist/collection/assets/icons/TD.svg +0 -12
  283. package/dist/collection/assets/icons/TG.svg +0 -15
  284. package/dist/collection/assets/icons/TH.svg +0 -13
  285. package/dist/collection/assets/icons/TJ.svg +0 -20
  286. package/dist/collection/assets/icons/TK.svg +0 -15
  287. package/dist/collection/assets/icons/TL.svg +0 -13
  288. package/dist/collection/assets/icons/TM.svg +0 -30
  289. package/dist/collection/assets/icons/TN.svg +0 -13
  290. package/dist/collection/assets/icons/TO.svg +0 -12
  291. package/dist/collection/assets/icons/TR.svg +0 -12
  292. package/dist/collection/assets/icons/TT.svg +0 -13
  293. package/dist/collection/assets/icons/TV.svg +0 -25
  294. package/dist/collection/assets/icons/TW.svg +0 -14
  295. package/dist/collection/assets/icons/TZ.svg +0 -13
  296. package/dist/collection/assets/icons/UA.svg +0 -11
  297. package/dist/collection/assets/icons/UG.svg +0 -16
  298. package/dist/collection/assets/icons/US.svg +0 -15
  299. package/dist/collection/assets/icons/UY.svg +0 -16
  300. package/dist/collection/assets/icons/UZ.svg +0 -27
  301. package/dist/collection/assets/icons/VC.svg +0 -15
  302. package/dist/collection/assets/icons/VE.svg +0 -20
  303. package/dist/collection/assets/icons/VG.svg +0 -24
  304. package/dist/collection/assets/icons/VI.svg +0 -18
  305. package/dist/collection/assets/icons/VN.svg +0 -11
  306. package/dist/collection/assets/icons/VU.svg +0 -32
  307. package/dist/collection/assets/icons/WS.svg +0 -16
  308. package/dist/collection/assets/icons/YE.svg +0 -12
  309. package/dist/collection/assets/icons/ZA.svg +0 -15
  310. package/dist/collection/assets/icons/ZM.svg +0 -14
  311. package/dist/collection/assets/icons/ZW.svg +0 -20
  312. package/dist/collection/assets/icons/chevron-up.svg +0 -3
  313. package/dist/collection/assets/icons/earth.svg +0 -11
  314. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +0 -88
  315. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +0 -118
  316. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +0 -1
  317. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  318. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  319. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  320. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  321. package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
  322. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +0 -26
  323. /package/dist/capsule/{p-0cab90fa.entry.js.map → p-68c73705.entry.js.map} +0 -0
  324. /package/dist/capsule/{p-193ac141.entry.js.map → p-91412151.entry.js.map} +0 -0
  325. /package/dist/capsule/{p-cb8dc0a4.entry.js.map → p-f604b591.entry.js.map} +0 -0
  326. /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -1,32 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_4163)">
3
- <path d="M24.0003 12.0003C24.0003 11.4698 23.9655 10.9475 23.8988 10.4351H10.435C7.98342 7.98365 3.51488 3.51539 3.51507 3.51501C-1.1712 8.20129 -1.1712 15.7992 3.51507 20.4856L10.4352 13.5656H23.8988C23.9655 13.0532 24.0003 12.5308 24.0003 12.0003Z" fill="black"/>
4
- <path d="M23.9967 12.2726C23.9962 12.2958 23.9957 12.319 23.995 12.3422C23.9956 12.3189 23.9961 12.2958 23.9967 12.2726Z" fill="#F0F0F0"/>
5
- <path d="M23.9851 12.6002C23.984 12.6232 23.9824 12.646 23.9812 12.6689C23.9824 12.6461 23.9839 12.6232 23.9851 12.6002Z" fill="#F0F0F0"/>
6
- <path d="M23.968 12.8632C23.9656 12.8969 23.9633 12.9307 23.9606 12.9643C23.9633 12.9307 23.9656 12.8969 23.968 12.8632Z" fill="#F0F0F0"/>
7
- <path d="M23.9285 10.6921C23.9329 10.7323 23.9373 10.7724 23.9413 10.8127C23.9373 10.7724 23.9328 10.7323 23.9285 10.6921Z" fill="#F0F0F0"/>
8
- <path d="M23.9805 11.3298C23.9817 11.3527 23.9833 11.3756 23.9844 11.3985C23.9832 11.3756 23.9817 11.3527 23.9805 11.3298Z" fill="#F0F0F0"/>
9
- <path d="M23.9945 11.6567C23.9952 11.6799 23.9956 11.7032 23.9962 11.7264C23.9957 11.7031 23.9951 11.6799 23.9945 11.6567Z" fill="#F0F0F0"/>
10
- <path d="M23.9609 11.0355C23.9637 11.0692 23.966 11.1029 23.9684 11.1367C23.966 11.1029 23.9637 11.0692 23.9609 11.0355Z" fill="#F0F0F0"/>
11
- <path d="M23.8987 10.4344C23.9041 10.4755 23.9089 10.5168 23.9138 10.558C23.2016 4.61044 18.1397 -0.000366211 12.0003 -0.000366211C8.68651 -0.000366211 5.68647 1.34283 3.51489 3.5145L10.4348 10.4344H23.8987V10.4344Z" fill="#D80027"/>
12
- <path d="M23.8987 13.5652H10.4348L3.51489 20.4851C5.68647 22.6567 8.68651 24 12.0003 24C18.1397 24 23.2016 19.3892 23.9138 13.4415C23.9089 13.4827 23.904 13.5241 23.8987 13.5652Z" fill="#6DA544"/>
13
- <path d="M23.9413 13.1877C23.9373 13.228 23.9329 13.2681 23.9285 13.3083C23.9329 13.2681 23.9373 13.2281 23.9413 13.1877Z" fill="#F0F0F0"/>
14
- <path d="M23.9685 11.137C23.9731 11.2012 23.9772 11.2655 23.9807 11.33C23.9771 11.2655 23.9731 11.2012 23.9685 11.137Z" fill="black"/>
15
- <path d="M23.9132 10.5583C23.9186 10.6029 23.9237 10.6475 23.9285 10.6922C23.9236 10.6475 23.9185 10.6029 23.9132 10.5583Z" fill="black"/>
16
- <path d="M23.9412 10.8124C23.9485 10.8869 23.9551 10.9616 23.9611 11.0367C23.9551 10.9616 23.9485 10.8869 23.9412 10.8124Z" fill="black"/>
17
- <path d="M24.0005 12C24.0005 12.0913 23.9991 12.1823 23.9971 12.2731C23.9991 12.1823 24.0005 12.0913 24.0005 12Z" fill="black"/>
18
- <path d="M23.9808 12.6688C23.9773 12.7333 23.9731 12.7977 23.9686 12.8619C23.9731 12.7977 23.9772 12.7333 23.9808 12.6688Z" fill="black"/>
19
- <path d="M23.9611 12.964C23.9551 13.0389 23.9485 13.1137 23.9412 13.1882C23.9485 13.1137 23.9551 13.0389 23.9611 12.964Z" fill="black"/>
20
- <path d="M23.9285 13.3081C23.9237 13.3528 23.9186 13.3974 23.9132 13.4419C23.9185 13.3974 23.9236 13.3528 23.9285 13.3081Z" fill="black"/>
21
- <path d="M23.9971 11.7274C23.9991 11.8183 24.0005 11.9093 24.0005 12.0005C24.0005 11.9093 23.9991 11.8183 23.9971 11.7274Z" fill="black"/>
22
- <path d="M23.9856 11.3982C23.9898 11.4841 23.993 11.5704 23.9954 11.6569C23.993 11.5704 23.9899 11.4841 23.9856 11.3982Z" fill="black"/>
23
- <path d="M23.9953 12.3419C23.9929 12.4283 23.9897 12.5146 23.9855 12.6006C23.9898 12.5146 23.9929 12.4283 23.9953 12.3419Z" fill="black"/>
24
- <path d="M23.989 11.4733H9.99426L2.80566 4.28577C2.5733 4.53083 2.32144 4.87302 2.16568 5.11672L9.04031 11.995L2.15991 18.8755C2.29613 19.1178 2.5929 19.4765 2.80125 19.7099L9.9944 12.5168H23.9907C23.9981 12.3437 24.0005 12.1699 24.0005 11.995C24.0004 11.7608 23.994 11.588 23.989 11.4733Z" fill="#FFDA44"/>
25
- <path d="M2.91539 14.5574V13.5523C3.91842 13.5523 4.73437 12.7362 4.73437 11.7333C4.73437 11.0237 4.15701 10.4464 3.44742 10.4464C2.964 10.4464 2.57067 10.8396 2.57067 11.3232C2.57067 11.6323 2.82216 11.8838 3.13134 11.8838C3.30609 11.8838 3.44826 11.7416 3.44826 11.5668H4.45336C4.45336 12.2959 3.86029 12.8889 3.13139 12.8889C2.268 12.889 1.56567 12.1865 1.56567 11.3232C1.56567 10.2856 2.40989 9.44141 3.44747 9.44141C4.71131 9.44141 5.73956 10.4697 5.73956 11.7335C5.73951 13.2905 4.47262 14.5574 2.91539 14.5574Z" fill="#FFDA44"/>
26
- </g>
27
- <defs>
28
- <clipPath id="clip0_2087_4163">
29
- <rect width="24" height="24" fill="white"/>
30
- </clipPath>
31
- </defs>
32
- </svg>
@@ -1,16 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_5409)">
3
- <path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C4.12172 7.87828 7.61737 4.38263 12 0C18.6274 0 24 5.37262 24 12Z" fill="#D80027"/>
4
- <path d="M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z" fill="#0052B4"/>
5
- <path d="M9.61146 7.82622L9.80576 8.42411H10.4344L9.92576 8.79353L10.1201 9.39142L9.61146 9.0219L9.10287 9.39142L9.29717 8.79353L8.78857 8.42411H9.41717L9.61146 7.82622Z" fill="#F0F0F0"/>
6
- <path d="M6.45448 3.13118L6.77824 4.1277H7.826L6.97831 4.7434L7.30217 5.73987L6.45448 5.12398L5.60684 5.73987L5.93065 4.7434L5.08301 4.1277H6.13067L6.45448 3.13118Z" fill="#F0F0F0"/>
7
- <path d="M9.58546 4.17502L9.90923 5.17158H10.9569L10.1093 5.78729L10.4331 6.78375L9.58546 6.16786L8.73782 6.78375L9.06163 5.78729L8.21399 5.17158H9.26165L9.58546 4.17502Z" fill="#F0F0F0"/>
8
- <path d="M7.1106 8.34901L7.43442 9.34553H8.48207L7.63443 9.96123L7.95824 10.9577L7.1106 10.3419L6.26296 10.9577L6.58678 9.96123L5.73914 9.34553H6.78684L7.1106 8.34901Z" fill="#F0F0F0"/>
9
- <path d="M4.36764 5.73991L4.69145 6.73642H5.73916L4.89147 7.35212L5.21528 8.34859L4.36764 7.73275L3.52004 8.34859L3.84381 7.35212L2.99622 6.73642H4.04387L4.36764 5.73991Z" fill="#F0F0F0"/>
10
- </g>
11
- <defs>
12
- <clipPath id="clip0_2087_5409">
13
- <rect width="24" height="24" fill="white"/>
14
- </clipPath>
15
- </defs>
16
- </svg>
@@ -1,12 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_4226)">
3
- <path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#F0F0F0"/>
4
- <path d="M11.9999 23.9992C17.1595 23.9992 21.558 20.7427 23.2536 16.1731H0.746338C2.44185 20.7427 6.84037 23.9992 11.9999 23.9992Z" fill="black"/>
5
- <path d="M11.9999 0.000610352C6.84037 0.000610352 2.44185 3.25711 0.746338 7.82672H23.2536C21.558 3.25711 17.1595 0.000610352 11.9999 0.000610352Z" fill="#D80027"/>
6
- </g>
7
- <defs>
8
- <clipPath id="clip0_2087_4226">
9
- <rect width="24" height="24" fill="white"/>
10
- </clipPath>
11
- </defs>
12
- </svg>
@@ -1,15 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_5530)">
3
- <path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#F0F0F0"/>
4
- <path d="M3.51422 20.4852C-1.17206 15.7989 -1.17206 8.20092 3.51422 3.51459C3.51389 3.5151 10.4343 11.9999 10.4343 11.9999L3.51422 20.4852Z" fill="black"/>
5
- <path d="M10.435 12.0002L1.59175 6.02423C1.31757 6.50081 1.07579 6.99825 0.868042 7.51312L5.34503 12.0002L0.868183 16.4876C1.07575 17.0021 1.31729 17.4992 1.59128 17.9754L10.435 12.0002Z" fill="#FFDA44"/>
6
- <path d="M23.8985 10.4348H10.4346L3.5147 3.51483C2.76901 4.26052 2.12116 5.10385 1.59166 6.02405L7.55598 12L1.59119 17.9751C2.12069 18.8955 2.76883 19.7392 3.5147 20.485L10.4346 13.5652H23.8985C23.9652 13.0528 24.0001 12.5304 24.0001 12C24.0001 11.4695 23.9652 10.9471 23.8985 10.4348Z" fill="#6DA544"/>
7
- <path d="M4.69373 21.5181C6.71727 23.0735 9.25026 23.9988 11.9998 23.9988C17.5441 23.9988 22.2094 20.2385 23.5864 15.1293H11.0826L4.69373 21.5181Z" fill="#0052B4"/>
8
- <path d="M23.5864 8.86875C22.2094 3.75957 17.5441 -0.000793457 11.9998 -0.000793457C9.25026 -0.000793457 6.71727 0.924566 4.69373 2.47997L11.0825 8.86875H23.5864Z" fill="#D80027"/>
9
- </g>
10
- <defs>
11
- <clipPath id="clip0_2087_5530">
12
- <rect width="24" height="24" fill="white"/>
13
- </clipPath>
14
- </defs>
15
- </svg>
@@ -1,14 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_4230)">
3
- <path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#496E2D"/>
4
- <path d="M16.6953 11.9993H11.9996V23.9993C13.4023 23.9993 14.7484 23.7578 15.9996 23.3156L16.6953 11.9993Z" fill="#D80027"/>
5
- <path d="M20.0002 20.9427C22.4549 18.7455 24.0002 15.553 24.0002 11.9993H19.3046L20.0002 20.9427Z" fill="#FF9811"/>
6
- <path d="M15.9999 11.9993V23.3155C17.4904 22.7886 18.8457 21.9759 19.9999 20.9427V11.9993H15.9999Z" fill="black"/>
7
- <path d="M22.1738 7.82669H19.0434C19.0434 7.25041 18.5761 6.7832 17.9999 6.7832C17.4236 6.7832 16.9564 7.25041 16.9564 7.82669H13.8259C13.8259 8.40302 14.3279 8.87017 14.9041 8.87017H14.8694C14.8694 9.4465 15.3365 9.91366 15.9129 9.91366C15.9129 10.49 16.38 10.9571 16.9564 10.9571H19.0434C19.6196 10.9571 20.0868 10.49 20.0868 9.91366C20.6631 9.91366 21.1303 9.4465 21.1303 8.87017H21.0956C21.6719 8.87013 22.1738 8.40297 22.1738 7.82669Z" fill="#FF9811"/>
8
- </g>
9
- <defs>
10
- <clipPath id="clip0_2087_4230">
11
- <rect width="24" height="24" fill="white"/>
12
- </clipPath>
13
- </defs>
14
- </svg>
@@ -1,20 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_4236)">
3
- <path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#F0F0F0"/>
4
- <path d="M22.8522 6.87246C22.2426 5.58461 21.4105 4.42291 20.4055 3.43643L12.0008 2.60913L3.5961 3.43647C3.56929 3.46277 3.54313 3.48968 3.5166 3.51625L6.87285 6.8725L12.0008 7.02911L22.8522 6.87246Z" fill="#FFDA44"/>
5
- <path d="M3.51599 20.4853C3.56015 20.5295 3.60421 20.5737 3.64902 20.6172L12.0003 21.3923L20.3515 20.6172C21.3669 19.6328 22.2091 18.471 22.8274 17.1812L7.30462 16.6967C5.96901 18.0323 4.42851 19.5727 3.51599 20.4853Z" fill="#FFDA44"/>
6
- <path d="M23.8805 10.3081L9.91284 9.91309L11.9998 12.0001C11.3817 12.6182 10.4589 13.541 9.91284 14.087L23.8732 13.7442C23.9561 13.1747 23.9998 12.5925 23.9998 12.0001C23.9998 11.4256 23.9586 10.861 23.8805 10.3081Z" fill="black"/>
7
- <path d="M12 0.000610352C8.72684 0.000610352 5.76031 1.3117 3.59534 3.43664H20.4047C18.2397 1.3117 15.2732 0.000610352 12 0.000610352Z" fill="#6DA544"/>
8
- <path d="M10.3076 10.3086H23.8802C23.709 9.09551 23.3567 7.94079 22.851 6.87256H6.87158L10.3076 10.3086Z" fill="#D80027"/>
9
- <path d="M6.81946 17.1815H22.8267C23.3383 16.1141 23.6962 14.9592 23.873 13.7455H10.2555C8.92485 15.0761 7.79713 16.2038 6.81946 17.1815Z" fill="#D80027"/>
10
- <path d="M12 24.0006C15.2463 24.0006 18.191 22.7109 20.3512 20.6167H3.6488C5.80899 22.7109 8.75368 24.0006 12 24.0006Z" fill="#6DA544"/>
11
- <path d="M4.28516 2.80994C4.0184 3.03409 3.76101 3.26908 3.51477 3.51522L12.0001 12.0005L3.51477 20.4858C3.76096 20.732 4.0184 20.967 4.28516 21.1911L13.4758 12.0005L4.28516 2.80994Z" fill="black"/>
12
- <path d="M4.82455 8.86914L5.6015 11.2605H8.11611L6.08183 12.7386L6.85883 15.13L4.82455 13.652L2.79022 15.13L3.56732 12.7386L1.53308 11.2605H4.04755L4.82455 8.86914Z" fill="#D80027"/>
13
- <path d="M6.96209 12.1947L4.93718 11.4773C4.93718 11.4773 4.78756 10.0738 4.77851 10.0262C4.70979 9.66418 4.39165 9.39038 4.00962 9.39038C3.57743 9.39038 3.22699 9.74077 3.22699 10.173C3.22699 10.2447 3.23745 10.3137 3.25549 10.3797L2.68774 10.9513C2.68774 10.9513 3.36209 10.9513 3.69724 10.9513C3.69724 11.9991 2.91537 11.9991 2.91537 13.0425L3.3491 14.086H5.95779L6.3926 13.0425H6.39242C6.43596 12.9424 6.4624 12.8392 6.47332 12.736C6.84813 12.5844 6.96209 12.1947 6.96209 12.1947Z" fill="#FFDA44"/>
14
- </g>
15
- <defs>
16
- <clipPath id="clip0_2087_4236">
17
- <rect width="24" height="24" fill="white"/>
18
- </clipPath>
19
- </defs>
20
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="14" height="8" viewBox="0 0 14 8" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M13 7L7 0.999999L1 7" stroke="#525252" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,11 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_2087_4250)">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.627 0 24 5.37305 24 12C24 18.627 18.627 24 12 24C5.37305 24 0 18.627 0 12C0 5.37305 5.37305 0 12 0Z" fill="#2394E0"/>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M2.297 18.1992C1.58997 17.127 1.06067 15.9258 0.750122 14.6387L2.8634 15.6582L2.87512 16.2891C2.87512 16.5215 2.48059 17.0137 2.35364 17.2012L2.297 18.1992ZM15.295 1.26953C19.3224 2.60742 22.3439 6.15234 22.9259 10.4688L22.545 10.4277C22.4767 10.7207 22.4142 10.7266 22.4142 11.0781C22.4142 11.3887 22.8048 11.5957 22.8048 12.25C22.8048 12.4258 22.3927 12.7754 22.3751 12.8379L21.7638 12.1211V13.0332L21.672 13.0293L21.5079 11.3457L21.1661 11.4531L20.7599 10.2012L19.422 11.5996L19.4064 12.623L18.9689 12.916L18.504 10.291L18.2267 10.4941L17.5978 9.64453L16.6583 9.67188L16.299 9.25977L15.9298 9.36133L15.2052 8.53125L15.0646 8.62695L15.5138 9.77539H16.0353V9.51563H16.295C16.4825 10.0352 16.6857 9.72656 16.6857 10.0371C16.6857 11.1211 15.3478 11.918 14.4708 12.1211C14.5177 12.3164 14.5001 12.5117 14.7306 12.5117C15.2208 12.5117 14.9767 12.4258 15.5118 12.3809C15.4865 13.4883 14.2423 14.8105 13.7111 15.6328L13.9493 17.3301C14.0118 17.6992 13.1837 18.0879 12.9025 18.5039L13.0372 19.1543L12.6564 19.3086C12.59 19.9766 11.9415 20.7168 11.213 20.7168H10.4318C10.4318 19.8027 9.77942 18.4961 9.77942 17.8496C9.77942 17.3008 10.0392 17.2266 10.0392 16.5469C10.0392 15.918 9.38879 15.0176 9.38879 14.8535V13.8105H8.86731C8.78918 13.5195 8.83801 13.4199 8.47669 13.4199H8.34583C7.77747 13.4199 7.87317 13.6797 7.30286 13.6797H6.78137C6.31067 13.6797 5.47864 12.1719 5.47864 11.9863V10.4238C5.47864 9.75 6.09583 9.01562 6.52161 8.73047V8.08008L7.10754 7.48438L7.43372 7.42969C8.13293 7.42969 8.04895 7.03906 8.47669 7.03906H9.64856V7.95117L10.9376 8.50195L11.0587 7.94531C11.6427 8.08203 11.795 8.3418 12.5138 8.3418H12.7736C13.2677 8.3418 13.295 7.68555 13.295 7.16992L12.2521 7.27344L11.797 6.28516L11.3458 6.4043C11.4279 6.75781 11.4708 6.61133 11.4708 6.91016C11.4708 7.08594 11.3263 7.10547 11.2091 7.16992L10.7579 6.02539L9.78723 5.33203L9.65833 5.45898L10.4845 6.32812C10.3751 6.64062 10.3615 7.54102 9.90637 6.91016L10.3322 6.70508L9.26965 5.5918L8.63293 5.83984L8.00403 6.44141C7.93762 6.92578 7.80676 7.16992 7.29895 7.16992C6.96106 7.16992 7.16418 7.08203 6.64661 7.03906V5.73633H7.81848L7.43762 4.86914L7.297 4.95508V4.69336L9.20129 3.81641C9.16614 3.54297 9.12122 3.68945 9.12122 3.39062C9.12122 3.37305 9.24817 3.13281 9.25208 3.12891L9.74426 3.43555L9.62708 2.875L8.86731 3.03125L8.72668 2.34961C9.32825 2.0332 10.6544 0.916016 11.0763 0.916016H11.4669C11.879 0.916016 12.9806 1.32227 13.1603 1.56641L12.1154 1.46094L12.8907 2.09961L12.965 1.82617L13.5431 1.66797L13.5509 1.30664H13.8126V1.69727L15.295 1.26953Z" fill="#A1E367"/>
5
- </g>
6
- <defs>
7
- <clipPath id="clip0_2087_4250">
8
- <rect width="24" height="24" fill="white"/>
9
- </clipPath>
10
- </defs>
11
- </svg>
@@ -1,88 +0,0 @@
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
- }
@@ -1,118 +0,0 @@
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: '49678d2d78499c5d3c31c1c2ff4f0a4ceaf78ddf', style: { width: this.width } }, h("button", { key: '4e776809adf531f09d325895320c00592775c291', 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: '08d5a7f34d2ec0c15a3824d22aa86382063e614e', innerHTML: Icons['chevronUp'] })), h("ul", { key: '58bba72299035c7c1c4ed65849a58ff3e9e9e768', class: { 'dropdown-options': true, 'open': this.isOpen }, style: { width: this.width } }, this.items.map(item => h("li", { onClick: this.handleItemSelect(item) }, h("span", { innerHTML: Icons[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: IconType, label: string, value: string, selectedLabel?: string }>",
81
- "resolved": "{ icon: \"key\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"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\"; label: string; value: string; selectedLabel?: string; }[]",
82
- "references": {
83
- "Array": {
84
- "location": "global",
85
- "id": "global::Array"
86
- },
87
- "IconType": {
88
- "location": "import",
89
- "path": "../../interface",
90
- "id": "src/interface.ts::IconType"
91
- }
92
- }
93
- },
94
- "required": false,
95
- "optional": false,
96
- "docs": {
97
- "tags": [],
98
- "text": "Items to be presented in the dropdown"
99
- },
100
- "defaultValue": "[]"
101
- }
102
- };
103
- }
104
- static get states() {
105
- return {
106
- "isOpen": {},
107
- "selectedItem": {}
108
- };
109
- }
110
- static get elementRef() { return "el"; }
111
- static get watchers() {
112
- return [{
113
- "propName": "isOpen",
114
- "methodName": "handleOpenChange"
115
- }];
116
- }
117
- }
118
- //# sourceMappingURL=cpsl-dropdown.js.map
@@ -1 +0,0 @@
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;AAQ3C,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,IAA8E,EAAE,EAAE;YACtG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YACzB,IAAI,CAAC,cAAc,EAAE,CAAC;QACxB,CAAC,CAAC;QAEM,qBAAgB,GAAG,CAAC,IAA8E,EAAE,EAAE,CAAC,GAAG,EAAE;YAClH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAA;qBApBuB,MAAM;sBACH,KAAK;;qBAMiE,EAAE;;IAgBnG,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,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAS;gBACzC,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';\nimport { IconType } from '../../interface';\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: IconType, label: string, value: string, selectedLabel?: string };\n\n /**\n * Items to be presented in the dropdown\n */\n @Prop() items: Array<{ icon: IconType, label: string, value: string, selectedLabel?: string }> = [];\n\n private toggleDropdown = () => {\n this.isOpen = !this.isOpen;\n };\n\n private selectItem = (item: { icon: IconType, label: string, value: string, selectedLabel?: string }) => {\n this.selectedItem = item;\n this.toggleDropdown();\n };\n\n private handleItemSelect = (item: { icon: IconType, 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={Icons[item.icon]}></span>\n {item.label} <span class=\"dropdown-value\">{item.value}</span>\n </li>\n )}\n </ul>\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-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
@@ -1 +0,0 @@
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"]}
@@ -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 { 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
@@ -1 +0,0 @@
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"]}