@mindly/ui-components 3.20.0 → 3.21.0

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 (80) hide show
  1. package/dist/cjs/index.js +51 -48
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/index.d.ts +15 -1
  4. package/dist/cjs/types/lib/Chat/ChatListItem/ChatListItem.d.ts +1 -1
  5. package/dist/cjs/types/lib/Chat/ChatListItem/ChatListItem.style.d.ts +1 -1
  6. package/dist/cjs/types/lib/{consultation-card/ConsultationCard.d.ts → ConsultationCardDeprecated/ConsultationCardDeprecated.d.ts} +2 -2
  7. package/dist/cjs/types/lib/ConsultationCardDeprecated/ConsultationCardDeprecatedSkeleton.d.ts +2 -0
  8. package/dist/cjs/types/lib/ConsultationCardDeprecated/index.d.ts +2 -0
  9. package/dist/cjs/types/lib/Consultations/ConsultationCard/ConsultationCard.d.ts +4 -0
  10. package/dist/cjs/types/lib/Consultations/ConsultationCard/ConsultationCard.style.d.ts +7 -0
  11. package/dist/cjs/types/lib/Consultations/ConsultationCard/ConsultationCardSkeleton.d.ts +7 -0
  12. package/dist/cjs/types/lib/Consultations/ConsultationCard/index.d.ts +2 -0
  13. package/dist/cjs/types/lib/Consultations/ConsultationCard/types.d.ts +15 -0
  14. package/dist/cjs/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  15. package/dist/cjs/types/lib/Consultations/ConsultationModal/ConsultationModal.style.d.ts +3 -0
  16. package/dist/cjs/types/lib/Consultations/ConsultationModal/index.d.ts +1 -0
  17. package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +11 -0
  18. package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.style.d.ts +1 -0
  19. package/dist/cjs/types/lib/Consultations/ConsultationSpecialistCard/index.d.ts +1 -0
  20. package/dist/cjs/types/lib/Consultations/EmptyConsultations/EmptyConsultations.d.ts +9 -0
  21. package/dist/cjs/types/lib/Consultations/EmptyConsultations/EmptyConsultations.style.d.ts +1 -0
  22. package/dist/cjs/types/lib/Consultations/EmptyConsultations/index.d.ts +1 -0
  23. package/dist/cjs/types/lib/Consultations/SignUpSessionButton/SignUpSessionButton.d.ts +7 -0
  24. package/dist/cjs/types/lib/Consultations/SignUpSessionButton/SignUpSessionButton.style.d.ts +1 -0
  25. package/dist/cjs/types/lib/Consultations/SignUpSessionButton/index.d.ts +1 -0
  26. package/dist/cjs/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +15 -0
  27. package/dist/cjs/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.style.d.ts +2 -0
  28. package/dist/cjs/types/lib/Consultations/SignUpSessionModal/index.d.ts +1 -0
  29. package/dist/cjs/types/lib/Consultations/SpecialistInfoModal/SpecialistInfoModal.d.ts +15 -0
  30. package/dist/cjs/types/lib/Consultations/SpecialistInfoModal/SpecialistInfoModal.style.d.ts +2 -0
  31. package/dist/cjs/types/lib/Consultations/SpecialistInfoModal/index.d.ts +1 -0
  32. package/dist/cjs/types/lib/Consultations/utils.d.ts +3 -0
  33. package/dist/cjs/types/lib/Segment/Segment.d.ts +1 -0
  34. package/dist/cjs/types/lib/Segment/Segment.style.d.ts +1 -0
  35. package/dist/cjs/types/lib/Segment/SegmentSkeleton.d.ts +3 -0
  36. package/dist/cjs/types/lib/Segment/types.d.ts +2 -1
  37. package/dist/esm/index.js +48 -45
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/types/index.d.ts +15 -1
  40. package/dist/esm/types/lib/Chat/ChatListItem/ChatListItem.d.ts +1 -1
  41. package/dist/esm/types/lib/Chat/ChatListItem/ChatListItem.style.d.ts +1 -1
  42. package/dist/esm/types/lib/{consultation-card/ConsultationCard.d.ts → ConsultationCardDeprecated/ConsultationCardDeprecated.d.ts} +2 -2
  43. package/dist/esm/types/lib/ConsultationCardDeprecated/ConsultationCardDeprecatedSkeleton.d.ts +2 -0
  44. package/dist/esm/types/lib/ConsultationCardDeprecated/index.d.ts +2 -0
  45. package/dist/esm/types/lib/Consultations/ConsultationCard/ConsultationCard.d.ts +4 -0
  46. package/dist/esm/types/lib/Consultations/ConsultationCard/ConsultationCard.style.d.ts +7 -0
  47. package/dist/esm/types/lib/Consultations/ConsultationCard/ConsultationCardSkeleton.d.ts +7 -0
  48. package/dist/esm/types/lib/Consultations/ConsultationCard/index.d.ts +2 -0
  49. package/dist/esm/types/lib/Consultations/ConsultationCard/types.d.ts +15 -0
  50. package/dist/esm/types/lib/Consultations/ConsultationModal/ConsultationModal.d.ts +17 -0
  51. package/dist/esm/types/lib/Consultations/ConsultationModal/ConsultationModal.style.d.ts +3 -0
  52. package/dist/esm/types/lib/Consultations/ConsultationModal/index.d.ts +1 -0
  53. package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.d.ts +11 -0
  54. package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/ConsultationSpecialistCard.style.d.ts +1 -0
  55. package/dist/esm/types/lib/Consultations/ConsultationSpecialistCard/index.d.ts +1 -0
  56. package/dist/esm/types/lib/Consultations/EmptyConsultations/EmptyConsultations.d.ts +9 -0
  57. package/dist/esm/types/lib/Consultations/EmptyConsultations/EmptyConsultations.style.d.ts +1 -0
  58. package/dist/esm/types/lib/Consultations/EmptyConsultations/index.d.ts +1 -0
  59. package/dist/esm/types/lib/Consultations/SignUpSessionButton/SignUpSessionButton.d.ts +7 -0
  60. package/dist/esm/types/lib/Consultations/SignUpSessionButton/SignUpSessionButton.style.d.ts +1 -0
  61. package/dist/esm/types/lib/Consultations/SignUpSessionButton/index.d.ts +1 -0
  62. package/dist/esm/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.d.ts +15 -0
  63. package/dist/esm/types/lib/Consultations/SignUpSessionModal/SignUpSessionModal.style.d.ts +2 -0
  64. package/dist/esm/types/lib/Consultations/SignUpSessionModal/index.d.ts +1 -0
  65. package/dist/esm/types/lib/Consultations/SpecialistInfoModal/SpecialistInfoModal.d.ts +15 -0
  66. package/dist/esm/types/lib/Consultations/SpecialistInfoModal/SpecialistInfoModal.style.d.ts +2 -0
  67. package/dist/esm/types/lib/Consultations/SpecialistInfoModal/index.d.ts +1 -0
  68. package/dist/esm/types/lib/Consultations/utils.d.ts +3 -0
  69. package/dist/esm/types/lib/Segment/Segment.d.ts +1 -0
  70. package/dist/esm/types/lib/Segment/Segment.style.d.ts +1 -0
  71. package/dist/esm/types/lib/Segment/SegmentSkeleton.d.ts +3 -0
  72. package/dist/esm/types/lib/Segment/types.d.ts +2 -1
  73. package/dist/index.d.ts +107 -19
  74. package/package.json +1 -1
  75. package/dist/cjs/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +0 -2
  76. package/dist/cjs/types/lib/consultation-card/index.d.ts +0 -2
  77. package/dist/esm/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +0 -2
  78. package/dist/esm/types/lib/consultation-card/index.d.ts +0 -2
  79. /package/dist/cjs/types/lib/{consultation-card → ConsultationCardDeprecated}/ConsultationCard.style.d.ts +0 -0
  80. /package/dist/esm/types/lib/{consultation-card → ConsultationCardDeprecated}/ConsultationCard.style.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -203,7 +203,7 @@ declare type LetterAvatarProps = {
203
203
  fontSize?: number;
204
204
  onClick?: () => void;
205
205
  };
