@ovotech/element-native 3.8.0 → 3.8.1-canary-a8563d8-232
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 +4 -9
- package/dist/components/Accordion/styles.d.ts +1225 -484
- package/dist/components/Accordion/styles.js +4 -3
- package/dist/components/ActionCard/ActionCard.js +4 -3
- package/dist/components/ActionList/ActionList.d.ts +1 -1
- package/dist/components/ActionList/ActionList.js +2 -1
- package/dist/components/ActionList/styled.d.ts +2502 -1020
- package/dist/components/ActionList/styled.js +6 -5
- package/dist/components/Badge/Badge.d.ts +408 -161
- package/dist/components/Badge/Badge.js +3 -2
- package/dist/components/CTAButton/CTAButton.js +7 -6
- package/dist/components/Card/Card.d.ts +410 -161
- package/dist/components/Card/Card.js +5 -4
- package/dist/components/Checkbox/Checkbox.js +4 -3
- package/dist/components/DataTable/styles.d.ts +5472 -2261
- package/dist/components/DataTable/styles.js +14 -15
- package/dist/components/DateField/DateField.js +4 -3
- package/dist/components/DescriptionList/styled.d.ts +407 -160
- package/dist/components/DescriptionList/styled.js +5 -4
- package/dist/components/Disclosure/Disclosure.js +4 -3
- package/dist/components/Em/Em.d.ts +407 -160
- package/dist/components/ErrorText/ErrorText.d.ts +407 -160
- package/dist/components/ErrorText/ErrorText.js +2 -3
- package/dist/components/FilterSelect/FilterSelect.js +5 -4
- package/dist/components/Grid/Col.d.ts +407 -160
- package/dist/components/Grid/Col.js +3 -3
- package/dist/components/Grid/Row.d.ts +407 -160
- package/dist/components/Grid/Row.js +4 -4
- package/dist/components/Heading1/Heading1.d.ts +3 -1
- package/dist/components/Heading1/Heading1.js +6 -4
- package/dist/components/Heading2/Heading2.d.ts +3 -1
- package/dist/components/Heading2/Heading2.js +6 -4
- package/dist/components/Heading3/Heading3.d.ts +3 -1
- package/dist/components/Heading3/Heading3.js +6 -4
- package/dist/components/Heading4/Heading4.d.ts +3 -1
- package/dist/components/Heading4/Heading4.js +6 -4
- package/dist/components/HintText/HintText.d.ts +407 -160
- package/dist/components/HintText/HintText.js +2 -3
- package/dist/components/Input/Input.js +7 -4
- package/dist/components/Label/Label.d.ts +5 -241
- package/dist/components/Label/Label.js +17 -4
- package/dist/components/LabelText/LabelText.d.ts +407 -160
- package/dist/components/LabelText/LabelText.js +2 -1
- package/dist/components/Lead/Lead.d.ts +5 -241
- package/dist/components/Lead/Lead.js +19 -4
- package/dist/components/LineThrough/LineThrough.d.ts +407 -160
- package/dist/components/List/styled.d.ts +1636 -648
- package/dist/components/List/styled.js +4 -4
- package/dist/components/Margin/Margin.d.ts +408 -162
- package/dist/components/Margin/Margin.js +2 -3
- package/dist/components/NavHeader/NavHeader.d.ts +10 -2
- package/dist/components/NavHeader/NavHeader.js +25 -29
- package/dist/components/NavHeader/NavHeader.styles.d.ts +3845 -1387
- package/dist/components/NavHeader/NavHeader.styles.js +18 -17
- package/dist/components/Notification/Notification.d.ts +816 -322
- package/dist/components/Notification/Notification.js +18 -15
- package/dist/components/P/P.d.ts +2 -0
- package/dist/components/P/P.js +3 -2
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +407 -160
- package/dist/components/PasswordInput/PasswordInput.styled.js +2 -1
- package/dist/components/{HorizontalCarousel/HorizontalCarousel.d.ts → ProductCarousel/ProductCarousel.d.ts} +2 -2
- package/dist/components/ProductCarousel/ProductCarousel.js +128 -0
- package/dist/components/ProductCarousel/anchor-point.d.ts +10 -0
- package/dist/components/ProductCarousel/anchor-point.js +53 -0
- package/dist/components/ProductCarousel/index.d.ts +1 -0
- package/dist/components/ProductCarousel/index.js +5 -0
- package/dist/components/Radio/Radio.js +5 -4
- package/dist/components/RadioCard/RadioCard.d.ts +9 -0
- package/dist/components/RadioCard/RadioCard.js +72 -0
- package/dist/components/RadioCard/index.d.ts +1 -0
- package/dist/components/RadioCard/index.js +5 -0
- package/dist/components/SelectField/Select.d.ts +407 -160
- package/dist/components/SelectField/Select.js +8 -7
- package/dist/components/SkeletonCTA/SkeletonCTA.js +2 -1
- package/dist/components/SkeletonCircle/SkeletonCircle.js +2 -2
- package/dist/components/SkeletonText/SkeletonText.js +4 -1
- package/dist/components/Small/Small.d.ts +407 -160
- package/dist/components/Small/Small.js +2 -1
- package/dist/components/Stack/Stack.d.ts +1 -2
- package/dist/components/Stack/Stack.js +2 -1
- package/dist/components/Strong/Strong.d.ts +407 -160
- package/dist/components/SubLabelText/SubLabelText.d.ts +407 -160
- package/dist/components/SubLabelText/SubLabelText.js +2 -1
- package/dist/components/Tabs/Tab.js +8 -7
- package/dist/components/Tabs/TabList.js +2 -1
- package/dist/components/Tabs/TabPanel.js +2 -1
- package/dist/components/Tabs/Tabs.js +2 -1
- package/dist/components/TextareaInput/TextareaInput.js +2 -2
- package/dist/components/Toast/Toast.js +3 -2
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/styles.d.ts +1638 -650
- package/dist/components/Toggle/styles.js +5 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/esm/components/Accordion/Accordion.js +4 -9
- package/dist/esm/components/Accordion/styles.js +4 -3
- package/dist/esm/components/ActionCard/ActionCard.js +4 -3
- package/dist/esm/components/ActionList/ActionList.js +2 -1
- package/dist/esm/components/ActionList/styled.js +6 -5
- package/dist/esm/components/Badge/Badge.js +3 -2
- package/dist/esm/components/CTAButton/CTAButton.js +7 -6
- package/dist/esm/components/Card/Card.js +5 -4
- package/dist/esm/components/Checkbox/Checkbox.js +4 -3
- package/dist/esm/components/DataTable/styles.js +14 -15
- package/dist/esm/components/DateField/DateField.js +4 -3
- package/dist/esm/components/DescriptionList/styled.js +5 -4
- package/dist/esm/components/Disclosure/Disclosure.js +4 -3
- package/dist/esm/components/ErrorText/ErrorText.js +2 -3
- package/dist/esm/components/FilterSelect/FilterSelect.js +5 -4
- package/dist/esm/components/Grid/Col.js +3 -3
- package/dist/esm/components/Grid/Row.js +4 -4
- package/dist/esm/components/Heading1/Heading1.js +5 -3
- package/dist/esm/components/Heading2/Heading2.js +5 -3
- package/dist/esm/components/Heading3/Heading3.js +5 -3
- package/dist/esm/components/Heading4/Heading4.js +5 -3
- package/dist/esm/components/HintText/HintText.js +2 -3
- package/dist/esm/components/Input/Input.js +7 -4
- package/dist/esm/components/Label/Label.js +17 -4
- package/dist/esm/components/LabelText/LabelText.js +2 -1
- package/dist/esm/components/Lead/Lead.js +19 -4
- package/dist/esm/components/List/styled.js +4 -4
- package/dist/esm/components/Margin/Margin.js +2 -3
- package/dist/esm/components/NavHeader/NavHeader.js +26 -30
- package/dist/esm/components/NavHeader/NavHeader.styles.js +17 -16
- package/dist/esm/components/Notification/Notification.js +18 -15
- package/dist/esm/components/P/P.js +3 -2
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +2 -1
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +98 -0
- package/dist/esm/components/ProductCarousel/anchor-point.js +49 -0
- package/dist/esm/components/ProductCarousel/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +5 -4
- package/dist/esm/components/RadioCard/RadioCard.js +66 -0
- package/dist/esm/components/RadioCard/index.js +1 -0
- package/dist/esm/components/SelectField/Select.js +8 -7
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +2 -1
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +1 -1
- package/dist/esm/components/SkeletonText/SkeletonText.js +4 -1
- package/dist/esm/components/Small/Small.js +2 -1
- package/dist/esm/components/Stack/Stack.js +2 -1
- package/dist/esm/components/SubLabelText/SubLabelText.js +2 -1
- package/dist/esm/components/Tabs/Tab.js +9 -8
- package/dist/esm/components/Tabs/TabList.js +2 -1
- package/dist/esm/components/Tabs/TabPanel.js +2 -1
- package/dist/esm/components/Tabs/Tabs.js +2 -1
- package/dist/esm/components/TextareaInput/TextareaInput.js +2 -2
- package/dist/esm/components/Toast/Toast.js +3 -2
- package/dist/esm/components/Toggle/Toggle.js +2 -2
- package/dist/esm/components/Toggle/styles.js +5 -4
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/utils/utils.js +1 -7
- package/dist/styled.native.d.ts +2523 -1041
- package/dist/utils/utils.d.ts +1 -3
- package/dist/utils/utils.js +1 -9
- package/package.json +5 -4
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +0 -92
- package/dist/components/HorizontalCarousel/index.d.ts +0 -1
- package/dist/components/HorizontalCarousel/index.js +0 -17
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +0 -62
- package/dist/esm/components/HorizontalCarousel/index.js +0 -1
- /package/dist/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.d.ts +0 -0
- /package/dist/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.js +0 -0
- /package/dist/esm/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.js +0 -0
|
@@ -1,171 +1,351 @@
|
|
|
1
|
+
import { Breakpoints } from '../../hooks';
|
|
1
2
|
export declare const Card: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
2
3
|
core: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
4
|
+
color: {
|
|
5
|
+
brand: {
|
|
6
|
+
midnight: string;
|
|
7
|
+
midnightTint: string;
|
|
8
|
+
forest: string;
|
|
9
|
+
forestTint: string;
|
|
10
|
+
ovo: string;
|
|
11
|
+
ovoTint: string;
|
|
12
|
+
leaf: string;
|
|
13
|
+
leafTint: string;
|
|
14
|
+
energised: string;
|
|
15
|
+
energisedTint: string;
|
|
16
|
+
offwhite: string;
|
|
17
|
+
white: string;
|
|
18
|
+
black: string;
|
|
19
|
+
};
|
|
20
|
+
neutral: {
|
|
21
|
+
darkest: string;
|
|
22
|
+
darker: string;
|
|
23
|
+
dark: string;
|
|
24
|
+
base: string;
|
|
25
|
+
light: string;
|
|
26
|
+
lighter: string;
|
|
27
|
+
lightest: string;
|
|
28
|
+
};
|
|
29
|
+
red: {
|
|
30
|
+
darkest: string;
|
|
31
|
+
darker: string;
|
|
32
|
+
dark: string;
|
|
33
|
+
base: string;
|
|
34
|
+
light: string;
|
|
35
|
+
lighter: string;
|
|
36
|
+
lightest: string;
|
|
37
|
+
};
|
|
38
|
+
orange: {
|
|
39
|
+
darkest: string;
|
|
40
|
+
darker: string;
|
|
41
|
+
dark: string;
|
|
42
|
+
base: string;
|
|
43
|
+
light: string;
|
|
44
|
+
lighter: string;
|
|
45
|
+
lightest: string;
|
|
46
|
+
};
|
|
47
|
+
yellow: {
|
|
48
|
+
darkest: string;
|
|
49
|
+
darker: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
base: string;
|
|
52
|
+
light: string;
|
|
53
|
+
lighter: string;
|
|
54
|
+
lightest: string;
|
|
55
|
+
};
|
|
56
|
+
green: {
|
|
57
|
+
darkest: string;
|
|
58
|
+
darker: string;
|
|
59
|
+
dark: string;
|
|
60
|
+
base: string;
|
|
61
|
+
light: string;
|
|
62
|
+
lighter: string;
|
|
63
|
+
lightest: string;
|
|
64
|
+
};
|
|
65
|
+
blue: {
|
|
66
|
+
darkest: string;
|
|
67
|
+
darker: string;
|
|
68
|
+
dark: string;
|
|
69
|
+
base: string;
|
|
70
|
+
light: string;
|
|
71
|
+
lighter: string;
|
|
72
|
+
lightest: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
fontFamily: {
|
|
76
|
+
mono: {
|
|
77
|
+
native: string;
|
|
78
|
+
web: string;
|
|
79
|
+
};
|
|
80
|
+
heading: {
|
|
81
|
+
native: string;
|
|
82
|
+
web: string;
|
|
83
|
+
};
|
|
84
|
+
body: {
|
|
85
|
+
native: string;
|
|
86
|
+
web: string;
|
|
87
|
+
};
|
|
88
|
+
bodyBold: {
|
|
89
|
+
native: string;
|
|
90
|
+
web: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
fontWeight: {
|
|
94
|
+
book: number;
|
|
95
|
+
bold: number;
|
|
96
|
+
black: number;
|
|
97
|
+
};
|
|
98
|
+
fontSize: {
|
|
99
|
+
heading1: {
|
|
100
|
+
small: number;
|
|
101
|
+
large: number;
|
|
102
|
+
};
|
|
103
|
+
heading2: {
|
|
104
|
+
small: number;
|
|
105
|
+
large: number;
|
|
106
|
+
};
|
|
107
|
+
heading3: {
|
|
108
|
+
small: number;
|
|
109
|
+
large: number;
|
|
110
|
+
};
|
|
111
|
+
heading4: {
|
|
112
|
+
small: number;
|
|
113
|
+
large: number;
|
|
114
|
+
};
|
|
115
|
+
lead: {
|
|
116
|
+
small: number;
|
|
117
|
+
large: number;
|
|
118
|
+
};
|
|
119
|
+
body: {
|
|
120
|
+
small: number;
|
|
121
|
+
large: number;
|
|
122
|
+
};
|
|
123
|
+
small: {
|
|
124
|
+
small: number;
|
|
125
|
+
large: number;
|
|
126
|
+
};
|
|
127
|
+
label: {
|
|
128
|
+
small: number;
|
|
129
|
+
large: number;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
letterSpacing: {
|
|
133
|
+
base: number;
|
|
134
|
+
compressed: number;
|
|
135
|
+
extraCompressed: number;
|
|
136
|
+
};
|
|
137
|
+
lineHeight: {
|
|
138
|
+
heading1: {
|
|
139
|
+
small: number;
|
|
140
|
+
large: number;
|
|
141
|
+
};
|
|
142
|
+
heading2: {
|
|
143
|
+
small: number;
|
|
144
|
+
large: number;
|
|
145
|
+
};
|
|
146
|
+
heading3: {
|
|
147
|
+
small: number;
|
|
148
|
+
large: number;
|
|
149
|
+
};
|
|
150
|
+
heading4: {
|
|
151
|
+
small: number;
|
|
152
|
+
large: number;
|
|
153
|
+
};
|
|
154
|
+
lead: {
|
|
155
|
+
small: number;
|
|
156
|
+
large: number;
|
|
157
|
+
};
|
|
158
|
+
body: {
|
|
159
|
+
small: number;
|
|
160
|
+
large: number;
|
|
161
|
+
};
|
|
162
|
+
small: {
|
|
163
|
+
small: number;
|
|
164
|
+
large: number;
|
|
165
|
+
};
|
|
166
|
+
label: {
|
|
167
|
+
small: number;
|
|
168
|
+
large: number;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
borderWidth: {
|
|
172
|
+
small: number;
|
|
173
|
+
medium: number;
|
|
174
|
+
large: number;
|
|
175
|
+
};
|
|
176
|
+
breakpoint: {
|
|
177
|
+
small: number;
|
|
178
|
+
medium: number;
|
|
179
|
+
large: number;
|
|
180
|
+
};
|
|
181
|
+
mediaQuery: {
|
|
182
|
+
small: number;
|
|
183
|
+
medium: number;
|
|
184
|
+
large: number;
|
|
185
|
+
};
|
|
186
|
+
customMediaQuery: {
|
|
187
|
+
'small-and-up': number;
|
|
188
|
+
'medium-and-up': number;
|
|
189
|
+
'large-and-up': number;
|
|
190
|
+
};
|
|
191
|
+
opacity: {
|
|
192
|
+
solid: number;
|
|
193
|
+
translucent: number;
|
|
194
|
+
transparent: number;
|
|
195
|
+
};
|
|
196
|
+
radius: {
|
|
197
|
+
small: number;
|
|
198
|
+
medium: number;
|
|
199
|
+
large: number;
|
|
200
|
+
max: number;
|
|
201
|
+
};
|
|
202
|
+
space: {
|
|
203
|
+
'0': number;
|
|
204
|
+
'1': number;
|
|
205
|
+
'2': number;
|
|
206
|
+
'3': number;
|
|
207
|
+
'4': number;
|
|
208
|
+
'5': number;
|
|
209
|
+
'6': number;
|
|
210
|
+
'7': number;
|
|
211
|
+
'8': number;
|
|
212
|
+
'9': number;
|
|
213
|
+
'10': number;
|
|
214
|
+
'11': number;
|
|
215
|
+
'12': number;
|
|
216
|
+
'13': number;
|
|
217
|
+
'14': number;
|
|
218
|
+
'15': number;
|
|
219
|
+
};
|
|
220
|
+
transition: {
|
|
221
|
+
slow: number;
|
|
222
|
+
medium: number;
|
|
223
|
+
fast: number;
|
|
224
|
+
};
|
|
35
225
|
};
|
|
36
226
|
semantic: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
inverted: Record<"surface" | "border", string> & {
|
|
42
|
-
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
227
|
+
border: {
|
|
228
|
+
graphic: string;
|
|
229
|
+
differentiated: string;
|
|
230
|
+
functional: string;
|
|
43
231
|
};
|
|
44
|
-
|
|
45
|
-
|
|
232
|
+
branded: {
|
|
233
|
+
surface: string;
|
|
234
|
+
message: string;
|
|
235
|
+
heading: string;
|
|
236
|
+
};
|
|
237
|
+
neutral: {
|
|
46
238
|
surface: string;
|
|
239
|
+
message: string;
|
|
47
240
|
surfaceEmphasis: string;
|
|
241
|
+
messageOnEmphasis: string;
|
|
242
|
+
border: string;
|
|
243
|
+
};
|
|
244
|
+
success: {
|
|
245
|
+
surface: string;
|
|
48
246
|
message: string;
|
|
247
|
+
surfaceEmphasis: string;
|
|
49
248
|
messageOnEmphasis: string;
|
|
249
|
+
border: string;
|
|
50
250
|
};
|
|
51
251
|
warning: {
|
|
52
|
-
border: string;
|
|
53
252
|
surface: string;
|
|
54
|
-
surfaceEmphasis: string;
|
|
55
253
|
message: string;
|
|
254
|
+
surfaceEmphasis: string;
|
|
56
255
|
messageOnEmphasis: string;
|
|
256
|
+
border: string;
|
|
57
257
|
};
|
|
58
258
|
error: {
|
|
59
|
-
border: string;
|
|
60
259
|
surface: string;
|
|
61
|
-
surfaceEmphasis: string;
|
|
62
260
|
message: string;
|
|
261
|
+
surfaceEmphasis: string;
|
|
63
262
|
messageOnEmphasis: string;
|
|
263
|
+
border: string;
|
|
64
264
|
};
|
|
65
265
|
info: {
|
|
66
|
-
border: string;
|
|
67
266
|
surface: string;
|
|
68
|
-
surfaceEmphasis: string;
|
|
69
267
|
message: string;
|
|
268
|
+
surfaceEmphasis: string;
|
|
70
269
|
messageOnEmphasis: string;
|
|
270
|
+
border: string;
|
|
71
271
|
};
|
|
72
|
-
data:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
fontSize: {
|
|
79
|
-
small: string | number;
|
|
80
|
-
large: string | number;
|
|
81
|
-
};
|
|
82
|
-
lineHeight: {
|
|
83
|
-
small: string | number;
|
|
84
|
-
large: string | number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
heading2: {
|
|
88
|
-
fontFamily: string;
|
|
89
|
-
fontWeight: string | number;
|
|
90
|
-
fontSize: {
|
|
91
|
-
small: string | number;
|
|
92
|
-
large: string | number;
|
|
272
|
+
data: {
|
|
273
|
+
branded: {
|
|
274
|
+
'1': string;
|
|
275
|
+
'2': string;
|
|
276
|
+
'3': string;
|
|
277
|
+
'4': string;
|
|
93
278
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
279
|
+
electric: {
|
|
280
|
+
'1': string;
|
|
281
|
+
'2': string;
|
|
282
|
+
'3': string;
|
|
283
|
+
'4': string;
|
|
97
284
|
};
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
small: string | number;
|
|
104
|
-
large: string | number;
|
|
105
|
-
};
|
|
106
|
-
lineHeight: {
|
|
107
|
-
small: string | number;
|
|
108
|
-
large: string | number;
|
|
285
|
+
gas: {
|
|
286
|
+
'1': string;
|
|
287
|
+
'2': string;
|
|
288
|
+
'3': string;
|
|
289
|
+
'4': string;
|
|
109
290
|
};
|
|
110
291
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
small: string | number;
|
|
116
|
-
large: string | number;
|
|
117
|
-
};
|
|
118
|
-
lineHeight: {
|
|
119
|
-
small: string | number;
|
|
120
|
-
large: string | number;
|
|
121
|
-
};
|
|
292
|
+
focus: {
|
|
293
|
+
outline: string;
|
|
294
|
+
hover: string;
|
|
295
|
+
surface: string;
|
|
122
296
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
297
|
+
inverted: {
|
|
298
|
+
surface: string;
|
|
299
|
+
surfaceAlt: string;
|
|
300
|
+
border: string;
|
|
301
|
+
borderAlt: string;
|
|
302
|
+
message: {
|
|
303
|
+
branded: string;
|
|
304
|
+
base: string;
|
|
305
|
+
secondary: string;
|
|
306
|
+
link: string;
|
|
133
307
|
};
|
|
134
308
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
};
|
|
142
|
-
lineHeight: {
|
|
143
|
-
small: string | number;
|
|
144
|
-
large: string | number;
|
|
145
|
-
};
|
|
309
|
+
message: {
|
|
310
|
+
base: string;
|
|
311
|
+
secondary: string;
|
|
312
|
+
link: string;
|
|
313
|
+
error: string;
|
|
314
|
+
branded: string;
|
|
146
315
|
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
small: string | number;
|
|
152
|
-
large: string | number;
|
|
153
|
-
};
|
|
154
|
-
lineHeight: {
|
|
155
|
-
small: string | number;
|
|
156
|
-
large: string | number;
|
|
157
|
-
};
|
|
316
|
+
surface: {
|
|
317
|
+
base: string;
|
|
318
|
+
cutout: string;
|
|
319
|
+
elevated: string;
|
|
158
320
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
321
|
+
};
|
|
322
|
+
component: {
|
|
323
|
+
badge: {
|
|
324
|
+
variants: {
|
|
325
|
+
neutral: {
|
|
326
|
+
background: string;
|
|
327
|
+
foreground: string;
|
|
328
|
+
};
|
|
329
|
+
red: {
|
|
330
|
+
background: string;
|
|
331
|
+
foreground: string;
|
|
332
|
+
};
|
|
333
|
+
orange: {
|
|
334
|
+
background: string;
|
|
335
|
+
foreground: string;
|
|
336
|
+
};
|
|
337
|
+
yellow: {
|
|
338
|
+
background: string;
|
|
339
|
+
foreground: string;
|
|
340
|
+
};
|
|
341
|
+
green: {
|
|
342
|
+
background: string;
|
|
343
|
+
foreground: string;
|
|
344
|
+
};
|
|
345
|
+
blue: {
|
|
346
|
+
background: string;
|
|
347
|
+
foreground: string;
|
|
348
|
+
};
|
|
169
349
|
};
|
|
170
350
|
};
|
|
171
351
|
cta: {
|
|
@@ -200,35 +380,104 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
|
|
|
200
380
|
backgroundFocused: string;
|
|
201
381
|
};
|
|
202
382
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
383
|
+
heading1: {
|
|
384
|
+
fontFamily: string;
|
|
385
|
+
fontWeight: number;
|
|
386
|
+
lineHeight: {
|
|
387
|
+
small: number;
|
|
388
|
+
large: number;
|
|
389
|
+
};
|
|
390
|
+
fontSize: {
|
|
391
|
+
small: number;
|
|
392
|
+
large: number;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
heading2: {
|
|
396
|
+
fontFamily: string;
|
|
397
|
+
fontWeight: number;
|
|
398
|
+
lineHeight: {
|
|
399
|
+
small: number;
|
|
400
|
+
large: number;
|
|
401
|
+
};
|
|
402
|
+
fontSize: {
|
|
403
|
+
small: number;
|
|
404
|
+
large: number;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
heading3: {
|
|
408
|
+
fontFamily: string;
|
|
409
|
+
fontWeight: number;
|
|
410
|
+
lineHeight: {
|
|
411
|
+
small: number;
|
|
412
|
+
large: number;
|
|
413
|
+
};
|
|
414
|
+
fontSize: {
|
|
415
|
+
small: number;
|
|
416
|
+
large: number;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
heading4: {
|
|
420
|
+
fontFamily: string;
|
|
421
|
+
fontWeight: number;
|
|
422
|
+
lineHeight: {
|
|
423
|
+
small: number;
|
|
424
|
+
large: number;
|
|
425
|
+
};
|
|
426
|
+
fontSize: {
|
|
427
|
+
small: number;
|
|
428
|
+
large: number;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
lead: {
|
|
432
|
+
fontFamily: string;
|
|
433
|
+
fontWeight: number;
|
|
434
|
+
lineHeight: {
|
|
435
|
+
small: number;
|
|
436
|
+
large: number;
|
|
437
|
+
};
|
|
438
|
+
fontSize: {
|
|
439
|
+
small: number;
|
|
440
|
+
large: number;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
body: {
|
|
444
|
+
fontFamily: string;
|
|
445
|
+
fontWeight: number;
|
|
446
|
+
lineHeight: {
|
|
447
|
+
small: number;
|
|
448
|
+
large: number;
|
|
449
|
+
};
|
|
450
|
+
fontSize: {
|
|
451
|
+
small: number;
|
|
452
|
+
large: number;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
small: {
|
|
456
|
+
fontFamily: string;
|
|
457
|
+
fontWeight: number;
|
|
458
|
+
lineHeight: {
|
|
459
|
+
small: number;
|
|
460
|
+
large: number;
|
|
461
|
+
};
|
|
462
|
+
fontSize: {
|
|
463
|
+
small: number;
|
|
464
|
+
large: number;
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
label: {
|
|
468
|
+
fontFamily: string;
|
|
469
|
+
fontWeight: number;
|
|
470
|
+
lineHeight: {
|
|
471
|
+
small: number;
|
|
472
|
+
large: number;
|
|
473
|
+
};
|
|
474
|
+
fontSize: {
|
|
475
|
+
small: number;
|
|
476
|
+
large: number;
|
|
229
477
|
};
|
|
230
478
|
};
|
|
231
479
|
};
|
|
232
|
-
}, {
|
|
480
|
+
}, Breakpoints & {
|
|
233
481
|
inline?: boolean | undefined;
|
|
482
|
+
inverted?: boolean | undefined;
|
|
234
483
|
}, never>;
|
|
@@ -4,10 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Card = void 0;
|
|
7
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
7
8
|
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
8
9
|
exports.Card = styled_native_1.default.View(function (_a) {
|
|
9
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, _c = _a.inline, inline = _c === void 0 ? false : _c;
|
|
10
|
-
return "\n background: ".concat(semantic.surface.elevated, ";\n
|
|
11
|
-
?
|
|
12
|
-
:
|
|
10
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, smallAndUp = _a.smallAndUp;
|
|
11
|
+
return "\n background: ".concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding: ").concat(inline
|
|
12
|
+
? (0, element_core_1.numToPx)(core.space[smallAndUp ? 6 : 4])
|
|
13
|
+
: (0, element_core_1.numToPx)(core.space[smallAndUp ? 9 : 6]), ";\n border-radius: ").concat(inline ? (0, element_core_1.numToPx)(core.radius.max) : 0, ";\n ");
|
|
13
14
|
});
|
|
@@ -31,6 +31,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Checkbox = void 0;
|
|
33
33
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
34
35
|
var react_1 = require("react");
|
|
35
36
|
var react_native_1 = require("react-native");
|
|
36
37
|
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
@@ -44,11 +45,11 @@ var StyledCheckboxInputWrapper = styled_native_1.default.View(function (_a) {
|
|
|
44
45
|
var core = _a.theme.core;
|
|
45
46
|
var checkboxSize = core.space[6];
|
|
46
47
|
var gap = core.space[2];
|
|
47
|
-
return "\n width: ".concat(
|
|
48
|
+
return "\n width: ".concat((0, element_core_1.numToPx)(checkboxSize + gap), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[11]), ";\n ");
|
|
48
49
|
});
|
|
49
50
|
var StyledCheckboxInput = styled_native_1.default.View(function (_a) {
|
|
50
51
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, invalid = _a.invalid, checked = _a.checked;
|
|
51
|
-
return "\n width: ".concat(core.space[6], ";\n height: ").concat(core.space[6], ";\n border: ").concat(core.borderWidth.small, " solid;\n margin-top: 10px;\n border-radius: ").concat(core.radius.small, ";\n border-color: ").concat(invalid
|
|
52
|
+
return "\n width: ".concat((0, element_core_1.numToPx)(core.space[6]), ";\n height: ").concat((0, element_core_1.numToPx)(core.space[6]), ";\n border: ").concat((0, element_core_1.numToPx)(core.borderWidth.small), " solid;\n margin-top: 10px;\n border-radius: ").concat((0, element_core_1.numToPx)(core.radius.small), ";\n border-color: ").concat(invalid
|
|
52
53
|
? semantic.message.error
|
|
53
54
|
: checked
|
|
54
55
|
? core.color.blue.dark
|
|
@@ -67,7 +68,7 @@ var Input = function (_a) {
|
|
|
67
68
|
};
|
|
68
69
|
var CheckLabelText = (0, styled_native_1.default)(LabelText_1.LabelText)(function (_a) {
|
|
69
70
|
var core = _a.theme.core;
|
|
70
|
-
return "\n padding-top: ".concat(core.space[3], ";\n ");
|
|
71
|
+
return "\n padding-top: ".concat((0, element_core_1.numToPx)(core.space[3]), ";\n ");
|
|
71
72
|
});
|
|
72
73
|
var StyledWrapper = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
|
|
73
74
|
var Checkbox = (0, react_1.forwardRef)(function (_a, ref) {
|