@pisell/materials 1.0.2 → 1.0.3
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/es/components/auto-complete/index.d.ts +3 -0
- package/es/components/auto-complete/index.js +4 -0
- package/es/components/button/index.d.ts +3 -0
- package/es/components/button/index.js +15 -0
- package/es/components/calendar/index.d.ts +3 -0
- package/es/components/calendar/index.js +4 -0
- package/es/components/cascader/index.d.ts +3 -0
- package/es/components/cascader/index.js +4 -0
- package/es/components/checkbox/index.d.ts +3 -0
- package/es/components/checkbox/index.js +5 -0
- package/es/components/config-provider/index.d.ts +4 -0
- package/es/components/config-provider/index.js +30 -0
- package/es/components/date-picker/index.d.ts +3 -0
- package/es/components/date-picker/index.js +7 -0
- package/es/components/drawer/index.d.ts +2 -0
- package/es/components/drawer/index.js +13 -0
- package/es/components/dropdown/index.d.ts +3 -0
- package/es/components/dropdown/index.js +13 -0
- package/es/components/form/index.d.ts +8 -0
- package/es/components/form/index.js +132 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.js +40 -0
- package/es/components/input/index.d.ts +3 -0
- package/es/components/input/index.js +12 -0
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/modal/index.js +18 -0
- package/es/components/radio/index.d.ts +3 -0
- package/es/components/radio/index.js +5 -0
- package/es/components/select/index.d.ts +3 -0
- package/es/components/select/index.js +4 -0
- package/es/components/skeleton/index.d.ts +3 -0
- package/es/components/skeleton/index.js +5 -0
- package/es/components/slider/index.d.ts +3 -0
- package/es/components/slider/index.js +16 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +12 -0
- package/es/components/tabs/index.d.ts +11 -0
- package/es/components/tabs/index.js +93 -0
- package/es/components/time-picker/index.d.ts +3 -0
- package/es/components/time-picker/index.js +4 -0
- package/es/components/tree-select/index.d.ts +2 -0
- package/es/components/tree-select/index.js +6 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/index.js +4 -0
- package/{src/index.tsx → es/index.d.ts} +2 -80
- package/es/index.js +85 -0
- package/es/utils/hoc.d.ts +17 -0
- package/es/utils/hoc.js +80 -0
- package/es/utils/warning.d.ts +1 -0
- package/es/utils/warning.js +6 -0
- package/lib/components/auto-complete/index.d.ts +3 -0
- package/lib/components/auto-complete/index.js +28 -0
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/index.js +45 -0
- package/lib/components/calendar/index.d.ts +3 -0
- package/lib/components/calendar/index.js +32 -0
- package/lib/components/cascader/index.d.ts +3 -0
- package/lib/components/cascader/index.js +28 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/checkbox/index.js +29 -0
- package/lib/components/config-provider/index.d.ts +4 -0
- package/lib/components/config-provider/index.js +54 -0
- package/lib/components/date-picker/index.d.ts +3 -0
- package/lib/components/date-picker/index.js +41 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/index.js +45 -0
- package/lib/components/dropdown/index.d.ts +3 -0
- package/lib/components/dropdown/index.js +45 -0
- package/lib/components/form/index.d.ts +8 -0
- package/lib/components/form/index.js +114 -0
- package/lib/components/icon/index.d.ts +12 -0
- package/lib/components/icon/index.js +52 -0
- package/lib/components/input/index.d.ts +3 -0
- package/lib/components/input/index.js +38 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/index.js +50 -0
- package/lib/components/radio/index.d.ts +3 -0
- package/lib/components/radio/index.js +29 -0
- package/lib/components/select/index.d.ts +3 -0
- package/lib/components/select/index.js +28 -0
- package/lib/components/skeleton/index.d.ts +3 -0
- package/lib/components/skeleton/index.js +29 -0
- package/lib/components/slider/index.d.ts +3 -0
- package/lib/components/slider/index.js +47 -0
- package/lib/components/table/index.d.ts +3 -0
- package/lib/components/table/index.js +41 -0
- package/lib/components/tabs/index.d.ts +11 -0
- package/lib/components/tabs/index.js +92 -0
- package/lib/components/time-picker/index.d.ts +3 -0
- package/lib/components/time-picker/index.js +31 -0
- package/lib/components/tree-select/index.d.ts +2 -0
- package/lib/components/tree-select/index.js +40 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/index.js +28 -0
- package/lib/index.d.ts +63 -0
- package/lib/index.js +225 -0
- package/lib/utils/hoc.d.ts +17 -0
- package/lib/utils/hoc.js +101 -0
- package/lib/utils/warning.d.ts +1 -0
- package/lib/utils/warning.js +31 -0
- package/package.json +10 -2
- package/.fatherrc.ts +0 -7
- package/.tmp/assets-daily.json +0 -93
- package/.tmp/assets-dev.json +0 -93
- package/.tmp/assets-prod.json +0 -93
- package/.tmp/default.view.js +0 -24
- package/.tmp/index.jsx +0 -279
- package/.tmp/meta.js +0 -251
- package/.tmp/preview.jsx +0 -72
- package/.tmp/view.js +0 -25
- package/CHANGELOG.md +0 -13
- package/build.lowcode.js +0 -46
- package/src/components/auto-complete/index.tsx +0 -6
- package/src/components/button/index.tsx +0 -12
- package/src/components/calendar/index.tsx +0 -10
- package/src/components/cascader/index.tsx +0 -6
- package/src/components/checkbox/index.tsx +0 -7
- package/src/components/config-provider/index.tsx +0 -27
- package/src/components/date-picker/index.tsx +0 -22
- package/src/components/drawer/index.tsx +0 -13
- package/src/components/dropdown/index.tsx +0 -13
- package/src/components/form/index.tsx +0 -97
- package/src/components/icon/index.tsx +0 -34
- package/src/components/input/index.tsx +0 -18
- package/src/components/modal/index.tsx +0 -18
- package/src/components/radio/index.tsx +0 -7
- package/src/components/select/index.tsx +0 -6
- package/src/components/skeleton/index.tsx +0 -6
- package/src/components/slider/index.tsx +0 -18
- package/src/components/table/index.tsx +0 -10
- package/src/components/tabs/index.tsx +0 -67
- package/src/components/time-picker/index.tsx +0 -9
- package/src/components/tree-select/index.tsx +0 -8
- package/src/components/upload/index.tsx +0 -5
- package/src/utils/hoc.tsx +0 -92
- package/src/utils/warning.ts +0 -3
- package/tsconfig.json +0 -14
|
@@ -1,141 +1,63 @@
|
|
|
1
1
|
export { Affix } from 'antd';
|
|
2
|
-
|
|
3
2
|
export { Anchor } from 'antd';
|
|
4
|
-
|
|
5
3
|
export { Alert } from 'antd';
|
|
6
|
-
|
|
7
4
|
export { Avatar } from 'antd';
|
|
8
|
-
|
|
9
5
|
export { Badge } from 'antd';
|
|
10
|
-
|
|
11
6
|
export { Breadcrumb } from 'antd';
|
|
12
|
-
|
|
13
7
|
export { Card } from 'antd';
|
|
14
|
-
|
|
15
8
|
export { Collapse } from 'antd';
|
|
16
|
-
|
|
17
9
|
export { Carousel } from 'antd';
|
|
18
|
-
|
|
19
|
-
// export { Cascader } from 'antd';
|
|
20
|
-
|
|
21
|
-
// export { Checkbox } from 'antd';
|
|
22
|
-
|
|
23
10
|
export { Col } from 'antd';
|
|
24
|
-
|
|
25
11
|
export { Descriptions } from 'antd';
|
|
26
|
-
|
|
27
12
|
export { Divider } from 'antd';
|
|
28
|
-
|
|
29
|
-
// export { Drawer } from 'antd';
|
|
30
|
-
|
|
31
13
|
export { Empty } from 'antd';
|
|
32
|
-
|
|
33
14
|
export { Grid } from 'antd';
|
|
34
|
-
|
|
35
|
-
// export { Input } from 'antd';
|
|
36
|
-
|
|
37
15
|
export { Image } from 'antd';
|
|
38
|
-
|
|
39
16
|
export { InputNumber } from 'antd';
|
|
40
|
-
|
|
41
17
|
export { List } from 'antd';
|
|
42
|
-
|
|
43
18
|
export { message } from 'antd';
|
|
44
|
-
|
|
45
19
|
export { Menu } from 'antd';
|
|
46
|
-
|
|
47
20
|
export { Mentions } from 'antd';
|
|
48
|
-
|
|
49
21
|
export { Statistic } from 'antd';
|
|
50
|
-
|
|
51
22
|
export { notification } from 'antd';
|
|
52
|
-
|
|
53
23
|
export { PageHeader } from 'antd';
|
|
54
|
-
|
|
55
24
|
export { Pagination } from 'antd';
|
|
56
|
-
|
|
57
25
|
export { Popconfirm } from 'antd';
|
|
58
|
-
|
|
59
26
|
export { Popover } from 'antd';
|
|
60
|
-
|
|
61
27
|
export { Progress } from 'antd';
|
|
62
|
-
|
|
63
|
-
// export { Radio } from 'antd';
|
|
64
|
-
|
|
65
28
|
export { Rate } from 'antd';
|
|
66
|
-
|
|
67
29
|
export { Result } from 'antd';
|
|
68
|
-
|
|
69
30
|
export { Row } from 'antd';
|
|
70
|
-
|
|
71
|
-
// export { Skeleton } from 'antd';
|
|
72
|
-
|
|
73
31
|
export { Space } from 'antd';
|
|
74
|
-
|
|
75
32
|
export { Spin } from 'antd';
|
|
76
|
-
|
|
77
33
|
export { Steps } from 'antd';
|
|
78
|
-
|
|
79
34
|
export { Switch } from 'antd';
|
|
80
|
-
|
|
81
35
|
export { Transfer } from 'antd';
|
|
82
|
-
|
|
83
36
|
export { Tree } from 'antd';
|
|
84
|
-
|
|
85
|
-
// export { TreeSelect } from 'antd';
|
|
86
|
-
|
|
87
|
-
// export { Tabs } from 'antd';
|
|
88
|
-
|
|
89
37
|
export { Tag } from 'antd';
|
|
90
|
-
|
|
91
38
|
export { Timeline } from 'antd';
|
|
92
|
-
|
|
93
39
|
export { Tooltip } from 'antd';
|
|
94
|
-
|
|
95
40
|
export { Typography } from 'antd';
|
|
96
|
-
|
|
97
41
|
export { version } from 'antd';
|
|
98
|
-
|
|
99
42
|
export { default as Skeleton } from './components/skeleton';
|
|
100
|
-
|
|
101
43
|
export { default as Checkbox } from './components/checkbox';
|
|
102
|
-
|
|
103
44
|
export { default as Button } from './components/button';
|
|
104
|
-
|
|
105
45
|
export { default as Radio } from './components/radio';
|
|
106
|
-
|
|
107
46
|
export { default as Upload } from './components/upload';
|
|
108
|
-
|
|
109
47
|
export { default as Icon } from './components/icon';
|
|
110
|
-
|
|
111
48
|
export { default as Form } from './components/form';
|
|
112
|
-
|
|
113
49
|
export { default as Dropdown } from './components/dropdown';
|
|
114
|
-
|
|
115
50
|
export { default as Calendar } from './components/calendar';
|
|
116
|
-
|
|
117
51
|
export { default as ConfigProvider } from './components/config-provider';
|
|
118
|
-
|
|
119
52
|
export { default as DatePicker } from './components/date-picker';
|
|
120
|
-
|
|
121
53
|
export { default as Tabs } from './components/tabs';
|
|
122
|
-
|
|
123
54
|
export { default as TimePicker } from './components/time-picker';
|
|
124
|
-
|
|
125
55
|
export { default as Slider } from './components/slider';
|
|
126
|
-
|
|
127
56
|
export { default as Table } from './components/table';
|
|
128
|
-
|
|
129
57
|
export { default as Modal } from './components/modal';
|
|
130
|
-
|
|
131
58
|
export { default as Drawer } from './components/drawer';
|
|
132
|
-
|
|
133
59
|
export { default as TreeSelect } from './components/tree-select';
|
|
134
|
-
|
|
135
60
|
export { default as Input } from './components/input';
|
|
136
|
-
|
|
137
|
-
export { default as Select } from './components/select'
|
|
138
|
-
|
|
61
|
+
export { default as Select } from './components/select';
|
|
139
62
|
export { default as Cascader } from './components/cascader';
|
|
140
|
-
|
|
141
|
-
export { default as AutoComplete } from './components/auto-complete';
|
|
63
|
+
export { default as AutoComplete } from './components/auto-complete';
|
package/es/index.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export { Affix } from 'antd';
|
|
2
|
+
export { Anchor } from 'antd';
|
|
3
|
+
export { Alert } from 'antd';
|
|
4
|
+
export { Avatar } from 'antd';
|
|
5
|
+
export { Badge } from 'antd';
|
|
6
|
+
export { Breadcrumb } from 'antd';
|
|
7
|
+
export { Card } from 'antd';
|
|
8
|
+
export { Collapse } from 'antd';
|
|
9
|
+
export { Carousel } from 'antd';
|
|
10
|
+
|
|
11
|
+
// export { Cascader } from 'antd';
|
|
12
|
+
|
|
13
|
+
// export { Checkbox } from 'antd';
|
|
14
|
+
|
|
15
|
+
export { Col } from 'antd';
|
|
16
|
+
export { Descriptions } from 'antd';
|
|
17
|
+
export { Divider } from 'antd';
|
|
18
|
+
|
|
19
|
+
// export { Drawer } from 'antd';
|
|
20
|
+
|
|
21
|
+
export { Empty } from 'antd';
|
|
22
|
+
export { Grid } from 'antd';
|
|
23
|
+
|
|
24
|
+
// export { Input } from 'antd';
|
|
25
|
+
|
|
26
|
+
export { Image } from 'antd';
|
|
27
|
+
export { InputNumber } from 'antd';
|
|
28
|
+
export { List } from 'antd';
|
|
29
|
+
export { message } from 'antd';
|
|
30
|
+
export { Menu } from 'antd';
|
|
31
|
+
export { Mentions } from 'antd';
|
|
32
|
+
export { Statistic } from 'antd';
|
|
33
|
+
export { notification } from 'antd';
|
|
34
|
+
export { PageHeader } from 'antd';
|
|
35
|
+
export { Pagination } from 'antd';
|
|
36
|
+
export { Popconfirm } from 'antd';
|
|
37
|
+
export { Popover } from 'antd';
|
|
38
|
+
export { Progress } from 'antd';
|
|
39
|
+
|
|
40
|
+
// export { Radio } from 'antd';
|
|
41
|
+
|
|
42
|
+
export { Rate } from 'antd';
|
|
43
|
+
export { Result } from 'antd';
|
|
44
|
+
export { Row } from 'antd';
|
|
45
|
+
|
|
46
|
+
// export { Skeleton } from 'antd';
|
|
47
|
+
|
|
48
|
+
export { Space } from 'antd';
|
|
49
|
+
export { Spin } from 'antd';
|
|
50
|
+
export { Steps } from 'antd';
|
|
51
|
+
export { Switch } from 'antd';
|
|
52
|
+
export { Transfer } from 'antd';
|
|
53
|
+
export { Tree } from 'antd';
|
|
54
|
+
|
|
55
|
+
// export { TreeSelect } from 'antd';
|
|
56
|
+
|
|
57
|
+
// export { Tabs } from 'antd';
|
|
58
|
+
|
|
59
|
+
export { Tag } from 'antd';
|
|
60
|
+
export { Timeline } from 'antd';
|
|
61
|
+
export { Tooltip } from 'antd';
|
|
62
|
+
export { Typography } from 'antd';
|
|
63
|
+
export { version } from 'antd';
|
|
64
|
+
export { default as Skeleton } from "./components/skeleton";
|
|
65
|
+
export { default as Checkbox } from "./components/checkbox";
|
|
66
|
+
export { default as Button } from "./components/button";
|
|
67
|
+
export { default as Radio } from "./components/radio";
|
|
68
|
+
export { default as Upload } from "./components/upload";
|
|
69
|
+
export { default as Icon } from "./components/icon";
|
|
70
|
+
export { default as Form } from "./components/form";
|
|
71
|
+
export { default as Dropdown } from "./components/dropdown";
|
|
72
|
+
export { default as Calendar } from "./components/calendar";
|
|
73
|
+
export { default as ConfigProvider } from "./components/config-provider";
|
|
74
|
+
export { default as DatePicker } from "./components/date-picker";
|
|
75
|
+
export { default as Tabs } from "./components/tabs";
|
|
76
|
+
export { default as TimePicker } from "./components/time-picker";
|
|
77
|
+
export { default as Slider } from "./components/slider";
|
|
78
|
+
export { default as Table } from "./components/table";
|
|
79
|
+
export { default as Modal } from "./components/modal";
|
|
80
|
+
export { default as Drawer } from "./components/drawer";
|
|
81
|
+
export { default as TreeSelect } from "./components/tree-select";
|
|
82
|
+
export { default as Input } from "./components/input";
|
|
83
|
+
export { default as Select } from "./components/select";
|
|
84
|
+
export { default as Cascader } from "./components/cascader";
|
|
85
|
+
export { default as AutoComplete } from "./components/auto-complete";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 简单包装,不做任何处理
|
|
4
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
+
*/
|
|
6
|
+
export declare function withWrap(Comp: ComponentType<any>): React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
/**
|
|
8
|
+
* 某些组件会用React.Children.only检查子节点
|
|
9
|
+
* 需要做处理避免报错
|
|
10
|
+
*/
|
|
11
|
+
export declare function withSingleChild(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
|
12
|
+
export declare function withSingleFunctionChild(Comp: ComponentType<any>): (props: any) => JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* moment对象在序列化后会被转为字符串
|
|
15
|
+
* 需要让日期类组件支持接受字符串值
|
|
16
|
+
*/
|
|
17
|
+
export declare function withMomentProps(Comp: ComponentType<any>, needsConvert?: string[]): (props: any) => JSX.Element;
|
package/es/utils/hoc.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
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); }
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
|
+
import { get, set, has } from 'lodash';
|
|
5
|
+
function convertProps(props, list, mapper) {
|
|
6
|
+
var out = {};
|
|
7
|
+
list.forEach(function (key) {
|
|
8
|
+
if (has(props, key)) {
|
|
9
|
+
set(out, key, mapper(get(props, key), key));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
return out;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 简单包装,不做任何处理
|
|
17
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
18
|
+
*/
|
|
19
|
+
export function withWrap(Comp) {
|
|
20
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, {
|
|
22
|
+
ref: ref
|
|
23
|
+
}));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 某些组件会用React.Children.only检查子节点
|
|
29
|
+
* 需要做处理避免报错
|
|
30
|
+
*/
|
|
31
|
+
export function withSingleChild(Comp) {
|
|
32
|
+
var needsConvert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['children'];
|
|
33
|
+
return function (props) {
|
|
34
|
+
var convertedProps = convertProps(props, needsConvert, function (prop) {
|
|
35
|
+
var node = React.Children.toArray(prop)[0];
|
|
36
|
+
if (node === null || _typeof(node) !== 'object') {
|
|
37
|
+
node = /*#__PURE__*/React.createElement("div", null, node);
|
|
38
|
+
}
|
|
39
|
+
return node;
|
|
40
|
+
});
|
|
41
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, convertedProps));
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function withSingleFunctionChild(Comp) {
|
|
45
|
+
return function (props) {
|
|
46
|
+
var children = props.children;
|
|
47
|
+
var node;
|
|
48
|
+
if (typeof children === 'function') {
|
|
49
|
+
node = children;
|
|
50
|
+
}
|
|
51
|
+
if (Array.isArray(children) && children.length === 1 && typeof children[0] === 'function') {
|
|
52
|
+
node = children[0];
|
|
53
|
+
}
|
|
54
|
+
if (node) {
|
|
55
|
+
return /*#__PURE__*/React.createElement(Comp, props, node);
|
|
56
|
+
}
|
|
57
|
+
return /*#__PURE__*/React.createElement("div", null, children);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* moment对象在序列化后会被转为字符串
|
|
63
|
+
* 需要让日期类组件支持接受字符串值
|
|
64
|
+
*/
|
|
65
|
+
export function withMomentProps(Comp) {
|
|
66
|
+
var needsConvert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['value', 'defaultValue'];
|
|
67
|
+
return function (props) {
|
|
68
|
+
var convertedProps = convertProps(props, needsConvert, function (prop) {
|
|
69
|
+
if (prop) {
|
|
70
|
+
if (Array.isArray(prop)) {
|
|
71
|
+
return prop.map(function (v) {
|
|
72
|
+
return moment.isMoment(v) ? v : moment(v);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return moment.isMoment(prop) ? prop : moment(prop);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({}, props, convertedProps));
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const warning: (...args: any[]) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/auto-complete/index.tsx
|
|
20
|
+
var auto_complete_exports = {};
|
|
21
|
+
__export(auto_complete_exports, {
|
|
22
|
+
default: () => auto_complete_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(auto_complete_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_hoc = require("../../utils/hoc");
|
|
27
|
+
var AutoComplete = (0, import_hoc.withWrap)(import_antd.AutoComplete);
|
|
28
|
+
var auto_complete_default = AutoComplete;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/button/index.tsx
|
|
30
|
+
var button_exports = {};
|
|
31
|
+
__export(button_exports, {
|
|
32
|
+
default: () => button_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(button_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var Button = (props, ref) => {
|
|
38
|
+
var _a;
|
|
39
|
+
const innerProps = {};
|
|
40
|
+
if (!((_a = props.href) == null ? void 0 : _a.trim()) || props.__designMode === "design") {
|
|
41
|
+
innerProps.href = void 0;
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { ...props, ...innerProps, ref });
|
|
44
|
+
};
|
|
45
|
+
var button_default = (0, import_react.forwardRef)(Button);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/calendar/index.tsx
|
|
20
|
+
var calendar_exports = {};
|
|
21
|
+
__export(calendar_exports, {
|
|
22
|
+
default: () => calendar_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(calendar_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_hoc = require("../../utils/hoc");
|
|
27
|
+
var Calendar = (0, import_hoc.withMomentProps)(import_antd.Calendar, [
|
|
28
|
+
"defaultValue",
|
|
29
|
+
"validRange",
|
|
30
|
+
"value.defaultValue"
|
|
31
|
+
]);
|
|
32
|
+
var calendar_default = Calendar;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/cascader/index.tsx
|
|
20
|
+
var cascader_exports = {};
|
|
21
|
+
__export(cascader_exports, {
|
|
22
|
+
default: () => cascader_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(cascader_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_hoc = require("../../utils/hoc");
|
|
27
|
+
var Cascader = (0, import_hoc.withWrap)(import_antd.Cascader);
|
|
28
|
+
var cascader_default = Cascader;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/checkbox/index.tsx
|
|
20
|
+
var checkbox_exports = {};
|
|
21
|
+
__export(checkbox_exports, {
|
|
22
|
+
default: () => checkbox_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(checkbox_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_hoc = require("../../utils/hoc");
|
|
27
|
+
var Checkbox = (0, import_hoc.withWrap)(import_antd.Checkbox);
|
|
28
|
+
Checkbox.Group = import_antd.Checkbox.Group;
|
|
29
|
+
var checkbox_default = Checkbox;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/config-provider/index.tsx
|
|
30
|
+
var config_provider_exports = {};
|
|
31
|
+
__export(config_provider_exports, {
|
|
32
|
+
default: () => config_provider_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(config_provider_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
+
var import_zh_cn = require("dayjs/locale/zh-cn");
|
|
39
|
+
var import_zh_CN = __toESM(require("antd/locale/zh_CN"));
|
|
40
|
+
var ConfigProvider = (props) => {
|
|
41
|
+
const { locale, ...rest } = props;
|
|
42
|
+
let localeData = locale;
|
|
43
|
+
if (typeof locale === "string") {
|
|
44
|
+
if (locale.toLowerCase() === "zh-cn") {
|
|
45
|
+
import_dayjs.default.locale("zh-cn");
|
|
46
|
+
localeData = import_zh_CN.default;
|
|
47
|
+
} else if (locale.toLowerCase() === "en-us") {
|
|
48
|
+
import_dayjs.default.locale("en");
|
|
49
|
+
localeData = void 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { locale: localeData, ...rest });
|
|
53
|
+
};
|
|
54
|
+
var config_provider_default = ConfigProvider;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/date-picker/index.tsx
|
|
20
|
+
var date_picker_exports = {};
|
|
21
|
+
__export(date_picker_exports, {
|
|
22
|
+
default: () => date_picker_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(date_picker_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var import_hoc = require("../../utils/hoc");
|
|
27
|
+
var OriginalRangePicker = import_antd.DatePicker.RangePicker;
|
|
28
|
+
var DatePicker = (0, import_hoc.withMomentProps)(import_antd.DatePicker, [
|
|
29
|
+
"defaultPickerValue",
|
|
30
|
+
"defaultValue",
|
|
31
|
+
"showTime.defaultValue",
|
|
32
|
+
"value"
|
|
33
|
+
]);
|
|
34
|
+
var RangePicker = (0, import_hoc.withMomentProps)(OriginalRangePicker, [
|
|
35
|
+
"defaultPickerValue",
|
|
36
|
+
"defaultValue",
|
|
37
|
+
"showTime.defaultValue",
|
|
38
|
+
"value"
|
|
39
|
+
]);
|
|
40
|
+
DatePicker.RangePicker = RangePicker;
|
|
41
|
+
var date_picker_default = DatePicker;
|