@ovotech/element-native 2.1.0 → 2.2.0-canary-ea79e4d-74
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.js +20 -19
- package/dist/components/Accordion/Icon.js +7 -10
- package/dist/components/Accordion/styles.d.ts +688 -46
- package/dist/components/Accordion/styles.js +56 -49
- package/dist/components/Badge/Badge.d.ts +237 -8
- package/dist/components/Badge/Badge.js +35 -16
- package/dist/components/CTAButton/CTAButton.d.ts +7 -12
- package/dist/components/CTAButton/CTAButton.js +18 -19
- package/dist/components/CTALink/CTALink.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +228 -5
- package/dist/components/Card/Card.js +5 -25
- package/dist/components/Checkbox/Checkbox.js +14 -19
- package/dist/components/DataTable/DataTable.d.ts +3 -12
- package/dist/components/DataTable/DataTable.js +8 -71
- package/dist/components/DataTable/TableRow.d.ts +2 -0
- package/dist/components/DataTable/TableRow.js +33 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +16 -0
- package/dist/components/DataTable/styles.d.ts +2517 -0
- package/dist/components/DataTable/styles.js +77 -0
- package/dist/components/DataTable/types.d.ts +15 -0
- package/dist/components/DataTable/types.js +2 -0
- package/dist/components/DateField/DateField.js +9 -9
- package/dist/components/DescriptionList/DescriptionList.d.ts +10 -0
- package/dist/components/DescriptionList/DescriptionList.js +66 -0
- package/dist/components/DescriptionList/index.d.ts +1 -0
- package/dist/components/DescriptionList/index.js +6 -0
- package/dist/components/DescriptionList/styled.d.ts +241 -0
- package/dist/components/DescriptionList/styled.js +88 -0
- package/dist/components/Disclosure/Disclosure.js +7 -10
- package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
- package/dist/components/ErrorText/ErrorText.d.ts +228 -1
- package/dist/components/ErrorText/ErrorText.js +1 -1
- package/dist/components/Field/Field.js +3 -3
- package/dist/components/Grid/Col.d.ts +228 -1
- package/dist/components/Grid/Row.d.ts +228 -1
- package/dist/components/Heading/Heading.js +8 -24
- package/dist/components/HintText/HintText.d.ts +228 -1
- package/dist/components/HintText/HintText.js +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -3
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +13 -16
- package/dist/components/Input/PasswordInput.styled.d.ts +228 -1
- package/dist/components/Input/PasswordInput.styled.js +2 -5
- package/dist/components/Input/PasswordVisibilityToggle.js +2 -5
- package/dist/components/Input/{TelInput.d.ts → PhoneInput.d.ts} +2 -2
- package/dist/components/Input/{TelInput.js → PhoneInput.js} +3 -3
- package/dist/components/Input/TextareaInput.js +11 -9
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/LabelText/LabelText.d.ts +228 -1
- package/dist/components/LabelText/LabelText.js +1 -1
- package/dist/components/List/List.d.ts +706 -3
- package/dist/components/List/List.js +18 -5
- package/dist/components/Margin/Margin.d.ts +228 -1
- package/dist/components/NavHeader/NavHeader.js +4 -4
- package/dist/components/Notification/Notification.d.ts +466 -20
- package/dist/components/Notification/Notification.js +32 -44
- package/dist/components/Radio/Radio.js +13 -29
- package/dist/components/SelectField/Select.d.ts +244 -0
- package/dist/components/SelectField/Select.js +101 -0
- package/dist/components/SelectField/SelectField.d.ts +7 -0
- package/dist/components/SelectField/SelectField.js +38 -0
- package/dist/components/SelectField/index.d.ts +1 -0
- package/dist/components/SelectField/index.js +5 -0
- package/dist/components/SkeletonLoading/Skeleton.d.ts +228 -1
- package/dist/components/SubLabelText/SubLabelText.d.ts +228 -1
- package/dist/components/SubLabelText/SubLabelText.js +1 -1
- package/dist/components/SummaryList/SummaryList.d.ts +4 -0
- package/dist/components/SummaryList/SummaryList.js +5 -0
- package/dist/components/Tabs/Tab.js +22 -19
- package/dist/components/Tabs/TabList.d.ts +11 -1
- package/dist/components/Tabs/TabList.js +19 -16
- package/dist/components/Tabs/TabPanel.js +32 -6
- package/dist/components/Tabs/Tabs.d.ts +8 -6
- package/dist/components/Tabs/Tabs.js +10 -6
- package/dist/components/Text/Text.d.ts +1140 -5
- package/dist/components/Text/Text.js +6 -10
- package/dist/components/TextField/PhoneField.d.ts +10 -0
- package/dist/components/TextField/PhoneField.js +56 -0
- package/dist/components/TextField/TelField.d.ts +4 -0
- package/dist/components/TextField/TelField.js +7 -2
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextField/index.js +3 -1
- package/dist/components/TextLink/TextLink.js +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/esm/components/Accordion/Accordion.js +23 -22
- package/dist/esm/components/Accordion/Icon.js +8 -8
- package/dist/esm/components/Accordion/styles.js +29 -48
- package/dist/esm/components/Badge/Badge.js +35 -16
- package/dist/esm/components/CTAButton/CTAButton.js +20 -21
- package/dist/esm/components/Card/Card.js +5 -25
- package/dist/esm/components/Checkbox/Checkbox.js +12 -20
- package/dist/esm/components/DataTable/DataTable.js +3 -66
- package/dist/esm/components/DataTable/TableRow.js +26 -0
- package/dist/esm/components/DataTable/index.js +2 -0
- package/dist/esm/components/DataTable/styles.js +51 -0
- package/dist/esm/components/DataTable/types.js +1 -0
- package/dist/esm/components/DateField/DateField.js +9 -9
- package/dist/esm/components/DescriptionList/DescriptionList.js +39 -0
- package/dist/esm/components/DescriptionList/index.js +1 -0
- package/dist/esm/components/DescriptionList/styled.js +57 -0
- package/dist/esm/components/Disclosure/Disclosure.js +9 -12
- package/dist/esm/components/ErrorText/ErrorText.js +1 -1
- package/dist/esm/components/Field/Field.js +3 -3
- package/dist/esm/components/Heading/Heading.js +8 -24
- package/dist/esm/components/HintText/HintText.js +1 -1
- package/dist/esm/components/Icon/Icon.js +2 -2
- package/dist/esm/components/Input/Input.js +15 -18
- package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
- package/dist/esm/components/Input/PasswordVisibilityToggle.js +3 -6
- package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +2 -2
- package/dist/esm/components/Input/TextareaInput.js +11 -9
- package/dist/esm/components/Input/index.js +1 -1
- package/dist/esm/components/LabelText/LabelText.js +1 -1
- package/dist/esm/components/List/List.js +17 -5
- package/dist/esm/components/NavHeader/NavHeader.js +4 -4
- package/dist/esm/components/Notification/Notification.js +34 -46
- package/dist/esm/components/Radio/Radio.js +13 -29
- package/dist/esm/components/SelectField/Select.js +74 -0
- package/dist/esm/components/SelectField/SelectField.js +31 -0
- package/dist/esm/components/SelectField/index.js +1 -0
- package/dist/esm/components/SubLabelText/SubLabelText.js +1 -1
- package/dist/esm/components/SummaryList/SummaryList.js +5 -0
- package/dist/esm/components/Tabs/Tab.js +22 -16
- package/dist/esm/components/Tabs/TabList.js +18 -16
- package/dist/esm/components/Tabs/TabPanel.js +9 -6
- package/dist/esm/components/Tabs/Tabs.js +9 -6
- package/dist/esm/components/Text/Text.js +6 -10
- package/dist/esm/components/TextField/PhoneField.js +30 -0
- package/dist/esm/components/TextField/TelField.js +7 -2
- package/dist/esm/components/TextField/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +2 -2
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/providers/icons/Logo.js +6 -3
- package/dist/esm/theme/create-theme.js +2 -176
- package/dist/esm/theme/index.js +13 -2
- package/dist/providers/icons/Logo.js +5 -2
- package/dist/styled.native.d.ts +1363 -1
- package/dist/theme/create-theme.d.ts +1 -1
- package/dist/theme/create-theme.js +2 -176
- package/dist/theme/index.d.ts +228 -2
- package/dist/theme/index.js +13 -2
- package/dist/theme/theme.d.ts +1 -110
- package/package.json +9 -6
package/dist/theme/theme.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { BadgeVariantName, BadgeVariant } from '../components/Badge/Badge';
|
|
2
|
-
import { CTAVariantName, CTAVariant } from '../components/CTAButton/CTAButton';
|
|
3
|
-
import { NotificationVariant, NotificationVariantName } from '../components/Notification/Notification';
|
|
4
|
-
import { IconName } from '../providers';
|
|
5
1
|
declare type Shadow = {
|
|
6
2
|
color: string;
|
|
7
3
|
offset: string;
|
|
@@ -24,32 +20,8 @@ export declare type Theme = {
|
|
|
24
20
|
radii: Record<'small' | 'medium' | 'large', string>;
|
|
25
21
|
shadows: Record<'standard', Shadow>;
|
|
26
22
|
borderWidths: Record<'standard' | 'heavy' | 'heavier', string>;
|
|
27
|
-
fontWeights: Record<'normal' | 'bold' | 'semiBold' | 'heading', number>;
|
|
28
|
-
badge: {
|
|
29
|
-
fontWeight: number;
|
|
30
|
-
fontFamily: string;
|
|
31
|
-
lineHeight: number;
|
|
32
|
-
paddingHorizontal: string;
|
|
33
|
-
borderRadius: string;
|
|
34
|
-
fontSize: string[];
|
|
35
|
-
variants: Record<BadgeVariantName, BadgeVariant>;
|
|
36
|
-
};
|
|
37
|
-
cta: {
|
|
38
|
-
fontSize: string[];
|
|
39
|
-
fontWeight: number;
|
|
40
|
-
fontFamily: string;
|
|
41
|
-
lineHeight: number;
|
|
42
|
-
paddingVertical: string;
|
|
43
|
-
paddingHorizontal: string;
|
|
44
|
-
borderRadius: number | string;
|
|
45
|
-
borderWidth: string;
|
|
46
|
-
iconGap: string;
|
|
47
|
-
minHeight: string;
|
|
48
|
-
variants: Record<CTAVariantName, CTAVariant>;
|
|
49
|
-
};
|
|
50
23
|
text: {
|
|
51
24
|
fontFamily: string;
|
|
52
|
-
fontWeight: number;
|
|
53
25
|
lineHeight: number;
|
|
54
26
|
color: string;
|
|
55
27
|
p: {
|
|
@@ -63,7 +35,6 @@ export declare type Theme = {
|
|
|
63
35
|
lineHeight: string[];
|
|
64
36
|
};
|
|
65
37
|
strong: {
|
|
66
|
-
fontWeight: number;
|
|
67
38
|
fontFamily: string;
|
|
68
39
|
};
|
|
69
40
|
};
|
|
@@ -79,7 +50,6 @@ export declare type Theme = {
|
|
|
79
50
|
bulletWidth: string;
|
|
80
51
|
};
|
|
81
52
|
descriptionTerm: {
|
|
82
|
-
fontWeight: number | string;
|
|
83
53
|
fontFamily: string;
|
|
84
54
|
color: string;
|
|
85
55
|
marginTop: string[];
|
|
@@ -87,55 +57,35 @@ export declare type Theme = {
|
|
|
87
57
|
};
|
|
88
58
|
};
|
|
89
59
|
textLink: {
|
|
60
|
+
fontFamily: string;
|
|
90
61
|
color: string;
|
|
91
|
-
fontWeight: number;
|
|
92
62
|
};
|
|
93
63
|
heading: {
|
|
94
64
|
fontFamily: string;
|
|
95
|
-
fontWeight: number;
|
|
96
65
|
color: string;
|
|
97
66
|
heading1: {
|
|
98
67
|
fontSize: string[];
|
|
99
68
|
lineHeight: string[];
|
|
100
69
|
marginTop: string[];
|
|
101
70
|
marginBottom: string[];
|
|
102
|
-
fontWeight?: number;
|
|
103
71
|
};
|
|
104
72
|
heading2: {
|
|
105
73
|
fontSize: string[];
|
|
106
74
|
lineHeight: string[];
|
|
107
75
|
marginTop: string[];
|
|
108
76
|
marginBottom: string[];
|
|
109
|
-
fontWeight?: number;
|
|
110
77
|
};
|
|
111
78
|
heading3: {
|
|
112
79
|
fontSize: string[];
|
|
113
80
|
lineHeight: string[];
|
|
114
81
|
marginTop: string[];
|
|
115
82
|
marginBottom: string[];
|
|
116
|
-
fontWeight?: number;
|
|
117
83
|
};
|
|
118
84
|
heading4: {
|
|
119
85
|
fontSize: string[];
|
|
120
86
|
lineHeight: string[];
|
|
121
87
|
marginTop: string[];
|
|
122
88
|
marginBottom: string[];
|
|
123
|
-
fontWeight?: number;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
notification: {
|
|
127
|
-
borderRadius: string;
|
|
128
|
-
borderWidth: string;
|
|
129
|
-
borderColor: string;
|
|
130
|
-
background: string;
|
|
131
|
-
paddingX: string[];
|
|
132
|
-
paddingY: string[];
|
|
133
|
-
variants: Record<NotificationVariantName, NotificationVariant>;
|
|
134
|
-
dismiss: {
|
|
135
|
-
icon: IconName;
|
|
136
|
-
size: string;
|
|
137
|
-
color: string;
|
|
138
|
-
touchSize: string;
|
|
139
89
|
};
|
|
140
90
|
};
|
|
141
91
|
radio: {
|
|
@@ -170,7 +120,6 @@ export declare type Theme = {
|
|
|
170
120
|
fontSize: string[];
|
|
171
121
|
color: string;
|
|
172
122
|
lineHeight: number;
|
|
173
|
-
fontWeight: number;
|
|
174
123
|
height: string;
|
|
175
124
|
borderColor: string;
|
|
176
125
|
borderWidth: string;
|
|
@@ -197,21 +146,17 @@ export declare type Theme = {
|
|
|
197
146
|
dateWidth: string;
|
|
198
147
|
gap: string;
|
|
199
148
|
error: {
|
|
200
|
-
fontWeight: number;
|
|
201
149
|
fontFamily: string;
|
|
202
150
|
color: string;
|
|
203
151
|
};
|
|
204
152
|
hint: {
|
|
205
|
-
fontWeight: number;
|
|
206
153
|
color: string;
|
|
207
154
|
};
|
|
208
155
|
label: {
|
|
209
|
-
fontWeight: number;
|
|
210
156
|
fontFamily: string;
|
|
211
157
|
color: string;
|
|
212
158
|
};
|
|
213
159
|
subLabel: {
|
|
214
|
-
fontWeight: number;
|
|
215
160
|
color: string;
|
|
216
161
|
};
|
|
217
162
|
legend: {
|
|
@@ -236,35 +181,6 @@ export declare type Theme = {
|
|
|
236
181
|
maxWidth: string;
|
|
237
182
|
gutter: string[];
|
|
238
183
|
};
|
|
239
|
-
dataTable: {
|
|
240
|
-
borderWidth: string;
|
|
241
|
-
borderRadius: string;
|
|
242
|
-
borderColor: string;
|
|
243
|
-
responsivePadding: {
|
|
244
|
-
vertical: [string, string];
|
|
245
|
-
horizontal: [string, string];
|
|
246
|
-
};
|
|
247
|
-
tableHeader: {
|
|
248
|
-
color: string;
|
|
249
|
-
backgroundColor: string;
|
|
250
|
-
borderWidth: string;
|
|
251
|
-
borderColor: string;
|
|
252
|
-
fontWeight: number;
|
|
253
|
-
fontFamily: string;
|
|
254
|
-
};
|
|
255
|
-
tableCaption: {
|
|
256
|
-
color: string;
|
|
257
|
-
fontWeight: number;
|
|
258
|
-
fontFamily: string;
|
|
259
|
-
};
|
|
260
|
-
tableCell: {
|
|
261
|
-
color: string;
|
|
262
|
-
};
|
|
263
|
-
tableRow: {
|
|
264
|
-
backgroundColor: string;
|
|
265
|
-
stripeColor: string;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
184
|
accordion: {
|
|
269
185
|
header: {
|
|
270
186
|
color: string;
|
|
@@ -273,30 +189,5 @@ export declare type Theme = {
|
|
|
273
189
|
paddingVertical: string[];
|
|
274
190
|
};
|
|
275
191
|
};
|
|
276
|
-
tabs: {
|
|
277
|
-
tab: {
|
|
278
|
-
fontSize: string[];
|
|
279
|
-
fontWeight: number;
|
|
280
|
-
fontFamily: string;
|
|
281
|
-
lineHeight: number;
|
|
282
|
-
borderTopWidth: string;
|
|
283
|
-
borderBottomWidth: string;
|
|
284
|
-
borderColor: string;
|
|
285
|
-
paddingVertical: string[];
|
|
286
|
-
paddingHorizontal: string[];
|
|
287
|
-
active: {
|
|
288
|
-
backgroundColor: string;
|
|
289
|
-
foregroundColor: string;
|
|
290
|
-
borderColor: string;
|
|
291
|
-
};
|
|
292
|
-
inactive: {
|
|
293
|
-
backgroundColor: string;
|
|
294
|
-
foregroundColor: string;
|
|
295
|
-
};
|
|
296
|
-
hover: {
|
|
297
|
-
foregroundColor: string;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
};
|
|
301
192
|
};
|
|
302
193
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-canary-ea79e4d-74",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@ovotech/element-core": "^1.1.0",
|
|
17
|
+
"deepmerge": "^4.2.2"
|
|
18
|
+
},
|
|
15
19
|
"devDependencies": {
|
|
16
20
|
"@babel/core": "^7.11.5",
|
|
17
21
|
"@testing-library/dom": "^8.20.0",
|
|
@@ -20,6 +24,7 @@
|
|
|
20
24
|
"@testing-library/user-event": "^14.4.3",
|
|
21
25
|
"@types/jest": "^28.1.1",
|
|
22
26
|
"@types/react": "18.0.24",
|
|
27
|
+
"@types/react-is": "^18.2.0",
|
|
23
28
|
"@types/react-native": "^0.72.0",
|
|
24
29
|
"@types/react-router-dom": "^5.1.5",
|
|
25
30
|
"@types/styled-components": "^5.1.3",
|
|
@@ -31,7 +36,7 @@
|
|
|
31
36
|
"metro-react-native-babel-preset": "^0.76.0",
|
|
32
37
|
"react": "18.2.0",
|
|
33
38
|
"react-is": "^16.13.0",
|
|
34
|
-
"react-native": "0.
|
|
39
|
+
"react-native": "0.72.3",
|
|
35
40
|
"react-native-reanimated": "^2.10.0",
|
|
36
41
|
"react-native-svg": "9.2.4",
|
|
37
42
|
"react-router-dom": "^5.1.2",
|
|
@@ -43,14 +48,12 @@
|
|
|
43
48
|
},
|
|
44
49
|
"peerDependencies": {
|
|
45
50
|
"react": "^16.9.0 || ^17.0.0",
|
|
46
|
-
"react-native": "^0.63.3 || ^0.71.0",
|
|
51
|
+
"react-native": "^0.63.3 || ^0.71.0 || ^0.72.0",
|
|
47
52
|
"react-native-reanimated": "^2.10.0",
|
|
48
53
|
"react-native-svg": "^13.5.0",
|
|
49
54
|
"styled-components": "^5.1.3"
|
|
50
55
|
},
|
|
51
|
-
"
|
|
52
|
-
"deepmerge": "^4.2.2"
|
|
53
|
-
},
|
|
56
|
+
"sideEffects": false,
|
|
54
57
|
"scripts": {
|
|
55
58
|
"build": "tsc && tsc --module ES6 --outDir dist/esm --declaration false",
|
|
56
59
|
"quickbuild": "tsc --module ES6 --outDir dist/esm --declaration false",
|