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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. package/css/capsule-core.css +0 -12
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/{p-0cab90fa.entry.js → p-68c73705.entry.js} +2 -2
  8. package/dist/capsule/{p-193ac141.entry.js → p-91412151.entry.js} +2 -2
  9. package/dist/capsule/p-cacdef26.entry.js +29 -0
  10. package/dist/capsule/p-cacdef26.entry.js.map +1 -0
  11. package/dist/capsule/p-f604b591.entry.js +2 -0
  12. package/dist/cjs/capsule.cjs.js +1 -1
  13. package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_17.cjs.entry.js} +45 -4106
  14. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
  16. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  17. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  18. package/dist/cjs/index-3fccb5b4.js +2 -2
  19. package/dist/cjs/index.cjs.js +8 -28
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/assets/icons/decent-brand.svg +3 -0
  23. package/dist/collection/assets/icons/decent.svg +3 -0
  24. package/dist/collection/assets/icons/index.js +6 -236
  25. package/dist/collection/assets/icons/index.js.map +1 -1
  26. package/dist/collection/assets/icons/lightning.svg +3 -0
  27. package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
  28. package/dist/collection/assets/icons/ramp-network.svg +3 -0
  29. package/dist/collection/collection-manifest.json +0 -1
  30. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  31. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  32. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  33. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  34. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  35. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  36. package/dist/collection/components/cpsl-modal/cpsl-modal.js +4 -2
  37. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  38. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  39. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  40. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  41. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  42. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  43. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  44. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  45. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  46. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -101
  47. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -110
  48. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  49. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  50. package/dist/collection/index.js +1 -1
  51. package/dist/collection/index.js.map +1 -1
  52. package/dist/collection/interface.js.map +1 -1
  53. package/dist/collection/utils/theme/generateFont.js +4 -25
  54. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  55. package/dist/collection/utils/theme/generateTheme.js +3 -2
  56. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  57. package/dist/esm/capsule.js +1 -1
  58. package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_17.entry.js} +46 -4106
  59. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  60. package/dist/esm/cpsl-grid.entry.js +2 -2
  61. package/dist/esm/cpsl-info-box.entry.js +1 -1
  62. package/dist/esm/cpsl-row.entry.js +1 -1
  63. package/dist/esm/index-f00e090c.js +2 -2
  64. package/dist/esm/index.js +8 -28
  65. package/dist/esm/index.js.map +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/types/assets/icons/index.d.ts +5 -235
  68. package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
  69. package/dist/types/components.d.ts +0 -53
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/interface.d.ts +0 -15
  72. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  73. package/dist/types/utils/theme/generateTheme.d.ts +2 -1
  74. package/package.json +3 -2
  75. package/dist/capsule/p-0ff96d5e.entry.js +0 -29
  76. package/dist/capsule/p-0ff96d5e.entry.js.map +0 -1
  77. package/dist/capsule/p-cb8dc0a4.entry.js +0 -2
  78. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
  79. package/dist/collection/assets/icons/AD.svg +0 -15
  80. package/dist/collection/assets/icons/AE.svg +0 -13
  81. package/dist/collection/assets/icons/AF.svg +0 -14
  82. package/dist/collection/assets/icons/AG.svg +0 -15
  83. package/dist/collection/assets/icons/AI.svg +0 -19
  84. package/dist/collection/assets/icons/AL.svg +0 -11
  85. package/dist/collection/assets/icons/AM.svg +0 -12
  86. package/dist/collection/assets/icons/AO.svg +0 -14
  87. package/dist/collection/assets/icons/AR.svg +0 -13
  88. package/dist/collection/assets/icons/AS.svg +0 -15
  89. package/dist/collection/assets/icons/AT.svg +0 -12
  90. package/dist/collection/assets/icons/AU.svg +0 -20
  91. package/dist/collection/assets/icons/AW.svg +0 -15
  92. package/dist/collection/assets/icons/AX.svg +0 -15
  93. package/dist/collection/assets/icons/AZ.svg +0 -14
  94. package/dist/collection/assets/icons/BA.svg +0 -13
  95. package/dist/collection/assets/icons/BB.svg +0 -13
  96. package/dist/collection/assets/icons/BD.svg +0 -11
  97. package/dist/collection/assets/icons/BE.svg +0 -12
  98. package/dist/collection/assets/icons/BF.svg +0 -12
  99. package/dist/collection/assets/icons/BG.svg +0 -12
  100. package/dist/collection/assets/icons/BH.svg +0 -11
  101. package/dist/collection/assets/icons/BI.svg +0 -18
  102. package/dist/collection/assets/icons/BJ.svg +0 -12
  103. package/dist/collection/assets/icons/BL.svg +0 -16
  104. package/dist/collection/assets/icons/BM.svg +0 -20
  105. package/dist/collection/assets/icons/BN.svg +0 -19
  106. package/dist/collection/assets/icons/BO.svg +0 -12
  107. package/dist/collection/assets/icons/BQ.svg +0 -14
  108. package/dist/collection/assets/icons/BQ2.svg +0 -20
  109. package/dist/collection/assets/icons/BQ3.svg +0 -15
  110. package/dist/collection/assets/icons/BR.svg +0 -14
  111. package/dist/collection/assets/icons/BS.svg +0 -13
  112. package/dist/collection/assets/icons/BT.svg +0 -12
  113. package/dist/collection/assets/icons/BW.svg +0 -13
  114. package/dist/collection/assets/icons/BY.svg +0 -18
  115. package/dist/collection/assets/icons/BZ.svg +0 -17
  116. package/dist/collection/assets/icons/CA.svg +0 -13
  117. package/dist/collection/assets/icons/CC.svg +0 -19
  118. package/dist/collection/assets/icons/CD.svg +0 -12
  119. package/dist/collection/assets/icons/CD2.svg +0 -14
  120. package/dist/collection/assets/icons/CF.svg +0 -20
  121. package/dist/collection/assets/icons/CH.svg +0 -11
  122. package/dist/collection/assets/icons/CK.svg +0 -22
  123. package/dist/collection/assets/icons/CL.svg +0 -13
  124. package/dist/collection/assets/icons/CM.svg +0 -13
  125. package/dist/collection/assets/icons/CN.svg +0 -15
  126. package/dist/collection/assets/icons/CO.svg +0 -12
  127. package/dist/collection/assets/icons/CR.svg +0 -13
  128. package/dist/collection/assets/icons/CU.svg +0 -15
  129. package/dist/collection/assets/icons/CW.svg +0 -14
  130. package/dist/collection/assets/icons/CX.svg +0 -19
  131. package/dist/collection/assets/icons/CY.svg +0 -12
  132. package/dist/collection/assets/icons/CZ.svg +0 -12
  133. package/dist/collection/assets/icons/DE.svg +0 -12
  134. package/dist/collection/assets/icons/DJ.svg +0 -13
  135. package/dist/collection/assets/icons/DK.svg +0 -14
  136. package/dist/collection/assets/icons/DM.svg +0 -34
  137. package/dist/collection/assets/icons/DO.svg +0 -17
  138. package/dist/collection/assets/icons/DS.svg +0 -13
  139. package/dist/collection/assets/icons/DZ.svg +0 -13
  140. package/dist/collection/assets/icons/EC.svg +0 -15
  141. package/dist/collection/assets/icons/EE.svg +0 -12
  142. package/dist/collection/assets/icons/EG.svg +0 -13
  143. package/dist/collection/assets/icons/EH.svg +0 -15
  144. package/dist/collection/assets/icons/ER.svg +0 -13
  145. package/dist/collection/assets/icons/ES.svg +0 -12
  146. package/dist/collection/assets/icons/ET.svg +0 -15
  147. package/dist/collection/assets/icons/FI.svg +0 -11
  148. package/dist/collection/assets/icons/FJ.svg +0 -18
  149. package/dist/collection/assets/icons/FK.svg +0 -18
  150. package/dist/collection/assets/icons/FM.svg +0 -14
  151. package/dist/collection/assets/icons/FO.svg +0 -12
  152. package/dist/collection/assets/icons/FR.svg +0 -12
  153. package/dist/collection/assets/icons/GA.svg +0 -12
  154. package/dist/collection/assets/icons/GB-2.svg +0 -11
  155. package/dist/collection/assets/icons/GB.svg +0 -23
  156. package/dist/collection/assets/icons/GD.svg +0 -26
  157. package/dist/collection/assets/icons/GE.svg +0 -15
  158. package/dist/collection/assets/icons/GG.svg +0 -12
  159. package/dist/collection/assets/icons/GH.svg +0 -13
  160. package/dist/collection/assets/icons/GI.svg +0 -13
  161. package/dist/collection/assets/icons/GL.svg +0 -13
  162. package/dist/collection/assets/icons/GM.svg +0 -13
  163. package/dist/collection/assets/icons/GN.svg +0 -12
  164. package/dist/collection/assets/icons/GQ.svg +0 -16
  165. package/dist/collection/assets/icons/GR.svg +0 -15
  166. package/dist/collection/assets/icons/GT.svg +0 -14
  167. package/dist/collection/assets/icons/GU.svg +0 -18
  168. package/dist/collection/assets/icons/GW.svg +0 -14
  169. package/dist/collection/assets/icons/GY.svg +0 -15
  170. package/dist/collection/assets/icons/HK.svg +0 -15
  171. package/dist/collection/assets/icons/HN.svg +0 -17
  172. package/dist/collection/assets/icons/HR.svg +0 -31
  173. package/dist/collection/assets/icons/HT.svg +0 -17
  174. package/dist/collection/assets/icons/HU.svg +0 -12
  175. package/dist/collection/assets/icons/ID.svg +0 -11
  176. package/dist/collection/assets/icons/IE.svg +0 -12
  177. package/dist/collection/assets/icons/IL.svg +0 -13
  178. package/dist/collection/assets/icons/IM.svg +0 -11
  179. package/dist/collection/assets/icons/IN.svg +0 -15
  180. package/dist/collection/assets/icons/IO.svg +0 -29
  181. package/dist/collection/assets/icons/IQ.svg +0 -15
  182. package/dist/collection/assets/icons/IR.svg +0 -13
  183. package/dist/collection/assets/icons/IS.svg +0 -15
  184. package/dist/collection/assets/icons/IT.svg +0 -12
  185. package/dist/collection/assets/icons/JE.svg +0 -13
  186. package/dist/collection/assets/icons/JM.svg +0 -14
  187. package/dist/collection/assets/icons/JO.svg +0 -14
  188. package/dist/collection/assets/icons/JP.svg +0 -11
  189. package/dist/collection/assets/icons/KE.svg +0 -19
  190. package/dist/collection/assets/icons/KG.svg +0 -16
  191. package/dist/collection/assets/icons/KH.svg +0 -13
  192. package/dist/collection/assets/icons/KI.svg +0 -17
  193. package/dist/collection/assets/icons/KM.svg +0 -19
  194. package/dist/collection/assets/icons/KN.svg +0 -15
  195. package/dist/collection/assets/icons/KP.svg +0 -15
  196. package/dist/collection/assets/icons/KR.svg +0 -30
  197. package/dist/collection/assets/icons/KW.svg +0 -13
  198. package/dist/collection/assets/icons/KY.svg +0 -20
  199. package/dist/collection/assets/icons/KZ.svg +0 -13
  200. package/dist/collection/assets/icons/LA.svg +0 -13
  201. package/dist/collection/assets/icons/LB.svg +0 -13
  202. package/dist/collection/assets/icons/LC.svg +0 -13
  203. package/dist/collection/assets/icons/LI.svg +0 -12
  204. package/dist/collection/assets/icons/LK.svg +0 -14
  205. package/dist/collection/assets/icons/LR.svg +0 -23
  206. package/dist/collection/assets/icons/LS.svg +0 -13
  207. package/dist/collection/assets/icons/LT.svg +0 -12
  208. package/dist/collection/assets/icons/LU.svg +0 -12
  209. package/dist/collection/assets/icons/LV.svg +0 -12
  210. package/dist/collection/assets/icons/LY.svg +0 -14
  211. package/dist/collection/assets/icons/MA.svg +0 -11
  212. package/dist/collection/assets/icons/MC.svg +0 -11
  213. package/dist/collection/assets/icons/MD.svg +0 -15
  214. package/dist/collection/assets/icons/ME.svg +0 -15
  215. package/dist/collection/assets/icons/MG.svg +0 -12
  216. package/dist/collection/assets/icons/MH.svg +0 -13
  217. package/dist/collection/assets/icons/MK.svg +0 -20
  218. package/dist/collection/assets/icons/ML.svg +0 -12
  219. package/dist/collection/assets/icons/MM.svg +0 -13
  220. package/dist/collection/assets/icons/MN.svg +0 -19
  221. package/dist/collection/assets/icons/MO.svg +0 -18
  222. package/dist/collection/assets/icons/MP.svg +0 -14
  223. package/dist/collection/assets/icons/MQ.svg +0 -18
  224. package/dist/collection/assets/icons/MR.svg +0 -12
  225. package/dist/collection/assets/icons/MS.svg +0 -17
  226. package/dist/collection/assets/icons/MT.svg +0 -12
  227. package/dist/collection/assets/icons/MU.svg +0 -13
  228. package/dist/collection/assets/icons/MV.svg +0 -12
  229. package/dist/collection/assets/icons/MW.svg +0 -13
  230. package/dist/collection/assets/icons/MX.svg +0 -14
  231. package/dist/collection/assets/icons/MY.svg +0 -17
  232. package/dist/collection/assets/icons/MZ.svg +0 -17
  233. package/dist/collection/assets/icons/NA.svg +0 -14
  234. package/dist/collection/assets/icons/NE.svg +0 -13
  235. package/dist/collection/assets/icons/NF.svg +0 -13
  236. package/dist/collection/assets/icons/NG.svg +0 -12
  237. package/dist/collection/assets/icons/NI.svg +0 -16
  238. package/dist/collection/assets/icons/NL.svg +0 -12
  239. package/dist/collection/assets/icons/NO.svg +0 -15
  240. package/dist/collection/assets/icons/NP.svg +0 -16
  241. package/dist/collection/assets/icons/NR.svg +0 -14
  242. package/dist/collection/assets/icons/NU.svg +0 -20
  243. package/dist/collection/assets/icons/NZ.svg +0 -18
  244. package/dist/collection/assets/icons/OM.svg +0 -15
  245. package/dist/collection/assets/icons/PA.svg +0 -14
  246. package/dist/collection/assets/icons/PE.svg +0 -12
  247. package/dist/collection/assets/icons/PF.svg +0 -17
  248. package/dist/collection/assets/icons/PG.svg +0 -17
  249. package/dist/collection/assets/icons/PH.svg +0 -16
  250. package/dist/collection/assets/icons/PK.svg +0 -14
  251. package/dist/collection/assets/icons/PL.svg +0 -11
  252. package/dist/collection/assets/icons/PN.svg +0 -18
  253. package/dist/collection/assets/icons/PR.svg +0 -15
  254. package/dist/collection/assets/icons/PS.svg +0 -13
  255. package/dist/collection/assets/icons/PT.svg +0 -14
  256. package/dist/collection/assets/icons/PW.svg +0 -11
  257. package/dist/collection/assets/icons/PY.svg +0 -14
  258. package/dist/collection/assets/icons/QA.svg +0 -11
  259. package/dist/collection/assets/icons/RO.svg +0 -12
  260. package/dist/collection/assets/icons/RS.svg +0 -16
  261. package/dist/collection/assets/icons/RU.svg +0 -12
  262. package/dist/collection/assets/icons/RW.svg +0 -13
  263. package/dist/collection/assets/icons/SA.svg +0 -16
  264. package/dist/collection/assets/icons/SB.svg +0 -17
  265. package/dist/collection/assets/icons/SC.svg +0 -14
  266. package/dist/collection/assets/icons/SE.svg +0 -14
  267. package/dist/collection/assets/icons/SG.svg +0 -17
  268. package/dist/collection/assets/icons/SI.svg +0 -13
  269. package/dist/collection/assets/icons/SK.svg +0 -16
  270. package/dist/collection/assets/icons/SL.svg +0 -12
  271. package/dist/collection/assets/icons/SM.svg +0 -16
  272. package/dist/collection/assets/icons/SN.svg +0 -13
  273. package/dist/collection/assets/icons/SO.svg +0 -11
  274. package/dist/collection/assets/icons/SR.svg +0 -14
  275. package/dist/collection/assets/icons/SS.svg +0 -15
  276. package/dist/collection/assets/icons/ST.svg +0 -15
  277. package/dist/collection/assets/icons/SV.svg +0 -15
  278. package/dist/collection/assets/icons/SX.svg +0 -17
  279. package/dist/collection/assets/icons/SY.svg +0 -14
  280. package/dist/collection/assets/icons/SZ.svg +0 -21
  281. package/dist/collection/assets/icons/TC.svg +0 -19
  282. package/dist/collection/assets/icons/TD.svg +0 -12
  283. package/dist/collection/assets/icons/TG.svg +0 -15
  284. package/dist/collection/assets/icons/TH.svg +0 -13
  285. package/dist/collection/assets/icons/TJ.svg +0 -20
  286. package/dist/collection/assets/icons/TK.svg +0 -15
  287. package/dist/collection/assets/icons/TL.svg +0 -13
  288. package/dist/collection/assets/icons/TM.svg +0 -30
  289. package/dist/collection/assets/icons/TN.svg +0 -13
  290. package/dist/collection/assets/icons/TO.svg +0 -12
  291. package/dist/collection/assets/icons/TR.svg +0 -12
  292. package/dist/collection/assets/icons/TT.svg +0 -13
  293. package/dist/collection/assets/icons/TV.svg +0 -25
  294. package/dist/collection/assets/icons/TW.svg +0 -14
  295. package/dist/collection/assets/icons/TZ.svg +0 -13
  296. package/dist/collection/assets/icons/UA.svg +0 -11
  297. package/dist/collection/assets/icons/UG.svg +0 -16
  298. package/dist/collection/assets/icons/US.svg +0 -15
  299. package/dist/collection/assets/icons/UY.svg +0 -16
  300. package/dist/collection/assets/icons/UZ.svg +0 -27
  301. package/dist/collection/assets/icons/VC.svg +0 -15
  302. package/dist/collection/assets/icons/VE.svg +0 -20
  303. package/dist/collection/assets/icons/VG.svg +0 -24
  304. package/dist/collection/assets/icons/VI.svg +0 -18
  305. package/dist/collection/assets/icons/VN.svg +0 -11
  306. package/dist/collection/assets/icons/VU.svg +0 -32
  307. package/dist/collection/assets/icons/WS.svg +0 -16
  308. package/dist/collection/assets/icons/YE.svg +0 -12
  309. package/dist/collection/assets/icons/ZA.svg +0 -15
  310. package/dist/collection/assets/icons/ZM.svg +0 -14
  311. package/dist/collection/assets/icons/ZW.svg +0 -20
  312. package/dist/collection/assets/icons/chevron-up.svg +0 -3
  313. package/dist/collection/assets/icons/earth.svg +0 -11
  314. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +0 -88
  315. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +0 -118
  316. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +0 -1
  317. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  318. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  319. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  320. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  321. package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
  322. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +0 -26
  323. /package/dist/capsule/{p-0cab90fa.entry.js.map → p-68c73705.entry.js.map} +0 -0
  324. /package/dist/capsule/{p-193ac141.entry.js.map → p-91412151.entry.js.map} +0 -0
  325. /package/dist/capsule/{p-cb8dc0a4.entry.js.map → p-f604b591.entry.js.map} +0 -0
  326. /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -13,9 +13,9 @@ const CpslGrid = class {
13
13
  this.fixed = false;
14
14
  }
