@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.
- package/dist/assets/images/animations/index.d.ts +7 -0
- package/dist/assets/images/animations/index.js +7 -0
- package/dist/assets/images/animations/index.ts +15 -0
- package/dist/assets/images/animations/trees-cloudy.png +0 -0
- package/dist/assets/images/animations/trees-day-fall.png +0 -0
- package/dist/assets/images/animations/trees-day-summer.png +0 -0
- package/dist/assets/images/animations/trees-day-winter.png +0 -0
- package/dist/assets/images/animations/trees-evening.png +0 -0
- package/dist/assets/images/animations/trees-morning.png +0 -0
- package/dist/assets/images/animations/trees-night.png +0 -0
- package/dist/assets/images/book.svg +25 -0
- package/dist/assets/images/chat-bubble.svg +8 -0
- package/dist/assets/images/document2.svg +14 -0
- package/dist/assets/images/index.d.ts +5 -1
- package/dist/assets/images/index.js +5 -1
- package/dist/assets/images/index.ts +7 -0
- package/dist/assets/locales/en/index.json +11 -10
- package/dist/components/animations/CloudsAnimation.js +19 -3
- package/dist/components/animations/WeatherTrees.d.ts +6 -0
- package/dist/components/animations/WeatherTrees.js +36 -0
- package/dist/components/animations/index.d.ts +1 -0
- package/dist/components/animations/index.js +1 -0
- package/dist/components/badge/TextBadge.js +1 -1
- package/dist/components/folderPanel/folderDetails/FilesCounter.js +3 -5
- package/dist/components/footers/FooterButtons.d.ts +1 -1
- package/dist/components/footers/FooterButtons.js +2 -2
- package/dist/components/forms/BaseCounter.d.ts +2 -0
- package/dist/components/forms/BaseCounter.js +8 -0
- package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.js +1 -1
- package/dist/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
- package/dist/components/forms/index.d.ts +1 -0
- package/dist/components/forms/index.js +1 -0
- package/dist/components/forms/readOnly/ReadOnlyDynamicForm.d.ts +1 -1
- package/dist/components/forms/readOnly/ReadOnlyDynamicForm.js +6 -4
- package/dist/components/forms/readOnly/fields/ReadOnlyGrid.d.ts +1 -1
- package/dist/components/forms/readOnly/fields/ReadOnlyGrid.js +7 -3
- package/dist/components/forms/readOnly/fields/ReadOnlyNotes.d.ts +2 -0
- package/dist/components/forms/readOnly/fields/ReadOnlyNotes.js +5 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.js +1 -1
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.d.ts +2 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.js +11 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.js +1 -1
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.d.ts +2 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.js +11 -0
- package/dist/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
- package/dist/components/forms/readOnly/fields/homeItem/index.d.ts +2 -0
- package/dist/components/forms/readOnly/fields/homeItem/index.js +2 -0
- package/dist/components/forms/readOnly/fields/homeItem/index.ts +2 -0
- package/dist/components/forms/readOnly/fields/index.d.ts +1 -0
- package/dist/components/forms/readOnly/fields/index.js +1 -0
- package/dist/components/homeAssistant/HomeAssistantWrapper.d.ts +1 -1
- package/dist/components/homeAssistant/HomeAssistantWrapper.js +20 -6
- package/dist/components/homeItems/ViewingHomeItemPanel.d.ts +1 -1
- package/dist/components/homeItems/ViewingHomeItemPanel.js +2 -2
- package/dist/components/inboxTile/InboxForwardBanner.js +2 -2
- package/dist/components/inboxTile/index.d.ts +1 -0
- package/dist/components/inboxTile/index.js +1 -0
- package/dist/components/inboxTile/panel/MessageCard.d.ts +2 -0
- package/dist/components/inboxTile/panel/MessageCard.js +14 -0
- package/dist/components/inboxTile/panel/MessageChatPanel.d.ts +4 -0
- package/dist/components/inboxTile/panel/MessageChatPanel.js +38 -0
- package/dist/components/inboxTile/panel/MessagePanel.d.ts +2 -0
- package/dist/components/inboxTile/panel/MessagePanel.js +12 -0
- package/dist/components/inboxTile/panel/index.d.ts +3 -0
- package/dist/components/inboxTile/panel/index.js +3 -0
- package/dist/components/myHomes/WrapperWithShadow.js +1 -1
- package/dist/components/myHomes/steps/MyHomeDetails.d.ts +1 -0
- package/dist/components/myHomes/steps/MyHomeDetails.js +1 -1
- package/dist/components/notifications/NotificationCard.d.ts +1 -1
- package/dist/components/notifications/NotificationCard.js +2 -47
- package/dist/components/rooms/VideosCounter.js +3 -5
- package/dist/helpers/forms/dynamicForm.helper.js +2 -1
- package/dist/hooks/inbox/index.d.ts +1 -0
- package/dist/hooks/inbox/index.js +1 -0
- package/dist/hooks/inbox/useMessagePanel.d.ts +7 -0
- package/dist/hooks/inbox/useMessagePanel.js +17 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/notifications/useNotificationsPanel.js +0 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/appBar/UserProfile.interface.d.ts +2 -2
- package/dist/interfaces/footers/FooterButtons.interface.d.ts +1 -0
- package/dist/interfaces/forms/BaseCounter.interface.d.ts +5 -0
- package/dist/interfaces/forms/BaseCounter.interface.js +1 -0
- package/dist/interfaces/forms/dynamicForm/DynamicForm.interface.d.ts +4 -3
- package/dist/interfaces/forms/index.d.ts +1 -0
- package/dist/interfaces/forms/index.js +1 -0
- package/dist/interfaces/forms/readOnly/ReadOnlyGrid.interface.d.ts +2 -1
- package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.d.ts +4 -0
- package/dist/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.js +1 -0
- package/dist/interfaces/forms/readOnly/homeItem/index.d.ts +1 -0
- package/dist/interfaces/forms/readOnly/homeItem/index.js +1 -0
- package/dist/interfaces/homeItems/ViewingHomeItemPanel.interface.d.ts +1 -0
- package/dist/interfaces/inboxTile/MessageCard.interface.d.ts +16 -0
- package/dist/interfaces/inboxTile/MessageCard.interface.js +1 -0
- package/dist/interfaces/inboxTile/MessageChatPanel.interface.d.ts +12 -0
- package/dist/interfaces/inboxTile/MessageChatPanel.interface.js +1 -0
- package/dist/interfaces/inboxTile/MessagePanel.interface.d.ts +6 -0
- package/dist/interfaces/inboxTile/MessagePanel.interface.js +1 -0
- package/dist/interfaces/inboxTile/index.d.ts +3 -0
- package/dist/interfaces/inboxTile/index.js +3 -0
- package/dist/interfaces/notifications/NotificationsPanel.interface.d.ts +3 -2
- package/dist/mocks/forms/dynamicForm.mock.js +60 -0
- package/dist/mocks/inbox/index.d.ts +1 -0
- package/dist/mocks/inbox/index.js +1 -0
- package/dist/mocks/inbox/messages.d.ts +2 -0
- package/dist/mocks/inbox/messages.js +136 -0
- package/dist/mocks/index.d.ts +1 -0
- package/dist/mocks/index.js +1 -0
- package/dist/mocks/notifications/notifications.mock.js +4 -4
- package/dist/stories/assets/Illustrations.stories.js +2 -2
- package/dist/stories/homeItems/ViewingHomeItem.stories.js +1 -0
- package/dist/stories/inboxTile/MessagePanel.stories.d.ts +5 -0
- package/dist/stories/inboxTile/MessagePanel.stories.js +24 -0
- package/dist/theme/colors.d.ts +4 -1
- package/dist/theme/colors.js +4 -1
- package/dist/utils/Animations.utils.d.ts +6 -0
- package/dist/utils/Animations.utils.js +31 -0
- package/dist/utils/Avatars.utils.d.ts +1 -1
- package/dist/utils/Avatars.utils.js +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/assets/images/animations/index.ts +15 -0
- package/src/assets/images/animations/trees-cloudy.png +0 -0
- package/src/assets/images/animations/trees-day-fall.png +0 -0
- package/src/assets/images/animations/trees-day-summer.png +0 -0
- package/src/assets/images/animations/trees-day-winter.png +0 -0
- package/src/assets/images/animations/trees-evening.png +0 -0
- package/src/assets/images/animations/trees-morning.png +0 -0
- package/src/assets/images/animations/trees-night.png +0 -0
- package/src/assets/images/book.svg +25 -0
- package/src/assets/images/chat-bubble.svg +8 -0
- package/src/assets/images/document2.svg +14 -0
- package/src/assets/images/index.ts +7 -0
- package/src/assets/locales/en/index.json +11 -10
- package/src/components/animations/CloudsAnimation.tsx +34 -17
- package/src/components/animations/WeatherTrees.tsx +37 -0
- package/src/components/animations/index.ts +1 -0
- package/src/components/badge/TextBadge.tsx +1 -1
- package/src/components/folderPanel/folderDetails/FilesCounter.tsx +6 -21
- package/src/components/footers/FooterButtons.tsx +2 -1
- package/src/components/forms/BaseCounter.tsx +30 -0
- package/src/components/forms/dynamicForm/fields/uiFields/TileCta.tsx +4 -2
- package/src/components/forms/index.ts +1 -0
- package/src/components/forms/readOnly/ReadOnlyDynamicForm.tsx +8 -2
- package/src/components/forms/readOnly/fields/ReadOnlyGrid.tsx +32 -3
- package/src/components/forms/readOnly/fields/ReadOnlyNotes.tsx +16 -0
- package/src/components/forms/readOnly/fields/homeItem/ReadOnlyAppliances.tsx +1 -1
- package/src/components/forms/readOnly/fields/homeItem/ReadOnlyGuidelines.tsx +33 -0
- package/src/components/forms/readOnly/fields/homeItem/ReadOnlyHomeItemImages.tsx +1 -0
- package/src/components/forms/readOnly/fields/homeItem/ReadOnlyItemRelated.tsx +40 -0
- package/src/components/forms/readOnly/fields/homeItem/index.ts +2 -0
- package/src/components/forms/readOnly/fields/index.ts +1 -0
- package/src/components/homeAssistant/HomeAssistantWrapper.tsx +31 -18
- package/src/components/homeItems/ViewingHomeItemPanel.tsx +2 -1
- package/src/components/inboxTile/InboxForwardBanner.tsx +5 -4
- package/src/components/inboxTile/index.ts +1 -0
- package/src/components/inboxTile/panel/MessageCard.tsx +112 -0
- package/src/components/inboxTile/panel/MessageChatPanel.tsx +105 -0
- package/src/components/inboxTile/panel/MessagePanel.tsx +64 -0
- package/src/components/inboxTile/panel/index.ts +3 -0
- package/src/components/myHomes/WrapperWithShadow.tsx +1 -0
- package/src/components/myHomes/steps/MyHomeDetails.tsx +1 -1
- package/src/components/notifications/NotificationCard.tsx +2 -106
- package/src/components/onboarding/pages/SignIn.tsx +1 -0
- package/src/components/rooms/VideosCounter.tsx +2 -18
- package/src/helpers/forms/dynamicForm.helper.ts +2 -0
- package/src/hooks/inbox/index.ts +1 -0
- package/src/hooks/inbox/useMessagePanel.ts +23 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/notifications/useNotificationsPanel.ts +0 -5
- package/src/index.ts +2 -0
- package/src/interfaces/appBar/UserProfile.interface.ts +2 -2
- package/src/interfaces/footers/FooterButtons.interface.ts +2 -1
- package/src/interfaces/forms/BaseCounter.interface.ts +5 -0
- package/src/interfaces/forms/dynamicForm/DynamicForm.interface.ts +9 -1
- package/src/interfaces/forms/index.ts +1 -0
- package/src/interfaces/forms/readOnly/ReadOnlyGrid.interface.ts +3 -1
- package/src/interfaces/forms/readOnly/homeItem/ReadOnlyGuidelines.interface.ts +6 -0
- package/src/interfaces/forms/readOnly/homeItem/index.ts +1 -0
- package/src/interfaces/homeItems/ViewingHomeItemPanel.interface.ts +1 -0
- package/src/interfaces/inboxTile/MessageCard.interface.ts +18 -0
- package/src/interfaces/inboxTile/MessageChatPanel.interface.ts +13 -0
- package/src/interfaces/inboxTile/MessagePanel.interface.ts +7 -0
- package/src/interfaces/inboxTile/index.ts +3 -0
- package/src/interfaces/notifications/NotificationsPanel.interface.ts +3 -9
- package/src/mocks/forms/dynamicForm.mock.ts +60 -0
- package/src/mocks/inbox/index.ts +1 -0
- package/src/mocks/inbox/messages.ts +139 -0
- package/src/mocks/index.ts +1 -0
- package/src/mocks/notifications/notifications.mock.ts +4 -4
- package/src/stories/assets/Illustrations.stories.tsx +4 -0
- package/src/stories/homeItems/ViewingHomeItem.stories.tsx +1 -0
- package/src/stories/inboxTile/MessagePanel.stories.tsx +47 -0
- package/src/theme/colors.ts +4 -1
- package/src/utils/Animations.utils.ts +39 -0
- package/src/utils/Avatars.utils.ts +2 -2
- package/src/utils/index.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export { TreesDay, TreesDayFall, TreesDayWinter, TreesEvening, TreesMorning, TreesNight, };
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export { TreesDay, TreesDayFall, TreesDayWinter, TreesEvening, TreesMorning, TreesNight, };
|
|
@@ -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
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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';
|
|
@@ -155,8 +158,9 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
155
158
|
import WizardQuick from './wizard-quick.svg';
|
|
156
159
|
import YellowFolder from './yellow-folder.svg';
|
|
157
160
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
158
|
-
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, Box, Building, Calc, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
161
|
+
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
159
162
|
export * from './alerts';
|
|
163
|
+
export * from './animations';
|
|
160
164
|
export * from './appliances';
|
|
161
165
|
export * from './clouds-animation';
|
|
162
166
|
export * from './form';
|
|
@@ -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';
|
|
@@ -155,8 +158,9 @@ import WizardDetailed from './wizard-detailed.svg';
|
|
|
155
158
|
import WizardQuick from './wizard-quick.svg';
|
|
156
159
|
import YellowFolder from './yellow-folder.svg';
|
|
157
160
|
import YellowFolderUnshared from './yellow-folder-unshared.svg';
|
|
158
|
-
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, Box, Building, Calc, Calendar2, Catalog, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
161
|
+
export { AlertDelete, AlertDeletePurple, Arrow, Batery, Bathroom, Battery, Battery2, Bedroom, BgBlue, BgLogo, Billing, BillingAddress, BlueFolder, BlueFolderShared, BookOpened, Box, Building, Calc, Calendar2, Catalog, ChatBubble, Check, CheckInCircle, CheckPen, Chemistry, CircleFace, Cleaning, Closet, Clouds, Co2, Company, ComputerReport, Confirmation, Construction, Contacts, Contacts2, Contributor, CreditCard, Detector, Diamond, DiningRoom, DocIcon, Document, Document2, Drop, DropCalendar, Electricity, Entryway, Exclamation, Face, Feedback, FileUploading, Finance, Fire, Flag, FormSent, Foundation, Garage, GearPencil, GearTime, GenericField, GlassWater, GreenFolder, Group, Groups, GuestBedroom, Hallway, HandPencil, Heater, Help, HomeAddress, Homeowner, House, HouseHands, IA, ImageDefault, ImgIcon, Inbox, Insect, Kitchen, Laundry, Light, LivingRoom, Loading, Location, LogoCompany, LogoSmall, MagnifyingGlassReport, Manager, MasterBedroom, Member, Message, MobileDrop, Money, Mudroom, NeedHelp, Office, Painting, PartnerGeneric, Patio, PdfIcon, PersonMail, Plate, Play, Plus, Pool, Pool2, PressureWasher, Price, Profile, ProgressReport, Proposal, RealEstate, Receipt, ReceiptBg, ReceiptHouse, Receipts, Recipient, Records, Register, RelationshipHome, ResendPassword, Rocket, Roof2, Security, Send, ShareHome, ShareWith, SixtyEight, SMS, Social, SolarPanel, Speaker, Sprinkler, Structure, Subscription, Target, Temperature, Theatre, Thumbnail, ThumbnailSmall, ThumbUp, Trash, Trees, TreesCrop, TreesCrop2, VideoIcon, VideoPlay, VioletFolder, Warning, Warranty, WellDone, WholeHome, Wind, WindWhite, Wizard, WizardDetailed, WizardQuick, YellowFolder, YellowFolderUnshared, };
|
|
159
162
|
export * from './alerts';
|
|
163
|
+
export * from './animations';
|
|
160
164
|
export * from './appliances';
|
|
161
165
|
export * from './clouds-animation';
|
|
162
166
|
export * from './form';
|
|
@@ -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
|
-
"
|
|
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,10 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment, useEffect, useState } from 'react';
|
|
3
|
+
import { Airplane, Cloud1, Cloud2, Cloud3 } from '../../assets/images';
|
|
3
4
|
import { useWindowDimensions } from '../../hooks';
|
|
4
5
|
import { colors } from '../../theme/colors';
|
|
6
|
+
import { getTimeOfDay, getTimeOfDaySeason, } from '../../utils';
|
|
5
7
|
import { Box, Image } from '@chakra-ui/react';
|
|
6
8
|
import { keyframes } from '@emotion/react';
|
|
7
|
-
import {
|
|
9
|
+
import { WeatherTrees } from './WeatherTrees';
|
|
8
10
|
export const moveLeftToRightAirplane = keyframes `
|
|
9
11
|
0% {
|
|
10
12
|
transform: translateX(-100%);
|
|
@@ -66,9 +68,23 @@ export const moveRightToLeftWithFade3 = keyframes `
|
|
|
66
68
|
}
|
|
67
69
|
`;
|
|
68
70
|
export const CloudsAnimation = ({ children }) => {
|
|
71
|
+
const [timeOfDay, setTimeOfDay] = useState(getTimeOfDay());
|
|
72
|
+
const timeOfDaySeason = getTimeOfDaySeason();
|
|
73
|
+
const gradients = {
|
|
74
|
+
day: colors.dayGradient,
|
|
75
|
+
evening: colors.eveningGradient,
|
|
76
|
+
morning: colors.morningGradient,
|
|
77
|
+
night: colors.nightGradient,
|
|
78
|
+
};
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
const interval = setInterval(() => {
|
|
81
|
+
setTimeOfDay(getTimeOfDay());
|
|
82
|
+
}, 60000);
|
|
83
|
+
return () => clearInterval(interval);
|
|
84
|
+
}, []);
|
|
69
85
|
const { windowDimensions: { width }, } = useWindowDimensions();
|
|
70
86
|
const isMobile = width < 768;
|
|
71
87
|
if (isMobile)
|
|
72
88
|
return _jsx(Fragment, { children: "children" });
|
|
73
|
-
return (_jsxs(Box, { minH: "100vh", w: "full", position: "relative", bgGradient:
|
|
89
|
+
return (_jsxs(Box, { minH: "100vh", w: "full", position: "relative", bgGradient: gradients[timeOfDay], overflowX: "hidden", overflowY: "scroll", children: [children, _jsx(Image, { src: Cloud1, position: "fixed", w: "auto", h: "80px", top: "50px", animation: `${moveRightToLeftWithFade3} 400s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Cloud2, position: "fixed", w: "auto", h: "120px", top: "80px", animation: `${moveRightToLeftWithFade3} 200s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Cloud3, position: "fixed", w: "auto", h: "160px", top: "120px", animation: `${moveRightToLeftWithFade3} 130s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Cloud1, position: "fixed", w: "auto", h: "100px", top: "160px", animation: `${moveRightToLeftWithFade2} 400s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Cloud2, position: "fixed", w: "auto", h: "112px", top: "220px", animation: `${moveRightToLeftWithFade2} 200s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Cloud3, position: "fixed", w: "auto", h: "160px", top: "300px", animation: `${moveRightToLeftWithFade2} 130s linear infinite`, zIndex: "1" }), _jsx(Image, { src: Airplane, position: "fixed", w: "auto", h: "40px", top: "85px", animation: `${moveLeftToRightAirplane} 500s cubic-bezier(1, 1, 1, 500) infinite`, zIndex: "1" }), _jsx(WeatherTrees, { timeOfDaySeason: timeOfDaySeason, position: "fixed", bottom: "0", right: "0", w: "auto", h: "100px", zIndex: "1" }), _jsx(WeatherTrees, { timeOfDaySeason: timeOfDaySeason, position: "fixed", bottom: "0", left: "2", w: "auto", transform: "rotateY(180deg)", h: "100px", zIndex: "1" })] }));
|
|
74
90
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TimeOfDaySeason } from '../../utils';
|
|
2
|
+
import { ImageProps } from '@chakra-ui/react';
|
|
3
|
+
export interface WeatherTreesI extends ImageProps {
|
|
4
|
+
timeOfDaySeason: TimeOfDaySeason;
|
|
5
|
+
}
|
|
6
|
+
export declare const WeatherTrees: ({ timeOfDaySeason, ...props }: WeatherTreesI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { TreesDay, TreesDayFall, TreesDayWinter, TreesEvening, TreesMorning, TreesNight, } from '../../assets/images';
|
|
14
|
+
import { Image } from '@chakra-ui/react';
|
|
15
|
+
export const WeatherTrees = (_a) => {
|
|
16
|
+
var { timeOfDaySeason } = _a, props = __rest(_a, ["timeOfDaySeason"]);
|
|
17
|
+
const images = {
|
|
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
|
+
return _jsx(Image, Object.assign({}, props, { src: images[timeOfDaySeason], alt: "trees" }));
|
|
36
|
+
};
|
|
@@ -5,6 +5,6 @@ import { useTextBadge } from '../../hooks';
|
|
|
5
5
|
export const TextBadge = ({ bgColor = 'violet.1', showAnimation = true, text = t('badges.new'), width = '2.6rem', }) => {
|
|
6
6
|
const { badgeWidth } = useTextBadge(width);
|
|
7
7
|
return (_jsx(Box, { bg: bgColor, borderRadius: "base", w: showAnimation ? badgeWidth : 'fit-content', py: "0.1rem", px: "0.5rem", _hover: {
|
|
8
|
-
width,
|
|
8
|
+
width: showAnimation ? width : 'fit-content',
|
|
9
9
|
}, transition: "all 0.2s ease-in-out", children: _jsx(Text, { noOfLines: 1, textColor: "neutral.white", textAlign: "center", fontSize: "0.625rem", fontWeight: "bold", textTransform: "uppercase", children: text }) }));
|
|
10
10
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { t } from 'i18next';
|
|
3
|
-
import { Box, Flex, Text, chakra } from '@chakra-ui/react';
|
|
4
|
-
import { BeatLoader } from 'react-spinners';
|
|
5
|
-
import { colors } from '../../../theme/colors';
|
|
6
3
|
import { pluralize } from '../../../utils';
|
|
4
|
+
import { BaseCounter } from '../..';
|
|
7
5
|
export const FilesCounter = ({ totalFiles, totalShowing, uploading, uploadingFiles, }) => {
|
|
8
6
|
const files = pluralize(totalFiles, t('folderSharing.showing.part4'));
|
|
9
7
|
const moreThanOne = `${t('folderSharing.showing.part1')} ${totalShowing} ${t('folderSharing.showing.part2')} ${totalFiles} ${t('folderSharing.showing.part3')}`;
|
|
10
8
|
const one = `${t('folderSharing.showing.part1')} ${totalShowing} ${t('folderSharing.showing.part2')} ${totalFiles} ${files}`;
|
|
11
|
-
return (_jsx(
|
|
9
|
+
return (_jsx(BaseCounter, { text: totalFiles > 1 ? moreThanOne : one, uploading: uploading, uploadingText: ` ${uploadingFiles !== null && uploadingFiles !== void 0 ? uploadingFiles : ''} ${files}` }));
|
|
12
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FooterButtonsI } from '../../interfaces';
|
|
2
|
-
export declare const FooterButtons: ({ button1, button2, button3, }: FooterButtonsI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const FooterButtons: ({ button1, button2, button3, px, }: FooterButtonsI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Button, Flex } from '@chakra-ui/react';
|
|
3
|
-
export const FooterButtons = ({ button1, button2, button3, }) => {
|
|
4
|
-
return (_jsxs(Flex, { align: "center", justifyContent: "space-between", w: "full", px:
|
|
3
|
+
export const FooterButtons = ({ button1, button2, button3, px = 'base', }) => {
|
|
4
|
+
return (_jsxs(Flex, { align: "center", justifyContent: "space-between", w: "full", px: px, children: [_jsxs(Flex, { align: "center", gap: "2", children: [button1 ? (_jsx(Button, { variant: button1.buttonStyle, onClick: button1.onClick, disabled: button1.isDisabled, isLoading: button1.isLoading, children: button1.label })) : (_jsx(Box, {})), button2 && (_jsx(Button, { variant: button2.buttonStyle, onClick: button2.onClick, disabled: button2.isDisabled, isLoading: button2.isLoading, children: button2.label }))] }), button3 && (_jsx(Button, { variant: button3.buttonStyle, onClick: button3.onClick, disabled: button3.isDisabled, isLoading: button3.isLoading, children: button3.label }))] }));
|
|
5
5
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { t } from 'i18next';
|
|
3
|
+
import { Box, chakra, Flex, Text } from '@chakra-ui/react';
|
|
4
|
+
import { BeatLoader } from 'react-spinners';
|
|
5
|
+
import { colors } from '../../theme/colors';
|
|
6
|
+
export const BaseCounter = ({ text, uploading, uploadingText, }) => {
|
|
7
|
+
return (_jsx(Box, { w: "100%", children: _jsxs(Flex, { justify: "space-between", align: "center", children: [!uploading && _jsx(Text, { variant: "home", children: text }), uploading && (_jsxs(Text, { variant: "home", children: [_jsx(chakra.span, { fontWeight: "bold", children: t('folderSharing.uploading') }), uploadingText, _jsx(chakra.span, { ml: "2", children: _jsx(BeatLoader, { size: "4px", color: colors.blue[6] }) })] }))] }) }));
|
|
8
|
+
};
|
|
@@ -14,5 +14,5 @@ import { Button } from '@chakra-ui/react';
|
|
|
14
14
|
export const TileCta = (_a) => {
|
|
15
15
|
var { callback } = _a, props = __rest(_a, ["callback"]);
|
|
16
16
|
const { type, value } = props;
|
|
17
|
-
return (_jsx(Button, { onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign({}, props)), variant: type === 'primary-cta' ? '
|
|
17
|
+
return (_jsx(Button, { onClick: () => callback === null || callback === void 0 ? void 0 : callback(Object.assign({}, props)), variant: type === 'primary-cta' ? 'primary' : 'secondary', fontSize: "sm", textTransform: "capitalize", px: "none", bg: type === 'primary-cta' ? '' : 'neutral.white', children: value }));
|
|
18
18
|
};
|
|
@@ -6,9 +6,11 @@ export const TileCta = ({ callback, ...props }: TileCtaI) => {
|
|
|
6
6
|
return (
|
|
7
7
|
<Button
|
|
8
8
|
onClick={() => callback?.({ ...props })}
|
|
9
|
-
variant={type === 'primary-cta' ? '
|
|
9
|
+
variant={type === 'primary-cta' ? 'primary' : 'secondary'}
|
|
10
10
|
fontSize="sm"
|
|
11
|
-
|
|
11
|
+
textTransform="capitalize"
|
|
12
|
+
px="none"
|
|
13
|
+
bg={type === 'primary-cta' ? '' : 'neutral.white'}
|
|
12
14
|
>
|
|
13
15
|
{value}
|
|
14
16
|
</Button>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReadOnlyDynamicFormI } from '../../../interfaces';
|
|
2
|
-
export declare const ReadOnlyDynamicForm: ({ form: fields, onEdit, }: ReadOnlyDynamicFormI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ReadOnlyDynamicForm: ({ form: fields, onClick, onEdit, }: ReadOnlyDynamicFormI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createElement as _createElement } from "react";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Box } from '@chakra-ui/react';
|
|
4
|
-
import { ReadOnlyAppliances, ReadOnlyDate, ReadOnlyGrid, ReadOnlyGroup, ReadOnlyInput, ReadOnlyRating, ReadOnlyTextArea, } from '../..';
|
|
4
|
+
import { ReadOnlyAppliances, ReadOnlyDate, ReadOnlyGrid, ReadOnlyGroup, ReadOnlyInput, ReadOnlyNotes, ReadOnlyRating, ReadOnlyTextArea, } from '../..';
|
|
5
5
|
import { fieldIcons } from '../../../helpers';
|
|
6
|
-
export const ReadOnlyDynamicForm = ({ form: fields, onEdit = () => { }, }) => {
|
|
7
|
-
return (_jsx(Box, { bg: "lightBlue.1", children: fields === null || fields === void 0 ? void 0 : fields.map((field) => {
|
|
6
|
+
export const ReadOnlyDynamicForm = ({ form: fields, onClick, onEdit = () => { }, }) => {
|
|
7
|
+
return (_jsx(Box, { bg: "lightBlue.1", overflow: "scroll", children: fields === null || fields === void 0 ? void 0 : fields.map((field) => {
|
|
8
8
|
const { children = [], icon, id, name, type, value } = field;
|
|
9
9
|
const baseProps = {
|
|
10
10
|
key: `${id}-${name}-${value}-${type}`,
|
|
@@ -29,11 +29,13 @@ export const ReadOnlyDynamicForm = ({ form: fields, onEdit = () => { }, }) => {
|
|
|
29
29
|
case 'textarea':
|
|
30
30
|
return _jsx(ReadOnlyTextArea, Object.assign({}, baseProps));
|
|
31
31
|
case 'grid':
|
|
32
|
-
return _jsx(ReadOnlyGrid, { children: children }, id);
|
|
32
|
+
return (_jsx(ReadOnlyGrid, { children: children, onClick: onClick }, id));
|
|
33
33
|
case 'group':
|
|
34
34
|
return _jsx(ReadOnlyGroup, { children: children }, id);
|
|
35
35
|
case 'appliances':
|
|
36
36
|
return _createElement(ReadOnlyAppliances, Object.assign({}, field, { key: id, onEdit: onEdit }));
|
|
37
|
+
case 'notes':
|
|
38
|
+
return _createElement(ReadOnlyNotes, Object.assign({}, field, { key: id }));
|
|
37
39
|
default:
|
|
38
40
|
return null;
|
|
39
41
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReadOnlyGridI } from '../../../../interfaces';
|
|
2
|
-
export declare const ReadOnlyGrid: ({ children, ...props }: ReadOnlyGridI) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ReadOnlyGrid: ({ children, onClick, ...props }: ReadOnlyGridI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { Flex } from '@chakra-ui/react';
|
|
14
|
-
import { ReadOnlyDate, ReadOnlyInput } from '../../..';
|
|
14
|
+
import { ReadOnlyDate, ReadOnlyGuidelines, ReadOnlyInput, ReadOnlyItemRelated, } from '../../..';
|
|
15
15
|
import { fieldIcons } from '../../../../helpers';
|
|
16
16
|
export const ReadOnlyGrid = (_a) => {
|
|
17
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
18
|
-
return (_jsx(Flex, Object.assign({ align: "stretch", gap: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", p: "base" }, props, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type, icon }) => {
|
|
17
|
+
var { children, onClick } = _a, props = __rest(_a, ["children", "onClick"]);
|
|
18
|
+
return (_jsx(Flex, Object.assign({ align: "stretch", gap: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", p: "base" }, props, { children: children === null || children === void 0 ? void 0 : children.map(({ children, id, name, value, type, icon }) => {
|
|
19
19
|
const baseProps = {
|
|
20
20
|
key: `${id}-${name}-${value}-${type}`,
|
|
21
21
|
id,
|
|
@@ -34,6 +34,10 @@ export const ReadOnlyGrid = (_a) => {
|
|
|
34
34
|
return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" })));
|
|
35
35
|
case 'date':
|
|
36
36
|
return _jsx(ReadOnlyDate, Object.assign({}, baseProps, { name: name, p: "0" }));
|
|
37
|
+
case 'guidelines':
|
|
38
|
+
return (_jsx(ReadOnlyGuidelines, { name: name, children: children, onClick: onClick }, id));
|
|
39
|
+
case 'item-related':
|
|
40
|
+
return (_jsx(ReadOnlyItemRelated, { name: name, children: children, onClick: onClick }, id));
|
|
37
41
|
default:
|
|
38
42
|
return null;
|
|
39
43
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Stack, Text } from '@chakra-ui/react';
|
|
3
|
+
export const ReadOnlyNotes = ({ name, value, }) => {
|
|
4
|
+
return (_jsxs(Stack, { p: "base", spacing: "base", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(Text, { fontFamily: "secondary", children: value })] }));
|
|
5
|
+
};
|
|
@@ -5,7 +5,7 @@ import { colors } from '../../../../../theme/colors';
|
|
|
5
5
|
export const ReadOnlyAppliances = ({ description, id, name, children, onEdit, value, }) => {
|
|
6
6
|
const rating = children === null || children === void 0 ? void 0 : children.find(({ type }) => type === 'rating');
|
|
7
7
|
const images = children === null || children === void 0 ? void 0 : children.find(({ type }) => type === 'images');
|
|
8
|
-
return (_jsxs(Stack, { spacing: "base", p: "base", children: [_jsxs(Flex, { justify: "space-between", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(IconButton, { "aria-label": "Edit appliance", variant: "ghost", w: "fit-content", icon: _jsx(Edit, { size: 18, stroke: colors.blue[3] }), onClick: () => onEdit(id) })] }), _jsxs(Flex, { gap: "base", children: [_jsx(ReadOnlyHomeItemImages, Object.assign({}, images)), _jsxs(Stack, { spacing: "4", flex: "1", children: [_jsx(ReadOnlyHomeItemRating, Object.assign({}, rating)), _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "22px", fontWeight: "semibold", children: value }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", children: description })] }), _jsx(Box, { flex: "1", borderBottom: "1px dashed", borderColor: "lightBlue.6", h: "1px" }), _jsx(Box, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type }) => {
|
|
8
|
+
return (_jsxs(Stack, { spacing: "base", p: "base", bg: "neutral.white", mt: "2px", children: [_jsxs(Flex, { justify: "space-between", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: name }), _jsx(IconButton, { "aria-label": "Edit appliance", variant: "ghost", w: "fit-content", icon: _jsx(Edit, { size: 18, stroke: colors.blue[3] }), onClick: () => onEdit(id) })] }), _jsxs(Flex, { gap: "base", children: [_jsx(ReadOnlyHomeItemImages, Object.assign({}, images)), _jsxs(Stack, { spacing: "4", flex: "1", children: [_jsx(ReadOnlyHomeItemRating, Object.assign({}, rating)), _jsxs(Stack, { spacing: "base", children: [_jsx(Text, { fontSize: "22px", fontWeight: "semibold", children: value }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", children: description })] }), _jsx(Box, { flex: "1", borderBottom: "1px dashed", borderColor: "lightBlue.6", h: "1px" }), _jsx(Box, { children: children === null || children === void 0 ? void 0 : children.map(({ id, name, value, type }) => {
|
|
9
9
|
const baseProps = {
|
|
10
10
|
key: `${id}-${name}-${value}-${type}`,
|
|
11
11
|
id,
|
|
@@ -19,7 +19,7 @@ export const ReadOnlyAppliances = ({
|
|
|
19
19
|
const rating = children?.find(({ type }) => type === 'rating')
|
|
20
20
|
const images = children?.find(({ type }) => type === 'images')
|
|
21
21
|
return (
|
|
22
|
-
<Stack spacing="base" p="base">
|
|
22
|
+
<Stack spacing="base" p="base" bg="neutral.white" mt="2px">
|
|
23
23
|
<Flex justify="space-between">
|
|
24
24
|
<Text fontSize="xs" textTransform="uppercase">
|
|
25
25
|
{name}
|