@uiw/react-empty
Advanced tools
Comparing version 5.0.0-bate-1 to 5.0.0-bate-10
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -12,11 +10,6 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _style = _interopRequireWildcard(require("./style")); | ||
Object.keys(_style).forEach(function (key) { | ||
@@ -33,19 +26,16 @@ if (key === "default" || key === "__esModule") return; | ||
}); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["prefixCls", "className", "icon", "iconProps", "size", "description", "children"]; | ||
var Empty = function Empty(props) { | ||
var _props$prefixCls = props.prefixCls, | ||
prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls, | ||
className = props.className, | ||
icon = props.icon, | ||
iconProps = props.iconProps, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 64 : _props$size, | ||
_props$description = props.description, | ||
description = _props$description === void 0 ? '暂无数据' : _props$description, | ||
children = props.children, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
prefixCls = _props$prefixCls === void 0 ? 'w-empty' : _props$prefixCls, | ||
className = props.className, | ||
icon = props.icon, | ||
iconProps = props.iconProps, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 64 : _props$size, | ||
_props$description = props.description, | ||
description = _props$description === void 0 ? '暂无数据' : _props$description, | ||
children = props.children, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
var cls = [prefixCls, className].filter(Boolean).join(' ').trim(); | ||
@@ -88,5 +78,4 @@ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
}; | ||
var _default = Empty; | ||
exports["default"] = _default; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,13 +8,7 @@ value: true | ||
exports["default"] = exports.EmptyStyleTheme = exports.EmptyStyleIcon = exports.EmptyStyleFooter = exports.EmptyStyleDescription = exports.EmptyStyleBase = void 0; | ||
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral")); | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _styledComponents = _interopRequireDefault(require("styled-components")); | ||
var _utils = require("@uiw/utils"); | ||
var _templateObject, _templateObject2, _templateObject3, _templateObject4; | ||
var EmptyStyleTheme = { | ||
@@ -28,19 +21,11 @@ colorEmptyBase: '#c7c7c7' | ||
}; | ||
var EmptyStyleBase = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n text-align: center;\n"])), function (props) { | ||
return (0, _utils.getThemeVariantValue)((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), propsTheme), 'colorEmptyBase'); | ||
}); | ||
exports.EmptyStyleBase = EmptyStyleBase; | ||
var EmptyStyleIcon = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])([""]))); | ||
exports.EmptyStyleIcon = EmptyStyleIcon; | ||
var EmptyStyleDescription = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n margin-top: 10px;\n"]))); | ||
exports.EmptyStyleDescription = EmptyStyleDescription; | ||
var EmptyStyleFooter = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n margin-top: 16px;\n"]))); | ||
exports.EmptyStyleFooter = EmptyStyleFooter; | ||
@@ -47,0 +32,0 @@ var _default = EmptyStyleBase; |
@@ -9,15 +9,13 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
export * from './style'; | ||
var Empty = props => { | ||
var { | ||
prefixCls = 'w-empty', | ||
className, | ||
icon, | ||
iconProps, | ||
size = 64, | ||
description = '暂无数据', | ||
children | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
prefixCls = 'w-empty', | ||
className, | ||
icon, | ||
iconProps, | ||
size = 64, | ||
description = '暂无数据', | ||
children | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
var cls = [prefixCls, className].filter(Boolean).join(' ').trim(); | ||
@@ -60,4 +58,3 @@ return /*#__PURE__*/_jsxs(EmptyWrap, _extends({ | ||
}; | ||
export default Empty; | ||
//# sourceMappingURL=index.js.map |
import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/taggedTemplateLiteralLoose"; | ||
import _extends from "@babel/runtime/helpers/extends"; | ||
var _templateObject, _templateObject2, _templateObject3, _templateObject4; | ||
import styled from 'styled-components'; | ||
@@ -7,0 +5,0 @@ import { getThemeVariantValue } from '@uiw/utils'; |
{ | ||
"name": "@uiw/react-empty", | ||
"version": "5.0.0-bate-1", | ||
"version": "5.0.0-bate-10", | ||
"description": "Empty component", | ||
@@ -48,4 +48,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^5.0.0-bate-1" | ||
"@uiw/utils": "^5.0.0-bate-10" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30314
Updated@uiw/utils@^5.0.0-bate-10