@aloudata/aloudata-design 0.3.0 → 0.3.1

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.
Files changed (63) hide show
  1. package/es/Breadcrumb/index.d.ts +0 -1
  2. package/es/Checkbox/index.d.ts +0 -1
  3. package/es/Drawer/index.d.ts +4 -0
  4. package/es/Drawer/index.js +3 -0
  5. package/es/{Message → Drawer}/style/index.d.ts +0 -0
  6. package/es/{Message → Drawer}/style/index.js +0 -0
  7. package/es/{Message → Drawer}/style/index.less +0 -0
  8. package/es/Empty/image/Authority.d.ts +0 -1
  9. package/es/Empty/image/Dataspace.d.ts +0 -1
  10. package/es/Empty/image/Search.d.ts +0 -1
  11. package/es/Empty/image/Simple.d.ts +0 -1
  12. package/es/Empty/image/Worksheet.d.ts +0 -1
  13. package/es/Empty/image/empty.d.ts +0 -1
  14. package/es/Input/components/Group/index.d.ts +0 -1
  15. package/es/InputNumber/index.d.ts +0 -1
  16. package/es/Menu/Divider.d.ts +0 -1
  17. package/es/Navigator/components/Header/index.d.ts +0 -1
  18. package/es/Navigator/components/Menu/index.d.ts +0 -1
  19. package/es/Popover/index.d.ts +0 -1
  20. package/es/index.d.ts +5 -3
  21. package/es/index.js +3 -2
  22. package/es/{Message → message}/index.d.ts +0 -0
  23. package/es/{Message → message}/index.js +0 -0
  24. package/es/{Notification → message}/style/index.d.ts +0 -0
  25. package/es/{Notification → message}/style/index.js +0 -0
  26. package/es/{Notification → message}/style/index.less +0 -0
  27. package/es/{Notification → notification}/index.d.ts +0 -0
  28. package/es/{Notification → notification}/index.js +0 -0
  29. package/{lib/Message → es/notification}/style/index.d.ts +0 -0
  30. package/es/notification/style/index.js +2 -0
  31. package/{lib/Message → es/notification}/style/index.less +0 -0
  32. package/lib/Breadcrumb/index.d.ts +0 -1
  33. package/lib/Checkbox/index.d.ts +0 -1
  34. package/lib/Drawer/index.d.ts +4 -0
  35. package/lib/Drawer/index.js +15 -0
  36. package/lib/{Notification → Drawer}/style/index.d.ts +0 -0
  37. package/lib/{Message → Drawer}/style/index.js +0 -0
  38. package/lib/{Notification → Drawer}/style/index.less +0 -0
  39. package/lib/Empty/image/Authority.d.ts +0 -1
  40. package/lib/Empty/image/Dataspace.d.ts +0 -1
  41. package/lib/Empty/image/Search.d.ts +0 -1
  42. package/lib/Empty/image/Simple.d.ts +0 -1
  43. package/lib/Empty/image/Worksheet.d.ts +0 -1
  44. package/lib/Empty/image/empty.d.ts +0 -1
  45. package/lib/Input/components/Group/index.d.ts +0 -1
  46. package/lib/InputNumber/index.d.ts +0 -1
  47. package/lib/Menu/Divider.d.ts +0 -1
  48. package/lib/Navigator/components/Header/index.d.ts +0 -1
  49. package/lib/Navigator/components/Menu/index.d.ts +0 -1
  50. package/lib/Popover/index.d.ts +0 -1
  51. package/lib/index.d.ts +5 -3
  52. package/lib/index.js +22 -14
  53. package/lib/{Message → message}/index.d.ts +0 -0
  54. package/lib/{Message → message}/index.js +0 -0
  55. package/lib/message/style/index.d.ts +2 -0
  56. package/lib/{Notification → message}/style/index.js +0 -0
  57. package/lib/message/style/index.less +1 -0
  58. package/lib/{Notification → notification}/index.d.ts +0 -0
  59. package/lib/{Notification → notification}/index.js +0 -0
  60. package/lib/notification/style/index.d.ts +2 -0
  61. package/lib/notification/style/index.js +5 -0
  62. package/lib/notification/style/index.less +1 -0
  63. package/package.json +5 -5
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BreadcrumbItemProps, BreadcrumbProps } from 'antd';
3
2
  export type { BreadcrumbItemProps, BreadcrumbProps };
4
3
  declare const Breadcrumb: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxProps } from 'antd';
3
2
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
4
3
  export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
@@ -0,0 +1,4 @@
1
+ import { Drawer } from 'antd';
2
+ import { DrawerProps } from 'antd/lib/drawer';
3
+ export { DrawerProps };
4
+ export default Drawer;
@@ -0,0 +1,3 @@
1
+ import "antd/es/drawer/style";
2
+ import _Drawer from "antd/es/drawer";
3
+ export default _Drawer;
File without changes
File without changes
File without changes
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupProps } from 'antd/lib/input';
3
2
  import { TSize } from '../Input';
4
3
  export interface IGroupProps extends Omit<GroupProps, 'size'> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd';
