@ukpc-lib/react 0.2.5 → 0.2.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/components/index.cjs +3 -3
- package/dist/components/index.js +4 -4
- package/dist/{index.module-ebc563e0.js → index.module-34bab88b.js} +5086 -5089
- package/dist/{index.module-35d2f1ab.cjs → index.module-9c4fe97a.cjs} +75 -75
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +5 -5
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-dd30b753.cjs → index-5a2ec4da.cjs} +1 -1
- package/web-components-bundle/{index-d10944d5.js → index-8330a770.js} +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Ic, g as Lc, Q as la, R as $c, l as zc, p as jc, c as Pn, s as An, _ as W, a as st, P as N, b as ze, d as Fc, o as Bc, e as Wc, f as Hc, h as ro, I as Uc, i as Yc, j as io, D as Gc, k as ut, r as qc, m as Kc, B as Xc } from "../index.module-
|
|
2
|
-
import { n as R3, q as N3 } from "../index.module-
|
|
1
|
+
import { C as Ic, g as Lc, Q as la, R as $c, l as zc, p as jc, c as Pn, s as An, _ as W, a as st, P as N, b as ze, d as Fc, o as Bc, e as Wc, f as Hc, h as ro, I as Uc, i as Yc, j as io, D as Gc, k as ut, r as qc, m as Kc, B as Xc } from "../index.module-34bab88b.js";
|
|
2
|
+
import { n as R3, q as N3 } from "../index.module-34bab88b.js";
|
|
3
3
|
import { jsxs as D, Fragment as lr, jsx as v } from "react/jsx-runtime";
|
|
4
4
|
import * as M from "react";
|
|
5
5
|
import ca, { useState as Q, useRef as Ye, useEffect as De, createContext as Ft, useLayoutEffect as mi, useContext as ue, useInsertionEffect as Zc, useCallback as Qt, useMemo as cr, forwardRef as ua, createElement as en, useId as Jc, PureComponent as Qc } from "react";
|
|
@@ -143,7 +143,7 @@ function ha({ children: e, styles: t = [], ...n }) {
|
|
|
143
143
|
e
|
|
144
144
|
] });
|
|
145
145
|
}
|
|
146
|
-
const yu = `.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:
|
|
146
|
+
const yu = `.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
147
147
|
`;
|
|
148
148
|
function y3({
|
|
149
149
|
logo: e,
|
|
@@ -5054,7 +5054,7 @@ function m1(e) {
|
|
|
5054
5054
|
}
|
|
5055
5055
|
function Ul({ item: e, level: t = 0, ...n }) {
|
|
5056
5056
|
var A, R;
|
|
5057
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", d = (O, V = a) => `${O} ${V} ${l} ${c}`, u = !!((A = e.children) != null && A.length), [h, p] = Q(!1), g = Ye(), f = window.location.origin, m = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, b = window.location.pathname.split("/")[1], w = m.pathname.split("/")[1], x = n.ssr || !f.includes("local") && f !== m.origin || w !== b, S = u ? "div" : x ? "a" : tu, y = e.path || "#", E = t + 1, T = u && !(i && E >= 2 && !h), C = i || t === 0 ? void 0 : `${t}rem`;
|
|
5057
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", d = (O, V = a) => `${O} ${V} ${l} ${c}`, u = !!((A = e.children) != null && A.length), [h, p] = Q(!1), g = Ye(), f = window.location.origin, m = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, b = window.location.pathname.split("/")[1], w = m.pathname.split("/")[1], x = n.ssr || !f.includes("local") && f !== m.origin || w !== b, S = u || t === 0 ? "div" : x ? "a" : tu, y = e.path || "#", E = t + 1, T = u && !(i && E >= 2 && !h), C = i || t === 0 ? void 0 : `${t}rem`;
|
|
5058
5058
|
return /* @__PURE__ */ D(
|
|
5059
5059
|
"div",
|
|
5060
5060
|
{
|