@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
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
package/package.json
CHANGED
|
@@ -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'
|
|
@@ -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,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 {
|
|
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={
|
|
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
|
-
<
|
|
160
|
-
|
|
175
|
+
<WeatherTrees
|
|
176
|
+
timeOfDaySeason={timeOfDaySeason}
|
|
161
177
|
position="fixed"
|
|
162
178
|
bottom="0"
|
|
163
|
-
right="
|
|
179
|
+
right="0"
|
|
164
180
|
w="auto"
|
|
165
|
-
h="
|
|
181
|
+
h="100px"
|
|
166
182
|
zIndex="1"
|
|
167
183
|
/>
|
|
168
|
-
<
|
|
169
|
-
|
|
184
|
+
<WeatherTrees
|
|
185
|
+
timeOfDaySeason={timeOfDaySeason}
|
|
170
186
|
position="fixed"
|
|
171
187
|
bottom="0"
|
|
172
188
|
left="2"
|
|
173
189
|
w="auto"
|
|
174
|
-
|
|
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,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
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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=
|
|
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' ? '
|
|
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>
|
|
@@ -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
|
|
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 {
|
|
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 = ({
|
|
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
|
+
}
|