@homefile/components-v2 2.36.15 → 2.36.16
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/assets/locales/en/index.json +3 -1
- package/dist/components/buttons/ReactionTag.d.ts +9 -0
- package/dist/components/buttons/ReactionTag.js +14 -0
- package/dist/components/buttons/index.d.ts +1 -0
- package/dist/components/buttons/index.js +1 -0
- package/dist/components/wizard/WizardValueSummary.d.ts +1 -1
- package/dist/components/wizard/WizardValueSummary.js +3 -3
- package/dist/interfaces/wizard/WizardValueSummary.interface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"buttons": {
|
|
103
103
|
"accurate": "Accurate",
|
|
104
104
|
"back": "Back",
|
|
105
|
+
"complete": "Complete",
|
|
105
106
|
"cancel": "Cancel",
|
|
106
107
|
"confirm": "Confirm",
|
|
107
108
|
"contacts": "Contacts",
|
|
@@ -1297,9 +1298,10 @@
|
|
|
1297
1298
|
"title": "Value Monitor"
|
|
1298
1299
|
},
|
|
1299
1300
|
"wizardValueSummary": {
|
|
1301
|
+
"accurateData": "Is this data \naccurate?",
|
|
1300
1302
|
"assessedValue": "[Year] Assessed Value",
|
|
1301
1303
|
"estimatedValue": "Estimated Value",
|
|
1302
|
-
"info": "You can edit this record within your Homefile.
|
|
1304
|
+
"info": "You can edit this record within your Homefile. \nYour information remains private and is never shared or sold.",
|
|
1303
1305
|
"purchasePrice": "Purchase Price"
|
|
1304
1306
|
}
|
|
1305
1307
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type ReactionTagProps = {
|
|
2
|
+
type: 'like' | 'dislike';
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const ReactionTag: ({ type, isActive, size, onClick, ariaLabel, }: ReactionTagProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Icon } from '@chakra-ui/react';
|
|
3
|
+
import { BiLike } from 'react-icons/bi';
|
|
4
|
+
export const ReactionTag = ({ type, isActive = true, size = 12, onClick, ariaLabel, }) => {
|
|
5
|
+
const types = {
|
|
6
|
+
like: {
|
|
7
|
+
color: isActive ? 'green.1' : 'gray.1',
|
|
8
|
+
},
|
|
9
|
+
dislike: {
|
|
10
|
+
color: isActive ? 'red.1' : 'gray.1',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
return (_jsx(Box, { as: "button", "aria-label": ariaLabel, onClick: onClick, width: size, height: size, minW: size, minH: size, borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", borderWidth: "2px", borderColor: types[type].color, cursor: "pointer", transition: "all 150ms", _hover: { transform: 'scale(1.06)' }, children: _jsx(Icon, { as: BiLike, boxSize: Math.max(Number(String(size).replace('px', '')) * 0.5, 7), color: types[type].color, transform: type === 'dislike' ? 'scale(-1)' : undefined }) }));
|
|
14
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { WizardValueSummaryProps } from '../../interfaces';
|
|
2
|
-
export declare const WizardValueSummary: ({ title, subtitle, address, estimatedValue, purchasePrice, assessedValue, purchasePriceDetails, assessedValueDetails, onAccurate, onNotAccurate, }: WizardValueSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const WizardValueSummary: ({ title, subtitle, address, estimatedValue, purchasePrice, assessedValue, purchasePriceDetails, assessedValueDetails, onAccurate, onNotAccurate, onComplete, }: WizardValueSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { t } from 'i18next';
|
|
3
3
|
import { Stack, Text, Flex, Divider, Button } from '@chakra-ui/react';
|
|
4
|
-
import { TrendingValueCard, RecordsSession } from '../../components';
|
|
5
|
-
export const WizardValueSummary = ({ title, subtitle, address, estimatedValue, purchasePrice, assessedValue, purchasePriceDetails, assessedValueDetails, onAccurate, onNotAccurate, }) => {
|
|
4
|
+
import { TrendingValueCard, RecordsSession, ReactionTag } from '../../components';
|
|
5
|
+
export const WizardValueSummary = ({ title, subtitle, address, estimatedValue, purchasePrice, assessedValue, purchasePriceDetails, assessedValueDetails, onAccurate, onNotAccurate, onComplete, }) => {
|
|
6
6
|
const estimatedValueFormatted = `$${estimatedValue.toLocaleString('en-US')}.`;
|
|
7
|
-
return (_jsxs(Stack, { w: { base: 'full', md: '70%' }, m: "auto", spacing: "6", children: [_jsxs(Stack, { spacing: "1", align: "center", children: [_jsx(Text, { fontSize: "2xl", textTransform: "capitalize", children: title }), _jsx(Text, { fontFamily: "secondary", children: address }), subtitle && _jsx(Text, { fontFamily: "secondary", children: subtitle })] }), _jsxs(Stack, { bg: "lightGreen.3", spacing: "base", pt: "base", pb: "6", align: "center", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: t('wizardValueSummary.estimatedValue') }), _jsx(Text, { fontSize: "3xl", children: estimatedValueFormatted })] }), _jsxs(Flex, { gap: "base", direction: { base: 'column', md: 'row' }, children: [_jsxs(Stack, { flex: "1", spacing: "6", children: [_jsx(TrendingValueCard, { bg: "lightBlue.1", label: t('wizardValueSummary.purchasePrice'), value: purchasePrice }), _jsx(RecordsSession, { details: purchasePriceDetails, showLine: false, gap: "1", textAlign: "right", p: "0" })] }), _jsxs(Stack, { flex: "1", spacing: "6", children: [_jsx(TrendingValueCard, { bg: "lightBlue.1", label: t('wizardValueSummary.assessedValue'), value: assessedValue }), _jsx(RecordsSession, { details: assessedValueDetails, showLine: false, gap: "1", textAlign: "right", p: "0" })] })] }), _jsx(Divider, { borderStyle: "
|
|
7
|
+
return (_jsxs(Stack, { w: { base: 'full', md: '70%' }, m: "auto", spacing: "6", children: [_jsxs(Stack, { spacing: "1", align: "center", children: [_jsx(Text, { fontSize: "2xl", textTransform: "capitalize", children: title }), _jsx(Text, { fontFamily: "secondary", children: address }), subtitle && _jsx(Text, { fontFamily: "secondary", children: subtitle })] }), _jsxs(Stack, { bg: "lightGreen.3", spacing: "base", pt: "base", pb: "6", align: "center", children: [_jsx(Text, { fontSize: "xs", textTransform: "uppercase", children: t('wizardValueSummary.estimatedValue') }), _jsx(Text, { fontSize: "3xl", children: estimatedValueFormatted })] }), _jsxs(Flex, { gap: "base", direction: { base: 'column', md: 'row' }, children: [_jsxs(Stack, { flex: "1", spacing: "6", children: [_jsx(TrendingValueCard, { bg: "lightBlue.1", label: t('wizardValueSummary.purchasePrice'), value: purchasePrice }), _jsx(RecordsSession, { details: purchasePriceDetails, showLine: false, gap: "1", textAlign: "right", p: "0" })] }), _jsxs(Stack, { flex: "1", spacing: "6", children: [_jsx(TrendingValueCard, { bg: "lightBlue.1", label: t('wizardValueSummary.assessedValue'), value: assessedValue }), _jsx(RecordsSession, { details: assessedValueDetails, showLine: false, gap: "1", textAlign: "right", p: "0" })] })] }), _jsx(Divider, { borderStyle: "dashed", borderColor: "lightBlue.11" }), _jsxs(Flex, { align: "center", justify: "space-between", children: [_jsxs(Flex, { gap: "base", align: "center", children: [_jsx(Text, { fontFamily: "secondary", fontSize: "xs", color: "gray.2", lineHeight: "shorter", whiteSpace: "pre-line", children: t('wizardValueSummary.accurateData') }), _jsx(ReactionTag, { type: "dislike", ariaLabel: t('buttons.notAccurate'), onClick: onNotAccurate }), _jsx(ReactionTag, { type: "like", ariaLabel: t('buttons.accurate'), onClick: onAccurate })] }), _jsx(Button, { w: "154px", onClick: onComplete, children: t('buttons.complete') })] }), _jsx(Text, { fontFamily: "secondary", fontSize: "sm", textAlign: "center", color: "gray.2", lineHeight: "shorter", whiteSpace: "pre-line", children: t('wizardValueSummary.info') })] }));
|
|
8
8
|
};
|