@homefile/components-v2 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/assets/images/book.svg +25 -0
  2. package/dist/assets/images/company2.svg +29 -0
  3. package/dist/assets/images/index.d.ts +3 -1
  4. package/dist/assets/images/index.js +3 -1
  5. package/dist/assets/images/index.ts +4 -0
  6. package/dist/components/forms/dynamicForm/DynamicForm.js +3 -1
  7. package/dist/components/forms/dynamicForm/fields/CheckboxAgreement.d.ts +2 -0
  8. package/dist/components/forms/dynamicForm/fields/CheckboxAgreement.js +14 -0
  9. package/dist/components/forms/dynamicForm/fields/index.d.ts +1 -0
  10. package/dist/components/forms/dynamicForm/fields/index.js +1 -0
  11. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.js +1 -1
  12. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  13. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.d.ts +1 -1
  14. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.js +6 -4
  15. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.d.ts +1 -1
  16. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.js +7 -3
  17. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.d.ts +2 -0
  18. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.js +5 -0
  19. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.js +1 -1
  20. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  21. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.d.ts +2 -0
  22. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.js +11 -0
  23. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  24. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.js +1 -1
  25. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  26. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.d.ts +2 -0
  27. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.js +11 -0
  28. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  29. package/dist/components/forms/readOnly/fields/homeItem/index.d.ts +2 -0
  30. package/dist/components/forms/readOnly/fields/homeItem/index.js +2 -0
  31. package/dist/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  32. package/dist/components/forms/readOnly/fields/index.d.ts +1 -0
  33. package/dist/components/forms/readOnly/fields/index.js +1 -0
  34. package/dist/components/homeItems/ViewingHomeItemPanel.d.ts +1 -1
  35. package/dist/components/homeItems/ViewingHomeItemPanel.js +2 -2
  36. package/dist/components/inboxTile/panel/MessageCard.js +6 -2
  37. package/dist/helpers/forms/dynamicForm.helper.js +3 -2
  38. package/dist/hooks/inbox/useMessagePanel.js +4 -1
  39. package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +4 -3
  40. package/dist/interfaces/forms/readOnly/ReadOnlyGrid.interface.d.ts +2 -1
  41. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.d.ts +4 -0
  42. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.js +1 -0
  43. package/dist/interfaces/forms/readOnly/homeItem/index.d.ts +1 -0
  44. package/dist/interfaces/forms/readOnly/homeItem/index.js +1 -0
  45. package/dist/interfaces/homeItems/ViewingHomeItemPanel.interface.d.ts +1 -0
  46. package/dist/interfaces/inboxTile/MessageCard.interface.d.ts +2 -2
  47. package/dist/mocks/forms/dynamicForm.mock.js +88 -10
  48. package/dist/mocks/inbox/messages.js +2 -3
  49. package/dist/stories/assets/Illustrations.stories.js +2 -2
  50. package/dist/stories/homeItems/ViewingHomeItem.stories.js +1 -0
  51. package/package.json +1 -1
  52. package/src/assets/images/book.svg +25 -0
  53. package/src/assets/images/company2.svg +29 -0
  54. package/src/assets/images/index.ts +4 -0
  55. package/src/components/forms/dynamicForm/DynamicForm.tsx +11 -0
  56. package/src/components/forms/dynamicForm/fields/CheckboxAgreement.tsx +90 -0
  57. package/src/components/forms/dynamicForm/fields/index.ts +1 -0
  58. package/src/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  59. package/src/components/forms/readOnly/ReadOnlyDynamicForm.tsx +8 -2
  60. package/src/components/forms/readOnly/fields/ReadOnlyGrid.tsx +32 -3
  61. package/src/components/forms/readOnly/fields/ReadOnlyNotes.tsx +16 -0
  62. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  63. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  64. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  65. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  66. package/src/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  67. package/src/components/forms/readOnly/fields/index.ts +1 -0
  68. package/src/components/homeItems/ViewingHomeItemPanel.tsx +2 -1
  69. package/src/components/inboxTile/panel/MessageCard.tsx +25 -6
  70. package/src/helpers/forms/dynamicForm.helper.ts +4 -2
  71. package/src/hooks/inbox/useMessagePanel.ts +5 -1
  72. package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +10 -1
  73. package/src/interfaces/forms/readOnly/ReadOnlyGrid.interface.ts +3 -1
  74. package/src/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.ts +6 -0
  75. package/src/interfaces/forms/readOnly/homeItem/index.ts +1 -0
  76. package/src/interfaces/homeItems/ViewingHomeItemPanel.interface.ts +1 -0
  77. package/src/interfaces/inboxTile/MessageCard.interface.ts +2 -2
  78. package/src/mocks/forms/dynamicForm.mock.ts +89 -11
  79. package/src/mocks/inbox/messages.ts +2 -3
  80. package/src/stories/assets/Illustrations.stories.tsx +4 -0
  81. package/src/stories/homeItems/ViewingHomeItem.stories.tsx +1 -0
@@ -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-agreement' | '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;
@@ -1,6 +1,34 @@
1
1
  import { Shine } from '../../assets/images';
2
2
  import { faker } from '@faker-js/faker';
3
3
  export const formFieldsMock = [
4
+ {
5
+ id: faker.database.mongodbObjectId(),
6
+ name: 'Select to have Homefile find & add information on your item.',
7
+ description: 'Homefile has an extensive data base of products, but we will also search the web for the most relevant information around products. This includes details like warranty Information, manuals, price, energy info, product ratings, etc. If the item is not in our database, it will populate as soon as we add the info.',
8
+ value: false,
9
+ type: 'checkbox-agreement',
10
+ visible: true,
11
+ },
12
+ {
13
+ id: faker.database.mongodbObjectId(),
14
+ name: 'Serial #',
15
+ description: faker.lorem.sentence(),
16
+ comments: faker.lorem.sentence(),
17
+ value: '',
18
+ type: 'text',
19
+ visible: true,
20
+ icon: 'barcode',
21
+ },
22
+ {
23
+ id: faker.database.mongodbObjectId(),
24
+ name: 'Brand',
25
+ description: faker.lorem.sentence(),
26
+ comments: faker.lorem.sentence(),
27
+ value: '',
28
+ type: 'text',
29
+ visible: true,
30
+ icon: 'company',
31
+ },
4
32
  {
5
33
  id: faker.database.mongodbObjectId(),
6
34
  name: 'Services',
@@ -67,16 +95,6 @@ export const formFieldsMock = [
67
95
  },
68
96
  ],
69
97
  },
70
- {
71
- id: faker.database.mongodbObjectId(),
72
- name: 'Serial #',
73
- description: faker.lorem.sentence(),
74
- comments: faker.lorem.sentence(),
75
- value: '',
76
- type: 'default',
77
- visible: false,
78
- icon: 'barcode',
79
- },
80
98
  {
81
99
  id: faker.database.mongodbObjectId(),
82
100
  name: 'Receipt',
@@ -637,4 +655,64 @@ export const viewingHomeItemMock = [
637
655
  },
638
656
  ],
639
657
  },
