@mindly/ui-components 1.2.1 → 1.4.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/b7649e1531c181af.svg +69 -0
- 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/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/cjs/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/cjs/types/lib/EntryNotFound/index.d.ts +1 -0
- package/dist/cjs/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +7 -0
- 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/b7649e1531c181af.svg +69 -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/EntryNotFound/EntryNotFound.d.ts +5 -0
- package/dist/esm/types/lib/EntryNotFound/EntryNotFound.style.d.ts +2 -0
- package/dist/esm/types/lib/EntryNotFound/index.d.ts +1 -0
- package/dist/esm/types/lib/HorisontalCalendar/HorizontalCalendar.d.ts +7 -0
- 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 +22 -2
- package/package.json +3 -1
|
@@ -16,4 +16,6 @@ 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
|
-
|
|
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, };
|
|
21
|
+
export * from './lib/EntryNotFound';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EntryNotFound';
|
|
@@ -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",
|
|
@@ -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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, FC } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ButtonProps {
|
|
4
4
|
buttonType: 'primary' | 'secondary' | 'actionButton' | 'actionButtonDisabled' | 'secondaryWithStroke' | 'secondaryCancel' | 'actionButtonActive' | 'actionButtonGreen';
|
|
@@ -169,6 +169,13 @@ declare type HorizontalCalendarProps = {
|
|
|
169
169
|
daysToRender?: number;
|
|
170
170
|
value?: DayToRender;
|
|
171
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;
|
|
172
179
|
};
|
|
173
180
|
declare enum DayOfWeek {
|
|
174
181
|
SUN = "\u041D\u0434",
|
|
@@ -189,4 +196,17 @@ declare type DayToRender = {
|
|
|
189
196
|
};
|
|
190
197
|
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
191
198
|
|
|
192
|
-
|
|
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
|
+
declare type EntryNotFoundProps = {
|
|
208
|
+
title?: string;
|
|
209
|
+
};
|
|
210
|
+
declare const EntryNotFound: FC<EntryNotFoundProps>;
|
|
211
|
+
|
|
212
|
+
export { ArchivedConsultationCard, Button, ConsultationCard, ContentCard, DatePicker, EntryNotFound, EntryNotFoundProps, 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.4.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",
|