@telicent-oss/ds 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ds.umd.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@mui/material"), require("react"), require("@mui/material/styles"), require("@mui/material/SvgIcon"), require("@mui/material/Container"), require("@mui/material/AppBar"), require("@mui/material/Box"), require("@mui/material/Stack"), require("@mui/material/Typography"), require("@mui/material/Grid"), require("@emotion/react"), require("@mui/material/List"), require("@mui/material/ListItem"), require("@mui/material/ListItemButton"), require("@mui/material/ListItemIcon"), require("@mui/material/ListItemText"), require("@mui/material/Menu"), require("@mui/material/MenuItem"), require("@mui/material/IconButton"), require("@mui/material/Chip"), require("@mui/material/Divider"), require("@mui/material/Avatar"), require("@mui/material/Popover"), require("@mui/material/Table"), require("@mui/material/TableBody"), require("@mui/material/TableCell"), require("@mui/material/TableHead"), require("@mui/material/TableRow"), require("@mui/material/LinearProgress"), require("@mui/material/Button"), require("@mui/material/Alert"), require("@mui/material/Skeleton"), require("notistack"), require("@mui/material/Tooltip"), require("@mui/material/ToggleButton"), require("@mui/x-date-pickers/DatePicker"), require("@mui/x-date-pickers/LocalizationProvider"), require("@mui/x-date-pickers/AdapterDayjs"), require("@mui/x-date-pickers/DateTimePicker"), require("@mui/material/FormControl"), require("@mui/material/FormControlLabel"), require("@mui/material/FormHelperText"), require("@mui/material/CircularProgress"), require("@mui/material/OutlinedInput"), require("@mui/system"), require("@mui/material/useAutocomplete"), require("@mui/material/Popper"), require("@mui/material/Paper"), require("@mui/material/utils"), require("@mui/material/InputBase"), require("@mui/material/Tabs"), require("@mui/material/Tab"), require("@mui/material/Card"), require("@mui/material/CardHeader"), require("@mui/material/CardContent"), require("@mui/material/CardActions"), require("react-dom"), require("@mui/material/colors"), require("@mui/material/CssBaseline"), require("@mui/material/Modal"), require("@mui/material/Drawer"), require("@mui/material/Collapse")) : typeof define === "function" && define.amd ? define(["exports", "@mui/material", "react", "@mui/material/styles", "@mui/material/SvgIcon", "@mui/material/Container", "@mui/material/AppBar", "@mui/material/Box", "@mui/material/Stack", "@mui/material/Typography", "@mui/material/Grid", "@emotion/react", "@mui/material/List", "@mui/material/ListItem", "@mui/material/ListItemButton", "@mui/material/ListItemIcon", "@mui/material/ListItemText", "@mui/material/Menu", "@mui/material/MenuItem", "@mui/material/IconButton", "@mui/material/Chip", "@mui/material/Divider", "@mui/material/Avatar", "@mui/material/Popover", "@mui/material/Table", "@mui/material/TableBody", "@mui/material/TableCell", "@mui/material/TableHead", "@mui/material/TableRow", "@mui/material/LinearProgress", "@mui/material/Button", "@mui/material/Alert", "@mui/material/Skeleton", "notistack", "@mui/material/Tooltip", "@mui/material/ToggleButton", "@mui/x-date-pickers/DatePicker", "@mui/x-date-pickers/LocalizationProvider", "@mui/x-date-pickers/AdapterDayjs", "@mui/x-date-pickers/DateTimePicker", "@mui/material/FormControl", "@mui/material/FormControlLabel", "@mui/material/FormHelperText", "@mui/material/CircularProgress", "@mui/material/OutlinedInput", "@mui/system", "@mui/material/useAutocomplete", "@mui/material/Popper", "@mui/material/Paper", "@mui/material/utils", "@mui/material/InputBase", "@mui/material/Tabs", "@mui/material/Tab", "@mui/material/Card", "@mui/material/CardHeader", "@mui/material/CardContent", "@mui/material/CardActions", "react-dom", "@mui/material/colors", "@mui/material/CssBaseline", "@mui/material/Modal", "@mui/material/Drawer", "@mui/material/Collapse"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["@telicent-oss/ds"] = {}, global2.material, global2.React, global2.styles$3, global2.MUISvgIcon, global2.MUIContainer, global2.MUIAppBar, global2.MUIBox, global2.MUIStack, global2.Typography, global2.MUIGrid, global2.react, global2.MUIList, global2.MUIListItem, global2.MUIListItemButton, global2.MUIListItemIcon, global2.MUIListItemText, global2.MUIMenu, global2.MUIMenuItem, global2.MUIIconButton, global2.MUIChip, global2.MUIDivider, global2.MUIAvatar, global2.MUIPopOver, global2.TableRaw, global2.TableBodyRaw, global2.TableCellRaw, global2.TableHeadRaw, global2.TableRowRaw, global2.LinearProgressRaw, global2.MUIButton, global2.Alert, global2.SkeletonRaw, global2.notistack, global2.MUITooltip, global2.MUIToggleButton, global2.DatePicker$1, global2.LocalizationProvider, global2.AdapterDayjs, global2.DateTimePicker$1, global2.FormControlRaw, global2.FormControlLabelRaw, global2.FormHelperTextRaw, global2.MUICircularProgress, global2.OutlinedInput, global2.system, global2.useAutocomplete, global2.MUIPopper, global2.MUIPaper, global2.utils$2, global2.InputBase, global2.MuiTabs, global2.MuiTab, global2.MUICard, global2.MUICardHeader, global2.MUICardContent, global2.MUICardAction, global2.ReactDOM, global2.colors, global2.MUICssBaseline, global2.MUIModal, global2.MuiDrawer, global2.Collapse));
3
- })(this, function(exports2, material, React$1, styles$3, MUISvgIcon, MUIContainer, MUIAppBar, MUIBox, MUIStack, Typography, MUIGrid, react, MUIList, MUIListItem, MUIListItemButton, MUIListItemIcon, MUIListItemText, MUIMenu, MUIMenuItem, MUIIconButton, MUIChip, MUIDivider, MUIAvatar, MUIPopOver, TableRaw, TableBodyRaw, TableCellRaw, TableHeadRaw, TableRowRaw, LinearProgressRaw, MUIButton, Alert, SkeletonRaw, notistack, MUITooltip, MUIToggleButton, DatePicker$1, LocalizationProvider, AdapterDayjs, DateTimePicker$1, FormControlRaw, FormControlLabelRaw, FormHelperTextRaw, MUICircularProgress, OutlinedInput, system, useAutocomplete, MUIPopper, MUIPaper, utils$2, InputBase, MuiTabs, MuiTab, MUICard, MUICardHeader, MUICardContent, MUICardAction, ReactDOM, colors, MUICssBaseline, MUIModal, MuiDrawer, Collapse) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@mui/material"), require("react"), require("@mui/material/styles"), require("@mui/material/SvgIcon"), require("@mui/material/Container"), require("@mui/material/AppBar"), require("@mui/material/Box"), require("@mui/material/Stack"), require("@mui/material/Typography"), require("@mui/material/Grid"), require("@emotion/react"), require("@mui/material/List"), require("@mui/material/ListItem"), require("@mui/material/ListItemButton"), require("@mui/material/ListItemIcon"), require("@mui/material/ListItemText"), require("@mui/material/Menu"), require("@mui/material/MenuItem"), require("@mui/material/IconButton"), require("@mui/material/Chip"), require("@mui/material/Divider"), require("@mui/material/Avatar"), require("@mui/material/Popover"), require("@mui/material/Table"), require("@mui/material/TableBody"), require("@mui/material/TableCell"), require("@mui/material/TableHead"), require("@mui/material/TableRow"), require("@mui/material/LinearProgress"), require("@mui/material/Button"), require("@mui/material/Alert"), require("@mui/material/AlertTitle"), require("@mui/material/Skeleton"), require("notistack"), require("@mui/material/Tooltip"), require("@mui/material/ToggleButton"), require("@mui/x-date-pickers/DatePicker"), require("@mui/x-date-pickers/LocalizationProvider"), require("@mui/x-date-pickers/AdapterDayjs"), require("@mui/x-date-pickers/DateTimePicker"), require("@mui/material/FormControl"), require("@mui/material/FormControlLabel"), require("@mui/material/FormHelperText"), require("@mui/material/CircularProgress"), require("@mui/material/OutlinedInput"), require("@mui/system"), require("@mui/material/useAutocomplete"), require("@mui/material/Popper"), require("@mui/material/Paper"), require("@mui/material/utils"), require("@mui/material/InputBase"), require("@mui/material/Tabs"), require("@mui/material/Tab"), require("@mui/material/Accordion"), require("@mui/material/AccordionSummary"), require("@mui/material/AccordionDetails"), require("@mui/material/Card"), require("@mui/material/CardHeader"), require("@mui/material/CardContent"), require("@mui/material/CardActions"), require("react-dom"), require("@mui/material/colors"), require("@mui/material/CssBaseline"), require("@mui/material/Modal"), require("@mui/material/Drawer"), require("@mui/material/Collapse")) : typeof define === "function" && define.amd ? define(["exports", "@mui/material", "react", "@mui/material/styles", "@mui/material/SvgIcon", "@mui/material/Container", "@mui/material/AppBar", "@mui/material/Box", "@mui/material/Stack", "@mui/material/Typography", "@mui/material/Grid", "@emotion/react", "@mui/material/List", "@mui/material/ListItem", "@mui/material/ListItemButton", "@mui/material/ListItemIcon", "@mui/material/ListItemText", "@mui/material/Menu", "@mui/material/MenuItem", "@mui/material/IconButton", "@mui/material/Chip", "@mui/material/Divider", "@mui/material/Avatar", "@mui/material/Popover", "@mui/material/Table", "@mui/material/TableBody", "@mui/material/TableCell", "@mui/material/TableHead", "@mui/material/TableRow", "@mui/material/LinearProgress", "@mui/material/Button", "@mui/material/Alert", "@mui/material/AlertTitle", "@mui/material/Skeleton", "notistack", "@mui/material/Tooltip", "@mui/material/ToggleButton", "@mui/x-date-pickers/DatePicker", "@mui/x-date-pickers/LocalizationProvider", "@mui/x-date-pickers/AdapterDayjs", "@mui/x-date-pickers/DateTimePicker", "@mui/material/FormControl", "@mui/material/FormControlLabel", "@mui/material/FormHelperText", "@mui/material/CircularProgress", "@mui/material/OutlinedInput", "@mui/system", "@mui/material/useAutocomplete", "@mui/material/Popper", "@mui/material/Paper", "@mui/material/utils", "@mui/material/InputBase", "@mui/material/Tabs", "@mui/material/Tab", "@mui/material/Accordion", "@mui/material/AccordionSummary", "@mui/material/AccordionDetails", "@mui/material/Card", "@mui/material/CardHeader", "@mui/material/CardContent", "@mui/material/CardActions", "react-dom", "@mui/material/colors", "@mui/material/CssBaseline", "@mui/material/Modal", "@mui/material/Drawer", "@mui/material/Collapse"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["@telicent-oss/ds"] = {}, global2.material, global2.React, global2.styles$3, global2.MUISvgIcon, global2.MUIContainer, global2.MUIAppBar, global2.MUIBox, global2.MUIStack, global2.Typography, global2.MUIGrid, global2.react, global2.MUIList, global2.MUIListItem, global2.MUIListItemButton, global2.MUIListItemIcon, global2.MUIListItemText, global2.MUIMenu, global2.MUIMenuItem, global2.MUIIconButton, global2.MUIChip, global2.MUIDivider, global2.MUIAvatar, global2.MUIPopOver, global2.TableRaw, global2.TableBodyRaw, global2.TableCellRaw, global2.TableHeadRaw, global2.TableRowRaw, global2.LinearProgressRaw, global2.MUIButton, global2.Alert, global2.AlertTitle, global2.SkeletonRaw, global2.notistack, global2.MUITooltip, global2.MUIToggleButton, global2.DatePicker$1, global2.LocalizationProvider, global2.AdapterDayjs, global2.DateTimePicker$1, global2.FormControlRaw, global2.FormControlLabelRaw, global2.FormHelperTextRaw, global2.MUICircularProgress, global2.OutlinedInput, global2.system, global2.useAutocomplete, global2.MUIPopper, global2.MUIPaper, global2.utils$2, global2.InputBase, global2.MuiTabs, global2.MuiTab, global2.MuiAccordion, global2.MuiAccordionSummary, global2.MuiAccordionDetails, global2.MUICard, global2.MUICardHeader, global2.MUICardContent, global2.MUICardAction, global2.ReactDOM, global2.colors, global2.MUICssBaseline, global2.MUIModal, global2.MuiDrawer, global2.Collapse));
3
+ })(this, function(exports2, material, React$1, styles$3, MUISvgIcon, MUIContainer, MUIAppBar, MUIBox, MUIStack, Typography, MUIGrid, react, MUIList, MUIListItem, MUIListItemButton, MUIListItemIcon, MUIListItemText, MUIMenu, MUIMenuItem, MUIIconButton, MUIChip, MUIDivider, MUIAvatar, MUIPopOver, TableRaw, TableBodyRaw, TableCellRaw, TableHeadRaw, TableRowRaw, LinearProgressRaw, MUIButton, Alert, AlertTitle, SkeletonRaw, notistack, MUITooltip, MUIToggleButton, DatePicker$1, LocalizationProvider, AdapterDayjs, DateTimePicker$1, FormControlRaw, FormControlLabelRaw, FormHelperTextRaw, MUICircularProgress, OutlinedInput, system, useAutocomplete, MUIPopper, MUIPaper, utils$2, InputBase, MuiTabs, MuiTab, MuiAccordion, MuiAccordionSummary, MuiAccordionDetails, MUICard, MUICardHeader, MUICardContent, MUICardAction, ReactDOM, colors, MUICssBaseline, MUIModal, MuiDrawer, Collapse) {
4
4
  "use strict";var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
6
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -51,6 +51,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
51
51
  const LinearProgressRaw__default = /* @__PURE__ */ _interopDefault(LinearProgressRaw);
52
52
  const MUIButton__default = /* @__PURE__ */ _interopDefault(MUIButton);
53
53
  const Alert__default = /* @__PURE__ */ _interopDefault(Alert);
54
+ const AlertTitle__default = /* @__PURE__ */ _interopDefault(AlertTitle);
54
55
  const SkeletonRaw__default = /* @__PURE__ */ _interopDefault(SkeletonRaw);
55
56
  const MUITooltip__default = /* @__PURE__ */ _interopDefault(MUITooltip);
56
57
  const MUIToggleButton__default = /* @__PURE__ */ _interopDefault(MUIToggleButton);
@@ -65,6 +66,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
65
66
  const InputBase__default = /* @__PURE__ */ _interopDefault(InputBase);
66
67
  const MuiTabs__default = /* @__PURE__ */ _interopDefault(MuiTabs);
67
68
  const MuiTab__default = /* @__PURE__ */ _interopDefault(MuiTab);
69
+ const MuiAccordion__default = /* @__PURE__ */ _interopDefault(MuiAccordion);
70
+ const MuiAccordionSummary__default = /* @__PURE__ */ _interopDefault(MuiAccordionSummary);
71
+ const MuiAccordionDetails__default = /* @__PURE__ */ _interopDefault(MuiAccordionDetails);
68
72
  const MUICard__default = /* @__PURE__ */ _interopDefault(MUICard);
69
73
  const MUICardHeader__default = /* @__PURE__ */ _interopDefault(MUICardHeader);
70
74
  const MUICardContent__default = /* @__PURE__ */ _interopDefault(MUICardContent);
@@ -2068,6 +2072,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2068
2072
  /* @__PURE__ */ jsx("circle", { cx: "18", cy: "13.5", r: "3.375", stroke: "currentColor", strokeWidth: "2.25" }),
2069
2073
  /* @__PURE__ */ jsx("path", { d: "M12 25.5V23.25C12 21.5931 13.3431 20.25 15 20.25H21C22.6569 20.25 24 21.5931 24 23.25V25.5", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round" })
2070
2074
  ] }) });
