@sheetxl/utils-mui 0.6.9 → 0.6.10
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/browser/cjs/{CKlfdSTK9vZ3XEiu.cjs → DSi2ig6Ie7tmRawy.cjs} +2 -2
- package/browser/cjs/{DHJYw1Rt2HBdXtOv.cjs → DknwKxSJ2wFOEHFa.cjs} +3 -3
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{NpR41vbMLtz0fGKR.mjs → BC2BqJmtfMDHw2Tm.mjs} +2 -2
- package/browser/esm/{A_-uypYh_c2Wul4t.mjs → DdRs872DgdujyHeR.mjs} +97 -91
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{B3VQbqLe_WpuSVZA.mjs → BLSKQsNqjZGeQxSK.mjs} +1 -1
- package/node/esm/index.mjs +12 -6
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.10
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.10
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -440,10 +440,16 @@ const ca = n((t2) => {
|
|
|
440
440
|
const a2 = [];
|
|
441
441
|
return n2?.[_.Ctrl] && (a2.push(e(ca, { modifier: c2 ? "^" : e("div", { style: { paddingRight: "1px" }, children: la }) }, "ctrl")), a2.push("+")), n2?.[_.Alt] && (a2.push(e(ca, { modifier: c2 ? "⌥" : "Alt" }, "alt")), a2.push("+")), n2?.[_.Shift] && (a2.push(e(ca, { modifier: c2 ? "⇧" : e("div", { style: { paddingRight: "1px" }, children: "Shift" }) }, "shift")), a2.push("+")), n2?.[_.Meta] && (a2.push(e(ca, { modifier: c2 ? e("div", { style: { paddingTop: "1px" }, children: "⌘" }) : "Meta" }, "meta")), a2.push("+")), a2.push(e(ca, { modifier: j.toPrettyKeyCode(t2.key) }, "character")), e(V, { sx: { display: "flex", alignItems: "center" }, children: a2 }, l2);
|
|
442
442
|
}, aa = n(a((l2, n2) => {
|
|
443
|
-
const { disabled: a2 = false, label:
|
|
444
|
-
let
|
|
445
|
-
|
|
446
|
-
|
|
443
|
+
const { disabled: a2 = false, label: r2, shortcut: i2, chips: d2, description: h2, maxWidth: p2 = 280, useModifierSymbols: m2 = false, children: v2, simple: u2, componentDisabled: f2 = false, sx: H2, ...z2 } = l2;
|
|
444
|
+
let y2 = null;
|
|
445
|
+
i2 && (y2 = na(i2, m2));
|
|
446
|
+
const [x2, M2] = s(null);
|
|
447
|
+
o(() => {
|
|
448
|
+
Promise.resolve(r2).then((e2) => {
|
|
449
|
+
M2(e2);
|
|
450
|
+
});
|
|
451
|
+
}, [r2]);
|
|
452
|
+
return e(ta, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...H2 }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !a2 && x2 ? t(V, { sx: { maxWidth: `${p2}px` }, ref: n2, children: [t(V, { sx: { display: "flex", flexDirection: "row", marginBottom: h2 ? "4px" : "0px" }, children: [e(C, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: x2 }), d2 ? e(Zn, { chips: d2 }) : null, y2 ? e(V, { sx: { marginLeft: "8px" } }, "leadingSpace") : e(c, {}), y2] }), h2 ? e(C, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: h2 }) : e(c, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: true, ...z2, children: e("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: v2 }) });
|
|
447
453
|
})), oa = { Light: "light", Dark: "dark" };
|
|
448
454
|
function ra(e2) {
|
|
449
455
|
const { mode: t2 } = e2 || {}, [c2, l2] = s(() => {
|
|
@@ -785,7 +791,7 @@ const Ca = { x: 0, y: 0 }, Ma = n(a((t2, c2) => {
|
|
|
785
791
|
c2?.onDone?.(), n2.hide();
|
|
786
792
|
} });
|
|
787
793
|
});
|
|
788
|
-
}, Sa = l.lazy(() => import("./
|
|
794
|
+
}, Sa = l.lazy(() => import("./BLSKQsNqjZGeQxSK.mjs")), Pa = (e2) => {
|
|
789
795
|
const { showModal: t2 } = ue();
|
|
790
796
|
return (c2) => {
|
|
791
797
|
const { defaultOption: l2 = c2.options?.[0], cancelOption: n2 = "Cancel", ...a2 } = c2;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/utils-mui",
|
|
3
3
|
"description": "Utilities MUI - Utilities for MUI Components needed for all SheetXL components.",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.10",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@popperjs/core": "^2.11.8",
|
|
35
|
-
"@sheetxl/utils": "^0.6.
|
|
36
|
-
"@sheetxl/utils-react": "^0.6.
|
|
35
|
+
"@sheetxl/utils": "^0.6.10",
|
|
36
|
+
"@sheetxl/utils-react": "^0.6.10",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"detect-it": "^4.0.1",
|
|
39
39
|
"focus-trap-react": "^10.1.4",
|