@antscorp/antsomi-ui 1.3.3-beta.3 → 1.3.3-beta.4
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/components/atoms/Button/index.d.ts +1 -8
- package/es/components/atoms/Flex/Flex.d.ts +2 -0
- package/es/components/atoms/Flex/Flex.js +1 -0
- package/es/components/atoms/Flex/index.d.ts +1 -0
- package/es/components/atoms/Flex/index.js +1 -0
- package/es/components/atoms/Input/Input.d.ts +11 -3
- package/es/components/atoms/Input/Input.js +3 -0
- package/es/components/atoms/Popover/Popover.d.ts +1 -1
- package/es/components/atoms/Popover/styled.d.ts +1 -1
- package/es/components/atoms/Progress/Progress.d.ts +1 -1
- package/es/components/atoms/Radio/index.d.ts +3 -3
- package/es/components/atoms/Space/Space.d.ts +1 -1
- package/es/components/atoms/Spin/styled.d.ts +1 -1
- package/es/components/atoms/Statistic/Statistic.d.ts +1 -4
- package/es/components/atoms/index.d.ts +1 -0
- package/es/components/atoms/index.js +1 -0
- package/es/components/common/ConfigProvider/GlobalStyle.js +29 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +3 -3
- package/es/components/molecules/Collapse/Collapse.js +9 -0
- package/es/components/molecules/ColorSetting/styled.d.ts +1 -8
- package/es/components/molecules/Form/Form.d.ts +1 -0
- package/es/components/molecules/Form/Form.js +1 -0
- package/es/components/molecules/Form/index.d.ts +1 -0
- package/es/components/molecules/Form/index.js +1 -0
- package/es/components/molecules/IconSelection/styled.d.ts +1 -8
- package/es/components/molecules/Modal/Modal.d.ts +2 -2
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +1 -1
- package/es/components/molecules/Select/Select.d.ts +6 -4
- package/es/components/molecules/Select/Select.js +23 -2
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +3 -4
- package/es/components/molecules/index.d.ts +1 -0
- package/es/components/molecules/index.js +1 -0
- package/es/components/organism/Help/styled.d.ts +6 -16
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +1 -0
- package/es/constants/theme.js +18 -2
- package/package.json +1 -1
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Button: import("react").ForwardRefExoticComponent<
|
|
3
|
-
href: string;
|
|
4
|
-
target?: string | undefined;
|
|
5
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
6
|
-
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
7
|
-
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
8
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
9
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
2
|
+
export declare const Button: import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLElement>> & {
|
|
10
3
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
11
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Flex } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Flex';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Flex';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
|
1
2
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { InputProps as AntdInputProps } from 'antd';
|
|
3
|
+
import { InputProps as AntdInputProps, Input as AntdInput } from 'antd';
|
|
3
4
|
export interface InputProps extends AntdInputProps {
|
|
4
5
|
noborder?: 'true' | 'false' | boolean;
|
|
5
6
|
debounce?: number;
|
|
@@ -11,10 +12,17 @@ export interface InputProps extends AntdInputProps {
|
|
|
11
12
|
errorMsg?: string;
|
|
12
13
|
disableUndo?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const Input: import("styled-components").
|
|
15
|
+
export declare const Input: string & import("styled-components").StyledComponentBase<React.ForwardRefExoticComponent<AntdInputProps & React.RefAttributes<import("antd").InputRef>> & {
|
|
15
16
|
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
16
17
|
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
17
18
|
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
18
19
|
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
19
|
-
}, any, InputProps, never
|
|
20
|
+
}, any, InputProps, never> & import("hoist-non-react-statics").NonReactStatics<React.ForwardRefExoticComponent<AntdInputProps & React.RefAttributes<import("antd").InputRef>> & {
|
|
21
|
+
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
22
|
+
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
23
|
+
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
24
|
+
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
25
|
+
}, {}> & {
|
|
26
|
+
DefaultInput: typeof AntdInput;
|
|
27
|
+
};
|
|
20
28
|
export declare const TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
@@ -13,6 +13,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
/* eslint-disable react/destructuring-assignment */
|
|
14
14
|
// Libraries
|
|
15
15
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
16
|
+
// Types
|
|
17
|
+
import { Input as AntdInput } from 'antd';
|
|
16
18
|
// Components
|
|
17
19
|
import { RequiredLabel, Text } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
18
20
|
// Utils
|
|
@@ -89,4 +91,5 @@ OriginInput.defaultProps = {
|
|
|
89
91
|
};
|
|
90
92
|
export const Input = OriginInput;
|
|
91
93
|
Input.TextArea = StyledInput.TextArea;
|
|
94
|
+
Input.DefaultInput = AntdInput;
|
|
92
95
|
export const { TextArea } = StyledInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Popover: import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/popover/PurePanel").PurePanelProps>;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const PopoverWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/popover/PurePanel").PurePanelProps>;
|
|
4
4
|
}, any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Progress: import("react").
|
|
2
|
+
export declare const Progress: import("react").ForwardRefExoticComponent<import("antd").ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Radio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").RadioProps & import("react").RefAttributes<
|
|
2
|
+
export declare const Radio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").RadioProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>> & {
|
|
3
3
|
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
|
-
Button: import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<
|
|
4
|
+
Button: import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>>;
|
|
5
5
|
}, any, {}, never>;
|
|
6
|
-
export declare const RadioButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<
|
|
6
|
+
export declare const RadioButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>>, any, {}, never>;
|
|
7
7
|
export declare const RadioGroupSub: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>, any, {}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SpaceProps } from 'antd';
|
|
3
3
|
export declare const OriginSpace: React.FC<SpaceProps>;
|
|
4
|
-
export declare const Space: React.
|
|
4
|
+
export declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Compact: React.FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const StyledSpin: import("styled-components").StyledComponent<import("antd/es/spin").
|
|
1
|
+
export declare const StyledSpin: import("styled-components").StyledComponent<import("antd/es/spin").SpinType, any, {}, never>;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Statistic: import("react").FC<import("antd").StatisticProps> & {
|
|
3
|
-
Countdown: import("react").NamedExoticComponent<import("antd").CountdownProps>;
|
|
4
|
-
};
|
|
1
|
+
export declare const Statistic: import("antd/es/statistic").CompoundedStatistic;
|
|
@@ -10,7 +10,7 @@ import { far } from '@fortawesome/free-regular-svg-icons';
|
|
|
10
10
|
import { fab } from '@fortawesome/free-brands-svg-icons';
|
|
11
11
|
library.add(fas, far, fab);
|
|
12
12
|
export const GlobalStyle = () => {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33;
|
|
14
14
|
return (React.createElement(Global, { styles: css `
|
|
15
15
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
|
|
16
16
|
|
|
@@ -486,5 +486,33 @@ export const GlobalStyle = () => {
|
|
|
486
486
|
.ant-message {
|
|
487
487
|
z-index: 999999 !important;
|
|
488
488
|
}
|
|
489
|
+
|
|
490
|
+
/* Collapse */
|
|
491
|
+
.antsomi-collapse-header {
|
|
492
|
+
font-size: 14px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.antsomi-collapse {
|
|
496
|
+
&.antsomi-collapse-borderless {
|
|
497
|
+
border-bottom: 1px solid ${(_31 = THEME.token) === null || _31 === void 0 ? void 0 : _31.gray5};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
> .antsomi-collapse-item > .antsomi-collapse-header .antsomi-collapse-arrow {
|
|
501
|
+
transition: all 200ms;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/* Switch */
|
|
506
|
+
.antsomi-switch {
|
|
507
|
+
border: 2px solid ${(_32 = THEME.token) === null || _32 === void 0 ? void 0 : _32.colorPrimary} !important;
|
|
508
|
+
|
|
509
|
+
&.antsomi-switch-checked {
|
|
510
|
+
> .antsomi-switch-handle {
|
|
511
|
+
&::before {
|
|
512
|
+
background-color: ${(_33 = THEME.token) === null || _33 === void 0 ? void 0 : _33.bw0} !important;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
489
517
|
` }));
|
|
490
518
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Collapse:
|
|
3
|
-
Panel:
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Collapse: React.ForwardRefExoticComponent<import("antd").CollapseProps & React.RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Panel: React.ForwardRefExoticComponent<import("antd").CollapsePanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import React from 'react';
|
|
1
3
|
import { Collapse as AntdCollapse } from 'antd';
|
|
4
|
+
// Icons
|
|
5
|
+
import { Icon } from '../../atoms';
|
|
2
6
|
export const Collapse = AntdCollapse;
|
|
7
|
+
Collapse.defaultProps = {
|
|
8
|
+
expandIcon({ isActive }) {
|
|
9
|
+
return (React.createElement(Icon, { type: "icon-ants-expand-more", size: 24, style: { transform: `rotate(${isActive ? -180 : 0}deg)`, color: '#666' } }));
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ColorSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const PresetColor: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const ButtonPreset: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
5
|
-
href: string;
|
|
6
|
-
target?: string | undefined;
|
|
7
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
8
|
-
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
9
|
-
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
10
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
11
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
4
|
+
export declare const ButtonPreset: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLElement>> & {
|
|
12
5
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
13
6
|
}, any, {}, never>;
|
|
14
7
|
export declare const PresetWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Form } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Form } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Form } from './Form';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Form } from './Form';
|
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
export declare const IconSelectionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const WrapperListRender: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const WrapperListItemRender: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const CustomButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
6
|
-
href: string;
|
|
7
|
-
target?: string | undefined;
|
|
8
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
9
|
-
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
10
|
-
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
11
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
12
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
5
|
+
export declare const CustomButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLElement>> & {
|
|
13
6
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
14
7
|
}, any, {}, never>;
|
|
15
8
|
export declare const Overlay: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -14,10 +14,10 @@ export declare const Modal: string & import("styled-components").StyledComponent
|
|
|
14
14
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
15
15
|
destroyAll: () => void;
|
|
16
16
|
config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
|
|
17
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
17
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
|
|
18
18
|
}, any, import("./styled").CustomModalProps, never> & import("hoist-non-react-statics").NonReactStatics<React.FC<AntdModalProps> & import("antd/es/modal/confirm").ModalStaticFunctions & {
|
|
19
19
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
20
20
|
destroyAll: () => void;
|
|
21
21
|
config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
|
|
22
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
22
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
|
|
23
23
|
}, {}> & React.FC<ModalProps>;
|
|
@@ -10,6 +10,6 @@ export declare const StyledModal: import("styled-components").StyledComponent<im
|
|
|
10
10
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
11
11
|
destroyAll: () => void;
|
|
12
12
|
config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
|
|
13
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
13
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => React.JSX.Element;
|
|
14
14
|
}, any, CustomModalProps, never>;
|
|
15
15
|
export declare const WrapperSpin: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Popconfirm: import("react").ForwardRefExoticComponent<import("antd").PopconfirmProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/popconfirm/PurePanel").PurePanelProps>;
|
|
4
4
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { TextProps } from '../../atoms/Text';
|
|
3
4
|
export interface SelectProps extends AntdSelectProps {
|
|
5
|
+
label?: string | React.ReactNode;
|
|
6
|
+
labelProps?: TextProps;
|
|
4
7
|
}
|
|
5
8
|
declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: AntdSelectProps<ValueType, OptionType> & {
|
|
6
9
|
children?: React.ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
|
|
9
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
+
} & React.RefAttributes<import("antd").RefSelectProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
11
|
+
displayName?: string | undefined;
|
|
10
12
|
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
11
13
|
Option: import("rc-select/lib/Option").OptionFC;
|
|
12
14
|
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
13
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
15
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => React.JSX.Element;
|
|
14
16
|
} & React.FC<SelectProps>;
|
|
15
17
|
export { Select };
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
var _a;
|
|
2
13
|
// Libraries
|
|
3
14
|
import { Select as AntdSelect } from 'antd';
|
|
4
15
|
import React from 'react';
|
|
16
|
+
// Components
|
|
17
|
+
import { Flex } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
18
|
+
import { Text } from '../../atoms/Text';
|
|
5
19
|
// Icons
|
|
6
20
|
import Icon from '@antscorp/icons';
|
|
7
21
|
// Constants
|
|
8
|
-
import { THEME } from '
|
|
22
|
+
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
23
|
+
// Styled
|
|
9
24
|
import { StyledTag, TagCloseBtn } from './styled';
|
|
10
25
|
const tagRender = (props) => {
|
|
11
26
|
const { label, closable, onClose } = props;
|
|
@@ -18,11 +33,17 @@ const tagRender = (props) => {
|
|
|
18
33
|
fontSize: 10,
|
|
19
34
|
} })) }, label));
|
|
20
35
|
};
|
|
21
|
-
const CustomSelect = props =>
|
|
36
|
+
const CustomSelect = props => {
|
|
37
|
+
const { label, labelProps } = props, rest = __rest(props, ["label", "labelProps"]);
|
|
38
|
+
return (React.createElement(Flex, { vertical: true, gap: 4 },
|
|
39
|
+
typeof label === 'string' ? React.createElement(Text, Object.assign({}, labelProps), label) : label,
|
|
40
|
+
React.createElement(AntdSelect, Object.assign({}, rest))));
|
|
41
|
+
};
|
|
22
42
|
const Select = CustomSelect;
|
|
23
43
|
Select.OptGroup = AntdSelect.OptGroup;
|
|
24
44
|
Select.Option = AntdSelect.Option;
|
|
25
45
|
Select.defaultProps = {
|
|
46
|
+
labelProps: { color: '#66666' },
|
|
26
47
|
suffixIcon: (React.createElement(Icon, { type: "icon-ants-expand-more", style: { fontSize: 16, color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.bw10 } })),
|
|
27
48
|
tagRender,
|
|
28
49
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const TreeSelect: (<ValueType = any, OptionType extends import("rc-tree-select/lib/TreeSelect").BaseOptionType | import("rc-tree-select/lib/TreeSelect").DefaultOptionType = import("rc-tree-select/lib/TreeSelect").DefaultOptionType>(props: import("antd").TreeSelectProps<ValueType, OptionType> & {
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
|
-
} & {
|
|
5
|
-
|
|
6
|
-
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
4
|
+
} & import("react").RefAttributes<import("antd").RefSelectProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
5
|
+
displayName?: string | undefined;
|
|
7
6
|
TreeNode: import("react").FC<import("rc-tree-select/lib/TreeNode").TreeNodeProps>;
|
|
8
7
|
SHOW_ALL: "SHOW_ALL";
|
|
9
8
|
SHOW_PARENT: "SHOW_PARENT";
|
|
10
9
|
SHOW_CHILD: "SHOW_CHILD";
|
|
11
|
-
_InternalPanelDoNotUseOrYouWillBeFired:
|
|
10
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => React.JSX.Element;
|
|
12
11
|
};
|
|
@@ -31,6 +31,7 @@ export { FontFamilySelect } from './FontFamilySelect';
|
|
|
31
31
|
export { TextDecorationSelect } from './TextDecorationSelect';
|
|
32
32
|
export { TextTransformSelect } from './TextTransformSelect';
|
|
33
33
|
export { FontSetting, FontSettingEdit } from './FontSetting';
|
|
34
|
+
export { Form } from './Form';
|
|
34
35
|
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
35
36
|
export type { ColorPickerProps } from './ColorPicker';
|
|
36
37
|
export type { AlignEditProps, AlignSettingProps } from './AlignSetting';
|
|
@@ -31,3 +31,4 @@ export { FontFamilySelect } from './FontFamilySelect';
|
|
|
31
31
|
export { TextDecorationSelect } from './TextDecorationSelect';
|
|
32
32
|
export { TextTransformSelect } from './TextTransformSelect';
|
|
33
33
|
export { FontSetting, FontSettingEdit } from './FontSetting';
|
|
34
|
+
export { Form } from './Form';
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const DropDown: import("styled-components").StyledComponent<import("react").FC<import("antd").DropDownProps> & {
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd").DropDownProps>;
|
|
4
|
+
} & {
|
|
3
5
|
Button: import("react").FC<import("antd/es/dropdown").DropdownButtonProps>;
|
|
4
|
-
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd").DropDownProps) => JSX.Element;
|
|
5
6
|
}, any, {}, never>;
|
|
6
|
-
export declare const ButtonFeedback: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
7
|
-
href: string;
|
|
8
|
-
target?: string | undefined;
|
|
9
|
-
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
10
|
-
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
11
|
-
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
12
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
|
-
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
7
|
+
export declare const ButtonFeedback: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<HTMLElement>> & {
|
|
14
8
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
15
9
|
}, any, {
|
|
16
10
|
height?: number | undefined;
|
|
@@ -21,7 +15,7 @@ export declare const Overlay: import("styled-components").StyledComponent<"div",
|
|
|
21
15
|
export declare const Text: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
22
16
|
export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
23
17
|
export declare const SendFeedback: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
|
-
export declare const ControlGroup: import("styled-components").StyledComponent<import("react").
|
|
18
|
+
export declare const ControlGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").SpaceProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
25
19
|
Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
26
20
|
}, any, {}, never>;
|
|
27
21
|
export declare const ControlLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
@@ -64,15 +58,11 @@ export declare const TitleSearch: import("styled-components").StyledComponent<"s
|
|
|
64
58
|
export declare const WrapperSearch: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>, any, {}, never>;
|
|
65
59
|
export declare const TreeContent: import("styled-components").StyledComponent<(<T extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd").TreeProps<T> & {
|
|
66
60
|
children?: import("react").ReactNode;
|
|
67
|
-
} & {
|
|
68
|
-
ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
|
|
69
|
-
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
61
|
+
} & import("react").RefAttributes<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
70
62
|
TreeNode: import("react").FC<import("rc-tree").TreeNodeProps<import("antd").TreeDataNode>>;
|
|
71
63
|
DirectoryTree: (<T_1 extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd/es/tree").DirectoryTreeProps<T_1> & {
|
|
72
64
|
children?: import("react").ReactNode;
|
|
73
|
-
} & {
|
|
74
|
-
ref?: import("react").Ref<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>> | undefined;
|
|
75
|
-
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
65
|
+
} & import("react").RefAttributes<import("rc-tree/lib/Tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
76
66
|
displayName?: string | undefined;
|
|
77
67
|
};
|
|
78
68
|
}, any, {}, never>;
|
package/es/constants/theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
2
2
|
// Types
|
|
3
3
|
import { theme } from 'antd';
|
|
4
4
|
// Variables
|
|
@@ -64,6 +64,7 @@ export const THEME = {
|
|
|
64
64
|
accent2: '#dddddd',
|
|
65
65
|
accent3: '#d2d2d2',
|
|
66
66
|
accent5: '#999999',
|
|
67
|
+
gray5: '#d9d9d9',
|
|
67
68
|
gold1,
|
|
68
69
|
gold6,
|
|
69
70
|
},
|
|
@@ -128,7 +129,9 @@ THEME.components = {
|
|
|
128
129
|
controlHeight: 31,
|
|
129
130
|
},
|
|
130
131
|
Divider: {
|
|
131
|
-
marginLG:
|
|
132
|
+
marginLG: 15,
|
|
133
|
+
marginXL: 15,
|
|
134
|
+
colorSplit: (_r = THEME.token) === null || _r === void 0 ? void 0 : _r.accent3,
|
|
132
135
|
},
|
|
133
136
|
Checkbox: {
|
|
134
137
|
controlInteractiveSize: 18,
|
|
@@ -143,4 +146,17 @@ THEME.components = {
|
|
|
143
146
|
colorPrimary: '#1F5FAC',
|
|
144
147
|
margin: 20,
|
|
145
148
|
},
|
|
149
|
+
Collapse: {
|
|
150
|
+
headerBg: '#FFF',
|
|
151
|
+
borderRadiusLG: 0,
|
|
152
|
+
headerPadding: '18px 10px',
|
|
153
|
+
},
|
|
154
|
+
Switch: {
|
|
155
|
+
colorTextQuaternary: (_s = THEME.token) === null || _s === void 0 ? void 0 : _s.bw0,
|
|
156
|
+
colorTextTertiary: (_t = THEME.token) === null || _t === void 0 ? void 0 : _t.bw0,
|
|
157
|
+
handleSize: 12,
|
|
158
|
+
handleSizeSM: 7,
|
|
159
|
+
trackMinWidth: 30,
|
|
160
|
+
handleBg: (_u = THEME.token) === null || _u === void 0 ? void 0 : _u.colorPrimary,
|
|
161
|
+
},
|
|
146
162
|
};
|