@homefile/components-v2 2.7.1 → 2.7.3

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.
@@ -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: _jsxs(Box, { children: [isLoading ? (_jsx(Loading, {})) : (_jsxs(_Fragment, { children: [_jsx(HomeCard, Object.assign({}, props)), children] })), _jsx(FooterDrawer, { isOpen: showFooter, children: footerButtons })] }) })] }));
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
  };
@@ -2,7 +2,7 @@ import { ReactElement, ReactNode } from "react";
2
2
  import { HomeCardI } from "../homeBoard";
3
3
  export interface HomeDetailsContentI extends HomeCardI {
4
4
  children: ReactNode;
5
- footerButtons: ReactElement[];
5
+ footerButtons: ReactElement;
6
6
  isLoading: boolean;
7
7
  showFooter: boolean;
8
8
  handleClose: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -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
  }
@@ -3,7 +3,7 @@ import { HomeCardI } from "../homeBoard";
3
3
 
4
4
  export interface HomeDetailsContentI extends HomeCardI {
5
5
  children: ReactNode
6
- footerButtons: ReactElement[]
6
+ footerButtons: ReactElement
7
7
  isLoading: boolean
8
8
  showFooter: boolean
9
9
  handleClose: () => void