@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,170 +1,170 @@
1
- import * as React from 'react';
2
- import { ADVANCE_PICKER, RANGE_PICKER, SINGLE_PICKER, WEEKLY, MONTHLY, DATE_RANGE_PICKER } from './DatePicker';
3
- import { CSS } from '../../config/stitches.config';
4
- import { PopoverPlacement } from '../../type/base.types';
5
- interface TimePickerProps {
6
- /**
7
- Resize time picker.
8
- */
9
- size: 'sm' | 'lg';
10
- /**
11
- Change handler.
12
- */
13
- onChange: () => void;
14
- /**
15
- Time picker default value; support moment format.
16
- */
17
- defaultValue: Date;
18
- /**
19
- Time picker value; support moment format.
20
- */
21
- value: Date;
22
- /**
23
- Disabled state.
24
- */
25
- disabled: boolean;
26
- /**
27
- Disabled hour state.
28
- */
29
- disabledHour: boolean;
30
- /**
31
- Disabled minute state.
32
- */
33
- disabledMinute: boolean;
34
- /**
35
- Specify the minimum date.
36
- */
37
- minDate: Date;
38
- /**
39
- Specify the maximum date.
40
- */
41
- maxDate: Date;
42
- }
43
- export interface InputDatePickerProps {
44
- /**
45
- * Specify the DatePicker type.
46
- */
47
- type?: typeof SINGLE_PICKER | typeof RANGE_PICKER | typeof DATE_RANGE_PICKER | typeof ADVANCE_PICKER;
48
- /**
49
- * Show input range control state.
50
- */
51
- showRangeControl?: boolean;
52
- /**
53
- * Specify the range control type.
54
- */
55
- rangePickerType?: typeof WEEKLY | typeof MONTHLY;
56
- /**
57
- * Specify the InputDatePicker placeholder.
58
- */
59
- placeholder?: string;
60
- /**
61
- * Specify the InputDatePicker size.
62
- */
63
- size?: 'lg' | 'sm';
64
- /**
65
- * Specify whether the InputDatePicker should be disabled, or not
66
- */
67
- disabled?: boolean;
68
- /**
69
- * ReadOnly state InputDatePicker
70
- */
71
- readOnly?: boolean;
72
- /**
73
- * Specify an `onChange` handler that is called whenever the InputDatePicker value changes.
74
- */
75
- onChange?: (value: any) => void;
76
- /**
77
- * Specify an `onDateSelected` handler that is which is called only when the user selects a date before submitting.
78
- */
79
- onDateSelected?: (value: any) => void;
80
- /**
81
- * Specify an `onClose` handler that is called whenever the InputDatePicker modal is closed.
82
- */
83
- onClose?: () => void;
84
- /**
85
- * Specify the InputDatePicker value.
86
- */
87
- value?: Date | Date[];
88
- /**
89
- * Specify the InputDatePicker default value.
90
- */
91
- defaultValue?: Date | Date[];
92
- /**
93
- * Deprecated in v1.46.2. Use 'value' instead.
94
- */
95
- date?: Date | Date[];
96
- /**
97
- * Deprecated in v1.46.2. Use 'defaultValue' instead.
98
- */
99
- defaultDate?: Date | Date[];
100
- /**
101
- * Specify the 'advance' typed InputDatePicker custom view.
102
- */
103
- advanceView?: React.ReactNode;
104
- /**
105
- * Specify the picker popover placement.
106
- */
107
- placement?: PopoverPlacement;
108
- /**
109
- * If true, the TimePicker component will be visible.
110
- */
111
- showTimePicker?: boolean;
112
- /**
113
- * Props that will be passed to the TimePicker component.
114
- */
115
- timePickerProps?: TimePickerProps;
116
- /**
117
- * Specify the minimum date.
118
- */
119
- minDate?: Date;
120
- /**
121
- * Specify the maximum date.
122
- */
123
- maxDate?: Date;
124
- /**
125
- * Additional css styles.
126
- */
127
- css?: CSS;
128
- /**
129
- * Invalid state input.
130
- */
131
- isInvalid?: boolean;
132
- /**
133
- * Allow DatePicker to reset selected date.
134
- */
135
- allowReset?: boolean;
136
- /**
137
- * Wrapping DatePicker with FloatingPortal.
138
- */
139
- portalled?: boolean;
140
- /**
141
- * Wrapping Mobile DatePicker with FloatingPortal.
142
- */
143
- portalledMobile?: boolean;
144
- /**
145
- * Only show in mobile view.
146
- */
147
- mobileOnly?: boolean;
148
- /**
149
- * Only show in desktop view.
150
- */
151
- desktopOnly?: boolean;
152
- /**
153
- * Additional drawer css styles.
154
- */
155
- drawerCss?: CSS;
156
- /**
157
- * Additional drawer content css styles.
158
- */
159
- drawerContentCss?: CSS;
160
- /**
161
- * If true, the component will be shown as mobile layout
162
- */
163
- isMobile?: boolean;
164
- /**
165
- * Max range date picker in days
166
- */
167
- maxRange?: number;
168
- }
169
- export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, onDateSelected, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, timePickerProps, minDate, maxDate, readOnly, isInvalid, allowReset, portalled, portalledMobile, onClose, mobileOnly, desktopOnly, drawerCss, drawerContentCss, isMobile, maxRange, }: InputDatePickerProps): JSX.Element;
170
- export {};
1
+ import * as React from 'react';
2
+ import { ADVANCE_PICKER, RANGE_PICKER, SINGLE_PICKER, WEEKLY, MONTHLY, DATE_RANGE_PICKER } from './DatePicker';
3
+ import { CSS } from '../../config/stitches.config';
4
+ import { PopoverPlacement } from '../../type/base.types';
5
+ interface TimePickerProps {
6
+ /**
7
+ Resize time picker.
8
+ */
9
+ size: 'sm' | 'lg';
10
+ /**
11
+ Change handler.
12
+ */
13
+ onChange: () => void;
14
+ /**
15
+ Time picker default value; support moment format.
16
+ */
17
+ defaultValue: Date;
18
+ /**
19
+ Time picker value; support moment format.
20
+ */
21
+ value: Date;
22
+ /**
23
+ Disabled state.
24
+ */
25
+ disabled: boolean;
26
+ /**
27
+ Disabled hour state.
28
+ */
29
+ disabledHour: boolean;
30
+ /**
31
+ Disabled minute state.
32
+ */
33
+ disabledMinute: boolean;
34
+ /**
35
+ Specify the minimum date.
36
+ */
37
+ minDate: Date;
38
+ /**
39
+ Specify the maximum date.
40
+ */
41
+ maxDate: Date;
42
+ }
43
+ export interface InputDatePickerProps {
44
+ /**
45
+ * Specify the DatePicker type.
46
+ */
47
+ type?: typeof SINGLE_PICKER | typeof RANGE_PICKER | typeof DATE_RANGE_PICKER | typeof ADVANCE_PICKER;
48
+ /**
49
+ * Show input range control state.
50
+ */
51
+ showRangeControl?: boolean;
52
+ /**
53
+ * Specify the range control type.
54
+ */
55
+ rangePickerType?: typeof WEEKLY | typeof MONTHLY;
56
+ /**
57
+ * Specify the InputDatePicker placeholder.
58
+ */
59
+ placeholder?: string;
60
+ /**
61
+ * Specify the InputDatePicker size.
62
+ */
63
+ size?: 'lg' | 'sm';
64
+ /**
65
+ * Specify whether the InputDatePicker should be disabled, or not
66
+ */
67
+ disabled?: boolean;
68
+ /**
69
+ * ReadOnly state InputDatePicker
70
+ */
71
+ readOnly?: boolean;
72
+ /**
73
+ * Specify an `onChange` handler that is called whenever the InputDatePicker value changes.
74
+ */
75
+ onChange?: (value: any) => void;
76
+ /**
77
+ * Specify an `onDateSelected` handler that is which is called only when the user selects a date before submitting.
78
+ */
79
+ onDateSelected?: (value: any) => void;
80
+ /**
81
+ * Specify an `onClose` handler that is called whenever the InputDatePicker modal is closed.
82
+ */
83
+ onClose?: () => void;
84
+ /**
85
+ * Specify the InputDatePicker value.
86
+ */
87
+ value?: Date | Date[];
88
+ /**
89
+ * Specify the InputDatePicker default value.
90
+ */
91
+ defaultValue?: Date | Date[];
92
+ /**
93
+ * Deprecated in v1.46.2. Use 'value' instead.
94
+ */
95
+ date?: Date | Date[];
96
+ /**
97
+ * Deprecated in v1.46.2. Use 'defaultValue' instead.
98
+ */
99
+ defaultDate?: Date | Date[];
100
+ /**
101
+ * Specify the 'advance' typed InputDatePicker custom view.
102
+ */
103
+ advanceView?: React.ReactNode;
104
+ /**
105
+ * Specify the picker popover placement.
106
+ */
107
+ placement?: PopoverPlacement;
108
+ /**
109
+ * If true, the TimePicker component will be visible.
110
+ */
111
+ showTimePicker?: boolean;
112
+ /**
113
+ * Props that will be passed to the TimePicker component.
114
+ */
115
+ timePickerProps?: TimePickerProps;
116
+ /**
117
+ * Specify the minimum date.
118
+ */
119
+ minDate?: Date;
120
+ /**
121
+ * Specify the maximum date.
122
+ */
123
+ maxDate?: Date;
124
+ /**
125
+ * Additional css styles.
126
+ */
127
+ css?: CSS;
128
+ /**
129
+ * Invalid state input.
130
+ */
131
+ isInvalid?: boolean;
132
+ /**
133
+ * Allow DatePicker to reset selected date.
134
+ */
135
+ allowReset?: boolean;
136
+ /**
137
+ * Wrapping DatePicker with FloatingPortal.
138
+ */
139
+ portalled?: boolean;
140
+ /**
141
+ * Wrapping Mobile DatePicker with FloatingPortal.
142
+ */
143
+ portalledMobile?: boolean;
144
+ /**
145
+ * Only show in mobile view.
146
+ */
147
+ mobileOnly?: boolean;
148
+ /**
149
+ * Only show in desktop view.
150
+ */
151
+ desktopOnly?: boolean;
152
+ /**
153
+ * Additional drawer css styles.
154
+ */
155
+ drawerCss?: CSS;
156
+ /**
157
+ * Additional drawer content css styles.
158
+ */
159
+ drawerContentCss?: CSS;
160
+ /**
161
+ * If true, the component will be shown as mobile layout
162
+ */
163
+ isMobile?: boolean;
164
+ /**
165
+ * Max range date picker in days
166
+ */
167
+ maxRange?: number;
168
+ }
169
+ export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, onDateSelected, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, timePickerProps, minDate, maxDate, readOnly, isInvalid, allowReset, portalled, portalledMobile, onClose, mobileOnly, desktopOnly, drawerCss, drawerContentCss, isMobile, maxRange, }: InputDatePickerProps): JSX.Element;
170
+ export {};
@@ -1,26 +1,26 @@
1
- /// <reference types="react" />
2
- import { CSS } from '../../config/stitches.config';
3
- interface ContainertRangePickerProps {
4
- css?: CSS;
5
- disabled?: boolean;
6
- readOnly?: boolean;
7
- isInvalid?: boolean;
8
- children: JSX.Element;
9
- onRangeChange(type: string): void;
10
- mobileOnly?: boolean;
11
- desktopOnly?: boolean;
12
- }
13
- interface InputRangePickerProps {
14
- value: string;
15
- placeholder?: string | null;
16
- size?: 'lg' | 'sm';
17
- disabled?: boolean;
18
- readOnly?: boolean;
19
- isInvalid?: boolean;
20
- onClick(): void;
21
- mobileOnly?: boolean;
22
- desktopOnly?: boolean;
23
- }
24
- export declare function ContainerDateRangePicker(props: ContainertRangePickerProps): JSX.Element;
25
- export declare function InputDateRangePicker(props: InputRangePickerProps): JSX.Element;
26
- export {};
1
+ /// <reference types="react" />
2
+ import { CSS } from '../../config/stitches.config';
3
+ interface ContainertRangePickerProps {
4
+ css?: CSS;
5
+ disabled?: boolean;
6
+ readOnly?: boolean;
7
+ isInvalid?: boolean;
8
+ children: JSX.Element;
9
+ onRangeChange(type: string): void;
10
+ mobileOnly?: boolean;
11
+ desktopOnly?: boolean;
12
+ }
13
+ interface InputRangePickerProps {
14
+ value: string;
15
+ placeholder?: string | null;
16
+ size?: 'lg' | 'sm';
17
+ disabled?: boolean;
18
+ readOnly?: boolean;
19
+ isInvalid?: boolean;
20
+ onClick(): void;
21
+ mobileOnly?: boolean;
22
+ desktopOnly?: boolean;
23
+ }
24
+ export declare function ContainerDateRangePicker(props: ContainertRangePickerProps): JSX.Element;
25
+ export declare function InputDateRangePicker(props: InputRangePickerProps): JSX.Element;
26
+ export {};
@@ -1,32 +1,32 @@
1
- import { RenderProps } from 'dayzed';
2
- import React, { Dispatch, SetStateAction } from 'react';
3
- import { CSS } from '../../../config/stitches.config';
4
- export declare const DATE_PICKER = 0;
5
- export declare const MONTH_PICKER = 1;
6
- export declare const YEAR_PICKER = 2;
7
- export declare const YEAR_RANGE_PICKER = 3;
8
- export declare const TIME_PICKER = 4;
9
- export interface CalendarProps extends RenderProps {
10
- advanceView?: React.ReactNode;
11
- onCalendarDateChange: (date: Date) => void;
12
- onIsMultiDateChange?: (isMultiDate: boolean) => void;
13
- onUpdate?: () => void;
14
- onCancel: () => void;
15
- onReset?: () => void;
16
- selected?: Date[];
17
- containerStyle?: CSS;
18
- disabled?: boolean;
19
- showTimePicker?: boolean;
20
- renderTimePicker?: () => React.ReactNode;
21
- minDate?: Date;
22
- maxDate?: Date;
23
- allowReset?: boolean;
24
- onSetDateValue?: Dispatch<SetStateAction<Date[]>>;
25
- maxRange?: number;
26
- overMaxRange?: boolean;
27
- timePickerProps?: {
28
- minDate?: Date;
29
- };
30
- }
31
- declare const CalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, showTimePicker, renderTimePicker, minDate, maxDate, allowReset, onSetDateValue, maxRange, overMaxRange, timePickerProps, }: CalendarProps) => JSX.Element | null;
32
- export default CalendarBox;
1
+ import { RenderProps } from 'dayzed';
2
+ import React, { Dispatch, SetStateAction } from 'react';
3
+ import { CSS } from '../../../config/stitches.config';
4
+ export declare const DATE_PICKER = 0;
5
+ export declare const MONTH_PICKER = 1;
6
+ export declare const YEAR_PICKER = 2;
7
+ export declare const YEAR_RANGE_PICKER = 3;
8
+ export declare const TIME_PICKER = 4;
9
+ export interface CalendarProps extends RenderProps {
10
+ advanceView?: React.ReactNode;
11
+ onCalendarDateChange: (date: Date) => void;
12
+ onIsMultiDateChange?: (isMultiDate: boolean) => void;
13
+ onUpdate?: () => void;
14
+ onCancel: () => void;
15
+ onReset?: () => void;
16
+ selected?: Date[];
17
+ containerStyle?: CSS;
18
+ disabled?: boolean;
19
+ showTimePicker?: boolean;
20
+ renderTimePicker?: () => React.ReactNode;
21
+ minDate?: Date;
22
+ maxDate?: Date;
23
+ allowReset?: boolean;
24
+ onSetDateValue?: Dispatch<SetStateAction<Date[]>>;
25
+ maxRange?: number;
26
+ overMaxRange?: boolean;
27
+ timePickerProps?: {
28
+ minDate?: Date;
29
+ };
30
+ }
31
+ declare const CalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, showTimePicker, renderTimePicker, minDate, maxDate, allowReset, onSetDateValue, maxRange, overMaxRange, timePickerProps, }: CalendarProps) => JSX.Element | null;
32
+ export default CalendarBox;
@@ -1,21 +1,21 @@
1
- import { RenderProps } from 'dayzed';
2
- import React from 'react';
3
- import { CSS } from '../../../config/stitches.config';
4
- export declare const DATE_PICKER = 0;
5
- export declare const MONTH_PICKER = 1;
6
- export declare const YEAR_PICKER = 2;
7
- export declare const YEAR_RANGE_PICKER = 3;
8
- export interface CalendarProps extends RenderProps {
9
- advanceView?: React.ReactNode;
10
- onCalendarDateChange: (date: Date) => void;
11
- selected?: Date[];
12
- containerStyle?: CSS;
13
- disabled?: boolean;
14
- showTimePicker?: boolean;
15
- renderTimePicker?: () => React.ReactNode;
16
- minDate?: Date;
17
- maxDate?: Date;
18
- disabledDate?: Date[];
19
- }
20
- declare const CalendarBox: ({ calendars, getDateProps, onCalendarDateChange, selected, containerStyle, disabled, minDate, maxDate, disabledDate, }: CalendarProps) => JSX.Element | null;
21
- export default CalendarBox;
1
+ import { RenderProps } from 'dayzed';
2
+ import React from 'react';
3
+ import { CSS } from '../../../config/stitches.config';
4
+ export declare const DATE_PICKER = 0;
5
+ export declare const MONTH_PICKER = 1;
6
+ export declare const YEAR_PICKER = 2;
7
+ export declare const YEAR_RANGE_PICKER = 3;
8
+ export interface CalendarProps extends RenderProps {
9
+ advanceView?: React.ReactNode;
10
+ onCalendarDateChange: (date: Date) => void;
11
+ selected?: Date[];
12
+ containerStyle?: CSS;
13
+ disabled?: boolean;
14
+ showTimePicker?: boolean;
15
+ renderTimePicker?: () => React.ReactNode;
16
+ minDate?: Date;
17
+ maxDate?: Date;
18
+ disabledDate?: Date[];
19
+ }
20
+ declare const CalendarBox: ({ calendars, getDateProps, onCalendarDateChange, selected, containerStyle, disabled, minDate, maxDate, disabledDate, }: CalendarProps) => JSX.Element | null;
21
+ export default CalendarBox;
@@ -1,11 +1,11 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- interface CalendarProps {
3
- selected?: Date[];
4
- disabled?: boolean;
5
- language?: string;
6
- onSetDateValue?: Dispatch<SetStateAction<Date[]>>;
7
- isSingle?: boolean;
8
- timePickerProps?: object;
9
- }
10
- declare const CalendarTimePicker: ({ selected, disabled, language, onSetDateValue, isSingle, timePickerProps }: CalendarProps) => JSX.Element;
11
- export default CalendarTimePicker;
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface CalendarProps {
3
+ selected?: Date[];
4
+ disabled?: boolean;
5
+ language?: string;
6
+ onSetDateValue?: Dispatch<SetStateAction<Date[]>>;
7
+ isSingle?: boolean;
8
+ timePickerProps?: object;
9
+ }
10
+ declare const CalendarTimePicker: ({ selected, disabled, language, onSetDateValue, isSingle, timePickerProps }: CalendarProps) => JSX.Element;
11
+ export default CalendarTimePicker;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { CalendarProps } from './Calendar';
3
- declare const MobileCalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, minDate, maxDate, allowReset, maxRange, overMaxRange, }: CalendarProps) => JSX.Element | null;
4
- export default MobileCalendarBox;
1
+ /// <reference types="react" />
2
+ import { CalendarProps } from './Calendar';
3
+ declare const MobileCalendarBox: ({ calendars, getDateProps, advanceView, onCalendarDateChange, onIsMultiDateChange, onUpdate, onCancel, onReset, selected, containerStyle, disabled, minDate, maxDate, allowReset, maxRange, overMaxRange, }: CalendarProps) => JSX.Element | null;
4
+ export default MobileCalendarBox;
@@ -1,6 +1,6 @@
1
- export { default as Calendar } from './Calendar';
2
- export * from './Calendar';
3
- export { default as MobileCalendar } from './MobileCalendar';
4
- export * from './MobileCalendar';
5
- export * from './DateNumber';
6
- export { default as CalendarMulti } from './CalendarMulti';
1
+ export { default as Calendar } from './Calendar';
2
+ export * from './Calendar';
3
+ export { default as MobileCalendar } from './MobileCalendar';
4
+ export * from './MobileCalendar';
5
+ export * from './DateNumber';
6
+ export { default as CalendarMulti } from './CalendarMulti';
@@ -1,7 +1,7 @@
1
- export * from './InputDatePicker';
2
- export * from './DatePicker';
3
- export * from './CustomDatePicker';
4
- export * from './AdvancedOption';
5
- export * from './state/reducer';
6
- export * from './timePicker';
7
- export * from './DatePickerMulti';
1
+ export * from './InputDatePicker';
2
+ export * from './DatePicker';
3
+ export * from './CustomDatePicker';
4
+ export * from './AdvancedOption';
5
+ export * from './state/reducer';
6
+ export * from './timePicker';
7
+ export * from './DatePickerMulti';
@@ -1,26 +1,26 @@
1
- export declare const UPDATE_PICKER = "UPDATE";
2
- export declare const TODAY = "TODAY";
3
- export declare const YESTERDAY = "YESTERDAY";
4
- export declare const LAST_7_DAYS = "LAST_7_DAYS";
5
- export declare const LAST_WEEK = "LAST_WEEK";
6
- export declare const PREV_WEEK = "PREV_WEEK";
7
- export declare const RANGE_WEEK = "RANGE_WEEK";
8
- export declare const NEXT_WEEK = "NEXT_WEEK";
9
- export declare const PREV_MONTH = "PREV_MONTH";
10
- export declare const RANGE_MONTH = "RANGE_MONTH";
11
- export declare const NEXT_MONTH = "NEXT_MONTH";
12
- export declare const THIS_WEEK = "THIS_WEEK";
13
- export declare const LAST_30_DAYS = "LAST_30_DAYS";
14
- export declare const LAST_MONTH = "LAST_MONTH";
15
- export declare const LAST_TWO_MONTHS = "LAST_TWO_MONTH";
16
- export declare const THIS_MONTH = "THIS_MONTH";
17
- export declare const advancePickerOptionsId: {
18
- label: string;
19
- value: string;
20
- }[];
21
- export declare const advancePickerOptionsEn: {
22
- label: string;
23
- value: string;
24
- }[];
25
- export declare function pickerReducer(state: any, action: any): any;
26
- export declare function advancePickerDate(type: any, date: any): Date[];
1
+ export declare const UPDATE_PICKER = "UPDATE";
2
+ export declare const TODAY = "TODAY";
3
+ export declare const YESTERDAY = "YESTERDAY";
4
+ export declare const LAST_7_DAYS = "LAST_7_DAYS";
5
+ export declare const LAST_WEEK = "LAST_WEEK";
6
+ export declare const PREV_WEEK = "PREV_WEEK";
7
+ export declare const RANGE_WEEK = "RANGE_WEEK";
8
+ export declare const NEXT_WEEK = "NEXT_WEEK";
9
+ export declare const PREV_MONTH = "PREV_MONTH";
10
+ export declare const RANGE_MONTH = "RANGE_MONTH";
11
+ export declare const NEXT_MONTH = "NEXT_MONTH";
12
+ export declare const THIS_WEEK = "THIS_WEEK";
13
+ export declare const LAST_30_DAYS = "LAST_30_DAYS";
14
+ export declare const LAST_MONTH = "LAST_MONTH";
15
+ export declare const LAST_TWO_MONTHS = "LAST_TWO_MONTH";
16
+ export declare const THIS_MONTH = "THIS_MONTH";
17
+ export declare const advancePickerOptionsId: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ export declare const advancePickerOptionsEn: {
22
+ label: string;
23
+ value: string;
24
+ }[];
25
+ export declare function pickerReducer(state: any, action: any): any;
26
+ export declare function advancePickerDate(type: any, date: any): Date[];
@@ -1,4 +1,4 @@
1
- export { default as NativeTimePicker } from './TimePicker';
2
- export { default as InputTimePicker } from './InputTimePicker';
3
- export * from './TimePicker';
4
- export * from './InputTimePicker';
1
+ export { default as NativeTimePicker } from './TimePicker';
2
+ export { default as InputTimePicker } from './InputTimePicker';
3
+ export * from './TimePicker';
4
+ export * from './InputTimePicker';
@@ -1,2 +1,2 @@
1
- export { default as DevicePreview } from './DevicePreview';
2
- export * from './DevicePreview';
1
+ export { default as DevicePreview } from './DevicePreview';
2
+ export * from './DevicePreview';
@@ -1,2 +1,2 @@
1
- export { default as Dialog } from './Dialog';
2
- export * from './Dialog';
1
+ export { default as Dialog } from './Dialog';
2
+ export * from './Dialog';