@mindly/ui-components 5.3.0 → 5.5.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.
@@ -2,3 +2,4 @@ export * from './ui';
2
2
  export * from './providers';
3
3
  export * from './hooks';
4
4
  export * from './assets';
5
+ export * from './utils';
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  type IconButtonProps = {
3
3
  icon: JSX.Element;
4
4
  className?: string;
5
- onClick?: () => void;
5
+ routerLink?: string;
6
+ onClick?: (e: React.MouseEvent<HTMLIonButtonElement>) => void;
6
7
  };
7
8
  declare const _default: React.NamedExoticComponent<IconButtonProps>;
8
9
  export default _default;
@@ -0,0 +1,8 @@
1
+ import React, { InputHTMLAttributes } from 'react';
2
+ interface ScreenInputProps extends InputHTMLAttributes<HTMLInputElement> {
3
+ variant?: 'default' | 'large';
4
+ type?: 'text' | 'email' | 'password' | 'number';
5
+ className?: string;
6
+ }
7
+ declare const ScreenInput: React.ForwardRefExoticComponent<ScreenInputProps & React.RefAttributes<HTMLInputElement>>;
8
+ export default ScreenInput;
@@ -0,0 +1 @@
1
+ export { default as ScreenInput } from './ScreenInput';
@@ -15,3 +15,4 @@ export * from './Textarea_v2';
15
15
  export * from './Rating';
16
16
  export * from './IconButton';
17
17
  export * from './Toast';
18
+ export * from './ScreenInput';
@@ -0,0 +1 @@
1
+ export { mergeRefs } from './mergeRefs';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ type AnyRef = React.Ref<any>;
3
+ export declare const mergeRefs: <T extends unknown>(...refs: AnyRef[]) => React.Ref<T>;
4
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent } from 'react';
2
+ import React__default, { ReactNode, CSSProperties, HTMLAttributes, RefAttributes, FC, ReactText, ReactElement, ChangeEvent, InputHTMLAttributes } from 'react';
3
3
  import { JSX as JSX$1 } from '@ionic/core/components';
4
4
  import { RatingComponentProps } from 'react-rating';
5
5
  import { RefresherEventDetail, ScrollDetail, ScrollBaseDetail } from '@ionic/react';
@@ -1589,7 +1589,8 @@ declare const _default$2: React__default.NamedExoticComponent<RatingProps>;
1589
1589
  type IconButtonProps = {
1590
1590
  icon: JSX.Element;
1591
1591
  className?: string;
1592
- onClick?: () => void;
1592
+ routerLink?: string;
1593
+ onClick?: (e: React__default.MouseEvent<HTMLIonButtonElement>) => void;
1593
1594
  };
1594
1595
  declare const _default$1: React__default.NamedExoticComponent<IconButtonProps>;
1595
1596
 