3
2
  export default function InputNumber(props: InputNumberProps): JSX.Element;
4
3
  export type { InputNumberProps };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuDividerProps } from 'antd/lib/menu/MenuDivider';
3
2
  export interface IMenuDividerProps extends MenuDividerProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IAppList {
3
2
  logoSrc: string;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IMenuItem } from '../MenuItem';
3
2
  export type { IMenuItem } from '../MenuItem';
4
3
  interface IMenuProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  export type { PopoverProps };
4
3
  declare function Popover(props: PopoverProps): JSX.Element;
package/es/index.d.ts CHANGED
@@ -31,9 +31,9 @@ export { default as DatePicker } from './DatePicker';
31
31
  export type { DatePickerProps } from './DatePicker';
32
32
  export { default as Layout } from './Layout';
33
33
  export type { LayoutProps } from './Layout';
34
- export { default as Message } from './Message';
35
- export type { MessageArgsProps } from './Message';
36
- export { default as Notification } from './Notification';
34
+ export { default as message } from './message';
35
+ export type { MessageArgsProps } from './message';
36
+ export { default as notification } from './notification';
37
37
  export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
38
38
  export { default as Tree } from './Tree';
39
39
  export type { SkeletonProps } from './Skeleton';
@@ -52,6 +52,8 @@ export { default as Form } from './Form';
52
52
  export type { FormInstance, FormProps, FormItemProps } from './Form';
53
53
  export { default as Divider } from './Divider';
54
54
  export type { DividerProps } from './Divider';
55
+ export { default as Drawer } from './Drawer';
56
+ export type { DrawerProps } from './Drawer';
55
57
  export { default as Radio } from './Radio';
56
58
  export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
59
  export { default as Checkbox } from './Checkbox';
package/es/index.js CHANGED
@@ -15,8 +15,8 @@ export { default as Upload } from './Upload';
15
15
  export { default as ConfigProvider } from './ConfigProvider';
16
16
  export { default as DatePicker } from './DatePicker';
17
17
  export { default as Layout } from './Layout';
18
- export { default as Message } from './Message';
19
- export { default as Notification } from './Notification';
18
+ export { default as message } from './message';
19
+ export { default as notification } from './notification';
20
20
  export { default as Tree } from './Tree';
21
21
  export { default as Skeleton } from './Skeleton';
22
22
  export { default as Row } from './Row';
@@ -26,6 +26,7 @@ export { default as Switch } from './Switch';
26
26
  export { default as Steps } from './Steps';
27
27
  export { default as Form } from './Form';
28
28
  export { default as Divider } from './Divider';
29
+ export { default as Drawer } from './Drawer';
29
30
  export { default as Radio } from './Radio';
30
31
  export { default as Checkbox } from './Checkbox';
31
32
  export { default as Modal } from './Modal';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BreadcrumbItemProps, BreadcrumbProps } from 'antd';
3
2
  export type { BreadcrumbItemProps, BreadcrumbProps };
4
3
  declare const Breadcrumb: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CheckboxProps } from 'antd';
3
2
  import { CheckboxGroupProps } from 'antd/lib/checkbox';
4
3
  export type { CheckboxValueType, CheckboxOptionType } from 'antd/es/checkbox/Group';
@@ -0,0 +1,4 @@
1
+ import { Drawer } from 'antd';
2
+ import { DrawerProps } from 'antd/lib/drawer';
3
+ export { DrawerProps };
4
+ export default Drawer;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ require("antd/es/drawer/style");
9
+
10
+ var _drawer = _interopRequireDefault(require("antd/es/drawer"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ var _default = _drawer.default;
15
+ exports.default = _default;
File without changes
File without changes
File without changes
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Empty: () => JSX.Element;
3
2
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupProps } from 'antd/lib/input';
3
2
  import { TSize } from '../Input';
4
3
  export interface IGroupProps extends Omit<GroupProps, 'size'> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd';
3
2
  export default function InputNumber(props: InputNumberProps): JSX.Element;
4
3
  export type { InputNumberProps };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuDividerProps } from 'antd/lib/menu/MenuDivider';
3
2
  export interface IMenuDividerProps extends MenuDividerProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IAppList {
3
2
  logoSrc: string;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IMenuItem } from '../MenuItem';
3
2
  export type { IMenuItem } from '../MenuItem';
4
3
  interface IMenuProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverProps } from 'antd';
3
2
  export type { PopoverProps };
4
3
  declare function Popover(props: PopoverProps): JSX.Element;
package/lib/index.d.ts CHANGED
@@ -31,9 +31,9 @@ export { default as DatePicker } from './DatePicker';
31
31
  export type { DatePickerProps } from './DatePicker';
32
32
  export { default as Layout } from './Layout';
33
33
  export type { LayoutProps } from './Layout';
34
- export { default as Message } from './Message';
35
- export type { MessageArgsProps } from './Message';
36
- export { default as Notification } from './Notification';
34
+ export { default as message } from './message';
35
+ export type { MessageArgsProps } from './message';
36
+ export { default as notification } from './notification';
37
37
  export type { TreeProps, AntTreeNodeProps as TreeNodeProps, DataNode as TreeDataNode, } from './Tree';
