@ukpc-lib/react 0.16.5 → 0.16.6
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/components/FavoriteMenu/components/MenuItem.d.ts +2 -2
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/GlobalMenu/helpers/index.d.ts +3 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.esm2017-B5CLzdVt.cjs → index.esm2017-BWPYyOYY.cjs} +101 -101
- package/dist/{index.esm2017-DedBSRLV.js → index.esm2017-CxUJuamS.js} +3263 -3256
- package/dist/share/hooks/useSyncRouter.d.ts +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +64 -82
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-CZ1XQeht.js → index-9O8aC_qt.js} +267 -260
|
@@ -7,6 +7,7 @@ export type OwnMenuItemProps = {
|
|
|
7
7
|
replacePath?(path: string): string;
|
|
8
8
|
ssr?: boolean;
|
|
9
9
|
brandColors?: ColorsType;
|
|
10
|
+
onClickItem?(item: MenuItemDto): void;
|
|
10
11
|
};
|
|
11
12
|
type MenuItemProps = {
|
|
12
13
|
baseUrl: string;
|
|
@@ -18,9 +19,8 @@ type MenuItemProps = {
|
|
|
18
19
|
params?: RenderParams;
|
|
19
20
|
nodes?: NodeModel<MenuItemDto>[];
|
|
20
21
|
isDrop?: boolean;
|
|
21
|
-
onClick?: (item: MenuItemDto) => void;
|
|
22
22
|
} & OwnMenuItemProps;
|
|
23
|
-
export default function
|
|
23
|
+
export default function FavMenuItem({ ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export type FavoriteIconProps = {
|
|
25
25
|
onClick?(_isFavorite: boolean): void;
|
|
26
26
|
menuLevel?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-BWPYyOYY.cjs"),N=require("@mui/material");require("axios");const gn=require("react-router-dom");require("@r2wc/react-to-web-component");require("react-query");require("react-dom");const se=require("moment");function No(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=No(C),Ro=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
2
2
|
.tab-title {
|
|
3
3
|
min-width: 90px;
|
|
4
4
|
padding: 5px 16px;
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import di, { jsxs as A, Fragment as be, jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import * as $ from "react";
|
|
3
3
|
import Ee, { createElement as sn, PureComponent as fi, useState as D, useEffect as J, useRef as ye, useContext as We, useCallback as dt, forwardRef as hi } from "react";
|
|
4
|
-
import { c as Ie, a as ht, _ as mi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as pi, p as gi, L as Qn, u as yi, e as Xr, S as Jr, f as bi, g as vi, Q as Qr, h as Tt, s as er, i as Pn, P, j as we, k as xi, o as Si, l as Fe, m as wi, n as Ot, q as tr, r as _i, v as nr, D as Ei, w as eo, x as to, y as Ci, z as Ti, A as Ii } from "../index.esm2017-
|
|
5
|
-
import { F as iu, G as au, J as su, U as cu, B as lu, E as uu, H as du } from "../index.esm2017-
|
|
4
|
+
import { c as Ie, a as ht, _ as mi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as pi, p as gi, L as Qn, u as yi, e as Xr, S as Jr, f as bi, g as vi, Q as Qr, h as Tt, s as er, i as Pn, P, j as we, k as xi, o as Si, l as Fe, m as wi, n as Ot, q as tr, r as _i, v as nr, D as Ei, w as eo, x as to, y as Ci, z as Ti, A as Ii } from "../index.esm2017-CxUJuamS.js";
|
|
5
|
+
import { F as iu, G as au, J as su, U as cu, B as lu, E as uu, H as du } from "../index.esm2017-CxUJuamS.js";
|
|
6
6
|
import { Box as no, CircularProgress as ro, Typography as Me, Stack as Se, Dialog as Mi, DialogTitle as ki, DialogContent as Oi, DialogActions as Ai, Button as gn, ClickAwayListener as $i, TextField as oo, IconButton as Ni, Fade as Pi, Paper as Ri, Checkbox as zi, Breadcrumbs as Li } from "@mui/material";
|
|
7
7
|
import "axios";
|
|
8
8
|
import { useParams as Di, Link as io } from "react-router-dom";
|