gov-layout 1.2.20 → 1.2.22

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 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, onViewAll, onNotificationClick, onProfile, className, }: UserHeaderProps): react_jsx_runtime.JSX.Element;
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, onViewAll, onNotificationClick, onProfile, className, }: UserHeaderProps): react_jsx_runtime.JSX.Element;
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
@@ -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
@@ -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
  )