@sheetxl/utils-mui 0.4.12 → 0.4.14
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/CheXIuEoymqb4r0S.cjs +6 -0
- package/browser/cjs/index.cjs +4 -10
- package/browser/cjs/s-ykj-28RNe0aXW_.cjs +30 -0
- package/browser/esm/BW021r-yF2mG6YMz.mjs +5392 -0
- package/browser/esm/DhFb-ASqoqhVewl1.mjs +43 -0
- package/browser/esm/index.mjs +244 -8
- package/licenses/dependencies.txt +2 -2
- package/node/esm/{BUxS2VgTG07ewx9J.mjs → BNT2zlQ6RFuBI4EK.mjs} +1 -1
- package/node/esm/index.mjs +2 -2
- package/package.json +3 -3
- package/browser/cjs/Bess852UVQ-Zudgk.cjs +0 -7
- package/browser/cjs/CvfKN6sydG6Hfg_e.cjs +0 -7
- package/browser/esm/CXV8anZdOZGWbu6Z.mjs +0 -7
- package/browser/esm/DSuIqMgsRJkWSi_f.mjs +0 -7
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as z, forwardRef as E, useState as p } from "react";
|
|
3
|
+
import { T as n, e as K, O as R, c as W, g as O } from "./BW021r-yF2mG6YMz.mjs";
|
|
4
|
+
import { Box as q, FormControl as A, TextField as G } from "@mui/material";
|
|
5
|
+
import { alpha as y } from "@mui/system";
|
|
6
|
+
/**
|
|
7
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.14
|
|
8
|
+
*
|
|
9
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
+
*/
|
|
12
|
+
const J = ["Input"], _ = z(E((T, w) => {
|
|
13
|
+
const { initialValue: F = "", onOption: C, onValidateOption: l, onInputOption: c, onValidateInputOption: s, onDone: u, inputProps: d, inputLabel: I, inputType: P, inputPlaceHolder: v, options: m = J, autoFocusSel: b = ".autoFocus", cancelOption: g, defaultOption: f = m?.[0], ...k } = T, [V, B] = p(!1), [a, D] = p(F), [S, H] = p(""), [L, M] = p(!0), e = n(async (o, t) => {
|
|
14
|
+
if (!s) return !0;
|
|
15
|
+
const r = await s?.(o, t);
|
|
16
|
+
H(r?.message ?? "");
|
|
17
|
+
const x = r?.valid ?? !0;
|
|
18
|
+
return M(x), x;
|
|
19
|
+
}, [s]), h = n(async (o) => {
|
|
20
|
+
c?.(a, o);
|
|
21
|
+
}, [a, c, u, C, g, f]), N = n(async (o) => {
|
|
22
|
+
o.keyCode === K.Enter && await e?.(a, null);
|
|
23
|
+
}, [a, h]), $ = n((o) => {
|
|
24
|
+
D(o.target.value), e?.(o.target.value, null);
|
|
25
|
+
}, [l]), j = n(async (o) => {
|
|
26
|
+
let t = await e(a, o);
|
|
27
|
+
try {
|
|
28
|
+
t !== !1 && (t = await e(a, o));
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
return t ?? !0;
|
|
32
|
+
}, [a, l]);
|
|
33
|
+
return i(R, { options: m, onDone: u, onOption: (o, t) => {
|
|
34
|
+
t || h(o);
|
|
35
|
+
}, onValidateOption: j, cancelOption: g, defaultOption: f, autoFocusSel: b, ref: w, ...k, children: i(q, { sx: { paddingTop: (o) => o.spacing(1), paddingBottom: (o) => o.spacing(0) }, children: i(A, { sx: { paddingTop: (o) => o.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(G, { onFocus: (o) => {
|
|
36
|
+
V || o.target?.select(), B(!0);
|
|
37
|
+
}, type: P, label: I, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (o) => o.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: v, spellCheck: !1, autoComplete: "off", ...d, className: W("autoFocus", d?.className), sx: { paddingTop: (o) => o.spacing(1.25), paddingBottom: (o) => o.spacing(0.75), backgroundImage: `linear-gradient(${y("#fff", O(5))}, ${y("#fff", O(5))})` } } }, value: a, onChange: $, onKeyDown: N, onContextMenu: (o) => {
|
|
38
|
+
o.stopPropagation();
|
|
39
|
+
} }) }) }) });
|
|
40
|
+
}));
|
|
41
|
+
export {
|
|
42
|
+
_ as default
|
|
43
|
+
};
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,13 +1,249 @@
|
|
|
1
|
-
(function () {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
try{if(typeof document != 'undefined'){var elementStyle = document.createElement('style');elementStyle.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1 {\n display: inline-block;\n position: relative;\n}\n._traverse-ellipsis_14l1h_1 div {\n position: absolute;\n border-radius: 50%;\n}\n._traverse-ellipsis_14l1h_1 div:nth-child(1) {\n left: 0px;\n animation: _traverse-ellipsis1_14l1h_1 0.6s infinite;\n}\n._traverse-ellipsis_14l1h_1 div:nth-child(2) {\n left: 0px;\n animation: _traverse-ellipsis2_14l1h_1 0.6s infinite;\n}\n._traverse-ellipsis_14l1h_1 div:nth-child(3) {\n left: 24px;\n animation: _traverse-ellipsis2_14l1h_1 0.6s infinite;\n}\n._traverse-ellipsis_14l1h_1 div:nth-child(4) {\n left: 48px;\n animation: _traverse-ellipsis3_14l1h_1 0.6s infinite;\n}\n@keyframes _traverse-ellipsis1_14l1h_1 {\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1);\n }\n}\n@keyframes _traverse-ellipsis3_14l1h_1 {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0);\n }\n}\n@keyframes _traverse-ellipsis2_14l1h_1 {\n 0% {\n transform: translate(0, 0);\n }\n 100% {\n transform: translate(24px, 0);\n }\n}"));document.head.appendChild(elementStyle);}}catch(e){console.error('vite-plugin-css-injected-by-js', e);}
|
|
5
|
-
|
|
6
|
-
})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._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)}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
+
import { C as e, y as n, A as s, z as c, D as t, F as r, B as I, P as l, be as i, bm as b, bg as u, bf as d, bj as m, bn as p, bi as C, bl as S, bk as T, bh as D, cA as w, bU as F, bS as x, bT as g, bV as h, Q as R, bR as A, J as B, _ as z, Z as E, $ as P, bQ as M, cM as k, cm as v, a3 as H, a0 as f, a1 as y, a2 as V, bX as O, bW as L, ag as N, cS as U, cU as W, cX as G, cV as K, K as j, ao as q, am as J, an as Q, ak as X, al as Y, bF as _, bE as Z, cd as $, c9 as aa, ce as oa, cf as ea, c8 as na, cc as sa, ca, cb as ta, c6 as ra, cg as Ia, ch as la, ck as ia, c5 as ba, c4 as ua, c7 as da, ci as ma, cj as pa, c2 as Ca, c3 as Sa, cl as Ta, c1 as Da, H as wa, x as Fa, cR as xa, E as ga, b as ha, a as Ra, h as Aa, cK as Ba, d as za, f as Ea, i as Pa, by as Ma, bx as ka, bw as va, bu as Ha, bv as fa, aA as ya, ae as Va, af as Oa, ad as La, bK as Na, bH as Ua, bJ as Wa, bO as Ga, bN as Ka, bM as ja, bI as qa, bL as Ja, aO as Qa, aN as Xa, aP as Ya, cB as _a, ac as Za, ab as $a, a9 as ao, aa as oo, bq as eo, br as no, cs as so, cu as co, ct as to, bG as ro, bP as Io, bC as lo, ax as io, az as bo, ai as uo, aj as mo, cT as po, aB as Co, aD as So, aC as To, aG as Do, aF as wo, aH as Fo, aE as xo, aI as go, cE as ho, cW as Ro, L as Ao, a5 as Bo, a4 as zo, a6 as Eo, a8 as Po, a7 as Mo, cC as ko, N as vo, bp as Ho, O as fo, as as yo, at as Vo, aq as Oo, av as Lo, au as No, ar as Uo, ah as Wo, cL as Go, cN as Ko, bo as jo, cr as qo, aJ as Jo, aL as Qo, aK as Xo, aM as Yo, bY as _o, bZ as Zo, cz as $o, cy as ae, cw as oe, cv as ee, cx as ne, co as se, cp as ce, S as te, aw as re, ay as Ie, cY as le, M as ie, aS as be, aR as ue, aQ as de, aV as me, aT as pe, aU as Ce, I as Se, bz as Te, bA as De, b_ as we, b$ as Fe, c0 as xe, cn as ge, Y as he, V as Re, R as Ae, W as Be, U as ze, X as Ee, b3 as Pe, b7 as Me, b6 as ke, b8 as ve, b4 as He, b5 as fe, ba as ye, b9 as Ve, aX as Oe, aW as Le, aY as Ne, a_ as Ue, aZ as We, b2 as Ge, b1 as Ke, b0 as je, a$ as qe, bd as Je, bc as Qe, bb as Xe, bs as Ye, bt as _e, q as Ze, bD as $e, cq as an, bB as on, ap as en, cP as nn, l as sn, u as cn, r as tn, w as rn, v as In, n as ln, cO as bn, k as un, cH as dn, j as mn, o as pn, s as Cn, cI as Sn, m as Tn, p as Dn, t as wn, cQ as Fn, cG as xn, cD as gn, cJ as hn, cF as Rn, G as An } from "./BW021r-yF2mG6YMz.mjs";
|
|
7
3
|
/**
|
|
8
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.
|
|
4
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.14
|
|
9
5
|
*
|
|
10
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
8
|
*/
|
|
13
|
-
export{
|
|
9
|
+
export {
|
|
10
|
+
e as AnimatedBouncingEllipsisIcon,
|
|
11
|
+
n as AnimatedCircleIcon,
|
|
12
|
+
s as AnimatedClockIcon,
|
|
13
|
+
c as AnimatedFadingEllipsisIcon,
|
|
14
|
+
t as AnimatedOrbitIcon,
|
|
15
|
+
r as AnimatedTraversingEllipsisIcon,
|
|
16
|
+
I as BLANK_ICON,
|
|
17
|
+
l as BlankIcon,
|
|
18
|
+
i as BorderAllIcon,
|
|
19
|
+
b as BorderBottomIcon,
|
|
20
|
+
u as BorderHorizontalIcon,
|
|
21
|
+
d as BorderInnerIcon,
|
|
22
|
+
m as BorderLeftIcon,
|
|
23
|
+
p as BorderNoneIcon,
|
|
24
|
+
C as BorderOuterIcon,
|
|
25
|
+
S as BorderRightIcon,
|
|
26
|
+
T as BorderTopIcon,
|
|
27
|
+
D as BorderVerticalIcon,
|
|
28
|
+
w as CalculateIcon,
|
|
29
|
+
F as CellSelectionEditIcon,
|
|
30
|
+
x as CellSelectionIcon,
|
|
31
|
+
g as CellSelectionInsertIcon,
|
|
32
|
+
h as CellSelectionRemoveIcon,
|
|
33
|
+
R as CheckIcon,
|
|
34
|
+
A as CheckSuccessIcon,
|
|
35
|
+
B as ChipStrip,
|
|
36
|
+
z as ClearAllIcon,
|
|
37
|
+
E as ClearContentsIcon,
|
|
38
|
+
P as ClearFormatsIcon,
|
|
39
|
+
M as CloseErrorIcon,
|
|
40
|
+
k as ClosingReason,
|
|
41
|
+
v as CodeIcon,
|
|
42
|
+
H as ColorizedCircleIcon,
|
|
43
|
+
f as ColorizedFillIcon,
|
|
44
|
+
y as ColorizedStrokeIcon,
|
|
45
|
+
V as ColorizedTextIcon,
|
|
46
|
+
O as ColumnsResizeAutoIcon,
|
|
47
|
+
L as ColumnsResizeIcon,
|
|
48
|
+
N as CommaIcon,
|
|
49
|
+
U as CommandButton,
|
|
50
|
+
W as CommandPopupButton,
|
|
51
|
+
G as CommandToolbar,
|
|
52
|
+
K as CommandTooltip,
|
|
53
|
+
j as ContextMenu,
|
|
54
|
+
q as CopyIcon,
|
|
55
|
+
J as CurrencyDollarIcon,
|
|
56
|
+
Q as CutIcon,
|
|
57
|
+
X as DecreaseDecimalIcon,
|
|
58
|
+
Y as DecreaseDecimalIcon2,
|
|
59
|
+
_ as DiscordIcon,
|
|
60
|
+
Z as DocumentationIcon,
|
|
61
|
+
$ as DrawAlignBottomIcon,
|
|
62
|
+
aa as DrawAlignCenterIcon,
|
|
63
|
+
oa as DrawAlignDistributeHorzIcon,
|
|
64
|
+
ea as DrawAlignDistributeVertIcon,
|
|
65
|
+
na as DrawAlignLeftIcon,
|
|
66
|
+
sa as DrawAlignMiddleIcon,
|
|
67
|
+
ca as DrawAlignRightIcon,
|
|
68
|
+
ta as DrawAlignTopIcon,
|
|
69
|
+
ra as DrawAspectIcon,
|
|
70
|
+
Ia as DrawFlipHorzIcon,
|
|
71
|
+
la as DrawFlipVertIcon,
|
|
72
|
+
ia as DrawGroupIcon,
|
|
73
|
+
ba as DrawMoveBackwardIcon,
|
|
74
|
+
ua as DrawMoveForwardIcon,
|
|
75
|
+
da as DrawResizeIcon,
|
|
76
|
+
ma as DrawSwapHorzIcon,
|
|
77
|
+
pa as DrawSwapVertIcon,
|
|
78
|
+
Ca as DrawToBackIcon,
|
|
79
|
+
Sa as DrawToFrontIcon,
|
|
80
|
+
Ta as DrawUngroupIcon,
|
|
81
|
+
Da as ErrorAlertIcon,
|
|
82
|
+
wa as ErrorPanel,
|
|
83
|
+
Fa as ExhibitDivider,
|
|
84
|
+
xa as ExhibitFloatPanel,
|
|
85
|
+
ga as ExhibitIconButton,
|
|
86
|
+
ha as ExhibitMenuHeader,
|
|
87
|
+
Ra as ExhibitMenuItem,
|
|
88
|
+
Aa as ExhibitOptionButton,
|
|
89
|
+
Ba as ExhibitPopper,
|
|
90
|
+
za as ExhibitPopupIconButton,
|
|
91
|
+
Ea as ExhibitPopupMenuItem,
|
|
92
|
+
Pa as ExhibitTooltip,
|
|
93
|
+
Ma as FileDownloadAsCSVIcon,
|
|
94
|
+
ka as FileDownloadAsExcelIcon,
|
|
95
|
+
va as FileDownloadAsSheetIcon,
|
|
96
|
+
Ha as FileNewIcon,
|
|
97
|
+
fa as FileOpenIcon,
|
|
98
|
+
ya as FillDownIcon,
|
|
99
|
+
Va as FilterClearIcon,
|
|
100
|
+
Oa as FilterReapplyIcon,
|
|
101
|
+
La as FilterToggleIcon,
|
|
102
|
+
Na as FindCaseSensitiveIcon,
|
|
103
|
+
Ua as FindIcon,
|
|
104
|
+
Wa as FindOptionsIcon,
|
|
105
|
+
Ga as FindRegExIcon,
|
|
106
|
+
Ka as FindReplaceAllIcon,
|
|
107
|
+
ja as FindReplaceIcon,
|
|
108
|
+
qa as FindReplaceToggleIcon,
|
|
109
|
+
Ja as FindWholeWordIcon,
|
|
110
|
+
Qa as FormatIndentDecreaseIcon,
|
|
111
|
+
Xa as FormatIndentIncreaseIcon,
|
|
112
|
+
Ya as FormatPaintIcon,
|
|
113
|
+
_a as FormulaGroupIcon,
|
|
114
|
+
Za as FreezeBothIcon,
|
|
115
|
+
$a as FreezeColumnsIcon,
|
|
116
|
+
ao as FreezeIcon,
|
|
117
|
+
oo as FreezeRowsIcon,
|
|
118
|
+
eo as FullScreenIcon,
|
|
119
|
+
no as FullScreenOffIcon,
|
|
120
|
+
so as FunctionIcon,
|
|
121
|
+
co as FunctionSumIcon,
|
|
122
|
+
to as FunctionThinIcon,
|
|
123
|
+
ro as GithubIcon,
|
|
124
|
+
Io as GotoIcon,
|
|
125
|
+
lo as HelpIcon,
|
|
126
|
+
io as HideColumnIcon,
|
|
127
|
+
bo as HideRowIcon,
|
|
128
|
+
uo as IncreaseDecimalIcon,
|
|
129
|
+
mo as IncreaseDecimalIcon2,
|
|
130
|
+
po as InputCommandButton,
|
|
131
|
+
Co as InsertCells,
|
|
132
|
+
So as InsertColumn2Icon,
|
|
133
|
+
To as InsertColumnIcon,
|
|
134
|
+
Do as InsertCommentIcon,
|
|
135
|
+
wo as InsertHyperlinkIcon,
|
|
136
|
+
Fo as InsertImageIcon,
|
|
137
|
+
xo as InsertRowIcon,
|
|
138
|
+
go as InsertTableIcon,
|
|
139
|
+
ho as InternalWindow,
|
|
140
|
+
Ro as LabelIcon,
|
|
141
|
+
Ao as LoadingPanel,
|
|
142
|
+
Bo as MergeAllIcon,
|
|
143
|
+
zo as MergeHIcon,
|
|
144
|
+
Eo as MergeHorizontalIcon,
|
|
145
|
+
Po as MergeUnMergeIcon,
|
|
146
|
+
Mo as MergeVerticalIcon,
|
|
147
|
+
ko as ModalProvider,
|
|
148
|
+
vo as NestingPopupButton,
|
|
149
|
+
Ho as NewPresetStylesIcon,
|
|
150
|
+
fo as OptionsDialog,
|
|
151
|
+
yo as PasteFormatsIcon,
|
|
152
|
+
Vo as PasteFormulasIcon,
|
|
153
|
+
Oo as PasteIcon,
|
|
154
|
+
Lo as PasteLinksIcon,
|
|
155
|
+
No as PasteTransposeIcon,
|
|
156
|
+
Uo as PasteValuesIcon,
|
|
157
|
+
Wo as PercentIcon,
|
|
158
|
+
Go as PopupAutoFocus,
|
|
159
|
+
Ko as PopupButtonType,
|
|
160
|
+
jo as PresetStylesIcon,
|
|
161
|
+
qo as RedoIcon,
|
|
162
|
+
Jo as RemoveCellsIcon,
|
|
163
|
+
Qo as RemoveColumn2Icon,
|
|
164
|
+
Xo as RemoveColumnIcon,
|
|
165
|
+
Yo as RemoveRowIcon,
|
|
166
|
+
_o as RowResizeIcon,
|
|
167
|
+
Zo as RowsResizeAutoIcon,
|
|
168
|
+
$o as ScriptFormulaIcon,
|
|
169
|
+
ae as ScriptMacroIcon,
|
|
170
|
+
oe as ScriptNewIcon,
|
|
171
|
+
ee as ScriptRunIcon,
|
|
172
|
+
ne as ScriptSaveIcon,
|
|
173
|
+
se as SelectAreaModeIcon,
|
|
174
|
+
ce as SelectRangeModeIcon,
|
|
175
|
+
te as SelectedIcon,
|
|
176
|
+
re as ShowColumnIcon,
|
|
177
|
+
Ie as ShowRowIcon,
|
|
178
|
+
le as SimpleCommandPopupButton,
|
|
179
|
+
ie as SimpleTooltip,
|
|
180
|
+
be as SortAlphaCustomIcon,
|
|
181
|
+
ue as SortAlphaDecreaseIcon,
|
|
182
|
+
de as SortAlphaIncreaseIcon,
|
|
183
|
+
me as SortCustomIcon,
|
|
184
|
+
pe as SortDecreaseIcon,
|
|
185
|
+
Ce as SortIncreaseIcon,
|
|
186
|
+
Se as StackTrace,
|
|
187
|
+
Te as SystemDefaultDarkMode,
|
|
188
|
+
De as SystemDefaultLightMode,
|
|
189
|
+
we as TableIcon,
|
|
190
|
+
Fe as TableInsertIcon,
|
|
191
|
+
xe as TableRemoveIcon,
|
|
192
|
+
ge as TerminalIcon,
|
|
193
|
+
he as TextBoldIcon,
|
|
194
|
+
Re as TextHorizontalClipIcon,
|
|
195
|
+
Ae as TextHorizontalOverflowIcon,
|
|
196
|
+
Be as TextHorizontalShrinkIcon,
|
|
197
|
+
ze as TextHorizontalWrapIcon,
|
|
198
|
+
Ee as TextItalicIcon,
|
|
199
|
+
Pe as TextRotation0Icon,
|
|
200
|
+
Me as TextRotation2702Icon,
|
|
201
|
+
ke as TextRotation270Icon,
|
|
202
|
+
ve as TextRotation315Icon,
|
|
203
|
+
He as TextRotation45Icon,
|
|
204
|
+
fe as TextRotation90Icon,
|
|
205
|
+
ye as TextRotationCustomIcon,
|
|
206
|
+
Ve as TextRotationVerticalIcon,
|
|
207
|
+
Oe as TextSizeDecreaseIcon,
|
|
208
|
+
Le as TextSizeIncreaseIcon,
|
|
209
|
+
Ne as TextStrikeIcon,
|
|
210
|
+
Ue as TextSubscriptIcon,
|
|
211
|
+
We as TextSuperscriptIcon,
|
|
212
|
+
Ge as TextUnderlineAccountingDoubleIcon,
|
|
213
|
+
Ke as TextUnderlineAccountingIcon,
|
|
214
|
+
je as TextUnderlineDoubleIcon,
|
|
215
|
+
qe as TextUnderlineIcon,
|
|
216
|
+
Je as TextVerticalBottomIcon,
|
|
217
|
+
Qe as TextVerticalCenterIcon,
|
|
218
|
+
Xe as TextVerticalTopIcon,
|
|
219
|
+
Ye as Theme1Icon,
|
|
220
|
+
_e as Theme2Icon,
|
|
221
|
+
Ze as ThemedIcon,
|
|
222
|
+
$e as TicketIcon,
|
|
223
|
+
an as UndoIcon,
|
|
224
|
+
on as VisibilityOffIcon,
|
|
225
|
+
en as WalkingCopyIcon,
|
|
226
|
+
nn as createDownArrow,
|
|
227
|
+
sn as createExhibitTheme,
|
|
228
|
+
cn as createScrollButton,
|
|
229
|
+
tn as createScrollEdgeButton,
|
|
230
|
+
rn as createScrollEndButton,
|
|
231
|
+
In as createScrollStartButton,
|
|
232
|
+
ln as createStrokeShadowFilter,
|
|
233
|
+
bn as defaultCreatePopupPanel,
|
|
234
|
+
un as elevateColor,
|
|
235
|
+
dn as getModalConfig,
|
|
236
|
+
mn as hexToRGB,
|
|
237
|
+
pn as overlayAlpha,
|
|
238
|
+
Cn as scrollbarTheming,
|
|
239
|
+
Sn as setModalConfig,
|
|
240
|
+
Tn as strokeShadowFilter,
|
|
241
|
+
Dn as themeIcon,
|
|
242
|
+
wn as toShortcutElements,
|
|
243
|
+
Fn as useFloatStack,
|
|
244
|
+
xn as useInputDialog,
|
|
245
|
+
gn as useLazyWindow,
|
|
246
|
+
hn as useModal,
|
|
247
|
+
Rn as useOptionsDialog,
|
|
248
|
+
An as wrapErrorAsComponent
|
|
249
|
+
};
|
|
@@ -21,7 +21,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
Name: @sheetxl/utils
|
|
24
|
-
Version: 0.4.
|
|
24
|
+
Version: 0.4.14
|
|
25
25
|
License: SEE LICENSE IN <LICENSE>
|
|
26
26
|
Private: false
|
|
27
27
|
Description: Utils - Utilities used by most SheetXL components.
|
|
@@ -216,7 +216,7 @@ SOFTWARE.
|
|
|
216
216
|
---
|
|
217
217
|
|
|
218
218
|
Name: @sheetxl/utils-react
|
|
219
|
-
Version: 0.4.
|
|
219
|
+
Version: 0.4.14
|
|
220
220
|
License: SEE LICENSE IN <LICENSE>
|
|
221
221
|
Private: false
|
|
222
222
|
Description: Utils React - Utilities for React capabilities needed for all SheetXL components.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.14
|
|
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.4.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.14
|
|
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.
|
|
@@ -2155,7 +2155,7 @@ const yc = { x: 0, y: 0 }, xc = r(l((t2, n2) => {
|
|
|
2155
2155
|
t2?.onDone?.(), o2.hide();
|
|
2156
2156
|
} });
|
|
2157
2157
|
});
|
|
2158
|
-
}, wc = o.lazy(() => import("./
|
|
2158
|
+
}, wc = o.lazy(() => import("./BNT2zlQ6RFuBI4EK.mjs")), Lc = () => {
|
|
2159
2159
|
const { showModal: e5 } = ce();
|
|
2160
2160
|
return (t2) => {
|
|
2161
2161
|
const { defaultOption: n2 = t2.options?.[0], cancelOption: o2 = "Cancel", ...r2 } = t2;
|
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.4.
|
|
4
|
+
"version": "0.4.14",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@popperjs/core": "^2.11.8",
|
|
32
|
-
"@sheetxl/utils": "^0.4.
|
|
33
|
-
"@sheetxl/utils-react": "^0.4.
|
|
32
|
+
"@sheetxl/utils": "^0.4.14",
|
|
33
|
+
"@sheetxl/utils-react": "^0.4.14",
|
|
34
34
|
"clsx": "^2.1.1",
|
|
35
35
|
"detect-it": "^4.0.1",
|
|
36
36
|
"focus-trap-react": "^10.1.4",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.12
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./CvfKN6sydG6Hfg_e.cjs"),o=require("@mui/material"),n=require("@mui/system"),i=["Input"],r=t.memo(t.forwardRef((r,s)=>{const{initialValue:l="",onOption:p,onValidateOption:u,onInputOption:c,onValidateInputOption:d,onDone:g,inputProps:m,inputLabel:x,inputType:f,inputPlaceHolder:h,options:y=i,autoFocusSel:O=".autoFocus",cancelOption:T,defaultOption:v=y?.[0],...w}=r,[B,F]=t.useState(!1),[S,j]=t.useState(l),[P,b]=t.useState(""),[C,I]=t.useState(!0),q=a.B(async(e,t)=>{if(!d)return!0;const a=await(d?.(e,t));b(a?.message??"");const o=a?.valid??!0;return I(o),o},[d]),k=a.B(async e=>{c?.(S,e)},[S,c,g,p,T,v]),D=a.B(async e=>{e.keyCode===a.L.Enter&&await(q?.(S,null))},[S,k]),V=a.B(e=>{j(e.target.value),q?.(e.target.value,null)},[u]),L=a.B(async e=>{let t=await q(S,e);try{!1!==t&&(t=await q(S,e))}catch(e){}return t??!0},[S,u]);return e.jsx(a.OptionsDialog,{options:y,onDone:g,onOption:(e,t)=>{t||k(e)},onValidateOption:L,cancelOption:T,defaultOption:v,autoFocusSel:O,ref:s,...w,children:e.jsx(o.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:e.jsx(o.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsx(o.TextField,{onFocus:e=>{B||e.target?.select(),F(!0)},type:f,label:x,helperText:P||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:C?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:h,spellCheck:!1,autoComplete:"off",...m,className:a.clsx("autoFocus",m?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",a.getOverlayAlpha(5))}, ${n.alpha("#fff",a.getOverlayAlpha(5))})`}}},value:S,onChange:V,onKeyDown:D,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=r;
|