@semcore/notice-bubble 4.3.2 → 4.4.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 CHANGED
@@ -2,6 +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.4.1] - 2022-12-13
6
+
7
+ ### Changed
8
+
9
+ - Added `react-dom` to peer dependencies.
10
+
11
+ ## [4.4.0] - 2022-12-12
12
+
13
+ ### Added
14
+
15
+ - Design tokens based theming.
16
+
5
17
  ## [4.3.2] - 2022-12-09
6
18
 
7
19
  ### Changed
@@ -67,20 +67,20 @@ var style = (
67
67
  /*__reshadow_css_start__*/
68
68
  _core.sstyled.insert(
69
69
  /*__inner_css_start__*/
70
- ".___SInfo_1fk74_gg_,.___SView_1fk74_gg_,.___SWarning_1fk74_gg_{position:relative;margin-bottom:12px;padding:12px 28px 12px 12px;width:100%;min-height:44px;border-radius:6px;overflow:hidden;box-sizing:border-box}.___SInfo_1fk74_gg_{background:#191b23}.___SWarning_1fk74_gg_{background:#ff4953}.___SMessage_1fk74_gg_{font-size:14px;color:#fff;line-height:1.33}.___SDismiss_1fk74_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:8px;color:#ffffff}.___SDismiss_1fk74_gg_:hover{color:#e0e1e9}.___SAction_1fk74_gg_{margin-top:8px}.___SNoticeBubble_1fk74_gg_{width:300px;position:fixed;z-index:1010;right:12px;top:12px}@media (max-width:767px){.___SNoticeBubble_1fk74_gg_{width:calc(100% - 24px)}}@keyframes enter_1fk74{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1fk74{0%{opacity:1}to{opacity:0}}"
70
+ ".___SInfo_1ghap_gg_,.___SView_1ghap_gg_,.___SWarning_1ghap_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x,12px);padding:var(--intergalactic-spacing-3x,12px) calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px)) var(--intergalactic-spacing-3x,12px) var(--intergalactic-spacing-3x,12px);width:100%;min-height:44px;border-radius:var(--intergalactic-rounded-medium,6px);overflow:hidden;box-sizing:border-box}.___SInfo_1ghap_gg_{background:var(--intergalactic-bg-primary-invert,#191b23)}.___SWarning_1ghap_gg_{background:var(--intergalactic-bg-primary-critical,#ff4953)}.___SMessage_1ghap_gg_{font-size:var(--intergalactic-fs-200,14px);color:var(--intergalactic-text-primary-invert,#fff);line-height:var(--intergalactic-lh-100,133%)}.___SDismiss_1ghap_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-2x,8px);color:var(--intergalactic-text-primary-invert,#fff)}.___SDismiss_1ghap_gg_:hover{color:var(--intergalactic-control-primary-invert-active,#e0e1e9)}.___SAction_1ghap_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}.___SNoticeBubble_1ghap_gg_{width:300px;position:fixed;z-index:var(--intergalactic-z-index-notice-bubble,999);right:var(--intergalactic-spacing-3x,12px);top:var(--intergalactic-spacing-3x,12px)}@media (max-width:767px){.___SNoticeBubble_1ghap_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}@keyframes enter_1ghap{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1ghap{0%{opacity:1}to{opacity:0}}"
71
71
  /*__inner_css_end__*/
72
- , "1fk74_gg_")
72
+ , "1ghap_gg_")
73
73
  /*__reshadow_css_end__*/
74
74
  , {
75
- "__SInfo": "___SInfo_1fk74_gg_",
76
- "__SView": "___SView_1fk74_gg_",
77
- "__SWarning": "___SWarning_1fk74_gg_",
78
- "__SMessage": "___SMessage_1fk74_gg_",
79
- "__SDismiss": "___SDismiss_1fk74_gg_",
80
- "__SAction": "___SAction_1fk74_gg_",
81
- "__SNoticeBubble": "___SNoticeBubble_1fk74_gg_",
82
- "@enter": "enter_1fk74",
83
- "@exit": "exit_1fk74"
75
+ "__SInfo": "___SInfo_1ghap_gg_",
76
+ "__SView": "___SView_1ghap_gg_",
77
+ "__SWarning": "___SWarning_1ghap_gg_",
78
+ "__SMessage": "___SMessage_1ghap_gg_",
79
+ "__SDismiss": "___SDismiss_1ghap_gg_",
80
+ "__SAction": "___SAction_1ghap_gg_",
81
+ "__SNoticeBubble": "___SNoticeBubble_1ghap_gg_",
82
+ "@enter": "enter_1ghap",
83
+ "@exit": "exit_1ghap"
84
84
  });
85
85
 
86
86
  var Notices = function Notices(props) {
@@ -1,30 +1,30 @@
1
- @import '@semcore/utils/style/var.css';
2
-
3
1
  SInfo,
4
2
  SWarning,
5
3
  SView {
6
4
  position: relative;
7
- margin-bottom: 12px;
8
- padding: 12px 28px 12px 12px;
5
+ margin-bottom: var(--intergalactic-spacing-3x, 12px);
6
+ padding: var(--intergalactic-spacing-3x, 12px)
7
+ calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px))
8
+ var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-3x, 12px);
9
9
  width: 100%;
