@sheetxl/utils-mui 0.7.27 → 0.7.28-beta.1
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/CMDyOaq_TZmhbR3R.cjs +1 -0
- package/browser/cjs/GeHQP4M_1ydWv9v4.cjs +3 -0
- package/browser/cjs/index.cjs +4 -7
- package/browser/esm/CS_JzxfpVf9TlNsZ.mjs +96 -0
- package/browser/esm/DTtDTwN0K4atO3Er.mjs +2544 -0
- package/browser/esm/index.mjs +2688 -72
- package/licenses/dependencies.txt +60 -198
- package/node/esm/CbmHouxoPCCNwqGT.mjs +97 -0
- package/node/esm/index.mjs +3354 -981
- package/package.json +12 -14
- package/resources/contents.json +18 -0
- package/resources/locales/contents.json +16 -0
- package/resources/locales/de/ui.msg.json +22 -0
- package/resources/locales/en/ui.msg.json +22 -0
- package/types/index.d.ts +2 -1068
- package/types/src/button/ButtonContent.d.ts +17 -0
- package/types/src/button/ExhibitIconButton.d.ts +31 -0
- package/types/src/button/ExhibitMenuHeader.d.ts +15 -0
- package/types/src/button/ExhibitMenuItem.d.ts +24 -0
- package/types/src/button/ExhibitOptionButton.d.ts +16 -0
- package/types/src/button/ExhibitPopupIconButton.d.ts +18 -0
- package/types/src/button/ExhibitPopupMenuItem.d.ts +8 -0
- package/types/src/button/ExhibitTooltip.d.ts +26 -0
- package/types/src/button/OverflowPalette.d.ts +29 -0
- package/types/src/button/SelectedIcon.d.ts +18 -0
- package/types/src/button/index.d.ts +11 -0
- package/types/src/command/CommandButton.d.ts +4 -0
- package/types/src/command/CommandGroup.d.ts +71 -0
- package/types/src/command/CommandPopupButton.d.ts +34 -0
- package/types/src/command/CommandToolbar.d.ts +51 -0
- package/types/src/command/CommandTooltip.d.ts +22 -0
- package/types/src/command/InputCommandButton.d.ts +20 -0
- package/types/src/command/ToggleGroupButton.d.ts +33 -0
- package/types/src/command/index.d.ts +8 -0
- package/types/src/command/useManagedRipple.d.ts +23 -0
- package/types/src/components/AnimatedLoadingPanel.d.ts +45 -0
- package/types/src/components/ChipStrip.d.ts +9 -0
- package/types/src/components/ContextMenu.d.ts +32 -0
- package/types/src/components/ExhibitDivider.d.ts +6 -0
- package/types/src/components/NestingPopupButton.d.ts +11 -0
- package/types/src/components/ScrollButtons.d.ts +7 -0
- package/types/src/components/SimpleTooltip.d.ts +15 -0
- package/types/src/components/StackTrace.d.ts +20 -0
- package/types/src/components/StackTraceErrorPanel.d.ts +28 -0
- package/types/src/components/index.d.ts +10 -0
- package/types/src/dialog/InputDialog.d.ts +8 -0
- package/types/src/dialog/InternalWindow.d.ts +142 -0
- package/types/src/dialog/OptionsDialog.d.ts +19 -0
- package/types/src/dialog/index.d.ts +10 -0
- package/types/src/dialog/useInputDialog.d.ts +6 -0
- package/types/src/dialog/useLazyWindow.d.ts +14 -0
- package/types/src/dialog/useOptionsDialog.d.ts +8 -0
- package/types/src/float/ExhibitFloatPanel.d.ts +22 -0
- package/types/src/float/ExhibitFloatProvider.d.ts +17 -0
- package/types/src/float/ExhibitPopup.d.ts +97 -0
- package/types/src/float/index.d.ts +4 -0
- package/types/src/index.d.ts +8 -0
- package/types/src/locales/index.d.ts +3 -0
- package/types/src/theme/ExhibitTheme.d.ts +71 -0
- package/types/src/theme/IconSupport.d.ts +11 -0
- package/types/src/theme/ScrollbarTheming.d.ts +12 -0
- package/types/src/theme/index.d.ts +4 -0
- package/browser/cjs/DaEKEZaG-FHdWrtX.cjs +0 -6
- package/browser/cjs/DfODF1nk9pC8WaMc.cjs +0 -11
- package/browser/esm/CvYgOZcfwT-xE3Sk.mjs +0 -2891
- package/browser/esm/i2MzZuUDebibOGmf.mjs +0 -44
- package/node/assets/style.css +0 -1
- package/node/esm/CaDPRPvErt0JK4E-.mjs +0 -45
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { memo as j, forwardRef as z, useState as s } from "react";
|
|
3
|
-
import { O as E, c as R } from "./CvYgOZcfwT-xE3Sk.mjs";
|
|
4
|
-
import { alpha as y, getOverlayAlpha as O } from "@mui/material/styles";
|
|
5
|
-
import { Box as A, FormControl as W, TextField as q } from "@mui/material";
|
|
6
|
-
import { useCallbackRef as n, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
|
-
/**
|
|
8
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.27
|
|
9
|
-
*
|
|
10
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
-
*/
|
|
13
|
-
const J = ["Input"], aa = j(z((w, C) => {
|
|
14
|
-
const { initialValue: F = "", onOption: T, onValidateOption: r, onInput: c, onValidateInput: p, onDone: u, propsInput: d, inputLabel: v, inputType: I, inputPlaceHolder: b, options: m = J, autoFocusSel: k = ".autoFocus", cancelOption: g, defaultOption: f = m?.[0], ...V } = w, [B, D] = s(!1), [o, P] = s(F), [S, H] = s(""), [K, L] = s(!0), e = n(async (a, t) => {
|
|
15
|
-
if (!p) return !0;
|
|
16
|
-
const l = await p?.(a, t);
|
|
17
|
-
H(l?.message ?? "");
|
|
18
|
-
const x = l?.valid ?? !0;
|
|
19
|
-
return L(x), x;
|
|
20
|
-
}, [p]), h = n(async (a) => {
|
|
21
|
-
c?.(o, a);
|
|
22
|
-
}, [o, c, u, T, g, f]), M = n(async (a) => {
|
|
23
|
-
a.keyCode === G.Enter && await e?.(o, null);
|
|
24
|
-
}, [o, h]), N = n((a) => {
|
|
25
|
-
P(a.target.value), e?.(a.target.value, null);
|
|
26
|
-
}, [r]), $ = n(async (a) => {
|
|
27
|
-
let t = await e(o, a);
|
|
28
|
-
try {
|
|
29
|
-
t !== !1 && (t = await e(o, a));
|
|
30
|
-
} catch {
|
|
31
|
-
}
|
|
32
|
-
return t ?? !0;
|
|
33
|
-
}, [o, r]);
|
|
34
|
-
return i(E, { options: m, onDone: u, onOption: (a, t) => {
|
|
35
|
-
t || h(a);
|
|
36
|
-
}, onValidateOption: $, cancelOption: g, defaultOption: f, autoFocusSel: k, ref: C, ...V, children: i(A, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(W, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(q, { onFocus: (a) => {
|
|
37
|
-
B || a.target?.select(), D(!0);
|
|
38
|
-
}, type: I, label: v, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: K ? void 0 : "error.main" } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { placeholder: b, spellCheck: !1, autoComplete: "off", ...d, className: R("autoFocus", d?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${y("#fff", O(5))}, ${y("#fff", O(5))})` } } }, value: o, onChange: N, onKeyDown: M, onContextMenu: (a) => {
|
|
39
|
-
a.stopPropagation();
|
|
40
|
-
} }) }) }) });
|
|
41
|
-
}));
|
|
42
|
-
export {
|
|
43
|
-
aa as default
|
|
44
|
-
};
|
package/node/assets/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.27
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { memo as o, forwardRef as n, useState as a } from "react";
|
|
9
|
-
import e from "clsx";
|
|
10
|
-
import { alpha as i, getOverlayAlpha as r } from "@mui/material/styles";
|
|
11
|
-
import { Box as p, FormControl as l, TextField as s } from "@mui/material";
|
|
12
|
-
import { useCallbackRef as c, KeyCodes as u } from "@sheetxl/utils-react";
|
|
13
|
-
import { OptionsDialog as m } from "./index.mjs";
|
|
14
|
-
const d = ["Input"], g = o(n((o2, n2) => {
|
|
15
|
-
const { initialValue: g2 = "", onOption: f, onValidateOption: h, onInput: x, onValidateInput: y, onDone: O, propsInput: w, inputLabel: T, inputType: F, inputPlaceHolder: I, options: v = d, autoFocusSel: C = ".autoFocus", cancelOption: b, defaultOption: k = v?.[0], ...V } = o2, [D, P] = a(false), [j, B] = a(g2), [H, L] = a(""), [M, N] = a(true), S = c(async (t2, o3) => {
|
|
16
|
-
if (!y) return true;
|
|
17
|
-
const n3 = await y?.(t2, o3);
|
|
18
|
-
L(n3?.message ?? "");
|
|
19
|
-
const a2 = n3?.valid ?? true;
|
|
20
|
-
return N(a2), a2;
|
|
21
|
-
}, [y]), $ = c(async (t2) => {
|
|
22
|
-
x?.(j, t2);
|
|
23
|
-
}, [j, x, O, f, b, k]), z = c(async (t2) => {
|
|
24
|
-
t2.keyCode === u.Enter && await S?.(j, null);
|
|
25
|
-
}, [j, $]), E = c((t2) => {
|
|
26
|
-
B(t2.target.value), S?.(t2.target.value, null);
|
|
27
|
-
}, [h]), K = c(async (t2) => {
|
|
28
|
-
let o3 = await S(j, t2);
|
|
29
|
-
try {
|
|
30
|
-
false !== o3 && (o3 = await S(j, t2));
|
|
31
|
-
} catch (t3) {
|
|
32
|
-
}
|
|
33
|
-
return o3 ?? true;
|
|
34
|
-
}, [j, h]);
|
|
35
|
-
return t(m, { options: v, onDone: O, onOption: (t2, o3) => {
|
|
36
|
-
o3 || $(t2);
|
|
37
|
-
}, onValidateOption: K, cancelOption: b, defaultOption: k, autoFocusSel: C, ref: n2, ...V, children: t(p, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0) }, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(s, { onFocus: (t2) => {
|
|
38
|
-
D || t2.target?.select(), P(true);
|
|
39
|
-
}, type: F, label: T, helperText: H || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5), color: M ? void 0 : "error.main" } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { placeholder: I, spellCheck: false, autoComplete: "off", ...w, className: e("autoFocus", w?.className), sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", r(5))}, ${i("#fff", r(5))})` } } }, value: j, onChange: E, onKeyDown: z, onContextMenu: (t2) => {
|
|
40
|
-
t2.stopPropagation();
|
|
41
|
-
} }) }) }) });
|
|
42
|
-
}));
|
|
43
|
-
export {
|
|
44
|
-
g as default
|
|
45
|
-
};
|