@mindly/ui-components 1.2.0 → 1.2.1

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.
@@ -15,4 +15,5 @@ import { Input } from './lib/input/Input';
15
15
  import { ScrollTabs } from './lib/scroll-tabs/ScrollTabs';
16
16
  import { TabBar } from './lib/tab-bar/TabBar';
17
17
  import { YourLocalTimeBlock } from './lib/your-local-time-block/YourLocalTimeBlock';
18
- export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ConsultationCard, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, };
18
+ import { HorizontalCalendar } from './lib/HorisontalCalendar/HorizontalCalendar';
19
+ export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ConsultationCard, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, HorizontalCalendar };
@@ -25,5 +25,5 @@ export declare type DayToRender = {
25
25
  dayOfMonth: number;
26
26
  dayOfWeek: DayOfWeek;
27
27
  };
28
- declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
29
- export default HorizontalCalendar;
28
+ export declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
29
+ export {};
package/dist/index.d.ts CHANGED
@@ -161,4 +161,32 @@ interface YourLocalTimeBlockProps {
161
161
  }
162
162
  declare const YourLocalTimeBlock: React.FC<YourLocalTimeBlockProps>;
163
163
 
164
- export { ArchivedConsultationCard, Button, ConsultationCard, ContentCard, DatePicker, FloatingButton, FooterForBooking, Input, ListButton, NavigationBar, NoInternetConnection, ScrollTabs, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, toast };
164
+ declare type HorizontalCalendarProps = {
165
+ consultationDatesSeconds?: number[];
166
+ /**
167
+ * Days to be rendered. e.g. 15 - means 7 before today and 7 after today
168
+ */
169
+ daysToRender?: number;
170
+ value?: DayToRender;
171
+ onChange?: (value: DayToRender) => void;
172
+ };
173
+ declare enum DayOfWeek {
174
+ SUN = "\u041D\u0434",
175
+ MON = "\u041F\u043D",
176
+ TUE = "\u0412\u0442",
177
+ WED = "\u0421\u0440",
178
+ THU = "\u0427\u0442",
179
+ FRI = "\u041F\u0442",
180
+ SAT = "\u0421\u0431"
181
+ }
182
+ declare type DayToRender = {
183
+ /**
184
+ * e.g. "2.2.122", "24.4.122"
185
+ */
186
+ shortDate: string;
187
+ dayOfMonth: number;
188
+ dayOfWeek: DayOfWeek;
189
+ };
190
+ declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
191
+
192
+ export { ArchivedConsultationCard, Button, ConsultationCard, ContentCard, DatePicker, FloatingButton, FooterForBooking, HorizontalCalendar, Input, ListButton, 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.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",