@mindly/ui-components 1.8.0 → 1.10.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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +6 -2
- package/dist/cjs/types/lib/LetterAvatar/LetterAvatar.d.ts +1 -0
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +8 -0
- package/dist/cjs/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +2 -0
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +6 -0
- package/dist/cjs/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +10 -0
- package/dist/cjs/types/lib/notes-editor/NotesEditor.d.ts +5 -0
- package/dist/cjs/types/lib/notes-editor/NotesEditor.styled.d.ts +2 -0
- package/dist/cjs/types/lib/userAppTypes.d.ts +239 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +6 -2
- package/dist/esm/types/lib/LetterAvatar/LetterAvatar.d.ts +1 -0
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.d.ts +8 -0
- package/dist/esm/types/lib/PersonDateTimeCard/PersonDateTimeCard.styled.d.ts +2 -0
- package/dist/esm/types/lib/UsersPsychologistScrollList/UserPsychologistScrollList.styled.d.ts +6 -0
- package/dist/esm/types/lib/UsersPsychologistScrollList/UsersPsychologistScrollList.d.ts +10 -0
- package/dist/esm/types/lib/notes-editor/NotesEditor.d.ts +5 -0
- package/dist/esm/types/lib/notes-editor/NotesEditor.styled.d.ts +2 -0
- package/dist/esm/types/lib/userAppTypes.d.ts +239 -0
- package/dist/index.d.ts +307 -4
- package/package.json +3 -1
|
@@ -21,7 +21,11 @@ import SelectImpressionEmojiProps from './lib/SelectImpressionEmoji/SelectImpres
|
|
|
21
21
|
import ImpressionEmojiEnum from './lib/SelectImpressionEmoji/ImpressionEmojiEnum';
|
|
22
22
|
import LetterAvatar, { LetterAvatarProps } from './lib/LetterAvatar/LetterAvatar';
|
|
23
23
|
import ImageWithFallback, { ImageWithFallbackProps } from './lib/ImageWithFallback/ImageWithFallback';
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
import PersonDateTimeCard from './lib/PersonDateTimeCard/PersonDateTimeCard';
|
|
25
|
+
import * as UserAppTypes from "./lib/userAppTypes";
|
|
26
|
+
import { UsersPsychologistScrollList, UsersPsychologistScrollListPropsType } from './lib/UsersPsychologistScrollList/UsersPsychologistScrollList';
|
|
27
|
+
import NotesEditor from './lib/notes-editor/NotesEditor';
|
|
28
|
+
export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, HorizontalCalendar, SelectImpressionEmoji, ImpressionEmojiEnum, LetterAvatar, ImageWithFallback, PersonDateTimeCard, UsersPsychologistScrollList, NotesEditor };
|
|
29
|
+
export type { SelectImpressionEmojiProps, DayToRender, LetterAvatarProps, ImageWithFallbackProps, UserAppTypes, UsersPsychologistScrollListPropsType };
|
|
26
30
|
export * from './lib/EntryNotFound';
|
|
27
31
|
export * from './lib/consultation-card';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const StyledScrollListSectionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const StyledSectionTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const StyledScrollListWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledScrollListPsychologist: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledScrollListPsychologistAvatar: import("styled-components").StyledComponent<"section", any, {}, never>;
|
|
6
|
+
export declare const StyledScrollListPsychologistName: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PsychologistType } from '../userAppTypes';
|
|
3
|
+
export declare type UsersPsychologistScrollListPropsType = {
|
|
4
|
+
psychologistClickHandler: React.Dispatch<React.SetStateAction<{
|
|
5
|
+
isShow: boolean;
|
|
6
|
+
psychologist_id: string;
|
|
7
|
+
}>>;
|
|
8
|
+
usersPsychologists: Array<PsychologistType> | null;
|
|
9
|
+
};
|
|
10
|
+
export declare const UsersPsychologistScrollList: ({ psychologistClickHandler, usersPsychologists, }: UsersPsychologistScrollListPropsType) => JSX.Element | null;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledIonTextarea: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@ionic/core/dist/types/components").JSX.IonTextarea & Pick<import("react").HTMLAttributes<HTMLIonTextareaElement>, "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<HTMLIonTextareaElement>>, any, {}, never>;
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export interface IPromotionalCode {
|
|
2
|
+
/**
|
|
3
|
+
* The percentage value that specifies the size of the discount
|
|
4
|
+
* @example 25
|
|
5
|
+
*/
|
|
6
|
+
percent_off: number;
|
|
7
|
+
/**
|
|
8
|
+
* Price after applying promocode
|
|
9
|
+
*/
|
|
10
|
+
price_uah: string;
|
|
11
|
+
}
|
|
12
|
+
export declare enum PaidTypes {
|
|
13
|
+
paid_100 = "paid_100",
|
|
14
|
+
paid_0 = "paid_0"
|
|
15
|
+
}
|
|
16
|
+
export declare type PsychologistProfileType = {
|
|
17
|
+
id: string;
|
|
18
|
+
psychologist_id?: string;
|
|
19
|
+
articles: Array<{
|
|
20
|
+
subtheme: string;
|
|
21
|
+
content: Array<{
|
|
22
|
+
photoURL: string;
|
|
23
|
+
title: string;
|
|
24
|
+
link: string;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
education: string;
|
|
28
|
+
experience: string;
|
|
29
|
+
goal: string;
|
|
30
|
+
not_work_with: Array<string>;
|
|
31
|
+
short_description: string;
|
|
32
|
+
specialization: string;
|
|
33
|
+
video: Array<{
|
|
34
|
+
subtheme: string;
|
|
35
|
+
content: Array<{
|
|
36
|
+
title: string;
|
|
37
|
+
url: string;
|
|
38
|
+
}>;
|
|
39
|
+
}>;
|
|
40
|
+
work_with: Array<string>;
|
|
41
|
+
};
|
|
42
|
+
export declare type PsycologistCalendarType = {
|
|
43
|
+
id: string;
|
|
44
|
+
psychologist_id: string;
|
|
45
|
+
schedule: Array<{
|
|
46
|
+
slot_id: string;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export declare type WeeklyAvailabilitiesItem = {
|
|
50
|
+
reason: 'busy' | 'opened' | 'booked';
|
|
51
|
+
isAvailable: boolean;
|
|
52
|
+
time: string;
|
|
53
|
+
};
|
|
54
|
+
export declare type PsychologistDevicesProfileType = {
|
|
55
|
+
tokens?: {
|
|
56
|
+
fcmtokens?: string[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare type PsychologistType = {
|
|
60
|
+
id: string;
|
|
61
|
+
consultation_with: string;
|
|
62
|
+
duration: number;
|
|
63
|
+
email: string;
|
|
64
|
+
first_name: string;
|
|
65
|
+
last_name: string;
|
|
66
|
+
price: number;
|
|
67
|
+
focus: string;
|
|
68
|
+
photo: string;
|
|
69
|
+
avatar: string;
|
|
70
|
+
experience: number;
|
|
71
|
+
time_zone: string;
|
|
72
|
+
calendar: PsycologistCalendarType;
|
|
73
|
+
devices?: PsychologistDevicesProfileType;
|
|
74
|
+
profile: PsychologistProfileType;
|
|
75
|
+
isTestUser: boolean;
|
|
76
|
+
psychologistSex?: 'female' | 'male';
|
|
77
|
+
};
|
|
78
|
+
export declare type ConsultationType = {
|
|
79
|
+
id: string;
|
|
80
|
+
consultation_time: {
|
|
81
|
+
_seconds: number;
|
|
82
|
+
nanoseconds: number;
|
|
83
|
+
};
|
|
84
|
+
consultation_with: string;
|
|
85
|
+
duration: number;
|
|
86
|
+
exchange_rate: string;
|
|
87
|
+
payment_date: {
|
|
88
|
+
_seconds: number;
|
|
89
|
+
nanoseconds: number;
|
|
90
|
+
};
|
|
91
|
+
payment_type?: string;
|
|
92
|
+
price: number;
|
|
93
|
+
price_uah: number;
|
|
94
|
+
psychologist_avatar: string;
|
|
95
|
+
psychologist_id: string;
|
|
96
|
+
psychologist_name: string;
|
|
97
|
+
psychologist_timezone: string;
|
|
98
|
+
user_avatar: string;
|
|
99
|
+
user_id: string;
|
|
100
|
+
user_name: string;
|
|
101
|
+
user_timezone: string;
|
|
102
|
+
videochat_url: string;
|
|
103
|
+
was_rescheduled: boolean;
|
|
104
|
+
session_status?: 'client_showed' | 'client_not_showed';
|
|
105
|
+
consultation_time_before_rescheduling?: {
|
|
106
|
+
_seconds: number;
|
|
107
|
+
nanoseconds: number;
|
|
108
|
+
};
|
|
109
|
+
applied_promotional_code?: string | null;
|
|
110
|
+
auto_booking_status?: 'enable' | 'disable';
|
|
111
|
+
};
|
|
112
|
+
export declare type ConsultationWatcherType = {
|
|
113
|
+
user_id: string;
|
|
114
|
+
payment_date: {
|
|
115
|
+
seconds: number;
|
|
116
|
+
nanoseconds: number;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export declare type HasPaidConsultationsWithType = {
|
|
120
|
+
therapistID?: string;
|
|
121
|
+
currentPrice?: string;
|
|
122
|
+
};
|
|
123
|
+
export declare type UserType = {
|
|
124
|
+
id?: string | undefined;
|
|
125
|
+
avatar?: Array<{
|
|
126
|
+
url: string;
|
|
127
|
+
}>;
|
|
128
|
+
display_name: string;
|
|
129
|
+
last_name?: string;
|
|
130
|
+
displayName?: string;
|
|
131
|
+
email: string;
|
|
132
|
+
phone_number: string;
|
|
133
|
+
phoneNumber?: string;
|
|
134
|
+
surveyAnswers?: QuestionType[];
|
|
135
|
+
user_psychologists?: Array<string> | string;
|
|
136
|
+
isTestUser: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated
|
|
139
|
+
*/
|
|
140
|
+
client_from_country?: string;
|
|
141
|
+
financial_support_approved?: boolean;
|
|
142
|
+
hasPaidConsultationsWith?: Array<HasPaidConsultationsWithType>;
|
|
143
|
+
};
|
|
144
|
+
export declare type QuestionType = {
|
|
145
|
+
answers: string[];
|
|
146
|
+
photoURL: string;
|
|
147
|
+
question: string;
|
|
148
|
+
subquestion: string;
|
|
149
|
+
};
|
|
150
|
+
export declare type AnswerType = {
|
|
151
|
+
id: number;
|
|
152
|
+
question: string;
|
|
153
|
+
answer: string;
|
|
154
|
+
};
|
|
155
|
+
export declare type SurveyType = {
|
|
156
|
+
questions: QuestionType[];
|
|
157
|
+
};
|
|
158
|
+
export declare type InputState = {
|
|
159
|
+
value: string;
|
|
160
|
+
active: boolean;
|
|
161
|
+
};
|
|
162
|
+
export declare type ChangeUserDataObject = {
|
|
163
|
+
display_name: string;
|
|
164
|
+
last_name: string;
|
|
165
|
+
phone_number: string;
|
|
166
|
+
};
|
|
167
|
+
export declare type GoogleForgotPasswordAnswer = {
|
|
168
|
+
apiKey: string;
|
|
169
|
+
lang: string;
|
|
170
|
+
mode: string;
|
|
171
|
+
oobCode: string;
|
|
172
|
+
};
|
|
173
|
+
export interface Customer {
|
|
174
|
+
/**
|
|
175
|
+
* Unique identifier for the object.
|
|
176
|
+
*/
|
|
177
|
+
id: string;
|
|
178
|
+
/**
|
|
179
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
180
|
+
*/
|
|
181
|
+
object: 'customer';
|
|
182
|
+
/**
|
|
183
|
+
* Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
|
|
184
|
+
*/
|
|
185
|
+
balance: number;
|
|
186
|
+
/**
|
|
187
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
188
|
+
*/
|
|
189
|
+
created: number;
|
|
190
|
+
/**
|
|
191
|
+
* Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes.
|
|
192
|
+
*/
|
|
193
|
+
currency: string | null;
|
|
194
|
+
deleted?: void;
|
|
195
|
+
/**
|
|
196
|
+
* When the customer's latest invoice is billed by charging automatically, `delinquent` is `true` if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, `delinquent` is `true` if the invoice isn't paid by its due date.
|
|
197
|
+
*
|
|
198
|
+
* If an invoice is marked uncollectible by [dunning](https://stripe.com/docs/billing/automatic-collection), `delinquent` doesn't get reset to `false`.
|
|
199
|
+
*/
|
|
200
|
+
delinquent: boolean | null;
|
|
201
|
+
/**
|
|
202
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
203
|
+
*/
|
|
204
|
+
description: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* The customer's email address.
|
|
207
|
+
*/
|
|
208
|
+
email: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* The prefix for the customer used to generate unique invoice numbers.
|
|
211
|
+
*/
|
|
212
|
+
invoice_prefix: string | null;
|
|
213
|
+
invoice_settings: {
|
|
214
|
+
/**
|
|
215
|
+
* ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
|
|
216
|
+
*/
|
|
217
|
+
default_payment_method?: string;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
221
|
+
*/
|
|
222
|
+
livemode: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* The customer's full name or business name.
|
|
225
|
+
*/
|
|
226
|
+
name: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* The suffix of the customer's next invoice number, e.g., 0001.
|
|
229
|
+
*/
|
|
230
|
+
next_invoice_sequence?: number;
|
|
231
|
+
/**
|
|
232
|
+
* The customer's phone number.
|
|
233
|
+
*/
|
|
234
|
+
phone: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The customer's preferred locales (languages), ordered by preference.
|
|
237
|
+
*/
|
|
238
|
+
preferred_locales: Array<string> | null;
|
|
239
|
+
}
|