@mindly/ui-components 1.2.0 → 1.3.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/index.js +15 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -1
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +9 -2
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.d.ts +9 -0
- package/dist/cjs/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +3 -0
- package/dist/esm/index.js +16 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +3 -1
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +9 -2
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.d.ts +9 -0
- package/dist/esm/types/lib/ModalCalendar/ModalCalendar.styled.d.ts +3 -0
- package/dist/index.d.ts +44 -1
- package/package.json +3 -1
|
@@ -15,4 +15,6 @@ 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
|
-
|
|
18
|
+
import { HorizontalCalendar } from './lib/HorisontalCalendar/HorizontalCalendar';
|
|
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 };
|
|
@@ -7,6 +7,13 @@ export declare type HorizontalCalendarProps = {
|
|
|
7
7
|
daysToRender?: number;
|
|
8
8
|
value?: DayToRender;
|
|
9
9
|
onChange?: (value: DayToRender) => void;
|
|
10
|
+
/**
|
|
11
|
+
* date from which a component should start coordinates.
|
|
12
|
+
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
13
|
+
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
startFrom?: Date;
|
|
10
17
|
};
|
|
11
18
|
declare enum DayOfWeek {
|
|
12
19
|
SUN = "\u041D\u0434",
|
|
@@ -25,5 +32,5 @@ export declare type DayToRender = {
|
|
|
25
32
|
dayOfMonth: number;
|
|
26
33
|
dayOfWeek: DayOfWeek;
|
|
27
34
|
};
|
|
28
|
-
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
29
|
-
export
|
|
35
|
+
export declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import 'react-day-picker/dist/style.css';
|
|
3
|
+
export declare type ModalCalendarProps = {
|
|
4
|
+
onDismiss: () => void;
|
|
5
|
+
onDaySelected: (day: Date) => void;
|
|
6
|
+
consultationDays: Date[];
|
|
7
|
+
selectedDate?: Date;
|
|
8
|
+
};
|
|
9
|
+
export declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ModalCalendarStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").HTMLAttributes<unknown>, "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("@ionic/react/dist/types/components/IonicReactProps").IonicReactProps & import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
3
|
+
export default ModalCalendarStyled;
|
package/dist/index.d.ts
CHANGED
|
@@ -161,4 +161,47 @@ interface YourLocalTimeBlockProps {
|
|
|
161
161
|
}
|
|
162
162
|
declare const YourLocalTimeBlock: React.FC<YourLocalTimeBlockProps>;
|
|
163
163
|
|
|
164
|
-
|
|
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
|
+
* date from which a component should start coordinates.
|
|
174
|
+
* e.g. startFrom = "15.01.2022", daysToRender=5
|
|
175
|
+
* return ["13.02.2022", "14.01.2022", "15.01.2022", "16.01.2022", "17.01.2022"]
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
startFrom?: Date;
|
|
179
|
+
};
|
|
180
|
+
declare enum DayOfWeek {
|
|
181
|
+
SUN = "\u041D\u0434",
|
|
182
|
+
MON = "\u041F\u043D",
|
|
183
|
+
TUE = "\u0412\u0442",
|
|
184
|
+
WED = "\u0421\u0440",
|
|
185
|
+
THU = "\u0427\u0442",
|
|
186
|
+
FRI = "\u041F\u0442",
|
|
187
|
+
SAT = "\u0421\u0431"
|
|
188
|
+
}
|
|
189
|
+
declare type DayToRender = {
|
|
190
|
+
/**
|
|
191
|
+
* e.g. "2.2.122", "24.4.122"
|
|
192
|
+
*/
|
|
193
|
+
shortDate: string;
|
|
194
|
+
dayOfMonth: number;
|
|
195
|
+
dayOfWeek: DayOfWeek;
|
|
196
|
+
};
|
|
197
|
+
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
198
|
+
|
|
199
|
+
declare type ModalCalendarProps = {
|
|
200
|
+
onDismiss: () => void;
|
|
201
|
+
onDaySelected: (day: Date) => void;
|
|
202
|
+
consultationDays: Date[];
|
|
203
|
+
selectedDate?: Date;
|
|
204
|
+
};
|
|
205
|
+
declare const ModalCalendar: React.FC<ModalCalendarProps>;
|
|
206
|
+
|
|
207
|
+
export { ArchivedConsultationCard, Button, ConsultationCard, ContentCard, DatePicker, 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.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"@types/react": "^17.0.27",
|
|
31
31
|
"@types/react-dom": "^17.0.9",
|
|
32
32
|
"auto": "^10.32.0",
|
|
33
|
+
"date-fns": "^2.28.0",
|
|
33
34
|
"react": "^17.0.2",
|
|
35
|
+
"react-day-picker": "^8.0.5",
|
|
34
36
|
"react-dom": "^17.0.2",
|
|
35
37
|
"react-scripts": "4.0.3",
|
|
36
38
|
"styled-components": "^5.3.1",
|