@semcore/modal 3.1.6 → 3.1.7

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 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
+ ## [3.1.7] - 2022-10-30
6
+
7
+ ### Changed
8
+
9
+ - Updated `focus-lock`.
10
+
5
11
  ## [3.1.6] - 2022-10-28
6
12
 
7
13
  ### 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.___SWindow_ayasu_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_ayasu_gg_:focus {\n outline: none;\n }\n\n.___SOverlay_ayasu_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_ayasu_gg_ .___SOverlay_ayasu_gg_ {\n background: rgba(25, 27, 35, 0.4);\n }\n\n.___SClose_ayasu_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_ayasu_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_ayasu_gg_.__keyboardFocused_ayasu_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n@media (max-width: 767px) {\n .___SWindow_ayasu_gg_ {\n min-width: 60%;\n }\n\n .___SOverlay_ayasu_gg_ {\n padding: 12px;\n }\n}\n"
73
+ ".___SWindow_f8ao2_gg_{position:relative;border-radius:12px;background:#ffffff;box-sizing:border-box;margin:auto;padding:40px;box-shadow:0 3px 8px rgba(25,27,35,.2)}.___SWindow_f8ao2_gg_:focus{outline:none}.___SOverlay_f8ao2_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:40px;background:rgba(25,27,35,.7);overflow:auto;z-index:10005;-webkit-overflow-scrolling:touch}.___SOverlay_f8ao2_gg_ .___SOverlay_f8ao2_gg_{background:rgba(25,27,35,.4)}.___SClose_f8ao2_gg_{display:inline-flex;position:absolute;right:0;top:0;padding:12px;color:#a9abb6;cursor:pointer;z-index:1;border:none;background:none;outline:none}.___SClose_f8ao2_gg_:hover{color:#8a8e9b}.___SClose_f8ao2_gg_.__keyboardFocused_f8ao2_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}@media (max-width:767px){.___SWindow_f8ao2_gg_{min-width:60%}.___SOverlay_f8ao2_gg_{padding:12px}}"
74
74
  /*__inner_css_end__*/
75
- , "ayasu_gg_")
75
+ , "f8ao2_gg_")
76
76
  /*__reshadow_css_end__*/
77
77
  , {
78
- "__SWindow": "___SWindow_ayasu_gg_",
79
- "__SOverlay": "___SOverlay_ayasu_gg_",
80
- "__SClose": "___SClose_ayasu_gg_",
81
- "_keyboardFocused": "__keyboardFocused_ayasu_gg_"
78
+ "__SWindow": "___SWindow_f8ao2_gg_",
79
+ "__SOverlay": "___SOverlay_f8ao2_gg_",
80
+ "__SClose": "___SClose_f8ao2_gg_",
81
+ "_keyboardFocused": "__keyboardFocused_f8ao2_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.___SWindow_ayasu_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_ayasu_gg_:focus {\n outline: none;\n }\n\n.___SOverlay_ayasu_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_ayasu_gg_ .___SOverlay_ayasu_gg_ {\n background: rgba(25, 27, 35, 0.4);\n }\n\n.___SClose_ayasu_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_ayasu_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_ayasu_gg_.__keyboardFocused_ayasu_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n@media (max-width: 767px) {\n .___SWindow_ayasu_gg_ {\n min-width: 60%;\n }\n\n .___SOverlay_ayasu_gg_ {\n padding: 12px;\n }\n}\n"
43
+ ".___SWindow_f8ao2_gg_{position:relative;border-radius:12px;background:#ffffff;box-sizing:border-box;margin:auto;padding:40px;box-shadow:0 3px 8px rgba(25,27,35,.2)}.___SWindow_f8ao2_gg_:focus{outline:none}.___SOverlay_f8ao2_gg_{position:fixed;top:0;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:center;align-items:center;padding:40px;background:rgba(25,27,35,.7);overflow:auto;z-index:10005;-webkit-overflow-scrolling:touch}.___SOverlay_f8ao2_gg_ .___SOverlay_f8ao2_gg_{background:rgba(25,27,35,.4)}.___SClose_f8ao2_gg_{display:inline-flex;position:absolute;right:0;top:0;padding:12px;color:#a9abb6;cursor:pointer;z-index:1;border:none;background:none;outline:none}.___SClose_f8ao2_gg_:hover{color:#8a8e9b}.___SClose_f8ao2_gg_.__keyboardFocused_f8ao2_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}@media (max-width:767px){.___SWindow_f8ao2_gg_{min-width:60%}.___SOverlay_f8ao2_gg_{padding:12px}}"
44
44
  /*__inner_css_end__*/
45
- , "ayasu_gg_")
45
+ , "f8ao2_gg_")
46
46
  /*__reshadow_css_end__*/
47
47
  , {
48
- "__SWindow": "___SWindow_ayasu_gg_",
49
- "__SOverlay": "___SOverlay_ayasu_gg_",
50
- "__SClose": "___SClose_ayasu_gg_",
51
- "_keyboardFocused": "__keyboardFocused_ayasu_gg_"
48
+ "__SWindow": "___SWindow_f8ao2_gg_",
49
+ "__SOverlay": "___SOverlay_f8ao2_gg_",
50
+ "__SClose": "___SClose_f8ao2_gg_",
51
+ "_keyboardFocused": "__keyboardFocused_f8ao2_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.1.6",
4
+ "version": "3.1.7",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "@semcore/outside-click": "^2",
16
16
  "@semcore/portal": "^2",
17
17
  "@semcore/utils": "^3.31.2",
18
- "react-focus-lock": "2.5.1"
18
+ "react-focus-lock": "2.9.1"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@semcore/core": "^1.11",