@mindly/ui-components 8.2.15 → 8.2.17

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 (68) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +2 -2
  3. package/dist/cjs/lib/ImageWithFallback/ImageWithFallback.d.ts +1 -1
  4. package/dist/cjs/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +2 -1
  5. package/dist/cjs/lib2/features/AppNotSupporedFeature/AppNotSupportedFeature.d.ts +2 -2
  6. package/dist/cjs/lib2/features/FilterFeature/FilterFeature.d.ts +1 -1
  7. package/dist/cjs/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +2 -1
  8. package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +2 -1
  9. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +2 -1
  10. package/dist/cjs/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +2 -1
  11. package/dist/cjs/lib2/features/TextWithClampFeature/types.d.ts +1 -0
  12. package/dist/cjs/lib2/shared/assets/icons/IconCheckCircle.d.ts +1 -1
  13. package/dist/cjs/lib2/shared/assets/icons/IconCheckboxChecked.d.ts +1 -1
  14. package/dist/cjs/lib2/shared/assets/icons/IconMinus.d.ts +2 -1
  15. package/dist/cjs/lib2/shared/assets/icons/IconPlus.d.ts +1 -1
  16. package/dist/cjs/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +1 -1
  17. package/dist/cjs/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +2 -2
  18. package/dist/cjs/lib2/shared/providers/ToastProvider/ToastProvider.d.ts +1 -1
  19. package/dist/cjs/lib2/shared/ui/Calendar/Calendar.d.ts +2 -1
  20. package/dist/cjs/lib2/shared/ui/Calendar/CalendarGrid.d.ts +1 -1
  21. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +2 -1
  22. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +2 -1
  23. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +2 -1
  24. package/dist/cjs/lib2/shared/ui/IconButton/IconButton.d.ts +1 -1
  25. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +2 -1
  26. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +1 -1
  27. package/dist/cjs/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +3 -2
  28. package/dist/cjs/lib2/shared/ui/Tabs/Tab.d.ts +3 -2
  29. package/dist/cjs/lib2/shared/ui/Tabs/TabPanel.d.ts +2 -1
  30. package/dist/cjs/lib2/shared/ui/Tabs/Tabs.d.ts +2 -1
  31. package/dist/cjs/lib2/shared/ui/Toast/Toast.d.ts +2 -1
  32. package/dist/cjs/lib2/shared/ui/Toast/ToastRegion.d.ts +2 -1
  33. package/dist/cjs/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +2 -1
  34. package/dist/esm/index.js +5 -5
  35. package/dist/esm/lib/AgoraMediaPlayer/AgoraMediaPlayer.d.ts +2 -2
  36. package/dist/esm/lib/ImageWithFallback/ImageWithFallback.d.ts +1 -1
  37. package/dist/esm/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +2 -1
  38. package/dist/esm/lib2/features/AppNotSupporedFeature/AppNotSupportedFeature.d.ts +2 -2
  39. package/dist/esm/lib2/features/FilterFeature/FilterFeature.d.ts +1 -1
  40. package/dist/esm/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +2 -1
  41. package/dist/esm/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +2 -1
  42. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +2 -1
  43. package/dist/esm/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +2 -1
  44. package/dist/esm/lib2/features/TextWithClampFeature/types.d.ts +1 -0
  45. package/dist/esm/lib2/shared/assets/icons/IconCheckCircle.d.ts +1 -1
  46. package/dist/esm/lib2/shared/assets/icons/IconCheckboxChecked.d.ts +1 -1
  47. package/dist/esm/lib2/shared/assets/icons/IconMinus.d.ts +2 -1
  48. package/dist/esm/lib2/shared/assets/icons/IconPlus.d.ts +1 -1
  49. package/dist/esm/lib2/shared/assets/icons/IconRadioButtonChecked.d.ts +1 -1
  50. package/dist/esm/lib2/shared/providers/CircleRatingProvider/CircleRatingProvider.d.ts +2 -2
  51. package/dist/esm/lib2/shared/providers/ToastProvider/ToastProvider.d.ts +1 -1
  52. package/dist/esm/lib2/shared/ui/Calendar/Calendar.d.ts +2 -1
  53. package/dist/esm/lib2/shared/ui/Calendar/CalendarGrid.d.ts +1 -1
  54. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +2 -1
  55. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +2 -1
  56. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +2 -1
  57. package/dist/esm/lib2/shared/ui/IconButton/IconButton.d.ts +1 -1
  58. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +2 -1
  59. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxItem.d.ts +1 -1
  60. package/dist/esm/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +3 -2
  61. package/dist/esm/lib2/shared/ui/Tabs/Tab.d.ts +3 -2
  62. package/dist/esm/lib2/shared/ui/Tabs/TabPanel.d.ts +2 -1
  63. package/dist/esm/lib2/shared/ui/Tabs/Tabs.d.ts +2 -1
  64. package/dist/esm/lib2/shared/ui/Toast/Toast.d.ts +2 -1
  65. package/dist/esm/lib2/shared/ui/Toast/ToastRegion.d.ts +2 -1
  66. package/dist/esm/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +2 -1
  67. package/dist/index.d.ts +36 -35
  68. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes } from 'react';
