@applica-software-guru/react-admin 1.0.47 → 1.0.52

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.
@@ -16,9 +16,10 @@ pipelines:
16
16
  - pipe: atlassian/git-secrets-scan:0.5.1
17
17
  - step:
18
18
  name: Deploy
19
+ size: 2x
19
20
  deployment: Production
20
21
  script:
21
- - export NODE_OPTIONS=--max_old_space_size=3072
22
+ - export NODE_OPTIONS=--max_old_space_size=8192
22
23
  - npm --no-git-tag-version version "1.0.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"
23
24
  - echo $VERSION
24
25
  - yarn install
@@ -1,3 +1,72 @@
1
+ /// <reference types="react" />
2
+ import { SxProps } from '@mui/material/styles';
3
+ export type MainCardProps = {
4
+ /**
5
+ * Indicates if the card must be rendered with a border.
6
+ */
7
+ border?: boolean;
8
+ /**
9
+ * Indicates if the card must be rendered with a box shadow.
10
+ */
11
+ boxShadow?: boolean;
12
+ /**
13
+ * The content of the card.
14
+ */
15
+ children?: React.ReactNode | React.ReactNode[];
16
+ /**
17
+ * The subheader of the card.
18
+ */
19
+ subheader?: React.ReactNode | string;
20
+ /**
21
+ * Indicates if the card must be rendered with a content.
22
+ */
23
+ content?: boolean;
24
+ /**
25
+ * The class name of the content.
26
+ */
27
+ contentClass?: string;
28
+ /**
29
+ * The style of the content.
30
+ */
31
+ contentSX?: SxProps | any;
32
+ /**
33
+ * Indicates if the title of the card must be rendered with a dark color.
34
+ */
35
+ darkTitle?: boolean;
36
+ /**
37
+ * Indicates if the card must be rendered with a divider.
38
+ */
39
+ divider?: boolean;
40
+ /**
41
+ * The elevation of the card.
42
+ */
43
+ elevation?: number;
44
+ /**
45
+ * The secondary content of the card.
46
+ */
47
+ secondary?: React.ReactNode | string | object;
48
+ /**
49
+ * The shadow of the card.
50
+ * @example '0px 0px 0px 0px rgba(0,0,0,0.2)'
51
+ */
52
+ shadow?: string;
53
+ /**
54
+ * The style of the card.
55
+ */
56
+ sx?: SxProps | any;
57
+ /**
58
+ * The title of the card.
59
+ */
60
+ title?: React.ReactNode | string | object;
61
+ /**
62
+ * Indicates if the card must be rendered as a modal.
63
+ */
64
+ modal?: boolean;
65
+ /**
66
+ * The color of the card.
67
+ */
68
+ color?: 'default' | 'primary' | 'secondary';
69
+ };
70
+ declare const MainCard: import("react").ForwardRefExoticComponent<MainCardProps & import("react").RefAttributes<unknown>>;
1
71
  export default MainCard;
2
- declare const MainCard: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
3
72
  //# sourceMappingURL=MainCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MainCard.d.ts","sourceRoot":"","sources":["../../../src/components/MainCard.jsx"],"names":[],"mappings":";AAWA,sGA2EE"}
