@applica-software-guru/react-admin 1.5.254 → 1.5.255
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/ra-fields/CoverField.d.ts +3 -1
- package/dist/components/ra-fields/CoverField.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +3 -3
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +17 -14
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +3 -3
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-fields/CoverField.tsx +6 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
2
3
|
import { FieldProps } from 'react-admin';
|
|
3
4
|
type CoverFieldProps = {
|
|
4
5
|
width?: number | string;
|
|
5
6
|
height?: number | string;
|
|
6
7
|
circle?: boolean;
|
|
7
8
|
justify?: 'flex-start' | 'center' | 'flex-end';
|
|
9
|
+
sx?: SxProps;
|
|
8
10
|
} & FieldProps;
|
|
9
11
|
/**
|
|
10
12
|
* A component that displays an image in a circle or square (with minimum radius).
|
|
@@ -21,7 +23,7 @@ type CoverFieldProps = {
|
|
|
21
23
|
* // With custom width/height:
|
|
22
24
|
* <CoverField source="image" width={100} height={100} />
|
|
23
25
|
*/
|
|
24
|
-
declare function CoverField({ width: defaultWidth, height: defaultHeight, circle: defaultCircle, justify: defaultJustify, record: _propRecord, ...props }: CoverFieldProps): JSX.Element;
|
|
26
|
+
declare function CoverField({ width: defaultWidth, height: defaultHeight, circle: defaultCircle, justify: defaultJustify, record: _propRecord, sx: _sx, ...props }: CoverFieldProps): JSX.Element;
|
|
25
27
|
export { CoverField };
|
|
26
28
|
export type { CoverFieldProps };
|
|
27
29
|
//# sourceMappingURL=CoverField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoverField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/CoverField.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CoverField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/CoverField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAoB,MAAM,aAAa,CAAC;AAE3D,KAAK,eAAe,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC/C,EAAE,CAAC,EAAE,OAAO,CAAC;CACd,GAAG,UAAU,CAAC;AAEf;;;;;;;;;;;;;;GAcG;AACH,iBAAS,UAAU,CAAC,EAClB,KAAK,EAAE,YAAkB,EACzB,MAAM,EAAE,aAAmB,EAC3B,MAAM,EAAE,aAAqB,EAC7B,OAAO,EAAE,cAA6B,EACtC,MAAM,EAAE,WAAW,EACnB,EAAE,EAAE,GAAG,EACP,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAgC/B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
|