2
2
  interface Playable {
3
3
  play: (...args: any[]) => any;
4
4
  }
@@ -15,6 +15,6 @@ export type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTr
15
15
  showControls: boolean;
16
16
  isScreenSharing?: boolean;
17
17
  } & HTMLAttributes<HTMLDivElement>;
18
- declare const AgoraMediaPlayer: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
18
+ declare const AgoraMediaPlayer: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => React.ReactElement;
19
19
  declare const _default: typeof AgoraMediaPlayer;
20
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
2
+ export type ImageWithFallbackProps = React.ImgHTMLAttributes<HTMLImageElement> & {
3
3
  onErrorContent: React.ReactElement;
4
4
  };
5
5
  declare const ImageWithFallback: React.FC<ImageWithFallbackProps>;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  type AcceptAgreementFeatureProps = {
2
3
  isAccepted: boolean;
3
4
  setIsAccepted: (isAccepted: boolean) => void;
4
5
  handlePressLink: () => void;
5
6
  translations: string[];
6
7
  };
7
- export declare function AcceptAgreementFeature({ isAccepted, setIsAccepted, handlePressLink, translations, }: AcceptAgreementFeatureProps): JSX.Element;
8
+ export declare function AcceptAgreementFeature({ isAccepted, setIsAccepted, handlePressLink, translations, }: AcceptAgreementFeatureProps): React.ReactElement;
8
9
  export {};
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { TranslationType } from '../../shared/types';
3
3
  type AppNotSupportedProps = {
4
4
  isOpen: boolean;
5
5
  showMessenger: () => void;
6
6
  } & TranslationType;
7
- export declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
7
+ export declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): React.ReactElement;
8
8
  export {};
@@ -8,7 +8,7 @@ type FilterFeatureContextType = {
8
8
  modalRef: React.RefObject<HTMLIonModalElement | null>;
9
9
  } & FilterFeatureProps;
10
10
  export declare const useFilterFeatureContext: () => FilterFeatureContextType;
