intergalactic 15.126.1 → 15.127.0-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 +14 -0
- package/accordion/lib/cjs/Accordion.js +9 -9
- package/accordion/lib/es6/Accordion.js +9 -9
- package/accordion/lib/esm/Accordion.mjs +76 -76
- package/accordion/package.json +1 -1
- package/add-filter/package.json +1 -1
- package/bulk-textarea/lib/cjs/components/InputField/InputField.js +12 -12
- package/bulk-textarea/lib/es6/components/InputField/InputField.js +12 -12
- package/bulk-textarea/lib/esm/components/InputField/InputField.mjs +128 -128
- package/bulk-textarea/package.json +1 -1
- package/button/component/Button/Button.type.d.ts +6 -2
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js +1 -0
- package/button/lib/cjs/component/AbstractButton/AbstractButton.js.map +1 -1
- package/button/lib/cjs/component/Button/Button.js +28 -27
- package/button/lib/cjs/component/Button/Button.js.map +1 -1
- package/button/lib/cjs/component/Button/Button.type.js.map +1 -1
- package/button/lib/cjs/component/Button/button.shadow.css +17 -1
- package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/es6/component/AbstractButton/AbstractButton.js +1 -0
- package/button/lib/es6/component/AbstractButton/AbstractButton.js.map +1 -1
- package/button/lib/es6/component/Button/Button.js +28 -27
- package/button/lib/es6/component/Button/Button.js.map +1 -1
- package/button/lib/es6/component/Button/Button.type.js.map +1 -1
- package/button/lib/es6/component/Button/button.shadow.css +17 -1
- package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
- package/button/lib/esm/component/AbstractButton/AbstractButton.mjs +30 -30
- package/button/lib/esm/component/Button/Button.mjs +66 -65
- package/button/lib/esm/component/ButtonLink/ButtonLink.mjs +59 -59
- package/button/lib/types/component/Button/Button.type.d.ts +6 -2
- package/button/package.json +1 -1
- package/card/lib/cjs/Card.js +6 -6
- package/card/lib/es6/Card.js +6 -6
- package/card/lib/esm/Card.mjs +46 -46
- package/card/package.json +1 -1
- package/carousel/lib/cjs/Carousel.js +21 -21
- package/carousel/lib/es6/Carousel.js +21 -21
- package/carousel/lib/esm/Carousel.mjs +177 -177
- package/carousel/package.json +1 -1
- package/color-picker/lib/cjs/ColorPicker.js +24 -24
- package/color-picker/lib/cjs/PaletteManager.js +24 -24
- package/color-picker/lib/cjs/components/InputColor.js +24 -24
- package/color-picker/lib/es6/ColorPicker.js +24 -24
- package/color-picker/lib/es6/PaletteManager.js +24 -24
- package/color-picker/lib/es6/components/InputColor.js +24 -24
- package/color-picker/lib/esm/ColorPicker.mjs +73 -73
- package/color-picker/lib/esm/PaletteManager.mjs +42 -42
- package/color-picker/lib/esm/components/InputColor.mjs +81 -81
- package/color-picker/package.json +1 -1
- package/components.json +24 -24
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/esm/components/Calendar.mjs +126 -126
- package/date-picker/lib/esm/components/DateRangeComparatorAbstract.mjs +217 -217
- package/date-picker/lib/esm/components/InputTrigger.mjs +215 -215
- package/date-picker/lib/esm/components/PickerAbstract.mjs +114 -114
- package/date-picker/lib/esm/components/RangePickerAbstract.mjs +164 -164
- package/date-picker/package.json +1 -1
- package/drag-and-drop/lib/cjs/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/es6/DragAndDrop.js +17 -17
- package/drag-and-drop/lib/esm/DragAndDrop.mjs +160 -160
- package/drag-and-drop/package.json +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/es6/DropdownMenu.js +18 -18
- package/dropdown-menu/lib/esm/DropdownMenu.mjs +176 -176
- package/dropdown-menu/package.json +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/errors/lib/esm/Error.mjs +48 -48
- package/errors/package.json +1 -1
- package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
- package/feature-popover/lib/es6/FeaturePopover.js +11 -11
- package/feature-popover/lib/esm/FeaturePopover.mjs +72 -72
- package/feature-popover/package.json +1 -1
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
- package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +7 -7
- package/feedback-form/lib/esm/FeedbackForm.mjs +34 -34
- package/feedback-form/lib/esm/component/checkbox-button/CheckboxButton.mjs +23 -23
- package/feedback-form/lib/esm/component/feedback-rating/FeedbackRating.mjs +23 -23
- package/feedback-form/lib/esm/component/slider-rating/SliderRating.mjs +73 -73
- package/feedback-form/package.json +1 -1
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/esm/FullscreenModal.mjs +70 -70
- package/fullscreen-modal/package.json +1 -1
- package/inline-input/lib/cjs/InlineInput.js +14 -14
- package/inline-input/lib/es6/InlineInput.js +14 -14
- package/inline-input/lib/esm/InlineInput.mjs +107 -107
- package/inline-input/package.json +1 -1
- package/modal/lib/cjs/Modal.js +8 -8
- package/modal/lib/es6/Modal.js +8 -8
- package/modal/lib/esm/Modal.mjs +81 -81
- package/modal/package.json +1 -1
- package/notice/lib/cjs/Notice.js +18 -17
- package/notice/lib/cjs/Notice.js.map +1 -1
- package/notice/lib/es6/Notice.js +18 -17
- package/notice/lib/es6/Notice.js.map +1 -1
- package/notice/lib/esm/Notice.mjs +110 -108
- package/notice/package.json +1 -1
- package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
- package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
- package/notice-bubble/lib/esm/NoticeBubble.mjs +87 -87
- package/notice-bubble/package.json +1 -1
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/notice-global/lib/esm/NoticeGlobal.mjs +46 -46
- package/notice-global/package.json +1 -1
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +12 -12
- package/pagination/lib/es6/Pagination.js +12 -12
- package/pagination/lib/esm/Pagination.mjs +123 -123
- package/pagination/package.json +1 -1
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/select/lib/esm/InputSearch.mjs +38 -38
- package/select/lib/esm/Select.mjs +106 -106
- package/select/package.json +1 -1
- package/side-panel/lib/cjs/SidePanel.js +16 -16
- package/side-panel/lib/es6/SidePanel.js +16 -16
- package/side-panel/lib/esm/SidePanel.mjs +76 -76
- package/side-panel/package.json +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/time-picker/lib/esm/TimePicker.mjs +62 -62
- package/time-picker/package.json +1 -1
- package/utils/lib/themes/auto.css +1 -1
- package/utils/lib/themes/default.css +1 -1
- package/utils/lib/themes/default.js +1 -1
- package/utils/lib/themes/default.js.map +1 -1
- package/utils/lib/themes/default.mjs +1 -1
- package/utils/lib/themes/default.mjs.map +1 -1
- package/utils/lib/themes/light.css +1 -1
- package/utils/lib/themes/light.js +1 -1
- package/utils/lib/themes/light.js.map +1 -1
- package/utils/lib/themes/light.mjs +1 -1
- package/utils/lib/themes/light.mjs.map +1 -1
- package/wizard/lib/cjs/Wizard.js +12 -12
- package/wizard/lib/es6/Wizard.js +12 -12
- package/wizard/lib/esm/Wizard.mjs +83 -83
- package/wizard/package.json +1 -1
@@ -1,12 +1,12 @@
|
|
1
1
|
import H from "@babel/runtime/helpers/esm/extends";
|
2
2
|
import z from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
3
|
-
import
|
3
|
+
import d from "@babel/runtime/helpers/esm/classCallCheck";
|
4
4
|
import h from "@babel/runtime/helpers/esm/createClass";
|
5
|
-
import
|
5
|
+
import u 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
|
-
import
|
9
|
-
import
|
8
|
+
import c from "@babel/runtime/helpers/esm/defineProperty";
|
9
|
+
import v from "@babel/runtime/helpers/esm/objectSpread2";
|
10
10
|
import { sstyled as X } from 'intergalactic/utils/lib/core/index';
|
11
11
|
import Y, { sstyled as k, assignProps as q, Component as P } from 'intergalactic/core';
|
12
12
|
import r from "react";
|
@@ -25,71 +25,71 @@ import { useCssVariable as re } from 'intergalactic/utils/lib/useCssVariable';
|
|
25
25
|
import { contextThemeEnhance as ie } from 'intergalactic/utils/lib/ThemeProvider';
|
26
26
|
import D from 'intergalactic/button';
|
27
27
|
import { setFocus as ae, useFocusLock as oe } from 'intergalactic/utils/lib/use/useFocusLock';
|
28
|
-
import { Hint as
|
29
|
-
import { zIndexStackingEnhance as
|
30
|
-
import { forkRef as
|
31
|
-
import { getFocusableIn as
|
28
|
+
import { Hint as se } from 'intergalactic/tooltip';
|
29
|
+
import { zIndexStackingEnhance as ce, ZIndexStackingContextProvider as ge } from 'intergalactic/utils/lib/zIndexStacking';
|
30
|
+
import { forkRef as le, useForkRef as _e } from 'intergalactic/utils/lib/ref';
|
31
|
+
import { getFocusableIn as ue } from 'intergalactic/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
|
37
|
-
"
|
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_"
|
38
38
|
), {
|
39
|
-
__SContent: "
|
40
|
-
__SMessage: "
|
41
|
-
__SDismiss: "
|
42
|
-
_use: "
|
43
|
-
__SIcon: "
|
44
|
-
__SNoticeBubble: "
|
45
|
-
_disablePortal: "
|
46
|
-
__SNoticeAriaLiveWrapper: "
|
47
|
-
"@enter": "
|
48
|
-
"@exit": "
|
49
|
-
__SBubble: "
|
50
|
-
__SView: "
|
51
|
-
_type_info: "
|
52
|
-
_type_warning: "
|
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_"
|
53
53
|
})
|
54
|
-
), V = function(
|
55
|
-
var t =
|
56
|
-
return parseInt(
|
57
|
-
}, [
|
58
|
-
return n.map(function(
|
59
|
-
var
|
60
|
-
return
|
61
|
-
key:
|
62
|
-
initialAnimation:
|
63
|
-
visible: (f =
|
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() {
|
56
|
+
return parseInt(s, 10);
|
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,
|
64
64
|
duration: p,
|
65
65
|
keyframes: [t["@enter"], t["@exit"]],
|
66
66
|
ref: o
|
67
|
-
}), /* @__PURE__ */ r.createElement(a,
|
68
|
-
styles:
|
69
|
-
getI18nText:
|
67
|
+
}), /* @__PURE__ */ r.createElement(a, _.cn("SView", v(v({}, l), {}, {
|
68
|
+
styles: l.styles || t,
|
69
|
+
getI18nText: g.getI18nText
|
70
70
|
}))));
|
71
71
|
});
|
72
72
|
}, y = /* @__PURE__ */ function(m) {
|
73
73
|
b(t, m);
|
74
|
-
var
|
74
|
+
var g = x(t);
|
75
75
|
function t() {
|
76
76
|
var e;
|
77
|
-
|
77
|
+
d(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 =
|
80
|
+
return e = g.call.apply(g, [this].concat(i)), c(u(e), "_unsubscribe", null), c(u(e), "state", {
|
81
81
|
notices: [],
|
82
82
|
warnings: []
|
83
|
-
}),
|
83
|
+
}), c(u(e), "componentWillUnmount", function() {
|
84
84
|
e._unsubscribe && e._unsubscribe();
|
85
|
-
}),
|
86
|
-
var
|
87
|
-
return
|
88
|
-
}), p = o.filter(function(
|
89
|
-
return
|
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";
|
90
90
|
});
|
91
91
|
e.setState({
|
92
|
-
notices:
|
92
|
+
notices: s,
|
93
93
|
warnings: p
|
94
94
|
});
|
95
95
|
}), e;
|
@@ -102,26 +102,26 @@ 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",
|
106
|
-
return i = k(
|
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", {
|
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",
|
109
|
+
disablePortal: _
|
110
|
+
}), /* @__PURE__ */ r.createElement(a, i.cn("SNoticeBubble", v({}, q({
|
111
111
|
ref: M,
|
112
112
|
tag: "section",
|
113
113
|
role: "region",
|
114
114
|
"aria-label": f("notification"),
|
115
115
|
zIndex: C
|
116
116
|
}, n))), /* @__PURE__ */ r.createElement(p, i.cn("Children", {})), /* @__PURE__ */ r.createElement(V, i.cn("Notices", {
|
117
|
-
styles:
|
117
|
+
styles: l,
|
118
118
|
data: E,
|
119
119
|
tag: F,
|
120
120
|
getI18nText: f
|
121
121
|
})), /* @__PURE__ */ r.createElement(o, i.cn("SNoticeAriaLiveWrapper", {
|
122
122
|
"aria-live": "polite"
|
123
123
|
}), /* @__PURE__ */ r.createElement(V, i.cn("Notices", {
|
124
|
-
styles:
|
124
|
+
styles: l,
|
125
125
|
data: w,
|
126
126
|
tag: R,
|
127
127
|
getI18nText: f
|
@@ -129,42 +129,42 @@ var me = ["focusLock"], pe = ["forwardRef", "styles", "onMouseEnter", "onMouseLe
|
|
129
129
|
}
|
130
130
|
}]), t;
|
131
131
|
}(P);
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
132
|
+
c(y, "displayName", "NoticeBubbleContainer");
|
133
|
+
c(y, "style", fe);
|
134
|
+
c(y, "enhance", [ne($), ie(), ce("z-index-notice-bubble")]);
|
135
|
+
c(y, "defaultProps", {
|
136
136
|
manager: L,
|
137
137
|
i18n: $,
|
138
138
|
locale: "en"
|
139
139
|
});
|
140
|
-
var
|
140
|
+
var ve = /* @__PURE__ */ r.forwardRef(function(m, g) {
|
141
141
|
var t = m.focusLock, e = z(m, me), n = r.useRef();
|
142
142
|
oe(n, !1, "auto", !t, !0);
|
143
|
-
var i =
|
143
|
+
var i = _e(g, n);
|
144
144
|
return /* @__PURE__ */ r.createElement(N, H({
|
145
145
|
ref: i
|
146
146
|
}, e));
|
147
147
|
}), R = /* @__PURE__ */ function(m) {
|
148
148
|
b(t, m);
|
149
|
-
var
|
149
|
+
var g = x(t);
|
150
150
|
function t() {
|
151
151
|
var e;
|
152
|
-
|
152
|
+
d(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 =
|
156
|
-
Q(
|
157
|
-
}),
|
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) {
|
158
158
|
o.key === "Escape" && e.handleClose(o);
|
159
|
-
}),
|
159
|
+
}), c(u(e), "handleMouseEnter", function() {
|
160
160
|
e.timer && e.timer.pause();
|
161
|
-
}),
|
161
|
+
}), c(u(e), "handleMouseLeave", function() {
|
162
162
|
e.timer && e.timer.resume();
|
163
|
-
}),
|
164
|
-
var
|
165
|
-
if ((
|
166
|
-
var p = e.ref.current.getBoundingClientRect(),
|
167
|
-
|
163
|
+
}), c(u(e), "handleBodyMouseMove", function(o) {
|
164
|
+
var s;
|
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();
|
168
168
|
}
|
169
169
|
}), e;
|
170
170
|
}
|
@@ -175,8 +175,8 @@ var de = /* @__PURE__ */ r.forwardRef(function(m, c) {
|
|
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 =
|
179
|
-
return
|
178
|
+
var o = ue(a).filter(function(s) {
|
179
|
+
return s !== n.closeButtonRef.current;
|
180
180
|
});
|
181
181
|
o.length > 0 && setTimeout(function() {
|
182
182
|
return ae(a);
|
@@ -196,9 +196,9 @@ var de = /* @__PURE__ */ r.forwardRef(function(m, c) {
|
|
196
196
|
}, {
|
197
197
|
key: "render",
|
198
198
|
value: function() {
|
199
|
-
var n, i =
|
200
|
-
return n = k(M), /* @__PURE__ */ r.createElement(i, n.cn("SBubble",
|
201
|
-
ref:
|
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
202
|
onMouseEnter: A(C, this.handleMouseEnter),
|
203
203
|
onMouseLeave: A(S, this.handleMouseLeave),
|
204
204
|
onKeyDown: this.handleKeydown,
|
@@ -222,30 +222,30 @@ var de = /* @__PURE__ */ r.forwardRef(function(m, c) {
|
|
222
222
|
tag: ee,
|
223
223
|
color: "icon-primary-invert"
|
224
224
|
})
|
225
|
-
), I(E) ? /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
|
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));
|
226
226
|
}
|
227
227
|
}]), t;
|
228
228
|
}(P), F = /* @__PURE__ */ function(m) {
|
229
229
|
b(t, m);
|
230
|
-
var
|
230
|
+
var g = x(t);
|
231
231
|
function t() {
|
232
|
-
return
|
232
|
+
return d(this, t), g.apply(this, arguments);
|
233
233
|
}
|
234
234
|
return h(t);
|
235
235
|
}(R);
|
236
|
-
|
236
|
+
c(F, "defaultProps", {
|
237
237
|
type: "warning",
|
238
238
|
duration: 0
|
239
239
|
});
|
240
240
|
var T = /* @__PURE__ */ function(m) {
|
241
241
|
b(t, m);
|
242
|
-
var
|
242
|
+
var g = x(t);
|
243
243
|
function t() {
|
244
244
|
var e;
|
245
|
-
|
245
|
+
d(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 =
|
248
|
+
return e = g.call.apply(g, [this].concat(i)), c(u(e), "_notice", null), e;
|
249
249
|
}
|
250
250
|
return h(t, [{
|
251
251
|
key: "componentDidMount",
|
@@ -269,20 +269,20 @@ var T = /* @__PURE__ */ function(m) {
|
|
269
269
|
}
|
270
270
|
}]), t;
|
271
271
|
}(P);
|
272
|
-
|
272
|
+
c(T, "defaultProps", {
|
273
273
|
duration: 5e3,
|
274
274
|
type: "info",
|
275
275
|
manager: L
|
276
276
|
});
|
277
277
|
var U = /* @__PURE__ */ function(m) {
|
278
278
|
b(t, m);
|
279
|
-
var
|
279
|
+
var g = x(t);
|
280
280
|
function t() {
|
281
|
-
return
|
281
|
+
return d(this, t), g.apply(this, arguments);
|
282
282
|
}
|
283
283
|
return h(t);
|
284
284
|
}(T);
|
285
|
-
|
285
|
+
c(U, "defaultProps", {
|
286
286
|
duration: 5e3,
|
287
287
|
type: "warning",
|
288
288
|
manager: L
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/notice-bubble","description":"Semrush NoticeBubble Component","version":"5.
|
1
|
+
{"name":"intergalactic/notice-bubble","description":"Semrush NoticeBubble Component","version":"5.53.0-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","author":"UI-kit team <ui-kit-team@semrush.com>","sideEffects":false,"license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js && pnpm vite build"},"exports":{"require":"./lib/cjs/index.js","import":"./lib/esm/index.mjs","types":"./lib/types/index.d.ts"},"dependencies":{"@semcore/button":"5.43.0-prerelease.0","@semcore/utils":"4.48.1","@semcore/icon":"4.60.1","@semcore/portal":"3.41.1","@semcore/flex-box":"5.41.1","@semcore/animation":"2.41.1","@semcore/tooltip":"6.49.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/notice-bubble"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|
@@ -26,17 +26,17 @@ var _useCssVariable = require("intergalactic/utils/lib/useCssVariable");
|
|
26
26
|
var _button = _interopRequireDefault(require("intergalactic/button"));
|
27
27
|
var _keyboardFocusEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/keyboardFocusEnhance"));
|
28
28
|
/*__reshadow-styles__:"./style/notice-global.shadow.css"*/
|
29
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
30
|
-
"__SNoticeGlobal": "
|
31
|
-
"__SCloseIcon": "
|
32
|
-
"_theme_neutral": "
|
33
|
-
"_theme_info": "
|
34
|
-
"_theme_danger": "
|
35
|
-
"_theme_warning": "
|
36
|
-
"_theme_success": "
|
37
|
-
"_theme_custom": "
|
38
|
-
"--backgroundColor": "--
|
39
|
-
"__SContent": "
|
29
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SNoticeGlobal_ufzn7_gg_{display:flex;align-items:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-8x, 32px)}.___SCloseIcon_ufzn7_gg_{margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNoticeGlobal_ufzn7_gg_._theme_neutral_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-muted, #6c6e79);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_info_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_danger_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-critical, #ff4953);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_warning_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_success_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-success, #009f81);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_custom_ufzn7_gg_{background-color:var(--backgroundColor_ufzn7)}.___SContent_ufzn7_gg_{flex:1 1 auto;width:100%;justify-content:center}" /*__inner_css_end__*/, "ufzn7_gg_") /*__reshadow_css_end__*/, {
|
30
|
+
"__SNoticeGlobal": "___SNoticeGlobal_ufzn7_gg_",
|
31
|
+
"__SCloseIcon": "___SCloseIcon_ufzn7_gg_",
|
32
|
+
"_theme_neutral": "_theme_neutral_ufzn7_gg_",
|
33
|
+
"_theme_info": "_theme_info_ufzn7_gg_",
|
34
|
+
"_theme_danger": "_theme_danger_ufzn7_gg_",
|
35
|
+
"_theme_warning": "_theme_warning_ufzn7_gg_",
|
36
|
+
"_theme_success": "_theme_success_ufzn7_gg_",
|
37
|
+
"_theme_custom": "_theme_custom_ufzn7_gg_",
|
38
|
+
"--backgroundColor": "--backgroundColor_ufzn7",
|
39
|
+
"__SContent": "___SContent_ufzn7_gg_"
|
40
40
|
});
|
41
41
|
function isCustomTheme(theme) {
|
42
42
|
return !['danger', 'warning', 'success', 'info', 'neutral'].includes(theme);
|
@@ -20,17 +20,17 @@ import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
|
20
20
|
import { cssVariableEnhance } from 'intergalactic/utils/lib/useCssVariable';
|
21
21
|
import Button from 'intergalactic/button';
|
22
22
|
/*__reshadow-styles__:"./style/notice-global.shadow.css"*/
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
24
|
-
"__SNoticeGlobal": "
|
25
|
-
"__SCloseIcon": "
|
26
|
-
"_theme_neutral": "
|
27
|
-
"_theme_info": "
|
28
|
-
"_theme_danger": "
|
29
|
-
"_theme_warning": "
|
30
|
-
"_theme_success": "
|
31
|
-
"_theme_custom": "
|
32
|
-
"--backgroundColor": "--
|
33
|
-
"__SContent": "
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SNoticeGlobal_ufzn7_gg_{display:flex;align-items:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-8x, 32px)}.___SCloseIcon_ufzn7_gg_{margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNoticeGlobal_ufzn7_gg_._theme_neutral_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-muted, #6c6e79);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_info_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_danger_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-critical, #ff4953);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_warning_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_success_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-success, #009f81);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_custom_ufzn7_gg_{background-color:var(--backgroundColor_ufzn7)}.___SContent_ufzn7_gg_{flex:1 1 auto;width:100%;justify-content:center}" /*__inner_css_end__*/, "ufzn7_gg_") /*__reshadow_css_end__*/, {
|
24
|
+
"__SNoticeGlobal": "___SNoticeGlobal_ufzn7_gg_",
|
25
|
+
"__SCloseIcon": "___SCloseIcon_ufzn7_gg_",
|
26
|
+
"_theme_neutral": "_theme_neutral_ufzn7_gg_",
|
27
|
+
"_theme_info": "_theme_info_ufzn7_gg_",
|
28
|
+
"_theme_danger": "_theme_danger_ufzn7_gg_",
|
29
|
+
"_theme_warning": "_theme_warning_ufzn7_gg_",
|
30
|
+
"_theme_success": "_theme_success_ufzn7_gg_",
|
31
|
+
"_theme_custom": "_theme_custom_ufzn7_gg_",
|
32
|
+
"--backgroundColor": "--backgroundColor_ufzn7",
|
33
|
+
"__SContent": "___SContent_ufzn7_gg_"
|
34
34
|
});
|
35
35
|
import keyboardFocusEnhance from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
36
36
|
function isCustomTheme(theme) {
|
@@ -1,39 +1,39 @@
|
|
1
|
-
import
|
1
|
+
import u from "@babel/runtime/helpers/esm/objectSpread2";
|
2
2
|
import P from "@babel/runtime/helpers/esm/classCallCheck";
|
3
3
|
import T from "@babel/runtime/helpers/esm/createClass";
|
4
4
|
import w from "@babel/runtime/helpers/esm/inherits";
|
5
5
|
import M from "@babel/runtime/helpers/esm/createSuper";
|
6
6
|
import s from "@babel/runtime/helpers/esm/defineProperty";
|
7
|
-
import { sstyled as
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import { Flex as
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import { FadeInOut as
|
14
|
-
import { isAdvanceMode as
|
15
|
-
import { localizedMessages as
|
16
|
-
import
|
17
|
-
import { cssVariableEnhance as
|
7
|
+
import { sstyled as A } from 'intergalactic/utils/lib/core/index';
|
8
|
+
import F, { sstyled as d, assignProps as p, Component as R } from 'intergalactic/core';
|
9
|
+
import o from "react";
|
10
|
+
import { Flex as j } from 'intergalactic/flex-box';
|
11
|
+
import $ from 'intergalactic/icon/Close/m';
|
12
|
+
import B from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
13
|
+
import { FadeInOut as L } from 'intergalactic/animation';
|
14
|
+
import { isAdvanceMode as O } from 'intergalactic/utils/lib/findComponent';
|
15
|
+
import { localizedMessages as h } from "./translations/__intergalactic-dynamic-locales.mjs";
|
16
|
+
import V from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
17
|
+
import { cssVariableEnhance as q } from 'intergalactic/utils/lib/useCssVariable';
|
18
18
|
import D from 'intergalactic/button';
|
19
19
|
import H from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
|
20
20
|
var J = (
|
21
21
|
/*__reshadow_css_start__*/
|
22
|
-
(
|
22
|
+
(A.insert(
|
23
23
|
/*__inner_css_start__*/
|
24
|
-
".
|
25
|
-
"
|
24
|
+
".___SNoticeGlobal_ufzn7_gg_{display:flex;align-items:center;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);box-sizing:border-box;padding:var(--intergalactic-spacing-2x, 8px) var(--intergalactic-spacing-8x, 32px)}.___SCloseIcon_ufzn7_gg_{margin-left:var(--intergalactic-spacing-4x, 16px)}.___SNoticeGlobal_ufzn7_gg_._theme_neutral_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-muted, #6c6e79);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_info_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_danger_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-critical, #ff4953);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_warning_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-warning, #ff642d);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_success_ufzn7_gg_{background-color:var(--intergalactic-bg-primary-success, #009f81);color:var(--intergalactic-text-primary-invert, #ffffff)}.___SNoticeGlobal_ufzn7_gg_._theme_custom_ufzn7_gg_{background-color:var(--backgroundColor_ufzn7)}.___SContent_ufzn7_gg_{flex:1 1 auto;width:100%;justify-content:center}",
|
25
|
+
"ufzn7_gg_"
|
26
26
|
), {
|
27
|
-
__SNoticeGlobal: "
|
28
|
-
__SCloseIcon: "
|
29
|
-
_theme_neutral: "
|
30
|
-
_theme_info: "
|
31
|
-
_theme_danger: "
|
32
|
-
_theme_warning: "
|
33
|
-
_theme_success: "
|
34
|
-
_theme_custom: "
|
35
|
-
"--backgroundColor": "--
|
36
|
-
__SContent: "
|
27
|
+
__SNoticeGlobal: "___SNoticeGlobal_ufzn7_gg_",
|
28
|
+
__SCloseIcon: "___SCloseIcon_ufzn7_gg_",
|
29
|
+
_theme_neutral: "_theme_neutral_ufzn7_gg_",
|
30
|
+
_theme_info: "_theme_info_ufzn7_gg_",
|
31
|
+
_theme_danger: "_theme_danger_ufzn7_gg_",
|
32
|
+
_theme_warning: "_theme_warning_ufzn7_gg_",
|
33
|
+
_theme_success: "_theme_success_ufzn7_gg_",
|
34
|
+
_theme_custom: "_theme_custom_ufzn7_gg_",
|
35
|
+
"--backgroundColor": "--backgroundColor_ufzn7",
|
36
|
+
__SContent: "___SContent_ufzn7_gg_"
|
37
37
|
})
|
38
38
|
);
|
39
39
|
function K(t) {
|
@@ -48,60 +48,60 @@ var c = /* @__PURE__ */ function(t) {
|
|
48
48
|
return T(e, [{
|
49
49
|
key: "getCloseIconProps",
|
50
50
|
value: function() {
|
51
|
-
var
|
51
|
+
var n = this.asProps.getI18nText;
|
52
52
|
return {
|
53
|
-
getI18nText:
|
53
|
+
getI18nText: n
|
54
54
|
};
|
55
55
|
}
|
56
56
|
}, {
|
57
57
|
key: "render",
|
58
58
|
value: function() {
|
59
|
-
var
|
60
|
-
return
|
59
|
+
var n = this.asProps, a, g = L, r = this.asProps, f = r.Children, b = r.styles, C = r.hidden, i = r.theme, y = r.closable, z = r.onClose, x = r.forcedAdvancedMode, S = r.resolveColor, N = r.getI18nText, I = i === "danger" || i === "warning", k = S(i), G = K(i) ? "custom" : i, E = x || O(f, [m.Content.displayName]);
|
60
|
+
return a = d(b), /* @__PURE__ */ o.createElement(g, a.cn("SNoticeGlobal", u({}, p({
|
61
61
|
visible: !C,
|
62
62
|
"use:theme": G,
|
63
63
|
backgroundColor: k,
|
64
64
|
role: "region",
|
65
65
|
"aria-live": I ? "assertive" : "polite",
|
66
66
|
"aria-label": N(i === "danger" ? "criticalNotification" : "notification")
|
67
|
-
},
|
68
|
-
onClick:
|
67
|
+
}, n))), E ? /* @__PURE__ */ o.createElement(f, a.cn("Children", {})) : /* @__PURE__ */ o.createElement(m.Content, null, /* @__PURE__ */ o.createElement(f, a.cn("Children", {}))), y && /* @__PURE__ */ o.createElement(m.CloseIcon, {
|
68
|
+
onClick: z
|
69
69
|
}));
|
70
70
|
}
|
71
71
|
}]), e;
|
72
|
-
}(
|
72
|
+
}(R);
|
73
73
|
s(c, "displayName", "NoticeGlobal");
|
74
74
|
s(c, "style", J);
|
75
|
-
s(c, "enhance", [
|
75
|
+
s(c, "enhance", [V(h), q({
|
76
76
|
variable: "--intergalactic-duration-popper",
|
77
77
|
fallback: "200",
|
78
78
|
map: Number.parseInt,
|
79
79
|
prop: "duration"
|
80
|
-
}),
|
80
|
+
}), B()]);
|
81
81
|
s(c, "defaultProps", {
|
82
82
|
theme: "neutral",
|
83
|
-
i18n:
|
83
|
+
i18n: h,
|
84
84
|
locale: "en"
|
85
85
|
});
|
86
86
|
function Q(t) {
|
87
|
-
var _ = arguments[0], e, l = t.styles,
|
88
|
-
return e = d(l), /* @__PURE__ */
|
87
|
+
var _ = arguments[0], e, l = t.styles, n = j;
|
88
|
+
return e = d(l), /* @__PURE__ */ o.createElement(n, e.cn("SContent", u({}, p({}, _))));
|
89
89
|
}
|
90
|
-
function
|
91
|
-
var _ = arguments[0], e, l = t.styles,
|
92
|
-
return e = d(l), /* @__PURE__ */
|
90
|
+
function v(t) {
|
91
|
+
var _ = arguments[0], e, l = t.styles, n = t.children, a = t.Children, g = t.getI18nText, r = D;
|
92
|
+
return e = d(l), /* @__PURE__ */ o.createElement(r, e.cn("SCloseIcon", u({}, p({
|
93
93
|
"aria-label": g("close"),
|
94
94
|
use: "tertiary",
|
95
95
|
theme: "invert",
|
96
96
|
size: "m",
|
97
|
-
addonLeft:
|
98
|
-
}, _))),
|
97
|
+
addonLeft: n ? void 0 : $
|
98
|
+
}, _))), n ? /* @__PURE__ */ o.createElement(a, e.cn("Children", {})) : null);
|
99
99
|
}
|
100
|
-
|
101
|
-
var
|
100
|
+
v.enhance = [H()];
|
101
|
+
var m = F(c, {
|
102
102
|
Content: Q,
|
103
|
-
CloseIcon:
|
103
|
+
CloseIcon: v
|
104
104
|
});
|
105
105
|
export {
|
106
|
-
|
106
|
+
m as default
|
107
107
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"intergalactic/notice-global","description":"Semrush NoticeGlobal Component","version":"2.
|
1
|
+
{"name":"intergalactic/notice-global","description":"Semrush NoticeGlobal Component","version":"2.61.0-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","author":"UI-kit team <ui-kit-team@semrush.com>","sideEffects":false,"license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js && pnpm vite build"},"exports":{"require":"./lib/cjs/index.js","import":"./lib/esm/index.mjs","types":"./lib/types/index.d.ts"},"dependencies":{"@semcore/button":"5.43.0-prerelease.0","@semcore/utils":"4.48.1","@semcore/icon":"4.60.1","@semcore/flex-box":"5.41.1","@semcore/animation":"2.41.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/notice-global"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
|