indicator-ui 0.0.170 → 0.0.173

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.
Files changed (59) hide show
  1. package/dist/index.css +808 -3
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.js +1590 -188
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/src/assets/icons/index.d.ts +1 -0
  6. package/dist/types/src/test/pages/LoadingIndicatorPage.d.ts +1 -0
  7. package/dist/types/src/test/pages/MediaPlayerPage.d.ts +1 -0
  8. package/dist/types/src/test/pages/index.d.ts +1 -0
  9. package/dist/types/src/ui/Carousel/index.d.ts +1 -0
  10. package/dist/types/src/ui/Carousel/styles/index.d.ts +1 -0
  11. package/dist/types/src/ui/Carousel/types/CarouselTypes.d.ts +6 -0
  12. package/dist/types/src/ui/Carousel/types/index.d.ts +1 -0
  13. package/dist/types/src/ui/Carousel/ui/Carousel.d.ts +2 -0
  14. package/dist/types/src/ui/Carousel/ui/index.d.ts +1 -0
  15. package/dist/types/src/ui/InputFields/DateTimeField/styles/index.d.ts +1 -0
  16. package/dist/types/src/ui/InputFields/DateTimeField/types/DateFieldTypes.d.ts +1 -2
  17. package/dist/types/src/ui/InputFields/DateTimeField/types/DateTimeFieldTypes.d.ts +16 -0
  18. package/dist/types/src/ui/InputFields/DateTimeField/types/TimeFieldTypes.d.ts +4 -0
  19. package/dist/types/src/ui/InputFields/DateTimeField/ui/DateField.d.ts +1 -1
  20. package/dist/types/src/ui/InputFields/DateTimeField/ui/DateTimeField.d.ts +1 -1
  21. package/dist/types/src/ui/InputFields/DateTimeField/ui/TimeField.d.ts +1 -1
  22. package/dist/types/src/ui/Loaders/assets/index.d.ts +2 -0
  23. package/dist/types/src/ui/Loaders/index.d.ts +2 -0
  24. package/dist/types/src/ui/Loaders/styles/index.d.ts +1 -0
  25. package/dist/types/src/ui/Loaders/types/LoadingIndicatorTypes.d.ts +16 -0
  26. package/dist/types/src/ui/Loaders/types/index.d.ts +1 -0
  27. package/dist/types/src/ui/Loaders/ui/LoadingIndicator.d.ts +2 -0
  28. package/dist/types/src/ui/Loaders/ui/index.d.ts +1 -0
  29. package/dist/types/src/ui/MediaViewer/index.d.ts +2 -0
  30. package/dist/types/src/ui/MediaViewer/styles/components/index.d.ts +4 -0
  31. package/dist/types/src/ui/MediaViewer/styles/index.d.ts +2 -0
  32. package/dist/types/src/ui/MediaViewer/types/MediaViewerTypes.d.ts +14 -0
  33. package/dist/types/src/ui/MediaViewer/types/components/ControlBarTypes.d.ts +9 -0
  34. package/dist/types/src/ui/MediaViewer/types/components/ImageViewerTypes.d.ts +3 -0
  35. package/dist/types/src/ui/MediaViewer/types/components/ProgressBarTypes.d.ts +6 -0
  36. package/dist/types/src/ui/MediaViewer/types/components/VideoViewerTypes.d.ts +6 -0
  37. package/dist/types/src/ui/MediaViewer/types/components/index.d.ts +4 -0
  38. package/dist/types/src/ui/MediaViewer/types/index.d.ts +2 -0
  39. package/dist/types/src/ui/MediaViewer/ui/MediaViewer.d.ts +2 -0
  40. package/dist/types/src/ui/MediaViewer/ui/components/ControlBar.d.ts +2 -0
  41. package/dist/types/src/ui/MediaViewer/ui/components/ImageViewer.d.ts +2 -0
  42. package/dist/types/src/ui/MediaViewer/ui/components/VideoProgressBar.d.ts +2 -0
  43. package/dist/types/src/ui/MediaViewer/ui/components/VideoViewer.d.ts +2 -0
  44. package/dist/types/src/ui/MediaViewer/ui/components/index.d.ts +4 -0
  45. package/dist/types/src/ui/MediaViewer/ui/index.d.ts +1 -0
  46. package/dist/types/src/ui/PlayButton/assets/index.d.ts +2 -0
  47. package/dist/types/src/ui/PlayButton/index.d.ts +3 -0
  48. package/dist/types/src/ui/PlayButton/styles/index.d.ts +1 -0
  49. package/dist/types/src/ui/PlayButton/types/PlayButtonTypes.d.ts +9 -0
  50. package/dist/types/src/ui/PlayButton/types/index.d.ts +1 -0
  51. package/dist/types/src/ui/PlayButton/ui/PlayButton.d.ts +2 -0
  52. package/dist/types/src/ui/PlayButton/ui/index.d.ts +1 -0
  53. package/dist/types/src/ui/VideoPlayerBase/index.d.ts +2 -0
  54. package/dist/types/src/ui/VideoPlayerBase/types/VideoPlayerBaseTypes.d.ts +77 -0
  55. package/dist/types/src/ui/VideoPlayerBase/types/index.d.ts +1 -0
  56. package/dist/types/src/ui/VideoPlayerBase/ui/VideoPlayerBase.d.ts +2 -0
  57. package/dist/types/src/ui/VideoPlayerBase/ui/index.d.ts +1 -0
  58. package/dist/types/src/ui/index.d.ts +4 -0
  59. package/package.json +3 -5
