@mindly/ui-components 6.6.0-dev.1 → 6.6.0-dev.11

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 (54) hide show
  1. package/dist/cjs/index.js +8 -8
  2. package/dist/cjs/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +0 -1
  3. package/dist/cjs/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +0 -1
  4. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/CounterProgress.d.ts +19 -0
  5. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/DefaultProgress.d.ts +15 -0
  6. package/dist/cjs/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +6 -1
  7. package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +0 -1
  8. package/dist/cjs/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +0 -1
  9. package/dist/cjs/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +0 -1
  10. package/dist/cjs/lib2/shared/assets/icons/IconArrowLeft.d.ts +1 -1
  11. package/dist/cjs/lib2/shared/assets/icons/IconMinus.d.ts +0 -1
  12. package/dist/cjs/lib2/shared/hooks/useStopPropagationEvent.d.ts +2 -1
  13. package/dist/cjs/lib2/shared/providers/AuthProvider/AuthProvider.d.ts +11 -3
  14. package/dist/cjs/lib2/shared/types/onBoardingFlow.type.d.ts +18 -0
  15. package/dist/cjs/lib2/shared/ui/Calendar/Calendar.d.ts +0 -1
  16. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +0 -1
  17. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +0 -1
  18. package/dist/cjs/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +0 -1
  19. package/dist/cjs/lib2/shared/ui/ListBox/ListBox.d.ts +0 -1
  20. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  21. package/dist/cjs/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  22. package/dist/cjs/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +0 -1
  23. package/dist/cjs/lib2/shared/ui/Tabs/Tab.d.ts +0 -1
  24. package/dist/cjs/lib2/shared/ui/Tabs/TabPanel.d.ts +0 -1
  25. package/dist/cjs/lib2/shared/ui/Tabs/Tabs.d.ts +0 -1
  26. package/dist/cjs/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +0 -1
  27. package/dist/esm/index.js +8 -8
  28. package/dist/esm/lib2/features/AcceptAgreementFeature/AcceptAgreemnetFeature.d.ts +0 -1
  29. package/dist/esm/lib2/features/GoogleCalendarModalFeature/GoogleCalendarModalFeature.d.ts +0 -1
  30. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/CounterProgress.d.ts +19 -0
  31. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/DefaultProgress.d.ts +15 -0
  32. package/dist/esm/lib2/features/OnBoardingFlow/OnBoardingProgressFeature/OnBoardingProgressFeature.d.ts +6 -1
  33. package/dist/esm/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +0 -1
  34. package/dist/esm/lib2/features/PushNotificationsIsDisabledBanner/PushNotificationsIsDisabledBanner.d.ts +0 -1
  35. package/dist/esm/lib2/features/PushNotificationsModal/PushNotificationsModal.d.ts +0 -1
  36. package/dist/esm/lib2/shared/assets/icons/IconArrowLeft.d.ts +1 -1
  37. package/dist/esm/lib2/shared/assets/icons/IconMinus.d.ts +0 -1
  38. package/dist/esm/lib2/shared/hooks/useStopPropagationEvent.d.ts +2 -1
  39. package/dist/esm/lib2/shared/providers/AuthProvider/AuthProvider.d.ts +11 -3
  40. package/dist/esm/lib2/shared/types/onBoardingFlow.type.d.ts +18 -0
  41. package/dist/esm/lib2/shared/ui/Calendar/Calendar.d.ts +0 -1
  42. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendar.d.ts +0 -1
  43. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarMonthSkeleton.d.ts +0 -1
  44. package/dist/esm/lib2/shared/ui/Calendar/VerticalCalendarSkeleton.d.ts +0 -1
  45. package/dist/esm/lib2/shared/ui/ListBox/ListBox.d.ts +0 -1
  46. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxDefaultItem.d.ts +1 -1
  47. package/dist/esm/lib2/shared/ui/ListBoxItem/ListBoxIconItem.d.ts +1 -1
  48. package/dist/esm/lib2/shared/ui/RatingCircle/RatingCircleIcons.d.ts +0 -1
  49. package/dist/esm/lib2/shared/ui/Tabs/Tab.d.ts +0 -1
  50. package/dist/esm/lib2/shared/ui/Tabs/TabPanel.d.ts +0 -1
  51. package/dist/esm/lib2/shared/ui/Tabs/Tabs.d.ts +0 -1
  52. package/dist/esm/lib2/widgets/UpdateContractWidget/UpdateContractWidget.d.ts +0 -1
  53. package/dist/index.d.ts +35 -6
  54. package/package.json +2 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type AcceptAgreementFeatureProps = {
3
2
  isAccepted: boolean;
4
3
  setIsAccepted: (isAccepted: boolean) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WithTranslation } from 'react-i18next';
