@mindly/ui-components 3.70.2 → 3.72.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.
@@ -4,7 +4,7 @@ import { ListButton } from './lib/list-button/ListButton';
4
4
  import { NavigationBar } from './lib/navigation-bar/NavigationBar';
5
5
  import { ContentCard } from './lib/content-card/ContentCard';
6
6
  import { TherapistCard } from './deprecated/therapist-card/TherapistCard';
7
- import { toast } from './lib/toast/toast';
7
+ import { toast } from './deprecated/toast/toast';
8
8
  import { ArchivedConsultationCard } from './lib/archived-consultation-card/ArchivedConsultationCard';
9
9
  import { DatePicker } from './lib/date-picker/DatePicker';
10
10
  import { NoInternetConnection } from './lib/no-internet-connection/NoInternetConnection';
@@ -183,3 +183,5 @@ export { default as Spinner } from './lib/Spinner';
183
183
  export * from './lib/Spinner';
184
184
  export { default as Refresher } from './lib/Refresher';
185
185
  export * from './lib/Refresher';
186
+ export { default as Toast } from './lib/Toast';
187
+ export * from './lib/Toast';
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- export declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green' | 'accent-light-grey' | 'transparent' | 'border';
2
+ export declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green' | 'accent-light-grey' | 'transparent' | 'border' | 'border-white' | 'white' | 'outline';
3
3
  declare type ButtonProps = {
4
4
  buttonType?: PossibleButtonTypes;
5
- borderRadius?: number;
6
5
  loading?: boolean;
7
6
  } & React.ButtonHTMLAttributes<HTMLButtonElement>;
8
7
  declare const CustomButton: React.FC<ButtonProps>;
@@ -3,7 +3,6 @@ import { PossibleButtonTypes } from './CustomButton';
3
3
  declare type StyledButtonProps = {
4
4
  buttonType?: PossibleButtonTypes;
5
5
  disabled?: boolean;
6
- borderRadius?: number;
7
6
  };
8
7
  export declare const StyledButton: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
9
8
  export declare const StyledSpinner: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@ionic/core/dist/types/components").JSX.IonSpinner & Pick<import("react").HTMLAttributes<HTMLIonSpinnerElement>, "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/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSpinnerElement>>, any, {}, never>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ToastProps } from './index';
3
+ declare const Toast: React.FC<ToastProps>;
4
+ export default Toast;
@@ -0,0 +1,8 @@
1
+ declare type ToastContainerProps = {
2
+ position?: 'top' | 'bottom';
3
+ positionOffset?: number;
4
+ };
5
+ export declare const ToastContainer: import("styled-components").StyledComponent<"div", any, ToastContainerProps, never>;
6
+ export declare const ToastText: import("styled-components").StyledComponent<"h3", any, {}, never>;
7
+ export declare const ButtonsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export declare type ToastButton = {
3
+ text: string;
4
+ handler: () => void;
5
+ type?: 'filled' | 'outlined';
6
+ };
7
+ export declare type ToastProps = {
8
+ position?: 'top' | 'bottom';
9
+ positionOffset?: number;
10
+ text?: string;
11
+ buttons?: Array<ToastButton>;
12
+ } & HTMLAttributes<HTMLDivElement>;
13
+ export { default } from './Toast';
package/dist/index.d.ts CHANGED
@@ -1084,10 +1084,9 @@ declare const _default$8: React.MemoExoticComponent<React.ForwardRefExoticCompon
1084
1084
  selectedBy?: "label" | "id" | undefined;
1085
1085
  } & React.SelectHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>>>;
1086
1086
 
1087
- declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green' | 'accent-light-grey' | 'transparent' | 'border';
1087
+ declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green' | 'accent-light-grey' | 'transparent' | 'border' | 'border-white' | 'white' | 'outline';
1088
1088
  declare type ButtonProps = {
1089
1089
  buttonType?: PossibleButtonTypes;
1090
- borderRadius?: number;
1091
1090
  loading?: boolean;
1092
1091
  } & React.ButtonHTMLAttributes<HTMLButtonElement>;
