@usecapsule/core-components 3.1.3 → 3.2.0-dev.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (336) hide show
  1. package/dist/capsule/capsule.esm.js +1 -1
  2. package/dist/capsule/capsule.esm.js.map +1 -1
  3. package/dist/capsule/p-303e6e89.entry.js +29 -0
  4. package/dist/capsule/p-303e6e89.entry.js.map +1 -0
  5. package/dist/capsule/p-447d49b9.entry.js +2 -0
  6. package/dist/capsule/p-447d49b9.entry.js.map +1 -0
  7. package/dist/capsule/{p-02072c68.entry.js → p-452b9998.entry.js} +2 -2
  8. package/dist/capsule/p-6793ef7a.entry.js +2 -0
  9. package/dist/capsule/{p-41088cd4.entry.js → p-f6c74d69.entry.js} +2 -2
  10. package/dist/cjs/capsule.cjs.js +1 -1
  11. package/dist/cjs/{cpsl-alert_33.cjs.entry.js → cpsl-alert_34.cjs.entry.js} +2765 -2713
  12. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -0
  13. package/dist/cjs/cpsl-identicon.cjs.entry.js +62 -0
  14. package/dist/cjs/cpsl-identicon.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  16. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
  17. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  18. package/dist/cjs/index-528f7428.js +6 -2
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/assets/icons/double-arc.svg +13 -0
  21. package/dist/collection/assets/icons/index.js +236 -234
  22. package/dist/collection/assets/icons/index.js.map +1 -1
  23. package/dist/collection/assets/icons/single-arc.svg +11 -0
  24. package/dist/collection/assets/images/index.js +2 -0
  25. package/dist/collection/assets/images/index.js.map +1 -0
  26. package/dist/collection/collection-manifest.json +2 -0
  27. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  28. package/dist/collection/components/cpsl-button/cpsl-button.stories.js +50 -0
  29. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -0
  30. package/dist/collection/components/cpsl-hero/cpsl-hero.css +263 -0
  31. package/dist/collection/components/cpsl-hero/cpsl-hero.js +88 -0
  32. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -0
  33. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js +17 -0
  34. package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -0
  35. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js +29 -0
  36. package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +1 -0
  37. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +37 -0
  38. package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js.map +1 -0
  39. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  40. package/dist/collection/components/cpsl-identicon/cpsl-identicon.css +69 -0
  41. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +100 -0
  42. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js.map +1 -0
  43. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js +12 -0
  44. package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -0
  45. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js +29 -0
  46. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +1 -0
  47. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +37 -0
  48. package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js.map +1 -0
  49. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  50. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  51. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
  52. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  53. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  54. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  55. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  56. package/dist/collection/components/cpsl-popover/cpsl-popover.js +2 -2
  57. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  58. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  59. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  60. package/dist/collection/components/cpsl-select/cpsl-select.js +1 -1
  61. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  62. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  63. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  64. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  65. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  66. package/dist/collection/components/cpsl-table/cpsl-table.js +1 -1
  67. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  68. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
  69. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  70. package/dist/collection/interface.js.map +1 -1
  71. package/dist/esm/capsule.js +1 -1
  72. package/dist/esm/{cpsl-alert_33.entry.js → cpsl-alert_34.entry.js} +2765 -2714
  73. package/dist/esm/cpsl-alert_34.entry.js.map +1 -0
  74. package/dist/esm/cpsl-identicon.entry.js +58 -0
  75. package/dist/esm/cpsl-identicon.entry.js.map +1 -0
  76. package/dist/esm/cpsl-info-box.entry.js +1 -1
  77. package/dist/esm/cpsl-modal-v2.entry.js +1 -1
  78. package/dist/esm/cpsl-row.entry.js +1 -1
  79. package/dist/esm/index-b188f201.js +6 -2
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/scripts/buildAssets.js +90 -0
  82. package/dist/scripts/buildAssets.js.map +1 -0
  83. package/dist/types/Users/{taylorbosch/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts → briancorbin/Documents/Programming/Capsule/component-library/core/.stencil/scripts/buildAssets.d.ts} +3 -0
  84. package/dist/types/assets/icons/index.d.ts +91 -89
  85. package/dist/types/assets/images/index.d.ts +5 -0
  86. package/dist/types/components/cpsl-button/cpsl-button.stories.d.ts +15 -0
  87. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +6 -0
  88. package/dist/types/components/cpsl-hero/cpsl-hero.stories.d.ts +13 -0
  89. package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +5 -0
  90. package/dist/types/components/cpsl-identicon/cpsl-identicon.stories.d.ts +10 -0
  91. package/dist/types/components.d.ts +48 -0
  92. package/dist/types/interface.d.ts +2 -0
  93. package/package.json +20 -5
  94. package/dist/capsule/p-2c16694d.entry.js +0 -2
  95. package/dist/capsule/p-496b735b.entry.js +0 -29
  96. package/dist/capsule/p-496b735b.entry.js.map +0 -1
  97. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +0 -1
  98. package/dist/esm/cpsl-alert_33.entry.js.map +0 -1
  99. package/dist/scripts/buildIconLibrary.js +0 -33
  100. package/dist/scripts/buildIconLibrary.js.map +0 -1
  101. /package/dist/capsule/{p-02072c68.entry.js.map → p-452b9998.entry.js.map} +0 -0
  102. /package/dist/capsule/{p-2c16694d.entry.js.map → p-6793ef7a.entry.js.map} +0 -0
  103. /package/dist/capsule/{p-41088cd4.entry.js.map → p-f6c74d69.entry.js.map} +0 -0
  104. /package/dist/collection/assets/icons/{AD.svg → flags/AD.svg} +0 -0
  105. /package/dist/collection/assets/icons/{AE.svg → flags/AE.svg} +0 -0
  106. /package/dist/collection/assets/icons/{AF.svg → flags/AF.svg} +0 -0
  107. /package/dist/collection/assets/icons/{AG.svg → flags/AG.svg} +0 -0
  108. /package/dist/collection/assets/icons/{AI.svg → flags/AI.svg} +0 -0
  109. /package/dist/collection/assets/icons/{AL.svg → flags/AL.svg} +0 -0
  110. /package/dist/collection/assets/icons/{AM.svg → flags/AM.svg} +0 -0
  111. /package/dist/collection/assets/icons/{AO.svg → flags/AO.svg} +0 -0
  112. /package/dist/collection/assets/icons/{AR.svg → flags/AR.svg} +0 -0
  113. /package/dist/collection/assets/icons/{AS.svg → flags/AS.svg} +0 -0
  114. /package/dist/collection/assets/icons/{AT.svg → flags/AT.svg} +0 -0
  115. /package/dist/collection/assets/icons/{AU.svg → flags/AU.svg} +0 -0
  116. /package/dist/collection/assets/icons/{AW.svg → flags/AW.svg} +0 -0
  117. /package/dist/collection/assets/icons/{AX.svg → flags/AX.svg} +0 -0
  118. /package/dist/collection/assets/icons/{AZ.svg → flags/AZ.svg} +0 -0
  119. /package/dist/collection/assets/icons/{BA.svg → flags/BA.svg} +0 -0
  120. /package/dist/collection/assets/icons/{BB.svg → flags/BB.svg} +0 -0
  121. /package/dist/collection/assets/icons/{BD.svg → flags/BD.svg} +0 -0
  122. /package/dist/collection/assets/icons/{BE.svg → flags/BE.svg} +0 -0
  123. /package/dist/collection/assets/icons/{BF.svg → flags/BF.svg} +0 -0
  124. /package/dist/collection/assets/icons/{BG.svg → flags/BG.svg} +0 -0
  125. /package/dist/collection/assets/icons/{BH.svg → flags/BH.svg} +0 -0
  126. /package/dist/collection/assets/icons/{BI.svg → flags/BI.svg} +0 -0
  127. /package/dist/collection/assets/icons/{BJ.svg → flags/BJ.svg} +0 -0
  128. /package/dist/collection/assets/icons/{BL.svg → flags/BL.svg} +0 -0
  129. /package/dist/collection/assets/icons/{BM.svg → flags/BM.svg} +0 -0
  130. /package/dist/collection/assets/icons/{BN.svg → flags/BN.svg} +0 -0
  131. /package/dist/collection/assets/icons/{BO.svg → flags/BO.svg} +0 -0
  132. /package/dist/collection/assets/icons/{BQ.svg → flags/BQ.svg} +0 -0
  133. /package/dist/collection/assets/icons/{BQ2.svg → flags/BQ2.svg} +0 -0
  134. /package/dist/collection/assets/icons/{BQ3.svg → flags/BQ3.svg} +0 -0
  135. /package/dist/collection/assets/icons/{BR.svg → flags/BR.svg} +0 -0
  136. /package/dist/collection/assets/icons/{BS.svg → flags/BS.svg} +0 -0
  137. /package/dist/collection/assets/icons/{BT.svg → flags/BT.svg} +0 -0
  138. /package/dist/collection/assets/icons/{BW.svg → flags/BW.svg} +0 -0
  139. /package/dist/collection/assets/icons/{BY.svg → flags/BY.svg} +0 -0
  140. /package/dist/collection/assets/icons/{BZ.svg → flags/BZ.svg} +0 -0
  141. /package/dist/collection/assets/icons/{CA.svg → flags/CA.svg} +0 -0
  142. /package/dist/collection/assets/icons/{CC.svg → flags/CC.svg} +0 -0
  143. /package/dist/collection/assets/icons/{CD.svg → flags/CD.svg} +0 -0
  144. /package/dist/collection/assets/icons/{CD2.svg → flags/CD2.svg} +0 -0
  145. /package/dist/collection/assets/icons/{CF.svg → flags/CF.svg} +0 -0
  146. /package/dist/collection/assets/icons/{CH.svg → flags/CH.svg} +0 -0
  147. /package/dist/collection/assets/icons/{CK.svg → flags/CK.svg} +0 -0
  148. /package/dist/collection/assets/icons/{CL.svg → flags/CL.svg} +0 -0
  149. /package/dist/collection/assets/icons/{CM.svg → flags/CM.svg} +0 -0
  150. /package/dist/collection/assets/icons/{CN.svg → flags/CN.svg} +0 -0
  151. /package/dist/collection/assets/icons/{CO.svg → flags/CO.svg} +0 -0
  152. /package/dist/collection/assets/icons/{CR.svg → flags/CR.svg} +0 -0
  153. /package/dist/collection/assets/icons/{CU.svg → flags/CU.svg} +0 -0
  154. /package/dist/collection/assets/icons/{CW.svg → flags/CW.svg} +0 -0
  155. /package/dist/collection/assets/icons/{CX.svg → flags/CX.svg} +0 -0
  156. /package/dist/collection/assets/icons/{CY.svg → flags/CY.svg} +0 -0
  157. /package/dist/collection/assets/icons/{CZ.svg → flags/CZ.svg} +0 -0
  158. /package/dist/collection/assets/icons/{DE.svg → flags/DE.svg} +0 -0
  159. /package/dist/collection/assets/icons/{DJ.svg → flags/DJ.svg} +0 -0
  160. /package/dist/collection/assets/icons/{DK.svg → flags/DK.svg} +0 -0
  161. /package/dist/collection/assets/icons/{DM.svg → flags/DM.svg} +0 -0
  162. /package/dist/collection/assets/icons/{DO.svg → flags/DO.svg} +0 -0
  163. /package/dist/collection/assets/icons/{DS.svg → flags/DS.svg} +0 -0
  164. /package/dist/collection/assets/icons/{DZ.svg → flags/DZ.svg} +0 -0
  165. /package/dist/collection/assets/icons/{EC.svg → flags/EC.svg} +0 -0
  166. /package/dist/collection/assets/icons/{EE.svg → flags/EE.svg} +0 -0
  167. /package/dist/collection/assets/icons/{EG.svg → flags/EG.svg} +0 -0
  168. /package/dist/collection/assets/icons/{EH.svg → flags/EH.svg} +0 -0
  169. /package/dist/collection/assets/icons/{ER.svg → flags/ER.svg} +0 -0
  170. /package/dist/collection/assets/icons/{ES.svg → flags/ES.svg} +0 -0
  171. /package/dist/collection/assets/icons/{ET.svg → flags/ET.svg} +0 -0
  172. /package/dist/collection/assets/icons/{FI.svg → flags/FI.svg} +0 -0
  173. /package/dist/collection/assets/icons/{FJ.svg → flags/FJ.svg} +0 -0
  174. /package/dist/collection/assets/icons/{FK.svg → flags/FK.svg} +0 -0
  175. /package/dist/collection/assets/icons/{FM.svg → flags/FM.svg} +0 -0
  176. /package/dist/collection/assets/icons/{FO.svg → flags/FO.svg} +0 -0
  177. /package/dist/collection/assets/icons/{FR.svg → flags/FR.svg} +0 -0
  178. /package/dist/collection/assets/icons/{GA.svg → flags/GA.svg} +0 -0
  179. /package/dist/collection/assets/icons/{GB-2.svg → flags/GB-2.svg} +0 -0
  180. /package/dist/collection/assets/icons/{GB.svg → flags/GB.svg} +0 -0
  181. /package/dist/collection/assets/icons/{GD.svg → flags/GD.svg} +0 -0
  182. /package/dist/collection/assets/icons/{GE.svg → flags/GE.svg} +0 -0
  183. /package/dist/collection/assets/icons/{GG.svg → flags/GG.svg} +0 -0
  184. /package/dist/collection/assets/icons/{GH.svg → flags/GH.svg} +0 -0
  185. /package/dist/collection/assets/icons/{GI.svg → flags/GI.svg} +0 -0
  186. /package/dist/collection/assets/icons/{GL.svg → flags/GL.svg} +0 -0
  187. /package/dist/collection/assets/icons/{GM.svg → flags/GM.svg} +0 -0
  188. /package/dist/collection/assets/icons/{GN.svg → flags/GN.svg} +0 -0
  189. /package/dist/collection/assets/icons/{GQ.svg → flags/GQ.svg} +0 -0
  190. /package/dist/collection/assets/icons/{GR.svg → flags/GR.svg} +0 -0
  191. /package/dist/collection/assets/icons/{GT.svg → flags/GT.svg} +0 -0
  192. /package/dist/collection/assets/icons/{GU.svg → flags/GU.svg} +0 -0
  193. /package/dist/collection/assets/icons/{GW.svg → flags/GW.svg} +0 -0
  194. /package/dist/collection/assets/icons/{GY.svg → flags/GY.svg} +0 -0
  195. /package/dist/collection/assets/icons/{HK.svg → flags/HK.svg} +0 -0
  196. /package/dist/collection/assets/icons/{HN.svg → flags/HN.svg} +0 -0
  197. /package/dist/collection/assets/icons/{HR.svg → flags/HR.svg} +0 -0
  198. /package/dist/collection/assets/icons/{HT.svg → flags/HT.svg} +0 -0
  199. /package/dist/collection/assets/icons/{HU.svg → flags/HU.svg} +0 -0
  200. /package/dist/collection/assets/icons/{ID.svg → flags/ID.svg} +0 -0
  201. /package/dist/collection/assets/icons/{IE.svg → flags/IE.svg} +0 -0
  202. /package/dist/collection/assets/icons/{IL.svg → flags/IL.svg} +0 -0
  203. /package/dist/collection/assets/icons/{IM.svg → flags/IM.svg} +0 -0
  204. /package/dist/collection/assets/icons/{IN.svg → flags/IN.svg} +0 -0
  205. /package/dist/collection/assets/icons/{IO.svg → flags/IO.svg} +0 -0
  206. /package/dist/collection/assets/icons/{IQ.svg → flags/IQ.svg} +0 -0
  207. /package/dist/collection/assets/icons/{IR.svg → flags/IR.svg} +0 -0
  208. /package/dist/collection/assets/icons/{IS.svg → flags/IS.svg} +0 -0
  209. /package/dist/collection/assets/icons/{IT.svg → flags/IT.svg} +0 -0
  210. /package/dist/collection/assets/icons/{JE.svg → flags/JE.svg} +0 -0
  211. /package/dist/collection/assets/icons/{JM.svg → flags/JM.svg} +0 -0
  212. /package/dist/collection/assets/icons/{JO.svg → flags/JO.svg} +0 -0
  213. /package/dist/collection/assets/icons/{JP.svg → flags/JP.svg} +0 -0
  214. /package/dist/collection/assets/icons/{KE.svg → flags/KE.svg} +0 -0
  215. /package/dist/collection/assets/icons/{KG.svg → flags/KG.svg} +0 -0
  216. /package/dist/collection/assets/icons/{KH.svg → flags/KH.svg} +0 -0
  217. /package/dist/collection/assets/icons/{KI.svg → flags/KI.svg} +0 -0
  218. /package/dist/collection/assets/icons/{KM.svg → flags/KM.svg} +0 -0
  219. /package/dist/collection/assets/icons/{KN.svg → flags/KN.svg} +0 -0
  220. /package/dist/collection/assets/icons/{KP.svg → flags/KP.svg} +0 -0
  221. /package/dist/collection/assets/icons/{KR.svg → flags/KR.svg} +0 -0
  222. /package/dist/collection/assets/icons/{KW.svg → flags/KW.svg} +0 -0
  223. /package/dist/collection/assets/icons/{KY.svg → flags/KY.svg} +0 -0
  224. /package/dist/collection/assets/icons/{KZ.svg → flags/KZ.svg} +0 -0
  225. /package/dist/collection/assets/icons/{LA.svg → flags/LA.svg} +0 -0
  226. /package/dist/collection/assets/icons/{LB.svg → flags/LB.svg} +0 -0
  227. /package/dist/collection/assets/icons/{LC.svg → flags/LC.svg} +0 -0
  228. /package/dist/collection/assets/icons/{LI.svg → flags/LI.svg} +0 -0
  229. /package/dist/collection/assets/icons/{LK.svg → flags/LK.svg} +0 -0
  230. /package/dist/collection/assets/icons/{LR.svg → flags/LR.svg} +0 -0
  231. /package/dist/collection/assets/icons/{LS.svg → flags/LS.svg} +0 -0
  232. /package/dist/collection/assets/icons/{LT.svg → flags/LT.svg} +0 -0
  233. /package/dist/collection/assets/icons/{LU.svg → flags/LU.svg} +0 -0
  234. /package/dist/collection/assets/icons/{LV.svg → flags/LV.svg} +0 -0
  235. /package/dist/collection/assets/icons/{LY.svg → flags/LY.svg} +0 -0
  236. /package/dist/collection/assets/icons/{MA.svg → flags/MA.svg} +0 -0
  237. /package/dist/collection/assets/icons/{MC.svg → flags/MC.svg} +0 -0
  238. /package/dist/collection/assets/icons/{MD.svg → flags/MD.svg} +0 -0
  239. /package/dist/collection/assets/icons/{ME.svg → flags/ME.svg} +0 -0
  240. /package/dist/collection/assets/icons/{MG.svg → flags/MG.svg} +0 -0
  241. /package/dist/collection/assets/icons/{MH.svg → flags/MH.svg} +0 -0
  242. /package/dist/collection/assets/icons/{MK.svg → flags/MK.svg} +0 -0
  243. /package/dist/collection/assets/icons/{ML.svg → flags/ML.svg} +0 -0
  244. /package/dist/collection/assets/icons/{MM.svg → flags/MM.svg} +0 -0
  245. /package/dist/collection/assets/icons/{MN.svg → flags/MN.svg} +0 -0
  246. /package/dist/collection/assets/icons/{MO.svg → flags/MO.svg} +0 -0
  247. /package/dist/collection/assets/icons/{MP.svg → flags/MP.svg} +0 -0
  248. /package/dist/collection/assets/icons/{MQ.svg → flags/MQ.svg} +0 -0
  249. /package/dist/collection/assets/icons/{MR.svg → flags/MR.svg} +0 -0
  250. /package/dist/collection/assets/icons/{MS.svg → flags/MS.svg} +0 -0
  251. /package/dist/collection/assets/icons/{MT.svg → flags/MT.svg} +0 -0
  252. /package/dist/collection/assets/icons/{MU.svg → flags/MU.svg} +0 -0
  253. /package/dist/collection/assets/icons/{MV.svg → flags/MV.svg} +0 -0
  254. /package/dist/collection/assets/icons/{MW.svg → flags/MW.svg} +0 -0
  255. /package/dist/collection/assets/icons/{MX.svg → flags/MX.svg} +0 -0
  256. /package/dist/collection/assets/icons/{MY.svg → flags/MY.svg} +0 -0
  257. /package/dist/collection/assets/icons/{MZ.svg → flags/MZ.svg} +0 -0
  258. /package/dist/collection/assets/icons/{NA.svg → flags/NA.svg} +0 -0
  259. /package/dist/collection/assets/icons/{NE.svg → flags/NE.svg} +0 -0
  260. /package/dist/collection/assets/icons/{NF.svg → flags/NF.svg} +0 -0
  261. /package/dist/collection/assets/icons/{NG.svg → flags/NG.svg} +0 -0
  262. /package/dist/collection/assets/icons/{NI.svg → flags/NI.svg} +0 -0
  263. /package/dist/collection/assets/icons/{NL.svg → flags/NL.svg} +0 -0
  264. /package/dist/collection/assets/icons/{NO.svg → flags/NO.svg} +0 -0
  265. /package/dist/collection/assets/icons/{NP.svg → flags/NP.svg} +0 -0
  266. /package/dist/collection/assets/icons/{NR.svg → flags/NR.svg} +0 -0
  267. /package/dist/collection/assets/icons/{NU.svg → flags/NU.svg} +0 -0
  268. /package/dist/collection/assets/icons/{NZ.svg → flags/NZ.svg} +0 -0
  269. /package/dist/collection/assets/icons/{OM.svg → flags/OM.svg} +0 -0
  270. /package/dist/collection/assets/icons/{PA.svg → flags/PA.svg} +0 -0
  271. /package/dist/collection/assets/icons/{PE.svg → flags/PE.svg} +0 -0
  272. /package/dist/collection/assets/icons/{PF.svg → flags/PF.svg} +0 -0
  273. /package/dist/collection/assets/icons/{PG.svg → flags/PG.svg} +0 -0
  274. /package/dist/collection/assets/icons/{PH.svg → flags/PH.svg} +0 -0
  275. /package/dist/collection/assets/icons/{PK.svg → flags/PK.svg} +0 -0
  276. /package/dist/collection/assets/icons/{PL.svg → flags/PL.svg} +0 -0
  277. /package/dist/collection/assets/icons/{PN.svg → flags/PN.svg} +0 -0
  278. /package/dist/collection/assets/icons/{PR.svg → flags/PR.svg} +0 -0
  279. /package/dist/collection/assets/icons/{PS.svg → flags/PS.svg} +0 -0
  280. /package/dist/collection/assets/icons/{PT.svg → flags/PT.svg} +0 -0
  281. /package/dist/collection/assets/icons/{PW.svg → flags/PW.svg} +0 -0
  282. /package/dist/collection/assets/icons/{PY.svg → flags/PY.svg} +0 -0
  283. /package/dist/collection/assets/icons/{QA.svg → flags/QA.svg} +0 -0
  284. /package/dist/collection/assets/icons/{RO.svg → flags/RO.svg} +0 -0
  285. /package/dist/collection/assets/icons/{RS.svg → flags/RS.svg} +0 -0
  286. /package/dist/collection/assets/icons/{RU.svg → flags/RU.svg} +0 -0
  287. /package/dist/collection/assets/icons/{RW.svg → flags/RW.svg} +0 -0
  288. /package/dist/collection/assets/icons/{SA.svg → flags/SA.svg} +0 -0
  289. /package/dist/collection/assets/icons/{SB.svg → flags/SB.svg} +0 -0
  290. /package/dist/collection/assets/icons/{SC.svg → flags/SC.svg} +0 -0
  291. /package/dist/collection/assets/icons/{SE.svg → flags/SE.svg} +0 -0
  292. /package/dist/collection/assets/icons/{SG.svg → flags/SG.svg} +0 -0
  293. /package/dist/collection/assets/icons/{SI.svg → flags/SI.svg} +0 -0
  294. /package/dist/collection/assets/icons/{SK.svg → flags/SK.svg} +0 -0
  295. /package/dist/collection/assets/icons/{SL.svg → flags/SL.svg} +0 -0
  296. /package/dist/collection/assets/icons/{SM.svg → flags/SM.svg} +0 -0
  297. /package/dist/collection/assets/icons/{SN.svg → flags/SN.svg} +0 -0
  298. /package/dist/collection/assets/icons/{SO.svg → flags/SO.svg} +0 -0
  299. /package/dist/collection/assets/icons/{SR.svg → flags/SR.svg} +0 -0
  300. /package/dist/collection/assets/icons/{SS.svg → flags/SS.svg} +0 -0
  301. /package/dist/collection/assets/icons/{ST.svg → flags/ST.svg} +0 -0
  302. /package/dist/collection/assets/icons/{SV.svg → flags/SV.svg} +0 -0
  303. /package/dist/collection/assets/icons/{SX.svg → flags/SX.svg} +0 -0
  304. /package/dist/collection/assets/icons/{SY.svg → flags/SY.svg} +0 -0
  305. /package/dist/collection/assets/icons/{SZ.svg → flags/SZ.svg} +0 -0
  306. /package/dist/collection/assets/icons/{TC.svg → flags/TC.svg} +0 -0
  307. /package/dist/collection/assets/icons/{TD.svg → flags/TD.svg} +0 -0
  308. /package/dist/collection/assets/icons/{TG.svg → flags/TG.svg} +0 -0
  309. /package/dist/collection/assets/icons/{TH.svg → flags/TH.svg} +0 -0
  310. /package/dist/collection/assets/icons/{TJ.svg → flags/TJ.svg} +0 -0
  311. /package/dist/collection/assets/icons/{TK.svg → flags/TK.svg} +0 -0
  312. /package/dist/collection/assets/icons/{TL.svg → flags/TL.svg} +0 -0
  313. /package/dist/collection/assets/icons/{TM.svg → flags/TM.svg} +0 -0
  314. /package/dist/collection/assets/icons/{TN.svg → flags/TN.svg} +0 -0
  315. /package/dist/collection/assets/icons/{TO.svg → flags/TO.svg} +0 -0
  316. /package/dist/collection/assets/icons/{TR.svg → flags/TR.svg} +0 -0
  317. /package/dist/collection/assets/icons/{TT.svg → flags/TT.svg} +0 -0
  318. /package/dist/collection/assets/icons/{TV.svg → flags/TV.svg} +0 -0
  319. /package/dist/collection/assets/icons/{TW.svg → flags/TW.svg} +0 -0
  320. /package/dist/collection/assets/icons/{TZ.svg → flags/TZ.svg} +0 -0
  321. /package/dist/collection/assets/icons/{UA.svg → flags/UA.svg} +0 -0
  322. /package/dist/collection/assets/icons/{UG.svg → flags/UG.svg} +0 -0
  323. /package/dist/collection/assets/icons/{US.svg → flags/US.svg} +0 -0
  324. /package/dist/collection/assets/icons/{UY.svg → flags/UY.svg} +0 -0
  325. /package/dist/collection/assets/icons/{UZ.svg → flags/UZ.svg} +0 -0
  326. /package/dist/collection/assets/icons/{VC.svg → flags/VC.svg} +0 -0
  327. /package/dist/collection/assets/icons/{VE.svg → flags/VE.svg} +0 -0
  328. /package/dist/collection/assets/icons/{VG.svg → flags/VG.svg} +0 -0
  329. /package/dist/collection/assets/icons/{VI.svg → flags/VI.svg} +0 -0
  330. /package/dist/collection/assets/icons/{VN.svg → flags/VN.svg} +0 -0
  331. /package/dist/collection/assets/icons/{VU.svg → flags/VU.svg} +0 -0
  332. /package/dist/collection/assets/icons/{WS.svg → flags/WS.svg} +0 -0
  333. /package/dist/collection/assets/icons/{YE.svg → flags/YE.svg} +0 -0
  334. /package/dist/collection/assets/icons/{ZA.svg → flags/ZA.svg} +0 -0
  335. /package/dist/collection/assets/icons/{ZM.svg → flags/ZM.svg} +0 -0
  336. /package/dist/collection/assets/icons/{ZW.svg → flags/ZW.svg} +0 -0
