@mindly/ui-components 0.1.33 → 0.1.34

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 (32) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +1 -1
  4. package/dist/cjs/types/lib/button/Button.d.ts +2 -2
  5. package/dist/cjs/types/lib/consultation-card/ConsultationCard.d.ts +4 -4
  6. package/dist/cjs/types/lib/content-card/ContentCard.d.ts +1 -1
  7. package/dist/cjs/types/lib/date-picker/DatePicker.d.ts +2 -2
  8. package/dist/cjs/types/lib/floating-button/FloatingButton.d.ts +1 -1
  9. package/dist/cjs/types/lib/footer-for-booking/FooterForBooking.d.ts +2 -2
  10. package/dist/cjs/types/lib/input/Input.d.ts +2 -2
  11. package/dist/cjs/types/lib/list-button/ListButton.d.ts +2 -2
  12. package/dist/cjs/types/lib/navigation-bar/NavigationBar.d.ts +1 -1
  13. package/dist/cjs/types/lib/tab-bar/TabBar.d.ts +1 -1
  14. package/dist/cjs/types/lib/therapist-card/TherapistCard.d.ts +2 -1
  15. package/dist/cjs/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +1 -1
  16. package/dist/esm/index.js +2 -2
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/types/lib/archived-consultation-card/ArchivedConsultationCard.d.ts +1 -1
  19. package/dist/esm/types/lib/button/Button.d.ts +2 -2
  20. package/dist/esm/types/lib/consultation-card/ConsultationCard.d.ts +4 -4
  21. package/dist/esm/types/lib/content-card/ContentCard.d.ts +1 -1
  22. package/dist/esm/types/lib/date-picker/DatePicker.d.ts +2 -2
  23. package/dist/esm/types/lib/floating-button/FloatingButton.d.ts +1 -1
  24. package/dist/esm/types/lib/footer-for-booking/FooterForBooking.d.ts +2 -2
  25. package/dist/esm/types/lib/input/Input.d.ts +2 -2
  26. package/dist/esm/types/lib/list-button/ListButton.d.ts +2 -2
  27. package/dist/esm/types/lib/navigation-bar/NavigationBar.d.ts +1 -1
  28. package/dist/esm/types/lib/tab-bar/TabBar.d.ts +1 -1
  29. package/dist/esm/types/lib/therapist-card/TherapistCard.d.ts +2 -1
  30. package/dist/esm/types/lib/therapist-information-component/TherapistInformationComponent.d.ts +1 -1
  31. package/dist/index.d.ts +22 -21
  32. package/package.json +1 -1
@@ -4,6 +4,6 @@ export interface ArchivedConsultationCardProps {
4
4
  nameAndSurname: string;
5
5
  date: string;
6
6
  avatar: string;
7
- ['data-testID']?: string;
7
+ ['data-testid']?: string;
8
8
  }
9
9
  export declare const ArchivedConsultationCard: React.FC<ArchivedConsultationCardProps>;
@@ -4,7 +4,7 @@ export interface ButtonProps {
4
4
  buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive';
5
5
  isDisabled: boolean;
6
6
  children: React.ReactNode;
7
- onClick: (props?: unknown) => void;
8
- ['data-testID']?: string;
7
+ onClick: (props?: React.SyntheticEvent) => void;
8
+ ['data-testid']?: string;
9
9
  }
10
10
  export declare const Button: React.FC<ButtonProps>;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import '../Theme/global.css';
3
3
  export interface ConsultationCardProps {
4
- startConsultation: (props?: unknown) => void;
5
- handleReschedule: (props?: unknown) => void;
6
- handleRefund: (props?: unknown) => void;
4
+ startConsultation: (props?: React.SyntheticEvent) => void;
5
+ handleReschedule: (props?: React.SyntheticEvent) => void;
6
+ handleRefund: (props?: React.SyntheticEvent) => void;
7
7
  consultationWith: string;
8
8
  day: string;
9
9
  time: string;
10
10
  avatar: string;
11
- ['data-testID']?: string;
11
+ ['data-testid']?: string;
12
12
  }
13
13
  export declare const ConsultationCard: React.FC<ConsultationCardProps>;
@@ -10,6 +10,6 @@ export interface ContentCardProps {
10
10
  photoURL: string;
11
11
  title: string;
12
12
  };
13
- ['data-testID']?: string;
13
+ ['data-testid']?: string;
14
14
  }
15
15
  export declare const ContentCard: React.FC<ContentCardProps>;