1093
1092
  declare const CustomButton: React.FC<ButtonProps>;
@@ -1352,4 +1351,18 @@ declare type RefresherProps = {
1352
1351
  };
1353
1352
  declare const Refresher: FC<RefresherProps>;
1354
1353
 
1355
- export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, _default$c as BookingScheduleTime, _default$b as BookingSpecialistInfo, Button, CancelSession, ChangeLangModal, _default$x as ChatListItem, _default$v as ChatListSkeleton, _default$w as ChatMessage, ChatMessageSkeleton, _default$6 as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$o as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$l as ConsultationModal, _default$j as ConsultationSpecialistCard, Container, ContentCard, CustomButton, _default$7 as CustomCheckbox, _default$8 as CustomSelect, _default$9 as CustomTextarea, DatePicker, _default$h as DaySlider, DayToRender, _default$d as EducationCard, _default$u as EmptyChatList, EmptyChatMessages, _default$m as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$3 as Flag, FlagTypes, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$B as LetterAvatar, _default$4 as LineFileInput, ListButton, ListSelect, LouseConnect, _default$y as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$A as PersonDateTimeCard, _default$2 as ProfileInformation, _default$f as ProfileView, _default$5 as ProgressBar, Range, _default$i as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$z as SelectImpressionEmoji, _default$n as SignUpSessionButton, _default$k as SignUpSessionModal, Skeleton, _default$e as SpecialistAbout, SpecialistCard, _default$s as SpecialistEducationCard, SpecialistLangs, _default$1 as SpecialistMatch, _default$r as SpecialistProfileViewCard, _default as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$a as TextInput, _default$t as Textarea, TherapistCard, TherapistInformationComponent, Toggle, TooltipComponent, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$p as VideoCallInfo, _default$q as VideoPlayer, _default$g as WorkDirections, YourLocalTimeBlock, decOfNum, toast };
1354
+ declare const Toast: React.FC<ToastProps>;
1355
+
1356
+ declare type ToastButton = {
1357
+ text: string;
1358
+ handler: () => void;
1359
+ type?: 'filled' | 'outlined';
1360
+ };
1361
+ declare type ToastProps = {
1362
+ position?: 'top' | 'bottom';
1363
+ positionOffset?: number;
1364
+ text?: string;
1365
+ buttons?: Array<ToastButton>;
1366
+ } & HTMLAttributes<HTMLDivElement>;
1367
+
1368
+ export { AppFooter, AppHeader, ArchivedConsultationCard, Avatar, AvatarProps, _default$c as BookingScheduleTime, _default$b as BookingSpecialistInfo, Button, CancelSession, ChangeLangModal, _default$x as ChatListItem, _default$v as ChatListSkeleton, _default$w as ChatMessage, ChatMessageSkeleton, _default$6 as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$o as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$l as ConsultationModal, _default$j as ConsultationSpecialistCard, Container, ContentCard, CustomButton, _default$7 as CustomCheckbox, _default$8 as CustomSelect, _default$9 as CustomTextarea, DatePicker, _default$h as DaySlider, DayToRender, _default$d as EducationCard, _default$u as EmptyChatList, EmptyChatMessages, _default$m as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$3 as Flag, FlagTypes, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$B as LetterAvatar, _default$4 as LineFileInput, ListButton, ListSelect, LouseConnect, _default$y as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$A as PersonDateTimeCard, _default$2 as ProfileInformation, _default$f as ProfileView, _default$5 as ProgressBar, Range, _default$i as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowSelect, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$z as SelectImpressionEmoji, _default$n as SignUpSessionButton, _default$k as SignUpSessionModal, Skeleton, _default$e as SpecialistAbout, SpecialistCard, _default$s as SpecialistEducationCard, SpecialistLangs, _default$1 as SpecialistMatch, _default$r as SpecialistProfileViewCard, _default as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$a as TextInput, _default$t as Textarea, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastProps, Toggle, TooltipComponent, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, _default$p as VideoCallInfo, _default$q as VideoPlayer, _default$g as WorkDirections, YourLocalTimeBlock, decOfNum, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.70.2",
3
+ "version": "3.72.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",