@sheetxl/utils-mui 0.7.22 → 0.7.23-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/CMDyOaq_TZmhbR3R.cjs +1 -0
- package/browser/cjs/GeHQP4M_1ydWv9v4.cjs +3 -0
- package/browser/cjs/index.cjs +4 -7
- package/browser/esm/CNIMtMKGuDo4psnZ.mjs +96 -0
- package/browser/esm/D0mXROj4on9piZY1.mjs +2544 -0
- package/browser/esm/index.mjs +2688 -72
- package/licenses/dependencies.txt +60 -198
- package/node/esm/C2bOUbQGN6BujoBn.mjs +97 -0
- package/node/esm/index.mjs +3354 -981
- package/package.json +12 -14
- package/resources/contents.json +18 -0
- package/resources/locales/contents.json +16 -0
- package/resources/locales/de/ui.msg.json +22 -0
- package/resources/locales/en/ui.msg.json +22 -0
- package/types/index.d.ts +2 -1068
- package/types/src/button/ButtonContent.d.ts +17 -0
- package/types/src/button/ButtonContent.d.ts.map +1 -0
- package/types/src/button/ExhibitIconButton.d.ts +31 -0
- package/types/src/button/ExhibitIconButton.d.ts.map +1 -0
- package/types/src/button/ExhibitMenuHeader.d.ts +15 -0
- package/types/src/button/ExhibitMenuHeader.d.ts.map +1 -0
- package/types/src/button/ExhibitMenuItem.d.ts +24 -0
- package/types/src/button/ExhibitMenuItem.d.ts.map +1 -0
- package/types/src/button/ExhibitOptionButton.d.ts +16 -0
- package/types/src/button/ExhibitOptionButton.d.ts.map +1 -0
- package/types/src/button/ExhibitPopupIconButton.d.ts +18 -0
- package/types/src/button/ExhibitPopupIconButton.d.ts.map +1 -0
- package/types/src/button/ExhibitPopupMenuItem.d.ts +8 -0
- package/types/src/button/ExhibitPopupMenuItem.d.ts.map +1 -0
- package/types/src/button/ExhibitTooltip.d.ts +26 -0
- package/types/src/button/ExhibitTooltip.d.ts.map +1 -0
- package/types/src/button/OverflowPalette.d.ts +29 -0
- package/types/src/button/OverflowPalette.d.ts.map +1 -0
- package/types/src/button/SelectedIcon.d.ts +18 -0
- package/types/src/button/SelectedIcon.d.ts.map +1 -0
- package/types/src/button/index.d.ts +11 -0
- package/types/src/button/index.d.ts.map +1 -0
- package/types/src/command/CommandButton.d.ts +4 -0
- package/types/src/command/CommandButton.d.ts.map +1 -0
- package/types/src/command/CommandGroup.d.ts +71 -0
- package/types/src/command/CommandGroup.d.ts.map +1 -0
- package/types/src/command/CommandPopupButton.d.ts +34 -0
- package/types/src/command/CommandPopupButton.d.ts.map +1 -0
- package/types/src/command/CommandToolbar.d.ts +51 -0
- package/types/src/command/CommandToolbar.d.ts.map +1 -0
- package/types/src/command/CommandTooltip.d.ts +22 -0
- package/types/src/command/CommandTooltip.d.ts.map +1 -0
- package/types/src/command/InputCommandButton.d.ts +20 -0
- package/types/src/command/InputCommandButton.d.ts.map +1 -0
- package/types/src/command/ToggleGroupButton.d.ts +33 -0
- package/types/src/command/ToggleGroupButton.d.ts.map +1 -0
- package/types/src/command/index.d.ts +8 -0
- package/types/src/command/index.d.ts.map +1 -0
- package/types/src/command/useManagedRipple.d.ts +23 -0
- package/types/src/command/useManagedRipple.d.ts.map +1 -0
- package/types/src/components/AnimatedLoadingPanel.d.ts +45 -0
- package/types/src/components/AnimatedLoadingPanel.d.ts.map +1 -0
- package/types/src/components/ChipStrip.d.ts +9 -0
- package/types/src/components/ChipStrip.d.ts.map +1 -0
- package/types/src/components/ContextMenu.d.ts +32 -0
- package/types/src/components/ContextMenu.d.ts.map +1 -0
- package/types/src/components/ExhibitDivider.d.ts +6 -0
- package/types/src/components/ExhibitDivider.d.ts.map +1 -0
- package/types/src/components/NestingPopupButton.d.ts +11 -0
- package/types/src/components/NestingPopupButton.d.ts.map +1 -0
- package/types/src/components/ScrollButtons.d.ts +7 -0
- package/types/src/components/ScrollButtons.d.ts.map +1 -0
- package/types/src/components/SimpleTooltip.d.ts +15 -0
- package/types/src/components/SimpleTooltip.d.ts.map +1 -0
- package/types/src/components/StackTrace.d.ts +20 -0
- package/types/src/components/StackTrace.d.ts.map +1 -0
- package/types/src/components/StackTraceErrorPanel.d.ts +28 -0
- package/types/src/components/StackTraceErrorPanel.d.ts.map +1 -0
- package/types/src/components/index.d.ts +10 -0
- package/types/src/components/index.d.ts.map +1 -0
- package/types/src/dialog/InputDialog.d.ts +8 -0
- package/types/src/dialog/InputDialog.d.ts.map +1 -0
- package/types/src/dialog/InternalWindow.d.ts +142 -0
- package/types/src/dialog/InternalWindow.d.ts.map +1 -0
- package/types/src/dialog/OptionsDialog.d.ts +19 -0
- package/types/src/dialog/OptionsDialog.d.ts.map +1 -0
- package/types/src/dialog/index.d.ts +10 -0
- package/types/src/dialog/index.d.ts.map +1 -0
- package/types/src/dialog/useInputDialog.d.ts +6 -0
- package/types/src/dialog/useInputDialog.d.ts.map +1 -0
- package/types/src/dialog/useLazyWindow.d.ts +14 -0
- package/types/src/dialog/useLazyWindow.d.ts.map +1 -0
- package/types/src/dialog/useOptionsDialog.d.ts +8 -0
- package/types/src/dialog/useOptionsDialog.d.ts.map +1 -0
- package/types/src/float/ExhibitFloatPanel.d.ts +22 -0
- package/types/src/float/ExhibitFloatPanel.d.ts.map +1 -0
- package/types/src/float/ExhibitFloatProvider.d.ts +17 -0
- package/types/src/float/ExhibitFloatProvider.d.ts.map +1 -0
- package/types/src/float/ExhibitPopup.d.ts +97 -0
- package/types/src/float/ExhibitPopup.d.ts.map +1 -0
- package/types/src/float/index.d.ts +4 -0
- package/types/src/float/index.d.ts.map +1 -0
- package/types/src/index.d.ts +8 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/locales/index.d.ts +3 -0
- package/types/src/locales/index.d.ts.map +1 -0
- package/types/src/theme/ExhibitTheme.d.ts +71 -0
- package/types/src/theme/ExhibitTheme.d.ts.map +1 -0
- package/types/src/theme/IconSupport.d.ts +11 -0
- package/types/src/theme/IconSupport.d.ts.map +1 -0
- package/types/src/theme/ScrollbarTheming.d.ts +12 -0
- package/types/src/theme/ScrollbarTheming.d.ts.map +1 -0
- package/types/src/theme/index.d.ts +4 -0
- package/types/src/theme/index.d.ts.map +1 -0
- package/browser/cjs/D1lQsAtkthIA1gmc.cjs +0 -11
- package/browser/cjs/ucpR4Be9i5BxBYwW.cjs +0 -6
- package/browser/esm/BuNquM-zy3ad2Jy2.mjs +0 -2891
- package/browser/esm/NQ1Ofksqlh69CQ9k.mjs +0 -44
- package/node/assets/style.css +0 -1
- package/node/esm/B5nodPb2Wtops82M.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;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"","sources":["../../../../src/float/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAE/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC"}
|
|
@@ -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 @@
|
|
|
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
|
+
{"version":3,"file":"ExhibitTheme.d.ts","sourceRoot":"","sources":["../../../../src/theme/ExhibitTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAC9F,KAAK,kBAAkB,EAAE,KAAK,mBAAmB,EAAE,KAAK,aAAa,EACtE,MAAM,eAAe,CAAC;AAQvB,eAAO,MAAM,QAAQ,GAAY,KAAK,MAAM,EAAE,QAAO,MAAM,GAAG,IAAS,KAAG,MAWzE,CAAA;AAED,eAAO,MAAM,YAAY,GAAY,OAAO,MAAM,EAAE,cAAa,MAAU,EAAE,OAAM,OAAO,GAAG,MAAc,KAAG,MAsB7G,CAAA;AAGD,eAAO,MAAM,YAAY,GAAa,WAAW,MAAM,KAAG,MAQzD,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAA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M,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 @@
|
|
|
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"}
|