@luminati-io/uikit 3.0.14 → 3.0.16
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.
| 
         @@ -27143,7 +27143,7 @@ var StyledWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_la 
     | 
|
| 
       27143 
27143 
     | 
    
         
             
              displayName: "StyledWrapper",
         
     | 
| 
       27144 
27144 
     | 
    
         
             
              componentId: "sc-1nggvo0-0"
         
     | 
| 
       27145 
27145 
     | 
    
         
             
            })(["background-color:", ";border-radius:", ";display:grid;grid-tempalte-rows:1fr auto 1fr;font-family:", ";min-width:200px;max-width:", ";width:", ";"], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.white, _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['02'], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].font_family.sans, MODAL_WIDTHS.full, function (props) {
         
     | 
| 
       27146 
     | 
    
         
            -
              return MODAL_WIDTHS[props 
     | 
| 
      
 27146 
     | 
    
         
            +
              return MODAL_WIDTHS[props.$size];
         
     | 
| 
       27147 
27147 
     | 
    
         
             
            });
         
     | 
| 
       27148 
27148 
     | 
    
         
             
            var StyledHeaderWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
         
     | 
| 
       27149 
27149 
     | 
    
         
             
              padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['06'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['05'], " 0 ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['07']),
         
     | 
| 
         @@ -27158,14 +27158,18 @@ var StyledContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___defaul 
     | 
|
| 
       27158 
27158 
     | 
    
         
             
            }).withConfig({
         
     | 
| 
       27159 
27159 
     | 
    
         
             
              displayName: "StyledContentWrapper",
         
     | 
| 
       27160 
27160 
     | 
    
         
             
              componentId: "sc-1nggvo0-2"
         
     | 
| 
       27161 
     | 
    
         
            -
            })(["overflow-y:auto 
     | 
| 
      
 27161 
     | 
    
         
            +
            })(["overflow-y:auto;", " ", " ", ""], _theme__WEBPACK_IMPORTED_MODULE_4__["default"].scrollbars.thin, function (props) {
         
     | 
| 
      
 27162 
     | 
    
         
            +
              return props.$borders && props.$borders.top ? "border-top: 1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.gray_4, ";") : '';
         
     | 
| 
      
 27163 
     | 
    
         
            +
            }, function (props) {
         
     | 
| 
      
 27164 
     | 
    
         
            +
              return props.$borders && props.$borders.bottom ? "border-bottom: 1px solid ".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].color.gray_4, ";") : '';
         
     | 
| 
      
 27165 
     | 
    
         
            +
            });
         
     | 
| 
       27162 
27166 
     | 
    
         
             
            var StyledFooterWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
         
     | 
| 
       27163 
27167 
     | 
    
         
             
              padding: "".concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['04'], " ").concat(_theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['07'])
         
     | 
| 
       27164 
27168 
     | 
    
         
             
            }).withConfig({
         
     | 
| 
       27165 
27169 
     | 
    
         
             
              displayName: "StyledFooterWrapper",
         
     | 
| 
       27166 
27170 
     | 
    
         
             
              componentId: "sc-1nggvo0-3"
         
     | 
| 
       27167 
     | 
    
         
            -
            })([" 
     | 
| 
       27168 
     | 
    
         
            -
            var ModalBase = function  
     | 
| 
      
 27171 
     | 
    
         
            +
            })([""]);
         
     | 
| 
      
 27172 
     | 
    
         
            +
            var ModalBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
         
     | 
| 
       27169 
27173 
     | 
    
         
             
              var id = props.id,
         
     | 
| 
       27170 
27174 
     | 
    
         
             
                className = props.className,
         
     | 
| 
       27171 
27175 
     | 
    
         
             
                testId = props['data-testid'],
         
     | 
