@homefile/components-v2 2.7.12 → 2.7.14

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.
Files changed (34) hide show
  1. package/dist/components/appBar/UserProfile.js +2 -2
  2. package/dist/components/buttons/PreviousCircleButton.d.ts +1 -1
  3. package/dist/components/buttons/PreviousCircleButton.js +3 -3
  4. package/dist/components/folderPanel/displayFiles/IconMenuWithMove.js +2 -3
  5. package/dist/components/folderPanel/fileDetails/FileDetailsTab.js +1 -2
  6. package/dist/components/icons/DisplayGrid.js +1 -1
  7. package/dist/components/icons/DisplayItem.js +1 -1
  8. package/dist/components/icons/DisplayList.js +1 -1
  9. package/dist/components/icons/Upload.js +1 -1
  10. package/dist/components/icons/index.d.ts +0 -1
  11. package/dist/components/icons/index.js +0 -1
  12. package/dist/components/launchpad/IconMenu.d.ts +1 -1
  13. package/dist/components/launchpad/IconMenu.js +3 -4
  14. package/dist/interfaces/launchpad/IconMenu.interface.d.ts +1 -1
  15. package/dist/interfaces/myHomes/HomeCard.interface.d.ts +4 -1
  16. package/package.json +16 -17
  17. package/src/components/appBar/UserProfile.tsx +1 -1
  18. package/src/components/buttons/PreviousCircleButton.tsx +6 -6
  19. package/src/components/folderPanel/displayFiles/IconMenuWithMove.tsx +2 -2
  20. package/src/components/folderPanel/fileDetails/FileDetailsTab.tsx +1 -2
  21. package/src/components/icons/DisplayGrid.tsx +1 -1
  22. package/src/components/icons/DisplayItem.tsx +1 -1
  23. package/src/components/icons/DisplayList.tsx +1 -1
  24. package/src/components/icons/Upload.tsx +1 -1
  25. package/src/components/icons/index.ts +0 -1
  26. package/src/components/launchpad/IconMenu.tsx +5 -6
  27. package/src/interfaces/launchpad/IconMenu.interface.ts +1 -1
  28. package/src/interfaces/myHomes/HomeCard.interface.ts +4 -1
  29. package/dist/components/icons/CustomIcon.d.ts +0 -2
  30. package/dist/components/icons/CustomIcon.js +0 -3
  31. package/dist/stories/icons/CustomIcon.stories.d.ts +0 -14
  32. package/dist/stories/icons/CustomIcon.stories.js +0 -14
  33. package/src/components/icons/CustomIcon.tsx +0 -6
  34. package/src/stories/icons/CustomIcon.stories.tsx +0 -22
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { t } from 'i18next';
3
3
  import { Avatar, Flex, Text } from '@chakra-ui/react';
4
- import { ChevronDown, IconMenu } from '..';
4
+ import { IconMenu } from '..';
5
5
  import { useWindowDimensions } from '../../hooks';
6
6
  import { MOBILE_WIDTH } from '../../utils';
7
7
  export const UserProfile = ({ avatarUrl, firstName, userName, menuItems, bg, }) => {
8
8
  const { windowDimensions: { width }, } = useWindowDimensions();
9
9
  const isMobile = width < MOBILE_WIDTH;
10
- return (_jsxs(Flex, { alignItems: "center", gap: ['1', 'base'], children: [!isMobile && (_jsx(Text, { minW: "fit-content", noOfLines: 1, children: `${t('welcome.greeting2')} ${firstName}` })), _jsx(Avatar, { size: "sm", name: userName, bg: bg, src: avatarUrl, fontWeight: "bold", color: "neutral.white", id: "profile" }), _jsx(IconMenu, { icon: _jsx(ChevronDown, {}), menuItems: menuItems })] }));
10
+ return (_jsxs(Flex, { alignItems: "center", gap: ['1', 'base'], children: [!isMobile && (_jsx(Text, { minW: "fit-content", noOfLines: 1, children: `${t('welcome.greeting2')} ${firstName}` })), _jsx(Avatar, { size: "sm", name: userName, bg: bg, src: avatarUrl, fontWeight: "bold", color: "neutral.white", id: "profile" }), _jsx(IconMenu, { menuItems: menuItems })] }));
11
11
  };
