@applica-software-guru/react-admin 1.5.369 → 1.5.370

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.
@@ -40,6 +40,11 @@ type EmptyProps = {
40
40
  **/
41
41
  subtitle?: string | React.ReactNode;
42
42
  sx?: SxProps;
43
+ /**
44
+ * If true the component height fits its content (auto),
45
+ * otherwise it takes the full available height.
46
+ */
47
+ fitContent?: boolean;
43
48
  };
44
49
  declare const EmptyClasses: {
45
50
  message: string;
@@ -53,7 +58,7 @@ declare const EmptyClasses: {
53
58
  * @example
54
59
  * <List empty={<Empty actions={<Button label="Add" onClick={add} />} />} />
55
60
  */
56
- declare function Empty({ actions, className, hasCreate: hasCreateProp, icon, title, subtitle, sx, ...props }: EmptyProps): JSX.Element;
61
+ declare function Empty({ actions, className, hasCreate: hasCreateProp, icon, title, subtitle, sx, fitContent, ...props }: EmptyProps): JSX.Element;
57
62
  export { Empty, EmptyClasses };
58
63
  export type { EmptyProps };
59
64
  //# sourceMappingURL=Empty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/Empty.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,OAAO,EAAsB,MAAM,eAAe,CAAC;AAEjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,UAAU,GAAG;IAChB;;;;;;;QAOI;IACJ,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;QAKI;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;QAKI;IACJ,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;;;QAKI;IACJ,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC;;;;;QAKI;IACJ,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,C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