@hlf-fe/pulmo-ui 1.0.1 → 1.1.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/README.md +21 -54
- package/dist/components/buttons/button/button.js +1 -1
- package/dist/components/buttons/button/button.stories.js +6 -1
- package/dist/components/buttons/loading-button/loading-button.d.ts +14 -0
- package/dist/components/buttons/loading-button/loading-button.js +26 -0
- package/dist/components/buttons/loading-button/loading-button.stories.d.ts +7 -0
- package/dist/components/buttons/loading-button/loading-button.stories.js +23 -0
- package/dist/components/buttons/text-button/text-button.d.ts +20 -0
- package/dist/components/buttons/text-button/text-button.js +61 -0
- package/dist/components/buttons/text-button/text-button.stories.d.ts +6 -0
- package/dist/components/buttons/text-button/text-button.stories.js +16 -0
- package/dist/components/decorator/decorator.d.ts +7 -0
- package/dist/components/decorator/decorator.js +13 -0
- package/dist/components/feedback/alert/alert.d.ts +17 -0
- package/dist/components/feedback/alert/alert.js +68 -0
- package/dist/components/feedback/alert/alert.stories.d.ts +6 -0
- package/dist/components/feedback/alert/alert.stories.js +23 -0
- package/dist/components/icons/chevron-left-icon/chevron-left-icon.d.ts +7 -0
- package/dist/components/icons/chevron-left-icon/chevron-left-icon.js +3 -0
- package/dist/components/icons/chevron-left-icon/chevron-left-icon.stories.d.ts +6 -0
- package/dist/components/icons/chevron-left-icon/chevron-left-icon.stories.js +14 -0
- package/dist/components/icons/chevron-right-icon/chevron-right-icon.d.ts +7 -0
- package/dist/components/icons/chevron-right-icon/chevron-right-icon.js +3 -0
- package/dist/components/icons/chevron-right-icon/chevron-right-icon.stories.d.ts +6 -0
- package/dist/components/icons/chevron-right-icon/chevron-right-icon.stories.js +14 -0
- package/dist/components/icons/close-icon/close-icon.d.ts +12 -0
- package/dist/components/icons/close-icon/close-icon.js +9 -0
- package/dist/components/icons/close-icon/close-icon.stories.d.ts +6 -0
- package/dist/components/icons/close-icon/close-icon.stories.js +16 -0
- package/dist/components/icons/exclamation-mark-icon/exclamation-mark-icon.d.ts +3 -0
- package/dist/components/icons/exclamation-mark-icon/exclamation-mark-icon.js +3 -0
- package/dist/components/icons/exclamation-mark-icon/exclamation-mark-icon.stories.d.ts +6 -0
- package/dist/components/icons/exclamation-mark-icon/exclamation-mark-icon.stories.js +16 -0
- package/dist/components/icons/loading-spinner/loading-spinner.d.ts +20 -0
- package/dist/components/icons/loading-spinner/loading-spinner.js +32 -0
- package/dist/components/icons/loading-spinner/loading-spinner.stories.d.ts +6 -0
- package/dist/components/icons/loading-spinner/loading-spinner.stories.js +18 -0
- package/dist/components/icons/search-icon/search-icon.d.ts +5 -0
- package/dist/components/icons/search-icon/search-icon.js +3 -0
- package/dist/components/icons/search-icon/search-icon.stories.d.ts +6 -0
- package/dist/components/icons/search-icon/search-icon.stories.js +18 -0
- package/dist/components/icons/toggable-chevron/toggable-chevron.d.ts +12 -0
- package/dist/components/icons/toggable-chevron/toggable-chevron.js +20 -0
- package/dist/components/icons/toggable-chevron/toggable-chevron.stories.d.ts +7 -0
- package/dist/components/icons/toggable-chevron/toggable-chevron.stories.js +21 -0
- package/dist/components/icons/toggable-plus-minus-icon/toggable-plus-minus-icon.d.ts +6 -0
- package/dist/components/icons/toggable-plus-minus-icon/toggable-plus-minus-icon.js +13 -0
- package/dist/components/icons/toggable-plus-minus-icon/toggable-plus-minus-icon.stories.d.ts +7 -0
- package/dist/components/icons/toggable-plus-minus-icon/toggable-plus-minus-icon.stories.js +21 -0
- package/dist/components/icons/warning-icon/warning-icon.d.ts +3 -0
- package/dist/components/icons/warning-icon/warning-icon.js +3 -0
- package/dist/components/icons/warning-icon/warning-icon.stories.d.ts +6 -0
- package/dist/components/icons/warning-icon/warning-icon.stories.js +16 -0
- package/dist/components/inputs/dropdown/dropdown-list-item.d.ts +6 -0
- package/dist/components/inputs/dropdown/dropdown-list-item.js +33 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts +13 -0
- package/dist/components/inputs/dropdown/dropdown.js +109 -0
- package/dist/components/inputs/dropdown/dropdown.stories.d.ts +7 -0
- package/dist/components/inputs/dropdown/dropdown.stories.js +84 -0
- package/dist/components/inputs/form-error/form-error.d.ts +11 -0
- package/dist/components/inputs/form-error/form-error.js +16 -0
- package/dist/components/inputs/form-error/form-error.stories.d.ts +6 -0
- package/dist/components/inputs/form-error/form-error.stories.js +22 -0
- package/dist/components/inputs/form-label/form-label.d.ts +7 -0
- package/dist/components/inputs/form-label/form-label.js +12 -0
- package/dist/components/inputs/form-label/form-label.stories.d.ts +6 -0
- package/dist/components/inputs/form-label/form-label.stories.js +16 -0
- package/dist/components/inputs/text-field/text-field.d.ts +32 -0
- package/dist/components/inputs/text-field/text-field.js +65 -0
- package/dist/components/inputs/text-field/text-field.stories.d.ts +11 -0
- package/dist/components/inputs/text-field/text-field.stories.js +51 -0
- package/dist/components/layout/accordion/accordion.d.ts +13 -0
- package/dist/components/layout/accordion/accordion.js +115 -0
- package/dist/components/layout/accordion/accordion.stories.d.ts +6 -0
- package/dist/components/layout/accordion/accordion.stories.js +14 -0
- package/dist/components/layout/container/container.d.ts +10 -0
- package/dist/components/layout/container/container.js +19 -0
- package/dist/components/layout/container/container.stories.d.ts +9 -0
- package/dist/components/layout/container/container.stories.js +47 -0
- package/dist/components/layout/image/image.d.ts +22 -0
- package/dist/components/layout/image/image.js +27 -0
- package/dist/components/layout/image/image.stories.d.ts +6 -0
- package/dist/components/layout/image/image.stories.js +33 -0
- package/dist/components/modules/email-signup-form/email-signup-form.d.ts +16 -0
- package/dist/components/modules/email-signup-form/email-signup-form.js +63 -0
- package/dist/components/modules/email-signup-form/email-signup-form.stories.d.ts +9 -0
- package/dist/components/modules/email-signup-form/email-signup-form.stories.js +51 -0
- package/dist/components/modules/entry-list/entry-list.d.ts +27 -0
- package/dist/components/modules/entry-list/entry-list.js +54 -0
- package/dist/components/modules/entry-list/entry-list.stories.d.ts +6 -0
- package/dist/components/modules/entry-list/entry-list.stories.js +14 -0
- package/dist/components/navigation/pagination/pagination.d.ts +12 -0
- package/dist/components/navigation/pagination/pagination.js +114 -0
- package/dist/components/navigation/pagination/pagination.stories.d.ts +6 -0
- package/dist/components/navigation/pagination/pagination.stories.js +21 -0
- package/dist/constants/general.d.ts +4 -0
- package/dist/constants/general.js +5 -0
- package/dist/hoc/withDefaultTheme.d.ts +1 -1
- package/dist/hoc/withDefaultTheme.js +4 -8
- package/dist/index.d.ts +40 -2
- package/dist/index.js +42 -2
- package/dist/styles/mixins.js +8 -4
- package/dist/styles/theme.d.ts +11 -9
- package/dist/styles/theme.js +12 -11
- package/package.json +78 -67
- package/dist/App.d.ts +0 -3
- package/dist/App.js +0 -10
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -6
- package/dist/stories/Button.d.ts +0 -14
- package/dist/stories/Button.js +0 -20
- package/dist/stories/Button.stories.d.ts +0 -23
- package/dist/stories/Button.stories.js +0 -44
- package/dist/stories/Header.d.ts +0 -12
- package/dist/stories/Header.js +0 -4
- package/dist/stories/Header.stories.d.ts +0 -18
- package/dist/stories/Header.stories.js +0 -26
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.js +0 -7
- package/dist/stories/Page.stories.d.ts +0 -12
- package/dist/stories/Page.stories.js +0 -24
- package/dist/styles/styles/mixins/theme-mixins.d.ts +0 -5
- package/dist/styles/styles/mixins/theme-mixins.js +0 -37
- package/dist/styles/styles/mixins/units.d.ts +0 -3
- package/dist/styles/styles/mixins/units.js +0 -3
- package/dist/styles/styles/mixins.d.ts +0 -48
- package/dist/styles/styles/mixins.js +0 -336
- package/dist/styles/styles/theme.d.ts +0 -135
- package/dist/styles/styles/theme.js +0 -77
- package/dist/styles/types.d.ts +0 -3
- package/dist/styles/types.js +0 -1
- package/dist/styles/withDefaultTheme.d.ts +0 -1
- package/dist/styles/withDefaultTheme.js +0 -12
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
import { BREAKPOINT_VALUES, VARIABLES, SPACING, COLORS } from './theme';
|
|
3
|
-
import { em, rem } from './mixins/units';
|
|
4
|
-
import { themeColors, themeSpacing, themeBorderRadius, themeElevation, } from './mixins/theme-mixins';
|
|
5
|
-
export { themeColors, themeSpacing, themeBorderRadius, themeElevation, em, rem };
|
|
6
|
-
export const media = {
|
|
7
|
-
XS: (...args) => css `
|
|
8
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.XS)}) {
|
|
9
|
-
${css(...args)};
|
|
10
|
-
}
|
|
11
|
-
`,
|
|
12
|
-
S: (...args) => css `
|
|
13
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.S)}) {
|
|
14
|
-
${css(...args)};
|
|
15
|
-
}
|
|
16
|
-
`,
|
|
17
|
-
S_ALT: (...args) => css `
|
|
18
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.S_ALT)}) {
|
|
19
|
-
${css(...args)};
|
|
20
|
-
}
|
|
21
|
-
`,
|
|
22
|
-
M: (...args) => css `
|
|
23
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.M)}) {
|
|
24
|
-
${css(...args)};
|
|
25
|
-
}
|
|
26
|
-
`,
|
|
27
|
-
L: (...args) => css `
|
|
28
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.L)}) {
|
|
29
|
-
${css(...args)};
|
|
30
|
-
}
|
|
31
|
-
`,
|
|
32
|
-
XL: (...args) => css `
|
|
33
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.XL)}) {
|
|
34
|
-
${css(...args)};
|
|
35
|
-
}
|
|
36
|
-
`,
|
|
37
|
-
XXL: (...args) => css `
|
|
38
|
-
@media (min-width: ${em(BREAKPOINT_VALUES.XXL)}) {
|
|
39
|
-
${css(...args)};
|
|
40
|
-
}
|
|
41
|
-
`,
|
|
42
|
-
IOS: (...args) => css `
|
|
43
|
-
@supports (-webkit-touch-callout: none) {
|
|
44
|
-
${css(...args)};
|
|
45
|
-
}
|
|
46
|
-
`,
|
|
47
|
-
};
|
|
48
|
-
export const siteWidthRowS = () => css `
|
|
49
|
-
margin-left: ${SPACING.spacingXS};
|
|
50
|
-
margin-right: ${SPACING.spacingXS};
|
|
51
|
-
margin-bottom: ${rem(20)};
|
|
52
|
-
margin-top: ${rem(20)};
|
|
53
|
-
max-width: ${VARIABLES.siteWidthS};
|
|
54
|
-
|
|
55
|
-
${media.XS `
|
|
56
|
-
margin-left: ${SPACING.spacingM};
|
|
57
|
-
margin-right: ${SPACING.spacingM};
|
|
58
|
-
`}
|
|
59
|
-
|
|
60
|
-
${media.S_ALT `
|
|
61
|
-
margin-left: auto;
|
|
62
|
-
margin-right: auto;
|
|
63
|
-
`}
|
|
64
|
-
|
|
65
|
-
${media.M `
|
|
66
|
-
margin-bottom: ${SPACING.spacingXL};
|
|
67
|
-
margin-top: ${SPACING.spacingXL};
|
|
68
|
-
`}
|
|
69
|
-
|
|
70
|
-
${media.L `
|
|
71
|
-
margin-top: ${SPACING.spacingXXL};
|
|
72
|
-
margin-bottom: ${SPACING.spacingXXL};
|
|
73
|
-
`}
|
|
74
|
-
`;
|
|
75
|
-
export const siteWidthRow = () => css `
|
|
76
|
-
margin-left: ${SPACING.spacingXS};
|
|
77
|
-
margin-right: ${SPACING.spacingXS};
|
|
78
|
-
margin-bottom: ${rem(20)};
|
|
79
|
-
margin-top: ${rem(20)};
|
|
80
|
-
max-width: ${VARIABLES.siteWidth};
|
|
81
|
-
|
|
82
|
-
${media.XS `
|
|
83
|
-
margin-left: ${SPACING.spacingM};
|
|
84
|
-
margin-right: ${SPACING.spacingM};
|
|
85
|
-
`}
|
|
86
|
-
|
|
87
|
-
${media.M `
|
|
88
|
-
margin-bottom: ${SPACING.spacingXL};
|
|
89
|
-
margin-top: ${SPACING.spacingXL};
|
|
90
|
-
margin-left: ${rem(24)};
|
|
91
|
-
margin-right: ${rem(24)};
|
|
92
|
-
`}
|
|
93
|
-
|
|
94
|
-
${media.L `
|
|
95
|
-
margin-top: ${SPACING.spacingXXL};
|
|
96
|
-
margin-right: auto;
|
|
97
|
-
margin-bottom: ${SPACING.spacingXXL};
|
|
98
|
-
margin-left: auto;
|
|
99
|
-
`}
|
|
100
|
-
`;
|
|
101
|
-
export const siteWidthRowXL = () => css `
|
|
102
|
-
margin-left: ${SPACING.spacingXS};
|
|
103
|
-
margin-right: ${SPACING.spacingXS};
|
|
104
|
-
margin-bottom: ${rem(20)};
|
|
105
|
-
margin-top: ${rem(20)};
|
|
106
|
-
max-width: ${VARIABLES.siteWidthXL};
|
|
107
|
-
|
|
108
|
-
${media.XS `
|
|
109
|
-
margin-left: ${SPACING.spacingM};
|
|
110
|
-
margin-right: ${SPACING.spacingM};
|
|
111
|
-
`}
|
|
112
|
-
|
|
113
|
-
${media.M `
|
|
114
|
-
margin-bottom: ${SPACING.spacingXL};
|
|
115
|
-
margin-top: ${SPACING.spacingXL};
|
|
116
|
-
margin-left: ${rem(24)};
|
|
117
|
-
margin-right: ${rem(24)};
|
|
118
|
-
`}
|
|
119
|
-
|
|
120
|
-
${media.XL `
|
|
121
|
-
margin-top: ${SPACING.spacingXXL};
|
|
122
|
-
margin-right: auto;
|
|
123
|
-
margin-bottom: ${SPACING.spacingXXL};
|
|
124
|
-
margin-left: auto;
|
|
125
|
-
`}
|
|
126
|
-
`;
|
|
127
|
-
export const fullWidthRow = () => css `
|
|
128
|
-
padding-top: ${SPACING.spacingL};
|
|
129
|
-
padding-right: ${SPACING.spacingXS};
|
|
130
|
-
padding-bottom: ${SPACING.spacingL};
|
|
131
|
-
padding-left: ${SPACING.spacingXS};
|
|
132
|
-
margin-bottom: ${rem(20)};
|
|
133
|
-
margin-top: ${rem(20)};
|
|
134
|
-
|
|
135
|
-
${media.XS `
|
|
136
|
-
padding-left: ${SPACING.spacingM};
|
|
137
|
-
padding-right: ${SPACING.spacingM};
|
|
138
|
-
`}
|
|
139
|
-
|
|
140
|
-
${media.M `
|
|
141
|
-
padding-top: ${SPACING.spacingXL};
|
|
142
|
-
padding-right: ${rem(24)};
|
|
143
|
-
padding-bottom: ${SPACING.spacingXL};
|
|
144
|
-
padding-left: ${rem(24)};
|
|
145
|
-
margin-bottom: ${SPACING.spacingXL};
|
|
146
|
-
margin-top: ${SPACING.spacingXL};
|
|
147
|
-
`}
|
|
148
|
-
|
|
149
|
-
${media.L `
|
|
150
|
-
padding-left: 0;
|
|
151
|
-
padding-right: 0;
|
|
152
|
-
margin-bottom: ${SPACING.spacingXXL};
|
|
153
|
-
margin-top: ${SPACING.spacingXXL};
|
|
154
|
-
`}
|
|
155
|
-
`;
|
|
156
|
-
export const fontSize = {
|
|
157
|
-
XS: () => css `
|
|
158
|
-
font-size: ${rem(14)};
|
|
159
|
-
line-height: ${rem(20)};
|
|
160
|
-
`,
|
|
161
|
-
S: () => css `
|
|
162
|
-
font-size: ${rem(16)};
|
|
163
|
-
line-height: ${rem(20)};
|
|
164
|
-
|
|
165
|
-
${media.M `
|
|
166
|
-
line-height: ${rem(24)};
|
|
167
|
-
`}
|
|
168
|
-
`,
|
|
169
|
-
M: () => css `
|
|
170
|
-
font-size: ${rem(18)};
|
|
171
|
-
line-height: ${rem(24)};
|
|
172
|
-
|
|
173
|
-
${media.M `
|
|
174
|
-
font-size: ${rem(20)};
|
|
175
|
-
line-height: ${rem(28)};
|
|
176
|
-
`}
|
|
177
|
-
`,
|
|
178
|
-
L: () => css `
|
|
179
|
-
font-size: ${rem(20)};
|
|
180
|
-
line-height: ${rem(28)};
|
|
181
|
-
|
|
182
|
-
${media.M `
|
|
183
|
-
font-size: ${rem(24)};
|
|
184
|
-
line-height: ${rem(32)};
|
|
185
|
-
`}
|
|
186
|
-
|
|
187
|
-
${media.L `
|
|
188
|
-
font-size: ${rem(28)};
|
|
189
|
-
line-height: ${rem(40)};
|
|
190
|
-
`}
|
|
191
|
-
`,
|
|
192
|
-
XL: () => css `
|
|
193
|
-
font-size: ${rem(28)};
|
|
194
|
-
line-height: ${rem(36)};
|
|
195
|
-
|
|
196
|
-
${media.M `
|
|
197
|
-
font-size: ${rem(36)};
|
|
198
|
-
line-height: ${rem(48)};
|
|
199
|
-
`}
|
|
200
|
-
|
|
201
|
-
${media.L `
|
|
202
|
-
font-size: ${rem(44)};
|
|
203
|
-
line-height: ${rem(52)};
|
|
204
|
-
`}
|
|
205
|
-
`,
|
|
206
|
-
XXL: () => css `
|
|
207
|
-
font-size: ${rem(40)};
|
|
208
|
-
line-height: ${rem(52)};
|
|
209
|
-
|
|
210
|
-
${media.M `
|
|
211
|
-
font-size: ${rem(56)};
|
|
212
|
-
line-height: ${rem(72)};
|
|
213
|
-
`}
|
|
214
|
-
|
|
215
|
-
${media.L `
|
|
216
|
-
font-size: ${rem(64)};
|
|
217
|
-
line-height: ${rem(80)};
|
|
218
|
-
`}
|
|
219
|
-
`,
|
|
220
|
-
};
|
|
221
|
-
export const buttonSize = {
|
|
222
|
-
S: () => css `
|
|
223
|
-
font-size: ${rem(14)};
|
|
224
|
-
height: ${rem(32)};
|
|
225
|
-
padding: 0 ${rem(16)};
|
|
226
|
-
`,
|
|
227
|
-
M: () => css `
|
|
228
|
-
font-size: ${rem(16)};
|
|
229
|
-
height: ${rem(44)};
|
|
230
|
-
padding: 0 ${rem(24)};
|
|
231
|
-
`,
|
|
232
|
-
L: () => css `
|
|
233
|
-
font-size: ${rem(18)};
|
|
234
|
-
height: ${rem(56)};
|
|
235
|
-
padding: 0 ${rem(24)};
|
|
236
|
-
`,
|
|
237
|
-
};
|
|
238
|
-
export const alertTheme = {
|
|
239
|
-
error: () => css `
|
|
240
|
-
background-color: ${COLORS.pink};
|
|
241
|
-
border: ${rem(1)} solid rgba(216, 17, 37, 0.4);
|
|
242
|
-
font-size: ${rem(14)};
|
|
243
|
-
`,
|
|
244
|
-
warning: () => css `
|
|
245
|
-
background-color: ${COLORS.yellowLight};
|
|
246
|
-
border: ${rem(1)} solid ${COLORS.yellowDark};
|
|
247
|
-
font-size: ${rem(14)};
|
|
248
|
-
`,
|
|
249
|
-
info: () => css `
|
|
250
|
-
background-color: ${COLORS.lightBlue};
|
|
251
|
-
border: ${rem(1)} solid ${COLORS.mediumBlue};
|
|
252
|
-
font-size: ${rem(14)};
|
|
253
|
-
`,
|
|
254
|
-
success: () => css `
|
|
255
|
-
background-color: ${COLORS.mint};
|
|
256
|
-
border: none;
|
|
257
|
-
`,
|
|
258
|
-
default: () => css `
|
|
259
|
-
background-color: ${COLORS.lightBlue};
|
|
260
|
-
border: none;
|
|
261
|
-
`,
|
|
262
|
-
};
|
|
263
|
-
export const boxShadow = {
|
|
264
|
-
default: () => css `
|
|
265
|
-
box-shadow:
|
|
266
|
-
rgba(0, 0, 0, 0.2) 0rem 0.75rem 1.75rem 0rem,
|
|
267
|
-
rgba(0, 0, 0, 0.1) 0rem 0.125rem 0.25rem 0rem,
|
|
268
|
-
rgba(255, 255, 255, 0.05) 0rem 0rem 0rem 0.063rem inset;
|
|
269
|
-
`,
|
|
270
|
-
};
|
|
271
|
-
export const buttonLinkStyling = {
|
|
272
|
-
inverted: () => css `
|
|
273
|
-
display: block;
|
|
274
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
275
|
-
font-weight: 400;
|
|
276
|
-
font-size: ${rem(16)};
|
|
277
|
-
width: fit-content;
|
|
278
|
-
color: ${({ theme }) => theme.red};
|
|
279
|
-
background-color: transparent;
|
|
280
|
-
border: ${rem(2)} solid ${({ theme }) => theme.red};
|
|
281
|
-
border-radius: ${rem(5)};
|
|
282
|
-
transition: background-color 0.3s ease-out;
|
|
283
|
-
padding: 0 ${rem(24)};
|
|
284
|
-
line-height: 2.5;
|
|
285
|
-
text-decoration: none;
|
|
286
|
-
|
|
287
|
-
&:hover,
|
|
288
|
-
:active,
|
|
289
|
-
:focus-visible {
|
|
290
|
-
background-color: ${({ theme }) => theme.red};
|
|
291
|
-
color: ${({ theme }) => theme.white};
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
&:focus-visible {
|
|
295
|
-
outline: ${rem(2)} solid ${({ theme }) => theme.blackLight};
|
|
296
|
-
outline-offset: ${rem(2)};
|
|
297
|
-
}
|
|
298
|
-
`,
|
|
299
|
-
text: () => css `
|
|
300
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
301
|
-
font-weight: 400;
|
|
302
|
-
font-size: ${rem(16)};
|
|
303
|
-
width: fit-content;
|
|
304
|
-
color: ${({ theme }) => theme.red};
|
|
305
|
-
text-decoration: underline;
|
|
306
|
-
text-decoration-thickness: ${rem(2)};
|
|
307
|
-
text-underline-offset: ${rem(6)};
|
|
308
|
-
line-height: ${rem(26)};
|
|
309
|
-
outline-offset: ${rem(2)};
|
|
310
|
-
|
|
311
|
-
${media.L `
|
|
312
|
-
font-size: ${rem(18)};
|
|
313
|
-
`}
|
|
314
|
-
|
|
315
|
-
&:hover, :active, :focus-visible {
|
|
316
|
-
color: ${({ theme }) => theme.redHover};
|
|
317
|
-
text-decoration: none;
|
|
318
|
-
}
|
|
319
|
-
`,
|
|
320
|
-
};
|
|
321
|
-
export const linkStyling = ({ fontSize = 16 }) => css `
|
|
322
|
-
font-family: ${({ theme }) => theme.valueBold};
|
|
323
|
-
color: ${({ theme }) => theme.redClear};
|
|
324
|
-
font-size: ${rem(fontSize)};
|
|
325
|
-
line-height: ${rem(22)};
|
|
326
|
-
font-weight: 400;
|
|
327
|
-
text-decoration: underline;
|
|
328
|
-
outline-offset: ${rem(2)};
|
|
329
|
-
|
|
330
|
-
&:hover,
|
|
331
|
-
:active,
|
|
332
|
-
:focus-visible {
|
|
333
|
-
color: ${({ theme }) => theme.redHover};
|
|
334
|
-
text-decoration: none;
|
|
335
|
-
}
|
|
336
|
-
`;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
export declare const BREAKPOINT_VALUES: {
|
|
2
|
-
XS: number;
|
|
3
|
-
S: number;
|
|
4
|
-
S_ALT: number;
|
|
5
|
-
M: number;
|
|
6
|
-
L: number;
|
|
7
|
-
XL: number;
|
|
8
|
-
XXL: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const VARIABLES: {
|
|
11
|
-
siteWidthS: string;
|
|
12
|
-
siteWidth: string;
|
|
13
|
-
siteWidthXL: string;
|
|
14
|
-
siteMaxWidth: string;
|
|
15
|
-
mobileNavHeight: number;
|
|
16
|
-
};
|
|
17
|
-
export declare const THEME_SPACING: {
|
|
18
|
-
sm: string;
|
|
19
|
-
md: string;
|
|
20
|
-
lg: string;
|
|
21
|
-
xl: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const SPACING: {
|
|
24
|
-
spacingXXS: string;
|
|
25
|
-
spacingXS: string;
|
|
26
|
-
spacingS: string;
|
|
27
|
-
spacingM: string;
|
|
28
|
-
spacingL: string;
|
|
29
|
-
spacingXL: string;
|
|
30
|
-
spacingXXL: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const FONTS: {
|
|
33
|
-
valueRegular: string;
|
|
34
|
-
valueMedium: string;
|
|
35
|
-
valueBold: string;
|
|
36
|
-
};
|
|
37
|
-
export declare const COLORS: {
|
|
38
|
-
skyBlue: string;
|
|
39
|
-
black: string;
|
|
40
|
-
blackLight: string;
|
|
41
|
-
blackGray: string;
|
|
42
|
-
blueLight: string;
|
|
43
|
-
blueLightGray: string;
|
|
44
|
-
blue: string;
|
|
45
|
-
blueNavy: string;
|
|
46
|
-
blackCoral: string;
|
|
47
|
-
cadetBlue: string;
|
|
48
|
-
grayLight: string;
|
|
49
|
-
gray: string;
|
|
50
|
-
grayDark: string;
|
|
51
|
-
grayTransparent: string;
|
|
52
|
-
grayPale: string;
|
|
53
|
-
green: string;
|
|
54
|
-
white: string;
|
|
55
|
-
offWhite: string;
|
|
56
|
-
redLight: string;
|
|
57
|
-
red: string;
|
|
58
|
-
redSecondary: string;
|
|
59
|
-
redDark: string;
|
|
60
|
-
redHover: string;
|
|
61
|
-
redClear: string;
|
|
62
|
-
redWCAG: string;
|
|
63
|
-
pink: string;
|
|
64
|
-
lightBlue: string;
|
|
65
|
-
mediumBlue: string;
|
|
66
|
-
mint: string;
|
|
67
|
-
lilac: string;
|
|
68
|
-
lavender: string;
|
|
69
|
-
purple: string;
|
|
70
|
-
smokeGray: string;
|
|
71
|
-
yellowLight: string;
|
|
72
|
-
yellow: string;
|
|
73
|
-
yellowDark: string;
|
|
74
|
-
};
|
|
75
|
-
export declare const FONT_SIZES: {};
|
|
76
|
-
export declare const THEME_SETTINGS: {
|
|
77
|
-
spacingXXS: string;
|
|
78
|
-
spacingXS: string;
|
|
79
|
-
spacingS: string;
|
|
80
|
-
spacingM: string;
|
|
81
|
-
spacingL: string;
|
|
82
|
-
spacingXL: string;
|
|
83
|
-
spacingXXL: string;
|
|
84
|
-
skyBlue: string;
|
|
85
|
-
black: string;
|
|
86
|
-
blackLight: string;
|
|
87
|
-
blackGray: string;
|
|
88
|
-
blueLight: string;
|
|
89
|
-
blueLightGray: string;
|
|
90
|
-
blue: string;
|
|
91
|
-
blueNavy: string;
|
|
92
|
-
blackCoral: string;
|
|
93
|
-
cadetBlue: string;
|
|
94
|
-
grayLight: string;
|
|
95
|
-
gray: string;
|
|
96
|
-
grayDark: string;
|
|
97
|
-
grayTransparent: string;
|
|
98
|
-
grayPale: string;
|
|
99
|
-
green: string;
|
|
100
|
-
white: string;
|
|
101
|
-
offWhite: string;
|
|
102
|
-
redLight: string;
|
|
103
|
-
red: string;
|
|
104
|
-
redSecondary: string;
|
|
105
|
-
redDark: string;
|
|
106
|
-
redHover: string;
|
|
107
|
-
redClear: string;
|
|
108
|
-
redWCAG: string;
|
|
109
|
-
pink: string;
|
|
110
|
-
lightBlue: string;
|
|
111
|
-
mediumBlue: string;
|
|
112
|
-
mint: string;
|
|
113
|
-
lilac: string;
|
|
114
|
-
lavender: string;
|
|
115
|
-
purple: string;
|
|
116
|
-
smokeGray: string;
|
|
117
|
-
yellowLight: string;
|
|
118
|
-
yellow: string;
|
|
119
|
-
yellowDark: string;
|
|
120
|
-
valueRegular: string;
|
|
121
|
-
valueMedium: string;
|
|
122
|
-
valueBold: string;
|
|
123
|
-
siteWidthS: string;
|
|
124
|
-
siteWidth: string;
|
|
125
|
-
siteWidthXL: string;
|
|
126
|
-
siteMaxWidth: string;
|
|
127
|
-
mobileNavHeight: number;
|
|
128
|
-
XS: number;
|
|
129
|
-
S: number;
|
|
130
|
-
S_ALT: number;
|
|
131
|
-
M: number;
|
|
132
|
-
L: number;
|
|
133
|
-
XL: number;
|
|
134
|
-
XXL: number;
|
|
135
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { rem } from "./mixins/units";
|
|
2
|
-
export const BREAKPOINT_VALUES = {
|
|
3
|
-
XS: 360,
|
|
4
|
-
S: 576,
|
|
5
|
-
S_ALT: 676,
|
|
6
|
-
M: 768,
|
|
7
|
-
L: 1024,
|
|
8
|
-
XL: 1200,
|
|
9
|
-
XXL: 1440,
|
|
10
|
-
};
|
|
11
|
-
export const VARIABLES = {
|
|
12
|
-
siteWidthS: rem(BREAKPOINT_VALUES.S_ALT),
|
|
13
|
-
siteWidth: rem(BREAKPOINT_VALUES.L),
|
|
14
|
-
siteWidthXL: rem(BREAKPOINT_VALUES.XL),
|
|
15
|
-
siteMaxWidth: rem(1920),
|
|
16
|
-
mobileNavHeight: 56,
|
|
17
|
-
};
|
|
18
|
-
export const THEME_SPACING = {
|
|
19
|
-
sm: rem(16),
|
|
20
|
-
md: rem(24),
|
|
21
|
-
lg: rem(32),
|
|
22
|
-
xl: rem(40),
|
|
23
|
-
};
|
|
24
|
-
export const SPACING = {
|
|
25
|
-
spacingXXS: rem(6),
|
|
26
|
-
spacingXS: rem(8),
|
|
27
|
-
spacingS: rem(12),
|
|
28
|
-
spacingM: rem(16),
|
|
29
|
-
spacingL: rem(32),
|
|
30
|
-
spacingXL: rem(40),
|
|
31
|
-
spacingXXL: rem(48),
|
|
32
|
-
};
|
|
33
|
-
export const FONTS = {
|
|
34
|
-
valueRegular: '"ValueRegular", Arial, sans-serif',
|
|
35
|
-
valueMedium: '"ValueMedium", Arial, sans-serif',
|
|
36
|
-
valueBold: '"ValueBold", Arial, sans-serif',
|
|
37
|
-
};
|
|
38
|
-
export const COLORS = {
|
|
39
|
-
skyBlue: '#d1e4ed',
|
|
40
|
-
black: '#000',
|
|
41
|
-
blackLight: '#333333',
|
|
42
|
-
blackGray: '#858585',
|
|
43
|
-
blueLight: '#d1e3ed',
|
|
44
|
-
blueLightGray: '#dfeff7',
|
|
45
|
-
blue: '#4195be',
|
|
46
|
-
blueNavy: '#0C4670',
|
|
47
|
-
blackCoral: '#5A5F61',
|
|
48
|
-
cadetBlue: '#A4B6BF',
|
|
49
|
-
grayLight: '#f2f2f2',
|
|
50
|
-
gray: '#d3d3d3',
|
|
51
|
-
grayDark: '#8e8e8e',
|
|
52
|
-
grayTransparent: 'rgba(51,51,51,.15)',
|
|
53
|
-
grayPale: '#dddddd',
|
|
54
|
-
green: '#59b290',
|
|
55
|
-
white: '#fff',
|
|
56
|
-
offWhite: '#fafafa',
|
|
57
|
-
redLight: '#ff6e6e',
|
|
58
|
-
red: '#ea2337',
|
|
59
|
-
redSecondary: '#ec1b2e',
|
|
60
|
-
redDark: '#be3639',
|
|
61
|
-
redHover: '#c11021',
|
|
62
|
-
redClear: '#d81125',
|
|
63
|
-
redWCAG: '#E71328',
|
|
64
|
-
pink: '#fbdfd9',
|
|
65
|
-
lightBlue: '#e4eef4',
|
|
66
|
-
mediumBlue: '#76B2CE',
|
|
67
|
-
mint: '#d6ebe3',
|
|
68
|
-
lilac: '#F5ECF5',
|
|
69
|
-
lavender: '#e6d1e5',
|
|
70
|
-
purple: '#9B4391',
|
|
71
|
-
smokeGray: '#f7f7f7',
|
|
72
|
-
yellowLight: '#ffecc4',
|
|
73
|
-
yellow: '#ffe5b1',
|
|
74
|
-
yellowDark: '#ffd379',
|
|
75
|
-
};
|
|
76
|
-
export const FONT_SIZES = {};
|
|
77
|
-
export const THEME_SETTINGS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, BREAKPOINT_VALUES), VARIABLES), FONTS), COLORS), FONT_SIZES), SPACING);
|
package/dist/styles/types.d.ts
DELETED
package/dist/styles/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const withDefaultTheme: (Component: React.FC<any>) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useContext } from "react";
|
|
3
|
-
import { THEME_SETTINGS } from "./theme";
|
|
4
|
-
import { ThemeContext, ThemeProvider } from "styled-components";
|
|
5
|
-
export const withDefaultTheme = (Component) => {
|
|
6
|
-
return (props) => {
|
|
7
|
-
const theme = useContext(ThemeContext);
|
|
8
|
-
if (theme)
|
|
9
|
-
return _jsx(Component, Object.assign({}, props));
|
|
10
|
-
return (_jsx(ThemeProvider, { theme: THEME_SETTINGS, children: _jsx(Component, Object.assign({}, props)) }));
|
|
11
|
-
};
|
|
12
|
-
};
|