@homefile/components-v2 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/assets/images/book.svg +25 -0
  2. package/dist/assets/images/index.d.ts +2 -1
  3. package/dist/assets/images/index.js +2 -1
  4. package/dist/assets/images/index.ts +2 -0
  5. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.js +1 -1
  6. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  7. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.d.ts +1 -1
  8. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.js +6 -4
  9. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.d.ts +1 -1
  10. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.js +7 -3
  11. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.d.ts +2 -0
  12. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.js +5 -0
  13. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.js +1 -1
  14. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  15. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.d.ts +2 -0
  16. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.js +11 -0
  17. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  18. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.js +1 -1
  19. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  20. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.d.ts +2 -0
  21. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.js +11 -0
  22. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  23. package/dist/components/forms/readOnly/fields/homeItem/index.d.ts +2 -0
  24. package/dist/components/forms/readOnly/fields/homeItem/index.js +2 -0
  25. package/dist/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  26. package/dist/components/forms/readOnly/fields/index.d.ts +1 -0
  27. package/dist/components/forms/readOnly/fields/index.js +1 -0
  28. package/dist/components/homeItems/ViewingHomeItemPanel.d.ts +1 -1
  29. package/dist/components/homeItems/ViewingHomeItemPanel.js +2 -2
  30. package/dist/helpers/forms/dynamicForm.helper.js +2 -1
  31. package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +4 -3
  32. package/dist/interfaces/forms/readOnly/ReadOnlyGrid.interface.d.ts +2 -1
  33. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.d.ts +4 -0
  34. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.js +1 -0
  35. package/dist/interfaces/forms/readOnly/homeItem/index.d.ts +1 -0
  36. package/dist/interfaces/forms/readOnly/homeItem/index.js +1 -0
  37. package/dist/interfaces/homeItems/ViewingHomeItemPanel.interface.d.ts +1 -0
  38. package/dist/interfaces/inboxTile/MessageCard.interface.d.ts +2 -2
  39. package/dist/mocks/forms/dynamicForm.mock.js +60 -0
  40. package/dist/mocks/inbox/messages.js +0 -2
  41. package/dist/stories/assets/Illustrations.stories.js +2 -2
  42. package/dist/stories/homeItems/ViewingHomeItem.stories.js +1 -0
  43. package/package.json +1 -1
  44. package/src/assets/images/book.svg +25 -0
  45. package/src/assets/images/index.ts +2 -0
  46. package/src/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  47. package/src/components/forms/readOnly/ReadOnlyDynamicForm.tsx +8 -2
  48. package/src/components/forms/readOnly/fields/ReadOnlyGrid.tsx +32 -3
  49. package/src/components/forms/readOnly/fields/ReadOnlyNotes.tsx +16 -0
  50. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  51. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  52. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  53. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  54. package/src/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  55. package/src/components/forms/readOnly/fields/index.ts +1 -0
  56. package/src/components/homeItems/ViewingHomeItemPanel.tsx +2 -1
  57. package/src/helpers/forms/dynamicForm.helper.ts +2 -0
  58. package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +9 -1
  59. package/src/interfaces/forms/readOnly/ReadOnlyGrid.interface.ts +3 -1
  60. package/src/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.ts +6 -0
  61. package/src/interfaces/forms/readOnly/homeItem/index.ts +1 -0
  62. package/src/interfaces/homeItems/ViewingHomeItemPanel.interface.ts +1 -0
  63. package/src/interfaces/inboxTile/MessageCard.interface.ts +2 -2
  64. package/src/mocks/forms/dynamicForm.mock.ts +60 -0
  65. package/src/mocks/inbox/messages.ts +0 -2
  66. package/src/stories/assets/Illustrations.stories.tsx +2 -0
  67. package/src/stories/homeItems/ViewingHomeItem.stories.tsx +1 -0
