@majoo-ui/react 1.58.16 → 1.58.18
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.
- package/components/card/Card.d.ts +11 -1
- package/components/datePicker/InputDatePicker.d.ts +9 -1
- package/components/datePicker/InputDateRangePicker.d.ts +4 -0
- package/components/form/components/InputSelect/InputSelect.d.ts +12 -1
- package/index.esm.js +557 -282
- package/index.umd.js +561 -286
- package/package.json +1 -1
|
@@ -15,10 +15,20 @@ interface CardProps {
|
|
|
15
15
|
icon?: JSX.Element;
|
|
16
16
|
showBottomLine?: boolean;
|
|
17
17
|
children?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Only show in mobile view.
|
|
20
|
+
*/
|
|
21
|
+
mobileOnly?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Only show in desktop view.
|
|
24
|
+
*/
|
|
25
|
+
desktopOnly?: boolean;
|
|
18
26
|
}
|
|
19
27
|
export declare const CardComponent: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
20
28
|
shadow?: boolean | "true" | undefined;
|
|
21
29
|
isTemplateFormat?: boolean | "true" | undefined;
|
|
30
|
+
mobileOnly?: boolean | "true" | undefined;
|
|
31
|
+
desktopOnly?: boolean | "true" | undefined;
|
|
22
32
|
}, {
|
|
23
33
|
sm: "(min-width: 359px)";
|
|
24
34
|
md: "(min-width: 767px)";
|
|
@@ -310,7 +320,7 @@ export declare const StyledTitle: import("@stitches/react/types/styled-component
|
|
|
310
320
|
};
|
|
311
321
|
}>>;
|
|
312
322
|
export declare const Card: {
|
|
313
|
-
({ className, children, color, shadow, radius, padding, title, width, textColor, icon, showBottomLine, label, description, ...props }: CardProps): JSX.Element;
|
|
323
|
+
({ className, children, color, shadow, radius, padding, title, width, textColor, icon, showBottomLine, label, description, mobileOnly, desktopOnly, ...props }: CardProps): JSX.Element;
|
|
314
324
|
defaultProps: {
|
|
315
325
|
className: string;
|
|
316
326
|
color: string;
|
|
@@ -137,6 +137,14 @@ export interface InputDatePickerProps {
|
|
|
137
137
|
* Wrapping DatePicker with FloatingPortal.
|
|
138
138
|
*/
|
|
139
139
|
portalled?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Only show in mobile view.
|
|
142
|
+
*/
|
|
143
|
+
mobileOnly?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Only show in desktop view.
|
|
146
|
+
*/
|
|
147
|
+
desktopOnly?: boolean;
|
|
140
148
|
}
|
|
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;
|
|
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;
|
|
142
150
|
export {};
|
|
@@ -7,6 +7,8 @@ interface ContainertRangePickerProps {
|
|
|
7
7
|
isInvalid?: boolean;
|
|
8
8
|
children: JSX.Element;
|
|
9
9
|
onRangeChange(type: string): void;
|
|
10
|
+
mobileOnly?: boolean;
|
|
11
|
+
desktopOnly?: boolean;
|
|
10
12
|
}
|
|
11
13
|
interface InputRangePickerProps {
|
|
12
14
|
value: string;
|
|
@@ -16,6 +18,8 @@ interface InputRangePickerProps {
|
|
|
16
18
|
readOnly?: boolean;
|
|
17
19
|
isInvalid?: boolean;
|
|
18
20
|
onClick(): void;
|
|
21
|
+
mobileOnly?: boolean;
|
|
22
|
+
desktopOnly?: boolean;
|
|
19
23
|
}
|
|
20
24
|
export declare function ContainerDateRangePicker(props: ContainertRangePickerProps): JSX.Element;
|
|
21
25
|
export declare function InputDateRangePicker(props: InputRangePickerProps): JSX.Element;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ControllerStateAndHelpers, DownshiftProps } from 'downshift';
|
|
3
3
|
import { CSS } from '../../../../config/stitches.config';
|
|
4
|
-
export declare const SelectContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
4
|
+
export declare const SelectContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
5
|
+
mobileOnly?: boolean | "true" | undefined;
|
|
6
|
+
desktopOnly?: boolean | "true" | undefined;
|
|
7
|
+
}, {
|
|
5
8
|
sm: "(min-width: 359px)";
|
|
6
9
|
md: "(min-width: 767px)";
|
|
7
10
|
lg: "(min-width: 1023px)";
|
|
@@ -813,6 +816,14 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
813
816
|
* Custom empty data message
|
|
814
817
|
*/
|
|
815
818
|
emptyDataMessage?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Only show in mobile view.
|
|
821
|
+
*/
|
|
822
|
+
mobileOnly?: boolean;
|
|
823
|
+
/**
|
|
824
|
+
* Only show in desktop view.
|
|
825
|
+
*/
|
|
826
|
+
desktopOnly?: boolean;
|
|
816
827
|
}
|
|
817
828
|
export declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
818
829
|
export default InputSelect;
|