@movable/ui 3.5.0 → 3.7.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.
@@ -1,7 +1,7 @@
1
1
  type HeaderMetadataType = {
2
2
  icon?: string | JSX.Element;
3
3
  label: string;
4
- value: string | JSX.Element;
4
+ value?: string | JSX.Element | null;
5
5
  };
6
6
  type MetaDataProps = {
7
7
  metadata: HeaderMetadataType[];
package/lib/index.d.ts CHANGED
@@ -209,7 +209,7 @@ declare class HeaderMetaDataPageObject {
209
209
  declare type HeaderMetadataType = {
210
210
  icon?: string | JSX.Element;
211
211
  label: string;
212
- value: string | JSX.Element;
212
+ value?: string | JSX.Element | null;
213
213
  };
214
214
 
215
215
  export declare function HeaderSubtitle({ subtitle, sx, ...rest }: HeaderSubtitleType): JSX_2.Element;
package/lib/index.mjs CHANGED
@@ -3,7 +3,7 @@ var wp = (e, t, n) => t in e ? Cp(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var Ee = (e, t, n) => wp(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as S from "react";
5
5
  import dt, { useRef as Ha, useState as mt, useEffect as _c, Children as qa, isValidElement as gn, cloneElement as sr, forwardRef as mo } from "react";
6
- import { Typography as ut, Chip as ma, Tooltip as Ya, Box as Ve, Menu as oi, MenuItem as pr, Button as ht, Dialog as Sp, IconButton as ho, Icon as Rn, DialogTitle as Ep, Stack as Re, DialogActions as Op, CircularProgress as Uo, styled as Bc, Drawer as Dc, AppBar as Rp, useScrollTrigger as jp, Breadcrumbs as kp, Link as Pp, RadioGroup as Ap, FormControlLabel as Ka, Radio as Mp, Card as Lc, ToggleButton as Fc, ToggleButtonGroup as zc, ListSubheader as Ip, FormControl as $p, InputLabel as Np, Select as _p, FormHelperText as Bp, Alert as Dp, Skeleton as Qr, Checkbox as Vc, CardMedia as Lp, CardContent as Fp, CardActions as zp, Fade as Vp, TextField as Wp, Divider as Up, List as Gp, ListItem as Hp, Paper as qp, Badge as Yp } from "@mui/material";
6
+ import { Typography as st, Chip as ma, Tooltip as Ya, Box as Ve, Menu as oi, MenuItem as pr, Button as ht, Dialog as Sp, IconButton as ho, Icon as Rn, DialogTitle as Ep, Stack as Re, DialogActions as Op, CircularProgress as Uo, styled as Bc, Drawer as Dc, AppBar as Rp, useScrollTrigger as jp, Breadcrumbs as kp, Link as Pp, RadioGroup as Ap, FormControlLabel as Ka, Radio as Mp, Card as Lc, ToggleButton as Fc, ToggleButtonGroup as zc, ListSubheader as Ip, FormControl as $p, InputLabel as Np, Select as _p, FormHelperText as Bp, Alert as Dp, Skeleton as Qr, Checkbox as Vc, CardMedia as Lp, CardContent as Fp, CardActions as zp, Fade as Vp, TextField as Wp, Divider as Up, List as Gp, ListItem as Hp, Paper as qp, Badge as Yp } from "@mui/material";
7
7
  import Kp from "@emotion/styled";
8
8
  import { Global as Xp, ThemeContext as Jp, keyframes as go, css as Wc } from "@emotion/react";
9
9
  import { WarningAmberRounded as Zp, ReportRounded as Qp, Close as ef, ViewList as tf } from "@mui/icons-material";
@@ -649,7 +649,7 @@ React keys must be passed directly to JSX without using spread:
649
649
  process.env.NODE_ENV === "production" ? ha.exports = Sf() : ha.exports = Ef();
650
650
  var p = ha.exports;
651
651
  function JE({ stringToDisplay: e }) {
652
- return p.jsxs(ut, { children: ["stringToDisplay prop is:", " ", p.jsx("span", { "data-test-string-to-display": !0, children: e })] });
652
+ return p.jsxs(st, { children: ["stringToDisplay prop is:", " ", p.jsx("span", { "data-test-string-to-display": !0, children: e })] });
653
653
  }
654
654
  function an(e, ...t) {
655
655
  const n = new URL(`https://mui.com/production-error/?code=${e}`);
@@ -3299,7 +3299,7 @@ function yn(e) {
3299
3299
  (0, t.current)(...n)
3300
3300
  )).current;
3301
3301
  }
3302
- function st(...e) {
3302
+ function lt(...e) {
3303
3303
  const t = S.useRef(void 0), n = S.useCallback((o) => {
3304
3304
  const i = e.map((a) => {
3305
3305
  if (a == null)
@@ -3496,7 +3496,7 @@ function wu(e) {
3496
3496
  } = Tu({
3497
3497
  ...a,
3498
3498
  externalSlotProps: s
3499
- }), u = st(c, s == null ? void 0 : s.ref, (m = e.additionalProps) == null ? void 0 : m.ref);
3499
+ }), u = lt(c, s == null ? void 0 : s.ref, (m = e.additionalProps) == null ? void 0 : m.ref);
3500
3500
  return vu(t, {
3501
3501
  ...l,
3502
3502
  ref: u
@@ -4218,7 +4218,7 @@ function QE({ Title: e, Content: t, Actions: n, onClose: o, hideCloseButton: i,
4218
4218
  right: "15px",
4219
4219
  p: "4px",
4220
4220
  color: (x) => x.palette.grey[500]
4221
- }, children: p.jsx(Rn, { children: "close_filled" }) }), typeof e != "string" ? p.jsx(p.Fragment, { children: e }) : p.jsx(Ep, { "data-test": "ink-dialog-title", children: p.jsxs(Re, { direction: "row", alignItems: "center", children: [((u = a == null ? void 0 : a.primary) == null ? void 0 : u.variant) && p.jsx(lg, { variant: a.primary.variant }), p.jsx(ut, { variant: "h6", children: p.jsx("strong", { children: e }) })] }) }), t, l, a && p.jsxs(Op, { sx: { m: 1 }, children: [a.cancel && p.jsx(ht, { "data-test": "ink-dialog-cancel-action", onClick: a.cancel.onClick, children: (d = a.cancel) == null ? void 0 : d.label }), a.secondary && p.jsx(ht, { "data-test": "ink-dialog-secondary-action", color: ((m = a.secondary) == null ? void 0 : m.variant) === "destructive" ? "error" : "primary", endIcon: a.secondary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: a.secondary.disabled || a.secondary.loading, ...a.secondary, variant: (h = a.secondary) != null && h.variant ? "contained" : "text", children: (g = a.secondary) == null ? void 0 : g.label }), a.primary && p.jsx(ht, { "data-test": "ink-dialog-primary-action", color: ((b = a.primary) == null ? void 0 : b.variant) === "destructive" ? "error" : "primary", endIcon: a.primary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: a.primary.disabled || a.primary.loading, ...a.primary, variant: "contained", children: (f = a.primary) == null ? void 0 : f.label })] })] });
4221
+ }, children: p.jsx(Rn, { children: "close_filled" }) }), typeof e != "string" ? p.jsx(p.Fragment, { children: e }) : p.jsx(Ep, { "data-test": "ink-dialog-title", children: p.jsxs(Re, { direction: "row", alignItems: "center", children: [((u = a == null ? void 0 : a.primary) == null ? void 0 : u.variant) && p.jsx(lg, { variant: a.primary.variant }), p.jsx(st, { variant: "h6", children: p.jsx("strong", { children: e }) })] }) }), t, l, a && p.jsxs(Op, { sx: { m: 1 }, children: [a.cancel && p.jsx(ht, { "data-test": "ink-dialog-cancel-action", onClick: a.cancel.onClick, children: (d = a.cancel) == null ? void 0 : d.label }), a.secondary && p.jsx(ht, { "data-test": "ink-dialog-secondary-action", color: ((m = a.secondary) == null ? void 0 : m.variant) === "destructive" ? "error" : "primary", endIcon: a.secondary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: a.secondary.disabled || a.secondary.loading, ...a.secondary, variant: (h = a.secondary) != null && h.variant ? "contained" : "text", children: (g = a.secondary) == null ? void 0 : g.label }), a.primary && p.jsx(ht, { "data-test": "ink-dialog-primary-action", color: ((b = a.primary) == null ? void 0 : b.variant) === "destructive" ? "error" : "primary", endIcon: a.primary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: a.primary.disabled || a.primary.loading, ...a.primary, variant: "contained", children: (f = a.primary) == null ? void 0 : f.label })] })] });
4222
4222
  }
