@mindly/ui-components 4.4.0 → 4.5.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 (30) hide show
  1. package/dist/cjs/configs/tailwind/colors.d.ts +6 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/lib2/features/CardModal/CardModal.d.ts +13 -0
  4. package/dist/cjs/lib2/features/CardModal/index.d.ts +1 -0
  5. package/dist/cjs/lib2/features/index.d.ts +1 -0
  6. package/dist/cjs/lib2/shared/assets/icons/iconClose.d.ts +3 -0
  7. package/dist/cjs/lib2/shared/assets/icons/iconLeftArrow.d.ts +3 -0
  8. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +2 -0
  9. package/dist/cjs/lib2/shared/hooks/index.d.ts +1 -0
  10. package/dist/cjs/lib2/shared/hooks/use-event.d.ts +9 -0
  11. package/dist/cjs/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  12. package/dist/cjs/lib2/shared/ui/IconButton/index.d.ts +1 -0
  13. package/dist/cjs/lib2/shared/ui/index.d.ts +1 -0
  14. package/dist/esm/configs/tailwind/colors.d.ts +6 -0
  15. package/dist/esm/index.js +4 -4
  16. package/dist/esm/lib2/features/CardModal/CardModal.d.ts +13 -0
  17. package/dist/esm/lib2/features/CardModal/index.d.ts +1 -0
  18. package/dist/esm/lib2/features/index.d.ts +1 -0
  19. package/dist/esm/lib2/shared/assets/icons/iconClose.d.ts +3 -0
  20. package/dist/esm/lib2/shared/assets/icons/iconLeftArrow.d.ts +3 -0
  21. package/dist/esm/lib2/shared/assets/icons/index.d.ts +2 -0
  22. package/dist/esm/lib2/shared/hooks/index.d.ts +1 -0
  23. package/dist/esm/lib2/shared/hooks/use-event.d.ts +9 -0
  24. package/dist/esm/lib2/shared/ui/IconButton/IconButton.d.ts +8 -0
  25. package/dist/esm/lib2/shared/ui/IconButton/index.d.ts +1 -0
  26. package/dist/esm/lib2/shared/ui/index.d.ts +1 -0
  27. package/dist/index.d.ts +64 -48
  28. package/package.json +1 -1
  29. package/src/configs/tailwind/colors.ts +6 -0
  30. package/src/lib2/shared/css/tailwind.css +4 -0
@@ -0,0 +1,13 @@
1
+ import React, { FC } from 'react';
2
+ type CardModalProps = {
3
+ isOpen: boolean;
4
+ presentingElement?: HTMLElement;
5
+ onDidDismiss?: () => void;
6
+ backButton?: boolean;
7
+ renderHeader?: (props: {
8
+ backButton?: boolean;
9
+ onClose: () => void;
10
+ }) => React.ReactNode;
11
+ };
12
+ declare const CardModal: FC<CardModalProps>;
13
+ export default CardModal;
@@ -0,0 +1 @@
1
+ export { default } from './CardModal';
@@ -1,2 +1,3 @@
1
1
  export * from './CountryOfOriginModal';
2
2
  export * from './ChangeLanguageModal';
3
+ export * from './CardModal';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.NamedExoticComponent<React.SVGAttributes<SVGElement>>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: React.NamedExoticComponent<React.SVGAttributes<SVGElement>>;
3
+ export default _default;
@@ -3,3 +3,5 @@ export * from './iconCheckboxUnchecked';
3
3
  export * from './iconLanguage';
4
4
  export * from './iconStar';
5
5
  export * from './iconStarFilled';
6
+ export * from './iconClose';
7
+ export * from './iconLeftArrow';
@@ -1 +1,2 @@
1
1
  export * from './use-dom-ref';
