@mindly/ui-components 1.5.3 → 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 +2 -2
- 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/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -2
- 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/index.d.ts +39 -38
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ import { Input } from './lib/input/Input';
|
|
|
14
14
|
import { ScrollTabs } from './lib/scroll-tabs/ScrollTabs';
|
|
15
15
|
import { TabBar } from './lib/tab-bar/TabBar';
|
|
16
16
|
import { YourLocalTimeBlock } from './lib/your-local-time-block/YourLocalTimeBlock';
|
|
17
|
-
import { HorizontalCalendar } from './lib/HorisontalCalendar/HorizontalCalendar';
|
|
18
17
|
import { ModalCalendar } from './lib/ModalCalendar/ModalCalendar';
|
|
19
|
-
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock,
|
|
18
|
+
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, };
|
|
20
19
|
export * from './lib/EntryNotFound';
|
|
21
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -142,41 +142,6 @@ interface YourLocalTimeBlockProps {
|
|
|
142
142
|
}
|
|
143
143
|
declare const YourLocalTimeBlock: React.FC<YourLocalTimeBlockProps>;
|
|
144
144
|
|
|
145
|
-
declare type HorizontalCalendarProps = {
|
|
146
|
-
consultationDatesSeconds?: number[];
|
|
147
|
-
/**
|
|
148
|
-
* Days to be rendered. e.g. 15 - means 7 before today and 7 after today
|
|
149
|
-
*/
|
|
150
|
-
daysToRender?: number;
|
|
151
|
-
value?: DayToRender;
|
|
152
|
-
onChange?: (value: DayToRender) => void;
|
|
153
|
-
/**
|
|
154
|
-
* date from which a component should start coordinates.
|
|
155
|
-
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
156
|
-
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
startFrom?: Date;
|
|
160
|
-
};
|
|
161
|
-
declare enum DayOfWeek$1 {
|
|
162
|
-
SUN = "\u041D\u0434",
|
|
163
|
-
MON = "\u041F\u043D",
|
|
164
|
-
TUE = "\u0412\u0442",
|
|
165
|
-
WED = "\u0421\u0440",
|
|
166
|
-
THU = "\u0427\u0442",
|
|
167
|
-
FRI = "\u041F\u0442",
|
|
168
|
-
SAT = "\u0421\u0431"
|
|
169
|
-
}
|
|
170
|
-
declare type DayToRender = {
|
|
171
|
-
/**
|
|
172
|
-
* e.g. "2.2.122", "24.4.122"
|
|
173
|
-
*/
|
|
174
|
-
shortDate: string;
|
|
175
|
-
dayOfMonth: number;
|
|
176
|
-
dayOfWeek: DayOfWeek$1;
|
|
177
|
-
};
|
|
178
|
-
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
179
|
-
|
|
180
145
|
declare type ModalCalendarProps = {
|
|
181
146
|
onDismiss: () => void;
|
|
182
147
|
onDaySelected: (day: Date) => void;
|
|
@@ -190,7 +155,7 @@ declare type EntryNotFoundProps = {
|
|
|
190
155
|
};
|
|
191
156
|
declare const EntryNotFound: FC<EntryNotFoundProps>;
|
|
192
157
|
|
|
193
|
-
declare enum
|
|
158
|
+
declare enum DayOfWeeks {
|
|
194
159
|
'Неділя' = 0,
|
|
195
160
|
'Понеділок' = 1,
|
|
196
161
|
'Вівторок' = 2,
|
|
@@ -207,7 +172,7 @@ interface ConsultationCardProps {
|
|
|
207
172
|
consultationWith: string;
|
|
208
173
|
day: string;
|
|
209
174
|
time: string;
|
|
210
|
-
dayOfWeek?:
|
|
175
|
+
dayOfWeek?: DayOfWeeks;
|
|
211
176
|
avatar: string;
|
|
212
177
|
autorecord?: boolean;
|
|
213
178
|
finished?: boolean;
|
|
@@ -220,4 +185,40 @@ declare const ConsultationCard: React.FC<ConsultationCardProps>;
|
|
|
220
185
|
|
|
221
186
|
declare const ConsultationCardSkeleton: () => JSX.Element;
|
|
222
187
|
|
|
223
|
-
|
|
188
|
+
declare type HorizontalCalendarProps = {
|
|
189
|
+
consultationDatesSeconds?: number[];
|
|
190
|
+
/**
|
|
191
|
+
* Days to be rendered. e.g. 15 - means 7 before today and 7 after today
|
|
192
|
+
*/
|
|
193
|
+
daysToRender?: number;
|
|
194
|
+
value?: DayToRender;
|
|
195
|
+
onChange?: (value: DayToRender) => void;
|
|
196
|
+
/**
|
|
197
|
+
* date from which a component should start coordinates.
|
|
198
|
+
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
199
|
+
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
startFrom?: Date;
|
|
203
|
+
};
|
|
204
|
+
declare enum DayOfWeek {
|
|
205
|
+
SUN = "\u041D\u0434",
|
|
206
|
+
MON = "\u041F\u043D",
|
|
207
|
+
TUE = "\u0412\u0442",
|
|
208
|
+
WED = "\u0421\u0440",
|
|
209
|
+
THU = "\u0427\u0442",
|
|
210
|
+
FRI = "\u041F\u0442",
|
|
211
|
+
SAT = "\u0421\u0431"
|
|
212
|
+
}
|
|
213
|
+
declare function dateToShortDate(d: Date): string;
|
|
214
|
+
declare type DayToRender = {
|
|
215
|
+
/**
|
|
216
|
+
* e.g. "2.2.122", "24.4.122"
|
|
217
|
+
*/
|
|
218
|
+
shortDate: string;
|
|
219
|
+
dayOfMonth: number;
|
|
220
|
+
dayOfWeek: DayOfWeek;
|
|
221
|
+
};
|
|
222
|
+
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
223
|
+
|
|
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 };
|