@homefile/components-v2 1.4.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/images/alerts/index.d.ts +2 -0
- package/dist/assets/images/alerts/index.js +2 -0
- package/dist/assets/images/alerts/index.ts +3 -0
- package/dist/assets/images/alerts/smoke-detector-expired.jpg +0 -0
- package/dist/assets/images/battery.svg +9 -0
- package/dist/assets/images/index.d.ts +4 -1
- package/dist/assets/images/index.js +4 -1
- package/dist/assets/images/index.ts +5 -0
- package/dist/assets/images/wind-white.svg +7 -0
- package/dist/assets/locales/en/index.json +68 -1
- package/dist/components/animations/HomieAnimation.d.ts +1 -0
- package/dist/components/animations/HomieAnimation.js +11 -0
- package/dist/components/animations/index.d.ts +1 -0
- package/dist/components/animations/index.js +1 -0
- package/dist/components/badge/CustomBadge.d.ts +5 -0
- package/dist/components/badge/CustomBadge.js +5 -0
- package/dist/components/badge/index.d.ts +5 -4
- package/dist/components/badge/index.js +5 -4
- package/dist/components/contacts/ContactCard.d.ts +1 -1
- package/dist/components/contacts/ContactCard.js +5 -5
- package/dist/components/contacts/ContactCardHeader.d.ts +1 -1
- package/dist/components/contacts/ContactCardHeader.js +4 -4
- package/dist/components/contacts/ContactCardInfo.d.ts +1 -1
- package/dist/components/contacts/ContactCardInfo.js +2 -2
- package/dist/components/contacts/ContactHeaderMenu.js +3 -3
- package/dist/components/contacts/ContactsContent.d.ts +1 -1
- package/dist/components/contacts/ContactsContent.js +31 -6
- package/dist/components/contacts/LetterDivider.d.ts +3 -0
- package/dist/components/contacts/LetterDivider.js +5 -0
- package/dist/components/contacts/ShareContactSection.d.ts +2 -0
- package/dist/components/contacts/ShareContactSection.js +26 -0
- package/dist/components/contacts/index.d.ts +3 -1
- package/dist/components/contacts/index.js +3 -1
- package/dist/components/contacts/shareContactForms/AddReceiverButton.d.ts +2 -0
- package/dist/components/contacts/shareContactForms/AddReceiverButton.js +7 -0
- package/dist/components/contacts/shareContactForms/SendToList.d.ts +2 -0
- package/dist/components/contacts/shareContactForms/SendToList.js +11 -0
- package/dist/components/contacts/shareContactForms/ShareContactByEmail.d.ts +2 -2
- package/dist/components/contacts/shareContactForms/ShareContactByEmail.js +7 -17
- package/dist/components/contacts/shareContactForms/ShareContactByHomefile.d.ts +2 -0
- package/dist/components/contacts/shareContactForms/ShareContactByHomefile.js +17 -0
- package/dist/components/contacts/shareContactForms/ShareContactBySMS.d.ts +2 -0
- package/dist/components/contacts/shareContactForms/ShareContactBySMS.js +11 -0
- package/dist/components/contacts/shareContactForms/index.d.ts +4 -0
- package/dist/components/contacts/shareContactForms/index.js +4 -0
- package/dist/components/contacts/sharePanel/SelectedContacts.d.ts +2 -0
- package/dist/components/contacts/sharePanel/SelectedContacts.js +8 -0
- package/dist/components/contacts/sharePanel/ShareContactsContent.d.ts +2 -0
- package/dist/components/contacts/sharePanel/ShareContactsContent.js +28 -0
- package/dist/components/contacts/sharePanel/index.d.ts +2 -0
- package/dist/components/contacts/sharePanel/index.js +2 -0
- package/dist/components/homeAssistant/HomeAssistant.js +2 -1
- package/dist/components/homeAssistant/HomeAssistantWrapper.d.ts +2 -1
- package/dist/components/homeAssistant/HomeAssistantWrapper.js +2 -3
- package/dist/components/homeAssistant/HomeMonitor.d.ts +2 -0
- package/dist/components/homeAssistant/HomeMonitor.js +6 -0
- package/dist/components/homeAssistant/HomeMonitorButton.d.ts +2 -0
- package/dist/components/homeAssistant/HomeMonitorButton.js +31 -0
- package/dist/components/homeAssistant/HomeMonitorSteps.d.ts +2 -0
- package/dist/components/homeAssistant/HomeMonitorSteps.js +11 -0
- package/dist/components/homeAssistant/index.d.ts +4 -0
- package/dist/components/homeAssistant/index.js +4 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertHeader.d.ts +1 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertHeader.js +7 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertTemplate.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertTemplate.js +5 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertTitle.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/AlertTitle.js +5 -0
- package/dist/components/homeAssistant/monitorAlerts/BaseAlertCard.d.ts +3 -0
- package/dist/components/homeAssistant/monitorAlerts/BaseAlertCard.js +21 -0
- package/dist/components/homeAssistant/monitorAlerts/MonitorAlerts.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/MonitorAlerts.js +32 -0
- package/dist/components/homeAssistant/monitorAlerts/Notifications.d.ts +4 -0
- package/dist/components/homeAssistant/monitorAlerts/Notifications.js +9 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/ChangeAirFilter.d.ts +1 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/ChangeAirFilter.js +11 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/CustomDivider.d.ts +1 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/CustomDivider.js +5 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorBattery.d.ts +1 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorBattery.js +11 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorExpired.d.ts +1 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorExpired.js +11 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/index.d.ts +4 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/index.js +4 -0
- package/dist/components/homeAssistant/monitorAlerts/index.d.ts +7 -0
- package/dist/components/homeAssistant/monitorAlerts/index.js +7 -0
- package/dist/components/homeAssistant/panel/HomeAssistantPanel.js +1 -1
- package/dist/components/homeBoard/HomeBoard.js +1 -1
- package/dist/components/inputs/TextInput.d.ts +1 -1
- package/dist/components/inputs/TextInput.js +2 -2
- package/dist/components/partner/PartnerFooter.d.ts +1 -1
- package/dist/components/partner/PartnerFooter.js +2 -2
- package/dist/components/partner/ShortPartnerTile.d.ts +1 -1
- package/dist/components/partner/ShortPartnerTile.js +2 -2
- package/dist/helpers/homeAssistant/HomeAssistant.helper.js +4 -4
- package/dist/hooks/contacts/index.d.ts +3 -0
- package/dist/hooks/contacts/index.js +3 -0
- package/dist/hooks/contacts/useContactsContent.d.ts +2 -1
- package/dist/hooks/contacts/useContactsContent.js +28 -2
- package/dist/hooks/contacts/useShareContactBy.d.ts +15 -0
- package/dist/hooks/contacts/useShareContactBy.js +33 -0
- package/dist/hooks/contacts/useShareContactByHomefile.d.ts +16 -0
- package/dist/hooks/contacts/useShareContactByHomefile.js +25 -0
- package/dist/hooks/contacts/useShareContactsContent.d.ts +8 -0
- package/dist/hooks/contacts/useShareContactsContent.js +26 -0
- package/dist/hooks/useAssignableList.d.ts +2 -0
- package/dist/hooks/useAssignableList.js +10 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/interfaces/contacts/ContactCard.interface.d.ts +4 -3
- package/dist/interfaces/contacts/ContactCardHeader.interface.d.ts +3 -3
- package/dist/interfaces/contacts/ContactCardInfo.interface.d.ts +1 -0
- package/dist/interfaces/contacts/ContactsContent.interface.d.ts +12 -2
- package/dist/interfaces/contacts/SelectedContacts.interface.d.ts +5 -0
- package/dist/interfaces/contacts/ShareContactBy.interface.d.ts +21 -0
- package/dist/interfaces/contacts/ShareContactSection.interface.d.ts +4 -0
- package/dist/interfaces/contacts/ShareContactSection.interface.js +1 -0
- package/dist/interfaces/contacts/ShareContactsContent.interface.d.ts +17 -0
- package/dist/interfaces/contacts/ShareContactsContent.interface.js +1 -0
- package/dist/interfaces/contacts/ViewContactPanel.interface.d.ts +2 -2
- package/dist/interfaces/contacts/index.d.ts +4 -2
- package/dist/interfaces/contacts/index.js +4 -2
- package/dist/interfaces/homeAssistant/BaseAlertCard.interface.d.ts +8 -0
- package/dist/interfaces/homeAssistant/BaseAlertCard.interface.js +1 -0
- package/dist/interfaces/homeAssistant/HomeMonitorSteps.interface.d.ts +11 -0
- package/dist/interfaces/homeAssistant/HomeMonitorSteps.interface.js +1 -0
- package/dist/interfaces/homeAssistant/MonitorAlerts.interface.d.ts +4 -0
- package/dist/interfaces/homeAssistant/MonitorAlerts.interface.js +1 -0
- package/dist/interfaces/homeAssistant/index.d.ts +3 -0
- package/dist/interfaces/homeAssistant/index.js +3 -0
- package/dist/interfaces/partner/PartnerFooter.interface.d.ts +1 -0
- package/dist/mocks/contacts/contacts.mock.d.ts +1 -0
- package/dist/mocks/contacts/contacts.mock.js +86 -2
- package/dist/stories/animations/HomieAnimation.stories.d.ts +4 -0
- package/dist/stories/animations/HomieAnimation.stories.js +11 -0
- package/dist/stories/assets/Illustrations.stories.js +2 -2
- package/dist/stories/contacts/ContactsContent.stories.d.ts +1 -10
- package/dist/stories/contacts/ContactsContent.stories.js +40 -13
- package/dist/stories/homeAssistant/HomeMonitor.stories.d.ts +4 -0
- package/dist/stories/homeAssistant/HomeMonitor.stories.js +25 -0
- package/dist/stories/homeAssistant/monitorAlerts/HomeAssistant.stories.d.ts +5 -0
- package/dist/stories/homeAssistant/monitorAlerts/HomeAssistant.stories.js +22 -0
- package/dist/theme/colors.d.ts +4 -0
- package/dist/theme/colors.js +4 -0
- package/package.json +2 -1
- package/src/assets/images/alerts/index.ts +3 -0
- package/src/assets/images/alerts/smoke-detector-expired.jpg +0 -0
- package/src/assets/images/battery.svg +9 -0
- package/src/assets/images/index.ts +5 -0
- package/src/assets/images/wind-white.svg +7 -0
- package/src/assets/locales/en/index.json +68 -1
- package/src/components/animations/HomieAnimation.tsx +12 -0
- package/src/components/animations/index.ts +1 -0
- package/src/components/badge/CustomBadge.tsx +22 -0
- package/src/components/badge/index.ts +5 -4
- package/src/components/contacts/ContactCard.tsx +10 -11
- package/src/components/contacts/ContactCardHeader.tsx +12 -4
- package/src/components/contacts/ContactCardInfo.tsx +11 -8
- package/src/components/contacts/ContactHeaderMenu.tsx +3 -15
- package/src/components/contacts/ContactsContent.tsx +143 -17
- package/src/components/contacts/LetterDivider.tsx +15 -0
- package/src/components/contacts/ShareContactSection.tsx +58 -0
- package/src/components/contacts/index.ts +3 -1
- package/src/components/contacts/shareContactForms/AddReceiverButton.tsx +20 -0
- package/src/components/contacts/shareContactForms/SendToList.tsx +47 -0
- package/src/components/contacts/shareContactForms/ShareContactByEmail.tsx +40 -41
- package/src/components/contacts/shareContactForms/ShareContactByHomefile.tsx +88 -0
- package/src/components/contacts/shareContactForms/ShareContactBySMS.tsx +49 -0
- package/src/components/contacts/shareContactForms/index.ts +4 -0
- package/src/components/contacts/sharePanel/SelectedContacts.tsx +37 -0
- package/src/components/contacts/sharePanel/ShareContactsContent.tsx +68 -0
- package/src/components/contacts/sharePanel/index.ts +2 -0
- package/src/components/homeAssistant/HomeAssistant.tsx +5 -1
- package/src/components/homeAssistant/HomeAssistantWrapper.tsx +3 -1
- package/src/components/homeAssistant/HomeMonitor.tsx +11 -0
- package/src/components/homeAssistant/HomeMonitorButton.tsx +69 -0
- package/src/components/homeAssistant/HomeMonitorSteps.tsx +29 -0
- package/src/components/homeAssistant/index.ts +4 -0
- package/src/components/homeAssistant/monitorAlerts/AlertHeader.tsx +30 -0
- package/src/components/homeAssistant/monitorAlerts/AlertTemplate.tsx +25 -0
- package/src/components/homeAssistant/monitorAlerts/AlertTitle.tsx +16 -0
- package/src/components/homeAssistant/monitorAlerts/BaseAlertCard.tsx +60 -0
- package/src/components/homeAssistant/monitorAlerts/MonitorAlerts.tsx +47 -0
- package/src/components/homeAssistant/monitorAlerts/Notifications.tsx +32 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/ChangeAirFilter.tsx +54 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/CustomDivider.tsx +5 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorBattery.tsx +54 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/SmokeDetectorExpired.tsx +43 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/index.ts +4 -0
- package/src/components/homeAssistant/monitorAlerts/index.ts +7 -0
- package/src/components/homeAssistant/panel/HomeAssistantPanel.tsx +1 -1
- package/src/components/homeBoard/HomeBoard.tsx +2 -1
- package/src/components/inputs/TextInput.tsx +2 -1
- package/src/components/partner/PartnerFooter.tsx +2 -2
- package/src/components/partner/ShortPartnerTile.tsx +2 -1
- package/src/helpers/homeAssistant/HomeAssistant.helper.tsx +4 -4
- package/src/hooks/contacts/index.ts +4 -1
- package/src/hooks/contacts/useContactsContent.ts +38 -4
- package/src/hooks/contacts/useShareContactBy.ts +45 -0
- package/src/hooks/contacts/useShareContactByHomefile.ts +46 -0
- package/src/hooks/contacts/useShareContactsContent.ts +38 -0
- package/src/hooks/useAssignableList.ts +11 -1
- package/src/index.ts +8 -1
- package/src/interfaces/contacts/ContactCard.interface.ts +4 -7
- package/src/interfaces/contacts/ContactCardHeader.interface.ts +3 -3
- package/src/interfaces/contacts/ContactCardInfo.interface.ts +1 -0
- package/src/interfaces/contacts/ContactsContent.interface.ts +13 -2
- package/src/interfaces/contacts/SelectedContacts.interface.ts +6 -0
- package/src/interfaces/contacts/ShareContactBy.interface.ts +25 -0
- package/src/interfaces/contacts/ShareContactSection.interface.ts +6 -0
- package/src/interfaces/contacts/ShareContactsContent.interface.ts +24 -0
- package/src/interfaces/contacts/ViewContactPanel.interface.ts +2 -2
- package/src/interfaces/contacts/index.ts +4 -2
- package/src/interfaces/homeAssistant/BaseAlertCard.interface.ts +8 -0
- package/src/interfaces/homeAssistant/HomeMonitorSteps.interface.ts +13 -0
- package/src/interfaces/homeAssistant/MonitorAlerts.interface.ts +8 -0
- package/src/interfaces/homeAssistant/index.ts +3 -0
- package/src/interfaces/partner/PartnerFooter.interface.ts +1 -0
- package/src/mocks/contacts/contacts.mock.ts +87 -2
- package/src/stories/animations/HomieAnimation.stories.tsx +17 -0
- package/src/stories/assets/Illustrations.stories.tsx +2 -0
- package/src/stories/contacts/ContactsContent.stories.tsx +73 -16
- package/src/stories/homeAssistant/HomeMonitor.stories.tsx +54 -0
- package/src/stories/homeAssistant/monitorAlerts/HomeAssistant.stories.tsx +30 -0
- package/src/theme/colors.ts +4 -0
- package/dist/components/contacts/ShareContactPopover.d.ts +0 -2
- package/dist/components/contacts/ShareContactPopover.js +0 -32
- package/dist/interfaces/contacts/ShareContactByEmail.interface.d.ts +0 -11
- package/dist/interfaces/contacts/ShareContactPopover.interface.d.ts +0 -8
- package/src/components/contacts/ShareContactPopover.tsx +0 -106
- package/src/interfaces/contacts/ShareContactByEmail.interface.ts +0 -12
- package/src/interfaces/contacts/ShareContactPopover.interface.ts +0 -9
- /package/dist/interfaces/contacts/{ShareContactByEmail.interface.js → SelectedContacts.interface.js} +0 -0
- /package/dist/interfaces/contacts/{ShareContactPopover.interface.js → ShareContactBy.interface.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
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, Battery2, Bedding, Bedroom, Billing, BillingAddress, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, 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, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, 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, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, } from '../../assets/images';
|
|
3
|
+
import { AlertDelete, AlertDeletePurple, Arrow, Balustrades, Barcode, Batery, Bathroom, Battery, Battery2, Bedding, Bedroom, Billing, BillingAddress, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, 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, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, 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, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, } from '../../assets/images';
|
|
4
4
|
import { CookTop, Dishwasher, Dryer, Freezer, Fridge, Microwave, Oven, Range, Washer, } from '../../assets/images/appliances';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Assets/Illustrations',
|
|
7
7
|
};
|
|
8
8
|
export const Illustrations = () => {
|
|
9
|
-
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: 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: IA, name: "IA" }), _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: Battery2, name: "Battery2" }), _jsx(IconWrapper, { icon: Bedroom, name: "Bedroom" }), _jsx(IconWrapper, { icon: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _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: 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: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _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: 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: 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: 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: 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: 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: 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: 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" })] }));
|
|
9
|
+
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: 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: IA, name: "IA" }), _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: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _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: 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: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _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: 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: 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: 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: 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: 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: 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: 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
10
|
};
|
|
11
11
|
const IconWrapper = ({ icon, name }) => {
|
|
12
12
|
return (_jsxs(Center, { flexDirection: "column", children: [_jsx(Image, { src: icon, boxSize: "30px", mb: "2" }), _jsx(Text, { variant: "home", children: name })] }));
|
|
@@ -2,13 +2,4 @@ import { Meta } from '@storybook/react';
|
|
|
2
2
|
import { ContactsContentI } from '../../interfaces';
|
|
3
3
|
declare const _default: Meta<ContactsContentI>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const ContactsContentComponent:
|
|
6
|
-
(args: ContactsContentI): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
args: {
|
|
8
|
-
contacts: import("../../interfaces").InfoContactCardI[];
|
|
9
|
-
menuItems: {
|
|
10
|
-
label: string;
|
|
11
|
-
handleClick: import("@storybook/addon-actions").HandlerFunction;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
5
|
+
export declare const ContactsContentComponent: (args: ContactsContentI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ContactsContent, RightPanel } from '../../components';
|
|
3
|
-
import { ContactsMock } from '../../mocks';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ContactsContent, RightPanel, ShareContactsContent } from '../../components';
|
|
3
|
+
import { ContactsMock, ContactsMockCompleted, menuMock } from '../../mocks';
|
|
4
|
+
import { Fragment, useState } from 'react';
|
|
4
5
|
import { action } from '@storybook/addon-actions';
|
|
5
6
|
export default {
|
|
6
7
|
title: 'Components/Contacts',
|
|
7
8
|
component: ContactsContent,
|
|
9
|
+
args: {
|
|
10
|
+
contacts: ContactsMock,
|
|
11
|
+
menuItems: menuMock,
|
|
12
|
+
},
|
|
8
13
|
};
|
|
9
14
|
export const ContactsContentComponent = (args) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const [sharePanel, setSharePanel] = useState({
|
|
16
|
+
contacts: [],
|
|
17
|
+
openSharePanel: false,
|
|
18
|
+
});
|
|
19
|
+
const [loading, setLoading] = useState(false);
|
|
20
|
+
const [emailsToShare, setEmailsToShare] = useState([]);
|
|
21
|
+
const handleToggleSharePanel = () => {
|
|
22
|
+
setSharePanel(Object.assign(Object.assign({}, sharePanel), { openSharePanel: !sharePanel.openSharePanel }));
|
|
23
|
+
};
|
|
24
|
+
const handleSetContacts = (contacts) => {
|
|
25
|
+
setSharePanel(Object.assign(Object.assign({}, sharePanel), { openSharePanel: true, contacts }));
|
|
26
|
+
};
|
|
27
|
+
const handleShareWithList = (contact) => {
|
|
28
|
+
action('onDropdownSelect')(contact);
|
|
29
|
+
setLoading(true);
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
setLoading(false);
|
|
32
|
+
setEmailsToShare([...emailsToShare, contact.email]);
|
|
33
|
+
}, 1000);
|
|
34
|
+
};
|
|
35
|
+
const handleSearch = (email) => {
|
|
36
|
+
action('onContactSearch')(email);
|
|
37
|
+
setLoading(true);
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
setLoading(false);
|
|
40
|
+
setEmailsToShare([...emailsToShare, email]);
|
|
41
|
+
}, 1000);
|
|
42
|
+
};
|
|
43
|
+
const handleOnRemoveContact = (email) => {
|
|
44
|
+
setEmailsToShare(emailsToShare.filter((e) => e !== email));
|
|
45
|
+
};
|
|
46
|
+
return (_jsxs(Fragment, { children: [_jsx(RightPanel, { isOpen: true, onClose: () => null, children: _jsx(ContactsContent, Object.assign({}, args, { onShareContacts: handleSetContacts })) }), _jsx(RightPanel, { isOpen: sharePanel.openSharePanel, onClose: handleToggleSharePanel, children: _jsx(ShareContactsContent, { contacts: sharePanel.contacts, homefileContacts: ContactsMockCompleted, onClose: handleToggleSharePanel, onShare: action('onShare'), isLoading: loading, shareWithList: emailsToShare, onContactSearch: handleSearch, onDropdownSelect: handleShareWithList, onRemoveContact: handleOnRemoveContact }) })] }));
|
|
20
47
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HomeMonitor, HomeMonitorSteps, MonitorAlerts, Notifications, } from '../../components';
|
|
3
|
+
import { Box, Flex, Stack } from '@chakra-ui/react';
|
|
4
|
+
import { action } from '@storybook/addon-actions';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/HomeAssistant',
|
|
8
|
+
component: HomeMonitor,
|
|
9
|
+
decorators: [
|
|
10
|
+
(Story) => (_jsx(Box, { p: "base", w: ['full', '669px'], h: "477px", children: _jsx(Story, {}) })),
|
|
11
|
+
],
|
|
12
|
+
};
|
|
13
|
+
export const HomeMonitorComponent = () => {
|
|
14
|
+
const [alertId, setAlertId] = useState('smoke-detector-battery');
|
|
15
|
+
const handleAlertClick = (step) => {
|
|
16
|
+
setAlertId(stepAlerts[step]);
|
|
17
|
+
action('onStepClick')(step);
|
|
18
|
+
};
|
|
19
|
+
return (_jsx(HomeMonitor, { children: _jsxs(Stack, { spacing: "base", children: [_jsxs(Flex, { gap: "base", children: [_jsx(MonitorAlerts, { alertId: alertId }), _jsx(Notifications, { date: "10-10-24", local: "TX - Houston" })] }), _jsx(HomeMonitorSteps, { stepsWithAlerts: [2, 3, 5], onStepClick: handleAlertClick })] }) }));
|
|
20
|
+
};
|
|
21
|
+
const stepAlerts = {
|
|
22
|
+
2: 'smoke-detector-expired',
|
|
23
|
+
3: 'change-air-filter',
|
|
24
|
+
5: 'smoke-detector-battery',
|
|
25
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { BaseAlertCardI } from '../../../interfaces';
|
|
3
|
+
declare const _default: Meta<BaseAlertCardI>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const BaseAlertCardComponent: (args: BaseAlertCardI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BaseAlertCard, SmokeDetectorBattery } from '../../../components';
|
|
3
|
+
import { Box } from '@chakra-ui/react';
|
|
4
|
+
import { action } from '@storybook/addon-actions';
|
|
5
|
+
import { Battery } from '../../../assets/images';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/HomeAssistant/MonitorAlerts',
|
|
8
|
+
component: BaseAlertCard,
|
|
9
|
+
args: {
|
|
10
|
+
onClose: action('onClose'),
|
|
11
|
+
description: 'Checking your smoke detector batteries monthly ensures they function properly and keep your home safe from fire hazards.',
|
|
12
|
+
icon: Battery,
|
|
13
|
+
title: 'Check the batteries in your Smoke detectors.',
|
|
14
|
+
children: _jsx(SmokeDetectorBattery, {}),
|
|
15
|
+
},
|
|
16
|
+
decorators: [
|
|
17
|
+
(Story) => (_jsx(Box, { p: "base", w: ['full', '440px'], h: "477px", children: _jsx(Story, {}) })),
|
|
18
|
+
],
|
|
19
|
+
};
|
|
20
|
+
export const BaseAlertCardComponent = (args) => {
|
|
21
|
+
return _jsx(BaseAlertCard, Object.assign({}, args));
|
|
22
|
+
};
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const colors: {
|
|
|
49
49
|
8: string;
|
|
50
50
|
9: string;
|
|
51
51
|
10: string;
|
|
52
|
+
11: string;
|
|
52
53
|
};
|
|
53
54
|
blue: {
|
|
54
55
|
1: string;
|
|
@@ -60,6 +61,8 @@ export declare const colors: {
|
|
|
60
61
|
7: string;
|
|
61
62
|
8: string;
|
|
62
63
|
9: string;
|
|
64
|
+
10: string;
|
|
65
|
+
11: string;
|
|
63
66
|
};
|
|
64
67
|
lightGreen: {
|
|
65
68
|
1: string;
|
|
@@ -111,4 +114,5 @@ export declare const colors: {
|
|
|
111
114
|
};
|
|
112
115
|
skyGradient: string;
|
|
113
116
|
overlay: string;
|
|
117
|
+
overlayWhite: string;
|
|
114
118
|
};
|
package/dist/theme/colors.js
CHANGED
|
@@ -49,6 +49,7 @@ export const colors = {
|
|
|
49
49
|
8: '#90DAF7',
|
|
50
50
|
9: '#84BAE2',
|
|
51
51
|
10: '#cff1fc',
|
|
52
|
+
11: '#99AEB4',
|
|
52
53
|
},
|
|
53
54
|
blue: {
|
|
54
55
|
1: '#3E9FDB',
|
|
@@ -60,6 +61,8 @@ export const colors = {
|
|
|
60
61
|
7: '#3770DB',
|
|
61
62
|
8: '#1E6388',
|
|
62
63
|
9: '#558AB1',
|
|
64
|
+
10: '#232669',
|
|
65
|
+
11: '#424CBF',
|
|
63
66
|
},
|
|
64
67
|
lightGreen: {
|
|
65
68
|
1: '#F0F8F0',
|
|
@@ -111,4 +114,5 @@ export const colors = {
|
|
|
111
114
|
},
|
|
112
115
|
skyGradient: 'linear(to-b, #cff1fc, #F9FEFF)',
|
|
113
116
|
overlay: '#00000040',
|
|
117
|
+
overlayWhite: '#FFFFFF80',
|
|
114
118
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homefile/components-v2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"author": "Homefile",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"@fontsource/poppins": "^5.0.14",
|
|
65
65
|
"@hassanmojab/react-modern-calendar-datepicker": "^3.1.7",
|
|
66
66
|
"@hookform/resolvers": "^3.3.1",
|
|
67
|
+
"@rive-app/react-canvas": "^4.14.5",
|
|
67
68
|
"axios": "^1.7.2",
|
|
68
69
|
"date-fns": "^3.6.0",
|
|
69
70
|
"framer-motion": "^11.3.6",
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="26.027" height="44.459" viewBox="0 0 26.027 44.459">
|
|
2
|
+
<g id="Group_22444" data-name="Group 22444" transform="translate(-6573.237 14695.079)">
|
|
3
|
+
<g id="Group_22328" data-name="Group 22328" transform="translate(-838.979)">
|
|
4
|
+
<rect id="Rectangle_25697" data-name="Rectangle 25697" width="4.116" height="16.135" transform="translate(7417.163 -14690.963) rotate(-90)" fill="#969696"/>
|
|
5
|
+
<path id="Path_16018" data-name="Path 16018" d="M0,0V26.027H40.343V0Z" transform="translate(7412.217 -14650.62) rotate(-90)" fill="#696969"/>
|
|
6
|
+
</g>
|
|
7
|
+
<path id="Path_16020" data-name="Path 16020" d="M0,16.366H8.761L4.507,28.283,16.514,11.9H7.757L12.516,0Z" transform="translate(6577.994 -14685.009)" fill="#ffbd27"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -3,6 +3,7 @@ import AlertDeletePurple from './alert-delete-purple.svg'
|
|
|
3
3
|
import Arrow from './arrow.svg'
|
|
4
4
|
import Batery from './batery.svg'
|
|
5
5
|
import Bathroom from './bathroom.svg'
|
|
6
|
+
import Battery from './battery.svg'
|
|
6
7
|
import Battery2 from './battery2.svg'
|
|
7
8
|
import Bedroom from './bedroom.svg'
|
|
8
9
|
import BgBlue from './bg-blue.png'
|
|
@@ -146,6 +147,7 @@ import Warranty from './warranty.svg'
|
|
|
146
147
|
import WellDone from './well-done.png'
|
|
147
148
|
import WholeHome from './whole-home.svg'
|
|
148
149
|
import Wind from './wind.svg'
|
|
150
|
+
import WindWhite from './wind-white.svg'
|
|
149
151
|
import Wizard from './wizard.svg'
|
|
150
152
|
import WizardDetailed from './wizard-detailed.svg'
|
|
151
153
|
import WizardQuick from './wizard-quick.svg'
|
|
@@ -158,6 +160,7 @@ export {
|
|
|
158
160
|
Arrow,
|
|
159
161
|
Batery,
|
|
160
162
|
Bathroom,
|
|
163
|
+
Battery,
|
|
161
164
|
Battery2,
|
|
162
165
|
Bedroom,
|
|
163
166
|
BgBlue,
|
|
@@ -301,6 +304,7 @@ export {
|
|
|
301
304
|
WellDone,
|
|
302
305
|
WholeHome,
|
|
303
306
|
Wind,
|
|
307
|
+
WindWhite,
|
|
304
308
|
Wizard,
|
|
305
309
|
WizardDetailed,
|
|
306
310
|
WizardQuick,
|
|
@@ -308,6 +312,7 @@ export {
|
|
|
308
312
|
YellowFolderUnshared,
|
|
309
313
|
}
|
|
310
314
|
|
|
315
|
+
export * from './alerts'
|
|
311
316
|
export * from './appliances'
|
|
312
317
|
export * from './clouds-animation'
|
|
313
318
|
export * from './form'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28.666" height="29.146" viewBox="0 0 28.666 29.146">
|
|
2
|
+
<g id="Group_21361" data-name="Group 21361" transform="translate(-2367.248 -359.109)">
|
|
3
|
+
<path id="Path_15541" data-name="Path 15541" d="M13.425,10.969H4.109V8.278h9.316a2.794,2.794,0,1,0-2.794-2.794H7.941a5.484,5.484,0,1,1,5.484,5.484" transform="translate(2365.205 359.109)" fill="#fff"/>
|
|
4
|
+
<path id="Path_15542" data-name="Path 15542" d="M20.261,45.125a5.49,5.49,0,0,1-5.484-5.484h2.691a2.794,2.794,0,1,0,2.794-2.794H4.116v-2.69H20.261a5.484,5.484,0,0,1,0,10.969" transform="translate(2365.202 343.13)" fill="#fff"/>
|
|
5
|
+
<path id="Path_15543" data-name="Path 15543" d="M23.182,21.257H0V18.566H23.182a2.794,2.794,0,1,0-2.794-2.794H17.7a5.484,5.484,0,1,1,5.484,5.484" transform="translate(2367.248 353.995)" fill="#fff"/>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -104,11 +104,13 @@
|
|
|
104
104
|
"continue": "Continue",
|
|
105
105
|
"close": "Close",
|
|
106
106
|
"done": "Done",
|
|
107
|
+
"delete": "Delete",
|
|
107
108
|
"forward": "Forward",
|
|
108
109
|
"next": "Next",
|
|
109
110
|
"previous": "Previous",
|
|
110
111
|
"save": "Save",
|
|
111
112
|
"send": "Send",
|
|
113
|
+
"share": "Share",
|
|
112
114
|
"skip": "Skip for now",
|
|
113
115
|
"saveStep": "Save Step"
|
|
114
116
|
},
|
|
@@ -148,12 +150,20 @@
|
|
|
148
150
|
"error": "Email should be from a valid Homefile account",
|
|
149
151
|
"homeAddress": "Home Address",
|
|
150
152
|
"notes": "Notes",
|
|
153
|
+
"sendContact": "You’ve selected to send contact information to",
|
|
151
154
|
"shareContact": "Share Contact",
|
|
155
|
+
"shareWithEmail": "Share with someone via email",
|
|
156
|
+
"shareWithSMS": "Share with someone via text/SMS",
|
|
157
|
+
"shareWithSocial": "Share with your social account",
|
|
158
|
+
"shareWithHomefile": "Shared with a Homefile user(s)",
|
|
152
159
|
"permissions": "Permissions",
|
|
153
160
|
"placeholders": {
|
|
154
|
-
"
|
|
161
|
+
"searchContact": "Search for a contact by email",
|
|
162
|
+
"email": "Enter Email",
|
|
163
|
+
"sms": "Enter Area Code + Number"
|
|
155
164
|
},
|
|
156
165
|
"rating": "Homeowner Rating",
|
|
166
|
+
"recipient": "recipient",
|
|
157
167
|
"title": "Contacts"
|
|
158
168
|
},
|
|
159
169
|
"daysOfWeek": {
|
|
@@ -340,7 +350,64 @@
|
|
|
340
350
|
"updated": "Updated"
|
|
341
351
|
},
|
|
342
352
|
"homeAssistant": {
|
|
353
|
+
"alerts": {
|
|
354
|
+
"airFilter": {
|
|
355
|
+
"description": "HEPA stands for High-Efficiency Particulate Air. HEPA filters catch really tiny particles, as small as 0.3 micrometers. They’re used in air purifiers, vacuum cleaners, and HVAC systems to get rid of things like allergens, dust, and pet dander, making the air cleaner and healthier.",
|
|
356
|
+
"main": {
|
|
357
|
+
"description": "Changing your air filter every 30 days ensures efficient system performance and improves indoor air quality by trapping dust and allergens.",
|
|
358
|
+
"title": "Time to change your heating & cooling air filter."
|
|
359
|
+
},
|
|
360
|
+
"bestBadge": "Best",
|
|
361
|
+
"betterBadge": "Better",
|
|
362
|
+
"title": "Homefile recommends 2 HEPA filter grades:",
|
|
363
|
+
"best": {
|
|
364
|
+
"description": "Standard in many places, these filters capture 99.97% of tiny particles. They are the go-to choice for homes and businesses, ensuring the air is clean and healthy. True HEPA filters are like the dependable players in the indoor air quality game.",
|
|
365
|
+
"title": "HEPA (Grade H)"
|
|
366
|
+
},
|
|
367
|
+
"better": {
|
|
368
|
+
"description": "These filters catch about 99% of particles. They are cost-effective and work well for everyday use, like in affordable air purifiers and vacuum cleaners. Think of them as the reliable team members suitable for common spaces.",
|
|
369
|
+
"title": "HEPA Type (Grade E)"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"smokeDetectorBattery": {
|
|
373
|
+
"main": {
|
|
374
|
+
"description": "Checking your smoke detector batteries monthly ensures they function properly and keep your home safe from fire hazards.",
|
|
375
|
+
"title": "Check the batteries in your Smoke detectors."
|
|
376
|
+
},
|
|
377
|
+
"bestBadge": "Best",
|
|
378
|
+
"betterBadge": "Better",
|
|
379
|
+
"title": "Which batteries are best to use?",
|
|
380
|
+
"best": {
|
|
381
|
+
"description": "Lithium batteries last around 5 years (some lithium cells are also rechargeable, and when used in a mains-powered alarm may last for the entire functional lifespan of the alarm).",
|
|
382
|
+
"title": "Lithium Batteries"
|
|
383
|
+
},
|
|
384
|
+
"better": {
|
|
385
|
+
"description": "9V alkaline batteries last 12-18 months.",
|
|
386
|
+
"title": "9 Volt Batteries"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"smokeDetectorExpired": {
|
|
390
|
+
"description": "After about 5 years, alarm sensors can become less sensitive to smoke particles. If your alarm is older than 5 years and appears to be working, we still recommend replacing it so you have the best possible protection for your home.",
|
|
391
|
+
"main": {
|
|
392
|
+
"description": "Checking your smoke detector batteries monthly ensures they function properly and keep your home safe from fire hazards.",
|
|
393
|
+
"title": "Your smoke detectors could be expired."
|
|
394
|
+
},
|
|
395
|
+
"title": "How to check if your detectors are expired?",
|
|
396
|
+
"check1": "Remove the alarm from the wall or ceiling.",
|
|
397
|
+
"check2": "Look at the back of the alarm for the date of manufacture.",
|
|
398
|
+
"check3": "If older than 5 years, replace."
|
|
399
|
+
}
|
|
400
|
+
},
|
|
343
401
|
"details": "Provide details about your home’s",
|
|
402
|
+
"homeMonitor": "Home Monitor",
|
|
403
|
+
"monitorAlerts": {
|
|
404
|
+
"collapse": "Collapse Alert",
|
|
405
|
+
"homeAction": "Home Action",
|
|
406
|
+
"maintenance": "Maintenance Monitor",
|
|
407
|
+
"protection": "Protection Monitor",
|
|
408
|
+
"review": "Review Alert"
|
|
409
|
+
},
|
|
410
|
+
"notifications": "Notification coming",
|
|
344
411
|
"selectAppliances": "Select the appliances you have in your home:",
|
|
345
412
|
"steps": {
|
|
346
413
|
"appliances": "Appliances",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useRive } from '@rive-app/react-canvas'
|
|
2
|
+
const url = process.env.REACT_APP_RIVE_ASSETS
|
|
3
|
+
|
|
4
|
+
export const HomieAnimation = () => {
|
|
5
|
+
const { RiveComponent } = useRive({
|
|
6
|
+
src: `${url}/homie-v2.riv`,
|
|
7
|
+
stateMachines: 'State Machine 1',
|
|
8
|
+
autoplay: true,
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
return <RiveComponent />
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Center } from '@chakra-ui/react'
|
|
2
|
+
|
|
3
|
+
export const CustomBadge = ({
|
|
4
|
+
bg = 'neutral.white',
|
|
5
|
+
color = 'neutral.white',
|
|
6
|
+
label = '',
|
|
7
|
+
}) => {
|
|
8
|
+
return (
|
|
9
|
+
<Center
|
|
10
|
+
bg={bg}
|
|
11
|
+
fontSize="xxs"
|
|
12
|
+
color={color}
|
|
13
|
+
fontWeight="bold"
|
|
14
|
+
py="1"
|
|
15
|
+
px="2"
|
|
16
|
+
rounded="md"
|
|
17
|
+
textTransform="uppercase"
|
|
18
|
+
>
|
|
19
|
+
{label}
|
|
20
|
+
</Center>
|
|
21
|
+
)
|
|
22
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './CustomBadge'
|
|
2
|
+
export * from './LetterBadge'
|
|
3
|
+
export * from './NewBadge'
|
|
4
|
+
export * from './NumberBadge'
|
|
5
|
+
export * from './TextBadge'
|
|
@@ -13,7 +13,8 @@ export const ContactCard = ({
|
|
|
13
13
|
index,
|
|
14
14
|
menuItems,
|
|
15
15
|
onClick,
|
|
16
|
-
|
|
16
|
+
showAvatar,
|
|
17
|
+
showHeader = true,
|
|
17
18
|
}: ContactCardI) => {
|
|
18
19
|
const hasOnClick = typeof onClick === 'function'
|
|
19
20
|
return (
|
|
@@ -23,18 +24,15 @@ export const ContactCard = ({
|
|
|
23
24
|
onClick={() => onClick?.({ ...contact, index })}
|
|
24
25
|
transition="background-color 0.3s"
|
|
25
26
|
_hover={{
|
|
26
|
-
bg: hasOnClick ? 'lightGreen.1' : '
|
|
27
|
+
bg: hasOnClick ? 'lightGreen.1' : 'neutral.white',
|
|
27
28
|
}}
|
|
28
29
|
cursor={hasOnClick ? 'pointer' : 'default'}
|
|
29
30
|
>
|
|
30
31
|
<Stack pb="base" pt="1" px="base" spacing="base">
|
|
31
|
-
|
|
32
|
-
apiError={apiError}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onShare={onShare}
|
|
36
|
-
/>
|
|
37
|
-
<CardBody {...{ contact, index }} />
|
|
32
|
+
{showHeader && (
|
|
33
|
+
<ContactCardHeader apiError={apiError} contact={contact} />
|
|
34
|
+
)}
|
|
35
|
+
<CardBody {...{ contact, index, showAvatar }} />
|
|
38
36
|
</Stack>
|
|
39
37
|
</Container>
|
|
40
38
|
)
|
|
@@ -43,10 +41,11 @@ export const ContactCard = ({
|
|
|
43
41
|
const CardBody = ({
|
|
44
42
|
contact,
|
|
45
43
|
index,
|
|
46
|
-
|
|
44
|
+
showAvatar,
|
|
45
|
+
}: Pick<ContactCardI, 'contact' | 'index' | 'showAvatar'>) => {
|
|
47
46
|
return (
|
|
48
47
|
<Flex justify="space-between" align="stretch" gap="base">
|
|
49
|
-
<ContactCardInfo {...{ ...contact, index }} />
|
|
48
|
+
<ContactCardInfo {...{ ...contact, index, showAvatar }} />
|
|
50
49
|
<Box borderLeft={`1px solid ${colors.lightBlue[1]}`} w="45%" pl="base">
|
|
51
50
|
<ContactCardAddress {...contact} />
|
|
52
51
|
</Box>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { t } from 'i18next'
|
|
2
2
|
import { Flex, Image, Text } from '@chakra-ui/react'
|
|
3
3
|
import { Contacts } from '@/assets/images'
|
|
4
|
-
import {
|
|
4
|
+
import { IconMenu, MoreHorizontal } from '@/components'
|
|
5
5
|
import { ContactCardHeaderI } from '@/interfaces'
|
|
6
6
|
|
|
7
|
-
export const ContactCardHeader = (
|
|
8
|
-
|
|
7
|
+
export const ContactCardHeader = ({
|
|
8
|
+
contact,
|
|
9
|
+
menuItems = [],
|
|
10
|
+
}: ContactCardHeaderI) => {
|
|
11
|
+
const { category, title } = contact
|
|
9
12
|
return (
|
|
10
13
|
<Flex align="center" justify="space-between">
|
|
11
14
|
<Flex align="center" gap="base">
|
|
@@ -24,7 +27,12 @@ export const ContactCardHeader = (props: ContactCardHeaderI) => {
|
|
|
24
27
|
<Text fontSize="xs">{title.toUpperCase()}</Text>
|
|
25
28
|
</Flex>
|
|
26
29
|
</Flex>
|
|
27
|
-
<
|
|
30
|
+
<IconMenu
|
|
31
|
+
icon={<MoreHorizontal size={32} />}
|
|
32
|
+
itemForm={contact}
|
|
33
|
+
menuItems={menuItems}
|
|
34
|
+
disabled={menuItems.length < 1}
|
|
35
|
+
/>
|
|
28
36
|
</Flex>
|
|
29
37
|
)
|
|
30
38
|
}
|
|
@@ -9,18 +9,21 @@ export const ContactCardInfo = ({
|
|
|
9
9
|
index,
|
|
10
10
|
lastName,
|
|
11
11
|
phone,
|
|
12
|
+
showAvatar = true,
|
|
12
13
|
}: ContactCardInfoI) => {
|
|
13
14
|
const name = `${firstName} ${lastName}`.trim() || company
|
|
14
15
|
return (
|
|
15
16
|
<Flex gap="base" minH="50px" align="center">
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
{showAvatar && (
|
|
18
|
+
<Avatar
|
|
19
|
+
w="40px"
|
|
20
|
+
h="40px"
|
|
21
|
+
bg={randomColor(index)}
|
|
22
|
+
fontWeight="bold"
|
|
23
|
+
color="neutral.white"
|
|
24
|
+
name={name}
|
|
25
|
+
/>
|
|
26
|
+
)}
|
|
24
27
|
<Stack w="full" spacing="0.5">
|
|
25
28
|
<Text fontWeight="bold">{name}</Text>
|
|
26
29
|
<Box>
|