@semcore/carousel 16.1.1 → 16.1.2-prerelease.3
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 +6 -0
- package/README.md +1 -31
- package/lib/cjs/Carousel.js +122 -121
- package/lib/cjs/Carousel.js.map +1 -1
- package/lib/cjs/Carousel.types.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/Carousel.js +120 -118
- package/lib/es6/Carousel.js.map +1 -1
- package/lib/es6/Carousel.types.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/Carousel.mjs +117 -113
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/Carousel.d.ts +1 -1
- package/lib/types/Carousel.types.d.ts +2 -2
- package/package.json +9 -9
- package/src/Carousel.tsx +107 -94
- package/src/Carousel.types.ts +2 -2
- package/src/translations/__intergalactic-dynamic-locales.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [16.1.2] - 2025-06-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/button` [16.0.1 ~> 16.0.2], `@semcore/breakpoints` [16.0.1 ~> 16.0.2], `@semcore/base-components` [16.0.1 ~> 16.0.2]).
|
|
10
|
+
|
|
5
11
|
## [16.1.1] - 2025-05-30
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -13,40 +13,10 @@
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install
|
|
16
|
+
npm install @semcore/carousel
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
## Usage
|
|
20
19
|
|
|
21
|
-
```jsx
|
|
22
|
-
import Carousel from 'intergalactic/carousel';
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<details>
|
|
26
|
-
<summary>Alternative installation and use</summary>
|
|
27
|
-
|
|
28
|
-
**We do not recommend this usage path due to possible dependency and update issues.**
|
|
29
|
-
|
|
30
|
-
### Install
|
|
31
|
-
|
|
32
|
-
You can only install one package from the design system
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm install @semcore/carousel @semcore/core
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
|
|
39
|
-
of the components that is discussed below. There should only be one version of the package in the project._
|
|
40
|
-
|
|
41
|
-
### Usage
|
|
42
|
-
|
|
43
|
-
You can use the package the same way but without `/ui/` in the import path.
|
|
44
|
-
|
|
45
|
-
```jsx
|
|
46
|
-
import Carousel from '@semcore/carousel';
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
</details>
|
|
50
20
|
|
|
51
21
|
## 👤 Author
|
|
52
22
|
|
package/lib/cjs/Carousel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,46 +10,48 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
var
|
|
13
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
|
+
var _isNativeReflectConstruct2 = _interopRequireDefault(require("@babel/runtime/helpers/isNativeReflectConstruct"));
|
|
15
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
16
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
18
|
var _core = require("@semcore/core");
|
|
18
|
-
var
|
|
19
|
+
var _breakpoints = require("@semcore/breakpoints");
|
|
19
20
|
var _button = _interopRequireDefault(require("@semcore/button"));
|
|
20
|
-
var _modal = _interopRequireDefault(require("@semcore/modal"));
|
|
21
|
-
var _flexBox = require("@semcore/flex-box");
|
|
22
|
-
var _l = _interopRequireDefault(require("@semcore/icon/ChevronRight/l"));
|
|
23
|
-
var _l2 = _interopRequireDefault(require("@semcore/icon/ChevronLeft/l"));
|
|
24
|
-
var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID"));
|
|
25
21
|
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
26
|
-
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
27
|
-
var _logger = _interopRequireDefault(require("@semcore/core/lib/utils/logger"));
|
|
28
22
|
var _findComponent = require("@semcore/core/lib/utils/findComponent");
|
|
29
|
-
var
|
|
23
|
+
var _logger = _interopRequireDefault(require("@semcore/core/lib/utils/logger"));
|
|
24
|
+
var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID"));
|
|
25
|
+
var _flexBox = require("@semcore/flex-box");
|
|
26
|
+
var _l = _interopRequireDefault(require("@semcore/icon/ChevronLeft/l"));
|
|
27
|
+
var _l2 = _interopRequireDefault(require("@semcore/icon/ChevronRight/l"));
|
|
28
|
+
var _modal = _interopRequireDefault(require("@semcore/modal"));
|
|
29
|
+
var _react = _interopRequireDefault(require("react"));
|
|
30
|
+
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
31
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
30
32
|
/*!__reshadow-styles__:"./style/carousel.shadow.css"*/
|
|
31
|
-
var style = (
|
|
33
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SCarousel_1ezuo_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_1ezuo_gg_{display:flex;transition:transform var(--duration_1ezuo) ease-in-out}.___SContentBox_1ezuo_gg_,.___SModalBox_1ezuo_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_1ezuo_gg_:has(.___SItem_1ezuo_gg_:focus-visible):after,.___SModalBox_1ezuo_gg_:has(.___SItem_1ezuo_gg_:focus-visible):after{content:\"\";display:block;position:absolute;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1;width:calc(100% - 3px*2);height:calc(100% - 3px*2);top:3px;left:3px}.___SModalContainer_1ezuo_gg_{display:flex;transition:transform var(--duration_1ezuo) ease-in-out}.___SItem_1ezuo_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_1ezuo);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_1ezuo_gg_.__zoomIn_1ezuo_gg_{cursor:zoom-in}.___SItem_1ezuo_gg_.__zoomOut_1ezuo_gg_{cursor:zoom-out}.___SIndicators_1ezuo_gg_{display:flex;justify-content:center;margin:var(--intergalactic-spacing-4x, 16px) 3px 3px 3px;outline:0;position:relative}.___SIndicator_1ezuo_gg_{margin:0 calc(.5*var(--intergalactic-spacing-3x, 12px));cursor:pointer;display:block;width:12px;height:12px;border-radius:var(--intergalactic-control-rounded, 6px);background-color:var(--intergalactic-icon-secondary-neutral, #a9abb6);opacity:var(--intergalactic-disabled-opacity, 0.3);-o-object-fit:cover;object-fit:cover;transition:ease-in-out opacity .1s}@media (hover:hover){.___SIndicator_1ezuo_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_1ezuo_gg_.__active_1ezuo_gg_{opacity:1}.___SIndicator_1ezuo_gg_.__inverted_1ezuo_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_1ezuo_gg_,.___SPrev_1ezuo_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_1ezuo_gg_ .___SNextButton_1ezuo_gg_ span:has(>svg:only-child),.___SNext_1ezuo_gg_ .___SPrevButton_1ezuo_gg_ span:has(>svg:only-child),.___SPrev_1ezuo_gg_ .___SNextButton_1ezuo_gg_ span:has(>svg:only-child),.___SPrev_1ezuo_gg_ .___SPrevButton_1ezuo_gg_ span:has(>svg:only-child){margin-left:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(2*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SPrev_1ezuo_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ezuo_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ezuo_gg_.__disabled_1ezuo_gg_,.___SPrev_1ezuo_gg_.__disabled_1ezuo_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_1ezuo_gg_{transition:none}}", /*__inner_css_end__*/"1ezuo_gg_"),
|
|
32
34
|
/*__reshadow_css_end__*/
|
|
33
35
|
{
|
|
34
|
-
"__SCarousel": "
|
|
35
|
-
"__SContainer": "
|
|
36
|
-
"--duration": "--
|
|
37
|
-
"__SModalContainer": "
|
|
38
|
-
"__SItem": "
|
|
39
|
-
"--transform": "--
|
|
40
|
-
"_zoomIn": "
|
|
41
|
-
"_zoomOut": "
|
|
42
|
-
"__SIndicators": "
|
|
43
|
-
"__SIndicator": "
|
|
44
|
-
"_active": "
|
|
45
|
-
"_inverted": "
|
|
46
|
-
"__SPrev": "
|
|
47
|
-
"__SNext": "
|
|
48
|
-
"_disabled": "
|
|
49
|
-
"__SContentBox": "
|
|
50
|
-
"__SModalBox": "
|
|
51
|
-
"__SPrevButton": "
|
|
52
|
-
"__SNextButton": "
|
|
36
|
+
"__SCarousel": "___SCarousel_1ezuo_gg_",
|
|
37
|
+
"__SContainer": "___SContainer_1ezuo_gg_",
|
|
38
|
+
"--duration": "--duration_1ezuo",
|
|
39
|
+
"__SModalContainer": "___SModalContainer_1ezuo_gg_",
|
|
40
|
+
"__SItem": "___SItem_1ezuo_gg_",
|
|
41
|
+
"--transform": "--transform_1ezuo",
|
|
42
|
+
"_zoomIn": "__zoomIn_1ezuo_gg_",
|
|
43
|
+
"_zoomOut": "__zoomOut_1ezuo_gg_",
|
|
44
|
+
"__SIndicators": "___SIndicators_1ezuo_gg_",
|
|
45
|
+
"__SIndicator": "___SIndicator_1ezuo_gg_",
|
|
46
|
+
"_active": "__active_1ezuo_gg_",
|
|
47
|
+
"_inverted": "__inverted_1ezuo_gg_",
|
|
48
|
+
"__SPrev": "___SPrev_1ezuo_gg_",
|
|
49
|
+
"__SNext": "___SNext_1ezuo_gg_",
|
|
50
|
+
"_disabled": "__disabled_1ezuo_gg_",
|
|
51
|
+
"__SContentBox": "___SContentBox_1ezuo_gg_",
|
|
52
|
+
"__SModalBox": "___SModalBox_1ezuo_gg_",
|
|
53
|
+
"__SPrevButton": "___SPrevButton_1ezuo_gg_",
|
|
54
|
+
"__SNextButton": "___SNextButton_1ezuo_gg_"
|
|
53
55
|
});
|
|
54
56
|
var MAP_TRANSFORM = {
|
|
55
57
|
ArrowLeft: 'left',
|
|
@@ -62,19 +64,17 @@ var isSmallScreen = function isSmallScreen(index) {
|
|
|
62
64
|
return index === 1;
|
|
63
65
|
};
|
|
64
66
|
var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
65
|
-
(0, _inherits2["default"])(CarouselRoot, _Component);
|
|
66
|
-
var _super = (0, _createSuper2["default"])(CarouselRoot);
|
|
67
67
|
function CarouselRoot(props) {
|
|
68
|
-
var
|
|
68
|
+
var _ref18, _props$index;
|
|
69
69
|
var _this;
|
|
70
70
|
(0, _classCallCheck2["default"])(this, CarouselRoot);
|
|
71
|
-
_this =
|
|
72
|
-
(0, _defineProperty2["default"])(
|
|
73
|
-
(0, _defineProperty2["default"])(
|
|
74
|
-
(0, _defineProperty2["default"])(
|
|
75
|
-
(0, _defineProperty2["default"])(
|
|
76
|
-
(0, _defineProperty2["default"])(
|
|
77
|
-
(0, _defineProperty2["default"])(
|
|
71
|
+
_this = _callSuper(this, CarouselRoot, [props]);
|
|
72
|
+
(0, _defineProperty2["default"])(_this, "defaultItemsCount", 0);
|
|
73
|
+
(0, _defineProperty2["default"])(_this, "refCarousel", /*#__PURE__*/_react["default"].createRef());
|
|
74
|
+
(0, _defineProperty2["default"])(_this, "refContainer", /*#__PURE__*/_react["default"].createRef());
|
|
75
|
+
(0, _defineProperty2["default"])(_this, "refModalContainer", /*#__PURE__*/_react["default"].createRef());
|
|
76
|
+
(0, _defineProperty2["default"])(_this, "_touchStartCoord", -1);
|
|
77
|
+
(0, _defineProperty2["default"])(_this, "handlerKeyDown", function (e) {
|
|
78
78
|
var firstSlide = 1;
|
|
79
79
|
var lastSlide = _this.state.items.length + 1;
|
|
80
80
|
switch (e.key) {
|
|
@@ -112,7 +112,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
112
112
|
_this.handleToggleZoomModal();
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
|
-
(0, _defineProperty2["default"])(
|
|
115
|
+
(0, _defineProperty2["default"])(_this, "toggleItem", function (item) {
|
|
116
116
|
var removeItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
117
117
|
_this.setState(function (prevState) {
|
|
118
118
|
var newItems = removeItem ? prevState.items.filter(function (element) {
|
|
@@ -126,7 +126,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
126
126
|
_this.defaultItemsCount++;
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
(0, _defineProperty2["default"])(
|
|
129
|
+
(0, _defineProperty2["default"])(_this, "transformContainer", function () {
|
|
130
130
|
var transform = _this.state.selectedIndex * -1 * 100;
|
|
131
131
|
if (_this.refContainer.current) {
|
|
132
132
|
_this.refContainer.current.style.transform = "translateX(".concat(transform, "%)");
|
|
@@ -135,7 +135,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
135
135
|
_this.refModalContainer.current.style.transform = "translateX(".concat(transform, "%)");
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
(0, _defineProperty2["default"])(
|
|
138
|
+
(0, _defineProperty2["default"])(_this, "getDirection", function (currentIndex, nextIndex) {
|
|
139
139
|
var bounded = _this.asProps.bounded;
|
|
140
140
|
if (bounded) {
|
|
141
141
|
return currentIndex < nextIndex ? 'right' : 'left';
|
|
@@ -162,7 +162,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
162
162
|
var left = tmpArr.indexOf(nextIndex);
|
|
163
163
|
return left - tmpCurrentIndex < 0 ? 'left' : 'right';
|
|
164
164
|
});
|
|
165
|
-
(0, _defineProperty2["default"])(
|
|
165
|
+
(0, _defineProperty2["default"])(_this, "slideToValue", function (nextIndex) {
|
|
166
166
|
var selectedIndex = _this.state.selectedIndex;
|
|
167
167
|
var direction = selectedIndex < nextIndex ? 'right' : 'left';
|
|
168
168
|
var diff = Math.abs(selectedIndex - nextIndex);
|
|
@@ -171,7 +171,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
171
171
|
diff--;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
(0, _defineProperty2["default"])(
|
|
174
|
+
(0, _defineProperty2["default"])(_this, "transformItem", function (direction) {
|
|
175
175
|
var bounded = _this.asProps.bounded;
|
|
176
176
|
var _this$state = _this.state,
|
|
177
177
|
items = _this$state.items,
|
|
@@ -216,12 +216,12 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
(0, _defineProperty2["default"])(
|
|
219
|
+
(0, _defineProperty2["default"])(_this, "bindHandlerClick", function (direction) {
|
|
220
220
|
return function () {
|
|
221
221
|
_this.transformItem(direction);
|
|
222
222
|
};
|
|
223
223
|
});
|
|
224
|
-
(0, _defineProperty2["default"])(
|
|
224
|
+
(0, _defineProperty2["default"])(_this, "bindHandlerClickIndicator", function (value) {
|
|
225
225
|
return function () {
|
|
226
226
|
var _this$state2 = _this.state,
|
|
227
227
|
selectedIndex = _this$state2.selectedIndex,
|
|
@@ -233,10 +233,10 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
233
233
|
_this.handlers.index(value);
|
|
234
234
|
};
|
|
235
235
|
});
|
|
236
|
-
(0, _defineProperty2["default"])(
|
|
236
|
+
(0, _defineProperty2["default"])(_this, "handlerTouchStart", function (e) {
|
|
237
237
|
_this._touchStartCoord = e.changedTouches[0].clientX;
|
|
238
238
|
});
|
|
239
|
-
(0, _defineProperty2["default"])(
|
|
239
|
+
(0, _defineProperty2["default"])(_this, "handlerTouchEnd", function (e) {
|
|
240
240
|
var touchEndCoord = e.changedTouches[0].clientX;
|
|
241
241
|
var delta = touchEndCoord - _this._touchStartCoord;
|
|
242
242
|
if (delta > 50) {
|
|
@@ -245,7 +245,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
245
245
|
_this.transformItem('right');
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
|
-
(0, _defineProperty2["default"])(
|
|
248
|
+
(0, _defineProperty2["default"])(_this, "handleToggleZoomModal", function () {
|
|
249
249
|
_this.setState(function (prevState) {
|
|
250
250
|
return {
|
|
251
251
|
isOpenZoom: !prevState.isOpenZoom
|
|
@@ -256,7 +256,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
|
-
(0, _defineProperty2["default"])(
|
|
259
|
+
(0, _defineProperty2["default"])(_this, "bindHandlerKeydownControl", function (direction) {
|
|
260
260
|
return function (e) {
|
|
261
261
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
262
262
|
e.preventDefault();
|
|
@@ -268,21 +268,22 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
268
268
|
_this.state = {
|
|
269
269
|
items: [],
|
|
270
270
|
isOpenZoom: false,
|
|
271
|
-
selectedIndex: (
|
|
271
|
+
selectedIndex: (_ref18 = (_props$index = props.index) !== null && _props$index !== void 0 ? _props$index : props.defaultIndex) !== null && _ref18 !== void 0 ? _ref18 : 0
|
|
272
272
|
};
|
|
273
273
|
return _this;
|
|
274
274
|
}
|
|
275
|
-
(0,
|
|
275
|
+
(0, _inherits2["default"])(CarouselRoot, _Component);
|
|
276
|
+
return (0, _createClass2["default"])(CarouselRoot, [{
|
|
276
277
|
key: "uncontrolledProps",
|
|
277
278
|
value: function uncontrolledProps() {
|
|
278
279
|
var _this2 = this;
|
|
279
280
|
return {
|
|
280
281
|
index: [null, function (_index) {
|
|
281
282
|
var _this2$refCarousel$cu;
|
|
282
|
-
(_this2$refCarousel$cu = _this2.refCarousel.current) === null || _this2$refCarousel$cu === void 0
|
|
283
|
+
(_this2$refCarousel$cu = _this2.refCarousel.current) === null || _this2$refCarousel$cu === void 0 || _this2$refCarousel$cu.blur();
|
|
283
284
|
setTimeout(function () {
|
|
284
285
|
var _this2$refCarousel$cu2;
|
|
285
|
-
(_this2$refCarousel$cu2 = _this2.refCarousel.current) === null || _this2$refCarousel$cu2 === void 0
|
|
286
|
+
(_this2$refCarousel$cu2 = _this2.refCarousel.current) === null || _this2$refCarousel$cu2 === void 0 || _this2$refCarousel$cu2.focus();
|
|
286
287
|
}, 0);
|
|
287
288
|
}]
|
|
288
289
|
};
|
|
@@ -328,7 +329,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
328
329
|
}
|
|
329
330
|
}, {
|
|
330
331
|
key: "getItemProps",
|
|
331
|
-
value: function getItemProps(
|
|
332
|
+
value: function getItemProps(_props, index) {
|
|
332
333
|
var zoom = this.asProps.zoom;
|
|
333
334
|
var isCurrent = this.isSelected(index);
|
|
334
335
|
return {
|
|
@@ -357,10 +358,10 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
357
358
|
disabled = selectedIndex === 0;
|
|
358
359
|
}
|
|
359
360
|
return {
|
|
360
|
-
onClick: this.bindHandlerClick('left'),
|
|
361
|
-
onKeyDown: this.bindHandlerKeydownControl('left'),
|
|
361
|
+
'onClick': this.bindHandlerClick('left'),
|
|
362
|
+
'onKeyDown': this.bindHandlerKeydownControl('left'),
|
|
362
363
|
disabled: disabled,
|
|
363
|
-
label: getI18nText('prev'),
|
|
364
|
+
'label': getI18nText('prev'),
|
|
364
365
|
'aria-controls': "igc-".concat(uid, "-carousel")
|
|
365
366
|
};
|
|
366
367
|
}
|
|
@@ -379,10 +380,10 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
379
380
|
disabled = selectedIndex === items.length - 1;
|
|
380
381
|
}
|
|
381
382
|
return {
|
|
382
|
-
onClick: this.bindHandlerClick('right'),
|
|
383
|
-
onKeyDown: this.bindHandlerKeydownControl('right'),
|
|
383
|
+
'onClick': this.bindHandlerClick('right'),
|
|
384
|
+
'onKeyDown': this.bindHandlerKeydownControl('right'),
|
|
384
385
|
disabled: disabled,
|
|
385
|
-
label: getI18nText('next'),
|
|
386
|
+
'label': getI18nText('next'),
|
|
386
387
|
'aria-controls': "igc-".concat(uid, "-carousel")
|
|
387
388
|
};
|
|
388
389
|
}
|
|
@@ -393,15 +394,15 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
393
394
|
var items = this.state.items;
|
|
394
395
|
var getI18nText = this.asProps.getI18nText;
|
|
395
396
|
return {
|
|
396
|
-
items: items.map(function (
|
|
397
|
+
'items': items.map(function (_item, key) {
|
|
397
398
|
return {
|
|
398
399
|
active: _this4.isSelected(key),
|
|
399
400
|
onClick: _this4.bindHandlerClickIndicator(key),
|
|
400
401
|
key: key
|
|
401
402
|
};
|
|
402
403
|
}),
|
|
403
|
-
role: 'tablist',
|
|
404
|
-
tabIndex: 0,
|
|
404
|
+
'role': 'tablist',
|
|
405
|
+
'tabIndex': 0,
|
|
405
406
|
'aria-label': getI18nText('slides')
|
|
406
407
|
};
|
|
407
408
|
}
|
|
@@ -411,7 +412,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
411
412
|
var isCurrent = this.isSelected(index);
|
|
412
413
|
var getI18nText = this.asProps.getI18nText;
|
|
413
414
|
return {
|
|
414
|
-
role: 'tab',
|
|
415
|
+
'role': 'tab',
|
|
415
416
|
'aria-selected': isCurrent,
|
|
416
417
|
'aria-controls': "igc-".concat(this.asProps.uid, "-carousel-item-").concat(index),
|
|
417
418
|
'aria-label': getI18nText('slide', {
|
|
@@ -457,7 +458,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
457
458
|
key: "renderModal",
|
|
458
459
|
value: function renderModal(isSmall, ComponentItems) {
|
|
459
460
|
var _ref = this.asProps,
|
|
460
|
-
|
|
461
|
+
_ref0,
|
|
461
462
|
_this5 = this;
|
|
462
463
|
var SModalContainer = _flexBox.Box;
|
|
463
464
|
var SModalBox = _flexBox.Box;
|
|
@@ -467,16 +468,16 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
467
468
|
duration = _this$asProps3.duration,
|
|
468
469
|
zoomWidth = _this$asProps3.zoomWidth;
|
|
469
470
|
var isOpenZoom = this.state.isOpenZoom;
|
|
470
|
-
return
|
|
471
|
+
return _ref0 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_modal["default"], _ref0.cn("Modal", {
|
|
471
472
|
"visible": isOpenZoom,
|
|
472
473
|
"onClose": this.handleToggleZoomModal,
|
|
473
474
|
"ghost": true,
|
|
474
475
|
"closable": !isSmall
|
|
475
|
-
}), /*#__PURE__*/_react["default"].createElement(_flexBox.Flex,
|
|
476
|
+
}), /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, _ref0.cn("Flex", {
|
|
476
477
|
"direction": isSmall ? 'column' : 'row'
|
|
477
478
|
}), !isSmall && /*#__PURE__*/_react["default"].createElement(Carousel.Prev, {
|
|
478
479
|
inverted: true
|
|
479
|
-
}), /*#__PURE__*/_react["default"].createElement(SModalBox,
|
|
480
|
+
}), /*#__PURE__*/_react["default"].createElement(SModalBox, _ref0.cn("SModalBox", {}), /*#__PURE__*/_react["default"].createElement(SModalContainer, _ref0.cn("SModalContainer", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
480
481
|
"aria-live": 'polite',
|
|
481
482
|
"use:duration": "".concat(duration, "ms"),
|
|
482
483
|
"ref": this.refModalContainer,
|
|
@@ -493,7 +494,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
493
494
|
zoomOut: true,
|
|
494
495
|
transform: _this5.isSelected(i) ? _this5.getTransform() : undefined
|
|
495
496
|
}));
|
|
496
|
-
}))), isSmall ? /*#__PURE__*/_react["default"].createElement(_flexBox.Flex,
|
|
497
|
+
}))), isSmall ? /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, _ref0.cn("Flex", {
|
|
497
498
|
"justifyContent": 'center',
|
|
498
499
|
"mt": 2
|
|
499
500
|
}), /*#__PURE__*/_react["default"].createElement(Carousel.Prev, {
|
|
@@ -510,7 +511,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
510
511
|
key: "render",
|
|
511
512
|
value: function render() {
|
|
512
513
|
var _ref2 = this.asProps,
|
|
513
|
-
|
|
514
|
+
_ref1,
|
|
514
515
|
_this6 = this;
|
|
515
516
|
var SCarousel = _flexBox.Box;
|
|
516
517
|
var _this$asProps4 = this.asProps,
|
|
@@ -523,7 +524,7 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
523
524
|
indicators = _this$asProps4.indicators;
|
|
524
525
|
var ComponentItems = (0, _findComponent.findAllComponents)(Children, ['Carousel.Item']);
|
|
525
526
|
var Controls = (0, _findComponent.findAllComponents)(Children, ['Carousel.Prev', 'Carousel.Next', 'Carousel.Indicators']);
|
|
526
|
-
return
|
|
527
|
+
return _ref1 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCarousel, _ref1.cn("SCarousel", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
527
528
|
"role": 'region',
|
|
528
529
|
"roledescription": 'carousel',
|
|
529
530
|
"onKeyDown": this.handlerKeyDown,
|
|
@@ -532,9 +533,9 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
532
533
|
"ref": this.refCarousel,
|
|
533
534
|
"id": "igc-".concat(uid, "-carousel"),
|
|
534
535
|
"aria-roledescription": ariaRoledescription
|
|
535
|
-
}, _ref2))), Controls.length === 0 ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_flexBox.Flex,
|
|
536
|
+
}, _ref2))), Controls.length === 0 ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, _ref1.cn("Flex", {}), /*#__PURE__*/_react["default"].createElement(Carousel.Prev, null), /*#__PURE__*/_react["default"].createElement(Carousel.ContentBox, null, /*#__PURE__*/_react["default"].createElement(Carousel.Container, {
|
|
536
537
|
"aria-label": ariaLabel
|
|
537
|
-
}, /*#__PURE__*/_react["default"].createElement(Children,
|
|
538
|
+
}, /*#__PURE__*/_react["default"].createElement(Children, _ref1.cn("Children", {})))), /*#__PURE__*/_react["default"].createElement(Carousel.Next, null)), indicators === 'default' && /*#__PURE__*/_react["default"].createElement(Carousel.Indicators, null), indicators === 'preview' && /*#__PURE__*/_react["default"].createElement(Carousel.Indicators, null, function () {
|
|
538
539
|
return ComponentItems.map(function (item, index) {
|
|
539
540
|
return /*#__PURE__*/_react["default"].createElement(Carousel.Indicator, (0, _extends2["default"])({}, item.props, {
|
|
540
541
|
key: item.key,
|
|
@@ -545,12 +546,11 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
545
546
|
onClick: _this6.bindHandlerClickIndicator(index)
|
|
546
547
|
}));
|
|
547
548
|
});
|
|
548
|
-
})) : /*#__PURE__*/_react["default"].createElement(Children,
|
|
549
|
+
})) : /*#__PURE__*/_react["default"].createElement(Children, _ref1.cn("Children", {})), hasZoom && /*#__PURE__*/_react["default"].createElement(BreakPoints, _ref1.cn("BreakPoints", {}), /*#__PURE__*/_react["default"].createElement(BreakPoints.Context.Consumer, null, function (mediaIndex) {
|
|
549
550
|
return _this6.renderModal(isSmallScreen(mediaIndex), ComponentItems);
|
|
550
551
|
})));
|
|
551
552
|
}
|
|
552
553
|
}]);
|
|
553
|
-
return CarouselRoot;
|
|
554
554
|
}(_core.Component);
|
|
555
555
|
(0, _defineProperty2["default"])(CarouselRoot, "displayName", 'Carousel');
|
|
556
556
|
(0, _defineProperty2["default"])(CarouselRoot, "defaultProps", {
|
|
@@ -566,45 +566,46 @@ var CarouselRoot = /*#__PURE__*/function (_Component) {
|
|
|
566
566
|
(0, _defineProperty2["default"])(CarouselRoot, "enhance", enhance);
|
|
567
567
|
var Container = function Container(props) {
|
|
568
568
|
var _ref3 = arguments[0],
|
|
569
|
-
|
|
569
|
+
_ref10;
|
|
570
570
|
var SContainer = _flexBox.Box;
|
|
571
571
|
var styles = props.styles,
|
|
572
572
|
duration = props.duration;
|
|
573
|
-
return
|
|
573
|
+
return _ref10 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SContainer, _ref10.cn("SContainer", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
574
574
|
"use:duration": "".concat(duration, "ms"),
|
|
575
575
|
"aria-live": 'polite'
|
|
576
576
|
}, _ref3))));
|
|
577
577
|
};
|
|
578
578
|
var ContentBox = function ContentBox(props) {
|
|
579
579
|
var _ref4 = arguments[0],
|
|
580
|
-
|
|
580
|
+
_ref11;
|
|
581
581
|
var SContentBox = _flexBox.Box;
|
|
582
582
|
var styles = props.styles;
|
|
583
|
-
return
|
|
583
|
+
return _ref11 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SContentBox, _ref11.cn("SContentBox", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref4))));
|
|
584
584
|
};
|
|
585
585
|
var Item = /*#__PURE__*/function (_Component2) {
|
|
586
|
-
(0, _inherits2["default"])(Item, _Component2);
|
|
587
|
-
var _super2 = (0, _createSuper2["default"])(Item);
|
|
588
586
|
function Item() {
|
|
589
587
|
var _this7;
|
|
590
588
|
(0, _classCallCheck2["default"])(this, Item);
|
|
591
589
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
592
590
|
args[_key] = arguments[_key];
|
|
593
591
|
}
|
|
594
|
-
_this7 =
|
|
595
|
-
(0, _defineProperty2["default"])(
|
|
592
|
+
_this7 = _callSuper(this, Item, [].concat(args));
|
|
593
|
+
(0, _defineProperty2["default"])(_this7, "refItem", /*#__PURE__*/_react["default"].createRef());
|
|
596
594
|
return _this7;
|
|
597
595
|
}
|
|
598
|
-
(0,
|
|
596
|
+
(0, _inherits2["default"])(Item, _Component2);
|
|
597
|
+
return (0, _createClass2["default"])(Item, [{
|
|
599
598
|
key: "componentDidMount",
|
|
600
599
|
value: function componentDidMount() {
|
|
601
600
|
var _this$props = this.props,
|
|
602
601
|
toggleItem = _this$props.toggleItem,
|
|
603
602
|
transform = _this$props.transform;
|
|
604
603
|
var refItem = this.refItem.current;
|
|
605
|
-
toggleItem && refItem
|
|
606
|
-
|
|
607
|
-
|
|
604
|
+
if (toggleItem && refItem) {
|
|
605
|
+
toggleItem({
|
|
606
|
+
node: refItem
|
|
607
|
+
});
|
|
608
|
+
}
|
|
608
609
|
if (transform && refItem) {
|
|
609
610
|
refItem.style.transform = "translateX(".concat(transform, "%)");
|
|
610
611
|
}
|
|
@@ -614,9 +615,11 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
614
615
|
value: function componentWillUnmount() {
|
|
615
616
|
var toggleItem = this.props.toggleItem;
|
|
616
617
|
var refItem = this.refItem.current;
|
|
617
|
-
toggleItem && refItem
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
if (toggleItem && refItem) {
|
|
619
|
+
toggleItem({
|
|
620
|
+
node: refItem
|
|
621
|
+
}, true);
|
|
622
|
+
}
|
|
620
623
|
}
|
|
621
624
|
}, {
|
|
622
625
|
key: "componentDidUpdate",
|
|
@@ -631,7 +634,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
631
634
|
key: "render",
|
|
632
635
|
value: function render() {
|
|
633
636
|
var _ref5 = this.asProps,
|
|
634
|
-
|
|
637
|
+
_ref12;
|
|
635
638
|
var _this$props2 = this.props,
|
|
636
639
|
styles = _this$props2.styles,
|
|
637
640
|
index = _this$props2.index,
|
|
@@ -640,7 +643,7 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
640
643
|
zoomIn = _this$props2.zoomIn,
|
|
641
644
|
onToggleZoomModal = _this$props2.onToggleZoomModal;
|
|
642
645
|
var SItem = _flexBox.Box;
|
|
643
|
-
return
|
|
646
|
+
return _ref12 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SItem, _ref12.cn("SItem", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
644
647
|
"ref": this.refItem,
|
|
645
648
|
"role": 'tabpanel',
|
|
646
649
|
"data-carousel": "igc-".concat(uid, "-carousel"),
|
|
@@ -652,11 +655,10 @@ var Item = /*#__PURE__*/function (_Component2) {
|
|
|
652
655
|
}, _ref5))));
|
|
653
656
|
}
|
|
654
657
|
}]);
|
|
655
|
-
return Item;
|
|
656
658
|
}(_core.Component);
|
|
657
659
|
var Prev = function Prev(props) {
|
|
658
660
|
var _ref6 = arguments[0],
|
|
659
|
-
|
|
661
|
+
_ref13;
|
|
660
662
|
var styles = props.styles,
|
|
661
663
|
children = props.children,
|
|
662
664
|
Children = props.Children,
|
|
@@ -666,10 +668,10 @@ var Prev = function Prev(props) {
|
|
|
666
668
|
inverted = props.inverted;
|
|
667
669
|
var SPrev = _flexBox.Box;
|
|
668
670
|
var SPrevButton = _button["default"];
|
|
669
|
-
return
|
|
671
|
+
return _ref13 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SPrev, _ref13.cn("SPrev", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
670
672
|
"top": top
|
|
671
|
-
}, _ref6))), children ? /*#__PURE__*/_react["default"].createElement(Children,
|
|
672
|
-
"addonLeft":
|
|
673
|
+
}, _ref6))), children ? /*#__PURE__*/_react["default"].createElement(Children, _ref13.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(SPrevButton, _ref13.cn("SPrevButton", {
|
|
674
|
+
"addonLeft": _l["default"],
|
|
673
675
|
"aria-label": label,
|
|
674
676
|
"theme": inverted ? 'invert' : 'muted',
|
|
675
677
|
"use": 'tertiary',
|
|
@@ -679,7 +681,7 @@ var Prev = function Prev(props) {
|
|
|
679
681
|
};
|
|
680
682
|
var Next = function Next(props) {
|
|
681
683
|
var _ref7 = arguments[0],
|
|
682
|
-
|
|
684
|
+
_ref14;
|
|
683
685
|
var styles = props.styles,
|
|
684
686
|
children = props.children,
|
|
685
687
|
Children = props.Children,
|
|
@@ -689,10 +691,10 @@ var Next = function Next(props) {
|
|
|
689
691
|
inverted = props.inverted;
|
|
690
692
|
var SNext = _flexBox.Box;
|
|
691
693
|
var SNextButton = _button["default"];
|
|
692
|
-
return
|
|
694
|
+
return _ref14 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SNext, _ref14.cn("SNext", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
693
695
|
"top": top
|
|
694
|
-
}, _ref7))), children ? /*#__PURE__*/_react["default"].createElement(Children,
|
|
695
|
-
"addonLeft":
|
|
696
|
+
}, _ref7))), children ? /*#__PURE__*/_react["default"].createElement(Children, _ref14.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(SNextButton, _ref14.cn("SNextButton", {
|
|
697
|
+
"addonLeft": _l2["default"],
|
|
696
698
|
"aria-label": label,
|
|
697
699
|
"theme": inverted ? 'invert' : 'muted',
|
|
698
700
|
"use": 'tertiary',
|
|
@@ -700,19 +702,19 @@ var Next = function Next(props) {
|
|
|
700
702
|
"innerOutline": true
|
|
701
703
|
})));
|
|
702
704
|
};
|
|
703
|
-
var Indicators = function Indicators(
|
|
705
|
+
var Indicators = function Indicators(_ref19) {
|
|
704
706
|
var _ref8 = arguments[0],
|
|
705
|
-
|
|
706
|
-
var items =
|
|
707
|
-
styles =
|
|
708
|
-
Children =
|
|
709
|
-
inverted =
|
|
707
|
+
_ref16;
|
|
708
|
+
var items = _ref19.items,
|
|
709
|
+
styles = _ref19.styles,
|
|
710
|
+
Children = _ref19.Children,
|
|
711
|
+
inverted = _ref19.inverted;
|
|
710
712
|
var SIndicators = _flexBox.Box;
|
|
711
713
|
if (Children.origin) {
|
|
712
|
-
var
|
|
713
|
-
return
|
|
714
|
+
var _ref15;
|
|
715
|
+
return _ref15 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref15.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref8))), /*#__PURE__*/_react["default"].createElement(Children, _ref15.cn("Children", {})));
|
|
714
716
|
}
|
|
715
|
-
return
|
|
717
|
+
return _ref16 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicators, _ref16.cn("SIndicators", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref8))), items === null || items === void 0 ? void 0 : items.map(function (item, index) {
|
|
716
718
|
return /*#__PURE__*/_react["default"].createElement(Carousel.Indicator, (0, _extends2["default"])({
|
|
717
719
|
key: index
|
|
718
720
|
}, item, {
|
|
@@ -720,13 +722,13 @@ var Indicators = function Indicators(_ref21) {
|
|
|
720
722
|
}));
|
|
721
723
|
}));
|
|
722
724
|
};
|
|
723
|
-
var Indicator = function Indicator(
|
|
725
|
+
var Indicator = function Indicator(_ref20) {
|
|
724
726
|
var _ref9 = arguments[0],
|
|
725
|
-
|
|
726
|
-
var styles =
|
|
727
|
-
Children =
|
|
727
|
+
_ref17;
|
|
728
|
+
var styles = _ref20.styles,
|
|
729
|
+
Children = _ref20.Children;
|
|
728
730
|
var SIndicator = _flexBox.Box;
|
|
729
|
-
return
|
|
731
|
+
return _ref17 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIndicator, _ref17.cn("SIndicator", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref9))), /*#__PURE__*/_react["default"].createElement(Children, _ref17.cn("Children", {})));
|
|
730
732
|
};
|
|
731
733
|
var Carousel = (0, _core.createComponent)(CarouselRoot, {
|
|
732
734
|
Container: Container,
|
|
@@ -737,6 +739,5 @@ var Carousel = (0, _core.createComponent)(CarouselRoot, {
|
|
|
737
739
|
Prev: Prev,
|
|
738
740
|
Next: Next
|
|
739
741
|
});
|
|
740
|
-
var _default = Carousel;
|
|
741
|
-
exports["default"] = _default;
|
|
742
|
+
var _default = exports["default"] = Carousel;
|
|
742
743
|
//# sourceMappingURL=Carousel.js.map
|