@@ -0,0 +1,58 @@
1
+ import { r as registerInstance, h, H as Host } from './index-b188f201.js';
2
+
3
+ const cpslIdenticonCss = ":host{--identicon-background-red:linear-gradient(136deg, #FF4270 6.86%, #FF7C7C 93.78%);--identicon-background-orange:linear-gradient(136deg, #F45532 6.86%, #FF9B63 93.78%);--identicon-background-yellow:linear-gradient(136deg, #FFA756 6.86%, #FBFF47 93.78%);--identicon-background-green:linear-gradient(136deg, #0CAE60 6.86%, #7BFFD0 93.78%);--identicon-background-blue:linear-gradient(136deg, #476FFF 6.86%, #47C8FF 93.78%);--identicon-background-purple:linear-gradient(136deg, #9747FF 6.86%, #DA47FF 93.78%);display:block;width:62px;height:62px;aspect-ratio:1;border-radius:6px;position:relative;border:1px solid var(--cpsl-color-background-8)}:host>svg{fill:rgba(255, 255, 255, 0.6);position:absolute;width:35%}:host>svg.rotate90{transform:rotate(0.25turn)}:host>svg.rotate180{transform:rotate(0.5turn)}:host>svg.rotate270{transform:rotate(0.75turn)}:host>svg:nth-child(1){right:50%;bottom:50%}:host>svg:nth-child(2){left:50%;bottom:50%}:host>svg:nth-child(3){right:50%;top:50%}:host>svg:nth-child(4){left:50%;top:50%}:host(.red){background:var(--identicon-background-red)}:host(.orange){background:var(--identicon-background-orange)}:host(.green){background:var(--identicon-background-green)}:host(.yellow){background:var(--identicon-background-yellow)}:host(.blue){background:var(--identicon-background-blue)}:host(.purple){background:var(--identicon-background-purple)}";
4
+ const CpslIdenticonStyle0 = cpslIdenticonCss;
5
+
6
+ const SingleArc = (rotation) => (h("svg", { class: {
7
+ rotate90: rotation === 1,
8
+ rotate180: rotation === 2,
9
+ rotate270: rotation === 3,
10
+ }, viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_674_66)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" })), h("defs", null, h("clipPath", { id: "clip0_674_66" }, h("rect", { width: "12", height: "12" })))));
11
+ const DoubleArc = (rotation) => (h("svg", { class: {
12
+ rotate90: rotation === 1,
13
+ rotate180: rotation === 2,
14
+ rotate270: rotation === 3,
15
+ }, viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "clip-path": "url(#clip0_674_255)" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" }), h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" })), h("defs", null, h("clipPath", { id: "clip0_674_255" }, h("rect", { width: "12", height: "12" })))));
16
+ const CpslIdenticon = class {
17
+ constructor(hostRef) {
18
+ registerInstance(this, hostRef);
19
+ this.hash = undefined;
20
+ this.size = 40;
21
+ }
22
+ render() {
23
+ const [code, color] = stringToBinaryAndColor(this.hash);
24
+ const shapeA = ((code >> 2) & 1) !== 0;
25
+ const shapeB = ((code >> 3) & 1) !== 0;
26
+ const shapeC = ((code >> 4) & 1) !== 0;
27
+ const shapeD = ((code >> 5) & 1) !== 0;
28
+ const rotationA = (code >> 6) & 3;
29
+ const rotationB = (code >> 7) & 3;
30
+ const rotationC = (code >> 8) & 3;
31
+ const rotationD = (code >> 9) & 3;
32
+ const [shapes, rotations] = [
33
+ [shapeA, shapeB, shapeC, shapeD],
34
+ [rotationA, rotationB, rotationC, rotationD],
35
+ ];
36
+ return (h(Host, { key: 'beeaf99134ffc2d93ea5900ee38b26c32afc3a1c', class: {
37
+ red: color === 'red',
38
+ orange: color === 'orange',
39
+ yellow: color === 'yellow',
40
+ green: color === 'green',
41
+ blue: color === 'blue',
42
+ purple: color === 'purple',
43
+ } }, shapes.map((isDouble, index) => {
44
+ return isDouble ? DoubleArc(rotations[index]) : SingleArc(rotations[index]);
45
+ })));
46
+ }
47
+ };
48
+ const COLORS = ['red', 'orange', 'yellow', 'green', 'blue', 'purple'];
49
+ function stringToBinaryAndColor(hash) {
50
+ const code = (hash.charCodeAt(0) << 24) | (hash.charCodeAt(1) << 16) | (hash.charCodeAt(2) << 8) | hash.charCodeAt(3);
51
+ const color = COLORS[Math.abs(code % 6)];
52
+ return [code, color];
53
+ }
54
+ CpslIdenticon.style = CpslIdenticonStyle0;
55
+
56
+ export { CpslIdenticon as cpsl_identicon };
57
+
58
+ //# sourceMappingURL=cpsl-identicon.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"cpsl-identicon.entry.js","mappings":"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","names":[],"sources":["src/components/cpsl-identicon/cpsl-identicon.scss?tag=cpsl-identicon&encapsulation=shadow","src/components/cpsl-identicon/cpsl-identicon.tsx"],"sourcesContent":[":host {\n --identicon-background-red: linear-gradient(136deg, #FF4270 6.86%, #FF7C7C 93.78%);\n --identicon-background-orange: linear-gradient(136deg, #F45532 6.86%, #FF9B63 93.78%);\n --identicon-background-yellow: linear-gradient(136deg, #FFA756 6.86%, #FBFF47 93.78%);\n --identicon-background-green: linear-gradient(136deg, #0CAE60 6.86%, #7BFFD0 93.78%);\n --identicon-background-blue: linear-gradient(136deg, #476FFF 6.86%, #47C8FF 93.78%);\n --identicon-background-purple: linear-gradient(136deg, #9747FF 6.86%, #DA47FF 93.78%);\n\n display: block;\n width: 62px;\n height: 62px;\n aspect-ratio: 1;\n border-radius: 6px;\n position: relative;\n border: 1px solid var(--cpsl-color-background-8);\n\n & > svg {\n fill: rgba(255, 255, 255, 0.6);\n position: absolute;\n width: 35%;\n }\n\n & > svg.rotate90 {\n transform: rotate(.25turn);\n }\n\n & > svg.rotate180 {\n transform: rotate(.5turn);\n }\n\n & > svg.rotate270 {\n transform: rotate(.75turn);\n }\n\n & > svg:nth-child(1) {\n right: 50%;\n bottom: 50%;\n }\n\n & > svg:nth-child(2) {\n left: 50%;\n bottom: 50%;\n }\n\n & > svg:nth-child(3) {\n right: 50%;\n top: 50%;\n }\n\n & > svg:nth-child(4) {\n left: 50%;\n top: 50%;\n }\n}\n\n:host(.red) {\n background: var(--identicon-background-red);\n}\n\n:host(.orange) {\n background: var(--identicon-background-orange);\n}\n\n:host(.green) {\n background: var(--identicon-background-green);\n}\n\n:host(.yellow) {\n background: var(--identicon-background-yellow);\n}\n\n:host(.blue) {\n background: var(--identicon-background-blue);\n}\n\n:host(.purple) {\n background: var(--identicon-background-purple);\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\nconst SingleArc = (rotation: number) => (\n <svg\n class={{\n rotate90: rotation === 1,\n rotate180: rotation === 2,\n rotate270: rotation === 3,\n }}\n viewBox=\"0 0 12 12\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clip-path=\"url(#clip0_674_66)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_674_66\">\n <rect width=\"12\" height=\"12\" />\n </clipPath>\n </defs>\n </svg>\n);\n\nconst DoubleArc = (rotation: number) => (\n <svg\n class={{\n rotate90: rotation === 1,\n rotate180: rotation === 2,\n rotate270: rotation === 3,\n }}\n viewBox=\"0 0 12 12\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clip-path=\"url(#clip0_674_255)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z\"\n />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_674_255\">\n <rect width=\"12\" height=\"12\" />\n </clipPath>\n </defs>\n </svg>\n);\n\n@Component({\n tag: 'cpsl-identicon',\n styleUrl: 'cpsl-identicon.scss',\n shadow: true,\n})\nexport class CpslIdenticon {\n @Prop() hash: string;\n\n /**\n * The size of the identicon.\n * Default is: 40.\n */\n @Prop() size: number = 40;\n\n render() {\n const [code, color] = stringToBinaryAndColor(this.hash);\n const shapeA = ((code >> 2) & 1) !== 0;\n const shapeB = ((code >> 3) & 1) !== 0;\n const shapeC = ((code >> 4) & 1) !== 0;\n const shapeD = ((code >> 5) & 1) !== 0;\n const rotationA = (code >> 6) & 3;\n const rotationB = (code >> 7) & 3;\n const rotationC = (code >> 8) & 3;\n const rotationD = (code >> 9) & 3;\n\n const [shapes, rotations] = [\n [shapeA, shapeB, shapeC, shapeD],\n [rotationA, rotationB, rotationC, rotationD],\n ];\n\n return (\n <Host\n class={{\n red: color === 'red',\n orange: color === 'orange',\n yellow: color === 'yellow',\n green: color === 'green',\n blue: color === 'blue',\n purple: color === 'purple',\n }}\n >\n {shapes.map((isDouble, index) => {\n return isDouble ? DoubleArc(rotations[index]) : SingleArc(rotations[index]);\n })}\n </Host>\n );\n }\n}\n\ntype Color = 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'purple';\n\nconst COLORS: Color[] = ['red', 'orange', 'yellow', 'green', 'blue', 'purple'];\n\nfunction stringToBinaryAndColor(hash: string): [number, Color] {\n const code = (hash.charCodeAt(0) << 24) | (hash.charCodeAt(1) << 16) | (hash.charCodeAt(2) << 8) | hash.charCodeAt(3);\n\n const color = COLORS[Math.abs(code % 6)];\n\n return [code, color];\n}\n"],"version":3}
@@ -8,7 +8,7 @@ const CpslInfoBox = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '60852c54e233d29363761d07715aab5b7d86e4b0' }, h("div", { key: '970d11a996e58604455833c5a31a9ae26abadb95', class: "info-box-container" }, h("slot", { key: '4f2f3a5da31d262544f848b06498af7da5b2cbd1' }))));
11
+ return (h(Host, { key: '15b85f109d7e5371f6fa35f38dc35f86a061c46c' }, h("div", { key: '39eae7146dfa17771e1d68045255c9b0db5d0a0c', class: "info-box-container" }, h("slot", { key: '008e3552b563dd2f3b6d10bc7afe59b0f2a2ba3a' }))));
12
12
  }
