@movable/ui 2.13.7 → 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: {
@@ -4072,7 +4072,7 @@ function AE({ Title: e, Content: t, Actions: r, onClose: o, hideCloseButton: i,
4072
4072
  right: "15px",
4073
4073
  p: "4px",
4074
4074
  color: (b) => b.palette.grey[500]
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(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 })] })] });
4076
4076
  }
4077
4077
  const tu = 280, rh = uc(Tt, { shouldForwardProp: (e) => e !== "open" })(({ theme: e, open: t }) => ({
4078
4078
  flexGrow: 1,
@@ -4118,7 +4118,7 @@ function _E({
4118
4118
  ...u && { position: "absolute" }
4119
4119
  },
4120
4120
  variant: "outlined"
4121
- }, 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: {
4122
4122
  popper: {
4123
4123
  modifiers: [
4124
4124
  {
@@ -4142,7 +4142,7 @@ function _E({
4142
4142
  }, children: a })] }) }), f.jsx(rh, { component: "main", open: e, ...d, children: r })] });
4143
4143
  }
4144
4144
  function NE({ metadata: e }) {
4145
- 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)) });
4146
4146
  }
4147
4147
  const oh = ({ children: e }) => {
4148
4148
  const t = Ad({
@@ -4165,14 +4165,14 @@ const oh = ({ children: e }) => {
4165
4165
  ...t
4166
4166
  }, children: e({ position: o }) }) });
4167
4167
  function DE({ Breadcrumbs: e, Subtitle: t, Metadata: r, Chips: o, ButtonGroup: i, Tabs: s, sx: a }) {
4168
- 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: {
4169
4169
  borderBottom: 1,
4170
4170
  borderColor: "divider",
4171
4171
  px: 3,
4172
4172
  py: 3,
4173
4173
  ...s && { pb: -3 },
4174
4174
  ...a
4175
- }, 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] }) });
4176
4176
  }
4177
4177
  const ih = {
4178
4178
  ".MuiBreadcrumbs-separator": {
@@ -4197,7 +4197,7 @@ function LE({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
4197
4197
  }, l = () => {
4198
4198
  i(null);
4199
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)));
4200
- 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: {
4201
4201
  "aria-labelledby": "action-dd"
4202
4202
  }, anchorOrigin: {
4203
4203
  vertical: "bottom",
@@ -4214,14 +4214,14 @@ function LE({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
4214
4214
  function BE({ subtitle: e }) {
4215
4215
  return f.jsx(ht, { variant: "body2", color: "text.secondary", "data-cy": "header-subtitle", children: e });
4216
4216
  }
4217
- function zE({ label: e, Stepper: t, ButtonGroup: r }) {
4218
- 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);
4219
4219
  return f.jsx(nu, { sx: {
4220
4220
  px: 3,
4221
4221
  py: 2.25,
4222
4222
  borderBottom: "1px solid",
4223
4223
  borderBottomColor: "neutral200"
4224
- }, 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 })] }) });
4225
4225
  }
4226
4226
  var nt = {}, ou = { exports: {} };
4227
4227
  (function(e) {
@@ -5520,7 +5520,7 @@ function VE({ Header: e, Description: t, Icon: r, CTA: o, children: i, shouldSho
5520
5520
  }
5521
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 }) => {
5522
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;
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(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 }) => {
5524
5524
  const w = l || T;
5525
5525
  return f.jsx(Fd, { value: p, disabled: w, control: f.jsx(Ld, { sx: { display: "none" } }), sx: {
5526
5526
  width: a ? "100%" : "auto",
@@ -5549,7 +5549,7 @@ const WE = ({ name: e, options: t, value: r, ref: o, direction: i = "row", cardS
5549
5549
  borderRadius: 1,
5550
5550
  outlineColor: (O) => m(r === p, O.palette.primary.dark, O.palette.neutral200, O.palette.neutral200, w),
5551
5551
  ...s
5552
- }, 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: {
5553
5553
  color: w ? "neutral500" : r === p ? "text.primary" : "action.active",
5554
5554
  ".MuiSvgIcon-root": { fontSize: "2rem" }
5555
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);
@@ -5728,7 +5728,7 @@ const yl = {
5728
5728
  };
5729
5729
  function qE({ title: e, description: t, action: r, variant: o, icon: i, sx: s }) {
5730
5730
  const a = o === "search" ? "neutral00" : "neutral50", l = Eg[o], { fontSize: c, fontSizeDescription: u, titleVariant: d, descriptionVariant: m } = l;
5731
- 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 }) })] });
5732
5732
  }
5733
5733
  function Rn({
5734
5734
  props: e,
@@ -7139,8 +7139,8 @@ const Zg = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), Qg = ["act
7139
7139
  });
7140
7140
  let we = c;
7141
7141
  we === "button" && (D.href || D.to) && (we = h);
7142
- const Ke = {};
7143
- 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));
7144
7144
  const ut = Qe(r, Q, U);
