@movable/ui 4.2.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Dialog/InkDialog.d.ts +2 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.mjs +94 -91
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import Md from "@emotion/styled";
|
|
|
4
4
|
import { Global as Vh, ThemeContext as Wh, keyframes as ii, css as Nd } from "@emotion/react";
|
|
5
5
|
import * as Hh from "react-dom";
|
|
6
6
|
import vi from "react-dom";
|
|
7
|
-
import { Chip as Ls, Tooltip as sa, CircularProgress as hl, Box as he, Menu as la, MenuItem as Rr, Button as It, Dialog as Uh, IconButton as Pn, Icon as Un, DialogTitle as Gh, Stack as
|
|
7
|
+
import { Chip as Ls, Tooltip as sa, CircularProgress as hl, Box as he, Menu as la, MenuItem as Rr, Button as It, Dialog as Uh, IconButton as Pn, Icon as Un, DialogTitle as Gh, Stack as $e, Typography as Ne, DialogActions as qh, styled as Ld, Drawer as _d, AppBar as Kh, useScrollTrigger as Yh, Breadcrumbs as Xh, Link as Dd, RadioGroup as Jh, Card as Vi, FormControlLabel as ml, Radio as Qh, ToggleButton as Bd, ToggleButtonGroup as Fd, ListSubheader as Zh, FormControl as em, InputLabel as tm, Select as nm, FormHelperText as rm, GlobalStyles as om, Divider as gl, Alert as zd, Skeleton as Uo, Checkbox as Vd, CardHeader as im, CardMedia as am, CardContent as sm, CardActions as lm, Fade as cm, TextField as um, List as dm, ListItem as pm, Paper as fm, Badge as hm, CardActionArea as mm, Grid2 as Lo } from "@mui/material";
|
|
8
8
|
import { WarningAmberRounded as gm, ReportRounded as ym, HourglassTopRounded as bm, BoltRounded as vm, Close as xm, ViewList as Tm } from "@mui/icons-material";
|
|
9
9
|
import { Controller as ai } from "react-hook-form";
|
|
10
10
|
import { SnackbarProvider as Cm, SnackbarContent as wm } from "notistack";
|
|
@@ -6764,7 +6764,7 @@ function hv() {
|
|
|
6764
6764
|
return Sa;
|
|
6765
6765
|
}
|
|
6766
6766
|
process.env.NODE_ENV !== "production" && (r.node, r.object.isRequired);
|
|
6767
|
-
function
|
|
6767
|
+
function Ie(e) {
|
|
6768
6768
|
return s0(e);
|
|
6769
6769
|
}
|
|
6770
6770
|
const mv = J(vp, {
|
|
@@ -6772,7 +6772,7 @@ const mv = J(vp, {
|
|
|
6772
6772
|
slot: "Root",
|
|
6773
6773
|
overridesResolver: (e, t) => t.root
|
|
6774
6774
|
})({}), hi = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
6775
|
-
const o = Tl(), i =
|
|
6775
|
+
const o = Tl(), i = Ie({
|
|
6776
6776
|
props: t,
|
|
6777
6777
|
name: "MuiPopper"
|
|
6778
6778
|
}), {
|
|
@@ -7023,7 +7023,7 @@ const yv = (e) => {
|
|
|
7023
7023
|
}
|
|
7024
7024
|
}]
|
|
7025
7025
|
}))), Yi = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
7026
|
-
const o =
|
|
7026
|
+
const o = Ie({
|
|
7027
7027
|
props: t,
|
|
7028
7028
|
name: "MuiListSubheader"
|
|
7029
7029
|
}), {
|
|
@@ -7151,7 +7151,7 @@ const xv = (e) => {
|
|
|
7151
7151
|
}
|
|
7152
7152
|
}]
|
|
7153
7153
|
}))), Dr = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
7154
|
-
const o =
|
|
7154
|
+
const o = Ie({
|
|
7155
7155
|
props: t,
|
|
7156
7156
|
name: "MuiPaper"
|
|
7157
7157
|
}), i = dr(), {
|
|
@@ -7351,7 +7351,7 @@ const wv = (e) => {
|
|
|
7351
7351
|
}
|
|
7352
7352
|
]
|
|
7353
7353
|
}))), Xi = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
7354
|
-
const o =
|
|
7354
|
+
const o = Ie({
|
|
7355
7355
|
props: t,
|
|
7356
7356
|
name: "MuiSvgIcon"
|
|
7357
7357
|
}), {
|
|
@@ -8294,7 +8294,7 @@ const sn = ke("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
|
|
|
8294
8294
|
animation-delay: 200ms;
|
|
8295
8295
|
}
|
|
8296
8296
|
`, Gp = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
8297
|
-
const o =
|
|
8297
|
+
const o = Ie({
|
|
8298
8298
|
props: t,
|
|
8299
8299
|
name: "MuiTouchRipple"
|
|
8300
8300
|
}), {
|
|
@@ -8481,7 +8481,7 @@ const Hv = ke("MuiButtonBase", ["root", "disabled", "focusVisible"]), Uv = (e) =
|
|
|
8481
8481
|
colorAdjust: "exact"
|
|
8482
8482
|
}
|
|
8483
8483
|
}), Ir = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
8484
|
-
const o =
|
|
8484
|
+
const o = Ie({
|
|
8485
8485
|
props: t,
|
|
8486
8486
|
name: "MuiButtonBase"
|
|
8487
8487
|
}), {
|
|
@@ -8873,7 +8873,7 @@ const er = 44, Xs = ii`
|
|
|
8873
8873
|
}
|
|
8874
8874
|
}]
|
|
8875
8875
|
}))), Nl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
8876
|
-
const o =
|
|
8876
|
+
const o = Ie({
|
|
8877
8877
|
props: t,
|
|
8878
8878
|
name: "MuiCircularProgress"
|
|
8879
8879
|
}), {
|
|
@@ -9140,7 +9140,7 @@ const ou = ke("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
9140
9140
|
}
|
|
9141
9141
|
}]
|
|
9142
9142
|
})), uo = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
9143
|
-
const o =
|
|
9143
|
+
const o = Ie({
|
|
9144
9144
|
props: t,
|
|
9145
9145
|
name: "MuiIconButton"
|
|
9146
9146
|
}), {
|
|
@@ -9595,7 +9595,7 @@ function iu(e) {
|
|
|
9595
9595
|
return e.key === "Backspace" || e.key === "Delete";
|
|
9596
9596
|
}
|
|
9597
9597
|
const qp = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
9598
|
-
const o =
|
|
9598
|
+
const o = Ie({
|
|
9599
9599
|
props: t,
|
|
9600
9600
|
name: "MuiChip"
|
|
9601
9601
|
}), {
|
|
@@ -10157,7 +10157,7 @@ const Ra = (e, t) => {
|
|
|
10157
10157
|
}
|
|
10158
10158
|
}
|
|
10159
10159
|
}), Ia = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
10160
|
-
const o =
|
|
10160
|
+
const o = Ie({
|
|
10161
10161
|
props: t,
|
|
10162
10162
|
name: "MuiInputBase"
|
|
10163
10163
|
}), {
|
|
@@ -11004,7 +11004,7 @@ const bx = (e) => {
|
|
|
11004
11004
|
paddingLeft: 24
|
|
11005
11005
|
}
|
|
11006
11006
|
}), Jp = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
11007
|
-
const o =
|
|
11007
|
+
const o = Ie({
|
|
11008
11008
|
props: t,
|
|
11009
11009
|
name: "MuiAutocomplete"
|
|
11010
11010
|
}), {
|
|
@@ -12974,31 +12974,34 @@ const sf = (e) => {
|
|
|
12974
12974
|
children: pl.map(n.children, (o) => lf(o, t))
|
|
12975
12975
|
}) : e;
|
|
12976
12976
|
};
|
|
12977
|
-
function L$({ Title: e, Content: t, Actions: n, onClose: o, hideCloseButton: i, ActionsProp: a,
|
|
12978
|
-
t !== void 0 &&
|
|
12979
|
-
const
|
|
12980
|
-
let
|
|
12977
|
+
function L$({ Title: e, Content: t, Actions: n, onClose: o, hideCloseButton: i, ActionsProp: a, ActionDescription: s, children: l, ...c }) {
|
|
12978
|
+
t !== void 0 && l !== void 0 && console.warn("InkDialog: both `Content` prop and `children` were provided. `Content` will take precedence.");
|
|
12979
|
+
const d = t ?? l;
|
|
12980
|
+
let p = n;
|
|
12981
12981
|
if (n) {
|
|
12982
|
-
const
|
|
12983
|
-
if (
|
|
12984
|
-
const
|
|
12985
|
-
|
|
12982
|
+
const f = sf(n);
|
|
12983
|
+
if (f.length > 1) {
|
|
12984
|
+
const b = f[f.length - 1];
|
|
12985
|
+
p = jt.Children.map(n, (v) => lf(v, b));
|
|
12986
12986
|
}
|
|
12987
12987
|
}
|
|
12988
|
-
const
|
|
12989
|
-
|
|
12988
|
+
const h = (f) => {
|
|
12989
|
+
f.stopPropagation();
|
|
12990
12990
|
};
|
|
12991
|
-
return u.jsxs(Uh, { ...
|
|
12991
|
+
return u.jsxs(Uh, { ...c, onClose: o, "data-test": "ink-dialog", onMouseMove: h, onMouseDown: h, onMouseUp: h, onClick: h, children: [!i && u.jsx(Pn, { onClick: o, "data-test": "ink-dialog-close", sx: {
|
|
12992
12992
|
position: "absolute",
|
|
12993
12993
|
top: "16px",
|
|
12994
12994
|
right: "15px",
|
|
12995
12995
|
p: "4px",
|
|
12996
|
-
color: (
|
|
12997
|
-
}, children: u.jsx(Un, { children: "close_filled" }) }), typeof e != "string" ? u.jsx(u.Fragment, { children: e }) : u.jsx(Gh, { "data-test": "ink-dialog-title", children: u.jsxs(
|
|
12996
|
+
color: (f) => f.palette.grey[500]
|
|
12997
|
+
}, children: u.jsx(Un, { children: "close_filled" }) }), typeof e != "string" ? u.jsx(u.Fragment, { children: e }) : u.jsx(Gh, { "data-test": "ink-dialog-title", children: u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", children: [a?.primary?.variant && u.jsx(W1, { variant: a.primary.variant }), u.jsx(Ne, { variant: "h6", children: u.jsx("strong", { children: e }) })] }) }), d, p, a && u.jsxs(qh, { sx: {
|
|
12998
|
+
m: 1,
|
|
12999
|
+
justifyContent: s ? "space-between" : "flex-end"
|
|
13000
|
+
}, children: [typeof s == "string" ? u.jsx(Ne, { variant: "caption", sx: { color: "text.secondary" }, "data-test": "ink-dialog-action-description", children: s }) : s, u.jsxs($e, { direction: "row", spacing: 1, children: [a.cancel && u.jsx(It, { "data-test": "ink-dialog-cancel-action", onClick: a.cancel.onClick, children: a.cancel?.label }), a.secondary && u.jsx(It, { sx: {
|
|
12998
13001
|
color: a.secondary?.variant === "destructive" ? "error" : "primary"
|
|
12999
13002
|
}, "data-test": "ink-dialog-secondary-action", disabled: a.secondary.disabled || a.secondary.loading, ...a.secondary, variant: a.secondary?.variant ? "contained" : "text", loadingPosition: "end", children: a.secondary?.label }), a.primary && u.jsx(It, { sx: {
|
|
13000
13003
|
color: a.primary?.variant === "destructive" ? "error" : "primary"
|
|
13001
|
-
}, "data-test": "ink-dialog-primary-action", disabled: a.primary.disabled || a.primary.loading, ...a.primary, variant: "contained", loadingPosition: "end", children: a.primary?.label })] })] });
|
|
13004
|
+
}, "data-test": "ink-dialog-primary-action", disabled: a.primary.disabled || a.primary.loading, ...a.primary, variant: "contained", loadingPosition: "end", children: a.primary?.label })] })] })] });
|
|
13002
13005
|
}
|
|
13003
13006
|
const cf = 280, H1 = Ld(he, { shouldForwardProp: (e) => e !== "open" })(({ theme: e, open: t }) => ({
|
|
13004
13007
|
flexGrow: 1,
|
|
@@ -13047,7 +13050,7 @@ function _$({
|
|
|
13047
13050
|
sx: {
|
|
13048
13051
|
padding: 0
|
|
13049
13052
|
}
|
|
13050
|
-
}, variant: "persistent", anchor: "left", open: e, children: u.jsxs(
|
|
13053
|
+
}, variant: "persistent", anchor: "left", open: e, children: u.jsxs($e, { sx: { height: "100%", justifyContent: "space-between" }, children: [u.jsxs($e, { direction: "column", spacing: 3, sx: { p: 2 }, children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", children: [u.jsx(Un, { sx: { fontSize: "small", color: "text.primary" }, children: "filter_list_icon" }), u.jsx(Ne, { sx: { ml: 1 }, "data-cy": "drawer-header", children: l })] }), u.jsx(sa, { title: "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
|
|
13051
13054
|
popper: {
|
|
13052
13055
|
modifiers: [
|
|
13053
13056
|
{
|
|
@@ -13072,7 +13075,7 @@ function _$({
|
|
|
13072
13075
|
}
|
|
13073
13076
|
function D$({ metadata: e }) {
|
|
13074
13077
|
const t = (n) => n == null || n === "" ? u.jsx(Ne, { sx: { color: "text.disabled" }, variant: "body2", children: "--" }) : typeof n == "string" ? u.jsx(Ne, { variant: "body2", children: n }) : n;
|
|
13075
|
-
return u.jsx(
|
|
13078
|
+
return u.jsx($e, { direction: "row", spacing: 2, "data-test-ink-page-header-metadata": !0, children: e.map(({ icon: n, label: o, value: i }) => u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", spacing: 0.5, "data-cy": `metadata-${o}`, children: [n && typeof n == "string" ? u.jsx(Un, { sx: { color: "neutral600", fontSize: "1rem" }, children: n }) : n, u.jsx(Ne, { sx: { color: "text.secondary" }, variant: "body2", children: o }), t(i)] }, o)) });
|
|
13076
13079
|
}
|
|
13077
13080
|
const U1 = ({ children: e }) => {
|
|
13078
13081
|
const t = Yh({
|
|
@@ -13096,7 +13099,7 @@ const U1 = ({ children: e }) => {
|
|
|
13096
13099
|
...t
|
|
13097
13100
|
}, children: e({ position: o }) }) });
|
|
13098
13101
|
function B$({ Breadcrumbs: e, Subtitle: t, Metadata: n, Chips: o, ButtonGroup: i, Tabs: a, sx: s }) {
|
|
13099
|
-
return u.jsx(uf, { children: ({ position: l }) => u.jsxs(
|
|
13102
|
+
return u.jsx(uf, { children: ({ position: l }) => u.jsxs($e, { "data-test-ink-page-header": !0, direction: "column", spacing: 2, sx: {
|
|
13100
13103
|
position: l,
|
|
13101
13104
|
borderBottom: 1,
|
|
13102
13105
|
borderColor: "divider",
|
|
@@ -13104,11 +13107,11 @@ function B$({ Breadcrumbs: e, Subtitle: t, Metadata: n, Chips: o, ButtonGroup: i
|
|
|
13104
13107
|
py: 3,
|
|
13105
13108
|
...a && { pb: -3 },
|
|
13106
13109
|
...s
|
|
13107
|
-
}, children: [u.jsxs(
|
|
13110
|
+
}, children: [u.jsxs($e, { direction: "row", spacing: 2, sx: {
|
|
13108
13111
|
justifyContent: "space-between",
|
|
13109
13112
|
alignItems: "center",
|
|
13110
13113
|
minHeight: 36
|
|
13111
|
-
}, children: [u.jsxs(
|
|
13114
|
+
}, children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", spacing: 1, children: [e, o] }), i] }), n, t, a] }) });
|
|
13112
13115
|
}
|
|
13113
13116
|
const G1 = {
|
|
13114
13117
|
".MuiBreadcrumbs-separator": {
|
|
@@ -13133,7 +13136,7 @@ function z$({ primaryAction: e, secondaryAction: t, dropdownAction: n }) {
|
|
|
13133
13136
|
}, l = () => {
|
|
13134
13137
|
i(null);
|
|
13135
13138
|
}, { internalUseOnlyItems: c, menuOptions: d } = n ?? {}, p = d?.filter((f) => c?.includes(f.label)), h = d?.filter((f) => !c?.includes(f.label));
|
|
13136
|
-
return u.jsxs(
|
|
13139
|
+
return u.jsxs($e, { direction: "row", spacing: 1, "data-test-ink-page-header-action-buttons": !0, children: [n && u.jsxs(he, { children: [u.jsx(It, { id: "action-dd", "aria-controls": a ? "action-menu" : void 0, "aria-haspopup": "true", "aria-expanded": a ? "true" : void 0, onClick: s, variant: "contained", color: "inherit", endIcon: u.jsx(Un, { children: "arrow_drop_down" }), children: n.label }), u.jsxs(la, { id: "action-menu", anchorEl: o, open: a, onClose: l, MenuListProps: {
|
|
13137
13140
|
"aria-labelledby": "action-dd"
|
|
13138
13141
|
}, anchorOrigin: {
|
|
13139
13142
|
vertical: "bottom",
|
|
@@ -13157,11 +13160,11 @@ function V$({ label: e, Stepper: t, ButtonGroup: n, subtitle: o }) {
|
|
|
13157
13160
|
py: 2.25,
|
|
13158
13161
|
borderBottom: "1px solid",
|
|
13159
13162
|
borderBottomColor: "neutral200"
|
|
13160
|
-
}, children: ({ position: a }) => u.jsxs(
|
|
13163
|
+
}, children: ({ position: a }) => u.jsxs($e, { sx: {
|
|
13161
13164
|
position: a,
|
|
13162
13165
|
justifyContent: "space-between",
|
|
13163
13166
|
alignItems: "center"
|
|
13164
|
-
}, direction: "row", spacing: 2, children: [u.jsx(Ne, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: u.jsxs(
|
|
13167
|
+
}, direction: "row", spacing: 2, children: [u.jsx(Ne, { "data-test-ink-workflow-header-label": !0, variant: "h6", sx: { fontWeight: "600", flexGrow: "1" }, children: u.jsxs($e, { direction: "column", spacing: 0, children: [e, o && u.jsx(Y1, { component: "span", subtitle: o })] }) }), t && u.jsx(he, { sx: { flexGrow: "2" }, "data-test-ink-workflow-header-stepper": !0, children: t }), n && u.jsx(he, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-ink-workflow-header-button-group": !0, children: i(n) ? u.jsxs($e, { direction: "row", spacing: 1, children: [n.primary && u.jsx(It, { variant: "contained", endIcon: n.primary.loading ? u.jsx(hl, { 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 && u.jsx(Pn, { onClick: n.close.onClick, "data-test-ink-workflow-header-close-action": !0, children: u.jsx(Un, { children: "close_rounded" }) })] }) : n })] }) });
|
|
13165
13168
|
}
|
|
13166
13169
|
const Qo = _0({
|
|
13167
13170
|
createStyledComponent: J("div", {
|
|
@@ -13169,7 +13172,7 @@ const Qo = _0({
|
|
|
13169
13172
|
slot: "Root",
|
|
13170
13173
|
overridesResolver: (e, t) => t.root
|
|
13171
13174
|
}),
|
|
13172
|
-
useThemeProps: (e) =>
|
|
13175
|
+
useThemeProps: (e) => Ie({
|
|
13173
13176
|
props: e,
|
|
13174
13177
|
name: "MuiStack"
|
|
13175
13178
|
})
|
|
@@ -13332,7 +13335,7 @@ const bu = ke("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub
|
|
|
13332
13335
|
const {
|
|
13333
13336
|
color: o,
|
|
13334
13337
|
...i
|
|
13335
|
-
} =
|
|
13338
|
+
} = Ie({
|
|
13336
13339
|
props: t,
|
|
13337
13340
|
name: "MuiTypography"
|
|
13338
13341
|
}), a = !J1[o], s = Q1({
|
|
@@ -13588,7 +13591,7 @@ const nT = (e) => {
|
|
|
13588
13591
|
}
|
|
13589
13592
|
}]
|
|
13590
13593
|
}), ra = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
13591
|
-
const o =
|
|
13594
|
+
const o = Ie({
|
|
13592
13595
|
props: t,
|
|
13593
13596
|
name: "MuiCollapse"
|
|
13594
13597
|
}), {
|
|
@@ -13923,7 +13926,7 @@ const Ri = ke("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabl
|
|
|
13923
13926
|
})({
|
|
13924
13927
|
all: "unset"
|
|
13925
13928
|
}), pf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
13926
|
-
const o =
|
|
13929
|
+
const o = Ie({
|
|
13927
13930
|
props: t,
|
|
13928
13931
|
name: "MuiAccordion"
|
|
13929
13932
|
}), {
|
|
@@ -14119,7 +14122,7 @@ const dT = (e) => {
|
|
|
14119
14122
|
}) => ({
|
|
14120
14123
|
padding: e.spacing(1, 2, 2)
|
|
14121
14124
|
}))), ff = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
14122
|
-
const o =
|
|
14125
|
+
const o = Ie({
|
|
14123
14126
|
props: t,
|
|
14124
14127
|
name: "MuiAccordionDetails"
|
|
14125
14128
|
}), {
|
|
@@ -14244,7 +14247,7 @@ const qr = ke("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disab
|
|
|
14244
14247
|
transform: "rotate(180deg)"
|
|
14245
14248
|
}
|
|
14246
14249
|
}))), hf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
14247
|
-
const o =
|
|
14250
|
+
const o = Ie({
|
|
14248
14251
|
props: t,
|
|
14249
14252
|
name: "MuiAccordionSummary"
|
|
14250
14253
|
}), {
|
|
@@ -14427,7 +14430,7 @@ function H$({ label: e, children: t, leftAdornment: n, chip: o, details: i, onDe
|
|
|
14427
14430
|
}
|
|
14428
14431
|
const U$ = ({ name: e, options: t, value: n, ref: o, direction: i = "row", cardSx: a, fullWidth: s = !0, disabled: l = !1, onChange: c, onBlur: d }) => {
|
|
14429
14432
|
const p = (b, v, g, S) => S ? b ? v : "inherit" : g, h = (b, v, g, S, m) => m ? b ? v : S : b ? v : g, f = t.some((b) => !!b.bottomContent);
|
|
14430
|
-
return u.jsx(Jh, { name: e, onChange: c, onBlur: d, value: n, ref: o, "aria-label": e, "aria-readonly": l, "aria-disabled": l, sx: { width: s ? "100%" : "fit-content" }, children: u.jsx(
|
|
14433
|
+
return u.jsx(Jh, { name: e, onChange: c, onBlur: d, value: n, ref: o, "aria-label": e, "aria-readonly": l, "aria-disabled": l, sx: { width: s ? "100%" : "fit-content" }, children: u.jsx($e, { direction: i, spacing: 2, children: t.map(({ value: b, icon: v, title: g, description: S, subDescription: m, disabled: C, bottomContent: y, tooltipProps: T }) => {
|
|
14431
14434
|
const w = l || C, E = u.jsxs(Vi, { elevation: 0, id: b, sx: {
|
|
14432
14435
|
px: 3,
|
|
14433
14436
|
py: 2,
|
|
@@ -14451,7 +14454,7 @@ const U$ = ({ name: e, options: t, value: n, ref: o, direction: i = "row", cardS
|
|
|
14451
14454
|
borderRadius: 1,
|
|
14452
14455
|
outlineColor: (k) => h(n === b, k.palette.primary.dark, k.palette.neutral200, k.palette.neutral200, w),
|
|
14453
14456
|
...a
|
|
14454
|
-
}, children: [u.jsxs(
|
|
14457
|
+
}, children: [u.jsxs($e, { sx: { alignItems: "center", width: "100%" }, direction: "column", children: [v && u.jsx(he, { sx: {
|
|
14455
14458
|
color: w ? "neutral500" : n === b ? "text.primary" : "action.active",
|
|
14456
14459
|
".MuiSvgIcon-root": { fontSize: "2rem" }
|
|
14457
14460
|
}, children: v }), u.jsx(Ne, { sx: {
|
|
@@ -14662,7 +14665,7 @@ const Cu = {
|
|
|
14662
14665
|
function K$({ title: e, description: t, action: n, variant: o, icon: i, isLongLoading: a, sx: s }) {
|
|
14663
14666
|
a && (e = e || ms.title, t = t || ms.description, i = i || ms.icon);
|
|
14664
14667
|
const l = o === "search" ? "neutral00" : "neutral50", c = wT[o], { fontSize: d, fontSizeDescription: p, titleVariant: h, descriptionVariant: f } = c, b = (v) => !!v && "onClick" in v;
|
|
14665
|
-
return u.jsxs(
|
|
14668
|
+
return u.jsxs($e, { "data-cy": `empty-state-${o}-${a ? "long-loading-" : ""}container`, sx: {
|
|
14666
14669
|
alignItems: "center",
|
|
14667
14670
|
justifyContent: "center",
|
|
14668
14671
|
textAlign: "center",
|
|
@@ -14741,7 +14744,7 @@ const zo = ke("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
14741
14744
|
color: (e.vars || e).palette.error.main
|
|
14742
14745
|
}
|
|
14743
14746
|
}))), Va = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
14744
|
-
const o =
|
|
14747
|
+
const o = Ie({
|
|
14745
14748
|
props: t,
|
|
14746
14749
|
name: "MuiFormLabel"
|
|
14747
14750
|
}), {
|
|
@@ -14993,7 +14996,7 @@ const PT = (e) => {
|
|
|
14993
14996
|
}
|
|
14994
14997
|
}]
|
|
14995
14998
|
}))), Fl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
14996
|
-
const o =
|
|
14999
|
+
const o = Ie({
|
|
14997
15000
|
name: "MuiInputLabel",
|
|
14998
15001
|
props: t
|
|
14999
15002
|
}), {
|
|
@@ -15143,7 +15146,7 @@ const IT = (e) => {
|
|
|
15143
15146
|
}
|
|
15144
15147
|
}]
|
|
15145
15148
|
}), zl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
15146
|
-
const o =
|
|
15149
|
+
const o = Ie({
|
|
15147
15150
|
props: t,
|
|
15148
15151
|
name: "MuiList"
|
|
15149
15152
|
}), {
|
|
@@ -15257,7 +15260,7 @@ const _T = (e) => {
|
|
|
15257
15260
|
}
|
|
15258
15261
|
}]
|
|
15259
15262
|
}), Vl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
15260
|
-
const o =
|
|
15263
|
+
const o = Ie({
|
|
15261
15264
|
props: t,
|
|
15262
15265
|
name: "MuiListItemSecondaryAction"
|
|
15263
15266
|
}), {
|
|
@@ -15422,7 +15425,7 @@ const BT = (e, t) => {
|
|
|
15422
15425
|
})({
|
|
15423
15426
|
position: "relative"
|
|
15424
15427
|
}), mf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
15425
|
-
const o =
|
|
15428
|
+
const o = Ie({
|
|
15426
15429
|
props: t,
|
|
15427
15430
|
name: "MuiListItem"
|
|
15428
15431
|
}), {
|
|
@@ -15676,7 +15679,7 @@ const Pi = ke("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
|
|
|
15676
15679
|
}
|
|
15677
15680
|
}]
|
|
15678
15681
|
}), gf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
15679
|
-
const o =
|
|
15682
|
+
const o = Ie({
|
|
15680
15683
|
props: t,
|
|
15681
15684
|
name: "MuiListItemText"
|
|
15682
15685
|
}), {
|
|
@@ -15855,7 +15858,7 @@ const qT = (e) => {
|
|
|
15855
15858
|
}
|
|
15856
15859
|
}]
|
|
15857
15860
|
}))), Qs = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
15858
|
-
const o =
|
|
15861
|
+
const o = Ie({
|
|
15859
15862
|
props: t,
|
|
15860
15863
|
name: "MuiListItemIcon"
|
|
15861
15864
|
}), {
|
|
@@ -16143,7 +16146,7 @@ const oC = (e) => {
|
|
|
16143
16146
|
slot: "Input",
|
|
16144
16147
|
overridesResolver: Pa
|
|
16145
16148
|
})({}), Wa = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
16146
|
-
const o =
|
|
16149
|
+
const o = Ie({
|
|
16147
16150
|
props: t,
|
|
16148
16151
|
name: "MuiInput"
|
|
16149
16152
|
}), {
|
|
@@ -16609,7 +16612,7 @@ const sC = (e) => {
|
|
|
16609
16612
|
}
|
|
16610
16613
|
}]
|
|
16611
16614
|
}))), Ha = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
16612
|
-
const o =
|
|
16615
|
+
const o = Ie({
|
|
16613
16616
|
props: t,
|
|
16614
16617
|
name: "MuiFilledInput"
|
|
16615
16618
|
}), {
|
|
@@ -17148,7 +17151,7 @@ const pC = (e) => {
|
|
|
17148
17151
|
}
|
|
17149
17152
|
}]
|
|
17150
17153
|
}))), Ua = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
17151
|
-
const o =
|
|
17154
|
+
const o = Ie({
|
|
17152
17155
|
props: t,
|
|
17153
17156
|
name: "MuiOutlinedInput"
|
|
17154
17157
|
}), {
|
|
@@ -17446,7 +17449,7 @@ const yC = (e) => {
|
|
|
17446
17449
|
}
|
|
17447
17450
|
}]
|
|
17448
17451
|
}), Ga = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
17449
|
-
const o =
|
|
17452
|
+
const o = Ie({
|
|
17450
17453
|
props: t,
|
|
17451
17454
|
name: "MuiFormControl"
|
|
17452
17455
|
}), {
|
|
@@ -17678,7 +17681,7 @@ const xC = (e) => {
|
|
|
17678
17681
|
}
|
|
17679
17682
|
}]
|
|
17680
17683
|
}))), qa = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
17681
|
-
const o =
|
|
17684
|
+
const o = Ie({
|
|
17682
17685
|
props: t,
|
|
17683
17686
|
name: "MuiFormHelperText"
|
|
17684
17687
|
}), {
|
|
@@ -18612,7 +18615,7 @@ const LC = (e) => {
|
|
|
18612
18615
|
}
|
|
18613
18616
|
}]
|
|
18614
18617
|
}), wf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
18615
|
-
const o =
|
|
18618
|
+
const o = Ie({
|
|
18616
18619
|
props: t,
|
|
18617
18620
|
name: "MuiBackdrop"
|
|
18618
18621
|
}), {
|
|
@@ -18897,7 +18900,7 @@ const VC = (e) => {
|
|
|
18897
18900
|
})({
|
|
18898
18901
|
zIndex: -1
|
|
18899
18902
|
}), Sf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
18900
|
-
const o =
|
|
18903
|
+
const o = Ie({
|
|
18901
18904
|
name: "MuiModal",
|
|
18902
18905
|
props: t
|
|
18903
18906
|
}), {
|
|
@@ -19243,7 +19246,7 @@ const GC = (e) => {
|
|
|
19243
19246
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
19244
19247
|
outline: 0
|
|
19245
19248
|
}), Ef = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
19246
|
-
const o =
|
|
19249
|
+
const o = Ie({
|
|
19247
19250
|
props: t,
|
|
19248
19251
|
name: "MuiPopover"
|
|
19249
19252
|
}), {
|
|
@@ -19694,7 +19697,7 @@ const YC = {
|
|
|
19694
19697
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
19695
19698
|
outline: 0
|
|
19696
19699
|
}), kf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
19697
|
-
const o =
|
|
19700
|
+
const o = Ie({
|
|
19698
19701
|
props: t,
|
|
19699
19702
|
name: "MuiMenu"
|
|
19700
19703
|
}), {
|
|
@@ -20652,7 +20655,7 @@ const uw = (e) => {
|
|
|
20652
20655
|
shouldForwardProp: (e) => zt(e) && e !== "variant",
|
|
20653
20656
|
slot: "Root"
|
|
20654
20657
|
}, dw = J(Wa, Hl)(""), pw = J(Ua, Hl)(""), fw = J(Ha, Hl)(""), Ul = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
20655
|
-
const o =
|
|
20658
|
+
const o = Ie({
|
|
20656
20659
|
name: "MuiSelect",
|
|
20657
20660
|
props: t
|
|
20658
20661
|
}), {
|
|
@@ -20916,7 +20919,7 @@ const mw = {
|
|
|
20916
20919
|
slot: "Root",
|
|
20917
20920
|
overridesResolver: (e, t) => t.root
|
|
20918
20921
|
})({}), Af = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
20919
|
-
const o =
|
|
20922
|
+
const o = Ie({
|
|
20920
20923
|
props: t,
|
|
20921
20924
|
name: "MuiTextField"
|
|
20922
20925
|
}), {
|
|
@@ -21943,7 +21946,7 @@ const $S = (e) => {
|
|
|
21943
21946
|
"& .MuiSvgIcon-root": {
|
|
21944
21947
|
fontSize: 16
|
|
21945
21948
|
}
|
|
21946
|
-
}, children: n }), _S = ({ onCopy: e, onFeedback: t, className: n, sx: o }) => u.jsxs(
|
|
21949
|
+
}, children: n }), _S = ({ onCopy: e, onFeedback: t, className: n, sx: o }) => u.jsxs($e, { direction: "row", spacing: 1, className: n, sx: { alignItems: "center", ...o }, "data-test-ink-ai-message-actions": !0, children: [u.jsx(Os, { ariaLabel: "Good response", onClick: () => t?.("up"), children: u.jsx(Xu, { sx: { transform: "rotate(180deg)" } }) }), u.jsx(Os, { ariaLabel: "Bad response", onClick: () => t?.("down"), children: u.jsx(Xu, {}) }), u.jsx(Os, { ariaLabel: "Copy message", onClick: e, children: u.jsx(LS, {}) })] }), DS = {
|
|
21947
21950
|
p: ({ children: e }) => u.jsx(Ne, { variant: "body2", sx: { color: "text.primary", m: 0 }, children: e }),
|
|
21948
21951
|
ul: ({ children: e }) => u.jsx(he, { component: "ul", sx: {
|
|
21949
21952
|
m: 0,
|
|
@@ -21979,7 +21982,7 @@ const $S = (e) => {
|
|
|
21979
21982
|
if (t || !e.trim())
|
|
21980
21983
|
return u.jsx(AS, { label: i, className: l, sx: c });
|
|
21981
21984
|
const h = o && !n;
|
|
21982
|
-
return u.jsxs(
|
|
21985
|
+
return u.jsxs($e, { direction: "column", spacing: 2, className: l, sx: { alignItems: "flex-start", width: "100%", ...c }, "data-test-ink-ai-assistant-message": !0, children: [u.jsx($S, { options: {
|
|
21983
21986
|
overrides: DS,
|
|
21984
21987
|
disableParsingRawHTML: !0,
|
|
21985
21988
|
forceWrapper: !0,
|
|
@@ -22274,7 +22277,7 @@ function Mi(e, t) {
|
|
|
22274
22277
|
};
|
|
22275
22278
|
}
|
|
22276
22279
|
const Hf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
22277
|
-
const o =
|
|
22280
|
+
const o = Ie({
|
|
22278
22281
|
props: t,
|
|
22279
22282
|
name: "MuiTooltip"
|
|
22280
22283
|
}), {
|
|
@@ -22799,7 +22802,7 @@ function rI(e) {
|
|
|
22799
22802
|
...f
|
|
22800
22803
|
},
|
|
22801
22804
|
variant: "outlined"
|
|
22802
|
-
}, anchor: "left", open: ks(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", ...b, children: u.jsxs(
|
|
22805
|
+
}, anchor: "left", open: ks(e) ? e.isOpen : !0, variant: t === "panel" ? "permanent" : "persistent", ...b, children: u.jsxs($e, { sx: { height: "100%", justifyContent: "space-between" }, children: [u.jsxs($e, { direction: "column", spacing: 3, sx: { p: 2 }, children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", children: [v && u.jsx(KS, { Icon: v }), u.jsx(Ne, { sx: { ml: v && 1 }, "data-cy": "drawer-header", children: i })] }), ks(e) && u.jsx(sa, { title: e.closeTooltipText ?? "Close", placement: "bottom-end", disableInteractive: !0, slotProps: {
|
|
22803
22806
|
popper: {
|
|
22804
22807
|
modifiers: [
|
|
22805
22808
|
{
|
|
@@ -22822,7 +22825,7 @@ function rI(e) {
|
|
|
22822
22825
|
borderColor: "neutral200"
|
|
22823
22826
|
}, children: o })] }) }), u.jsx(YS, { component: "main", open: ks(e) ? e.isOpen : !0, drawerWidth: g, ...h, children: p })] });
|
|
22824
22827
|
}
|
|
22825
|
-
const XS = ({ iconComponent: e, isDragging: t = !1, "data-cy": n }) => e ? u.jsx(
|
|
22828
|
+
const XS = ({ iconComponent: e, isDragging: t = !1, "data-cy": n }) => e ? u.jsx($e, { sx: {
|
|
22826
22829
|
justifyContent: "center",
|
|
22827
22830
|
alignItems: "center",
|
|
22828
22831
|
width: t ? 24 : 32,
|
|
@@ -22832,7 +22835,7 @@ const XS = ({ iconComponent: e, isDragging: t = !1, "data-cy": n }) => e ? u.jsx
|
|
|
22832
22835
|
boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);"
|
|
22833
22836
|
}, "data-cy": n, children: u.jsx(e, { size: t ? "small" : "normal" }) }) : null, oI = Mr(({ label: e, icon: t, description: n, disabled: o = !1, isDynamic: i = !1, isDragging: a = !1, fullWidth: s = !1, "data-cy": l, sx: c, ...d }, p) => {
|
|
22834
22837
|
const h = l || "tile", f = `${h}-label`, b = `${h}-description`, v = `${h}-icon`;
|
|
22835
|
-
return u.jsxs(
|
|
22838
|
+
return u.jsxs($e, { ref: p, direction: "row", sx: {
|
|
22836
22839
|
alignItems: "center",
|
|
22837
22840
|
gap: a ? 2.5 : 1.5,
|
|
22838
22841
|
py: 1,
|
|
@@ -22851,7 +22854,7 @@ const XS = ({ iconComponent: e, isDragging: t = !1, "data-cy": n }) => e ? u.jsx
|
|
|
22851
22854
|
backgroundColor: o ? (g) => g.palette.neutral100 : (g) => g.palette.neutral200
|
|
22852
22855
|
},
|
|
22853
22856
|
...c
|
|
22854
|
-
}, "data-cy": l, ...d, children: [t && u.jsx(XS, { iconComponent: t, isDragging: a, "data-cy": v }), u.jsxs(he, { sx: { flex: 1 }, children: [u.jsxs(
|
|
22857
|
+
}, "data-cy": l, ...d, children: [t && u.jsx(XS, { iconComponent: t, isDragging: a, "data-cy": v }), u.jsxs(he, { sx: { flex: 1 }, children: [u.jsxs($e, { sx: { alignItems: "center", gap: 0.5 }, direction: "row", children: [u.jsx(Ne, { sx: {
|
|
22855
22858
|
display: "block",
|
|
22856
22859
|
color: o ? "text.disabled" : "text.primary",
|
|
22857
22860
|
fontWeight: a ? 400 : 600
|
|
@@ -23004,7 +23007,7 @@ const Qu = ke("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
23004
23007
|
fontSize: "inherit"
|
|
23005
23008
|
})
|
|
23006
23009
|
}, Kl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
23007
|
-
const o =
|
|
23010
|
+
const o = Ie({
|
|
23008
23011
|
props: t,
|
|
23009
23012
|
name: "MuiAlert"
|
|
23010
23013
|
}), {
|
|
@@ -23252,7 +23255,7 @@ const lO = (e) => {
|
|
|
23252
23255
|
fontWeight: e.typography.fontWeightMedium,
|
|
23253
23256
|
marginTop: -2
|
|
23254
23257
|
}))), Yl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
23255
|
-
const o =
|
|
23258
|
+
const o = Ie({
|
|
23256
23259
|
props: t,
|
|
23257
23260
|
name: "MuiAlertTitle"
|
|
23258
23261
|
}), {
|
|
@@ -23747,7 +23750,7 @@ const pO = (e) => {
|
|
|
23747
23750
|
width: "1em",
|
|
23748
23751
|
height: "1em"
|
|
23749
23752
|
}), Yf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
23750
|
-
const o = O.useContext(Gf), i = O.useContext(qf), a = Go(o, t), s =
|
|
23753
|
+
const o = O.useContext(Gf), i = O.useContext(qf), a = Go(o, t), s = Ie({
|
|
23751
23754
|
props: a,
|
|
23752
23755
|
name: "MuiButton"
|
|
23753
23756
|
}), {
|
|
@@ -24350,7 +24353,7 @@ const Rs = ke("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
|
|
|
24350
24353
|
}
|
|
24351
24354
|
}]
|
|
24352
24355
|
}))), kO = /* @__PURE__ */ u.jsx(CO, {}), RO = /* @__PURE__ */ u.jsx(TO, {}), PO = /* @__PURE__ */ u.jsx(wO, {}), Jf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
24353
|
-
const o =
|
|
24356
|
+
const o = Ie({
|
|
24354
24357
|
props: t,
|
|
24355
24358
|
name: "MuiCheckbox"
|
|
24356
24359
|
}), {
|
|
@@ -24608,7 +24611,7 @@ const No = ke("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
|
|
|
24608
24611
|
color: (e.vars || e).palette.error.main
|
|
24609
24612
|
}
|
|
24610
24613
|
}))), Ja = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
24611
|
-
const o =
|
|
24614
|
+
const o = Ie({
|
|
24612
24615
|
props: t,
|
|
24613
24616
|
name: "MuiFormControlLabel"
|
|
24614
24617
|
}), {
|
|
@@ -24800,7 +24803,7 @@ const NO = (e) => {
|
|
|
24800
24803
|
}
|
|
24801
24804
|
}]
|
|
24802
24805
|
}), Xl = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
24803
|
-
const o =
|
|
24806
|
+
const o = Ie({
|
|
24804
24807
|
props: t,
|
|
24805
24808
|
name: "MuiFormGroup"
|
|
24806
24809
|
}), {
|
|
@@ -25030,7 +25033,7 @@ function qO(e, t) {
|
|
|
25030
25033
|
const KO = /* @__PURE__ */ u.jsx(Jl, {
|
|
25031
25034
|
checked: !0
|
|
25032
25035
|
}), YO = /* @__PURE__ */ u.jsx(Jl, {}), Qf = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
25033
|
-
const o =
|
|
25036
|
+
const o = Ie({
|
|
25034
25037
|
props: t,
|
|
25035
25038
|
name: "MuiRadio"
|
|
25036
25039
|
}), {
|
|
@@ -25498,7 +25501,7 @@ const Bt = ke("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "color
|
|
|
25498
25501
|
height: 20,
|
|
25499
25502
|
borderRadius: "50%"
|
|
25500
25503
|
}))), eh = /* @__PURE__ */ O.forwardRef(function(t, n) {
|
|
25501
|
-
const o =
|
|
25504
|
+
const o = Ie({
|
|
25502
25505
|
props: t,
|
|
25503
25506
|
name: "MuiSwitch"
|
|
25504
25507
|
}), {
|
|
@@ -25706,7 +25709,7 @@ const th = We(/* @__PURE__ */ u.jsx("path", {
|
|
|
25706
25709
|
function uI({ message: e, sx: t, messageSx: n }) {
|
|
25707
25710
|
return u.jsx(zd, { severity: "info", "data-cy": "internal-user-only-alert", sx: { alignItems: "center", ...t }, iconMapping: {
|
|
25708
25711
|
info: u.jsx(th, {})
|
|
25709
|
-
}, children: u.jsxs(
|
|
25712
|
+
}, children: u.jsxs($e, { sx: { gap: 1, alignItems: "center" }, direction: "row", children: [u.jsx(df, { sx: { color: "text.secondary" } }), u.jsx($e, { children: "-" }), u.jsx(Ne, { variant: "body2", sx: n, "data-cy": "internal-user-only-alert-message", children: e || "This page has limited access to internal users only." })] }) });
|
|
25710
25713
|
}
|
|
25711
25714
|
function aE() {
|
|
25712
25715
|
this.__data__ = [], this.size = 0;
|
|
@@ -26548,13 +26551,13 @@ function fI({ checkboxProps: e, title: t, avatar: n, size: o = "medium", subhead
|
|
|
26548
26551
|
color: "text.secondary"
|
|
26549
26552
|
}
|
|
26550
26553
|
} }), g = h || a || l && !f;
|
|
26551
|
-
return u.jsxs(
|
|
26554
|
+
return u.jsxs($e, { children: [g && u.jsxs($e, { direction: "row", sx: {
|
|
26552
26555
|
alignItems: "center",
|
|
26553
26556
|
justifyContent: "space-between",
|
|
26554
26557
|
mt: 1,
|
|
26555
26558
|
mb: 1,
|
|
26556
26559
|
mr: 1
|
|
26557
|
-
}, children: [u.jsx(
|
|
26560
|
+
}, children: [u.jsx($e, { sx: { flex: 1, alignItems: "center" }, direction: "row", children: h && u.jsx(ml, { sx: { ml: 0.5 }, control: u.jsx(Vd, { size: "small", "data-cy": "inkcardheader-selection-checkbox", ...e, disabled: c ?? e?.disabled }), label: u.jsx(he, { component: "span", sx: bg, children: t }) }) }), u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", spacing: 1, children: [a && u.jsx(he, { sx: { pr: l ? 0 : 1 }, children: a }), l && !f && b] })] }), v()] });
|
|
26558
26561
|
}
|
|
26559
26562
|
const tj = We(/* @__PURE__ */ u.jsx("path", {
|
|
26560
26563
|
d: "M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"
|
|
@@ -26692,7 +26695,7 @@ function sj({ columnData: e, handleColumnFilterChange: t, customGridVisibility:
|
|
|
26692
26695
|
paddingBottom: 0
|
|
26693
26696
|
}, children: u.jsx(ml, { control: u.jsx(Vd, { checked: n[y], onChange: (w) => v(w.target.checked, y) }), label: T, sx: {
|
|
26694
26697
|
display: i?.includes(y) ? "none" : void 0
|
|
26695
|
-
} }) }, y)) }), u.jsx(fm, { sx: { position: "sticky", bottom: 0, zIndex: 1, padding: 0 }, variant: "outlined", children: u.jsxs(
|
|
26698
|
+
} }) }, y)) }), u.jsx(fm, { sx: { position: "sticky", bottom: 0, zIndex: 1, padding: 0 }, variant: "outlined", children: u.jsxs($e, { sx: {
|
|
26696
26699
|
flexDirection: "row",
|
|
26697
26700
|
justifyContent: "space-between",
|
|
26698
26701
|
mx: 1.5,
|
|
@@ -26701,14 +26704,14 @@ function sj({ columnData: e, handleColumnFilterChange: t, customGridVisibility:
|
|
|
26701
26704
|
}
|
|
26702
26705
|
function yI({ groupingProps: e, filterDrawerBtnProps: t, showFilterDrawerBtn: n = !1, showQuickFilter: o = !0, showExportButton: i = !1, showDensitySelector: a = !1, onExportClick: s, loadingExport: l, columnPickerProps: c, children: d, py: p = 2 }) {
|
|
26703
26706
|
const { value: h, onChange: f, options: b } = e ?? {};
|
|
26704
|
-
return u.jsx(_m, { sx: { py: p }, children: u.jsxs(
|
|
26707
|
+
return u.jsx(_m, { sx: { py: p }, children: u.jsxs($e, { direction: "column", sx: { width: "100%" }, children: [u.jsxs($e, { sx: {
|
|
26705
26708
|
justifyContent: o ? "space-between" : "end",
|
|
26706
26709
|
alignItems: "center",
|
|
26707
26710
|
width: "100%"
|
|
26708
|
-
}, direction: "row", children: [u.jsxs(
|
|
26711
|
+
}, direction: "row", children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", spacing: 2, children: [o && u.jsx(Dm, { sx: {
|
|
26709
26712
|
".MuiInputBase-input": { p: 0 },
|
|
26710
26713
|
".MuiInput-root:after": { borderBottom: "none" }
|
|
26711
|
-
}, "data-cy": "grid-tool-bar-quick-filter" }), n && t && u.jsx(hm, { badgeContent: t.filterBtnBadgeContent, color: "primary", "data-cy": "grid-tool-bar-filter-badge", children: u.jsx(oj, { onClick: t.onShowFilterDrawerClick }) })] }), u.jsxs(
|
|
26714
|
+
}, "data-cy": "grid-tool-bar-quick-filter" }), n && t && u.jsx(hm, { badgeContent: t.filterBtnBadgeContent, color: "primary", "data-cy": "grid-tool-bar-filter-badge", children: u.jsx(oj, { onClick: t.onShowFilterDrawerClick }) })] }), u.jsxs($e, { direction: "row", spacing: 1, children: [a && u.jsx(Bm, { slotProps: { button: { size: "small" } } }), c && u.jsx(sj, { columnData: c.columnData, handleColumnFilterChange: c.handleColumnFilterChange, customGridVisibility: c.customGridVisibility, lockedFields: c.lockedFields, hiddenInColumnPicker: c.hiddenInColumnPicker }), i && u.jsx(Fm, { slotProps: { button: { size: "small" } } }), h !== void 0 && f && b && u.jsx(ij, { value: h, onChange: f, options: b }), s && u.jsx(rj, { onClick: s, loadingExport: l })] })] }), d] }) });
|
|
26712
26715
|
}
|
|
26713
26716
|
function bI({ testSelector: e = "", disableColumnReorder: t = !0, sx: n, rows: o, ...i }) {
|
|
26714
26717
|
const a = o?.length ? null : {
|
|
@@ -26764,7 +26767,7 @@ function TI(e, t, n = {}) {
|
|
|
26764
26767
|
...s
|
|
26765
26768
|
};
|
|
26766
26769
|
}
|
|
26767
|
-
const uj = ({ action: e, onClose: t }) => u.jsxs(
|
|
26770
|
+
const uj = ({ action: e, onClose: t }) => u.jsxs($e, { direction: "row", spacing: 1, children: [e && u.jsx(It, { "data-test-ink-highlight-alert-action": !0, onClick: e.callback, variant: "contained", color: "inherit", size: "medium", sx: { color: "text.primary" }, children: e.label }), t && u.jsx(Pn, { onClick: t, sx: { color: "neutral00" }, "data-test-ink-highlight-alert-close": !0, children: u.jsx(Xf, {}) })] });
|
|
26768
26771
|
function CI({ testSelector: e = "ink-highlight-alert", onClose: t, action: n, alertProps: o, message: i }) {
|
|
26769
26772
|
return u.jsx(zd, { "data-test-ink-highlight-alert": e, variant: "highlight", icon: !1, onClose: t && !n ? t : void 0, action: (n || t) && u.jsx(uj, { onClose: t, action: n ?? void 0 }), ...o, sx: {
|
|
26770
26773
|
px: 3,
|
|
@@ -27126,13 +27129,13 @@ const dj = We(/* @__PURE__ */ u.jsx("path", {
|
|
|
27126
27129
|
}, ri = "—";
|
|
27127
27130
|
function pj({ trend: e }) {
|
|
27128
27131
|
const t = e.direction === "up", n = t ? yf : dj, o = t ? V.greenA700 : V.error.main;
|
|
27129
|
-
return u.jsxs(
|
|
27132
|
+
return u.jsxs($e, { direction: "row", spacing: 0.25, sx: { alignItems: "center", color: o }, children: [u.jsx(n, { sx: { fontSize: "1rem" } }), u.jsx(Ne, { variant: "body2", sx: { fontWeight: 500, color: o }, children: e.value })] });
|
|
27130
27133
|
}
|
|
27131
27134
|
function fj({ primaryMetric: e, graph: t, isEmpty: n }) {
|
|
27132
|
-
return u.jsxs(
|
|
27135
|
+
return u.jsxs($e, { sx: { justifyContent: "space-between", alignItems: "flex-start" }, direction: "row", children: [u.jsxs(he, { children: [u.jsxs($e, { sx: { alignItems: "center" }, direction: "row", spacing: 1, children: [u.jsx(Ne, { sx: { fontWeight: 700, lineHeight: 1.2 }, variant: "h4", children: n ? ri : e.value }), !n && e.trend && u.jsx(pj, { trend: e.trend })] }), u.jsx(Ne, { sx: { color: "text.secondary" }, variant: "body2", children: e.label })] }), t && !n && u.jsx(he, { sx: { flexShrink: 0 }, children: t })] });
|
|
27133
27136
|
}
|
|
27134
27137
|
function hj({ metrics: e, isEmpty: t }) {
|
|
27135
|
-
return u.jsx(
|
|
27138
|
+
return u.jsx($e, { direction: "row", divider: u.jsx(gl, { orientation: "vertical", flexItem: !0 }), spacing: 2, children: e.slice(0, 3).map((n, o) => u.jsxs(he, { children: [u.jsx(Ne, { sx: { fontWeight: 700 }, variant: "body1", children: t ? ri : n.value }), u.jsx(Ne, { sx: { color: "text.secondary" }, variant: "body2", children: n.label })] }, o)) });
|
|
27136
27139
|
}
|
|
27137
27140
|
function mj({ directIndirect: e, isEmpty: t }) {
|
|
27138
27141
|
const { directPercent: n, directLabel: o = "Direct", indirectLabel: i = "Indirect" } = e, a = 100 - n;
|
|
@@ -27145,7 +27148,7 @@ function mj({ directIndirect: e, isEmpty: t }) {
|
|
|
27145
27148
|
width: t ? "0%" : `${n}%`,
|
|
27146
27149
|
bgcolor: V.primary.main,
|
|
27147
27150
|
transition: "width 0.3s"
|
|
27148
|
-
} }), u.jsx(he, { sx: { flex: 1, bgcolor: V.blue200 } })] }), u.jsxs(
|
|
27151
|
+
} }), u.jsx(he, { sx: { flex: 1, bgcolor: V.blue200 } })] }), u.jsxs($e, { sx: { justifyContent: "space-between", mt: 0.5 }, direction: "row", children: [u.jsxs(Ne, { variant: "body2", children: [u.jsx("strong", { children: t ? ri : `${n}%` }), " ", u.jsx(Ne, { sx: { color: "text.secondary" }, component: "span", variant: "body2", children: o })] }), u.jsxs(Ne, { variant: "body2", children: [u.jsx("strong", { children: t ? ri : `${a}%` }), " ", u.jsx(Ne, { sx: { color: "text.secondary" }, component: "span", variant: "body2", children: i })] })] })] });
|
|
27149
27152
|
}
|
|
27150
27153
|
function SI(e) {
|
|
27151
27154
|
const { isEmpty: t, sx: n } = e;
|
|
@@ -27158,7 +27161,7 @@ function SI(e) {
|
|
|
27158
27161
|
}, "data-cy": "ink-metric-card-content", children: f }) : u.jsx(he, { sx: { p: 2 }, "data-cy": "ink-metric-card-content", children: f }) });
|
|
27159
27162
|
}
|
|
27160
27163
|
const { title: o, primaryMetric: i, secondaryMetrics: a, graph: s } = e, l = e.variant === "robust" ? e.directIndirect : void 0;
|
|
27161
|
-
return u.jsx(Vi, { variant: "outlined", sx: n, "data-cy": "ink-metric-card", "data-cy-variant": e.variant, children: u.jsx(he, { sx: { p: 2 }, children: u.jsxs(
|
|
27164
|
+
return u.jsx(Vi, { variant: "outlined", sx: n, "data-cy": "ink-metric-card", "data-cy-variant": e.variant, children: u.jsx(he, { sx: { p: 2 }, children: u.jsxs($e, { spacing: 2, children: [u.jsx(Ne, { variant: "overline", sx: { color: "text.secondary", lineHeight: 1 }, "data-cy": "ink-metric-card-title", children: o }), u.jsx(fj, { primaryMetric: i, graph: s, isEmpty: t }), a && a.length > 0 && u.jsx(hj, { metrics: a, isEmpty: t }), l && u.jsx(mj, { directIndirect: l, isEmpty: t })] }) }) });
|
|
27162
27165
|
}
|
|
27163
27166
|
const ct = j0({
|
|
27164
27167
|
createStyledComponent: J("div", {
|
|
@@ -27172,7 +27175,7 @@ const ct = j0({
|
|
|
27172
27175
|
}
|
|
27173
27176
|
}),
|
|
27174
27177
|
componentName: "MuiGrid2",
|
|
27175
|
-
useThemeProps: (e) =>
|
|
27178
|
+
useThemeProps: (e) => Ie({
|
|
27176
27179
|
props: e,
|
|
27177
27180
|
name: "MuiGrid2"
|
|
27178
27181
|
}),
|