@homefile/components-v2 2.44.1 → 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.
Files changed (54) hide show
  1. package/dist/assets/images/gear.svg +13 -0
  2. package/dist/assets/images/index.d.ts +2 -1
  3. package/dist/assets/images/index.js +2 -1
  4. package/dist/assets/locales/en/index.json +23 -0
  5. package/dist/components/appBar/AppBar.d.ts +1 -1
  6. package/dist/components/appBar/AppBar.js +2 -2
  7. package/dist/components/appBar/HomefileLogo.d.ts +1 -1
  8. package/dist/components/appBar/HomefileLogo.js +8 -4
  9. package/dist/components/homeBoard/HomeCardRecipients.js +1 -1
  10. package/dist/components/partner/adminTiles/index.d.ts +1 -0
  11. package/dist/components/partner/adminTiles/index.js +1 -0
  12. package/dist/components/partner/adminTiles/partnerServiceCard/CodeTab.d.ts +2 -0
  13. package/dist/components/partner/adminTiles/partnerServiceCard/CodeTab.js +4 -0
  14. package/dist/components/partner/adminTiles/partnerServiceCard/ContactTab.d.ts +2 -0
  15. package/dist/components/partner/adminTiles/partnerServiceCard/ContactTab.js +5 -0
  16. package/dist/components/partner/adminTiles/partnerServiceCard/DetailsRow.d.ts +5 -0
  17. package/dist/components/partner/adminTiles/partnerServiceCard/DetailsRow.js +4 -0
  18. package/dist/components/partner/adminTiles/partnerServiceCard/OwnerTab.d.ts +2 -0
  19. package/dist/components/partner/adminTiles/partnerServiceCard/OwnerTab.js +4 -0
  20. package/dist/components/partner/adminTiles/partnerServiceCard/PartnerServiceCard.d.ts +2 -0
  21. package/dist/components/partner/adminTiles/partnerServiceCard/PartnerServiceCard.js +28 -0
  22. package/dist/components/partner/adminTiles/partnerServiceCard/index.d.ts +1 -0
  23. package/dist/components/partner/adminTiles/partnerServiceCard/index.js +1 -0
  24. package/dist/components/rooms/RoomsMenu.d.ts +1 -1
  25. package/dist/components/rooms/RoomsMenu.js +4 -4
  26. package/dist/components/sendDocument/RecipientContent.js +1 -1
  27. package/dist/helpers/HomeRoles.helper.js +5 -0
  28. package/dist/helpers/rooms/RoomIcon.js +11 -1
  29. package/dist/helpers/sendDocument/AddRecipient.helper.d.ts +10 -2
  30. package/dist/helpers/sendDocument/AddRecipient.helper.js +8 -0
  31. package/dist/interfaces/appBar/AppBar.interface.d.ts +1 -0
  32. package/dist/interfaces/appBar/HomefileLogo.interface.d.ts +1 -0
  33. package/dist/interfaces/homeBoard/HomeCardRecipients.interface.d.ts +1 -1
  34. package/dist/interfaces/partner/adminTiles/index.d.ts +1 -0
  35. package/dist/interfaces/partner/adminTiles/index.js +1 -0
  36. package/dist/interfaces/partner/adminTiles/partnerServiceCard/PartnerServiceCard.interface.d.ts +33 -0
  37. package/dist/interfaces/partner/adminTiles/partnerServiceCard/PartnerServiceCard.interface.js +1 -0
  38. package/dist/interfaces/partner/adminTiles/partnerServiceCard/index.d.ts +1 -0
  39. package/dist/interfaces/partner/adminTiles/partnerServiceCard/index.js +1 -0
  40. package/dist/interfaces/rooms/RoomsMenu.interface.d.ts +2 -0
  41. package/dist/stories/appBar/AppBar.stories.d.ts +1 -1
  42. package/dist/stories/appBar/AppBar.stories.js +25 -6
  43. package/dist/stories/assets/Illustrations.stories.js +2 -2
  44. package/dist/stories/homeBoard/FolderDetail.stories.d.ts +10 -2
  45. package/dist/stories/homeBoard/HomeCardWithRecipent.stories.d.ts +10 -2
  46. package/dist/stories/partner/adminTiles/PartnerServiceCard.stories.d.ts +5 -0
  47. package/dist/stories/partner/adminTiles/PartnerServiceCard.stories.js +41 -0
  48. package/dist/stories/rooms/RoomsMenu.stories.d.ts +23 -1
  49. package/dist/stories/rooms/RoomsMenu.stories.js +64 -1
  50. package/dist/stories/sendDocument/RecipientCard.stories.d.ts +8 -0
  51. package/dist/stories/sendDocument/RecipientContent.stories.d.ts +1 -1
  52. package/dist/stories/sendDocument/RecipientDocForm.stories.d.ts +10 -2
  53. package/dist/stories/sendDocument/RecipientTab.stories.d.ts +10 -2
  54. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 20 20">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="Retângulo_18156" data-name="Retângulo 18156" width="20" height="20" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <g id="Grupo_23306" data-name="Grupo 23306" transform="translate(0 -0.001)">
8
+ <g id="Grupo_15736" data-name="Grupo 15736" transform="translate(0 0.001)" clip-path="url(#clip-path)">
9
+ <path id="Caminho_11966" data-name="Caminho 11966" d="M20,8.542v2.917a.716.716,0,0,1-.714.714H18.067a8.3,8.3,0,0,1-.793,2.028l.828.828a.72.72,0,0,1,0,1.012L16.038,18.1a.714.714,0,0,1-1.01,0l-.781-.782a8.121,8.121,0,0,1-2.075.879v1.086a.716.716,0,0,1-.714.714H8.541a.716.716,0,0,1-.714-.714V18.2a8.121,8.121,0,0,1-2.075-.879l-.782.782a.714.714,0,0,1-1.01,0L1.9,16.041a.72.72,0,0,1,0-1.012l.828-.828a8.286,8.286,0,0,1-.793-2.028H.714A.717.717,0,0,1,0,11.458V8.542a.717.717,0,0,1,.714-.714H2.028a8.37,8.37,0,0,1,.831-1.9L1.9,4.971a.717.717,0,0,1,0-1.01L3.961,1.9a.717.717,0,0,1,1.01,0l1.007,1.01a8.285,8.285,0,0,1,1.849-.749V.716A.718.718,0,0,1,8.541,0h2.917a.718.718,0,0,1,.714.716V2.159a8.234,8.234,0,0,1,1.849.749L15.029,1.9a.717.717,0,0,1,1.01,0L18.1,3.961a.717.717,0,0,1,0,1.01l-.961.961a8.279,8.279,0,0,1,.831,1.9h1.314A.717.717,0,0,1,20,8.542M15.224,10A5.224,5.224,0,1,0,10,15.224,5.224,5.224,0,0,0,15.224,10" transform="translate(0 0)" fill="#00c0b7"/>
10
+ <path id="Caminho_11967" data-name="Caminho 11967" d="M25.753,20.54a5.223,5.223,0,1,1-5.224,5.222,5.224,5.224,0,0,1,5.224-5.222m3.482,5.222a3.482,3.482,0,1,0-3.482,3.482,3.482,3.482,0,0,0,3.482-3.482" transform="translate(-15.754 -15.762)" fill="#40566b"/>
11
+ </g>
12
+ </g>
13
+ </svg>
@@ -68,6 +68,7 @@ import Foundation from './foundation.svg';
68
68
  import Garage from './garage.svg';
69
69
  import GearPencil from './gear-pencil.svg';
70
70
  import GearTime from './gear-time.svg';
71
+ import Gear from './gear.svg';
71
72
  import GenericField from './generic-field.svg';
72
73
  import GlassWater from './glass-water.svg';
73
74
  import GreenCirclePlus from './green-circle-plus.svg';
@@ -175,7 +176,7 @@ import WizardDetailed from './wizard-detailed.svg';
175
176
  import WizardQuick from './wizard-quick.svg';
176
177
  import YellowFolder from './yellow-folder.svg';