3
2
  type GoogleCalendarModalFeatureProps = {
4
3
  isOpen: boolean;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { OnBoardingScreenStyleOptions, ResponseFileType, OnBoardingProgressSettingsScreenType } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
4
+ type CounterProgressProps = {
5
+ progress: number;
6
+ isPreview?: boolean;
7
+ isBackButtonDisabled?: boolean;
8
+ onBackButtonClick?: () => void;
9
+ contentStyle?: OnBoardingScreenStyleOptions;
10
+ startAdornment?: React.ReactNode;
11
+ variant?: OnboardingVariant;
12
+ empty?: boolean;
13
+ totalCount?: number;
14
+ currentCount?: number;
15
+ image?: ResponseFileType | null;
16
+ progressSettings?: OnBoardingProgressSettingsScreenType | null;
17
+ };
18
+ declare const _default: React.NamedExoticComponent<CounterProgressProps>;
19
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { OnBoardingScreenStyleOptions } from '../../../shared';
3
+ import { OnboardingVariant } from '../../../shared';
4
+ type DefaultProgressProps = {
5
+ progress: number;
6
+ isPreview?: boolean;
7
+ isBackButtonDisabled?: boolean;
8
+ onBackButtonClick?: () => void;
9
+ contentStyle?: OnBoardingScreenStyleOptions;
10
+ startAdornment?: React.ReactNode;
11
+ variant?: OnboardingVariant;
12
+ empty?: boolean;
13
+ };
14
+ declare const _default: React.NamedExoticComponent<DefaultProgressProps>;
15
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { OnBoardingScreenStyleOptions } from '../../../shared';
2
+ import { OnBoardingProgressSettingsScreenType, OnBoardingScreenStyleOptions, ResponseFileType } from '../../../shared';
3
3
  import { OnboardingVariant } from '../../../shared';
4
4
  type OnBoardingProgressFeatureProps = {
5
5
  progress: number;
@@ -10,6 +10,11 @@ type OnBoardingProgressFeatureProps = {
10
10
  startAdornment?: React.ReactNode;
11
11
  variant?: OnboardingVariant;
12
12
  empty?: boolean;
13
+ template?: 'default' | 'counter';
14
+ totalCount?: number;
15
+ currentCount?: number;
16
+ image?: ResponseFileType | null;
17
+ progressSettings?: OnBoardingProgressSettingsScreenType | null;
13
18
  };
14
19
  declare const _default: React.NamedExoticComponent<OnBoardingProgressFeatureProps>;
15
20
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { OutdatedPersonalDataFeatureProps } from './types';
3
2
  export declare function OutdatedPersonalDataFeature({ isOpen, presentingElement, onApply, onDismiss, subtitle, title, applyText, }: OutdatedPersonalDataFeatureProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PushNotificationsIsDisabledBannerProps } from './types';
3
2
  export declare function PushNotificationsIsDisabledBanner({ onOpenNativeSettings, className, title, description, buttonText, }: PushNotificationsIsDisabledBannerProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PushNotificationsModalProps } from './types';
3
2
  export declare function PushNotificationsModal({ onApplyPermission, isOpen, title, description, image, applyPermissionText, ...props }: PushNotificationsModalProps): JSX.Element;
@@ -3,5 +3,5 @@ interface IconProps extends React.SVGAttributes<SVGElement> {
3
3
  size?: number | string;
4
4
  color?: string;
5
5
  }
6
- export declare function IconArrowLeft({ color, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function IconArrowLeft({ color, size, ...other }: IconProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IconProps } from '../../types';
3
2
  export declare function IconMinus({ color, size, ...other }: IconProps): JSX.Element;
@@ -1 +1,2 @@
1
- export declare const useStopPropagationEvent: (ref: React.RefObject<HTMLElement>, event: string) => void;
1
+ import { DependencyList } from 'react';
2
+ export declare const useStopPropagationEvent: (ref: React.RefObject<HTMLElement>, event: string, deps?: DependencyList) => void;
@@ -1,4 +1,12 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
+ import { User } from '@capacitor-firebase/authentication';
2
3
  import { AuthContextType } from './types';
3
- export declare const AuthContext: React.Context<AuthContextType | null>;
4
- export declare const AuthProvider: FC;
4
+ export declare const AuthContext: import("react").Context<AuthContextType | null>;
5
+ type AuthProviderProps = {
6
+ /**
7
+ * REMOVE WHEN WE MOVE AUTH TO NATIVE CAPACITOR PLUGIN
8
+ */
9
+ webAuthListener?: (callback: (user: User | null) => void) => () => void;
10
+ };
11
+ export declare const AuthProvider: FC<AuthProviderProps>;
12
+ export {};
@@ -62,6 +62,10 @@ export type OnBoardingScreenSubgoalButtonType = {
62
62
  subgoalButtonColor?: string | null;
63
63
  subgoalButtonTextColor?: string | null;
64
64
  };
65
+ export type OnBoardingScreenProgressType = {
66
+ template?: OnboardingProgressTemplate;
67
+ image?: ResponseFileType | null;
68
+ };
65
69
  export type OnBoardingScreenSkipButtonType = {
66
70
  skipButtonText?: string | null;
67
71
  showSkipButton?: boolean;
@@ -90,6 +94,13 @@ export type OnBoardingScreenTranslationsType = {
90
94
  export type OnBoardingScreenErrorsType = {
91
95
  errors?: Record<string, string>;
92
96
  };
97
+ export type OnBoardingProgressSettingsScreenType = {
98
+ isBackButton?: boolean;
99
+ isLogo?: boolean;
100
+ isCounter?: boolean;
101
+ isProgress?: boolean;
102
+ horizontalImageAlignment?: 'left' | 'right' | 'center';
103
+ };
93
104
  export type OnBoardingBaseScreenType = {
94
105
  id: string;
95
106
  type: OnBoardingScreenOptions;
@@ -109,6 +120,8 @@ export type OnBoardingBaseScreenType = {
109
120
  isStartScreen?: boolean;
110
121
  backgroundColor?: string | null;
111
122
  contentStyle: OnBoardingScreenStyleOptions;
123
+ progressSettings?: OnBoardingProgressSettingsScreenType;
124
+ isProgressVisible?: boolean;
112
125
  /**
113
126
  * @deprecated This field is deprecated and will be removed in future versions
114
127
  */
@@ -249,8 +262,13 @@ export type OnBoardingFlowType = {
249
262
  duration_min?: number | null;
250
263
  isDefault?: boolean;
251
264
  theme?: OnboardingVariant;
265
+ progress?: OnBoardingScreenProgressType;
252
266
  };
253
267
  export declare enum OnboardingVariant {
254
268
  default = "default",
255
269
  blue = "blue"
256
270
  }
271
+ export declare enum OnboardingProgressTemplate {
272
+ default = "default",
273
+ counter = "counter"
274
+ }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { CalendarProps } from './types';
3
2
  export declare function Calendar({ maxValue, minValue, timeZone, locale, isShowWeekNames, isShowMonthNavigation, selectionMode, onSelectionChange, defaultSelectDates, onDatePress, renderCustomDateContent, fullWidth, ...props }: CalendarProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarProps } from './types';
3
2
  type VerticalCalendarProps = CalendarProps & {
4
3
  visibleDuration?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type VerticalCalendarMonthSkeletonProps = {
3
2
  days: number;
4
3
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function VerticalCalendarSkeleton(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ListBoxProps } from './types';
3
2
  export default function ListBox<T extends Record<string, unknown>>({ selectedIconProps, type, selectionPosition, enableSelection, className, variant, isOnboardingPreview, isTransparent, isRoundCorners, maxSelectionCount, initialVisibleCount, t, ...props }: ListBoxProps<T>): JSX.Element;
@@ -13,6 +13,6 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, selection
13
13
  selectionPosition: "end" | "start";
14
14
  enableSelection: boolean;
15
15
  selectedIconProps: IconProps;
16
- type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
16
+ type: "image" | "checkbox" | "radio" | "icon" | "emoji" | "roundImage";
17
17
  }) => import("react/jsx-runtime").JSX.Element>;
18
18
  export default _default;
@@ -8,7 +8,7 @@ declare const _default: React.MemoExoticComponent<({ item, isSelected, enableSel
8
8
  variant: VariantType;
9
9
  item: Node<unknown>;
10
10
  enableSelection: boolean;
11
- type: "image" | "icon" | "checkbox" | "radio" | "emoji" | "roundImage";
11
+ type: "image" | "checkbox" | "radio" | "icon" | "emoji" | "roundImage";
12
12
  isOnboardingPreview?: boolean | undefined;
13
13
  image?: ResponseFileType | null | undefined;
14
14
  selectionMode?: "none" | "multiple" | "single" | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function CircleRatingIcon({ index, className, }: {
3
2
  index: number;
4
3
  className: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ItemProps, Node, TabListState } from 'react-stately';
3
2
  type TabProps<T> = {
4
3
  item: Node<T> & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AriaTabPanelProps } from 'react-aria';
3
2
  import type { TabListState } from 'react-stately';
4
3
  type TabPanelProps<T> = AriaTabPanelProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AriaTabListProps } from 'react-aria';
3
2
  type TabsProps<T> = AriaTabListProps<T> & {
4
3
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type UpdateContractWidgetProps = {
3
2
  isAccepted: boolean;
4
3
  setIsAccepted: (isAccepted: boolean) => void;