658
+ {
659
+ id: faker.database.mongodbObjectId(),
660
+ value: '',
661
+ type: 'grid',
662
+ visible: true,
663
+ children: [
664
+ {
665
+ id: faker.database.mongodbObjectId(),
666
+ name: 'Care & Guidelines',
667
+ value: '',
668
+ type: 'guidelines',
669
+ visible: true,
670
+ children: [
671
+ {
672
+ id: faker.database.mongodbObjectId(),
673
+ icon: 'umbrella',
674
+ value: 'warranty',
675
+ type: 'item-icon-btn',
676
+ visible: true,
677
+ link: 'www.kitchenaid.com',
678
+ },
679
+ {
680
+ id: faker.database.mongodbObjectId(),
681
+ icon: 'book-opened',
682
+ value: 'manual',
683
+ type: 'item-icon-btn',
684
+ visible: true,
685
+ link: 'www.kitchenaid.com',
686
+ },
687
+ ],
688
+ },
689
+ {
690
+ id: faker.database.mongodbObjectId(),
691
+ name: 'Related',
692
+ value: '',
693
+ type: 'item-related',
694
+ visible: true,
695
+ children: [
696
+ {
697
+ id: faker.database.mongodbObjectId(),
698
+ icon: 'drop',
699
+ value: 'filter',
700
+ type: 'item-icon-btn',
701
+ visible: true,
702
+ link: 'www.kitchenaid.com',
703
+ },
704
+ ],
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ id: faker.database.mongodbObjectId(),
710
+ name: 'Notes',
711
+ description: '',
712
+ comments: faker.lorem.sentence(),
713
+ value: faker.lorem.paragraphs(),
714
+ type: 'notes',
715
+ visible: true,
716
+ options: [],
717
+ },
640
718
  ];
@@ -26,7 +26,7 @@ export const messagesMock = [
26
26
  subject: faker.lorem.words(),
27
27
  },
28
28
  ],
29
- description: faker.lorem.paragraphs(),
29
+ description: `<p>${faker.lorem.paragraphs()}</p>`,
30
30
  date: faker.date.recent(),
31
31
  from: currentUserName,
32
32
  isNew: false,
