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

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-02072c68.entry.js → p-1bb78dd3.entry.js} +2 -2
  4. package/dist/capsule/p-29340cea.entry.js +2 -0
  5. package/dist/capsule/p-29340cea.entry.js.map +1 -0
  6. package/dist/capsule/p-3fca138b.entry.js +2 -0
  7. package/dist/capsule/{p-41088cd4.entry.js → p-895001cf.entry.js} +2 -2
  8. package/dist/capsule/p-c4220447.entry.js +29 -0
  9. package/dist/capsule/p-c4220447.entry.js.map +1 -0
  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} +2763 -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 +245 -0
  31. package/dist/collection/components/cpsl-hero/cpsl-hero.js +52 -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} +2763 -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 +4 -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 +44 -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-1bb78dd3.entry.js.map} +0 -0
  102. /package/dist/capsule/{p-2c16694d.entry.js.map → p-3fca138b.entry.js.map} +0 -0
  103. /package/dist/capsule/{p-41088cd4.entry.js.map → p-895001cf.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,245 @@
1
+ /**
2
+ * Convert a font size to a dynamic font size.
3
+ * Fonts that participate in Dynamic Type should use
4
+ * dynamic font sizes.
5
+ * @param size - The initial font size including the unit (i.e. px or pt)
6
+ * @param unit (optional) - The unit to convert to. Use this if you want to
7
+ * convert to a unit other than $baselineUnit.
8
+ */
9
+ /**
10
+ * Convert a font size to a dynamic font size but impose
11
+ * a maximum font size.
12
+ * @param size - The initial font size including the unit (i.e. px or pt)
13
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
14
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
15
+ * convert to a unit other than $baselineUnit.
16
+ */
17
+ /**
18
+ * Convert a font size to a dynamic font size but impose
19
+ * a minimum font size.
20
+ * @param size - The initial font size including the unit (i.e. px or pt)
21
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
22
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
23
+ * convert to a unit other than $baselineUnit.
24
+ */
25
+ /**
26
+ * Convert a font size to a dynamic font size but impose
27
+ * maximum and minimum font sizes.
28
+ * @param size - The initial font size including the unit (i.e. px or pt)
29
+ * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
30
+ * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
31
+ * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
32
+ * convert to a unit other than $baselineUnit.
33
+ */
34
+ /**
35
+ * A heuristic that applies CSS to tablet
36
+ * viewports.
37
+ *
38
+ * Usage:
39
+ * @include tablet-viewport() {
40
+ * :host {
41
+ * background-color: green;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * A heuristic that applies CSS to mobile
47
+ * viewports (i.e. phones, not tablets).
48
+ *
49
+ * Usage:
50
+ * @include mobile-viewport() {
51
+ * :host {
52
+ * background-color: blue;
53
+ * }
54
+ * }
55
+ */
56
+ :host {
57
+ position: relative;
58
+ top: 0;
59
+ right: 0;
60
+ left: 0;
61
+ width: 100%;
62
+ height: 180px;
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ }
67
+
68
+ :host > .background {
69
+ width: 100%;
70
+ height: 100%;
71
+ position: absolute;
72
+ top: 50%;
73
+ transform: translateY(-25%);
74
+ left: 0;
75
+ right: 0;
76
+ z-index: 0;
77
+ }
78
+
79
+ :host > .background > .ring {
80
+ position: absolute;
81
+ top: 45px;
82
+ left: 50%;
83
+ transform: translate(-50%, -50%);
84
+ flex-shrink: 0;
85
+ transition: box-shadow 0.3s;
86
+ }
87
+
88
+ :host(.connection) > .background .ring1 {
89
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.07);
90
+ }
91
+ :host(.connection) > .background .ring2 {
92
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
93
+ }
94
+ :host(.connection) > .background .ring3 {
95
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
96
+ }
97
+
98
+ :host(.pending) > .background .ring0 {
99
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
100
+ }
101
+ :host(.pending) > .background .ring1 {
102
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.08);
103
+ }
104
+ :host(.pending) > .background .ring2 {
105
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.06);
106
+ }
107
+ :host(.pending) > .background .ring3 {
108
+ box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.04);
109
+ }
110
+
111
+ :host(.failed) > .background > .ring0 {
112
+ box-shadow: 0px 0px 20px rgba(240, 68, 56, 0.1);
113
+ }
114
+ :host(.failed) > .background > .ring1 {
115
+ box-shadow: 0px 0px 20px rgba(240, 68, 56, 0.08);
116
+ }
117
+ :host(.failed) > .background > .ring2 {
118
+ box-shadow: 0px 0px 20px rgba(240, 68, 56, 0.06);
119
+ }
120
+ :host(.failed) > .background > .ring3 {
121
+ box-shadow: 0px 0px 20px rgba(240, 68, 56, 0.04);
122
+ }
123
+
124
+ :host(.approved) > .background .ring1 {
125
+ box-shadow: 0px 0px 20px rgba(219, 0, 179, 0.1);
126
+ }
127
+ :host(.approved) > .background .ring2 {
128
+ box-shadow: 0px 0px 20px rgba(219, 0, 51, 0.1);
129
+ }
130
+ :host(.approved) > .background .ring3 {
131
+ box-shadow: 0px 0px 20px rgba(254, 83, 48, 0.1);
132
+ }
133
+
134
+ :host > .background > .ring3 {
135
+ width: 480px;
136
+ height: 480px;
137
+ border-radius: 480px;
138
+ }
139
+
140
+ :host > .background > .ring2 {
141
+ width: 360px;
142
+ height: 360px;
143
+ border-radius: 360px;
144
+ }
145
+
146
+ :host > .background > .ring1 {
147
+ width: 240px;
148
+ height: 240px;
149
+ border-radius: 240px;
150
+ }
151
+
152
+ :host > .background > .ring0 {
153
+ width: 120px;
154
+ height: 120px;
155
+ border-radius: 120px;
156
+ }
157
+
158
+ :host > .background > .ringCenter.connection {
159
+ position: absolute;
160
+ top: 45px;
161
+ left: 50%;
162
+ transform: translate(-50%, -50%);
163
+ width: 160px;
164
+ height: 160px;
165
+ border-radius: 160px;
166
+ }
167
+ @keyframes spin {
168
+ from {
169
+ transform: rotate(0deg);
170
+ }
171
+ to {
172
+ transform: rotate(360deg);
173
+ }
174
+ }
175
+ :host > .background > .ringCenter.connection img {
176
+ width: 100%;
177
+ height: 100%;
178
+ animation: spin 2s linear infinite;
179
+ }
180
+
181
+ :host > .background > .ringCenter.approved {
182
+ position: absolute;
183
+ top: 45px;
184
+ left: 50%;
185
+ transform: translate(-50%, -50%);
186
+ width: 160px;
187
+ height: 160px;
188
+ border-radius: 160px;
189
+ }
190
+ @keyframes spin {
191
+ from {
192
+ transform: rotate(0deg);
193
+ }
194
+ to {
195
+ transform: rotate(360deg);
196
+ }
197
+ }
198
+ :host > .background > .ringCenter.approved img {
199
+ width: 100%;
200
+ height: 100%;
201
+ animation: spin 2s linear infinite;
202
+ }
203
+
204
+ :host > .background > .ringCenter.pending {
205
+ position: absolute;
206
+ top: 45px;
207
+ left: 50%;
208
+ transform: translate(-50%, -50%);
209
+ width: 82px;
210
+ height: 82px;
211
+ border-radius: 82px;
212
+ }
213
+ @keyframes spin {
214
+ from {
215
+ transform: rotate(0deg);
216
+ }
217
+ to {
218
+ transform: rotate(360deg);
219
+ }
220
+ }
221
+ :host > .background > .ringCenter.pending img {
222
+ width: 100%;
223
+ height: 100%;
224
+ animation: spin 2s linear infinite;
225
+ }
226
+
227
+ :host > .background > .fadeOut {
228
+ position: absolute;
229
+ height: 200%;
230
+ right: 0;
231
+ bottom: -100%;
232
+ left: 0;
233
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
234
+ }
235
+
236
+ :host > .children {
237
+ z-index: 1;
238
+ }
239
+
240
+ :host(.connection) > .children > .connectDiagramContainer {
241
+ display: flex;
242
+ justify-content: center;
243
+ align-items: center;
244
+ gap: 40px;
245
+ }
@@ -0,0 +1,52 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { Images } from "../../assets/images";
3
+ const Checkmark = () => (h("svg", { width: "48", height: "35", viewBox: "0 0 48 35", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M47.219 1.11439C48.2604 2.15579 48.2604 3.84423 47.219 4.88563L17.8856 34.219C16.8442 35.2604 15.1558 35.2604 14.1144 34.219L0.781049 20.8856C-0.26035 19.8442 -0.26035 18.1558 0.781049 17.1144C1.82245 16.073 3.51089 16.073 4.55229 17.1144L16 28.5621L43.4477 1.11439C44.4891 0.0729939 46.1776 0.0729939 47.219 1.11439Z", fill: "url(#paint0_linear_841_278)" }), h("defs", null, h("linearGradient", { id: "paint0_linear_841_278", x1: "48", y1: "17.6667", x2: "0", y2: "17.6667", gradientUnits: "userSpaceOnUse" }, h("stop", { "stop-color": "#BC82F3" }), h("stop", { offset: "0.485", "stop-color": "#FF6778" }), h("stop", { offset: "1", "stop-color": "#FFBA71" })))));
4
+ const AlertCircle = () => (h("svg", { width: "58", height: "58", viewBox: "0 0 58 58", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M29 18.3333V29M29 39.6666H29.0267M55.6667 29C55.6667 43.7276 43.7276 55.6666 29 55.6666C14.2724 55.6666 2.33333 43.7276 2.33333 29C2.33333 14.2724 14.2724 2.33331 29 2.33331C43.7276 2.33331 55.6667 14.2724 55.6667 29Z", stroke: "#F04438", "stroke-width": "4", "stroke-linecap": "round", "stroke-linejoin": "round" })));
5
+ export class CpslHero {
6
+ constructor() {
7
+ this.variant = 'connection';
8
+ }
9
+ render() {
10
+ return (h(Host, { key: 'd43448970e8b605d97242e3f31080531fa1adb93', class: {
11
+ connection: this.variant === 'connection',
12
+ pending: this.variant === 'pending',
13
+ approved: this.variant === 'approved',
14
+ failed: this.variant === 'failed',
15
+ } }, h("div", { key: '8090c039f3d8d31949847a8d75fc2f181dac79ef', class: "background" }, h("div", { key: '374b4cf9c0ff508f7066131daaacce601f1284cf', class: "ring ring3" }), h("div", { key: '9820c3d2b038c9b3e63c9a24decafb812d49fa61', class: "ring ring2" }), h("div", { key: '387f7ffe6b391bd87fe4bad70d4a6a453441e492', class: "ring ring1" }), h("div", { key: '2ea4c1f575b67d47d7b9e5589302be8c995d3cc3', class: "ring ring0" }), this.variant === 'connection' && (h("div", { class: `ringCenter connection` }, h("img", { src: Images.heroDefault }))), this.variant === 'pending' && (h("div", { class: `ringCenter pending` }, h("img", { src: Images.heroPending }))), this.variant === 'approved' && (h("div", { class: `ringCenter approved` }, h("img", { src: Images.heroSuccess }))), h("div", { key: '13540b02127b72826994b1148171b523dfc9093b', class: "fadeOut" })), h("div", { key: '914a99423bc39a9d811af550d9f52c6af27d9db2', class: "children" }, this.variant === 'connection' && (h("div", { class: "connectDiagramContainer" }, h("slot", { name: "connectionLeft" }), h("slot", { name: "connectionRight" }))), this.variant === 'failed' && AlertCircle(), this.variant === 'approved' && Checkmark())));
16
+ }
17
+ static get is() { return "cpsl-hero"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["cpsl-hero.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["cpsl-hero.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "variant": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "'connection' | 'pending' | 'approved' | 'failed'",
36
+ "resolved": "\"approved\" | \"connection\" | \"failed\" | \"pending\"",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": true,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": "The variant of the button.\nOptions are: `\"default\"`, `\"loading\", `\"success\".\nDefault is: `\"default\"`."
44
+ },
45
+ "attribute": "variant",
46
+ "reflect": true,
47
+ "defaultValue": "'connection'"
48
+ }
49
+ };
50
+ }
51
+ }
52
+ //# sourceMappingURL=cpsl-hero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-hero.js","sourceRoot":"","sources":["../../../../src/components/cpsl-hero/cpsl-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CACtB,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;IAC5F,yBACY,SAAS,eACT,SAAS,EACnB,CAAC,EAAC,+TAA+T,EACjU,IAAI,EAAC,6BAA6B,GAClC;IACF;QACE,sBAAgB,EAAE,EAAC,uBAAuB,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,SAAS,EAAC,aAAa,EAAC,gBAAgB;YAChH,0BAAiB,SAAS,GAAG;YAC7B,YAAM,MAAM,EAAC,OAAO,gBAAY,SAAS,GAAG;YAC5C,YAAM,MAAM,EAAC,GAAG,gBAAY,SAAS,GAAG,CACzB,CACZ,CACH,CACP,CAAC;AAEF,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;IAC5F,YACE,CAAC,EAAC,2NAA2N,EAC7N,MAAM,EAAC,SAAS,kBACH,GAAG,oBACD,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC;AAOF,MAAM,OAAO,QAAQ;;uBAMmE,YAAY;;IAElG,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBAEL,UAAU,EAAE,IAAI,CAAC,OAAO,KAAK,YAAY;gBACzC,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;gBACnC,QAAQ,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;gBACrC,MAAM,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;aAClC;YAED,4DAAK,KAAK,EAAC,YAAY;gBACrB,4DAAK,KAAK,EAAC,YAAY,GAAG;gBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;gBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;gBAC1B,4DAAK,KAAK,EAAC,YAAY,GAAG;gBACzB,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAChC,WAAK,KAAK,EAAE,uBAAuB;oBACjC,WAAK,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI,CAC5B,CACP;gBACA,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,CAC7B,WAAK,KAAK,EAAE,oBAAoB;oBAC9B,WAAK,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI,CAC5B,CACP;gBAEA,IAAI,CAAC,OAAO,KAAK,UAAU,IAAI,CAC9B,WAAK,KAAK,EAAE,qBAAqB;oBAC/B,WAAK,GAAG,EAAE,MAAM,CAAC,WAAW,GAAI,CAC5B,CACP;gBACD,4DAAK,KAAK,EAAC,SAAS,GAAG,CACnB;YACN,4DAAK,KAAK,EAAC,UAAU;gBAClB,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAChC,WAAK,KAAK,EAAC,yBAAyB;oBAClC,YAAM,IAAI,EAAC,gBAAgB,GAAG;oBAC9B,YAAM,IAAI,EAAC,iBAAiB,GAAG,CAC3B,CACP;gBACA,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,WAAW,EAAE;gBAC1C,IAAI,CAAC,OAAO,KAAK,UAAU,IAAI,SAAS,EAAE,CACvC,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { Images } from '../../assets/images';\n\nconst Checkmark = () => (\n <svg width=\"48\" height=\"35\" viewBox=\"0 0 48 35\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M47.219 1.11439C48.2604 2.15579 48.2604 3.84423 47.219 4.88563L17.8856 34.219C16.8442 35.2604 15.1558 35.2604 14.1144 34.219L0.781049 20.8856C-0.26035 19.8442 -0.26035 18.1558 0.781049 17.1144C1.82245 16.073 3.51089 16.073 4.55229 17.1144L16 28.5621L43.4477 1.11439C44.4891 0.0729939 46.1776 0.0729939 47.219 1.11439Z\"\n fill=\"url(#paint0_linear_841_278)\"\n />\n <defs>\n <linearGradient id=\"paint0_linear_841_278\" x1=\"48\" y1=\"17.6667\" x2=\"0\" y2=\"17.6667\" gradientUnits=\"userSpaceOnUse\">\n <stop stop-color=\"#BC82F3\" />\n <stop offset=\"0.485\" stop-color=\"#FF6778\" />\n <stop offset=\"1\" stop-color=\"#FFBA71\" />\n </linearGradient>\n </defs>\n </svg>\n);\n\nconst AlertCircle = () => (\n <svg width=\"58\" height=\"58\" viewBox=\"0 0 58 58\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M29 18.3333V29M29 39.6666H29.0267M55.6667 29C55.6667 43.7276 43.7276 55.6666 29 55.6666C14.2724 55.6666 2.33333 43.7276 2.33333 29C2.33333 14.2724 14.2724 2.33331 29 2.33331C43.7276 2.33331 55.6667 14.2724 55.6667 29Z\"\n stroke=\"#F04438\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n);\n\n@Component({\n tag: 'cpsl-hero',\n styleUrl: 'cpsl-hero.scss',\n shadow: true,\n})\nexport class CpslHero {\n /**\n * The variant of the button.\n * Options are: `\"default\"`, `\"loading\", `\"success\".\n * Default is: `\"default\"`.\n */\n @Prop({ reflect: true }) variant?: 'connection' | 'pending' | 'approved' | 'failed' = 'connection';\n\n render() {\n return (\n <Host\n class={{\n // VARIANTS\n connection: this.variant === 'connection',\n pending: this.variant === 'pending',\n approved: this.variant === 'approved',\n failed: this.variant === 'failed',\n }}\n >\n <div class=\"background\">\n <div class=\"ring ring3\" />\n <div class=\"ring ring2\" />\n <div class=\"ring ring1\" />\n <div class=\"ring ring0\" />\n {this.variant === 'connection' && (\n <div class={`ringCenter connection`}>\n <img src={Images.heroDefault} />\n </div>\n )}\n {this.variant === 'pending' && (\n <div class={`ringCenter pending`}>\n <img src={Images.heroPending} />\n </div>\n )}\n\n {this.variant === 'approved' && (\n <div class={`ringCenter approved`}>\n <img src={Images.heroSuccess} />\n </div>\n )}\n <div class=\"fadeOut\" />\n </div>\n <div class=\"children\">\n {this.variant === 'connection' && (\n <div class=\"connectDiagramContainer\">\n <slot name=\"connectionLeft\" />\n <slot name=\"connectionRight\" />\n </div>\n )}\n {this.variant === 'failed' && AlertCircle()}\n {this.variant === 'approved' && Checkmark()}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,17 @@
1
+ const meta = {
2
+ title: 'Components/CpslHero',
3
+ };
4
+ export default meta;
5
+ const ConnectionTemplate = () => `
6
+ <cpsl-hero variant="connection">
7
+ <cpsl-identicon size={62} hash="5yhg423546" slot="connectionLeft"></cpsl-identicon>
8
+ <cpsl-identicon size={62} hash="884884fj4" slot="connectionRight"></cpsl-identicon>
9
+ </cpsl-hero>`;
10
+ const PendingTemplate = () => `<cpsl-hero variant="pending"></cpsl-hero>`;
11
+ const ApprovedTemplate = () => `<cpsl-hero variant="approved"></cpsl-hero>`;
12
+ const FailedTemplate = () => `<cpsl-hero variant="failed"></cpsl-hero>`;
13
+ export const Connection = ConnectionTemplate.bind({});
14
+ export const Pending = PendingTemplate.bind({});
15
+ export const Approved = ApprovedTemplate.bind({});
16
+ export const Failed = FailedTemplate.bind({});
17
+ //# sourceMappingURL=cpsl-hero.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-hero.stories.js","sourceRoot":"","sources":["../../../../src/components/cpsl-hero/cpsl-hero.stories.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAA0C;IAClD,KAAK,EAAE,qBAAqB;CAC7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,kBAAkB,GAAU,GAAG,EAAE,CAAC;;;;aAI3B,CAAC;AACd,MAAM,eAAe,GAAU,GAAG,EAAE,CAAC,2CAA2C,CAAC;AACjF,MAAM,gBAAgB,GAAU,GAAG,EAAE,CAAC,4CAA4C,CAAC;AACnF,MAAM,cAAc,GAAU,GAAG,EAAE,CAAC,0CAA0C,CAAC;AAE/E,MAAM,CAAC,MAAM,UAAU,GAAU,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,OAAO,GAAU,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,QAAQ,GAAU,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,MAAM,GAAU,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/html';\nimport { type CpslHero } from './cpsl-hero';\n\nconst meta: Meta<CpslHero & { content?: string }> = {\n title: 'Components/CpslHero',\n};\n\nexport default meta;\n\ntype Story = StoryFn<CpslHero & { content?: string }>;\n\nconst ConnectionTemplate: Story = () => `\n<cpsl-hero variant=\"connection\">\n <cpsl-identicon size={62} hash=\"5yhg423546\" slot=\"connectionLeft\"></cpsl-identicon>\n <cpsl-identicon size={62} hash=\"884884fj4\" slot=\"connectionRight\"></cpsl-identicon>\n</cpsl-hero>`;\nconst PendingTemplate: Story = () => `<cpsl-hero variant=\"pending\"></cpsl-hero>`;\nconst ApprovedTemplate: Story = () => `<cpsl-hero variant=\"approved\"></cpsl-hero>`;\nconst FailedTemplate: Story = () => `<cpsl-hero variant=\"failed\"></cpsl-hero>`;\n\nexport const Connection: Story = ConnectionTemplate.bind({});\nexport const Pending: Story = PendingTemplate.bind({});\nexport const Approved: Story = ApprovedTemplate.bind({});\nexport const Failed: Story = FailedTemplate.bind({});\n"]}
@@ -0,0 +1,29 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newE2EPage } from "@stencil/core/testing";
21
+ describe('cpsl-hero', () => {
22
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ const page = yield newE2EPage();
24
+ yield page.setContent('<cpsl-hero></cpsl-hero>');
25
+ const element = yield page.find('cpsl-hero');
26
+ expect(element).toHaveClass('hydrated');
27
+ }));
28
+ });
29
+ //# sourceMappingURL=cpsl-hero.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-hero.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-hero/test/cpsl-hero.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC7C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-hero', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-hero></cpsl-hero>');\n\n const element = await page.find('cpsl-hero');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try {
5
+ step(generator.next(value));
6
+ }
7
+ catch (e) {
8
+ reject(e);
9
+ } }
10
+ function rejected(value) { try {
11
+ step(generator["throw"](value));
12
+ }
13
+ catch (e) {
14
+ reject(e);
15
+ } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ import { newSpecPage } from "@stencil/core/testing";
21
+ import { CpslHero } from "../cpsl-hero";
22
+ describe('cpsl-hero', () => {
23
+ it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ const page = yield newSpecPage({
25
+ components: [CpslHero],
26
+ html: `<cpsl-hero></cpsl-hero>`,
27
+ });
28
+ expect(page.root).toEqualHtml(`
29
+ <cpsl-hero>
30
+ <mock:shadow-root>
31
+ <slot></slot>
32
+ </mock:shadow-root>
33
+ </cpsl-hero>
34
+ `);
35
+ }));
36
+ });
37
+ //# sourceMappingURL=cpsl-hero.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cpsl-hero.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-hero/test/cpsl-hero.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,QAAQ,CAAC;YACtB,IAAI,EAAE,yBAAyB;SAChC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslHero } from '../cpsl-hero';\n\ndescribe('cpsl-hero', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslHero],\n html: `<cpsl-hero></cpsl-hero>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-hero>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-hero>\n `);\n });\n});\n"]}
@@ -6,7 +6,7 @@ export class CpslIcon {
6
6
  this.icon = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '06850dc9a6d40b95e8b92ea8722bedfa1dc7b36f', part: "icon", role: "img" }, !Boolean(this.icon) ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