| 
         @@ -27173,15 +27177,23 @@ var ModalBase = function ModalBase(props) { 
     | 
|
| 
       27173 
27177 
     | 
    
         
             
                content = props.content,
         
     | 
| 
       27174 
27178 
     | 
    
         
             
                footer = props.footer,
         
     | 
| 
       27175 
27179 
     | 
    
         
             
                size = props.size,
         
     | 
| 
       27176 
     | 
    
         
            -
                shadow = props.shadow 
     | 
| 
      
 27180 
     | 
    
         
            +
                shadow = props.shadow,
         
     | 
| 
      
 27181 
     | 
    
         
            +
                _props$borders = props.borders,
         
     | 
| 
      
 27182 
     | 
    
         
            +
                borders = _props$borders === void 0 ? {
         
     | 
| 
      
 27183 
     | 
    
         
            +
                  bottom: true
         
     | 
| 
      
 27184 
     | 
    
         
            +
                } : _props$borders;
         
     | 
| 
       27177 
27185 
     | 
    
         
             
              return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledWrapper, {
         
     | 
| 
       27178 
27186 
     | 
    
         
             
                id: id,
         
     | 
| 
       27179 
27187 
     | 
    
         
             
                className: className,
         
     | 
| 
       27180 
     | 
    
         
            -
                size: size,
         
     | 
| 
      
 27188 
     | 
    
         
            +
                $size: size,
         
     | 
| 
       27181 
27189 
     | 
    
         
             
                box_shadow: shadow,
         
     | 
| 
       27182 
     | 
    
         
            -
                "data-testid": testId
         
     | 
| 
       27183 
     | 
    
         
            -
             
     | 
| 
       27184 
     | 
    
         
            -
            } 
     | 
| 
      
 27190 
     | 
    
         
            +
                "data-testid": testId,
         
     | 
| 
      
 27191 
     | 
    
         
            +
                ref: ref
         
     | 
| 
      
 27192 
     | 
    
         
            +
              }, header && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledHeaderWrapper, null, header), content && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledContentWrapper, {
         
     | 
| 
      
 27193 
     | 
    
         
            +
                $borders: borders
         
     | 
| 
      
 27194 
     | 
    
         
            +
              }, content), footer && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledFooterWrapper, null, footer));
         
     | 
| 
      
 27195 
     | 
    
         
            +
            });
         
     | 
| 
      
 27196 
     | 
    
         
            +
            ModalBase.displayName = 'ModalBase';
         
     | 
| 
       27185 
27197 
     | 
    
         
             
            ModalBase.propTypes = {
         
     | 
| 
       27186 
27198 
     | 
    
         
             
              size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md', 'lg', 'full']),
         
     | 
| 
       27187 
27199 
     | 
    
         
             
              shadow: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['none', 'sm', 'md', 'lg']),
         
     | 
| 
         @@ -27260,7 +27272,7 @@ __webpack_require__.r(__webpack_exports__); 
     | 
|
| 
       27260 
27272 
     | 
    
         | 
| 
       27261 
27273 
     | 
    
         | 
| 
       27262 
27274 
     | 
    
         | 
| 
       27263 
     | 
    
         
            -
            var General = function  
     | 
| 
      
 27275 
     | 
    
         
            +
            var General = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
         
     | 
| 
       27264 
27276 
     | 
    
         
             
              var id = props.id,
         
     | 
| 
       27265 
27277 
     | 
    
         
             
                className = props.className,
         
     | 
| 
       27266 
27278 
     | 
    
         
             
                title = props.title,
         
     | 
| 
         @@ -27297,9 +27309,11 @@ var General = function General(props) { 
     | 
|
| 
       27297 
27309 
     | 
    
         
             
                shadow: shadow,
         
     | 
| 
       27298 
27310 
     | 
    
         
             
                header: header,
         
     | 
| 
       27299 
27311 
     | 
    
         
             
                content: content,
         
     | 
| 
       27300 
     | 
    
         
            -
                footer: footer
         
     | 
| 
      
 27312 
     | 
    
         
            +
                footer: footer,
         
     | 
| 
      
 27313 
     | 
    
         
            +
                ref: ref
         
     | 
| 
       27301 
27314 
     | 
    
         
             
              });
         
     | 
| 
       27302 
     | 
    
         
            -
            };
         
     | 
| 
      
 27315 
     | 
    
         
            +
            });
         
     | 
| 
      
 27316 
     | 
    
         
            +
            General.displayName = 'General';
         
     | 
| 
       27303 
