@homefile/components-v2 2.14.5 → 2.14.6
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/components/homeBoard/HomeCardRecords.js +1 -1
- package/dist/components/inboxTile/InboxForwardBanner.js +1 -1
- package/dist/components/valueMonitor/ValueMonitor.js +1 -1
- package/dist/helpers/homeAssistant/HomeAssistant.helper.js +1 -1
- package/dist/stories/homeAssistant/HomeAssistantButton.stories.js +1 -1
- package/package.json +1 -1
- package/src/components/homeBoard/HomeCardRecords.tsx +2 -2
- package/src/components/inboxTile/InboxForwardBanner.tsx +1 -1
- package/src/components/valueMonitor/ValueMonitor.tsx +1 -1
- package/src/helpers/homeAssistant/HomeAssistant.helper.tsx +1 -1
- package/src/stories/homeAssistant/HomeAssistantButton.stories.tsx +1 -1
|
@@ -19,7 +19,7 @@ export const HomeCardRecords = ({ records = {}, onAddRecords, onViewDetails, })
|
|
|
19
19
|
return _jsx(AddHomeRecords, { onAddRecords: onAddRecords });
|
|
20
20
|
}
|
|
21
21
|
return (_jsx(Box, { p: "base", children: _jsxs(Container, { children: [_jsx(Box, { children: _jsx(Grid, { templateColumns: "repeat(2, 1fr)", templateRows: "repeat(4, 1fr)", gridGap: "base", rowGap: "1", p: "base", borderBottom: "1px solid", borderColor: "lightBlue.2", autoFlow: "column", children: recordsMapped &&
|
|
22
|
-
Object.entries(recordsMapped).map(([label, value = '']) => (_jsx(GridItem, { children: _jsxs(Flex, { children: [_jsx(Text, { fontFamily: "secondary", color: "gray.2", fontSize: "xs", noOfLines: 1, minW: "fit-content", lineHeight: "1", children: label }), _jsx(Text, { fontFamily: "secondary", fontWeight: "semibold", textAlign: "right", fontSize: "xs", noOfLines: 1, flex: "auto", lineHeight: "1", textTransform: "capitalize", children: value })] }) }, label + value))) }) }), _jsx(Center, { py: "base", children: _jsx(Button, { variant: "text", onClick: onViewDetails, children: t('homeBoard.viewDetails') }) })] }) }));
|
|
22
|
+
Object.entries(recordsMapped).map(([label, value = '']) => (_jsx(GridItem, { children: _jsxs(Flex, { children: [_jsx(Text, { fontFamily: "secondary", color: "gray.2", fontSize: "xs", noOfLines: 1, minW: "fit-content", lineHeight: "1.2", children: label }), _jsx(Text, { fontFamily: "secondary", fontWeight: "semibold", textAlign: "right", fontSize: "xs", noOfLines: 1, flex: "auto", lineHeight: "1.2", textTransform: "capitalize", children: value })] }) }, label + value))) }) }), _jsx(Center, { py: "base", children: _jsx(Button, { variant: "text", onClick: onViewDetails, children: t('homeBoard.viewDetails') }) })] }) }));
|
|
23
23
|
};
|
|
24
24
|
const AddHomeRecords = ({ onAddRecords, }) => {
|
|
25
25
|
return (_jsxs(Stack, { px: "base", py: "6", spacing: "base", children: [_jsx(Text, { variant: "home", textAlign: "center", children: t('homeBoard.publicRecords') }), _jsxs(Button, { variant: "secondary", textTransform: "capitalize", onClick: onAddRecords, gap: "base", bg: "neutral.white", children: [_jsx(Plus, { stroke: colors.blue['2'] }), t('homeBoard.addRecords')] })] }));
|
|
@@ -3,5 +3,5 @@ import { t } from 'i18next';
|
|
|
3
3
|
import { AspectRatio, Flex, Text, Image, chakra } from '@chakra-ui/react';
|
|
4
4
|
import { IA } from '../../assets/images';
|
|
5
5
|
export const InboxForwardBanner = () => {
|
|
6
|
-
return (_jsxs(Flex, { p: "base", gap: "base", align: "center", bg: "lightBlue.2", id: 'forwardReceipts', children: [_jsx(AspectRatio, { ratio: 1, minW: "35px", h: "auto", children: _jsx(Image, { src: IA, alt: "IA" }) }), _jsxs(Text, { variant: "home", lineHeight: "1", children: [t('inbox.forwardTo'), _jsx(chakra.span, { fontFamily: "secondary", fontSize: "sm", lineHeight: "1", color: "neutral.black", fontWeight: "bold", display: "inline", children: "homefileit@homefile.com." })] })] }));
|
|
6
|
+
return (_jsxs(Flex, { p: "base", gap: "base", align: "center", bg: "lightBlue.2", id: 'forwardReceipts', children: [_jsx(AspectRatio, { ratio: 1, minW: "35px", h: "auto", children: _jsx(Image, { src: IA, alt: "IA" }) }), _jsxs(Text, { variant: "home", lineHeight: "1.2", children: [t('inbox.forwardTo'), _jsx(chakra.span, { fontFamily: "secondary", fontSize: "sm", lineHeight: "1", color: "neutral.black", fontWeight: "bold", display: "inline", children: "homefileit@homefile.com." })] })] }));
|
|
7
7
|
};
|
|
@@ -5,5 +5,5 @@ import { ContainerHeader, MoreHorizontal, TileTooltip, ValueCard, } from '..';
|
|
|
5
5
|
import { Diamond } from '../../assets/images';
|
|
6
6
|
export const ValueMonitor = ({ balance, menuItems, totalValue, year, yearValue, }) => {
|
|
7
7
|
const hasItems = menuItems.length > 0;
|
|
8
|
-
return (_jsx(TileTooltip, { label: "valueMonitor", children: _jsxs(Container, { variant: "launchpad", h: "fit-content", minW: ['full', '20rem'], children: [_jsx(ContainerHeader, { disabled: !hasItems, title: t('valueMonitor.title'), titleIcon: Diamond, menuItems: menuItems, icon: _jsx(MoreHorizontal, { size: 38 }) }), _jsxs(Stack, { p: "base", children: [_jsx(Text, { textTransform: "uppercase", children: t('valueMonitor.description') }), _jsx(ValueCard, { balance, totalValue, year, yearValue })] })] }) }));
|
|
8
|
+
return (_jsx(TileTooltip, { label: "valueMonitor", children: _jsxs(Container, { variant: "launchpad", h: "fit-content", minW: ['full', '20rem'], children: [_jsx(ContainerHeader, { disabled: !hasItems, title: t('valueMonitor.title'), titleIcon: Diamond, menuItems: menuItems, icon: _jsx(MoreHorizontal, { size: 38 }) }), _jsxs(Stack, { p: "base", children: [_jsx(Text, { fontSize: ".875rem", textTransform: "uppercase", children: t('valueMonitor.description') }), _jsx(ValueCard, { balance, totalValue, year, yearValue })] })] }) }));
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ export const HomeCardRecords = ({
|
|
|
62
62
|
fontSize="xs"
|
|
63
63
|
noOfLines={1}
|
|
64
64
|
minW="fit-content"
|
|
65
|
-
lineHeight="1"
|
|
65
|
+
lineHeight="1.2"
|
|
66
66
|
>
|
|
67
67
|
{label}
|
|
68
68
|
</Text>
|
|
@@ -73,7 +73,7 @@ export const HomeCardRecords = ({
|
|
|
73
73
|
fontSize="xs"
|
|
74
74
|
noOfLines={1}
|
|
75
75
|
flex="auto"
|
|
76
|
-
lineHeight="1"
|
|
76
|
+
lineHeight="1.2"
|
|
77
77
|
textTransform="capitalize"
|
|
78
78
|
>
|
|
79
79
|
{value}
|
|
@@ -29,7 +29,7 @@ export const ValueMonitor = ({
|
|
|
29
29
|
icon={<MoreHorizontal size={38} />}
|
|
30
30
|
/>
|
|
31
31
|
<Stack p="base">
|
|
32
|
-
<Text textTransform="uppercase">{t('valueMonitor.description')}</Text>
|
|
32
|
+
<Text fontSize={".875rem"} textTransform="uppercase">{t('valueMonitor.description')}</Text>
|
|
33
33
|
<ValueCard {...{ balance, totalValue, year, yearValue }} />
|
|
34
34
|
</Stack>
|
|
35
35
|
</Container>
|