@majoo-ui/react 1.57.7 → 1.57.9
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.
|
@@ -7,6 +7,8 @@ export declare const ButtonPrimitive: import("@stitches/react/types/styled-compo
|
|
|
7
7
|
iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
8
8
|
hidden?: boolean | "true" | undefined;
|
|
9
9
|
withIcon?: boolean | "true" | undefined;
|
|
10
|
+
mobileOnly?: boolean | "true" | undefined;
|
|
11
|
+
desktopOnly?: boolean | "true" | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
sm: "(min-width: 359px)";
|
|
12
14
|
md: "(min-width: 767px)";
|
|
@@ -128,7 +130,18 @@ interface AdditionalButtonProps extends React.ComponentPropsWithoutRef<'button'>
|
|
|
128
130
|
* Specify whether the Button children is icon only , or not
|
|
129
131
|
*/
|
|
130
132
|
icon?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Additional css styles
|
|
135
|
+
*/
|
|
131
136
|
css?: CSS;
|
|
137
|
+
/**
|
|
138
|
+
* If the condition is true, the button will only be displayed in mobile view
|
|
139
|
+
*/
|
|
140
|
+
mobileOnly?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* If the condition is true, the button will only be displayed in desktop view
|
|
143
|
+
*/
|
|
144
|
+
desktopOnly?: boolean;
|
|
132
145
|
}
|
|
133
146
|
export declare const Button: React.ForwardRefExoticComponent<import("@stitches/react/types/styled-component").TransformProps<{
|
|
134
147
|
buttonType?: "primary" | "secondary" | "ghost" | "ghost-secondary" | "negative" | "negative-secondary" | "negative-ghost" | "headerMenu" | "tableMenu" | undefined;
|
|
@@ -136,6 +149,8 @@ export declare const Button: React.ForwardRefExoticComponent<import("@stitches/r
|
|
|
136
149
|
iconSize?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
137
150
|
hidden?: boolean | "true" | undefined;
|
|
138
151
|
withIcon?: boolean | "true" | undefined;
|
|
152
|
+
mobileOnly?: boolean | "true" | undefined;
|
|
153
|
+
desktopOnly?: boolean | "true" | undefined;
|
|
139
154
|
}, {
|
|
140
155
|
sm: "(min-width: 359px)";
|
|
141
156
|
md: "(min-width: 767px)";
|
|
@@ -73,6 +73,14 @@ export interface InputDatePickerProps {
|
|
|
73
73
|
* Specify an `onChange` handler that is called whenever the InputDatePicker value changes.
|
|
74
74
|
*/
|
|
75
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;
|
|
76
84
|
/**
|
|
77
85
|
* Specify the InputDatePicker value.
|
|
78
86
|
*/
|
|
@@ -130,5 +138,5 @@ export interface InputDatePickerProps {
|
|
|
130
138
|
*/
|
|
131
139
|
portalled?: boolean;
|
|
132
140
|
}
|
|
133
|
-
export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, timePickerProps, minDate, maxDate, readOnly, isInvalid, allowReset, portalled, }: InputDatePickerProps): JSX.Element;
|
|
141
|
+
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, }: InputDatePickerProps): JSX.Element;
|
|
134
142
|
export {};
|
|
@@ -701,9 +701,13 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
701
701
|
*/
|
|
702
702
|
noOptionIcon?: boolean;
|
|
703
703
|
/**
|
|
704
|
-
* Additional CSS styles
|
|
704
|
+
* Additional CSS InputSelect styles
|
|
705
705
|
*/
|
|
706
706
|
css?: CSS;
|
|
707
|
+
/**
|
|
708
|
+
* Additional CSS OptionWrapper styles
|
|
709
|
+
*/
|
|
710
|
+
optionCss?: CSS;
|
|
707
711
|
/**
|
|
708
712
|
* Render custom footer inside option. If onClick not working on mobile, you can using both onClick and onTouchStart.
|
|
709
713
|
*/
|