@semcore/fullscreen-modal 2.0.22 → 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 -112
- package/LICENSE +21 -0
- package/lib/cjs/FullscreenModal.js +13 -13
- package/lib/es6/FullscreenModal.js +13 -13
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -2,29 +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.23] - 2022-10-06
|
|
12
13
|
|
|
13
14
|
### Changed
|
|
14
15
|
|
|
15
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.
|
|
16
|
-
|
|
17
|
-
## [2.0.20] - 2022-09-21
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
|
|
21
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.3 ~> 2.30.4]).
|
|
22
|
-
|
|
23
|
-
## [2.0.19] - 2022-09-21
|
|
24
|
-
|
|
25
|
-
### Changed
|
|
26
|
-
|
|
27
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.30.2 ~> 2.30.3]).
|
|
16
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.32.2 ~> 2.33.0]).
|
|
28
17
|
|
|
29
18
|
## [2.0.18] - 2022-09-08
|
|
30
19
|
|
|
@@ -38,48 +27,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
38
27
|
|
|
39
28
|
- Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
|
|
40
29
|
|
|
41
|
-
## [2.0.16] - 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.15] - 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.14] - 2022-08-18
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/flex-box` [4.5.9 ~> 4.5.10]).
|
|
58
|
-
|
|
59
|
-
## [2.0.13] - 2022-08-11
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/typography` [4.0.11 ~> 4.1.0], `@semcore/flex-box` [4.5.8 ~> 4.5.9]).
|
|
64
|
-
|
|
65
|
-
## [2.0.12] - 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.11] - 2022-07-22
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/flex-box` [4.5.6 ~> 4.5.7]).
|
|
76
|
-
|
|
77
|
-
## [2.0.10] - 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
30
|
## [2.0.9] - 2022-07-13
|
|
84
31
|
|
|
85
32
|
### Fixed
|
|
@@ -92,36 +39,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
92
39
|
|
|
93
40
|
- Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/icon` [2.27.0 ~> 2.28.0], `@semcore/flex-box` [4.5.5 ~> 4.5.6]).
|
|
94
41
|
|
|
95
|
-
## [2.0.7] - 2022-06-02
|
|
96
|
-
|
|
97
|
-
### Changed
|
|
98
|
-
|
|
99
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/icon` [2.26.1 ~> 2.27.0], `@semcore/flex-box` [4.5.4 ~> 4.5.5]).
|
|
100
|
-
|
|
101
|
-
## [2.0.6] - 2022-05-31
|
|
102
|
-
|
|
103
|
-
### Changed
|
|
104
|
-
|
|
105
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/flex-box` [4.5.3 ~> 4.5.4]).
|
|
106
|
-
|
|
107
|
-
## [2.0.5] - 2022-05-23
|
|
108
|
-
|
|
109
|
-
### Changed
|
|
110
|
-
|
|
111
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.25.1 ~> 2.26.0]).
|
|
112
|
-
|
|
113
|
-
## [2.0.4] - 2022-05-19
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Version patch update due to children dependencies update (`@semcore/modal` [3.0.2 ~> 3.0.3]).
|
|
118
|
-
|
|
119
|
-
## [2.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/typography` [4.0.1 ~> 4.0.3], `@semcore/flex-box` [4.5.1 ~> 4.5.3]).
|
|
124
|
-
|
|
125
42
|
## [2.0.2] - 2022-05-19
|
|
126
43
|
|
|
127
44
|
### Fixed
|
|
@@ -148,30 +65,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
148
65
|
|
|
149
66
|
- Version patch update due to children dependencies update (`@semcore/icon` [2.21.0 ~> 2.24.0]).
|
|
150
67
|
|
|
151
|
-
## [1.6.4] - 2022-04-28
|
|
152
|
-
|
|
153
|
-
### Changed
|
|
154
|
-
|
|
155
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.20.0 ~> 2.21.0]).
|
|
156
|
-
|
|
157
|
-
## [1.6.3] - 2022-03-21
|
|
158
|
-
|
|
159
|
-
### Changed
|
|
160
|
-
|
|
161
|
-
- Version patch update due to children dependencies update (`@semcore/icon` [2.19.4 ~> 2.20.0]).
|
|
162
|
-
|
|
163
|
-
## [1.6.2] - 2022-03-14
|
|
164
|
-
|
|
165
|
-
### Changed
|
|
166
|
-
|
|
167
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2], `@semcore/modal` [2.4.3 ~> 2.4.5], `@semcore/flex-box` [4.5.0 ~> 4.5.1]).
|
|
168
|
-
|
|
169
|
-
## [1.6.1] - 2022-03-05
|
|
170
|
-
|
|
171
|
-
### Changed
|
|
172
|
-
|
|
173
|
-
- Version patch update due to children dependencies update (`@semcore/modal` [2.4.2 ~> 2.4.3]).
|
|
174
|
-
|
|
175
68
|
## [1.6.0] - 2021-03-04
|
|
176
69
|
|
|
177
70
|
### 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.
|
|
@@ -56,22 +56,22 @@ var style = (
|
|
|
56
56
|
/*__reshadow_css_start__*/
|
|
57
57
|
_core.sstyled.insert(
|
|
58
58
|
/*__inner_css_start__*/
|
|
59
|
-
".
|
|
59
|
+
":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.___SFullscreenOverlay_373wf_gg_ {\n padding: 0;\n}\n\n.___SFullscreenModal_373wf_gg_ {\n height: 100%;\n display: flex;\n flex-direction: column;\n width: 100%;\n background: #ffffff;\n border-radius: 0;\n padding: 0;\n}\n\n.___SClose_373wf_gg_,\n.___SBack_373wf_gg_ {\n cursor: pointer;\n position: absolute;\n z-index: 1;\n}\n\n.___SClose_373wf_gg_ {\n top: 17px;\n right: 23px;\n padding: 12px;\n color: #a9abb6\n}\n\n.___SClose_373wf_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SBack_373wf_gg_ {\n top: 8px;\n left: 32px;\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n color: #6c6e79;\n font-size: 12px;\n line-height: 1.33\n}\n\n.___SBack_373wf_gg_:hover {\n color: #484a54;\n }\n\n.___SBackText_373wf_gg_ {\n margin-left: 4px;\n font-size: 14px;\n line-height: 1.42;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_373wf_gg_,\n.___SDescription_373wf_gg_ {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_373wf_gg_ {\n font-size: 24px;\n line-height: 1.17;\n font-weight: 700;\n font-family: FactorA-Bold, sans-serif;\n color: #191b23;\n}\n\n.___SDescription_373wf_gg_ {\n display: flex;\n align-items: baseline;\n font-size: 12px;\n line-height: 1.33;\n color: #6c6e79\n}\n\n.___SDescription_373wf_gg_::before {\n content: '';\n position: relative;\n top: 4px;\n display: block;\n margin-left: 12px;\n margin-right: 12px;\n height: 24px;\n width: 1px;\n background-color: #c4c7cf;\n }\n\n.___SHeader_373wf_gg_ {\n display: flex;\n align-items: baseline;\n padding-left: 32px;\n padding-bottom: 8px;\n padding-right: 72px;\n padding-top: 40px;\n min-height: 76px;\n box-shadow: inset 0 -1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SFooter_373wf_gg_ {\n min-height: 52px;\n box-shadow: inset 0 1px 1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SBody_373wf_gg_ {\n display: flex;\n height: 100%;\n overflow: auto;\n}\n\n.___SSection_373wf_gg_ {\n padding-top: 24px;\n padding-bottom: 24px;\n padding-left: 32px;\n padding-right: 32px;\n flex: 1 1 auto;\n}\n\n@media (prefers-reduced-motion) {\n .___SBackText_373wf_gg_ {\n transition: none;\n }\n}\n"
|
|
60
60
|
/*__inner_css_end__*/
|
|
61
|
-
, "
|
|
61
|
+
, "373wf_gg_")
|
|
62
62
|
/*__reshadow_css_end__*/
|
|
63
63
|
, {
|
|
64
|
-
"__SFullscreenOverlay": "
|
|
65
|
-
"__SFullscreenModal": "
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"__SBackText": "
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"__SHeader": "
|
|
72
|
-
"__SFooter": "
|
|
73
|
-
"__SBody": "
|
|
74
|
-
"__SSection": "
|
|
64
|
+
"__SFullscreenOverlay": "___SFullscreenOverlay_373wf_gg_",
|
|
65
|
+
"__SFullscreenModal": "___SFullscreenModal_373wf_gg_",
|
|
66
|
+
"__SClose": "___SClose_373wf_gg_",
|
|
67
|
+
"__SBack": "___SBack_373wf_gg_",
|
|
68
|
+
"__SBackText": "___SBackText_373wf_gg_",
|
|
69
|
+
"__STitle": "___STitle_373wf_gg_",
|
|
70
|
+
"__SDescription": "___SDescription_373wf_gg_",
|
|
71
|
+
"__SHeader": "___SHeader_373wf_gg_",
|
|
72
|
+
"__SFooter": "___SFooter_373wf_gg_",
|
|
73
|
+
"__SBody": "___SBody_373wf_gg_",
|
|
74
|
+
"__SSection": "___SSection_373wf_gg_"
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
var FullscreenModalRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -38,22 +38,22 @@ var style = (
|
|
|
38
38
|
/*__reshadow_css_start__*/
|
|
39
39
|
_sstyled.insert(
|
|
40
40
|
/*__inner_css_start__*/
|
|
41
|
-
".
|
|
41
|
+
":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.___SFullscreenOverlay_373wf_gg_ {\n padding: 0;\n}\n\n.___SFullscreenModal_373wf_gg_ {\n height: 100%;\n display: flex;\n flex-direction: column;\n width: 100%;\n background: #ffffff;\n border-radius: 0;\n padding: 0;\n}\n\n.___SClose_373wf_gg_,\n.___SBack_373wf_gg_ {\n cursor: pointer;\n position: absolute;\n z-index: 1;\n}\n\n.___SClose_373wf_gg_ {\n top: 17px;\n right: 23px;\n padding: 12px;\n color: #a9abb6\n}\n\n.___SClose_373wf_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SBack_373wf_gg_ {\n top: 8px;\n left: 32px;\n display: flex;\n align-items: center;\n margin-bottom: 12px;\n color: #6c6e79;\n font-size: 12px;\n line-height: 1.33\n}\n\n.___SBack_373wf_gg_:hover {\n color: #484a54;\n }\n\n.___SBackText_373wf_gg_ {\n margin-left: 4px;\n font-size: 14px;\n line-height: 1.42;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_373wf_gg_,\n.___SDescription_373wf_gg_ {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_373wf_gg_ {\n font-size: 24px;\n line-height: 1.17;\n font-weight: 700;\n font-family: FactorA-Bold, sans-serif;\n color: #191b23;\n}\n\n.___SDescription_373wf_gg_ {\n display: flex;\n align-items: baseline;\n font-size: 12px;\n line-height: 1.33;\n color: #6c6e79\n}\n\n.___SDescription_373wf_gg_::before {\n content: '';\n position: relative;\n top: 4px;\n display: block;\n margin-left: 12px;\n margin-right: 12px;\n height: 24px;\n width: 1px;\n background-color: #c4c7cf;\n }\n\n.___SHeader_373wf_gg_ {\n display: flex;\n align-items: baseline;\n padding-left: 32px;\n padding-bottom: 8px;\n padding-right: 72px;\n padding-top: 40px;\n min-height: 76px;\n box-shadow: inset 0 -1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SFooter_373wf_gg_ {\n min-height: 52px;\n box-shadow: inset 0 1px 1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SBody_373wf_gg_ {\n display: flex;\n height: 100%;\n overflow: auto;\n}\n\n.___SSection_373wf_gg_ {\n padding-top: 24px;\n padding-bottom: 24px;\n padding-left: 32px;\n padding-right: 32px;\n flex: 1 1 auto;\n}\n\n@media (prefers-reduced-motion) {\n .___SBackText_373wf_gg_ {\n transition: none;\n }\n}\n"
|
|
42
42
|
/*__inner_css_end__*/
|
|
43
|
-
, "
|
|
43
|
+
, "373wf_gg_")
|
|
44
44
|
/*__reshadow_css_end__*/
|
|
45
45
|
, {
|
|
46
|
-
"__SFullscreenOverlay": "
|
|
47
|
-
"__SFullscreenModal": "
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"__SBackText": "
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"__SHeader": "
|
|
54
|
-
"__SFooter": "
|
|
55
|
-
"__SBody": "
|
|
56
|
-
"__SSection": "
|
|
46
|
+
"__SFullscreenOverlay": "___SFullscreenOverlay_373wf_gg_",
|
|
47
|
+
"__SFullscreenModal": "___SFullscreenModal_373wf_gg_",
|
|
48
|
+
"__SClose": "___SClose_373wf_gg_",
|
|
49
|
+
"__SBack": "___SBack_373wf_gg_",
|
|
50
|
+
"__SBackText": "___SBackText_373wf_gg_",
|
|
51
|
+
"__STitle": "___STitle_373wf_gg_",
|
|
52
|
+
"__SDescription": "___SDescription_373wf_gg_",
|
|
53
|
+
"__SHeader": "___SHeader_373wf_gg_",
|
|
54
|
+
"__SFooter": "___SFooter_373wf_gg_",
|
|
55
|
+
"__SBody": "___SBody_373wf_gg_",
|
|
56
|
+
"__SSection": "___SSection_373wf_gg_"
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
var FullscreenModalRoot = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/fullscreen-modal",
|
|
3
3
|
"description": "Semrush FullscreenModal 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.21",
|
|
17
|
-
"@semcore/icon": "
|
|
13
|
+
"@semcore/icon": "2.16 - 3",
|
|
18
14
|
"@semcore/modal": "^3.0.1",
|
|
19
15
|
"@semcore/typography": "^4",
|
|
20
16
|
"@semcore/flex-box": "^4"
|
|
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,7 +28,11 @@
|
|
|
32
28
|
"directory": "semcore/fullscreen-modal"
|
|
33
29
|
},
|
|
34
30
|
"devDependencies": {
|
|
35
|
-
"@types/react": "
|
|
31
|
+
"@types/react": "18.0.21",
|
|
36
32
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "pnpm semcore-builder --source=js",
|
|
36
|
+
"test": "jest"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|