@@ -0,0 +1,25 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="36.229" height="25.49" viewBox="0 0 36.229 25.49">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="Rectangle_24874" data-name="Rectangle 24874" width="36.229" height="25.49" transform="translate(0 0)" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <g id="Group_20984" data-name="Group 20984" transform="translate(0 0)">
8
+ <g id="Group_20983" data-name="Group 20983" transform="translate(0 0)" clip-path="url(#clip-path)">
9
+ <path id="Path_15109" data-name="Path 15109" d="M23.19,0V23.3A2.195,2.195,0,0,0,21,21.1H7.4V0Z" transform="translate(-5.076 0)" fill="#d2edef"/>
10
+ <path id="Path_15110" data-name="Path 15110" d="M59.866,21.1a2.194,2.194,0,0,0-2.191,2.2V0H73.461V21.1Z" transform="translate(-39.561 0)" fill="#d2edef"/>
11
+ <path id="Path_15111" data-name="Path 15111" d="M15.919,24.116H2.324V4.392H0V26.311H15.919A2.192,2.192,0,0,0,18.114,28.5V26.311a2.195,2.195,0,0,0-2.195-2.2" transform="translate(0 -3.013)" fill="#e24c5d"/>
12
+ <path id="Path_15112" data-name="Path 15112" d="M73.461,4.393V24.117H59.866a2.194,2.194,0,0,0-2.191,2.2V28.5a2.191,2.191,0,0,0,2.191-2.192H75.789V4.393Z" transform="translate(-39.561 -3.013)" fill="#cd4160"/>
13
+ <rect id="Rectangle_24864" data-name="Rectangle 24864" width="5.916" height="0.942" transform="translate(7.209 2.445)" fill="#40566b"/>
14
+ <rect id="Rectangle_24865" data-name="Rectangle 24865" width="10.4" height="0.942" transform="translate(4.965 7.581)" fill="#40566b"/>
15
+ <rect id="Rectangle_24866" data-name="Rectangle 24866" width="10.4" height="0.942" transform="translate(4.965 10.636)" fill="#40566b"/>
16
+ <rect id="Rectangle_24867" data-name="Rectangle 24867" width="10.4" height="0.942" transform="translate(4.965 13.689)" fill="#40566b"/>
17
+ <rect id="Rectangle_24868" data-name="Rectangle 24868" width="10.4" height="0.942" transform="translate(4.965 16.744)" fill="#40566b"/>
18
+ <rect id="Rectangle_24869" data-name="Rectangle 24869" width="10.4" height="0.942" transform="translate(20.807 7.581)" fill="#40566b"/>
19
+ <rect id="Rectangle_24870" data-name="Rectangle 24870" width="10.4" height="0.942" transform="translate(20.807 4.4)" fill="#40566b"/>
20
+ <rect id="Rectangle_24871" data-name="Rectangle 24871" width="10.4" height="0.942" transform="translate(20.807 10.636)" fill="#40566b"/>
21
+ <rect id="Rectangle_24872" data-name="Rectangle 24872" width="10.4" height="0.942" transform="translate(20.807 13.689)" fill="#40566b"/>
22
+ <rect id="Rectangle_24873" data-name="Rectangle 24873" width="10.4" height="0.942" transform="translate(20.807 16.744)" fill="#40566b"/>
23
+ </g>
24
+ </g>
25
+ </svg>
@@ -12,6 +12,7 @@ import Billing from './billing.svg';
12
12
  import BillingAddress from './billing-address.svg';
13
13
  import BlueFolder from './blue-folder.svg';
14
14
  import BlueFolderShared from './blue-folder-shared.svg';
15
+ import BookOpened from './book.svg';
15
16
  import Box from './box.svg';
16
17
  import Building from './building.svg';
17
18
  import Calc from './calc.svg';
@@ -157,7 +158,7 @@ import WizardDetailed from './wizard-detailed.svg';
157
158
  import WizardQuick from './wizard-quick.svg';
158
159
  import YellowFolder from './yellow-folder.svg';
159
160
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
160
- export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, 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, };
161
+ 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, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, 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, };
161
162
  export * from './alerts';
162
163
  export * from './animations';
163
164
  export * from './appliances';
@@ -12,6 +12,7 @@ import Billing from './billing.svg';
12
12
  import BillingAddress from './billing-address.svg';
13
13
  import BlueFolder from './blue-folder.svg';
14
14
  import BlueFolderShared from './blue-folder-shared.svg';
15
+ import BookOpened from './book.svg';
15
16
  import Box from './box.svg';
16
17
  import Building from './building.svg';
17
18
  import Calc from './calc.svg';
@@ -157,7 +158,7 @@ import WizardDetailed from './wizard-detailed.svg';
157
158
  import WizardQuick from './wizard-quick.svg';
158
159
  import YellowFolder from './yellow-folder.svg';
159
160
  import YellowFolderUnshared from './yellow-folder-unshared.svg';
160
- export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, 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, };
161
+ 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, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, 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, };
161
162
  export * from './alerts';
162
163
  export * from './animations';
163
164
  export * from './appliances';
@@ -12,6 +12,7 @@ import Billing from './billing.svg'
12
12
  import BillingAddress from './billing-address.svg'
13
13
  import BlueFolder from './blue-folder.svg'
14
14
  import BlueFolderShared from './blue-folder-shared.svg'
