reykit 1.0.207 → 1.0.209
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 +7902 -7770
- package/dist/src/component/Media.d.ts +35 -0
- package/dist/src/component/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import * as ui from './ui';
|
|
3
|
+
/**
|
|
4
|
+
* Media component of pop up show image.
|
|
5
|
+
*
|
|
6
|
+
* @param path - Image path.
|
|
7
|
+
*/
|
|
8
|
+
export declare function PopupImage({ path, ...args }: {
|
|
9
|
+
path: string;
|
|
10
|
+
} & ComponentProps<typeof ui.DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Media component of pop up show video.
|
|
13
|
+
*
|
|
14
|
+
* @param path - Video path.
|
|
15
|
+
*/
|
|
16
|
+
export declare function PopupVideo({ path, ...args }: {
|
|
17
|
+
path: string;
|
|
18
|
+
} & ComponentProps<typeof ui.DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Media component of carousel show image or video.
|
|
21
|
+
*
|
|
22
|
+
* @param data - Media data.
|
|
23
|
+
* @param orientation - Carousel orientation.
|
|
24
|
+
* - `auto` : Automatic set, when is mobile, then is `vertical`, otherwise is `horizontal`.
|
|
25
|
+
* @param language - Language type.
|
|
26
|
+
*/
|
|
27
|
+
export declare function CarouselMedia({ data, orientation, showCount, language }: {
|
|
28
|
+
data: {
|
|
29
|
+
type: 'image' | 'video';
|
|
30
|
+
path: string;
|
|
31
|
+
}[];
|
|
32
|
+
orientation?: 'auto' | 'horizontal' | 'vertical';
|
|
33
|
+
showCount?: boolean;
|
|
34
|
+
language?: 'en' | 'zh';
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,6 +11,7 @@ export { type BreadcrumbDict, Breadcrumb } from './Breadcrumb';
|
|
|
11
11
|
export { CycleButton } from './Button';
|
|
12
12
|
export { Form } from './Form';
|
|
13
13
|
export { Loading, useLoading } from './Loading';
|
|
14
|
+
export { PopupImage, PopupVideo, CarouselMedia } from './Media';
|
|
14
15
|
export { Notice, notice } from './Notice';
|
|
15
16
|
export { type TableFieldOption, type TableSearchOption, type TableButtonOption, type TableRowOption, type TableSelectRowsOption, Table } from './Table';
|
|
16
17
|
export { IconText, MarkdownText } from './Text';
|