@homefile/components-v2 2.3.1 → 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 (203) hide show
  1. package/dist/assets/images/animations/index.d.ts +7 -0
  2. package/dist/assets/images/animations/index.js +7 -0
  3. package/dist/assets/images/animations/index.ts +15 -0
  4. package/dist/assets/images/animations/trees-cloudy.png +0 -0
  5. package/dist/assets/images/animations/trees-day-fall.png +0 -0
  6. package/dist/assets/images/animations/trees-day-summer.png +0 -0
  7. package/dist/assets/images/animations/trees-day-winter.png +0 -0
  8. package/dist/assets/images/animations/trees-evening.png +0 -0
  9. package/dist/assets/images/animations/trees-morning.png +0 -0
  10. package/dist/assets/images/animations/trees-night.png +0 -0
  11. package/dist/assets/images/book.svg +25 -0
  12. package/dist/assets/images/chat-bubble.svg +8 -0
  13. package/dist/assets/images/document2.svg +14 -0
  14. package/dist/assets/images/index.d.ts +5 -1
  15. package/dist/assets/images/index.js +5 -1
  16. package/dist/assets/images/index.ts +7 -0
  17. package/dist/assets/locales/en/index.json +11 -10
  18. package/dist/components/animations/CloudsAnimation.js +19 -3
  19. package/dist/components/animations/WeatherTrees.d.ts +6 -0
  20. package/dist/components/animations/WeatherTrees.js +36 -0
  21. package/dist/components/animations/index.d.ts +1 -0
  22. package/dist/components/animations/index.js +1 -0
  23. package/dist/components/badge/TextBadge.js +1 -1
  24. package/dist/components/folderPanel/folderDetails/FilesCounter.js +3 -5
  25. package/dist/components/footers/FooterButtons.d.ts +1 -1
  26. package/dist/components/footers/FooterButtons.js +2 -2
  27. package/dist/components/forms/BaseCounter.d.ts +2 -0
  28. package/dist/components/forms/BaseCounter.js +8 -0
  29. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.js +1 -1
  30. package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  31. package/dist/components/forms/index.d.ts +1 -0
  32. package/dist/components/forms/index.js +1 -0
  33. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.d.ts +1 -1
  34. package/dist/components/forms/readOnly/ReadOnlyDynamicForm.js +6 -4
  35. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.d.ts +1 -1
  36. package/dist/components/forms/readOnly/fields/ReadOnlyGrid.js +7 -3
  37. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.d.ts +2 -0
  38. package/dist/components/forms/readOnly/fields/ReadOnlyNotes.js +5 -0
  39. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.js +1 -1
  40. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  41. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.d.ts +2 -0
  42. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.js +11 -0
  43. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  44. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.js +1 -1
  45. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  46. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.d.ts +2 -0
  47. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.js +11 -0
  48. package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  49. package/dist/components/forms/readOnly/fields/homeItem/index.d.ts +2 -0
  50. package/dist/components/forms/readOnly/fields/homeItem/index.js +2 -0
  51. package/dist/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  52. package/dist/components/forms/readOnly/fields/index.d.ts +1 -0
  53. package/dist/components/forms/readOnly/fields/index.js +1 -0
  54. package/dist/components/homeAssistant/HomeAssistantWrapper.d.ts +1 -1
  55. package/dist/components/homeAssistant/HomeAssistantWrapper.js +20 -6
  56. package/dist/components/homeItems/ViewingHomeItemPanel.d.ts +1 -1
  57. package/dist/components/homeItems/ViewingHomeItemPanel.js +2 -2
  58. package/dist/components/inboxTile/InboxForwardBanner.js +2 -2
  59. package/dist/components/inboxTile/index.d.ts +1 -0
  60. package/dist/components/inboxTile/index.js +1 -0
  61. package/dist/components/inboxTile/panel/MessageCard.d.ts +2 -0
  62. package/dist/components/inboxTile/panel/MessageCard.js +14 -0
  63. package/dist/components/inboxTile/panel/MessageChatPanel.d.ts +4 -0
  64. package/dist/components/inboxTile/panel/MessageChatPanel.js +38 -0
  65. package/dist/components/inboxTile/panel/MessagePanel.d.ts +2 -0
  66. package/dist/components/inboxTile/panel/MessagePanel.js +12 -0
  67. package/dist/components/inboxTile/panel/index.d.ts +3 -0
  68. package/dist/components/inboxTile/panel/index.js +3 -0
  69. package/dist/components/myHomes/WrapperWithShadow.js +1 -1
  70. package/dist/components/myHomes/steps/MyHomeDetails.d.ts +1 -0
  71. package/dist/components/myHomes/steps/MyHomeDetails.js +1 -1
  72. package/dist/components/notifications/NotificationCard.d.ts +1 -1
  73. package/dist/components/notifications/NotificationCard.js +2 -47
  74. package/dist/components/rooms/VideosCounter.js +3 -5
  75. package/dist/helpers/forms/dynamicForm.helper.js +2 -1
  76. package/dist/hooks/inbox/index.d.ts +1 -0
  77. package/dist/hooks/inbox/index.js +1 -0
  78. package/dist/hooks/inbox/useMessagePanel.d.ts +7 -0
  79. package/dist/hooks/inbox/useMessagePanel.js +17 -0
  80. package/dist/hooks/index.d.ts +1 -0
  81. package/dist/hooks/index.js +1 -0
  82. package/dist/hooks/notifications/useNotificationsPanel.js +0 -5
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +1 -1
  85. package/dist/interfaces/appBar/UserProfile.interface.d.ts +2 -2
  86. package/dist/interfaces/footers/FooterButtons.interface.d.ts +1 -0
  87. package/dist/interfaces/forms/BaseCounter.interface.d.ts +5 -0
  88. package/dist/interfaces/forms/BaseCounter.interface.js +1 -0
  89. package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +4 -3
  90. package/dist/interfaces/forms/index.d.ts +1 -0
  91. package/dist/interfaces/forms/index.js +1 -0
  92. package/dist/interfaces/forms/readOnly/ReadOnlyGrid.interface.d.ts +2 -1
  93. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.d.ts +4 -0
  94. package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.js +1 -0
  95. package/dist/interfaces/forms/readOnly/homeItem/index.d.ts +1 -0
  96. package/dist/interfaces/forms/readOnly/homeItem/index.js +1 -0
  97. package/dist/interfaces/homeItems/ViewingHomeItemPanel.interface.d.ts +1 -0
  98. package/dist/interfaces/inboxTile/MessageCard.interface.d.ts +16 -0
  99. package/dist/interfaces/inboxTile/MessageCard.interface.js +1 -0
  100. package/dist/interfaces/inboxTile/MessageChatPanel.interface.d.ts +12 -0
  101. package/dist/interfaces/inboxTile/MessageChatPanel.interface.js +1 -0
  102. package/dist/interfaces/inboxTile/MessagePanel.interface.d.ts +6 -0
  103. package/dist/interfaces/inboxTile/MessagePanel.interface.js +1 -0
  104. package/dist/interfaces/inboxTile/index.d.ts +3 -0
  105. package/dist/interfaces/inboxTile/index.js +3 -0
  106. package/dist/interfaces/notifications/NotificationsPanel.interface.d.ts +3 -2
  107. package/dist/mocks/forms/dynamicForm.mock.js +60 -0
  108. package/dist/mocks/inbox/index.d.ts +1 -0
  109. package/dist/mocks/inbox/index.js +1 -0
  110. package/dist/mocks/inbox/messages.d.ts +2 -0
  111. package/dist/mocks/inbox/messages.js +136 -0
  112. package/dist/mocks/index.d.ts +1 -0
  113. package/dist/mocks/index.js +1 -0
  114. package/dist/mocks/notifications/notifications.mock.js +4 -4
  115. package/dist/stories/assets/Illustrations.stories.js +2 -2
  116. package/dist/stories/homeItems/ViewingHomeItem.stories.js +1 -0
  117. package/dist/stories/inboxTile/MessagePanel.stories.d.ts +5 -0
  118. package/dist/stories/inboxTile/MessagePanel.stories.js +24 -0
  119. package/dist/theme/colors.d.ts +4 -1
  120. package/dist/theme/colors.js +4 -1
  121. package/dist/utils/Animations.utils.d.ts +6 -0
  122. package/dist/utils/Animations.utils.js +31 -0
  123. package/dist/utils/Avatars.utils.d.ts +1 -1
  124. package/dist/utils/Avatars.utils.js +1 -1
  125. package/dist/utils/index.d.ts +1 -0
  126. package/dist/utils/index.js +1 -0
  127. package/package.json +1 -1
  128. package/src/assets/images/animations/index.ts +15 -0
  129. package/src/assets/images/animations/trees-cloudy.png +0 -0
  130. package/src/assets/images/animations/trees-day-fall.png +0 -0
  131. package/src/assets/images/animations/trees-day-summer.png +0 -0
  132. package/src/assets/images/animations/trees-day-winter.png +0 -0
  133. package/src/assets/images/animations/trees-evening.png +0 -0
  134. package/src/assets/images/animations/trees-morning.png +0 -0
  135. package/src/assets/images/animations/trees-night.png +0 -0
  136. package/src/assets/images/book.svg +25 -0
  137. package/src/assets/images/chat-bubble.svg +8 -0
  138. package/src/assets/images/document2.svg +14 -0
  139. package/src/assets/images/index.ts +7 -0
  140. package/src/assets/locales/en/index.json +11 -10
  141. package/src/components/animations/CloudsAnimation.tsx +34 -17
  142. package/src/components/animations/WeatherTrees.tsx +37 -0
  143. package/src/components/animations/index.ts +1 -0
  144. package/src/components/badge/TextBadge.tsx +1 -1
  145. package/src/components/folderPanel/folderDetails/FilesCounter.tsx +6 -21
  146. package/src/components/footers/FooterButtons.tsx +2 -1
  147. package/src/components/forms/BaseCounter.tsx +30 -0
  148. package/src/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
  149. package/src/components/forms/index.ts +1 -0
  150. package/src/components/forms/readOnly/ReadOnlyDynamicForm.tsx +8 -2
  151. package/src/components/forms/readOnly/fields/ReadOnlyGrid.tsx +32 -3
  152. package/src/components/forms/readOnly/fields/ReadOnlyNotes.tsx +16 -0
  153. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
  154. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
  155. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
  156. package/src/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
  157. package/src/components/forms/readOnly/fields/homeItem/index.ts +2 -0
  158. package/src/components/forms/readOnly/fields/index.ts +1 -0
  159. package/src/components/homeAssistant/HomeAssistantWrapper.tsx +31 -18
  160. package/src/components/homeItems/ViewingHomeItemPanel.tsx +2 -1
  161. package/src/components/inboxTile/InboxForwardBanner.tsx +5 -4
  162. package/src/components/inboxTile/index.ts +1 -0
  163. package/src/components/inboxTile/panel/MessageCard.tsx +112 -0
  164. package/src/components/inboxTile/panel/MessageChatPanel.tsx +105 -0
  165. package/src/components/inboxTile/panel/MessagePanel.tsx +64 -0
  166. package/src/components/inboxTile/panel/index.ts +3 -0
  167. package/src/components/myHomes/WrapperWithShadow.tsx +1 -0
  168. package/src/components/myHomes/steps/MyHomeDetails.tsx +1 -1
  169. package/src/components/notifications/NotificationCard.tsx +2 -106
  170. package/src/components/onboarding/pages/SignIn.tsx +1 -0
  171. package/src/components/rooms/VideosCounter.tsx +2 -18
  172. package/src/helpers/forms/dynamicForm.helper.ts +2 -0
  173. package/src/hooks/inbox/index.ts +1 -0
  174. package/src/hooks/inbox/useMessagePanel.ts +23 -0
  175. package/src/hooks/index.ts +1 -0
  176. package/src/hooks/notifications/useNotificationsPanel.ts +0 -5
  177. package/src/index.ts +2 -0
  178. package/src/interfaces/appBar/UserProfile.interface.ts +2 -2
  179. package/src/interfaces/footers/FooterButtons.interface.ts +2 -1
  180. package/src/interfaces/forms/BaseCounter.interface.ts +5 -0
  181. package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +9 -1
  182. package/src/interfaces/forms/index.ts +1 -0
  183. package/src/interfaces/forms/readOnly/ReadOnlyGrid.interface.ts +3 -1
  184. package/src/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.ts +6 -0
  185. package/src/interfaces/forms/readOnly/homeItem/index.ts +1 -0
  186. package/src/interfaces/homeItems/ViewingHomeItemPanel.interface.ts +1 -0
  187. package/src/interfaces/inboxTile/MessageCard.interface.ts +18 -0
  188. package/src/interfaces/inboxTile/MessageChatPanel.interface.ts +13 -0
  189. package/src/interfaces/inboxTile/MessagePanel.interface.ts +7 -0
  190. package/src/interfaces/inboxTile/index.ts +3 -0
  191. package/src/interfaces/notifications/NotificationsPanel.interface.ts +3 -9
  192. package/src/mocks/forms/dynamicForm.mock.ts +60 -0
  193. package/src/mocks/inbox/index.ts +1 -0
  194. package/src/mocks/inbox/messages.ts +139 -0
  195. package/src/mocks/index.ts +1 -0
  196. package/src/mocks/notifications/notifications.mock.ts +4 -4
  197. package/src/stories/assets/Illustrations.stories.tsx +4 -0
  198. package/src/stories/homeItems/ViewingHomeItem.stories.tsx +1 -0
  199. package/src/stories/inboxTile/MessagePanel.stories.tsx +47 -0
  200. package/src/theme/colors.ts +4 -1
  201. package/src/utils/Animations.utils.ts +39 -0
  202. package/src/utils/Avatars.utils.ts +2 -2
  203. package/src/utils/index.ts +1 -0
