@majoo-ui/react 1.39.1-alpha → 1.40.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # react
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Running unit tests
6
-
7
- Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
1
+ # react
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
@@ -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;
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;
@@ -0,0 +1,2 @@
1
+ export { default as DevicePreview } from './DevicePreview';
2
+ export * from './DevicePreview';