@kep-platform/basic-component 1.0.2 → 1.0.5

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) lee-step-jss 1599925910@qq.com
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) lee-step-jss 1599925910@qq.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,43 +1,43 @@
1
- # @kep-platform/basic-component
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
5
-
6
- A react library developed with dumi
7
-
8
- ## Usage
9
-
10
- TODO
11
-
12
- ## Options
13
-
14
- TODO
15
-
16
- ## Development
17
-
18
- ```bash
19
- # install dependencies
20
- $ npm install
21
-
22
- # develop library by docs demo
23
- $ npm start
24
-
25
- # build library source code
26
- $ npm run build
27
-
28
- # build library source code in watch mode
29
- $ npm run build:watch
30
-
31
- # build docs
32
- $ npm run docs:build
33
-
34
- # Locally preview the production build.
35
- $ npm run docs:preview
36
-
37
- # check your project for potential problems
38
- $ npm run doctor
39
- ```
40
-
41
- ## LICENSE
42
-
43
- MIT
1
+ # @kep-platform/basic-component
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
5
+
6
+ A react library developed with dumi
7
+
8
+ ## Usage
9
+
10
+ TODO
11
+
12
+ ## Options
13
+
14
+ TODO
15
+
16
+ ## Development
17
+
18
+ ```bash
19
+ # install dependencies
20
+ $ npm install
21
+
22
+ # develop library by docs demo
23
+ $ npm start
24
+
25
+ # build library source code
26
+ $ npm run build
27
+
28
+ # build library source code in watch mode
29
+ $ npm run build:watch
30
+
31
+ # build docs
32
+ $ npm run docs:build
33
+
34
+ # Locally preview the production build.
35
+ $ npm run docs:preview
36
+
37
+ # check your project for potential problems
38
+ $ npm run doctor
39
+ ```
40
+
41
+ ## LICENSE
42
+
43
+ MIT
@@ -1,9 +1,9 @@
1
- // styled.d.ts 文件
2
- import 'styled-components';
3
- import { ButtonTheme } from './theme';
4
-
5
- declare module 'styled-components' {
6
- export interface DefaultTheme {
7
- button?: ButtonTheme;
8
- }
9
- }
1
+ // styled.d.ts 文件
2
+ import 'styled-components';
3
+ import { ButtonTheme } from './theme';
4
+
5
+ declare module 'styled-components' {
6
+ export interface DefaultTheme {
7
+ button?: ButtonTheme;
8
+ }
9
+ }
@@ -1,38 +1,38 @@
1
- export type ButtonTheme = {
2
- /* all */
3
- fontWeight?: string;
4
- borderRadius?: string;
5
- borderWidth?: string;
6
- shadowAnimation?: Keyframes;
7
- /* Default */
8
- defaultTextColor?: string;
9
- defaultBorderColor?: string;
10
- defaultBackgroundColor?: string;
11
- defaultHoverBackgroundColor?: string;
12
- defaultHoverBorderColor: string;
13
- defaultHoverTextColor?: string;
14
- /* Danger */
15
- dangerTextColor?: string;
16
- dangerBorderColor?: string;
17
- dangerBackgroundColor?: string;
18
- dangerHoverBackgroundColor: string;
19
- dangerHoverTextColor?: string;
20
- dangerShadowAnimation?: Keyframes;
21
- /* Primary */
22
- primaryTextColor?: string;
23
- primaryBorderColor?: string;
24
- primaryBackgroundColor?: string;
25
- primaryHoverBackgroundColor: string;
26
- primaryHoverTextColor?: string;
27
- primaryShadowAnimation?: Keyframes;
28
- /* Small */
29
- smallPaddingTop?: string;
30
- smallPaddingLeft?: string;
31
- smallFontSize?: string;
32
- smallBorderRadius?: string;
33
- /* Large */
34
- bargePaddingTop?: string;
35
- bargePaddingLeft?: string;
36
- bargeFontSize?: string;
37
- bargeBorderRadius?: string;
38
- };
1
+ export type ButtonTheme = {
2
+ /* all */
3
+ fontWeight?: string;
4
+ borderRadius?: string;
5
+ borderWidth?: string;
6
+ shadowAnimation?: Keyframes;
7
+ /* Default */
8
+ defaultTextColor?: string;
9
+ defaultBorderColor?: string;
10
+ defaultBackgroundColor?: string;
11
+ defaultHoverBackgroundColor?: string;
12
+ defaultHoverBorderColor: string;
13
+ defaultHoverTextColor?: string;
14
+ /* Danger */
15
+ dangerTextColor?: string;
16
+ dangerBorderColor?: string;
17
+ dangerBackgroundColor?: string;
18
+ dangerHoverBackgroundColor: string;
19
+ dangerHoverTextColor?: string;
20
+ dangerShadowAnimation?: Keyframes;
21
+ /* Primary */
22
+ primaryTextColor?: string;
23
+ primaryBorderColor?: string;
24
+ primaryBackgroundColor?: string;
25
+ primaryHoverBackgroundColor: string;
26
+ primaryHoverTextColor?: string;
27
+ primaryShadowAnimation?: Keyframes;
28
+ /* Small */
29
+ smallPaddingTop?: string;
30
+ smallPaddingLeft?: string;
31
+ smallFontSize?: string;
32
+ smallBorderRadius?: string;
33
+ /* Large */
34
+ bargePaddingTop?: string;
35
+ bargePaddingLeft?: string;
36
+ bargeFontSize?: string;
37
+ bargeBorderRadius?: string;
38
+ };
package/dist/Tree/Tree.js CHANGED
@@ -12,7 +12,7 @@ import { Column, Columns } from "../Columns";
12
12
  import { DefaultColumnWidth } from "../Columns/Columns";
