@semcore/carousel 2.0.19 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -124
- package/LICENSE +21 -0
- package/lib/cjs/Carousel.js +13 -13
- package/lib/es6/Carousel.js +13 -13
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,119 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [2.0
|
|
5
|
+
## [2.1.0] - 2022-10-10
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Added support for React 18 🔥
|
|
10
|
+
- Extended version range for dependency `@semcore/icons`.
|
|
10
11
|
|
|
11
|
-
## [2.0.
|
|
12
|
+
## [2.0.20] - 2022-10-06
|
|
12
13
|
|
|
13
14
|
### Changed
|
|
14
15
|
|
|
15
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.32.
|
|
16
|
-
|
|
17
|
-
## [2.0.17] - 2022-09-29
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
|
|
21
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.4 ~> 2.31.0]).
|
|
22
|
-
|
|
23
|
-
## [2.0.16] - 2022-09-21
|
|
24
|
-
|
|
25
|
-
### Changed
|
|
26
|
-
|
|
27
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.3 ~> 2.30.4]).
|
|
28
|
-
|
|
29
|
-
## [2.0.15] - 2022-09-21
|
|
30
|
-
|
|
31
|
-
### Changed
|
|
32
|
-
|
|
33
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.2 ~> 2.30.3]).
|
|
34
|
-
|
|
35
|
-
## [2.0.14] - 2022-08-30
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
|
|
39
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1]).
|
|
40
|
-
|
|
41
|
-
## [2.0.13] - 2022-08-18
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
44
|
-
|
|
45
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.0 ~> 2.30.1]).
|
|
46
|
-
|
|
47
|
-
## [2.0.12] - 2022-08-18
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
|
|
51
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.29.5 ~> 2.30.0]).
|
|
52
|
-
|
|
53
|
-
## [2.0.11] - 2022-08-18
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0]).
|
|
58
|
-
|
|
59
|
-
## [2.0.10] - 2022-08-11
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0]).
|
|
64
|
-
|
|
65
|
-
## [2.0.9] - 2022-07-25
|
|
66
|
-
|
|
67
|
-
### Changed
|
|
68
|
-
|
|
69
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.29.1 ~> 2.29.2]).
|
|
70
|
-
|
|
71
|
-
## [2.0.8] - 2022-07-22
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0]).
|
|
76
|
-
|
|
77
|
-
## [2.0.7] - 2022-07-21
|
|
78
|
-
|
|
79
|
-
### Changed
|
|
80
|
-
|
|
81
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.28.0 ~> 2.29.0]).
|
|
82
|
-
|
|
83
|
-
## [2.0.6] - 2022-07-07
|
|
84
|
-
|
|
85
|
-
### Changed
|
|
86
|
-
|
|
87
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/icon` [2.27.0 ~> 2.28.0]).
|
|
88
|
-
|
|
89
|
-
## [2.0.5] - 2022-06-02
|
|
90
|
-
|
|
91
|
-
### Changed
|
|
92
|
-
|
|
93
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/icon` [2.26.1 ~> 2.27.0]).
|
|
94
|
-
|
|
95
|
-
## [2.0.4] - 2022-05-31
|
|
96
|
-
|
|
97
|
-
### Changed
|
|
98
|
-
|
|
99
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2]).
|
|
100
|
-
|
|
101
|
-
## [2.0.3] - 2022-05-23
|
|
102
|
-
|
|
103
|
-
### Changed
|
|
104
|
-
|
|
105
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.25.1 ~> 2.26.0]).
|
|
106
|
-
|
|
107
|
-
## [2.0.2] - 2022-05-19
|
|
108
|
-
|
|
109
|
-
### Changed
|
|
110
|
-
|
|
111
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3]).
|
|
112
|
-
|
|
113
|
-
## [2.0.1] - 2022-05-18
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.24.0 ~> 2.25.0]).
|
|
16
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.32.2 ~> 2.33.0]).
|
|
118
17
|
|
|
119
18
|
## [2.0.0] - 2022-05-17
|
|
120
19
|
|
|
@@ -128,24 +27,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
128
27
|
|
|
129
28
|
- Version patch update due to children dependencies update (`@semcore/icon` [2.21.0 ~> 2.24.0]).
|
|
130
29
|
|
|
131
|
-
## [1.6.3] - 2022-04-28
|
|
132
|
-
|
|
133
|
-
### Changed
|
|
134
|
-
|
|
135
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.20.0 ~> 2.21.0]).
|
|
136
|
-
|
|
137
|
-
## [1.6.2] - 2022-03-21
|
|
138
|
-
|
|
139
|
-
### Changed
|
|
140
|
-
|
|
141
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.19.4 ~> 2.20.0]).
|
|
142
|
-
|
|
143
|
-
## [1.6.1] - 2022-03-14
|
|
144
|
-
|
|
145
|
-
### Changed
|
|
146
|
-
|
|
147
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2]).
|
|
148
|
-
|
|
149
30
|
## [1.6.0] - 2021-03-04
|
|
150
31
|
|
|
151
32
|
### Added
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/cjs/Carousel.js
CHANGED
|
@@ -54,22 +54,22 @@ var style = (
|
|
|
54
54
|
/*__reshadow_css_start__*/
|
|
55
55
|
_core.sstyled.insert(
|
|
56
56
|
/*__inner_css_start__*/
|
|
57
|
-
".
|
|
57
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SCarousel_qu0y8_gg_ {\n overflow: hidden;\n outline: none;\n}\n\n.___SContainer_qu0y8_gg_ {\n display: flex;\n transition: transform var(--duration_qu0y8) ease-in-out;\n}\n\n.___SItem_qu0y8_gg_ {\n flex: 0 0 100%;\n max-width: 100%;\n box-sizing: border-box;\n transform: var(--transform_qu0y8);\n border-radius: 6px;\n overflow: hidden;\n}\n\n.___SIndicators_qu0y8_gg_ {\n display: flex;\n justify-content: center;\n margin-top: 16px;\n}\n\n.___SIndicator_qu0y8_gg_ {\n margin: 0 6px;\n cursor: pointer;\n display: block;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n background-color: #a9abb6;\n opacity: 0.3;\n -o-object-fit: cover;\n object-fit: cover;\n transition: ease-in-out opacity 0.1s;\n}\n\n.___SIndicator_qu0y8_gg_:hover {\n opacity: 0.6;\n}\n\n.___SIndicator_qu0y8_gg_.__active_qu0y8_gg_ {\n opacity: 1;\n}\n\n.___SPrev_qu0y8_gg_,\n.___SNext_qu0y8_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.___SPrev_qu0y8_gg_ {\n margin-right: 12px;\n}\n\n.___SNext_qu0y8_gg_ {\n margin-left: 12px;\n}\n\n.___SPrev_qu0y8_gg_.__disabled_qu0y8_gg_,\n.___SNext_qu0y8_gg_.__disabled_qu0y8_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion) {\n .___SContainer_qu0y8_gg_ {\n transition: none;\n }\n}\n"
|
|
58
58
|
/*__inner_css_end__*/
|
|
59
|
-
, "
|
|
59
|
+
, "qu0y8_gg_")
|
|
60
60
|
/*__reshadow_css_end__*/
|
|
61
61
|
, {
|
|
62
|
-
"__SCarousel": "
|
|
63
|
-
"__SContainer": "
|
|
64
|
-
"--duration": "--
|
|
65
|
-
"__SItem": "
|
|
66
|
-
"--transform": "--
|
|
67
|
-
"__SIndicators": "
|
|
68
|
-
"__SIndicator": "
|
|
69
|
-
"_active": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"_disabled": "
|
|
62
|
+
"__SCarousel": "___SCarousel_qu0y8_gg_",
|
|
63
|
+
"__SContainer": "___SContainer_qu0y8_gg_",
|
|
64
|
+
"--duration": "--duration_qu0y8",
|
|
65
|
+
"__SItem": "___SItem_qu0y8_gg_",
|
|
66
|
+
"--transform": "--transform_qu0y8",
|
|
67
|
+
"__SIndicators": "___SIndicators_qu0y8_gg_",
|
|
68
|
+
"__SIndicator": "___SIndicator_qu0y8_gg_",
|
|
69
|
+
"_active": "__active_qu0y8_gg_",
|
|
70
|
+
"__SPrev": "___SPrev_qu0y8_gg_",
|
|
71
|
+
"__SNext": "___SNext_qu0y8_gg_",
|
|
72
|
+
"_disabled": "__disabled_qu0y8_gg_"
|
|
73
73
|
});
|
|
74
74
|
var position = {
|
|
75
75
|
getItemMin: function getItemMin(items) {
|
package/lib/es6/Carousel.js
CHANGED
|
@@ -36,22 +36,22 @@ var style = (
|
|
|
36
36
|
/*__reshadow_css_start__*/
|
|
37
37
|
_sstyled.insert(
|
|
38
38
|
/*__inner_css_start__*/
|
|
39
|
-
".
|
|
39
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SCarousel_qu0y8_gg_ {\n overflow: hidden;\n outline: none;\n}\n\n.___SContainer_qu0y8_gg_ {\n display: flex;\n transition: transform var(--duration_qu0y8) ease-in-out;\n}\n\n.___SItem_qu0y8_gg_ {\n flex: 0 0 100%;\n max-width: 100%;\n box-sizing: border-box;\n transform: var(--transform_qu0y8);\n border-radius: 6px;\n overflow: hidden;\n}\n\n.___SIndicators_qu0y8_gg_ {\n display: flex;\n justify-content: center;\n margin-top: 16px;\n}\n\n.___SIndicator_qu0y8_gg_ {\n margin: 0 6px;\n cursor: pointer;\n display: block;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n background-color: #a9abb6;\n opacity: 0.3;\n -o-object-fit: cover;\n object-fit: cover;\n transition: ease-in-out opacity 0.1s;\n}\n\n.___SIndicator_qu0y8_gg_:hover {\n opacity: 0.6;\n}\n\n.___SIndicator_qu0y8_gg_.__active_qu0y8_gg_ {\n opacity: 1;\n}\n\n.___SPrev_qu0y8_gg_,\n.___SNext_qu0y8_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.___SPrev_qu0y8_gg_ {\n margin-right: 12px;\n}\n\n.___SNext_qu0y8_gg_ {\n margin-left: 12px;\n}\n\n.___SPrev_qu0y8_gg_.__disabled_qu0y8_gg_,\n.___SNext_qu0y8_gg_.__disabled_qu0y8_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion) {\n .___SContainer_qu0y8_gg_ {\n transition: none;\n }\n}\n"
|
|
40
40
|
/*__inner_css_end__*/
|
|
41
|
-
, "
|
|
41
|
+
, "qu0y8_gg_")
|
|
42
42
|
/*__reshadow_css_end__*/
|
|
43
43
|
, {
|
|
44
|
-
"__SCarousel": "
|
|
45
|
-
"__SContainer": "
|
|
46
|
-
"--duration": "--
|
|
47
|
-
"__SItem": "
|
|
48
|
-
"--transform": "--
|
|
49
|
-
"__SIndicators": "
|
|
50
|
-
"__SIndicator": "
|
|
51
|
-
"_active": "
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"_disabled": "
|
|
44
|
+
"__SCarousel": "___SCarousel_qu0y8_gg_",
|
|
45
|
+
"__SContainer": "___SContainer_qu0y8_gg_",
|
|
46
|
+
"--duration": "--duration_qu0y8",
|
|
47
|
+
"__SItem": "___SItem_qu0y8_gg_",
|
|
48
|
+
"--transform": "--transform_qu0y8",
|
|
49
|
+
"__SIndicators": "___SIndicators_qu0y8_gg_",
|
|
50
|
+
"__SIndicator": "___SIndicator_qu0y8_gg_",
|
|
51
|
+
"_active": "__active_qu0y8_gg_",
|
|
52
|
+
"__SPrev": "___SPrev_qu0y8_gg_",
|
|
53
|
+
"__SNext": "___SNext_qu0y8_gg_",
|
|
54
|
+
"_disabled": "__disabled_qu0y8_gg_"
|
|
55
55
|
});
|
|
56
56
|
var position = {
|
|
57
57
|
getItemMin: function getItemMin(items) {
|
package/package.json
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/carousel",
|
|
3
3
|
"description": "Semrush Carousel Component",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "pnpm semcore-builder --source=js",
|
|
13
|
-
"test": "jest"
|
|
14
|
-
},
|
|
15
11
|
"dependencies": {
|
|
16
12
|
"@semcore/utils": "^3.15",
|
|
17
13
|
"@semcore/flex-box": "^4",
|
|
18
|
-
"@semcore/icon": "
|
|
14
|
+
"@semcore/icon": "2.16 - 3"
|
|
19
15
|
},
|
|
20
16
|
"peerDependencies": {
|
|
21
17
|
"@semcore/core": "^1.11",
|
|
22
|
-
"react": "16.8 -
|
|
18
|
+
"react": "16.8 - 18"
|
|
23
19
|
},
|
|
24
20
|
"jest": {
|
|
25
21
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -30,7 +26,13 @@
|
|
|
30
26
|
"directory": "semcore/carousel"
|
|
31
27
|
},
|
|
32
28
|
"devDependencies": {
|
|
33
|
-
"@types/react": "
|
|
34
|
-
"@semcore/jest-preset-ui": "1.0.0"
|
|
29
|
+
"@types/react": "18.0.21",
|
|
30
|
+
"@semcore/jest-preset-ui": "1.0.0",
|
|
31
|
+
"@semcore/flex-box": "*",
|
|
32
|
+
"jest": "29.0.1"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "pnpm semcore-builder --source=js",
|
|
36
|
+
"test": "jest"
|
|
35
37
|
}
|
|
36
|
-
}
|
|
38
|
+
}
|