@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
@@ -1,310 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
-
4
- import { TailwindStyledElement } from '@/shared/tailwind-element'
5
- import style from './style.scss?inline'
6
- import { addPhoto } from './icons/add-photo'
7
- import { arrowDownLg } from './icons/arrow-down-lg'
8
- import { arrowDownSm } from './icons/arrow-down-sm'
9
- import { arrowLeftLg } from './icons/arrow-left-lg'
10
- import { arrowLeftSm } from './icons/arrow-left-sm'
11
- import { arrowRightLg } from './icons/arrow-right-lg'
12
- import { arrowRightSm } from './icons/arrow-right-sm'
13
- import { arrowUpLg } from './icons/arrow-up-lg'
14
- import { arrowUpSm } from './icons/arrow-up-sm'
15
- import { barbellOutline } from './icons/barbell-outline'
16
- import { bulbOutline } from './icons/bulb-outline'
17
- import { camera } from './icons/camera'
18
- import { clipboard } from './icons/clipboard'
19
- import { clock } from './icons/clock'
20
- import { closeLg } from './icons/close-lg'
21
- import { closeSm } from './icons/close-sm'
22
- import { cloud } from './icons/cloud'
23
- import { compassOutline } from './icons/compass-outline'
24
- import { completeFilled } from './icons/complete-filled'
25
- import { completeOutline } from './icons/complete-outline'
26
- import { contractLock } from './icons/contract-lock'
27
- import { connect } from './icons/connect'
28
- import { connections } from './icons/connections'
29
- import { controller } from './icons/controller'
30
- import { copy } from './icons/copy'
31
- import { crossOutline } from './icons/cross-outline'
32
- import { dots } from './icons/dots'
33
- import { edit } from './icons/edit'
34
- import { error } from './icons/error'
35
- import { expand } from './icons/expand'
36
- import { extension } from './icons/extension'
37
- import { eyeHide } from './icons/eye-hide'
38
- import { eyeShow } from './icons/eye-show'
39
- import { filter } from './icons/filter'
40
- import { fishOutline } from './icons/fish-outline'
41
- import { flip } from './icons/flip'
42
- import { globe } from './icons/globe'
43
- import { hamburger } from './icons/hamburger'
44
- import { infinite } from './icons/infinite'
45
- import { information } from './icons/information'
46
- import { keyOutline } from './icons/key-outline'
47
- import { link } from './icons/link'
48
- import { link1 } from './icons/link1'
49
- import { link2 } from './icons/link2'
50
- import { link3 } from './icons/link3'
51
- import { link4 } from './icons/link4'
52
- import { loading } from './icons/loading'
53
- import { location } from './icons/location'
54
- import { locked } from './icons/locked'
55
- import { login } from './icons/login'
56
- import { login2 } from './icons/login-2'
57
- import { login3 } from './icons/login-3'
58
- import { logoChrome } from './icons/logo-chrome'
59
- import { mail } from './icons/mail'
60
- import { menu1 } from './icons/menu-1'
61
- import { menu2 } from './icons/menu-2'
62
- import { migrate } from './icons/migrate'
63
- import { minimize } from './icons/minimize'
64
- import { network } from './icons/network'
65
- import { notifications } from './icons/notifications'
66
- import { phonePortraitOutline } from './icons/phone-portrait-outline'
67
- import { pin } from './icons/pin'
68
- import { playFilled } from './icons/play-filled'
69
- import { playOutline } from './icons/play-outline'
70
- import { plus } from './icons/plus'
71
- import { profileAdd } from './icons/profile-add'
72
- import { profileExport } from './icons/profile-export'
73
- import { profileImport } from './icons/profile-import'
74
- import { profileRecovery } from './icons/profile-recovery'
75
- import { profileRecovery2 } from './icons/profile-recovery-2'
76
- import { profileRestore } from './icons/profile-restore'
77
- import { profile } from './icons/profile'
78
- import { qrCode } from './icons/qr-code'
79
- import { relayer } from './icons/relayer'
80
- import { reload } from './icons/reload'
81
- import { returnDown } from './icons/return-down'
82
- import { returnLeft } from './icons/return-left'
83
- import { returnRight } from './icons/return-right'
84
- import { returnUp } from './icons/return-up'
85
- import { search } from './icons/search'
86
- import { settings } from './icons/settings'
87
- import { smartContractDoc } from './icons/smart-contract-doc'
88
- import { smartContract } from './icons/smart-contract'
89
- import { starFilled } from './icons/star-filled'
90
- import { starOutline } from './icons/star-outline'
91
- import { stepDot } from './icons/step-dot'
92
- import { stepProgress } from './icons/step-progress'
93
- import { steps } from './icons/steps'
94
- import { tick } from './icons/tick'
95
- import { timerOutline } from './icons/timer-outline'
96
- import { transactionReceive } from './icons/transaction-receive'
97
- import { transactionSend } from './icons/transaction-send'
98
- import { transfer } from './icons/transfer'
99
- import { trash } from './icons/trash'
100
- import { turnDown } from './icons/turn-down'
101
- import { turnLeft } from './icons/turn-left'
102
- import { turnRight } from './icons/turn-right'
103
- import { turnUp } from './icons/turn-up'
104
- import { unlocked } from './icons/unlocked'
105
- import { walletOutline } from './icons/wallet-outline'
106
- import { warningRound } from './icons/warning-round'
107
- import { warningTriangle } from './icons/warning-triangle'
108
- import { googleColor } from './icons/google-color'
109
- import { ethLogo } from './icons/eth-logo'
110
- import { lyxLogo } from './icons/lyx-logo'
111
- import { progressIndicator } from './icons/progress-indicator'
112
- import { pulseDot } from './icons/pulse-dot'
113
- import { progressComplete } from './icons/progress-complete'
114
- import { completeFilledFadeIn } from './icons/complete-filled-fade-in'
115
-
116
- export type IconOptions = {
117
- width: number
118
- height: number
119
- color: string
120
- strokeWidth: number
121
- secondaryColor?: string
122
- }
123
-
124
- export type IconSize = 'small' | 'medium' | 'large' | 'x-large'
125
-
126
- type IconSizeDef = {
127
- width: number
128
- height: number
129
- strokeWidth: number
130
- }
131
-
132
- const iconMap = {
133
- 'add-photo': addPhoto,
134
- 'arrow-down-lg': arrowDownLg,
135
- 'arrow-down-sm': arrowDownSm,
136
- 'arrow-left-lg': arrowLeftLg,
137
- 'arrow-left-sm': arrowLeftSm,
138
- 'arrow-right-lg': arrowRightLg,
139
- 'arrow-right-sm': arrowRightSm,
140
- 'arrow-up-lg': arrowUpLg,
141
- 'arrow-up-sm': arrowUpSm,
142
- 'barbell-outline': barbellOutline,
143
- 'bulb-outline': bulbOutline,
144
- camera,
145
- clipboard,
146
- clock,
147
- 'close-lg': closeLg,
148
- 'close-sm': closeSm,
149
- cloud,
150
- 'compass-outline': compassOutline,
151
- 'complete-filled': completeFilled,
152
- 'complete-outline': completeOutline,
153
- connect,
154
- connections,
155
- 'contract-lock': contractLock,
156
- controller,
157
- copy,
158
- 'cross-outline': crossOutline,
159
- dots,
160
- edit,
161
- error,
162
- expand,
163
- extension,
164
- 'eye-hide': eyeHide,
165
- 'eye-show': eyeShow,
166
- filter,
167
- 'fish-outline': fishOutline,
168
- flip,
169
- globe,
170
- hamburger,
171
- infinite,
172
- information,
173
- 'key-outline': keyOutline,
174
- link,
175
- 'link-1': link1,
176
- 'link-2': link2,
177
- 'link-3': link3,
178
- 'link-4': link4,
179
- loading,
180
- location,
181
- locked,
182
- login,
183
- 'login-2': login2,
184
- 'login-3': login3,
185
- 'logo-chrome': logoChrome,
186
- mail,
187
- 'menu-1': menu1,
188
- 'menu-2': menu2,
189
- migrate,
190
- minimize,
191
- network,
192
- notifications,
193
- 'phone-portrait-outline': phonePortraitOutline,
194
- pin,
195
- 'play-filled': playFilled,
196
- 'play-outline': playOutline,
197
- plus,
198
- 'profile-add': profileAdd,
199
- 'profile-export': profileExport,
200
- 'profile-import': profileImport,
201
- 'profile-recovery': profileRecovery,
202
- 'profile-recovery-2': profileRecovery2,
203
- 'profile-restore': profileRestore,
204
- profile,
205
- 'qr-code': qrCode,
206
- relayer,
207
- reload,
208
- 'return-down': returnDown,
209
- 'return-left': returnLeft,
210
- 'return-right': returnRight,
211
- 'return-up': returnUp,
212
- search,
213
- settings,
214
- 'smart-contract-doc': smartContractDoc,
215
- 'smart-contract': smartContract,
216
- 'star-filled': starFilled,
217
- 'star-outline': starOutline,
218
- 'step-dot': stepDot,
219
- 'step-progress': stepProgress,
220
- steps,
221
- tick,
222
- 'timer-outline': timerOutline,
223
- 'transaction-receive': transactionReceive,
224
- 'transaction-send': transactionSend,
225
- transfer,
226
- trash,
227
- 'turn-down': turnDown,
228
- 'turn-left': turnLeft,
229
- 'turn-right': turnRight,
230
- 'turn-up': turnUp,
231
- unlocked,
232
- 'wallet-outline': walletOutline,
233
- 'warning-round': warningRound,
234
- 'warning-triangle': warningTriangle,
235
- 'google-color': googleColor,
236
- 'eth-logo': ethLogo,
237
- 'lyx-logo': lyxLogo,
238
- 'progress-indicator': progressIndicator,
239
- 'pulse-dot': pulseDot,
240
- 'progress-complete': progressComplete,
241
- 'complete-filled-fade-in': completeFilledFadeIn,
242
- }
243
-
244
- @customElement('lukso-icon')
245
- export class LuksoIcon extends TailwindStyledElement(style) {
246
- @property({ type: String })
247
- name = ''
248
-
249
- @property({ type: String })
250
- size = 'medium'
251
-
252
- @property({ type: String })
253
- color = 'neutral-20'
254
-
255
- @property({ type: String, attribute: 'secondary-color' })
256
- secondaryColor = ''
257
-
258
- private sizes: { [key in IconSize]: IconSizeDef } = {
259
- small: {
260
- width: 16,
261
- height: 16,
262
- strokeWidth: 2,
263
- },
264
- medium: {
265
- width: 24,
266
- height: 24,
267
- strokeWidth: 1.5,
268
- },
269
- large: {
270
- width: 32,
271
- height: 32,
272
- strokeWidth: 1.5,
273
- },
274
- 'x-large': {
275
- width: 40,
276
- height: 40,
277
- strokeWidth: 1.5,
278
- },
279
- }
280
-
281
- render() {
282
- const icon = iconMap[this.name]
283
-
284
- if (!icon) {
285
- console.warn(`Icon ${this.name} not found`)
286
- }
287
-
288
- const size = this.sizes[this.size]
289
-
290
- if (!size) {
291
- console.warn(`Size ${this.size} not found`)
292
- }
293
-
294
- return html`
295
- ${icon({
296
- width: size.width,
297
- height: size.height,
298
- color: this.color,
299
- strokeWidth: size.strokeWidth,
300
- secondaryColor: this.secondaryColor,
301
- })}
302
- `
303
- }
304
- }
305
-
306
- declare global {
307
- interface HTMLElementTagNameMap {
308
- 'lukso-icon': LuksoIcon
309
- }
310
- }
@@ -1,116 +0,0 @@
1
- import { html } from 'lit-html'
2
- import './index'
3
-
4
- /** Documentation and examples of `lukso-icon` component. Icons comes in `small`, `medium`, `large` and `x-large` size that is set in `size` property.
5
- * Please check all available icons in Icons Showcase.
6
- */
7
- export default {
8
- title: 'Design System/Components/lukso-icon',
9
- component: 'lukso-icon',
10
- argTypes: {
11
- name: {
12
- control: { type: 'text' },
13
- },
14
- size: {
15
- control: { type: 'select' },
16
- options: ['small', 'medium', 'large', 'x-large'],
17
- },
18
- color: {
19
- control: { type: 'text' },
20
- },
21
- secondaryColor: {
22
- control: { type: 'text' },
23
- },
24
- animation: {
25
- control: { type: 'select' },
26
- options: [
27
- 'animate-spin',
28
- 'animate-ping',
29
- 'animate-pulse',
30
- 'animate-bounce',
31
- 'animate-pulse-resize',
32
- ],
33
- },
34
- },
35
- args: {
36
- name: 'profile-recovery',
37
- size: 'medium',
38
- color: 'neutral-20',
39
- secondaryColor: '',
40
- animation: undefined,
41
- },
42
- parameters: {
43
- controls: {
44
- exclude: ['sizes', 'secondary-color', 'styles'],
45
- },
46
- design: {
47
- type: 'figma',
48
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=52%3A1473&t=loplCvndobu6AA6P-4',
49
- },
50
- },
51
- }
52
-
53
- const Template = ({ name, size, color, secondaryColor, animation }) =>
54
- html`<lukso-icon
55
- name=${name}
56
- size=${size}
57
- color=${color}
58
- secondary-color=${secondaryColor}
59
- class=${animation}
60
- ></lukso-icon>`
61
-
62
- /** By default icon comes in `medium` size of `24x24` pixels with `neutral-20` color. */
63
- export const DefaultIcon = Template.bind({})
64
- DefaultIcon.args = {
65
- name: 'profile-recovery',
66
- }
67
-
68
- /** Example of `small` size of `16x16` pixels. */
69
- export const SmallIcon = Template.bind({})
70
- SmallIcon.args = {
71
- name: 'profile-recovery',
72
- size: 'small',
73
- }
74
-
75
- /** Example of `large` size of `32x32` pixels. */
76
- export const LargeIcon = Template.bind({})
77
- LargeIcon.args = {
78
- name: 'profile-recovery',
79
- size: 'large',
80
- }
81
-
82
- /** Example of `x-large` size of `40x40` pixels. */
83
- export const XLargeIcon = Template.bind({})
84
- XLargeIcon.args = {
85
- name: 'profile-recovery',
86
- size: 'x-large',
87
- }
88
-
89
- /** You can change color to any from the palette with `color` property. */
90
- export const CustomColorIcon = Template.bind({})
91
- CustomColorIcon.args = {
92
- name: 'profile-recovery',
93
- color: 'coral-65',
94
- }
95
-
96
- /** Some icons contain secondary color that is applied with `secondary-color` property. */
97
- export const SecondaryColorIcon = Template.bind({})
98
- SecondaryColorIcon.args = {
99
- name: 'complete-filled',
100
- color: 'coral-65',
101
- secondaryColor: 'honey-72',
102
- }
103
-
104
- /** Some icons contain multiple colors and they don't use `color` property. You can still use different sizes tho. */
105
- export const ColoredIcon = Template.bind({})
106
- ColoredIcon.args = {
107
- name: 'google-color',
108
- }
109
-
110
- /** You can animate any icon by applying `animate-[name]` property. Some icons come with build in animation. Check more details in `Animations` and `Icons` section. */
111
- export const AnimatedIcon = Template.bind({})
112
- AnimatedIcon.args = {
113
- name: 'step-progress',
114
- secondaryColor: 'neutral-100',
115
- animation: 'animate-spin',
116
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- @apply inline-flex;
3
- }
@@ -1,211 +0,0 @@
1
- import { html, nothing } from 'lit'
2
- import { customElement, property, state } from 'lit/decorators.js'
3
- import { HTMLInputTypeAttribute } from 'react'
4
-
5
- import { TailwindElement } from '@/shared/tailwind-element'
6
- import { customClassMap } from '@/shared/directives'
7
-
8
- @customElement('lukso-input')
9
- export class LuksoInput extends TailwindElement {
10
- @property({ type: String })
11
- value = ''
12
-
13
- @property({ type: String })
14
- name = ''
15
-
16
- @property({ type: String })
17
- type: HTMLInputTypeAttribute = 'text'
18
-
19
- @property({ type: String })
20
- placeholder = ''
21
-
22
- @property({ type: String })
23
- label = ''
24
-
25
- @property({ type: String })
26
- description = ''
27
-
28
- @property({ type: String })
29
- error = ''
30
-
31
- @property({ type: String })
32
- unit = ''
33
-
34
- @property({ type: Boolean, attribute: 'is-full-width' })
35
- isFullWidth = false
36
-
37
- @property({ type: Boolean })
38
- autofocus = false
39
-
40
- @property({ type: Number })
41
- max: number | undefined = undefined
42
-
43
- @property({ type: Number })
44
- min: number | undefined = undefined
45
-
46
- @state()
47
- private hasHocus = false
48
-
49
- @state()
50
- private hasHighlight = false
51
-
52
- private defaultInputStyles = `bg-neutral-100 text-neutral-20 paragraph-16-regular px-4 py-3
53
- border border-solid h-[48px] placeholder:text-neutral-70
54
- outline-none transition transition-all duration-150 appearance-none`
55
-
56
- private defaultUnitStyles = `paragraph-12-regular text-neutral-60 flex px-3.5 items-center relative
57
- border border-solid h-[48px] transition transition-all duration-150
58
- rounded-r-xl border-l-0 before:bg-neutral-90 before:absolute before:top-[calc(50%-12px)] before:left-0
59
- before:w-[1px] before:h-[24px] whitespace-nowrap`
60
-
61
- inputTemplate() {
62
- return html`
63
- <input
64
- data-testid="input"
65
- id=${this.name}
66
- name=${this.name}
67
- type=${this.type}
68
- value=${this.value}
69
- placeholder=${this.placeholder}
70
- ?autofocus=${this.autofocus}
71
- min=${this.min}
72
- max=${this.max}
73
- class=${customClassMap({
74
- [this.defaultInputStyles]: true,
75
- [this.error === '' ? 'border-neutral-90' : 'border-red-85']:
76
- !this.hasHighlight,
77
- [this.error === '' ? 'border-neutral-35' : 'border-red-65']:
78
- this.hasHighlight,
79
- ['rounded-l-xl border-r-0']: this.unit !== '',
80
- ['rounded-xl']: this.unit === '',
81
- ['w-full']: this.isFullWidth,
82
- ['w-[350px]']: !this.isFullWidth && this.unit === '',
83
- ['w-[300px]']: !this.isFullWidth && this.unit !== '',
84
- })}
85
- @focus=${this.handleFocus}
86
- @blur=${this.handleBlur}
87
- @keyup=${this.handleKeyUp}
88
- @keydown=${this.handleKeyDown}
89
- @keypress=${this.handleKeyPress}
90
- @mouseenter=${this.handleMouseOver}
91
- @mouseleave=${this.handleMouseOut}
92
- />
93
- `
94
- }
95
-
96
- labelTemplate() {
97
- return html`
98
- <label for=${this.name} class="heading-h5 text-neutral-20 pb-2 block"
99
- >${this.label}</label
100
- >
101
- `
102
- }
103
-
104
- descriptionTemplate() {
105
- return html`
106
- <div class="paragraph-12-regular text-neutral-20 pb-2">
107
- ${this.description ?? nothing}
108
- </div>
109
- `
110
- }
111
-
112
- errorTemplate() {
113
- return html`<div class="paragraph-12-regular text-red-65 pt-2">
114
- ${this.error}
115
- </div>`
116
- }
117
-
118
- unitTemplate() {
119
- return html`<div
120
- class=${customClassMap({
121
- [this.defaultUnitStyles]: true,
122
- [this.error === '' ? 'border-neutral-90' : 'border-red-85']:
123
- !this.hasHighlight,
124
- [this.error === '' ? 'border-neutral-35' : 'border-red-65']:
125
- this.hasHighlight,
126
- })}
127
- @mouseenter=${this.handleMouseOver}
128
- @mouseleave=${this.handleMouseOut}
129
- >
130
- ${this.unit}
131
- </div>`
132
- }
133
-
134
- private handleFocus() {
135
- this.hasHocus = true
136
- this.hasHighlight = true
137
- }
138
-
139
- private handleBlur() {
140
- this.hasHocus = false
141
- this.hasHighlight = false
142
- }
143
-
144
- private handleKeyUp(event: KeyboardEvent) {
145
- const target = event.target as HTMLInputElement
146
- const keyEvent = new CustomEvent('on-key-up', {
147
- detail: {
148
- value: target.value,
149
- event,
150
- },
151
- bubbles: true,
152
- composed: true,
153
- })
154
- this.dispatchEvent(keyEvent)
155
- }
156
-
157
- private handleKeyDown(event: KeyboardEvent) {
158
- const target = event.target as HTMLInputElement
159
- const keyEvent = new CustomEvent('on-key-down', {
160
- detail: {
161
- value: target.value,
162
- event,
163
- },
164
- bubbles: true,
165
- composed: true,
166
- })
167
- this.dispatchEvent(keyEvent)
168
- }
169
-
170
- private handleKeyPress(event: KeyboardEvent) {
171
- const target = event.target as HTMLInputElement
172
- const keyEvent = new CustomEvent('on-key-press', {
173
- detail: {
174
- value: target.value,
175
- event,
176
- },
177
- bubbles: true,
178
- composed: true,
179
- })
180
- this.dispatchEvent(keyEvent)
181
- }
182
-
183
- private handleMouseOver() {
184
- this.hasHighlight = true
185
- }
186
-
187
- private handleMouseOut() {
188
- if (!this.hasHocus) {
189
- this.hasHighlight = false
190
- }
191
- }
192
-
193
- render() {
194
- return html`
195
- <div>
196
- ${this.label ? this.labelTemplate() : nothing}
197
- ${this.description ? this.descriptionTemplate() : nothing}
198
- <div class="flex">
199
- ${this.inputTemplate()} ${this.unit ? this.unitTemplate() : nothing}
200
- </div>
201
- ${this.error ? this.errorTemplate() : nothing}
202
- </div>
203
- `
204
- }
205
- }
206
-
207
- declare global {
208
- interface HTMLElementTagNameMap {
209
- 'lukso-input': LuksoInput
210
- }
211
- }