indicator-ui 0.0.170 → 0.0.172
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.css +590 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +1496 -182
- package/dist/index.js.map +1 -1
- package/dist/types/src/test/pages/LoadingIndicatorPage.d.ts +1 -0
- package/dist/types/src/test/pages/MediaPlayerPage.d.ts +1 -0
- package/dist/types/src/test/pages/index.d.ts +1 -0
- package/dist/types/src/ui/Carousel/index.d.ts +1 -0
- package/dist/types/src/ui/Carousel/styles/index.d.ts +1 -0
- package/dist/types/src/ui/Carousel/types/CarouselTypes.d.ts +6 -0
- package/dist/types/src/ui/Carousel/types/index.d.ts +1 -0
- package/dist/types/src/ui/Carousel/ui/Carousel.d.ts +2 -0
- package/dist/types/src/ui/Carousel/ui/index.d.ts +1 -0
- package/dist/types/src/ui/Loaders/assets/index.d.ts +2 -0
- package/dist/types/src/ui/Loaders/index.d.ts +2 -0
- package/dist/types/src/ui/Loaders/styles/index.d.ts +1 -0
- package/dist/types/src/ui/Loaders/types/LoadingIndicatorTypes.d.ts +16 -0
- package/dist/types/src/ui/Loaders/types/index.d.ts +1 -0
- package/dist/types/src/ui/Loaders/ui/LoadingIndicator.d.ts +2 -0
- package/dist/types/src/ui/Loaders/ui/index.d.ts +1 -0
- package/dist/types/src/ui/MediaViewer/index.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/styles/components/index.d.ts +4 -0
- package/dist/types/src/ui/MediaViewer/styles/index.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/types/MediaViewerTypes.d.ts +14 -0
- package/dist/types/src/ui/MediaViewer/types/components/ControlBarTypes.d.ts +9 -0
- package/dist/types/src/ui/MediaViewer/types/components/ImageViewerTypes.d.ts +3 -0
- package/dist/types/src/ui/MediaViewer/types/components/ProgressBarTypes.d.ts +6 -0
- package/dist/types/src/ui/MediaViewer/types/components/VideoViewerTypes.d.ts +6 -0
- package/dist/types/src/ui/MediaViewer/types/components/index.d.ts +4 -0
- package/dist/types/src/ui/MediaViewer/types/index.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/MediaViewer.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/components/ControlBar.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/components/ImageViewer.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/components/VideoProgressBar.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/components/VideoViewer.d.ts +2 -0
- package/dist/types/src/ui/MediaViewer/ui/components/index.d.ts +4 -0
- package/dist/types/src/ui/MediaViewer/ui/index.d.ts +1 -0
- package/dist/types/src/ui/PlayButton/assets/index.d.ts +2 -0
- package/dist/types/src/ui/PlayButton/index.d.ts +3 -0
- package/dist/types/src/ui/PlayButton/styles/index.d.ts +1 -0
- package/dist/types/src/ui/PlayButton/types/PlayButtonTypes.d.ts +9 -0
- package/dist/types/src/ui/PlayButton/types/index.d.ts +1 -0
- package/dist/types/src/ui/PlayButton/ui/PlayButton.d.ts +2 -0
- package/dist/types/src/ui/PlayButton/ui/index.d.ts +1 -0
- package/dist/types/src/ui/VideoPlayerBase/index.d.ts +2 -0
- package/dist/types/src/ui/VideoPlayerBase/types/VideoPlayerBaseTypes.d.ts +77 -0
- package/dist/types/src/ui/VideoPlayerBase/types/index.d.ts +1 -0
- package/dist/types/src/ui/VideoPlayerBase/ui/VideoPlayerBase.d.ts +2 -0
- package/dist/types/src/ui/VideoPlayerBase/ui/index.d.ts +1 -0
- package/dist/types/src/ui/index.d.ts +4 -0
- package/package.json +3 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LoadingIndicatorPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MediaPlayerPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CarouselStyle } from './Carousel.module.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CarouselTypes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Carousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LoadingIndicatorStyle } from './LoadingIndicator.module.scss';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type LoadingIndicatorSizeType = 'small' | 'medium' | 'large' | 'ultra';
|
|
3
|
+
export type LoadingIndicatorStyleType = 'line-simple' | 'line-spinner' | 'dot-circle';
|
|
4
|
+
export type LoadingIndicatorPropsType = {
|
|
5
|
+
width?: 'fill' | 'hug';
|
|
6
|
+
height?: 'fill' | 'hug';
|
|
7
|
+
style?: LoadingIndicatorStyleType;
|
|
8
|
+
size?: LoadingIndicatorSizeType;
|
|
9
|
+
/**
|
|
10
|
+
* При `true` показывает `'Загрузка'`. При `false` - ничего не показывает.
|
|
11
|
+
*
|
|
12
|
+
* Если передать `ReactNode`, подставит его.
|
|
13
|
+
* */
|
|
14
|
+
supportingText?: boolean | React.ReactNode;
|
|
15
|
+
additionStyles?: string | string[];
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoadingIndicatorTypes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LoadingIndicator';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as ControlBarStyle } from './ControlBar.module.scss';
|
|
2
|
+
export { default as VideoProgressBarStyle } from './VideoProgressBar.module.scss';
|
|
3
|
+
export { default as VideoViewerStyle } from './VideoViewer.module.scss';
|
|
4
|
+
export { default as ImageViewerStyle } from './ImageViewer.module.scss';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type MediaViewerVideoType = {
|
|
2
|
+
type: 'video';
|
|
3
|
+
src: string;
|
|
4
|
+
};
|
|
5
|
+
export type MediaViewerImageType = {
|
|
6
|
+
type: 'image';
|
|
7
|
+
src: string;
|
|
8
|
+
};
|
|
9
|
+
export type MediaViewerMediaItemType = MediaViewerImageType | MediaViewerVideoType;
|
|
10
|
+
export type MediaViewerMediaType = Array<MediaViewerMediaItemType>;
|
|
11
|
+
export type MediaViewerPropsType = {
|
|
12
|
+
media?: MediaViewerMediaType;
|
|
13
|
+
initMediaIndex?: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MediaViewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PlayButtonStyle } from './PlayButton.module.scss';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type PlayButtonColorType = 'light' | 'dark';
|
|
3
|
+
export type PlayButtonSizeType = 'default' | 'large';
|
|
4
|
+
export type PlayButtonTypeType = 'play' | 'stop';
|
|
5
|
+
export type PlayButtonPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'type' | 'size'> & {
|
|
6
|
+
color?: PlayButtonColorType;
|
|
7
|
+
size?: PlayButtonSizeType;
|
|
8
|
+
type?: PlayButtonTypeType;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlayButtonTypes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PlayButton';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export type VideoPlayerBasePropsType = {
|
|
2
|
+
/**
|
|
3
|
+
* Ссылка на видео.
|
|
4
|
+
* */
|
|
5
|
+
src?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Включить/Выключить браузерные плейр.
|
|
8
|
+
*
|
|
9
|
+
* *По умолчанию:* false.
|
|
10
|
+
* */
|
|
11
|
+
browserControl?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Включить/Выключить звук.
|
|
14
|
+
*
|
|
15
|
+
* *По умолчанию:* false.
|
|
16
|
+
* */
|
|
17
|
+
muted?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Автоматическое воспроизведение видео.
|
|
20
|
+
*
|
|
21
|
+
* *По умолчанию:* false.
|
|
22
|
+
* */
|
|
23
|
+
autoPlay?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* `Callback` при изменение длинные видео.
|
|
26
|
+
* */
|
|
27
|
+
onChangeDuration?: (duration: number) => void;
|
|
28
|
+
/**
|
|
29
|
+
* `Callback` при изменение текущего момента просмотра видео.
|
|
30
|
+
* */
|
|
31
|
+
onChangeTime?: (time: number) => void;
|
|
32
|
+
/**
|
|
33
|
+
* `Callback` при изменение уровня звука видео.
|
|
34
|
+
* */
|
|
35
|
+
onChangeVolume?: (volume: number) => void;
|
|
36
|
+
/**
|
|
37
|
+
* `Callback` при изменение состояния проигрыша видео.
|
|
38
|
+
* */
|
|
39
|
+
onChangePlay?: (play: boolean) => void;
|
|
40
|
+
/**
|
|
41
|
+
* `Callback`, когда видео не хватает данных для показа (можно показать знак загрузки).
|
|
42
|
+
* */
|
|
43
|
+
onWaiting?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* `Callback`, когда видео загрузило достаточно данных, чтобы начать воспроизведение (можно убрать знак загрузки).
|
|
46
|
+
* */
|
|
47
|
+
onCanPlay?: () => void;
|
|
48
|
+
/**
|
|
49
|
+
* Текущий момент просмотра видео.
|
|
50
|
+
*
|
|
51
|
+
* __Компонент реагирует на его изменение.__
|
|
52
|
+
* */
|
|
53
|
+
time?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Текущий уровень звука видео.
|
|
56
|
+
*
|
|
57
|
+
* __Компонент реагирует на его изменение.__
|
|
58
|
+
* */
|
|
59
|
+
volume?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Play/Pause.
|
|
62
|
+
*
|
|
63
|
+
* * При ```play === true``` состояние *Play*.
|
|
64
|
+
* * При ```play === false``` состояние *Pause*.
|
|
65
|
+
*
|
|
66
|
+
* *По умолчанию:* false.
|
|
67
|
+
* */
|
|
68
|
+
play?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Зацикливает видео.
|
|
71
|
+
*
|
|
72
|
+
* *По умолчанию:* false.
|
|
73
|
+
* */
|
|
74
|
+
loop?: boolean;
|
|
75
|
+
lazyLoad?: boolean;
|
|
76
|
+
className?: string;
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './VideoPlayerBaseTypes';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { VideoPlayerBasePropsType } from "../types";
|
|
2
|
+
export declare function VideoPlayerBase({ src, browserControl, muted, onChangeDuration, onChangeTime, onChangeVolume, onChangePlay, onCanPlay, onWaiting, time, volume, play, loop, autoPlay, lazyLoad, className, }: VideoPlayerBasePropsType): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VideoPlayerBase";
|
|
@@ -18,3 +18,7 @@ export * from './PaginationBar';
|
|
|
18
18
|
export * from './ScrollProvider';
|
|
19
19
|
export * from './UserPick';
|
|
20
20
|
export * from './DropdownItem';
|
|
21
|
+
export * from './VideoPlayerBase';
|
|
22
|
+
export * from './Loaders';
|
|
23
|
+
export * from './MediaViewer';
|
|
24
|
+
export * from './Carousel';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "indicator-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.172",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/types/src/index.d.ts",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"css-loader": "^6.8.1",
|
|
34
34
|
"css-modules-typescript-loader": "^4.0.1",
|
|
35
35
|
"date-fns": "^4.1.0",
|
|
36
|
+
"date-fns-tz": "^3.2.0",
|
|
36
37
|
"file-loader": "^6.2.0",
|
|
37
38
|
"html-loader": "^5.1.0",
|
|
38
39
|
"html-webpack-plugin": "^5.6.3",
|
|
@@ -66,8 +67,5 @@
|
|
|
66
67
|
"files": [
|
|
67
68
|
"dist",
|
|
68
69
|
"docs"
|
|
69
|
-
]
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"date-fns-tz": "^3.2.0"
|
|
72
|
-
}
|
|
70
|
+
]
|
|
73
71
|
}
|