@ovotech/element-native 4.4.2 → 4.4.3-canary-a2e1e61-317
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/components/ActionList/ActionList.js +1 -1
- package/dist/components/Stretch/Stretch.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +1 -1
- package/dist/esm/components/Stretch/Stretch.js +1 -1
- package/package.json +3 -3
- package/dist/components/Accordion/hooks.d.ts +0 -9
- package/dist/components/Accordion/hooks.js +0 -20
- package/dist/components/Heading/Heading.d.ts +0 -18
- package/dist/components/Heading/Heading.js +0 -104
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Heading/index.js +0 -8
- package/dist/components/HorizontalCarousel/HorizontalCarousel.d.ts +0 -23
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +0 -92
- package/dist/components/HorizontalCarousel/NavigationDots.d.ts +0 -8
- package/dist/components/HorizontalCarousel/NavigationDots.js +0 -88
- package/dist/components/HorizontalCarousel/index.d.ts +0 -1
- package/dist/components/HorizontalCarousel/index.js +0 -17
- package/dist/components/Input/CurrencyInput.d.ts +0 -18
- package/dist/components/Input/CurrencyInput.js +0 -37
- package/dist/components/Input/EmailInput.d.ts +0 -12
- package/dist/components/Input/EmailInput.js +0 -19
- package/dist/components/Input/NumberInput.d.ts +0 -12
- package/dist/components/Input/NumberInput.js +0 -19
- package/dist/components/Input/PasswordInput.d.ts +0 -14
- package/dist/components/Input/PasswordInput.js +0 -35
- package/dist/components/Input/PasswordInput.styled.d.ts +0 -274
- package/dist/components/Input/PasswordInput.styled.js +0 -37
- package/dist/components/Input/PasswordVisibilityToggle.d.ts +0 -16
- package/dist/components/Input/PasswordVisibilityToggle.js +0 -39
- package/dist/components/Input/PhoneInput.d.ts +0 -12
- package/dist/components/Input/PhoneInput.js +0 -19
- package/dist/components/Input/TelInput.d.ts +0 -12
- package/dist/components/Input/TelInput.js +0 -41
- package/dist/components/Input/TextInput.d.ts +0 -12
- package/dist/components/Input/TextInput.js +0 -19
- package/dist/components/Input/TextareaInput.d.ts +0 -18
- package/dist/components/Input/TextareaInput.js +0 -67
- package/dist/components/Input/index.d.ts +0 -7
- package/dist/components/Input/index.js +0 -17
- package/dist/components/SegmentedControls/constants.d.ts +0 -28
- package/dist/components/SegmentedControls/constants.js +0 -2
- package/dist/components/SkeletonLoading/Skeleton.d.ts +0 -268
- package/dist/components/SkeletonLoading/Skeleton.js +0 -13
- package/dist/components/SkeletonLoading/SkeletonAnimation.d.ts +0 -10
- package/dist/components/SkeletonLoading/SkeletonAnimation.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonCTA.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCTA.js +0 -42
- package/dist/components/SkeletonLoading/SkeletonCircle.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonCircle.js +0 -46
- package/dist/components/SkeletonLoading/SkeletonHeading.d.ts +0 -12
- package/dist/components/SkeletonLoading/SkeletonHeading.js +0 -42
- package/dist/components/SkeletonLoading/SkeletonText.d.ts +0 -6
- package/dist/components/SkeletonLoading/SkeletonText.js +0 -48
- package/dist/components/SkeletonLoading/index.d.ts +0 -5
- package/dist/components/SkeletonLoading/index.js +0 -21
- package/dist/components/SummaryList/SummaryList.d.ts +0 -22
- package/dist/components/SummaryList/SummaryList.js +0 -47
- package/dist/components/SummaryList/index.d.ts +0 -1
- package/dist/components/SummaryList/index.js +0 -6
- package/dist/components/Text/Text.d.ts +0 -1436
- package/dist/components/Text/Text.js +0 -93
- package/dist/components/Text/index.d.ts +0 -1
- package/dist/components/Text/index.js +0 -10
- package/dist/components/TextField/CurrencyField.d.ts +0 -15
- package/dist/components/TextField/CurrencyField.js +0 -33
- package/dist/components/TextField/EmailField.d.ts +0 -13
- package/dist/components/TextField/EmailField.js +0 -33
- package/dist/components/TextField/NumberField.d.ts +0 -13
- package/dist/components/TextField/NumberField.js +0 -33
- package/dist/components/TextField/PasswordField.d.ts +0 -15
- package/dist/components/TextField/PasswordField.js +0 -33
- package/dist/components/TextField/PhoneField.d.ts +0 -13
- package/dist/components/TextField/PhoneField.js +0 -33
- package/dist/components/TextField/TelField.d.ts +0 -17
- package/dist/components/TextField/TelField.js +0 -38
- package/dist/components/TextField/TextareaField.d.ts +0 -15
- package/dist/components/TextField/TextareaField.js +0 -33
- package/dist/esm/components/Accordion/hooks.js +0 -16
- package/dist/esm/components/Heading/Heading.js +0 -74
- package/dist/esm/components/Heading/index.js +0 -1
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +0 -62
- package/dist/esm/components/HorizontalCarousel/NavigationDots.js +0 -61
- package/dist/esm/components/HorizontalCarousel/index.js +0 -1
- package/dist/esm/components/Input/CurrencyInput.js +0 -34
- package/dist/esm/components/Input/EmailInput.js +0 -16
- package/dist/esm/components/Input/NumberInput.js +0 -16
- package/dist/esm/components/Input/PasswordInput.js +0 -32
- package/dist/esm/components/Input/PasswordInput.styled.js +0 -11
- package/dist/esm/components/Input/PasswordVisibilityToggle.js +0 -34
- package/dist/esm/components/Input/PhoneInput.js +0 -16
- package/dist/esm/components/Input/TelInput.js +0 -15
- package/dist/esm/components/Input/TextInput.js +0 -16
- package/dist/esm/components/Input/TextareaInput.js +0 -41
- package/dist/esm/components/Input/index.js +0 -7
- package/dist/esm/components/SegmentedControls/constants.js +0 -1
- package/dist/esm/components/SkeletonLoading/Skeleton.js +0 -7
- package/dist/esm/components/SkeletonLoading/SkeletonAnimation.js +0 -42
- package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +0 -35
- package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +0 -39
- package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +0 -35
- package/dist/esm/components/SkeletonLoading/SkeletonText.js +0 -41
- package/dist/esm/components/SkeletonLoading/index.js +0 -5
- package/dist/esm/components/SummaryList/SummaryList.js +0 -43
- package/dist/esm/components/SummaryList/index.js +0 -1
- package/dist/esm/components/Text/Text.js +0 -66
- package/dist/esm/components/Text/index.js +0 -1
- package/dist/esm/components/TextField/CurrencyField.js +0 -30
- package/dist/esm/components/TextField/EmailField.js +0 -30
- package/dist/esm/components/TextField/NumberField.js +0 -30
- package/dist/esm/components/TextField/PasswordField.js +0 -30
- package/dist/esm/components/TextField/PhoneField.js +0 -30
- package/dist/esm/components/TextField/TelField.js +0 -35
- package/dist/esm/components/TextField/TextareaField.js +0 -30
- package/dist/esm/providers/icons/HidePassword.js +0 -15
- package/dist/esm/providers/icons/Payment.js +0 -15
- package/dist/esm/providers/icons/ShowPassword.js +0 -15
- package/dist/esm/providers/icons/Usage.js +0 -15
- package/dist/esm/theme/create-theme.js +0 -330
- package/dist/esm/theme/theme.js +0 -1
- package/dist/providers/icons/HidePassword.d.ts +0 -2
- package/dist/providers/icons/HidePassword.js +0 -22
- package/dist/providers/icons/Payment.d.ts +0 -2
- package/dist/providers/icons/Payment.js +0 -22
- package/dist/providers/icons/ShowPassword.d.ts +0 -2
- package/dist/providers/icons/ShowPassword.js +0 -22
- package/dist/providers/icons/Usage.d.ts +0 -2
- package/dist/providers/icons/Usage.js +0 -22
- package/dist/theme/create-theme.d.ts +0 -34
- package/dist/theme/create-theme.js +0 -337
- package/dist/theme/theme.d.ts +0 -235
- package/dist/theme/theme.js +0 -2
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createTheme = exports.defaultTokens = void 0;
|
|
7
|
-
var deepmerge_1 = __importDefault(require("deepmerge"));
|
|
8
|
-
var brand = {
|
|
9
|
-
focus: { base: '#3F64E6' },
|
|
10
|
-
primary: {
|
|
11
|
-
muted: '#E7F3EA',
|
|
12
|
-
lightest: '#B6D727',
|
|
13
|
-
lighter: '#9DC431',
|
|
14
|
-
light: '#6CBD27',
|
|
15
|
-
base: '#0D8426',
|
|
16
|
-
dark: '#0D8426',
|
|
17
|
-
darker: '#006945',
|
|
18
|
-
},
|
|
19
|
-
grey: {
|
|
20
|
-
lightest: '#FFFFFF',
|
|
21
|
-
lighter: '#F9F9F9',
|
|
22
|
-
light: '#F3F3F3',
|
|
23
|
-
base: '#D1D6DE',
|
|
24
|
-
dark: '#666D78',
|
|
25
|
-
darker: '#2F3749',
|
|
26
|
-
darkest: '#111111',
|
|
27
|
-
},
|
|
28
|
-
mission: {
|
|
29
|
-
base: '#DE1D8D',
|
|
30
|
-
dark: '#C6187D',
|
|
31
|
-
},
|
|
32
|
-
complementary: {
|
|
33
|
-
base: '#197278',
|
|
34
|
-
},
|
|
35
|
-
electricity: {
|
|
36
|
-
base: '#E7A234',
|
|
37
|
-
dark: '#D1760A',
|
|
38
|
-
},
|
|
39
|
-
gas: {
|
|
40
|
-
base: '#26ADE4',
|
|
41
|
-
dark: '#3F64E6',
|
|
42
|
-
},
|
|
43
|
-
error: {
|
|
44
|
-
lightest: '#FAE8EC',
|
|
45
|
-
base: '#C7153E',
|
|
46
|
-
dark: '#8C0A28',
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
exports.defaultTokens = {
|
|
50
|
-
borderWidths: {
|
|
51
|
-
standard: '1px',
|
|
52
|
-
heavy: '2px',
|
|
53
|
-
heavier: '4px',
|
|
54
|
-
},
|
|
55
|
-
radii: {
|
|
56
|
-
small: '4px',
|
|
57
|
-
medium: '8px',
|
|
58
|
-
large: '12px',
|
|
59
|
-
},
|
|
60
|
-
shadows: {
|
|
61
|
-
standard: {
|
|
62
|
-
color: '#000',
|
|
63
|
-
offset: '1px',
|
|
64
|
-
opacity: 0.15,
|
|
65
|
-
radius: '4px',
|
|
66
|
-
elevation: 3,
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
breakpoints: { small: 576, medium: 768, large: 1200 },
|
|
70
|
-
space: {
|
|
71
|
-
1: '4px',
|
|
72
|
-
2: '8px',
|
|
73
|
-
3: '12px',
|
|
74
|
-
4: '16px',
|
|
75
|
-
5: '20px',
|
|
76
|
-
6: '24px',
|
|
77
|
-
7: '28px',
|
|
78
|
-
8: '32px',
|
|
79
|
-
9: '36px',
|
|
80
|
-
10: '40px',
|
|
81
|
-
11: '44px',
|
|
82
|
-
12: '48px',
|
|
83
|
-
},
|
|
84
|
-
fonts: {
|
|
85
|
-
body: 'OVOCircularTT-Book',
|
|
86
|
-
bold: 'OVOCircularTT-Bold',
|
|
87
|
-
heading: 'OVOCircularTT-Black',
|
|
88
|
-
},
|
|
89
|
-
lineHeights: {
|
|
90
|
-
standard: 1.5,
|
|
91
|
-
},
|
|
92
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '28px', '32px', '48px'],
|
|
93
|
-
colors: {
|
|
94
|
-
primary: brand.primary.base,
|
|
95
|
-
primaryAlt: brand.primary.darker,
|
|
96
|
-
primaryContrast: '#FFFFFF',
|
|
97
|
-
primaryMuted: brand.primary.muted,
|
|
98
|
-
error: '#C7153E',
|
|
99
|
-
errorAlt: '#8C0A28',
|
|
100
|
-
errorContrast: '#FFFFFF',
|
|
101
|
-
errorMuted: '#FAE8EC',
|
|
102
|
-
focus: '#3F64E6',
|
|
103
|
-
focusMuted: '#C6D1F8',
|
|
104
|
-
canvas: '#FFFFFF',
|
|
105
|
-
body: brand.grey.darker,
|
|
106
|
-
heading: brand.grey.darker,
|
|
107
|
-
border: brand.grey.dark,
|
|
108
|
-
canvasMuted: '#F0F2F5',
|
|
109
|
-
borderMuted: brand.grey.base,
|
|
110
|
-
info: '#3F64E6',
|
|
111
|
-
infoAlt: '#004CA0',
|
|
112
|
-
infoContrast: '#FFFFFF',
|
|
113
|
-
infoMuted: '#ECF0FD',
|
|
114
|
-
warning: '#BE5409',
|
|
115
|
-
warningAlt: '#8A3C05',
|
|
116
|
-
warningContrast: '#FFFFFF',
|
|
117
|
-
warningMuted: '#F7F0E7',
|
|
118
|
-
success: brand.primary.base,
|
|
119
|
-
successAlt: brand.primary.darker,
|
|
120
|
-
successContrast: '#FFFFFF',
|
|
121
|
-
successMuted: brand.primary.muted,
|
|
122
|
-
mission: '#DE1D8D',
|
|
123
|
-
missionMuted: '#FDF4F9',
|
|
124
|
-
missionAlt: '#C6187D',
|
|
125
|
-
missionContrast: '#FFFFFF',
|
|
126
|
-
brand: brand,
|
|
127
|
-
},
|
|
128
|
-
responsiveFontSizes: {
|
|
129
|
-
label: ['11px', '14px'],
|
|
130
|
-
small: ['14px', '14px'],
|
|
131
|
-
body: ['16px', '16px'],
|
|
132
|
-
level1: ['28px', '48px'],
|
|
133
|
-
level2: ['24px', '32px'],
|
|
134
|
-
level3: ['20px', '28px'],
|
|
135
|
-
level4: ['16px', '22px'],
|
|
136
|
-
lead: ['18px', '22px'],
|
|
137
|
-
},
|
|
138
|
-
responsiveLineHeights: {
|
|
139
|
-
label: ['20px', '20px'],
|
|
140
|
-
small: ['20px', '20px'],
|
|
141
|
-
body: ['24px', '24px'],
|
|
142
|
-
level1: ['36px', '52px'],
|
|
143
|
-
level2: ['32px', '40px'],
|
|
144
|
-
level3: ['24px', '36px'],
|
|
145
|
-
level4: ['20px', '28px'],
|
|
146
|
-
lead: ['24px', '28px'],
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
function createTheme(customTheme, additional) {
|
|
150
|
-
var mergeOptions = { arrayMerge: function (_, source) { return source; } };
|
|
151
|
-
var customThemeWithAdditional = (0, deepmerge_1.default)(customTheme, additional || {}, mergeOptions);
|
|
152
|
-
var theme = (0, deepmerge_1.default)(exports.defaultTokens, customThemeWithAdditional, mergeOptions);
|
|
153
|
-
var fontSizes = theme.fontSizes, breakpoints = theme.breakpoints, colors = theme.colors, fonts = theme.fonts, lineHeights = theme.lineHeights, space = theme.space, radii = theme.radii, shadows = theme.shadows, borderWidths = theme.borderWidths, responsiveFontSizes = theme.responsiveFontSizes, responsiveLineHeights = theme.responsiveLineHeights;
|
|
154
|
-
return (0, deepmerge_1.default)({
|
|
155
|
-
field: {
|
|
156
|
-
fontFamily: fonts.body,
|
|
157
|
-
fontSize: responsiveFontSizes.body,
|
|
158
|
-
lineHeight: lineHeights.standard,
|
|
159
|
-
dateWidth: '265px',
|
|
160
|
-
gap: space[2],
|
|
161
|
-
error: {
|
|
162
|
-
color: colors.error,
|
|
163
|
-
fontFamily: fonts.bold,
|
|
164
|
-
},
|
|
165
|
-
hint: {
|
|
166
|
-
color: colors.border,
|
|
167
|
-
},
|
|
168
|
-
label: {
|
|
169
|
-
color: colors.heading,
|
|
170
|
-
fontFamily: fonts.bold,
|
|
171
|
-
},
|
|
172
|
-
subLabel: {
|
|
173
|
-
color: colors.border,
|
|
174
|
-
},
|
|
175
|
-
legend: {
|
|
176
|
-
marginBottom: space[1],
|
|
177
|
-
},
|
|
178
|
-
errorIndent: {
|
|
179
|
-
borderWidth: space[1],
|
|
180
|
-
borderRadius: radii.small,
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
focusRing: {
|
|
184
|
-
color: colors.focus,
|
|
185
|
-
width: borderWidths.heavy,
|
|
186
|
-
distance: borderWidths.heavy,
|
|
187
|
-
},
|
|
188
|
-
input: {
|
|
189
|
-
fontFamily: fonts.body,
|
|
190
|
-
fontSize: responsiveFontSizes.body,
|
|
191
|
-
color: colors.body,
|
|
192
|
-
lineHeight: lineHeights.standard,
|
|
193
|
-
height: space[11],
|
|
194
|
-
borderColor: colors.border,
|
|
195
|
-
borderWidth: borderWidths.standard,
|
|
196
|
-
background: colors.canvas,
|
|
197
|
-
padding: space[2],
|
|
198
|
-
borderRadius: radii.small,
|
|
199
|
-
error: {
|
|
200
|
-
borderWidth: borderWidths.heavy,
|
|
201
|
-
color: colors.error,
|
|
202
|
-
},
|
|
203
|
-
icon: {
|
|
204
|
-
size: space[4],
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
card: {
|
|
208
|
-
background: colors.canvas,
|
|
209
|
-
borderWidth: borderWidths.standard,
|
|
210
|
-
borderColor: colors.borderMuted,
|
|
211
|
-
padding: [space[3], space[6], space[9]],
|
|
212
|
-
},
|
|
213
|
-
checkbox: {
|
|
214
|
-
touchSize: space[11],
|
|
215
|
-
size: space[6],
|
|
216
|
-
checkSize: space[5],
|
|
217
|
-
gap: space[2],
|
|
218
|
-
paddingTop: space[3],
|
|
219
|
-
borderWidth: borderWidths.standard,
|
|
220
|
-
borderColor: colors.border,
|
|
221
|
-
borderRadius: radii.small,
|
|
222
|
-
background: colors.canvas,
|
|
223
|
-
checkedBackground: colors.infoMuted,
|
|
224
|
-
checkColor: colors.info,
|
|
225
|
-
errorColor: colors.error,
|
|
226
|
-
},
|
|
227
|
-
text: {
|
|
228
|
-
fontFamily: fonts.body,
|
|
229
|
-
lineHeight: 1,
|
|
230
|
-
color: colors.body,
|
|
231
|
-
p: {
|
|
232
|
-
fontSize: responsiveFontSizes.body,
|
|
233
|
-
lineHeight: responsiveLineHeights.body,
|
|
234
|
-
marginTop: [space[3], space[3]],
|
|
235
|
-
marginBottom: [space[3], space[3]],
|
|
236
|
-
},
|
|
237
|
-
small: {
|
|
238
|
-
fontSize: responsiveFontSizes.small,
|
|
239
|
-
lineHeight: responsiveLineHeights.small,
|
|
240
|
-
},
|
|
241
|
-
strong: {
|
|
242
|
-
fontFamily: fonts.bold,
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
list: {
|
|
246
|
-
marginTop: [space[2], space[3]],
|
|
247
|
-
marginBottom: [space[2], space[3]],
|
|
248
|
-
marginLeft: space[6],
|
|
249
|
-
listItem: {
|
|
250
|
-
fontSize: responsiveFontSizes.body,
|
|
251
|
-
lineHeight: responsiveLineHeights.body,
|
|
252
|
-
marginVertical: 2,
|
|
253
|
-
bulletGap: space[2],
|
|
254
|
-
bulletWidth: space[2],
|
|
255
|
-
},
|
|
256
|
-
descriptionTerm: {
|
|
257
|
-
color: colors.heading,
|
|
258
|
-
fontFamily: fonts.bold,
|
|
259
|
-
marginTop: [space[3], space[4]],
|
|
260
|
-
marginBottom: [space[1], space[1]],
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
textLink: {
|
|
264
|
-
fontFamily: fonts.body,
|
|
265
|
-
color: colors.primary,
|
|
266
|
-
},
|
|
267
|
-
heading: {
|
|
268
|
-
fontFamily: fonts.heading,
|
|
269
|
-
color: colors.heading,
|
|
270
|
-
heading1: {
|
|
271
|
-
fontSize: responsiveFontSizes.level1,
|
|
272
|
-
lineHeight: responsiveLineHeights.level1,
|
|
273
|
-
marginTop: [space[8], space[12]],
|
|
274
|
-
marginBottom: [space[3], space[4]],
|
|
275
|
-
},
|
|
276
|
-
heading2: {
|
|
277
|
-
fontSize: responsiveFontSizes.level2,
|
|
278
|
-
lineHeight: responsiveLineHeights.level2,
|
|
279
|
-
marginTop: [space[6], space[8]],
|
|
280
|
-
marginBottom: [space[3], space[4]],
|
|
281
|
-
},
|
|
282
|
-
heading3: {
|
|
283
|
-
fontSize: responsiveFontSizes.level3,
|
|
284
|
-
lineHeight: responsiveLineHeights.level3,
|
|
285
|
-
marginTop: [space[4], space[6]],
|
|
286
|
-
marginBottom: [space[3], space[4]],
|
|
287
|
-
},
|
|
288
|
-
heading4: {
|
|
289
|
-
fontSize: responsiveFontSizes.level4,
|
|
290
|
-
lineHeight: responsiveLineHeights.level4,
|
|
291
|
-
marginTop: [space[3], space[4]],
|
|
292
|
-
marginBottom: [space[3], space[4]],
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
shadows: shadows,
|
|
296
|
-
radii: radii,
|
|
297
|
-
radio: {
|
|
298
|
-
touchSize: space[11],
|
|
299
|
-
size: space[8],
|
|
300
|
-
dotSize: space[5],
|
|
301
|
-
gap: space[2],
|
|
302
|
-
paddingTop: space[3],
|
|
303
|
-
borderWidth: borderWidths.standard,
|
|
304
|
-
borderColor: colors.border,
|
|
305
|
-
background: colors.canvas,
|
|
306
|
-
dotColor: colors.info,
|
|
307
|
-
checkedBackground: colors.infoMuted,
|
|
308
|
-
errorColor: colors.error,
|
|
309
|
-
},
|
|
310
|
-
fontSizes: fontSizes,
|
|
311
|
-
fonts: fonts,
|
|
312
|
-
responsiveFontSizes: responsiveFontSizes,
|
|
313
|
-
responsiveLineHeights: responsiveLineHeights,
|
|
314
|
-
colors: colors,
|
|
315
|
-
borderWidths: borderWidths,
|
|
316
|
-
breakpoints: breakpoints,
|
|
317
|
-
lineHeights: lineHeights,
|
|
318
|
-
space: space,
|
|
319
|
-
grid: {
|
|
320
|
-
maxWidth: breakpoints.large + 'px',
|
|
321
|
-
gutter: [space[4], space[8]],
|
|
322
|
-
},
|
|
323
|
-
disclosure: {
|
|
324
|
-
iconGap: [space[1], space[2]],
|
|
325
|
-
panelGap: [space[2], space[3]],
|
|
326
|
-
},
|
|
327
|
-
accordion: {
|
|
328
|
-
header: {
|
|
329
|
-
color: colors.primary,
|
|
330
|
-
paddingVertical: [space[3], space[5]],
|
|
331
|
-
iconSize: space[4],
|
|
332
|
-
iconGap: space[3],
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
}, theme, mergeOptions);
|
|
336
|
-
}
|
|
337
|
-
exports.createTheme = createTheme;
|
package/dist/theme/theme.d.ts
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
declare type Shadow = {
|
|
2
|
-
color: string;
|
|
3
|
-
offset: string;
|
|
4
|
-
opacity: number;
|
|
5
|
-
radius: string;
|
|
6
|
-
elevation: number;
|
|
7
|
-
};
|
|
8
|
-
declare type FontNames =
|
|
9
|
-
| 'body'
|
|
10
|
-
| 'small'
|
|
11
|
-
| 'label'
|
|
12
|
-
| 'level1'
|
|
13
|
-
| 'level2'
|
|
14
|
-
| 'level3'
|
|
15
|
-
| 'level4'
|
|
16
|
-
| 'lead';
|
|
17
|
-
export declare type Theme = {
|
|
18
|
-
space: Record<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12, string>;
|
|
19
|
-
colors: Record<
|
|
20
|
-
| 'primary'
|
|
21
|
-
| 'primaryAlt'
|
|
22
|
-
| 'primaryContrast'
|
|
23
|
-
| 'primaryMuted'
|
|
24
|
-
| 'error'
|
|
25
|
-
| 'errorAlt'
|
|
26
|
-
| 'errorContrast'
|
|
27
|
-
| 'errorMuted'
|
|
28
|
-
| 'info'
|
|
29
|
-
| 'infoAlt'
|
|
30
|
-
| 'infoContrast'
|
|
31
|
-
| 'infoMuted'
|
|
32
|
-
| 'warning'
|
|
33
|
-
| 'warningAlt'
|
|
34
|
-
| 'warningContrast'
|
|
35
|
-
| 'warningMuted'
|
|
36
|
-
| 'success'
|
|
37
|
-
| 'successAlt'
|
|
38
|
-
| 'successContrast'
|
|
39
|
-
| 'successMuted'
|
|
40
|
-
| 'focus'
|
|
41
|
-
| 'focusMuted'
|
|
42
|
-
| 'body'
|
|
43
|
-
| 'heading'
|
|
44
|
-
| 'border'
|
|
45
|
-
| 'borderMuted'
|
|
46
|
-
| 'canvas'
|
|
47
|
-
| 'canvasMuted'
|
|
48
|
-
| 'mission'
|
|
49
|
-
| 'missionMuted'
|
|
50
|
-
| 'missionAlt'
|
|
51
|
-
| 'missionContrast',
|
|
52
|
-
string
|
|
53
|
-
> & {
|
|
54
|
-
brand: Record<string, Record<string, string>>;
|
|
55
|
-
};
|
|
56
|
-
fonts: Record<'body' | 'bold' | 'heading', string>;
|
|
57
|
-
lineHeights: Record<'standard', number>;
|
|
58
|
-
fontSizes: string[];
|
|
59
|
-
responsiveFontSizes: Record<FontNames, string[]>;
|
|
60
|
-
responsiveLineHeights: Record<FontNames, string[]>;
|
|
61
|
-
breakpoints: Record<'small' | 'medium' | 'large', number>;
|
|
62
|
-
radii: Record<'small' | 'medium' | 'large', string>;
|
|
63
|
-
shadows: Record<'standard', Shadow>;
|
|
64
|
-
borderWidths: Record<'standard' | 'heavy' | 'heavier', string>;
|
|
65
|
-
text: {
|
|
66
|
-
fontFamily: string;
|
|
67
|
-
lineHeight: number;
|
|
68
|
-
color: string;
|
|
69
|
-
p: {
|
|
70
|
-
fontSize: string[];
|
|
71
|
-
lineHeight: string[];
|
|
72
|
-
marginTop: string[];
|
|
73
|
-
marginBottom: string[];
|
|
74
|
-
};
|
|
75
|
-
small: {
|
|
76
|
-
fontSize: string[];
|
|
77
|
-
lineHeight: string[];
|
|
78
|
-
};
|
|
79
|
-
strong: {
|
|
80
|
-
fontFamily: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
list: {
|
|
84
|
-
marginTop: string[];
|
|
85
|
-
marginBottom: string[];
|
|
86
|
-
marginLeft: string;
|
|
87
|
-
listItem: {
|
|
88
|
-
fontSize: string[];
|
|
89
|
-
lineHeight: string[];
|
|
90
|
-
marginVertical: keyof Theme['space'];
|
|
91
|
-
bulletGap: string;
|
|
92
|
-
bulletWidth: string;
|
|
93
|
-
};
|
|
94
|
-
descriptionTerm: {
|
|
95
|
-
fontFamily: string;
|
|
96
|
-
color: string;
|
|
97
|
-
marginTop: string[];
|
|
98
|
-
marginBottom: string[];
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
textLink: {
|
|
102
|
-
fontFamily: string;
|
|
103
|
-
color: string;
|
|
104
|
-
};
|
|
105
|
-
heading: {
|
|
106
|
-
fontFamily: string;
|
|
107
|
-
color: string;
|
|
108
|
-
heading1: {
|
|
109
|
-
fontSize: string[];
|
|
110
|
-
lineHeight: string[];
|
|
111
|
-
marginTop: string[];
|
|
112
|
-
marginBottom: string[];
|
|
113
|
-
};
|
|
114
|
-
heading2: {
|
|
115
|
-
fontSize: string[];
|
|
116
|
-
lineHeight: string[];
|
|
117
|
-
marginTop: string[];
|
|
118
|
-
marginBottom: string[];
|
|
119
|
-
};
|
|
120
|
-
heading3: {
|
|
121
|
-
fontSize: string[];
|
|
122
|
-
lineHeight: string[];
|
|
123
|
-
marginTop: string[];
|
|
124
|
-
marginBottom: string[];
|
|
125
|
-
};
|
|
126
|
-
heading4: {
|
|
127
|
-
fontSize: string[];
|
|
128
|
-
lineHeight: string[];
|
|
129
|
-
marginTop: string[];
|
|
130
|
-
marginBottom: string[];
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
radio: {
|
|
134
|
-
touchSize: string;
|
|
135
|
-
size: string;
|
|
136
|
-
dotSize: string;
|
|
137
|
-
gap: string;
|
|
138
|
-
paddingTop: string;
|
|
139
|
-
borderWidth: string;
|
|
140
|
-
borderColor: string;
|
|
141
|
-
background: string;
|
|
142
|
-
dotColor: string;
|
|
143
|
-
checkedBackground: string;
|
|
144
|
-
errorColor: string;
|
|
145
|
-
};
|
|
146
|
-
checkbox: {
|
|
147
|
-
touchSize: string;
|
|
148
|
-
size: string;
|
|
149
|
-
checkSize: string;
|
|
150
|
-
gap: string;
|
|
151
|
-
paddingTop: string;
|
|
152
|
-
borderWidth: string;
|
|
153
|
-
borderColor: string;
|
|
154
|
-
borderRadius: string;
|
|
155
|
-
background: string;
|
|
156
|
-
checkedBackground: string;
|
|
157
|
-
checkColor: string;
|
|
158
|
-
errorColor: string;
|
|
159
|
-
};
|
|
160
|
-
input: {
|
|
161
|
-
fontFamily: string;
|
|
162
|
-
fontSize: string[];
|
|
163
|
-
color: string;
|
|
164
|
-
lineHeight: number;
|
|
165
|
-
height: string;
|
|
166
|
-
borderColor: string;
|
|
167
|
-
borderWidth: string;
|
|
168
|
-
background: string;
|
|
169
|
-
borderRadius: string;
|
|
170
|
-
padding: string;
|
|
171
|
-
error: {
|
|
172
|
-
borderWidth: string;
|
|
173
|
-
color: string;
|
|
174
|
-
};
|
|
175
|
-
icon: {
|
|
176
|
-
size: string;
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
focusRing: {
|
|
180
|
-
color: string;
|
|
181
|
-
width: string;
|
|
182
|
-
distance: string;
|
|
183
|
-
};
|
|
184
|
-
field: {
|
|
185
|
-
fontFamily: string;
|
|
186
|
-
fontSize: string[];
|
|
187
|
-
lineHeight: number;
|
|
188
|
-
dateWidth: string;
|
|
189
|
-
gap: string;
|
|
190
|
-
error: {
|
|
191
|
-
fontFamily: string;
|
|
192
|
-
color: string;
|
|
193
|
-
};
|
|
194
|
-
hint: {
|
|
195
|
-
color: string;
|
|
196
|
-
};
|
|
197
|
-
label: {
|
|
198
|
-
fontFamily: string;
|
|
199
|
-
color: string;
|
|
200
|
-
};
|
|
201
|
-
subLabel: {
|
|
202
|
-
color: string;
|
|
203
|
-
};
|
|
204
|
-
legend: {
|
|
205
|
-
marginBottom: string;
|
|
206
|
-
};
|
|
207
|
-
errorIndent: {
|
|
208
|
-
borderWidth: string;
|
|
209
|
-
borderRadius: string;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
card: {
|
|
213
|
-
background: string;
|
|
214
|
-
borderWidth: string;
|
|
215
|
-
borderColor: string;
|
|
216
|
-
padding: string[];
|
|
217
|
-
};
|
|
218
|
-
disclosure: {
|
|
219
|
-
iconGap: string[];
|
|
220
|
-
panelGap: string[];
|
|
221
|
-
};
|
|
222
|
-
grid: {
|
|
223
|
-
maxWidth: string;
|
|
224
|
-
gutter: string[];
|
|
225
|
-
};
|
|
226
|
-
accordion: {
|
|
227
|
-
header: {
|
|
228
|
-
color: string;
|
|
229
|
-
iconSize: string;
|
|
230
|
-
iconGap: string;
|
|
231
|
-
paddingVertical: string[];
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
export {};
|
package/dist/theme/theme.js
DELETED