@easyv/react-components 0.0.13 → 0.0.15
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/dist/Color/Preview.d.ts +8 -0
- package/dist/Color/Preview.js +78 -0
- package/dist/Color/Preview.less +48 -0
- package/dist/Color/index.d.ts +2 -0
- package/dist/Color/index.js +69 -0
- package/dist/Color/interface.d.ts +5 -0
- package/dist/Color/interface.js +1 -0
- package/dist/ColorPicker/Panel.d.ts +11 -0
- package/dist/ColorPicker/Panel.js +50 -0
- package/dist/ColorPicker/Panel.less +159 -0
- package/dist/ColorPicker/index.d.ts +9 -3
- package/dist/ColorPicker/index.js +266 -44
- package/dist/ColorPicker/index.less +194 -132
- package/dist/ColorPicker/utils.d.ts +16 -6
- package/dist/ColorPicker/utils.js +86 -40
- package/dist/Input/index.js +15 -14
- package/dist/InputNumber/PointDrag.d.ts +13 -0
- package/dist/InputNumber/PointDrag.js +107 -0
- package/dist/InputNumber/index.d.ts +3 -1
- package/dist/InputNumber/index.js +183 -1
- package/dist/InputNumber/index.less +93 -0
- package/dist/InputNumber/interface.d.ts +6 -1
- package/dist/InputNumber/util.d.ts +8 -0
- package/dist/InputNumber/util.js +31 -0
- package/dist/RangeColor/Panel.d.ts +9 -0
- package/dist/RangeColor/Panel.js +187 -0
- package/dist/RangeColor/Panel.less +0 -0
- package/dist/RangeColor/Points.d.ts +2 -0
- package/dist/RangeColor/Points.js +88 -0
- package/dist/RangeColor/index.d.ts +3 -0
- package/dist/RangeColor/index.js +76 -0
- package/dist/RangeColor/index.less +49 -0
- package/dist/RangeColor/interface.d.ts +8 -0
- package/dist/RangeColor/interface.js +1 -0
- package/dist/SpaceModal/index.d.ts +5 -0
- package/dist/SpaceModal/index.js +19 -0
- package/dist/SpaceModal/index.less +5 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useClickOutside.d.ts +1 -0
- package/dist/hooks/useClickOutside.js +16 -0
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/hooks/useEventListener.js +18 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/package.json +2 -2
- package/dist/ColorPicker/ColorPreview.d.ts +0 -19
- package/dist/ColorPicker/ColorPreview.js +0 -27
- package/dist/ColorPicker/ColorPreview.less +0 -5
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -131,4 +131,5 @@ export { default as Space } from './Space';
|
|
|
131
131
|
export type { SpaceProps } from './Space/interface';
|
|
132
132
|
export { default as Tag } from './Tag';
|
|
133
133
|
export type { TagProps } from './Tag/interface';
|
|
134
|
-
export { default as
|
|
134
|
+
export { default as Color } from './Color';
|
|
135
|
+
export { default as RangeColor } from './RangeColor';
|
package/dist/index.js
CHANGED
|
@@ -65,4 +65,7 @@ export { default as Radio } from "./Radio";
|
|
|
65
65
|
export { default as Select } from "./Select";
|
|
66
66
|
export { default as Space } from "./Space";
|
|
67
67
|
export { default as Tag } from "./Tag";
|
|
68
|
-
export { default as ColorPicker } from
|
|
68
|
+
// export { default as ColorPicker } from './ColorPicker';
|
|
69
|
+
|
|
70
|
+
export { default as Color } from "./Color";
|
|
71
|
+
export { default as RangeColor } from "./RangeColor";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyv/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "a react component library base on arco design",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@easyv/react-icons": "4.0.0",
|
|
51
51
|
"ahooks": "^3.7.8",
|
|
52
52
|
"classnames": "^2.3.2",
|
|
53
|
-
"rc-color-picker": "
|
|
53
|
+
"rc-color-picker": "1.2.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@arco-design/web-react": "2.55.1",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import './ColorPreview.less';
|
|
2
|
-
declare type ColorPreviewProps = PureColorProps | LinearColorProps;
|
|
3
|
-
interface PureColorProps {
|
|
4
|
-
type: 'pure';
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
interface LinearColorProps {
|
|
8
|
-
type: 'linear';
|
|
9
|
-
value: {
|
|
10
|
-
stops: {
|
|
11
|
-
color: string;
|
|
12
|
-
offset: number;
|
|
13
|
-
}[];
|
|
14
|
-
angle: number;
|
|
15
|
-
opacity: number;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export default function ColorPreview({ type, value }: ColorPreviewProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./ColorPreview.less";
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export default function ColorPreview(_ref) {
|
|
5
|
-
var type = _ref.type,
|
|
6
|
-
value = _ref.value;
|
|
7
|
-
switch (type) {
|
|
8
|
-
case 'pure':
|
|
9
|
-
{
|
|
10
|
-
return /*#__PURE__*/_jsx("div", {
|
|
11
|
-
className: "arco-color-picker-preview",
|
|
12
|
-
style: {
|
|
13
|
-
backgroundColor: value
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
case 'linear':
|
|
18
|
-
{
|
|
19
|
-
return /*#__PURE__*/_jsx("div", {
|
|
20
|
-
children: "\u6E10\u53D8"
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
default:
|
|
24
|
-
console.error('未知的颜色类型' + type);
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}
|