@homefile/components-v2 2.7.2 → 2.7.4
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/footers/FooterDrawer.js +1 -1
- package/dist/components/myHomes/HomeDetailsContent.js +2 -2
- package/dist/stories/myHomes/HomeDetailsContent.stories.js +2 -3
- package/package.json +1 -1
- package/src/components/footers/FooterDrawer.tsx +1 -1
- package/src/components/myHomes/HomeDetailsContent.tsx +6 -4
- package/src/stories/myHomes/HomeDetailsContent.stories.tsx +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Center, Container, Slide } from '@chakra-ui/react';
|
|
3
3
|
export const FooterDrawer = ({ children, isOpen, variant = 'footer' }) => {
|
|
4
|
-
return (_jsx(Slide, { direction: "bottom", in: isOpen, children: _jsx(Container, { variant: variant, minW: "full", children: _jsx(Center, { py: ["0.5rem", "2rem"], children: children }) }) }));
|
|
4
|
+
return (_jsx(Slide, { direction: "bottom", in: isOpen, animate: { transform: "translateX(0px)" }, children: _jsx(Container, { variant: variant, minW: "full", children: _jsx(Center, { py: ["0.5rem", "2rem"], children: children }) }) }));
|
|
5
5
|
};
|
|
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { t } from 'i18next';
|
|
14
|
-
import { Box, DrawerContent, DrawerHeader, DrawerBody } from '@chakra-ui/react';
|
|
14
|
+
import { Box, DrawerContent, DrawerHeader, DrawerBody, DrawerFooter } from '@chakra-ui/react';
|
|
15
15
|
import { PanelHeader, Loading, HomeCard, FooterDrawer } from '..';
|
|
16
16
|
import { House } from '../../assets/images';
|
|
17
17
|
export const HomeDetailsContent = (_a) => {
|
|
18
18
|
var props = __rest(_a, []);
|
|
19
19
|
const { handleClose, isLoading, children, showFooter, footerButtons } = props;
|
|
20
|
-
return (_jsxs(DrawerContent, { children: [_jsx(DrawerHeader, { p: "0", children: _jsx(PanelHeader, { icon: House, handleCloseButton: handleClose, title: t("myHomes.details.header") }) }), _jsx(DrawerBody, { padding: "0 0 6rem 0", bg: "#F4F7F8", children:
|
|
20
|
+
return (_jsxs(DrawerContent, { children: [_jsx(DrawerHeader, { p: "0", children: _jsx(PanelHeader, { icon: House, handleCloseButton: handleClose, title: t("myHomes.details.header") }) }), _jsx(DrawerBody, { padding: "0 0 6rem 0", bg: "#F4F7F8", children: _jsx(Box, { children: isLoading ? (_jsx(Loading, {})) : (_jsxs(_Fragment, { children: [_jsx(HomeCard, Object.assign({}, props)), children] })) }) }), _jsx(DrawerFooter, { children: _jsx(FooterDrawer, { isOpen: showFooter, children: footerButtons }) })] }));
|
|
21
21
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { HomeDetailsContent, FooterButtons } from '../../components';
|
|
2
|
+
import { HomeDetailsContent, FooterButtons, RightPanel } from '../../components';
|
|
4
3
|
import { HomeCards, ButtonsFooter } from '../../helpers';
|
|
5
4
|
import { ShareHomeConnectionsComponent } from '../sharedHomePanel/ShareHomeConnections.stories';
|
|
6
5
|
const { name, image, address } = HomeCards[0];
|
|
@@ -9,7 +8,7 @@ export default {
|
|
|
9
8
|
component: HomeDetailsContent,
|
|
10
9
|
};
|
|
11
10
|
export const HomeDetailsContentComponent = (args) => {
|
|
12
|
-
return (_jsx(
|
|
11
|
+
return (_jsx(RightPanel, { onClose: () => null, isOpen: true, size: "md", children: _jsx(HomeDetailsContent, Object.assign({}, args)) }));
|
|
13
12
|
};
|
|
14
13
|
HomeDetailsContentComponent.args = {
|
|
15
14
|
apartmentNumber: address.apartmentNumber,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { FooterDrawerI } from '@/interfaces'
|
|
|
3
3
|
|
|
4
4
|
export const FooterDrawer = ({ children, isOpen, variant = 'footer' }: FooterDrawerI) => {
|
|
5
5
|
return (
|
|
6
|
-
<Slide direction="bottom" in={isOpen}>
|
|
6
|
+
<Slide direction="bottom" in={isOpen} animate={{ transform: "translateX(0px)" }}>
|
|
7
7
|
<Container variant={variant} minW="full">
|
|
8
8
|
<Center py={["0.5rem","2rem"]}>{children}</Center>
|
|
9
9
|
</Container>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from 'i18next'
|
|
2
|
-
import { Box, DrawerContent, DrawerHeader, DrawerBody } from '@chakra-ui/react'
|
|
2
|
+
import { Box, DrawerContent, DrawerHeader, DrawerBody, DrawerFooter } from '@chakra-ui/react'
|
|
3
3
|
import {
|
|
4
4
|
PanelHeader,
|
|
5
5
|
Loading,
|
|
@@ -33,11 +33,13 @@ export const HomeDetailsContent = ({...props}: HomeDetailsContentI) => {
|
|
|
33
33
|
</>
|
|
34
34
|
)
|
|
35
35
|
}
|
|
36
|
-
<FooterDrawer isOpen={showFooter}>
|
|
37
|
-
{footerButtons}
|
|
38
|
-
</FooterDrawer>
|
|
39
36
|
</Box>
|
|
40
37
|
</DrawerBody>
|
|
38
|
+
<DrawerFooter>
|
|
39
|
+
<FooterDrawer isOpen={showFooter}>
|
|
40
|
+
{footerButtons}
|
|
41
|
+
</FooterDrawer>
|
|
42
|
+
</DrawerFooter>
|
|
41
43
|
</DrawerContent>
|
|
42
44
|
)
|
|
43
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react'
|
|
2
2
|
import { Drawer } from '@chakra-ui/react'
|
|
3
|
-
import { HomeDetailsContent, FooterButtons } from '@/components'
|
|
3
|
+
import { HomeDetailsContent, FooterButtons, RightPanel } from '@/components'
|
|
4
4
|
import { HomeCards, ButtonsFooter } from '@/helpers'
|
|
5
5
|
import { HomeDetailsContentI } from '@/interfaces'
|
|
6
6
|
import { ShareHomeConnectionsComponent } from '../sharedHomePanel/ShareHomeConnections.stories'
|
|
@@ -14,9 +14,9 @@ export default {
|
|
|
14
14
|
|
|
15
15
|
export const HomeDetailsContentComponent = (args: HomeDetailsContentI) => {
|
|
16
16
|
return (
|
|
17
|
-
<
|
|
17
|
+
<RightPanel onClose={() => null} isOpen size="md">
|
|
18
18
|
<HomeDetailsContent {...args} />
|
|
19
|
-
</
|
|
19
|
+
</RightPanel>
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|