@wso2/oxygen-ui 0.13.0 → 0.13.1

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 CHANGED
@@ -188,6 +188,37 @@ var init_OxygenThemeBase = __esm({
188
188
  }
189
189
  },
190
190
  components: {
191
+ MuiAccordionSummary: {
192
+ defaultProps: {
193
+ expandIcon: React.createElement(ChevronDown)
194
+ },
195
+ styleOverrides: {
196
+ root: ({ theme }) => ({
197
+ fontWeight: theme.typography.fontWeightMedium,
198
+ "& .MuiTypography-root": {
199
+ fontWeight: theme.typography.fontWeightMedium
200
+ },
201
+ "&:hover:not(.Mui-disabled)": {
202
+ backgroundColor: (theme.vars || theme).palette.action.hover,
203
+ cursor: "pointer"
204
+ }
205
+ })
206
+ }
207
+ },
208
+ MuiCssBaseline: {
209
+ styleOverrides: {
210
+ // Honor the user's OS-level reduced-motion preference (WCAG 2.3.3):
211
+ // collapse all CSS animations/transitions to near-instant.
212
+ "@media (prefers-reduced-motion: reduce)": {
213
+ "*, *::before, *::after": {
214
+ animationDuration: "0.01ms !important",
215
+ animationIterationCount: "1 !important",
216
+ transitionDuration: "0.01ms !important",
217
+ scrollBehavior: "auto !important"
218
+ }
219
+ }
220
+ }
221
+ },
191
222
  MuiAutocomplete: {
192
223
  defaultProps: {
193
224
  popupIcon: React.createElement(ChevronDown),
@@ -274,12 +305,13 @@ var init_OxygenThemeBase = __esm({
274
305
  light: {
275
306
  background: "#f5f5f5",
276
307
  text: "#24292e",
277
- comment: "#6a737d",
278
- keyword: "#d73a49",
308
+ // Darkened from GitHub-light defaults to meet WCAG AA 4.5:1 contrast on #f5f5f5
309
+ comment: "#57606a",
310
+ keyword: "#cf222e",
279
311
  string: "#032f62",
280
312
  function: "#6f42c1",
281
313
  number: "#005cc5",
282
- operator: "#d73a49"
314
+ operator: "#cf222e"
283
315
  },
284
316
  dark: {
285
317
  background: "#1e1e1e",
@@ -440,7 +472,7 @@ var init_createOxygenTheme = __esm({
440
472
  // package.json
441
473
  var package_default = {
442
474
  name: "@wso2/oxygen-ui",
443
- version: "0.13.0",
475
+ version: "0.13.1",
444
476
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
445
477
  type: "module",
446
478
  main: "./dist/index.js",
@@ -2103,14 +2135,12 @@ import { default as default2 } from "@emotion/cache";
2103
2135
 
2104
2136
  // src/components/AppBreadcrumbs/AppBreadcrumbs.tsx
2105
2137
  import Breadcrumbs from "@mui/material/Breadcrumbs";
2138
+ import Menu from "@mui/material/Menu";
2106
2139
  import MenuItem from "@mui/material/MenuItem";
2107
- import MenuList from "@mui/material/MenuList";
2108
- import Paper from "@mui/material/Paper";
2109
- import Popper from "@mui/material/Popper";
2110
2140
  import Typography from "@mui/material/Typography";
2111
2141
  import { styled } from "@mui/material/styles";
2112
2142
  import { ChevronRight } from "@wso2/oxygen-ui-icons-react";
2113
- import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
2143
+ import { useId, useState as useState2 } from "react";
2114
2144
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
2115
2145
  var AppBreadcrumbsRoot = styled("div", {
2116
2146
  name: "MuiAppBreadcrumbs",
@@ -2122,63 +2152,68 @@ var AppBreadcrumbsRoot = styled("div", {
2122
2152
  var AppBreadcrumbsItem = styled(Typography, {
2123
2153
  name: "MuiAppBreadcrumbs",
2124
2154
  slot: "Item"
2125
- })(
2126
- ({ theme, ownerState }) => {
2127
- var _a, _b, _c, _d, _e, _f;
2128
- return ownerState.isLast ? {
2155
+ })(({ theme, ownerState }) => {
2156
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
2157
+ if (ownerState.isLast) {
2158
+ return {
2129
2159
  whiteSpace: "nowrap",
2130
- color: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.text.primary) != null ? _b : theme.palette.text.primary
2131
- } : {
2132
- cursor: "pointer",
2160
+ textDecoration: "none",
2161
+ color: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.text.primary) != null ? _b : theme.palette.text.primary,
2162
+ "&:hover": {
2163
+ textDecoration: "none",
2164
+ color: (_d = (_c = theme.vars) == null ? void 0 : _c.palette.text.primary) != null ? _d : theme.palette.text.primary
2165
+ }
2166
+ };
2167
+ }
2168
+ if (!ownerState.isClickable) {
2169
+ return {
2133
2170
  whiteSpace: "nowrap",
2134
- color: (_d = (_c = theme.vars) == null ? void 0 : _c.palette.text.secondary) != null ? _d : theme.palette.text.secondary,
2171
+ textDecoration: "none",
2172
+ color: (_f = (_e = theme.vars) == null ? void 0 : _e.palette.text.disabled) != null ? _f : theme.palette.text.disabled,
2173
+ fontStyle: "italic",
2174
+ opacity: 0.7,
2135
2175
  "&:hover": {
2136
- textDecoration: "underline",
2137
- color: (_f = (_e = theme.vars) == null ? void 0 : _e.palette.text.primary) != null ? _f : theme.palette.text.primary
2176
+ textDecoration: "none",
2177
+ color: (_h = (_g = theme.vars) == null ? void 0 : _g.palette.text.disabled) != null ? _h : theme.palette.text.disabled
2138
2178
  }
2139
2179
  };
2140
2180
  }
2141
- );
2142
- var AppBreadcrumbsEllipsis = styled(Typography, {
2181
+ return {
2182
+ cursor: "pointer",
2183
+ whiteSpace: "nowrap",
2184
+ color: (_j = (_i = theme.vars) == null ? void 0 : _i.palette.text.secondary) != null ? _j : theme.palette.text.secondary,
2185
+ "&:hover": {
2186
+ textDecoration: "underline",
2187
+ color: (_l = (_k = theme.vars) == null ? void 0 : _k.palette.text.primary) != null ? _l : theme.palette.text.primary
2188
+ }
2189
+ };
2190
+ });
2191
+ var AppBreadcrumbsEllipsis = styled("button", {
2143
2192
  name: "MuiAppBreadcrumbs",
2144
2193
  slot: "Ellipsis"
2145
2194
  })(({ theme, ownerState }) => {
2146
2195
  var _a, _b, _c, _d, _e, _f;
2147
- return {
2196
+ return __spreadProps(__spreadValues({}, theme.typography.h5), {
2197
+ border: 0,
2198
+ padding: theme.spacing(0, 0.5),
2148
2199
  cursor: "pointer",
2149
2200
  whiteSpace: "nowrap",
2150
2201
  userSelect: "none",
2151
- px: 0.5,
2152
2202
  borderRadius: theme.shape.borderRadius,
2153
2203
  color: (_b = (_a = theme.vars) == null ? void 0 : _a.palette.text.secondary) != null ? _b : theme.palette.text.secondary,
2154
2204
  backgroundColor: ownerState.active ? (_d = (_c = theme.vars) == null ? void 0 : _c.palette.action.hover) != null ? _d : theme.palette.action.hover : "transparent",
2155
2205
  "&:hover": {
2156
2206
  backgroundColor: (_f = (_e = theme.vars) == null ? void 0 : _e.palette.action.hover) != null ? _f : theme.palette.action.hover
2157
2207
  }
2158
- };
2208
+ });
2159
2209
  });
2160
2210
  function AppBreadcrumbs(_a) {
2161
2211
  var _b = _a, { items, maxItems = 4, sx } = _b, props = __objRest(_b, ["items", "maxItems", "sx"]);
2162
2212
  const [anchorEl, setAnchorEl] = useState2(null);
2163
2213
  const [ellipsisHovered, setEllipsisHovered] = useState2(false);
2164
- const ellipsisRef = useRef(null);
2165
- const popperRef = useRef(null);
2214
+ const menuId = useId();
2166
2215
  const open = Boolean(anchorEl);
2167
- useEffect2(() => {
2168
- if (!open) return void 0;
2169
- const handleDocumentClick = (e) => {
2170
- var _a2, _b2;
2171
- const target = e.target;
2172
- if (((_a2 = ellipsisRef.current) == null ? void 0 : _a2.contains(target)) || ((_b2 = popperRef.current) == null ? void 0 : _b2.contains(target))) {
2173
- return;
2174
- }
2175
- setAnchorEl(null);
2176
- };
2177
- document.addEventListener("click", handleDocumentClick);
2178
- return () => document.removeEventListener("click", handleDocumentClick);
2179
- }, [open]);
2180
2216
  const handleEllipsisClick = (e) => {
2181
- ellipsisRef.current = e.currentTarget;
2182
2217
  setAnchorEl(open ? null : e.currentTarget);
2183
2218
  };
2184
2219
  const handleMenuItemClick = (item) => {
@@ -2187,46 +2222,56 @@ function AppBreadcrumbs(_a) {
2187
2222
  (_a2 = item.onClick) == null ? void 0 : _a2.call(item);
2188
2223
  };
2189
2224
  const shouldTruncate = items.length > maxItems;
2190
- const visibleItems = shouldTruncate ? [items[0], ...items.slice(items.length - 2)] : items;
2191
- const hiddenItems = shouldTruncate ? items.slice(1, items.length - 2) : [];
2192
- const renderItem = (item, isLast) => /* @__PURE__ */ jsx2(
2193
- AppBreadcrumbsItem,
2194
- {
2195
- variant: "h5",
2196
- ownerState: { isLast },
2197
- role: isLast ? void 0 : "button",
2198
- tabIndex: isLast ? void 0 : 0,
2199
- onClick: isLast ? void 0 : item.onClick,
2200
- onKeyDown: isLast ? void 0 : (e) => {
2201
- var _a2;
2202
- if (e.key === "Enter" || e.key === " ") {
2203
- e.preventDefault();
2204
- (_a2 = item.onClick) == null ? void 0 : _a2.call(item);
2225
+ const visibleItems = shouldTruncate ? [...items.slice(0, maxItems - 1), items[items.length - 1]] : items;
2226
+ const hiddenItems = shouldTruncate ? items.slice(maxItems - 1, items.length - 1) : [];
2227
+ const renderItem = (item, isLast) => {
2228
+ const isClickable = !isLast && !!item.onClick;
2229
+ return /* @__PURE__ */ jsx2(
2230
+ AppBreadcrumbsItem,
2231
+ __spreadProps(__spreadValues({
2232
+ variant: "h5",
2233
+ ownerState: { isLast, isClickable }
2234
+ }, isClickable && {
2235
+ role: "button",
2236
+ tabIndex: 0,
2237
+ onClick: item.onClick,
2238
+ onKeyDown: (e) => {
2239
+ var _a2;
2240
+ if (e.key === "Enter" || e.key === " ") {
2241
+ e.preventDefault();
2242
+ (_a2 = item.onClick) == null ? void 0 : _a2.call(item);
2243
+ }
2205
2244
  }
2206
- },
2207
- children: item.label
2208
- },
2209
- item.key
2210
- );
2245
+ }), {
2246
+ children: item.label
2247
+ }),
2248
+ item.key
2249
+ );
2250
+ };
2211
2251
  const breadcrumbChildren = [];
2212
2252
  if (shouldTruncate) {
2213
- breadcrumbChildren.push(renderItem(visibleItems[0], false));
2253
+ visibleItems.slice(0, -1).forEach((item, index) => {
2254
+ breadcrumbChildren.push(renderItem(item, false));
2255
+ });
2214
2256
  breadcrumbChildren.push(
2215
2257
  /* @__PURE__ */ jsx2(
2216
2258
  AppBreadcrumbsEllipsis,
2217
2259
  {
2218
- variant: "h5",
2260
+ type: "button",
2219
2261
  ownerState: { active: ellipsisHovered || open },
2220
2262
  onClick: handleEllipsisClick,
2221
2263
  onMouseEnter: () => setEllipsisHovered(true),
2222
2264
  onMouseLeave: () => setEllipsisHovered(false),
2265
+ "aria-label": "Show hidden breadcrumbs",
2266
+ "aria-haspopup": "menu",
2267
+ "aria-expanded": open || void 0,
2268
+ "aria-controls": open ? menuId : void 0,
2223
2269
  children: "..."
2224
2270
  },
2225
2271
  "__ellipsis__"
2226
2272
  )
2227
2273
  );
2228
- breadcrumbChildren.push(renderItem(visibleItems[1], false));
2229
- breadcrumbChildren.push(renderItem(visibleItems[2], true));
2274
+ breadcrumbChildren.push(renderItem(visibleItems[visibleItems.length - 1], true));
2230
2275
  } else {
2231
2276
  items.forEach((item, index) => {
2232
2277
  breadcrumbChildren.push(renderItem(item, index === items.length - 1));
@@ -2236,19 +2281,30 @@ function AppBreadcrumbs(_a) {
2236
2281
  /* @__PURE__ */ jsx2(
2237
2282
  Breadcrumbs,
2238
2283
  {
2239
- separator: /* @__PURE__ */ jsx2(ChevronRight, { size: 16 }),
2284
+ separator: /* @__PURE__ */ jsx2(ChevronRight, { size: 16, "aria-hidden": "true" }),
2240
2285
  "aria-label": "breadcrumb",
2241
2286
  sx: { "& ol": { flexWrap: "nowrap", alignItems: "center" } },
2242
2287
  children: breadcrumbChildren
2243
2288
  }
2244
2289
  ),
2245
- /* @__PURE__ */ jsx2(Popper, { open, anchorEl, placement: "bottom-start", sx: { zIndex: 1400 }, children: /* @__PURE__ */ jsx2(Paper, { ref: popperRef, elevation: 3, sx: { minWidth: 160, mt: 0.5 }, children: /* @__PURE__ */ jsx2(MenuList, { dense: true, children: hiddenItems.map((item) => /* @__PURE__ */ jsx2(MenuItem, { onClick: () => handleMenuItemClick(item), children: /* @__PURE__ */ jsx2(Typography, { variant: "body2", children: item.label }) }, item.key)) }) }) })
2290
+ /* @__PURE__ */ jsx2(
2291
+ Menu,
2292
+ {
2293
+ id: menuId,
2294
+ open,
2295
+ anchorEl,
2296
+ onClose: () => setAnchorEl(null),
2297
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
2298
+ slotProps: { paper: { elevation: 3, sx: { minWidth: 160, mt: 0.5 } }, list: { dense: true } },
2299
+ children: hiddenItems.map((item) => /* @__PURE__ */ jsx2(MenuItem, { onClick: () => handleMenuItemClick(item), children: /* @__PURE__ */ jsx2(Typography, { variant: "body2", children: item.label }) }, item.key))
2300
+ }
2301
+ )
2246
2302
  ] }));
2247
2303
  }
2248
2304
  AppBreadcrumbs.displayName = "AppBreadcrumbs";
2249
2305
 
2250
2306
  // src/components/CodeBlock/CodeBlock.tsx
2251
- import React2, { useEffect as useEffect3 } from "react";
2307
+ import React2, { useEffect as useEffect2 } from "react";
2252
2308
  import { Box, useTheme } from "@mui/material";
2253
2309
  import Prism from "prismjs";
2254
2310
  import "prismjs/components/prism-javascript";
@@ -2282,18 +2338,19 @@ var CodeBlock = ({
2282
2338
  });
2283
2339
  return () => observer.disconnect();
2284
2340
  }, [theme.palette.mode]);
2285
- useEffect3(() => {
2341
+ useEffect2(() => {
2286
2342
  Prism.highlightAll();
2287
2343
  }, [code, language]);
2288
2344
  const defaultColors = {
2289
2345
  background: isDark ? "#1e1e1e" : "#f5f5f5",
2290
2346
  text: isDark ? "#d4d4d4" : "#24292e",
2291
- comment: isDark ? "#6a9955" : "#6a737d",
2292
- keyword: isDark ? "#569cd6" : "#d73a49",
2347
+ // Light-mode values darkened to meet WCAG AA 4.5:1 contrast on #f5f5f5
2348
+ comment: isDark ? "#6a9955" : "#57606a",
2349
+ keyword: isDark ? "#569cd6" : "#cf222e",
2293
2350
  string: isDark ? "#ce9178" : "#032f62",
2294
2351
  function: isDark ? "#dcdcaa" : "#6f42c1",
2295
2352
  number: isDark ? "#b5cea8" : "#005cc5",
2296
- operator: isDark ? "#d4d4d4" : "#d73a49"
2353
+ operator: isDark ? "#d4d4d4" : "#cf222e"
2297
2354
  };
2298
2355
  const colors2 = (isDark ? (_b = (_a = theme.vars) == null ? void 0 : _a.syntax) == null ? void 0 : _b.dark : (_d = (_c = theme.vars) == null ? void 0 : _c.syntax) == null ? void 0 : _d.light) || defaultColors;
2299
2356
  return /* @__PURE__ */ jsx3(
@@ -2514,52 +2571,62 @@ function ColorSchemeSVG(_a) {
2514
2571
  }
2515
2572
 
2516
2573
  // src/components/ColorSchemeToggle/ColorSchemeToggle.tsx
2574
+ import * as React3 from "react";
2517
2575
  import { useColorScheme as useColorScheme3 } from "@mui/material/styles";
2518
2576
  import IconButton from "@mui/material/IconButton";
2519
2577
  import { Moon, Monitor, Sun } from "@wso2/oxygen-ui-icons-react";
2520
2578
  import { Tooltip } from "@mui/material";
2521
2579
  import { jsx as jsx6 } from "react/jsx-runtime";
2522
- var ColorSchemeToggle = (_a) => {
2523
- var _b = _a, {
2524
- darkModeIcon,
2525
- lightModeIcon,
2526
- systemModeIcon
2527
- } = _b, buttonProps = __objRest(_b, [
2528
- "darkModeIcon",
2529
- "lightModeIcon",
2530
- "systemModeIcon"
2531
- ]);
2532
- const { mode, setMode } = useColorScheme3();
2533
- if (!mode) {
2534
- return null;
2535
- }
2536
- const nextMode = (currentMode2) => {
2537
- if (currentMode2 === "light") return "dark";
2538
- if (currentMode2 === "dark") return "system";
2539
- return "light";
2540
- };
2541
- const currentMode = mode != null ? mode : "system";
2542
- const ColorSchemeIcon = () => {
2543
- switch (currentMode) {
2544
- case "light":
2545
- return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx6(Sun, {});
2546
- case "dark":
2547
- return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx6(Moon, {});
2548
- default:
2549
- return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx6(Monitor, {});
2580
+ var ColorSchemeToggle = React3.forwardRef(
2581
+ function ColorSchemeToggle2(_a, ref) {
2582
+ var _b = _a, { darkModeIcon, lightModeIcon, systemModeIcon, onClick, "aria-label": ariaLabel } = _b, buttonProps = __objRest(_b, ["darkModeIcon", "lightModeIcon", "systemModeIcon", "onClick", "aria-label"]);
2583
+ const { mode, setMode } = useColorScheme3();
2584
+ if (!mode) {
2585
+ return null;
2550
2586
  }
2551
- };
2552
- return /* @__PURE__ */ jsx6(Tooltip, { title: `${currentMode.charAt(0).toUpperCase()}${currentMode.slice(1)} Mode`, children: /* @__PURE__ */ jsx6(IconButton, __spreadProps(__spreadValues({}, buttonProps), { onClick: () => setMode(nextMode(currentMode)), children: /* @__PURE__ */ jsx6(ColorSchemeIcon, {}) })) });
2553
- };
2587
+ const nextMode = (currentMode2) => {
2588
+ if (currentMode2 === "light") return "dark";
2589
+ if (currentMode2 === "dark") return "system";
2590
+ return "light";
2591
+ };
2592
+ const currentMode = mode != null ? mode : "system";
2593
+ const defaultAriaLabel = `Switch to ${nextMode(currentMode)} mode`;
2594
+ const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
2595
+ const ColorSchemeIcon = () => {
2596
+ switch (currentMode) {
2597
+ case "light":
2598
+ return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx6(Sun, {});
2599
+ case "dark":
2600
+ return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx6(Moon, {});
2601
+ default:
2602
+ return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx6(Monitor, {});
2603
+ }
2604
+ };
2605
+ return /* @__PURE__ */ jsx6(Tooltip, { title: `${currentMode.charAt(0).toUpperCase()}${currentMode.slice(1)} Mode`, children: /* @__PURE__ */ jsx6(
2606
+ IconButton,
2607
+ __spreadProps(__spreadValues({
2608
+ ref
2609
+ }, buttonProps), {
2610
+ "aria-label": resolvedAriaLabel,
2611
+ onClick: (event) => {
2612
+ setMode(nextMode(currentMode));
2613
+ onClick == null ? void 0 : onClick(event);
2614
+ },
2615
+ children: /* @__PURE__ */ jsx6(ColorSchemeIcon, {})
2616
+ })
2617
+ ) });
2618
+ }
2619
+ );
2554
2620
  var ColorSchemeToggle_default = ColorSchemeToggle;
2555
2621
 
2556
2622
  // src/components/ComplexSelect/ComplexSelect.tsx
2557
- import { Children, isValidElement } from "react";
2623
+ import { Children, isValidElement, useId as useId2 } from "react";
2558
2624
  import MuiSelect, { selectClasses } from "@mui/material/Select";
2559
2625
  import MuiFormControl from "@mui/material/FormControl";
2560
2626
  import MuiInputLabel from "@mui/material/InputLabel";
2561
2627
  import MuiTypography from "@mui/material/Typography";
2562
2628
  import { styled as styled7 } from "@mui/material/styles";
2629
+ import { visuallyHidden } from "@mui/utils";
2563
2630
 
2564
2631
  // src/components/ComplexSelect/ComplexSelectListHeader.tsx
2565
2632
  import MuiListSubheader from "@mui/material/ListSubheader";
@@ -2755,6 +2822,7 @@ var StyledInputLabel = styled7(MuiInputLabel, {
2755
2822
  });
2756
2823
  function ComplexSelect(_a) {
2757
2824
  var _b = _a, { children, sx, label, labelId, labelAnchor = "inside" } = _b, props = __objRest(_b, ["children", "sx", "label", "labelId", "labelAnchor"]);
2825
+ const autoLabelId = useId2();
2758
2826
  const injectLabelIntoContent = (content) => {
2759
2827
  if (!label || labelAnchor !== "inside") return content;
2760
2828
  const processChildren = (node) => {
@@ -2827,9 +2895,9 @@ function ComplexSelect(_a) {
2827
2895
  })
2828
2896
  );
2829
2897
  if (label) {
2830
- const generatedLabelId = labelId || `complex-select-label-${Math.random().toString(36).substr(2, 9)}`;
2898
+ const generatedLabelId = labelId || autoLabelId;
2831
2899
  return /* @__PURE__ */ jsxs3(StyledFormControl, { fullWidth: props.fullWidth, children: [
2832
- labelAnchor !== "inside" && /* @__PURE__ */ jsx13(
2900
+ labelAnchor === "inside" ? /* @__PURE__ */ jsx13(StyledInputLabel, { id: generatedLabelId, labelAnchor, sx: visuallyHidden, children: label }) : /* @__PURE__ */ jsx13(
2833
2901
  StyledInputLabel,
2834
2902
  {
2835
2903
  id: generatedLabelId,
@@ -2911,7 +2979,7 @@ PageContent.displayName = "PageContent";
2911
2979
  var PageContent_default = PageContent;
2912
2980
 
2913
2981
  // src/components/PageTitle/PageTitle.tsx
2914
- import React4 from "react";
2982
+ import React5 from "react";
2915
2983
  import { styled as styled15 } from "@mui/material/styles";
2916
2984
 
2917
2985
  // src/components/PageTitle/PageTitleHeader.tsx
@@ -3026,7 +3094,7 @@ PageTitleActions.displayName = "PageTitle.Actions";
3026
3094
  var PageTitleActions_default = PageTitleActions;
3027
3095
 
3028
3096
  // src/components/PageTitle/PageTitleBackButton.tsx
3029
- import React3 from "react";
3097
+ import React4 from "react";
3030
3098
  import { styled as styled14 } from "@mui/material/styles";
3031
3099
  import Button from "@mui/material/Button";
3032
3100
  import Typography4 from "@mui/material/Typography";
@@ -3056,13 +3124,13 @@ var PageTitleBackButton = (_a) => {
3056
3124
  }
3057
3125
  }, props), {
3058
3126
  children: [
3059
- /* @__PURE__ */ jsx20(ArrowLeft, { size: 20 }),
3127
+ /* @__PURE__ */ jsx20(ArrowLeft, { size: 20, "aria-hidden": "true" }),
3060
3128
  /* @__PURE__ */ jsx20(Typography4, { variant: "body2", children })
3061
3129
  ]
3062
3130
  })
3063
3131
  );
3064
- if (React3.isValidElement(Component)) {
3065
- return /* @__PURE__ */ jsx20(PageTitleBackButtonRoot, { children: React3.cloneElement(
3132
+ if (React4.isValidElement(Component)) {
3133
+ return /* @__PURE__ */ jsx20(PageTitleBackButtonRoot, { children: React4.cloneElement(
3066
3134
  Component,
3067
3135
  { style: { textDecoration: "none" } },
3068
3136
  button
@@ -3132,20 +3200,20 @@ var PageTitleColumnRight = styled15("div", {
3132
3200
  })();
3133
3201
  var PageTitle = (_a) => {
3134
3202
  var _b = _a, { children, sx } = _b, props = __objRest(_b, ["children", "sx"]);
3135
- const childrenArray = React4.Children.toArray(children);
3203
+ const childrenArray = React5.Children.toArray(children);
3136
3204
  const avatar = childrenArray.find(
3137
- (child) => React4.isValidElement(child) && child.type === PageTitleAvatar_default
3205
+ (child) => React5.isValidElement(child) && child.type === PageTitleAvatar_default
3138
3206
  );
3139
3207
  const actions = childrenArray.find(
3140
- (child) => React4.isValidElement(child) && child.type === PageTitleActions_default
3208
+ (child) => React5.isValidElement(child) && child.type === PageTitleActions_default
3141
3209
  );
3142
3210
  let backButtonElement = null;
3143
3211
  childrenArray.forEach((child) => {
3144
- if (React4.isValidElement(child)) {
3212
+ if (React5.isValidElement(child)) {
3145
3213
  if (child.type === PageTitleBackButton_default) {
3146
3214
  backButtonElement = child;
3147
3215
  }
3148
- if (child.props && typeof child.props === "object" && "children" in child.props && React4.isValidElement(child.props.children)) {
3216
+ if (child.props && typeof child.props === "object" && "children" in child.props && React5.isValidElement(child.props.children)) {
3149
3217
  if (child.props.children.type === PageTitleBackButton_default) {
3150
3218
  backButtonElement = child;
3151
3219
  }
@@ -3154,15 +3222,15 @@ var PageTitle = (_a) => {
3154
3222
  });
3155
3223
  const otherChildren = childrenArray.filter(
3156
3224
  (child) => {
3157
- if (!React4.isValidElement(child)) {
3225
+ if (!React5.isValidElement(child)) {
3158
3226
  return true;
3159
3227
  }
3160
3228
  if (child.type === PageTitleAvatar_default || child.type === PageTitleActions_default || child.type === PageTitleBackButton_default) {
3161
3229
  return false;
3162
3230
  }
3163
- if (child.props && typeof child.props === "object" && "children" in child.props && React4.isValidElement(child.props.children)) {
3231
+ if (child.props && typeof child.props === "object" && "children" in child.props && React5.isValidElement(child.props.children)) {
3164
3232
  const childrenProp = child.props.children;
3165
- if (React4.isValidElement(childrenProp) && childrenProp.type === PageTitleBackButton_default) {
3233
+ if (React5.isValidElement(childrenProp) && childrenProp.type === PageTitleBackButton_default) {
3166
3234
  return false;
3167
3235
  }
3168
3236
  }
@@ -3206,7 +3274,14 @@ var StatCard = (_a) => {
3206
3274
  "iconColor"
3207
3275
  ]);
3208
3276
  return /* @__PURE__ */ jsx22(Card, __spreadProps(__spreadValues({ variant: "outlined" }, props), { children: /* @__PURE__ */ jsx22(CardContent, { children: /* @__PURE__ */ jsxs7(Box6, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
3209
- icon && /* @__PURE__ */ jsx22(Box6, { sx: { color: (theme) => theme.palette[iconColor].main, display: "flex", alignItems: "center" }, children: icon }),
3277
+ icon && /* @__PURE__ */ jsx22(
3278
+ Box6,
3279
+ {
3280
+ "aria-hidden": "true",
3281
+ sx: { color: (theme) => theme.palette[iconColor].main, display: "flex", alignItems: "center" },
3282
+ children: icon
3283
+ }
3284
+ ),
3210
3285
  /* @__PURE__ */ jsxs7(Box6, { children: [
3211
3286
  /* @__PURE__ */ jsx22(Typography5, { variant: "h5", children: value }),
3212
3287
  /* @__PURE__ */ jsx22(Typography5, { variant: "body2", color: "text.secondary", children: label })
@@ -3217,7 +3292,9 @@ StatCard.displayName = "StatCard";
3217
3292
  var StatCard_default = StatCard;
3218
3293
 
3219
3294
  // src/components/ThemeSwitcher/ThemeSelect.tsx
3295
+ import { useId as useId3 } from "react";
3220
3296
  import { Select, MenuItem as MenuItem2, FormControl, InputLabel } from "@mui/material";
3297
+ import { visuallyHidden as visuallyHidden2 } from "@mui/utils";
3221
3298
  import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
3222
3299
  function ThemeSelect({
3223
3300
  size = "small",
@@ -3227,18 +3304,19 @@ function ThemeSelect({
3227
3304
  sx
3228
3305
  }) {
3229
3306
  const { currentTheme, themes, setTheme } = useThemeSwitcher();
3307
+ const labelId = useId3();
3230
3308
  const handleChange = (event) => {
3231
3309
  setTheme(event.target.value);
3232
3310
  };
3233
3311
  return /* @__PURE__ */ jsxs8(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
3234
- showLabel && /* @__PURE__ */ jsx23(InputLabel, { id: "theme-select-label", children: label }),
3312
+ /* @__PURE__ */ jsx23(InputLabel, { id: labelId, sx: showLabel ? void 0 : visuallyHidden2, children: label }),
3235
3313
  /* @__PURE__ */ jsx23(
3236
3314
  Select,
3237
3315
  {
3238
- labelId: showLabel ? "theme-select-label" : void 0,
3316
+ labelId,
3239
3317
  value: currentTheme,
3240
3318
  onChange: handleChange,
3241
- label: showLabel ? label : void 0,
3319
+ label,
3242
3320
  children: themes.map((themeOption) => /* @__PURE__ */ jsx23(MenuItem2, { value: themeOption.key, children: themeOption.label }, themeOption.key))
3243
3321
  }
3244
3322
  )
@@ -3272,7 +3350,7 @@ function ThemeSwitcher({
3272
3350
  }
3273
3351
 
3274
3352
  // src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
3275
- import * as React5 from "react";
3353
+ import * as React7 from "react";
3276
3354
  import TextField2 from "@mui/material/TextField";
3277
3355
  import InputAdornment2 from "@mui/material/InputAdornment";
3278
3356
  import Box7 from "@mui/material/Box";
@@ -3289,31 +3367,46 @@ import MenuItem3 from "@mui/material/MenuItem";
3289
3367
  import { ListFilter } from "@wso2/oxygen-ui-icons-react";
3290
3368
 
3291
3369
  // src/components/SearchBar/SearchBarBase.tsx
3370
+ import * as React6 from "react";
3292
3371
  import TextField from "@mui/material/TextField";
3293
3372
  import InputAdornment from "@mui/material/InputAdornment";
3294
3373
  import { Search } from "@wso2/oxygen-ui-icons-react";
3295
3374
  import { jsx as jsx25 } from "react/jsx-runtime";
3296
- function SearchBarBase(_a) {
3375
+ var hasMeaningfulAriaValue = (value) => typeof value === "string" && value.trim().length > 0;
3376
+ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
3297
3377
  var _b = _a, {
3298
3378
  placeholder = "Search",
3299
3379
  endAdornment,
3300
3380
  slotProps,
3301
- sx
3381
+ sx,
3382
+ label,
3383
+ "aria-label": ariaLabel,
3384
+ "aria-labelledby": ariaLabelledBy
3302
3385
  } = _b, props = __objRest(_b, [
3303
3386
  "placeholder",
3304
3387
  "endAdornment",
3305
3388
  "slotProps",
3306
- "sx"
3389
+ "sx",
3390
+ "label",
3391
+ "aria-label",
3392
+ "aria-labelledby"
3307
3393
  ]);
3394
+ const htmlInputSlotProps = slotProps == null ? void 0 : slotProps.htmlInput;
3395
+ const hasMeaningfulLabel = typeof label === "string" ? hasMeaningfulAriaValue(label) : Boolean(label);
3396
+ const hasAccessibleName = hasMeaningfulLabel || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-label"]) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-labelledby"]);
3397
+ const shouldInjectPlaceholderLabel = !hasAccessibleName && hasMeaningfulAriaValue(placeholder);
3398
+ const htmlInput = shouldInjectPlaceholderLabel || (slotProps == null ? void 0 : slotProps.htmlInput) || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) ? __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, slotProps == null ? void 0 : slotProps.htmlInput), hasMeaningfulAriaValue(ariaLabelledBy) ? { "aria-labelledby": ariaLabelledBy } : null), hasMeaningfulAriaValue(ariaLabel) ? { "aria-label": ariaLabel } : null), shouldInjectPlaceholderLabel ? { "aria-label": placeholder } : null) : void 0;
3308
3399
  return /* @__PURE__ */ jsx25(
3309
3400
  TextField,
3310
3401
  __spreadProps(__spreadValues({}, props), {
3402
+ ref,
3403
+ label,
3311
3404
  placeholder,
3312
3405
  variant: "outlined",
3313
3406
  size: "small",
3314
- slotProps: __spreadProps(__spreadValues({}, slotProps), {
3407
+ slotProps: __spreadProps(__spreadValues(__spreadValues({}, slotProps), htmlInput ? { htmlInput } : null), {
3315
3408
  input: __spreadProps(__spreadValues({}, slotProps == null ? void 0 : slotProps.input), {
3316
- startAdornment: /* @__PURE__ */ jsx25(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx25(Search, { fontSize: "small" }) }),
3409
+ startAdornment: /* @__PURE__ */ jsx25(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx25(Search, { fontSize: "small", "aria-hidden": "true" }) }),
3317
3410
  endAdornment
3318
3411
  })
3319
3412
  }),
@@ -3327,7 +3420,7 @@ function SearchBarBase(_a) {
3327
3420
  }, sx)
3328
3421
  })
3329
3422
  );
3330
- }
3423
+ });
3331
3424
 
3332
3425
  // src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
3333
3426
  import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
@@ -3357,7 +3450,7 @@ function SearchBarWithAdvancedFilter(_a) {
3357
3450
  "popoverWidth",
3358
3451
  "sx"
3359
3452
  ]);
3360
- const [anchorEl, setAnchorEl] = React5.useState(null);
3453
+ const [anchorEl, setAnchorEl] = React7.useState(null);
3361
3454
  const open = Boolean(anchorEl);
3362
3455
  const handleInputChange = (e) => {
3363
3456
  onChange(e.target.value);
@@ -3493,34 +3586,32 @@ function SearchBarWithAdvancedFilter(_a) {
3493
3586
  var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
3494
3587
 
3495
3588
  // src/components/SearchBar/SearchBar.tsx
3589
+ import * as React8 from "react";
3496
3590
  import { jsx as jsx27 } from "react/jsx-runtime";
3497
- function SearchBar(_a) {
3498
- var _b = _a, {
3499
- placeholder = "Search"
3500
- } = _b, props = __objRest(_b, [
3501
- "placeholder"
3502
- ]);
3591
+ var SearchBar = React8.forwardRef(function SearchBar2(_a, ref) {
3592
+ var _b = _a, { placeholder = "Search" } = _b, props = __objRest(_b, ["placeholder"]);
3503
3593
  return /* @__PURE__ */ jsx27(
3504
3594
  SearchBarBase,
3505
3595
  __spreadProps(__spreadValues({}, props), {
3596
+ ref,
3506
3597
  placeholder
3507
3598
  })
3508
3599
  );
3509
- }
3600
+ });
3510
3601
  var SearchBar_default = SearchBar;
3511
3602
 
3512
3603
  // src/components/Header/Header.tsx
3513
- import * as React9 from "react";
3604
+ import * as React12 from "react";
3514
3605
  import AppBar from "@mui/material/AppBar";
3515
3606
  import Toolbar from "@mui/material/Toolbar";
3516
3607
  import Box12 from "@mui/material/Box";
3517
3608
  import { styled as styled22 } from "@mui/material/styles";
3518
3609
 
3519
3610
  // src/components/Header/context.ts
3520
- import * as React6 from "react";
3521
- var HeaderContext = React6.createContext(null);
3611
+ import * as React9 from "react";
3612
+ var HeaderContext = React9.createContext(null);
3522
3613
  var useHeader = () => {
3523
- const context = React6.useContext(HeaderContext);
3614
+ const context = React9.useContext(HeaderContext);
3524
3615
  if (!context) {
3525
3616
  throw new Error("Header compound components must be used within Header");
3526
3617
  }
@@ -3528,16 +3619,16 @@ var useHeader = () => {
3528
3619
  };
3529
3620
 
3530
3621
  // src/components/Header/HeaderToggle.tsx
3531
- import * as React8 from "react";
3622
+ import * as React11 from "react";
3532
3623
  import IconButton3 from "@mui/material/IconButton";
3533
3624
  import Tooltip2 from "@mui/material/Tooltip";
3534
3625
  import { styled as styled16 } from "@mui/material/styles";
3535
- import { Menu, PanelLeftClose } from "@wso2/oxygen-ui-icons-react";
3626
+ import { Menu as Menu2, ChevronLeft } from "@wso2/oxygen-ui-icons-react";
3536
3627
 
3537
3628
  // src/components/AppShell/context.tsx
3538
- import * as React7 from "react";
3629
+ import * as React10 from "react";
3539
3630
  import { jsx as jsx28 } from "react/jsx-runtime";
3540
- var AppShellContext = React7.createContext(void 0);
3631
+ var AppShellContext = React10.createContext(void 0);
3541
3632
  var AppShellProvider = ({
3542
3633
  children,
3543
3634
  value
@@ -3564,15 +3655,26 @@ var HeaderToggle = ({
3564
3655
  sx
3565
3656
  }) => {
3566
3657
  var _a, _b;
3567
- const appShellContext = React8.useContext(AppShellContext);
3658
+ const appShellContext = React11.useContext(AppShellContext);
3568
3659
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
3569
3660
  const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
3570
3661
  });
3571
- return /* @__PURE__ */ jsx29(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx29(HeaderToggleRoot, { onClick: onToggle, size: "small", sx, children: collapsed ? expandIcon || /* @__PURE__ */ jsx29(Menu, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx29(PanelLeftClose, { size: 20 }) }) });
3662
+ return /* @__PURE__ */ jsx29(Tooltip2, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx29(
3663
+ HeaderToggleRoot,
3664
+ {
3665
+ onClick: onToggle,
3666
+ size: "small",
3667
+ sx,
3668
+ "aria-label": collapsed ? expandLabel : collapseLabel,
3669
+ "aria-expanded": !collapsed,
3670
+ children: /* @__PURE__ */ jsx29("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: collapsed ? expandIcon || /* @__PURE__ */ jsx29(Menu2, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx29(ChevronLeft, { size: 20 }) })
3671
+ }
3672
+ ) });
3572
3673
  };
3573
3674
 
3574
3675
  // src/components/Header/HeaderBrand.tsx
3575
3676
  import Box9 from "@mui/material/Box";
3677
+ import ButtonBase from "@mui/material/ButtonBase";
3576
3678
  import { styled as styled19 } from "@mui/material/styles";
3577
3679
 
3578
3680
  // src/components/Header/HeaderBrandLogo.tsx
@@ -3631,12 +3733,25 @@ var HeaderBrandRoot = styled19(Box9, {
3631
3733
  marginLeft: theme.spacing(1),
3632
3734
  cursor: clickable ? "pointer" : "default"
3633
3735
  }));
3736
+ var HeaderBrandButtonRoot = styled19(ButtonBase, {
3737
+ name: "MuiHeader",
3738
+ slot: "BrandButton"
3739
+ })(({ theme }) => ({
3740
+ display: "flex",
3741
+ alignItems: "center",
3742
+ marginLeft: theme.spacing(1),
3743
+ borderRadius: theme.shape.borderRadius
3744
+ }));
3634
3745
  var HeaderBrand = ({
3635
3746
  onClick,
3747
+ "aria-label": ariaLabel,
3636
3748
  children,
3637
3749
  sx
3638
3750
  }) => {
3639
- return /* @__PURE__ */ jsx32(HeaderBrandRoot, { onClick, clickable: !!onClick, sx, children });
3751
+ if (onClick) {
3752
+ return /* @__PURE__ */ jsx32(HeaderBrandButtonRoot, { onClick, "aria-label": ariaLabel, sx, children });
3753
+ }
3754
+ return /* @__PURE__ */ jsx32(HeaderBrandRoot, { clickable: false, sx, children });
3640
3755
  };
3641
3756
  HeaderBrand.displayName = "HeaderBrand";
3642
3757
 
@@ -3731,7 +3846,7 @@ var Header = ({
3731
3846
  minimal = false,
3732
3847
  sx
3733
3848
  }) => {
3734
- const contextValue = React9.useMemo(() => ({ minimal }), [minimal]);
3849
+ const contextValue = React12.useMemo(() => ({ minimal }), [minimal]);
3735
3850
  return /* @__PURE__ */ jsx35(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx35(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx35(HeaderToolbar, { children }) }) });
3736
3851
  };
3737
3852
  var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx35(HeaderSpacerStyled, { sx });
@@ -3745,15 +3860,15 @@ Header.Spacer = HeaderSpacer;
3745
3860
  Header.displayName = "Header";
3746
3861
 
3747
3862
  // src/components/Sidebar/Sidebar.tsx
3748
- import * as React17 from "react";
3863
+ import * as React20 from "react";
3749
3864
  import Box18 from "@mui/material/Box";
3750
3865
  import { styled as styled35 } from "@mui/material/styles";
3751
3866
 
3752
3867
  // src/components/Sidebar/context.ts
3753
- import * as React10 from "react";
3754
- var SidebarContext = React10.createContext(null);
3868
+ import * as React13 from "react";
3869
+ var SidebarContext = React13.createContext(null);
3755
3870
  var useSidebar = () => {
3756
- const context = React10.useContext(SidebarContext);
3871
+ const context = React13.useContext(SidebarContext);
3757
3872
  if (!context) {
3758
3873
  throw new Error("Sidebar compound components must be used within Sidebar");
3759
3874
  }
@@ -3761,7 +3876,7 @@ var useSidebar = () => {
3761
3876
  };
3762
3877
 
3763
3878
  // src/components/Sidebar/SidebarNav.tsx
3764
- import * as React11 from "react";
3879
+ import * as React14 from "react";
3765
3880
  import Box13 from "@mui/material/Box";
3766
3881
  import Divider3 from "@mui/material/Divider";
3767
3882
  import { styled as styled23 } from "@mui/material/styles";
@@ -3801,15 +3916,15 @@ var SidebarNav = ({
3801
3916
  sx
3802
3917
  }) => {
3803
3918
  const { collapsed } = useSidebar();
3804
- const childArray = React11.Children.toArray(children);
3805
- return /* @__PURE__ */ jsx36(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs11(React11.Fragment, { children: [
3919
+ const childArray = React14.Children.toArray(children);
3920
+ return /* @__PURE__ */ jsx36(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs11(React14.Fragment, { children: [
3806
3921
  index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx36(SidebarNavDivider, {}),
3807
3922
  child
3808
3923
  ] }, index)) });
3809
3924
  };
3810
3925
 
3811
3926
  // src/components/Sidebar/SidebarCategory.tsx
3812
- import * as React12 from "react";
3927
+ import * as React15 from "react";
3813
3928
  import Box14 from "@mui/material/Box";
3814
3929
  import List from "@mui/material/List";
3815
3930
  import { styled as styled25 } from "@mui/material/styles";
@@ -3858,9 +3973,9 @@ var SidebarCategoryRoot = styled25(Box14, {
3858
3973
  var separateChildren = (children) => {
3859
3974
  let labelChild = null;
3860
3975
  const otherChildren = [];
3861
- React12.Children.forEach(children, (child) => {
3976
+ React15.Children.forEach(children, (child) => {
3862
3977
  var _a;
3863
- if (React12.isValidElement(child)) {
3978
+ if (React15.isValidElement(child)) {
3864
3979
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
3865
3980
  if (displayName === "SidebarCategoryLabel") {
3866
3981
  labelChild = child;
@@ -3886,13 +4001,15 @@ var SidebarCategory = ({
3886
4001
  SidebarCategory.displayName = "SidebarCategory";
3887
4002
 
3888
4003
  // src/components/Sidebar/SidebarItem.tsx
3889
- import * as React15 from "react";
4004
+ import * as React18 from "react";
3890
4005
  import Box15 from "@mui/material/Box";
3891
4006
  import List2 from "@mui/material/List";
3892
4007
  import ListItem from "@mui/material/ListItem";
3893
4008
  import ListItemButton from "@mui/material/ListItemButton";
3894
4009
  import ListItemIcon2 from "@mui/material/ListItemIcon";
3895
4010
  import ListItemText2 from "@mui/material/ListItemText";
4011
+ import MenuItem4 from "@mui/material/MenuItem";
4012
+ import MenuList from "@mui/material/MenuList";
3896
4013
  import Collapse from "@mui/material/Collapse";
3897
4014
  import Tooltip3 from "@mui/material/Tooltip";
3898
4015
  import Popover2 from "@mui/material/Popover";
@@ -3900,11 +4017,11 @@ import { styled as styled29 } from "@mui/material/styles";
3900
4017
  import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
3901
4018
 
3902
4019
  // src/components/Sidebar/SidebarItemContext.tsx
3903
- import * as React13 from "react";
4020
+ import * as React16 from "react";
3904
4021
  import { jsx as jsx39 } from "react/jsx-runtime";
3905
- var SidebarItemContext = React13.createContext(null);
4022
+ var SidebarItemContext = React16.createContext(null);
3906
4023
  var useSidebarItemContext = () => {
3907
- const context = React13.useContext(SidebarItemContext);
4024
+ const context = React16.useContext(SidebarItemContext);
3908
4025
  if (!context) {
3909
4026
  throw new Error(
3910
4027
  "useSidebarItemContext must be used within a SidebarItem component"
@@ -3917,7 +4034,7 @@ var SidebarItemProvider = ({ value, children }) => {
3917
4034
  };
3918
4035
 
3919
4036
  // src/components/Sidebar/SidebarItemIcon.tsx
3920
- import * as React14 from "react";
4037
+ import * as React17 from "react";
3921
4038
  import ListItemIcon from "@mui/material/ListItemIcon";
3922
4039
  import { styled as styled26 } from "@mui/material/styles";
3923
4040
  import { jsx as jsx40 } from "react/jsx-runtime";
@@ -3938,7 +4055,7 @@ var SidebarItemIcon = ({
3938
4055
  var _a;
3939
4056
  const { collapsed } = useSidebar();
3940
4057
  const { isActive } = useSidebarItemContext();
3941
- const iconWithSize = React14.isValidElement(children) ? React14.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
4058
+ const iconWithSize = React17.isValidElement(children) ? React17.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
3942
4059
  size: (_a = children.props.size) != null ? _a : 20
3943
4060
  })) : children;
3944
4061
  return /* @__PURE__ */ jsx40(
@@ -4058,14 +4175,14 @@ var SidebarItemPopover = styled29(Popover2, {
4058
4175
  })({
4059
4176
  pointerEvents: "none"
4060
4177
  });
4061
- var SidebarItemPopoverList = styled29(List2, {
4178
+ var SidebarItemPopoverList = styled29(MenuList, {
4062
4179
  name: "MuiSidebar",
4063
4180
  slot: "ItemPopoverList"
4064
4181
  })(({ theme }) => ({
4065
4182
  padding: theme.spacing(0.5),
4066
4183
  pointerEvents: "auto"
4067
4184
  }));
4068
- var SidebarItemPopoverButton = styled29(ListItemButton, {
4185
+ var SidebarItemPopoverButton = styled29(MenuItem4, {
4069
4186
  name: "MuiSidebar",
4070
4187
  slot: "ItemPopoverButton"
4071
4188
  })(({ theme }) => ({
@@ -4089,9 +4206,9 @@ var CHILD_DISPLAY_NAMES = [
4089
4206
  var separateChildren2 = (children) => {
4090
4207
  const composableChildren = [];
4091
4208
  const nestedItems = [];
4092
- React15.Children.toArray(children).forEach((child) => {
4209
+ React18.Children.toArray(children).forEach((child) => {
4093
4210
  var _a;
4094
- if (React15.isValidElement(child)) {
4211
+ if (React18.isValidElement(child)) {
4095
4212
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4096
4213
  if (displayName && CHILD_DISPLAY_NAMES.includes(displayName)) {
4097
4214
  composableChildren.push(child);
@@ -4106,9 +4223,9 @@ var separateChildren2 = (children) => {
4106
4223
  };
4107
4224
  var getTooltipLabel = (children) => {
4108
4225
  let tooltipLabel = "";
4109
- React15.Children.forEach(children, (child) => {
4226
+ React18.Children.forEach(children, (child) => {
4110
4227
  var _a;
4111
- if (React15.isValidElement(child)) {
4228
+ if (React18.isValidElement(child)) {
4112
4229
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4113
4230
  const props = child.props;
4114
4231
  if (displayName === "SidebarItemLabel" && props.children) {
@@ -4121,9 +4238,9 @@ var getTooltipLabel = (children) => {
4121
4238
  var extractItemContent = (itemChildren) => {
4122
4239
  let icon = null;
4123
4240
  let label = "";
4124
- React15.Children.forEach(itemChildren, (child) => {
4241
+ React18.Children.forEach(itemChildren, (child) => {
4125
4242
  var _a;
4126
- if (React15.isValidElement(child)) {
4243
+ if (React18.isValidElement(child)) {
4127
4244
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4128
4245
  const props = child.props;
4129
4246
  if (displayName === "SidebarItemIcon") {
@@ -4147,17 +4264,37 @@ var SidebarItem = ({
4147
4264
  const hasNestedItems = nestedItems.length > 0;
4148
4265
  const isActive = activeItem === id;
4149
4266
  const isExpanded = expandedMenus[id] || false;
4150
- const hasActiveChild = React15.useMemo(() => {
4267
+ const hasActiveChild = React18.useMemo(() => {
4151
4268
  if (!hasNestedItems || !activeItem) return false;
4152
4269
  return nestedItems.some((child) => {
4153
- if (React15.isValidElement(child)) {
4270
+ if (React18.isValidElement(child)) {
4154
4271
  return child.props.id === activeItem;
4155
4272
  }
4156
4273
  return false;
4157
4274
  });
4158
4275
  }, [hasNestedItems, nestedItems, activeItem]);
4159
- const [popoverAnchor, setPopoverAnchor] = React15.useState(null);
4276
+ const [popoverAnchor, setPopoverAnchor] = React18.useState(null);
4277
+ const [popoverOpenedByClick, setPopoverOpenedByClick] = React18.useState(false);
4278
+ const closeTimeoutRef = React18.useRef(null);
4160
4279
  const popoverOpen = Boolean(popoverAnchor);
4280
+ const popoverId = React18.useId();
4281
+ const clearCloseTimeout = React18.useCallback(() => {
4282
+ if (closeTimeoutRef.current != null) {
4283
+ clearTimeout(closeTimeoutRef.current);
4284
+ closeTimeoutRef.current = null;
4285
+ }
4286
+ }, []);
4287
+ const closePopover = React18.useCallback(() => {
4288
+ clearCloseTimeout();
4289
+ setPopoverAnchor(null);
4290
+ setPopoverOpenedByClick(false);
4291
+ }, [clearCloseTimeout]);
4292
+ React18.useEffect(() => () => clearCloseTimeout(), [clearCloseTimeout]);
4293
+ React18.useEffect(() => {
4294
+ if (!collapsed) {
4295
+ closePopover();
4296
+ }
4297
+ }, [collapsed, closePopover]);
4161
4298
  const contextValue = {
4162
4299
  id,
4163
4300
  isActive,
@@ -4165,8 +4302,17 @@ var SidebarItem = ({
4165
4302
  hasChildren: hasNestedItems,
4166
4303
  depth
4167
4304
  };
4168
- const handleClick = () => {
4169
- if (hasNestedItems) {
4305
+ const handleClick = (event) => {
4306
+ if (collapsed && hasNestedItems) {
4307
+ const nextAnchor = popoverAnchor ? null : event.currentTarget;
4308
+ clearCloseTimeout();
4309
+ setPopoverAnchor(nextAnchor);
4310
+ setPopoverOpenedByClick(Boolean(nextAnchor));
4311
+ const shouldBeExpanded = Boolean(nextAnchor);
4312
+ if (isExpanded !== shouldBeExpanded) {
4313
+ onToggleExpand == null ? void 0 : onToggleExpand(id);
4314
+ }
4315
+ } else if (hasNestedItems) {
4170
4316
  onToggleExpand == null ? void 0 : onToggleExpand(id);
4171
4317
  } else {
4172
4318
  onSelect == null ? void 0 : onSelect(id);
@@ -4174,11 +4320,22 @@ var SidebarItem = ({
4174
4320
  };
4175
4321
  const handleMouseEnter = (event) => {
4176
4322
  if (collapsed && hasNestedItems) {
4323
+ clearCloseTimeout();
4177
4324
  setPopoverAnchor(event.currentTarget);
4325
+ setPopoverOpenedByClick(false);
4326
+ if (!isExpanded) {
4327
+ onToggleExpand == null ? void 0 : onToggleExpand(id);
4328
+ }
4178
4329
  }
4179
4330
  };
4180
4331
  const handleMouseLeave = () => {
4181
- setPopoverAnchor(null);
4332
+ if (popoverOpenedByClick) {
4333
+ return;
4334
+ }
4335
+ clearCloseTimeout();
4336
+ closeTimeoutRef.current = setTimeout(() => {
4337
+ closePopover();
4338
+ }, 100);
4182
4339
  };
4183
4340
  const tooltipLabel = getTooltipLabel(children);
4184
4341
  const ownerState = { collapsed, depth };
@@ -4190,18 +4347,22 @@ var SidebarItem = ({
4190
4347
  onClick: handleClick,
4191
4348
  ownerState,
4192
4349
  sx,
4350
+ "aria-label": collapsed && tooltipLabel ? tooltipLabel : void 0,
4351
+ "aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
4352
+ "aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
4353
+ "aria-controls": popoverOpen ? popoverId : void 0,
4193
4354
  children: /* @__PURE__ */ jsxs13(SidebarItemProvider, { value: contextValue, children: [
4194
4355
  composableChildren,
4195
- !collapsed && hasNestedItems && /* @__PURE__ */ jsx43(SidebarItemChevron, { children: isExpanded ? /* @__PURE__ */ jsx43(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx43(ChevronDown2, { size: 16 }) }),
4356
+ !collapsed && hasNestedItems && /* @__PURE__ */ jsx43(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx43(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx43(ChevronDown2, { size: 16 }) }),
4196
4357
  !collapsed && !hasNestedItems && /* @__PURE__ */ jsx43(Box15, { sx: { ml: "auto", width: 16, pl: 1 } })
4197
4358
  ] })
4198
4359
  }
4199
4360
  );
4200
- const wrappedContent = link ? /* @__PURE__ */ jsx43(Fragment5, { children: React15.cloneElement(link, {}, buttonContent) }) : buttonContent;
4361
+ const wrappedContent = link ? /* @__PURE__ */ jsx43(Fragment5, { children: React18.cloneElement(link, {}, buttonContent) }) : buttonContent;
4201
4362
  const collapsedWithNested = collapsed && hasNestedItems;
4202
4363
  const handlePopoverItemClick = (itemId) => {
4203
4364
  onSelect == null ? void 0 : onSelect(itemId);
4204
- setPopoverAnchor(null);
4365
+ closePopover();
4205
4366
  };
4206
4367
  return /* @__PURE__ */ jsxs13(Fragment5, { children: [
4207
4368
  /* @__PURE__ */ jsx43(
@@ -4223,39 +4384,49 @@ var SidebarItem = ({
4223
4384
  anchorEl: popoverAnchor,
4224
4385
  anchorOrigin: { vertical: "center", horizontal: "right" },
4225
4386
  transformOrigin: { vertical: "center", horizontal: "left" },
4226
- onClose: handleMouseLeave,
4227
- disableRestoreFocus: true,
4387
+ onClose: closePopover,
4388
+ disableAutoFocus: !popoverOpenedByClick,
4389
+ disableEnforceFocus: !popoverOpenedByClick,
4390
+ disableRestoreFocus: !popoverOpenedByClick,
4228
4391
  slotProps: {
4229
4392
  paper: {
4230
- onMouseEnter: () => setPopoverAnchor(popoverAnchor),
4393
+ onMouseEnter: clearCloseTimeout,
4231
4394
  onMouseLeave: handleMouseLeave
4232
4395
  }
4233
4396
  },
4234
- children: /* @__PURE__ */ jsx43(SidebarItemPopoverList, { disablePadding: true, children: nestedItems.map((child, index) => {
4235
- if (React15.isValidElement(child)) {
4236
- const childProps = child.props;
4237
- const { icon, label } = extractItemContent(childProps.children);
4238
- const isItemActive = activeItem === childProps.id;
4239
- return /* @__PURE__ */ jsxs13(
4240
- SidebarItemPopoverButton,
4241
- {
4242
- selected: isItemActive,
4243
- onClick: () => handlePopoverItemClick(childProps.id),
4244
- children: [
4245
- icon && /* @__PURE__ */ jsx43(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
4246
- /* @__PURE__ */ jsx43(ListItemText2, { primary: label })
4247
- ]
4248
- },
4249
- childProps.id || index
4250
- );
4397
+ children: /* @__PURE__ */ jsx43(
4398
+ SidebarItemPopoverList,
4399
+ {
4400
+ id: popoverId,
4401
+ autoFocusItem: popoverOpen && popoverOpenedByClick,
4402
+ disablePadding: true,
4403
+ children: nestedItems.map((child, index) => {
4404
+ if (React18.isValidElement(child)) {
4405
+ const childProps = child.props;
4406
+ const { icon, label } = extractItemContent(childProps.children);
4407
+ const isItemActive = activeItem === childProps.id;
4408
+ return /* @__PURE__ */ jsxs13(
4409
+ SidebarItemPopoverButton,
4410
+ {
4411
+ selected: isItemActive,
4412
+ onClick: () => handlePopoverItemClick(childProps.id),
4413
+ children: [
4414
+ icon && /* @__PURE__ */ jsx43(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
4415
+ /* @__PURE__ */ jsx43(ListItemText2, { primary: label })
4416
+ ]
4417
+ },
4418
+ childProps.id || index
4419
+ );
4420
+ }
4421
+ return child;
4422
+ })
4251
4423
  }
4252
- return child;
4253
- }) })
4424
+ )
4254
4425
  }
4255
4426
  ),
4256
4427
  hasNestedItems && !collapsed && /* @__PURE__ */ jsx43(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx43(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
4257
- if (React15.isValidElement(child)) {
4258
- return React15.cloneElement(child, {
4428
+ if (React18.isValidElement(child)) {
4429
+ return React18.cloneElement(child, {
4259
4430
  key: child.key || index,
4260
4431
  depth: depth + 1
4261
4432
  });
@@ -4290,7 +4461,7 @@ var SidebarFooter = ({
4290
4461
  };
4291
4462
 
4292
4463
  // src/components/Sidebar/SidebarUser.tsx
4293
- import * as React16 from "react";
4464
+ import * as React19 from "react";
4294
4465
  import Box17 from "@mui/material/Box";
4295
4466
  import ListItemButton2 from "@mui/material/ListItemButton";
4296
4467
  import Tooltip4 from "@mui/material/Tooltip";
@@ -4415,9 +4586,9 @@ var SidebarUserTextContainer = styled34(Box17, {
4415
4586
  var separateChildren3 = (children) => {
4416
4587
  let avatarChild = null;
4417
4588
  const textChildren = [];
4418
- React16.Children.forEach(children, (child) => {
4589
+ React19.Children.forEach(children, (child) => {
4419
4590
  var _a;
4420
- if (React16.isValidElement(child)) {
4591
+ if (React19.isValidElement(child)) {
4421
4592
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4422
4593
  if (displayName === "SidebarUserAvatar") {
4423
4594
  avatarChild = child;
@@ -4430,9 +4601,9 @@ var separateChildren3 = (children) => {
4430
4601
  };
4431
4602
  var getTooltipText = (children) => {
4432
4603
  let tooltipText = "";
4433
- React16.Children.forEach(children, (child) => {
4604
+ React19.Children.forEach(children, (child) => {
4434
4605
  var _a;
4435
- if (React16.isValidElement(child)) {
4606
+ if (React19.isValidElement(child)) {
4436
4607
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4437
4608
  const props = child.props;
4438
4609
  if (displayName === "SidebarUserName" && props.children) {
@@ -4502,10 +4673,10 @@ var Sidebar = ({
4502
4673
  sx
4503
4674
  }) => {
4504
4675
  var _a, _b, _c;
4505
- const appShellContext = React17.useContext(AppShellContext);
4676
+ const appShellContext = React20.useContext(AppShellContext);
4506
4677
  const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
4507
4678
  const activeItem = activeItemProp != null ? activeItemProp : appShellContext == null ? void 0 : appShellContext.state.activeMenuItem;
4508
- const expandedMenus = React17.useMemo(
4679
+ const expandedMenus = React20.useMemo(
4509
4680
  () => {
4510
4681
  var _a2;
4511
4682
  return (_a2 = expandedMenusProp != null ? expandedMenusProp : appShellContext == null ? void 0 : appShellContext.state.expandedMenus) != null ? _a2 : {};
@@ -4516,7 +4687,7 @@ var Sidebar = ({
4516
4687
  const onToggleExpand = onToggleExpandProp != null ? onToggleExpandProp : appShellContext == null ? void 0 : appShellContext.actions.toggleMenu;
4517
4688
  const width = (_b = widthProp != null ? widthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarWidth) != null ? _b : SIDEBAR_WIDTH;
4518
4689
  const collapsedWidth = (_c = collapsedWidthProp != null ? collapsedWidthProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsedWidth) != null ? _c : COLLAPSED_SIDEBAR_WIDTH;
4519
- const contextValue = React17.useMemo(
4690
+ const contextValue = React20.useMemo(
4520
4691
  () => ({
4521
4692
  collapsed,
4522
4693
  activeItem,
@@ -4544,15 +4715,17 @@ Sidebar.UserEmail = SidebarUserEmail;
4544
4715
  Sidebar.displayName = "Sidebar";
4545
4716
 
4546
4717
  // src/components/NotificationPanel/NotificationPanel.tsx
4547
- import * as React23 from "react";
4718
+ import * as React26 from "react";
4719
+ import Box27 from "@mui/material/Box";
4548
4720
  import Drawer from "@mui/material/Drawer";
4549
4721
  import { styled as styled51 } from "@mui/material/styles";
4722
+ import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
4550
4723
 
4551
4724
  // src/components/NotificationPanel/context.ts
4552
- import * as React18 from "react";
4553
- var NotificationPanelContext = React18.createContext(null);
4725
+ import * as React21 from "react";
4726
+ var NotificationPanelContext = React21.createContext(null);
4554
4727
  var useNotificationPanel = () => {
4555
- const context = React18.useContext(NotificationPanelContext);
4728
+ const context = React21.useContext(NotificationPanelContext);
4556
4729
  if (!context) {
4557
4730
  throw new Error(
4558
4731
  "NotificationPanel compound components must be used within NotificationPanel"
@@ -4562,7 +4735,7 @@ var useNotificationPanel = () => {
4562
4735
  };
4563
4736
 
4564
4737
  // src/components/NotificationPanel/NotificationHeader.tsx
4565
- import * as React19 from "react";
4738
+ import * as React22 from "react";
4566
4739
  import Box19 from "@mui/material/Box";
4567
4740
  import { styled as styled36 } from "@mui/material/styles";
4568
4741
  import { jsx as jsx50, jsxs as jsxs16 } from "react/jsx-runtime";
@@ -4587,9 +4760,9 @@ var NotificationHeaderContent = styled36(Box19, {
4587
4760
  var separateChildren4 = (children) => {
4588
4761
  const leftChildren = [];
4589
4762
  let closeChild = null;
4590
- React19.Children.forEach(children, (child) => {
4763
+ React22.Children.forEach(children, (child) => {
4591
4764
  var _a;
4592
- if (React19.isValidElement(child)) {
4765
+ if (React22.isValidElement(child)) {
4593
4766
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4594
4767
  if (displayName === "NotificationHeaderClose") {
4595
4768
  closeChild = child;
@@ -4696,7 +4869,16 @@ var NotificationHeaderClose = ({
4696
4869
  onClose == null ? void 0 : onClose();
4697
4870
  }
4698
4871
  };
4699
- return /* @__PURE__ */ jsx54(NotificationHeaderCloseRoot, { onClick: handleClick, size: "small", sx, children: children || /* @__PURE__ */ jsx54(X2, { size: 20 }) });
4872
+ return /* @__PURE__ */ jsx54(
4873
+ NotificationHeaderCloseRoot,
4874
+ {
4875
+ onClick: handleClick,
4876
+ size: "small",
4877
+ sx,
4878
+ "aria-label": "Close notifications",
4879
+ children: children || /* @__PURE__ */ jsx54(X2, { size: 20, "aria-hidden": "true" })
4880
+ }
4881
+ );
4700
4882
  };
4701
4883
  NotificationHeaderClose.displayName = "NotificationHeaderClose";
4702
4884
 
@@ -4828,7 +5010,7 @@ var NotificationActions = ({
4828
5010
  };
4829
5011
 
4830
5012
  // src/components/NotificationPanel/NotificationList.tsx
4831
- import * as React20 from "react";
5013
+ import * as React23 from "react";
4832
5014
  import Box23 from "@mui/material/Box";
4833
5015
  import List3 from "@mui/material/List";
4834
5016
  import Divider6 from "@mui/material/Divider";
@@ -4846,15 +5028,15 @@ var NotificationList = ({
4846
5028
  showDividers = true,
4847
5029
  sx
4848
5030
  }) => {
4849
- const childArray = React20.Children.toArray(children);
4850
- return /* @__PURE__ */ jsx57(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx57(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs19(React20.Fragment, { children: [
5031
+ const childArray = React23.Children.toArray(children);
5032
+ return /* @__PURE__ */ jsx57(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx57(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs19(React23.Fragment, { children: [
4851
5033
  child,
4852
5034
  showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx57(Divider6, {})
4853
5035
  ] }, index)) }) });
4854
5036
  };
4855
5037
 
4856
5038
  // src/components/NotificationPanel/NotificationItem.tsx
4857
- import * as React22 from "react";
5039
+ import * as React25 from "react";
4858
5040
  import Box24 from "@mui/material/Box";
4859
5041
  import ListItem2 from "@mui/material/ListItem";
4860
5042
  import ListItemButton3 from "@mui/material/ListItemButton";
@@ -4900,11 +5082,11 @@ var getNotificationTypeProps = (type) => {
4900
5082
  };
4901
5083
 
4902
5084
  // src/components/NotificationPanel/NotificationItemContext.tsx
4903
- import * as React21 from "react";
5085
+ import * as React24 from "react";
4904
5086
  import { jsx as jsx58 } from "react/jsx-runtime";
4905
- var NotificationItemContext = React21.createContext(null);
5087
+ var NotificationItemContext = React24.createContext(null);
4906
5088
  var useNotificationItemContext = () => {
4907
- const context = React21.useContext(NotificationItemContext);
5089
+ const context = React24.useContext(NotificationItemContext);
4908
5090
  if (!context) {
4909
5091
  throw new Error(
4910
5092
  "useNotificationItemContext must be used within a NotificationItem component"
@@ -4958,9 +5140,9 @@ var separateChildren5 = (children) => {
4958
5140
  let messageChild = null;
4959
5141
  let timestampChild = null;
4960
5142
  let actionChild = null;
4961
- React22.Children.forEach(children, (child) => {
5143
+ React25.Children.forEach(children, (child) => {
4962
5144
  var _a;
4963
- if (React22.isValidElement(child)) {
5145
+ if (React25.isValidElement(child)) {
4964
5146
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
4965
5147
  switch (displayName) {
4966
5148
  case "NotificationItemAvatar":
@@ -5019,11 +5201,12 @@ var NotificationItem = ({
5019
5201
  NotificationItemDismiss,
5020
5202
  {
5021
5203
  size: "small",
5204
+ "aria-label": "Dismiss notification",
5022
5205
  onClick: (e) => {
5023
5206
  e.stopPropagation();
5024
5207
  onDismiss(id);
5025
5208
  },
5026
- children: /* @__PURE__ */ jsx59(X3, { size: 16 })
5209
+ children: /* @__PURE__ */ jsx59(X3, { size: 16, "aria-hidden": "true" })
5027
5210
  }
5028
5211
  ),
5029
5212
  sx,
@@ -5240,7 +5423,7 @@ var NotificationEmptyState = ({
5240
5423
  };
5241
5424
 
5242
5425
  // src/components/NotificationPanel/NotificationPanel.tsx
5243
- import { jsx as jsx66 } from "react/jsx-runtime";
5426
+ import { jsx as jsx66, jsxs as jsxs23 } from "react/jsx-runtime";
5244
5427
  var NotificationPanelRoot = styled51(Drawer, {
5245
5428
  name: "MuiNotificationPanel",
5246
5429
  slot: "Root",
@@ -5263,12 +5446,14 @@ var NotificationPanel = ({
5263
5446
  width = 380,
5264
5447
  anchor = "right",
5265
5448
  variant = "temporary",
5449
+ "aria-label": ariaLabelProp,
5450
+ liveAnnouncement: liveAnnouncementProp,
5266
5451
  sx
5267
5452
  }) => {
5268
5453
  var _a;
5269
- const appShellContext = React23.useContext(AppShellContext);
5454
+ const appShellContext = React26.useContext(AppShellContext);
5270
5455
  const open = (_a = openProp != null ? openProp : appShellContext == null ? void 0 : appShellContext.state.notificationPanelOpen) != null ? _a : false;
5271
- const onClose = React23.useMemo(
5456
+ const onClose = React26.useMemo(
5272
5457
  () => {
5273
5458
  var _a2;
5274
5459
  return (_a2 = onCloseProp != null ? onCloseProp : appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel) != null ? _a2 : (() => {
@@ -5276,9 +5461,42 @@ var NotificationPanel = ({
5276
5461
  },
5277
5462
  [onCloseProp, appShellContext == null ? void 0 : appShellContext.actions.toggleNotificationPanel]
5278
5463
  );
5279
- const contextValue = React23.useMemo(() => ({ onClose }), [onClose]);
5464
+ const ariaLabel = typeof ariaLabelProp === "string" && ariaLabelProp.trim().length > 0 ? ariaLabelProp.trim() : "Notifications";
5465
+ const [liveAnnouncement, setLiveAnnouncementState] = React26.useState("");
5466
+ const [liveAnnouncementNonce, setLiveAnnouncementNonce] = React26.useState(0);
5467
+ const prevLiveAnnouncementPropRef = React26.useRef(void 0);
5468
+ const publishLiveAnnouncement = React26.useCallback(
5469
+ (message) => {
5470
+ if (!open) return;
5471
+ setLiveAnnouncementState(message);
5472
+ setLiveAnnouncementNonce((n) => n + 1);
5473
+ },
5474
+ [open]
5475
+ );
5476
+ React26.useEffect(() => {
5477
+ if (!open) {
5478
+ setLiveAnnouncementState("");
5479
+ prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
5480
+ return;
5481
+ }
5482
+ const prev = prevLiveAnnouncementPropRef.current;
5483
+ prevLiveAnnouncementPropRef.current = liveAnnouncementProp;
5484
+ if (liveAnnouncementProp === void 0) {
5485
+ if (prev !== void 0) {
5486
+ setLiveAnnouncementState("");
5487
+ }
5488
+ return;
5489
+ }
5490
+ if (liveAnnouncementProp !== prev) {
5491
+ publishLiveAnnouncement(liveAnnouncementProp);
5492
+ }
5493
+ }, [open, liveAnnouncementProp, publishLiveAnnouncement]);
5494
+ const contextValue = React26.useMemo(
5495
+ () => ({ onClose, open, setLiveAnnouncement: publishLiveAnnouncement }),
5496
+ [onClose, open, publishLiveAnnouncement]
5497
+ );
5280
5498
  const ownerState = { width };
5281
- return /* @__PURE__ */ jsx66(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx66(
5499
+ return /* @__PURE__ */ jsx66(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs23(
5282
5500
  NotificationPanelRoot,
5283
5501
  {
5284
5502
  anchor,
@@ -5287,7 +5505,27 @@ var NotificationPanel = ({
5287
5505
  ownerState,
5288
5506
  sx,
5289
5507
  variant,
5290
- children
5508
+ slotProps: {
5509
+ paper: {
5510
+ "aria-label": ariaLabel
5511
+ }
5512
+ },
5513
+ children: [
5514
+ /* @__PURE__ */ jsx66(
5515
+ Box27,
5516
+ {
5517
+ component: "div",
5518
+ role: "status",
5519
+ "aria-live": "polite",
5520
+ "aria-atomic": "true",
5521
+ sx: visuallyHidden3,
5522
+ "data-testid": "notification-panel-live-region",
5523
+ children: liveAnnouncement
5524
+ },
5525
+ liveAnnouncementNonce
5526
+ ),
5527
+ children
5528
+ ]
5291
5529
  }
5292
5530
  ) });
5293
5531
  };
@@ -5309,8 +5547,8 @@ NotificationPanel.EmptyState = NotificationEmptyState;
5309
5547
  NotificationPanel.displayName = "NotificationPanel";
5310
5548
 
5311
5549
  // src/components/Footer/Footer.tsx
5312
- import * as React24 from "react";
5313
- import Box27 from "@mui/material/Box";
5550
+ import * as React27 from "react";
5551
+ import Box28 from "@mui/material/Box";
5314
5552
  import { styled as styled55 } from "@mui/material/styles";
5315
5553
 
5316
5554
  // src/components/Footer/FooterCopyright.tsx
@@ -5336,7 +5574,9 @@ var StyledVersion = styled53(Typography17, {
5336
5574
  name: "MuiFooter",
5337
5575
  slot: "Version"
5338
5576
  })(({ theme }) => ({
5339
- color: (theme.vars || theme).palette.text.disabled,
5577
+ // text.secondary (not text.disabled) so the version text keeps a
5578
+ // WCAG AA compliant 4.5:1 contrast ratio at this small size.
5579
+ color: (theme.vars || theme).palette.text.secondary,
5340
5580
  fontFamily: "monospace",
5341
5581
  fontSize: 11
5342
5582
  }));
@@ -5381,8 +5621,8 @@ var FooterDivider = () => {
5381
5621
  FooterDivider.displayName = "Footer.Divider";
5382
5622
 
5383
5623
  // src/components/Footer/Footer.tsx
5384
- import { jsx as jsx71, jsxs as jsxs23 } from "react/jsx-runtime";
5385
- var FooterRoot = styled55(Box27, {
5624
+ import { jsx as jsx71, jsxs as jsxs24 } from "react/jsx-runtime";
5625
+ var FooterRoot = styled55(Box28, {
5386
5626
  name: "MuiFooter",
5387
5627
  slot: "Root"
5388
5628
  })(({ theme }) => ({
@@ -5395,7 +5635,7 @@ var FooterRoot = styled55(Box27, {
5395
5635
  borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
5396
5636
  backgroundColor: (theme.vars || theme).palette.background.paper
5397
5637
  }));
5398
- var FooterContent = styled55(Box27, {
5638
+ var FooterContent = styled55(Box28, {
5399
5639
  name: "MuiFooter",
5400
5640
  slot: "Content"
5401
5641
  })(({ theme }) => ({
@@ -5409,7 +5649,7 @@ var FooterContent = styled55(Box27, {
5409
5649
  alignItems: "center"
5410
5650
  }
5411
5651
  }));
5412
- var FooterLeft = styled55(Box27, {
5652
+ var FooterLeft = styled55(Box28, {
5413
5653
  name: "MuiFooter",
5414
5654
  slot: "Left"
5415
5655
  })(({ theme }) => ({
@@ -5418,7 +5658,7 @@ var FooterLeft = styled55(Box27, {
5418
5658
  gap: theme.spacing(2),
5419
5659
  flexWrap: "wrap"
5420
5660
  }));
5421
- var FooterRight = styled55(Box27, {
5661
+ var FooterRight = styled55(Box28, {
5422
5662
  name: "MuiFooter",
5423
5663
  slot: "Right"
5424
5664
  })(({ theme }) => ({
@@ -5428,11 +5668,11 @@ var FooterRight = styled55(Box27, {
5428
5668
  flexWrap: "wrap"
5429
5669
  }));
5430
5670
  var Footer = ({ children, sx }) => {
5431
- const childrenArray = React24.Children.toArray(children);
5671
+ const childrenArray = React27.Children.toArray(children);
5432
5672
  const leftChildren = [];
5433
5673
  const rightChildren = [];
5434
5674
  childrenArray.forEach((child) => {
5435
- if (React24.isValidElement(child)) {
5675
+ if (React27.isValidElement(child)) {
5436
5676
  if (child.type === FooterCopyright || child.type === FooterVersion || child.type === FooterDivider) {
5437
5677
  leftChildren.push(child);
5438
5678
  } else if (child.type === FooterLink) {
@@ -5440,7 +5680,7 @@ var Footer = ({ children, sx }) => {
5440
5680
  }
5441
5681
  }
5442
5682
  });
5443
- return /* @__PURE__ */ jsx71(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs23(FooterContent, { children: [
5683
+ return /* @__PURE__ */ jsx71(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs24(FooterContent, { children: [
5444
5684
  leftChildren.length > 0 && /* @__PURE__ */ jsx71(FooterLeft, { children: leftChildren }),
5445
5685
  rightChildren.length > 0 && /* @__PURE__ */ jsx71(FooterRight, { children: rightChildren })
5446
5686
  ] }) });
@@ -5452,14 +5692,14 @@ Footer.Divider = FooterDivider;
5452
5692
  Footer.displayName = "Footer";
5453
5693
 
5454
5694
  // src/components/UserMenu/UserMenu.tsx
5455
- import * as React28 from "react";
5456
- import Menu2 from "@mui/material/Menu";
5695
+ import * as React32 from "react";
5696
+ import Menu3 from "@mui/material/Menu";
5457
5697
 
5458
5698
  // src/components/UserMenu/UserMenuContext.tsx
5459
- import * as React25 from "react";
5460
- var UserMenuContext = React25.createContext(void 0);
5699
+ import * as React28 from "react";
5700
+ var UserMenuContext = React28.createContext(void 0);
5461
5701
  var useUserMenu = () => {
5462
- const context = React25.useContext(UserMenuContext);
5702
+ const context = React28.useContext(UserMenuContext);
5463
5703
  if (!context) {
5464
5704
  throw new Error("UserMenu sub-components must be used within a UserMenu component");
5465
5705
  }
@@ -5468,11 +5708,33 @@ var useUserMenu = () => {
5468
5708
  UserMenuContext.displayName = "UserMenu.Context";
5469
5709
 
5470
5710
  // src/components/UserMenu/UserMenuTrigger.tsx
5711
+ import * as React29 from "react";
5471
5712
  import Tooltip5 from "@mui/material/Tooltip";
5472
5713
  import IconButton6 from "@mui/material/IconButton";
5473
5714
  import Avatar4 from "@mui/material/Avatar";
5474
5715
  import { styled as styled56 } from "@mui/material/styles";
5475
- import { jsx as jsx72, jsxs as jsxs24 } from "react/jsx-runtime";
5716
+
5717
+ // src/components/UserMenu/getUserMenuAvatarProps.ts
5718
+ var IMAGE_URL_PATTERN = /^(https?:|\/|data:|blob:)/i;
5719
+ function isUserMenuAvatarImageUrl(value) {
5720
+ return IMAGE_URL_PATTERN.test(value);
5721
+ }
5722
+ function getUserMenuAvatarProps(name, avatar) {
5723
+ const nameInitial = name.charAt(0);
5724
+ if (!avatar) {
5725
+ return { children: nameInitial };
5726
+ }
5727
+ if (isUserMenuAvatarImageUrl(avatar)) {
5728
+ return {
5729
+ src: avatar,
5730
+ children: nameInitial
5731
+ };
5732
+ }
5733
+ return { children: avatar };
5734
+ }
5735
+
5736
+ // src/components/UserMenu/UserMenuTrigger.tsx
5737
+ import { jsx as jsx72, jsxs as jsxs25 } from "react/jsx-runtime";
5476
5738
  var StyledTrigger = styled56(IconButton6, {
5477
5739
  name: "MuiUserMenu",
5478
5740
  slot: "Trigger",
@@ -5507,43 +5769,53 @@ var StyledNameText = styled56("span", {
5507
5769
  display: "block"
5508
5770
  }
5509
5771
  }));
5510
- var UserMenuTrigger = ({ name, avatar, showName = false }) => {
5511
- const { open, handleOpen } = useUserMenu();
5512
- return /* @__PURE__ */ jsx72(Tooltip5, { title: "Account", children: /* @__PURE__ */ jsxs24(
5513
- StyledTrigger,
5514
- {
5515
- onClick: handleOpen,
5516
- size: "small",
5517
- showName,
5518
- "aria-label": showName ? name : "Account",
5519
- "aria-controls": open ? "user-menu" : void 0,
5520
- "aria-haspopup": "true",
5521
- "aria-expanded": open ? "true" : void 0,
5522
- children: [
5523
- /* @__PURE__ */ jsx72(StyledAvatar2, { src: avatar || void 0, alt: name, children: !avatar && name.charAt(0) }),
5524
- showName && /* @__PURE__ */ jsx72(StyledNameText, { children: name })
5525
- ]
5526
- }
5527
- ) });
5528
- };
5772
+ var UserMenuTrigger = React29.forwardRef(
5773
+ function UserMenuTrigger2(_a, ref) {
5774
+ var _b = _a, { name, avatar, showName = false, onClick, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "avatar", "showName", "onClick", "aria-label"]);
5775
+ const { open, handleOpen } = useUserMenu();
5776
+ const avatarProps = getUserMenuAvatarProps(name, avatar);
5777
+ const defaultAriaLabel = showName ? name : "Account";
5778
+ const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
5779
+ return /* @__PURE__ */ jsx72(Tooltip5, { title: "Account", children: /* @__PURE__ */ jsxs25(
5780
+ StyledTrigger,
5781
+ __spreadProps(__spreadValues({}, props), {
5782
+ ref,
5783
+ onClick: (event) => {
5784
+ handleOpen(event);
5785
+ onClick == null ? void 0 : onClick(event);
5786
+ },
5787
+ size: "small",
5788
+ showName,
5789
+ "aria-label": resolvedAriaLabel,
5790
+ "aria-controls": open ? "user-menu" : void 0,
5791
+ "aria-haspopup": "true",
5792
+ "aria-expanded": open ? "true" : void 0,
5793
+ children: [
5794
+ /* @__PURE__ */ jsx72(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
5795
+ showName && /* @__PURE__ */ jsx72(StyledNameText, { children: name })
5796
+ ]
5797
+ })
5798
+ ) });
5799
+ }
5800
+ );
5529
5801
  UserMenuTrigger.displayName = "UserMenu.Trigger";
5530
5802
 
5531
5803
  // src/components/UserMenu/UserMenuHeader.tsx
5532
5804
  import Divider8 from "@mui/material/Divider";
5533
- import Box28 from "@mui/material/Box";
5805
+ import Box29 from "@mui/material/Box";
5534
5806
  import Avatar5 from "@mui/material/Avatar";
5535
5807
  import Typography18 from "@mui/material/Typography";
5536
5808
  import Chip5 from "@mui/material/Chip";
5537
5809
  import { styled as styled57 } from "@mui/material/styles";
5538
- import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs25 } from "react/jsx-runtime";
5539
- var StyledHeaderBox = styled57(Box28, {
5810
+ import { Fragment as Fragment9, jsx as jsx73, jsxs as jsxs26 } from "react/jsx-runtime";
5811
+ var StyledHeaderBox = styled57(Box29, {
5540
5812
  name: "MuiUserMenu",
5541
5813
  slot: "HeaderBox"
5542
5814
  })(({ theme }) => ({
5543
5815
  padding: theme.spacing(2),
5544
5816
  paddingBottom: theme.spacing(1.5)
5545
5817
  }));
5546
- var StyledHeaderContent = styled57(Box28, {
5818
+ var StyledHeaderContent = styled57(Box29, {
5547
5819
  name: "MuiUserMenu",
5548
5820
  slot: "HeaderContent"
5549
5821
  })(({ theme }) => ({
@@ -5562,7 +5834,7 @@ var StyledHeaderAvatar = styled57(Avatar5, {
5562
5834
  fontSize: 16,
5563
5835
  fontWeight: 600
5564
5836
  }));
5565
- var StyledUserInfo = styled57(Box28, {
5837
+ var StyledUserInfo = styled57(Box29, {
5566
5838
  name: "MuiUserMenu",
5567
5839
  slot: "UserInfo"
5568
5840
  })(({ theme }) => ({
@@ -5572,7 +5844,7 @@ var StyledUserInfo = styled57(Box28, {
5572
5844
  flex: 1,
5573
5845
  minWidth: 0
5574
5846
  }));
5575
- var StyledNameRow = styled57(Box28, {
5847
+ var StyledNameRow = styled57(Box29, {
5576
5848
  name: "MuiUserMenu",
5577
5849
  slot: "NameRow"
5578
5850
  })(({ theme }) => ({
@@ -5608,11 +5880,12 @@ var StyledEmail = styled57(Typography18, {
5608
5880
  textOverflow: "ellipsis"
5609
5881
  }));
5610
5882
  var UserMenuHeader = ({ name, email, avatar, role }) => {
5611
- return /* @__PURE__ */ jsxs25(Fragment9, { children: [
5612
- /* @__PURE__ */ jsx73(StyledHeaderBox, { children: /* @__PURE__ */ jsxs25(StyledHeaderContent, { children: [
5613
- /* @__PURE__ */ jsx73(StyledHeaderAvatar, { src: avatar || void 0, alt: name, children: !avatar && name.charAt(0) }),
5614
- /* @__PURE__ */ jsxs25(StyledUserInfo, { children: [
5615
- /* @__PURE__ */ jsxs25(StyledNameRow, { children: [
5883
+ const avatarProps = getUserMenuAvatarProps(name, avatar);
5884
+ return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5885
+ /* @__PURE__ */ jsx73(StyledHeaderBox, { children: /* @__PURE__ */ jsxs26(StyledHeaderContent, { children: [
5886
+ /* @__PURE__ */ jsx73(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
5887
+ /* @__PURE__ */ jsxs26(StyledUserInfo, { children: [
5888
+ /* @__PURE__ */ jsxs26(StyledNameRow, { children: [
5616
5889
  /* @__PURE__ */ jsx73(StyledName, { variant: "subtitle2", children: name }),
5617
5890
  role && /* @__PURE__ */ jsx73(
5618
5891
  StyledRoleChip,
@@ -5632,16 +5905,16 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
5632
5905
  UserMenuHeader.displayName = "UserMenu.Header";
5633
5906
 
5634
5907
  // src/components/UserMenu/UserMenuItem.tsx
5635
- import * as React26 from "react";
5636
- import MenuItem4 from "@mui/material/MenuItem";
5908
+ import * as React30 from "react";
5909
+ import MenuItem5 from "@mui/material/MenuItem";
5637
5910
  import ListItemIcon3 from "@mui/material/ListItemIcon";
5638
5911
  import ListItemText4 from "@mui/material/ListItemText";
5639
- import Box29 from "@mui/material/Box";
5912
+ import Box30 from "@mui/material/Box";
5640
5913
  import Chip6 from "@mui/material/Chip";
5641
5914
  import { styled as styled58 } from "@mui/material/styles";
5642
5915
  import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
5643
- import { jsx as jsx74, jsxs as jsxs26 } from "react/jsx-runtime";
5644
- var StyledMenuItem2 = styled58(MenuItem4, {
5916
+ import { jsx as jsx74, jsxs as jsxs27 } from "react/jsx-runtime";
5917
+ var StyledMenuItem2 = styled58(MenuItem5, {
5645
5918
  name: "MuiUserMenu",
5646
5919
  slot: "MenuItem"
5647
5920
  })(({ theme }) => ({
@@ -5668,12 +5941,12 @@ var UserMenuItem = ({
5668
5941
  handleClose();
5669
5942
  onClick == null ? void 0 : onClick();
5670
5943
  };
5671
- return /* @__PURE__ */ jsxs26(StyledMenuItem2, { onClick: handleClick, children: [
5672
- icon && /* @__PURE__ */ jsx74(ListItemIcon3, { children: React26.isValidElement(icon) ? React26.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5944
+ return /* @__PURE__ */ jsxs27(StyledMenuItem2, { onClick: handleClick, children: [
5945
+ icon && /* @__PURE__ */ jsx74(ListItemIcon3, { children: React30.isValidElement(icon) ? React30.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5673
5946
  size: (_a = icon.props.size) != null ? _a : 18
5674
5947
  })) : icon }),
5675
5948
  /* @__PURE__ */ jsx74(ListItemText4, { primary: label }),
5676
- /* @__PURE__ */ jsxs26(Box29, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
5949
+ /* @__PURE__ */ jsxs27(Box30, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
5677
5950
  badge && /* @__PURE__ */ jsx74(
5678
5951
  StyledBillingChip,
5679
5952
  {
@@ -5689,13 +5962,13 @@ var UserMenuItem = ({
5689
5962
  UserMenuItem.displayName = "UserMenu.Item";
5690
5963
 
5691
5964
  // src/components/UserMenu/UserMenuLogout.tsx
5692
- import * as React27 from "react";
5693
- import MenuItem5 from "@mui/material/MenuItem";
5965
+ import * as React31 from "react";
5966
+ import MenuItem6 from "@mui/material/MenuItem";
5694
5967
  import ListItemIcon4 from "@mui/material/ListItemIcon";
5695
5968
  import ListItemText5 from "@mui/material/ListItemText";
5696
5969
  import { styled as styled59 } from "@mui/material/styles";
5697
- import { jsx as jsx75, jsxs as jsxs27 } from "react/jsx-runtime";
5698
- var StyledLogoutItem = styled59(MenuItem5, {
5970
+ import { jsx as jsx75, jsxs as jsxs28 } from "react/jsx-runtime";
5971
+ var StyledLogoutItem = styled59(MenuItem6, {
5699
5972
  name: "MuiUserMenu",
5700
5973
  slot: "LogoutItem"
5701
5974
  })(({ theme }) => ({
@@ -5721,8 +5994,8 @@ var UserMenuLogout = ({
5721
5994
  handleClose();
5722
5995
  onClick == null ? void 0 : onClick();
5723
5996
  };
5724
- return /* @__PURE__ */ jsxs27(StyledLogoutItem, { onClick: handleClick, children: [
5725
- icon && /* @__PURE__ */ jsx75(ListItemIcon4, { children: React27.isValidElement(icon) ? React27.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5997
+ return /* @__PURE__ */ jsxs28(StyledLogoutItem, { onClick: handleClick, children: [
5998
+ icon && /* @__PURE__ */ jsx75(ListItemIcon4, { children: React31.isValidElement(icon) ? React31.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
5726
5999
  size: (_a = icon.props.size) != null ? _a : 18
5727
6000
  })) : icon }),
5728
6001
  /* @__PURE__ */ jsx75(ListItemText5, { primary: label })
@@ -5737,9 +6010,9 @@ var UserMenuDivider = () => /* @__PURE__ */ jsx76(Divider9, {});
5737
6010
  UserMenuDivider.displayName = "UserMenu.Divider";
5738
6011
 
5739
6012
  // src/components/UserMenu/UserMenu.tsx
5740
- import { jsx as jsx77, jsxs as jsxs28 } from "react/jsx-runtime";
6013
+ import { jsx as jsx77, jsxs as jsxs29 } from "react/jsx-runtime";
5741
6014
  var UserMenu = ({ children }) => {
5742
- const [anchorEl, setAnchorEl] = React28.useState(null);
6015
+ const [anchorEl, setAnchorEl] = React32.useState(null);
5743
6016
  const open = Boolean(anchorEl);
5744
6017
  const handleOpen = (event) => {
5745
6018
  setAnchorEl(event.currentTarget);
@@ -5747,17 +6020,17 @@ var UserMenu = ({ children }) => {
5747
6020
  const handleClose = () => {
5748
6021
  setAnchorEl(null);
5749
6022
  };
5750
- const childrenArray = React28.Children.toArray(children);
6023
+ const childrenArray = React32.Children.toArray(children);
5751
6024
  const triggerChild = childrenArray.find(
5752
- (child) => React28.isValidElement(child) && child.type === UserMenuTrigger
6025
+ (child) => React32.isValidElement(child) && child.type === UserMenuTrigger
5753
6026
  );
5754
6027
  const menuChildren = childrenArray.filter(
5755
- (child) => React28.isValidElement(child) && child.type !== UserMenuTrigger
6028
+ (child) => React32.isValidElement(child) && child.type !== UserMenuTrigger
5756
6029
  );
5757
- return /* @__PURE__ */ jsxs28(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
6030
+ return /* @__PURE__ */ jsxs29(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
5758
6031
  triggerChild,
5759
6032
  /* @__PURE__ */ jsx77(
5760
- Menu2,
6033
+ Menu3,
5761
6034
  {
5762
6035
  id: "user-menu",
5763
6036
  anchorEl,
@@ -5786,18 +6059,18 @@ UserMenu.Divider = UserMenuDivider;
5786
6059
  UserMenu.displayName = "UserMenu";
5787
6060
 
5788
6061
  // src/components/NotificationBanner/NotificationBanner.tsx
5789
- import * as React29 from "react";
6062
+ import * as React33 from "react";
5790
6063
  import Alert from "@mui/material/Alert";
5791
6064
  import AlertTitle from "@mui/material/AlertTitle";
5792
6065
  import Collapse2 from "@mui/material/Collapse";
5793
6066
  import Button4 from "@mui/material/Button";
5794
- import Box30 from "@mui/material/Box";
6067
+ import Box31 from "@mui/material/Box";
5795
6068
  import { styled as styled60 } from "@mui/material/styles";
5796
- import { jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
6069
+ import { jsx as jsx78, jsxs as jsxs30 } from "react/jsx-runtime";
5797
6070
  var NotificationBannerAlert = styled60(Alert, {
5798
6071
  name: "MuiNotificationBanner",
5799
6072
  slot: "Root"
5800
- })({
6073
+ })(({ theme }) => __spreadValues({
5801
6074
  borderRadius: 0,
5802
6075
  "& .MuiAlert-message": {
5803
6076
  width: "100%",
@@ -5811,8 +6084,18 @@ var NotificationBannerAlert = styled60(Alert, {
5811
6084
  paddingTop: 0,
5812
6085
  alignItems: "center"
5813
6086
  }
5814
- });
5815
- var NotificationBannerContent = styled60(Box30, {
6087
+ }, theme.applyStyles("light", {
6088
+ "&.MuiAlert-filledInfo": {
6089
+ backgroundColor: (theme.vars || theme).palette.info.dark
6090
+ },
6091
+ "&.MuiAlert-filledWarning": {
6092
+ color: "#000",
6093
+ "& .MuiAlert-icon, & .MuiAlert-action": {
6094
+ color: "#000"
6095
+ }
6096
+ }
6097
+ })));
6098
+ var NotificationBannerContent = styled60(Box31, {
5816
6099
  name: "MuiNotificationBanner",
5817
6100
  slot: "Content"
5818
6101
  })({
@@ -5842,8 +6125,8 @@ var NotificationBanner = ({
5842
6125
  onDismiss,
5843
6126
  sx
5844
6127
  }) => {
5845
- const [isVisible, setIsVisible] = React29.useState(visible);
5846
- React29.useEffect(() => {
6128
+ const [isVisible, setIsVisible] = React33.useState(visible);
6129
+ React33.useEffect(() => {
5847
6130
  setIsVisible(visible);
5848
6131
  }, [visible]);
5849
6132
  const handleDismiss = () => {
@@ -5866,16 +6149,16 @@ var NotificationBanner = ({
5866
6149
  children: actionLabel
5867
6150
  }
5868
6151
  ) : void 0,
5869
- children: /* @__PURE__ */ jsxs29(NotificationBannerContent, { children: [
6152
+ children: /* @__PURE__ */ jsxs30(NotificationBannerContent, { children: [
5870
6153
  title && /* @__PURE__ */ jsx78(AlertTitle, { sx: { mb: 0 }, children: title }),
5871
- /* @__PURE__ */ jsx78(Box30, { component: "span", children: message })
6154
+ /* @__PURE__ */ jsx78(Box31, { component: "span", children: message })
5872
6155
  ] })
5873
6156
  }
5874
6157
  ) });
5875
6158
  };
5876
6159
 
5877
6160
  // src/components/Form/CardButton.tsx
5878
- import { Card as Card2, ButtonBase, Box as Box31, styled as styled61 } from "@mui/material";
6161
+ import { Card as Card2, ButtonBase as ButtonBase2, Box as Box32, styled as styled61 } from "@mui/material";
5879
6162
  import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
5880
6163
  import { jsx as jsx79 } from "react/jsx-runtime";
5881
6164
  var StyledCardButton = styled61(Card2, {
@@ -5910,13 +6193,13 @@ var CardButton = (props) => {
5910
6193
  StyledCardButton,
5911
6194
  __spreadValues({
5912
6195
  alignItems,
5913
- component: ButtonBase,
6196
+ component: ButtonBase2,
5914
6197
  selected,
5915
6198
  disabled
5916
6199
  }, rest)
5917
6200
  );
5918
6201
  };
5919
- var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx79(Box31, __spreadValues({ className: "creation-flow-card-actions" }, props));
6202
+ var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx79(Box32, __spreadValues({ className: "creation-flow-card-actions" }, props));
5920
6203
 
5921
6204
  // src/components/Form/Stack.tsx
5922
6205
  import { Stack as OxygenStack } from "@mui/material";
@@ -5959,14 +6242,14 @@ import {
5959
6242
  } from "@mui/material";
5960
6243
  import { styled as styled62 } from "@mui/material/styles";
5961
6244
  import { useMemo as useMemo6 } from "react";
5962
- import { jsx as jsx83, jsxs as jsxs30 } from "react/jsx-runtime";
6245
+ import { jsx as jsx83, jsxs as jsxs31 } from "react/jsx-runtime";
5963
6246
  var StyledWizardActionsStack = styled62(Stack2)(() => ({
5964
6247
  justifyContent: "space-between",
5965
6248
  flexGrow: 1
5966
6249
  }));
5967
6250
  function Wizard({ steps, activeStep, actions }) {
5968
6251
  const step = useMemo6(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
5969
- return /* @__PURE__ */ jsx83(Card4, { children: /* @__PURE__ */ jsx83(CardContent4, { children: /* @__PURE__ */ jsxs30(Stack2, { children: [
6252
+ return /* @__PURE__ */ jsx83(Card4, { children: /* @__PURE__ */ jsx83(CardContent4, { children: /* @__PURE__ */ jsxs31(Stack2, { children: [
5970
6253
  /* @__PURE__ */ jsx83(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx83(Step, { children: /* @__PURE__ */ jsx83(StepLabel, { children: step2.label }) }, step2.label)) }),
5971
6254
  /* @__PURE__ */ jsx83(Divider10, {}),
5972
6255
  /* @__PURE__ */ jsx83(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
@@ -5976,12 +6259,21 @@ function Wizard({ steps, activeStep, actions }) {
5976
6259
 
5977
6260
  // src/components/Form/ElementWrapper.tsx
5978
6261
  import { FormControl as FormControl3, FormLabel } from "@mui/material";
5979
- import { jsx as jsx84, jsxs as jsxs31 } from "react/jsx-runtime";
6262
+ import React34 from "react";
6263
+ import { jsx as jsx84, jsxs as jsxs32 } from "react/jsx-runtime";
5980
6264
  var ElementWrapper = (props) => {
5981
6265
  const { label, name, children } = props;
5982
- return /* @__PURE__ */ jsxs31(FormControl3, { fullWidth: true, children: [
5983
- /* @__PURE__ */ jsx84(FormLabel, { htmlFor: name, children: label }),
5984
- children
6266
+ const labelId = `${name}-label`;
6267
+ const enhancedChildren = React34.Children.map(children, (child) => {
6268
+ var _a;
6269
+ if (React34.isValidElement(child) && ((_a = child.type) == null ? void 0 : _a.muiName) === "Select" && !child.props.labelId) {
6270
+ return React34.cloneElement(child, { labelId });
6271
+ }
6272
+ return child;
6273
+ });
6274
+ return /* @__PURE__ */ jsxs32(FormControl3, { fullWidth: true, children: [
6275
+ /* @__PURE__ */ jsx84(FormLabel, { id: labelId, htmlFor: name, children: label }),
6276
+ enhancedChildren
5985
6277
  ] });
5986
6278
  };
5987
6279
 
@@ -6004,16 +6296,16 @@ var Form = {
6004
6296
  };
6005
6297
 
6006
6298
  // src/components/AppShell/AppShell.tsx
6007
- import * as React31 from "react";
6008
- import Box36 from "@mui/material/Box";
6299
+ import * as React36 from "react";
6300
+ import Box37 from "@mui/material/Box";
6009
6301
 
6010
6302
  // src/layouts/Layout.tsx
6011
- import Box32 from "@mui/material/Box";
6303
+ import Box33 from "@mui/material/Box";
6012
6304
  import { jsx as jsx85 } from "react/jsx-runtime";
6013
6305
  function Layout(_a) {
6014
6306
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6015
6307
  return /* @__PURE__ */ jsx85(
6016
- Box32,
6308
+ Box33,
6017
6309
  __spreadProps(__spreadValues({
6018
6310
  sx: __spreadValues({
6019
6311
  display: "flex",
@@ -6028,12 +6320,12 @@ Layout.displayName = "Layout";
6028
6320
  var Layout_default = Layout;
6029
6321
 
6030
6322
  // src/layouts/LayoutSidebar.tsx
6031
- import Box33 from "@mui/material/Box";
6323
+ import Box34 from "@mui/material/Box";
6032
6324
  import { jsx as jsx86 } from "react/jsx-runtime";
6033
6325
  function LayoutSidebar(_a) {
6034
6326
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6035
6327
  return /* @__PURE__ */ jsx86(
6036
- Box33,
6328
+ Box34,
6037
6329
  __spreadProps(__spreadValues({
6038
6330
  sx: __spreadValues({
6039
6331
  display: "flex",
@@ -6055,12 +6347,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
6055
6347
  var LayoutNavbar_default = LayoutNavbar;
6056
6348
 
6057
6349
  // src/layouts/LayoutContent.tsx
6058
- import Box34 from "@mui/material/Box";
6350
+ import Box35 from "@mui/material/Box";
6059
6351
  import { jsx as jsx87 } from "react/jsx-runtime";
6060
6352
  function LayoutContent(_a) {
6061
6353
  var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
6062
6354
  return /* @__PURE__ */ jsx87(
6063
- Box34,
6355
+ Box35,
6064
6356
  __spreadProps(__spreadValues({
6065
6357
  component: "main",
6066
6358
  sx: {
@@ -6078,12 +6370,12 @@ LayoutContent.displayName = "Layout.Content";
6078
6370
  var LayoutContent_default = LayoutContent;
6079
6371
 
6080
6372
  // src/layouts/LayoutHeader.tsx
6081
- import Box35 from "@mui/material/Box";
6373
+ import Box36 from "@mui/material/Box";
6082
6374
  import { jsx as jsx88 } from "react/jsx-runtime";
6083
6375
  function LayoutHeader(_a) {
6084
6376
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
6085
6377
  return /* @__PURE__ */ jsx88(
6086
- Box35,
6378
+ Box36,
6087
6379
  __spreadProps(__spreadValues({
6088
6380
  sx: __spreadValues({
6089
6381
  display: "flex"
@@ -6141,10 +6433,10 @@ var AppShellNotificationPanel = ({ children }) => {
6141
6433
  AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
6142
6434
 
6143
6435
  // src/hooks/useAppShell/useAppShell.ts
6144
- import * as React30 from "react";
6436
+ import * as React35 from "react";
6145
6437
  import useMediaQuery3 from "@mui/material/useMediaQuery";
6146
6438
  var useAppShell = (options) => {
6147
- const contextValue = React30.useContext(AppShellContext);
6439
+ const contextValue = React35.useContext(AppShellContext);
6148
6440
  const {
6149
6441
  initialCollapsed = false,
6150
6442
  initialActiveItem = "dashboard",
@@ -6155,7 +6447,7 @@ var useAppShell = (options) => {
6155
6447
  } = options || {};
6156
6448
  const isMobile = useMediaQuery3((theme) => theme.breakpoints.down("md"));
6157
6449
  const isCreateMode = options !== void 0;
6158
- const [state, setState] = React30.useState({
6450
+ const [state, setState] = React35.useState({
6159
6451
  sidebarCollapsed: initialCollapsed,
6160
6452
  notificationPanelOpen: false,
6161
6453
  activeMenuItem: initialActiveItem,
@@ -6163,29 +6455,29 @@ var useAppShell = (options) => {
6163
6455
  sidebarWidth,
6164
6456
  sidebarCollapsedWidth
6165
6457
  });
6166
- React30.useEffect(() => {
6458
+ React35.useEffect(() => {
6167
6459
  if (isCreateMode && collapseOnMobile && isMobile) {
6168
6460
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
6169
6461
  }
6170
6462
  }, [isCreateMode, collapseOnMobile, isMobile]);
6171
- const toggleSidebar = React30.useCallback(() => {
6463
+ const toggleSidebar = React35.useCallback(() => {
6172
6464
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
6173
6465
  }, []);
6174
- const setSidebarCollapsed = React30.useCallback((collapsed) => {
6466
+ const setSidebarCollapsed = React35.useCallback((collapsed) => {
6175
6467
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: collapsed }));
6176
6468
  }, []);
6177
- const collapseSidebar = React30.useCallback(() => {
6469
+ const collapseSidebar = React35.useCallback(() => {
6178
6470
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
6179
6471
  }, []);
6180
- const expandSidebar = React30.useCallback(() => {
6472
+ const expandSidebar = React35.useCallback(() => {
6181
6473
  setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: false }));
6182
6474
  }, []);
6183
- const toggleNotificationPanel = React30.useCallback(() => {
6475
+ const toggleNotificationPanel = React35.useCallback(() => {
6184
6476
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
6185
6477
  notificationPanelOpen: !prev.notificationPanelOpen
6186
6478
  }));
6187
6479
  }, []);
6188
- const setActiveMenuItem = React30.useCallback((id) => {
6480
+ const setActiveMenuItem = React35.useCallback((id) => {
6189
6481
  setState((prev) => {
6190
6482
  const newState = __spreadProps(__spreadValues({}, prev), { activeMenuItem: id });
6191
6483
  if (collapseOnSelectOnMobile && isMobile && !prev.sidebarCollapsed) {
@@ -6194,14 +6486,14 @@ var useAppShell = (options) => {
6194
6486
  return newState;
6195
6487
  });
6196
6488
  }, [collapseOnSelectOnMobile, isMobile]);
6197
- const toggleMenu = React30.useCallback((id) => {
6489
+ const toggleMenu = React35.useCallback((id) => {
6198
6490
  setState((prev) => __spreadProps(__spreadValues({}, prev), {
6199
6491
  expandedMenus: __spreadProps(__spreadValues({}, prev.expandedMenus), {
6200
6492
  [id]: !prev.expandedMenus[id]
6201
6493
  })
6202
6494
  }));
6203
6495
  }, []);
6204
- const actions = React30.useMemo(
6496
+ const actions = React35.useMemo(
6205
6497
  () => ({
6206
6498
  toggleSidebar,
6207
6499
  setSidebarCollapsed,
@@ -6221,7 +6513,7 @@ var useAppShell = (options) => {
6221
6513
  toggleMenu
6222
6514
  ]
6223
6515
  );
6224
- const createdValue = React30.useMemo(
6516
+ const createdValue = React35.useMemo(
6225
6517
  () => ({
6226
6518
  state,
6227
6519
  actions
@@ -6240,7 +6532,7 @@ var useAppShell = (options) => {
6240
6532
  };
6241
6533
 
6242
6534
  // src/components/AppShell/AppShell.tsx
6243
- import { jsx as jsx94, jsxs as jsxs32 } from "react/jsx-runtime";
6535
+ import { jsx as jsx94, jsxs as jsxs33 } from "react/jsx-runtime";
6244
6536
  var SLOT_DISPLAY_NAMES = {
6245
6537
  Navbar: "AppShellNavbar",
6246
6538
  Sidebar: "AppShellSidebar",
@@ -6256,9 +6548,9 @@ var extractSlots = (children) => {
6256
6548
  footer: null,
6257
6549
  notificationPanel: null
6258
6550
  };
6259
- React31.Children.forEach(children, (child) => {
6551
+ React36.Children.forEach(children, (child) => {
6260
6552
  var _a;
6261
- if (React31.isValidElement(child)) {
6553
+ if (React36.isValidElement(child)) {
6262
6554
  const displayName = (_a = child.type) == null ? void 0 : _a.displayName;
6263
6555
  const childProps = child.props;
6264
6556
  switch (displayName) {
@@ -6290,12 +6582,12 @@ var AppShell = (_a) => {
6290
6582
  var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
6291
6583
  const shell = useAppShell(shellOptions);
6292
6584
  const slots = extractSlots(children);
6293
- return /* @__PURE__ */ jsx94(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs32(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
6585
+ return /* @__PURE__ */ jsx94(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs33(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
6294
6586
  slots.navbar && /* @__PURE__ */ jsx94(layouts_default.Navbar, { children: slots.navbar }),
6295
- /* @__PURE__ */ jsxs32(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
6587
+ /* @__PURE__ */ jsxs33(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
6296
6588
  slots.sidebar && /* @__PURE__ */ jsx94(layouts_default.Sidebar, { children: slots.sidebar }),
6297
- /* @__PURE__ */ jsxs32(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
6298
- /* @__PURE__ */ jsx94(Box36, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
6589
+ /* @__PURE__ */ jsxs33(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
6590
+ /* @__PURE__ */ jsx94(Box37, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
6299
6591
  slots.footer
6300
6592
  ] })
6301
6593
  ] }),
@@ -6322,7 +6614,7 @@ var densityStyles = {
6322
6614
 
6323
6615
  // src/components/ListingTable/ListingTable/ListingTableContainer.tsx
6324
6616
  import MuiTableContainer from "@mui/material/TableContainer";
6325
- import Paper2 from "@mui/material/Paper";
6617
+ import Paper from "@mui/material/Paper";
6326
6618
  import { jsx as jsx95 } from "react/jsx-runtime";
6327
6619
  function ListingTableContainer(_a) {
6328
6620
  var _b = _a, {
@@ -6337,7 +6629,7 @@ function ListingTableContainer(_a) {
6337
6629
  if (disablePaper) {
6338
6630
  return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
6339
6631
  }
6340
- return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper2, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
6632
+ return /* @__PURE__ */ jsx95(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
6341
6633
  }
6342
6634
  var ListingTableContainer_default = ListingTableContainer;
6343
6635
 
@@ -6475,19 +6767,19 @@ function ListingTableCell(_a) {
6475
6767
  var ListingTableCell_default = ListingTableCell;
6476
6768
 
6477
6769
  // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
6478
- import { useCallback as useCallback2 } from "react";
6770
+ import { useCallback as useCallback4 } from "react";
6479
6771
  import { DataGrid } from "@mui/x-data-grid";
6480
6772
  import { styled as styled66, alpha as alpha2 } from "@mui/material/styles";
6481
6773
 
6482
6774
  // src/components/ListingTable/context.ts
6483
- import * as React32 from "react";
6484
- var ListingTableContext = React32.createContext(null);
6775
+ import * as React37 from "react";
6776
+ var ListingTableContext = React37.createContext(null);
6485
6777
  ListingTableContext.displayName = "ListingTableContext";
6486
6778
  var useListingTable = () => {
6487
- return React32.useContext(ListingTableContext);
6779
+ return React37.useContext(ListingTableContext);
6488
6780
  };
6489
6781
  var useListingTableRequired = () => {
6490
- const context = React32.useContext(ListingTableContext);
6782
+ const context = React37.useContext(ListingTableContext);
6491
6783
  if (!context) {
6492
6784
  throw new Error(
6493
6785
  "useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
@@ -6535,16 +6827,21 @@ var StyledDataGrid = styled66(DataGrid)(({ theme }) => ({
6535
6827
  )
6536
6828
  }
6537
6829
  },
6538
- // Remove default cell focus outline, rely on theme focus ring
6539
6830
  "& .MuiDataGrid-cell": {
6540
6831
  display: "flex",
6541
6832
  alignItems: "center"
6542
6833
  },
6834
+ // Hide the default outline for mouse interactions but keep a clearly
6835
+ // visible focus indicator for keyboard navigation (WCAG 2.4.7).
6543
6836
  "& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within": {
6544
6837
  outline: "none"
6545
6838
  },
6546
6839
  "& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within": {
6547
6840
  outline: "none"
6841
+ },
6842
+ "& .MuiDataGrid-cell:focus-visible, & .MuiDataGrid-columnHeader:focus-visible": {
6843
+ outline: `2px solid ${(theme.vars || theme).palette.primary.main}`,
6844
+ outlineOffset: -2
6548
6845
  }
6549
6846
  }));
6550
6847
  function ListingTableDataGrid(_a) {
@@ -6573,7 +6870,7 @@ function ListingTableDataGrid(_a) {
6573
6870
  items: [],
6574
6871
  quickFilterValues: searchValue ? [searchValue] : []
6575
6872
  };
6576
- const defaultCardRowSpacing = useCallback2(
6873
+ const defaultCardRowSpacing = useCallback4(
6577
6874
  (params) => ({ top: params.isFirstVisible ? 0 : 12, bottom: 0 }),
6578
6875
  []
6579
6876
  );
@@ -6665,13 +6962,13 @@ function ListingTableDataGrid(_a) {
6665
6962
  var ListingTableDataGrid_default = ListingTableDataGrid;
6666
6963
 
6667
6964
  // src/components/ListingTable/shared/ListingTableToolbar.tsx
6668
- import { useState as useState8, useCallback as useCallback3 } from "react";
6669
- import Box37 from "@mui/material/Box";
6965
+ import { useState as useState9, useCallback as useCallback5 } from "react";
6966
+ import Box38 from "@mui/material/Box";
6670
6967
  import TextField3 from "@mui/material/TextField";
6671
6968
  import InputAdornment3 from "@mui/material/InputAdornment";
6672
6969
  import IconButton7 from "@mui/material/IconButton";
6673
6970
  import { Search as Search2, X as X4 } from "@wso2/oxygen-ui-icons-react";
6674
- import { Fragment as Fragment15, jsx as jsx102, jsxs as jsxs33 } from "react/jsx-runtime";
6971
+ import { Fragment as Fragment15, jsx as jsx102, jsxs as jsxs34 } from "react/jsx-runtime";
6675
6972
  function ListingTableToolbar({
6676
6973
  showSearch = false,
6677
6974
  searchSlot,
@@ -6685,13 +6982,13 @@ function ListingTableToolbar({
6685
6982
  sx
6686
6983
  }) {
6687
6984
  const tableContext = useListingTable();
6688
- const [internalSearchValue, setInternalSearchValue] = useState8("");
6985
+ const [internalSearchValue, setInternalSearchValue] = useState9("");
6689
6986
  const isControlledByProp = controlledSearchValue !== void 0;
6690
6987
  const isControlledByContext = !isControlledByProp && (tableContext == null ? void 0 : tableContext.searchValue) !== void 0;
6691
6988
  const isControlled = isControlledByProp || isControlledByContext;
6692
6989
  const searchValue = isControlledByProp ? controlledSearchValue : isControlledByContext ? tableContext.searchValue : internalSearchValue;
6693
6990
  const effectiveOnSearchChange = onSearchChange != null ? onSearchChange : tableContext == null ? void 0 : tableContext.onSearchChange;
6694
- const handleSearchChange = useCallback3(
6991
+ const handleSearchChange = useCallback5(
6695
6992
  (event) => {
6696
6993
  const newValue = event.target.value;
6697
6994
  if (!isControlled) {
@@ -6701,7 +6998,7 @@ function ListingTableToolbar({
6701
6998
  },
6702
6999
  [isControlled, effectiveOnSearchChange]
6703
7000
  );
6704
- const handleClearSearch = useCallback3(() => {
7001
+ const handleClearSearch = useCallback5(() => {
6705
7002
  if (!isControlled) {
6706
7003
  setInternalSearchValue("");
6707
7004
  }
@@ -6723,18 +7020,25 @@ function ListingTableToolbar({
6723
7020
  minWidth: searchMinWidth,
6724
7021
  maxWidth: searchMaxWidth
6725
7022
  },
6726
- InputProps: {
6727
- startAdornment: /* @__PURE__ */ jsx102(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx102(Search2, { size: 18 }) }),
6728
- endAdornment: searchValue ? /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", children: /* @__PURE__ */ jsx102(X4, { size: 16 }) }) }) : null
7023
+ slotProps: {
7024
+ htmlInput: {
7025
+ "aria-label": searchPlaceholder || "Search"
7026
+ },
7027
+ input: {
7028
+ startAdornment: /* @__PURE__ */ jsx102(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx102(Search2, { size: 18, "aria-hidden": "true" }) }),
7029
+ endAdornment: searchValue ? /* @__PURE__ */ jsx102(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx102(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx102(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
7030
+ }
6729
7031
  }
6730
7032
  }
6731
7033
  );
6732
7034
  }
6733
7035
  return null;
6734
7036
  };
6735
- return /* @__PURE__ */ jsxs33(
6736
- Box37,
7037
+ return /* @__PURE__ */ jsxs34(
7038
+ Box38,
6737
7039
  {
7040
+ role: "toolbar",
7041
+ "aria-label": "Table toolbar",
6738
7042
  sx: __spreadValues({
6739
7043
  display: "flex",
6740
7044
  alignItems: "center",
@@ -6746,9 +7050,9 @@ function ListingTableToolbar({
6746
7050
  children: [
6747
7051
  renderSearch(),
6748
7052
  children,
6749
- actions && /* @__PURE__ */ jsxs33(Fragment15, { children: [
6750
- /* @__PURE__ */ jsx102(Box37, { sx: { flex: 1 } }),
6751
- /* @__PURE__ */ jsx102(Box37, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
7053
+ actions && /* @__PURE__ */ jsxs34(Fragment15, { children: [
7054
+ /* @__PURE__ */ jsx102(Box38, { sx: { flex: 1 } }),
7055
+ /* @__PURE__ */ jsx102(Box38, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
6752
7056
  ] })
6753
7057
  ]
6754
7058
  }
@@ -6757,9 +7061,9 @@ function ListingTableToolbar({
6757
7061
  var ListingTableToolbar_default = ListingTableToolbar;
6758
7062
 
6759
7063
  // src/components/ListingTable/shared/ListingTableEmptyState.tsx
6760
- import Box38 from "@mui/material/Box";
7064
+ import Box39 from "@mui/material/Box";
6761
7065
  import Typography20 from "@mui/material/Typography";
6762
- import { jsx as jsx103, jsxs as jsxs34 } from "react/jsx-runtime";
7066
+ import { jsx as jsx103, jsxs as jsxs35 } from "react/jsx-runtime";
6763
7067
  function ListingTableEmptyState({
6764
7068
  title = "No data available",
6765
7069
  description,
@@ -6768,8 +7072,8 @@ function ListingTableEmptyState({
6768
7072
  minHeight = 300,
6769
7073
  sx
6770
7074
  }) {
6771
- return /* @__PURE__ */ jsxs34(
6772
- Box38,
7075
+ return /* @__PURE__ */ jsxs35(
7076
+ Box39,
6773
7077
  {
6774
7078
  sx: __spreadValues({
6775
7079
  display: "flex",
@@ -6782,7 +7086,7 @@ function ListingTableEmptyState({
6782
7086
  }, sx),
6783
7087
  children: [
6784
7088
  illustration && /* @__PURE__ */ jsx103(
6785
- Box38,
7089
+ Box39,
6786
7090
  {
6787
7091
  sx: {
6788
7092
  mb: 2,
@@ -6797,7 +7101,7 @@ function ListingTableEmptyState({
6797
7101
  ),
6798
7102
  /* @__PURE__ */ jsx103(Typography20, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
6799
7103
  description && /* @__PURE__ */ jsx103(Typography20, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
6800
- action && /* @__PURE__ */ jsx103(Box38, { children: action })
7104
+ action && /* @__PURE__ */ jsx103(Box39, { children: action })
6801
7105
  ]
6802
7106
  }
6803
7107
  );
@@ -6805,15 +7109,15 @@ function ListingTableEmptyState({
6805
7109
  var ListingTableEmptyState_default = ListingTableEmptyState;
6806
7110
 
6807
7111
  // src/components/ListingTable/shared/ListingTableDensityControl.tsx
6808
- import { useCallback as useCallback4 } from "react";
7112
+ import { useCallback as useCallback6 } from "react";
6809
7113
  import ToggleButton from "@mui/material/ToggleButton";
6810
7114
  import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
6811
7115
  import Tooltip6 from "@mui/material/Tooltip";
6812
- import { AlignJustify, Menu as Menu3, List as List4 } from "@wso2/oxygen-ui-icons-react";
7116
+ import { AlignJustify, Menu as Menu4, List as List4 } from "@wso2/oxygen-ui-icons-react";
6813
7117
  import { jsx as jsx104 } from "react/jsx-runtime";
6814
7118
  var densityOptions = [
6815
7119
  { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx104(AlignJustify, { size: 18 }) },
6816
- { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx104(Menu3, { size: 18 }) },
7120
+ { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx104(Menu4, { size: 18 }) },
6817
7121
  { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx104(List4, { size: 18 }) }
6818
7122
  ];
6819
7123
  function ListingTableDensityControl({
@@ -6826,7 +7130,7 @@ function ListingTableDensityControl({
6826
7130
  const tableContext = useListingTable();
6827
7131
  const value = (_a = valueProp != null ? valueProp : tableContext == null ? void 0 : tableContext.density) != null ? _a : "standard";
6828
7132
  const effectiveOnChange = onChangeProp != null ? onChangeProp : tableContext == null ? void 0 : tableContext.onDensityChange;
6829
- const handleChange = useCallback4(
7133
+ const handleChange = useCallback6(
6830
7134
  (_event, newDensity) => {
6831
7135
  if (newDensity !== null) {
6832
7136
  effectiveOnChange == null ? void 0 : effectiveOnChange(newDensity);
@@ -6834,12 +7138,23 @@ function ListingTableDensityControl({
6834
7138
  },
6835
7139
  [effectiveOnChange]
6836
7140
  );
6837
- return /* @__PURE__ */ jsx104(ToggleButtonGroup, { value, exclusive: true, onChange: handleChange, size, sx, children: densityOptions.map((option) => /* @__PURE__ */ jsx104(ToggleButton, { value: option.value, children: /* @__PURE__ */ jsx104(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx104("span", { style: { display: "flex", alignItems: "center" }, children: option.icon }) }) }, option.value)) });
7141
+ return /* @__PURE__ */ jsx104(
7142
+ ToggleButtonGroup,
7143
+ {
7144
+ value,
7145
+ exclusive: true,
7146
+ onChange: handleChange,
7147
+ size,
7148
+ sx,
7149
+ "aria-label": "Table density",
7150
+ children: densityOptions.map((option) => /* @__PURE__ */ jsx104(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx104(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx104("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
7151
+ }
7152
+ );
6838
7153
  }
6839
7154
  var ListingTableDensityControl_default = ListingTableDensityControl;
6840
7155
 
6841
7156
  // src/components/ListingTable/shared/ListingTableSortLabel.tsx
6842
- import { useCallback as useCallback5 } from "react";
7157
+ import { useCallback as useCallback7 } from "react";
6843
7158
  import MuiTableSortLabel from "@mui/material/TableSortLabel";
6844
7159
  import { styled as styled67 } from "@mui/material/styles";
6845
7160
  import { jsx as jsx105 } from "react/jsx-runtime";
@@ -6873,7 +7188,7 @@ function ListingTableSortLabel(_a) {
6873
7188
  const isActiveFromContext = field !== void 0 && (tableContext == null ? void 0 : tableContext.sortField) === field;
6874
7189
  const active = activeProp != null ? activeProp : isActiveFromContext;
6875
7190
  const direction = (_a2 = directionProp != null ? directionProp : isActiveFromContext ? tableContext == null ? void 0 : tableContext.sortDirection : void 0) != null ? _a2 : "asc";
6876
- const handleClick = useCallback5(
7191
+ const handleClick = useCallback7(
6877
7192
  (event) => {
6878
7193
  if (onClickProp) {
6879
7194
  onClickProp(event);
@@ -6891,7 +7206,7 @@ function ListingTableSortLabel(_a) {
6891
7206
  var ListingTableSortLabel_default = ListingTableSortLabel;
6892
7207
 
6893
7208
  // src/components/ListingTable/shared/ListingTableRowActions.tsx
6894
- import Box39 from "@mui/material/Box";
7209
+ import Box40 from "@mui/material/Box";
6895
7210
  import { jsx as jsx106 } from "react/jsx-runtime";
6896
7211
  var alignmentMap = {
6897
7212
  left: "flex-start",
@@ -6905,7 +7220,7 @@ function ListingTableRowActions({
6905
7220
  sx
6906
7221
  }) {
6907
7222
  return /* @__PURE__ */ jsx106(
6908
- Box39,
7223
+ Box40,
6909
7224
  {
6910
7225
  className: "table-row-actions",
6911
7226
  sx: __spreadValues(__spreadValues({
@@ -6928,9 +7243,9 @@ function ListingTableRowActions({
6928
7243
  var ListingTableRowActions_default = ListingTableRowActions;
6929
7244
 
6930
7245
  // src/components/ListingTable/shared/ListingTableCellIcon.tsx
6931
- import Box40 from "@mui/material/Box";
7246
+ import Box41 from "@mui/material/Box";
6932
7247
  import Typography21 from "@mui/material/Typography";
6933
- import { Fragment as Fragment16, jsx as jsx107, jsxs as jsxs35 } from "react/jsx-runtime";
7248
+ import { Fragment as Fragment16, jsx as jsx107, jsxs as jsxs36 } from "react/jsx-runtime";
6934
7249
  function ListingTableCellIcon({
6935
7250
  icon,
6936
7251
  primary,
@@ -6940,7 +7255,7 @@ function ListingTableCellIcon({
6940
7255
  sx
6941
7256
  }) {
6942
7257
  const iconElement = /* @__PURE__ */ jsx107(
6943
- Box40,
7258
+ Box41,
6944
7259
  {
6945
7260
  sx: __spreadValues({
6946
7261
  display: "flex",
@@ -6952,7 +7267,7 @@ function ListingTableCellIcon({
6952
7267
  children: icon
6953
7268
  }
6954
7269
  );
6955
- const textContent = /* @__PURE__ */ jsxs35(Box40, { sx: { minWidth: 0, flex: 1 }, children: [
7270
+ const textContent = /* @__PURE__ */ jsxs36(Box41, { sx: { minWidth: 0, flex: 1 }, children: [
6956
7271
  /* @__PURE__ */ jsx107(
6957
7272
  Typography21,
6958
7273
  {
@@ -6983,7 +7298,7 @@ function ListingTableCellIcon({
6983
7298
  )
6984
7299
  ] });
6985
7300
  return /* @__PURE__ */ jsx107(
6986
- Box40,
7301
+ Box41,
6987
7302
  {
6988
7303
  sx: __spreadValues({
6989
7304
  display: "flex",
@@ -6991,10 +7306,10 @@ function ListingTableCellIcon({
6991
7306
  gap: 1.5,
6992
7307
  minWidth: 0
6993
7308
  }, sx),
6994
- children: iconPosition === "left" ? /* @__PURE__ */ jsxs35(Fragment16, { children: [
7309
+ children: iconPosition === "left" ? /* @__PURE__ */ jsxs36(Fragment16, { children: [
6995
7310
  iconElement,
6996
7311
  textContent
6997
- ] }) : /* @__PURE__ */ jsxs35(Fragment16, { children: [
7312
+ ] }) : /* @__PURE__ */ jsxs36(Fragment16, { children: [
6998
7313
  textContent,
6999
7314
  iconElement
7000
7315
  ] })
@@ -7198,7 +7513,7 @@ var ListingTableCompound = Object.assign(ListingTable, {
7198
7513
  var ListingTable_default = ListingTableCompound;
7199
7514
 
7200
7515
  // src/animations/ParticleBackground/ParticleBackground.tsx
7201
- import { useEffect as useEffect6, useRef as useRef2 } from "react";
7516
+ import { useEffect as useEffect7, useRef as useRef3 } from "react";
7202
7517
  import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
7203
7518
  import { jsx as jsx110 } from "react/jsx-runtime";
7204
7519
  var ParticleBackground = ({
@@ -7212,9 +7527,9 @@ var ParticleBackground = ({
7212
7527
  repelStrength = 0.35,
7213
7528
  clickBurst = 120
7214
7529
  }) => {
7215
- const canvasRef = useRef2(null);
7530
+ const canvasRef = useRef3(null);
7216
7531
  const { mode } = useColorScheme4();
7217
- useEffect6(() => {
7532
+ useEffect7(() => {
7218
7533
  const canvas = canvasRef.current;
7219
7534
  if (!canvas) return;
7220
7535
  const ctx = canvas.getContext("2d", { alpha: true });
@@ -7291,6 +7606,7 @@ var ParticleBackground = ({
7291
7606
  context.fill();
7292
7607
  }
7293
7608
  }
7609
+ const reducedMotionQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
7294
7610
  function resize() {
7295
7611
  DPR = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
7296
7612
  W = canvasEl.width = Math.floor(window.innerWidth * DPR);
@@ -7298,6 +7614,9 @@ var ParticleBackground = ({
7298
7614
  canvasEl.style.width = window.innerWidth + "px";
7299
7615
  canvasEl.style.height = window.innerHeight + "px";
7300
7616
  computeParticlesCount();
7617
+ if (reducedMotionQuery.matches) {
7618
+ drawStaticFrame();
7619
+ }
7301
7620
  }
7302
7621
  function computeParticlesCount() {
7303
7622
  const area = W * H / (DPR * DPR);
@@ -7312,6 +7631,7 @@ var ParticleBackground = ({
7312
7631
  }
7313
7632
  const mouse = { x: null, y: null };
7314
7633
  const handleMouseMove = (e) => {
7634
+ if (reducedMotionQuery.matches) return;
7315
7635
  mouse.x = e.clientX * DPR;
7316
7636
  mouse.y = e.clientY * DPR;
7317
7637
  };
@@ -7319,6 +7639,7 @@ var ParticleBackground = ({
7319
7639
  mouse.x = mouse.y = null;
7320
7640
  };
7321
7641
  const handleClick = (e) => {
7642
+ if (reducedMotionQuery.matches) return;
7322
7643
  const mx = e.clientX * DPR;
7323
7644
  const my = e.clientY * DPR;
7324
7645
  for (let i = 0; i < particles.length; i++) {
@@ -7358,6 +7679,13 @@ var ParticleBackground = ({
7358
7679
  }
7359
7680
  context.globalAlpha = 1;
7360
7681
  }
7682
+ function drawStaticFrame() {
7683
+ context.clearRect(0, 0, W, H);
7684
+ drawLinks();
7685
+ for (let i = 0; i < particles.length; i++) {
7686
+ particles[i].draw();
7687
+ }
7688
+ }
7361
7689
  function loop() {
7362
7690
  context.clearRect(0, 0, W, H);
7363
7691
  for (let i = 0; i < particles.length; i++) {
@@ -7369,6 +7697,17 @@ var ParticleBackground = ({
7369
7697
  }
7370
7698
  animationFrameId = requestAnimationFrame(loop);
7371
7699
  }
7700
+ function startRendering() {
7701
+ cancelAnimationFrame(animationFrameId);
7702
+ if (reducedMotionQuery.matches) {
7703
+ drawStaticFrame();
7704
+ } else {
7705
+ loop();
7706
+ }
7707
+ }
7708
+ const handleReducedMotionChange = () => {
7709
+ startRendering();
7710
+ };
7372
7711
  resize();
7373
7712
  for (let i = 0; i < 120; i++) particles.push(new Particle());
7374
7713
  computeParticlesCount();
@@ -7376,12 +7715,14 @@ var ParticleBackground = ({
7376
7715
  window.addEventListener("mousemove", handleMouseMove, { passive: true });
7377
7716
  window.addEventListener("mouseleave", handleMouseLeave);
7378
7717
  window.addEventListener("click", handleClick);
7379
- loop();
7718
+ reducedMotionQuery.addEventListener("change", handleReducedMotionChange);
7719
+ startRendering();
7380
7720
  return () => {
7381
7721
  window.removeEventListener("resize", resize);
7382
7722
  window.removeEventListener("mousemove", handleMouseMove);
7383
7723
  window.removeEventListener("mouseleave", handleMouseLeave);
7384
7724
  window.removeEventListener("click", handleClick);
7725
+ reducedMotionQuery.removeEventListener("change", handleReducedMotionChange);
7385
7726
  cancelAnimationFrame(animationFrameId);
7386
7727
  };
7387
7728
  }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
@@ -7390,6 +7731,7 @@ var ParticleBackground = ({
7390
7731
  {
7391
7732
  ref: canvasRef,
7392
7733
  id: "particle-bg",
7734
+ "aria-hidden": "true",
7393
7735
  style: {
7394
7736
  position: "fixed",
7395
7737
  top: 0,
@@ -7413,44 +7755,44 @@ function useThemeContent(contentMap, fallback) {
7413
7755
  var useThemeContent_default = useThemeContent;
7414
7756
 
7415
7757
  // src/hooks/useNotifications/useNotifications.ts
7416
- import * as React33 from "react";
7758
+ import * as React38 from "react";
7417
7759
  var generateId = () => {
7418
7760
  return `notif-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
7419
7761
  };
7420
7762
  var useNotifications = (options = {}) => {
7421
7763
  const { initialNotifications = [] } = options;
7422
- const [notifications, setNotifications] = React33.useState(
7764
+ const [notifications, setNotifications] = React38.useState(
7423
7765
  initialNotifications
7424
7766
  );
7425
- const markRead = React33.useCallback((id) => {
7767
+ const markRead = React38.useCallback((id) => {
7426
7768
  setNotifications(
7427
7769
  (prev) => prev.map((n) => n.id === id ? __spreadProps(__spreadValues({}, n), { read: true }) : n)
7428
7770
  );
7429
7771
  }, []);
7430
- const dismiss = React33.useCallback((id) => {
7772
+ const dismiss = React38.useCallback((id) => {
7431
7773
  setNotifications((prev) => prev.filter((n) => n.id !== id));
7432
7774
  }, []);
7433
- const markAllRead = React33.useCallback(() => {
7775
+ const markAllRead = React38.useCallback(() => {
7434
7776
  setNotifications((prev) => prev.map((n) => __spreadProps(__spreadValues({}, n), { read: true })));
7435
7777
  }, []);
7436
- const clearAll = React33.useCallback(() => {
7778
+ const clearAll = React38.useCallback(() => {
7437
7779
  setNotifications([]);
7438
7780
  }, []);
7439
- const add = React33.useCallback((notification) => {
7781
+ const add = React38.useCallback((notification) => {
7440
7782
  const newNotification = __spreadProps(__spreadValues({}, notification), {
7441
7783
  id: generateId()
7442
7784
  });
7443
7785
  setNotifications((prev) => [newNotification, ...prev]);
7444
7786
  }, []);
7445
- const unreadCount = React33.useMemo(
7787
+ const unreadCount = React38.useMemo(
7446
7788
  () => notifications.filter((n) => !n.read).length,
7447
7789
  [notifications]
7448
7790
  );
7449
- const unreadNotifications = React33.useMemo(
7791
+ const unreadNotifications = React38.useMemo(
7450
7792
  () => notifications.filter((n) => !n.read),
7451
7793
  [notifications]
7452
7794
  );
7453
- const actions = React33.useMemo(
7795
+ const actions = React38.useMemo(
7454
7796
  () => ({
7455
7797
  markRead,
7456
7798
  dismiss,