@majoo-ui/react 1.59.10-rc.2 → 1.59.10
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/devicePreview/DevicePreview.d.ts +3 -0
- package/components/form/components/InputSelect/InputSelect.d.ts +23 -1
- package/index.esm.js +11463 -11210
- package/index.umd.js +11702 -11441
- package/package.json +1 -1
- package/utils/request.d.ts +1 -0
|
@@ -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
|
};
|
|
@@ -400,6 +400,7 @@ export declare const IconContainer: import("@stitches/react/types/styled-compone
|
|
|
400
400
|
export declare const OptionWrapper: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
401
401
|
placement?: "bottom" | "top" | undefined;
|
|
402
402
|
withFooter?: boolean | "true" | undefined;
|
|
403
|
+
isMobile?: boolean | "true" | undefined;
|
|
403
404
|
}, {
|
|
404
405
|
sm: "(min-width: 359px)";
|
|
405
406
|
md: "(min-width: 767px)";
|
|
@@ -592,7 +593,10 @@ export declare const SelectOption: import("@stitches/react/types/styled-componen
|
|
|
592
593
|
backgroundColor: string;
|
|
593
594
|
};
|
|
594
595
|
}>>;
|
|
595
|
-
export declare const SelectItem: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
596
|
+
export declare const SelectItem: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
597
|
+
hasGroup?: boolean | "true" | undefined;
|
|
598
|
+
isGroup?: boolean | "true" | undefined;
|
|
599
|
+
}, {
|
|
596
600
|
sm: "(min-width: 359px)";
|
|
597
601
|
md: "(min-width: 767px)";
|
|
598
602
|
lg: "(min-width: 1023px)";
|
|
@@ -693,6 +697,8 @@ export declare type Option = {
|
|
|
693
697
|
name: string;
|
|
694
698
|
isDisabled?: boolean;
|
|
695
699
|
render?: (selectedItem?: Option | null) => React.ReactNode;
|
|
700
|
+
group?: string;
|
|
701
|
+
isGroup?: boolean;
|
|
696
702
|
};
|
|
697
703
|
interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelectedItem' | 'defaultValue'> {
|
|
698
704
|
/**
|
|
@@ -828,6 +834,22 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
|
|
|
828
834
|
* Called whenever the InputSelect state changes.
|
|
829
835
|
*/
|
|
830
836
|
onStateChange?(state: StateChangeOptions<Option>): void;
|
|
837
|
+
/**
|
|
838
|
+
* If true, the option list will be shown as mobile modal dialog
|
|
839
|
+
*/
|
|
840
|
+
isMobile?: boolean;
|
|
841
|
+
/**
|
|
842
|
+
* Specify the mobile modal dialog title
|
|
843
|
+
*/
|
|
844
|
+
mobileTitle?: string;
|
|
845
|
+
/**
|
|
846
|
+
* If true, the input search will be debounced.
|
|
847
|
+
*/
|
|
848
|
+
withDebounce?: boolean;
|
|
849
|
+
/**
|
|
850
|
+
* If true, the input label will be rendered with option render prop (If exist)
|
|
851
|
+
*/
|
|
852
|
+
renderAsLabel?: boolean;
|
|
831
853
|
}
|
|
832
854
|
export declare const InputSelect: React.ForwardRefExoticComponent<InputSelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
833
855
|
export default InputSelect;
|