@sheetxl/utils-mui 0.7.22 → 0.7.23-beta.2

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.
Files changed (115) hide show
  1. package/browser/cjs/CMDyOaq_TZmhbR3R.cjs +1 -0
  2. package/browser/cjs/GeHQP4M_1ydWv9v4.cjs +3 -0
  3. package/browser/cjs/index.cjs +4 -7
  4. package/browser/esm/CNIMtMKGuDo4psnZ.mjs +96 -0
  5. package/browser/esm/D0mXROj4on9piZY1.mjs +2544 -0
  6. package/browser/esm/index.mjs +2688 -72
  7. package/licenses/dependencies.txt +60 -198
  8. package/node/esm/C2bOUbQGN6BujoBn.mjs +97 -0
  9. package/node/esm/index.mjs +3354 -981
  10. package/package.json +12 -14
  11. package/resources/contents.json +18 -0
  12. package/resources/locales/contents.json +16 -0
  13. package/resources/locales/de/ui.msg.json +22 -0
  14. package/resources/locales/en/ui.msg.json +22 -0
  15. package/types/index.d.ts +2 -1068
  16. package/types/src/button/ButtonContent.d.ts +17 -0
  17. package/types/src/button/ButtonContent.d.ts.map +1 -0
  18. package/types/src/button/ExhibitIconButton.d.ts +31 -0
  19. package/types/src/button/ExhibitIconButton.d.ts.map +1 -0
  20. package/types/src/button/ExhibitMenuHeader.d.ts +15 -0
  21. package/types/src/button/ExhibitMenuHeader.d.ts.map +1 -0
  22. package/types/src/button/ExhibitMenuItem.d.ts +24 -0
  23. package/types/src/button/ExhibitMenuItem.d.ts.map +1 -0
  24. package/types/src/button/ExhibitOptionButton.d.ts +16 -0
  25. package/types/src/button/ExhibitOptionButton.d.ts.map +1 -0
  26. package/types/src/button/ExhibitPopupIconButton.d.ts +18 -0
  27. package/types/src/button/ExhibitPopupIconButton.d.ts.map +1 -0
  28. package/types/src/button/ExhibitPopupMenuItem.d.ts +8 -0
  29. package/types/src/button/ExhibitPopupMenuItem.d.ts.map +1 -0
  30. package/types/src/button/ExhibitTooltip.d.ts +26 -0
  31. package/types/src/button/ExhibitTooltip.d.ts.map +1 -0
  32. package/types/src/button/OverflowPalette.d.ts +29 -0
  33. package/types/src/button/OverflowPalette.d.ts.map +1 -0
  34. package/types/src/button/SelectedIcon.d.ts +18 -0
  35. package/types/src/button/SelectedIcon.d.ts.map +1 -0
  36. package/types/src/button/index.d.ts +11 -0
  37. package/types/src/button/index.d.ts.map +1 -0
  38. package/types/src/command/CommandButton.d.ts +4 -0
  39. package/types/src/command/CommandButton.d.ts.map +1 -0
  40. package/types/src/command/CommandGroup.d.ts +71 -0
  41. package/types/src/command/CommandGroup.d.ts.map +1 -0
  42. package/types/src/command/CommandPopupButton.d.ts +34 -0
  43. package/types/src/command/CommandPopupButton.d.ts.map +1 -0
  44. package/types/src/command/CommandToolbar.d.ts +51 -0
  45. package/types/src/command/CommandToolbar.d.ts.map +1 -0
  46. package/types/src/command/CommandTooltip.d.ts +22 -0
  47. package/types/src/command/CommandTooltip.d.ts.map +1 -0
  48. package/types/src/command/InputCommandButton.d.ts +20 -0
  49. package/types/src/command/InputCommandButton.d.ts.map +1 -0
  50. package/types/src/command/ToggleGroupButton.d.ts +33 -0
  51. package/types/src/command/ToggleGroupButton.d.ts.map +1 -0
  52. package/types/src/command/index.d.ts +8 -0
  53. package/types/src/command/index.d.ts.map +1 -0
  54. package/types/src/command/useManagedRipple.d.ts +23 -0
  55. package/types/src/command/useManagedRipple.d.ts.map +1 -0
  56. package/types/src/components/AnimatedLoadingPanel.d.ts +45 -0
  57. package/types/src/components/AnimatedLoadingPanel.d.ts.map +1 -0
  58. package/types/src/components/ChipStrip.d.ts +9 -0
  59. package/types/src/components/ChipStrip.d.ts.map +1 -0
  60. package/types/src/components/ContextMenu.d.ts +32 -0
  61. package/types/src/components/ContextMenu.d.ts.map +1 -0
  62. package/types/src/components/ExhibitDivider.d.ts +6 -0
  63. package/types/src/components/ExhibitDivider.d.ts.map +1 -0
  64. package/types/src/components/NestingPopupButton.d.ts +11 -0
  65. package/types/src/components/NestingPopupButton.d.ts.map +1 -0
  66. package/types/src/components/ScrollButtons.d.ts +7 -0
  67. package/types/src/components/ScrollButtons.d.ts.map +1 -0
  68. package/types/src/components/SimpleTooltip.d.ts +15 -0
  69. package/types/src/components/SimpleTooltip.d.ts.map +1 -0
  70. package/types/src/components/StackTrace.d.ts +20 -0
  71. package/types/src/components/StackTrace.d.ts.map +1 -0
  72. package/types/src/components/StackTraceErrorPanel.d.ts +28 -0
  73. package/types/src/components/StackTraceErrorPanel.d.ts.map +1 -0
  74. package/types/src/components/index.d.ts +10 -0
  75. package/types/src/components/index.d.ts.map +1 -0
  76. package/types/src/dialog/InputDialog.d.ts +8 -0
  77. package/types/src/dialog/InputDialog.d.ts.map +1 -0
  78. package/types/src/dialog/InternalWindow.d.ts +142 -0
  79. package/types/src/dialog/InternalWindow.d.ts.map +1 -0
  80. package/types/src/dialog/OptionsDialog.d.ts +19 -0
  81. package/types/src/dialog/OptionsDialog.d.ts.map +1 -0
  82. package/types/src/dialog/index.d.ts +10 -0
  83. package/types/src/dialog/index.d.ts.map +1 -0
  84. package/types/src/dialog/useInputDialog.d.ts +6 -0
  85. package/types/src/dialog/useInputDialog.d.ts.map +1 -0
  86. package/types/src/dialog/useLazyWindow.d.ts +14 -0
  87. package/types/src/dialog/useLazyWindow.d.ts.map +1 -0
  88. package/types/src/dialog/useOptionsDialog.d.ts +8 -0
  89. package/types/src/dialog/useOptionsDialog.d.ts.map +1 -0
  90. package/types/src/float/ExhibitFloatPanel.d.ts +22 -0
  91. package/types/src/float/ExhibitFloatPanel.d.ts.map +1 -0
  92. package/types/src/float/ExhibitFloatProvider.d.ts +17 -0
  93. package/types/src/float/ExhibitFloatProvider.d.ts.map +1 -0
  94. package/types/src/float/ExhibitPopup.d.ts +97 -0
  95. package/types/src/float/ExhibitPopup.d.ts.map +1 -0
  96. package/types/src/float/index.d.ts +4 -0
  97. package/types/src/float/index.d.ts.map +1 -0
  98. package/types/src/index.d.ts +8 -0
  99. package/types/src/index.d.ts.map +1 -0
  100. package/types/src/locales/index.d.ts +3 -0
  101. package/types/src/locales/index.d.ts.map +1 -0
  102. package/types/src/theme/ExhibitTheme.d.ts +71 -0
  103. package/types/src/theme/ExhibitTheme.d.ts.map +1 -0
  104. package/types/src/theme/IconSupport.d.ts +11 -0
  105. package/types/src/theme/IconSupport.d.ts.map +1 -0
  106. package/types/src/theme/ScrollbarTheming.d.ts +12 -0
  107. package/types/src/theme/ScrollbarTheming.d.ts.map +1 -0
  108. package/types/src/theme/index.d.ts +4 -0
  109. package/types/src/theme/index.d.ts.map +1 -0
  110. package/browser/cjs/D1lQsAtkthIA1gmc.cjs +0 -11
  111. package/browser/cjs/ucpR4Be9i5BxBYwW.cjs +0 -6
  112. package/browser/esm/BuNquM-zy3ad2Jy2.mjs +0 -2891
  113. package/browser/esm/NQ1Ofksqlh69CQ9k.mjs +0 -44
  114. package/node/assets/style.css +0 -1
  115. package/node/esm/B5nodPb2Wtops82M.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 "./BuNquM-zy3ad2Jy2.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.22
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
- };
@@ -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.22
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
- };