@applica-software-guru/react-admin 1.5.263 → 1.5.264

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/package.json CHANGED
@@ -106,5 +106,5 @@
106
106
  "type": "module",
107
107
  "types": "dist/index.d.ts",
108
108
  "typings": "dist/index.d.ts",
109
- "version": "1.5.263"
109
+ "version": "1.5.264"
110
110
  }
@@ -22,6 +22,7 @@ import * as React from 'react';
22
22
  import { Children, ReactElement, ReactNode, useCallback, useMemo, useRef, useState } from 'react';
23
23
  import { Confirm, useArrayInput } from 'react-admin';
24
24
  import { UseFieldArrayReturn, useFormContext } from 'react-hook-form';
25
+ import { Tooltip } from '@/components/@extended';
25
26
 
26
27
  /**
27
28
  * How to use TableFormIterator:
@@ -180,11 +181,23 @@ function RawTableFormIterator(props: TableFormIteratorProps): ReactElement | nul
180
181
  if (!React.isValidElement<any>(input)) {
181
182
  return null;
182
183
  }
184
+
185
+ const columnText = (
186
+ <Typography display={'flex'} variant="subtitle1" color="text.primary" textTransform="none">
187
+ {translateLabel({ ...input.props, resource })}
188
+ </Typography>
189
+ );
190
+
183
191
  return (
184
192
  <TableCell key={index}>
185
- <Typography display={'flex'} variant="subtitle1" color="text.primary" textTransform="none">
186
- {translateLabel({ ...input.props, resource })}
187
- </Typography>
193
+ {input.props.title ? (
194
+ // @ts-ignore
195
+ <Tooltip title={input.props.title} arrow>
196
+ {columnText}
197
+ </Tooltip>
198
+ ) : (
199
+ columnText
200
+ )}
188
201
  </TableCell>
189
202
  );
190
203
  })}
@@ -62,7 +62,7 @@ function LabeledInput({
62
62
  label: display === 'legend' ? label : false
63
63
  })
64
64
  : children}
65
- {display === 'label' && helperText ? (
65
+ {helperText ? (
66
66
  <FormHelperText
67
67
  sx={{
68
68
  pl: 1.8,