@sheetxl/utils-mui 0.7.13 → 0.7.15
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/{DBKNbW_UZGIFdc_s.cjs → Qezk4QHcfFat3DqW.cjs} +6 -6
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DNyaE39SbtmF-UDK.cjs → m1wTS_pzCNGBia1A.cjs} +2 -2
- package/browser/esm/{BfOux96gs0sl6o1o.mjs → DsJEXdmAMtu9ZELQ.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{B2ZgR_6AzHI4l5DU.mjs → xtjLllXmO7nvmTuk.mjs} +562 -554
- package/node/esm/{B8AkLqu0SQMq831k.mjs → D9hXWSHuVU7aZF6E.mjs} +1 -1
- package/node/esm/index.mjs +165 -157
- package/package.json +3 -3
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
"use strict";/**
|
|
3
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
3
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.15
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
7
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Qezk4QHcfFat3DqW.cjs");exports.AnimatedBouncingEllipsisIcon=o.AnimatedBouncingEllipsisIcon,exports.AnimatedCircleIcon=o.AnimatedCircleIcon,exports.AnimatedClockIcon=o.AnimatedClockIcon,exports.AnimatedFadingEllipsisIcon=o.AnimatedFadingEllipsisIcon,exports.AnimatedOrbitIcon=o.AnimatedOrbitIcon,exports.AnimatedTraversingEllipsisIcon=o.AnimatedTraversingEllipsisIcon,exports.ArrowDownIcon=o.ArrowDownIcon,exports.ArrowRightIcon=o.ArrowRightIcon,exports.ChipStrip=o.ChipStrip,exports.ClosingReason=o.ClosingReason,exports.CommandButton=o.CommandButton,exports.CommandPopupButton=o.CommandPopupButton,exports.CommandToolbar=o.CommandToolbar,exports.CommandTooltip=o.CommandTooltip,exports.ContextMenu=o.ContextMenu,exports.ErrorPanel=o.ErrorPanel,exports.ExhibitDivider=o.ExhibitDivider,exports.ExhibitFloatPanel=o.ExhibitFloatPanel,exports.ExhibitIconButton=o.ExhibitIconButton,exports.ExhibitMenuHeader=o.ExhibitMenuHeader,exports.ExhibitMenuItem=o.ExhibitMenuItem,exports.ExhibitOptionButton=o.ExhibitOptionButton,exports.ExhibitPopper=o.ExhibitPopper,exports.ExhibitPopupIconButton=o.ExhibitPopupIconButton,exports.ExhibitPopupMenuItem=o.ExhibitPopupMenuItem,exports.ExhibitTooltip=o.ExhibitTooltip,exports.InputCommandButton=o.InputCommandButton,exports.InternalWindow=o.InternalWindow,exports.LabelIcon=o.LabelIcon,exports.LoadingPanel=o.LoadingPanel,exports.ModalProvider=o.ModalProvider,exports.NestingPopupButton=o.NestingPopupButton,exports.OptionsDialog=o.OptionsDialog,exports.PopupAutoFocus=o.PopupAutoFocus,exports.PopupButtonType=o.PopupButtonType,exports.SelectedIcon=o.SelectedIcon,exports.SimpleCommandPopupButton=o.SimpleCommandPopupButton,exports.SimpleTooltip=o.SimpleTooltip,exports.StackTrace=o.StackTrace,exports.ThemeMode=o.ThemeMode,exports.ThemedIcon=o.ThemedIcon,exports.createDownArrow=o.createDownArrow,exports.createExhibitTheme=o.createExhibitTheme,exports.createScrollButton=o.createScrollButton,exports.createScrollEdgeButton=o.createScrollEdgeButton,exports.createScrollEndButton=o.createScrollEndButton,exports.createScrollStartButton=o.createScrollStartButton,exports.createStrokeShadowFilter=o.createStrokeShadowFilter,exports.defaultCreatePopupPanel=o.defaultCreatePopupPanel,exports.elevateColor=o.elevateColor,exports.getModalConfig=o.getModalConfig,exports.getScrollbarCssVariables=o.getScrollbarCssVariables,exports.hexToRGB=o.hexToRGB,exports.overlayAlpha=o.overlayAlpha,exports.scrollbarTheming=o.scrollbarTheming,exports.setModalConfig=o.setModalConfig,exports.strokeShadowFilter=o.strokeShadowFilter,exports.toShortcutElements=o.toShortcutElements,exports.useFloatStack=o.useFloatStack,exports.useInputDialog=o.useInputDialog,exports.useLazyWindow=o.useLazyWindow,exports.useModal=o.useModal,exports.useOptionsDialog=o.useOptionsDialog,exports.useResolvedThemeMode=o.useResolvedThemeMode,exports.wrapErrorAsComponent=o.wrapErrorAsComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.15
|
|
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.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("react"),O=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("react"),O=require("./Qezk4QHcfFat3DqW.cjs"),s=require("@mui/material/styles"),p=require("@mui/material"),n=require("@sheetxl/utils-react"),L=["Input"],N=o.memo(o.forwardRef((b,k)=>{const{initialValue:T="",onOption:v,onValidateOption:c,onInput:d,onValidateInput:r,onDone:g,inputProps:f,inputLabel:w,inputType:F,inputPlaceHolder:S,options:h=L,autoFocusSel:q=".autoFocus",cancelOption:m,defaultOption:x=h?.[0],...R}=b,[j,I]=o.useState(!1),[a,P]=o.useState(T),[D,V]=o.useState(""),[B,M]=o.useState(!0),l=n.useCallbackRef(async(e,t)=>{if(!r)return!0;const u=await r?.(e,t);V(u?.message??"");const C=u?.valid??!0;return M(C),C},[r]),y=n.useCallbackRef(async e=>{d?.(a,e)},[a,d,g,v,m,x]),A=n.useCallbackRef(async e=>{e.keyCode===n.KeyCodes.Enter&&await l?.(a,null)},[a,y]),H=n.useCallbackRef(e=>{P(e.target.value),l?.(e.target.value,null)},[c]),K=n.useCallbackRef(async e=>{let t=await l(a,e);try{t!==!1&&(t=await l(a,e))}catch{}return t??!0},[a,c]);return i.jsx(O.OptionsDialog,{options:h,onDone:g,onOption:(e,t)=>{t||y(e)},onValidateOption:K,cancelOption:m,defaultOption:x,autoFocusSel:q,ref:k,...R,children:i.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:i.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:i.jsx(p.TextField,{onFocus:e=>{j||e.target?.select(),I(!0)},type:F,label:w,helperText:D||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:B?void 0:"error.main"}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:S,spellCheck:!1,autoComplete:"off",...f,className:O.clsx("autoFocus",f?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${s.alpha("#fff",s.getOverlayAlpha(5))}, ${s.alpha("#fff",s.getOverlayAlpha(5))})`}}},value:a,onChange:H,onKeyDown:A,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=N;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as j, forwardRef as z, useState as s } from "react";
|
|
3
|
-
import { O as E, c as R } from "./
|
|
3
|
+
import { O as E, c as R } from "./xtjLllXmO7nvmTuk.mjs";
|
|
4
4
|
import { alpha as y, getOverlayAlpha as O } from "@mui/material/styles";
|
|
5
5
|
import { Box as A, FormControl as W, TextField as q } from "@mui/material";
|
|
6
6
|
import { useCallbackRef as n, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
8
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.15
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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 s, z as t, y as e, B as n, D as i, F as l, A as r, n as p, J as u, $ as c, a5 as d, a7 as m, aa as h, a8 as E, K as b, H as I, x as C, a4 as g, E as S, b as B, a as x, f as P, Z as T, d as A, e as w, g as M, a6 as v, R as D, a9 as F, L as k, P as f, N as O, O as R, _ as y, a0 as L, S as W, ab as z, M as G, I as H, p as N, T as V, a2 as j, k as q, r as J, q as K, w as Q, v as U, m as X, a1 as Y, j as Z, W as _, h as $, i as aa, o as oa, s as sa, X as ta, l as ea, t as na, a3 as ia, V as la, Q as ra, Y as pa, U as ua, u as ca, G as da } from "./
|
|
2
|
+
import { C as s, z as t, y as e, B as n, D as i, F as l, A as r, n as p, J as u, $ as c, a5 as d, a7 as m, aa as h, a8 as E, K as b, H as I, x as C, a4 as g, E as S, b as B, a as x, f as P, Z as T, d as A, e as w, g as M, a6 as v, R as D, a9 as F, L as k, P as f, N as O, O as R, _ as y, a0 as L, S as W, ab as z, M as G, I as H, p as N, T as V, a2 as j, k as q, r as J, q as K, w as Q, v as U, m as X, a1 as Y, j as Z, W as _, h as $, i as aa, o as oa, s as sa, X as ta, l as ea, t as na, a3 as ia, V as la, Q as ra, Y as pa, U as ua, u as ca, G as da } from "./xtjLllXmO7nvmTuk.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
4
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.15
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|