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