2
+ export * from './use-event';
@@ -0,0 +1,9 @@
1
+ type AnyFunction = (...args: any[]) => any;
2
+ /**
3
+ * Similar to useCallback, with a few subtle differences:
4
+ * - The returned function is a stable reference, and will always be the same between renders
5
+ * - No dependency lists required
6
+ * - Properties or state accessed within the callback will always be "current"
7
+ */
8
+ export declare function useEvent<TCallback extends AnyFunction>(callback: TCallback): TCallback;
9
+ export default useEvent;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type IconButtonProps = {
3
+ icon: JSX.Element;
4
+ className?: string;
5
+ onClick?: () => void;
6
+ };
7
+ declare const _default: React.NamedExoticComponent<IconButtonProps>;
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as IconButton } from './IconButton';
@@ -12,3 +12,4 @@ export * from './ListBoxItem';
12
12
  export * from './ListBox';
13
13
  export * from './Textarea_v2';
14
14
  export * from './Rating';
15
+ export * from './IconButton';
package/dist/index.d.ts CHANGED
@@ -219,7 +219,7 @@ type LetterAvatarProps = {
219
219
  fontSize?: number;
220
220
  onClick?: () => void;
221
221
  };
222
- declare const _default$K: React__default.NamedExoticComponent<LetterAvatarProps>;
222
+ declare const _default$L: React__default.NamedExoticComponent<LetterAvatarProps>;
223
223
 
224
224
  type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
225
225
  onErrorContent: React__default.ReactElement;
@@ -231,7 +231,7 @@ type PersonDateTimeCardProps = {
231
231
  name: string;
232
232
  dateTime: Date;
233
233
  };
234
- declare const _default$J: React__default.NamedExoticComponent<PersonDateTimeCardProps>;
234
+ declare const _default$K: React__default.NamedExoticComponent<PersonDateTimeCardProps>;
235
235
 