177
178
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
178
- export { AlertDelete, AlertDeletePurple, Arrow, ApplianceToHome, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueCirclePlus, BlueFolder, BlueFolderShared, BookOpened, Box, Brain, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, EstValue, Exclamation, Face, Feedback, FileIt, FileUploading, FilterSize, Finance, Fire, Flag, Flag2, Flower, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenCirclePlus, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, Laundry, LifePreserver, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plant, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Wallet, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
179
+ export { AlertDelete, AlertDeletePurple, Arrow, ApplianceToHome, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueCirclePlus, BlueFolder, BlueFolderShared, BookOpened, Box, Brain, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, EstValue, Exclamation, Face, Feedback, FileIt, FileUploading, FilterSize, Finance, Fire, Flag, Flag2, Flower, FormSent, Foundation, Garage, GearPencil, GearTime, Gear, GenericField, GlassWater, GreenCirclePlus, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, Laundry, LifePreserver, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plant, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Wallet, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
179
180
  export * from './alerts';
180
181
  export * from './animations';
181
182
  export * from './appliances';
@@ -68,6 +68,7 @@ import Foundation from './foundation.svg';
68
68
  import Garage from './garage.svg';
69
69
  import GearPencil from './gear-pencil.svg';
70
70
  import GearTime from './gear-time.svg';
71
+ import Gear from './gear.svg';
71
72
  import GenericField from './generic-field.svg';
72
73
  import GlassWater from './glass-water.svg';
73
74
  import GreenCirclePlus from './green-circle-plus.svg';
@@ -175,7 +176,7 @@ import WizardDetailed from './wizard-detailed.svg';
175
176
  import WizardQuick from './wizard-quick.svg';
176
177
  import YellowFolder from './yellow-folder.svg';
177
178
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
178
- export { AlertDelete, AlertDeletePurple, Arrow, ApplianceToHome, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueCirclePlus, BlueFolder, BlueFolderShared, BookOpened, Box, Brain, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, EstValue, Exclamation, Face, Feedback, FileIt, FileUploading, FilterSize, Finance, Fire, Flag, Flag2, Flower, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenCirclePlus, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, Laundry, LifePreserver, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plant, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Wallet, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
179
+ export { AlertDelete, AlertDeletePurple, Arrow, ApplianceToHome, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueCirclePlus, BlueFolder, BlueFolderShared, BookOpened, Box, Brain, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, Company2, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Create, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, EstValue, Exclamation, Face, Feedback, FileIt, FileUploading, FilterSize, Finance, Fire, Flag, Flag2, Flower, FormSent, Foundation, Garage, GearPencil, GearTime, Gear, GenericField, GlassWater, GreenCirclePlus, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, Laundry, LifePreserver, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plant, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Wallet, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
179
180
  export * from './alerts';
180
181
  export * from './animations';
181
182
  export * from './appliances';
@@ -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",
@@ -1,2 +1,2 @@
1
1
  import { AppBarI } from '../../interfaces';
2
- export declare const AppBar: ({ children, onLogoClick, user }: AppBarI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const AppBar: ({ children, onLogoClick, user, isPartner }: AppBarI) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box, Flex } from '@chakra-ui/react';
3
3
  import { BarDivider, HomefileLogo, UserProfile } from '../../components';
4
- export const AppBar = ({ children, onLogoClick, user }) => {
5
- return (_jsxs(Box, { bg: "neutral.white", px: "base", boxShadow: "md", children: [_jsx(Box, { position: "absolute", top: "30%", left: "40%", h: "10" }), _jsxs(Flex, { h: "container.masthead", justify: "space-between", alignItems: "center", children: [_jsx(HomefileLogo, { onClick: onLogoClick }), _jsxs(Flex, { alignItems: "center", gap: ["2", "base"], children: [children && (_jsxs(_Fragment, { children: [children, _jsx(BarDivider, {})] })), _jsx(UserProfile, Object.assign({}, user))] })] })] }));
4
+ export const AppBar = ({ children, onLogoClick, user, isPartner }) => {
5
+ return (_jsxs(Box, { bg: "neutral.white", px: "base", boxShadow: "md", children: [_jsx(Box, { position: "absolute", top: "30%", left: "40%", h: "10" }), _jsxs(Flex, { h: "container.masthead", justify: "space-between", alignItems: "center", children: [_jsx(HomefileLogo, { onClick: onLogoClick, isPartner: isPartner }), _jsxs(Flex, { alignItems: "center", gap: ["2", "base"], children: [children && (_jsxs(_Fragment, { children: [children, _jsx(BarDivider, {})] })), _jsx(UserProfile, Object.assign({}, user))] })] })] }));
6
6
  };
@@ -1,2 +1,2 @@
1
1
  import { HomefileLogoI } from '../../interfaces';
2
- export declare const HomefileLogo: ({ onClick }: HomefileLogoI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const HomefileLogo: ({ onClick, isPartner }: HomefileLogoI) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,14 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Button, Image } from '@chakra-ui/react';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Button, Flex, Image, Text } from '@chakra-ui/react';
3
3
  import { LogoSmall, HomefileUpdate } from '../../assets/images';
4
4
  import { useWindowDimensions } from '../../hooks';
5
5
  import { MOBILE_WIDTH } from '../../utils';
6
- export const HomefileLogo = ({ onClick }) => {
6
+ import { t } from 'i18next';
7
+ export const HomefileLogo = ({ onClick, isPartner = false }) => {
7
8
  const { windowDimensions: { width }, } = useWindowDimensions();
8
9
  const isMobile = width < MOBILE_WIDTH;
9
- return (_jsx(Button, { variant: "menuIcon", maxW: "fit-content", onClick: onClick, "data-testid": "homefile-logo", children: _jsx(Image, { src: isMobile ? LogoSmall : HomefileUpdate, alt: "Homefile", h: "image.logo" }) }));
10
+ if (!isPartner) {
11
+ return (_jsx(Button, { variant: "menuIcon", maxW: "fit-content", onClick: onClick, "data-testid": "homefile-logo", children: _jsx(Image, { src: isMobile ? LogoSmall : HomefileUpdate, alt: "Homefile", h: "image.logo" }) }));
12
+ }
13
+ return (_jsxs(Flex, { align: "center", gap: ['2', 'base'], children: [_jsx(Button, { variant: "menuIcon", maxW: "fit-content", onClick: onClick, "data-testid": "homefile-logo", children: _jsx(Image, { src: isMobile ? LogoSmall : HomefileUpdate, alt: "Homefile", h: "image.logo" }) }), !isMobile && (_jsx(Box, { pl: "base", borderLeft: "1px solid", borderColor: "gray.200", children: _jsx(Text, { fontSize: "18px", fontWeight: "medium", children: t('partner.admin') }) }))] }));
10
14
  };
@@ -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));
@@ -1,3 +1,4 @@
1
1
  export * from './customersTile';
2
+ export * from './partnerServiceCard';
2
3
  export * from './satisfactionTile';
3
4
  export * from './ytdTile';
@@ -1,3 +1,4 @@
1
1
  export * from './customersTile';
2
+ export * from './partnerServiceCard';
2
3
  export * from './satisfactionTile';
3
4
  export * from './ytdTile';
@@ -0,0 +1,2 @@
1
+ import { PartnerServiceCodeTabI } from '../../../../interfaces';
2
+ export declare const CodeTab: ({ code, description }: PartnerServiceCodeTabI) => import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ import { AssociatedAccountI } from '../../../../interfaces';
2
+ export declare const OwnerTab: ({ accountTypes, user }: AssociatedAccountI) => import("react/jsx-runtime").JSX.Element;
@@ -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';
@@ -1,2 +1,2 @@
1
1
  import { RoomsMenuI } from '../../interfaces';
2
- export declare const RoomsMenu: ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, disabled, }: RoomsMenuI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const RoomsMenu: ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, disabled, showAddButton, showHomeButton, }: RoomsMenuI) => import("react/jsx-runtime").JSX.Element;
@@ -4,13 +4,13 @@ import { Box, Center, Tooltip, Image, useDisclosure, Show, } from '@chakra-ui/re
4
4
  import { RoomCard, NewRoomPanel, LeftPanel, Plus } from '../../components';
5
5
  import { useRoomList } from '../../hooks';
6
6
  import { House } from '../../assets/images';