13
13
  };
14
14
  CpslInfoBox.style = CpslInfoBoxStyle0;
@@ -37,7 +37,7 @@ const CpslModalV2 = class {
37
37
  this.toggleHeight();
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: 'ecdfd932091801f470beb579793ba8faaddd1858', class: { 'open': this.open, 'elevated': this.elevated, 'no-overlay': this.noOverlay } }, !this.noOverlay && (h("cpsl-overlay", { zIndexOverride: Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined, id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration })), h("cpsl-card", { key: '9c0d1dc565ed8d178f56e02d3e53cc6f979d66b5', class: "card", style: { transitionDuration: this.open ? `${this.exitTransitionDuration}s` : `${this.enterTransitionDuration}s` } }, h("slot", { key: 'be77c75323488daed7b254daeca431835f96f081' }))));
40
+ return (h(Host, { key: '8a43f4163d195bb2062c57a1edbab0740b69bdf5', class: { 'open': this.open, 'elevated': this.elevated, 'no-overlay': this.noOverlay } }, !this.noOverlay && (h("cpsl-overlay", { zIndexOverride: Boolean(this.zIndexOverride) ? this.zIndexOverride : undefined, id: "overlay", open: this.open, enterTransitionDuration: this.enterTransitionDuration, exitTransitionDuration: this.exitTransitionDuration })), h("cpsl-card", { key: '488be1c056c32f634ec8b534e67a462dcde32736', class: "card", style: { transitionDuration: this.open ? `${this.exitTransitionDuration}s` : `${this.enterTransitionDuration}s` } }, h("slot", { key: 'dbf4835d6aab5454ff6b582471bbb34e3cfca1c3' }))));
41
41
  }
