indicator-ui 0.0.376 → 0.0.378

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/dist/index.js CHANGED
@@ -48781,11 +48781,13 @@ function useModalAnim() {
48781
48781
  smartPlacementOptions = options.smartPlacementOptions,
48782
48782
  backdropClassName = options.backdropClassName,
48783
48783
  _options$animeType = options.animeType,
48784
- animeType = _options$animeType === void 0 ? 'popover' : _options$animeType;
48784
+ animeType = _options$animeType === void 0 ? 'popover' : _options$animeType,
48785
+ _options$position = options.position,
48786
+ position = _options$position === void 0 ? 'fixed' : _options$position;
48785
48787
  var backdropRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
48786
48788
  var smartPlacementServices = (0,_useSmartPlacementResolver__WEBPACK_IMPORTED_MODULE_1__.useSmartPlacementResolver)(ref, _objectSpread({
48787
48789
  parentRef: targetRef,
48788
- position: 'fixed',
48790
+ position: position,
48789
48791
  alignX: 'left'
48790
48792
  }, smartPlacementOptions));
48791
48793
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
@@ -48904,7 +48906,7 @@ function useModalAnim() {
48904
48906
  function setInitStyle() {
48905
48907
  var obj = ref.current;
48906
48908
  if (obj) {
48907
- obj.style.position = 'fixed';
48909
+ obj.style.position = position;
48908
48910
  obj.style.visibility = 'hidden';
48909
48911
  }
48910
48912
  }