@aloudata/aloudata-design 1.4.0 → 1.4.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.
- package/dist/Avatar/component/Avatar/index.d.ts +3 -3
- package/dist/Avatar/component/Avatar/index.js +2 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/Checkbox/index.d.ts +3 -3
- package/dist/Checkbox/index.js +1 -1
- package/dist/Dropdown/index.js +1 -1
- package/dist/Form/index.d.ts +27 -7
- package/dist/Form/index.js +46 -7
- package/dist/Input/components/Input/index.d.ts +3 -2
- package/dist/Input/components/Input/index.js +6 -4
- package/dist/Menu/SubMenu.d.ts +1 -1
- package/dist/Menu/SubMenu.js +1 -1
- package/dist/Radio/components/Group/index.d.ts +1 -1
- package/dist/Select/components/MultipleOption.d.ts +1 -1
- package/dist/Select/components/SingleOption.d.ts +1 -1
- package/dist/Skeleton/index.d.ts +2 -2
- package/dist/Skeleton/index.js +1 -1
- package/dist/Space/index.d.ts +2 -2
- package/dist/Space/index.js +1 -1
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.js +1 -1
- package/dist/Tree/index.d.ts +5 -5
- package/dist/Upload/index.d.ts +2 -2
- package/dist/locale/en_US.js +3 -3
- package/dist/locale/zh_CN.js +3 -3
- package/dist/locale-provider/LocaleReceiver.d.ts +2 -2
- package/dist/locale-provider/LocaleReceiver.js +1 -1
- package/dist/locale-provider/index.d.ts +7 -7
- package/dist/locale-provider/index.js +2 -2
- package/dist/notification/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AvatarProps as antdAvatarProps } from 'antd/lib/avatar/avatar';
|
|
2
|
+
import Group from 'antd/lib/avatar/group';
|
|
1
3
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
import Group from 'antd/es/avatar/group';
|
|
4
|
-
export type { GroupProps } from 'antd/es/avatar/group';
|
|
4
|
+
export type { GroupProps } from 'antd/lib/avatar/group';
|
|
5
5
|
declare type TSize = 'large' | 'middle' | 'small' | number;
|
|
6
6
|
export interface IAvatarProps extends Omit<antdAvatarProps, 'size'> {
|
|
7
7
|
/**
|
|
@@ -6,9 +6,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import InternalAvatar from 'antd/es/avatar/avatar';
|
|
9
|
+
import InternalAvatar from 'antd/lib/avatar/avatar';
|
|
11
10
|
import classNames from 'classnames';
|
|
11
|
+
import * as React from 'react';
|
|
12
12
|
var ZERO = 0;
|
|
13
13
|
|
|
14
14
|
var Avatar = function Avatar(props) {
|
package/dist/Avatar/index.js
CHANGED
package/dist/Checkbox/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ICheckboxGroupProps, ICheckboxProps } from './type';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { CheckboxChangeEvent } from 'antd/lib/checkbox/Checkbox';
|
|
4
|
+
export type { CheckboxOptionType, CheckboxValueType, } from 'antd/lib/checkbox/Group';
|
|
5
|
+
export type { ICheckboxProps, ICheckboxGroupProps };
|
|
5
6
|
declare function Checkbox(props: ICheckboxProps): JSX.Element;
|
|
6
7
|
declare namespace Checkbox {
|
|
7
8
|
var Group: (props: ICheckboxGroupProps) => JSX.Element;
|
|
8
9
|
}
|
|
9
|
-
export type { ICheckboxProps, ICheckboxGroupProps };
|
|
10
10
|
export default Checkbox;
|
package/dist/Checkbox/index.js
CHANGED
|
@@ -6,9 +6,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
9
|
-
import React from 'react';
|
|
10
9
|
import { Checkbox as AntdCheckbox } from 'antd';
|
|
11
10
|
import classNames from 'classnames';
|
|
11
|
+
import React from 'react';
|
|
12
12
|
import CheckboxGroup from "./component/CheckboxGroup";
|
|
13
13
|
|
|
14
14
|
function Checkbox(props) {
|
package/dist/Dropdown/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
13
13
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
14
|
|
|
15
15
|
import { Dropdown as AntdDropdown } from 'antd';
|
|
16
|
-
import getPlacements from 'antd/
|
|
16
|
+
import getPlacements from 'antd/lib/_util/placements';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
18
|
import React, { useMemo } from 'react';
|
|
19
19
|
import { addPopupOffset } from "../Menu";
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { FormProps } from 'antd/lib/form/Form';
|
|
4
|
-
import { FormItemProps } from 'antd/lib/form/FormItem';
|
|
5
|
-
import { FormListProps } from 'antd/lib/form/FormList';
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { FormProvider } from 'antd/lib/form/context';
|
|
2
|
+
import ErrorList, { type ErrorListProps } from 'antd/lib/form/ErrorList';
|
|
3
|
+
import { useForm, useWatch, type FormInstance, type FormProps } from 'antd/lib/form/Form';
|
|
4
|
+
import Item, { type FormItemProps } from 'antd/lib/form/FormItem';
|
|
5
|
+
import List, { type FormListFieldData, type FormListOperation, type FormListProps } from 'antd/lib/form/FormList';
|
|
6
|
+
import useFormInstance from 'antd/lib/form/hooks/useFormInstance';
|
|
7
|
+
import type { Rule, RuleObject, RuleRender } from 'rc-field-form/lib/interface';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
declare const AldForm: <Values = any>(props: FormProps<Values> & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & {
|
|
12
|
+
ref?: React.Ref<FormInstance<Values>> | undefined;
|
|
13
|
+
}) => React.ReactElement;
|
|
14
|
+
declare type InternalFormType = typeof AldForm;
|
|
15
|
+
declare type CompoundedComponent = InternalFormType & {
|
|
16
|
+
useForm: typeof useForm;
|
|
17
|
+
useFormInstance: typeof useFormInstance;
|
|
18
|
+
useWatch: typeof useWatch;
|
|
19
|
+
Item: typeof Item;
|
|
20
|
+
List: typeof List;
|
|
21
|
+
ErrorList: typeof ErrorList;
|
|
22
|
+
Provider: typeof FormProvider;
|
|
23
|
+
/** @deprecated Only for warning usage. Do not use. */
|
|
24
|
+
create: () => void;
|
|
25
|
+
};
|
|
26
|
+
declare const Form: CompoundedComponent;
|
|
27
|
+
export type { FormInstance, FormProps, FormItemProps, ErrorListProps, Rule, RuleObject, RuleRender, FormListProps, FormListFieldData, FormListOperation, };
|
|
8
28
|
export default Form;
|
package/dist/Form/index.js
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var _excluded = ["children", "size"];
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
|
|
5
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
+
|
|
7
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
+
|
|
9
|
+
import { FormProvider } from 'antd/lib/form/context';
|
|
10
|
+
import ErrorList from 'antd/lib/form/ErrorList';
|
|
11
|
+
import InternalForm, { useForm, useWatch } from 'antd/lib/form/Form';
|
|
12
|
+
import Item from 'antd/lib/form/FormItem';
|
|
13
|
+
import List from 'antd/lib/form/FormList';
|
|
14
|
+
import useFormInstance from 'antd/lib/form/hooks/useFormInstance';
|
|
15
|
+
import warning from 'antd/lib/_util/warning';
|
|
16
|
+
import React, { forwardRef } from 'react';
|
|
17
|
+
import SizeContext, { SizeContextProvider } from "../ConfigProvider/sizeContext";
|
|
18
|
+
var AldForm = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
|
+
var contextSize = React.useContext(SizeContext);
|
|
20
|
+
|
|
21
|
+
var children = props.children,
|
|
22
|
+
_props$size = props.size,
|
|
23
|
+
size = _props$size === void 0 ? contextSize : _props$size,
|
|
24
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
|
|
26
|
+
return /*#__PURE__*/React.createElement(SizeContextProvider, {
|
|
27
|
+
size: size
|
|
28
|
+
}, /*#__PURE__*/React.createElement(InternalForm, _extends({
|
|
29
|
+
size: size
|
|
30
|
+
}, restProps, {
|
|
31
|
+
ref: ref
|
|
32
|
+
}), children));
|
|
33
|
+
});
|
|
34
|
+
var Form = AldForm;
|
|
35
|
+
Form.Item = Item;
|
|
36
|
+
Form.List = List;
|
|
37
|
+
Form.ErrorList = ErrorList;
|
|
38
|
+
Form.useForm = useForm;
|
|
39
|
+
Form.useFormInstance = useFormInstance;
|
|
40
|
+
Form.useWatch = useWatch;
|
|
41
|
+
Form.Provider = FormProvider;
|
|
42
|
+
|
|
43
|
+
Form.create = function () {
|
|
44
|
+
warning(false, 'Form', 'antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.');
|
|
45
|
+
};
|
|
46
|
+
|
|
8
47
|
export default Form;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
1
|
import type { InputProps } from 'antd/lib/input/Input';
|
|
3
2
|
import type { InputRef } from 'rc-input';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
|
+
import { SizeType } from '../../../ConfigProvider/sizeContext';
|
|
4
5
|
interface IShowCountProps {
|
|
5
6
|
formatter: (args: {
|
|
6
7
|
count: number;
|
|
7
8
|
maxLength?: number;
|
|
8
9
|
}) => string;
|
|
9
10
|
}
|
|
10
|
-
export declare type TSize =
|
|
11
|
+
export declare type TSize = SizeType;
|
|
11
12
|
export type { InputRef };
|
|
12
13
|
declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
14
|
export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange' | 'addonAfter' | 'addonBefore'> {
|
|
@@ -6,22 +6,24 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import SizeContext from 'antd/lib/config-provider/SizeContext';
|
|
10
10
|
import AntdInput from 'antd/lib/input/Input';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
+
import React, { useContext } from 'react';
|
|
12
13
|
export function getSizeType(sizeType) {
|
|
13
|
-
if (['small', 'middle', 'large'].includes(sizeType)) {
|
|
14
|
+
if (['small', 'middle', 'large'].includes(sizeType || '')) {
|
|
14
15
|
return sizeType;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
return 'middle';
|
|
18
19
|
}
|
|
19
20
|
var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
20
|
-
var
|
|
21
|
-
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
21
|
+
var customSize = props.size,
|
|
22
22
|
className = props.className,
|
|
23
23
|
rest = _objectWithoutProperties(props, _excluded);
|
|
24
24
|
|
|
25
|
+
var contentSize = useContext(SizeContext);
|
|
26
|
+
var size = customSize || contentSize;
|
|
25
27
|
return /*#__PURE__*/React.createElement(AntdInput, _extends({}, rest, {
|
|
26
28
|
ref: ref,
|
|
27
29
|
bordered: true,
|
package/dist/Menu/SubMenu.d.ts
CHANGED
package/dist/Menu/SubMenu.js
CHANGED
|
@@ -6,9 +6,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
9
|
+
import { Menu as AntdMenu } from 'antd';
|
|
9
10
|
import classNames from 'classnames';
|
|
10
11
|
import React from 'react';
|
|
11
|
-
import { Menu as AntdMenu } from 'antd';
|
|
12
12
|
var AntdSubMenu = AntdMenu.SubMenu;
|
|
13
13
|
export default function SubMenu(props) {
|
|
14
14
|
var popupClassName = props.popupClassName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IRadioGroupProps } from '../../interface/radioGroup';
|
|
3
|
-
export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "
|
|
3
|
+
export declare const RadioGroupContext: React.Context<Omit<IRadioGroupProps, "className" | "children"> & {
|
|
4
4
|
sliderRef?: React.RefObject<HTMLDivElement> | undefined;
|
|
5
5
|
}>;
|
|
6
6
|
export default function RadioGroup(props: IRadioGroupProps): JSX.Element;
|
package/dist/Skeleton/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Skeleton from 'antd/
|
|
2
|
-
export type { SkeletonProps } from 'antd/
|
|
1
|
+
import Skeleton from 'antd/lib/skeleton/Skeleton';
|
|
2
|
+
export type { SkeletonProps } from 'antd/lib/skeleton/Skeleton';
|
|
3
3
|
export default Skeleton;
|
package/dist/Skeleton/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Skeleton from 'antd/
|
|
1
|
+
import Skeleton from 'antd/lib/skeleton/Skeleton';
|
|
2
2
|
export default Skeleton;
|
package/dist/Space/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Space, {
|
|
2
|
-
export type { SpaceSize } from 'antd/
|
|
1
|
+
import Space, { SpaceContext, SpaceProps } from 'antd/lib/space';
|
|
2
|
+
export type { SpaceSize } from 'antd/lib/space';
|
|
3
3
|
export type { SpaceProps, SpaceContext };
|
|
4
4
|
export default Space;
|
package/dist/Space/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Space from 'antd/
|
|
1
|
+
import Space from 'antd/lib/space';
|
|
2
2
|
export default Space;
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SwitchChangeEventHandler } from 'antd/
|
|
1
|
+
import { SwitchChangeEventHandler } from 'antd/lib/switch';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export type {
|
|
3
|
+
export type { SwitchChangeEventHandler, SwitchClickEventHandler, SwitchSize, } from 'antd/lib/switch';
|
|
4
4
|
export interface ISwitchProps {
|
|
5
5
|
/**
|
|
6
6
|
* @description class类名
|
package/dist/Switch/index.js
CHANGED
|
@@ -11,8 +11,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import { Switch as AntdSwitch } from 'antd';
|
|
14
|
-
import React, { useState, useEffect } from 'react';
|
|
15
14
|
import classnames from 'classnames';
|
|
15
|
+
import React, { useEffect, useState } from 'react';
|
|
16
16
|
|
|
17
17
|
var Switch = function Switch(_ref) {
|
|
18
18
|
var _ref$className = _ref.className,
|
package/dist/Tree/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DataNode } from 'antd/
|
|
1
|
+
import { DataNode } from 'antd/lib/tree';
|
|
2
|
+
import { AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, TreeProps as AntdTreeProps } from 'antd/lib/tree/Tree';
|
|
2
3
|
import RcTree from 'rc-tree';
|
|
3
|
-
import { AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, TreeProps as AntdTreeProps } from 'antd/es/tree/Tree';
|
|
4
4
|
import { BasicDataNode } from 'rc-tree/lib/interface';
|
|
5
5
|
import React, { ForwardedRef } from 'react';
|
|
6
|
-
export type { DataNode, EventDataNode } from 'antd/
|
|
7
|
-
export type { DirectoryTreeProps, ExpandAction as DirectoryTreeExpandAction, } from 'antd/
|
|
8
|
-
declare type TreeProps<T extends BasicDataNode = DataNode> = Omit<AntdTreeProps<T>, 'switcherIcon'>;
|
|
6
|
+
export type { DataNode, EventDataNode } from 'antd/lib/tree';
|
|
7
|
+
export type { DirectoryTreeProps, ExpandAction as DirectoryTreeExpandAction, } from 'antd/lib/tree/DirectoryTree';
|
|
9
8
|
export type { TreeProps, AntTreeNode, AntTreeNodeMouseEvent, AntTreeNodeExpandedEvent, AntTreeNodeCheckedEvent, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, AntTreeNodeProps, };
|
|
9
|
+
declare type TreeProps<T extends BasicDataNode = DataNode> = Omit<AntdTreeProps<T>, 'switcherIcon'>;
|
|
10
10
|
declare const _default: <T extends BasicDataNode = DataNode>(props: TreeProps<T> & {
|
|
11
11
|
ref?: React.ForwardedRef<RcTree<DataNode>> | undefined;
|
|
12
12
|
}) => React.ReactElement;
|
package/dist/Upload/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Upload } from 'antd';
|
|
2
|
-
export type {
|
|
3
|
-
export type {
|
|
2
|
+
export type { DraggerProps } from 'antd/lib/upload/Dragger';
|
|
3
|
+
export type { RcFile, UploadChangeParam, UploadFile, UploadListProps, UploadProps, } from 'antd/lib/upload/interface';
|
|
4
4
|
export default Upload;
|
package/dist/locale/en_US.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Calendar from 'antd/lib/calendar/locale/en_US';
|
|
3
|
+
import DatePicker from 'antd/lib/date-picker/locale/en_US';
|
|
4
|
+
import TimePicker from 'antd/lib/time-picker/locale/en_US';
|
|
2
5
|
import Pagination from 'rc-pagination/lib/locale/en_US';
|
|
3
|
-
import Calendar from 'antd/es/calendar/locale/en_US';
|
|
4
|
-
import DatePicker from 'antd/es/date-picker/locale/en_US';
|
|
5
|
-
import TimePicker from 'antd/es/time-picker/locale/en_US';
|
|
6
6
|
var typeTemplate = '${label} is not a valid ${type}';
|
|
7
7
|
var localeValues = {
|
|
8
8
|
locale: 'en',
|
package/dist/locale/zh_CN.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable no-template-curly-in-string */
|
|
2
|
+
import Calendar from 'antd/lib/calendar/locale/zh_CN';
|
|
3
|
+
import DatePicker from 'antd/lib/date-picker/locale/zh_CN';
|
|
4
|
+
import TimePicker from 'antd/lib/time-picker/locale/zh_CN';
|
|
2
5
|
import Pagination from 'rc-pagination/lib/locale/zh_CN';
|
|
3
|
-
import Calendar from 'antd/es/calendar/locale/zh_CN';
|
|
4
|
-
import DatePicker from 'antd/es/date-picker/locale/zh_CN';
|
|
5
|
-
import TimePicker from 'antd/es/time-picker/locale/zh_CN';
|
|
6
6
|
var typeTemplate = '${label}不是一个有效的${type}';
|
|
7
7
|
var localeValues = {
|
|
8
8
|
locale: 'zh-cn',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import LocaleReceiver, { useLocaleReceiver } from 'antd/
|
|
1
|
+
import LocaleReceiver, { useLocaleReceiver } from 'antd/lib/locale-provider/LocaleReceiver';
|
|
2
2
|
export default LocaleReceiver;
|
|
3
|
-
export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/
|
|
3
|
+
export type { LocaleComponentName, LocaleReceiverProps, } from 'antd/lib/locale-provider/LocaleReceiver';
|
|
4
4
|
export { useLocaleReceiver };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ValidateMessages } from 'rc-field-form/lib/interface';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { PickerLocale as DatePickerLocale } from 'antd/
|
|
4
|
-
import type { TransferLocale as TransferLocaleForEmpty } from 'antd/
|
|
5
|
-
import type { ModalLocale } from 'antd/
|
|
6
|
-
import type { PaginationLocale } from 'antd/
|
|
7
|
-
import type { TableLocale } from 'antd/
|
|
8
|
-
import type { TransferLocale } from 'antd/
|
|
9
|
-
import type { UploadLocale } from 'antd/
|
|
3
|
+
import type { PickerLocale as DatePickerLocale } from 'antd/lib/date-picker/generatePicker';
|
|
4
|
+
import type { TransferLocale as TransferLocaleForEmpty } from 'antd/lib/empty';
|
|
5
|
+
import type { ModalLocale } from 'antd/lib/modal/locale';
|
|
6
|
+
import type { PaginationLocale } from 'antd/lib/pagination/Pagination';
|
|
7
|
+
import type { TableLocale } from 'antd/lib/table/interface';
|
|
8
|
+
import type { TransferLocale } from 'antd/lib/transfer';
|
|
9
|
+
import type { UploadLocale } from 'antd/lib/upload/interface';
|
|
10
10
|
interface PopconfirmLocale {
|
|
11
11
|
okText: string;
|
|
12
12
|
cancelText: string;
|
|
@@ -31,10 +31,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
31
31
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
32
32
|
|
|
33
33
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
34
|
+
import warning from 'antd/lib/_util/warning';
|
|
34
35
|
import memoizeOne from 'memoize-one';
|
|
35
36
|
import * as React from 'react';
|
|
36
|
-
import
|
|
37
|
-
import { changeConfirmLocale } from 'antd/es/modal/locale';
|
|
37
|
+
import { changeConfirmLocale } from 'antd/lib/modal/locale';
|
|
38
38
|
import LocaleContext from "./context";
|
|
39
39
|
export var ANT_MARK = 'internalMark';
|
|
40
40
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@aloudata/icons-react": "^0.2.2",
|
|
55
55
|
"@aloudata/icons-svg": "0.1.7",
|
|
56
56
|
"@ant-design/cssinjs": "^1.9.1",
|
|
57
|
+
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
57
58
|
"antd": "5.4.3",
|
|
58
59
|
"compare-func": "^2.0.0",
|
|
59
60
|
"conventional-changelog": "^3.1.25",
|
|
@@ -69,7 +70,6 @@
|
|
|
69
70
|
"@babel/preset-react": "^7.18.6",
|
|
70
71
|
"@commitlint/cli": "^17.5.1",
|
|
71
72
|
"@commitlint/config-conventional": "^17.4.4",
|
|
72
|
-
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
73
73
|
"@testing-library/jest-dom": "^5.16.5",
|
|
74
74
|
"@testing-library/react": "^13.4.0",
|
|
75
75
|
"@types/jest": "^29.4.0",
|