7145
7145
  process.env.NODE_ENV !== "production" && E.useEffect(() => {
7146
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(`
@@ -7176,7 +7176,7 @@ const Zg = be("MuiButtonBase", ["root", "disabled", "focusVisible"]), Qg = ["act
7176
7176
  ref: ut,
7177
7177
  tabIndex: u ? -1 : z,
7178
7178
  type: L
7179
- }, Ke, D, {
7179
+ }, Xe, D, {
7180
7180
  children: [a, Z ? (
7181
7181
  /* TouchRipple is only needed client-side, x2 boost on the server. */
7182
7182
  /* @__PURE__ */ f.jsx(gu, y({
@@ -9172,7 +9172,7 @@ function Lb(e) {
9172
9172
  P[C] = $e, z[C] = $e - U;
9173
9173
  }
9174
9174
  if (l) {
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, 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);
9176
9176
  P[x] = Te, z[x] = Te - Le;
9177
9177
  }
9178
9178
  t.modifiersData[o] = z;
@@ -10135,7 +10135,7 @@ const Iu = /* @__PURE__ */ E.forwardRef(function(t, r) {
10135
10135
  TransitionProps: le
10136
10136
  } = P, H = ee(P, dy), pe = /* @__PURE__ */ E.isValidElement(I) ? I : /* @__PURE__ */ f.jsx("span", {
10137
10137
  children: I
10138
- }), $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({
10139
10139
  controlled: J,
10140
10140
  default: !1,
10141
10141
  name: "Tooltip",
@@ -10169,11 +10169,11 @@ const Iu = /* @__PURE__ */ E.forwardRef(function(t, r) {
10169
10169
  });
10170
10170
  }
10171
10171
  ), Ve = (ue) => {
10172
- 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, () => {
10173
10173
  ce(ue);
10174
10174
  }) : ce(ue));
10175
10175
  }, Dt = (ue) => {
10176
- Ke.clear(), ut.start(W, () => {
10176
+ Xe.clear(), ut.start(W, () => {
10177
10177
  ye(ue);
10178
10178
  });
10179
10179
  }, {
@@ -10586,7 +10586,7 @@ function KE(e) {
10586
10586
  ...u && { position: "absolute" }
10587
10587
  },
10588
10588
  variant: "outlined"
10589
- }, 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: {
10590
10590
  popper: {
10591
10591
  modifiers: [
10592
10592
  {
@@ -13768,9 +13768,9 @@ const yr = be("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
13768
13768
  size: B.size,
13769
13769
  startAdornment: k,
13770
13770
  type: W
13771
- }), 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;
13772
13772
  return Re = y({}, Re, (o = $.input) != null ? o : d.input), /* @__PURE__ */ f.jsxs(E.Fragment, {
13773
- children: [!h && dx, /* @__PURE__ */ f.jsxs(Ke, y({}, ut, !dr(Ke) && {
13773
+ children: [!h && dx, /* @__PURE__ */ f.jsxs(Xe, y({}, ut, !dr(Xe) && {
13774
13774
  ownerState: y({}, Ge, ut.ownerState)
13775
13775
  }, {
13776
13776
  ref: r,
@@ -17391,7 +17391,7 @@ const $1 = (e) => {
17391
17391
  delete U["aria-invalid"];
17392
17392
  let Re, ze;
17393
17393
  const Ge = [];
17394
- let we = !1, Ke = !1;
17394
+ let we = !1, Xe = !1;
17395
17395
  (ti({
17396
17396
  value: $
17397
17397
  }) || h) && (z ? Re = z($) : we = !0);
@@ -17407,7 +17407,7 @@ const $1 = (e) => {
17407
17407
  ye = $.some((Ve) => tc(Ve, ce.props.value)), ye && we && Ge.push(ce.props.children);
17408
17408
  } else
17409
17409
  ye = tc($, ce.props.value), ye && we && (ze = ce.props.children);
17410
- return ye && (Ke = !0), /* @__PURE__ */ E.cloneElement(ce, {
17410
+ return ye && (Xe = !0), /* @__PURE__ */ E.cloneElement(ce, {
17411
17411
  "aria-selected": ye ? "true" : "false",
17412
17412
  onClick: qe(ce),
17413
17413
  onKeyUp: (Ve) => {
@@ -17422,12 +17422,12 @@ const $1 = (e) => {
17422
17422
  });
17423
17423
  });
17424
17424
  process.env.NODE_ENV !== "production" && E.useEffect(() => {
17425
- if (!Ke && !O && $ !== "") {
17425
+ if (!Xe && !O && $ !== "") {
17426
17426
  const ce = pe.map((ye) => ye.props.value);
17427
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(`
17428
17428
  `));
17429
17429
  }
17430
- }, [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);
17431
17431
  let rt = re;
17432
17432
  !l && Y && q && (rt = oe.clientWidth);
17433
17433
  let Te;
@@ -18306,7 +18306,7 @@ Ra = wa.default = (0, K1.default)(/* @__PURE__ */ (0, X1.jsx)("path", {
18306
18306
  function rC({ message: e, sx: t, messageSx: r }) {
18307
18307
  return f.jsx(qd, { severity: "info", "data-cy": "internal-user-only-alert", sx: { alignItems: "center", ...t }, iconMapping: {
18308
18308
  info: f.jsx(Ra, {})
18309
- }, 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." })] }) });
18310
18310
  }
18311
18311
  const vt = {
18312
18312
  50: "#ede7f6",
@@ -20171,6 +20171,9 @@ class ZT {
20171
20171
  get label() {
20172
20172
  return cy.get("[data-test-ink-workflow-header-label]");
20173
20173
  }
20174
+ get subtitle() {
20175
+ return cy.get('[data-cy="header-subtitle"]');
20176
+ }
20174
20177
  get stepper() {
20175
20178
  return cy.get("[data-test-ink-workflow-header-stepper]");
20176
20179
  }