15
+ import BookOpened from './book.svg'
15
16
  import Box from './box.svg'
16
17
  import Building from './building.svg'
17
18
  import Calc from './calc.svg'
@@ -173,6 +174,7 @@ export {
173
174
  BillingAddress,
174
175
  BlueFolder,
175
176
  BlueFolderShared,
177
+ BookOpened,
176
178
  Box,
177
179
  Building,
178
180
  Calc,
@@ -14,5 +14,5 @@ import { Button } from '@chakra-ui/react';
14
14
  export const TileCta = (_a) => {
15
15
  var { callback } = _a, props = __rest(_a, ["callback"]);
16
16
  const { type, value } = props;
17
- return (_jsx(Button, { onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign({}, props)), variant: type === 'primary-cta' ? 'tertiaryFooter' : 'secondaryFooter', fontSize: "sm", maxW: "full", children: value }));
17
+ return (_jsx(Button, { onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign({}, props)), variant: type === 'primary-cta' ? 'primary' : 'secondary', fontSize: "sm", textTransform: "capitalize", px: "none", bg: type === 'primary-cta' ? '' : 'neutral.white', children: value }));
18
18
  };
@@ -6,9 +6,11 @@ export const TileCta = ({ callback, ...props }: TileCtaI) => {
6
6
  return (
7
7
  <Button
8
8
  onClick={() => callback?.({ ...props })}
9
- variant={type === 'primary-cta' ? 'tertiaryFooter' : 'secondaryFooter'}
9
+ variant={type === 'primary-cta' ? 'primary' : 'secondary'}
10
10
  fontSize="sm"
11
- maxW="full"
11
+ textTransform="capitalize"
12
+ px="none"
13
+ bg={type === 'primary-cta' ? '' : 'neutral.white'}
12
14
  >
13
15
  {value}
14
16
  </Button>
@@ -1,2 +1,2 @@
1
1
  import { ReadOnlyDynamicFormI } from '../../../interfaces';
2
- export declare const ReadOnlyDynamicForm: ({ form: fields, onEdit, }: ReadOnlyDynamicFormI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ReadOnlyDynamicForm: ({ form: fields, onClick, onEdit, }: ReadOnlyDynamicFormI) => import("react/jsx-runtime").JSX.Element;
@@ -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 { Box } from '@chakra-ui/react';
4
- import { ReadOnlyAppliances, ReadOnlyDate, ReadOnlyGrid, ReadOnlyGroup, ReadOnlyInput, ReadOnlyRating, ReadOnlyTextArea, } from '../..';
4
+ import { ReadOnlyAppliances, ReadOnlyDate, ReadOnlyGrid, ReadOnlyGroup, ReadOnlyInput, ReadOnlyNotes, ReadOnlyRating, ReadOnlyTextArea, } from '../..';
5
5
  import { fieldIcons } from '../../../helpers';
6
- export const ReadOnlyDynamicForm = ({ form: fields, onEdit = () => { }, }) => {
7
- return (_jsx(Box, { bg: "lightBlue.1", children: fields === null || fields === void 0 ? void 0 : fields.map((field) => {
6
+ export const ReadOnlyDynamicForm = ({ form: fields, onClick, onEdit = () => { }, }) => {
7
+ return (_jsx(Box, { bg: "lightBlue.1", overflow: "scroll", children: fields === null || fields === void 0 ? void 0 : fields.map((field) => {
8
8
  const { children = [], icon, id, name, type, value } = field;
9
9
  const baseProps = {
10
10
  key: `${id}-${name}-${value}-${type}`,
@@ -29,11 +29,13 @@ export const ReadOnlyDynamicForm = ({ form: fields, onEdit = () => { }, }) => {
29
29
  case 'textarea':
30
30
  return _jsx(ReadOnlyTextArea, Object.assign({}, baseProps));
31
31
  case 'grid':
32
- return _jsx(ReadOnlyGrid, { children: children }, id);
32
+ return (_jsx(ReadOnlyGrid, { children: children, onClick: onClick }, id));
33
33
  case 'group':
34
34
  return _jsx(ReadOnlyGroup, { children: children }, id);
35
35
  case 'appliances':
36
36
  return _createElement(ReadOnlyAppliances, Object.assign({}, field, { key: id, onEdit: onEdit }));
37
+ case 'notes':
38
+ return _createElement(ReadOnlyNotes, Object.assign({}, field, { key: id }));
37
39
  default:
38
40
  return null;
39
41
  }
@@ -1,2 +1,2 @@
1
1
  import { ReadOnlyGridI } from '../../../../interfaces';
2
- export declare const ReadOnlyGrid: ({ children, ...props }: ReadOnlyGridI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ReadOnlyGrid: ({ children, onClick, ...props }: ReadOnlyGridI) => import("react/jsx-runtime").JSX.Element;
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { Flex } from '@chakra-ui/react';
14
- import { ReadOnlyDate, ReadOnlyInput } from '../../..';
14
+ import { ReadOnlyDate, ReadOnlyGuidelines, ReadOnlyInput, ReadOnlyItemRelated, } from '../../..';
15
15
  import { fieldIcons } from '../../../../helpers';
16
16
  export const ReadOnlyGrid = (_a) => {
17
- var { children } = _a, props = __rest(_a, ["children"]);
18
- return (_jsx(Flex, Object.assign({ align: "stretch", gap: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", p: "base" }, props, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type, icon }) => {
17
+ var { children, onClick } = _a, props = __rest(_a, ["children", "onClick"]);
18
+ return (_jsx(Flex, Object.assign({ align: "stretch", gap: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", p: "base" }, props, { children: children === null || children === void 0 ? void 0 : children.map(({ children, id, name, value, type, icon }) => {
19
19
  const baseProps = {
20
20
  key: `${id}-${name}-${value}-${type}`,
21
21
  id,
@@ -34,6 +34,10 @@ export const ReadOnlyGrid = (_a) => {
34
34
  return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" })));
35
35
  case 'date':
36
36
  return _jsx(ReadOnlyDate, Object.assign({}, baseProps, { name: name, p: "0" }));
37
+ case 'guidelines':
38
+ return (_jsx(ReadOnlyGuidelines, { name: name, children: children, onClick: onClick }, id));
39
+ case 'item-related':
40
+ return (_jsx(ReadOnlyItemRelated, { name: name, children: children, onClick: onClick }, id));
37
41
  default:
38
42
  return null;
39
43
  }
@@ -0,0 +1,2 @@
1
+ import { ReportI } from '../../../../interfaces';
2
+ export declare const ReadOnlyNotes: ({ name, value, }: Pick<ReportI, "name" | "value">) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Stack, Text } from '@chakra-ui/react';
3
+ export const ReadOnlyNotes = ({ name, value, }) => {
4
+ return (_jsxs(Stack, { p: "base", spacing: "base", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(Text, { fontFamily: "secondary", children: value })] }));
5
+ };
@@ -5,7 +5,7 @@ import { colors } from '../../../../../theme/colors';
5
5
  export const ReadOnlyAppliances = ({ description, id, name, children, onEdit, value, }) => {
6
6
  const rating = children === null || children === void 0 ? void 0 : children.find(({ type }) => type === 'rating');
7
7
  const images = children === null || children === void 0 ? void 0 : children.find(({ type }) => type === 'images');
8
- return (_jsxs(Stack, { spacing: "base", p: "base", children: [_jsxs(Flex, { justify: "space-between", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(IconButton, { "aria-label": "Edit appliance", variant: "ghost", w: "fit-content", icon: _jsx(Edit, { size: 18, stroke: colors.blue[3] }), onClick: () => onEdit(id) })] }), _jsxs(Flex, { gap: "base", children: [_jsx(ReadOnlyHomeItemImages, Object.assign({}, images)), _jsxs(Stack, { spacing: "4", flex: "1", children: [_jsx(ReadOnlyHomeItemRating, Object.assign({}, rating)), _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "22px", fontWeight: "semibold", children: value }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", children: description })] }), _jsx(Box, { flex: "1", borderBottom: "1px dashed", borderColor: "lightBlue.6", h: "1px" }), _jsx(Box, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type }) => {
8
+ return (_jsxs(Stack, { spacing: "base", p: "base", bg: "neutral.white", mt: "2px", children: [_jsxs(Flex, { justify: "space-between", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(IconButton, { "aria-label": "Edit appliance", variant: "ghost", w: "fit-content", icon: _jsx(Edit, { size: 18, stroke: colors.blue[3] }), onClick: () => onEdit(id) })] }), _jsxs(Flex, { gap: "base", children: [_jsx(ReadOnlyHomeItemImages, Object.assign({}, images)), _jsxs(Stack, { spacing: "4", flex: "1", children: [_jsx(ReadOnlyHomeItemRating, Object.assign({}, rating)), _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "22px", fontWeight: "semibold", children: value }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", children: description })] }), _jsx(Box, { flex: "1", borderBottom: "1px dashed", borderColor: "lightBlue.6", h: "1px" }), _jsx(Box, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type }) => {
9
9
  const baseProps = {
10
10
  key: `${id}-${name}-${value}-${type}`,
11
11
  id,
@@ -19,7 +19,7 @@ export const ReadOnlyAppliances = ({
19
19
  const rating = children?.find(({ type }) => type === 'rating')
20
20
  const images = children?.find(({ type }) => type === 'images')
21
21
  return (
22
- <Stack spacing="base" p="base">
22
+ <Stack spacing="base" p="base" bg="neutral.white" mt="2px">
23
23
  <Flex justify="space-between">
24
24
  <Text fontSize="xs" textTransform="uppercase">
25
25
  {name}
@@ -0,0 +1,2 @@
1
+ import { ReadOnlyGuidelinesI } from '../../../../../interfaces';
2
+ export declare const ReadOnlyGuidelines: ({ name, children, onClick, }: ReadOnlyGuidelinesI) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Text, Stack, Grid } from '@chakra-ui/react';
3
+ import { HiddenField } from '../../../..';
4
+ import { fieldIcons } from '../../../../../helpers';
5
+ export const ReadOnlyGuidelines = ({ name, children, onClick, }) => {
6
+ return (_jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(Grid, { templateColumns: "repeat(2, minmax(80px, 1fr))", gap: "base", children: children === null || children === void 0 ? void 0 : children.map((child) => {
7
+ const { id, icon, value } = child;
8
+ const btnIcon = icon ? fieldIcons[icon] : '';
9
+ return (_jsx(HiddenField, { id: id, icon: btnIcon, name: value, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(id) }, id));
10
+ }) })] }));
11
+ };
@@ -0,0 +1,33 @@
1
+ import { Text, Stack, Grid } from '@chakra-ui/react'
2
+ import { HiddenField } from '@/components'
3
+ import { ReadOnlyGuidelinesI } from '@/interfaces'
4
+ import { fieldIcons } from '@/helpers'
5
+
6
+ export const ReadOnlyGuidelines = ({
7
+ name,
8
+ children,
9
+ onClick,
10
+ }: ReadOnlyGuidelinesI) => {
11
+ return (
12
+ <Stack spacing="base">
13
+ <Text fontSize="xs" textTransform="uppercase">
14
+ {name}
15
+ </Text>
16
+ <Grid templateColumns="repeat(2, minmax(80px, 1fr))" gap="base">
17
+ {children?.map((child) => {
18
+ const { id, icon, value } = child
19
+ const btnIcon = icon ? fieldIcons[icon] : ''
20
+ return (
21
+ <HiddenField
22
+ key={id}
23
+ id={id}
24
+ icon={btnIcon}
25
+ name={value as string}
26
+ onClick={() => onClick?.(id)}
27
+ />
28
+ )
29
+ })}
30
+ </Grid>
31
+ </Stack>
32
+ )
33
+ }
@@ -6,5 +6,5 @@ export const ReadOnlyHomeItemImages = (props) => {
6
6
  const [mainImage, setMainImage] = useState(images === null || images === void 0 ? void 0 : images[0]);
7
7
  if (!images)
8
8
  return null;
9
- return (_jsxs(Stack, { spacing: "base", children: [_jsx(Image, { src: mainImage, alt: "home item", boxSize: "174px" }), _jsx(SimpleGrid, { columns: 4, spacing: "base", children: images === null || images === void 0 ? void 0 : images.map((image) => (_jsx(Box, { as: "button", backgroundImage: image, backgroundSize: "cover", backgroundPosition: "center", boxSize: "34px", onClick: () => setMainImage(image) }))) })] }));
9
+ return (_jsxs(Stack, { spacing: "base", children: [_jsx(Image, { src: mainImage, alt: "home item", boxSize: "174px" }), _jsx(SimpleGrid, { columns: 4, spacing: "base", children: images === null || images === void 0 ? void 0 : images.map((image) => (_jsx(Box, { as: "button", backgroundImage: image, backgroundSize: "cover", backgroundPosition: "center", boxSize: "34px", onClick: () => setMainImage(image) }, image))) })] }));
10
10
  };
@@ -14,6 +14,7 @@ export const ReadOnlyHomeItemImages = (props: Partial<ReportI>) => {
14
14
  <SimpleGrid columns={4} spacing="base">
15
15
  {images?.map((image) => (
16
16
  <Box
17
+ key={image}
17
18
  as="button"
18
19
  backgroundImage={image}
19
20
  backgroundSize="cover"
@@ -0,0 +1,2 @@
1
+ import { ReadOnlyGuidelinesI } from '../../../../../interfaces';
2
+ export declare const ReadOnlyItemRelated: ({ name, children, onClick, }: ReadOnlyGuidelinesI) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Text, Stack, Grid, Box } from '@chakra-ui/react';
3
+ import { HiddenField } from '../../../..';
4
+ import { fieldIcons } from '../../../../../helpers';
5
+ export const ReadOnlyItemRelated = ({ name, children, onClick, }) => {
6
+ return (_jsx(Box, { borderLeft: "1px solid", borderColor: "lightBlue.6", pl: "4", marginInlineStart: "auto", children: _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(Grid, { templateColumns: "repeat(2, minmax(80px, 1fr))", gap: "base", children: children === null || children === void 0 ? void 0 : children.map((child) => {
7
+ const { id, icon, value } = child;
8
+ const btnIcon = icon ? fieldIcons[icon] : '';
9
+ return (_jsx(HiddenField, { id: id, icon: btnIcon, name: value, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(id) }, id));
10
+ }) })] }) }));
11
+ };
@@ -0,0 +1,40 @@
1
+ import { Text, Stack, Grid, Box } from '@chakra-ui/react'
2
+ import { HiddenField } from '@/components'
3
+ import { ReadOnlyGuidelinesI } from '@/interfaces'
4
+ import { fieldIcons } from '@/helpers'
5
+
6
+ export const ReadOnlyItemRelated = ({
7
+ name,
8
+ children,
9
+ onClick,
10
+ }: ReadOnlyGuidelinesI) => {
11
+ return (
12
+ <Box
13
+ borderLeft="1px solid"
14
+ borderColor="lightBlue.6"
15
+ pl="4"
16
+ marginInlineStart="auto"
17
+ >
18
+ <Stack spacing="base">
19
+ <Text fontSize="xs" textTransform="uppercase">
20
+ {name}
21
+ </Text>
22
+ <Grid templateColumns="repeat(2, minmax(80px, 1fr))" gap="base">
23
+ {children?.map((child) => {
24
+ const { id, icon, value } = child
25
+ const btnIcon = icon ? fieldIcons[icon] : ''
26
+ return (
27
+ <HiddenField
28
+ key={id}
29
+ id={id}
30
+ icon={btnIcon}
31
+ name={value as string}
32
+ onClick={() => onClick?.(id)}
33
+ />
34
+ )
35
+ })}
36
+ </Grid>
37
+ </Stack>
38
+ </Box>
39
+ )
40
+ }
@@ -1,4 +1,6 @@
1
1
  export * from './ReadOnlyAppliances';
2
+ export * from './ReadOnlyGuidelines';
2
3
  export * from './ReadOnlyHomeItemImages';
3
4
  export * from './ReadOnlyHomeItemRating';
4
5
  export * from './ReadOnlyHomeItemText';
6
+ export * from './ReadOnlyItemRelated';
@@ -1,4 +1,6 @@
1
1
  export * from './ReadOnlyAppliances';
2
+ export * from './ReadOnlyGuidelines';
2
3
  export * from './ReadOnlyHomeItemImages';
3
4
  export * from './ReadOnlyHomeItemRating';
4
5
  export * from './ReadOnlyHomeItemText';
6
+ export * from './ReadOnlyItemRelated';
@@ -1,4 +1,6 @@
1
1
  export * from './ReadOnlyAppliances'
2
+ export * from './ReadOnlyGuidelines'
2
3
  export * from './ReadOnlyHomeItemImages'
3
4
  export * from './ReadOnlyHomeItemRating'
4
5
  export * from './ReadOnlyHomeItemText'
6
+ export * from './ReadOnlyItemRelated'
@@ -4,6 +4,7 @@ export * from './ReadOnlyImage';
4
4
  export * from './ReadOnlyGrid';
5
5
  export * from './ReadOnlyGroup';
6
6
  export * from './ReadOnlyInput';
7
+ export * from './ReadOnlyNotes';
7
8
  export * from './ReadOnlyRating';
8
9
  export * from './ReadOnlyTextArea';
9
10
  export * from './ReadOnlyWrapper';
@@ -4,6 +4,7 @@ export * from './ReadOnlyImage';
4
4
  export * from './ReadOnlyGrid';
5
5
  export * from './ReadOnlyGroup';
6
6
  export * from './ReadOnlyInput';
7
+ export * from './ReadOnlyNotes';
7
8
  export * from './ReadOnlyRating';
8
9
  export * from './ReadOnlyTextArea';
9
10
  export * from './ReadOnlyWrapper';
@@ -1,2 +1,2 @@
1
1
  import { ViewingHomeItemPanelI } from '../../interfaces';
2
- export declare const ViewingHomeItemPanel: ({ form, onClose, onEdit, }: ViewingHomeItemPanelI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ViewingHomeItemPanel: ({ form, onClick, onClose, onEdit, }: ViewingHomeItemPanelI) => import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ import { t } from 'i18next';
3
3
  import { Box, Divider, DrawerContent, DrawerHeader } from '@chakra-ui/react';
4
4
  import { PanelHeader, ReadOnlyDynamicForm, TabsHeader } from '..';
5
5
  import { Painting } from '../../assets/images';
6
- export const ViewingHomeItemPanel = ({ form, onClose, onEdit, }) => {
6
+ export const ViewingHomeItemPanel = ({ form, onClick, onClose, onEdit, }) => {
7
7
  const tabs = [
8
8
  {
9
9
  label: t('contacts.details'),
@@ -20,5 +20,5 @@ export const ViewingHomeItemPanel = ({ form, onClose, onEdit, }) => {
20
20
  component: _jsx("div", {}),
21
21
  },
22
22
  ];
23
- return (_jsxs(DrawerContent, { bg: "lightBlue.1", children: [_jsxs(DrawerHeader, { p: "0", children: [_jsx(PanelHeader, { handleCloseButton: onClose, title: t('homeItems.title'), icon: Painting }), _jsx(Divider, {}), _jsx(Box, { pt: "1", bg: "neutral.white", children: _jsx(TabsHeader, { tabList: tabs, rightTabList: rightTabs }) })] }), _jsx(ReadOnlyDynamicForm, { form: form, onEdit: onEdit })] }));
23
+ return (_jsxs(DrawerContent, { bg: "lightBlue.1", children: [_jsxs(DrawerHeader, { p: "0", children: [_jsx(PanelHeader, { handleCloseButton: onClose, title: t('homeItems.title'), icon: Painting }), _jsx(Divider, {}), _jsx(Box, { pt: "1", bg: "neutral.white", children: _jsx(TabsHeader, { tabList: tabs, rightTabList: rightTabs }) })] }), _jsx(ReadOnlyDynamicForm, { form: form, onClick: onClick, onEdit: onEdit })] }));
24
24
  };
@@ -1,8 +1,9 @@
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, Company, Pressure, WindowCleaning, RoofCleaning, HolidayLights, GutterCleaning, HomeCleaning, HouseWashing, PressureWasher, } 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, Company, Pressure, WindowCleaning, RoofCleaning, HolidayLights, GutterCleaning, HomeCleaning, HouseWashing, PressureWasher, BookOpened, } from '../../assets/images';
2
2
  export const fieldIcons = {
3
3
  barcode: Barcode,
4
4
  billing: Billing,
5
5
  book: Book,
6
+ 'book-opened': BookOpened,
6
7
  calc: Calc,
7
8
  check: CheckPen,
8
9
  contact: Contacts,
@@ -1,8 +1,8 @@
1
1
  import { FolderFileI, MenuItemI, PartnerFooterI, TileCtaI } from '../..';
2
- type KindTypes = 'checkbox' | 'checkbox-group' | 'currency' | 'date' | 'email' | 'file' | 'grid' | 'group' | 'hidden' | 'number' | 'radio' | 'rating' | 'select' | 'string' | 'switch' | 'telephone' | 'text' | 'textarea' | 'default' | UIKindTypes | HomeItemTypes;
2
+ type KindTypes = 'checkbox' | 'checkbox-group' | 'currency' | 'date' | 'email' | 'file' | 'grid' | 'group' | 'hidden' | 'notes' | 'number' | 'radio' | 'rating' | 'select' | 'string' | 'switch' | 'telephone' | 'text' | 'textarea' | 'default' | UIKindTypes | HomeItemTypes;
3
3
  type UIKindTypes = 'tile-body' | 'tile-body-logo' | 'tile-body-header' | 'tile-body-section' | 'tile-body-section-grid' | 'tile-form' | 'tile-body-action' | 'vertical-icon' | 'primary-cta' | 'secondary-cta';
4
- type HomeItemTypes = 'appliances' | 'images';
5
- export type IconTypes = 'barcode' | 'battery' | 'billing' | 'book' | '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;
4
+ 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
6
  export type UIIconTypes = 'sh-pressure' | 'sh-window' | 'sh-roof' | 'sh-lights' | 'sh-gutter' | 'sh-home' | 'sh-house';
7
7
  export type ValueTypes = string | string[] | number | boolean;
8
8
  export type OptionsTypes = string[] | number[] | null;
@@ -37,5 +37,6 @@ export interface DynamicFormProxyI {
37
37
  }
38
38
  export interface ReadOnlyDynamicFormI extends Pick<DynamicFormI, 'form'> {
39
39
  onEdit?: (id: string) => void;
40
+ onClick?: (id: string) => void;
40
41
  }
41
42
  export {};
@@ -1,4 +1,5 @@
1
1
  import { ReportI } from '../..';
2
2
  import { FlexProps } from '@chakra-ui/react';
3
- export interface ReadOnlyGridI extends Pick<ReportI, 'children'>, Omit<FlexProps, 'children'> {
3
+ export interface ReadOnlyGridI extends Pick<ReportI, 'children'>, Omit<FlexProps, 'children' | 'onClick'> {
4
+ onClick?: (id: string) => void;
4
5
  }
@@ -0,0 +1,4 @@
1
+ import { ReportI } from '../../..';
2
+ export interface ReadOnlyGuidelinesI extends Pick<ReportI, 'children' | 'name'> {
3
+ onClick?: (id: string) => void;
4
+ }
@@ -1 +1,2 @@
1
1
  export * from './ReadOnlyAppliances.interface';
2
+ export * from './ReadOnlyGuidelines.interface';
@@ -1 +1,2 @@
1
1
  export * from './ReadOnlyAppliances.interface';
2
+ export * from './ReadOnlyGuidelines.interface';
@@ -3,4 +3,5 @@ export interface ViewingHomeItemPanelI {
3
3
  form: ReportI[];
4
4
  onClose: () => void;
5
5
  onEdit: (id: string) => void;
6
+ onClick?: (id: string) => void;
6
7
  }
@@ -3,11 +3,11 @@ export interface InboxMessageI {
3
3
  _id: string;
4
4
  currentUser?: Partial<UserProfileI>;
5
5
  chatReplies?: InboxMessageI[];
6
- description: string;
6
+ description?: string;
7
7
  date: Date;
8
8
  from: string;
9
9
  isNew?: boolean;
10
- subject: string;
10
+ subject?: string;
11
11
  }
12
12
  export interface MessageCardI {
13
13
  message: InboxMessageI;
@@ -637,4 +637,64 @@ export const viewingHomeItemMock = [
637
637
  },
638
638
  ],
639
639
  },
640
+ {
641
+ id: faker.database.mongodbObjectId(),
642
+ value: '',
643
+ type: 'grid',
644
+ visible: true,
645
+ children: [
646
+ {
647
+ id: faker.database.mongodbObjectId(),
648
+ name: 'Care & Guidelines',
649
+ value: '',
650
+ type: 'guidelines',
651
+ visible: true,
652
+ children: [
653
+ {
654
+ id: faker.database.mongodbObjectId(),
655
+ icon: 'umbrella',
656
+ value: 'warranty',
657
+ type: 'item-icon-btn',
658
+ visible: true,
659
+ link: 'www.kitchenaid.com',
660
+ },
661
+ {
662
+ id: faker.database.mongodbObjectId(),
663
+ icon: 'book-opened',
664
+ value: 'manual',
665
+ type: 'item-icon-btn',
666
+ visible: true,
667
+ link: 'www.kitchenaid.com',
668
+ },
669
+ ],
670
+ },
671
+ {
672
+ id: faker.database.mongodbObjectId(),
673
+ name: 'Related',
674
+ value: '',
675
+ type: 'item-related',
676
+ visible: true,
677
+ children: [
678
+ {
679
+ id: faker.database.mongodbObjectId(),
680
+ icon: 'drop',
681
+ value: 'filter',
682
+ type: 'item-icon-btn',
683
+ visible: true,
684
+ link: 'www.kitchenaid.com',
685
+ },
686
+ ],
687
+ },
688
+ ],
689
+ },
690
+ {
691
+ id: faker.database.mongodbObjectId(),
692
+ name: 'Notes',
693
+ description: '',
694
+ comments: faker.lorem.sentence(),
695
+ value: faker.lorem.paragraphs(),
696
+ type: 'notes',
697
+ visible: true,
698
+ options: [],
699
+ },
640
700
  ];
@@ -36,7 +36,6 @@ export const messagesMock = [
36
36
  currentUser: {
37
37
  userName: currentUserName,
38
38
  },
39
- description: faker.lorem.paragraphs(),
40
39
  date: faker.date.recent(),
41
40
  from: faker.person.fullName(),
42
41
  isNew: true,
@@ -80,7 +79,6 @@ export const messagesMock = [
80
79
  date: faker.date.recent(),
81
80
  from: faker.person.fullName(),
82
81
  isNew: false,
83
- subject: faker.lorem.words(),
84
82
  },
85
83
  {
86
84
  _id: faker.database.mongodbObjectId(),