@aloudata/aloudata-design 0.3.2 → 0.3.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/es/Breadcrumb/index.d.ts +1 -0
- package/es/Button/index.js +3 -2
- package/es/Button/style/index.less +135 -126
- package/es/Button/style/variables.less +53 -53
- package/es/Checkbox/index.d.ts +1 -0
- package/es/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/es/ConfigProvider/defaultRenderEmpty.js +37 -0
- package/es/ConfigProvider/sizeContext.d.ts +9 -0
- package/es/ConfigProvider/sizeContext.js +12 -0
- package/es/Dropdown/Button.js +3 -2
- package/es/Empty/image/Authority.d.ts +1 -0
- package/es/Empty/image/Dataspace.d.ts +1 -0
- package/es/Empty/image/Search.d.ts +1 -0
- package/es/Empty/image/Simple.d.ts +1 -0
- package/es/Empty/image/Worksheet.d.ts +1 -0
- package/es/Empty/image/empty.d.ts +1 -0
- package/es/Icon/icons.json +418 -0
- package/es/Input/components/Group/index.d.ts +3 -1
- package/es/Input/components/Group/index.js +6 -12
- package/es/Input/components/Input/index.d.ts +3 -2
- package/es/Input/components/Input/index.js +11 -23
- package/es/Input/components/Password/index.js +11 -16
- package/es/Input/components/TextArea/index.d.ts +8 -1
- package/es/Input/components/TextArea/index.js +8 -1
- package/es/Input/style/index.less +180 -102
- package/es/InputNumber/index.d.ts +1 -0
- package/es/InputNumber/style/index.less +69 -69
- package/es/Menu/Divider.d.ts +1 -0
- package/es/Modal/index.js +4 -7
- package/es/Modal/style/index.less +48 -45
- package/es/Navigator/components/Header/index.d.ts +1 -0
- package/es/Navigator/components/Menu/index.d.ts +1 -0
- package/es/PageHeader/index.d.ts +3 -0
- package/es/PageHeader/index.js +3 -0
- package/es/PageHeader/style/index.d.ts +2 -0
- package/es/PageHeader/style/index.js +2 -0
- package/es/PageHeader/style/index.less +1 -0
- package/es/Popover/index.d.ts +1 -0
- package/es/Radio/components/Group/index.d.ts +6 -0
- package/es/Radio/components/Group/index.js +74 -0
- package/es/Radio/components/Radio/index.d.ts +3 -0
- package/es/Radio/components/Radio/index.js +95 -0
- package/es/Radio/index.d.ts +9 -2
- package/es/Radio/index.js +5 -3
- package/es/Radio/interface/radio.d.ts +24 -0
- package/es/Radio/interface/radio.js +1 -0
- package/es/Radio/interface/radioGroup.d.ts +42 -0
- package/es/Radio/interface/radioGroup.js +1 -0
- package/es/Radio/style/index.less +348 -0
- package/es/Select/index.js +1 -1
- package/es/Select/rc-select/OptionList.js +3 -2
- package/es/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/es/Select/style/index.less +50 -49
- package/es/Select/style/variables.less +45 -45
- package/es/Select/utils/iconUtil.d.ts +2 -2
- package/es/Select/utils/iconUtil.js +6 -4
- package/es/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/es/Steps/components/ProcessIcon/index.js +8 -0
- package/es/Steps/components/Step/index.d.ts +20 -0
- package/es/Steps/components/Step/index.js +45 -0
- package/es/Steps/index.d.ts +36 -2
- package/es/Steps/index.js +30 -1
- package/es/Steps/matchMedia.mock.d.ts +1 -0
- package/es/Steps/matchMedia.mock.js +17 -0
- package/es/Steps/style/index.less +251 -0
- package/es/Switch/index.d.ts +46 -2
- package/es/Switch/index.js +71 -1
- package/es/Switch/style/index.less +129 -0
- package/es/Table/Table.d.ts +2 -1
- package/es/Table/Table.js +223 -330
- package/es/Table/components/Empty/index.d.ts +3 -0
- package/es/Table/components/Empty/index.js +16 -0
- package/es/Table/components/Loading/index.d.ts +3 -0
- package/es/Table/components/Loading/index.js +18 -0
- package/es/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/es/Table/components/TableBodyRowList/index.js +91 -0
- package/es/Table/components/TableHead/index.d.ts +23 -0
- package/es/Table/components/TableHead/index.js +262 -0
- package/es/Table/constant.d.ts +1 -0
- package/es/Table/constant.js +1 -0
- package/es/Table/hooks/useFrame.d.ts +7 -0
- package/es/Table/hooks/useFrame.js +90 -0
- package/es/Table/hooks/useTableColumn.d.ts +28 -0
- package/es/Table/hooks/useTableColumn.js +53 -0
- package/es/Table/interface.d.ts +3 -2
- package/es/Table/style/index.less +41 -37
- package/es/Table/style/index.less.d.ts +126 -0
- package/es/Table/style/variable.less +10 -0
- package/es/Table/style/variable.less.d.ts +7 -0
- package/es/Table/utils.d.ts +15 -0
- package/es/Table/utils.js +131 -0
- package/es/Tabs/index.js +3 -2
- package/es/Tabs/style/index.less +25 -25
- package/es/_utils/hooks/useId.d.ts +4 -0
- package/es/_utils/hooks/useId.js +23 -0
- package/es/index.d.ts +7 -5
- package/es/index.js +2 -1
- package/es/locale-provider/index.d.ts +5 -1
- package/es/style/index.d.ts +0 -1
- package/es/style/index.js +0 -1
- package/es/style/index.less +2 -2
- package/es/style/themes/default/index.less +30 -30
- package/lib/Breadcrumb/index.d.ts +1 -0
- package/lib/Button/index.js +5 -3
- package/lib/Button/style/index.less +135 -126
- package/lib/Button/style/variables.less +53 -53
- package/lib/Checkbox/index.d.ts +1 -0
- package/lib/ConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/lib/ConfigProvider/defaultRenderEmpty.js +55 -0
- package/lib/ConfigProvider/sizeContext.d.ts +9 -0
- package/lib/ConfigProvider/sizeContext.js +30 -0
- package/lib/Dropdown/Button.js +7 -5
- package/lib/Empty/image/Authority.d.ts +1 -0
- package/lib/Empty/image/Dataspace.d.ts +1 -0
- package/lib/Empty/image/Search.d.ts +1 -0
- package/lib/Empty/image/Simple.d.ts +1 -0
- package/lib/Empty/image/Worksheet.d.ts +1 -0
- package/lib/Empty/image/empty.d.ts +1 -0
- package/lib/Icon/icons.json +418 -0
- package/lib/Input/components/Group/index.d.ts +3 -1
- package/lib/Input/components/Group/index.js +7 -12
- package/lib/Input/components/Input/index.d.ts +3 -2
- package/lib/Input/components/Input/index.js +13 -23
- package/lib/Input/components/Password/index.js +13 -17
- package/lib/Input/components/TextArea/index.d.ts +8 -1
- package/lib/Input/components/TextArea/index.js +10 -1
- package/lib/Input/style/index.less +180 -102
- package/lib/InputNumber/index.d.ts +1 -0
- package/lib/InputNumber/style/index.less +69 -69
- package/lib/Menu/Divider.d.ts +1 -0
- package/lib/Modal/index.js +8 -10
- package/lib/Modal/style/index.less +48 -45
- package/lib/Navigator/components/Header/index.d.ts +1 -0
- package/lib/Navigator/components/Menu/index.d.ts +1 -0
- package/lib/PageHeader/index.d.ts +3 -0
- package/lib/PageHeader/index.js +15 -0
- package/lib/PageHeader/style/index.d.ts +2 -0
- package/lib/PageHeader/style/index.js +5 -0
- package/lib/PageHeader/style/index.less +1 -0
- package/lib/Popover/index.d.ts +1 -0
- package/lib/Radio/components/Group/index.d.ts +6 -0
- package/lib/Radio/components/Group/index.js +95 -0
- package/lib/Radio/components/Radio/index.d.ts +3 -0
- package/lib/Radio/components/Radio/index.js +115 -0
- package/lib/Radio/index.d.ts +9 -2
- package/lib/Radio/index.js +5 -3
- package/lib/Radio/interface/radio.d.ts +24 -0
- package/lib/Radio/interface/radio.js +5 -0
- package/lib/Radio/interface/radioGroup.d.ts +42 -0
- package/lib/Radio/interface/radioGroup.js +5 -0
- package/lib/Radio/style/index.less +348 -0
- package/lib/Select/index.js +1 -1
- package/lib/Select/rc-select/OptionList.js +7 -5
- package/lib/Select/rc-select/hooks/useOptions.d.ts +1 -1
- package/lib/Select/style/index.less +50 -49
- package/lib/Select/style/variables.less +45 -45
- package/lib/Select/utils/iconUtil.d.ts +2 -2
- package/lib/Select/utils/iconUtil.js +10 -8
- package/lib/Steps/components/ProcessIcon/index.d.ts +6 -0
- package/lib/Steps/components/ProcessIcon/index.js +19 -0
- package/lib/Steps/components/Step/index.d.ts +20 -0
- package/lib/Steps/components/Step/index.js +61 -0
- package/lib/Steps/index.d.ts +36 -2
- package/lib/Steps/index.js +34 -1
- package/lib/Steps/matchMedia.mock.d.ts +1 -0
- package/lib/Steps/matchMedia.mock.js +17 -0
- package/lib/Steps/style/index.less +251 -0
- package/lib/Switch/index.d.ts +46 -2
- package/lib/Switch/index.js +78 -1
- package/lib/Switch/style/index.less +129 -0
- package/lib/Table/Table.d.ts +2 -1
- package/lib/Table/Table.js +229 -332
- package/lib/Table/components/Empty/index.d.ts +3 -0
- package/lib/Table/components/Empty/index.js +28 -0
- package/lib/Table/components/Loading/index.d.ts +3 -0
- package/lib/Table/components/Loading/index.js +31 -0
- package/lib/Table/components/TableBodyRowList/index.d.ts +13 -0
- package/lib/Table/components/TableBodyRowList/index.js +110 -0
- package/lib/Table/components/TableHead/index.d.ts +23 -0
- package/lib/Table/components/TableHead/index.js +286 -0
- package/lib/Table/constant.d.ts +1 -0
- package/lib/Table/constant.js +1 -0
- package/lib/Table/hooks/useFrame.d.ts +7 -0
- package/lib/Table/hooks/useFrame.js +98 -0
- package/lib/Table/hooks/useTableColumn.d.ts +28 -0
- package/lib/Table/hooks/useTableColumn.js +66 -0
- package/lib/Table/interface.d.ts +3 -2
- package/lib/Table/style/index.less +41 -37
- package/lib/Table/style/index.less.d.ts +126 -0
- package/lib/Table/style/variable.less +10 -0
- package/lib/Table/style/variable.less.d.ts +7 -0
- package/lib/Table/utils.d.ts +15 -0
- package/lib/Table/utils.js +147 -0
- package/lib/Tabs/index.js +5 -3
- package/lib/Tabs/style/index.less +25 -25
- package/lib/_utils/hooks/useId.d.ts +4 -0
- package/lib/_utils/hooks/useId.js +36 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.js +8 -0
- package/lib/locale-provider/index.d.ts +5 -1
- package/lib/style/index.d.ts +0 -1
- package/lib/style/index.js +0 -2
- package/lib/style/index.less +2 -2
- package/lib/style/themes/default/index.less +30 -30
- package/package.json +2 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getUUID = getUUID;
|
|
7
|
+
exports.isBrowserClient = void 0;
|
|
8
|
+
|
|
9
|
+
var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
|
|
13
|
+
// @ts-nocheck
|
|
14
|
+
var uuid = 0;
|
|
15
|
+
/** Is client side and not jsdom */
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
17
|
+
|
|
18
|
+
var isBrowserClient = process.env.NODE_ENV !== 'test' && (0, _canUseDom.default)();
|
|
19
|
+
/** Get unique id for accessibility usage */
|
|
20
|
+
|
|
21
|
+
exports.isBrowserClient = isBrowserClient;
|
|
22
|
+
|
|
23
|
+
function getUUID() {
|
|
24
|
+
var retId; // Test never reach
|
|
25
|
+
|
|
26
|
+
/* istanbul ignore if */
|
|
27
|
+
|
|
28
|
+
if (isBrowserClient) {
|
|
29
|
+
retId = uuid;
|
|
30
|
+
uuid += 1;
|
|
31
|
+
} else {
|
|
32
|
+
retId = 'TEST_OR_SSR';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return retId;
|
|
36
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference path="../typings.d.ts" />
|
|
2
2
|
export { default as Button } from './Button';
|
|
3
|
-
export type { IButtonProps as ButtonProps,
|
|
3
|
+
export type { IButtonProps as ButtonProps, ButtonType } from './Button';
|
|
4
4
|
export { default as Dropdown } from './Dropdown';
|
|
5
5
|
export type { ActionType, IDropdownProps as DropdownProps, PlacementType } from './Dropdown';
|
|
6
6
|
export { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
7
7
|
export { default as Menu } from './Menu';
|
|
8
8
|
export type { IMenuProps as MenuProps } from './Menu';
|
|
9
9
|
export { default as Input } from './Input';
|
|
10
|
-
export type { IInputProps as InputProps,
|
|
10
|
+
export type { IInputProps as InputProps, InputRef, TextAreaRef } from './Input';
|
|
11
11
|
export { default as Tabs } from './Tabs';
|
|
12
12
|
export type { ITabsProps as TabsProps, TabsSize } from './Tabs';
|
|
13
13
|
export { default as Tooltip } from './Tooltip';
|
|
@@ -46,9 +46,9 @@ export type { SpaceProps } from './Space';
|
|
|
46
46
|
export { default as Space } from './Space';
|
|
47
47
|
export type { SpinProps } from './Spin';
|
|
48
48
|
export { default as Spin } from './Spin';
|
|
49
|
-
export type { SwitchProps } from './Switch';
|
|
49
|
+
export type { ISwitchProps as SwitchProps } from './Switch';
|
|
50
50
|
export { default as Switch } from './Switch';
|
|
51
|
-
export type { StepProps, StepsProps } from './Steps';
|
|
51
|
+
export type { IStepProps as StepProps, IStepsProps as StepsProps } from './Steps';
|
|
52
52
|
export { default as Steps } from './Steps';
|
|
53
53
|
export { default as Form } from './Form';
|
|
54
54
|
export type { FormInstance, FormProps, FormItemProps } from './Form';
|
|
@@ -57,7 +57,7 @@ export type { DividerProps } from './Divider';
|
|
|
57
57
|
export { default as Drawer } from './Drawer';
|
|
58
58
|
export type { DrawerProps } from './Drawer';
|
|
59
59
|
export { default as Radio } from './Radio';
|
|
60
|
-
export type { RadioProps,
|
|
60
|
+
export type { RadioProps, RadioGroupProps } from './Radio';
|
|
61
61
|
export { default as Checkbox } from './Checkbox';
|
|
62
62
|
export type { CheckboxProps, CheckboxOptionType } from './Checkbox';
|
|
63
63
|
export { default as Modal } from './Modal';
|
|
@@ -73,3 +73,5 @@ export type { IEmptyProps as EmptyProps } from './Empty';
|
|
|
73
73
|
export { default as Avatar } from './Avatar';
|
|
74
74
|
export type { IAvatarProps as AvatarProps } from './Avatar';
|
|
75
75
|
export { default as Icon } from './Icon';
|
|
76
|
+
export type { PageHeaderProps } from './PageHeader';
|
|
77
|
+
export { default as PageHeader } from './PageHeader';
|
package/lib/index.js
CHANGED
|
@@ -129,6 +129,12 @@ Object.defineProperty(exports, "Navigator", {
|
|
|
129
129
|
return _Navigator.default;
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "PageHeader", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _PageHeader.default;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
132
138
|
Object.defineProperty(exports, "Popover", {
|
|
133
139
|
enumerable: true,
|
|
134
140
|
get: function get() {
|
|
@@ -308,4 +314,6 @@ var _Avatar = _interopRequireDefault(require("./Avatar"));
|
|
|
308
314
|
|
|
309
315
|
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
310
316
|
|
|
317
|
+
var _PageHeader = _interopRequireDefault(require("./PageHeader"));
|
|
318
|
+
|
|
311
319
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,10 +4,13 @@ import type { PickerLocale as DatePickerLocale } from 'antd/es/date-picker/gener
|
|
|
4
4
|
import type { TransferLocale as TransferLocaleForEmpty } from 'antd/es/empty';
|
|
5
5
|
import type { ModalLocale } from 'antd/es/modal/locale';
|
|
6
6
|
import type { PaginationLocale } from 'antd/es/pagination/Pagination';
|
|
7
|
-
import type { PopconfirmLocale } from 'antd/es/popconfirm';
|
|
8
7
|
import type { TableLocale } from 'antd/es/table/interface';
|
|
9
8
|
import type { TransferLocale } from 'antd/es/transfer';
|
|
10
9
|
import type { UploadLocale } from 'antd/es/upload/interface';
|
|
10
|
+
interface PopconfirmLocale {
|
|
11
|
+
okText: string;
|
|
12
|
+
cancelText: string;
|
|
13
|
+
}
|
|
11
14
|
export declare const ANT_MARK = "internalMark";
|
|
12
15
|
export interface Locale {
|
|
13
16
|
locale: string;
|
|
@@ -59,3 +62,4 @@ export default class LocaleProvider extends React.Component<LocaleProviderProps,
|
|
|
59
62
|
};
|
|
60
63
|
render(): JSX.Element;
|
|
61
64
|
}
|
|
65
|
+
export {};
|
package/lib/style/index.d.ts
CHANGED
package/lib/style/index.js
CHANGED
package/lib/style/index.less
CHANGED
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
@ald-prefix: ant;
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
@height-base: 28px;
|
|
8
|
-
@height-lg: 32px;
|
|
9
|
-
@height-sm: 22px;
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
// base 不分大小写情况
|
|
12
7
|
@border-radius-base: 8px;
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@
|
|
36
|
-
@
|
|
8
|
+
@line-height-base:20px;
|
|
9
|
+
@font-size-base:14px;
|
|
10
|
+
|
|
11
|
+
// large
|
|
12
|
+
@font-size-large:16px;
|
|
13
|
+
@line-height-large:24px;
|
|
14
|
+
@padding-top-large:6px;
|
|
15
|
+
@padding-bottom-large:6px;
|
|
16
|
+
@padding-left-large:12px;
|
|
17
|
+
@padding-right-large:12px;
|
|
18
|
+
@border-radius-large:8px;
|
|
19
|
+
|
|
20
|
+
// middle
|
|
21
|
+
@font-size-middle:14px;
|
|
22
|
+
@line-height-middle:20px;
|
|
23
|
+
@padding-top-middle:6px;
|
|
24
|
+
@padding-bottom-middle:6px;
|
|
25
|
+
@padding-left-middle:12px;
|
|
26
|
+
@padding-right-middle:12px;
|
|
27
|
+
@border-radius-middle:6px;
|
|
28
|
+
|
|
29
|
+
// small
|
|
30
|
+
@font-size-small:12px;
|
|
31
|
+
@line-height-small:16px;
|
|
32
|
+
@padding-top-small:6px;
|
|
33
|
+
@padding-bottom-small:6px;
|
|
34
|
+
@padding-left-small:8px;
|
|
35
|
+
@padding-right-small:8px;
|
|
36
|
+
@border-radius-small:4px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
+
"@aloudata/icons-react": "^0.0.8",
|
|
55
56
|
"@ant-design/icons": "^4.7.0",
|
|
56
57
|
"antd": "^4.21.5",
|
|
57
58
|
"babel-preset-react-app": "^10.0.1",
|