iglooform 3.0.7 → 3.0.8
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/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/element/index.d.ts +12 -0
- 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/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/step/index.d.ts +17 -0
- package/es/form/steps/index.d.ts +10 -0
- package/es/form-context.d.ts +27 -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/element/index.d.ts +11 -0
- package/es/free-form/index.d.ts +11 -0
- 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/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 +30 -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 +182 -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/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/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/element/index.d.ts +12 -0
- 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/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/step/index.d.ts +17 -0
- package/lib/form/steps/index.d.ts +10 -0
- package/lib/form-context.d.ts +27 -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/element/index.d.ts +11 -0
- package/lib/free-form/index.d.ts +11 -0
- 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/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 +30 -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 +182 -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/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,20 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import './style';
|
|
3
|
+
interface info {
|
|
4
|
+
title: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface action {
|
|
8
|
+
title: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
interface IHomeMenu {
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
customInfos: info[];
|
|
15
|
+
actions: action[];
|
|
16
|
+
userAvatar?: string;
|
|
17
|
+
userName?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const HomeMenu: (props: IHomeMenu) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default HomeMenu;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as BlinkIDSDK from '@microblink/blinkid-in-browser-sdk';
|
|
2
|
+
declare const useMicroBlink: () => (licenseKey: string) => {
|
|
3
|
+
initResult: {
|
|
4
|
+
error: undefined;
|
|
5
|
+
failed: boolean;
|
|
6
|
+
};
|
|
7
|
+
recognize: ((file: File) => Promise<BlinkIDSDK.BlinkIdSingleSideRecognizerResult | null>) | null;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default useMicroBlink;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export { default as Form } from './form';
|
|
2
|
+
export { default as Button, GreenButton, YellowButton, RedButton, } from './button';
|
|
3
|
+
export { default as DatePicker, IglooBuddhistDatePicker as BuddhistDatePicker, IglooRangePicker as RangePicker, IglooWeekPicker as WeekPicker, IglooMonthPicker as MonthPicker, } from './date-picker';
|
|
4
|
+
export { default as Input, PhoneNumber, Amount, Password, Email, InputNumber, TextArea, InputDate, CreditCard, ExpiryDate, InputId, } from './input';
|
|
5
|
+
export { default as OCR } from './ocr';
|
|
6
|
+
export { default as Select, TimeSelect, AttachedSelect } from './select';
|
|
7
|
+
export { default as Radio, RadioGroup, RadioGroupWithOther } from './radio';
|
|
8
|
+
export { default as Upload } from './upload';
|
|
9
|
+
export { default as Checkbox, CheckboxGroup } from './checkbox';
|
|
10
|
+
export { default as Declaration } from './declaration';
|
|
11
|
+
export { Divider } from 'antd';
|
|
12
|
+
export { default as UploadPhoto } from './upload-photo';
|
|
13
|
+
export { default as AlertMessage } from './alert-message';
|
|
14
|
+
export { default as LoginPage } from './login-page';
|
|
15
|
+
export { default as UploadPreview } from './upload-preview';
|
|
16
|
+
export { default as Typography } from './typography';
|
|
17
|
+
export { default as PlatformCard } from './platform/platform-card';
|
|
18
|
+
export { default as SwitchPlatform } from './platform/switch-platform';
|
|
19
|
+
export { default as Table } from './table';
|
|
20
|
+
export { default as StatusBox } from './status-box';
|
|
21
|
+
export { CardPage, Card, CardGroup, CardItem } from './card-detail';
|
|
22
|
+
export { default as AdminMedia } from './media';
|
|
23
|
+
export { default as Documents } from './documents';
|
|
24
|
+
export { default as Filter } from './filter';
|
|
25
|
+
export { default as CurrencyContext } from './currency-context';
|
|
26
|
+
export { default as Tabs } from './tabs';
|
|
27
|
+
export { default as AdminAmount } from './admin-amount';
|
|
28
|
+
export { default as AdminUpload } from './admin-upload';
|
|
29
|
+
export { LocaleProvider } from './locale';
|
|
30
|
+
export { default as Modal } from './modal';
|
|
31
|
+
export { default as BackTop } from './back-top';
|
|
32
|
+
export { default as MediaPreview } from './upload-preview/media';
|
|
33
|
+
export { default as PolicyList } from './policy-list';
|
|
34
|
+
export { default as ClaimList } from './claim-list';
|
|
35
|
+
export { default as MobileInsurerDetail } from './mobile-insurer-detail';
|
|
36
|
+
export { default as Layout } from './layout';
|
|
37
|
+
export { default as DetailPanel } from './detail-panel';
|
|
38
|
+
export { default as message } from './message';
|
|
39
|
+
export { default as SearchBox } from './search-box';
|
|
40
|
+
export { default as FreeForm } from './free-form';
|
|
41
|
+
export { default as FormItem } from './free-form/element';
|
|
42
|
+
export { default as FormPages } from './free-form/pages';
|
|
43
|
+
export { default as FormPage } from './free-form/page';
|
|
44
|
+
export { default as FormSteps } from './free-form/steps';
|
|
45
|
+
export { default as FormStep } from './free-form/step';
|
|
46
|
+
export { default as FormSection } from './free-form/section';
|
|
47
|
+
export { default as FormAddableSection } from './free-form/addable-section';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputProps } from 'antd/es/input';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style/amount';
|
|
4
|
+
export interface AmountProps extends InputProps, IglooComponentProps {
|
|
5
|
+
currency?: string;
|
|
6
|
+
currencyProps?: InputProps;
|
|
7
|
+
amount?: number;
|
|
8
|
+
amountProps?: InputProps;
|
|
9
|
+
seperator?: ',' | '.';
|
|
10
|
+
separator?: ',' | '.';
|
|
11
|
+
decimalSeparator?: ',' | '.';
|
|
12
|
+
}
|
|
13
|
+
declare const Amount: FC<AmountProps>;
|
|
14
|
+
export default Amount;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputProps } from 'antd/es/input';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style/index';
|
|
4
|
+
interface CardConfig {
|
|
5
|
+
name: string;
|
|
6
|
+
reg: string;
|
|
7
|
+
icon: any;
|
|
8
|
+
}
|
|
9
|
+
type Props = InputProps & IglooComponentProps & {
|
|
10
|
+
cardConfig?: CardConfig[];
|
|
11
|
+
};
|
|
12
|
+
declare const IglooCredit: FC<Props>;
|
|
13
|
+
export default IglooCredit;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC, IglooComponentProps } from '../types';
|
|
2
|
+
import './style/input-date';
|
|
3
|
+
type Props = IglooComponentProps & {
|
|
4
|
+
value?: {
|
|
5
|
+
year: string | number;
|
|
6
|
+
month: string | number;
|
|
7
|
+
};
|
|
8
|
+
onChange?: any;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
check?: (value: {
|
|
11
|
+
year: string;
|
|
12
|
+
month: string;
|
|
13
|
+
}) => boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const IglooExpiryDate: FC<Props>;
|
|
16
|
+
export default IglooExpiryDate;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { default as PhoneNumber } from './phone-number';
|
|
2
|
+
export { default as Amount } from './amount';
|
|
3
|
+
export { default as Email } from './email';
|
|
4
|
+
export { default as Password } from './password';
|
|
5
|
+
export { default as InputNumber } from './input-number';
|
|
6
|
+
export { default as TextArea } from './text-area';
|
|
7
|
+
export { default as InputDate } from './input-date';
|
|
8
|
+
export { default as CreditCard } from './credit-card';
|
|
9
|
+
export { default as Otp } from './otp';
|
|
10
|
+
export { default as ExpiryDate } from './expiry-date';
|
|
11
|
+
export { default as InputId } from './input-id';
|
|
12
|
+
import IglooInput from './input';
|
|
13
|
+
import './style';
|
|
14
|
+
export default IglooInput;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputProps } from 'antd/es/input';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style/input-date';
|
|
4
|
+
type Props = InputProps & IglooComponentProps & {
|
|
5
|
+
format: string;
|
|
6
|
+
};
|
|
7
|
+
declare const IglooInputDate: FC<Props>;
|
|
8
|
+
export default IglooInputDate;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps as AntdInputProps } from 'antd/es/input';
|
|
3
|
+
import { FC, IglooComponentProps } from '../types';
|
|
4
|
+
import './style/index';
|
|
5
|
+
export type InputProps = AntdInputProps & IglooComponentProps & {
|
|
6
|
+
ref?: React.Ref<any>;
|
|
7
|
+
};
|
|
8
|
+
declare const IglooInput: FC<InputProps>;
|
|
9
|
+
export default IglooInput;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputProps } from './input';
|
|
2
|
+
import { FC, FormItemName } from '../types';
|
|
3
|
+
import './style/otp';
|
|
4
|
+
interface OtpProps extends InputProps {
|
|
5
|
+
sendOtp: (value: any) => any;
|
|
6
|
+
dependField: FormItemName;
|
|
7
|
+
countDownSeconds: number;
|
|
8
|
+
fireBaseId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Otp: FC<OtpProps>;
|
|
11
|
+
export default Otp;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { FC, IglooComponentProps } from '../types';
|
|
3
|
+
import './style/phone-number';
|
|
4
|
+
export interface PhoneNumberProps extends IglooComponentProps {
|
|
5
|
+
areaCode?: string | string[];
|
|
6
|
+
phoneNumber?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
value?: any;
|
|
11
|
+
onChange?: any;
|
|
12
|
+
}
|
|
13
|
+
declare const PhoneNumber: FC<PhoneNumberProps>;
|
|
14
|
+
export default PhoneNumber;
|
|
@@ -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,30 @@
|
|
|
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
|
+
};
|
|
12
|
+
onOk?: (values: any, fullValue: any) => any;
|
|
13
|
+
limitHeight?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface ModalFuncReturn {
|
|
16
|
+
destroy: Function;
|
|
17
|
+
update: (props: ModalProps & ModalFuncProps & FormModalProps) => any;
|
|
18
|
+
}
|
|
19
|
+
type ModalFunction = (props: ModalProps & ModalFuncProps & FormModalProps) => ModalFuncReturn;
|
|
20
|
+
interface ModalType extends FC<ModalProps & ModalFuncProps & FormModalProps> {
|
|
21
|
+
confirm: ModalFunction;
|
|
22
|
+
info: ModalFunction;
|
|
23
|
+
warning: ModalFunction;
|
|
24
|
+
error: ModalFunction;
|
|
25
|
+
success: ModalFunction;
|
|
26
|
+
noFooter: ModalFunction;
|
|
27
|
+
destroyAll: Function;
|
|
28
|
+
}
|
|
29
|
+
declare const IglooModal: ModalType;
|
|
30
|
+
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;
|