@homefile/components-v2 1.6.1 → 2.0.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.
Files changed (35) hide show
  1. package/dist/components/animations/CloudsAnimation.d.ts +5 -5
  2. package/dist/components/animations/CloudsAnimation.js +2 -1
  3. package/dist/components/animations/HomieAnimation.js +1 -1
  4. package/dist/components/homeBoard/ConfirmHomeAddress.js +2 -1
  5. package/dist/components/icons/DisplayGrid.js +1 -1
  6. package/dist/components/icons/DisplayItem.js +1 -1
  7. package/dist/components/icons/DisplayList.js +1 -1
  8. package/dist/components/icons/Upload.js +1 -1
  9. package/dist/components/inputs/SelectInputWithBadge.js +3 -3
  10. package/dist/components/myHomes/steps/MyHomeDetails.js +2 -1
  11. package/dist/components/myHomes/steps/SearchRecords.js +2 -1
  12. package/dist/components/overlay/Overlay.js +2 -1
  13. package/dist/components/partner/adminTiles/satisfactionTile/SatisfactionProgress.js +2 -1
  14. package/dist/hooks/homeBoard/useConfirmHomeAddress.d.ts +3 -18
  15. package/dist/hooks/myHomes/useAddHomeContent.d.ts +3 -18
  16. package/dist/hooks/myProfile/useTwoFactorSetting.d.ts +3 -18
  17. package/dist/hooks/partner/preview/usePartnerTilePreview.d.ts +2 -2
  18. package/dist/interfaces/icons/CustomIcon.interface.d.ts +2 -3
  19. package/dist/stories/tour/Bubble.stories.d.ts +1 -1
  20. package/dist/stories/tour/HomeBoardTour.stories.d.ts +1 -1
  21. package/dist/stories/tour/LaunchpadTour.stories.d.ts +1 -1
  22. package/package.json +44 -43
  23. package/src/components/animations/CloudsAnimation.tsx +2 -1
  24. package/src/components/animations/HomieAnimation.tsx +1 -1
  25. package/src/components/homeBoard/ConfirmHomeAddress.tsx +1 -1
  26. package/src/components/icons/DisplayGrid.tsx +1 -1
  27. package/src/components/icons/DisplayItem.tsx +1 -1
  28. package/src/components/icons/DisplayList.tsx +1 -1
  29. package/src/components/icons/Upload.tsx +1 -1
  30. package/src/components/inputs/SelectInputWithBadge.tsx +6 -4
  31. package/src/components/myHomes/steps/MyHomeDetails.tsx +1 -1
  32. package/src/components/myHomes/steps/SearchRecords.tsx +1 -1
  33. package/src/components/overlay/Overlay.tsx +2 -1
  34. package/src/components/partner/adminTiles/satisfactionTile/SatisfactionProgress.tsx +2 -1
  35. package/src/interfaces/icons/CustomIcon.interface.ts +2 -3
@@ -1,7 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const moveLeftToRightAirplane: import("@emotion/serialize").Keyframes;
3
- export declare const moveRightToLeft: import("@emotion/serialize").Keyframes;
4
- export declare const moveRightToLeftWithFade: import("@emotion/serialize").Keyframes;
5
- export declare const moveRightToLeftWithFade2: import("@emotion/serialize").Keyframes;
6
- export declare const moveRightToLeftWithFade3: import("@emotion/serialize").Keyframes;
2
+ export declare const moveLeftToRightAirplane: import("@emotion/react").Keyframes;
3
+ export declare const moveRightToLeft: import("@emotion/react").Keyframes;
4
+ export declare const moveRightToLeftWithFade: import("@emotion/react").Keyframes;
5
+ export declare const moveRightToLeftWithFade2: import("@emotion/react").Keyframes;
6
+ export declare const moveRightToLeftWithFade3: import("@emotion/react").Keyframes;
7
7
  export declare const CloudsAnimation: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Airplane, Cloud1, Cloud2, Cloud3, TreesCrop, TreesCrop2, } from '../../assets/images';
3
3
  import { useWindowDimensions } from '../../hooks';
4
4
  import { colors } from '../../theme/colors';