11
- declare function FilterFeature(props: PropsWithChildren<FilterFeatureProps>): JSX.Element;
11
+ declare function FilterFeature(props: PropsWithChildren<FilterFeatureProps>): React.ReactElement;
12
12
  declare namespace FilterFeature {
13
13
  var Select: React.FC<import("./FilterSelectFeature").FilterSelectFeatureProps>;
14
14
  var Chips: React.FC<import("./FilterChipsFeature").FilterChipsFeatureProps>;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { WithTranslation } from 'react-i18next';
2
3
  type GoogleCalendarModalFeatureProps = {
3
4
  isOpen: boolean;
@@ -9,5 +10,5 @@ type GoogleCalendarModalFeatureProps = {
9
10
  imageUrl: string;
10
11
  t: WithTranslation['t'];
11
12
  };
12
- export declare function GoogleCalendarModalFeature({ status, isOpen, onSync, isLoading, presentingElement, imageUrl, onDidDismiss, t, }: GoogleCalendarModalFeatureProps): JSX.Element;
13
+ export declare function GoogleCalendarModalFeature({ status, isOpen, onSync, isLoading, presentingElement, imageUrl, onDidDismiss, t, }: GoogleCalendarModalFeatureProps): React.ReactElement;
13
14
  export {};
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { OutdatedPersonalDataFeatureProps } from './types';
2
- export declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): JSX.Element;
3
+ export declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): React.ReactElement;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { PushNotificationsIsDisabledBannerProps } from './types';
2
- export declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
3
+ export declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): React.ReactElement;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { PushNotificationsModalProps } from './types';
2
- export declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
3
+ export declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): React.ReactElement;
@@ -4,6 +4,7 @@ export interface Props extends Omit<TypographyProps, 'children'> {
4
4
  className?: string;
5
5
  text: string;
6
6
  title?: string;
7
+ titleId?: string;
7
8
  titleIcon?: React.ReactNode;
8
9
  countLines?: number;
9
10
  expandType?: 'inline' | 'modal';
@@ -5,5 +5,5 @@ interface IconProps extends React.SVGAttributes<SVGElement> {
5
5
  className?: string;
6
6
  style?: React.CSSProperties;
7
7
  }
8
- export declare function IconCheckCircle({ color, size, ...props }: IconProps): JSX.Element;
8
+ export declare function IconCheckCircle({ color, size, ...props }: IconProps): React.ReactElement;
9
9
  export {};
@@ -3,5 +3,5 @@ interface IconProps extends React.SVGAttributes<SVGElement> {
3
3
  size?: number | string;
4
4
  color?: string;
5
5
  }
6
- export declare const IconCheckboxChecked: ({ color, size, ...other }: IconProps) => JSX.Element;
6
+ export declare const IconCheckboxChecked: ({ color, size, ...other }: IconProps) => React.ReactElement;
7
7
  export {};
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { IconProps } from '../../types';
2
- export declare function IconMinus({ color, size, ...other }: IconProps): JSX.Element;
3
+ export declare function IconMinus({ color, size, ...other }: IconProps): React.ReactElement;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  type IconPlusProps = React.SVGProps<any>;
3
- export declare function IconPlus({ color, ...props }: IconPlusProps): JSX.Element;
3
+ export declare function IconPlus({ color, ...props }: IconPlusProps): React.ReactElement;
4
4
  export {};
@@ -2,5 +2,5 @@ import * as React from 'react';
2
2
  interface IconProps extends React.SVGAttributes<SVGElement> {
3
3
  color?: string;
4
4
  }
5
- export declare const IconRadioButtonChecked: ({ color, ...rest }: IconProps) => JSX.Element;
5
+ export declare const IconRadioButtonChecked: ({ color, ...rest }: IconProps) => React.ReactElement;
6
6
  export {};
@@ -3,7 +3,7 @@ import { WithTranslation } from 'react-i18next';
3
3
  import { CircleRatingContextProps, CircleRatingContextData } from '../../types';
4
4
  export declare const CircleRatingContext: React.Context<CircleRatingContextData>;
5
5
  export declare const CircleRatingProvider: ({ children, data, t, }: {
6
- children: JSX.Element;
6
+ children: React.ReactElement;
7
7
  data: CircleRatingContextProps;
8
8
  t: WithTranslation["t"];
9
- }) => JSX.Element | null;
9
+ }) => React.ReactElement | null;
@@ -2,4 +2,4 @@ import * as React from 'react';
2
2
  import { ToastState } from '@react-stately/toast';
3
3
  import { MindlyToastProps, ToastProviderProps } from '../../ui/Toast/types';
4
4
  export declare const ToastContext: React.Context<ToastState<MindlyToastProps> | undefined>;
5
- export declare function ToastProvider({ children, ...props }: React.PropsWithChildren<ToastProviderProps>): JSX.Element;
5
+ export declare function ToastProvider({ children, ...props }: React.PropsWithChildren<ToastProviderProps>): React.ReactElement;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import { CalendarProps } from './types';
2
- export declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
3
+ export declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): React.ReactElement;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { CalendarGridProps } from './types';
3
- export declare function CalendarGrid({ state, selectionState, locale, isShowWeekNames, weekdayStyle, handleSelectionDateChange, selectionMode, onDatePress, offset, renderCustomDateContent, timeZone, ...props }: CalendarGridProps): JSX.Element;
3
+ export declare function CalendarGrid({ state, selectionState, locale, isShowWeekNames, weekdayStyle, handleSelectionDateChange, selectionMode, onDatePress, offset, renderCustomDateContent, timeZone, ...props }: CalendarGridProps): React.ReactElement;
4
4
  declare const _default: React.NamedExoticComponent<CalendarGridProps>;
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import { CalendarProps } from './types';
2
3
  type VerticalCalendarProps = CalendarProps & {
3
4
  visibleDuration?: number;
4
5
  };
5
- export declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): JSX.Element;
6
+ export declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): React.ReactElement;
6
7
  export {};
@@ -1,5 +1,6 @@
1
+ import * as React from 'react';
1
2
  type VerticalCalendarMonthSkeletonProps = {
2
3
  days: number;
3
4
  };
4
- export declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): JSX.Element;
5
+ export declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): React.ReactElement;
5
6
  export {};
@@ -1 +1,2 @@
1
- export declare function VerticalCalendarSkeleton(): JSX.Element;
1
+ import * as React from 'react';
2
+ export declare function VerticalCalendarSkeleton(): React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  type IconButtonProps = {
3
- icon: JSX.Element;
3
+ icon: React.ReactElement;
4
4
  className?: string;
5
5
  routerLink?: string;
6
6
  onClick?: (e: React.MouseEvent<HTMLIonButtonElement>) => void;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { ListBoxProps } from './types';
2
- export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): JSX.Element;
3
+ export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): React.ReactElement;
@@ -4,4 +4,4 @@ import { ListBoxItemProps, ListOptionsProps } from './types';
4
4
  export declare const ListOption: React.ForwardRefExoticComponent<ListOptionsProps & {
5
5
  maxSelectionCount?: number;
6
6
  } & React.RefAttributes<HTMLIonItemElement>>;