7
- export const RoomsMenu = ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, disabled, }) => {
7
+ export const RoomsMenu = ({ activeRoom, rooms, roomsToAdd, onClick, onHomeClick, onAddRoom, disabled, showAddButton = true, showHomeButton = true, }) => {
8
8
  const { handleDragStart, handleDrop, newRooms } = useRoomList(rooms);
9
9
  const { isOpen, onOpen, onClose } = useDisclosure();
10
- return (_jsx(Show, { breakpoint: "(min-width: 591px)", children: _jsxs(Box, { bg: "neutral.white", minW: "fit-content", "data-testid": "rooms-menu", children: [_jsxs(Box, { w: "container.roomIcon", minW: "container.roomIcon", transition: "all 0.2s ease-in-out", bg: "lightBlue.4", children: [_jsx(Box, { overflow: "hidden", children: _jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('addRoom.addBtn'), placement: "right", children: _jsx(Box, { as: "button", w: "full", h: "container.masthead", onClick: onOpen, transition: "all 0.2s ease-in-out", bg: "blue.2", disabled: disabled, overflow: "hidden", _hover: { backgroundColor: 'blue.3' }, _disabled: {
10
+ return (_jsx(Show, { breakpoint: "(min-width: 591px)", children: _jsxs(Box, { bg: "neutral.white", minW: "fit-content", "data-testid": "rooms-menu", children: [_jsxs(Box, { w: "container.roomIcon", minW: "container.roomIcon", transition: "all 0.2s ease-in-out", bg: "lightBlue.4", children: [showAddButton && (_jsx(Box, { overflow: "hidden", children: _jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('addRoom.addBtn'), placement: "right", children: _jsx(Box, { as: "button", w: "full", h: "container.masthead", onClick: onOpen, transition: "all 0.2s ease-in-out", bg: "blue.2", disabled: disabled, overflow: "hidden", _hover: { backgroundColor: 'blue.3' }, _disabled: {
11
11
  filter: 'grayscale(100%)',
12
12
  pointerEvents: 'none',
13
- }, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Plus, {}) }) }) }) }), _jsx(Tooltip, { hasArrow: true, isDisabled: activeRoom === 'homeboard', label: t('rooms.homeboard'), placement: "right", children: _jsx(Box, { w: "full", as: "button", h: "3.2rem", bg: activeRoom === 'homeboard' ? 'lightGreen.3' : 'neutral.white', onClick: onHomeClick, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Image, { src: House, alt: t('ariaLabels.returnHomeBoard'), w: "1.5rem", h: "auto" }) }) }) }), _jsx(Box, { children: newRooms.map((room, i) => {
13
+ }, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Plus, {}) }) }) }) })), showHomeButton && (_jsx(Tooltip, { hasArrow: true, isDisabled: activeRoom === 'homeboard', label: t('rooms.homeboard'), placement: "right", children: _jsx(Box, { w: "full", as: "button", h: "3.2rem", bg: activeRoom === 'homeboard' ? 'lightGreen.3' : 'neutral.white', onClick: onHomeClick, children: _jsx(Center, { minW: "container.roomIcon", children: _jsx(Image, { src: House, alt: t('ariaLabels.returnHomeBoard'), w: "1.5rem", h: "auto" }) }) }) })), _jsx(Box, { children: newRooms.map((room, i) => {
14
14
  return (_jsxs(Box, { children: [_jsx(Box, { bg: "neutral.white", children: _jsx(Box, { h: "1px", bg: "lightBlue.4" }) }), _jsx(RoomCard, { activeRoom: activeRoom, handleClick: onClick, handleDragStart: handleDragStart, handleDrop: handleDrop, index: i, room: room }), i === newRooms.length - 1 && (_jsx(Box, { bg: "neutral.white", children: _jsx(Box, { h: "1px", bg: "lightBlue.4" }) }))] }, room._id));
15
- }) })] }), _jsx(LeftPanel, { size: "xs", isOpen: isOpen, onClose: onClose, children: _jsx(NewRoomPanel, { rooms: roomsToAdd, handleClick: onAddRoom, handleClose: onClose }) })] }) }));
15
+ }) })] }), showAddButton && (_jsx(LeftPanel, { size: "xs", isOpen: isOpen, onClose: onClose, children: _jsx(NewRoomPanel, { rooms: roomsToAdd, handleClick: onAddRoom, handleClose: onClose }) }))] }) }));
16
16
  };
@@ -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: firstName ? '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}` : '' })), _jsxs(Stack, { w: "full", spacing: "-2", minH: "3rem", justify: "space-between", children: [_jsxs(Box, { children: [firstName && (_jsx(Text, { textTransform: "capitalize", children: `${firstName} ${lastName}` })), _jsx(Text, { fontSize: "xxs", children: phone })] }), _jsx(Text, { variant: "email", alignSelf: "flex-end", children: email })] })] }));
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
  };
@@ -35,4 +35,9 @@ export const homeRoles = {
35
35
  width: '6rem',
36
36
  name: 'Homeowner',
37
37
  },
38
+ owner: {
39
+ bg: '#535C51',
40
+ width: '6rem',
41
+ name: 'Owner',
42
+ },
38
43
  };
