@kep-platform/basic-component 0.0.6 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/Spin/Spin.js CHANGED
@@ -4,13 +4,14 @@ import styled from 'styled-components';
4
4
  var SpinContainer = styled.div.withConfig({
5
5
  displayName: "SpinContainer",
6
6
  componentId: "basic-component-347b__sc-1s1g2fa-0"
7
- })(["position:relative;display:flex;"]);
7
+ })(["position:relative;"]);
8
8
  var SpinMark = styled.div.withConfig({
9
9
  displayName: "SpinMark",
10
10
  componentId: "basic-component-347b__sc-1s1g2fa-1"
11
- })(["position:absolute;content:'';inset:0 0 0 0;background-color:rgba(255,255,255,0.5);display:flex;justify-content:center;align-items:center;"]);
11
+ })(["position:absolute;inset:0 0 0 0;background-color:rgba(255,255,255,0.5);display:flex;justify-content:center;align-items:center;"]);
12
12
  export default function Spin(props) {
13
13
  return /*#__PURE__*/React.createElement(SpinContainer, null, props.children, /*#__PURE__*/React.createElement(SpinMark, {
14
- spinning: props.spinning
14
+ spinning: props.spinning,
15
+ hidden: !props.spinning
15
16
  }, /*#__PURE__*/React.createElement(LoadingOutlined, null)));
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.0.6",
3
+ "version": "0.0.10",
4
4
  "description": "A react library developed with dumi",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -74,10 +74,10 @@
74
74
  "react-dom": "^18.0.0",
75
75
  "stylelint": "^14.9.1"
76
76
  },
77
- "gitHead": "7fdc480be2d212aeacbb4d7a623d5ccb716762a4",
77
+ "gitHead": "575a10d0cdee60ceb925d11ee5ac6657c93dec9d",
78
78
  "dependencies": {
79
79
  "@ant-design/icons": "^5.3.7",
80
- "@kep-platform/hooks": "^0.0.6",
80
+ "@kep-platform/hooks": "^0.0.10",
81
81
  "color": "^4.2.3",
82
82
  "rc-pagination": "^4.1.0",
83
83
  "styled-components": "^6.1.11"