7
- export declare const ListBoxItem: (props: ItemProps<unknown> & ListBoxItemProps) => JSX.Element;
7
+ export declare const ListBoxItem: (props: ItemProps<unknown> & ListBoxItemProps) => React.ReactElement;
@@ -1,10 +1,11 @@
1
+ import React from 'react';
1
2
  export declare function CircleRatingIcon({ index, className, }: {
2
3
  index: number;
3
4
  className: string;
4
- }): JSX.Element;
5
+ }): React.ReactElement;
5
6
  export declare function CircleBreakpointIcon({ index, top, left, className, }: {
6
7
  index: number;
7
8
  top: number;
8
9
  left: number;
9
10
  className: string;
10
- }): JSX.Element;
11
+ }): React.ReactElement;
@@ -1,14 +1,15 @@
1
1
  import { ItemProps, Node, TabListState } from 'react-stately';
2
+ import React from 'react';
2
3
  type TabProps<T> = {
3
4
  item: Node<T> & {
4
5
  textTransform?: 'uppercase' | 'capitalize' | 'lowercase' | 'none';
5
6
  };
6
7
  state: TabListState<T>;
7
8
  };
8
- export declare function Tab<T extends Record<string, unknown>>({ item, state, }: TabProps<T>): JSX.Element;
9
+ export declare function Tab<T extends Record<string, unknown>>({ item, state, }: TabProps<T>): React.ReactElement;
9
10
  export declare const TabItem: (props: ItemProps<unknown> & {
10
11
  onClick?: () => void;
11
12
  className?: string;
12
13
  textTransform?: 'uppercase' | 'capitalize' | 'lowercase' | 'none';
13
- }) => JSX.Element;
14
+ }) => React.ReactElement;
14
15
  export {};
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import { AriaTabPanelProps } from 'react-aria';
2
3
  import type { TabListState } from 'react-stately';
3
4
  type TabPanelProps<T> = AriaTabPanelProps & {
4
5
  state: TabListState<T>;
5
6
  };
6
- export declare function TabPanel<T extends Record<string, unknown>>({ state, ...props }: TabPanelProps<T>): JSX.Element;
7
+ export declare function TabPanel<T extends Record<string, unknown>>({ state, ...props }: TabPanelProps<T>): React.ReactElement;
7
8
  export declare namespace TabPanel {
8
9
  var displayName: string;
9
10
  }
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { AriaTabListProps } from 'react-aria';
2
3
  type TabsProps<T> = AriaTabListProps<T> & {
3
4
  className?: string;
4
5
  };
5
- export declare function Tabs<T extends Record<string, unknown>>(props: TabsProps<T>): JSX.Element;
6
+ export declare function Tabs<T extends Record<string, unknown>>(props: TabsProps<T>): React.ReactElement;
6
7
  export declare namespace Tabs {
7
8
  var displayName: string;
8
9
  }
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import './Toast.css';
2
3
  import { ToastProps } from './types';
