@lukso/web-components 1.6.3 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/dist/color-palette.cjs +1363 -0
  2. package/dist/{shared/utils/color-palette.d.ts → color-palette.d.ts} +1 -2
  3. package/dist/color-palette.d.ts.map +1 -0
  4. package/dist/color-palette.js +1356 -0
  5. package/dist/components/index.cjs +74 -0
  6. package/dist/components/index.d.ts +2 -1
  7. package/dist/components/index.d.ts.map +1 -1
  8. package/dist/components/index.js +17 -7354
  9. package/dist/components/lukso-button/index.cjs +144 -0
  10. package/dist/components/lukso-button/index.js +95 -1190
  11. package/dist/components/lukso-card/index.cjs +143 -0
  12. package/dist/components/lukso-card/index.js +61 -1487
  13. package/dist/components/lukso-icon/index.cjs +4366 -0
  14. package/dist/components/lukso-icon/index.js +1713 -2410
  15. package/dist/components/lukso-input/index.cjs +219 -0
  16. package/dist/components/lukso-input/index.d.ts +1 -2
  17. package/dist/components/lukso-input/index.d.ts.map +1 -1
  18. package/dist/components/lukso-input/index.js +128 -1229
  19. package/dist/components/lukso-modal/index.cjs +70 -0
  20. package/dist/components/lukso-modal/index.d.ts +18 -0
  21. package/dist/components/lukso-modal/index.d.ts.map +1 -0
  22. package/dist/components/lukso-modal/index.js +68 -0
  23. package/dist/components/lukso-navbar/index.cjs +74 -0
  24. package/dist/components/lukso-navbar/index.js +43 -1154
  25. package/dist/components/lukso-profile/index.cjs +547 -0
  26. package/dist/components/lukso-profile/index.js +483 -1370
  27. package/dist/components/lukso-sanitize/index.cjs +1730 -0
  28. package/dist/components/lukso-sanitize/index.js +1643 -1544
  29. package/dist/components/lukso-tag/index.cjs +78 -0
  30. package/dist/components/lukso-tag/index.js +52 -1189
  31. package/dist/components/lukso-test/index.cjs +120 -0
  32. package/dist/components/lukso-test/index.js +65 -1767
  33. package/dist/components/lukso-username/index.cjs +126 -0
  34. package/dist/components/lukso-username/index.js +75 -1206
  35. package/dist/components/lukso-wizard/index.cjs +93 -0
  36. package/dist/components/lukso-wizard/index.js +47 -1253
  37. package/dist/directive-9ec64c08.js +28 -0
  38. package/dist/directive-db00f5fb.cjs +34 -0
  39. package/dist/index-4aafbf5c.cjs +67 -0
  40. package/dist/index-714323c9.js +18 -0
  41. package/dist/index-7dc05ee5.cjs +20 -0
  42. package/dist/index-e1077e02.js +59 -0
  43. package/dist/index.cjs +74 -0
  44. package/dist/index.js +17 -7354
  45. package/dist/shared/tailwind-element/index.cjs +10 -0
  46. package/dist/shared/tailwind-element/index.js +1 -1064
  47. package/dist/state-7fde94d1.js +9 -0
  48. package/dist/state-a62a7d5d.cjs +11 -0
  49. package/dist/style-map-3f88f525.js +10 -0
  50. package/dist/style-map-e193a4d9.cjs +12 -0
  51. package/dist/styles/main.css.map +1 -1
  52. package/package.json +85 -147
  53. package/tools/assets/fonts/index.cjs +10 -0
  54. package/tools/assets/fonts/index.d.ts +2 -0
  55. package/tools/assets/fonts/index.d.ts.map +1 -0
  56. package/tools/assets/fonts/index.js +6 -0
  57. package/tools/assets/images/index.cjs +10 -0
  58. package/tools/assets/images/index.d.ts +2 -0
  59. package/tools/assets/images/index.d.ts.map +1 -0
  60. package/tools/assets/images/index.js +6 -0
  61. package/tools/assets/index.cjs +15 -0
  62. package/tools/assets/index.d.ts +4 -0
  63. package/tools/assets/index.d.ts.map +1 -0
  64. package/tools/assets/index.js +9 -0
  65. package/tools/color-palette-a34f5d09.js +1356 -0
  66. package/tools/color-palette-bf5780ed.cjs +1362 -0
  67. package/tools/color-palette.cjs +11 -146
  68. package/tools/color-palette.d.ts +39 -52
  69. package/tools/color-palette.d.ts.map +1 -1
  70. package/tools/color-palette.js +1 -0
  71. package/tools/copy-assets.cjs +50 -136
  72. package/tools/copy-assets.d.ts +7 -9
  73. package/tools/copy-assets.d.ts.map +1 -1
  74. package/tools/copy-assets.js +49 -0
  75. package/tools/index.cjs +35 -0
  76. package/tools/index.d.ts +6 -0
  77. package/tools/index.d.ts.map +1 -0
  78. package/tools/index.js +22 -0
  79. package/tools/sass/index.cjs +7 -0
  80. package/tools/sass/index.js +1 -0
  81. package/tools/styles/index.cjs +5 -0
  82. package/tools/styles/index.js +3 -0
  83. package/tools/styles/main.css +287 -0
  84. package/CHANGELOG.md +0 -287
  85. package/dist/assets/fonts/index.js +0 -4
  86. package/dist/assets/fonts/index.ts +0 -1
  87. package/dist/assets/fonts/index.umd.cjs +0 -1
  88. package/dist/assets/images/index.js +0 -4
  89. package/dist/assets/images/index.ts +0 -1
  90. package/dist/assets/images/index.umd.cjs +0 -1
  91. package/dist/assets/index.js +0 -4
  92. package/dist/assets/index.ts +0 -1
  93. package/dist/assets/index.umd.cjs +0 -1
  94. package/dist/color-palette/index.js +0 -705
  95. package/dist/color-palette/index.umd.cjs +0 -1
  96. package/dist/components/index.umd.cjs +0 -3756
  97. package/dist/components/lukso-button/index.umd.cjs +0 -88
  98. package/dist/components/lukso-card/index.umd.cjs +0 -145
  99. package/dist/components/lukso-icon/index.umd.cjs +0 -3465
  100. package/dist/components/lukso-input/index.umd.cjs +0 -109
  101. package/dist/components/lukso-navbar/index.umd.cjs +0 -73
  102. package/dist/components/lukso-profile/index.umd.cjs +0 -90
  103. package/dist/components/lukso-sanitize/index.umd.cjs +0 -61
  104. package/dist/components/lukso-tag/index.umd.cjs +0 -67
  105. package/dist/components/lukso-test/index.umd.cjs +0 -95
  106. package/dist/components/lukso-username/index.umd.cjs +0 -75
  107. package/dist/components/lukso-wizard/index.umd.cjs +0 -89
  108. package/dist/index.umd.cjs +0 -3756
  109. package/dist/sass/index.js +0 -4
  110. package/dist/sass/index.ts +0 -1
  111. package/dist/sass/index.umd.cjs +0 -1
  112. package/dist/shared/assets/index.d.ts +0 -3
  113. package/dist/shared/assets/index.d.ts.map +0 -1
  114. package/dist/shared/directives/custom-class-map/index.d.ts +0 -26
  115. package/dist/shared/directives/custom-class-map/index.d.ts.map +0 -1
  116. package/dist/shared/directives/index.d.ts +0 -2
  117. package/dist/shared/directives/index.d.ts.map +0 -1
  118. package/dist/shared/styles/index.d.ts +0 -3
  119. package/dist/shared/styles/index.d.ts.map +0 -1
  120. package/dist/shared/tailwind-element/index.umd.cjs +0 -39
  121. package/dist/shared/tailwind-element.js +0 -1064
  122. package/dist/shared/tailwind-element.umd.cjs +0 -39
  123. package/dist/shared/utils/color-palette.d.ts.map +0 -1
  124. package/dist/styles/index.js +0 -4
  125. package/dist/styles/index.umd.cjs +0 -1
  126. package/src/components/index.ts +0 -13
  127. package/src/components/lukso-button/index.ts +0 -145
  128. package/src/components/lukso-button/lukso-button.stories.ts +0 -216
  129. package/src/components/lukso-card/index.ts +0 -131
  130. package/src/components/lukso-card/lukso-card.stories.ts +0 -191
  131. package/src/components/lukso-card/style.scss +0 -7
  132. package/src/components/lukso-icon/icons/add-photo.ts +0 -46
  133. package/src/components/lukso-icon/icons/arrow-down-lg.ts +0 -26
  134. package/src/components/lukso-icon/icons/arrow-down-sm.ts +0 -26
  135. package/src/components/lukso-icon/icons/arrow-left-lg.ts +0 -26
  136. package/src/components/lukso-icon/icons/arrow-left-sm.ts +0 -26
  137. package/src/components/lukso-icon/icons/arrow-right-lg.ts +0 -26
  138. package/src/components/lukso-icon/icons/arrow-right-sm.ts +0 -26
  139. package/src/components/lukso-icon/icons/arrow-up-lg.ts +0 -26
  140. package/src/components/lukso-icon/icons/arrow-up-sm.ts +0 -26
  141. package/src/components/lukso-icon/icons/barbell-outline.ts +0 -54
  142. package/src/components/lukso-icon/icons/bulb-outline.ts +0 -54
  143. package/src/components/lukso-icon/icons/camera.ts +0 -40
  144. package/src/components/lukso-icon/icons/clipboard.ts +0 -59
  145. package/src/components/lukso-icon/icons/clock.ts +0 -31
  146. package/src/components/lukso-icon/icons/close-lg.ts +0 -33
  147. package/src/components/lukso-icon/icons/close-sm.ts +0 -33
  148. package/src/components/lukso-icon/icons/cloud.ts +0 -25
  149. package/src/components/lukso-icon/icons/compass-outline.ts +0 -29
  150. package/src/components/lukso-icon/icons/complete-filled-fade-in.ts +0 -34
  151. package/src/components/lukso-icon/icons/complete-filled.ts +0 -32
  152. package/src/components/lukso-icon/icons/complete-outline.ts +0 -31
  153. package/src/components/lukso-icon/icons/connect.ts +0 -33
  154. package/src/components/lukso-icon/icons/connections.ts +0 -34
  155. package/src/components/lukso-icon/icons/contract-lock.ts +0 -43
  156. package/src/components/lukso-icon/icons/controller.ts +0 -55
  157. package/src/components/lukso-icon/icons/copy.ts +0 -31
  158. package/src/components/lukso-icon/icons/cross-outline.ts +0 -38
  159. package/src/components/lukso-icon/icons/dots.ts +0 -22
  160. package/src/components/lukso-icon/icons/edit.ts +0 -30
  161. package/src/components/lukso-icon/icons/error.ts +0 -31
  162. package/src/components/lukso-icon/icons/eth-logo.ts +0 -50
  163. package/src/components/lukso-icon/icons/expand.ts +0 -31
  164. package/src/components/lukso-icon/icons/extension.ts +0 -31
  165. package/src/components/lukso-icon/icons/eye-hide.ts +0 -47
  166. package/src/components/lukso-icon/icons/eye-show.ts +0 -37
  167. package/src/components/lukso-icon/icons/filter.ts +0 -43
  168. package/src/components/lukso-icon/icons/fish-outline.ts +0 -36
  169. package/src/components/lukso-icon/icons/flip.ts +0 -45
  170. package/src/components/lukso-icon/icons/globe.ts +0 -61
  171. package/src/components/lukso-icon/icons/google-color.ts +0 -35
  172. package/src/components/lukso-icon/icons/hamburger.ts +0 -40
  173. package/src/components/lukso-icon/icons/infinite.ts +0 -33
  174. package/src/components/lukso-icon/icons/information.ts +0 -38
  175. package/src/components/lukso-icon/icons/key-outline.ts +0 -25
  176. package/src/components/lukso-icon/icons/link.ts +0 -33
  177. package/src/components/lukso-icon/icons/link1.ts +0 -39
  178. package/src/components/lukso-icon/icons/link2.ts +0 -46
  179. package/src/components/lukso-icon/icons/link3.ts +0 -32
  180. package/src/components/lukso-icon/icons/link4.ts +0 -52
  181. package/src/components/lukso-icon/icons/loading.ts +0 -50
  182. package/src/components/lukso-icon/icons/location.ts +0 -33
  183. package/src/components/lukso-icon/icons/locked.ts +0 -44
  184. package/src/components/lukso-icon/icons/login-2.ts +0 -55
  185. package/src/components/lukso-icon/icons/login-3.ts +0 -53
  186. package/src/components/lukso-icon/icons/login.ts +0 -39
  187. package/src/components/lukso-icon/icons/logo-chrome.ts +0 -35
  188. package/src/components/lukso-icon/icons/lyx-logo.ts +0 -41
  189. package/src/components/lukso-icon/icons/mail.ts +0 -33
  190. package/src/components/lukso-icon/icons/menu-1.ts +0 -71
  191. package/src/components/lukso-icon/icons/menu-2.ts +0 -61
  192. package/src/components/lukso-icon/icons/migrate.ts +0 -47
  193. package/src/components/lukso-icon/icons/minimize.ts +0 -53
  194. package/src/components/lukso-icon/icons/network.ts +0 -49
  195. package/src/components/lukso-icon/icons/notifications.ts +0 -33
  196. package/src/components/lukso-icon/icons/phone-portrait-outline.ts +0 -33
  197. package/src/components/lukso-icon/icons/pin.ts +0 -25
  198. package/src/components/lukso-icon/icons/play-filled.ts +0 -23
  199. package/src/components/lukso-icon/icons/play-outline.ts +0 -24
  200. package/src/components/lukso-icon/icons/plus.ts +0 -33
  201. package/src/components/lukso-icon/icons/profile-add.ts +0 -43
  202. package/src/components/lukso-icon/icons/profile-export.ts +0 -42
  203. package/src/components/lukso-icon/icons/profile-import.ts +0 -42
  204. package/src/components/lukso-icon/icons/profile-recovery-2.ts +0 -62
  205. package/src/components/lukso-icon/icons/profile-recovery.ts +0 -55
  206. package/src/components/lukso-icon/icons/profile-restore.ts +0 -50
  207. package/src/components/lukso-icon/icons/profile.ts +0 -29
  208. package/src/components/lukso-icon/icons/progress-complete.ts +0 -289
  209. package/src/components/lukso-icon/icons/progress-indicator.ts +0 -236
  210. package/src/components/lukso-icon/icons/pulse-dot.ts +0 -22
  211. package/src/components/lukso-icon/icons/qr-code.ts +0 -122
  212. package/src/components/lukso-icon/icons/relayer.ts +0 -40
  213. package/src/components/lukso-icon/icons/reload.ts +0 -32
  214. package/src/components/lukso-icon/icons/return-down.ts +0 -33
  215. package/src/components/lukso-icon/icons/return-left.ts +0 -33
  216. package/src/components/lukso-icon/icons/return-right.ts +0 -33
  217. package/src/components/lukso-icon/icons/return-up.ts +0 -33
  218. package/src/components/lukso-icon/icons/search.ts +0 -28
  219. package/src/components/lukso-icon/icons/settings.ts +0 -33
  220. package/src/components/lukso-icon/icons/smart-contract-doc.ts +0 -40
  221. package/src/components/lukso-icon/icons/smart-contract.ts +0 -31
  222. package/src/components/lukso-icon/icons/star-filled.ts +0 -23
  223. package/src/components/lukso-icon/icons/star-outline.ts +0 -24
  224. package/src/components/lukso-icon/icons/step-dot.ts +0 -34
  225. package/src/components/lukso-icon/icons/step-progress.ts +0 -31
  226. package/src/components/lukso-icon/icons/steps.ts +0 -40
  227. package/src/components/lukso-icon/icons/tick.ts +0 -26
  228. package/src/components/lukso-icon/icons/timer-outline.ts +0 -47
  229. package/src/components/lukso-icon/icons/transaction-receive.ts +0 -39
  230. package/src/components/lukso-icon/icons/transaction-send.ts +0 -39
  231. package/src/components/lukso-icon/icons/transfer.ts +0 -47
  232. package/src/components/lukso-icon/icons/trash.ts +0 -40
  233. package/src/components/lukso-icon/icons/turn-down.ts +0 -33
  234. package/src/components/lukso-icon/icons/turn-left.ts +0 -33
  235. package/src/components/lukso-icon/icons/turn-right.ts +0 -33
  236. package/src/components/lukso-icon/icons/turn-up.ts +0 -33
  237. package/src/components/lukso-icon/icons/unlocked.ts +0 -41
  238. package/src/components/lukso-icon/icons/wallet-outline.ts +0 -35
  239. package/src/components/lukso-icon/icons/warning-round.ts +0 -32
  240. package/src/components/lukso-icon/icons/warning-triangle.ts +0 -32
  241. package/src/components/lukso-icon/index.ts +0 -310
  242. package/src/components/lukso-icon/lukso-icon.stories.ts +0 -116
  243. package/src/components/lukso-icon/style.scss +0 -3
  244. package/src/components/lukso-input/index.ts +0 -211
  245. package/src/components/lukso-input/lukso-input.stories.ts +0 -184
  246. package/src/components/lukso-navbar/index.ts +0 -63
  247. package/src/components/lukso-navbar/lukso-navbar.stories.ts +0 -70
  248. package/src/components/lukso-profile/index.ts +0 -106
  249. package/src/components/lukso-profile/lukso-profile.stories.ts +0 -104
  250. package/src/components/lukso-sanitize/index.ts +0 -28
  251. package/src/components/lukso-sanitize/lukso-sanitize.stories.ts +0 -30
  252. package/src/components/lukso-tag/index.ts +0 -68
  253. package/src/components/lukso-tag/lukso-tag.stories.ts +0 -129
  254. package/src/components/lukso-test/index.ts +0 -72
  255. package/src/components/lukso-test/test.component.scss +0 -7
  256. package/src/components/lukso-test/test.stories.ts +0 -31
  257. package/src/components/lukso-username/index.ts +0 -105
  258. package/src/components/lukso-username/lukso-username.stories.ts +0 -98
  259. package/src/components/lukso-wizard/index.ts +0 -74
  260. package/src/components/lukso-wizard/lukso-wizard.stories.ts +0 -52
  261. package/src/docs/animations.stories.mdx +0 -83
  262. package/src/docs/colors.stories.mdx +0 -77
  263. package/src/docs/drop-shadows.stories.mdx +0 -108
  264. package/src/docs/icons.stories.mdx +0 -1590
  265. package/src/docs/typography.stories.mdx +0 -253
  266. package/src/index.ts +0 -1
  267. package/src/postcss.config.ts +0 -8
  268. package/src/shared/assets/fonts/Apax-Bold.woff2 +0 -0
  269. package/src/shared/assets/fonts/Apax-Light.woff2 +0 -0
  270. package/src/shared/assets/fonts/Apax-Medium.woff2 +0 -0
  271. package/src/shared/assets/fonts/Apax-Regular.woff2 +0 -0
  272. package/src/shared/assets/fonts/Inter-Bold.woff2 +0 -0
  273. package/src/shared/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  274. package/src/shared/assets/fonts/Inter-Medium.woff2 +0 -0
  275. package/src/shared/assets/fonts/Inter-Regular.woff2 +0 -0
  276. package/src/shared/assets/fonts/Inter-SemiBold.woff2 +0 -0
  277. package/src/shared/assets/fonts/Inter-Thin.woff2 +0 -0
  278. package/src/shared/assets/fonts/PT-Mono-Bold.woff2 +0 -0
  279. package/src/shared/assets/fonts/PT-Mono-Regular.woff2 +0 -0
  280. package/src/shared/assets/fonts/index.ts +0 -1
  281. package/src/shared/assets/images/index.ts +0 -1
  282. package/src/shared/assets/images/lukso-logo.svg +0 -3
  283. package/src/shared/assets/images/profile-default.png +0 -0
  284. package/src/shared/assets/index.ts +0 -1
  285. package/src/shared/directives/custom-class-map/index.ts +0 -49
  286. package/src/shared/directives/index.ts +0 -1
  287. package/src/shared/globals.d.ts +0 -5
  288. package/src/shared/styles/colors.scss +0 -91
  289. package/src/shared/styles/component.scss +0 -13
  290. package/src/shared/styles/fonts.scss +0 -97
  291. package/src/shared/styles/index.ts +0 -1
  292. package/src/shared/styles/main.scss +0 -13
  293. package/src/shared/styles/typography.scss +0 -142
  294. package/src/shared/styles/variables.scss +0 -5
  295. package/src/shared/tailwind-element/index.ts +0 -16
  296. package/src/shared/utils/__tests__/slice-address.spec.ts +0 -15
  297. package/src/shared/utils/color-palette.ts +0 -76
  298. package/src/shared/utils/copy-assets.ts +0 -80
  299. package/src/shared/utils/hsl-color-map.ts +0 -20
  300. package/src/shared/utils/slice-address.ts +0 -30
  301. /package/{dist → tools}/assets/fonts/Apax-Bold.woff2 +0 -0
  302. /package/{dist → tools}/assets/fonts/Apax-Light.woff2 +0 -0
  303. /package/{dist → tools}/assets/fonts/Apax-Medium.woff2 +0 -0
  304. /package/{dist → tools}/assets/fonts/Apax-Regular.woff2 +0 -0
  305. /package/{dist → tools}/assets/fonts/Inter-Bold.woff2 +0 -0
  306. /package/{dist → tools}/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  307. /package/{dist → tools}/assets/fonts/Inter-Medium.woff2 +0 -0
  308. /package/{dist → tools}/assets/fonts/Inter-Regular.woff2 +0 -0
  309. /package/{dist → tools}/assets/fonts/Inter-SemiBold.woff2 +0 -0
  310. /package/{dist → tools}/assets/fonts/Inter-Thin.woff2 +0 -0
  311. /package/{dist → tools}/assets/fonts/PT-Mono-Bold.woff2 +0 -0
  312. /package/{dist → tools}/assets/fonts/PT-Mono-Regular.woff2 +0 -0
  313. /package/{dist → tools}/assets/images/lukso-logo.svg +0 -0
  314. /package/{dist → tools}/assets/images/profile-default.png +0 -0
  315. /package/{dist/shared/utils → tools}/hsl-color-map.d.ts +0 -0
  316. /package/{dist/shared/utils → tools}/hsl-color-map.d.ts.map +0 -0
  317. /package/{dist → tools}/sass/colors.scss +0 -0
  318. /package/{dist → tools}/sass/component.scss +0 -0
  319. /package/{dist → tools}/sass/fonts.scss +0 -0
  320. /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts +0 -0
  321. /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts.map +0 -0
  322. /package/{dist → tools}/sass/main.scss +0 -0
  323. /package/{dist → tools}/sass/typography.scss +0 -0
  324. /package/{dist → tools}/sass/variables.scss +0 -0
  325. /package/{dist/shared/utils → tools}/slice-address.d.ts +0 -0
  326. /package/{dist/shared/utils → tools}/slice-address.d.ts.map +0 -0
  327. /package/{dist/shared/assets/images → tools/styles}/index.d.ts +0 -0
  328. /package/{dist/shared/assets/images → tools/styles}/index.d.ts.map +0 -0
