@homefile/components-v2 2.40.8 → 2.40.10
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/images/green-circle-plus.svg +14 -0
- package/dist/assets/images/index.d.ts +2 -1
- package/dist/assets/images/index.js +2 -1
- package/dist/components/folderSharing/FolderSharing.d.ts +1 -1
- package/dist/components/folderSharing/FolderSharing.js +2 -2
- package/dist/components/homeAssistant/HomeAssistant.d.ts +1 -1
- package/dist/components/homeAssistant/HomeAssistant.js +2 -2
- package/dist/components/homeAssistant/HomeAssistantWrapper.d.ts +2 -1
- package/dist/components/homeAssistant/HomeAssistantWrapper.js +2 -2
- package/dist/components/homeAssistant/HomeMonitor.d.ts +2 -1
- package/dist/components/homeAssistant/HomeMonitor.js +2 -2
- package/dist/components/homeBoard/AddToHomefile.d.ts +1 -1
- package/dist/components/homeBoard/AddToHomefile.js +3 -3
- package/dist/components/homeBoard/HomeHeader.js +1 -1
- package/dist/components/inboxTile/InboxTile.d.ts +1 -1
- package/dist/components/inboxTile/InboxTile.js +2 -2
- package/dist/components/propertyTiles/TileCard.d.ts +2 -1
- package/dist/components/propertyTiles/TileCard.js +2 -2
- package/dist/components/propertyTiles/propertyTaxes/PropertyTaxes.d.ts +1 -1
- package/dist/components/propertyTiles/propertyTaxes/PropertyTaxes.js +2 -2
- package/dist/components/propertyTiles/trendingValue/TrendingValue.d.ts +1 -1
- package/dist/components/propertyTiles/trendingValue/TrendingValue.js +2 -2
- package/dist/interfaces/homeAssistant/HomeAssistantSteps.interface.d.ts +1 -0
- package/dist/interfaces/homeBoard/FolderSharing.interface.d.ts +1 -0
- package/dist/interfaces/inboxTile/InboxTile.interface.d.ts +1 -0
- package/dist/interfaces/propertyTiles/PropertyTaxes.interface.d.ts +1 -0
- package/dist/interfaces/propertyTiles/TrendingValue.interface.d.ts +1 -0
- package/dist/interfaces/sendDocument/AddToHomefile.interface.d.ts +1 -0
- package/dist/stories/homeBoard/HomeHeader.stories.d.ts +1 -0
- package/dist/stories/homeBoard/HomeHeader.stories.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<g id="Group_26337" data-name="Group 26337" transform="translate(-1109.864 -408.046)">
|
|
3
|
+
<circle id="Ellipse_1182" data-name="Ellipse 1182" cx="12" cy="12" r="12" transform="translate(1109.864 408.046)" fill="#6ab529"/>
|
|
4
|
+
<g id="Group_21871" data-name="Group 21871" transform="translate(1114.609 412.396)">
|
|
5
|
+
<g id="App_Icon_Atom" transform="translate(0.179 0.179)">
|
|
6
|
+
<path id="Path_8841" data-name="Path 8841" d="M0,0H13.784V13.784H0Z" fill="none"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="Add_Icon_Atom" transform="translate(1.258 1.258)">
|
|
9
|
+
<line id="Line_2001" data-name="Line 2001" y2="12.784" transform="translate(5.997)" fill="none" stroke="#fff" stroke-linecap="round" stroke-width="2"/>
|
|
10
|
+
<line id="Line_2002" data-name="Line 2002" x2="11.993" transform="translate(0 6.392)" fill="none" stroke="#fff" stroke-linecap="round" stroke-width="2"/>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -69,6 +69,7 @@ import GearPencil from './gear-pencil.svg';
|
|
|
69
69
|
import GearTime from './gear-time.svg';
|
|
70
70
|
import GenericField from './generic-field.svg';
|
|
71
71
|
import GlassWater from './glass-water.svg';
|
|
72
|
+
import GreenCirclePlus from './green-circle-plus.svg';
|
|
72
73
|
import GreenFolder from './green-folder.svg';
|
|
73
74
|
import Group from './group.svg';
|
|
74
75
|
import Groups from './groups.svg';
|
|
@@ -173,7 +174,7 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
173
174
|
import WizardQuick from './wizard-quick.svg';
|
|
174
175
|
import YellowFolder from './yellow-folder.svg';
|
|
175
176
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
176
|
-
export { AlertDelete, AlertDeletePurple, Arrow, 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, 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, };
|
|
177
|
+
export { AlertDelete, AlertDeletePurple, Arrow, 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, };
|
|
177
178
|
export * from './alerts';
|
|
178
179
|
export * from './animations';
|
|
179
180
|
export * from './appliances';
|
|
@@ -69,6 +69,7 @@ import GearPencil from './gear-pencil.svg';
|
|
|
69
69
|
import GearTime from './gear-time.svg';
|
|
70
70
|
import GenericField from './generic-field.svg';
|
|
71
71
|
import GlassWater from './glass-water.svg';
|
|
72
|
+
import GreenCirclePlus from './green-circle-plus.svg';
|
|
72
73
|
import GreenFolder from './green-folder.svg';
|
|
73
74
|
import Group from './group.svg';
|
|
74
75
|
import Groups from './groups.svg';
|
|
@@ -173,7 +174,7 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
173
174
|
import WizardQuick from './wizard-quick.svg';
|
|
174
175
|
import YellowFolder from './yellow-folder.svg';
|
|
175
176
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
176
|
-
export { AlertDelete, AlertDeletePurple, Arrow, 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, 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, };
|
|
177
|
+
export { AlertDelete, AlertDeletePurple, Arrow, 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, };
|
|
177
178
|
export * from './alerts';
|
|
178
179
|
export * from './animations';
|
|
179
180
|
export * from './appliances';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FolderSharingI } from '../../interfaces';
|
|
2
|
-
export declare const FolderSharing: ({ currentSort, folders, handleAddNewFolder, handleFolderClick, handleSelect, menuItems, disabled, }: FolderSharingI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const FolderSharing: ({ currentSort, folders, handleAddNewFolder, handleFolderClick, handleSelect, menuItems, disabled, showHelp }: FolderSharingI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,11 @@ import { Box, Flex, Wrap, WrapItem, Image, Text, GridItem, } from '@chakra-ui/re
|
|
|
4
4
|
import { ContainerHeader, FolderLegends, LeftButtonAnimated, MoreHorizontal, SelectInput, TileTooltip, } from '../../components';
|
|
5
5
|
import { GreenFolder, YellowFolder } from '../../assets/images';
|
|
6
6
|
import { useFolderSharing, useFolderValues } from '../../hooks';
|
|
7
|
-
export const FolderSharing = ({ currentSort, folders = [], handleAddNewFolder, handleFolderClick, handleSelect, menuItems, disabled, }) => {
|
|
7
|
+
export const FolderSharing = ({ currentSort, folders = [], handleAddNewFolder, handleFolderClick, handleSelect, menuItems, disabled, showHelp }) => {
|
|
8
8
|
const { currentSelection, handleSelectItem, hideLabels, items, sortedFolders, } = useFolderSharing({ folders, currentSort, handleSelect });
|
|
9
9
|
const { folderVariants } = useFolderValues();
|
|
10
10
|
const hasMenuItems = !!menuItems && menuItems.length > 0;
|
|
11
|
-
return (_jsx(GridItem, { colSpan: [1, 2], children: _jsx(TileTooltip, { label: "folders", children: _jsxs(Box, { backgroundColor: "lightBlue.1", boxShadow: "base", h: "full", children: [_jsx(ContainerHeader, { disabled: !hasMenuItems, title: t('folderSharing.title'), titleIcon: YellowFolder, menuItems: menuItems, icon: _jsx(MoreHorizontal, { size: 38 }), fontWeight: "normal" }), _jsx(Box, { bg: "lightBlue.2", py: "2", pl: "base", children: _jsxs(Flex, { justify: "space-between", align: "center", gap: "base", children: [_jsx(SelectInput, { handleClick: handleSelectItem, initialValue: currentSelection, items: items }), _jsxs(Flex, { alignSelf: "flex-end", gap: "6", children: [!hideLabels && _jsx(FolderLegends, {}), _jsx(LeftButtonAnimated, { id: "addFolders", onClick: handleAddNewFolder, label: t('folderSharing.addFolder.label'), disabled: disabled })] })] }) }), _jsx(Wrap, { py: "8", px: "base", spacing: "2", id: "folder", children: sortedFolders === null || sortedFolders === void 0 ? void 0 : sortedFolders.map((folder) => {
|
|
11
|
+
return (_jsx(GridItem, { colSpan: [1, 2], children: _jsx(TileTooltip, { label: "folders", children: _jsxs(Box, { backgroundColor: "lightBlue.1", boxShadow: "base", h: "full", children: [_jsx(ContainerHeader, { disabled: !hasMenuItems, title: t('folderSharing.title'), titleIcon: YellowFolder, menuItems: menuItems, icon: _jsx(MoreHorizontal, { size: 38 }), fontWeight: "normal", showHelp: showHelp }), _jsx(Box, { bg: "lightBlue.2", py: "2", pl: "base", children: _jsxs(Flex, { justify: "space-between", align: "center", gap: "base", children: [_jsx(SelectInput, { handleClick: handleSelectItem, initialValue: currentSelection, items: items }), _jsxs(Flex, { alignSelf: "flex-end", gap: "6", children: [!hideLabels && _jsx(FolderLegends, {}), _jsx(LeftButtonAnimated, { id: "addFolders", onClick: handleAddNewFolder, label: t('folderSharing.addFolder.label'), disabled: disabled })] })] }) }), _jsx(Wrap, { py: "8", px: "base", spacing: "2", id: "folder", children: sortedFolders === null || sortedFolders === void 0 ? void 0 : sortedFolders.map((folder) => {
|
|
12
12
|
var _a;
|
|
13
13
|
const { _id, name, icon } = folder;
|
|
14
14
|
const folderIcon = icon
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HomeAssistantStepsI } from '../../interfaces';
|
|
2
|
-
export declare const HomeAssistant: ({ showTutorial, tutorialUrl, onStart, zIndex, ...props }: HomeAssistantStepsI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const HomeAssistant: ({ showTutorial, tutorialUrl, onStart, zIndex, showHelp, ...props }: HomeAssistantStepsI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,8 +15,8 @@ import { t } from 'i18next';
|
|
|
15
15
|
import { HomeAssistantSteps, HomeAssistantTutorial, HomeAssistantWrapper, } from '../../components';
|
|
16
16
|
import { Center } from '@chakra-ui/react';
|
|
17
17
|
export const HomeAssistant = (_a) => {
|
|
18
|
-
var { showTutorial = false, tutorialUrl = '', onStart, zIndex } = _a, props = __rest(_a, ["showTutorial", "tutorialUrl", "onStart", "zIndex"]);
|
|
18
|
+
var { showTutorial = false, tutorialUrl = '', onStart, zIndex, showHelp } = _a, props = __rest(_a, ["showTutorial", "tutorialUrl", "onStart", "zIndex", "showHelp"]);
|
|
19
19
|
const [startSetup, setStartSetup] = useState(false);
|
|
20
20
|
const showAirplane = props.currentStep === 6 && (!showTutorial || startSetup);
|
|
21
|
-
return (_jsx(HomeAssistantWrapper, { showAirplane: showAirplane, title: t('homeAssistant.title'), zIndex: zIndex, children: _jsxs(Center, { minH: "477px", children: [!startSetup && showTutorial && (_jsx(HomeAssistantTutorial, { onStart: onStart !== null && onStart !== void 0 ? onStart : (() => setStartSetup(true)), videoUrl: tutorialUrl })), (startSetup || !showTutorial) && _jsx(HomeAssistantSteps, Object.assign({}, props))] }) }));
|
|
21
|
+
return (_jsx(HomeAssistantWrapper, { showAirplane: showAirplane, title: t('homeAssistant.title'), zIndex: zIndex, showHelp: showHelp, children: _jsxs(Center, { minH: "477px", children: [!startSetup && showTutorial && (_jsx(HomeAssistantTutorial, { onStart: onStart !== null && onStart !== void 0 ? onStart : (() => setStartSetup(true)), videoUrl: tutorialUrl })), (startSetup || !showTutorial) && _jsx(HomeAssistantSteps, Object.assign({}, props))] }) }));
|
|
22
22
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const HomeAssistantWrapper: ({ children, showAirplane, title, zIndex, }: PropsWithChildren<{
|
|
2
|
+
export declare const HomeAssistantWrapper: ({ children, showAirplane, title, zIndex, showHelp }: PropsWithChildren<{
|
|
3
3
|
showAirplane?: boolean;
|
|
4
4
|
title: string;
|
|
5
5
|
zIndex?: string;
|
|
6
|
+
showHelp?: boolean;
|
|
6
7
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { Box, GridItem, Image } from '@chakra-ui/react';
|
|
|
4
4
|
import { ContainerHeader, TileTooltip, moveRightToLeftWithFade, moveRightToLeft, moveLeftToRightAirplane, } from '../../components';
|
|
5
5
|
import { Airplane, Cloud1, Cloud2, Cloud3, IA } from '../../assets/images';
|
|
6
6
|
import { colors } from '../../theme/colors';
|
|
7
|
-
export const HomeAssistantWrapper = ({ children, showAirplane, title, zIndex, }) => {
|
|
7
|
+
export const HomeAssistantWrapper = ({ children, showAirplane, title, zIndex, showHelp }) => {
|
|
8
8
|
const [timeOfDay, setTimeOfDay] = useState('day');
|
|
9
9
|
const timeOfDaySeason = 'day-summer';
|
|
10
10
|
const gradients = {
|
|
@@ -19,5 +19,5 @@ export const HomeAssistantWrapper = ({ children, showAirplane, title, zIndex, })
|
|
|
19
19
|
// }, 60000)
|
|
20
20
|
// return () => clearInterval(interval)
|
|
21
21
|
// }, [])
|
|
22
|
-
return (_jsx(GridItem, { colSpan: [1, 2], zIndex: zIndex, children: _jsx(TileTooltip, { label: "homeAssistant", children: _jsxs(Box, { bgGradient: gradients[timeOfDay], boxShadow: "base", position: "relative", overflow: "hidden", transition: "background 1s ease-in-out", h: "full", children: [_jsx(ContainerHeader, { title: title, titleIcon: IA, fontWeight: 'normal' }), _jsx(Box, { h: "calc(100% - 60px)", children: children }), _jsx(Image, { src: Cloud1 || null, position: "absolute", w: "auto", h: "80px", top: "80px", animation: `${moveRightToLeftWithFade} 400s linear infinite` }), _jsx(Image, { src: Cloud2 || null, position: "absolute", w: "auto", h: "112px", top: "150px", animation: `${moveRightToLeft} 200s linear infinite` }), _jsx(Image, { src: Cloud3 || null, position: "absolute", w: "auto", h: "160px", top: "200px", animation: `${moveRightToLeft} 130s linear infinite` }), showAirplane && (_jsx(Image, { src: Airplane || null, position: "absolute", w: "auto", h: "40px", top: "85px", animation: `${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite` }))] }) }) }));
|
|
22
|
+
return (_jsx(GridItem, { colSpan: [1, 2], zIndex: zIndex, children: _jsx(TileTooltip, { label: "homeAssistant", children: _jsxs(Box, { bgGradient: gradients[timeOfDay], boxShadow: "base", position: "relative", overflow: "hidden", transition: "background 1s ease-in-out", h: "full", children: [_jsx(ContainerHeader, { showHelp: showHelp, title: title, titleIcon: IA, fontWeight: 'normal' }), _jsx(Box, { h: "calc(100% - 60px)", children: children }), _jsx(Image, { src: Cloud1 || null, position: "absolute", w: "auto", h: "80px", top: "80px", animation: `${moveRightToLeftWithFade} 400s linear infinite` }), _jsx(Image, { src: Cloud2 || null, position: "absolute", w: "auto", h: "112px", top: "150px", animation: `${moveRightToLeft} 200s linear infinite` }), _jsx(Image, { src: Cloud3 || null, position: "absolute", w: "auto", h: "160px", top: "200px", animation: `${moveRightToLeft} 130s linear infinite` }), showAirplane && (_jsx(Image, { src: Airplane || null, position: "absolute", w: "auto", h: "40px", top: "85px", animation: `${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite` }))] }) }) }));
|
|
23
23
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const HomeMonitor: ({ children, zIndex, }: PropsWithChildren<{
|
|
2
|
+
export declare const HomeMonitor: ({ children, zIndex, showHelp }: PropsWithChildren<{
|
|
3
3
|
zIndex?: string;
|
|
4
|
+
showHelp?: boolean;
|
|
4
5
|
}>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { t } from 'i18next';
|
|
3
3
|
import { HomeAssistantWrapper } from '../../components';
|
|
4
|
-
export const HomeMonitor = ({ children, zIndex, }) => {
|
|
5
|
-
return (_jsx(HomeAssistantWrapper, { zIndex: zIndex, showAirplane: true, title: t('homeAssistant.homeMonitor'), children: children }));
|
|
4
|
+
export const HomeMonitor = ({ children, zIndex, showHelp }) => {
|
|
5
|
+
return (_jsx(HomeAssistantWrapper, { zIndex: zIndex, showAirplane: true, title: t('homeAssistant.homeMonitor'), showHelp: showHelp, children: children }));
|
|
6
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AddToHomefileI } from '../../interfaces';
|
|
2
|
-
export declare const AddToHomefile: ({ documentList, headerList, isDisabled, }: AddToHomefileI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const AddToHomefile: ({ documentList, headerList, isDisabled, showHelp }: AddToHomefileI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { t } from 'i18next';
|
|
3
3
|
import { Container, Grid } from '@chakra-ui/react';
|
|
4
4
|
import { ContainerHeader, HiddenField, TileTooltip } from '../../components';
|
|
5
|
-
import {
|
|
6
|
-
export const AddToHomefile = ({ documentList, headerList, isDisabled = false, }) => {
|
|
7
|
-
return (_jsx(TileTooltip, { label: "addToHomefile", children: _jsxs(Container, { variant: "launchpad", h: "full", minW: ['full', '20rem'], bg: "lightViolet.1", children: [_jsx(ContainerHeader, { title: t('addToHomefile.title'), titleIcon:
|
|
5
|
+
import { GreenCirclePlus } from '../../assets/images';
|
|
6
|
+
export const AddToHomefile = ({ documentList, headerList, isDisabled = false, showHelp }) => {
|
|
7
|
+
return (_jsx(TileTooltip, { label: "addToHomefile", children: _jsxs(Container, { variant: "launchpad", h: "full", minW: ['full', '20rem'], bg: "lightViolet.1", children: [_jsx(ContainerHeader, { title: t('addToHomefile.title'), titleIcon: GreenCirclePlus, menuItems: headerList, fontWeight: 'normal', showHelp: showHelp }), _jsx(Grid, { templateColumns: "repeat(auto-fill, minmax(70px, 1fr))", gap: "base", p: "base", children: documentList.map((item) => {
|
|
8
8
|
return (_jsx(HiddenField, { h: "58px", id: item.label, name: item.label, icon: item.icon, disabled: isDisabled, onClick: item.onClick, showPlusIcon: true }, item.label));
|
|
9
9
|
}) })] }) }));
|
|
10
10
|
};
|
|
@@ -3,5 +3,5 @@ import { t } from 'i18next';
|
|
|
3
3
|
import { Text, Flex, Box, Show, Tooltip } from '@chakra-ui/react';
|
|
4
4
|
import { BackCircleButton, LeftButton } from '../../components';
|
|
5
5
|
export const HomeHeader = ({ buttonLabel, onAdd, onBack, homeName, disabled, }) => {
|
|
6
|
-
return (_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: "2", children: [_jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('homeHeader.backBtn'), placement: "right", children: _jsx(Box, { id: "backToLaunchpad", children: _jsx(BackCircleButton, { onClick: onBack }) }) }), _jsx(Show, { breakpoint: "(min-width: 400px)", children: _jsx(Box, { borderLeft: "solid", borderWidth: "1px", borderColor: "lightGray.2", h: "1.75rem", mx: "2" }) }), _jsx(Text, { fontSize: "1.25rem", fontWeight: 'medium', children: homeName })] }), buttonLabel && (_jsx(Flex, { position: "absolute", right: "0", id: "addCatalog", children: _jsx(LeftButton, { onClick: onAdd, height: "2rem", label: buttonLabel, disabled: disabled }) }))] }));
|
|
6
|
+
return (_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: "2", children: [_jsx(Tooltip, { hasArrow: true, isDisabled: false, label: t('homeHeader.backBtn'), placement: "right", children: _jsx(Box, { id: "backToLaunchpad", children: _jsx(BackCircleButton, { onClick: onBack }) }) }), _jsx(Show, { breakpoint: "(min-width: 400px)", children: _jsx(Box, { borderLeft: "solid", borderWidth: "1px", borderColor: "lightGray.2", h: "1.75rem", mx: "2" }) }), _jsx(Text, { fontSize: "1.25rem", fontWeight: 'medium', children: homeName })] }), buttonLabel && (_jsx(Flex, { position: "absolute", right: "0", id: "addCatalog", children: _jsx(LeftButton, { onClick: onAdd, height: "2rem", label: buttonLabel, disabled: disabled, bgColor: 'blue.2' }) }))] }));
|
|
7
7
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InboxTileI } from '../../interfaces';
|
|
2
|
-
export declare const InboxTile: ({ banner, boxes, menuItems, onClick, }: InboxTileI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const InboxTile: ({ banner, boxes, menuItems, onClick, showHelp }: InboxTileI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { t } from 'i18next';
|
|
|
3
3
|
import { Container, Stack } from '@chakra-ui/react';
|
|
4
4
|
import { ContainerHeader, InboxCard, MoreHorizontal, TileTooltip, } from '../../components';
|
|
5
5
|
import { Inbox } from '../../assets/images';
|
|
6
|
-
export const InboxTile = ({ banner, boxes, menuItems, onClick, }) => {
|
|
6
|
+
export const InboxTile = ({ banner, boxes, menuItems, onClick, showHelp }) => {
|
|
7
7
|
var _a;
|
|
8
|
-
return (_jsx(TileTooltip, { label: "inbox", children: _jsx(Container, { variant: "launchpad", h: "full", position: "relative", m: "0", children: _jsxs(Stack, { spacing: "2px", children: [_jsx(ContainerHeader, { menuItems: menuItems, title: (_a = t('partner.tiles.inbox')) !== null && _a !== void 0 ? _a : '', icon: _jsx(MoreHorizontal, { size: 38 }), titleIcon: Inbox, fontWeight: "normal" }), banner, boxes.map((box) => (_jsx(InboxCard, { box: box, onClick: onClick }, box.name)))] }) }) }));
|
|
8
|
+
return (_jsx(TileTooltip, { label: "inbox", children: _jsx(Container, { variant: "launchpad", h: "full", position: "relative", m: "0", children: _jsxs(Stack, { spacing: "2px", children: [_jsx(ContainerHeader, { menuItems: menuItems, title: (_a = t('partner.tiles.inbox')) !== null && _a !== void 0 ? _a : '', icon: _jsx(MoreHorizontal, { size: 38 }), titleIcon: Inbox, fontWeight: "normal", showHelp: showHelp }), banner, boxes.map((box) => (_jsx(InboxCard, { box: box, onClick: onClick }, box.name)))] }) }) }));
|
|
9
9
|
};
|
|
@@ -7,5 +7,6 @@ export interface TileCardI {
|
|
|
7
7
|
menuItems?: MenuItemI[];
|
|
8
8
|
title: string;
|
|
9
9
|
fontWeight?: TypographyProps['fontWeight'];
|
|
10
|
+
showHelp?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare const TileCard: ({ bg, children, icon, menuItems, title, fontWeight, }: PropsWithChildren<TileCardI>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const TileCard: ({ bg, children, icon, menuItems, title, fontWeight, showHelp }: PropsWithChildren<TileCardI>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Container } from '@chakra-ui/react';
|
|
3
3
|
import { MoreHorizontal, ContainerHeader } from '../../components';
|
|
4
|
-
export const TileCard = ({ bg = 'lightBlue.1', children, icon, menuItems, title, fontWeight, }) => {
|
|
5
|
-
return (_jsxs(Container, { variant: "launchpad", bg: bg, h: "full", children: [_jsx(ContainerHeader, { icon: _jsx(MoreHorizontal, { size: 38 }), menuItems: menuItems, title: title, titleIcon: icon, fontWeight: fontWeight }), children] }));
|
|
4
|
+
export const TileCard = ({ bg = 'lightBlue.1', children, icon, menuItems, title, fontWeight, showHelp }) => {
|
|
5
|
+
return (_jsxs(Container, { variant: "launchpad", bg: bg, h: "full", children: [_jsx(ContainerHeader, { icon: _jsx(MoreHorizontal, { size: 38 }), menuItems: menuItems, title: title, titleIcon: icon, fontWeight: fontWeight, showHelp: showHelp }), children] }));
|
|
6
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropertyTaxesI } from '../../../interfaces';
|
|
2
|
-
export declare const PropertyTaxes: ({ estimatedTaxValue, estimatedMonthlyAverage, menuItems, taxes, title, }: PropertyTaxesI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const PropertyTaxes: ({ estimatedTaxValue, estimatedMonthlyAverage, menuItems, taxes, title, showHelp }: PropertyTaxesI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { TileCard, TileTooltip, TotalHeader } from '../../../components';
|
|
|
6
6
|
import { formatNumber, getColorBasedOnPercentage } from '../../../utils';
|
|
7
7
|
import { AssessedValue } from './AssessedValue';
|
|
8
8
|
import { TaxesTable } from './TaxesTable';
|
|
9
|
-
export const PropertyTaxes = ({ estimatedTaxValue, estimatedMonthlyAverage, menuItems, taxes, title, }) => {
|
|
9
|
+
export const PropertyTaxes = ({ estimatedTaxValue, estimatedMonthlyAverage, menuItems, taxes, title, showHelp }) => {
|
|
10
10
|
const lastYear = taxes[0];
|
|
11
11
|
const formattedLastYearValue = formatNumber(lastYear === null || lastYear === void 0 ? void 0 : lastYear.value);
|
|
12
12
|
const bgColor = getColorBasedOnPercentage({
|
|
@@ -15,5 +15,5 @@ export const PropertyTaxes = ({ estimatedTaxValue, estimatedMonthlyAverage, menu
|
|
|
15
15
|
colorPositive: 'orange.1',
|
|
16
16
|
});
|
|
17
17
|
const currentYear = new Date().getFullYear();
|
|
18
|
-
return (_jsx(TileTooltip, { label: "propertyTaxes", children: _jsx(Box, { children: _jsxs(TileCard, { menuItems: menuItems, title: t('propertyTiles.taxes.title'), icon: Money, fontWeight: "regular", children: [title && (_jsx(Box, { bg: "lightBlue.2", px: "base", py: "4", children: _jsx(Text, { variant: "home", children: title }) })), _jsxs(Box, { px: "base", bg: "neutral.white", children: [_jsx(AssessedValue, Object.assign({}, lastYear, { value: formattedLastYearValue })), _jsxs(Stack, { spacing: "1", py: "base", children: [_jsx(Text, { textTransform: "uppercase", children: `${currentYear} ${t('propertyTiles.taxes.estimated')}` }), _jsxs(Flex, { gap: "2", w: "full", children: [_jsx(Box, { flex: "3", children: _jsx(TotalHeader, { bg: bgColor, value: estimatedTaxValue, fontSize: "3xl", title: t('propertyTiles.taxes.annually') }) }), estimatedMonthlyAverage && (_jsx(Box, { flex: "2", children: _jsx(TotalHeader, { bg: "lightBlue.4", value: estimatedMonthlyAverage, fontSize: "3xl", title: t('propertyTiles.taxes.monthly') }) }))] })] })] }), _jsx(Box, { px: "base", children: _jsx(TaxesTable, { taxes: taxes }) })] }) }) }));
|
|
18
|
+
return (_jsx(TileTooltip, { label: "propertyTaxes", children: _jsx(Box, { children: _jsxs(TileCard, { menuItems: menuItems, title: t('propertyTiles.taxes.title'), icon: Money, fontWeight: "regular", showHelp: showHelp, children: [title && (_jsx(Box, { bg: "lightBlue.2", px: "base", py: "4", children: _jsx(Text, { variant: "home", children: title }) })), _jsxs(Box, { px: "base", bg: "neutral.white", children: [_jsx(AssessedValue, Object.assign({}, lastYear, { value: formattedLastYearValue })), _jsxs(Stack, { spacing: "1", py: "base", children: [_jsx(Text, { textTransform: "uppercase", children: `${currentYear} ${t('propertyTiles.taxes.estimated')}` }), _jsxs(Flex, { gap: "2", w: "full", children: [_jsx(Box, { flex: "3", children: _jsx(TotalHeader, { bg: bgColor, value: estimatedTaxValue, fontSize: "3xl", title: t('propertyTiles.taxes.annually') }) }), estimatedMonthlyAverage && (_jsx(Box, { flex: "2", children: _jsx(TotalHeader, { bg: "lightBlue.4", value: estimatedMonthlyAverage, fontSize: "3xl", title: t('propertyTiles.taxes.monthly') }) }))] })] })] }), _jsx(Box, { px: "base", children: _jsx(TaxesTable, { taxes: taxes }) })] }) }) }));
|
|
19
19
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TrendingValueI } from '../../../interfaces';
|
|
2
|
-
export declare const TrendingValue: ({ chartData, marketValue, menuItems, mortgageBalance, onMortgageClick, purchasePrice, roi, }: TrendingValueI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const TrendingValue: ({ chartData, marketValue, menuItems, mortgageBalance, onMortgageClick, purchasePrice, roi, showHelp }: TrendingValueI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,6 @@ import { Box, Button, Flex, IconButton, Stack, Text, Tooltip, } from '@chakra-ui
|
|
|
4
4
|
import { Edit, EstRoi, Plus, TileCard, TileTooltip, TrendingLineChart, TrendingValueCard, } from '../../../components';
|
|
5
5
|
import { ComputerReport } from '../../../assets/images';
|
|
6
6
|
import { colors } from '../../../theme/colors';
|
|
7
|
-
export const TrendingValue = ({ chartData, marketValue = 0, menuItems, mortgageBalance = 0, onMortgageClick, purchasePrice = 0, roi, }) => {
|
|
8
|
-
return (_jsx(TileTooltip, { label: "trendingValue", children: _jsx(Box, { children: _jsxs(TileCard, { bg: "lightGreen.8", menuItems: menuItems, title: t('propertyTiles.trending.title'), icon: ComputerReport, fontWeight: "normal", children: [_jsxs(Flex, { gap: "base", p: "base", bg: "lightBlue.1", children: [_jsx(TrendingValueCard, { bg: "lightBlue.2", label: t('propertyTiles.trending.purchase'), value: purchasePrice }), (mortgageBalance > 0) ? (_jsx(TrendingValueCard, { bg: "lightBlue.4", editButton: Boolean(mortgageBalance) && (_jsx(Tooltip, { label: t('tooltips.editValue'), children: _jsx(IconButton, { variant: "menuIconWithShadow", maxW: "fit-content", "aria-label": t('ariaLabels.edit'), p: "1", icon: _jsx(Edit, { size: 16 }), onClick: onMortgageClick }) })), label: t('propertyTiles.trending.mortgage'), value: mortgageBalance })) : (_jsxs(Stack, { spacing: "1", flex: "auto", children: [_jsx(Flex, { align: "center", justify: "space-between", h: "20px", children: _jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: t('propertyTiles.trending.mortgage') }) }), _jsxs(Button, { variant: "tertiary", h: "full", onClick: onMortgageClick, w: "full", px: "1", children: [_jsx(Plus, { stroke: colors.blue[3], size: 20 }), _jsx(Text, { color: colors.blue[3], as: "span", pl: '.25rem', children: t('propertyTiles.trending.addMortgage') })] })] }))] }), _jsxs(Stack, { spacing: "base", p: "base", children: [_jsxs(Flex, { children: [_jsx(TrendingValueCard, { bg: "lightGreen.6", fontSize: "3xl", label: t('propertyTiles.trending.estimated'), value: marketValue }), roi && _jsx(EstRoi, { value: roi })] }), chartData && _jsx(TrendingLineChart, { data: chartData }), !chartData && (_jsx(Box, { h: "220px", border: "1px solid", borderColor: "lightGreen.6" })), _jsx(Text, { fontFamily: "secondary", fontSize: "xs", children: t('propertyTiles.trending.public') })] })] }) }) }));
|
|
7
|
+
export const TrendingValue = ({ chartData, marketValue = 0, menuItems, mortgageBalance = 0, onMortgageClick, purchasePrice = 0, roi, showHelp }) => {
|
|
8
|
+
return (_jsx(TileTooltip, { label: "trendingValue", children: _jsx(Box, { children: _jsxs(TileCard, { bg: "lightGreen.8", menuItems: menuItems, title: t('propertyTiles.trending.title'), icon: ComputerReport, fontWeight: "normal", showHelp: showHelp, children: [_jsxs(Flex, { gap: "base", p: "base", bg: "lightBlue.1", children: [_jsx(TrendingValueCard, { bg: "lightBlue.2", label: t('propertyTiles.trending.purchase'), value: purchasePrice }), (mortgageBalance > 0) ? (_jsx(TrendingValueCard, { bg: "lightBlue.4", editButton: Boolean(mortgageBalance) && (_jsx(Tooltip, { label: t('tooltips.editValue'), children: _jsx(IconButton, { variant: "menuIconWithShadow", maxW: "fit-content", "aria-label": t('ariaLabels.edit'), p: "1", icon: _jsx(Edit, { size: 16 }), onClick: onMortgageClick }) })), label: t('propertyTiles.trending.mortgage'), value: mortgageBalance })) : (_jsxs(Stack, { spacing: "1", flex: "auto", children: [_jsx(Flex, { align: "center", justify: "space-between", h: "20px", children: _jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: t('propertyTiles.trending.mortgage') }) }), _jsxs(Button, { variant: "tertiary", h: "full", onClick: onMortgageClick, w: "full", px: "1", children: [_jsx(Plus, { stroke: colors.blue[3], size: 20 }), _jsx(Text, { color: colors.blue[3], as: "span", pl: '.25rem', children: t('propertyTiles.trending.addMortgage') })] })] }))] }), _jsxs(Stack, { spacing: "base", p: "base", children: [_jsxs(Flex, { children: [_jsx(TrendingValueCard, { bg: "lightGreen.6", fontSize: "3xl", label: t('propertyTiles.trending.estimated'), value: marketValue }), roi && _jsx(EstRoi, { value: roi })] }), chartData && _jsx(TrendingLineChart, { data: chartData }), !chartData && (_jsx(Box, { h: "220px", border: "1px solid", borderColor: "lightGreen.6" })), _jsx(Text, { fontFamily: "secondary", fontSize: "xs", children: t('propertyTiles.trending.public') })] })] }) }) }));
|
|
9
9
|
};
|