@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.
- package/dist/components/animations/CloudsAnimation.d.ts +5 -5
- package/dist/components/animations/CloudsAnimation.js +2 -1
- package/dist/components/animations/HomieAnimation.js +1 -1
- package/dist/components/homeBoard/ConfirmHomeAddress.js +2 -1
- package/dist/components/icons/DisplayGrid.js +1 -1
- package/dist/components/icons/DisplayItem.js +1 -1
- package/dist/components/icons/DisplayList.js +1 -1
- package/dist/components/icons/Upload.js +1 -1
- package/dist/components/inputs/SelectInputWithBadge.js +3 -3
- package/dist/components/myHomes/steps/MyHomeDetails.js +2 -1
- package/dist/components/myHomes/steps/SearchRecords.js +2 -1
- package/dist/components/overlay/Overlay.js +2 -1
- package/dist/components/partner/adminTiles/satisfactionTile/SatisfactionProgress.js +2 -1
- package/dist/hooks/homeBoard/useConfirmHomeAddress.d.ts +3 -18
- package/dist/hooks/myHomes/useAddHomeContent.d.ts +3 -18
- package/dist/hooks/myProfile/useTwoFactorSetting.d.ts +3 -18
- package/dist/hooks/partner/preview/usePartnerTilePreview.d.ts +2 -2
- package/dist/interfaces/icons/CustomIcon.interface.d.ts +2 -3
- package/dist/stories/tour/Bubble.stories.d.ts +1 -1
- package/dist/stories/tour/HomeBoardTour.stories.d.ts +1 -1
- package/dist/stories/tour/LaunchpadTour.stories.d.ts +1 -1
- package/package.json +44 -43
- package/src/components/animations/CloudsAnimation.tsx +2 -1
- package/src/components/animations/HomieAnimation.tsx +1 -1
- package/src/components/homeBoard/ConfirmHomeAddress.tsx +1 -1
- package/src/components/icons/DisplayGrid.tsx +1 -1
- package/src/components/icons/DisplayItem.tsx +1 -1
- package/src/components/icons/DisplayList.tsx +1 -1
- package/src/components/icons/Upload.tsx +1 -1
- package/src/components/inputs/SelectInputWithBadge.tsx +6 -4
- package/src/components/myHomes/steps/MyHomeDetails.tsx +1 -1
- package/src/components/myHomes/steps/SearchRecords.tsx +1 -1
- package/src/components/overlay/Overlay.tsx +2 -1
- package/src/components/partner/adminTiles/satisfactionTile/SatisfactionProgress.tsx +2 -1
- 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/
|
|
3
|
-
export declare const moveRightToLeft: import("@emotion/
|
|
4
|
-
export declare const moveRightToLeftWithFade: import("@emotion/
|
|
5
|
-
export declare const moveRightToLeftWithFade2: import("@emotion/
|
|
6
|
-
export declare const moveRightToLeftWithFade3: import("@emotion/
|
|
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,
|
|
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 =
|
|
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,
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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,
|
|
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 =
|
|
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.
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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("
|
|
8
|
-
|
|
9
|
-
|
|
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("
|
|
12
|
-
|
|
13
|
-
|
|
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/
|
|
10
|
-
|
|
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/
|
|
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 {
|
|
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
|
|
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
|
|
8
|
+
handleStep: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
9
9
|
steps: {
|
|
10
10
|
homeboard: {
|
|
11
11
|
topRef: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homefile/components-v2",
|
|
3
|
-
"version": "
|
|
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.
|
|
26
|
-
"@chromatic-com/storybook": "^
|
|
27
|
-
"@faker-js/faker": "^
|
|
28
|
-
"@storybook/addon-a11y": "^8.
|
|
29
|
-
"@storybook/addon-essentials": "^8.
|
|
30
|
-
"@storybook/addon-interactions": "^8.
|
|
31
|
-
"@storybook/addon-links": "^8.
|
|
32
|
-
"@storybook/addon-onboarding": "^8.
|
|
33
|
-
"@storybook/addon-viewport": "^8.
|
|
34
|
-
"@storybook/blocks": "^8.
|
|
35
|
-
"@storybook/builder-vite": "^8.
|
|
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.
|
|
38
|
-
"@storybook/react-vite": "^8.
|
|
39
|
-
"@storybook/test": "^8.
|
|
40
|
-
"@types/node": "^
|
|
41
|
-
"@types/react": "^18.3.
|
|
42
|
-
"@types/react-dom": "^18.3.
|
|
43
|
-
"@vitejs/plugin-react": "^4.
|
|
44
|
-
"axe-playwright": "^2.0.
|
|
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.
|
|
47
|
+
"husky": "^9.1.6",
|
|
48
48
|
"jest": "^29.7.0",
|
|
49
49
|
"json-loader": "^0.5.7",
|
|
50
|
-
"rimraf": "^
|
|
51
|
-
"semantic-release": "^24.
|
|
52
|
-
"storybook": "^8.
|
|
53
|
-
"storybook-react-i18next": "^3.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.
|
|
57
|
-
"vite": "^5.
|
|
56
|
+
"typescript": "^5.6.3",
|
|
57
|
+
"vite": "^5.4.9"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@chakra-ui/
|
|
61
|
-
"@
|
|
62
|
-
"@emotion/
|
|
63
|
-
"@
|
|
64
|
-
"@fontsource/
|
|
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.
|
|
69
|
-
"date-fns": "^
|
|
70
|
-
"framer-motion": "^11.
|
|
71
|
-
"i18next": "^23.
|
|
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.
|
|
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.
|
|
77
|
-
"react-hook-form": "^7.
|
|
78
|
-
"react-i18next": "^15.0.
|
|
79
|
-
"react-icons": "^5.
|
|
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.
|
|
84
|
-
"valtio": "^1.
|
|
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,
|
|
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`
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
MenuButton,
|
|
7
7
|
MenuItem,
|
|
8
8
|
MenuList,
|
|
9
|
-
|
|
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>(
|
|
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 =
|
|
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?.
|
|
64
|
+
w={isLargeWidth ? dimensions?.width : 'fit-content'}
|
|
63
65
|
>
|
|
64
66
|
{items?.map((item) => {
|
|
65
67
|
const isSelectItem = typeof item === 'object'
|
|
@@ -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,5 +1,6 @@
|
|
|
1
1
|
import { t } from 'i18next'
|
|
2
|
-
import { Box, Flex,
|
|
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 {
|
|
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
|
|
7
|
+
type?: ElementType
|
|
9
8
|
}
|