@mindly/ui-components 3.2.1 → 3.3.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/cjs/index.js +28 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +6 -0
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +11 -0
- package/dist/cjs/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +6 -0
- package/dist/cjs/types/lib/AgoraMediaPlayer/index.d.ts +1 -0
- package/dist/cjs/types/lib/RoundButton/RoundButton.d.ts +11 -0
- package/dist/cjs/types/lib/RoundButton/RoundButton.styled.d.ts +9 -0
- package/dist/cjs/types/lib/RoundButton/index.d.ts +1 -0
- package/dist/cjs/types/lib/StatusTag/StatusTag.d.ts +7 -0
- package/dist/cjs/types/lib/StatusTag/StatusTag.style.d.ts +6 -0
- package/dist/cjs/types/lib/StatusTag/index.d.ts +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +6 -0
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +11 -0
- package/dist/esm/types/lib/AgoraMediaPlayer/AgoraMediaPlayer.style.d.ts +6 -0
- package/dist/esm/types/lib/AgoraMediaPlayer/index.d.ts +1 -0
- package/dist/esm/types/lib/RoundButton/RoundButton.d.ts +11 -0
- package/dist/esm/types/lib/RoundButton/RoundButton.styled.d.ts +9 -0
- package/dist/esm/types/lib/RoundButton/index.d.ts +1 -0
- package/dist/esm/types/lib/StatusTag/StatusTag.d.ts +7 -0
- package/dist/esm/types/lib/StatusTag/StatusTag.style.d.ts +6 -0
- package/dist/esm/types/lib/StatusTag/index.d.ts +1 -0
- package/dist/index.d.ts +27 -1
- package/package.json +3 -1
|
@@ -43,3 +43,9 @@ export * from './lib/SelectImpressionEmoji/SelectImpressionEmojiProps';
|
|
|
43
43
|
export * from './lib/HorisontalCalendar';
|
|
44
44
|
export { default as FooterForBooking } from './lib/footer-for-booking';
|
|
45
45
|
export * from './lib/footer-for-booking';
|
|
46
|
+
export { default as StatusTag } from './lib/StatusTag';
|
|
47
|
+
export * from './lib/StatusTag';
|
|
48
|
+
export { default as MediaPlayer } from './lib/AgoraMediaPlayer';
|
|
49
|
+
export * from './lib/AgoraMediaPlayer';
|
|
50
|
+
export { default as RoundButton } from './lib/RoundButton';
|
|
51
|
+
export * from './lib/RoundButton';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { ILocalAudioTrack, ILocalVideoTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
|
|
3
|
+
export declare type MediaPlayerProps = {
|
|
4
|
+
videoContainer?: React.RefObject<HTMLDivElement>;
|
|
5
|
+
cameraTrack?: ILocalVideoTrack;
|
|
6
|
+
audioTrack?: ILocalAudioTrack;
|
|
7
|
+
remoteAudioTrack?: IRemoteAudioTrack;
|
|
8
|
+
remoteCameraTrack?: IRemoteVideoTrack;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const AgoraMediaPlayer: React.FC<MediaPlayerProps>;
|
|
11
|
+
export default AgoraMediaPlayer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AgoraMediaPlayer';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type RoundButtonPropsType = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onClickHandler?: () => void;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
buttonIcon?: string;
|
|
7
|
+
buttonType?: 'transparent' | 'fullFill' | 'reject';
|
|
8
|
+
dimension?: number;
|
|
9
|
+
};
|
|
10
|
+
declare const RoundButton: React.FC<RoundButtonPropsType>;
|
|
11
|
+
export default RoundButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const StyledRoundButtonContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledRoundButtonText: import("styled-components").StyledComponent<"p", any, {}, never>;
|
|
3
|
+
declare type StyledControlPanelButtonPropsType = {
|
|
4
|
+
buttonType?: 'transparent' | 'fullFill' | 'reject';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
dimension?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const StyledRoundButton: import("styled-components").StyledComponent<"button", any, StyledControlPanelButtonPropsType, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RoundButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './StatusTag';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText } from 'react';
|
|
3
3
|
import { JSX as JSX$1 } from '@ionic/core/components';
|
|
4
|
+
import { ILocalVideoTrack, ILocalAudioTrack, IRemoteAudioTrack, IRemoteVideoTrack } from 'agora-rtc-sdk-ng';
|
|
4
5
|
|
|
5
6
|
interface ButtonProps {
|
|
6
7
|
buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
|
|
@@ -420,4 +421,29 @@ interface FooterForBookingProps {
|
|
|
420
421
|
}
|
|
421
422
|
declare const FooterForBooking: React.FC<FooterForBookingProps>;
|
|
422
423
|
|
|
423
|
-
|
|
424
|
+
declare type StatusTagPropsType = {
|
|
425
|
+
dimension?: number;
|
|
426
|
+
tagColor?: string;
|
|
427
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
428
|
+
declare const StatusTag: React.FC<StatusTagPropsType>;
|
|
429
|
+
|
|
430
|
+
declare type MediaPlayerProps = {
|
|
431
|
+
videoContainer?: React.RefObject<HTMLDivElement>;
|
|
432
|
+
cameraTrack?: ILocalVideoTrack;
|
|
433
|
+
audioTrack?: ILocalAudioTrack;
|
|
434
|
+
remoteAudioTrack?: IRemoteAudioTrack;
|
|
435
|
+
remoteCameraTrack?: IRemoteVideoTrack;
|
|
436
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
437
|
+
declare const AgoraMediaPlayer: React.FC<MediaPlayerProps>;
|
|
438
|
+
|
|
439
|
+
declare type RoundButtonPropsType = {
|
|
440
|
+
disabled?: boolean;
|
|
441
|
+
onClickHandler?: () => void;
|
|
442
|
+
buttonText?: string;
|
|
443
|
+
buttonIcon?: string;
|
|
444
|
+
buttonType?: 'transparent' | 'fullFill' | 'reject';
|
|
445
|
+
dimension?: number;
|
|
446
|
+
};
|
|
447
|
+
declare const RoundButton: React.FC<RoundButtonPropsType>;
|
|
448
|
+
|
|
449
|
+
export { AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$2 as LetterAvatar, ListButton, ListSelect, AgoraMediaPlayer as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotesCardText, NotesEditor, _default$1 as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, Segment, SegmentType, _default as SelectImpressionEmoji, StatusTag, TabBar, TherapistCard, TherapistInformationComponent, Toggle, UsersPsychologistScrollList, YourLocalTimeBlock, toast };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "3.2
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
7
7
|
"clean": "rimraf dist",
|
|
8
8
|
"build": "rollup -c",
|
|
9
|
+
"build:watch": "tsc --watch",
|
|
9
10
|
"test:ts": "tsc --noEmit --skipLibCheck",
|
|
10
11
|
"coverage": "npm test -- --env=jsdom --coverage --coverageDirectory=jest-coverage --passWithNoTests",
|
|
11
12
|
"test:lint": "eslint \"./src/**/*{ts,tsx}\" --ignore-pattern \"*.d.ts\" --fix",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"@types/node": "^12.20.21",
|
|
31
32
|
"@types/react": "^17.0.27",
|
|
32
33
|
"@types/react-dom": "^17.0.9",
|
|
34
|
+
"agora-rtc-sdk-ng": "^4.12.2",
|
|
33
35
|
"auto": "^10.32.0",
|
|
34
36
|
"date-fns": "^2.28.0",
|
|
35
37
|
"luxon": "^2.4.0",
|