@mindly/ui-components 4.0.0 → 4.1.1

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 (63) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +3 -0
  2. package/dist/cjs/index.d.ts +1 -0
  3. package/dist/cjs/index.js +4 -4
  4. package/dist/cjs/lib2/shared/ui/AppFooter_v2/AppFooter_v2.d.ts +6 -0
  5. package/dist/cjs/lib2/shared/ui/AppFooter_v2/AppFooter_v2.style.d.ts +2 -0
  6. package/dist/cjs/lib2/shared/ui/AppFooter_v2/index.d.ts +1 -0
  7. package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +12 -0
  8. package/dist/cjs/lib2/shared/ui/Avatar_v2/Avatar_v2.style.d.ts +8 -0
  9. package/dist/cjs/lib2/shared/ui/Avatar_v2/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/ui/Button_v2/Button_v2.d.ts +14 -0
  11. package/dist/cjs/lib2/shared/ui/Button_v2/Button_v2.style.d.ts +7 -0
  12. package/dist/cjs/lib2/shared/ui/Button_v2/index.d.ts +1 -0
  13. package/dist/cjs/lib2/shared/ui/Container_v2/Container_v2.d.ts +14 -0
  14. package/dist/cjs/lib2/shared/ui/Container_v2/Container_v2.styled.d.ts +2 -0
  15. package/dist/cjs/lib2/shared/ui/Container_v2/index.d.ts +1 -0
  16. package/dist/cjs/lib2/shared/ui/Flag_v2/Flag_v2.d.ts +12 -0
  17. package/dist/cjs/lib2/shared/ui/Flag_v2/Flag_v2.style.d.ts +1 -0
  18. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
  19. package/dist/cjs/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
  20. package/dist/cjs/lib2/shared/ui/Flag_v2/index.d.ts +2 -0
  21. package/dist/cjs/lib2/shared/ui/Picture/Picture.d.ts +16 -0
  22. package/dist/cjs/lib2/shared/ui/Picture/Picture.style.d.ts +1 -0
  23. package/dist/cjs/lib2/shared/ui/Picture/index.d.ts +1 -0
  24. package/dist/cjs/lib2/shared/ui/Skeleton_v2/Skeleton_v2.d.ts +8 -0
  25. package/dist/cjs/lib2/shared/ui/Skeleton_v2/Skeleton_v2.style.d.ts +2 -0
  26. package/dist/cjs/lib2/shared/ui/Skeleton_v2/index.d.ts +1 -0
  27. package/dist/cjs/lib2/shared/ui/index.d.ts +7 -0
  28. package/dist/esm/configs/tailwind/colors.d.ts +3 -0
  29. package/dist/esm/index.d.ts +1 -0
  30. package/dist/esm/index.js +4 -4
  31. package/dist/esm/lib2/shared/ui/AppFooter_v2/AppFooter_v2.d.ts +6 -0
  32. package/dist/esm/lib2/shared/ui/AppFooter_v2/AppFooter_v2.style.d.ts +2 -0
  33. package/dist/esm/lib2/shared/ui/AppFooter_v2/index.d.ts +1 -0
  34. package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.d.ts +12 -0
  35. package/dist/esm/lib2/shared/ui/Avatar_v2/Avatar_v2.style.d.ts +8 -0
  36. package/dist/esm/lib2/shared/ui/Avatar_v2/index.d.ts +1 -0
  37. package/dist/esm/lib2/shared/ui/Button_v2/Button_v2.d.ts +14 -0
  38. package/dist/esm/lib2/shared/ui/Button_v2/Button_v2.style.d.ts +7 -0
  39. package/dist/esm/lib2/shared/ui/Button_v2/index.d.ts +1 -0
  40. package/dist/esm/lib2/shared/ui/Container_v2/Container_v2.d.ts +14 -0
  41. package/dist/esm/lib2/shared/ui/Container_v2/Container_v2.styled.d.ts +2 -0
  42. package/dist/esm/lib2/shared/ui/Container_v2/index.d.ts +1 -0
  43. package/dist/esm/lib2/shared/ui/Flag_v2/Flag_v2.d.ts +12 -0
  44. package/dist/esm/lib2/shared/ui/Flag_v2/Flag_v2.style.d.ts +1 -0
  45. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Pl.d.ts +2 -0
  46. package/dist/esm/lib2/shared/ui/Flag_v2/flags/Uk.d.ts +2 -0
  47. package/dist/esm/lib2/shared/ui/Flag_v2/index.d.ts +2 -0
  48. package/dist/esm/lib2/shared/ui/Picture/Picture.d.ts +16 -0
  49. package/dist/esm/lib2/shared/ui/Picture/Picture.style.d.ts +1 -0
  50. package/dist/esm/lib2/shared/ui/Picture/index.d.ts +1 -0
  51. package/dist/esm/lib2/shared/ui/Skeleton_v2/Skeleton_v2.d.ts +8 -0
  52. package/dist/esm/lib2/shared/ui/Skeleton_v2/Skeleton_v2.style.d.ts +2 -0
  53. package/dist/esm/lib2/shared/ui/Skeleton_v2/index.d.ts +1 -0
  54. package/dist/esm/lib2/shared/ui/index.d.ts +7 -0
  55. package/dist/index.d.ts +130 -56
  56. package/package.json +6 -1
  57. package/src/configs/tailwind/colors.ts +10 -0
  58. package/src/configs/tailwind/fonts.ts +30 -0
  59. package/src/configs/tailwind/opacity.ts +8 -0
  60. package/src/lib2/shared/css/fonts.ts +5 -0
  61. package/src/lib2/shared/css/ionic.css +70 -0
  62. package/src/lib2/shared/css/tailwind.css +23 -0
  63. package/src/lib2/shared/css/variables.css +7 -0
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import React, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent } from 'react';
2
2
  import { JSX as JSX$1 } from '@ionic/core/components';
