@mindly/ui-components 1.1.8 → 1.2.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.
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ export declare type HorizontalCalendarProps = {
3
+ consultationDatesSeconds?: number[];
4
+ /**
5
+ * Days to be rendered. e.g. 15 - means 7 before today and 7 after today
6
+ */
7
+ daysToRender?: number;
8
+ value?: DayToRender;
9
+ onChange?: (value: DayToRender) => void;
10
+ };
11
+ declare enum DayOfWeek {
12
+ SUN = "\u041D\u0434",
13
+ MON = "\u041F\u043D",
14
+ TUE = "\u0412\u0442",
15
+ WED = "\u0421\u0440",
16
+ THU = "\u0427\u0442",
17
+ FRI = "\u041F\u0442",
18
+ SAT = "\u0421\u0431"
19
+ }
20
+ export declare type DayToRender = {
21
+ /**
22
+ * e.g. "2.2.122", "24.4.122"
23
+ */
24
+ shortDate: string;
25
+ dayOfMonth: number;
26
+ dayOfWeek: DayOfWeek;
27
+ };
28
+ declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
29
+ export default HorizontalCalendar;
@@ -0,0 +1,2 @@
1
+ declare const HorizontalCalendarStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export default HorizontalCalendarStyled;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ export declare type HorizontalCalendarProps = {
3
+ consultationDatesSeconds?: number[];
4
+ /**
5
+ * Days to be rendered. e.g. 15 - means 7 before today and 7 after today
6
+ */
7
+ daysToRender?: number;
8
+ value?: DayToRender;
9
+ onChange?: (value: DayToRender) => void;
10
+ };
11
+ declare enum DayOfWeek {
12
+ SUN = "\u041D\u0434",
13
+ MON = "\u041F\u043D",
14
+ TUE = "\u0412\u0442",
15
+ WED = "\u0421\u0440",
16
+ THU = "\u0427\u0442",
17
+ FRI = "\u041F\u0442",
18
+ SAT = "\u0421\u0431"
19
+ }
20
+ export declare type DayToRender = {
21
+ /**
22
+ * e.g. "2.2.122", "24.4.122"
23
+ */
24
+ shortDate: string;
25
+ dayOfMonth: number;
26
+ dayOfWeek: DayOfWeek;
27
+ };
28
+ declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
29
+ export default HorizontalCalendar;
@@ -0,0 +1,2 @@
1
+ declare const HorizontalCalendarStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export default HorizontalCalendarStyled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",