38
38
  export { default as Tree } from './Tree';
39
39
  export type { SkeletonProps } from './Skeleton';
@@ -52,6 +52,8 @@ export { default as Form } from './Form';
52
52
  export type { FormInstance, FormProps, FormItemProps } from './Form';
53
53
  export { default as Divider } from './Divider';
54
54
  export type { DividerProps } from './Divider';
55
+ export { default as Drawer } from './Drawer';
56
+ export type { DrawerProps } from './Drawer';
55
57
  export { default as Radio } from './Radio';
56
58
  export type { RadioProps, RadioChangeEvent, RadioGroupProps } from './Radio';
57
59
  export { default as Checkbox } from './Checkbox';
package/lib/index.js CHANGED
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "Divider", {
57
57
  return _Divider.default;
58
58
  }
59
59
  });
60
+ Object.defineProperty(exports, "Drawer", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _Drawer.default;
64
+ }
65
+ });
60
66
  Object.defineProperty(exports, "Dropdown", {
61
67
  enumerable: true,
62
68
  get: function get() {
@@ -105,12 +111,6 @@ Object.defineProperty(exports, "Menu", {
105
111
  return _Menu.default;
106
112
  }
107
113
  });
108
- Object.defineProperty(exports, "Message", {
109
- enumerable: true,
110
- get: function get() {
111
- return _Message.default;
112
- }
113
- });
114
114
  Object.defineProperty(exports, "Modal", {
115
115
  enumerable: true,
116
116
  get: function get() {
@@ -123,12 +123,6 @@ Object.defineProperty(exports, "Navigator", {
123
123
  return _Navigator.default;
124
124
  }
125
125
  });
126
- Object.defineProperty(exports, "Notification", {
127
- enumerable: true,
128
- get: function get() {
129
- return _Notification.default;
130
- }
131
- });
132
126
  Object.defineProperty(exports, "Popover", {
133
127
  enumerable: true,
134
128
  get: function get() {
@@ -219,6 +213,18 @@ Object.defineProperty(exports, "Upload", {
219
213
  return _Upload.default;
220
214
  }
221
215
  });
216
+ Object.defineProperty(exports, "message", {
217
+ enumerable: true,
218
+ get: function get() {
219
+ return _message.default;
220
+ }
221
+ });
222
+ Object.defineProperty(exports, "notification", {
223
+ enumerable: true,
224
+ get: function get() {
225
+ return _notification.default;
226
+ }
227
+ });
222
228
 
223
229
  var _Button = _interopRequireDefault(require("./Button"));
224
230
 
@@ -252,9 +258,9 @@ var _DatePicker = _interopRequireDefault(require("./DatePicker"));
252
258
 
253
259
  var _Layout = _interopRequireDefault(require("./Layout"));
254
260
 
255
- var _Message = _interopRequireDefault(require("./Message"));
261
+ var _message = _interopRequireDefault(require("./message"));
256
262
 
257
- var _Notification = _interopRequireDefault(require("./Notification"));
263
+ var _notification = _interopRequireDefault(require("./notification"));
258
264
 
259
265
  var _Tree = _interopRequireDefault(require("./Tree"));
260
266
 
@@ -274,6 +280,8 @@ var _Form = _interopRequireDefault(require("./Form"));
274
280
 
275
281
  var _Divider = _interopRequireDefault(require("./Divider"));
276
282
 
283
+ var _Drawer = _interopRequireDefault(require("./Drawer"));
284
+
277
285
  var _Radio = _interopRequireDefault(require("./Radio"));
278
286
 
279
287
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
File without changes
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ require("../../style");
4
+
5
+ require("./index.less");
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -76,6 +76,8 @@
76
76
  "@testing-library/react": "^12.1.2",
77
77
  "@types/jest": "^27.0.3",
78
78
  "@types/lodash": "^4.14.178",
79
+ "@types/react": "^17.0.0",
80
+ "@types/react-dom": "^17.0.0",
79
81
  "@types/react-table": "^7.7.9",
80
82
  "@types/react-truncate": "^2.3.4",
81
83
  "@types/react-window": "^1.8.5",
@@ -100,6 +102,8 @@
100
102
  "postcss-import": "^14.1.0",
101
103
  "postcss-less": "^6.0.0",
102
104
  "prettier": "^2.2.1",
105
+ "react": "17",
106
+ "react-dom": "17",
103
107
  "stylelint": "^14.5.3",
104
108
  "stylelint-config-prettier": "^9.0.3",
105
109
  "stylelint-config-standard": "^25.0.0",
@@ -108,10 +112,6 @@
108
112
  "yorkie": "^2.0.0",
109
113
  "zx": "^6.1.0"
110
114
  },
111
- "peerDependencies": {
112
- "react": "^16.12.0 || ^17.0.0",
113
- "react-dom": "^16.12.0 || ^17.0.0"
114
- },
115
115
  "jest": {
116
116
  "setupFiles": [
117
117
  "./jest/setupTests.js"