@@ -36,8 +36,8 @@ export const messagesMock = [
36
36
  currentUser: {
37
37
  userName: currentUserName,
38
38
  },
39
- description: faker.lorem.paragraphs(),
40
39
  date: faker.date.recent(),
40
+ description: `<span>${faker.lorem.paragraphs()}</span>`,
41
41
  from: faker.person.fullName(),
42
42
  isNew: true,
43
43
  subject: faker.lorem.words(),
@@ -80,7 +80,6 @@ export const messagesMock = [
80
80
  date: faker.date.recent(),
81
81
  from: faker.person.fullName(),
82
82
  isNew: false,
83
- subject: faker.lorem.words(),
84
83
  },
85
84
  {
86
85
  _id: faker.database.mongodbObjectId(),
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Center, Grid, Image, Text } from '@chakra-ui/react';
3
- import { AlertDelete, AlertDeletePurple, Arrow, Balustrades, Barcode, Batery, Bathroom, Battery, Battery2, Bedding, Bedroom, Billing, BillingAddress, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, Building, Calc, Calendar, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Cookware, Countertops, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, Flooring, FormSent, Foundation, Furniture, Garage, GearPencil, GearTime, GenericField, GlassWater, GoldenBars, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Hardware, Heart, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, PressureWasher, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Speaker, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, } from '../../assets/images';
3
+ import { AlertDelete, AlertDeletePurple, Arrow, Balustrades, Barcode, Batery, Bathroom, Battery, Battery2, Bedding, Bedroom, Billing, BillingAddress, BlueFolder, BlueFolderShared, Book, Box as BoxIcon, Building, Calc, Calendar, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, Cookware, Countertops, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Doors, Drop, DropCalendar, Electricity, Electronics, Entryway, Equipment, Exclamation, Exterior, Face, Feedback, FileUploading, Finance, Fire, Flag, Flooring, FormSent, Foundation, Furniture, Garage, GearPencil, GearTime, GenericField, GlassWater, GoldenBars, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Hardware, Heart, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, LargeAppliances, Laundry, Light, Lighting, LivingRoom, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Mattress, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Notes, Office, Paint, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plants, Plate, Play, Plus, Pool, Pool2, PressureWasher, Porch, Price, Profile, ProgressReport, Proposal, Rating, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, Registry, RelationshipHome, ResendPassword, Rocket, Roof, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SmallAppliances, SolarPanel, Speaker, Sprinkler, Steps, Structure, Structures, Subscription, Supplies, Table, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Tile, Tools, Tools2, Trash, Utensils, VideoIcon, VideoPlay, VioletFolder, WallDecor, Warning, Warranty, Water, WellDone, WholeHome, Wind, Window, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, BookOpened, Company2, } from '../../assets/images';
4
4
  import { CookTop, Dishwasher, Dryer, Freezer, Fridge, Microwave, Oven, Range, Washer, } from '../../assets/images/appliances';
5
5
  export default {
6
6
  title: 'Assets/Illustrations',
7
7
  };
8
8
  export const Illustrations = () => {
9
- return (_jsxs(Grid, { maxW: "600px", templateColumns: "repeat(auto-fill, minmax(75px, 1fr))", p: "base", gap: "8", children: [_jsx(IconWrapper, { icon: CookTop, name: "CookTop" }), _jsx(IconWrapper, { icon: Dishwasher, name: "Dishwasher" }), _jsx(IconWrapper, { icon: Dryer, name: "Dryer" }), _jsx(IconWrapper, { icon: Freezer, name: "Freezer" }), _jsx(IconWrapper, { icon: Fridge, name: "Fridge" }), _jsx(IconWrapper, { icon: Microwave, name: "Microwave" }), _jsx(IconWrapper, { icon: Oven, name: "Oven" }), _jsx(IconWrapper, { icon: Range, name: "Range" }), _jsx(IconWrapper, { icon: Washer, name: "Washer" }), _jsx(IconWrapper, { icon: Barcode, name: "Barcode" }), _jsx(IconWrapper, { icon: Book, name: "Book" }), _jsx(IconWrapper, { icon: Calendar, name: "Calendar" }), _jsx(IconWrapper, { icon: GoldenBars, name: "GoldenBars" }), _jsx(IconWrapper, { icon: Heart, name: "Heart" }), _jsx(IconWrapper, { icon: Notes, name: "Notes" }), _jsx(IconWrapper, { icon: Rating, name: "Rating" }), _jsx(IconWrapper, { icon: Registry, name: "Registry" }), _jsx(IconWrapper, { icon: Tools2, name: "Tools2" }), _jsx(IconWrapper, { icon: Balustrades, name: "Balustrades" }), _jsx(IconWrapper, { icon: Bedding, name: "Bedding" }), _jsx(IconWrapper, { icon: Cookware, name: "Cookware" }), _jsx(IconWrapper, { icon: Countertops, name: "Countertops" }), _jsx(IconWrapper, { icon: Doors, name: "Doors" }), _jsx(IconWrapper, { icon: Electronics, name: "Electronics" }), _jsx(IconWrapper, { icon: Equipment, name: "Equipment" }), _jsx(IconWrapper, { icon: Exterior, name: "Exterior" }), _jsx(IconWrapper, { icon: Fire, name: "Fire" }), _jsx(IconWrapper, { icon: Flooring, name: "Flooring" }), _jsx(IconWrapper, { icon: Furniture, name: "Furniture" }), _jsx(IconWrapper, { icon: Hardware, name: "Hardware" }), _jsx(IconWrapper, { icon: IA, name: "IA" }), _jsx(IconWrapper, { icon: LargeAppliances, name: "LargeAppliances" }), _jsx(IconWrapper, { icon: Lighting, name: "Lighting" }), _jsx(IconWrapper, { icon: Mattress, name: "Mattress" }), _jsx(IconWrapper, { icon: Paint, name: "Paint" }), _jsx(IconWrapper, { icon: Plants, name: "Plants" }), _jsx(IconWrapper, { icon: Porch, name: "Porch" }), _jsx(IconWrapper, { icon: Roof, name: "Roof" }), _jsx(IconWrapper, { icon: SmallAppliances, name: "SmallAppliances" }), _jsx(IconWrapper, { icon: Steps, name: "Steps" }), _jsx(IconWrapper, { icon: Structures, name: "Structures" }), _jsx(IconWrapper, { icon: Supplies, name: "Supplies" }), _jsx(IconWrapper, { icon: Table, name: "Table" }), _jsx(IconWrapper, { icon: Temperature, name: "Temperature" }), _jsx(IconWrapper, { icon: Tile, name: "Tile" }), _jsx(IconWrapper, { icon: Tools, name: "Tools" }), _jsx(IconWrapper, { icon: Utensils, name: "Utensils" }), _jsx(IconWrapper, { icon: WallDecor, name: "WallDecor" }), _jsx(IconWrapper, { icon: Water, name: "Water" }), _jsx(IconWrapper, { icon: Window, name: "Window" }), _jsx(IconWrapper, { icon: AlertDelete, name: "AlertDelete" }), _jsx(IconWrapper, { icon: AlertDeletePurple, name: "AlertDeletePurple" }), _jsx(IconWrapper, { icon: Arrow, name: "Arrow" }), _jsx(IconWrapper, { icon: Batery, name: "Batery" }), _jsx(IconWrapper, { icon: Bathroom, name: "Bathroom" }), _jsx(IconWrapper, { icon: Battery, name: "Battery" }), _jsx(IconWrapper, { icon: Battery2, name: "Battery2" }), _jsx(IconWrapper, { icon: Bedroom, name: "Bedroom" }), _jsx(IconWrapper, { icon: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _jsx(IconWrapper, { icon: Building, name: "Building" }), _jsx(IconWrapper, { icon: Calc, name: "Calc" }), _jsx(IconWrapper, { icon: Calendar2, name: "Calendar2" }), _jsx(IconWrapper, { icon: Catalog, name: "Catalog" }), _jsx(IconWrapper, { icon: Check, name: "Check" }), _jsx(IconWrapper, { icon: CheckInCircle, name: "CheckInCircle" }), _jsx(IconWrapper, { icon: CheckPen, name: "CheckPen" }), _jsx(IconWrapper, { icon: Chemistry, name: "Chemistry" }), _jsx(IconWrapper, { icon: CircleFace, name: "CircleFace" }), _jsx(IconWrapper, { icon: Cleaning, name: "Cleaning" }), _jsx(IconWrapper, { icon: Closet, name: "Closet" }), _jsx(IconWrapper, { icon: Co2, name: "Co2" }), _jsx(IconWrapper, { icon: Company, name: "Company" }), _jsx(IconWrapper, { icon: ComputerReport, name: "ComputerReport" }), _jsx(IconWrapper, { icon: Confirmation, name: "Confirmation" }), _jsx(IconWrapper, { icon: Construction, name: "Construction" }), _jsx(IconWrapper, { icon: Contacts, name: "Contacts" }), _jsx(IconWrapper, { icon: Contacts2, name: "Contacts2" }), _jsx(IconWrapper, { icon: Contributor, name: "Contributor" }), _jsx(IconWrapper, { icon: CreditCard, name: "CreditCard" }), _jsx(IconWrapper, { icon: Detector, name: "Detector" }), _jsx(IconWrapper, { icon: Diamond, name: "Diamond" }), _jsx(IconWrapper, { icon: DiningRoom, name: "DiningRoom" }), _jsx(IconWrapper, { icon: DocIcon, name: "DocIcon" }), _jsx(IconWrapper, { icon: Document, name: "Document" }), _jsx(IconWrapper, { icon: Document2, name: "Document2" }), _jsx(IconWrapper, { icon: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _jsx(IconWrapper, { icon: Exclamation, name: "Exclamation" }), _jsx(IconWrapper, { icon: Face, name: "Face" }), _jsx(IconWrapper, { icon: Feedback, name: "Feedback" }), _jsx(IconWrapper, { icon: FileUploading, name: "FileUploading" }), _jsx(IconWrapper, { icon: Finance, name: "Finance" }), _jsx(IconWrapper, { icon: Flag, name: "Flag" }), _jsx(IconWrapper, { icon: FormSent, name: "FormSent" }), _jsx(IconWrapper, { icon: Foundation, name: "Foundation" }), _jsx(IconWrapper, { icon: Garage, name: "Garage" }), _jsx(IconWrapper, { icon: GearPencil, name: "GearPencil" }), _jsx(IconWrapper, { icon: GearTime, name: "GearTime" }), _jsx(IconWrapper, { icon: GenericField, name: "GenericField" }), _jsx(IconWrapper, { icon: GlassWater, name: "GlassWater" }), _jsx(IconWrapper, { icon: GreenFolder, name: "GreenFolder" }), _jsx(IconWrapper, { icon: Group, name: "Group" }), _jsx(IconWrapper, { icon: Groups, name: "Groups" }), _jsx(IconWrapper, { icon: GuestBedroom, name: "GuestBedroom" }), _jsx(IconWrapper, { icon: Hallway, name: "Hallway" }), _jsx(IconWrapper, { icon: HandPencil, name: "HandPencil" }), _jsx(IconWrapper, { icon: Heater, name: "Heater" }), _jsx(IconWrapper, { icon: Help, name: "Help" }), _jsx(IconWrapper, { icon: HomeAddress, name: "HomeAddress" }), _jsx(IconWrapper, { icon: Homeowner, name: "Homeowner" }), _jsx(IconWrapper, { icon: House, name: "House" }), _jsx(IconWrapper, { icon: HouseHands, name: "HouseHands" }), _jsx(IconWrapper, { icon: ImageDefault, name: "ImageDefault" }), _jsx(IconWrapper, { icon: ImgIcon, name: "ImgIcon" }), _jsx(IconWrapper, { icon: Inbox, name: "Inbox" }), _jsx(IconWrapper, { icon: Insect, name: "Insect" }), _jsx(IconWrapper, { icon: Kitchen, name: "Kitchen" }), _jsx(IconWrapper, { icon: Laundry, name: "Laundry" }), _jsx(IconWrapper, { icon: Light, name: "Light" }), _jsx(IconWrapper, { icon: LivingRoom, name: "LivingRoom" }), _jsx(IconWrapper, { icon: LogoSmall, name: "LogoSmall" }), _jsx(IconWrapper, { icon: MagnifyingGlassReport, name: "MagnifyingGlassReport" }), _jsx(IconWrapper, { icon: Manager, name: "Manager" }), _jsx(IconWrapper, { icon: MasterBedroom, name: "MasterBedroom" }), _jsx(IconWrapper, { icon: Member, name: "Member" }), _jsx(IconWrapper, { icon: Message, name: "Message" }), _jsx(IconWrapper, { icon: MobileDrop, name: "MobileDrop" }), _jsx(IconWrapper, { icon: Money, name: "Money" }), _jsx(IconWrapper, { icon: Mudroom, name: "Mudroom" }), _jsx(IconWrapper, { icon: NeedHelp, name: "NeedHelp" }), _jsx(IconWrapper, { icon: Office, name: "Office" }), _jsx(IconWrapper, { icon: Painting, name: "Painting" }), _jsx(IconWrapper, { icon: PartnerGeneric, name: "PartnerGeneric" }), _jsx(IconWrapper, { icon: Patio, name: "Patio" }), _jsx(IconWrapper, { icon: PdfIcon, name: "PdfIcon" }), _jsx(IconWrapper, { icon: PersonMail, name: "PersonMail" }), _jsx(IconWrapper, { icon: Plate, name: "Plate" }), _jsx(IconWrapper, { icon: Play, name: "Play" }), _jsx(IconWrapper, { icon: Plus, name: "Plus" }), _jsx(IconWrapper, { icon: Pool, name: "Pool" }), _jsx(IconWrapper, { icon: Pool2, name: "Pool2" }), _jsx(IconWrapper, { icon: PressureWasher, name: "PressureWasher" }), _jsx(IconWrapper, { icon: Price, name: "Price" }), _jsx(IconWrapper, { icon: Profile, name: "Profile" }), _jsx(IconWrapper, { icon: ProgressReport, name: "ProgressReport" }), _jsx(IconWrapper, { icon: Proposal, name: "Proposal" }), _jsx(IconWrapper, { icon: RealEstate, name: "RealEstate" }), _jsx(IconWrapper, { icon: Receipt, name: "Receipt" }), _jsx(IconWrapper, { icon: ReceiptBg, name: "ReceiptBg" }), _jsx(IconWrapper, { icon: ReceiptHouse, name: "ReceiptHouse" }), _jsx(IconWrapper, { icon: Receipts, name: "Receipts" }), _jsx(IconWrapper, { icon: Recipient, name: "Recipient" }), _jsx(IconWrapper, { icon: Records, name: "Records" }), _jsx(IconWrapper, { icon: Register, name: "Register" }), _jsx(IconWrapper, { icon: RelationshipHome, name: "RelationshipHome" }), _jsx(IconWrapper, { icon: ResendPassword, name: "ResendPassword" }), _jsx(IconWrapper, { icon: Rocket, name: "Rocket" }), _jsx(IconWrapper, { icon: Roof2, name: "Roof2" }), _jsx(IconWrapper, { icon: Security, name: "Security" }), _jsx(IconWrapper, { icon: Send, name: "Send" }), _jsx(IconWrapper, { icon: ShareHome, name: "ShareHome" }), _jsx(IconWrapper, { icon: ShareWith, name: "ShareWith" }), _jsx(IconWrapper, { icon: SixtyEight, name: "SixtyEight" }), _jsx(IconWrapper, { icon: SMS, name: "SMS" }), _jsx(IconWrapper, { icon: Social, name: "Social" }), _jsx(IconWrapper, { icon: SolarPanel, name: "SolarPanel" }), _jsx(IconWrapper, { icon: Speaker, name: "Speaker" }), _jsx(IconWrapper, { icon: Sprinkler, name: "Sprinkler" }), _jsx(IconWrapper, { icon: Structure, name: "Structure" }), _jsx(IconWrapper, { icon: Subscription, name: "Subscription" }), _jsx(IconWrapper, { icon: Target, name: "Target" }), _jsx(IconWrapper, { icon: Theatre, name: "Theatre" }), _jsx(IconWrapper, { icon: Thumbnail, name: "Thumbnail" }), _jsx(IconWrapper, { icon: ThumbnailSmall, name: "ThumbnailSmall" }), _jsx(IconWrapper, { icon: ThumbUp, name: "ThumbUp" }), _jsx(IconWrapper, { icon: Trash, name: "Trash" }), _jsx(IconWrapper, { icon: VideoIcon, name: "VideoIcon" }), _jsx(IconWrapper, { icon: VideoPlay, name: "VideoPlay" }), _jsx(IconWrapper, { icon: VioletFolder, name: "VioletFolder" }), _jsx(IconWrapper, { icon: Warning, name: "Warning" }), _jsx(IconWrapper, { icon: Warranty, name: "Warranty" }), _jsx(IconWrapper, { icon: WellDone, name: "WellDone" }), _jsx(IconWrapper, { icon: WholeHome, name: "WholeHome" }), _jsx(IconWrapper, { icon: Wind, name: "Wind" }), _jsx(IconWrapper, { icon: Wizard, name: "Wizard" }), _jsx(IconWrapper, { icon: WizardDetailed, name: "WizardDetailed" }), _jsx(IconWrapper, { icon: WizardQuick, name: "WizardQuick" }), _jsx(IconWrapper, { icon: YellowFolder, name: "YellowFolder" }), _jsx(IconWrapper, { icon: YellowFolderUnshared, name: "YellowFolderUnshared" })] }));
9
+ return (_jsxs(Grid, { maxW: "600px", templateColumns: "repeat(auto-fill, minmax(75px, 1fr))", p: "base", gap: "8", children: [_jsx(IconWrapper, { icon: CookTop, name: "CookTop" }), _jsx(IconWrapper, { icon: Dishwasher, name: "Dishwasher" }), _jsx(IconWrapper, { icon: Dryer, name: "Dryer" }), _jsx(IconWrapper, { icon: Freezer, name: "Freezer" }), _jsx(IconWrapper, { icon: Fridge, name: "Fridge" }), _jsx(IconWrapper, { icon: Microwave, name: "Microwave" }), _jsx(IconWrapper, { icon: Oven, name: "Oven" }), _jsx(IconWrapper, { icon: Range, name: "Range" }), _jsx(IconWrapper, { icon: Washer, name: "Washer" }), _jsx(IconWrapper, { icon: Barcode, name: "Barcode" }), _jsx(IconWrapper, { icon: Book, name: "Book" }), _jsx(IconWrapper, { icon: Calendar, name: "Calendar" }), _jsx(IconWrapper, { icon: GoldenBars, name: "GoldenBars" }), _jsx(IconWrapper, { icon: Heart, name: "Heart" }), _jsx(IconWrapper, { icon: Notes, name: "Notes" }), _jsx(IconWrapper, { icon: Rating, name: "Rating" }), _jsx(IconWrapper, { icon: Registry, name: "Registry" }), _jsx(IconWrapper, { icon: Tools2, name: "Tools2" }), _jsx(IconWrapper, { icon: Balustrades, name: "Balustrades" }), _jsx(IconWrapper, { icon: Bedding, name: "Bedding" }), _jsx(IconWrapper, { icon: Cookware, name: "Cookware" }), _jsx(IconWrapper, { icon: Countertops, name: "Countertops" }), _jsx(IconWrapper, { icon: Doors, name: "Doors" }), _jsx(IconWrapper, { icon: Electronics, name: "Electronics" }), _jsx(IconWrapper, { icon: Equipment, name: "Equipment" }), _jsx(IconWrapper, { icon: Exterior, name: "Exterior" }), _jsx(IconWrapper, { icon: Fire, name: "Fire" }), _jsx(IconWrapper, { icon: Flooring, name: "Flooring" }), _jsx(IconWrapper, { icon: Furniture, name: "Furniture" }), _jsx(IconWrapper, { icon: Hardware, name: "Hardware" }), _jsx(IconWrapper, { icon: IA, name: "IA" }), _jsx(IconWrapper, { icon: LargeAppliances, name: "LargeAppliances" }), _jsx(IconWrapper, { icon: Lighting, name: "Lighting" }), _jsx(IconWrapper, { icon: Mattress, name: "Mattress" }), _jsx(IconWrapper, { icon: Paint, name: "Paint" }), _jsx(IconWrapper, { icon: Plants, name: "Plants" }), _jsx(IconWrapper, { icon: Porch, name: "Porch" }), _jsx(IconWrapper, { icon: Roof, name: "Roof" }), _jsx(IconWrapper, { icon: SmallAppliances, name: "SmallAppliances" }), _jsx(IconWrapper, { icon: Steps, name: "Steps" }), _jsx(IconWrapper, { icon: Structures, name: "Structures" }), _jsx(IconWrapper, { icon: Supplies, name: "Supplies" }), _jsx(IconWrapper, { icon: Table, name: "Table" }), _jsx(IconWrapper, { icon: Temperature, name: "Temperature" }), _jsx(IconWrapper, { icon: Tile, name: "Tile" }), _jsx(IconWrapper, { icon: Tools, name: "Tools" }), _jsx(IconWrapper, { icon: Utensils, name: "Utensils" }), _jsx(IconWrapper, { icon: WallDecor, name: "WallDecor" }), _jsx(IconWrapper, { icon: Water, name: "Water" }), _jsx(IconWrapper, { icon: Window, name: "Window" }), _jsx(IconWrapper, { icon: AlertDelete, name: "AlertDelete" }), _jsx(IconWrapper, { icon: AlertDeletePurple, name: "AlertDeletePurple" }), _jsx(IconWrapper, { icon: Arrow, name: "Arrow" }), _jsx(IconWrapper, { icon: Batery, name: "Batery" }), _jsx(IconWrapper, { icon: Bathroom, name: "Bathroom" }), _jsx(IconWrapper, { icon: Battery, name: "Battery" }), _jsx(IconWrapper, { icon: Battery2, name: "Battery2" }), _jsx(IconWrapper, { icon: Bedroom, name: "Bedroom" }), _jsx(IconWrapper, { icon: Billing, name: "Billing" }), _jsx(IconWrapper, { icon: BillingAddress, name: "BillingAddress" }), _jsx(IconWrapper, { icon: BlueFolder, name: "BlueFolder" }), _jsx(IconWrapper, { icon: BlueFolderShared, name: "BlueFolderShared" }), _jsx(IconWrapper, { icon: BookOpened, name: "BookOpened" }), _jsx(IconWrapper, { icon: BoxIcon, name: "Box" }), _jsx(IconWrapper, { icon: Building, name: "Building" }), _jsx(IconWrapper, { icon: Calc, name: "Calc" }), _jsx(IconWrapper, { icon: Calendar2, name: "Calendar2" }), _jsx(IconWrapper, { icon: Catalog, name: "Catalog" }), _jsx(IconWrapper, { icon: Check, name: "Check" }), _jsx(IconWrapper, { icon: CheckInCircle, name: "CheckInCircle" }), _jsx(IconWrapper, { icon: CheckPen, name: "CheckPen" }), _jsx(IconWrapper, { icon: Chemistry, name: "Chemistry" }), _jsx(IconWrapper, { icon: CircleFace, name: "CircleFace" }), _jsx(IconWrapper, { icon: Cleaning, name: "Cleaning" }), _jsx(IconWrapper, { icon: Closet, name: "Closet" }), _jsx(IconWrapper, { icon: Co2, name: "Co2" }), _jsx(IconWrapper, { icon: Company, name: "Company" }), _jsx(IconWrapper, { icon: Company2, name: "Company2" }), _jsx(IconWrapper, { icon: ComputerReport, name: "ComputerReport" }), _jsx(IconWrapper, { icon: Confirmation, name: "Confirmation" }), _jsx(IconWrapper, { icon: Construction, name: "Construction" }), _jsx(IconWrapper, { icon: Contacts, name: "Contacts" }), _jsx(IconWrapper, { icon: Contacts2, name: "Contacts2" }), _jsx(IconWrapper, { icon: Contributor, name: "Contributor" }), _jsx(IconWrapper, { icon: CreditCard, name: "CreditCard" }), _jsx(IconWrapper, { icon: Detector, name: "Detector" }), _jsx(IconWrapper, { icon: Diamond, name: "Diamond" }), _jsx(IconWrapper, { icon: DiningRoom, name: "DiningRoom" }), _jsx(IconWrapper, { icon: DocIcon, name: "DocIcon" }), _jsx(IconWrapper, { icon: Document, name: "Document" }), _jsx(IconWrapper, { icon: Document2, name: "Document2" }), _jsx(IconWrapper, { icon: Drop, name: "Drop" }), _jsx(IconWrapper, { icon: DropCalendar, name: "DropCalendar" }), _jsx(IconWrapper, { icon: Electricity, name: "Electricity" }), _jsx(IconWrapper, { icon: Entryway, name: "Entryway" }), _jsx(IconWrapper, { icon: Exclamation, name: "Exclamation" }), _jsx(IconWrapper, { icon: Face, name: "Face" }), _jsx(IconWrapper, { icon: Feedback, name: "Feedback" }), _jsx(IconWrapper, { icon: FileUploading, name: "FileUploading" }), _jsx(IconWrapper, { icon: Finance, name: "Finance" }), _jsx(IconWrapper, { icon: Flag, name: "Flag" }), _jsx(IconWrapper, { icon: FormSent, name: "FormSent" }), _jsx(IconWrapper, { icon: Foundation, name: "Foundation" }), _jsx(IconWrapper, { icon: Garage, name: "Garage" }), _jsx(IconWrapper, { icon: GearPencil, name: "GearPencil" }), _jsx(IconWrapper, { icon: GearTime, name: "GearTime" }), _jsx(IconWrapper, { icon: GenericField, name: "GenericField" }), _jsx(IconWrapper, { icon: GlassWater, name: "GlassWater" }), _jsx(IconWrapper, { icon: GreenFolder, name: "GreenFolder" }), _jsx(IconWrapper, { icon: Group, name: "Group" }), _jsx(IconWrapper, { icon: Groups, name: "Groups" }), _jsx(IconWrapper, { icon: GuestBedroom, name: "GuestBedroom" }), _jsx(IconWrapper, { icon: Hallway, name: "Hallway" }), _jsx(IconWrapper, { icon: HandPencil, name: "HandPencil" }), _jsx(IconWrapper, { icon: Heater, name: "Heater" }), _jsx(IconWrapper, { icon: Help, name: "Help" }), _jsx(IconWrapper, { icon: HomeAddress, name: "HomeAddress" }), _jsx(IconWrapper, { icon: Homeowner, name: "Homeowner" }), _jsx(IconWrapper, { icon: House, name: "House" }), _jsx(IconWrapper, { icon: HouseHands, name: "HouseHands" }), _jsx(IconWrapper, { icon: ImageDefault, name: "ImageDefault" }), _jsx(IconWrapper, { icon: ImgIcon, name: "ImgIcon" }), _jsx(IconWrapper, { icon: Inbox, name: "Inbox" }), _jsx(IconWrapper, { icon: Insect, name: "Insect" }), _jsx(IconWrapper, { icon: Kitchen, name: "Kitchen" }), _jsx(IconWrapper, { icon: Laundry, name: "Laundry" }), _jsx(IconWrapper, { icon: Light, name: "Light" }), _jsx(IconWrapper, { icon: LivingRoom, name: "LivingRoom" }), _jsx(IconWrapper, { icon: LogoSmall, name: "LogoSmall" }), _jsx(IconWrapper, { icon: MagnifyingGlassReport, name: "MagnifyingGlassReport" }), _jsx(IconWrapper, { icon: Manager, name: "Manager" }), _jsx(IconWrapper, { icon: MasterBedroom, name: "MasterBedroom" }), _jsx(IconWrapper, { icon: Member, name: "Member" }), _jsx(IconWrapper, { icon: Message, name: "Message" }), _jsx(IconWrapper, { icon: MobileDrop, name: "MobileDrop" }), _jsx(IconWrapper, { icon: Money, name: "Money" }), _jsx(IconWrapper, { icon: Mudroom, name: "Mudroom" }), _jsx(IconWrapper, { icon: NeedHelp, name: "NeedHelp" }), _jsx(IconWrapper, { icon: Office, name: "Office" }), _jsx(IconWrapper, { icon: Painting, name: "Painting" }), _jsx(IconWrapper, { icon: PartnerGeneric, name: "PartnerGeneric" }), _jsx(IconWrapper, { icon: Patio, name: "Patio" }), _jsx(IconWrapper, { icon: PdfIcon, name: "PdfIcon" }), _jsx(IconWrapper, { icon: PersonMail, name: "PersonMail" }), _jsx(IconWrapper, { icon: Plate, name: "Plate" }), _jsx(IconWrapper, { icon: Play, name: "Play" }), _jsx(IconWrapper, { icon: Plus, name: "Plus" }), _jsx(IconWrapper, { icon: Pool, name: "Pool" }), _jsx(IconWrapper, { icon: Pool2, name: "Pool2" }), _jsx(IconWrapper, { icon: PressureWasher, name: "PressureWasher" }), _jsx(IconWrapper, { icon: Price, name: "Price" }), _jsx(IconWrapper, { icon: Profile, name: "Profile" }), _jsx(IconWrapper, { icon: ProgressReport, name: "ProgressReport" }), _jsx(IconWrapper, { icon: Proposal, name: "Proposal" }), _jsx(IconWrapper, { icon: RealEstate, name: "RealEstate" }), _jsx(IconWrapper, { icon: Receipt, name: "Receipt" }), _jsx(IconWrapper, { icon: ReceiptBg, name: "ReceiptBg" }), _jsx(IconWrapper, { icon: ReceiptHouse, name: "ReceiptHouse" }), _jsx(IconWrapper, { icon: Receipts, name: "Receipts" }), _jsx(IconWrapper, { icon: Recipient, name: "Recipient" }), _jsx(IconWrapper, { icon: Records, name: "Records" }), _jsx(IconWrapper, { icon: Register, name: "Register" }), _jsx(IconWrapper, { icon: RelationshipHome, name: "RelationshipHome" }), _jsx(IconWrapper, { icon: ResendPassword, name: "ResendPassword" }), _jsx(IconWrapper, { icon: Rocket, name: "Rocket" }), _jsx(IconWrapper, { icon: Roof2, name: "Roof2" }), _jsx(IconWrapper, { icon: Security, name: "Security" }), _jsx(IconWrapper, { icon: Send, name: "Send" }), _jsx(IconWrapper, { icon: ShareHome, name: "ShareHome" }), _jsx(IconWrapper, { icon: ShareWith, name: "ShareWith" }), _jsx(IconWrapper, { icon: SixtyEight, name: "SixtyEight" }), _jsx(IconWrapper, { icon: SMS, name: "SMS" }), _jsx(IconWrapper, { icon: Social, name: "Social" }), _jsx(IconWrapper, { icon: SolarPanel, name: "SolarPanel" }), _jsx(IconWrapper, { icon: Speaker, name: "Speaker" }), _jsx(IconWrapper, { icon: Sprinkler, name: "Sprinkler" }), _jsx(IconWrapper, { icon: Structure, name: "Structure" }), _jsx(IconWrapper, { icon: Subscription, name: "Subscription" }), _jsx(IconWrapper, { icon: Target, name: "Target" }), _jsx(IconWrapper, { icon: Theatre, name: "Theatre" }), _jsx(IconWrapper, { icon: Thumbnail, name: "Thumbnail" }), _jsx(IconWrapper, { icon: ThumbnailSmall, name: "ThumbnailSmall" }), _jsx(IconWrapper, { icon: ThumbUp, name: "ThumbUp" }), _jsx(IconWrapper, { icon: Trash, name: "Trash" }), _jsx(IconWrapper, { icon: VideoIcon, name: "VideoIcon" }), _jsx(IconWrapper, { icon: VideoPlay, name: "VideoPlay" }), _jsx(IconWrapper, { icon: VioletFolder, name: "VioletFolder" }), _jsx(IconWrapper, { icon: Warning, name: "Warning" }), _jsx(IconWrapper, { icon: Warranty, name: "Warranty" }), _jsx(IconWrapper, { icon: WellDone, name: "WellDone" }), _jsx(IconWrapper, { icon: WholeHome, name: "WholeHome" }), _jsx(IconWrapper, { icon: Wind, name: "Wind" }), _jsx(IconWrapper, { icon: Wizard, name: "Wizard" }), _jsx(IconWrapper, { icon: WizardDetailed, name: "WizardDetailed" }), _jsx(IconWrapper, { icon: WizardQuick, name: "WizardQuick" }), _jsx(IconWrapper, { icon: YellowFolder, name: "YellowFolder" }), _jsx(IconWrapper, { icon: YellowFolderUnshared, name: "YellowFolderUnshared" })] }));
10
10
  };
11
11
  const IconWrapper = ({ icon, name }) => {
12
12
  return (_jsxs(Center, { flexDirection: "column", children: [_jsx(Image, { src: icon, boxSize: "30px", mb: "2" }), _jsx(Text, { variant: "home", children: name })] }));
@@ -8,6 +8,7 @@ export default {
8
8
  args: {
9
9
  form: viewingHomeItemMock,
10
10
  onEdit: action('onEdit'),
11
+ onClick: action('onClick'),
11
12
  },
12
13
  decorators: [
13
14
  (Story) => (_jsx(RightPanel, { isOpen: true, onClose: action('onClose'), children: _jsx(Story, {}) })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -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>
@@ -0,0 +1,29 @@
1
+ <svg id="Group_22676" data-name="Group 22676" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="31.034" height="28.695" viewBox="0 0 31.034 28.695">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="Rectangle_25833" data-name="Rectangle 25833" width="31.034" height="28.695" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <rect id="Rectangle_25824" data-name="Rectangle 25824" width="1.715" height="1.79" transform="translate(21.445 8.853)" fill="#323954"/>
8
+ <rect id="Rectangle_25825" data-name="Rectangle 25825" width="3.14" height="15.1" transform="translate(21.875 13.595)" fill="#00c0b7"/>
9
+ <g id="Group_22672" data-name="Group 22672" transform="translate(0 0)">
10
+ <g id="Group_22671" data-name="Group 22671" clip-path="url(#clip-path)">
11
+ <path id="Path_17688" data-name="Path 17688" d="M71.515,21.209a1.5,1.5,0,0,1,.847.263,1.39,1.39,0,0,1,.28-.414v0a1.483,1.483,0,0,1,1.086-.47,1.522,1.522,0,0,1,.339.04,2.411,2.411,0,0,1,.29-.527,2.358,2.358,0,0,1,4.059.406,1.7,1.7,0,0,1,1.89.785A1.344,1.344,0,0,1,82.23,22.5a1.484,1.484,0,0,1-.043.328H70.023c0-.022,0-.04,0-.062v-.116a1.492,1.492,0,0,1,1.495-1.446" transform="translate(-51.196 -13.98)" fill="#d2edef"/>
12
+ <rect id="Rectangle_25826" data-name="Rectangle 25826" width="3.14" height="15.1" transform="translate(16.902 13.595)" fill="#00c0b7"/>
13
+ <path id="Path_17689" data-name="Path 17689" d="M72.362,23.147A1.495,1.495,0,0,0,70.02,24.33V21.41h2.621v1.323a1.389,1.389,0,0,0-.28.414" transform="translate(-51.196 -15.654)" fill="#00c0b7"/>
14
+ <path id="Path_17690" data-name="Path 17690" d="M54.55,0V3.678H53V1.624H50.386V3.678H48.84V0h5.71Z" transform="translate(-35.71 0)" fill="#40566b"/>
15
+ <path id="Path_17691" data-name="Path 17691" d="M70.023,32.762h2.618v1.79H70.02V32.7c0,.022,0,.04,0,.062" transform="translate(-51.196 -23.909)" fill="#00c0b7"/>
16
+ <path id="Path_17692" data-name="Path 17692" d="M42.785,18.793v1.852h-1.53V15.758H38.637v4.887h-1.53V15.758H34.486v4.887H32.771V13.68h14.35v2.441a2.376,2.376,0,0,0-.29.527,1.526,1.526,0,0,0-.339-.041,1.483,1.483,0,0,0-1.086.47v-1.32H42.785v2.92a.272.272,0,0,0,0,.051.433.433,0,0,0,0,.065" transform="translate(-23.961 -10.002)" fill="#323954"/>
17
+ <rect id="Rectangle_25827" data-name="Rectangle 25827" width="2.618" height="4.887" transform="translate(14.676 5.756)" fill="#00c0b7"/>
18
+ <rect id="Rectangle_25828" data-name="Rectangle 25828" width="2.618" height="2.054" transform="translate(14.676 1.623)" fill="#00c0b7"/>
19
+ <path id="Path_17693" data-name="Path 17693" d="M47.51,50.57v15.1H44.37V60.485H45.2a1.344,1.344,0,0,0,.046-.344,1.412,1.412,0,0,0-.876-1.307V50.57Z" transform="translate(-32.442 -36.975)" fill="#00c0b7"/>
20
+ <rect id="Rectangle_25829" data-name="Rectangle 25829" width="2.621" height="4.887" transform="translate(10.525 5.756)" fill="#00c0b7"/>
21
+ <rect id="Rectangle_25830" data-name="Rectangle 25830" width="1.833" height="5.186" transform="translate(10.095 23.509)" fill="#40566b"/>
22
+ <path id="Path_17694" data-name="Path 17694" d="M18.807,42.542V48.6a2.433,2.433,0,0,0-.4-.032,2.471,2.471,0,0,0-2.183,1.309l-.013-.005V39.59H39.464V57.642h-2.6v-15.1h-3.14v15.1H31.894v-15.1h-3.14v15.1H26.92v-15.1H23.78v8.264a1.41,1.41,0,0,0-1.14.032,1.8,1.8,0,0,0-.694-.669V42.542Z" transform="translate(-11.852 -28.947)" fill="#40566b"/>
23
+ <rect id="Rectangle_25831" data-name="Rectangle 25831" width="3.14" height="5.186" transform="translate(6.955 23.509)" fill="#00c0b7"/>
24
+ <path id="Path_17695" data-name="Path 17695" d="M28.166,57.984a1.731,1.731,0,0,0-.444.059,2.485,2.485,0,0,0-1.852-1.42V50.57h3.14V58.2a1.779,1.779,0,0,0-.844-.212" transform="translate(-18.915 -36.975)" fill="#00c0b7"/>
25
+ <rect id="Rectangle_25832" data-name="Rectangle 25832" width="2.597" height="5.186" transform="translate(4.358 23.509)" fill="#40566b"/>
26
+ <path id="Path_17696" data-name="Path 17696" d="M3.89,74.505a1.559,1.559,0,0,1,.355.043,2.054,2.054,0,0,1,.126-.269,2.474,2.474,0,0,1,4.436.142,1.743,1.743,0,0,1,.444-.059,1.779,1.779,0,0,1,.844.212,1.8,1.8,0,0,1,.694.669A1.41,1.41,0,0,1,12.8,76.518a1.332,1.332,0,0,1-.046.344H.006C0,76.817,0,76.774,0,76.728a1.57,1.57,0,0,1,2.457-1.293,1.571,1.571,0,0,1,1.433-.93" transform="translate(0 -53.353)" fill="#d2edef"/>
27
+ </g>
28
+ </g>
29
+ </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'
@@ -28,6 +29,7 @@ import Closet from './closet.svg'
28
29
  import Clouds from './clouds.png'
29
30
  import Co2 from './co2.svg'
30
31
  import Company from './company.svg'
32
+ import Company2 from './company2.svg'
31
33
  import ComputerReport from './computer-report.svg'
32
34
  import Confirmation from './confirmation.svg'
33
35
  import Construction from './construction.svg'
@@ -173,6 +175,7 @@ export {
173
175
  BillingAddress,
174
176
  BlueFolder,
175
177
  BlueFolderShared,
178
+ BookOpened,
176
179
  Box,
177
180
  Building,
178
181
  Calc,
@@ -189,6 +192,7 @@ export {
189
192
  Clouds,
190
193
  Co2,
191
194
  Company,
195
+ Company2,
192
196
  ComputerReport,
193
197
  Confirmation,
194
198
  Construction,
@@ -18,6 +18,7 @@ import {
18
18
  CurrencyField,
19
19
  TileBody,
20
20
  CheckboxGroupField,
21
+ CheckboxAgreement,
21
22
  } from '@/components'
22
23
  import { useDynamicForm } from '@/hooks'
23
24
  import { fieldIcons } from '@/helpers'
@@ -189,6 +190,16 @@ export const DynamicForm = ({
189
190
  />
190
191
  </FieldWithDelete>
191
192
  )
193
+ case 'checkbox-agreement':
194
+ return (
195
+ <CheckboxAgreement
196
+ key={id}
197
+ id={id}
198
+ name={name}
199
+ value={value}
200
+ description={description}
201
+ />
202
+ )
192
203
  case 'tile-body':
193
204
  return (
194
205
  <TileBody
@@ -0,0 +1,90 @@
1
+ import { ChevronRight } from '@/components/icons'
2
+ import { ReportI } from '@/interfaces'
3
+ import {
4
+ Accordion,
5
+ AccordionItem,
6
+ AccordionButton,
7
+ Flex,
8
+ Box,
9
+ AccordionPanel,
10
+ Checkbox,
11
+ Text,
12
+ } from '@chakra-ui/react'
13
+ import { Controller, useFormContext } from 'react-hook-form'
14
+
15
+ export const CheckboxAgreement = ({
16
+ description,
17
+ id,
18
+ name,
19
+ value,
20
+ }: Pick<ReportI, 'name' | 'id' | 'description' | 'value'>) => {
21
+ const { control } = useFormContext()
22
+ return (
23
+ <Accordion flex="1" allowToggle defaultIndex={[0]}>
24
+ <AccordionItem border="none" bg="lightViolet.1">
25
+ {({ isExpanded }) => (
26
+ <>
27
+ <Flex p="base" justify="space-between">
28
+ <Controller
29
+ control={control}
30
+ name={id}
31
+ defaultValue={value}
32
+ render={({ field: { onChange, value } }) => {
33
+ return (
34
+ <Checkbox
35
+ key={id}
36
+ value={String(name)}
37
+ isChecked={Boolean(value)}
38
+ onChange={onChange}
39
+ >
40
+ <Text
41
+ fontFamily="secondary"
42
+ fontWeight="semibold"
43
+ fontSize="sm"
44
+ color="violet.1"
45
+ >
46
+ {name}
47
+ </Text>
48
+ </Checkbox>
49
+ )
50
+ }}
51
+ />
52
+ <AccordionButton
53
+ w="fit-content"
54
+ p="0"
55
+ _hover={{
56
+ bg: 'transparent',
57
+ }}
58
+ _focus={{
59
+ outline: 'none',
60
+ }}
61
+ >
62
+ <Box
63
+ rounded="full"
64
+ border="1px solid"
65
+ padding="1"
66
+ borderColor="neutral.white"
67
+ transition="all .2s ease-in-out"
68
+ transform={isExpanded ? 'rotate(-90deg)' : 'rotate(0)'}
69
+ >
70
+ <ChevronRight size={18} />
71
+ </Box>
72
+ </AccordionButton>
73
+ </Flex>
74
+ <AccordionPanel px="base" pb="base">
75
+ <Text
76
+ variant="home"
77
+ fontSize="xs"
78
+ marginInlineStart="8"
79
+ position="relative"
80
+ top="-10px"
81
+ >
82
+ {description}
83
+ </Text>
84
+ </AccordionPanel>
85
+ </>
86
+ )}
87
+ </AccordionItem>
88
+ </Accordion>
89
+ )
90
+ }
@@ -1,3 +1,4 @@
1
+ export * from './CheckboxAgreement'
1
2
  export * from './CheckboxGroupField'
2
3
  export * from './CurrencyField'
3
4
  export * from './DateField'
@@ -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>
@@ -6,6 +6,7 @@ import {
6
6
  ReadOnlyGrid,
7
7
  ReadOnlyGroup,
8
8
  ReadOnlyInput,
9
+ ReadOnlyNotes,
9
10
  ReadOnlyRating,
10
11
  ReadOnlyTextArea,
11
12
  } from '@/components'
@@ -13,10 +14,11 @@ import { fieldIcons } from '@/helpers'
13
14
 
14
15
  export const ReadOnlyDynamicForm = ({
15
16
  form: fields,
17
+ onClick,
16
18
  onEdit = () => {},
17
19
  }: ReadOnlyDynamicFormI) => {
18
20
  return (
19
- <Box bg="lightBlue.1">
21
+ <Box bg="lightBlue.1" overflow="scroll">
20
22
  {fields?.map((field) => {
21
23
  const { children = [], icon, id, name, type, value } = field
22
24
  const baseProps = {
@@ -43,11 +45,15 @@ export const ReadOnlyDynamicForm = ({
43
45
  case 'textarea':
44
46
  return <ReadOnlyTextArea {...baseProps} />
45
47
  case 'grid':
46
- return <ReadOnlyGrid key={id} children={children} />
48
+ return (
49
+ <ReadOnlyGrid key={id} children={children} onClick={onClick} />
50
+ )
47
51
  case 'group':
48
52
  return <ReadOnlyGroup key={id} children={children} />
49
53
  case 'appliances':
50
54
  return <ReadOnlyAppliances {...field} key={id} onEdit={onEdit} />
55
+ case 'notes':
56
+ return <ReadOnlyNotes {...field} key={id} />
51
57
  default:
52
58
  return null
53
59
  }
@@ -1,9 +1,18 @@
1
1
  import { Flex } from '@chakra-ui/react'
2
2
  import { IconTypes, ReadOnlyGridI } from '@/interfaces'
3
- import { ReadOnlyDate, ReadOnlyInput } from '@/components'
3
+ import {
4
+ ReadOnlyDate,
5
+ ReadOnlyGuidelines,
6
+ ReadOnlyInput,
7
+ ReadOnlyItemRelated,
8
+ } from '@/components'
4
9
  import { fieldIcons } from '@/helpers'
5
10
 
6
- export const ReadOnlyGrid = ({ children, ...props }: ReadOnlyGridI) => {
11
+ export const ReadOnlyGrid = ({
12
+ children,
13
+ onClick,
14
+ ...props
15
+ }: ReadOnlyGridI) => {
7
16
  return (
8
17
  <Flex
9
18
  align="stretch"
@@ -13,7 +22,7 @@ export const ReadOnlyGrid = ({ children, ...props }: ReadOnlyGridI) => {
13
22
  p="base"
14
23
  {...props}
15
24
  >
16
- {children?.map(({ id, name, value, type, icon }) => {
25
+ {children?.map(({ children, id, name, value, type, icon }) => {
17
26
  const baseProps = {
18
27
  key: `${id}-${name}-${value}-${type}`,
19
28
  id,
@@ -34,6 +43,26 @@ export const ReadOnlyGrid = ({ children, ...props }: ReadOnlyGridI) => {
34
43
  )
35
44
  case 'date':
36
45
  return <ReadOnlyDate {...baseProps} name={name} p="0" />
46
+
47
+ case 'guidelines':
48
+ return (
49
+ <ReadOnlyGuidelines
50
+ key={id}
51
+ name={name}
52
+ children={children}
53
+ onClick={onClick}
54
+ />
55
+ )
56
+
57
+ case 'item-related':
58
+ return (
59
+ <ReadOnlyItemRelated
60
+ key={id}
61
+ name={name}
62
+ children={children}
63
+ onClick={onClick}
64
+ />
65
+ )
37
66
  default:
38
67
  return null
39
68
  }