@@ -33,7 +33,7 @@ const colors = [
33
33
  '#DE9E35',
34
34
  '#37323E',
35
35
  ];
36
- export const randomColor = (index) => {
36
+ export const randomColor = (index = Math.floor(Math.random() * 30)) => {
37
37
  if (index >= colors.length) {
38
38
  return colors[index % colors.length];
39
39
  }
@@ -1,4 +1,5 @@
1
1
  export * from './AddMedia.utils';
2
+ export * from './Animations.utils';
2
3
  export * from './Avatars.utils';
3
4
  export * from './BrowserDetectors.utils';
4
5
  export * from './BubblesTour.utils';
@@ -1,4 +1,5 @@
1
1
  export * from './AddMedia.utils';
2
+ export * from './Animations.utils';
2
3
  export * from './Avatars.utils';
3
4
  export * from './BrowserDetectors.utils';
4
5
  export * from './BubblesTour.utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -0,0 +1,15 @@
1
+ import TreesDay from './trees-day-summer.png'
2
+ import TreesDayFall from './trees-day-fall.png'
3
+ import TreesDayWinter from './trees-day-winter.png'
4
+ import TreesEvening from './trees-evening.png'
5
+ import TreesMorning from './trees-morning.png'
6
+ import TreesNight from './trees-night.png'
7
+
8
+ export {
9
+ TreesDay,
10
+ TreesDayFall,
11
+ TreesDayWinter,
12
+ TreesEvening,
13
+ TreesMorning,
14
+ TreesNight,
15
+ }
@@ -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,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
2
+ <g id="Group_21874" data-name="Group 21874" transform="translate(-1764 -254)">
3
+ <g id="Union_41" data-name="Union 41" transform="translate(1764 254)" fill="#fff">
4
+ <path d="M 6.399946212768555 19.02802085876465 L 4.829119682312012 16.40986061096191 L 4.683469772338867 16.16709899902344 L 4.400369644165039 16.16709899902344 L 2.999699831008911 16.16709899902344 C 1.621359825134277 16.16709899902344 0.4999998509883881 15.04533958435059 0.4999998509883881 13.66650009155273 L 0.4999998509883881 2.999699831008911 C 0.4999998509883881 1.621359825134277 1.621359825134277 0.4999998509883881 2.999699831008911 0.4999998509883881 L 17.00009918212891 0.4999998509883881 C 18.37843894958496 0.4999998509883881 19.49979972839355 1.621359825134277 19.49979972839355 2.999699831008911 L 19.49979972839355 13.66650009155273 C 19.49979972839355 15.04533958435059 18.37843894958496 16.16709899902344 17.00009918212891 16.16709899902344 L 8.399879455566406 16.16709899902344 L 8.116809844970703 16.16709899902344 L 7.971149921417236 16.40982055664062 L 6.399946212768555 19.02802085876465 Z" stroke="none"/>
5
+ <path d="M 6.399997234344482 18.05625152587891 L 7.833739757537842 15.66709995269775 L 17.00009918212891 15.66709995269775 C 18.10273933410645 15.66709995269775 18.99979972839355 14.76962947845459 18.99979972839355 13.66650009155273 L 18.99979972839355 2.999699831008911 C 18.99979972839355 1.897059917449951 18.10273933410645 0.9999998807907104 17.00009918212891 0.9999998807907104 L 2.999699831008911 0.9999998807907104 C 1.897059917449951 0.9999998807907104 0.9999998807907104 1.897059917449951 0.9999998807907104 2.999699831008911 L 0.9999998807907104 13.66650009155273 C 0.9999998807907104 14.76962947845459 1.897059917449951 15.66709995269775 2.999699831008911 15.66709995269775 L 4.966569900512695 15.66709995269775 L 6.399997234344482 18.05625152587891 M 6.399899959564209 19.99979972839355 L 4.400369644165039 16.66709899902344 L 2.999699831008911 16.66709899902344 C 1.34279990196228 16.66709899902344 -1.358032193365943e-07 15.32339954376221 -1.358032193365943e-07 13.66650009155273 L -1.358032193365943e-07 2.999699831008911 C -1.358032193365943e-07 1.34279990196228 1.34279990196228 -1.358032193365943e-07 2.999699831008911 -1.358032193365943e-07 L 17.00009918212891 -1.358032193365943e-07 C 18.6569995880127 -1.358032193365943e-07 19.99979972839355 1.34279990196228 19.99979972839355 2.999699831008911 L 19.99979972839355 13.66650009155273 C 19.99979972839355 15.32339954376221 18.6569995880127 16.66709899902344 17.00009918212891 16.66709899902344 L 8.399879455566406 16.66709899902344 L 6.399899959564209 19.99979972839355 Z" stroke="none" fill="#1c7ab4"/>
6
+ </g>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="20.852" height="21.158" viewBox="0 0 20.852 21.158">
2
+ <g id="Group_21880" data-name="Group 21880" transform="translate(-13.43 -0.001)">
3
+ <path id="Path_17605" data-name="Path 17605" d="M13.43,0V21.158H34.281V3.591L30.028,0Z" transform="translate(0 0)" fill="#d2edef"/>
4
+ <path id="Path_17606" data-name="Path 17606" d="M77.93,0V3.389h3.481Z" transform="translate(-47.13)" fill="#324458"/>
5
+ <path id="Path_17607" data-name="Path 17607" d="M13.43,94.821Z" transform="translate(0 -73.662)" fill="#28b5a8"/>
6
+ <rect id="Rectangle_25619" data-name="Rectangle 25619" width="5.587" height="0.632" transform="translate(15.576 3.073)" fill="#324458"/>
7
+ <rect id="Rectangle_25620" data-name="Rectangle 25620" width="16.429" height="0.632" transform="translate(15.641 7.362)" fill="#324458"/>
8
+ <rect id="Rectangle_25621" data-name="Rectangle 25621" width="16.429" height="0.632" transform="translate(15.641 9.314)" fill="#324458"/>
9
+ <rect id="Rectangle_25622" data-name="Rectangle 25622" width="16.429" height="0.632" transform="translate(15.641 11.268)" fill="#324458"/>
10
+ <rect id="Rectangle_25623" data-name="Rectangle 25623" width="16.429" height="0.632" transform="translate(15.641 13.223)" fill="#324458"/>
11
+ <rect id="Rectangle_25624" data-name="Rectangle 25624" width="16.429" height="0.632" transform="translate(15.641 15.177)" fill="#324458"/>
12
+ <rect id="Rectangle_25625" data-name="Rectangle 25625" width="7.453" height="0.632" transform="translate(15.641 17.328)" fill="#324458"/>
13
+ </g>
14
+ </svg>
@@ -12,11 +12,13 @@ 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'
18
19
  import Calendar2 from './calendar2.svg'
19
20
  import Catalog from './catalog.svg'
21
+ import ChatBubble from './chat-bubble.svg'
20
22
  import Check from './check.svg'
21
23
  import CheckInCircle from './check-in-circle.svg'
22
24
  import CheckPen from './check-pen.svg'
@@ -39,6 +41,7 @@ import Diamond from './diamond.svg'
39
41
  import DiningRoom from './dining-room.svg'
40
42
  import DocIcon from './doc-icon.svg'
41
43
  import Document from './document.svg'
44
+ import Document2 from './document2.svg'
42
45
  import Drop from './drop.svg'
43
46
  import DropCalendar from './drop-calendar.svg'
44
47
  import Electricity from './electricity.svg'
@@ -171,11 +174,13 @@ export {
171
174
  BillingAddress,
172
175
  BlueFolder,
173
176
  BlueFolderShared,
177
+ BookOpened,
174
178
  Box,
175
179
  Building,
176
180
  Calc,
177
181
  Calendar2,
178
182
  Catalog,
183
+ ChatBubble,
179
184
  Check,
180
185
  CheckInCircle,
181
186
  CheckPen,
@@ -198,6 +203,7 @@ export {
198
203
  DiningRoom,
199
204
  DocIcon,
200
205
  Document,
206
+ Document2,
201
207
  Drop,
202
208
  DropCalendar,
203
209
  Electricity,
@@ -317,6 +323,7 @@ export {
317
323
  }
318
324
 
319
325
  export * from './alerts'
326
+ export * from './animations'
320
327
  export * from './appliances'
321
328
  export * from './clouds-animation'
322
329
  export * from './form'
@@ -167,6 +167,10 @@
167
167
  "recipient": "recipient",
168
168
  "title": "Contacts"
169
169
  },
170
+ "counter": {
171
+ "of": "of",
172
+ "showing": "Showing"
173
+ },
170
174
  "daysOfWeek": {
171
175
  "1": "Monday",
172
176
  "2": "Tuesday",
@@ -288,6 +292,7 @@
288
292
  },
289
293
  "forms": {
290
294
  "addAll": "Add All",
295
+ "all": "All",
291
296
  "apartmentNumber": "Apartment, Suite, Unit, Building, Floor, etc.",
292
297
  "city": "City",
293
298
  "companyEmail": "Company email",
@@ -311,6 +316,7 @@
311
316
  "lastName": "Last name",
312
317
  "link": "Link",
313
318
  "message": "Message",
319
+ "new": "New",
314
320
  "moreDetails": "Add Optional Details",
315
321
  "obs": "Additional information",
316
322
  "password": "Password",
@@ -465,7 +471,11 @@
465
471
  "altImage": "image"
466
472
  },
467
473
  "inbox": {
468
- "forwardTo": "To use Receipt Autofiler, simply forward reciepts to "
474
+ "createReply": "Create Reply",
475
+ "enterContent": "Enter content",
476
+ "forwardTo": "To use Receipt Autofiler, simply forward reciepts to ",
477
+ "from": "From: ",
478
+ "message": "Message"
469
479
  },
470
480
  "launchpad": {
471
481
  "menu": {
@@ -628,15 +638,6 @@
628
638
  "shared": "Shared",
629
639
  "updated": "Updated"
630
640
  },
631
- "types": {
632
- "contact": "Contact",
633
- "file": "File",
634
- "folder": "Folder",
635
- "receipt": "Receipt",
636
- "user": "User",
637
- "tile": "Tile",
638
- "payment": "Payment"
639
- },
640
641
  "title": "Notifications"
641
642
  },
642
643
  "partner": {
@@ -1,16 +1,16 @@
1
- import {
2
- Airplane,
3
- Cloud1,
4
- Cloud2,
5
- Cloud3,
6
- TreesCrop,
7
- TreesCrop2,
8
- } from '@/assets/images'
1
+ import { Fragment, PropsWithChildren, useEffect, useState } from 'react'
2
+ import { Airplane, Cloud1, Cloud2, Cloud3 } from '@/assets/images'
9
3
  import { useWindowDimensions } from '@/hooks'
10
4
  import { colors } from '@/theme/colors'
5
+ import {
6
+ TimeOfDay,
7
+ getTimeOfDay,
8
+ TimeOfDaySeason,
9
+ getTimeOfDaySeason,
10
+ } from '@/utils'
11
11
  import { Box, Image } from '@chakra-ui/react'
12
12
  import { keyframes } from '@emotion/react'
13
- import { Fragment, PropsWithChildren } from 'react'
13
+ import { WeatherTrees } from './WeatherTrees'
14
14
 
15
15
  export const moveLeftToRightAirplane = keyframes`
16
16
  0% {
@@ -77,6 +77,22 @@ export const moveRightToLeftWithFade3 = keyframes`
77
77
  }
78
78
  `
79
79
  export const CloudsAnimation = ({ children }: PropsWithChildren<{}>) => {
80
+ const [timeOfDay, setTimeOfDay] = useState<TimeOfDay>(getTimeOfDay())
81
+ const timeOfDaySeason = getTimeOfDaySeason()
82
+ const gradients: Record<TimeOfDay, string> = {
83
+ day: colors.dayGradient,
84
+ evening: colors.eveningGradient,
85
+ morning: colors.morningGradient,
86
+ night: colors.nightGradient,
87
+ }
88
+
89
+ useEffect(() => {
90
+ const interval = setInterval(() => {
91
+ setTimeOfDay(getTimeOfDay())
92
+ }, 60000)
93
+
94
+ return () => clearInterval(interval)
95
+ }, [])
80
96
  const {
81
97
  windowDimensions: { width },
82
98
  } = useWindowDimensions()
@@ -88,7 +104,7 @@ export const CloudsAnimation = ({ children }: PropsWithChildren<{}>) => {
88
104
  minH="100vh"
89
105
  w="full"
90
106
  position="relative"
91
- bgGradient={colors.skyGradient}
107
+ bgGradient={gradients[timeOfDay]}
92
108
  overflowX="hidden"
93
109
  overflowY="scroll"
94
110
  >
@@ -156,22 +172,23 @@ export const CloudsAnimation = ({ children }: PropsWithChildren<{}>) => {
156
172
  animation={`${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite`}
157
173
  zIndex="1"
158
174
  />
159
- <Image
160
- src={TreesCrop}
175
+ <WeatherTrees
176
+ timeOfDaySeason={timeOfDaySeason}
161
177
  position="fixed"
162
178
  bottom="0"
163
- right="2"
179
+ right="0"
164
180
  w="auto"
165
- h="80px"
181
+ h="100px"
166
182
  zIndex="1"
167
183
  />
168
- <Image
169
- src={TreesCrop2}
184
+ <WeatherTrees
185
+ timeOfDaySeason={timeOfDaySeason}
170
186
  position="fixed"
171
187
  bottom="0"
172
188
  left="2"
173
189
  w="auto"
174
- h="80px"
190
+ transform="rotateY(180deg)"
191
+ h="100px"
175
192
  zIndex="1"
176
193
  />
177
194
  </Box>
@@ -0,0 +1,37 @@
1
+ import {
2
+ TreesDay,
3
+ TreesDayFall,
4
+ TreesDayWinter,
5
+ TreesEvening,
6
+ TreesMorning,
7
+ TreesNight,
8
+ } from '@/assets/images'
9
+ import { TimeOfDaySeason } from '@/utils'
10
+ import { Image, ImageProps } from '@chakra-ui/react'
11
+
12
+ export interface WeatherTreesI extends ImageProps {
13
+ timeOfDaySeason: TimeOfDaySeason
14
+ }
15
+
16
+ export const WeatherTrees = ({ timeOfDaySeason, ...props }: WeatherTreesI) => {
17
+ const images: Record<TimeOfDaySeason, string> = {
18
+ 'day-summer': TreesDay,
19
+ 'day-fall': TreesDayFall,
20
+ 'day-winter': TreesDayWinter,
21
+ 'day-spring': TreesDay,
22
+ 'evening-summer': TreesEvening,
23
+ 'evening-fall': TreesEvening,
24
+ 'evening-winter': TreesDayWinter,
25
+ 'evening-spring': TreesEvening,
26
+ 'morning-summer': TreesMorning,
27
+ 'morning-fall': TreesMorning,
28
+ 'morning-winter': TreesDayWinter,
29
+ 'morning-spring': TreesMorning,
30
+ 'night-summer': TreesNight,
31
+ 'night-fall': TreesNight,
32
+ 'night-winter': TreesDayWinter,
33
+ 'night-spring': TreesNight,
34
+ }
35
+
36
+ return <Image {...props} src={images[timeOfDaySeason]} alt="trees" />
37
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './CloudsAnimation'
2
2
  export * from './HomieAnimation'
3
+ export * from './WeatherTrees'
@@ -19,7 +19,7 @@ export const TextBadge = ({
19
19
  py="0.1rem"
20
20
  px="0.5rem"
21
21
  _hover={{
22
- width,
22
+ width: showAnimation ? width : 'fit-content',
23
23
  }}
24
24
  transition="all 0.2s ease-in-out"
25
25
  >
@@ -1,9 +1,7 @@
1
1
  import { t } from 'i18next'
2
- import { Box, Flex, Text, chakra } from '@chakra-ui/react'
3
- import { BeatLoader } from 'react-spinners'
4
- import { colors } from '@/theme/colors'
5
2
  import { FilesCounterI } from '@/interfaces'
6
3
  import { pluralize } from '@/utils'
4
+ import { BaseCounter } from '@/components'
7
5
 
8
6
  export const FilesCounter = ({
9
7
  totalFiles,
@@ -22,23 +20,10 @@ export const FilesCounter = ({
22
20
  )} ${totalFiles} ${files}`
23
21
 
24
22
  return (
25
- <Box w="100%">
26
- <Flex justify="space-between" align="center">
27
- {!uploading && (
28
- <Text variant="home">{totalFiles > 1 ? moreThanOne : one}</Text>
29
- )}
30
- {uploading && (
31
- <Text variant="home">
32
- <chakra.span fontWeight="bold">
33
- {t('folderSharing.uploading')}
34
- </chakra.span>
35
- {` ${uploadingFiles} ${files}`}
36
- <chakra.span ml="2">
37
- <BeatLoader size="4px" color={colors.blue[6]} />
38
- </chakra.span>
39
- </Text>
40
- )}
41
- </Flex>
42
- </Box>
23
+ <BaseCounter
24
+ text={totalFiles > 1 ? moreThanOne : one}
25
+ uploading={uploading}
26
+ uploadingText={` ${uploadingFiles ?? ''} ${files}`}
27
+ />
43
28
  )
44
29
  }
@@ -5,9 +5,10 @@ export const FooterButtons = ({
5
5
  button1,
6
6
  button2,
7
7
  button3,
8
+ px = 'base',
8
9
  }: FooterButtonsI) => {
9
10
  return (
10
- <Flex align="center" justifyContent="space-between" w="full" px="base">
11
+ <Flex align="center" justifyContent="space-between" w="full" px={px}>
11
12
  <Flex align="center" gap="2">
12
13
  {button1 ? (
13
14
  <Button
@@ -0,0 +1,30 @@
1
+ import { t } from 'i18next'
2
+ import { Box, chakra, Flex, Text } from '@chakra-ui/react'
3
+ import { BeatLoader } from 'react-spinners'
4
+ import { colors } from '@/theme/colors'
5
+ import { BaseCounterI } from '@/interfaces'
6
+
7
+ export const BaseCounter = ({
8
+ text,
9
+ uploading,
10
+ uploadingText,
11
+ }: BaseCounterI) => {
12
+ return (
13
+ <Box w="100%">
14
+ <Flex justify="space-between" align="center">
15
+ {!uploading && <Text variant="home">{text}</Text>}
16
+ {uploading && (
17
+ <Text variant="home">
18
+ <chakra.span fontWeight="bold">
19
+ {t('folderSharing.uploading')}
20
+ </chakra.span>
21
+ {uploadingText}
22
+ <chakra.span ml="2">
23
+ <BeatLoader size="4px" color={colors.blue[6]} />
24
+ </chakra.span>
25
+ </Text>
26
+ )}
27
+ </Flex>
28
+ </Box>
29
+ )
30
+ }
@@ -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>
@@ -2,5 +2,6 @@ export * from './dynamicForm'
2
2
  export * from './readOnly'
3
3
  export * from './Address'
4
4
  export * from './AddressStored'
5
+ export * from './BaseCounter'
5
6
  export * from './Collapsible'
6
7
  export * from './EditItemName'
@@ -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
  }
@@ -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"