15
15
  render() {
16
- return (index.h(index.Host, { key: 'ad08de3e168770731291ad1fd2ddffcac4ca6145', class: {
16
+ return (index.h(index.Host, { key: '1d6d165e50e9a7c745bdd699d4123bf4d850d636', class: {
17
17
  'grid-fixed': this.fixed,
18
- } }, index.h("slot", { key: '0c93c6a07b6acfaa4bd50c6edabbae30e37ed09d' })));
18
+ } }, index.h("slot", { key: '11169a28e7cc3ef39b9632b6892750ddb6dbffc6' })));
19
19
  }
20
20
  };
21
21
  CpslGrid.style = CpslGridStyle0;
@@ -12,7 +12,7 @@ const CpslInfoBox = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: 'c3adc346763da83e631c71bbc4f1ce7aad99ba04' }, index.h("div", { key: 'c03ce70d8c94d42264216c1376d81f8601a45656', class: "info-box-container" }, index.h("slot", { key: '3ae35495b7371479d0ad8e731011fb8b06a2c0d9' }))));
15
+ return (index.h(index.Host, { key: '2d1427b7750adff77e1ca94cd34b89a22cc54c1a' }, index.h("div", { key: '6ec6eedc5ef2a2137723383e86676523b8fa4b60', class: "info-box-container" }, index.h("slot", { key: '11ba071134789bcbee7ffb5f650d4536906139f4' }))));
16
16
  }