4223
4223
  const Ou = 280, cg = Bc(Ve, { shouldForwardProp: (e) => e !== "open" })(({ theme: e, open: t }) => ({
4224
4224
  flexGrow: 1,
@@ -4264,7 +4264,7 @@ function eO({
4264
4264
  ...u && { position: "absolute" }
4265
4265
  },
4266
4266
  variant: "outlined"
4267
- }, variant: "persistent", anchor: "left", open: e, children: p.jsxs(Re, { height: "100%", justifyContent: "space-between", children: [p.jsxs(Re, { direction: "column", spacing: 3, sx: { p: 2 }, children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsx(Rn, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), p.jsx(ut, { sx: { ml: 1 }, "data-cy": "drawer-header", children: l })] }), p.jsx(Ya, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
4267
+ }, variant: "persistent", anchor: "left", open: e, children: p.jsxs(Re, { height: "100%", justifyContent: "space-between", children: [p.jsxs(Re, { direction: "column", spacing: 3, sx: { p: 2 }, children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsx(Rn, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), p.jsx(st, { sx: { ml: 1 }, "data-cy": "drawer-header", children: l })] }), p.jsx(Ya, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
4268
4268
  popper: {
4269
4269
  modifiers: [
4270
4270
  {
@@ -4288,7 +4288,8 @@ function eO({
4288
4288
  }, children: s })] }) }), p.jsx(cg, { component: "main", open: e, ...d, children: n })] });
4289
4289
  }
4290
4290
  function tO({ metadata: e }) {
4291
- return p.jsx(Re, { direction: "row", spacing: 2, "data-test-ink-page-header-metadata": !0, children: e.map(({ icon: t, label: n, value: o }) => p.jsxs(Re, { direction: "row", alignItems: "center", spacing: 0.5, "data-cy": `metadata-${n}`, children: [t && typeof t == "string" ? p.jsx(Rn, { sx: { color: "neutral600", fontSize: "1rem" }, children: t }) : t, p.jsx(ut, { variant: "body2", color: "text.secondary", children: n }), typeof o == "string" ? p.jsx(ut, { variant: "body2", children: o }) : o] }, n)) });
4291
+ const t = (n) => n == null || n === "" ? p.jsx(st, { variant: "body2", color: "text.disabled", children: "--" }) : typeof n == "string" ? p.jsx(st, { variant: "body2", children: n }) : n;
4292
+ return p.jsx(Re, { direction: "row", spacing: 2, "data-test-ink-page-header-metadata": !0, children: e.map(({ icon: n, label: o, value: i }) => p.jsxs(Re, { direction: "row", alignItems: "center", spacing: 0.5, "data-cy": `metadata-${o}`, children: [n && typeof n == "string" ? p.jsx(Rn, { sx: { color: "neutral600", fontSize: "1rem" }, children: n }) : n, p.jsx(st, { variant: "body2", color: "text.secondary", children: o }), t(i)] }, o)) });
4292
4293
  }
4293
4294
  const ug = ({ children: e }) => {
4294
4295
  const t = jp({
@@ -4326,7 +4327,7 @@ const dg = {
4326
4327
  }
4327
4328
  };
4328
4329
  function pg({ label: e }) {
4329
- return p.jsx(ut, { "data-cy": "page-title", variant: "h5", component: "h1", sx: { wordBreak: "break-word", fontWeight: "600", color: "text.primary" }, children: e });
4330
+ return p.jsx(st, { "data-cy": "page-title", variant: "h5", component: "h1", sx: { wordBreak: "break-word", fontWeight: "600", color: "text.primary" }, children: e });
4330
4331
  }
4331
4332
  function fg({ breadcrumb: e, i: t, onClick: n }) {
4332
4333
  return p.jsx(Pp, { href: e.path, ...e.LinkProps, underline: "hover", "data-cy": `breadcrumb-${t}`, variant: "h5", color: "action.active", onClick: n, children: e.label });
@@ -4335,7 +4336,7 @@ function rO({ breadcrumbs: e }) {
4335
4336
  return p.jsx(kp, { sx: dg, "data-test-ink-page-header-breadcrumbs": !0, children: e == null ? void 0 : e.map((t, n) => n === e.length - 1 ? p.jsx(pg, { label: t.label }, `breadcrumb-${n}`) : p.jsx(fg, { breadcrumb: t, i: n, onClick: t.onClick }, `breadcrumb-${n}`)) });
4336
4337
  }
4337
4338
  function ju({ sx: e }) {
4338
- return p.jsx(ut, { variant: "overline", sx: { color: "neutral500", fontWeight: 600, lineHeight: 2.25, ...e }, children: "Internal Use Only" });
4339
+ return p.jsx(st, { variant: "overline", sx: { color: "neutral500", fontWeight: 600, lineHeight: 2.25, ...e }, children: "Internal Use Only" });
4339
4340
  }
4340
4341
  function oO({ primaryAction: e, secondaryAction: t, dropdownAction: n }) {
4341
4342
  const [o, i] = mt(null), a = !!o, s = (h) => {
@@ -4358,7 +4359,7 @@ function oO({ primaryAction: e, secondaryAction: t, dropdownAction: n }) {
4358
4359
  }, ...b, children: h }, f))] })] })] }), t && p.jsx(ht, { "data-cy": "secondary", variant: "contained", color: "inherit", ...t, children: t.label }), e && p.jsx(ht, { "data-cy": "primary", variant: "contained", ...e, sx: { whiteSpace: "nowrap" }, children: e.label })] });
