@telefonica/mistica 14.17.1 → 14.18.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/css/mistica.css +1 -1
- package/dist/avatar.css-mistica.js +3 -3
- package/dist/badge.css-mistica.js +3 -3
- package/dist/box.d.ts +8 -8
- package/dist/box.js +28 -21
- package/dist/boxed.css-mistica.js +1 -1
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +8 -8
- package/dist/button.css-mistica.js +19 -19
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +27 -18
- package/dist/card.css.d.ts +3 -0
- package/dist/card.d.ts +37 -14
- package/dist/card.js +442 -268
- package/dist/carousel.css-mistica.js +16 -16
- package/dist/checkbox.css-mistica.js +10 -10
- package/dist/chip.css-mistica.js +4 -4
- package/dist/circle.css-mistica.js +2 -2
- package/dist/circle.d.ts +2 -0
- package/dist/circle.js +61 -7
- package/dist/community/advanced-data-card.css-mistica.js +69 -0
- package/dist/community/advanced-data-card.css.d.ts +20 -0
- package/dist/community/advanced-data-card.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/community/advanced-data-card.d.ts +39 -0
- package/dist/community/advanced-data-card.js +317 -0
- package/dist/community/blocks.css-mistica.js +21 -0
- package/dist/community/blocks.css.d.ts +2 -0
- package/dist/community/blocks.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/community/blocks.d.ts +73 -0
- package/dist/community/blocks.js +258 -0
- package/dist/community/index.d.ts +2 -0
- package/dist/community/index.js +31 -3
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/dialog.css-mistica.js +9 -9
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +4 -4
- package/dist/empty-state.js +4 -4
- package/dist/feedback.css-mistica.js +3 -3
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/grid.css.d.ts +6 -6
- package/dist/header.css-mistica.js +24 -0
- package/dist/header.css.d.ts +3 -0
- package/dist/header.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/header.d.ts +3 -0
- package/dist/header.js +121 -101
- package/dist/hero.css-mistica.js +4 -4
- package/dist/highlighted-card.css-mistica.js +5 -5
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +1 -1
- package/dist/image.d.ts +19 -6
- package/dist/image.js +64 -61
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/list.css-mistica.js +14 -14
- package/dist/list.js +11 -10
- package/dist/loading-bar.css-mistica.js +5 -5
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.css-mistica.js +2 -2
- package/dist/navigation-bar.css-mistica.js +16 -16
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +2 -2
- package/dist/popover.css-mistica.js +11 -11
- package/dist/progress-bar.css-mistica.js +3 -3
- package/dist/radio-button.css-mistica.js +12 -12
- package/dist/responsive-layout.css-mistica.js +2 -2
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +12 -12
- package/dist/skeletons.css-mistica.js +3 -3
- package/dist/snackbar.css-mistica.js +5 -5
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/sprinkles.css-mistica.js +648 -336
- package/dist/sprinkles.css.d.ts +36 -7
- package/dist/stack.css-mistica.js +7 -4
- package/dist/stack.css.d.ts +3 -0
- package/dist/stack.d.ts +4 -2
- package/dist/stack.js +20 -13
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +9 -9
- package/dist/switch-component.css-mistica.js +21 -21
- package/dist/tabs.css-mistica.js +11 -11
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +11 -11
- package/dist/text-field-components.css-mistica.js +15 -15
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +49 -41
- package/dist/tooltip.css-mistica.js +9 -9
- package/dist/touchable.css-mistica.js +3 -3
- package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist/utils/aspect-ratio-support.d.ts +4 -2
- package/dist/utils/aspect-ratio-support.js +17 -16
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/utility-types.d.ts +7 -0
- package/dist/video.css-mistica.js +2 -2
- package/dist/video.js +26 -78
- package/dist-es/avatar.css-mistica.js +2 -2
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/box.js +32 -25
- package/dist-es/boxed.css-mistica.js +1 -1
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +7 -7
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +549 -384
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +4 -4
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/circle.js +66 -12
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -0
- package/dist-es/community/advanced-data-card.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/community/advanced-data-card.js +256 -0
- package/dist-es/community/blocks.css-mistica.js +4 -0
- package/dist-es/community/blocks.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/community/blocks.js +224 -0
- package/dist-es/community/index.js +4 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/empty-state.js +11 -11
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/header.css-mistica.js +4 -0
- package/dist-es/header.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/header.js +141 -121
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +5 -5
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/image.js +76 -73
- package/dist-es/index.js +1710 -1710
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +22 -21
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.css-mistica.js +2 -2
- package/dist-es/navigation-bar.css-mistica.js +9 -9
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +6 -6
- package/dist-es/responsive-layout.css-mistica.js +2 -2
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +10 -10
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/sprinkles.css-mistica.js +648 -336
- package/dist-es/stack.css-mistica.js +6 -3
- package/dist-es/stack.js +27 -20
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +18 -18
- package/dist-es/tabs.css-mistica.js +7 -7
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/theme.js +52 -44
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/utils/aspect-ratio-support.js +17 -16
- package/dist-es/video.css-mistica.js +2 -2
- package/dist-es/video.js +36 -88
- package/package.json +2 -2
package/dist/card.css-mistica.js
CHANGED
|
@@ -28,59 +28,68 @@ _export(exports, {
|
|
|
28
28
|
return e;
|
|
29
29
|
},
|
|
30
30
|
cardContainer: function() {
|
|
31
|
+
return b;
|
|
32
|
+
},
|
|
33
|
+
circularMediaOverlay: function() {
|
|
31
34
|
return d;
|
|
32
35
|
},
|
|
33
36
|
dataCard: function() {
|
|
34
37
|
return s;
|
|
35
38
|
},
|
|
36
39
|
displayCardBackground: function() {
|
|
37
|
-
return
|
|
40
|
+
return c;
|
|
38
41
|
},
|
|
39
42
|
displayCardContainer: function() {
|
|
40
|
-
return
|
|
43
|
+
return t;
|
|
41
44
|
},
|
|
42
45
|
displayCardContent: function() {
|
|
43
|
-
return
|
|
46
|
+
return o;
|
|
44
47
|
},
|
|
45
48
|
displayCardGradient: function() {
|
|
46
|
-
return
|
|
49
|
+
return i;
|
|
47
50
|
},
|
|
48
51
|
mediaCard: function() {
|
|
49
|
-
return
|
|
52
|
+
return l;
|
|
50
53
|
},
|
|
51
54
|
mediaCardContent: function() {
|
|
52
|
-
return
|
|
55
|
+
return C;
|
|
56
|
+
},
|
|
57
|
+
nakedCardContent: function() {
|
|
58
|
+
return h;
|
|
53
59
|
},
|
|
54
60
|
snapCard: function() {
|
|
55
|
-
return
|
|
61
|
+
return u;
|
|
56
62
|
},
|
|
57
63
|
touchable: function() {
|
|
58
|
-
return
|
|
64
|
+
return p;
|
|
59
65
|
},
|
|
60
66
|
touchableCardOverlay: function() {
|
|
61
|
-
return
|
|
67
|
+
return j;
|
|
62
68
|
},
|
|
63
69
|
touchableCardOverlayInverse: function() {
|
|
64
|
-
return
|
|
70
|
+
return q;
|
|
65
71
|
},
|
|
66
72
|
touchableCardOverlayMedia: function() {
|
|
67
|
-
return
|
|
73
|
+
return z;
|
|
68
74
|
},
|
|
69
75
|
touchableContainer: function() {
|
|
70
|
-
return
|
|
76
|
+
return O;
|
|
71
77
|
},
|
|
72
78
|
touchableMediaCardOverlay: function() {
|
|
73
|
-
return
|
|
79
|
+
return k;
|
|
80
|
+
},
|
|
81
|
+
touchableNakedMediaOverlay: function() {
|
|
82
|
+
return A;
|
|
74
83
|
},
|
|
75
84
|
vars: function() {
|
|
76
|
-
return
|
|
85
|
+
return M;
|
|
77
86
|
},
|
|
78
87
|
videoAction: function() {
|
|
79
|
-
return
|
|
88
|
+
return g;
|
|
80
89
|
}
|
|
81
90
|
});
|
|
82
91
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
83
92
|
require("./card.css.ts.vanilla.css-mistica.js");
|
|
84
|
-
var _ = "_15e54s91
|
|
85
|
-
aspectRatio: "var(--
|
|
86
|
-
},
|
|
93
|
+
var _ = "_15e54s91 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfbk", a = "_15e54s93 _1y2v1nfb4 _1y2v1nfaz", y = "_15e54s9v _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", f = "_1y2v1nfb4 _1y2v1nfc3 _1y2v1nfcj _1y2v1nfbj _1y2v1nfbd", r = "_15e54s9w _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", e = "_15e54s9x _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", b = "_15e54s910", d = "_15e54s98", s = "_15e54s9j _1y2v1nf8w _1y2v1nfa5 _1y2v1nf6k _1y2v1nf7t _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbr", c = "_15e54s9r", t = "_1y2v1nfbr _1y2v1nfc8 _1y2v1nfb4 _1y2v1nfaz", o = "_15e54s9q", i = "_15e54s9s", l = "_1y2v1nfb4 _1y2v1nfba _1y2v1nfc8 _1y2v1nfbr _1y2v1nfbq", C = "_15e54s9f _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nf6e _1y2v1nf7t _1y2v1nfba _1y2v1nfbg", h = "_15e54s9h _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbg _1y2v1nf6e", u = "_15e54s9l _1y2v1nf6e _1y2v1nf7n _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfaz _1y2v1nfc8 _1y2v1nfba _1y2v1nfbg _1y2v1nfbr _1y2v1nfbq", p = "_15e54s95", j = "_15e54s9a _15e54s96", q = "_15e54s9b _15e54s96", z = "_15e54s9c _15e54s96", O = "_15e54s94", k = "_15e54s97 _15e54s96", A = "_15e54s99 _15e54s96", M = {
|
|
94
|
+
aspectRatio: "var(--_15e54s9z)"
|
|
95
|
+
}, g = "_15e54s9y _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn";
|
package/dist/card.css.d.ts
CHANGED
|
@@ -3,11 +3,14 @@ export declare const boxed: string;
|
|
|
3
3
|
export declare const touchableContainer: string;
|
|
4
4
|
export declare const touchable: string;
|
|
5
5
|
export declare const touchableMediaCardOverlay: string;
|
|
6
|
+
export declare const circularMediaOverlay: string;
|
|
7
|
+
export declare const touchableNakedMediaOverlay: string;
|
|
6
8
|
export declare const touchableCardOverlay: string;
|
|
7
9
|
export declare const touchableCardOverlayInverse: string;
|
|
8
10
|
export declare const touchableCardOverlayMedia: string;
|
|
9
11
|
export declare const mediaCard: string;
|
|
10
12
|
export declare const mediaCardContent: string;
|
|
13
|
+
export declare const nakedCardContent: string;
|
|
11
14
|
export declare const dataCard: string;
|
|
12
15
|
export declare const snapCard: string;
|
|
13
16
|
export declare const snapCardTouchableHover: string;
|
package/dist/card.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { VideoElement, VideoSource } from './video';
|
|
|
7
7
|
import type { ButtonLink, ButtonPrimary, ButtonSecondary } from './button';
|
|
8
8
|
import type { ExclusifyUnion } from './utils/utility-types';
|
|
9
9
|
import type { DataAttributes, IconProps, RendersElement, RendersNullableElement, TrackingEvent } from './utils/types';
|
|
10
|
-
type CardAction = {
|
|
10
|
+
export type CardAction = {
|
|
11
11
|
label: string;
|
|
12
12
|
onPress: () => void;
|
|
13
13
|
Icon?: React.FC<IconProps>;
|
|
@@ -15,17 +15,28 @@ type CardAction = {
|
|
|
15
15
|
iconColor?: string;
|
|
16
16
|
iconBackground?: string;
|
|
17
17
|
iconBackgroundInverse?: string;
|
|
18
|
+
disabled?: boolean;
|
|
18
19
|
};
|
|
20
|
+
type CardActionsGroupProps = {
|
|
21
|
+
actions?: Array<CardAction>;
|
|
22
|
+
onClose?: () => void;
|
|
23
|
+
type?: 'default' | 'inverse' | 'media';
|
|
24
|
+
};
|
|
25
|
+
export declare const CardActionsGroup: ({ actions, onClose, type, }: CardActionsGroupProps) => JSX.Element;
|
|
19
26
|
type AspectRatio = '1:1' | '16:9' | '7:10' | '9:10' | 'auto';
|
|
20
|
-
type
|
|
21
|
-
|
|
27
|
+
type TouchableProps = {
|
|
28
|
+
trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
|
|
29
|
+
} & ExclusifyUnion<{
|
|
30
|
+
href: string | undefined;
|
|
22
31
|
newTab?: boolean;
|
|
23
32
|
} | {
|
|
24
|
-
to
|
|
33
|
+
to: string | undefined;
|
|
25
34
|
fullPageOnWebView?: boolean;
|
|
26
35
|
} | {
|
|
27
|
-
onPress
|
|
36
|
+
onPress: PressHandler | undefined;
|
|
28
37
|
}>;
|
|
38
|
+
type TouchableCard<T> = T & TouchableProps;
|
|
39
|
+
type MaybeTouchableCard<T> = ExclusifyUnion<TouchableCard<T> | T>;
|
|
29
40
|
interface MediaCardBaseProps {
|
|
30
41
|
media: RendersElement<typeof Image> | RendersElement<typeof Video>;
|
|
31
42
|
headline?: string | RendersNullableElement<typeof Tag>;
|
|
@@ -44,11 +55,25 @@ interface MediaCardBaseProps {
|
|
|
44
55
|
'aria-label'?: string;
|
|
45
56
|
onClose?: () => void;
|
|
46
57
|
}
|
|
47
|
-
type MediaCardProps = MediaCardBaseProps & ExclusifyUnion<
|
|
58
|
+
type MediaCardProps = MediaCardBaseProps & ExclusifyUnion<TouchableProps | {
|
|
48
59
|
button?: RendersNullableElement<typeof ButtonPrimary>;
|
|
49
60
|
buttonLink?: RendersNullableElement<typeof ButtonLink>;
|
|
50
61
|
}>;
|
|
51
62
|
export declare const MediaCard: React.ForwardRefExoticComponent<MediaCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
export declare const NakedCard: React.ForwardRefExoticComponent<MediaCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
|
+
type SmallNakedCardProps = MaybeTouchableCard<{
|
|
65
|
+
media: RendersElement<typeof Image> | RendersElement<typeof Video>;
|
|
66
|
+
title?: string;
|
|
67
|
+
titleLinesMax?: number;
|
|
68
|
+
subtitle?: string;
|
|
69
|
+
subtitleLinesMax?: number;
|
|
70
|
+
description?: string;
|
|
71
|
+
descriptionLinesMax?: number;
|
|
72
|
+
extra?: React.ReactNode;
|
|
73
|
+
dataAttributes?: DataAttributes;
|
|
74
|
+
'aria-label'?: string;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const SmallNakedCard: React.ForwardRefExoticComponent<SmallNakedCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
52
77
|
interface DataCardBaseProps {
|
|
53
78
|
/**
|
|
54
79
|
* Typically a mistica-icons component element
|
|
@@ -71,12 +96,12 @@ interface DataCardBaseProps {
|
|
|
71
96
|
'aria-label'?: string;
|
|
72
97
|
onClose?: () => void;
|
|
73
98
|
}
|
|
74
|
-
type DataCardProps = DataCardBaseProps & ExclusifyUnion<
|
|
99
|
+
type DataCardProps = DataCardBaseProps & ExclusifyUnion<TouchableProps | {
|
|
75
100
|
button?: RendersNullableElement<typeof ButtonPrimary>;
|
|
76
101
|
buttonLink?: RendersNullableElement<typeof ButtonLink>;
|
|
77
102
|
}>;
|
|
78
103
|
export declare const DataCard: React.ForwardRefExoticComponent<DataCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
|
|
104
|
+
type SnapCardProps = MaybeTouchableCard<{
|
|
80
105
|
icon?: React.ReactElement;
|
|
81
106
|
title?: string;
|
|
82
107
|
titleLinesMax?: number;
|
|
@@ -87,10 +112,8 @@ interface SnapCardBaseProps {
|
|
|
87
112
|
'aria-label'?: string;
|
|
88
113
|
extra?: React.ReactNode;
|
|
89
114
|
isInverse?: boolean;
|
|
90
|
-
trackingEvent?: TrackingEvent | ReadonlyArray<TrackingEvent>;
|
|
91
115
|
children?: void;
|
|
92
|
-
}
|
|
93
|
-
type SnapCardProps = SnapCardBaseProps & BaseCardTouchableProps;
|
|
116
|
+
}>;
|
|
94
117
|
export declare const SnapCard: React.ForwardRefExoticComponent<SnapCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
95
118
|
interface CommonDisplayCardProps {
|
|
96
119
|
/**
|
|
@@ -122,7 +145,7 @@ type DisplayMediaCardWithVideoProps = Omit<CommonDisplayCardProps, 'actions' | '
|
|
|
122
145
|
poster?: string;
|
|
123
146
|
backgroundVideoRef?: React.RefObject<VideoElement>;
|
|
124
147
|
};
|
|
125
|
-
type DisplayMediaCardProps = DisplayMediaCardBaseProps & ExclusifyUnion<DisplayMediaCardWithImageProps | DisplayMediaCardWithVideoProps> & ExclusifyUnion<
|
|
148
|
+
type DisplayMediaCardProps = DisplayMediaCardBaseProps & ExclusifyUnion<DisplayMediaCardWithImageProps | DisplayMediaCardWithVideoProps> & ExclusifyUnion<TouchableProps | {
|
|
126
149
|
button?: React.ReactComponentElement<typeof ButtonPrimary>;
|
|
127
150
|
secondaryButton?: React.ReactComponentElement<typeof ButtonSecondary>;
|
|
128
151
|
buttonLink?: React.ReactComponentElement<typeof ButtonLink>;
|
|
@@ -130,7 +153,7 @@ type DisplayMediaCardProps = DisplayMediaCardBaseProps & ExclusifyUnion<DisplayM
|
|
|
130
153
|
type DisplayDataCardProps = CommonDisplayCardProps & {
|
|
131
154
|
extra?: React.ReactNode;
|
|
132
155
|
isInverse?: boolean;
|
|
133
|
-
} & ExclusifyUnion<
|
|
156
|
+
} & ExclusifyUnion<TouchableProps | {
|
|
134
157
|
button?: React.ReactComponentElement<typeof ButtonPrimary>;
|
|
135
158
|
secondaryButton?: React.ReactComponentElement<typeof ButtonSecondary>;
|
|
136
159
|
buttonLink?: React.ReactComponentElement<typeof ButtonLink>;
|
|
@@ -162,6 +185,6 @@ type PosterCardWithVideoProps = Omit<PosterCardBaseProps, 'actions' | 'onClose'>
|
|
|
162
185
|
poster?: string;
|
|
163
186
|
backgroundVideoRef?: React.RefObject<VideoElement>;
|
|
164
187
|
};
|
|
165
|
-
type PosterCardProps = ExclusifyUnion<PosterCardWithImageProps | PosterCardWithVideoProps
|
|
188
|
+
type PosterCardProps = MaybeTouchableCard<ExclusifyUnion<PosterCardWithImageProps | PosterCardWithVideoProps>>;
|
|
166
189
|
export declare const PosterCard: React.ForwardRefExoticComponent<PosterCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
167
190
|
export {};
|