206
- declare const _default$c: React.NamedExoticComponent<LetterAvatarProps>;
206
+ declare const _default$i: React.NamedExoticComponent<LetterAvatarProps>;
207
207
 
208
208
  declare type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
209
209
  onErrorContent: React.ReactElement;
@@ -215,7 +215,7 @@ declare type PersonDateTimeCardProps = {
215
215
  name: string;
216
216
  dateTime: Date;
217
217
  };
218
- declare const _default$b: React.NamedExoticComponent<PersonDateTimeCardProps>;
218
+ declare const _default$h: React.NamedExoticComponent<PersonDateTimeCardProps>;
219
219
 
220
220
  declare type PsychologistProfileType = {
221
221
  id: string;
@@ -354,7 +354,7 @@ declare type DateTimeType = {
354
354
  _nanoseconds: number;
355
355
  _seconds: number;
356
356
  };
357
- interface ConsultationCardProps {
357
+ interface ConsultationCardDeprecatedProps {
358
358
  startConsultation: (props?: React.SyntheticEvent) => void;
359
359
  handleReschedule: (props?: React.SyntheticEvent) => void;
360
360
  handleRefund: (props?: React.SyntheticEvent) => void;
@@ -369,9 +369,9 @@ interface ConsultationCardProps {
369
369
  ['data-reschedule-testid']?: string;
370
370
  ['data-refund-testid']?: string;
371
371
  }
372
- declare const ConsultationCard: React.FC<ConsultationCardProps>;
372
+ declare const ConsultationCardDeprecated: React.FC<ConsultationCardDeprecatedProps>;
373
373
 
374
- declare const ConsultationCardSkeleton: () => JSX.Element;
374
+ declare const ConsultationCardDeprecatedSkeleton: () => JSX.Element;
375
375
 
376
376
  declare type AvatarProps = {
377
377
  dimensions?: number;
@@ -405,7 +405,8 @@ declare type SegmentType = {
405
405
  };
406
406
  declare enum SegmentColor {
407
407
  PRIMARY = "primary",
408
- SECONDARY = "secondary"
408
+ SECONDARY = "secondary",
409
+ DARK = "dark"
409
410
  }
410
411
 
411
412
  declare type SegmentProps = {
@@ -413,6 +414,7 @@ declare type SegmentProps = {
413
414
  selected?: string;
414
415
  onChange?: (id: string) => void;
415
416
  type?: SegmentColor;
417
+ isLoading?: boolean;
416
418
  };
417
419
  declare const Segment: FC<SegmentProps>;
418
420
 
@@ -428,7 +430,7 @@ declare type SelectImpressionEmojiProps = {
428
430
  onChange?: (val: ImpressionEmojiEnum) => void;
429
431
  };
430
432
 
431
- declare const _default$a: React.NamedExoticComponent<SelectImpressionEmojiProps>;
433
+ declare const _default$g: React.NamedExoticComponent<SelectImpressionEmojiProps>;
432
434
 
433
435
  interface FooterForBookingProps {
434
436
  eventHandler: (props?: React.SyntheticEvent) => void;
@@ -457,7 +459,7 @@ declare type MediaPlayerProps = {
457
459
  showControls: boolean;
458
460
  isScreenSharing?: boolean;
459
461
  } & HTMLAttributes<HTMLDivElement>;
460
- declare const _default$9: React.NamedExoticComponent<MediaPlayerProps>;
462
+ declare const _default$f: React.NamedExoticComponent<MediaPlayerProps>;
461
463
 
462
464
  declare type RoundButtonPropsType = {
463
465
  disabled?: boolean;
@@ -480,9 +482,9 @@ declare type ChatListItemProps = {
480
482
  status?: 'sent' | 'viewed';
481
483
  time?: number;
482
484
  timeZone?: string;
483
- lastMessageType?: 'text' | 'file' | 'image' | 'video';
485
+ lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
484
486
  };
485
- declare const _default$8: React.NamedExoticComponent<ChatListItemProps>;
487
+ declare const _default$e: React.NamedExoticComponent<ChatListItemProps>;
486
488
 
487
489
  declare type ChatMessageProps = {
488
490
  message: string | File;
@@ -499,11 +501,11 @@ declare type ChatMessageProps = {
499
501
  height?: number;
500
502
  };
501
503
  };
502
- declare const _default$7: React.NamedExoticComponent<ChatMessageProps>;
504
+ declare const _default$d: React.NamedExoticComponent<ChatMessageProps>;
503
505
 
504
506
  declare const ChatMessageSkeleton: () => JSX.Element;
505
507
 
506
- declare const _default$6: React.MemoExoticComponent<() => JSX.Element>;
508
+ declare const _default$c: React.MemoExoticComponent<() => JSX.Element>;
507
509
 
508
510
  declare type EmptyChatList = {
509
511
  title?: string;
@@ -513,7 +515,7 @@ declare type EmptyChatList = {
513
515
  onClick?: () => void;
514
516
  };
515
517
  declare const EmptyChatList: FC<EmptyChatList>;
516
- declare const _default$5: React.NamedExoticComponent<EmptyChatList>;
518
+ declare const _default$b: React.NamedExoticComponent<EmptyChatList>;
517
519
 
518
520
  declare type EmptyChatMessagesProps = {
519
521
  title?: string;
@@ -537,7 +539,7 @@ declare type TextareaProps = {
537
539
  onError?: (message: string) => void;
538
540
  onFileSelect?: (file: File | null, type: 'file' | 'image' | 'video', fileInfo: FileInfoType) => void;
539
541
  };
540
- declare const _default$4: React.NamedExoticComponent<TextareaProps>;
542
+ declare const _default$a: React.NamedExoticComponent<TextareaProps>;
541
543
 
542
544
  declare type LouseConnectProps = {
543
545
  onClick?: () => void;
@@ -618,7 +620,7 @@ declare type SpecialistEducationCardProps = {
618
620
  yearEnd?: number | null;
619
621
  showLoader?: boolean;
620
622
  };
621
- declare const _default$3: React.NamedExoticComponent<SpecialistEducationCardProps>;
623
+ declare const _default$9: React.NamedExoticComponent<SpecialistEducationCardProps>;
622
624
 
623
625
  declare type SpecialistProfileViewCardProps = {
624
626
  avatarLink?: string | null;
@@ -631,7 +633,7 @@ declare type SpecialistProfileViewCardProps = {
631
633
  videoLinkUrl?: string | null;
632
634
  showLoader?: boolean;
633
635
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
634
- declare const _default$2: React.NamedExoticComponent<SpecialistProfileViewCardProps>;
636
+ declare const _default$8: React.NamedExoticComponent<SpecialistProfileViewCardProps>;
635
637
 
636
638
  declare type SpecialistStatisticsCardProps = {
637
639
  activeClients?: number;
@@ -665,7 +667,7 @@ declare type VideoPlayerProps = {
665
667
  closeModalHandler?: () => void;
666
668
  onErrorContent: React.ReactElement;
667
669
  } & JSX$1.IonModal;
668
- declare const _default$1: React.NamedExoticComponent<VideoPlayerProps>;
670
+ declare const _default$7: React.NamedExoticComponent<VideoPlayerProps>;
669
671
 
670
672
  declare type NotSupportModalProps = {
671
673
  closeModal?: () => void;
@@ -686,6 +688,92 @@ declare type VideoCallInfoProps = {
686
688
  userInfo: UserInfo;
687
689
  consultationDate?: number;
688
690
  };
689
- declare const _default: React.NamedExoticComponent<VideoCallInfoProps>;
691
+ declare const _default$6: React.NamedExoticComponent<VideoCallInfoProps>;
692
+
693
+ declare enum ConsultationCardType {
694
+ FEATURE = "feature",
695
+ PAST = "past",
696
+ LAST = "last"
697
+ }
698
+ declare type ConsultationCardProps = {
699
+ type: ConsultationCardType;
700
+ name: string;
701
+ avatar?: string;
702
+ time: number;
703
+ timeZone?: string;
704
+ onClick?: () => void;
705
+ isLoading?: boolean;
706
+ onAvatarClick?: () => void;
707
+ };
708
+
709
+ declare const _default$5: React.NamedExoticComponent<ConsultationCardProps>;
710
+
711
+ declare type SignUpSessionButtonProps = {
712
+ label: string;
713
+ isLoading?: boolean;
714
+ };
715
+ declare const _default$4: React.NamedExoticComponent<SignUpSessionButtonProps>;
716
+
717
+ declare type EmptyConsultationsProps = {
718
+ title: string;
719
+ description: string;
720
+ buttonLabel?: string;
721
+ onClick?: () => void;
722
+ };
723
+ declare const _default$3: React.NamedExoticComponent<EmptyConsultationsProps>;
724
+
725
+ declare type ConsultationModalProps = {
726
+ isOpen: boolean;
727
+ isSessionFinish?: boolean;
728
+ time: number;
729
+ timeZone?: string;
730
+ name: string;
731
+ avatar?: string;
732
+ onAvatarClick?: () => void;
733
+ onWriteClick?: () => void;
734
+ onSessionStartClick?: () => void;
735
+ onCancel?: () => void;
736
+ onReschedule?: () => void;
737
+ onModalClose?: () => void;
738
+ };
739
+ declare const _default$2: React.NamedExoticComponent<ConsultationModalProps>;
740
+
741
+ declare type SpecialistData = {
742
+ id: string;
743
+ name: string;
744
+ avatar?: string;
745
+ sessions: number;
746
+ };
747
+ declare type SignUpSessionModalProps = {
748
+ isOpen: boolean;
749
+ specialists: SpecialistData[];
750
+ onSpecialistSelected?: (id: string) => void;
751
+ onCancel?: () => void;
752
+ };
753
+ declare const _default$1: React.NamedExoticComponent<SignUpSessionModalProps>;
754
+
755
+ declare type ConsultationSpecialistCardProps = {
756
+ id: string;
757
+ name: string;
758
+ avatar?: string;
759
+ sessions: number;
760
+ onClick?: () => void;
761
+ onSignUp?: (id: string) => void;
762
+ };
763
+ declare const _default: React.NamedExoticComponent<ConsultationSpecialistCardProps>;
764
+
765
+ declare type SpecialistInfoModalProps = {
766
+ isOpen: boolean;
767
+ id: string;
768
+ name: string;
769
+ avatar?: string;
770
+ sessions: number;
771
+ onMessage?: (id: string) => void;
772
+ onBuy?: (id: string) => void;
773
+ onProfile?: (id: string) => void;
774
+ onSignUp?: (id: string) => void;
775
+ onClose: () => void;
776
+ };
777
+ declare const SpecialistInfoModal: FC<SpecialistInfoModalProps>;
690
778
 
691
- export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, _default$8 as ChatListItem, _default$6 as ChatListSkeleton, _default$7 as ChatMessage, ChatMessageSkeleton, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, _default$5 as EmptyChatList, EmptyChatMessages, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$c as LetterAvatar, ListButton, ListSelect, LouseConnect, _default$9 as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, _default$b as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$a as SelectImpressionEmoji, Skeleton, SpecialistAbout, _default$3 as SpecialistEducationCard, _default$2 as SpecialistProfileViewCard, SpecialistStatisticsCard, SpecialistWorkDirections, StatusTag, SwitchDeviceCard, TabBar, Tag, _default$4 as Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, _default as VideoCallInfo, _default$1 as VideoPlayer, YourLocalTimeBlock, toast };
779
+ export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, Button, _default$e as ChatListItem, _default$c as ChatListSkeleton, _default$d as ChatMessage, ChatMessageSkeleton, _default$5 as ConsultationCard, ConsultationCardDeprecated, ConsultationCardDeprecatedProps, ConsultationCardDeprecatedSkeleton, ConsultationCardProps, ConsultationCardType, _default$2 as ConsultationModal, _default as ConsultationSpecialistCard, Container, ContentCard, DatePicker, DateTimeType, DayOfWeeks, DayToRender, _default$b as EmptyChatList, EmptyChatMessages, _default$3 as EmptyConsultations, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImageWithFallback, ImpressionEmojiEnum, Input, _default$i as LetterAvatar, ListButton, ListSelect, LouseConnect, _default$f as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, _default$h as PersonDateTimeCard, Range, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$g as SelectImpressionEmoji, _default$4 as SignUpSessionButton, _default$1 as SignUpSessionModal, Skeleton, SpecialistAbout, _default$9 as SpecialistEducationCard, SpecialistInfoModal, _default$8 as SpecialistProfileViewCard, SpecialistStatisticsCard, SpecialistWorkDirections, StatusTag, SwitchDeviceCard, TabBar, Tag, _default$a as Textarea, TherapistCard, TherapistInformationComponent, Toggle, UpdatesCard, UsersPsychologistScrollList, _default$6 as VideoCallInfo, _default$7 as VideoPlayer, YourLocalTimeBlock, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.20.0",
3
+ "version": "3.21.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ConsultationCardSkeleton: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './ConsultationCard';
2
- export * from './ConsultationCardSkeleton';
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ConsultationCardSkeleton: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './ConsultationCard';
2
- export * from './ConsultationCardSkeleton';