2075
+ const ExpandMoreIcon = (iconProps) => /* @__PURE__ */ jsx(MUISvgIcon__default.default, { ...iconProps, children: /* @__PURE__ */ jsx("path", { d: "M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z", fill: "currentColor" }) });
2076
+ const ExpandLessIcon = (iconProps) => /* @__PURE__ */ jsx(MUISvgIcon__default.default, { ...iconProps, children: /* @__PURE__ */ jsx("path", { d: "M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.59L18 14z", fill: "currentColor" }) });
2071
2077
  const AddIcon = utils$2.createSvgIcon(/* @__PURE__ */ jsxRuntimeExports.jsx("path", {
2072
2078
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
2073
2079
  }), "Add");
@@ -26047,10 +26053,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26047
26053
  };
26048
26054
  const UserProfile = ({
26049
26055
  fullName,
26050
- children
26056
+ children,
26057
+ id = "user-profile",
26058
+ ariaLabel = "User menu"
26051
26059
  }) => {
26052
26060
  const [anchorEl, setAnchorEl] = React$1.useState(null);
26053
26061
  const open = Boolean(anchorEl);
26062
+ const menuId = `${id}-menu`;
26054
26063
  const handleClick = (event) => {
26055
26064
  setAnchorEl(event.currentTarget);
26056
26065
  };
@@ -26058,10 +26067,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26058
26067
  setAnchorEl(null);
26059
26068
  };