@@ -1,2 +1,2 @@
1
- import { CircleButtonI } from "../../interfaces";
1
+ import { CircleButtonI } from '../../interfaces';
2
2
  export declare const PreviousCircleButton: ({ disabled, onClick }: CircleButtonI) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { t } from "i18next";
3
- import { IconButton } from "@chakra-ui/react";
4
- import { ChevronLeft } from "..";
2
+ import { t } from 'i18next';
3
+ import { IconButton } from '@chakra-ui/react';
4
+ import { ChevronLeft } from '..';
5
5
  export const PreviousCircleButton = ({ disabled, onClick }) => {
6
6
  return (_jsx(IconButton, { variant: "menuIcon", "aria-label": t('buttons.previous'), w: "fit-content", h: "fit-content", onClick: onClick, icon: _jsx(ChevronLeft, {}), p: "1", rounded: "full", border: "1px", disabled: disabled }));
7
7
  };
@@ -1,11 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { t } from 'i18next';
3
- import { MenuButton, IconButton, Menu, MenuItem, MenuList, MenuDivider, } from '@chakra-ui/react';
3
+ import { MenuButton, IconButton, Menu, MenuItem, MenuList, MenuDivider, Box, } from '@chakra-ui/react';
4
4
  import { ChevronRight, Overlay } from '../..';
5
5
  import { colors } from '../../../theme/colors';