3
- export declare function Toast<T>({ state, ...props }: ToastProps<T>): JSX.Element;
4
+ export declare function Toast<T>({ state, ...props }: ToastProps<T>): React.ReactElement;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { ToastRegionProps } from './types';
2
- export declare function ToastRegion<T>({ state, ...props }: ToastRegionProps<T>): JSX.Element;
3
+ export declare function ToastRegion<T>({ state, ...props }: ToastRegionProps<T>): React.ReactElement;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  type UpdateContractWidgetProps = {
2
3
  isAccepted: boolean;
3
4
  setIsAccepted: (isAccepted: boolean) => void;
@@ -10,5 +11,5 @@ type UpdateContractWidgetProps = {
10
11
  agreementText: string[];
11
12
  isLoading?: boolean;
12
13
  };
13
- export declare function UpdateContractWidget({ applyText, onApply, heading, image, avatar, agreementText, handlePressLink, isAccepted, setIsAccepted, isLoading, }: UpdateContractWidgetProps): JSX.Element;
14
+ export declare function UpdateContractWidget({ applyText, onApply, heading, image, avatar, agreementText, handlePressLink, isAccepted, setIsAccepted, isLoading, }: UpdateContractWidgetProps): React.ReactElement;
14
15
  export {};
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
2
2
  import React__default, { CSSProperties, FC, HTMLAttributes, SVGAttributes, PropsWithChildren, KeyboardEvent, InputHTMLAttributes, RefObject, EffectCallback, DependencyList, SVGProps, ReactNode, ReactElement, ChangeEvent } from 'react';
3
3
  import * as _ionic_core from '@ionic/core';
4
4
  import { RangeValue, IonSearchbarCustomEvent, SearchbarChangeEventDetail, TextFieldTypes } from '@ionic/core';
5
- import { JSX as JSX$1 } from '@ionic/core/components';
5
+ import { JSX } from '@ionic/core/components';
6
6
  import { WithTranslation } from 'react-i18next';
7
7
  import { SwiperRef, SwiperProps } from 'swiper/react';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -84,7 +84,7 @@ type LetterAvatarProps = {
84
84
  };
85
85
  declare const _default$1k: React__default.NamedExoticComponent<LetterAvatarProps>;
86
86
 
87
- type ImageWithFallbackProps = JSX.IntrinsicElements['img'] & {
87
+ type ImageWithFallbackProps = React__default.ImgHTMLAttributes<HTMLImageElement> & {
88
88
  onErrorContent: React__default.ReactElement;
89
89
  };
90
90
  declare const ImageWithFallback: React__default.FC<ImageWithFallbackProps>;
@@ -177,7 +177,7 @@ type MediaPlayerProps<TCameraTrack extends Playable | undefined, TAudioTrack ext
177
177
  showControls: boolean;
178
178
  isScreenSharing?: boolean;
179
179
  } & HTMLAttributes<HTMLDivElement>;
180
- declare const AgoraMediaPlayer: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => JSX.Element;
180
+ declare const AgoraMediaPlayer: <TCameraTrack extends Playable | undefined, TAudioTrack extends Playable | undefined>({ fullwidth, cameraTrack, audioTrack, isVideoTrackMuted, isAudioTrackMuted, networkQuality, fallbackAvatar, fallbackAvatarDimensions, fallbackName, showControls, isScreenSharing, ...props }: MediaPlayerProps<TCameraTrack, TAudioTrack>) => React__default.ReactElement;
181
181
  declare const _default$1j: typeof AgoraMediaPlayer;
182
182
 
183
183
  type RoundButtonPropsType = {
@@ -252,7 +252,7 @@ type SkeletonProps$1 = {
252
252
  widthPx?: number;
253
253
  heightPx?: number;
254
254
  style?: React__default.CSSProperties;
255
- } & Omit<JSX$1.IonSkeletonText, 'animated'>;
255
+ } & Omit<JSX.IonSkeletonText, 'animated'>;
256
256
  /**
257
257
  * @deprecated
258
258
  */
@@ -271,7 +271,7 @@ type VideoPlayerProps = {
271
271
  videoLink: string;
272
272
  closeModalHandler?: () => void;
273
273
  onErrorContent: React__default.ReactElement;
274
- } & JSX$1.IonModal;
274
+ } & JSX.IonModal;
275
275
  declare const _default$1i: React__default.NamedExoticComponent<VideoPlayerProps>;
276
276
 
277
277
  type NotSupportModalProps = {
@@ -286,7 +286,7 @@ type NotSupportModalProps = {
286
286
  downloadChromeText: string;
287
287
  attention: string;
288
288
  };
289
- } & JSX$1.IonModal;
289
+ } & JSX.IonModal;
290
290
  declare const NotSupportModal: React__default.FC<NotSupportModalProps>;
291
291
 
292
292
  declare enum TypographyVariantsEnum {
@@ -1372,7 +1372,7 @@ type ButtonProps$1 = {
1372
1372
  style?: CSSVarStyles;
1373
1373
  id?: string;
1374
1374
  variant?: 'default' | 'blue' | 'custom';
1375
- } & JSX$1.IonButton;
1375
+ } & JSX.IonButton;
1376
1376
 
1377
1377
  declare const Button_v2: FC<PropsWithChildren<ButtonProps$1>>;
1378
1378
 
@@ -1468,7 +1468,7 @@ type ListBoxProps<T> = AriaListBoxProps<T> & {
1468
1468
  t?: WithTranslation['t'];
1469
1469
  };
1470
1470
 
1471
- declare function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): JSX.Element;
1471
+ declare function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, onboardingTheme, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): React$1.ReactElement;
1472
1472
 
