@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
@@ -0,0 +1,16 @@
1
+ import { Stack, Text } from '@chakra-ui/react'
2
+ import { ReportI } from '@/interfaces'
3
+
4
+ export const ReadOnlyNotes = ({
5
+ name,
6
+ value,
7
+ }: Pick<ReportI, 'name' | 'value'>) => {
8
+ return (
9
+ <Stack p="base" spacing="base">
10
+ <Text fontSize="xs" textTransform="uppercase">
11
+ {name}
12
+ </Text>
13
+ <Text fontFamily="secondary">{value}</Text>
14
+ </Stack>
15
+ )
16
+ }
@@ -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,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
+ }
@@ -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,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'
@@ -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'
@@ -6,6 +6,7 @@ import { ViewingHomeItemPanelI } from '@/interfaces'
6
6
 
7
7
  export const ViewingHomeItemPanel = ({
8
8
  form,
9
+ onClick,
9
10
  onClose,
10
11
  onEdit,
11
12
  }: ViewingHomeItemPanelI) => {
@@ -38,7 +39,7 @@ export const ViewingHomeItemPanel = ({
38
39
  <TabsHeader tabList={tabs} rightTabList={rightTabs} />
39
40
  </Box>
40
41
  </DrawerHeader>
41
- <ReadOnlyDynamicForm form={form} onEdit={onEdit} />
42
+ <ReadOnlyDynamicForm form={form} onClick={onClick} onEdit={onEdit} />
42
43
  </DrawerContent>
43
44
  )
44
45
  }
@@ -20,8 +20,15 @@ export const MessageCard = ({
20
20
  onClick,
21
21
  variant = 'inbox',
22
22
  }: MessageCardI) => {
23
- const { currentUser, from, subject, date, isNew, chatReplies, description } =
24
- message
23
+ const {
24
+ currentUser,
25
+ from,
26
+ subject,
27
+ date,
28
+ isNew,
29
+ chatReplies,
30
+ description = '',
31
+ } = message
25
32
  const formattedDate = formatDateWithAt({ date })
26
33
  const showChatBubble = Number(chatReplies?.length) > 0
27
34
  const isInbox = variant === 'inbox'
@@ -99,11 +106,23 @@ export const MessageCard = ({
99
106
  )}
100
107
  </Flex>
101
108
  {isInbox && (
102
- <Text variant="home" noOfLines={3} textOverflow="ellipsis">
103
- {description}
104
- </Text>
109
+ <Text
110
+ variant="home"
111
+ noOfLines={3}
112
+ textOverflow="ellipsis"
113
+ dangerouslySetInnerHTML={{
114
+ __html: description,
115
+ }}
116
+ />
117
+ )}
118
+ {!isInbox && (
119
+ <Text
120
+ variant="home"
121
+ dangerouslySetInnerHTML={{
122
+ __html: description,
123
+ }}
124
+ />
105
125
  )}
106
- {!isInbox && <Text variant="home">{description}</Text>}
107
126
  </Stack>
108
127
  </Box>
109
128
  </Container>
@@ -41,7 +41,6 @@ import {
41
41
  Roof2,
42
42
  Target,
43
43
  CircleFace,
44
- Company,
45
44
  Pressure,
46
45
  WindowCleaning,
47
46
  RoofCleaning,
@@ -50,6 +49,8 @@ import {
50
49
  HomeCleaning,
51
50
  HouseWashing,
52
51
  PressureWasher,
52
+ BookOpened,
53
+ Company2,
53
54
  } from '@/assets/images'
54
55
  import { IconTypes } from '@/interfaces'
55
56
 
@@ -57,6 +58,7 @@ export const fieldIcons: Record<IconTypes, string> = {
57
58
  barcode: Barcode,
58
59
  billing: Billing,
59
60
  book: Book,
61
+ 'book-opened': BookOpened,
60
62
  calc: Calc,
61
63
  check: CheckPen,
62
64
  contact: Contacts,
@@ -98,7 +100,7 @@ export const fieldIcons: Record<IconTypes, string> = {
98
100
  house: Structure,
99
101
  target: Target,
100
102
  title: CircleFace,
101
- company: Company,
103
+ company: Company2,
102
104
  'sh-gutter': GutterCleaning,
103
105
  'sh-home': HomeCleaning,
104
106
  'sh-house': HouseWashing,
@@ -1,11 +1,15 @@
1
1
  import { t } from 'i18next'
2
- import { useState } from 'react'
2
+ import { useState, useEffect } from 'react'
3
3
  import { InboxMessageI, SelectItemI } from '@/interfaces'
4
4
 
5
5
  export const useMessagePanel = (messages: InboxMessageI[]) => {
6
6
  const [sortedMessages, setSortedMessages] = useState(messages)
7
7
  const [currentSort, setCurrentSort] = useState<string>(t('forms.sortBy'))
8
8
 
9
+ useEffect(() => {
10
+ setSortedMessages(messages)
11
+ }, [messages])
12
+
9
13
  const handleSelectItem = (item: string | SelectItemI<string>) => {
10
14
  if (typeof item !== 'string') return
11
15
  setCurrentSort(item)
@@ -2,6 +2,7 @@ import { FolderFileI, MenuItemI, PartnerFooterI, TileCtaI } from '@/interfaces'
2
2
 
3
3
  type KindTypes =
4
4
  | 'checkbox'
5
+ | 'checkbox-agreement'
5
6
  | 'checkbox-group'
6
7
  | 'currency'
7
8
  | 'date'
@@ -10,6 +11,7 @@ type KindTypes =
10
11
  | 'grid'
11
12
  | 'group'
12
13
  | 'hidden'
14
+ | 'notes'
13
15
  | 'number'
14
16
  | 'radio'
15
17
  | 'rating'
@@ -35,13 +37,19 @@ type UIKindTypes =
35
37
  | 'primary-cta'
36
38
  | 'secondary-cta'
37
39
 
38
- type HomeItemTypes = 'appliances' | 'images'
40
+ type HomeItemTypes =
41
+ | 'appliances'
42
+ | 'images'
43
+ | 'guidelines'
44
+ | 'item-related'
45
+ | 'item-icon-btn'
39
46
 
40
47
  export type IconTypes =
41
48
  | 'barcode'
42
49
  | 'battery'
43
50
  | 'billing'
44
51
  | 'book'
52
+ | 'book-opened'
45
53
  | 'calc'
46
54
  | 'calendar'
47
55
  | 'check'
@@ -131,4 +139,5 @@ export interface DynamicFormProxyI {
131
139
 
132
140
  export interface ReadOnlyDynamicFormI extends Pick<DynamicFormI, 'form'> {
133
141
  onEdit?: (id: string) => void
142
+ onClick?: (id: string) => void
134
143
  }
@@ -3,4 +3,6 @@ import { FlexProps } from '@chakra-ui/react'
3
3
 
4
4
  export interface ReadOnlyGridI
5
5
  extends Pick<ReportI, 'children'>,
6
- Omit<FlexProps, 'children'> {}
6
+ Omit<FlexProps, 'children' | 'onClick'> {
7
+ onClick?: (id: string) => void
8
+ }
@@ -0,0 +1,6 @@
1
+ import { ReportI } from '@/interfaces'
2
+
3
+ export interface ReadOnlyGuidelinesI
4
+ extends Pick<ReportI, 'children' | 'name'> {
5
+ onClick?: (id: string) => void
6
+ }
@@ -1 +1,2 @@
1
1
  export * from './ReadOnlyAppliances.interface'
2
+ export * from './ReadOnlyGuidelines.interface'
@@ -4,4 +4,5 @@ export interface ViewingHomeItemPanelI {
4
4
  form: ReportI[]
5
5
  onClose: () => void
6
6
  onEdit: (id: string) => void
7
+ onClick?: (id: string) => void
7
8
  }
@@ -4,11 +4,11 @@ export interface InboxMessageI {
4
4
  _id: string
5
5
  currentUser?: Partial<UserProfileI>
6
6
  chatReplies?: InboxMessageI[]
7
- description: string
7
+ description?: string
8
8
  date: Date
9
9
  from: string
10
10
  isNew?: boolean
11
- subject: string
11
+ subject?: string
12
12
  }
13
13
 
14
14
  export interface MessageCardI {
@@ -3,6 +3,35 @@ import { ReportI } from '@/interfaces'
3
3
  import { faker } from '@faker-js/faker'
4
4
 
5
5
  export const formFieldsMock: ReportI[] = [
6
+ {
7
+ id: faker.database.mongodbObjectId(),
8
+ name: 'Select to have Homefile find & add information on your item.',
9
+ description:
10
+ '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.',
11
+ value: false,
12
+ type: 'checkbox-agreement',
13
+ visible: true,
14
+ },
15
+ {
16
+ id: faker.database.mongodbObjectId(),
17
+ name: 'Serial #',
18
+ description: faker.lorem.sentence(),
19
+ comments: faker.lorem.sentence(),
20
+ value: '',
21
+ type: 'text',
22
+ visible: true,
23
+ icon: 'barcode',
24
+ },
25
+ {
26
+ id: faker.database.mongodbObjectId(),
27
+ name: 'Brand',
28
+ description: faker.lorem.sentence(),
29
+ comments: faker.lorem.sentence(),
30
+ value: '',
31
+ type: 'text',
32
+ visible: true,
33
+ icon: 'company',
34
+ },
6
35
  {
7
36
  id: faker.database.mongodbObjectId(),
8
37
  name: 'Services',
@@ -69,17 +98,6 @@ export const formFieldsMock: ReportI[] = [
69
98
  },
70
99
  ],
71
100
  },
72
- {
73
- id: faker.database.mongodbObjectId(),
74
- name: 'Serial #',
75
- description: faker.lorem.sentence(),
76
- comments: faker.lorem.sentence(),
77
- value: '',
78
- type: 'default',
79
- visible: false,
80
- icon: 'barcode',
81
- },
82
-
83
101
  {
84
102
  id: faker.database.mongodbObjectId(),
85
103
  name: 'Receipt',
@@ -646,4 +664,64 @@ export const viewingHomeItemMock: ReportI[] = [
646
664
  },
647
665
  ],
648
666
  },
667
+ {
668
+ id: faker.database.mongodbObjectId(),
669
+ value: '',
670
+ type: 'grid',
671
+ visible: true,
672
+ children: [
673
+ {
674
+ id: faker.database.mongodbObjectId(),
675
+ name: 'Care & Guidelines',
676
+ value: '',
677
+ type: 'guidelines',
678
+ visible: true,
679
+ children: [
680
+ {
681
+ id: faker.database.mongodbObjectId(),
682
+ icon: 'umbrella',
683
+ value: 'warranty',
684
+ type: 'item-icon-btn',
685
+ visible: true,
686
+ link: 'www.kitchenaid.com',
687
+ },
688
+ {
689
+ id: faker.database.mongodbObjectId(),
690
+ icon: 'book-opened',
691
+ value: 'manual',
692
+ type: 'item-icon-btn',
693
+ visible: true,
694
+ link: 'www.kitchenaid.com',
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ id: faker.database.mongodbObjectId(),
700
+ name: 'Related',
701
+ value: '',
702
+ type: 'item-related',
703
+ visible: true,
704
+ children: [
705
+ {
706
+ id: faker.database.mongodbObjectId(),
707
+ icon: 'drop',
708
+ value: 'filter',
709
+ type: 'item-icon-btn',
710
+ visible: true,
711
+ link: 'www.kitchenaid.com',
712
+ },
713
+ ],
714
+ },
715
+ ],
716
+ },
717
+ {
718
+ id: faker.database.mongodbObjectId(),
719
+ name: 'Notes',
720
+ description: '',
721
+ comments: faker.lorem.sentence(),
722
+ value: faker.lorem.paragraphs(),
723
+ type: 'notes',
724
+ visible: true,
725
+ options: [],
726
+ },
649
727
  ]
@@ -29,7 +29,7 @@ export const messagesMock: InboxMessageI[] = [
29
29
  subject: faker.lorem.words(),
30
30
  },
31
31
  ],
32
- description: faker.lorem.paragraphs(),
32
+ description: `<p>${faker.lorem.paragraphs()}</p>`,
33
33
  date: faker.date.recent(),
34
34
  from: currentUserName,
35
35
  isNew: false,
@@ -39,8 +39,8 @@ export const messagesMock: InboxMessageI[] = [
39
39
  currentUser: {
40
40
  userName: currentUserName,
41
41
  },
42
- description: faker.lorem.paragraphs(),
43
42
  date: faker.date.recent(),
43
+ description: `<span>${faker.lorem.paragraphs()}</span>`,
44
44
  from: faker.person.fullName(),
45
45
  isNew: true,
46
46
  subject: faker.lorem.words(),
@@ -83,7 +83,6 @@ export const messagesMock: InboxMessageI[] = [
83
83
  date: faker.date.recent(),
84
84
  from: faker.person.fullName(),
85
85
  isNew: false,
86
- subject: faker.lorem.words(),
87
86
  },
88
87
  {
89
88
  _id: faker.database.mongodbObjectId(),
@@ -187,6 +187,8 @@ import {
187
187
  WizardQuick,
188
188
  YellowFolder,
189
189
  YellowFolderUnshared,
190
+ BookOpened,
191
+ Company2,
190
192
  } from '@/assets/images'
191
193
 
192
194
  import {
@@ -279,6 +281,7 @@ export const Illustrations = () => {
279
281
  <IconWrapper icon={BillingAddress} name="BillingAddress" />
280
282
  <IconWrapper icon={BlueFolder} name="BlueFolder" />
281
283
  <IconWrapper icon={BlueFolderShared} name="BlueFolderShared" />
284
+ <IconWrapper icon={BookOpened} name="BookOpened" />
282
285
  <IconWrapper icon={BoxIcon} name="Box" />
283
286
  <IconWrapper icon={Building} name="Building" />
284
287
  <IconWrapper icon={Calc} name="Calc" />
@@ -293,6 +296,7 @@ export const Illustrations = () => {
293
296
  <IconWrapper icon={Closet} name="Closet" />
294
297
  <IconWrapper icon={Co2} name="Co2" />
295
298
  <IconWrapper icon={Company} name="Company" />
299
+ <IconWrapper icon={Company2} name="Company2" />
296
300
  <IconWrapper icon={ComputerReport} name="ComputerReport" />
297
301
  <IconWrapper icon={Confirmation} name="Confirmation" />
298
302
  <IconWrapper icon={Construction} name="Construction" />
@@ -10,6 +10,7 @@ export default {
10
10
  args: {
11
11
  form: viewingHomeItemMock,
12
12
  onEdit: action('onEdit'),
13
+ onClick: action('onClick'),
13
14
  },
14
15
  decorators: [
15
16
  (Story) => (