@ovotech/element-native 3.7.0 → 3.8.0-canary-9bfdab2-202
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/styles.d.ts +33 -6
- package/dist/components/ActionCard/ActionCard.js +1 -1
- package/dist/components/ActionList/ActionList.d.ts +1 -1
- package/dist/components/ActionList/ActionList.js +2 -1
- package/dist/components/ActionList/styled.d.ts +66 -12
- package/dist/components/Badge/Badge.d.ts +12 -3
- package/dist/components/Card/Card.d.ts +14 -3
- package/dist/components/Card/Card.js +2 -4
- package/dist/components/DataTable/styles.d.ts +143 -26
- package/dist/components/DescriptionList/styled.d.ts +11 -2
- package/dist/components/Em/Em.d.ts +11 -2
- package/dist/components/ErrorText/ErrorText.d.ts +11 -2
- package/dist/components/Grid/Col.d.ts +11 -2
- package/dist/components/Grid/Row.d.ts +11 -2
- package/dist/components/Heading1/Heading1.d.ts +3 -1
- package/dist/components/Heading1/Heading1.js +4 -2
- package/dist/components/Heading2/Heading2.d.ts +3 -1
- package/dist/components/Heading2/Heading2.js +4 -2
- package/dist/components/Heading3/Heading3.d.ts +3 -1
- package/dist/components/Heading3/Heading3.js +4 -2
- package/dist/components/Heading4/Heading4.d.ts +3 -1
- package/dist/components/Heading4/Heading4.js +4 -2
- package/dist/components/HintText/HintText.d.ts +11 -2
- package/dist/components/HorizontalCarousel/HorizontalCarousel.d.ts +13 -0
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +92 -0
- package/dist/components/HorizontalCarousel/NavigationDots.d.ts +5 -0
- package/dist/components/HorizontalCarousel/NavigationDots.js +88 -0
- package/dist/components/HorizontalCarousel/index.d.ts +1 -0
- package/dist/components/HorizontalCarousel/index.js +17 -0
- package/dist/components/Label/Label.d.ts +5 -241
- package/dist/components/Label/Label.js +16 -4
- package/dist/components/LabelText/LabelText.d.ts +11 -2
- package/dist/components/Lead/Lead.d.ts +5 -241
- package/dist/components/Lead/Lead.js +18 -4
- package/dist/components/LineThrough/LineThrough.d.ts +11 -2
- package/dist/components/List/styled.d.ts +44 -8
- package/dist/components/Margin/Margin.d.ts +11 -2
- package/dist/components/NavHeader/NavHeader.styles.d.ts +88 -16
- package/dist/components/Notification/Notification.d.ts +23 -5
- package/dist/components/Notification/Notification.js +14 -14
- package/dist/components/P/P.d.ts +2 -0
- package/dist/components/P/P.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +11 -2
- package/dist/components/SelectField/Select.d.ts +11 -2
- package/dist/components/Small/Small.d.ts +11 -2
- package/dist/components/Strong/Strong.d.ts +11 -2
- package/dist/components/SubLabelText/SubLabelText.d.ts +11 -2
- package/dist/components/Tabs/Tab.js +6 -6
- package/dist/components/Toggle/styles.d.ts +44 -8
- package/dist/esm/components/ActionCard/ActionCard.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +2 -1
- package/dist/esm/components/Card/Card.js +2 -4
- package/dist/esm/components/Heading1/Heading1.js +4 -2
- package/dist/esm/components/Heading2/Heading2.js +4 -2
- package/dist/esm/components/Heading3/Heading3.js +4 -2
- package/dist/esm/components/Heading4/Heading4.js +4 -2
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +62 -0
- package/dist/esm/components/HorizontalCarousel/NavigationDots.js +61 -0
- package/dist/esm/components/HorizontalCarousel/index.js +1 -0
- package/dist/esm/components/Label/Label.js +16 -4
- package/dist/esm/components/Lead/Lead.js +18 -4
- package/dist/esm/components/Notification/Notification.js +14 -14
- package/dist/esm/components/P/P.js +2 -2
- package/dist/esm/components/Tabs/Tab.js +7 -7
- package/dist/esm/index.js +1 -0
- package/dist/esm/theme/index.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/styled.native.d.ts +66 -12
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.js +17 -0
- package/package.json +4 -3
|
@@ -5,6 +5,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
8
9
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
10
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
11
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -36,12 +37,20 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
36
37
|
};
|
|
37
38
|
semantic: {
|
|
38
39
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
39
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
40
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
41
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
40
42
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
41
43
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
42
|
-
inverted: Record<"surface" | "border", string> & {
|
|
44
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
43
45
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
44
46
|
};
|
|
47
|
+
neutral: {
|
|
48
|
+
border: string;
|
|
49
|
+
surface: string;
|
|
50
|
+
surfaceEmphasis: string;
|
|
51
|
+
message: string;
|
|
52
|
+
messageOnEmphasis: string;
|
|
53
|
+
};
|
|
45
54
|
success: {
|
|
46
55
|
border: string;
|
|
47
56
|
surface: string;
|
|
@@ -241,6 +250,7 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
241
250
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
242
251
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
243
252
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
253
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
244
254
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
245
255
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
246
256
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -272,12 +282,20 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
272
282
|
};
|
|
273
283
|
semantic: {
|
|
274
284
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
275
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
285
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
286
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
276
287
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
277
288
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
278
|
-
inverted: Record<"surface" | "border", string> & {
|
|
289
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
279
290
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
280
291
|
};
|
|
292
|
+
neutral: {
|
|
293
|
+
border: string;
|
|
294
|
+
surface: string;
|
|
295
|
+
surfaceEmphasis: string;
|
|
296
|
+
message: string;
|
|
297
|
+
messageOnEmphasis: string;
|
|
298
|
+
};
|
|
281
299
|
success: {
|
|
282
300
|
border: string;
|
|
283
301
|
surface: string;
|
|
@@ -473,6 +491,7 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
473
491
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
474
492
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
475
493
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
494
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
476
495
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
477
496
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
478
497
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -504,12 +523,20 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
504
523
|
};
|
|
505
524
|
semantic: {
|
|
506
525
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
507
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
526
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
527
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
508
528
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
509
529
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
510
|
-
inverted: Record<"surface" | "border", string> & {
|
|
530
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
511
531
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
512
532
|
};
|
|
533
|
+
neutral: {
|
|
534
|
+
border: string;
|
|
535
|
+
surface: string;
|
|
536
|
+
surfaceEmphasis: string;
|
|
537
|
+
message: string;
|
|
538
|
+
messageOnEmphasis: string;
|
|
539
|
+
};
|
|
513
540
|
success: {
|
|
514
541
|
border: string;
|
|
515
542
|
surface: string;
|
|
@@ -75,7 +75,7 @@ var ActionCard = function (_a) {
|
|
|
75
75
|
paddingRight: image || !onPressCloseButton ? 0 : cardPadding,
|
|
76
76
|
}, testID: "".concat(testID, "-heading") }, { children: title })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [typeof body === 'string' ? ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: {
|
|
77
77
|
paddingRight: !image && !title && onPressCloseButton ? cardPadding : 0,
|
|
78
|
-
} }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 2 }, { children: (0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle })) }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
|
|
78
|
+
} }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 2 }, { children: (0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button"), iconRight: "chevron-right-small" }, { children: buttonTitle })) }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
|
|
79
79
|
flex: 1,
|
|
80
80
|
flexDirection: 'row',
|
|
81
81
|
height: '100%',
|
|
@@ -17,5 +17,5 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
17
17
|
inList?: boolean;
|
|
18
18
|
}>;
|
|
19
19
|
declare const ActionList: ({ children, inverted, ...rest }: ActionListProps) => JSX.Element;
|
|
20
|
-
declare const Action: import("react").ForwardRefExoticComponent<Pick<ActionProps, "onPress" | "inline" | keyof ViewProps | "fullWidth" | "iconLeft" | "iconRight" | "
|
|
20
|
+
declare const Action: import("react").ForwardRefExoticComponent<Pick<ActionProps, "onPress" | "inverted" | "inline" | keyof ViewProps | "fullWidth" | "iconLeft" | "iconRight" | "inList"> & import("react").RefAttributes<View>>;
|
|
21
21
|
export { ActionList, Action };
|
|
@@ -32,13 +32,14 @@ var ActionList = function (_a) {
|
|
|
32
32
|
var children = _a.children, inverted = _a.inverted, rest = __rest(_a, ["children", "inverted"]);
|
|
33
33
|
var childCount = children.length;
|
|
34
34
|
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionList, __assign({}, rest, { children: react_1.Children.map(children, function (child, index) {
|
|
35
|
-
var _a;
|
|
35
|
+
var _a, _b;
|
|
36
36
|
return (0, react_1.cloneElement)(child, {
|
|
37
37
|
fullWidth: 'always',
|
|
38
38
|
index: index,
|
|
39
39
|
hasBorder: childCount > 1 && index !== childCount - 1,
|
|
40
40
|
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted,
|
|
41
41
|
inList: true,
|
|
42
|
+
iconRight: (_b = child.props.iconRight) !== null && _b !== void 0 ? _b : 'chevron-right-small',
|
|
42
43
|
});
|
|
43
44
|
}) })));
|
|
44
45
|
};
|
|
@@ -12,6 +12,7 @@ export declare const StyledActionList: import("react").ForwardRefExoticComponent
|
|
|
12
12
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
13
13
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
14
14
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
15
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
15
16
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
16
17
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
17
18
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -43,12 +44,20 @@ export declare const StyledActionList: import("react").ForwardRefExoticComponent
|
|
|
43
44
|
};
|
|
44
45
|
semantic: {
|
|
45
46
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
46
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
47
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
48
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
47
49
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
48
50
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
49
|
-
inverted: Record<"surface" | "border", string> & {
|
|
51
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
50
52
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
51
53
|
};
|
|
54
|
+
neutral: {
|
|
55
|
+
border: string;
|
|
56
|
+
surface: string;
|
|
57
|
+
surfaceEmphasis: string;
|
|
58
|
+
message: string;
|
|
59
|
+
messageOnEmphasis: string;
|
|
60
|
+
};
|
|
52
61
|
success: {
|
|
53
62
|
border: string;
|
|
54
63
|
surface: string;
|
|
@@ -248,6 +257,7 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
248
257
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
249
258
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
250
259
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
260
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
251
261
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
252
262
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
253
263
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -279,12 +289,20 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
279
289
|
};
|
|
280
290
|
semantic: {
|
|
281
291
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
282
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
292
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
293
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
283
294
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
284
295
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
285
|
-
inverted: Record<"surface" | "border", string> & {
|
|
296
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
286
297
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
287
298
|
};
|
|
299
|
+
neutral: {
|
|
300
|
+
border: string;
|
|
301
|
+
surface: string;
|
|
302
|
+
surfaceEmphasis: string;
|
|
303
|
+
message: string;
|
|
304
|
+
messageOnEmphasis: string;
|
|
305
|
+
};
|
|
288
306
|
success: {
|
|
289
307
|
border: string;
|
|
290
308
|
surface: string;
|
|
@@ -483,6 +501,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
483
501
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
484
502
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
485
503
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
504
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
486
505
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
487
506
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
488
507
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -514,12 +533,20 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
514
533
|
};
|
|
515
534
|
semantic: {
|
|
516
535
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
517
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
536
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
537
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
518
538
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
519
539
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
520
|
-
inverted: Record<"surface" | "border", string> & {
|
|
540
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
521
541
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
522
542
|
};
|
|
543
|
+
neutral: {
|
|
544
|
+
border: string;
|
|
545
|
+
surface: string;
|
|
546
|
+
surfaceEmphasis: string;
|
|
547
|
+
message: string;
|
|
548
|
+
messageOnEmphasis: string;
|
|
549
|
+
};
|
|
523
550
|
success: {
|
|
524
551
|
border: string;
|
|
525
552
|
surface: string;
|
|
@@ -718,6 +745,7 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
718
745
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
719
746
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
720
747
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
748
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
721
749
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
722
750
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
723
751
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -749,12 +777,20 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
749
777
|
};
|
|
750
778
|
semantic: {
|
|
751
779
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
752
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
780
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
781
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
753
782
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
754
783
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
755
|
-
inverted: Record<"surface" | "border", string> & {
|
|
784
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
756
785
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
757
786
|
};
|
|
787
|
+
neutral: {
|
|
788
|
+
border: string;
|
|
789
|
+
surface: string;
|
|
790
|
+
surfaceEmphasis: string;
|
|
791
|
+
message: string;
|
|
792
|
+
messageOnEmphasis: string;
|
|
793
|
+
};
|
|
758
794
|
success: {
|
|
759
795
|
border: string;
|
|
760
796
|
surface: string;
|
|
@@ -954,6 +990,7 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
954
990
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
955
991
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
956
992
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
993
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
957
994
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
958
995
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
959
996
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -985,12 +1022,20 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
985
1022
|
};
|
|
986
1023
|
semantic: {
|
|
987
1024
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
988
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1025
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1026
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
989
1027
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
990
1028
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
991
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1029
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
992
1030
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
993
1031
|
};
|
|
1032
|
+
neutral: {
|
|
1033
|
+
border: string;
|
|
1034
|
+
surface: string;
|
|
1035
|
+
surfaceEmphasis: string;
|
|
1036
|
+
message: string;
|
|
1037
|
+
messageOnEmphasis: string;
|
|
1038
|
+
};
|
|
994
1039
|
success: {
|
|
995
1040
|
border: string;
|
|
996
1041
|
surface: string;
|
|
@@ -1189,6 +1234,7 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
1189
1234
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
1190
1235
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
1191
1236
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
1237
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
1192
1238
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
1193
1239
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
1194
1240
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -1220,12 +1266,20 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
1220
1266
|
};
|
|
1221
1267
|
semantic: {
|
|
1222
1268
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
1223
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
1269
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
1270
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
1224
1271
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
1225
1272
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
1226
|
-
inverted: Record<"surface" | "border", string> & {
|
|
1273
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
1227
1274
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
1228
1275
|
};
|
|
1276
|
+
neutral: {
|
|
1277
|
+
border: string;
|
|
1278
|
+
surface: string;
|
|
1279
|
+
surfaceEmphasis: string;
|
|
1280
|
+
message: string;
|
|
1281
|
+
messageOnEmphasis: string;
|
|
1282
|
+
};
|
|
1229
1283
|
success: {
|
|
1230
1284
|
border: string;
|
|
1231
1285
|
surface: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme, BadgeColors } from '@ovotech/element-core';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
export declare type SemanticVariants = Exclude<keyof Theme['semantic'], 'surface' | 'message' | 'border' | 'focus' | 'inverted' | 'data'>;
|
|
3
|
+
export declare type SemanticVariants = Exclude<keyof Theme['semantic'], 'surface' | 'message' | 'border' | 'focus' | 'inverted' | 'data' | 'neutral' | 'branded'>;
|
|
4
4
|
export declare type BadgeVariantName = BadgeColors | SemanticVariants;
|
|
5
5
|
declare const StyledBadge: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
6
6
|
core: {
|
|
@@ -8,6 +8,7 @@ declare const StyledBadge: import("styled-components").StyledComponent<typeof im
|
|
|
8
8
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
9
9
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
10
10
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
11
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
11
12
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
12
13
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
13
14
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -39,12 +40,20 @@ declare const StyledBadge: import("styled-components").StyledComponent<typeof im
|
|
|
39
40
|
};
|
|
40
41
|
semantic: {
|
|
41
42
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
42
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
43
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
44
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
43
45
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
44
46
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
45
|
-
inverted: Record<"surface" | "border", string> & {
|
|
47
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
46
48
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
47
49
|
};
|
|
50
|
+
neutral: {
|
|
51
|
+
border: string;
|
|
52
|
+
surface: string;
|
|
53
|
+
surfaceEmphasis: string;
|
|
54
|
+
message: string;
|
|
55
|
+
messageOnEmphasis: string;
|
|
56
|
+
};
|
|
48
57
|
success: {
|
|
49
58
|
border: string;
|
|
50
59
|
surface: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
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
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
4
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
5
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
6
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
+
customMediaQuery: Record<"small-and-up" | "medium-and-up" | "large-and-up", string>;
|
|
7
9
|
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
8
10
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
9
11
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
@@ -35,12 +37,20 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
|
|
|
35
37
|
};
|
|
36
38
|
semantic: {
|
|
37
39
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
38
|
-
message: Record<"base" | "link" | "secondary" | "
|
|
40
|
+
message: Record<"base" | "link" | "secondary" | "branded" | "error", string>;
|
|
41
|
+
branded: Record<"message" | "heading" | "surface", string>;
|
|
39
42
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
40
43
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
41
|
-
inverted: Record<"surface" | "border", string> & {
|
|
44
|
+
inverted: Record<"surface" | "surfaceAlt" | "border" | "borderAlt", string> & {
|
|
42
45
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
43
46
|
};
|
|
47
|
+
neutral: {
|
|
48
|
+
border: string;
|
|
49
|
+
surface: string;
|
|
50
|
+
surfaceEmphasis: string;
|
|
51
|
+
message: string;
|
|
52
|
+
messageOnEmphasis: string;
|
|
53
|
+
};
|
|
44
54
|
success: {
|
|
45
55
|
border: string;
|
|
46
56
|
surface: string;
|
|
@@ -229,6 +239,7 @@ export declare const Card: import("styled-components").StyledComponent<typeof im
|
|
|
229
239
|
};
|
|
230
240
|
};
|
|
231
241
|
};
|
|
232
|
-
}, {
|
|
242
|
+
}, Breakpoints & {
|
|
233
243
|
inline?: boolean | undefined;
|
|
244
|
+
inverted?: boolean | undefined;
|
|
234
245
|
}, never>;
|
|
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Card = void 0;
|
|
7
7
|
var styled_native_1 = __importDefault(require("../../styled.native"));
|
|
8
8
|
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 border: ").concat(inline
|
|
11
|
-
? "".concat(core.borderWidth.small, " solid ").concat(semantic.border.differentiated)
|
|
12
|
-
: 'none', ";\n padding: ").concat(core.space[4], ";\n border-radius: ").concat(core.radius.small, ";\n ");
|
|
9
|
+
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;
|
|
10
|
+
return "\n background: ".concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding: ").concat(inline ? core.space[smallAndUp ? 6 : 4] : core.space[smallAndUp ? 9 : 6], ";\n border-radius: ").concat(inline ? core.radius.max : 0, ";\n ");
|
|
13
11
|
});
|