@majoo-ui/react 1.59.10-rc.3 → 1.59.11-rc.1
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.
|
@@ -40,6 +40,14 @@ interface TimePickerProps {
|
|
|
40
40
|
*/
|
|
41
41
|
maxDate: Date;
|
|
42
42
|
}
|
|
43
|
+
interface IOptionsPicker {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}
|
|
47
|
+
interface IAdvanceOptions {
|
|
48
|
+
options: IOptionsPicker[];
|
|
49
|
+
reducer: () => void;
|
|
50
|
+
}
|
|
43
51
|
export interface InputDatePickerProps {
|
|
44
52
|
/**
|
|
45
53
|
* Specify the DatePicker type.
|
|
@@ -101,6 +109,10 @@ export interface InputDatePickerProps {
|
|
|
101
109
|
* Specify the 'advance' typed InputDatePicker custom view.
|
|
102
110
|
*/
|
|
103
111
|
advanceView?: React.ReactNode;
|
|
112
|
+
/**
|
|
113
|
+
* Specify the 'advance options' typed InputDatePicker custom view.
|
|
114
|
+
*/
|
|
115
|
+
advanceOptions?: IAdvanceOptions;
|
|
104
116
|
/**
|
|
105
117
|
* Specify the picker popover placement.
|
|
106
118
|
*/
|
|
@@ -146,5 +158,5 @@ export interface InputDatePickerProps {
|
|
|
146
158
|
*/
|
|
147
159
|
desktopOnly?: boolean;
|
|
148
160
|
}
|
|
149
|
-
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, onClose, mobileOnly, desktopOnly, }: InputDatePickerProps): JSX.Element;
|
|
161
|
+
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, onClose, mobileOnly, desktopOnly, advanceOptions, }: InputDatePickerProps): JSX.Element;
|
|
150
162
|
export {};
|
|
@@ -131,6 +131,9 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
|
|
|
131
131
|
my: (value: {
|
|
132
132
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
133
133
|
}) => {
|
|
134
|
+
/**
|
|
135
|
+
* alt prop when url image not found or invalid
|
|
136
|
+
*/
|
|
134
137
|
marginTop: {
|
|
135
138
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
136
139
|
};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSS } from '../../../../config/stitches.config';
|
|
3
|
+
interface IOptionsPicker {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface IAdvanceOptions {
|
|
8
|
+
options: IOptionsPicker[];
|
|
9
|
+
reducer: () => void;
|
|
10
|
+
}
|
|
3
11
|
interface InputDateRangeProps {
|
|
4
12
|
/**
|
|
5
13
|
* Specify the InputDateRange placeholder.
|
|
@@ -33,6 +41,10 @@ interface InputDateRangeProps {
|
|
|
33
41
|
* Additional CSS InputDateRange styles
|
|
34
42
|
*/
|
|
35
43
|
css?: CSS;
|
|
44
|
+
/**
|
|
45
|
+
* Specify the 'advance options' typed InputDatePicker custom view.
|
|
46
|
+
*/
|
|
47
|
+
advanceOptions?: IAdvanceOptions;
|
|
36
48
|
}
|
|
37
49
|
export declare const InputDateRange: React.ForwardRefExoticComponent<InputDateRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
38
50
|
export default InputDateRange;
|