17
17
  };
18
18
  CpslInfoBox.style = CpslInfoBoxStyle0;
@@ -12,7 +12,7 @@ const CpslRow = class {
12
12
  index.registerInstance(this, hostRef);
13
13
  }
14
14
  render() {
15
- return (index.h(index.Host, { key: '5f061d20ff017b612a4bada01c66992795cbabe1' }, index.h("slot", { key: 'ba35af68f6f00e8b12ff3c091935482beb10d27c' })));
15
+ return (index.h(index.Host, { key: '7b7158e94f4d805c1d67fc96588ef34151e76d5a' }, index.h("slot", { key: '987a473c46bb7c2be19a35dc54d5ebc2522d9e0a' })));
16
16
  }
17
17
  };
18
18
  CpslRow.style = CpslRowStyle0;
@@ -1884,10 +1884,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1884
1884
  }
1885
1885
  switch(bundleId) {
1886
1886
 
1887
- case 'cpsl-alert_18.cjs':
1887
+ case 'cpsl-alert_17.cjs':
1888
1888
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1889
1889
  /* webpackMode: "lazy" */
1890
- './cpsl-alert_18.cjs.entry.js')); }).then(processMod, consoleError);
1890
+ './cpsl-alert_17.cjs.entry.js')); }).then(processMod, consoleError);
1891
1891
  case 'cpsl-animation.cjs':
