@semcore/feature-popover 16.3.0 → 16.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [16.3.0] - 2026-05-07
5
+ ## [16.3.1] - 2026-05-07
6
6
 
7
7
  ### Added
8
8
 
@@ -23,24 +23,24 @@ var _react = _interopRequireDefault(require("react"));
23
23
  var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
24
24
  var _excluded = ["styles", "forwardRef", "onVisibleChange", "modifiers"];
25
25
  /*!__reshadow-styles__:"./style/feature-popover.shadow.css"*/
26
- var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_1p59g{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1p59g{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1p59g_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1p59g_gg_._theme_neutral_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1p59g_gg_{position:relative}.___SClose_1p59g_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1p59g_gg_ .___SAddon_1p59g_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1p59g_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1p59g;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1p59g_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1p59g;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1p59g_gg_::after,.___SSpot_1p59g_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1p59g_gg_,.___SSpot_1p59g_gg_::before{animation-name:none}}", /*__inner_css_end__*/"1p59g_gg_"),
26
+ var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_1twzn{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1twzn{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1twzn_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1twzn_gg_._theme_neutral_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1twzn_gg_{position:relative}.___SClose_1twzn_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1twzn_gg_ .___SAddon_1twzn_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1twzn_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1twzn;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1twzn_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1twzn;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1twzn_gg_::after,.___SSpot_1twzn_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1twzn_gg_,.___SSpot_1twzn_gg_::before{animation-name:none}}", /*__inner_css_end__*/"1twzn_gg_"),
27
27
  /*__reshadow_css_end__*/
28
28
  {
29
- "__STrigger": "___STrigger_1p59g_gg_",
30
- "@showTrigger": "showTrigger_1p59g",
31
- "@scaleSizeAndHide": "scaleSizeAndHide_1p59g",
32
- "__SFeaturePopover": "___SFeaturePopover_1p59g_gg_",
33
- "_theme_accent": "_theme_accent_1p59g_gg_",
34
- "_theme_neutral": "_theme_neutral_1p59g_gg_",
35
- "__SClose": "___SClose_1p59g_gg_",
36
- "__SAddon": "___SAddon_1p59g_gg_",
37
- "__SSpot": "___SSpot_1p59g_gg_"
29
+ "__STrigger": "___STrigger_1twzn_gg_",
30
+ "@showTrigger": "showTrigger_1twzn",
31
+ "@scaleSizeAndHide": "scaleSizeAndHide_1twzn",
32
+ "__SFeaturePopover": "___SFeaturePopover_1twzn_gg_",
33
+ "_theme_accent": "_theme_accent_1twzn_gg_",
34
+ "_theme_neutral": "_theme_neutral_1twzn_gg_",
35
+ "__SClose": "___SClose_1twzn_gg_",
36
+ "__SAddon": "___SAddon_1twzn_gg_",
37
+ "__SSpot": "___SSpot_1twzn_gg_"
38
38
  });
39
- var stylePopper = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1lkos{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1lkos{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"1lkos_gg_"),
39
+ var stylePopper = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes enter_196ly{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_196ly{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"196ly_gg_"),
40
40
  /*__reshadow_css_end__*/
41
41
  {
42
- "@enter": "enter_1lkos",
43
- "@exit": "exit_1lkos"
42
+ "@enter": "enter_196ly",
43
+ "@exit": "exit_196ly"
44
44
  });
45
45
  var enhance = [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)];
46
46
  var FeaturePopover = /*#__PURE__*/function (_Component) {
@@ -143,28 +143,11 @@ function Trigger(_ref8) {
143
143
  }
144
144
  var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
145
145
  function FeaturePopoverPopper() {
146
- var _this2;
147
146
  (0, _classCallCheck2["default"])(this, FeaturePopoverPopper);
148
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
149
- args[_key2] = arguments[_key2];
150
- }
151
- _this2 = (0, _callSuper2["default"])(this, FeaturePopoverPopper, [].concat(args));
152
- (0, _defineProperty2["default"])(_this2, "popperRef", /*#__PURE__*/_react["default"].createRef());
153
- return _this2;
147
+ return (0, _callSuper2["default"])(this, FeaturePopoverPopper, arguments);
154
148
  }
155
149
  (0, _inherits2["default"])(FeaturePopoverPopper, _Component2);
156
150
  return (0, _createClass2["default"])(FeaturePopoverPopper, [{
157
- key: "componentDidMount",
158
- value: function componentDidMount() {
159
- var _this3 = this;
160
- if (this.asProps.autoFocus) {
161
- setTimeout(function () {
162
- var _this3$popperRef$curr;
163
- (_this3$popperRef$curr = _this3.popperRef.current) === null || _this3$popperRef$curr === void 0 || _this3$popperRef$curr.focus();
164
- }, 0);
165
- }
166
- }
167
- }, {
168
151
  key: "render",
169
152
  value: function render() {
170
153
  var _ref2 = this.asProps,
@@ -185,12 +168,14 @@ var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
185
168
  ariaDescribedBy = _this$asProps4['aria-describedby'],
186
169
  ariaLabelledby = _this$asProps4['aria-labelledby'],
187
170
  title = _this$asProps4.title,
188
- theme = _this$asProps4.theme;
171
+ theme = _this$asProps4.theme,
172
+ _this$asProps4$autoFo = _this$asProps4.autoFocus,
173
+ autoFocus = _this$asProps4$autoFo === void 0 ? true : _this$asProps4$autoFo;
189
174
  return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_baseComponents.Popper.Popper, {
190
- ref: this.popperRef,
191
175
  disableEnforceFocus: true,
192
176
  zIndex: zIndex,
193
177
  tabIndex: 0,
178
+ autoFocus: autoFocus,
194
179
  role: "dialog",
195
180
  "aria-describedby": ariaDescribedBy,
196
181
  "aria-label": ariaLabel,
@@ -218,8 +203,7 @@ var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
218
203
  }(_core.Component);
219
204
  (0, _defineProperty2["default"])(FeaturePopoverPopper, "defaultProps", {
220
205
  closeIcon: false,
221
- duration: 200,
222
- autoFocus: true
206
+ duration: 200
223
207
  });
224
208
  function Spot(props) {
225
209
  var _ref3 = arguments[0],
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.js","names":["_core","require","_baseComponents","_button","_interopRequireDefault","_assignProps4","_i18nEnhance","_m","_react","_intergalacticDynamicLocales","_excluded","style","sstyled","insert","stylePopper","enhance","i18nEnhance","localizedMessages","FeaturePopover","_Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","name","enabled","visible","handlers","e","_inherits2","_createClass2","key","value","uncontrolledProps","getPopperProps","_this$asProps","asProps","getI18nText","theme","$onCloseClick","handleCloseClick","getSpotProps","_this$asProps2","render","_ref4","_this$asProps3","styles","forwardRef","onVisibleChange","_this$asProps3$modifi","modifiers","other","_objectWithoutProperties2","createElement","Popper","cn","_objectSpread2","callAllEventHandlers","handleVisibleChange","_toConsumableArray2","defaultModifiers","Component","offset","placement","defaultVisible","onOutsideClick","interaction","i18n","locale","Trigger","_ref8","_ref","arguments[0]","_ref5","Children","STrigger","assignProps","Box","FeaturePopoverPopper","_Component2","_this2","_len2","_key2","React","createRef","componentDidMount","_this3","autoFocus","setTimeout","_this3$popperRef$curr","popperRef","current","focus","_ref2","_ref6","SFeaturePopover","SClose","Button","_this$asProps4","closeIcon","duration","animationsDisabled","zIndex","ariaLabel","ariaDescribedBy","ariaLabelledby","title","ref","disableEnforceFocus","tabIndex","role","Animation","CloseIcon","Spot","props","_ref3","_ref7","SSpot","_default","exports","createComponent","parent"],"sources":["../../src/FeaturePopover.tsx"],"sourcesContent":["import { Box, Popper, Animation } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport CloseIcon from '@semcore/icon/Close/m';\nimport React from 'react';\n\nimport type {\n FeaturePopoverProps,\n FeaturePopoverComponent,\n FeaturePopoverSpotProps,\n FeaturePopoverPopperProps,\n FeaturePopoverPopperInnerProps,\n} from './FeaturePopover.type';\nimport style from './style/feature-popover.shadow.css';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nconst stylePopper = sstyled.css`\n @keyframes enter {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes exit {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-10px);\n }\n }\n`;\n\nconst enhance = [\n i18nEnhance(localizedMessages),\n] as const;\n\nclass FeaturePopover extends Component<FeaturePopoverProps, typeof enhance, { visible: null }> {\n static displayName = 'FeaturePopover';\n static style = style;\n static defaultProps = {\n offset: [0, 12],\n placement: 'bottom-start',\n defaultVisible: false,\n onOutsideClick: () => false,\n interaction: 'none',\n i18n: localizedMessages,\n locale: 'en',\n theme: 'accent',\n };\n\n static enhance = enhance;\n\n defaultModifiers = [\n {\n name: 'flip',\n enabled: false,\n },\n ];\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n handleVisibleChange = (visible: boolean) => {\n this.handlers.visible(visible);\n };\n\n handleCloseClick = (e: React.SyntheticEvent<HTMLButtonElement>) => {\n this.handlers.visible(false, e);\n };\n\n getPopperProps() {\n const { visible, getI18nText, theme } = this.asProps;\n return {\n visible,\n $onCloseClick: this.handleCloseClick,\n getI18nText,\n theme,\n };\n }\n\n getSpotProps() {\n const { visible, theme } = this.asProps;\n return { visible, theme };\n }\n\n render() {\n const { styles, forwardRef, onVisibleChange, modifiers = [], ...other } = this.asProps;\n\n return sstyled(styles)(\n <Popper\n ref={forwardRef}\n onVisibleChange={callAllEventHandlers(onVisibleChange, this.handleVisibleChange)}\n modifiers={[...this.defaultModifiers, ...modifiers]}\n {...other}\n />,\n );\n }\n}\n\nfunction Trigger({ Children, styles }: IRootComponentProps) {\n const STrigger = Root;\n return sstyled(styles)(\n <STrigger render={Popper.Trigger} tag={Box} aria-haspopup={false}>\n <Children />\n </STrigger>,\n );\n}\n\nclass FeaturePopoverPopper extends Component<FeaturePopoverPopperProps, [], {}, FeaturePopoverPopperInnerProps> {\n static defaultProps = {\n closeIcon: false,\n duration: 200,\n autoFocus: true,\n };\n\n popperRef = React.createRef<HTMLDivElement>();\n\n componentDidMount() {\n if (this.asProps.autoFocus) {\n setTimeout(() => {\n this.popperRef.current?.focus();\n }, 0);\n }\n }\n\n render() {\n const SFeaturePopover = Root;\n const SClose = Button;\n const {\n Children,\n styles,\n visible,\n closeIcon,\n duration,\n $onCloseClick,\n animationsDisabled,\n getI18nText,\n zIndex,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledby,\n title,\n theme,\n } = this.asProps;\n\n return sstyled(styles)(\n <Popper.Popper\n ref={this.popperRef}\n disableEnforceFocus\n zIndex={zIndex}\n tabIndex={0}\n role='dialog'\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n title={title}\n >\n <Animation\n visible={visible}\n duration={duration}\n keyframes={[stylePopper['@enter'], stylePopper['@exit']]}\n initialAnimation\n animationsDisabled={animationsDisabled}\n >\n <SFeaturePopover\n render={Box}\n __excludeProps={['aria-label', 'aria-describedBy', 'title']}\n >\n {closeIcon && (\n <SClose\n aria-label={getI18nText('close')}\n onClick={$onCloseClick}\n use='tertiary'\n theme={theme === 'accent' ? 'muted' : 'invert'}\n size='m'\n addonLeft={CloseIcon}\n type='button'\n />\n )}\n <Children />\n </SFeaturePopover>\n </Animation>\n </Popper.Popper>,\n );\n }\n}\n\nfunction Spot(props: IRootComponentProps & FeaturePopoverSpotProps) {\n const SSpot = Root;\n\n const { styles, visible } = props;\n\n if (!visible) return null;\n\n return sstyled(styles)(<SSpot render={Box} />);\n}\n\nexport default createComponent(\n FeaturePopover,\n {\n Trigger: Trigger,\n Popper: FeaturePopoverPopper,\n Spot,\n },\n // @ts-ignore\n { parent: Popper },\n) as FeaturePopoverComponent;\n"],"mappings":";;;;;;;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAHA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,EAAA,GAAAH,sBAAA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GAAAC,OAAA,cAEc,IAAAC,qBAAe,EAC5B7G,cAAc,EACd;EACE0D,OAAO,EAAEA,OAAO;EAChBf,MAAM,EAAEwB,oBAAoB;EAC5BmC,IAAI,EAAJA;AACF,CAAC;AACD;AACA;EAAEQ,MAAM,EAAEnE;AAAO,CACnB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.js","names":["_core","require","_baseComponents","_button","_interopRequireDefault","_assignProps4","_i18nEnhance","_m","_react","_intergalacticDynamicLocales","_excluded","style","sstyled","insert","stylePopper","enhance","i18nEnhance","localizedMessages","FeaturePopover","_Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_callSuper2","concat","_defineProperty2","name","enabled","visible","handlers","e","_inherits2","_createClass2","key","value","uncontrolledProps","getPopperProps","_this$asProps","asProps","getI18nText","theme","$onCloseClick","handleCloseClick","getSpotProps","_this$asProps2","render","_ref4","_this$asProps3","styles","forwardRef","onVisibleChange","_this$asProps3$modifi","modifiers","other","_objectWithoutProperties2","createElement","Popper","cn","_objectSpread2","callAllEventHandlers","handleVisibleChange","_toConsumableArray2","defaultModifiers","Component","offset","placement","defaultVisible","onOutsideClick","interaction","i18n","locale","Trigger","_ref8","_ref","arguments[0]","_ref5","Children","STrigger","assignProps","Box","FeaturePopoverPopper","_Component2","_ref2","_ref6","SFeaturePopover","SClose","Button","_this$asProps4","closeIcon","duration","animationsDisabled","zIndex","ariaLabel","ariaDescribedBy","ariaLabelledby","title","_this$asProps4$autoFo","autoFocus","disableEnforceFocus","tabIndex","role","Animation","CloseIcon","Spot","props","_ref3","_ref7","SSpot","_default","exports","createComponent","parent"],"sources":["../../src/FeaturePopover.tsx"],"sourcesContent":["import { Box, Popper, Animation } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport CloseIcon from '@semcore/icon/Close/m';\nimport React from 'react';\n\nimport type {\n FeaturePopoverProps,\n FeaturePopoverComponent,\n FeaturePopoverSpotProps,\n FeaturePopoverPopperProps,\n FeaturePopoverPopperInnerProps,\n} from './FeaturePopover.type';\nimport style from './style/feature-popover.shadow.css';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nconst stylePopper = sstyled.css`\n @keyframes enter {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes exit {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-10px);\n }\n }\n`;\n\nconst enhance = [\n i18nEnhance(localizedMessages),\n] as const;\n\nclass FeaturePopover extends Component<FeaturePopoverProps, {}, {}, typeof enhance> {\n static displayName = 'FeaturePopover';\n static style = style;\n static defaultProps = {\n offset: [0, 12],\n placement: 'bottom-start',\n defaultVisible: false,\n onOutsideClick: () => false,\n interaction: 'none',\n i18n: localizedMessages,\n locale: 'en',\n theme: 'accent',\n };\n\n static enhance = enhance;\n\n defaultModifiers = [\n {\n name: 'flip',\n enabled: false,\n },\n ];\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n handleVisibleChange = (visible: boolean) => {\n this.handlers.visible(visible);\n };\n\n handleCloseClick = (e: React.SyntheticEvent<HTMLButtonElement>) => {\n this.handlers.visible(false, e);\n };\n\n getPopperProps() {\n const { visible, getI18nText, theme } = this.asProps;\n return {\n visible,\n $onCloseClick: this.handleCloseClick,\n getI18nText,\n theme,\n };\n }\n\n getSpotProps() {\n const { visible, theme } = this.asProps;\n return { visible, theme };\n }\n\n render() {\n const { styles, forwardRef, onVisibleChange, modifiers = [], ...other } = this.asProps;\n\n return sstyled(styles)(\n <Popper\n ref={forwardRef}\n onVisibleChange={callAllEventHandlers(onVisibleChange, this.handleVisibleChange)}\n modifiers={[...this.defaultModifiers, ...modifiers]}\n {...other}\n />,\n );\n }\n}\n\nfunction Trigger({ Children, styles }: IRootComponentProps) {\n const STrigger = Root;\n return sstyled(styles)(\n <STrigger render={Popper.Trigger} tag={Box} aria-haspopup={false}>\n <Children />\n </STrigger>,\n );\n}\n\nclass FeaturePopoverPopper extends Component<FeaturePopoverPopperProps, {}, {}, [], FeaturePopoverPopperInnerProps> {\n static defaultProps = {\n closeIcon: false,\n duration: 200,\n };\n\n render() {\n const SFeaturePopover = Root;\n const SClose = Button;\n const {\n Children,\n styles,\n visible,\n closeIcon,\n duration,\n $onCloseClick,\n animationsDisabled,\n getI18nText,\n zIndex,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledby,\n title,\n theme,\n autoFocus = true,\n } = this.asProps;\n\n return sstyled(styles)(\n <Popper.Popper\n disableEnforceFocus\n zIndex={zIndex}\n tabIndex={0}\n autoFocus={autoFocus}\n role='dialog'\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n title={title}\n >\n <Animation\n visible={visible}\n duration={duration}\n keyframes={[stylePopper['@enter'], stylePopper['@exit']]}\n initialAnimation\n animationsDisabled={animationsDisabled}\n >\n <SFeaturePopover\n render={Box}\n __excludeProps={['aria-label', 'aria-describedBy', 'title']}\n >\n {closeIcon && (\n <SClose\n aria-label={getI18nText('close')}\n onClick={$onCloseClick}\n use='tertiary'\n theme={theme === 'accent' ? 'muted' : 'invert'}\n size='m'\n addonLeft={CloseIcon}\n type='button'\n />\n )}\n <Children />\n </SFeaturePopover>\n </Animation>\n </Popper.Popper>,\n );\n }\n}\n\nfunction Spot(props: IRootComponentProps & FeaturePopoverSpotProps) {\n const SSpot = Root;\n\n const { styles, visible } = props;\n\n if (!visible) return null;\n\n return sstyled(styles)(<SSpot render={Box} />);\n}\n\nexport default createComponent(\n FeaturePopover,\n {\n Trigger: Trigger,\n Popper: FeaturePopoverPopper,\n Spot,\n },\n // @ts-ignore\n { parent: Popper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Aa;QAAA,OAClB,UAAU;QAAA,SACPD,KAAK,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ;QAAA,QACzC,GAAG;QAAA,aACG8D,aAAS;QAAA,QACf;MAAQ,EACd,CACF,eACDnG,MAAA,YAAAoD,aAAA,CAACqB,QAAQ,EAAAO,KAAA,CAAA1B,EAAA,gBAAE,CACI,CACR,CACE,CAAC;IAEpB;EAAC;AAAA,EAlEgCM,eAAS;AAAA,IAAAtC,gBAAA,aAAtCuD,oBAAoB,kBACF;EACpBQ,SAAS,EAAE,KAAK;EAChBC,QAAQ,EAAE;AACZ,CAAC;AAiEH,SAASc,IAAIA,CAACC,KAAoD,EAAE;EAAA,IAAAC,KAAA,GAAA/B,YAAA;IAAAgC,KAAA;EAClE,IAAMC,KAAK,GAM2B5B,mBAAG;EAJzC,IAAQ/B,MAAM,GAAcwD,KAAK,CAAzBxD,MAAM;IAAEpB,OAAO,GAAK4E,KAAK,CAAjB5E,OAAO;EAEvB,IAAI,CAACA,OAAO,EAAE,OAAO,IAAI;EAEzB,OAAA8E,KAAA,GAAO,IAAAnG,aAAO,EAACyC,MAAM,CAAC,eAAC7C,MAAA,YAAAoD,aAAA,CAACoD,KAAK,EAAAD,KAAA,CAAAjD,EAAA,cAAAC,cAAA,qBAAA/D,KAAA,CAAAmF,WAAA,MAAA2B,KAAA,GAAe,CAAC;AAC/C;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEc,IAAAC,qBAAe,EAC5BjG,cAAc,EACd;EACE0D,OAAO,EAAEA,OAAO;EAChBf,MAAM,EAAEwB,oBAAoB;EAC5BuB,IAAI,EAAJA;AACF,CAAC;AACD;AACA;EAAEQ,MAAM,EAAEvD;AAAO,CACnB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n OutsideClickProps,\n PortalProps,\n Box, PopperContext, PopperPopperProps, Placement, Popper } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\nimport type React from 'react';\n\n/**\n * Popper must have an accessible names (aria-group-name).\n */\ntype AriaProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\nexport type FeaturePopoverPopperProps = PopperPopperProps & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type FeaturePopoverPopperInnerProps = {\n theme: FeaturePopoverProps['theme'];\n\n visible: boolean;\n\n $onCloseClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;\n animationsDisabled: boolean;\n getI18nText: (message: string, opts?: Record<string, unknown>) => string;\n autofocus: boolean;\n};\n\nexport type FeaturePopoverContext = PopperContext & {\n getSpotProps: PropGetterFn;\n};\n\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\nexport type FeaturePopoverProps = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n};\n\nexport type FeaturePopoverTriggerProps = BoxProps & {\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverSpotProps = {\n visible?: boolean;\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverComponent = Intergalactic.Component<'div', FeaturePopoverProps, FeaturePopoverContext> & {\n Trigger: Intergalactic.Component<typeof Popper.Trigger, FeaturePopoverTriggerProps>;\n Popper: Intergalactic.Component<'div', FeaturePopoverPopperProps & AriaProps>;\n Spot: Intergalactic.Component<typeof Box, FeaturePopoverSpotProps>;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n eventInteraction, Flex,\n OutsideClickProps,\n PortalProps,\n} from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\nimport type { Box } from '@semcore/flex-box';\nimport type { PopperContext, PopperPopperProps, Placement } from '@semcore/popper';\nimport type Popper from '@semcore/popper';\nimport type React from 'react';\n\n/**\n * Popper must have an accessible names (aria-group-name).\n */\ntype AriaProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\n/** @deprecated */\nexport interface IFeaturePopoverPopperProps extends FeaturePopoverPopperProps, UnknownProperties {}\nexport type FeaturePopoverPopperProps = PopperPopperProps & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type FeaturePopoverPopperInnerProps = {\n theme: FeaturePopoverProps['theme'];\n\n visible: boolean;\n\n $onCloseClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;\n animationsDisabled: boolean;\n getI18nText: (message: string, opts?: Record<string, unknown>) => string;\n};\n\n/** @deprecated */\nexport interface IFeaturePopoverContext extends FeaturePopoverContext, UnknownProperties {}\nexport type FeaturePopoverContext = PopperContext & {\n getSpotProps: PropGetterFn;\n};\n\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n /**\n * If set, popper will be placed near the place mouse cursor entered the trigger\n * @deprecated\n */\n cursorAnchoring?: boolean;\n\n popperMargin?: number;\n\n /**\n * You shouldn't change an interaction in FeaturePopover. Comes from a Popper component.\n * @deprecated\n * @default none\n */\n interaction?: 'click' | 'hover' | 'focus' | 'none' | eventInteraction;\n /**\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n * @default false */\n defaultVisible?: boolean;\n /**\n * Disabled focus trap, autofocus and focus return\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n */\n disableEnforceFocus?: boolean;\n /**\n * If enabled, after reaching the end of popper the browser focus goes to the start of popper and vice versa.\n * If disabled, after reading the end of popper the browser focus returns to trigger and popper is being closed.\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n * @default `true` (`false` in Tooltip)\n */\n focusLoop?: boolean;\n };\n\nexport type FeaturePopoverProps = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n};\n\nexport type FeaturePopoverTriggerProps = BoxProps & {\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverSpotProps = {\n visible?: boolean;\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverComponent = Intergalactic.Component<'div', FeaturePopoverProps, FeaturePopoverContext> & {\n Trigger: Intergalactic.Component<typeof Popper.Trigger, FeaturePopoverTriggerProps>;\n Popper: Intergalactic.Component<'div', FeaturePopoverPopperProps & AriaProps>;\n Spot: Intergalactic.Component<typeof Box, FeaturePopoverSpotProps>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -19,25 +19,25 @@ import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
19
19
  import CloseIcon from '@semcore/icon/Close/m';
20
20
  import React from 'react';
21
21
  /*!__reshadow-styles__:"./style/feature-popover.shadow.css"*/
22
- var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_1p59g{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1p59g{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1p59g_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1p59g_gg_._theme_neutral_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1p59g_gg_{position:relative}.___SClose_1p59g_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1p59g_gg_ .___SAddon_1p59g_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1p59g_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1p59g;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1p59g_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1p59g;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1p59g_gg_::after,.___SSpot_1p59g_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1p59g_gg_,.___SSpot_1p59g_gg_::before{animation-name:none}}", /*__inner_css_end__*/"1p59g_gg_"),
22
+ var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_1twzn{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1twzn{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1twzn_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1twzn_gg_._theme_neutral_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1twzn_gg_{position:relative}.___SClose_1twzn_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1twzn_gg_ .___SAddon_1twzn_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1twzn_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1twzn;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1twzn_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1twzn;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1twzn_gg_::after,.___SSpot_1twzn_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1twzn_gg_,.___SSpot_1twzn_gg_::before{animation-name:none}}", /*__inner_css_end__*/"1twzn_gg_"),
23
23
  /*__reshadow_css_end__*/
24
24
  {
25
- "__STrigger": "___STrigger_1p59g_gg_",
26
- "@showTrigger": "showTrigger_1p59g",
27
- "@scaleSizeAndHide": "scaleSizeAndHide_1p59g",
28
- "__SFeaturePopover": "___SFeaturePopover_1p59g_gg_",
29
- "_theme_accent": "_theme_accent_1p59g_gg_",
30
- "_theme_neutral": "_theme_neutral_1p59g_gg_",
31
- "__SClose": "___SClose_1p59g_gg_",
32
- "__SAddon": "___SAddon_1p59g_gg_",
33
- "__SSpot": "___SSpot_1p59g_gg_"
25
+ "__STrigger": "___STrigger_1twzn_gg_",
26
+ "@showTrigger": "showTrigger_1twzn",
27
+ "@scaleSizeAndHide": "scaleSizeAndHide_1twzn",
28
+ "__SFeaturePopover": "___SFeaturePopover_1twzn_gg_",
29
+ "_theme_accent": "_theme_accent_1twzn_gg_",
30
+ "_theme_neutral": "_theme_neutral_1twzn_gg_",
31
+ "__SClose": "___SClose_1twzn_gg_",
32
+ "__SAddon": "___SAddon_1twzn_gg_",
33
+ "__SSpot": "___SSpot_1twzn_gg_"
34
34
  });
35
35
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
36
- var stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1lkos{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1lkos{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"1lkos_gg_"),
36
+ var stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_196ly{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_196ly{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"196ly_gg_"),
37
37
  /*__reshadow_css_end__*/
38
38
  {
39
- "@enter": "enter_1lkos",
40
- "@exit": "exit_1lkos"
39
+ "@enter": "enter_196ly",
40
+ "@exit": "exit_196ly"
41
41
  });
42
42
  var enhance = [i18nEnhance(localizedMessages)];
43
43
  var FeaturePopover = /*#__PURE__*/function (_Component) {
@@ -140,28 +140,11 @@ function Trigger(_ref8) {
140
140
  }
141
141
  var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
142
142
  function FeaturePopoverPopper() {
143
- var _this2;
144
143
  _classCallCheck(this, FeaturePopoverPopper);
145
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
146
- args[_key2] = arguments[_key2];
147
- }
148
- _this2 = _callSuper(this, FeaturePopoverPopper, [].concat(args));
149
- _defineProperty(_this2, "popperRef", /*#__PURE__*/React.createRef());
150
- return _this2;
144
+ return _callSuper(this, FeaturePopoverPopper, arguments);
151
145
  }
152
146
  _inherits(FeaturePopoverPopper, _Component2);
153
147
  return _createClass(FeaturePopoverPopper, [{
154
- key: "componentDidMount",
155
- value: function componentDidMount() {
156
- var _this3 = this;
157
- if (this.asProps.autoFocus) {
158
- setTimeout(function () {
159
- var _this3$popperRef$curr;
160
- (_this3$popperRef$curr = _this3.popperRef.current) === null || _this3$popperRef$curr === void 0 || _this3$popperRef$curr.focus();
161
- }, 0);
162
- }
163
- }
164
- }, {
165
148
  key: "render",
166
149
  value: function render() {
167
150
  var _ref2 = this.asProps,
@@ -182,12 +165,14 @@ var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
182
165
  ariaDescribedBy = _this$asProps4['aria-describedby'],
183
166
  ariaLabelledby = _this$asProps4['aria-labelledby'],
184
167
  title = _this$asProps4.title,
185
- theme = _this$asProps4.theme;
168
+ theme = _this$asProps4.theme,
169
+ _this$asProps4$autoFo = _this$asProps4.autoFocus,
170
+ autoFocus = _this$asProps4$autoFo === void 0 ? true : _this$asProps4$autoFo;
186
171
  return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(Popper.Popper, {
187
- ref: this.popperRef,
188
172
  disableEnforceFocus: true,
189
173
  zIndex: zIndex,
190
174
  tabIndex: 0,
175
+ autoFocus: autoFocus,
191
176
  role: "dialog",
192
177
  "aria-describedby": ariaDescribedBy,
193
178
  "aria-label": ariaLabel,
@@ -215,8 +200,7 @@ var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
215
200
  }(Component);
216
201
  _defineProperty(FeaturePopoverPopper, "defaultProps", {
217
202
  closeIcon: false,
218
- duration: 200,
219
- autoFocus: true
203
+ duration: 200
220
204
  });
221
205
  function Spot(props) {
222
206
  var _ref3 = arguments[0],
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.js","names":["Box","Popper","Animation","Button","createComponent","Root","Component","sstyled","callAllEventHandlers","i18nEnhance","CloseIcon","React","style","_sstyled","insert","localizedMessages","stylePopper","enhance","FeaturePopover","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","name","enabled","visible","handlers","e","_inherits","_createClass","key","value","uncontrolledProps","getPopperProps","_this$asProps","asProps","getI18nText","theme","$onCloseClick","handleCloseClick","getSpotProps","_this$asProps2","render","_ref4","_this$asProps3","styles","forwardRef","onVisibleChange","_this$asProps3$modifi","modifiers","other","_objectWithoutProperties","_excluded","createElement","cn","_objectSpread","handleVisibleChange","_toConsumableArray","defaultModifiers","offset","placement","defaultVisible","onOutsideClick","interaction","i18n","locale","Trigger","_ref8","_ref","arguments[0]","_ref5","Children","STrigger","_assignProps","FeaturePopoverPopper","_Component2","_this2","_len2","_key2","createRef","componentDidMount","_this3","autoFocus","setTimeout","_this3$popperRef$curr","popperRef","current","focus","_ref2","_ref6","SFeaturePopover","SClose","_this$asProps4","closeIcon","duration","animationsDisabled","zIndex","ariaLabel","ariaDescribedBy","ariaLabelledby","title","ref","disableEnforceFocus","tabIndex","role","_assignProps2","Spot","props","_ref3","_ref7","SSpot","_assignProps3","parent"],"sources":["../../src/FeaturePopover.tsx"],"sourcesContent":["import { Box, Popper, Animation } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport CloseIcon from '@semcore/icon/Close/m';\nimport React from 'react';\n\nimport type {\n FeaturePopoverProps,\n FeaturePopoverComponent,\n FeaturePopoverSpotProps,\n FeaturePopoverPopperProps,\n FeaturePopoverPopperInnerProps,\n} from './FeaturePopover.type';\nimport style from './style/feature-popover.shadow.css';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nconst stylePopper = sstyled.css`\n @keyframes enter {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes exit {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-10px);\n }\n }\n`;\n\nconst enhance = [\n i18nEnhance(localizedMessages),\n] as const;\n\nclass FeaturePopover extends Component<FeaturePopoverProps, typeof enhance, { visible: null }> {\n static displayName = 'FeaturePopover';\n static style = style;\n static defaultProps = {\n offset: [0, 12],\n placement: 'bottom-start',\n defaultVisible: false,\n onOutsideClick: () => false,\n interaction: 'none',\n i18n: localizedMessages,\n locale: 'en',\n theme: 'accent',\n };\n\n static enhance = enhance;\n\n defaultModifiers = [\n {\n name: 'flip',\n enabled: false,\n },\n ];\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n handleVisibleChange = (visible: boolean) => {\n this.handlers.visible(visible);\n };\n\n handleCloseClick = (e: React.SyntheticEvent<HTMLButtonElement>) => {\n this.handlers.visible(false, e);\n };\n\n getPopperProps() {\n const { visible, getI18nText, theme } = this.asProps;\n return {\n visible,\n $onCloseClick: this.handleCloseClick,\n getI18nText,\n theme,\n };\n }\n\n getSpotProps() {\n const { visible, theme } = this.asProps;\n return { visible, theme };\n }\n\n render() {\n const { styles, forwardRef, onVisibleChange, modifiers = [], ...other } = this.asProps;\n\n return sstyled(styles)(\n <Popper\n ref={forwardRef}\n onVisibleChange={callAllEventHandlers(onVisibleChange, this.handleVisibleChange)}\n modifiers={[...this.defaultModifiers, ...modifiers]}\n {...other}\n />,\n );\n }\n}\n\nfunction Trigger({ Children, styles }: IRootComponentProps) {\n const STrigger = Root;\n return sstyled(styles)(\n <STrigger render={Popper.Trigger} tag={Box} aria-haspopup={false}>\n <Children />\n </STrigger>,\n );\n}\n\nclass FeaturePopoverPopper extends Component<FeaturePopoverPopperProps, [], {}, FeaturePopoverPopperInnerProps> {\n static defaultProps = {\n closeIcon: false,\n duration: 200,\n autoFocus: true,\n };\n\n popperRef = React.createRef<HTMLDivElement>();\n\n componentDidMount() {\n if (this.asProps.autoFocus) {\n setTimeout(() => {\n this.popperRef.current?.focus();\n }, 0);\n }\n }\n\n render() {\n const SFeaturePopover = Root;\n const SClose = Button;\n const {\n Children,\n styles,\n visible,\n closeIcon,\n duration,\n $onCloseClick,\n animationsDisabled,\n getI18nText,\n zIndex,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledby,\n title,\n theme,\n } = this.asProps;\n\n return sstyled(styles)(\n <Popper.Popper\n ref={this.popperRef}\n disableEnforceFocus\n zIndex={zIndex}\n tabIndex={0}\n role='dialog'\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n title={title}\n >\n <Animation\n visible={visible}\n duration={duration}\n keyframes={[stylePopper['@enter'], stylePopper['@exit']]}\n initialAnimation\n animationsDisabled={animationsDisabled}\n >\n <SFeaturePopover\n render={Box}\n __excludeProps={['aria-label', 'aria-describedBy', 'title']}\n >\n {closeIcon && (\n <SClose\n aria-label={getI18nText('close')}\n onClick={$onCloseClick}\n use='tertiary'\n theme={theme === 'accent' ? 'muted' : 'invert'}\n size='m'\n addonLeft={CloseIcon}\n type='button'\n />\n )}\n <Children />\n </SFeaturePopover>\n </Animation>\n </Popper.Popper>,\n );\n }\n}\n\nfunction Spot(props: IRootComponentProps & FeaturePopoverSpotProps) {\n const SSpot = Root;\n\n const { styles, visible } = props;\n\n if (!visible) return null;\n\n return sstyled(styles)(<SSpot render={Box} />);\n}\n\nexport default createComponent(\n FeaturePopover,\n {\n Trigger: Trigger,\n Popper: FeaturePopoverPopper,\n Spot,\n },\n // @ts-ignore\n { parent: Popper },\n) as FeaturePopoverComponent;\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,GAAG,EAAEC,MAAM,EAAEC,SAAS,QAAQ,0BAA0B;AACjE,OAA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EAC5BgC,IAAI,EAAJA;AACF,CAAC;AACD;AACA;EAAEM,MAAM,EAAEvH;AAAO,CACnB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.js","names":["Box","Popper","Animation","Button","createComponent","Root","Component","sstyled","callAllEventHandlers","i18nEnhance","CloseIcon","React","style","_sstyled","insert","localizedMessages","stylePopper","enhance","FeaturePopover","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","name","enabled","visible","handlers","e","_inherits","_createClass","key","value","uncontrolledProps","getPopperProps","_this$asProps","asProps","getI18nText","theme","$onCloseClick","handleCloseClick","getSpotProps","_this$asProps2","render","_ref4","_this$asProps3","styles","forwardRef","onVisibleChange","_this$asProps3$modifi","modifiers","other","_objectWithoutProperties","_excluded","createElement","cn","_objectSpread","handleVisibleChange","_toConsumableArray","defaultModifiers","offset","placement","defaultVisible","onOutsideClick","interaction","i18n","locale","Trigger","_ref8","_ref","arguments[0]","_ref5","Children","STrigger","_assignProps","FeaturePopoverPopper","_Component2","_ref2","_ref6","SFeaturePopover","SClose","_this$asProps4","closeIcon","duration","animationsDisabled","zIndex","ariaLabel","ariaDescribedBy","ariaLabelledby","title","_this$asProps4$autoFo","autoFocus","disableEnforceFocus","tabIndex","role","_assignProps2","Spot","props","_ref3","_ref7","SSpot","_assignProps3","parent"],"sources":["../../src/FeaturePopover.tsx"],"sourcesContent":["import { Box, Popper, Animation } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport CloseIcon from '@semcore/icon/Close/m';\nimport React from 'react';\n\nimport type {\n FeaturePopoverProps,\n FeaturePopoverComponent,\n FeaturePopoverSpotProps,\n FeaturePopoverPopperProps,\n FeaturePopoverPopperInnerProps,\n} from './FeaturePopover.type';\nimport style from './style/feature-popover.shadow.css';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\n\nconst stylePopper = sstyled.css`\n @keyframes enter {\n from {\n opacity: 0;\n transform: translateX(-10px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @keyframes exit {\n from {\n opacity: 1;\n transform: translateX(0);\n }\n to {\n opacity: 0;\n transform: translateX(-10px);\n }\n }\n`;\n\nconst enhance = [\n i18nEnhance(localizedMessages),\n] as const;\n\nclass FeaturePopover extends Component<FeaturePopoverProps, {}, {}, typeof enhance> {\n static displayName = 'FeaturePopover';\n static style = style;\n static defaultProps = {\n offset: [0, 12],\n placement: 'bottom-start',\n defaultVisible: false,\n onOutsideClick: () => false,\n interaction: 'none',\n i18n: localizedMessages,\n locale: 'en',\n theme: 'accent',\n };\n\n static enhance = enhance;\n\n defaultModifiers = [\n {\n name: 'flip',\n enabled: false,\n },\n ];\n\n uncontrolledProps() {\n return {\n visible: null,\n };\n }\n\n handleVisibleChange = (visible: boolean) => {\n this.handlers.visible(visible);\n };\n\n handleCloseClick = (e: React.SyntheticEvent<HTMLButtonElement>) => {\n this.handlers.visible(false, e);\n };\n\n getPopperProps() {\n const { visible, getI18nText, theme } = this.asProps;\n return {\n visible,\n $onCloseClick: this.handleCloseClick,\n getI18nText,\n theme,\n };\n }\n\n getSpotProps() {\n const { visible, theme } = this.asProps;\n return { visible, theme };\n }\n\n render() {\n const { styles, forwardRef, onVisibleChange, modifiers = [], ...other } = this.asProps;\n\n return sstyled(styles)(\n <Popper\n ref={forwardRef}\n onVisibleChange={callAllEventHandlers(onVisibleChange, this.handleVisibleChange)}\n modifiers={[...this.defaultModifiers, ...modifiers]}\n {...other}\n />,\n );\n }\n}\n\nfunction Trigger({ Children, styles }: IRootComponentProps) {\n const STrigger = Root;\n return sstyled(styles)(\n <STrigger render={Popper.Trigger} tag={Box} aria-haspopup={false}>\n <Children />\n </STrigger>,\n );\n}\n\nclass FeaturePopoverPopper extends Component<FeaturePopoverPopperProps, {}, {}, [], FeaturePopoverPopperInnerProps> {\n static defaultProps = {\n closeIcon: false,\n duration: 200,\n };\n\n render() {\n const SFeaturePopover = Root;\n const SClose = Button;\n const {\n Children,\n styles,\n visible,\n closeIcon,\n duration,\n $onCloseClick,\n animationsDisabled,\n getI18nText,\n zIndex,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledby,\n title,\n theme,\n autoFocus = true,\n } = this.asProps;\n\n return sstyled(styles)(\n <Popper.Popper\n disableEnforceFocus\n zIndex={zIndex}\n tabIndex={0}\n autoFocus={autoFocus}\n role='dialog'\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n title={title}\n >\n <Animation\n visible={visible}\n duration={duration}\n keyframes={[stylePopper['@enter'], stylePopper['@exit']]}\n initialAnimation\n animationsDisabled={animationsDisabled}\n >\n <SFeaturePopover\n render={Box}\n __excludeProps={['aria-label', 'aria-describedBy', 'title']}\n >\n {closeIcon && (\n <SClose\n aria-label={getI18nText('close')}\n onClick={$onCloseClick}\n use='tertiary'\n theme={theme === 'accent' ? 'muted' : 'invert'}\n size='m'\n addonLeft={CloseIcon}\n type='button'\n />\n )}\n <Children />\n </SFeaturePopover>\n </Animation>\n </Popper.Popper>,\n );\n }\n}\n\nfunction Spot(props: IRootComponentProps & FeaturePopoverSpotProps) {\n const SSpot = Root;\n\n const { styles, visible } = props;\n\n if (!visible) return null;\n\n return sstyled(styles)(<SSpot render={Box} />);\n}\n\nexport default createComponent(\n FeaturePopover,\n {\n Trigger: Trigger,\n Popper: FeaturePopoverPopper,\n Spot,\n },\n // @ts-ignore\n { parent: Popper },\n) as FeaturePopoverComponent;\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,GAAG,EAAEC,MAAM,EAAEC,SAAS,QAAQ,0BAA0B;AACjE,OAAOC,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,IAA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AACZ,CAAC;AAiEH,SAASa,IAAIA,CAACC,KAAoD,EAAE;EAAA,IAAAC,KAAA,GAAA5B,YAAA;IAAA6B,KAAA;EAClE,IAAMC,KAAK,GAM2B3G,GAAG;EAJzC,IAAQqD,MAAM,GAAcmD,KAAK,CAAzBnD,MAAM;IAAEpB,OAAO,GAAKuE,KAAK,CAAjBvE,OAAO;EAEvB,IAAI,CAACA,OAAO,EAAE,OAAO,IAAI;EAEzB,OAAAyE,KAAA,GAAOnG,OAAO,CAAC8C,MAAM,CAAC,eAAC1C,KAAA,CAAAkD,aAAA,CAAC8C,KAAK,EAAAD,KAAA,CAAA5C,EAAA,UAAAC,aAAA,KAAA6C,aAAA,KAAAH,KAAA,GAAe,CAAC;AAC/C;AAEA,eAAerG,eAAe,CAC5Bc,cAAc,EACd;EACEwD,OAAO,EAAEA,OAAO;EAChBzE,MAAM,EAAEiF,oBAAoB;EAC5BqB,IAAI,EAAJA;AACF,CAAC;AACD;AACA;EAAEM,MAAM,EAAE5G;AAAO,CACnB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n OutsideClickProps,\n PortalProps,\n Box, PopperContext, PopperPopperProps, Placement, Popper } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\nimport type React from 'react';\n\n/**\n * Popper must have an accessible names (aria-group-name).\n */\ntype AriaProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\nexport type FeaturePopoverPopperProps = PopperPopperProps & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type FeaturePopoverPopperInnerProps = {\n theme: FeaturePopoverProps['theme'];\n\n visible: boolean;\n\n $onCloseClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;\n animationsDisabled: boolean;\n getI18nText: (message: string, opts?: Record<string, unknown>) => string;\n autofocus: boolean;\n};\n\nexport type FeaturePopoverContext = PopperContext & {\n getSpotProps: PropGetterFn;\n};\n\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n\n popperMargin?: number;\n };\n\nexport type FeaturePopoverProps = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n};\n\nexport type FeaturePopoverTriggerProps = BoxProps & {\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverSpotProps = {\n visible?: boolean;\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverComponent = Intergalactic.Component<'div', FeaturePopoverProps, FeaturePopoverContext> & {\n Trigger: Intergalactic.Component<typeof Popper.Trigger, FeaturePopoverTriggerProps>;\n Popper: Intergalactic.Component<'div', FeaturePopoverPopperProps & AriaProps>;\n Spot: Intergalactic.Component<typeof Box, FeaturePopoverSpotProps>;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"FeaturePopover.type.js","names":[],"sources":["../../src/FeaturePopover.type.ts"],"sourcesContent":["import type { Options as OptionsArrow } from '@popperjs/core/lib/modifiers/arrow';\nimport type { Options as OptionsComputeStyles } from '@popperjs/core/lib/modifiers/computeStyles';\nimport type { Options as OptionsEventListeners } from '@popperjs/core/lib/modifiers/eventListeners';\nimport type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';\nimport type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';\nimport type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';\nimport type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';\nimport type {\n AnimationProps,\n BoxProps,\n eventInteraction, Flex,\n OutsideClickProps,\n PortalProps,\n} from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';\nimport type { Box } from '@semcore/flex-box';\nimport type { PopperContext, PopperPopperProps, Placement } from '@semcore/popper';\nimport type Popper from '@semcore/popper';\nimport type React from 'react';\n\n/**\n * Popper must have an accessible names (aria-group-name).\n */\ntype AriaProps = Intergalactic.RequireAtLeastOne<{\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'title'?: string;\n}>;\n\n/** @deprecated */\nexport interface IFeaturePopoverPopperProps extends FeaturePopoverPopperProps, UnknownProperties {}\nexport type FeaturePopoverPopperProps = PopperPopperProps & {\n /**\n * The property responsible for the visibility of the closing icon\n * @default false\n */\n closeIcon?: boolean;\n /** Animation display duration in `ms`\n * @default 200\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type FeaturePopoverPopperInnerProps = {\n theme: FeaturePopoverProps['theme'];\n\n visible: boolean;\n\n $onCloseClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;\n animationsDisabled: boolean;\n getI18nText: (message: string, opts?: Record<string, unknown>) => string;\n};\n\n/** @deprecated */\nexport interface IFeaturePopoverContext extends FeaturePopoverContext, UnknownProperties {}\nexport type FeaturePopoverContext = PopperContext & {\n getSpotProps: PropGetterFn;\n};\n\nexport type FPPopperProps = OutsideClickProps &\n PortalProps &\n UniqueIDProps &\n AnimationProps & {\n /**\n * Popper can have different positioning options\n * @default absolute\n */\n strategy?: PositioningStrategy;\n /**\n * Modifiers for popper.js\n */\n modifiers?: Array<Partial<Modifier<any, any>>>;\n /** Timer to show and hide the popper */\n timeout?: number | [number, number];\n /** PopperJS modifier settings for popper indent */\n offset?: Partial<OptionsOffset> | number | [number, number];\n /** PopperJS modifier settings for finding borders */\n preventOverflow?: Partial<OptionsPreventOverflow>;\n /** PopperJS modifier settings responsible for the arrow */\n arrow?: Partial<OptionsArrow>;\n /** PopperJS modifier settings responsible for turning the popper when there is not enough space */\n flip?: Partial<OptionsFlip>;\n /** PopperJS modifier settings for applying styles */\n computeStyles?: Partial<OptionsComputeStyles>;\n /** PopperJS modifier settings responsible for subscribing to global events */\n eventListeners?: Partial<OptionsEventListeners>;\n /** @ignore */\n onFirstUpdate?: Options['onFirstUpdate'];\n /**\n * Flag for disable Popover (if true, it will close Popper and it will not respond to handlers)\n * @default false\n */\n disabled?: boolean;\n /**\n * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.\n */\n explicitTriggerSet?: boolean;\n /**\n * If set, popper will be placed near the place mouse cursor entered the trigger\n * @deprecated\n */\n cursorAnchoring?: boolean;\n\n popperMargin?: number;\n\n /**\n * You shouldn't change an interaction in FeaturePopover. Comes from a Popper component.\n * @deprecated\n * @default none\n */\n interaction?: 'click' | 'hover' | 'focus' | 'none' | eventInteraction;\n /**\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n * @default false */\n defaultVisible?: boolean;\n /**\n * Disabled focus trap, autofocus and focus return\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n */\n disableEnforceFocus?: boolean;\n /**\n * If enabled, after reaching the end of popper the browser focus goes to the start of popper and vice versa.\n * If disabled, after reading the end of popper the browser focus returns to trigger and popper is being closed.\n * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.\n * @deprecated\n * @default `true` (`false` in Tooltip)\n */\n focusLoop?: boolean;\n };\n\nexport type FeaturePopoverProps = FPPopperProps & {\n /** Popper visibility value */\n visible?: boolean;\n /** Function called when visibility changes */\n onVisibleChange?: (visible: boolean, e?: Event) => boolean | void;\n /**\n * The position of the popper relative to the trigger that called it.\n * @default auto\n */\n placement?: Placement;\n /**\n * The theme of FeaturePopover\n * @default accent\n */\n theme?: 'accent' | 'neutral';\n};\n\nexport type FeaturePopoverTriggerProps = BoxProps & {\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverSpotProps = {\n visible?: boolean;\n theme?: FeaturePopoverProps['theme'];\n};\n\nexport type FeaturePopoverComponent = Intergalactic.Component<'div', FeaturePopoverProps, FeaturePopoverContext> & {\n Trigger: Intergalactic.Component<typeof Popper.Trigger, FeaturePopoverTriggerProps>;\n Popper: Intergalactic.Component<'div', FeaturePopoverPopperProps & AriaProps>;\n Spot: Intergalactic.Component<typeof Box, FeaturePopoverSpotProps>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -6,7 +6,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
6
6
  import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
7
  import _inherits from "@babel/runtime/helpers/esm/inherits";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
9
+ import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
10
10
  import { Popper, Box, Animation } from "@semcore/base-components";
11
11
  import Button from "@semcore/button";
12
12
  import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
@@ -20,33 +20,33 @@ var style = (
20
20
  /*__reshadow_css_start__*/
21
21
  (sstyled.insert(
22
22
  /*__inner_css_start__*/
23
- '@keyframes showTrigger_1p59g{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1p59g{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1p59g_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1p59g_gg_._theme_accent_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1p59g_gg_._theme_neutral_1p59g_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1p59g_gg_{position:relative}.___SClose_1p59g_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1p59g_gg_ .___SAddon_1p59g_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1p59g_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1p59g;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1p59g_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1p59g;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1p59g_gg_::after,.___SSpot_1p59g_gg_::before{content:"";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_accent_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1p59g_gg_._theme_neutral_1p59g_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1p59g_gg_,.___SSpot_1p59g_gg_::before{animation-name:none}}',
23
+ '@keyframes showTrigger_1twzn{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1twzn{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1twzn_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;box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07));position:relative}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px rgba(0, 21, 16, 0.07))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_{box-shadow:var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px color(display-p3 0.01753 0.08157 0.06372 / 0.07))}}}.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SFeaturePopover_1twzn_gg_._theme_accent_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SFeaturePopover_1twzn_gg_._theme_neutral_1twzn_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, rgb(26, 30, 26));color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949))}.___STrigger_1twzn_gg_{position:relative}.___SClose_1twzn_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1twzn_gg_ .___SAddon_1twzn_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1twzn_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1twzn;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1twzn_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1twzn;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_1twzn_gg_::after,.___SSpot_1twzn_gg_::before{content:"";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_accent_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-bg, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, color(display-p3 0.87005 0.8017 0.99841))}}}.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@supports (color:color(display-p3 0 0 0%)){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, rgb(225, 205, 255))}@media (color-gamut:p3){.___SSpot_1twzn_gg_._theme_neutral_1twzn_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, color(display-p3 0.87005 0.8017 0.99841))}}}@media (prefers-reduced-motion){.___SSpot_1twzn_gg_,.___SSpot_1twzn_gg_::before{animation-name:none}}',
24
24
  /*__inner_css_end__*/
25
- "1p59g_gg_"
25
+ "1twzn_gg_"
26
26
  ), /*__reshadow_css_end__*/
27
27
  {
28
- "__STrigger": "___STrigger_1p59g_gg_",
29
- "@showTrigger": "showTrigger_1p59g",
30
- "@scaleSizeAndHide": "scaleSizeAndHide_1p59g",
31
- "__SFeaturePopover": "___SFeaturePopover_1p59g_gg_",
32
- "_theme_accent": "_theme_accent_1p59g_gg_",
33
- "_theme_neutral": "_theme_neutral_1p59g_gg_",
34
- "__SClose": "___SClose_1p59g_gg_",
35
- "__SAddon": "___SAddon_1p59g_gg_",
36
- "__SSpot": "___SSpot_1p59g_gg_"
28
+ "__STrigger": "___STrigger_1twzn_gg_",
29
+ "@showTrigger": "showTrigger_1twzn",
30
+ "@scaleSizeAndHide": "scaleSizeAndHide_1twzn",
31
+ "__SFeaturePopover": "___SFeaturePopover_1twzn_gg_",
32
+ "_theme_accent": "_theme_accent_1twzn_gg_",
33
+ "_theme_neutral": "_theme_neutral_1twzn_gg_",
34
+ "__SClose": "___SClose_1twzn_gg_",
35
+ "__SAddon": "___SAddon_1twzn_gg_",
36
+ "__SSpot": "___SSpot_1twzn_gg_"
37
37
  })
38
38
  );
39
39
  var stylePopper = (
40
40
  /*__reshadow_css_start__*/
41
41
  (sstyled.insert(
42
42
  /*__inner_css_start__*/
43
- "@keyframes enter_1lkos{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1lkos{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}",
43
+ "@keyframes enter_196ly{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_196ly{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}",
44
44
  /*__inner_css_end__*/
45
- "1lkos_gg_"
45
+ "196ly_gg_"
46
46
  ), /*__reshadow_css_end__*/
47
47
  {
48
- "@enter": "enter_1lkos",
49
- "@exit": "exit_1lkos"
48
+ "@enter": "enter_196ly",
49
+ "@exit": "exit_196ly"
50
50
  })
51
51
  );
52
52
  var enhance = [i18nEnhance(localizedMessages)];
@@ -137,39 +137,22 @@ function Trigger(_ref8) {
137
137
  }
138
138
  var FeaturePopoverPopper = /* @__PURE__ */ (function(_Component2) {
139
139
  function FeaturePopoverPopper2() {
140
- var _this2;
141
140
  _classCallCheck(this, FeaturePopoverPopper2);
142
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
143
- args[_key2] = arguments[_key2];
144
- }
145
- _this2 = _callSuper(this, FeaturePopoverPopper2, [].concat(args));
146
- _defineProperty(_this2, "popperRef", /* @__PURE__ */ React.createRef());
147
- return _this2;
141
+ return _callSuper(this, FeaturePopoverPopper2, arguments);
148
142
  }
149
143
  _inherits(FeaturePopoverPopper2, _Component2);
150
144
  return _createClass(FeaturePopoverPopper2, [{
151
- key: "componentDidMount",
152
- value: function componentDidMount() {
153
- var _this3 = this;
154
- if (this.asProps.autoFocus) {
155
- setTimeout(function() {
156
- var _this3$popperRef$curr;
157
- (_this3$popperRef$curr = _this3.popperRef.current) === null || _this3$popperRef$curr === void 0 || _this3$popperRef$curr.focus();
158
- }, 0);
159
- }
160
- }
161
- }, {
162
145
  key: "render",
163
146
  value: function render() {
164
147
  var _ref2 = this.asProps, _ref6;
165
148
  var SFeaturePopover = Box;
166
149
  var SClose = Button;
167
- var _this$asProps4 = this.asProps, Children = _this$asProps4.Children, styles = _this$asProps4.styles, visible = _this$asProps4.visible, closeIcon = _this$asProps4.closeIcon, duration = _this$asProps4.duration, $onCloseClick = _this$asProps4.$onCloseClick, animationsDisabled = _this$asProps4.animationsDisabled, getI18nText = _this$asProps4.getI18nText, zIndex = _this$asProps4.zIndex, ariaLabel = _this$asProps4["aria-label"], ariaDescribedBy = _this$asProps4["aria-describedby"], ariaLabelledby = _this$asProps4["aria-labelledby"], title = _this$asProps4.title, theme = _this$asProps4.theme;
150
+ var _this$asProps4 = this.asProps, Children = _this$asProps4.Children, styles = _this$asProps4.styles, visible = _this$asProps4.visible, closeIcon = _this$asProps4.closeIcon, duration = _this$asProps4.duration, $onCloseClick = _this$asProps4.$onCloseClick, animationsDisabled = _this$asProps4.animationsDisabled, getI18nText = _this$asProps4.getI18nText, zIndex = _this$asProps4.zIndex, ariaLabel = _this$asProps4["aria-label"], ariaDescribedBy = _this$asProps4["aria-describedby"], ariaLabelledby = _this$asProps4["aria-labelledby"], title = _this$asProps4.title, theme = _this$asProps4.theme, _this$asProps4$autoFo = _this$asProps4.autoFocus, autoFocus = _this$asProps4$autoFo === void 0 ? true : _this$asProps4$autoFo;
168
151
  return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(Popper.Popper, {
169
- ref: this.popperRef,
170
152
  disableEnforceFocus: true,
171
153
  zIndex,
172
154
  tabIndex: 0,
155
+ autoFocus,
173
156
  role: "dialog",
174
157
  "aria-describedby": ariaDescribedBy,
175
158
  "aria-label": ariaLabel,
@@ -197,8 +180,7 @@ var FeaturePopoverPopper = /* @__PURE__ */ (function(_Component2) {
197
180
  })(Component);
198
181
  _defineProperty(FeaturePopoverPopper, "defaultProps", {
199
182
  closeIcon: false,
200
- duration: 200,
201
- autoFocus: true
183
+ duration: 200
202
184
  });
203
185
  function Spot(props) {
204
186
  var _ref3 = arguments[0], _ref7;
@@ -5,9 +5,12 @@ import type { Options as OptionsFlip } from '@popperjs/core/lib/modifiers/flip';
5
5
  import type { Options as OptionsOffset } from '@popperjs/core/lib/modifiers/offset';
6
6
  import type { Options as OptionsPreventOverflow } from '@popperjs/core/lib/modifiers/preventOverflow';
7
7
  import type { Modifier, Options, PositioningStrategy } from '@popperjs/core/lib/types';
8
- import type { AnimationProps, BoxProps, OutsideClickProps, PortalProps, Box, PopperContext, PopperPopperProps, Placement, Popper } from '@semcore/base-components';
9
- import type { Intergalactic, PropGetterFn } from '@semcore/core';
8
+ import type { AnimationProps, BoxProps, eventInteraction, OutsideClickProps, PortalProps } from '@semcore/base-components';
9
+ import type { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';
10
10
  import type { UniqueIDProps } from '@semcore/core/lib/utils/uniqueID';
11
+ import type { Box } from '@semcore/flex-box';
12
+ import type { PopperContext, PopperPopperProps, Placement } from '@semcore/popper';
13
+ import type Popper from '@semcore/popper';
11
14
  import type React from 'react';
12
15
  /**
13
16
  * Popper must have an accessible names (aria-group-name).
@@ -17,6 +20,9 @@ type AriaProps = Intergalactic.RequireAtLeastOne<{
17
20
  'aria-labelledby'?: string;
18
21
  'title'?: string;
19
22
  }>;
23
+ /** @deprecated */
24
+ export interface IFeaturePopoverPopperProps extends FeaturePopoverPopperProps, UnknownProperties {
25
+ }
20
26
  export type FeaturePopoverPopperProps = PopperPopperProps & {
21
27
  /**
22
28
  * The property responsible for the visibility of the closing icon
@@ -36,8 +42,10 @@ export type FeaturePopoverPopperInnerProps = {
36
42
  $onCloseClick: (e: React.SyntheticEvent<HTMLButtonElement>) => void;
37
43
  animationsDisabled: boolean;
38
44
  getI18nText: (message: string, opts?: Record<string, unknown>) => string;
39
- autofocus: boolean;
40
45
  };
46
+ /** @deprecated */
47
+ export interface IFeaturePopoverContext extends FeaturePopoverContext, UnknownProperties {
48
+ }
41
49
  export type FeaturePopoverContext = PopperContext & {
42
50
  getSpotProps: PropGetterFn;
43
51
  };
@@ -76,7 +84,37 @@ export type FPPopperProps = OutsideClickProps & PortalProps & UniqueIDProps & An
76
84
  * If enabled, you will need to use setTrigger function from children rendering function to set popper trigger.
77
85
  */
78
86
  explicitTriggerSet?: boolean;
87
+ /**
88
+ * If set, popper will be placed near the place mouse cursor entered the trigger
89
+ * @deprecated
90
+ */
91
+ cursorAnchoring?: boolean;
79
92
  popperMargin?: number;
93
+ /**
94
+ * You shouldn't change an interaction in FeaturePopover. Comes from a Popper component.
95
+ * @deprecated
96
+ * @default none
97
+ */
98
+ interaction?: 'click' | 'hover' | 'focus' | 'none' | eventInteraction;
99
+ /**
100
+ * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.
101
+ * @deprecated
102
+ * @default false */
103
+ defaultVisible?: boolean;
104
+ /**
105
+ * Disabled focus trap, autofocus and focus return
106
+ * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.
107
+ * @deprecated
108
+ */
109
+ disableEnforceFocus?: boolean;
110
+ /**
111
+ * If enabled, after reaching the end of popper the browser focus goes to the start of popper and vice versa.
112
+ * If disabled, after reading the end of popper the browser focus returns to trigger and popper is being closed.
113
+ * You shouldn't change it in FeaturePopover as it should be controlled always. Comes from a Popper component.
114
+ * @deprecated
115
+ * @default `true` (`false` in Tooltip)
116
+ */
117
+ focusLoop?: boolean;
80
118
  };
81
119
  export type FeaturePopoverProps = FPPopperProps & {
82
120
  /** Popper visibility value */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/feature-popover",
3
3
  "description": "Semrush FeaturePopover Component",
4
- "version": "16.3.0",
4
+ "version": "16.3.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,11 +14,11 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/animation": "16.1.0",
18
- "@semcore/button": "16.1.0",
19
- "@semcore/flex-box": "16.1.0",
20
- "@semcore/icon": "16.8.0",
21
- "@semcore/popper": "16.1.0"
17
+ "@semcore/animation": "16.1.1",
18
+ "@semcore/button": "16.1.1",
19
+ "@semcore/flex-box": "16.1.1",
20
+ "@semcore/icon": "16.8.1",
21
+ "@semcore/popper": "16.1.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@semcore/base-components": "^16.6.0"
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@popperjs/core": "2.11.5",
33
- "@semcore/dropdown-menu": "16.3.0",
34
- "@semcore/button": "16.1.0",
33
+ "@semcore/dropdown-menu": "16.3.1",
35
34
  "@semcore/core": "16.6.0",
36
35
  "@semcore/testing-utils": "1.0.0",
37
- "@semcore/typography": "16.4.0"
36
+ "@semcore/typography": "16.4.1",
37
+ "@semcore/button": "16.1.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "pnpm semcore-builder && pnpm vite build"