@@ -7,7 +7,7 @@ export interface DatePickerProps {
7
7
  date?: string;
8
8
  month?: string;
9
9
  isActive: boolean;
10
- onClick: (props?: unknown) => void;
11
- ['data-testID']?: string;
10
+ onClick: (props?: React.SyntheticEvent) => void;
11
+ ['data-testid']?: string;
12
12
  }
13
13
  export declare const DatePicker: React.FC<DatePickerProps>;
@@ -3,6 +3,6 @@ import '../Theme/global.css';
3
3
  export interface FloatingButtonType {
4
4
  bottomHeight: number;
5
5
  rightWidth: number;
6
- ['data-testID']?: string;
6
+ ['data-testid']?: string;
7
7
  }
8
8
  export declare const FloatingButton: React.FC<FloatingButtonType>;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import '../Theme/global.css';
3
3
  export interface FooterForBookingProps {
4
- eventHandler: (props?: unknown) => void;
4
+ eventHandler: (props?: React.SyntheticEvent) => void;
5
5
  duration: number;
6
6
  price: string;
7
7
  isIos: boolean;
8
- ['data-testID']?: string;
8
+ ['data-testid']?: string;
9
9
  }
10
10
  export declare const FooterForBooking: React.FC<FooterForBookingProps>;
@@ -6,8 +6,8 @@ export interface InputProps {
6
6
  type: 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';
7
7
  placeholder: string;
8
8
  value: string;
9
- ['data-testID']?: string;
10
- onIonChange: (e: unknown) => void;
9
+ ['data-testid']?: string;
10
+ onIonChange: (e: CustomEvent) => void;
11
11
  icon: string;
12
12
  }
13
13
  export declare const Input: React.FC<InputProps>;
@@ -3,7 +3,7 @@ import '../Theme/global.css';
3
3
  export interface ListButtonProps {
4
4
  children: React.ReactNode;
5
5
  icon: string;
6
- onClick: (props?: unknown) => void;
7
- ['data-testID']?: string;
6
+ onClick: (props?: React.SyntheticEvent) => void;
7
+ ['data-testid']?: string;
8
8
  }
9
9
  export declare const ListButton: React.FC<ListButtonProps>;
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import '../Theme/global.css';
3
3
  export interface NavigationBarProps {
4
4
  isInternetConnected: boolean;
5
- children?: ReactNode | undefined;
5
+ children?: ReactNode;
6
6
  isIos: boolean;
7
7
  }
8
8
  export declare const NavigationBar: React.FC<NavigationBarProps>;
@@ -3,6 +3,6 @@ import '../Theme/global.css';
3
3
  export interface TabBarProps {
4
4
  isIos: boolean;
5
5
  children: ReactNode;
6
- ['data-testID']?: string;
6
+ ['data-testid']?: string;
7
7
  }
8
8
  export declare const TabBar: React.FC<TabBarProps>;
@@ -8,7 +8,8 @@ export interface TherapistCardProps {
8
8
  psychologistPrice: number;
9
9
  psychologistDuration: number;
10
10
  psychologistExperience: number;
11
- handleClick: (props?: unknown) => void;
11
+ handleClick: (props?: React.SyntheticEvent) => void;
12
12
  isIos: boolean;
13
+ ['data-testid']?: string;
13
14
  }
14
15
  export declare const TherapistCard: React.FC<TherapistCardProps>;
@@ -5,6 +5,6 @@ export interface TherapistInformationComponentProps {
5
5
  experience: string;
6
6
  duration: string;
7
7
  price: string;
8
- ['data-testID']?: string;
8
+ ['data-testid']?: string;
9
9
  }
10
10
  export declare const TherapistInformationComponent: React.FC<TherapistInformationComponentProps>;
package/dist/index.d.ts CHANGED
@@ -4,38 +4,38 @@ interface ButtonProps {
4
4
  buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive';
5
5
  isDisabled: boolean;
6
6
  children: React.ReactNode;
7
- onClick: (props?: unknown) => void;
8
- ['data-testID']?: string;
7
+ onClick: (props?: React.SyntheticEvent) => void;
8
+ ['data-testid']?: string;
9
9
  }
10
10
  declare const Button: React.FC<ButtonProps>;
11
11
 
12
12
  interface FloatingButtonType {
13
13
  bottomHeight: number;
14
14
  rightWidth: number;
15
- ['data-testID']?: string;
15
+ ['data-testid']?: string;
16
16
  }
17
17
  declare const FloatingButton: React.FC<FloatingButtonType>;
18
18
 
19
19
  interface FooterForBookingProps {
20
- eventHandler: (props?: unknown) => void;
20
+ eventHandler: (props?: React.SyntheticEvent) => void;
21
21
  duration: number;
22
22
  price: string;
23
23
  isIos: boolean;
24
- ['data-testID']?: string;
24
+ ['data-testid']?: string;
25
25
  }
