@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.
@@ -1,9 +1,10 @@
1
1
  import { Confirmation, Snackbar } from './components';
2
2
  import { RlsComponent } from './components/definitions';
3
- interface State {
3
+ interface RlsState {
4
4
  confirmation: Confirmation;
5
5
  snackbar: Snackbar;
6
+ withNavbar: (withNavbar: boolean) => void;
6
7
  }
7
- export declare const RlsContext: import("react").Context<State>;
8
+ export declare const RlsContext: import("react").Context<RlsState>;
8
9
  export declare function RlsApplication({ children }: RlsComponent): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -1,15 +1,20 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { createContext } from 'react';
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { createContext, useState } from 'react';
3
3
  import { ConfirmationResult, useConfirmationService, useSnackbarService } from './components';
4
+ import { renderClassStatus } from './helpers';
4
5
  export const RlsContext = createContext({
5
6
  confirmation: () => {
6
7
  return Promise.resolve(ConfirmationResult.approved());
7
8
  },
8
- snackbar: () => { }
9
+ snackbar: () => { },
10
+ withNavbar: () => { }
9
11
  });
10
12
  export function RlsApplication({ children }) {
11
13
  const { RlsConfirmation, confirmation } = useConfirmationService();
12
14
  const { RlsSnackbar, snackbar } = useSnackbarService();
13
- return (_jsxs(RlsContext.Provider, { value: { confirmation, snackbar }, children: [_jsx("div", { className: "rls-app__body", children: children }), RlsSnackbar, RlsConfirmation] }));
15
+ const [currentWithNavbar, withNavbar] = useState(false);
16
+ return (_jsxs(RlsContext.Provider, { value: { confirmation, snackbar, withNavbar }, children: [_jsxs("div", { className: renderClassStatus('rls-app__body', {
17
+ snackbar: currentWithNavbar
18
+ }), children: [children, RlsSnackbar] }), RlsConfirmation] }));
14
19
  }
15
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,kBAAkB,EAGlB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAQtB,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAQ;IAC7C,YAAY,EAAE,GAAG,EAAE;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAgB;IACvD,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,sBAAsB,EAAE,CAAC;IACnE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvD,OAAO,CACL,MAAC,UAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,aACpD,cAAK,SAAS,EAAC,eAAe,YAAE,QAAQ,GAAO,EAC9C,WAAW,EACX,eAAe,IACI,CACvB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/context.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EACL,kBAAkB,EAGlB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAQ9C,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAW;IAChD,YAAY,EAAE,GAAG,EAAE;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,UAAU,cAAc,CAAC,EAAE,QAAQ,EAAgB;IACvD,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,sBAAsB,EAAE,CAAC;IACnE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAEvD,MAAM,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,OAAO,CACL,MAAC,UAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,aAChE,eACE,SAAS,EAAE,iBAAiB,CAAC,eAAe,EAAE;oBAC5C,QAAQ,EAAE,iBAAiB;iBAC5B,CAAC,aAED,QAAQ,EACR,WAAW,IACR,EACL,eAAe,IACI,CACvB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolster/react-components",
3
- "version": "18.15.6",
3
+ "version": "18.15.7",
4
4
  "type": "module",
5
5
  "description": "Package containing UI components for React Project.",
6
6
  "module": "dist/esm/index.js",