1
+ {"version":3,"file":"MainCard.d.ts","sourceRoot":"","sources":["../../../src/components/MainCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAqB,MAAM,sBAAsB,CAAC;AAUlE,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACrC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,GAAG,GAAG,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,QAAQ,mGA8Eb,CAAC;AAqBF,eAAe,QAAQ,CAAC"}
@@ -1,7 +1,19 @@
1
- export default Datagrid;
2
- declare function Datagrid(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Datagrid {
4
- const propTypes: {
1
+ /// <reference types="react" />
2
+ /// <reference types="react" />
3
+ import { DatagridProps } from 'react-admin';
4
+ /**
5
+ * This component is a wrapper of the React-Admin Datagrid component.
6
+ * It is used to customize the Datagrid component.
7
+ * It is used by the List component.
8
+ * It is not meant to be used directly.
9
+ * Thsi version is designed by Applica for Mantis and expose few overrides on css styles based on this theme.
10
+ *
11
+ * @param {DatagridProps} props
12
+ * @returns {JSX.Element}
13
+ */
14
+ declare const Datagrid: {
15
+ (props: DatagridProps): JSX.Element;
16
+ propTypes: {
5
17
  body?: import("react").Validator<import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType | null | undefined> | undefined;
6
18
  className?: import("react").Validator<string | null | undefined> | undefined;
7
19
  bulkActionButtons?: import("react").Validator<false | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null | undefined> | undefined;
@@ -309,7 +321,7 @@ declare namespace Datagrid {
309
321
  rules?: import("react").Validator<"none" | "all" | "columns" | "rows" | "groups" | null | undefined> | undefined;
310
322
  stickyHeader?: import("react").Validator<boolean | null | undefined> | undefined;
311
323
  };
312
- const defaultProps: {
324
+ defaultProps: {
313
325
  body?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ComponentType | undefined;
314
326
  className?: string | undefined;
315
327
  bulkActionButtons?: false | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
@@ -617,5 +629,6 @@ declare namespace Datagrid {
617
629
  rules?: "none" | "all" | "columns" | "rows" | "groups" | undefined;
618
630
  stickyHeader?: boolean | undefined;
619
631
  };
620
- }
632
+ };
633
+ export default Datagrid;
621
634
  //# sourceMappingURL=Datagrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Datagrid.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/Datagrid.jsx"],"names":[],"mappings":";AA+BA,+EAAgE"}
1
+ {"version":3,"file":"Datagrid.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/Datagrid.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,aAAa,EAA0B,MAAM,aAAa,CAAC;AAgCpE;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ;YAAW,aAAa,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AAS7F,eAAe,QAAQ,CAAC"}
@@ -1,19 +1,44 @@
1
- export namespace EmptyClasses {
2
- const message: string;
3
- const icon: string;
4
- const toolbar: string;
5
- }
6
- export default Empty;
7
- declare function Empty({ actions, className, ...props }: {
8
- [x: string]: any;
9
- actions: any;
10
- className: any;
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare namespace Empty {
13
- namespace propTypes {
14
- const actions: PropTypes.Requireable<PropTypes.ReactElementLike>;
15
- const className: PropTypes.Requireable<string>;
16
- }
17
- }
1
+ import * as React from 'react';
18
2
  import PropTypes from 'prop-types';
3
+ export type EmptyProps = {
4
+ /**
5
+ * The actions of the empty page.
6
+ *
7
+ * @example <Button label="Refresh" onClick={refresh} />
8
+ * @example <Button label="Add" onClick={add} />
9
+ * @example <Button label="Export" onClick={export} />
10
+ * @example <Button label="Import" onClick={import} />
11
+ **/
12
+ actions?: React.ReactNode;
13
+ /**
14
+ * The class name of the empty page.
15
+ *
16
+ * @example 'my-custom-empty'
17
+ * @example 'my-custom-empty my-custom-empty--full-width'
18
+ **/
19
+ className?: string;
20
+ };
21
+ /**
22
+ * The Empty component is used to display a message when the list is empty.
23
+ * This component can be used only inside a List component.
24
+ *
25
+ * @example
26
+ * <List empty={<Empty actions={<Button label="Add" onClick={add} />} />} />
27
+ *
28
+ * @param {EmptyProps}
29
+ * @returns {JSX.Element}
30
+ */
31
+ declare const Empty: {
32
+ ({ actions, className, ...props }: EmptyProps): JSX.Element;
33
+ propTypes: {
34
+ actions: PropTypes.Requireable<PropTypes.ReactElementLike>;
35
+ className: PropTypes.Requireable<string>;
36
+ };
37
+ };
38
+ export declare const EmptyClasses: {
39
+ message: string;
40
+ icon: string;
41
+ toolbar: string;
42
+ };
43
+ export default Empty;
19
44
  //# sourceMappingURL=Empty.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/Empty.jsx"],"names":[],"mappings":";;;;;;AAcA;;;;4CAoCC;;;;;;;sBA5CqB,YAAY"}
1
+ {"version":3,"file":"Empty.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/Empty.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;;QAOI;IACJ,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;;;QAKI;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAMF;;;;;;;;;GASG;AACH,QAAA,MAAM,KAAK;uCAAsC,UAAU,GAAG,WAAW;;;;;CAoCxE,CAAC;AAIF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AA8BF,eAAe,KAAK,CAAC"}
@@ -1,11 +1,12 @@
1
- export default List;
2
- declare function List(props: any): import("react/jsx-runtime").JSX.Element;
3
- declare namespace List {
4
- const defaultProps: {
1
+ /// <reference types="react" />
2
+ import { ListProps } from 'react-admin';
3
+ declare const List: {
4
+ (props: ListProps): JSX.Element;
5
+ defaultProps: {
5
6
  filter: {};
6
7
  perPage: number;
7
8
  };
8
- const propTypes: {
9
+ propTypes: {
9
10
  actions: import("prop-types").Requireable<NonNullable<boolean | import("prop-types").ReactElementLike>>;
10
11
  aside: import("prop-types").Requireable<import("prop-types").ReactElementLike>;
11
12
  children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
@@ -29,5 +30,6 @@ declare namespace List {
29
30
  hasShow: import("prop-types").Requireable<boolean>;
30
31
  resource: import("prop-types").Requireable<string>;
31
32
  };
32
- }
33
+ };
34
+ export default List;
33
35
  //# sourceMappingURL=List.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/List.jsx"],"names":[],"mappings":";AAiEA,2EAMC"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAkB,MAAM,aAAa,CAAC;AAkExD,QAAA,MAAM,IAAI;YAAW,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3C,CAAC;AASF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import Datagrid from './Datagrid';
2
2
  import Empty from './Empty';
3
- import NotificationList from './NotificationList';
4
3
  import List from './List';
4
+ import NotificationList from './NotificationList';
5
5
  export { Datagrid, Empty, NotificationList, List };
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/index.jsx"],"names":[],"mappings":"qBAAqB,YAAY;kBACf,SAAS;6BAEE,oBAAoB;iBADhC,QAAQ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-lists/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as Admin } from "./Admin";
2
2
  export { default as ApplicaAdmin } from "./ApplicaAdmin";
3
+ export { ThemeCustomization as ThemeProvider } from "./themes";
3
4
  export * from "./hooks";
4
5
  export * from "./components";
5
6
  export * from "./contexts";