@rolster/react-components 18.15.6 → 18.15.7

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/dist/cjs/index.js CHANGED
@@ -2718,12 +2718,16 @@ const RlsContext = require$$0.createContext({
2718
2718
  confirmation: () => {
2719
2719
  return Promise.resolve(ConfirmationResult.approved());
2720
2720
  },
2721
- snackbar: () => { }
2721
+ snackbar: () => { },
2722
+ withNavbar: () => { }
2722
2723
  });
2723
2724
  function RlsApplication({ children }) {
2724
2725
  const { RlsConfirmation, confirmation } = useConfirmationService();
2725
2726
  const { RlsSnackbar, snackbar } = useSnackbarService();
2726
- return (jsxRuntimeExports.jsxs(RlsContext.Provider, { value: { confirmation, snackbar }, children: [jsxRuntimeExports.jsx("div", { className: "rls-app__body", children: children }), RlsSnackbar, RlsConfirmation] }));
2727
+ const [currentWithNavbar, withNavbar] = require$$0.useState(false);
2728
+ return (jsxRuntimeExports.jsxs(RlsContext.Provider, { value: { confirmation, snackbar, withNavbar }, children: [jsxRuntimeExports.jsxs("div", { className: renderClassStatus('rls-app__body', {
2729
+ snackbar: currentWithNavbar
2730
+ }), children: [children, RlsSnackbar] }), RlsConfirmation] }));
2727
2731
  }
2728
2732
 
2729
2733
  exports.ConfirmationResult = ConfirmationResult;