@homefile/components-v2 2.8.37 → 2.8.38
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/forms/readOnly/fields/ReadOnlyGrid.js +2 -3
- package/dist/components/forms/readOnly/fields/ReadOnlyGroup.js +1 -2
- package/package.json +1 -1
- package/src/components/forms/readOnly/fields/ReadOnlyGrid.tsx +2 -3
- package/src/components/forms/readOnly/fields/ReadOnlyGroup.tsx +2 -3
|
@@ -17,7 +17,6 @@ export const ReadOnlyGrid = (_a) => {
|
|
|
17
17
|
var { children, onClick } = _a, props = __rest(_a, ["children", "onClick"]);
|
|
18
18
|
return (_jsx(Flex, Object.assign({ align: "stretch", gap: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", p: "base" }, props, { children: children === null || children === void 0 ? void 0 : children.map(({ children, id, name, value, type, icon }) => {
|
|
19
19
|
const baseProps = {
|
|
20
|
-
key: `${id}-${name}-${value}-${type}`,
|
|
21
20
|
id,
|
|
22
21
|
value,
|
|
23
22
|
icon: icon && fieldIcons[icon],
|
|
@@ -31,9 +30,9 @@ export const ReadOnlyGrid = (_a) => {
|
|
|
31
30
|
case 'select':
|
|
32
31
|
case 'string':
|
|
33
32
|
case 'currency':
|
|
34
|
-
return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" })));
|
|
33
|
+
return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" }), `${id}-${name}-${value}-${type}`));
|
|
35
34
|
case 'date':
|
|
36
|
-
return _jsx(ReadOnlyDate, Object.assign({}, baseProps, { name: name, p: "0" }));
|
|
35
|
+
return _jsx(ReadOnlyDate, Object.assign({}, baseProps, { name: name, p: "0" }), `${id}-${name}-${value}-${type}`);
|
|
37
36
|
case 'guidelines':
|
|
38
37
|
return (_jsx(ReadOnlyGuidelines, { name: name, children: children, onClick: onClick }, id));
|
|
39
38
|
case 'item-related':
|
|
@@ -5,7 +5,6 @@ import { fieldIcons } from '../../../../helpers';
|
|
|
5
5
|
export const ReadOnlyGroup = ({ children }) => {
|
|
6
6
|
return (_jsx(Stack, { align: "stretch", spacing: "base", p: "base", borderBottom: "1px dashed", borderColor: "lightBlue.6", children: children === null || children === void 0 ? void 0 : children.map(({ children, id, name, value, type, icon }) => {
|
|
7
7
|
const baseProps = {
|
|
8
|
-
key: `${id}-${name}-${value}-${type}`,
|
|
9
8
|
id,
|
|
10
9
|
value,
|
|
11
10
|
icon: icon && fieldIcons[icon],
|
|
@@ -19,7 +18,7 @@ export const ReadOnlyGroup = ({ children }) => {
|
|
|
19
18
|
case 'select':
|
|
20
19
|
case 'string':
|
|
21
20
|
case 'currency':
|
|
22
|
-
return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" })));
|
|
21
|
+
return (_jsx(ReadOnlyInput, Object.assign({}, baseProps, { border: "none", flex: "auto", p: "0" }), `${id}-${name}-${value}-${type}`));
|
|
23
22
|
case 'date':
|
|
24
23
|
return _jsx(ReadOnlyDate, Object.assign({}, baseProps, { name: name }));
|
|
25
24
|
case 'grid':
|
package/package.json
CHANGED
|
@@ -24,7 +24,6 @@ export const ReadOnlyGrid = ({
|
|
|
24
24
|
>
|
|
25
25
|
{children?.map(({ children, id, name, value, type, icon }) => {
|
|
26
26
|
const baseProps = {
|
|
27
|
-
key: `${id}-${name}-${value}-${type}`,
|
|
28
27
|
id,
|
|
29
28
|
value,
|
|
30
29
|
icon: icon && (fieldIcons[icon] as IconTypes),
|
|
@@ -39,10 +38,10 @@ export const ReadOnlyGrid = ({
|
|
|
39
38
|
case 'string':
|
|
40
39
|
case 'currency':
|
|
41
40
|
return (
|
|
42
|
-
<ReadOnlyInput {...baseProps} border="none" flex="auto" p="0" />
|
|
41
|
+
<ReadOnlyInput key={`${id}-${name}-${value}-${type}`} {...baseProps} border="none" flex="auto" p="0" />
|
|
43
42
|
)
|
|
44
43
|
case 'date':
|
|
45
|
-
return <ReadOnlyDate {...baseProps} name={name} p="0" />
|
|
44
|
+
return <ReadOnlyDate key={`${id}-${name}-${value}-${type}`} {...baseProps} name={name} p="0" />
|
|
46
45
|
|
|
47
46
|
case 'guidelines':
|
|
48
47
|
return (
|
|
@@ -3,7 +3,7 @@ import { IconTypes, ReportI } from '@/interfaces'
|
|
|
3
3
|
import { ReadOnlyDate, ReadOnlyGrid, ReadOnlyInput } from '@/components'
|
|
4
4
|
import { fieldIcons } from '@/helpers'
|
|
5
5
|
|
|
6
|
-
export const ReadOnlyGroup = ({ children
|
|
6
|
+
export const ReadOnlyGroup = ({ children}: Pick<ReportI, 'children'>) => {
|
|
7
7
|
return (
|
|
8
8
|
<Stack
|
|
9
9
|
align="stretch"
|
|
@@ -14,7 +14,6 @@ export const ReadOnlyGroup = ({ children }: Pick<ReportI, 'children'>) => {
|
|
|
14
14
|
>
|
|
15
15
|
{children?.map(({ children, id, name, value, type, icon }) => {
|
|
16
16
|
const baseProps = {
|
|
17
|
-
key: `${id}-${name}-${value}-${type}`,
|
|
18
17
|
id,
|
|
19
18
|
value,
|
|
20
19
|
icon: icon && (fieldIcons[icon] as IconTypes),
|
|
@@ -29,7 +28,7 @@ export const ReadOnlyGroup = ({ children }: Pick<ReportI, 'children'>) => {
|
|
|
29
28
|
case 'string':
|
|
30
29
|
case 'currency':
|
|
31
30
|
return (
|
|
32
|
-
<ReadOnlyInput {...baseProps} border="none" flex="auto" p="0" />
|
|
31
|
+
<ReadOnlyInput key={`${id}-${name}-${value}-${type}`} {...baseProps} border="none" flex="auto" p="0" />
|
|
33
32
|
)
|
|
34
33
|
case 'date':
|
|
35
34
|
return <ReadOnlyDate {...baseProps} name={name} />
|