labsense-ui-kit 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5430,27 +5430,32 @@ var useCopyToClipboard = function useCopyToClipboard() {
5430
5430
 
5431
5431
  var _templateObject, _templateObject2;
5432
5432
  var ModalOverlay = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 9999;\n backdrop-filter: blur(4px);\n"])));
5433
- var ModalContainer = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 90vh;\n max-width: ", ";\n overflow-y: auto;\n scrollbar-width: thin;\n"])), function (_ref) {
5433
+ var ModalContainer = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n background: ", ";\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n max-height: 90vh;\n max-width: ", ";\n overflow-y: ", ";\n scrollbar-width: thin;\n"])), function (_ref) {
5434
5434
  var theme = _ref.theme;
5435
5435
  return theme.vms.accent.light_1;
5436
5436
  }, function (_ref2) {
5437
5437
  var $maxWidth = _ref2.$maxWidth;
5438
5438
  return $maxWidth ? $maxWidth : '400px';
5439
+ }, function (_ref3) {
5440
+ var $overflowY = _ref3.$overflowY;
5441
+ return $overflowY ? $overflowY : 'auto';
5439
5442
  });
5440
- var Modal = function Modal(_ref3) {
5441
- var isOpen = _ref3.isOpen,
5442
- maxWidth = _ref3.maxWidth,
5443
- children = _ref3.children;
5443
+ var Modal = function Modal(_ref4) {
5444
+ var isOpen = _ref4.isOpen,
5445
+ maxWidth = _ref4.maxWidth,
5446
+ overflow = _ref4.overflow,
5447
+ children = _ref4.children;
5444
5448
  if (!isOpen) return null;
5445
5449
  return React__default.createElement(ModalOverlay, null, React__default.createElement(ModalContainer, {
5446
5450
  "$maxWidth": maxWidth,
5451
+ "$overflowY": overflow,
5447
5452
  onClick: function onClick(e) {
5448
5453
  return e.stopPropagation();
5449
5454
  }
5450
5455
  }, children));
5451
5456
  };
5452
- var useCustomModal = function useCustomModal(_ref4) {
5453
- var maxWidth = _ref4.maxWidth;
5457
+ var useCustomModal = function useCustomModal(_ref5) {
5458
+ var maxWidth = _ref5.maxWidth;
5454
5459
  var _useState = React.useState(false),
5455
5460
  isOpen = _useState[0],
5456
5461
  setIsOpen = _useState[1];