@@ -1604,6 +1605,13 @@ interface ToastRegionProps<T> extends AriaToastRegionProps {
1604
1605
 
1605
1606
  declare function ToastRegion<T extends React.ReactNode>({ state, ...props }: ToastRegionProps<T>): JSX.Element;
1606
1607
 
1608
+ interface ScreenInputProps extends InputHTMLAttributes<HTMLInputElement> {
1609
+ variant?: 'default' | 'large';
1610
+ type?: 'text' | 'email' | 'password' | 'number';
1611
+ className?: string;
1612
+ }
1613
+ declare const ScreenInput: React__default.ForwardRefExoticComponent<ScreenInputProps & React__default.RefAttributes<HTMLInputElement>>;
1614
+
1607
1615
  declare enum appThemes {
1608
1616
  client = "client",
1609
1617
  specialist = "specialist"
@@ -1786,6 +1794,9 @@ declare const IconGoogle: FC<React.SVGAttributes<SVGElement>>;
1786
1794
 
1787
1795
  declare const IconLetter: FC<React.SVGAttributes<SVGElement>>;
1788
1796
 
1797
+ type AnyRef = React__default.Ref<any>;
1798
+ declare const mergeRefs: <T extends unknown>(...refs: AnyRef[]) => React__default.Ref<T>;
1799
+
1789
1800
  type CountryOfOriginModalProps = {
1790
1801
  countries: string[];
1791
1802
  onSearchChange: (event: IonSearchbarCustomEvent<SearchbarChangeEventDetail>) => void;
@@ -1837,4 +1848,4 @@ type SlotsGridProps = {
1837
1848
 
1838
1849
  declare const _default: React__default.NamedExoticComponent<SlotsGridProps>;
1839
1850
 
1840
- export { AppFooter, _default$9 as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$8 as Avatar_v2, _default$4 as Badge, _default$n as BookingScheduleTime, _default$m as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$I as ChatListItem, _default$G as ChatListSkeleton, _default$H as ChatMessage, ChatMessageSkeleton, _default$h as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$z as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$w as ConsultationModal, _default$u as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$i as CustomCheckbox, CustomRadioButton, _default$j as CustomSelect, _default$k as CustomTextarea, DatePicker, _default$s as DaySlider, DayToRender, _default$o as EducationCard, _default$F as EmptyChatList, EmptyChatMessages, _default$x as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$e as Flag, FlagTypes, _default$6 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowLeft, IconArrowRight, IconBeachAccess, _default$1 as IconButton, IconCalendar, IconCalendarMonth, IconChatOutline, IconCheckboxChecked, IconCheckboxUnchecked, IconClose, IconEditCalendar, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconResume, IconSettings, IconStar, IconStarFilled, IconSuccess, IconTime, IconVerifiedUser, IconVisible, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$M as LetterAvatar, _default$f as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$J as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$L as PersonDateTimeCard, _default$5 as Picture, _default$d as ProfileInformation, _default$q as ProfileView, _default$g as ProgressBar, Range, _default$2 as Rating, _default$t as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$K as SelectImpressionEmoji, _default$y as SignUpSessionButton, _default$v as SignUpSessionModal, Skeleton, _default$7 as Skeleton_v2, _default as SlotsGrid, _default$p as SpecialistAbout, SpecialistCard, _default$D as SpecialistEducationCard, SpecialistLangs, _default$c as SpecialistMatch, _default$C as SpecialistProfileViewCard, _default$b as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$l as TextInput, _default$E as Textarea, _default$3 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$a as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$A as VideoCallInfo, _default$B as VideoPlayer, _default$r as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, toast, useAutoFocus, useDomRef, useEvent, useIsKeyBoardShown, useToastContext };
1851
+ export { AppFooter, _default$9 as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$8 as Avatar_v2, _default$4 as Badge, _default$n as BookingScheduleTime, _default$m as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$I as ChatListItem, _default$G as ChatListSkeleton, _default$H as ChatMessage, ChatMessageSkeleton, _default$h as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$z as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$w as ConsultationModal, _default$u as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$i as CustomCheckbox, CustomRadioButton, _default$j as CustomSelect, _default$k as CustomTextarea, DatePicker, _default$s as DaySlider, DayToRender, _default$o as EducationCard, _default$F as EmptyChatList, EmptyChatMessages, _default$x as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$e as Flag, FlagTypes, _default$6 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowLeft, IconArrowRight, IconBeachAccess, _default$1 as IconButton, IconCalendar, IconCalendarMonth, IconChatOutline, IconCheckboxChecked, IconCheckboxUnchecked, IconClose, IconEditCalendar, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconResume, IconSettings, IconStar, IconStarFilled, IconSuccess, IconTime, IconVerifiedUser, IconVisible, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$M as LetterAvatar, _default$f as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$J as MediaPlayer, Modal, ModalCalendar, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$L as PersonDateTimeCard, _default$5 as Picture, _default$d as ProfileInformation, _default$q as ProfileView, _default$g as ProgressBar, Range, _default$2 as Rating, _default$t as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScreenInput, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$K as SelectImpressionEmoji, _default$y as SignUpSessionButton, _default$v as SignUpSessionModal, Skeleton, _default$7 as Skeleton_v2, _default as SlotsGrid, _default$p as SpecialistAbout, SpecialistCard, _default$D as SpecialistEducationCard, SpecialistLangs, _default$c as SpecialistMatch, _default$C as SpecialistProfileViewCard, _default$b as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$l as TextInput, _default$E as Textarea, _default$3 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$a as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$A as VideoCallInfo, _default$B as VideoPlayer, _default$r as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, mergeRefs, toast, useAutoFocus, useDomRef, useEvent, useIsKeyBoardShown, useToastContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",