You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							68 lines
						
					
					
						
							2.3 KiB
						
					
					
				
			
		
		
	
	
							68 lines
						
					
					
						
							2.3 KiB
						
					
					
				| "use strict";
 | |
| 
 | |
| Object.defineProperty(exports, "__esModule", {
 | |
|   value: true
 | |
| });
 | |
| exports.default = void 0;
 | |
| 
 | |
| var _react = _interopRequireDefault(require("react"));
 | |
| 
 | |
| var _styledComponents = _interopRequireDefault(require("styled-components"));
 | |
| 
 | |
| var _designSystem = require("@adminjs/design-system");
 | |
| 
 | |
| var _allowOverride = _interopRequireDefault(require("../../../hoc/allow-override"));
 | |
| 
 | |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 | |
| 
 | |
| 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); }
 | |
| 
 | |
| const StyledWrapperWithFilter = (0, _styledComponents.default)(_designSystem.Box).withConfig({
 | |
|   displayName: "wrapper__StyledWrapperWithFilter",
 | |
|   componentId: "sc-1jcopgf-0"
 | |
| })(["& > ", "{background:", ";padding:", ";overflow:visible;}& > ", "{background:", ";padding:0 ", " ", ";}"], _designSystem.DrawerContent, ({
 | |
|   theme
 | |
| }) => theme.colors.white, ({
 | |
|   theme
 | |
| }) => theme.space.xxl, _designSystem.DrawerFooter, ({
 | |
|   theme
 | |
| }) => theme.colors.white, ({
 | |
|   theme
 | |
| }) => theme.space.xxl, ({
 | |
|   theme
 | |
| }) => theme.space.xxl);
 | |
| const StyledWrapper = (0, _styledComponents.default)(_designSystem.Box).withConfig({
 | |
|   displayName: "wrapper__StyledWrapper",
 | |
|   componentId: "sc-1jcopgf-1"
 | |
| })(["& ", "{background:", ";padding:", ";overflow:visible;}& ", "{background:", ";padding:0 ", " ", ";}"], _designSystem.DrawerContent, ({
 | |
|   theme
 | |
| }) => theme.colors.white, ({
 | |
|   theme
 | |
| }) => theme.space.xxl, _designSystem.DrawerFooter, ({
 | |
|   theme
 | |
| }) => theme.colors.white, ({
 | |
|   theme
 | |
| }) => theme.space.xxl, ({
 | |
|   theme
 | |
| }) => theme.space.xxl);
 | |
| 
 | |
| const Wrapper = props => {
 | |
|   // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | |
|   const {
 | |
|     children,
 | |
|     variant,
 | |
|     color,
 | |
|     showFilter = false,
 | |
|     ...rest
 | |
|   } = props;
 | |
|   const Component = showFilter ? StyledWrapperWithFilter : StyledWrapper;
 | |
|   return /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, {
 | |
|     variant: "grey",
 | |
|     mx: "auto",
 | |
|     "data-css": "styled-wrapper"
 | |
|   }), children);
 | |
| };
 | |
| 
 | |
| var _default = (0, _allowOverride.default)(Wrapper, 'RouteWrapper');
 | |
| 
 | |
| exports.default = _default; |