@headless-adminapp/fluent 1.4.31 → 1.4.32

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/App/App.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
2
  interface AppProps {
3
+ appFooter?: React.ReactNode;
3
4
  }
4
5
  export declare const App: FC<PropsWithChildren<AppProps>>;
5
6
  export {};
package/App/App.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.App = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const AppUI_1 = require("./AppUI");
6
- const App = ({ children }) => {
7
- return (0, jsx_runtime_1.jsx)(AppUI_1.AppUI, { children: children });
6
+ const App = (props) => {
7
+ return (0, jsx_runtime_1.jsx)(AppUI_1.AppUI, { ...props });
8
8
  };
9
9
  exports.App = App;
package/App/AppUI.d.ts CHANGED
@@ -1,2 +1,6 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- export declare const AppUI: FC<PropsWithChildren>;
2
+ interface AppUIProps {
3
+ appFooter?: React.ReactNode;
4
+ }
5
+ export declare const AppUI: FC<PropsWithChildren<AppUIProps>>;
6
+ export {};
package/App/AppUI.js CHANGED
@@ -7,7 +7,7 @@ const hooks_1 = require("@headless-adminapp/app/hooks");
7
7
  const react_1 = require("react");
8
8
  const AppHeaderContianer_1 = require("./AppHeaderContianer");
9
9
  const Navigation_1 = require("./Navigation");
10
- const AppUI = ({ children }) => {
10
+ const AppUI = ({ children, appFooter, }) => {
11
11
  const isMobile = (0, hooks_1.useIsMobile)();
12
12
  const isTablet = (0, hooks_1.useIsTablet)();
13
13
  const [isNavOpen, setIsNavOpen] = (0, react_1.useState)(!isMobile);
@@ -31,6 +31,6 @@ const AppUI = ({ children }) => {
31
31
  flex: 1,
32
32
  position: 'relative',
33
33
  overflow: 'hidden',
34
- }, children: children })] })] }));
34
+ }, children: children })] }), appFooter] }));
35
35
  };
36
36
  exports.AppUI = AppUI;
@@ -70,6 +70,7 @@ const NavigationContainer = ({ open, type, onOpenChange, isMini, }) => {
70
70
  gap: 8,
71
71
  }, children: (0, jsx_runtime_1.jsx)(react_components_1.Hamburger, { onClick: () => onOpenChange(false) }) }) })), (0, jsx_runtime_1.jsx)(react_components_1.NavDrawerBody, { style: {
72
72
  paddingTop: 8,
73
+ paddingBottom: 8,
73
74
  }, children: sections.map((section, index) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [!section.hideLabel && !isMini && ((0, jsx_runtime_1.jsx)(react_components_1.NavSectionHeader, { children: section.label })), isMini && index > 0 && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(react_components_1.Divider, { style: { opacity: 0.5 } }) })), section.items.map((item) => {
74
75
  if (item.type === app_2.PageType.Category) {
75
76
  const isActive = item.items.some((subItem) => subItem.active);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-adminapp/fluent",
3
- "version": "1.4.31",
3
+ "version": "1.4.32",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "devDependencies": {
55
55
  "@types/lodash": "4.17.20"
56
56
  },
57
- "gitHead": "3c6a0b0fc245e8d9c6a4cb6811cbba079dfa5146"
57
+ "gitHead": "adf0790db7264b5050b1160837bb599780791b24"
58
58
  }