@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.
- package/dist/color-palette.cjs +1363 -0
- package/dist/{shared/utils/color-palette.d.ts → color-palette.d.ts} +1 -2
- package/dist/color-palette.d.ts.map +1 -0
- package/dist/color-palette.js +1356 -0
- package/dist/components/index.cjs +74 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +17 -7354
- package/dist/components/lukso-button/index.cjs +144 -0
- package/dist/components/lukso-button/index.js +95 -1190
- package/dist/components/lukso-card/index.cjs +143 -0
- package/dist/components/lukso-card/index.js +61 -1487
- package/dist/components/lukso-icon/index.cjs +4366 -0
- package/dist/components/lukso-icon/index.js +1713 -2410
- package/dist/components/lukso-input/index.cjs +219 -0
- package/dist/components/lukso-input/index.d.ts +1 -2
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +128 -1229
- package/dist/components/lukso-modal/index.cjs +70 -0
- package/dist/components/lukso-modal/index.d.ts +18 -0
- package/dist/components/lukso-modal/index.d.ts.map +1 -0
- package/dist/components/lukso-modal/index.js +68 -0
- package/dist/components/lukso-navbar/index.cjs +75 -0
- package/dist/components/lukso-navbar/index.d.ts.map +1 -1
- package/dist/components/lukso-navbar/index.js +45 -1155
- package/dist/components/lukso-profile/index.cjs +547 -0
- package/dist/components/lukso-profile/index.js +483 -1370
- package/dist/components/lukso-sanitize/index.cjs +1730 -0
- package/dist/components/lukso-sanitize/index.js +1643 -1544
- package/dist/components/lukso-tag/index.cjs +78 -0
- package/dist/components/lukso-tag/index.js +52 -1189
- package/dist/components/lukso-test/index.cjs +120 -0
- package/dist/components/lukso-test/index.js +65 -1767
- package/dist/components/lukso-username/index.cjs +126 -0
- package/dist/components/lukso-username/index.js +75 -1206
- package/dist/components/lukso-wizard/index.cjs +93 -0
- package/dist/components/lukso-wizard/index.js +47 -1253
- package/dist/directive-9ec64c08.js +28 -0
- package/dist/directive-db00f5fb.cjs +34 -0
- package/dist/index-3a24432e.js +59 -0
- package/dist/index-4a1ee696.cjs +67 -0
- package/dist/index-714323c9.js +18 -0
- package/dist/index-7dc05ee5.cjs +20 -0
- package/dist/index.cjs +74 -0
- package/dist/index.js +17 -7354
- package/dist/shared/tailwind-element/index.cjs +10 -0
- package/dist/shared/tailwind-element/index.js +1 -1064
- package/dist/state-7fde94d1.js +9 -0
- package/dist/state-a62a7d5d.cjs +11 -0
- package/dist/style-map-17d4829d.cjs +12 -0
- package/dist/style-map-52bada0b.js +10 -0
- package/dist/styles/main.css.map +1 -1
- package/package.json +85 -147
- package/tools/assets/fonts/index.cjs +10 -0
- package/tools/assets/fonts/index.d.ts +2 -0
- package/tools/assets/fonts/index.d.ts.map +1 -0
- package/tools/assets/fonts/index.js +6 -0
- package/tools/assets/images/index.cjs +10 -0
- package/tools/assets/images/index.d.ts +2 -0
- package/tools/assets/images/index.d.ts.map +1 -0
- package/tools/assets/images/index.js +6 -0
- package/tools/assets/index.cjs +15 -0
- package/tools/assets/index.d.ts +4 -0
- package/tools/assets/index.d.ts.map +1 -0
- package/tools/assets/index.js +9 -0
- package/tools/color-palette-a34f5d09.js +1356 -0
- package/tools/color-palette-bf5780ed.cjs +1362 -0
- package/tools/color-palette.cjs +11 -146
- package/tools/color-palette.d.ts +39 -52
- package/tools/color-palette.d.ts.map +1 -1
- package/tools/color-palette.js +1 -0
- package/tools/copy-assets.cjs +50 -136
- package/tools/copy-assets.d.ts +7 -9
- package/tools/copy-assets.d.ts.map +1 -1
- package/tools/copy-assets.js +49 -0
- package/tools/index.cjs +35 -0
- package/tools/index.d.ts +6 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +22 -0
- package/tools/sass/index.cjs +7 -0
- package/tools/sass/index.js +1 -0
- package/tools/styles/index.cjs +5 -0
- package/tools/styles/index.js +3 -0
- package/tools/styles/main.css +287 -0
- package/CHANGELOG.md +0 -287
- package/dist/assets/fonts/index.js +0 -4
- package/dist/assets/fonts/index.ts +0 -1
- package/dist/assets/fonts/index.umd.cjs +0 -1
- package/dist/assets/images/index.js +0 -4
- package/dist/assets/images/index.ts +0 -1
- package/dist/assets/images/index.umd.cjs +0 -1
- package/dist/assets/index.js +0 -4
- package/dist/assets/index.ts +0 -1
- package/dist/assets/index.umd.cjs +0 -1
- package/dist/color-palette/index.js +0 -705
- package/dist/color-palette/index.umd.cjs +0 -1
- package/dist/components/index.umd.cjs +0 -3756
- package/dist/components/lukso-button/index.umd.cjs +0 -88
- package/dist/components/lukso-card/index.umd.cjs +0 -145
- package/dist/components/lukso-icon/index.umd.cjs +0 -3465
- package/dist/components/lukso-input/index.umd.cjs +0 -109
- package/dist/components/lukso-navbar/index.umd.cjs +0 -73
- package/dist/components/lukso-profile/index.umd.cjs +0 -90
- package/dist/components/lukso-sanitize/index.umd.cjs +0 -61
- package/dist/components/lukso-tag/index.umd.cjs +0 -67
- package/dist/components/lukso-test/index.umd.cjs +0 -95
- package/dist/components/lukso-username/index.umd.cjs +0 -75
- package/dist/components/lukso-wizard/index.umd.cjs +0 -89
- package/dist/index.umd.cjs +0 -3756
- package/dist/sass/index.js +0 -4
- package/dist/sass/index.ts +0 -1
- package/dist/sass/index.umd.cjs +0 -1
- package/dist/shared/assets/index.d.ts +0 -3
- package/dist/shared/assets/index.d.ts.map +0 -1
- package/dist/shared/directives/custom-class-map/index.d.ts +0 -26
- package/dist/shared/directives/custom-class-map/index.d.ts.map +0 -1
- package/dist/shared/directives/index.d.ts +0 -2
- package/dist/shared/directives/index.d.ts.map +0 -1
- package/dist/shared/styles/index.d.ts +0 -3
- package/dist/shared/styles/index.d.ts.map +0 -1
- package/dist/shared/tailwind-element/index.umd.cjs +0 -39
- package/dist/shared/tailwind-element.js +0 -1064
- package/dist/shared/tailwind-element.umd.cjs +0 -39
- package/dist/shared/utils/color-palette.d.ts.map +0 -1
- package/dist/styles/index.js +0 -4
- package/dist/styles/index.umd.cjs +0 -1
- package/src/components/index.ts +0 -13
- package/src/components/lukso-button/index.ts +0 -145
- package/src/components/lukso-button/lukso-button.stories.ts +0 -216
- package/src/components/lukso-card/index.ts +0 -131
- package/src/components/lukso-card/lukso-card.stories.ts +0 -191
- package/src/components/lukso-card/style.scss +0 -7
- package/src/components/lukso-icon/icons/add-photo.ts +0 -46
- package/src/components/lukso-icon/icons/arrow-down-lg.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-down-sm.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-left-lg.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-left-sm.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-right-lg.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-right-sm.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-up-lg.ts +0 -26
- package/src/components/lukso-icon/icons/arrow-up-sm.ts +0 -26
- package/src/components/lukso-icon/icons/barbell-outline.ts +0 -54
- package/src/components/lukso-icon/icons/bulb-outline.ts +0 -54
- package/src/components/lukso-icon/icons/camera.ts +0 -40
- package/src/components/lukso-icon/icons/clipboard.ts +0 -59
- package/src/components/lukso-icon/icons/clock.ts +0 -31
- package/src/components/lukso-icon/icons/close-lg.ts +0 -33
- package/src/components/lukso-icon/icons/close-sm.ts +0 -33
- package/src/components/lukso-icon/icons/cloud.ts +0 -25
- package/src/components/lukso-icon/icons/compass-outline.ts +0 -29
- package/src/components/lukso-icon/icons/complete-filled-fade-in.ts +0 -34
- package/src/components/lukso-icon/icons/complete-filled.ts +0 -32
- package/src/components/lukso-icon/icons/complete-outline.ts +0 -31
- package/src/components/lukso-icon/icons/connect.ts +0 -33
- package/src/components/lukso-icon/icons/connections.ts +0 -34
- package/src/components/lukso-icon/icons/contract-lock.ts +0 -43
- package/src/components/lukso-icon/icons/controller.ts +0 -55
- package/src/components/lukso-icon/icons/copy.ts +0 -31
- package/src/components/lukso-icon/icons/cross-outline.ts +0 -38
- package/src/components/lukso-icon/icons/dots.ts +0 -22
- package/src/components/lukso-icon/icons/edit.ts +0 -30
- package/src/components/lukso-icon/icons/error.ts +0 -31
- package/src/components/lukso-icon/icons/eth-logo.ts +0 -50
- package/src/components/lukso-icon/icons/expand.ts +0 -31
- package/src/components/lukso-icon/icons/extension.ts +0 -31
- package/src/components/lukso-icon/icons/eye-hide.ts +0 -47
- package/src/components/lukso-icon/icons/eye-show.ts +0 -37
- package/src/components/lukso-icon/icons/filter.ts +0 -43
- package/src/components/lukso-icon/icons/fish-outline.ts +0 -36
- package/src/components/lukso-icon/icons/flip.ts +0 -45
- package/src/components/lukso-icon/icons/globe.ts +0 -61
- package/src/components/lukso-icon/icons/google-color.ts +0 -35
- package/src/components/lukso-icon/icons/hamburger.ts +0 -40
- package/src/components/lukso-icon/icons/infinite.ts +0 -33
- package/src/components/lukso-icon/icons/information.ts +0 -38
- package/src/components/lukso-icon/icons/key-outline.ts +0 -25
- package/src/components/lukso-icon/icons/link.ts +0 -33
- package/src/components/lukso-icon/icons/link1.ts +0 -39
- package/src/components/lukso-icon/icons/link2.ts +0 -46
- package/src/components/lukso-icon/icons/link3.ts +0 -32
- package/src/components/lukso-icon/icons/link4.ts +0 -52
- package/src/components/lukso-icon/icons/loading.ts +0 -50
- package/src/components/lukso-icon/icons/location.ts +0 -33
- package/src/components/lukso-icon/icons/locked.ts +0 -44
- package/src/components/lukso-icon/icons/login-2.ts +0 -55
- package/src/components/lukso-icon/icons/login-3.ts +0 -53
- package/src/components/lukso-icon/icons/login.ts +0 -39
- package/src/components/lukso-icon/icons/logo-chrome.ts +0 -35
- package/src/components/lukso-icon/icons/lyx-logo.ts +0 -41
- package/src/components/lukso-icon/icons/mail.ts +0 -33
- package/src/components/lukso-icon/icons/menu-1.ts +0 -71
- package/src/components/lukso-icon/icons/menu-2.ts +0 -61
- package/src/components/lukso-icon/icons/migrate.ts +0 -47
- package/src/components/lukso-icon/icons/minimize.ts +0 -53
- package/src/components/lukso-icon/icons/network.ts +0 -49
- package/src/components/lukso-icon/icons/notifications.ts +0 -33
- package/src/components/lukso-icon/icons/phone-portrait-outline.ts +0 -33
- package/src/components/lukso-icon/icons/pin.ts +0 -25
- package/src/components/lukso-icon/icons/play-filled.ts +0 -23
- package/src/components/lukso-icon/icons/play-outline.ts +0 -24
- package/src/components/lukso-icon/icons/plus.ts +0 -33
- package/src/components/lukso-icon/icons/profile-add.ts +0 -43
- package/src/components/lukso-icon/icons/profile-export.ts +0 -42
- package/src/components/lukso-icon/icons/profile-import.ts +0 -42
- package/src/components/lukso-icon/icons/profile-recovery-2.ts +0 -62
- package/src/components/lukso-icon/icons/profile-recovery.ts +0 -55
- package/src/components/lukso-icon/icons/profile-restore.ts +0 -50
- package/src/components/lukso-icon/icons/profile.ts +0 -29
- package/src/components/lukso-icon/icons/progress-complete.ts +0 -289
- package/src/components/lukso-icon/icons/progress-indicator.ts +0 -236
- package/src/components/lukso-icon/icons/pulse-dot.ts +0 -22
- package/src/components/lukso-icon/icons/qr-code.ts +0 -122
- package/src/components/lukso-icon/icons/relayer.ts +0 -40
- package/src/components/lukso-icon/icons/reload.ts +0 -32
- package/src/components/lukso-icon/icons/return-down.ts +0 -33
- package/src/components/lukso-icon/icons/return-left.ts +0 -33
- package/src/components/lukso-icon/icons/return-right.ts +0 -33
- package/src/components/lukso-icon/icons/return-up.ts +0 -33
- package/src/components/lukso-icon/icons/search.ts +0 -28
- package/src/components/lukso-icon/icons/settings.ts +0 -33
- package/src/components/lukso-icon/icons/smart-contract-doc.ts +0 -40
- package/src/components/lukso-icon/icons/smart-contract.ts +0 -31
- package/src/components/lukso-icon/icons/star-filled.ts +0 -23
- package/src/components/lukso-icon/icons/star-outline.ts +0 -24
- package/src/components/lukso-icon/icons/step-dot.ts +0 -34
- package/src/components/lukso-icon/icons/step-progress.ts +0 -31
- package/src/components/lukso-icon/icons/steps.ts +0 -40
- package/src/components/lukso-icon/icons/tick.ts +0 -26
- package/src/components/lukso-icon/icons/timer-outline.ts +0 -47
- package/src/components/lukso-icon/icons/transaction-receive.ts +0 -39
- package/src/components/lukso-icon/icons/transaction-send.ts +0 -39
- package/src/components/lukso-icon/icons/transfer.ts +0 -47
- package/src/components/lukso-icon/icons/trash.ts +0 -40
- package/src/components/lukso-icon/icons/turn-down.ts +0 -33
- package/src/components/lukso-icon/icons/turn-left.ts +0 -33
- package/src/components/lukso-icon/icons/turn-right.ts +0 -33
- package/src/components/lukso-icon/icons/turn-up.ts +0 -33
- package/src/components/lukso-icon/icons/unlocked.ts +0 -41
- package/src/components/lukso-icon/icons/wallet-outline.ts +0 -35
- package/src/components/lukso-icon/icons/warning-round.ts +0 -32
- package/src/components/lukso-icon/icons/warning-triangle.ts +0 -32
- package/src/components/lukso-icon/index.ts +0 -310
- package/src/components/lukso-icon/lukso-icon.stories.ts +0 -116
- package/src/components/lukso-icon/style.scss +0 -3
- package/src/components/lukso-input/index.ts +0 -211
- package/src/components/lukso-input/lukso-input.stories.ts +0 -184
- package/src/components/lukso-navbar/index.ts +0 -63
- package/src/components/lukso-navbar/lukso-navbar.stories.ts +0 -70
- package/src/components/lukso-profile/index.ts +0 -106
- package/src/components/lukso-profile/lukso-profile.stories.ts +0 -104
- package/src/components/lukso-sanitize/index.ts +0 -28
- package/src/components/lukso-sanitize/lukso-sanitize.stories.ts +0 -30
- package/src/components/lukso-tag/index.ts +0 -68
- package/src/components/lukso-tag/lukso-tag.stories.ts +0 -129
- package/src/components/lukso-test/index.ts +0 -72
- package/src/components/lukso-test/test.component.scss +0 -7
- package/src/components/lukso-test/test.stories.ts +0 -31
- package/src/components/lukso-username/index.ts +0 -105
- package/src/components/lukso-username/lukso-username.stories.ts +0 -98
- package/src/components/lukso-wizard/index.ts +0 -74
- package/src/components/lukso-wizard/lukso-wizard.stories.ts +0 -52
- package/src/docs/animations.stories.mdx +0 -83
- package/src/docs/colors.stories.mdx +0 -77
- package/src/docs/drop-shadows.stories.mdx +0 -108
- package/src/docs/icons.stories.mdx +0 -1590
- package/src/docs/typography.stories.mdx +0 -253
- package/src/index.ts +0 -1
- package/src/postcss.config.ts +0 -8
- package/src/shared/assets/fonts/Apax-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Light.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Medium.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Medium.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Thin.woff2 +0 -0
- package/src/shared/assets/fonts/PT-Mono-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/PT-Mono-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/index.ts +0 -1
- package/src/shared/assets/images/index.ts +0 -1
- package/src/shared/assets/images/lukso-logo.svg +0 -3
- package/src/shared/assets/images/profile-default.png +0 -0
- package/src/shared/assets/index.ts +0 -1
- package/src/shared/directives/custom-class-map/index.ts +0 -49
- package/src/shared/directives/index.ts +0 -1
- package/src/shared/globals.d.ts +0 -5
- package/src/shared/styles/colors.scss +0 -91
- package/src/shared/styles/component.scss +0 -13
- package/src/shared/styles/fonts.scss +0 -97
- package/src/shared/styles/index.ts +0 -1
- package/src/shared/styles/main.scss +0 -13
- package/src/shared/styles/typography.scss +0 -142
- package/src/shared/styles/variables.scss +0 -5
- package/src/shared/tailwind-element/index.ts +0 -16
- package/src/shared/utils/__tests__/slice-address.spec.ts +0 -15
- package/src/shared/utils/color-palette.ts +0 -76
- package/src/shared/utils/copy-assets.ts +0 -80
- package/src/shared/utils/hsl-color-map.ts +0 -20
- package/src/shared/utils/slice-address.ts +0 -30
- /package/{dist → tools}/assets/fonts/Apax-Bold.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Apax-Light.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Apax-Medium.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Apax-Regular.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-Bold.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-Medium.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-Regular.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-SemiBold.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/Inter-Thin.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/PT-Mono-Bold.woff2 +0 -0
- /package/{dist → tools}/assets/fonts/PT-Mono-Regular.woff2 +0 -0
- /package/{dist → tools}/assets/images/lukso-logo.svg +0 -0
- /package/{dist → tools}/assets/images/profile-default.png +0 -0
- /package/{dist/shared/utils → tools}/hsl-color-map.d.ts +0 -0
- /package/{dist/shared/utils → tools}/hsl-color-map.d.ts.map +0 -0
- /package/{dist → tools}/sass/colors.scss +0 -0
- /package/{dist → tools}/sass/component.scss +0 -0
- /package/{dist → tools}/sass/fonts.scss +0 -0
- /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts +0 -0
- /package/{dist/shared/assets/fonts → tools/sass}/index.d.ts.map +0 -0
- /package/{dist → tools}/sass/main.scss +0 -0
- /package/{dist → tools}/sass/typography.scss +0 -0
- /package/{dist → tools}/sass/variables.scss +0 -0
- /package/{dist/shared/utils → tools}/slice-address.d.ts +0 -0
- /package/{dist/shared/utils → tools}/slice-address.d.ts.map +0 -0
- /package/{dist/shared/assets/images → tools/styles}/index.d.ts +0 -0
- /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,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
|
|
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
|