@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,142 +0,0 @@
1
- /**
2
- * @file Typography
3
- *
4
- * This file contains all typography classes used in designs.
5
- * They should be used instead of individual font attributes.
6
- *
7
- * You can use them same as the normal Tailwind classes, e.g.: class="heading-1"
8
- */
9
-
10
- @layer base {
11
- .heading-h1 {
12
- @apply text-26 not-italic font-600 leading-31 font-inter;
13
- }
14
-
15
- .heading-h2 {
16
- @apply text-21 not-italic font-600 leading-26 font-inter;
17
- }
18
-
19
- .heading-h3 {
20
- @apply text-17 not-italic font-600 leading-22 font-inter;
21
- }
22
-
23
- .heading-h4 {
24
- @apply text-12 not-italic font-700 leading-15 font-inter uppercase tracking-[.02em];
25
- }
26
-
27
- .heading-h5 {
28
- @apply text-14 not-italic font-700 leading-17 font-inter;
29
- }
30
-
31
- .heading-h1-medium-apax {
32
- @apply text-44 not-italic font-500 leading-40 font-apax;
33
- }
34
-
35
- .heading-h1-regular-apax {
36
- @apply text-44 not-italic font-400 leading-40 font-apax;
37
- }
38
-
39
- .heading-h2-medium-apax {
40
- @apply text-24 not-italic font-500 leading-28 font-apax;
41
- }
42
-
43
- .heading-h3-medium-apax {
44
- @apply text-16 not-italic font-500 leading-19 font-apax;
45
- }
46
-
47
- .heading-h4-medium-apax {
48
- @apply text-14 not-italic font-500 leading-20 font-apax;
49
- }
50
-
51
- .heading-h4-medium-uppercase-apax {
52
- @apply text-14 not-italic font-500 leading-20 font-apax uppercase tracking-[.08em];
53
- }
54
-
55
- .heading-h5-medium-apax {
56
- @apply text-8 not-italic font-500 leading-10 font-apax;
57
- }
58
-
59
- .heading-h5-medium-uppercase-apax {
60
- @apply text-8 not-italic font-500 leading-10 font-apax uppercase tracking-[.08em];
61
- }
62
-
63
- // Paragraph
64
-
65
- .paragraph-16-regular {
66
- @apply text-16 not-italic font-400 leading-24 font-inter;
67
- }
68
-
69
- .paragraph-16-semi-bold {
70
- @apply text-16 not-italic font-600 leading-24 font-inter;
71
- }
72
-
73
- .paragraph-14-regular {
74
- @apply text-14 not-italic font-400 leading-22 font-inter;
75
- }
76
-
77
- .paragraph-14-medium {
78
- @apply text-14 not-italic font-500 leading-22 font-inter;
79
- }
80
-
81
- .paragraph-14-semi-bold {
82
- @apply text-14 not-italic font-600 leading-22 font-inter;
83
- }
84
-
85
- .paragraph-12-regular {
86
- @apply text-12 not-italic font-400 leading-20 font-inter;
87
- }
88
-
89
- .paragraph-12-medium {
90
- @apply text-12 not-italic font-500 leading-20 font-inter;
91
- }
92
-
93
- .paragraph-12-semi-bold {
94
- @apply text-12 not-italic font-600 leading-20 font-inter;
95
- }
96
-
97
- // Currency
98
-
99
- .currency-10-semi-bold {
100
- @apply text-10 not-italic font-600 leading-12 font-inter;
101
- }
102
-
103
- .currency-10-bold-uppercase {
104
- @apply text-10 not-italic font-700 leading-12 font-inter uppercase;
105
- }
106
-
107
- .currency-14-semi-bold {
108
- @apply text-14 not-italic font-600 leading-17 font-inter;
109
- }
110
-
111
- // utility
112
-
113
- .link {
114
- @apply text-17 not-italic font-600 leading-22 font-inter;
115
- }
116
-
117
- .button-text {
118
- @apply text-17 not-italic font-600 leading-17 font-inter;
119
- }
120
-
121
- .caption {
122
- @apply text-13 not-italic font-400 leading-20 font-inter;
123
- }
124
-
125
- // Monospaced
126
-
127
- .monospaced-16-regular {
128
- @apply text-16 not-italic font-400 leading-22 font-mono;
129
- }
130
-
131
- .monospaced-16-bold {
132
- @apply text-16 not-italic font-700 leading-22 font-mono;
133
- }
134
-
135
- .monospaced-12-bold {
136
- @apply text-12 not-italic font-700 leading-14 font-mono;
137
- }
138
-
139
- .monospaced-10-bold {
140
- @apply text-10 not-italic font-700 leading-14 font-mono;
141
- }
142
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * @file Variables
3
- *
4
- * This file contains all CSS variables used in designs.
5
- */
@@ -1,16 +0,0 @@
1
- import { LitElement, unsafeCSS } from 'lit'
2
-
3
- import style from '@/shared/styles/component.scss?inline'
4
-
5
- const tailwindElement = unsafeCSS(style)
6
-
7
- export const TailwindStyledElement = (style: any): typeof LitElement =>
8
- class extends LitElement {
9
- static styles = style
10
- ? [tailwindElement, unsafeCSS(style)]
11
- : [tailwindElement]
12
- }
13
-
14
- export class TailwindElement extends LitElement {
15
- static styles = [tailwindElement]
16
- }
@@ -1,15 +0,0 @@
1
- import { sliceAddress } from '../slice-address'
2
-
3
- test('sliceAddress', () => {
4
- expect(sliceAddress()).toEqual('')
5
- expect(sliceAddress('0xA60DDd4eB501bd5bfeC3d50187C3889B658775B5')).toEqual(
6
- '0xA60DDd...8775B5'
7
- )
8
- expect(sliceAddress('0xA60DDd4eB501bd5bfeC3d50187C3889B658775B5', 3)).toEqual(
9
- '0xA60...5B5'
10
- )
11
- expect(
12
- sliceAddress('0xA60DDd4eB501bd5bfeC3d50187C3889B658775B5', 3, 6)
13
- ).toEqual('0xA60...8775B5')
14
- expect(sliceAddress('0xA60DDd4eB51', 10)).toEqual('0xA60DDd4eB51')
15
- })
@@ -1,76 +0,0 @@
1
- import tinycolor from 'tinycolor2'
2
-
3
- import { hslColorMap } from './hsl-color-map'
4
-
5
- type ColorMap = {
6
- [key: string]: string
7
- }
8
-
9
- /**
10
- * Color palette based on the structure thats compatible with Tailwind config
11
- */
12
- export const colorPalette = {
13
- neutral: hslColorMap(
14
- 206,
15
- 30,
16
- [
17
- 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95,
18
- 97, 98, 100,
19
- ]
20
- ),
21
- honey: hslColorMap(42, 93, [72, 75, 82, 85, 92]),
22
- coral: hslColorMap(14, 87, [65, 74, 75, 84, 85, 94]),
23
- warm: hslColorMap(25, 100, [77, 87, 97]),
24
- 'sea-salt': hslColorMap(180, 17, [57, 67, 88]),
25
- cloud: hslColorMap(200, 38, [43, 75, 88]),
26
- ocean: hslColorMap(209, 38, [38, 75, 88]),
27
- sky: hslColorMap(209, 64, [64, 75, 85]),
28
- lukso: hslColorMap(335, 33, [70, 80, 90]),
29
- yellow: hslColorMap(36, 100, [55, 65, 75, 85]),
30
- green: hslColorMap(135, 57, [45, 54, 75, 85]),
31
- blue: hslColorMap(216, 96, [50, 60, 75, 85]),
32
- red: hslColorMap(0, 75, [55, 65, 75, 85]),
33
- purple: hslColorMap(230, 24, [94, 82, 63, 58, 51, 41, 31, 15]),
34
- pink: hslColorMap(11, 73, [97, 96, 95, 94, 93, 92, 91, 90]),
35
- 'gradient-1': {
36
- start: '#D39B9D',
37
- end: '#9071D1',
38
- },
39
- 'gradient-2': {
40
- start: '#F8DAD3',
41
- end: '#CC99AE',
42
- },
43
- 'gradient-3': {
44
- start: tinycolor({ h: 230, s: 20, l: 28 }).toHexString(),
45
- end: tinycolor({ h: 230, s: 24, l: 51 }).toHexString(),
46
- },
47
- }
48
-
49
- /**
50
- * Splits a color map into smaller color maps
51
- *
52
- * @param colors - color map to split
53
- * @param from - index to start from
54
- * @param to - index to end at
55
- * @returns a new color map
56
- */
57
- const splitColor = (colors: ColorMap, from: number, to: number): ColorMap => {
58
- return Object.keys(colors)
59
- .slice(from, to)
60
- .reduce((result, key) => {
61
- result[key] = colors[key]
62
-
63
- return result
64
- }, {})
65
- }
66
-
67
- /**
68
- * Color map subsets that can be used in the Storybook preview
69
- */
70
- export const neutral1 = splitColor(colorPalette.neutral, 0, 8)
71
- export const neutral2 = splitColor(colorPalette.neutral, 8, 16)
72
- export const neutral3 = splitColor(
73
- colorPalette.neutral,
74
- 16,
75
- Object.keys(colorPalette.neutral).length
76
- )
@@ -1,80 +0,0 @@
1
- import fs from 'fs'
2
- import path from 'path'
3
-
4
- /**
5
- * List of allowed file extensions
6
- */
7
- const fileExtensionWhitelist = [
8
- '.woff2',
9
- '.svg',
10
- '.img',
11
- '.jpg',
12
- '.jpeg',
13
- '.png',
14
- ]
15
-
16
- /**
17
- * Copy file from source to destination
18
- *
19
- * @param source - Source path
20
- * @param target - Destination path
21
- * @returns
22
- */
23
- function copyFileSync(source, target) {
24
- let targetFile = target
25
-
26
- // If target is a directory, a new file with the same name will be created
27
- if (fs.existsSync(target)) {
28
- if (fs.lstatSync(target).isDirectory()) {
29
- targetFile = path.join(target, path.basename(source))
30
- }
31
- }
32
-
33
- if (!fileExtensionWhitelist.includes(path.extname(source))) {
34
- return
35
- }
36
-
37
- fs.writeFileSync(targetFile, fs.readFileSync(source))
38
- }
39
-
40
- /**
41
- * Recursively copy directory from source to destination
42
- *
43
- * @param source - source directory
44
- * @param target - destination directory
45
- */
46
- function copyFolderRecursiveSync(source, target) {
47
- let files = []
48
-
49
- // Check if folder needs to be created or integrated
50
- const targetFolder = path.join(target, path.basename(source))
51
- if (!fs.existsSync(targetFolder)) {
52
- fs.mkdirSync(targetFolder)
53
- }
54
-
55
- // Copy
56
- if (fs.lstatSync(source).isDirectory()) {
57
- files = fs.readdirSync(source)
58
- files.forEach(function (file) {
59
- const curSource = path.join(source, file)
60
- if (fs.lstatSync(curSource).isDirectory()) {
61
- copyFolderRecursiveSync(curSource, targetFolder)
62
- } else {
63
- copyFileSync(curSource, targetFolder)
64
- }
65
- })
66
- }
67
- }
68
-
69
- /**
70
- * Copy asset directory from source to destination
71
- *
72
- * @param assetDir - destination directory
73
- * @param assets - source directory
74
- */
75
- export const copyAssets = (assetDir: string, assets: any) => {
76
- if (!fs.existsSync(assetDir)) {
77
- fs.mkdirSync(assetDir, { recursive: true })
78
- }
79
- copyFolderRecursiveSync(assets, assetDir)
80
- }
@@ -1,20 +0,0 @@
1
- import tinycolor from 'tinycolor2'
2
-
3
- /**
4
- * Generates a color map for a given hue, saturation and lightness values
5
- *
6
- * @param {*} h - hue
7
- * @param {*} s - saturation
8
- * @param {*} l - lightness as an array
9
- * @returns object containing lightness as key and hex color as value e.g. { 10: '#000000', 20: '#111111' }
10
- */
11
- export const hslColorMap = (h, s, l) => {
12
- const colors = {}
13
-
14
- for (let i = 0; i < l.length; i++) {
15
- const lightness = l[i]
16
- colors[lightness] = tinycolor({ h, s, l: lightness }).toHexString()
17
- }
18
-
19
- return colors
20
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * Shorten address by removing middle part, i.e: 0x123...789
3
- *
4
- * @param address - the address
5
- * @param sliceBy - slice by amount from top and end, it doesn't include 0x
6
- * @returns sliced address
7
- */
8
- export const sliceAddress = (
9
- address?: string,
10
- startSliceBy = 6,
11
- endSliceBy?: number
12
- ): string => {
13
- if (!address) {
14
- return ''
15
- }
16
-
17
- let sliceAddress = ''
18
- endSliceBy = endSliceBy || startSliceBy
19
-
20
- if (address.length < startSliceBy + endSliceBy) {
21
- return address
22
- }
23
-
24
- sliceAddress =
25
- address.length > startSliceBy + 2
26
- ? `${address.slice(0, startSliceBy + 2)}...${address.slice(-endSliceBy)}`
27
- : address
28
-
29
- return sliceAddress
30
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes