@semcore/notice-bubble 17.0.0 → 17.0.1-prerelease.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 +6 -0
- package/lib/cjs/NoticeBubble.js +15 -15
- package/lib/es6/NoticeBubble.js +15 -15
- package/lib/esm/NoticeBubble.mjs +17 -16
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/lib/cjs/NoticeBubble.js
CHANGED
|
@@ -25,23 +25,23 @@ var _NoticeBubbleManager = _interopRequireDefault(require("./NoticeBubbleManager
|
|
|
25
25
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
26
26
|
var _utils = require("./utils");
|
|
27
27
|
/*!__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
|
|
28
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
28
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1oy5p{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1oy5p{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1oy5p_gg_,.___SView_1oy5p_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px);padding-right:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px));width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box;color:var(--intergalactic-text-primary-invert, #ffffff);gap:var(--intergalactic-spacing-2x, 8px)}.___SBubble_1oy5p_gg_._type_info_1oy5p_gg_,.___SView_1oy5p_gg_._type_info_1oy5p_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1oy5p_gg_._type_warning_1oy5p_gg_,.___SView_1oy5p_gg_._type_warning_1oy5p_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1oy5p_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1oy5p_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1oy5p_gg_{cursor:pointer;position:absolute;right:0;top:0;margin-top:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px);margin-bottom:var(--intergalactic-spacing-2x, 8px);flex-shrink:0;border:0;background:0 0}.___SDismiss_1oy5p_gg_.__use_1oy5p_gg_{padding:0 1px}.___SIcon_1oy5p_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1oy5p_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1oy5p_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1oy5p_gg_.__disablePortal_1oy5p_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1oy5p_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1oy5p_gg_{display:contents}", /*__inner_css_end__*/"1oy5p_gg_"),
|
|
29
29
|
/*__reshadow_css_end__*/
|
|
30
30
|
{
|
|
31
|
-
"__SContent": "
|
|
32
|
-
"__SMessage": "
|
|
33
|
-
"__SDismiss": "
|
|
34
|
-
"_use": "
|
|
35
|
-
"__SIcon": "
|
|
36
|
-
"__SNoticeBubble": "
|
|
37
|
-
"_disablePortal": "
|
|
38
|
-
"__SNoticeAriaLiveWrapper": "
|
|
39
|
-
"@enter": "
|
|
40
|
-
"@exit": "
|
|
41
|
-
"__SBubble": "
|
|
42
|
-
"__SView": "
|
|
43
|
-
"_type_info": "
|
|
44
|
-
"_type_warning": "
|
|
31
|
+
"__SContent": "___SContent_1oy5p_gg_",
|
|
32
|
+
"__SMessage": "___SMessage_1oy5p_gg_",
|
|
33
|
+
"__SDismiss": "___SDismiss_1oy5p_gg_",
|
|
34
|
+
"_use": "__use_1oy5p_gg_",
|
|
35
|
+
"__SIcon": "___SIcon_1oy5p_gg_",
|
|
36
|
+
"__SNoticeBubble": "___SNoticeBubble_1oy5p_gg_",
|
|
37
|
+
"_disablePortal": "__disablePortal_1oy5p_gg_",
|
|
38
|
+
"__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1oy5p_gg_",
|
|
39
|
+
"@enter": "enter_1oy5p",
|
|
40
|
+
"@exit": "exit_1oy5p",
|
|
41
|
+
"__SBubble": "___SBubble_1oy5p_gg_",
|
|
42
|
+
"__SView": "___SView_1oy5p_gg_",
|
|
43
|
+
"_type_info": "_type_info_1oy5p_gg_",
|
|
44
|
+
"_type_warning": "_type_warning_1oy5p_gg_"
|
|
45
45
|
});
|
|
46
46
|
class NoticeBubbleContainerRoot extends _core.Component {
|
|
47
47
|
constructor(...args) {
|
package/lib/es6/NoticeBubble.js
CHANGED
|
@@ -18,23 +18,23 @@ import CloseIcon from '@semcore/icon/Close/m';
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import manager from './NoticeBubbleManager';
|
|
20
20
|
/*!__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
|
|
21
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
21
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1oy5p{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1oy5p{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1oy5p_gg_,.___SView_1oy5p_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px);padding-right:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px));width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box;color:var(--intergalactic-text-primary-invert, #ffffff);gap:var(--intergalactic-spacing-2x, 8px)}.___SBubble_1oy5p_gg_._type_info_1oy5p_gg_,.___SView_1oy5p_gg_._type_info_1oy5p_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1oy5p_gg_._type_warning_1oy5p_gg_,.___SView_1oy5p_gg_._type_warning_1oy5p_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1oy5p_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1oy5p_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1oy5p_gg_{cursor:pointer;position:absolute;right:0;top:0;margin-top:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px);margin-bottom:var(--intergalactic-spacing-2x, 8px);flex-shrink:0;border:0;background:0 0}.___SDismiss_1oy5p_gg_.__use_1oy5p_gg_{padding:0 1px}.___SIcon_1oy5p_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1oy5p_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1oy5p_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1oy5p_gg_.__disablePortal_1oy5p_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1oy5p_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1oy5p_gg_{display:contents}", /*__inner_css_end__*/"1oy5p_gg_"),
|
|
22
22
|
/*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SContent": "
|
|
25
|
-
"__SMessage": "
|
|
26
|
-
"__SDismiss": "
|
|
27
|
-
"_use": "
|
|
28
|
-
"__SIcon": "
|
|
29
|
-
"__SNoticeBubble": "
|
|
30
|
-
"_disablePortal": "
|
|
31
|
-
"__SNoticeAriaLiveWrapper": "
|
|
32
|
-
"@enter": "
|
|
33
|
-
"@exit": "
|
|
34
|
-
"__SBubble": "
|
|
35
|
-
"__SView": "
|
|
36
|
-
"_type_info": "
|
|
37
|
-
"_type_warning": "
|
|
24
|
+
"__SContent": "___SContent_1oy5p_gg_",
|
|
25
|
+
"__SMessage": "___SMessage_1oy5p_gg_",
|
|
26
|
+
"__SDismiss": "___SDismiss_1oy5p_gg_",
|
|
27
|
+
"_use": "__use_1oy5p_gg_",
|
|
28
|
+
"__SIcon": "___SIcon_1oy5p_gg_",
|
|
29
|
+
"__SNoticeBubble": "___SNoticeBubble_1oy5p_gg_",
|
|
30
|
+
"_disablePortal": "__disablePortal_1oy5p_gg_",
|
|
31
|
+
"__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1oy5p_gg_",
|
|
32
|
+
"@enter": "enter_1oy5p",
|
|
33
|
+
"@exit": "exit_1oy5p",
|
|
34
|
+
"__SBubble": "___SBubble_1oy5p_gg_",
|
|
35
|
+
"__SView": "___SView_1oy5p_gg_",
|
|
36
|
+
"_type_info": "_type_info_1oy5p_gg_",
|
|
37
|
+
"_type_warning": "_type_warning_1oy5p_gg_"
|
|
38
38
|
});
|
|
39
39
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
40
40
|
import { Timer } from './utils';
|
package/lib/esm/NoticeBubble.mjs
CHANGED
|
@@ -17,29 +17,30 @@ import React from "react";
|
|
|
17
17
|
import noticeBubbleDefaultManager from "./NoticeBubbleManager.mjs";
|
|
18
18
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
19
19
|
import { Timer } from "./utils.mjs";
|
|
20
|
+
/*!__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
|
|
20
21
|
const style = (
|
|
21
22
|
/*__reshadow_css_start__*/
|
|
22
23
|
(sstyled.insert(
|
|
23
24
|
/*__inner_css_start__*/
|
|
24
|
-
"@keyframes
|
|
25
|
+
"@keyframes enter_1oy5p{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1oy5p{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1oy5p_gg_,.___SView_1oy5p_gg_{position:relative;margin-bottom:var(--intergalactic-spacing-3x, 12px);padding:var(--intergalactic-spacing-3x, 12px);padding-right:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px));width:100%;border-radius:var(--intergalactic-popper-rounded, 6px);overflow:hidden;box-sizing:border-box;color:var(--intergalactic-text-primary-invert, #ffffff);gap:var(--intergalactic-spacing-2x, 8px)}.___SBubble_1oy5p_gg_._type_info_1oy5p_gg_,.___SView_1oy5p_gg_._type_info_1oy5p_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1oy5p_gg_._type_warning_1oy5p_gg_,.___SView_1oy5p_gg_._type_warning_1oy5p_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1oy5p_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1oy5p_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1oy5p_gg_{cursor:pointer;position:absolute;right:0;top:0;margin-top:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px);margin-bottom:var(--intergalactic-spacing-2x, 8px);flex-shrink:0;border:0;background:0 0}.___SDismiss_1oy5p_gg_.__use_1oy5p_gg_{padding:0 1px}.___SIcon_1oy5p_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1oy5p_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1oy5p_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1oy5p_gg_.__disablePortal_1oy5p_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1oy5p_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1oy5p_gg_{display:contents}",
|
|
25
26
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
27
|
+
"1oy5p_gg_"
|
|
27
28
|
), /*__reshadow_css_end__*/
|
|
28
29
|
{
|
|
29
|
-
"__SContent": "
|
|
30
|
-
"__SMessage": "
|
|
31
|
-
"__SDismiss": "
|
|
32
|
-
"_use": "
|
|
33
|
-
"__SIcon": "
|
|
34
|
-
"__SNoticeBubble": "
|
|
35
|
-
"_disablePortal": "
|
|
36
|
-
"__SNoticeAriaLiveWrapper": "
|
|
37
|
-
"@enter": "
|
|
38
|
-
"@exit": "
|
|
39
|
-
"__SBubble": "
|
|
40
|
-
"__SView": "
|
|
41
|
-
"_type_info": "
|
|
42
|
-
"_type_warning": "
|
|
30
|
+
"__SContent": "___SContent_1oy5p_gg_",
|
|
31
|
+
"__SMessage": "___SMessage_1oy5p_gg_",
|
|
32
|
+
"__SDismiss": "___SDismiss_1oy5p_gg_",
|
|
33
|
+
"_use": "__use_1oy5p_gg_",
|
|
34
|
+
"__SIcon": "___SIcon_1oy5p_gg_",
|
|
35
|
+
"__SNoticeBubble": "___SNoticeBubble_1oy5p_gg_",
|
|
36
|
+
"_disablePortal": "__disablePortal_1oy5p_gg_",
|
|
37
|
+
"__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1oy5p_gg_",
|
|
38
|
+
"@enter": "enter_1oy5p",
|
|
39
|
+
"@exit": "exit_1oy5p",
|
|
40
|
+
"__SBubble": "___SBubble_1oy5p_gg_",
|
|
41
|
+
"__SView": "___SView_1oy5p_gg_",
|
|
42
|
+
"_type_info": "_type_info_1oy5p_gg_",
|
|
43
|
+
"_type_warning": "_type_warning_1oy5p_gg_"
|
|
43
44
|
})
|
|
44
45
|
);
|
|
45
46
|
class NoticeBubbleContainerRoot extends Component {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/notice-bubble",
|
|
3
3
|
"description": "Semrush NoticeBubble Component",
|
|
4
|
-
"version": "17.0.0",
|
|
4
|
+
"version": "17.0.1-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^17.0.0"
|
|
17
|
+
"@semcore/button": "^17.0.1-prerelease.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@semcore/base-components": "^17.0.
|
|
21
|
-
"@semcore/icon": "^17.0.
|
|
20
|
+
"@semcore/base-components": "^17.0.2",
|
|
21
|
+
"@semcore/icon": "^17.0.1"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"directory": "semcore/notice-bubble"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@semcore/
|
|
30
|
-
"@semcore/
|
|
31
|
-
"@semcore/
|
|
32
|
-
"@semcore/
|
|
29
|
+
"@semcore/base-components": "17.0.2-prerelease.0",
|
|
30
|
+
"@semcore/testing-utils": "1.0.0",
|
|
31
|
+
"@semcore/core": "17.0.1",
|
|
32
|
+
"@semcore/icon": "17.0.1-prerelease.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "pnpm semcore-builder && pnpm vite build"
|