@lukso/web-components 1.0.6 → 1.2.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 +43 -0
- package/dist/assets/fonts/index.umd.cjs +1 -0
- package/dist/assets/images/index.ts +1 -0
- package/dist/assets/index.js +4 -0
- package/dist/assets/index.ts +1 -0
- package/dist/assets/index.umd.cjs +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +2115 -0
- package/dist/components/index.umd.cjs +167 -0
- package/dist/components/lukso-button/index.d.ts +22 -0
- package/dist/components/lukso-button/index.js +1184 -0
- package/dist/components/lukso-button/index.umd.cjs +77 -0
- package/dist/components/lukso-navbar/index.d.ts +17 -0
- package/dist/components/lukso-navbar/index.js +1181 -0
- package/dist/components/lukso-navbar/index.umd.cjs +71 -0
- package/dist/components/lukso-test/index.d.ts +18 -0
- package/dist/components/lukso-test/index.js +1820 -0
- package/dist/components/lukso-test/index.umd.cjs +95 -0
- package/dist/components/lukso-wizard/index.d.ts +18 -0
- package/dist/components/lukso-wizard/index.js +1297 -0
- package/dist/components/lukso-wizard/index.umd.cjs +89 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2113 -4
- package/dist/index.umd.cjs +167 -0
- package/dist/sass/color-palette.ts +7 -0
- package/dist/sass/index.js +2 -2
- package/dist/sass/index.umd.cjs +1 -0
- package/dist/sass/typography.scss +1 -1
- package/dist/shared/assets/fonts/index.d.ts +2 -0
- package/dist/shared/assets/index.d.ts +2 -0
- package/dist/shared/directives/custom-class-map/index.d.ts +26 -0
- package/dist/shared/directives/index.d.ts +2 -0
- package/dist/shared/globals.d.ts +5 -0
- package/dist/shared/styles/index.d.ts +2 -0
- package/dist/shared/tailwind-element/index.d.ts +6 -0
- package/dist/shared/tailwind-element/index.js +1064 -0
- package/dist/shared/tailwind-element/index.umd.cjs +39 -0
- package/dist/shared/tailwind-element.js +1064 -0
- package/dist/shared/tailwind-element.umd.cjs +39 -0
- package/dist/styles/index.umd.cjs +1 -0
- package/dist/styles/main.css +1 -1
- package/package.json +55 -34
- package/src/components/index.ts +6 -0
- package/src/components/lukso-button/index.ts +74 -1
- package/src/components/lukso-button/lukso-button.stories.ts +29 -21
- package/src/components/lukso-navbar/index.ts +61 -0
- package/src/components/lukso-navbar/lukso-navbar.stories.ts +44 -0
- package/src/components/lukso-test/index.ts +1 -1
- package/src/components/lukso-test/test.stories.ts +1 -1
- package/src/components/lukso-wizard/index.ts +74 -0
- package/src/components/lukso-wizard/lukso-wizard.stories.ts +45 -0
- package/src/index.ts +1 -3
- package/src/shared/assets/images/index.ts +1 -0
- package/src/shared/assets/index.ts +1 -0
- package/src/shared/directives/{custom-class-map.ts → custom-class-map/index.ts} +1 -3
- package/src/shared/directives/index.ts +1 -0
- package/src/shared/styles/color-palette.ts +7 -0
- package/src/shared/styles/typography.scss +1 -1
- package/src/shared/{tailwind.element.ts → tailwind-element/index.ts} +1 -1
- package/tailwind.config.cjs +57 -1
- package/tools/color-palette.cjs +7 -1
- package/tools/color-palette.d.ts +5 -0
- package/tools/color-palette.d.ts.map +1 -1
- package/dist/assets/fonts/index.cjs +0 -1
- package/dist/directive-619b88dd.cjs +0 -55
- package/dist/directive-76d5504a.js +0 -1128
- package/dist/index.cjs +0 -1
- package/dist/lukso-button-4b795065.js +0 -57
- package/dist/lukso-button-ab7e2769.cjs +0 -17
- package/dist/lukso-button.cjs +0 -1
- package/dist/lukso-button.js +0 -2
- package/dist/lukso-test.cjs +0 -41
- package/dist/lukso-test.js +0 -710
- package/dist/sass/index.cjs +0 -1
- package/dist/styles/index.cjs +0 -1
- package/dist/styles/main.css.map +0 -1
- package/src/components/lukso-button/lukso-button.ts +0 -55
- package/src/docs/buttons.stories.mdx +0 -35
- package/src/docs/colors.stories.mdx +0 -72
- package/src/docs/typography.stories.mdx +0 -360
- package/src/globals.d.ts +0 -1
- package/src/tailwind.config.ts +0 -60
package/dist/sass/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../styles/index.cjs");module.exports=e;
|
package/dist/styles/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=__dirname;module.exports=e;
|
package/dist/styles/main.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/shared/styles/main.scss","../../src/shared/styles/fonts.scss","../../src/shared/styles/typography.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAQA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AC/FF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA;EACE;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;;AF9GJ;AACA;AACA","file":"main.css"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit'
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js'
|
|
3
|
-
|
|
4
|
-
import { TailwindElement } from '../../shared/tailwind.element'
|
|
5
|
-
import { customClassMap } from '../../shared/directives/custom-class-map'
|
|
6
|
-
|
|
7
|
-
export type ButtonVariants = 'primary' | 'secondary' | 'landing'
|
|
8
|
-
|
|
9
|
-
@customElement('lukso-button')
|
|
10
|
-
export class LuksoButton extends TailwindElement {
|
|
11
|
-
@property({ type: String })
|
|
12
|
-
variant: ButtonVariants = 'primary'
|
|
13
|
-
|
|
14
|
-
@property({ type: Boolean })
|
|
15
|
-
disabled = false
|
|
16
|
-
|
|
17
|
-
private defaultStyles = `flex justify-center items-center relative gap-2 py-3 px-6 rounded-xl
|
|
18
|
-
border border-solid cursor-pointer paragraph-16-semi-bold`
|
|
19
|
-
|
|
20
|
-
private secondaryStyles = `bg-neutral-100 border-neutral-90 text-neutral-20 disabled:bg-neutral-90
|
|
21
|
-
disabled:border-neutral-90 disabled:text-neutral-100 hover:shadow-button-hover-secondary`
|
|
22
|
-
|
|
23
|
-
private primaryStyles = `bg-neutral-20 border-neutral-20 text-neutral-100
|
|
24
|
-
disabled:bg-neutral-90
|
|
25
|
-
disabled:border-neutral-90
|
|
26
|
-
hover:shadow-button-hover-primary
|
|
27
|
-
`
|
|
28
|
-
|
|
29
|
-
private landingStyles = `bg-purple-51 border-purple-51 text-neutral-100
|
|
30
|
-
disabled:bg-neutral-90 disabled:border-neutral-90
|
|
31
|
-
hover:shadow-button-hover-primary hover:bg-purple-58 hover:border-purple-58`
|
|
32
|
-
|
|
33
|
-
render() {
|
|
34
|
-
return html`
|
|
35
|
-
<button
|
|
36
|
-
data-testid="button"
|
|
37
|
-
?disabled=${this.disabled}
|
|
38
|
-
class=${customClassMap({
|
|
39
|
-
[this.defaultStyles]: true,
|
|
40
|
-
[this.primaryStyles]: this.variant === 'primary',
|
|
41
|
-
[this.secondaryStyles]: this.variant === 'secondary',
|
|
42
|
-
[this.landingStyles]: this.variant === 'landing',
|
|
43
|
-
})}
|
|
44
|
-
>
|
|
45
|
-
<slot></slot>
|
|
46
|
-
</button>
|
|
47
|
-
`
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare global {
|
|
52
|
-
interface HTMLElementTagNameMap {
|
|
53
|
-
'lukso-button': LuksoButton
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/addon-docs'
|
|
2
|
-
import { html } from 'lit-html'
|
|
3
|
-
|
|
4
|
-
<Meta title="Design System/Atoms/Button" />
|
|
5
|
-
|
|
6
|
-
# Button component
|
|
7
|
-
|
|
8
|
-
This file is a documentation-only `MDX`file to customize Storybook's [DocsPage](https://storybook.js.org/docs/react/writing-docs/docs-page#replacing-docspage).
|
|
9
|
-
|
|
10
|
-
It can be further expanded with your own code snippets and include specific information related to your stories.
|
|
11
|
-
|
|
12
|
-
For example:
|
|
13
|
-
|
|
14
|
-
import { Story } from '@storybook/addon-docs'
|
|
15
|
-
|
|
16
|
-
## Button
|
|
17
|
-
|
|
18
|
-
Button is the primary component. It has four possible states.
|
|
19
|
-
|
|
20
|
-
- [Primary](?path=/docs/design-system-typography--currency-10-semi-bold)
|
|
21
|
-
- [Secondary](#design-system-atoms-button--secondary)
|
|
22
|
-
- [Large](#large)
|
|
23
|
-
- [Small](#small)
|
|
24
|
-
|
|
25
|
-
## With the story title defined
|
|
26
|
-
|
|
27
|
-
If you included the title in the story's default export, use this approach.
|
|
28
|
-
|
|
29
|
-
### Primary
|
|
30
|
-
|
|
31
|
-
<Story id="design-system-atoms-button--primary" />
|
|
32
|
-
|
|
33
|
-
### Secondary
|
|
34
|
-
|
|
35
|
-
<Story id="design-system-atoms-button--secondary" />
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Meta,
|
|
3
|
-
ColorPalette,
|
|
4
|
-
ColorItem,
|
|
5
|
-
Story,
|
|
6
|
-
Canvas,
|
|
7
|
-
Source,
|
|
8
|
-
} from '@storybook/addon-docs'
|
|
9
|
-
import { html } from 'lit-html'
|
|
10
|
-
import dedent from 'ts-dedent'
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
colorPalette,
|
|
14
|
-
neutral1,
|
|
15
|
-
neutral2,
|
|
16
|
-
neutral3,
|
|
17
|
-
} from '../shared/styles/color-palette'
|
|
18
|
-
|
|
19
|
-
<Meta title="Design System/Colors" />
|
|
20
|
-
|
|
21
|
-
<h1 id="typography">Colors</h1>
|
|
22
|
-
|
|
23
|
-
We use colors that has fixed `hue` and `saturation` and operate over `lightness` values.
|
|
24
|
-
For instance in `neutral-20` the lightness value is `20`.
|
|
25
|
-
|
|
26
|
-
### **Example Usage**
|
|
27
|
-
|
|
28
|
-
Apply color class like any other Tailwind color, for example:
|
|
29
|
-
|
|
30
|
-
```html
|
|
31
|
-
<span class="bg-neutral-20 text-honey-72">Text</span>
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### **Color Palette**
|
|
35
|
-
|
|
36
|
-
<br />
|
|
37
|
-
|
|
38
|
-
<ColorPalette>
|
|
39
|
-
#### **Neutral Colors**
|
|
40
|
-
<br />
|
|
41
|
-
<br />
|
|
42
|
-
<ColorItem title="neutral" colors={neutral1} />
|
|
43
|
-
<ColorItem colors={neutral2} />
|
|
44
|
-
<ColorItem colors={neutral3} />
|
|
45
|
-
### **Accent Colors**
|
|
46
|
-
<br />
|
|
47
|
-
<br />
|
|
48
|
-
<ColorItem title="honey" colors={colorPalette.honey} />
|
|
49
|
-
<ColorItem title="coral" colors={colorPalette.coral} />
|
|
50
|
-
<ColorItem title="warm" colors={colorPalette.warm} />
|
|
51
|
-
<ColorItem title="sea salt" colors={colorPalette['sea-salt']} />
|
|
52
|
-
<ColorItem title="cloud" colors={colorPalette.cloud} />
|
|
53
|
-
<ColorItem title="ocean" colors={colorPalette.ocean} />
|
|
54
|
-
<ColorItem title="sky" colors={colorPalette.sky} />
|
|
55
|
-
<ColorItem title="lukso" colors={colorPalette.lukso} />
|
|
56
|
-
### **Utility Colors**
|
|
57
|
-
<br />
|
|
58
|
-
<br />
|
|
59
|
-
<ColorItem title="yellow" colors={colorPalette.yellow} />
|
|
60
|
-
<ColorItem title="green" colors={colorPalette.green} />
|
|
61
|
-
<ColorItem title="blue" colors={colorPalette.blue} />
|
|
62
|
-
<ColorItem title="red" colors={colorPalette.red} />
|
|
63
|
-
### **Purples**
|
|
64
|
-
<br />
|
|
65
|
-
<br />
|
|
66
|
-
<ColorItem title="purple" colors={colorPalette.purple} />
|
|
67
|
-
### **Gradients**
|
|
68
|
-
<br />
|
|
69
|
-
<br />
|
|
70
|
-
<ColorItem title="gradient-1" colors={colorPalette['gradient-1']} />
|
|
71
|
-
<ColorItem title="gradient-2" colors={colorPalette['gradient-2']} />
|
|
72
|
-
</ColorPalette>
|
|
@@ -1,360 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Story, Source } from '@storybook/addon-docs'
|
|
2
|
-
import { html } from 'lit-html'
|
|
3
|
-
import dedent from 'ts-dedent'
|
|
4
|
-
|
|
5
|
-
<Meta title="Design System/Typography" />
|
|
6
|
-
|
|
7
|
-
export const Template = ({ name, font }) =>
|
|
8
|
-
html`<span class="${font}"
|
|
9
|
-
>The quick brown fox jumps over the lazy dog.</span
|
|
10
|
-
>`
|
|
11
|
-
|
|
12
|
-
<h1 id="typography">Typography</h1>
|
|
13
|
-
|
|
14
|
-
In order to maintain a consistent look and feel woth design in terms of the typography,
|
|
15
|
-
we have a set of CSS classes that we use. Using `font-family`,
|
|
16
|
-
`font-weight` and `font-size` directly in your code should be avoided and instead use this set
|
|
17
|
-
of classes.
|
|
18
|
-
|
|
19
|
-
### **Font colors**
|
|
20
|
-
|
|
21
|
-
Colors for the text should be added independently using proper color classes. See example below.
|
|
22
|
-
|
|
23
|
-
<Source
|
|
24
|
-
language="html"
|
|
25
|
-
dark
|
|
26
|
-
format={false}
|
|
27
|
-
code={dedent`
|
|
28
|
-
<span class="heading-h1 text-neutral-20">The quick brown fox jumps over the lazy dog.</span>
|
|
29
|
-
`}
|
|
30
|
-
/>
|
|
31
|
-
|
|
32
|
-
### **Table of contents**
|
|
33
|
-
|
|
34
|
-
- [Headings](#headings)
|
|
35
|
-
- [Paragraph](#paragraph)
|
|
36
|
-
- [Currency](#currency)
|
|
37
|
-
- [Utility](#utility)
|
|
38
|
-
- [Monospaced](#monospaced)
|
|
39
|
-
|
|
40
|
-
<h3 id="headings">**Headings**</h3>
|
|
41
|
-
|
|
42
|
-
<Canvas isColumn withSource="open">
|
|
43
|
-
#### `heading-h1`
|
|
44
|
-
<Story
|
|
45
|
-
name="heading-h1"
|
|
46
|
-
args={{
|
|
47
|
-
font: 'heading-h1',
|
|
48
|
-
}}
|
|
49
|
-
>
|
|
50
|
-
{Template.bind({})}
|
|
51
|
-
</Story>
|
|
52
|
-
</Canvas>
|
|
53
|
-
|
|
54
|
-
<Canvas isColumn withSource="open">
|
|
55
|
-
#### `heading-h2`
|
|
56
|
-
<Story
|
|
57
|
-
name="heading-h2"
|
|
58
|
-
args={{
|
|
59
|
-
font: 'heading-h2',
|
|
60
|
-
}}
|
|
61
|
-
>
|
|
62
|
-
{Template.bind({})}
|
|
63
|
-
</Story>
|
|
64
|
-
</Canvas>
|
|
65
|
-
|
|
66
|
-
<Canvas isColumn withSource="open">
|
|
67
|
-
#### `heading-h3`
|
|
68
|
-
<Story
|
|
69
|
-
name="heading-h3"
|
|
70
|
-
args={{
|
|
71
|
-
font: 'heading-h3',
|
|
72
|
-
}}
|
|
73
|
-
>
|
|
74
|
-
{Template.bind({})}
|
|
75
|
-
</Story>
|
|
76
|
-
</Canvas>
|
|
77
|
-
|
|
78
|
-
<Canvas isColumn withSource="open">
|
|
79
|
-
#### `heading-h4`
|
|
80
|
-
<Story
|
|
81
|
-
name="heading-h4"
|
|
82
|
-
args={{
|
|
83
|
-
font: 'heading-h4',
|
|
84
|
-
}}
|
|
85
|
-
>
|
|
86
|
-
{Template.bind({})}
|
|
87
|
-
</Story>
|
|
88
|
-
</Canvas>
|
|
89
|
-
|
|
90
|
-
<Canvas isColumn withSource="open">
|
|
91
|
-
#### `heading-h5`
|
|
92
|
-
<Story
|
|
93
|
-
name="heading-h5"
|
|
94
|
-
args={{
|
|
95
|
-
font: 'heading-h5',
|
|
96
|
-
}}
|
|
97
|
-
>
|
|
98
|
-
{Template.bind({})}
|
|
99
|
-
</Story>
|
|
100
|
-
</Canvas>
|
|
101
|
-
|
|
102
|
-
<Canvas isColumn withSource="open">
|
|
103
|
-
#### `heading-h1-apax`
|
|
104
|
-
<Story
|
|
105
|
-
name="heading-h1-apax"
|
|
106
|
-
args={{
|
|
107
|
-
font: 'heading-h1-apax',
|
|
108
|
-
}}
|
|
109
|
-
>
|
|
110
|
-
{Template.bind({})}
|
|
111
|
-
</Story>
|
|
112
|
-
</Canvas>
|
|
113
|
-
|
|
114
|
-
<Canvas isColumn withSource="open">
|
|
115
|
-
#### `heading-h4-apax`
|
|
116
|
-
<Story
|
|
117
|
-
name="heading-h4-apax"
|
|
118
|
-
args={{
|
|
119
|
-
font: 'heading-h4-apax',
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
{Template.bind({})}
|
|
123
|
-
</Story>
|
|
124
|
-
</Canvas>
|
|
125
|
-
|
|
126
|
-
<Canvas isColumn withSource="open">
|
|
127
|
-
#### `heading-h5-apax`
|
|
128
|
-
<Story
|
|
129
|
-
name="heading-h5-apax"
|
|
130
|
-
args={{
|
|
131
|
-
font: 'heading-h5-apax',
|
|
132
|
-
}}
|
|
133
|
-
>
|
|
134
|
-
{Template.bind({})}
|
|
135
|
-
</Story>
|
|
136
|
-
</Canvas>
|
|
137
|
-
|
|
138
|
-
<h3 id="paragraph">**Paragraph** [↑](#typography)</h3>
|
|
139
|
-
|
|
140
|
-
<Canvas isColumn withSource="open">
|
|
141
|
-
#### `paragraph-16-regular`
|
|
142
|
-
<Story
|
|
143
|
-
name="paragraph-16-regular"
|
|
144
|
-
args={{
|
|
145
|
-
font: 'paragraph-16-regular',
|
|
146
|
-
}}
|
|
147
|
-
>
|
|
148
|
-
{Template.bind({})}
|
|
149
|
-
</Story>
|
|
150
|
-
</Canvas>
|
|
151
|
-
|
|
152
|
-
<Canvas isColumn withSource="open">
|
|
153
|
-
#### `paragraph-16-semi-bold`
|
|
154
|
-
<Story
|
|
155
|
-
name="paragraph-16-semi-bold"
|
|
156
|
-
args={{
|
|
157
|
-
font: 'paragraph-16-semi-bold',
|
|
158
|
-
}}
|
|
159
|
-
>
|
|
160
|
-
{Template.bind({})}
|
|
161
|
-
</Story>
|
|
162
|
-
</Canvas>
|
|
163
|
-
|
|
164
|
-
<Canvas isColumn withSource="open">
|
|
165
|
-
#### `paragraph-14-regular`
|
|
166
|
-
<Story
|
|
167
|
-
name="paragraph-14-regular"
|
|
168
|
-
args={{
|
|
169
|
-
font: 'paragraph-14-regular',
|
|
170
|
-
}}
|
|
171
|
-
>
|
|
172
|
-
{Template.bind({})}
|
|
173
|
-
</Story>
|
|
174
|
-
</Canvas>
|
|
175
|
-
|
|
176
|
-
<Canvas isColumn withSource="open">
|
|
177
|
-
#### `paragraph-14-medium`
|
|
178
|
-
<Story
|
|
179
|
-
name="paragraph-14-medium"
|
|
180
|
-
args={{
|
|
181
|
-
font: 'paragraph-14-medium',
|
|
182
|
-
}}
|
|
183
|
-
>
|
|
184
|
-
{Template.bind({})}
|
|
185
|
-
</Story>
|
|
186
|
-
</Canvas>
|
|
187
|
-
|
|
188
|
-
<Canvas isColumn withSource="open">
|
|
189
|
-
#### `paragraph-14-semi-bold`
|
|
190
|
-
<Story
|
|
191
|
-
name="paragraph-14-semi-bold"
|
|
192
|
-
args={{
|
|
193
|
-
font: 'paragraph-14-semi-bold',
|
|
194
|
-
}}
|
|
195
|
-
>
|
|
196
|
-
{Template.bind({})}
|
|
197
|
-
</Story>
|
|
198
|
-
</Canvas>
|
|
199
|
-
|
|
200
|
-
<Canvas isColumn withSource="open">
|
|
201
|
-
#### `paragraph-12-regular`
|
|
202
|
-
<Story
|
|
203
|
-
name="paragraph-12-regular"
|
|
204
|
-
args={{
|
|
205
|
-
font: 'paragraph-12-regular',
|
|
206
|
-
}}
|
|
207
|
-
>
|
|
208
|
-
{Template.bind({})}
|
|
209
|
-
</Story>
|
|
210
|
-
</Canvas>
|
|
211
|
-
|
|
212
|
-
<Canvas isColumn withSource="open">
|
|
213
|
-
#### `paragraph-12-medium`
|
|
214
|
-
<Story
|
|
215
|
-
name="paragraph-12-medium"
|
|
216
|
-
args={{
|
|
217
|
-
font: 'paragraph-12-medium',
|
|
218
|
-
}}
|
|
219
|
-
>
|
|
220
|
-
{Template.bind({})}
|
|
221
|
-
</Story>
|
|
222
|
-
</Canvas>
|
|
223
|
-
|
|
224
|
-
<Canvas isColumn withSource="open">
|
|
225
|
-
#### `paragraph-12-semi-bold`
|
|
226
|
-
<Story
|
|
227
|
-
name="paragraph-12-semi-bold"
|
|
228
|
-
args={{
|
|
229
|
-
font: 'paragraph-12-semi-bold',
|
|
230
|
-
}}
|
|
231
|
-
>
|
|
232
|
-
{Template.bind({})}
|
|
233
|
-
</Story>
|
|
234
|
-
</Canvas>
|
|
235
|
-
|
|
236
|
-
<h3 id="currency">**Currency** [↑](#typography)</h3>
|
|
237
|
-
|
|
238
|
-
<Canvas isColumn withSource="open">
|
|
239
|
-
#### `currency-10-semi-bold`
|
|
240
|
-
<Story
|
|
241
|
-
name="currency-10-semi-bold"
|
|
242
|
-
args={{
|
|
243
|
-
font: 'currency-10-semi-bold',
|
|
244
|
-
}}
|
|
245
|
-
>
|
|
246
|
-
{Template.bind({})}
|
|
247
|
-
</Story>
|
|
248
|
-
</Canvas>
|
|
249
|
-
|
|
250
|
-
<Canvas isColumn withSource="open">
|
|
251
|
-
#### `currency-10-bold-uppercase`
|
|
252
|
-
<Story
|
|
253
|
-
name="currency-10-bold-uppercase"
|
|
254
|
-
args={{
|
|
255
|
-
font: 'currency-10-bold-uppercase',
|
|
256
|
-
}}
|
|
257
|
-
>
|
|
258
|
-
{Template.bind({})}
|
|
259
|
-
</Story>
|
|
260
|
-
</Canvas>
|
|
261
|
-
|
|
262
|
-
<Canvas isColumn withSource="open">
|
|
263
|
-
#### `currency-14-semi-bold`
|
|
264
|
-
<Story
|
|
265
|
-
name="currency-14-semi-bold"
|
|
266
|
-
args={{
|
|
267
|
-
font: 'currency-14-semi-bold',
|
|
268
|
-
}}
|
|
269
|
-
>
|
|
270
|
-
{Template.bind({})}
|
|
271
|
-
</Story>
|
|
272
|
-
</Canvas>
|
|
273
|
-
|
|
274
|
-
<h3 id="utility">**Utility** [↑](#typography)</h3>
|
|
275
|
-
|
|
276
|
-
<Canvas isColumn withSource="open">
|
|
277
|
-
#### `link`
|
|
278
|
-
<Story
|
|
279
|
-
name="link"
|
|
280
|
-
args={{
|
|
281
|
-
font: 'link',
|
|
282
|
-
}}
|
|
283
|
-
>
|
|
284
|
-
{Template.bind({})}
|
|
285
|
-
</Story>
|
|
286
|
-
</Canvas>
|
|
287
|
-
|
|
288
|
-
<Canvas isColumn withSource="open">
|
|
289
|
-
#### `button-text`
|
|
290
|
-
<Story
|
|
291
|
-
name="button-text"
|
|
292
|
-
args={{
|
|
293
|
-
font: 'button-text',
|
|
294
|
-
}}
|
|
295
|
-
>
|
|
296
|
-
{Template.bind({})}
|
|
297
|
-
</Story>
|
|
298
|
-
</Canvas>
|
|
299
|
-
|
|
300
|
-
<Canvas isColumn withSource="open">
|
|
301
|
-
#### `caption`
|
|
302
|
-
<Story
|
|
303
|
-
name="caption"
|
|
304
|
-
args={{
|
|
305
|
-
font: 'caption',
|
|
306
|
-
}}
|
|
307
|
-
>
|
|
308
|
-
{Template.bind({})}
|
|
309
|
-
</Story>
|
|
310
|
-
</Canvas>
|
|
311
|
-
|
|
312
|
-
<h3 id="monospaced">**Monospaced** [↑](#typography)</h3>
|
|
313
|
-
|
|
314
|
-
<Canvas isColumn withSource="open">
|
|
315
|
-
#### `monospace-16-regular`
|
|
316
|
-
<Story
|
|
317
|
-
name="monospace-16-regular"
|
|
318
|
-
args={{
|
|
319
|
-
font: 'monospace-16-regular',
|
|
320
|
-
}}
|
|
321
|
-
>
|
|
322
|
-
{Template.bind({})}
|
|
323
|
-
</Story>
|
|
324
|
-
</Canvas>
|
|
325
|
-
|
|
326
|
-
<Canvas isColumn withSource="open">
|
|
327
|
-
#### `monospace-16-bold`
|
|
328
|
-
<Story
|
|
329
|
-
name="monospace-16-bold"
|
|
330
|
-
args={{
|
|
331
|
-
font: 'monospace-16-bold',
|
|
332
|
-
}}
|
|
333
|
-
>
|
|
334
|
-
{Template.bind({})}
|
|
335
|
-
</Story>
|
|
336
|
-
</Canvas>
|
|
337
|
-
|
|
338
|
-
<Canvas isColumn withSource="open">
|
|
339
|
-
#### `monospace-12-bold`
|
|
340
|
-
<Story
|
|
341
|
-
name="monospace-12-bold"
|
|
342
|
-
args={{
|
|
343
|
-
font: 'monospace-12-bold',
|
|
344
|
-
}}
|
|
345
|
-
>
|
|
346
|
-
{Template.bind({})}
|
|
347
|
-
</Story>
|
|
348
|
-
</Canvas>
|
|
349
|
-
|
|
350
|
-
<Canvas isColumn withSource="open">
|
|
351
|
-
#### `monospace-10-bold`
|
|
352
|
-
<Story
|
|
353
|
-
name="monospace-10-bold"
|
|
354
|
-
args={{
|
|
355
|
-
font: 'monospace-10-bold',
|
|
356
|
-
}}
|
|
357
|
-
>
|
|
358
|
-
{Template.bind({})}
|
|
359
|
-
</Story>
|
|
360
|
-
</Canvas>
|
package/src/globals.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module '@open-wc/demoing-storybook'
|
package/src/tailwind.config.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { colorPalette } from './shared/styles/color-palette'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
content: ['**/*.{ts,html,css,scss}'],
|
|
5
|
-
theme: {
|
|
6
|
-
fontFamily: {
|
|
7
|
-
inter: ['Inter', 'sans-serif'],
|
|
8
|
-
apax: ['Apax', 'sans-serif'],
|
|
9
|
-
mono: ['"PT Mono"', 'sans-serif'],
|
|
10
|
-
},
|
|
11
|
-
extend: {
|
|
12
|
-
colors: colorPalette,
|
|
13
|
-
boxShadow: {
|
|
14
|
-
'button-hover-primary': '0px 20px 16px -16px rgba(0, 0, 0, 0.4)',
|
|
15
|
-
'button-hover-secondary': '0px 20px 16px -16px rgba(0, 0, 0, 0.12)',
|
|
16
|
-
'1xl': '0px 0px 16px rgba(189, 206, 219, 0.4)',
|
|
17
|
-
'2xl':
|
|
18
|
-
'0px 36px 80px rgba(189, 206, 219, 0.3), 0px 5.01331px 33.4221px rgba(189, 206, 219, 0.0503198), 0px 2.68036px 17.869px rgba(189, 206, 219, 0.0417275), 0px 1.50259px 10.0172px rgba(189, 206, 219, 0.035), 0px 0.798012px 5.32008px rgba(189, 206, 219, 0.0282725), 0px 0.332071px 2.21381px rgba(189, 206, 219, 0.0196802)',
|
|
19
|
-
'3xl':
|
|
20
|
-
'0px 12px 80px rgba(189, 206, 219, 0.3), 0px 73.78px 33.4221px rgba(189, 206, 219, 0.0803), 0px 22.3363px 17.869px rgba(189, 206, 219, 0.0417275), 0px 12.5216px 10.0172px rgba(189, 206, 219, 0.035), 0px 6.6501px 5.32008px rgba(189, 206, 219, 0.0282725), 0px 2.76726px 2.21381px rgba(189, 206, 219, 0.0196802)',
|
|
21
|
-
},
|
|
22
|
-
fontSize: {
|
|
23
|
-
8: '8px',
|
|
24
|
-
10: '10px',
|
|
25
|
-
12: '12px',
|
|
26
|
-
13: '13px',
|
|
27
|
-
14: '14px',
|
|
28
|
-
16: '16px',
|
|
29
|
-
17: '17px',
|
|
30
|
-
21: '21px',
|
|
31
|
-
24: '24px',
|
|
32
|
-
26: '26px',
|
|
33
|
-
},
|
|
34
|
-
fontWeight: {
|
|
35
|
-
100: '100',
|
|
36
|
-
200: '200',
|
|
37
|
-
300: '300',
|
|
38
|
-
400: '400',
|
|
39
|
-
500: '500',
|
|
40
|
-
600: '600',
|
|
41
|
-
700: '700',
|
|
42
|
-
800: '800',
|
|
43
|
-
900: '900',
|
|
44
|
-
},
|
|
45
|
-
lineHeight: {
|
|
46
|
-
12: '12px',
|
|
47
|
-
14: '14px',
|
|
48
|
-
15: '15px',
|
|
49
|
-
17: '17px',
|
|
50
|
-
20: '20px',
|
|
51
|
-
22: '22px',
|
|
52
|
-
24: '24px',
|
|
53
|
-
26: '26px',
|
|
54
|
-
28: '28px',
|
|
55
|
-
31: '31px',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
plugins: [],
|
|
60
|
-
}
|