@mindly/ui-components 0.1.15 → 0.1.16

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.
@@ -4,4 +4,7 @@ import FooterForBooking from './lib/footer-for-booking/FooterForBooking';
4
4
  import ListButton from './lib/list-button/listButton';
5
5
  import NavigationBar from './lib/navigation-bar/NavigationBar';
6
6
  import TabBar from './lib/tab-bar/tabBar';
7
- export { Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar };
7
+ import ConsultationCard from './lib/consultation-card/consultationCard';
8
+ import TherapistCard from './lib/therapist-card/TherapistCard';
9
+ import ContentCard from './lib/content-card/contentCard';
10
+ export { Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar, ConsultationCard, TherapistCard, ContentCard, };
@@ -7,5 +7,5 @@ interface ConsultationCardProps {
7
7
  time: string;
8
8
  avatar: string;
9
9
  }
10
- export declare const ConsultationCard: React.FC<ConsultationCardProps>;
11
- export {};
10
+ declare const ConsultationCard: React.FC<ConsultationCardProps>;
11
+ export default ConsultationCard;
@@ -10,5 +10,5 @@ interface ContentCardProps {
10
10
  title: string;
11
11
  };
12
12
  }
13
- export declare const ContentCard: React.FC<ContentCardProps>;
14
- export {};
13
+ declare const ContentCard: React.FC<ContentCardProps>;
14
+ export default ContentCard;
package/dist/index.d.ts CHANGED
@@ -34,4 +34,39 @@ declare const NavigationBar: React.FC<NavigationBar>;
34
34
 
35
35
  declare const TabBar: React.FC;
36
36
 
37
- export { Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar };
37
+ interface ConsultationCardProps {
38
+ startConsultation: () => void;
39
+ handlePurchase: () => void;
40
+ handleRefund: () => void;
41
+ consultationWith: string;
42
+ time: string;
43
+ avatar: string;
44
+ }
45
+ declare const ConsultationCard: React.FC<ConsultationCardProps>;
46
+
47
+ interface TherapistCardProps {
48
+ psychologistName: string;
49
+ psychologistLastName: string;
50
+ psychologistType: string;
51
+ psychologistPhoto: string;
52
+ psychologistPrice: number;
53
+ psychologistDuration: number;
54
+ psychologistExperience: number;
55
+ handleClick: React.MouseEventHandler;
56
+ }
57
+ declare const TherapistCard: React.FC<TherapistCardProps>;
58
+
59
+ interface ContentCardProps {
60
+ contentVideo?: {
61
+ title: string;
62
+ url: string;
63
+ };
64
+ contentArticle?: {
65
+ link: string;
66
+ photoURL: string;
67
+ title: string;
68
+ };
69
+ }
70
+ declare const ContentCard: React.FC<ContentCardProps>;
71
+
72
+ export { Button, ConsultationCard, ContentCard, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar, TherapistCard };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@babel/polyfill": "^7.12.1",
@@ -54,6 +54,7 @@
54
54
  },
55
55
  "main": "dist/cjs/index.js",
56
56
  "module": "dist/esm/index.js",
57
+ "typings": "dist/index.d.ts",
57
58
  "babel": {
58
59
  "presets": [
59
60
  [