@semcore/notice-bubble 5.53.0-prerelease.2 → 5.53.1-prerelease.2

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
+ ## [5.53.1] - 2025-04-04
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/button` [5.43.0 ~> 5.43.1], `@semcore/utils` [4.48.1 ~> 4.48.2], `@semcore/icon` [4.60.1 ~> 4.60.2], `@semcore/flex-box` [5.41.1 ~> 5.41.2], `@semcore/animation` [2.41.1 ~> 2.41.2], `@semcore/core` [2.39.1 ~> 2.39.2]).
10
+
5
11
  ## [5.53.0] - 2025-03-28
6
12
 
7
13
  ### Changed
@@ -40,21 +40,21 @@ var _getFocusableIn = require("@semcore/utils/lib/focus-lock/getFocusableIn");
40
40
  var _excluded = ["focusLock"],
41
41
  _excluded2 = ["forwardRef", "styles", "onMouseEnter", "onMouseLeave", "getI18nText", "icon", "children", "action", "type"];
42
42
  /*__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
43
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1gvsg{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1gvsg{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1gvsg_gg_,.___SView_1gvsg_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_1gvsg_gg_._type_info_1gvsg_gg_,.___SView_1gvsg_gg_._type_info_1gvsg_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1gvsg_gg_._type_warning_1gvsg_gg_,.___SView_1gvsg_gg_._type_warning_1gvsg_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1gvsg_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1gvsg_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1gvsg_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_1gvsg_gg_.__use_1gvsg_gg_{padding:0 1px}.___SIcon_1gvsg_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1gvsg_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1gvsg_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1gvsg_gg_.__disablePortal_1gvsg_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1gvsg_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1gvsg_gg_{display:contents}" /*__inner_css_end__*/, "1gvsg_gg_") /*__reshadow_css_end__*/, {
44
- "__SContent": "___SContent_1gvsg_gg_",
45
- "__SMessage": "___SMessage_1gvsg_gg_",
46
- "__SDismiss": "___SDismiss_1gvsg_gg_",
47
- "_use": "__use_1gvsg_gg_",
48
- "__SIcon": "___SIcon_1gvsg_gg_",
49
- "__SNoticeBubble": "___SNoticeBubble_1gvsg_gg_",
50
- "_disablePortal": "__disablePortal_1gvsg_gg_",
51
- "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1gvsg_gg_",
52
- "@enter": "enter_1gvsg",
53
- "@exit": "exit_1gvsg",
54
- "__SBubble": "___SBubble_1gvsg_gg_",
55
- "__SView": "___SView_1gvsg_gg_",
56
- "_type_info": "_type_info_1gvsg_gg_",
57
- "_type_warning": "_type_warning_1gvsg_gg_"
43
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1jete{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1jete{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1jete_gg_,.___SView_1jete_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_1jete_gg_._type_info_1jete_gg_,.___SView_1jete_gg_._type_info_1jete_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1jete_gg_._type_warning_1jete_gg_,.___SView_1jete_gg_._type_warning_1jete_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1jete_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1jete_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1jete_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_1jete_gg_.__use_1jete_gg_{padding:0 1px}.___SIcon_1jete_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1jete_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1jete_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1jete_gg_.__disablePortal_1jete_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1jete_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1jete_gg_{display:contents}" /*__inner_css_end__*/, "1jete_gg_") /*__reshadow_css_end__*/, {
44
+ "__SContent": "___SContent_1jete_gg_",
45
+ "__SMessage": "___SMessage_1jete_gg_",
46
+ "__SDismiss": "___SDismiss_1jete_gg_",
47
+ "_use": "__use_1jete_gg_",
48
+ "__SIcon": "___SIcon_1jete_gg_",
49
+ "__SNoticeBubble": "___SNoticeBubble_1jete_gg_",
50
+ "_disablePortal": "__disablePortal_1jete_gg_",
51
+ "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1jete_gg_",
52
+ "@enter": "enter_1jete",
53
+ "@exit": "exit_1jete",
54
+ "__SBubble": "___SBubble_1jete_gg_",
55
+ "__SView": "___SView_1jete_gg_",
56
+ "_type_info": "_type_info_1jete_gg_",
57
+ "_type_warning": "_type_warning_1jete_gg_"
58
58
  });
59
59
  var Notices = function Notices(props) {
60
60
  var styles = props.styles,
@@ -31,21 +31,21 @@ import { useFocusLock } from '@semcore/utils/lib/use/useFocusLock';
31
31
  import { Hint } from '@semcore/tooltip';
32
32
  import { ZIndexStackingContextProvider, zIndexStackingEnhance } from '@semcore/utils/lib/zIndexStacking';
33
33
  /*__reshadow-styles__:"./style/notice-bubble.shadow.css"*/
34
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1gvsg{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1gvsg{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1gvsg_gg_,.___SView_1gvsg_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_1gvsg_gg_._type_info_1gvsg_gg_,.___SView_1gvsg_gg_._type_info_1gvsg_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1gvsg_gg_._type_warning_1gvsg_gg_,.___SView_1gvsg_gg_._type_warning_1gvsg_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1gvsg_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1gvsg_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1gvsg_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_1gvsg_gg_.__use_1gvsg_gg_{padding:0 1px}.___SIcon_1gvsg_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1gvsg_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1gvsg_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1gvsg_gg_.__disablePortal_1gvsg_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1gvsg_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1gvsg_gg_{display:contents}" /*__inner_css_end__*/, "1gvsg_gg_") /*__reshadow_css_end__*/, {
35
- "__SContent": "___SContent_1gvsg_gg_",
36
- "__SMessage": "___SMessage_1gvsg_gg_",
37
- "__SDismiss": "___SDismiss_1gvsg_gg_",
38
- "_use": "__use_1gvsg_gg_",
39
- "__SIcon": "___SIcon_1gvsg_gg_",
40
- "__SNoticeBubble": "___SNoticeBubble_1gvsg_gg_",
41
- "_disablePortal": "__disablePortal_1gvsg_gg_",
42
- "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1gvsg_gg_",
43
- "@enter": "enter_1gvsg",
44
- "@exit": "exit_1gvsg",
45
- "__SBubble": "___SBubble_1gvsg_gg_",
46
- "__SView": "___SView_1gvsg_gg_",
47
- "_type_info": "_type_info_1gvsg_gg_",
48
- "_type_warning": "_type_warning_1gvsg_gg_"
34
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1jete{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1jete{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1jete_gg_,.___SView_1jete_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_1jete_gg_._type_info_1jete_gg_,.___SView_1jete_gg_._type_info_1jete_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1jete_gg_._type_warning_1jete_gg_,.___SView_1jete_gg_._type_warning_1jete_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1jete_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1jete_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1jete_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_1jete_gg_.__use_1jete_gg_{padding:0 1px}.___SIcon_1jete_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1jete_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1jete_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1jete_gg_.__disablePortal_1jete_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1jete_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1jete_gg_{display:contents}" /*__inner_css_end__*/, "1jete_gg_") /*__reshadow_css_end__*/, {
35
+ "__SContent": "___SContent_1jete_gg_",
36
+ "__SMessage": "___SMessage_1jete_gg_",
37
+ "__SDismiss": "___SDismiss_1jete_gg_",
38
+ "_use": "__use_1jete_gg_",
39
+ "__SIcon": "___SIcon_1jete_gg_",
40
+ "__SNoticeBubble": "___SNoticeBubble_1jete_gg_",
41
+ "_disablePortal": "__disablePortal_1jete_gg_",
42
+ "__SNoticeAriaLiveWrapper": "___SNoticeAriaLiveWrapper_1jete_gg_",
43
+ "@enter": "enter_1jete",
44
+ "@exit": "exit_1jete",
45
+ "__SBubble": "___SBubble_1jete_gg_",
46
+ "__SView": "___SView_1jete_gg_",
47
+ "_type_info": "_type_info_1jete_gg_",
48
+ "_type_warning": "_type_warning_1jete_gg_"
49
49
  });
50
50
  import { forkRef, useForkRef } from '@semcore/utils/lib/ref';
51
51
  import { getFocusableIn } from '@semcore/utils/lib/focus-lock/getFocusableIn';
@@ -1,92 +1,92 @@
1
1
  import H from "@babel/runtime/helpers/esm/extends";
2
- import z from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import d from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import V from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ import v from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import h from "@babel/runtime/helpers/esm/createClass";
5
- import u from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import g from "@babel/runtime/helpers/esm/assertThisInitialized";
6
6
  import b from "@babel/runtime/helpers/esm/inherits";
7
7
  import x from "@babel/runtime/helpers/esm/createSuper";
8
8
  import c from "@babel/runtime/helpers/esm/defineProperty";
9
- import v from "@babel/runtime/helpers/esm/objectSpread2";
9
+ import d from "@babel/runtime/helpers/esm/objectSpread2";
10
10
  import { sstyled as X } from "@semcore/utils/lib/core/index";
11
- import Y, { sstyled as k, assignProps as q, Component as P } from "@semcore/core";
11
+ import Y, { sstyled as N, assignProps as q, Component as k } from "@semcore/core";
12
12
  import r from "react";
13
13
  import G from "@semcore/portal";
14
- import L from "./NoticeBubbleManager.mjs";
14
+ import P from "./NoticeBubbleManager.mjs";
15
15
  import { Animation as J } from "@semcore/animation";
16
- import { Box as O, Flex as N } from "@semcore/flex-box";
16
+ import { Box as O, Flex as I } from "@semcore/flex-box";
17
17
  import Q from "@semcore/utils/lib/fire";
18
- import I from "@semcore/utils/lib/isNode";
19
- import { callAllEventHandlers as A } from "@semcore/utils/lib/assignProps";
18
+ import C from "@semcore/utils/lib/isNode";
19
+ import { callAllEventHandlers as W } from "@semcore/utils/lib/assignProps";
20
20
  import ee from "@semcore/icon/Close/m";
21
21
  import { Timer as te } from "./utils.mjs";
22
- import { localizedMessages as $ } from "./translations/__intergalactic-dynamic-locales.mjs";
22
+ import { localizedMessages as z } from "./translations/__intergalactic-dynamic-locales.mjs";
23
23
  import ne from "@semcore/utils/lib/enhances/i18nEnhance";
24
24
  import { useCssVariable as re } from "@semcore/utils/lib/useCssVariable";
25
25
  import { contextThemeEnhance as ie } from "@semcore/utils/lib/ThemeProvider";
26
- import D from "@semcore/button";
26
+ import A from "@semcore/button";
27
27
  import { setFocus as ae, useFocusLock as oe } from "@semcore/utils/lib/use/useFocusLock";
28
28
  import { Hint as se } from "@semcore/tooltip";
29
- import { zIndexStackingEnhance as ce, ZIndexStackingContextProvider as ge } from "@semcore/utils/lib/zIndexStacking";
30
- import { forkRef as le, useForkRef as _e } from "@semcore/utils/lib/ref";
31
- import { getFocusableIn as ue } from "@semcore/utils/lib/focus-lock/getFocusableIn";
29
+ import { zIndexStackingEnhance as ce, ZIndexStackingContextProvider as le } from "@semcore/utils/lib/zIndexStacking";
30
+ import { forkRef as _e, useForkRef as ue } from "@semcore/utils/lib/ref";
31
+ import { getFocusableIn as ge } from "@semcore/utils/lib/focus-lock/getFocusableIn";
32
32
  var me = ["focusLock"], pe = ["forwardRef", "styles", "onMouseEnter", "onMouseLeave", "getI18nText", "icon", "children", "action", "type"], fe = (
33
33
  /*__reshadow_css_start__*/
34
34
  (X.insert(
35
35
  /*__inner_css_start__*/
36
- "@keyframes enter_1gvsg{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1gvsg{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1gvsg_gg_,.___SView_1gvsg_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_1gvsg_gg_._type_info_1gvsg_gg_,.___SView_1gvsg_gg_._type_info_1gvsg_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1gvsg_gg_._type_warning_1gvsg_gg_,.___SView_1gvsg_gg_._type_warning_1gvsg_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1gvsg_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1gvsg_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1gvsg_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_1gvsg_gg_.__use_1gvsg_gg_{padding:0 1px}.___SIcon_1gvsg_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1gvsg_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1gvsg_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1gvsg_gg_.__disablePortal_1gvsg_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1gvsg_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1gvsg_gg_{display:contents}",
37
- "1gvsg_gg_"
36
+ "@keyframes enter_1jete{0%{transform:translate(100%,0);max-height:0;overflow:hidden}to{transform:translate(0,0);max-height:100vh;overflow:hidden}}@keyframes exit_1jete{0%{max-height:100vh;overflow:hidden;opacity:1}to{max-height:0;overflow:hidden;opacity:0}}.___SBubble_1jete_gg_,.___SView_1jete_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_1jete_gg_._type_info_1jete_gg_,.___SView_1jete_gg_._type_info_1jete_gg_{background:var(--intergalactic-bg-primary-invert, #191b23)}.___SBubble_1jete_gg_._type_warning_1jete_gg_,.___SView_1jete_gg_._type_warning_1jete_gg_{background:var(--intergalactic-bg-primary-critical, #ff4953)}.___SContent_1jete_gg_{flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);flex:1}.___SMessage_1jete_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SDismiss_1jete_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_1jete_gg_.__use_1jete_gg_{padding:0 1px}.___SIcon_1jete_gg_{justify-content:center;align-items:center;height:var(--intergalactic-spacing-5x, 20px)}.___SNoticeBubble_1jete_gg_{width:300px;position:fixed;right:var(--intergalactic-spacing-3x, 12px);top:var(--intergalactic-spacing-3x, 12px)}@media (max-width:767px){.___SNoticeBubble_1jete_gg_{width:calc(100% - var(--intergalactic-spacing-6x, 24px))}}.___SNoticeBubble_1jete_gg_.__disablePortal_1jete_gg_{position:sticky;margin-left:auto;height:0}.___SMessage_1jete_gg_ a{color:var(--intergalactic-text-link-invert, #8ecdff)}.___SNoticeAriaLiveWrapper_1jete_gg_{display:contents}",
37
+ "1jete_gg_"
38
38
  ), {
39
- __SContent: "___SContent_1gvsg_gg_",
40
- __SMessage: "___SMessage_1gvsg_gg_",
41
- __SDismiss: "___SDismiss_1gvsg_gg_",
42
- _use: "__use_1gvsg_gg_",
43
- __SIcon: "___SIcon_1gvsg_gg_",
44
- __SNoticeBubble: "___SNoticeBubble_1gvsg_gg_",
45
- _disablePortal: "__disablePortal_1gvsg_gg_",
46
- __SNoticeAriaLiveWrapper: "___SNoticeAriaLiveWrapper_1gvsg_gg_",
47
- "@enter": "enter_1gvsg",
48
- "@exit": "exit_1gvsg",
49
- __SBubble: "___SBubble_1gvsg_gg_",
50
- __SView: "___SView_1gvsg_gg_",
51
- _type_info: "_type_info_1gvsg_gg_",
52
- _type_warning: "_type_warning_1gvsg_gg_"
39
+ __SContent: "___SContent_1jete_gg_",
40
+ __SMessage: "___SMessage_1jete_gg_",
41
+ __SDismiss: "___SDismiss_1jete_gg_",
42
+ _use: "__use_1jete_gg_",
43
+ __SIcon: "___SIcon_1jete_gg_",
44
+ __SNoticeBubble: "___SNoticeBubble_1jete_gg_",
45
+ _disablePortal: "__disablePortal_1jete_gg_",
46
+ __SNoticeAriaLiveWrapper: "___SNoticeAriaLiveWrapper_1jete_gg_",
47
+ "@enter": "enter_1jete",
48
+ "@exit": "exit_1jete",
49
+ __SBubble: "___SBubble_1jete_gg_",
50
+ __SView: "___SView_1jete_gg_",
51
+ _type_info: "_type_info_1jete_gg_",
52
+ _type_warning: "_type_warning_1jete_gg_"
53
53
  })
54
- ), V = function(g) {
55
- var t = g.styles, e = g.data, n = e === void 0 ? [] : e, i = g.tag, a = i === void 0 ? R : i, o = r.useRef(), s = re("--intergalactic-duration-popper", "200", o), p = r.useMemo(function() {
54
+ ), D = function(l) {
55
+ var t = l.styles, e = l.data, n = e === void 0 ? [] : e, i = l.tag, a = i === void 0 ? L : i, o = r.useRef(), s = re("--intergalactic-duration-popper", "200", o), p = r.useMemo(function() {
56
56
  return parseInt(s, 10);
57
57
  }, [s]);
58
- return n.map(function(l) {
59
- var _, f;
60
- return _ = k(t), /* @__PURE__ */ r.createElement(J, _.cn("Animation", {
61
- key: l.uid,
62
- initialAnimation: l.initialAnimation,
63
- visible: (f = l.visible) !== null && f !== void 0 ? f : !0,
58
+ return n.map(function(_) {
59
+ var u, f;
60
+ return u = N(t), /* @__PURE__ */ r.createElement(J, u.cn("Animation", {
61
+ key: _.uid,
62
+ initialAnimation: _.initialAnimation,
63
+ visible: (f = _.visible) !== null && f !== void 0 ? f : !0,
64
64
  duration: p,
65
65
  keyframes: [t["@enter"], t["@exit"]],
66
66
  ref: o
67
- }), /* @__PURE__ */ r.createElement(a, _.cn("SView", v(v({}, l), {}, {
68
- styles: l.styles || t,
69
- getI18nText: g.getI18nText
67
+ }), /* @__PURE__ */ r.createElement(a, u.cn("SView", d(d({}, _), {}, {
68
+ styles: _.styles || t,
69
+ getI18nText: l.getI18nText
70
70
  }))));
71
71
  });
72
72
  }, y = /* @__PURE__ */ function(m) {
73
73
  b(t, m);
74
- var g = x(t);
74
+ var l = x(t);
75
75
  function t() {
76
76
  var e;
77
- d(this, t);
77
+ v(this, t);
78
78
  for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
79
79
  i[a] = arguments[a];
80
- return e = g.call.apply(g, [this].concat(i)), c(u(e), "_unsubscribe", null), c(u(e), "state", {
80
+ return e = l.call.apply(l, [this].concat(i)), c(g(e), "_unsubscribe", null), c(g(e), "state", {
81
81
  notices: [],
82
82
  warnings: []
83
- }), c(u(e), "componentWillUnmount", function() {
83
+ }), c(g(e), "componentWillUnmount", function() {
84
84
  e._unsubscribe && e._unsubscribe();
85
- }), c(u(e), "handleChange", function(o) {
86
- var s = o.filter(function(l) {
87
- return l.type === "info";
88
- }), p = o.filter(function(l) {
89
- return l.type === "warning";
85
+ }), c(g(e), "handleChange", function(o) {
86
+ var s = o.filter(function(_) {
87
+ return _.type === "info";
88
+ }), p = o.filter(function(_) {
89
+ return _.type === "warning";
90
90
  });
91
91
  e.setState({
92
92
  notices: s,
@@ -102,69 +102,69 @@ var me = ["focusLock"], pe = ["forwardRef", "styles", "onMouseEnter", "onMouseLe
102
102
  }, {
103
103
  key: "render",
104
104
  value: function() {
105
- var n = this.asProps, i, a = O, o = "div", s = this.asProps, p = s.Children, l = s.styles, _ = s.disablePortal, f = s.getI18nText, M = s.ref, C = s.parentZIndexStacking, S = this.state, w = S.notices, E = S.warnings;
106
- return i = k(l), /* @__PURE__ */ r.createElement(ge, i.cn("ZIndexStackingContextProvider", {
105
+ var n = this.asProps, i, a = O, o = "div", s = this.asProps, p = s.Children, _ = s.styles, u = s.disablePortal, f = s.getI18nText, B = s.ref, M = s.parentZIndexStacking, S = this.state, w = S.notices, j = S.warnings;
106
+ return i = N(_), /* @__PURE__ */ r.createElement(le, i.cn("ZIndexStackingContextProvider", {
107
107
  designToken: "z-index-notice-bubble"
108
108
  }), /* @__PURE__ */ r.createElement(G, i.cn("Portal", {
109
- disablePortal: _
110
- }), /* @__PURE__ */ r.createElement(a, i.cn("SNoticeBubble", v({}, q({
111
- ref: M,
109
+ disablePortal: u
110
+ }), /* @__PURE__ */ r.createElement(a, i.cn("SNoticeBubble", d({}, q({
111
+ ref: B,
112
112
  tag: "section",
113
113
  role: "region",
114
114
  "aria-label": f("notification"),
115
- zIndex: C
116
- }, n))), /* @__PURE__ */ r.createElement(p, i.cn("Children", {})), /* @__PURE__ */ r.createElement(V, i.cn("Notices", {
117
- styles: l,
118
- data: E,
119
- tag: F,
115
+ zIndex: M
116
+ }, n))), /* @__PURE__ */ r.createElement(p, i.cn("Children", {})), /* @__PURE__ */ r.createElement(D, i.cn("Notices", {
117
+ styles: _,
118
+ data: j,
119
+ tag: $,
120
120
  getI18nText: f
121
121
  })), /* @__PURE__ */ r.createElement(o, i.cn("SNoticeAriaLiveWrapper", {
122
122
  "aria-live": "polite"
123
- }), /* @__PURE__ */ r.createElement(V, i.cn("Notices", {
124
- styles: l,
123
+ }), /* @__PURE__ */ r.createElement(D, i.cn("Notices", {
124
+ styles: _,
125
125
  data: w,
126
- tag: R,
126
+ tag: L,
127
127
  getI18nText: f
128
128
  }))))));
129
129
  }
130
130
  }]), t;
131
- }(P);
131
+ }(k);
132
132
  c(y, "displayName", "NoticeBubbleContainer");
133
133
  c(y, "style", fe);
134
- c(y, "enhance", [ne($), ie(), ce("z-index-notice-bubble")]);
134
+ c(y, "enhance", [ne(z), ie(), ce("z-index-notice-bubble")]);
135
135
  c(y, "defaultProps", {
136
- manager: L,
137
- i18n: $,
136
+ manager: P,
137
+ i18n: z,
138
138
  locale: "en"
139
139
  });
140
- var ve = /* @__PURE__ */ r.forwardRef(function(m, g) {
141
- var t = m.focusLock, e = z(m, me), n = r.useRef();
140
+ var de = /* @__PURE__ */ r.forwardRef(function(m, l) {
141
+ var t = m.focusLock, e = V(m, me), n = r.useRef();
142
142
  oe(n, !1, "auto", !t, !0);
143
- var i = _e(g, n);
144
- return /* @__PURE__ */ r.createElement(N, H({
143
+ var i = ue(l, n);
144
+ return /* @__PURE__ */ r.createElement(I, H({
145
145
  ref: i
146
146
  }, e));
147
- }), R = /* @__PURE__ */ function(m) {
147
+ }), L = /* @__PURE__ */ function(m) {
148
148
  b(t, m);
149
- var g = x(t);
149
+ var l = x(t);
150
150
  function t() {
151
151
  var e;
152
- d(this, t);
152
+ v(this, t);
153
153
  for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
154
154
  i[a] = arguments[a];
155
- return e = g.call.apply(g, [this].concat(i)), c(u(e), "timer", null), c(u(e), "ref", /* @__PURE__ */ r.createRef()), c(u(e), "closeButtonRef", /* @__PURE__ */ r.createRef()), c(u(e), "handleClose", function(o) {
156
- Q(u(e), "onClose", o), e.clearTimer();
157
- }), c(u(e), "handleKeydown", function(o) {
155
+ return e = l.call.apply(l, [this].concat(i)), c(g(e), "timer", null), c(g(e), "ref", /* @__PURE__ */ r.createRef()), c(g(e), "closeButtonRef", /* @__PURE__ */ r.createRef()), c(g(e), "handleClose", function(o) {
156
+ Q(g(e), "onClose", o), e.clearTimer();
157
+ }), c(g(e), "handleKeydown", function(o) {
158
158
  o.key === "Escape" && e.handleClose(o);
159
- }), c(u(e), "handleMouseEnter", function() {
159
+ }), c(g(e), "handleMouseEnter", function() {
160
160
  e.timer && e.timer.pause();
161
- }), c(u(e), "handleMouseLeave", function() {
161
+ }), c(g(e), "handleMouseLeave", function() {
162
162
  e.timer && e.timer.resume();
163
- }), c(u(e), "handleBodyMouseMove", function(o) {
163
+ }), c(g(e), "handleBodyMouseMove", function(o) {
164
164
  var s;
165
165
  if ((s = e.timer) !== null && s !== void 0 && s.paused) {
166
- var p = e.ref.current.getBoundingClientRect(), l = o.clientX >= p.left && o.clientX <= p.right && o.clientY >= p.top && o.clientY <= p.bottom;
167
- l || e.timer.resume();
166
+ var p = e.ref.current.getBoundingClientRect(), _ = o.clientX >= p.left && o.clientX <= p.right && o.clientY >= p.top && o.clientY <= p.bottom;
167
+ _ || e.timer.resume();
168
168
  }
169
169
  }), e;
170
170
  }
@@ -175,7 +175,7 @@ var ve = /* @__PURE__ */ r.forwardRef(function(m, g) {
175
175
  i && (this.timer = new te(this.handleClose, i), document.body.addEventListener("mousemove", this.handleBodyMouseMove));
176
176
  var a = this.ref.current;
177
177
  if (a) {
178
- var o = ue(a).filter(function(s) {
178
+ var o = ge(a).filter(function(s) {
179
179
  return s !== n.closeButtonRef.current;
180
180
  });
181
181
  o.length > 0 && setTimeout(function() {
@@ -196,18 +196,18 @@ var ve = /* @__PURE__ */ r.forwardRef(function(m, g) {
196
196
  }, {
197
197
  key: "render",
198
198
  value: function() {
199
- var n, i = ve, a = se.Trigger, o = N, s = "div", p = "div", l = N, _ = this.props, f = _.forwardRef, M = _.styles, C = _.onMouseEnter, S = _.onMouseLeave, w = _.getI18nText, E = _.icon, W = _.children, B = _.action, j = _.type, K = z(_, pe);
200
- return n = k(M), /* @__PURE__ */ r.createElement(i, n.cn("SBubble", v(v({}, K), {}, {
201
- ref: le(f, this.ref),
202
- onMouseEnter: A(C, this.handleMouseEnter),
203
- onMouseLeave: A(S, this.handleMouseLeave),
199
+ var n, i = de, a = se.Trigger, o = I, s = "div", p = "div", _ = I, u = this.props, f = u.forwardRef, B = u.styles, M = u.onMouseEnter, S = u.onMouseLeave, w = u.getI18nText, j = u.icon, T = u.children, E = u.action, Z = u.type, K = V(u, pe);
200
+ return n = N(B), /* @__PURE__ */ r.createElement(i, n.cn("SBubble", d(d({}, K), {}, {
201
+ ref: _e(f, this.ref),
202
+ onMouseEnter: W(M, this.handleMouseEnter),
203
+ onMouseLeave: W(S, this.handleMouseLeave),
204
204
  onKeyDown: this.handleKeydown,
205
- role: j === "warning" ? "alert" : this.props.role
205
+ role: Z === "warning" ? "alert" : this.props.role
206
206
  })), /* @__PURE__ */ r.createElement(
207
207
  a,
208
208
  n.cn("SDismiss", {
209
209
  "aria-haspopup": void 0,
210
- tag: D,
210
+ tag: A,
211
211
  type: "button",
212
212
  use: "tertiary",
213
213
  size: "m",
@@ -218,34 +218,34 @@ var ve = /* @__PURE__ */ r.forwardRef(function(m, g) {
218
218
  title: w("close"),
219
219
  ref: this.closeButtonRef
220
220
  }),
221
- /* @__PURE__ */ r.createElement(D.Addon, {
221
+ /* @__PURE__ */ r.createElement(A.Addon, {
222
222
  tag: ee,
223
223
  color: "icon-primary-invert"
224
224
  })
225
- ), I(E) ? /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(l, n.cn("SIcon", {}), E), /* @__PURE__ */ r.createElement(o, n.cn("SContent", {}), /* @__PURE__ */ r.createElement(s, n.cn("SMessage", {}), W), I(B) ? /* @__PURE__ */ r.createElement(p, n.cn("SAction", {}), B) : null)) : /* @__PURE__ */ r.createElement(o, n.cn("SContent", {}), /* @__PURE__ */ r.createElement(s, n.cn("SMessage", {}), W), I(B) ? /* @__PURE__ */ r.createElement(p, n.cn("SAction", {}), B) : null));
225
+ ), C(j) ? /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(_, n.cn("SIcon", {}), j), /* @__PURE__ */ r.createElement(o, n.cn("SContent", {}), /* @__PURE__ */ r.createElement(s, n.cn("SMessage", {}), T), C(E) ? /* @__PURE__ */ r.createElement(p, n.cn("SAction", {}), E) : null)) : /* @__PURE__ */ r.createElement(o, n.cn("SContent", {}), /* @__PURE__ */ r.createElement(s, n.cn("SMessage", {}), T), C(E) ? /* @__PURE__ */ r.createElement(p, n.cn("SAction", {}), E) : null));
226
226
  }
227
227
  }]), t;
228
- }(P), F = /* @__PURE__ */ function(m) {
228
+ }(k), $ = /* @__PURE__ */ function(m) {
229
229
  b(t, m);
230
- var g = x(t);
230
+ var l = x(t);
231
231
  function t() {
232
- return d(this, t), g.apply(this, arguments);
232
+ return v(this, t), l.apply(this, arguments);
233
233
  }
234
234
  return h(t);
235
- }(R);
236
- c(F, "defaultProps", {
235
+ }(L);
236
+ c($, "defaultProps", {
237
237
  type: "warning",
238
238
  duration: 0
239
239
  });
240
- var T = /* @__PURE__ */ function(m) {
240
+ var R = /* @__PURE__ */ function(m) {
241
241
  b(t, m);
242
- var g = x(t);
242
+ var l = x(t);
243
243
  function t() {
244
244
  var e;
245
- d(this, t);
245
+ v(this, t);
246
246
  for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
247
247
  i[a] = arguments[a];
248
- return e = g.call.apply(g, [this].concat(i)), c(u(e), "_notice", null), e;
248
+ return e = l.call.apply(l, [this].concat(i)), c(g(e), "_notice", null), e;
249
249
  }
250
250
  return h(t, [{
251
251
  key: "componentDidMount",
@@ -268,31 +268,31 @@ var T = /* @__PURE__ */ function(m) {
268
268
  return null;
269
269
  }
270
270
  }]), t;
271
- }(P);
272
- c(T, "defaultProps", {
271
+ }(k);
272
+ c(R, "defaultProps", {
273
273
  duration: 5e3,
274
274
  type: "info",
275
- manager: L
275
+ manager: P
276
276
  });
277
- var U = /* @__PURE__ */ function(m) {
277
+ var F = /* @__PURE__ */ function(m) {
278
278
  b(t, m);
279
- var g = x(t);
279
+ var l = x(t);
280
280
  function t() {
281
- return d(this, t), g.apply(this, arguments);
281
+ return v(this, t), l.apply(this, arguments);
282
282
  }
283
283
  return h(t);
284
- }(T);
285
- c(U, "defaultProps", {
284
+ }(R);
285
+ c(F, "defaultProps", {
286
286
  duration: 5e3,
287
287
  type: "warning",
288
- manager: L
288
+ manager: P
289
289
  });
290
- var Z = Y(y, {
291
- Info: T,
292
- Warning: U
293
- }), Ye = Z.Info, qe = Z.Warning;
290
+ var U = Y(y, {
291
+ Info: R,
292
+ Warning: F
293
+ }), Ye = U.Info, qe = U.Warning;
294
294
  export {
295
295
  Ye as NoticeBubble,
296
296
  qe as NoticeBubbleWarning,
297
- Z as default
297
+ U as default
298
298
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/notice-bubble",
3
3
  "description": "Semrush NoticeBubble Component",
4
- "version": "5.53.0-prerelease.2",
4
+ "version": "5.53.1-prerelease.2",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,16 +14,16 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "5.43.0-prerelease.2",
18
- "@semcore/utils": "4.48.1",
19
- "@semcore/icon": "4.60.1",
20
- "@semcore/portal": "3.41.1",
21
- "@semcore/flex-box": "5.41.1",
22
- "@semcore/animation": "2.41.1",
23
- "@semcore/tooltip": "6.49.1"
17
+ "@semcore/button": "5.43.1-prerelease.2",
18
+ "@semcore/utils": "4.48.2-prerelease.2",
19
+ "@semcore/icon": "4.60.2-prerelease.2",
20
+ "@semcore/portal": "3.41.2-prerelease.2",
21
+ "@semcore/flex-box": "5.41.2-prerelease.2",
22
+ "@semcore/animation": "2.41.2-prerelease.2",
23
+ "@semcore/tooltip": "6.49.2-prerelease.2"
24
24
  },
25
25
  "peerDependencies": {
26
- "@semcore/core": "^2.17.5",
26
+ "@semcore/core": "^2.39.2-prerelease.2",
27
27
  "react": "16.8 - 18",
28
28
  "react-dom": "16.8 - 18"
29
29
  },