5
- import { Box, keyframes, Image } from '@chakra-ui/react';
5
+ import { Box, Image } from '@chakra-ui/react';
6
+ import { keyframes } from '@emotion/react';
6
7
  import { Fragment } from 'react';
7
8
  export const moveLeftToRightAirplane = keyframes `
8
9
  0% {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useRive } from '@rive-app/react-canvas';
3
- const url = process.env.REACT_APP_RIVE_ASSETS;
3
+ const url = import.meta.env.VITE_RIVE_ASSETS;
4
4
  export const HomieAnimation = () => {
5
5
  const { RiveComponent } = useRive({
6
6
  src: `${url}/homie-v2.riv`,
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useSnapshot } from 'valtio';
3
3
  import { t } from 'i18next';
4
- import { Box, Container, Stack, Center, Flex, Button, Text, keyframes, } from '@chakra-ui/react';
4
+ import { Box, Container, Stack, Center, Flex, Button, Text, } from '@chakra-ui/react';
5
+ import { keyframes } from '@emotion/react';
5
6
  import { AddressStored, SectionHeader, RadioButton, IncludePublicRecords, WrapperWithShadow, } from '..';
6
7
  import { HomeAddress, MagnifyingGlassReport } from '../../assets/images';
7
8
  import { confirmAddressProxy } from '../../proxies';
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { colors } from '../../theme/colors';
3
- import { Icon } from '@chakra-ui/icon';
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/icon';
2
+ import { Icon } from '@chakra-ui/icons';
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/icon';
2
+ import { Icon } from '@chakra-ui/icons';
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/icon';
2
+ import { Icon } from '@chakra-ui/icons';
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" })] }) }) }));
@@ -1,18 +1,18 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState } from 'react';
3
- import { Box, Flex, Menu, MenuButton, MenuItem, MenuList, useDimensions, } from '@chakra-ui/react';
3
+ import { Box, Flex, Menu, MenuButton, MenuItem, MenuList, useSize, } from '@chakra-ui/react';
4
4
  import { ChevronDown, SelectTextDisplay } from '..';
5
5
  export const SelectInputWithBadge = ({ handleClick, height = 'md', initialValue, isDisabled, items, width = '10rem', displaySelectedValue = false, }) => {
6
6
  const [selectedValue, setSelectedValue] = useState(initialValue !== null && initialValue !== void 0 ? initialValue : 'All');
7
7
  const isLargeWidth = width < '100px';
8
8
  const elementRef = useRef(null);
9
- const dimensions = useDimensions(elementRef);
9
+ const dimensions = useSize(elementRef);
10
10
  return (_jsx(Menu, { children: _jsxs(Box, { w: width, ref: elementRef, children: [_jsx(MenuButton, { w: "full", disabled: isDisabled, bg: "neutral.white", h: `input.${height}`, px: "2", border: "1px", borderRadius: "sm", borderColor: "lightBlue.6", _hover: { borderColor: 'blue.1' }, _focus: { borderColor: 'blue.3' }, _disabled: {
11
11
  bg: 'container.transparent',
12
12
  color: 'gray.1',
13
13
  pointerEvents: 'none',
14
14
  svg: { fill: 'gray.1' },
15
- }, children: _jsxs(Flex, { align: "center", gap: "2", justify: "space-between", children: [_jsx(SelectTextDisplay, { value: selectedValue, displaySelectedValue: displaySelectedValue }), _jsx(ChevronDown, {})] }) }), _jsx(MenuList, { zIndex: "dropdown", minH: "fit-content", maxH: "30rem", overflow: "scroll", w: isLargeWidth ? dimensions === null || dimensions === void 0 ? void 0 : dimensions.contentBox.width : 'fit-content', children: items === null || items === void 0 ? void 0 : items.map((item) => {
15
+ }, children: _jsxs(Flex, { align: "center", gap: "2", justify: "space-between", children: [_jsx(SelectTextDisplay, { value: selectedValue, displaySelectedValue: displaySelectedValue }), _jsx(ChevronDown, {})] }) }), _jsx(MenuList, { zIndex: "dropdown", minH: "fit-content", maxH: "30rem", overflow: "scroll", w: isLargeWidth ? dimensions === null || dimensions === void 0 ? void 0 : dimensions.width : 'fit-content', children: items === null || items === void 0 ? void 0 : items.map((item) => {
16
16
  const isSelectItem = typeof item === 'object';
17
17
  const id = isSelectItem ? item._id : item;
18
18
  const name = isSelectItem ? item.name : item;
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useSnapshot } from 'valtio';
3
3
  import { t } from 'i18next';
4
- import { Box, Container, Stack, Center, Flex, Button, Text, keyframes, } from '@chakra-ui/react';
4
+ import { Box, Container, Stack, Center, Flex, Button, Text, } from '@chakra-ui/react';
5
+ import { keyframes } from '@emotion/react';
5
6
  import { AddressStored, FirstHomeHeader, SectionHeader, TextInput, RadioButton, IncludePublicRecords, WrapperWithShadow, } from '../..';
6
7
  import { HomeAddress, RelationshipHome, MagnifyingGlassReport, } from '../../../assets/images';
7
8
  import { firstHomeProxy } from '../../../proxies';
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { t } from 'i18next';
3
- import { Box, Center, CircularProgress, Flex, Image, keyframes, Stack, } from '@chakra-ui/react';
3
+ import { Box, Center, CircularProgress, Flex, Image, Stack, } from '@chakra-ui/react';
4
+ import { keyframes } from '@emotion/react';
4
5
  import { useSnapshot } from 'valtio';
5
6
  import { AnimatedText, MyHomesStepBody, MyHomesStepWrapper } from '../..';
6
7
  import { addressProxy } from '../../../proxies';
@@ -10,7 +10,8 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Box, keyframes } from '@chakra-ui/react';
13
+ import { Box } from '@chakra-ui/react';
14
+ import { keyframes } from '@emotion/react';
14
15
  export const Overlay = (_a) => {
15
16
  var { bg = '#fdfdfdca', showOverlay = true, onClick } = _a, props = __rest(_a, ["bg", "showOverlay", "onClick"]);
16
17
  if (!showOverlay)
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { t } from 'i18next';
3
- import { Box, Flex, keyframes, Stack, Text } from '@chakra-ui/react';
3
+ import { Box, Flex, Stack, Text } from '@chakra-ui/react';
4
+ import { keyframes } from '@emotion/react';
4
5
  import { Mark, SatisfactionBar } from '../../..';
5
6
  export const SatisfactionProgress = ({ satisfactionPercentage, }) => {
6
7
  const sentiments = ['great', 'good', 'ok', 'poor'];
@@ -4,22 +4,7 @@ export declare const useConfirmHomeAddress: (values: ConfirmAddressFormI | undef
4
4
  handleSelectRecords: (event: ChangeEvent<HTMLInputElement>) => void;
5
5
  handleSubmit: () => void;
6
6
  isOwner: boolean;
7
- group: import("react").AriaAttributes & import("react").DOMAttributes<import("@chakra-ui/react-types").DOMElement> & import("@chakra-ui/react-types").DataAttributes & {
8
- id?: string;
9
- role?: React.AriaRole;
10
- tabIndex?: number;
11
- style?: React.CSSProperties;
12
- } & import("react").RefAttributes<any>;
13
- ownRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
14
- id?: string;
15
- role?: React.AriaRole;
16
- tabIndex?: number;
17
- style?: React.CSSProperties;
18
- } & import("react").RefAttributes<any>;
19
- rentRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
20
- id?: string;
21
- role?: React.AriaRole;
22
- tabIndex?: number;
23
- style?: React.CSSProperties;
24
- } & import("react").RefAttributes<any>;
7
+ group: import("@chakra-ui/utils").DOMAttributes<import("@chakra-ui/utils").DOMElement> & import("react").RefAttributes<any>;
8
+ ownRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
9
+ rentRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
25
10
  };
@@ -8,22 +8,7 @@ export declare const useAddHouseContent: (values: HomeFormI | undefined, callbac
8
8
  handleSelectRecords: (event: ChangeEvent<HTMLInputElement>) => void;
9
9
  handleSubmit: () => void;
10
10
  isOwner: boolean;
11
- group: import("react").AriaAttributes & import("react").DOMAttributes<import("@chakra-ui/react-types").DOMElement> & import("@chakra-ui/react-types").DataAttributes & {
12
- id?: string;
13
- role?: React.AriaRole;
14
- tabIndex?: number;
15
- style?: React.CSSProperties;
16
- } & import("react").RefAttributes<any>;
17
- ownRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
18
- id?: string;
19
- role?: React.AriaRole;
20
- tabIndex?: number;
21
- style?: React.CSSProperties;
22
- } & import("react").RefAttributes<any>;
23
- rentRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
24
- id?: string;
25
- role?: React.AriaRole;
26
- tabIndex?: number;
27
- style?: React.CSSProperties;
28
- } & import("react").RefAttributes<any>;
11
+ group: import("@chakra-ui/utils").DOMAttributes<import("@chakra-ui/utils").DOMElement> & import("react").RefAttributes<any>;
12
+ ownRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
13
+ rentRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
29
14
  };
@@ -6,18 +6,8 @@ export declare const useTwoFactorSetting: ({ defaultValue, email, onChange, sms,
6
6
  sms: string | undefined;
7
7
  '2fa': boolean;
8
8
  }, any>;
9
- emailRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
10
- id?: string;
11
- role?: React.AriaRole;
12
- tabIndex?: number;
13
- style?: React.CSSProperties;
14
- } & import("react").RefAttributes<any>;
15
- group: import("react").AriaAttributes & import("react").DOMAttributes<import("@chakra-ui/react-types").DOMElement> & import("@chakra-ui/react-types").DataAttributes & {
16
- id?: string;
17
- role?: React.AriaRole;
18
- tabIndex?: number;
19
- style?: React.CSSProperties;
20
- } & import("react").RefAttributes<any>;
9
+ emailRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
10
+ group: import("@chakra-ui/utils").DOMAttributes<import("@chakra-ui/utils").DOMElement> & import("react").RefAttributes<any>;
21
11
  handleEmailValidation: (value?: string) => boolean;
22
12
  handlePhoneValidation: (value?: string) => boolean;
23
13
  handleSubmit: import("react-hook-form").UseFormHandleSubmit<{
@@ -28,10 +18,5 @@ export declare const useTwoFactorSetting: ({ defaultValue, email, onChange, sms,
28
18
  is2faEnabled: boolean;
29
19
  radioValue: string | number;
30
20
  showButtons: boolean;
31
- smsRadio: import("@chakra-ui/react-types").InputDOMProps & import("react").AriaAttributes & import("react").DOMAttributes<HTMLInputElement> & import("@chakra-ui/react-types").DataAttributes & {
32
- id?: string;
33
- role?: React.AriaRole;
34
- tabIndex?: number;
35
- style?: React.CSSProperties;
36
- } & import("react").RefAttributes<any>;
21
+ smsRadio: import("@chakra-ui/utils").InputDOMAttributes & import("react").RefAttributes<any>;
37
22
  };
@@ -6,9 +6,9 @@ export declare const usePartnerTilePreview: () => {
6
6
  };
7
7
  company: {
8
8
  readonly address: {
9
- readonly apartmentNumber?: string;
9
+ readonly apartmentNumber?: string | undefined;
10
10
  readonly city: string;
11
- readonly obs?: string;
11
+ readonly obs?: string | undefined;
12
12
  readonly state: string;
13
13
  readonly street: string;
14
14
  readonly number: string;
@@ -1,8 +1,7 @@
1
- import { As } from '@chakra-ui/react';
2
- import { CSSProperties } from 'react';
1
+ import { CSSProperties, ElementType } from 'react';
3
2
  export interface IconsI {
4
3
  color?: string;
5
4
  size?: number | string;
6
5
  style?: CSSProperties;
7
- type: As | undefined;
6
+ type?: ElementType;
8
7
  }
@@ -5,7 +5,7 @@ export default _default;
5
5
  export declare const BubbleComponent: {
6
6
  (args: BubbleI): import("react/jsx-runtime").JSX.Element;
7
7
  args: {
8
- handleStep: import("@vitest/spy").Mock<any, any>;
8
+ handleStep: import("@vitest/spy").Mock<(...args: any[]) => any>;
9
9
  steps: {
10
10
  homeboard: {
11
11
  topRef: number;
@@ -6,6 +6,6 @@ export declare const HomeBoardTourComponent: {
6
6
  (args: TourI): import("react/jsx-runtime").JSX.Element;
7
7
  args: {
8
8
  isActive: boolean;
9
- handleStep: import("@vitest/spy").Mock<any, any>;
9
+ handleStep: import("@vitest/spy").Mock<(...args: any[]) => any>;
10
10
  };
11
11
  };
@@ -6,6 +6,6 @@ export declare const LaunchpadTourComponent: {
6
6
  (args: TourI): import("react/jsx-runtime").JSX.Element;
7
7
  args: {
8
8
  isActive: boolean;
9
- handleStep: import("@vitest/spy").Mock<any, any>;
9
+ handleStep: import("@vitest/spy").Mock<(...args: any[]) => any>;
10
10
  };
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "1.6.1",
3
+ "version": "2.0.0",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -22,66 +22,67 @@
22
22
  "src"
23
23
  ],
24
24
  "devDependencies": {
25
- "@chakra-ui/storybook-addon": "^5.1.0",
26
- "@chromatic-com/storybook": "^1.6.1",
27
- "@faker-js/faker": "^8.1.0",
28
- "@storybook/addon-a11y": "^8.2.4",
29
- "@storybook/addon-essentials": "^8.2.4",
30
- "@storybook/addon-interactions": "^8.2.4",
31
- "@storybook/addon-links": "^8.2.4",
32
- "@storybook/addon-onboarding": "^8.2.4",
33
- "@storybook/addon-viewport": "^8.2.4",
34
- "@storybook/blocks": "^8.2.4",
35
- "@storybook/builder-vite": "^8.2.4",
25
+ "@chakra-ui/storybook-addon": "^5.2.5",
26
+ "@chromatic-com/storybook": "^2.0.2",
27
+ "@faker-js/faker": "^9.0.3",
28
+ "@storybook/addon-a11y": "^8.3.5",
29
+ "@storybook/addon-essentials": "^8.3.5",
30
+ "@storybook/addon-interactions": "^8.3.5",
31
+ "@storybook/addon-links": "^8.3.5",
32
+ "@storybook/addon-onboarding": "^8.3.5",
33
+ "@storybook/addon-viewport": "^8.3.5",
34
+ "@storybook/blocks": "^8.3.5",
35
+ "@storybook/builder-vite": "^8.3.5",
36
36
  "@storybook/jest": "^0.2.3",
37
- "@storybook/react": "^8.2.4",
38
- "@storybook/react-vite": "^8.2.4",
39
- "@storybook/test": "^8.2.4",
40
- "@types/node": "^20.14.11",
41
- "@types/react": "^18.3.3",
42
- "@types/react-dom": "^18.3.0",
43
- "@vitejs/plugin-react": "^4.0.4",
44
- "axe-playwright": "^2.0.1",
37
+ "@storybook/react": "^8.3.5",
38
+ "@storybook/react-vite": "^8.3.5",
39
+ "@storybook/test": "^8.3.5",
40
+ "@types/node": "^22.7.6",
41
+ "@types/react": "^18.3.11",
42
+ "@types/react-dom": "^18.3.1",
43
+ "@vitejs/plugin-react": "^4.3.2",
44
+ "axe-playwright": "^2.0.3",
45
45
  "copyfiles": "^2.4.1",
46
46
  "git-commit-msg-linter": "^5.0.4",
47
- "husky": "^9.1.0",
47
+ "husky": "^9.1.6",
48
48
  "jest": "^29.7.0",
49
49
  "json-loader": "^0.5.7",
50
- "rimraf": "^5.0.1",
51
- "semantic-release": "^24.0.0",
52
- "storybook": "^8.2.4",
53
- "storybook-react-i18next": "^3.1.1",
50
+ "rimraf": "^6.0.1",
51
+ "semantic-release": "^24.1.2",
52
+ "storybook": "^8.3.5",
53
+ "storybook-react-i18next": "^3.1.7",
54
54
  "tsconfig-replace-paths": "^0.0.14",
55
55
  "tscpaths": "^0.0.9",
56
- "typescript": "^5.5.3",
57
- "vite": "^5.3.4"
56
+ "typescript": "^5.6.3",
57
+ "vite": "^5.4.9"
58
58
  },
59
59
  "dependencies": {
60
- "@chakra-ui/react": "^2.8.1",
61
- "@emotion/react": "^11.11.1",
62
- "@emotion/styled": "^11.11.0",
63
- "@fontsource/assistant": "^5.0.18",
64
- "@fontsource/poppins": "^5.0.14",
60
+ "@chakra-ui/icons": "^2.2.4",
61
+ "@chakra-ui/react": "^2.10.3",
62
+ "@emotion/react": "^11.13.3",
63
+ "@emotion/styled": "^11.13.0",
64
+ "@fontsource/assistant": "^5.1.0",
65
+ "@fontsource/poppins": "^5.1.0",
65
66
  "@hassanmojab/react-modern-calendar-datepicker": "^3.1.7",
66
67
  "@hookform/resolvers": "^3.3.1",
67
68
  "@rive-app/react-canvas": "^4.14.5",
68
- "axios": "^1.7.2",
69
- "date-fns": "^3.6.0",
70
- "framer-motion": "^11.3.6",
71
- "i18next": "^23.12.1",
69
+ "axios": "^1.7.7",
70
+ "date-fns": "^4.1.0",
71
+ "framer-motion": "^11.11.9",
72
+ "i18next": "^23.16.0",
72
73
  "i18next-browser-languagedetector": "^8.0.0",
73
- "i18next-http-backend": "^2.2.2",
74
+ "i18next-http-backend": "^2.6.2",
74
75
  "react": "^18.2.0",
75
76
  "react-dom": "^18.2.0",
76
- "react-dropzone": "^14.2.3",
77
- "react-hook-form": "^7.46.2",
78
- "react-i18next": "^15.0.0",
79
- "react-icons": "^5.2.1",
77
+ "react-dropzone": "^14.2.9",
78
+ "react-hook-form": "^7.53.0",
79
+ "react-i18next": "^15.0.3",
80
+ "react-icons": "^5.3.0",
80
81
  "react-modern-calendar-datepicker": "^3.1.6",
81
82
  "react-quill": "^2.0.0",
82
83
  "react-spinners": "^0.14.1",
83
- "recharts": "^2.10.1",
84
- "valtio": "^1.11.2",
84
+ "recharts": "^2.13.0",
85
+ "valtio": "^2.1.0",
85
86
  "yup": "^1.2.0"
86
87
  },
87
88
  "scripts": {
@@ -8,7 +8,8 @@ import {
8
8
  } from '@/assets/images'
9
9
  import { useWindowDimensions } from '@/hooks'
10
10
  import { colors } from '@/theme/colors'
11
- import { Box, keyframes, Image } from '@chakra-ui/react'
11
+ import { Box, Image } from '@chakra-ui/react'
12
+ import { keyframes } from '@emotion/react'
12
13
  import { Fragment, PropsWithChildren } from 'react'
13
14
 
14
15
  export const moveLeftToRightAirplane = keyframes`