1473
1473
  type ListOptionsProps = {
1474
1474
  item: Node<unknown>;
@@ -1505,7 +1505,7 @@ type ListBoxItemProps = {
1505
1505
  declare const ListOption: React$1.ForwardRefExoticComponent<ListOptionsProps & {
1506
1506
  maxSelectionCount?: number;
1507
1507
  } & React$1.RefAttributes<HTMLIonItemElement>>;
1508
- declare const ListBoxItem: (props: ItemProps$1<unknown> & ListBoxItemProps) => JSX.Element;
1508
+ declare const ListBoxItem: (props: ItemProps$1<unknown> & ListBoxItemProps) => React$1.ReactElement;
1509
1509
 
1510
1510
  type BaseTypeProps = {
1511
1511
  onDatePress?: (date: string, evt: React$1.MouseEvent<HTMLButtonElement>) => void;
@@ -1527,21 +1527,21 @@ type CalendarProps = Omit<AriaCalendarProps<DateValue>, 'minValue' | 'defaultVal
1527
1527
  onSelectionChange: (dates: string[]) => void;
1528
1528
  };
1529
1529
 
1530
- declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
1530
+ declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): React__default.ReactElement;
1531
1531
 
1532
1532
  type VerticalCalendarProps = CalendarProps & {
1533
1533
  visibleDuration?: number;
1534
1534
  };
1535
- declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): JSX.Element;
1535
+ declare function VerticalCalendar({ maxValue, timeZone, locale, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, minValue, visibleDuration, ...props }: VerticalCalendarProps): React__default.ReactElement;
1536
1536
 
1537
1537
  type VerticalCalendarMonthSkeletonProps = {
1538
1538
  days: number;
1539
1539
  };
1540
- declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): JSX.Element;
1540
+ declare function VerticalCalendarMonthSkeleton({ days, }: VerticalCalendarMonthSkeletonProps): React$1.ReactElement;
1541
1541
 
1542
- declare function VerticalCalendarSkeleton(): JSX.Element;
1542
+ declare function VerticalCalendarSkeleton(): React$1.ReactElement;
1543
1543
 
