@applica-software-guru/react-admin 1.1.114 → 1.2.116

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.
Files changed (70) hide show
  1. package/bitbucket-pipelines.yml +14 -15
  2. package/dist/components/ra-forms/LongForm/BaseForm.d.ts +8 -0
  3. package/dist/components/ra-forms/LongForm/BaseForm.d.ts.map +1 -0
  4. package/dist/components/ra-forms/LongForm/Content.d.ts +8 -0
  5. package/dist/components/ra-forms/LongForm/Content.d.ts.map +1 -0
  6. package/dist/components/ra-forms/LongForm/Form.d.ts +11 -0
  7. package/dist/components/ra-forms/LongForm/Form.d.ts.map +1 -0
  8. package/dist/components/ra-forms/LongForm/NavMenu.d.ts +19 -0
  9. package/dist/components/ra-forms/LongForm/NavMenu.d.ts.map +1 -0
  10. package/dist/components/ra-forms/LongForm/Provider.d.ts +15 -0
  11. package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -0
  12. package/dist/components/ra-forms/LongForm/Sidebar.d.ts +23 -0
  13. package/dist/components/ra-forms/LongForm/Sidebar.d.ts.map +1 -0
  14. package/dist/components/ra-forms/LongForm/Tab.d.ts +11 -0
  15. package/dist/components/ra-forms/LongForm/Tab.d.ts.map +1 -0
  16. package/dist/components/ra-forms/LongForm/hooks.d.ts +5 -0
  17. package/dist/components/ra-forms/LongForm/hooks.d.ts.map +1 -0
  18. package/dist/components/ra-forms/LongForm/index.d.ts +30 -2
  19. package/dist/components/ra-forms/LongForm/index.d.ts.map +1 -1
  20. package/dist/components/ra-forms/LongForm/types.d.ts +12 -9
  21. package/dist/components/ra-forms/LongForm/types.d.ts.map +1 -1
  22. package/dist/components/ra-forms/LongForm/utils.d.ts +8 -0
  23. package/dist/components/ra-forms/LongForm/utils.d.ts.map +1 -0
  24. package/dist/index.d.ts +1 -1
  25. package/dist/react-admin.cjs.js +63 -63
  26. package/dist/react-admin.cjs.js.map +1 -1
  27. package/dist/react-admin.es.js +8896 -8835
  28. package/dist/react-admin.es.js.map +1 -1
  29. package/dist/react-admin.umd.js +63 -63
  30. package/dist/react-admin.umd.js.map +1 -1
  31. package/dist/themes/overrides/ListItemText.d.ts +12 -0
  32. package/dist/themes/overrides/ListItemText.d.ts.map +1 -0
  33. package/dist/themes/overrides/index.d.ts.map +1 -1
  34. package/dist/types.d.ts +4 -0
  35. package/dist/types.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/components/ra-forms/LongForm/BaseForm.tsx +54 -0
  38. package/src/components/ra-forms/LongForm/Content.tsx +19 -0
  39. package/src/components/ra-forms/LongForm/Form.tsx +37 -0
  40. package/src/components/ra-forms/LongForm/NavMenu.tsx +128 -0
  41. package/src/components/ra-forms/LongForm/Provider.tsx +196 -0
  42. package/src/components/ra-forms/LongForm/Sidebar.tsx +71 -0
  43. package/src/components/ra-forms/LongForm/Tab.tsx +67 -0
  44. package/src/components/ra-forms/LongForm/hooks.tsx +25 -0
  45. package/src/components/ra-forms/LongForm/index.ts +52 -0
  46. package/src/components/ra-forms/LongForm/types.ts +13 -9
  47. package/src/components/ra-forms/LongForm/utils.ts +22 -0
  48. package/src/index.jsx +1 -0
  49. package/src/themes/overrides/ListItemText.jsx +15 -0
  50. package/src/themes/overrides/index.jsx +2 -0
  51. package/src/types.ts +5 -0
  52. package/dist/components/ra-forms/LongForm/LongForm.d.ts +0 -98
  53. package/dist/components/ra-forms/LongForm/LongForm.d.ts.map +0 -1
  54. package/dist/components/ra-forms/LongForm/LongFormSidebar.d.ts +0 -34
  55. package/dist/components/ra-forms/LongForm/LongFormSidebar.d.ts.map +0 -1
  56. package/dist/components/ra-forms/LongForm/LongFormTab.d.ts +0 -45
  57. package/dist/components/ra-forms/LongForm/LongFormTab.d.ts.map +0 -1
  58. package/dist/components/ra-forms/LongForm/LongFormTabs.d.ts +0 -23
  59. package/dist/components/ra-forms/LongForm/LongFormTabs.d.ts.map +0 -1
  60. package/dist/components/ra-forms/LongForm/LongFormView.d.ts +0 -42
  61. package/dist/components/ra-forms/LongForm/LongFormView.d.ts.map +0 -1
  62. package/dist/components/ra-forms/LongForm/useFormRootPath.d.ts +0 -6
  63. package/dist/components/ra-forms/LongForm/useFormRootPath.d.ts.map +0 -1
  64. package/src/components/ra-forms/LongForm/LongForm.tsx +0 -59
  65. package/src/components/ra-forms/LongForm/LongFormSidebar.tsx +0 -44
  66. package/src/components/ra-forms/LongForm/LongFormTab.tsx +0 -122
  67. package/src/components/ra-forms/LongForm/LongFormTabs.tsx +0 -72
  68. package/src/components/ra-forms/LongForm/LongFormView.tsx +0 -161
  69. package/src/components/ra-forms/LongForm/index.tsx +0 -2
  70. package/src/components/ra-forms/LongForm/useFormRootPath.ts +0 -21