1892
1892
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1893
1893
  /* webpackMode: "lazy" */
@@ -60,32 +60,11 @@ const generateBorderRadii = ({ borderRadius }) => {
60
60
  document.documentElement.style.setProperty('--cpsl-border-radius-info-box', `${smallRadius}px`);
61
61
  };
62
62
 
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);
63
+ const generateFont = ({ font }) => {
64
+ if (!Boolean(font)) {
65
+ return;
80
66
  }
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
- });
67
+ document.documentElement.style.setProperty('--cpsl-default-font', font);
89
68
  };
90
69
 
91
70
  /**
@@ -350,13 +329,14 @@ const generatePalette = ({ foregroundColor, backgroundColor, customPalette }) =>
350
329
  return palette;
351
330
  };
352
331
 
353
- const generateTheme = ({ foregroundColor = constants.DEFAULT_THEME.foregroundColor, backgroundColor = constants.DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius, customFontSizes, }) => {
332
+ const generateTheme = ({ foregroundColor = constants.DEFAULT_THEME.foregroundColor, backgroundColor = constants.DEFAULT_THEME.backgroundColor, font, customPalette, borderRadius }) => {
354
333
  const palette = generatePalette({ foregroundColor, backgroundColor, customPalette });
355
- generateFont({ font, customFontSizes });
334
+ generateFont({ font });
356
335
  generateBorderRadii({ borderRadius });
357
336
  return palette.isDarkBackground;
358
337
  };
338
+ const generateTheme$1 = generateTheme;
359
339
 
360
- exports.generateTheme = generateTheme;
340
+ exports.generateTheme = generateTheme$1;
361
341
 
362
342
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"file":"index.cjs.js","mappings":";;;;;;AAEO,MAAM,mBAAmB,GAAG,CAAC,EAAE,YAAY,EAA+B;IAC/E,IA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,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}
1
+ {"file":"index.cjs.js","mappings":";;;;;;AAEO,MAAM,mBAAmB,GA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C,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}
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
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_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],"items":[16],"isOpen":[32],"selectedItem":[32]},null,{"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);
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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -0,0 +1,3 @@
1
+ <svg width="26" height="21" viewBox="0 0 26 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.778 2.78753C14.0232 2.78753 14.984 4.90478 15.5758 6.3203C15.9631 7.2468 16.7703 8.7695 17.7174 9.6841C18.9174 6.8477 19.7749 1e-05 20.9598 0C22.4868 1e-05 25.2514 4.71852 25.2514 10.4107C25.2514 16.1232 22.4888 20.8962 20.96 20.8962C19.7774 20.8962 18.9206 14.0677 17.7252 11.2048C16.773 12.1181 15.9607 13.6496 15.5717 14.58C14.98 15.9955 14.0191 18.1128 12.7739 18.1128C11.5287 18.1128 10.5679 15.9955 9.97612 14.58C9.54017 13.5372 8.57227 11.739 7.47171 10.9028C6.84001 11.4891 6.29866 12.5072 6.04207 13.121C5.65917 14.0369 5.03745 15.4069 4.23174 15.4069C3.42602 15.4069 2.8043 14.0369 2.4214 13.121C2.05134 12.2358 1.07371 10.5066 0.101214 10.4476C0.0674785 10.4496 0.0337325 10.4496 0 10.4476C0.0337143 10.4455 0.0674613 10.4455 0.101214 10.4476C1.07268 10.3887 2.03506 8.6625 2.40511 7.7773C2.78801 6.8614 3.40973 5.4914 4.21545 5.4914C5.02116 5.4914 5.64288 6.8614 6.02578 7.7773C6.28377 8.3944 6.82965 9.4203 7.4658 10.005C8.57048 9.1721 9.5429 7.3663 9.98018 6.3203C10.5719 4.90478 11.5328 2.78753 12.778 2.78753Z" fill="#9969FF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="26" height="21" viewBox="0 0 26 21" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.778 2.78753C14.0232 2.78753 14.984 4.90478 15.5758 6.3203C15.9631 7.2468 16.7703 8.7695 17.7174 9.6841C18.9174 6.8477 19.7749 1e-05 20.9598 0C22.4868 1e-05 25.2514 4.71852 25.2514 10.4107C25.2514 16.1232 22.4888 20.8962 20.96 20.8962C19.7774 20.8962 18.9206 14.0677 17.7252 11.2048C16.773 12.1181 15.9607 13.6496 15.5717 14.58C14.98 15.9955 14.0191 18.1128 12.7739 18.1128C11.5287 18.1128 10.5679 15.9955 9.97612 14.58C9.54017 13.5372 8.57227 11.739 7.47171 10.9028C6.84001 11.4891 6.29866 12.5072 6.04207 13.121C5.65917 14.0369 5.03745 15.4069 4.23174 15.4069C3.42602 15.4069 2.8043 14.0369 2.4214 13.121C2.05134 12.2358 1.07371 10.5066 0.101214 10.4476C0.0674785 10.4496 0.0337325 10.4496 0 10.4476C0.0337143 10.4455 0.0674613 10.4455 0.101214 10.4476C1.07268 10.3887 2.03506 8.6625 2.40511 7.7773C2.78801 6.8614 3.40973 5.4914 4.21545 5.4914C5.02116 5.4914 5.64288 6.8614 6.02578 7.7773C6.28377 8.3944 6.82965 9.4203 7.4658 10.005C8.57048 9.1721 9.5429 7.3663 9.98018 6.3203C10.5719 4.90478 11.5328 2.78753 12.778 2.78753Z" fill="currentColor"/>
3
+ </svg>
@@ -1,236 +1,3 @@
1
- import AD from "./AD.svg";
2
- import AE from "./AE.svg";
3
- import AF from "./AF.svg";
4
- import AG from "./AG.svg";
5
- import AI from "./AI.svg";
6
- import AL from "./AL.svg";
7
- import AM from "./AM.svg";
8
- import AO from "./AO.svg";
9
- import AR from "./AR.svg";
10
- import AS from "./AS.svg";
11
- import AT from "./AT.svg";
12
- import AU from "./AU.svg";
13
- import AW from "./AW.svg";
14
- import AX from "./AX.svg";
15
- import AZ from "./AZ.svg";
16
- import BA from "./BA.svg";
17
- import BB from "./BB.svg";
18
- import BD from "./BD.svg";
19
- import BE from "./BE.svg";
20
- import BF from "./BF.svg";
21
- import BG from "./BG.svg";
22
- import BH from "./BH.svg";
23
- import BI from "./BI.svg";
24
- import BJ from "./BJ.svg";
25
- import BL from "./BL.svg";
26
- import BM from "./BM.svg";
27
- import BN from "./BN.svg";
28
- import BO from "./BO.svg";
29
- import BQ from "./BQ.svg";
30
- import BQ2 from "./BQ2.svg";
31
- import BQ3 from "./BQ3.svg";
32
- import BR from "./BR.svg";
33
- import BS from "./BS.svg";
34
- import BT from "./BT.svg";
35
- import BW from "./BW.svg";
36
- import BY from "./BY.svg";
37
- import BZ from "./BZ.svg";
38
- import CA from "./CA.svg";
39
- import CC from "./CC.svg";
40
- import CD from "./CD.svg";
41
- import CD2 from "./CD2.svg";
42
- import CF from "./CF.svg";
43
- import CH from "./CH.svg";
44
- import CK from "./CK.svg";
45
- import CL from "./CL.svg";
46
- import CM from "./CM.svg";
47
- import CN from "./CN.svg";
48
- import CO from "./CO.svg";
49
- import CR from "./CR.svg";
50
- import CU from "./CU.svg";
51
- import CW from "./CW.svg";
52
- import CX from "./CX.svg";
53
- import CY from "./CY.svg";
54
- import CZ from "./CZ.svg";
55
- import DE from "./DE.svg";
56
- import DJ from "./DJ.svg";
57
- import DK from "./DK.svg";
58
- import DM from "./DM.svg";
59
- import DO from "./DO.svg";
60
- import DS from "./DS.svg";
61
- import DZ from "./DZ.svg";
62
- import EC from "./EC.svg";
63
- import EE from "./EE.svg";
64
- import EG from "./EG.svg";
65
- import EH from "./EH.svg";
66
- import ER from "./ER.svg";
67
- import ES from "./ES.svg";
68
- import ET from "./ET.svg";
69
- import FI from "./FI.svg";
70
- import FJ from "./FJ.svg";
71
- import FK from "./FK.svg";
72
- import FM from "./FM.svg";
73
- import FO from "./FO.svg";
74
- import FR from "./FR.svg";
75
- import GA from "./GA.svg";
76
- import GB2 from "./GB-2.svg";
77
- import GB from "./GB.svg";
78
- import GD from "./GD.svg";
79
- import GE from "./GE.svg";
80
- import GG from "./GG.svg";
81
- import GH from "./GH.svg";
82
- import GI from "./GI.svg";
83
- import GL from "./GL.svg";
84
- import GM from "./GM.svg";
85
- import GN from "./GN.svg";
86
- import GQ from "./GQ.svg";
87
- import GR from "./GR.svg";
88
- import GT from "./GT.svg";
89
- import GU from "./GU.svg";
90
- import GW from "./GW.svg";
91
- import GY from "./GY.svg";
92
- import HK from "./HK.svg";
93
- import HN from "./HN.svg";
94
- import HR from "./HR.svg";
95
- import HT from "./HT.svg";
96
- import HU from "./HU.svg";
97
- import ID from "./ID.svg";
98
- import IE from "./IE.svg";
99
- import IL from "./IL.svg";
100
- import IM from "./IM.svg";
101
- import IN from "./IN.svg";
102
- import IO from "./IO.svg";
103
- import IQ from "./IQ.svg";
104
- import IR from "./IR.svg";
105
- import IS from "./IS.svg";
106
- import IT from "./IT.svg";
107
- import JE from "./JE.svg";
108
- import JM from "./JM.svg";
109
- import JO from "./JO.svg";
110
- import JP from "./JP.svg";
111
- import KE from "./KE.svg";
112
- import KG from "./KG.svg";
113
- import KH from "./KH.svg";
114
- import KI from "./KI.svg";
115
- import KM from "./KM.svg";
116
- import KN from "./KN.svg";
117
- import KP from "./KP.svg";
118
- import KR from "./KR.svg";
119
- import KW from "./KW.svg";
120
- import KY from "./KY.svg";
121
- import KZ from "./KZ.svg";
122
- import LA from "./LA.svg";
123
- import LB from "./LB.svg";
124
- import LC from "./LC.svg";
125
- import LI from "./LI.svg";
126
- import LK from "./LK.svg";
127
- import LR from "./LR.svg";
128
- import LS from "./LS.svg";
129
- import LT from "./LT.svg";
130
- import LU from "./LU.svg";
131
- import LV from "./LV.svg";
132
- import LY from "./LY.svg";
133
- import MA from "./MA.svg";
134
- import MC from "./MC.svg";
135
- import MD from "./MD.svg";
136
- import ME from "./ME.svg";
137
- import MG from "./MG.svg";
138
- import MH from "./MH.svg";
139
- import MK from "./MK.svg";
140
- import ML from "./ML.svg";
141
- import MM from "./MM.svg";
142
- import MN from "./MN.svg";
143
- import MO from "./MO.svg";
144
- import MP from "./MP.svg";
145
- import MQ from "./MQ.svg";
146
- import MR from "./MR.svg";
147
- import MS from "./MS.svg";
148
- import MT from "./MT.svg";
149
- import MU from "./MU.svg";
150
- import MV from "./MV.svg";
151
- import MW from "./MW.svg";
152
- import MX from "./MX.svg";
153
- import MY from "./MY.svg";
154
- import MZ from "./MZ.svg";
155
- import NA from "./NA.svg";
156
- import NE from "./NE.svg";
157
- import NF from "./NF.svg";
158
- import NG from "./NG.svg";
159
- import NI from "./NI.svg";
160
- import NL from "./NL.svg";
161
- import NO from "./NO.svg";
162
- import NP from "./NP.svg";
163
- import NR from "./NR.svg";
164
- import NU from "./NU.svg";
165
- import NZ from "./NZ.svg";
166
- import OM from "./OM.svg";
167
- import PA from "./PA.svg";
168
- import PE from "./PE.svg";
169
- import PF from "./PF.svg";
170
- import PG from "./PG.svg";
171
- import PH from "./PH.svg";
172
- import PK from "./PK.svg";
173
- import PL from "./PL.svg";
174
- import PN from "./PN.svg";
175
- import PR from "./PR.svg";
176
- import PS from "./PS.svg";
177
- import PT from "./PT.svg";
178
- import PW from "./PW.svg";
179
- import PY from "./PY.svg";
180
- import QA from "./QA.svg";
181
- import RO from "./RO.svg";
182
- import RS from "./RS.svg";
183
- import RU from "./RU.svg";
184
- import RW from "./RW.svg";
185
- import SA from "./SA.svg";
186
- import SB from "./SB.svg";
187
- import SC from "./SC.svg";
188
- import SE from "./SE.svg";
189
- import SG from "./SG.svg";
190
- import SI from "./SI.svg";
191
- import SK from "./SK.svg";
192
- import SL from "./SL.svg";
193
- import SM from "./SM.svg";
194
- import SN from "./SN.svg";
195
- import SO from "./SO.svg";
196
- import SR from "./SR.svg";
197
- import SS from "./SS.svg";
198
- import ST from "./ST.svg";
199
- import SV from "./SV.svg";
200
- import SX from "./SX.svg";
201
- import SY from "./SY.svg";
202
- import SZ from "./SZ.svg";
203
- import TC from "./TC.svg";
204
- import TD from "./TD.svg";
205
- import TG from "./TG.svg";
206
- import TH from "./TH.svg";
207
- import TJ from "./TJ.svg";
208
- import TK from "./TK.svg";
209
- import TL from "./TL.svg";
210
- import TM from "./TM.svg";
211
- import TN from "./TN.svg";
212
- import TO from "./TO.svg";
213
- import TR from "./TR.svg";
214
- import TT from "./TT.svg";
215
- import TV from "./TV.svg";
216
- import TW from "./TW.svg";
217
- import TZ from "./TZ.svg";
218
- import UA from "./UA.svg";
219
- import UG from "./UG.svg";
220
- import US from "./US.svg";
221
- import UY from "./UY.svg";
222
- import UZ from "./UZ.svg";
223
- import VC from "./VC.svg";
224
- import VE from "./VE.svg";
225
- import VG from "./VG.svg";
226
- import VI from "./VI.svg";
227
- import VN from "./VN.svg";
228
- import VU from "./VU.svg";
229
- import WS from "./WS.svg";
230
- import YE from "./YE.svg";
231
- import ZA from "./ZA.svg";
232
- import ZM from "./ZM.svg";
233
- import ZW from "./ZW.svg";
234
1
  import AlertCircle from "./alert-circle.svg";
235
2
  import AngelListBrand from "./angel-list-brand.svg";
236
3
  import AngelList from "./angel-list.svg";
@@ -244,18 +11,18 @@ import CapsuleRingsDark from "./capsule-rings-dark.svg";
244
11
  import CapsuleRings from "./capsule-rings.svg";
245
12
  import Capsule from "./capsule.svg";
246
13
  import Check from "./check.svg";
247
- import ChevronUp from "./chevron-up.svg";
248
14
  import Clock from "./clock.svg";
249
15
  import Close from "./close.svg";
250
16
  import ClubhouseBrand from "./clubhouse-brand.svg";
251
17
  import Clubhouse from "./clubhouse.svg";
252
18
  import Copy from "./copy.svg";
19
+ import DecentBrand from "./decent-brand.svg";
20
+ import Decent from "./decent.svg";
253
21
  import DiscordBrand from "./discord-brand.svg";
254
22
  import Discord from "./discord.svg";
255
23
  import DownloadCloud from "./download-cloud.svg";
256
24
  import DribbbleBrand from "./dribbble-brand.svg";
257
25
  import Dribbble from "./dribbble.svg";
258
- import Earth from "./earth.svg";
259
26
  import EyeOff from "./eye-off.svg";
260
27
  import Eye from "./eye.svg";
261
28
  import FacebookBrand from "./facebook-brand.svg";
@@ -276,6 +43,7 @@ import InfoCircle from "./info-circle.svg";
276
43
  import InstagramBrand from "./instagram-brand.svg";
277
44
  import Instagram from "./instagram.svg";
278
45
  import Key from "./key.svg";
46
+ import Lightning from "./lightning.svg";
279
47
  import LinkedinBrand from "./linkedin-brand.svg";
280
48
  import Linkedin from "./linkedin.svg";
281
49
  import Mail from "./mail.svg";
@@ -284,6 +52,8 @@ import Phone from "./phone.svg";
284
52
  import PintrestBrand from "./pintrest-brand.svg";
285
53
  import Pintrest from "./pintrest.svg";
286
54
  import PlusCircle from "./plus-circle.svg";
55
+ import RampNetworkBrand from "./ramp-network-brand.svg";
56
+ import RampNetwork from "./ramp-network.svg";
287
57
  import RedditBrand from "./reddit-brand.svg";
288
58
  import Reddit from "./reddit.svg";
289
59
  import SignalBrand from "./signal-brand.svg";
@@ -301,5 +71,5 @@ import Twitter from "./twitter.svg";
301
71
  import Wallet from "./wallet.svg";
302
72
  import YoutubeBrand from "./youtube-brand.svg";
303
73
  import Youtube from "./youtube.svg";
304
- export const Icons = { AD: AD, AE: AE, AF: AF, AG: AG, AI: AI, AL: AL, AM: AM, AO: AO, AR: AR, AS: AS, AT: AT, AU: AU, AW: AW, AX: AX, AZ: AZ, BA: BA, BB: BB, BD: BD, BE: BE, BF: BF, BG: BG, BH: BH, BI: BI, BJ: BJ, BL: BL, BM: BM, BN: BN, BO: BO, BQ: BQ, BQ2: BQ2, BQ3: BQ3, BR: BR, BS: BS, BT: BT, BW: BW, BY: BY, BZ: BZ, CA: CA, CC: CC, CD: CD, CD2: CD2, CF: CF, CH: CH, CK: CK, CL: CL, CM: CM, CN: CN, CO: CO, CR: CR, CU: CU, CW: CW, CX: CX, CY: CY, CZ: CZ, DE: DE, DJ: DJ, DK: DK, DM: DM, DO: DO, DS: DS, DZ: DZ, EC: EC, EE: EE, EG: EG, EH: EH, ER: ER, ES: ES, ET: ET, FI: FI, FJ: FJ, FK: FK, FM: FM, FO: FO, FR: FR, GA: GA, GB2: GB2, GB: GB, GD: GD, GE: GE, GG: GG, GH: GH, GI: GI, GL: GL, GM: GM, GN: GN, GQ: GQ, GR: GR, GT: GT, GU: GU, GW: GW, GY: GY, HK: HK, HN: HN, HR: HR, HT: HT, HU: HU, ID: ID, IE: IE, IL: IL, IM: IM, IN: IN, IO: IO, IQ: IQ, IR: IR, IS: IS, IT: IT, JE: JE, JM: JM, JO: JO, JP: JP, KE: KE, KG: KG, KH: KH, KI: KI, KM: KM, KN: KN, KP: KP, KR: KR, KW: KW, KY: KY, KZ: KZ, LA: LA, LB: LB, LC: LC, LI: LI, LK: LK, LR: LR, LS: LS, LT: LT, LU: LU, LV: LV, LY: LY, MA: MA, MC: MC, MD: MD, ME: ME, MG: MG, MH: MH, MK: MK, ML: ML, MM: MM, MN: MN, MO: MO, MP: MP, MQ: MQ, MR: MR, MS: MS, MT: MT, MU: MU, MV: MV, MW: MW, MX: MX, MY: MY, MZ: MZ, NA: NA, NE: NE, NF: NF, NG: NG, NI: NI, NL: NL, NO: NO, NP: NP, NR: NR, NU: NU, NZ: NZ, OM: OM, PA: PA, PE: PE, PF: PF, PG: PG, PH: PH, PK: PK, PL: PL, PN: PN, PR: PR, PS: PS, PT: PT, PW: PW, PY: PY, QA: QA, RO: RO, RS: RS, RU: RU, RW: RW, SA: SA, SB: SB, SC: SC, SE: SE, SG: SG, SI: SI, SK: SK, SL: SL, SM: SM, SN: SN, SO: SO, SR: SR, SS: SS, ST: ST, SV: SV, SX: SX, SY: SY, SZ: SZ, TC: TC, TD: TD, TG: TG, TH: TH, TJ: TJ, TK: TK, TL: TL, TM: TM, TN: TN, TO: TO, TR: TR, TT: TT, TV: TV, TW: TW, TZ: TZ, UA: UA, UG: UG, US: US, UY: UY, UZ: UZ, VC: VC, VE: VE, VG: VG, VI: VI, VN: VN, VU: VU, WS: WS, YE: YE, ZA: ZA, ZM: ZM, ZW: ZW, alertCircle: AlertCircle, angelListBrand: AngelListBrand, angelList: AngelList, appleBrand: AppleBrand, apple: Apple, arrowNarrow: ArrowNarrow, arrow: Arrow, backupKit: BackupKit, capsuleLogo: CapsuleLogo, capsuleRingsDark: CapsuleRingsDark, capsuleRings: CapsuleRings, capsule: Capsule, check: Check, chevronUp: ChevronUp, clock: Clock, close: Close, clubhouseBrand: ClubhouseBrand, clubhouse: Clubhouse, copy: Copy, discordBrand: DiscordBrand, discord: Discord, downloadCloud: DownloadCloud, dribbbleBrand: DribbbleBrand, dribbble: Dribbble, earth: Earth, eyeOff: EyeOff, eye: Eye, facebookBrand: FacebookBrand, facebook: Facebook, figmaBrand: FigmaBrand, figma: Figma, githubBrand: GithubBrand, github: Github, googleBrand: GoogleBrand, google: Google, helpCircle: HelpCircle, heroEmail: HeroEmail, heroLock: HeroLock, heroPasskey: HeroPasskey, heroPhone: HeroPhone, heroWallet: HeroWallet, infoCircle: InfoCircle, instagramBrand: InstagramBrand, instagram: Instagram, key: Key, linkedinBrand: LinkedinBrand, linkedin: Linkedin, mail: Mail, moreLoginOptions: MoreLoginOptions, phone: Phone, pintrestBrand: PintrestBrand, pintrest: Pintrest, plusCircle: PlusCircle, redditBrand: RedditBrand, reddit: Reddit, signalBrand: SignalBrand, signal: Signal, snapchatBrand: SnapchatBrand, snapchat: Snapchat, telegramBrand: TelegramBrand, telegram: Telegram, tikTokBrand: TikTokBrand, tikTok: TikTok, tumblrBrand: TumblrBrand, tumblr: Tumblr, twitterBrand: TwitterBrand, twitter: Twitter, wallet: Wallet, youtubeBrand: YoutubeBrand, youtube: Youtube, };
74
+ export const Icons = { alertCircle: AlertCircle, angelListBrand: AngelListBrand, angelList: AngelList, appleBrand: AppleBrand, apple: Apple, arrowNarrow: ArrowNarrow, arrow: Arrow, backupKit: BackupKit, capsuleLogo: CapsuleLogo, capsuleRingsDark: CapsuleRingsDark, capsuleRings: CapsuleRings, capsule: Capsule, check: Check, clock: Clock, close: Close, clubhouseBrand: ClubhouseBrand, clubhouse: Clubhouse, copy: Copy, decentBrand: DecentBrand, decent: Decent, discordBrand: DiscordBrand, discord: Discord, downloadCloud: DownloadCloud, dribbbleBrand: DribbbleBrand, dribbble: Dribbble, eyeOff: EyeOff, eye: Eye, facebookBrand: FacebookBrand, facebook: Facebook, figmaBrand: FigmaBrand, figma: Figma, githubBrand: GithubBrand, github: Github, googleBrand: GoogleBrand, google: Google, helpCircle: HelpCircle, heroEmail: HeroEmail, heroLock: HeroLock, heroPasskey: HeroPasskey, heroPhone: HeroPhone, heroWallet: HeroWallet, infoCircle: InfoCircle, instagramBrand: InstagramBrand, instagram: Instagram, key: Key, lightning: Lightning, linkedinBrand: LinkedinBrand, linkedin: Linkedin, mail: Mail, moreLoginOptions: MoreLoginOptions, phone: Phone, pintrestBrand: PintrestBrand, pintrest: Pintrest, plusCircle: PlusCircle, rampNetworkBrand: RampNetworkBrand, rampNetwork: RampNetwork, redditBrand: RedditBrand, reddit: Reddit, signalBrand: SignalBrand, signal: Signal, snapchatBrand: SnapchatBrand, snapchat: Snapchat, telegramBrand: TelegramBrand, telegram: Telegram, tikTokBrand: TikTokBrand, tikTok: TikTok, tumblrBrand: TumblrBrand, tumblr: Tumblr, twitterBrand: TwitterBrand, twitter: Twitter, wallet: Wallet, youtubeBrand: YoutubeBrand, youtube: Youtube, };
305
75
  //# sourceMappingURL=index.js.map