gov-layout 1.2.10 → 1.2.11
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/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ function SidebarHeader({ orgLogo, orgName, orgSubtitle, collapsed }) {
|
|
|
74
74
|
fontWeight: 700,
|
|
75
75
|
fontSize: "16px",
|
|
76
76
|
lineHeight: "22px",
|
|
77
|
-
color: isDark ? "#
|
|
77
|
+
color: isDark ? "#ffffff" : "var(--color-alias-color-brand-text-dark, #05010e)",
|
|
78
78
|
margin: 0,
|
|
79
79
|
overflow: "hidden",
|
|
80
80
|
textOverflow: "ellipsis",
|
|
@@ -83,7 +83,7 @@ function SidebarHeader({ orgLogo, orgName, orgSubtitle, collapsed }) {
|
|
|
83
83
|
orgSubtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: {
|
|
84
84
|
fontSize: "14px",
|
|
85
85
|
lineHeight: "20px",
|
|
86
|
-
color: isDark ? "#
|
|
86
|
+
color: isDark ? "#e2e8f0" : "var(--color-alias-text-colors-tertiary, #475272)",
|
|
87
87
|
margin: 0,
|
|
88
88
|
overflow: "hidden",
|
|
89
89
|
textOverflow: "ellipsis",
|
|
@@ -479,7 +479,7 @@ function MenuItemComponent({
|
|
|
479
479
|
borderRadius: "8px",
|
|
480
480
|
border: "none",
|
|
481
481
|
background: isActive || isChildActive ? `color-mix(in srgb, ${activeColor} 10%, transparent)` : "transparent",
|
|
482
|
-
color: isActive || isChildActive ? activeColor : isDark ? "#
|
|
482
|
+
color: isActive || isChildActive ? activeColor : isDark ? "#ffffff" : "var(--color-alias-text-colors-tertiary, #475272)",
|
|
483
483
|
cursor: "pointer",
|
|
484
484
|
transition: "background-color 0.15s ease"
|
|
485
485
|
},
|
|
@@ -519,7 +519,7 @@ function MenuItemComponent({
|
|
|
519
519
|
borderRadius: "8px",
|
|
520
520
|
border: "none",
|
|
521
521
|
background: isActive ? `color-mix(in srgb, ${activeColor} 10%, transparent)` : "transparent",
|
|
522
|
-
color: isActive ? activeColor : isDark ? "#
|
|
522
|
+
color: isActive ? activeColor : isDark ? "#ffffff" : "var(--color-alias-text-colors-primary, #060d26)",
|
|
523
523
|
cursor: "pointer",
|
|
524
524
|
transition: "background-color 0.15s ease",
|
|
525
525
|
textAlign: "left",
|
|
@@ -535,7 +535,7 @@ function MenuItemComponent({
|
|
|
535
535
|
alignItems: "center",
|
|
536
536
|
justifyContent: "center",
|
|
537
537
|
flexShrink: 0,
|
|
538
|
-
color: isActive ? activeColor : isDark ? "#
|
|
538
|
+
color: isActive ? activeColor : isDark ? "#e2e8f0" : "var(--color-alias-text-colors-tertiary, #475272)"
|
|
539
539
|
}, children: resolvedIcon }),
|
|
540
540
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { flex: 1 }, children: item.title }),
|
|
541
541
|
hasChildren && /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { isOpen: expanded })
|
|
@@ -810,7 +810,7 @@ function SidebarUserProfile({
|
|
|
810
810
|
fontWeight: 600,
|
|
811
811
|
fontSize: "14px",
|
|
812
812
|
lineHeight: "20px",
|
|
813
|
-
color: isDark ? "#
|
|
813
|
+
color: isDark ? "#ffffff" : "var(--color-alias-text-colors-primary, #060d26)",
|
|
814
814
|
margin: 0,
|
|
815
815
|
overflow: "hidden",
|
|
816
816
|
textOverflow: "ellipsis",
|
|
@@ -819,7 +819,7 @@ function SidebarUserProfile({
|
|
|
819
819
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: {
|
|
820
820
|
fontSize: "12px",
|
|
821
821
|
lineHeight: "16px",
|
|
822
|
-
color: isDark ? "#
|
|
822
|
+
color: isDark ? "#e2e8f0" : "var(--color-alias-text-colors-tertiary, #475272)",
|
|
823
823
|
margin: 0
|
|
824
824
|
}, children: roleLabel })
|
|
825
825
|
] })
|
|
@@ -987,7 +987,7 @@ function StaffSidebar({
|
|
|
987
987
|
zIndex: 40,
|
|
988
988
|
overflow: "hidden",
|
|
989
989
|
transition: "width 0.3s ease",
|
|
990
|
-
color: isDark ? "#
|
|
990
|
+
color: isDark ? "#ffffff" : void 0
|
|
991
991
|
},
|
|
992
992
|
children: [
|
|
993
993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1069,7 +1069,7 @@ function StaffSidebar({
|
|
|
1069
1069
|
justifyContent: "center",
|
|
1070
1070
|
boxShadow: isDark ? "2px 0 8px rgba(0,0,0,0.3)" : "2px 0 8px rgba(0,0,0,0.06)",
|
|
1071
1071
|
transition: "left 0.3s ease",
|
|
1072
|
-
color: isDark ? "#
|
|
1072
|
+
color: isDark ? "#ffffff" : "var(--color-alias-text-colors-tertiary, #475272)"
|
|
1073
1073
|
},
|
|
1074
1074
|
children: /* @__PURE__ */ jsxRuntime.jsx(ToggleIcon, { isOpen: sidebarOpen })
|
|
1075
1075
|
}
|
|
@@ -1149,7 +1149,7 @@ function UserHeader({
|
|
|
1149
1149
|
position: "sticky",
|
|
1150
1150
|
top: 0,
|
|
1151
1151
|
zIndex: 10,
|
|
1152
|
-
color: isDark ? "#
|
|
1152
|
+
color: isDark ? "#ffffff" : void 0
|
|
1153
1153
|
},
|
|
1154
1154
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1155
1155
|
"div",
|
|
@@ -1222,7 +1222,7 @@ function UserHeader({
|
|
|
1222
1222
|
style: {
|
|
1223
1223
|
fontSize: "14px",
|
|
1224
1224
|
fontWeight: 600,
|
|
1225
|
-
color: isDark ? "#
|
|
1225
|
+
color: isDark ? "#ffffff" : "var(--color-alias-color-brand-text-dark, #05010e)",
|
|
1226
1226
|
margin: 0
|
|
1227
1227
|
},
|
|
1228
1228
|
children: [
|
|
@@ -1316,7 +1316,7 @@ function UserHeader({
|
|
|
1316
1316
|
background: isDark ? "#1f2937" : "#fafafa"
|
|
1317
1317
|
},
|
|
1318
1318
|
children: [
|
|
1319
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: "14px", color: isDark ? "#
|
|
1319
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: "14px", color: isDark ? "#ffffff" : "#111" }, children: "\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19" }),
|
|
1320
1320
|
onMarkAllRead && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
@@ -1405,7 +1405,7 @@ function UserHeader({
|
|
|
1405
1405
|
style: {
|
|
1406
1406
|
fontSize: "13px",
|
|
1407
1407
|
fontWeight: !item.isRead ? 600 : 500,
|
|
1408
|
-
color: isDark ? "#
|
|
1408
|
+
color: isDark ? "#ffffff" : "#111",
|
|
1409
1409
|
margin: "0 0 2px"
|
|
1410
1410
|
},
|
|
1411
1411
|
children: item.title
|
|
@@ -1585,7 +1585,7 @@ function UserSidebar({
|
|
|
1585
1585
|
transition: "transform 0.3s ease",
|
|
1586
1586
|
display: "flex",
|
|
1587
1587
|
flexDirection: "column",
|
|
1588
|
-
color: isDark ? "#
|
|
1588
|
+
color: isDark ? "#ffffff" : void 0
|
|
1589
1589
|
},
|
|
1590
1590
|
children: [
|
|
1591
1591
|
user && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1644,7 +1644,7 @@ function UserSidebar({
|
|
|
1644
1644
|
style: {
|
|
1645
1645
|
fontWeight: 700,
|
|
1646
1646
|
fontSize: "16px",
|
|
1647
|
-
color: isDark ? "#
|
|
1647
|
+
color: isDark ? "#ffffff" : "var(--color-alias-text-colors-primary, #060d26)",
|
|
1648
1648
|
margin: 0,
|
|
1649
1649
|
overflow: "hidden",
|
|
1650
1650
|
textOverflow: "ellipsis",
|
|
@@ -1658,7 +1658,7 @@ function UserSidebar({
|
|
|
1658
1658
|
{
|
|
1659
1659
|
style: {
|
|
1660
1660
|
fontSize: "13px",
|
|
1661
|
-
color: isDark ? "#
|
|
1661
|
+
color: isDark ? "#e2e8f0" : "var(--color-alias-text-colors-tertiary, #6b7280)",
|
|
1662
1662
|
margin: "2px 0 0",
|
|
1663
1663
|
display: "flex",
|
|
1664
1664
|
alignItems: "center",
|