@movable/ui 2.13.6 → 2.14.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.
@@ -14,6 +14,7 @@ type InkWorkflowHeaderProps = {
14
14
  label: string;
15
15
  Stepper?: JSX.Element;
16
16
  ButtonGroup?: JSX.Element | ActionButtonPropType;
17
+ Subtitle?: JSX.Element;
17
18
  };
18
- export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, }: InkWorkflowHeaderProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, Subtitle, }: InkWorkflowHeaderProps): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
package/lib/index.d.ts CHANGED
@@ -596,12 +596,13 @@ declare type InkToggleTextProps = ToggleButtonProps & {
596
596
  value: string | number;
597
597
  };
598
598
 
599
- export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, }: InkWorkflowHeaderProps): JSX_2.Element;
599
+ export declare function InkWorkflowHeader({ label, Stepper, ButtonGroup, Subtitle, }: InkWorkflowHeaderProps): JSX_2.Element;
600
600
 
601
601
  export declare const inkWorkflowHeader: InkWorkflowHeaderPageObject;
602
602
 
603
603
  export declare class InkWorkflowHeaderPageObject {
604
604
  get label(): Cypress.Chainable<JQuery<HTMLElement>>;
605
+ get subtitle(): Cypress.Chainable<JQuery<HTMLElement>>;
605
606
  get stepper(): Cypress.Chainable<JQuery<HTMLElement>>;
606
607
  get buttonGroup(): Cypress.Chainable<JQuery<HTMLElement>>;
607
608
  get primaryAction(): Cypress.Chainable<JQuery<HTMLElement>>;
@@ -612,6 +613,7 @@ declare type InkWorkflowHeaderProps = {
612
613
  label: string;
613
614
  Stepper?: JSX.Element;
614
615
  ButtonGroup?: JSX.Element | ActionButtonPropType;
616
+ Subtitle?: JSX.Element;
615
617
  };
616
618
 
617
619
  export declare function InternalUseOnlyAlert({ message, sx, messageSx, }: InternalUseOnlyAlertProp): JSX_2.Element;
package/lib/index.mjs CHANGED
@@ -3,7 +3,7 @@ var kd = (e, t, r) => t in e ? Pd(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var Be = (e, t, r) => kd(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import * as E from "react";
5
5
  import ct, { useRef as As, useState as Ut, useEffect as lc, Children as _s, isValidElement as Cn, cloneElement as rr, forwardRef as oo } from "react";
6
- import { Typography as ht, Chip as us, Tooltip as Ns, Box as Tt, Menu as cc, MenuItem as Wo, Button as rn, Dialog as $d, IconButton as oi, Icon as zn, DialogTitle as Md, Stack as Ze, DialogActions as jd, CircularProgress as ds, styled as uc, Drawer as dc, AppBar as Id, useScrollTrigger as Ad, Breadcrumbs as _d, Link as Nd, RadioGroup as Dd, FormControlLabel as Fd, Radio as Ld, Card as Bd, ToggleButton as pc, ToggleButtonGroup as fc, ListSubheader as zd, FormControl as Vd, InputLabel as Wd, Select as Ud, FormHelperText as Hd, Alert as qd, Grid as $a, Skeleton as Ma } from "@mui/material";
6
+ import { Typography as ht, Chip as us, Tooltip as Ns, Box as Tt, Menu as cc, MenuItem as Wo, Button as rn, Dialog as $d, IconButton as oi, Icon as zn, DialogTitle as Md, Stack as Ke, DialogActions as jd, CircularProgress as ds, styled as uc, Drawer as dc, AppBar as Id, useScrollTrigger as Ad, Breadcrumbs as _d, Link as Nd, RadioGroup as Dd, FormControlLabel as Fd, Radio as Ld, Card as Bd, ToggleButton as pc, ToggleButtonGroup as fc, ListSubheader as zd, FormControl as Vd, InputLabel as Wd, Select as Ud, FormHelperText as Hd, Alert as qd, Grid as $a, Skeleton as Ma } from "@mui/material";
7
7
  import Gd from "@emotion/styled";
8
8
  import { CacheProvider as Yd, Global as Kd, ThemeContext as mc, css as Xd, keyframes as ii } from "@emotion/react";
9
9
  import { WarningAmberRounded as Jd, ReportRounded as Zd } from "@mui/icons-material";
@@ -386,17 +386,17 @@ function rp() {
386
386
  }
387
387
  function we(R) {
388
388
  try {
389
- return Ke(R), !1;
389
+ return Xe(R), !1;
390
390
  } catch {
391
391
  return !0;
392
392
  }
393
393
  }
394
- function Ke(R) {
394
+ function Xe(R) {
395
395
  return "" + R;
396
396
  }
397
397
  function ut(R) {
398
398
  if (we(R))
399
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(R)), Ke(R);
399
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(R)), Xe(R);
400
400
  }
401
401
  var rt = T.ReactCurrentOwner, Te = {
402
402
  key: !0,
@@ -2242,16 +2242,16 @@ function Mc(e, t) {
2242
2242
  const r = Us(e.theme);
2243
2243
  return Object.keys(e).map((o) => uf(e, t, o, r)).reduce(Vr, {});
2244
2244
  }
2245
- function Xe(e) {
2245
+ function Je(e) {
2246
2246
  return Mc(e, di);
2247
2247
  }
2248
- Xe.propTypes = process.env.NODE_ENV !== "production" ? di.reduce((e, t) => (e[t] = wn, e), {}) : {};
2249
- Xe.filterProps = di;
2250
- function Je(e) {
2248
+ Je.propTypes = process.env.NODE_ENV !== "production" ? di.reduce((e, t) => (e[t] = wn, e), {}) : {};
2249
+ Je.filterProps = di;
2250
+ function Ze(e) {
2251
2251
  return Mc(e, pi);
2252
2252
  }
2253
- Je.propTypes = process.env.NODE_ENV !== "production" ? pi.reduce((e, t) => (e[t] = wn, e), {}) : {};
2254
- Je.filterProps = pi;
2253
+ Ze.propTypes = process.env.NODE_ENV !== "production" ? pi.reduce((e, t) => (e[t] = wn, e), {}) : {};
2254
+ Ze.filterProps = pi;
2255
2255
  process.env.NODE_ENV !== "production" && lf.reduce((e, t) => (e[t] = wn, e), {});
2256
2256
  function df(e = 8) {
2257
2257
  if (e.mui)
@@ -2486,124 +2486,124 @@ const lo = {
2486
2486
  },
2487
2487
  // spacing
2488
2488
  p: {
2489
- style: Je
2489
+ style: Ze
2490
2490
  },
2491
2491
  pt: {
2492
- style: Je
2492
+ style: Ze
2493
2493
  },
2494
2494
  pr: {
2495
- style: Je
2495
+ style: Ze
2496
2496
  },
2497
2497
  pb: {
2498
- style: Je
2498
+ style: Ze
2499
2499
  },
2500
2500
  pl: {
2501
- style: Je
2501
+ style: Ze
2502
2502
  },
2503
2503
  px: {
2504
- style: Je
2504
+ style: Ze
2505
2505
  },
2506
2506
  py: {
2507
- style: Je
2507
+ style: Ze
2508
2508
  },
2509
2509
  padding: {
2510
- style: Je
2510
+ style: Ze
2511
2511
  },
2512
2512
  paddingTop: {
2513
- style: Je
2513
+ style: Ze
2514
2514
  },
2515
2515
  paddingRight: {
2516
- style: Je
2516
+ style: Ze
2517
2517
  },
2518
2518
  paddingBottom: {
2519
- style: Je
2519
+ style: Ze
2520
2520
  },
2521
2521
  paddingLeft: {
2522
- style: Je
2522
+ style: Ze
2523
2523
  },
2524
2524
  paddingX: {
2525
- style: Je
2525
+ style: Ze
2526
2526
  },
2527
2527
  paddingY: {
2528
- style: Je
2528
+ style: Ze
2529
2529
  },
2530
2530
  paddingInline: {
2531
- style: Je
2531
+ style: Ze
2532
2532
  },
2533
2533
  paddingInlineStart: {
2534
- style: Je
2534
+ style: Ze
2535
2535
  },
2536
2536
  paddingInlineEnd: {
2537
- style: Je
2537
+ style: Ze
2538
2538
  },
2539
2539
  paddingBlock: {
2540
- style: Je
2540
+ style: Ze
2541
2541
  },
2542
2542
  paddingBlockStart: {
2543
- style: Je
2543
+ style: Ze
2544
2544
  },
2545
2545
  paddingBlockEnd: {
2546
- style: Je
2546
+ style: Ze
2547
2547
  },
2548
2548
  m: {
2549
- style: Xe
2549
+ style: Je
2550
2550
  },
2551
2551
  mt: {
2552
- style: Xe
2552
+ style: Je
2553
2553
  },
2554
2554
  mr: {
2555
- style: Xe
2555
+ style: Je
2556
2556
  },
2557
2557
  mb: {
2558
- style: Xe
2558
+ style: Je
2559
2559
  },
2560
2560
  ml: {
2561
- style: Xe
2561
+ style: Je
2562
2562
  },
2563
2563
  mx: {
2564
- style: Xe
2564
+ style: Je
2565
2565
  },
2566
2566
  my: {
2567
- style: Xe
2567
+ style: Je
2568
2568
  },
2569
2569
  margin: {
2570
- style: Xe
2570
+ style: Je
2571
2571
  },
2572
2572
  marginTop: {
2573
- style: Xe
2573
+ style: Je
2574
2574
  },
2575
2575
  marginRight: {
2576
- style: Xe
2576
+ style: Je
2577
2577
  },
2578
2578
  marginBottom: {
2579
- style: Xe
2579
+ style: Je
2580
2580
  },
2581
2581
  marginLeft: {
2582
- style: Xe
2582
+ style: Je
2583
2583
  },
2584
2584
  marginX: {
2585
- style: Xe
2585
+ style: Je
2586
2586
  },
2587
2587
  marginY: {
2588
- style: Xe
2588
+ style: Je
2589
2589
  },
2590
2590
  marginInline: {
2591
- style: Xe
2591
+ style: Je
2592
2592
  },
2593
2593
  marginInlineStart: {
2594
- style: Xe
2594
+ style: Je
2595
2595
  },
2596
2596
  marginInlineEnd: {
2597
- style: Xe
2597
+ style: Je
2598
2598
  },
2599
2599
  marginBlock: {
2600
- style: Xe
2600
+ style: Je
2601
2601
  },
2602
2602
  marginBlockStart: {
2603
- style: Xe
2603
+ style: Je
2604
2604
  },
2605
2605
  marginBlockEnd: {
2606
- style: Xe
2606
+ style: Je
2607
2607
  },
2608
2608
  // display
2609
2609
  displayPrint: {
@@ -3960,20 +3960,25 @@ function Qm({ maxWidth: e = 200, chipProps: t, size: r = "small", expandOnHover:
3960
3960
  }
3961
3961
  return t.label;
3962
3962
  })(), T = Lc(us, {
3963
- shouldForwardProp: (w) => w !== "isHovered" && w !== "expandOnHover" && w !== "maxWidth"
3964
- })(({ isHovered: w, expandOnHover: O, maxWidth: C, truncation: x }) => ({
3963
+ shouldForwardProp: (w) => w !== "isHovered" && w !== "expandOnHover" && w !== "hasDeleteIcon" && w !== "maxWidth"
3964
+ })(({ isHovered: w, expandOnHover: O, maxWidth: C, truncation: x, hasDeleteIcon: P }) => ({
3965
3965
  transition: "max-width 0.3s ease",
3966
3966
  maxWidth: C === null ? "none" : O && w ? `${d}px` : `${C}px`,
3967
3967
  overflow: "hidden",
3968
3968
  textOverflow: "clip",
3969
3969
  whiteSpace: "nowrap",
3970
+ ".MuiChip-deleteIcon": {
3971
+ marginLeft: "1px",
3972
+ marginRight: "6px"
3973
+ },
3970
3974
  ".MuiChip-label": {
3971
3975
  overflow: "hidden",
3972
3976
  textOverflow: x === "middle" ? "clip" : "ellipsis",
3973
- whiteSpace: "nowrap"
3977
+ whiteSpace: "nowrap",
3978
+ marginLeft: P ? "1px" : 0
3974
3979
  }
3975
3980
  }));
3976
- return f.jsx(f.Fragment, { children: h ? f.jsx(Ns, { "data-test-chip-tooltip": t.label, title: t.label, slotProps: {
3981
+ return f.jsx(f.Fragment, { children: f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, hasDeleteIcon: !!t.onDelete, ...t, label: h ? f.jsx(Ns, { "data-test-chip-tooltip": t.label, title: t.label, slotProps: {
3977
3982
  popper: {
3978
3983
  modifiers: [
3979
3984
  {
@@ -3984,7 +3989,7 @@ function Qm({ maxWidth: e = 200, chipProps: t, size: r = "small", expandOnHover:
3984
3989
  }
3985
3990
  ]
3986
3991
  }
3987
- }, children: f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, ...t, label: b }) }) : f.jsx(T, { "data-test-chip": t.label, ref: s, size: r, onMouseEnter: () => u(!0), onMouseLeave: () => u(!1), isHovered: c, expandOnHover: o, maxWidth: e, truncation: i, ...t, label: b }) });
3992
+ }, children: f.jsx("span", { children: b }) }) : b }) });
3988
3993
  }
3989
3994
  const eh = {
3990
3995
  "&:hover": {
@@ -4067,7 +4072,7 @@ function AE({ Title: e, Content: t, Actions: r, onClose: o, hideCloseButton: i,
4067
4072
  right: "15px",
4068
4073
  p: "4px",
4069
4074
  color: (b) => b.palette.grey[500]
4070
- }, children: f.jsx(zn, { children: "close_filled" }) }), typeof e != "string" ? f.jsx(f.Fragment, { children: e }) : f.jsx(Md, { "data-test": "ink-dialog-title", children: f.jsxs(Ze, { direction: "row", alignItems: "center", children: [((u = s == null ? void 0 : s.primary) == null ? void 0 : u.variant) && f.jsx(nh, { variant: s.primary.variant }), f.jsx(ht, { variant: "h6", children: f.jsx("strong", { children: e }) })] }) }), t, l, s && f.jsxs(jd, { sx: { m: 1 }, children: [s.cancel && f.jsx(rn, { "data-test": "ink-dialog-cancel-action", onClick: s.cancel.onClick, children: (d = s.cancel) == null ? void 0 : d.label }), s.secondary && f.jsx(rn, { "data-test": "ink-dialog-secondary-action", color: ((m = s.secondary) == null ? void 0 : m.variant) === "destructive" ? "error" : "primary", endIcon: s.secondary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: s.secondary.disabled || s.secondary.loading, ...s.secondary, variant: (p = s.secondary) != null && p.variant ? "contained" : "text", children: (h = s.secondary) == null ? void 0 : h.label }), s.primary && f.jsx(rn, { "data-test": "ink-dialog-primary-action", color: ((v = s.primary) == null ? void 0 : v.variant) === "destructive" ? "error" : "primary", endIcon: s.primary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: s.primary.disabled || s.primary.loading, ...s.primary, variant: "contained", children: (g = s.primary) == null ? void 0 : g.label })] })] });
4075
+ }, children: f.jsx(zn, { children: "close_filled" }) }), typeof e != "string" ? f.jsx(f.Fragment, { children: e }) : f.jsx(Md, { "data-test": "ink-dialog-title", children: f.jsxs(Ke, { direction: "row", alignItems: "center", children: [((u = s == null ? void 0 : s.primary) == null ? void 0 : u.variant) && f.jsx(nh, { variant: s.primary.variant }), f.jsx(ht, { variant: "h6", children: f.jsx("strong", { children: e }) })] }) }), t, l, s && f.jsxs(jd, { sx: { m: 1 }, children: [s.cancel && f.jsx(rn, { "data-test": "ink-dialog-cancel-action", onClick: s.cancel.onClick, children: (d = s.cancel) == null ? void 0 : d.label }), s.secondary && f.jsx(rn, { "data-test": "ink-dialog-secondary-action", color: ((m = s.secondary) == null ? void 0 : m.variant) === "destructive" ? "error" : "primary", endIcon: s.secondary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: s.secondary.disabled || s.secondary.loading, ...s.secondary, variant: (p = s.secondary) != null && p.variant ? "contained" : "text", children: (h = s.secondary) == null ? void 0 : h.label }), s.primary && f.jsx(rn, { "data-test": "ink-dialog-primary-action", color: ((v = s.primary) == null ? void 0 : v.variant) === "destructive" ? "error" : "primary", endIcon: s.primary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: s.primary.disabled || s.primary.loading, ...s.primary, variant: "contained", children: (g = s.primary) == null ? void 0 : g.label })] })] });
4071
4076
  }
