@sheetxl/utils-mui 0.7.21 → 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 -1069
  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/Ai0ovAjYzGfMAB7q.cjs +0 -6
  111. package/browser/cjs/L-4HMtCOn7QHkDi2.cjs +0 -11
  112. package/browser/esm/BqMhjTIvQt09x92t.mjs +0 -2891
  113. package/browser/esm/CMpdAXnJ5EbLrOu2.mjs +0 -44
  114. package/node/assets/style.css +0 -1
  115. package/node/esm/ojE1YgJ2zWQ8Q_AP.mjs +0 -45
@@ -0,0 +1,97 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps, TooltipProps, IconButtonProps } from '@mui/material';
3
+ import { FloatReference, FloatPopupPanelProps } from '@sheetxl/utils-react';
4
+ import { ExhibitFloatPanelProps } from './ExhibitFloatPanel';
5
+ /**
6
+ * The {@link FloatPopupPanelProps} content fields on the MUI {@link BoxProps}
7
+ * surface (so the default MUI panel can read `sx`/`className`/etc.). We drop the
8
+ * neutral HTML base from `FloatPopupPanelProps` (BoxProps supplies the element
9
+ * props, with incompatible types e.g. `color`) and keep just its content fields.
10
+ */
11
+ export type ExhibitPopupPanelProps = Omit<FloatPopupPanelProps, keyof React.HTMLAttributes<HTMLDivElement>> & BoxProps;
12
+ export interface ExhibitQuickButtonProps extends IconButtonProps {
13
+ /**
14
+ * Tooltip title. Zero-length titles string are never displayed.
15
+ */
16
+ tooltip?: NonNullable<React.ReactNode>;
17
+ /**
18
+ * Allows for custom tooltip creation
19
+ */
20
+ createTooltip?: (props: TooltipProps, disabled: boolean) => React.JSX.Element;
21
+ }
22
+ export declare const PopupAutoFocus: {
23
+ readonly Popup: "popup";
24
+ readonly Anchor: "anchor";
25
+ };
26
+ export type PopupAutoFocus = typeof PopupAutoFocus[keyof typeof PopupAutoFocus];
27
+ export declare const ClosingReason: {
28
+ readonly ByPopup: "popupDone";
29
+ readonly Cancel: "popupCancel";
30
+ readonly ClickAway: "clickAway";
31
+ };
32
+ export type ClosingReason = typeof ClosingReason[keyof typeof ClosingReason];
33
+ export declare const PopupButtonType: {
34
+ /**
35
+ * Suitable for toolbars. Click to open, click to close, generally disabled as icon
36
+ */
37
+ readonly Toolbar: "toolbar";
38
+ /**
39
+ * Suitable for menus. HoverIn to open, hover leave to close, generally disabled as icon and text
40
+ */
41
+ readonly Menuitem: "menuitem";
42
+ };
43
+ export type PopupButtonType = typeof PopupButtonType[keyof typeof PopupButtonType];
44
+ /**
45
+ * TODO - allow popper and popup customizations similar to @mui/tooltip
46
+ */
47
+ export interface ExhibitPopupButtonProps extends BoxProps {
48
+ icon?: React.ReactNode | (() => React.ReactNode);
49
+ label?: React.ReactNode;
50
+ /**
51
+ * Render the `label` as visible button content (alongside any icon / split-toggle checkmark) rather
52
+ * than as tooltip-only. Toolbar (icon) buttons are icon-only by default. Menu items always show the
53
+ * label regardless.
54
+ * @defaultValue false
55
+ */
56
+ showLabel?: boolean;
57
+ /**
58
+ * Render as selected,
59
+ */
60
+ selected?: boolean;
61
+ parentFloat?: FloatReference;
62
+ createPopupPanel?: (props: ExhibitPopupPanelProps) => React.ReactElement<any>;
63
+ onPopupOpen?: () => void;
64
+ onPopupClose?: () => void;
65
+ propsPopup?: Partial<ExhibitFloatPanelProps>;
66
+ /**
67
+ * Tooltip title. Zero-length titles string are never displayed.
68
+ */
69
+ tooltip?: NonNullable<React.ReactNode>;
70
+ /**
71
+ * Allows for custom tooltip creation
72
+ */
73
+ createTooltip?: (props: TooltipProps, disabled: boolean) => React.JSX.Element;
74
+ /**
75
+ * If this set then the popup becomes a split button.
76
+ */
77
+ onQuickClick?: (e: React.MouseEvent<Element>) => void;
78
+ propsQuickButton?: ExhibitQuickButtonProps;
79
+ renderQuickButton?: (props: ExhibitQuickButtonProps) => React.ReactNode;
80
+ disabled?: boolean;
81
+ /**
82
+ * If the icon button is a primary icon button.
83
+ * This may change the color of the text and icon.
84
+ * @defaultValue false
85
+ */
86
+ primary?: boolean;
87
+ /**
88
+ * A ripple surface rendered inside the executing (quick) button. Supplied by `CommandPopupButton`
89
+ * via `useManagedRipple` — an always-mounted `TouchRipple` that can flash on any command dispatch
90
+ * (MUI's built-in ripple is lazy-mounted and can't fire for remote executes). When set, the quick
91
+ * button disables its own ripple and hosts this one instead.
92
+ */
93
+ ripple?: React.ReactNode;
94
+ }
95
+ export declare const defaultCreatePopupPanel: (props: ExhibitPopupPanelProps) => React.ReactElement<any>;
96
+ export declare const createDownArrow: (isSplit: boolean, dense: boolean, rotate: boolean) => React.JSX.Element;
97
+ //# sourceMappingURL=ExhibitPopup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExhibitPopup.d.ts","sourceRoot":"","sources":["../../../../src/float/ExhibitPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAO,KAAK,QAAQ,EAAc,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAMrD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAChC,IAAI,CAAC,oBAAoB,EAAE,MAAM,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,GAAG,QAAQ,CAAC;AAEpF,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D;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CAAC,CAAC;IAEvC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAE9E;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAEtD,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,KAAK,CAAC,SAAS,CAAC;IAExE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;MAIE;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,GAAI,OAAO,sBAAsB,KAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CA+B7F,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,EAAE,OAAO,OAAO,EAAE,QAAQ,OAAO,sBAoBhF,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './ExhibitPopup';
2
+ export * from './ExhibitFloatPanel';
3
+ export * from './ExhibitFloatProvider';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/float/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './button';
2
+ export * from './theme';
3
+ export * from './components';
4
+ export * from './dialog';
5
+ export * from './float';
6
+ export * from './command';
7
+ export * from './locales';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAEzB,cAAc,SAAS,CAAC;AAExB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAEzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Register this package's locale resources (bundled `en` floor + all fetched locales). Idempotent. */
2
+ export declare function registerUtilsMuiLocales(): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/locales/index.ts"],"names":[],"mappings":"AAoBA,uGAAuG;AACvG,wBAAgB,uBAAuB,IAAI,IAAI,CAK9C"}
@@ -0,0 +1,71 @@
1
+ import { Theme, ThemeOptions, Components, ComponentsProps, ComponentsOverrides, ComponentsVariants, ComponentsPropsList, Interpolation } from '@mui/material';
2
+ export declare const hexToRGB: (hex: string, alpha?: number | null) => string;
3
+ export declare const elevateColor: (color: string, coefficient?: number, mode?: "light" | "dark") => string;
4
+ export declare const overlayAlpha: (elevation: number) => number;
5
+ /**
6
+ * The raised-surface wash — the ONE `backgroundImage` chrome surfaces (toolbar palette, formula
7
+ * bar, name box, border swatches, script panels) use to sit "above" the base background in dark
8
+ * mode; light mode is flat (the borders carry the structure — a white-on-white wash would be
9
+ * invisible anyway). Sized to Material elevation ~2.
10
+ *
11
+ * Resolved through the `--sxl-surface-raised` CSS variable so a host embedding Studio in a FLAT
12
+ * design language (the VS Code extension) can kill the wash everywhere at once: set
13
+ * `--sxl-surface-raised: none` on the document root — portaled popups inherit it too. Without the
14
+ * variable the mode-appropriate fallback applies.
15
+ *
16
+ * Text inputs deliberately do NOT take this wash — fields keep the stock MUI background so custom
17
+ * fields (`InputField`/`FormulaField`) and plain `TextField`s always match side by side.
18
+ *
19
+ * Usage: `sx={{ backgroundImage: raisedSurface }}` (sx resolves the theme callback).
20
+ */
21
+ export declare const raisedSurfaceAt: (elevation: number) => (theme: Theme) => string;
22
+ export declare const raisedSurface: (theme: Theme) => string;
23
+ /**
24
+ * The same wash at the elevation MUI gives a **popup** (`elevation={8}`).
25
+ *
26
+ * @remarks
27
+ * Rarely needed directly: the `MuiPaper` root override in {@link createExhibitTheme} already routes every
28
+ * Paper's per-elevation wash through `--sxl-surface-raised`. Use this only for a surface that paints its
29
+ * own `background-image` and still wants to match a popup.
30
+ */
31
+ export declare const elevatedSurface: (theme: Theme) => string;
32
+ export interface SmartInputFieldProps {
33
+ automatic?: any;
34
+ }
35
+ export interface ExhibitComponentPropsList extends ComponentsPropsList {
36
+ SmartInputField?: SmartInputFieldProps;
37
+ }
38
+ export interface ExhibitComponentProps extends ComponentsProps {
39
+ SmartInputField: SmartInputFieldProps;
40
+ }
41
+ export interface ExhibitComponentsOverrides<Theme = unknown> extends ComponentsOverrides<Theme> {
42
+ SmartInputField?: any;
43
+ }
44
+ export interface ExhibitComponentsVariants extends ComponentsVariants {
45
+ SmartInputField?: Array<{
46
+ props: Partial<ExhibitComponentPropsList['SmartInputField']>;
47
+ style: Interpolation<{
48
+ theme: Theme;
49
+ }>;
50
+ }>;
51
+ }
52
+ export interface ExhibitComponents extends Components<Omit<Theme, 'components'>> {
53
+ SmartInputField?: {
54
+ defaultProps?: ExhibitComponentProps['SmartInputField'];
55
+ styleOverrides?: ExhibitComponentsOverrides<Theme>['SmartInputField'];
56
+ variants?: ExhibitComponentsVariants['SmartInputField'];
57
+ };
58
+ }
59
+ export interface ExhibitThemeOptions extends ThemeOptions {
60
+ components?: ExhibitComponents;
61
+ }
62
+ /**
63
+ *
64
+ * This creates a Theme that has Exhibit Widget extensions.
65
+ * It is based on the MUI createTheme() function.
66
+ *
67
+ * @see
68
+ * https://mui.com/customization/how-to-customize/#state-classes
69
+ */
70
+ export declare const createExhibitTheme: (isDark: boolean, customizations?: ExhibitThemeOptions) => Theme;
71
+ //# sourceMappingURL=ExhibitTheme.d.ts.map
@@ -0,0 +1 @@
1
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,EAAE,OAAO,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAC7D,KAAK,EAAE,aAAa,CAAC;YAAE,KAAK,EAAE,KAAK,CAAA;SAAE,CAAC,CAAC;KACxC,CAAC,CAAC;CACJ;AACD,MAAM,WAAW,iBAAkB,SAAQ,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IAC9E,eAAe,CAAC,EAAE;QAChB,YAAY,CAAC,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,cAAc,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC;QACtE,QAAQ,CAAC,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;KACzD,CAAC;CACH;AACD,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC;AAED;;;;;;;GAOG;AAEH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,OAAO,EAAE,iBAAiB,mBAAmB,KAAG,KAqP1F,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { DynamicIconProps } from '@sheetxl/utils-react';
2
+ import { Theme } from '@mui/material';
3
+ /**
4
+ * Useful for contrasting colors
5
+ * @param theme - The theme
6
+ */
7
+ export declare const strokeShadowFilter: (theme: Theme) => string | undefined;
8
+ export declare const createStrokeShadowFilter: (shadowRadius?: number) => (theme: Theme) => string | undefined;
9
+ export declare const ArrowDownIcon: (props: DynamicIconProps) => import("react").JSX.Element;
10
+ export declare const ArrowRightIcon: (props: DynamicIconProps) => import("react").JSX.Element;
11
+ //# sourceMappingURL=IconSupport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconSupport.d.ts","sourceRoot":"","sources":["../../../../src/theme/IconSupport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,KAAK,uBAQ9C,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,eAAc,MAAQ,MACrD,OAAO,KAAK,uBAQrB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,gCAEpD,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,gBAAgB,gCAErD,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { Theme } from '@mui/material';
2
+ export interface ScrollbarThemingOptions {
3
+ track?: string;
4
+ thumb?: string;
5
+ button?: string;
6
+ active?: string;
7
+ corner?: string;
8
+ outline?: boolean;
9
+ }
10
+ export declare function getScrollbarCssVariables(theme: Theme, options?: ScrollbarThemingOptions): Record<string, string>;
11
+ export declare function scrollbarTheming(theme: Theme, options?: ScrollbarThemingOptions): Record<string, any>;
12
+ //# sourceMappingURL=ScrollbarTheming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollbarTheming.d.ts","sourceRoot":"","sources":["../../../../src/theme/ScrollbarTheming.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAO3C,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,uBAAuB,0BAmBvF;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,uBAAuB,uBAyE/E"}
@@ -0,0 +1,4 @@
1
+ export * from './ScrollbarTheming';
2
+ export * from './ExhibitTheme';
3
+ export * from './IconSupport';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AAEnC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,eAAe,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.21
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
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("./L-4HMtCOn7QHkDi2.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,propsInput:f,inputLabel:w,inputType:F,inputPlaceHolder:S,options:h=L,autoFocusSel:q=".autoFocus",cancelOption:m,defaultOption:x=h?.[0],...I}=b,[R,j]=o.useState(!1),[a,D]=o.useState(T),[P,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=>{D(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,...I,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=>{R||e.target?.select(),j(!0)},type:F,label:w,helperText:P||" ",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;