@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
package/types/index.d.ts CHANGED
@@ -1,1069 +1,2 @@
1
- import { Backdrop } from '@mui/material';
2
- import { BoxProps } from '@mui/material';
3
- import { CommandButtonOptions } from '@sheetxl/utils-react';
4
- import { CommandButtonProps } from '@sheetxl/utils-react';
5
- import { CommandButtonRefAttribute } from '@sheetxl/utils-react';
6
- import { CommandButtonType } from '@sheetxl/utils-react';
7
- import { Components } from '@mui/material/styles';
8
- import { ComponentsOverrides } from '@mui/material/styles';
9
- import { ComponentsProps } from '@mui/material/styles';
10
- import { ComponentsPropsList } from '@mui/material/styles';
11
- import { ComponentsVariants } from '@mui/material/styles';
12
- import { default as default_2 } from 'react';
13
- import { DialogProps } from '@mui/material';
14
- import { DialogSlots } from '@mui/material';
15
- import { DividerProps } from '@mui/material';
16
- import { DraggableEventHandler } from 'react-draggable';
17
- import { DynamicIconProps } from '@sheetxl/utils-react';
18
- import { ErrorPanelProps } from '@sheetxl/utils-react';
19
- import { ICommand } from '@sheetxl/utils-react';
20
- import { ICommandHook } from '@sheetxl/utils-react';
21
- import { ICommands } from '@sheetxl/utils-react';
22
- import { IconButtonProps } from '@mui/material';
23
- import { IKeyStroke } from '@sheetxl/utils-react';
24
- import { Instance } from '@popperjs/core';
25
- import { Interpolation } from '@mui/material/styles';
26
- import { JSX } from 'react/jsx-runtime';
27
- import { LoadingPanelProps } from '@sheetxl/utils-react';
28
- import { MenuItemProps } from '@mui/material';
29
- import { ModalProps } from '@mui/material';
30
- import { default as ModalProvider } from 'mui-modal-provider';
31
- import { PaperProps } from '@mui/material';
32
- import { Point } from '@sheetxl/utils';
33
- import { PopperProps } from '@mui/material';
34
- import { ScrollButtonProps } from '@sheetxl/utils-react';
35
- import { ShowInputOptions } from '@sheetxl/utils-react';
36
- import { ShowOptionsOptions } from '@sheetxl/utils-react';
37
- import { ShowWindowOptions } from '@sheetxl/utils-react';
38
- import { Size } from '@sheetxl/utils';
39
- import { SxProps } from '@mui/system';
40
- import { Theme } from '@mui/material/styles';
41
- import { Theme as Theme_2 } from '@mui/system';
42
- import { ThemeOptions } from '@mui/material/styles';
43
- import { ToolbarProps } from '@mui/material';
44
- import { TooltipProps } from '@mui/material';
45
- import { TransitionProps } from '@mui/material/transitions';
46
- import { TypographyProps } from '@mui/material';
47
-
48
- export declare const AnimatedBouncingEllipsisIcon: default_2.FC<AnimatedIconProps>;
49
-
50
- export declare const AnimatedCircleIcon: default_2.FC<AnimatedIconProps>;
51
-
52
- /**
53
- * These super animated icons are from https://codepen.io/nikhil8krishnan. MIT attribution. Thank you Nikhil Krishnan
54
- *
55
- * Note - Currently svg animations do not animate if the main thread is blocked.
56
- * https://codepen.io/mtf2000/pen/oNPwzap
57
- */
58
- export declare const AnimatedClockIcon: default_2.FC<AnimatedIconProps>;
59
-
60
- export declare const AnimatedFadingEllipsisIcon: default_2.FC<AnimatedIconProps>;
61
-
62
- export declare interface AnimatedIconProps extends BoxProps {
63
- speed?: number;
64
- size?: number;
65
- }
66
-
67
- export declare const AnimatedLoadingPanel: default_2.NamedExoticComponent<Omit<AnimatedLoadingPanelProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
68
-
69
- export declare interface AnimatedLoadingPanelProps extends LoadingPanelProps, Omit<BoxProps, 'label' | 'color' | 'ref'> {
70
- icon?: default_2.ReactNode;
71
- label?: string | default_2.ReactNode;
72
- /**
73
- * Wrap the icon and label in a paper panel.
74
- */
75
- panel?: boolean;
76
- }
77
-
78
- export declare const AnimatedOrbitIcon: default_2.FC<AnimatedIconProps>;
79
-
80
- /**
81
- * This is the only AnimatedIcon that works with a blocking ui.
82
- * Note - currently this has a hardcoded bounds of 61x13
83
- */
84
- export declare const AnimatedTraversingEllipsisIcon: default_2.FC<AnimatedTraversingEllipsisIconProps>;
85
-
86
- export declare interface AnimatedTraversingEllipsisIconProps extends BoxProps {
87
- speed?: number;
88
- size?: number;
89
- width?: number;
90
- height?: number;
91
- }
92
-
93
- export declare const ArrowDownIcon: (props: DynamicIconProps) => JSX.Element;
94
-
95
- export declare const ArrowRightIcon: (props: DynamicIconProps) => JSX.Element;
96
-
97
- export declare const ChipStrip: default_2.FC<ChipStripProps & {
98
- ref?: any;
99
- }>;
100
-
101
- export declare interface ChipStripProps extends BoxProps {
102
- chips: string | string[] | default_2.ReactNode | default_2.ReactNode[];
103
- }
104
-
105
- export declare const ClosingReason: {
106
- readonly ByPopup: "popupDone";
107
- readonly Cancel: "popupCancel";
108
- readonly ClickAway: "clickAway";
109
- };
110
-
111
- export declare type ClosingReason = typeof ClosingReason[keyof typeof ClosingReason];
112
-
113
- export declare const CommandButton: default_2.NamedExoticComponent<Omit<CommandButtonProps<any, any> & CommandButtonRefAttribute, "ref"> & default_2.RefAttributes<any>>;
114
-
115
- export declare const CommandPopupButton: default_2.FC<CommandPopupButtonProps & {
116
- ref?: any;
117
- }>;
118
-
119
- /**
120
- * Attach a command to a popup.
121
- * Note
122
- */
123
- export declare interface CommandPopupButtonProps<STATE = any, CONTEXT = any> extends Omit<ExhibitPopupIconButtonProps, "color" | "icon" | "label" | "createPopupPanel"> {
124
- quickCommand?: string;
125
- commands: ICommands.IGroup;
126
- icon?: default_2.ReactNode | ((command: ICommand) => default_2.ReactNode) | string;
127
- label?: default_2.ReactNode | ((command: ICommand) => default_2.ReactNode);
128
- /**
129
- * Allow for listeners against a specific buttons execute rather than the command.
130
- * Useful when knowing the specific button that executed a command is required.
131
- * (For example when closing menus or restoring focus)
132
- */
133
- commandHook?: ICommandHook<any, any>;
134
- disableHover?: boolean;
135
- createPopupPanel?: (props: ExhibitPopupPanelProps, commands: ICommands.IGroup) => default_2.ReactNode;
136
- /**
137
- * Styling
138
- * @defaultValue CommandButtonType.Toolbar
139
- */
140
- variant?: CommandButtonType;
141
- /**
142
- * Optional state for this specific command button.
143
- * @defaultValue to undefined
144
- */
145
- commandState?: STATE;
146
- context?: CONTEXT;
147
- scope?: string;
148
- }
149
-
150
- export declare type CommandPopupButtonRefAttribute = {
151
- ref?: default_2.Ref<HTMLDivElement>;
152
- };
153
-
154
- export declare const CommandToolbar: default_2.NamedExoticComponent<Omit<CommandToolbarProps, "ref"> & default_2.RefAttributes<ICommandToolbarElement>>;
155
-
156
- export declare interface CommandToolbarAttributes {
157
- }
158
-
159
- export declare interface CommandToolbarButtonProps {
160
- commands: ICommands.IGroup;
161
- propsCommandButton: CommandButtonOptions;
162
- propsCommandPopup: CommandToolbarPopupButtonProps;
163
- }
164
-
165
- export declare interface CommandToolbarPopupButtonProps extends CommandButtonOptions {
166
- parentFloat: FloatReference;
167
- commands: ICommands.IGroup;
168
- }
169
-
170
- export declare interface CommandToolbarProps extends ToolbarProps {
171
- commands: ICommands.IGroup;
172
- propsCommandButton?: CommandButtonOptions;
173
- parentFloat?: FloatReference;
174
- renderToolbarPalette?: (props: CommandToolbarButtonProps) => default_2.ReactNode;
175
- ref?: default_2.Ref<HTMLDivElement>;
176
- }
177
-
178
- export declare const CommandTooltip: default_2.FC<CommandTooltipProps & {
179
- ref?: any;
180
- }>;
181
-
182
- export declare interface CommandTooltipProps extends Omit<TooltipProps, "title"> {
183
- command: ICommand<any, any>;
184
- /**
185
- * The shortcut to display.
186
- * @remarks
187
- * This is display only and doesn't actually track the shortcut.
188
- * Override the display for the shortcut on the command (if available).
189
- */
190
- shortcut?: IKeyStroke | IKeyStroke[];
191
- /**
192
- * Prevent tooltip from showing
193
- */
194
- disabled?: boolean;
195
- }
196
-
197
- /**
198
- * Wraps a component to give it a context menu.
199
- */
200
- export declare const ContextMenu: default_2.NamedExoticComponent<Omit<ContextMenuProps, "ref"> & default_2.RefAttributes<ContextMenuElement>>;
201
-
202
- export declare interface ContextMenuAttributes {
203
- isContextMenu: () => true;
204
- }
205
-
206
- export declare interface ContextMenuElement extends HTMLDivElement, ContextMenuAttributes {
207
- }
208
-
209
- export declare interface ContextMenuProps extends default_2.HTMLAttributes<HTMLElement> {
210
- /**
211
- * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
212
- */
213
- sx?: SxProps<Theme_2>;
214
- children: default_2.ReactElement<any, string | default_2.JSXElementConstructor<any>>;
215
- parentFloat?: FloatReference;
216
- createPopupPanel?: (props: ExhibitPopupPanelProps) => default_2.ReactElement<any>;
217
- /**
218
- * Passed to the underlying popup panel
219
- */
220
- propsPopper?: Partial<ExhibitPopperProps>;
221
- /**
222
- * Use for float reference
223
- */
224
- label?: string;
225
- ref?: default_2.Ref<HTMLDivElement>;
226
- }
227
-
228
- export declare const createDownArrow: (isSplit: boolean, dense: boolean, rotate: boolean) => JSX.Element;
229
-
230
- /**
231
- *
232
- * This creates a Theme that has Exhibit Widget extensions.
233
- * It is based on the MUI createTheme() function.
234
- *
235
- * @see
236
- * https://mui.com/customization/how-to-customize/#state-classes
237
- */
238
- export declare const createExhibitTheme: (isDark: boolean, customizations?: ExhibitThemeOptions) => Theme;
239
-
240
- export declare const createScrollButton: (props: ScrollButtonProps, icon: default_2.ReactElement, title: string, description: string) => JSX.Element;
241
-
242
- export declare const createStrokeShadowFilter: (shadowRadius?: number) => (theme: Theme) => string;
243
-
244
- export declare const defaultCreatePopupPanel: (props: ExhibitPopupPanelProps) => default_2.ReactElement<any>;
245
-
246
- export declare interface DraggablePaperProps extends PaperProps {
247
- onDragStop?: DraggableEventHandler;
248
- PaperComponent?: default_2.JSXElementConstructor<PaperProps>;
249
- titleSize?: Size;
250
- rootSize?: Size;
251
- handleSel?: string;
252
- rootSel?: string;
253
- defaultPosition?: Point;
254
- }
255
-
256
- export declare const elevateColor: (color: string, coefficient?: number, mode?: "light" | "dark") => string;
257
-
258
- export declare interface ExhibitComponentProps extends ComponentsProps {
259
- SmartInputField: SmartInputFieldProps;
260
- }
261
-
262
- export declare interface ExhibitComponentPropsList extends ComponentsPropsList {
263
- SmartInputField?: SmartInputFieldProps;
264
- }
265
-
266
- export declare interface ExhibitComponents extends Components<Omit<Theme, 'components'>> {
267
- SmartInputField?: {
268
- defaultProps?: ExhibitComponentProps['SmartInputField'];
269
- styleOverrides?: ExhibitComponentsOverrides<Theme>['SmartInputField'];
270
- variants?: ExhibitComponentsVariants['SmartInputField'];
271
- };
272
- }
273
-
274
- export declare interface ExhibitComponentsOverrides<Theme = unknown> extends ComponentsOverrides<Theme> {
275
- SmartInputField?: any;
276
- }
277
-
278
- export declare interface ExhibitComponentsVariants extends ComponentsVariants {
279
- SmartInputField?: Array<{
280
- props: Partial<ExhibitComponentPropsList['SmartInputField']>;
281
- style: Interpolation<{
282
- theme: Theme;
283
- }>;
284
- }>;
285
- }
286
-
287
- export declare const ExhibitDivider: default_2.NamedExoticComponent<Omit<ExhibitDividerProps, "ref"> & default_2.RefAttributes<HTMLHRElement>>;
288
-
289
- export declare interface ExhibitDividerProps extends DividerProps {
290
- }
291
-
292
- export declare const ExhibitFloatPanel: default_2.NamedExoticComponent<Omit<ExhibitFloatPanelProps, "ref"> & default_2.RefAttributes<any>>;
293
-
294
- /**
295
- * TODO - review the usefulness of this class
296
- * Wraps a popper and a theme paper
297
- *
298
- * Features.
299
- * Callback to popupPanel closing
300
- *
301
- */
302
- export declare interface ExhibitFloatPanelProps extends BoxProps {
303
- open: boolean;
304
- floatReference?: FloatReference;
305
- anchorEl?: any;
306
- anchorPosition?: ExhibitPopperPosition;
307
- label: string;
308
- createPopupPanel?: (props: ExhibitPopupPanelProps) => default_2.ReactElement<any>;
309
- propsPopper?: Partial<ExhibitPopperProps>;
310
- onClosing?: () => void;
311
- onClose?: () => void;
312
- onMount?: (element: HTMLDivElement, instance: any) => void;
313
- onOpening?: () => void;
314
- onOpen?: () => void;
315
- /**
316
- * Reference to the underlying element
317
- */
318
- ref?: default_2.Ref<any>;
319
- }
320
-
321
- /**
322
- * This is a simple styled icon button.
323
- */
324
- export declare const ExhibitIconButton: default_2.FC<ExhibitIconButtonProps & {
325
- ref?: any;
326
- }>;
327
-
328
- export declare interface ExhibitIconButtonProps extends IconButtonProps {
329
- dense?: boolean;
330
- outlined?: boolean;
331
- icon?: default_2.ReactNode | (() => default_2.ReactNode);
332
- disableHover?: boolean;
333
- /**
334
- * If the icon button is a primary icon button.
335
- * This may change the color of the text and icon.
336
- * @defaultValue false
337
- */
338
- primary?: boolean;
339
- /**
340
- * If set to a `boolean` the button will act like a toggle.
341
- */
342
- selected?: boolean | null;
343
- /**
344
- * Tooltip properties. If this is specified then the tooltips are used.
345
- * Do not provide a child as this component will be the child.
346
- */
347
- propsTooltip?: Omit<ExhibitTooltipProps, 'children'>;
348
- parentFloat?: FloatReference;
349
- }
350
-
351
- export declare const ExhibitMenuHeader: default_2.FC<ExhibitMenuHeaderProps & {
352
- ref?: any;
353
- }>;
354
-
355
- export declare interface ExhibitMenuHeaderProps extends TypographyProps {
356
- /**
357
- * If the icon button is a secondary text button.
358
- * Changes the color of the text and icon.
359
- * @defaultValue false
360
- */
361
- primary?: boolean;
362
- variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
363
- }
364
-
365
- export declare const ExhibitMenuItem: default_2.FC<ExhibitMenuItemProps & {
366
- ref?: any;
367
- }>;
368
-
369
- export declare interface ExhibitMenuItemProps extends MenuItemProps {
370
- icon?: default_2.ReactNode | (() => default_2.ReactNode);
371
- renderIcon?: (props: ExhibitIconButtonProps) => default_2.ReactElement;
372
- /**
373
- * If the icon button is a secondary text button.
374
- * Change the color of the text and icon.
375
- * @defaultValue false
376
- */
377
- primary?: boolean;
378
- /**
379
- * Tooltip properties. If this is specified then the tooltips are used.
380
- * Do not provide a child as this component will be the child.
381
- */
382
- propsTooltip?: Omit<ExhibitTooltipProps, 'children'>;
383
- parentFloat?: FloatReference;
384
- chips?: string | string[] | default_2.ReactNode | default_2.ReactNode[];
385
- }
386
-
387
- export declare const ExhibitOptionButton: default_2.FC<ExhibitOptionButtonProps & {
388
- ref?: any;
389
- }>;
390
-
391
- declare interface ExhibitOptionButtonProps extends ExhibitIconButtonProps {
392
- onSelectToggle?: (value: boolean) => void;
393
- selected?: boolean;
394
- label: NonNullable<default_2.ReactNode>;
395
- shortcut?: IKeyStroke;
396
- preventFocus?: boolean;
397
- tabIndex?: number;
398
- }
399
-
400
- export declare const ExhibitPopper: default_2.FC<ExhibitPopperProps & {
401
- ref?: any;
402
- }>;
403
-
404
- export declare interface ExhibitPopperPosition {
405
- top: number;
406
- left: number;
407
- }
408
-
409
- /**
410
- * Wraps the Popper with standardized behavior.
411
- * A popper has 3 lifecycle states: mounted, visible, open.
412
- *
413
- *
414
- *
415
- * 1. Animation
416
- * 2. Resizing (see popper-max-size-modifier)
417
- * // TODO - fix arrow option
418
- *
419
- * // TODO - replace with useFloat and remove 'passthrough' dependency on mui
420
- */
421
- export declare interface ExhibitPopperProps extends PopperProps {
422
- onClosing?: () => void;
423
- onClose?: () => void;
424
- onMount?: (element: HTMLDivElement, instance: Instance) => void;
425
- onOpening?: () => void;
426
- onOpen?: () => void;
427
- /**
428
- * If panel can resize on overflow. Otherwise will try to fit
429
- */
430
- resizeOnOverflow?: boolean;
431
- /**
432
- * major minor offset
433
- * @defaultValue 0, 2
434
- */
435
- offsets?: number[];
436
- anchorPosition?: ExhibitPopperPosition;
437
- label?: string;
438
- }
439
-
440
- export declare interface ExhibitPopperRef {
441
- instance: () => Instance;
442
- element: () => HTMLElement;
443
- }
444
-
445
- /**
446
- * TODO - allow popper and popup customizations similar to @mui/tooltip
447
- */
448
- export declare interface ExhibitPopupButtonProps extends BoxProps {
449
- icon?: default_2.ReactNode | (() => default_2.ReactNode);
450
- label?: default_2.ReactNode;
451
- /**
452
- * Render as selected,
453
- */
454
- selected?: boolean;
455
- parentFloat?: FloatReference;
456
- createPopupPanel?: (props: ExhibitPopupPanelProps) => default_2.ReactElement<any>;
457
- onPopupOpen?: () => void;
458
- onPopupClose?: () => void;
459
- propsPopup?: Partial<ExhibitFloatPanelProps>;
460
- /**
461
- * Tooltip title. Zero-length titles string are never displayed.
462
- */
463
- tooltip?: NonNullable<default_2.ReactNode>;
464
- /**
465
- * Allows for custom tooltip creation
466
- */
467
- createTooltip?: (props: TooltipProps, disabled: boolean) => default_2.JSX.Element;
468
- /**
469
- * If this set then the popup becomes a split button.
470
- */
471
- onQuickClick?: (e: default_2.MouseEvent<Element>) => void;
472
- propsQuickButton?: ExhibitQuickButtonProps;
473
- renderQuickButton?: (props: ExhibitQuickButtonProps) => default_2.ReactNode;
474
- disabled?: boolean;
475
- /**
476
- * If the icon button is a primary icon button.
477
- * This may change the color of the text and icon.
478
- * @defaultValue false
479
- */
480
- primary?: boolean;
481
- /**
482
- * Props applied to the `TouchRipple` element.
483
- */
484
- propsTouchRipple?: Partial<any>;
485
- /**
486
- * A ref that points to the `TouchRipple` element.
487
- */
488
- touchRippleRef?: default_2.Ref<any>;
489
- }
490
-
491
- export declare const ExhibitPopupIconButton: default_2.FC<ExhibitPopupIconButtonProps & {
492
- ref?: any;
493
- }>;
494
-
495
- export declare interface ExhibitPopupIconButtonProps extends ExhibitPopupButtonProps {
496
- dense?: boolean;
497
- outlined?: boolean | OutlineBorder;
498
- disableHover?: boolean;
499
- propsButton?: BoxProps;
500
- }
501
-
502
- export declare const ExhibitPopupMenuItem: default_2.FC<ExhibitPopupMenuItemProps & {
503
- ref?: any;
504
- }>;
505
-
506
- export declare interface ExhibitPopupMenuItemProps extends ExhibitPopupButtonProps {
507
- }
508
-
509
- export declare interface ExhibitPopupPanelProps extends BoxProps {
510
- popupContainer: HTMLElement;
511
- floatReference?: FloatReference;
512
- /**
513
- * When the popup panel initiates a close
514
- */
515
- closeFloat?: () => void;
516
- closeFloatAll?: () => void;
517
- }
518
-
519
- export declare interface ExhibitQuickButtonProps extends IconButtonProps {
520
- /**
521
- * Tooltip title. Zero-length titles string are never displayed.
522
- */
523
- tooltip?: NonNullable<default_2.ReactNode>;
524
- /**
525
- * Allows for custom tooltip creation
526
- */
527
- createTooltip?: (props: TooltipProps, disabled: boolean) => default_2.JSX.Element;
528
- }
529
-
530
- export declare interface ExhibitThemeOptions extends ThemeOptions {
531
- components?: ExhibitComponents;
532
- }
533
-
534
- export declare const ExhibitTooltip: default_2.FC<ExhibitTooltipProps & {
535
- ref?: any;
536
- }>;
537
-
538
- export declare interface ExhibitTooltipProps extends Omit<TooltipProps, "title"> {
539
- title?: string | default_2.ReactNode;
540
- /** Prevent tooltip from show */
541
- disabled?: boolean;
542
- label?: NonNullable<default_2.ReactNode>;
543
- description?: NonNullable<default_2.ReactNode>;
544
- /**
545
- * If true returns a very simple text tooltip.
546
- * @remarks
547
- * All Exhibit tooltip props are ignored.
548
- */
549
- simple?: boolean;
550
- maxWidth?: number;
551
- shortcut?: IKeyStroke;
552
- useModifierSymbols?: boolean;
553
- componentDisabled?: boolean;
554
- chips?: string | string[] | default_2.ReactNode | default_2.ReactNode[];
555
- }
556
-
557
- export declare interface FloatReference {
558
- key: FloatReferenceKey;
559
- isRoot: boolean;
560
- parent: FloatReference;
561
- open(delay?: number): void;
562
- close: (delay?: number) => Promise<void>;
563
- closeChild: (delay?: number) => Promise<void>;
564
- onChildVisible: () => void;
565
- onChildHidden: () => void;
566
- closeAll: () => Promise<void>;
567
- floatElement: () => HTMLElement;
568
- anchorElement: () => HTMLElement | any;
569
- }
570
-
571
- export declare interface FloatReferenceKey {
572
- label: string;
573
- }
574
-
575
- export declare interface FloatStack {
576
- /**
577
- * Float component to be injected
578
- */
579
- component: default_2.ReactNode;
580
- reference: FloatReference;
581
- }
582
-
583
- export declare interface FloatStackOptions {
584
- anchor?: default_2.ReactElement | any;
585
- label?: string;
586
- /**
587
- * If nesting float stacks are being used pass this from parent
588
- */
589
- parentFloat?: FloatReference;
590
- onOpen?: () => void;
591
- onClose?: () => void;
592
- /**
593
- * If this returns `null` then will create a registered movable stacking.
594
- * This is done for toolbars and other permanent visible components that are integrated into the movable stack.
595
- */
596
- createPopupPanel?: (props: ExhibitPopupPanelProps) => any;
597
- /**
598
- * Passed to the underlying popup panel
599
- */
600
- propsPopper?: Partial<ExhibitPopperProps>;
601
- }
602
-
603
- export declare function getScrollbarCssVariables(theme: Theme, options?: ScrollbarThemingOptions): {
604
- '--scrollbar-track-color': string;
605
- '--scrollbar-thumb-color': string;
606
- '--scrollbar-button-color': string;
607
- '--scrollbar-active-color': string;
608
- '--scrollbar-corner-color': string;
609
- '--scrollbar-border-color': string;
610
- '--scrollbar-width': string;
611
- '--scrollbar-height': string;
612
- '--scrollbar-border-radius': string;
613
- '--scrollbar-border-width': string;
614
- '--scrollbar-min-thumb-size': string;
615
- };
616
-
617
- export declare const hexToRGB: (hex: string, alpha?: number) => string;
618
-
619
- export declare interface ICommandToolbarElement extends HTMLDivElement, CommandToolbarAttributes {
620
- }
621
-
622
- /**
623
- * Type returned via ref property
624
- */
625
- export declare interface IInternalWindowElement extends InternalWindowAttributes, HTMLElement {
626
- }
627
-
628
- /**
629
- * Binds an input control to a command.
630
- * @remarks
631
- *
632
- * Currently only supports numbers.
633
- */
634
- export declare const InputCommandButton: default_2.FC<InputCommandButtonProps>;
635
-
636
- export declare interface InputCommandButtonProps<STATE = any, CONTEXT = any> extends CommandButtonProps<STATE, CONTEXT> {
637
- label?: default_2.ReactNode | string | (() => default_2.ReactNode | string);
638
- }
639
-
640
- export declare interface InputDialogProps<T = any, C = any> extends ShowInputOptions<T, C>, Omit<OptionsDialogProps<T, C>, 'initialValue' | 'style' | 'onInput' | 'autoFocus' | 'onKeyDown'> {
641
- }
642
-
643
- export declare const InternalWindow: default_2.NamedExoticComponent<Omit<InternalWindowProps<any, any>, "ref"> & default_2.RefAttributes<IInternalWindowElement>>;
644
-
645
- export declare interface InternalWindowAttributes {
646
- focus: (options?: FocusOptions) => void;
647
- }
648
-
649
- export declare interface InternalWindowProps<T = any, R = any> extends Omit<DialogProps, 'open'> {
650
- open?: ModalProps['open'];
651
- /**
652
- * The dialog title
653
- */
654
- title?: string;
655
- /**
656
- * Query selector for the element to focus on show.
657
- *
658
- * @remarks
659
- * It would be better to honor autoFocus attribute but React is 'hiding' it
660
- */
661
- autoFocusSel?: string;
662
- onCancel?: () => void;
663
- onDone?: (results?: any) => void;
664
- onShow?: () => void;
665
- onShown?: (internalWindow: IInternalWindowElement) => void;
666
- onHide?: () => void;
667
- /**
668
- * If true show a backdrop.
669
- *
670
- * @remarks
671
- * Our movable menu achieves modality without a background by listens to global clicks (and focus)
672
- * @defaultValue false
673
- */
674
- isModal?: boolean;
675
- /**
676
- * A default position for the window. The default is center at %50, %50.
677
- */
678
- initialPosition?: RelativePoint;
679
- /**
680
- * The components used for each slot inside.
681
- * @default {}
682
- */
683
- slots?: DialogSlots & {
684
- transition?: default_2.ComponentType<TransitionProps>;
685
- paper?: default_2.ComponentType<PaperProps>;
686
- };
687
- /**
688
- * The extra props for the slot components.
689
- * You can override the existing props or add new ones.
690
- * @default {}
691
- */
692
- slotProps?: {
693
- backdrop?: default_2.ComponentProps<typeof Backdrop>;
694
- paper?: PaperProps;
695
- transition?: TransitionProps;
696
- };
697
- }
698
-
699
- export declare const LabelIcon: (props: LabelIconProps) => JSX.Element;
700
-
701
- export declare interface LabelIconProps extends BoxProps {
702
- scope?: string;
703
- command?: ICommand<any, any>;
704
- label?: default_2.ReactElement<any> | string;
705
- icon?: default_2.ReactElement<any>;
706
- }
707
-
708
- export { ModalProvider }
709
-
710
- export declare const NestingPopupButton: default_2.NamedExoticComponent<Omit<NestingPopupButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
711
-
712
- export declare interface NestingPopupButtonProps extends ExhibitPopupButtonProps {
713
- nestedChildren?: NestingPopupButtonProps[];
714
- /**
715
- * Rendering styles
716
- * @defaultValue to Toolbar
717
- */
718
- variant?: PopupButtonType;
719
- }
720
-
721
- export declare const OptionsDialog: default_2.NamedExoticComponent<Omit<OptionsDialogProps<any, any>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
722
-
723
- export declare interface OptionsDialogProps<T = any, C = any> extends ShowOptionsOptions<T, C>, Omit<InternalWindowProps<T, C>, 'style' | 'onInput' | 'autoFocus' | 'onKeyDown'> {
724
- }
725
-
726
- export declare interface OutlineBorder {
727
- color?: string | ((theme: Theme) => string);
728
- hoverColor?: string | ((theme: Theme) => string);
729
- focusColor?: string | ((theme: Theme) => string);
730
- }
731
-
732
- export declare const overlayAlpha: (elevation: number) => string;
733
-
734
- export declare const PopupAutoFocus: {
735
- readonly Popup: "popup";
736
- readonly Anchor: "anchor";
737
- };
738
-
739
- export declare type PopupAutoFocus = typeof PopupAutoFocus[keyof typeof PopupAutoFocus];
740
-
741
- export declare const PopupButtonType: {
742
- /**
743
- * Suitable for toolbars. Click to open, click to close, generally disabled as icon
744
- */
745
- readonly Toolbar: "toolbar";
746
- /**
747
- * Suitable for menus. HoverIn to open, hover leave to close, generally disabled as icon and text
748
- */
749
- readonly Menuitem: "menuitem";
750
- };
751
-
752
- export declare type PopupButtonType = typeof PopupButtonType[keyof typeof PopupButtonType];
753
-
754
- /**
755
- * If the x or y is a string it is assumed to be a percentage of available space before.
756
- */
757
- export declare interface RelativePoint {
758
- x?: number | string;
759
- y?: number | string;
760
- }
761
-
762
- export declare const renderScrollButtonEdge: (props: ScrollButtonProps) => default_2.ReactElement<unknown, string | default_2.JSXElementConstructor<any>>;
763
-
764
- export declare const renderScrollButtonEnd: (props: ScrollButtonProps) => JSX.Element;
765
-
766
- export declare const renderScrollButtonStart: (props: ScrollButtonProps) => JSX.Element;
767
-
768
- export declare function scrollbarTheming(theme: Theme, options?: ScrollbarThemingOptions): {
769
- "& .scrollbar, & .vsb-track, & .vsb-thumb": {
770
- '--scrollbar-track-color': string;
771
- '--scrollbar-thumb-color': string;
772
- '--scrollbar-button-color': string;
773
- '--scrollbar-active-color': string;
774
- '--scrollbar-corner-color': string;
775
- '--scrollbar-border-color': string;
776
- '--scrollbar-width': string;
777
- '--scrollbar-height': string;
778
- '--scrollbar-border-radius': string;
779
- '--scrollbar-border-width': string;
780
- '--scrollbar-min-thumb-size': string;
781
- };
782
- "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
783
- backgroundColor: string;
784
- width: string;
785
- height: string;
786
- };
787
- "&::-webkit-scrollbar-button": {
788
- display: string;
789
- };
790
- "& .scrollbar-button": {
791
- fill: string;
792
- backgroundColor: string;
793
- transition: string;
794
- width: string;
795
- height: string;
796
- };
797
- "& .scrollbar-button:hover:not([disabled])": {
798
- fill: string;
799
- };
800
- "& .scrollbar-button:disabled": {
801
- opacity: number;
802
- };
803
- "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {};
804
- "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {};
805
- "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
806
- borderRadius: string;
807
- backgroundColor: string;
808
- minHeight: string;
809
- minWidth: string;
810
- border: string;
811
- };
812
- "&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus": {
813
- backgroundColor: string;
814
- border: true;
815
- };
816
- "&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active": {
817
- backgroundColor: string;
818
- border: true;
819
- };
820
- "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
821
- backgroundColor: string;
822
- border: true;
823
- };
824
- "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
825
- backgroundColor: string;
826
- };
827
- '--scrollbar-track-color': string;
828
- '--scrollbar-thumb-color': string;
829
- '--scrollbar-button-color': string;
830
- '--scrollbar-active-color': string;
831
- '--scrollbar-corner-color': string;
832
- '--scrollbar-border-color': string;
833
- '--scrollbar-width': string;
834
- '--scrollbar-height': string;
835
- '--scrollbar-border-radius': string;
836
- '--scrollbar-border-width': string;
837
- '--scrollbar-min-thumb-size': string;
838
- };
839
-
840
- export declare interface ScrollbarThemingOptions {
841
- track?: string;
842
- thumb?: string;
843
- button?: string;
844
- active?: string;
845
- corner?: string;
846
- outline?: boolean;
847
- }
848
-
849
- export declare const SelectedIcon: default_2.NamedExoticComponent<SelectedIconProps & default_2.RefAttributes<HTMLDivElement>>;
850
-
851
- export declare interface SelectedIconProps extends default_2.HTMLAttributes<HTMLElement> {
852
- /**
853
- * If this is set to false then will just render as a regular icon.
854
- * @defaultValue true
855
- *
856
- */
857
- selected?: boolean;
858
- /**
859
- * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
860
- */
861
- sx?: SxProps<Theme>;
862
- outlined?: boolean;
863
- }
864
-
865
- /**
866
- * Simple Popup that takes a list of commands for a popup
867
- */
868
- export declare const SimpleCommandPopupButton: default_2.NamedExoticComponent<Omit<SimpleCommandPopupButtonProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
869
-
870
- export declare interface SimpleCommandPopupButtonProps extends CommandPopupButtonProps {
871
- /**
872
- * A list of command keys to show in the popup
873
- */
874
- popupCommandKeys: string[];
875
- /**
876
- * Scope for the popup
877
- *
878
- * @defaultValue The 'quickCommandKey'.
879
- */
880
- popupScope?: string;
881
- renderCommandButton?: (props: CommandButtonProps & default_2.Attributes) => default_2.ReactNode;
882
- }
883
-
884
- /**
885
- * SimpleTooltip wraps that use the useFullscreenPortal hook
886
- * to wrap MUI Tooltip and set the Popper container to support
887
- * fullscreen/portal scenarios. Behaves exactly like Tooltip.
888
- */
889
- export declare const SimpleTooltip: default_2.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
890
-
891
- export declare interface SmartInputFieldProps {
892
- automatic?: any;
893
- }
894
-
895
- declare type Source = 'prop' | 'class' | 'media';
896
-
897
- /** Basic StackTrace component */
898
- export declare const StackTrace: default_2.FC<StackTraceProps>;
899
-
900
- /**
901
- * Error Panel with a StackTrace.
902
- * Todo - allow for action flag
903
- */
904
- export declare const StackTraceErrorPanel: default_2.NamedExoticComponent<Omit<StackTraceErrorPanelProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
905
-
906
- export declare interface StackTraceErrorPanelProps extends ErrorPanelProps, Omit<BoxProps, 'color' | 'ref'> {
907
- /**
908
- * Whether to hide the stack trace.
909
- *
910
- * @defaultValue false
911
- */
912
- hideStackTrace?: boolean;
913
- /**
914
- * Whether the stack trace should be expanded by default
915
- *
916
- * @defaultValue false
917
- */
918
- stackTraceExpanded?: boolean;
919
- fullscreen?: boolean;
920
- /**
921
- * Optional icon to show
922
- */
923
- icon?: default_2.ReactNode;
924
- }
925
-
926
- export declare interface StackTraceProps {
927
- /**
928
- * The error object containing the stack trace.
929
- */
930
- error: Error;
931
- /**
932
- * Maximum number of stack trace lines to show.
933
- *
934
- * If not provided, all lines will be shown.
935
- */
936
- maxLines?: number;
937
- /**
938
- * Whether to show line numbers
939
- */
940
- hideLineNumbers?: boolean;
941
- }
942
-
943
- /**
944
- * Useful for contrasting colors
945
- * @param theme - The theme
946
- */
947
- export declare const strokeShadowFilter: (theme: Theme) => string;
948
-
949
- export declare const ThemedIcon: any;
950
-
951
- export declare interface ThemedIconProps extends BoxProps {
952
- size?: 'small' | 'medium' | 'large';
953
- activeColor?: string;
954
- }
955
-
956
- export declare const ThemeMode: {
957
- readonly Light: "light";
958
- readonly Dark: "dark";
959
- };
960
-
961
- export declare type ThemeMode = typeof ThemeMode[keyof typeof ThemeMode];
962
-
963
- export declare interface ThemeModeOptions {
964
- /**
965
- * The user doesn't want to use the default.
966
- *
967
- * @defaultValue the system default
968
- */
969
- mode?: ThemeMode;
970
- /**
971
- * Customizations to the theme.
972
- *
973
- * @defaultValue `Theme`
974
- */
975
- theme?: ThemeOptions;
976
- /**
977
- * Customizations to the light theme.
978
- *
979
- * @defaultValue Theme values.
980
- */
981
- light?: ThemeOptions;
982
- /**
983
- * Customizations to the dark theme.
984
- *
985
- * @defaultValue Theme values
986
- */
987
- dark?: ThemeOptions;
988
- /**
989
- * By default the the standalone workbook grid will be the same theme as the workbook.
990
- * If forceGridLight is `true` then the grid will always use the light mode.
991
- *
992
- * When `true` the grid will behave consistent with current Excel (2023).
993
- *
994
- * @remarks
995
- * When the grid has a dark theme it will attempt to use DocTheme dark colors
996
- * but will 'force' non dark-themed colors to be light via an inversion algo.
997
- *
998
- * @defaultValue false
999
- */
1000
- enableDarkGrid?: boolean;
1001
- /**
1002
- * By default the the standalone workbook images will invert images if the grid
1003
- * is in dark mode.
1004
- *
1005
- * @defaultValue false
1006
- */
1007
- enableDarkImages?: boolean;
1008
- /**
1009
- * When theming also apply the MUI CssBaseline.
1010
- *
1011
- * @defaultValue false
1012
- */
1013
- cssBaseline?: boolean;
1014
- /**
1015
- * Called if the current mode changes for the AppTheme.
1016
- *
1017
- * @remarks
1018
- * * This is only used if the themeOptions are not provided.
1019
- * * If `null` is sent then the theme should inherit.
1020
- */
1021
- onModeChange?: (mode: ThemeMode | null) => void;
1022
- onEnabledDarkGridChange?: (allow: boolean) => void;
1023
- onEnabledDarkImagesChange?: (allow: boolean) => void;
1024
- }
1025
-
1026
- export declare const toShortcutElements: (keyStroke: IKeyStroke | IKeyStroke[], modifierSymbol?: boolean, key?: string) => default_2.ReactElement;
1027
-
1028
- /**
1029
- * useFloatStack
1030
- *
1031
- * Keeps a list of stacked movable components. This acts like within but outside of the containment
1032
- * hierarchy.
1033
- *
1034
- * TODO - abstract out clickAway perhaps with a useFloatStack context
1035
- * TODO - abstract out ExhibitFloatPanel factory into the same provider
1036
- *
1037
- */
1038
- export declare const useFloatStack: (props?: FloatStackOptions) => FloatStack;
1039
-
1040
- export declare const useInputDialog: (propsDefault?: InputDialogProps) => (props: InputDialogProps) => Promise<{
1041
- input: string;
1042
- option: string;
1043
- }>;
1044
-
1045
- /**
1046
- * Creates a single instance given the type and import function
1047
- *
1048
- * @remarks
1049
- * This relays on the onHide prop working
1050
- */
1051
- export declare function useLazyWindow<P extends InternalWindowProps>(propsDefault?: P): (type: string, importFunc: () => Promise<{
1052
- default: any;
1053
- }>, options: ShowWindowOptions, props?: P) => Promise<HTMLElement>;
1054
-
1055
- export declare const useOptionsDialog: (propsDefault?: OptionsDialogProps) => (options: OptionsDialogProps) => Promise<string>;
1056
-
1057
- export declare function useResolvedThemeMode(options?: UseThemeOptions): {
1058
- themeMode: ThemeMode;
1059
- source: Source;
1060
- };
1061
-
1062
- declare interface UseThemeOptions {
1063
- mode?: ThemeMode;
1064
- }
1065
-
1066
-
1067
- export * from "mui-modal-provider";
1068
-
1069
- export { }
1
+ export * from './src/index'
2
+ export {}