13
13
  import { List } from "../List";
14
14
  import { MainArea, MainProperty } from "./MainProperties";
15
- import { TreeNodeController, nodeTypeMap } from "./TreeNode";
15
+ import { nodeTypeMap, TreeNodeController } from "./TreeNode";
16
16
  var TreeContainer = styled('div').withConfig({
17
17
  shouldForwardProp: function shouldForwardProp(prop) {
18
18
  return !['bordered'].includes(prop);
@@ -73,25 +73,6 @@ var ViewPortComponent = observer(function (props) {
73
73
  (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.removeEventListener('wheel', scaleHandler);
74
74
  };
75
75
  }, []);
76
- var onContainerDoubleClickHandler = function onContainerDoubleClickHandler(e) {
77
- //在transition期间禁止操作
78
- if (viewPortStore.isTransition) {
79
- return;
80
- }
81
- //双击的时候取消pointerDown的触发事件
82
- if (pointerDownTimer.current) clearTimeout(pointerDownTimer.current);
83
- pointerDownTimer.current = null;
84
- createRipple(e);
85
- var container = containerRef.current;
86
- var _container$getBoundin = container.getBoundingClientRect(),
87
- left = _container$getBoundin.left,
88
- top = _container$getBoundin.top;
89
- var offsetLeft = e.clientX - left;
90
- var offsetTop = e.clientY - top;
91
- if (viewPortStore.scale === 1) {
92
- viewPortStore.unfocus();
93
- } else viewPortStore.focus(offsetLeft, offsetTop);
94
- };
95
76
  var onContentTransitionEnd = useCallback(function (e) {
96
77
  if (e.target === contentRef.current) {
97
78
  runInAction(function () {
@@ -115,7 +96,6 @@ var ViewPortComponent = observer(function (props) {
115
96
  }, [listeners]);
116
97
  return /*#__PURE__*/React.createElement(Container, _extends({
117
98
  style: viewPortStore.containerStyle,
118
- onDoubleClick: onContainerDoubleClickHandler,
119
99
  ref: containerRef
120
100
  }, rest), /*#__PURE__*/React.createElement(Overlay, {
121
101
  style: viewPortStore.overlayStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -86,5 +86,5 @@
86
86
  "authors": [
87
87
  "less-step-jss 1599925910@qq.com"
88
88
  ],
89
- "gitHead": "9d080836f027cb44d6fdae1654c19ec9bfc55488"
89
+ "gitHead": "5543f60caaf3c8528c1c3804e5523b9406f82d16"
90
90
  }