10
10
  min-height: 44px;
11
- border-radius: var(--rounded-m);
11
+ border-radius: var(--intergalactic-rounded-medium, 6px);
12
12
  overflow: hidden;
13
13
  box-sizing: border-box;
14
14
  }
15
15
 
16
16
  SInfo {
17
- background: var(--gray-800);
17
+ background: var(--intergalactic-bg-primary-invert, #191b23);
18
18
  }
19
19
 
20
20
  SWarning {
21
- background: var(--red-400);
21
+ background: var(--intergalactic-bg-primary-critical, #ff4953);
22
22
  }
23
23
 
24
24
  SMessage {
25
- font-size: var(--fs-200);
26
- color: #fff;
27
- line-height: var(--lh-100);
25
+ font-size: var(--intergalactic-fs-200, 14px);
26
+ color: var(--intergalactic-text-primary-invert, #ffffff);
27
+ line-height: var(--intergalactic-lh-100, 133%);
28
28
  }
29
29
 
30
30
  SDismiss {
@@ -32,27 +32,27 @@ SDismiss {
32
32
  position: absolute;
33
33
  right: 0;
34
34
  top: 0;
35
- padding: 8px;
36
- color: var(--white);
35
+ padding: var(--intergalactic-spacing-2x, 8px);
36
+ color: var(--intergalactic-text-primary-invert, #ffffff);
37
37
 
38
38
  &:hover {
39
- color: var(--gray-100);
39
+ color: var(--intergalactic-control-primary-invert-active, #e0e1e9);
40
40
  }
41
41
  }
42
42
 
43
43
  SAction {
44
- margin-top: 8px;
44
+ margin-top: var(--intergalactic-spacing-2x, 8px);
45
45
  }
46
46
 
47
47
  SNoticeBubble {
48
48
  width: 300px;
49
49
  position: fixed;
50
- z-index: 1010;
51
- right: 12px;
52
- top: 12px;
50
+ z-index: var(--intergalactic-z-index-notice-bubble, 999);
51
+ right: var(--intergalactic-spacing-3x, 12px);
52
+ top: var(--intergalactic-spacing-3x, 12px);
53
53
 
54
54
  @media (max-width: 767px) {
55
- width: calc(100% - 24px);
55
+ width: calc(100% - var(--intergalactic-spacing-6x, 24px));
56
56
  }
57
57
  }
58
58
 
@@ -36,20 +36,20 @@ var style = (
36
36
  /*__reshadow_css_start__*/
37
37
  _sstyled.insert(
38
38
  /*__inner_css_start__*/
39
- ".___SInfo_1fk74_gg_,.___SView_1fk74_gg_,.___SWarning_1fk74_gg_{position:relative;margin-bottom:12px;padding:12px 28px 12px 12px;width:100%;min-height:44px;border-radius:6px;overflow:hidden;box-sizing:border-box}.___SInfo_1fk74_gg_{background:#191b23}.___SWarning_1fk74_gg_{background:#ff4953}.___SMessage_1fk74_gg_{font-size:14px;color:#fff;line-height:1.33}.___SDismiss_1fk74_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:8px;color:#ffffff}.___SDismiss_1fk74_gg_:hover{color:#e0e1e9}.___SAction_1fk74_gg_{margin-top:8px}.___SNoticeBubble_1fk74_gg_{width:300px;position:fixed;z-index:1010;right:12px;top:12px}@media (max-width:767px){.___SNoticeBubble_1fk74_gg_{width:calc(100% - 24px)}}@keyframes enter_1fk74{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1fk74{0%{opacity:1}to{opacity:0}}"
39
+ ".___SInfo_1ghap_gg_,.___SView_1ghap_gg_,.___SWarning_1ghap_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x,12px);padding:var(--intergalactic-spacing-3x,12px) calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px)) var(--intergalactic-spacing-3x,12px) var(--intergalactic-spacing-3x,12px);width:100%;min-height:44px;border-radius:var(--intergalactic-rounded-medium,6px);overflow:hidden;box-sizing:border-box}.___SInfo_1ghap_gg_{background:var(--intergalactic-bg-primary-invert,#191b23)}.___SWarning_1ghap_gg_{background:var(--intergalactic-bg-primary-critical,#ff4953)}.___SMessage_1ghap_gg_{font-size:var(--intergalactic-fs-200,14px);color:var(--intergalactic-text-primary-invert,#fff);line-height:var(--intergalactic-lh-100,133%)}.___SDismiss_1ghap_gg_{cursor:pointer;position:absolute;right:0;top:0;padding:var(--intergalactic-spacing-2x,8px);color:var(--intergalactic-text-primary-invert,#fff)}.___SDismiss_1ghap_gg_:hover{color:var(--intergalactic-control-primary-invert-active,#e0e1e9)}.___SAction_1ghap_gg_{margin-top:var(--intergalactic-spacing-2x,8px)}.___SNoticeBubble_1ghap_gg_{width:300px;position:fixed;z-index:var(--intergalactic-z-index-notice-bubble,999);right:var(--intergalactic-spacing-3x,12px);top:var(--intergalactic-spacing-3x,12px)}@media (max-width:767px){.___SNoticeBubble_1ghap_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}@keyframes enter_1ghap{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes exit_1ghap{0%{opacity:1}to{opacity:0}}"
40
40
  /*__inner_css_end__*/
41
- , "1fk74_gg_")
41
+ , "1ghap_gg_")
42
42
  /*__reshadow_css_end__*/
43
43
  , {
44
- "__SInfo": "___SInfo_1fk74_gg_",
45
- "__SView": "___SView_1fk74_gg_",
46
- "__SWarning": "___SWarning_1fk74_gg_",
47
- "__SMessage": "___SMessage_1fk74_gg_",
48
- "__SDismiss": "___SDismiss_1fk74_gg_",
49
- "__SAction": "___SAction_1fk74_gg_",
50
- "__SNoticeBubble": "___SNoticeBubble_1fk74_gg_",
51
- "@enter": "enter_1fk74",
52
- "@exit": "exit_1fk74"
44
+ "__SInfo": "___SInfo_1ghap_gg_",
45
+ "__SView": "___SView_1ghap_gg_",
46
+ "__SWarning": "___SWarning_1ghap_gg_",
47
+ "__SMessage": "___SMessage_1ghap_gg_",
48
+ "__SDismiss": "___SDismiss_1ghap_gg_",
49
+ "__SAction": "___SAction_1ghap_gg_",
50
+ "__SNoticeBubble": "___SNoticeBubble_1ghap_gg_",
51
+ "@enter": "enter_1ghap",
52
+ "@exit": "exit_1ghap"
53
53
  });
54
54
 
55
55
  var Notices = function Notices(props) {
@@ -1,30 +1,30 @@
1
- @import '@semcore/utils/style/var.css';
2
-
3
1
  SInfo,
4
2
  SWarning,
5
3
  SView {
6
4
  position: relative;
7
- margin-bottom: 12px;
8
- padding: 12px 28px 12px 12px;
5
+ margin-bottom: var(--intergalactic-spacing-3x, 12px);
6
+ padding: var(--intergalactic-spacing-3x, 12px)
7
+ calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-1x, 4px))
8
+ var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-3x, 12px);
9
9
  width: 100%;
10
10
  min-height: 44px;
11
- border-radius: var(--rounded-m);
11
+ border-radius: var(--intergalactic-rounded-medium, 6px);
12
12
  overflow: hidden;
13
13
  box-sizing: border-box;
14
14
  }
15
15
 
16
16
  SInfo {
17
- background: var(--gray-800);
17
+ background: var(--intergalactic-bg-primary-invert, #191b23);
18
18
  }
19
19
 
20
20
  SWarning {
21
- background: var(--red-400);
21
+ background: var(--intergalactic-bg-primary-critical, #ff4953);
22
22
  }
23
23
 
24
24
  SMessage {
25
- font-size: var(--fs-200);
26
- color: #fff;
27
- line-height: var(--lh-100);
25
+ font-size: var(--intergalactic-fs-200, 14px);
26
+ color: var(--intergalactic-text-primary-invert, #ffffff);
27
+ line-height: var(--intergalactic-lh-100, 133%);
28
28
  }
29
29
 
30
30
  SDismiss {
@@ -32,27 +32,27 @@ SDismiss {
32
32
  position: absolute;
33
33
  right: 0;
34
34
  top: 0;
35
- padding: 8px;
36
- color: var(--white);
35
+ padding: var(--intergalactic-spacing-2x, 8px);
36
+ color: var(--intergalactic-text-primary-invert, #ffffff);
37
37
 
38
38
  &:hover {
39
- color: var(--gray-100);
39
+ color: var(--intergalactic-control-primary-invert-active, #e0e1e9);
40
40
  }
41
41
  }
42
42
 
43
43
  SAction {
44
- margin-top: 8px;
44
+ margin-top: var(--intergalactic-spacing-2x, 8px);
45
45
  }
46
46
 
47
47
  SNoticeBubble {
48
48
  width: 300px;
49
49
  position: fixed;
50
- z-index: 1010;
51
- right: 12px;
52
- top: 12px;
50
+ z-index: var(--intergalactic-z-index-notice-bubble, 999);
51
+ right: var(--intergalactic-spacing-3x, 12px);
52
+ top: var(--intergalactic-spacing-3x, 12px);
53
53
 
54
54
  @media (max-width: 767px) {
55
- width: calc(100% - 24px);
55
+ width: calc(100% - var(--intergalactic-spacing-6x, 24px));
56
56
  }
57
57
  }
58
58
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/notice-bubble",
3
3
  "description": "Semrush NoticeBubble Component",
4
- "version": "4.3.2",
4
+ "version": "4.4.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -17,7 +17,8 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@semcore/core": "^1.11",
20
- "react": "16.8 - 18"
20
+ "react": "16.8 - 18",
21
+ "react-dom": "16.8 - 18"
21
22
  },
22
23
  "jest": {
23
24
  "preset": "@semcore/jest-preset-ui"