@semcore/feature-popover 16.2.5-prerelease.1 → 17.0.0-prerelease.17

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.
@@ -1,16 +1,8 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
- import _createClass from "@babel/runtime/helpers/createClass";
6
- import _callSuper from "@babel/runtime/helpers/callSuper";
7
- import _inherits from "@babel/runtime/helpers/inherits";
8
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
2
  import { sstyled as _sstyled } from "@semcore/core";
10
3
  import { assignProps as _assignProps3 } from "@semcore/core";
11
4
  import { assignProps as _assignProps2 } from "@semcore/core";
12
5
  import { assignProps as _assignProps } from "@semcore/core";
13
- var _excluded = ["styles", "forwardRef", "onVisibleChange", "modifiers"];
14
6
  import { Box, Popper, Animation } from '@semcore/base-components';
15
7
  import Button from '@semcore/button';
16
8
  import { createComponent, Root, Component, sstyled } from '@semcore/core';
@@ -19,202 +11,199 @@ import i18nEnhance from '@semcore/core/lib/utils/enhances/i18nEnhance';
19
11
  import CloseIcon from '@semcore/icon/Close/m';
20
12
  import React from 'react';
21
13
  /*!__reshadow-styles__:"./style/feature-popover.shadow.css"*/
22
- var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_8w4e0{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_8w4e0{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_8w4e0_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, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___SFeaturePopover_8w4e0_gg_._theme_accent_8w4e0_gg_{background-color:var(--intergalactic-feature-popover-bg, #fce081);color:var(--intergalactic-text-primary, #191b23)}.___SFeaturePopover_8w4e0_gg_._theme_neutral_8w4e0_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, #1D113E);color:var(--intergalactic-text-primary-invert, #ffffff)}.___STrigger_8w4e0_gg_{position:relative}.___SClose_8w4e0_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_8w4e0_gg_ .___SAddon_8w4e0_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_8w4e0_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_8w4e0;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_8w4e0_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_8w4e0;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_8w4e0_gg_::after,.___SSpot_8w4e0_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_8w4e0_gg_._theme_accent_8w4e0_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_8w4e0_gg_._theme_accent_8w4e0_gg_::after{background-color:var(--intergalactic-feature-popover-bg, #fce081)}.___SSpot_8w4e0_gg_._theme_neutral_8w4e0_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, #00c192)}.___SSpot_8w4e0_gg_._theme_neutral_8w4e0_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, #00c192)}@media (prefers-reduced-motion){.___SSpot_8w4e0_gg_,.___SSpot_8w4e0_gg_::before{animation-name:none}}", /*__inner_css_end__*/"8w4e0_gg_"),
14
+ const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes showTrigger_qjplh{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_qjplh{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_qjplh_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, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___SFeaturePopover_qjplh_gg_._theme_accent_qjplh_gg_{background-color:var(--intergalactic-feature-popover-bg, #fce081);color:var(--intergalactic-text-primary, #191b23)}.___SFeaturePopover_qjplh_gg_._theme_neutral_qjplh_gg_{background-color:var(--intergalactic-feature-popover-bg-neutral, #1D113E);color:var(--intergalactic-text-primary-invert, #ffffff)}.___STrigger_qjplh_gg_{position:relative}.___SClose_qjplh_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_qjplh_gg_ .___SAddon_qjplh_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_qjplh_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_qjplh;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_qjplh_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_qjplh;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s}.___SSpot_qjplh_gg_::after,.___SSpot_qjplh_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_qjplh_gg_._theme_accent_qjplh_gg_::before{background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_qjplh_gg_._theme_accent_qjplh_gg_::after{background-color:var(--intergalactic-feature-popover-bg, #fce081)}.___SSpot_qjplh_gg_._theme_neutral_qjplh_gg_::before{background-color:var(--intergalactic-feature-popover-dot-neutral-outer-border, #00c192)}.___SSpot_qjplh_gg_._theme_neutral_qjplh_gg_::after{background-color:var(--intergalactic-feature-popover-dot-neutral, #00c192)}@media (prefers-reduced-motion){.___SSpot_qjplh_gg_,.___SSpot_qjplh_gg_::before{animation-name:none}}", /*__inner_css_end__*/"qjplh_gg_"),
23
15
  /*__reshadow_css_end__*/
24
16
  {
25
- "__STrigger": "___STrigger_8w4e0_gg_",
26
- "@showTrigger": "showTrigger_8w4e0",
27
- "@scaleSizeAndHide": "scaleSizeAndHide_8w4e0",
28
- "__SFeaturePopover": "___SFeaturePopover_8w4e0_gg_",
29
- "_theme_accent": "_theme_accent_8w4e0_gg_",
30
- "_theme_neutral": "_theme_neutral_8w4e0_gg_",
31
- "__SClose": "___SClose_8w4e0_gg_",
32
- "__SAddon": "___SAddon_8w4e0_gg_",
33
- "__SSpot": "___SSpot_8w4e0_gg_"
17
+ "__STrigger": "___STrigger_qjplh_gg_",
18
+ "@showTrigger": "showTrigger_qjplh",
19
+ "@scaleSizeAndHide": "scaleSizeAndHide_qjplh",
20
+ "__SFeaturePopover": "___SFeaturePopover_qjplh_gg_",
21
+ "_theme_accent": "_theme_accent_qjplh_gg_",
22
+ "_theme_neutral": "_theme_neutral_qjplh_gg_",
23
+ "__SClose": "___SClose_qjplh_gg_",
24
+ "__SAddon": "___SAddon_qjplh_gg_",
25
+ "__SSpot": "___SSpot_qjplh_gg_"
34
26
  });
35
27
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
36
- var stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_m87lu{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_m87lu{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"m87lu_gg_"),
28
+ const stylePopper = (/*__reshadow_css_start__*/sstyled.insert(/*__inner_css_start__*/"@keyframes enter_1vll6{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1vll6{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}", /*__inner_css_end__*/"1vll6_gg_"),
37
29
  /*__reshadow_css_end__*/
38
30
  {
39
- "@enter": "enter_m87lu",
40
- "@exit": "exit_m87lu"
31
+ "@enter": "enter_1vll6",
32
+ "@exit": "exit_1vll6"
41
33
  });
42
- var enhance = [i18nEnhance(localizedMessages)];
43
- var FeaturePopover = /*#__PURE__*/function (_Component) {
44
- function FeaturePopover() {
45
- var _this;
46
- _classCallCheck(this, FeaturePopover);
47
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
48
- args[_key] = arguments[_key];
49
- }
50
- _this = _callSuper(this, FeaturePopover, [].concat(args));
51
- _defineProperty(_this, "defaultModifiers", [{
34
+ const enhance = [i18nEnhance(localizedMessages)];
35
+ class FeaturePopover extends Component {
36
+ constructor(...args) {
37
+ super(...args);
38
+ _defineProperty(this, "defaultModifiers", [{
52
39
  name: 'flip',
53
40
  enabled: false
54
41
  }]);
55
- _defineProperty(_this, "handleVisibleChange", function (visible) {
56
- _this.handlers.visible(visible);
42
+ _defineProperty(this, "handleVisibleChange", visible => {
43
+ this.handlers.visible(visible);
57
44
  });
58
- _defineProperty(_this, "handleCloseClick", function (e) {
59
- _this.handlers.visible(false, e);
45
+ _defineProperty(this, "handleCloseClick", e => {
46
+ this.handlers.visible(false, e);
60
47
  });
61
- return _this;
62
48
  }
63
- _inherits(FeaturePopover, _Component);
64
- return _createClass(FeaturePopover, [{
65
- key: "uncontrolledProps",
66
- value: function uncontrolledProps() {
67
- return {
68
- visible: null
69
- };
70
- }
71
- }, {
72
- key: "getPopperProps",
73
- value: function getPopperProps() {
74
- var _this$asProps = this.asProps,
75
- visible = _this$asProps.visible,
76
- getI18nText = _this$asProps.getI18nText,
77
- theme = _this$asProps.theme;
78
- return {
79
- visible: visible,
80
- $onCloseClick: this.handleCloseClick,
81
- getI18nText: getI18nText,
82
- theme: theme
83
- };
84
- }
85
- }, {
86
- key: "getSpotProps",
87
- value: function getSpotProps() {
88
- var _this$asProps2 = this.asProps,
89
- visible = _this$asProps2.visible,
90
- theme = _this$asProps2.theme;
91
- return {
92
- visible: visible,
93
- theme: theme
94
- };
95
- }
96
- }, {
97
- key: "render",
98
- value: function render() {
99
- var _ref4;
100
- var _this$asProps3 = this.asProps,
101
- styles = _this$asProps3.styles,
102
- forwardRef = _this$asProps3.forwardRef,
103
- onVisibleChange = _this$asProps3.onVisibleChange,
104
- _this$asProps3$modifi = _this$asProps3.modifiers,
105
- modifiers = _this$asProps3$modifi === void 0 ? [] : _this$asProps3$modifi,
106
- other = _objectWithoutProperties(_this$asProps3, _excluded);
107
- return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Popper, _ref4.cn("Popper", _objectSpread({
108
- "ref": forwardRef,
109
- "onVisibleChange": callAllEventHandlers(onVisibleChange, this.handleVisibleChange),
110
- "modifiers": [].concat(_toConsumableArray(this.defaultModifiers), _toConsumableArray(modifiers))
111
- }, other)));
112
- }
113
- }]);
114
- }(Component);
49
+ uncontrolledProps() {
50
+ return {
51
+ visible: null
52
+ };
53
+ }
54
+ getPopperProps() {
55
+ const {
56
+ visible,
57
+ getI18nText,
58
+ theme
59
+ } = this.asProps;
60
+ return {
61
+ visible,
62
+ $onCloseClick: this.handleCloseClick,
63
+ getI18nText,
64
+ theme
65
+ };
66
+ }
67
+ getSpotProps() {
68
+ const {
69
+ visible,
70
+ theme
71
+ } = this.asProps;
72
+ return {
73
+ visible,
74
+ theme
75
+ };
76
+ }
77
+ render() {
78
+ var _ref4;
79
+ const {
80
+ styles,
81
+ forwardRef,
82
+ onVisibleChange,
83
+ modifiers = [],
84
+ ...other
85
+ } = this.asProps;
86
+ return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Popper, _ref4.cn("Popper", {
87
+ "ref": forwardRef,
88
+ "onVisibleChange": callAllEventHandlers(onVisibleChange, this.handleVisibleChange),
89
+ "modifiers": [...this.defaultModifiers, ...modifiers],
90
+ ...other
91
+ }));
92
+ }
93
+ }
115
94
  _defineProperty(FeaturePopover, "displayName", 'FeaturePopover');
116
95
  _defineProperty(FeaturePopover, "style", style);
117
96
  _defineProperty(FeaturePopover, "defaultProps", {
118
97
  offset: [0, 12],
119
98
  placement: 'bottom-start',
120
99
  defaultVisible: false,
121
- onOutsideClick: function onOutsideClick() {
122
- return false;
123
- },
100
+ onOutsideClick: () => false,
124
101
  interaction: 'none',
125
102
  i18n: localizedMessages,
126
103
  locale: 'en',
127
104
  theme: 'accent'
128
105
  });
129
106
  _defineProperty(FeaturePopover, "enhance", enhance);
130
- function Trigger(_ref8) {
107
+ function Trigger({
108
+ Children,
109
+ styles
110
+ }) {
131
111
  var _ref = arguments[0],
132
112
  _ref5;
133
- var Children = _ref8.Children,
134
- styles = _ref8.styles;
135
- var STrigger = Popper.Trigger;
136
- return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(STrigger, _ref5.cn("STrigger", _objectSpread({}, _assignProps({
137
- "tag": Box,
138
- "aria-haspopup": false
139
- }, _ref))), /*#__PURE__*/React.createElement(Children, _ref5.cn("Children", {})));
113
+ const STrigger = Popper.Trigger;
114
+ return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(STrigger, _ref5.cn("STrigger", {
115
+ ..._assignProps({
116
+ "tag": Box,
117
+ "aria-haspopup": false
118
+ }, _ref)
119
+ }), /*#__PURE__*/React.createElement(Children, _ref5.cn("Children", {})));
140
120
  }
141
- var FeaturePopoverPopper = /*#__PURE__*/function (_Component2) {
142
- function FeaturePopoverPopper() {
143
- _classCallCheck(this, FeaturePopoverPopper);
144
- return _callSuper(this, FeaturePopoverPopper, arguments);
121
+ class FeaturePopoverPopper extends Component {
122
+ constructor(...args) {
123
+ super(...args);
124
+ _defineProperty(this, "popperRef", /*#__PURE__*/React.createRef());
145
125
  }
146
- _inherits(FeaturePopoverPopper, _Component2);
147
- return _createClass(FeaturePopoverPopper, [{
148
- key: "render",
149
- value: function render() {
150
- var _ref2 = this.asProps,
151
- _ref6;
152
- var SFeaturePopover = Box;
153
- var SClose = Button;
154
- var _this$asProps4 = this.asProps,
155
- Children = _this$asProps4.Children,
156
- styles = _this$asProps4.styles,
157
- visible = _this$asProps4.visible,
158
- closeIcon = _this$asProps4.closeIcon,
159
- duration = _this$asProps4.duration,
160
- $onCloseClick = _this$asProps4.$onCloseClick,
161
- animationsDisabled = _this$asProps4.animationsDisabled,
162
- getI18nText = _this$asProps4.getI18nText,
163
- zIndex = _this$asProps4.zIndex,
164
- ariaLabel = _this$asProps4['aria-label'],
165
- ariaDescribedBy = _this$asProps4['aria-describedby'],
166
- ariaLabelledby = _this$asProps4['aria-labelledby'],
167
- title = _this$asProps4.title,
168
- theme = _this$asProps4.theme,
169
- _this$asProps4$autoFo = _this$asProps4.autoFocus,
170
- autoFocus = _this$asProps4$autoFo === void 0 ? true : _this$asProps4$autoFo;
171
- return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(Popper.Popper, {
172
- disableEnforceFocus: true,
173
- zIndex: zIndex,
174
- tabIndex: 0,
175
- autoFocus: autoFocus,
176
- role: "dialog",
177
- "aria-describedby": ariaDescribedBy,
178
- "aria-label": ariaLabel,
179
- "aria-labelledby": ariaLabelledby,
180
- title: title
181
- }, /*#__PURE__*/React.createElement(Animation, _ref6.cn("Animation", {
182
- "visible": visible,
183
- "duration": duration,
184
- "keyframes": [stylePopper['@enter'], stylePopper['@exit']],
185
- "initialAnimation": true,
186
- "animationsDisabled": animationsDisabled
187
- }), /*#__PURE__*/React.createElement(SFeaturePopover, _ref6.cn("SFeaturePopover", _objectSpread({}, _assignProps2({
188
- "__excludeProps": ['aria-label', 'aria-describedBy', 'title']
189
- }, _ref2))), closeIcon && /*#__PURE__*/React.createElement(SClose, _ref6.cn("SClose", {
190
- "aria-label": getI18nText('close'),
191
- "onClick": $onCloseClick,
192
- "use": 'tertiary',
193
- "theme": theme === 'accent' ? 'muted' : 'invert',
194
- "size": 'm',
195
- "addonLeft": CloseIcon,
196
- "type": 'button'
197
- })), /*#__PURE__*/React.createElement(Children, _ref6.cn("Children", {})))));
126
+ componentDidMount() {
127
+ if (this.asProps.autoFocus) {
128
+ setTimeout(() => {
129
+ this.popperRef.current?.focus();
130
+ }, 0);
198
131
  }
199
- }]);
200
- }(Component);
132
+ }
133
+ render() {
134
+ var _ref2 = this.asProps,
135
+ _ref6;
136
+ const SFeaturePopover = Box;
137
+ const SClose = Button;
138
+ const {
139
+ Children,
140
+ styles,
141
+ visible,
142
+ closeIcon,
143
+ duration,
144
+ $onCloseClick,
145
+ animationsDisabled,
146
+ getI18nText,
147
+ zIndex,
148
+ 'aria-label': ariaLabel,
149
+ 'aria-describedby': ariaDescribedBy,
150
+ 'aria-labelledby': ariaLabelledby,
151
+ title,
152
+ theme
153
+ } = this.asProps;
154
+ return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(Popper.Popper, {
155
+ ref: this.popperRef,
156
+ disableEnforceFocus: true,
157
+ zIndex: zIndex,
158
+ tabIndex: 0,
159
+ role: "dialog",
160
+ "aria-describedby": ariaDescribedBy,
161
+ "aria-label": ariaLabel,
162
+ "aria-labelledby": ariaLabelledby,
163
+ title: title
164
+ }, /*#__PURE__*/React.createElement(Animation, _ref6.cn("Animation", {
165
+ "visible": visible,
166
+ "duration": duration,
167
+ "keyframes": [stylePopper['@enter'], stylePopper['@exit']],
168
+ "initialAnimation": true,
169
+ "animationsDisabled": animationsDisabled
170
+ }), /*#__PURE__*/React.createElement(SFeaturePopover, _ref6.cn("SFeaturePopover", {
171
+ ..._assignProps2({
172
+ "__excludeProps": ['aria-label', 'aria-describedBy', 'title']
173
+ }, _ref2)
174
+ }), closeIcon && /*#__PURE__*/React.createElement(SClose, _ref6.cn("SClose", {
175
+ "aria-label": getI18nText('close'),
176
+ "onClick": $onCloseClick,
177
+ "use": 'tertiary',
178
+ "theme": theme === 'accent' ? 'muted' : 'invert',
179
+ "size": 'm',
180
+ "addonLeft": CloseIcon,
181
+ "type": 'button'
182
+ })), /*#__PURE__*/React.createElement(Children, _ref6.cn("Children", {})))));
183
+ }
184
+ }
201
185
  _defineProperty(FeaturePopoverPopper, "defaultProps", {
202
186
  closeIcon: false,
203
- duration: 200
187
+ duration: 200,
188
+ autoFocus: true
204
189
  });
205
- var Spot = function Spot(props) {
190
+ function Spot(props) {
206
191
  var _ref3 = arguments[0],
207
192
  _ref7;
208
- var SSpot = Box;
209
- var styles = props.styles,
210
- visible = props.visible;
193
+ const SSpot = Box;
194
+ const {
195
+ styles,
196
+ visible
197
+ } = props;
211
198
  if (!visible) return null;
212
- return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SSpot, _ref7.cn("SSpot", _objectSpread({}, _assignProps3({}, _ref3))));
213
- };
199
+ return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SSpot, _ref7.cn("SSpot", {
200
+ ..._assignProps3({}, _ref3)
201
+ }));
202
+ }
214
203
  export default createComponent(FeaturePopover, {
215
204
  Trigger: Trigger,
216
205
  Popper: FeaturePopoverPopper,
217
- Spot: Spot
206
+ Spot
218
207
  },
219
208
  // @ts-ignore
220
209
  {
@@ -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","_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\nconst 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,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAA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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,CAAC;AAED,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
+ {"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","constructor","args","_defineProperty","name","enabled","visible","handlers","e","uncontrolledProps","getPopperProps","getI18nText","theme","asProps","$onCloseClick","handleCloseClick","getSpotProps","render","_ref4","styles","forwardRef","onVisibleChange","modifiers","other","createElement","cn","handleVisibleChange","defaultModifiers","offset","placement","defaultVisible","onOutsideClick","interaction","i18n","locale","Trigger","Children","_ref","arguments[0]","_ref5","STrigger","_assignProps","FeaturePopoverPopper","createRef","componentDidMount","autoFocus","setTimeout","popperRef","current","focus","_ref2","_ref6","SFeaturePopover","SClose","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,OAAOC,MAAM,MAAM,iBAAiB;AAEpC,SAASC,eAAe,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,OAAOC,WAAW,MAAM,8CAA8C;AACtE,OAAOC,SAAS,MAAM,uBAAuB;AAC7C,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAU1B,SAASC,iBAAiB,QAAQ,gDAAgD;AAElF,MAAMC,WAAW,8BAAGT,OAAO,CAAAO,MAAI;AAAA;AAAA;EAAA;EAAA;AAAA,EAsB9B;AAED,MAAMG,OAAO,GAAG,CACdR,WAAW,CAACM,iBAAiB,CAAC,CACtB;AAEV,MAAMG,cAAc,SAASZ,SAAS,CAAyD;EAAAa,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,2BAgB1E,CACjB;MACEC,IAAI,EAAE,MAAM;MACZC,OAAO,EAAE;IACX,CAAC,CACF;IAAAF,eAAA,8BAQsBG,OAAgB,IAAK;MAC1C,IAAI,CAACC,QAAQ,CAACD,OAAO,CAACA,OAAO,CAAC;IAChC,CAAC;IAAAH,eAAA,2BAEmBK,CAA0C,IAAK;MACjE,IAAI,CAACD,QAAQ,CAACD,OAAO,CAAC,KAAK,EAAEE,CAAC,CAAC;IACjC,CAAC;EAAA;EAZDC,iBAAiBA,CAAA,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B,kBACF;EACpBY,SAAS,EAAE,KAAK;EAChBC,QAAQ,EAAE,GAAG;EACbV,SAAS,EAAE;AACb,CAAC;AA0EH,SAASsB,IAAIA,CAACC,KAAoD,EAAE;EAAA,IAAAC,KAAA,GAAA/B,YAAA;IAAAgC,KAAA;EAClE,MAAMC,KAAK,GAM2BzF,GAAG;EAJzC,MAAM;IAAEqC,MAAM;IAAEb;EAAQ,CAAC,GAAG8D,KAAK;EAEjC,IAAI,CAAC9D,OAAO,EAAE,OAAO,IAAI;EAEzB,OAAAgE,KAAA,GAAOjF,OAAO,CAAC8B,MAAM,CAAC,eAAC1B,KAAA,CAAA+B,aAAA,CAAC+C,KAAK,EAAAD,KAAA,CAAA7C,EAAA;IAAA,GAAA+C,aAAA,KAAAH,KAAA;EAAA,EAAe,CAAC;AAC/C;AAEA,eAAenF,eAAe,CAC5Bc,cAAc,EACd;EACEmC,OAAO,EAAEA,OAAO;EAChBpD,MAAM,EAAE2D,oBAAoB;EAC5ByB;AACF,CAAC;AACD;AACA;EAAEM,MAAM,EAAE1F;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 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":[]}
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":[]}
@@ -12,20 +12,20 @@ import sv from './sv.json';
12
12
  import tr from './tr.json';
13
13
  import vi from './vi.json';
14
14
  import zh from './zh.json';
15
- export var localizedMessages = {
16
- de: de,
17
- en: en,
18
- es: es,
19
- fr: fr,
20
- it: it,
21
- ja: ja,
22
- ko: ko,
23
- nl: nl,
24
- pt: pt,
25
- tr: tr,
26
- vi: vi,
27
- zh: zh,
28
- pl: pl,
29
- sv: sv
15
+ export const localizedMessages = {
16
+ de,
17
+ en,
18
+ es,
19
+ fr,
20
+ it,
21
+ ja,
22
+ ko,
23
+ nl,
24
+ pt,
25
+ tr,
26
+ vi,
27
+ zh,
28
+ pl,
29
+ sv
30
30
  };
31
31
  //# sourceMappingURL=__intergalactic-dynamic-locales.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","sv","tr","vi","zh","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bd,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFL,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","sv","tr","vi","zh","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,MAAMC,iBAAiB,GAAG;EAC/Bd,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFC,EAAE;EACFE,EAAE;EACFE,EAAE;EACFC,EAAE;EACFC,EAAE;EACFL,EAAE;EACFE;AACF,CAAC","ignoreList":[]}