@mindly/ui-components 1.5.2 → 1.5.4
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/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -3
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +2 -2
- package/dist/cjs/types/lib/HorisontalCalendar/index.d.ts +1 -0
- package/dist/cjs/types/lib/consultation-card/ConsultationCard.d.ts +2 -2
- package/dist/cjs/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +1 -1
- package/dist/cjs/types/lib/consultation-card/index.d.ts +2 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +3 -3
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +2 -2
- package/dist/esm/types/lib/HorisontalCalendar/index.d.ts +1 -0
- package/dist/esm/types/lib/consultation-card/ConsultationCard.d.ts +2 -2
- package/dist/esm/types/lib/consultation-card/ConsultationCardSkeleton.d.ts +1 -1
- package/dist/esm/types/lib/consultation-card/index.d.ts +2 -0
- package/dist/index.d.ts +46 -42
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { FloatingButton } from './lib/floating-button/FloatingButton';
|
|
|
3
3
|
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
|
-
import { ConsultationCard } from './lib/consultation-card/ConsultationCard';
|
|
7
6
|
import { ContentCard } from './lib/content-card/ContentCard';
|
|
8
7
|
import { TherapistCard } from './lib/therapist-card/TherapistCard';
|
|
9
8
|
import { toast } from './lib/toast/toast';
|
|
@@ -15,7 +14,8 @@ import { Input } from './lib/input/Input';
|
|
|
15
14
|
import { ScrollTabs } from './lib/scroll-tabs/ScrollTabs';
|
|
16
15
|
import { TabBar } from './lib/tab-bar/TabBar';
|
|
17
16
|
import { YourLocalTimeBlock } from './lib/your-local-time-block/YourLocalTimeBlock';
|
|
18
|
-
import { HorizontalCalendar } from './lib/HorisontalCalendar/HorizontalCalendar';
|
|
19
17
|
import { ModalCalendar } from './lib/ModalCalendar/ModalCalendar';
|
|
20
|
-
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar,
|
|
18
|
+
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, };
|
|
21
19
|
export * from './lib/EntryNotFound';
|
|
20
|
+
export * from './lib/consultation-card';
|
|
21
|
+
export * from './lib/HorisontalCalendar';
|
|
@@ -15,7 +15,7 @@ export declare type HorizontalCalendarProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
startFrom?: Date;
|
|
17
17
|
};
|
|
18
|
-
declare enum DayOfWeek {
|
|
18
|
+
export declare enum DayOfWeek {
|
|
19
19
|
SUN = "\u041D\u0434",
|
|
20
20
|
MON = "\u041F\u043D",
|
|
21
21
|
TUE = "\u0412\u0442",
|
|
@@ -24,6 +24,7 @@ declare enum DayOfWeek {
|
|
|
24
24
|
FRI = "\u041F\u0442",
|
|
25
25
|
SAT = "\u0421\u0431"
|
|
26
26
|
}
|
|
27
|
+
export declare function dateToShortDate(d: Date): string;
|
|
27
28
|
export declare type DayToRender = {
|
|
28
29
|
/**
|
|
29
30
|
* e.g. "2.2.122", "24.4.122"
|
|
@@ -33,4 +34,3 @@ export declare type DayToRender = {
|
|
|
33
34
|
dayOfWeek: DayOfWeek;
|
|
34
35
|
};
|
|
35
36
|
export declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
36
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HorizontalCalendar';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '../Theme/global.css';
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum DayOfWeeks {
|
|
4
4
|
'Неділя' = 0,
|
|
5
5
|
'Понеділок' = 1,
|
|
6
6
|
'Вівторок' = 2,
|
|
@@ -17,7 +17,7 @@ export interface ConsultationCardProps {
|
|
|
17
17
|
consultationWith: string;
|
|
18
18
|
day: string;
|
|
19
19
|
time: string;
|
|
20
|
-
dayOfWeek?:
|
|
20
|
+
dayOfWeek?: DayOfWeeks;
|
|
21
21
|
avatar: string;
|
|
22
22
|
autorecord?: boolean;
|
|
23
23
|
finished?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ConsultationCardSkeleton: () => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import React, { ReactNode, FC } from 'react';
|
|
2
3
|
|
|
3
4
|
interface ButtonProps {
|
|
@@ -40,34 +41,6 @@ interface NavigationBarProps {
|
|
|
40
41
|
}
|
|
41
42
|
declare const NavigationBar: React.FC<NavigationBarProps>;
|
|
42
43
|
|
|
43
|
-
declare enum DayOfWeek$1 {
|
|
44
|
-
'Неділя' = 0,
|
|
45
|
-
'Понеділок' = 1,
|
|
46
|
-
'Вівторок' = 2,
|
|
47
|
-
'Середа' = 3,
|
|
48
|
-
'Четверг' = 4,
|
|
49
|
-
"П'ятниця" = 5,
|
|
50
|
-
'Субота' = 6
|
|
51
|
-
}
|
|
52
|
-
interface ConsultationCardProps {
|
|
53
|
-
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
54
|
-
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
55
|
-
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
56
|
-
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
57
|
-
consultationWith: string;
|
|
58
|
-
day: string;
|
|
59
|
-
time: string;
|
|
60
|
-
dayOfWeek?: DayOfWeek$1;
|
|
61
|
-
avatar: string;
|
|
62
|
-
autorecord?: boolean;
|
|
63
|
-
finished?: boolean;
|
|
64
|
-
['data-container-testid']?: string;
|
|
65
|
-
['data-start-testid']?: string;
|
|
66
|
-
['data-reschedule-testid']?: string;
|
|
67
|
-
['data-refund-testid']?: string;
|
|
68
|
-
}
|
|
69
|
-
declare const ConsultationCard: React.FC<ConsultationCardProps>;
|
|
70
|
-
|
|
71
44
|
interface ContentCardProps {
|
|
72
45
|
contentVideo?: {
|
|
73
46
|
title: string;
|
|
@@ -169,6 +142,49 @@ interface YourLocalTimeBlockProps {
|
|
|
169
142
|
}
|
|
170
143
|
declare const YourLocalTimeBlock: React.FC<YourLocalTimeBlockProps>;
|
|
171
144
|
|
|
145
|
+
declare type ModalCalendarProps = {
|
|
146
|
+
onDismiss: () => void;
|
|
147
|
+
onDaySelected: (day: Date) => void;
|
|
148
|
+
consultationDays: Date[];
|
|
149
|
+
selectedDate?: Date;
|
|
150
|
+
};
|
|
151
|
+
declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
152
|
+
|
|
153
|
+
declare type EntryNotFoundProps = {
|
|
154
|
+
title?: string;
|
|
155
|
+
};
|
|
156
|
+
declare const EntryNotFound: FC<EntryNotFoundProps>;
|
|
157
|
+
|
|
158
|
+
declare enum DayOfWeeks {
|
|
159
|
+
'Неділя' = 0,
|
|
160
|
+
'Понеділок' = 1,
|
|
161
|
+
'Вівторок' = 2,
|
|
162
|
+
'Середа' = 3,
|
|
163
|
+
'Четверг' = 4,
|
|
164
|
+
"П'ятниця" = 5,
|
|
165
|
+
'Субота' = 6
|
|
166
|
+
}
|
|
167
|
+
interface ConsultationCardProps {
|
|
168
|
+
startConsultation: (props?: React.SyntheticEvent) => void;
|
|
169
|
+
handleReschedule: (props?: React.SyntheticEvent) => void;
|
|
170
|
+
handleRefund: (props?: React.SyntheticEvent) => void;
|
|
171
|
+
handleNotes?: (props?: React.SyntheticEvent) => void;
|
|
172
|
+
consultationWith: string;
|
|
173
|
+
day: string;
|
|
174
|
+
time: string;
|
|
175
|
+
dayOfWeek?: DayOfWeeks;
|
|
176
|
+
avatar: string;
|
|
177
|
+
autorecord?: boolean;
|
|
178
|
+
finished?: boolean;
|
|
179
|
+
['data-container-testid']?: string;
|
|
180
|
+
['data-start-testid']?: string;
|
|
181
|
+
['data-reschedule-testid']?: string;
|
|
182
|
+
['data-refund-testid']?: string;
|
|
183
|
+
}
|
|
184
|
+
declare const ConsultationCard: React.FC<ConsultationCardProps>;
|
|
185
|
+
|
|
186
|
+
declare const ConsultationCardSkeleton: () => JSX.Element;
|
|
187
|
+
|
|
172
188
|
declare type HorizontalCalendarProps = {
|
|
173
189
|
consultationDatesSeconds?: number[];
|
|
174
190
|
/**
|
|
@@ -194,6 +210,7 @@ declare enum DayOfWeek {
|
|
|
194
210
|
FRI = "\u041F\u0442",
|
|
195
211
|
SAT = "\u0421\u0431"
|
|
196
212
|
}
|
|
213
|
+
declare function dateToShortDate(d: Date): string;
|
|
197
214
|
declare type DayToRender = {
|
|
198
215
|
/**
|
|
199
216
|
* e.g. "2.2.122", "24.4.122"
|
|
@@ -204,17 +221,4 @@ declare type DayToRender = {
|
|
|
204
221
|
};
|
|
205
222
|
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
206
223
|
|
|
207
|
-
|
|
208
|
-
onDismiss: () => void;
|
|
209
|
-
onDaySelected: (day: Date) => void;
|
|
210
|
-
consultationDays: Date[];
|
|
211
|
-
selectedDate?: Date;
|
|
212
|
-
};
|
|
213
|
-
declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
214
|
-
|
|
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 };
|
|
224
|
+
export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeek, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, Input, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, dateToShortDate, toast };
|