@lukso/web-components 1.6.3 → 1.7.4

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 (329) 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 +75 -0
  24. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  25. package/dist/components/lukso-navbar/index.js +45 -1155
  26. package/dist/components/lukso-profile/index.cjs +547 -0
  27. package/dist/components/lukso-profile/index.js +483 -1370
  28. package/dist/components/lukso-sanitize/index.cjs +1730 -0
  29. package/dist/components/lukso-sanitize/index.js +1643 -1544
  30. package/dist/components/lukso-tag/index.cjs +78 -0
  31. package/dist/components/lukso-tag/index.js +52 -1189
  32. package/dist/components/lukso-test/index.cjs +120 -0
  33. package/dist/components/lukso-test/index.js +65 -1767
  34. package/dist/components/lukso-username/index.cjs +126 -0
  35. package/dist/components/lukso-username/index.js +75 -1206
  36. package/dist/components/lukso-wizard/index.cjs +93 -0
  37. package/dist/components/lukso-wizard/index.js +47 -1253
  38. package/dist/directive-9ec64c08.js +28 -0
  39. package/dist/directive-db00f5fb.cjs +34 -0
  40. package/dist/index-3a24432e.js +59 -0
  41. package/dist/index-4a1ee696.cjs +67 -0
  42. package/dist/index-714323c9.js +18 -0
  43. package/dist/index-7dc05ee5.cjs +20 -0
  44. package/dist/index.cjs +74 -0
  45. package/dist/index.js +17 -7354
  46. package/dist/shared/tailwind-element/index.cjs +10 -0
  47. package/dist/shared/tailwind-element/index.js +1 -1064
  48. package/dist/state-7fde94d1.js +9 -0
  49. package/dist/state-a62a7d5d.cjs +11 -0
  50. package/dist/style-map-17d4829d.cjs +12 -0
  51. package/dist/style-map-52bada0b.js +10 -0
  52. package/dist/styles/main.css.map +1 -1
  53. package/package.json +85 -147
  54. package/tools/assets/fonts/index.cjs +10 -0
  55. package/tools/assets/fonts/index.d.ts +2 -0
  56. package/tools/assets/fonts/index.d.ts.map +1 -0
  57. package/tools/assets/fonts/index.js +6 -0
  58. package/tools/assets/images/index.cjs +10 -0
  59. package/tools/assets/images/index.d.ts +2 -0
  60. package/tools/assets/images/index.d.ts.map +1 -0
  61. package/tools/assets/images/index.js +6 -0
  62. package/tools/assets/index.cjs +15 -0
  63. package/tools/assets/index.d.ts +4 -0
  64. package/tools/assets/index.d.ts.map +1 -0
  65. package/tools/assets/index.js +9 -0
  66. package/tools/color-palette-a34f5d09.js +1356 -0
  67. package/tools/color-palette-bf5780ed.cjs +1362 -0
  68. package/tools/color-palette.cjs +11 -146
  69. package/tools/color-palette.d.ts +39 -52
  70. package/tools/color-palette.d.ts.map +1 -1
  71. package/tools/color-palette.js +1 -0
  72. package/tools/copy-assets.cjs +50 -136
  73. package/tools/copy-assets.d.ts +7 -9
  74. package/tools/copy-assets.d.ts.map +1 -1
  75. package/tools/copy-assets.js +49 -0
  76. package/tools/index.cjs +35 -0
  77. package/tools/index.d.ts +6 -0
  78. package/tools/index.d.ts.map +1 -0
  79. package/tools/index.js +22 -0
  80. package/tools/sass/index.cjs +7 -0
  81. package/tools/sass/index.js +1 -0
  82. package/tools/styles/index.cjs +5 -0
  83. package/tools/styles/index.js +3 -0
  84. package/tools/styles/main.css +287 -0
  85. package/CHANGELOG.md +0 -287
  86. package/dist/assets/fonts/index.js +0 -4
  87. package/dist/assets/fonts/index.ts +0 -1
  88. package/dist/assets/fonts/index.umd.cjs +0 -1
  89. package/dist/assets/images/index.js +0 -4
  90. package/dist/assets/images/index.ts +0 -1
  91. package/dist/assets/images/index.umd.cjs +0 -1
  92. package/dist/assets/index.js +0 -4
  93. package/dist/assets/index.ts +0 -1
  94. package/dist/assets/index.umd.cjs +0 -1
  95. package/dist/color-palette/index.js +0 -705
  96. package/dist/color-palette/index.umd.cjs +0 -1
  97. package/dist/components/index.umd.cjs +0 -3756
  98. package/dist/components/lukso-button/index.umd.cjs +0 -88
  99. package/dist/components/lukso-card/index.umd.cjs +0 -145
  100. package/dist/components/lukso-icon/index.umd.cjs +0 -3465
  101. package/dist/components/lukso-input/index.umd.cjs +0 -109
  102. package/dist/components/lukso-navbar/index.umd.cjs +0 -73
  103. package/dist/components/lukso-profile/index.umd.cjs +0 -90
  104. package/dist/components/lukso-sanitize/index.umd.cjs +0 -61
  105. package/dist/components/lukso-tag/index.umd.cjs +0 -67
  106. package/dist/components/lukso-test/index.umd.cjs +0 -95
  107. package/dist/components/lukso-username/index.umd.cjs +0 -75
  108. package/dist/components/lukso-wizard/index.umd.cjs +0 -89
  109. package/dist/index.umd.cjs +0 -3756
  110. package/dist/sass/index.js +0 -4
  111. package/dist/sass/index.ts +0 -1
  112. package/dist/sass/index.umd.cjs +0 -1
  113. package/dist/shared/assets/index.d.ts +0 -3
  114. package/dist/shared/assets/index.d.ts.map +0 -1
  115. package/dist/shared/directives/custom-class-map/index.d.ts +0 -26
  116. package/dist/shared/directives/custom-class-map/index.d.ts.map +0 -1
  117. package/dist/shared/directives/index.d.ts +0 -2
  118. package/dist/shared/directives/index.d.ts.map +0 -1
  119. package/dist/shared/styles/index.d.ts +0 -3
  120. package/dist/shared/styles/index.d.ts.map +0 -1
  121. package/dist/shared/tailwind-element/index.umd.cjs +0 -39
  122. package/dist/shared/tailwind-element.js +0 -1064
  123. package/dist/shared/tailwind-element.umd.cjs +0 -39
  124. package/dist/shared/utils/color-palette.d.ts.map +0 -1
  125. package/dist/styles/index.js +0 -4
  126. package/dist/styles/index.umd.cjs +0 -1
  127. package/src/components/index.ts +0 -13
  128. package/src/components/lukso-button/index.ts +0 -145
  129. package/src/components/lukso-button/lukso-button.stories.ts +0 -216
  130. package/src/components/lukso-card/index.ts +0 -131
  131. package/src/components/lukso-card/lukso-card.stories.ts +0 -191
  132. package/src/components/lukso-card/style.scss +0 -7
  133. package/src/components/lukso-icon/icons/add-photo.ts +0 -46
  134. package/src/components/lukso-icon/icons/arrow-down-lg.ts +0 -26
  135. package/src/components/lukso-icon/icons/arrow-down-sm.ts +0 -26
  136. package/src/components/lukso-icon/icons/arrow-left-lg.ts +0 -26
  137. package/src/components/lukso-icon/icons/arrow-left-sm.ts +0 -26
  138. package/src/components/lukso-icon/icons/arrow-right-lg.ts +0 -26
  139. package/src/components/lukso-icon/icons/arrow-right-sm.ts +0 -26
  140. package/src/components/lukso-icon/icons/arrow-up-lg.ts +0 -26
  141. package/src/components/lukso-icon/icons/arrow-up-sm.ts +0 -26
  142. package/src/components/lukso-icon/icons/barbell-outline.ts +0 -54
  143. package/src/components/lukso-icon/icons/bulb-outline.ts +0 -54
  144. package/src/components/lukso-icon/icons/camera.ts +0 -40
  145. package/src/components/lukso-icon/icons/clipboard.ts +0 -59
  146. package/src/components/lukso-icon/icons/clock.ts +0 -31
  147. package/src/components/lukso-icon/icons/close-lg.ts +0 -33
  148. package/src/components/lukso-icon/icons/close-sm.ts +0 -33
  149. package/src/components/lukso-icon/icons/cloud.ts +0 -25
  150. package/src/components/lukso-icon/icons/compass-outline.ts +0 -29
  151. package/src/components/lukso-icon/icons/complete-filled-fade-in.ts +0 -34
  152. package/src/components/lukso-icon/icons/complete-filled.ts +0 -32
  153. package/src/components/lukso-icon/icons/complete-outline.ts +0 -31
  154. package/src/components/lukso-icon/icons/connect.ts +0 -33
  155. package/src/components/lukso-icon/icons/connections.ts +0 -34
  156. package/src/components/lukso-icon/icons/contract-lock.ts +0 -43
  157. package/src/components/lukso-icon/icons/controller.ts +0 -55
  158. package/src/components/lukso-icon/icons/copy.ts +0 -31
  159. package/src/components/lukso-icon/icons/cross-outline.ts +0 -38
  160. package/src/components/lukso-icon/icons/dots.ts +0 -22
  161. package/src/components/lukso-icon/icons/edit.ts +0 -30
  162. package/src/components/lukso-icon/icons/error.ts +0 -31
  163. package/src/components/lukso-icon/icons/eth-logo.ts +0 -50
  164. package/src/components/lukso-icon/icons/expand.ts +0 -31
  165. package/src/components/lukso-icon/icons/extension.ts +0 -31
  166. package/src/components/lukso-icon/icons/eye-hide.ts +0 -47
  167. package/src/components/lukso-icon/icons/eye-show.ts +0 -37
  168. package/src/components/lukso-icon/icons/filter.ts +0 -43
  169. package/src/components/lukso-icon/icons/fish-outline.ts +0 -36
  170. package/src/components/lukso-icon/icons/flip.ts +0 -45
  171. package/src/components/lukso-icon/icons/globe.ts +0 -61
  172. package/src/components/lukso-icon/icons/google-color.ts +0 -35
  173. package/src/components/lukso-icon/icons/hamburger.ts +0 -40
  174. package/src/components/lukso-icon/icons/infinite.ts +0 -33
  175. package/src/components/lukso-icon/icons/information.ts +0 -38
  176. package/src/components/lukso-icon/icons/key-outline.ts +0 -25
  177. package/src/components/lukso-icon/icons/link.ts +0 -33
  178. package/src/components/lukso-icon/icons/link1.ts +0 -39
  179. package/src/components/lukso-icon/icons/link2.ts +0 -46
  180. package/src/components/lukso-icon/icons/link3.ts +0 -32
  181. package/src/components/lukso-icon/icons/link4.ts +0 -52
  182. package/src/components/lukso-icon/icons/loading.ts +0 -50
  183. package/src/components/lukso-icon/icons/location.ts +0 -33
  184. package/src/components/lukso-icon/icons/locked.ts +0 -44
  185. package/src/components/lukso-icon/icons/login-2.ts +0 -55
  186. package/src/components/lukso-icon/icons/login-3.ts +0 -53
  187. package/src/components/lukso-icon/icons/login.ts +0 -39
  188. package/src/components/lukso-icon/icons/logo-chrome.ts +0 -35
  189. package/src/components/lukso-icon/icons/lyx-logo.ts +0 -41
  190. package/src/components/lukso-icon/icons/mail.ts +0 -33
  191. package/src/components/lukso-icon/icons/menu-1.ts +0 -71
  192. package/src/components/lukso-icon/icons/menu-2.ts +0 -61
  193. package/src/components/lukso-icon/icons/migrate.ts +0 -47
  194. package/src/components/lukso-icon/icons/minimize.ts +0 -53
  195. package/src/components/lukso-icon/icons/network.ts +0 -49
  196. package/src/components/lukso-icon/icons/notifications.ts +0 -33
  197. package/src/components/lukso-icon/icons/phone-portrait-outline.ts +0 -33
  198. package/src/components/lukso-icon/icons/pin.ts +0 -25
  199. package/src/components/lukso-icon/icons/play-filled.ts +0 -23
  200. package/src/components/lukso-icon/icons/play-outline.ts +0 -24
  201. package/src/components/lukso-icon/icons/plus.ts +0 -33
  202. package/src/components/lukso-icon/icons/profile-add.ts +0 -43
  203. package/src/components/lukso-icon/icons/profile-export.ts +0 -42
  204. package/src/components/lukso-icon/icons/profile-import.ts +0 -42
  205. package/src/components/lukso-icon/icons/profile-recovery-2.ts +0 -62
  206. package/src/components/lukso-icon/icons/profile-recovery.ts +0 -55
  207. package/src/components/lukso-icon/icons/profile-restore.ts +0 -50
  208. package/src/components/lukso-icon/icons/profile.ts +0 -29
  209. package/src/components/lukso-icon/icons/progress-complete.ts +0 -289
  210. package/src/components/lukso-icon/icons/progress-indicator.ts +0 -236
  211. package/src/components/lukso-icon/icons/pulse-dot.ts +0 -22
  212. package/src/components/lukso-icon/icons/qr-code.ts +0 -122
  213. package/src/components/lukso-icon/icons/relayer.ts +0 -40
  214. package/src/components/lukso-icon/icons/reload.ts +0 -32
  215. package/src/components/lukso-icon/icons/return-down.ts +0 -33
  216. package/src/components/lukso-icon/icons/return-left.ts +0 -33
  217. package/src/components/lukso-icon/icons/return-right.ts +0 -33
  218. package/src/components/lukso-icon/icons/return-up.ts +0 -33
  219. package/src/components/lukso-icon/icons/search.ts +0 -28
  220. package/src/components/lukso-icon/icons/settings.ts +0 -33
  221. package/src/components/lukso-icon/icons/smart-contract-doc.ts +0 -40
  222. package/src/components/lukso-icon/icons/smart-contract.ts +0 -31
  223. package/src/components/lukso-icon/icons/star-filled.ts +0 -23
  224. package/src/components/lukso-icon/icons/star-outline.ts +0 -24
  225. package/src/components/lukso-icon/icons/step-dot.ts +0 -34
  226. package/src/components/lukso-icon/icons/step-progress.ts +0 -31
  227. package/src/components/lukso-icon/icons/steps.ts +0 -40
  228. package/src/components/lukso-icon/icons/tick.ts +0 -26
  229. package/src/components/lukso-icon/icons/timer-outline.ts +0 -47
  230. package/src/components/lukso-icon/icons/transaction-receive.ts +0 -39
  231. package/src/components/lukso-icon/icons/transaction-send.ts +0 -39
  232. package/src/components/lukso-icon/icons/transfer.ts +0 -47
  233. package/src/components/lukso-icon/icons/trash.ts +0 -40
  234. package/src/components/lukso-icon/icons/turn-down.ts +0 -33
  235. package/src/components/lukso-icon/icons/turn-left.ts +0 -33
  236. package/src/components/lukso-icon/icons/turn-right.ts +0 -33
  237. package/src/components/lukso-icon/icons/turn-up.ts +0 -33
  238. package/src/components/lukso-icon/icons/unlocked.ts +0 -41
  239. package/src/components/lukso-icon/icons/wallet-outline.ts +0 -35
  240. package/src/components/lukso-icon/icons/warning-round.ts +0 -32
  241. package/src/components/lukso-icon/icons/warning-triangle.ts +0 -32
  242. package/src/components/lukso-icon/index.ts +0 -310
  243. package/src/components/lukso-icon/lukso-icon.stories.ts +0 -116
  244. package/src/components/lukso-icon/style.scss +0 -3
  245. package/src/components/lukso-input/index.ts +0 -211
  246. package/src/components/lukso-input/lukso-input.stories.ts +0 -184
  247. package/src/components/lukso-navbar/index.ts +0 -63
  248. package/src/components/lukso-navbar/lukso-navbar.stories.ts +0 -70
  249. package/src/components/lukso-profile/index.ts +0 -106
  250. package/src/components/lukso-profile/lukso-profile.stories.ts +0 -104
  251. package/src/components/lukso-sanitize/index.ts +0 -28
  252. package/src/components/lukso-sanitize/lukso-sanitize.stories.ts +0 -30
  253. package/src/components/lukso-tag/index.ts +0 -68
  254. package/src/components/lukso-tag/lukso-tag.stories.ts +0 -129
  255. package/src/components/lukso-test/index.ts +0 -72
  256. package/src/components/lukso-test/test.component.scss +0 -7
  257. package/src/components/lukso-test/test.stories.ts +0 -31
  258. package/src/components/lukso-username/index.ts +0 -105
  259. package/src/components/lukso-username/lukso-username.stories.ts +0 -98
  260. package/src/components/lukso-wizard/index.ts +0 -74
  261. package/src/components/lukso-wizard/lukso-wizard.stories.ts +0 -52
  262. package/src/docs/animations.stories.mdx +0 -83
  263. package/src/docs/colors.stories.mdx +0 -77
  264. package/src/docs/drop-shadows.stories.mdx +0 -108
  265. package/src/docs/icons.stories.mdx +0 -1590
  266. package/src/docs/typography.stories.mdx +0 -253
  267. package/src/index.ts +0 -1
  268. package/src/postcss.config.ts +0 -8
  269. package/src/shared/assets/fonts/Apax-Bold.woff2 +0 -0
  270. package/src/shared/assets/fonts/Apax-Light.woff2 +0 -0
  271. package/src/shared/assets/fonts/Apax-Medium.woff2 +0 -0
  272. package/src/shared/assets/fonts/Apax-Regular.woff2 +0 -0
  273. package/src/shared/assets/fonts/Inter-Bold.woff2 +0 -0
  274. package/src/shared/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  275. package/src/shared/assets/fonts/Inter-Medium.woff2 +0 -0
  276. package/src/shared/assets/fonts/Inter-Regular.woff2 +0 -0
  277. package/src/shared/assets/fonts/Inter-SemiBold.woff2 +0 -0
  278. package/src/shared/assets/fonts/Inter-Thin.woff2 +0 -0
  279. package/src/shared/assets/fonts/PT-Mono-Bold.woff2 +0 -0
  280. package/src/shared/assets/fonts/PT-Mono-Regular.woff2 +0 -0
  281. package/src/shared/assets/fonts/index.ts +0 -1
  282. package/src/shared/assets/images/index.ts +0 -1
  283. package/src/shared/assets/images/lukso-logo.svg +0 -3
  284. package/src/shared/assets/images/profile-default.png +0 -0
  285. package/src/shared/assets/index.ts +0 -1
  286. package/src/shared/directives/custom-class-map/index.ts +0 -49
  287. package/src/shared/directives/index.ts +0 -1
  288. package/src/shared/globals.d.ts +0 -5
  289. package/src/shared/styles/colors.scss +0 -91
  290. package/src/shared/styles/component.scss +0 -13
  291. package/src/shared/styles/fonts.scss +0 -97
  292. package/src/shared/styles/index.ts +0 -1
  293. package/src/shared/styles/main.scss +0 -13
  294. package/src/shared/styles/typography.scss +0 -142
  295. package/src/shared/styles/variables.scss +0 -5
  296. package/src/shared/tailwind-element/index.ts +0 -16
  297. package/src/shared/utils/__tests__/slice-address.spec.ts +0 -15
  298. package/src/shared/utils/color-palette.ts +0 -76
  299. package/src/shared/utils/copy-assets.ts +0 -80
  300. package/src/shared/utils/hsl-color-map.ts +0 -20
  301. package/src/shared/utils/slice-address.ts +0 -30
  302. /package/{dist → tools}/assets/fonts/Apax-Bold.woff2 +0 -0
  303. /package/{dist → tools}/assets/fonts/Apax-Light.woff2 +0 -0
  304. /package/{dist → tools}/assets/fonts/Apax-Medium.woff2 +0 -0
  305. /package/{dist → tools}/assets/fonts/Apax-Regular.woff2 +0 -0
  306. /package/{dist → tools}/assets/fonts/Inter-Bold.woff2 +0 -0
  307. /package/{dist → tools}/assets/fonts/Inter-ExtraBold.woff2 +0 -0
  308. /package/{dist → tools}/assets/fonts/Inter-Medium.woff2 +0 -0
  309. /package/{dist → tools}/assets/fonts/Inter-Regular.woff2 +0 -0
  310. /package/{dist → tools}/assets/fonts/Inter-SemiBold.woff2 +0 -0
  311. /package/{dist → tools}/assets/fonts/Inter-Thin.woff2 +0 -0
  312. /package/{dist → tools}/assets/fonts/PT-Mono-Bold.woff2 +0 -0
  313. /package/{dist → tools}/assets/fonts/PT-Mono-Regular.woff2 +0 -0
  314. /package/{dist → tools}/assets/images/lukso-logo.svg +0 -0
  315. /package/{dist → tools}/assets/images/profile-default.png +0 -0
  316. /package/{dist/shared/utils → tools}/hsl-color-map.d.ts +0 -0
  317. /package/{dist/shared/utils → tools}/hsl-color-map.d.ts.map +0 -0
  318. /package/{dist → tools}/sass/colors.scss +0 -0
  319. /package/{dist → tools}/sass/component.scss +0 -0
  320. /package/{dist → tools}/sass/fonts.scss +0 -0
  321. /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts +0 -0
  322. /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts.map +0 -0
  323. /package/{dist → tools}/sass/main.scss +0 -0
  324. /package/{dist → tools}/sass/typography.scss +0 -0
  325. /package/{dist → tools}/sass/variables.scss +0 -0
  326. /package/{dist/shared/utils → tools}/slice-address.d.ts +0 -0
  327. /package/{dist/shared/utils → tools}/slice-address.d.ts.map +0 -0
  328. /package/{dist/shared/assets/images → tools/styles}/index.d.ts +0 -0
  329. /package/{dist/shared/assets/images → tools/styles}/index.d.ts.map +0 -0
