@antscorp/antsomi-ui 1.2.3-beta.30 → 1.2.3-beta.32
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/0dfb9214dfd945cd7290.png +1 -0
- package/dist/574b7bee0563a9fe9a29.png +1 -0
- package/dist/688be4ec34a228a3d51c.png +1 -0
- package/dist/6b586356e837581204dc.svg +1 -0
- package/dist/7bd6d6407df2d867ce2f.svg +1 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +1 -0
- package/dist/e32f09119052a55cce3c.png +1 -0
- package/dist/e3851b9384a984c6fdb5.png +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +10 -0
- package/dist/main.css +1 -1
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/8d4b7f99c706464161e377ad92c16626.png +0 -0
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +87 -0
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f044bd910efe471eab411d1a144b489b.svg +338 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/transparent.svg +1 -0
- package/dist/types/components/atoms/Alert/index.d.ts +4 -0
- package/dist/types/components/atoms/Alert/index.stories.d.ts +12 -0
- package/dist/types/components/atoms/Button/Button.stories.d.ts +2 -2
- package/dist/types/components/atoms/Button/index.d.ts +1 -1
- package/dist/types/components/atoms/DividerPure/DividerPure.d.ts +10 -0
- package/dist/types/components/atoms/DividerPure/index.d.ts +1 -0
- package/dist/types/components/atoms/DividerPure/styled.d.ts +1 -0
- package/dist/types/components/atoms/Input/Input.d.ts +14 -7
- package/dist/types/components/atoms/Input/Input.stories.d.ts +2 -12
- package/dist/types/components/atoms/Input/styled.d.ts +11 -0
- package/dist/types/components/atoms/Message/index.stories.d.ts +12 -0
- package/dist/types/components/atoms/Popover/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/atoms/Popover/index.d.ts +4 -0
- package/dist/types/components/atoms/Popover/index.stories.d.ts +49 -0
- package/dist/types/components/atoms/Popover/styled.d.ts +4 -0
- package/dist/types/components/atoms/Radio/index.d.ts +7 -1
- package/dist/types/components/atoms/RequiredLabel/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/atoms/RequiredLabel/index.d.ts +7 -0
- package/dist/types/components/atoms/RequiredLabel/styled.d.ts +2 -0
- package/dist/types/components/atoms/ScrollBox/index.d.ts +9 -0
- package/dist/types/components/atoms/Slider/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/atoms/Slider/index.d.ts +5 -0
- package/dist/types/components/atoms/Slider/index.stories.d.ts +10 -0
- package/dist/types/components/atoms/Slider/styled.d.ts +7 -0
- package/dist/types/components/atoms/Space/Space.d.ts +3 -1
- package/dist/types/components/atoms/Space/Space.stories.d.ts +2 -6
- package/dist/types/components/atoms/Spin/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/atoms/Spin/index.d.ts +10 -0
- package/dist/types/components/atoms/Spin/styled.d.ts +1 -0
- package/dist/types/components/atoms/Switch/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/atoms/Switch/index.d.ts +6 -0
- package/dist/types/components/atoms/Switch/styled.d.ts +1 -0
- package/dist/types/components/atoms/Text/index.d.ts +10 -0
- package/dist/types/components/atoms/Text/index.stories.d.ts +6 -0
- package/dist/types/components/atoms/Text/styled.d.ts +7 -0
- package/dist/types/components/atoms/index.d.ts +13 -1
- package/dist/types/components/molecules/AlignSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/AlignSetting/index.d.ts +19 -0
- package/dist/types/components/molecules/AlignSetting/styled.d.ts +1 -0
- package/dist/types/components/molecules/AlignSetting/utils.d.ts +3 -0
- package/dist/types/components/molecules/ColorPicker/ChromePicker/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/ChromePicker/index.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/ChromePicker/styled.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/CustomPicker/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/CustomPicker/index.d.ts +2 -0
- package/dist/types/components/molecules/ColorPicker/CustomPicker/styled.d.ts +5 -0
- package/dist/types/components/molecules/ColorPicker/SketchPicker/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/SketchPicker/index.d.ts +10 -0
- package/dist/types/components/molecules/ColorPicker/SketchPicker/styled.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/ColorPicker/index.d.ts +13 -0
- package/dist/types/components/molecules/ColorPicker/styled.d.ts +1 -0
- package/dist/types/components/molecules/ColorSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/ColorSetting/index.d.ts +13 -0
- package/dist/types/components/molecules/ColorSetting/styled.d.ts +13 -0
- package/dist/types/components/molecules/EdgeSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/EdgeSetting/index.d.ts +39 -0
- package/dist/types/components/molecules/EdgeSetting/styled.d.ts +3 -0
- package/dist/types/components/molecules/IconSelection/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/IconSelection/constants.d.ts +6 -0
- package/dist/types/components/molecules/IconSelection/index.d.ts +9 -0
- package/dist/types/components/molecules/IconSelection/styled.d.ts +14 -0
- package/dist/types/components/molecules/InputNumber/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/InputNumber/index.d.ts +9 -0
- package/dist/types/components/molecules/InputNumber/styled.d.ts +8 -0
- package/dist/types/components/molecules/InputSearch/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/InputSearch/index.d.ts +7 -0
- package/dist/types/components/molecules/InputSearch/styled.d.ts +1 -0
- package/dist/types/components/molecules/Modal/Loadable.d.ts +7 -0
- package/dist/types/components/molecules/Modal/styled.d.ts +16 -0
- package/dist/types/components/molecules/RadioGroup/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/RadioGroup/index.d.ts +7 -0
- package/dist/types/components/molecules/RadioGroup/styled.d.ts +3 -0
- package/dist/types/components/molecules/Select/Select.d.ts +1 -1
- package/dist/types/components/molecules/Select/Select.stories.d.ts +2 -2
- package/dist/types/components/molecules/SettingWrapper/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/SettingWrapper/index.d.ts +13 -0
- package/dist/types/components/molecules/SettingWrapper/styled.d.ts +5 -0
- package/dist/types/components/molecules/SliderWithInputNumber/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/SliderWithInputNumber/index.d.ts +11 -0
- package/dist/types/components/molecules/SliderWithInputNumber/styled.d.ts +1 -0
- package/dist/types/components/molecules/UploadImage/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/molecules/UploadImage/index.d.ts +26 -0
- package/dist/types/components/molecules/UploadImage/styled.d.ts +8 -0
- package/dist/types/components/molecules/index.d.ts +12 -1
- package/dist/types/components/organism/Help/styled.d.ts +1 -1
- package/dist/types/components/organism/PositionSetting/__tests__/index.test.d.ts +1 -0
- package/dist/types/components/organism/PositionSetting/config.d.ts +10 -0
- package/dist/types/components/organism/PositionSetting/index.d.ts +15 -0
- package/dist/types/components/organism/PositionSetting/styled.d.ts +1 -0
- package/dist/types/components/organism/PositionSetting/types.d.ts +10 -0
- package/dist/types/components/organism/index.d.ts +1 -0
- package/dist/types/constants/keyCode.d.ts +387 -0
- package/dist/types/models/SavedImage.d.ts +32 -0
- package/dist/types/models/Upload.d.ts +32 -0
- package/dist/types/models/model.d.ts +8 -0
- package/dist/types/services/MediaTemplateDesign/UploadFile/index.d.ts +6 -0
- package/dist/types/services/index.d.ts +9 -0
- package/dist/types/test.d.ts +11 -0
- package/dist/types/utils/color.d.ts +1 -0
- package/dist/types/utils/common.d.ts +1 -0
- package/dist/types/utils/loadable.d.ts +7 -0
- package/dist/types/utils/web.d.ts +10 -0
- package/package.json +10 -1
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="10" version="1.1" viewBox="0 0 512 512" width="10" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor" fill-opacity=".125" d="M0 256h256v256H0z"></path><path fill="currentColor" fill-opacity=".25" d="M256 256h256v256H256z"></path><path fill="currentColor" fill-opacity=".125" d="M256 0h256v256H256z"></path><path fill="currentColor" fill-opacity=".25" d="M0 0h256v256H0z"></path></svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
import { Alert } from './index';
|
|
4
|
+
declare const _default: ComponentMeta<import("styled-components").StyledComponent<React.FC<import("antd").AlertProps> & {
|
|
5
|
+
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
6
|
+
}, any, {}, never>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: ComponentStory<import("styled-components").StyledComponent<React.FC<import("antd").AlertProps> & {
|
|
9
|
+
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
10
|
+
}, any, {}, never>>;
|
|
11
|
+
export declare const Types: ComponentStory<typeof Alert>;
|
|
12
|
+
export declare const Customize: ComponentStory<typeof Alert>;
|
|
@@ -5,7 +5,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
|
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
7
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
-
htmlType?: "button" | "
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
10
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
11
11
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -16,7 +16,7 @@ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<Par
|
|
|
16
16
|
target?: string | undefined;
|
|
17
17
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
18
18
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
19
|
-
htmlType?: "button" | "
|
|
19
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
21
21
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
22
22
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -3,7 +3,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Partial<{
|
|
|
3
3
|
target?: string | undefined;
|
|
4
4
|
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
5
5
|
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
6
|
-
htmlType?: "button" | "
|
|
6
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
7
7
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
8
8
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
9
9
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DividerProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
type?: 'vertical' | 'horizontal';
|
|
4
|
+
dot?: boolean;
|
|
5
|
+
dashed?: boolean;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DividerPure: React.FC<DividerProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DividerPure } from './DividerPure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { InputProps as AntdInputProps } from 'antd';
|
|
3
|
+
export interface InputProps extends AntdInputProps {
|
|
4
|
+
noborder?: 'true' | 'false' | boolean;
|
|
5
|
+
debounce?: number;
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
onAfterChange?: (value: any) => void;
|
|
8
|
+
errorArchive?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
focused?: boolean;
|
|
11
|
+
errorMsg?: string;
|
|
12
|
+
disableUndo?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Input: FC<InputProps>;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.
|
|
4
|
-
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
5
|
-
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("rc-input").InputRef>>;
|
|
6
|
-
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
7
|
-
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("rc-input").InputRef>>;
|
|
8
|
-
}>;
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./Input").InputProps>>;
|
|
9
4
|
export default _default;
|
|
10
|
-
export declare const Default: ComponentStory<React.
|
|
11
|
-
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
12
|
-
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("rc-input").InputRef>>;
|
|
13
|
-
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
14
|
-
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("rc-input").InputRef>>;
|
|
15
|
-
}>;
|
|
5
|
+
export declare const Default: ComponentStory<React.FC<import("./Input").InputProps>>;
|
|
16
6
|
export declare const BasicUsage: ComponentStory<any>;
|
|
17
7
|
export declare const TextArea: ComponentStory<any>;
|
|
18
8
|
export declare const Status: ComponentStory<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps } from './Input';
|
|
3
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef>> & {
|
|
4
|
+
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
5
|
+
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
6
|
+
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
7
|
+
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
8
|
+
}, any, InputProps, never>;
|
|
9
|
+
export declare const TextArea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>, any, {
|
|
10
|
+
showBorder?: boolean | undefined;
|
|
11
|
+
}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentStory } from '@storybook/react';
|
|
2
|
+
declare const _default: any;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: ComponentStory<any>;
|
|
5
|
+
export declare const NormalPrompt: ComponentStory<any>;
|
|
6
|
+
export declare const OtherMessage: ComponentStory<any>;
|
|
7
|
+
export declare const CustomizeDuration: ComponentStory<any>;
|
|
8
|
+
export declare const MessageLoading: ComponentStory<any>;
|
|
9
|
+
export declare const PromiseInterface: ComponentStory<any>;
|
|
10
|
+
export declare const UpdateMessage: ComponentStory<any>;
|
|
11
|
+
export declare const ContentHook: ComponentStory<any>;
|
|
12
|
+
export declare const CustomizeStyle: ComponentStory<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Popover: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof import("antd/es/popover/PurePanel").default;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("antd").PopoverProps & React.RefAttributes<unknown>> & {
|
|
4
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof import("antd/es/popover/PurePanel").default;
|
|
5
|
+
}, any, {}, never>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: ComponentStory<import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("antd").PopoverProps & React.RefAttributes<unknown>> & {
|
|
8
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof import("antd/es/popover/PurePanel").default;
|
|
9
|
+
}, any, {}, never>>;
|
|
10
|
+
export declare const ThreeWaysToTrigger: {
|
|
11
|
+
(): JSX.Element;
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
story: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const Placement: {
|
|
21
|
+
(): JSX.Element;
|
|
22
|
+
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
description: {
|
|
25
|
+
story: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const ControllingTheCloseOfTheDialog: {
|
|
31
|
+
(): JSX.Element;
|
|
32
|
+
parameters: {
|
|
33
|
+
docs: {
|
|
34
|
+
description: {
|
|
35
|
+
story: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const HoverWithClickPopover: {
|
|
41
|
+
(): JSX.Element;
|
|
42
|
+
parameters: {
|
|
43
|
+
docs: {
|
|
44
|
+
description: {
|
|
45
|
+
story: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PopoverWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").PopoverProps & import("react").RefAttributes<unknown>> & {
|
|
3
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof import("antd/es/popover/PurePanel").default;
|
|
4
|
+
}, any, {}, never>;
|
|
@@ -1 +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<HTMLElement>> & {
|
|
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<any>>;
|
|
5
|
+
}, any, {}, never>;
|
|
6
|
+
export declare const RadioButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<any>>, any, {}, never>;
|
|
7
|
+
export declare const RadioGroupSub: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ScrollBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
height?: number;
|
|
4
|
+
maxHeight?: number;
|
|
5
|
+
loadMore?: Function;
|
|
6
|
+
isPadding?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ScrollBox: React.FC<ScrollBoxProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { Slider } from './index';
|
|
4
|
+
declare const _default: ComponentMeta<React.FC<import("./index").SliderProps | import("antd/es/slider").SliderRangeProps>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: ComponentStory<React.FC<import("./index").SliderProps | import("antd/es/slider").SliderRangeProps>>;
|
|
7
|
+
export declare const Basic: ComponentStory<typeof Slider>;
|
|
8
|
+
export declare const SliderIcon: ComponentStory<typeof Slider>;
|
|
9
|
+
export declare const Event: ComponentStory<typeof Slider>;
|
|
10
|
+
export declare const Reverse: ComponentStory<typeof Slider>;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.FC<import("antd").SpaceProps
|
|
4
|
-
Compact: React.FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
5
|
-
}>;
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("antd").SpaceProps>>;
|
|
6
4
|
export default _default;
|
|
7
|
-
export declare const Default: ComponentStory<React.FC<import("antd").SpaceProps
|
|
8
|
-
Compact: React.FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
9
|
-
}>;
|
|
5
|
+
export declare const Default: ComponentStory<React.FC<import("antd").SpaceProps>>;
|
|
10
6
|
export declare const BasicUsage: ComponentStory<any>;
|
|
11
7
|
export declare const Split: ComponentStory<any>;
|
|
12
8
|
export declare const Size: ComponentStory<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSpin: import("styled-components").StyledComponent<import("antd/es/spin").SpinFCType, any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SwitchWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
type?: 'default' | 'secondary' | 'disabled' | 'error' | 'warning' | 'success';
|
|
5
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
6
|
+
color?: string;
|
|
7
|
+
bold?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const Text: React.FC<TextProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./index").TextProps>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<React.FC<import("./index").TextProps>>;
|
|
6
|
+
export declare const Example: React.FC;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface TextWrapperProps {
|
|
3
|
+
size?: 'small' | 'medium' | 'large' | number;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, TextWrapperProps, never>;
|
|
7
|
+
export {};
|
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
export { Button } from './Button';
|
|
2
2
|
export { Divider } from './Divider';
|
|
3
|
+
export { DividerPure } from './DividerPure';
|
|
3
4
|
export { Input } from './Input';
|
|
4
5
|
export { InputNumber } from './InputNumber';
|
|
5
|
-
export { Radio } from './Radio';
|
|
6
|
+
export { Radio, RadioGroupSub, RadioButton } from './Radio';
|
|
6
7
|
export { Space } from './Space';
|
|
7
8
|
export { Tag } from './Tag';
|
|
8
9
|
export { Tooltip } from './Tooltip';
|
|
9
10
|
export { Typography } from './Typography';
|
|
10
11
|
export { Checkbox } from './Checkbox';
|
|
12
|
+
export { Icon } from './Icon';
|
|
13
|
+
export { Text } from './Text';
|
|
14
|
+
export { Popover } from './Popover';
|
|
15
|
+
export { RequiredLabel } from './RequiredLabel';
|
|
16
|
+
export { Switch } from './Switch';
|
|
17
|
+
export { Slider } from './Slider';
|
|
18
|
+
export { Message } from './Message';
|
|
19
|
+
export { Spin } from './Spin';
|
|
20
|
+
export { Alert } from './Alert';
|
|
21
|
+
export { ScrollBox } from './ScrollBox';
|
|
22
|
+
export type { SliderProps } from './Slider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TAlign = 'left' | 'center' | 'right' | undefined;
|
|
3
|
+
export interface AlignEditProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
align?: TAlign;
|
|
6
|
+
onChange?: (align: TAlign) => void;
|
|
7
|
+
style?: Object;
|
|
8
|
+
}
|
|
9
|
+
export interface AlignSettingProps extends AlignEditProps {
|
|
10
|
+
label?: string;
|
|
11
|
+
labelClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ALIGN_TYPE: {
|
|
14
|
+
LEFT: string;
|
|
15
|
+
CENTER: string;
|
|
16
|
+
RIGHT: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const AlignEdit: React.FC<AlignEditProps>;
|
|
19
|
+
export declare const AlignSetting: React.FC<AlignSettingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AlignSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChromePicker: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledChromePicker: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const CustomPickerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SaturationPointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const HuePointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const PreviewColorPoint: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const EditableInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorResult } from 'react-color';
|
|
3
|
+
interface SketchPickerProps {
|
|
4
|
+
presetColors?: any[];
|
|
5
|
+
color: string;
|
|
6
|
+
onChange?: (color: ColorResult) => void;
|
|
7
|
+
onChangeComplete?: (color: ColorResult) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SketchPicker: React.FC<SketchPickerProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SketchPickerWrapper: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ColorPickerProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
presetColors?: any[] | ReactNode;
|
|
6
|
+
defaultColor?: string;
|
|
7
|
+
icon?: React.ReactNode | string;
|
|
8
|
+
onChange?: (color: string) => void;
|
|
9
|
+
showInput?: boolean;
|
|
10
|
+
positionInput?: 'right' | 'left';
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ColorPickerWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
|
+
import { ColorPickerProps } from 'src/components/molecules/ColorPicker';
|
|
3
|
+
interface ColorSettingProps extends ColorPickerProps {
|
|
4
|
+
label: string;
|
|
5
|
+
labelClassName?: string;
|
|
6
|
+
labelStyling?: Partial<CSSProperties>;
|
|
7
|
+
className?: string;
|
|
8
|
+
vertical?: boolean;
|
|
9
|
+
customColors?: Array<string>;
|
|
10
|
+
callback?: (type: 'ON_ADD_NEW_PRESET' | 'ON_EDIT_CLICKED', dataOut?: any) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ColorSetting: React.FC<ColorSettingProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ColorSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const PresetColor: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ButtonPreset: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<{
|
|
4
|
+
href: string;
|
|
5
|
+
target?: string | undefined;
|
|
6
|
+
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
|
+
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
|
+
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
11
|
+
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
12
|
+
}, any, {}, never>;
|
|
13
|
+
export declare const PresetWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type MarginProps = number | 'auto';
|
|
3
|
+
type ValueProps = [MarginProps, MarginProps, MarginProps, MarginProps];
|
|
4
|
+
type ValueLabelProps = [string, string, string?, string?];
|
|
5
|
+
type AlignTypeProps = 'left' | 'center' | 'right';
|
|
6
|
+
type UnitProps = 'px' | '%' | any;
|
|
7
|
+
export declare const UNIT: {
|
|
8
|
+
PX: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
PERCENT: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type DataProps = {
|
|
18
|
+
values: ValueProps;
|
|
19
|
+
linked: boolean;
|
|
20
|
+
unit: UnitProps;
|
|
21
|
+
align: AlignTypeProps;
|
|
22
|
+
};
|
|
23
|
+
type OnChangeProps = (data: DataProps) => void;
|
|
24
|
+
interface EdgeSettingProps {
|
|
25
|
+
label: string;
|
|
26
|
+
minValue?: number;
|
|
27
|
+
maxValue?: number;
|
|
28
|
+
edgeLabels?: ValueLabelProps;
|
|
29
|
+
edgeLabelClassName?: string;
|
|
30
|
+
contentClassName?: string;
|
|
31
|
+
values: ValueProps;
|
|
32
|
+
unit?: UnitProps;
|
|
33
|
+
linked?: boolean;
|
|
34
|
+
onChange?: OnChangeProps;
|
|
35
|
+
align?: AlignTypeProps | null;
|
|
36
|
+
disabledLinked?: boolean | false;
|
|
37
|
+
}
|
|
38
|
+
export declare const EdgeSetting: React.FC<EdgeSettingProps>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const EdgeSettingWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const EdgeSettingHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const EdgeSettingContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|