@@ -4,30 +4,29 @@ pipelines:
4
4
  branches:
5
5
  main:
6
6
  - parallel:
7
- - step:
8
- name: Build and Test
9
- caches:
10
- - node
11
- script:
12
- - yarn install
13
- - step:
14
- name: Security Scan
15
- script:
16
- - pipe: atlassian/git-secrets-scan:0.5.1
7
+ - step:
8
+ name: Build and Test
9
+ caches:
10
+ - node
11
+ script:
12
+ - yarn install
13
+ - step:
14
+ name: Security Scan
15
+ script:
16
+ - pipe: atlassian/git-secrets-scan:0.5.1
17
17
  - step:
18
18
  name: Deploy
19
19
  size: 2x
20
20
  deployment: Production
21
21
  script:
22
22
  - export NODE_OPTIONS=--max_old_space_size=8192
23
- - npm --no-git-tag-version version "1.1.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"
23
+ - npm --no-git-tag-version version "1.2.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"
24
24
  - echo $VERSION
25
25
  - npm install
26
26
  - npm run build
27
27
  - pipe: atlassian/npm-publish:0.3.2
28
28
  variables:
29
29
  NPM_TOKEN: $NPM_TOKEN
30
- EXTRA_ARGS: "--access public"
31
- - git tag -a "1.1.$BITBUCKET_BUILD_NUMBER" -m "Version 1.1.$BITBUCKET_BUILD_NUMBER"
32
- - git push origin "1.1.$BITBUCKET_BUILD_NUMBER"
33
-
30
+ EXTRA_ARGS: '--access public'
31
+ - git tag -a "1.2.$BITBUCKET_BUILD_NUMBER" -m "Version 1.2.$BITBUCKET_BUILD_NUMBER"
32
+ - git push origin "1.2.$BITBUCKET_BUILD_NUMBER"
@@ -0,0 +1,8 @@
1
+ import { FormProps } from 'react-admin';
2
+ type IBaseFormProps = FormProps & {
3
+ spacing?: number;
4
+ };
5
+ declare function BaseForm(props: IBaseFormProps): import("react/jsx-runtime").JSX.Element;
6
+ export type { IBaseFormProps };
7
+ export { BaseForm };
8
+ //# sourceMappingURL=BaseForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/BaseForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAC;AAK9C,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA6BF,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAYtC;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { GridProps } from '@mui/material';
2
+ import { Disposition } from './types';
3
+ type IContentProps = GridProps & {
4
+ disposition?: Disposition;
5
+ };
6
+ declare function Content(props: IContentProps): import("react/jsx-runtime").JSX.Element;
7
+ export { Content };
8
+ //# sourceMappingURL=Content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Content.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,KAAK,aAAa,GAAG,SAAS,GAAG;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,iBAAS,OAAO,CAAC,KAAK,EAAE,aAAa,2CAQpC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IBaseFormProps } from './BaseForm';
2
+ import { IProviderProps } from './Provider';
3
+ import { Disposition } from './types';
4
+ type IFormProps = IProviderProps & IBaseFormProps & {
5
+ spacing?: number;
6
+ tabsDisposition: Disposition;
7
+ contentDisposition: Disposition;
8
+ };
9
+ declare function Form(props: IFormProps): import("react/jsx-runtime").JSX.Element;
10
+ export { Form };
11
+ //# sourceMappingURL=Form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMtC,KAAK,UAAU,GAAG,cAAc,GAC9B,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,WAAW,CAAC;CACjC,CAAC;AAEJ,iBAAS,IAAI,CAAC,KAAK,EAAE,UAAU,2CAkB9B;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { ListItemProps } from '@mui/material';
3
+ import { IItem } from './types';
4
+ type IBaseNavMenuItemProps = React.PropsWithChildren<{
5
+ id: string;
6
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
7
+ }>;
8
+ type INavMenuItemProps = IItem & ListItemProps & IBaseNavMenuItemProps;
9
+ declare function NavMenu(): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavMenuItem(props: INavMenuItemProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function useNavMenuItem(item: INavMenuItemProps): IItem & {
12
+ selected: boolean;
13
+ onClick: React.MouseEventHandler<HTMLDivElement>;
14
+ items: Array<IItem>;
15
+ isGroup: boolean;
16
+ level: number;
17
+ };
18
+ export { NavMenu, NavMenuItem, useNavMenuItem };
19
+ //# sourceMappingURL=NavMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/NavMenu.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAkC,aAAa,EAA8D,MAAM,eAAe,CAAC;AAE1I,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,KAAK,qBAAqB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;CACnD,CAAC,CAAC;AACH,KAAK,iBAAiB,GAAG,KAAK,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAEvE,iBAAS,OAAO,4CAuBf;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,2CA0C5C;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,iBAAiB,GACtB,KAAK,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAoCvI;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { IItem } from './types';
3
+ type IProviderProps = React.PropsWithChildren<{
4
+ syncWithLocation?: boolean;
5
+ }>;
6
+ declare function Provider(props: IProviderProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function useActiveItem(): string | undefined;
8
+ declare function useItems(): Array<IItem>;
9
+ declare function useSyncWithLocation(): boolean;
10
+ declare function useSetActiveItem(): (activeItem: string) => void;
11
+ declare function useAddItem(): (item: IItem) => void;
12
+ declare function useRemoveItem(): (item: string | IItem) => void;
13
+ export { Provider, useItems, useSyncWithLocation, useActiveItem, useSetActiveItem, useAddItem, useRemoveItem };
14
+ export type { IProviderProps };
15
+ //# sourceMappingURL=Provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAC;AAsEH,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CA2BtC;AAsBD,iBAAS,aAAa,IAAI,MAAM,GAAG,SAAS,CAG3C;AAED,iBAAS,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,CAGhC;AAED,iBAAS,mBAAmB,IAAI,OAAO,CAGtC;AAED,iBAAS,gBAAgB,IAAI,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAaxD;AAED,iBAAS,UAAU,IAAI,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAa3C;AAED,iBAAS,aAAa,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI,CAavD;AAED,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;AAC/G,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import { Disposition } from './types';
3
+ import { GridProps } from '@mui/material';
4
+ declare enum SidebarSectionPosition {
5
+ TOP = "top",
6
+ BOTTOM = "bottom"
7
+ }
8
+ type ISidebarProps = {
9
+ sticky?: boolean;
10
+ disposition?: Disposition;
11
+ } & GridProps;
12
+ type ISidebarSectionProps = React.PropsWithChildren<{
13
+ position: SidebarSectionPosition;
14
+ }>;
15
+ declare function Sidebar(props: ISidebarProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function SidebarSection(props: ISidebarSectionProps): import("react/jsx-runtime").JSX.Element;
17
+ type ISidebarChildren = {
18
+ top: Array<React.ReactNode>;
19
+ bottom: Array<React.ReactNode>;
20
+ };
21
+ declare function useSidebarChildren(props: React.PropsWithChildren): ISidebarChildren;
22
+ export { Sidebar, SidebarSection, SidebarSectionPosition, useSidebarChildren };
23
+ //# sourceMappingURL=Sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Sidebar.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAa,SAAS,EAAS,MAAM,eAAe,CAAC;AAE5D,aAAK,sBAAsB;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,SAAS,CAAC;AAEd,KAAK,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAClD,QAAQ,EAAE,sBAAsB,CAAC;CAClC,CAAC,CAAC;AAEH,iBAAS,OAAO,CAAC,KAAK,EAAE,aAAa,2CAcpC;AAED,iBAAS,cAAc,CAAC,KAAK,EAAE,oBAAoB,2CAElD;AAED,KAAK,gBAAgB,GAAG;IACtB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,iBAAS,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,GAAG,gBAAgB,CAuB5E;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Optional } from 'src/types';
3
+ import { IItem } from './types';
4
+ type IBaseItemProps = React.PropsWithChildren<Optional<IItem, 'id'>>;
5
+ type ITabProps = IBaseItemProps;
6
+ type IGroupProps = IBaseItemProps;
7
+ declare function Group(props: IGroupProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function Tab(props: ITabProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function useBaseItemChildren(props: React.PropsWithChildren): Array<React.FunctionComponentElement<IBaseItemProps>>;
10
+ export { Tab, Group, useBaseItemChildren };
11
+ //# sourceMappingURL=Tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqE,MAAM,OAAO,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACrE,KAAK,SAAS,GAAG,cAAc,CAAC;AAChC,KAAK,WAAW,GAAG,cAAc,CAAC;AA4BlC,iBAAS,KAAK,CAAC,KAAK,EAAE,WAAW,2CAWhC;AAED,iBAAS,GAAG,CAAC,KAAK,EAAE,SAAS,2CAE5B;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC,CAQlH;AAED,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IItem } from './types';
2
+ declare function useIsActive(id: string): boolean;
3
+ declare function useChildren(id?: string): Array<IItem>;
4
+ export { useChildren, useIsActive };
5
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/hooks.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,iBAAS,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAGxC;AAED,iBAAS,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAW9C;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -1,3 +1,31 @@
1
- import LongForm from './LongForm';
2
- export default LongForm;
1
+ import { Form } from './Form';
2
+ import { BaseForm } from './BaseForm';
3
+ import { Content } from './Content';
4
+ import { Provider, useActiveItem, useItems, useSyncWithLocation, useSetActiveItem, useAddItem, useRemoveItem } from './Provider';
5
+ import { Sidebar, SidebarSection, SidebarSectionPosition, useSidebarChildren } from './Sidebar';
6
+ import { NavMenu, NavMenuItem, useNavMenuItem } from './NavMenu';
7
+ import { Tab, Group, useBaseItemChildren } from './Tab';
8
+ type IForm = typeof Form & {
9
+ BaseForm: typeof BaseForm;
10
+ Content: typeof Content;
11
+ Provider: typeof Provider;
12
+ useItems: typeof useItems;
13
+ useSyncWithLocation: typeof useSyncWithLocation;
14
+ useActiveItem: typeof useActiveItem;
15
+ useSetActiveItem: typeof useSetActiveItem;
16
+ useAddItem: typeof useAddItem;
17
+ useRemoveItem: typeof useRemoveItem;
18
+ Sidebar: typeof Sidebar;
19
+ SidebarSection: typeof SidebarSection;
20
+ SidebarSectionPosition: typeof SidebarSectionPosition;
21
+ useSidebarChildren: typeof useSidebarChildren;
22
+ NavMenu: typeof NavMenu;
23
+ NavMenuItem: typeof NavMenuItem;
24
+ useNavMenuItem: typeof useNavMenuItem;
25
+ Tab: typeof Tab;
26
+ Group: typeof Group;
27
+ useBaseItemChildren: typeof useBaseItemChildren;
28
+ };
29
+ declare const DefaultForm: IForm;
30
+ export default DefaultForm;
3
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACjI,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAExD,KAAK,KAAK,GAAG,OAAO,IAAI,GAAG;IACzB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,gBAAgB,EAAE,OAAO,gBAAgB,CAAC;IAC1C,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,sBAAsB,EAAE,OAAO,sBAAsB,CAAC;IACtD,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;CACjD,CAAC;AAEF,QAAA,MAAM,WAAW,OAAgB,CAAC;AAqBlC,eAAe,WAAW,CAAC"}
@@ -1,16 +1,19 @@
1
- import PropTypes from 'prop-types';
2
- export type Disposition = {
1
+ /// <reference types="react" />
2
+ type Disposition = {
3
3
  xl?: number;
4
4
  lg?: number;
5
5
  md?: number;
6
6
  sm?: number;
7
7
  xs?: number;
8
8
  };
9
- export declare const DispositionProps: PropTypes.Requireable<PropTypes.InferProps<{
10
- xl: PropTypes.Requireable<number>;
11
- lg: PropTypes.Requireable<number>;
12
- md: PropTypes.Requireable<number>;
13
- sm: PropTypes.Requireable<number>;
14
- xs: PropTypes.Requireable<number>;
15
- }>>;
9
+ type IItem = {
10
+ id: string;
11
+ label: string;
12
+ icon?: React.ReactNode;
13
+ badge?: {
14
+ content: string | number;
15
+ color?: 'default' | 'error' | 'info' | 'primary' | 'secondary' | 'success' | 'warning';
16
+ };
17
+ };
18
+ export type { Disposition, IItem };
16
19
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;GAM3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":";AAAA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;KACxF,CAAC;CACH,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IItem } from './types';
2
+ import { Optional } from 'src/types';
3
+ declare function getId(data: Optional<Pick<IItem, 'id' | 'label'>, 'id'>): string;
4
+ declare function isChild(parentId: string, childId: string): boolean;
5
+ declare function getItemsIds(items: Array<IItem>): Array<string>;
6
+ declare function getLevel(id: string): number;
7
+ export { getId, isChild, getItemsIds, getLevel };
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,iBAAS,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,CAExE;AAED,iBAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAEvD;AAED,iBAAS,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGpC;AAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -6,5 +6,5 @@ export * from "./components";
6
6
  export * from "./contexts";
7
7
  export * from "./utils";
8
8
  export * from "./i18n";
9
- export { ArrayInputContext, BooleanField, BulkDeleteWithConfirmButton, Button, ChipField, choices, Confirm, CreateButton, CreateContextProvider, CustomRoutes, DeleteWithConfirmButton, DeleteWithUndoButton, EditButton, EditContextProvider, email, FieldTitle, Form, FormDataConsumer, HttpError, I18nContextProvider, ListToolbar, LoadingIndicator, maxLength, maxValue, minLength, minValue, number, Pagination, RecordContextProvider, ReferenceArrayField, ReferenceField, regex, required, Resource, ResourceContextProvider, SaveButton, SimpleFormIterator as RaSimpleFormIterator, SimpleFormIteratorContext, SimpleList, SingleFieldList, SimpleShowLayout, TopToolbar, UrlField, useArrayInput, useAuthProvider, useCreateController, useChoices, useChoicesContext, useDataProvider, useEditContext, useGetIdentity, useGetList, useGetMany, useGetManyReference, useGetOne, useInput, useListContext, useNotify, usePermissions, useRecordContext, useRefresh, useResourceContext, useResourceDefinition, useResourceDefinitions, useTranslate, useUnselect, useUnselectAll, useUpdateMany, useSimpleFormIterator, useSimpleFormIteratorItem, useShowContext, useShowController, useTranslateLabel } from "react-admin";
9
+ export { ArrayInputContext, BooleanField, BulkDeleteWithConfirmButton, Button, ChipField, choices, Confirm, CreateButton, CreateContextProvider, CustomRoutes, DeleteWithConfirmButton, DeleteWithUndoButton, EditButton, EditContextProvider, email, FieldTitle, Form, FormDataConsumer, HttpError, I18nContextProvider, ListToolbar, LoadingIndicator, maxLength, maxValue, minLength, minValue, number, Pagination, RecordContextProvider, ReferenceArrayField, ReferenceField, regex, required, Resource, ResourceContextProvider, SaveButton, SimpleFormIterator as RaSimpleFormIterator, SimpleFormIteratorContext, SimpleList, SingleFieldList, SimpleShowLayout, TopToolbar, UrlField, useArrayInput, useAuthProvider, useCreateController, useChoices, useChoicesContext, useDataProvider, useEditContext, useGetIdentity, useGetList, useGetMany, useGetManyReference, useGetOne, useInput, useListContext, useLocaleState, useNotify, usePermissions, useRecordContext, useRefresh, useResourceContext, useResourceDefinition, useResourceDefinitions, useTranslate, useUnselect, useUnselectAll, useUpdateMany, useSimpleFormIterator, useSimpleFormIteratorItem, useShowContext, useShowController, useTranslateLabel } from "react-admin";
10
10
  //# sourceMappingURL=index.d.ts.map