@semcore/side-panel 2.0.21 → 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 +7 -0
- package/lib/cjs/SidePanel.js +16 -16
- package/lib/es6/SidePanel.js +16 -16
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [2.1.0] - 2022-10-10
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Added support for React 18 🔥
|
|
10
|
+
- Extended version range for dependency `@semcore/icons`.
|
|
11
|
+
|
|
5
12
|
## [2.0.21] - 2022-10-06
|
|
6
13
|
|
|
7
14
|
### Changed
|
package/lib/cjs/SidePanel.js
CHANGED
|
@@ -75,25 +75,25 @@ var style = (
|
|
|
75
75
|
/*__reshadow_css_start__*/
|
|
76
76
|
_core.sstyled.insert(
|
|
77
77
|
/*__inner_css_start__*/
|
|
78
|
-
":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.
|
|
78
|
+
":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.___SOverlay_1x1ow_gg_ {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0;\n display: flex;\n overflow: hidden;\n z-index: 10005;\n background: rgba(25, 27, 35, 0.7);\n -webkit-overflow-scrolling: touch;\n}\n\n.___SPanel_1x1ow_gg_ {\n display: flex;\n flex-direction: column;\n width: 260px;\n outline: none;\n font-family: Inter, sans-serif;\n position: fixed;\n box-sizing: border-box;\n will-change: transform;\n background: white;\n z-index: 1;\n}\n\n.___SPanel_1x1ow_gg_._placement_top_1x1ow_gg_ {\n box-shadow: 1px 0 12px rgba(25, 27, 35, 0.15);\n width: 100%;\n margin-bottom: auto;\n top: 0;\n left: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_right_1x1ow_gg_ {\n box-shadow: 0px 1px 12px 0px rgba(25, 27, 35, 0.15);\n height: 100vh;\n margin-left: auto;\n top: 0;\n right: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_bottom_1x1ow_gg_ {\n box-shadow: 1px 0 12px rgba(25, 27, 35, 0.15);\n width: 100%;\n margin-top: auto;\n bottom: 0;\n left: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_left_1x1ow_gg_ {\n box-shadow: 0px 1px 12px 0px rgba(25, 27, 35, 0.15);\n height: 100vh;\n margin-right: auto;\n top: 0;\n left: 0;\n}\n\n.panel-right--enter {\n transform: translate(100%, 0);\n}\n\n.panel-left--enter {\n transform: translate(-100%, 0);\n}\n\n.panel-bottom--enter {\n transform: translate(0, 100%);\n}\n\n.panel-right--enter-active,\n.panel-left--enter-active,\n.panel-bottom--enter-active,\n.panel-right--exit,\n.panel-left--exit,\n.panel-bottom--exit {\n transform: translate(0, 0);\n}\n\n.panel-right--exit-active {\n transform: translate(100%, 0);\n}\n\n.panel-left--exit-active {\n transform: translate(-100%, 0);\n}\n\n.panel-bottom--exit-active {\n transform: translate(0, 100%);\n}\n\n.___SClose_1x1ow_gg_ {\n cursor: pointer;\n position: absolute;\n z-index: 1;\n display: inline-flex;\n right: 0;\n top: 0;\n padding: 12px 12px 16px 12px;\n color: #a9abb6;\n border: none;\n background: none;\n outline: none\n}\n\n.___SClose_1x1ow_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_1x1ow_gg_.__keyboardFocused_1x1ow_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n.___SBack_1x1ow_gg_ {\n display: flex;\n align-items: center;\n color: #6c6e79;\n font-size: 12px;\n line-height: 1.33;\n margin-bottom: 4px;\n cursor: pointer\n}\n\n.___SBack_1x1ow_gg_:hover {\n color: #484a54;\n }\n\n.___SBackText_1x1ow_gg_ {\n margin-left: 4px;\n font-size: 12px;\n line-height: 1.42;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_1x1ow_gg_ {\n font-size: 16px;\n line-height: 1.5;\n font-weight: 700;\n color: #191b23;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___SHeader_1x1ow_gg_ {\n padding-left: 24px;\n padding-bottom: 4px;\n padding-right: 56px;\n padding-top: 4px;\n min-height: 52px;\n box-shadow: inset 0 -1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SFooter_1x1ow_gg_ {\n min-height: 44px;\n box-shadow: inset 0 1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SBody_1x1ow_gg_ {\n height: 100%;\n overflow: auto;\n padding-left: 24px;\n padding-bottom: 4px;\n padding-right: 40px;\n padding-top: 16px;\n}\n"
|
|
79
79
|
/*__inner_css_end__*/
|
|
80
|
-
, "
|
|
80
|
+
, "1x1ow_gg_")
|
|
81
81
|
/*__reshadow_css_end__*/
|
|
82
82
|
, {
|
|
83
|
-
"__SOverlay": "
|
|
84
|
-
"__SPanel": "
|
|
85
|
-
"_placement_top": "
|
|
86
|
-
"_placement_right": "
|
|
87
|
-
"_placement_bottom": "
|
|
88
|
-
"_placement_left": "
|
|
89
|
-
"__SClose": "
|
|
90
|
-
"_keyboardFocused": "
|
|
91
|
-
"__SBack": "
|
|
92
|
-
"__SBackText": "
|
|
93
|
-
"__STitle": "
|
|
94
|
-
"__SHeader": "
|
|
95
|
-
"__SFooter": "
|
|
96
|
-
"__SBody": "
|
|
83
|
+
"__SOverlay": "___SOverlay_1x1ow_gg_",
|
|
84
|
+
"__SPanel": "___SPanel_1x1ow_gg_",
|
|
85
|
+
"_placement_top": "_placement_top_1x1ow_gg_",
|
|
86
|
+
"_placement_right": "_placement_right_1x1ow_gg_",
|
|
87
|
+
"_placement_bottom": "_placement_bottom_1x1ow_gg_",
|
|
88
|
+
"_placement_left": "_placement_left_1x1ow_gg_",
|
|
89
|
+
"__SClose": "___SClose_1x1ow_gg_",
|
|
90
|
+
"_keyboardFocused": "__keyboardFocused_1x1ow_gg_",
|
|
91
|
+
"__SBack": "___SBack_1x1ow_gg_",
|
|
92
|
+
"__SBackText": "___SBackText_1x1ow_gg_",
|
|
93
|
+
"__STitle": "___STitle_1x1ow_gg_",
|
|
94
|
+
"__SHeader": "___SHeader_1x1ow_gg_",
|
|
95
|
+
"__SFooter": "___SFooter_1x1ow_gg_",
|
|
96
|
+
"__SBody": "___SBody_1x1ow_gg_"
|
|
97
97
|
});
|
|
98
98
|
var placementTransformMap = {
|
|
99
99
|
top: ['translate(0, -100%)', 'translate(0, 0)'],
|
package/lib/es6/SidePanel.js
CHANGED
|
@@ -48,25 +48,25 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
":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.
|
|
51
|
+
":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.___SOverlay_1x1ow_gg_ {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: 0;\n display: flex;\n overflow: hidden;\n z-index: 10005;\n background: rgba(25, 27, 35, 0.7);\n -webkit-overflow-scrolling: touch;\n}\n\n.___SPanel_1x1ow_gg_ {\n display: flex;\n flex-direction: column;\n width: 260px;\n outline: none;\n font-family: Inter, sans-serif;\n position: fixed;\n box-sizing: border-box;\n will-change: transform;\n background: white;\n z-index: 1;\n}\n\n.___SPanel_1x1ow_gg_._placement_top_1x1ow_gg_ {\n box-shadow: 1px 0 12px rgba(25, 27, 35, 0.15);\n width: 100%;\n margin-bottom: auto;\n top: 0;\n left: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_right_1x1ow_gg_ {\n box-shadow: 0px 1px 12px 0px rgba(25, 27, 35, 0.15);\n height: 100vh;\n margin-left: auto;\n top: 0;\n right: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_bottom_1x1ow_gg_ {\n box-shadow: 1px 0 12px rgba(25, 27, 35, 0.15);\n width: 100%;\n margin-top: auto;\n bottom: 0;\n left: 0;\n}\n\n.___SPanel_1x1ow_gg_._placement_left_1x1ow_gg_ {\n box-shadow: 0px 1px 12px 0px rgba(25, 27, 35, 0.15);\n height: 100vh;\n margin-right: auto;\n top: 0;\n left: 0;\n}\n\n.panel-right--enter {\n transform: translate(100%, 0);\n}\n\n.panel-left--enter {\n transform: translate(-100%, 0);\n}\n\n.panel-bottom--enter {\n transform: translate(0, 100%);\n}\n\n.panel-right--enter-active,\n.panel-left--enter-active,\n.panel-bottom--enter-active,\n.panel-right--exit,\n.panel-left--exit,\n.panel-bottom--exit {\n transform: translate(0, 0);\n}\n\n.panel-right--exit-active {\n transform: translate(100%, 0);\n}\n\n.panel-left--exit-active {\n transform: translate(-100%, 0);\n}\n\n.panel-bottom--exit-active {\n transform: translate(0, 100%);\n}\n\n.___SClose_1x1ow_gg_ {\n cursor: pointer;\n position: absolute;\n z-index: 1;\n display: inline-flex;\n right: 0;\n top: 0;\n padding: 12px 12px 16px 12px;\n color: #a9abb6;\n border: none;\n background: none;\n outline: none\n}\n\n.___SClose_1x1ow_gg_:hover {\n color: #8a8e9b;\n }\n\n.___SClose_1x1ow_gg_.__keyboardFocused_1x1ow_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n.___SBack_1x1ow_gg_ {\n display: flex;\n align-items: center;\n color: #6c6e79;\n font-size: 12px;\n line-height: 1.33;\n margin-bottom: 4px;\n cursor: pointer\n}\n\n.___SBack_1x1ow_gg_:hover {\n color: #484a54;\n }\n\n.___SBackText_1x1ow_gg_ {\n margin-left: 4px;\n font-size: 12px;\n line-height: 1.42;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___STitle_1x1ow_gg_ {\n font-size: 16px;\n line-height: 1.5;\n font-weight: 700;\n color: #191b23;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___SHeader_1x1ow_gg_ {\n padding-left: 24px;\n padding-bottom: 4px;\n padding-right: 56px;\n padding-top: 4px;\n min-height: 52px;\n box-shadow: inset 0 -1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SFooter_1x1ow_gg_ {\n min-height: 44px;\n box-shadow: inset 0 1px 0 #c4c7cf;\n box-sizing: border-box;\n}\n\n.___SBody_1x1ow_gg_ {\n height: 100%;\n overflow: auto;\n padding-left: 24px;\n padding-bottom: 4px;\n padding-right: 40px;\n padding-top: 16px;\n}\n"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "1x1ow_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SOverlay": "
|
|
57
|
-
"__SPanel": "
|
|
58
|
-
"_placement_top": "
|
|
59
|
-
"_placement_right": "
|
|
60
|
-
"_placement_bottom": "
|
|
61
|
-
"_placement_left": "
|
|
62
|
-
"__SClose": "
|
|
63
|
-
"_keyboardFocused": "
|
|
64
|
-
"__SBack": "
|
|
65
|
-
"__SBackText": "
|
|
66
|
-
"__STitle": "
|
|
67
|
-
"__SHeader": "
|
|
68
|
-
"__SFooter": "
|
|
69
|
-
"__SBody": "
|
|
56
|
+
"__SOverlay": "___SOverlay_1x1ow_gg_",
|
|
57
|
+
"__SPanel": "___SPanel_1x1ow_gg_",
|
|
58
|
+
"_placement_top": "_placement_top_1x1ow_gg_",
|
|
59
|
+
"_placement_right": "_placement_right_1x1ow_gg_",
|
|
60
|
+
"_placement_bottom": "_placement_bottom_1x1ow_gg_",
|
|
61
|
+
"_placement_left": "_placement_left_1x1ow_gg_",
|
|
62
|
+
"__SClose": "___SClose_1x1ow_gg_",
|
|
63
|
+
"_keyboardFocused": "__keyboardFocused_1x1ow_gg_",
|
|
64
|
+
"__SBack": "___SBack_1x1ow_gg_",
|
|
65
|
+
"__SBackText": "___SBackText_1x1ow_gg_",
|
|
66
|
+
"__STitle": "___STitle_1x1ow_gg_",
|
|
67
|
+
"__SHeader": "___SHeader_1x1ow_gg_",
|
|
68
|
+
"__SFooter": "___SFooter_1x1ow_gg_",
|
|
69
|
+
"__SBody": "___SBody_1x1ow_gg_"
|
|
70
70
|
});
|
|
71
71
|
var placementTransformMap = {
|
|
72
72
|
top: ['translate(0, -100%)', 'translate(0, 0)'],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/side-panel",
|
|
3
3
|
"description": "Semrush SidePanel 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",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"@semcore/portal": "^2",
|
|
16
16
|
"@semcore/typography": "^4.0.1",
|
|
17
17
|
"@semcore/outside-click": "^2",
|
|
18
|
-
"@semcore/icon": "
|
|
18
|
+
"@semcore/icon": "2.16 - 3",
|
|
19
19
|
"react-focus-lock": "2.5.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@semcore/core": "^1.11",
|
|
23
|
-
"react": "16.8 -
|
|
23
|
+
"react": "16.8 - 18"
|
|
24
24
|
},
|
|
25
25
|
"jest": {
|
|
26
26
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"directory": "semcore/side-panel"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/react": "
|
|
34
|
+
"@types/react": "18.0.21",
|
|
35
35
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|