@semcore/feature-popover 4.54.0 → 4.54.1-prerelease.4
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/FeaturePopover.js +11 -11
- package/lib/es6/FeaturePopover.js +11 -11
- package/lib/esm/FeaturePopover.mjs +58 -58
- package/package.json +8 -8
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
|
+
## [4.54.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/animation` [2.41.1 ~> 2.41.2], `@semcore/core` [2.39.1 ~> 2.39.2]).
|
|
10
|
+
|
|
5
11
|
## [4.54.0] - 2025-03-28
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -28,18 +28,18 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
|
|
|
28
28
|
var _button = _interopRequireDefault(require("@semcore/button"));
|
|
29
29
|
var _excluded = ["styles", "forwardRef", "onVisibleChange", "modifiers"];
|
|
30
30
|
/*__reshadow-styles__:"./style/feature-popover.shadow.css"*/
|
|
31
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
|
32
|
-
"__SFeaturePopover": "
|
|
33
|
-
"__STrigger": "
|
|
34
|
-
"@showTrigger": "
|
|
35
|
-
"@scaleSizeAndHide": "
|
|
36
|
-
"__SClose": "
|
|
37
|
-
"__SAddon": "
|
|
38
|
-
"__SSpot": "
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_1bz3f{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1bz3f{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1bz3f_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_1bz3f_gg_{position:relative}.___SClose_1bz3f_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1bz3f_gg_ .___SAddon_1bz3f_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1bz3f_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1bz3f;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1bz3f_gg_::after,.___SSpot_1bz3f_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1bz3f_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1bz3f;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_1bz3f_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_1bz3f_gg_,.___SSpot_1bz3f_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "1bz3f_gg_") /*__reshadow_css_end__*/, {
|
|
32
|
+
"__SFeaturePopover": "___SFeaturePopover_1bz3f_gg_",
|
|
33
|
+
"__STrigger": "___STrigger_1bz3f_gg_",
|
|
34
|
+
"@showTrigger": "showTrigger_1bz3f",
|
|
35
|
+
"@scaleSizeAndHide": "scaleSizeAndHide_1bz3f",
|
|
36
|
+
"__SClose": "___SClose_1bz3f_gg_",
|
|
37
|
+
"__SAddon": "___SAddon_1bz3f_gg_",
|
|
38
|
+
"__SSpot": "___SSpot_1bz3f_gg_"
|
|
39
39
|
});
|
|
40
|
-
var stylePopper = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
|
41
|
-
"@enter": "
|
|
42
|
-
"@exit": "
|
|
40
|
+
var stylePopper = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1bceb{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1bceb{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "1bceb_gg_") /*__reshadow_css_end__*/, {
|
|
41
|
+
"@enter": "enter_1bceb",
|
|
42
|
+
"@exit": "exit_1bceb"
|
|
43
43
|
});
|
|
44
44
|
var FeaturePopover = /*#__PURE__*/function (_Component) {
|
|
45
45
|
(0, _inherits2["default"])(FeaturePopover, _Component);
|
|
@@ -23,18 +23,18 @@ import i18nEnhance from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
|
23
23
|
import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
24
24
|
import Button from '@semcore/button';
|
|
25
25
|
/*__reshadow-styles__:"./style/feature-popover.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes
|
|
27
|
-
"__SFeaturePopover": "
|
|
28
|
-
"__STrigger": "
|
|
29
|
-
"@showTrigger": "
|
|
30
|
-
"@scaleSizeAndHide": "
|
|
31
|
-
"__SClose": "
|
|
32
|
-
"__SAddon": "
|
|
33
|
-
"__SSpot": "
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_1bz3f{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1bz3f{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1bz3f_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_1bz3f_gg_{position:relative}.___SClose_1bz3f_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1bz3f_gg_ .___SAddon_1bz3f_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1bz3f_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1bz3f;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1bz3f_gg_::after,.___SSpot_1bz3f_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1bz3f_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1bz3f;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_1bz3f_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_1bz3f_gg_,.___SSpot_1bz3f_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "1bz3f_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SFeaturePopover": "___SFeaturePopover_1bz3f_gg_",
|
|
28
|
+
"__STrigger": "___STrigger_1bz3f_gg_",
|
|
29
|
+
"@showTrigger": "showTrigger_1bz3f",
|
|
30
|
+
"@scaleSizeAndHide": "scaleSizeAndHide_1bz3f",
|
|
31
|
+
"__SClose": "___SClose_1bz3f_gg_",
|
|
32
|
+
"__SAddon": "___SAddon_1bz3f_gg_",
|
|
33
|
+
"__SSpot": "___SSpot_1bz3f_gg_"
|
|
34
34
|
});
|
|
35
|
-
var stylePopper = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes
|
|
36
|
-
"@enter": "
|
|
37
|
-
"@exit": "
|
|
35
|
+
var stylePopper = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1bceb{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1bceb{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "1bceb_gg_") /*__reshadow_css_end__*/, {
|
|
36
|
+
"@enter": "enter_1bceb",
|
|
37
|
+
"@exit": "exit_1bceb"
|
|
38
38
|
});
|
|
39
39
|
var FeaturePopover = /*#__PURE__*/function (_Component) {
|
|
40
40
|
_inherits(FeaturePopover, _Component);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import y from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import d from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
import
|
|
3
|
+
import L from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import P from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
5
|
import C from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import v from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
|
+
import z from "@babel/runtime/helpers/esm/inherits";
|
|
8
8
|
import k from "@babel/runtime/helpers/esm/createSuper";
|
|
9
9
|
import p from "@babel/runtime/helpers/esm/defineProperty";
|
|
10
|
-
import { sstyled as
|
|
11
|
-
import
|
|
10
|
+
import { sstyled as M } from "@semcore/utils/lib/core/index";
|
|
11
|
+
import j, { sstyled as _, Component as T, assignProps as h } from "@semcore/core";
|
|
12
12
|
import s from "react";
|
|
13
13
|
import { Animation as O } from "@semcore/animation";
|
|
14
|
-
import
|
|
14
|
+
import m from "@semcore/popper";
|
|
15
15
|
import { Box as x } from "@semcore/flex-box";
|
|
16
16
|
import N from "@semcore/icon/Close/m";
|
|
17
17
|
import { callAllEventHandlers as W } from "@semcore/utils/lib/assignProps";
|
|
@@ -20,43 +20,43 @@ import { localizedMessages as w } from "./translations/__intergalactic-dynamic-l
|
|
|
20
20
|
import G from "@semcore/button";
|
|
21
21
|
var J = ["styles", "forwardRef", "onVisibleChange", "modifiers"], K = (
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
|
-
(
|
|
23
|
+
(M.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
'@keyframes
|
|
26
|
-
"
|
|
25
|
+
'@keyframes showTrigger_1bz3f{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1bz3f{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1bz3f_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_1bz3f_gg_{position:relative}.___SClose_1bz3f_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1bz3f_gg_ .___SAddon_1bz3f_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1bz3f_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1bz3f;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1bz3f_gg_::after,.___SSpot_1bz3f_gg_::before{content:"";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1bz3f_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1bz3f;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_1bz3f_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_1bz3f_gg_,.___SSpot_1bz3f_gg_::before{animation-name:none}}',
|
|
26
|
+
"1bz3f_gg_"
|
|
27
27
|
), {
|
|
28
|
-
__SFeaturePopover: "
|
|
29
|
-
__STrigger: "
|
|
30
|
-
"@showTrigger": "
|
|
31
|
-
"@scaleSizeAndHide": "
|
|
32
|
-
__SClose: "
|
|
33
|
-
__SAddon: "
|
|
34
|
-
__SSpot: "
|
|
28
|
+
__SFeaturePopover: "___SFeaturePopover_1bz3f_gg_",
|
|
29
|
+
__STrigger: "___STrigger_1bz3f_gg_",
|
|
30
|
+
"@showTrigger": "showTrigger_1bz3f",
|
|
31
|
+
"@scaleSizeAndHide": "scaleSizeAndHide_1bz3f",
|
|
32
|
+
__SClose: "___SClose_1bz3f_gg_",
|
|
33
|
+
__SAddon: "___SAddon_1bz3f_gg_",
|
|
34
|
+
__SSpot: "___SSpot_1bz3f_gg_"
|
|
35
35
|
})
|
|
36
36
|
), S = (
|
|
37
37
|
/*__reshadow_css_start__*/
|
|
38
38
|
(_.insert(
|
|
39
39
|
/*__inner_css_start__*/
|
|
40
|
-
"@keyframes
|
|
41
|
-
"
|
|
40
|
+
"@keyframes enter_1bceb{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1bceb{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}",
|
|
41
|
+
"1bceb_gg_"
|
|
42
42
|
), {
|
|
43
|
-
"@enter": "
|
|
44
|
-
"@exit": "
|
|
43
|
+
"@enter": "enter_1bceb",
|
|
44
|
+
"@exit": "exit_1bceb"
|
|
45
45
|
})
|
|
46
|
-
),
|
|
47
|
-
|
|
46
|
+
), g = /* @__PURE__ */ function(l) {
|
|
47
|
+
z(r, l);
|
|
48
48
|
var n = k(r);
|
|
49
49
|
function r() {
|
|
50
50
|
var t;
|
|
51
51
|
P(this, r);
|
|
52
|
-
for (var
|
|
52
|
+
for (var a = arguments.length, e = new Array(a), o = 0; o < a; o++)
|
|
53
53
|
e[o] = arguments[o];
|
|
54
|
-
return t = n.call.apply(n, [this].concat(e)), p(
|
|
54
|
+
return t = n.call.apply(n, [this].concat(e)), p(v(t), "defaultModifiers", [{
|
|
55
55
|
name: "flip",
|
|
56
56
|
enabled: !1
|
|
57
|
-
}]), p(
|
|
57
|
+
}]), p(v(t), "handleVisibleChange", function(c) {
|
|
58
58
|
t.handlers.visible(c);
|
|
59
|
-
}), p(
|
|
59
|
+
}), p(v(t), "handleCloseClick", function(c) {
|
|
60
60
|
t.handlers.visible(!1, c);
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
@@ -70,7 +70,7 @@ var J = ["styles", "forwardRef", "onVisibleChange", "modifiers"], K = (
|
|
|
70
70
|
}, {
|
|
71
71
|
key: "getPopperProps",
|
|
72
72
|
value: function() {
|
|
73
|
-
var
|
|
73
|
+
var a = this.asProps, e = a.visible, o = a.getI18nText;
|
|
74
74
|
return {
|
|
75
75
|
visible: e,
|
|
76
76
|
$onCloseClick: this.handleCloseClick,
|
|
@@ -80,26 +80,26 @@ var J = ["styles", "forwardRef", "onVisibleChange", "modifiers"], K = (
|
|
|
80
80
|
}, {
|
|
81
81
|
key: "getSpotProps",
|
|
82
82
|
value: function() {
|
|
83
|
-
var
|
|
83
|
+
var a = this.asProps.visible;
|
|
84
84
|
return {
|
|
85
|
-
visible:
|
|
85
|
+
visible: a
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
}, {
|
|
89
89
|
key: "render",
|
|
90
90
|
value: function() {
|
|
91
|
-
var
|
|
92
|
-
return
|
|
91
|
+
var a, e = this.asProps, o = e.styles, c = e.forwardRef, i = e.onVisibleChange, f = e.modifiers, b = f === void 0 ? [] : f, u = L(e, J);
|
|
92
|
+
return a = _(o), /* @__PURE__ */ s.createElement(m, a.cn("Popper", d({
|
|
93
93
|
ref: c,
|
|
94
|
-
onVisibleChange: W(
|
|
95
|
-
modifiers: [].concat(y(this.defaultModifiers), y(
|
|
96
|
-
},
|
|
94
|
+
onVisibleChange: W(i, this.handleVisibleChange),
|
|
95
|
+
modifiers: [].concat(y(this.defaultModifiers), y(b))
|
|
96
|
+
}, u)));
|
|
97
97
|
}
|
|
98
98
|
}]), r;
|
|
99
99
|
}(T);
|
|
100
|
-
p(
|
|
101
|
-
p(
|
|
102
|
-
p(
|
|
100
|
+
p(g, "displayName", "FeaturePopover");
|
|
101
|
+
p(g, "style", K);
|
|
102
|
+
p(g, "defaultProps", {
|
|
103
103
|
offset: [0, 12],
|
|
104
104
|
placement: "bottom-start",
|
|
105
105
|
defaultVisible: !1,
|
|
@@ -110,16 +110,16 @@ p(m, "defaultProps", {
|
|
|
110
110
|
i18n: w,
|
|
111
111
|
locale: "en"
|
|
112
112
|
});
|
|
113
|
-
p(
|
|
113
|
+
p(g, "enhance", [q(w)]);
|
|
114
114
|
function Q(l) {
|
|
115
|
-
var n = arguments[0], r, t = l.Children,
|
|
116
|
-
return r = _(
|
|
115
|
+
var n = arguments[0], r, t = l.Children, a = l.styles, e = m.Trigger;
|
|
116
|
+
return r = _(a), /* @__PURE__ */ s.createElement(e, r.cn("STrigger", d({}, h({
|
|
117
117
|
tag: x,
|
|
118
118
|
"aria-haspopup": !1
|
|
119
119
|
}, n))), /* @__PURE__ */ s.createElement(t, r.cn("Children", {})));
|
|
120
120
|
}
|
|
121
121
|
var A = /* @__PURE__ */ function(l) {
|
|
122
|
-
|
|
122
|
+
z(r, l);
|
|
123
123
|
var n = k(r);
|
|
124
124
|
function r() {
|
|
125
125
|
return P(this, r), n.apply(this, arguments);
|
|
@@ -127,34 +127,34 @@ var A = /* @__PURE__ */ function(l) {
|
|
|
127
127
|
return C(r, [{
|
|
128
128
|
key: "render",
|
|
129
129
|
value: function() {
|
|
130
|
-
var
|
|
131
|
-
return e = _(
|
|
130
|
+
var a = this.asProps, e, o = x, c = G, i = this.asProps, f = i.Children, b = i.styles, u = i.visible, F = i.closeIcon, E = i.duration, I = i.$onCloseClick, $ = i.animationsDisabled, V = i.getI18nText, B = i.zIndex, H = i["aria-label"], D = i["aria-describedBy"], R = i["aria-labelledby"], X = i.title;
|
|
131
|
+
return e = _(b), /* @__PURE__ */ s.createElement(m.Popper, {
|
|
132
132
|
disableEnforceFocus: !0,
|
|
133
|
-
zIndex:
|
|
133
|
+
zIndex: B,
|
|
134
134
|
tabIndex: 0,
|
|
135
135
|
autoFocus: !0,
|
|
136
136
|
role: "dialog",
|
|
137
|
-
"aria-describedby":
|
|
138
|
-
"aria-label":
|
|
139
|
-
"aria-labelledby":
|
|
140
|
-
title:
|
|
137
|
+
"aria-describedby": D,
|
|
138
|
+
"aria-label": H,
|
|
139
|
+
"aria-labelledby": R,
|
|
140
|
+
title: X
|
|
141
141
|
}, /* @__PURE__ */ s.createElement(O, e.cn("Animation", {
|
|
142
|
-
visible:
|
|
142
|
+
visible: u,
|
|
143
143
|
duration: E,
|
|
144
144
|
keyframes: [S["@enter"], S["@exit"]],
|
|
145
145
|
initialAnimation: !0,
|
|
146
|
-
animationsDisabled:
|
|
146
|
+
animationsDisabled: $
|
|
147
147
|
}), /* @__PURE__ */ s.createElement(o, e.cn("SFeaturePopover", d({}, h({
|
|
148
148
|
__excludeProps: ["aria-label", "aria-describedBy", "title"]
|
|
149
|
-
},
|
|
150
|
-
"aria-label":
|
|
149
|
+
}, a))), F && /* @__PURE__ */ s.createElement(c, e.cn("SClose", {
|
|
150
|
+
"aria-label": V("close"),
|
|
151
151
|
onClick: I,
|
|
152
152
|
use: "tertiary",
|
|
153
153
|
theme: "muted",
|
|
154
154
|
size: "m",
|
|
155
155
|
addonLeft: N,
|
|
156
156
|
type: "button"
|
|
157
|
-
})), /* @__PURE__ */ s.createElement(
|
|
157
|
+
})), /* @__PURE__ */ s.createElement(f, e.cn("Children", {})))));
|
|
158
158
|
}
|
|
159
159
|
}]), r;
|
|
160
160
|
}(T);
|
|
@@ -163,16 +163,16 @@ p(A, "defaultProps", {
|
|
|
163
163
|
duration: 200
|
|
164
164
|
});
|
|
165
165
|
var U = function(n) {
|
|
166
|
-
var r = arguments[0], t,
|
|
167
|
-
return o ? (t = _(e), /* @__PURE__ */ s.createElement(
|
|
166
|
+
var r = arguments[0], t, a = x, e = n.styles, o = n.visible;
|
|
167
|
+
return o ? (t = _(e), /* @__PURE__ */ s.createElement(a, t.cn("SSpot", d({}, h({}, r))))) : null;
|
|
168
168
|
};
|
|
169
|
-
const
|
|
169
|
+
const ve = j(g, {
|
|
170
170
|
Trigger: Q,
|
|
171
171
|
Popper: A,
|
|
172
172
|
Spot: U
|
|
173
173
|
}, {
|
|
174
|
-
parent:
|
|
174
|
+
parent: m
|
|
175
175
|
});
|
|
176
176
|
export {
|
|
177
|
-
|
|
177
|
+
ve as default
|
|
178
178
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/feature-popover",
|
|
3
3
|
"description": "Semrush FeaturePopover Component",
|
|
4
|
-
"version": "4.54.
|
|
4
|
+
"version": "4.54.1-prerelease.4",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "5.43.
|
|
18
|
-
"@semcore/utils": "4.48.
|
|
19
|
-
"@semcore/flex-box": "5.41.
|
|
20
|
-
"@semcore/popper": "5.46.
|
|
21
|
-
"@semcore/icon": "4.60.
|
|
22
|
-
"@semcore/animation": "2.41.
|
|
17
|
+
"@semcore/button": "5.43.1-prerelease.4",
|
|
18
|
+
"@semcore/utils": "4.48.2-prerelease.4",
|
|
19
|
+
"@semcore/flex-box": "5.41.2-prerelease.4",
|
|
20
|
+
"@semcore/popper": "5.46.2-prerelease.4",
|
|
21
|
+
"@semcore/icon": "4.60.2-prerelease.4",
|
|
22
|
+
"@semcore/animation": "2.41.2-prerelease.4"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@semcore/core": "^2.
|
|
25
|
+
"@semcore/core": "^2.39.2-prerelease.4",
|
|
26
26
|
"react": "16.8 - 18",
|
|
27
27
|
"react-dom": "16.8 - 18"
|
|
28
28
|
},
|