6
- import { Fragment } from 'react/jsx-runtime';
7
6
  export const IconMenuWithMove = ({ disabled = false, icon, itemForm, menuItems, onMove, }) => {
8
- return (_jsx(Menu, { isLazy: true, children: ({ isOpen }) => (_jsxs(_Fragment, { children: [_jsx(Overlay, { bg: "overlay", showOverlay: isOpen, position: "fixed", zIndex: "4" }), _jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(Fragment, { children: icon }), variant: "menuIcon", w: "fit-content", disabled: disabled }), _jsxs(MenuList, { zIndex: "5", children: [menuItems === null || menuItems === void 0 ? void 0 : menuItems.map(({ handleClick, label }) => (_jsx(MenuItem, { onClick: () => handleClick(itemForm), _hover: {
7
+ return (_jsx(Menu, { isLazy: true, children: ({ isOpen }) => (_jsxs(_Fragment, { children: [_jsx(Overlay, { bg: "overlay", showOverlay: isOpen, position: "fixed", zIndex: "4" }), _jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(Box, { children: icon }), variant: "menuIcon", w: "fit-content", disabled: disabled }), _jsxs(MenuList, { zIndex: "5", children: [menuItems === null || menuItems === void 0 ? void 0 : menuItems.map(({ handleClick, label }) => (_jsx(MenuItem, { onClick: () => handleClick(itemForm), _hover: {
9
8
  bg: 'lightGreen.1',
10
9
  }, _focus: {
11
10
  bg: 'lightGreen.1',
@@ -4,10 +4,9 @@ import { Stack, Flex, Text, Button, Image, Box, Center } from '@chakra-ui/react'
4
4
  import { BeatLoader } from 'react-spinners';
5
5
  import { TextInput } from '../..';
6
6
  import { DocIcon } from '../../../assets/images';
7
- import { useFileDetailsTab } from '../../../hooks';
7
+ import { useFileDetailsTab, useDisplayFiles } from '../../../hooks';
8
8
  import { formatDate } from '../../../utils';
9
9
  import { fileTypes } from '../../../helpers';
10
- import { useDisplayFiles } from '../../../hooks';
11
10
  export const FileDetailsTab = ({ addedBy, handleEdit, file, editing, }) => {
12
11
  const { fileDescription, fileName, handleChangeDescription, handleChangeName, } = useFileDetailsTab({
13
12
  title: file.title,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Icon } from '@chakra-ui/react';
2
3
  import { colors } from '../../theme/colors';
3
- import { Icon } from '@chakra-ui/icons';
4
4
  export const DisplayGrid = ({ stroke = colors.blue[3], }) => {
5
5
  return (_jsx(Icon, { children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 19.5 19.5", children: _jsxs("g", { fill: "none", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", "data-name": "Group 14495", children: [_jsx("path", { d: "M.75.75h7.321v7.321H.75Z", "data-name": "Path 10064" }), _jsx("path", { d: "M11.429.75h7.321v7.321h-7.321Z", "data-name": "Path 10065" }), _jsx("path", { d: "M11.429 11.428h7.321v7.321h-7.321Z", "data-name": "Path 10066" }), _jsx("path", { d: "M.75 11.428h7.321v7.321H.75Z", "data-name": "Path 10067" })] }) }) }));
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '@chakra-ui/icons';
2
+ import { Icon } from '@chakra-ui/react';
3
3
  import { colors } from '../../theme/colors';
4
4
  export const DisplayItem = ({ stroke = colors.blue[3], }) => {
5
5
  return (_jsx(Icon, { viewBox: "0 0 200 200", color: "red.500", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 19.79 17.374", children: _jsxs("g", { stroke: stroke, "data-name": "Group 14548", children: [_jsx("path", { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M.75.75h18.29v11.438H.75Z", "data-name": "Path 10082" }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16845", children: [_jsx("path", { stroke: "none", d: "M.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M1.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16846", children: [_jsx("path", { stroke: "none", d: "M5.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M6.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16847", children: [_jsx("path", { stroke: "none", d: "M10.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M11.333 14.874h2v2h-2z" })] }), _jsxs("g", { fill: stroke, "data-name": "Rectangle 16848", children: [_jsx("path", { stroke: "none", d: "M15.833 14.374h3v3h-3z" }), _jsx("path", { fill: "none", d: "M16.333 14.874h2v2h-2z" })] })] }) }) }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '@chakra-ui/icons';
2
+ import { Icon } from '@chakra-ui/react';
3
3
  import { colors } from '../../theme/colors';
4
4
  export const DisplayList = ({ stroke = colors.blue[3], }) => {
5
5
  return (_jsx(Icon, { viewBox: "0 0 200 200", color: "red.500", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 14", children: _jsxs("g", { fill: stroke, "data-name": "Group 14455", children: [_jsx("path", { d: "M5 0h13v2H5z", "data-name": "Rectangle 14122" }), _jsx("path", { d: "M5 6h13v2H5z", "data-name": "Rectangle 14123" }), _jsx("path", { d: "M5 12h13v2H5z", "data-name": "Rectangle 14124" }), _jsx("path", { d: "M0 0h3v2H0z", "data-name": "Rectangle 14122" }), _jsx("path", { d: "M0 6h3v2H0z", "data-name": "Rectangle 14123" }), _jsx("path", { d: "M0 12h3v2H0z", "data-name": "Rectangle 14124" })] }) }) }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '@chakra-ui/icons';
2
+ import { Icon } from '@chakra-ui/react';
3
3
  import { colors } from '../../theme/colors';
4
4
  export const Upload = ({ stroke = colors.blue[6], }) => {
5
5
  return (_jsx(Icon, { viewBox: "0 0 200 200", color: "red.500", children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 19.878 19.878", children: _jsxs("g", { fill: "none", stroke: stroke, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", "data-name": "Icon feather-upload", children: [_jsx("path", { d: "M18.878 12.919v3.973a1.986 1.986 0 0 1-1.986 1.986H2.986A1.986 1.986 0 0 1 1 16.892v-3.973", "data-name": "Path 10078" }), _jsx("path", { d: "M14.905 5.966 9.939 1 4.973 5.966", "data-name": "Path 10079" }), _jsx("path", { d: "M9.939 1v11.919", "data-name": "Path 10080" })] }) }) }));
@@ -5,7 +5,6 @@ export * from './ChevronDown';
5
5
  export * from './ChevronRight';
6
6
  export * from './ChevronUp';
7
7
  export * from './Close';
8
- export * from './CustomIcon';
9
8
  export * from './DisplayGrid';
10
9
  export * from './ChevronLeft';
11
10
  export * from './DisplayItem';
@@ -5,7 +5,6 @@ export * from './ChevronDown';
5
5
  export * from './ChevronRight';
6
6
  export * from './ChevronUp';
7
7
  export * from './Close';
8
- export * from './CustomIcon';
9
8
  export * from './DisplayGrid';
10
9
  export * from './ChevronLeft';
11
10
  export * from './DisplayItem';
@@ -1,2 +1,2 @@
1
1
  import { IconMenuI } from '../../interfaces';
2
- export declare const IconMenu: <T extends unknown>({ disabled, icon, itemForm, menuItems, onClick, variant, width, zIndex, }: IconMenuI<T>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const IconMenu: ({ disabled, icon, itemForm, menuItems, onClick, variant, width, zIndex, }: IconMenuI) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { MenuButton, IconButton, Menu, MenuItem, MenuList, Box, } from '@chakra-ui/react';
3
- import { Overlay } from '..';
4
- import { Fragment } from 'react/jsx-runtime';
5
- export const IconMenu = ({ disabled = false, icon, itemForm, menuItems, onClick, variant = 'menuIcon', width = 'fit-content', zIndex = '999', }) => {
6
- return (_jsx(Box, { zIndex: zIndex, children: _jsx(Menu, { isLazy: true, children: ({ isOpen }) => (_jsxs(_Fragment, { children: [_jsx(Overlay, { bg: "overlay", showOverlay: isOpen, position: "fixed" }), _jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(Fragment, { children: icon }), variant: variant, w: width, disabled: disabled, marginTop: "0 !important", onClick: onClick, "data-testid": "icon-menu" }), _jsx(MenuList, { zIndex: "5", children: menuItems === null || menuItems === void 0 ? void 0 : menuItems.map(({ handleClick, label }) => (_jsx(MenuItem, { "data-testid": label, onClick: () => handleClick(itemForm), _hover: {
3
+ import { ChevronDown, Overlay } from '..';
4
+ export const IconMenu = ({ disabled = false, icon = _jsx(ChevronDown, {}), itemForm, menuItems, onClick, variant = 'menuIcon', width = 'fit-content', zIndex = '999', }) => {
5
+ return (_jsx(Box, { zIndex: zIndex, children: _jsx(Menu, { isLazy: true, children: ({ isOpen }) => (_jsxs(_Fragment, { children: [_jsx(Overlay, { bg: "overlay", showOverlay: isOpen, position: "fixed" }), _jsx(MenuButton, { as: IconButton, "aria-label": "Options", icon: _jsx(Box, { children: icon }), variant: variant, w: width, disabled: disabled, marginTop: "0 !important", onClick: onClick, "data-testid": "icon-menu" }), _jsx(MenuList, { zIndex: "5", children: menuItems === null || menuItems === void 0 ? void 0 : menuItems.map(({ handleClick, label }) => (_jsx(MenuItem, { "data-testid": label, onClick: () => handleClick(itemForm), _hover: {
7
6
  bg: 'lightGreen.1',
8
7
  }, _focus: {
9
8
  bg: 'lightGreen.1',
@@ -3,7 +3,7 @@ export interface MenuItemI {
3
3
  handleClick: (form: any) => void;
4
4
  label: string;
5
5
  }
6
- export interface IconMenuI<T> {
6
+ export interface IconMenuI<T = unknown> {
7
7
  disabled?: boolean;
8
8
  icon?: ReactNode;
9
9
  itemForm?: T;
@@ -3,8 +3,11 @@ export interface HomeAddressI {
3
3
  city: string;
4
4
  state: string;
5
5
  street: string;
6
- number?: string;
7
6
  zip: string;
7
+ number?: string;
8
+ floor?: number;
9
+ apartmentNumber?: string;
10
+ obs?: string;
8
11
  }
9
12
  export interface ImageI {
10
13
  bucketName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.7.12",
3
+ "version": "2.7.14",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -24,15 +24,15 @@
24
24
  "devDependencies": {
25
25
  "@chromatic-com/storybook": "^3.2.4",
26
26
  "@faker-js/faker": "^9.4.0",
27
- "@storybook/addon-a11y": "^8.5.0",
28
- "@storybook/addon-essentials": "^8.5.0",
29
- "@storybook/addon-interactions": "^8.5.0",
30
- "@storybook/addon-links": "^8.5.0",
31
- "@storybook/addon-viewport": "^8.5.0",
32
- "@storybook/blocks": "^8.5.0",
33
- "@storybook/react": "^8.5.0",
34
- "@storybook/react-vite": "^8.5.0",
35
- "@storybook/test": "^8.5.0",
27
+ "@storybook/addon-a11y": "^8.5.2",
28
+ "@storybook/addon-essentials": "^8.5.2",
29
+ "@storybook/addon-interactions": "^8.5.2",
30
+ "@storybook/addon-links": "^8.5.2",
31
+ "@storybook/addon-viewport": "^8.5.2",
32
+ "@storybook/blocks": "^8.5.2",
33
+ "@storybook/react": "^8.5.2",
34
+ "@storybook/react-vite": "^8.5.2",
35
+ "@storybook/test": "^8.5.2",
36
36
  "@types/node": "^22.10.7",
37
37
  "@types/react": "^19.0.7",
38
38
  "@types/react-dom": "^19.0.3",
@@ -45,7 +45,7 @@
45
45
  "json-loader": "^0.5.7",
46
46
  "rimraf": "^6.0.1",
47
47
  "semantic-release": "^24.2.1",
48
- "storybook": "^8.5.0",
48
+ "storybook": "^8.5.2",
49
49
  "storybook-react-i18next": "^3.2.1",
50
50
  "tsconfig-replace-paths": "^0.0.14",
51
51
  "tscpaths": "^0.0.9",
@@ -53,7 +53,6 @@
53
53
  "vite": "^6.0.9"
54
54
  },
55
55
  "dependencies": {
56
- "@chakra-ui/icons": "^2.2.4",
57
56
  "@chakra-ui/react": "^2.10.3",
58
57
  "@emotion/react": "^11.13.3",
59
58
  "@emotion/styled": "^11.13.0",
@@ -61,14 +60,14 @@
61
60
  "@fontsource/poppins": "^5.1.1",
62
61
  "@hassanmojab/react-modern-calendar-datepicker": "^3.1.7",
63
62
  "@hookform/resolvers": "^3.10.0",
64
- "@rive-app/react-canvas": "^4.17.6",
65
- "@storybook/addon-themes": "^8.5.0",
63
+ "@rive-app/react-canvas": "^4.17.9",
64
+ "@storybook/addon-themes": "^8.5.2",
66
65
  "axios": "^1.7.9",
67
66
  "date-fns": "^4.1.0",
68
67
  "framer-motion": "^11.11.9",
69
- "i18next": "^24.2.1",
68
+ "i18next": "^24.2.2",
70
69
  "i18next-browser-languagedetector": "^8.0.2",
71
- "i18next-http-backend": "^3.0.1",
70
+ "i18next-http-backend": "^3.0.2",
72
71
  "react": "^19.0.0",
73
72
  "react-dom": "^19.0.0",
74
73
  "react-dropzone": "^14.3.5",
@@ -79,7 +78,7 @@
79
78
  "react-quill": "^2.0.0",
80
79
  "react-spinners": "^0.15.0",
81
80
  "recharts": "^2.15.0",
82
- "valtio": "^2.1.2",
81
+ "valtio": "^2.1.3",
83
82
  "yup": "^1.6.1"
84
83
  },
85
84
  "scripts": {
@@ -32,7 +32,7 @@ export const UserProfile = ({
32
32
  color="neutral.white"
33
33
  id="profile"
34
34
  />
35
- <IconMenu icon={<ChevronDown />} menuItems={menuItems} />
35
+ <IconMenu menuItems={menuItems} />
36
36
  </Flex>
37
37
  )
38
38
  }
@@ -1,9 +1,9 @@
1
- import { t } from "i18next"
2
- import { IconButton } from "@chakra-ui/react"
3
- import { ChevronLeft, CustomIcon } from "@/components"
4
- import { CircleButtonI } from "@/interfaces"
1
+ import { t } from 'i18next'
2
+ import { IconButton } from '@chakra-ui/react'
3
+ import { ChevronLeft } from '@/components'
4
+ import { CircleButtonI } from '@/interfaces'
5
5
 
6
- export const PreviousCircleButton = ({ disabled, onClick}: CircleButtonI) => {
6
+ export const PreviousCircleButton = ({ disabled, onClick }: CircleButtonI) => {
7
7
  return (
8
8
  <IconButton
9
9
  variant="menuIcon"
@@ -18,4 +18,4 @@ export const PreviousCircleButton = ({ disabled, onClick}: CircleButtonI) => {
18
18
  disabled={disabled}
19
19
  />
20
20
  )
21
- }
21
+ }
@@ -6,11 +6,11 @@ import {
6
6
  MenuItem,
7
7
  MenuList,
8
8
  MenuDivider,
9
+ Box,
9
10
  } from '@chakra-ui/react'
10
11
  import { IconMenuWithMoveI } from '@/interfaces'
11
12
  import { ChevronRight, Overlay } from '@/components'
12
13
  import { colors } from '@/theme/colors'
13
- import { Fragment } from 'react/jsx-runtime'
14
14
 
15
15
  export const IconMenuWithMove = <T extends unknown>({
16
16
  disabled = false,
@@ -32,7 +32,7 @@ export const IconMenuWithMove = <T extends unknown>({
32
32
  <MenuButton
33
33
  as={IconButton}
34
34
  aria-label="Options"
35
- icon={<Fragment>{icon}</Fragment>}
35
+ icon={<Box>{icon}</Box>}
36
36
  variant="menuIcon"
37
37
  w="fit-content"
38
38
  disabled={disabled}
@@ -4,10 +4,9 @@ import { BeatLoader } from 'react-spinners'
4
4
  import { TextInput } from '@/components'
5
5
  import { FolderFileI } from '@/interfaces'
6
6
  import { DocIcon } from '@/assets/images'
7
- import { useFileDetailsTab } from '@/hooks'
7
+ import { useFileDetailsTab, useDisplayFiles } from '@/hooks'
8
8
  import { formatDate } from '@/utils'
9
9
  import { fileTypes } from '@/helpers'
10
- import { useDisplayFiles } from '@/hooks'
11
10
 
12
11
  interface FileDetailsTabI {
13
12
  addedBy: string
@@ -1,5 +1,5 @@
1
+ import { Icon } from '@chakra-ui/react'
1
2
  import { colors } from '@/theme/colors'
2
- import { Icon } from '@chakra-ui/icons'
3
3
 
4
4
  export const DisplayGrid = ({
5
5
  stroke = colors.blue[3],
@@ -1,4 +1,4 @@
1
- import { Icon } from '@chakra-ui/icons'
1
+ import { Icon } from '@chakra-ui/react'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const DisplayItem = ({
@@ -1,4 +1,4 @@
1
- import { Icon } from '@chakra-ui/icons'
1
+ import { Icon } from '@chakra-ui/react'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const DisplayList = ({
@@ -1,4 +1,4 @@
1
- import { Icon } from '@chakra-ui/icons'
1
+ import { Icon } from '@chakra-ui/react'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const Upload = ({
@@ -5,7 +5,6 @@ export * from './ChevronDown'
5
5
  export * from './ChevronRight'
6
6
  export * from './ChevronUp'
7
7
  export * from './Close'
8
- export * from './CustomIcon'
9
8
  export * from './DisplayGrid'
10
9
  export * from './ChevronLeft'
11
10
  export * from './DisplayItem'
@@ -7,19 +7,18 @@ import {
7
7
  Box,
8
8
  } from '@chakra-ui/react'
9
9
  import { IconMenuI } from '@/interfaces'
10
- import { Overlay } from '@/components'
11
- import { Fragment } from 'react/jsx-runtime'
10
+ import { ChevronDown, Overlay } from '@/components'
12
11
 
13
- export const IconMenu = <T extends unknown>({
12
+ export const IconMenu = ({
14
13
  disabled = false,
15
- icon,
14
+ icon = <ChevronDown />,
16
15
  itemForm,
17
16
  menuItems,
18
17
  onClick,
19
18
  variant = 'menuIcon',
20
19
  width = 'fit-content',
21
20
  zIndex = '999',
22
- }: IconMenuI<T>) => {
21
+ }: IconMenuI) => {
23
22
  return (
24
23
  <Box zIndex={zIndex}>
25
24
  <Menu isLazy>
@@ -29,7 +28,7 @@ export const IconMenu = <T extends unknown>({
29
28
  <MenuButton
30
29
  as={IconButton}
31
30
  aria-label="Options"
32
- icon={<Fragment>{icon}</Fragment>}
31
+ icon={<Box>{icon}</Box>}
33
32
  variant={variant}
34
33
  w={width}
35
34
  disabled={disabled}
@@ -5,7 +5,7 @@ export interface MenuItemI {
5
5
  label: string
6
6
  }
7
7
 
8
- export interface IconMenuI<T> {
8
+ export interface IconMenuI<T = unknown> {
9
9
  disabled?: boolean
10
10
  icon?: ReactNode
11
11
  itemForm?: T
@@ -4,8 +4,11 @@ export interface HomeAddressI {
4
4
  city: string
5
5
  state: string
6
6
  street: string
7
- number?: string
8
7
  zip: string
8
+ number?: string
9
+ floor?: number
10
+ apartmentNumber?: string
11
+ obs?: string
9
12
  }
10
13
 
11
14
  export interface ImageI {
@@ -1,2 +0,0 @@
1
- import { IconsI } from '../../interfaces';
2
- export declare const CustomIcon: ({ color, type, size, style }: IconsI) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon } from '@chakra-ui/react';
3
- export const CustomIcon = ({ color = '', type, size = '5', style }) => (_jsx(Icon, { as: type, w: size, h: size, color: color, style: style }));
@@ -1,14 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IconsI } from '../../interfaces';
3
- declare const _default: Meta<IconsI>;
4
- export default _default;
5
- export declare const CustomIconComponent: {
6
- (args: IconsI): import("react/jsx-runtime").JSX.Element;
7
- args: {
8
- type: ({ stroke, size }: {
9
- stroke?: string | undefined;
10
- size?: number | undefined;
11
- }) => import("react/jsx-runtime").JSX.Element;
12
- size: number;
13
- };
14
- };
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Center } from '@chakra-ui/react';
3
- import { Close, CustomIcon } from '../../components';
4
- export default {
5
- title: 'Components/Icons',
6
- component: CustomIcon,
7
- };
8
- export const CustomIconComponent = (args) => {
9
- return (_jsx(Center, { width: "10rem", p: "base", bg: "white", children: _jsx(CustomIcon, Object.assign({}, args)) }));
10
- };
11
- CustomIconComponent.args = {
12
- type: Close,
13
- size: 8,
14
- };
@@ -1,6 +0,0 @@
1
- import { Icon } from '@chakra-ui/react'
2
- import { IconsI } from '@/interfaces'
3
-
4
- export const CustomIcon = ({ color = '', type, size = '5', style }: IconsI) => (
5
- <Icon as={type} w={size} h={size} color={color} style={style} />
6
- )
@@ -1,22 +0,0 @@
1
- import { Meta } from '@storybook/react'
2
- import { Center } from '@chakra-ui/react'
3
- import { Close, CustomIcon } from '@/components'
4
- import { IconsI } from '@/interfaces'
5
-
6
- export default {
7
- title: 'Components/Icons',
8
- component: CustomIcon,
9
- } as Meta<IconsI>
10
-
11
- export const CustomIconComponent = (args: IconsI) => {
12
- return (
13
- <Center width="10rem" p="base" bg="white">
14
- <CustomIcon {...args} />
15
- </Center>
16
- )
17
- }
18
-
19
- CustomIconComponent.args = {
20
- type: Close,
21
- size: 8,
22
- }