@scmlatam/web-ui 0.1.3 → 0.1.4
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/web-ui.d.ts +5 -0
- package/dist/web-ui.js +8 -7
- package/dist/web-ui.umd.cjs +54 -54
- package/package.json +1 -1
package/dist/web-ui.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Item } from './core/types/types';
|
|
|
5
5
|
import { JSX } from 'react/jsx-runtime';
|
|
6
6
|
import { PageProps } from './core/types/types';
|
|
7
7
|
import { RouteItem } from './core/types/types';
|
|
8
|
+
import { Theme } from '@mui/material';
|
|
8
9
|
|
|
9
10
|
export declare const Core: ({ login, logout, sidebarItems, routes }: CoreProps) => JSX.Element;
|
|
10
11
|
|
|
@@ -16,6 +17,10 @@ declare interface CoreProviderProps {
|
|
|
16
17
|
children: React.ReactNode;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
export declare const GoodRabbitDarkTheme: Theme;
|
|
21
|
+
|
|
22
|
+
export declare const GoodRabbitLightTheme: Theme;
|
|
23
|
+
|
|
19
24
|
export { GroupItem }
|
|
20
25
|
|
|
21
26
|
declare interface ICoreContext {
|
package/dist/web-ui.js
CHANGED
|
@@ -16826,7 +16826,7 @@ process.env.NODE_ENV !== "production" && (Im.propTypes = {
|
|
|
16826
16826
|
*/
|
|
16827
16827
|
variant: E.oneOf(["filled", "outlined", "standard"])
|
|
16828
16828
|
});
|
|
16829
|
-
DI({
|
|
16829
|
+
const kl = DI({
|
|
16830
16830
|
palette: {
|
|
16831
16831
|
mode: "light",
|
|
16832
16832
|
background: {
|
|
@@ -16912,8 +16912,7 @@ DI({
|
|
|
16912
16912
|
fontWeight: 400
|
|
16913
16913
|
}
|
|
16914
16914
|
}
|
|
16915
|
-
})
|
|
16916
|
-
const Ri = {
|
|
16915
|
+
}), Ri = {
|
|
16917
16916
|
"gr-purple": {
|
|
16918
16917
|
main: "#9D11F2",
|
|
16919
16918
|
50: "#F5E7FE",
|
|
@@ -19784,7 +19783,7 @@ const vM = ({ name: i, items: e, setState: I }) => {
|
|
|
19784
19783
|
logout: e
|
|
19785
19784
|
}
|
|
19786
19785
|
) : /* @__PURE__ */ Y(TC, { login: i }) });
|
|
19787
|
-
},
|
|
19786
|
+
}, Sl = ({ login: i, logout: e, sidebarItems: I, routes: r }) => /* @__PURE__ */ Y(mm, { children: /* @__PURE__ */ Y(Ni, { sx: { overflow: "hidden", height: "100vh" }, children: /* @__PURE__ */ Y(sl, { children: /* @__PURE__ */ ti(fn, { theme: {
|
|
19788
19787
|
rabbitDark: gC
|
|
19789
19788
|
}.rabbitDark, children: [
|
|
19790
19789
|
/* @__PURE__ */ Y(PR, {}),
|
|
@@ -19797,7 +19796,7 @@ const vM = ({ name: i, items: e, setState: I }) => {
|
|
|
19797
19796
|
routes: r
|
|
19798
19797
|
}
|
|
19799
19798
|
)
|
|
19800
|
-
] }) }) }) }),
|
|
19799
|
+
] }) }) }) }), gl = ({ children: i }) => {
|
|
19801
19800
|
const [e, I] = WI(!1), [r, m] = WI(""), [t, M] = WI(""), [R, V] = WI(!1);
|
|
19802
19801
|
return dV(() => {
|
|
19803
19802
|
I(sessionStorage.getItem("authenticated") === "true");
|
|
@@ -19819,7 +19818,9 @@ const vM = ({ name: i, items: e, setState: I }) => {
|
|
|
19819
19818
|
);
|
|
19820
19819
|
};
|
|
19821
19820
|
export {
|
|
19822
|
-
|
|
19821
|
+
Sl as Core,
|
|
19823
19822
|
Mm as CoreContext,
|
|
19824
|
-
|
|
19823
|
+
gl as CoreProvider,
|
|
19824
|
+
gC as GoodRabbitDarkTheme,
|
|
19825
|
+
kl as GoodRabbitLightTheme
|
|
19825
19826
|
};
|