26060
26069
  return /* @__PURE__ */ jsxs(Fragment, { children: [
26061
- /* @__PURE__ */ jsxs(MUIStack__default.default, { onClick: handleClick, width: "max-content", direction: "row", alignItems: "center", spacing: 1, sx: {
26070
+ /* @__PURE__ */ jsxs(MUIStack__default.default, { component: "button", type: "button", id, "aria-label": ariaLabel, "aria-haspopup": "menu", "aria-expanded": open, "aria-controls": open ? menuId : void 0, onClick: handleClick, width: "max-content", direction: "row", alignItems: "center", spacing: 1, sx: {
26071
+ background: "none",
26072
+ border: "none",
26073
+ padding: 0,
26074
+ color: "inherit",
26075
+ font: "inherit",
26076
+ textAlign: "inherit",
26062
26077
  cursor: "pointer"
26063
26078
  }, children: [
26064
- /* @__PURE__ */ jsx(Text$1, { variant: "subtitle1", component: "h2", sx: {
26079
+ fullName && /* @__PURE__ */ jsx(Text$1, { variant: "subtitle1", component: "h2", sx: {
26065
26080
  display: {
26066
26081
  xs: "none",
26067
26082
  sm: "block"
@@ -26081,9 +26096,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26081
26096
  height: 32,
26082
26097
  borderColor: "inherit"
26083
26098
  }, children: /* @__PURE__ */ jsx(UserIcon, { color: "inherit" }) }),
26084
- /* @__PURE__ */ jsx(MUIIconButton__default.default, { "aria-label": "user-profile", color: "inherit", children: /* @__PURE__ */ jsx(DownArrow, { rotation: open ? 180 : void 0, size: "sm", color: "primary" }) })
26099
+ /* @__PURE__ */ jsx(MUIBox__default.default, { component: "span", "aria-hidden": true, sx: {
26100
+ display: "inline-flex",
26101
+ alignItems: "center",
26102
+ justifyContent: "center",
26103
+ padding: 1,
26104
+ borderRadius: 1,
26105
+ color: "inherit",
26106
+ transition: "background-color 150ms cubic-bezier(0.4, 0, 0.2, 1)",
26107
+ "&:hover": {
26108
+ backgroundColor: (theme) => theme.palette.action.hover
26109
+ }
26110
+ }, children: /* @__PURE__ */ jsx(DownArrow, { rotation: open ? 180 : void 0, size: "sm", color: "primary" }) })
26085
26111
  ] }),
26086
- /* @__PURE__ */ jsx(MUIMenu__default.default, { anchorEl, id: "user-profile-menu", open, onClose: handleClose, onClick: handleClose, MenuListProps: {
26112
+ /* @__PURE__ */ jsx(MUIMenu__default.default, { anchorEl, id: menuId, open, onClose: handleClose, onClick: handleClose, MenuListProps: {
26087
26113
  component: "div",
26088
26114
  sx: {
26089
26115
  padding: 0
@@ -26281,6 +26307,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26281
26307
  }, icon: menuItem == null ? void 0 : menuItem.icon, faIcon: menuItem == null ? void 0 : menuItem.faIcon, value: menuItem.value, selected: menuItem.value === selectedMenuItem.value }, `${id}-item-${index2}`)) })
26282
26308
  ] });
26283
26309
  };
26310
+ const SvgIcon = (props) => /* @__PURE__ */ jsx(MUISvgIcon__default.default, { ...props });
26284
26311
  const Table = (props) => /* @__PURE__ */ jsx(TableRaw__default.default, { ...props });
26285
26312
  const TableBody = (props) => /* @__PURE__ */ jsx(TableBodyRaw__default.default, { ...props });
26286
26313
  const TableCell = (props) => /* @__PURE__ */ jsx(TableCellRaw__default.default, { ...props });
@@ -26299,7 +26326,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26299
26326
  );
26300
26327
  };
26301
26328
  const Spinner = (props) => {
26302
- return /* @__PURE__ */ jsx(material.CircularProgress, { ...props });
26329
+ return /* @__PURE__ */ jsx(material.CircularProgress, { "aria-label": "Loading", ...props });
26303
26330
  };
26304
26331
  const Dialog = ({
26305
26332
  open,
@@ -26335,7 +26362,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26335
26362
  const theme = useExtendedTheme();
26336
26363
  return /* @__PURE__ */ jsx(MUIButton__default.default, { variant: "contained", ref, ...buttonProps, sx: {
26337
26364
  border: `1px solid ${(_a = theme.palette.tertiary) == null ? void 0 : _a.main}`,
26338
- color: (_b = theme.palette.tertiary) == null ? void 0 : _b.contrastText,
26365
+ color: (_b = theme.palette.tertiary) == null ? void 0 : _b.main,
26339
26366
  backgroundColor: theme.palette.mode === "dark" ? "#080808" : "#FFFFFF",
26340
26367
  "&:hover": {
26341
26368
  backgroundColor: `${(_c = theme.palette.tertiary) == null ? void 0 : _c.main}14`,
@@ -26559,6 +26586,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
26559
26586
  ...Components
26560
26587
  }, ...otherProps, children });
26561
26588
  const Tooltip = (tooltipProps) => /* @__PURE__ */ jsx(MUITooltip__default.default, { ...tooltipProps });
26589
+ const ToggleButton = (props) => /* @__PURE__ */ jsx(MUIToggleButton__default.default, { ...props });
26562
26590
  const StyledToggleButton$1 = styles$3.styled(MUIToggleButton__default.default)({
26563
26591
  border: 0
26564
26592
  });
@@ -27088,9 +27116,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27088
27116
  return /* @__PURE__ */ jsx(material.Tooltip, { title: message, onClose: handleTooltipClose, open, leaveDelay: 1400, arrow: true, placement: "right", componentsProps: {
27089
27117
  tooltip: {
27090
27118
  sx: {
27091
- bgcolor: message !== successMsg ? theme.palette.error.main : void 0,
27119
+ // Read `error.dark` (not `.main`): MUI Tooltip's text is
27120
+ // hardcoded white, and `.dark` is pinned in both palettes to
27121
+ // the deep red that passes AA white-on-red (7.78:1 dark,
27122
+ // ~8:1 light). `error.main` is tuned for FormLabel text
27123
+ // contrast on page bg and would fail here in dark mode.
27124
+ bgcolor: message !== successMsg ? theme.palette.error.dark : void 0,
27092
27125
  [`& .${material.tooltipClasses.arrow}`]: {
27093
- color: message !== successMsg ? theme.palette.error.main : void 0
27126
+ color: message !== successMsg ? theme.palette.error.dark : void 0
27094
27127
  },
27095
27128
  fontSize: "0.75rem"
27096
27129
  }
@@ -27329,6 +27362,67 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
27329
27362
  );
27330
27363
  });
27331
27364
  TabPanel.displayName = "TabPanel";
27365
+ const Menu = ({
27366
+ "aria-label": ariaLabel,
27367
+ button,
27368
+ options,
27369
+ onSelect,
27370
+ onOpenChange,
27371
+ menuId = "menu",
27372
+ anchorOrigin = {
27373
+ vertical: "bottom",
27374
+ horizontal: "right"
27375
+ },
27376
+ transformOrigin = {
27377
+ vertical: "top",
27378
+ horizontal: "right"
27379
+ },
27380
+ autoFocusSelected = true,
27381
+ sx
27382
+ }) => {
27383
+ const [anchorEl, setAnchorEl] = React__namespace.useState(null);
27384
+ const open = Boolean(anchorEl);
27385
+ const selectedIndex = React__namespace.useMemo(() => options.findIndex((o2) => o2.selected), [options]);
27386
+ const handleOpen = (e) => {
27387
+ setAnchorEl(e.currentTarget);
27388
+ onOpenChange == null ? void 0 : onOpenChange(true);
27389
+ };
27390
+ const handleClose = () => {
27391
+ setAnchorEl(null);
27392
+ onOpenChange == null ? void 0 : onOpenChange(false);
27393
+ };
27394
+ const ariaControls = open ? menuId : void 0;
27395
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
27396
+ button({
27397
+ onClick: handleOpen,
27398
+ "aria-controls": ariaControls,
27399
+ "aria-haspopup": true,
27400
+ "aria-expanded": open ? true : void 0
27401
+ }),
27402
+ /* @__PURE__ */ jsx(MUIMenu__default.default, { id: menuId, anchorEl, open, onClose: handleClose, anchorOrigin, transformOrigin, MenuListProps: {
27403
+ "aria-label": ariaLabel,
27404
+ ...autoFocusSelected && selectedIndex >= 0 ? {
27405
+ autoFocusItem: true
27406
+ } : {}
27407
+ }, sx, children: options.flatMap((opt, idx) => {
27408
+ const item = /* @__PURE__ */ jsxs(MUIMenuItem__default.default, { disabled: opt.disabled, selected: Boolean(opt.selected), autoFocus: autoFocusSelected && idx === selectedIndex, "aria-selected": opt.selected ? "true" : void 0, onClick: () => {
27409
+ var _a;
27410
+ if (opt.href) window.open(opt.href, opt.target ?? "_self");
27411
+ (_a = opt.onClick) == null ? void 0 : _a.call(opt);
27412
+ onSelect == null ? void 0 : onSelect(opt);
27413
+ handleClose();
27414
+ }, children: [
27415
+ opt.icon ? /* @__PURE__ */ jsx(MUIListItemIcon__default.default, { children: opt.icon }) : null,
27416
+ /* @__PURE__ */ jsx(MUIListItemText__default.default, { children: opt.label })
27417
+ ] }, opt.id);
27418
+ return opt.dividerAbove ? [/* @__PURE__ */ jsx(MUIDivider__default.default, { component: "li", role: "separator" }, `${opt.id}-divider`), item] : [item];
27419
+ }) })
27420
+ ] });
27421
+ };
27422
+ const MenuItem = (props) => /* @__PURE__ */ jsx(MUIMenuItem__default.default, { ...props });
27423
+ const Accordion = (props) => /* @__PURE__ */ jsx(MuiAccordion__default.default, { ...props });
27424
+ const AccordionSummary = (props) => /* @__PURE__ */ jsx(MuiAccordionSummary__default.default, { expandIcon: /* @__PURE__ */ jsx(ExpandMoreIcon, {}), ...props });
27425
+ const AccordionDetails = (props) => /* @__PURE__ */ jsx(MuiAccordionDetails__default.default, { ...props });
27332
27426
  const Card = ({
27333
27427
  maxWidth,
27334
27428
  ...cardProps
@@ -30094,6 +30188,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30094
30188
  }, children: !(context == null ? void 0 : context.get(targetId, "minimised")) && children })
30095
30189
  ] });
30096
30190
  };
30191
+ const Popper = (props) => /* @__PURE__ */ jsx(MUIPopper__default.default, { ...props });
30097
30192
  const Toolbar = ({
30098
30193
  children,
30099
30194
  sx,
@@ -30102,6 +30197,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30102
30197
  const theme = material.useTheme();
30103
30198
  return /* @__PURE__ */ jsx(material.Toolbar, { disableGutters: true, variant: "dense", sx: {
30104
30199
  backgroundColor: theme.palette.mode === "dark" ? "#2e2e2e" : "#FFFFFF",
30200
+ borderTop: theme.palette.mode === "dark" ? "none" : "1px solid #DEDEDE",
30201
+ borderBottom: theme.palette.mode === "dark" ? "none" : "1px solid #DEDEDE",
30105
30202
  paddingX: 2,
30106
30203
  paddingY: 1,
30107
30204
  ...sx
@@ -30122,43 +30219,66 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30122
30219
  }
30123
30220
  };
30124
30221
  const main$3 = "#F56AAA";
30222
+ const mainLight$1 = "#B70071";
30125
30223
  const DocumentPink = {
30126
30224
  dark: {
30127
30225
  primary: {
30128
30226
  main: main$3,
30129
- dark: styles$3.alpha(main$3, 0.7),
30130
- light: styles$3.alpha(main$3, 0.5),
30227
+ dark: "#C45488",
30228
+ light: "#F787BB",
30131
30229
  contrastText: colors.common.black
30132
30230
  }
30231
+ },
30232
+ light: {
30233
+ primary: {
30234
+ main: mainLight$1,
30235
+ dark: "#92005A",
30236
+ light: "#C5338D",
30237
+ contrastText: "#FFFFFF"
30238
+ },
30239
+ background: {
30240
+ default: "#F9F9F9",
30241
+ paper: "#FFFFFF"
30242
+ },
30243
+ text: {
30244
+ primary: "#1A1D21",
30245
+ secondary: "#5A6172"
30246
+ },
30247
+ divider: "rgba(26, 29, 33, 0.12)",
30248
+ action: {
30249
+ hover: "rgba(26, 29, 33, 0.04)"
30250
+ }
30133
30251
  }
30134
30252
  };
30135
30253
  const main$2 = "#F2A64B";
30136
- const mainLight = "#A65200";
30254
+ const mainLight = "#C24D00";
30137
30255
  const GraphOrange = {
30138
30256
  dark: {
30139
30257
  primary: {
30140
30258
  main: main$2,
30141
- dark: styles$3.alpha(main$2, 0.7),
30142
- light: styles$3.alpha(main$2, 0.5),
30259
+ dark: "#C1843C",
30260
+ light: "#F4B76F",
30143
30261
  contrastText: colors.common.black
30144
30262
  }
30145
30263
  },
30146
30264
  light: {
30147
- // The app colour shifts per mode rather than splitting into a
30148
- // second token, so components keep reading primary alone.
30149
- // contrastThreshold 4.5 resolves #FFF on mainLight (5.49:1).
30265
+ // Known trade-off: `mainLight` is tuned for brand recognition and does
30266
+ // not clear WCAG 2.2 AA (4.5:1) in every component context — notably
30267
+ // established patterns like the Secondary button variant where it
30268
+ // renders as foreground on light surfaces. Shipped per explicit product
30269
+ // direction, prioritising brand fidelity over universal AA
30270
+ // conformance for this specific token. The gap is documented here
30271
+ // rather than silently carried; revisit against the system-wide target
30272
+ // in docs/adr/0001-wcag-2.2-aa.md if a brand or component update
30273
+ // closes it.
30150
30274
  //
30151
- // dark / light are ramp steps, not alpha: over a LIGHT ground
30152
- // alpha(mainLight, 0.7) resolves lighter than main, so .dark
30153
- // would read as a tint. Dark mode does not have that problem,
30154
- // which is why it keeps alpha() above.
30275
+ // The app colour shifts per mode rather than splitting into a second
30276
+ // token, so components keep reading primary alone. contrastThreshold
30277
+ // 4.5 resolves #FFF on mainLight (5.49:1).
30155
30278
  primary: {
30156
30279
  main: mainLight,
30157
- // 700
30158
- dark: "#874300",
30159
- // 800 — pressed, link hover
30160
- light: "#C06806",
30161
- // 600 — still 4.02:1, safe on borders
30280
+ dark: "#9B3D00",
30281
+ light: "#CE7033",
30162
30282
  contrastText: "#FFFFFF"
30163
30283
  },
30164
30284
  background: {
@@ -30182,16 +30302,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30182
30302
  dark: {
30183
30303
  primary: {
30184
30304
  main: darkMain$1,
30185
- dark: styles$3.alpha(darkMain$1, 0.7),
30186
- light: styles$3.alpha(darkMain$1, 0.5),
30305
+ dark: "#1F8CB8",
30306
+ light: "#1F6D8C",
30187
30307
  contrastText: colors.common.black
30188
30308
  }
30189
30309
  },
30190
30310
  light: {
30191
30311
  primary: {
30192
30312
  main: lightMain,
30193
- dark: styles$3.alpha(lightMain, 0.7),
30194
- light: styles$3.alpha(lightMain, 0.5),
30313
+ dark: "#6C7AD8",
30314
+ light: "#949FE2",
30195
30315
  contrastText: "#FFFFFF"
30196
30316
  }
30197
30317
  }
@@ -30260,6 +30380,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30260
30380
  }]
30261
30381
  }
30262
30382
  };
30383
+ const generateAccordionOverrides = (_uiTheme) => ({
30384
+ MuiAccordion: {
30385
+ defaultProps: {
30386
+ elevation: 0,
30387
+ disableGutters: true
30388
+ },
30389
+ styleOverrides: {
30390
+ root: {
30391
+ backgroundColor: "transparent",
30392
+ "&:before": {
30393
+ display: "none"
30394
+ }
30395
+ }
30396
+ }
30397
+ }
30398
+ });
30263
30399
  const generateButtonOverrides = (_uiTheme) => ({
30264
30400
  MuiButton: {
30265
30401
  styleOverrides: {
@@ -30496,6 +30632,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
30496
30632
  `;
30497
30633
  const generateComponentOverrides = (uiTheme) => ({
30498
30634
  ...AVATAR_OVERRIDES,
30635
+ ...generateAccordionOverrides(),
30499
30636
  ...generateButtonOverrides(),
30500
30637
  ...generateCardOverrides(),
30501
30638
  ...generateTabsOverrides(),
@@ -31307,11 +31444,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
31307
31444
  const CONTRAST_THRESHOLD = 4.5;
31308
31445
  const baseLightPalette = {
31309
31446
  contrastThreshold: CONTRAST_THRESHOLD,
31447
+ // Tertiary is a theme-agnostic neutral grey; pinned here rather than
31448
+ // re-stated in every theme file. `main` reads at 6.20:1 as text on white
31449
+ // and 5.97:1 as filled bg behind white — passes AA in both roles.
31310
31450
  tertiary: {
31311
- main: "#8094A3",
31312
- dark: styles$3.alpha("#8094A3", 0.7),
31313
- light: styles$3.alpha("#8094A3", 0.5),
31314
- contrastText: "#252525"
31451
+ main: "#5A6172",
31452
+ dark: "#454B59",
31453
+ light: "#767E90",
31454
+ contrastText: "#FFFFFF"
31315
31455
  },
31316
31456
  text: {
31317
31457
  primary: "#000000",
@@ -31320,15 +31460,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
31320
31460
  },
31321
31461
  background: {
31322
31462
  default: "#F9F9F9"
31463
+ },
31464
+ error: {
31465
+ main: "#d32f2f",
31466
+ dark: "#b71c1c"
31323
31467
  }
31324
31468
  };
31325
31469
  const baseDarkPalette = {
31326
31470
  contrastThreshold: CONTRAST_THRESHOLD,
31471
+ // Mirrors the light-mode tertiary role: `main` reads at 7.66:1 as text on
31472
+ // the dark page bg (#1D1D1D) and 6.93:1 as filled bg behind dark text.
31327
31473
  tertiary: {
31328
- main: "#6B6B6B",
31329
- dark: styles$3.alpha("#6B6B6B", 0.7),
31330
- light: styles$3.alpha("#6B6B6B", 0.5),
31331
- contrastText: "#FFFFFF"
31474
+ main: "#A0A0A0",
31475
+ dark: "#808080",
31476
+ light: "#BFBFBF",
31477
+ contrastText: "#1A1A1A"
31332
31478
  },
31333
31479
  text: {
31334
31480
  primary: "#ececec",
@@ -31339,22 +31485,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
31339
31485
  default: "#1D1D1D",
31340
31486
  paper: "#252525"
31341
31487
  },
31342
- // MUI's dark-mode default success is green[400] (#66bb6a) — bright enough
31343
- // that getContrastText picks dark text (~2.5:1 to white would fail AA).
31344
- // green[800] gives ~5.35:1 to white, so getContrastText resolves to #fff
31345
- // and filled Alert renders success with white text + icon. Restores
31346
- // pre-3.6.0 catalog behaviour without a component-level override.
31488
+ // Darker than MUI's dark-mode default so getContrastText picks white on
31489
+ // filled success Alerts.
31347
31490
  success: {
31348
31491
  main: "#2e7d32"
31349
31492
  },
31350
- // MUI's dark-mode default error.main is red[500] (#f44336). Contrast to
31351
- // white is 3.76:1 — with the 4.5 threshold, getContrastText would flip to
31352
- // dark text on red, changing error's long-standing visual identity.
31353
- // Overriding main to red[700] (#d32f2f, contrast 5.36:1) keeps white text
31354
- // and pushes the actual filled-Alert background (which paints .dark in
31355
- // dark mode) to a slightly deeper red — no component override needed.
31356
31493
  error: {
31357
- main: "#d32f2f"
31494
+ main: "#ff5252",
31495
+ dark: "#c62828"
31358
31496
  },
31359
31497
  grey: colors.grey
31360
31498
  };
@@ -79469,63 +79607,6 @@ ${family}`
79469
79607
  width: 25,
79470
79608
  height: 20
79471
79609
  } }) });
79472
- const Menu = ({
79473
- "aria-label": ariaLabel,
79474
- button,
79475
- options,
79476
- onSelect,
79477
- onOpenChange,
79478
- menuId = "menu",
79479
- anchorOrigin = {
79480
- vertical: "bottom",
79481
- horizontal: "right"
79482
- },
79483
- transformOrigin = {
79484
- vertical: "top",
79485
- horizontal: "right"
79486
- },
79487
- autoFocusSelected = true,
79488
- sx
79489
- }) => {
79490
- const [anchorEl, setAnchorEl] = React__namespace.useState(null);
79491
- const open = Boolean(anchorEl);
79492
- const selectedIndex = React__namespace.useMemo(() => options.findIndex((o2) => o2.selected), [options]);
79493
- const handleOpen = (e) => {
79494
- setAnchorEl(e.currentTarget);
79495
- onOpenChange == null ? void 0 : onOpenChange(true);
79496
- };
79497
- const handleClose = () => {
79498
- setAnchorEl(null);
79499
- onOpenChange == null ? void 0 : onOpenChange(false);
79500
- };
79501
- const ariaControls = open ? menuId : void 0;
79502
- return /* @__PURE__ */ jsxs(Fragment, { children: [
79503
- button({
79504
- onClick: handleOpen,
79505
- "aria-controls": ariaControls,
79506
- "aria-haspopup": true,
79507
- "aria-expanded": open ? true : void 0
79508
- }),
79509
- /* @__PURE__ */ jsx(MUIMenu__default.default, { id: menuId, anchorEl, open, onClose: handleClose, anchorOrigin, transformOrigin, MenuListProps: {
79510
- "aria-label": ariaLabel,
79511
- ...autoFocusSelected && selectedIndex >= 0 ? {
79512
- autoFocusItem: true
79513
- } : {}
79514
- }, sx, children: options.flatMap((opt, idx) => {
79515
- const item = /* @__PURE__ */ jsxs(MUIMenuItem__default.default, { disabled: opt.disabled, selected: Boolean(opt.selected), autoFocus: autoFocusSelected && idx === selectedIndex, "aria-selected": opt.selected ? "true" : void 0, onClick: () => {
79516
- var _a;
79517
- if (opt.href) window.open(opt.href, opt.target ?? "_self");
79518
- (_a = opt.onClick) == null ? void 0 : _a.call(opt);
79519
- onSelect == null ? void 0 : onSelect(opt);
79520
- handleClose();
79521
- }, children: [
79522
- opt.icon ? /* @__PURE__ */ jsx(MUIListItemIcon__default.default, { children: opt.icon }) : null,
79523
- /* @__PURE__ */ jsx(MUIListItemText__default.default, { children: opt.label })
79524
- ] }, opt.id);
79525
- return opt.dividerAbove ? [/* @__PURE__ */ jsx(MUIDivider__default.default, { component: "li", role: "separator" }, `${opt.id}-divider`), item] : [item];
79526
- }) })
79527
- ] });
79528
- };
79529
79610
  const resolveVisibleBaseLayerIndex = (layers) => {
79530
79611
  const storedLabel = localStorage.getItem("map.baselayer");
79531
79612
  const baseLayers = layers.filter((l) => l.get("kind") !== "overlay-vector");
@@ -87242,14 +87323,25 @@ ${family}`
87242
87323
  enumerable: true,
87243
87324
  get: () => styles$3.alpha
87244
87325
  });
87326
+ Object.defineProperty(exports2, "dividerClasses", {
87327
+ enumerable: true,
87328
+ get: () => MUIDivider.dividerClasses
87329
+ });
87245
87330
  Object.defineProperty(exports2, "Alert", {
87246
87331
  enumerable: true,
87247
87332
  get: () => Alert__default.default
87248
87333
  });
87334
+ Object.defineProperty(exports2, "AlertTitle", {
87335
+ enumerable: true,
87336
+ get: () => AlertTitle__default.default
87337
+ });
87249
87338
  Object.defineProperty(exports2, "closeSnackbar", {
87250
87339
  enumerable: true,
87251
87340
  get: () => notistack.closeSnackbar
87252
87341
  });
87342
+ exports2.Accordion = Accordion;
87343
+ exports2.AccordionDetails = AccordionDetails;
87344
+ exports2.AccordionSummary = AccordionSummary;
87253
87345
  exports2.AppBar = AppBar;
87254
87346
  exports2.AppChrome = AppChrome;
87255
87347
  exports2.AppInfo = AppInfo;
@@ -87276,6 +87368,7 @@ ${family}`
87276
87368
  exports2.CardContent = CardContent;
87277
87369
  exports2.CardHeader = CardHeader;
87278
87370
  exports2.Checkbox = Checkbox;
87371
+ exports2.ChevronRightIcon = ChevronRightIcon;
87279
87372
  exports2.Chip = Chip;
87280
87373
  exports2.ClockIcon = ClockIcon;
87281
87374
  exports2.CloseIcon = CloseIcon;
@@ -87299,6 +87392,8 @@ ${family}`
87299
87392
  exports2.ErrorFallback = ErrorFallback;
87300
87393
  exports2.ErrorFallbackText = ErrorFallbackText;
87301
87394
  exports2.ErrorFallbackWrapper = ErrorFallbackWrapper;
87395
+ exports2.ExpandLessIcon = ExpandLessIcon;
87396
+ exports2.ExpandMoreIcon = ExpandMoreIcon;
87302
87397
  exports2.FixedPanel = Panel;
87303
87398
  exports2.FlexBox = FlexBox;
87304
87399
  exports2.FlexGrid = FlexGrid;
@@ -87338,6 +87433,8 @@ ${family}`
87338
87433
  exports2.MapIcon = MapIcon;
87339
87434
  exports2.MapToggleButtonPresentational = MapToggleButtonPresentational;
87340
87435
  exports2.MarkerAnchor = MarkerAnchor;
87436
+ exports2.Menu = Menu;
87437
+ exports2.MenuItem = MenuItem;
87341
87438
  exports2.MiniSearchAutocomplete = MiniSearchAutocomplete;
87342
87439
  exports2.MiniSearchBox = MiniSearchBox;
87343
87440
  exports2.MinusCircleIcon = MinusCircleIcon;
@@ -87346,6 +87443,7 @@ ${family}`
87346
87443
  exports2.PlayIcon = PlayIcon;
87347
87444
  exports2.PlusCircleIcon = PlusCircleIcon;
87348
87445
  exports2.PopOver = PopOver;
87446
+ exports2.Popper = Popper;
87349
87447
  exports2.PreferredLabelCache = PreferredLabelCache;
87350
87448
  exports2.QuestionIcon = QuestionIcon;
87351
87449
  exports2.RecentSearches = RecentSearches;
@@ -87357,6 +87455,7 @@ ${family}`
87357
87455
  exports2.Skeleton = Skeleton;
87358
87456
  exports2.SnackbarProvider = SnackbarProvider;
87359
87457
  exports2.Spinner = Spinner;
87458
+ exports2.SvgIcon = SvgIcon;
87360
87459
  exports2.Switch = Switch;
87361
87460
  exports2.Tab = Tab;
87362
87461
  exports2.TabPanel = TabPanel;
@@ -87374,6 +87473,7 @@ ${family}`
87374
87473
  exports2.ThemeSwitch = ThemeSwitch;
87375
87474
  exports2.ThemeSwitchRow = ThemeSwitchRow;
87376
87475
  exports2.TitleAndContent = TitleAndContent;
87476
+ exports2.ToggleButton = ToggleButton;
87377
87477
  exports2.Toolbar = Toolbar;
87378
87478
  exports2.Tooltip = Tooltip;
87379
87479
  exports2.TooltipToggleButton = TooltipToggleButton;