@applica-software-guru/react-admin 1.3.152 → 1.3.154

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 (40) hide show
  1. package/dist/components/Layout/Header/Buttons/HeaderButton.d.ts +6 -0
  2. package/dist/components/Layout/Header/Buttons/HeaderButton.d.ts.map +1 -0
  3. package/dist/components/Layout/Header/Buttons/HeaderIconButton.d.ts +6 -0
  4. package/dist/components/Layout/Header/Buttons/HeaderIconButton.d.ts.map +1 -0
  5. package/dist/components/Layout/Header/Buttons/HeaderToggleButton.d.ts +6 -0
  6. package/dist/components/Layout/Header/Buttons/HeaderToggleButton.d.ts.map +1 -0
  7. package/dist/components/Layout/Header/Buttons/index.d.ts +4 -0
  8. package/dist/components/Layout/Header/Buttons/index.d.ts.map +1 -0
  9. package/dist/components/Layout/Header/DrawerToggle.d.ts.map +1 -1
  10. package/dist/components/Layout/Header/Notification/Notification.d.ts.map +1 -1
  11. package/dist/components/Layout/Header/Profile/Profile.d.ts +1 -1
  12. package/dist/components/Layout/Header/Profile/Profile.d.ts.map +1 -1
  13. package/dist/components/Layout/Header/ResponsiveSection.d.ts.map +1 -1
  14. package/dist/components/Layout/Header/index.d.ts +1 -0
  15. package/dist/components/Layout/Header/index.d.ts.map +1 -1
  16. package/dist/hooks/index.d.ts +12 -12
  17. package/dist/hooks/index.d.ts.map +1 -1
  18. package/dist/hooks/mui.d.ts +4 -1
  19. package/dist/hooks/mui.d.ts.map +1 -1
  20. package/dist/hooks/usePopoverState.d.ts +10 -0
  21. package/dist/hooks/usePopoverState.d.ts.map +1 -0
  22. package/dist/react-admin.cjs.js +57 -57
  23. package/dist/react-admin.cjs.js.map +1 -1
  24. package/dist/react-admin.es.js +5566 -5584
  25. package/dist/react-admin.es.js.map +1 -1
  26. package/dist/react-admin.umd.js +58 -58
  27. package/dist/react-admin.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/components/Layout/Header/Buttons/HeaderButton.tsx +13 -0
  30. package/src/components/Layout/Header/Buttons/HeaderIconButton.tsx +22 -0
  31. package/src/components/Layout/Header/Buttons/HeaderToggleButton.tsx +23 -0
  32. package/src/components/Layout/Header/Buttons/index.ts +3 -0
  33. package/src/components/Layout/Header/DrawerToggle.tsx +9 -18
  34. package/src/components/Layout/Header/Notification/Notification.tsx +31 -53
  35. package/src/components/Layout/Header/Profile/{Profile.jsx → Profile.tsx} +34 -92
  36. package/src/components/Layout/Header/ResponsiveSection.tsx +17 -34
  37. package/src/components/Layout/Header/index.ts +1 -0
  38. package/src/hooks/index.jsx +13 -23
  39. package/src/hooks/mui.ts +16 -6
  40. package/src/hooks/usePopoverState.tsx +28 -0
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from '@mui/material';
3
+ type IHeaderButtonProps = Omit<ButtonProps, 'color' | 'variant' | 'size'>;
4
+ declare const HeaderButton: import("react").ForwardRefExoticComponent<Omit<IHeaderButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export { HeaderButton };
6
+ //# sourceMappingURL=HeaderButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Buttons/HeaderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAIpD,KAAK,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAE1E,QAAA,MAAM,YAAY,+HAIhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps, IconButtonProps } from '@mui/material';
3
+ type IHeaderIconButtonProps = Omit<IconButtonProps & ButtonProps, 'color' | 'variant' | 'size'>;
4
+ declare const HeaderIconButton: import("react").ForwardRefExoticComponent<Omit<IHeaderIconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export { HeaderIconButton };
6
+ //# sourceMappingURL=HeaderIconButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderIconButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Buttons/HeaderIconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAK7D,KAAK,sBAAsB,GAAG,IAAI,CAAC,eAAe,GAAG,WAAW,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAEhG,QAAA,MAAM,gBAAgB,mIAYpB,CAAC;AAEH,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ToggleButtonProps } from '@mui/material';
3
+ type IHeaderToggleButtonProps = Omit<ToggleButtonProps, 'color' | 'size'>;
4
+ declare const HeaderToggleButton: import("react").ForwardRefExoticComponent<Omit<IHeaderToggleButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export { HeaderToggleButton };
6
+ //# sourceMappingURL=HeaderToggleButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderToggleButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Buttons/HeaderToggleButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIhE,KAAK,wBAAwB,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAE1E,QAAA,MAAM,kBAAkB,qIActB,CAAC;AAEH,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './HeaderButton';
2
+ export * from './HeaderIconButton';
3
+ export * from './HeaderToggleButton';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Buttons/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/DrawerToggle.tsx"],"names":[],"mappings":"AAIA,iBAAS,YAAY,4CAqBpB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"DrawerToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/DrawerToggle.tsx"],"names":[],"mappings":"AAQA,iBAAS,YAAY,4CAQpB;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Notification/Notification.tsx"],"names":[],"mappings":"AAuCA,iBAAS,kBAAkB,mDAI1B;AA0JD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Notification/Notification.tsx"],"names":[],"mappings":"AAuCA,iBAAS,kBAAkB,mDAG1B;AAqID,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- export default Profile;
2
1
  declare function Profile(): import("react/jsx-runtime").JSX.Element;
