iglooform 3.0.6 → 3.0.7

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.
Files changed (194) hide show
  1. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
  2. package/es/alert-message/style/index.less +3 -3
  3. package/es/input/style/otp/index.less +1 -1
  4. package/es/login-page/style/index.less +10 -10
  5. package/es/upload-photo/style/index.less +20 -20
  6. package/es/upload-preview/style/index.less +1 -1
  7. package/lib/alert-message/style/index.less +3 -3
  8. package/lib/input/style/otp/index.less +1 -1
  9. package/lib/login-page/style/index.less +10 -10
  10. package/lib/upload-photo/style/index.less +20 -20
  11. package/lib/upload-preview/style/index.less +1 -1
  12. package/package.json +1 -1
  13. package/es/admin-amount/index.d.ts +0 -9
  14. package/es/admin-upload/float.d.ts +0 -16
  15. package/es/admin-upload/index.d.ts +0 -36
  16. package/es/admin-upload/modal.d.ts +0 -17
  17. package/es/alert-message/index.d.ts +0 -5
  18. package/es/back-top/index.d.ts +0 -5
  19. package/es/button/index.d.ts +0 -11
  20. package/es/card-detail/card-group.d.ts +0 -12
  21. package/es/card-detail/card-item.d.ts +0 -9
  22. package/es/card-detail/card-page.d.ts +0 -12
  23. package/es/card-detail/card.d.ts +0 -10
  24. package/es/card-detail/utils.d.ts +0 -5
  25. package/es/checkbox/index.d.ts +0 -24
  26. package/es/claim-list/index.d.ts +0 -48
  27. package/es/confirmation/index.d.ts +0 -14
  28. package/es/date-picker/buddhist.d.ts +0 -6
  29. package/es/date-picker/index.d.ts +0 -13
  30. package/es/declaration/index.d.ts +0 -9
  31. package/es/detail-panel/index.d.ts +0 -18
  32. package/es/filter/checkBox.d.ts +0 -12
  33. package/es/filter/index.d.ts +0 -52
  34. package/es/filter/rangePicker.d.ts +0 -18
  35. package/es/form/addable-section/index.d.ts +0 -20
  36. package/es/form/element/index.d.ts +0 -12
  37. package/es/form/elements.d.ts +0 -8
  38. package/es/form/hstep/index.d.ts +0 -17
  39. package/es/form/hsteps/index.d.ts +0 -21
  40. package/es/form/index.d.ts +0 -4
  41. package/es/form/login/index.d.ts +0 -9
  42. package/es/form/page/index.d.ts +0 -10
  43. package/es/form/pages/index.d.ts +0 -10
  44. package/es/form/section/index.d.ts +0 -16
  45. package/es/form/step/index.d.ts +0 -17
  46. package/es/form/steps/index.d.ts +0 -10
  47. package/es/form-context.d.ts +0 -27
  48. package/es/form-step-context.d.ts +0 -6
  49. package/es/free-form/addable-section/index.d.ts +0 -19
  50. package/es/free-form/element/index.d.ts +0 -11
  51. package/es/free-form/index.d.ts +0 -11
  52. package/es/free-form/page/index.d.ts +0 -16
  53. package/es/free-form/pages/index.d.ts +0 -10
  54. package/es/free-form/section/index.d.ts +0 -13
  55. package/es/free-form/step/index.d.ts +0 -21
  56. package/es/free-form/steps/index.d.ts +0 -12
  57. package/es/home-menu/index.d.ts +0 -20
  58. package/es/hooks/ocr/index.d.ts +0 -3
  59. package/es/hooks/ocr/micro-blink.d.ts +0 -10
  60. package/es/index.d.ts +0 -47
  61. package/es/input/amount.d.ts +0 -14
  62. package/es/input/credit-card.d.ts +0 -13
  63. package/es/input/email.d.ts +0 -6
  64. package/es/input/expiry-date.d.ts +0 -16
  65. package/es/input/index.d.ts +0 -14
  66. package/es/input/input-date.d.ts +0 -8
  67. package/es/input/input-id.d.ts +0 -6
  68. package/es/input/input-number.d.ts +0 -6
  69. package/es/input/input.d.ts +0 -9
  70. package/es/input/otp.d.ts +0 -11
  71. package/es/input/password.d.ts +0 -6
  72. package/es/input/phone-number.d.ts +0 -14
  73. package/es/input/text-area.d.ts +0 -6
  74. package/es/layout/header.d.ts +0 -5
  75. package/es/layout/index.d.ts +0 -56
  76. package/es/locale/locale-provider.d.ts +0 -11
  77. package/es/login-page/index.d.ts +0 -7
  78. package/es/media/index.d.ts +0 -19
  79. package/es/message/index.d.ts +0 -12
  80. package/es/mobile-insurer-detail/index.d.ts +0 -40
  81. package/es/mobile-insurer-list/index.d.ts +0 -17
  82. package/es/modal/index.d.ts +0 -30
  83. package/es/ocr/index.d.ts +0 -15
  84. package/es/ocr/micro-blink/index.d.ts +0 -8
  85. package/es/platform/platform-card/index.d.ts +0 -12
  86. package/es/platform/switch-platform/index.d.ts +0 -12
  87. package/es/policy-list/policy-card.d.ts +0 -48
  88. package/es/radio/index.d.ts +0 -24
  89. package/es/search-box/index.d.ts +0 -19
  90. package/es/select/attached-select.d.ts +0 -17
  91. package/es/select/select.d.ts +0 -13
  92. package/es/select/time-select.d.ts +0 -7
  93. package/es/status-box/index.d.ts +0 -11
  94. package/es/table/index.d.ts +0 -42
  95. package/es/tabs/index.d.ts +0 -15
  96. package/es/types.d.ts +0 -182
  97. package/es/typography/index.d.ts +0 -14
  98. package/es/upload/index.d.ts +0 -16
  99. package/es/upload-photo/index.d.ts +0 -28
  100. package/es/upload-preview/index.d.ts +0 -9
  101. package/es/utils/form-methods.d.ts +0 -3
  102. package/es/utils/form-utils.d.ts +0 -77
  103. package/es/utils/option-utils.d.ts +0 -29
  104. package/lib/admin-amount/index.d.ts +0 -9
  105. package/lib/admin-upload/float.d.ts +0 -16
  106. package/lib/admin-upload/index.d.ts +0 -36
  107. package/lib/admin-upload/modal.d.ts +0 -17
  108. package/lib/alert-message/index.d.ts +0 -5
  109. package/lib/back-top/index.d.ts +0 -5
  110. package/lib/button/index.d.ts +0 -11
  111. package/lib/card-detail/card-group.d.ts +0 -12
  112. package/lib/card-detail/card-item.d.ts +0 -9
  113. package/lib/card-detail/card-page.d.ts +0 -12
  114. package/lib/card-detail/card.d.ts +0 -10
  115. package/lib/card-detail/utils.d.ts +0 -5
  116. package/lib/checkbox/index.d.ts +0 -24
  117. package/lib/claim-list/index.d.ts +0 -48
  118. package/lib/confirmation/index.d.ts +0 -14
  119. package/lib/date-picker/buddhist.d.ts +0 -6
  120. package/lib/date-picker/index.d.ts +0 -13
  121. package/lib/declaration/index.d.ts +0 -9
  122. package/lib/detail-panel/index.d.ts +0 -18
  123. package/lib/filter/checkBox.d.ts +0 -12
  124. package/lib/filter/index.d.ts +0 -52
  125. package/lib/filter/rangePicker.d.ts +0 -18
  126. package/lib/form/addable-section/index.d.ts +0 -20
  127. package/lib/form/element/index.d.ts +0 -12
  128. package/lib/form/elements.d.ts +0 -8
  129. package/lib/form/hstep/index.d.ts +0 -17
  130. package/lib/form/hsteps/index.d.ts +0 -21
  131. package/lib/form/index.d.ts +0 -4
  132. package/lib/form/login/index.d.ts +0 -9
  133. package/lib/form/page/index.d.ts +0 -10
  134. package/lib/form/pages/index.d.ts +0 -10
  135. package/lib/form/section/index.d.ts +0 -16
  136. package/lib/form/step/index.d.ts +0 -17
  137. package/lib/form/steps/index.d.ts +0 -10
  138. package/lib/form-context.d.ts +0 -27
  139. package/lib/form-step-context.d.ts +0 -6
  140. package/lib/free-form/addable-section/index.d.ts +0 -19
  141. package/lib/free-form/element/index.d.ts +0 -11
  142. package/lib/free-form/index.d.ts +0 -11
  143. package/lib/free-form/page/index.d.ts +0 -16
  144. package/lib/free-form/pages/index.d.ts +0 -10
  145. package/lib/free-form/section/index.d.ts +0 -13
  146. package/lib/free-form/step/index.d.ts +0 -21
  147. package/lib/free-form/steps/index.d.ts +0 -12
  148. package/lib/home-menu/index.d.ts +0 -20
  149. package/lib/hooks/ocr/index.d.ts +0 -3
  150. package/lib/hooks/ocr/micro-blink.d.ts +0 -10
  151. package/lib/index.d.ts +0 -47
  152. package/lib/input/amount.d.ts +0 -14
  153. package/lib/input/credit-card.d.ts +0 -13
  154. package/lib/input/email.d.ts +0 -6
  155. package/lib/input/expiry-date.d.ts +0 -16
  156. package/lib/input/index.d.ts +0 -14
  157. package/lib/input/input-date.d.ts +0 -8
  158. package/lib/input/input-id.d.ts +0 -6
  159. package/lib/input/input-number.d.ts +0 -6
  160. package/lib/input/input.d.ts +0 -9
  161. package/lib/input/otp.d.ts +0 -11
  162. package/lib/input/password.d.ts +0 -6
  163. package/lib/input/phone-number.d.ts +0 -14
  164. package/lib/input/text-area.d.ts +0 -6
  165. package/lib/layout/header.d.ts +0 -5
  166. package/lib/layout/index.d.ts +0 -56
  167. package/lib/locale/locale-provider.d.ts +0 -11
  168. package/lib/login-page/index.d.ts +0 -7
  169. package/lib/media/index.d.ts +0 -19
  170. package/lib/message/index.d.ts +0 -12
  171. package/lib/mobile-insurer-detail/index.d.ts +0 -40
  172. package/lib/mobile-insurer-list/index.d.ts +0 -17
  173. package/lib/modal/index.d.ts +0 -30
  174. package/lib/ocr/index.d.ts +0 -15
  175. package/lib/ocr/micro-blink/index.d.ts +0 -8
  176. package/lib/platform/platform-card/index.d.ts +0 -12
  177. package/lib/platform/switch-platform/index.d.ts +0 -12
  178. package/lib/policy-list/policy-card.d.ts +0 -48
  179. package/lib/radio/index.d.ts +0 -24
  180. package/lib/search-box/index.d.ts +0 -19
  181. package/lib/select/attached-select.d.ts +0 -17
  182. package/lib/select/select.d.ts +0 -13
  183. package/lib/select/time-select.d.ts +0 -7
  184. package/lib/status-box/index.d.ts +0 -11
  185. package/lib/table/index.d.ts +0 -42
  186. package/lib/tabs/index.d.ts +0 -15
  187. package/lib/types.d.ts +0 -182
  188. package/lib/typography/index.d.ts +0 -14
  189. package/lib/upload/index.d.ts +0 -16
  190. package/lib/upload-photo/index.d.ts +0 -28
  191. package/lib/upload-preview/index.d.ts +0 -9
  192. package/lib/utils/form-methods.d.ts +0 -3
  193. package/lib/utils/form-utils.d.ts +0 -77
  194. package/lib/utils/option-utils.d.ts +0 -29
