@atlaskit/smart-card 45.6.7 → 45.6.9
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/CHANGELOG.md +14 -0
- package/dist/cjs/messages.js +45 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/components/carousel/CarouselSlide.compiled.css +52 -0
- package/dist/cjs/view/EmbedCard/components/carousel/CarouselSlide.js +124 -0
- package/dist/cjs/view/EmbedCard/components/carousel/index.compiled.css +12 -0
- package/dist/cjs/view/EmbedCard/components/carousel/index.js +122 -0
- package/dist/cjs/view/EmbedCard/components/carousel/types.js +5 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/messages.js +45 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/components/carousel/CarouselSlide.compiled.css +52 -0
- package/dist/es2019/view/EmbedCard/components/carousel/CarouselSlide.js +114 -0
- package/dist/es2019/view/EmbedCard/components/carousel/index.compiled.css +12 -0
- package/dist/es2019/view/EmbedCard/components/carousel/index.js +101 -0
- package/dist/es2019/view/EmbedCard/components/carousel/types.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/messages.js +45 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/components/carousel/CarouselSlide.compiled.css +52 -0
- package/dist/esm/view/EmbedCard/components/carousel/CarouselSlide.js +117 -0
- package/dist/esm/view/EmbedCard/components/carousel/index.compiled.css +12 -0
- package/dist/esm/view/EmbedCard/components/carousel/index.js +113 -0
- package/dist/esm/view/EmbedCard/components/carousel/types.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/carousel/CarouselSlide.d.ts +39 -0
- package/dist/types/view/EmbedCard/components/carousel/index.d.ts +22 -0
- package/dist/types/view/EmbedCard/components/carousel/types.d.ts +26 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.6.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5005b8d4da66a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5005b8d4da66a) -
|
|
8
|
+
Add carousel view for EmbedCard - a contextual teaser that displays provider benefits via a slide
|
|
9
|
+
carousel.
|
|
10
|
+
|
|
11
|
+
## 45.6.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 45.6.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/messages.js
CHANGED
|
@@ -166,6 +166,51 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
166
166
|
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
167
167
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
|
|
168
168
|
},
|
|
169
|
+
connect_link_account_embed_teaser_dot_label: {
|
|
170
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_dot_label.non-final',
|
|
171
|
+
defaultMessage: 'Go to slide {index} of {total}',
|
|
172
|
+
description: 'Accessible label for a dot indicator button in the teaser carousel, describing which slide it navigates to'
|
|
173
|
+
},
|
|
174
|
+
connect_link_account_embed_teaser_dot_row_label: {
|
|
175
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_dot_row_label.non-final',
|
|
176
|
+
defaultMessage: 'Slides',
|
|
177
|
+
description: 'Accessible label for the group of dot indicator buttons in the teaser carousel'
|
|
178
|
+
},
|
|
179
|
+
connect_link_account_embed_teaser_button_next: {
|
|
180
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_button_next.non-final',
|
|
181
|
+
defaultMessage: 'Next',
|
|
182
|
+
description: 'A button to view next teaser on benefit of connecting account on Smart Link embed'
|
|
183
|
+
},
|
|
184
|
+
connect_link_account_embed_teaser_slide_1_description: {
|
|
185
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_1_description.non-final',
|
|
186
|
+
defaultMessage: 'Connect your account to preview {context} files and documents directly inside Atlassian. No more context switching.',
|
|
187
|
+
description: 'A description on a teaser slide 1 on benefit of connecting account on Smart Link embed'
|
|
188
|
+
},
|
|
189
|
+
connect_link_account_embed_teaser_slide_1_title: {
|
|
190
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_1_title.non-final',
|
|
191
|
+
defaultMessage: 'See your {context} work without leaving Atlassian',
|
|
192
|
+
description: 'A title on a teaser slide 1 on benefit of connecting account on Smart Link embed'
|
|
193
|
+
},
|
|
194
|
+
connect_link_account_embed_teaser_slide_2_title: {
|
|
195
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_2_title.non-final',
|
|
196
|
+
defaultMessage: 'Search once, find it everywhere',
|
|
197
|
+
description: 'A title on a teaser slide 2 on benefit of connecting account on Smart Link embed'
|
|
198
|
+
},
|
|
199
|
+
connect_link_account_embed_teaser_slide_2_description: {
|
|
200
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_2_description.non-final',
|
|
201
|
+
defaultMessage: 'Search relevant {context} files alongside your Confluence pages and Jira issues, always respecting your {context} permissions.',
|
|
202
|
+
description: 'A description on a teaser slide 2 on benefit of connecting account on Smart Link embed'
|
|
203
|
+
},
|
|
204
|
+
connect_link_account_embed_teaser_slide_3_title: {
|
|
205
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_3_title.non-final',
|
|
206
|
+
defaultMessage: 'Get help from Rovo',
|
|
207
|
+
description: 'A title on a teaser slide 3 on benefit of connecting account on Smart Link embed'
|
|
208
|
+
},
|
|
209
|
+
connect_link_account_embed_teaser_slide_3_description: {
|
|
210
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_3_description.non-final',
|
|
211
|
+
defaultMessage: "Rovo uses your {context} content to answer questions, summarise docs, and draft updates using the work you've already done.",
|
|
212
|
+
description: 'A description on a teaser slide 3 on benefit of connecting account on Smart Link embed'
|
|
213
|
+
},
|
|
169
214
|
connect_link_account_success_flag_description: {
|
|
170
215
|
id: 'fabric.linking.connect_link_account_success_flag_description',
|
|
171
216
|
defaultMessage: 'Shared links now display rich previews.',
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card" || '',
|
|
14
|
-
packageVersion: "45.6.
|
|
14
|
+
packageVersion: "45.6.8" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
3
|
+
._zulp1ejb{gap:var(--ds-space-300,24px)}
|
|
4
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
5
|
+
._zulpze3t{gap:var(--ds-space-0,0)}._16jlkb7n{flex-grow:1}
|
|
6
|
+
._18m91wug{overflow-y:auto}
|
|
7
|
+
._19bv1jfw{padding-left:var(--ds-space-500,40px)}
|
|
8
|
+
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
9
|
+
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
10
|
+
._1bah1h6o{justify-content:center}
|
|
11
|
+
._1bsb1osq{width:100%}
|
|
12
|
+
._1bsb1tcg{width:24px}
|
|
13
|
+
._1bsb7vkz{width:1pc}
|
|
14
|
+
._1bsbi2wt{width:6px}
|
|
15
|
+
._1e0c1txw{display:flex}
|
|
16
|
+
._1e0c1ule{display:block}
|
|
17
|
+
._1n261g80{flex-wrap:wrap}
|
|
18
|
+
._1o9zidpf{flex-shrink:0}
|
|
19
|
+
._1o9zkb7n{flex-shrink:1}
|
|
20
|
+
._1oecfnf5{transition-duration:.2s}
|
|
21
|
+
._1reo1wug{overflow-x:auto}
|
|
22
|
+
._2lx21bp4{flex-direction:column}
|
|
23
|
+
._2lx2vrvc{flex-direction:row}
|
|
24
|
+
._4cvr1fhb{align-items:stretch}
|
|
25
|
+
._4cvr1h6o{align-items:center}
|
|
26
|
+
._4cvr1y6m{align-items:flex-start}
|
|
27
|
+
._4t3i1osq{height:100%}
|
|
28
|
+
._4t3i1tcg{height:24px}
|
|
29
|
+
._4t3i7vkz{height:1pc}
|
|
30
|
+
._4t3ii2wt{height:6px}
|
|
31
|
+
._5ral1f51{object-fit:contain}
|
|
32
|
+
._6fl45ucs{transition-timing-function:ease}
|
|
33
|
+
._bfhk1dy8{background-color:var(--ds-background-accent-blue-subtler,#cfe1fd)}
|
|
34
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
35
|
+
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
36
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
37
|
+
._c71l1wdt{max-height:220px}
|
|
38
|
+
._ca0q1jfw{padding-top:var(--ds-space-500,40px)}
|
|
39
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
40
|
+
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
41
|
+
._i0dlghg7{flex-basis:240px}
|
|
42
|
+
._i0dluuw1{flex-basis:200px}
|
|
43
|
+
._k8m01k61{transition-property:background-color}
|
|
44
|
+
._lcxvglyw{pointer-events:none}
|
|
45
|
+
._n3td1jfw{padding-bottom:var(--ds-space-500,40px)}
|
|
46
|
+
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
47
|
+
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
48
|
+
._rsufaqso{object-position:center center}
|
|
49
|
+
._u5f31jfw{padding-right:var(--ds-space-500,40px)}
|
|
50
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
51
|
+
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
52
|
+
._vchhusvi{box-sizing:border-box}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* CarouselSlide.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
require("./CarouselSlide.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
|
+
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
14
|
+
var _css = require("@atlaskit/css");
|
|
15
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
16
|
+
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
17
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
|
+
var _messages = require("../../../../messages");
|
|
19
|
+
var styles = {
|
|
20
|
+
columnImage: "_16jlkb7n _1o9zkb7n _i0dlghg7 _1e0c1txw _4cvr1h6o _1bah1h6o _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _bfhk1dy8",
|
|
21
|
+
columnContent: "_zulp1ejb _16jlkb7n _1o9zkb7n _i0dluuw1 _1e0c1txw _2lx21bp4 _ca0q1jfw _u5f31jfw _n3td1jfw _19bv1jfw _4cvr1y6m _1bah1h6o",
|
|
22
|
+
columnContentCompact: "_ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi",
|
|
23
|
+
dot: "_2rko1rr0 _1bsbi2wt _4t3ii2wt _bfhki8nm _1oecfnf5 _k8m01k61 _6fl45ucs _lcxvglyw",
|
|
24
|
+
dotActive: "_bfhkjmqp",
|
|
25
|
+
dotPassable: "_2rko1rr0 _1e0c1txw _4cvr1h6o _1bah1h6o _1bsb7vkz _4t3i7vkz _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
|
|
26
|
+
icon: "_1o9zidpf _1bsb1tcg _4t3i1tcg _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
27
|
+
iconImage: "_1bsb1osq _4t3i1osq _5ral1f51",
|
|
28
|
+
image: "_1bsb1osq _c71l1wdt _5ral1f51 _rsufaqso _1e0c1ule",
|
|
29
|
+
rowButton: "_zulpu2gc _1e0c1txw _2lx2vrvc _1n261g80 _4cvr1h6o",
|
|
30
|
+
rowButtonCompact: "_1bsb1osq",
|
|
31
|
+
rowDot: "_zulpze3t _1e0c1txw _2lx2vrvc _4cvr1h6o",
|
|
32
|
+
rowIcon: "_zulpu2gc _1e0c1txw _4cvr1h6o",
|
|
33
|
+
slide: "_1reo1wug _18m91wug _1e0c1txw _1n261g80 _1bsb1osq _4t3i1osq _4cvr1fhb _vchhusvi"
|
|
34
|
+
};
|
|
35
|
+
var CarouselSlide = function CarouselSlide(_ref) {
|
|
36
|
+
var icon = _ref.icon,
|
|
37
|
+
iconLabel = _ref.iconLabel,
|
|
38
|
+
title = _ref.title,
|
|
39
|
+
description = _ref.description,
|
|
40
|
+
image = _ref.image,
|
|
41
|
+
primaryButtonLabel = _ref.primaryButtonLabel,
|
|
42
|
+
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
|
43
|
+
onDotClick = _ref.onDotClick,
|
|
44
|
+
onNextClick = _ref.onNextClick,
|
|
45
|
+
slideIndex = _ref.slideIndex,
|
|
46
|
+
totalSlides = _ref.totalSlides,
|
|
47
|
+
size = _ref.size,
|
|
48
|
+
_ref$testId = _ref.testId,
|
|
49
|
+
testId = _ref$testId === void 0 ? 'embed-card-teaser-slide' : _ref$testId;
|
|
50
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
51
|
+
formatMessage = _useIntl.formatMessage;
|
|
52
|
+
var isCompact = size !== 'full';
|
|
53
|
+
var showNavigation = totalSlides > 1;
|
|
54
|
+
var renderedIcon = icon == null ? null : typeof icon === 'string' ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
55
|
+
xcss: styles.icon
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
57
|
+
src: icon,
|
|
58
|
+
alt: iconLabel,
|
|
59
|
+
className: (0, _runtime.ax)([styles.iconImage])
|
|
60
|
+
})) : /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
61
|
+
xcss: styles.icon
|
|
62
|
+
}, icon);
|
|
63
|
+
var renderedImage = image == null ? null : typeof image === 'string' ? /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
64
|
+
src: image,
|
|
65
|
+
alt: title,
|
|
66
|
+
className: (0, _runtime.ax)([styles.image])
|
|
67
|
+
}) : image;
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
69
|
+
xcss: styles.slide,
|
|
70
|
+
testId: testId
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
72
|
+
xcss: (0, _css.cx)(styles.columnContent, isCompact && styles.columnContentCompact)
|
|
73
|
+
}, isCompact && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
74
|
+
xcss: (0, _css.cx)(styles.rowButton, styles.rowButtonCompact)
|
|
75
|
+
}, /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
76
|
+
appearance: "primary",
|
|
77
|
+
onClick: onPrimaryButtonClick,
|
|
78
|
+
shouldFitContainer: true,
|
|
79
|
+
testId: "".concat(testId, "-connect-compact")
|
|
80
|
+
}, primaryButtonLabel)), renderedIcon && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
81
|
+
xcss: styles.rowIcon
|
|
82
|
+
}, renderedIcon), /*#__PURE__*/_react.default.createElement(_compiled.Box, null, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
83
|
+
size: "medium",
|
|
84
|
+
testId: "".concat(testId, "-title")
|
|
85
|
+
}, title)), /*#__PURE__*/_react.default.createElement(_compiled.Box, null, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
86
|
+
testId: "".concat(testId, "-description")
|
|
87
|
+
}, description)), /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
88
|
+
xcss: styles.rowButton
|
|
89
|
+
}, !isCompact && /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
90
|
+
appearance: "primary",
|
|
91
|
+
onClick: onPrimaryButtonClick,
|
|
92
|
+
testId: "".concat(testId, "-connect")
|
|
93
|
+
}, primaryButtonLabel), showNavigation && onNextClick && /*#__PURE__*/_react.default.createElement(_new.default, {
|
|
94
|
+
appearance: "subtle",
|
|
95
|
+
onClick: onNextClick,
|
|
96
|
+
testId: "".concat(testId, "-next")
|
|
97
|
+
}, formatMessage(_messages.messages.connect_link_account_embed_teaser_button_next)), showNavigation && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
98
|
+
xcss: styles.rowDot,
|
|
99
|
+
role: "group",
|
|
100
|
+
"aria-label": formatMessage(_messages.messages.connect_link_account_embed_teaser_dot_row_label)
|
|
101
|
+
}, Array.from({
|
|
102
|
+
length: totalSlides
|
|
103
|
+
}, function (_, i) {
|
|
104
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
105
|
+
key: i,
|
|
106
|
+
xcss: styles.dotPassable,
|
|
107
|
+
onClick: function onClick() {
|
|
108
|
+
return onDotClick === null || onDotClick === void 0 ? void 0 : onDotClick(i);
|
|
109
|
+
},
|
|
110
|
+
"aria-label": formatMessage(_messages.messages.connect_link_account_embed_teaser_dot_label, {
|
|
111
|
+
index: i + 1,
|
|
112
|
+
total: totalSlides
|
|
113
|
+
}),
|
|
114
|
+
"aria-current": i === slideIndex ? 'true' : undefined,
|
|
115
|
+
testId: "".concat(testId, "-dot-").concat(i)
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
117
|
+
xcss: (0, _css.cx)(styles.dot, i === slideIndex && styles.dotActive)
|
|
118
|
+
}));
|
|
119
|
+
})))), !isCompact && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
120
|
+
xcss: styles.columnImage,
|
|
121
|
+
testId: "".concat(testId, "-image-panel")
|
|
122
|
+
}, renderedImage));
|
|
123
|
+
};
|
|
124
|
+
var _default = exports.default = CarouselSlide;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
._18m915vq{overflow-y:hidden}
|
|
2
|
+
._1bsb1osq{width:100%}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1o511hrf{animation-fill-mode:both}
|
|
5
|
+
._1pglafbj{animation-timing-function:cubic-bezier(.25,.46,.45,.94)}
|
|
6
|
+
._1reo15vq{overflow-x:hidden}
|
|
7
|
+
._4t3i1osq{height:100%}
|
|
8
|
+
._5sagjx92{animation-duration:.28s}
|
|
9
|
+
._j7hql61g{animation-name:kjqoltm}
|
|
10
|
+
._kqswh2mm{position:relative}
|
|
11
|
+
@keyframes kjqoltm{0%{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
|
|
12
|
+
@media (prefers-reduced-motion:reduce){._bl8aglyw{animation-name:none}._2hwzhgkh{animation-duration:.01ms}}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.default = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
15
|
+
var _CarouselSlide = _interopRequireDefault(require("./CarouselSlide"));
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
var styles = {
|
|
18
|
+
carousel: "_1reo15vq _18m915vq _1e0c1txw _1bsb1osq _4t3i1osq _kqswh2mm"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// Slide enters from the right: translates from 40px right + fades in
|
|
22
|
+
var slideInFromRight = null;
|
|
23
|
+
var slideWrapperMap = {
|
|
24
|
+
static: "_1bsb1osq _4t3i1osq",
|
|
25
|
+
animated: "_1bsb1osq _4t3i1osq _j7hql61g _5sagjx92 _1pglafbj _1o511hrf _bl8aglyw _2hwzhgkh"
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Derives layout size bucket from pixel dimensions.
|
|
29
|
+
* Used instead of CSS @container queries (which are blocked by the linter)
|
|
30
|
+
* to control which elements are shown at different card sizes.
|
|
31
|
+
*/
|
|
32
|
+
var getSize = function getSize(width, height) {
|
|
33
|
+
if (width < 200 || height < 100) {
|
|
34
|
+
return 'minimal';
|
|
35
|
+
}
|
|
36
|
+
if (width < 400 || height < 140) {
|
|
37
|
+
return 'compact';
|
|
38
|
+
}
|
|
39
|
+
return 'full';
|
|
40
|
+
};
|
|
41
|
+
var Carousel = function Carousel(_ref) {
|
|
42
|
+
var icon = _ref.icon,
|
|
43
|
+
iconLabel = _ref.iconLabel,
|
|
44
|
+
items = _ref.items,
|
|
45
|
+
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
|
46
|
+
primaryButtonLabel = _ref.primaryButtonLabel,
|
|
47
|
+
_ref$testId = _ref.testId,
|
|
48
|
+
testId = _ref$testId === void 0 ? 'embed-card-teaser-carousel' : _ref$testId;
|
|
49
|
+
var _useState = (0, _react.useState)(0),
|
|
50
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
51
|
+
activeIndex = _useState2[0],
|
|
52
|
+
setActiveIndex = _useState2[1];
|
|
53
|
+
var _useState3 = (0, _react.useState)('full'),
|
|
54
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
55
|
+
size = _useState4[0],
|
|
56
|
+
setSize = _useState4[1];
|
|
57
|
+
|
|
58
|
+
// Tracks whether the user has navigated at least once.
|
|
59
|
+
// The first slide is rendered statically (no animation) to avoid any
|
|
60
|
+
// CSS animation running during SSR or on the initial paint.
|
|
61
|
+
var hasNavigated = (0, _react.useRef)(false);
|
|
62
|
+
var containerRef = (0, _react.useRef)(null);
|
|
63
|
+
|
|
64
|
+
// Observe the carousel container's size and update the layout bucket.
|
|
65
|
+
(0, _react.useEffect)(function () {
|
|
66
|
+
var el = containerRef.current;
|
|
67
|
+
if (!el) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
var observer = new ResizeObserver(function (_ref2) {
|
|
71
|
+
var _ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
72
|
+
entry = _ref3[0];
|
|
73
|
+
var _entry$contentRect = entry.contentRect,
|
|
74
|
+
width = _entry$contentRect.width,
|
|
75
|
+
height = _entry$contentRect.height;
|
|
76
|
+
setSize(getSize(width, height));
|
|
77
|
+
});
|
|
78
|
+
observer.observe(el);
|
|
79
|
+
return function () {
|
|
80
|
+
return observer.disconnect();
|
|
81
|
+
};
|
|
82
|
+
}, []);
|
|
83
|
+
var goNext = (0, _react.useCallback)(function () {
|
|
84
|
+
hasNavigated.current = true;
|
|
85
|
+
setActiveIndex(function (current) {
|
|
86
|
+
return (current + 1) % items.length;
|
|
87
|
+
});
|
|
88
|
+
}, [items.length]);
|
|
89
|
+
var goTo = (0, _react.useCallback)(function (index) {
|
|
90
|
+
if (index === activeIndex) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
hasNavigated.current = true;
|
|
94
|
+
setActiveIndex(index);
|
|
95
|
+
}, [activeIndex]);
|
|
96
|
+
var currentSlide = items[activeIndex];
|
|
97
|
+
var isLastSlide = activeIndex === items.length - 1;
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
99
|
+
ref: containerRef,
|
|
100
|
+
xcss: styles.carousel,
|
|
101
|
+
testId: testId
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
103
|
+
key: activeIndex,
|
|
104
|
+
xcss: slideWrapperMap[hasNavigated.current ? 'animated' : 'static'],
|
|
105
|
+
"aria-live": "polite"
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_CarouselSlide.default, {
|
|
107
|
+
primaryButtonLabel: primaryButtonLabel,
|
|
108
|
+
description: currentSlide.description,
|
|
109
|
+
icon: icon,
|
|
110
|
+
iconLabel: iconLabel,
|
|
111
|
+
image: currentSlide.image,
|
|
112
|
+
title: currentSlide.title,
|
|
113
|
+
onPrimaryButtonClick: onPrimaryButtonClick,
|
|
114
|
+
onDotClick: goTo,
|
|
115
|
+
onNextClick: !isLastSlide ? goNext : undefined,
|
|
116
|
+
size: size,
|
|
117
|
+
slideIndex: activeIndex,
|
|
118
|
+
testId: "".concat(testId, "-slide"),
|
|
119
|
+
totalSlides: items.length
|
|
120
|
+
})));
|
|
121
|
+
};
|
|
122
|
+
var _default = exports.default = Carousel;
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.6.
|
|
22
|
+
packageVersion: "45.6.8",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
package/dist/es2019/messages.js
CHANGED
|
@@ -160,6 +160,51 @@ export const messages = defineMessages({
|
|
|
160
160
|
defaultMessage: 'To show a preview of this link, connect your {context} account.',
|
|
161
161
|
description: 'Shown when a user does not have access to a link, but can connect their external account to view the link on card view. Displayed in byline.'
|
|
162
162
|
},
|
|
163
|
+
connect_link_account_embed_teaser_dot_label: {
|
|
164
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_dot_label.non-final',
|
|
165
|
+
defaultMessage: 'Go to slide {index} of {total}',
|
|
166
|
+
description: 'Accessible label for a dot indicator button in the teaser carousel, describing which slide it navigates to'
|
|
167
|
+
},
|
|
168
|
+
connect_link_account_embed_teaser_dot_row_label: {
|
|
169
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_dot_row_label.non-final',
|
|
170
|
+
defaultMessage: 'Slides',
|
|
171
|
+
description: 'Accessible label for the group of dot indicator buttons in the teaser carousel'
|
|
172
|
+
},
|
|
173
|
+
connect_link_account_embed_teaser_button_next: {
|
|
174
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_button_next.non-final',
|
|
175
|
+
defaultMessage: 'Next',
|
|
176
|
+
description: 'A button to view next teaser on benefit of connecting account on Smart Link embed'
|
|
177
|
+
},
|
|
178
|
+
connect_link_account_embed_teaser_slide_1_description: {
|
|
179
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_1_description.non-final',
|
|
180
|
+
defaultMessage: 'Connect your account to preview {context} files and documents directly inside Atlassian. No more context switching.',
|
|
181
|
+
description: 'A description on a teaser slide 1 on benefit of connecting account on Smart Link embed'
|
|
182
|
+
},
|
|
183
|
+
connect_link_account_embed_teaser_slide_1_title: {
|
|
184
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_1_title.non-final',
|
|
185
|
+
defaultMessage: 'See your {context} work without leaving Atlassian',
|
|
186
|
+
description: 'A title on a teaser slide 1 on benefit of connecting account on Smart Link embed'
|
|
187
|
+
},
|
|
188
|
+
connect_link_account_embed_teaser_slide_2_title: {
|
|
189
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_2_title.non-final',
|
|
190
|
+
defaultMessage: 'Search once, find it everywhere',
|
|
191
|
+
description: 'A title on a teaser slide 2 on benefit of connecting account on Smart Link embed'
|
|
192
|
+
},
|
|
193
|
+
connect_link_account_embed_teaser_slide_2_description: {
|
|
194
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_2_description.non-final',
|
|
195
|
+
defaultMessage: 'Search relevant {context} files alongside your Confluence pages and Jira issues, always respecting your {context} permissions.',
|
|
196
|
+
description: 'A description on a teaser slide 2 on benefit of connecting account on Smart Link embed'
|
|
197
|
+
},
|
|
198
|
+
connect_link_account_embed_teaser_slide_3_title: {
|
|
199
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_3_title.non-final',
|
|
200
|
+
defaultMessage: 'Get help from Rovo',
|
|
201
|
+
description: 'A title on a teaser slide 3 on benefit of connecting account on Smart Link embed'
|
|
202
|
+
},
|
|
203
|
+
connect_link_account_embed_teaser_slide_3_description: {
|
|
204
|
+
id: 'fabric.linking.connect_link_account_embed_teaser_slide_3_description.non-final',
|
|
205
|
+
defaultMessage: "Rovo uses your {context} content to answer questions, summarise docs, and draft updates using the work you've already done.",
|
|
206
|
+
description: 'A description on a teaser slide 3 on benefit of connecting account on Smart Link embed'
|
|
207
|
+
},
|
|
163
208
|
connect_link_account_success_flag_description: {
|
|
164
209
|
id: 'fabric.linking.connect_link_account_success_flag_description',
|
|
165
210
|
defaultMessage: 'Shared links now display rich previews.',
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "45.6.
|
|
5
|
+
packageVersion: "45.6.8" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
3
|
+
._zulp1ejb{gap:var(--ds-space-300,24px)}
|
|
4
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
5
|
+
._zulpze3t{gap:var(--ds-space-0,0)}._16jlkb7n{flex-grow:1}
|
|
6
|
+
._18m91wug{overflow-y:auto}
|
|
7
|
+
._19bv1jfw{padding-left:var(--ds-space-500,40px)}
|
|
8
|
+
._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
|
|
9
|
+
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
10
|
+
._1bah1h6o{justify-content:center}
|
|
11
|
+
._1bsb1osq{width:100%}
|
|
12
|
+
._1bsb1tcg{width:24px}
|
|
13
|
+
._1bsb7vkz{width:1pc}
|
|
14
|
+
._1bsbi2wt{width:6px}
|
|
15
|
+
._1e0c1txw{display:flex}
|
|
16
|
+
._1e0c1ule{display:block}
|
|
17
|
+
._1n261g80{flex-wrap:wrap}
|
|
18
|
+
._1o9zidpf{flex-shrink:0}
|
|
19
|
+
._1o9zkb7n{flex-shrink:1}
|
|
20
|
+
._1oecfnf5{transition-duration:.2s}
|
|
21
|
+
._1reo1wug{overflow-x:auto}
|
|
22
|
+
._2lx21bp4{flex-direction:column}
|
|
23
|
+
._2lx2vrvc{flex-direction:row}
|
|
24
|
+
._4cvr1fhb{align-items:stretch}
|
|
25
|
+
._4cvr1h6o{align-items:center}
|
|
26
|
+
._4cvr1y6m{align-items:flex-start}
|
|
27
|
+
._4t3i1osq{height:100%}
|
|
28
|
+
._4t3i1tcg{height:24px}
|
|
29
|
+
._4t3i7vkz{height:1pc}
|
|
30
|
+
._4t3ii2wt{height:6px}
|
|
31
|
+
._5ral1f51{object-fit:contain}
|
|
32
|
+
._6fl45ucs{transition-timing-function:ease}
|
|
33
|
+
._bfhk1dy8{background-color:var(--ds-background-accent-blue-subtler,#cfe1fd)}
|
|
34
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
35
|
+
._bfhkjmqp{background-color:var(--ds-background-selected-bold,#1868db)}
|
|
36
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
37
|
+
._c71l1wdt{max-height:220px}
|
|
38
|
+
._ca0q1jfw{padding-top:var(--ds-space-500,40px)}
|
|
39
|
+
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
40
|
+
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
41
|
+
._i0dlghg7{flex-basis:240px}
|
|
42
|
+
._i0dluuw1{flex-basis:200px}
|
|
43
|
+
._k8m01k61{transition-property:background-color}
|
|
44
|
+
._lcxvglyw{pointer-events:none}
|
|
45
|
+
._n3td1jfw{padding-bottom:var(--ds-space-500,40px)}
|
|
46
|
+
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
47
|
+
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
48
|
+
._rsufaqso{object-position:center center}
|
|
49
|
+
._u5f31jfw{padding-right:var(--ds-space-500,40px)}
|
|
50
|
+
._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
|
|
51
|
+
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
52
|
+
._vchhusvi{box-sizing:border-box}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* CarouselSlide.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import "./CarouselSlide.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
|
+
import Button from '@atlaskit/button/new';
|
|
7
|
+
import { cx } from '@atlaskit/css';
|
|
8
|
+
import Heading from '@atlaskit/heading';
|
|
9
|
+
import Image from '@atlaskit/image';
|
|
10
|
+
import { Box, Pressable, Text } from '@atlaskit/primitives/compiled';
|
|
11
|
+
import { messages } from '../../../../messages';
|
|
12
|
+
const styles = {
|
|
13
|
+
columnImage: "_16jlkb7n _1o9zkb7n _i0dlghg7 _1e0c1txw _4cvr1h6o _1bah1h6o _ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _bfhk1dy8",
|
|
14
|
+
columnContent: "_zulp1ejb _16jlkb7n _1o9zkb7n _i0dluuw1 _1e0c1txw _2lx21bp4 _ca0q1jfw _u5f31jfw _n3td1jfw _19bv1jfw _4cvr1y6m _1bah1h6o",
|
|
15
|
+
columnContentCompact: "_ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi",
|
|
16
|
+
dot: "_2rko1rr0 _1bsbi2wt _4t3ii2wt _bfhki8nm _1oecfnf5 _k8m01k61 _6fl45ucs _lcxvglyw",
|
|
17
|
+
dotActive: "_bfhkjmqp",
|
|
18
|
+
dotPassable: "_2rko1rr0 _1e0c1txw _4cvr1h6o _1bah1h6o _1bsb7vkz _4t3i7vkz _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
|
|
19
|
+
icon: "_1o9zidpf _1bsb1tcg _4t3i1tcg _1e0c1txw _4cvr1h6o _1bah1h6o",
|
|
20
|
+
iconImage: "_1bsb1osq _4t3i1osq _5ral1f51",
|
|
21
|
+
image: "_1bsb1osq _c71l1wdt _5ral1f51 _rsufaqso _1e0c1ule",
|
|
22
|
+
rowButton: "_zulpu2gc _1e0c1txw _2lx2vrvc _1n261g80 _4cvr1h6o",
|
|
23
|
+
rowButtonCompact: "_1bsb1osq",
|
|
24
|
+
rowDot: "_zulpze3t _1e0c1txw _2lx2vrvc _4cvr1h6o",
|
|
25
|
+
rowIcon: "_zulpu2gc _1e0c1txw _4cvr1h6o",
|
|
26
|
+
slide: "_1reo1wug _18m91wug _1e0c1txw _1n261g80 _1bsb1osq _4t3i1osq _4cvr1fhb _vchhusvi"
|
|
27
|
+
};
|
|
28
|
+
const CarouselSlide = ({
|
|
29
|
+
icon,
|
|
30
|
+
iconLabel,
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
image,
|
|
34
|
+
primaryButtonLabel,
|
|
35
|
+
onPrimaryButtonClick,
|
|
36
|
+
onDotClick,
|
|
37
|
+
onNextClick,
|
|
38
|
+
slideIndex,
|
|
39
|
+
totalSlides,
|
|
40
|
+
size,
|
|
41
|
+
testId = 'embed-card-teaser-slide'
|
|
42
|
+
}) => {
|
|
43
|
+
const {
|
|
44
|
+
formatMessage
|
|
45
|
+
} = useIntl();
|
|
46
|
+
const isCompact = size !== 'full';
|
|
47
|
+
const showNavigation = totalSlides > 1;
|
|
48
|
+
const renderedIcon = icon == null ? null : typeof icon === 'string' ? /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
xcss: styles.icon
|
|
50
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
51
|
+
src: icon,
|
|
52
|
+
alt: iconLabel,
|
|
53
|
+
className: ax([styles.iconImage])
|
|
54
|
+
})) : /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
xcss: styles.icon
|
|
56
|
+
}, icon);
|
|
57
|
+
const renderedImage = image == null ? null : typeof image === 'string' ? /*#__PURE__*/React.createElement(Image, {
|
|
58
|
+
src: image,
|
|
59
|
+
alt: title,
|
|
60
|
+
className: ax([styles.image])
|
|
61
|
+
}) : image;
|
|
62
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
63
|
+
xcss: styles.slide,
|
|
64
|
+
testId: testId
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
66
|
+
xcss: cx(styles.columnContent, isCompact && styles.columnContentCompact)
|
|
67
|
+
}, isCompact && /*#__PURE__*/React.createElement(Box, {
|
|
68
|
+
xcss: cx(styles.rowButton, styles.rowButtonCompact)
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
70
|
+
appearance: "primary",
|
|
71
|
+
onClick: onPrimaryButtonClick,
|
|
72
|
+
shouldFitContainer: true,
|
|
73
|
+
testId: `${testId}-connect-compact`
|
|
74
|
+
}, primaryButtonLabel)), renderedIcon && /*#__PURE__*/React.createElement(Box, {
|
|
75
|
+
xcss: styles.rowIcon
|
|
76
|
+
}, renderedIcon), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Heading, {
|
|
77
|
+
size: "medium",
|
|
78
|
+
testId: `${testId}-title`
|
|
79
|
+
}, title)), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Text, {
|
|
80
|
+
testId: `${testId}-description`
|
|
81
|
+
}, description)), /*#__PURE__*/React.createElement(Box, {
|
|
82
|
+
xcss: styles.rowButton
|
|
83
|
+
}, !isCompact && /*#__PURE__*/React.createElement(Button, {
|
|
84
|
+
appearance: "primary",
|
|
85
|
+
onClick: onPrimaryButtonClick,
|
|
86
|
+
testId: `${testId}-connect`
|
|
87
|
+
}, primaryButtonLabel), showNavigation && onNextClick && /*#__PURE__*/React.createElement(Button, {
|
|
88
|
+
appearance: "subtle",
|
|
89
|
+
onClick: onNextClick,
|
|
90
|
+
testId: `${testId}-next`
|
|
91
|
+
}, formatMessage(messages.connect_link_account_embed_teaser_button_next)), showNavigation && /*#__PURE__*/React.createElement(Box, {
|
|
92
|
+
xcss: styles.rowDot,
|
|
93
|
+
role: "group",
|
|
94
|
+
"aria-label": formatMessage(messages.connect_link_account_embed_teaser_dot_row_label)
|
|
95
|
+
}, Array.from({
|
|
96
|
+
length: totalSlides
|
|
97
|
+
}, (_, i) => /*#__PURE__*/React.createElement(Pressable, {
|
|
98
|
+
key: i,
|
|
99
|
+
xcss: styles.dotPassable,
|
|
100
|
+
onClick: () => onDotClick === null || onDotClick === void 0 ? void 0 : onDotClick(i),
|
|
101
|
+
"aria-label": formatMessage(messages.connect_link_account_embed_teaser_dot_label, {
|
|
102
|
+
index: i + 1,
|
|
103
|
+
total: totalSlides
|
|
104
|
+
}),
|
|
105
|
+
"aria-current": i === slideIndex ? 'true' : undefined,
|
|
106
|
+
testId: `${testId}-dot-${i}`
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
108
|
+
xcss: cx(styles.dot, i === slideIndex && styles.dotActive)
|
|
109
|
+
})))))), !isCompact && /*#__PURE__*/React.createElement(Box, {
|
|
110
|
+
xcss: styles.columnImage,
|
|
111
|
+
testId: `${testId}-image-panel`
|
|
112
|
+
}, renderedImage));
|
|
113
|
+
};
|
|
114
|
+
export default CarouselSlide;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
._18m915vq{overflow-y:hidden}
|
|
2
|
+
._1bsb1osq{width:100%}
|
|
3
|
+
._1e0c1txw{display:flex}
|
|
4
|
+
._1o511hrf{animation-fill-mode:both}
|
|
5
|
+
._1pglafbj{animation-timing-function:cubic-bezier(.25,.46,.45,.94)}
|
|
6
|
+
._1reo15vq{overflow-x:hidden}
|
|
7
|
+
._4t3i1osq{height:100%}
|
|
8
|
+
._5sagjx92{animation-duration:.28s}
|
|
9
|
+
._j7hql61g{animation-name:kjqoltm}
|
|
10
|
+
._kqswh2mm{position:relative}
|
|
11
|
+
@keyframes kjqoltm{0%{opacity:0;transform:translateX(40px)}to{opacity:1;transform:translateX(0)}}
|
|
12
|
+
@media (prefers-reduced-motion:reduce){._bl8aglyw{animation-name:none}._2hwzhgkh{animation-duration:.01ms}}
|