236
236
  type PsychologistProfileType = {
237
237
  id: string;
@@ -397,7 +397,7 @@ type SelectImpressionEmojiProps = {
397
397
  onChange?: (val: ImpressionEmojiEnum) => void;
398
398
  };
399
399
 
400
- declare const _default$I: React__default.NamedExoticComponent<SelectImpressionEmojiProps>;
400
+ declare const _default$J: React__default.NamedExoticComponent<SelectImpressionEmojiProps>;
401
401
 
402
402
  interface FooterForBookingProps {
403
403
  eventHandler: (props?: React__default.SyntheticEvent) => void;
@@ -429,7 +429,7 @@ type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack ext
429
429
  showControls: boolean;
430
430
  isScreenSharing?: boolean;
431
431
  } & HTMLAttributes<HTMLDivElement>;
432
- declare const _default$H: <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;
432
+ declare const _default$I: <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;
433
433
 
434
434
  type RoundButtonPropsType = {
435
435
  disabled?: boolean;
@@ -455,7 +455,7 @@ type ChatListItemProps = {
455
455
  lastMessageType?: 'text' | 'file' | 'image' | 'video' | 'system';
456
456
  locale?: string;
457
457
  };
458
- declare const _default$G: React__default.NamedExoticComponent<ChatListItemProps>;
458
+ declare const _default$H: React__default.NamedExoticComponent<ChatListItemProps>;
459
459
 
460
460
  type ChatMessageProps = {
461
461
  message: string | File;
@@ -473,11 +473,11 @@ type ChatMessageProps = {
473
473
  };
474
474
  locale?: string;
475
475
  };
476
- declare const _default$F: React__default.NamedExoticComponent<ChatMessageProps>;
476
+ declare const _default$G: React__default.NamedExoticComponent<ChatMessageProps>;
477
477
 
478
478
  declare const ChatMessageSkeleton: () => JSX.Element;
479
479
 
480
- declare const _default$E: React__default.MemoExoticComponent<() => JSX.Element>;
480
+ declare const _default$F: React__default.MemoExoticComponent<() => JSX.Element>;
481
481
 
482
482
  type EmptyChatList = {
483
483
  title?: string;
@@ -487,7 +487,7 @@ type EmptyChatList = {
487
487
  onClick?: () => void;
488
488
  };
489
489
  declare const EmptyChatList: FC<EmptyChatList>;
490
- declare const _default$D: React__default.NamedExoticComponent<EmptyChatList>;
490
+ declare const _default$E: React__default.NamedExoticComponent<EmptyChatList>;
491
491
 
492
492
  type EmptyChatMessagesProps = {
493
493
  title?: string;
@@ -511,7 +511,7 @@ type TextareaProps = {
511
511
  onError?: (message: string) => void;
512
512
  onFileSelect?: (file: File | null, type: 'file' | 'image' | 'video', fileInfo: FileInfoType) => void;
513
513
  };
514
- declare const _default$C: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLIonFooterElement>>>;
514
+ declare const _default$D: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLIonFooterElement>>>;
515
515
 
516
516
  type LouseConnectProps = {
517
517
  onClick?: () => void;
@@ -590,7 +590,7 @@ type SpecialistEducationCardProps$1 = {
590
590
  yearEnd?: number | null;
591
591
  showLoader?: boolean;
592
592
  };
593
- declare const _default$B: React__default.NamedExoticComponent<SpecialistEducationCardProps$1>;
593
+ declare const _default$C: React__default.NamedExoticComponent<SpecialistEducationCardProps$1>;
594
594
 
595
595
  type SpecialistProfileViewCardProps$1 = {
596
596
  avatarLink?: string | null;
@@ -603,7 +603,7 @@ type SpecialistProfileViewCardProps$1 = {
603
603
  videoLinkUrl?: string | null;
604
604
  showLoader?: boolean;
605
605
  } & React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
606
- declare const _default$A: React__default.NamedExoticComponent<SpecialistProfileViewCardProps$1>;
606
+ declare const _default$B: React__default.NamedExoticComponent<SpecialistProfileViewCardProps$1>;
607
607
 
608
608
  type SpecialistStatisticsCardProps$1 = {
609
609
  activeClients?: number;
@@ -639,7 +639,7 @@ type VideoPlayerProps = {
639
639
  closeModalHandler?: () => void;
640
640
  onErrorContent: React__default.ReactElement;
641
641
  } & JSX$1.IonModal;
642
- declare const _default$z: React__default.NamedExoticComponent<VideoPlayerProps>;
642
+ declare const _default$A: React__default.NamedExoticComponent<VideoPlayerProps>;
643
643
 
644
644
  type NotSupportModalProps = {
645
645
  closeModal?: () => void;
@@ -675,7 +675,7 @@ type VideoCallInfoProps = {
675
675
  abbreviatedSeconds: string;
676
676
  };
677
677
  };
678
- declare const _default$y: React__default.NamedExoticComponent<VideoCallInfoProps>;
678
+ declare const _default$z: React__default.NamedExoticComponent<VideoCallInfoProps>;
679
679
 
680
680
  declare enum ConsultationCardType {
681
681
  FEATURE = "feature",
@@ -710,14 +710,14 @@ type ConsultationCardProps = {
710
710
  };
711
711
  };
712
712
 
713
- declare const _default$x: React__default.NamedExoticComponent<ConsultationCardProps>;
713
+ declare const _default$y: React__default.NamedExoticComponent<ConsultationCardProps>;
714
714
 
715
715
  type SignUpSessionButtonProps = {
716
716
  label: string;
717
717
  isLoading?: boolean;
718
718
  onClick?: () => void;
719
719
  };
720
- declare const _default$w: React__default.NamedExoticComponent<SignUpSessionButtonProps>;
720
+ declare const _default$x: React__default.NamedExoticComponent<SignUpSessionButtonProps>;
721
721
 
722
722
  type EmptyConsultationsProps = {
723
723
  title: string;
@@ -725,7 +725,7 @@ type EmptyConsultationsProps = {
725
725
  buttonLabel?: string;
726
726
  onClick?: () => void;
727
727
  };
728
- declare const _default$v: React__default.NamedExoticComponent<EmptyConsultationsProps>;
728
+ declare const _default$w: React__default.NamedExoticComponent<EmptyConsultationsProps>;
729
729
 
730
730
  type ConsultationModalProps = {
731
731
  isOpen: boolean;
@@ -760,7 +760,7 @@ type ConsultationModalProps = {
760
760
  started?: string;
761
761
  };
762
762
  };
763
- declare const _default$u: React__default.NamedExoticComponent<ConsultationModalProps>;
763
+ declare const _default$v: React__default.NamedExoticComponent<ConsultationModalProps>;
764
764
 
765
765
  type SpecialistData = {
766
766
  id: string;
@@ -777,7 +777,7 @@ type SignUpSessionModalProps = {
777
777
  title: string;
778
778
  cancelBtnLabel: string;
779
779
  };
780
- declare const _default$t: React__default.NamedExoticComponent<SignUpSessionModalProps>;
780
+ declare const _default$u: React__default.NamedExoticComponent<SignUpSessionModalProps>;
781
781
 
782
782
  type ConsultationSpecialistCardProps = {
783
783
  id: string;
@@ -788,7 +788,7 @@ type ConsultationSpecialistCardProps = {
788
788
  onSignUp?: (id: string) => void;
789
789
  signInBtnLabel: string;
790
790
  };
791
- declare const _default$s: React__default.NamedExoticComponent<ConsultationSpecialistCardProps>;
791
+ declare const _default$t: React__default.NamedExoticComponent<ConsultationSpecialistCardProps>;
792
792
 
793
793
  type UserInfoModalProps = {
794
794
  isOpen: boolean;
@@ -853,7 +853,7 @@ type ReScheduleProps = {
853
853
  btnLabel: string;
854
854
  };
855
855
  };
856
- declare const _default$r: React__default.NamedExoticComponent<ReScheduleProps>;
856
+ declare const _default$s: React__default.NamedExoticComponent<ReScheduleProps>;
857
857
 
858
858
  type ReScheduleSuccessProps = {
859
859
  name: string;
@@ -891,7 +891,7 @@ type DaySliderProps = JSX$1.IonSlides & HTMLAttributes<HTMLIonSlidesElement> & R
891
891
  tomorrow?: string;
892
892
  };
893
893
  };
894
- declare const _default$q: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Omit<DaySliderProps, "ref"> & React__default.RefAttributes<HTMLIonSlidesElement>>>;
894
+ declare const _default$r: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Omit<DaySliderProps, "ref"> & React__default.RefAttributes<HTMLIonSlidesElement>>>;
895
895
 
896
896
  type SpecialistWorkDirectionsPropsType = {
897
897
  workDirections?: string[] | [];
@@ -900,7 +900,7 @@ type SpecialistWorkDirectionsPropsType = {
900
900
  moreLabel?: string;
901
901
  hideLabel?: string;
902
902
  };
903
- declare const _default$p: React__default.NamedExoticComponent<SpecialistWorkDirectionsPropsType>;
903
+ declare const _default$q: React__default.NamedExoticComponent<SpecialistWorkDirectionsPropsType>;
904
904
 
905
905
  type SpecialistProfileViewCardProps = {
906
906
  videoLink?: string;
@@ -910,7 +910,7 @@ type SpecialistProfileViewCardProps = {
910
910
  isLoading?: boolean;
911
911
  videoDurationSeconds?: number;
912
912
  };
913
- declare const _default$o: React__default.NamedExoticComponent<SpecialistProfileViewCardProps>;
913
+ declare const _default$p: React__default.NamedExoticComponent<SpecialistProfileViewCardProps>;
914
914
 
915
915
  type SpecialistAboutProps = {
916
916
  text?: string;
@@ -919,7 +919,7 @@ type SpecialistAboutProps = {
919
919
  moreLabel?: string;
920
920
  hideLabel?: string;
921
921
  };
922
- declare const _default$n: React__default.NamedExoticComponent<SpecialistAboutProps>;
922
+ declare const _default$o: React__default.NamedExoticComponent<SpecialistAboutProps>;
923
923
 
924
924
  type SpecialistEducationCardProps = {
925
925
  institutionName?: string;
@@ -930,7 +930,7 @@ type SpecialistEducationCardProps = {
930
930
  yearEnd?: number | null;
931
931
  showLoader?: boolean;
932
932
  };
933
- declare const _default$m: React__default.NamedExoticComponent<SpecialistEducationCardProps>;
933
+ declare const _default$n: React__default.NamedExoticComponent<SpecialistEducationCardProps>;
934
934
 
935
935
  type SpecialistStatisticsCardProps = {
936
936
  trust?: boolean;
@@ -976,7 +976,7 @@ type BookingScheduleTimeProps = {
976
976
  onClick?: (index: number, item: string) => void;
977
977
  isLoading?: boolean;
978
978
  };
979
- declare const _default$l: React__default.NamedExoticComponent<BookingScheduleTimeProps>;
979
+ declare const _default$m: React__default.NamedExoticComponent<BookingScheduleTimeProps>;
980
980
 
981
981
  type BookingSpecialistInfoProps = {
982
982
  name: string;
@@ -985,7 +985,7 @@ type BookingSpecialistInfoProps = {
985
985
  avatar?: string;
986
986
  isLoading?: boolean;
987
987
  };
988
- declare const _default$k: React__default.NamedExoticComponent<BookingSpecialistInfoProps>;
988
+ declare const _default$l: React__default.NamedExoticComponent<BookingSpecialistInfoProps>;
989
989
 
990
990
  type SpecialistCardProps = {
991
991
  fullName?: string;
@@ -1034,7 +1034,7 @@ type SpecialistCardProps = {
1034
1034
  };
1035
1035
  declare const SpecialistCard: React__default.FC<SpecialistCardProps>;
1036
1036
 
1037
- declare const _default$j: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1037
+ declare const _default$k: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1038
1038
  isError?: boolean | undefined;
1039
1039
  errorStyle?: "filled" | "unfilled" | undefined;
1040
1040
  type?: "number" | "text" | "email" | undefined;
@@ -1058,11 +1058,11 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<{
1058
1058
  error?: string | null | undefined;
1059
1059
  } & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type"> & React__default.RefAttributes<HTMLInputElement>>;
1060
1060
 
1061
- declare const _default$i: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1061
+ declare const _default$j: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1062
1062
  isError?: boolean | undefined;
1063
1063
  } & React__default.TextareaHTMLAttributes<HTMLTextAreaElement> & React__default.RefAttributes<HTMLTextAreaElement>>>;
1064
1064
 
1065
- declare const _default$h: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1065
+ declare const _default$i: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1066
1066
  options: {
1067
1067
  id: string | number;
1068
1068
  label: string | number;
@@ -1094,7 +1094,7 @@ type CustomCheckboxProps = {
1094
1094
  isCheckbox?: boolean;
1095
1095
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
1096
1096
  };
1097
- declare const _default$g: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CustomCheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
1097
+ declare const _default$h: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<CustomCheckboxProps & React__default.RefAttributes<HTMLInputElement>>>;
1098
1098
 
1099
1099
  type CheckboxListItem = {
1100
1100
  id: ReactText;
@@ -1122,7 +1122,7 @@ type CheckboxListProps = {
1122
1122
  from: string;
1123
1123
  };
1124
1124
  };
1125
- declare const _default$f: React__default.NamedExoticComponent<CheckboxListProps>;
1125
+ declare const _default$g: React__default.NamedExoticComponent<CheckboxListProps>;
1126
1126
 
1127
1127
  type BookingHeaderProps = {
1128
1128
  title?: string;
@@ -1136,9 +1136,9 @@ type ProgressBarProps = {
1136
1136
  progress: number;
1137
1137
  loaderTitle?: string;
1138
1138
  };
1139
- declare const _default$e: React__default.NamedExoticComponent<ProgressBarProps>;
1139
+ declare const _default$f: React__default.NamedExoticComponent<ProgressBarProps>;
1140
1140
 
1141
- declare const _default$d: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1141
+ declare const _default$e: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<{
1142
1142
  title: string;
1143
1143
  subTitle?: string | undefined;
1144
1144
  isError?: boolean | undefined;
@@ -1169,7 +1169,7 @@ type FlagProps$1 = {
1169
1169
  dimensions?: number;
1170
1170
  className?: string;
1171
1171
  };
1172
- declare const _default$c: React__default.NamedExoticComponent<FlagProps$1>;
1172
+ declare const _default$d: React__default.NamedExoticComponent<FlagProps$1>;
1173
1173
 
1174
1174
  type SpecialistLangsProps = {
1175
1175
  showLoader?: boolean;
@@ -1209,7 +1209,7 @@ type ProfileInformationProps = {
1209
1209
  reviews: string[];
1210
1210
  };
1211
1211
  } & React__default.HTMLAttributes<HTMLDivElement>;
1212
- declare const _default$b: React__default.NamedExoticComponent<ProfileInformationProps>;
1212
+ declare const _default$c: React__default.NamedExoticComponent<ProfileInformationProps>;
1213
1213
 
1214
1214
  type SpecialistMatchProps = {
1215
1215
  specialistFirstName?: string;
@@ -1221,7 +1221,7 @@ type SpecialistMatchProps = {
1221
1221
  howWeMatchThis: string;
1222
1222
  };
1223
1223
  } & React__default.HTMLAttributes<HTMLDivElement>;
1224
- declare const _default$a: React__default.NamedExoticComponent<SpecialistMatchProps>;
1224
+ declare const _default$b: React__default.NamedExoticComponent<SpecialistMatchProps>;
1225
1225
 
1226
1226
  type SpecialistStatisticProps = {
1227
1227
  learnMoreClick: () => void;
@@ -1241,7 +1241,7 @@ type SpecialistStatisticProps = {
1241
1241
  bookedSession: string;
1242
1242
  };
1243
1243
  } & React__default.HTMLAttributes<HTMLDivElement>;
1244
- declare const _default$9: React__default.NamedExoticComponent<SpecialistStatisticProps>;
1244
+ declare const _default$a: React__default.NamedExoticComponent<SpecialistStatisticProps>;
1245
1245
 
1246
1246
  type RatingWithLabelProps = {
1247
1247
  countOfReviews?: number;
@@ -1421,12 +1421,12 @@ type TypographyProps = {
1421
1421
  className?: string;
1422
1422
  children: React__default.ReactNode;
1423
1423
  };
1424
- declare const _default$8: React__default.NamedExoticComponent<TypographyProps>;
1424
+ declare const _default$9: React__default.NamedExoticComponent<TypographyProps>;
1425
1425
 
1426
1426
  type AppFooterProps = {
1427
1427
  children: React__default.ReactNode;
1428
1428
  };
1429
- declare const _default$7: React__default.NamedExoticComponent<AppFooterProps>;
1429
+ declare const _default$8: React__default.NamedExoticComponent<AppFooterProps>;
1430
1430
 
1431
1431
  type AvatarRoundVariants = 'circle' | 'drop';
1432
1432
 
@@ -1438,14 +1438,14 @@ type AvatarProps = {
1438
1438
  alt?: string;
1439
1439
  showSkeleton?: boolean;
1440
1440
  };
1441
- declare const _default$6: React__default.NamedExoticComponent<AvatarProps>;
1441
+ declare const _default$7: React__default.NamedExoticComponent<AvatarProps>;
1442
1442
 
1443
1443
  type SkeletonProps = {
1444
1444
  animated?: boolean;
1445
1445
  className?: string;
1446
1446
  style?: React__default.CSSProperties;
1447
1447
  };
1448
- declare const _default$5: React__default.NamedExoticComponent<SkeletonProps>;
1448
+ declare const _default$6: React__default.NamedExoticComponent<SkeletonProps>;
1449
1449
 
1450
1450
  type ButtonProps = {
1451
1451
  fill?: 'outline' | 'clear';
@@ -1474,7 +1474,7 @@ type FlagProps = {
1474
1474
  name: string;
1475
1475
  className?: string;
1476
1476
  };
1477
- declare const _default$4: React__default.NamedExoticComponent<FlagProps>;
1477
+ declare const _default$5: React__default.NamedExoticComponent<FlagProps>;
1478
1478
 
1479
1479
  type PictureProps = {
1480
1480
  width: number;
@@ -1489,7 +1489,7 @@ type PictureProps = {
1489
1489
  alt?: string;
1490
1490
  className?: string;
1491
1491
  };
1492
- declare const _default$3: React__default.NamedExoticComponent<PictureProps>;
1492
+ declare const _default$4: React__default.NamedExoticComponent<PictureProps>;
1493
1493
 
1494
1494
  type BadgeType = 'default' | 'accent';
1495
1495
  type BadgeVariants = 'attention' | 'neutral' | 'success' | 'warning' | 'brand' | 'info';
@@ -1499,7 +1499,7 @@ type BadgeProps = React.ComponentPropsWithoutRef<'span'> & {
1499
1499
  type?: BadgeType;
1500
1500
  };
1501
1501
 
1502
- declare const _default$2: React.NamedExoticComponent<BadgeProps>;
1502
+ declare const _default$3: React.NamedExoticComponent<BadgeProps>;
1503
1503
 
1504
1504
  type AppHeaderProps = {
1505
1505
  fullwidth?: boolean;
@@ -1535,7 +1535,7 @@ interface TextareaV2Props extends Omit<JSX$1.IonTextarea, 'color' | 'enterkeyhin
1535
1535
  className?: string;
1536
1536
  }
1537
1537
 
1538
- declare const _default$1: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaV2Props & React__default.RefAttributes<HTMLIonTextareaElement>>>;
1538
+ declare const _default$2: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<TextareaV2Props & React__default.RefAttributes<HTMLIonTextareaElement>>>;
1539
1539
 
1540
1540
  type RatingProps = {
1541
1541
  initialRating?: number;
@@ -1544,7 +1544,14 @@ type RatingProps = {
1544
1544
  onHover?: (value: number) => void;
1545
1545
  };
1546
1546
 
1547
- declare const _default: React__default.NamedExoticComponent<RatingProps>;
1547
+ declare const _default$1: React__default.NamedExoticComponent<RatingProps>;
1548
+
1549
+ type IconButtonProps = {
1550
+ icon: JSX.Element;
1551
+ className?: string;
1552
+ onClick?: () => void;
1553
+ };
1554
+ declare const _default: React__default.NamedExoticComponent<IconButtonProps>;
1548
1555
 
1549
1556
  declare enum appThemes {
1550
1557
  client = "client",
@@ -1558,6 +1565,15 @@ declare const ThemeProvider: FC<ThemeProviderProps>;
1558
1565
 
1559
1566
  declare function useDomRef<T extends HTMLElement = HTMLElement>(ref: React.RefObject<T | null> | React.ForwardedRef<T | null>): React.RefObject<T>;
1560
1567
 
1568
+ type AnyFunction = (...args: any[]) => any;
1569
+ /**
1570
+ * Similar to useCallback, with a few subtle differences:
1571
+ * - The returned function is a stable reference, and will always be the same between renders
1572
+ * - No dependency lists required
1573
+ * - Properties or state accessed within the callback will always be "current"
1574
+ */
1575
+ declare function useEvent<TCallback extends AnyFunction>(callback: TCallback): TCallback;
1576
+
1561
1577
  interface IconProps$2 extends React.SVGAttributes<SVGElement> {
1562
1578
  size?: number | string;
1563
1579
  color?: string;
@@ -1601,4 +1617,4 @@ type ChangeLanguageModalProps = JSX$1.IonModal & {
1601
1617
 
1602
1618
  declare function ChangeLanguageModal({ title, onModalClose, onSelect, selected, languages, ...props }: ChangeLanguageModalProps): JSX.Element;
1603
1619
 
1604
- export { AppFooter, _default$7 as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$6 as Avatar_v2, _default$2 as Badge, _default$l as BookingScheduleTime, _default$k as BookingSpecialistInfo, Button, Button_v2, CancelSession, ChangeLangModal, ChangeLanguageModal, _default$G as ChatListItem, _default$E as ChatListSkeleton, _default$F as ChatMessage, ChatMessageSkeleton, _default$f as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$x as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$u as ConsultationModal, _default$s as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$g as CustomCheckbox, CustomRadioButton, _default$h as CustomSelect, _default$i as CustomTextarea, DatePicker, _default$q as DaySlider, DayToRender, _default$m as EducationCard, _default$D as EmptyChatList, EmptyChatMessages, _default$v as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$c as Flag, FlagTypes, _default$4 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconCheckboxChecked, IconCheckboxUnchecked, IconLanguage, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$K as LetterAvatar, _default$d as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$H as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$J as PersonDateTimeCard, _default$3 as Picture, _default$b as ProfileInformation, _default$o as ProfileView, _default$e as ProgressBar, Range, _default as Rating, _default$r as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$I as SelectImpressionEmoji, _default$w as SignUpSessionButton, _default$t as SignUpSessionModal, Skeleton, _default$5 as Skeleton_v2, _default$n as SpecialistAbout, SpecialistCard, _default$B as SpecialistEducationCard, SpecialistLangs, _default$a as SpecialistMatch, _default$A as SpecialistProfileViewCard, _default$9 as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$j as TextInput, _default$C as Textarea, _default$1 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastProps, Toggle, TooltipComponent, _default$8 as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$y as VideoCallInfo, _default$z as VideoPlayer, _default$p as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, toast, useDomRef };
1620
+ export { AppFooter, _default$8 as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$7 as Avatar_v2, _default$3 as Badge, _default$m as BookingScheduleTime, _default$l as BookingSpecialistInfo, Button, Button_v2, CancelSession, ChangeLangModal, ChangeLanguageModal, _default$H as ChatListItem, _default$F as ChatListSkeleton, _default$G as ChatMessage, ChatMessageSkeleton, _default$g as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$y as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$v as ConsultationModal, _default$t as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$h as CustomCheckbox, CustomRadioButton, _default$i as CustomSelect, _default$j as CustomTextarea, DatePicker, _default$r as DaySlider, DayToRender, _default$n as EducationCard, _default$E as EmptyChatList, EmptyChatMessages, _default$w as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$d as Flag, FlagTypes, _default$5 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, _default as IconButton, IconCheckboxChecked, IconCheckboxUnchecked, IconLanguage, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$L as LetterAvatar, _default$e as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$I as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$K as PersonDateTimeCard, _default$4 as Picture, _default$c as ProfileInformation, _default$p as ProfileView, _default$f as ProgressBar, Range, _default$1 as Rating, _default$s as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$J as SelectImpressionEmoji, _default$x as SignUpSessionButton, _default$u as SignUpSessionModal, Skeleton, _default$6 as Skeleton_v2, _default$o as SpecialistAbout, SpecialistCard, _default$C as SpecialistEducationCard, SpecialistLangs, _default$b as SpecialistMatch, _default$B as SpecialistProfileViewCard, _default$a as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$k as TextInput, _default$D as Textarea, _default$2 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastProps, Toggle, TooltipComponent, _default$9 as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$z as VideoCallInfo, _default$A as VideoPlayer, _default$q as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, toast, useDomRef, useEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -8,6 +8,9 @@ export default {
8
8
  'rgba(var(--color-background-anti-flash-white) / <alpha-value>)',
9
9
  },
10
10
  },
11
+ gray: {
12
+ black: 'rgba(var(--color-gray-black) / <alpha-value>)',
13
+ },
11
14
  },
12
15
  },
13
16
  typography: {
@@ -49,4 +52,7 @@ export default {
49
52
  selected: 'rgb(var(--controls-element-selected) / <alpha-value>)',
50
53
  },
51
54
  },
55
+ buttons: {
56
+ 'btn-primary': 'rgb(var(--buttons-btn-primary) / <alpha-value>)',
57
+ },
52
58
  };
@@ -9,6 +9,8 @@
9
9
  --color-background-white: 255 255 255;
10
10
  --color-background-anti-flash-white: 245 247 250;
11
11
 
12
+ --color-gray-black: 33 33 33;
13
+
12
14
  /* badge variables start */
13
15
  /* badges attentions */
14
16
  --badges-attention-main: 255 153 0;
@@ -36,6 +38,8 @@
36
38
 
37
39
  --controls-element-unselected: 33 33 33;
38
40
  --controls-element-selected: 33 33 33;
41
+
42
+ --buttons-btn-primary: 33 33 33;
39
43
  }
40
44
 
41
45
  :root[data-app-theme="specialist"] {