3
3
  import { RatingComponentProps } from 'react-rating';
4
- import { RefresherEventDetail } from '@ionic/react';
4
+ import { RefresherEventDetail, ScrollDetail, ScrollBaseDetail } from '@ionic/react';
5
+ import { IonContentCustomEvent } from '@ionic/core/dist/types/components';
5
6
 
6
- interface ButtonProps$1 {
7
+ interface ButtonProps$2 {
7
8
  buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
8
9
  isDisabled: boolean;
9
10
  children: React.ReactNode;
@@ -13,7 +14,7 @@ interface ButtonProps$1 {
13
14
  /**
14
15
  * @deprecated
15
16
  */
16
- declare const Button: React.FC<ButtonProps$1>;
17
+ declare const Button: React.FC<ButtonProps$2>;
17
18
 
18
19
  interface FloatingButtonType {
19
20
  bottomHeight: number;
@@ -213,7 +214,7 @@ type LetterAvatarProps = {
213
214
  fontSize?: number;
214
215
  onClick?: () => void;
215
216
  };
216
- declare const _default$C: React.NamedExoticComponent<LetterAvatarProps>;
217
+ declare const _default$H: React.NamedExoticComponent<LetterAvatarProps>;
217
218
 
218
219
  type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
219
220
  onErrorContent: React.ReactElement;
@@ -225,7 +226,7 @@ type PersonDateTimeCardProps = {
225
226
  name: string;
226
227
  dateTime: Date;
227
228
  };
228
- declare const _default$B: React.NamedExoticComponent<PersonDateTimeCardProps>;
229
+ declare const _default$G: React.NamedExoticComponent<PersonDateTimeCardProps>;
229
230
 
230
231
  type PsychologistProfileType = {
231
232
  id: string;
@@ -327,7 +328,7 @@ type EntryNotFoundProps = {
327
328
  };
328
329
  declare const EntryNotFound: FC<EntryNotFoundProps>;
329
330
 
330
- type AvatarProps = {
331
+ type AvatarProps$1 = {
331
332
  dimensions?: number;
332
333
  width?: number;
333
334
  height?: number;
@@ -346,7 +347,7 @@ type AvatarProps = {
346
347
  withBorder?: boolean;
347
348
  onClick?: () => void;
348
349
  };
349
- declare const Avatar: FC<AvatarProps>;
350
+ declare const Avatar: FC<AvatarProps$1>;
350
351
 
351
352
  type AppHeaderProps = {
352
353
  fullwidth?: boolean;
@@ -354,11 +355,11 @@ type AppHeaderProps = {
354
355
  };
355
356
  declare const AppHeader: FC<AppHeaderProps>;
356
357
 
357
- type ContainerProps = {
358
+ type ContainerProps$1 = {
358
359
  style?: CSSProperties;
359
360
  className?: string;
360
361
  };
361
- declare const Container: FC<ContainerProps>;
362
+ declare const Container: FC<ContainerProps$1>;
362
363
 
363
364
  type SegmentType = {
364
365
  id: string;
@@ -391,7 +392,7 @@ type SelectImpressionEmojiProps = {
391
392
  onChange?: (val: ImpressionEmojiEnum) => void;
392
393
  };
393
394
 
394
- declare const _default$A: React.NamedExoticComponent<SelectImpressionEmojiProps>;
395
+ declare const _default$F: React.NamedExoticComponent<SelectImpressionEmojiProps>;
395
396
 
396
397
  interface FooterForBookingProps {
397
398
  eventHandler: (props?: React.SyntheticEvent) => void;
@@ -423,7 +424,7 @@ type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack ext
423
424
  showControls: boolean;
424
425
  isScreenSharing?: boolean;
425
426
  } & HTMLAttributes<HTMLDivElement>;
426
- declare const _default$z: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
427
+ declare const _default$E: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
427
428
 
428
429
  type RoundButtonPropsType = {
429
430
  disabled?: boolean;
@@ -449,7 +450,7 @@ type ChatListItemProps = {
449
450
  lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
450
451
  locale?: string;
451
452
  };
452
- declare const _default$y: React.NamedExoticComponent<ChatListItemProps>;
453
+ declare const _default$D: React.NamedExoticComponent<ChatListItemProps>;
453
454
 
454
455
  type ChatMessageProps = {
455
456
  message: string | File;
@@ -467,11 +468,11 @@ type ChatMessageProps = {
467
468
  };
468
469
  locale?: string;
469
470
  };
470
- declare const _default$x: React.NamedExoticComponent<ChatMessageProps>;
471
+ declare const _default$C: React.NamedExoticComponent<ChatMessageProps>;
471
472
 
472
473
  declare const ChatMessageSkeleton: () => JSX.Element;
473
474
 
474
- declare const _default$w: React.MemoExoticComponent<() => JSX.Element>;
475
+ declare const _default$B: React.MemoExoticComponent<() => JSX.Element>;
475
476
 
476
477
  type EmptyChatList = {
477
478
  title?: string;
@@ -481,7 +482,7 @@ type EmptyChatList = {
481
482
  onClick?: () => void;
482
483
  };
483
484
  declare const EmptyChatList: FC<EmptyChatList>;
484
- declare const _default$v: React.NamedExoticComponent<EmptyChatList>;
485
+ declare const _default$A: React.NamedExoticComponent<EmptyChatList>;
485
486
 
486
487
  type EmptyChatMessagesProps = {
487
488
  title?: string;
@@ -505,7 +506,7 @@ type TextareaProps = {
505
506
  onError?: (message: string) => void;
506
507
  onFileSelect?: (file: File | null, type: 'file' | 'image' | 'video', fileInfo: FileInfoType) => void;
507
508
  };
508
- declare const _default$u: React.MemoExoticComponent<React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLIonFooterElement>>>;
509
+ declare const _default$z: React.MemoExoticComponent<React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLIonFooterElement>>>;
509
510
 
510
511
  type LouseConnectProps = {
511
512
  onClick?: () => void;
@@ -516,9 +517,9 @@ type UpdatesPopupPropsType = {
516
517
  text?: string;
517
518
  closeHandler?: () => void;
518
519
  buttonHandler?: () => void;
519
- buttonType?: Extract<ButtonProps$1, 'buttonType'>;
520
+ buttonType?: Extract<ButtonProps$2, 'buttonType'>;
520
521
  buttonText?: string;
521
- disabledButton?: Extract<ButtonProps$1, 'isDisabled'>;
522
+ disabledButton?: Extract<ButtonProps$2, 'isDisabled'>;
522
523
  };
523
524
  declare const UpdatesCard: React.FC<UpdatesPopupPropsType>;
524
525
 
@@ -568,12 +569,12 @@ type SectionHeadingProps = {
568
569
  };
569
570
  declare const SectionHeading: React.FC<SectionHeadingProps>;
570
571
 
571
- type SkeletonProps = {
572
+ type SkeletonProps$1 = {
572
573
  widthPx?: number;
573
574
  heightPx?: number;
574
575
  style?: React.CSSProperties;
575
576
  } & Omit<JSX$1.IonSkeletonText, 'animated'>;
576
- declare const Skeleton: React.FC<SkeletonProps>;
577
+ declare const Skeleton: React.FC<SkeletonProps$1>;
577
578
 
578
579
  type SpecialistEducationCardProps$1 = {
579
580
  institutionName?: string;
@@ -584,7 +585,7 @@ type SpecialistEducationCardProps$1 = {
584
585
  yearEnd?: number | null;
585
586
  showLoader?: boolean;
586
587
  };
587
- declare const _default$t: React.NamedExoticComponent<SpecialistEducationCardProps$1>;
588
+ declare const _default$y: React.NamedExoticComponent<SpecialistEducationCardProps$1>;
588
589
 
589
590
  type SpecialistProfileViewCardProps$1 = {
590
591
  avatarLink?: string | null;
@@ -597,7 +598,7 @@ type SpecialistProfileViewCardProps$1 = {
597
598
  videoLinkUrl?: string | null;
598
599
  showLoader?: boolean;
599
600
  } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
600
- declare const _default$s: React.NamedExoticComponent<SpecialistProfileViewCardProps$1>;
601
+ declare const _default$x: React.NamedExoticComponent<SpecialistProfileViewCardProps$1>;
601
602
 
602
603
  type SpecialistStatisticsCardProps$1 = {
603
604
  activeClients?: number;
@@ -621,19 +622,19 @@ declare const SpecialistWorkDirections: React.FC<SpecialistWorkDirectionsPropsTy
621
622
 
622
623
  declare const Tag: React.FC;
623
624
 
624
- type AppFooterProps = {
625
+ type AppFooterProps$1 = {
625
626
  fullwidth?: boolean;
626
627
  style?: CSSProperties;
627
628
  className?: string;
628
629
  };
629
- declare const AppFooter: FC<AppFooterProps>;
630
+ declare const AppFooter: FC<AppFooterProps$1>;
630
631
 
631
632
  type VideoPlayerProps = {
632
633
  videoLink: string;
633
634
  closeModalHandler?: () => void;
634
635
  onErrorContent: React.ReactElement;
635
636
  } & JSX$1.IonModal;
636
- declare const _default$r: React.NamedExoticComponent<VideoPlayerProps>;
637
+ declare const _default$w: React.NamedExoticComponent<VideoPlayerProps>;
637
638
 
638
639
  type NotSupportModalProps = {
639
640
  closeModal?: () => void;
@@ -669,7 +670,7 @@ type VideoCallInfoProps = {
669
670
  abbreviatedSeconds: string;
670
671
  };
671
672
  };
672
- declare const _default$q: React.NamedExoticComponent<VideoCallInfoProps>;
673
+ declare const _default$v: React.NamedExoticComponent<VideoCallInfoProps>;
673
674
 
674
675
  declare enum ConsultationCardType {
675
676
  FEATURE = "feature",
@@ -704,14 +705,14 @@ type ConsultationCardProps = {
704
705
  };
705
706
  };
706
707
 
707
- declare const _default$p: React.NamedExoticComponent<ConsultationCardProps>;
708
+ declare const _default$u: React.NamedExoticComponent<ConsultationCardProps>;
708
709
 
709
710
  type SignUpSessionButtonProps = {
710
711
  label: string;
711
712
  isLoading?: boolean;
712
713
  onClick?: () => void;
713
714
  };
714
- declare const _default$o: React.NamedExoticComponent<SignUpSessionButtonProps>;
715
+ declare const _default$t: React.NamedExoticComponent<SignUpSessionButtonProps>;
715
716
 
716
717
  type EmptyConsultationsProps = {
717
718
  title: string;
@@ -719,7 +720,7 @@ type EmptyConsultationsProps = {
719
720
  buttonLabel?: string;
720
721
  onClick?: () => void;
721
722
  };
722
- declare const _default$n: React.NamedExoticComponent<EmptyConsultationsProps>;
723
+ declare const _default$s: React.NamedExoticComponent<EmptyConsultationsProps>;
723
724
 
724
725
  type ConsultationModalProps = {
725
726
  isOpen: boolean;
@@ -754,7 +755,7 @@ type ConsultationModalProps = {
754
755
  started?: string;
755
756
  };
756
757
  };
757
- declare const _default$m: React.NamedExoticComponent<ConsultationModalProps>;
758
+ declare const _default$r: React.NamedExoticComponent<ConsultationModalProps>;
758
759
 
759
760
  type SpecialistData = {
760
761
  id: string;
@@ -771,7 +772,7 @@ type SignUpSessionModalProps = {
771
772
  title: string;
772
773
  cancelBtnLabel: string;
773
774
  };
774
- declare const _default$l: React.NamedExoticComponent<SignUpSessionModalProps>;
775
+ declare const _default$q: React.NamedExoticComponent<SignUpSessionModalProps>;
775
776
 
776
777
  type ConsultationSpecialistCardProps = {
777
778
  id: string;
@@ -782,7 +783,7 @@ type ConsultationSpecialistCardProps = {
782
783
  onSignUp?: (id: string) => void;
783
784
  signInBtnLabel: string;
784
785
  };
785
- declare const _default$k: React.NamedExoticComponent<ConsultationSpecialistCardProps>;
786
+ declare const _default$p: React.NamedExoticComponent<ConsultationSpecialistCardProps>;
786
787
 
787
788
  type UserInfoModalProps = {
788
789
  isOpen: boolean;
@@ -847,7 +848,7 @@ type ReScheduleProps = {
847
848
  btnLabel: string;
848
849
  };
849
850
  };
850
- declare const _default$j: React.NamedExoticComponent<ReScheduleProps>;
851
+ declare const _default$o: React.NamedExoticComponent<ReScheduleProps>;
851
852
 
852
853
  type ReScheduleSuccessProps = {
853
854
  name: string;
@@ -885,7 +886,7 @@ type DaySliderProps = JSX$1.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & R
885
886
  tomorrow?: string;
886
887
  };
887
888
  };
888
- declare const _default$i: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<DaySliderProps, "ref"> & React.RefAttributes<HTMLIonSlidesElement>>>;
889
+ declare const _default$n: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<DaySliderProps, "ref"> & React.RefAttributes<HTMLIonSlidesElement>>>;
889
890
 
890
891
  type SpecialistWorkDirectionsPropsType = {
891
892
  workDirections?: string[] | [];
@@ -894,7 +895,7 @@ type SpecialistWorkDirectionsPropsType = {
894
895
  moreLabel?: string;
895
896
  hideLabel?: string;
896
897
  };
897
- declare const _default$h: React.NamedExoticComponent<SpecialistWorkDirectionsPropsType>;
898
+ declare const _default$m: React.NamedExoticComponent<SpecialistWorkDirectionsPropsType>;
898
899
 
899
900
  type SpecialistProfileViewCardProps = {
900
901
  videoLink?: string;
@@ -904,7 +905,7 @@ type SpecialistProfileViewCardProps = {
904
905
  isLoading?: boolean;
905
906
  videoDurationSeconds?: number;
906
907
  };
907
- declare const _default$g: React.NamedExoticComponent<SpecialistProfileViewCardProps>;
908
+ declare const _default$l: React.NamedExoticComponent<SpecialistProfileViewCardProps>;
908
909
 
909
910
  type SpecialistAboutProps = {
910
911
  text?: string;
@@ -913,7 +914,7 @@ type SpecialistAboutProps = {
913
914
  moreLabel?: string;
914
915
  hideLabel?: string;
915
916
  };
916
- declare const _default$f: React.NamedExoticComponent<SpecialistAboutProps>;
917
+ declare const _default$k: React.NamedExoticComponent<SpecialistAboutProps>;
917
918
 
918
919
  type SpecialistEducationCardProps = {
919
920
  institutionName?: string;
@@ -924,7 +925,7 @@ type SpecialistEducationCardProps = {
924
925
  yearEnd?: number | null;
925
926
  showLoader?: boolean;
926
927
  };
927
- declare const _default$e: React.NamedExoticComponent<SpecialistEducationCardProps>;
928
+ declare const _default$j: React.NamedExoticComponent<SpecialistEducationCardProps>;
928
929
 
929
930
  type SpecialistStatisticsCardProps = {
930
931
  trust?: boolean;
@@ -970,7 +971,7 @@ type BookingScheduleTimeProps = {
970
971
  onClick?: (index: number, item: string) => void;
971
972
  isLoading?: boolean;
972
973
  };
973
- declare const _default$d: React.NamedExoticComponent<BookingScheduleTimeProps>;
974
+ declare const _default$i: React.NamedExoticComponent<BookingScheduleTimeProps>;
974
975
 
975
976
  type BookingSpecialistInfoProps = {
976
977
  name: string;
@@ -979,7 +980,7 @@ type BookingSpecialistInfoProps = {
979
980
  avatar?: string;
980
981
  isLoading?: boolean;
981
982
  };
982
- declare const _default$c: React.NamedExoticComponent<BookingSpecialistInfoProps>;
983
+ declare const _default$h: React.NamedExoticComponent<BookingSpecialistInfoProps>;
983
984
 
984
985
  type SpecialistCardProps = {
985
986
  fullName?: string;
@@ -1028,7 +1029,7 @@ type SpecialistCardProps = {
1028
1029
  };
1029
1030
  declare const SpecialistCard: React.FC<SpecialistCardProps>;
1030
1031
 
1031
- declare const _default$b: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1032
+ declare const _default$g: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1032
1033
  isError?: boolean | undefined;
1033
1034
  errorStyle?: "filled" | "unfilled" | undefined;
1034
1035
  type?: "number" | "text" | "email" | undefined;
@@ -1052,11 +1053,11 @@ declare const PasswordInput: React.ForwardRefExoticComponent<{
1052
1053
  error?: string | null | undefined;
1053
1054
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
1054
1055
 
1055
- declare const _default$a: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1056
+ declare const _default$f: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1056
1057
  isError?: boolean | undefined;
1057
1058
  } & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>>;
1058
1059
 
1059
- declare const _default$9: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1060
+ declare const _default$e: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1060
1061
  options: {
1061
1062
  id: string | number;
1062
1063
  label: string | number;
@@ -1066,11 +1067,11 @@ declare const _default$9: React.MemoExoticComponent<React.ForwardRefExoticCompon
1066
1067
  } & React.SelectHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>>>;
1067
1068
 
1068
1069
  type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green' | 'accent-light-grey' | 'transparent' | 'border' | 'border-white' | 'white' | 'outline';
1069
- type ButtonProps = {
1070
+ type ButtonProps$1 = {
1070
1071
  buttonType?: PossibleButtonTypes;
1071
1072
  loading?: boolean;
1072
1073
  } & React.ButtonHTMLAttributes<HTMLButtonElement>;
1073
- declare const CustomButton: React.FC<ButtonProps>;
1074
+ declare const CustomButton: React.FC<ButtonProps$1>;
1074
1075
 
1075
1076
  declare enum CheckboxTypes {
1076
1077
  WITH_ICON = "with-icon",
@@ -1088,7 +1089,7 @@ type CustomCheckboxProps = {
1088
1089
  isCheckbox?: boolean;
1089
1090
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
1090
1091
  };
1091
- declare const _default$8: React.MemoExoticComponent<React.ForwardRefExoticComponent<CustomCheckboxProps & React.RefAttributes<HTMLInputElement>>>;
1092
+ declare const _default$d: React.MemoExoticComponent<React.ForwardRefExoticComponent<CustomCheckboxProps & React.RefAttributes<HTMLInputElement>>>;
1092
1093
 
1093
1094
  type CheckboxListItem = {
1094
1095
  id: ReactText;
@@ -1116,7 +1117,7 @@ type CheckboxListProps = {
1116
1117
  from: string;
1117
1118
  };
1118
1119
  };
1119
- declare const _default$7: React.NamedExoticComponent<CheckboxListProps>;
1120
+ declare const _default$c: React.NamedExoticComponent<CheckboxListProps>;
1120
1121
 
1121
1122
  type BookingHeaderProps = {
1122
1123
  title?: string;
@@ -1130,9 +1131,9 @@ type ProgressBarProps = {
1130
1131
  progress: number;
1131
1132
  loaderTitle?: string;
1132
1133
  };
1133
- declare const _default$6: React.NamedExoticComponent<ProgressBarProps>;
1134
+ declare const _default$b: React.NamedExoticComponent<ProgressBarProps>;
1134
1135
 
1135
- declare const _default$5: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1136
+ declare const _default$a: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
1136
1137
  title: string;
1137
1138
  subTitle?: string | undefined;
1138
1139
  isError?: boolean | undefined;
@@ -1158,12 +1159,12 @@ declare const FlagTypes: {
1158
1159
  en: JSX.Element;
1159
1160
  ru: JSX.Element;
1160
1161
  };
1161
- type FlagProps = {
1162
+ type FlagProps$1 = {
1162
1163
  name: keyof typeof FlagTypes;
1163
1164
  dimensions?: number;
1164
1165
  className?: string;
1165
1166
  };
1166
- declare const _default$4: React.NamedExoticComponent<FlagProps>;
1167
+ declare const _default$9: React.NamedExoticComponent<FlagProps$1>;
1167
1168
 
1168
1169
  type SpecialistLangsProps = {
1169
1170
  showLoader?: boolean;
@@ -1203,7 +1204,7 @@ type ProfileInformationProps = {
1203
1204
  reviews: string[];
1204
1205
  };
1205
1206
  } & React.HTMLAttributes<HTMLDivElement>;
1206
- declare const _default$3: React.NamedExoticComponent<ProfileInformationProps>;
1207
+ declare const _default$8: React.NamedExoticComponent<ProfileInformationProps>;
1207
1208
 
1208
1209
  type SpecialistMatchProps = {
1209
1210
  specialistFirstName?: string;
@@ -1215,7 +1216,7 @@ type SpecialistMatchProps = {
1215
1216
  howWeMatchThis: string;
1216
1217
  };
1217
1218
  } & React.HTMLAttributes<HTMLDivElement>;
1218
- declare const _default$2: React.NamedExoticComponent<SpecialistMatchProps>;
1219
+ declare const _default$7: React.NamedExoticComponent<SpecialistMatchProps>;
1219
1220
 
1220
1221
  type SpecialistStatisticProps = {
1221
1222
  learnMoreClick: () => void;
@@ -1235,7 +1236,7 @@ type SpecialistStatisticProps = {
1235
1236
  bookedSession: string;
1236
1237
  };
1237
1238
  } & React.HTMLAttributes<HTMLDivElement>;
1238
- declare const _default$1: React.NamedExoticComponent<SpecialistStatisticProps>;
1239
+ declare const _default$6: React.NamedExoticComponent<SpecialistStatisticProps>;
1239
1240
 
1240
1241
  type RatingWithLabelProps = {
1241
1242
  countOfReviews?: number;
@@ -1415,7 +1416,80 @@ type TypographyProps = {
1415
1416
  className?: string;
1416
1417
  children: React.ReactNode;
1417
1418
  };
1418
- declare const _default: React.NamedExoticComponent<TypographyProps>;
1419
+ declare const _default$5: React.NamedExoticComponent<TypographyProps>;
1420
+
1421
+ type AppFooterProps = {
1422
+ children: React.ReactNode;
1423
+ };
1424
+ declare const _default$4: React.NamedExoticComponent<AppFooterProps>;
1425
+
1426
+ type AvatarRoundVariants = 'circle' | 'drop';
1427
+
1428
+ type AvatarProps = {
1429
+ variant?: 'small' | 'medium';
1430
+ round?: AvatarRoundVariants;
1431
+ className?: string;
1432
+ src?: string;
1433
+ alt?: string;
1434
+ showSkeleton?: boolean;
1435
+ };
1436
+ declare const _default$3: React.NamedExoticComponent<AvatarProps>;
1437
+
1438
+ type SkeletonProps = {
1439
+ animated?: boolean;
1440
+ className?: string;
1441
+ style?: React.CSSProperties;
1442
+ };
1443
+ declare const _default$2: React.NamedExoticComponent<SkeletonProps>;
1444
+
1445
+ type ButtonProps = {
1446
+ fill?: 'outline' | 'clear';
1447
+ size?: 'default' | 'large' | 'small';
1448
+ color?: undefined;
1449
+ fullWidth?: boolean;
1450
+ className?: string;
1451
+ routerLink?: string;
1452
+ onClick?: (e: React.MouseEvent<HTMLIonButtonElement>) => void;
1453
+ isLoading?: boolean;
1454
+ } & JSX$1.IonButton;
1455
+ declare const Button_v2: FC<ButtonProps>;
1456
+
1457
+ type ContainerProps = {
1458
+ className?: string;
1459
+ scrollEvents?: boolean;
1460
+ onIonScroll?: (e: IonContentCustomEvent<ScrollDetail>) => void | undefined;
1461
+ onIonScrollStart?: (e: IonContentCustomEvent<ScrollBaseDetail>) => void | undefined;
1462
+ children: React.ReactNode;
1463
+ style?: CSSProperties;
1464
+ as?: React.ElementType;
1465
+ };
1466
+ declare const Container_v2: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLIonContentElement>>;
1467
+
1468
+ declare const flagsComponents: {
1469
+ uk: React.LazyExoticComponent<() => JSX.Element>;
1470
+ pl: React.LazyExoticComponent<() => JSX.Element>;
1471
+ };
1472
+ type AvailableFlags = keyof typeof flagsComponents;
1473
+ type FlagProps = {
1474
+ name: AvailableFlags;
1475
+ className?: string;
1476
+ };
1477
+ declare const _default$1: React.NamedExoticComponent<FlagProps>;
1478
+
1479
+ type PictureProps = {
1480
+ width: number;
1481
+ height: number;
1482
+ src: {
1483
+ webp?: string;
1484
+ webp2x?: string;
1485
+ src: string;
1486
+ src2x?: string;
1487
+ };
1488
+ srcType: string;
1489
+ alt?: string;
1490
+ className?: string;
1491
+ };
1492
+ declare const _default: React.NamedExoticComponent<PictureProps>;
1419
1493
 
1420
1494
  declare enum appThemes {
1421
1495
  client = "client",
@@ -1427,4 +1501,4 @@ type ThemeProviderProps = {
1427
1501
 
1428
1502
  declare const ThemeProvider: FC<ThemeProviderProps>;
1429
1503
 
1430
- export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, _default$d as BookingScheduleTime, _default$c as BookingSpecialistInfo, Button, CancelSession, ChangeLangModal, _default$y as ChatListItem, _default$w as ChatListSkeleton, _default$x as ChatMessage, ChatMessageSkeleton, _default$7 as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$p as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$m as ConsultationModal, _default$k as ConsultationSpecialistCard, Container, ContentCard, CustomButton, _default$8 as CustomCheckbox, CustomRadioButton, _default$9 as CustomSelect, _default$a as CustomTextarea, DatePicker, _default$i as DaySlider, DayToRender, _default$e as EducationCard, _default$v as EmptyChatList, EmptyChatMessages, _default$n as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$4 as Flag, FlagTypes, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$C as LetterAvatar, _default$5 as LineFileInput, ListButton, ListItemType, ListSelect, ListSelectProps, LouseConnect, _default$z as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$B as PersonDateTimeCard, _default$3 as ProfileInformation, _default$g as ProfileView, _default$6 as ProgressBar, Range, _default$j as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$A as SelectImpressionEmoji, _default$o as SignUpSessionButton, _default$l as SignUpSessionModal, Skeleton, _default$f as SpecialistAbout, SpecialistCard, _default$t as SpecialistEducationCard, SpecialistLangs, _default$2 as SpecialistMatch, _default$s as SpecialistProfileViewCard, _default$1 as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$b as TextInput, _default$u as Textarea, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastProps, Toggle, TooltipComponent, _default as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$q as VideoCallInfo, _default$r as VideoPlayer, _default$h as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, toast };
1504
+ export { AppFooter, _default$4 as AppFooter_v2, AppHeader, ArchivedConsultationCard, AvailableFlags, Avatar, AvatarProps$1 as AvatarProps, _default$3 as Avatar_v2, _default$i as BookingScheduleTime, _default$h as BookingSpecialistInfo, Button, Button_v2, CancelSession, ChangeLangModal, _default$D as ChatListItem, _default$B as ChatListSkeleton, _default$C as ChatMessage, ChatMessageSkeleton, _default$c as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$u as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$r as ConsultationModal, _default$p as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CustomButton, _default$d as CustomCheckbox, CustomRadioButton, _default$e as CustomSelect, _default$f as CustomTextarea, DatePicker, _default$n as DaySlider, DayToRender, _default$j as EducationCard, _default$A as EmptyChatList, EmptyChatMessages, _default$s as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$9 as Flag, FlagTypes, _default$1 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$H as LetterAvatar, _default$a as LineFileInput, ListButton, ListItemType, ListSelect, ListSelectProps, LouseConnect, _default$E as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$G as PersonDateTimeCard, _default as Picture, _default$8 as ProfileInformation, _default$l as ProfileView, _default$b as ProgressBar, Range, _default$o as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$F as SelectImpressionEmoji, _default$t as SignUpSessionButton, _default$q as SignUpSessionModal, Skeleton, _default$2 as Skeleton_v2, _default$k as SpecialistAbout, SpecialistCard, _default$y as SpecialistEducationCard, SpecialistLangs, _default$7 as SpecialistMatch, _default$x as SpecialistProfileViewCard, _default$6 as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$g as TextInput, _default$z as Textarea, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastProps, Toggle, TooltipComponent, _default$5 as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$v as VideoCallInfo, _default$w as VideoPlayer, _default$m as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -28,12 +28,15 @@
28
28
  "react-countdown": "^2.3.2",
29
29
  "react-day-picker": "^8.0.5",
30
30
  "react-dom": "^17.0.2",
31
+ "react-intersection-observer": "^9.5.2",
31
32
  "react-rating": "^2.0.5",
32
33
  "styled-components": "^5.3.1",
33
34
  "swiper": "^8.4.7"
34
35
  },
35
36
  "peerDependencies": {
36
37
  "@babel/polyfill": "^7.12.1",
38
+ "@fontsource/inter": "^5.0.8",
39
+ "@fontsource/inter-tight": "^5.0.12",
37
40
  "@ionic/react": "^6.1.11",
38
41
  "@ionic/react-router": "^6.1.11",
39
42
  "luxon": "^2.4.0",
@@ -132,6 +135,8 @@
132
135
  "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
133
136
  "files": [
134
137
  "dist",
138
+ "src/configs",
139
+ "src/lib2/shared/css",
135
140
  "README.md"
136
141
  ],
137
142
  "repository": {
@@ -0,0 +1,10 @@
1
+ export default {
2
+ typography: {
3
+ typography: {
4
+ primary: 'rgb(var(--typography-typography-primary) / <alpha-value>)',
5
+ },
6
+ },
7
+ borders: {
8
+ divider: 'rgb(var(--borders-divider) / 0.1)',
9
+ },
10
+ };
@@ -0,0 +1,30 @@
1
+ export const fontSize = {
2
+ '3.5xl': [
3
+ '2rem',
4
+ {
5
+ lineHeight: '130%',
6
+ },
7
+ ],
8
+ '2.5xl': [
9
+ '1.75rem',
10
+ {
11
+ lineHeight: '130%',
12
+ },
13
+ ],
14
+ sl: [
15
+ '0.9375rem',
16
+ {
17
+ lineHeight: '140%',
18
+ },
19
+ ],
20
+ xm: [
21
+ '0.8125rem',
22
+ {
23
+ lineHeight: '120%',
24
+ },
25
+ ],
26
+ };
27
+ export default {
28
+ sans: ['Inter', 'ui-sans-serif', 'system-ui', 'sans-serif'],
29
+ title: ['"Inter Tight"', 'ui-sans-serif', 'system-ui', 'sans-serif'],
30
+ };
@@ -0,0 +1,8 @@
1
+ export default {
2
+ '65': '.65',
3
+ '45': '.45',
4
+ '35': '.35',
5
+ '15': '.15',
6
+ '8': '.08',
7
+ '6': '.06',
8
+ };
@@ -0,0 +1,5 @@
1
+ import '@fontsource/inter-tight/600.css';
2
+ import '@fontsource/inter-tight/700.css';
3
+ import '@fontsource/inter/400.css';
4
+ import '@fontsource/inter/500.css';
5
+ import '@fontsource/inter/600.css';