@@ -76,6 +76,7 @@ export { default as VolumeMaxSVG } from './volume-max.svg';
76
76
  export { default as VolumeXSVG } from './volume-x.svg';
77
77
  export { default as Wallet03SVG } from './wallet-03.svg';
78
78
  export { default as XCloseSVG } from './x-close.svg';
79
+ export { default as LineSVG } from './line.svg';
79
80
  export { default as EyeSVG } from './eye.svg';
80
81
  export { default as MessageSquare02SVG } from './message-square-02.svg';
81
82
  export { default as ShareArrowSVG } from './share-arrow.svg';
@@ -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;
@@ -15,3 +15,4 @@ export * from './TabFramePage';
15
15
  export * from './PaginationPage';
16
16
  export * from './UserPickPage';
17
17
  export * from './DropdownItemPage';
18
+ export * from './MediaPlayerPage';
@@ -0,0 +1 @@
1
+ export * from './ui';
@@ -0,0 +1 @@
1
+ export { default as CarouselStyle } from './Carousel.module.scss';
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from "react";
2
+ export type CarouselPropsType = {
3
+ children: ReactNode;
4
+ activeIndex?: number;
5
+ setActiveIndex?: (index: number) => void;
6
+ };
@@ -0,0 +1 @@
1
+ export * from './CarouselTypes';
@@ -0,0 +1,2 @@
1
+ import { CarouselPropsType } from "../types";
2
+ export declare function Carousel({ children, activeIndex, setActiveIndex }: CarouselPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Carousel';
@@ -1 +1,2 @@
1
1
  export { default as DateTimeFieldStyle } from './DateTimeField.module.scss';
2
+ export { default as DateFieldStyle } from './DateField.module.scss';
@@ -14,7 +14,6 @@ export type DateFieldPropsType = FieldsBasePropsType<string> & {
14
14
  * Минимально допустимый год.
15
15
  * */
16
16
  minYear?: number;
17
- /** Дополнительные имена стилей */
18
- additionStyles?: string | string[];
19
17
  timeZone?: string;
18
+ className?: string;
20
19
  };
@@ -1,5 +1,6 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  import { FormatNameType } from "../../../../lib";
3
+ import React from "react";
3
4
  export type DateTimeFieldValueType = string;
4
5
  /**
5
6
  * Конфигурация поля. Соответственно *одна дата*, *одно время* или *и то и другое*.
@@ -42,10 +43,25 @@ export type DateTimeFieldPropsType = FieldsBasePropsType<DateTimeFieldValueType>
42
43
  additionStyle?: string | string[];
43
44
  timePlaceholder?: string;
44
45
  datePlaceholder?: string;
46
+ /** Иконка слева у даты*/
47
+ iconDate?: React.ReactNode;
48
+ /** Иконка слева у времени*/
49
+ iconTime?: React.ReactNode;
50
+ /**
51
+ * Выключает стиль ошибки.
52
+ * */
53
+ isError?: boolean;
54
+ onFocus?: (e: any) => void;
55
+ onBlur?: (e: any) => void;
45
56
  /**
46
57
  * Таймзона, в которой будет работать поле.
47
58
  *
48
59
  * По умолчанию: UTC
49
60
  * */
50
61
  timeZone?: string;
62
+ /** Надпись слева от даты*/
63
+ textDate?: string;
64
+ /** Надпись слева от даты*/
65
+ textTime?: string;
66
+ xClose?: boolean;
51
67
  };
@@ -1,9 +1,13 @@
1
1
  import { FieldsBasePropsType } from "../../FieldsBase";
2
2
  import { FormatNameType } from "../../../../lib";
3
3
  export type TimeFieldPropsType = FieldsBasePropsType<string> & {
4
+ /**
5
+ * Формат времени.
6
+ * */
4
7
  timeFormat?: FormatNameType;
5
8
  placeholder?: string;
6
9
  /** Дополнительные имена стилей */
7
10
  additionStyles?: string | string[];
8
11
  timeZone?: string;
12
+ className?: string;
9
13
  };