4072
4077
  const tu = 280, rh = uc(Tt, { shouldForwardProp: (e) => e !== "open" })(({ theme: e, open: t }) => ({
4073
4078
  flexGrow: 1,
@@ -4113,7 +4118,7 @@ function _E({
4113
4118
  ...u && { position: "absolute" }
4114
4119
  },
4115
4120
  variant: "outlined"
4116
- }, variant: "persistent", anchor: "left", open: e, children: f.jsxs(Ze, { height: "100%", justifyContent: "space-between", children: [f.jsxs(Ze, { direction: "column", spacing: 3, sx: { p: 2 }, children: [f.jsxs(Ze, { direction: "row", alignItems: "center", children: [f.jsxs(Ze, { direction: "row", alignItems: "center", children: [f.jsx(zn, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), f.jsx(ht, { sx: { ml: 1 }, "data-cy": "drawer-header", children: l })] }), f.jsx(Ns, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
4121
+ }, variant: "persistent", anchor: "left", open: e, children: f.jsxs(Ke, { height: "100%", justifyContent: "space-between", children: [f.jsxs(Ke, { direction: "column", spacing: 3, sx: { p: 2 }, children: [f.jsxs(Ke, { direction: "row", alignItems: "center", children: [f.jsxs(Ke, { direction: "row", alignItems: "center", children: [f.jsx(zn, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), f.jsx(ht, { sx: { ml: 1 }, "data-cy": "drawer-header", children: l })] }), f.jsx(Ns, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
4117
4122
  popper: {
4118
4123
  modifiers: [
4119
4124
  {
@@ -4137,7 +4142,7 @@ function _E({
4137
4142
  }, children: a })] }) }), f.jsx(rh, { component: "main", open: e, ...d, children: r })] });
4138
4143
  }
4139
4144
  function NE({ metadata: e }) {
4140
- return f.jsx(Ze, { direction: "row", spacing: 2, "data-test-ink-page-header-metadata": !0, children: e.map(({ icon: t, label: r, value: o }) => f.jsxs(Ze, { direction: "row", alignItems: "center", spacing: 0.5, "data-cy": `metadata-${r}`, children: [t && typeof t == "string" ? f.jsx(zn, { sx: { color: "neutral600", fontSize: "1rem" }, children: t }) : t, f.jsx(ht, { variant: "body2", color: "text.secondary", children: r }), typeof o == "string" ? f.jsx(ht, { variant: "body2", children: o }) : o] }, r)) });
4145
+ return f.jsx(Ke, { direction: "row", spacing: 2, "data-test-ink-page-header-metadata": !0, children: e.map(({ icon: t, label: r, value: o }) => f.jsxs(Ke, { direction: "row", alignItems: "center", spacing: 0.5, "data-cy": `metadata-${r}`, children: [t && typeof t == "string" ? f.jsx(zn, { sx: { color: "neutral600", fontSize: "1rem" }, children: t }) : t, f.jsx(ht, { variant: "body2", color: "text.secondary", children: r }), typeof o == "string" ? f.jsx(ht, { variant: "body2", children: o }) : o] }, r)) });
4141
4146
  }
4142
4147
  const oh = ({ children: e }) => {
4143
4148
  const t = Ad({
@@ -4160,14 +4165,14 @@ const oh = ({ children: e }) => {
4160
4165
  ...t
4161
4166
  }, children: e({ position: o }) }) });
4162
4167
  function DE({ Breadcrumbs: e, Subtitle: t, Metadata: r, Chips: o, ButtonGroup: i, Tabs: s, sx: a }) {
4163
- return f.jsx(nu, { children: ({ position: l }) => f.jsxs(Ze, { "data-test-ink-page-header": !0, direction: "column", spacing: 2, position: l, sx: {
4168
+ return f.jsx(nu, { children: ({ position: l }) => f.jsxs(Ke, { "data-test-ink-page-header": !0, direction: "column", spacing: 2, position: l, sx: {
4164
4169
  borderBottom: 1,
4165
4170
  borderColor: "divider",
4166
4171
  px: 3,
4167
4172
  py: 3,
4168
4173
  ...s && { pb: -3 },
4169
4174
  ...a
4170
- }, children: [f.jsxs(Ze, { direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [f.jsxs(Ze, { direction: "row", spacing: 1, alignItems: "center", children: [e, o] }), i] }), r, t, s] }) });
4175
+ }, children: [f.jsxs(Ke, { direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [f.jsxs(Ke, { direction: "row", spacing: 1, alignItems: "center", children: [e, o] }), i] }), r, t, s] }) });
4171
4176
  }
4172
4177
  const ih = {
4173
4178
  ".MuiBreadcrumbs-separator": {
@@ -4192,7 +4197,7 @@ function LE({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
4192
4197
  }, l = () => {
4193
4198
  i(null);
4194
4199
  }, { internalUseOnlyItems: c, menuOptions: u } = r ?? {}, d = u == null ? void 0 : u.filter((p) => c == null ? void 0 : c.includes(p.label)), m = u == null ? void 0 : u.filter((p) => !(c != null && c.includes(p.label)));
4195
- return f.jsxs(Ze, { direction: "row", spacing: 1, "data-test-ink-page-header-action-buttons": !0, children: [r && f.jsxs(Tt, { children: [f.jsx(rn, { id: "action-dd", "aria-controls": s ? "action-menu" : void 0, "aria-haspopup": "true", "aria-expanded": s ? "true" : void 0, onClick: a, variant: "contained", color: "inherit", endIcon: f.jsx(zn, { children: "arrow_drop_down" }), children: r.label }), f.jsxs(cc, { id: "action-menu", anchorEl: o, open: s, onClose: l, MenuListProps: {
4200
+ return f.jsxs(Ke, { direction: "row", spacing: 1, "data-test-ink-page-header-action-buttons": !0, children: [r && f.jsxs(Tt, { children: [f.jsx(rn, { id: "action-dd", "aria-controls": s ? "action-menu" : void 0, "aria-haspopup": "true", "aria-expanded": s ? "true" : void 0, onClick: a, variant: "contained", color: "inherit", endIcon: f.jsx(zn, { children: "arrow_drop_down" }), children: r.label }), f.jsxs(cc, { id: "action-menu", anchorEl: o, open: s, onClose: l, MenuListProps: {
4196
4201
  "aria-labelledby": "action-dd"
4197
4202
  }, anchorOrigin: {
4198
4203
  vertical: "bottom",
@@ -4209,14 +4214,14 @@ function LE({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
4209
4214
  function BE({ subtitle: e }) {
4210
4215
  return f.jsx(ht, { variant: "body2", color: "text.secondary", "data-cy": "header-subtitle", children: e });
4211
4216
  }
4212
- function zE({ label: e, Stepper: t, ButtonGroup: r }) {
4213
- const o = (i) => typeof i == "object" && i !== null && ("primary" in i || "close" in i);
4217
+ function zE({ label: e, Stepper: t, ButtonGroup: r, Subtitle: o }) {
4218
+ const i = (s) => typeof s == "object" && s !== null && ("primary" in s || "close" in s);
4214
4219
  return f.jsx(nu, { sx: {
4215
4220
  px: 3,
4216
4221
  py: 2.25,
4217
4222
  borderBottom: "1px solid",
4218
4223
  borderBottomColor: "neutral200"
4219
- }, children: ({ position: i }) => f.jsxs(Ze, { position: i, direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [f.jsx(ht, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: e }), t && f.jsx(Tt, { sx: { flexGrow: "2" }, "data-test-ink-workflow-header-stepper": !0, children: t }), r && f.jsx(Tt, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-ink-workflow-header-button-group": !0, children: o(r) ? f.jsxs(Ze, { direction: "row", spacing: 1, children: [r.primary && f.jsx(rn, { variant: "contained", endIcon: r.primary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: r.primary.disabled || r.primary.loading, ...r.primary, "data-test-ink-workflow-header-primary-action": !0, children: r.primary.label }), r.close && f.jsx(oi, { onClick: r.close.onClick, "data-test-ink-workflow-header-close-action": !0, children: f.jsx(zn, { children: "close_rounded" }) })] }) : r })] }) });
4224
+ }, children: ({ position: s }) => f.jsxs(Ke, { position: s, direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [f.jsxs(Ke, { direction: "column", children: [f.jsx(ht, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: e }), o] }), t && f.jsx(Tt, { sx: { flexGrow: "2" }, "data-test-ink-workflow-header-stepper": !0, children: t }), r && f.jsx(Tt, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-ink-workflow-header-button-group": !0, children: i(r) ? f.jsxs(Ke, { direction: "row", spacing: 1, children: [r.primary && f.jsx(rn, { variant: "contained", endIcon: r.primary.loading ? f.jsx(ds, { size: 20, color: "inherit" }) : void 0, disabled: r.primary.disabled || r.primary.loading, ...r.primary, "data-test-ink-workflow-header-primary-action": !0, children: r.primary.label }), r.close && f.jsx(oi, { onClick: r.close.onClick, "data-test-ink-workflow-header-close-action": !0, children: f.jsx(zn, { children: "close_rounded" }) })] }) : r })] }) });
4220
4225
  }
4221
4226
  var nt = {}, ou = { exports: {} };
4222
4227
  (function(e) {
@@ -5515,7 +5520,7 @@ function VE({ Header: e, Description: t, Icon: r, CTA: o, children: i, shouldSho
5515
5520
  }
5516
5521
  const WE = ({ name: e, options: t, value: r, ref: o, direction: i = "row", cardSx: s, fullWidth: a = !0, disabled: l = !1, onChange: c, onBlur: u }) => {
5517
5522
  const d = (p, h, v, g) => g ? p ? h : "inherit" : v, m = (p, h, v, g, b) => b ? p ? h : g : p ? h : v;
5518
- return f.jsx(Dd, { name: e, onChange: c, onBlur: u, value: r, ref: o, "aria-label": e, "aria-readonly": l, "aria-disabled": l, sx: { width: a ? "100%" : "fit-content" }, children: f.jsx(Ze, { direction: i, spacing: 2, children: t.map(({ value: p, icon: h, title: v, description: g, subDescription: b, disabled: T }) => {
5523
+ return f.jsx(Dd, { name: e, onChange: c, onBlur: u, value: r, ref: o, "aria-label": e, "aria-readonly": l, "aria-disabled": l, sx: { width: a ? "100%" : "fit-content" }, children: f.jsx(Ke, { direction: i, spacing: 2, children: t.map(({ value: p, icon: h, title: v, description: g, subDescription: b, disabled: T }) => {
5519
5524
  const w = l || T;
5520
5525
  return f.jsx(Fd, { value: p, disabled: w, control: f.jsx(Ld, { sx: { display: "none" } }), sx: {
5521
5526
  width: a ? "100%" : "auto",
@@ -5544,7 +5549,7 @@ const WE = ({ name: e, options: t, value: r, ref: o, direction: i = "row", cardS
5544
5549
  borderRadius: 1,
5545
5550
  outlineColor: (O) => m(r === p, O.palette.primary.dark, O.palette.neutral200, O.palette.neutral200, w),
5546
5551
  ...s
5547
- }, children: f.jsxs(Ze, { direction: "column", alignItems: "center", width: "100%", children: [h && f.jsx(Tt, { sx: {
5552
+ }, children: f.jsxs(Ke, { direction: "column", alignItems: "center", width: "100%", children: [h && f.jsx(Tt, { sx: {
5548
5553
  color: w ? "neutral500" : r === p ? "text.primary" : "action.active",
5549
5554
  ".MuiSvgIcon-root": { fontSize: "2rem" }
5550
5555
  }, children: h }), f.jsx(ht, { variant: "subtitle1", textAlign: "center", lineHeight: "20px", mt: 0.5, color: w ? r === p ? "text.secondary" : "neutral500" : "text.primary", children: v }), g && f.jsx(ht, { variant: "body2", textAlign: "center", mt: 1, color: `${w ? "neutral500" : "text.secondary"}`, children: g }), b && f.jsx(ht, { variant: "body2", color: `${w ? "neutral500" : "text.secondary"}`, textAlign: "center", mt: 1, children: b })] }) }) }, p);
@@ -5723,7 +5728,7 @@ const yl = {
5723
5728
  };
5724
5729
  function qE({ title: e, description: t, action: r, variant: o, icon: i, sx: s }) {
5725
5730
  const a = o === "search" ? "neutral00" : "neutral50", l = Eg[o], { fontSize: c, fontSizeDescription: u, titleVariant: d, descriptionVariant: m } = l;
5726
- return f.jsxs(Ze, { alignItems: "center", justifyContent: "center", my: 6, textAlign: "center", "data-cy": `empty-state-${o}-container`, sx: { backgroundColor: a, p: 5, ...s }, children: [i && f.jsx(Tg, { icon: i, variant: o }), e && f.jsx(ht, { variant: d, sx: { fontSize: c }, "data-cy": "empty-state-title", children: f.jsx("strong", { children: e }) }), f.jsx(ht, { variant: m, color: "text.secondary", sx: { fontSize: u }, "data-cy": "empty-state-description", children: t }), r && f.jsx(Tt, { mt: 3, children: f.jsx(rn, { onClick: r.onClick, "data-cy": "empty-state-action-button", children: r.title }) })] });
5731
+ return f.jsxs(Ke, { alignItems: "center", justifyContent: "center", my: 6, textAlign: "center", "data-cy": `empty-state-${o}-container`, sx: { backgroundColor: a, p: 5, ...s }, children: [i && f.jsx(Tg, { icon: i, variant: o }), e && f.jsx(ht, { variant: d, sx: { fontSize: c }, "data-cy": "empty-state-title", children: f.jsx("strong", { children: e }) }), f.jsx(ht, { variant: m, color: "text.secondary", sx: { fontSize: u }, "data-cy": "empty-state-description", children: t }), r && f.jsx(Tt, { mt: 3, children: f.jsx(rn, { onClick: r.onClick, "data-cy": "empty-state-action-button", children: r.title }) })] });
5727
5732
  }
5728
5733
  function Rn({
5729
5734
  props: e,
@@ -7134,8 +7139,8 @@ const Zg = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), Qg = ["act
7134
7139
  });
7135
7140
  let we = c;
7136
7141
  we === "button" && (D.href || D.to) && (we = h);
7137
- const Ke = {};
7138
- we === "button" ? (Ke.type = L === void 0 ? "button" : L, Ke.disabled = u) : (!D.href && !D.to && (Ke.role = "button"), u && (Ke["aria-disabled"] = u));
7142
+ const Xe = {};
7143
+ we === "button" ? (Xe.type = L === void 0 ? "button" : L, Xe.disabled = u) : (!D.href && !D.to && (Xe.role = "button"), u && (Xe["aria-disabled"] = u));
7139
7144
  const ut = Qe(r, Q, U);
7140
7145
  process.env.NODE_ENV !== "production" && E.useEffect(() => {
7141
7146
  Z && !$.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
@@ -7171,7 +7176,7 @@ const Zg = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), Qg = ["act
7171
7176
  ref: ut,
7172
7177
  tabIndex: u ? -1 : z,
7173
7178
  type: L
7174
- }, Ke, D, {
7179
+ }, Xe, D, {
7175
7180
  children: [a, Z ? (
7176
7181
  /* TouchRipple is only needed client-side, x2 boost on the server. */
7177
7182
  /* @__PURE__ */ f.jsx(gu, y({
@@ -9167,7 +9172,7 @@ function Lb(e) {
9167
9172
  P[C] = $e, z[C] = $e - U;
9168
9173
  }
9169
9174
  if (l) {
9170
- var qe, Me = C === "x" ? kt : $t, et = C === "x" ? qt : Gt, Le = P[x], Re = x === "y" ? "height" : "width", ze = Le + b[Me], Ge = Le - b[et], we = [kt, $t].indexOf(T) !== -1, Ke = (qe = N == null ? void 0 : N[x]) != null ? qe : 0, ut = we ? ze : Le - S[Re] - I[Re] - Ke + j.altAxis, rt = we ? Le + S[Re] + I[Re] - Ke - j.altAxis : Ge, Te = h && we ? cb(ut, Le, rt) : Ur(h ? ut : ze, Le, h ? rt : Ge);
9175
+ var qe, Me = C === "x" ? kt : $t, et = C === "x" ? qt : Gt, Le = P[x], Re = x === "y" ? "height" : "width", ze = Le + b[Me], Ge = Le - b[et], we = [kt, $t].indexOf(T) !== -1, Xe = (qe = N == null ? void 0 : N[x]) != null ? qe : 0, ut = we ? ze : Le - S[Re] - I[Re] - Xe + j.altAxis, rt = we ? Le + S[Re] + I[Re] - Xe - j.altAxis : Ge, Te = h && we ? cb(ut, Le, rt) : Ur(h ? ut : ze, Le, h ? rt : Ge);
9171
9176
  P[x] = Te, z[x] = Te - Le;
9172
9177
  }
9173
9178
  t.modifiersData[o] = z;
@@ -10130,7 +10135,7 @@ const Iu = /* @__PURE__ */ E.forwardRef(function(t, r) {
10130
10135
  TransitionProps: le
10131
10136
  } = P, H = ee(P, dy), pe = /* @__PURE__ */ E.isValidElement(I) ? I : /* @__PURE__ */ f.jsx("span", {
10132
10137
  children: I
10133
- }), $e = Cr(), qe = Zc(), [Me, et] = E.useState(), [Le, Re] = E.useState(null), ze = E.useRef(!1), Ge = F || G, we = tr(), Ke = tr(), ut = tr(), rt = tr(), [Te, de] = ur({
10138
+ }), $e = Cr(), qe = Zc(), [Me, et] = E.useState(), [Le, Re] = E.useState(null), ze = E.useRef(!1), Ge = F || G, we = tr(), Xe = tr(), ut = tr(), rt = tr(), [Te, de] = ur({
10134
10139
  controlled: J,
10135
10140
  default: !1,
10136
10141
  name: "Tooltip",
@@ -10164,11 +10169,11 @@ const Iu = /* @__PURE__ */ E.forwardRef(function(t, r) {
10164
10169
  });
10165
10170
  }
10166
10171
  ), Ve = (ue) => {
10167
- ze.current && ue.type !== "touchstart" || (Me && Me.removeAttribute("title"), Ke.clear(), ut.clear(), D || Po && U ? Ke.start(Po ? U : D, () => {
10172
+ ze.current && ue.type !== "touchstart" || (Me && Me.removeAttribute("title"), Xe.clear(), ut.clear(), D || Po && U ? Xe.start(Po ? U : D, () => {
10168
10173
  ce(ue);
10169
10174
  }) : ce(ue));
10170
10175
  }, Dt = (ue) => {
10171
- Ke.clear(), ut.start(W, () => {
10176
+ Xe.clear(), ut.start(W, () => {
10172
10177
  ye(ue);
10173
10178
  });
10174
10179
  }, {
@@ -10581,7 +10586,7 @@ function KE(e) {
10581
10586
  ...u && { position: "absolute" }
10582
10587
  },
10583
10588
  variant: "outlined"
10584
- }, anchor: "left", open: rs(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", children: f.jsxs(Ze, { height: "100%", justifyContent: "space-between", children: [f.jsxs(Ze, { direction: "column", spacing: 3, sx: { p: 2 }, children: [f.jsxs(Ze, { direction: "row", alignItems: "center", children: [f.jsxs(Ze, { direction: "row", alignItems: "center", children: [h && f.jsx(Ty, { Icon: h }), f.jsx(ht, { sx: { ml: h && 1 }, "data-cy": "drawer-header", children: i })] }), rs(e) && f.jsx(Ns, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
10589
+ }, anchor: "left", open: rs(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", children: f.jsxs(Ke, { height: "100%", justifyContent: "space-between", children: [f.jsxs(Ke, { direction: "column", spacing: 3, sx: { p: 2 }, children: [f.jsxs(Ke, { direction: "row", alignItems: "center", children: [f.jsxs(Ke, { direction: "row", alignItems: "center", children: [h && f.jsx(Ty, { Icon: h }), f.jsx(ht, { sx: { ml: h && 1 }, "data-cy": "drawer-header", children: i })] }), rs(e) && f.jsx(Ns, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
10585
10590
  popper: {
10586
10591
  modifiers: [
10587
10592
  {
@@ -13763,9 +13768,9 @@ const yr = be("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
13763
13768
  size: B.size,
13764
13769
  startAdornment: k,
13765
13770
  type: W
13766
- }), we = ux(Ge), Ke = G.root || u.Root || _i, ut = $.root || d.root || {}, rt = G.input || u.Input || Ni;
13771
+ }), we = ux(Ge), Xe = G.root || u.Root || _i, ut = $.root || d.root || {}, rt = G.input || u.Input || Ni;
13767
13772
  return Re = y({}, Re, (o = $.input) != null ? o : d.input), /* @__PURE__ */ f.jsxs(E.Fragment, {
13768
- children: [!h && dx, /* @__PURE__ */ f.jsxs(Ke, y({}, ut, !dr(Ke) && {
13773
+ children: [!h && dx, /* @__PURE__ */ f.jsxs(Xe, y({}, ut, !dr(Xe) && {
13769
13774
  ownerState: y({}, Ge, ut.ownerState)
13770
13775
  }, {
13771
13776
  ref: r,
@@ -17386,7 +17391,7 @@ const $1 = (e) => {
17386
17391
  delete U["aria-invalid"];
17387
17392
  let Re, ze;
17388
17393
  const Ge = [];
17389
- let we = !1, Ke = !1;
17394
+ let we = !1, Xe = !1;
17390
17395
  (ti({
17391
17396
  value: $
17392
17397
  }) || h) && (z ? Re = z($) : we = !0);
@@ -17402,7 +17407,7 @@ const $1 = (e) => {
17402
17407
  ye = $.some((Ve) => tc(Ve, ce.props.value)), ye && we && Ge.push(ce.props.children);
17403
17408
  } else
17404
17409
  ye = tc($, ce.props.value), ye && we && (ze = ce.props.children);
17405
- return ye && (Ke = !0), /* @__PURE__ */ E.cloneElement(ce, {
17410
+ return ye && (Xe = !0), /* @__PURE__ */ E.cloneElement(ce, {
17406
17411
  "aria-selected": ye ? "true" : "false",
17407
17412
  onClick: qe(ce),
17408
17413
  onKeyUp: (Ve) => {
@@ -17417,12 +17422,12 @@ const $1 = (e) => {
17417
17422
  });
17418
17423
  });
17419
17424
  process.env.NODE_ENV !== "production" && E.useEffect(() => {
17420
- if (!Ke && !O && $ !== "") {
17425
+ if (!Xe && !O && $ !== "") {
17421
17426
  const ce = pe.map((ye) => ye.props.value);
17422
17427
  console.warn([`MUI: You have provided an out-of-range value \`${$}\` for the select ${C ? `(name="${C}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${ce.filter((ye) => ye != null).map((ye) => `\`${ye}\``).join(", ") || '""'}.`].join(`
17423
17428
  `));
17424
17429
  }
17425
- }, [Ke, pe, O, C, $]), we && (O ? Ge.length === 0 ? Re = null : Re = Ge.reduce((ce, ye, Ve) => (ce.push(ye), Ve < Ge.length - 1 && ce.push(", "), ce), []) : Re = ze);
17430
+ }, [Xe, pe, O, C, $]), we && (O ? Ge.length === 0 ? Re = null : Re = Ge.reduce((ce, ye, Ve) => (ce.push(ye), Ve < Ge.length - 1 && ce.push(", "), ce), []) : Re = ze);
17426
17431
  let rt = re;
17427
17432
  !l && Y && q && (rt = oe.clientWidth);
17428
17433
  let Te;
@@ -18301,7 +18306,7 @@ Ra = wa.default = (0, K1.default)(/* @__PURE__ */ (0, X1.jsx)("path", {
18301
18306
  function rC({ message: e, sx: t, messageSx: r }) {
18302
18307
  return f.jsx(qd, { severity: "info", "data-cy": "internal-user-only-alert", sx: { alignItems: "center", ...t }, iconMapping: {
18303
18308
  info: f.jsx(Ra, {})
18304
- }, children: f.jsxs(Ze, { direction: "row", gap: 1, alignItems: "center", children: [f.jsx(ru, { sx: { color: "text.secondary" } }), f.jsx(Ze, { children: "-" }), f.jsx(ht, { variant: "body2", sx: r, "data-cy": "internal-user-only-alert-message", children: e || "This page has limited access to internal users only." })] }) });
18309
+ }, children: f.jsxs(Ke, { direction: "row", gap: 1, alignItems: "center", children: [f.jsx(ru, { sx: { color: "text.secondary" } }), f.jsx(Ke, { children: "-" }), f.jsx(ht, { variant: "body2", sx: r, "data-cy": "internal-user-only-alert-message", children: e || "This page has limited access to internal users only." })] }) });
18305
18310
  }
18306
18311
  const vt = {
18307
18312
  50: "#ede7f6",
@@ -20166,6 +20171,9 @@ class ZT {
20166
20171
  get label() {
20167
20172
  return cy.get("[data-test-ink-workflow-header-label]");
20168
20173
  }
20174
+ get subtitle() {
20175
+ return cy.get('[data-cy="header-subtitle"]');
20176
+ }
20169
20177
  get stepper() {
20170
20178
  return cy.get("[data-test-ink-workflow-header-stepper]");
20171
20179
  }