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