4359
4360
  }
4360
4361
  function mg({ subtitle: e, sx: t, ...n }) {
4361
- return p.jsx(ut, { variant: "body2", color: "text.secondary", "data-cy": "header-subtitle", sx: { ...t }, ...n, children: e });
4362
+ return p.jsx(st, { variant: "body2", color: "text.secondary", "data-cy": "header-subtitle", sx: { ...t }, ...n, children: e });
4362
4363
  }
4363
4364
  function iO({ label: e, Stepper: t, ButtonGroup: n, subtitle: o }) {
4364
4365
  const i = (a) => typeof a == "object" && a !== null && ("primary" in a || "close" in a);
@@ -4367,7 +4368,7 @@ function iO({ label: e, Stepper: t, ButtonGroup: n, subtitle: o }) {
4367
4368
  py: 2.25,
4368
4369
  borderBottom: "1px solid",
4369
4370
  borderBottomColor: "neutral200"
4370
- }, children: ({ position: a }) => p.jsxs(Re, { position: a, direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [p.jsx(ut, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: p.jsxs(Re, { direction: "column", spacing: 0, children: [e, o && p.jsx(mg, { component: "span", subtitle: o })] }) }), t && p.jsx(Ve, { sx: { flexGrow: "2" }, "data-test-ink-workflow-header-stepper": !0, children: t }), n && p.jsx(Ve, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-ink-workflow-header-button-group": !0, children: i(n) ? p.jsxs(Re, { direction: "row", spacing: 1, children: [n.primary && p.jsx(ht, { variant: "contained", endIcon: n.primary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: n.primary.disabled || n.primary.loading, ...n.primary, "data-test-ink-workflow-header-primary-action": !0, children: n.primary.label }), n.close && p.jsx(ho, { onClick: n.close.onClick, "data-test-ink-workflow-header-close-action": !0, children: p.jsx(Rn, { children: "close_rounded" }) })] }) : n })] }) });
4371
+ }, children: ({ position: a }) => p.jsxs(Re, { position: a, direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [p.jsx(st, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: p.jsxs(Re, { direction: "column", spacing: 0, children: [e, o && p.jsx(mg, { component: "span", subtitle: o })] }) }), t && p.jsx(Ve, { sx: { flexGrow: "2" }, "data-test-ink-workflow-header-stepper": !0, children: t }), n && p.jsx(Ve, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-ink-workflow-header-button-group": !0, children: i(n) ? p.jsxs(Re, { direction: "row", spacing: 1, children: [n.primary && p.jsx(ht, { variant: "contained", endIcon: n.primary.loading ? p.jsx(Uo, { size: 20, color: "inherit" }) : void 0, disabled: n.primary.disabled || n.primary.loading, ...n.primary, "data-test-ink-workflow-header-primary-action": !0, children: n.primary.label }), n.close && p.jsx(ho, { onClick: n.close.onClick, "data-test-ink-workflow-header-close-action": !0, children: p.jsx(Rn, { children: "close_rounded" }) })] }) : n })] }) });
4371
4372
  }
4372
4373
  const no = {
4373
4374
  black: "#000",
@@ -4417,7 +4418,7 @@ const no = {
4417
4418
  A200: "#ff5252",
4418
4419
  A400: "#ff1744",
4419
4420
  A700: "#d50000"
4420
- }, lt = {
4421
+ }, ct = {
4421
4422
  50: "#fff3e0",
4422
4423
  100: "#ffe0b2",
4423
4424
  200: "#ffcc80",
@@ -4432,7 +4433,7 @@ const no = {
4432
4433
  A200: "#ffab40",
4433
4434
  A400: "#ff9100",
4434
4435
  A700: "#ff6d00"
4435
- }, ct = {
4436
+ }, ut = {
4436
4437
  50: "#e3f2fd",
4437
4438
  100: "#bbdefb",
4438
4439
  200: "#90caf9",
@@ -4554,13 +4555,13 @@ function yl(e, t, n, o) {
4554
4555
  }
4555
4556
  function gg(e = "light") {
4556
4557
  return e === "dark" ? {
4557
- main: ct[200],
4558
- light: ct[50],
4559
- dark: ct[400]
4558
+ main: ut[200],
4559
+ light: ut[50],
4560
+ dark: ut[400]
4560
4561
  } : {
4561
- main: ct[700],
4562
- light: ct[400],
4563
- dark: ct[800]
4562
+ main: ut[700],
4563
+ light: ut[400],
4564
+ dark: ut[800]
4564
4565
  };
4565
4566
  }
4566
4567
  function yg(e = "light") {
@@ -4609,14 +4610,14 @@ function xg(e = "light") {
4609
4610
  }
4610
4611
  function Tg(e = "light") {
4611
4612
  return e === "dark" ? {
4612
- main: lt[400],
4613
- light: lt[300],
4614
- dark: lt[700]
4613
+ main: ct[400],
4614
+ light: ct[300],
4615
+ dark: ct[700]
4615
4616
  } : {
4616
4617
  main: "#ed6c02",
4617
4618
  // closest to orange[800] that pass 3:1.
4618
- light: lt[500],
4619
- dark: lt[900]
4619
+ light: ct[500],
4620
+ dark: ct[900]
4620
4621
  };
4621
4622
  }
4622
4623
  function ns(e) {
@@ -5826,7 +5827,7 @@ const sO = ({ name: e, options: t, value: n, ref: o, direction: i = "row", cardS
5826
5827
  }, children: [p.jsxs(Re, { direction: "column", alignItems: "center", width: "100%", children: [b && p.jsx(Ve, { sx: {
5827
5828
  color: v ? "neutral500" : n === g ? "text.primary" : "action.active",
5828
5829
  ".MuiSvgIcon-root": { fontSize: "2rem" }
5829
- }, children: b }), p.jsx(ut, { variant: "subtitle1", textAlign: "center", lineHeight: "20px", mt: 0.5, color: v ? n === g ? "text.secondary" : "neutral500" : "text.primary", children: f }), x && p.jsx(ut, { variant: "body2", textAlign: "center", mt: 1, color: `${v ? "neutral500" : "text.secondary"}`, children: x }), C && p.jsx(ut, { variant: "body2", color: `${v ? "neutral500" : "text.secondary"}`, textAlign: "center", mt: 1, children: C })] }), T && p.jsx(Ve, { mt: 2, display: "flex", justifyContent: "center", minHeight: h ? "24px" : 0, children: T })] }) }, g);
5830
+ }, children: b }), p.jsx(st, { variant: "subtitle1", textAlign: "center", lineHeight: "20px", mt: 0.5, color: v ? n === g ? "text.secondary" : "neutral500" : "text.primary", children: f }), x && p.jsx(st, { variant: "body2", textAlign: "center", mt: 1, color: `${v ? "neutral500" : "text.secondary"}`, children: x }), C && p.jsx(st, { variant: "body2", color: `${v ? "neutral500" : "text.secondary"}`, textAlign: "center", mt: 1, children: C })] }), T && p.jsx(Ve, { mt: 2, display: "flex", justifyContent: "center", minHeight: h ? "24px" : 0, children: T })] }) }, g);
5830
5831
  }) }) });
