@ovotech/element-native 1.0.0 → 2.0.0-beta.1
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/Accordion/Accordion.d.ts +5 -22
- package/dist/components/Accordion/Accordion.js +99 -65
- package/dist/components/Accordion/Group.d.ts +3 -0
- package/dist/components/Accordion/Group.js +41 -0
- package/dist/components/Accordion/Icon.d.ts +4 -0
- package/dist/components/Accordion/Icon.js +68 -0
- package/dist/components/Accordion/hooks.d.ts +6 -0
- package/dist/components/Accordion/hooks.js +43 -0
- package/dist/components/Accordion/index.d.ts +4 -1
- package/dist/components/Accordion/index.js +5 -2
- package/dist/components/Accordion/styles.d.ts +46 -0
- package/dist/components/Accordion/styles.js +52 -0
- package/dist/components/Accordion/types.d.ts +20 -0
- package/dist/components/Accordion/types.js +2 -0
- package/dist/components/Badge/Badge.d.ts +0 -1
- package/dist/components/Badge/Badge.js +3 -5
- package/dist/components/CTAButton/CTAButton.d.ts +1 -1
- package/dist/components/CTAButton/CTAButton.js +1 -1
- package/dist/components/CTALink/CTALink.js +1 -21
- package/dist/components/Card/Card.js +6 -5
- package/dist/components/Checkbox/Checkbox.js +10 -6
- package/dist/components/DataTable/DataTable.js +40 -42
- package/dist/components/DateField/DateField.js +3 -3
- package/dist/components/Disclosure/Disclosure.js +4 -15
- package/dist/components/ErrorText/ErrorText.js +1 -1
- package/dist/components/Field/Field.js +3 -3
- package/dist/components/FormGroup/FormGroup.js +3 -31
- package/dist/components/Heading/Heading.js +4 -17
- package/dist/components/HintText/HintText.js +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Input/CurrencyInput.d.ts +2 -2
- package/dist/components/Input/EmailInput.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/NumberInput.d.ts +2 -2
- package/dist/components/Input/PasswordInput.d.ts +2 -2
- package/dist/components/Input/TelInput.d.ts +2 -2
- package/dist/components/Input/TextInput.d.ts +2 -2
- package/dist/components/Input/TextareaInput.d.ts +2 -2
- package/dist/components/LabelText/LabelText.js +1 -1
- package/dist/components/List/List.d.ts +3 -1
- package/dist/components/List/List.js +18 -13
- package/dist/components/Margin/Margin.d.ts +1 -1
- package/dist/components/Margin/Margin.js +3 -1
- package/dist/components/NavHeader/NavHeader.d.ts +15 -0
- package/dist/components/NavHeader/NavHeader.js +93 -0
- package/dist/components/NavHeader/index.d.ts +1 -0
- package/dist/components/NavHeader/index.js +5 -0
- package/dist/components/Notification/Notification.d.ts +10 -0
- package/dist/components/Notification/Notification.js +50 -17
- package/dist/components/Radio/Radio.js +10 -6
- package/dist/components/Tabs/Tab.js +2 -2
- package/dist/components/Tabs/TabList.d.ts +1 -1
- package/dist/components/Tabs/TabList.js +2 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +5 -3
- package/dist/components/Text/Text.js +3 -3
- package/dist/components/TextField/CurrencyField.d.ts +2 -2
- package/dist/components/TextField/EmailField.d.ts +2 -2
- package/dist/components/TextField/NumberField.d.ts +2 -2
- package/dist/components/TextField/PasswordField.d.ts +2 -2
- package/dist/components/TextField/TelField.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +2 -2
- package/dist/components/TextField/TextareaField.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/components/Accordion/Accordion.js +98 -65
- package/dist/esm/components/Accordion/Group.js +14 -0
- package/dist/esm/components/Accordion/Icon.js +38 -0
- package/dist/esm/components/Accordion/hooks.js +16 -0
- package/dist/esm/components/Accordion/index.js +3 -1
- package/dist/esm/components/Accordion/styles.js +49 -0
- package/dist/esm/components/Accordion/types.js +1 -0
- package/dist/esm/components/Badge/Badge.js +3 -5
- package/dist/esm/components/CTAButton/CTAButton.js +1 -1
- package/dist/esm/components/CTALink/CTALink.js +1 -21
- package/dist/esm/components/Card/Card.js +6 -5
- package/dist/esm/components/Checkbox/Checkbox.js +10 -6
- package/dist/esm/components/DataTable/DataTable.js +40 -42
- package/dist/esm/components/DateField/DateField.js +3 -3
- package/dist/esm/components/Disclosure/Disclosure.js +4 -15
- package/dist/esm/components/ErrorText/ErrorText.js +1 -1
- package/dist/esm/components/Field/Field.js +3 -3
- package/dist/esm/components/FormGroup/FormGroup.js +3 -8
- package/dist/esm/components/Heading/Heading.js +4 -17
- package/dist/esm/components/HintText/HintText.js +1 -1
- package/dist/esm/components/Icon/Icon.js +1 -1
- package/dist/esm/components/LabelText/LabelText.js +1 -1
- package/dist/esm/components/List/List.js +18 -13
- package/dist/esm/components/Margin/Margin.js +3 -1
- package/dist/esm/components/NavHeader/NavHeader.js +63 -0
- package/dist/esm/components/NavHeader/index.js +1 -0
- package/dist/esm/components/Notification/Notification.js +49 -16
- package/dist/esm/components/Radio/Radio.js +10 -6
- package/dist/esm/components/Tabs/Tab.js +2 -2
- package/dist/esm/components/Tabs/TabList.js +2 -1
- package/dist/esm/components/Tabs/Tabs.js +5 -3
- package/dist/esm/components/Text/Text.js +3 -3
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/providers/IconsProvider.js +28 -9
- package/dist/esm/providers/icons/ArrowDown.js +15 -0
- package/dist/esm/providers/icons/ArrowLeft.js +15 -0
- package/dist/esm/providers/icons/ArrowRight.js +15 -0
- package/dist/esm/providers/icons/ArrowUp.js +15 -0
- package/dist/esm/providers/icons/CaretDown.js +1 -1
- package/dist/esm/providers/icons/CaretLeft.js +15 -0
- package/dist/esm/providers/icons/CaretRight.js +1 -1
- package/dist/esm/providers/icons/CaretUp.js +15 -0
- package/dist/esm/providers/icons/Chart.js +15 -0
- package/dist/esm/providers/icons/Check.js +2 -2
- package/dist/esm/providers/icons/ChevronDown.js +2 -2
- package/dist/esm/providers/icons/ChevronLeft.js +1 -1
- package/dist/esm/providers/icons/ChevronLeftSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +15 -0
- package/dist/esm/providers/icons/ChevronRight.js +1 -1
- package/dist/esm/providers/icons/ChevronRightSmall.js +15 -0
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +15 -0
- package/dist/esm/providers/icons/ChevronUp.js +2 -2
- package/dist/esm/providers/icons/Cross.js +1 -1
- package/dist/esm/providers/icons/Dollar.js +2 -3
- package/dist/esm/providers/icons/Download.js +1 -1
- package/dist/esm/providers/icons/Electricity.js +1 -1
- package/dist/esm/providers/icons/Euro.js +2 -3
- package/dist/esm/providers/icons/Gas.js +2 -2
- package/dist/esm/providers/icons/Help.js +15 -0
- package/dist/esm/providers/icons/Hide.js +15 -0
- package/dist/esm/providers/icons/HidePassword.js +15 -0
- package/dist/esm/providers/icons/Home.js +15 -0
- package/dist/esm/providers/icons/Info.js +15 -0
- package/dist/esm/providers/icons/Link.js +2 -2
- package/dist/esm/providers/icons/Minus.js +1 -1
- package/dist/esm/providers/icons/NewWindow.js +1 -2
- package/dist/esm/providers/icons/Payment.js +15 -0
- package/dist/esm/providers/icons/PaymentCard.js +15 -0
- package/dist/esm/providers/icons/Plus.js +1 -1
- package/dist/esm/providers/icons/Pound.js +2 -3
- package/dist/esm/providers/icons/Search.js +15 -0
- package/dist/esm/providers/icons/Show.js +15 -0
- package/dist/esm/providers/icons/ShowPassword.js +15 -0
- package/dist/esm/providers/icons/Usage.js +15 -0
- package/dist/esm/providers/icons/User.js +15 -0
- package/dist/esm/providers/icons/index.js +21 -2
- package/dist/esm/theme/create-theme.js +139 -118
- package/dist/providers/IconsProvider.js +27 -8
- package/dist/providers/icons/ArrowDown.d.ts +2 -0
- package/dist/providers/icons/ArrowDown.js +22 -0
- package/dist/providers/icons/ArrowLeft.d.ts +2 -0
- package/dist/providers/icons/ArrowLeft.js +22 -0
- package/dist/providers/icons/ArrowRight.d.ts +2 -0
- package/dist/providers/icons/ArrowRight.js +22 -0
- package/dist/providers/icons/ArrowUp.d.ts +2 -0
- package/dist/providers/icons/ArrowUp.js +22 -0
- package/dist/providers/icons/CaretDown.js +1 -1
- package/dist/providers/icons/CaretLeft.d.ts +2 -0
- package/dist/providers/icons/CaretLeft.js +22 -0
- package/dist/providers/icons/CaretRight.js +1 -1
- package/dist/providers/icons/CaretUp.d.ts +2 -0
- package/dist/providers/icons/CaretUp.js +22 -0
- package/dist/providers/icons/Chart.d.ts +2 -0
- package/dist/providers/icons/Chart.js +22 -0
- package/dist/providers/icons/Check.js +2 -2
- package/dist/providers/icons/ChevronDown.js +2 -2
- package/dist/providers/icons/ChevronLeft.js +1 -1
- package/dist/providers/icons/ChevronLeftSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmall.js +22 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.d.ts +2 -0
- package/dist/providers/icons/ChevronLeftSmallFirst.js +22 -0
- package/dist/providers/icons/ChevronRight.js +1 -1
- package/dist/providers/icons/ChevronRightSmall.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmall.js +22 -0
- package/dist/providers/icons/ChevronRightSmallLast.d.ts +2 -0
- package/dist/providers/icons/ChevronRightSmallLast.js +22 -0
- package/dist/providers/icons/ChevronUp.js +2 -2
- package/dist/providers/icons/Cross.js +1 -1
- package/dist/providers/icons/Dollar.d.ts +1 -2
- package/dist/providers/icons/Dollar.js +1 -1
- package/dist/providers/icons/Download.js +1 -1
- package/dist/providers/icons/Electricity.js +1 -1
- package/dist/providers/icons/Euro.d.ts +1 -2
- package/dist/providers/icons/Euro.js +1 -1
- package/dist/providers/icons/Gas.js +2 -2
- package/dist/providers/icons/Help.d.ts +2 -0
- package/dist/providers/icons/Help.js +22 -0
- package/dist/providers/icons/Hide.d.ts +2 -0
- package/dist/providers/icons/Hide.js +22 -0
- package/dist/providers/icons/HidePassword.d.ts +2 -0
- package/dist/providers/icons/HidePassword.js +22 -0
- package/dist/providers/icons/Home.d.ts +2 -0
- package/dist/providers/icons/Home.js +22 -0
- package/dist/providers/icons/Info.d.ts +2 -0
- package/dist/providers/icons/Info.js +22 -0
- package/dist/providers/icons/Link.js +2 -2
- package/dist/providers/icons/Minus.js +1 -1
- package/dist/providers/icons/NewWindow.js +1 -2
- package/dist/providers/icons/Payment.d.ts +2 -0
- package/dist/providers/icons/Payment.js +22 -0
- package/dist/providers/icons/PaymentCard.d.ts +2 -0
- package/dist/providers/icons/PaymentCard.js +22 -0
- package/dist/providers/icons/Plus.js +1 -1
- package/dist/providers/icons/Pound.d.ts +1 -2
- package/dist/providers/icons/Pound.js +1 -1
- package/dist/providers/icons/Search.d.ts +2 -0
- package/dist/providers/icons/Search.js +22 -0
- package/dist/providers/icons/Show.d.ts +2 -0
- package/dist/providers/icons/Show.js +22 -0
- package/dist/providers/icons/ShowPassword.d.ts +2 -0
- package/dist/providers/icons/ShowPassword.js +22 -0
- package/dist/providers/icons/Usage.d.ts +2 -0
- package/dist/providers/icons/Usage.js +22 -0
- package/dist/providers/icons/User.d.ts +2 -0
- package/dist/providers/icons/User.js +22 -0
- package/dist/providers/icons/index.d.ts +21 -2
- package/dist/providers/icons/index.js +21 -2
- package/dist/providers/types.d.ts +1 -1
- package/dist/theme/create-theme.d.ts +1 -1
- package/dist/theme/create-theme.js +139 -118
- package/dist/theme/theme.d.ts +33 -25
- package/package.json +18 -15
package/dist/theme/theme.d.ts
CHANGED
|
@@ -9,34 +9,35 @@ declare type Shadow = {
|
|
|
9
9
|
radius: string;
|
|
10
10
|
elevation: number;
|
|
11
11
|
};
|
|
12
|
+
declare type FontNames = 'body' | 'small' | 'label' | 'level1' | 'level2' | 'level3' | 'level4' | 'lead';
|
|
12
13
|
export declare type Theme = {
|
|
13
14
|
space: Record<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12, string>;
|
|
14
|
-
colors: Record<'primary' | 'primaryAlt' | 'primaryContrast' | 'primaryMuted' | 'error' | 'errorAlt' | 'errorContrast' | 'errorMuted' | 'info' | 'infoAlt' | 'infoContrast' | 'infoMuted' | 'warning' | 'warningAlt' | 'warningContrast' | 'warningMuted' | 'success' | 'successAlt' | 'successContrast' | 'successMuted' | 'focus' | 'body' | 'heading' | 'border' | 'borderMuted' | 'canvas' | 'canvasMuted' | 'mission' | 'missionMuted' | 'missionAlt' | 'missionContrast', string> & {
|
|
15
|
+
colors: Record<'primary' | 'primaryAlt' | 'primaryContrast' | 'primaryMuted' | 'error' | 'errorAlt' | 'errorContrast' | 'errorMuted' | 'info' | 'infoAlt' | 'infoContrast' | 'infoMuted' | 'warning' | 'warningAlt' | 'warningContrast' | 'warningMuted' | 'success' | 'successAlt' | 'successContrast' | 'successMuted' | 'focus' | 'focusMuted' | 'body' | 'heading' | 'border' | 'borderMuted' | 'canvas' | 'canvasMuted' | 'mission' | 'missionMuted' | 'missionAlt' | 'missionContrast', string> & {
|
|
15
16
|
brand: Record<string, Record<string, string>>;
|
|
16
17
|
};
|
|
17
|
-
fonts: Record<'
|
|
18
|
+
fonts: Record<'body' | 'bold' | 'heading', string>;
|
|
18
19
|
lineHeights: Record<'standard', number>;
|
|
19
20
|
fontSizes: string[];
|
|
20
|
-
responsiveFontSizes: Record<
|
|
21
|
+
responsiveFontSizes: Record<FontNames, string[]>;
|
|
22
|
+
responsiveLineHeights: Record<FontNames, string[]>;
|
|
21
23
|
breakpoints: Record<'small' | 'medium' | 'large', number>;
|
|
22
|
-
radii: Record<'
|
|
24
|
+
radii: Record<'small' | 'medium' | 'large', string>;
|
|
23
25
|
shadows: Record<'standard', Shadow>;
|
|
24
26
|
borderWidths: Record<'standard' | 'heavy' | 'heavier', string>;
|
|
25
|
-
fontWeights: Record<'normal' | 'bold' | 'semiBold', number>;
|
|
27
|
+
fontWeights: Record<'normal' | 'bold' | 'semiBold' | 'heading', number>;
|
|
26
28
|
badge: {
|
|
27
29
|
fontWeight: number;
|
|
30
|
+
fontFamily: string;
|
|
28
31
|
lineHeight: number;
|
|
29
|
-
paddingVertical: string;
|
|
30
32
|
paddingHorizontal: string;
|
|
31
33
|
borderRadius: string;
|
|
32
|
-
borderWidth: string;
|
|
33
34
|
fontSize: string[];
|
|
34
35
|
variants: Record<BadgeVariantName, BadgeVariant>;
|
|
35
36
|
};
|
|
36
37
|
cta: {
|
|
37
38
|
fontSize: string[];
|
|
38
39
|
fontWeight: number;
|
|
39
|
-
|
|
40
|
+
fontFamily: string;
|
|
40
41
|
lineHeight: number;
|
|
41
42
|
paddingVertical: string;
|
|
42
43
|
paddingHorizontal: string;
|
|
@@ -48,19 +49,22 @@ export declare type Theme = {
|
|
|
48
49
|
};
|
|
49
50
|
text: {
|
|
50
51
|
fontFamily: string;
|
|
51
|
-
lineHeight: number;
|
|
52
52
|
fontWeight: number;
|
|
53
|
+
lineHeight: number;
|
|
53
54
|
color: string;
|
|
54
55
|
p: {
|
|
55
56
|
fontSize: string[];
|
|
57
|
+
lineHeight: string[];
|
|
56
58
|
marginTop: string[];
|
|
57
59
|
marginBottom: string[];
|
|
58
60
|
};
|
|
59
61
|
small: {
|
|
60
62
|
fontSize: string[];
|
|
63
|
+
lineHeight: string[];
|
|
61
64
|
};
|
|
62
65
|
strong: {
|
|
63
66
|
fontWeight: number;
|
|
67
|
+
fontFamily: string;
|
|
64
68
|
};
|
|
65
69
|
};
|
|
66
70
|
list: {
|
|
@@ -75,6 +79,7 @@ export declare type Theme = {
|
|
|
75
79
|
};
|
|
76
80
|
descriptionTerm: {
|
|
77
81
|
fontWeight: number | string;
|
|
82
|
+
fontFamily: string;
|
|
78
83
|
color: string;
|
|
79
84
|
marginTop: string[];
|
|
80
85
|
marginBottom: string[];
|
|
@@ -86,29 +91,32 @@ export declare type Theme = {
|
|
|
86
91
|
};
|
|
87
92
|
heading: {
|
|
88
93
|
fontFamily: string;
|
|
89
|
-
lineHeight: number;
|
|
90
94
|
fontWeight: number;
|
|
91
95
|
color: string;
|
|
92
96
|
heading1: {
|
|
93
97
|
fontSize: string[];
|
|
98
|
+
lineHeight: string[];
|
|
94
99
|
marginTop: string[];
|
|
95
100
|
marginBottom: string[];
|
|
96
101
|
fontWeight?: number;
|
|
97
102
|
};
|
|
98
103
|
heading2: {
|
|
99
104
|
fontSize: string[];
|
|
105
|
+
lineHeight: string[];
|
|
100
106
|
marginTop: string[];
|
|
101
107
|
marginBottom: string[];
|
|
102
108
|
fontWeight?: number;
|
|
103
109
|
};
|
|
104
110
|
heading3: {
|
|
105
111
|
fontSize: string[];
|
|
112
|
+
lineHeight: string[];
|
|
106
113
|
marginTop: string[];
|
|
107
114
|
marginBottom: string[];
|
|
108
115
|
fontWeight?: number;
|
|
109
116
|
};
|
|
110
117
|
heading4: {
|
|
111
118
|
fontSize: string[];
|
|
119
|
+
lineHeight: string[];
|
|
112
120
|
marginTop: string[];
|
|
113
121
|
marginBottom: string[];
|
|
114
122
|
fontWeight?: number;
|
|
@@ -119,7 +127,8 @@ export declare type Theme = {
|
|
|
119
127
|
borderWidth: string;
|
|
120
128
|
borderColor: string;
|
|
121
129
|
background: string;
|
|
122
|
-
|
|
130
|
+
paddingX: string[];
|
|
131
|
+
paddingY: string[];
|
|
123
132
|
variants: Record<NotificationVariantName, NotificationVariant>;
|
|
124
133
|
dismiss: {
|
|
125
134
|
icon: IconName;
|
|
@@ -138,6 +147,7 @@ export declare type Theme = {
|
|
|
138
147
|
borderColor: string;
|
|
139
148
|
background: string;
|
|
140
149
|
dotColor: string;
|
|
150
|
+
checkedBackground: string;
|
|
141
151
|
errorColor: string;
|
|
142
152
|
};
|
|
143
153
|
checkbox: {
|
|
@@ -150,6 +160,7 @@ export declare type Theme = {
|
|
|
150
160
|
borderColor: string;
|
|
151
161
|
borderRadius: string;
|
|
152
162
|
background: string;
|
|
163
|
+
checkedBackground: string;
|
|
153
164
|
checkColor: string;
|
|
154
165
|
errorColor: string;
|
|
155
166
|
};
|
|
@@ -186,6 +197,7 @@ export declare type Theme = {
|
|
|
186
197
|
gap: string;
|
|
187
198
|
error: {
|
|
188
199
|
fontWeight: number;
|
|
200
|
+
fontFamily: string;
|
|
189
201
|
color: string;
|
|
190
202
|
};
|
|
191
203
|
hint: {
|
|
@@ -194,6 +206,7 @@ export declare type Theme = {
|
|
|
194
206
|
};
|
|
195
207
|
label: {
|
|
196
208
|
fontWeight: number;
|
|
209
|
+
fontFamily: string;
|
|
197
210
|
color: string;
|
|
198
211
|
};
|
|
199
212
|
subLabel: {
|
|
@@ -212,18 +225,11 @@ export declare type Theme = {
|
|
|
212
225
|
background: string;
|
|
213
226
|
borderWidth: string;
|
|
214
227
|
borderColor: string;
|
|
215
|
-
borderRadius: string;
|
|
216
|
-
shadow: Shadow;
|
|
217
228
|
padding: string[];
|
|
218
229
|
};
|
|
219
230
|
disclosure: {
|
|
220
231
|
iconGap: string[];
|
|
221
232
|
panelGap: string[];
|
|
222
|
-
lineIndent: {
|
|
223
|
-
borderRadius: string;
|
|
224
|
-
width: string;
|
|
225
|
-
backgroundColor: string;
|
|
226
|
-
};
|
|
227
233
|
};
|
|
228
234
|
grid: {
|
|
229
235
|
maxWidth: string;
|
|
@@ -233,25 +239,25 @@ export declare type Theme = {
|
|
|
233
239
|
borderWidth: string;
|
|
234
240
|
borderRadius: string;
|
|
235
241
|
borderColor: string;
|
|
242
|
+
responsivePadding: {
|
|
243
|
+
vertical: [string, string];
|
|
244
|
+
horizontal: [string, string];
|
|
245
|
+
};
|
|
236
246
|
tableHeader: {
|
|
237
247
|
color: string;
|
|
238
248
|
backgroundColor: string;
|
|
239
249
|
borderWidth: string;
|
|
240
250
|
borderColor: string;
|
|
241
251
|
fontWeight: number;
|
|
252
|
+
fontFamily: string;
|
|
242
253
|
};
|
|
243
254
|
tableCaption: {
|
|
244
255
|
color: string;
|
|
245
256
|
fontWeight: number;
|
|
246
|
-
|
|
247
|
-
paddingHorizontal: string;
|
|
257
|
+
fontFamily: string;
|
|
248
258
|
};
|
|
249
259
|
tableCell: {
|
|
250
260
|
color: string;
|
|
251
|
-
borderWidth: string;
|
|
252
|
-
borderColor: string;
|
|
253
|
-
paddingVertical: string;
|
|
254
|
-
paddingHorizontal: string;
|
|
255
261
|
};
|
|
256
262
|
tableRow: {
|
|
257
263
|
backgroundColor: string;
|
|
@@ -273,12 +279,14 @@ export declare type Theme = {
|
|
|
273
279
|
fontFamily: string;
|
|
274
280
|
lineHeight: number;
|
|
275
281
|
borderTopWidth: string;
|
|
282
|
+
borderBottomWidth: string;
|
|
283
|
+
borderColor: string;
|
|
276
284
|
paddingVertical: string[];
|
|
277
285
|
paddingHorizontal: string[];
|
|
278
286
|
active: {
|
|
279
287
|
backgroundColor: string;
|
|
280
288
|
foregroundColor: string;
|
|
281
|
-
|
|
289
|
+
borderColor: string;
|
|
282
290
|
};
|
|
283
291
|
inactive: {
|
|
284
292
|
backgroundColor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,46 +13,49 @@
|
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@babel/core": "^7.
|
|
16
|
+
"@babel/core": "^7.11.5",
|
|
17
17
|
"@storybook/react-native": "^5.3.25",
|
|
18
|
-
"@testing-library/dom": "^
|
|
19
|
-
"@testing-library/react": "^
|
|
20
|
-
"@testing-library/react-native": "^
|
|
21
|
-
"@testing-library/user-event": "^
|
|
18
|
+
"@testing-library/dom": "^8.20.0",
|
|
19
|
+
"@testing-library/react": "^13.4.0",
|
|
20
|
+
"@testing-library/react-native": "^11.5.2",
|
|
21
|
+
"@testing-library/user-event": "^14.4.3",
|
|
22
22
|
"@types/jest": "^25.1.4",
|
|
23
23
|
"@types/react": "18.0.24",
|
|
24
24
|
"@types/react-native": "^0.70.6",
|
|
25
25
|
"@types/react-router-dom": "^5.1.5",
|
|
26
26
|
"@types/styled-components": "^5.1.3",
|
|
27
27
|
"@types/styled-components-react-native": "^5.1.1",
|
|
28
|
-
"babel-jest": "^
|
|
28
|
+
"babel-jest": "^28.1.1",
|
|
29
29
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
30
|
-
"jest": "^
|
|
30
|
+
"jest": "^28.1.1",
|
|
31
31
|
"jest-styled-components": "^7.0.3",
|
|
32
|
-
"metro-react-native-babel-preset": "^0.
|
|
32
|
+
"metro-react-native-babel-preset": "^0.75.0",
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-is": "^16.13.0",
|
|
35
35
|
"react-native": "0.70.4",
|
|
36
|
+
"react-native-reanimated": "^2.10.0",
|
|
36
37
|
"react-native-svg": "9.2.4",
|
|
37
38
|
"react-router-dom": "^5.1.2",
|
|
38
|
-
"react-test-renderer": "
|
|
39
|
+
"react-test-renderer": "^18.2.0",
|
|
39
40
|
"styled-components": "^5.1.3",
|
|
40
|
-
"ts-jest": "^
|
|
41
|
+
"ts-jest": "^28.0.5",
|
|
41
42
|
"ts-loader": "^6.2.1",
|
|
42
43
|
"typescript": "^4.8.4"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"react": "^16.9.0 || ^17.0.0",
|
|
46
47
|
"react-native": "^0.63.3",
|
|
47
|
-
"react-native-
|
|
48
|
+
"react-native-reanimated": "^2.10.0",
|
|
49
|
+
"react-native-svg": "^13.5.0",
|
|
48
50
|
"styled-components": "^5.1.3"
|
|
49
51
|
},
|
|
50
52
|
"dependencies": {
|
|
51
|
-
"deepmerge": "^4.2.2"
|
|
52
|
-
"react-uid": "^2.3.0"
|
|
53
|
+
"deepmerge": "^4.2.2"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"build": "tsc && tsc --module ES6 --outDir dist/esm --declaration false",
|
|
56
|
-
"
|
|
57
|
+
"quickbuild": "tsc --module ES6 --outDir dist/esm --declaration false",
|
|
58
|
+
"test": "jest --maxWorkers 4",
|
|
59
|
+
"typecheck": "tsc --noEmit"
|
|
57
60
|
}
|
|
58
61
|
}
|