26
26
  declare const FooterForBooking: React.FC<FooterForBookingProps>;
27
27
 
28
28
  interface ListButtonProps {
29
29
  children: React.ReactNode;
30
30
  icon: string;
31
- onClick: (props?: unknown) => void;
32
- ['data-testID']?: string;
31
+ onClick: (props?: React.SyntheticEvent) => void;
32
+ ['data-testid']?: string;
33
33
  }
34
34
  declare const ListButton: React.FC<ListButtonProps>;
35
35
 
36
36
  interface NavigationBarProps {
37
37
  isInternetConnected: boolean;
38
- children?: ReactNode | undefined;
38
+ children?: ReactNode;
39
39
  isIos: boolean;
40
40
  }
41
41
  declare const NavigationBar: React.FC<NavigationBarProps>;
@@ -43,19 +43,19 @@ declare const NavigationBar: React.FC<NavigationBarProps>;
43
43
  interface TabBarProps {
44
44
  isIos: boolean;
45
45
  children: ReactNode;
46
- ['data-testID']?: string;
46
+ ['data-testid']?: string;
47
47
  }
48
48
  declare const TabBar: React.FC<TabBarProps>;
49
49
 
50
50
  interface ConsultationCardProps {
51
- startConsultation: (props?: unknown) => void;
52
- handleReschedule: (props?: unknown) => void;
53
- handleRefund: (props?: unknown) => void;
51
+ startConsultation: (props?: React.SyntheticEvent) => void;
52
+ handleReschedule: (props?: React.SyntheticEvent) => void;
53
+ handleRefund: (props?: React.SyntheticEvent) => void;
54
54
  consultationWith: string;
55
55
  day: string;
56
56
  time: string;
57
57
  avatar: string;
58
- ['data-testID']?: string;
58
+ ['data-testid']?: string;
59
59
  }
60
60
  declare const ConsultationCard: React.FC<ConsultationCardProps>;
61
61
 
@@ -69,7 +69,7 @@ interface ContentCardProps {
69
69
  photoURL: string;
70
70
  title: string;
71
71
  };
72
- ['data-testID']?: string;
72
+ ['data-testid']?: string;
73
73
  }
74
74
  declare const ContentCard: React.FC<ContentCardProps>;
75
75
 
@@ -81,8 +81,9 @@ interface TherapistCardProps {
81
81
  psychologistPrice: number;
82
82
  psychologistDuration: number;
83
83
  psychologistExperience: number;
84
- handleClick: (props?: unknown) => void;
84
+ handleClick: (props?: React.SyntheticEvent) => void;
85
85
  isIos: boolean;
86
+ ['data-testid']?: string;
86
87
  }
87
88
  declare const TherapistCard: React.FC<TherapistCardProps>;
88
89
 
@@ -95,7 +96,7 @@ interface ArchivedConsultationCardProps {
95
96
  nameAndSurname: string;
96
97
  date: string;
97
98
  avatar: string;
98
- ['data-testID']?: string;
99
+ ['data-testid']?: string;
99
100
  }
100
101
  declare const ArchivedConsultationCard: React.FC<ArchivedConsultationCardProps>;
101
102
 
@@ -106,8 +107,8 @@ interface DatePickerProps {
106
107
  date?: string;
107
108
  month?: string;
108
109
  isActive: boolean;
109
- onClick: (props?: unknown) => void;
110
- ['data-testID']?: string;
110
+ onClick: (props?: React.SyntheticEvent) => void;
111
+ ['data-testid']?: string;
111
112
  }
112
113
  declare const DatePicker: React.FC<DatePickerProps>;
113
114
 
@@ -122,7 +123,7 @@ interface TherapistInformationComponentProps {
122
123
  experience: string;
123
124
  duration: string;
124
125
  price: string;
125
- ['data-testID']?: string;
126
+ ['data-testid']?: string;
126
127
  }
127
128
  declare const TherapistInformationComponent: React.FC<TherapistInformationComponentProps>;
128
129
 
@@ -132,8 +133,8 @@ interface InputProps {
132
133
  type: 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url' | 'time' | 'week' | 'month' | 'datetime-local';
133
134
  placeholder: string;
134
135
  value: string;
135
- ['data-testID']?: string;
136
- onIonChange: (e: unknown) => void;
136
+ ['data-testid']?: string;
137
+ onIonChange: (e: CustomEvent) => void;
137
138
  icon: string;
138
139
  }
139
140
  declare const Input: React.FC<InputProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",