@@ -1,5 +1,5 @@
1
1
  import { useRive } from '@rive-app/react-canvas'
2
- const url = process.env.REACT_APP_RIVE_ASSETS
2
+ const url = import.meta.env.VITE_RIVE_ASSETS
3
3
 
4
4
  export const HomieAnimation = () => {
5
5
  const { RiveComponent } = useRive({
@@ -8,8 +8,8 @@ import {
8
8
  Flex,
9
9
  Button,
10
10
  Text,
11
- keyframes,
12
11
  } from '@chakra-ui/react'
12
+ import { keyframes } from '@emotion/react'
13
13
  import {
14
14
  AddressStored,
15
15
  SectionHeader,
@@ -1,5 +1,5 @@
1
1
  import { colors } from '@/theme/colors'
2
- import { Icon } from '@chakra-ui/icon'
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/icon'
1
+ import { Icon } from '@chakra-ui/icons'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const DisplayItem = ({
@@ -1,4 +1,4 @@
1
- import { Icon } from '@chakra-ui/icon'
1
+ import { Icon } from '@chakra-ui/icons'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const DisplayList = ({
@@ -1,4 +1,4 @@
1
- import { Icon } from '@chakra-ui/icon'
1
+ import { Icon } from '@chakra-ui/icons'
2
2
  import { colors } from '@/theme/colors'
3
3
 
4
4
  export const Upload = ({
@@ -6,7 +6,7 @@ import {
6
6
  MenuButton,
7
7
  MenuItem,
8
8
  MenuList,
9
- useDimensions,
9
+ useSize,
10
10
  } from '@chakra-ui/react'
11
11
  import { ChevronDown, SelectTextDisplay } from '@/components'
12
12
  import { SelectI } from '@/interfaces'
@@ -20,10 +20,12 @@ export const SelectInputWithBadge = ({
20
20
  width = '10rem',
21
21
  displaySelectedValue = false,
22
22
  }: SelectI) => {
23
- const [selectedValue, setSelectedValue] = useState<string>(initialValue ?? 'All')
23
+ const [selectedValue, setSelectedValue] = useState<string>(
24
+ initialValue ?? 'All'
25
+ )
24
26
  const isLargeWidth = width < '100px'
25
27
  const elementRef = useRef<HTMLDivElement>(null)
26
- const dimensions = useDimensions(elementRef)
28
+ const dimensions = useSize(elementRef)
27
29
 
28
30
  return (
29
31
  <Menu>
@@ -59,7 +61,7 @@ export const SelectInputWithBadge = ({
59
61
  minH="fit-content"
60
62
  maxH="30rem"
61
63
  overflow="scroll"
62
- w={isLargeWidth ? dimensions?.contentBox.width : 'fit-content'}
64
+ w={isLargeWidth ? dimensions?.width : 'fit-content'}
63
65
  >
64
66
  {items?.map((item) => {
65
67
  const isSelectItem = typeof item === 'object'
@@ -8,8 +8,8 @@ import {
8
8
  Flex,
9
9
  Button,
10
10
  Text,
11
- keyframes,
12
11
  } from '@chakra-ui/react'
12
+ import { keyframes } from '@emotion/react'
13
13
  import {
14
14
  AddressStored,
15
15
  FirstHomeHeader,
@@ -5,9 +5,9 @@ import {
5
5
  CircularProgress,
6
6
  Flex,
7
7
  Image,
8
- keyframes,
9
8
  Stack,
10
9
  } from '@chakra-ui/react'
10
+ import { keyframes } from '@emotion/react'
11
11
  import { useSnapshot } from 'valtio'
12
12
  import { AnimatedText, MyHomesStepBody, MyHomesStepWrapper } from '@/components'
13
13
  import { addressProxy } from '@/proxies'
@@ -1,4 +1,5 @@
1
- import { Box, keyframes } from '@chakra-ui/react'
1
+ import { Box } from '@chakra-ui/react'
2
+ import { keyframes } from '@emotion/react'
2
3
  import { OverlayI } from '@/interfaces'
3
4
 
4
5
  export const Overlay = ({
@@ -1,5 +1,6 @@
1
1
  import { t } from 'i18next'
2
- import { Box, Flex, keyframes, Stack, Text } from '@chakra-ui/react'
2
+ import { Box, Flex, Stack, Text } from '@chakra-ui/react'
3
+ import { keyframes } from '@emotion/react'
3
4
  import { Mark, SatisfactionBar } from '@/components'
4
5
  import { SatisfactionProgressI, SatisfactionTypes } from '@/interfaces'
5
6
 
@@ -1,9 +1,8 @@
1
- import { As } from '@chakra-ui/react'
2
- import { CSSProperties } from 'react'
1
+ import { CSSProperties, ElementType } from 'react'
3
2
 
4
3
  export interface IconsI {
5
4
  color?: string
6
5
  size?: number | string
7
6
  style?: CSSProperties
8
- type: As | undefined
7
+ type?: ElementType
9
8
  }