@semcore/carousel 3.47.0 → 3.47.1-prerelease.2
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/lib/cjs/Carousel.js +21 -21
- package/lib/es6/Carousel.js +21 -21
- package/lib/esm/Carousel.mjs +155 -155
- package/package.json +8 -8
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
|
+
## [3.47.1] - 2025-03-18
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [4.60.0 ~> 4.60.1], `@semcore/utils` [4.48.0 ~> 4.48.1], `@semcore/button` [5.42.0 ~> 5.42.1], `@semcore/breakpoints` [1.41.0 ~> 1.41.1]).
|
|
10
|
+
|
|
5
11
|
## [3.47.0] - 2025-03-14
|
|
6
12
|
|
|
7
13
|
### Added
|
package/lib/cjs/Carousel.js
CHANGED
|
@@ -31,27 +31,27 @@ var _findComponent = require("@semcore/utils/lib/findComponent");
|
|
|
31
31
|
var _breakpoints = require("@semcore/breakpoints");
|
|
32
32
|
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
33
33
|
/*__reshadow-styles__:"./style/carousel.shadow.css"*/
|
|
34
|
-
var style = ( /*__reshadow_css_start__*/_index2.sstyled.insert( /*__inner_css_start__*/".
|
|
35
|
-
"__SCarousel": "
|
|
36
|
-
"__SContainer": "
|
|
37
|
-
"--duration": "--
|
|
38
|
-
"__SModalContainer": "
|
|
39
|
-
"__SItem": "
|
|
40
|
-
"--transform": "--
|
|
41
|
-
"_zoomIn": "
|
|
42
|
-
"_zoomOut": "
|
|
43
|
-
"__SIndicators": "
|
|
44
|
-
"_keyboardFocused": "
|
|
45
|
-
"__SIndicator": "
|
|
46
|
-
"_active": "
|
|
47
|
-
"_inverted": "
|
|
48
|
-
"__SPrev": "
|
|
49
|
-
"__SNext": "
|
|
50
|
-
"_disabled": "
|
|
51
|
-
"__SContentBox": "
|
|
52
|
-
"__SModalBox": "
|
|
53
|
-
"__SPrevButton": "
|
|
54
|
-
"__SNextButton": "
|
|
34
|
+
var style = ( /*__reshadow_css_start__*/_index2.sstyled.insert( /*__inner_css_start__*/".___SCarousel_6q0pi_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SContentBox_6q0pi_gg_,.___SModalBox_6q0pi_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):after,.___SModalBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):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_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SItem_6q0pi_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_6q0pi);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_6q0pi_gg_.__zoomIn_6q0pi_gg_{cursor:zoom-in}.___SItem_6q0pi_gg_.__zoomOut_6q0pi_gg_{cursor:zoom-out}.___SIndicators_6q0pi_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_6q0pi_gg_.__keyboardFocused_6q0pi_gg_: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);top:0;left:3px}.___SIndicator_6q0pi_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_6q0pi_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_6q0pi_gg_.__active_6q0pi_gg_{opacity:1}.___SIndicator_6q0pi_gg_.__inverted_6q0pi_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_6q0pi_gg_,.___SPrev_6q0pi_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SNext_6q0pi_gg_ .___SPrevButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SPrevButton_6q0pi_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)}.___SNextButton_6q0pi_gg_:focus-visible,.___SPrevButton_6q0pi_gg_:focus-visible{box-shadow:none}.___SNextButton_6q0pi_gg_:focus-visible:after,.___SPrevButton_6q0pi_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;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_6q0pi_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_.__disabled_6q0pi_gg_,.___SPrev_6q0pi_gg_.__disabled_6q0pi_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_6q0pi_gg_{transition:none}}" /*__inner_css_end__*/, "6q0pi_gg_") /*__reshadow_css_end__*/, {
|
|
35
|
+
"__SCarousel": "___SCarousel_6q0pi_gg_",
|
|
36
|
+
"__SContainer": "___SContainer_6q0pi_gg_",
|
|
37
|
+
"--duration": "--duration_6q0pi",
|
|
38
|
+
"__SModalContainer": "___SModalContainer_6q0pi_gg_",
|
|
39
|
+
"__SItem": "___SItem_6q0pi_gg_",
|
|
40
|
+
"--transform": "--transform_6q0pi",
|
|
41
|
+
"_zoomIn": "__zoomIn_6q0pi_gg_",
|
|
42
|
+
"_zoomOut": "__zoomOut_6q0pi_gg_",
|
|
43
|
+
"__SIndicators": "___SIndicators_6q0pi_gg_",
|
|
44
|
+
"_keyboardFocused": "__keyboardFocused_6q0pi_gg_",
|
|
45
|
+
"__SIndicator": "___SIndicator_6q0pi_gg_",
|
|
46
|
+
"_active": "__active_6q0pi_gg_",
|
|
47
|
+
"_inverted": "__inverted_6q0pi_gg_",
|
|
48
|
+
"__SPrev": "___SPrev_6q0pi_gg_",
|
|
49
|
+
"__SNext": "___SNext_6q0pi_gg_",
|
|
50
|
+
"_disabled": "__disabled_6q0pi_gg_",
|
|
51
|
+
"__SContentBox": "___SContentBox_6q0pi_gg_",
|
|
52
|
+
"__SModalBox": "___SModalBox_6q0pi_gg_",
|
|
53
|
+
"__SPrevButton": "___SPrevButton_6q0pi_gg_",
|
|
54
|
+
"__SNextButton": "___SNextButton_6q0pi_gg_"
|
|
55
55
|
});
|
|
56
56
|
var MAP_TRANSFORM = {
|
|
57
57
|
ArrowLeft: 'left',
|
package/lib/es6/Carousel.js
CHANGED
|
@@ -30,27 +30,27 @@ import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
|
30
30
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
31
31
|
import logger from '@semcore/utils/lib/logger';
|
|
32
32
|
/*__reshadow-styles__:"./style/carousel.shadow.css"*/
|
|
33
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
34
|
-
"__SCarousel": "
|
|
35
|
-
"__SContainer": "
|
|
36
|
-
"--duration": "--
|
|
37
|
-
"__SModalContainer": "
|
|
38
|
-
"__SItem": "
|
|
39
|
-
"--transform": "--
|
|
40
|
-
"_zoomIn": "
|
|
41
|
-
"_zoomOut": "
|
|
42
|
-
"__SIndicators": "
|
|
43
|
-
"_keyboardFocused": "
|
|
44
|
-
"__SIndicator": "
|
|
45
|
-
"_active": "
|
|
46
|
-
"_inverted": "
|
|
47
|
-
"__SPrev": "
|
|
48
|
-
"__SNext": "
|
|
49
|
-
"_disabled": "
|
|
50
|
-
"__SContentBox": "
|
|
51
|
-
"__SModalBox": "
|
|
52
|
-
"__SPrevButton": "
|
|
53
|
-
"__SNextButton": "
|
|
33
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCarousel_6q0pi_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SContentBox_6q0pi_gg_,.___SModalBox_6q0pi_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):after,.___SModalBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):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_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SItem_6q0pi_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_6q0pi);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_6q0pi_gg_.__zoomIn_6q0pi_gg_{cursor:zoom-in}.___SItem_6q0pi_gg_.__zoomOut_6q0pi_gg_{cursor:zoom-out}.___SIndicators_6q0pi_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_6q0pi_gg_.__keyboardFocused_6q0pi_gg_: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);top:0;left:3px}.___SIndicator_6q0pi_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_6q0pi_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_6q0pi_gg_.__active_6q0pi_gg_{opacity:1}.___SIndicator_6q0pi_gg_.__inverted_6q0pi_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_6q0pi_gg_,.___SPrev_6q0pi_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SNext_6q0pi_gg_ .___SPrevButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SPrevButton_6q0pi_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)}.___SNextButton_6q0pi_gg_:focus-visible,.___SPrevButton_6q0pi_gg_:focus-visible{box-shadow:none}.___SNextButton_6q0pi_gg_:focus-visible:after,.___SPrevButton_6q0pi_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;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_6q0pi_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_.__disabled_6q0pi_gg_,.___SPrev_6q0pi_gg_.__disabled_6q0pi_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_6q0pi_gg_{transition:none}}" /*__inner_css_end__*/, "6q0pi_gg_") /*__reshadow_css_end__*/, {
|
|
34
|
+
"__SCarousel": "___SCarousel_6q0pi_gg_",
|
|
35
|
+
"__SContainer": "___SContainer_6q0pi_gg_",
|
|
36
|
+
"--duration": "--duration_6q0pi",
|
|
37
|
+
"__SModalContainer": "___SModalContainer_6q0pi_gg_",
|
|
38
|
+
"__SItem": "___SItem_6q0pi_gg_",
|
|
39
|
+
"--transform": "--transform_6q0pi",
|
|
40
|
+
"_zoomIn": "__zoomIn_6q0pi_gg_",
|
|
41
|
+
"_zoomOut": "__zoomOut_6q0pi_gg_",
|
|
42
|
+
"__SIndicators": "___SIndicators_6q0pi_gg_",
|
|
43
|
+
"_keyboardFocused": "__keyboardFocused_6q0pi_gg_",
|
|
44
|
+
"__SIndicator": "___SIndicator_6q0pi_gg_",
|
|
45
|
+
"_active": "__active_6q0pi_gg_",
|
|
46
|
+
"_inverted": "__inverted_6q0pi_gg_",
|
|
47
|
+
"__SPrev": "___SPrev_6q0pi_gg_",
|
|
48
|
+
"__SNext": "___SNext_6q0pi_gg_",
|
|
49
|
+
"_disabled": "__disabled_6q0pi_gg_",
|
|
50
|
+
"__SContentBox": "___SContentBox_6q0pi_gg_",
|
|
51
|
+
"__SModalBox": "___SModalBox_6q0pi_gg_",
|
|
52
|
+
"__SPrevButton": "___SPrevButton_6q0pi_gg_",
|
|
53
|
+
"__SNextButton": "___SNextButton_6q0pi_gg_"
|
|
54
54
|
});
|
|
55
55
|
import { findAllComponents } from '@semcore/utils/lib/findComponent';
|
|
56
56
|
import { createBreakpoints } from '@semcore/breakpoints';
|
package/lib/esm/Carousel.mjs
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { sstyled as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { Flex as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
1
|
+
import w from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import I from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import B from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
|
+
import $ from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
|
+
import D from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
+
import g from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
|
+
import O from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import Z from "@babel/runtime/helpers/esm/createSuper";
|
|
9
|
+
import m from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
+
import { sstyled as j } from "@semcore/utils/lib/core/index";
|
|
11
|
+
import U, { sstyled as C, assignProps as S, Component as F } from "@semcore/core";
|
|
12
|
+
import a from "react";
|
|
13
|
+
import A from "@semcore/button";
|
|
14
|
+
import V from "@semcore/modal";
|
|
15
|
+
import { Flex as E, Box as x } from "@semcore/flex-box";
|
|
16
|
+
import X from "@semcore/icon/ChevronRight/l";
|
|
17
|
+
import W from "@semcore/icon/ChevronLeft/l";
|
|
18
18
|
import Y from "@semcore/utils/lib/uniqueID";
|
|
19
19
|
import G from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
20
|
-
import { localizedMessages as
|
|
21
|
-
import
|
|
22
|
-
import { findAllComponents as
|
|
20
|
+
import { localizedMessages as R } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
21
|
+
import N from "@semcore/utils/lib/logger";
|
|
22
|
+
import { findAllComponents as T } from "@semcore/utils/lib/findComponent";
|
|
23
23
|
import { createBreakpoints as J } from "@semcore/breakpoints";
|
|
24
|
-
import
|
|
24
|
+
import H from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
25
25
|
var Q = (
|
|
26
26
|
/*__reshadow_css_start__*/
|
|
27
|
-
(
|
|
27
|
+
(j.insert(
|
|
28
28
|
/*__inner_css_start__*/
|
|
29
|
-
'.
|
|
30
|
-
"
|
|
29
|
+
'.___SCarousel_6q0pi_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SContentBox_6q0pi_gg_,.___SModalBox_6q0pi_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):after,.___SModalBox_6q0pi_gg_:has(.___SItem_6q0pi_gg_.__keyboardFocused_6q0pi_gg_):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_6q0pi_gg_{display:flex;transition:transform var(--duration_6q0pi) ease-in-out}.___SItem_6q0pi_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_6q0pi);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_6q0pi_gg_.__zoomIn_6q0pi_gg_{cursor:zoom-in}.___SItem_6q0pi_gg_.__zoomOut_6q0pi_gg_{cursor:zoom-out}.___SIndicators_6q0pi_gg_{display:flex;justify-content:center;margin-top:var(--intergalactic-spacing-4x, 16px);outline:0;position:relative}.___SIndicators_6q0pi_gg_.__keyboardFocused_6q0pi_gg_: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);top:0;left:3px}.___SIndicator_6q0pi_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_6q0pi_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_6q0pi_gg_.__active_6q0pi_gg_{opacity:1}.___SIndicator_6q0pi_gg_.__inverted_6q0pi_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_6q0pi_gg_,.___SPrev_6q0pi_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SNext_6q0pi_gg_ .___SPrevButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SNextButton_6q0pi_gg_ span:has(>svg:only-child),.___SPrev_6q0pi_gg_ .___SPrevButton_6q0pi_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)}.___SNextButton_6q0pi_gg_:focus-visible,.___SPrevButton_6q0pi_gg_:focus-visible{box-shadow:none}.___SNextButton_6q0pi_gg_:focus-visible:after,.___SPrevButton_6q0pi_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;border-radius:var(--intergalactic-control-rounded, 6px)}.___SPrev_6q0pi_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_6q0pi_gg_.__disabled_6q0pi_gg_,.___SPrev_6q0pi_gg_.__disabled_6q0pi_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_6q0pi_gg_{transition:none}}',
|
|
30
|
+
"6q0pi_gg_"
|
|
31
31
|
), {
|
|
32
|
-
__SCarousel: "
|
|
33
|
-
__SContainer: "
|
|
34
|
-
"--duration": "--
|
|
35
|
-
__SModalContainer: "
|
|
36
|
-
__SItem: "
|
|
37
|
-
"--transform": "--
|
|
38
|
-
_zoomIn: "
|
|
39
|
-
_zoomOut: "
|
|
40
|
-
__SIndicators: "
|
|
41
|
-
_keyboardFocused: "
|
|
42
|
-
__SIndicator: "
|
|
43
|
-
_active: "
|
|
44
|
-
_inverted: "
|
|
45
|
-
__SPrev: "
|
|
46
|
-
__SNext: "
|
|
47
|
-
_disabled: "
|
|
48
|
-
__SContentBox: "
|
|
49
|
-
__SModalBox: "
|
|
50
|
-
__SPrevButton: "
|
|
51
|
-
__SNextButton: "
|
|
32
|
+
__SCarousel: "___SCarousel_6q0pi_gg_",
|
|
33
|
+
__SContainer: "___SContainer_6q0pi_gg_",
|
|
34
|
+
"--duration": "--duration_6q0pi",
|
|
35
|
+
__SModalContainer: "___SModalContainer_6q0pi_gg_",
|
|
36
|
+
__SItem: "___SItem_6q0pi_gg_",
|
|
37
|
+
"--transform": "--transform_6q0pi",
|
|
38
|
+
_zoomIn: "__zoomIn_6q0pi_gg_",
|
|
39
|
+
_zoomOut: "__zoomOut_6q0pi_gg_",
|
|
40
|
+
__SIndicators: "___SIndicators_6q0pi_gg_",
|
|
41
|
+
_keyboardFocused: "__keyboardFocused_6q0pi_gg_",
|
|
42
|
+
__SIndicator: "___SIndicator_6q0pi_gg_",
|
|
43
|
+
_active: "__active_6q0pi_gg_",
|
|
44
|
+
_inverted: "__inverted_6q0pi_gg_",
|
|
45
|
+
__SPrev: "___SPrev_6q0pi_gg_",
|
|
46
|
+
__SNext: "___SNext_6q0pi_gg_",
|
|
47
|
+
_disabled: "__disabled_6q0pi_gg_",
|
|
48
|
+
__SContentBox: "___SContentBox_6q0pi_gg_",
|
|
49
|
+
__SModalBox: "___SModalBox_6q0pi_gg_",
|
|
50
|
+
__SPrevButton: "___SPrevButton_6q0pi_gg_",
|
|
51
|
+
__SNextButton: "___SNextButton_6q0pi_gg_"
|
|
52
52
|
})
|
|
53
53
|
), ee = {
|
|
54
54
|
ArrowLeft: "left",
|
|
55
55
|
ArrowRight: "right"
|
|
56
|
-
}, te = [Y(), G(
|
|
56
|
+
}, te = [Y(), G(R)], re = ["(min-width: 481px)", "(max-width: 480px)"], z = J(re), ne = function(c) {
|
|
57
57
|
return c === 1;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
var c =
|
|
61
|
-
function _(
|
|
58
|
+
}, k = /* @__PURE__ */ function(v) {
|
|
59
|
+
O(_, v);
|
|
60
|
+
var c = Z(_);
|
|
61
|
+
function _(i) {
|
|
62
62
|
var r, n, e;
|
|
63
|
-
return
|
|
63
|
+
return $(this, _), e = c.call(this, i), m(g(e), "defaultItemsCount", 0), m(g(e), "refCarousel", /* @__PURE__ */ a.createRef()), m(g(e), "refContainer", /* @__PURE__ */ a.createRef()), m(g(e), "refModalContainer", /* @__PURE__ */ a.createRef()), m(g(e), "_touchStartCoord", -1), m(g(e), "handlerKeyDown", function(t) {
|
|
64
64
|
var o = 1, s = e.state.items.length + 1;
|
|
65
65
|
switch (t.key) {
|
|
66
66
|
case "ArrowLeft":
|
|
@@ -78,35 +78,35 @@ var Q = (
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
t.metaKey && (t.key === "ArrowLeft" ? (t.preventDefault(), e.slideToValue(o)) : t.key === "ArrowRight" && (t.preventDefault(), e.slideToValue(s))), (t.key === "Enter" || t.key === " ") && t.target instanceof HTMLDivElement && t.target.role === "tabpanel" && e.handleToggleZoomModal();
|
|
81
|
-
}),
|
|
81
|
+
}), m(g(e), "toggleItem", function(t) {
|
|
82
82
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
83
83
|
e.setState(function(s) {
|
|
84
84
|
var d = o ? s.items.filter(function(l) {
|
|
85
85
|
return l.node !== t.node;
|
|
86
|
-
}) : [].concat(
|
|
86
|
+
}) : [].concat(B(s.items), [t]);
|
|
87
87
|
return {
|
|
88
88
|
items: d
|
|
89
89
|
};
|
|
90
90
|
}), o || e.defaultItemsCount++;
|
|
91
|
-
}),
|
|
91
|
+
}), m(g(e), "transformContainer", function() {
|
|
92
92
|
var t = e.state.selectedIndex * -1 * 100;
|
|
93
93
|
e.refContainer.current && (e.refContainer.current.style.transform = "translateX(".concat(t, "%)")), e.refModalContainer.current && (e.refModalContainer.current.style.transform = "translateX(".concat(t, "%)"));
|
|
94
|
-
}),
|
|
94
|
+
}), m(g(e), "getDirection", function(t, o) {
|
|
95
95
|
var s = e.asProps.bounded;
|
|
96
96
|
if (s)
|
|
97
97
|
return t < o ? "right" : "left";
|
|
98
|
-
var d = e.state.items, l = d.map(function(P,
|
|
99
|
-
return
|
|
100
|
-
}), u =
|
|
98
|
+
var d = e.state.items, l = d.map(function(P, h) {
|
|
99
|
+
return h;
|
|
100
|
+
}), u = B(l), p = u[0], y = u[u.length - 1];
|
|
101
101
|
if (u.length === 2)
|
|
102
102
|
return t < o ? "right" : "left";
|
|
103
|
-
t ===
|
|
104
|
-
var
|
|
105
|
-
return
|
|
106
|
-
}),
|
|
103
|
+
t === p && (u.unshift(y), u.pop()), t === y && (u.shift(), u.push(p));
|
|
104
|
+
var b = u.indexOf(t), q = u.indexOf(o);
|
|
105
|
+
return q - b < 0 ? "left" : "right";
|
|
106
|
+
}), m(g(e), "slideToValue", function(t) {
|
|
107
107
|
for (var o = e.state.selectedIndex, s = o < t ? "right" : "left", d = Math.abs(o - t); d > 0; )
|
|
108
108
|
e.transformItem(s), d--;
|
|
109
|
-
}),
|
|
109
|
+
}), m(g(e), "transformItem", function(t) {
|
|
110
110
|
var o = e.asProps.bounded, s = e.state, d = s.items, l = s.selectedIndex, u = d.length - 1;
|
|
111
111
|
if (t === "right") {
|
|
112
112
|
if (o && l === u) {
|
|
@@ -117,9 +117,9 @@ var Q = (
|
|
|
117
117
|
e.handlers.index(l === u ? 0 : l + 1);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
e.setState(function(
|
|
120
|
+
e.setState(function(p) {
|
|
121
121
|
return {
|
|
122
|
-
selectedIndex:
|
|
122
|
+
selectedIndex: p.selectedIndex + 1
|
|
123
123
|
};
|
|
124
124
|
}, function() {
|
|
125
125
|
e.transformContainer(), e.handlers.index(e.getIndex());
|
|
@@ -135,20 +135,20 @@ var Q = (
|
|
|
135
135
|
e.handlers.index(l === 0 ? u : l - 1);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
e.setState(function(
|
|
138
|
+
e.setState(function(p) {
|
|
139
139
|
return {
|
|
140
|
-
selectedIndex:
|
|
140
|
+
selectedIndex: p.selectedIndex - 1
|
|
141
141
|
};
|
|
142
142
|
}, function() {
|
|
143
143
|
e.transformContainer(), e.handlers.index(e.getIndex());
|
|
144
144
|
});
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), m(g(e), "bindHandlerClick", function(t) {
|
|
148
148
|
return function() {
|
|
149
149
|
e.transformItem(t);
|
|
150
150
|
};
|
|
151
|
-
}),
|
|
151
|
+
}), m(g(e), "bindHandlerClickIndicator", function(t) {
|
|
152
152
|
return function() {
|
|
153
153
|
var o = e.state, s = o.selectedIndex, d = o.items;
|
|
154
154
|
if (!e.isControlled && t !== s) {
|
|
@@ -157,12 +157,12 @@ var Q = (
|
|
|
157
157
|
}
|
|
158
158
|
e.handlers.index(t);
|
|
159
159
|
};
|
|
160
|
-
}),
|
|
160
|
+
}), m(g(e), "handlerTouchStart", function(t) {
|
|
161
161
|
e._touchStartCoord = t.changedTouches[0].clientX;
|
|
162
|
-
}),
|
|
162
|
+
}), m(g(e), "handlerTouchEnd", function(t) {
|
|
163
163
|
var o = t.changedTouches[0].clientX, s = o - e._touchStartCoord;
|
|
164
164
|
s > 50 ? e.transformItem("left") : s < -50 && e.transformItem("right");
|
|
165
|
-
}),
|
|
165
|
+
}), m(g(e), "handleToggleZoomModal", function() {
|
|
166
166
|
e.setState(function(t) {
|
|
167
167
|
return {
|
|
168
168
|
isOpenZoom: !t.isOpenZoom
|
|
@@ -170,17 +170,17 @@ var Q = (
|
|
|
170
170
|
}, function() {
|
|
171
171
|
e.state.isOpenZoom && e.transformContainer();
|
|
172
172
|
});
|
|
173
|
-
}),
|
|
173
|
+
}), m(g(e), "bindHandlerKeydownControl", function(t) {
|
|
174
174
|
return function(o) {
|
|
175
175
|
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), e.bindHandlerClick(t)());
|
|
176
176
|
};
|
|
177
|
-
}), e.isControlled =
|
|
177
|
+
}), e.isControlled = i.index !== void 0, e.state = {
|
|
178
178
|
items: [],
|
|
179
179
|
isOpenZoom: !1,
|
|
180
|
-
selectedIndex: (r = (n =
|
|
180
|
+
selectedIndex: (r = (n = i.index) !== null && n !== void 0 ? n : i.defaultIndex) !== null && r !== void 0 ? r : 0
|
|
181
181
|
}, e;
|
|
182
182
|
}
|
|
183
|
-
return
|
|
183
|
+
return D(_, [{
|
|
184
184
|
key: "uncontrolledProps",
|
|
185
185
|
value: function() {
|
|
186
186
|
var r = this;
|
|
@@ -198,11 +198,11 @@ var Q = (
|
|
|
198
198
|
key: "componentDidMount",
|
|
199
199
|
value: function() {
|
|
200
200
|
var r = this.state.selectedIndex;
|
|
201
|
-
r !== 0 && (r < 0 || r >= this.defaultItemsCount ? (
|
|
201
|
+
r !== 0 && (r < 0 || r >= this.defaultItemsCount ? (N.warn(!0, "You couldn't use value for the `index` or `defaultIndex` not from `Item's` length range.", _.displayName), this.setState({
|
|
202
202
|
selectedIndex: 0
|
|
203
203
|
})) : this.transformContainer());
|
|
204
|
-
var n =
|
|
205
|
-
|
|
204
|
+
var n = T(this.asProps.Children, ["Carousel.Prev", "Carousel.Next", "Carousel.Indicators"]);
|
|
205
|
+
N.warn(n.length > 0, "Please, try to remove `Prev`, `Next`, `Indicators` and other children components from your Carousel, except only `Item` elements.", _.displayName);
|
|
206
206
|
}
|
|
207
207
|
}, {
|
|
208
208
|
key: "componentDidUpdate",
|
|
@@ -312,51 +312,51 @@ var Q = (
|
|
|
312
312
|
}, {
|
|
313
313
|
key: "renderModal",
|
|
314
314
|
value: function(r, n) {
|
|
315
|
-
var e = this.asProps, t, o = this, s = x, d = x, l = this.asProps, u = l.styles,
|
|
316
|
-
return t =
|
|
317
|
-
visible:
|
|
315
|
+
var e = this.asProps, t, o = this, s = x, d = x, l = this.asProps, u = l.styles, p = l.uid, y = l.duration, b = l.zoomWidth, q = this.state.isOpenZoom;
|
|
316
|
+
return t = C(u), /* @__PURE__ */ a.createElement(V, t.cn("Modal", {
|
|
317
|
+
visible: q,
|
|
318
318
|
onClose: this.handleToggleZoomModal,
|
|
319
319
|
ghost: !0,
|
|
320
320
|
closable: !r
|
|
321
|
-
}), /* @__PURE__ */
|
|
321
|
+
}), /* @__PURE__ */ a.createElement(E, t.cn("Flex", {
|
|
322
322
|
direction: r ? "column" : "row"
|
|
323
|
-
}), !r && /* @__PURE__ */
|
|
323
|
+
}), !r && /* @__PURE__ */ a.createElement(f.Prev, {
|
|
324
324
|
inverted: !0
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ a.createElement(d, t.cn("SModalBox", {}), /* @__PURE__ */ a.createElement(s, t.cn("SModalContainer", I({}, S({
|
|
326
326
|
"aria-live": "polite",
|
|
327
|
-
"use:duration": "".concat(
|
|
327
|
+
"use:duration": "".concat(y, "ms"),
|
|
328
328
|
ref: this.refModalContainer,
|
|
329
329
|
"use:w": void 0,
|
|
330
|
-
wMax:
|
|
331
|
-
}, e))), n.map(function(P,
|
|
332
|
-
return /* @__PURE__ */
|
|
330
|
+
wMax: b
|
|
331
|
+
}, e))), n.map(function(P, h) {
|
|
332
|
+
return /* @__PURE__ */ a.createElement(f.Item, w({}, P.props, {
|
|
333
333
|
key: P.key,
|
|
334
|
-
uid:
|
|
335
|
-
index:
|
|
336
|
-
current: o.isSelected(
|
|
334
|
+
uid: p,
|
|
335
|
+
index: h,
|
|
336
|
+
current: o.isSelected(h),
|
|
337
337
|
toggleItem: void 0,
|
|
338
338
|
zoom: !0,
|
|
339
339
|
zoomOut: !0,
|
|
340
|
-
transform: o.isSelected(
|
|
340
|
+
transform: o.isSelected(h) ? o.getTransform() : void 0
|
|
341
341
|
}));
|
|
342
|
-
}))), r ? /* @__PURE__ */
|
|
342
|
+
}))), r ? /* @__PURE__ */ a.createElement(E, t.cn("Flex", {
|
|
343
343
|
justifyContent: "center",
|
|
344
344
|
mt: 2
|
|
345
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ a.createElement(f.Prev, {
|
|
346
346
|
inverted: !0
|
|
347
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), /* @__PURE__ */ a.createElement(f.Next, {
|
|
348
348
|
inverted: !0
|
|
349
|
-
})) : /* @__PURE__ */
|
|
349
|
+
})) : /* @__PURE__ */ a.createElement(f.Next, {
|
|
350
350
|
inverted: !0
|
|
351
|
-
})), !r && /* @__PURE__ */
|
|
351
|
+
})), !r && /* @__PURE__ */ a.createElement(f.Indicators, {
|
|
352
352
|
inverted: !0
|
|
353
353
|
}));
|
|
354
354
|
}
|
|
355
355
|
}, {
|
|
356
356
|
key: "render",
|
|
357
357
|
value: function() {
|
|
358
|
-
var r = this.asProps, n, e = this, t = x, o = this.asProps, s = o.styles, d = o.Children, l = o.uid, u = o.zoom,
|
|
359
|
-
return n =
|
|
358
|
+
var r = this.asProps, n, e = this, t = x, o = this.asProps, s = o.styles, d = o.Children, l = o.uid, u = o.zoom, p = o["aria-label"], y = o["aria-roledescription"], b = o.indicators, q = T(d, ["Carousel.Item"]), P = T(d, ["Carousel.Prev", "Carousel.Next", "Carousel.Indicators"]);
|
|
359
|
+
return n = C(s), /* @__PURE__ */ a.createElement(t, n.cn("SCarousel", I({}, S({
|
|
360
360
|
role: "region",
|
|
361
361
|
roledescription: "carousel",
|
|
362
362
|
onKeyDown: this.handlerKeyDown,
|
|
@@ -364,58 +364,58 @@ var Q = (
|
|
|
364
364
|
onTouchEnd: this.handlerTouchEnd,
|
|
365
365
|
ref: this.refCarousel,
|
|
366
366
|
id: "igc-".concat(l, "-carousel"),
|
|
367
|
-
"aria-roledescription":
|
|
368
|
-
}, r))), P.length === 0 ? /* @__PURE__ */
|
|
369
|
-
"aria-label":
|
|
370
|
-
}, /* @__PURE__ */
|
|
371
|
-
return
|
|
372
|
-
return /* @__PURE__ */
|
|
373
|
-
key:
|
|
367
|
+
"aria-roledescription": y
|
|
368
|
+
}, r))), P.length === 0 ? /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(E, n.cn("Flex", {}), /* @__PURE__ */ a.createElement(f.Prev, null), /* @__PURE__ */ a.createElement(f.ContentBox, null, /* @__PURE__ */ a.createElement(f.Container, {
|
|
369
|
+
"aria-label": p
|
|
370
|
+
}, /* @__PURE__ */ a.createElement(d, n.cn("Children", {})))), /* @__PURE__ */ a.createElement(f.Next, null)), b === "default" && /* @__PURE__ */ a.createElement(f.Indicators, null), b === "preview" && /* @__PURE__ */ a.createElement(f.Indicators, null, function() {
|
|
371
|
+
return q.map(function(h, M) {
|
|
372
|
+
return /* @__PURE__ */ a.createElement(f.Indicator, w({}, h.props, {
|
|
373
|
+
key: h.key,
|
|
374
374
|
w: 100,
|
|
375
375
|
h: 100,
|
|
376
376
|
"aria-roledescription": "slide",
|
|
377
|
-
active: e.isSelected(
|
|
378
|
-
onClick: e.bindHandlerClickIndicator(
|
|
377
|
+
active: e.isSelected(M),
|
|
378
|
+
onClick: e.bindHandlerClickIndicator(M)
|
|
379
379
|
}));
|
|
380
380
|
});
|
|
381
|
-
})) : /* @__PURE__ */
|
|
382
|
-
return e.renderModal(ne(
|
|
381
|
+
})) : /* @__PURE__ */ a.createElement(d, n.cn("Children", {})), u && /* @__PURE__ */ a.createElement(z, n.cn("BreakPoints", {}), /* @__PURE__ */ a.createElement(z.Context.Consumer, null, function(h) {
|
|
382
|
+
return e.renderModal(ne(h), q);
|
|
383
383
|
})));
|
|
384
384
|
}
|
|
385
385
|
}]), _;
|
|
386
|
-
}(
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
}(F);
|
|
387
|
+
m(k, "displayName", "Carousel");
|
|
388
|
+
m(k, "defaultProps", {
|
|
389
389
|
defaultIndex: 0,
|
|
390
390
|
duration: 350,
|
|
391
391
|
step: 100,
|
|
392
392
|
bounded: !1,
|
|
393
|
-
i18n:
|
|
393
|
+
i18n: R,
|
|
394
394
|
locale: "en",
|
|
395
395
|
indicators: "default"
|
|
396
396
|
});
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
m(k, "style", Q);
|
|
398
|
+
m(k, "enhance", te);
|
|
399
399
|
var oe = function(c) {
|
|
400
|
-
var _ = arguments[0],
|
|
401
|
-
return
|
|
400
|
+
var _ = arguments[0], i, r = x, n = c.styles, e = c.duration;
|
|
401
|
+
return i = C(n), /* @__PURE__ */ a.createElement(r, i.cn("SContainer", I({}, S({
|
|
402
402
|
"use:duration": "".concat(e, "ms"),
|
|
403
403
|
"aria-live": "polite"
|
|
404
404
|
}, _))));
|
|
405
|
-
},
|
|
406
|
-
var _ = arguments[0],
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
var c =
|
|
405
|
+
}, ie = function(c) {
|
|
406
|
+
var _ = arguments[0], i, r = x, n = c.styles;
|
|
407
|
+
return i = C(n), /* @__PURE__ */ a.createElement(r, i.cn("SContentBox", I({}, S({}, _))));
|
|
408
|
+
}, K = /* @__PURE__ */ function(v) {
|
|
409
|
+
O(_, v);
|
|
410
|
+
var c = Z(_);
|
|
411
411
|
function _() {
|
|
412
|
-
var
|
|
413
|
-
|
|
412
|
+
var i;
|
|
413
|
+
$(this, _);
|
|
414
414
|
for (var r = arguments.length, n = new Array(r), e = 0; e < r; e++)
|
|
415
415
|
n[e] = arguments[e];
|
|
416
|
-
return
|
|
416
|
+
return i = c.call.apply(c, [this].concat(n)), m(g(i), "refItem", /* @__PURE__ */ a.createRef()), m(g(i), "keepFocusTimeout", void 0), i;
|
|
417
417
|
}
|
|
418
|
-
return
|
|
418
|
+
return D(_, [{
|
|
419
419
|
key: "componentDidMount",
|
|
420
420
|
value: function() {
|
|
421
421
|
var r = this.props, n = r.toggleItem, e = r.transform, t = this.refItem.current;
|
|
@@ -448,8 +448,8 @@ var oe = function(c) {
|
|
|
448
448
|
}, {
|
|
449
449
|
key: "render",
|
|
450
450
|
value: function() {
|
|
451
|
-
var r = this.asProps, n, e = this.props, t = e.styles, o = e.index, s = e.uid, d = e.current, l = e.zoomIn, u = e.onToggleZoomModal,
|
|
452
|
-
return n =
|
|
451
|
+
var r = this.asProps, n, e = this.props, t = e.styles, o = e.index, s = e.uid, d = e.current, l = e.zoomIn, u = e.onToggleZoomModal, p = x;
|
|
452
|
+
return n = C(t), /* @__PURE__ */ a.createElement(p, n.cn("SItem", I({}, S({
|
|
453
453
|
ref: this.refItem,
|
|
454
454
|
role: "tabpanel",
|
|
455
455
|
"data-carousel": "igc-".concat(s, "-carousel"),
|
|
@@ -461,57 +461,57 @@ var oe = function(c) {
|
|
|
461
461
|
}, r))));
|
|
462
462
|
}
|
|
463
463
|
}]), _;
|
|
464
|
-
}(
|
|
465
|
-
|
|
466
|
-
var
|
|
467
|
-
var _ = arguments[0],
|
|
468
|
-
return
|
|
464
|
+
}(F);
|
|
465
|
+
m(K, "enhance", [H(!1)]);
|
|
466
|
+
var ae = function(c) {
|
|
467
|
+
var _ = arguments[0], i, r = c.styles, n = c.children, e = c.Children, t = c.label, o = c.top, s = o === void 0 ? 0 : o, d = c.inverted, l = x, u = A;
|
|
468
|
+
return i = C(r), /* @__PURE__ */ a.createElement(l, i.cn("SPrev", I({}, S({
|
|
469
469
|
top: s
|
|
470
|
-
}, _))), n ? /* @__PURE__ */
|
|
471
|
-
addonLeft:
|
|
470
|
+
}, _))), n ? /* @__PURE__ */ a.createElement(e, i.cn("Children", {})) : /* @__PURE__ */ a.createElement(u, i.cn("SPrevButton", {
|
|
471
|
+
addonLeft: W,
|
|
472
472
|
"aria-label": t,
|
|
473
473
|
theme: d ? "invert" : "muted",
|
|
474
474
|
use: "tertiary",
|
|
475
475
|
size: "l"
|
|
476
476
|
})));
|
|
477
477
|
}, se = function(c) {
|
|
478
|
-
var _ = arguments[0],
|
|
479
|
-
return
|
|
478
|
+
var _ = arguments[0], i, r = c.styles, n = c.children, e = c.Children, t = c.label, o = c.top, s = o === void 0 ? 0 : o, d = c.inverted, l = x, u = A;
|
|
479
|
+
return i = C(r), /* @__PURE__ */ a.createElement(l, i.cn("SNext", I({}, S({
|
|
480
480
|
top: s
|
|
481
|
-
}, _))), n ? /* @__PURE__ */
|
|
482
|
-
addonLeft:
|
|
481
|
+
}, _))), n ? /* @__PURE__ */ a.createElement(e, i.cn("Children", {})) : /* @__PURE__ */ a.createElement(u, i.cn("SNextButton", {
|
|
482
|
+
addonLeft: X,
|
|
483
483
|
"aria-label": t,
|
|
484
484
|
theme: d ? "invert" : "muted",
|
|
485
485
|
use: "tertiary",
|
|
486
486
|
size: "l"
|
|
487
487
|
})));
|
|
488
|
-
},
|
|
489
|
-
var _ = arguments[0],
|
|
488
|
+
}, L = function(c) {
|
|
489
|
+
var _ = arguments[0], i, r = c.items, n = c.styles, e = c.Children, t = c.inverted, o = x;
|
|
490
490
|
if (e.origin) {
|
|
491
491
|
var s;
|
|
492
|
-
return s =
|
|
492
|
+
return s = C(n), /* @__PURE__ */ a.createElement(o, s.cn("SIndicators", I({}, S({}, _))), /* @__PURE__ */ a.createElement(e, s.cn("Children", {})));
|
|
493
493
|
}
|
|
494
|
-
return
|
|
495
|
-
return /* @__PURE__ */
|
|
494
|
+
return i = C(n), /* @__PURE__ */ a.createElement(o, i.cn("SIndicators", I({}, S({}, _))), r == null ? void 0 : r.map(function(d, l) {
|
|
495
|
+
return /* @__PURE__ */ a.createElement(f.Indicator, w({
|
|
496
496
|
key: l
|
|
497
497
|
}, d, {
|
|
498
498
|
inverted: t
|
|
499
499
|
}));
|
|
500
500
|
}));
|
|
501
501
|
};
|
|
502
|
-
|
|
502
|
+
L.enhance = [H()];
|
|
503
503
|
var le = function(c) {
|
|
504
|
-
var _ = arguments[0],
|
|
505
|
-
return
|
|
506
|
-
},
|
|
504
|
+
var _ = arguments[0], i, r = c.styles, n = c.Children, e = x;
|
|
505
|
+
return i = C(r), /* @__PURE__ */ a.createElement(e, i.cn("SIndicator", I({}, S({}, _))), /* @__PURE__ */ a.createElement(n, i.cn("Children", {})));
|
|
506
|
+
}, f = U(k, {
|
|
507
507
|
Container: oe,
|
|
508
|
-
ContentBox:
|
|
509
|
-
Indicators:
|
|
508
|
+
ContentBox: ie,
|
|
509
|
+
Indicators: L,
|
|
510
510
|
Indicator: le,
|
|
511
|
-
Item:
|
|
512
|
-
Prev:
|
|
511
|
+
Item: K,
|
|
512
|
+
Prev: ae,
|
|
513
513
|
Next: se
|
|
514
514
|
});
|
|
515
515
|
export {
|
|
516
|
-
|
|
516
|
+
f as default
|
|
517
517
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/carousel",
|
|
3
3
|
"description": "Semrush Carousel Component",
|
|
4
|
-
"version": "3.47.
|
|
4
|
+
"version": "3.47.1-prerelease.2",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.41.
|
|
18
|
-
"@semcore/icon": "4.60.
|
|
19
|
-
"@semcore/utils": "4.48.
|
|
20
|
-
"@semcore/button": "5.42.
|
|
21
|
-
"@semcore/modal": "4.54.
|
|
22
|
-
"@semcore/breakpoints": "1.41.
|
|
17
|
+
"@semcore/flex-box": "5.41.1-prerelease.2",
|
|
18
|
+
"@semcore/icon": "4.60.1-prerelease.2",
|
|
19
|
+
"@semcore/utils": "4.48.1-prerelease.2",
|
|
20
|
+
"@semcore/button": "5.42.1-prerelease.2",
|
|
21
|
+
"@semcore/modal": "4.54.1-prerelease.2",
|
|
22
|
+
"@semcore/breakpoints": "1.41.1-prerelease.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.
|
|
25
|
+
"@semcore/core": "^2.39.1-prerelease.2",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|