@usecapsule/core-components 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) 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 -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-a95ec4df.entry.js → p-415384b7.entry.js} +2 -2
  8. package/dist/capsule/{p-91412151.entry.js → p-4d957466.entry.js} +2 -2
  9. package/dist/capsule/p-6b02ea8d.entry.js +2 -0
  10. package/dist/capsule/p-b2997f3c.js +3 -0
  11. package/dist/capsule/p-b2997f3c.js.map +1 -0
  12. package/dist/capsule/{p-d7be092d.entry.js → p-b76350fd.entry.js} +2 -2
  13. package/dist/capsule/p-d0b8e7cb.entry.js +29 -0
  14. package/dist/capsule/p-d0b8e7cb.entry.js.map +1 -0
  15. package/dist/capsule/{p-68c73705.entry.js → p-fa4e3c14.entry.js} +2 -2
  16. package/dist/cjs/capsule.cjs.js +2 -2
  17. package/dist/cjs/{cpsl-alert_17.cjs.entry.js → cpsl-alert_18.cjs.entry.js} +4142 -17
  18. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
  19. package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
  20. package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
  21. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  22. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  23. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  24. package/dist/cjs/{index-3fccb5b4.js → index-87ba56f9.js} +10 -5
  25. package/dist/cjs/index-87ba56f9.js.map +1 -0
  26. package/dist/cjs/index.cjs.js +28 -8
  27. package/dist/cjs/index.cjs.js.map +1 -1
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/collection/assets/icons/AD.svg +15 -0
  30. package/dist/collection/assets/icons/AE.svg +13 -0
  31. package/dist/collection/assets/icons/AF.svg +14 -0
  32. package/dist/collection/assets/icons/AG.svg +15 -0
  33. package/dist/collection/assets/icons/AI.svg +19 -0
  34. package/dist/collection/assets/icons/AL.svg +11 -0
  35. package/dist/collection/assets/icons/AM.svg +12 -0
  36. package/dist/collection/assets/icons/AO.svg +14 -0
  37. package/dist/collection/assets/icons/AR.svg +13 -0
  38. package/dist/collection/assets/icons/AS.svg +15 -0
  39. package/dist/collection/assets/icons/AT.svg +12 -0
  40. package/dist/collection/assets/icons/AU.svg +20 -0
  41. package/dist/collection/assets/icons/AW.svg +15 -0
  42. package/dist/collection/assets/icons/AX.svg +15 -0
  43. package/dist/collection/assets/icons/AZ.svg +14 -0
  44. package/dist/collection/assets/icons/BA.svg +13 -0
  45. package/dist/collection/assets/icons/BB.svg +13 -0
  46. package/dist/collection/assets/icons/BD.svg +11 -0
  47. package/dist/collection/assets/icons/BE.svg +12 -0
  48. package/dist/collection/assets/icons/BF.svg +12 -0
  49. package/dist/collection/assets/icons/BG.svg +12 -0
  50. package/dist/collection/assets/icons/BH.svg +11 -0
  51. package/dist/collection/assets/icons/BI.svg +18 -0
  52. package/dist/collection/assets/icons/BJ.svg +12 -0
  53. package/dist/collection/assets/icons/BL.svg +16 -0
  54. package/dist/collection/assets/icons/BM.svg +20 -0
  55. package/dist/collection/assets/icons/BN.svg +19 -0
  56. package/dist/collection/assets/icons/BO.svg +12 -0
  57. package/dist/collection/assets/icons/BQ.svg +14 -0
  58. package/dist/collection/assets/icons/BQ2.svg +20 -0
  59. package/dist/collection/assets/icons/BQ3.svg +15 -0
  60. package/dist/collection/assets/icons/BR.svg +14 -0
  61. package/dist/collection/assets/icons/BS.svg +13 -0
  62. package/dist/collection/assets/icons/BT.svg +12 -0
  63. package/dist/collection/assets/icons/BW.svg +13 -0
  64. package/dist/collection/assets/icons/BY.svg +18 -0
  65. package/dist/collection/assets/icons/BZ.svg +17 -0
  66. package/dist/collection/assets/icons/CA.svg +13 -0
  67. package/dist/collection/assets/icons/CC.svg +19 -0
  68. package/dist/collection/assets/icons/CD.svg +12 -0
  69. package/dist/collection/assets/icons/CD2.svg +14 -0
  70. package/dist/collection/assets/icons/CF.svg +20 -0
  71. package/dist/collection/assets/icons/CH.svg +11 -0
  72. package/dist/collection/assets/icons/CK.svg +22 -0
  73. package/dist/collection/assets/icons/CL.svg +13 -0
  74. package/dist/collection/assets/icons/CM.svg +13 -0
  75. package/dist/collection/assets/icons/CN.svg +15 -0
  76. package/dist/collection/assets/icons/CO.svg +12 -0
  77. package/dist/collection/assets/icons/CR.svg +13 -0
  78. package/dist/collection/assets/icons/CU.svg +15 -0
  79. package/dist/collection/assets/icons/CW.svg +14 -0
  80. package/dist/collection/assets/icons/CX.svg +19 -0
  81. package/dist/collection/assets/icons/CY.svg +12 -0
  82. package/dist/collection/assets/icons/CZ.svg +12 -0
  83. package/dist/collection/assets/icons/DE.svg +12 -0
  84. package/dist/collection/assets/icons/DJ.svg +13 -0
  85. package/dist/collection/assets/icons/DK.svg +14 -0
  86. package/dist/collection/assets/icons/DM.svg +34 -0
  87. package/dist/collection/assets/icons/DO.svg +17 -0
  88. package/dist/collection/assets/icons/DS.svg +13 -0
  89. package/dist/collection/assets/icons/DZ.svg +13 -0
  90. package/dist/collection/assets/icons/EC.svg +15 -0
  91. package/dist/collection/assets/icons/EE.svg +12 -0
  92. package/dist/collection/assets/icons/EG.svg +13 -0
  93. package/dist/collection/assets/icons/EH.svg +15 -0
  94. package/dist/collection/assets/icons/ER.svg +13 -0
  95. package/dist/collection/assets/icons/ES.svg +12 -0
  96. package/dist/collection/assets/icons/ET.svg +15 -0
  97. package/dist/collection/assets/icons/FI.svg +11 -0
  98. package/dist/collection/assets/icons/FJ.svg +18 -0
  99. package/dist/collection/assets/icons/FK.svg +18 -0
  100. package/dist/collection/assets/icons/FM.svg +14 -0
  101. package/dist/collection/assets/icons/FO.svg +12 -0
  102. package/dist/collection/assets/icons/FR.svg +12 -0
  103. package/dist/collection/assets/icons/GA.svg +12 -0
  104. package/dist/collection/assets/icons/GB-2.svg +11 -0
  105. package/dist/collection/assets/icons/GB.svg +23 -0
  106. package/dist/collection/assets/icons/GD.svg +26 -0
  107. package/dist/collection/assets/icons/GE.svg +15 -0
  108. package/dist/collection/assets/icons/GG.svg +12 -0
  109. package/dist/collection/assets/icons/GH.svg +13 -0
  110. package/dist/collection/assets/icons/GI.svg +13 -0
  111. package/dist/collection/assets/icons/GL.svg +13 -0
  112. package/dist/collection/assets/icons/GM.svg +13 -0
  113. package/dist/collection/assets/icons/GN.svg +12 -0
  114. package/dist/collection/assets/icons/GQ.svg +16 -0
  115. package/dist/collection/assets/icons/GR.svg +15 -0
  116. package/dist/collection/assets/icons/GT.svg +14 -0
  117. package/dist/collection/assets/icons/GU.svg +18 -0
  118. package/dist/collection/assets/icons/GW.svg +14 -0
  119. package/dist/collection/assets/icons/GY.svg +15 -0
  120. package/dist/collection/assets/icons/HK.svg +15 -0
  121. package/dist/collection/assets/icons/HN.svg +17 -0
  122. package/dist/collection/assets/icons/HR.svg +31 -0
  123. package/dist/collection/assets/icons/HT.svg +17 -0
  124. package/dist/collection/assets/icons/HU.svg +12 -0
  125. package/dist/collection/assets/icons/ID.svg +11 -0
  126. package/dist/collection/assets/icons/IE.svg +12 -0
  127. package/dist/collection/assets/icons/IL.svg +13 -0
  128. package/dist/collection/assets/icons/IM.svg +11 -0
  129. package/dist/collection/assets/icons/IN.svg +15 -0
  130. package/dist/collection/assets/icons/IO.svg +29 -0
  131. package/dist/collection/assets/icons/IQ.svg +15 -0
  132. package/dist/collection/assets/icons/IR.svg +13 -0
  133. package/dist/collection/assets/icons/IS.svg +15 -0
  134. package/dist/collection/assets/icons/IT.svg +12 -0
  135. package/dist/collection/assets/icons/JE.svg +13 -0
  136. package/dist/collection/assets/icons/JM.svg +14 -0
  137. package/dist/collection/assets/icons/JO.svg +14 -0
  138. package/dist/collection/assets/icons/JP.svg +11 -0
  139. package/dist/collection/assets/icons/KE.svg +19 -0
  140. package/dist/collection/assets/icons/KG.svg +16 -0
  141. package/dist/collection/assets/icons/KH.svg +13 -0
  142. package/dist/collection/assets/icons/KI.svg +17 -0
  143. package/dist/collection/assets/icons/KM.svg +19 -0
  144. package/dist/collection/assets/icons/KN.svg +15 -0
  145. package/dist/collection/assets/icons/KP.svg +15 -0
  146. package/dist/collection/assets/icons/KR.svg +30 -0
  147. package/dist/collection/assets/icons/KW.svg +13 -0
  148. package/dist/collection/assets/icons/KY.svg +20 -0
  149. package/dist/collection/assets/icons/KZ.svg +13 -0
  150. package/dist/collection/assets/icons/LA.svg +13 -0
  151. package/dist/collection/assets/icons/LB.svg +13 -0
  152. package/dist/collection/assets/icons/LC.svg +13 -0
  153. package/dist/collection/assets/icons/LI.svg +12 -0
  154. package/dist/collection/assets/icons/LK.svg +14 -0
  155. package/dist/collection/assets/icons/LR.svg +23 -0
  156. package/dist/collection/assets/icons/LS.svg +13 -0
  157. package/dist/collection/assets/icons/LT.svg +12 -0
  158. package/dist/collection/assets/icons/LU.svg +12 -0
  159. package/dist/collection/assets/icons/LV.svg +12 -0
  160. package/dist/collection/assets/icons/LY.svg +14 -0
  161. package/dist/collection/assets/icons/MA.svg +11 -0
  162. package/dist/collection/assets/icons/MC.svg +11 -0
  163. package/dist/collection/assets/icons/MD.svg +15 -0
  164. package/dist/collection/assets/icons/ME.svg +15 -0
  165. package/dist/collection/assets/icons/MG.svg +12 -0
  166. package/dist/collection/assets/icons/MH.svg +13 -0
  167. package/dist/collection/assets/icons/MK.svg +20 -0
  168. package/dist/collection/assets/icons/ML.svg +12 -0
  169. package/dist/collection/assets/icons/MM.svg +13 -0
  170. package/dist/collection/assets/icons/MN.svg +19 -0
  171. package/dist/collection/assets/icons/MO.svg +18 -0
  172. package/dist/collection/assets/icons/MP.svg +14 -0
  173. package/dist/collection/assets/icons/MQ.svg +18 -0
  174. package/dist/collection/assets/icons/MR.svg +12 -0
  175. package/dist/collection/assets/icons/MS.svg +17 -0
  176. package/dist/collection/assets/icons/MT.svg +12 -0
  177. package/dist/collection/assets/icons/MU.svg +13 -0
  178. package/dist/collection/assets/icons/MV.svg +12 -0
  179. package/dist/collection/assets/icons/MW.svg +13 -0
  180. package/dist/collection/assets/icons/MX.svg +14 -0
  181. package/dist/collection/assets/icons/MY.svg +17 -0
  182. package/dist/collection/assets/icons/MZ.svg +17 -0
  183. package/dist/collection/assets/icons/NA.svg +14 -0
  184. package/dist/collection/assets/icons/NE.svg +13 -0
  185. package/dist/collection/assets/icons/NF.svg +13 -0
  186. package/dist/collection/assets/icons/NG.svg +12 -0
  187. package/dist/collection/assets/icons/NI.svg +16 -0
  188. package/dist/collection/assets/icons/NL.svg +12 -0
  189. package/dist/collection/assets/icons/NO.svg +15 -0
  190. package/dist/collection/assets/icons/NP.svg +16 -0
  191. package/dist/collection/assets/icons/NR.svg +14 -0
  192. package/dist/collection/assets/icons/NU.svg +20 -0
  193. package/dist/collection/assets/icons/NZ.svg +18 -0
  194. package/dist/collection/assets/icons/OM.svg +15 -0
  195. package/dist/collection/assets/icons/PA.svg +14 -0
  196. package/dist/collection/assets/icons/PE.svg +12 -0
  197. package/dist/collection/assets/icons/PF.svg +17 -0
  198. package/dist/collection/assets/icons/PG.svg +17 -0
  199. package/dist/collection/assets/icons/PH.svg +16 -0
  200. package/dist/collection/assets/icons/PK.svg +14 -0
  201. package/dist/collection/assets/icons/PL.svg +11 -0
  202. package/dist/collection/assets/icons/PN.svg +18 -0
  203. package/dist/collection/assets/icons/PR.svg +15 -0
  204. package/dist/collection/assets/icons/PS.svg +13 -0
  205. package/dist/collection/assets/icons/PT.svg +14 -0
  206. package/dist/collection/assets/icons/PW.svg +11 -0
  207. package/dist/collection/assets/icons/PY.svg +14 -0
  208. package/dist/collection/assets/icons/QA.svg +11 -0
  209. package/dist/collection/assets/icons/RO.svg +12 -0
  210. package/dist/collection/assets/icons/RS.svg +16 -0
  211. package/dist/collection/assets/icons/RU.svg +12 -0
  212. package/dist/collection/assets/icons/RW.svg +13 -0
  213. package/dist/collection/assets/icons/SA.svg +16 -0
  214. package/dist/collection/assets/icons/SB.svg +17 -0
  215. package/dist/collection/assets/icons/SC.svg +14 -0
  216. package/dist/collection/assets/icons/SE.svg +14 -0
  217. package/dist/collection/assets/icons/SG.svg +17 -0
  218. package/dist/collection/assets/icons/SI.svg +13 -0
  219. package/dist/collection/assets/icons/SK.svg +16 -0
  220. package/dist/collection/assets/icons/SL.svg +12 -0
  221. package/dist/collection/assets/icons/SM.svg +16 -0
  222. package/dist/collection/assets/icons/SN.svg +13 -0
  223. package/dist/collection/assets/icons/SO.svg +11 -0
  224. package/dist/collection/assets/icons/SR.svg +14 -0
  225. package/dist/collection/assets/icons/SS.svg +15 -0
  226. package/dist/collection/assets/icons/ST.svg +15 -0
  227. package/dist/collection/assets/icons/SV.svg +15 -0
  228. package/dist/collection/assets/icons/SX.svg +17 -0
  229. package/dist/collection/assets/icons/SY.svg +14 -0
  230. package/dist/collection/assets/icons/SZ.svg +21 -0
  231. package/dist/collection/assets/icons/TC.svg +19 -0
  232. package/dist/collection/assets/icons/TD.svg +12 -0
  233. package/dist/collection/assets/icons/TG.svg +15 -0
  234. package/dist/collection/assets/icons/TH.svg +13 -0
  235. package/dist/collection/assets/icons/TJ.svg +20 -0
  236. package/dist/collection/assets/icons/TK.svg +15 -0
  237. package/dist/collection/assets/icons/TL.svg +13 -0
  238. package/dist/collection/assets/icons/TM.svg +30 -0
  239. package/dist/collection/assets/icons/TN.svg +13 -0
  240. package/dist/collection/assets/icons/TO.svg +12 -0
  241. package/dist/collection/assets/icons/TR.svg +12 -0
  242. package/dist/collection/assets/icons/TT.svg +13 -0
  243. package/dist/collection/assets/icons/TV.svg +25 -0
  244. package/dist/collection/assets/icons/TW.svg +14 -0
  245. package/dist/collection/assets/icons/TZ.svg +13 -0
  246. package/dist/collection/assets/icons/UA.svg +11 -0
  247. package/dist/collection/assets/icons/UG.svg +16 -0
  248. package/dist/collection/assets/icons/US.svg +15 -0
  249. package/dist/collection/assets/icons/UY.svg +16 -0
  250. package/dist/collection/assets/icons/UZ.svg +27 -0
  251. package/dist/collection/assets/icons/VC.svg +15 -0
  252. package/dist/collection/assets/icons/VE.svg +20 -0
  253. package/dist/collection/assets/icons/VG.svg +24 -0
  254. package/dist/collection/assets/icons/VI.svg +18 -0
  255. package/dist/collection/assets/icons/VN.svg +11 -0
  256. package/dist/collection/assets/icons/VU.svg +32 -0
  257. package/dist/collection/assets/icons/WS.svg +16 -0
  258. package/dist/collection/assets/icons/YE.svg +12 -0
  259. package/dist/collection/assets/icons/ZA.svg +15 -0
  260. package/dist/collection/assets/icons/ZM.svg +14 -0
  261. package/dist/collection/assets/icons/ZW.svg +20 -0
  262. package/dist/collection/assets/icons/chevron-up.svg +3 -0
  263. package/dist/collection/assets/icons/earth.svg +11 -0
  264. package/dist/collection/assets/icons/index.js +236 -1
  265. package/dist/collection/assets/icons/index.js.map +1 -1
  266. package/dist/collection/collection-manifest.json +1 -0
  267. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  268. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +213 -0
  269. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +207 -0
  270. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
  271. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js +2 -0
  272. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -0
  273. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
  274. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
  275. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
  276. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
  277. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  278. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  279. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  280. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  281. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  282. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  283. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  284. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  285. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  286. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  287. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  288. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  289. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  290. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  291. package/dist/collection/components/cpsl-text/cpsl-text.css +101 -0
  292. package/dist/collection/components/cpsl-text/cpsl-text.js +110 -1
  293. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  294. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  295. package/dist/collection/index.js +1 -1
  296. package/dist/collection/index.js.map +1 -1
  297. package/dist/collection/interface.js.map +1 -1
  298. package/dist/collection/utils/theme/generateFont.js +25 -4
  299. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  300. package/dist/collection/utils/theme/generateTheme.js +2 -3
  301. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  302. package/dist/esm/capsule.js +3 -3
  303. package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4142 -18
  304. package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
  305. package/dist/esm/cpsl-animation.entry.js +1 -1
  306. package/dist/esm/cpsl-col.entry.js +1 -1
  307. package/dist/esm/cpsl-grid.entry.js +3 -3
  308. package/dist/esm/cpsl-info-box.entry.js +2 -2
  309. package/dist/esm/cpsl-row.entry.js +2 -2
  310. package/dist/esm/{index-f00e090c.js → index-fd970ca2.js} +10 -5
  311. package/dist/esm/index-fd970ca2.js.map +1 -0
  312. package/dist/esm/index.js +28 -8
  313. package/dist/esm/index.js.map +1 -1
  314. package/dist/esm/loader.js +3 -3
  315. package/dist/types/assets/icons/index.d.ts +235 -0
  316. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +26 -0
  317. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +7 -0
  318. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  319. package/dist/types/components.d.ts +82 -0
  320. package/dist/types/index.d.ts +1 -1
  321. package/dist/types/interface.d.ts +15 -0
  322. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  323. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  324. package/package.json +2 -2
  325. package/dist/capsule/p-6fb7c4d1.js +0 -3
  326. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  327. package/dist/capsule/p-cacdef26.entry.js +0 -29
  328. package/dist/capsule/p-cacdef26.entry.js.map +0 -1
  329. package/dist/capsule/p-f604b591.entry.js +0 -2
  330. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  331. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  332. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  333. package/dist/esm/index-f00e090c.js.map +0 -1
  334. /package/dist/capsule/{p-a95ec4df.entry.js.map → p-415384b7.entry.js.map} +0 -0
  335. /package/dist/capsule/{p-91412151.entry.js.map → p-4d957466.entry.js.map} +0 -0
  336. /package/dist/capsule/{p-f604b591.entry.js.map → p-6b02ea8d.entry.js.map} +0 -0
  337. /package/dist/capsule/{p-d7be092d.entry.js.map → p-b76350fd.entry.js.map} +0 -0
  338. /package/dist/capsule/{p-68c73705.entry.js.map → p-fa4e3c14.entry.js.map} +0 -0
  339. /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -60,11 +60,32 @@ const generateBorderRadii = ({ borderRadius }) => {
60
60
  document.documentElement.style.setProperty('--cpsl-border-radius-info-box', `${smallRadius}px`);
61
61
  };
