@mindly/ui-components 5.10.0 → 5.11.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.
Files changed (22) hide show
  1. package/dist/cjs/index.js +5 -5
  2. package/dist/cjs/lib2/features/CardModal/CardModal.d.ts +2 -0
  3. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +2 -0
  4. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/index.d.ts +1 -0
  5. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/types.d.ts +7 -0
  6. package/dist/cjs/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +1 -1
  7. package/dist/cjs/lib2/features/PushNotificationsModal/types.d.ts +13 -6
  8. package/dist/cjs/lib2/features/index.d.ts +1 -0
  9. package/dist/cjs/lib2/shared/assets/icons/IconNotficationMuted.d.ts +2 -0
  10. package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
  11. package/dist/esm/index.js +5 -5
  12. package/dist/esm/lib2/features/CardModal/CardModal.d.ts +2 -0
  13. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +2 -0
  14. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/index.d.ts +1 -0
  15. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/types.d.ts +7 -0
  16. package/dist/esm/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +1 -1
  17. package/dist/esm/lib2/features/PushNotificationsModal/types.d.ts +13 -6
  18. package/dist/esm/lib2/features/index.d.ts +1 -0
  19. package/dist/esm/lib2/shared/assets/icons/IconNotficationMuted.d.ts +2 -0
  20. package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
  21. package/dist/index.d.ts +27 -6
  22. package/package.json +1 -1
