@lukso/web-components 1.3.1 → 1.5.0
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/CHANGELOG.md +28 -0
- package/README.md +33 -7
- package/dist/color-palette/index.js +705 -0
- package/dist/color-palette/index.umd.cjs +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +5909 -1768
- package/dist/components/index.umd.cjs +3534 -72
- package/dist/components/lukso-button/index.d.ts +10 -1
- package/dist/components/lukso-button/index.js +234 -185
- package/dist/components/lukso-button/index.umd.cjs +32 -21
- package/dist/components/lukso-card/index.d.ts +4 -4
- package/dist/components/lukso-card/index.js +89 -80
- package/dist/components/lukso-card/index.umd.cjs +11 -11
- package/dist/components/lukso-icon/icons/add-photo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/camera.d.ts +3 -0
- package/dist/components/lukso-icon/icons/clipboard.d.ts +3 -0
- package/dist/components/lukso-icon/icons/clock.d.ts +3 -0
- package/dist/components/lukso-icon/icons/close-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/close-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/cloud.d.ts +3 -0
- package/dist/components/lukso-icon/icons/compass-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts +3 -0
- package/dist/components/lukso-icon/icons/complete-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/complete-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/connect.d.ts +3 -0
- package/dist/components/lukso-icon/icons/connections.d.ts +3 -0
- package/dist/components/lukso-icon/icons/contract-lock.d.ts +3 -0
- package/dist/components/lukso-icon/icons/controller.d.ts +3 -0
- package/dist/components/lukso-icon/icons/copy.d.ts +3 -0
- package/dist/components/lukso-icon/icons/cross-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/dots.d.ts +3 -0
- package/dist/components/lukso-icon/icons/edit.d.ts +3 -0
- package/dist/components/lukso-icon/icons/error.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eth-logo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/expand.d.ts +3 -0
- package/dist/components/lukso-icon/icons/extension.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eye-hide.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eye-show.d.ts +3 -0
- package/dist/components/lukso-icon/icons/filter.d.ts +3 -0
- package/dist/components/lukso-icon/icons/fish-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/flip.d.ts +3 -0
- package/dist/components/lukso-icon/icons/globe.d.ts +3 -0
- package/dist/components/lukso-icon/icons/google-color.d.ts +3 -0
- package/dist/components/lukso-icon/icons/hamburger.d.ts +3 -0
- package/dist/components/lukso-icon/icons/infinite.d.ts +3 -0
- package/dist/components/lukso-icon/icons/information.d.ts +3 -0
- package/dist/components/lukso-icon/icons/key-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link1.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link3.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link4.d.ts +3 -0
- package/dist/components/lukso-icon/icons/loading.d.ts +3 -0
- package/dist/components/lukso-icon/icons/location.d.ts +3 -0
- package/dist/components/lukso-icon/icons/locked.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login-3.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login.d.ts +3 -0
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts +3 -0
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/mail.d.ts +3 -0
- package/dist/components/lukso-icon/icons/menu-1.d.ts +3 -0
- package/dist/components/lukso-icon/icons/menu-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/migrate.d.ts +3 -0
- package/dist/components/lukso-icon/icons/minimize.d.ts +3 -0
- package/dist/components/lukso-icon/icons/network.d.ts +3 -0
- package/dist/components/lukso-icon/icons/notifications.d.ts +3 -0
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/pin.d.ts +3 -0
- package/dist/components/lukso-icon/icons/play-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/play-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/plus.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-add.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-export.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-import.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-restore.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile.d.ts +3 -0
- package/dist/components/lukso-icon/icons/progress-complete.d.ts +3 -0
- package/dist/components/lukso-icon/icons/progress-indicator.d.ts +3 -0
- package/dist/components/lukso-icon/icons/pulse-dot.d.ts +3 -0
- package/dist/components/lukso-icon/icons/qr-code.d.ts +3 -0
- package/dist/components/lukso-icon/icons/relayer.d.ts +3 -0
- package/dist/components/lukso-icon/icons/reload.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-down.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-left.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-right.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-up.d.ts +3 -0
- package/dist/components/lukso-icon/icons/search.d.ts +3 -0
- package/dist/components/lukso-icon/icons/settings.d.ts +3 -0
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts +3 -0
- package/dist/components/lukso-icon/icons/smart-contract.d.ts +3 -0
- package/dist/components/lukso-icon/icons/star-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/star-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/step-dot.d.ts +3 -0
- package/dist/components/lukso-icon/icons/step-progress.d.ts +3 -0
- package/dist/components/lukso-icon/icons/steps.d.ts +3 -0
- package/dist/components/lukso-icon/icons/tick.d.ts +3 -0
- package/dist/components/lukso-icon/icons/timer-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transaction-send.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transfer.d.ts +3 -0
- package/dist/components/lukso-icon/icons/trash.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-down.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-left.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-right.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-up.d.ts +3 -0
- package/dist/components/lukso-icon/icons/unlocked.d.ts +3 -0
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/warning-round.d.ts +3 -0
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts +3 -0
- package/dist/components/lukso-icon/index.d.ts +24 -0
- package/dist/components/lukso-icon/index.js +5061 -0
- package/dist/components/lukso-icon/index.umd.cjs +3465 -0
- package/dist/components/lukso-input/index.d.ts +36 -0
- package/dist/components/lukso-input/index.js +1305 -0
- package/dist/components/lukso-input/index.umd.cjs +104 -0
- package/dist/components/lukso-navbar/index.d.ts +1 -1
- package/dist/components/lukso-navbar/index.js +96 -96
- package/dist/components/lukso-navbar/index.umd.cjs +12 -12
- package/dist/components/lukso-profile/index.d.ts +1 -1
- package/dist/components/lukso-profile/index.js +92 -83
- package/dist/components/lukso-profile/index.umd.cjs +12 -12
- package/dist/components/lukso-sanitize/index.d.ts +2 -2
- package/dist/components/lukso-sanitize/index.js +148 -145
- package/dist/components/lukso-sanitize/index.umd.cjs +12 -12
- package/dist/components/lukso-tag/index.d.ts +1 -2
- package/dist/components/lukso-tag/index.js +97 -93
- package/dist/components/lukso-tag/index.umd.cjs +11 -11
- package/dist/components/lukso-test/index.d.ts +1 -1
- package/dist/components/lukso-test/index.js +491 -491
- package/dist/components/lukso-test/index.umd.cjs +22 -22
- package/dist/components/lukso-username/index.d.ts +1 -1
- package/dist/components/lukso-username/index.js +140 -141
- package/dist/components/lukso-username/index.umd.cjs +15 -15
- package/dist/components/lukso-wizard/index.d.ts +2 -2
- package/dist/components/lukso-wizard/index.js +144 -144
- package/dist/components/lukso-wizard/index.umd.cjs +13 -13
- package/dist/index.js +5909 -1768
- package/dist/index.umd.cjs +3534 -72
- package/dist/sass/color-palette.ts +1 -1
- package/dist/sass/colors.scss +91 -0
- package/{src/shared/utils → dist/sass}/hslColorMap.ts +0 -0
- package/dist/sass/main.scss +1 -0
- package/dist/shared/directives/custom-class-map/index.d.ts +1 -1
- package/dist/shared/styles/color-palette.d.ts +43 -0
- package/dist/shared/styles/hslColorMap.d.ts +10 -0
- package/dist/shared/tailwind-element/index.js +191 -191
- package/dist/shared/tailwind-element/index.umd.cjs +8 -8
- package/dist/shared/tailwind-element.js +191 -191
- package/dist/shared/tailwind-element.umd.cjs +8 -8
- package/dist/styles/main.css +91 -0
- package/package.json +19 -2
- package/src/components/index.ts +3 -1
- package/src/components/lukso-button/index.ts +70 -3
- package/src/components/lukso-button/lukso-button.stories.ts +101 -3
- package/src/components/lukso-card/lukso-card.stories.ts +6 -2
- package/src/components/lukso-icon/icons/add-photo.ts +46 -0
- package/src/components/lukso-icon/icons/arrow-down-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-down-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-left-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-left-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-right-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-right-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-up-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-up-sm.ts +26 -0
- package/src/components/lukso-icon/icons/barbell-outline.ts +54 -0
- package/src/components/lukso-icon/icons/bulb-outline.ts +54 -0
- package/src/components/lukso-icon/icons/camera.ts +40 -0
- package/src/components/lukso-icon/icons/clipboard.ts +59 -0
- package/src/components/lukso-icon/icons/clock.ts +31 -0
- package/src/components/lukso-icon/icons/close-lg.ts +33 -0
- package/src/components/lukso-icon/icons/close-sm.ts +33 -0
- package/src/components/lukso-icon/icons/cloud.ts +25 -0
- package/src/components/lukso-icon/icons/compass-outline.ts +29 -0
- package/src/components/lukso-icon/icons/complete-filled-fade-in.ts +34 -0
- package/src/components/lukso-icon/icons/complete-filled.ts +32 -0
- package/src/components/lukso-icon/icons/complete-outline.ts +31 -0
- package/src/components/lukso-icon/icons/connect.ts +33 -0
- package/src/components/lukso-icon/icons/connections.ts +34 -0
- package/src/components/lukso-icon/icons/contract-lock.ts +43 -0
- package/src/components/lukso-icon/icons/controller.ts +55 -0
- package/src/components/lukso-icon/icons/copy.ts +31 -0
- package/src/components/lukso-icon/icons/cross-outline.ts +38 -0
- package/src/components/lukso-icon/icons/dots.ts +22 -0
- package/src/components/lukso-icon/icons/edit.ts +30 -0
- package/src/components/lukso-icon/icons/error.ts +31 -0
- package/src/components/lukso-icon/icons/eth-logo.ts +50 -0
- package/src/components/lukso-icon/icons/expand.ts +31 -0
- package/src/components/lukso-icon/icons/extension.ts +31 -0
- package/src/components/lukso-icon/icons/eye-hide.ts +47 -0
- package/src/components/lukso-icon/icons/eye-show.ts +37 -0
- package/src/components/lukso-icon/icons/filter.ts +43 -0
- package/src/components/lukso-icon/icons/fish-outline.ts +36 -0
- package/src/components/lukso-icon/icons/flip.ts +45 -0
- package/src/components/lukso-icon/icons/globe.ts +61 -0
- package/src/components/lukso-icon/icons/google-color.ts +35 -0
- package/src/components/lukso-icon/icons/hamburger.ts +40 -0
- package/src/components/lukso-icon/icons/infinite.ts +33 -0
- package/src/components/lukso-icon/icons/information.ts +38 -0
- package/src/components/lukso-icon/icons/key-outline.ts +25 -0
- package/src/components/lukso-icon/icons/link.ts +33 -0
- package/src/components/lukso-icon/icons/link1.ts +39 -0
- package/src/components/lukso-icon/icons/link2.ts +46 -0
- package/src/components/lukso-icon/icons/link3.ts +32 -0
- package/src/components/lukso-icon/icons/link4.ts +52 -0
- package/src/components/lukso-icon/icons/loading.ts +50 -0
- package/src/components/lukso-icon/icons/location.ts +33 -0
- package/src/components/lukso-icon/icons/locked.ts +44 -0
- package/src/components/lukso-icon/icons/login-2.ts +55 -0
- package/src/components/lukso-icon/icons/login-3.ts +53 -0
- package/src/components/lukso-icon/icons/login.ts +39 -0
- package/src/components/lukso-icon/icons/logo-chrome.ts +35 -0
- package/src/components/lukso-icon/icons/lyx-logo.ts +41 -0
- package/src/components/lukso-icon/icons/mail.ts +33 -0
- package/src/components/lukso-icon/icons/menu-1.ts +71 -0
- package/src/components/lukso-icon/icons/menu-2.ts +61 -0
- package/src/components/lukso-icon/icons/migrate.ts +47 -0
- package/src/components/lukso-icon/icons/minimize.ts +53 -0
- package/src/components/lukso-icon/icons/network.ts +49 -0
- package/src/components/lukso-icon/icons/notifications.ts +33 -0
- package/src/components/lukso-icon/icons/phone-portrait-outline.ts +33 -0
- package/src/components/lukso-icon/icons/pin.ts +25 -0
- package/src/components/lukso-icon/icons/play-filled.ts +23 -0
- package/src/components/lukso-icon/icons/play-outline.ts +24 -0
- package/src/components/lukso-icon/icons/plus.ts +33 -0
- package/src/components/lukso-icon/icons/profile-add.ts +43 -0
- package/src/components/lukso-icon/icons/profile-export.ts +42 -0
- package/src/components/lukso-icon/icons/profile-import.ts +42 -0
- package/src/components/lukso-icon/icons/profile-recovery-2.ts +62 -0
- package/src/components/lukso-icon/icons/profile-recovery.ts +55 -0
- package/src/components/lukso-icon/icons/profile-restore.ts +50 -0
- package/src/components/lukso-icon/icons/profile.ts +29 -0
- package/src/components/lukso-icon/icons/progress-complete.ts +289 -0
- package/src/components/lukso-icon/icons/progress-indicator.ts +236 -0
- package/src/components/lukso-icon/icons/pulse-dot.ts +22 -0
- package/src/components/lukso-icon/icons/qr-code.ts +122 -0
- package/src/components/lukso-icon/icons/relayer.ts +40 -0
- package/src/components/lukso-icon/icons/reload.ts +32 -0
- package/src/components/lukso-icon/icons/return-down.ts +33 -0
- package/src/components/lukso-icon/icons/return-left.ts +33 -0
- package/src/components/lukso-icon/icons/return-right.ts +33 -0
- package/src/components/lukso-icon/icons/return-up.ts +33 -0
- package/src/components/lukso-icon/icons/search.ts +28 -0
- package/src/components/lukso-icon/icons/settings.ts +33 -0
- package/src/components/lukso-icon/icons/smart-contract-doc.ts +40 -0
- package/src/components/lukso-icon/icons/smart-contract.ts +31 -0
- package/src/components/lukso-icon/icons/star-filled.ts +23 -0
- package/src/components/lukso-icon/icons/star-outline.ts +24 -0
- package/src/components/lukso-icon/icons/step-dot.ts +34 -0
- package/src/components/lukso-icon/icons/step-progress.ts +31 -0
- package/src/components/lukso-icon/icons/steps.ts +40 -0
- package/src/components/lukso-icon/icons/tick.ts +26 -0
- package/src/components/lukso-icon/icons/timer-outline.ts +47 -0
- package/src/components/lukso-icon/icons/transaction-receive.ts +39 -0
- package/src/components/lukso-icon/icons/transaction-send.ts +39 -0
- package/src/components/lukso-icon/icons/transfer.ts +47 -0
- package/src/components/lukso-icon/icons/trash.ts +40 -0
- package/src/components/lukso-icon/icons/turn-down.ts +33 -0
- package/src/components/lukso-icon/icons/turn-left.ts +33 -0
- package/src/components/lukso-icon/icons/turn-right.ts +33 -0
- package/src/components/lukso-icon/icons/turn-up.ts +33 -0
- package/src/components/lukso-icon/icons/unlocked.ts +41 -0
- package/src/components/lukso-icon/icons/wallet-outline.ts +35 -0
- package/src/components/lukso-icon/icons/warning-round.ts +32 -0
- package/src/components/lukso-icon/icons/warning-triangle.ts +32 -0
- package/src/components/lukso-icon/index.ts +310 -0
- package/src/components/lukso-icon/lukso-icon.stories.ts +116 -0
- package/src/components/lukso-icon/style.scss +3 -0
- package/src/components/lukso-input/index.ts +188 -0
- package/src/components/lukso-input/lukso-input.stories.ts +183 -0
- package/src/components/lukso-navbar/index.ts +1 -1
- package/src/components/lukso-navbar/lukso-navbar.stories.ts +18 -1
- package/src/components/lukso-profile/index.ts +9 -3
- package/src/components/lukso-profile/lukso-profile.stories.ts +18 -1
- package/src/components/lukso-sanitize/index.ts +1 -1
- package/src/components/lukso-sanitize/lukso-sanitize.stories.ts +5 -1
- package/src/components/lukso-tag/index.ts +7 -7
- package/src/components/lukso-tag/lukso-tag.stories.ts +28 -6
- package/src/components/lukso-username/index.ts +3 -3
- package/src/components/lukso-username/lukso-username.stories.ts +10 -2
- package/src/components/lukso-wizard/index.ts +1 -1
- package/src/components/lukso-wizard/lukso-wizard.stories.ts +4 -1
- package/src/shared/styles/color-palette.ts +1 -1
- package/src/shared/styles/colors.scss +91 -0
- package/src/shared/styles/hslColorMap.ts +20 -0
- package/src/shared/styles/main.scss +1 -0
- package/src/shared/utils/__tests__/sliceAddress.spec.ts +1 -1
- package/tailwind.config.cjs +135 -1
- package/tools/color-palette.cjs +2 -2
- package/tools/color-palette.d.ts +2 -2
- package/tools/color-palette.d.ts.map +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { html } from 'lit-html'
|
|
2
|
+
import './index'
|
|
3
|
+
|
|
4
|
+
/** Documentation and examples of `lukso-input` component. */
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Design System/Forms/lukso-input',
|
|
7
|
+
component: 'lukso-input',
|
|
8
|
+
argTypes: {
|
|
9
|
+
value: {
|
|
10
|
+
control: { type: 'text' },
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
control: { type: 'text' },
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
control: { type: 'text' },
|
|
17
|
+
},
|
|
18
|
+
placeholder: {
|
|
19
|
+
control: { type: 'text' },
|
|
20
|
+
},
|
|
21
|
+
label: {
|
|
22
|
+
control: { type: 'text' },
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
control: { type: 'text' },
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
control: { type: 'text' },
|
|
29
|
+
},
|
|
30
|
+
unit: {
|
|
31
|
+
control: { type: 'text' },
|
|
32
|
+
},
|
|
33
|
+
isFullWidth: {
|
|
34
|
+
control: { type: 'boolean' },
|
|
35
|
+
},
|
|
36
|
+
autofocus: {
|
|
37
|
+
control: { type: 'boolean' },
|
|
38
|
+
},
|
|
39
|
+
min: {
|
|
40
|
+
control: { type: 'number' },
|
|
41
|
+
},
|
|
42
|
+
max: {
|
|
43
|
+
control: { type: 'number' },
|
|
44
|
+
},
|
|
45
|
+
onKeyUp: {
|
|
46
|
+
description: 'Emitted on key up event.',
|
|
47
|
+
table: {
|
|
48
|
+
category: 'Events',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
onKeyDown: {
|
|
52
|
+
description: 'Emitted on key up down.',
|
|
53
|
+
table: {
|
|
54
|
+
category: 'Events',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
onKeyPress: {
|
|
58
|
+
description: 'Emitted on key press.',
|
|
59
|
+
table: {
|
|
60
|
+
category: 'Events',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
args: {
|
|
65
|
+
type: 'text',
|
|
66
|
+
value: '',
|
|
67
|
+
name: 'input',
|
|
68
|
+
label: '',
|
|
69
|
+
description: '',
|
|
70
|
+
error: '',
|
|
71
|
+
placeholder: '',
|
|
72
|
+
unit: '',
|
|
73
|
+
isFullWidth: false,
|
|
74
|
+
autofocus: false,
|
|
75
|
+
min: undefined,
|
|
76
|
+
max: undefined,
|
|
77
|
+
},
|
|
78
|
+
parameters: {
|
|
79
|
+
controls: {
|
|
80
|
+
exclude: [
|
|
81
|
+
'defaultInputStyles',
|
|
82
|
+
'defaultUnitStyles',
|
|
83
|
+
'is-full-width',
|
|
84
|
+
'hasHocus',
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
design: {
|
|
88
|
+
type: 'figma',
|
|
89
|
+
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=420%3A3617&t=JAexoWba0Re3ntDk-4',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const Template = ({
|
|
95
|
+
value,
|
|
96
|
+
name,
|
|
97
|
+
type,
|
|
98
|
+
placeholder,
|
|
99
|
+
label,
|
|
100
|
+
description,
|
|
101
|
+
error,
|
|
102
|
+
unit,
|
|
103
|
+
isFullWidth,
|
|
104
|
+
autofocus,
|
|
105
|
+
min,
|
|
106
|
+
max,
|
|
107
|
+
}) =>
|
|
108
|
+
html`<lukso-input
|
|
109
|
+
value=${value}
|
|
110
|
+
name=${name}
|
|
111
|
+
type=${type}
|
|
112
|
+
placeholder=${placeholder}
|
|
113
|
+
label=${label}
|
|
114
|
+
description=${description}
|
|
115
|
+
error=${error}
|
|
116
|
+
unit=${unit}
|
|
117
|
+
?is-full-width=${isFullWidth}
|
|
118
|
+
?autofocus=${autofocus}
|
|
119
|
+
min=${min}
|
|
120
|
+
max=${max}
|
|
121
|
+
@on-key-up="handleKeyUp"
|
|
122
|
+
@on-key-down="handleKeyDown"
|
|
123
|
+
@on-key-press="handleKeyPress"
|
|
124
|
+
></lukso-input>`
|
|
125
|
+
|
|
126
|
+
/** Example of default input with `value`. */
|
|
127
|
+
export const DefaultInput = Template.bind({})
|
|
128
|
+
DefaultInput.args = {
|
|
129
|
+
value: 'Text Input',
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** Example of input with `placeholder` text. */
|
|
133
|
+
export const PlaceholderText = Template.bind({})
|
|
134
|
+
PlaceholderText.args = {
|
|
135
|
+
placeholder: 'Placeholder Text',
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Example of input with `label`. */
|
|
139
|
+
export const Label = Template.bind({})
|
|
140
|
+
Label.args = {
|
|
141
|
+
label: 'Title',
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Example of input with `label` and `description`. */
|
|
145
|
+
export const LabelAndDescription = Template.bind({})
|
|
146
|
+
LabelAndDescription.args = {
|
|
147
|
+
label: 'Title',
|
|
148
|
+
description: 'Description',
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** Example of input with `error`. */
|
|
152
|
+
export const Error = Template.bind({})
|
|
153
|
+
Error.args = {
|
|
154
|
+
label: 'Title',
|
|
155
|
+
description: 'Description',
|
|
156
|
+
error: 'Error message',
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/** Example of input with `unit`. */
|
|
160
|
+
export const Unit = Template.bind({})
|
|
161
|
+
Unit.args = {
|
|
162
|
+
unit: 'unit',
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** If you need input to take full width of the parent element add `is-full-width` property. */
|
|
166
|
+
export const FullWidth = Template.bind({})
|
|
167
|
+
FullWidth.args = {
|
|
168
|
+
isFullWidth: true,
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** If you need input to be focused add `autofocus` property. */
|
|
172
|
+
export const Autofocus = Template.bind({})
|
|
173
|
+
Autofocus.args = {
|
|
174
|
+
autofocus: true,
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** With `min` and `max` property you can specify minimum or maximum value that can be entered. It works with `number`, `range`, `date`, `datetime-local`, `month`, `time` and `week` input types */
|
|
178
|
+
export const MinMaxValue = Template.bind({})
|
|
179
|
+
MinMaxValue.args = {
|
|
180
|
+
min: 1,
|
|
181
|
+
max: 10,
|
|
182
|
+
type: 'number',
|
|
183
|
+
}
|
|
@@ -22,7 +22,7 @@ export class LuksoNavbar extends TailwindElement {
|
|
|
22
22
|
private stickyStyles = `sticky top-0 z-[1000]`
|
|
23
23
|
|
|
24
24
|
_onBrandClick() {
|
|
25
|
-
const event = new CustomEvent('
|
|
25
|
+
const event = new CustomEvent('on-brand-click', {
|
|
26
26
|
bubbles: true,
|
|
27
27
|
composed: true,
|
|
28
28
|
})
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { html } from 'lit-html'
|
|
2
2
|
import './index'
|
|
3
3
|
|
|
4
|
+
/** Documentation and examples of `lukso-navbar` component. */
|
|
4
5
|
export default {
|
|
5
|
-
title: 'Design System/Components/
|
|
6
|
+
title: 'Design System/Components/lukso-navbar',
|
|
6
7
|
component: 'lukso-navbar',
|
|
7
8
|
argTypes: {
|
|
8
9
|
title: {
|
|
@@ -14,6 +15,13 @@ export default {
|
|
|
14
15
|
isSticky: {
|
|
15
16
|
control: { type: 'boolean' },
|
|
16
17
|
},
|
|
18
|
+
onBrandClick: {
|
|
19
|
+
action: 'on-brand-click',
|
|
20
|
+
description: 'Emitted when brand/logo is clicked',
|
|
21
|
+
table: {
|
|
22
|
+
category: 'Events',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
17
25
|
},
|
|
18
26
|
args: {
|
|
19
27
|
title: `UNIVERSAL
|
|
@@ -43,11 +51,20 @@ const Template = ({ title, isCenter, isSticky }) =>
|
|
|
43
51
|
title=${title}
|
|
44
52
|
?is-center=${isCenter}
|
|
45
53
|
?is-sticky=${isSticky}
|
|
54
|
+
@on-brand-click="handleBrandClick"
|
|
46
55
|
></lukso-navbar>`
|
|
47
56
|
|
|
57
|
+
/** Example of default navbar. It support `@on-brand-click` event that is fired when clicking on the logo/title. */
|
|
48
58
|
export const DefaultNavbar = Template.bind({})
|
|
49
59
|
|
|
60
|
+
/** Example of navbar with logo and title in center. You set this by adding `is-center` property. */
|
|
50
61
|
export const CenterNavbar = Template.bind({})
|
|
51
62
|
CenterNavbar.args = {
|
|
52
63
|
isCenter: true,
|
|
53
64
|
}
|
|
65
|
+
|
|
66
|
+
/** By default navbar stays at the top of the document. If you want it scroll with the content then ad `is-sticky` property. */
|
|
67
|
+
export const StickyNavbar = Template.bind({})
|
|
68
|
+
StickyNavbar.args = {
|
|
69
|
+
isSticky: true,
|
|
70
|
+
}
|
|
@@ -45,11 +45,17 @@ export class LuksoProfile extends TailwindElement {
|
|
|
45
45
|
},
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
private profileImageSize
|
|
49
|
-
|
|
48
|
+
private profileImageSize() {
|
|
49
|
+
return this.sizes[this.size].profileImageSize
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
private identiconSize() {
|
|
53
|
+
return this.sizes[this.size].identiconSize
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
private defaultProfileUrl = 'assets/images/profile-default.png'
|
|
51
57
|
|
|
52
|
-
private identicon
|
|
58
|
+
private identicon() {
|
|
53
59
|
return this.hasIdenticon && this.profileAddress && this.identiconSize()
|
|
54
60
|
? makeBlockie(this.profileAddress)
|
|
55
61
|
: ''
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { html } from 'lit-html'
|
|
2
2
|
import './index'
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Documentation and examples of `lukso-profile` component.
|
|
6
|
+
* Profiles comes in `x-small`, `small`, `medium`, `large` and `x-large` size that is set in `size` property.
|
|
7
|
+
* Identicon is generated using `ethereum-blockies-base64` library from `profile-Address` property.
|
|
8
|
+
* To show profile picture pass valid url in `profile-url` property.
|
|
9
|
+
*/
|
|
4
10
|
export default {
|
|
5
|
-
title: 'Design System/Components/
|
|
11
|
+
title: 'Design System/Components/lukso-profile',
|
|
6
12
|
component: 'lukso-profile',
|
|
7
13
|
argTypes: {
|
|
8
14
|
profileUrl: {
|
|
@@ -55,33 +61,44 @@ const Template = ({ profileUrl, size, profileAddress, hasIdenticon }) =>
|
|
|
55
61
|
?has-identicon=${hasIdenticon}
|
|
56
62
|
></lukso-profile>`
|
|
57
63
|
|
|
64
|
+
/** Example of `x-large` profile in `96x96` pixel size.*/
|
|
58
65
|
export const XLarge = Template.bind({})
|
|
59
66
|
XLarge.args = {
|
|
60
67
|
size: 'x-large',
|
|
61
68
|
}
|
|
62
69
|
|
|
70
|
+
/** Example of `large` profile in `80x80` pixel size.*/
|
|
63
71
|
export const Large = Template.bind({})
|
|
64
72
|
Large.args = {
|
|
65
73
|
size: 'large',
|
|
66
74
|
}
|
|
67
75
|
|
|
76
|
+
/** Example of `medium` profile in `56x56` pixel size.*/
|
|
68
77
|
export const Medium = Template.bind({})
|
|
69
78
|
Medium.args = {
|
|
70
79
|
size: 'medium',
|
|
71
80
|
}
|
|
72
81
|
|
|
82
|
+
/** Example of `small` profile in `40x40` pixel size.*/
|
|
73
83
|
export const Small = Template.bind({})
|
|
74
84
|
Small.args = {
|
|
75
85
|
size: 'small',
|
|
76
86
|
}
|
|
77
87
|
|
|
88
|
+
/** Example of `x-small` profile in `24x24` pixel size.*/
|
|
78
89
|
export const XSmall = Template.bind({})
|
|
79
90
|
XSmall.args = {
|
|
80
91
|
size: 'x-small',
|
|
81
92
|
}
|
|
82
93
|
|
|
94
|
+
/** When image can't be loaded or missing the placeholder is displayed. */
|
|
83
95
|
export const Unknown = Template.bind({})
|
|
84
96
|
Unknown.args = {
|
|
85
97
|
profileUrl: '',
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** You can also control if identicon should be visible with `has-identicon` property. */
|
|
101
|
+
export const NoIdenticon = Template.bind({})
|
|
102
|
+
NoIdenticon.args = {
|
|
86
103
|
hasIdenticon: false,
|
|
87
104
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { html } from 'lit-html'
|
|
2
2
|
import './index'
|
|
3
3
|
|
|
4
|
+
/** Documentation and examples of `lukso-sanitize` component. It's used to show potentially dangerous content or HTML in safe way.
|
|
5
|
+
* One of the common use cases is using HTML tags in texts coming from translations.
|
|
6
|
+
*/
|
|
4
7
|
export default {
|
|
5
|
-
title: 'Design System/Components/
|
|
8
|
+
title: 'Design System/Components/lukso-sanitize',
|
|
6
9
|
component: 'lukso-sanitize',
|
|
7
10
|
argTypes: {
|
|
8
11
|
htmlContent: {
|
|
@@ -23,4 +26,5 @@ export default {
|
|
|
23
26
|
const Template = ({ htmlContent }) =>
|
|
24
27
|
html`<lukso-sanitize html-content=${htmlContent}></lukso-sanitize>`
|
|
25
28
|
|
|
29
|
+
/** This is example if text containing HTML tags. */
|
|
26
30
|
export const Sanitize = Template.bind({})
|
|
@@ -21,12 +21,11 @@ export class LuksoTag extends TailwindElement {
|
|
|
21
21
|
@property({ type: String, attribute: 'text-color' })
|
|
22
22
|
textColor = ''
|
|
23
23
|
|
|
24
|
-
private defaultStyles = `
|
|
24
|
+
private defaultStyles = `inline-flex items-center justify-center border border-neutral-20 text-neutral-20`
|
|
25
25
|
private smallStyles = `paragraph-12-medium h-[28px]`
|
|
26
26
|
private largeStyles = `paragraph-14-medium h-[34px]`
|
|
27
|
-
private roundedStyles = `rounded-[56px]`
|
|
28
27
|
|
|
29
|
-
private padding
|
|
28
|
+
private padding() {
|
|
30
29
|
if (this.size === 'small' && this.isRounded) {
|
|
31
30
|
return 'px-3'
|
|
32
31
|
}
|
|
@@ -45,14 +44,15 @@ export class LuksoTag extends TailwindElement {
|
|
|
45
44
|
class=${customClassMap({
|
|
46
45
|
[this.defaultStyles]: true,
|
|
47
46
|
[this.padding()]: true,
|
|
48
|
-
[
|
|
47
|
+
['rounded-[56px]']: this.isRounded,
|
|
48
|
+
['rounded-lg']: !this.isRounded,
|
|
49
49
|
[this.smallStyles]: this.size === 'small',
|
|
50
50
|
[this.largeStyles]: this.size === 'large',
|
|
51
51
|
})}
|
|
52
52
|
style=${styleMap({
|
|
53
|
-
backgroundColor: this.backgroundColor
|
|
54
|
-
borderColor: this.backgroundColor
|
|
55
|
-
color: this.textColor
|
|
53
|
+
backgroundColor: `var(--${this.backgroundColor})`,
|
|
54
|
+
borderColor: `var(--${this.backgroundColor})`,
|
|
55
|
+
color: `var(--${this.textColor})`,
|
|
56
56
|
})}
|
|
57
57
|
>
|
|
58
58
|
<slot></slot>
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { html } from 'lit-html'
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
|
3
|
+
|
|
2
4
|
import './index'
|
|
5
|
+
import '../lukso-icon'
|
|
3
6
|
|
|
7
|
+
/** Documentation and examples of `lukso-tag` component. */
|
|
4
8
|
export default {
|
|
5
|
-
title: 'Design System/Components/
|
|
9
|
+
title: 'Design System/Components/lukso-tag',
|
|
6
10
|
component: 'lukso-tag',
|
|
7
11
|
argTypes: {
|
|
8
12
|
content: {
|
|
@@ -21,12 +25,12 @@ export default {
|
|
|
21
25
|
},
|
|
22
26
|
backgroundColor: {
|
|
23
27
|
control: {
|
|
24
|
-
type: '
|
|
28
|
+
type: 'text',
|
|
25
29
|
},
|
|
26
30
|
},
|
|
27
31
|
textColor: {
|
|
28
32
|
control: {
|
|
29
|
-
type: '
|
|
33
|
+
type: 'text',
|
|
30
34
|
},
|
|
31
35
|
},
|
|
32
36
|
},
|
|
@@ -43,7 +47,6 @@ export default {
|
|
|
43
47
|
'defaultStyles',
|
|
44
48
|
'smallStyles',
|
|
45
49
|
'largeStyles',
|
|
46
|
-
'roundedStyles',
|
|
47
50
|
'is-rounded',
|
|
48
51
|
'background-color',
|
|
49
52
|
'text-color',
|
|
@@ -62,6 +65,7 @@ const Template = ({ content, size, isRounded, backgroundColor, textColor }) =>
|
|
|
62
65
|
>${content}</lukso-tag
|
|
63
66
|
>`
|
|
64
67
|
|
|
68
|
+
/** By default tag is displayed in `small` size. */
|
|
65
69
|
export const DefaultTag = Template.bind({})
|
|
66
70
|
DefaultTag.parameters = {
|
|
67
71
|
design: {
|
|
@@ -70,6 +74,7 @@ DefaultTag.parameters = {
|
|
|
70
74
|
},
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
/** You can change tag size with `size` property. This is example of `large` tag. */
|
|
73
78
|
export const LargeTag = Template.bind({})
|
|
74
79
|
LargeTag.args = {
|
|
75
80
|
size: 'large',
|
|
@@ -82,6 +87,7 @@ LargeTag.parameters = {
|
|
|
82
87
|
},
|
|
83
88
|
}
|
|
84
89
|
|
|
90
|
+
/** You can create "pill" tags when adding `is-rounded` property. */
|
|
85
91
|
export const RoundedTag = Template.bind({})
|
|
86
92
|
RoundedTag.args = {
|
|
87
93
|
isRounded: true,
|
|
@@ -93,11 +99,12 @@ RoundedTag.parameters = {
|
|
|
93
99
|
},
|
|
94
100
|
}
|
|
95
101
|
|
|
102
|
+
/** You can change color of the tag to any from the palette with `text-color` and `background-color` property. */
|
|
96
103
|
export const CustomColorTag = Template.bind({})
|
|
97
104
|
CustomColorTag.args = {
|
|
98
105
|
content: 'Custom Color Tag',
|
|
99
|
-
backgroundColor: '
|
|
100
|
-
textColor: '
|
|
106
|
+
backgroundColor: 'red-55',
|
|
107
|
+
textColor: 'neutral-100',
|
|
101
108
|
}
|
|
102
109
|
CustomColorTag.parameters = {
|
|
103
110
|
design: {
|
|
@@ -105,3 +112,18 @@ CustomColorTag.parameters = {
|
|
|
105
112
|
url: 'https://www.figma.com/file/NFCh20xAq3Jg2g8A0DNC9I/UI-Library?node-id=375%3A3241&t=AGmdbG8fXRENuU3o-4',
|
|
106
113
|
},
|
|
107
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,10 +1,10 @@
|
|
|
1
1
|
import { html } from 'lit'
|
|
2
2
|
import { customElement, property } from 'lit/decorators.js'
|
|
3
|
-
import {
|
|
3
|
+
import { styleMap } from 'lit-html/directives/style-map.js'
|
|
4
4
|
|
|
5
|
+
import { sliceAddress } from '@/shared/utils/sliceAddress'
|
|
5
6
|
import { TailwindElement } from '@/shared/tailwind-element'
|
|
6
|
-
import { customClassMap } from '@/shared/directives
|
|
7
|
-
import { styleMap } from 'lit-html/directives/style-map.js'
|
|
7
|
+
import { customClassMap } from '@/shared/directives'
|
|
8
8
|
|
|
9
9
|
export type UsernameSize = 'small' | 'large'
|
|
10
10
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { html } from 'lit-html'
|
|
2
2
|
import './index'
|
|
3
3
|
|
|
4
|
+
/** Documentation and examples of `lukso-username` component. It's used to display user name and address in standardized way. */
|
|
4
5
|
export default {
|
|
5
|
-
title: 'Design System/Components/
|
|
6
|
+
title: 'Design System/Components/lukso-username',
|
|
6
7
|
component: 'lukso-username',
|
|
7
8
|
argTypes: {
|
|
8
9
|
name: {
|
|
@@ -57,31 +58,38 @@ const Template = ({ name, address, maxWidth, size, sliceBy, addressColor }) =>
|
|
|
57
58
|
address-color=${addressColor}
|
|
58
59
|
></lukso-username>`
|
|
59
60
|
|
|
61
|
+
/** By default user name is displayed as `name` prefixed with `@` character and 4 bytes of `address` */
|
|
60
62
|
export const DefaultUsername = Template.bind({})
|
|
61
63
|
|
|
64
|
+
/** Long names get truncated. You can control width of the component with `max-width` property. */
|
|
62
65
|
export const LongName = Template.bind({})
|
|
63
66
|
LongName.args = {
|
|
64
67
|
name: 'ThisIsAReallyLongName',
|
|
65
68
|
}
|
|
66
69
|
|
|
70
|
+
/** Example of component that has only `name` property. */
|
|
67
71
|
export const OnlyName = Template.bind({})
|
|
68
72
|
OnlyName.args = {
|
|
69
73
|
address: '',
|
|
70
74
|
}
|
|
71
75
|
|
|
76
|
+
/** Example of component that has only `address` property and `small` size. */
|
|
72
77
|
export const OnlyAddress = Template.bind({})
|
|
73
78
|
OnlyAddress.args = {
|
|
74
79
|
name: '',
|
|
75
80
|
size: 'small',
|
|
81
|
+
sliceBy: 4,
|
|
76
82
|
}
|
|
77
83
|
|
|
84
|
+
/** You can specify amount of sliced characters in the address with `slice-by` property. */
|
|
78
85
|
export const SliceAddressBy4 = Template.bind({})
|
|
79
86
|
SliceAddressBy4.args = {
|
|
80
87
|
name: '',
|
|
81
|
-
size: 'small',
|
|
82
88
|
sliceBy: 4,
|
|
89
|
+
size: 'small',
|
|
83
90
|
}
|
|
84
91
|
|
|
92
|
+
/** Address color can be customized with `address-color` property. */
|
|
85
93
|
export const CustomAddressColor = Template.bind({})
|
|
86
94
|
CustomAddressColor.args = {
|
|
87
95
|
name: '',
|
|
@@ -3,7 +3,7 @@ import { customElement, property } from 'lit/decorators.js'
|
|
|
3
3
|
import { repeat } from 'lit/directives/repeat.js'
|
|
4
4
|
|
|
5
5
|
import { TailwindElement } from '@/shared/tailwind-element'
|
|
6
|
-
import { customClassMap } from '@/shared/directives
|
|
6
|
+
import { customClassMap } from '@/shared/directives'
|
|
7
7
|
|
|
8
8
|
export type WizardStep = {
|
|
9
9
|
label: string
|
|
@@ -2,8 +2,11 @@ import { html } from 'lit-html'
|
|
|
2
2
|
|
|
3
3
|
import '../lukso-wizard'
|
|
4
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
|
+
*/
|
|
5
8
|
export default {
|
|
6
|
-
title: 'Design System/Components/
|
|
9
|
+
title: 'Design System/Components/lukso-wizard',
|
|
7
10
|
component: 'lukso-wizard',
|
|
8
11
|
argTypes: {
|
|
9
12
|
steps: {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// DO NOT MODIFY MANUALLY. This file is auto generated by Vite build process.
|
|
2
|
+
:root {
|
|
3
|
+
--neutral-10: #121b21;
|
|
4
|
+
--neutral-15: #1b2832;
|
|
5
|
+
--neutral-20: #243542;
|
|
6
|
+
--neutral-25: #2d4253;
|
|
7
|
+
--neutral-30: #365063;
|
|
8
|
+
--neutral-35: #3e5d74;
|
|
9
|
+
--neutral-40: #476a85;
|
|
10
|
+
--neutral-45: #507795;
|
|
11
|
+
--neutral-50: #5985a6;
|
|
12
|
+
--neutral-55: #6a91af;
|
|
13
|
+
--neutral-60: #7a9db8;
|
|
14
|
+
--neutral-65: #8ba9c1;
|
|
15
|
+
--neutral-70: #9cb6c9;
|
|
16
|
+
--neutral-75: #acc2d2;
|
|
17
|
+
--neutral-80: #bdcedb;
|
|
18
|
+
--neutral-85: #cddae4;
|
|
19
|
+
--neutral-90: #dee7ed;
|
|
20
|
+
--neutral-95: #eef3f6;
|
|
21
|
+
--neutral-97: #f5f8fa;
|
|
22
|
+
--neutral-98: #f8fafb;
|
|
23
|
+
--neutral-100: #ffffff;
|
|
24
|
+
--honey-72: #fad275;
|
|
25
|
+
--honey-75: #fbd784;
|
|
26
|
+
--honey-82: #fce2a6;
|
|
27
|
+
--honey-85: #fce7b5;
|
|
28
|
+
--honey-92: #fef2d8;
|
|
29
|
+
--coral-65: #f37c58;
|
|
30
|
+
--coral-74: #f69e83;
|
|
31
|
+
--coral-75: #f7a288;
|
|
32
|
+
--coral-84: #fac3b3;
|
|
33
|
+
--coral-85: #fac7b7;
|
|
34
|
+
--coral-94: #fde9e2;
|
|
35
|
+
--warm-77: #ffbb8a;
|
|
36
|
+
--warm-87: #ffd8bd;
|
|
37
|
+
--warm-97: #fff6f0;
|
|
38
|
+
--sea-salt-57: #7fa4a4;
|
|
39
|
+
--sea-salt-67: #9db9b9;
|
|
40
|
+
--sea-salt-88: #dbe6e6;
|
|
41
|
+
--cloud-43: #447c97;
|
|
42
|
+
--cloud-75: #a7c7d7;
|
|
43
|
+
--cloud-88: #d5e4ec;
|
|
44
|
+
--ocean-38: #3c6286;
|
|
45
|
+
--ocean-75: #a7c0d7;
|
|
46
|
+
--ocean-88: #d5e1ec;
|
|
47
|
+
--sky-64: #68a5de;
|
|
48
|
+
--sky-75: #96c1e8;
|
|
49
|
+
--sky-85: #c0daf1;
|
|
50
|
+
--lukso-70: #cc99ae;
|
|
51
|
+
--lukso-80: #ddbbc9;
|
|
52
|
+
--lukso-90: #eedde4;
|
|
53
|
+
--yellow-55: #ffa31a;
|
|
54
|
+
--yellow-65: #ffb84d;
|
|
55
|
+
--yellow-75: #ffcc80;
|
|
56
|
+
--yellow-85: #ffe0b3;
|
|
57
|
+
--green-45: #31b452;
|
|
58
|
+
--green-54: #47cd68;
|
|
59
|
+
--green-75: #9be4ad;
|
|
60
|
+
--green-85: #c3efce;
|
|
61
|
+
--blue-50: #0567fa;
|
|
62
|
+
--blue-60: #3785fb;
|
|
63
|
+
--blue-75: #82b3fc;
|
|
64
|
+
--blue-85: #b4d1fd;
|
|
65
|
+
--red-55: #e23636;
|
|
66
|
+
--red-65: #e96363;
|
|
67
|
+
--red-75: #ef8f8f;
|
|
68
|
+
--red-85: #f5bcbc;
|
|
69
|
+
--purple-15: #1d202f;
|
|
70
|
+
--purple-31: #3c4262;
|
|
71
|
+
--purple-41: #4f5882;
|
|
72
|
+
--purple-51: #646ea0;
|
|
73
|
+
--purple-58: #7a83ae;
|
|
74
|
+
--purple-63: #8a92b7;
|
|
75
|
+
--purple-82: #c6cadc;
|
|
76
|
+
--purple-94: #ecedf3;
|
|
77
|
+
--pink-90: #f8dad3;
|
|
78
|
+
--pink-91: #f9ddd7;
|
|
79
|
+
--pink-92: #f9e1dc;
|
|
80
|
+
--pink-93: #fae5e0;
|
|
81
|
+
--pink-94: #fbe9e5;
|
|
82
|
+
--pink-95: #fcece9;
|
|
83
|
+
--pink-96: #fcf0ed;
|
|
84
|
+
--pink-97: #fdf4f2;
|
|
85
|
+
--gradient-1-start: #D39B9D;
|
|
86
|
+
--gradient-1-end: #9071D1;
|
|
87
|
+
--gradient-2-start: #F8DAD3;
|
|
88
|
+
--gradient-2-end: #CC99AE;
|
|
89
|
+
--gradient-3-start: #393e56;
|
|
90
|
+
--gradient-3-end: #646ea0;
|
|
91
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|