@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,45 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ import { LoadingPanelProps } from '@sheetxl/utils-react';
4
+ export interface AnimatedIconProps extends BoxProps {
5
+ speed?: number;
6
+ size?: number;
7
+ }
8
+ /**
9
+ * These super animated icons are from https://codepen.io/nikhil8krishnan. MIT attribution. Thank you Nikhil Krishnan
10
+ *
11
+ * Note - Currently svg animations do not animate if the main thread is blocked.
12
+ * https://codepen.io/mtf2000/pen/oNPwzap
13
+ */
14
+ export declare const AnimatedClockIcon: React.FC<AnimatedIconProps>;
15
+ export declare const AnimatedCircleIcon: React.FC<AnimatedIconProps>;
16
+ export declare const AnimatedFadingEllipsisIcon: React.FC<AnimatedIconProps>;
17
+ export declare const AnimatedBouncingEllipsisIcon: React.FC<AnimatedIconProps>;
18
+ export declare const AnimatedOrbitIcon: React.FC<AnimatedIconProps>;
19
+ export interface AnimatedTraversingEllipsisIconProps extends BoxProps {
20
+ speed?: number;
21
+ size?: number;
22
+ width?: number;
23
+ height?: number;
24
+ }
25
+ /**
26
+ * This is the only AnimatedIcon that works with a blocking ui.
27
+ * Note - currently this has a hardcoded bounds of 61x13
28
+ */
29
+ export declare const AnimatedTraversingEllipsisIcon: React.FC<AnimatedTraversingEllipsisIconProps>;
30
+ export interface AnimatedLoadingPanelProps extends LoadingPanelProps, Omit<BoxProps, 'label' | 'color' | 'ref' | 'children'> {
31
+ icon?: React.ReactNode;
32
+ label?: string | React.ReactNode;
33
+ /**
34
+ * Determinate progress as a fraction in `[0, 1]`. When a number, a determinate progress bar and
35
+ * percentage are shown in place of the animated `icon`; when `null`/`undefined` the indeterminate
36
+ * `icon` is shown.
37
+ */
38
+ progress?: number | null;
39
+ /**
40
+ * Wrap the icon and label in a paper panel.
41
+ */
42
+ panel?: boolean;
43
+ }
44
+ export declare const AnimatedLoadingPanel: React.NamedExoticComponent<Omit<AnimatedLoadingPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
+ //# sourceMappingURL=AnimatedLoadingPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedLoadingPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/AnimatedLoadingPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAInD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmCxD,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsCzD,CAAC;AAEH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqCjE,CAAC;AAEH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqCnE,CAAC;AAEH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA4CxD,CAAC;AAEH,MAAM,WAAW,mCAAoC,SAAQ,QAAQ;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,mCAAmC,CAyCvF,CAAC;AAIH,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;IAE1H,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAID,eAAO,MAAM,oBAAoB,0GA4T9B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ export interface ChipStripProps extends BoxProps {
4
+ chips: string | string[] | React.ReactNode | React.ReactNode[];
5
+ }
6
+ export declare const ChipStrip: React.FC<ChipStripProps & {
7
+ ref?: any;
8
+ }>;
9
+ //# sourceMappingURL=ChipStrip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChipStrip.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipStrip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChE;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,CAwD5D,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ import { Theme, SxProps } from '@mui/system';
3
+ import { FloatReference, FloatPopperProps } from '@sheetxl/utils-react';
4
+ import { ExhibitPopupPanelProps } from '../float';
5
+ export interface ContextMenuAttributes {
6
+ isContextMenu: () => true;
7
+ }
8
+ export interface ContextMenuProps extends React.HTMLAttributes<HTMLElement> {
9
+ /**
10
+ * MUI SX props {@link https://mui.com/system/getting-started/the-sx-prop/}
11
+ */
12
+ sx?: SxProps<Theme>;
13
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
14
+ parentFloat?: FloatReference;
15
+ createPopupPanel?: (props: ExhibitPopupPanelProps) => React.ReactElement<any>;
16
+ /**
17
+ * Passed to the underlying popup panel
18
+ */
19
+ propsPopper?: Partial<FloatPopperProps>;
20
+ /**
21
+ * Use for float reference
22
+ */
23
+ label?: string;
24
+ ref?: React.Ref<HTMLDivElement>;
25
+ }
26
+ export interface ContextMenuElement extends HTMLDivElement, ContextMenuAttributes {
27
+ }
28
+ /**
29
+ * Wraps a component to give it a context menu.
30
+ */
31
+ export declare const ContextMenu: React.NamedExoticComponent<Omit<ContextMenuProps, "ref"> & React.RefAttributes<ContextMenuElement>>;
32
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EAC0B,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAC1E,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7E,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAE9E;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,qBAAqB;CAAG;AAQpF;;GAEG;AAEH,eAAO,MAAM,WAAW,qGAsErB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { DividerProps } from '@mui/material';
3
+ export interface ExhibitDividerProps extends DividerProps {
4
+ }
5
+ export declare const ExhibitDivider: React.NamedExoticComponent<Omit<ExhibitDividerProps, "ref"> & React.RefAttributes<HTMLHRElement>>;
6
+ //# sourceMappingURL=ExhibitDivider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExhibitDivider.d.ts","sourceRoot":"","sources":["../../../../src/components/ExhibitDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,YAAY;CACxD;AAED,eAAO,MAAM,cAAc,mGAgCxB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PopupButtonType, ExhibitPopupButtonProps } from '../float';
2
+ export interface NestingPopupButtonProps extends ExhibitPopupButtonProps {
3
+ nestedChildren?: NestingPopupButtonProps[];
4
+ /**
5
+ * Rendering styles
6
+ * @defaultValue to Toolbar
7
+ */
8
+ variant?: PopupButtonType;
9
+ }
10
+ export declare const NestingPopupButton: import('react').NamedExoticComponent<Omit<NestingPopupButtonProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
11
+ //# sourceMappingURL=NestingPopupButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestingPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/components/NestingPopupButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,KAAK,uBAAuB,EAA+B,MAAM,UAAU,CAAC;AACtG,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACtE,cAAc,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAC,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,yHA6D5B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { ScrollButtonProps } from '@sheetxl/utils-react';
3
+ export declare const renderScrollButtonEdge: (props: ScrollButtonProps) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
4
+ export declare const createScrollButton: (props: ScrollButtonProps, icon: React.ReactElement, title: string, description: string) => React.JSX.Element;
5
+ export declare const renderScrollButtonStart: (props: ScrollButtonProps) => React.JSX.Element;
6
+ export declare const renderScrollButtonEnd: (props: ScrollButtonProps) => React.JSX.Element;
7
+ //# sourceMappingURL=ScrollButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/ScrollButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,sBAAsB,CAAC;AAmB9B,eAAO,MAAM,sBAAsB,GAAI,OAAO,iBAAiB,2EAsB9D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,iBAAiB,EAAE,MAAM,KAAK,CAAC,YAAY,EAAE,OAAO,MAAM,EAAE,aAAa,MAAM,sBAkCxH,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,OAAO,iBAAiB,sBAO/D,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,iBAAiB,sBAO7D,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { TooltipProps } from '@mui/material';
2
+ /**
3
+ * SimpleTooltip wraps that use the useFullscreenPortal hook
4
+ * to wrap MUI Tooltip and set the Popper container to support
5
+ * fullscreen/portal scenarios. Behaves exactly like Tooltip.
6
+ *
7
+ * @remarks
8
+ * The shared portal container is used ONLY in fullscreen, where the tooltip has to be mounted under
9
+ * the fullscreen element to be visible at all. Outside it, the tooltip stays on MUI's own default
10
+ * (`document.body`): the shared container carries a `z-index`, which makes it a stacking context
11
+ * that caps everything inside it — and a tooltip's whole point is that it out-stacks the menu or
12
+ * dialog it is describing.
13
+ */
14
+ export declare const SimpleTooltip: import('react').ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
15
+ //# sourceMappingURL=SimpleTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleTooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAG3D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,mHAiBxB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ export interface StackTraceProps {
3
+ /**
4
+ * The error object containing the stack trace.
5
+ */
6
+ error: Error;
7
+ /**
8
+ * Maximum number of stack trace lines to show.
9
+ *
10
+ * If not provided, all lines will be shown.
11
+ */
12
+ maxLines?: number;
13
+ /**
14
+ * Whether to show line numbers
15
+ */
16
+ hideLineNumbers?: boolean;
17
+ }
18
+ /** Basic StackTrace component */
19
+ export declare const StackTrace: React.FC<StackTraceProps>;
20
+ //# sourceMappingURL=StackTrace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackTrace.d.ts","sourceRoot":"","sources":["../../../../src/components/StackTrace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAyDD,iCAAiC;AACjC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgP/C,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ import { ErrorPanelProps } from '@sheetxl/utils-react';
4
+ export interface StackTraceErrorPanelProps extends ErrorPanelProps, Omit<BoxProps, 'color' | 'ref'> {
5
+ /**
6
+ * Whether to hide the stack trace.
7
+ *
8
+ * @defaultValue false
9
+ */
10
+ hideStackTrace?: boolean;
11
+ /**
12
+ * Whether the stack trace should be expanded by default
13
+ *
14
+ * @defaultValue false
15
+ */
16
+ stackTraceExpanded?: boolean;
17
+ fullscreen?: boolean;
18
+ /**
19
+ * Optional icon to show
20
+ */
21
+ icon?: React.ReactNode;
22
+ }
23
+ /**
24
+ * Error Panel with a StackTrace.
25
+ * Todo - allow for action flag
26
+ */
27
+ export declare const StackTraceErrorPanel: React.NamedExoticComponent<Omit<StackTraceErrorPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ //# sourceMappingURL=StackTraceErrorPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackTraceErrorPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/StackTraceErrorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAgD,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK1G,MAAM,WAAW,yBAA0B,SAAQ,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,KAAK,CAAC;IACjG;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,0GAyH9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './ScrollButtons';
2
+ export * from './ExhibitDivider';
3
+ export * from './AnimatedLoadingPanel';
4
+ export * from './StackTraceErrorPanel';
5
+ export * from './StackTrace';
6
+ export * from './ChipStrip';
7
+ export * from './NestingPopupButton';
8
+ export * from './ContextMenu';
9
+ export * from './SimpleTooltip';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AAErC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { ShowInputOptions } from '@sheetxl/utils-react';
3
+ import { OptionsDialogProps } from './useOptionsDialog';
4
+ export interface InputDialogProps<T = any, C = any> extends ShowInputOptions<T, C>, Omit<OptionsDialogProps<T, C>, 'initialValue' | 'style' | 'onInput' | 'autoFocus' | 'onKeyDown'> {
5
+ }
6
+ declare const InputDialog: React.NamedExoticComponent<Omit<InputDialogProps<any, any>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export default InputDialog;
8
+ //# sourceMappingURL=InputDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/InputDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EACL,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAC,GAAG,EAAE,CAAC,GAAC,GAAG,CAAE,SAAQ,gBAAgB,CAAC,CAAC,EAAC,CAAC,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC,EAAC,CAAC,CAAC,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;CAAG;AAGjL,QAAA,MAAM,WAAW,2GAmId,CAAC;AAEJ,eAAe,WAAW,CAAC"}
@@ -0,0 +1,142 @@
1
+ import { default as React } from 'react';
2
+ import { DialogSlots, Backdrop, ModalProps, DialogProps, PaperProps } from '@mui/material';
3
+ import { TransitionProps } from '@mui/material/transitions';
4
+ import { DraggableEventHandler } from 'react-draggable';
5
+ import { Point, Size } from '@sheetxl/utils';
6
+ export interface DraggablePaperProps extends PaperProps {
7
+ onDragStop?: DraggableEventHandler;
8
+ PaperComponent?: React.JSXElementConstructor<PaperProps>;
9
+ titleSize?: Size;
10
+ rootSize?: Size;
11
+ handleSel?: string;
12
+ rootSel?: string;
13
+ defaultPosition?: Point;
14
+ }
15
+ /**
16
+ * If the x or y is a string it is assumed to be a percentage of available space before.
17
+ */
18
+ export interface RelativePoint {
19
+ x?: number | string;
20
+ y?: number | string;
21
+ }
22
+ export interface InternalWindowProps<T = any, R = any> extends Omit<DialogProps, 'open'> {
23
+ open?: ModalProps['open'];
24
+ /**
25
+ * The dialog title
26
+ */
27
+ title?: string;
28
+ /**
29
+ * Query selector for the element to focus on show.
30
+ *
31
+ * @remarks
32
+ * It would be better to honor autoFocus attribute but React is 'hiding' it
33
+ */
34
+ autoFocusSel?: string;
35
+ onCancel?: () => void;
36
+ onDone?: (results?: any) => void;
37
+ onShow?: () => void;
38
+ onShown?: (internalWindow: IInternalWindowElement) => void;
39
+ onHide?: () => void;
40
+ /**
41
+ * If true show a backdrop.
42
+ *
43
+ * @remarks
44
+ * Our movable menu achieves modality without a background by listens to global clicks (and focus)
45
+ * @defaultValue false
46
+ */
47
+ isModal?: boolean;
48
+ /**
49
+ * Temporarily SUSPEND the modality of an `isModal` window: the backdrop is not rendered, so the
50
+ * application behind stays clickable, while the window itself remains open, visible and draggable.
51
+ * The focus trap is already soft (it only enforces while the window has focus), so focus may move
52
+ * to the application and back freely.
53
+ *
54
+ * @remarks
55
+ * The Excel "RefEdit" pattern: a dialog hosting a reference field flips this on while the field is
56
+ * PICKING (reference point mode), so a grid/header click reaches the sheet instead of the backdrop
57
+ * (which would otherwise swallow — and cancel on — the click), and off again when the pick ends.
58
+ * @defaultValue false
59
+ */
60
+ suspendModal?: boolean;
61
+ /**
62
+ * Whether closing returns the keyboard to whatever held it when the window opened.
63
+ *
64
+ * @remarks
65
+ * `false` leaves focus alone — for a window whose OUTCOME moves the keyboard itself (Insert
66
+ * Function seeds `=NAME(` and puts the user in the cell's editor). The restore is a queued frame,
67
+ * so it lands *after* the new owner has taken focus and quietly takes it away again.
68
+ *
69
+ * A **thunk** is read as the window exits, which is what a window whose answer depends on how it
70
+ * was dismissed needs — cancel restores, an insert that starts an edit does not. A boolean would
71
+ * have to be in state, and there is no guaranteed render between the option being taken and the
72
+ * exit transition starting.
73
+ * @defaultValue true
74
+ */
75
+ restoreFocus?: boolean | (() => boolean);
76
+ /**
77
+ * When true this window is kept mounted after it closes so it can be reused (re-shown by bumping
78
+ * {@link InternalWindowProps.revealToken}) instead of destroyed and rebuilt. This both makes
79
+ * re-open instant and preserves position + content state.
80
+ *
81
+ * @remarks
82
+ * `mui-modal-provider@2.4.6` wires `TransitionProps.onExited -> destroy` whenever `destroyOnClose`
83
+ * is false (its issue #78), so a keep-alive window would otherwise be destroyed on the exit
84
+ * transition anyway. When this is set we skip forwarding `onExited` to that destroyer.
85
+ * @defaultValue false
86
+ */
87
+ disableAutoDestroy?: boolean;
88
+ /**
89
+ * Monotonic token bumped by the host each time a keep-alive window should re-show. An effect
90
+ * re-reveals the window whenever this changes. Prop-based (not imperative on the DOM element,
91
+ * whose identity is fragile across re-renders/StrictMode) and survives `updateModal` (which only
92
+ * strips `open`). Ignored on first mount.
93
+ */
94
+ revealToken?: number;
95
+ /**
96
+ * Mount hidden and suppress the initial auto-reveal (used for prewarming — mounting + positioning a
97
+ * keep-alive window ahead of its first real open). The window stays hidden until {@link revealToken}
98
+ * is bumped (or this flips false). Needed because `mui-modal-provider`'s SHOW force-sets `open:true`,
99
+ * so `open` alone can't keep a prewarmed window hidden.
100
+ * @defaultValue false
101
+ */
102
+ startHidden?: boolean;
103
+ /**
104
+ * A default position for the window. The default is center at %50, %50.
105
+ */
106
+ initialPosition?: RelativePoint;
107
+ /**
108
+ * The components used for each slot inside.
109
+ * @default {}
110
+ */
111
+ slots?: DialogSlots & {
112
+ transition?: React.ComponentType<TransitionProps>;
113
+ paper?: React.ComponentType<PaperProps>;
114
+ };
115
+ /**
116
+ * The extra props for the slot components.
117
+ * You can override the existing props or add new ones.
118
+ * @default {}
119
+ */
120
+ slotProps?: {
121
+ backdrop?: React.ComponentProps<typeof Backdrop>;
122
+ paper?: PaperProps;
123
+ transition?: TransitionProps;
124
+ };
125
+ /**
126
+ * @deprecated v9 removed `TransitionProps` from `DialogProps`. Retained here
127
+ * only because `useModal` (mui-modal-provider) still injects it; it is mapped
128
+ * onto `slotProps.transition` internally.
129
+ */
130
+ TransitionProps?: TransitionProps;
131
+ }
132
+ export interface InternalWindowAttributes {
133
+ focus: (options?: FocusOptions) => void;
134
+ }
135
+ /**
136
+ * Type returned via ref property
137
+ */
138
+ export interface IInternalWindowElement extends InternalWindowAttributes, HTMLElement {
139
+ }
140
+ export declare const InternalWindow: React.NamedExoticComponent<Omit<InternalWindowProps<any, any>, "ref"> & React.RefAttributes<IInternalWindowElement>>;
141
+ export default InternalWindow;
142
+ //# sourceMappingURL=InternalWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternalWindow.d.ts","sourceRoot":"","sources":["../../../../src/dialog/InternalWindow.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { OptionInput } from '@sheetxl/utils-react';
3
+ import { OptionsDialogProps } from './useOptionsDialog';
4
+ /**
5
+ * The stable, language-free IDENTITY of an option — its `id` if given, else the `string` form, else the
6
+ * {@link InputOption} object itself. This is what crosses the notifier boundary as `results.option` and
7
+ * what `defaultOption`/`cancelOption` are matched against.
8
+ *
9
+ * @remarks
10
+ * Exported for a host that takes an option's action from somewhere OTHER than the action row — a
11
+ * list's double-click "that one", a keyboard shortcut. `options`/`defaultOption` hold the rich form,
12
+ * `onOption` receives the identity, and a shortcut that forwards what it was given hands its own
13
+ * handler an object where every button hands it a string. Every `option === 'Next'` comparison in that
14
+ * handler then silently answers `false`.
15
+ */
16
+ export declare const optionIdentity: (option: OptionInput) => OptionInput;
17
+ export declare const OptionsDialog: React.NamedExoticComponent<Omit<OptionsDialogProps<any, any>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ export default OptionsDialog;
19
+ //# sourceMappingURL=OptionsDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OptionsDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/OptionsDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,EAA2C,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIjG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAc7D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,KAAG,WACQ,CAAC;AAY9D,eAAO,MAAM,aAAa,6GA2SvB,CAAC;AAEJ,eAAe,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { default as ModalProvider } from 'mui-modal-provider';
2
+ export * from './useLazyWindow';
3
+ export * from './InternalWindow';
4
+ export * from './OptionsDialog';
5
+ export type { InputDialogProps } from './InputDialog';
6
+ export * from './useOptionsDialog';
7
+ export * from './useInputDialog';
8
+ export * from 'mui-modal-provider';
9
+ export { ModalProvider };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAE/C,cAAc,iBAAiB,CAAC;AAEhC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,iBAAiB,CAAC;AAGhC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAGjC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { InputResults } from '@sheetxl/utils-react';
2
+ import { InputDialogProps } from './InputDialog';
3
+ declare const useInputDialog: (propsDefault?: InputDialogProps) => (props: InputDialogProps) => Promise<InputResults>;
4
+ export default useInputDialog;
5
+ export { useInputDialog };
6
+ //# sourceMappingURL=useInputDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInputDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/useInputDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAItD,QAAA,MAAM,cAAc,GAAI,eAAe,gBAAgB,KAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,YAAY,CAiC1G,CAAA;AAED,eAAe,cAAc,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { ShowWindowOptions } from '@sheetxl/utils-react';
2
+ import { InternalWindowProps } from './InternalWindow';
3
+ /**
4
+ * Creates a single instance given the type and import function
5
+ *
6
+ * @remarks
7
+ * This relays on the onHide prop working
8
+ */
9
+ declare function useLazyWindow<P extends InternalWindowProps>(propsDefault?: P): (type: string, importFunc: () => Promise<{
10
+ default: any;
11
+ }>, options: ShowWindowOptions, props?: P) => Promise<HTMLElement | null>;
12
+ export default useLazyWindow;
13
+ export { useLazyWindow };
14
+ //# sourceMappingURL=useLazyWindow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLazyWindow.d.ts","sourceRoot":"","sources":["../../../../src/dialog/useLazyWindow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,CAAC,SAAS,mBAAmB,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CA0IzM;AAED,eAAe,aAAa,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ShowOptionsOptions, OptionInput } from '@sheetxl/utils-react';
2
+ import { InternalWindowProps } from './InternalWindow';
3
+ export interface OptionsDialogProps<T = any, C = any> extends ShowOptionsOptions<T, C>, Omit<InternalWindowProps<T, C>, 'style' | 'onInput' | 'autoFocus' | 'onKeyDown'> {
4
+ }
5
+ declare const useOptionsDialog: (propsDefault?: OptionsDialogProps) => (options: OptionsDialogProps) => Promise<OptionInput>;
6
+ export default useOptionsDialog;
7
+ export { useOptionsDialog };
8
+ //# sourceMappingURL=useOptionsDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOptionsDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/useOptionsDialog.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAC,GAAG,EAAE,CAAC,GAAC,GAAG,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAC,CAAC,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;CAAG;AAEtK,QAAA,MAAM,gBAAgB,GAAI,eAAe,kBAAkB,KAAG,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,WAAW,CAoBjH,CAAA;AAED,eAAe,gBAAgB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
3
+ import { ExhibitPopupPanelProps } from './ExhibitPopup';
4
+ import { FloatPopperProps, FloatPopperPosition, FloatPanelProps } from '@sheetxl/utils-react';
5
+ /**
6
+ * The MUI floating surface: a {@link FloatPopper} (a positioned portal)
7
+ * wrapping a themed {@link Paper}. This is the surface installed by
8
+ * `ExhibitFloatProvider`; `useFloatStack` renders content into it via its
9
+ * `renderFloatPanel`.
10
+ *
11
+ * Mirrors the neutral {@link FloatPanelProps}, swapping the HTML base for MUI's
12
+ * {@link BoxProps} and re-typing the surface-specific fields
13
+ * (`createPopupPanel`/`propsPopper`/`anchor*`) against the MUI surface.
14
+ */
15
+ export type ExhibitFloatPanelProps = Omit<FloatPanelProps, keyof React.HTMLAttributes<HTMLDivElement> | 'anchorEl' | 'anchorPosition' | 'createPopupPanel' | 'propsPopper'> & BoxProps & {
16
+ anchorEl?: any;
17
+ anchorPosition?: FloatPopperPosition;
18
+ createPopupPanel?: (props: ExhibitPopupPanelProps) => React.ReactElement<any>;
19
+ propsPopper?: Partial<FloatPopperProps>;
20
+ };
21
+ export declare const ExhibitFloatPanel: React.NamedExoticComponent<Omit<ExhibitFloatPanelProps, "ref"> & React.RefAttributes<any>>;
22
+ //# sourceMappingURL=ExhibitFloatPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExhibitFloatPanel.d.ts","sourceRoot":"","sources":["../../../../src/float/ExhibitFloatPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAM9C,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACQ,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,eAAe,EACnF,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;GASG;AACH,MAAM,MAAM,sBAAsB,GAChC,IAAI,CAAC,eAAe,EAClB,MAAM,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,UAAU,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,aAAa,CAChH,GAAG,QAAQ,GAAG;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC9E,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzC,CAAC;AAEJ,eAAO,MAAM,iBAAiB,4FAmG3B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { FloatProviderProps } from '@sheetxl/utils-react';
3
+ /**
4
+ * A {@link FloatProvider} preconfigured with the MUI floating surface
5
+ * ({@link ExhibitFloatPanel} + the MUI popup-panel default).
6
+ *
7
+ * The MUI surface is required (not just preferred): floats render in a portal,
8
+ * and the neutral `FloatPanel` themes via `--sxl-*` CSS variables which do not
9
+ * reach the portal container, so it renders unthemed there. The MUI `Paper`
10
+ * surface carries the theme into the portal. (See the parked experiment to drop
11
+ * the MUI surface — blocked on CSS-variable propagation into portals.)
12
+ *
13
+ * Mount once near a MUI app root so every float below renders on the MUI
14
+ * surface. Other {@link FloatProviderProps} (e.g. `isolate`) pass through.
15
+ */
16
+ export declare const ExhibitFloatProvider: (props: Omit<FloatProviderProps, "renderFloatPanel" | "createPopupPanel">) => React.ReactElement;
17
+ //# sourceMappingURL=ExhibitFloatProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExhibitFloatProvider.d.ts","sourceRoot":"","sources":["../../../../src/float/ExhibitFloatProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS9E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,kBAAkB,CAAC,KACvE,KAAK,CAAC,YAQR,CAAC"}