@@ -0,0 +1,547 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const shared_tailwindElement_index = require('../../index-4aafbf5c.cjs');
6
+ const directive = require('../../directive-db00f5fb.cjs');
7
+ const styleMap = require('../../style-map-e193a4d9.cjs');
8
+
9
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
+
11
+ var mainExports = {};
12
+ var main = {
13
+ get exports(){ return mainExports; },
14
+ set exports(v){ mainExports = v; },
15
+ };
16
+
17
+ (function (module, exports) {
18
+ (function webpackUniversalModuleDefinition(root, factory) {
19
+ module.exports = factory();
20
+ })(commonjsGlobal, function() {
21
+ return /******/ (function(modules) { // webpackBootstrap
22
+ /******/ // The module cache
23
+ /******/ var installedModules = {};
24
+
25
+ /******/ // The require function
26
+ /******/ function __webpack_require__(moduleId) {
27
+
28
+ /******/ // Check if module is in cache
29
+ /******/ if(installedModules[moduleId])
30
+ /******/ return installedModules[moduleId].exports;
31
+
32
+ /******/ // Create a new module (and put it into the cache)
33
+ /******/ var module = installedModules[moduleId] = {
34
+ /******/ exports: {},
35
+ /******/ id: moduleId,
36
+ /******/ loaded: false
37
+ /******/ };
38
+
39
+ /******/ // Execute the module function
40
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
41
+
42
+ /******/ // Flag the module as loaded
43
+ /******/ module.loaded = true;
44
+
45
+ /******/ // Return the exports of the module
46
+ /******/ return module.exports;
47
+ /******/ }
48
+
49
+
50
+ /******/ // expose the modules object (__webpack_modules__)
51
+ /******/ __webpack_require__.m = modules;
52
+
53
+ /******/ // expose the module cache
54
+ /******/ __webpack_require__.c = installedModules;
55
+
56
+ /******/ // __webpack_public_path__
57
+ /******/ __webpack_require__.p = "";
58
+
59
+ /******/ // Load entry module and return exports
60
+ /******/ return __webpack_require__(0);
61
+ /******/ })
62
+ /************************************************************************/
63
+ /******/ ([
64
+ /* 0 */
65
+ /***/ function(module, exports, __webpack_require__) {
66
+
67
+ const pnglib = __webpack_require__(1);
68
+ const hsl2rgb = __webpack_require__(2);
69
+
70
+ // The random number is a js implementation of the Xorshift PRNG
71
+ const randseed = new Array(4); // Xorshift: [x, y, z, w] 32 bit values
72
+
73
+ function seedrand(seed) {
74
+ for (let i = 0; i < randseed.length; i++) {
75
+ randseed[i] = 0;
76
+ }
77
+ for (let i = 0; i < seed.length; i++) {
78
+ randseed[i % 4] = (randseed[i % 4] << 5) - randseed[i % 4] + seed.charCodeAt(i);
79
+ }
80
+ }
81
+
82
+ function rand() {
83
+ // based on Java's String.hashCode(), expanded to 4 32bit values
84
+ const t = randseed[0] ^ (randseed[0] << 11);
85
+
86
+ randseed[0] = randseed[1];
87
+ randseed[1] = randseed[2];
88
+ randseed[2] = randseed[3];
89
+ randseed[3] = randseed[3] ^ (randseed[3] >> 19) ^ t ^ (t >> 8);
90
+
91
+ return (randseed[3] >>> 0) / (1 << 31 >>> 0);
92
+ }
93
+
94
+ function createColor() {
95
+ //saturation is the whole color spectrum
96
+ const h = Math.floor(rand() * 360);
97
+ //saturation goes from 40 to 100, it avoids greyish colors
98
+ const s = rand() * 60 + 40;
99
+ //lightness can be anything from 0 to 100, but probabilities are a bell curve around 50%
100
+ const l = (rand() + rand() + rand() + rand()) * 25 ;
101
+
102
+ return [h / 360, s / 100, l / 100];
103
+ }
104
+
105
+ function createImageData(size) {
106
+ const width = size; // Only support square icons for now
107
+ const height = size;
108
+
109
+ const dataWidth = Math.ceil(width / 2);
110
+ const mirrorWidth = width - dataWidth;
111
+
112
+ const data = [];
113
+ for (let y = 0; y < height; y++) {
114
+ let row = [];
115
+ for (let x = 0; x < dataWidth; x++) {
116
+ // this makes foreground and background color to have a 43% (1/2.3) probability
117
+ // spot color has 13% chance
118
+ row[x] = Math.floor(rand() * 2.3);
119
+ }
120
+ const r = row.slice(0, mirrorWidth).reverse();
121
+ row = row.concat(r);
122
+
123
+ for (let i = 0; i < row.length; i++) {
124
+ data.push(row[i]);
125
+ }
126
+ }
127
+
128
+ return data;
129
+ }
130
+
131
+ // Modifies the passed PNG to fill in a specified rectangle
132
+ function fillRect(png, x, y, w, h, color) {
133
+ for(let i = 0; i < w; i++) {
134
+ for (let j = 0; j < h; j++) {
135
+ png.buffer[png.index(x + i, y + j)] = color;
136
+ }
137
+ }
138
+ }
139
+
140
+ function buildOpts(opts) {
141
+ if (!opts.seed) {
142
+ throw new Error('No seed provided');
143
+ }
144
+
145
+ seedrand(opts.seed);
146
+
147
+ return Object.assign({
148
+ size: 8,
149
+ scale: 16,
150
+ color: createColor(),
151
+ bgcolor: createColor(),
152
+ spotcolor: createColor(),
153
+ }, opts)
154
+ }
155
+
156
+ function makeBlockie(address) {
157
+ const opts = buildOpts({ seed: address.toLowerCase() });
158
+
159
+ const imageData = createImageData(opts.size);
160
+ const width = Math.sqrt(imageData.length);
161
+
162
+ const p = new pnglib(opts.size * opts.scale, opts.size * opts.scale, 3);
163
+ p.color(...hsl2rgb(...opts.bgcolor));
164
+ const color = p.color(...hsl2rgb(...opts.color));
165
+ const spotcolor = p.color(...hsl2rgb(...opts.spotcolor));
166
+
167
+ for (let i = 0; i < imageData.length; i++) {
168
+ const row = Math.floor(i / width);
169
+ const col = i % width;
170
+ // if data is 0, leave the background
171
+ if (imageData[i]) {
172
+ // if data is 2, choose spot color, if 1 choose foreground
173
+ const pngColor = imageData[i] == 1 ? color : spotcolor;
174
+ fillRect(p, col * opts.scale, row * opts.scale, opts.scale, opts.scale, pngColor);
175
+ }
176
+ }
177
+ return `data:image/png;base64,${p.getBase64()}`;
178
+ }
179
+
180
+ module.exports = makeBlockie;
181
+
182
+
183
+ /***/ },
184
+ /* 1 */
185
+ /***/ function(module, exports) {
186
+
187
+ /**
188
+ * A handy class to calculate color values.
189
+ *
190
+ * @version 1.0
191
+ * @author Robert Eisele <robert@xarg.org>
192
+ * @copyright Copyright (c) 2010, Robert Eisele
193
+ * @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
194
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
195
+ *
196
+ */
197
+
198
+ // Modified by George Chan <gchan@21cn.com>
199
+
200
+ // Further modified by Will O'B <@wbobeirne> to make it
201
+ // UglifyJS and "use strict"; friendly
202
+
203
+ module.exports = function(width,height,depth) {
204
+
205
+
206
+ // helper functions for that ctx
207
+ function write(buffer, offs) {
208
+ for (var i = 2; i < arguments.length; i++) {
209
+ for (var j = 0; j < arguments[i].length; j++) {
210
+ buffer[offs++] = arguments[i].charAt(j);
211
+ }
212
+ }
213
+ }
214
+
215
+ function byte2(w) {
216
+ return String.fromCharCode((w >> 8) & 255, w & 255);
217
+ }
218
+
219
+ function byte4(w) {
220
+ return String.fromCharCode((w >> 24) & 255, (w >> 16) & 255, (w >> 8) & 255, w & 255);
221
+ }
222
+
223
+ function byte2lsb(w) {
224
+ return String.fromCharCode(w & 255, (w >> 8) & 255);
225
+ }
226
+
227
+ this.width = width;
228
+ this.height = height;
229
+ this.depth = depth;
230
+
231
+ // pixel data and row filter identifier size
232
+ this.pix_size = height * (width + 1);
233
+
234
+ // deflate header, pix_size, block headers, adler32 checksum
235
+ this.data_size = 2 + this.pix_size + 5 * Math.floor((0xfffe + this.pix_size) / 0xffff) + 4;
236
+
237
+ // offsets and sizes of Png chunks
238
+ this.ihdr_offs = 0; // IHDR offset and size
239
+ this.ihdr_size = 4 + 4 + 13 + 4;
240
+ this.plte_offs = this.ihdr_offs + this.ihdr_size; // PLTE offset and size
241
+ this.plte_size = 4 + 4 + 3 * depth + 4;
242
+ this.trns_offs = this.plte_offs + this.plte_size; // tRNS offset and size
243
+ this.trns_size = 4 + 4 + depth + 4;
244
+ this.idat_offs = this.trns_offs + this.trns_size; // IDAT offset and size
245
+ this.idat_size = 4 + 4 + this.data_size + 4;
246
+ this.iend_offs = this.idat_offs + this.idat_size; // IEND offset and size
247
+ this.iend_size = 4 + 4 + 4;
248
+ this.buffer_size = this.iend_offs + this.iend_size; // total PNG size
249
+
250
+ this.buffer = new Array();
251
+ this.palette = new Object();
252
+ this.pindex = 0;
253
+
254
+ var _crc32 = new Array();
255
+
256
+ // initialize buffer with zero bytes
257
+ for (var i = 0; i < this.buffer_size; i++) {
258
+ this.buffer[i] = "\x00";
259
+ }
260
+
261
+ // initialize non-zero elements
262
+ write(this.buffer, this.ihdr_offs, byte4(this.ihdr_size - 12), 'IHDR', byte4(width), byte4(height), "\x08\x03");
263
+ write(this.buffer, this.plte_offs, byte4(this.plte_size - 12), 'PLTE');
264
+ write(this.buffer, this.trns_offs, byte4(this.trns_size - 12), 'tRNS');
265
+ write(this.buffer, this.idat_offs, byte4(this.idat_size - 12), 'IDAT');
266
+ write(this.buffer, this.iend_offs, byte4(this.iend_size - 12), 'IEND');
267
+
268
+ // initialize deflate header
269
+ var header = ((8 + (7 << 4)) << 8) | (3 << 6);
270
+ header+= 31 - (header % 31);
271
+
272
+ write(this.buffer, this.idat_offs + 8, byte2(header));
273
+
274
+ // initialize deflate block headers
275
+ for (var i = 0; (i << 16) - 1 < this.pix_size; i++) {
276
+ var size, bits;
277
+ if (i + 0xffff < this.pix_size) {
278
+ size = 0xffff;
279
+ bits = "\x00";
280
+ } else {
281
+ size = this.pix_size - (i << 16) - i;
282
+ bits = "\x01";
283
+ }
284
+ write(this.buffer, this.idat_offs + 8 + 2 + (i << 16) + (i << 2), bits, byte2lsb(size), byte2lsb(~size));
285
+ }
286
+
287
+ /* Create crc32 lookup table */
288
+ for (var i = 0; i < 256; i++) {
289
+ var c = i;
290
+ for (var j = 0; j < 8; j++) {
291
+ if (c & 1) {
292
+ c = -306674912 ^ ((c >> 1) & 0x7fffffff);
293
+ } else {
294
+ c = (c >> 1) & 0x7fffffff;
295
+ }
296
+ }
297
+ _crc32[i] = c;
298
+ }
299
+
300
+ // compute the index into a png for a given pixel
301
+ this.index = function(x,y) {
302
+ var i = y * (this.width + 1) + x + 1;
303
+ var j = this.idat_offs + 8 + 2 + 5 * Math.floor((i / 0xffff) + 1) + i;
304
+ return j;
305
+ };
306
+
307
+ // convert a color and build up the palette
308
+ this.color = function(red, green, blue, alpha) {
309
+
310
+ alpha = alpha >= 0 ? alpha : 255;
311
+ var color = (((((alpha << 8) | red) << 8) | green) << 8) | blue;
312
+
313
+ if (typeof this.palette[color] == "undefined") {
314
+ if (this.pindex == this.depth) return "\x00";
315
+
316
+ var ndx = this.plte_offs + 8 + 3 * this.pindex;
317
+
318
+ this.buffer[ndx + 0] = String.fromCharCode(red);
319
+ this.buffer[ndx + 1] = String.fromCharCode(green);
320
+ this.buffer[ndx + 2] = String.fromCharCode(blue);
321
+ this.buffer[this.trns_offs+8+this.pindex] = String.fromCharCode(alpha);
322
+
323
+ this.palette[color] = String.fromCharCode(this.pindex++);
324
+ }
325
+ return this.palette[color];
326
+ };
327
+
328
+ // output a PNG string, Base64 encoded
329
+ this.getBase64 = function() {
330
+
331
+ var s = this.getDump();
332
+
333
+ var ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
334
+ var c1, c2, c3, e1, e2, e3, e4;
335
+ var l = s.length;
336
+ var i = 0;
337
+ var r = "";
338
+
339
+ do {
340
+ c1 = s.charCodeAt(i);
341
+ e1 = c1 >> 2;
342
+ c2 = s.charCodeAt(i+1);
343
+ e2 = ((c1 & 3) << 4) | (c2 >> 4);
344
+ c3 = s.charCodeAt(i+2);
345
+ if (l < i+2) { e3 = 64; } else { e3 = ((c2 & 0xf) << 2) | (c3 >> 6); }
346
+ if (l < i+3) { e4 = 64; } else { e4 = c3 & 0x3f; }
347
+ r+= ch.charAt(e1) + ch.charAt(e2) + ch.charAt(e3) + ch.charAt(e4);
348
+ } while ((i+= 3) < l);
349
+ return r;
350
+ };
351
+
352
+ // output a PNG string
353
+ this.getDump = function() {
354
+ // compute adler32 of output pixels + row filter bytes
355
+ var BASE = 65521; /* largest prime smaller than 65536 */
356
+ var NMAX = 5552; /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
357
+ var s1 = 1;
358
+ var s2 = 0;
359
+ var n = NMAX;
360
+
361
+ for (var y = 0; y < this.height; y++) {
362
+ for (var x = -1; x < this.width; x++) {
363
+ s1+= this.buffer[this.index(x, y)].charCodeAt(0);
364
+ s2+= s1;
365
+ if ((n-= 1) == 0) {
366
+ s1%= BASE;
367
+ s2%= BASE;
368
+ n = NMAX;
369
+ }
370
+ }
371
+ }
372
+ s1%= BASE;
373
+ s2%= BASE;
374
+ write(this.buffer, this.idat_offs + this.idat_size - 8, byte4((s2 << 16) | s1));
375
+
376
+ // compute crc32 of the PNG chunks
377
+ function crc32(png, offs, size) {
378
+ var crc = -1;
379
+ for (var i = 4; i < size-4; i += 1) {
380
+ crc = _crc32[(crc ^ png[offs+i].charCodeAt(0)) & 0xff] ^ ((crc >> 8) & 0x00ffffff);
381
+ }
382
+ write(png, offs+size-4, byte4(crc ^ -1));
383
+ }
384
+
385
+ crc32(this.buffer, this.ihdr_offs, this.ihdr_size);
386
+ crc32(this.buffer, this.plte_offs, this.plte_size);
387
+ crc32(this.buffer, this.trns_offs, this.trns_size);
388
+ crc32(this.buffer, this.idat_offs, this.idat_size);
389
+ crc32(this.buffer, this.iend_offs, this.iend_size);
390
+
391
+ // convert PNG to string
392
+ return "\x89PNG\r\n\x1a\n" + this.buffer.join('');
393
+ };
394
+ };
395
+
396
+
397
+ /***/ },
398
+ /* 2 */
399
+ /***/ function(module, exports) {
400
+
401
+ // https://stackoverflow.com/questions/2353211/hsl-to-rgb-color-conversion
402
+ /**
403
+ * Converts an HSL color value to RGB. Conversion formula
404
+ * adapted from http://en.wikipedia.org/wiki/HSL_color_space.
405
+ * Assumes h, s, and l are contained in the set [0, 1] and
406
+ * returns r, g, and b in the set [0, 255].
407
+ *
408
+ * @param {number} h The hue
409
+ * @param {number} s The saturation
410
+ * @param {number} l The lightness
411
+ * @return {Array} The RGB representation
412
+ */
413
+
414
+ function hue2rgb(p, q, t) {
415
+ if(t < 0) t += 1;
416
+ if(t > 1) t -= 1;
417
+ if(t < 1/6) return p + (q - p) * 6 * t;
418
+ if(t < 1/2) return q;
419
+ if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
420
+ return p;
421
+ }
422
+
423
+ function hsl2rgb(h, s, l){
424
+ let r, g, b;
425
+
426
+ if (s == 0) {
427
+ r = g = b = l; // achromatic
428
+ } else {
429
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
430
+ const p = 2 * l - q;
431
+ r = hue2rgb(p, q, h + 1/3);
432
+ g = hue2rgb(p, q, h);
433
+ b = hue2rgb(p, q, h - 1/3);
434
+ }
435
+
436
+ return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255), 255];
437
+ }
438
+
439
+ module.exports = hsl2rgb;
440
+
441
+
442
+ /***/ }
443
+ /******/ ])
444
+ });
445
+ } (main));
446
+
447
+ var __defProp = Object.defineProperty;
448
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
449
+ var __decorateClass = (decorators, target, key, kind) => {
450
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
451
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
452
+ if (decorator = decorators[i])
453
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
454
+ if (kind && result)
455
+ __defProp(target, key, result);
456
+ return result;
457
+ };
458
+ exports.LuksoProfile = class LuksoProfile extends shared_tailwindElement_index.TailwindElement {
459
+ constructor() {
460
+ super(...arguments);
461
+ this.profileUrl = "";
462
+ this.profileAddress = "";
463
+ this.hasIdenticon = false;
464
+ this.size = "large";
465
+ this.sizes = {
466
+ "x-small": {
467
+ identiconSize: void 0,
468
+ profileImageSize: 24
469
+ },
470
+ small: {
471
+ identiconSize: 16,
472
+ profileImageSize: 40
473
+ },
474
+ medium: {
475
+ identiconSize: 20,
476
+ profileImageSize: 56
477
+ },
478
+ large: {
479
+ identiconSize: 24,
480
+ profileImageSize: 80
481
+ },
482
+ "x-large": {
483
+ identiconSize: 28,
484
+ profileImageSize: 96
485
+ }
486
+ };
487
+ this.defaultProfileUrl = "/assets/images/profile-default.png";
488
+ }
489
+ profileImageSize() {
490
+ return this.sizes[this.size].profileImageSize;
491
+ }
492
+ identiconSize() {
493
+ return this.sizes[this.size].identiconSize;
494
+ }
495
+ identicon() {
496
+ return this.hasIdenticon && this.profileAddress && this.identiconSize() ? mainExports(this.profileAddress) : "";
497
+ }
498
+ render() {
499
+ return shared_tailwindElement_index.y`
500
+ <div
501
+ data-testid="profile"
502
+ style=${styleMap.i({
503
+ backgroundImage: `url(${this.defaultProfileUrl})`,
504
+ width: `${this.profileImageSize()}px`,
505
+ height: `${this.profileImageSize()}px`
506
+ })}
507
+ class="rounded-full bg-[50%] bg-no-repeat bg-cover bg-neutral-90
508
+ outline outline-2 outline-neutral-100"
509
+ >
510
+ <div
511
+ style=${styleMap.i({
512
+ backgroundImage: `url(${this.profileUrl})`,
513
+ width: `${this.profileImageSize()}px`,
514
+ height: `${this.profileImageSize()}px`
515
+ })}
516
+ class="rounded-full bg-[50%] bg-no-repeat bg-cover relative
517
+ "
518
+ >
519
+ ${this.identicon() ? shared_tailwindElement_index.y`<img
520
+ src=${this.identicon()}
521
+ class="absolute shadow-shadow-1xl rounded-full
522
+ outline outline-2 outline-neutral-100 right-0 bottom-0"
523
+ style=${styleMap.i({
524
+ width: `${this.identiconSize()}px`,
525
+ height: `${this.identiconSize()}px`
526
+ })}
527
+ />` : ""}
528
+ </div>
529
+ </div>
530
+ `;
531
+ }
532
+ };
533
+ __decorateClass([
534
+ directive.e({ type: String, attribute: "profile-url" })
535
+ ], exports.LuksoProfile.prototype, "profileUrl", 2);
536
+ __decorateClass([
537
+ directive.e({ type: String, attribute: "profile-address" })
538
+ ], exports.LuksoProfile.prototype, "profileAddress", 2);
539
+ __decorateClass([
540
+ directive.e({ type: Boolean, attribute: "has-identicon" })
541
+ ], exports.LuksoProfile.prototype, "hasIdenticon", 2);
542
+ __decorateClass([
543
+ directive.e({ type: String })
544
+ ], exports.LuksoProfile.prototype, "size", 2);
545
+ exports.LuksoProfile = __decorateClass([
546
+ directive.e$1("lukso-profile")
547
+ ], exports.LuksoProfile);