@lets-events/react 8.0.0 → 9.0.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/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -19
- package/CHANGELOG.md +13 -1
- package/dist/index.d.mts +377 -6
- package/dist/index.d.ts +377 -6
- package/dist/index.js +277 -734
- package/dist/index.mjs +213 -671
- package/package.json +3 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +128 -128
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +12 -12
- package/src/components/Button/styledComponents.ts +250 -250
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -132
- package/src/components/Calendar/styledComponents.ts +208 -208
- package/src/components/Card.tsx +69 -69
- package/src/components/CheckboxGroup.tsx +214 -214
- package/src/components/Container.tsx +39 -39
- package/src/components/Dropdown.tsx +167 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +103 -109
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +30 -30
- package/src/components/TextField.tsx +299 -299
- package/src/components/TextareaField.tsx +101 -101
- package/src/components/TimePicker.tsx +239 -213
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +31 -31
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/tsconfig.json +3 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
|
|
3
|
-
export function useOnClickOutside(ref: any, handler: () => void) {
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const listener = (event: MouseEvent | TouchEvent) => {
|
|
6
|
-
if (!ref.current || ref.current.contains(event.target)) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
handler();
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
document.addEventListener("mousedown", listener);
|
|
13
|
-
document.addEventListener("touchstart", listener);
|
|
14
|
-
|
|
15
|
-
return () => {
|
|
16
|
-
document.removeEventListener("mousedown", listener);
|
|
17
|
-
document.removeEventListener("touchstart", listener);
|
|
18
|
-
};
|
|
19
|
-
}, [ref, handler]);
|
|
20
|
-
}
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
export function useOnClickOutside(ref: any, handler: () => void) {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
const listener = (event: MouseEvent | TouchEvent) => {
|
|
6
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
handler();
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
document.addEventListener("mousedown", listener);
|
|
13
|
+
document.addEventListener("touchstart", listener);
|
|
14
|
+
|
|
15
|
+
return () => {
|
|
16
|
+
document.removeEventListener("mousedown", listener);
|
|
17
|
+
document.removeEventListener("touchstart", listener);
|
|
18
|
+
};
|
|
19
|
+
}, [ref, handler]);
|
|
20
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
// Icon
|
|
2
|
-
export * from './components/Icon'
|
|
3
|
-
|
|
4
|
-
// Text
|
|
5
|
-
export * from './components/Text'
|
|
6
|
-
|
|
7
|
-
// Components
|
|
8
|
-
export * from './components/Button'
|
|
9
|
-
export * from './components/ButtonGroup'
|
|
10
|
-
export * from './components/Avatar'
|
|
11
|
-
export * from './components/TextField'
|
|
12
|
-
export * from './components/RadioGroup'
|
|
13
|
-
export * from './components/CheckboxGroup'
|
|
14
|
-
export * from './components/Filter'
|
|
15
|
-
export * from './components/Dropdown'
|
|
16
|
-
export * from './components/Badge'
|
|
17
|
-
export * from './components/Modal'
|
|
18
|
-
export * from './components/Calendar'
|
|
19
|
-
export * from './components/TimePicker'
|
|
20
|
-
export * from './components/Alert'
|
|
21
|
-
export * from './components/Switch'
|
|
22
|
-
export * from './components/Step'
|
|
23
|
-
export * from './components/Card'
|
|
24
|
-
export * from './components/TextareaField'
|
|
25
|
-
|
|
26
|
-
// Layouts
|
|
27
|
-
export * from './components/Flex'
|
|
28
|
-
export * from './components/Box'
|
|
29
|
-
export * from './components/Grid'
|
|
30
|
-
export * from './components/Container'
|
|
31
|
-
export * from './components/Section'
|
|
1
|
+
// Icon
|
|
2
|
+
export * from './components/Icon'
|
|
3
|
+
|
|
4
|
+
// Text
|
|
5
|
+
export * from './components/Text'
|
|
6
|
+
|
|
7
|
+
// Components
|
|
8
|
+
export * from './components/Button'
|
|
9
|
+
export * from './components/ButtonGroup'
|
|
10
|
+
export * from './components/Avatar'
|
|
11
|
+
export * from './components/TextField'
|
|
12
|
+
export * from './components/RadioGroup'
|
|
13
|
+
export * from './components/CheckboxGroup'
|
|
14
|
+
export * from './components/Filter'
|
|
15
|
+
export * from './components/Dropdown'
|
|
16
|
+
export * from './components/Badge'
|
|
17
|
+
export * from './components/Modal'
|
|
18
|
+
export * from './components/Calendar'
|
|
19
|
+
export * from './components/TimePicker'
|
|
20
|
+
export * from './components/Alert'
|
|
21
|
+
export * from './components/Switch'
|
|
22
|
+
export * from './components/Step'
|
|
23
|
+
export * from './components/Card'
|
|
24
|
+
export * from './components/TextareaField'
|
|
25
|
+
|
|
26
|
+
// Layouts
|
|
27
|
+
export * from './components/Flex'
|
|
28
|
+
export * from './components/Box'
|
|
29
|
+
export * from './components/Grid'
|
|
30
|
+
export * from './components/Container'
|
|
31
|
+
export * from './components/Section'
|
package/src/styles/index.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
colors,
|
|
3
|
-
fontSizes,
|
|
4
|
-
fontWeights,
|
|
5
|
-
fonts,
|
|
6
|
-
lineHeights,
|
|
7
|
-
radii,
|
|
8
|
-
space,
|
|
9
|
-
} from '@lets-events/tokens'
|
|
10
|
-
|
|
11
|
-
import { createStitches, defaultThemeMap } from '@stitches/react'
|
|
12
|
-
|
|
13
|
-
export const {
|
|
14
|
-
styled,
|
|
15
|
-
css,
|
|
16
|
-
globalCss,
|
|
17
|
-
keyframes,
|
|
18
|
-
getCssText,
|
|
19
|
-
theme,
|
|
20
|
-
createTheme,
|
|
21
|
-
config,
|
|
22
|
-
} = createStitches({
|
|
23
|
-
themeMap: {
|
|
24
|
-
...defaultThemeMap,
|
|
25
|
-
height: 'space',
|
|
26
|
-
width: 'space',
|
|
27
|
-
gap: 'space'
|
|
28
|
-
},
|
|
29
|
-
theme: {
|
|
30
|
-
colors,
|
|
31
|
-
fontSizes,
|
|
32
|
-
fonts,
|
|
33
|
-
fontWeights,
|
|
34
|
-
lineHeights,
|
|
35
|
-
radii,
|
|
36
|
-
space,
|
|
37
|
-
},
|
|
38
|
-
})
|
|
1
|
+
import {
|
|
2
|
+
colors,
|
|
3
|
+
fontSizes,
|
|
4
|
+
fontWeights,
|
|
5
|
+
fonts,
|
|
6
|
+
lineHeights,
|
|
7
|
+
radii,
|
|
8
|
+
space,
|
|
9
|
+
} from '@lets-events/tokens'
|
|
10
|
+
|
|
11
|
+
import { createStitches, defaultThemeMap } from '@stitches/react'
|
|
12
|
+
|
|
13
|
+
export const {
|
|
14
|
+
styled,
|
|
15
|
+
css,
|
|
16
|
+
globalCss,
|
|
17
|
+
keyframes,
|
|
18
|
+
getCssText,
|
|
19
|
+
theme,
|
|
20
|
+
createTheme,
|
|
21
|
+
config,
|
|
22
|
+
} = createStitches({
|
|
23
|
+
themeMap: {
|
|
24
|
+
...defaultThemeMap,
|
|
25
|
+
height: 'space',
|
|
26
|
+
width: 'space',
|
|
27
|
+
gap: 'space'
|
|
28
|
+
},
|
|
29
|
+
theme: {
|
|
30
|
+
colors,
|
|
31
|
+
fontSizes,
|
|
32
|
+
fonts,
|
|
33
|
+
fontWeights,
|
|
34
|
+
lineHeights,
|
|
35
|
+
radii,
|
|
36
|
+
space,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
export const typographyValues = {
|
|
2
|
-
displayLarge: {
|
|
3
|
-
fontSize: '$displayLarge',
|
|
4
|
-
lineHeight: '$displayLarge',
|
|
5
|
-
letterSpacing: '$displayLarge',
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
displayMedium: {
|
|
9
|
-
fontSize: '$displayMedium',
|
|
10
|
-
lineHeight: '$displayMedium',
|
|
11
|
-
letterSpacing: '$displayMedium',
|
|
12
|
-
},
|
|
13
|
-
displaySmall: {
|
|
14
|
-
fontSize: '$displaySmall',
|
|
15
|
-
lineHeight: '$displaySmall',
|
|
16
|
-
letterSpacing: '$displaySmall',
|
|
17
|
-
},
|
|
18
|
-
headline1: {
|
|
19
|
-
fontSize: '$headline1',
|
|
20
|
-
lineHeight: '$headline1',
|
|
21
|
-
},
|
|
22
|
-
headline2: {
|
|
23
|
-
fontSize: '$headline2',
|
|
24
|
-
lineHeight: '$headline2',
|
|
25
|
-
},
|
|
26
|
-
headline3: {
|
|
27
|
-
fontSize: '$headline3',
|
|
28
|
-
lineHeight: '$headline3',
|
|
29
|
-
},
|
|
30
|
-
headline4: {
|
|
31
|
-
fontSize: '$headline4',
|
|
32
|
-
lineHeight: '$headline4',
|
|
33
|
-
},
|
|
34
|
-
headline5: {
|
|
35
|
-
fontSize: '$headline5',
|
|
36
|
-
lineHeight: '$headline5',
|
|
37
|
-
},
|
|
38
|
-
headline6: {
|
|
39
|
-
fontSize: '$headline6',
|
|
40
|
-
lineHeight: '$headline6',
|
|
41
|
-
},
|
|
42
|
-
headline7: {
|
|
43
|
-
fontSize: '$headline7',
|
|
44
|
-
lineHeight: '$headline7',
|
|
45
|
-
},
|
|
46
|
-
headline8: {
|
|
47
|
-
fontSize: '$headline8',
|
|
48
|
-
lineHeight: '$headline8',
|
|
49
|
-
},
|
|
50
|
-
bodyXL: {
|
|
51
|
-
fontSize: '$bodyXL',
|
|
52
|
-
lineHeight: '$bodyXL',
|
|
53
|
-
},
|
|
54
|
-
bodyL: {
|
|
55
|
-
fontSize: '$bodyL',
|
|
56
|
-
lineHeight: '$bodyL',
|
|
57
|
-
},
|
|
58
|
-
bodyM: {
|
|
59
|
-
fontSize: '$bodyM',
|
|
60
|
-
lineHeight: '$bodyM',
|
|
61
|
-
},
|
|
62
|
-
bodyS: {
|
|
63
|
-
fontSize: '$bodyS',
|
|
64
|
-
lineHeight: '$bodyS',
|
|
65
|
-
},
|
|
66
|
-
bodyXS: {
|
|
67
|
-
fontSize: '$bodyXS',
|
|
68
|
-
lineHeight: '$bodyXS',
|
|
69
|
-
},
|
|
70
|
-
bodyXXS: {
|
|
71
|
-
fontSize: '$bodyXXS',
|
|
72
|
-
lineHeight: '$bodyXXS',
|
|
73
|
-
},
|
|
74
|
-
badgeLarge: {
|
|
75
|
-
fontSize: '$badgeLarge',
|
|
76
|
-
lineHeight: '$badgeLarge',
|
|
77
|
-
},
|
|
78
|
-
badgeMedium: {
|
|
79
|
-
fontSize: '$badgeMedium',
|
|
80
|
-
lineHeight: '$badgeMedium',
|
|
81
|
-
},
|
|
82
|
-
badgeSmall: {
|
|
83
|
-
fontSize: '$badgeSmall',
|
|
84
|
-
lineHeight: '$badgeSmall',
|
|
85
|
-
},
|
|
86
|
-
badgeExtraSmall: {
|
|
87
|
-
fontSize: '$badgeExtraSmall',
|
|
88
|
-
lineHeight: '$badgeExtraSmall',
|
|
89
|
-
},
|
|
90
|
-
tooltip: {
|
|
91
|
-
fontSize: '$tooltip',
|
|
92
|
-
lineHeight: '$tooltip',
|
|
93
|
-
},
|
|
94
|
-
popoversRegular: {
|
|
95
|
-
fontSize: '$popoversRegular',
|
|
96
|
-
lineHeight: '$popoversRegular',
|
|
97
|
-
},
|
|
98
|
-
captionLarge: {
|
|
99
|
-
fontSize: '$captionLarge',
|
|
100
|
-
lineHeight: '$captionLarge',
|
|
101
|
-
},
|
|
102
|
-
captionMedium: {
|
|
103
|
-
fontSize: '$captionMedium',
|
|
104
|
-
lineHeight: '$captionMedium',
|
|
105
|
-
},
|
|
106
|
-
captionSmall: {
|
|
107
|
-
fontSize: '$captionSmall',
|
|
108
|
-
lineHeight: '$captionSmall',
|
|
109
|
-
},
|
|
110
|
-
buttonLarge: {
|
|
111
|
-
fontSize: '$buttonLarge',
|
|
112
|
-
lineHeight: '$buttonLarge',
|
|
113
|
-
},
|
|
114
|
-
buttonMedium: {
|
|
115
|
-
fontSize: '$buttonMedium',
|
|
116
|
-
lineHeight: '$buttonMedium',
|
|
117
|
-
},
|
|
118
|
-
buttonSmall: {
|
|
119
|
-
fontSize: '$buttonSmall',
|
|
120
|
-
lineHeight: '$buttonSmall',
|
|
121
|
-
},
|
|
122
|
-
buttonExtraSmall: {
|
|
123
|
-
fontSize: '$buttonExtraSmall',
|
|
124
|
-
lineHeight: '$buttonExtraSmall',
|
|
125
|
-
},
|
|
126
|
-
labelLarge: {
|
|
127
|
-
fontSize: '$labelLarge',
|
|
128
|
-
lineHeight: '$labelLarge',
|
|
129
|
-
},
|
|
130
|
-
labelMedium: {
|
|
131
|
-
fontSize: '$labelMedium',
|
|
132
|
-
lineHeight: '$labelMedium',
|
|
133
|
-
},
|
|
134
|
-
labelSmall: {
|
|
135
|
-
fontSize: '$labelSmall',
|
|
136
|
-
lineHeight: '$labelSmall',
|
|
137
|
-
},
|
|
138
|
-
labelExtraSmall: {
|
|
139
|
-
fontSize: '$labelExtraSmall',
|
|
140
|
-
lineHeight: '$labelExtraSmall',
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
export const typographyButtonValues = {
|
|
145
|
-
buttonLarge: {
|
|
146
|
-
fontSize: '$buttonLarge',
|
|
147
|
-
lineHeight: '$buttonLarge',
|
|
148
|
-
},
|
|
149
|
-
buttonMedium: {
|
|
150
|
-
fontSize: '$buttonMedium',
|
|
151
|
-
lineHeight: '$buttonMedium',
|
|
152
|
-
},
|
|
153
|
-
buttonSmall: {
|
|
154
|
-
fontSize: '$buttonSmall',
|
|
155
|
-
lineHeight: '$buttonSmall',
|
|
156
|
-
},
|
|
157
|
-
buttonExtraSmall: {
|
|
158
|
-
fontSize: '$buttonExtraSmall',
|
|
159
|
-
lineHeight: '$buttonExtraSmall',
|
|
160
|
-
},
|
|
161
|
-
}
|
|
162
|
-
export const typographyLabelValues = {
|
|
163
|
-
labelLarge: {
|
|
164
|
-
fontSize: '$labelLarge',
|
|
165
|
-
lineHeight: '$labelLarge',
|
|
166
|
-
},
|
|
167
|
-
labelMedium: {
|
|
168
|
-
fontSize: '$labelMedium',
|
|
169
|
-
lineHeight: '$labelMedium',
|
|
170
|
-
},
|
|
171
|
-
labelSmall: {
|
|
172
|
-
fontSize: '$labelSmall',
|
|
173
|
-
lineHeight: '$labelSmall',
|
|
174
|
-
},
|
|
175
|
-
labelExtraSmall: {
|
|
176
|
-
fontSize: '$labelExtraSmall',
|
|
177
|
-
lineHeight: '$labelExtraSmall',
|
|
178
|
-
},
|
|
1
|
+
export const typographyValues = {
|
|
2
|
+
displayLarge: {
|
|
3
|
+
fontSize: '$displayLarge',
|
|
4
|
+
lineHeight: '$displayLarge',
|
|
5
|
+
letterSpacing: '$displayLarge',
|
|
6
|
+
|
|
7
|
+
},
|
|
8
|
+
displayMedium: {
|
|
9
|
+
fontSize: '$displayMedium',
|
|
10
|
+
lineHeight: '$displayMedium',
|
|
11
|
+
letterSpacing: '$displayMedium',
|
|
12
|
+
},
|
|
13
|
+
displaySmall: {
|
|
14
|
+
fontSize: '$displaySmall',
|
|
15
|
+
lineHeight: '$displaySmall',
|
|
16
|
+
letterSpacing: '$displaySmall',
|
|
17
|
+
},
|
|
18
|
+
headline1: {
|
|
19
|
+
fontSize: '$headline1',
|
|
20
|
+
lineHeight: '$headline1',
|
|
21
|
+
},
|
|
22
|
+
headline2: {
|
|
23
|
+
fontSize: '$headline2',
|
|
24
|
+
lineHeight: '$headline2',
|
|
25
|
+
},
|
|
26
|
+
headline3: {
|
|
27
|
+
fontSize: '$headline3',
|
|
28
|
+
lineHeight: '$headline3',
|
|
29
|
+
},
|
|
30
|
+
headline4: {
|
|
31
|
+
fontSize: '$headline4',
|
|
32
|
+
lineHeight: '$headline4',
|
|
33
|
+
},
|
|
34
|
+
headline5: {
|
|
35
|
+
fontSize: '$headline5',
|
|
36
|
+
lineHeight: '$headline5',
|
|
37
|
+
},
|
|
38
|
+
headline6: {
|
|
39
|
+
fontSize: '$headline6',
|
|
40
|
+
lineHeight: '$headline6',
|
|
41
|
+
},
|
|
42
|
+
headline7: {
|
|
43
|
+
fontSize: '$headline7',
|
|
44
|
+
lineHeight: '$headline7',
|
|
45
|
+
},
|
|
46
|
+
headline8: {
|
|
47
|
+
fontSize: '$headline8',
|
|
48
|
+
lineHeight: '$headline8',
|
|
49
|
+
},
|
|
50
|
+
bodyXL: {
|
|
51
|
+
fontSize: '$bodyXL',
|
|
52
|
+
lineHeight: '$bodyXL',
|
|
53
|
+
},
|
|
54
|
+
bodyL: {
|
|
55
|
+
fontSize: '$bodyL',
|
|
56
|
+
lineHeight: '$bodyL',
|
|
57
|
+
},
|
|
58
|
+
bodyM: {
|
|
59
|
+
fontSize: '$bodyM',
|
|
60
|
+
lineHeight: '$bodyM',
|
|
61
|
+
},
|
|
62
|
+
bodyS: {
|
|
63
|
+
fontSize: '$bodyS',
|
|
64
|
+
lineHeight: '$bodyS',
|
|
65
|
+
},
|
|
66
|
+
bodyXS: {
|
|
67
|
+
fontSize: '$bodyXS',
|
|
68
|
+
lineHeight: '$bodyXS',
|
|
69
|
+
},
|
|
70
|
+
bodyXXS: {
|
|
71
|
+
fontSize: '$bodyXXS',
|
|
72
|
+
lineHeight: '$bodyXXS',
|
|
73
|
+
},
|
|
74
|
+
badgeLarge: {
|
|
75
|
+
fontSize: '$badgeLarge',
|
|
76
|
+
lineHeight: '$badgeLarge',
|
|
77
|
+
},
|
|
78
|
+
badgeMedium: {
|
|
79
|
+
fontSize: '$badgeMedium',
|
|
80
|
+
lineHeight: '$badgeMedium',
|
|
81
|
+
},
|
|
82
|
+
badgeSmall: {
|
|
83
|
+
fontSize: '$badgeSmall',
|
|
84
|
+
lineHeight: '$badgeSmall',
|
|
85
|
+
},
|
|
86
|
+
badgeExtraSmall: {
|
|
87
|
+
fontSize: '$badgeExtraSmall',
|
|
88
|
+
lineHeight: '$badgeExtraSmall',
|
|
89
|
+
},
|
|
90
|
+
tooltip: {
|
|
91
|
+
fontSize: '$tooltip',
|
|
92
|
+
lineHeight: '$tooltip',
|
|
93
|
+
},
|
|
94
|
+
popoversRegular: {
|
|
95
|
+
fontSize: '$popoversRegular',
|
|
96
|
+
lineHeight: '$popoversRegular',
|
|
97
|
+
},
|
|
98
|
+
captionLarge: {
|
|
99
|
+
fontSize: '$captionLarge',
|
|
100
|
+
lineHeight: '$captionLarge',
|
|
101
|
+
},
|
|
102
|
+
captionMedium: {
|
|
103
|
+
fontSize: '$captionMedium',
|
|
104
|
+
lineHeight: '$captionMedium',
|
|
105
|
+
},
|
|
106
|
+
captionSmall: {
|
|
107
|
+
fontSize: '$captionSmall',
|
|
108
|
+
lineHeight: '$captionSmall',
|
|
109
|
+
},
|
|
110
|
+
buttonLarge: {
|
|
111
|
+
fontSize: '$buttonLarge',
|
|
112
|
+
lineHeight: '$buttonLarge',
|
|
113
|
+
},
|
|
114
|
+
buttonMedium: {
|
|
115
|
+
fontSize: '$buttonMedium',
|
|
116
|
+
lineHeight: '$buttonMedium',
|
|
117
|
+
},
|
|
118
|
+
buttonSmall: {
|
|
119
|
+
fontSize: '$buttonSmall',
|
|
120
|
+
lineHeight: '$buttonSmall',
|
|
121
|
+
},
|
|
122
|
+
buttonExtraSmall: {
|
|
123
|
+
fontSize: '$buttonExtraSmall',
|
|
124
|
+
lineHeight: '$buttonExtraSmall',
|
|
125
|
+
},
|
|
126
|
+
labelLarge: {
|
|
127
|
+
fontSize: '$labelLarge',
|
|
128
|
+
lineHeight: '$labelLarge',
|
|
129
|
+
},
|
|
130
|
+
labelMedium: {
|
|
131
|
+
fontSize: '$labelMedium',
|
|
132
|
+
lineHeight: '$labelMedium',
|
|
133
|
+
},
|
|
134
|
+
labelSmall: {
|
|
135
|
+
fontSize: '$labelSmall',
|
|
136
|
+
lineHeight: '$labelSmall',
|
|
137
|
+
},
|
|
138
|
+
labelExtraSmall: {
|
|
139
|
+
fontSize: '$labelExtraSmall',
|
|
140
|
+
lineHeight: '$labelExtraSmall',
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
export const typographyButtonValues = {
|
|
145
|
+
buttonLarge: {
|
|
146
|
+
fontSize: '$buttonLarge',
|
|
147
|
+
lineHeight: '$buttonLarge',
|
|
148
|
+
},
|
|
149
|
+
buttonMedium: {
|
|
150
|
+
fontSize: '$buttonMedium',
|
|
151
|
+
lineHeight: '$buttonMedium',
|
|
152
|
+
},
|
|
153
|
+
buttonSmall: {
|
|
154
|
+
fontSize: '$buttonSmall',
|
|
155
|
+
lineHeight: '$buttonSmall',
|
|
156
|
+
},
|
|
157
|
+
buttonExtraSmall: {
|
|
158
|
+
fontSize: '$buttonExtraSmall',
|
|
159
|
+
lineHeight: '$buttonExtraSmall',
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
export const typographyLabelValues = {
|
|
163
|
+
labelLarge: {
|
|
164
|
+
fontSize: '$labelLarge',
|
|
165
|
+
lineHeight: '$labelLarge',
|
|
166
|
+
},
|
|
167
|
+
labelMedium: {
|
|
168
|
+
fontSize: '$labelMedium',
|
|
169
|
+
lineHeight: '$labelMedium',
|
|
170
|
+
},
|
|
171
|
+
labelSmall: {
|
|
172
|
+
fontSize: '$labelSmall',
|
|
173
|
+
lineHeight: '$labelSmall',
|
|
174
|
+
},
|
|
175
|
+
labelExtraSmall: {
|
|
176
|
+
fontSize: '$labelExtraSmall',
|
|
177
|
+
lineHeight: '$labelExtraSmall',
|
|
178
|
+
},
|
|
179
179
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@lets-events/ts-config/react.json",
|
|
3
|
-
"include": ["src"]
|
|
1
|
+
{
|
|
2
|
+
"extends": "@lets-events/ts-config/react.json",
|
|
3
|
+
"include": ["src"]
|
|
4
4
|
}
|