@homefile/components-v2 2.19.0 → 2.21.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/index.d.ts +2 -1
- package/dist/assets/images/index.js +2 -1
- package/dist/assets/images/index.ts +2 -0
- package/dist/assets/images/wallet.svg +18 -0
- package/dist/components/badge/CustomBadge.d.ts +3 -4
- package/dist/components/badge/CustomBadge.js +14 -2
- package/dist/components/homeAssistant/monitorAlerts/BackendAlert.d.ts +1 -1
- package/dist/components/homeAssistant/monitorAlerts/BackendAlert.js +2 -2
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/AlertFields.js +8 -2
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/HireInfo.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/HireInfo.js +5 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/HireService.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/HireService.js +26 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/PurchaseProduct.d.ts +2 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/PurchaseProduct.js +26 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/VideoDetail.js +1 -1
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/index.d.ts +3 -0
- package/dist/components/homeAssistant/monitorAlerts/alertDetails/index.js +3 -0
- package/dist/helpers/forms/dynamicForm.helper.js +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +2 -2
- package/dist/interfaces/homeAssistant/BackendAlert.interface.d.ts +1 -1
- package/dist/mocks/forms/dynamicForm.mock.js +173 -0
- package/dist/stories/assets/Illustrations.stories.js +2 -2
- package/dist/stories/homeAssistant/monitorAlerts/BackendAlert.stories.js +2 -0
- package/package.json +1 -1
- package/src/assets/images/index.ts +2 -0
- package/src/assets/images/wallet.svg +18 -0
- package/src/components/badge/CustomBadge.tsx +4 -2
- package/src/components/homeAssistant/monitorAlerts/BackendAlert.tsx +4 -2
- package/src/components/homeAssistant/monitorAlerts/alertDetails/AlertFields.tsx +16 -3
- package/src/components/homeAssistant/monitorAlerts/alertDetails/HireInfo.tsx +11 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/HireService.tsx +92 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/PurchaseProduct.tsx +75 -0
- package/src/components/homeAssistant/monitorAlerts/alertDetails/VideoDetail.tsx +1 -1
- package/src/components/homeAssistant/monitorAlerts/alertDetails/index.ts +3 -0
- package/src/helpers/forms/dynamicForm.helper.ts +2 -0
- package/src/index.ts +1 -0
- package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +2 -0
- package/src/interfaces/homeAssistant/BackendAlert.interface.ts +7 -1
- package/src/mocks/forms/dynamicForm.mock.ts +174 -0
- package/src/stories/assets/Illustrations.stories.tsx +2 -0
- package/src/stories/homeAssistant/monitorAlerts/BackendAlert.stories.tsx +2 -0
|
@@ -151,6 +151,7 @@ import TreesCrop2 from './trees-crop2.png';
|
|
|
151
151
|
import VideoIcon from './video-icon.svg';
|
|
152
152
|
import VideoPlay from './video-play.svg';
|
|
153
153
|
import VioletFolder from './violet-folder.svg';
|
|
154
|
+
import Wallet from './wallet.svg';
|
|
154
155
|
import Warning from './warning.svg';
|
|
155
156
|
import Warranty from './warranty.svg';
|
|
156
157
|
import WellDone from './well-done.png';
|
|
@@ -162,7 +163,7 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
162
163
|
import WizardQuick from './wizard-quick.svg';
|
|
163
164
|
import YellowFolder from './yellow-folder.svg';
|
|
164
165
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
165
|
-
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, 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, FileUploading, FilterSize, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, 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, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
166
|
+
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, 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, FileUploading, FilterSize, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, 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, 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, };
|
|
166
167
|
export * from './alerts';
|
|
167
168
|
export * from './animations';
|
|
168
169
|
export * from './appliances';
|
|
@@ -151,6 +151,7 @@ import TreesCrop2 from './trees-crop2.png';
|
|
|
151
151
|
import VideoIcon from './video-icon.svg';
|
|
152
152
|
import VideoPlay from './video-play.svg';
|
|
153
153
|
import VioletFolder from './violet-folder.svg';
|
|
154
|
+
import Wallet from './wallet.svg';
|
|
154
155
|
import Warning from './warning.svg';
|
|
155
156
|
import Warranty from './warranty.svg';
|
|
156
157
|
import WellDone from './well-done.png';
|
|
@@ -162,7 +163,7 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
162
163
|
import WizardQuick from './wizard-quick.svg';
|
|
163
164
|
import YellowFolder from './yellow-folder.svg';
|
|
164
165
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
165
|
-
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, 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, FileUploading, FilterSize, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, 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, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
166
|
+
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, 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, FileUploading, FilterSize, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, 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, 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, };
|
|
166
167
|
export * from './alerts';
|
|
167
168
|
export * from './animations';
|
|
168
169
|
export * from './appliances';
|
|
@@ -151,6 +151,7 @@ import TreesCrop2 from './trees-crop2.png'
|
|
|
151
151
|
import VideoIcon from './video-icon.svg'
|
|
152
152
|
import VideoPlay from './video-play.svg'
|
|
153
153
|
import VioletFolder from './violet-folder.svg'
|
|
154
|
+
import Wallet from './wallet.svg'
|
|
154
155
|
import Warning from './warning.svg'
|
|
155
156
|
import Warranty from './warranty.svg'
|
|
156
157
|
import WellDone from './well-done.png'
|
|
@@ -317,6 +318,7 @@ export {
|
|
|
317
318
|
VideoIcon,
|
|
318
319
|
VideoPlay,
|
|
319
320
|
VioletFolder,
|
|
321
|
+
Wallet,
|
|
320
322
|
Warning,
|
|
321
323
|
Warranty,
|
|
322
324
|
WellDone,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg id="Grupo_22869" data-name="Grupo 22869" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="35.199" height="39.708" viewBox="0 0 35.199 39.708">
|
|
2
|
+
<defs>
|
|
3
|
+
<clipPath id="clip-path">
|
|
4
|
+
<rect id="Retângulo_26646" data-name="Retângulo 26646" width="35.199" height="39.708" transform="translate(0 0)" fill="none"/>
|
|
5
|
+
</clipPath>
|
|
6
|
+
</defs>
|
|
7
|
+
<g id="Grupo_22868" data-name="Grupo 22868" transform="translate(0 0)" clip-path="url(#clip-path)">
|
|
8
|
+
<path id="Caminho_18397" data-name="Caminho 18397" d="M0,39.93a2.882,2.882,0,0,0,2.882,2.878h.53V65.725h-.53A2.883,2.883,0,0,1,0,62.844Z" transform="translate(0 -26.017)" fill="#323954"/>
|
|
9
|
+
<path id="Caminho_18398" data-name="Caminho 18398" d="M76.372,66.9v8.474H67.431a4.237,4.237,0,1,1,0-8.474Zm-6.363,4.237a1.594,1.594,0,1,0-1.6,1.592,1.593,1.593,0,0,0,1.6-1.592" transform="translate(-41.172 -43.589)" fill="#e24c5d"/>
|
|
10
|
+
<path id="Caminho_18399" data-name="Caminho 18399" d="M75.2,74.49a1.592,1.592,0,1,1-1.592,1.592A1.593,1.593,0,0,1,75.2,74.49" transform="translate(-47.961 -48.535)" fill="#f6cf76"/>
|
|
11
|
+
<path id="Caminho_18400" data-name="Caminho 18400" d="M35.463,48.19h6.115v6.519H32.637a4.237,4.237,0,1,0,0,8.474h8.941v7.924H9.79V48.19H35.463Z" transform="translate(-6.379 -31.399)" fill="#40566b"/>
|
|
12
|
+
<path id="Caminho_18401" data-name="Caminho 18401" d="M2.881,31.65A2.883,2.883,0,0,0,0,34.532v0a2.882,2.882,0,0,0,2.882,2.878H7.8L9.39,34.532l1.585-2.882Z" transform="translate(0.001 -20.622)" fill="#e24c5d"/>
|
|
13
|
+
<path id="Caminho_18402" data-name="Caminho 18402" d="M86.644,31.65l-1.586,2.882L83.47,37.413h6.115V31.65Z" transform="translate(-54.386 -20.622)" fill="#e24c5d"/>
|
|
14
|
+
<path id="Caminho_18403" data-name="Caminho 18403" d="M33.024,3.388l-8.23,14.948h-2.4l1.589-2.882,1.585-2.882,5.617-10.2Z" transform="translate(-14.588 -1.544)" fill="#00c0b7"/>
|
|
15
|
+
<path id="Caminho_18404" data-name="Caminho 18404" d="M49.757,13.91l-1.589,2.882h-2.4l4.4-7.99-10.8-5.944L31.691,16.791h-2.4L37.52,1.843,38.534,0,53.022,7.976l-1.679,3.052Z" transform="translate(-19.084 0)" fill="#00a1aa"/>
|
|
16
|
+
<path id="Caminho_18405" data-name="Caminho 18405" d="M54.65,14.145l-4.4,7.99H36.179L43.852,8.2Z" transform="translate(-23.573 -5.343)" fill="#00c0b7"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
label?: string | undefined;
|
|
1
|
+
import { CenterProps } from '@chakra-ui/react';
|
|
2
|
+
export declare const CustomBadge: ({ bg, color, label, ...props }: CenterProps & {
|
|
3
|
+
label?: string;
|
|
5
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
13
|
import { Center } from '@chakra-ui/react';
|
|
3
|
-
export const CustomBadge = (
|
|
4
|
-
|
|
14
|
+
export const CustomBadge = (_a) => {
|
|
15
|
+
var { bg = 'neutral.white', color = 'neutral.white', label = '' } = _a, props = __rest(_a, ["bg", "color", "label"]);
|
|
16
|
+
return (_jsx(Center, Object.assign({ bg: bg, fontSize: "xxs", color: color, fontWeight: "bold", py: "1", px: "2", rounded: "md", textTransform: "uppercase" }, props, { children: label })));
|
|
5
17
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BackendAlertI } from '../../../interfaces';
|
|
2
|
-
export declare const BackendAlert: ({ category, form }: BackendAlertI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const BackendAlert: ({ category, form, callback }: BackendAlertI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { AlertFields, BackendAlertCard, TabsHeader } from '../..';
|
|
3
3
|
import { getCategoryStyles } from '../../../utils/Alerts.utils';
|
|
4
4
|
import { Divider } from '@chakra-ui/react';
|
|
5
|
-
export const BackendAlert = ({ category, form }) => {
|
|
5
|
+
export const BackendAlert = ({ category, form, callback }) => {
|
|
6
6
|
var _a, _b, _c, _d, _e;
|
|
7
7
|
const { headerBg, alertIcon, alertIconBg, alertTitle } = getCategoryStyles(category);
|
|
8
8
|
const alert = form === null || form === void 0 ? void 0 : form.find((item) => item.type === 'alert');
|
|
@@ -10,7 +10,7 @@ export const BackendAlert = ({ category, form }) => {
|
|
|
10
10
|
var _a;
|
|
11
11
|
return ({
|
|
12
12
|
label: tab.name,
|
|
13
|
-
component: _jsx(AlertFields, { fields: (_a = tab.children) !== null && _a !== void 0 ? _a : [] }),
|
|
13
|
+
component: (_jsx(AlertFields, { fields: (_a = tab.children) !== null && _a !== void 0 ? _a : [], callback: callback })),
|
|
14
14
|
});
|
|
15
15
|
})) !== null && _b !== void 0 ? _b : [];
|
|
16
16
|
return (_jsxs(BackendAlertCard, { alertBg: headerBg, alertIcon: alertIcon, alertTitle: alertTitle, bg: alertIconBg, icon: (_c = alert === null || alert === void 0 ? void 0 : alert.icon) !== null && _c !== void 0 ? _c : '', title: (_d = alert === null || alert === void 0 ? void 0 : alert.label) !== null && _d !== void 0 ? _d : '', description: (_e = alert === null || alert === void 0 ? void 0 : alert.description) !== null && _e !== void 0 ? _e : '', children: [_jsx(Divider, {}), _jsx(TabsHeader, { tabList: tabs })] }));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Stack, Text } from '@chakra-ui/react';
|
|
4
|
-
import { FilterSize, SearchField, VideoDetail } from '../../..';
|
|
4
|
+
import { FilterSize, HireInfo, HireService, PurchaseProduct, SearchField, VideoDetail, } from '../../..';
|
|
5
5
|
import { fieldIcons } from '../../../../helpers';
|
|
6
6
|
export const AlertFields = ({ fields, callback }) => {
|
|
7
|
-
return (_jsx(Stack, { spacing: "
|
|
7
|
+
return (_jsx(Stack, { spacing: "1", p: "base", children: fields === null || fields === void 0 ? void 0 : fields.map((field) => {
|
|
8
8
|
const { id, type, value, icon } = field;
|
|
9
9
|
const mappedIcon = icon && fieldIcons[icon];
|
|
10
10
|
switch (type) {
|
|
@@ -16,6 +16,12 @@ export const AlertFields = ({ fields, callback }) => {
|
|
|
16
16
|
return _createElement(FilterSize, Object.assign({}, field, { key: id, icon: mappedIcon }));
|
|
17
17
|
case 'search':
|
|
18
18
|
return _createElement(SearchField, Object.assign({}, field, { key: id, callback: callback }));
|
|
19
|
+
case 'purchase-product':
|
|
20
|
+
return _createElement(PurchaseProduct, Object.assign({}, field, { key: id, callback: callback }));
|
|
21
|
+
case 'hire-info':
|
|
22
|
+
return _createElement(HireInfo, Object.assign({}, field, { key: id, icon: mappedIcon }));
|
|
23
|
+
case 'hire-service':
|
|
24
|
+
return _createElement(HireService, Object.assign({}, field, { key: id, callback: callback }));
|
|
19
25
|
default:
|
|
20
26
|
return null;
|
|
21
27
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Flex, Image, Text } from '@chakra-ui/react';
|
|
3
|
+
export const HireInfo = ({ name, icon, value }) => {
|
|
4
|
+
return (_jsxs(Flex, { bg: "lightBlue.2", gap: "base", p: "base", mx: "-base", children: [_jsx(Image, { boxSize: "40px", src: icon, alt: name }), _jsx(Text, { children: value })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { CustomBadge, Plus, Calendar } from '../../..';
|
|
14
|
+
import { colors } from '../../../../theme/colors';
|
|
15
|
+
import { Box, Container, Flex, IconButton, Image, Text, } from '@chakra-ui/react';
|
|
16
|
+
export const HireService = (_a) => {
|
|
17
|
+
var { description, name, label, icon, comments, value, callback, children } = _a, rest = __rest(_a, ["description", "name", "label", "icon", "comments", "value", "callback", "children"]);
|
|
18
|
+
const ctaIcon = {
|
|
19
|
+
plus: _jsx(Plus, { stroke: colors.blue[3] }),
|
|
20
|
+
calendar: _jsx(Calendar, { stroke: colors.blue[3] }),
|
|
21
|
+
};
|
|
22
|
+
return (_jsxs(Container, { p: "base", position: "relative", boxShadow: "md", children: [_jsx(CustomBadge, { label: label, bg: "#77C100", position: "absolute", top: "2", left: "-1", zIndex: "3" }), _jsxs(Flex, { gap: "base", ml: "10", align: "center", children: [_jsx(Image, { src: icon, alt: name, objectFit: "contain", w: "70px", h: "70px" }), _jsxs(Flex, { align: "end", justify: "space-between", w: "100%", children: [_jsxs(Box, { children: [_jsx(Text, { fontWeight: "semibold", fontSize: "sm", noOfLines: 2, overflow: "hidden", textOverflow: "ellipsis", children: name }), _jsx(Text, { fontSize: "sm", fontFamily: "secondary", lineHeight: "1.2", children: description }), _jsx(Text, { fontSize: "sm", fontFamily: "secondary", lineHeight: "1.2", children: comments }), _jsx(Text, { fontSize: "sm", fontFamily: "secondary", color: "blue.2", lineHeight: "1.2", children: value })] }), _jsx(Flex, { gap: "2", children: children === null || children === void 0 ? void 0 : children.map((child) => {
|
|
23
|
+
const { id, icon, label = '' } = child;
|
|
24
|
+
return (_jsx(IconButton, { w: "2rem", h: "2rem", "aria-label": label, variant: "iconOutlined", icon: ctaIcon[icon] || _jsx(Plus, {}), onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign(Object.assign({}, child), { value: String(child.value) })) }, id));
|
|
25
|
+
}) })] })] })] }));
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { CustomBadge, Plus } from '../../..';
|
|
14
|
+
import { colors } from '../../../../theme/colors';
|
|
15
|
+
import { Container, Flex, IconButton, Image, Stack, Text, } from '@chakra-ui/react';
|
|
16
|
+
export const PurchaseProduct = (_a) => {
|
|
17
|
+
var _b;
|
|
18
|
+
var { name, label, icon, comments, value, callback } = _a, rest = __rest(_a, ["name", "label", "icon", "comments", "value", "callback"]);
|
|
19
|
+
const bgs = {
|
|
20
|
+
best: '#232669',
|
|
21
|
+
better: '#424CBF',
|
|
22
|
+
good: '#5C81C7',
|
|
23
|
+
};
|
|
24
|
+
const bg = bgs[(_b = label === null || label === void 0 ? void 0 : label.toLowerCase()) !== null && _b !== void 0 ? _b : 'best'];
|
|
25
|
+
return (_jsxs(Container, { p: "base", position: "relative", boxShadow: "md", children: [_jsx(CustomBadge, { label: label, bg: bg, position: "absolute", top: "2", left: "-1", zIndex: "3" }), _jsxs(Flex, { gap: "base", ml: "6", children: [_jsx(Image, { src: icon, alt: name, objectFit: "contain", w: "70px", h: "70px" }), _jsxs(Stack, { spacing: "0", children: [_jsx(Text, { fontWeight: "semibold", fontSize: "sm", noOfLines: 2, overflow: "hidden", textOverflow: "ellipsis", children: name }), _jsxs(Flex, { alignSelf: "end", gap: "base", align: "end", children: [_jsxs(Stack, { spacing: "0", align: "end", children: [_jsx(Text, { fontSize: "xs", fontFamily: "secondary", color: "red", children: comments }), _jsx(Text, { fontSize: "sm", fontWeight: "bold", lineHeight: "1.2", children: value })] }), _jsx(IconButton, { w: "2rem", h: "2rem", "aria-label": "Add product", variant: "iconOutlined", icon: _jsx(Plus, { size: 20, stroke: colors.blue['3'] }), onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign({ name, icon, value: String(value) }, rest)) })] })] })] })] }));
|
|
26
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AspectRatio, Box, Container, Flex, Text } from '@chakra-ui/react';
|
|
3
3
|
export const VideoDetail = ({ name, label, link, description }) => {
|
|
4
|
-
return (_jsx(Container, { p: "base", children: _jsxs(Flex, { gap: "base", children: [_jsx(AspectRatio, { w: "140px", ratio: 16 / 9, children: _jsx("iframe", { title: name, src: link, allowFullScreen: true }) }), _jsxs(Box, { children: [_jsx(Text, { fontWeight: "semibold", children: name }), _jsx(Text, { fontSize: "sm", fontFamily: "secondary", children: `${label} | ${description}` })] })] }) }));
|
|
4
|
+
return (_jsx(Container, { p: "base", boxShadow: "md", children: _jsxs(Flex, { gap: "base", children: [_jsx(AspectRatio, { w: "140px", ratio: 16 / 9, children: _jsx("iframe", { title: name, src: link, allowFullScreen: true }) }), _jsxs(Box, { children: [_jsx(Text, { fontWeight: "semibold", children: name }), _jsx(Text, { fontSize: "sm", fontFamily: "secondary", children: `${label} | ${description}` })] })] }) }));
|
|
5
5
|
};
|
|
@@ -2,6 +2,9 @@ export * from './AlertFields';
|
|
|
2
2
|
export * from './ChangeAirFilter';
|
|
3
3
|
export * from './CustomDivider';
|
|
4
4
|
export * from './FilterSize';
|
|
5
|
+
export * from './HireInfo';
|
|
6
|
+
export * from './HireService';
|
|
7
|
+
export * from './PurchaseProduct';
|
|
5
8
|
export * from './SearchField';
|
|
6
9
|
export * from './SmokeDetectorBattery';
|
|
7
10
|
export * from './SmokeDetectorExpired';
|
|
@@ -2,6 +2,9 @@ export * from './AlertFields';
|
|
|
2
2
|
export * from './ChangeAirFilter';
|
|
3
3
|
export * from './CustomDivider';
|
|
4
4
|
export * from './FilterSize';
|
|
5
|
+
export * from './HireInfo';
|
|
6
|
+
export * from './HireService';
|
|
7
|
+
export * from './PurchaseProduct';
|
|
5
8
|
export * from './SearchField';
|
|
6
9
|
export * from './SmokeDetectorBattery';
|
|
7
10
|
export * from './SmokeDetectorExpired';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Paint, Receipt, Barcode, GoldenBars, Heart, Rating, Notes, Book, ImgIcon, Registry, ShareWith, Calendar, Contacts, Tools2, Billing, Calc, CheckPen, GenericField, Price, Battery2, Co2, Detector, Electricity, Sprinkler, SixtyEight, DropCalendar, MobileDrop, SolarPanel, Calendar2, Drop, Wind, Foundation, Heater, Light, Plate, Pool2, Closet, Structure, GlassWater, Roof2, Target, CircleFace, Pressure, WindowCleaning, RoofCleaning, HolidayLights, GutterCleaning, HomeCleaning, HouseWashing, PressureWasher, BookOpened, Company2, AADisease, AADressing, AALawn, AAMowing, AAWeed, AApest, FilterSize, } from '../../assets/images';
|
|
1
|
+
import { Paint, Receipt, Barcode, GoldenBars, Heart, Rating, Notes, Book, ImgIcon, Registry, ShareWith, Calendar, Contacts, Tools2, Billing, Calc, CheckPen, GenericField, Price, Battery2, Co2, Detector, Electricity, Sprinkler, SixtyEight, DropCalendar, MobileDrop, SolarPanel, Calendar2, Drop, Wind, Foundation, Heater, Light, Plate, Pool2, Closet, Structure, GlassWater, Roof2, Target, CircleFace, Pressure, WindowCleaning, RoofCleaning, HolidayLights, GutterCleaning, HomeCleaning, HouseWashing, PressureWasher, BookOpened, Company2, AADisease, AADressing, AALawn, AAMowing, AAWeed, AApest, FilterSize, Wallet, } from '../../assets/images';
|
|
2
2
|
export const fieldIcons = {
|
|
3
3
|
barcode: Barcode,
|
|
4
4
|
billing: Billing,
|
|
@@ -46,6 +46,7 @@ export const fieldIcons = {
|
|
|
46
46
|
target: Target,
|
|
47
47
|
title: CircleFace,
|
|
48
48
|
company: Company2,
|
|
49
|
+
wallet: Wallet,
|
|
49
50
|
'sh-gutter': GutterCleaning,
|
|
50
51
|
'sh-home': HomeCleaning,
|
|
51
52
|
'sh-house': HouseWashing,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WeatherWidget, WellDone, YtdTile, } from './components';
|
|
1
|
+
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BackendAlert, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WeatherWidget, WellDone, YtdTile, } from './components';
|
|
2
2
|
export { useCustomToast } from './hooks';
|
|
3
3
|
export { randomColor, mapApiObjectToFormFields, mapForecastToWidget, } from './utils';
|
|
4
4
|
export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar, Create, Notes, } from './assets/images';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WeatherWidget, WellDone, YtdTile, } from './components';
|
|
1
|
+
export { ActivateAccount, ActiveSubscription, AddCardBanner, AddEditContactPanel, AddFolder, AddHomeContent, AddHomeItem, AddHomeItemHeader, AddMedia, AddPropertyRecords, Address, AddPopup, AddTile, AddToHomefile, AlertBanner, AphwTile, AppBar, AssignableReceipts, BackHeader, BackendAlert, BarDivider, CancelAccount, CatalogPopup, CloudsAnimation, ContactList, ContactsContent, ContainerHeader, CreateDocumentHeader, CreateHouseholdItemHeader, CreditCardContainer, CreditCardError, CustomerTile, DeleteBanner, Dialog, DisplayFiles, DisplayFilesDetail, DisplayOptions, DisplayReceipts, DocumentMenu, DocumentNameHeader, DocumentPreview, DynamicForm, EditAccountType, EditHomeBody, EditHomeFooter, EditHomeHeader, EditHomePanel, EmailPermissions, EmailValidation, Feedback, FileDetail, FilesUploader, FlowStep, FolderDetail, FolderDetailBody, FolderDetailContent, FolderDetailFooter, FolderDetailHeader, FolderInfo, FolderSharing, FolderTypeSelection, FooterButtons, FooterDrawer, GenericBackHeader, GroupCard, GroupsContainer, GroupsHeader, Header, HelpContent, HomeAssistant, HomeAssistantPanel, HomeBoardGrid, HomeBoardTour, HomeCard, HomeCardWithRecipent, HomeDetailsContent, HomefileMonitoring, HomeHeader, HomeMonitor, HomeMonitorSteps, HomeSharedWith, InboxForwardBanner, InboxTile, ItemFormPanel, ItemFormTabs, ItemNameHeader, ItemsReviewBanner, ItemSubTypeSelect, Launchpad, LaunchpadAutofilerBanner, LaunchpadReceiptAutofiler, LaunchpadReceiptPanel, LaunchpadTour, LeftPanel, Loading, MediaDetailsStep, MessagePanel, MessageChatPanel, MonitorAlerts, MonthlyCharge, MortgageInfo, MoveModal, MyHomes, MyProfileBody, MyProfileContent, MyProfileFooter, MyProfileHeader, MyProfilePanel, NewCreditCard, NewCreditCardHeader, NewPassword, NotBeChargedBanner, Notifications, NotificationsReminder, NotificationsPanel, NotificationCard, Overlay, PanelHeader, PartnerActiveSubscription, PartnerCatalogPanel, PartnerContent, PartnerCustomerCode, PartnerDetails, PartnerImages, PartnerPanel, PasswordInput, PaymentReceipts, PdfButton, PeopleConnected, ProfileDetailsTab, ProfilePaymentTab, ProjectList, PropertyRecords, PropertyTaxes, ReadOnlyDynamicForm, ReadOnlyImage, ReadOnlyToggle, ReceiptAutofiler, ReceiptBody, ReceiptContent, ReceiptDetails, ReceiptFilters, ReceiptFooter, ReceiptHeader, ReceiptInfos, ReceiptItem, ReceiptItems, ReceiptPDF, ReceiptsDisplayOptions, ReceiptsFiled, ReceiptsHeader, ReceiptsInfo, ReceiptsReceivedContent, RecipientForm, RecipientsToShare, RecipientTab, RecordsInputs, ResendResetPassword, ResetPassword, ReviewBanner, RightPanel, RolePermissionsTab, RoomHeader, RoomsBoardTour, RoomsMenu, RoomsMenuMobile, RoomStep, RoomVideo, SalesTax, SatisfactionTile, SectionHeader, SendCommunication, ShareContactsContent, SharedAccounts, SharedHomeContent, SharedHomeHeader, ShareHome, ShareHomeConnections, ShareHomeForm, ShineTile, ShortPartnerTile, SignIn, SignUp, SkeletonBox, StepHeader, StorageUsed, Subscription, SubscriptionCard, SubscriptionTable, Summary, TabsHeader, TextInput, ToBeDeletedBody, ToBeDeletedContent, ToBeDeletedFooter, ToBeDeletedHeader, TourButton, Trash, TrendingValue, TrialBanner, TutorialsButton, TwoFactor, TwoFactorSetting, UpdateList, UserDetails, ValueMonitor, ViewContactPanel, VideoPlayer, VideoPlayerModal, WeatherWidget, WellDone, YtdTile, } from './components';
|
|
2
2
|
export { useCustomToast } from './hooks';
|
|
3
3
|
export { randomColor, mapApiObjectToFormFields, mapForecastToWidget, } from './utils';
|
|
4
4
|
export { Contacts, MagnifyingGlassReport, Message, Register, Receipts, Price, BlueFolderShared, Calendar, Create, Notes, } from './assets/images';
|
|
@@ -2,8 +2,8 @@ import { AIGridFieldI, AlertFieldType, AlertTabType, FolderFileI, MenuItemI, Par
|
|
|
2
2
|
export type KindTypes = 'ai-image' | 'ai-grid' | 'checkbox' | 'checkbox-agreement' | 'checkbox-group' | 'currency' | 'date' | 'email' | 'file' | 'grid' | 'group' | 'hidden' | 'notes' | 'number' | 'radio' | 'rating' | 'select' | 'string' | 'switch' | 'telephone' | 'text' | 'textarea' | 'default' | 'video' | UIKindTypes | HomeItemTypes | AlertTabType | AlertFieldType;
|
|
3
3
|
export type UIKindTypes = 'tile-body' | 'tile-body-logo' | 'tile-body-header' | 'tile-body-section' | 'tile-body-section-grid' | 'tile-body-partner-image' | 'tile-body-description' | 'tile-form' | 'tile-body-action' | 'vertical-icon' | 'primary-cta' | 'secondary-cta';
|
|
4
4
|
export type HomeItemTypes = 'appliances' | 'images' | 'guidelines' | 'item-related' | 'item-icon-btn';
|
|
5
|
-
export type IconTypes = 'barcode' | 'battery' | 'billing' | 'book' | 'book-opened' | 'calc' | 'calendar' | 'check' | 'co2' | 'contact' | 'date' | 'default' | 'detector' | 'electricity' | 'goldbars' | 'heart' | 'image' | 'notes' | 'palette' | 'people' | 'price' | 'rating' | 'receipt' | 'registry' | 'sprinkler' | 'tools' | 'wind' | '68' | 'calendar2' | 'water' | 'calendar-drop' | 'umbrella' | 'heater' | 'roof' | 'foundation' | 'solar-panel' | 'pool' | 'drop' | 'mobile-drop' | 'light' | 'plate' | 'pressure-washer' | 'house' | 'target' | 'title' | 'company' | UIIconTypes;
|
|
6
|
-
export type UIIconTypes = 'sh-pressure' | 'sh-window' | 'sh-roof' | 'sh-lights' | 'sh-gutter' | 'sh-home' | 'sh-house' | 'aa-mowing' | 'aa-fertilization' | 'aa-disease' | 'aa-weed' | 'aa-dressing' | 'aa-pest' | 'filter-size';
|
|
5
|
+
export type IconTypes = 'barcode' | 'battery' | 'billing' | 'book' | 'book-opened' | 'calc' | 'calendar' | 'check' | 'co2' | 'contact' | 'date' | 'default' | 'detector' | 'electricity' | 'goldbars' | 'heart' | 'image' | 'notes' | 'palette' | 'people' | 'price' | 'rating' | 'receipt' | 'registry' | 'sprinkler' | 'tools' | 'wind' | '68' | 'calendar2' | 'water' | 'calendar-drop' | 'umbrella' | 'heater' | 'roof' | 'foundation' | 'solar-panel' | 'pool' | 'drop' | 'mobile-drop' | 'light' | 'plate' | 'pressure-washer' | 'house' | 'target' | 'title' | 'company' | 'wallet' | UIIconTypes;
|
|
6
|
+
export type UIIconTypes = 'sh-pressure' | 'sh-window' | 'sh-roof' | 'sh-lights' | 'sh-gutter' | 'sh-home' | 'sh-house' | 'aa-mowing' | 'aa-fertilization' | 'aa-disease' | 'aa-weed' | 'aa-dressing' | 'aa-pest' | 'filter-size' | string;
|
|
7
7
|
export type ValueTypes = string | string[] | number | boolean;
|
|
8
8
|
export type OptionsTypes = string[] | number[] | null;
|
|
9
9
|
export interface ReportI {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DynamicFormI } from '..';
|
|
2
2
|
export type AlertCategory = 'safeguard' | 'maintain' | 'budget' | 'improve';
|
|
3
3
|
export type AlertTabType = 'details' | 'filter-size' | 'purchase' | 'hire-out';
|
|
4
|
-
export type AlertFieldType = 'alert' | 'search';
|
|
4
|
+
export type AlertFieldType = 'alert' | 'search' | 'purchase-product' | 'hire-info' | 'hire-service' | 'hire-service-cta';
|
|
5
5
|
export interface BackendAlertI extends DynamicFormI {
|
|
6
6
|
category: AlertCategory;
|
|
7
7
|
}
|
|
@@ -925,6 +925,179 @@ export const alertFieldsMock = [
|
|
|
925
925
|
},
|
|
926
926
|
],
|
|
927
927
|
},
|
|
928
|
+
{
|
|
929
|
+
id: faker.database.mongodbObjectId(),
|
|
930
|
+
name: 'Purchase',
|
|
931
|
+
label: '',
|
|
932
|
+
description: faker.lorem.sentence(),
|
|
933
|
+
comments: faker.lorem.sentence(),
|
|
934
|
+
value: '',
|
|
935
|
+
type: 'purchase',
|
|
936
|
+
visible: true,
|
|
937
|
+
children: [
|
|
938
|
+
{
|
|
939
|
+
id: faker.database.mongodbObjectId(),
|
|
940
|
+
name: 'Filtrete™ Allergen Defense Furnace AC Air Filter 1000 MPR',
|
|
941
|
+
label: 'best',
|
|
942
|
+
description: '',
|
|
943
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT50sebT9p-twQB-DdM2tlRo12In8F09QCsmg&s',
|
|
944
|
+
comments: 'Save 20% off Retail',
|
|
945
|
+
value: '$22.99',
|
|
946
|
+
type: 'purchase-product',
|
|
947
|
+
visible: true,
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
id: faker.database.mongodbObjectId(),
|
|
951
|
+
name: 'Filtrete™ Smart Allergen Bacteria & Virus Furnace AC Air Filter MPR 1500',
|
|
952
|
+
label: 'better',
|
|
953
|
+
description: '',
|
|
954
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSbFpjG3kybZDb6psqPIlQSoXgp9OjOR672kg&s',
|
|
955
|
+
comments: 'Save 28% off Retail',
|
|
956
|
+
value: '$16.99',
|
|
957
|
+
type: 'purchase-product',
|
|
958
|
+
visible: true,
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
id: faker.database.mongodbObjectId(),
|
|
962
|
+
name: 'Filtrete™ 700 MPR Dust Pollen and Pet Dander Electrostatic Air Filter',
|
|
963
|
+
label: 'good',
|
|
964
|
+
description: '',
|
|
965
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ7j1KYfPZqPnFmTgyx7b9pp78N6RForQfZFQ&s',
|
|
966
|
+
comments: 'Save 24% off Retail',
|
|
967
|
+
value: '$10.99',
|
|
968
|
+
type: 'purchase-product',
|
|
969
|
+
visible: true,
|
|
970
|
+
},
|
|
971
|
+
],
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
id: faker.database.mongodbObjectId(),
|
|
975
|
+
name: 'Hire out',
|
|
976
|
+
label: '',
|
|
977
|
+
description: faker.lorem.sentence(),
|
|
978
|
+
comments: faker.lorem.sentence(),
|
|
979
|
+
value: faker.image.urlPicsumPhotos(),
|
|
980
|
+
type: 'hire-out',
|
|
981
|
+
visible: true,
|
|
982
|
+
children: [
|
|
983
|
+
{
|
|
984
|
+
id: faker.database.mongodbObjectId(),
|
|
985
|
+
name: '',
|
|
986
|
+
label: '',
|
|
987
|
+
description: '',
|
|
988
|
+
icon: 'wallet',
|
|
989
|
+
comments: '',
|
|
990
|
+
value: 'Average cost for this service range from $100-125 in your area, including filter.',
|
|
991
|
+
type: 'hire-info',
|
|
992
|
+
visible: true,
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
id: faker.database.mongodbObjectId(),
|
|
996
|
+
name: 'Bobs Heating & Cooling',
|
|
997
|
+
label: 'match',
|
|
998
|
+
description: 'Jerry Marks',
|
|
999
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRlUXEpc3FdoRVmQoYvmAttMwG2dzvBz49oGg&s',
|
|
1000
|
+
comments: '512-650-3030',
|
|
1001
|
+
value: 'JerryM@BobsHTC.com',
|
|
1002
|
+
type: 'hire-service',
|
|
1003
|
+
visible: true,
|
|
1004
|
+
children: [
|
|
1005
|
+
{
|
|
1006
|
+
id: faker.database.mongodbObjectId(),
|
|
1007
|
+
name: 'Bobs Heating & Cooling - add service',
|
|
1008
|
+
label: '',
|
|
1009
|
+
description: '',
|
|
1010
|
+
icon: 'plus',
|
|
1011
|
+
comments: '',
|
|
1012
|
+
value: '',
|
|
1013
|
+
type: 'hire-service-cta',
|
|
1014
|
+
visible: true,
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
id: faker.database.mongodbObjectId(),
|
|
1018
|
+
name: 'Bobs Heating & Cooling - schedule service',
|
|
1019
|
+
label: '',
|
|
1020
|
+
description: '',
|
|
1021
|
+
icon: 'calendar',
|
|
1022
|
+
comments: '',
|
|
1023
|
+
value: '',
|
|
1024
|
+
type: 'hire-service-cta',
|
|
1025
|
+
visible: true,
|
|
1026
|
+
},
|
|
1027
|
+
],
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
id: faker.database.mongodbObjectId(),
|
|
1031
|
+
name: 'Sears Home Services',
|
|
1032
|
+
label: 'match',
|
|
1033
|
+
description: 'Mark Jones',
|
|
1034
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTJU3pPD1SFxFnAuaOkoHR36lcVNmoP39USqA&s',
|
|
1035
|
+
comments: '512-354-6584',
|
|
1036
|
+
value: 'MarkJones@searssvc.com',
|
|
1037
|
+
type: 'hire-service',
|
|
1038
|
+
visible: true,
|
|
1039
|
+
children: [
|
|
1040
|
+
{
|
|
1041
|
+
id: faker.database.mongodbObjectId(),
|
|
1042
|
+
name: 'Sears Home Services - add service',
|
|
1043
|
+
label: '',
|
|
1044
|
+
description: '',
|
|
1045
|
+
icon: 'plus',
|
|
1046
|
+
comments: '',
|
|
1047
|
+
value: '',
|
|
1048
|
+
type: 'hire-service-cta',
|
|
1049
|
+
visible: true,
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
id: faker.database.mongodbObjectId(),
|
|
1053
|
+
name: 'Sears Home Services - schedule service',
|
|
1054
|
+
label: '',
|
|
1055
|
+
description: '',
|
|
1056
|
+
icon: 'calendar',
|
|
1057
|
+
comments: '',
|
|
1058
|
+
value: '',
|
|
1059
|
+
type: 'hire-service-cta',
|
|
1060
|
+
visible: true,
|
|
1061
|
+
},
|
|
1062
|
+
],
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
id: faker.database.mongodbObjectId(),
|
|
1066
|
+
name: 'Airco Mechanical',
|
|
1067
|
+
label: 'match',
|
|
1068
|
+
description: 'Chris Rodriquez',
|
|
1069
|
+
icon: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWZ_hk6-7mpzQG2ZSQTu0XV2FiMF4AYkT4Wg&s',
|
|
1070
|
+
comments: '512-888-5454',
|
|
1071
|
+
value: 'ChrisR@airco.com',
|
|
1072
|
+
type: 'hire-service',
|
|
1073
|
+
visible: true,
|
|
1074
|
+
children: [
|
|
1075
|
+
{
|
|
1076
|
+
id: faker.database.mongodbObjectId(),
|
|
1077
|
+
name: 'Airco Mechanical - add service',
|
|
1078
|
+
label: '',
|
|
1079
|
+
description: '',
|
|
1080
|
+
icon: 'plus',
|
|
1081
|
+
comments: '',
|
|
1082
|
+
value: '',
|
|
1083
|
+
type: 'hire-service-cta',
|
|
1084
|
+
visible: true,
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
id: faker.database.mongodbObjectId(),
|
|
1088
|
+
name: 'Airco Mechanical - schedule service',
|
|
1089
|
+
label: '',
|
|
1090
|
+
description: '',
|
|
1091
|
+
icon: 'calendar',
|
|
1092
|
+
comments: '',
|
|
1093
|
+
value: '',
|
|
1094
|
+
type: 'hire-service-cta',
|
|
1095
|
+
visible: true,
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
},
|
|
1099
|
+
],
|
|
1100
|
+
},
|
|
928
1101
|
],
|
|
929
1102
|
},
|
|
930
1103
|
];
|