@@ -1,16 +1,21 @@
1
- import { Bathroom, Bedroom, Closet, DiningRoom, Entryway, Garage, Hallway, House, Kitchen, Laundry, LivingRoom, Mudroom, Office, Patio, Structure, Theatre, } from '../../assets/images';
1
+ import { BillingAddress, Bathroom, Bedroom, Closet, Company, DiningRoom, Entryway, Garage, Gear, Group, Hallway, House, Kitchen, Laundry, LivingRoom, Manager, Mudroom, Office, Patio, Structure, Theatre, } from '../../assets/images';
2
2
  export const roomIcons = {
3
3
  bathroom: Bathroom,
4
+ billing_address: BillingAddress,
4
5
  bedroom: Bedroom,
5
6
  closet: Closet,
7
+ company: Company,
6
8
  dining_room: DiningRoom,
7
9
  entryway: Entryway,
8
10
  garage: Garage,
11
+ gear: Gear,
12
+ group: Group,
9
13
  hallway: Hallway,
10
14
  house: House,
11
15
  kitchen: Kitchen,
12
16
  laundry: Laundry,
13
17
  living_room: LivingRoom,
18
+ manager: Manager,
14
19
  mudroom: Mudroom,
15
20
  office: Office,
16
21
  patio: Patio,
@@ -19,16 +24,21 @@ export const roomIcons = {
19
24
  };
20
25
  export const roomNames = {
21
26
  bathroom: "Bathroom",
27
+ billing_address: "Billing Address",
22
28
  bedroom: "Bedroom",
23
29
  closet: "Closet",
30
+ company: "Company",
24
31
  dining_room: "Dining Room",
25
32
  entryway: "Entryway",
26
33
  garage: "Garage",
34
+ gear: "Gear",
35
+ group: "Group",
27
36
  hallway: "Hallway",
28
37
  house: "House",
29
38
  kitchen: "Kitchen",
30
39
  laundry: "Laundry",
31
40
  living_room: "Living Room",
41
+ manager: "Manager",
32
42
  mudroom: "Mudroom",
33
43
  office: "Office",
34
44
  patio: "Patio",
@@ -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,12 @@
1
1
  export const recipientsDb = [
2
+ {
3
+ accountTypes: ['Owner'],
4
+ user: {
5
+ email: 'gedmunds12@gmail.com',
6
+ firstName: 'Gary',
7
+ lastName: 'Edmunds',
8
+ },
9
+ },
2
10
  {
3
11
  accountTypes: ['Member', 'Contributor', 'Homeowner'],
4
12
  user: {
@@ -4,6 +4,7 @@ export interface AppBarI {
4
4
  children: ReactNode;
5
5
  onLogoClick: () => void;
6
6
  user: UserProfileI;
7
+ isPartner?: boolean;
7
8
  }
8
9
  export interface AppBarIconI {
9
10
  onClick: () => void;
@@ -1,3 +1,4 @@
1
1
  export interface HomefileLogoI {
2
2
  onClick: () => void;
3
+ isPartner?: boolean;
3
4
  }
@@ -1,4 +1,4 @@
1
1
  import { AssociatedAccountI, HomeCardWithRecipentI } from '../../interfaces';
2
2
  export interface HomeCardRecipientsI extends Pick<HomeCardWithRecipentI, 'menu' | 'recipients'> {
3
- onEditClick: (values: AssociatedAccountI) => void;
3
+ onEditClick?: (values: AssociatedAccountI) => void;
4
4
  }
@@ -1,3 +1,4 @@
1
1
  export * from './customerTile';
2
+ export * from './partnerServiceCard';
2
3
  export * from './satisfactionTile';
3
4
  export * from './ytdTile';
@@ -1,3 +1,4 @@
1
1
  export * from './customerTile';
2
+ export * from './partnerServiceCard';
2
3
  export * from './satisfactionTile';
3
4
  export * from './ytdTile';
@@ -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 * from './PartnerServiceCard.interface';
@@ -0,0 +1 @@
1
+ export * from './PartnerServiceCard.interface';
@@ -44,4 +44,6 @@ export interface RoomsMenuI {
44
44
  onClick: (room: RoomItemI) => void;
45
45
  onHomeClick: () => void;
46
46
  disabled?: boolean;
47
+ showAddButton?: boolean;
48
+ showHomeButton?: boolean;
47
49
  }
@@ -2,4 +2,4 @@ import { Meta } from '@storybook/react';
2
2
  import { AppBarI } from '../../interfaces';
3
3
  declare const _default: Meta<AppBarI>;
4
4
  export default _default;
5
- export declare const AppBarComponent: () => import("react/jsx-runtime").JSX.Element;
5
+ export declare const AppBarComponent: (args: AppBarI) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { action } from '@storybook/addon-actions';
3
- import { AppBar, BarDivider, ContactList, HelpContent, NotificationsReminder, PeopleConnected, RightPanel, StorageUsed, TourButton, Trash, TutorialsButton, } from '../../components';
3
+ import { AppBar, BarDivider, ContactList, HelpContent, NotificationsReminder, PeopleConnected, RightPanel, StorageUsed, Trash, TutorialsButton, } from '../../components';
4
4
  import { useState } from 'react';
5
5
  import { Tutorials } from '../../helpers';
6
6
  import { useWindowDimensions } from '../../hooks';
@@ -8,17 +8,36 @@ import { MOBILE_WIDTH } from '../../utils';
8
8
  export default {
9
9
  title: 'Components/AppBar',
10
10
  component: AppBar,
11
+ args: {
12
+ isPartner: true,
13
+ user: {
14
+ avatarUrl: 'https://bit.ly/dan-abramov',
15
+ firstName: 'Adam',
16
+ userName: 'Adam Lee',
17
+ bg: '#4CC35A',
18
+ menuItems: [
19
+ {
20
+ label: 'Profile',
21
+ handleClick: action('onProfileClick'),
22
+ },
23
+ {
24
+ label: 'Logout',
25
+ handleClick: action('onLogoutClick'),
26
+ },
27
+ ],
28
+ },
29
+ },
11
30
  };
12
- export const AppBarComponent = () => {
31
+ export const AppBarComponent = (args) => {
13
32
  const [open, setOpen] = useState(false);
14
33
  const handleClose = () => setOpen(false);
15
34
  const handleOpen = () => setOpen(true);
16
35
  const { windowDimensions: { width }, } = useWindowDimensions();
17
36
  const isMobile = width < MOBILE_WIDTH;
18
- return (_jsxs(_Fragment, { children: [_jsxs(AppBar, { onLogoClick: action('onLogoClick'), user: {
37
+ return (_jsxs(_Fragment, { children: [_jsxs(AppBar, Object.assign({}, args, { onLogoClick: action('onLogoClick'), user: {
19
38
  avatarUrl: 'https://bit.ly/dan-abramov',
20
- firstName: 'John',
21
- userName: 'John Doe',
39
+ firstName: 'Adam',
40
+ userName: 'Adam Lee',
22
41
  bg: '#4CC35A',
23
42
  menuItems: [
24
43
  {
@@ -30,5 +49,5 @@ export const AppBarComponent = () => {
30
49
  handleClick: action('onLogoutClick'),
31
50
  },
32
51
  ],
33
- }, children: [!isMobile && (_jsx(TourButton, { onClick: action('onShowTourClick'), label: "Show tour" })), _jsx(NotificationsReminder, { onClick: action('onNotificationsReminderClick'), total: 0 }), _jsx(BarDivider, {}), _jsx(PeopleConnected, { onClick: action('onPeopleConnectedClick'), total: 12 }), !isMobile && _jsx(BarDivider, {}), _jsx(ContactList, { onClick: action('onContactListClick'), total: 2 }), _jsx(BarDivider, {}), !isMobile && (_jsx(StorageUsed, { totalUsed: 2, totalStorage: 10, state: "trial", onClick: action('onStorageUsedClick') })), _jsx(Trash, { onClick: action('onTrashClick'), total: 2 }), _jsx(BarDivider, {}), _jsx(TutorialsButton, { onClick: handleOpen })] }), _jsx(RightPanel, { isOpen: open, onClose: handleClose, children: _jsx(HelpContent, { categories: ['Getting Started', 'How to', 'FAQs'], formSent: false, onClose: handleClose, onFeedback: action('onTutorialsButtonClick'), onShowTour: action('onTutorialsButtonClick'), isLoading: false, tutorials: Tutorials }) })] }));
52
+ }, children: [_jsx(NotificationsReminder, { onClick: action('onNotificationsReminderClick'), total: 0 }), _jsx(BarDivider, {}), _jsx(PeopleConnected, { onClick: action('onPeopleConnectedClick'), total: 12 }), !isMobile && _jsx(BarDivider, {}), _jsx(ContactList, { onClick: action('onContactListClick'), total: 2 }), _jsx(BarDivider, {}), !isMobile && (_jsx(StorageUsed, { totalUsed: 2, totalStorage: 10, state: "trial", onClick: action('onStorageUsedClick') })), _jsx(Trash, { onClick: action('onTrashClick'), total: 2 }), _jsx(BarDivider, {}), _jsx(TutorialsButton, { onClick: handleOpen })] })), _jsx(RightPanel, { isOpen: open, onClose: handleClose, children: _jsx(HelpContent, { categories: ['Getting Started', 'How to', 'FAQs'], formSent: false, onClose: handleClose, onFeedback: action('onTutorialsButtonClick'), onShowTour: action('onTutorialsButtonClick'), isLoading: false, tutorials: Tutorials }) })] }));
34
53
  };
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Center, Grid, Image, Text } from '@chakra-ui/react';
3
- import { AlertDelete, AlertDeletePurple, Arrow, Balustrades, Barcode, Batery, Bathroom, Battery, Battery2, Bedding, Bedroom, BillingAddress, Billing, BlueCirclePlus, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, Brain, Building, Calc, Calendar, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Cookware, Countertops, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, EstValue, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, Flag2, Flower, Flooring, FormSent, Foundation, Furniture, Garage, GearPencil, GearTime, GenericField, GlassWater, GoldenBars, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Hardware, Heart, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, PressureWasher, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Speaker, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Wallet, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, BookOpened, Company2, } from '../../assets/images';
3
+ import { AlertDelete, AlertDeletePurple, Arrow, Balustrades, Barcode, Batery, Bathroom, Battery, Battery2, Bedding, Bedroom, BillingAddress, Billing, BlueCirclePlus, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, Brain, Building, Calc, Calendar, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Cookware, Countertops, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, EstValue, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, Flag2, Flower, Flooring, FormSent, Foundation, Furniture, Garage, GearPencil, GearTime, Gear, GenericField, GlassWater, GoldenBars, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Hardware, Heart, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Jacuzzi, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, MagnifyingGlassPerson, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, PressureWasher, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, SharePeople, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Speaker, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Wallet, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, BookOpened, Company2, } from '../../assets/images';
4
4
  import { CookTop, Dishwasher, Dryer, Freezer, Fridge, Microwave, Oven, Range, Washer, tankWater, tanklessWater, } from '../../assets/images/appliances';
5
5
  import { BatterySmokeDetector, Co2Detector, FireExtinguisher, Furnace, HeatPump, InWall, LandscapeLights, Other, SprinklerSystem, SprinklerSystem2, WiredSmokeDetector, } from '../../assets/images/home-assistant';
6
6
  export default {
7
7
  title: 'Assets/Illustrations',
8
8
  };
9
9
  export const Illustrations = () => {
10
- return (_jsxs(Grid, { maxW: "600px", templateColumns: "repeat(auto-fill, minmax(75px, 1fr))", p: "base", gap: "8", children: [_jsx(IconWrapper, { icon: CookTop, name: "CookTop" }), _jsx(IconWrapper, { icon: Dishwasher, name: "Dishwasher" }), _jsx(IconWrapper, { icon: Dryer, name: "Dryer" }), _jsx(IconWrapper, { icon: Freezer, name: "Freezer" }), _jsx(IconWrapper, { icon: Fridge, name: "Fridge" }), _jsx(IconWrapper, { icon: Microwave, name: "Microwave" }), _jsx(IconWrapper, { icon: Oven, name: "Oven" }), _jsx(IconWrapper, { icon: Range, name: "Range" }), _jsx(IconWrapper, { icon: Washer, name: "Washer" }), _jsx(IconWrapper, { icon: tankWater, name: "TankWater" }), _jsx(IconWrapper, { icon: tanklessWater, name: "TanklessWater" }), _jsx(IconWrapper, { icon: BatterySmokeDetector, name: "BatterySmokeDetector" }), _jsx(IconWrapper, { icon: Co2Detector, name: "Co2Detector" }), _jsx(IconWrapper, { icon: FireExtinguisher, name: "FireExtinguisher" }), _jsx(IconWrapper, { icon: Furnace, name: "Furnace" }), _jsx(IconWrapper, { icon: HeatPump, name: "HeatPump" }), _jsx(IconWrapper, { icon: InWall, name: "InWall" }), _jsx(IconWrapper, { icon: Jacuzzi, name: "Jacuzzi" }), _jsx(IconWrapper, { icon: LandscapeLights, name: "LandscapeLights" }), _jsx(IconWrapper, { icon: Other, name: "Other" }), _jsx(IconWrapper, { icon: SprinklerSystem, name: "SprinklerSystem" }), _jsx(IconWrapper, { icon: SprinklerSystem2, name: "SprinklerSystem2" }), _jsx(IconWrapper, { icon: WiredSmokeDetector, name: "WiredSmokeDetector" }), _jsx(IconWrapper, { icon: Barcode, name: "Barcode" }), _jsx(IconWrapper, { icon: Book, name: "Book" }), _jsx(IconWrapper, { icon: Calendar, name: "Calendar" }), _jsx(IconWrapper, { icon: GoldenBars, name: "GoldenBars" }), _jsx(IconWrapper, { icon: Heart, name: "Heart" }), _jsx(IconWrapper, { icon: Notes, name: "Notes" }), _jsx(IconWrapper, { icon: Rating, name: "Rating" }), _jsx(IconWrapper, { icon: Registry, name: "Registry" }), _jsx(IconWrapper, { icon: Tools2, name: "Tools2" }), _jsx(IconWrapper, { icon: Balustrades, name: "Balustrades" }), _jsx(IconWrapper, { icon: Bedding, name: "Bedding" }), _jsx(IconWrapper, { icon: Cookware, name: "Cookware" }), _jsx(IconWrapper, { icon: Countertops, name: "Countertops" }), _jsx(IconWrapper, { icon: Doors, name: "Doors" }), _jsx(IconWrapper, { icon: Electronics, name: "Electronics" }), _jsx(IconWrapper, { icon: Equipment, name: "Equipment" }), _jsx(IconWrapper, { icon: Exterior, name: "Exterior" }), _jsx(IconWrapper, { icon: Fire, name: "Fire" }), _jsx(IconWrapper, { icon: Flooring, name: "Flooring" }), _jsx(IconWrapper, { icon: Furniture, name: "Furniture" }), _jsx(IconWrapper, { icon: Hardware, name: "Hardware" }), _jsx(IconWrapper, { icon: LargeAppliances, name: "LargeAppliances" }), _jsx(IconWrapper, { icon: Lighting, name: "Lighting" }), _jsx(IconWrapper, { icon: Mattress, name: "Mattress" }), _jsx(IconWrapper, { icon: Paint, name: "Paint" }), _jsx(IconWrapper, { icon: Plants, name: "Plants" }), _jsx(IconWrapper, { icon: Porch, name: "Porch" }), _jsx(IconWrapper, { icon: Roof, name: "Roof" }), _jsx(IconWrapper, { icon: SmallAppliances, name: "SmallAppliances" }), _jsx(IconWrapper, { icon: Steps, name: "Steps" }), _jsx(IconWrapper, { icon: Structures, name: "Structures" }), _jsx(IconWrapper, { icon: Supplies, name: "Supplies" }), _jsx(IconWrapper, { icon: Table, name: "Table" }), _jsx(IconWrapper, { icon: Temperature, name: "Temperature" }), _jsx(IconWrapper, { icon: Tile, name: "Tile" }), _jsx(IconWrapper, { icon: Tools, name: "Tools" }), _jsx(IconWrapper, { icon: Utensils, name: "Utensils" }), _jsx(IconWrapper, { icon: WallDecor, name: "WallDecor" }), _jsx(IconWrapper, { icon: Water, name: "Water" }), _jsx(IconWrapper, { icon: Window, name: "Window" }), _jsx(IconWrapper, { icon: AlertDelete, name: "AlertDelete" }), _jsx(IconWrapper, { icon: AlertDeletePurple, name: "AlertDeletePurple" }), _jsx(IconWrapper, { icon: Arrow, name: "Arrow" }), _jsx(IconWrapper, { icon: Batery, name: "Batery" }), _jsx(IconWrapper, { icon: Bathroom, name: "Bathroom" }), _jsx(IconWrapper, { icon: Battery, name: "Battery" }), _jsx(IconWrapper, { icon: Battery2, name: "Battery2" }), _jsx(IconWrapper, { icon: Bedroom, name: "Bedroom" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BlueCirclePlus, name: "BlueCirclePlus" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BookOpened, name: "BookOpened" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _jsx(IconWrapper, { icon: Brain, name: "Brain" }), _jsx(IconWrapper, { icon: Building, name: "Building" }), _jsx(IconWrapper, { icon: Calc, name: "Calc" }), _jsx(IconWrapper, { icon: Calendar2, name: "Calendar2" }), _jsx(IconWrapper, { icon: Catalog, name: "Catalog" }), _jsx(IconWrapper, { icon: Check, name: "Check" }), _jsx(IconWrapper, { icon: CheckInCircle, name: "CheckInCircle" }), _jsx(IconWrapper, { icon: CheckPen, name: "CheckPen" }), _jsx(IconWrapper, { icon: Chemistry, name: "Chemistry" }), _jsx(IconWrapper, { icon: CircleFace, name: "CircleFace" }), _jsx(IconWrapper, { icon: Cleaning, name: "Cleaning" }), _jsx(IconWrapper, { icon: Closet, name: "Closet" }), _jsx(IconWrapper, { icon: Co2, name: "Co2" }), _jsx(IconWrapper, { icon: Company, name: "Company" }), _jsx(IconWrapper, { icon: Company2, name: "Company2" }), _jsx(IconWrapper, { icon: ComputerReport, name: "ComputerReport" }), _jsx(IconWrapper, { icon: Confirmation, name: "Confirmation" }), _jsx(IconWrapper, { icon: Construction, name: "Construction" }), _jsx(IconWrapper, { icon: Contacts, name: "Contacts" }), _jsx(IconWrapper, { icon: Contacts2, name: "Contacts2" }), _jsx(IconWrapper, { icon: Contributor, name: "Contributor" }), _jsx(IconWrapper, { icon: CreditCard, name: "CreditCard" }), _jsx(IconWrapper, { icon: Detector, name: "Detector" }), _jsx(IconWrapper, { icon: Diamond, name: "Diamond" }), _jsx(IconWrapper, { icon: DiningRoom, name: "DiningRoom" }), _jsx(IconWrapper, { icon: DocIcon, name: "DocIcon" }), _jsx(IconWrapper, { icon: Document, name: "Document" }), _jsx(IconWrapper, { icon: Document2, name: "Document2" }), _jsx(IconWrapper, { icon: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _jsx(IconWrapper, { icon: EstValue, name: "EstValue" }), _jsx(IconWrapper, { icon: Exclamation, name: "Exclamation" }), _jsx(IconWrapper, { icon: Face, name: "Face" }), _jsx(IconWrapper, { icon: Feedback, name: "Feedback" }), _jsx(IconWrapper, { icon: FileUploading, name: "FileUploading" }), _jsx(IconWrapper, { icon: Finance, name: "Finance" }), _jsx(IconWrapper, { icon: Flag, name: "Flag" }), _jsx(IconWrapper, { icon: Flag2, name: "Flag2" }), _jsx(IconWrapper, { icon: Flower, name: "Flower" }), _jsx(IconWrapper, { icon: FormSent, name: "FormSent" }), _jsx(IconWrapper, { icon: Foundation, name: "Foundation" }), _jsx(IconWrapper, { icon: Garage, name: "Garage" }), _jsx(IconWrapper, { icon: GearPencil, name: "GearPencil" }), _jsx(IconWrapper, { icon: GearTime, name: "GearTime" }), _jsx(IconWrapper, { icon: GenericField, name: "GenericField" }), _jsx(IconWrapper, { icon: GlassWater, name: "GlassWater" }), _jsx(IconWrapper, { icon: GreenFolder, name: "GreenFolder" }), _jsx(IconWrapper, { icon: Group, name: "Group" }), _jsx(IconWrapper, { icon: Groups, name: "Groups" }), _jsx(IconWrapper, { icon: GuestBedroom, name: "GuestBedroom" }), _jsx(IconWrapper, { icon: Hallway, name: "Hallway" }), _jsx(IconWrapper, { icon: HandPencil, name: "HandPencil" }), _jsx(IconWrapper, { icon: Heater, name: "Heater" }), _jsx(IconWrapper, { icon: Help, name: "Help" }), _jsx(IconWrapper, { icon: HomeAddress, name: "HomeAddress" }), _jsx(IconWrapper, { icon: Homeowner, name: "Homeowner" }), _jsx(IconWrapper, { icon: House, name: "House" }), _jsx(IconWrapper, { icon: HouseHands, name: "HouseHands" }), _jsx(IconWrapper, { icon: IA, name: "IA" }), _jsx(IconWrapper, { icon: ImageDefault, name: "ImageDefault" }), _jsx(IconWrapper, { icon: ImgIcon, name: "ImgIcon" }), _jsx(IconWrapper, { icon: Inbox, name: "Inbox" }), _jsx(IconWrapper, { icon: Insect, name: "Insect" }), _jsx(IconWrapper, { icon: Kitchen, name: "Kitchen" }), _jsx(IconWrapper, { icon: Laundry, name: "Laundry" }), _jsx(IconWrapper, { icon: Light, name: "Light" }), _jsx(IconWrapper, { icon: LivingRoom, name: "LivingRoom" }), _jsx(IconWrapper, { icon: LogoSmall, name: "LogoSmall" }), _jsx(IconWrapper, { icon: MagnifyingGlassReport, name: "MagnifyingGlassReport" }), _jsx(IconWrapper, { icon: MagnifyingGlassPerson, name: "MagnifyingGlassPerson" }), _jsx(IconWrapper, { icon: Manager, name: "Manager" }), _jsx(IconWrapper, { icon: MasterBedroom, name: "MasterBedroom" }), _jsx(IconWrapper, { icon: Member, name: "Member" }), _jsx(IconWrapper, { icon: Message, name: "Message" }), _jsx(IconWrapper, { icon: MobileDrop, name: "MobileDrop" }), _jsx(IconWrapper, { icon: Money, name: "Money" }), _jsx(IconWrapper, { icon: Mudroom, name: "Mudroom" }), _jsx(IconWrapper, { icon: NeedHelp, name: "NeedHelp" }), _jsx(IconWrapper, { icon: Office, name: "Office" }), _jsx(IconWrapper, { icon: Painting, name: "Painting" }), _jsx(IconWrapper, { icon: PartnerGeneric, name: "PartnerGeneric" }), _jsx(IconWrapper, { icon: Patio, name: "Patio" }), _jsx(IconWrapper, { icon: PdfIcon, name: "PdfIcon" }), _jsx(IconWrapper, { icon: PersonMail, name: "PersonMail" }), _jsx(IconWrapper, { icon: Plate, name: "Plate" }), _jsx(IconWrapper, { icon: Play, name: "Play" }), _jsx(IconWrapper, { icon: Plus, name: "Plus" }), _jsx(IconWrapper, { icon: Pool, name: "Pool" }), _jsx(IconWrapper, { icon: Pool2, name: "Pool2" }), _jsx(IconWrapper, { icon: PressureWasher, name: "PressureWasher" }), _jsx(IconWrapper, { icon: Price, name: "Price" }), _jsx(IconWrapper, { icon: Profile, name: "Profile" }), _jsx(IconWrapper, { icon: ProgressReport, name: "ProgressReport" }), _jsx(IconWrapper, { icon: Proposal, name: "Proposal" }), _jsx(IconWrapper, { icon: RealEstate, name: "RealEstate" }), _jsx(IconWrapper, { icon: Receipt, name: "Receipt" }), _jsx(IconWrapper, { icon: ReceiptBg, name: "ReceiptBg" }), _jsx(IconWrapper, { icon: ReceiptHouse, name: "ReceiptHouse" }), _jsx(IconWrapper, { icon: Receipts, name: "Receipts" }), _jsx(IconWrapper, { icon: Recipient, name: "Recipient" }), _jsx(IconWrapper, { icon: Records, name: "Records" }), _jsx(IconWrapper, { icon: Register, name: "Register" }), _jsx(IconWrapper, { icon: RelationshipHome, name: "RelationshipHome" }), _jsx(IconWrapper, { icon: ResendPassword, name: "ResendPassword" }), _jsx(IconWrapper, { icon: Rocket, name: "Rocket" }), _jsx(IconWrapper, { icon: Roof2, name: "Roof2" }), _jsx(IconWrapper, { icon: Security, name: "Security" }), _jsx(IconWrapper, { icon: Send, name: "Send" }), _jsx(IconWrapper, { icon: ShareHome, name: "ShareHome" }), _jsx(IconWrapper, { icon: SharePeople, name: "SharePeople" }), _jsx(IconWrapper, { icon: ShareWith, name: "ShareWith" }), _jsx(IconWrapper, { icon: SixtyEight, name: "SixtyEight" }), _jsx(IconWrapper, { icon: SMS, name: "SMS" }), _jsx(IconWrapper, { icon: Social, name: "Social" }), _jsx(IconWrapper, { icon: SolarPanel, name: "SolarPanel" }), _jsx(IconWrapper, { icon: Speaker, name: "Speaker" }), _jsx(IconWrapper, { icon: Sprinkler, name: "Sprinkler" }), _jsx(IconWrapper, { icon: Structure, name: "Structure" }), _jsx(IconWrapper, { icon: Subscription, name: "Subscription" }), _jsx(IconWrapper, { icon: Target, name: "Target" }), _jsx(IconWrapper, { icon: Theatre, name: "Theatre" }), _jsx(IconWrapper, { icon: Thumbnail, name: "Thumbnail" }), _jsx(IconWrapper, { icon: ThumbnailSmall, name: "ThumbnailSmall" }), _jsx(IconWrapper, { icon: ThumbUp, name: "ThumbUp" }), _jsx(IconWrapper, { icon: Trash, name: "Trash" }), _jsx(IconWrapper, { icon: VideoIcon, name: "VideoIcon" }), _jsx(IconWrapper, { icon: VideoPlay, name: "VideoPlay" }), _jsx(IconWrapper, { icon: VioletFolder, name: "VioletFolder" }), _jsx(IconWrapper, { icon: Wallet, name: "Wallet" }), _jsx(IconWrapper, { icon: Warning, name: "Warning" }), _jsx(IconWrapper, { icon: Warranty, name: "Warranty" }), _jsx(IconWrapper, { icon: WellDone, name: "WellDone" }), _jsx(IconWrapper, { icon: WholeHome, name: "WholeHome" }), _jsx(IconWrapper, { icon: Wind, name: "Wind" }), _jsx(IconWrapper, { icon: Wizard, name: "Wizard" }), _jsx(IconWrapper, { icon: WizardDetailed, name: "WizardDetailed" }), _jsx(IconWrapper, { icon: WizardQuick, name: "WizardQuick" }), _jsx(IconWrapper, { icon: YellowFolder, name: "YellowFolder" }), _jsx(IconWrapper, { icon: YellowFolderUnshared, name: "YellowFolderUnshared" })] }));
10
+ return (_jsxs(Grid, { maxW: "600px", templateColumns: "repeat(auto-fill, minmax(75px, 1fr))", p: "base", gap: "8", children: [_jsx(IconWrapper, { icon: CookTop, name: "CookTop" }), _jsx(IconWrapper, { icon: Dishwasher, name: "Dishwasher" }), _jsx(IconWrapper, { icon: Dryer, name: "Dryer" }), _jsx(IconWrapper, { icon: Freezer, name: "Freezer" }), _jsx(IconWrapper, { icon: Fridge, name: "Fridge" }), _jsx(IconWrapper, { icon: Microwave, name: "Microwave" }), _jsx(IconWrapper, { icon: Oven, name: "Oven" }), _jsx(IconWrapper, { icon: Range, name: "Range" }), _jsx(IconWrapper, { icon: Washer, name: "Washer" }), _jsx(IconWrapper, { icon: tankWater, name: "TankWater" }), _jsx(IconWrapper, { icon: tanklessWater, name: "TanklessWater" }), _jsx(IconWrapper, { icon: BatterySmokeDetector, name: "BatterySmokeDetector" }), _jsx(IconWrapper, { icon: Co2Detector, name: "Co2Detector" }), _jsx(IconWrapper, { icon: FireExtinguisher, name: "FireExtinguisher" }), _jsx(IconWrapper, { icon: Furnace, name: "Furnace" }), _jsx(IconWrapper, { icon: HeatPump, name: "HeatPump" }), _jsx(IconWrapper, { icon: InWall, name: "InWall" }), _jsx(IconWrapper, { icon: Jacuzzi, name: "Jacuzzi" }), _jsx(IconWrapper, { icon: LandscapeLights, name: "LandscapeLights" }), _jsx(IconWrapper, { icon: Other, name: "Other" }), _jsx(IconWrapper, { icon: SprinklerSystem, name: "SprinklerSystem" }), _jsx(IconWrapper, { icon: SprinklerSystem2, name: "SprinklerSystem2" }), _jsx(IconWrapper, { icon: WiredSmokeDetector, name: "WiredSmokeDetector" }), _jsx(IconWrapper, { icon: Barcode, name: "Barcode" }), _jsx(IconWrapper, { icon: Book, name: "Book" }), _jsx(IconWrapper, { icon: Calendar, name: "Calendar" }), _jsx(IconWrapper, { icon: GoldenBars, name: "GoldenBars" }), _jsx(IconWrapper, { icon: Heart, name: "Heart" }), _jsx(IconWrapper, { icon: Notes, name: "Notes" }), _jsx(IconWrapper, { icon: Rating, name: "Rating" }), _jsx(IconWrapper, { icon: Registry, name: "Registry" }), _jsx(IconWrapper, { icon: Tools2, name: "Tools2" }), _jsx(IconWrapper, { icon: Balustrades, name: "Balustrades" }), _jsx(IconWrapper, { icon: Bedding, name: "Bedding" }), _jsx(IconWrapper, { icon: Cookware, name: "Cookware" }), _jsx(IconWrapper, { icon: Countertops, name: "Countertops" }), _jsx(IconWrapper, { icon: Doors, name: "Doors" }), _jsx(IconWrapper, { icon: Electronics, name: "Electronics" }), _jsx(IconWrapper, { icon: Equipment, name: "Equipment" }), _jsx(IconWrapper, { icon: Exterior, name: "Exterior" }), _jsx(IconWrapper, { icon: Fire, name: "Fire" }), _jsx(IconWrapper, { icon: Flooring, name: "Flooring" }), _jsx(IconWrapper, { icon: Furniture, name: "Furniture" }), _jsx(IconWrapper, { icon: Hardware, name: "Hardware" }), _jsx(IconWrapper, { icon: LargeAppliances, name: "LargeAppliances" }), _jsx(IconWrapper, { icon: Lighting, name: "Lighting" }), _jsx(IconWrapper, { icon: Mattress, name: "Mattress" }), _jsx(IconWrapper, { icon: Paint, name: "Paint" }), _jsx(IconWrapper, { icon: Plants, name: "Plants" }), _jsx(IconWrapper, { icon: Porch, name: "Porch" }), _jsx(IconWrapper, { icon: Roof, name: "Roof" }), _jsx(IconWrapper, { icon: SmallAppliances, name: "SmallAppliances" }), _jsx(IconWrapper, { icon: Steps, name: "Steps" }), _jsx(IconWrapper, { icon: Structures, name: "Structures" }), _jsx(IconWrapper, { icon: Supplies, name: "Supplies" }), _jsx(IconWrapper, { icon: Table, name: "Table" }), _jsx(IconWrapper, { icon: Temperature, name: "Temperature" }), _jsx(IconWrapper, { icon: Tile, name: "Tile" }), _jsx(IconWrapper, { icon: Tools, name: "Tools" }), _jsx(IconWrapper, { icon: Utensils, name: "Utensils" }), _jsx(IconWrapper, { icon: WallDecor, name: "WallDecor" }), _jsx(IconWrapper, { icon: Water, name: "Water" }), _jsx(IconWrapper, { icon: Window, name: "Window" }), _jsx(IconWrapper, { icon: AlertDelete, name: "AlertDelete" }), _jsx(IconWrapper, { icon: AlertDeletePurple, name: "AlertDeletePurple" }), _jsx(IconWrapper, { icon: Arrow, name: "Arrow" }), _jsx(IconWrapper, { icon: Batery, name: "Batery" }), _jsx(IconWrapper, { icon: Bathroom, name: "Bathroom" }), _jsx(IconWrapper, { icon: Battery, name: "Battery" }), _jsx(IconWrapper, { icon: Battery2, name: "Battery2" }), _jsx(IconWrapper, { icon: Bedroom, name: "Bedroom" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BlueCirclePlus, name: "BlueCirclePlus" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BookOpened, name: "BookOpened" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _jsx(IconWrapper, { icon: Brain, name: "Brain" }), _jsx(IconWrapper, { icon: Building, name: "Building" }), _jsx(IconWrapper, { icon: Calc, name: "Calc" }), _jsx(IconWrapper, { icon: Calendar2, name: "Calendar2" }), _jsx(IconWrapper, { icon: Catalog, name: "Catalog" }), _jsx(IconWrapper, { icon: Check, name: "Check" }), _jsx(IconWrapper, { icon: CheckInCircle, name: "CheckInCircle" }), _jsx(IconWrapper, { icon: CheckPen, name: "CheckPen" }), _jsx(IconWrapper, { icon: Chemistry, name: "Chemistry" }), _jsx(IconWrapper, { icon: CircleFace, name: "CircleFace" }), _jsx(IconWrapper, { icon: Cleaning, name: "Cleaning" }), _jsx(IconWrapper, { icon: Closet, name: "Closet" }), _jsx(IconWrapper, { icon: Co2, name: "Co2" }), _jsx(IconWrapper, { icon: Company, name: "Company" }), _jsx(IconWrapper, { icon: Company2, name: "Company2" }), _jsx(IconWrapper, { icon: ComputerReport, name: "ComputerReport" }), _jsx(IconWrapper, { icon: Confirmation, name: "Confirmation" }), _jsx(IconWrapper, { icon: Construction, name: "Construction" }), _jsx(IconWrapper, { icon: Contacts, name: "Contacts" }), _jsx(IconWrapper, { icon: Contacts2, name: "Contacts2" }), _jsx(IconWrapper, { icon: Contributor, name: "Contributor" }), _jsx(IconWrapper, { icon: CreditCard, name: "CreditCard" }), _jsx(IconWrapper, { icon: Detector, name: "Detector" }), _jsx(IconWrapper, { icon: Diamond, name: "Diamond" }), _jsx(IconWrapper, { icon: DiningRoom, name: "DiningRoom" }), _jsx(IconWrapper, { icon: DocIcon, name: "DocIcon" }), _jsx(IconWrapper, { icon: Document, name: "Document" }), _jsx(IconWrapper, { icon: Document2, name: "Document2" }), _jsx(IconWrapper, { icon: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _jsx(IconWrapper, { icon: EstValue, name: "EstValue" }), _jsx(IconWrapper, { icon: Exclamation, name: "Exclamation" }), _jsx(IconWrapper, { icon: Face, name: "Face" }), _jsx(IconWrapper, { icon: Feedback, name: "Feedback" }), _jsx(IconWrapper, { icon: FileUploading, name: "FileUploading" }), _jsx(IconWrapper, { icon: Finance, name: "Finance" }), _jsx(IconWrapper, { icon: Flag, name: "Flag" }), _jsx(IconWrapper, { icon: Flag2, name: "Flag2" }), _jsx(IconWrapper, { icon: Flower, name: "Flower" }), _jsx(IconWrapper, { icon: FormSent, name: "FormSent" }), _jsx(IconWrapper, { icon: Foundation, name: "Foundation" }), _jsx(IconWrapper, { icon: Garage, name: "Garage" }), _jsx(IconWrapper, { icon: GearPencil, name: "GearPencil" }), _jsx(IconWrapper, { icon: GearTime, name: "GearTime" }), _jsx(IconWrapper, { icon: Gear, name: "Gear" }), _jsx(IconWrapper, { icon: GenericField, name: "GenericField" }), _jsx(IconWrapper, { icon: GlassWater, name: "GlassWater" }), _jsx(IconWrapper, { icon: GreenFolder, name: "GreenFolder" }), _jsx(IconWrapper, { icon: Group, name: "Group" }), _jsx(IconWrapper, { icon: Groups, name: "Groups" }), _jsx(IconWrapper, { icon: GuestBedroom, name: "GuestBedroom" }), _jsx(IconWrapper, { icon: Hallway, name: "Hallway" }), _jsx(IconWrapper, { icon: HandPencil, name: "HandPencil" }), _jsx(IconWrapper, { icon: Heater, name: "Heater" }), _jsx(IconWrapper, { icon: Help, name: "Help" }), _jsx(IconWrapper, { icon: HomeAddress, name: "HomeAddress" }), _jsx(IconWrapper, { icon: Homeowner, name: "Homeowner" }), _jsx(IconWrapper, { icon: House, name: "House" }), _jsx(IconWrapper, { icon: HouseHands, name: "HouseHands" }), _jsx(IconWrapper, { icon: IA, name: "IA" }), _jsx(IconWrapper, { icon: ImageDefault, name: "ImageDefault" }), _jsx(IconWrapper, { icon: ImgIcon, name: "ImgIcon" }), _jsx(IconWrapper, { icon: Inbox, name: "Inbox" }), _jsx(IconWrapper, { icon: Insect, name: "Insect" }), _jsx(IconWrapper, { icon: Kitchen, name: "Kitchen" }), _jsx(IconWrapper, { icon: Laundry, name: "Laundry" }), _jsx(IconWrapper, { icon: Light, name: "Light" }), _jsx(IconWrapper, { icon: LivingRoom, name: "LivingRoom" }), _jsx(IconWrapper, { icon: LogoSmall, name: "LogoSmall" }), _jsx(IconWrapper, { icon: MagnifyingGlassReport, name: "MagnifyingGlassReport" }), _jsx(IconWrapper, { icon: MagnifyingGlassPerson, name: "MagnifyingGlassPerson" }), _jsx(IconWrapper, { icon: Manager, name: "Manager" }), _jsx(IconWrapper, { icon: MasterBedroom, name: "MasterBedroom" }), _jsx(IconWrapper, { icon: Member, name: "Member" }), _jsx(IconWrapper, { icon: Message, name: "Message" }), _jsx(IconWrapper, { icon: MobileDrop, name: "MobileDrop" }), _jsx(IconWrapper, { icon: Money, name: "Money" }), _jsx(IconWrapper, { icon: Mudroom, name: "Mudroom" }), _jsx(IconWrapper, { icon: NeedHelp, name: "NeedHelp" }), _jsx(IconWrapper, { icon: Office, name: "Office" }), _jsx(IconWrapper, { icon: Painting, name: "Painting" }), _jsx(IconWrapper, { icon: PartnerGeneric, name: "PartnerGeneric" }), _jsx(IconWrapper, { icon: Patio, name: "Patio" }), _jsx(IconWrapper, { icon: PdfIcon, name: "PdfIcon" }), _jsx(IconWrapper, { icon: PersonMail, name: "PersonMail" }), _jsx(IconWrapper, { icon: Plate, name: "Plate" }), _jsx(IconWrapper, { icon: Play, name: "Play" }), _jsx(IconWrapper, { icon: Plus, name: "Plus" }), _jsx(IconWrapper, { icon: Pool, name: "Pool" }), _jsx(IconWrapper, { icon: Pool2, name: "Pool2" }), _jsx(IconWrapper, { icon: PressureWasher, name: "PressureWasher" }), _jsx(IconWrapper, { icon: Price, name: "Price" }), _jsx(IconWrapper, { icon: Profile, name: "Profile" }), _jsx(IconWrapper, { icon: ProgressReport, name: "ProgressReport" }), _jsx(IconWrapper, { icon: Proposal, name: "Proposal" }), _jsx(IconWrapper, { icon: RealEstate, name: "RealEstate" }), _jsx(IconWrapper, { icon: Receipt, name: "Receipt" }), _jsx(IconWrapper, { icon: ReceiptBg, name: "ReceiptBg" }), _jsx(IconWrapper, { icon: ReceiptHouse, name: "ReceiptHouse" }), _jsx(IconWrapper, { icon: Receipts, name: "Receipts" }), _jsx(IconWrapper, { icon: Recipient, name: "Recipient" }), _jsx(IconWrapper, { icon: Records, name: "Records" }), _jsx(IconWrapper, { icon: Register, name: "Register" }), _jsx(IconWrapper, { icon: RelationshipHome, name: "RelationshipHome" }), _jsx(IconWrapper, { icon: ResendPassword, name: "ResendPassword" }), _jsx(IconWrapper, { icon: Rocket, name: "Rocket" }), _jsx(IconWrapper, { icon: Roof2, name: "Roof2" }), _jsx(IconWrapper, { icon: Security, name: "Security" }), _jsx(IconWrapper, { icon: Send, name: "Send" }), _jsx(IconWrapper, { icon: ShareHome, name: "ShareHome" }), _jsx(IconWrapper, { icon: SharePeople, name: "SharePeople" }), _jsx(IconWrapper, { icon: ShareWith, name: "ShareWith" }), _jsx(IconWrapper, { icon: SixtyEight, name: "SixtyEight" }), _jsx(IconWrapper, { icon: SMS, name: "SMS" }), _jsx(IconWrapper, { icon: Social, name: "Social" }), _jsx(IconWrapper, { icon: SolarPanel, name: "SolarPanel" }), _jsx(IconWrapper, { icon: Speaker, name: "Speaker" }), _jsx(IconWrapper, { icon: Sprinkler, name: "Sprinkler" }), _jsx(IconWrapper, { icon: Structure, name: "Structure" }), _jsx(IconWrapper, { icon: Subscription, name: "Subscription" }), _jsx(IconWrapper, { icon: Target, name: "Target" }), _jsx(IconWrapper, { icon: Theatre, name: "Theatre" }), _jsx(IconWrapper, { icon: Thumbnail, name: "Thumbnail" }), _jsx(IconWrapper, { icon: ThumbnailSmall, name: "ThumbnailSmall" }), _jsx(IconWrapper, { icon: ThumbUp, name: "ThumbUp" }), _jsx(IconWrapper, { icon: Trash, name: "Trash" }), _jsx(IconWrapper, { icon: VideoIcon, name: "VideoIcon" }), _jsx(IconWrapper, { icon: VideoPlay, name: "VideoPlay" }), _jsx(IconWrapper, { icon: VioletFolder, name: "VioletFolder" }), _jsx(IconWrapper, { icon: Wallet, name: "Wallet" }), _jsx(IconWrapper, { icon: Warning, name: "Warning" }), _jsx(IconWrapper, { icon: Warranty, name: "Warranty" }), _jsx(IconWrapper, { icon: WellDone, name: "WellDone" }), _jsx(IconWrapper, { icon: WholeHome, name: "WholeHome" }), _jsx(IconWrapper, { icon: Wind, name: "Wind" }), _jsx(IconWrapper, { icon: Wizard, name: "Wizard" }), _jsx(IconWrapper, { icon: WizardDetailed, name: "WizardDetailed" }), _jsx(IconWrapper, { icon: WizardQuick, name: "WizardQuick" }), _jsx(IconWrapper, { icon: YellowFolder, name: "YellowFolder" }), _jsx(IconWrapper, { icon: YellowFolderUnshared, name: "YellowFolderUnshared" })] }));
11
11
  };
12
12
  const IconWrapper = ({ icon, name }) => {
13
13
  return (_jsxs(Center, { flexDirection: "column", children: [_jsx(Image, { src: icon, boxSize: "30px", mb: "2" }), _jsx(Text, { variant: "home", children: name })] }));
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { RoomsMenuI } from '../../interfaces';
2
+ import { RoomItemI, RoomsMenuI } from '../../interfaces';
3
3
  declare const _default: Meta<RoomsMenuI>;
4
4
  export default _default;
5
5
  export declare const RoomsMenuComponent: {
@@ -20,5 +20,27 @@ export declare const RoomsMenuComponent: {
20
20
  home: string;
21
21
  active: boolean;
22
22
  }[];
23
+ onAddRoom: () => Promise<void>;
24
+ onClick: import("@storybook/addon-actions").HandlerFunction;
25
+ onHomeClick: import("@storybook/addon-actions").HandlerFunction;
26
+ };
27
+ };
28
+ export declare const PartnerAdminRoomsMenu: {
29
+ (args: RoomsMenuI): import("react/jsx-runtime").JSX.Element;
30
+ args: {
31
+ activeRoom: string;
32
+ rooms: RoomItemI[];
33
+ roomsToAdd: {
34
+ _id: string;
35
+ name: string;
36
+ type: string;
37
+ home: string;
38
+ active: boolean;
39
+ }[];
40
+ onAddRoom: () => Promise<void>;
41
+ onClick: import("@storybook/addon-actions").HandlerFunction;
42
+ onHomeClick: import("@storybook/addon-actions").HandlerFunction;
43
+ showAddButton: boolean;
44
+ showHomeButton: boolean;
23
45
  };
24
46
  };
@@ -1,4 +1,14 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
1
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { action } from '@storybook/addon-actions';
2
12
  import { RoomsMenu } from '../../components';
3
13
  import { RoomsList, RoomsToAdd } from '../../helpers';
4
14
  export default {
@@ -9,7 +19,60 @@ export const RoomsMenuComponent = (args) => {
9
19
  return _jsx(RoomsMenu, Object.assign({}, args));
10
20
  };
11
21
  RoomsMenuComponent.args = {
12
- activeRoom: RoomsList[0].name,
22
+ activeRoom: RoomsList[0]._id,
13
23
  rooms: RoomsList,
14
24
  roomsToAdd: RoomsToAdd,
25
+ onAddRoom: () => __awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); }),
26
+ onClick: action('onClickRoom'),
27
+ onHomeClick: action('onHomeClick'),
28
+ };
29
+ export const PartnerAdminRoomsMenu = (args) => {
30
+ return _jsx(RoomsMenu, Object.assign({}, args));
31
+ };
32
+ const PartnerAdminItems = [
33
+ {
34
+ _id: 'partner-admin-home',
35
+ name: 'HOME',
36
+ type: 'company',
37
+ home: 'partner-admin',
38
+ active: true,
39
+ },
40
+ {
41
+ _id: 'partner-admin-tickets',
42
+ name: 'TICKETS',
43
+ type: 'manager',
44
+ home: 'partner-admin',
45
+ active: true,
46
+ },
47
+ {
48
+ _id: 'partner-admin-customers',
49
+ name: 'CUSTOMERS',
50
+ type: 'billing_address',
51
+ home: 'partner-admin',
52
+ active: true,
53
+ },
54
+ {
55
+ _id: 'partner-admin-tiles',
56
+ name: 'TILES',
57
+ type: 'group',
58
+ home: 'partner-admin',
59
+ active: true,
60
+ },
61
+ {
62
+ _id: 'partner-admin-settings',
63
+ name: 'SETTINGS',
64
+ type: 'gear',
65
+ home: 'partner-admin',
66
+ active: true,
67
+ },
68
+ ];
69
+ PartnerAdminRoomsMenu.args = {
70
+ activeRoom: PartnerAdminItems[0]._id,
71
+ rooms: PartnerAdminItems,
72
+ roomsToAdd: RoomsToAdd,
73
+ onAddRoom: () => __awaiter(void 0, void 0, void 0, function* () { return Promise.resolve(); }),
74
+ onClick: action('onClickRoom'),
75
+ onHomeClick: action('onHomeClick'),
76
+ showAddButton: false,
77
+ showHomeButton: false,
15
78
  };
@@ -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;
@@ -8,6 +8,6 @@ export declare const RecipientContentComponent: {
8
8
  email: string;
9
9
  firstName: string;
10
10
  lastName: string;
11
- phone: string;
11
+ phone: string | undefined;
12
12
  };
13
13
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.44.1",
3
+ "version": "2.46.0",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",