1544
- interface TextareaV2Props extends Omit<JSX$1.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
1544
+ interface TextareaV2Props extends Omit<JSX.IonTextarea, 'color' | 'enterkeyhint' | 'inputmode' | 'mode'> {
1545
1545
  borderTop?: boolean;
1546
1546
  showCounter?: boolean;
1547
1547
  className?: string;
@@ -1570,7 +1570,7 @@ declare const RatingCircleWrapper: FC<CircleRatingComponentProps & {
1570
1570
  }>;
1571
1571
 
1572
1572
  type IconButtonProps = {
1573
- icon: JSX.Element;
1573
+ icon: React__default.ReactElement;
1574
1574
  className?: string;
1575
1575
  routerLink?: string;
1576
1576
  onClick?: (e: React__default.MouseEvent<HTMLIonButtonElement>) => void;
@@ -1588,7 +1588,7 @@ interface ToastRegionProps<T> extends AriaToastRegionProps {
1588
1588
  state: ToastState<T>;
1589
1589
  }
1590
1590
 
1591
- declare function ToastRegion<T>({ state, ...props }: ToastRegionProps<T>): JSX.Element;
1591
+ declare function ToastRegion<T>({ state, ...props }: ToastRegionProps<T>): React$1.ReactElement;
1592
1592
 
1593
1593
  interface ScreenInputProps extends InputHTMLAttributes<HTMLInputElement> {
1594
1594
  variant?: 'default' | 'large';
@@ -1767,7 +1767,7 @@ declare function CollapsableText({ t, text, size, fontWeight, }: CollapsableText
1767
1767
  type TabsProps<T> = AriaTabListProps<T> & {
1768
1768
  className?: string;
1769
1769
  };
1770
- declare function Tabs$1<T extends Record<string, unknown>>(props: TabsProps<T>): JSX.Element;
1770
+ declare function Tabs$1<T extends Record<string, unknown>>(props: TabsProps<T>): React__default.ReactElement;
1771
1771
  declare namespace Tabs$1 {
1772
1772
  var displayName: string;
1773
1773
  }
@@ -1776,7 +1776,7 @@ declare const TabItem: (props: ItemProps$1<unknown> & {
1776
1776
  onClick?: () => void;
1777
1777
  className?: string;
1778
1778
  textTransform?: 'uppercase' | 'capitalize' | 'lowercase' | 'none';
1779
- }) => JSX.Element;
1779
+ }) => React__default.ReactElement;
1780
1780
 
1781
1781
  type SimpleTabsProps = {
1782
1782
  tabs: {
@@ -1936,14 +1936,14 @@ type ThemeProviderProps = {
1936
1936
  declare const ThemeProvider: FC<PropsWithChildren<ThemeProviderProps>>;
1937
1937
 
1938
1938
  declare const ToastContext: React$1.Context<ToastState<MindlyToastProps> | undefined>;
1939
- declare function ToastProvider({ children, ...props }: React$1.PropsWithChildren<ToastProviderProps>): JSX.Element;
1939
+ declare function ToastProvider({ children, ...props }: React$1.PropsWithChildren<ToastProviderProps>): React$1.ReactElement;
1940
1940
 
1941
1941
  declare const CircleRatingContext: React__default.Context<CircleRatingContextData>;
1942
1942
  declare const CircleRatingProvider: ({ children, data, t, }: {
1943
- children: JSX.Element;
1943
+ children: React__default.ReactElement;
1944
1944
  data: CircleRatingContextProps;
1945
1945
  t: WithTranslation["t"];
1946
- }) => JSX.Element | null;
1946
+ }) => React__default.ReactElement | null;
1947
1947
 
1948
1948
  type VideoContextValue = {
1949
1949
  currentSrc: string | undefined;
@@ -2123,7 +2123,7 @@ interface IconProps$B extends React$1.SVGAttributes<SVGElement> {
2123
2123
  size?: number | string;
2124
2124
  color?: string;
2125
2125
  }
2126
- declare const IconCheckboxChecked: ({ color, size, ...other }: IconProps$B) => JSX.Element;
2126
+ declare const IconCheckboxChecked: ({ color, size, ...other }: IconProps$B) => React$1.ReactElement;
2127
2127
 
2128
2128
  interface IconProps$A extends React$1.SVGAttributes<SVGElement> {
2129
2129
  size?: number | string;
@@ -2165,10 +2165,10 @@ interface IconProps$v extends React$1.SVGAttributes<SVGElement> {
2165
2165
  }
2166
2166
  declare function IconPause({ color, size, ...other }: IconProps$v): react_jsx_runtime.JSX.Element;
2167
2167
 
2168
- declare function IconMinus({ color, size, ...other }: IconProps$H): JSX.Element;
2168
+ declare function IconMinus({ color, size, ...other }: IconProps$H): React$1.ReactElement;
2169
2169
 
2170
2170
  type IconPlusProps = React$1.SVGProps<any>;
2171
- declare function IconPlus({ color, ...props }: IconPlusProps): JSX.Element;
2171
+ declare function IconPlus({ color, ...props }: IconPlusProps): React$1.ReactElement;
2172
2172
 
2173
2173
  interface IconProps$u extends React$1.SVGAttributes<SVGElement> {
2174
2174
  size?: number | string;
@@ -2344,7 +2344,7 @@ declare const IconArrowDown: ({ width, height, color, ...other }: SVGProps<SVGSV
2344
2344
  interface IconProps$e extends React$1.SVGAttributes<SVGElement> {
2345
2345
  color?: string;
2346
2346
  }
2347
- declare const IconRadioButtonChecked: ({ color, ...rest }: IconProps$e) => JSX.Element;
2347
+ declare const IconRadioButtonChecked: ({ color, ...rest }: IconProps$e) => React$1.ReactElement;
2348
2348
 
2349
2349
  interface IconProps$d extends React$1.SVGAttributes<SVGElement> {
2350
2350
  size?: number | string;
@@ -2408,7 +2408,7 @@ interface IconProps$8 extends React$1.SVGAttributes<SVGElement> {
2408
2408
  className?: string;
2409
2409
  style?: React$1.CSSProperties;
2410
2410
  }
2411
- declare function IconCheckCircle({ color, size, ...props }: IconProps$8): JSX.Element;
2411
+ declare function IconCheckCircle({ color, size, ...props }: IconProps$8): React$1.ReactElement;
2412
2412
 
2413
2413
  interface IconProps$7 extends React$1.SVGAttributes<SVGElement> {
2414
2414
  size?: number | string;
@@ -2619,7 +2619,7 @@ type CountryOfOriginModalProps = {
2619
2619
  searchValue: string;
2620
2620
  searchPlaceholder?: string;
2621
2621
  onItemClick: (clickedItem: string) => void;
2622
- } & JSX$1.IonModal;
2622
+ } & JSX.IonModal;
2623
2623
 
2624
2624
  declare const CountryOfOriginModal: React__default.FC<CountryOfOriginModalProps & WithTranslation>;
2625
2625
 
@@ -2627,7 +2627,7 @@ type LanguagesType = {
2627
2627
  name: string;
2628
2628
  code: string;
2629
2629
  };
2630
- type ChangeLanguageModalProps = JSX$1.IonModal & {
2630
+ type ChangeLanguageModalProps = JSX.IonModal & {
2631
2631
  onModalClose: () => void;
2632
2632
  title: string;
2633
2633
  selected: string;
@@ -2698,7 +2698,7 @@ type PushNotificationsModalProps = {
2698
2698
  }) => React$1.ReactNode;
2699
2699
  };
2700
2700
 
2701
- declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
2701
+ declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): React$1.ReactElement;
2702
2702
 
2703
2703
  type PushNotificationsIsDisabledBannerProps = {
2704
2704
  onOpenNativeSettings: () => void;
@@ -2708,7 +2708,7 @@ type PushNotificationsIsDisabledBannerProps = {
2708
2708
  buttonText: string;
2709
2709
  };
2710
2710
 
2711
- declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
2711
+ declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): React$1.ReactElement;
2712
2712
 
2713
2713
  type SpecialistShortInfoItemFeatureProps = React__default.PropsWithChildren<{
2714
2714
  t?: WithTranslation['t'];
@@ -2840,7 +2840,7 @@ type GoogleCalendarModalFeatureProps = {
2840
2840
  imageUrl: string;
2841
2841
  t: WithTranslation['t'];
2842
2842
  };
2843
- declare function GoogleCalendarModalFeature({ status, isOpen, onSync, isLoading, presentingElement, imageUrl, onDidDismiss, t, }: GoogleCalendarModalFeatureProps): JSX.Element;
2843
+ declare function GoogleCalendarModalFeature({ status, isOpen, onSync, isLoading, presentingElement, imageUrl, onDidDismiss, t, }: GoogleCalendarModalFeatureProps): React$1.ReactElement;
2844
2844
 
2845
2845
  type ReviewCardFeatureVariantType = 'default' | 'outlined' | 'full' | 'store' | 'starFirst';
2846
2846
  declare const _default$O: React__default.NamedExoticComponent<{
@@ -2867,7 +2867,7 @@ type AppNotSupportedProps = {
2867
2867
  isOpen: boolean;
2868
2868
  showMessenger: () => void;
2869
2869
  } & TranslationType;
2870
- declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): JSX.Element;
2870
+ declare function AppNotSupportedFeature({ isOpen, showMessenger, t, children, }: PropsWithChildren<AppNotSupportedProps>): React__default.ReactElement;
2871
2871
 
2872
2872
  type ScreenInputUpdateFeatureProps = React__default.PropsWithChildren<{
2873
2873
  title: string;
@@ -2922,7 +2922,7 @@ type OutdatedPersonalDataFeatureProps = {
2922
2922
  onDismiss: () => void;
2923
2923
  };
2924
2924
 
2925
- declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): JSX.Element;
2925
+ declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): React__default.ReactElement;
2926
2926
 
2927
2927
  type ScreenInputFormFeatureProps = {
2928
2928
  type?: 'text' | 'email' | 'number';
@@ -2988,7 +2988,7 @@ type AcceptAgreementFeatureProps = {
2988
2988
  handlePressLink: () => void;
2989
2989
  translations: string[];
2990
2990
  };
2991
- declare function AcceptAgreementFeature({ isAccepted, setIsAccepted, handlePressLink, translations, }: AcceptAgreementFeatureProps): JSX.Element;
2991
+ declare function AcceptAgreementFeature({ isAccepted, setIsAccepted, handlePressLink, translations, }: AcceptAgreementFeatureProps): React__default.ReactElement;
2992
2992
 
2993
2993
  type SelectWithSearchFormFeatureProps = {
2994
2994
  title?: string;
@@ -3148,6 +3148,7 @@ interface Props$2 extends Omit<TypographyProps, 'children'> {
3148
3148
  className?: string;
3149
3149
  text: string;
3150
3150
  title?: string;
3151
+ titleId?: string;
3151
3152
  titleIcon?: React.ReactNode;
3152
3153
  countLines?: number;
3153
3154
  expandType?: 'inline' | 'modal';
@@ -3943,7 +3944,7 @@ type UpdateContractWidgetProps = {
3943
3944
  agreementText: string[];
3944
3945
  isLoading?: boolean;
3945
3946
  };
3946
- declare function UpdateContractWidget({ applyText, onApply, heading, image, avatar, agreementText, handlePressLink, isAccepted, setIsAccepted, isLoading, }: UpdateContractWidgetProps): JSX.Element;
3947
+ declare function UpdateContractWidget({ applyText, onApply, heading, image, avatar, agreementText, handlePressLink, isAccepted, setIsAccepted, isLoading, }: UpdateContractWidgetProps): React__default.ReactElement;
3947
3948
 
3948
3949
  type SpecialistDetailWidgetProps = {
3949
3950
  locale: SupportedLocales;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "8.2.15",
3
+ "version": "8.2.17",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -188,8 +188,9 @@
188
188
  },
189
189
  "homepage": "https://github.com/iHUB-Projects/UI-components#readme",
190
190
  "resolutions": {
191
- "@types/react": "17.0.87",
192
- "@types/react-dom": "17.0.26"
191
+ "@types/react": "19.2.3",
192
+ "@types/react-dom": "19.2.3",
193
+ "react-rating/@types/react": "19.2.3"
193
194
  },
194
195
  "lint-staged": {
195
196
  "src/**/*.{ts,tsx}": [