62
62
 
63
- const generateFont = ({ font }) => {
64
- if (!Boolean(font)) {
65
- return;
63
+ const FONT_NAME_MAP = {
64
+ body2XS: 'body-2xs',
65
+ bodyXS: 'body-xs',
66
+ bodyS: 'body-s',
67
+ bodyM: 'body-m',
68
+ bodyL: 'body-l',
69
+ bodyXL: 'body-xl',
70
+ headingXS: 'heading-xs',
71
+ headingS: 'heading-s',
72
+ headingM: 'heading-m',
73
+ headingL: 'heading-l',
74
+ headingXL: 'heading-xl',
75
+ heading2XL: 'heading-2xl',
76
+ };
77
+ const generateFont = ({ font, customFontSizes }) => {
78
+ if (Boolean(font)) {
79
+ document.documentElement.style.setProperty('--cpsl-default-font', font);
66
80
  }
67
- document.documentElement.style.setProperty('--cpsl-default-font', font);
81
+ Object.entries(FONT_NAME_MAP).forEach(([key, value]) => {
82
+ if (customFontSizes === null || customFontSizes === void 0 ? void 0 : customFontSizes[key]) {
83
+ document.documentElement.style.setProperty(`--cpsl-font-size-${value}`, customFontSizes[key]);
84
+ }
85
+ else {
86
+ document.documentElement.style.removeProperty(`--cpsl-font-size-${value}`);
87
+ }
88
+ });
68
89
  };
69
90
 
70
91
  /**
@@ -329,14 +350,13 @@ const generatePalette = ({ foregroundColor, backgroundColor, customPalette }) =>
329
350
  return palette;
330
351
  };
331
352
 
332
- const generateTheme = ({ foregroundColor = constants.DEFAULT_THEME.foregroundColor, backgroundColor = constants.DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius }) => {
353
+ const generateTheme = ({ foregroundColor = constants.DEFAULT_THEME.foregroundColor, backgroundColor = constants.DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius, customFontSizes, }) => {
333
354
  const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });
334
- generateFont({ font });
355
+ generateFont({ font, customFontSizes });
335
356
  generateBorderRadii({ borderRadius });
336
357
  return palette.isDarkBackground;
337
358
  };
338
- const generateTheme$1 = generateTheme;
339
359
 
340
- exports.generateTheme = generateTheme$1;
360
+ exports.generateTheme = generateTheme;
341
361
 
342
362
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"file":"index.cjs.js","mappings":";;;;;;AAEO,MAAM,mBAAmB,GAAG,CAAC,EAAE,YAAY,EAA+B;IAC/E,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC1B,OAAO;KACR;IAED,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,YAAY,GAAG,EAAE,CAAC;IACtB,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,MAAM,UAAU,GAAG,IAAI,CAAC;IACxB,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,IAAI,MAAM,GAAG,KAAK,CAAC;IAEnB,QAAQ,YAAY;QAClB,KAAK,MAAM,EAAE;YACX,MAAM,GAAG,IAAI,CAAC;YACd,WAAW,GAAG,CAAC,CAAC;YAChB,YAAY,GAAG,CAAC,CAAC;YACjB,WAAW,GAAG,CAAC,CAAC;YAChB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,CAAC,CAAC;YAChB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,MAAM,EAAE;YACX,WAAW,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM,GAAG,IAAI,CAAC;YACd,MAAM;SACP;KACF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ACnK,MAAM,OAAO,GAAG,eAAe,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,CAAC;IAErF,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAEvB,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,gBAAgB,CAAC;AAClC,CAAC,CAAC;AAEF,wBAAe,aAAa;;;;","names":["DEFAULT_THEME"],"sources":["src/utils/theme/generateBorderRadii.ts","src/utils/theme/generateFont.ts","../node_modules/color2k/dist/index.module.es.js","src/utils/theme/utils.ts","src/utils/theme/generatePalette.ts","src/utils/theme/generateTheme.ts"],"sourcesContent":["import { Theme } from '../../interface';\n\nexport const generateBorderRadii = ({ borderRadius }: Pick<Theme, 'borderRadius'>) => {\n if (!Boolean(borderRadius)) {\n return;\n }\n\n let smallRadius = 8;\n let mediumRadius = 16;\n let largeRadius = 24;\n const fullRadius = 1000;\n let isFull = false;\n let isNone = false;\n\n switch (borderRadius) {\n case 'none': {\n isNone = true;\n smallRadius = 0;\n mediumRadius = 0;\n largeRadius = 0;\n break;\n }\n case 'xs': {\n smallRadius = 4;\n mediumRadius = 12;\n largeRadius = 20;\n break;\n }\n case 'md': {\n smallRadius = 12;\n mediumRadius = 20;\n largeRadius = 28;\n break;\n }\n case 'lg': {\n smallRadius = 16;\n mediumRadius = 24;\n largeRadius = 32;\n break;\n }\n case 'full': {\n smallRadius = 16;\n mediumRadius = 24;\n largeRadius = 32;\n isFull = true;\n break;\n }\n }\n\n document.documentElement.style.setProperty('--cpsl-border-radius-input', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-alert', `${smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-tabs', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-primary-button', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-secondary-button', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-tile-button', `${smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-modal', `${mediumRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-pill', `${isNone ? 0 : fullRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-qr-code', `${largeRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-info-box', `${smallRadius}px`);\n};\n","import { Theme } from '../../interface';\n\nexport const generateFont = ({ font }: Pick<Theme, 'font'>) => {\n if (!Boolean(font)) {\n return;\n }\n\n document.documentElement.style.setProperty('--cpsl-default-font', font);\n};\n","/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.module.es.js.map\n","import { CustomPalette } from '../../interface';\n\nexport const isColor = strColor => {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n};\n\nconst toKebabCase = (pascal: string) => pascal.replace(/([a-z0–9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// This function handles arrays and objects\nconst buildVars = (prev: string, obj: any): { [k: string]: string } => {\n let resp = {};\n\n for (const k in obj) {\n const name = `${prev}-${toKebabCase(k)}`;\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n resp = { ...resp, ...buildVars(name, obj[k]) };\n } else {\n resp[name] = obj[k];\n }\n }\n\n return resp;\n};\n\nexport const getCssColors = (customPalette: CustomPalette): { [k: string]: string } => buildVars('--cpsl-color', customPalette);\n","import { mix, readableColorIsBlack } from 'color2k';\nimport { Theme } from '../../interface';\nimport { getCssColors, isColor } from './utils';\nimport { DEFAULT_THEME } from '../../constants';\n\nexport type Palette = {\n foregroundColors: string[];\n backgroundColors: string[];\n isDarkBackground: boolean;\n};\n\nconst MIXES = [0, 0.08, 0.16, 0.32, 0.48, 0.64, 0.8, 0.96];\n\nexport const generatePalette = ({ foregroundColor, backgroundColor, customPalette }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>): Palette => {\n if (!Boolean(foregroundColor) || !isColor(foregroundColor)) {\n foregroundColor = DEFAULT_THEME.foregroundColor;\n }\n if (!Boolean(backgroundColor) || !isColor(backgroundColor)) {\n backgroundColor = DEFAULT_THEME.backgroundColor;\n }\n\n const isDarkBackground = !readableColorIsBlack(backgroundColor);\n\n const palette: Palette = {\n foregroundColors: [],\n backgroundColors: [],\n isDarkBackground,\n };\n\n const backgroundMixColor = isDarkBackground ? '#FFFFFF' : '#000000';\n const foregroundMixColor = isDarkBackground ? '#000000' : '#FFFFFF';\n\n MIXES.forEach(value => {\n palette.foregroundColors.push(mix(foregroundColor, foregroundMixColor, value));\n palette.backgroundColors.push(mix(backgroundColor, backgroundMixColor, value));\n });\n\n // BACKGROUND\n document.documentElement.style.setProperty('--cpsl-color-background-0', palette.backgroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-background-8', palette.backgroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-background-16', palette.backgroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-background-32', palette.backgroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-background-48', palette.backgroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-background-64', palette.backgroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-background-80', palette.backgroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-background-96', palette.backgroundColors[7]);\n\n // FOREGROUND\n document.documentElement.style.setProperty('--cpsl-color-foreground-0', palette.foregroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-8', palette.foregroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-16', palette.foregroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-32', palette.foregroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-48', palette.foregroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-64', palette.foregroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-80', palette.foregroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-96', palette.foregroundColors[7]);\n\n if (Boolean(customPalette)) {\n const cssColorVars = getCssColors(customPalette);\n Object.entries(cssColorVars).forEach(([k, v]) => document.documentElement.style.setProperty(k, v));\n }\n\n return palette;\n};\n","import { DEFAULT_THEME } from '../../constants';\nimport { Theme } from '../../interface';\nimport { generateBorderRadii } from './generateBorderRadii';\nimport { generateFont } from './generateFont';\nimport { generatePalette } from './generatePalette';\n\n/**\n * Generates css theme variables.\n * @returns @boolean Whether background is dark or not.\n */\nconst generateTheme = ({ foregroundColor = DEFAULT_THEME.foregroundColor, backgroundColor = DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius }: Theme): boolean => {\n const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });\n\n generateFont({ font });\n\n generateBorderRadii({ borderRadius });\n\n return palette.isDarkBackground;\n};\n\nexport default generateTheme;\n"],"version":3}
1
+ {"file":"index.cjs.js","mappings":";;;;;;AAEO,MAAM,mBAAmB,GAAG,CAAC,EAAE,YAAY,EAA+B;IAC/E,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC1B,OAAO;KACR;IAED,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,YAAY,GAAG,EAAE,CAAC;IACtB,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,MAAM,UAAU,GAAG,IAAI,CAAC;IACxB,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,IAAI,MAAM,GAAG,KAAK,CAAC;IAEnB,QAAQ,YAAY;QAClB,KAAK,MAAM,EAAE;YACX,MAAM,GAAG,IAAI,CAAC;YACd,WAAW,GAAG,CAAC,CAAC;YAChB,YAAY,GAAG,CAAC,CAAC;YACjB,WAAW,GAAG,CAAC,CAAC;YAChB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,CAAC,CAAC;YAChB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,IAAI,EAAE;YACT,WAAW,GAAG,EAAE,CAAC;YACjB,YAAY,GAAG,EAAE,CAAC;YAClB,WAAW,GAAG,EAAE,CAAC;YACjB,MAAM;SACP;QACD,KAAK,MAAM,EAAE;YACX,WAAW,G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AAC,CAAC,CAAC;IACtG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,4BAA4B,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,4BAA4B,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,4BAA4B,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtG,IAAI,OAAO,CAAC,aAAa,CAAC,EAAE;QAC1B,MAAM,YAAY,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACpG;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;;MCrDY,aAAa,GAAG,CAAC,EAC5B,eAAe,GAAGA,uBAAa,CAAC,eAAe,EAC/C,eAAe,GAAGA,uBAAa,CAAC,eAAe,EAC/C,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,eAAe,GACT;IACN,MAAM,OAAO,GAAG,eAAe,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC,CAAC;IAErF,YAAY,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;IAExC,mBAAmB,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,gBAAgB,CAAC;AAClC;;;;","names":["DEFAULT_THEME"],"sources":["src/utils/theme/generateBorderRadii.ts","src/utils/theme/generateFont.ts","../node_modules/color2k/dist/index.module.es.js","src/utils/theme/utils.ts","src/utils/theme/generatePalette.ts","src/utils/theme/generateTheme.ts"],"sourcesContent":["import { Theme } from '../../interface';\n\nexport const generateBorderRadii = ({ borderRadius }: Pick<Theme, 'borderRadius'>) => {\n if (!Boolean(borderRadius)) {\n return;\n }\n\n let smallRadius = 8;\n let mediumRadius = 16;\n let largeRadius = 24;\n const fullRadius = 1000;\n let isFull = false;\n let isNone = false;\n\n switch (borderRadius) {\n case 'none': {\n isNone = true;\n smallRadius = 0;\n mediumRadius = 0;\n largeRadius = 0;\n break;\n }\n case 'xs': {\n smallRadius = 4;\n mediumRadius = 12;\n largeRadius = 20;\n break;\n }\n case 'md': {\n smallRadius = 12;\n mediumRadius = 20;\n largeRadius = 28;\n break;\n }\n case 'lg': {\n smallRadius = 16;\n mediumRadius = 24;\n largeRadius = 32;\n break;\n }\n case 'full': {\n smallRadius = 16;\n mediumRadius = 24;\n largeRadius = 32;\n isFull = true;\n break;\n }\n }\n\n document.documentElement.style.setProperty('--cpsl-border-radius-input', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-alert', `${smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-tabs', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-primary-button', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-secondary-button', `${isFull ? fullRadius : smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-tile-button', `${smallRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-modal', `${mediumRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-pill', `${isNone ? 0 : fullRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-qr-code', `${largeRadius}px`);\n document.documentElement.style.setProperty('--cpsl-border-radius-info-box', `${smallRadius}px`);\n};\n","import { Theme } from '../../interface';\n\nconst FONT_NAME_MAP = {\n body2XS: 'body-2xs',\n bodyXS: 'body-xs',\n bodyS: 'body-s',\n bodyM: 'body-m',\n bodyL: 'body-l',\n bodyXL: 'body-xl',\n headingXS: 'heading-xs',\n headingS: 'heading-s',\n headingM: 'heading-m',\n headingL: 'heading-l',\n headingXL: 'heading-xl',\n heading2XL: 'heading-2xl',\n};\n\nexport const generateFont = ({ font, customFontSizes }: Pick<Theme, 'font' | 'customFontSizes'>) => {\n if (Boolean(font)) {\n document.documentElement.style.setProperty('--cpsl-default-font', font);\n }\n\n Object.entries(FONT_NAME_MAP).forEach(([key, value]) => {\n if (customFontSizes?.[key]) {\n document.documentElement.style.setProperty(`--cpsl-font-size-${value}`, customFontSizes[key]);\n } else {\n document.documentElement.style.removeProperty(`--cpsl-font-size-${value}`);\n }\n });\n};\n","/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.module.es.js.map\n","import { CustomPalette } from '../../interface';\n\nexport const isColor = strColor => {\n const s = new Option().style;\n s.color = strColor;\n return s.color !== '';\n};\n\nconst toKebabCase = (pascal: string) => pascal.replace(/([a-z0–9])([A-Z])/g, '$1-$2').toLowerCase();\n\n// This function handles arrays and objects\nconst buildVars = (prev: string, obj: any): { [k: string]: string } => {\n let resp = {};\n\n for (const k in obj) {\n const name = `${prev}-${toKebabCase(k)}`;\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n resp = { ...resp, ...buildVars(name, obj[k]) };\n } else {\n resp[name] = obj[k];\n }\n }\n\n return resp;\n};\n\nexport const getCssColors = (customPalette: CustomPalette): { [k: string]: string } => buildVars('--cpsl-color', customPalette);\n","import { mix, readableColorIsBlack } from 'color2k';\nimport { Theme } from '../../interface';\nimport { getCssColors, isColor } from './utils';\nimport { DEFAULT_THEME } from '../../constants';\n\nexport type Palette = {\n foregroundColors: string[];\n backgroundColors: string[];\n isDarkBackground: boolean;\n};\n\nconst MIXES = [0, 0.08, 0.16, 0.32, 0.48, 0.64, 0.8, 0.96];\n\nexport const generatePalette = ({ foregroundColor, backgroundColor, customPalette }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>): Palette => {\n if (!Boolean(foregroundColor) || !isColor(foregroundColor)) {\n foregroundColor = DEFAULT_THEME.foregroundColor;\n }\n if (!Boolean(backgroundColor) || !isColor(backgroundColor)) {\n backgroundColor = DEFAULT_THEME.backgroundColor;\n }\n\n const isDarkBackground = !readableColorIsBlack(backgroundColor);\n\n const palette: Palette = {\n foregroundColors: [],\n backgroundColors: [],\n isDarkBackground,\n };\n\n const backgroundMixColor = isDarkBackground ? '#FFFFFF' : '#000000';\n const foregroundMixColor = isDarkBackground ? '#000000' : '#FFFFFF';\n\n MIXES.forEach(value => {\n palette.foregroundColors.push(mix(foregroundColor, foregroundMixColor, value));\n palette.backgroundColors.push(mix(backgroundColor, backgroundMixColor, value));\n });\n\n // BACKGROUND\n document.documentElement.style.setProperty('--cpsl-color-background-0', palette.backgroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-background-8', palette.backgroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-background-16', palette.backgroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-background-32', palette.backgroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-background-48', palette.backgroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-background-64', palette.backgroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-background-80', palette.backgroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-background-96', palette.backgroundColors[7]);\n\n // FOREGROUND\n document.documentElement.style.setProperty('--cpsl-color-foreground-0', palette.foregroundColors[0]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-8', palette.foregroundColors[1]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-16', palette.foregroundColors[2]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-32', palette.foregroundColors[3]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-48', palette.foregroundColors[4]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-64', palette.foregroundColors[5]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-80', palette.foregroundColors[6]);\n document.documentElement.style.setProperty('--cpsl-color-foreground-96', palette.foregroundColors[7]);\n\n if (Boolean(customPalette)) {\n const cssColorVars = getCssColors(customPalette);\n Object.entries(cssColorVars).forEach(([k, v]) => document.documentElement.style.setProperty(k, v));\n }\n\n return palette;\n};\n","import { DEFAULT_THEME } from '../../constants';\nimport { Theme } from '../../interface';\nimport { generateBorderRadii } from './generateBorderRadii';\nimport { generateFont } from './generateFont';\nimport { generatePalette } from './generatePalette';\n\n/**\n * Generates css theme variables.\n * @returns @boolean Whether background is dark or not.\n */\nexport const generateTheme = ({\n foregroundColor = DEFAULT_THEME.foregroundColor,\n backgroundColor = DEFAULT_THEME.backgroundColor,\n font,\n customPalette,\n borderRadius,\n customFontSizes,\n}: Theme): boolean => {\n const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });\n\n generateFont({ font, customFontSizes });\n\n generateBorderRadii({ borderRadius });\n\n return palette.isDarkBackground;\n};\n"],"version":3}
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3fccb5b4.js');
5
+ const index = require('./index-87ba56f9.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["cpsl-animation.cjs",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col.cjs",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid.cjs",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box.cjs",[[1,"cpsl-info-box"]]],["cpsl-row.cjs",[[1,"cpsl-row"]]],["cpsl-alert_17.cjs",[[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-alert",{"type":[1],"icon":[1]}],[1,"cpsl-button",{"disabled":[516],"variant":[513]}],[1,"cpsl-divider"],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-text"],[1,"cpsl-overlay",{"open":[4],"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"]},null,{"open":["toggleHeight"]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
11
+ return index.bootstrapLazy([["cpsl-animation.cjs",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col.cjs",[[1,"cpsl-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]]]],["cpsl-grid.cjs",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box.cjs",[[1,"cpsl-info-box"]]],["cpsl-row.cjs",[[1,"cpsl-row"]]],["cpsl-alert_18.cjs",[[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-input",{"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"noAutoDisable":[4,"no-auto-disable"],"autofocus":[4],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"inputmode":[1],"label":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-modal",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"footerExpanded":[4,"footer-expanded"],"footerTransitionDuration":[2,"footer-transition-duration"],"noOverlay":[4,"no-overlay"],"open":[4],"hasFooter":[32]},null,{"footerExpanded":["toggleHeight"],"open":["toggleModal"]}],[1,"cpsl-slide-button",{"disabled":[4],"endIcon":[1,"end-icon"],"endText":[1,"end-text"],"startIcon":[1,"start-icon"],"startText":[1,"start-text"]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-alert",{"type":[1],"icon":[1]}],[1,"cpsl-button",{"disabled":[516],"variant":[513]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"isOpen":[32],"selectedItem":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"isOpen":["handleOpenChange"]}],[1,"cpsl-pill",{"text":[1]}],[1,"cpsl-progress-indicator",{"totalSteps":[2,"total-steps"],"step":[2]}],[1,"cpsl-qr-code",{"url":[1],"imageSrc":[1,"image-src"],"size":[2]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-tab",{"selected":[4],"tab":[1]},[[8,"cpslTabsChanged","onTabsChanged"],[8,"cpslTabsInit","onTabsInit"]]],[1,"cpsl-tabs",{"fullWidth":[4,"full-width"],"selectedTab":[1,"selected-tab"],"selectedTabRect":[32],"loaded":[32]},null,{"fullWidth":["updateSlider"],"selectedTab":["updateTab"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-overlay",{"open":[4],"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"]},null,{"open":["toggleHeight"]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -0,0 +1,15 @@
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_4012)">
3
+ <path d="M6.78286 22.8093C8.36049 23.5721 10.1303 24 12.0002 24C13.8701 24 15.64 23.5721 17.2176 22.8093L18.2611 12L17.2176 1.19072C15.64 0.427875 13.8701 0 12.0002 0C10.1303 0 8.36049 0.427875 6.78286 1.19072L5.73938 12L6.78286 22.8093Z" fill="#FFDA44"/>
4
+ <path d="M17.2169 22.809C21.2309 20.8681 23.9995 16.7577 23.9995 12.0002C23.9995 7.24269 21.2309 3.13222 17.2169 1.19131V22.809Z" fill="#D80027"/>
5
+ <path d="M6.78238 22.809V1.19131C2.76843 3.13222 -0.000244141 7.24264 -0.000244141 12.0002C-0.000244141 16.7577 2.76843 20.8681 6.78238 22.809Z" fill="#0052B4"/>
6
+ <path d="M11.9999 16.1734C11.9999 14.2585 11.9999 11.9995 11.9999 11.9995H15.1303V13.5647C15.1303 13.8366 14.6086 14.833 13.3208 15.6517C12.8331 15.9618 12.3282 16.0615 11.9999 16.1734Z" fill="#D80027"/>
7
+ <path d="M11.9997 8.86884H8.86926V11.9993H11.9997V8.86884Z" fill="#D80027"/>
8
+ <path d="M13.5654 7.8262C13.5654 7.24987 13.0982 6.78271 12.5219 6.78271C12.3316 6.78271 12.1537 6.83446 12.0002 6.92343C11.8466 6.83446 11.6688 6.78271 11.4785 6.78271C10.9022 6.78271 10.435 7.24987 10.435 7.8262H7.82629V13.0435C7.82629 14.9858 9.36876 16.1091 10.5784 16.6914C10.4879 16.846 10.435 17.0254 10.435 17.2175C10.435 17.7938 10.9022 18.261 11.4785 18.261C11.6688 18.261 11.8466 18.2093 12.0002 18.1203C12.1538 18.2093 12.3316 18.261 12.5219 18.261C13.0982 18.261 13.5654 17.7938 13.5654 17.2175C13.5654 17.0254 13.5125 16.846 13.4219 16.6914C14.6316 16.1091 16.1741 14.9859 16.1741 13.0435V7.8262H13.5654ZM14.6089 13.0435C14.6089 13.3155 14.6089 14.1428 13.3211 14.9616C12.8333 15.2717 12.3285 15.4728 12.0002 15.5846C11.6719 15.4728 11.167 15.2717 10.6792 14.9616C9.3915 14.1428 9.3915 13.3155 9.3915 13.0435V9.3914H14.6089V13.0435Z" fill="#FF9811"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2087_4012">
12
+ <rect width="24" height="24" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,13 @@
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_5787)">
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="M6.78259 16.1729L7.82608 23.2527C9.12601 23.7351 10.5321 23.999 12 23.999C17.1595 23.999 21.5581 20.7425 23.2535 16.1729H6.78259Z" fill="black"/>
5
+ <path d="M6.78259 7.8266L7.82608 0.746785C9.12601 0.264394 10.5321 0.000488281 12 0.000488281C17.1595 0.000488281 21.5581 3.25699 23.2535 7.8266H6.78259Z" fill="#6DA544"/>
6
+ <path d="M0.000366211 12C0.000366211 17.1596 3.25691 21.5581 7.82648 23.2536V0.746399C3.25691 2.44191 0.000366211 6.84043 0.000366211 12Z" fill="#A2001D"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2087_5787">
10
+ <rect width="24" height="24" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,14 @@
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_3980)">
3
+ <path d="M17.2173 1.19072C15.6396 0.427875 13.8697 0 11.9999 0C10.13 0 8.36012 0.427875 6.7825 1.19072L5.73901 12L6.7825 22.8093C8.36012 23.5721 10.13 24 11.9999 24C13.8697 24 15.6396 23.5721 17.2173 22.8093L18.2607 12L17.2173 1.19072Z" fill="#D80027"/>
4
+ <path d="M6.78275 1.19131C2.76884 3.13227 0.00012207 7.24269 0.00012207 12.0002C0.00012207 16.7577 2.76884 20.8681 6.78275 22.809V1.19131Z" fill="black"/>
5
+ <path d="M17.2175 1.19131V22.809C21.2314 20.8681 24.0002 16.7577 24.0002 12.0002C24.0002 7.24269 21.2314 3.13227 17.2175 1.19131Z" fill="#496E2D"/>
6
+ <path d="M11.9997 7.82675C9.69448 7.82675 7.82581 9.69547 7.82581 12.0006C7.82581 14.3058 9.69452 16.1745 11.9997 16.1745C14.3049 16.1745 16.1736 14.3058 16.1736 12.0006C16.1736 9.69547 14.3049 7.82675 11.9997 7.82675ZM11.9997 14.6093C10.5589 14.6093 9.39101 13.4413 9.39101 12.0006C9.39101 10.5599 10.559 9.39196 11.9997 9.39196C13.4404 9.39196 14.6084 10.5599 14.6084 12.0006C14.6084 13.4413 13.4404 14.6093 11.9997 14.6093Z" fill="#FFDA44"/>
7
+ <path d="M12 10.4363C11.4237 10.4363 10.9565 10.9034 10.9565 11.4798V13.045H13.0435V11.4798C13.0435 10.9034 12.5764 10.4363 12 10.4363Z" fill="#FFDA44"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_2087_3980">
11
+ <rect width="24" height="24" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,15 @@
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_4042)">
3
+ <path d="M0 11.9993C0 12.8212 0.082875 13.6238 0.240328 14.3993L12 15.1297L23.7597 14.3993C23.9172 13.6238 24 12.8212 24 11.9993C24 11.1773 23.9171 10.3747 23.7597 9.59929L12 8.86884L0.240328 9.59929C0.082875 10.3747 0 11.1773 0 11.9993Z" fill="#0052B4"/>
4
+ <path d="M23.7595 14.3992H0.240112C1.35194 19.8765 6.19436 23.9992 11.9998 23.9992C17.8052 23.9992 22.6476 19.8765 23.7595 14.3992Z" fill="#F0F0F0"/>
5
+ <path d="M0.240112 9.6H23.7596C22.6476 4.12266 17.8053 0 11.9998 0C6.19427 0 1.35194 4.12266 0.240112 9.6Z" fill="black"/>
6
+ <path d="M17.2176 9.59937H6.78284L8.91471 8.59653L7.77945 6.53192L10.0944 6.97466L10.3878 4.63611L12.0002 6.35614L13.6127 4.63611L13.906 6.97466L16.221 6.53192L15.0858 8.59662L17.2176 9.59937Z" fill="#FFDA44"/>
7
+ <path d="M0 12.0008C0 18.6282 5.37262 24.0008 12 24.0008L2.39981 4.80035C0.893062 6.80609 0 9.29904 0 12.0008Z" fill="#A2001D"/>
8
+ <path d="M11.9996 23.9998C18.627 23.9998 23.9996 18.6272 23.9996 11.9998C23.9996 9.2981 23.1066 6.80514 21.5998 4.79941L11.9996 23.9998Z" fill="#A2001D"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2087_4042">
12
+ <rect width="24" height="24" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,19 @@
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_4027)">
3
+ <path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C0 12.0029 12 0.0013125 12 0C18.6274 0 24 5.37262 24 12Z" fill="#0052B4"/>
4
+ <path d="M11.9674 12.0005H11.9996C11.9996 11.9897 11.9996 11.9792 11.9996 11.9684C11.9889 11.9791 11.9782 11.9898 11.9674 12.0005Z" fill="#F0F0F0"/>
5
+ <path d="M12 6.26086C12 4.14937 12 2.76586 12 0H11.998C5.37145 0.001125 0 5.37323 0 12H6.26086V8.47448L9.78637 12H11.9679C11.9786 11.9893 11.9893 11.9786 12 11.9679C12 11.1594 12 10.4381 12 9.78647L8.47443 6.26086H12Z" fill="#F0F0F0"/>
6
+ <path d="M6.07075 1.56508C4.19393 2.63378 2.6336 4.19407 1.56494 6.07089V11.9999H4.6954V4.69563V4.69553H11.9997C11.9997 3.70821 11.9997 2.76761 11.9997 1.56508H6.07075Z" fill="#D80027"/>
7
+ <path d="M11.9995 10.5248L7.736 6.2614H6.26038V6.26149L11.9994 12.0005H11.9995C11.9995 12.0005 11.9995 10.983 11.9995 10.5248Z" fill="#D80027"/>
8
+ <path d="M20.2941 13.7573C20.6392 13.2826 20.8696 12.7028 20.8696 12.0007V6.78335C20.4336 7.11091 19.8917 7.30506 19.3044 7.30506C18.451 7.30506 17.6934 6.89524 17.2175 6.26167C16.7415 6.89524 15.9839 7.30506 15.1305 7.30506C14.5432 7.30506 14.0013 7.11086 13.5653 6.78344V12.0007C13.5653 12.7028 13.7958 13.2826 14.1408 13.7573H20.2941Z" fill="#F3F3F3"/>
9
+ <path d="M19.2085 11.0321C19.3746 10.6269 19.5038 10.0345 19.5038 9.7397C19.5038 9.26603 18.8863 8.88208 18.8863 8.88208C18.8863 8.88208 18.2687 9.26603 18.2687 9.7397C18.2687 10.0345 18.398 10.6269 18.564 11.0321L18.2075 11.837C18.4171 11.9222 18.6461 11.9696 18.8863 11.9696C19.1265 11.9696 19.3555 11.9222 19.5651 11.837L19.2085 11.0321Z" fill="#FF9811"/>
10
+ <path d="M16.7953 8.4267C16.3614 8.48548 15.7838 8.66994 15.5285 8.81731C15.1183 9.05417 15.0945 9.78087 15.0945 9.78087C15.0945 9.78087 15.7358 10.1237 16.146 9.88686C16.4014 9.73944 16.8497 9.33144 17.1175 8.98494L17.9929 8.89119C17.9619 8.66722 17.8882 8.44517 17.7683 8.23719C17.6481 8.0292 17.4927 7.85445 17.3141 7.71556L16.7953 8.4267Z" fill="#FF9811"/>
11
+ <path d="M15.7447 11.8206C16.0125 12.1669 16.4609 12.5748 16.7163 12.7223C17.1265 12.9591 17.7678 12.6164 17.7678 12.6164C17.7678 12.6164 17.7439 11.8896 17.3338 11.6528C17.0783 11.5053 16.5008 11.3211 16.0668 11.2624L15.5481 10.5511C15.3695 10.69 15.2141 10.8648 15.0939 11.0726C14.9739 11.2807 14.9004 11.5027 14.8693 11.7268L15.7447 11.8206Z" fill="#FF9811"/>
12
+ <path d="M14.0114 13.5656C14.9858 15.1291 17.2171 15.6525 17.2171 15.6525C17.2171 15.6525 19.4483 15.1291 20.4228 13.5656H14.0114Z" fill="#338AF3"/>
13
+ </g>
14
+ <defs>
15
+ <clipPath id="clip0_2087_4027">
16
+ <rect width="24" height="24" fill="white"/>
17
+ </clipPath>
18
+ </defs>
19
+ </svg>
@@ -0,0 +1,11 @@
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_3995)">
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="#D80027"/>
4
+ <path d="M18.7825 8.90743H14.436C14.7043 8.62646 14.8694 8.24607 14.8694 7.82687C14.8694 6.96245 14.1686 6.26167 13.3042 6.26167C12.7596 6.26167 12.2802 6.53992 11.9999 6.96184C11.7195 6.53992 11.2401 6.26167 10.6955 6.26167C9.8311 6.26167 9.13032 6.96245 9.13032 7.82687C9.13032 8.24607 9.29546 8.62651 9.56377 8.90743H5.21729C5.21729 10.06 6.22121 10.9944 7.37372 10.9944H7.30416C7.30416 12.147 8.23852 13.0814 9.39118 13.0814C9.39118 13.4547 9.48957 13.8047 9.66132 14.1077L7.93022 15.8388L9.25838 17.1669L11.1424 15.2829C11.2162 15.3099 11.2925 15.3317 11.3714 15.3464L10.2329 17.9168L11.9999 19.8269L13.7668 17.9167L12.6284 15.3463C12.7073 15.3316 12.7836 15.3099 12.8573 15.2828L14.7413 17.1668L16.0695 15.8387L14.3384 14.1075C14.5102 13.8046 14.6086 13.4545 14.6086 13.0812C15.7612 13.0812 16.6955 12.1469 16.6955 10.9942H16.626C17.7785 10.9943 18.7825 10.06 18.7825 8.90743Z" fill="black"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_2087_3995">
8
+ <rect width="24" height="24" fill="white"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>
@@ -0,0 +1,12 @@
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_4056)">
3
+ <path d="M24.0001 12C24.0001 10.5322 23.7361 9.12608 23.2537 7.82615L12.0001 7.30438L0.746513 7.8261C0.264169 9.12608 0.00012207 10.5322 0.00012207 12C0.00012207 13.4679 0.264169 14.874 0.746513 16.1739L12.0001 16.6957L23.2537 16.174C23.7361 14.874 24.0001 13.4679 24.0001 12Z" fill="#0052B4"/>
4
+ <path d="M12.0001 23.9995C17.1596 23.9995 21.5582 20.743 23.2537 16.1734H0.74646C2.44198 20.743 6.84049 23.9995 12.0001 23.9995Z" fill="#FF9811"/>
5
+ <path d="M0.746338 7.82611H23.2536C21.558 3.2565 17.1595 0 11.9999 0C6.84037 0 2.44185 3.2565 0.746338 7.82611Z" fill="#D80027"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_2087_4056">
9
+ <rect width="24" height="24" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,14 @@
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_4020)">
3
+ <path d="M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12C23.4783 12 12 13.5652 12 13.5652L0 12Z" fill="#D80027"/>
4
+ <path d="M23.9999 12.0004C23.9999 18.6277 18.6273 24.0003 11.9999 24.0003C5.3725 24.0003 -0.00012207 18.6277 -0.00012207 12.0004" fill="black"/>
5
+ <path d="M10.354 9.54358L11.3713 10.2819L10.9836 11.4775L12.0002 10.738L13.0175 11.4763L12.6284 10.281L13.6448 9.54161L12.3879 9.54236L11.9987 8.34709L11.611 9.54278L10.354 9.54358Z" fill="#FFDA44"/>
6
+ <path d="M14.9998 6.8033C14.0542 6.25735 13.0202 5.99968 11.9998 6.00146V7.56633C12.754 7.56497 13.5182 7.75529 14.2172 8.15888C16.3349 9.38157 17.0631 12.0992 15.8403 14.2169C14.6177 16.3346 11.9001 17.0628 9.78236 15.8401C9.16539 15.4839 8.66734 15.0003 8.30022 14.4421L6.99353 15.3048C7.49026 16.0599 8.16508 16.7137 8.99978 17.1956C11.865 18.8498 15.5417 17.8646 17.1959 14.9994C18.8501 12.1343 17.865 8.45752 14.9998 6.8033Z" fill="#FFDA44"/>
7
+ <path d="M8.53959 10.956C8.12475 11.7144 8.40328 12.6655 9.16162 13.0804L14.2452 15.8582C13.8995 16.4901 14.0831 17.2593 14.715 17.605L16.0882 18.3562C16.7201 18.7019 17.5128 18.4698 17.8585 17.8378L18.6097 16.4647L8.53959 10.956Z" fill="#FFDA44"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_2087_4020">
11
+ <rect width="24" height="24" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,13 @@
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_4050)">
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="M12.0002 -0.000915527C7.24267 -0.000915527 3.13192 2.76776 1.19092 6.78171H22.8094C20.8685 2.76776 16.7577 -0.000915527 12.0002 -0.000915527Z" fill="#338AF3"/>
5
+ <path d="M12.0004 23.9988C16.7579 23.9988 20.8687 21.2301 22.8097 17.2161H1.19116C3.13216 21.2301 7.24291 23.9988 12.0004 23.9988Z" fill="#338AF3"/>
6
+ <path d="M15.5865 12.0001L14.1209 12.6894L14.9014 14.1088L13.31 13.8043L13.1083 15.4119L11.9998 14.2296L10.8913 15.4119L10.6897 13.8043L9.09833 14.1087L9.87871 12.6894L8.41321 12.0001L9.87875 11.3107L9.09833 9.89138L10.6897 10.1958L10.8914 8.58817L11.9998 9.77054L13.1083 8.58817L13.31 10.1958L14.9014 9.89138L14.121 11.3107L15.5865 12.0001Z" fill="#FFDA44"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2087_4050">
10
+ <rect width="24" height="24" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,15 @@
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_4004)">
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="M17.8217 1.50525C16.0974 0.54675 14.1127 0 12 0C5.37309 0 0.00084375 5.37178 0 11.9986L8.34783 7.82611L17.8217 1.50525Z" fill="#0052B4"/>
5
+ <path d="M-0.000366211 12.0019C0.000477539 18.6287 5.37273 24.0005 11.9996 24.0005C14.1123 24.0005 16.0971 23.4538 17.8213 22.4952L8.34746 16.1744L-0.000366211 12.0019Z" fill="#0052B4"/>
6
+ <path d="M18.8214 2.12703C18.499 1.90395 18.1651 1.69648 17.8209 1.50519L-0.000366211 11.9983C-0.000366211 11.9988 -0.000366211 11.9993 -0.000366211 11.9998C-0.000366211 12.0002 -0.000366211 12.0007 -0.000366211 12.0012L17.8209 22.4943C18.1651 22.3029 18.499 22.0955 18.8214 21.8724L2.05379 11.9998L18.8214 2.12703Z" fill="#D80027"/>
7
+ <path d="M20.8692 11.5526H19.4398C19.8115 11.1064 19.7885 10.4425 19.3698 10.0238C19.8133 9.58035 19.8133 8.86124 19.3698 8.41766L19.3431 8.44447C19.7866 8.00099 19.8133 7.25507 19.3698 6.81158L12.9453 13.2361C13.3888 13.6797 14.0953 13.6744 14.5388 13.2308L14.6625 13.1178L17.7388 12.8382V14.1613H18.7823V12.7433L20.3475 12.601L20.8692 11.5526Z" fill="#A2001D"/>
8
+ <path d="M13.0439 14.6089L12 14.0872L13.0439 13.5654H19.8264V14.6089H13.0439Z" fill="#FFDA44"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2087_4004">
12
+ <rect width="24" height="24" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,12 @@
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_4084)">
3
+ <path d="M23.2541 16.1731C23.7365 14.8731 24.0005 13.467 24.0005 11.9992C24.0005 10.5313 23.7365 9.12531 23.2541 7.82528L12.0005 6.7818L0.746879 7.82528C0.264535 9.12531 0.000488281 10.5313 0.000488281 11.9992C0.000488281 13.467 0.264535 14.8731 0.746879 16.1731L12.0005 17.2165L23.2541 16.1731Z" fill="#F0F0F0"/>
4
+ <path d="M12.0006 23.9995C17.1601 23.9995 21.5587 20.743 23.2542 16.1734H0.746948C2.44251 20.743 6.84098 23.9995 12.0006 23.9995Z" fill="#D80027"/>
5
+ <path d="M12.0002 0C6.84061 0 2.44214 3.2565 0.746582 7.82611H23.2538C21.5583 3.2565 17.1598 0 12.0002 0Z" fill="#D80027"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_2087_4084">
9
+ <rect width="24" height="24" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,20 @@
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_4068)">
3
+ <path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C0 12.0028 12 0.00135937 12 0C18.6274 0 24 5.37262 24 12Z" fill="#0052B4"/>
4
+ <path d="M11.9678 12.0004H11.9999C11.9999 11.9895 11.9999 11.9791 11.9999 11.9683C11.9892 11.979 11.9785 11.9897 11.9678 12.0004Z" fill="#F0F0F0"/>
5
+ <path d="M11.9997 6.26165C11.9997 4.15017 11.9997 2.76656 11.9997 0.000793457H11.9977C5.37125 0.00187158 -0.000244141 5.37398 -0.000244141 12.0007H6.26061V8.47518L9.78617 12.0007H11.9677C11.9784 11.9901 11.9891 11.9794 11.9998 11.9686C11.9998 11.1602 11.9998 10.4388 11.9998 9.78726L8.47419 6.26165H11.9997Z" fill="#F0F0F0"/>
6
+ <path d="M6.07112 1.56573C4.19429 2.63444 2.63401 4.19472 1.56531 6.07155V12.0005H4.69576V4.69624V4.69619H12.0001C12.0001 3.70886 12.0001 2.76827 12.0001 1.56573H6.07112Z" fill="#D80027"/>
7
+ <path d="M12.0004 10.5249L7.73702 6.26156H6.26135C6.26135 6.26151 6.26135 6.26156 6.26135 6.26156L12.0004 12.0006H12.0004C12.0004 12.0006 12.0004 10.9832 12.0004 10.5249Z" fill="#D80027"/>
8
+ <path d="M7.23753 14.0864L7.89613 15.4635L9.38333 15.1198L8.71733 16.4933L9.9133 17.4417L8.42422 17.7774L8.42839 19.3038L7.23753 18.3488L6.04672 19.3038L6.05089 17.7774L4.56177 17.4417L5.75778 16.4933L5.09169 15.1198L6.57899 15.4635L7.23753 14.0864Z" fill="#F0F0F0"/>
9
+ <path d="M17.9671 16.6953L18.2964 17.3839L19.04 17.212L18.707 17.8987L19.305 18.373L18.5605 18.5408L18.5625 19.304L17.9671 18.8265L17.3717 19.304L17.3738 18.5408L16.6293 18.373L17.2273 17.8987L16.8943 17.212L17.6378 17.3839L17.9671 16.6953Z" fill="#F0F0F0"/>
10
+ <path d="M14.9035 9.39136L15.2327 10.08L15.9763 9.90801L15.6433 10.5948L16.2413 11.069L15.4968 11.2368L15.4988 12L14.9035 11.5225L14.308 12L14.3101 11.2368L13.5656 11.069L14.1635 10.5948L13.8305 9.90801L14.5742 10.08L14.9035 9.39136Z" fill="#F0F0F0"/>
11
+ <path d="M17.9671 5.21759L18.2964 5.90618L19.04 5.73429L18.707 6.42106L19.305 6.89525L18.5605 7.06311L18.5625 7.82633L17.9671 7.34881L17.3717 7.82633L17.3738 7.06311L16.6293 6.89525L17.2272 6.42106L16.8943 5.73429L17.6378 5.90618L17.9671 5.21759Z" fill="#F0F0F0"/>
12
+ <path d="M20.6422 8.34772L20.9715 9.03631L21.7151 8.86437L21.3821 9.55114L21.9801 10.0254L21.2355 10.1932L21.2376 10.9564L20.6422 10.4789L20.0468 10.9564L20.0488 10.1932L19.3043 10.0254L19.9023 9.55114L19.5693 8.86437L20.3129 9.03631L20.6422 8.34772Z" fill="#F0F0F0"/>
13
+ <path d="M18.7292 12.0003L18.9881 12.7975H19.8264L19.1482 13.2902L19.4073 14.0873L18.7292 13.5946L18.0511 14.0873L18.3101 13.2902L17.632 12.7975H18.4701L18.7292 12.0003Z" fill="#F0F0F0"/>
14
+ </g>
15
+ <defs>
16
+ <clipPath id="clip0_2087_4068">
17
+ <rect width="24" height="24" fill="white"/>
18
+ </clipPath>
19
+ </defs>
20
+ </svg>
@@ -0,0 +1,15 @@
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_4060)">
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="#FFDA44"/>
4
+ <path d="M12.0001 24.0002C15.6371 24.0002 18.896 22.3819 21.0967 19.8264H2.90344C5.10408 22.3819 8.36297 24.0002 12.0001 24.0002Z" fill="#338AF3"/>
5
+ <path d="M24 12C24 5.37263 18.6274 0 12 0C5.37262 0 0 5.37263 0 12C0 13.0831 0.144375 14.1323 0.413391 15.1305H23.5867C23.8556 14.1323 24 13.0831 24 12Z" fill="#338AF3"/>
6
+ <path d="M0.953613 16.6962C1.18494 17.2398 1.45536 17.7625 1.76104 18.2614H22.2385C22.5441 17.7625 22.8146 17.2397 23.046 16.6962H0.953613Z" fill="#338AF3"/>
7
+ <path d="M5.49892 7.56907L3.15442 6.53435L5.49892 5.49964L6.53359 3.15518L7.56826 5.49964L9.91272 6.53435L7.56826 7.56907L6.53359 9.91353L5.49892 7.56907Z" fill="#F0F0F0"/>
8
+ <path d="M6.53375 4.44733L7.1727 5.89525L8.62067 6.5343L7.1727 7.1733L6.53375 8.62122L5.8947 7.1733L4.44678 6.5343L5.8947 5.89525L6.53375 4.44733Z" fill="#D80027"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2087_4060">
12
+ <rect width="24" height="24" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,15 @@
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_3987)">
3
+ <path d="M23.5864 15.1299C23.8554 14.1317 23.9998 13.0826 23.9998 11.9994C23.9998 10.9163 23.8554 9.86714 23.5864 8.86898L10.9563 0.0450897C8.61154 0.247121 6.45983 1.12321 4.69541 2.47889L0.413146 8.86898C0.144131 9.86714 -0.000244141 10.9163 -0.000244141 11.9994C-0.000244141 13.0762 0.142396 14.1196 0.408412 15.1125L4.69536 21.52C6.45979 22.8757 8.61149 23.7518 10.9562 23.9538L23.5864 15.1299Z" fill="#FFDA44"/>
4
+ <path d="M0.412964 15.1305C1.10728 17.7067 2.63751 19.9396 4.69523 21.5206V15.1305H0.412964Z" fill="#0052B4"/>
5
+ <path d="M10.9559 23.9544C11.2999 23.984 11.6478 24.0001 11.9994 24.0001C17.5437 24.0001 22.209 20.2397 23.586 15.1305H10.9559V23.9544Z" fill="#0052B4"/>
6
+ <path d="M23.586 8.86955C22.209 3.76036 17.5437 0 11.9994 0C11.6478 0 11.2999 0.0160312 10.9559 0.0456562V8.86955H23.586Z" fill="#0052B4"/>
7
+ <path d="M4.69523 2.47977C2.63751 4.06087 1.10728 6.29366 0.412964 8.86987H4.69523V2.47977Z" fill="#0052B4"/>
8
+ <path d="M23.8987 10.4343H9.3916H9.39156V0.284721C8.28259 0.530628 7.23123 0.929206 6.2611 1.45857V10.4342H0.101822C0.0350254 10.9466 0.000244141 11.469 0.000244141 11.9995C0.000244141 12.53 0.0350254 13.0523 0.101822 13.5647H6.26106H6.2611V22.5404C7.23123 23.0697 8.28259 23.4683 9.39156 23.7142V13.5648V13.5647H23.8987C23.9654 13.0523 24.0002 12.53 24.0002 11.9995C24.0002 11.469 23.9654 10.9466 23.8987 10.4343Z" fill="#D80027"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_2087_3987">
12
+ <rect width="24" height="24" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,14 @@
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_4089)">
3
+ <path d="M23.9996 12C23.9996 10.5322 23.7356 9.12608 23.2532 7.82615L11.9996 7.30438L0.746024 7.8261C0.263681 9.12608 -0.000366211 10.5322 -0.000366211 12C-0.000366211 13.4679 0.263681 14.874 0.746024 16.1739L11.9996 16.6957L23.2532 16.174C23.7356 14.874 23.9996 13.4679 23.9996 12Z" fill="#D80027"/>
4
+ <path d="M12.0003 23.9995C17.1599 23.9995 21.5584 20.743 23.2539 16.1734H0.746704C2.44222 20.743 6.84074 23.9995 12.0003 23.9995Z" fill="#6DA544"/>
5
+ <path d="M0.746704 7.82519H23.254C21.5584 3.25558 17.1599 -0.000915527 12.0003 -0.000915527C6.84074 -0.000915527 2.44222 3.25558 0.746704 7.82519Z" fill="#338AF3"/>
6
+ <path d="M12.2606 15.3911C10.3876 15.3911 8.86927 13.8727 8.86927 11.9997C8.86927 10.1268 10.3876 8.60843 12.2606 8.60843C12.8445 8.60843 13.3941 8.75609 13.8738 9.01606C13.1212 8.28007 12.092 7.82581 10.9562 7.82581C8.65102 7.82581 6.78235 9.69452 6.78235 11.9997C6.78235 14.3049 8.65107 16.1736 10.9562 16.1736C12.092 16.1736 13.1212 15.7193 13.8738 14.9833C13.3941 15.2434 12.8445 15.3911 12.2606 15.3911Z" fill="#F0F0F0"/>
7
+ <path d="M14.8696 9.65082L15.3188 10.9141L16.5297 10.3384L15.9541 11.5494L17.2174 11.9986L15.9541 12.4479L16.5297 13.6589L15.3188 13.0831L14.8696 14.3465L14.4204 13.0831L13.2094 13.6589L13.7851 12.4479L12.5217 11.9986L13.7851 11.5494L13.2094 10.3384L14.4204 10.9141L14.8696 9.65082Z" fill="#F0F0F0"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_2087_4089">
11
+ <rect width="24" height="24" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,13 @@
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_4264)">
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.9995 -0.000701904C7.74468 -0.000701904 4.00734 2.21381 1.87659 5.553L18.1497 22.3047C21.6532 20.2093 23.9995 16.3785 23.9995 11.9993C23.9995 5.37192 18.6269 -0.000701904 11.9995 -0.000701904Z" fill="#FFDA44"/>
5
+ <path d="M24.0001 11.9991C24.0001 8.88559 22.8142 6.04928 20.8696 3.91656V20.0817C22.8142 17.949 24.0001 15.1127 24.0001 11.9991Z" fill="#0052B4"/>
6
+ <path d="M14.9905 22.5869L16.2474 22.5861L16.6352 21.3904L17.0243 22.5857L17.6548 22.5853C18.0414 22.3783 18.4153 22.1509 18.7751 21.9042L2.09516 5.22433C1.82029 5.62539 1.5696 6.04417 1.34418 6.47824L1.4924 6.93349L2.74935 6.93269L1.73291 7.67214L2.12207 8.86741L1.10469 8.12922L0.497897 8.5706C0.174413 9.65697 0.000366211 10.8077 0.000366211 11.9991C0.000366211 18.6265 5.37299 23.9991 12.0004 23.9991C13.4016 23.9991 14.7464 23.7586 15.9965 23.317L14.9905 22.5869ZM2.67688 11.4774L3.06454 10.2817L2.04726 9.54344L3.30421 9.54264L3.69191 8.34691L4.08107 9.54218L5.33802 9.54138L4.32154 10.2808L4.71069 11.4761L3.69332 10.7379L2.67688 11.4774ZM5.26555 14.0861L5.65321 12.8904L4.63593 12.1521L5.89288 12.1513L6.28058 10.9556L6.66974 12.1509L7.92669 12.1501L6.91026 12.8895L7.29941 14.0848L6.28204 13.3466L5.26555 14.0861ZM7.85418 16.6948L8.24183 15.4991L7.22455 14.7608L8.48151 14.76L8.86921 13.5643L9.25837 14.7596L10.5153 14.7588L9.49888 15.4982L9.88804 16.6935L8.87066 15.9552L7.85418 16.6948ZM11.4593 18.564L10.4428 19.3035L10.8305 18.1078L9.81318 17.3695L11.0701 17.3687L11.4579 16.173L11.847 17.3682L13.104 17.3674L12.0876 18.1069L12.4767 19.3022L11.4593 18.564ZM13.0315 21.9122L13.4191 20.7165L12.4018 19.9782L13.6588 19.9774L14.0465 18.7817L14.4357 19.9769L15.6926 19.9761L14.6762 20.7156L15.0653 21.9108L14.048 21.1726L13.0315 21.9122Z" fill="#0052B4"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2087_4264">
10
+ <rect width="24" height="24" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,13 @@
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_4108)">
3
+ <path d="M17.2173 1.1909C15.6396 0.428058 13.8697 0.000183105 11.9999 0.000183105C10.13 0.000183105 8.36012 0.428058 6.7825 1.1909L5.73901 12.0002L6.7825 22.8095C8.36012 23.5723 10.13 24.0002 11.9999 24.0002C13.8697 24.0002 15.6396 23.5723 17.2173 22.8095L18.2607 12.0002L17.2173 1.1909Z" fill="#FFDA44"/>
4
+ <path d="M6.78275 1.19128C2.76884 3.13219 0.00012207 7.24261 0.00012207 12.0001C0.00012207 16.7577 2.76884 20.8681 6.78275 22.809V1.19128Z" fill="#0052B4"/>
5
+ <path d="M17.2177 1.19171V22.8094C21.2316 20.8685 24.0003 16.7581 24.0003 12.0006C24.0003 7.24309 21.2316 3.13262 17.2177 1.19171Z" fill="#0052B4"/>
6
+ <path d="M15.6522 7.30337L16.3521 7.65334L15.6522 7.30337L14.9521 6.9534C14.9099 7.03783 13.9959 8.8975 13.8466 11.7382H12.7826V7.30337L12 6.25989L11.2174 7.30337V11.7382H10.1533C10.004 8.8975 9.09003 7.03783 9.0478 6.9534L7.64783 7.65339C7.65748 7.67261 8.60872 9.60878 8.60872 12.5208V13.3034H11.2174V17.7382H12.7826V13.3034H15.3913V12.5207C15.3913 11.0152 15.6518 9.77378 15.8704 8.99744C16.1086 8.15087 16.3506 7.65648 16.353 7.65156L15.6522 7.30337Z" fill="black"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_2087_4108">
10
+ <rect width="24" height="24" fill="white"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,11 @@
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_4105)">
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="M9.39133 17.2174C12.2728 17.2174 14.6087 14.8815 14.6087 12C14.6087 9.11855 12.2728 6.78265 9.39133 6.78265C6.50985 6.78265 4.17395 9.11855 4.17395 12C4.17395 14.8815 6.50985 17.2174 9.39133 17.2174Z" fill="#D80027"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_2087_4105">
8
+ <rect width="24" height="24" fill="white"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>