@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,330 +0,0 @@
|
|
|
1
|
-
import deepMerge from 'deepmerge';
|
|
2
|
-
var brand = {
|
|
3
|
-
focus: { base: '#3F64E6' },
|
|
4
|
-
primary: {
|
|
5
|
-
muted: '#E7F3EA',
|
|
6
|
-
lightest: '#B6D727',
|
|
7
|
-
lighter: '#9DC431',
|
|
8
|
-
light: '#6CBD27',
|
|
9
|
-
base: '#0D8426',
|
|
10
|
-
dark: '#0D8426',
|
|
11
|
-
darker: '#006945',
|
|
12
|
-
},
|
|
13
|
-
grey: {
|
|
14
|
-
lightest: '#FFFFFF',
|
|
15
|
-
lighter: '#F9F9F9',
|
|
16
|
-
light: '#F3F3F3',
|
|
17
|
-
base: '#D1D6DE',
|
|
18
|
-
dark: '#666D78',
|
|
19
|
-
darker: '#2F3749',
|
|
20
|
-
darkest: '#111111',
|
|
21
|
-
},
|
|
22
|
-
mission: {
|
|
23
|
-
base: '#DE1D8D',
|
|
24
|
-
dark: '#C6187D',
|
|
25
|
-
},
|
|
26
|
-
complementary: {
|
|
27
|
-
base: '#197278',
|
|
28
|
-
},
|
|
29
|
-
electricity: {
|
|
30
|
-
base: '#E7A234',
|
|
31
|
-
dark: '#D1760A',
|
|
32
|
-
},
|
|
33
|
-
gas: {
|
|
34
|
-
base: '#26ADE4',
|
|
35
|
-
dark: '#3F64E6',
|
|
36
|
-
},
|
|
37
|
-
error: {
|
|
38
|
-
lightest: '#FAE8EC',
|
|
39
|
-
base: '#C7153E',
|
|
40
|
-
dark: '#8C0A28',
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
export var defaultTokens = {
|
|
44
|
-
borderWidths: {
|
|
45
|
-
standard: '1px',
|
|
46
|
-
heavy: '2px',
|
|
47
|
-
heavier: '4px',
|
|
48
|
-
},
|
|
49
|
-
radii: {
|
|
50
|
-
small: '4px',
|
|
51
|
-
medium: '8px',
|
|
52
|
-
large: '12px',
|
|
53
|
-
},
|
|
54
|
-
shadows: {
|
|
55
|
-
standard: {
|
|
56
|
-
color: '#000',
|
|
57
|
-
offset: '1px',
|
|
58
|
-
opacity: 0.15,
|
|
59
|
-
radius: '4px',
|
|
60
|
-
elevation: 3,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
breakpoints: { small: 576, medium: 768, large: 1200 },
|
|
64
|
-
space: {
|
|
65
|
-
1: '4px',
|
|
66
|
-
2: '8px',
|
|
67
|
-
3: '12px',
|
|
68
|
-
4: '16px',
|
|
69
|
-
5: '20px',
|
|
70
|
-
6: '24px',
|
|
71
|
-
7: '28px',
|
|
72
|
-
8: '32px',
|
|
73
|
-
9: '36px',
|
|
74
|
-
10: '40px',
|
|
75
|
-
11: '44px',
|
|
76
|
-
12: '48px',
|
|
77
|
-
},
|
|
78
|
-
fonts: {
|
|
79
|
-
body: 'OVOCircularTT-Book',
|
|
80
|
-
bold: 'OVOCircularTT-Bold',
|
|
81
|
-
heading: 'OVOCircularTT-Black',
|
|
82
|
-
},
|
|
83
|
-
lineHeights: {
|
|
84
|
-
standard: 1.5,
|
|
85
|
-
},
|
|
86
|
-
fontSizes: ['12px', '14px', '16px', '20px', '24px', '28px', '32px', '48px'],
|
|
87
|
-
colors: {
|
|
88
|
-
primary: brand.primary.base,
|
|
89
|
-
primaryAlt: brand.primary.darker,
|
|
90
|
-
primaryContrast: '#FFFFFF',
|
|
91
|
-
primaryMuted: brand.primary.muted,
|
|
92
|
-
error: '#C7153E',
|
|
93
|
-
errorAlt: '#8C0A28',
|
|
94
|
-
errorContrast: '#FFFFFF',
|
|
95
|
-
errorMuted: '#FAE8EC',
|
|
96
|
-
focus: '#3F64E6',
|
|
97
|
-
focusMuted: '#C6D1F8',
|
|
98
|
-
canvas: '#FFFFFF',
|
|
99
|
-
body: brand.grey.darker,
|
|
100
|
-
heading: brand.grey.darker,
|
|
101
|
-
border: brand.grey.dark,
|
|
102
|
-
canvasMuted: '#F0F2F5',
|
|
103
|
-
borderMuted: brand.grey.base,
|
|
104
|
-
info: '#3F64E6',
|
|
105
|
-
infoAlt: '#004CA0',
|
|
106
|
-
infoContrast: '#FFFFFF',
|
|
107
|
-
infoMuted: '#ECF0FD',
|
|
108
|
-
warning: '#BE5409',
|
|
109
|
-
warningAlt: '#8A3C05',
|
|
110
|
-
warningContrast: '#FFFFFF',
|
|
111
|
-
warningMuted: '#F7F0E7',
|
|
112
|
-
success: brand.primary.base,
|
|
113
|
-
successAlt: brand.primary.darker,
|
|
114
|
-
successContrast: '#FFFFFF',
|
|
115
|
-
successMuted: brand.primary.muted,
|
|
116
|
-
mission: '#DE1D8D',
|
|
117
|
-
missionMuted: '#FDF4F9',
|
|
118
|
-
missionAlt: '#C6187D',
|
|
119
|
-
missionContrast: '#FFFFFF',
|
|
120
|
-
brand: brand,
|
|
121
|
-
},
|
|
122
|
-
responsiveFontSizes: {
|
|
123
|
-
label: ['11px', '14px'],
|
|
124
|
-
small: ['14px', '14px'],
|
|
125
|
-
body: ['16px', '16px'],
|
|
126
|
-
level1: ['28px', '48px'],
|
|
127
|
-
level2: ['24px', '32px'],
|
|
128
|
-
level3: ['20px', '28px'],
|
|
129
|
-
level4: ['16px', '22px'],
|
|
130
|
-
lead: ['18px', '22px'],
|
|
131
|
-
},
|
|
132
|
-
responsiveLineHeights: {
|
|
133
|
-
label: ['20px', '20px'],
|
|
134
|
-
small: ['20px', '20px'],
|
|
135
|
-
body: ['24px', '24px'],
|
|
136
|
-
level1: ['36px', '52px'],
|
|
137
|
-
level2: ['32px', '40px'],
|
|
138
|
-
level3: ['24px', '36px'],
|
|
139
|
-
level4: ['20px', '28px'],
|
|
140
|
-
lead: ['24px', '28px'],
|
|
141
|
-
},
|
|
142
|
-
};
|
|
143
|
-
export function createTheme(customTheme, additional) {
|
|
144
|
-
var mergeOptions = { arrayMerge: function (_, source) { return source; } };
|
|
145
|
-
var customThemeWithAdditional = deepMerge(customTheme, additional || {}, mergeOptions);
|
|
146
|
-
var theme = deepMerge(defaultTokens, customThemeWithAdditional, mergeOptions);
|
|
147
|
-
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;
|
|
148
|
-
return deepMerge({
|
|
149
|
-
field: {
|
|
150
|
-
fontFamily: fonts.body,
|
|
151
|
-
fontSize: responsiveFontSizes.body,
|
|
152
|
-
lineHeight: lineHeights.standard,
|
|
153
|
-
dateWidth: '265px',
|
|
154
|
-
gap: space[2],
|
|
155
|
-
error: {
|
|
156
|
-
color: colors.error,
|
|
157
|
-
fontFamily: fonts.bold,
|
|
158
|
-
},
|
|
159
|
-
hint: {
|
|
160
|
-
color: colors.border,
|
|
161
|
-
},
|
|
162
|
-
label: {
|
|
163
|
-
color: colors.heading,
|
|
164
|
-
fontFamily: fonts.bold,
|
|
165
|
-
},
|
|
166
|
-
subLabel: {
|
|
167
|
-
color: colors.border,
|
|
168
|
-
},
|
|
169
|
-
legend: {
|
|
170
|
-
marginBottom: space[1],
|
|
171
|
-
},
|
|
172
|
-
errorIndent: {
|
|
173
|
-
borderWidth: space[1],
|
|
174
|
-
borderRadius: radii.small,
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
focusRing: {
|
|
178
|
-
color: colors.focus,
|
|
179
|
-
width: borderWidths.heavy,
|
|
180
|
-
distance: borderWidths.heavy,
|
|
181
|
-
},
|
|
182
|
-
input: {
|
|
183
|
-
fontFamily: fonts.body,
|
|
184
|
-
fontSize: responsiveFontSizes.body,
|
|
185
|
-
color: colors.body,
|
|
186
|
-
lineHeight: lineHeights.standard,
|
|
187
|
-
height: space[11],
|
|
188
|
-
borderColor: colors.border,
|
|
189
|
-
borderWidth: borderWidths.standard,
|
|
190
|
-
background: colors.canvas,
|
|
191
|
-
padding: space[2],
|
|
192
|
-
borderRadius: radii.small,
|
|
193
|
-
error: {
|
|
194
|
-
borderWidth: borderWidths.heavy,
|
|
195
|
-
color: colors.error,
|
|
196
|
-
},
|
|
197
|
-
icon: {
|
|
198
|
-
size: space[4],
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
card: {
|
|
202
|
-
background: colors.canvas,
|
|
203
|
-
borderWidth: borderWidths.standard,
|
|
204
|
-
borderColor: colors.borderMuted,
|
|
205
|
-
padding: [space[3], space[6], space[9]],
|
|
206
|
-
},
|
|
207
|
-
checkbox: {
|
|
208
|
-
touchSize: space[11],
|
|
209
|
-
size: space[6],
|
|
210
|
-
checkSize: space[5],
|
|
211
|
-
gap: space[2],
|
|
212
|
-
paddingTop: space[3],
|
|
213
|
-
borderWidth: borderWidths.standard,
|
|
214
|
-
borderColor: colors.border,
|
|
215
|
-
borderRadius: radii.small,
|
|
216
|
-
background: colors.canvas,
|
|
217
|
-
checkedBackground: colors.infoMuted,
|
|
218
|
-
checkColor: colors.info,
|
|
219
|
-
errorColor: colors.error,
|
|
220
|
-
},
|
|
221
|
-
text: {
|
|
222
|
-
fontFamily: fonts.body,
|
|
223
|
-
lineHeight: 1,
|
|
224
|
-
color: colors.body,
|
|
225
|
-
p: {
|
|
226
|
-
fontSize: responsiveFontSizes.body,
|
|
227
|
-
lineHeight: responsiveLineHeights.body,
|
|
228
|
-
marginTop: [space[3], space[3]],
|
|
229
|
-
marginBottom: [space[3], space[3]],
|
|
230
|
-
},
|
|
231
|
-
small: {
|
|
232
|
-
fontSize: responsiveFontSizes.small,
|
|
233
|
-
lineHeight: responsiveLineHeights.small,
|
|
234
|
-
},
|
|
235
|
-
strong: {
|
|
236
|
-
fontFamily: fonts.bold,
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
list: {
|
|
240
|
-
marginTop: [space[2], space[3]],
|
|
241
|
-
marginBottom: [space[2], space[3]],
|
|
242
|
-
marginLeft: space[6],
|
|
243
|
-
listItem: {
|
|
244
|
-
fontSize: responsiveFontSizes.body,
|
|
245
|
-
lineHeight: responsiveLineHeights.body,
|
|
246
|
-
marginVertical: 2,
|
|
247
|
-
bulletGap: space[2],
|
|
248
|
-
bulletWidth: space[2],
|
|
249
|
-
},
|
|
250
|
-
descriptionTerm: {
|
|
251
|
-
color: colors.heading,
|
|
252
|
-
fontFamily: fonts.bold,
|
|
253
|
-
marginTop: [space[3], space[4]],
|
|
254
|
-
marginBottom: [space[1], space[1]],
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
textLink: {
|
|
258
|
-
fontFamily: fonts.body,
|
|
259
|
-
color: colors.primary,
|
|
260
|
-
},
|
|
261
|
-
heading: {
|
|
262
|
-
fontFamily: fonts.heading,
|
|
263
|
-
color: colors.heading,
|
|
264
|
-
heading1: {
|
|
265
|
-
fontSize: responsiveFontSizes.level1,
|
|
266
|
-
lineHeight: responsiveLineHeights.level1,
|
|
267
|
-
marginTop: [space[8], space[12]],
|
|
268
|
-
marginBottom: [space[3], space[4]],
|
|
269
|
-
},
|
|
270
|
-
heading2: {
|
|
271
|
-
fontSize: responsiveFontSizes.level2,
|
|
272
|
-
lineHeight: responsiveLineHeights.level2,
|
|
273
|
-
marginTop: [space[6], space[8]],
|
|
274
|
-
marginBottom: [space[3], space[4]],
|
|
275
|
-
},
|
|
276
|
-
heading3: {
|
|
277
|
-
fontSize: responsiveFontSizes.level3,
|
|
278
|
-
lineHeight: responsiveLineHeights.level3,
|
|
279
|
-
marginTop: [space[4], space[6]],
|
|
280
|
-
marginBottom: [space[3], space[4]],
|
|
281
|
-
},
|
|
282
|
-
heading4: {
|
|
283
|
-
fontSize: responsiveFontSizes.level4,
|
|
284
|
-
lineHeight: responsiveLineHeights.level4,
|
|
285
|
-
marginTop: [space[3], space[4]],
|
|
286
|
-
marginBottom: [space[3], space[4]],
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
shadows: shadows,
|
|
290
|
-
radii: radii,
|
|
291
|
-
radio: {
|
|
292
|
-
touchSize: space[11],
|
|
293
|
-
size: space[8],
|
|
294
|
-
dotSize: space[5],
|
|
295
|
-
gap: space[2],
|
|
296
|
-
paddingTop: space[3],
|
|
297
|
-
borderWidth: borderWidths.standard,
|
|
298
|
-
borderColor: colors.border,
|
|
299
|
-
background: colors.canvas,
|
|
300
|
-
dotColor: colors.info,
|
|
301
|
-
checkedBackground: colors.infoMuted,
|
|
302
|
-
errorColor: colors.error,
|
|
303
|
-
},
|
|
304
|
-
fontSizes: fontSizes,
|
|
305
|
-
fonts: fonts,
|
|
306
|
-
responsiveFontSizes: responsiveFontSizes,
|
|
307
|
-
responsiveLineHeights: responsiveLineHeights,
|
|
308
|
-
colors: colors,
|
|
309
|
-
borderWidths: borderWidths,
|
|
310
|
-
breakpoints: breakpoints,
|
|
311
|
-
lineHeights: lineHeights,
|
|
312
|
-
space: space,
|
|
313
|
-
grid: {
|
|
314
|
-
maxWidth: breakpoints.large + 'px',
|
|
315
|
-
gutter: [space[4], space[8]],
|
|
316
|
-
},
|
|
317
|
-
disclosure: {
|
|
318
|
-
iconGap: [space[1], space[2]],
|
|
319
|
-
panelGap: [space[2], space[3]],
|
|
320
|
-
},
|
|
321
|
-
accordion: {
|
|
322
|
-
header: {
|
|
323
|
-
color: colors.primary,
|
|
324
|
-
paddingVertical: [space[3], space[5]],
|
|
325
|
-
iconSize: space[4],
|
|
326
|
-
iconGap: space[3],
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
}, theme, mergeOptions);
|
|
330
|
-
}
|
package/dist/esm/theme/theme.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.HidePassword = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
-
var HidePassword = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
-
react_1.default.createElement(react_native_svg_1.Path, { d: "M15.8125 1.3125L14.5781 0.078125L10.7093 3.947C9.8406 3.65492 8.93342 3.5 8 3.5C4.89086 3.5 2.07286 5.21886 0 8C0.996343 9.33679 2.16484 10.4282 3.45507 11.2012L0.0937505 14.5625L1.32813 15.7969L5.12836 11.9966C6.04613 12.3251 7.00825 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C14.9683 6.61581 13.7521 5.49476 12.4072 4.71779L15.8125 1.3125ZM9.3408 5.31545C8.93732 5.11358 8.48195 5 8 5C6.34286 5 5 6.34286 5 8C5 8.48195 5.11358 8.93732 5.31545 9.3408L6.50731 8.14894C6.50247 8.09995 6.5 8.05026 6.5 8C6.5 7.17171 7.17171 6.5 8 6.5C8.05026 6.5 8.09995 6.50247 8.14894 6.50731L9.3408 5.31545ZM9.46198 7.66302L10.6083 6.51665C10.8576 6.9541 11 7.46039 11 8C11 9.65714 9.65714 11 8 11C7.46039 11 6.9541 10.8576 6.51665 10.6083L7.66302 9.46198C7.77134 9.48686 7.88414 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.88414 9.48686 7.77134 9.46198 7.66302Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
-
exports.HidePassword = HidePassword;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Payment = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
-
var Payment = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
-
react_1.default.createElement(react_native_svg_1.Path, { d: "M2 1H11C12.1 1 13 1.9 13 3V10C13 11.1 12.1 12 11 12H2C0.9 12 0 11.1 0 10V3C0 1.9 0.9 1 2 1ZM11 3H2V4.5H11V3ZM2 6.5V10H11V6.5H2ZM2 15.19H11.25C13.87 15.19 16 13.06 16 10.44V4.5H14V10.44C14 11.96 12.76 13.19 11.25 13.19H2V15.19Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
-
exports.Payment = Payment;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ShowPassword = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
-
var ShowPassword = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
-
react_1.default.createElement(react_native_svg_1.Path, { d: "M8 3.5C4.89086 3.5 2.07286 5.21886 0 8C2.07286 10.7811 4.89086 12.5 8 12.5C11.1091 12.5 13.9271 10.7811 16 8C13.9271 5.21886 11.1091 3.5 8 3.5ZM8 5C9.65714 5 11 6.34286 11 8C11 9.65714 9.65714 11 8 11C6.34286 11 5 9.65714 5 8C5 6.34286 6.34286 5 8 5ZM8 6.5C7.17171 6.5 6.5 7.17171 6.5 8C6.5 8.82829 7.17171 9.5 8 9.5C8.82829 9.5 9.5 8.82829 9.5 8C9.5 7.17171 8.82829 6.5 8 6.5Z", fill: "currentColor" }))); };
|
|
22
|
-
exports.ShowPassword = ShowPassword;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Usage = void 0;
|
|
18
|
-
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var react_native_svg_1 = require("react-native-svg");
|
|
20
|
-
var Usage = function (props) { return (react_1.default.createElement(react_native_svg_1.Svg, __assign({ viewBox: "0 0 16 16" }, props),
|
|
21
|
-
react_1.default.createElement(react_native_svg_1.Path, { d: "M2 14V0H0V16H16V14H2ZM5 10H3V13H5V10ZM6.33 3H8.33V13H6.33V3ZM11.67 9H9.67V13H11.67V9ZM13 7H15V13H13V7Z", fill: "currentColor", fillRule: "evenodd" }))); };
|
|
22
|
-
exports.Usage = Usage;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Theme } from './theme';
|
|
2
|
-
/**
|
|
3
|
-
* Use 3 level Partial instead of a Recursive Deep Partial, to avoid infinite nested recursion
|
|
4
|
-
* if any of the props contain recursive elements. For example logos / icons
|
|
5
|
-
*/
|
|
6
|
-
declare type ThreeLevelPartial<T> = {
|
|
7
|
-
[P in keyof T]?: TwoLevelPartial<T[P]>;
|
|
8
|
-
};
|
|
9
|
-
declare type TwoLevelPartial<T> = {
|
|
10
|
-
[P in keyof T]?: OneLevelPartial<T[P]>;
|
|
11
|
-
};
|
|
12
|
-
declare type OneLevelPartial<T> = {
|
|
13
|
-
[P in keyof T]?: Partial<T[P]>;
|
|
14
|
-
};
|
|
15
|
-
export declare type RequiredThemeKeys = Pick<
|
|
16
|
-
Theme,
|
|
17
|
-
| 'borderWidths'
|
|
18
|
-
| 'radii'
|
|
19
|
-
| 'breakpoints'
|
|
20
|
-
| 'shadows'
|
|
21
|
-
| 'space'
|
|
22
|
-
| 'fonts'
|
|
23
|
-
| 'lineHeights'
|
|
24
|
-
| 'fontSizes'
|
|
25
|
-
| 'responsiveFontSizes'
|
|
26
|
-
| 'responsiveLineHeights'
|
|
27
|
-
| 'colors'
|
|
28
|
-
>;
|
|
29
|
-
export declare const defaultTokens: RequiredThemeKeys;
|
|
30
|
-
export declare function createTheme<T, A = object>(
|
|
31
|
-
customTheme: ThreeLevelPartial<Theme> & T,
|
|
32
|
-
additional?: ThreeLevelPartial<Theme> & A,
|
|
33
|
-
): Theme & T & A;
|
|
34
|
-
export {};
|