9
+ return (h(Host, { key: '3a513c8f07069fe226a579ba734cf475ab33c4cf', part: "icon", role: "img" }, !Boolean(this.icon) ? h("img", { src: this.src }) : h("div", { innerHTML: Icons[this.icon] })));
10
10
  }
11
11
  static get is() { return "cpsl-icon"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class CpslIcon {
44
44
  "mutable": false,
45
45
  "complexType": {
46
46
  "original": "IconType",
47
- "resolved": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\" | \"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\"",
47
+ "resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"brush\" | \"capsuleLogo\" | \"capsuleRingsDark\" | \"capsuleRings\" | \"capsule\" | \"checkCircle\" | \"check\" | \"chevronUp\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"cube\" | \"decentBrand\" | \"decent\" | \"discordBrand\" | \"discord\" | \"doubleArc\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"earth\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"farcasterBrand\" | \"farcaster\" | \"figmaBrand\" | \"figma\" | \"file\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"home\" | \"image\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"lightning01\" | \"lightning\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"menu\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"plusCircle\" | \"rampNetworkBrand\" | \"rampNetwork\" | \"redditBrand\" | \"reddit\" | \"refresh\" | \"settings\" | \"signalBrand\" | \"signal\" | \"singleArc\" | \"snapchatBrand\" | \"snapchat\" | \"stars\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"wallet\" | \"x\" | \"youtubeBrand\" | \"youtube\" | \"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BQ2\" | \"BQ3\" | \"BR\" | \"BS\" | \"BT\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CD2\" | \"CF\" | \"CH\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DS\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB2\" | \"GB\" | \"GD\" | \"GE\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GQ\" | \"GR\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SE\" | \"SG\" | \"SI\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"US\" | \"UY\" | \"UZ\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WS\" | \"YE\" | \"ZA\" | \"ZM\" | \"ZW\"",
48
48
  "references": {
49
49
  "IconType": {
50
50
  "location": "import",
@@ -0,0 +1,69 @@
1
+ :host {
2
+ --identicon-background-red: linear-gradient(136deg, #FF4270 6.86%, #FF7C7C 93.78%);
3
+ --identicon-background-orange: linear-gradient(136deg, #F45532 6.86%, #FF9B63 93.78%);
4
+ --identicon-background-yellow: linear-gradient(136deg, #FFA756 6.86%, #FBFF47 93.78%);
5
+ --identicon-background-green: linear-gradient(136deg, #0CAE60 6.86%, #7BFFD0 93.78%);
6
+ --identicon-background-blue: linear-gradient(136deg, #476FFF 6.86%, #47C8FF 93.78%);
7
+ --identicon-background-purple: linear-gradient(136deg, #9747FF 6.86%, #DA47FF 93.78%);
8
+ display: block;
9
+ width: 62px;
10
+ height: 62px;
11
+ aspect-ratio: 1;
12
+ border-radius: 6px;
13
+ position: relative;
14
+ border: 1px solid var(--cpsl-color-background-8);
15
+ }
16
+ :host > svg {
17
+ fill: rgba(255, 255, 255, 0.6);
18
+ position: absolute;
19
+ width: 35%;
20
+ }
21
+ :host > svg.rotate90 {
22
+ transform: rotate(0.25turn);
23
+ }
24
+ :host > svg.rotate180 {
25
+ transform: rotate(0.5turn);
26
+ }
27
+ :host > svg.rotate270 {
28
+ transform: rotate(0.75turn);
29
+ }
30
+ :host > svg:nth-child(1) {
31
+ right: 50%;
32
+ bottom: 50%;
33
+ }
34
+ :host > svg:nth-child(2) {
35
+ left: 50%;
36
+ bottom: 50%;
37
+ }
38
+ :host > svg:nth-child(3) {
39
+ right: 50%;
40
+ top: 50%;
41
+ }
42
+ :host > svg:nth-child(4) {
43
+ left: 50%;
44
+ top: 50%;
45
+ }
46
+
47
+ :host(.red) {
48
+ background: var(--identicon-background-red);
49
+ }
50
+
51
+ :host(.orange) {
52
+ background: var(--identicon-background-orange);
53
+ }
54
+
55
+ :host(.green) {
56
+ background: var(--identicon-background-green);
57
+ }
58
+
59
+ :host(.yellow) {
60
+ background: var(--identicon-background-yellow);
61
+ }
62
+
63
+ :host(.blue) {
64
+ background: var(--identicon-background-blue);
65
+ }
66
+
67
+ :host(.purple) {
68
+ background: var(--identicon-background-purple);
69
+ }
@@ -0,0 +1,100 @@
1
+ import { Host, h } from "@stencil/core";
2
+ const SingleArc = (rotation) => (h("svg", { class: {
3
+ rotate90: rotation === 1,
4
+ rotate180: rotation === 2,
5
+ rotate270: rotation === 3,
6
+ }, 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" })))));
7
+ const DoubleArc = (rotation) => (h("svg", { class: {
8
+ rotate90: rotation === 1,
9
+ rotate180: rotation === 2,
10
+ rotate270: rotation === 3,
11
+ }, 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" })))));
12
+ export class CpslIdenticon {
13
+ constructor() {
14
+ this.hash = undefined;
15
+ this.size = 40;
16
+ }
17
+ render() {
18
+ const [code, color] = stringToBinaryAndColor(this.hash);
19
+ const shapeA = ((code >> 2) & 1) !== 0;
20
+ const shapeB = ((code >> 3) & 1) !== 0;
21
+ const shapeC = ((code >> 4) & 1) !== 0;
22
+ const shapeD = ((code >> 5) & 1) !== 0;
23
+ const rotationA = (code >> 6) & 3;
24
+ const rotationB = (code >> 7) & 3;
25
+ const rotationC = (code >> 8) & 3;
26
+ const rotationD = (code >> 9) & 3;
27
+ const [shapes, rotations] = [
28
+ [shapeA, shapeB, shapeC, shapeD],
29
+ [rotationA, rotationB, rotationC, rotationD],
30
+ ];
31
+ return (h(Host, { key: '96fca00db5c91275e22f22b36b2688eab2c2a3b6', class: {
32
+ red: color === 'red',
33
+ orange: color === 'orange',
34
+ yellow: color === 'yellow',
35
+ green: color === 'green',
36
+ blue: color === 'blue',
37
+ purple: color === 'purple',
38
+ } }, shapes.map((isDouble, index) => {
39
+ return isDouble ? DoubleArc(rotations[index]) : SingleArc(rotations[index]);
40
+ })));
41
+ }
42
+ static get is() { return "cpsl-identicon"; }
43
+ static get encapsulation() { return "shadow"; }
44
+ static get originalStyleUrls() {
45
+ return {
46
+ "$": ["cpsl-identicon.scss"]
47
+ };
48
+ }
49
+ static get styleUrls() {
50
+ return {
51
+ "$": ["cpsl-identicon.css"]
52
+ };
53
+ }
54
+ static get properties() {
55
+ return {
56
+ "hash": {
57
+ "type": "string",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "string",
61
+ "resolved": "string",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": ""
69
+ },
70
+ "attribute": "hash",
71
+ "reflect": false
72
+ },
73
+ "size": {
74
+ "type": "number",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "number",
78
+ "resolved": "number",
79
+ "references": {}
80
+ },
81
+ "required": false,
82
+ "optional": false,
83
+ "docs": {
84
+ "tags": [],
85
+ "text": "The size of the identicon.\nDefault is: 40."
86
+ },
87
+ "attribute": "size",
88
+ "reflect": false,
89
+ "defaultValue": "40"
90
+ }
91
+ };
92
+ }
93
+ }
94
+ const COLORS = ['red', 'orange', 'yellow', 'green', 'blue', 'purple'];
95
+ function stringToBinaryAndColor(hash) {
96
+ const code = (hash.charCodeAt(0) << 24) | (hash.charCodeAt(1) << 16) | (hash.charCodeAt(2) << 8) | hash.charCodeAt(3);
97
+ const color = COLORS[Math.abs(code % 6)];
98
+ return [code, color];
99
+ }
100
+ //# sourceMappingURL=cpsl-identicon.js.map