@mailstep/design-system 0.0.6 → 0.0.7
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/index.es.js +2047 -7435
- package/dist/index.umd.js +41 -938
- package/package.json +13 -14
- package/.eslintrc.cjs +0 -16
- package/dist/Elements/Button/stories/Button.stories.d.ts +0 -20
- package/dist/Elements/Icon/stories/Icon.stories.d.ts +0 -16
- package/src/ui/Elements/Button/Button.d.ts +0 -4
- package/src/ui/Elements/Button/Button.tsx +0 -42
- package/src/ui/Elements/Button/index.d.ts +0 -6
- package/src/ui/Elements/Button/index.ts +0 -5
- package/src/ui/Elements/Button/stories/Button.stories.ts +0 -84
- package/src/ui/Elements/Button/styles.ts +0 -289
- package/src/ui/Elements/Button/types.ts +0 -31
- package/src/ui/Elements/Icon/BadgeIcon.tsx +0 -45
- package/src/ui/Elements/Icon/Icon.tsx +0 -288
- package/src/ui/Elements/Icon/icons/FlagCZ.tsx +0 -10
- package/src/ui/Elements/Icon/icons/FlagUSA.tsx +0 -27
- package/src/ui/Elements/Icon/icons/index.ts +0 -2
- package/src/ui/Elements/Icon/index.d.ts +0 -9
- package/src/ui/Elements/Icon/index.ts +0 -6
- package/src/ui/Elements/Icon/stories/BadgeIcon.stories.tsx +0 -27
- package/src/ui/Elements/Icon/stories/Icon.stories.tsx +0 -60
- package/src/ui/Elements/Icon/types.ts +0 -26
- package/src/ui/Elements/Spinner/README.md +0 -9
- package/src/ui/Elements/Spinner/Spinner.tsx +0 -36
- package/src/ui/Elements/Spinner/index.d.ts +0 -5
- package/src/ui/Elements/Spinner/index.ts +0 -3
- package/src/ui/Elements/Spinner/stories/Spinner.stories.ts +0 -70
- package/src/ui/Elements/Spinner/styles.ts +0 -38
- package/src/ui/Elements/Spinner/types.ts +0 -8
- package/src/ui/Elements/Spinner/yarn.lock +0 -4
- package/src/ui/ThemeProvider/README.md +0 -0
- package/src/ui/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/src/ui/ThemeProvider/ThemeProvider.tsx +0 -14
- package/src/ui/ThemeProvider/index.d.ts +0 -8
- package/src/ui/ThemeProvider/index.ts +0 -6
- package/src/ui/ThemeProvider/themes/default.ts +0 -144
- package/src/ui/ThemeProvider/themes/index.ts +0 -11
- package/src/ui/ThemeProvider/themes/light.ts +0 -10
- package/src/ui/ThemeProvider/themes/mailwise.ts +0 -215
- package/src/ui/ThemeProvider/types.ts +0 -54
- package/src/ui/ThemeProvider/yarn.lock +0 -4
- package/src/ui/index.ts +0 -2
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -31
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ThemeProvider, Preflight } from '@xstyled/styled-components'
|
|
2
|
-
import themes from './themes'
|
|
3
|
-
import { Props } from './types'
|
|
4
|
-
|
|
5
|
-
const MailstepThemeProvider = ({ children, theme = 'default', preflight = true }: Props) => {
|
|
6
|
-
return (
|
|
7
|
-
<ThemeProvider theme={themes[theme]}>
|
|
8
|
-
{preflight && <Preflight />}
|
|
9
|
-
{children}
|
|
10
|
-
</ThemeProvider>
|
|
11
|
-
)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default MailstepThemeProvider
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
const defaultTheme = {
|
|
2
|
-
breakpoints: ['0'],
|
|
3
|
-
colors: {
|
|
4
|
-
white: '#FFFFFF',
|
|
5
|
-
bgLightGray: '#FAFBFC',
|
|
6
|
-
bgLightGray1: '#F1F5F9',
|
|
7
|
-
lightGray1: '#F5F7FA',
|
|
8
|
-
lightGray2: '#EFF3F8',
|
|
9
|
-
lightGray3: '#D4D8DE',
|
|
10
|
-
lightGray4: '#B9BFC9',
|
|
11
|
-
lightGray5: '#A3B3C1',
|
|
12
|
-
lightGray6: '#D2D8DF',
|
|
13
|
-
lightGray7: '#E7EBEF',
|
|
14
|
-
neutral20: '#F1F5F9',
|
|
15
|
-
neutral300: '#5E6C84',
|
|
16
|
-
gray: '#8594A5',
|
|
17
|
-
gray1: '#7A90A1',
|
|
18
|
-
gray2: '#9AA1A7',
|
|
19
|
-
gray3: '#5F6C76',
|
|
20
|
-
gray4: '#455665',
|
|
21
|
-
gray5: '#647483',
|
|
22
|
-
blue1: '#2C4052',
|
|
23
|
-
blue2: '#22394E',
|
|
24
|
-
blue3: '#162C3F',
|
|
25
|
-
blue4: '#0C1F2F',
|
|
26
|
-
textPrimary: '#091E42',
|
|
27
|
-
textTertiary: '#7A869A',
|
|
28
|
-
typoPrimary: '#22394E',
|
|
29
|
-
blue10: '#F3F9FF',
|
|
30
|
-
blue20: '#DCEFFF',
|
|
31
|
-
blue60: '#0065FF',
|
|
32
|
-
blue70: '#0052CC',
|
|
33
|
-
blue80: '#0747A6',
|
|
34
|
-
blue90: '#1d3557',
|
|
35
|
-
teal20: '#E6FCFF',
|
|
36
|
-
teal40: '#a8dadc',
|
|
37
|
-
teal50: '#1aa1a7',
|
|
38
|
-
teal60: '#00B1D0',
|
|
39
|
-
teal70: '#1aa1da',
|
|
40
|
-
teal80: '#06718C',
|
|
41
|
-
teal90: '#035361',
|
|
42
|
-
green10: '#F2FFF5',
|
|
43
|
-
green20: '#DEFBE6',
|
|
44
|
-
green30: '#b8ecb8',
|
|
45
|
-
green50: '#81dd91',
|
|
46
|
-
green60: '#00A445',
|
|
47
|
-
green70: '#06d6a0',
|
|
48
|
-
green80: '#0E6027',
|
|
49
|
-
green90: '#067164',
|
|
50
|
-
green: '#13CE62',
|
|
51
|
-
successColor: '#24A148',
|
|
52
|
-
darkGreen: '#00A445',
|
|
53
|
-
orange20: '#FFF3E0',
|
|
54
|
-
orange30: '#FFE6CC',
|
|
55
|
-
orange50: '#ff9f43',
|
|
56
|
-
orange60: '#FF9800',
|
|
57
|
-
orange80: '#9E4800',
|
|
58
|
-
yellow10: '#FFFDE8',
|
|
59
|
-
yellow20: '#FFF9C4',
|
|
60
|
-
yellow60: '#FFE600',
|
|
61
|
-
yellow70: '#FFD702',
|
|
62
|
-
yellow1: '#FFD702',
|
|
63
|
-
yellow2: '#F2E871',
|
|
64
|
-
red10: '#FFF6F4',
|
|
65
|
-
red20: '#FFEBE6',
|
|
66
|
-
red30: '#fec1cb',
|
|
67
|
-
red50: '#ff7c7b',
|
|
68
|
-
red1: '#DB2B19',
|
|
69
|
-
red2: '#E94324',
|
|
70
|
-
red3: '#991E12',
|
|
71
|
-
red60: '#DB2B19',
|
|
72
|
-
red80: '#B71C1C',
|
|
73
|
-
dangerColor: '#E32C1E',
|
|
74
|
-
purple20: '#F0EDFF',
|
|
75
|
-
purple40: '#0072A0',
|
|
76
|
-
purple50: '#4573B3',
|
|
77
|
-
purple60: '#6554C0',
|
|
78
|
-
purple80: '#403294',
|
|
79
|
-
purple90: '#03235f',
|
|
80
|
-
magenta20: '#FCF1F7',
|
|
81
|
-
magenta60: '#EE5396',
|
|
82
|
-
magenta80: '#9F1853',
|
|
83
|
-
magenta90: '#872e8b',
|
|
84
|
-
},
|
|
85
|
-
fonts: {
|
|
86
|
-
primary: 'Inter, sans-serif',
|
|
87
|
-
heading: 'Inter, sans-serif',
|
|
88
|
-
},
|
|
89
|
-
fontLinks: ['https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'],
|
|
90
|
-
fontSizes: ['10px', '12px', '14px', '16px', '18px', '21px', '24px', '32px'],
|
|
91
|
-
lineHeights: [1.7],
|
|
92
|
-
fontWeights: {
|
|
93
|
-
default: null,
|
|
94
|
-
normal: 400,
|
|
95
|
-
medium: 500,
|
|
96
|
-
semiBold: 600,
|
|
97
|
-
bold: 700,
|
|
98
|
-
},
|
|
99
|
-
letterSpacings: {
|
|
100
|
-
default: null,
|
|
101
|
-
sm: '2px',
|
|
102
|
-
md: '4px',
|
|
103
|
-
lg: '8px',
|
|
104
|
-
},
|
|
105
|
-
borders: {
|
|
106
|
-
slim: '1px solid',
|
|
107
|
-
mediumSlim: '2px solid',
|
|
108
|
-
medium: '3px solid',
|
|
109
|
-
mediumThick: '6px solid',
|
|
110
|
-
thick: '10px solid',
|
|
111
|
-
},
|
|
112
|
-
// ...........................
|
|
113
|
-
radii: {
|
|
114
|
-
sm: '2px',
|
|
115
|
-
md: '4px',
|
|
116
|
-
ml: '6px',
|
|
117
|
-
lg: '8px',
|
|
118
|
-
xl: '16px',
|
|
119
|
-
},
|
|
120
|
-
shadows: {
|
|
121
|
-
boxShadow: '0px 5px 60px rgba(0, 0, 0, 0.1)',
|
|
122
|
-
dropShadow: '0px 5px 40px rgba(0, 0, 0, 0.1)',
|
|
123
|
-
inputFocusBoxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
|
|
124
|
-
dropdownMenuShadow: '0 5px 25px rgba(0, 0, 0, 0.1)',
|
|
125
|
-
tooltipBoxShadow: '0px 2px 20px rgba(0, 0, 0, 0.1)',
|
|
126
|
-
cardShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
|
|
127
|
-
smooth: '0px 4px 25px 0px #0000001a',
|
|
128
|
-
// redesign:
|
|
129
|
-
dialogShadow: '1px 4px 7px rgba(0, 0, 0, 0.4)',
|
|
130
|
-
tooltipShadow: '0px 1px 4px 0 #B1B8C3', // color is grayIII
|
|
131
|
-
headerShadow: '1px 2px 3px #00000029',
|
|
132
|
-
headerShadowB: '1px 1px 3px #00000029',
|
|
133
|
-
headerShadowNotifications: '1px 1px 2px #00000029',
|
|
134
|
-
cornerDialogShadow: '1px 1px 3px 1px #00000029',
|
|
135
|
-
},
|
|
136
|
-
space: [0, 4, 8, 16, 24, 48, 96, 144, 192, 240], // same as xstyled default
|
|
137
|
-
transitions: {
|
|
138
|
-
simpleLong: 'all 2s',
|
|
139
|
-
inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
|
|
140
|
-
},
|
|
141
|
-
zIndices: [0, 1, 2, 3, 5, 30, 40, 100, 200, 300, 9999],
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export default defaultTheme
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
const defaultTheme = {
|
|
2
|
-
screens: {
|
|
3
|
-
// same as xstyled default
|
|
4
|
-
_: 0,
|
|
5
|
-
xs: 479,
|
|
6
|
-
sm: 721,
|
|
7
|
-
md: 768,
|
|
8
|
-
lg: 1024,
|
|
9
|
-
xl: 1280,
|
|
10
|
-
'2xl': 1536,
|
|
11
|
-
},
|
|
12
|
-
colors: {
|
|
13
|
-
white: '#fff',
|
|
14
|
-
bgLightGray: '#FAFBFC',
|
|
15
|
-
bgLightGray1: '#F1F5F9',
|
|
16
|
-
lightGray1: '#F5F7FA',
|
|
17
|
-
lightGray2: '#EFF3F8',
|
|
18
|
-
lightGray3: '#D4D8DE',
|
|
19
|
-
lightGray4: '#B9BFC9',
|
|
20
|
-
lightGray5: '#A3B3C1',
|
|
21
|
-
lightGray6: '#D2D8DF',
|
|
22
|
-
lightGray7: '#E7EBEF',
|
|
23
|
-
neutral20: '#F1F5F9',
|
|
24
|
-
gray: '#8594A5',
|
|
25
|
-
gray1: '#7A90A1',
|
|
26
|
-
gray2: '#9AA1A7',
|
|
27
|
-
gray3: '#5F6C76',
|
|
28
|
-
gray4: '#455665',
|
|
29
|
-
gray5: '#647483',
|
|
30
|
-
neutral300: '#5E6C84',
|
|
31
|
-
blue1: '#2C4052',
|
|
32
|
-
blue2: '#22394E',
|
|
33
|
-
blue3: '#162C3F',
|
|
34
|
-
blue4: '#0C1F2F',
|
|
35
|
-
textPrimary: '#091E42',
|
|
36
|
-
typoPrimary: '#22394E',
|
|
37
|
-
blue10: '#F3F9FF',
|
|
38
|
-
blue20: '#dcf2ff',
|
|
39
|
-
blue60: '#0065FF',
|
|
40
|
-
blue70: '#0052CC',
|
|
41
|
-
blue80: '#0747A6',
|
|
42
|
-
blue90: '#1d3557',
|
|
43
|
-
teal20: '#E6FCFF',
|
|
44
|
-
teal40: '#a8dadc',
|
|
45
|
-
teal50: '#1aa1a7',
|
|
46
|
-
teal60: '#00B1D0',
|
|
47
|
-
teal70: '#1aa1da',
|
|
48
|
-
teal80: '#06718C',
|
|
49
|
-
teal90: '#035361',
|
|
50
|
-
green10: '#F2FFF5',
|
|
51
|
-
green20: '#DEFBE6',
|
|
52
|
-
green30: '#b8ecb8',
|
|
53
|
-
green50: '#81dd91',
|
|
54
|
-
green60: '#00A445',
|
|
55
|
-
green70: '#06d6a0',
|
|
56
|
-
green80: '#0E6027',
|
|
57
|
-
green90: '#067164',
|
|
58
|
-
green: '#13CE62',
|
|
59
|
-
successColor: '#24A148',
|
|
60
|
-
darkGreen: '#00A445',
|
|
61
|
-
orange20: '#FFF3E0',
|
|
62
|
-
orange30: '#FFE6CC',
|
|
63
|
-
orange50: '#ff9f43',
|
|
64
|
-
orange60: '#FF9800',
|
|
65
|
-
orange80: '#9E4800',
|
|
66
|
-
yellow10: '#FFFDE8',
|
|
67
|
-
yellow20: '#FFF9C4',
|
|
68
|
-
yellow60: '#FFE600',
|
|
69
|
-
yellow70: '#FFD702',
|
|
70
|
-
yellow1: '#FFD702',
|
|
71
|
-
yellow2: '#F2E871',
|
|
72
|
-
red10: '#FFF6F4',
|
|
73
|
-
red20: '#FFEBE6',
|
|
74
|
-
red30: '#fec1cb',
|
|
75
|
-
red50: '#ff7c7b',
|
|
76
|
-
red1: '#DB2B19',
|
|
77
|
-
red2: '#E94324',
|
|
78
|
-
red3: '#991E12',
|
|
79
|
-
red60: '#DB2B19',
|
|
80
|
-
red80: '#B71C1C',
|
|
81
|
-
dangerColor: '#E32C1E',
|
|
82
|
-
purple20: '#F0EDFF',
|
|
83
|
-
purple40: '#0072A0',
|
|
84
|
-
purple50: '#4573B3',
|
|
85
|
-
purple60: '#6554C0',
|
|
86
|
-
purple80: '#403294',
|
|
87
|
-
purple90: '#03235f',
|
|
88
|
-
magenta20: '#FCF1F7',
|
|
89
|
-
magenta60: '#EE5396',
|
|
90
|
-
magenta80: '#9F1853',
|
|
91
|
-
magenta90: '#872e8b',
|
|
92
|
-
primary: '#626262',
|
|
93
|
-
black: '#333333',
|
|
94
|
-
error: '#ea5455',
|
|
95
|
-
secondary: '#E15B63',
|
|
96
|
-
},
|
|
97
|
-
fonts: {
|
|
98
|
-
primary: 'Inter, sans-serif',
|
|
99
|
-
heading: 'Inter, sans-serif',
|
|
100
|
-
},
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
fontSizes: ['0rem', '0.87rem', '1rem', '1.25rem', '1.5rem', '1.8rem', '2.0rem', '2.4rem', '2.8rem', '3.5rem', '4rem'],
|
|
104
|
-
// @ts-ignore
|
|
105
|
-
lineHeights: {
|
|
106
|
-
none: 1.2,
|
|
107
|
-
tight: 1.2,
|
|
108
|
-
snug: 1.2,
|
|
109
|
-
normal: 1.2,
|
|
110
|
-
relaxed: 1.2,
|
|
111
|
-
loose: 1.2,
|
|
112
|
-
3: '1.2',
|
|
113
|
-
4: '1.2',
|
|
114
|
-
5: '1.2',
|
|
115
|
-
6: '1.2',
|
|
116
|
-
7: '1.2',
|
|
117
|
-
8: '1.2',
|
|
118
|
-
9: '1.2',
|
|
119
|
-
10: '1.2',
|
|
120
|
-
},
|
|
121
|
-
fontWeights: {
|
|
122
|
-
normal: 400,
|
|
123
|
-
medium: 500,
|
|
124
|
-
semiBold: 600,
|
|
125
|
-
bold: 700,
|
|
126
|
-
},
|
|
127
|
-
letterSpacings: {
|
|
128
|
-
tighter: '2',
|
|
129
|
-
tight: '2',
|
|
130
|
-
normal: '4',
|
|
131
|
-
wide: '8',
|
|
132
|
-
wider: '8',
|
|
133
|
-
widest: '8',
|
|
134
|
-
},
|
|
135
|
-
borders: {
|
|
136
|
-
slim: '1px solid',
|
|
137
|
-
mediumSlim: '2px solid',
|
|
138
|
-
medium: '3px solid',
|
|
139
|
-
mediumThick: '6px solid',
|
|
140
|
-
thick: '10px solid',
|
|
141
|
-
},
|
|
142
|
-
radii: {
|
|
143
|
-
none: '2px',
|
|
144
|
-
sm: '5px',
|
|
145
|
-
default: '10px',
|
|
146
|
-
md: '20px',
|
|
147
|
-
lg: '20px',
|
|
148
|
-
xl: '20px',
|
|
149
|
-
'2xl': '20px',
|
|
150
|
-
'3xl': '20px',
|
|
151
|
-
full: '20px',
|
|
152
|
-
},
|
|
153
|
-
shadows: {
|
|
154
|
-
boxShadow: '0px 5px 60px rgba(0, 0, 0, 0.1)',
|
|
155
|
-
dropShadow: '0px 5px 40px rgba(0, 0, 0, 0.1)',
|
|
156
|
-
inputFocusBoxShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
|
|
157
|
-
dropdownMenuShadow: '0 5px 25px rgba(0, 0, 0, 0.1)',
|
|
158
|
-
tooltipBoxShadow: '0px 2px 20px rgba(0, 0, 0, 0.1)',
|
|
159
|
-
cardShadow: '0 3px 10px 0 rgba(0, 0, 0, 0.15)',
|
|
160
|
-
smooth: '0px 4px 25px 0px #0000001a',
|
|
161
|
-
// redesign:
|
|
162
|
-
dialogShadow: '1px 4px 7px rgba(0, 0, 0, 0.4)',
|
|
163
|
-
tooltipShadow: '0px 1px 4px 0 #B1B8C3', // color is grayIII
|
|
164
|
-
headerShadow: '1px 2px 3px #00000029',
|
|
165
|
-
headerShadowB: '1px 1px 3px #00000029',
|
|
166
|
-
headerShadowNotifications: '1px 1px 2px #00000029',
|
|
167
|
-
cornerDialogShadow: '1px 1px 3px 1px #00000029',
|
|
168
|
-
},
|
|
169
|
-
space: {
|
|
170
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
171
|
-
// @ts-ignore
|
|
172
|
-
px: '1px',
|
|
173
|
-
0: '0',
|
|
174
|
-
0.5: '0.125rem',
|
|
175
|
-
1: '0.25rem',
|
|
176
|
-
1.5: '0.375rem',
|
|
177
|
-
2: '0.5rem',
|
|
178
|
-
2.5: '0.625rem',
|
|
179
|
-
3: '0.75rem',
|
|
180
|
-
3.5: '0.875rem',
|
|
181
|
-
4: '1rem',
|
|
182
|
-
5: '1.25rem',
|
|
183
|
-
6: '1.5rem',
|
|
184
|
-
7: '1.75rem',
|
|
185
|
-
8: '2rem',
|
|
186
|
-
9: '2.25rem',
|
|
187
|
-
10: '2.5rem',
|
|
188
|
-
11: '2.75rem',
|
|
189
|
-
12: '3rem',
|
|
190
|
-
14: '3.5rem',
|
|
191
|
-
16: '4rem',
|
|
192
|
-
20: '5rem',
|
|
193
|
-
24: '6rem',
|
|
194
|
-
28: '7rem',
|
|
195
|
-
32: '8rem',
|
|
196
|
-
36: '9rem',
|
|
197
|
-
40: '10rem',
|
|
198
|
-
44: '11rem',
|
|
199
|
-
48: '12rem',
|
|
200
|
-
52: '13rem',
|
|
201
|
-
56: '14rem',
|
|
202
|
-
60: '15rem',
|
|
203
|
-
64: '16rem',
|
|
204
|
-
72: '18rem',
|
|
205
|
-
80: '20rem',
|
|
206
|
-
96: '24rem',
|
|
207
|
-
},
|
|
208
|
-
transitions: {
|
|
209
|
-
simpleLong: 'all 2s',
|
|
210
|
-
inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
|
|
211
|
-
},
|
|
212
|
-
zIndices: [0, 1, 2, 3, 5, 30, 40, 100, 200, 300, 9999],
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export default defaultTheme
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export type Color = {
|
|
4
|
-
[key: string]: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export type Theme = {
|
|
8
|
-
breakpoints?: {
|
|
9
|
-
xs: number
|
|
10
|
-
sm: number
|
|
11
|
-
md: number
|
|
12
|
-
lg: number
|
|
13
|
-
xl: number
|
|
14
|
-
}
|
|
15
|
-
colors?: {
|
|
16
|
-
[key: string]: string | Color
|
|
17
|
-
}
|
|
18
|
-
fonts?: {
|
|
19
|
-
[key: string]: string
|
|
20
|
-
}
|
|
21
|
-
fontLinks?: string[]
|
|
22
|
-
fontSizes?: string[]
|
|
23
|
-
fontWeights?: {
|
|
24
|
-
[key: string]: number | null
|
|
25
|
-
}
|
|
26
|
-
letterSpacings?: {
|
|
27
|
-
[key: string]: string | null
|
|
28
|
-
}
|
|
29
|
-
borders?: {
|
|
30
|
-
[key: string]: string
|
|
31
|
-
}
|
|
32
|
-
radii?: {
|
|
33
|
-
[key: string]: string
|
|
34
|
-
}
|
|
35
|
-
shadows?: {
|
|
36
|
-
[key: string]: string
|
|
37
|
-
}
|
|
38
|
-
spaces?: number[]
|
|
39
|
-
lineHeights?: number[]
|
|
40
|
-
transitions?: {
|
|
41
|
-
[key: string]: string
|
|
42
|
-
}
|
|
43
|
-
zIndices?: number[]
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type Themes = {
|
|
47
|
-
[key: string]: Theme
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface Props {
|
|
51
|
-
children: React.ReactNode
|
|
52
|
-
theme: 'default' | 'light' | 'mailwise'
|
|
53
|
-
preflight?: boolean
|
|
54
|
-
}
|
package/src/ui/index.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
|
|
9
|
-
/* Bundler mode */
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"allowImportingTsExtensions": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"noImplicitAny": false,
|
|
16
|
-
"jsx": "react-jsx",
|
|
17
|
-
|
|
18
|
-
/* Linting */
|
|
19
|
-
"strict": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true
|
|
23
|
-
},
|
|
24
|
-
"include": ["src"],
|
|
25
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
26
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import react from '@vitejs/plugin-react-swc'
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { defineConfig } from 'vite';
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [
|
|
8
|
-
react(),
|
|
9
|
-
dts({
|
|
10
|
-
insertTypesEntry: true,
|
|
11
|
-
}),
|
|
12
|
-
],
|
|
13
|
-
build: {
|
|
14
|
-
lib: {
|
|
15
|
-
entry: path.resolve(__dirname, 'src/ui/index.ts'),
|
|
16
|
-
name: 'index',
|
|
17
|
-
formats: ['es', 'umd'],
|
|
18
|
-
fileName: (format) => `index.${format}.js`,
|
|
19
|
-
},
|
|
20
|
-
rollupOptions: {
|
|
21
|
-
external: ['react', 'react-dom', 'react-router-dom','styled-components'],
|
|
22
|
-
output: {
|
|
23
|
-
globals: {
|
|
24
|
-
react: 'React',
|
|
25
|
-
'react-dom': 'ReactDOM',
|
|
26
|
-
'styled-components': 'styled',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|