@mindly/ui-components 1.3.0 → 1.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.
- package/dist/cjs/b7649e1531c181af.svg +69 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/cjs/types/lib/EntryNotFound/index.d.ts +1 -0
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.d.ts +13 -5
- package/dist/cjs/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +2 -0
- package/dist/esm/b7649e1531c181af.svg +69 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/esm/types/lib/EntryNotFound/index.d.ts +1 -0
- package/dist/esm/types/lib/consultation-card/ConsultationCard.d.ts +13 -5
- package/dist/esm/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +2 -0
- package/dist/index.d.ts +20 -7
- package/package.json +2 -1
|
@@ -17,4 +17,5 @@ import { TabBar } from './lib/tab-bar/TabBar';
|
|
|
17
17
|
import { YourLocalTimeBlock } from './lib/your-local-time-block/YourLocalTimeBlock';
|
|
18
18
|
import { HorizontalCalendar } from './lib/HorisontalCalendar/HorizontalCalendar';
|
|
19
19
|
import { ModalCalendar } from './lib/ModalCalendar/ModalCalendar';
|
|
20
|
-
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ConsultationCard, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, HorizontalCalendar, ModalCalendar };
|
|
20
|
+
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ConsultationCard, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, HorizontalCalendar, ModalCalendar, };
|
|
21
|
+
export * from './lib/EntryNotFound';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EntryNotFound';
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '../Theme/global.css';
|
|
3
|
+
export declare enum DayOfWeek {
|
|
4
|
+
'Неділя' = 0,
|
|
5
|
+
'Понеділок' = 1,
|
|
6
|
+
'Вівторок' = 2,
|
|
7
|
+
'Середа' = 3,
|
|
8
|
+
'Четверг' = 4,
|
|
9
|
+
"П'ятниця" = 5,
|
|
10
|
+
'Субота' = 6
|
|
11
|
+
}
|
|
3
12
|
export interface ConsultationCardProps {
|
|
4
13
|
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
5
14
|
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
6
15
|
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
16
|
+
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
7
17
|
consultationWith: string;
|
|
8
18
|
day: string;
|
|
9
19
|
time: string;
|
|
20
|
+
dayOfWeek?: DayOfWeek;
|
|
10
21
|
avatar: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* Consultation price
|
|
14
|
-
*/
|
|
15
|
-
price: string;
|
|
22
|
+
autorecord?: boolean;
|
|
23
|
+
finished?: boolean;
|
|
16
24
|
['data-container-testid']?: string;
|
|
17
25
|
['data-start-testid']?: string;
|
|
18
26
|
['data-reschedule-testid']?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, FC } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonProps {
|
|
4
4
|
buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
|
|
@@ -40,19 +40,27 @@ interface NavigationBarProps {
|
|
|
40
40
|
}
|
|
41
41
|
declare const NavigationBar: React.FC<NavigationBarProps>;
|
|
42
42
|
|
|
43
|
+
declare enum DayOfWeek$1 {
|
|
44
|
+
'Неділя' = 0,
|
|
45
|
+
'Понеділок' = 1,
|
|
46
|
+
'Вівторок' = 2,
|
|
47
|
+
'Середа' = 3,
|
|
48
|
+
'Четверг' = 4,
|
|
49
|
+
"П'ятниця" = 5,
|
|
50
|
+
'Субота' = 6
|
|
51
|
+
}
|
|
43
52
|
interface ConsultationCardProps {
|
|
44
53
|
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
45
54
|
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
46
55
|
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
56
|
+
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
47
57
|
consultationWith: string;
|
|
48
58
|
day: string;
|
|
49
59
|
time: string;
|
|
60
|
+
dayOfWeek?: DayOfWeek$1;
|
|
50
61
|
avatar: string;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* Consultation price
|
|
54
|
-
*/
|
|
55
|
-
price: string;
|
|
62
|
+
autorecord?: boolean;
|
|
63
|
+
finished?: boolean;
|
|
56
64
|
['data-container-testid']?: string;
|
|
57
65
|
['data-start-testid']?: string;
|
|
58
66
|
['data-reschedule-testid']?: string;
|
|
@@ -204,4 +212,9 @@ declare type ModalCalendarProps = {
|
|
|
204
212
|
};
|
|
205
213
|
declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
206
214
|
|
|
207
|
-
|
|
215
|
+
declare type EntryNotFoundProps = {
|
|
216
|
+
title?: string;
|
|
217
|
+
};
|
|
218
|
+
declare const EntryNotFound: FC<EntryNotFoundProps>;
|
|
219
|
+
|
|
220
|
+
export { ArchivedConsultationCard, Button, ConsultationCard, ContentCard, DatePicker, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, Input, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, toast };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"react": "^17.0.2",
|
|
35
35
|
"react-day-picker": "^8.0.5",
|
|
36
36
|
"react-dom": "^17.0.2",
|
|
37
|
+
"react-refresh": "^0.9.0",
|
|
37
38
|
"react-scripts": "4.0.3",
|
|
38
39
|
"styled-components": "^5.3.1",
|
|
39
40
|
"web-vitals": "^1.1.2"
|