@homefile/components-v2 2.27.4 → 2.27.5
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/homeItems/HomeItemList.js +1 -1
- package/dist/components/homeItems/ProductRadioCardContent.d.ts +1 -1
- package/dist/components/homeItems/ProductRadioCardContent.js +2 -2
- package/dist/interfaces/homeItems/ProductRadioCardContent.interface.d.ts +1 -1
- package/dist/stories/homeItems/HomeItemList.stories.js +2 -2
- package/package.json +1 -1
- package/src/components/homeItems/HomeItemList.tsx +1 -1
- package/src/components/homeItems/ProductRadioCardContent.tsx +2 -2
- package/src/interfaces/homeItems/ProductRadioCardContent.interface.ts +1 -1
- package/src/stories/homeItems/HomeItemList.stories.tsx +2 -2
|
@@ -14,7 +14,7 @@ export const HomeItemList = ({ items, onChange }) => {
|
|
|
14
14
|
...items,
|
|
15
15
|
{
|
|
16
16
|
id: 'none',
|
|
17
|
-
|
|
17
|
+
title: hasItems ? t('homeItems.noneAbove') : t('homeItems.addDetail'),
|
|
18
18
|
},
|
|
19
19
|
];
|
|
20
20
|
return (_jsxs(Container, { h: "full", children: [_jsx(HomeItemListHeader, { title: hasItems
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ProductRadioCardContentI } from '../../interfaces';
|
|
2
|
-
export declare const ProductRadioCardContent: ({ id,
|
|
2
|
+
export declare const ProductRadioCardContent: ({ id, title, brand, model, }: ProductRadioCardContentI) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Stack, Text } from '@chakra-ui/react';
|
|
3
3
|
import { DetailsColumn } from '..';
|
|
4
|
-
export const ProductRadioCardContent = ({ id,
|
|
4
|
+
export const ProductRadioCardContent = ({ id, title, brand, model, }) => {
|
|
5
5
|
const isNone = id === 'none';
|
|
6
6
|
const details = [
|
|
7
7
|
brand && { label: 'Brand:', value: brand },
|
|
8
8
|
model && { label: 'Model#:', value: model },
|
|
9
9
|
].filter(Boolean);
|
|
10
|
-
return (_jsxs(Stack, { spacing: "base", w: "full", children: [_jsx(Text, { fontSize: isNone ? 'md' : 'lg', children:
|
|
10
|
+
return (_jsxs(Stack, { spacing: "base", w: "full", children: [_jsx(Text, { fontSize: isNone ? 'md' : 'lg', children: title }), _jsx(DetailsColumn, { color: "gray.2", details: details, fontSize: "md", leftFlexPercent: 20 })] }));
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export const HomeItemList = ({ items, onChange }: HomeItemListI) => {
|
|
|
21
21
|
...items,
|
|
22
22
|
{
|
|
23
23
|
id: 'none',
|
|
24
|
-
|
|
24
|
+
title: hasItems ? t('homeItems.noneAbove') : t('homeItems.addDetail'),
|
|
25
25
|
},
|
|
26
26
|
]
|
|
27
27
|
|
|
@@ -4,7 +4,7 @@ import { DetailsColumn } from '@/components'
|
|
|
4
4
|
|
|
5
5
|
export const ProductRadioCardContent = ({
|
|
6
6
|
id,
|
|
7
|
-
|
|
7
|
+
title,
|
|
8
8
|
brand,
|
|
9
9
|
model,
|
|
10
10
|
}: ProductRadioCardContentI) => {
|
|
@@ -15,7 +15,7 @@ export const ProductRadioCardContent = ({
|
|
|
15
15
|
].filter(Boolean) as DetailRowI[]
|
|
16
16
|
return (
|
|
17
17
|
<Stack spacing="base" w="full">
|
|
18
|
-
<Text fontSize={isNone ? 'md' : 'lg'}>{
|
|
18
|
+
<Text fontSize={isNone ? 'md' : 'lg'}>{title}</Text>
|
|
19
19
|
<DetailsColumn
|
|
20
20
|
color="gray.2"
|
|
21
21
|
details={details}
|