diff --git a/.eslintrc b/.eslintrc index 0cbbcc2c..81436b9f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -66,6 +66,8 @@ }, "rules": { "@typescript-eslint/ban-ts-ignore": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/no-unused-vars": [ "warn", { diff --git a/CHANGELOG.md b/CHANGELOG.md index b30865b8..cf4a776d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ Thanks to all contributers who improved notistack by opening an issue/PR. -### `notistack@1.0.2` +### `notistack@1.0.3` ###### to be published * **@pctestjfarz**: Add swipe to dismiss feature [#138](/~https://github.com/iamhosseindhv/notistack/issues/138) * **@molynerd**: Add support to update content of snackbar in place [#50](/~https://github.com/iamhosseindhv/notistack/issues/50) @@ -9,6 +9,14 @@ Thanks to all contributers who improved notistack by opening an issue/PR.
+### `notistack@1.0.2` +###### November 26, 2020 +* Add support MUI v5 [#333](/~https://github.com/iamhosseindhv/notistack/pull/333) + + +
+ + ### `notistack@1.0.1` ###### October 6, 2020 * **@thierrysantos**: EnqueueSnackbar supports snackbar with key zero [#318](/~https://github.com/iamhosseindhv/notistack/pull/318) diff --git a/package.json b/package.json index d69fe4ac..c2b787f0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "type": "git" }, "scripts": { - "build": "tsdx build --entry ./src/index.js", + "build": "tsdx build --transpileOnly --entry ./src/index.js", "prebuild": "npm run docs", "prepublishOnly": "npm run build", "docs": "rimraf typedoc.json && typedoc --tsconfig", diff --git a/src/SnackbarItem/Snackbar.js b/src/SnackbarItem/Snackbar.js new file mode 100644 index 00000000..4525b884 --- /dev/null +++ b/src/SnackbarItem/Snackbar.js @@ -0,0 +1,113 @@ +/** + * @link /~https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Snackbar/Snackbar.js + */ +import * as React from 'react'; +import ClickAwayListener from '@material-ui/core/ClickAwayListener'; +import { REASONS } from '../utils/constants'; +import useEventCallback from '../utils/useEventCallback'; + +const Snackbar = React.forwardRef((props, ref) => { + const { + children, + autoHideDuration, + ClickAwayListenerProps, + disableWindowBlurListener = false, + onClose, + onMouseEnter, + onMouseLeave, + open, + resumeHideDuration, + ...other + } = props; + + const timerAutoHide = React.useRef(); + + const handleClose = useEventCallback((...args) => { + if (onClose) { + onClose(...args); + } + }); + + const setAutoHideTimer = useEventCallback((autoHideDurationParam) => { + if (!onClose || autoHideDurationParam == null) { + return; + } + + clearTimeout(timerAutoHide.current); + timerAutoHide.current = setTimeout(() => { + handleClose(null, REASONS.TIMEOUT); + }, autoHideDurationParam); + }); + + React.useEffect(() => { + if (open) { + setAutoHideTimer(autoHideDuration); + } + + return () => { + clearTimeout(timerAutoHide.current); + }; + }, [open, autoHideDuration, setAutoHideTimer]); + + /** + * Pause the timer when the user is interacting with the Snackbar + * or when the user hide the window. + */ + const handlePause = () => { + clearTimeout(timerAutoHide.current); + }; + + /** + * Restart the timer when the user is no longer interacting with the Snackbar + * or when the window is shown back. + */ + const handleResume = React.useCallback(() => { + if (autoHideDuration != null) { + setAutoHideTimer(resumeHideDuration != null ? resumeHideDuration : autoHideDuration * 0.5); + } + }, [autoHideDuration, resumeHideDuration, setAutoHideTimer]); + + const handleMouseEnter = (event) => { + if (onMouseEnter) { + onMouseEnter(event); + } + handlePause(); + }; + + const handleMouseLeave = (event) => { + if (onMouseLeave) { + onMouseLeave(event); + } + handleResume(); + }; + + const handleClickAway = (event) => { + if (onClose) { + onClose(event, REASONS.CLICKAWAY); + } + }; + + React.useEffect(() => { + if (!disableWindowBlurListener && open) { + window.addEventListener('focus', handleResume); + window.addEventListener('blur', handlePause); + + return () => { + window.removeEventListener('focus', handleResume); + window.removeEventListener('blur', handlePause); + }; + } + + return undefined; + }, [disableWindowBlurListener, handleResume, open]); + + return ( + +
+ {children} +
+
+ ); +}); + +export default Snackbar; diff --git a/src/SnackbarItem/SnackbarItem.tsx b/src/SnackbarItem/SnackbarItem.tsx index a02de0f9..41d3c9cf 100644 --- a/src/SnackbarItem/SnackbarItem.tsx +++ b/src/SnackbarItem/SnackbarItem.tsx @@ -1,19 +1,20 @@ import React, { useState, useEffect, useRef } from 'react'; import clsx from 'clsx'; import { withStyles, WithStyles, createStyles, Theme, emphasize } from '@material-ui/core/styles'; -import Snackbar from '@material-ui/core/Snackbar'; -import Slide from '@material-ui/core/Slide'; import Collapse from '@material-ui/core/Collapse'; import SnackbarContent from '../SnackbarContent'; -import { getTransitionDirection, omitNonMuiKeys, omitNonCollapseKeys } from './SnackbarItem.util'; -import { capitalise, allClasses, REASONS, SNACKBAR_INDENTS } from '../utils/constants'; -import { SnackbarProviderProps, OptionalBy, SharedProps, RequiredBy, IconVariant, VariantClassKey, TransitionHandlerProps } from '../index'; -import { Snack } from '../SnackbarProvider'; +import { getTransitionDirection, omitNonCollapseKeys } from './SnackbarItem.util'; +import { allClasses, REASONS, SNACKBAR_INDENTS, objectMerge, DEFAULTS, transformer } from '../utils/constants'; +import { SharedProps, RequiredBy, TransitionHandlerProps, SnackbarProviderProps as ProviderProps } from '../index'; +import defaultIconVariants from '../utils/defaultIconVariants'; import createChainedFunction from '../utils/createChainedFunction'; +import { Snack } from '../SnackbarProvider'; +import Snackbar from './Snackbar'; -// eslint-disable-next-line @typescript-eslint/explicit-function-return-type const styles = (theme: Theme) => { - const backgroundColor = emphasize(theme.palette.background.default, theme.palette.type === 'light' ? 0.8 : 0.98); + // @ts-ignore + const mode = theme.palette.mode || theme.palette.type; + const backgroundColor = emphasize(theme.palette.background.default, mode === 'light' ? 0.8 : 0.98); return createStyles({ ...allClasses.mui, lessPadding: { @@ -84,19 +85,17 @@ const styles = (theme: Theme) => { type RemovedProps = - /** the one received from Provider is processed and passed to snack prop */ - | 'variant' - /** same as above */ - | 'anchorOrigin' - /** the one recevied from enqueueSnackbar is processed in provider, therefore shouldn't be passed to SnackbarItem */ - | 'preventDuplicate' + | 'variant' // the one received from Provider is processed and passed to snack prop + | 'anchorOrigin' // same as above + | 'autoHideDuration' // same as above + | 'preventDuplicate' // the one recevied from enqueueSnackbar is processed in provider, therefore shouldn't be passed to SnackbarItem */ export interface SnackbarItemProps extends WithStyles, RequiredBy, 'onEntered' | 'onExited' | 'onClose'> { snack: Snack; - dense: SnackbarProviderProps['dense']; - iconVariant: OptionalBy; - hideIconVariant: SnackbarProviderProps['hideIconVariant']; + dense: ProviderProps['dense']; + iconVariant: ProviderProps['iconVariant']; + hideIconVariant: ProviderProps['hideIconVariant']; } const SnackbarItem: React.FC = ({ classes, ...props }) => { @@ -123,30 +122,32 @@ const SnackbarItem: React.FC = ({ classes, ...props }) => { }, 125); }; - const callbacks: { [key in keyof TransitionHandlerProps]?: any } = - ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'].reduce((acc, cbName) => ({ - ...acc, - // @ts-ignore - [cbName]: createChainedFunction([props.snack[cbName], props[cbName]], props.snack.key), - }), {}); - const { - action, - content, + style, + dense, ariaAttributes: otherAriaAttributes, className: otherClassName, hideIconVariant, iconVariant, snack, - dense, - TransitionComponent = Slide, - TransitionProps: otherTransitionProps = {}, + action: otherAction, + content: otherContent, + TransitionComponent: otherTranComponent, + TransitionProps: otherTranProps, + transitionDuration: otherTranDuration, + onEnter: ignoredOnEnter, + onEntered: ignoredOnEntered, + onEntering: ignoredOnEntering, + onExit: ignoredOnExit, + onExited: ignoredOnExited, + onExiting: ignoredOnExiting, ...other } = props; const { - key, persist, + key, + open, entered, requestClose, className: singleClassName, @@ -155,36 +156,53 @@ const SnackbarItem: React.FC = ({ classes, ...props }) => { action: singleAction, ariaAttributes: singleAriaAttributes, anchorOrigin, - TransitionProps: singleTransitionProps = {}, + message: snackMessage, + TransitionComponent: singleTranComponent, + TransitionProps: singleTranProps, + transitionDuration: singleTranDuration, + onEnter, + onEntered, + onEntering, + onExit, + onExited, + onExiting, ...singleSnackProps } = snack; - const icon = iconVariant[variant]; + const icon = { + ...defaultIconVariants, + ...iconVariant, + }[variant]; const ariaAttributes = { - 'aria-describedby': 'client-snackbar', - ...otherAriaAttributes, - ...singleAriaAttributes, + 'aria-describedby': 'notistack-snackbar', + ...objectMerge(singleAriaAttributes, otherAriaAttributes), }; + const TransitionComponent = singleTranComponent || otherTranComponent || DEFAULTS.TransitionComponent; + const transitionDuration = objectMerge(singleTranDuration, otherTranDuration, DEFAULTS.transitionDuration); const transitionProps = { direction: getTransitionDirection(anchorOrigin), - ...otherTransitionProps, - ...singleTransitionProps, - onExited: handleExitedScreen, + ...objectMerge(singleTranProps, otherTranProps), }; - let finalAction = singleAction || action; - if (typeof finalAction === 'function') { - // @ts-ignore - finalAction = finalAction(key); + let action = singleAction || otherAction; + if (typeof action === 'function') { + action = action(key); } - let snackContent = singleContent || content; - if (snackContent && typeof snackContent === 'function') { - snackContent = snackContent(key, snack.message); + let content = singleContent || otherContent; + if (typeof content === 'function') { + content = content(key, snack.message); } + const callbacks: { [key in keyof TransitionHandlerProps]?: any } = + ['onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'].reduce((acc, cbName) => ({ + ...acc, + // @ts-ignore + [cbName]: createChainedFunction([props.snack[cbName], props[cbName]], props.snack.key), + }), {}); + return ( = ({ classes, ...props }) => { classes={omitNonCollapseKeys(classes, dense)} onExited={callbacks.onExited} > + {/* @ts-ignore */} {/* @ts-ignore */} - {snackContent || ( - -
- {!hideIconVariant ? icon : null} - {snack.message} -
- {finalAction && ( -
{finalAction}
- )} -
- )} + + {/* @ts-ignore */} + {content || ( + +
+ {!hideIconVariant ? icon : null} + {snackMessage} +
+ {action && ( +
{action}
+ )} +
+ )} +
); diff --git a/src/SnackbarItem/SnackbarItem.util.ts b/src/SnackbarItem/SnackbarItem.util.ts index d46f50f9..9903014c 100644 --- a/src/SnackbarItem/SnackbarItem.util.ts +++ b/src/SnackbarItem/SnackbarItem.util.ts @@ -1,8 +1,7 @@ import clsx from 'clsx'; -import { SnackbarProps } from '@material-ui/core/Snackbar'; -import { allClasses } from '../utils/constants'; import { SnackbarItemProps } from './SnackbarItem'; import { Snack } from '../SnackbarProvider'; +import { SnackbarProviderProps } from '..'; const DIRECTION = { right: 'left', @@ -19,24 +18,10 @@ export const getTransitionDirection = (anchorOrigin: Snack['anchorOrigin']): Dir return DIRECTION[anchorOrigin.vertical]; }; -/** - * Omit all class keys except those allowed in material-ui snackbar - */ -export const omitNonMuiKeys: (classes: { wrappedRoot: string } & SnackbarProps['classes']) => SnackbarProps['classes'] = (classes) => { - const snackbarMuiClasses = Object.keys(classes) - // @ts-ignore - .filter(key => allClasses.mui[key] !== undefined).reduce((obj, key) => ({ ...obj, [key]: classes[key] }), {}); - - return { - ...snackbarMuiClasses, - root: clsx(classes.root, classes.wrappedRoot), - }; -}; - /** * Omit all class keys except what we need for collapse component */ -export const omitNonCollapseKeys = (classes: SnackbarItemProps['classes'], dense: SnackbarItemProps['dense']): { container: string; wrapper: string } => ({ +export const omitNonCollapseKeys = (classes: SnackbarItemProps['classes'], dense: SnackbarProviderProps['dense']): { container: string; wrapper: string } => ({ container: classes.collapseContainer, wrapper: clsx(classes.collapseWrapper, { [classes.collapseWrapperDense]: dense }), }); diff --git a/src/SnackbarProvider.tsx b/src/SnackbarProvider.tsx index 6be1aaf0..d9738d48 100644 --- a/src/SnackbarProvider.tsx +++ b/src/SnackbarProvider.tsx @@ -2,15 +2,13 @@ import React, { Component } from 'react'; import { createPortal } from 'react-dom'; import clsx from 'clsx'; import SnackbarContext from './SnackbarContext'; -import { MESSAGES, REASONS, originKeyExtractor, omitContainerKeys, merge, DEFAULTS, isDefined } from './utils/constants'; +import { MESSAGES, REASONS, originKeyExtractor, omitContainerKeys, DEFAULTS, merge, transformer, isDefined } from './utils/constants'; import SnackbarItem from './SnackbarItem'; import SnackbarContainer from './SnackbarContainer'; import warning from './utils/warning'; -import defaultIconVariants from './utils/defaultIconVariants'; -import { SnackbarProviderProps, ContainerClassKey, SnackbarKey, SnackbarMessage, OptionsObject, RequiredBy, ProviderContext, TransitionHandlerProps } from '.'; +import { SnackbarProviderProps, SnackbarKey, SnackbarMessage, OptionsObject, RequiredBy, ProviderContext, TransitionHandlerProps } from '.'; import createChainedFunction from './utils/createChainedFunction'; - type Reducer = (state: State) => State; type SnacksByPosition = { [key: string]: Snack[] }; @@ -41,14 +39,20 @@ class SnackbarProvider extends Component { } get maxSnack(): number { - return this.props.maxSnack || 3; + return this.props.maxSnack || DEFAULTS.maxSnack; } /** * Adds a new snackbar to the queue to be presented. * Returns generated or user defined key referencing the new snackbar or null */ - enqueueSnackbar = (message: SnackbarMessage, { key, preventDuplicate, ...options }: OptionsObject = {}): SnackbarKey => { + enqueueSnackbar = (message: SnackbarMessage, opts: OptionsObject = {}): SnackbarKey => { + const { + key, + preventDuplicate, + ...options + } = opts; + const hasSpecifiedKey = isDefined(key); const id = hasSpecifiedKey ? (key as SnackbarKey) : new Date().getTime() + Math.random(); @@ -188,6 +192,8 @@ class SnackbarProvider extends Component { * Hide a snackbar after its timeout. */ handleCloseSnack: TransitionHandlerProps['onClose'] = (event, reason, key) => { + // should not use createChainedFunction for onClose. + // because this.closeSnackbar called this function if (this.props.onClose) { this.props.onClose(event, reason, key); } @@ -253,15 +259,16 @@ class SnackbarProvider extends Component { render(): JSX.Element { const { contextValue } = this.state; const { - variant, - maxSnack, - anchorOrigin, - preventDuplicate, + maxSnack: dontspread1, + preventDuplicate: dontspread2, + variant: dontspread3, + anchorOrigin: dontspread4, + iconVariant, + dense = DEFAULTS.dense, + hideIconVariant = DEFAULTS.hideIconVariant, domRoot, children, classes = {}, - dense = false, - hideIconVariant = false, ...props } = this.props; @@ -274,11 +281,6 @@ class SnackbarProvider extends Component { }; }, {}); - const iconVariant = { - ...defaultIconVariants, - ...this.props.iconVariant, - }; - const snackbars = Object.keys(categ).map((origin) => { const snacks = categ[origin]; return ( @@ -288,17 +290,17 @@ class SnackbarProvider extends Component { anchorOrigin={snacks[0].anchorOrigin} className={clsx( classes.containerRoot, - classes[`containerAnchorOrigin${origin}` as ContainerClassKey], + classes[transformer.toContainerAnchorOrigin(origin)], )} > {snacks.map(snack => ( = Omit & Partial> export type RequiredBy = Omit & Required> export type ClassNameMap = Record; type Omit = Pick> @@ -109,6 +108,8 @@ export interface TransitionHandlerProps { onExited: TransitionHandler; } +export type SnackbarContentProps = React.HTMLAttributes + /** * @category Shared */ @@ -155,18 +156,13 @@ export interface SnackbarProps extends StandardProps; /** * The duration for the transition, in milliseconds. - * You may specify a single timeout for all transitions, or individually with an object - * in the following shape: - * ```js - * timeout={500} - * ``` - * or individually: + * You may specify the duration with an object in the following shape: * ```js - * timeout={{ enter: 300, exit: 500 }} + * transitionDuration={{ enter: 300, exit: 500 }} * ``` * @default { enter: 225, exit: 195 } */ - transitionDuration?: number | { appear?: number; enter?: number; exit?: number }; + transitionDuration?: { appear?: number; enter?: number; exit?: number }; /** * Properties applied to Transition component (e.g. Slide, Grow, Zoom, etc.) */ diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 7d675c54..633cd6a8 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,5 +1,6 @@ +import Slide from '@material-ui/core/Slide'; import { SnackbarClassKey } from '@material-ui/core/Snackbar'; -import { CloseReason, ContainerClassKey, SnackbarProviderProps } from '../index'; +import { CloseReason, ContainerClassKey, SnackbarProviderProps, VariantType, SnackbarOrigin, VariantClassKey } from '../index'; import { SnackbarItemProps } from '../SnackbarItem'; import { Snack } from '../SnackbarProvider'; @@ -36,6 +37,20 @@ export const SNACKBAR_INDENTS = { snackbar: { default: 6, dense: 2 }, }; +export const DEFAULTS = { + maxSnack: 3, + dense: false, + hideIconVariant: false, + variant: 'default' as VariantType, + autoHideDuration: 5000, + anchorOrigin: { vertical: 'bottom', horizontal: 'left' } as SnackbarOrigin, + TransitionComponent: Slide, + transitionDuration: { + enter: 225, + exit: 195, + }, +}; + export const capitalise = (text: string): string => text.charAt(0).toUpperCase() + text.slice(1); export const originKeyExtractor = (anchor: Snack['anchorOrigin']): string => ( @@ -50,17 +65,24 @@ export const omitContainerKeys = (classes: SnackbarProviderProps['classes']): Sn Object.keys(classes).filter(key => !allClasses.container[key]).reduce((obj, key) => ({ ...obj, [key]: classes[key] }), {}) ); -export const isDefined = (value: string | null | undefined | number): boolean => (!!value || value === 0); +export const REASONS: { [key: string]: CloseReason } = { + TIMEOUT: 'timeout', + CLICKAWAY: 'clickaway', + MAXSNACK: 'maxsnack', + INSTRUCTED: 'instructed', +}; -export const DEFAULTS = { - variant: 'default', - autoHideDuration: 5000, - anchorOrigin: { - vertical: 'bottom', - horizontal: 'left', - }, +/** Tranforms classes name */ +export const transformer = { + toContainerAnchorOrigin: (origin: string) => `anchorOrigin${origin}` as ContainerClassKey, + toAnchorOrigin: ({ vertical, horizontal }: SnackbarOrigin) => ( + `anchorOrigin${capitalise(vertical)}${capitalise(horizontal)}` as SnackbarClassKey + ), + toVariant: (variant: VariantType) => `variant${capitalise(variant)}` as VariantClassKey, }; +export const isDefined = (value: string | null | undefined | number): boolean => (!!value || value === 0); + const numberOrNull = (numberish?: number | null) => ( typeof numberish === 'number' || numberish === null ); @@ -76,8 +98,10 @@ export const merge = (options, props, defaults) => (name: keyof Snack): any => { return options[name] || props[name] || defaults[name]; }; -export const REASONS: { [key: string]: CloseReason } = { - CLICKAWAY: 'clickaway', - MAXSNACK: 'maxsnack', - INSTRUCTED: 'instructed', -}; +export function objectMerge(options = {}, props = {}, defaults = {}) { + return { + ...defaults, + ...props, + ...options, + }; +} diff --git a/src/utils/defaultIconVariants.tsx b/src/utils/defaultIconVariants.tsx index 89f3a3e3..f48fa242 100644 --- a/src/utils/defaultIconVariants.tsx +++ b/src/utils/defaultIconVariants.tsx @@ -37,7 +37,8 @@ const iconStyles = { marginInlineEnd: 8, }; -const defaultIconVariants: Omit = { +const defaultIconVariants: IconVariant = { + default: undefined, success: , warning: , error: , diff --git a/src/utils/useEventCallback.js b/src/utils/useEventCallback.js new file mode 100644 index 00000000..ec99d811 --- /dev/null +++ b/src/utils/useEventCallback.js @@ -0,0 +1,14 @@ +/** + * @link /~https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/utils/useEventCallback.js + */ +import * as React from 'react'; + +const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect; + +export default function useEventCallback(fn) { + const ref = React.useRef(fn); + useEnhancedEffect(() => { + ref.current = fn; + }); + return React.useCallback((...args) => (0, ref.current)(...args), []); +} diff --git a/typedoc.json b/typedoc.json index 2c4a9215..74ece5a1 100644 --- a/typedoc.json +++ b/typedoc.json @@ -208,7 +208,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 264, + "line": 260, "character": 17 } ], @@ -270,7 +270,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 263, + "line": 259, "character": 19 } ], @@ -1951,7 +1951,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 262, + "line": 258, "character": 29 } ], @@ -1992,7 +1992,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 51, + "line": 50, "character": 11 } ], @@ -2015,7 +2015,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 55, + "line": 54, "character": 9 } ], @@ -2038,7 +2038,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 67, + "line": 66, "character": 8 } ], @@ -2061,7 +2061,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 59, + "line": 58, "character": 11 } ], @@ -2084,7 +2084,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 63, + "line": 62, "character": 11 } ], @@ -2110,7 +2110,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 47, + "line": 46, "character": 28 } ] @@ -2147,13 +2147,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 200, + "line": 196, "character": 10 } ], "type": { "type": "reference", - "id": 187, + "id": 184, "name": "SnackbarAction" }, "inheritedFrom": { @@ -2184,13 +2184,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 195, + "line": 191, "character": 11 } ], "type": { "type": "reference", - "id": 191, + "id": 188, "name": "SnackbarContentCallback" }, "inheritedFrom": { @@ -2220,13 +2220,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 211, + "line": 207, "character": 7 } ], "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } }, @@ -2251,7 +2251,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 216, + "line": 212, "character": 11 } ], @@ -2294,7 +2294,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 190, + "line": 186, "character": 20 } ], @@ -2342,13 +2342,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 185, + "line": 181, "character": 11 } ], "type": { "type": "reference", - "id": 184, + "id": 181, "name": "VariantType" }, "inheritedFrom": { @@ -2375,7 +2375,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 206, + "line": 202, "character": 30 } ], @@ -2407,7 +2407,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 269, + "line": 265, "character": 17 } ], @@ -2442,7 +2442,7 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -2456,7 +2456,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 269, + "line": 265, "character": 18 } ] @@ -2474,7 +2474,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 268, + "line": 264, "character": 19 } ], @@ -2508,7 +2508,7 @@ }, "type": { "type": "reference", - "id": 186, + "id": 183, "name": "SnackbarMessage" } }, @@ -2530,7 +2530,7 @@ ], "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -2538,7 +2538,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 268, + "line": 264, "character": 20 } ] @@ -2559,7 +2559,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 267, + "line": 263, "character": 32 } ] @@ -2596,13 +2596,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 200, + "line": 196, "character": 10 } ], "type": { "type": "reference", - "id": 187, + "id": 184, "name": "SnackbarAction" } }, @@ -2628,13 +2628,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 195, + "line": 191, "character": 11 } ], "type": { "type": "reference", - "id": 191, + "id": 188, "name": "SnackbarContentCallback" } }, @@ -2659,7 +2659,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 190, + "line": 186, "character": 20 } ], @@ -2702,13 +2702,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 185, + "line": 181, "character": 11 } ], "type": { "type": "reference", - "id": 184, + "id": 181, "name": "VariantType" } } @@ -2728,7 +2728,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 179, + "line": 175, "character": 28 } ], @@ -2746,7 +2746,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 179, + "line": 175, "character": 36 } ] @@ -2765,7 +2765,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 179, + "line": 175, "character": 68 } ] @@ -2805,7 +2805,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 44, + "line": 43, "character": 14 } ], @@ -2838,7 +2838,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 43, + "line": 42, "character": 12 } ], @@ -2870,7 +2870,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 42, + "line": 41, "character": 31 } ] @@ -2906,7 +2906,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 155, + "line": 156, "character": 23 } ], @@ -2936,7 +2936,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 173, + "line": 169, "character": 19 } ], @@ -2967,7 +2967,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 120, + "line": 121, "character": 16 } ], @@ -2992,7 +2992,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 137, + "line": 138, "character": 18 } ], @@ -3022,7 +3022,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 128, + "line": 129, "character": 20 } ], @@ -3099,7 +3099,7 @@ "typeArguments": [ { "type": "reference", - "id": 175, + "id": 172, "typeArguments": [ { "type": "reference", @@ -3144,7 +3144,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 142, + "line": 143, "character": 29 } ], @@ -3313,7 +3313,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 150, + "line": 151, "character": 22 } ], @@ -3367,7 +3367,7 @@ "isOptional": true }, "comment": { - "shortText": "The duration for the transition, in milliseconds.\nYou may specify a single timeout for all transitions, or individually with an object\nin the following shape:\n```js\n timeout={500}\n```\nor individually:\n```js\ntimeout={{ enter: 300, exit: 500 }}\n```", + "shortText": "The duration for the transition, in milliseconds.\nYou may specify the duration with an object in the following shape:\n```js\ntransitionDuration={{ enter: 300, exit: 500 }}\n```", "tags": [ { "tag": "default", @@ -3378,7 +3378,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 169, + "line": 165, "character": 22 } ], @@ -3387,7 +3387,7 @@ "types": [ { "type": "intrinsic", - "name": "number" + "name": "undefined" }, { "type": "reflection", @@ -3412,8 +3412,8 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 169, - "character": 42 + "line": 165, + "character": 33 } ], "type": { @@ -3442,8 +3442,8 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 169, - "character": 58 + "line": 165, + "character": 49 } ], "type": { @@ -3472,8 +3472,8 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 169, - "character": 73 + "line": 165, + "character": 64 } ], "type": { @@ -3501,13 +3501,6 @@ 30 ] } - ], - "sources": [ - { - "fileName": "src/index.d.ts", - "line": 169, - "character": 33 - } ] } } @@ -3539,7 +3532,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 115, + "line": 116, "character": 30 } ], @@ -3801,13 +3794,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 200, + "line": 196, "character": 10 } ], "type": { "type": "reference", - "id": 187, + "id": 184, "name": "SnackbarAction" }, "inheritedFrom": { @@ -3830,7 +3823,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 228, + "line": 224, "character": 12 } ], @@ -3866,7 +3859,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 251, + "line": 247, "character": 11 } ], @@ -3875,11 +3868,11 @@ "typeArguments": [ { "type": "reference", - "id": 175, + "id": 172, "typeArguments": [ { "type": "reference", - "id": 215, + "id": 212, "name": "CombinedClassKey" } ], @@ -3911,13 +3904,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 195, + "line": 191, "character": 11 } ], "type": { "type": "reference", - "id": 191, + "id": 188, "name": "SnackbarContentCallback" }, "inheritedFrom": { @@ -3947,7 +3940,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 233, + "line": 229, "character": 9 } ], @@ -3984,7 +3977,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 247, + "line": 243, "character": 11 } ], @@ -4014,7 +4007,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 243, + "line": 239, "character": 19 } ], @@ -4051,7 +4044,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 255, + "line": 251, "character": 15 } ], @@ -4088,7 +4081,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 238, + "line": 234, "character": 12 } ], @@ -4127,7 +4120,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 190, + "line": 186, "character": 20 } ], @@ -4169,7 +4162,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 259, + "line": 255, "character": 7 } ], @@ -4206,13 +4199,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 185, + "line": 181, "character": 11 } ], "type": { "type": "reference", - "id": 184, + "id": 181, "name": "VariantType" }, "inheritedFrom": { @@ -4245,7 +4238,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 223, + "line": 219, "character": 38 } ], @@ -4298,13 +4291,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 85, + "line": 84, "character": 11 } ], "type": { "type": "reference", - "id": 196, + "id": 193, "name": "TransitionCloseHandler" } }, @@ -4322,13 +4315,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 89, + "line": 88, "character": 11 } ], "type": { "type": "reference", - "id": 208, + "id": 205, "name": "TransitionHandler" } }, @@ -4346,13 +4339,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 97, + "line": 96, "character": 13 } ], "type": { "type": "reference", - "id": 202, + "id": 199, "name": "TransitionEnterHandler" } }, @@ -4370,13 +4363,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 93, + "line": 92, "character": 14 } ], "type": { "type": "reference", - "id": 208, + "id": 205, "name": "TransitionHandler" } }, @@ -4394,13 +4387,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 101, + "line": 100, "character": 10 } ], "type": { "type": "reference", - "id": 208, + "id": 205, "name": "TransitionHandler" } }, @@ -4418,13 +4411,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 109, + "line": 108, "character": 12 } ], "type": { "type": "reference", - "id": 208, + "id": 205, "name": "TransitionHandler" } }, @@ -4442,13 +4435,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 105, + "line": 104, "character": 13 } ], "type": { "type": "reference", - "id": 208, + "id": 205, "name": "TransitionHandler" } } @@ -4471,13 +4464,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 73, + "line": 72, "character": 39 } ] }, { - "id": 175, + "id": 172, "name": "ClassNameMap", "kind": 4194304, "kindString": "Type alias", @@ -4486,7 +4479,7 @@ }, "typeParameter": [ { - "id": 176, + "id": 173, "name": "ClassKey", "kind": 131072, "kindString": "Type parameter", @@ -4502,7 +4495,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 12, + "line": 11, "character": 24 } ], @@ -4526,7 +4519,7 @@ } }, { - "id": 185, + "id": 182, "name": "CloseReason", "kind": 4194304, "kindString": "Type alias", @@ -4536,7 +4529,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 18, + "line": 17, "character": 23 } ], @@ -4563,7 +4556,7 @@ } }, { - "id": 215, + "id": 212, "name": "CombinedClassKey", "kind": 4194304, "kindString": "Type alias", @@ -4573,7 +4566,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 40, + "line": 39, "character": 28 } ], @@ -4582,12 +4575,12 @@ "types": [ { "type": "reference", - "id": 214, + "id": 211, "name": "VariantClassKey" }, { "type": "reference", - "id": 213, + "id": 210, "name": "ContainerClassKey" }, { @@ -4598,7 +4591,7 @@ } }, { - "id": 213, + "id": 210, "name": "ContainerClassKey", "kind": 4194304, "kindString": "Type alias", @@ -4608,7 +4601,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 30, + "line": 29, "character": 29 } ], @@ -4647,7 +4640,7 @@ } }, { - "id": 180, + "id": 177, "name": "Modify", "kind": 4194304, "kindString": "Type alias", @@ -4656,7 +4649,7 @@ }, "typeParameter": [ { - "id": 181, + "id": 178, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4665,7 +4658,7 @@ } }, { - "id": 182, + "id": 179, "name": "R", "kind": 131072, "kindString": "Type parameter", @@ -4677,7 +4670,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 14, + "line": 13, "character": 11 } ], @@ -4724,7 +4717,7 @@ } }, { - "id": 177, + "id": 174, "name": "Omit", "kind": 4194304, "kindString": "Type alias", @@ -4733,7 +4726,7 @@ }, "typeParameter": [ { - "id": 178, + "id": 175, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4742,7 +4735,7 @@ } }, { - "id": 179, + "id": 176, "name": "K", "kind": 131072, "kindString": "Type parameter", @@ -4762,7 +4755,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 13, + "line": 12, "character": 9 } ], @@ -4805,7 +4798,7 @@ }, { "id": 169, - "name": "OptionalBy", + "name": "RequiredBy", "kind": 4194304, "kindString": "Type alias", "flags": { @@ -4851,107 +4844,7 @@ "types": [ { "type": "reference", - "id": 177, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - }, - { - "type": "typeParameter", - "name": "K", - "constraint": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "typeParameter", - "name": "T" - } - } - } - ], - "name": "Omit" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - }, - { - "type": "typeParameter", - "name": "K", - "constraint": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "typeParameter", - "name": "T" - } - } - } - ], - "name": "Pick" - } - ], - "name": "Partial" - } - ] - } - }, - { - "id": 172, - "name": "RequiredBy", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "typeParameter": [ - { - "id": 173, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - }, - { - "id": 174, - "name": "K", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "typeParameter", - "name": "T" - } - } - } - ], - "sources": [ - { - "fileName": "src/index.d.ts", - "line": 11, - "character": 22 - } - ], - "type": { - "type": "intersection", - "types": [ - { - "type": "reference", - "id": 177, + "id": 174, "typeArguments": [ { "type": "typeParameter", @@ -5004,7 +4897,7 @@ } }, { - "id": 187, + "id": 184, "name": "SnackbarAction", "kind": 4194304, "kindString": "Type alias", @@ -5014,7 +4907,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 21, + "line": 20, "character": 26 } ], @@ -5028,7 +4921,7 @@ { "type": "reflection", "declaration": { - "id": 188, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5037,7 +4930,7 @@ }, "signatures": [ { - "id": 189, + "id": 186, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5046,7 +4939,7 @@ }, "parameters": [ { - "id": 190, + "id": 187, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5055,7 +4948,7 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -5069,7 +4962,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 21, + "line": 20, "character": 46 } ] @@ -5079,7 +4972,7 @@ } }, { - "id": 191, + "id": 188, "name": "SnackbarContentCallback", "kind": 4194304, "kindString": "Type alias", @@ -5089,7 +4982,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 22, + "line": 21, "character": 35 } ], @@ -5103,7 +4996,7 @@ { "type": "reflection", "declaration": { - "id": 192, + "id": 189, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5112,7 +5005,7 @@ }, "signatures": [ { - "id": 193, + "id": 190, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5121,7 +5014,7 @@ }, "parameters": [ { - "id": 194, + "id": 191, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5130,12 +5023,12 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } }, { - "id": 195, + "id": 192, "name": "message", "kind": 32768, "kindString": "Parameter", @@ -5144,7 +5037,7 @@ }, "type": { "type": "reference", - "id": 186, + "id": 183, "name": "SnackbarMessage" } } @@ -5158,7 +5051,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 22, + "line": 21, "character": 55 } ] @@ -5168,7 +5061,33 @@ } }, { - "id": 183, + "id": 213, + "name": "SnackbarContentProps", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/index.d.ts", + "line": 111, + "character": 32 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "name": "HTMLDivElement" + } + ], + "name": "HTMLAttributes" + } + }, + { + "id": 180, "name": "SnackbarKey", "kind": 4194304, "kindString": "Type alias", @@ -5178,7 +5097,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 16, + "line": 15, "character": 23 } ], @@ -5197,7 +5116,7 @@ } }, { - "id": 186, + "id": 183, "name": "SnackbarMessage", "kind": 4194304, "kindString": "Type alias", @@ -5207,7 +5126,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 20, + "line": 19, "character": 27 } ], @@ -5226,7 +5145,7 @@ } }, { - "id": 196, + "id": 193, "name": "TransitionCloseHandler", "kind": 4194304, "kindString": "Type alias", @@ -5236,14 +5155,14 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 26, + "line": 25, "character": 34 } ], "type": { "type": "reflection", "declaration": { - "id": 197, + "id": 194, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5252,7 +5171,7 @@ }, "signatures": [ { - "id": 198, + "id": 195, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5261,7 +5180,7 @@ }, "parameters": [ { - "id": 199, + "id": 196, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -5289,7 +5208,7 @@ } }, { - "id": 200, + "id": 197, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -5298,12 +5217,12 @@ }, "type": { "type": "reference", - "id": 185, + "id": 182, "name": "CloseReason" } }, { - "id": 201, + "id": 198, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5313,7 +5232,7 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -5327,7 +5246,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 26, + "line": 25, "character": 36 } ] @@ -5335,7 +5254,7 @@ } }, { - "id": 202, + "id": 199, "name": "TransitionEnterHandler", "kind": 4194304, "kindString": "Type alias", @@ -5345,14 +5264,14 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 27, + "line": 26, "character": 34 } ], "type": { "type": "reflection", "declaration": { - "id": 203, + "id": 200, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5361,7 +5280,7 @@ }, "signatures": [ { - "id": 204, + "id": 201, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5370,7 +5289,7 @@ }, "parameters": [ { - "id": 205, + "id": 202, "name": "node", "kind": 32768, "kindString": "Parameter", @@ -5383,7 +5302,7 @@ } }, { - "id": 206, + "id": 203, "name": "isAppearing", "kind": 32768, "kindString": "Parameter", @@ -5396,7 +5315,7 @@ } }, { - "id": 207, + "id": 204, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5405,7 +5324,7 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -5419,7 +5338,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 27, + "line": 26, "character": 36 } ] @@ -5427,7 +5346,7 @@ } }, { - "id": 208, + "id": 205, "name": "TransitionHandler", "kind": 4194304, "kindString": "Type alias", @@ -5437,14 +5356,14 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 28, + "line": 27, "character": 29 } ], "type": { "type": "reflection", "declaration": { - "id": 209, + "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5453,7 +5372,7 @@ }, "signatures": [ { - "id": 210, + "id": 207, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5462,7 +5381,7 @@ }, "parameters": [ { - "id": 211, + "id": 208, "name": "node", "kind": 32768, "kindString": "Parameter", @@ -5475,7 +5394,7 @@ } }, { - "id": 212, + "id": 209, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5484,7 +5403,7 @@ }, "type": { "type": "reference", - "id": 183, + "id": 180, "name": "SnackbarKey" } } @@ -5498,7 +5417,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 28, + "line": 27, "character": 31 } ] @@ -5506,7 +5425,7 @@ } }, { - "id": 214, + "id": 211, "name": "VariantClassKey", "kind": 4194304, "kindString": "Type alias", @@ -5516,7 +5435,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 39, + "line": 38, "character": 27 } ], @@ -5543,7 +5462,7 @@ } }, { - "id": 184, + "id": 181, "name": "VariantType", "kind": 4194304, "kindString": "Type alias", @@ -5553,7 +5472,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 17, + "line": 16, "character": 23 } ], @@ -5584,7 +5503,7 @@ } }, { - "id": 224, + "id": 222, "name": "WithSnackbarProps", "kind": 4194304, "kindString": "Type alias", @@ -5594,7 +5513,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 279, + "line": 275, "character": 29 } ], @@ -5605,7 +5524,7 @@ } }, { - "id": 222, + "id": 220, "name": "useSnackbar", "kind": 64, "kindString": "Function", @@ -5614,7 +5533,7 @@ }, "signatures": [ { - "id": 223, + "id": 221, "name": "useSnackbar", "kind": 4096, "kindString": "Call signature", @@ -5631,13 +5550,13 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 276, + "line": 272, "character": 27 } ] }, { - "id": 216, + "id": 214, "name": "withSnackbar", "kind": 64, "kindString": "Function", @@ -5646,7 +5565,7 @@ }, "signatures": [ { - "id": 217, + "id": 215, "name": "withSnackbar", "kind": 4096, "kindString": "Call signature", @@ -5655,7 +5574,7 @@ }, "typeParameter": [ { - "id": 218, + "id": 216, "name": "P", "kind": 131072, "kindString": "Type parameter", @@ -5671,7 +5590,7 @@ ], "parameters": [ { - "id": 219, + "id": 217, "name": "component", "kind": 32768, "kindString": "Parameter", @@ -5703,7 +5622,7 @@ "typeArguments": [ { "type": "reference", - "id": 177, + "id": 174, "typeArguments": [ { "type": "typeParameter", @@ -5732,7 +5651,7 @@ { "type": "reflection", "declaration": { - "id": 220, + "id": 218, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5741,7 +5660,7 @@ }, "children": [ { - "id": 221, + "id": 219, "name": "WrappedComponent", "kind": 32, "kindString": "Variable", @@ -5751,7 +5670,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 273, + "line": 269, "character": 77 } ], @@ -5777,14 +5696,14 @@ "title": "Variables", "kind": 32, "children": [ - 221 + 219 ] } ], "sources": [ { "fileName": "src/index.d.ts", - "line": 273, + "line": 269, "character": 58 } ] @@ -5797,7 +5716,7 @@ "sources": [ { "fileName": "src/index.d.ts", - "line": 272, + "line": 268, "character": 28 } ] @@ -5859,32 +5778,32 @@ "title": "Type aliases", "kind": 4194304, "children": [ - 175, - 185, - 215, - 213, - 180, + 172, + 182, + 212, + 210, 177, + 174, 169, - 172, - 187, - 191, - 183, - 186, - 196, - 202, - 208, - 214, 184, - 224 + 188, + 213, + 180, + 183, + 193, + 199, + 205, + 211, + 181, + 222 ] }, { "title": "Functions", "kind": 64, "children": [ - 222, - 216 + 220, + 214 ] } ]