@homefile/components-v2 2.45.0 → 2.46.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/assets/locales/en/index.json +23 -0
- package/dist/components/homeBoard/HomeCardRecipients.js +1 -1
- package/dist/components/partner/adminTiles/index.d.ts +1 -0
- package/dist/components/partner/adminTiles/index.js +1 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/CodeTab.d.ts +2 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/CodeTab.js +4 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/ContactTab.d.ts +2 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/ContactTab.js +5 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/DetailsRow.d.ts +5 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/DetailsRow.js +4 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/OwnerTab.d.ts +2 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/OwnerTab.js +4 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/PartnerServiceCard.d.ts +2 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/PartnerServiceCard.js +28 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/index.d.ts +1 -0
- package/dist/components/partner/adminTiles/partnerServiceCard/index.js +1 -0
- package/dist/components/sendDocument/RecipientContent.js +1 -1
- package/dist/helpers/HomeRoles.helper.js +5 -0
- package/dist/helpers/sendDocument/AddRecipient.helper.d.ts +10 -2
- package/dist/helpers/sendDocument/AddRecipient.helper.js +8 -0
- package/dist/interfaces/homeBoard/HomeCardRecipients.interface.d.ts +1 -1
- package/dist/interfaces/partner/adminTiles/index.d.ts +1 -0
- package/dist/interfaces/partner/adminTiles/index.js +1 -0
- package/dist/interfaces/partner/adminTiles/partnerServiceCard/PartnerServiceCard.interface.d.ts +33 -0
- package/dist/interfaces/partner/adminTiles/partnerServiceCard/PartnerServiceCard.interface.js +1 -0
- package/dist/interfaces/partner/adminTiles/partnerServiceCard/index.d.ts +1 -0
- package/dist/interfaces/partner/adminTiles/partnerServiceCard/index.js +1 -0
- package/dist/stories/homeBoard/FolderDetail.stories.d.ts +10 -2
- package/dist/stories/homeBoard/HomeCardWithRecipent.stories.d.ts +10 -2
- package/dist/stories/partner/adminTiles/PartnerServiceCard.stories.d.ts +5 -0
- package/dist/stories/partner/adminTiles/PartnerServiceCard.stories.js +41 -0
- package/dist/stories/sendDocument/RecipientCard.stories.d.ts +8 -0
- package/dist/stories/sendDocument/RecipientContent.stories.d.ts +1 -1
- package/dist/stories/sendDocument/RecipientDocForm.stories.d.ts +10 -2
- package/dist/stories/sendDocument/RecipientTab.stories.d.ts +10 -2
- package/package.json +1 -1
|
@@ -790,6 +790,29 @@
|
|
|
790
790
|
"images": "Images",
|
|
791
791
|
"preview": "Preview"
|
|
792
792
|
},
|
|
793
|
+
"adminTiles": {
|
|
794
|
+
"serviceCard": {
|
|
795
|
+
"accessibility": {
|
|
796
|
+
"logoAlt": "{{name}} logo"
|
|
797
|
+
},
|
|
798
|
+
"code": {
|
|
799
|
+
"title": "Homefile Partner Code",
|
|
800
|
+
"description": "Your partner share code is a unique referral or access code that a business partner gives to a customer to unlock a specific benefit inside of Homefile."
|
|
801
|
+
},
|
|
802
|
+
"contact": {
|
|
803
|
+
"address": "Address",
|
|
804
|
+
"companyName": "Company Name",
|
|
805
|
+
"customerServicePoc": "Customer Service POC",
|
|
806
|
+
"insuranceNumber": "Insurance #",
|
|
807
|
+
"licenseNumber": "License #",
|
|
808
|
+
"phoneNumber": "Phone Number"
|
|
809
|
+
},
|
|
810
|
+
"tabs": {
|
|
811
|
+
"contact": "Contact",
|
|
812
|
+
"owner": "Owner"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
793
816
|
"tiles": {
|
|
794
817
|
"customer": "Customer",
|
|
795
818
|
"inbox": "Inbox",
|
|
@@ -7,7 +7,7 @@ export const HomeCardRecipients = ({ recipients, menu, onEditClick, }) => {
|
|
|
7
7
|
return (_jsx(Stack, { p: "base", spacing: "1", children: recipients === null || recipients === void 0 ? void 0 : recipients.map(({ accountTypes, user }, index) => {
|
|
8
8
|
const hasAccountType = accountTypes.length > 0;
|
|
9
9
|
const oneAccountType = accountTypes.length === 1;
|
|
10
|
-
return (_jsxs(Container, { p: "base", position: "relative", children: [_jsxs(Flex, { mb: hasAccountType ? 'base' : '0', children: [hasAccountType && (_jsx(RecipientHeader, { accountType: oneAccountType ? accountTypes[0] : accountTypes.join(', ') })), _jsxs(Flex, { position: "absolute", top: "3px", right: "2", children: [!isHomeowner(accountTypes) && (_jsx(Tooltip, { label: t('tooltips.editContact'), children: _jsx(IconButton, { variant: "menuIconWithShadow", maxW: "fit-content", "aria-label": t('ariaLabels.edit'), p: "1", icon: _jsx(Edit, {}), onClick: () => onEditClick({ user, accountTypes }) }) })), menu && (_jsx(Box, { children: _jsx(IconMenu, { icon: _jsx(MoreHorizontal, { size: 26 }), menuItems: menu, itemForm: {
|
|
10
|
+
return (_jsxs(Container, { p: "base", position: "relative", children: [_jsxs(Flex, { mb: hasAccountType ? 'base' : '0', children: [hasAccountType && (_jsx(RecipientHeader, { accountType: oneAccountType ? accountTypes[0] : accountTypes.join(', ') })), _jsxs(Flex, { position: "absolute", top: "3px", right: "2", children: [!isHomeowner(accountTypes) && onEditClick && (_jsx(Tooltip, { label: t('tooltips.editContact'), children: _jsx(IconButton, { variant: "menuIconWithShadow", maxW: "fit-content", "aria-label": t('ariaLabels.edit'), p: "1", icon: _jsx(Edit, {}), onClick: () => onEditClick === null || onEditClick === void 0 ? void 0 : onEditClick({ user, accountTypes }) }) })), menu && (_jsx(Box, { children: _jsx(IconMenu, { icon: _jsx(MoreHorizontal, { size: 26 }), menuItems: menu, itemForm: {
|
|
11
11
|
_id: user.email,
|
|
12
12
|
name: user.firstName,
|
|
13
13
|
} }) }))] })] }), _jsx(RecipientContent, Object.assign({}, user, { index: index }))] }, user.email));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { t } from 'i18next';
|
|
3
|
+
import { Box, Stack, Text } from '@chakra-ui/react';
|
|
4
|
+
export const CodeTab = ({ code, description }) => (_jsx(Box, { p: "base", bg: "lightBlue.1", children: _jsxs(Stack, { spacing: "base", bg: "neutral.white", p: "base", boxShadow: "md", children: [_jsx(Text, { fontSize: "sm", children: t('partner.adminTiles.serviceCard.code.title') }), _jsx(Box, { bg: "lightGreen.1", py: "3", px: "base", children: _jsx(Text, { fontSize: "27px", lineHeight: "1", textAlign: "center", textTransform: "lowercase", children: code }) }), _jsx(Text, { fontSize: "xs", fontFamily: "secondary", lineHeight: "13px", color: "gray.2", children: description || t('partner.adminTiles.serviceCard.code.description') })] }) }));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PartnerServiceContactI } from '../../../../interfaces';
|
|
2
|
+
export declare const ContactTab: ({ addressLineOne, addressLineTwo, companyName, customerServicePoc, email, insuranceNumber, licenseNumber, phoneNumber, }: PartnerServiceContactI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { t } from 'i18next';
|
|
3
|
+
import { Box, Divider, Stack } from '@chakra-ui/react';
|
|
4
|
+
import { DetailsRow, ValueText } from './DetailsRow';
|
|
5
|
+
export const ContactTab = ({ addressLineOne, addressLineTwo, companyName, customerServicePoc, email, insuranceNumber, licenseNumber, phoneNumber, }) => (_jsx(Box, { p: "base", bg: "lightBlue.1", children: _jsxs(Stack, { bg: "neutral.white", p: "base", boxShadow: "md", spacing: "base", children: [_jsxs(Box, { children: [_jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.companyName'), value: companyName }), (addressLineOne || addressLineTwo) && (_jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.address'), value: _jsxs(Box, { children: [addressLineOne && _jsx(ValueText, { children: addressLineOne }), addressLineTwo && _jsx(ValueText, { children: addressLineTwo })] }) }))] }), _jsx(Divider, {}), _jsxs(Box, { children: [_jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.customerServicePoc'), value: customerServicePoc }), _jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.phoneNumber'), value: phoneNumber }), _jsx(DetailsRow, { label: t('forms.email'), value: email }), _jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.licenseNumber'), value: licenseNumber }), _jsx(DetailsRow, { label: t('partner.adminTiles.serviceCard.contact.insuranceNumber'), value: insuranceNumber })] })] }) }));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PartnerServiceDetailsRowI } from '../../../../interfaces';
|
|
2
|
+
export declare const DetailsRow: ({ label, mb, value, }: PartnerServiceDetailsRowI) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ValueText: ({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Grid, GridItem, Text } from '@chakra-ui/react';
|
|
3
|
+
export const DetailsRow = ({ label, mb = '0', value, }) => (_jsxs(Grid, { mb: mb, templateColumns: "10rem minmax(0, 1fr)", columnGap: "2", alignItems: "start", children: [_jsx(GridItem, { minW: "0", children: _jsx(Text, { fontSize: "xs", fontFamily: "secondary", color: "gray.2", lineHeight: "1.35", whiteSpace: "nowrap", children: label }) }), _jsx(GridItem, { minW: "0", children: _jsx(ValueText, { children: value }) })] }));
|
|
4
|
+
export const ValueText = ({ children }) => (_jsx(Text, { fontSize: "xs", fontFamily: "secondary", fontWeight: "medium", lineHeight: "1.35", whiteSpace: "nowrap", children: children }));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box } from '@chakra-ui/react';
|
|
3
|
+
import { HomeCardRecipients } from '../../../../components';
|
|
4
|
+
export const OwnerTab = ({ accountTypes, user }) => (_jsx(Box, { bg: "lightBlue.1", children: _jsx(HomeCardRecipients, { recipients: [{ accountTypes, user }] }) }));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PartnerServiceCardI } from '../../../../interfaces';
|
|
2
|
+
export declare const PartnerServiceCard: ({ address: { city, number, state, street, zip }, codeDescription, contact, defaultIndex, logo, name, onEdit, owner, partnerCode, website, }: PartnerServiceCardI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { t } from 'i18next';
|
|
3
|
+
import { Box, Container, Flex, IconButton, Image, Stack, Text, Tooltip, } from '@chakra-ui/react';
|
|
4
|
+
import { Edit, TabsHeader } from '../../../../components';
|
|
5
|
+
import { PartnerGeneric } from '../../../../assets/images';
|
|
6
|
+
import { CodeTab } from './CodeTab';
|
|
7
|
+
import { ContactTab } from './ContactTab';
|
|
8
|
+
import { OwnerTab } from './OwnerTab';
|
|
9
|
+
export const PartnerServiceCard = ({ address: { city, number = '', state, street, zip }, codeDescription, contact, defaultIndex = 0, logo, name, onEdit, owner, partnerCode, website, }) => {
|
|
10
|
+
const tabs = [
|
|
11
|
+
partnerCode && {
|
|
12
|
+
label: t('forms.code').toUpperCase(),
|
|
13
|
+
component: _jsx(CodeTab, { code: partnerCode, description: codeDescription }),
|
|
14
|
+
},
|
|
15
|
+
contact && {
|
|
16
|
+
label: t('partner.adminTiles.serviceCard.tabs.contact').toUpperCase(),
|
|
17
|
+
component: _jsx(ContactTab, Object.assign({}, contact)),
|
|
18
|
+
},
|
|
19
|
+
owner && {
|
|
20
|
+
label: t('partner.adminTiles.serviceCard.tabs.owner').toUpperCase(),
|
|
21
|
+
component: _jsx(OwnerTab, Object.assign({}, owner)),
|
|
22
|
+
},
|
|
23
|
+
].filter((tab) => Boolean(tab));
|
|
24
|
+
return (_jsxs(Container, { variant: "launchpad", overflow: "hidden", p: "0", children: [_jsxs(Box, { bg: "neutral.white", children: [_jsx(Flex, { align: "center", justify: "center", h: "9.5rem", bg: "neutral.white", borderBottom: "1px solid", borderColor: "lightBlue.2", children: _jsx(Image, { src: logo || PartnerGeneric, alt: t('partner.adminTiles.serviceCard.accessibility.logoAlt', {
|
|
25
|
+
name,
|
|
26
|
+
}), maxW: "156px", maxH: "72px", w: "auto", h: "auto", objectFit: "contain" }) }), _jsxs(Stack, { px: "base", pb: "base", pt: "base", spacing: "1", children: [_jsxs(Flex, { justify: "space-between", align: "center", children: [_jsx(Text, { noOfLines: 1, textOverflow: "ellipsis", fontFamily: "primary", fontSize: "24px", fontWeight: "normal", lineHeight: "1.2", children: name }), onEdit && (_jsx(Tooltip, { label: t('tooltips.editDetails'), children: _jsx(IconButton, { variant: "menuIconWithShadow", maxW: "fit-content", "aria-label": t('ariaLabels.edit'), p: "1", icon: _jsx(Edit, {}), onClick: onEdit }) }))] }), _jsxs(Box, { children: [_jsx(PartnerServiceInfoText, { children: `${number} ${street}`.trim() }), _jsx(PartnerServiceInfoText, { children: `${city}, ${state} ${zip}`.trim() }), website && (_jsx(PartnerServiceInfoText, { children: website }))] })] })] }), tabs.length > 0 && (_jsx(TabsHeader, { defaultIndex: defaultIndex, tabList: tabs }))] }));
|
|
27
|
+
};
|
|
28
|
+
const PartnerServiceInfoText = (props) => (_jsx(Text, Object.assign({ fontFamily: "secondary", fontSize: "14px", fontWeight: "normal", lineHeight: "20px" }, props)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceCard';
|
|
@@ -4,5 +4,5 @@ import { randomColor } from '../../utils';
|
|
|
4
4
|
import MoonLoader from 'react-spinners/MoonLoader';
|
|
5
5
|
export const RecipientContent = ({ bgColor, firstName = '', index = 0, lastName = '', phone = '', email = '', }) => {
|
|
6
6
|
const isPending = firstName === 'Account' && lastName === 'Pending';
|
|
7
|
-
return (_jsxs(Flex, { gap: "2", align:
|
|
7
|
+
return (_jsxs(Stack, { justify: "space-between", spacing: "0", children: [_jsxs(Flex, { gap: "2", h: "fit-content", w: "full", align: phone ? 'start' : 'center', children: [isPending && (_jsx(MoonLoader, { color: "#2d2d2d", size: 20, speedMultiplier: 0.5 })), !isPending && (_jsx(Avatar, { size: "sm", bg: bgColor !== null && bgColor !== void 0 ? bgColor : randomColor(index), fontWeight: "bold", color: "neutral.white", name: firstName ? `${firstName} ${lastName}` : '' })), _jsx(Stack, { w: "full", h: "fit-content", children: _jsxs(Box, { children: [firstName && (_jsx(Text, { textTransform: "capitalize", children: `${firstName} ${lastName}` })), _jsx(Text, { fontSize: "xxs", children: phone })] }) })] }), email && (_jsx(Text, { variant: "email", alignSelf: "flex-end", children: email }))] }));
|
|
8
8
|
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
export declare const recipientsDb: {
|
|
1
|
+
export declare const recipientsDb: ({
|
|
2
|
+
accountTypes: string[];
|
|
3
|
+
user: {
|
|
4
|
+
email: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
lastName: string;
|
|
7
|
+
phone?: undefined;
|
|
8
|
+
};
|
|
9
|
+
} | {
|
|
2
10
|
accountTypes: string[];
|
|
3
11
|
user: {
|
|
4
12
|
email: string;
|
|
@@ -6,4 +14,4 @@ export declare const recipientsDb: {
|
|
|
6
14
|
lastName: string;
|
|
7
15
|
phone: string;
|
|
8
16
|
};
|
|
9
|
-
}[];
|
|
17
|
+
})[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AssociatedAccountI, HomeCardWithRecipentI } from '../../interfaces';
|
|
2
2
|
export interface HomeCardRecipientsI extends Pick<HomeCardWithRecipentI, 'menu' | 'recipients'> {
|
|
3
|
-
onEditClick
|
|
3
|
+
onEditClick?: (values: AssociatedAccountI) => void;
|
|
4
4
|
}
|
package/dist/interfaces/partner/adminTiles/partnerServiceCard/PartnerServiceCard.interface.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HomeAddressI, AssociatedAccountI } from '../../../../interfaces';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface PartnerServiceContactI {
|
|
4
|
+
companyName: string;
|
|
5
|
+
addressLineOne?: string;
|
|
6
|
+
addressLineTwo?: string;
|
|
7
|
+
customerServicePoc?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
insuranceNumber?: string;
|
|
10
|
+
licenseNumber?: string;
|
|
11
|
+
phoneNumber?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PartnerServiceCodeTabI {
|
|
14
|
+
code: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PartnerServiceDetailsRowI {
|
|
18
|
+
label: string;
|
|
19
|
+
value?: ReactNode;
|
|
20
|
+
mb?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PartnerServiceCardI {
|
|
23
|
+
address: HomeAddressI;
|
|
24
|
+
codeDescription?: string;
|
|
25
|
+
contact?: PartnerServiceContactI;
|
|
26
|
+
defaultIndex?: number;
|
|
27
|
+
logo?: string;
|
|
28
|
+
name: string;
|
|
29
|
+
onEdit?: () => void;
|
|
30
|
+
owner?: AssociatedAccountI;
|
|
31
|
+
partnerCode?: string;
|
|
32
|
+
website?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceCard.interface';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PartnerServiceCard.interface';
|
|
@@ -5,7 +5,15 @@ export default _default;
|
|
|
5
5
|
export declare const FolderDetailComponent: {
|
|
6
6
|
(args: FolderDetailI): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
args: {
|
|
8
|
-
recipients: {
|
|
8
|
+
recipients: ({
|
|
9
|
+
accountTypes: string[];
|
|
10
|
+
user: {
|
|
11
|
+
email: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
phone?: undefined;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
9
17
|
accountTypes: string[];
|
|
10
18
|
user: {
|
|
11
19
|
email: string;
|
|
@@ -13,7 +21,7 @@ export declare const FolderDetailComponent: {
|
|
|
13
21
|
lastName: string;
|
|
14
22
|
phone: string;
|
|
15
23
|
};
|
|
16
|
-
}[];
|
|
24
|
+
})[];
|
|
17
25
|
addedBy: string;
|
|
18
26
|
files: import("../../interfaces").ReportsI[];
|
|
19
27
|
folder: import("../../interfaces").FolderI;
|
|
@@ -29,7 +29,15 @@ export declare const HomeCardWithRecipentComponent: {
|
|
|
29
29
|
label: string;
|
|
30
30
|
handleClick: import("@storybook/addon-actions").HandlerFunction;
|
|
31
31
|
}[];
|
|
32
|
-
recipients: {
|
|
32
|
+
recipients: ({
|
|
33
|
+
accountTypes: string[];
|
|
34
|
+
user: {
|
|
35
|
+
email: string;
|
|
36
|
+
firstName: string;
|
|
37
|
+
lastName: string;
|
|
38
|
+
phone?: undefined;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
33
41
|
accountTypes: string[];
|
|
34
42
|
user: {
|
|
35
43
|
email: string;
|
|
@@ -37,7 +45,7 @@ export declare const HomeCardWithRecipentComponent: {
|
|
|
37
45
|
lastName: string;
|
|
38
46
|
phone: string;
|
|
39
47
|
};
|
|
40
|
-
}[];
|
|
48
|
+
})[];
|
|
41
49
|
records: import("../../interfaces").HomeCardRecordsI;
|
|
42
50
|
};
|
|
43
51
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { PartnerServiceCardI } from '../../../interfaces';
|
|
3
|
+
declare const _default: Meta<PartnerServiceCardI>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const PartnerServiceCardComponent: (args: PartnerServiceCardI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { action } from '@storybook/addon-actions';
|
|
3
|
+
import { Box } from '@chakra-ui/react';
|
|
4
|
+
import { PartnerServiceCard } from '../../../components';
|
|
5
|
+
import { LogoCompany } from '../../../assets/images';
|
|
6
|
+
import { recipientsDb } from '../../../helpers';
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Partner/Admin Tiles',
|
|
9
|
+
component: PartnerServiceCard,
|
|
10
|
+
args: {
|
|
11
|
+
logo: LogoCompany,
|
|
12
|
+
name: 'Poolie Pool Service',
|
|
13
|
+
address: {
|
|
14
|
+
city: 'Blue Box',
|
|
15
|
+
number: '3603',
|
|
16
|
+
state: 'TX',
|
|
17
|
+
street: 'Acme Drive',
|
|
18
|
+
zip: '78777',
|
|
19
|
+
},
|
|
20
|
+
website: 'www.poolie.com',
|
|
21
|
+
partnerCode: 'poolie',
|
|
22
|
+
contact: {
|
|
23
|
+
companyName: 'Poolie Pool Service',
|
|
24
|
+
addressLineOne: '3603 Acme Drive',
|
|
25
|
+
addressLineTwo: 'Blue Box TX 78777',
|
|
26
|
+
customerServicePoc: 'John Smith',
|
|
27
|
+
phoneNumber: '512.555.1212',
|
|
28
|
+
email: 'support@poolie.com',
|
|
29
|
+
licenseNumber: 'TX 9842234-098',
|
|
30
|
+
insuranceNumber: '422345-14322',
|
|
31
|
+
},
|
|
32
|
+
owner: {
|
|
33
|
+
user: recipientsDb[0].user,
|
|
34
|
+
accountTypes: recipientsDb[0].accountTypes,
|
|
35
|
+
},
|
|
36
|
+
onEdit: action('onEdit'),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const PartnerServiceCardComponent = (args) => {
|
|
40
|
+
return (_jsx(Box, { w: ['full', '326px'], children: _jsx(PartnerServiceCard, Object.assign({}, args)) }));
|
|
41
|
+
};
|
|
@@ -9,6 +9,14 @@ export declare const RecipientCardComponent: {
|
|
|
9
9
|
index: number;
|
|
10
10
|
isDocument: boolean;
|
|
11
11
|
recipient: {
|
|
12
|
+
accountTypes: string[];
|
|
13
|
+
user: {
|
|
14
|
+
email: string;
|
|
15
|
+
firstName: string;
|
|
16
|
+
lastName: string;
|
|
17
|
+
phone?: undefined;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
12
20
|
accountTypes: string[];
|
|
13
21
|
user: {
|
|
14
22
|
email: string;
|
|
@@ -5,7 +5,15 @@ export default _default;
|
|
|
5
5
|
export declare const RecipientDocFormComponent: {
|
|
6
6
|
(args: RecipientDocFormI): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
args: {
|
|
8
|
-
recipients: {
|
|
8
|
+
recipients: ({
|
|
9
|
+
accountTypes: string[];
|
|
10
|
+
user: {
|
|
11
|
+
email: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
phone?: undefined;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
9
17
|
accountTypes: string[];
|
|
10
18
|
user: {
|
|
11
19
|
email: string;
|
|
@@ -13,6 +21,6 @@ export declare const RecipientDocFormComponent: {
|
|
|
13
21
|
lastName: string;
|
|
14
22
|
phone: string;
|
|
15
23
|
};
|
|
16
|
-
}[];
|
|
24
|
+
})[];
|
|
17
25
|
};
|
|
18
26
|
};
|
|
@@ -5,7 +5,15 @@ export default _default;
|
|
|
5
5
|
export declare const RecipientTabComponent: {
|
|
6
6
|
(args: RecipientTabI): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
args: {
|
|
8
|
-
recipients: {
|
|
8
|
+
recipients: ({
|
|
9
|
+
accountTypes: string[];
|
|
10
|
+
user: {
|
|
11
|
+
email: string;
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
phone?: undefined;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
9
17
|
accountTypes: string[];
|
|
10
18
|
user: {
|
|
11
19
|
email: string;
|
|
@@ -13,7 +21,7 @@ export declare const RecipientTabComponent: {
|
|
|
13
21
|
lastName: string;
|
|
14
22
|
phone: string;
|
|
15
23
|
};
|
|
16
|
-
}[];
|
|
24
|
+
})[];
|
|
17
25
|
loading: boolean;
|
|
18
26
|
};
|
|
19
27
|
};
|