@@ -1,18 +0,0 @@
1
- import { FC, ReactNode, PropsWithChildren } from 'react';
2
- import { IStatusBoxProps } from '../status-box';
3
- import './style';
4
- interface DetailPanelProps {
5
- title: ReactNode;
6
- subTitle?: ReactNode;
7
- icon?: ReactNode;
8
- status?: IStatusBoxProps;
9
- }
10
- interface DetailItemProps {
11
- title: ReactNode;
12
- value: any;
13
- }
14
- type DetailPanel = FC<PropsWithChildren<DetailPanelProps>> & {
15
- DetailItem: FC<DetailItemProps>;
16
- };
17
- declare const DetailPanel: DetailPanel;
18
- export default DetailPanel;
@@ -1,12 +0,0 @@
1
- declare const CreateCheckBoxFilter: (props: {
2
- title: any;
3
- configList: any[];
4
- optionKey: string;
5
- allSelected: any[];
6
- handleOptionsChange: any;
7
- chooseed?: string[] | undefined;
8
- onChange?: any;
9
- disabled?: any[] | undefined;
10
- setConfirmValue?: any;
11
- }) => import("react/jsx-runtime").JSX.Element;
12
- export default CreateCheckBoxFilter;
@@ -1,52 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import './style';
3
- export interface IFrameConfig {
4
- type: 'date' | 'mult' | 'single' | 'customize';
5
- filterItemTitle?: ReactNode;
6
- default?: any[] | any;
7
- key: string;
8
- disabled?: string[];
9
- disabledDate?: (p: any) => any;
10
- format?: string;
11
- options?: {
12
- label: any;
13
- value: any;
14
- span?: 8 | 12 | 16 | 24;
15
- }[];
16
- dateRangeConfig?: {
17
- custom?: any[];
18
- lastDay?: any[];
19
- lastSevenDays?: any[];
20
- lastMonth?: any[];
21
- thisMonth?: any[];
22
- };
23
- canNotDelete?: boolean;
24
- tagTitle?: (value?: any) => string;
25
- render?: (value: any, onChange: any) => ReactNode;
26
- onChange?: any;
27
- }
28
- export interface IFilterProps {
29
- initValue?: {
30
- [key: string]: any;
31
- };
32
- parentFilterCallBack?: (params?: any) => void;
33
- showIdSelect?: boolean;
34
- idKeyTypes?: {
35
- label: string;
36
- value: number | string;
37
- }[];
38
- filterTitle?: ReactNode;
39
- filterItems?: IFrameConfig[];
40
- placeholder?: string;
41
- idKeyTypeDefault?: string;
42
- onFilter?: (params?: any) => void;
43
- showDefaultOptions?: boolean;
44
- deleteAllTagsType?: 'closeAllCanDelete' | 'restFilters';
45
- searchInputDefault?: string | number;
46
- searchWithFilter?: boolean;
47
- inputOnly?: boolean;
48
- beforeOpenFilter?: any;
49
- resetCallBack?: any;
50
- }
51
- declare const FilterComponent: (props: IFilterProps) => import("react/jsx-runtime").JSX.Element;
52
- export default FilterComponent;
@@ -1,18 +0,0 @@
1
- import './style';
2
- import '../date-picker/style';
3
- declare const CreateRangePickerFilter: (props: {
4
- optionKey: string;
5
- valueConfirm: any;
6
- onFocus: any;
7
- dateRangeConfig: any;
8
- pickerOpenStatus: boolean;
9
- setPickerOpenStatus: any;
10
- title?: string | undefined;
11
- choosed?: any;
12
- disabledDate?: any;
13
- setRangeType?: any;
14
- format?: string | undefined;
15
- onChange?: any;
16
- tiemRange?: number | undefined;
17
- }) => import("react/jsx-runtime").JSX.Element;
18
- export default CreateRangePickerFilter;
@@ -1,20 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { FormItemProps } from 'antd/es/form';
3
- import { FormItemConfig, FormItemName } from '../../types';
4
- import './style';
5
- export interface AddableSectionProps {
6
- parentName?: FormItemName;
7
- formItemProps?: FormItemProps;
8
- config: FormItemConfig;
9
- preview?: boolean;
10
- disabled?: boolean;
11
- setShowStepButton?: (showButton: boolean) => void;
12
- max?: number;
13
- min?: number;
14
- initCount?: number;
15
- addButtonText?: string;
16
- addButtonIcon?: ReactNode;
17
- description?: string | ReactNode;
18
- }
19
- declare const AddableSection: FC<AddableSectionProps>;
20
- export default AddableSection;
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- interface ElementProps {
5
- config: FormItemConfig;
6
- parentName?: FormItemName;
7
- preview?: boolean;
8
- disabled?: boolean;
9
- setShowStepButton?: (showButton: boolean) => void;
10
- }
11
- declare const Element: FC<ElementProps>;
12
- export default Element;
@@ -1,8 +0,0 @@
1
- import { FormItemConfig, FormItemExtraConfig } from '../types';
2
- type UseComponentHook = (config: FormItemConfig) => {
3
- Component: any;
4
- formItemProps: FormItemExtraConfig;
5
- withoutForm: boolean;
6
- };
7
- declare const useComponent: UseComponentHook;
8
- export default useComponent;
@@ -1,17 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface StepProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- edit: boolean;
8
- preview: boolean;
9
- index: number;
10
- total: number;
11
- handleNext(): void;
12
- handleEdit(index: number): void;
13
- showLastIndex?: boolean;
14
- shouldScroll: boolean;
15
- }
16
- declare const Step: FC<StepProps>;
17
- export default Step;
@@ -1,21 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- import { ConfirmationProps } from '../../confirmation';
5
- export interface HStepsProps {
6
- config: FormItemConfig & {
7
- confirmations?: {
8
- [key: string]: {
9
- required: boolean;
10
- confirmation?: ConfirmationProps;
11
- requiredMessage?: string;
12
- };
13
- };
14
- withReview?: boolean;
15
- description?: ReactNode;
16
- };
17
- parentName?: FormItemName;
18
- name?: FormItemName;
19
- }
20
- declare const HSteps: FC<HStepsProps>;
21
- export default HSteps;
@@ -1,4 +0,0 @@
1
- import { Form as FormType } from '../types';
2
- import './style';
3
- declare const ExportedForm: FormType;
4
- export default ExportedForm;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface LoginProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- }
8
- declare const Login: FC<LoginProps>;
9
- export default Login;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface PageProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- showFooter?: boolean;
8
- }
9
- declare const Page: FC<PageProps>;
10
- export default Page;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface PagesProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- name?: FormItemName;
8
- }
9
- declare const Pages: FC<PagesProps>;
10
- export default Pages;
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemProps } from 'antd/es/form';
3
- import { FormItemConfig, FormItemName } from '../../types';
4
- import './style';
5
- export interface SectionProps {
6
- parentName?: FormItemName;
7
- formItemProps?: FormItemProps;
8
- config: FormItemConfig;
9
- preview?: boolean;
10
- disabled?: boolean;
11
- collapsable?: boolean;
12
- defaultCollapsed?: boolean;
13
- setShowStepButton?: (showButton: boolean) => void;
14
- }
15
- declare const Section: FC<SectionProps>;
16
- export default Section;
@@ -1,17 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface StepProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- edit: boolean;
8
- preview: boolean;
9
- index: number;
10
- total: number;
11
- handleNext(): void;
12
- handleEdit(index: number): void;
13
- showLastIndex?: boolean;
14
- shouldScroll: boolean;
15
- }
16
- declare const Step: FC<StepProps>;
17
- export default Step;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface StepsProps {
5
- parentName?: FormItemName;
6
- config: FormItemConfig;
7
- name?: FormItemName;
8
- }
9
- declare const Steps: FC<StepsProps>;
10
- export default Steps;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { FormInstance } from 'antd/es/form';
3
- import { FC, FormItemName, OCRHooks } from './types';
4
- declare const _default: React.Context<{
5
- form?: FormInstance<any> | undefined;
6
- onCancel?(): void;
7
- cancelText?: string | undefined;
8
- submitText?: string | undefined;
9
- previewText?: string | undefined;
10
- nextText?: string | undefined;
11
- continueText?: string | undefined;
12
- validateMessages?: Object | undefined;
13
- submitting?: boolean | undefined;
14
- requiredMark?: boolean | undefined;
15
- showSubmitButton?: boolean | undefined;
16
- getScrollContainer: () => HTMLElement | Window | null;
17
- registerDependencies: (name: FormItemName | FormItemName[], updater: Function) => void;
18
- handleValuesChange(changedFields: any): any;
19
- uploadApi?: string | undefined;
20
- selectDatasourceApi?: string | undefined;
21
- getRuleValidationApi?: string | undefined;
22
- customizeComponents?: {
23
- [name: string]: FC<{}>;
24
- } | undefined;
25
- ocrHooks?: OCRHooks | undefined;
26
- }>;
27
- export default _default;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { FormItemName } from './types';
3
- declare const _default: React.Context<{
4
- registerSection: (name: FormItemName | FormItemName[], toggle: (collapsed: boolean) => void) => void;
5
- }>;
6
- export default _default;
@@ -1,19 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { FormItemProps } from 'antd/es/form';
3
- import { FormItemConfig, FormItemName } from '../../types';
4
- import './style';
5
- export interface AddableSectionProps extends FormItemConfig {
6
- parentName?: FormItemName;
7
- formItemProps?: FormItemProps;
8
- preview?: boolean;
9
- disabledFromParent?: boolean;
10
- setShowStepButton?: (showButton: boolean) => void;
11
- max?: number;
12
- min?: number;
13
- initCount?: number;
14
- addButtonText?: string;
15
- addButtonIcon?: ReactNode;
16
- description?: string | ReactNode;
17
- }
18
- declare const AddableSection: FC<AddableSectionProps>;
19
- export default AddableSection;
@@ -1,11 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- interface ElementProps extends FormItemConfig {
5
- parentName?: FormItemName;
6
- preview?: boolean;
7
- setShowStepButton?: (showButton: boolean) => void;
8
- disabledFromParent?: boolean;
9
- }
10
- declare const Element: FC<ElementProps>;
11
- export default Element;
@@ -1,11 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { Form } from 'antd';
3
- import { FormBasicConfig } from '../types';
4
- import './style';
5
- interface FreeFormProps extends Omit<FormBasicConfig, 'config'> {
6
- }
7
- interface FreeFormType extends FC<PropsWithChildren<FreeFormProps>> {
8
- useForm: typeof Form.useForm;
9
- }
10
- declare const FreeForm: FreeFormType;
11
- export default FreeForm;
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface PageProps extends FormItemConfig {
5
- parentName?: FormItemName;
6
- showFooter?: boolean;
7
- buttonPlacement?: 'right' | 'left';
8
- description?: string;
9
- handleNextPage?(): void;
10
- handlePreviousPage?(index: number): void;
11
- index?: number;
12
- current?: number;
13
- total?: number;
14
- }
15
- declare const Page: FC<PageProps>;
16
- export default Page;
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemName } from '../../types';
3
- import './style';
4
- export interface PagesProps {
5
- parentName?: FormItemName;
6
- name?: FormItemName;
7
- currentStep?: number;
8
- }
9
- declare const Pages: FC<PagesProps>;
10
- export default Pages;
@@ -1,13 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemProps } from 'antd/es/form';
3
- import { FormItemConfig, FormItemName } from '../../types';
4
- import './style';
5
- export interface SectionProps extends FormItemConfig {
6
- parentName?: FormItemName;
7
- formItemProps?: FormItemProps;
8
- preview?: boolean;
9
- disabledFromParent?: boolean;
10
- setShowStepButton?: (showButton: boolean) => void;
11
- }
12
- declare const Section: FC<SectionProps>;
13
- export default Section;
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- import { FormItemConfig, FormItemName } from '../../types';
3
- import './style';
4
- export interface StepProps extends FormItemConfig {
5
- name: FormItemName;
6
- label: string;
7
- parentName?: FormItemName;
8
- edit?: boolean;
9
- preview?: boolean;
10
- index?: number;
11
- total?: number;
12
- handleNextStep?(fields: any): void;
13
- handleEdit?(index: number): void;
14
- showLastIndex?: boolean;
15
- shouldScroll?: boolean;
16
- editButtonLabel?: string;
17
- disableEditButton?: boolean;
18
- buttonText?: string;
19
- }
20
- declare const Step: FC<StepProps>;
21
- export default Step;
@@ -1,12 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { FormItemName } from '../../types';
3
- import './style';
4
- export interface StepsProps {
5
- parentName?: FormItemName;
6
- showLastIndex?: boolean;
7
- name?: FormItemName;
8
- currentStep?: number;
9
- onEdit?: (index: number) => any;
10
- }
11
- declare const Steps: FC<PropsWithChildren<StepsProps>>;
12
- export default Steps;
@@ -1,20 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- import { OCRConfig, OCRHooks } from "../../types";
2
- declare const useOCR: () => (config: OCRConfig) => OCRHooks;
3
- export default useOCR;
@@ -1,10 +0,0 @@
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 DELETED
@@ -1,47 +0,0 @@
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';
@@ -1,14 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,6 +0,0 @@
1
- import { InputProps } from 'antd/es/input';
2
- import { FC, IglooComponentProps } from '../types';
3
- import './style/index';
4
- type Props = InputProps & IglooComponentProps;
5
- declare const Email: FC<Props>;
6
- export default Email;
@@ -1,16 +0,0 @@
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;
@@ -1,14 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,6 +0,0 @@
1
- import { InputProps } from 'antd/es/input';
2
- import { FC, IglooComponentProps } from '../types';
3
- import './style/index';
4
- type Props = InputProps & IglooComponentProps;
5
- declare const InputId: FC<Props>;
6
- export default InputId;
@@ -1,6 +0,0 @@
1
- import { InputProps } from 'antd/es/input';
2
- import { FC, IglooComponentProps } from '../types';
3
- import './style/index';
4
- type Props = InputProps & IglooComponentProps;
5
- declare const IglooInputNumber: FC<Props>;
6
- export default IglooInputNumber;
@@ -1,9 +0,0 @@
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;
@@ -1,11 +0,0 @@
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;