@sheetxl/utils-mui 0.1.95 → 0.1.96

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.
@@ -0,0 +1,249 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_w67fc_1{display:inline-block;position:relative}._traverse-ellipsis_w67fc_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_w67fc_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_w67fc_1 .6s infinite}._traverse-ellipsis_w67fc_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_w67fc_1 .6s infinite}._traverse-ellipsis_w67fc_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_w67fc_1 .6s infinite}._traverse-ellipsis_w67fc_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_w67fc_1 .6s infinite}@keyframes _traverse-ellipsis1_w67fc_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_w67fc_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_w67fc_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 "./BuqGETn2tFbFBd7e.mjs";
3
+ /**
4
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.1.95
5
+ *
6
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
+ * License: The license can be found at https://www.sheetxl.com/license.
8
+ */
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
+ };
@@ -0,0 +1,43 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { memo as j, forwardRef as z, useState as p } from "react";
3
+ import { T as t, e as E, O as K, c as R, g as O } from "./BuqGETn2tFbFBd7e.mjs";
4
+ import { Box as W, FormControl as q, TextField as A } 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.1.95
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 G = ["Input"], _ = j(z((T, J) => {
13
+ const { initialValue: w = "", onOption: F, onValidateOption: l, onInputOption: c, onValidateInputOption: s, onDone: u, inputProps: d, inputLabel: C, inputType: I, inputPlaceHolder: P, options: m = G, autoFocusSel: v = ".autoFocus", cancelOption: g, defaultOption: f = m?.[0], ...b } = T, [k, V] = p(!1), [a, B] = p(w), [D, S] = p(""), [H, L] = p(!0), e = t(async (o, n) => {
14
+ if (!s) return !0;
15
+ const r = await s?.(o, n);
16
+ S(r?.message ?? "");
17
+ const x = r?.valid ?? !0;
18
+ return L(x), x;
19
+ }, [s]), h = t(async (o) => {
20
+ c?.(a, o);
21
+ }, [a, c, u, F, g, f]), M = t(async (o) => {
22
+ o.keyCode === E.Enter && await e?.(a, null);
23
+ }, [a, h]), N = t((o) => {
24
+ B(o.target.value), e?.(o.target.value, null);
25
+ }, [l]), $ = t(async (o) => {
26
+ let n = await e(a, o);
27
+ try {
28
+ n !== !1 && (n = await e(a, o));
29
+ } catch {
30
+ }
31
+ return n ?? !0;
32
+ }, [a, l]);
33
+ return i(K, { options: m, onDone: u, onOption: (o, n) => {
34
+ n || h(o);
35
+ }, onValidateOption: $, cancelOption: g, defaultOption: f, autoFocusSel: v, ...b, children: i(W, { sx: { paddingTop: (o) => o.spacing(1), paddingBottom: (o) => o.spacing(0) }, children: i(q, { sx: { paddingTop: (o) => o.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { onFocus: (o) => {
36
+ k || o.target?.select(), V(!0);
37
+ }, type: I, label: C, helperText: D || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (o) => o.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: P, spellCheck: !1, autoComplete: "off", ...d, className: R("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: N, onKeyDown: M, onContextMenu: (o) => {
38
+ o.stopPropagation();
39
+ } }) }) }) });
40
+ }));
41
+ export {
42
+ _ as default
43
+ };