@@ -1,129 +0,0 @@
1
- import { html } from 'lit-html'
2
- import { unsafeHTML } from 'lit/directives/unsafe-html.js'
3
-
4
- import './index'
5
- import '../lukso-icon'
6
-
7
- /** Documentation and examples of `lukso-tag` component. */
8
- export default {
9
- title: 'Design System/Components/lukso-tag',
10
- component: 'lukso-tag',
11
- argTypes: {
12
- content: {
13
- control: { type: 'text' },
14
- },
15
- isRounded: {
16
- control: {
17
- type: 'boolean',
18
- },
19
- },
20
- size: {
21
- control: {
22
- type: 'select',
23
- },
24
- options: ['small', 'large'],
25
- },
26
- backgroundColor: {
27
- control: {
28
- type: 'text',
29
- },
30
- },
31
- textColor: {
32
- control: {
33
- type: 'text',
34
- },
35
- },
36
- },
37
- args: {
38
- size: 'small',
39
- isRounded: false,
40
- content: 'Small Tag',
41
- backgroundColor: '',
42
- textColor: '',
43
- },
44
- parameters: {
45
- controls: {
46
- exclude: [
47
- 'defaultStyles',
48
- 'smallStyles',
49
- 'largeStyles',
50
- 'is-rounded',
51
- 'background-color',
52
- 'text-color',
53
- 'padding',
54
- ],
55
- },
56
- },
57
- }
58
-
59
- const Template = ({ content, size, isRounded, backgroundColor, textColor }) =>
60
- html`<lukso-tag
61
- size=${size}
62
- ?is-rounded=${isRounded}
63
- background-color=${backgroundColor}
64
- text-color=${textColor}
65
- >${content}</lukso-tag
66
- >`
67
-
68
- /** By default tag is displayed in `small` size. */
69
- export const DefaultTag = Template.bind({})
70
- DefaultTag.parameters = {
71
- design: {
72
- type: 'figma',
73
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=AGmdbG8fXRENuU3o-4',
74
- },
75
- }
76
-
77
- /** You can change tag size with `size` property. This is example of `large` tag. */
78
- export const LargeTag = Template.bind({})
79
- LargeTag.args = {
80
- size: 'large',
81
- content: 'Large Tag',
82
- }
83
- LargeTag.parameters = {
84
- design: {
85
- type: 'figma',
86
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=AGmdbG8fXRENuU3o-4',
87
- },
88
- }
89
-
90
- /** You can create "pill" tags when adding `is-rounded` property. */
91
- export const RoundedTag = Template.bind({})
92
- RoundedTag.args = {
93
- isRounded: true,
94
- }
95
- RoundedTag.parameters = {
96
- design: {
97
- type: 'figma',
98
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1083%3A13483&t=AGmdbG8fXRENuU3o-4',
99
- },
100
- }
101
-
102
- /** You can change color of the tag to any from the palette with `text-color` and `background-color` property. */
103
- export const CustomColorTag = Template.bind({})
104
- CustomColorTag.args = {
105
- content: 'Custom Color Tag',
106
- backgroundColor: 'red-55',
107
- textColor: 'neutral-100',
108
- }
109
- CustomColorTag.parameters = {
110
- design: {
111
- type: 'figma',
112
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3241&t=AGmdbG8fXRENuU3o-4',
113
- },
114
- }
115
-
116
- /** Tags can have icons inside. Please check `lukso-icon` component for more details about using icons. */
117
- export const IconTag = Template.bind({})
118
- IconTag.args = {
119
- size: 'small',
120
- content: unsafeHTML(
121
- `<lukso-icon name="information" size="small" class="mr-1"></lukso-icon>Icon Tag`
122
- ),
123
- }
124
- IconTag.parameters = {
125
- design: {
126
- type: 'figma',
127
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=mppskGJvpl3LbsWL-4',
128
- },
129
- }
@@ -1,72 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
- import { animate, AnimateController } from '@lit-labs/motion'
4
- import { classMap } from 'lit/directives/class-map.js'
5
-
6
- import { TailwindStyledElement } from '@/shared/tailwind-element'
7
- import style from './test.component.scss?inline'
8
-
9
- @customElement('lukso-test')
10
- export class LuksoTest extends TailwindStyledElement(style) {
11
- @property()
12
- name = 'World'
13
-
14
- @property()
15
- private clicked = false
16
-
17
- @property({ type: Boolean })
18
- disabled = false
19
-
20
- duration = 1000
21
- controller = new AnimateController(this, {
22
- defaultOptions: {
23
- keyframeOptions: {
24
- duration: this.duration,
25
- fill: 'backwards',
26
- },
27
- },
28
- })
29
-
30
- _onClick() {
31
- if (this.disabled) {
32
- return
33
- }
34
- this.clicked = true
35
- setTimeout(() => {
36
- this.clicked = false
37
- }, 2000)
38
- }
39
-
40
- render() {
41
- const classes = {
42
- 'text-yellow-200': !this.disabled,
43
- 'p-2': true,
44
- 'rounded-full': true,
45
- 'text-24': true,
46
- 'bg-blue-800': this.clicked && !this.disabled,
47
- 'bg-blue-200': !this.clicked && !this.disabled,
48
- }
49
- return html`
50
- <p class="heading-1">
51
- Hello,
52
- <b class="heading-4">${this.name}</b>
53
- !
54
- </p>
55
- <button
56
- ?disabled=${this.disabled}
57
- data-testid="button"
58
- @click=${this._onClick}
59
- class="hover:text-yellow-700 ${classMap(classes)}"
60
- ${animate()}
61
- >
62
- Hello world! 2
63
- </button>
64
- `
65
- }
66
- }
67
-
68
- declare global {
69
- interface HTMLElementTagNameMap {
70
- 'lukso-test': LuksoTest
71
- }
72
- }
@@ -1,7 +0,0 @@
1
- p {
2
- @apply bg-red-200;
3
-
4
- b {
5
- @apply text-orange-500;
6
- }
7
- }
@@ -1,31 +0,0 @@
1
- import { html } from 'lit-html'
2
- import { within } from '@storybook/testing-library'
3
- import { expect } from '@storybook/jest'
4
-
5
- import '../lukso-test'
6
-
7
- export default {
8
- title: 'Test',
9
- component: 'lukso-test',
10
- }
11
-
12
- export function Primary({ disabled }) {
13
- return html`<lukso-test ?disabled=${disabled}>Hello World</lukso-test>`
14
- }
15
-
16
- Primary.args = {
17
- disabled: false,
18
- }
19
-
20
- Primary.play = async ({ canvasElement }) => {
21
- const canvas = within(canvasElement)
22
-
23
- // 👇 Assert DOM structure
24
- await expect(canvas.getByText('Hello World')).toBeInTheDocument()
25
-
26
- // See https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
27
- // await userEvent.click(canvas.getByTestId("button"));
28
-
29
- // 👇 Assert DOM structure
30
- await expect(canvas.getByText('Hello World')).toBeInTheDocument()
31
- }
@@ -1,105 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
- import { styleMap } from 'lit-html/directives/style-map.js'
4
-
5
- import { sliceAddress } from '@/shared/utils/slice-address'
6
- import { TailwindElement } from '@/shared/tailwind-element'
7
- import { customClassMap } from '@/shared/directives'
8
-
9
- export type UsernameSize = 'small' | 'large'
10
-
11
- @customElement('lukso-username')
12
- export class LuksoUsername extends TailwindElement {
13
- @property({ type: String })
14
- name = ''
15
-
16
- @property({ type: String })
17
- address = ''
18
-
19
- @property({ type: Number, attribute: 'max-width' })
20
- maxWidth = 200
21
-
22
- @property({ type: 'string' })
23
- size: UsernameSize = 'large'
24
-
25
- @property({ type: Number, attribute: 'slice-by' })
26
- sliceBy = 8
27
-
28
- @property({ type: String, attribute: 'address-color' })
29
- addressColor = 'neutral-20'
30
-
31
- /** Width of the first 4 bytes of the address */
32
- private bytesWidth = 52
33
-
34
- /**
35
- * Template for 4byte address
36
- * e.g: #1234
37
- */
38
- private addressBytesTemplate() {
39
- return html`<div class="inline-block text-neutral-60">
40
- #${this.address.slice(2, 6)}
41
- </div>`
42
- }
43
-
44
- /**
45
- * Template for name
46
- * e.g: @John
47
- */
48
- private nameTemplate() {
49
- return html`<div
50
- class="inline-block whitespace-nowrap overflow-hidden text-ellipsis text-transparent
51
- bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
52
- style=${styleMap({
53
- maxWidth: `${this.maxWidth - this.bytesWidth}px`,
54
- })}
55
- >
56
- @${this.name}
57
- </div>`
58
- }
59
-
60
- /**
61
- * Template for address
62
- * e.g: 0x123...789
63
- */
64
- private addressTemplate() {
65
- return html`<div
66
- class="inline-block ${customClassMap({
67
- ['text-' + this.addressColor]: this.addressColor !== '',
68
- ['text-neutral-20']: this.addressColor === '',
69
- })}"
70
- >
71
- ${sliceAddress(this.address, this.sliceBy, this.sliceBy)}
72
- </div>`
73
- }
74
-
75
- render() {
76
- const template = (() => {
77
- if (this.name && this.address) {
78
- return html`${this.nameTemplate()}${this.addressBytesTemplate()}`
79
- }
80
-
81
- if (this.name) {
82
- return this.nameTemplate()
83
- }
84
-
85
- if (this.address) {
86
- return this.addressTemplate()
87
- }
88
- })()
89
-
90
- return html`<div
91
- class="inline-flex ${customClassMap({
92
- 'monospaced-12-bold': this.size === 'small',
93
- 'monospaced-16-bold': this.size === 'large',
94
- })}"
95
- >
96
- ${template}
97
- </div>`
98
- }
99
- }
100
-
101
- declare global {
102
- interface HTMLElementTagNameMap {
103
- 'lukso-username': LuksoUsername
104
- }
105
- }
@@ -1,98 +0,0 @@
1
- import { html } from 'lit-html'
2
- import './index'
3
-
4
- /** Documentation and examples of `lukso-username` component. It's used to display user name and address in standardized way. */
5
- export default {
6
- title: 'Design System/Components/lukso-username',
7
- component: 'lukso-username',
8
- argTypes: {
9
- name: {
10
- control: { type: 'text' },
11
- },
12
- address: {
13
- control: { type: 'text' },
14
- },
15
- maxWidth: {
16
- control: { type: 'number' },
17
- if: { arg: 'name', neq: '' },
18
- },
19
- size: {
20
- control: { type: 'select' },
21
- options: ['large', 'small'],
22
- },
23
- sliceBy: {
24
- control: { type: 'number' },
25
- if: { arg: 'name', eq: '' },
26
- },
27
- addressColor: {
28
- control: { type: 'text' },
29
- if: { arg: 'name', eq: '' },
30
- },
31
- },
32
- args: {
33
- name: 'John',
34
- address: '0x9671Db683406EE0817B1f5cB6A3b3BD111477457',
35
- maxWidth: 200,
36
- size: 'large',
37
- sliceBy: 8,
38
- addressColor: '',
39
- },
40
- parameters: {
41
- controls: {
42
- exclude: ['bytesWidth', 'max-width', 'slice-by', 'address-color'],
43
- },
44
- design: {
45
- type: 'figma',
46
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1096%3A14641&t=W8onPGbREKjGG9sS-4',
47
- },
48
- },
49
- }
50
-
51
- const Template = ({ name, address, maxWidth, size, sliceBy, addressColor }) =>
52
- html`<lukso-username
53
- name=${name}
54
- address=${address}
55
- max-width=${maxWidth}
56
- size=${size}
57
- slice-by=${sliceBy}
58
- address-color=${addressColor}
59
- ></lukso-username>`
60
-
61
- /** By default user name is displayed as `name` prefixed with `@` character and 4 bytes of `address` */
62
- export const DefaultUsername = Template.bind({})
63
-
64
- /** Long names get truncated. You can control width of the component with `max-width` property. */
65
- export const LongName = Template.bind({})
66
- LongName.args = {
67
- name: 'ThisIsAReallyLongName',
68
- }
69
-
70
- /** Example of component that has only `name` property. */
71
- export const OnlyName = Template.bind({})
72
- OnlyName.args = {
73
- address: '',
74
- }
75
-
76
- /** Example of component that has only `address` property and `small` size. */
77
- export const OnlyAddress = Template.bind({})
78
- OnlyAddress.args = {
79
- name: '',
80
- size: 'small',
81
- sliceBy: 4,
82
- }
83
-
84
- /** You can specify amount of sliced characters in the address with `slice-by` property. */
85
- export const SliceAddressBy4 = Template.bind({})
86
- SliceAddressBy4.args = {
87
- name: '',
88
- sliceBy: 4,
89
- size: 'small',
90
- }
91
-
92
- /** Address color can be customized with `address-color` property. */
93
- export const CustomAddressColor = Template.bind({})
94
- CustomAddressColor.args = {
95
- name: '',
96
- addressColor: 'neutral-60',
97
- size: 'small',
98
- }
@@ -1,74 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
- import { repeat } from 'lit/directives/repeat.js'
4
-
5
- import { TailwindElement } from '@/shared/tailwind-element'
6
- import { customClassMap } from '@/shared/directives'
7
-
8
- export type WizardStep = {
9
- label: string
10
- }
11
-
12
- @customElement('lukso-wizard')
13
- export class LuksoWizard extends TailwindElement {
14
- @property({ type: Array })
15
- steps: WizardStep[] = []
16
-
17
- @property({ type: Number, attribute: 'active-step' })
18
- activeStep = 1
19
-
20
- private activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`
21
-
22
- private completedStepStyles = `[&>.lukso-wizard-circle]:after:bg-purple-51
23
- [&_.lukso-wizard-circle-inner]:bg-gradient-to-t
24
- [&_.lukso-wizard-circle-inner]:from-gradient-3-start
25
- [&_.lukso-wizard-circle-inner]:to-gradient-3-end`
26
-
27
- stepTemplate(step: WizardStep, index: number) {
28
- return html`<li
29
- class="inline-flex flex-col items-center justify-end w-[121px] first:-ml-12 last:-mr-12 relative
30
- [&>.lukso-wizard-circle]:after:last:hidden ${customClassMap({
31
- [this.completedStepStyles]: index + 1 < this.activeStep,
32
- [this.activeStepStyles]: index + 1 === this.activeStep,
33
- })}"
34
- >
35
- <div
36
- class="text-purple-51 heading-h5-medium-uppercase-apax whitespace-pre-line flex text-center break-words uppercase"
37
- >
38
- ${step.label}
39
- </div>
40
- <div
41
- class="lukso-wizard-circle bg-pink-95 w-4 h-4 rounded-full shadow-wizard-step mt-2 flex items-center
42
- border-[1px] border-solid border-[rgba(255,255,255,0.8)]
43
- after:block after:absolute after:bottom-[7px] after:w-[calc(100%-16px)] after:ml-[15px] after:h-[2px]
44
- after:content:'' after:bg-pink-95 after:shadow-wizard-line"
45
- >
46
- <div
47
- class="lukso-wizard-circle-inner rounded-full w-[10px] h-[10px] ml-[2px] ${customClassMap(
48
- {
49
- [this.activeStepStyles]: index + 1 === this.activeStep,
50
- }
51
- )}"
52
- ></div>
53
- </div>
54
- </li>`
55
- }
56
-
57
- render() {
58
- return html`
59
- <ul class="flex justify-center" data-testid="wizard">
60
- ${repeat(
61
- this.steps || [],
62
- step => this.steps.indexOf(step),
63
- (step, index) => this.stepTemplate(step, index)
64
- )}
65
- </ul>
66
- `
67
- }
68
- }
69
-
70
- declare global {
71
- interface HTMLElementTagNameMap {
72
- 'lukso-wizard': LuksoWizard
73
- }
74
- }
@@ -1,52 +0,0 @@
1
- import { html } from 'lit-html'
2
-
3
- import '../lukso-wizard'
4
-
5
- /** Documentation and examples of `lukso-wizard` component. Steps are passed in `step` property as object containing different labels.
6
- * To specify which step is active set `active-step` property.
7
- */
8
- export default {
9
- title: 'Design System/Components/lukso-wizard',
10
- component: 'lukso-wizard',
11
- argTypes: {
12
- steps: {
13
- control: { type: 'object' },
14
- },
15
- activeStep: { control: { type: 'number', min: 1, step: 1 } },
16
- },
17
- args: {
18
- steps: [
19
- {
20
- label: `Select
21
- Profile`,
22
- },
23
- {
24
- label: `Connect
25
- Wallet`,
26
- },
27
- {
28
- label: `Migrate
29
- LYXe`,
30
- },
31
- { label: 'Status' },
32
- ],
33
- activeStep: 3,
34
- },
35
- parameters: {
36
- controls: {
37
- exclude: ['activeStepStyles', 'completedStepStyles', 'active-step'],
38
- },
39
- design: {
40
- type: 'figma',
41
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1094%3A13512&t=AGmdbG8fXRENuU3o-4',
42
- },
43
- },
44
- }
45
-
46
- const Template = ({ steps, activeStep }) =>
47
- html`<lukso-wizard
48
- steps=${JSON.stringify(steps)}
49
- active-step=${activeStep}
50
- ></lukso-wizard>`
51
-
52
- export const BasicWizard = Template.bind({})
@@ -1,83 +0,0 @@
1
- import { Meta, IconGallery, IconItem } from '@storybook/addon-docs'
2
- import '../components/lukso-icon/index'
3
-
4
- <h1>Animations</h1>
5
-
6
- Animations can be applied to any element through special CSS classes. For animatingicons you pass animation name.
7
-
8
- <Meta title="Design System/Animations" />
9
-
10
- ### **Example usage**
11
-
12
- ```html
13
- <div class="w-[12px] h-[12px] bg-green-54 animate-spin"></div>
14
- ```
15
-
16
- ### **Animation list**
17
-
18
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
19
- #### `animate-spin`
20
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 animate-spin"></div>
21
- </div>
22
-
23
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
24
- #### `animate-ping`
25
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-ping"></div>
26
- </div>
27
-
28
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
29
- #### `animate-pulse`
30
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-pulse"></div>
31
- </div>
32
-
33
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
34
- #### `animate-bounce`
35
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-bounce"></div>
36
- </div>
37
-
38
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
39
- #### `animate-pulse-resize`
40
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-pulse-resize"></div>
41
- </div>
42
-
43
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
44
- #### `animate-resize-in`
45
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-resize-in animation-iteration-infinite animation-duration-1000"></div>
46
- </div>
47
-
48
- <div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
49
- #### `animate-fade-in`
50
- <div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full opacity-0 animate-fade-in animation-iteration-infinite animation-duration-1000"></div>
51
- </div>
52
-
53
- ### **Delay animation**
54
-
55
- You can delay animation by adding `animation-delay-[value]` class.
56
-
57
- ```html
58
- <div class="animate-spin animation-delay-100"></div>
59
- ```
60
-
61
- ### **Animation count**
62
-
63
- You can set animation count by adding `animation-iteration-[value]` class.
64
-
65
- ```html
66
- <div class="animate-spin animation-iteration-infinite"></div>
67
- ```
68
-
69
- ### **Animation duration**
70
-
71
- You can set animation duration by adding `animation-duration-[value]` class.
72
-
73
- ```html
74
- <div class="animate-spin animation-duration-1000"></div>
75
- ```
76
-
77
- ### **Animation fill mode**
78
-
79
- You can set animation fill mode by adding `animation-fill-[value]` class.
80
-
81
- ```html
82
- <div class="animate-spin animation-fill-forwards"></div>
83
- ```