@aic-kits/react 0.0.21 → 0.1.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/dist/components/Art/BrandArt.d.ts +3 -0
- package/dist/components/Art/EmojiArt.d.ts +3 -0
- package/dist/components/Art/IconArt.d.ts +3 -0
- package/dist/components/Art/ImageArt.d.ts +3 -0
- package/dist/components/Art/SvgArt.d.ts +3 -0
- package/dist/components/Art/index.d.ts +11 -0
- package/dist/components/Art/types.d.ts +75 -0
- package/dist/components/Art/utils.d.ts +16 -0
- package/dist/components/Base/index.d.ts +4 -0
- package/dist/components/Base/types.d.ts +15 -0
- package/dist/components/Button/StyledButton.d.ts +30 -0
- package/dist/components/Button/index.d.ts +54 -0
- package/dist/components/Button/utils.d.ts +3 -0
- package/dist/components/Divider/StyledDivider.d.ts +12 -0
- package/dist/components/Divider/index.d.ts +21 -0
- package/dist/components/Header/index.d.ts +4 -0
- package/dist/components/Header/types.d.ts +57 -0
- package/dist/components/Input/StyledInput.d.ts +11 -0
- package/dist/components/Input/index.d.ts +54 -0
- package/dist/components/List/index.d.ts +46 -0
- package/dist/components/Loading/StyledLoading.d.ts +10 -0
- package/dist/components/Loading/index.d.ts +4 -0
- package/dist/components/Loading/types.d.ts +28 -0
- package/dist/components/Skeleton/SkeletonBackground.d.ts +11 -0
- package/dist/components/Skeleton/SkeletonWrapper.d.ts +37 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Skeleton/types.d.ts +19 -0
- package/dist/components/Touchable/index.d.ts +4 -0
- package/dist/components/Touchable/types.d.ts +21 -0
- package/dist/components/Vimeo/Player.d.ts +26 -0
- package/dist/components/Vimeo/constants.d.ts +17 -0
- package/dist/components/Vimeo/index.d.ts +5 -0
- package/dist/components/Vimeo/types.d.ts +115 -0
- package/dist/components/Vimeo/utils.d.ts +17 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/index.cjs +181 -25
- package/dist/index.js +4508 -3368
- package/dist/theme/components/art.d.ts +5 -0
- package/dist/theme/components/base.d.ts +8 -0
- package/dist/theme/components/button.d.ts +12 -0
- package/dist/theme/components/divider.d.ts +6 -0
- package/dist/theme/components/header.d.ts +7 -0
- package/dist/theme/components/index.d.ts +37 -0
- package/dist/theme/components/input.d.ts +14 -0
- package/dist/theme/components/list.d.ts +6 -0
- package/dist/theme/components/loading.d.ts +16 -0
- package/dist/theme/components/skeleton.d.ts +22 -0
- package/dist/theme/components/touchable.d.ts +14 -0
- package/dist/theme/components/vimeo.d.ts +15 -0
- package/dist/theme/getTheme.d.ts +10 -21
- package/dist/theme/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/components/Example.d.ts +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { BoxProps } from '../Box';
|
|
2
|
+
export interface VimeoConfig {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to autoplay the video once loaded
|
|
5
|
+
*/
|
|
6
|
+
autoplay?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the video should start in a muted state
|
|
9
|
+
*/
|
|
10
|
+
muted?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the video should loop
|
|
13
|
+
*/
|
|
14
|
+
loop?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show the video title
|
|
17
|
+
*/
|
|
18
|
+
title?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to show the author's byline
|
|
21
|
+
*/
|
|
22
|
+
byline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show the author's portrait
|
|
25
|
+
*/
|
|
26
|
+
portrait?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to disable tracking by Vimeo
|
|
29
|
+
*/
|
|
30
|
+
dnt?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Accent color for the player controls (hex code)
|
|
33
|
+
*/
|
|
34
|
+
color?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to play the video inline on mobile devices
|
|
37
|
+
*/
|
|
38
|
+
playsinline?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to play the video in the background (removes UI)
|
|
41
|
+
*/
|
|
42
|
+
background?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show player controls
|
|
45
|
+
*/
|
|
46
|
+
controls?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to enable picture-in-picture mode
|
|
49
|
+
*/
|
|
50
|
+
pip?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the player should be responsive
|
|
53
|
+
*/
|
|
54
|
+
responsive?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface VimeoCallbacks {
|
|
57
|
+
/**
|
|
58
|
+
* Callback when the video is ready to play
|
|
59
|
+
*/
|
|
60
|
+
onReady?: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback when the video starts playing
|
|
63
|
+
*/
|
|
64
|
+
onPlay?: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Callback when the video is paused
|
|
67
|
+
*/
|
|
68
|
+
onPlayerPause?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Callback when the video ends
|
|
71
|
+
*/
|
|
72
|
+
onEnd?: () => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback when the video is seeking
|
|
75
|
+
*/
|
|
76
|
+
onSeeking?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Callback when the video has seeked
|
|
79
|
+
*/
|
|
80
|
+
onSeeked?: () => void;
|
|
81
|
+
/**
|
|
82
|
+
* Callback when an error occurs
|
|
83
|
+
*/
|
|
84
|
+
onPlayerError?: (error: any) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Callback for time update
|
|
87
|
+
*/
|
|
88
|
+
onTimeUpdate?: (time: number) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Callback for progress update
|
|
91
|
+
*/
|
|
92
|
+
onProgress?: (progress: number) => void;
|
|
93
|
+
}
|
|
94
|
+
export interface VimeoProps extends BoxProps {
|
|
95
|
+
/**
|
|
96
|
+
* The ID of the Vimeo video to play
|
|
97
|
+
*/
|
|
98
|
+
videoId: string;
|
|
99
|
+
/**
|
|
100
|
+
* Specific width for the player
|
|
101
|
+
*/
|
|
102
|
+
playerWidth?: string | number;
|
|
103
|
+
/**
|
|
104
|
+
* Specific height for the player
|
|
105
|
+
*/
|
|
106
|
+
playerHeight?: string | number;
|
|
107
|
+
/**
|
|
108
|
+
* Vimeo player configuration
|
|
109
|
+
*/
|
|
110
|
+
config?: VimeoConfig;
|
|
111
|
+
/**
|
|
112
|
+
* Vimeo player event callbacks
|
|
113
|
+
*/
|
|
114
|
+
callbacks?: VimeoCallbacks;
|
|
115
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VimeoConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Builds the Vimeo embed URL with all necessary parameters
|
|
4
|
+
*
|
|
5
|
+
* @param videoId - The Vimeo video ID
|
|
6
|
+
* @param config - Configuration for the Vimeo player
|
|
7
|
+
* @returns A string containing the complete Vimeo embed URL
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildVimeoEmbedUrl(videoId: string, config?: VimeoConfig): string;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an event handler for Vimeo player iframe messages
|
|
12
|
+
*
|
|
13
|
+
* @param iframe - The iframe element
|
|
14
|
+
* @param onMessageCallback - Callback function for handling Vimeo player messages
|
|
15
|
+
* @returns A function to remove the event listener
|
|
16
|
+
*/
|
|
17
|
+
export declare function createVimeoMessageHandler(iframe: HTMLIFrameElement | null, onMessageCallback: (event: MessageEvent) => void): () => void;
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
export * from './Art';
|
|
2
|
+
export * from './Base';
|
|
1
3
|
export * from './Box';
|
|
4
|
+
export * from './Button';
|
|
5
|
+
export * from './Divider';
|
|
6
|
+
export * from './Header';
|
|
7
|
+
export * from './Input';
|
|
8
|
+
export * from './List';
|
|
9
|
+
export * from './Loading';
|
|
10
|
+
export * from './Skeleton';
|
|
2
11
|
export * from './Text';
|
|
12
|
+
export * from './Touchable';
|
|
13
|
+
export * from './Vimeo';
|