@semcore/modal 3.0.24 → 3.1.1
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 +13 -0
- package/lib/cjs/Modal.js +6 -6
- package/lib/es6/Modal.js +6 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.1.1] - 2022-10-17
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/animation` [1.6.0 ~> 1.6.1], `@semcore/flex-box` [4.6.0 ~> 4.6.1], `@semcore/icon` [3.0.0 ~> 3.0.1], `@semcore/utils` [3.39.0 ~> 3.39.0]).
|
|
10
|
+
|
|
11
|
+
## [3.1.0] - 2022-10-10
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Added support for React 18 🔥
|
|
16
|
+
- Extended version range for dependency `@semcore/icons`.
|
|
17
|
+
|
|
5
18
|
## [3.0.24] - 2022-10-06
|
|
6
19
|
|
|
7
20
|
### Changed
|
package/lib/cjs/Modal.js
CHANGED
|
@@ -70,15 +70,15 @@ var style = (
|
|
|
70
70
|
/*__reshadow_css_start__*/
|
|
71
71
|
_core.sstyled.insert(
|
|
72
72
|
/*__inner_css_start__*/
|
|
73
|
-
":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.
|
|
73
|
+
":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.___SWindow_xafik_gg_ {\n position: relative;\n border-radius: 12px;\n background: #ffffff;\n box-sizing: border-box;\n margin: auto;\n padding: 40px;\n box-shadow: 0 3px 8px rgba(25, 27, 35, 0.2)\n}\n\n.___SWindow_xafik_gg_:focus {\n outline: none;\n }\n\n.___SOverlay_xafik_gg_ {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 40px;\n background: rgba(25, 27, 35, 0.7);\n overflow: auto;\n z-index: 10005;\n -webkit-overflow-scrolling: touch\n}\n\n.___SOverlay_xafik_gg_ .___SOverlay_xafik_gg_ {\n background: rgba(25, 27, 35, 0.4);\n }\n\n.___SClose_xafik_gg_ {\n display: inline-flex;\n position: absolute;\n right: 0;\n top: 0;\n padding: 12px;\n color: #a9abb6;\n cursor: pointer;\n z-index: 1;\n border: none;\n background: none;\n outline: none\n}\n\n.___SClose_xafik_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_xafik_gg_.__keyboardFocused_xafik_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n@media (max-width: 767px) {\n .___SWindow_xafik_gg_ {\n min-width: 60%;\n }\n\n .___SOverlay_xafik_gg_ {\n padding: 12px;\n }\n}\n"
|
|
74
74
|
/*__inner_css_end__*/
|
|
75
|
-
, "
|
|
75
|
+
, "xafik_gg_")
|
|
76
76
|
/*__reshadow_css_end__*/
|
|
77
77
|
, {
|
|
78
|
-
"__SWindow": "
|
|
79
|
-
"__SOverlay": "
|
|
80
|
-
"__SClose": "
|
|
81
|
-
"_keyboardFocused": "
|
|
78
|
+
"__SWindow": "___SWindow_xafik_gg_",
|
|
79
|
+
"__SOverlay": "___SOverlay_xafik_gg_",
|
|
80
|
+
"__SClose": "___SClose_xafik_gg_",
|
|
81
|
+
"_keyboardFocused": "__keyboardFocused_xafik_gg_"
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
var ModalRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Modal.js
CHANGED
|
@@ -40,15 +40,15 @@ var style = (
|
|
|
40
40
|
/*__reshadow_css_start__*/
|
|
41
41
|
_sstyled.insert(
|
|
42
42
|
/*__inner_css_start__*/
|
|
43
|
-
":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.
|
|
43
|
+
":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.___SWindow_xafik_gg_ {\n position: relative;\n border-radius: 12px;\n background: #ffffff;\n box-sizing: border-box;\n margin: auto;\n padding: 40px;\n box-shadow: 0 3px 8px rgba(25, 27, 35, 0.2)\n}\n\n.___SWindow_xafik_gg_:focus {\n outline: none;\n }\n\n.___SOverlay_xafik_gg_ {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 40px;\n background: rgba(25, 27, 35, 0.7);\n overflow: auto;\n z-index: 10005;\n -webkit-overflow-scrolling: touch\n}\n\n.___SOverlay_xafik_gg_ .___SOverlay_xafik_gg_ {\n background: rgba(25, 27, 35, 0.4);\n }\n\n.___SClose_xafik_gg_ {\n display: inline-flex;\n position: absolute;\n right: 0;\n top: 0;\n padding: 12px;\n color: #a9abb6;\n cursor: pointer;\n z-index: 1;\n border: none;\n background: none;\n outline: none\n}\n\n.___SClose_xafik_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_xafik_gg_.__keyboardFocused_xafik_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n@media (max-width: 767px) {\n .___SWindow_xafik_gg_ {\n min-width: 60%;\n }\n\n .___SOverlay_xafik_gg_ {\n padding: 12px;\n }\n}\n"
|
|
44
44
|
/*__inner_css_end__*/
|
|
45
|
-
, "
|
|
45
|
+
, "xafik_gg_")
|
|
46
46
|
/*__reshadow_css_end__*/
|
|
47
47
|
, {
|
|
48
|
-
"__SWindow": "
|
|
49
|
-
"__SOverlay": "
|
|
50
|
-
"__SClose": "
|
|
51
|
-
"_keyboardFocused": "
|
|
48
|
+
"__SWindow": "___SWindow_xafik_gg_",
|
|
49
|
+
"__SOverlay": "___SOverlay_xafik_gg_",
|
|
50
|
+
"__SClose": "___SClose_xafik_gg_",
|
|
51
|
+
"_keyboardFocused": "__keyboardFocused_xafik_gg_"
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
var ModalRoot = /*#__PURE__*/function (_Component) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/modal",
|
|
3
3
|
"description": "Semrush Modal Component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@semcore/animation": "^1",
|
|
13
13
|
"@semcore/flex-box": "^4",
|
|
14
|
-
"@semcore/icon": "
|
|
14
|
+
"@semcore/icon": "2.16 - 3",
|
|
15
15
|
"@semcore/outside-click": "^2",
|
|
16
16
|
"@semcore/portal": "^2",
|
|
17
17
|
"@semcore/utils": "^3.31.2",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@semcore/core": "^1.11",
|
|
22
|
-
"react": "16.8 -
|
|
22
|
+
"react": "16.8 - 18"
|
|
23
23
|
},
|
|
24
24
|
"jest": {
|
|
25
25
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"directory": "semcore/modal"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/react": "
|
|
33
|
+
"@types/react": "18.0.21",
|
|
34
34
|
"@guidepup/playwright": "0.6.1",
|
|
35
35
|
"@playwright/test": "1.25.1",
|
|
36
36
|
"@semcore/jest-preset-ui": "1.0.0"
|