27317 
     | 
    
         
             
            General.propTypes = {
         
     | 
| 
       27304 
27318 
     | 
    
         
             
              title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
         
     | 
| 
       27305 
27319 
     | 
    
         
             
              subtitle: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
         
     | 
| 
         @@ -27471,7 +27485,7 @@ __webpack_require__.r(__webpack_exports__); 
     | 
|
| 
       27471 
27485 
     | 
    
         | 
| 
       27472 
27486 
     | 
    
         | 
| 
       27473 
27487 
     | 
    
         
             
            /*jslint react:true*/
         
     | 
| 
       27474 
     | 
    
         
            -
            var _excluded = ["show", "zIndex", "onOutsideClick"];
         
     | 
| 
      
 27488 
     | 
    
         
            +
            var _excluded = ["show", "zIndex", "onOutsideClick", "swallowOutsideClick"];
         
     | 
| 
       27475 
27489 
     | 
    
         
             
            function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
         
     | 
| 
       27476 
27490 
     | 
    
         
             
            function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
         
     | 
| 
       27477 
27491 
     | 
    
         
             
            function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
         
     | 
| 
         @@ -27494,6 +27508,7 @@ var withBackdrop = function withBackdrop(Comp) { 
     | 
|
| 
       27494 
27508 
     | 
    
         
             
                  _props$zIndex = props.zIndex,
         
     | 
| 
       27495 
27509 
     | 
    
         
             
                  zIndex = _props$zIndex === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.backdrop : _props$zIndex,
         
     | 
| 
       27496 
27510 
     | 
    
         
             
                  onOutsideClick = props.onOutsideClick,
         
     | 
| 
      
 27511 
     | 
    
         
            +
                  swallowOutsideClick = props.swallowOutsideClick,
         
     | 
| 
       27497 
27512 
     | 
    
         
             
                  restProps = _objectWithoutProperties(props, _excluded);
         
     | 
| 
       27498 
27513 
     | 
    
         
             
                var popperElement = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
         
     | 
| 
       27499 
27514 
     | 
    
         
             
                var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
         
     | 
| 
         @@ -27525,19 +27540,20 @@ var withBackdrop = function withBackdrop(Comp) { 
     | 
|
| 
       27525 
27540 
     | 
    
         
             
                }, [show]);
         
     | 
| 
       27526 
27541 
     | 
    
         
             
                var hideAndStopEvt = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
         
     | 
| 
       27527 
27542 
     | 
    
         
             
                  if (!visible) return;
         
     | 
| 
      
 27543 
     | 
    
         
            +
                  if (onOutsideClick) onOutsideClick(evt);
         
     | 
| 
      
 27544 
     | 
    
         
            +
                  if (!swallowOutsideClick) return;
         
     | 
| 
       27528 
27545 
     | 
    
         
             
                  evt.stopPropagation();
         
     | 
| 
       27529 
27546 
     | 
    
         
             
                  evt.preventDefault();
         
     | 
| 
       27530 
     | 
    
         
            -
             
     | 
| 
       27531 
     | 
    
         
            -
                }, [visible, onOutsideClick]);
         
     | 
| 
      
 27547 
     | 
    
         
            +
                }, [visible, swallowOutsideClick, onOutsideClick]);
         
     | 
| 
       27532 
27548 
     | 
    
         
             
                (0,_hooks__WEBPACK_IMPORTED_MODULE_5__.useOutsideClick)(popperElement.current, hideAndStopEvt);
         
     | 
| 
       27533 
27549 
     | 
    
         
             
                if (!mount) return null;
         
     | 
| 
       27534 
