gov-layout 1.2.28 → 1.3.0
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/README.md +1 -0
- package/dist/index.js +9 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1107,6 +1107,9 @@ function HamburgerIcon() {
|
|
|
1107
1107
|
function MessageOutlinedIcon(props) {
|
|
1108
1108
|
return /* @__PURE__ */ jsx("svg", { focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsx("path", { d: "M4 4h16v12H5.17L4 17.17zm0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm2 10h12v2H6zm0-3h12v2H6zm0-3h12v2H6z" }) });
|
|
1109
1109
|
}
|
|
1110
|
+
function AvatarIcon2({ size = 20 }) {
|
|
1111
|
+
return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) });
|
|
1112
|
+
}
|
|
1110
1113
|
function getNotifBg(type) {
|
|
1111
1114
|
const map = {
|
|
1112
1115
|
success: "#dcfce7",
|
|
@@ -1138,7 +1141,7 @@ function UserHeader({
|
|
|
1138
1141
|
className
|
|
1139
1142
|
}) {
|
|
1140
1143
|
const displayName = `${user?.firstName || ""} ${user?.lastName || ""}`.trim() || "\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49";
|
|
1141
|
-
|
|
1144
|
+
user?.firstName?.charAt(0) || "\u0E1C";
|
|
1142
1145
|
const [isNotifOpen, setIsNotifOpen] = useState(false);
|
|
1143
1146
|
const [activeFilter, setActiveFilter] = useState("all");
|
|
1144
1147
|
const notifRef = useRef(null);
|
|
@@ -1232,13 +1235,7 @@ function UserHeader({
|
|
|
1232
1235
|
justifyContent: "center",
|
|
1233
1236
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
1234
1237
|
},
|
|
1235
|
-
children: /* @__PURE__ */ jsx(
|
|
1236
|
-
"span",
|
|
1237
|
-
{
|
|
1238
|
-
style: { color: "#fff", fontSize: "18px", fontWeight: 600 },
|
|
1239
|
-
children: firstChar
|
|
1240
|
-
}
|
|
1241
|
-
)
|
|
1238
|
+
children: /* @__PURE__ */ jsx(AvatarIcon2, { size: 24 })
|
|
1242
1239
|
}
|
|
1243
1240
|
),
|
|
1244
1241
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
@@ -1632,6 +1629,9 @@ function ProfileIcon2() {
|
|
|
1632
1629
|
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "7", r: "4" })
|
|
1633
1630
|
] });
|
|
1634
1631
|
}
|
|
1632
|
+
function AvatarIcon3({ size = 20 }) {
|
|
1633
|
+
return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) });
|
|
1634
|
+
}
|
|
1635
1635
|
function UserSidebar({
|
|
1636
1636
|
user,
|
|
1637
1637
|
roleLabel,
|
|
@@ -1659,10 +1659,6 @@ function UserSidebar({
|
|
|
1659
1659
|
if (user.firstName && user.lastName) return `${user.firstName} ${user.lastName}`;
|
|
1660
1660
|
return user.firstName || user.lastName || "\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49";
|
|
1661
1661
|
};
|
|
1662
|
-
const getInitial = () => {
|
|
1663
|
-
if (!user) return "?";
|
|
1664
|
-
return user.firstName?.charAt(0) || user.lastName?.charAt(0) || "?";
|
|
1665
|
-
};
|
|
1666
1662
|
const handleMenuClick = (path) => {
|
|
1667
1663
|
onNavigate(path);
|
|
1668
1664
|
onClose();
|
|
@@ -1751,7 +1747,7 @@ function UserSidebar({
|
|
|
1751
1747
|
fontSize: "20px",
|
|
1752
1748
|
boxShadow: "0 2px 8px rgba(0,0,0,0.1)"
|
|
1753
1749
|
},
|
|
1754
|
-
children:
|
|
1750
|
+
children: /* @__PURE__ */ jsx(AvatarIcon3, { size: 32 })
|
|
1755
1751
|
}
|
|
1756
1752
|
),
|
|
1757
1753
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|