42
42
  get el() { return getElement(this); }
43
43
  static get watchers() { return {
@@ -8,7 +8,7 @@ const CpslRow = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '7f72521f5a00092d54fb143c73334dfdc8d5daf7' }, h("slot", { key: 'a23bda8f3a3178b61e409f73e6004586f8b26509' })));
11
+ return (h(Host, { key: 'a7103593a92c7db3ff20e95c7f9a0b7a14897e34' }, h("slot", { key: 'e7980a87253ac57393a246aae808cfa47f7c20dc' })));
12
12
  }
13
13
  };
14
14
  CpslRow.style = CpslRowStyle0;
@@ -1948,10 +1948,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1948
1948
  }
1949
1949
  switch(bundleId) {
1950
1950
 
1951
- case 'cpsl-alert_33':
1951
+ case 'cpsl-alert_34':
1952
1952
  return import(
1953
1953
  /* webpackMode: "lazy" */
1954
- './cpsl-alert_33.entry.js').then(processMod, consoleError);
1954
+ './cpsl-alert_34.entry.js').then(processMod, consoleError);
1955
1955
  case 'cpsl-animation':
1956
1956
  return import(
1957
1957
  /* webpackMode: "lazy" */
@@ -1964,6 +1964,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1964
1964
  return import(
1965
1965
  /* webpackMode: "lazy" */
1966
1966
  './cpsl-grid.entry.js').then(processMod, consoleError);
1967
+ case 'cpsl-identicon':
1968
+ return import(
1969
+ /* webpackMode: "lazy" */
1970
+ './cpsl-identicon.entry.js').then(processMod, consoleError);
1967
1971
  case 'cpsl-info-box':
1968
1972
  return import(
1969
1973
  /* webpackMode: "lazy" */
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[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",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_33",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-file-upload",{"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-select",{"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"label":[1],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[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],"zIndexOverride":[2,"z-index-override"],"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-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[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],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-nav-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[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-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[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-button",{"as":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"size":[1],"target":[1],"variant":[513]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-popover",{"anchorEl":[16],"anchorOriginHorizontal":[1,"anchor-origin-horizontal"],"anchorOriginVertical":[1,"anchor-origin-vertical"],"autoWidth":[4,"auto-width"],"disabled":[4],"preventBlur":[4,"prevent-blur"],"transformOriginHorizontal":[1,"transform-origin-horizontal"],"transformOriginVertical":[1,"transform-origin-vertical"],"triggerAction":[1,"trigger-action"],"trigger":[1],"windowPadding":[2,"window-padding"],"open":[32],"positionX":[32],"positionY":[32],"closePopover":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"preventBlur":["onTriggerChange"],"anchorOriginHorizontal":["onAnchorChange"],"anchorOriginVertical":["onAnchorChange"],"open":["onOpenChange"]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-card"],[1,"cpsl-overlay",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
8
+ return bootstrapLazy([["cpsl-modal-v2",[[1,"cpsl-modal-v2",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"elevated":[4],"noOverlay":[4,"no-overlay"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}]]],["cpsl-animation",[[1,"cpsl-animation",{"src":[1],"replayAnimation":[64]}]]],["cpsl-col",[[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",[[1,"cpsl-grid",{"fixed":[4]}]]],["cpsl-identicon",[[1,"cpsl-identicon",{"hash":[1],"size":[2]}]]],["cpsl-info-box",[[1,"cpsl-info-box"]]],["cpsl-row",[[1,"cpsl-row"]]],["cpsl-alert_34",[[1,"cpsl-pagination",{"initialPage":[2,"initial-page"],"totalPages":[2,"total-pages"],"visiblePages":[1026,"visible-pages"],"currentPage":[32]},null,{"currentPage":["watchChange"]}],[1,"cpsl-file-upload",{"errorText":[1,"error-text"],"externalFilename":[1,"external-filename"],"externalSrc":[1,"external-src"],"fileTypes":[16],"helperText":[1,"helper-text"],"label":[1],"required":[4],"showOptionalLabel":[4,"show-optional-label"],"uploadFile":[16],"file":[32],"dragOver":[32],"dragError":[32],"isUploading":[32],"uploadError":[32]}],[1,"cpsl-select",{"disabled":[4],"dropdownMaxHeight":[2,"dropdown-max-height"],"errorText":[1,"error-text"],"formatValue":[16],"helperText":[1,"helper-text"],"id":[1],"label":[1],"placeholder":[1],"required":[4],"selectedValue":[1,"selected-value"],"showFormattedSelectedItem":[4,"show-formatted-selected-item"],"showOptionalLabel":[4,"show-optional-label"],"anchorEl":[32],"hasFocus":[32],"popoverOpen":[32],"hasSelectedItem":[32]},[[0,"cpslSelectItemClick","selectItemClickHandler"],[0,"cpslOpen","onPopoverOpen"],[0,"cpslClose","onPopoverClose"]],{"selectedValue":["onValueChange","handleValueChange"]}],[1,"cpsl-alert",{"icon":[1],"variant":[1]}],[1,"cpsl-checkbox",{"checked":[4]}],[1,"cpsl-code-input",{"code":[1025],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"length":[2],"type":[1]}],[1,"cpsl-drawer",{"anchor":[1],"anchorPosition":[2,"anchor-position"],"noOverlay":[4,"no-overlay"],"open":[4],"size":[8],"transitionDuration":[2,"transition-duration"],"transitionFunction":[1,"transition-function"],"variant":[1],"zIndexOverride":[2,"z-index-override"],"closedAnchorPosition":[32],"showTransition":[32]}],[1,"cpsl-hero",{"variant":[513],"title":[513],"subtitle":[513]}],[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],"zIndexOverride":[2,"z-index-override"],"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-table",{"hasHorizontalScroll":[32],"hasVerticalScroll":[32]}],[1,"cpsl-tile-button",{"src":[1],"icon":[1]}],[1,"cpsl-app-bar",{"height":[2],"position":[1],"zIndexOverride":[2,"z-index-override"]}],[1,"cpsl-avatar",{"alt":[1],"src":[1],"variant":[1]}],[1,"cpsl-divider"],[1,"cpsl-dropdown",{"width":[1],"hasCpslSearch":[4,"has-cpsl-search"],"items":[16],"selectedItem":[1040],"isOpen":[32],"searchQuery":[32],"filteredItems":[32]},[[9,"resize","handleResize"]],{"selectedItem":["handleSelectedItemChange"],"isOpen":["handleOpenChange"]}],[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],"showOptionalLabel":[4,"show-optional-label"],"spellcheck":[4],"startIconSrc":[1,"start-icon-src"],"startIcon":[1,"start-icon"],"step":[1],"type":[1],"value":[1025],"hasFocus":[32]},null,{"disabled":["handleDisable"]}],[1,"cpsl-nav-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[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-radio",{"checked":[4]}],[1,"cpsl-select-item",{"selected":[4],"value":[1]}],[1,"cpsl-switch",{"checked":[4]}],[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-button",{"as":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"size":[1],"target":[1],"variant":[513]}],[1,"cpsl-button-group",{"selectedId":[1,"selected-id"]},null,{"selectedId":["selectItem"]}],[1,"cpsl-popover",{"anchorEl":[16],"anchorOriginHorizontal":[1,"anchor-origin-horizontal"],"anchorOriginVertical":[1,"anchor-origin-vertical"],"autoWidth":[4,"auto-width"],"disabled":[4],"preventBlur":[4,"prevent-blur"],"transformOriginHorizontal":[1,"transform-origin-horizontal"],"transformOriginVertical":[1,"transform-origin-vertical"],"triggerAction":[1,"trigger-action"],"trigger":[1],"windowPadding":[2,"window-padding"],"open":[32],"positionX":[32],"positionY":[32],"closePopover":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"preventBlur":["onTriggerChange"],"anchorOriginHorizontal":["onAnchorChange"],"anchorOriginVertical":["onAnchorChange"],"open":["onOpenChange"]}],[1,"cpsl-spinner",{"size":[2],"speed":[2]}],[1,"cpsl-card"],[1,"cpsl-overlay",{"enterTransitionDuration":[2,"enter-transition-duration"],"exitTransitionDuration":[2,"exit-transition-duration"],"open":[4],"zIndexOverride":[2,"z-index-override"]},null,{"open":["toggleHeight"]}],[1,"cpsl-text",{"color":[1],"variant":[1],"weight":[1]}],[1,"cpsl-icon",{"src":[1],"icon":[1]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -0,0 +1,90 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ const fs = require('fs');
21
+ const fsPromises = require('fs').promises;
22
+ function toCamelCase(text) {
23
+ return text.replace(/-\w/g, clearAndUpper);
24
+ }
25
+ function toPascalCase(text) {
26
+ return text.replace(/(^\w|-\w)/g, clearAndUpper);
27
+ }
28
+ function clearAndUpper(text) {
29
+ return text.replace(/-/, '').toUpperCase();
30
+ }
31
+ const buildIconLibrary = () => {
32
+ let files = fs.readdirSync('./src/assets/icons');
33
+ let flagFiles = fs.readdirSync('./src/assets/icons/flags');
34
+ let importString = '';
35
+ let objString = 'export const Icons = {';
36
+ for (const fileName of files) {
37
+ if (!fileName.includes('.svg')) {
38
+ continue;
39
+ }
40
+ const fileNameNoExt = fileName.split('.')[0];
41
+ const camelCaseFileName = toCamelCase(fileNameNoExt);
42
+ const pascalCaseFileName = toPascalCase(fileNameNoExt);
43
+ importString += `import ${pascalCaseFileName} from './${fileName}';`;
44
+ objString += `${camelCaseFileName}: ${pascalCaseFileName},`;
45
+ }
46
+ for (const fileName of flagFiles) {
47
+ if (!fileName.includes('.svg')) {
48
+ continue;
49
+ }
50
+ const fileNameNoExt = fileName.split('.')[0];
51
+ const camelCaseFileName = toCamelCase(fileNameNoExt);
52
+ const pascalCaseFileName = toPascalCase(fileNameNoExt);
53
+ importString += `import ${pascalCaseFileName} from './flags/${fileName}';`;
54
+ objString += `${camelCaseFileName}: ${pascalCaseFileName},`;
55
+ }
56
+ const codeStr = `${importString}\n${objString}}`;
57
+ fs.writeFile('./src/assets/icons/index.ts', codeStr, 'utf8', err => {
58
+ if (err) {
59
+ console.error(err);
60
+ }
61
+ });
62
+ };
63
+ const buildImages = () => __awaiter(this, void 0, void 0, function* () {
64
+ const files = fs.readdirSync('./src/assets/images');
65
+ let objString = 'export const Images = {';
66
+ for (let i = 0; i < files.length; i++) {
67
+ const fileName = files[i];
68
+ if (!fileName.includes('png') && !fileName.includes('jpg') && !fileName.includes('jpeg')) {
69
+ continue;
70
+ }
71
+ const content = yield fsPromises.readFile(`./src/assets/images/${fileName}`, { encoding: 'base64' });
72
+ const fileNameSplit = fileName.split('.');
73
+ const ext = fileNameSplit[1];
74
+ const fileNameNoExt = fileNameSplit[0];
75
+ const camelCaseFileName = toCamelCase(fileNameNoExt);
76
+ const dataUrl = `data:image/${ext};base64,${content}`;
77
+ objString += `${camelCaseFileName}: "${dataUrl}",`;
78
+ }
79
+ fs.writeFile('./src/assets/images/index.ts', `${objString}}`, 'utf8', err => {
80
+ if (err) {
81
+ console.error(err);
82
+ }
83
+ });
84
+ });
85
+ const main = () => {
86
+ buildIconLibrary();
87
+ buildImages();
88
+ };
89
+ main();
90
+ //# sourceMappingURL=buildAssets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildAssets.js","sourceRoot":"","sources":["../../scripts/buildAssets.ts"],"names":[],"mappings":"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","sourcesContent":["const fs = require('fs');\nconst fsPromises = require('fs').promises;\n\nfunction toCamelCase(text) {\n return text.replace(/-\\w/g, clearAndUpper);\n}\n\nfunction toPascalCase(text) {\n return text.replace(/(^\\w|-\\w)/g, clearAndUpper);\n}\n\nfunction clearAndUpper(text) {\n return text.replace(/-/, '').toUpperCase();\n}\nconst buildIconLibrary = () => {\n let files: string[] = fs.readdirSync('./src/assets/icons');\n let flagFiles = fs.readdirSync('./src/assets/icons/flags');\n\n let importString = '';\n let objString = 'export const Icons = {';\n\n for (const fileName of files) {\n if (!fileName.includes('.svg')) {\n continue;\n }\n\n const fileNameNoExt = fileName.split('.')[0];\n\n const camelCaseFileName = toCamelCase(fileNameNoExt);\n const pascalCaseFileName = toPascalCase(fileNameNoExt);\n\n importString += `import ${pascalCaseFileName} from './${fileName}';`;\n objString += `${camelCaseFileName}: ${pascalCaseFileName},`;\n }\n\n for (const fileName of flagFiles) {\n if (!fileName.includes('.svg')) {\n continue;\n }\n\n const fileNameNoExt = fileName.split('.')[0];\n\n const camelCaseFileName = toCamelCase(fileNameNoExt);\n const pascalCaseFileName = toPascalCase(fileNameNoExt);\n\n importString += `import ${pascalCaseFileName} from './flags/${fileName}';`;\n objString += `${camelCaseFileName}: ${pascalCaseFileName},`;\n }\n\n const codeStr = `${importString}\\n${objString}}`;\n fs.writeFile('./src/assets/icons/index.ts', codeStr, 'utf8', err => {\n if (err) {\n console.error(err);\n }\n });\n};\n\nconst buildImages = async () => {\n const files: string[] = fs.readdirSync('./src/assets/images');\n\n let objString = 'export const Images = {';\n\n for (let i = 0; i < files.length; i++) {\n const fileName = files[i];\n\n if (!fileName.includes('png') && !fileName.includes('jpg') && !fileName.includes('jpeg')) {\n continue;\n }\n\n const content = await fsPromises.readFile(`./src/assets/images/${fileName}`, { encoding: 'base64' });\n\n const fileNameSplit = fileName.split('.');\n const ext = fileNameSplit[1];\n const fileNameNoExt = fileNameSplit[0];\n\n const camelCaseFileName = toCamelCase(fileNameNoExt);\n\n const dataUrl = `data:image/${ext};base64,${content}`;\n\n objString += `${camelCaseFileName}: \"${dataUrl}\",`;\n }\n\n fs.writeFile('./src/assets/images/index.ts', `${objString}}`, 'utf8', err => {\n if (err) {\n console.error(err);\n }\n });\n};\n\nconst main = () => {\n buildIconLibrary();\n buildImages();\n};\nmain();\n"]}
@@ -1,5 +1,8 @@
1
1
  declare const fs: any;
2
+ declare const fsPromises: any;
2
3
  declare function toCamelCase(text: any): any;
3
4
  declare function toPascalCase(text: any): any;
4
5
  declare function clearAndUpper(text: any): any;
6
+ declare const buildIconLibrary: () => void;
7
+ declare const buildImages: () => Promise<void>;
5
8
  declare const main: () => void;
@@ -1,4 +1,95 @@
1
1
  export declare const Icons: {
2
+ alertCircle: string;
3
+ angelListBrand: string;
4
+ angelList: string;
5
+ appleBrand: string;
6
+ apple: string;
7
+ arrowNarrow: string;
8
+ arrow: string;
9
+ backupKit: string;
10
+ brush: string;
11
+ capsuleLogo: string;
12
+ capsuleRingsDark: string;
13
+ capsuleRings: string;
14
+ capsule: string;
15
+ checkCircle: string;
16
+ check: string;
17
+ chevronUp: string;
18
+ clock: string;
19
+ close: string;
20
+ clubhouseBrand: string;
21
+ clubhouse: string;
22
+ copy: string;
23
+ cube: string;
24
+ decentBrand: string;
25
+ decent: string;
26
+ discordBrand: string;
27
+ discord: string;
28
+ doubleArc: string;
29
+ downloadCloud: string;
30
+ dribbbleBrand: string;
31
+ dribbble: string;
32
+ earth: string;
33
+ eyeOff: string;
34
+ eye: string;
35
+ facebookBrand: string;
36
+ facebook: string;
37
+ farcasterBrand: string;
38
+ farcaster: string;
39
+ figmaBrand: string;
40
+ figma: string;
41
+ file: string;
42
+ githubBrand: string;
43
+ github: string;
44
+ googleBrand: string;
45
+ google: string;
46
+ helpCircle: string;
47
+ heroEmail: string;
48
+ heroLock: string;
49
+ heroPasskey: string;
50
+ heroPhone: string;
51
+ heroWallet: string;
52
+ home: string;
53
+ image: string;
54
+ infoCircle: string;
55
+ instagramBrand: string;
56
+ instagram: string;
57
+ key: string;
58
+ lightning01: string;
59
+ lightning: string;
60
+ linkedinBrand: string;
61
+ linkedin: string;
62
+ mail: string;
63
+ menu: string;
64
+ moreLoginOptions: string;
65
+ phone: string;
66
+ pintrestBrand: string;
67
+ pintrest: string;
68
+ plusCircle: string;
69
+ rampNetworkBrand: string;
70
+ rampNetwork: string;
71
+ redditBrand: string;
72
+ reddit: string;
73
+ refresh: string;
74
+ settings: string;
75
+ signalBrand: string;
76
+ signal: string;
77
+ singleArc: string;
78
+ snapchatBrand: string;
79
+ snapchat: string;
80
+ stars: string;
81
+ telegramBrand: string;
82
+ telegram: string;
83
+ tikTokBrand: string;
84
+ tikTok: string;
85
+ tumblrBrand: string;
86
+ tumblr: string;
87
+ twitterBrand: string;
88
+ twitter: string;
89
+ wallet: string;
90
+ x: string;
91
+ youtubeBrand: string;
92
+ youtube: string;
2
93
  AD: string;
3
94
  AE: string;
4
95
  AF: string;
@@ -232,93 +323,4 @@ export declare const Icons: {
232
323
  ZA: string;
233
324
  ZM: string;
234
325
  ZW: string;
235
- alertCircle: string;
236
- angelListBrand: string;
237
- angelList: string;
238
- appleBrand: string;
239
- apple: string;
240
- arrowNarrow: string;
241
- arrow: string;
242
- backupKit: string;
243
- brush: string;
244
- capsuleLogo: string;
245
- capsuleRingsDark: string;
246
- capsuleRings: string;
247
- capsule: string;
248
- checkCircle: string;
249
- check: string;
250
- chevronUp: string;
251
- clock: string;
252
- close: string;
253
- clubhouseBrand: string;
254
- clubhouse: string;
255
- copy: string;
256
- cube: string;
257
- decentBrand: string;
258
- decent: string;
259
- discordBrand: string;
260
- discord: string;
261
- downloadCloud: string;
262
- dribbbleBrand: string;
263
- dribbble: string;
264
- earth: string;
265
- eyeOff: string;
266
- eye: string;
267
- facebookBrand: string;
268
- facebook: string;
269
- farcasterBrand: string;
270
- farcaster: string;
271
- figmaBrand: string;
272
- figma: string;
273
- file: string;
274
- githubBrand: string;
275
- github: string;
276
- googleBrand: string;
277
- google: string;
278
- helpCircle: string;
279
- heroEmail: string;
280
- heroLock: string;
281
- heroPasskey: string;
282
- heroPhone: string;
283
- heroWallet: string;
284
- home: string;
285
- image: string;
286
- infoCircle: string;
287
- instagramBrand: string;
288
- instagram: string;
289
- key: string;
290
- lightning01: string;
291
- lightning: string;
292
- linkedinBrand: string;
293
- linkedin: string;
294
- mail: string;
295
- menu: string;
296
- moreLoginOptions: string;
297
- phone: string;
298
- pintrestBrand: string;
299
- pintrest: string;
300
- plusCircle: string;
301
- rampNetworkBrand: string;
302
- rampNetwork: string;
303
- redditBrand: string;
304
- reddit: string;
305
- refresh: string;
306
- settings: string;
307
- signalBrand: string;
308
- signal: string;
309
- snapchatBrand: string;
310
- snapchat: string;
311
- stars: string;
312
- telegramBrand: string;
313
- telegram: string;
314
- tikTokBrand: string;
315
- tikTok: string;
316
- tumblrBrand: string;
317
- tumblr: string;
318
- twitterBrand: string;
319
- twitter: string;
320
- wallet: string;
321
- x: string;
322
- youtubeBrand: string;
323
- youtube: string;
324
326
  };
@@ -0,0 +1,5 @@
1
+ export declare const Images: {
2
+ heroDefault: string;
3
+ heroPending: string;
4
+ heroSuccess: string;
5
+ };
@@ -0,0 +1,15 @@
1
+ import type { Meta, StoryFn } from '@storybook/html';
2
+ import { type CpslButton } from './cpsl-button';
3
+ declare const meta: Meta<CpslButton & {
4
+ content?: string;
5
+ }>;
6
+ export default meta;
7
+ type Story = StoryFn<CpslButton & {
8
+ content?: string;
9
+ }>;
10
+ export declare const Primary: Story;
11
+ export declare const Secondary: Story;
12
+ export declare const Ghost: Story;
13
+ export declare const Destructive: Story;
14
+ export declare const Icon: Story;
15
+ export declare const PrimaryWithIcon: Story;
@@ -0,0 +1,6 @@
1
+ export declare class CpslHero {
2
+ variant?: 'connection' | 'pending' | 'approved' | 'failed';
3
+ title: string;
4
+ subtitle?: string;
5
+ render(): any;
6
+ }
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryFn } from '@storybook/html';
2
+ import { type CpslHero } from './cpsl-hero';
3
+ declare const meta: Meta<CpslHero & {
4
+ content?: string;
5
+ }>;
6
+ export default meta;
7
+ type Story = StoryFn<CpslHero & {
8
+ content?: string;
9
+ }>;
10
+ export declare const Connection: Story;
11
+ export declare const Pending: Story;
12
+ export declare const Approved: Story;
13
+ export declare const Failed: Story;
@@ -0,0 +1,5 @@
1
+ export declare class CpslIdenticon {
2
+ hash: string;
3
+ size: number;
4
+ render(): any;
5
+ }
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryFn } from '@storybook/html';
2
+ import { type CpslIdenticon } from './cpsl-identicon';
3
+ declare const meta: Meta<CpslIdenticon & {
4
+ content?: string;
5
+ }>;
6
+ export default meta;
7
+ type Story = StoryFn<CpslIdenticon & {
8
+ content?: string;
9
+ }>;
10
+ export declare const Primary: Story;