@movable/ui 1.14.0 → 1.15.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/index.mjs +84 -83
- package/lib/index.mjs.map +1 -1
- package/lib/theme/components/DataGrid.d.ts +45 -0
- package/lib/theme/components/form.d.ts +20 -22
- package/package.json +3 -1
package/lib/index.mjs
CHANGED
|
@@ -658,7 +658,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
658
658
|
}
|
|
659
659
|
process.env.NODE_ENV === "production" ? pn.exports = As() : pn.exports = js();
|
|
660
660
|
var v = pn.exports;
|
|
661
|
-
function
|
|
661
|
+
function jp({ stringToDisplay: e }) {
|
|
662
662
|
return v.jsxs(Ue, { children: ["stringToDisplay prop is:", " ", v.jsx("span", { "data-test-string-to-display": !0, children: e })] });
|
|
663
663
|
}
|
|
664
664
|
function Is({ maxWidth: e = 200, chipProps: t, size: r = "medium" }) {
|
|
@@ -691,7 +691,7 @@ const Ns = {
|
|
|
691
691
|
px: "8px",
|
|
692
692
|
py: "4px"
|
|
693
693
|
}, Ds = 3;
|
|
694
|
-
function
|
|
694
|
+
function Ip({ chipList: e, numTagsToDisplay: t, size: r = "medium", maxChipWidth: n = 200 }) {
|
|
695
695
|
const [o, i] = $t(null), a = kn(null), [s, c] = $t(void 0);
|
|
696
696
|
di(() => {
|
|
697
697
|
const g = new ResizeObserver((T) => {
|
|
@@ -5353,7 +5353,7 @@ const _a = (e) => {
|
|
|
5353
5353
|
children: pi.map(r.children, (n) => Oa(n, t))
|
|
5354
5354
|
}) : e;
|
|
5355
5355
|
};
|
|
5356
|
-
function
|
|
5356
|
+
function Np({ Title: e, Content: t, Actions: r, onClose: n, hideCloseButton: o, ActionsProp: i, ...a }) {
|
|
5357
5357
|
var c, u, f, m, p, b, x;
|
|
5358
5358
|
let s = r;
|
|
5359
5359
|
if (r) {
|
|
@@ -5387,7 +5387,7 @@ const wa = 280, Gf = ys(Ze, { shouldForwardProp: (e) => e !== "open" })(({ theme
|
|
|
5387
5387
|
marginLeft: 0
|
|
5388
5388
|
}
|
|
5389
5389
|
}));
|
|
5390
|
-
function
|
|
5390
|
+
function Dp({
|
|
5391
5391
|
isOpen: e,
|
|
5392
5392
|
handleDrawerClose: t,
|
|
5393
5393
|
children: r,
|
|
@@ -5433,7 +5433,7 @@ function Np({
|
|
|
5433
5433
|
borderColor: "neutral200"
|
|
5434
5434
|
}, children: a })] }) }), v.jsx(Gf, { component: "main", open: e, ...f, children: r })] });
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function Fp({ metadata: e }) {
|
|
5437
5437
|
return v.jsx(Be, { direction: "row", spacing: 2, children: e.map(({ icon: t, label: r, value: n }) => v.jsxs(Be, { direction: "row", alignItems: "center", spacing: 0.5, children: [typeof t == "string" ? v.jsx(Ut, { sx: { color: "neutral600", fontSize: "1rem" }, children: t }) : t, v.jsx(Ue, { variant: "body2", color: "text.secondary", children: r }), typeof n == "string" ? v.jsx(Ue, { variant: "body2", children: n }) : n] }, r)) });
|
|
5438
5438
|
}
|
|
5439
5439
|
const qf = ({ children: e }) => {
|
|
@@ -5456,7 +5456,7 @@ const qf = ({ children: e }) => {
|
|
|
5456
5456
|
},
|
|
5457
5457
|
...t
|
|
5458
5458
|
}, children: e({ position: n }) }) });
|
|
5459
|
-
function
|
|
5459
|
+
function Bp({ Breadcrumbs: e, Subtitle: t, Metadata: r, Chips: n, ButtonGroup: o, Tabs: i, sx: a }) {
|
|
5460
5460
|
return v.jsx(Ra, { children: ({ position: s }) => v.jsxs(Be, { direction: "column", spacing: 2, position: s, sx: {
|
|
5461
5461
|
borderBottom: 1,
|
|
5462
5462
|
borderColor: "divider",
|
|
@@ -5477,11 +5477,11 @@ function Hf({ label: e }) {
|
|
|
5477
5477
|
function Kf({ breadcrumb: e, i: t, onClick: r }) {
|
|
5478
5478
|
return v.jsx(Ss, { href: e.path, ...e.LinkProps, underline: "hover", "data-cy": `breadcrumb-${t}`, variant: "h5", color: "text.disabled", onClick: r, children: e.label });
|
|
5479
5479
|
}
|
|
5480
|
-
function
|
|
5480
|
+
function zp({ breadcrumbs: e }) {
|
|
5481
5481
|
return v.jsx(Es, { sx: Yf, children: e == null ? void 0 : e.map((t, r) => r === e.length - 1 ? v.jsx(Hf, { label: t.label }, `breadcrumb-${r}`) : v.jsx(Kf, { breadcrumb: t, i: r, onClick: t.onClick }, `breadcrumb-${r}`)) });
|
|
5482
5482
|
}
|
|
5483
5483
|
const Xf = ({ sx: e }) => v.jsx(Ue, { variant: "overline", sx: { color: "neutral500", fontWeight: 600, lineHeight: "8px", ...e }, children: "Internal Use Only" });
|
|
5484
|
-
function
|
|
5484
|
+
function Lp({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
|
|
5485
5485
|
const [n, o] = $t(null), i = !!n, a = (p) => {
|
|
5486
5486
|
o(p.currentTarget);
|
|
5487
5487
|
}, s = () => {
|
|
@@ -5501,10 +5501,10 @@ function zp({ primaryAction: e, secondaryAction: t, dropdownAction: r }) {
|
|
|
5501
5501
|
b(), s();
|
|
5502
5502
|
}, ...x, children: p }, g))] })] })] }), t && v.jsx(lt, { variant: "contained", color: "inherit", ...t, children: t.label }), e && v.jsx(lt, { variant: "contained", ...e, sx: { whiteSpace: "nowrap" }, children: e.label })] });
|
|
5503
5503
|
}
|
|
5504
|
-
function
|
|
5504
|
+
function Wp({ subtitle: e }) {
|
|
5505
5505
|
return v.jsx(Ue, { variant: "body2", color: "text.secondary", children: e });
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function Vp({ label: e, Stepper: t, ButtonGroup: r }) {
|
|
5508
5508
|
return v.jsx(Ra, { sx: { px: 2, py: 2.25 }, children: ({ position: n }) => v.jsxs(Be, { position: n, direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", sx: {
|
|
5509
5509
|
borderBottom: "1px solid divider"
|
|
5510
5510
|
}, children: [v.jsx(Ue, { "data-test-worflow-header-label": !0, variant: "subtitle1", component: "h1", sx: { fontWeight: "600", flexGrow: "1" }, children: e }), t && v.jsx(Ze, { sx: { flexGrow: "2" }, "data-test-worflow-header-stepper": !0, children: t }), r && v.jsx(Ze, { sx: { flexGrow: "1", justifyContent: "end", display: "flex" }, "data-test-worflow-header-button-group": !0, children: r })] }) });
|
|
@@ -6177,7 +6177,7 @@ process.env.NODE_ENV !== "production" && (_n.propTypes = {
|
|
|
6177
6177
|
*/
|
|
6178
6178
|
variantMapping: l.object
|
|
6179
6179
|
});
|
|
6180
|
-
function
|
|
6180
|
+
function Up({ Header: e, Description: t, Icon: r, CTA: n, children: o, ...i }) {
|
|
6181
6181
|
return v.jsxs(Ma, { "data-test": "ink-paper", ...i, sx: {
|
|
6182
6182
|
...i.sx,
|
|
6183
6183
|
borderRadius: "6px",
|
|
@@ -6192,7 +6192,7 @@ function Vp({ Header: e, Description: t, Icon: r, CTA: n, children: o, ...i }) {
|
|
|
6192
6192
|
textOverflow: "ellipsis"
|
|
6193
6193
|
}, children: [typeof e != "string" ? v.jsx(v.Fragment, { children: e }) : v.jsx(_n, { "data-test": "ink-paper-header", variant: "subtitle1", color: "text.primary", component: "strong", fontWeight: 600, children: e }), t && v.jsx(_n, { "data-test": "ink-paper-description", variant: "caption", color: "text.secondary", noWrap: !0, children: t })] }), n] }), o] });
|
|
6194
6194
|
}
|
|
6195
|
-
const
|
|
6195
|
+
const Gp = ({ name: e, options: t, value: r, ref: n, direction: o = "row", cardSx: i, fullWidth: a = !0, disabled: s = !1, onChange: c, onBlur: u }) => {
|
|
6196
6196
|
const f = (p, b, x) => s ? p ? b : "inherit" : x, m = (p, b, x, g) => s ? p ? b : g : p ? b : x;
|
|
6197
6197
|
return v.jsx(Ts, { name: e, onChange: c, onBlur: u, value: r, ref: n, "aria-label": e, "aria-readonly": s, "aria-disabled": s, sx: { width: a ? "100%" : "fit-content" }, children: v.jsx(Be, { direction: o, spacing: 2, children: t.map(({ value: p, icon: b, title: x, description: g, subDescription: y }) => v.jsx(yi, { value: p, disabled: s, control: v.jsx(Cs, { sx: { display: "none" } }), sx: {
|
|
6198
6198
|
width: a ? "100%" : "auto",
|
|
@@ -6223,7 +6223,7 @@ const Up = ({ name: e, options: t, value: r, ref: n, direction: o = "row", cardS
|
|
|
6223
6223
|
".MuiSvgIcon-root": { fontSize: "2rem" }
|
|
6224
6224
|
}, children: b }), v.jsx(Ue, { variant: "subtitle1", textAlign: "center", lineHeight: "20px", mt: 0.5, color: s ? r === p ? "text.secondary" : "neutral500" : "text.primary", children: x }), g && v.jsx(Ue, { variant: "body2", textAlign: "center", mt: 1, color: `${s ? "neutral500" : "text.secondary"}`, children: g }), y && v.jsx(Ue, { variant: "body2", color: `${s ? "neutral500" : "text.secondary"}`, textAlign: "center", mt: 1, children: y })] }) }) }, p)) }) });
|
|
6225
6225
|
};
|
|
6226
|
-
function
|
|
6226
|
+
function qp({ id: e, label: t, labelPlacement: r = "end", sx: n, ...o }) {
|
|
6227
6227
|
return t ? v.jsx(yi, { "data-test-switch": e, control: v.jsx(uo, { ...o, id: e }), label: t, labelPlacement: r, sx: n }) : v.jsx(uo, { "data-test-switch": e, ...o, id: e, sx: n });
|
|
6228
6228
|
}
|
|
6229
6229
|
function oi({ value: e, label: t, size: r = "medium", ariaLabel: n, ...o }) {
|
|
@@ -6266,7 +6266,7 @@ function oi({ value: e, label: t, size: r = "medium", ariaLabel: n, ...o }) {
|
|
|
6266
6266
|
}
|
|
6267
6267
|
}, children: t || e });
|
|
6268
6268
|
}
|
|
6269
|
-
function
|
|
6269
|
+
function Yp({ id: e, toggleButtons: t, ariaLabel: r, value: n = "", size: o = "medium", single: i = !1, sx: a, onChange: s, ...c }) {
|
|
6270
6270
|
const u = t.find((f) => f.value === n) ?? t[0];
|
|
6271
6271
|
return i ? v.jsx(oi, { value: u.value, size: o, ariaLabel: u.label, children: u.label }) : v.jsx(bi, { "data-test-ink-toggle-group": e, "aria-label": r, value: n, exclusive: !0, onChange: s, sx: {
|
|
6272
6272
|
display: "flex",
|
|
@@ -6350,7 +6350,7 @@ function ii({ value: e, size: t = "medium", ariaLabel: r, icon: n, ...o }) {
|
|
|
6350
6350
|
}
|
|
6351
6351
|
}, children: n });
|
|
6352
6352
|
}
|
|
6353
|
-
function
|
|
6353
|
+
function Hp({ id: e, toggleButtons: t, ariaLabel: r, size: n = "medium", single: o = !1, value: i = "", onChange: a, sx: s, ...c }) {
|
|
6354
6354
|
const u = t.find((f) => f.value === i) ?? t[0];
|
|
6355
6355
|
return o ? v.jsx(ii, { size: n, ariaLabel: u.value, ...u }) : v.jsx(bi, { "data-test-ink-toggle-group": e, "aria-label": r, value: i, exclusive: !0, onChange: a, sx: {
|
|
6356
6356
|
display: "inline-flex",
|
|
@@ -6393,7 +6393,7 @@ const ai = {
|
|
|
6393
6393
|
paper: si,
|
|
6394
6394
|
data: si
|
|
6395
6395
|
};
|
|
6396
|
-
function
|
|
6396
|
+
function Kp({ title: e, description: t, action: r, variant: n, icon: o, sx: i }) {
|
|
6397
6397
|
const a = n === "search" ? "neutral00" : "neutral50", s = Ad[n], { fontSize: c, fontSizeDescription: u, titleVariant: f, descriptionVariant: m } = s;
|
|
6398
6398
|
return v.jsxs(Be, { alignItems: "center", justifyContent: "center", my: 6, textAlign: "center", "data-cy": `empty-state-${n}-container`, sx: { backgroundColor: a, p: 5, ...i }, children: [o && v.jsx(Pd, { icon: o, variant: n }), e && v.jsx(Ue, { variant: f, sx: { fontSize: c }, "data-cy": "empty-state-title", children: v.jsx("strong", { children: e }) }), v.jsx(Ue, { variant: m, color: "text.secondary", sx: { fontSize: u }, "data-cy": "empty-state-description", children: t }), r && v.jsx(Ze, { mt: 3, children: v.jsx(lt, { onClick: r.onClick, "data-cy": "empty-state-action-button", children: r.title }) })] });
|
|
6399
6399
|
}
|
|
@@ -6438,7 +6438,7 @@ const pr = 400, jd = 50, Id = 250, Nd = () => {
|
|
|
6438
6438
|
}
|
|
6439
6439
|
};
|
|
6440
6440
|
};
|
|
6441
|
-
function
|
|
6441
|
+
function Xp({ id: e, label: t, menuOptions: r, name: n, control: o, inputProps: i, rules: a, helperText: s, sx: c, variant: u = "filled", required: f = !1, placeholder: m, children: p, ...b }) {
|
|
6442
6442
|
if (r && p)
|
|
6443
6443
|
throw new Error("Both menuOptions and children cannot be provided. Please use one or the other.");
|
|
6444
6444
|
const x = kn(null), { menuMaxHeight: g, menuPlacement: y, handleMenuOpen: T, renderMenuItems: w } = Nd(), O = `${n}-label`;
|
|
@@ -7267,7 +7267,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
7267
7267
|
zeroMinWidth: e("item")
|
|
7268
7268
|
});
|
|
7269
7269
|
}
|
|
7270
|
-
function
|
|
7270
|
+
function Jp({ Header: e, children: t, ...r }) {
|
|
7271
7271
|
const { sx: n, ...o } = r || {};
|
|
7272
7272
|
return v.jsxs(bt, { container: !0, children: [e, v.jsx(bt, { item: !0, container: !0, xs: 12, sx: {
|
|
7273
7273
|
justifyContent: "center",
|
|
@@ -7340,7 +7340,7 @@ class Xd {
|
|
|
7340
7340
|
this.title.should("have.text", t);
|
|
7341
7341
|
}
|
|
7342
7342
|
}
|
|
7343
|
-
const
|
|
7343
|
+
const Zp = new Xd();
|
|
7344
7344
|
class Aa {
|
|
7345
7345
|
constructor(t) {
|
|
7346
7346
|
sr(this, "baseAttribute", "data-test-select");
|
|
@@ -8395,10 +8395,8 @@ const Ep = {
|
|
|
8395
8395
|
},
|
|
8396
8396
|
MuiFormLabel: {
|
|
8397
8397
|
styleOverrides: {
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
asterisk: dn
|
|
8401
|
-
}
|
|
8398
|
+
root: fn,
|
|
8399
|
+
asterisk: dn
|
|
8402
8400
|
}
|
|
8403
8401
|
},
|
|
8404
8402
|
MuiInputLabel: {
|
|
@@ -8813,7 +8811,48 @@ const Ep = {
|
|
|
8813
8811
|
}
|
|
8814
8812
|
}
|
|
8815
8813
|
}
|
|
8816
|
-
},
|
|
8814
|
+
}, Rp = {
|
|
8815
|
+
MuiDataGrid: {
|
|
8816
|
+
styleOverrides: {
|
|
8817
|
+
root: {
|
|
8818
|
+
border: "none",
|
|
8819
|
+
".MuiDataGrid-toolbarContainer .MuiTextField-root": {
|
|
8820
|
+
backgroundColor: S.neutral100,
|
|
8821
|
+
padding: "8px",
|
|
8822
|
+
borderRadius: "8px"
|
|
8823
|
+
},
|
|
8824
|
+
".MuiInput-underline:before": {
|
|
8825
|
+
borderBottom: "none !important",
|
|
8826
|
+
color: "red"
|
|
8827
|
+
},
|
|
8828
|
+
".MuiDataGrid-toolbarContainer button": {
|
|
8829
|
+
backgroundColor: S.neutral100,
|
|
8830
|
+
color: S.neutral900,
|
|
8831
|
+
padding: "4px 10px"
|
|
8832
|
+
},
|
|
8833
|
+
".MuiDataGrid-toolbarContainer svg": {
|
|
8834
|
+
color: S.neutral700
|
|
8835
|
+
},
|
|
8836
|
+
".MuiDataGrid-cell:focus": {
|
|
8837
|
+
outline: "none"
|
|
8838
|
+
},
|
|
8839
|
+
".MuiDataGrid-overlayWrapper": {
|
|
8840
|
+
height: "auto"
|
|
8841
|
+
}
|
|
8842
|
+
},
|
|
8843
|
+
menu: {
|
|
8844
|
+
".MuiPaper-root": {
|
|
8845
|
+
padding: "0px"
|
|
8846
|
+
// Remove extra paper padding from table action menu
|
|
8847
|
+
}
|
|
8848
|
+
},
|
|
8849
|
+
columnHeaderTitle: ({ theme: e }) => ({
|
|
8850
|
+
fontWeight: 600,
|
|
8851
|
+
fontSize: e.typography.body2.fontSize
|
|
8852
|
+
})
|
|
8853
|
+
}
|
|
8854
|
+
}
|
|
8855
|
+
}, Qp = Sa({
|
|
8817
8856
|
typography: {
|
|
8818
8857
|
fontFamily: ["Inter", "sans-serif"].join(",")
|
|
8819
8858
|
},
|
|
@@ -8822,6 +8861,7 @@ const Ep = {
|
|
|
8822
8861
|
...fp,
|
|
8823
8862
|
...Tp,
|
|
8824
8863
|
...wp,
|
|
8864
|
+
...Rp,
|
|
8825
8865
|
...dp,
|
|
8826
8866
|
...pp,
|
|
8827
8867
|
...Op,
|
|
@@ -8924,45 +8964,6 @@ const Ep = {
|
|
|
8924
8964
|
disableRipple: !0
|
|
8925
8965
|
}
|
|
8926
8966
|
},
|
|
8927
|
-
MuiDataGrid: {
|
|
8928
|
-
styleOverrides: {
|
|
8929
|
-
root: {
|
|
8930
|
-
border: "none",
|
|
8931
|
-
".MuiDataGrid-toolbarContainer .MuiTextField-root": {
|
|
8932
|
-
backgroundColor: S.neutral100,
|
|
8933
|
-
padding: "8px",
|
|
8934
|
-
borderRadius: "8px"
|
|
8935
|
-
},
|
|
8936
|
-
".MuiInput-underline:before": {
|
|
8937
|
-
borderBottom: "none !important",
|
|
8938
|
-
color: "red"
|
|
8939
|
-
},
|
|
8940
|
-
".MuiDataGrid-toolbarContainer button": {
|
|
8941
|
-
backgroundColor: S.neutral100,
|
|
8942
|
-
color: S.neutral900,
|
|
8943
|
-
padding: "4px 10px"
|
|
8944
|
-
},
|
|
8945
|
-
".MuiDataGrid-toolbarContainer svg": {
|
|
8946
|
-
color: S.neutral700
|
|
8947
|
-
},
|
|
8948
|
-
".MuiDataGrid-cell:focus": {
|
|
8949
|
-
outline: "none"
|
|
8950
|
-
},
|
|
8951
|
-
".MuiDataGrid-columnHeaderTitle": {
|
|
8952
|
-
fontWeight: 500
|
|
8953
|
-
},
|
|
8954
|
-
".MuiDataGrid-overlayWrapper": {
|
|
8955
|
-
height: "auto"
|
|
8956
|
-
}
|
|
8957
|
-
},
|
|
8958
|
-
menu: {
|
|
8959
|
-
".MuiPaper-root": {
|
|
8960
|
-
padding: "0px"
|
|
8961
|
-
// Remove extra paper padding from table action menu
|
|
8962
|
-
}
|
|
8963
|
-
}
|
|
8964
|
-
}
|
|
8965
|
-
},
|
|
8966
8967
|
MuiAccordion: {
|
|
8967
8968
|
defaultProps: {
|
|
8968
8969
|
variant: "elevation"
|
|
@@ -9004,30 +9005,30 @@ const Ep = {
|
|
|
9004
9005
|
palette: S
|
|
9005
9006
|
});
|
|
9006
9007
|
export {
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9008
|
+
jp as DemoComponent,
|
|
9009
|
+
Jp as DetailsLayout,
|
|
9010
|
+
Fp as HeaderMetadata,
|
|
9011
|
+
Wp as HeaderSubtitle,
|
|
9011
9012
|
Is as InkChip,
|
|
9012
|
-
|
|
9013
|
-
|
|
9013
|
+
Ip as InkChipGroup,
|
|
9014
|
+
Np as InkDialog,
|
|
9014
9015
|
Xd as InkDialogPageObject,
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9016
|
+
Kp as InkEmptyState,
|
|
9017
|
+
Bp as InkPageHeader,
|
|
9018
|
+
Up as InkPaper,
|
|
9019
|
+
Dp as InkPersistentFilterDrawer,
|
|
9020
|
+
Gp as InkRadioTiles,
|
|
9021
|
+
Xp as InkSelect,
|
|
9022
|
+
qp as InkSwitch,
|
|
9022
9023
|
ii as InkToggleIcon,
|
|
9023
|
-
|
|
9024
|
+
Hp as InkToggleIconGroup,
|
|
9024
9025
|
oi as InkToggleText,
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9026
|
+
Yp as InkToggleTextGroup,
|
|
9027
|
+
Vp as InkWorkflowHeader,
|
|
9028
|
+
zp as LinkBreadcrumbs,
|
|
9029
|
+
Qp as MovableUITheme,
|
|
9030
|
+
Lp as PageHeaderActionButtons,
|
|
9031
|
+
Zp as inkDialog,
|
|
9031
9032
|
Aa as inkSelect
|
|
9032
9033
|
};
|
|
9033
9034
|
//# sourceMappingURL=index.mjs.map
|