gov-layout 1.2.19 → 1.2.21
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.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -103,14 +103,13 @@ interface UserHeaderProps {
|
|
|
103
103
|
/** Custom bell icon */
|
|
104
104
|
notificationBell?: React.ReactNode;
|
|
105
105
|
onMarkAllRead?: () => void;
|
|
106
|
-
onViewAll?: () => void;
|
|
107
106
|
/** Callback เมื่อกดการแจ้งเตือนแต่ละรายการ */
|
|
108
107
|
onNotificationClick?: (notification: NotificationItem) => void;
|
|
109
108
|
/** Callback เมื่อกดโปรไฟล์ผู้ใช้ */
|
|
110
109
|
onProfile?: () => void;
|
|
111
110
|
className?: string;
|
|
112
111
|
}
|
|
113
|
-
declare function UserHeader({ user, notifications, onToggleSidebar, notificationBell, onMarkAllRead,
|
|
112
|
+
declare function UserHeader({ user, notifications, onToggleSidebar, notificationBell, onMarkAllRead, onNotificationClick, onProfile, className, }: UserHeaderProps): react_jsx_runtime.JSX.Element;
|
|
114
113
|
|
|
115
114
|
interface UserSidebarProps {
|
|
116
115
|
user: User | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -103,14 +103,13 @@ interface UserHeaderProps {
|
|
|
103
103
|
/** Custom bell icon */
|
|
104
104
|
notificationBell?: React.ReactNode;
|
|
105
105
|
onMarkAllRead?: () => void;
|
|
106
|
-
onViewAll?: () => void;
|
|
107
106
|
/** Callback เมื่อกดการแจ้งเตือนแต่ละรายการ */
|
|
108
107
|
onNotificationClick?: (notification: NotificationItem) => void;
|
|
109
108
|
/** Callback เมื่อกดโปรไฟล์ผู้ใช้ */
|
|
110
109
|
onProfile?: () => void;
|
|
111
110
|
className?: string;
|
|
112
111
|
}
|
|
113
|
-
declare function UserHeader({ user, notifications, onToggleSidebar, notificationBell, onMarkAllRead,
|
|
112
|
+
declare function UserHeader({ user, notifications, onToggleSidebar, notificationBell, onMarkAllRead, onNotificationClick, onProfile, className, }: UserHeaderProps): react_jsx_runtime.JSX.Element;
|
|
114
113
|
|
|
115
114
|
interface UserSidebarProps {
|
|
116
115
|
user: User | null;
|
package/dist/index.js
CHANGED
|
@@ -988,7 +988,7 @@ function StaffSidebar({
|
|
|
988
988
|
borderRight: `1px solid ${isDark ? "#374151" : "var(--color-border-colors-neutral, #c8cedd)"}`,
|
|
989
989
|
display: "flex",
|
|
990
990
|
flexDirection: "column",
|
|
991
|
-
zIndex:
|
|
991
|
+
zIndex: 50,
|
|
992
992
|
overflow: "hidden",
|
|
993
993
|
transition: "width 0.3s ease",
|
|
994
994
|
color: isDark ? "#ffffff" : void 0
|
|
@@ -1057,7 +1057,7 @@ function StaffSidebar({
|
|
|
1057
1057
|
position: "fixed",
|
|
1058
1058
|
top: "10%",
|
|
1059
1059
|
left: currentWidth,
|
|
1060
|
-
zIndex:
|
|
1060
|
+
zIndex: 51,
|
|
1061
1061
|
width: "24px",
|
|
1062
1062
|
height: "40px",
|
|
1063
1063
|
borderRadius: "0 6px 6px 0",
|
|
@@ -1123,7 +1123,6 @@ function UserHeader({
|
|
|
1123
1123
|
onToggleSidebar,
|
|
1124
1124
|
notificationBell,
|
|
1125
1125
|
onMarkAllRead,
|
|
1126
|
-
onViewAll,
|
|
1127
1126
|
onNotificationClick,
|
|
1128
1127
|
onProfile,
|
|
1129
1128
|
className
|
|
@@ -1152,7 +1151,7 @@ function UserHeader({
|
|
|
1152
1151
|
boxShadow: "0 2px 8px rgba(0,0,0,0.15)",
|
|
1153
1152
|
position: "sticky",
|
|
1154
1153
|
top: 0,
|
|
1155
|
-
zIndex:
|
|
1154
|
+
zIndex: 40,
|
|
1156
1155
|
color: "#ffffff"
|
|
1157
1156
|
},
|
|
1158
1157
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1467,35 +1466,7 @@ function UserHeader({
|
|
|
1467
1466
|
]
|
|
1468
1467
|
},
|
|
1469
1468
|
item.id
|
|
1470
|
-
)) })
|
|
1471
|
-
onViewAll && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1472
|
-
"div",
|
|
1473
|
-
{
|
|
1474
|
-
style: {
|
|
1475
|
-
padding: "10px",
|
|
1476
|
-
borderTop: `1px solid ${isDark ? "#374151" : "#f3f4f6"}`,
|
|
1477
|
-
textAlign: "center",
|
|
1478
|
-
background: isDark ? "#1f2937" : "#fafafa"
|
|
1479
|
-
},
|
|
1480
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1481
|
-
"button",
|
|
1482
|
-
{
|
|
1483
|
-
onClick: onViewAll,
|
|
1484
|
-
style: {
|
|
1485
|
-
fontSize: "13px",
|
|
1486
|
-
color: "#6b7280",
|
|
1487
|
-
background: "none",
|
|
1488
|
-
border: "none",
|
|
1489
|
-
cursor: "pointer",
|
|
1490
|
-
fontWeight: 500,
|
|
1491
|
-
width: "100%",
|
|
1492
|
-
padding: "4px"
|
|
1493
|
-
},
|
|
1494
|
-
children: "\u0E14\u0E39\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14"
|
|
1495
|
-
}
|
|
1496
|
-
)
|
|
1497
|
-
}
|
|
1498
|
-
)
|
|
1469
|
+
)) })
|
|
1499
1470
|
]
|
|
1500
1471
|
}
|
|
1501
1472
|
)
|
|
@@ -1593,7 +1564,7 @@ function UserSidebar({
|
|
|
1593
1564
|
position: "fixed",
|
|
1594
1565
|
inset: 0,
|
|
1595
1566
|
background: "rgba(0,0,0,0.5)",
|
|
1596
|
-
zIndex:
|
|
1567
|
+
zIndex: 45,
|
|
1597
1568
|
transition: "opacity 0.3s ease"
|
|
1598
1569
|
}
|
|
1599
1570
|
}
|