@@ -1,2 +1,2 @@
1
1
  import { DateFieldPropsType } from "../types";
2
- export declare function DateField({ value, disabled, required, isError, onChange, onFocus, dateFormat, onBlur, minYear, maxYear, additionStyles, timeZone, placeholder, }: DateFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DateField({ value, disabled, required, isError, onChange, onFocus, dateFormat, onBlur, minYear, maxYear, timeZone, placeholder, className, }: DateFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { DateTimeFieldPropsType } from "../types";
2
- export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, datePlaceholder, timePlaceholder, timeZone, ...props }: DateTimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function DateTimeField({ value, fieldConfig, onChange, dateFormat, timeFormat, outFormat, additionStyle, datePlaceholder, timePlaceholder, timeZone, iconDate, iconTime, textDate, textTime, xClose, isError, onFocus, onBlur, ...props }: DateTimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { TimeFieldPropsType } from "../types";
2
- export declare function TimeField({ value, disabled, required, isError, onChange, onFocus, timeFormat, onBlur, placeholder, additionStyles, timeZone, }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TimeField({ value, disabled, required, isError, onChange, onFocus, timeFormat, onBlur, placeholder, additionStyles, timeZone, className }: TimeFieldPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default as LineSimpleSVG } from './LineSimple.svg';
2
+ export { default as LineSpinnerSVG } from './LineSpinner.svg';
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -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,2 @@
1
+ import { LoadingIndicatorPropsType } from "../types";
2
+ export declare function LoadingIndicator({ size, style, supportingText, width, height, additionStyles, }: LoadingIndicatorPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './LoadingIndicator';
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -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,2 @@
1
+ export * from './components';
2
+ export { default as MediaViewerStyle } from './MediaViewer.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,9 @@
1
+ export type ControlBarPropsType = {
2
+ muted?: boolean;
3
+ play?: boolean;
4
+ onClose?: () => void;
5
+ onPrev?: () => void;
6
+ onNext?: () => void;
7
+ onMute?: () => void;
8
+ onPlay?: () => void;
9
+ };
@@ -0,0 +1,3 @@
1
+ export type ImageViewerPropsType = {
2
+ src: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ export type ProgressBarPropsType = {
2
+ progress: number;
3
+ onChangeProgress: (newProgress: number) => void;
4
+ onStartDrag?: () => void;
5
+ onEndDrag?: () => void;
6
+ };
@@ -0,0 +1,6 @@
1
+ export type VideoViewerPropsType = {
2
+ src: string;
3
+ muted?: boolean;
4
+ play?: boolean;
5
+ onChangePlay?: (play: boolean) => void;
6
+ };
@@ -0,0 +1,4 @@
1
+ export * from './VideoViewerTypes';
2
+ export * from './ImageViewerTypes';
3
+ export * from './ControlBarTypes';
4
+ export * from './ProgressBarTypes';
@@ -0,0 +1,2 @@
1
+ export * from './MediaViewerTypes';
2
+ export * from './components';
@@ -0,0 +1,2 @@
1
+ import { MediaViewerPropsType } from "../types";
2
+ export declare function MediaViewer({ media, initMediaIndex }: MediaViewerPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ControlBarPropsType } from "../../types";
2
+ export declare function ControlBar({ play, muted, onMute, onPlay, onClose, onPrev, onNext }: ControlBarPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ImageViewerPropsType } from "../../types";
2
+ export declare function ImageViewer({ src }: ImageViewerPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ProgressBarPropsType } from "../../types";
2
+ export declare function VideoProgressBar({ progress, onChangeProgress, onStartDrag, onEndDrag }: ProgressBarPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { VideoViewerPropsType } from '../../types';
2
+ export declare function VideoViewer({ play, muted, src, onChangePlay }: VideoViewerPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './VideoViewer';
2
+ export * from './ImageViewer';
3
+ export * from './VideoProgressBar';
4
+ export * from './ControlBar';
@@ -0,0 +1 @@
1
+ export * from './MediaViewer';
@@ -0,0 +1,2 @@
1
+ export { default as StopSVG } from './stop.svg';
2
+ export { default as PlaySVG } from './play.svg';
@@ -0,0 +1,3 @@
1
+ export * from './ui';
2
+ export * from './types';
3
+ export * from './assets';
@@ -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,2 @@
1
+ import { PlayButtonPropsType } from "../types";
2
+ export declare function PlayButton({ color, type, size, ...props }: PlayButtonPropsType): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './PlayButton';
@@ -0,0 +1,2 @@
1
+ export * from './ui';
2
+ export * from './types';
@@ -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.170",
3
+ "version": "0.0.173",
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
  }