@lukso/web-components 1.6.3 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +74 -0
- package/dist/components/lukso-navbar/index.js +43 -1154
- 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-4aafbf5c.cjs +67 -0
- package/dist/index-714323c9.js +18 -0
- package/dist/index-7dc05ee5.cjs +20 -0
- package/dist/index-e1077e02.js +59 -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-3f88f525.js +10 -0
- package/dist/style-map-e193a4d9.cjs +12 -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,129 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html'
|
|
2
|
-
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
|
3
|
-
|
|
4
|
-
import './index'
|
|
5
|
-
import '../lukso-icon'
|
|
6
|
-
|
|
7
|
-
/** Documentation and examples of `lukso-tag` component. */
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Design System/Components/lukso-tag',
|
|
10
|
-
component: 'lukso-tag',
|
|
11
|
-
argTypes: {
|
|
12
|
-
content: {
|
|
13
|
-
control: { type: 'text' },
|
|
14
|
-
},
|
|
15
|
-
isRounded: {
|
|
16
|
-
control: {
|
|
17
|
-
type: 'boolean',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
size: {
|
|
21
|
-
control: {
|
|
22
|
-
type: 'select',
|
|
23
|
-
},
|
|
24
|
-
options: ['small', 'large'],
|
|
25
|
-
},
|
|
26
|
-
backgroundColor: {
|
|
27
|
-
control: {
|
|
28
|
-
type: 'text',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
textColor: {
|
|
32
|
-
control: {
|
|
33
|
-
type: 'text',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
args: {
|
|
38
|
-
size: 'small',
|
|
39
|
-
isRounded: false,
|
|
40
|
-
content: 'Small Tag',
|
|
41
|
-
backgroundColor: '',
|
|
42
|
-
textColor: '',
|
|
43
|
-
},
|
|
44
|
-
parameters: {
|
|
45
|
-
controls: {
|
|
46
|
-
exclude: [
|
|
47
|
-
'defaultStyles',
|
|
48
|
-
'smallStyles',
|
|
49
|
-
'largeStyles',
|
|
50
|
-
'is-rounded',
|
|
51
|
-
'background-color',
|
|
52
|
-
'text-color',
|
|
53
|
-
'padding',
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const Template = ({ content, size, isRounded, backgroundColor, textColor }) =>
|
|
60
|
-
html`<lukso-tag
|
|
61
|
-
size=${size}
|
|
62
|
-
?is-rounded=${isRounded}
|
|
63
|
-
background-color=${backgroundColor}
|
|
64
|
-
text-color=${textColor}
|
|
65
|
-
>${content}</lukso-tag
|
|
66
|
-
>`
|
|
67
|
-
|
|
68
|
-
/** By default tag is displayed in `small` size. */
|
|
69
|
-
export const DefaultTag = Template.bind({})
|
|
70
|
-
DefaultTag.parameters = {
|
|
71
|
-
design: {
|
|
72
|
-
type: 'figma',
|
|
73
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=AGmdbG8fXRENuU3o-4',
|
|
74
|
-
},
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** You can change tag size with `size` property. This is example of `large` tag. */
|
|
78
|
-
export const LargeTag = Template.bind({})
|
|
79
|
-
LargeTag.args = {
|
|
80
|
-
size: 'large',
|
|
81
|
-
content: 'Large Tag',
|
|
82
|
-
}
|
|
83
|
-
LargeTag.parameters = {
|
|
84
|
-
design: {
|
|
85
|
-
type: 'figma',
|
|
86
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=AGmdbG8fXRENuU3o-4',
|
|
87
|
-
},
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** You can create "pill" tags when adding `is-rounded` property. */
|
|
91
|
-
export const RoundedTag = Template.bind({})
|
|
92
|
-
RoundedTag.args = {
|
|
93
|
-
isRounded: true,
|
|
94
|
-
}
|
|
95
|
-
RoundedTag.parameters = {
|
|
96
|
-
design: {
|
|
97
|
-
type: 'figma',
|
|
98
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1083%3A13483&t=AGmdbG8fXRENuU3o-4',
|
|
99
|
-
},
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** You can change color of the tag to any from the palette with `text-color` and `background-color` property. */
|
|
103
|
-
export const CustomColorTag = Template.bind({})
|
|
104
|
-
CustomColorTag.args = {
|
|
105
|
-
content: 'Custom Color Tag',
|
|
106
|
-
backgroundColor: 'red-55',
|
|
107
|
-
textColor: 'neutral-100',
|
|
108
|
-
}
|
|
109
|
-
CustomColorTag.parameters = {
|
|
110
|
-
design: {
|
|
111
|
-
type: 'figma',
|
|
112
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3241&t=AGmdbG8fXRENuU3o-4',
|
|
113
|
-
},
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** Tags can have icons inside. Please check `lukso-icon` component for more details about using icons. */
|
|
117
|
-
export const IconTag = Template.bind({})
|
|
118
|
-
IconTag.args = {
|
|
119
|
-
size: 'small',
|
|
120
|
-
content: unsafeHTML(
|
|
121
|
-
`<lukso-icon name="information" size="small" class="mr-1"></lukso-icon>Icon Tag`
|
|
122
|
-
),
|
|
123
|
-
}
|
|
124
|
-
IconTag.parameters = {
|
|
125
|
-
design: {
|
|
126
|
-
type: 'figma',
|
|
127
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3234&t=mppskGJvpl3LbsWL-4',
|
|
128
|
-
},
|
|
129
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js'
|
|
3
|
-
import { animate, AnimateController } from '@lit-labs/motion'
|
|
4
|
-
import { classMap } from 'lit/directives/class-map.js'
|
|
5
|
-
|
|
6
|
-
import { TailwindStyledElement } from '@/shared/tailwind-element'
|
|
7
|
-
import style from './test.component.scss?inline'
|
|
8
|
-
|
|
9
|
-
@customElement('lukso-test')
|
|
10
|
-
export class LuksoTest extends TailwindStyledElement(style) {
|
|
11
|
-
@property()
|
|
12
|
-
name = 'World'
|
|
13
|
-
|
|
14
|
-
@property()
|
|
15
|
-
private clicked = false
|
|
16
|
-
|
|
17
|
-
@property({ type: Boolean })
|
|
18
|
-
disabled = false
|
|
19
|
-
|
|
20
|
-
duration = 1000
|
|
21
|
-
controller = new AnimateController(this, {
|
|
22
|
-
defaultOptions: {
|
|
23
|
-
keyframeOptions: {
|
|
24
|
-
duration: this.duration,
|
|
25
|
-
fill: 'backwards',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
_onClick() {
|
|
31
|
-
if (this.disabled) {
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
this.clicked = true
|
|
35
|
-
setTimeout(() => {
|
|
36
|
-
this.clicked = false
|
|
37
|
-
}, 2000)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
render() {
|
|
41
|
-
const classes = {
|
|
42
|
-
'text-yellow-200': !this.disabled,
|
|
43
|
-
'p-2': true,
|
|
44
|
-
'rounded-full': true,
|
|
45
|
-
'text-24': true,
|
|
46
|
-
'bg-blue-800': this.clicked && !this.disabled,
|
|
47
|
-
'bg-blue-200': !this.clicked && !this.disabled,
|
|
48
|
-
}
|
|
49
|
-
return html`
|
|
50
|
-
<p class="heading-1">
|
|
51
|
-
Hello,
|
|
52
|
-
<b class="heading-4">${this.name}</b>
|
|
53
|
-
!
|
|
54
|
-
</p>
|
|
55
|
-
<button
|
|
56
|
-
?disabled=${this.disabled}
|
|
57
|
-
data-testid="button"
|
|
58
|
-
@click=${this._onClick}
|
|
59
|
-
class="hover:text-yellow-700 ${classMap(classes)}"
|
|
60
|
-
${animate()}
|
|
61
|
-
>
|
|
62
|
-
Hello world! 2
|
|
63
|
-
</button>
|
|
64
|
-
`
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare global {
|
|
69
|
-
interface HTMLElementTagNameMap {
|
|
70
|
-
'lukso-test': LuksoTest
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html'
|
|
2
|
-
import { within } from '@storybook/testing-library'
|
|
3
|
-
import { expect } from '@storybook/jest'
|
|
4
|
-
|
|
5
|
-
import '../lukso-test'
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Test',
|
|
9
|
-
component: 'lukso-test',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function Primary({ disabled }) {
|
|
13
|
-
return html`<lukso-test ?disabled=${disabled}>Hello World</lukso-test>`
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
Primary.args = {
|
|
17
|
-
disabled: false,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
Primary.play = async ({ canvasElement }) => {
|
|
21
|
-
const canvas = within(canvasElement)
|
|
22
|
-
|
|
23
|
-
// 👇 Assert DOM structure
|
|
24
|
-
await expect(canvas.getByText('Hello World')).toBeInTheDocument()
|
|
25
|
-
|
|
26
|
-
// See https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args to learn how to setup logging in the Actions panel
|
|
27
|
-
// await userEvent.click(canvas.getByTestId("button"));
|
|
28
|
-
|
|
29
|
-
// 👇 Assert DOM structure
|
|
30
|
-
await expect(canvas.getByText('Hello World')).toBeInTheDocument()
|
|
31
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js'
|
|
3
|
-
import { styleMap } from 'lit-html/directives/style-map.js'
|
|
4
|
-
|
|
5
|
-
import { sliceAddress } from '@/shared/utils/slice-address'
|
|
6
|
-
import { TailwindElement } from '@/shared/tailwind-element'
|
|
7
|
-
import { customClassMap } from '@/shared/directives'
|
|
8
|
-
|
|
9
|
-
export type UsernameSize = 'small' | 'large'
|
|
10
|
-
|
|
11
|
-
@customElement('lukso-username')
|
|
12
|
-
export class LuksoUsername extends TailwindElement {
|
|
13
|
-
@property({ type: String })
|
|
14
|
-
name = ''
|
|
15
|
-
|
|
16
|
-
@property({ type: String })
|
|
17
|
-
address = ''
|
|
18
|
-
|
|
19
|
-
@property({ type: Number, attribute: 'max-width' })
|
|
20
|
-
maxWidth = 200
|
|
21
|
-
|
|
22
|
-
@property({ type: 'string' })
|
|
23
|
-
size: UsernameSize = 'large'
|
|
24
|
-
|
|
25
|
-
@property({ type: Number, attribute: 'slice-by' })
|
|
26
|
-
sliceBy = 8
|
|
27
|
-
|
|
28
|
-
@property({ type: String, attribute: 'address-color' })
|
|
29
|
-
addressColor = 'neutral-20'
|
|
30
|
-
|
|
31
|
-
/** Width of the first 4 bytes of the address */
|
|
32
|
-
private bytesWidth = 52
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Template for 4byte address
|
|
36
|
-
* e.g: #1234
|
|
37
|
-
*/
|
|
38
|
-
private addressBytesTemplate() {
|
|
39
|
-
return html`<div class="inline-block text-neutral-60">
|
|
40
|
-
#${this.address.slice(2, 6)}
|
|
41
|
-
</div>`
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Template for name
|
|
46
|
-
* e.g: @John
|
|
47
|
-
*/
|
|
48
|
-
private nameTemplate() {
|
|
49
|
-
return html`<div
|
|
50
|
-
class="inline-block whitespace-nowrap overflow-hidden text-ellipsis text-transparent
|
|
51
|
-
bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
|
|
52
|
-
style=${styleMap({
|
|
53
|
-
maxWidth: `${this.maxWidth - this.bytesWidth}px`,
|
|
54
|
-
})}
|
|
55
|
-
>
|
|
56
|
-
@${this.name}
|
|
57
|
-
</div>`
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Template for address
|
|
62
|
-
* e.g: 0x123...789
|
|
63
|
-
*/
|
|
64
|
-
private addressTemplate() {
|
|
65
|
-
return html`<div
|
|
66
|
-
class="inline-block ${customClassMap({
|
|
67
|
-
['text-' + this.addressColor]: this.addressColor !== '',
|
|
68
|
-
['text-neutral-20']: this.addressColor === '',
|
|
69
|
-
})}"
|
|
70
|
-
>
|
|
71
|
-
${sliceAddress(this.address, this.sliceBy, this.sliceBy)}
|
|
72
|
-
</div>`
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
render() {
|
|
76
|
-
const template = (() => {
|
|
77
|
-
if (this.name && this.address) {
|
|
78
|
-
return html`${this.nameTemplate()}${this.addressBytesTemplate()}`
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (this.name) {
|
|
82
|
-
return this.nameTemplate()
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (this.address) {
|
|
86
|
-
return this.addressTemplate()
|
|
87
|
-
}
|
|
88
|
-
})()
|
|
89
|
-
|
|
90
|
-
return html`<div
|
|
91
|
-
class="inline-flex ${customClassMap({
|
|
92
|
-
'monospaced-12-bold': this.size === 'small',
|
|
93
|
-
'monospaced-16-bold': this.size === 'large',
|
|
94
|
-
})}"
|
|
95
|
-
>
|
|
96
|
-
${template}
|
|
97
|
-
</div>`
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare global {
|
|
102
|
-
interface HTMLElementTagNameMap {
|
|
103
|
-
'lukso-username': LuksoUsername
|
|
104
|
-
}
|
|
105
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html'
|
|
2
|
-
import './index'
|
|
3
|
-
|
|
4
|
-
/** Documentation and examples of `lukso-username` component. It's used to display user name and address in standardized way. */
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Design System/Components/lukso-username',
|
|
7
|
-
component: 'lukso-username',
|
|
8
|
-
argTypes: {
|
|
9
|
-
name: {
|
|
10
|
-
control: { type: 'text' },
|
|
11
|
-
},
|
|
12
|
-
address: {
|
|
13
|
-
control: { type: 'text' },
|
|
14
|
-
},
|
|
15
|
-
maxWidth: {
|
|
16
|
-
control: { type: 'number' },
|
|
17
|
-
if: { arg: 'name', neq: '' },
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
control: { type: 'select' },
|
|
21
|
-
options: ['large', 'small'],
|
|
22
|
-
},
|
|
23
|
-
sliceBy: {
|
|
24
|
-
control: { type: 'number' },
|
|
25
|
-
if: { arg: 'name', eq: '' },
|
|
26
|
-
},
|
|
27
|
-
addressColor: {
|
|
28
|
-
control: { type: 'text' },
|
|
29
|
-
if: { arg: 'name', eq: '' },
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
args: {
|
|
33
|
-
name: 'John',
|
|
34
|
-
address: '0x9671Db683406EE0817B1f5cB6A3b3BD111477457',
|
|
35
|
-
maxWidth: 200,
|
|
36
|
-
size: 'large',
|
|
37
|
-
sliceBy: 8,
|
|
38
|
-
addressColor: '',
|
|
39
|
-
},
|
|
40
|
-
parameters: {
|
|
41
|
-
controls: {
|
|
42
|
-
exclude: ['bytesWidth', 'max-width', 'slice-by', 'address-color'],
|
|
43
|
-
},
|
|
44
|
-
design: {
|
|
45
|
-
type: 'figma',
|
|
46
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1096%3A14641&t=W8onPGbREKjGG9sS-4',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
const Template = ({ name, address, maxWidth, size, sliceBy, addressColor }) =>
|
|
52
|
-
html`<lukso-username
|
|
53
|
-
name=${name}
|
|
54
|
-
address=${address}
|
|
55
|
-
max-width=${maxWidth}
|
|
56
|
-
size=${size}
|
|
57
|
-
slice-by=${sliceBy}
|
|
58
|
-
address-color=${addressColor}
|
|
59
|
-
></lukso-username>`
|
|
60
|
-
|
|
61
|
-
/** By default user name is displayed as `name` prefixed with `@` character and 4 bytes of `address` */
|
|
62
|
-
export const DefaultUsername = Template.bind({})
|
|
63
|
-
|
|
64
|
-
/** Long names get truncated. You can control width of the component with `max-width` property. */
|
|
65
|
-
export const LongName = Template.bind({})
|
|
66
|
-
LongName.args = {
|
|
67
|
-
name: 'ThisIsAReallyLongName',
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** Example of component that has only `name` property. */
|
|
71
|
-
export const OnlyName = Template.bind({})
|
|
72
|
-
OnlyName.args = {
|
|
73
|
-
address: '',
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/** Example of component that has only `address` property and `small` size. */
|
|
77
|
-
export const OnlyAddress = Template.bind({})
|
|
78
|
-
OnlyAddress.args = {
|
|
79
|
-
name: '',
|
|
80
|
-
size: 'small',
|
|
81
|
-
sliceBy: 4,
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** You can specify amount of sliced characters in the address with `slice-by` property. */
|
|
85
|
-
export const SliceAddressBy4 = Template.bind({})
|
|
86
|
-
SliceAddressBy4.args = {
|
|
87
|
-
name: '',
|
|
88
|
-
sliceBy: 4,
|
|
89
|
-
size: 'small',
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Address color can be customized with `address-color` property. */
|
|
93
|
-
export const CustomAddressColor = Template.bind({})
|
|
94
|
-
CustomAddressColor.args = {
|
|
95
|
-
name: '',
|
|
96
|
-
addressColor: 'neutral-60',
|
|
97
|
-
size: 'small',
|
|
98
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js'
|
|
3
|
-
import { repeat } from 'lit/directives/repeat.js'
|
|
4
|
-
|
|
5
|
-
import { TailwindElement } from '@/shared/tailwind-element'
|
|
6
|
-
import { customClassMap } from '@/shared/directives'
|
|
7
|
-
|
|
8
|
-
export type WizardStep = {
|
|
9
|
-
label: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@customElement('lukso-wizard')
|
|
13
|
-
export class LuksoWizard extends TailwindElement {
|
|
14
|
-
@property({ type: Array })
|
|
15
|
-
steps: WizardStep[] = []
|
|
16
|
-
|
|
17
|
-
@property({ type: Number, attribute: 'active-step' })
|
|
18
|
-
activeStep = 1
|
|
19
|
-
|
|
20
|
-
private activeStepStyles = `[&_.lukso-wizard-circle-inner]:border-2 [&_.lukso-wizard-circle-inner]:border-purple-51`
|
|
21
|
-
|
|
22
|
-
private completedStepStyles = `[&>.lukso-wizard-circle]:after:bg-purple-51
|
|
23
|
-
[&_.lukso-wizard-circle-inner]:bg-gradient-to-t
|
|
24
|
-
[&_.lukso-wizard-circle-inner]:from-gradient-3-start
|
|
25
|
-
[&_.lukso-wizard-circle-inner]:to-gradient-3-end`
|
|
26
|
-
|
|
27
|
-
stepTemplate(step: WizardStep, index: number) {
|
|
28
|
-
return html`<li
|
|
29
|
-
class="inline-flex flex-col items-center justify-end w-[121px] first:-ml-12 last:-mr-12 relative
|
|
30
|
-
[&>.lukso-wizard-circle]:after:last:hidden ${customClassMap({
|
|
31
|
-
[this.completedStepStyles]: index + 1 < this.activeStep,
|
|
32
|
-
[this.activeStepStyles]: index + 1 === this.activeStep,
|
|
33
|
-
})}"
|
|
34
|
-
>
|
|
35
|
-
<div
|
|
36
|
-
class="text-purple-51 heading-h5-medium-uppercase-apax whitespace-pre-line flex text-center break-words uppercase"
|
|
37
|
-
>
|
|
38
|
-
${step.label}
|
|
39
|
-
</div>
|
|
40
|
-
<div
|
|
41
|
-
class="lukso-wizard-circle bg-pink-95 w-4 h-4 rounded-full shadow-wizard-step mt-2 flex items-center
|
|
42
|
-
border-[1px] border-solid border-[rgba(255,255,255,0.8)]
|
|
43
|
-
after:block after:absolute after:bottom-[7px] after:w-[calc(100%-16px)] after:ml-[15px] after:h-[2px]
|
|
44
|
-
after:content:'' after:bg-pink-95 after:shadow-wizard-line"
|
|
45
|
-
>
|
|
46
|
-
<div
|
|
47
|
-
class="lukso-wizard-circle-inner rounded-full w-[10px] h-[10px] ml-[2px] ${customClassMap(
|
|
48
|
-
{
|
|
49
|
-
[this.activeStepStyles]: index + 1 === this.activeStep,
|
|
50
|
-
}
|
|
51
|
-
)}"
|
|
52
|
-
></div>
|
|
53
|
-
</div>
|
|
54
|
-
</li>`
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
render() {
|
|
58
|
-
return html`
|
|
59
|
-
<ul class="flex justify-center" data-testid="wizard">
|
|
60
|
-
${repeat(
|
|
61
|
-
this.steps || [],
|
|
62
|
-
step => this.steps.indexOf(step),
|
|
63
|
-
(step, index) => this.stepTemplate(step, index)
|
|
64
|
-
)}
|
|
65
|
-
</ul>
|
|
66
|
-
`
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
declare global {
|
|
71
|
-
interface HTMLElementTagNameMap {
|
|
72
|
-
'lukso-wizard': LuksoWizard
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html'
|
|
2
|
-
|
|
3
|
-
import '../lukso-wizard'
|
|
4
|
-
|
|
5
|
-
/** Documentation and examples of `lukso-wizard` component. Steps are passed in `step` property as object containing different labels.
|
|
6
|
-
* To specify which step is active set `active-step` property.
|
|
7
|
-
*/
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Design System/Components/lukso-wizard',
|
|
10
|
-
component: 'lukso-wizard',
|
|
11
|
-
argTypes: {
|
|
12
|
-
steps: {
|
|
13
|
-
control: { type: 'object' },
|
|
14
|
-
},
|
|
15
|
-
activeStep: { control: { type: 'number', min: 1, step: 1 } },
|
|
16
|
-
},
|
|
17
|
-
args: {
|
|
18
|
-
steps: [
|
|
19
|
-
{
|
|
20
|
-
label: `Select
|
|
21
|
-
Profile`,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: `Connect
|
|
25
|
-
Wallet`,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: `Migrate
|
|
29
|
-
LYXe`,
|
|
30
|
-
},
|
|
31
|
-
{ label: 'Status' },
|
|
32
|
-
],
|
|
33
|
-
activeStep: 3,
|
|
34
|
-
},
|
|
35
|
-
parameters: {
|
|
36
|
-
controls: {
|
|
37
|
-
exclude: ['activeStepStyles', 'completedStepStyles', 'active-step'],
|
|
38
|
-
},
|
|
39
|
-
design: {
|
|
40
|
-
type: 'figma',
|
|
41
|
-
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=1094%3A13512&t=AGmdbG8fXRENuU3o-4',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const Template = ({ steps, activeStep }) =>
|
|
47
|
-
html`<lukso-wizard
|
|
48
|
-
steps=${JSON.stringify(steps)}
|
|
49
|
-
active-step=${activeStep}
|
|
50
|
-
></lukso-wizard>`
|
|
51
|
-
|
|
52
|
-
export const BasicWizard = Template.bind({})
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Meta, IconGallery, IconItem } from '@storybook/addon-docs'
|
|
2
|
-
import '../components/lukso-icon/index'
|
|
3
|
-
|
|
4
|
-
<h1>Animations</h1>
|
|
5
|
-
|
|
6
|
-
Animations can be applied to any element through special CSS classes. For animatingicons you pass animation name.
|
|
7
|
-
|
|
8
|
-
<Meta title="Design System/Animations" />
|
|
9
|
-
|
|
10
|
-
### **Example usage**
|
|
11
|
-
|
|
12
|
-
```html
|
|
13
|
-
<div class="w-[12px] h-[12px] bg-green-54 animate-spin"></div>
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### **Animation list**
|
|
17
|
-
|
|
18
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
19
|
-
#### `animate-spin`
|
|
20
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 animate-spin"></div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
24
|
-
#### `animate-ping`
|
|
25
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-ping"></div>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
29
|
-
#### `animate-pulse`
|
|
30
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-pulse"></div>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
34
|
-
#### `animate-bounce`
|
|
35
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-bounce"></div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
39
|
-
#### `animate-pulse-resize`
|
|
40
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-pulse-resize"></div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
44
|
-
#### `animate-resize-in`
|
|
45
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full animate-resize-in animation-iteration-infinite animation-duration-1000"></div>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<div class="p-5 my-6 shadow-neutral-above-shadow rounded sb-unstyled">
|
|
49
|
-
#### `animate-fade-in`
|
|
50
|
-
<div class="mt-6 w-[12px] h-[12px] bg-green-54 rounded-full opacity-0 animate-fade-in animation-iteration-infinite animation-duration-1000"></div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
### **Delay animation**
|
|
54
|
-
|
|
55
|
-
You can delay animation by adding `animation-delay-[value]` class.
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<div class="animate-spin animation-delay-100"></div>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### **Animation count**
|
|
62
|
-
|
|
63
|
-
You can set animation count by adding `animation-iteration-[value]` class.
|
|
64
|
-
|
|
65
|
-
```html
|
|
66
|
-
<div class="animate-spin animation-iteration-infinite"></div>
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### **Animation duration**
|
|
70
|
-
|
|
71
|
-
You can set animation duration by adding `animation-duration-[value]` class.
|
|
72
|
-
|
|
73
|
-
```html
|
|
74
|
-
<div class="animate-spin animation-duration-1000"></div>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### **Animation fill mode**
|
|
78
|
-
|
|
79
|
-
You can set animation fill mode by adding `animation-fill-[value]` class.
|
|
80
|
-
|
|
81
|
-
```html
|
|
82
|
-
<div class="animate-spin animation-fill-forwards"></div>
|
|
83
|
-
```
|