2
+ export default Profile;
3
3
  //# sourceMappingURL=Profile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Profile/Profile.jsx"],"names":[],"mappings":";AAqCA,oEAwIC"}
1
+ {"version":3,"file":"Profile.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Layout/Header/Profile/Profile.tsx"],"names":[],"mappings":"AAWA,iBAAS,OAAO,4CAwGf;AAED,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResponsiveSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/ResponsiveSection.tsx"],"names":[],"mappings":";AAOA,KAAK,uBAAuB,GAAG,KAAK,CAAC,iBAAiB,CAAC;AAEvD,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,4CAwExD,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"ResponsiveSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/ResponsiveSection.tsx"],"names":[],"mappings":";AAQA,KAAK,uBAAuB,GAAG,KAAK,CAAC,iBAAiB,CAAC;AAEvD,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,4CAsDxD,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './AppBarStyled';
2
+ export * from './Buttons';
2
3
  export * from './DrawerToggle';
3
4
  export * from './Header';
4
5
  export * from './Notification';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Layout/Header/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC"}
@@ -1,15 +1,15 @@
1
- export { useSx } from "./mui";
2
- export { useRefDimensions } from "./useRefDimensions";
1
+ export { default as useAppConfig } from "./useAppConfig";
2
+ export { default as useBreadcrumbs } from "./useBreadcrumbs";
3
+ export { default as useLocalStorage } from "./useLocalStorage";
3
4
  export { useMemoizedObject } from "./useMemoizedObject";
4
- import useAppConfig from './useAppConfig';
5
- import useMenu from './useMenu';
6
- import useBreadcrumbs from './useBreadcrumbs';
7
- import useLocalStorage from './useLocalStorage';
8
- import useThemeConfig from './useThemeConfig';
9
- import useResourceTitle from './useResourceTitle';
10
- import useMenuConfig from './useMenuConfig';
11
- import useTableFormIterator from './useTableFormIterator';
12
- import useTableFormIteratorItem from './useTableFormIteratorItem';
13
- export { useAppConfig, useMenu, useBreadcrumbs, useLocalStorage, useThemeConfig, useResourceTitle, useMenuConfig, useTableFormIterator, useTableFormIteratorItem };
5
+ export { default as useMenu } from "./useMenu";
6
+ export { default as useMenuConfig } from "./useMenuConfig";
7
+ export { usePopoverState } from "./usePopoverState";
8
+ export { useRefDimensions } from "./useRefDimensions";
9
+ export { default as useResourceTitle } from "./useResourceTitle";
10
+ export { useSx } from "./mui";
11
+ export { default as useTableFormIterator } from "./useTableFormIterator";
12
+ export { default as useTableFormIteratorItem } from "./useTableFormIteratorItem";
13
+ export { default as useThemeConfig } from "./useThemeConfig";
14
14
  export { useLocalizedValue, useGetLocalizedValue } from "./useLocalizedValue";
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.jsx"],"names":[],"mappings":";;;yBAAyB,gBAAgB;oBAGrB,WAAW;2BAFJ,kBAAkB;4BACjB,mBAAmB;2BAIpB,kBAAkB;6BADhB,oBAAoB;0BADvB,iBAAiB;iCAGV,wBAAwB;qCACpB,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.jsx"],"names":[],"mappings":""}
@@ -1,7 +1,10 @@
1
1
  import { SxProps } from '@mui/material';
2
2
  import { ComponentProps } from 'react';
3
+ type IUseSxOptions = {
4
+ defaults?: boolean;
5
+ };
3
6
  declare function useSx(props: ComponentProps<{
4
7
  sx?: SxProps;
5
- } & any>, sx: SxProps): SxProps;
8
+ } & any>, sx: SxProps, options?: IUseSxOptions): SxProps;
6
9
  export { useSx };
7
10
  //# sourceMappingURL=mui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mui.d.ts","sourceRoot":"","sources":["../../../src/hooks/mui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAE5D,iBAAS,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAclF;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"mui.d.ts","sourceRoot":"","sources":["../../../src/hooks/mui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAE5D,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,iBAAS,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAoB3G;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { MouseEvent } from 'react';
2
+ declare function usePopoverState(): {
3
+ anchorEl: HTMLElement | null;
4
+ open: boolean;
5
+ handleClick: (e: MouseEvent<HTMLElement> | undefined) => void;
6
+ handleClose: () => void;
7
+ handleToggle: (e: MouseEvent<HTMLElement> | undefined) => void;
8
+ };
9
+ export { usePopoverState };
10
+ //# sourceMappingURL=usePopoverState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePopoverState.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePopoverState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyB,MAAM,OAAO,CAAC;AAE1D,iBAAS,eAAe;;;qBAGU,WAAW,WAAW,CAAC,GAAG,SAAS;;sBAG3D,WAAW,WAAW,CAAC,GAAG,SAAS;EAiB5C;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}