@mindly/ui-components 5.67.2 → 5.68.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.
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +5 -0
- package/dist/cjs/lib2/features/ContractTreeFeature/ContractTreeFeature.d.ts +9 -0
- package/dist/cjs/lib2/features/ContractTreeFeature/index.d.ts +2 -0
- package/dist/cjs/lib2/features/ContractTreeFeature/types.d.ts +9 -0
- package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +2 -0
- package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/index.d.ts +1 -0
- package/dist/cjs/lib2/features/OutdatedPersonalDataFeature/types.d.ts +9 -0
- package/dist/cjs/lib2/features/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/types/getCountryKeyByName.d.ts +8 -0
- package/dist/cjs/lib2/shared/types/index.d.ts +1 -0
- package/dist/cjs/lib2/shared/ui/ListItems/Item.d.ts +2 -0
- package/dist/cjs/lib2/shared/utils/getSignAgreementsTabs.d.ts +27 -0
- package/dist/cjs/lib2/shared/utils/index.d.ts +2 -0
- package/dist/cjs/lib2/shared/utils/replaceAsterisksWithBold.d.ts +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +5 -0
- package/dist/esm/lib2/features/ContractTreeFeature/ContractTreeFeature.d.ts +9 -0
- package/dist/esm/lib2/features/ContractTreeFeature/index.d.ts +2 -0
- package/dist/esm/lib2/features/ContractTreeFeature/types.d.ts +9 -0
- package/dist/esm/lib2/features/OutdatedPersonalDataFeature/OutdatedPersonalDataFeature.d.ts +2 -0
- package/dist/esm/lib2/features/OutdatedPersonalDataFeature/index.d.ts +1 -0
- package/dist/esm/lib2/features/OutdatedPersonalDataFeature/types.d.ts +9 -0
- package/dist/esm/lib2/features/index.d.ts +2 -0
- package/dist/esm/lib2/shared/types/getCountryKeyByName.d.ts +8 -0
- package/dist/esm/lib2/shared/types/index.d.ts +1 -0
- package/dist/esm/lib2/shared/ui/ListItems/Item.d.ts +2 -0
- package/dist/esm/lib2/shared/utils/getSignAgreementsTabs.d.ts +27 -0
- package/dist/esm/lib2/shared/utils/index.d.ts +2 -0
- package/dist/esm/lib2/shared/utils/replaceAsterisksWithBold.d.ts +1 -0
- package/dist/index.d.ts +70 -3
- package/package.json +1 -1
|
@@ -12,7 +12,12 @@ type UserInfoModalProps = {
|
|
|
12
12
|
onSignUp?: (id: string) => void;
|
|
13
13
|
onClose: () => void;
|
|
14
14
|
isClient?: boolean;
|
|
15
|
+
isShowContract?: boolean;
|
|
16
|
+
contractStatus?: 'not_signed' | 'pending' | 'active';
|
|
17
|
+
handleOpenContract: () => void;
|
|
15
18
|
translations?: {
|
|
19
|
+
contractTitle: string;
|
|
20
|
+
contractSubtitle: string;
|
|
16
21
|
sessions?: string[];
|
|
17
22
|
writeBtnLabel?: string;
|
|
18
23
|
buyBtnLabel?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ContractTreeFeature.css';
|
|
3
|
+
import { TreeNode } from './types';
|
|
4
|
+
interface ContentTreeProps {
|
|
5
|
+
data: TreeNode[];
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ContentTree: React.MemoExoticComponent<React.ForwardRefExoticComponent<ContentTreeProps & React.RefAttributes<HTMLDivElement>>>;
|
|
9
|
+
export default ContentTree;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OutdatedPersonalDataFeature';
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
type ItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
|
|
3
3
|
leftContent?: React.ReactNode;
|
|
4
4
|
rightContent?: React.ReactNode;
|
|
5
|
+
innerItemClassName?: string;
|
|
5
6
|
withBorders?: boolean;
|
|
6
7
|
isDisabled?: boolean;
|
|
7
8
|
isError?: boolean;
|
|
@@ -9,6 +10,7 @@ type ItemProps = React.HTMLAttributes<HTMLIonItemElement> & {
|
|
|
9
10
|
export declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLIonItemElement> & {
|
|
10
11
|
leftContent?: React.ReactNode;
|
|
11
12
|
rightContent?: React.ReactNode;
|
|
13
|
+
innerItemClassName?: string | undefined;
|
|
12
14
|
withBorders?: boolean | undefined;
|
|
13
15
|
isDisabled?: boolean | undefined;
|
|
14
16
|
isError?: boolean | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SupportedLangs } from '../types';
|
|
2
|
+
import { TreeNode } from '../../features';
|
|
3
|
+
import { WithTranslation } from 'react-i18next';
|
|
4
|
+
type SupportedCountryLocale = string;
|
|
5
|
+
type Tabs = {
|
|
6
|
+
behavior: 'tax-country' | 'profile-lang';
|
|
7
|
+
localeOrCountry: `${SupportedLangs}` | SupportedCountryLocale;
|
|
8
|
+
t: WithTranslation['t'];
|
|
9
|
+
jsonTree: TreeNode[];
|
|
10
|
+
};
|
|
11
|
+
type TabsReturnType = {
|
|
12
|
+
id: `${SupportedLangs}`;
|
|
13
|
+
title: string;
|
|
14
|
+
value: TreeNode;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This function takes json tree and locale and
|
|
18
|
+
* returns tabs for contract modal.
|
|
19
|
+
*
|
|
20
|
+
* @param behavior - 'tax-country' or 'profile-lang'
|
|
21
|
+
* @param localeOrCountry - locale to filter tabs
|
|
22
|
+
* @param jsonTree - json tree with contracts
|
|
23
|
+
* @param t - translation function
|
|
24
|
+
* @returns - array of tabs with id, title and value
|
|
25
|
+
*/
|
|
26
|
+
export declare function getSignAgreementsTabs({ behavior, localeOrCountry, jsonTree, t, }: Tabs): TabsReturnType[];
|
|
27
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { mergeRefs } from './mergeRefs';
|
|
2
2
|
export { priceNormalize } from './priceNormalizer';
|
|
3
3
|
export { newShade } from './newShade';
|
|
4
|
+
export { replaceAsterisksWithBold } from './replaceAsterisksWithBold';
|
|
5
|
+
export { getSignAgreementsTabs } from './getSignAgreementsTabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const replaceAsterisksWithBold: (text: string) => JSX.Element[];
|