@majoo-ui/react 1.39.1-alpha → 1.40.0
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 +46 -0
- package/components/devicePreview/index.d.ts +2 -0
- package/index.esm.js +13106 -9332
- package/index.umd.js +13148 -9362
- package/package.json +6 -4
- package/colors/index.d.ts +0 -1
- package/components/index.d.ts +0 -35
- package/components/tooltip/Tooltip.d.ts +0 -30
- package/components/tooltip/index.d.ts +0 -1
- package/index.d.ts +0 -4
- package/layout/index.d.ts +0 -4
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const EnumTypeDevice: {
|
|
3
|
+
readonly android: "android";
|
|
4
|
+
readonly androidWide: "androidWide";
|
|
5
|
+
readonly iphone: "iphone";
|
|
6
|
+
readonly desktop: "desktop";
|
|
7
|
+
};
|
|
8
|
+
declare type EnumTypeDevice = typeof EnumTypeDevice[keyof typeof EnumTypeDevice];
|
|
9
|
+
interface Props {
|
|
10
|
+
/**
|
|
11
|
+
* set size of frame device.
|
|
12
|
+
* @default undefined
|
|
13
|
+
* */
|
|
14
|
+
size?: number;
|
|
15
|
+
/** string url source image from internet or local image */
|
|
16
|
+
src?: string;
|
|
17
|
+
/**
|
|
18
|
+
* alt prop when url image not found or invalid
|
|
19
|
+
*/
|
|
20
|
+
alt?: string;
|
|
21
|
+
/**
|
|
22
|
+
* typeof device
|
|
23
|
+
* one of 'android' | 'androidWide' | 'iphone' | 'desktop'
|
|
24
|
+
*/
|
|
25
|
+
typeDevice: EnumTypeDevice;
|
|
26
|
+
/**
|
|
27
|
+
* option device preview with multiple image source
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
carousel?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* if carousel set true, set children element instead src props
|
|
33
|
+
*/
|
|
34
|
+
children?: React.ReactNode | number;
|
|
35
|
+
/**
|
|
36
|
+
* option for use device preview with component
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
withComponent?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const ImageDevicePreview: any;
|
|
42
|
+
declare const Device: {
|
|
43
|
+
(props: Props): JSX.Element;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
46
|
+
export default Device;
|