5831
5832
  };
5832
5833
  function Sl({ value: e, label: t, size: n = "small", ariaLabel: o, ...i }) {
@@ -6002,7 +6003,7 @@ const Ol = {
6002
6003
  };
6003
6004
  function uO({ title: e, description: t, action: n, variant: o, icon: i, sx: a }) {
6004
6005
  const s = o === "search" ? "neutral00" : "neutral50", l = oy[o], { fontSize: c, fontSizeDescription: u, titleVariant: d, descriptionVariant: m } = l;
6005
- return p.jsxs(Re, { alignItems: "center", justifyContent: "center", textAlign: "center", "data-cy": `empty-state-${o}-container`, sx: { backgroundColor: s, p: 5, ...a }, children: [i && p.jsx(ry, { icon: i, variant: o }), e && p.jsx(ut, { variant: d, sx: { fontSize: c }, "data-cy": "empty-state-title", children: p.jsx("strong", { children: e }) }), p.jsx(ut, { variant: m, color: "text.secondary", sx: { fontSize: u, maxWidth: "500px" }, "data-cy": "empty-state-description", children: t }), n && p.jsx(Ve, { mt: 3, children: p.jsx(ht, { onClick: n.onClick, "data-cy": "empty-state-action-button", children: n.title }) })] });
6006
+ return p.jsxs(Re, { alignItems: "center", justifyContent: "center", textAlign: "center", "data-cy": `empty-state-${o}-container`, sx: { backgroundColor: s, p: 5, ...a }, children: [i && p.jsx(ry, { icon: i, variant: o }), e && p.jsx(st, { variant: d, sx: { fontSize: c }, "data-cy": "empty-state-title", children: p.jsx("strong", { children: e }) }), p.jsx(st, { variant: m, color: "text.secondary", sx: { fontSize: u, maxWidth: "500px", mt: 1 }, "data-cy": "empty-state-description", children: t }), n && p.jsx(Ve, { mt: 3, children: p.jsx(ht, { onClick: n.onClick, "data-cy": "empty-state-action-button", children: n.title }) })] });
6006
6007
  }
6007
6008
  function Pn({
6008
6009
  props: e,
@@ -7552,7 +7553,7 @@ const $y = ge("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ny = (e) =
7552
7553
  touchRippleRef: N,
7553
7554
  type: M,
7554
7555
  ...W
7555
- } = o, U = S.useRef(null), L = yy(), A = st(L.ref, N), [V, ee] = S.useState(!1);
7556
+ } = o, U = S.useRef(null), L = yy(), A = lt(L.ref, N), [V, ee] = S.useState(!1);
7556
7557
  u && V && ee(!1), S.useImperativeHandle(i, () => ({
7557
7558
  focusVisible: () => {
7558
7559
  ee(!0), U.current.focus();
@@ -7584,7 +7585,7 @@ const $y = ge("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ny = (e) =
7584
7585
  We === "button" && (W.href || W.to) && (We = b);
7585
7586
  const Me = {};
7586
7587
  We === "button" ? (Me.type = M === void 0 ? "button" : M, Me.disabled = u) : (!W.href && !W.to && (Me.role = "button"), u && (Me["aria-disabled"] = u));
7587
- const qe = st(n, U), Ie = {
7588
+ const qe = lt(n, U), Ie = {
7588
7589
  ...o,
7589
7590
  centerRipple: a,
7590
7591
  component: c,
@@ -8021,7 +8022,7 @@ const zy = (e, t) => {
8021
8022
  disablePadding: f,
8022
8023
  divider: x,
8023
8024
  hasSecondaryAction: _
8024
- }, j = Vy(y), $ = st(P, n), k = T.root || c.Root || Wy, z = E.root || u.root || {}, N = {
8025
+ }, j = Vy(y), $ = lt(P, n), k = T.root || c.Root || Wy, z = E.root || u.root || {}, N = {
8025
8026
  className: se(j.root, z.className, s),
8026
8027
  ...v
8027
8028
  };
@@ -8216,7 +8217,7 @@ function Te(e, t) {
8216
8217
  ...c,
8217
8218
  externalForwardedProps: e === "root" ? h : void 0,
8218
8219
  externalSlotProps: b
8219
- }), E = st(C, b == null ? void 0 : b.ref, t.ref), T = e === "root" ? f || u : f, v = vu(g, {
8220
+ }), E = lt(C, b == null ? void 0 : b.ref, t.ref), T = e === "root" ? f || u : f, v = vu(g, {
8220
8221
  ...e === "root" && !u && !d[e] && s,
8221
8222
  ...e !== "root" && !d[e] && s,
8222
8223
  ...x,
@@ -8889,7 +8890,7 @@ const ab = {
8889
8890
  // eslint-disable-next-line react/prop-types
8890
8891
  TransitionComponent: x = Qt,
8891
8892
  ...C
8892
- } = t, E = ar(), T = S.useRef(), v = Xn(), w = S.useRef(null), R = st(w, Kn(a), n), P = (N) => (M) => {
8893
+ } = t, E = ar(), T = S.useRef(), v = Xn(), w = S.useRef(null), R = lt(w, Kn(a), n), P = (N) => (M) => {
8893
8894
  if (N) {
8894
8895
  const W = w.current;
8895
8896
  M === void 0 ? N(W) : N(W, M);
@@ -9956,7 +9957,7 @@ const lo = /* @__PURE__ */ S.forwardRef(function(t, n) {
9956
9957
  children: o,
9957
9958
  container: i,
9958
9959
  disablePortal: a = !1
9959
- } = t, [s, l] = S.useState(null), c = st(/* @__PURE__ */ S.isValidElement(o) ? Kn(o) : null, n);
9960
+ } = t, [s, l] = S.useState(null), c = lt(/* @__PURE__ */ S.isValidElement(o) ? Kn(o) : null, n);
9960
9961
  if (bn(() => {
9961
9962
  a || l(f0(i) || document.body);
9962
9963
  }, [i, a]), bn(() => {
@@ -10056,7 +10057,7 @@ const y0 = (e) => {
10056
10057
  ownerState: f,
10057
10058
  // prevent from spreading to DOM, it can come from the parent component e.g. Select.
10058
10059
  ...x
10059
- } = t, C = S.useRef(null), E = st(C, n), T = S.useRef(null), v = st(T, m), w = S.useRef(v);
10060
+ } = t, C = S.useRef(null), E = lt(C, n), T = S.useRef(null), v = lt(T, m), w = S.useRef(v);
10060
10061
  bn(() => {
10061
10062
  w.current = v;
10062
10063
  }, [v]), S.useImperativeHandle(m, () => T.current, []);
@@ -10875,7 +10876,7 @@ const Qu = /* @__PURE__ */ S.forwardRef(function(t, n) {
10875
10876
  document.removeEventListener("keydown", pe);
10876
10877
  };
10877
10878
  }, [We, F]);
10878
- const Ct = st(Kn(W), V, n);
10879
+ const Ct = lt(Kn(W), V, n);
10879
10880
  !k && k !== 0 && (F = !1);
10880
10881
  const ft = S.useRef(), Lt = (pe) => {
10881
10882
  const Pt = W.props;
@@ -11298,7 +11299,7 @@ function fO(e) {
11298
11299
  ...h
11299
11300
  },
11300
11301
  variant: "outlined"
11301
- }, anchor: "left", open: ia(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", ...g, children: p.jsxs(Re, { height: "100%", justifyContent: "space-between", children: [p.jsxs(Re, { direction: "column", spacing: 3, sx: { p: 2 }, children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [b && p.jsx(j0, { Icon: b }), p.jsx(ut, { sx: { ml: b && 1 }, "data-cy": "drawer-header", children: i })] }), ia(e) && p.jsx(Ya, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
11302
+ }, anchor: "left", open: ia(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", ...g, children: p.jsxs(Re, { height: "100%", justifyContent: "space-between", children: [p.jsxs(Re, { direction: "column", spacing: 3, sx: { p: 2 }, children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [p.jsxs(Re, { direction: "row", alignItems: "center", children: [b && p.jsx(j0, { Icon: b }), p.jsx(st, { sx: { ml: b && 1 }, "data-cy": "drawer-header", children: i })] }), ia(e) && p.jsx(Ya, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
11302
11303
  popper: {
11303
11304
  modifiers: [
11304
11305
  {
@@ -14635,7 +14636,7 @@ const Xv = (e) => {
14635
14636
  E || (E = m.current.querySelector("input:not(:disabled)")), E && E.focus();
14636
14637
  }
14637
14638
  }), []);
14638
- const f = st(n, m), x = wr(l), C = S.useMemo(() => ({
14639
+ const f = lt(n, m), x = wr(l), C = S.useMemo(() => ({
14639
14640
  name: x,
14640
14641
  onChange(E) {
14641
14642
  b(E.target.value), c && c(E, E.target.value);
@@ -15128,7 +15129,7 @@ const dd = /* @__PURE__ */ S.forwardRef(function(t, n) {
15128
15129
  ...c
15129
15130
  } = t, {
15130
15131
  current: u
15131
- } = S.useRef(l != null), d = S.useRef(null), m = st(n, d), h = S.useRef(null), g = S.useRef(null), b = S.useCallback(() => {
15132
+ } = S.useRef(l != null), d = S.useRef(null), m = lt(n, d), h = S.useRef(null), g = S.useRef(null), b = S.useCallback(() => {
15132
15133
  const T = d.current, v = g.current;
15133
15134
  if (!T || !v)
15134
15135
  return;
@@ -15496,7 +15497,7 @@ const Mi = (e, t) => {
15496
15497
  } = S.useRef(J != null), re = S.useRef(), Y = S.useCallback((de) => {
15497
15498
  process.env.NODE_ENV !== "production" && de && de.nodeName !== "INPUT" && !de.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
15498
15499
  `));
15499
- }, []), oe = st(re, v, T.ref, Y), [F, fe] = S.useState(!1), le = un();
15500
+ }, []), oe = lt(re, v, T.ref, Y), [F, fe] = S.useState(!1), le = un();
15500
15501
  process.env.NODE_ENV !== "production" && S.useEffect(() => {
15501
15502
  if (le)
15502
15503
  return le.registerEffect();
@@ -17318,7 +17319,7 @@ const md = /* @__PURE__ */ S.forwardRef(function(t, n) {
17318
17319
  I.previousKeyMatched && (j || _r(v, P, !1, c, sa, I)) ? T.preventDefault() : I.previousKeyMatched = !1;
17319
17320
  }
17320
17321
  d && d(T);
17321
- }, x = st(g, n);
17322
+ }, x = lt(g, n);
17322
17323
  let C = -1;
17323
17324
  S.Children.forEach(s, (T, v) => {
17324
17325
  if (!/* @__PURE__ */ S.isValidElement(T)) {
@@ -17549,7 +17550,7 @@ function ti(e) {
17549
17550
  getTabbable: a = Ix,
17550
17551
  isEnabled: s = $x,
17551
17552
  open: l
17552
- } = e, c = S.useRef(!1), u = S.useRef(null), d = S.useRef(null), m = S.useRef(null), h = S.useRef(null), g = S.useRef(!1), b = S.useRef(null), f = st(Kn(t), b), x = S.useRef(null);
17553
+ } = e, c = S.useRef(!1), u = S.useRef(null), d = S.useRef(null), m = S.useRef(null), h = S.useRef(null), g = S.useRef(!1), b = S.useRef(null), f = lt(Kn(t), b), x = S.useRef(null);
17553
17554
  S.useEffect(() => {
17554
17555
  !l || !b.current || (g.current = !n);
17555
17556
  }, [n, l]), S.useEffect(() => {
@@ -17704,7 +17705,7 @@ const Nx = {
17704
17705
  // eslint-disable-next-line react/prop-types
17705
17706
  TransitionComponent: E = Qt,
17706
17707
  ...T
17707
- } = t, v = S.useRef(null), w = st(v, Kn(l), n), R = (z) => (N) => {
17708
+ } = t, v = S.useRef(null), w = lt(v, Kn(l), n), R = (z) => (N) => {
17708
17709
  if (z) {
17709
17710
  const M = v.current;
17710
17711
  N === void 0 ? z(M) : z(M, N);
@@ -18040,7 +18041,7 @@ function zx(e) {
18040
18041
  onClose: c,
18041
18042
  open: u,
18042
18043
  rootRef: d
18043
- } = e, m = S.useRef({}), h = S.useRef(null), g = S.useRef(null), b = st(g, d), [f, x] = S.useState(!u), C = Fx(l);
18044
+ } = e, m = S.useRef({}), h = S.useRef(null), g = S.useRef(null), b = lt(g, d), [f, x] = S.useState(!u), C = Fx(l);
18044
18045
  let E = !0;
18045
18046
  (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (E = !1);
18046
18047
  const T = () => Bt(h.current), v = () => (m.current.modalRef = g.current, m.current.mount = h.current, m.current), w = () => {
@@ -19546,7 +19547,7 @@ const uT = (e) => {
19546
19547
  name: "Select"
19547
19548
  }), Z = S.useRef(null), q = S.useRef(null), [G, X] = S.useState(null), {
19548
19549
  current: J
19549
- } = S.useRef(_ != null), [ne, re] = S.useState(), Y = st(n, f), oe = S.useCallback((ae) => {
19550
+ } = S.useRef(_ != null), [ne, re] = S.useState(), Y = lt(n, f), oe = S.useCallback((ae) => {
19550
19551
  q.current = ae, ae && X(ae);
19551
19552
  }, []), F = G == null ? void 0 : G.parentNode;
19552
19553
  S.useImperativeHandle(Y, () => ({
@@ -19973,7 +19974,7 @@ const dT = ot(/* @__PURE__ */ p.jsx("path", {
19973
19974
  filled: /* @__PURE__ */ p.jsx(hT, {
19974
19975
  ownerState: z
19975
19976
  })
19976
- }[k], L = st(n, Kn(U));
19977
+ }[k], L = lt(n, Kn(U));
19977
19978
  return /* @__PURE__ */ p.jsx(S.Fragment, {
19978
19979
  children: /* @__PURE__ */ S.cloneElement(U, {
19979
19980
  // Most of the logic is implemented in `SelectInput`.
@@ -20644,7 +20645,7 @@ const Rd = ot(/* @__PURE__ */ p.jsx("path", {
20644
20645
  function TO({ message: e, sx: t, messageSx: n }) {
20645
20646
  return p.jsx(Dp, { severity: "info", "data-cy": "internal-user-only-alert", sx: { alignItems: "center", ...t }, iconMapping: {
20646
20647
  info: p.jsx(Rd, {})
20647
- }, children: p.jsxs(Re, { direction: "row", gap: 1, alignItems: "center", children: [p.jsx(ju, { sx: { color: "text.secondary" } }), p.jsx(Re, { children: "-" }), p.jsx(ut, { variant: "body2", sx: n, "data-cy": "internal-user-only-alert-message", children: e || "This page has limited access to internal users only." })] }) });
20648
+ }, children: p.jsxs(Re, { direction: "row", gap: 1, alignItems: "center", children: [p.jsx(ju, { sx: { color: "text.secondary" } }), p.jsx(Re, { children: "-" }), p.jsx(st, { variant: "body2", sx: n, "data-cy": "internal-user-only-alert-message", children: e || "This page has limited access to internal users only." })] }) });
20648
20649
  }
20649
20650
  function ET() {
20650
20651
  this.__data__ = [], this.size = 0;
@@ -21458,7 +21459,7 @@ function CO({ chartOptions: e, type: t, data: n, customColors: o, height: i = 20
21458
21459
  function bS({ checkboxProps: e, title: t, size: n = "medium", subheader: o, adornment: i, titleProps: a, onClose: s }) {
21459
21460
  if (!(e || t || o || i || s))
21460
21461
  return null;
21461
- const c = n === "medium" ? "body1" : "body2", u = n === "medium" ? "body2" : "caption", d = !!e, m = () => p.jsxs(Ve, { sx: { position: "relative" }, children: [t && p.jsx(ut, { variant: c, fontWeight: 600, "data-cy": "inkcardheader-title", ...a, children: t }), o && p.jsx(ut, { variant: u, color: "text.secondary", "data-cy": "inkcardheader-subheader", sx: {
21462
+ const c = n === "medium" ? "body1" : "body2", u = n === "medium" ? "body2" : "caption", d = !!e, m = () => p.jsxs(Ve, { sx: { position: "relative" }, children: [t && p.jsx(st, { variant: c, fontWeight: 600, "data-cy": "inkcardheader-title", ...a, children: t }), o && p.jsx(st, { variant: u, color: "text.secondary", "data-cy": "inkcardheader-subheader", sx: {
21462
21463
  position: "absolute",
21463
21464
  top: "100%",
21464
21465
  left: d ? 2 : 1,
@@ -21544,7 +21545,7 @@ const CS = 382, kc = (e, t, n, o, i) => i ? o : e ? t : n, wS = (e, t, n, o, i)
21544
21545
  }
21545
21546
  });
21546
21547
  function ES({ description: e, buttonProps: t }) {
21547
- return p.jsxs(p.Fragment, { children: [p.jsx(Fp, { children: p.jsx(ut, { variant: "body2", color: "text.secondary", children: e }) }), t && p.jsx(zp, { children: p.jsx(ht, { variant: "card", ...t, children: t.label }) })] });
21548
+ return p.jsxs(p.Fragment, { children: [p.jsx(Fp, { children: p.jsx(st, { variant: "body2", color: "text.secondary", children: e }) }), t && p.jsx(zp, { children: p.jsx(ht, { variant: "card", ...t, children: t.label }) })] });
21548
21549
  }
21549
21550
  function wO({ cardMedia: e, cardHeader: t, cardType: n = "default", galleryContent: o, children: i, ...a }) {
21550
21551
  var d, m;
@@ -21759,21 +21760,21 @@ const St = {
21759
21760
  secondary: at[700],
21760
21761
  disabled: at[500]
21761
21762
  },
21762
- focusVisible: Oe(ct[700], 0.3),
21763
- blue50: ct[50],
21764
- blue100: ct[100],
21765
- blue200: ct[200],
21766
- blue300: ct[300],
21767
- blue400: ct[400],
21768
- blue500: ct[500],
21763
+ focusVisible: Oe(ut[700], 0.3),
21764
+ blue50: ut[50],
21765
+ blue100: ut[100],
21766
+ blue200: ut[200],
21767
+ blue300: ut[300],
21768
+ blue400: ut[400],
21769
+ blue500: ut[500],
21769
21770
  blue600: ce.blue600,
21770
21771
  blue700: ce.blue700,
21771
21772
  blue800: ce.blue800,
21772
21773
  blue900: ce.blue900,
21773
- blueA100: ct.A100,
21774
- blueA200: ct.A200,
21775
- blueA400: ct.A400,
21776
- blueA700: ct.A700,
21774
+ blueA100: ut.A100,
21775
+ blueA200: ut.A200,
21776
+ blueA400: ut.A400,
21777
+ blueA700: ut.A700,
21777
21778
  blue1000: ce.blue1000,
21778
21779
  green50: ce.green50,
21779
21780
  green100: ce.green100,
@@ -21832,22 +21833,22 @@ const St = {
21832
21833
  neutralA200: ce.neutralA200,
21833
21834
  neutralA400: ce.neutralA400,
21834
21835
  neutralA700: ce.neutralA700,
21835
- orange50: lt[50],
21836
+ orange50: ct[50],
21836
21837
  //warningFill
21837
- orange100: lt[100],
21838
- orange200: lt[200],
21839
- orange300: lt[300],
21840
- orange400: lt[400],
21841
- orange500: lt[500],
21842
- orange600: lt[600],
21843
- orange700: lt[700],
21844
- orange800: lt[800],
21845
- orange900: lt[900],
21838
+ orange100: ct[100],
21839
+ orange200: ct[200],
21840
+ orange300: ct[300],
21841
+ orange400: ct[400],
21842
+ orange500: ct[500],
21843
+ orange600: ct[600],
21844
+ orange700: ct[700],
21845
+ orange800: ct[800],
21846
+ orange900: ct[900],
21846
21847
  orange1000: ce.orange1000,
21847
- orangeA100: lt.A100,
21848
- orangeA200: lt.A200,
21849
- orangeA400: lt.A400,
21850
- orangeA700: lt.A700,
21848
+ orangeA100: ct.A100,
21849
+ orangeA200: ct.A200,
21850
+ orangeA400: ct.A400,
21851
+ orangeA700: ct.A700,
21851
21852
  purple50: _e[50],
21852
21853
  purple100: _e[100],
21853
21854
  purple200: _e[200],
@@ -21926,9 +21927,9 @@ const St = {
21926
21927
  deepPurpleA700: St.A700,
21927
21928
  deepPurpleA800: ce.deepPurpleA800,
21928
21929
  primary: {
21929
- main: ct.A700,
21930
+ main: ut.A700,
21930
21931
  dark: ce.blue800,
21931
- light: ct.A200,
21932
+ light: ut.A200,
21932
21933
  contrastText: ce.neutral00,
21933
21934
  hover: Oe(ze[400], 0.04),
21934
21935
  selected: Oe(ze[400], 0.08),
@@ -23538,7 +23539,7 @@ const pp = /* @__PURE__ */ S.forwardRef(function(t, n) {
23538
23539
  // eslint-disable-next-line react/prop-types
23539
23540
  TransitionComponent: w = Qt,
23540
23541
  ...R
23541
- } = t, P = S.useRef(null), I = st(Kn(c), P, n), _ = (U) => (L) => {
23542
+ } = t, P = S.useRef(null), I = lt(Kn(c), P, n), _ = (U) => (L) => {
23542
23543
  U && (L === void 0 ? U(P.current) : U(P.current, L));
23543
23544
  }, y = _((U, L) => {
23544
23545
  Lo(d, U, u), us(U), g && g(U, L);