@majoo-ui/react 1.61.24 → 1.61.25-rc.2

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 (133) hide show
  1. package/index.d.ts +1 -5
  2. package/index.esm.js +24546 -26967
  3. package/package.json +4 -4
  4. package/{colors → src/colors}/index.d.ts +1 -1
  5. package/{components → src/components}/accordion/Accordion.d.ts +35 -35
  6. package/{components → src/components}/accordion/index.d.ts +1 -1
  7. package/{components → src/components}/barChart/BarChart.d.ts +82 -82
  8. package/{components → src/components}/barChart/index.d.ts +1 -1
  9. package/{components → src/components}/breadcrumb/index.d.ts +7 -7
  10. package/{components → src/components}/button/index.d.ts +2 -2
  11. package/{components → src/components}/card/index.d.ts +2 -2
  12. package/{components → src/components}/chart/index.d.ts +1 -1
  13. package/{components → src/components}/chart/lineChart/LineChart.d.ts +80 -80
  14. package/{components → src/components}/chart/lineChart/components/Comparator.d.ts +16 -16
  15. package/{components → src/components}/chart/lineChart/components/ComparatorController.d.ts +8 -8
  16. package/{components → src/components}/chart/lineChart/components/ComparatorItem.d.ts +10 -10
  17. package/{components → src/components}/chart/lineChart/components/ProductList.d.ts +10 -10
  18. package/{components → src/components}/chart/lineChart/components/TitleLegend.d.ts +19 -19
  19. package/{components → src/components}/chart/lineChart/components/Tooltip.d.ts +21 -21
  20. package/{components → src/components}/chart/lineChart/index.d.ts +1 -1
  21. package/{components → src/components}/chart/utils/index.d.ts +18 -18
  22. package/{components → src/components}/checkboxTable/CheckboxTable.d.ts +29 -29
  23. package/{components → src/components}/checkboxTable/index.d.ts +1 -1
  24. package/{components → src/components}/checkboxTable/transition.d.ts +11 -11
  25. package/{components → src/components}/contentEditor/ContentEditor.d.ts +44 -44
  26. package/{components → src/components}/contentEditor/index.d.ts +1 -1
  27. package/{components → src/components}/contextMenu/index.d.ts +1 -1
  28. package/{components → src/components}/datePicker/AdvancedOption.d.ts +12 -12
  29. package/{components → src/components}/datePicker/CustomDatePicker.d.ts +63 -63
  30. package/{components → src/components}/datePicker/DatePicker.d.ts +10 -10
  31. package/{components → src/components}/datePicker/DatePickerMulti.d.ts +11 -11
  32. package/{components → src/components}/datePicker/InputDatePicker.d.ts +170 -170
  33. package/{components → src/components}/datePicker/InputDateRangePicker.d.ts +26 -26
  34. package/{components → src/components}/datePicker/components/Calendar.d.ts +32 -32
  35. package/{components → src/components}/datePicker/components/CalendarMulti.d.ts +21 -21
  36. package/{components → src/components}/datePicker/components/CalendarTimePicker.d.ts +11 -11
  37. package/{components → src/components}/datePicker/components/MobileCalendar.d.ts +4 -4
  38. package/{components → src/components}/datePicker/components/index.d.ts +6 -6
  39. package/{components → src/components}/datePicker/index.d.ts +7 -7
  40. package/{components → src/components}/datePicker/state/reducer.d.ts +26 -26
  41. package/{components → src/components}/datePicker/timePicker/index.d.ts +4 -4
  42. package/{components → src/components}/devicePreview/index.d.ts +2 -2
  43. package/{components → src/components}/dialog/index.d.ts +2 -2
  44. package/{components → src/components}/editableTable/Columns.d.ts +59 -59
  45. package/{components → src/components}/editableTable/EditableMobile.d.ts +23 -23
  46. package/{components → src/components}/editableTable/EditableTable.d.ts +432 -432
  47. package/{components → src/components}/editableTable/faker.d.ts +16 -16
  48. package/{components → src/components}/editableTable/index.d.ts +2 -2
  49. package/{components → src/components}/form/components/InputCombobox/InputCombobox.d.ts +43 -43
  50. package/{components → src/components}/form/components/InputCombobox/index.d.ts +1 -1
  51. package/{components → src/components}/form/components/InputCounter/InputCounter.d.ts +58 -58
  52. package/{components → src/components}/form/components/InputCounter/index.d.ts +2 -2
  53. package/{components → src/components}/form/components/InputDateRange/InputDateRange.d.ts +39 -39
  54. package/{components → src/components}/form/components/InputDateRange/index.d.ts +2 -2
  55. package/{components → src/components}/form/components/InputElement/index.d.ts +1 -1
  56. package/{components → src/components}/form/components/InputGroup/index.d.ts +1 -1
  57. package/{components → src/components}/form/components/InputOTP/InputOTP.d.ts +108 -108
  58. package/{components → src/components}/form/components/InputOTP/index.d.ts +2 -2
  59. package/{components → src/components}/form/components/InputResourceList/InputResourceList.d.ts +39 -39
  60. package/{components → src/components}/form/components/InputSelect/index.d.ts +2 -2
  61. package/{components → src/components}/form/components/InputSelectCheck/OptionGroupItem.d.ts +5 -5
  62. package/{components → src/components}/form/components/InputSignature/InputSignature.d.ts +12 -12
  63. package/{components → src/components}/form/components/InputSignature/SignatureModal.d.ts +11 -11
  64. package/{components → src/components}/form/components/InputSignature/index.d.ts +2 -2
  65. package/{components → src/components}/form/components/InputText/index.d.ts +1 -1
  66. package/{components → src/components}/form/components/index.d.ts +27 -27
  67. package/{components → src/components}/form/index.d.ts +1 -1
  68. package/{components → src/components}/heading/index.d.ts +2 -2
  69. package/{components → src/components}/image/index.d.ts +2 -2
  70. package/{components → src/components}/index.d.ts +53 -53
  71. package/{components → src/components}/link/index.d.ts +1 -1
  72. package/{components → src/components}/loadingBar/LoadingBar.d.ts +51 -51
  73. package/{components → src/components}/loadingBar/index.d.ts +1 -1
  74. package/{components → src/components}/mapPicker/InputMapPicker.d.ts +4 -4
  75. package/{components → src/components}/mapPicker/MapPicker.d.ts +17 -17
  76. package/{components → src/components}/mapPicker/index.d.ts +2 -2
  77. package/{components → src/components}/mapPicker/types/index.d.ts +103 -103
  78. package/{components → src/components}/modalDialog/index.d.ts +2 -2
  79. package/{components → src/components}/pageDialog/index.d.ts +1 -1
  80. package/{components → src/components}/paragraph/index.d.ts +2 -2
  81. package/{components → src/components}/pieChart/PieChart.d.ts +100 -100
  82. package/{components → src/components}/pieChart/index.d.ts +1 -1
  83. package/{components → src/components}/progressIndicator/ProgressIndicator.d.ts +17 -17
  84. package/{components → src/components}/progressIndicator/index.d.ts +1 -1
  85. package/{components → src/components}/scrollSync/ScrollSync.d.ts +45 -45
  86. package/{components → src/components}/scrollSync/ScrollSyncNode.d.ts +32 -32
  87. package/{components → src/components}/scrollSync/index.d.ts +2 -2
  88. package/{components → src/components}/scrollSync/utils.d.ts +3 -3
  89. package/{components → src/components}/separator/index.d.ts +2 -2
  90. package/{components → src/components}/skeleton/Skeleton.d.ts +19 -19
  91. package/{components → src/components}/skeleton/index.d.ts +1 -1
  92. package/{components → src/components}/stepWizard/index.d.ts +45 -45
  93. package/{components → src/components}/table/MobileTable.d.ts +39 -39
  94. package/{components → src/components}/table/index.d.ts +3 -3
  95. package/{components → src/components}/tableOfContent/index.d.ts +57 -57
  96. package/{components → src/components}/tagList/TagList.d.ts +21 -21
  97. package/{components → src/components}/tagList/index.d.ts +1 -1
  98. package/{components → src/components}/text/index.d.ts +2 -2
  99. package/{components → src/components}/upload/utils/canvasPreview.d.ts +2 -2
  100. package/{components → src/components}/upload/utils/imgPreview.d.ts +2 -2
  101. package/{foundations → src/foundations}/indices/Indices.d.ts +2 -2
  102. package/{foundations → src/foundations}/radii/Radii.d.ts +2 -2
  103. package/{foundations → src/foundations}/space/Space.d.ts +2 -2
  104. package/{hooks → src/hooks}/index.d.ts +2 -2
  105. package/{hooks → src/hooks}/useListOption/useListOption.d.ts +8 -8
  106. package/{hooks → src/hooks}/useToggle/useToggle.d.ts +1 -1
  107. package/src/index.d.ts +5 -0
  108. package/{layout → src/layout}/box/index.d.ts +1 -1
  109. package/{layout → src/layout}/flex/index.d.ts +2 -2
  110. package/{layout → src/layout}/grid/index.d.ts +2 -2
  111. package/{layout → src/layout}/index.d.ts +4 -4
  112. package/{type → src/type}/base.types.d.ts +11 -11
  113. package/src/type/stitches.types.d.ts +1 -0
  114. package/{utils → src/utils}/request.d.ts +14 -14
  115. package/{utils → src/utils}/useNavigatorOnline.d.ts +2 -2
  116. package/{utils → src/utils}/variant.d.ts +4 -4
  117. package/components/alert-backup/index.backup.d.ts +0 -1
  118. package/components/button/Button.d.ts +0 -163
  119. package/components/card/Card.d.ts +0 -531
  120. package/components/contextMenu/ContextMenu.d.ts +0 -404
  121. package/components/datePicker/components/DateNumber.d.ts +0 -104
  122. package/components/devicePreview/DevicePreview.d.ts +0 -161
  123. package/components/dialog/Dialog.d.ts +0 -402
  124. package/components/form/components/InputCombobox/InputCombobox.backup.d.ts +0 -43
  125. package/components/form/components/InputSelect/InputSelect.d.ts +0 -862
  126. package/components/heading/Heading.d.ts +0 -100
  127. package/components/link/Link.d.ts +0 -109
  128. package/components/modalDialog/ModalDialog.d.ts +0 -836
  129. package/components/pageDialog/PageDialog.d.ts +0 -810
  130. package/components/table/Table.d.ts +0 -1529
  131. package/config/stitches.config.d.ts +0 -645
  132. package/foundations/typography/Typography.d.ts +0 -396
  133. package/type/stitches.types.d.ts +0 -1
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- import { CSS } from '@stitches/react';
3
- interface InputSignatureProps {
4
- onChange?: (value: string) => void;
5
- title?: string;
6
- defaultValue?: string;
7
- disabled?: boolean;
8
- css?: CSS;
9
- isMobile?: boolean;
10
- }
11
- export declare function InputSignature({ title, onChange, defaultValue, disabled, css, isMobile, }: InputSignatureProps): JSX.Element;
12
- export default InputSignature;
1
+ /// <reference types="react" />
2
+ import { CSS } from '@stitches/react';
3
+ interface InputSignatureProps {
4
+ onChange?: (value: string) => void;
5
+ title?: string;
6
+ defaultValue?: string;
7
+ disabled?: boolean;
8
+ css?: CSS;
9
+ isMobile?: boolean;
10
+ }
11
+ export declare function InputSignature({ title, onChange, defaultValue, disabled, css, isMobile, }: InputSignatureProps): JSX.Element;
12
+ export default InputSignature;
@@ -1,11 +1,11 @@
1
- import React from 'react';
2
- interface SignatureModalProps {
3
- t: any;
4
- open?: boolean;
5
- onOpenChange?: (open: boolean) => void;
6
- onSave?: (signature: string) => void;
7
- title?: any;
8
- isMobile?: boolean;
9
- }
10
- declare const SignatureModal: React.FC<SignatureModalProps>;
11
- export default SignatureModal;
1
+ import React from 'react';
2
+ interface SignatureModalProps {
3
+ t: any;
4
+ open?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ onSave?: (signature: string) => void;
7
+ title?: any;
8
+ isMobile?: boolean;
9
+ }
10
+ declare const SignatureModal: React.FC<SignatureModalProps>;
11
+ export default SignatureModal;
@@ -1,2 +1,2 @@
1
- export { default as InputSignature } from './InputSignature';
2
- export * from './InputSignature';
1
+ export { default as InputSignature } from './InputSignature';
2
+ export * from './InputSignature';
@@ -1 +1 @@
1
- export { InputText, StyledInput } from './InputText';
1
+ export { InputText, StyledInput } from './InputText';
@@ -1,27 +1,27 @@
1
- export { default as FormGroup } from './FormGroup/FormGroup';
2
- export { default as FormLabel } from './FormLabel/Label';
3
- export { default as FormHelper } from './FormHelper/Helper';
4
- export * from './InputCheckbox';
5
- export * from './InputGroup';
6
- export * from './InputAddon';
7
- export * from './InputLetter';
8
- export * from './InputTextArea';
9
- export * from './InputRadio';
10
- export * from './InputText';
11
- export * from './InputElement';
12
- export * from './InputNumber';
13
- export { default as InputTags } from './InputTags/InputTags';
14
- export { default as InputSwitch } from './InputSwitch/InputSwitch';
15
- export { default as InputSearchbox } from './InputSearchbox/InputSearchbox';
16
- export { default as InputSelect } from './InputSelect/InputSelect';
17
- export * from './InputSelect';
18
- export { default as InputSelectCheck } from './InputSelectCheck/InputSelectCheck';
19
- export { default as InputSelectTag } from './InputSelectTag/InputSelectTag';
20
- export { default as InputCreatable } from './InputCreatable/InputCreatable';
21
- export { default as InputResourceList } from './InputResourceList/InputResourceList';
22
- export * from './InputCombobox';
23
- export * from './InputOTP';
24
- export * from './InputCounter';
25
- export * from './InputDateRange';
26
- export { default as InputSignature } from './InputSignature/InputSignature';
27
- export * from './InputSignature';
1
+ export { default as FormGroup } from './FormGroup/FormGroup';
2
+ export { default as FormLabel } from './FormLabel/Label';
3
+ export { default as FormHelper } from './FormHelper/Helper';
4
+ export * from './InputCheckbox';
5
+ export * from './InputGroup';
6
+ export * from './InputAddon';
7
+ export * from './InputLetter';
8
+ export * from './InputTextArea';
9
+ export * from './InputRadio';
10
+ export * from './InputText';
11
+ export * from './InputElement';
12
+ export * from './InputNumber';
13
+ export { default as InputTags } from './InputTags/InputTags';
14
+ export { default as InputSwitch } from './InputSwitch/InputSwitch';
15
+ export { default as InputSearchbox } from './InputSearchbox/InputSearchbox';
16
+ export { default as InputSelect } from './InputSelect/InputSelect';
17
+ export * from './InputSelect';
18
+ export { default as InputSelectCheck } from './InputSelectCheck/InputSelectCheck';
19
+ export { default as InputSelectTag } from './InputSelectTag/InputSelectTag';
20
+ export { default as InputCreatable } from './InputCreatable/InputCreatable';
21
+ export { default as InputResourceList } from './InputResourceList/InputResourceList';
22
+ export * from './InputCombobox';
23
+ export * from './InputOTP';
24
+ export * from './InputCounter';
25
+ export * from './InputDateRange';
26
+ export { default as InputSignature } from './InputSignature/InputSignature';
27
+ export * from './InputSignature';
@@ -1 +1 @@
1
- export * from './components';
1
+ export * from './components';
@@ -1,2 +1,2 @@
1
- export * from './Heading';
2
- export { default as Heading } from './Heading';
1
+ export * from './Heading';
2
+ export { default as Heading } from './Heading';
@@ -1,2 +1,2 @@
1
- export { default as Image } from './Image';
2
- export * from './Image';
1
+ export { default as Image } from './Image';
2
+ export * from './Image';
@@ -1,53 +1,53 @@
1
- export * from './banner';
2
- export * from './button';
3
- export * from './card';
4
- export * from './heading';
5
- export * from './text';
6
- export * from './paragraph';
7
- export * from './breadcrumb';
8
- export * from './badge';
9
- export * from './avatar';
10
- export * from './image';
11
- export * from './tooltip';
12
- export * from './progress';
13
- export * from './toast';
14
- export * from './form';
15
- export * from './popover';
16
- export * from './slider';
17
- export * from './tag';
18
- export * from './tagStatus';
19
- export * from './tabs';
20
- export * from './separator';
21
- export * from './buttonGroup';
22
- export * from './notificationBadge';
23
- export * from './paper';
24
- export * from './iconButton';
25
- export * from './dialog';
26
- export * from './modalDialog';
27
- export * from './drawer';
28
- export * from './accordion';
29
- export * from './datePicker';
30
- export * from './table';
31
- export * from './pagination';
32
- export * from './pageDialog';
33
- export * from './alertDialog';
34
- export * from './dropdownMenu';
35
- export * from './upload';
36
- export * from './devicePreview';
37
- export * from './colorPicker';
38
- export * from './stepWizard';
39
- export * from './tableOfContent';
40
- export * from './editableTable';
41
- export * from './loadingBar';
42
- export * from './progressIndicator';
43
- export * from './link';
44
- export * from './mapPicker';
45
- export * from './chart';
46
- export * from './checkboxTable';
47
- export * from './contentEditor';
48
- export * from './contextMenu';
49
- export * from './skeleton';
50
- export * from './tagList';
51
- export * from './barChart';
52
- export * from './pieChart';
53
- export * from './scrollSync';
1
+ export * from './banner';
2
+ export * from './button';
3
+ export * from './card';
4
+ export * from './heading';
5
+ export * from './text';
6
+ export * from './paragraph';
7
+ export * from './breadcrumb';
8
+ export * from './badge';
9
+ export * from './avatar';
10
+ export * from './image';
11
+ export * from './tooltip';
12
+ export * from './progress';
13
+ export * from './toast';
14
+ export * from './form';
15
+ export * from './popover';
16
+ export * from './slider';
17
+ export * from './tag';
18
+ export * from './tagStatus';
19
+ export * from './tabs';
20
+ export * from './separator';
21
+ export * from './buttonGroup';
22
+ export * from './notificationBadge';
23
+ export * from './paper';
24
+ export * from './iconButton';
25
+ export * from './dialog';
26
+ export * from './modalDialog';
27
+ export * from './drawer';
28
+ export * from './accordion';
29
+ export * from './datePicker';
30
+ export * from './table';
31
+ export * from './pagination';
32
+ export * from './pageDialog';
33
+ export * from './alertDialog';
34
+ export * from './dropdownMenu';
35
+ export * from './upload';
36
+ export * from './devicePreview';
37
+ export * from './colorPicker';
38
+ export * from './stepWizard';
39
+ export * from './tableOfContent';
40
+ export * from './editableTable';
41
+ export * from './loadingBar';
42
+ export * from './progressIndicator';
43
+ export * from './link';
44
+ export * from './mapPicker';
45
+ export * from './chart';
46
+ export * from './checkboxTable';
47
+ export * from './contentEditor';
48
+ export * from './contextMenu';
49
+ export * from './skeleton';
50
+ export * from './tagList';
51
+ export * from './barChart';
52
+ export * from './pieChart';
53
+ export * from './scrollSync';
@@ -1 +1 @@
1
- export * from './Link';
1
+ export * from './Link';
@@ -1,51 +1,51 @@
1
- import React from 'react';
2
- import type * as Stitches from '@stitches/react';
3
- interface LoadingBarProps {
4
- /**
5
- * To set the completion percentage.
6
- */
7
- progress?: number;
8
- /**
9
- * Additional description under progress.
10
- */
11
- description?: string;
12
- /**
13
- * Additional styles css.
14
- */
15
- css?: Stitches.CSS;
16
- /**
17
- * To only show loading bar only.
18
- */
19
- showProgressOnly?: boolean;
20
- /**
21
- * To show and hide percentage when condition auto.
22
- */
23
- show?: boolean;
24
- /**
25
- * Time interval loading bar in milisecond (ms).
26
- */
27
- interval?: number;
28
- /**
29
- * Event callback when percentage is 100%.
30
- */
31
- onCompleted?: React.ChangeEventHandler;
32
- /**
33
- * Change Indicator colors.
34
- */
35
- colors?: string[];
36
- /**
37
- * Adjust loading bar size.
38
- */
39
- size?: 'sm' | 'md';
40
- }
41
- declare function LoadingBar(props: LoadingBarProps): JSX.Element;
42
- declare namespace LoadingBar {
43
- var defaultProps: {
44
- showProgressOnly: boolean;
45
- show: boolean;
46
- interval: number;
47
- description: string;
48
- size: string;
49
- };
50
- }
51
- export default LoadingBar;
1
+ import React from 'react';
2
+ import type * as Stitches from '@stitches/react';
3
+ interface LoadingBarProps {
4
+ /**
5
+ * To set the completion percentage.
6
+ */
7
+ progress?: number;
8
+ /**
9
+ * Additional description under progress.
10
+ */
11
+ description?: string;
12
+ /**
13
+ * Additional styles css.
14
+ */
15
+ css?: Stitches.CSS;
16
+ /**
17
+ * To only show loading bar only.
18
+ */
19
+ showProgressOnly?: boolean;
20
+ /**
21
+ * To show and hide percentage when condition auto.
22
+ */
23
+ show?: boolean;
24
+ /**
25
+ * Time interval loading bar in milisecond (ms).
26
+ */
27
+ interval?: number;
28
+ /**
29
+ * Event callback when percentage is 100%.
30
+ */
31
+ onCompleted?: React.ChangeEventHandler;
32
+ /**
33
+ * Change Indicator colors.
34
+ */
35
+ colors?: string[];
36
+ /**
37
+ * Adjust loading bar size.
38
+ */
39
+ size?: 'sm' | 'md';
40
+ }
41
+ declare function LoadingBar(props: LoadingBarProps): JSX.Element;
42
+ declare namespace LoadingBar {
43
+ var defaultProps: {
44
+ showProgressOnly: boolean;
45
+ show: boolean;
46
+ interval: number;
47
+ description: string;
48
+ size: string;
49
+ };
50
+ }
51
+ export default LoadingBar;
@@ -1 +1 @@
1
- export { default as LoadingBar } from './LoadingBar';
1
+ export { default as LoadingBar } from './LoadingBar';
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { InputMapPickerProps } from './types';
3
- declare function InputMapPicker(props: InputMapPickerProps): JSX.Element;
4
- export default InputMapPicker;
1
+ /// <reference types="react" />
2
+ import { InputMapPickerProps } from './types';
3
+ declare function InputMapPicker(props: InputMapPickerProps): JSX.Element;
4
+ export default InputMapPicker;
@@ -1,17 +1,17 @@
1
- /// <reference types="react" />
2
- import { MapPickerProps } from './types';
3
- import 'leaflet/dist/leaflet.css';
4
- import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
5
- import 'leaflet-defaulticon-compatibility';
6
- declare function MapPicker(props: MapPickerProps): JSX.Element;
7
- declare namespace MapPicker {
8
- var defaultProps: {
9
- showBanner: boolean;
10
- value: {
11
- lat: number;
12
- lng: number;
13
- };
14
- showSelectButton: boolean;
15
- };
16
- }
17
- export default MapPicker;
1
+ /// <reference types="react" />
2
+ import { MapPickerProps } from './types';
3
+ import 'leaflet/dist/leaflet.css';
4
+ import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
5
+ import 'leaflet-defaulticon-compatibility';
6
+ declare function MapPicker(props: MapPickerProps): JSX.Element;
7
+ declare namespace MapPicker {
8
+ var defaultProps: {
9
+ showBanner: boolean;
10
+ value: {
11
+ lat: number;
12
+ lng: number;
13
+ };
14
+ showSelectButton: boolean;
15
+ };
16
+ }
17
+ export default MapPicker;
@@ -1,2 +1,2 @@
1
- export { default as MapPicker } from './MapPicker';
2
- export { default as InputMapPicker } from './InputMapPicker';
1
+ export { default as MapPicker } from './MapPicker';
2
+ export { default as InputMapPicker } from './InputMapPicker';
@@ -1,103 +1,103 @@
1
- import { CSS } from '../../../config/stitches.config';
2
- export interface AddressComponents {
3
- long_name: string;
4
- short_name: string;
5
- types: string[];
6
- }
7
- export interface MapObject {
8
- place_id?: string;
9
- lat: number;
10
- lng: number;
11
- formatted_address?: string;
12
- address_components?: AddressComponents[];
13
- }
14
- export interface LatLng {
15
- lat: number;
16
- lng: number;
17
- }
18
- export interface MapPickerProps {
19
- /**
20
- * Additional css styles.
21
- */
22
- css?: CSS;
23
- /**
24
- * State to show or hide the banner.
25
- */
26
- showBanner?: boolean;
27
- /**
28
- * Custom banner description.
29
- */
30
- bannerDescription?: string;
31
- /**
32
- * To binding current address.
33
- * `{ lat: number, lng: number }`
34
- */
35
- value?: LatLng;
36
- /**
37
- * Change event handler.
38
- */
39
- onChange: (MapObject: any) => void;
40
- /**
41
- * Marker Click event handler.
42
- */
43
- onMarkerClick?: () => void;
44
- /**
45
- * Custom radius.
46
- */
47
- radius?: number;
48
- /**
49
- * on Show select button.
50
- */
51
- showSelectButton?: boolean;
52
- }
53
- export interface InputMapPickerProps {
54
- /**
55
- * Additional css styles.
56
- */
57
- css?: CSS;
58
- /**
59
- * Custom title of the modal.
60
- */
61
- modalTitle?: string;
62
- /**
63
- * Custom label of the button.
64
- */
65
- buttonLabel?: string;
66
- /**
67
- * Custom InputMap placeholder.
68
- */
69
- placeholder?: string;
70
- /**
71
- * State to show or hide the banner.
72
- */
73
- showBanner?: boolean;
74
- /**
75
- * Custom banner description.
76
- */
77
- bannerDescription?: string;
78
- /**
79
- * To binding current address.
80
- * `{ lat: number, lng: number }`
81
- */
82
- value?: LatLng;
83
- /**
84
- * Change event handler.
85
- */
86
- onChange: (MapObject: any) => void;
87
- /**
88
- * on Marker click event handle
89
- */
90
- onMarkerClick: () => void;
91
- /**
92
- * Custom radius.
93
- */
94
- radius?: number;
95
- /**
96
- * on Show select button.
97
- */
98
- showSelectButton?: boolean;
99
- /**
100
- * Custom input value.
101
- */
102
- customInputValue?: string;
103
- }
1
+ import { CSS } from '../../../config/stitches.config';
2
+ export interface AddressComponents {
3
+ long_name: string;
4
+ short_name: string;
5
+ types: string[];
6
+ }
7
+ export interface MapObject {
8
+ place_id?: string;
9
+ lat: number;
10
+ lng: number;
11
+ formatted_address?: string;
12
+ address_components?: AddressComponents[];
13
+ }
14
+ export interface LatLng {
15
+ lat: number;
16
+ lng: number;
17
+ }
18
+ export interface MapPickerProps {
19
+ /**
20
+ * Additional css styles.
21
+ */
22
+ css?: CSS;
23
+ /**
24
+ * State to show or hide the banner.
25
+ */
26
+ showBanner?: boolean;
27
+ /**
28
+ * Custom banner description.
29
+ */
30
+ bannerDescription?: string;
31
+ /**
32
+ * To binding current address.
33
+ * `{ lat: number, lng: number }`
34
+ */
35
+ value?: LatLng;
36
+ /**
37
+ * Change event handler.
38
+ */
39
+ onChange: (MapObject: any) => void;
40
+ /**
41
+ * Marker Click event handler.
42
+ */
43
+ onMarkerClick?: () => void;
44
+ /**
45
+ * Custom radius.
46
+ */
47
+ radius?: number;
48
+ /**
49
+ * on Show select button.
50
+ */
51
+ showSelectButton?: boolean;
52
+ }
53
+ export interface InputMapPickerProps {
54
+ /**
55
+ * Additional css styles.
56
+ */
57
+ css?: CSS;
58
+ /**
59
+ * Custom title of the modal.
60
+ */
61
+ modalTitle?: string;
62
+ /**
63
+ * Custom label of the button.
64
+ */
65
+ buttonLabel?: string;
66
+ /**
67
+ * Custom InputMap placeholder.
68
+ */
69
+ placeholder?: string;
70
+ /**
71
+ * State to show or hide the banner.
72
+ */
73
+ showBanner?: boolean;
74
+ /**
75
+ * Custom banner description.
76
+ */
77
+ bannerDescription?: string;
78
+ /**
79
+ * To binding current address.
80
+ * `{ lat: number, lng: number }`
81
+ */
82
+ value?: LatLng;
83
+ /**
84
+ * Change event handler.
85
+ */
86
+ onChange: (MapObject: any) => void;
87
+ /**
88
+ * on Marker click event handle
89
+ */
90
+ onMarkerClick: () => void;
91
+ /**
92
+ * Custom radius.
93
+ */
94
+ radius?: number;
95
+ /**
96
+ * on Show select button.
97
+ */
98
+ showSelectButton?: boolean;
99
+ /**
100
+ * Custom input value.
101
+ */
102
+ customInputValue?: string;
103
+ }
@@ -1,2 +1,2 @@
1
- export * from './ModalDialog';
2
- export { default as ModalDialog } from './ModalDialog';
1
+ export * from './ModalDialog';
2
+ export { default as ModalDialog } from './ModalDialog';
@@ -1 +1 @@
1
- export * from './PageDialog';
1
+ export * from './PageDialog';
@@ -1,2 +1,2 @@
1
- export * from './Paragraph';
2
- export { default as Paragraph } from './Paragraph';
1
+ export * from './Paragraph';
2
+ export { default as Paragraph } from './Paragraph';