iglooform 3.0.7 → 3.0.9
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/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
- package/es/admin-amount/index.d.ts +9 -0
- package/es/admin-amount/style/index.d.ts +0 -0
- package/es/admin-upload/float.d.ts +16 -0
- package/es/admin-upload/index.d.ts +36 -0
- package/es/admin-upload/index.js +2 -2
- package/es/admin-upload/modal.d.ts +17 -0
- package/es/alert-message/index.d.ts +5 -0
- package/es/babel-plugin-import-option.d.ts +7 -0
- package/es/back-top/index.d.ts +5 -0
- package/es/button/index.d.ts +11 -0
- package/es/card-detail/card-group.d.ts +12 -0
- package/es/card-detail/card-item.d.ts +9 -0
- package/es/card-detail/card-page.d.ts +12 -0
- package/es/card-detail/card.d.ts +10 -0
- package/es/card-detail/utils.d.ts +5 -0
- package/es/checkbox/index.d.ts +24 -0
- package/es/claim-list/index.d.ts +48 -0
- package/es/confirmation/index.d.ts +14 -0
- package/es/date-picker/buddhist.d.ts +6 -0
- package/es/date-picker/index.d.ts +13 -0
- package/es/declaration/index.d.ts +9 -0
- package/es/detail-panel/index.d.ts +18 -0
- package/es/filter/checkBox.d.ts +12 -0
- package/es/filter/index.d.ts +52 -0
- package/es/filter/rangePicker.d.ts +18 -0
- package/es/form/addable-section/index.d.ts +20 -0
- package/es/form/addable-section/index.js +3 -2
- package/es/form/element/index.d.ts +12 -0
- package/es/form/element/index.js +3 -2
- package/es/form/elements.d.ts +8 -0
- package/es/form/hstep/index.d.ts +17 -0
- package/es/form/hsteps/index.d.ts +21 -0
- package/es/form/index.d.ts +4 -0
- package/es/form/index.js +4 -2
- package/es/form/login/index.d.ts +9 -0
- package/es/form/page/index.d.ts +10 -0
- package/es/form/pages/index.d.ts +10 -0
- package/es/form/section/index.d.ts +16 -0
- package/es/form/section/index.js +3 -2
- package/es/form/step/index.d.ts +17 -0
- package/es/form/steps/index.d.ts +10 -0
- package/es/form-context.d.ts +28 -0
- package/es/form-step-context.d.ts +6 -0
- package/es/free-form/addable-section/index.d.ts +19 -0
- package/es/free-form/addable-section/index.js +3 -2
- package/es/free-form/element/index.d.ts +11 -0
- package/es/free-form/element/index.js +3 -2
- package/es/free-form/index.d.ts +11 -0
- package/es/free-form/index.js +4 -2
- package/es/free-form/page/index.d.ts +16 -0
- package/es/free-form/pages/index.d.ts +10 -0
- package/es/free-form/section/index.d.ts +13 -0
- package/es/free-form/section/index.js +3 -2
- package/es/free-form/step/index.d.ts +21 -0
- package/es/free-form/steps/index.d.ts +12 -0
- package/es/home-menu/index.d.ts +20 -0
- package/es/hooks/ocr/index.d.ts +3 -0
- package/es/hooks/ocr/micro-blink.d.ts +10 -0
- package/es/index.d.ts +47 -0
- package/es/input/amount.d.ts +14 -0
- package/es/input/credit-card.d.ts +13 -0
- package/es/input/email.d.ts +6 -0
- package/es/input/expiry-date.d.ts +16 -0
- package/es/input/index.d.ts +14 -0
- package/es/input/input-date.d.ts +8 -0
- package/es/input/input-id.d.ts +6 -0
- package/es/input/input-number.d.ts +6 -0
- package/es/input/input.d.ts +9 -0
- package/es/input/otp.d.ts +11 -0
- package/es/input/password.d.ts +6 -0
- package/es/input/phone-number.d.ts +14 -0
- package/es/input/style/amount/index.d.ts +2 -0
- package/es/input/style/index.d.ts +2 -0
- package/es/input/style/input-date/index.d.ts +2 -0
- package/es/input/style/otp/index.d.ts +2 -0
- package/es/input/style/phone-number/index.d.ts +2 -0
- package/es/input/style/text-area/index.d.ts +2 -0
- package/es/input/text-area.d.ts +6 -0
- package/es/layout/header.d.ts +5 -0
- package/es/layout/index.d.ts +56 -0
- package/es/locale/locale-provider.d.ts +11 -0
- package/es/login-page/index.d.ts +7 -0
- package/es/media/index.d.ts +19 -0
- package/es/message/index.d.ts +12 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/mobile-insurer-detail/index.d.ts +40 -0
- package/es/mobile-insurer-list/index.d.ts +17 -0
- package/es/modal/index.d.ts +31 -0
- package/es/ocr/index.d.ts +15 -0
- package/es/ocr/micro-blink/index.d.ts +8 -0
- package/es/ocr/micro-blink/style/index.d.ts +1 -0
- package/es/platform/platform-card/index.d.ts +12 -0
- package/es/platform/switch-platform/index.d.ts +12 -0
- package/es/policy-list/policy-card.d.ts +48 -0
- package/es/radio/index.d.ts +24 -0
- package/es/search-box/index.d.ts +19 -0
- package/es/select/attached-select.d.ts +17 -0
- package/es/select/select.d.ts +13 -0
- package/es/select/time-select.d.ts +7 -0
- package/es/status-box/index.d.ts +11 -0
- package/es/table/index.d.ts +42 -0
- package/es/tabs/index.d.ts +15 -0
- package/es/types.d.ts +183 -0
- package/es/typography/index.d.ts +14 -0
- package/es/upload/index.d.ts +16 -0
- package/es/upload-photo/index.d.ts +28 -0
- package/es/upload-preview/index.d.ts +9 -0
- package/es/utils/form-methods.d.ts +3 -0
- package/es/utils/form-utils.d.ts +77 -0
- package/es/utils/form-utils.js +2 -2
- package/es/utils/option-utils.d.ts +29 -0
- package/es/utils/tools.d.ts +1 -1
- package/es/utils/useAsyncEffect.d.ts +3 -0
- package/lib/admin-amount/index.d.ts +9 -0
- package/lib/admin-amount/style/index.d.ts +0 -0
- package/lib/admin-upload/float.d.ts +16 -0
- package/lib/admin-upload/index.d.ts +36 -0
- package/lib/admin-upload/index.js +2 -2
- package/lib/admin-upload/modal.d.ts +17 -0
- package/lib/alert-message/index.d.ts +5 -0
- package/lib/babel-plugin-import-option.d.ts +7 -0
- package/lib/back-top/index.d.ts +5 -0
- package/lib/button/index.d.ts +11 -0
- package/lib/card-detail/card-group.d.ts +12 -0
- package/lib/card-detail/card-item.d.ts +9 -0
- package/lib/card-detail/card-page.d.ts +12 -0
- package/lib/card-detail/card.d.ts +10 -0
- package/lib/card-detail/utils.d.ts +5 -0
- package/lib/checkbox/index.d.ts +24 -0
- package/lib/claim-list/index.d.ts +48 -0
- package/lib/confirmation/index.d.ts +14 -0
- package/lib/date-picker/buddhist.d.ts +6 -0
- package/lib/date-picker/index.d.ts +13 -0
- package/lib/declaration/index.d.ts +9 -0
- package/lib/detail-panel/index.d.ts +18 -0
- package/lib/filter/checkBox.d.ts +12 -0
- package/lib/filter/index.d.ts +52 -0
- package/lib/filter/rangePicker.d.ts +18 -0
- package/lib/form/addable-section/index.d.ts +20 -0
- package/lib/form/addable-section/index.js +3 -2
- package/lib/form/element/index.d.ts +12 -0
- package/lib/form/element/index.js +3 -2
- package/lib/form/elements.d.ts +8 -0
- package/lib/form/hstep/index.d.ts +17 -0
- package/lib/form/hsteps/index.d.ts +21 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/index.js +4 -2
- package/lib/form/login/index.d.ts +9 -0
- package/lib/form/page/index.d.ts +10 -0
- package/lib/form/pages/index.d.ts +10 -0
- package/lib/form/section/index.d.ts +16 -0
- package/lib/form/section/index.js +3 -2
- package/lib/form/step/index.d.ts +17 -0
- package/lib/form/steps/index.d.ts +10 -0
- package/lib/form-context.d.ts +28 -0
- package/lib/form-step-context.d.ts +6 -0
- package/lib/free-form/addable-section/index.d.ts +19 -0
- package/lib/free-form/addable-section/index.js +3 -2
- package/lib/free-form/element/index.d.ts +11 -0
- package/lib/free-form/element/index.js +3 -2
- package/lib/free-form/index.d.ts +11 -0
- package/lib/free-form/index.js +4 -2
- package/lib/free-form/page/index.d.ts +16 -0
- package/lib/free-form/pages/index.d.ts +10 -0
- package/lib/free-form/section/index.d.ts +13 -0
- package/lib/free-form/section/index.js +3 -2
- package/lib/free-form/step/index.d.ts +21 -0
- package/lib/free-form/steps/index.d.ts +12 -0
- package/lib/home-menu/index.d.ts +20 -0
- package/lib/hooks/ocr/index.d.ts +3 -0
- package/lib/hooks/ocr/micro-blink.d.ts +10 -0
- package/lib/index.d.ts +47 -0
- package/lib/input/amount.d.ts +14 -0
- package/lib/input/credit-card.d.ts +13 -0
- package/lib/input/email.d.ts +6 -0
- package/lib/input/expiry-date.d.ts +16 -0
- package/lib/input/index.d.ts +14 -0
- package/lib/input/input-date.d.ts +8 -0
- package/lib/input/input-id.d.ts +6 -0
- package/lib/input/input-number.d.ts +6 -0
- package/lib/input/input.d.ts +9 -0
- package/lib/input/otp.d.ts +11 -0
- package/lib/input/password.d.ts +6 -0
- package/lib/input/phone-number.d.ts +14 -0
- package/lib/input/style/amount/index.d.ts +2 -0
- package/lib/input/style/index.d.ts +2 -0
- package/lib/input/style/input-date/index.d.ts +2 -0
- package/lib/input/style/otp/index.d.ts +2 -0
- package/lib/input/style/phone-number/index.d.ts +2 -0
- package/lib/input/style/text-area/index.d.ts +2 -0
- package/lib/input/text-area.d.ts +6 -0
- package/lib/layout/header.d.ts +5 -0
- package/lib/layout/index.d.ts +56 -0
- package/lib/locale/locale-provider.d.ts +11 -0
- package/lib/login-page/index.d.ts +7 -0
- package/lib/media/index.d.ts +19 -0
- package/lib/message/index.d.ts +12 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/mobile-insurer-detail/index.d.ts +40 -0
- package/lib/mobile-insurer-list/index.d.ts +17 -0
- package/lib/modal/index.d.ts +31 -0
- package/lib/ocr/index.d.ts +15 -0
- package/lib/ocr/micro-blink/index.d.ts +8 -0
- package/lib/ocr/micro-blink/style/index.d.ts +1 -0
- package/lib/platform/platform-card/index.d.ts +12 -0
- package/lib/platform/switch-platform/index.d.ts +12 -0
- package/lib/policy-list/policy-card.d.ts +48 -0
- package/lib/radio/index.d.ts +24 -0
- package/lib/search-box/index.d.ts +19 -0
- package/lib/select/attached-select.d.ts +17 -0
- package/lib/select/select.d.ts +13 -0
- package/lib/select/time-select.d.ts +7 -0
- package/lib/status-box/index.d.ts +11 -0
- package/lib/table/index.d.ts +42 -0
- package/lib/tabs/index.d.ts +15 -0
- package/lib/types.d.ts +183 -0
- package/lib/typography/index.d.ts +14 -0
- package/lib/upload/index.d.ts +16 -0
- package/lib/upload-photo/index.d.ts +28 -0
- package/lib/upload-preview/index.d.ts +9 -0
- package/lib/utils/form-methods.d.ts +3 -0
- package/lib/utils/form-utils.d.ts +77 -0
- package/lib/utils/form-utils.js +2 -2
- package/lib/utils/option-utils.d.ts +29 -0
- package/lib/utils/tools.d.ts +1 -1
- package/lib/utils/useAsyncEffect.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FC, CSSProperties, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from 'antd';
|
|
3
|
+
import './style';
|
|
4
|
+
interface Menu {
|
|
5
|
+
title: string;
|
|
6
|
+
key: string;
|
|
7
|
+
badge?: 'dot' | number | string | BadgeProps | (() => any) | string;
|
|
8
|
+
}
|
|
9
|
+
interface Info {
|
|
10
|
+
title: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
interface Action {
|
|
14
|
+
title: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface HeaderConfig {
|
|
18
|
+
hiddenIglooIcon?: boolean;
|
|
19
|
+
menus?: Menu[];
|
|
20
|
+
defaultSelected?: string;
|
|
21
|
+
selectedKey?: string;
|
|
22
|
+
onMenuChange?: (menuItem: any) => any;
|
|
23
|
+
dropMenuConfig?: {
|
|
24
|
+
customInfos: Info[];
|
|
25
|
+
actions: Action[];
|
|
26
|
+
};
|
|
27
|
+
userName?: string;
|
|
28
|
+
userAvatar?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FooterConfig {
|
|
31
|
+
hiddenIglooIcon?: boolean;
|
|
32
|
+
extraInfo?: () => any;
|
|
33
|
+
companyInfoRender?: () => any;
|
|
34
|
+
copyRightRender?: (origin: ReactNode) => any;
|
|
35
|
+
tel?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
workTime?: any;
|
|
38
|
+
address?: string;
|
|
39
|
+
companyIcon?: string;
|
|
40
|
+
}
|
|
41
|
+
interface layoutType {
|
|
42
|
+
hiddenIglooIcon?: boolean;
|
|
43
|
+
className?: string;
|
|
44
|
+
style?: CSSProperties;
|
|
45
|
+
withFixedPanel?: boolean;
|
|
46
|
+
headerConfig?: HeaderConfig;
|
|
47
|
+
footerConfig?: FooterConfig;
|
|
48
|
+
}
|
|
49
|
+
type HeaderFunction = (props: HeaderConfig) => any;
|
|
50
|
+
type FooterFunction = (props: FooterConfig) => any;
|
|
51
|
+
interface ILayout extends FC<PropsWithChildren<layoutType>> {
|
|
52
|
+
Header: HeaderFunction;
|
|
53
|
+
Footer: FooterFunction;
|
|
54
|
+
}
|
|
55
|
+
declare const Layout: ILayout;
|
|
56
|
+
export default Layout;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC, CSSProperties } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
interface Props {
|
|
4
|
+
src: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
type?: 'image' | 'video' | 'pdf';
|
|
7
|
+
index?: number;
|
|
8
|
+
list?: Array<{
|
|
9
|
+
type: string;
|
|
10
|
+
src: string;
|
|
11
|
+
}>;
|
|
12
|
+
docNames?: string[];
|
|
13
|
+
className?: any;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
showAllPages?: boolean;
|
|
16
|
+
destroyOnClose?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const MediaWithPreview: FC<Props>;
|
|
19
|
+
export default MediaWithPreview;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './style';
|
|
3
|
+
type ConfigContent = React.ReactNode | string;
|
|
4
|
+
type ConfigDuration = number;
|
|
5
|
+
interface IglooGlobalMessage {
|
|
6
|
+
info(content: ConfigContent, duration?: ConfigDuration): any;
|
|
7
|
+
success(content: ConfigContent, duration?: ConfigDuration): any;
|
|
8
|
+
error(content: ConfigContent, duration?: ConfigDuration): any;
|
|
9
|
+
warning(content: ConfigContent, duration?: ConfigDuration): any;
|
|
10
|
+
}
|
|
11
|
+
declare const IglooMessage: IglooGlobalMessage;
|
|
12
|
+
export default IglooMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { AlertProps } from 'antd/lib/alert';
|
|
3
|
+
import { IStatusBoxProps } from '../status-box';
|
|
4
|
+
import './style';
|
|
5
|
+
interface InfoText {
|
|
6
|
+
text: string;
|
|
7
|
+
link?: {
|
|
8
|
+
linkText: string;
|
|
9
|
+
onClick?: (params?: any) => void;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface InfoItem {
|
|
13
|
+
title: string;
|
|
14
|
+
info: InfoText | string | Array<string | InfoText> | any;
|
|
15
|
+
hide?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface IPolicyButtonsProps {
|
|
18
|
+
label: string;
|
|
19
|
+
onClick?: (info?: any) => void;
|
|
20
|
+
icon?: any;
|
|
21
|
+
render?: () => ReactNode;
|
|
22
|
+
type?: 'dashed' | 'default' | 'ghost' | 'link' | 'primary' | 'text';
|
|
23
|
+
}
|
|
24
|
+
export interface IMobileInsurerDetail {
|
|
25
|
+
messageBar?: AlertProps;
|
|
26
|
+
statusProps?: IStatusBoxProps;
|
|
27
|
+
insurerLogo?: any;
|
|
28
|
+
insurerName?: string;
|
|
29
|
+
insurerType?: string;
|
|
30
|
+
buttons?: IPolicyButtonsProps[];
|
|
31
|
+
infoGroups?: {
|
|
32
|
+
hideBottomLine?: boolean;
|
|
33
|
+
sectionName?: string;
|
|
34
|
+
infoItems: InfoItem[];
|
|
35
|
+
}[];
|
|
36
|
+
className?: string;
|
|
37
|
+
style?: CSSProperties;
|
|
38
|
+
}
|
|
39
|
+
declare const MobileInsurerDetail: (props: IMobileInsurerDetail) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export default MobileInsurerDetail;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { IPolicyCardProps } from '../policy-list/policy-card';
|
|
3
|
+
import './style';
|
|
4
|
+
interface ICardProps extends IPolicyCardProps {
|
|
5
|
+
mobileSubTitle?: string;
|
|
6
|
+
mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
|
|
7
|
+
mobileRedDot?: boolean;
|
|
8
|
+
mobileTagRender?: (cardInfo?: IPolicyCardProps) => any;
|
|
9
|
+
mobileExtraRender?: () => any;
|
|
10
|
+
}
|
|
11
|
+
interface IPolicyOrClaimMobileListProps {
|
|
12
|
+
dataList: ICardProps[];
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const MobileInsurerList: (props: IPolicyOrClaimMobileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default MobileInsurerList;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ModalFuncProps, ModalProps } from 'antd/lib/modal';
|
|
3
|
+
import { FormBasicConfig, FormItemConfig } from '../types';
|
|
4
|
+
import './style';
|
|
5
|
+
interface FormModalProps {
|
|
6
|
+
mode?: 'form' | 'normal';
|
|
7
|
+
formConfig?: FormItemConfig;
|
|
8
|
+
formProps?: {
|
|
9
|
+
locales?: FormBasicConfig['locales'];
|
|
10
|
+
initialValues?: FormBasicConfig['initialValues'];
|
|
11
|
+
validationCodeExtraParams?: Record<string, any>;
|
|
12
|
+
};
|
|
13
|
+
onOk?: (values: any, fullValue: any) => any;
|
|
14
|
+
limitHeight?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface ModalFuncReturn {
|
|
17
|
+
destroy: Function;
|
|
18
|
+
update: (props: ModalProps & ModalFuncProps & FormModalProps) => any;
|
|
19
|
+
}
|
|
20
|
+
type ModalFunction = (props: ModalProps & ModalFuncProps & FormModalProps) => ModalFuncReturn;
|
|
21
|
+
interface ModalType extends FC<ModalProps & ModalFuncProps & FormModalProps> {
|
|
22
|
+
confirm: ModalFunction;
|
|
23
|
+
info: ModalFunction;
|
|
24
|
+
warning: ModalFunction;
|
|
25
|
+
error: ModalFunction;
|
|
26
|
+
success: ModalFunction;
|
|
27
|
+
noFooter: ModalFunction;
|
|
28
|
+
destroyAll: Function;
|
|
29
|
+
}
|
|
30
|
+
declare const IglooModal: ModalType;
|
|
31
|
+
export default IglooModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, IglooComponentProps, FormItemExtraConfig } from '../types';
|
|
2
|
+
export interface OutputMap {
|
|
3
|
+
field: string[];
|
|
4
|
+
source: string[];
|
|
5
|
+
format?: string;
|
|
6
|
+
formatType?: string;
|
|
7
|
+
}
|
|
8
|
+
interface OCRProps extends IglooComponentProps, FormItemExtraConfig {
|
|
9
|
+
ocrConfig: {
|
|
10
|
+
vendor: string;
|
|
11
|
+
outputMap: OutputMap[];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
declare const OCR: FC<OCRProps>;
|
|
15
|
+
export default OCR;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, IglooComponentProps, FormItemExtraConfig } from '../../types';
|
|
2
|
+
import { OutputMap } from '../index';
|
|
3
|
+
import './style';
|
|
4
|
+
interface MicroBlinkProps extends IglooComponentProps, FormItemExtraConfig {
|
|
5
|
+
outputMap: OutputMap[];
|
|
6
|
+
}
|
|
7
|
+
declare const MicroBlink: FC<MicroBlinkProps>;
|
|
8
|
+
export default MicroBlink;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
interface Props {
|
|
4
|
+
platforms: (string | {
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
})[];
|
|
8
|
+
currentPlatform: string;
|
|
9
|
+
onChange: (platform: string) => any;
|
|
10
|
+
}
|
|
11
|
+
declare const SwitchPlatform: FC<Props>;
|
|
12
|
+
export default SwitchPlatform;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlertProps } from 'antd/lib/alert';
|
|
3
|
+
import { IStatusBoxProps } from '../status-box';
|
|
4
|
+
import './style';
|
|
5
|
+
interface InfoText {
|
|
6
|
+
text: string;
|
|
7
|
+
link?: {
|
|
8
|
+
linkText: string;
|
|
9
|
+
onClick?: (params?: any) => void;
|
|
10
|
+
} | {
|
|
11
|
+
linkText: string;
|
|
12
|
+
onClick?: (params?: any) => void;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
interface InfoItem {
|
|
16
|
+
title: string;
|
|
17
|
+
info: InfoText | string | Array<string | InfoText> | any;
|
|
18
|
+
span?: 6 | 12 | 18 | 24;
|
|
19
|
+
hide?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface IPolicyButtonsProps {
|
|
22
|
+
label: string;
|
|
23
|
+
onClick?: (policyInfo?: any) => void;
|
|
24
|
+
icon?: any;
|
|
25
|
+
render?: () => ReactNode;
|
|
26
|
+
type?: 'dashed' | 'default' | 'ghost' | 'link' | 'primary' | 'text';
|
|
27
|
+
}
|
|
28
|
+
export interface IPolicyCardProps {
|
|
29
|
+
insurerLogo?: any;
|
|
30
|
+
insurerName?: string;
|
|
31
|
+
insurerType?: string;
|
|
32
|
+
statusProps?: IStatusBoxProps;
|
|
33
|
+
messageBar?: AlertProps;
|
|
34
|
+
className?: string;
|
|
35
|
+
style?: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
buttons?: IPolicyButtonsProps[];
|
|
39
|
+
infoGroups?: {
|
|
40
|
+
sectionName?: string;
|
|
41
|
+
infoItems: InfoItem[];
|
|
42
|
+
}[];
|
|
43
|
+
defaultItems?: InfoItem[];
|
|
44
|
+
onExpand?: (cardInfo?: any) => any;
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}
|
|
47
|
+
declare const PolicyCard: (props: IPolicyCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export default PolicyCard;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioProps, RadioGroupProps } from 'antd/es/radio';
|
|
3
|
+
import { FC, IglooComponentProps } from '../types';
|
|
4
|
+
import './style';
|
|
5
|
+
import { ComponentProps } from '../utils/option-utils';
|
|
6
|
+
import { DefaultOptionType } from 'rc-select/lib/Select';
|
|
7
|
+
type Props = RadioProps & IglooComponentProps;
|
|
8
|
+
declare const IglooRadio: FC<Props>;
|
|
9
|
+
export interface Option extends DefaultOptionType {
|
|
10
|
+
extraInfo?: {
|
|
11
|
+
content: any;
|
|
12
|
+
shownTrigger: 'unchecked' | 'checked' | 'all';
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'options'>, ComponentProps {
|
|
16
|
+
className?: string;
|
|
17
|
+
radioType?: string;
|
|
18
|
+
options: Option[];
|
|
19
|
+
preview?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const InnerRadioGroup: FC<IProps>;
|
|
22
|
+
export declare const RadioGroup: FC<React.PropsWithChildren<import("../utils/option-utils").HOCProps & IProps>>;
|
|
23
|
+
export default IglooRadio;
|
|
24
|
+
export { default as RadioGroupWithOther } from './radio-group-with-other';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style';
|
|
4
|
+
import { ComponentProps } from '../utils/option-utils';
|
|
5
|
+
type IProps = IglooComponentProps & {
|
|
6
|
+
className?: string;
|
|
7
|
+
onSearch?: any;
|
|
8
|
+
value?: any;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
modalTitle?: string;
|
|
11
|
+
placeHolder?: string;
|
|
12
|
+
modalPlaceHolder?: string;
|
|
13
|
+
optionsUpdating?: boolean;
|
|
14
|
+
onChange?: any;
|
|
15
|
+
okButtonProps?: ButtonProps;
|
|
16
|
+
cancelButtonProps?: ButtonProps;
|
|
17
|
+
} & ComponentProps;
|
|
18
|
+
declare const SearchBox: FC<IProps>;
|
|
19
|
+
export default SearchBox;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Select } from 'antd';
|
|
2
|
+
import { SelectProps, SelectValue } from 'antd/es/select';
|
|
3
|
+
import { FC, IglooComponentProps } from '../types';
|
|
4
|
+
import './style';
|
|
5
|
+
import { ComponentProps } from '../utils/option-utils';
|
|
6
|
+
type Props = SelectProps<SelectValue> & IglooComponentProps & {
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
preview?: boolean;
|
|
9
|
+
} & ComponentProps;
|
|
10
|
+
type OptionType = typeof Select.Option;
|
|
11
|
+
type OptGroupType = typeof Select.OptGroup;
|
|
12
|
+
interface IglooSelectType extends FC<Props> {
|
|
13
|
+
Option: OptionType;
|
|
14
|
+
OptGroup: OptGroupType;
|
|
15
|
+
}
|
|
16
|
+
declare const AttachedSelect: IglooSelectType;
|
|
17
|
+
export default AttachedSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Select } from 'antd';
|
|
2
|
+
import { SelectProps, SelectValue } from 'antd/es/select';
|
|
3
|
+
import { FC, IglooComponentProps } from '../types';
|
|
4
|
+
import './style';
|
|
5
|
+
type Props = SelectProps<SelectValue> & IglooComponentProps;
|
|
6
|
+
type OptionType = typeof Select.Option;
|
|
7
|
+
type OptGroupType = typeof Select.OptGroup;
|
|
8
|
+
interface IglooSelectType extends FC<Props> {
|
|
9
|
+
Option: OptionType;
|
|
10
|
+
OptGroup: OptGroupType;
|
|
11
|
+
}
|
|
12
|
+
declare const IglooSelect: IglooSelectType;
|
|
13
|
+
export default IglooSelect;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputProps } from 'antd/lib/input';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style';
|
|
4
|
+
import '../input/style/index';
|
|
5
|
+
type Props = InputProps & IglooComponentProps;
|
|
6
|
+
declare const IglooTimeSelect: FC<Props>;
|
|
7
|
+
export default IglooTimeSelect;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, FC, PropsWithChildren } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
export interface IStatusBoxProps {
|
|
4
|
+
type?: 'warning' | 'success' | 'waiting' | 'faild' | 'error' | 'failed';
|
|
5
|
+
color?: string;
|
|
6
|
+
background?: string;
|
|
7
|
+
className?: any;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
declare const IglooStatusBox: FC<PropsWithChildren<IStatusBoxProps>>;
|
|
11
|
+
export default IglooStatusBox;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { TableProps, ColumnType } from 'antd/lib/table';
|
|
4
|
+
import { PaginationProps } from 'antd/lib/pagination';
|
|
5
|
+
import { IFilterProps } from '../filter/index';
|
|
6
|
+
import './style';
|
|
7
|
+
interface ITableColProps extends ColumnType<object> {
|
|
8
|
+
defaultShow?: boolean;
|
|
9
|
+
customize?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface IExtraButtonsProps {
|
|
12
|
+
text?: string;
|
|
13
|
+
onClick?: (options?: any) => void;
|
|
14
|
+
icon?: any;
|
|
15
|
+
render?: () => ReactElement;
|
|
16
|
+
}
|
|
17
|
+
interface IActionButtonsProps {
|
|
18
|
+
text: string;
|
|
19
|
+
onClick: (params: any) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface ITableProps extends Omit<TableProps<any>, 'pagination'> {
|
|
22
|
+
total: number;
|
|
23
|
+
page: number;
|
|
24
|
+
pageSize: number;
|
|
25
|
+
columns: ITableColProps[];
|
|
26
|
+
onPagination: PaginationProps['onChange'];
|
|
27
|
+
noPagination?: boolean;
|
|
28
|
+
locale?: {};
|
|
29
|
+
noCustomize?: boolean;
|
|
30
|
+
pageSizeOptions?: number[];
|
|
31
|
+
className?: string;
|
|
32
|
+
extraButtons?: IExtraButtonsProps[];
|
|
33
|
+
actionButtons?: IActionButtonsProps[];
|
|
34
|
+
actionButtonsFilter?: (params: any, allButtons: IActionButtonsProps[]) => IActionButtonsProps[] | [];
|
|
35
|
+
colMax?: number | null;
|
|
36
|
+
filterConfig?: IFilterProps;
|
|
37
|
+
onClickRow?: (record: any, index?: number) => any;
|
|
38
|
+
colDisable?: boolean;
|
|
39
|
+
bottomExtra?: any;
|
|
40
|
+
}
|
|
41
|
+
declare const IglooTable: FC<ITableProps>;
|
|
42
|
+
export default IglooTable;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TabsProps } from 'antd';
|
|
3
|
+
import './style';
|
|
4
|
+
interface IglooTabsProps extends TabsProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const TabPane: React.FC<import("antd").TabPaneProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Tab
|
|
9
|
+
* @param {*} 所有antd的tabs
|
|
10
|
+
*/
|
|
11
|
+
declare function Tabs(props: IglooTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare namespace Tabs {
|
|
13
|
+
var TabPane: React.FC<import("antd").TabPaneProps>;
|
|
14
|
+
}
|
|
15
|
+
export default Tabs;
|