27550 
     | 
    
         
             
                return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PopupContainer, {
         
     | 
| 
       27535 
     | 
    
         
            -
                  zIndex: zIndex
         
     | 
| 
      
 27551 
     | 
    
         
            +
                  $zIndex: zIndex
         
     | 
| 
       27536 
27552 
     | 
    
         
             
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledBackdrop, {
         
     | 
| 
       27537 
     | 
    
         
            -
                  show: visible
         
     | 
| 
      
 27553 
     | 
    
         
            +
                  $show: visible
         
     | 
| 
       27538 
27554 
     | 
    
         
             
                }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CompContainer, {
         
     | 
| 
       27539 
     | 
    
         
            -
                  show: visible,
         
     | 
| 
       27540 
     | 
    
         
            -
                  zIndex: zIndex + 1
         
     | 
| 
      
 27555 
     | 
    
         
            +
                  $show: visible,
         
     | 
| 
      
 27556 
     | 
    
         
            +
                  $zIndex: zIndex + 1
         
     | 
| 
       27541 
27557 
     | 
    
         
             
                }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, _extends({
         
     | 
| 
       27542 
27558 
     | 
    
         
             
                  ref: popperElement
         
     | 
| 
       27543 
27559 
     | 
    
         
             
                }, restProps))));
         
     | 
| 
         @@ -27549,13 +27565,13 @@ var StyledBackdrop = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_l 
     | 
|
| 
       27549 
27565 
     | 
    
         
             
              displayName: "StyledBackdrop",
         
     | 
| 
       27550 
27566 
     | 
    
         
             
              componentId: "sc-upusus-0"
         
     | 
| 
       27551 
27567 
     | 
    
         
             
            })(["width:100%;height:100%;background-color:", ";opacity:", ";transition:opacity .15s linear;"], _theme__WEBPACK_IMPORTED_MODULE_3__["default"].color.black, function (props) {
         
     | 
| 
       27552 
     | 
    
         
            -
              return props 
     | 
| 
      
 27568 
     | 
    
         
            +
              return props.$show ? 0.5 : 0;
         
     | 
| 
       27553 
27569 
     | 
    
         
             
            });
         
     | 
| 
       27554 
27570 
     | 
    
         
             
            var PopupContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_2__.Box).withConfig({
         
     | 
| 
       27555 
27571 
     | 
    
         
             
              displayName: "PopupContainer",
         
     | 
| 
       27556 
27572 
     | 
    
         
             
              componentId: "sc-upusus-1"
         
     | 
| 
       27557 
27573 
     | 
    
         
             
            })(["position:realtive;position:fixed;top:0;right:0;bottom:0;left:0;z-index:", ";"], function (props) {
         
     | 
| 
       27558 
     | 
    
         
            -
              return props 
     | 
| 
      
 27574 
     | 
    
         
            +
              return props.$zIndex;
         
     | 
| 
       27559 
27575 
     | 
    
         
             
            });
         
     | 
| 
       27560 
27576 
     | 
    
         
             
            var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_2__.Flex).attrs({
         
     | 
| 
       27561 
27577 
     | 
    
         
             
              justify_content: 'center',
         
     | 
| 
         @@ -27564,11 +27580,11 @@ var CompContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_la 
     | 
|
| 
       27564 
27580 
     | 
    
         
             
              displayName: "CompContainer",
         
     | 
| 
       27565 
27581 
     | 
    
         
             
              componentId: "sc-upusus-2"
         
     | 
| 
       27566 
27582 
     | 
    
         
             
            })(["position:absolute;top:10vh;max-height:80vh;z-index:", ";opacity:", ";transform:translate(0,", ");transition:opacity 0.15s linear,transform 0.3s ease-out;"], function (props) {
         
     | 
| 
       27567 
     | 
    
         
            -
              return props 
     | 
| 
      
 27583 
     | 
    
         
            +
              return props.$zIndex;
         
     | 
| 
       27568 
27584 
     | 
    
         
             
            }, function (props) {
         
     | 
| 
       27569 
     | 
    
         
            -
              return props 
     | 
| 
      
 27585 
     | 
    
         
            +
              return props.$show ? 1 : 0;
         
     | 
| 
       27570 
27586 
     | 
    
         
             
            }, function (props) {
         
     | 
| 
       27571 
     | 
    
         
            -
              return props 
     | 
| 
      
 27587 
     | 
    
         
            +
              return props.$show ? '0' : '-25%';
         
     | 
| 
       27572 
27588 
     | 
    
         
             
            });
         
     | 
| 
       27573 
27589 
     | 
    
         
             
            /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (withBackdrop);
         
     | 
| 
       27574 
27590 
     | 
    
         |