@@ -5,6 +5,8 @@ type CardModalProps = {
5
5
  onDidDismiss?: () => void;
6
6
  backButton?: boolean;
7
7
  canDismiss?: boolean;
8
+ isShowHandle?: boolean;
9
+ isShowCloseButton?: boolean;
8
10
  renderHeader?: (props: {
9
11
  backButton?: boolean;
10
12
  onClose: () => void;
@@ -0,0 +1,2 @@
1
+ import { PushNotificationsIsDisabledBannerProps } from './types';
2
+ export declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './PushNotificationsIsDisabledBanner';
@@ -0,0 +1,7 @@
1
+ export type PushNotificationsIsDisabledBannerProps = {
2
+ onOpenNativeSettings: () => void;
3
+ className?: string;
4
+ title: string;
5
+ description: string;
6
+ buttonText: string;
7
+ };
@@ -1,2 +1,2 @@
1
1
  import { PushNotificationsModalProps } from './types';
2
- export declare function PushNotificationsModal({ onApplyPermission, onDismissPermission, isOpen, title, description, heightInPx, applyPermissionText, dismissPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
2
+ export declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
@@ -1,10 +1,17 @@
1
- import { JSX as IonicJSX } from '@ionic/core/components';
2
- export type PushNotificationsModalProps = IonicJSX.IonModal & {
1
+ import * as React from 'react';
2
+ export type PushNotificationsModalProps = {
3
3
  onApplyPermission: () => void;
4
- onDismissPermission: () => void;
5
4
  title: string;
6
- applyPermissionText: string;
7
- dismissPermissionText: string;
8
5
  description: string;
9
- heightInPx?: number;
6
+ image: string;
7
+ applyPermissionText: string;
8
+ isOpen: boolean;
9
+ presentingElement?: HTMLElement;
10
+ onDidDismiss?: () => void;
11
+ backButton?: boolean;
12
+ canDismiss?: boolean;
13
+ renderHeader?: (props: {
14
+ backButton?: boolean;
15
+ onClose: () => void;
16
+ }) => React.ReactNode;
10
17
  };
@@ -3,3 +3,4 @@ export * from './ChangeLanguageModal';
3
3
  export * from './CardModal';
4
4
  export * from './SlotsGrid';
5
5
  export * from './PushNotificationsModal';
6
+ export * from './PushNotificationsIsDisabledBanner';
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const IconNotificationMuted: (props: SVGProps<SVGSVGElement>) => JSX.Element;
@@ -33,3 +33,4 @@ export * from './IconSpinner';
33
33
  export * from './IconEye';
34
34
  export * from './IconEyeOff';
35
35
  export * from './IconChat3d';
36
+ export * from './IconNotficationMuted';
package/dist/index.d.ts CHANGED
@@ -1825,6 +1825,8 @@ declare const IconEyeOff: FC<React.SVGAttributes<SVGElement>>;
1825
1825
 
1826
1826
  declare const IconChat3d: (props: SVGProps<SVGSVGElement>) => JSX.Element;
1827
1827
 
1828
+ declare const IconNotificationMuted: (props: SVGProps<SVGSVGElement>) => JSX.Element;
1829
+
1828
1830
  type AnyRef = React__default.Ref<any>;
1829
1831
  declare const mergeRefs: <T extends unknown>(...refs: AnyRef[]) => React__default.Ref<T>;
1830
1832
 
@@ -1859,6 +1861,8 @@ type CardModalProps = {
1859
1861
  onDidDismiss?: () => void;
1860
1862
  backButton?: boolean;
1861
1863
  canDismiss?: boolean;
1864
+ isShowHandle?: boolean;
1865
+ isShowCloseButton?: boolean;
1862
1866
  renderHeader?: (props: {
1863
1867
  backButton?: boolean;
1864
1868
  onClose: () => void;
@@ -1879,16 +1883,33 @@ type SlotsGridProps = {
1879
1883
 
1880
1884
  declare const _default: React__default.NamedExoticComponent<SlotsGridProps>;
1881
1885
 
1882
- type PushNotificationsModalProps = JSX$1.IonModal & {
1886
+ type PushNotificationsModalProps = {
1883
1887
  onApplyPermission: () => void;
1884
- onDismissPermission: () => void;
1885
1888
  title: string;
1889
+ description: string;
1890
+ image: string;
1886
1891
  applyPermissionText: string;
1887
- dismissPermissionText: string;
1892
+ isOpen: boolean;
1893
+ presentingElement?: HTMLElement;
1894
+ onDidDismiss?: () => void;
1895
+ backButton?: boolean;
1896
+ canDismiss?: boolean;
1897
+ renderHeader?: (props: {
1898
+ backButton?: boolean;
1899
+ onClose: () => void;
1900
+ }) => React.ReactNode;
1901
+ };
1902
+
1903
+ declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
1904
+
1905
+ type PushNotificationsIsDisabledBannerProps = {
1906
+ onOpenNativeSettings: () => void;
1907
+ className?: string;
1908
+ title: string;
1888
1909
  description: string;
1889
- heightInPx?: number;
1910
+ buttonText: string;
1890
1911
  };
1891
1912
 
1892
- declare function PushNotificationsModal({ onApplyPermission, onDismissPermission, isOpen, title, description, heightInPx, applyPermissionText, dismissPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
1913
+ declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
1893
1914
 
1894
- export { AppFooter, _default$a as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$9 as Avatar_v2, _default$5 as Badge, _default$o as BookingScheduleTime, _default$n as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$J as ChatListItem, _default$H as ChatListSkeleton, _default$I as ChatMessage, ChatMessageSkeleton, _default$i as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$A as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$x as ConsultationModal, _default$v as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$j as CustomCheckbox, CustomRadioButton, _default$k as CustomSelect, _default$l as CustomTextarea, DatePicker, _default$t as DaySlider, DayToRender, _default$p as EducationCard, _default$G as EmptyChatList, EmptyChatMessages, _default$y as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$f as Flag, FlagTypes, _default$7 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowLeft, IconArrowRight, IconBeachAccess, _default$2 as IconButton, IconCalendar, IconCalendarMonth, IconChat3d, IconChatOutline, IconCheckboxChecked, IconCheckboxUnchecked, IconClose, IconEditCalendar, IconEye, IconEyeOff, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconResume, IconSettings, IconSpinner, IconStar, IconStarFilled, IconSuccess, IconTime, IconVerifiedUser, IconVisible, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$N as LetterAvatar, _default$g as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$K as MediaPlayer, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$M as PersonDateTimeCard, _default$6 as Picture, _default$e as ProfileInformation, _default$r as ProfileView, _default$h as ProgressBar, _default$1 as ProgressBar_v2, PushNotificationsModal, Range, _default$3 as Rating, _default$u as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScreenInput, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$L as SelectImpressionEmoji, _default$z as SignUpSessionButton, _default$w as SignUpSessionModal, Skeleton, _default$8 as Skeleton_v2, _default as SlotsGrid, _default$q as SpecialistAbout, SpecialistCard, _default$E as SpecialistEducationCard, SpecialistLangs, _default$d as SpecialistMatch, _default$D as SpecialistProfileViewCard, _default$c as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$m as TextInput, _default$F as Textarea, _default$4 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$b as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$B as VideoCallInfo, _default$C as VideoPlayer, _default$s as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, mergeRefs, toast, useAutoFocus, useDomRef, useEvent, useIsKeyBoardShown, useToastContext };
1915
+ export { AppFooter, _default$a as AppFooter_v2, AppHeader, AppHeader_v2, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$9 as Avatar_v2, _default$5 as Badge, _default$o as BookingScheduleTime, _default$n as BookingSpecialistInfo, Button, Button_v2, Calendar, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$J as ChatListItem, _default$H as ChatListSkeleton, _default$I as ChatMessage, ChatMessageSkeleton, _default$i as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, _default$A as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$x as ConsultationModal, _default$v as ConsultationSpecialistCard, Container, Container_v2, ContentCard, CountryOfOriginModal, CustomButton, _default$j as CustomCheckbox, CustomRadioButton, _default$k as CustomSelect, _default$l as CustomTextarea, DatePicker, _default$t as DaySlider, DayToRender, _default$p as EducationCard, _default$G as EmptyChatList, EmptyChatMessages, _default$y as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$f as Flag, FlagTypes, _default$7 as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconApple, IconArrowLeft, IconArrowRight, IconBeachAccess, _default$2 as IconButton, IconCalendar, IconCalendarMonth, IconChat3d, IconChatOutline, IconCheckboxChecked, IconCheckboxUnchecked, IconClose, IconEditCalendar, IconEye, IconEyeOff, IconGoogle, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLogout, IconNotificationMuted, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconResume, IconSettings, IconSpinner, IconStar, IconStarFilled, IconSuccess, IconTime, IconVerifiedUser, IconVisible, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, LanguagesList, _default$N as LetterAvatar, _default$g as LineFileInput, ListBox, ListBoxItem, ListButton, ListItemType, ListOption, ListSelect, ListSelectProps, LouseConnect, _default$K as MediaPlayer, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$M as PersonDateTimeCard, _default$6 as Picture, _default$e as ProfileInformation, _default$r as ProfileView, _default$h as ProgressBar, _default$1 as ProgressBar_v2, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$3 as Rating, _default$u as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, ScreenInput, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$L as SelectImpressionEmoji, _default$z as SignUpSessionButton, _default$w as SignUpSessionModal, Skeleton, _default$8 as Skeleton_v2, _default as SlotsGrid, _default$q as SpecialistAbout, SpecialistCard, _default$E as SpecialistEducationCard, SpecialistLangs, _default$d as SpecialistMatch, _default$D as SpecialistProfileViewCard, _default$c as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, Tag, _default$m as TextInput, _default$F as Textarea, _default$4 as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$b as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$B as VideoCallInfo, _default$C as VideoPlayer, _default$s 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.10.0",
3
+ "version": "5.11.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",