@semcore/carousel 16.1.0-prerelease.3 → 16.1.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 +20 -20
- package/lib/es6/Carousel.js +20 -20
- package/lib/esm/Carousel.mjs +21 -21
- package/package.json +7 -7
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.1] - 2025-05-30
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [16.1.0 ~> 16.2.0], `@semcore/button` [16.0.0 ~> 16.0.1], `@semcore/breakpoints` [16.0.0 ~> 16.0.1], `@semcore/base-components` [16.0.0 ~> 16.0.1]).
|
|
10
|
+
|
|
5
11
|
## [16.1.0] - 2025-05-23
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Carousel.js
CHANGED
|
@@ -28,28 +28,28 @@ var _logger = _interopRequireDefault(require("@semcore/core/lib/utils/logger"));
|
|
|
28
28
|
var _findComponent = require("@semcore/core/lib/utils/findComponent");
|
|
29
29
|
var _breakpoints = require("@semcore/breakpoints");
|
|
30
30
|
/*!__reshadow-styles__:"./style/carousel.shadow.css"*/
|
|
31
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SCarousel_1ofes_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SContentBox_1ofes_gg_,.___SModalBox_1ofes_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_1ofes_gg_:has(.___SItem_1ofes_gg_:focus-visible):after,.___SModalBox_1ofes_gg_:has(.___SItem_1ofes_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_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SItem_1ofes_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_1ofes);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_1ofes_gg_.__zoomIn_1ofes_gg_{cursor:zoom-in}.___SItem_1ofes_gg_.__zoomOut_1ofes_gg_{cursor:zoom-out}.___SIndicators_1ofes_gg_{display:flex;justify-content:center;margin:var(--intergalactic-spacing-4x, 16px) 3px 3px 3px;outline:0;position:relative}.___SIndicator_1ofes_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_1ofes_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_1ofes_gg_.__active_1ofes_gg_{opacity:1}.___SIndicator_1ofes_gg_.__inverted_1ofes_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_1ofes_gg_,.___SPrev_1ofes_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SNext_1ofes_gg_ .___SPrevButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SPrevButton_1ofes_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_1ofes_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_.__disabled_1ofes_gg_,.___SPrev_1ofes_gg_.__disabled_1ofes_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_1ofes_gg_{transition:none}}", /*__inner_css_end__*/"1ofes_gg_"),
|
|
32
32
|
/*__reshadow_css_end__*/
|
|
33
33
|
{
|
|
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": "
|
|
34
|
+
"__SCarousel": "___SCarousel_1ofes_gg_",
|
|
35
|
+
"__SContainer": "___SContainer_1ofes_gg_",
|
|
36
|
+
"--duration": "--duration_1ofes",
|
|
37
|
+
"__SModalContainer": "___SModalContainer_1ofes_gg_",
|
|
38
|
+
"__SItem": "___SItem_1ofes_gg_",
|
|
39
|
+
"--transform": "--transform_1ofes",
|
|
40
|
+
"_zoomIn": "__zoomIn_1ofes_gg_",
|
|
41
|
+
"_zoomOut": "__zoomOut_1ofes_gg_",
|
|
42
|
+
"__SIndicators": "___SIndicators_1ofes_gg_",
|
|
43
|
+
"__SIndicator": "___SIndicator_1ofes_gg_",
|
|
44
|
+
"_active": "__active_1ofes_gg_",
|
|
45
|
+
"_inverted": "__inverted_1ofes_gg_",
|
|
46
|
+
"__SPrev": "___SPrev_1ofes_gg_",
|
|
47
|
+
"__SNext": "___SNext_1ofes_gg_",
|
|
48
|
+
"_disabled": "__disabled_1ofes_gg_",
|
|
49
|
+
"__SContentBox": "___SContentBox_1ofes_gg_",
|
|
50
|
+
"__SModalBox": "___SModalBox_1ofes_gg_",
|
|
51
|
+
"__SPrevButton": "___SPrevButton_1ofes_gg_",
|
|
52
|
+
"__SNextButton": "___SNextButton_1ofes_gg_"
|
|
53
53
|
});
|
|
54
54
|
var MAP_TRANSFORM = {
|
|
55
55
|
ArrowLeft: 'left',
|
package/lib/es6/Carousel.js
CHANGED
|
@@ -30,28 +30,28 @@ import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
|
|
|
30
30
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
31
31
|
import logger from '@semcore/core/lib/utils/logger';
|
|
32
32
|
/*!__reshadow-styles__:"./style/carousel.shadow.css"*/
|
|
33
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
33
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCarousel_1ofes_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SContentBox_1ofes_gg_,.___SModalBox_1ofes_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_1ofes_gg_:has(.___SItem_1ofes_gg_:focus-visible):after,.___SModalBox_1ofes_gg_:has(.___SItem_1ofes_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_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SItem_1ofes_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_1ofes);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_1ofes_gg_.__zoomIn_1ofes_gg_{cursor:zoom-in}.___SItem_1ofes_gg_.__zoomOut_1ofes_gg_{cursor:zoom-out}.___SIndicators_1ofes_gg_{display:flex;justify-content:center;margin:var(--intergalactic-spacing-4x, 16px) 3px 3px 3px;outline:0;position:relative}.___SIndicator_1ofes_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_1ofes_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_1ofes_gg_.__active_1ofes_gg_{opacity:1}.___SIndicator_1ofes_gg_.__inverted_1ofes_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_1ofes_gg_,.___SPrev_1ofes_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SNext_1ofes_gg_ .___SPrevButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SPrevButton_1ofes_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_1ofes_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_.__disabled_1ofes_gg_,.___SPrev_1ofes_gg_.__disabled_1ofes_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_1ofes_gg_{transition:none}}", /*__inner_css_end__*/"1ofes_gg_"),
|
|
34
34
|
/*__reshadow_css_end__*/
|
|
35
35
|
{
|
|
36
|
-
"__SCarousel": "
|
|
37
|
-
"__SContainer": "
|
|
38
|
-
"--duration": "--
|
|
39
|
-
"__SModalContainer": "
|
|
40
|
-
"__SItem": "
|
|
41
|
-
"--transform": "--
|
|
42
|
-
"_zoomIn": "
|
|
43
|
-
"_zoomOut": "
|
|
44
|
-
"__SIndicators": "
|
|
45
|
-
"__SIndicator": "
|
|
46
|
-
"_active": "
|
|
47
|
-
"_inverted": "
|
|
48
|
-
"__SPrev": "
|
|
49
|
-
"__SNext": "
|
|
50
|
-
"_disabled": "
|
|
51
|
-
"__SContentBox": "
|
|
52
|
-
"__SModalBox": "
|
|
53
|
-
"__SPrevButton": "
|
|
54
|
-
"__SNextButton": "
|
|
36
|
+
"__SCarousel": "___SCarousel_1ofes_gg_",
|
|
37
|
+
"__SContainer": "___SContainer_1ofes_gg_",
|
|
38
|
+
"--duration": "--duration_1ofes",
|
|
39
|
+
"__SModalContainer": "___SModalContainer_1ofes_gg_",
|
|
40
|
+
"__SItem": "___SItem_1ofes_gg_",
|
|
41
|
+
"--transform": "--transform_1ofes",
|
|
42
|
+
"_zoomIn": "__zoomIn_1ofes_gg_",
|
|
43
|
+
"_zoomOut": "__zoomOut_1ofes_gg_",
|
|
44
|
+
"__SIndicators": "___SIndicators_1ofes_gg_",
|
|
45
|
+
"__SIndicator": "___SIndicator_1ofes_gg_",
|
|
46
|
+
"_active": "__active_1ofes_gg_",
|
|
47
|
+
"_inverted": "__inverted_1ofes_gg_",
|
|
48
|
+
"__SPrev": "___SPrev_1ofes_gg_",
|
|
49
|
+
"__SNext": "___SNext_1ofes_gg_",
|
|
50
|
+
"_disabled": "__disabled_1ofes_gg_",
|
|
51
|
+
"__SContentBox": "___SContentBox_1ofes_gg_",
|
|
52
|
+
"__SModalBox": "___SModalBox_1ofes_gg_",
|
|
53
|
+
"__SPrevButton": "___SPrevButton_1ofes_gg_",
|
|
54
|
+
"__SNextButton": "___SNextButton_1ofes_gg_"
|
|
55
55
|
});
|
|
56
56
|
import { findAllComponents } from '@semcore/core/lib/utils/findComponent';
|
|
57
57
|
import { createBreakpoints } from '@semcore/breakpoints';
|
package/lib/esm/Carousel.mjs
CHANGED
|
@@ -25,30 +25,30 @@ var style = (
|
|
|
25
25
|
/*__reshadow_css_start__*/
|
|
26
26
|
(sstyled.insert(
|
|
27
27
|
/*__inner_css_start__*/
|
|
28
|
-
'.
|
|
28
|
+
'.___SCarousel_1ofes_gg_{overflow:hidden;outline:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SContainer_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SContentBox_1ofes_gg_,.___SModalBox_1ofes_gg_{position:relative;overflow:hidden;border-radius:var(--intergalactic-surface-rounded, 6px)}.___SContentBox_1ofes_gg_:has(.___SItem_1ofes_gg_:focus-visible):after,.___SModalBox_1ofes_gg_:has(.___SItem_1ofes_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_1ofes_gg_{display:flex;transition:transform var(--duration_1ofes) ease-in-out}.___SItem_1ofes_gg_{flex:0 0 100%;max-width:100%;box-sizing:border-box;transform:var(--transform_1ofes);border-radius:var(--intergalactic-surface-rounded, 6px);overflow:hidden;outline:0}.___SItem_1ofes_gg_.__zoomIn_1ofes_gg_{cursor:zoom-in}.___SItem_1ofes_gg_.__zoomOut_1ofes_gg_{cursor:zoom-out}.___SIndicators_1ofes_gg_{display:flex;justify-content:center;margin:var(--intergalactic-spacing-4x, 16px) 3px 3px 3px;outline:0;position:relative}.___SIndicator_1ofes_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_1ofes_gg_:hover{opacity:calc(2*var(--intergalactic-disabled-opacity, 0.3))}}.___SIndicator_1ofes_gg_.__active_1ofes_gg_{opacity:1}.___SIndicator_1ofes_gg_.__inverted_1ofes_gg_{background-color:var(--intergalactic-icon-primary-invert, #ffffff)}.___SNext_1ofes_gg_,.___SPrev_1ofes_gg_{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SNext_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SNext_1ofes_gg_ .___SPrevButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SNextButton_1ofes_gg_ span:has(>svg:only-child),.___SPrev_1ofes_gg_ .___SPrevButton_1ofes_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_1ofes_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_{margin-left:var(--intergalactic-spacing-2x, 8px)}.___SNext_1ofes_gg_.__disabled_1ofes_gg_,.___SPrev_1ofes_gg_.__disabled_1ofes_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}@media (prefers-reduced-motion){.___SContainer_1ofes_gg_{transition:none}}',
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
"
|
|
30
|
+
"1ofes_gg_"
|
|
31
31
|
), /*__reshadow_css_end__*/
|
|
32
32
|
{
|
|
33
|
-
"__SCarousel": "
|
|
34
|
-
"__SContainer": "
|
|
35
|
-
"--duration": "--
|
|
36
|
-
"__SModalContainer": "
|
|
37
|
-
"__SItem": "
|
|
38
|
-
"--transform": "--
|
|
39
|
-
"_zoomIn": "
|
|
40
|
-
"_zoomOut": "
|
|
41
|
-
"__SIndicators": "
|
|
42
|
-
"__SIndicator": "
|
|
43
|
-
"_active": "
|
|
44
|
-
"_inverted": "
|
|
45
|
-
"__SPrev": "
|
|
46
|
-
"__SNext": "
|
|
47
|
-
"_disabled": "
|
|
48
|
-
"__SContentBox": "
|
|
49
|
-
"__SModalBox": "
|
|
50
|
-
"__SPrevButton": "
|
|
51
|
-
"__SNextButton": "
|
|
33
|
+
"__SCarousel": "___SCarousel_1ofes_gg_",
|
|
34
|
+
"__SContainer": "___SContainer_1ofes_gg_",
|
|
35
|
+
"--duration": "--duration_1ofes",
|
|
36
|
+
"__SModalContainer": "___SModalContainer_1ofes_gg_",
|
|
37
|
+
"__SItem": "___SItem_1ofes_gg_",
|
|
38
|
+
"--transform": "--transform_1ofes",
|
|
39
|
+
"_zoomIn": "__zoomIn_1ofes_gg_",
|
|
40
|
+
"_zoomOut": "__zoomOut_1ofes_gg_",
|
|
41
|
+
"__SIndicators": "___SIndicators_1ofes_gg_",
|
|
42
|
+
"__SIndicator": "___SIndicator_1ofes_gg_",
|
|
43
|
+
"_active": "__active_1ofes_gg_",
|
|
44
|
+
"_inverted": "__inverted_1ofes_gg_",
|
|
45
|
+
"__SPrev": "___SPrev_1ofes_gg_",
|
|
46
|
+
"__SNext": "___SNext_1ofes_gg_",
|
|
47
|
+
"_disabled": "__disabled_1ofes_gg_",
|
|
48
|
+
"__SContentBox": "___SContentBox_1ofes_gg_",
|
|
49
|
+
"__SModalBox": "___SModalBox_1ofes_gg_",
|
|
50
|
+
"__SPrevButton": "___SPrevButton_1ofes_gg_",
|
|
51
|
+
"__SNextButton": "___SNextButton_1ofes_gg_"
|
|
52
52
|
})
|
|
53
53
|
);
|
|
54
54
|
var MAP_TRANSFORM = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/carousel",
|
|
3
3
|
"description": "Semrush Carousel Component",
|
|
4
|
-
"version": "16.1.
|
|
4
|
+
"version": "16.1.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,14 +14,14 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/icon": "16.
|
|
18
|
-
"@semcore/button": "16.0.
|
|
19
|
-
"@semcore/modal": "16.1.
|
|
20
|
-
"@semcore/flex-box": "16.0.
|
|
21
|
-
"@semcore/breakpoints": "16.0.
|
|
17
|
+
"@semcore/icon": "16.2.0-prerelease.2",
|
|
18
|
+
"@semcore/button": "16.0.1-prerelease.2",
|
|
19
|
+
"@semcore/modal": "16.1.1-prerelease.2",
|
|
20
|
+
"@semcore/flex-box": "16.0.1-prerelease.2",
|
|
21
|
+
"@semcore/breakpoints": "16.0.1-prerelease.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/base-components": "^16.0.
|
|
24
|
+
"@semcore/base-components": "^16.0.1-prerelease.2"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|