labsense-ui-kit 1.3.4 → 1.3.6

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,8 +1,9 @@
1
1
  import React from 'react';
2
2
  interface UseModalProps {
3
3
  maxWidth?: string;
4
+ overflow?: string;
4
5
  }
5
- declare const useCustomModal: ({ maxWidth }: UseModalProps) => {
6
+ declare const useCustomModal: ({ maxWidth, overflow }: UseModalProps) => {
6
7
  isOpen: boolean;
7
8
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
8
9
  createModal: (content: React.ReactNode) => React.JSX.Element;
package/dist/index.js CHANGED
@@ -5455,7 +5455,8 @@ var Modal = function Modal(_ref4) {
5455
5455
  }, children));
5456
5456
  };
5457
5457
  var useCustomModal = function useCustomModal(_ref5) {
5458
- var maxWidth = _ref5.maxWidth;
5458
+ var maxWidth = _ref5.maxWidth,
5459
+ overflow = _ref5.overflow;
5459
5460
  var _useState = React.useState(false),
5460
5461
  isOpen = _useState[0],
5461
5462
  setIsOpen = _useState[1];
@@ -5472,7 +5473,8 @@ var useCustomModal = function useCustomModal(_ref5) {
5472
5473
  var createModal = function createModal(content) {
5473
5474
  return React__default.createElement(Modal, {
5474
5475
  isOpen: isOpen,
5475
- maxWidth: maxWidth
5476
+ maxWidth: maxWidth,
5477
+ overflow: overflow
5476
5478
  }, content);
5477
5479
  };
5478
5480
  return {
@@ -9350,7 +9352,10 @@ var Sidebar = function Sidebar(_ref17) {
9350
9352
  if (!container) {
9351
9353
  container = document.createElement('div');
9352
9354
  container.id = 'badge-portal-container';
9355
+ container.style.pointerEvents = 'none';
9353
9356
  document.body.appendChild(container);
9357
+ } else {
9358
+ container.style.pointerEvents = 'none';
9354
9359
  }
9355
9360
  return container;
9356
9361
  }),