reykit 1.0.214 → 1.0.216
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/dist/index.js +2479 -2463
- package/dist/src/component/Media.d.ts +13 -7
- package/package.json +1 -1
|
@@ -4,17 +4,21 @@ import * as ui from './ui';
|
|
|
4
4
|
* Media component of pop up show image.
|
|
5
5
|
*
|
|
6
6
|
* @param path - Image path.
|
|
7
|
+
* @param loading - Loading scheme.
|
|
7
8
|
*/
|
|
8
|
-
export declare function PopupImage({ path, ...args }: {
|
|
9
|
+
export declare function PopupImage({ path, loading, ...args }: {
|
|
9
10
|
path: string;
|
|
11
|
+
loading?: 'eager' | 'lazy';
|
|
10
12
|
} & ComponentProps<typeof ui.DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
/**
|
|
12
14
|
* Media component of pop up show video.
|
|
13
15
|
*
|
|
14
16
|
* @param path - Video path.
|
|
17
|
+
* @param preload - Preload scheme.
|
|
15
18
|
*/
|
|
16
|
-
export declare function PopupVideo({ path, ...args }: {
|
|
19
|
+
export declare function PopupVideo({ path, preload, ...args }: {
|
|
17
20
|
path: string;
|
|
21
|
+
preload?: 'metadata' | 'aotu' | 'none';
|
|
18
22
|
} & ComponentProps<typeof ui.DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
19
23
|
/**
|
|
20
24
|
* Media component of carousel show image or video.
|
|
@@ -22,17 +26,19 @@ export declare function PopupVideo({ path, ...args }: {
|
|
|
22
26
|
* @param data - Media data.
|
|
23
27
|
* @param orientation - Carousel orientation.
|
|
24
28
|
* - `auto` : Automatic set, when is mobile, then is `vertical`, otherwise is `horizontal`.
|
|
25
|
-
* @param
|
|
26
|
-
* @param
|
|
29
|
+
* @param width - Show content width.
|
|
30
|
+
* @param showButton - Whether show button.
|
|
31
|
+
* @param showControl - Whether show controls.
|
|
27
32
|
* @param language - Language type.
|
|
28
33
|
*/
|
|
29
|
-
export declare function CarouselMedia({ data, orientation,
|
|
34
|
+
export declare function CarouselMedia({ data, orientation, width, showButton, showControl, language }: {
|
|
30
35
|
data: {
|
|
31
36
|
type: 'image' | 'video';
|
|
32
37
|
path: string;
|
|
33
38
|
}[];
|
|
34
39
|
orientation?: 'auto' | 'horizontal' | 'vertical';
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
width?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
41
|
+
showButton?: boolean;
|
|
42
|
+
showControl?: boolean;
|
|
37
43
|
language?: 'en' | 'zh';
|
|
38
44
|
}): import("react/jsx-runtime").JSX.Element;
|