@semcore/card 4.0.22 → 4.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 -136
- package/LICENSE +21 -0
- package/lib/cjs/Card.js +9 -9
- package/lib/es6/Card.js +9 -9
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,125 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.0
|
|
5
|
+
## [4.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
|
-
## [4.0.
|
|
12
|
+
## [4.0.23] - 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
|
-
## [4.0.20] - 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
|
-
## [4.0.19] - 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
|
-
## [4.0.18] - 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
|
-
## [4.0.17] - 2022-08-31
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
|
|
39
|
-
- Version patch update due to children dependencies update (`@semcore/tooltip` [5.0.12 ~> 5.0.13]).
|
|
40
|
-
|
|
41
|
-
## [4.0.16] - 2022-08-30
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
44
|
-
|
|
45
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1]).
|
|
46
|
-
|
|
47
|
-
## [4.0.15] - 2022-08-18
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
|
|
51
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.0 ~> 2.30.1]).
|
|
52
|
-
|
|
53
|
-
## [4.0.14] - 2022-08-18
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.29.5 ~> 2.30.0]).
|
|
58
|
-
|
|
59
|
-
## [4.0.13] - 2022-08-18
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0]).
|
|
64
|
-
|
|
65
|
-
## [4.0.12] - 2022-08-11
|
|
66
|
-
|
|
67
|
-
### Changed
|
|
68
|
-
|
|
69
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/typography` [4.0.11 ~> 4.1.0]).
|
|
70
|
-
|
|
71
|
-
## [4.0.11] - 2022-08-01
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.0 ~> 3.35.1]).
|
|
76
|
-
|
|
77
|
-
## [4.0.10] - 2022-07-25
|
|
78
|
-
|
|
79
|
-
### Changed
|
|
80
|
-
|
|
81
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.29.1 ~> 2.29.2]).
|
|
82
|
-
|
|
83
|
-
## [4.0.9] - 2022-07-22
|
|
84
|
-
|
|
85
|
-
### Changed
|
|
86
|
-
|
|
87
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0]).
|
|
88
|
-
|
|
89
|
-
## [4.0.8] - 2022-07-21
|
|
90
|
-
|
|
91
|
-
### Changed
|
|
92
|
-
|
|
93
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.28.0 ~> 2.29.0]).
|
|
94
|
-
|
|
95
|
-
## [4.0.7] - 2022-07-07
|
|
96
|
-
|
|
97
|
-
### Changed
|
|
98
|
-
|
|
99
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/icon` [2.27.0 ~> 2.28.0]).
|
|
100
|
-
|
|
101
|
-
## [4.0.6] - 2022-06-02
|
|
102
|
-
|
|
103
|
-
### Changed
|
|
104
|
-
|
|
105
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/icon` [2.26.1 ~> 2.27.0]).
|
|
106
|
-
|
|
107
|
-
## [4.0.5] - 2022-05-31
|
|
108
|
-
|
|
109
|
-
### Changed
|
|
110
|
-
|
|
111
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2]).
|
|
112
|
-
|
|
113
|
-
## [4.0.4] - 2022-05-23
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.25.1 ~> 2.26.0]).
|
|
118
|
-
|
|
119
|
-
## [4.0.3] - 2022-05-19
|
|
120
|
-
|
|
121
|
-
### Changed
|
|
122
|
-
|
|
123
|
-
- 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], `@semcore/typography` [4.0.1 ~> 4.0.3]).
|
|
16
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.32.2 ~> 2.33.0]).
|
|
124
17
|
|
|
125
18
|
## [4.0.2] - 2022-05-19
|
|
126
19
|
|
|
@@ -146,30 +39,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
146
39
|
|
|
147
40
|
- Version patch update due to children dependencies update (`@semcore/icon` [2.21.0 ~> 2.24.0]).
|
|
148
41
|
|
|
149
|
-
## [3.0.6] - 2022-04-28
|
|
150
|
-
|
|
151
|
-
### Changed
|
|
152
|
-
|
|
153
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.20.0 ~> 2.21.0]).
|
|
154
|
-
|
|
155
|
-
## [3.0.5] - 2022-03-21
|
|
156
|
-
|
|
157
|
-
### Changed
|
|
158
|
-
|
|
159
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.19.4 ~> 2.20.0]).
|
|
160
|
-
|
|
161
|
-
## [3.0.4] - 2022-03-14
|
|
162
|
-
|
|
163
|
-
### Changed
|
|
164
|
-
|
|
165
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2]).
|
|
166
|
-
|
|
167
|
-
## [3.0.3] - 2022-03-04
|
|
168
|
-
|
|
169
|
-
### Changed
|
|
170
|
-
|
|
171
|
-
- Version patch update due to children dependencies update (`@semcore/typography` [3.3.2 ~> 3.4.0]).
|
|
172
|
-
|
|
173
42
|
## [3.0.1] - 2022-02-24
|
|
174
43
|
|
|
175
44
|
### 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/Card.js
CHANGED
|
@@ -52,18 +52,18 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
":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.___SCard_z2svj_gg_ {\n box-sizing: border-box;\n background: #ffffff;\n padding: 0;\n border: none;\n border-radius: 6px;\n box-shadow: 0 0 1px rgba(25, 27, 35, 0.16), 0 1px 2px rgba(25, 27, 35, 0.12);\n font-family: Inter, sans-serif;\n}\n\n.___STitle_z2svj_gg_ {\n color: #191b23;\n font-size: 16px;\n line-height: 1.5;\n font-weight: 700;\n margin-right: 4px;\n}\n\n.___SIcon_z2svj_gg_ {\n color: #a9abb6;\n cursor: help;\n margin-right: 4px;\n}\n\n.___STooltip_z2svj_gg_ {\n display: inline-flex;\n vertical-align: middle;\n}\n\n.___SDescription_z2svj_gg_ {\n margin-bottom: 0;\n margin-top: 8px;\n font-size: 14px;\n color: #6c6e79;\n}\n\n.___SHeader_z2svj_gg_ {\n padding-top: 8px;\n padding-bottom: 8px;\n padding-left: 20px;\n padding-right: 20px;\n box-shadow: inset 0 -1px 0 #e0e1e9;\n}\n\n.___SBody_z2svj_gg_ {\n color: #191b23;\n padding-bottom: 20px;\n padding-left: 20px;\n padding-right: 20px;\n padding-top: 20px;\n}\n"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "z2svj_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SCard": "
|
|
61
|
-
"__STitle": "
|
|
62
|
-
"__SIcon": "
|
|
63
|
-
"__STooltip": "
|
|
64
|
-
"__SDescription": "
|
|
65
|
-
"__SHeader": "
|
|
66
|
-
"__SBody": "
|
|
60
|
+
"__SCard": "___SCard_z2svj_gg_",
|
|
61
|
+
"__STitle": "___STitle_z2svj_gg_",
|
|
62
|
+
"__SIcon": "___SIcon_z2svj_gg_",
|
|
63
|
+
"__STooltip": "___STooltip_z2svj_gg_",
|
|
64
|
+
"__SDescription": "___SDescription_z2svj_gg_",
|
|
65
|
+
"__SHeader": "___SHeader_z2svj_gg_",
|
|
66
|
+
"__SBody": "___SBody_z2svj_gg_"
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
var CardRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Card.js
CHANGED
|
@@ -31,18 +31,18 @@ var style = (
|
|
|
31
31
|
/*__reshadow_css_start__*/
|
|
32
32
|
_sstyled.insert(
|
|
33
33
|
/*__inner_css_start__*/
|
|
34
|
-
".
|
|
34
|
+
":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.___SCard_z2svj_gg_ {\n box-sizing: border-box;\n background: #ffffff;\n padding: 0;\n border: none;\n border-radius: 6px;\n box-shadow: 0 0 1px rgba(25, 27, 35, 0.16), 0 1px 2px rgba(25, 27, 35, 0.12);\n font-family: Inter, sans-serif;\n}\n\n.___STitle_z2svj_gg_ {\n color: #191b23;\n font-size: 16px;\n line-height: 1.5;\n font-weight: 700;\n margin-right: 4px;\n}\n\n.___SIcon_z2svj_gg_ {\n color: #a9abb6;\n cursor: help;\n margin-right: 4px;\n}\n\n.___STooltip_z2svj_gg_ {\n display: inline-flex;\n vertical-align: middle;\n}\n\n.___SDescription_z2svj_gg_ {\n margin-bottom: 0;\n margin-top: 8px;\n font-size: 14px;\n color: #6c6e79;\n}\n\n.___SHeader_z2svj_gg_ {\n padding-top: 8px;\n padding-bottom: 8px;\n padding-left: 20px;\n padding-right: 20px;\n box-shadow: inset 0 -1px 0 #e0e1e9;\n}\n\n.___SBody_z2svj_gg_ {\n color: #191b23;\n padding-bottom: 20px;\n padding-left: 20px;\n padding-right: 20px;\n padding-top: 20px;\n}\n"
|
|
35
35
|
/*__inner_css_end__*/
|
|
36
|
-
, "
|
|
36
|
+
, "z2svj_gg_")
|
|
37
37
|
/*__reshadow_css_end__*/
|
|
38
38
|
, {
|
|
39
|
-
"__SCard": "
|
|
40
|
-
"__STitle": "
|
|
41
|
-
"__SIcon": "
|
|
42
|
-
"__STooltip": "
|
|
43
|
-
"__SDescription": "
|
|
44
|
-
"__SHeader": "
|
|
45
|
-
"__SBody": "
|
|
39
|
+
"__SCard": "___SCard_z2svj_gg_",
|
|
40
|
+
"__STitle": "___STitle_z2svj_gg_",
|
|
41
|
+
"__SIcon": "___SIcon_z2svj_gg_",
|
|
42
|
+
"__STooltip": "___STooltip_z2svj_gg_",
|
|
43
|
+
"__SDescription": "___SDescription_z2svj_gg_",
|
|
44
|
+
"__SHeader": "___SHeader_z2svj_gg_",
|
|
45
|
+
"__SBody": "___SBody_z2svj_gg_"
|
|
46
46
|
});
|
|
47
47
|
import { isAdvanceMode } from '@semcore/utils/lib/findComponent';
|
|
48
48
|
|
package/package.json
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/card",
|
|
3
3
|
"description": "Semrush Card Component",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.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.31",
|
|
17
13
|
"@semcore/flex-box": "^4",
|
|
18
14
|
"@semcore/typography": "^4",
|
|
19
15
|
"@semcore/tooltip": "^5",
|
|
20
|
-
"@semcore/icon": "
|
|
16
|
+
"@semcore/icon": "2.16 - 3"
|
|
21
17
|
},
|
|
22
18
|
"peerDependencies": {
|
|
23
19
|
"@semcore/core": "^1.11",
|
|
24
|
-
"react": "16.8 -
|
|
20
|
+
"react": "16.8 - 18"
|
|
25
21
|
},
|
|
26
22
|
"jest": {
|
|
27
23
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -32,9 +28,13 @@
|
|
|
32
28
|
"directory": "semcore/card"
|
|
33
29
|
},
|
|
34
30
|
"devDependencies": {
|
|
35
|
-
"@types/react": "
|
|
31
|
+
"@types/react": "18.0.21",
|
|
36
32
|
"@semcore/jest-preset-ui": "1.0.0",
|
|
37
33
|
"@semcore/typography": "*",
|
|
38
34
|
"@semcore/icon": "*"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "pnpm semcore-builder --source=js",
|
|
38
|
+
"test": "jest"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|