@sheetxl/utils-mui 0.6.9 → 0.6.11

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.9
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.6.11
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: o2, shortcut: r2, chips: i2, description: s2, maxWidth: d2 = 280, useModifierSymbols: h2 = false, children: p2, simple: m2, componentDisabled: v2 = false, sx: u2, ...f2 } = l2;
444
- let H2 = null;
445
- r2 && (H2 = na(r2, h2));
446
- return e(ta, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...u2 }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !a2 && o2 ? t(V, { sx: { maxWidth: `${d2}px` }, ref: n2, children: [t(V, { sx: { display: "flex", flexDirection: "row", marginBottom: s2 ? "4px" : "0px" }, children: [e(C, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: o2 }), i2 ? e(Zn, { chips: i2 }) : null, H2 ? e(V, { sx: { marginLeft: "8px" } }, "leadingSpace") : e(c, {}), H2] }), s2 ? e(C, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: s2 }) : e(c, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: true, ...f2, children: e("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: p2 }) });
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("./B3VQbqLe_WpuSVZA.mjs")), Pa = (e2) => {
794
+ }, Sa = l.lazy(() => import("./D17lNers21SpSCfd.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.9",
4
+ "version": "0.6.11",
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.9",
36
- "@sheetxl/utils-react": "^0.6.9",
35
+ "@sheetxl/utils": "^0.6.11",
36
+ "@sheetxl/utils-react": "^0.6.11",
37
37
  "clsx": "^2.1.1",
38
38
  "detect-it": "^4.0.1",
39
39
  "focus-trap-react": "^10.1.4",