@lukso/web-components 1.6.2 → 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 +44 -1155
  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 +48 -1254
  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 -278
  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 -3
  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,131 +0,0 @@
1
- import { html } from 'lit'
2
- import { customElement, property } from 'lit/decorators.js'
3
- import { styleMap } from 'lit/directives/style-map.js'
4
-
5
- import { TailwindStyledElement } from '@/shared/tailwind-element'
6
- import { customClassMap } from '@/shared/directives'
7
- import style from './style.scss?inline'
8
- import '@/components/lukso-profile'
9
-
10
- export type CardVariants = 'basic' | 'with-header' | 'profile'
11
-
12
- @customElement('lukso-card')
13
- export class LuksoCard extends TailwindStyledElement(style) {
14
- @property({ type: String })
15
- variant: CardVariants = 'basic'
16
-
17
- @property({ type: String, attribute: 'background-url' })
18
- backgroundUrl = ''
19
-
20
- @property({ type: String, attribute: 'profile-url' })
21
- profileUrl = ''
22
-
23
- @property({ type: String, attribute: 'profile-address' })
24
- profileAddress = ''
25
-
26
- @property({ type: Boolean, attribute: 'is-fixed-width' })
27
- isFixedWidth = false
28
-
29
- @property({ type: Boolean, attribute: 'is-fixed-height' })
30
- isFixedHeight = false
31
-
32
- private defaultStyles = `rounded-3xl shadow-pink-drop-shadow-2xl`
33
-
34
- basicTemplate() {
35
- return html`
36
- <div
37
- data-testid="card"
38
- class="bg-neutral-100 ${customClassMap({
39
- [this.defaultStyles]: true,
40
- ['w-[362px]']: this.isFixedWidth,
41
- ['min-h-[534px]']: this.isFixedHeight,
42
- })}"
43
- >
44
- <slot name="content"></slot>
45
- </div>
46
- `
47
- }
48
-
49
- withHeaderTemplate() {
50
- return html`
51
- <div
52
- data-testid="card"
53
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
54
- [this.defaultStyles]: true,
55
- ['w-[362px]']: this.isFixedWidth,
56
- ['min-h-[534px]']: this.isFixedHeight,
57
- })}"
58
- >
59
- <div>
60
- <slot name="header"></slot>
61
- </div>
62
- <div class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-3xl">
63
- <slot name="content"></slot>
64
- </div>
65
- </div>
66
- `
67
- }
68
-
69
- profileTemplate() {
70
- return html`
71
- <div
72
- data-testid="card"
73
- class="bg-neutral-98 grid grid-rows-[auto,1fr] ${customClassMap({
74
- [this.defaultStyles]: true,
75
- ['w-[362px]']: this.isFixedWidth,
76
- ['min-h-[534px]']: this.isFixedHeight,
77
- })}"
78
- >
79
- <div
80
- style=${styleMap({
81
- backgroundImage: `url(${this.backgroundUrl})`,
82
- })}
83
- class="min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative"
84
- >
85
- <div
86
- class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-10 absolute opacity-10"
87
- ></div>
88
- </div>
89
- <div
90
- class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-3xl relative"
91
- >
92
- <lukso-profile
93
- profile-url=${this.profileUrl}
94
- size="large"
95
- profile-address=${this.profileAddress}
96
- has-identicon
97
- class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
98
- ></lukso-profile>
99
- <div
100
- class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center"
101
- >
102
- <div
103
- class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]
104
- shadow-neutral-above-shadow-1xl"
105
- ></div>
106
- </div>
107
-
108
- <slot name="content"></slot>
109
- </div>
110
- </div>
111
- `
112
- }
113
-
114
- render() {
115
- switch (this.variant) {
116
- case 'with-header':
117
- return this.withHeaderTemplate()
118
- case 'profile':
119
- return this.profileTemplate()
120
-
121
- default:
122
- return this.basicTemplate()
123
- }
124
- }
125
- }
126
-
127
- declare global {
128
- interface HTMLElementTagNameMap {
129
- 'lukso-card': LuksoCard
130
- }
131
- }
@@ -1,191 +0,0 @@
1
- import { html } from 'lit-html'
2
- import './index'
3
-
4
- /** Documentation and examples of `lukso-card` component. Cards are using `slots` to put content in different places like `header` or `content`. */
5
- export default {
6
- title: 'Design System/Components/lukso-card',
7
- component: 'lukso-card',
8
- argTypes: {
9
- variant: {
10
- control: { type: 'select' },
11
- options: ['basic', 'with-header', 'profile'],
12
- },
13
- content: { control: { type: 'text' } },
14
- header: {
15
- control: { type: 'text' },
16
- if: { arg: 'variant', eq: 'with-header' },
17
- },
18
- backgroundUrl: {
19
- control: { type: 'text' },
20
- if: { arg: 'variant', eq: 'profile' },
21
- },
22
- profileUrl: {
23
- control: { type: 'text' },
24
- if: { arg: 'variant', eq: 'profile' },
25
- },
26
- profileAddress: {
27
- control: { type: 'text' },
28
- if: { arg: 'variant', eq: 'profile' },
29
- },
30
- isFixedWidth: {
31
- control: { type: 'boolean' },
32
- },
33
- isFixedHeight: {
34
- control: { type: 'boolean' },
35
- },
36
- },
37
- args: {
38
- variant: 'basic',
39
- content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
40
- header: 'Dolor sit amet',
41
- backgroundUrl: 'images/sample-background.jpg',
42
- profileUrl: 'images/sample-avatar.png',
43
- profileAddress: '0x9671Db683406EE0817B1f5cB6A3b3BD111477457',
44
- isFullWidth: false,
45
- },
46
- parameters: {
47
- controls: {
48
- exclude: [
49
- 'defaultStyles',
50
- 'background-url',
51
- 'profile-url',
52
- 'profile-address',
53
- 'is-fixed-width',
54
- 'is-fixed-height',
55
- ],
56
- },
57
- },
58
- }
59
-
60
- const DefaultTemplate = ({
61
- variant,
62
- content,
63
- header,
64
- isFixedHeight,
65
- isFixedWidth,
66
- }) =>
67
- html`
68
- <lukso-card
69
- variant=${variant}
70
- ?is-fixed-width=${isFixedWidth}
71
- ?is-fixed-height=${isFixedHeight}
72
- >
73
- <div slot="header" class="p-6">${header}</div>
74
- <div slot="content" class="p-6">${content}</div>
75
- </lukso-card>
76
- `
77
-
78
- const CustomHeaderTemplate = ({
79
- variant,
80
- content,
81
- header,
82
- isFixedHeight,
83
- isFixedWidth,
84
- }) =>
85
- html`
86
- <lukso-card
87
- variant=${variant}
88
- ?is-fixed-width=${isFixedWidth}
89
- ?is-fixed-height=${isFixedHeight}
90
- >
91
- <div slot="header" class="p-6 relative overflow-hidden min-h-[200px]">
92
- <div
93
- class="w-[876px] h-[200px] -left-[257px] top-[72px] bg-neutral-95 rounded-[50%] absolute"
94
- ></div>
95
- ${header}
96
- </div>
97
- <div slot="content" class="p-6">${content}</div>
98
- </lukso-card>
99
- `
100
-
101
- const ProfileTemplate = ({
102
- variant,
103
- content,
104
- backgroundUrl,
105
- profileUrl,
106
- profileAddress,
107
- isFixedHeight,
108
- isFixedWidth,
109
- }) =>
110
- html`
111
- <lukso-card
112
- variant=${variant}
113
- background-url=${backgroundUrl}
114
- profile-url=${profileUrl}
115
- profile-address=${profileAddress}
116
- ?is-fixed-width=${isFixedWidth}
117
- ?is-fixed-height=${isFixedHeight}
118
- >
119
- <div slot="content" class="p-6">${content}</div>
120
- </lukso-card>
121
- `
122
-
123
- /** By default card is using `basic` variant. */
124
- export const DefaultCard = DefaultTemplate.bind({})
125
- DefaultCard.parameters = {
126
- design: {
127
- type: 'figma',
128
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1332%3A18025&t=AGmdbG8fXRENuU3o-4',
129
- },
130
- }
131
-
132
- /** If you need card with fixed sizes you can add `is-fixed-width` or `is-fixed-height` property. */
133
- export const FixedCard = DefaultTemplate.bind({})
134
- FixedCard.args = {
135
- isFixedWidth: true,
136
- isFixedHeight: true,
137
- }
138
- FixedCard.parameters = {
139
- design: {
140
- type: 'figma',
141
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1332%3A18025&t=AGmdbG8fXRENuU3o-4',
142
- },
143
- }
144
-
145
- /** Example of `with-header` variant. */
146
- export const CardWithHeader = DefaultTemplate.bind({})
147
- CardWithHeader.args = {
148
- variant: 'with-header',
149
- isFixedWidth: true,
150
- isFixedHeight: true,
151
- }
152
- CardWithHeader.parameters = {
153
- design: {
154
- type: 'figma',
155
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1332%3A18028&t=AGmdbG8fXRENuU3o-4',
156
- },
157
- }
158
-
159
- /** Example of `with-header` variant that has additional background element. */
160
- export const CardWithCustomHeader = CustomHeaderTemplate.bind({})
161
- CardWithCustomHeader.args = {
162
- variant: 'with-header',
163
- isFixedWidth: true,
164
- isFixedHeight: true,
165
- }
166
- CardWithCustomHeader.parameters = {
167
- design: {
168
- type: 'figma',
169
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1332%3A18026&t=AGmdbG8fXRENuU3o-4',
170
- },
171
- }
172
-
173
- /** Example of `profile` variant. This variant additionally uses `background-url`, `profile-url` and `profile-address` properties. */
174
- export const ProfileCard = ProfileTemplate.bind({})
175
- ProfileCard.args = {
176
- variant: 'profile',
177
- isFixedWidth: true,
178
- isFixedHeight: true,
179
- parameters: {
180
- design: {
181
- type: 'figma',
182
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1096%3A14641&t=AGmdbG8fXRENuU3o-4',
183
- },
184
- },
185
- }
186
- ProfileCard.parameters = {
187
- design: {
188
- type: 'figma',
189
- url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1332%3A18027&t=AGmdbG8fXRENuU3o-4',
190
- },
191
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- @apply w-full;
3
- }
@@ -1,46 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const addPhoto = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M14 3H6C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V10"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- />
24
- <path
25
- d="M18 3V9"
26
- stroke="var(--${options.color})"
27
- stroke-width="${options.strokeWidth}"
28
- stroke-linecap="round"
29
- stroke-linejoin="round"
30
- />
31
- <path
32
- d="M21 6L15 6"
33
- stroke="var(--${options.color})"
34
- stroke-width="${options.strokeWidth}"
35
- stroke-linecap="round"
36
- stroke-linejoin="round"
37
- />
38
- <path
39
- fill-rule="evenodd"
40
- clip-rule="evenodd"
41
- d="M14.1214 9.87858C15.2929 11.05 15.2929 12.95 14.1214 14.1214C12.95 15.2929 11.05 15.2929 9.87858 14.1214C8.70714 12.95 8.70714 11.05 9.87858 9.87858C11.05 8.70714 12.95 8.70714 14.1214 9.87858Z"
42
- stroke="var(--${options.color})"
43
- stroke-width="${options.strokeWidth}"
44
- />
45
- </svg> `
46
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowDownLg = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M5.25 9.25L12 16L18.75 9.25"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowDownSm = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M8 10.25L11.75 14L15.5 10.25"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowLeftLg = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M15 5L8.25 11.75L15 18.5"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowLeftSm = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M13.625 8.375L9.875 12.125L13.625 15.875"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowRightLg = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M8.25 18.5L15 11.75L8.25 5"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowRightSm = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M9.875 15.875L13.625 12.125L9.875 8.375"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowUpLg = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M18.75 15L12 8.25L5.25 15"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,26 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const arrowUpSm = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M15.5 14L11.75 10.25L8 14"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- </svg> `
26
- }
@@ -1,54 +0,0 @@
1
- import { html } from 'lit'
2
- import { styleMap } from 'lit/directives/style-map.js'
3
-
4
- import { IconOptions } from '@/components/lukso-icon/index.js'
5
-
6
- export const barbellOutline = (options: IconOptions) => {
7
- return html`<svg
8
- width="24"
9
- height="24"
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- style=${styleMap({
14
- width: `${options.width}px`,
15
- height: `${options.height}px`,
16
- })}
17
- >
18
- <path
19
- d="M2.25 12H21.75"
20
- stroke="var(--${options.color})"
21
- stroke-width="${options.strokeWidth}"
22
- stroke-linecap="round"
23
- stroke-linejoin="round"
24
- />
25
- <path
26
- d="M19.5 6.75C19.5 6.33579 19.1642 6 18.75 6C18.3358 6 18 6.33579 18 6.75V17.25C18 17.6642 18.3358 18 18.75 18C19.1642 18 19.5 17.6642 19.5 17.25V6.75Z"
27
- stroke="var(--${options.color})"
28
- stroke-width="${options.strokeWidth}"
29
- stroke-linecap="round"
30
- stroke-linejoin="round"
31
- />
32
- <path
33
- d="M6 6.75C6 6.33579 5.66421 6 5.25 6C4.83579 6 4.5 6.33579 4.5 6.75V17.25C4.5 17.6642 4.83579 18 5.25 18C5.66421 18 6 17.6642 6 17.25V6.75Z"
34
- stroke="var(--${options.color})"
35
- stroke-width="${options.strokeWidth}"
36
- stroke-linecap="round"
37
- stroke-linejoin="round"
38
- />
39
- <path
40
- d="M2.25 9.375C2.25 9.16789 2.08211 9 1.875 9C1.66789 9 1.5 9.16789 1.5 9.375V14.625C1.5 14.8321 1.66789 15 1.875 15C2.08211 15 2.25 14.8321 2.25 14.625V9.375Z"
41
- stroke="var(--${options.color})"
42
- stroke-width="${options.strokeWidth}"
43
- stroke-linecap="round"
44
- stroke-linejoin="round"
45
- />
46
- <path
47
- d="M22.5 9.375C22.5 9.16789 22.3321 9 22.125 9C21.9179 9 21.75 9.16789 21.75 9.375V14.625C21.75 14.8321 21.9179 15 22.125 15C22.3321 15 22.5 14.8321 22.5 14.625V9.375Z"
48
- stroke="var(--${options.color})"
49
- stroke-width="${options.strokeWidth}"
50
- stroke-linecap="round"
51
- stroke-linejoin="round"
52
- />
53
- </svg> `
54
- }