@sheetxl/utils-mui 0.7.26 → 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/Buzj_RuBZDULt78F.cjs +0 -11
- package/browser/cjs/DvRQUuQp6BSo_oUy.cjs +0 -6
- package/browser/esm/BNnvsy-BNmkD2vU1.mjs +0 -44
- package/browser/esm/D1zL4el7EI4boIdP.mjs +0 -2891
- package/node/assets/style.css +0 -1
- package/node/esm/DACH-8zNFkXeTBDb.mjs +0 -45
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.26
|
|
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
|
-
};
|