@reapit/elements 2.2.2 → 2.3.0-beta.1
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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/validators/__tests__/validate-special-chars.test.d.ts +1 -0
- package/dist/cjs/utils/validators/error-messages.d.ts +1 -0
- package/dist/cjs/utils/validators/validate-special-chars.d.ts +1 -0
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/validators/__tests__/validate-special-chars.test.d.ts +1 -0
- package/dist/esm/utils/validators/error-messages.d.ts +1 -0
- package/dist/esm/utils/validators/validate-special-chars.d.ts +1 -0
- package/dist/index.css +6 -6
- package/package.json +1 -1
- package/src/tests/badges/badge-branches.svg +1 -1
- package/src/tests/badges/badge-functions.svg +1 -1
- package/src/tests/badges/badge-lines.svg +1 -1
- package/src/tests/badges/badge-statements.svg +1 -1
- package/v3/components/button/__styles__/index.d.ts +6 -0
- package/v3/components/button/button.d.ts +11 -6
- package/v3/components/form-layout/__styles__/index.d.ts +13 -0
- package/v3/components/form-layout/__tests__/form-layout.test.d.ts +1 -0
- package/v3/components/form-layout/form-layout.d.ts +6 -0
- package/v3/components/form-layout/index.d.ts +2 -0
- package/v3/components/grid/__styles__/index.d.ts +3 -0
- package/v3/components/grid/__styles__/units.d.ts +2 -0
- package/v3/components/grid/grid-responsive.d.ts +8 -0
- package/v3/components/grid/grid.d.ts +1 -0
- package/v3/components/icon/icons/index.d.ts +1 -0
- package/v3/components/icon/icons/infographic-icons/selectInfographic.d.ts +3 -0
- package/v3/components/input/input.d.ts +4 -3
- package/v3/components/input-group/input-group.d.ts +3 -2
- package/v3/components/multi-select/__styles__/index.d.ts +13 -0
- package/v3/components/multi-select/multi-select.d.ts +26 -1
- package/v3/components/nav/nav-responsive.d.ts +3 -1
- package/v3/components/searchable-dropdown/__styles__/index.d.ts +15 -0
- package/v3/components/searchable-dropdown/__tests__/searchable-dropdown.test.d.ts +1 -0
- package/v3/components/searchable-dropdown/index.d.ts +5 -0
- package/v3/components/searchable-dropdown/searchable-dropdown.d.ts +33 -0
- package/v3/components/select/select.d.ts +4 -3
- package/v3/components/status-indicator/__styles__/index.d.ts +1 -0
- package/v3/components/status-indicator/status-indicator.d.ts +1 -0
- package/v3/components/steps/__styles__/index.d.ts +12 -0
- package/v3/components/steps/steps.d.ts +12 -1
- package/v3/components/table/__styles__/index.d.ts +7 -0
- package/v3/components/table/__tests__/molecules.test.d.ts +1 -0
- package/v3/components/table/molecules.d.ts +16 -11
- package/v3/components/table/table.d.ts +22 -9
- package/v3/components/tabs/__styles__/index.d.ts +18 -0
- package/v3/components/tabs/__tests__/tabs.test.d.ts +1 -0
- package/v3/components/tabs/index.d.ts +2 -0
- package/v3/components/tabs/tabs.d.ts +13 -0
- package/v3/components/textarea/textarea.d.ts +3 -2
- package/v3/components/toggle/__styles__/index.d.ts +7 -2
- package/v3/components/toggle/toggle.d.ts +8 -3
- package/v3/components/typography/__styles__/index.d.ts +5 -2
- package/v3/components/typography/typography.d.ts +10 -7
- package/v3/helpers/intent.d.ts +1 -1
- package/v3/hooks/use-modal/__tests__/index.test.d.ts +1 -0
- package/v3/hooks/use-modal/index.d.ts +6 -5
- package/v3/hooks/use-portal/__tests__/index.test.d.ts +1 -0
- package/v3/hooks/use-portal/index.d.ts +6 -13
- package/v3/hooks/use-snack/__tests__/index.test.d.ts +1 -0
- package/v3/hooks/use-snack/index.d.ts +2 -3
- package/v3/index.css +360 -277
- package/v3/index.d.ts +3 -0
- package/v3/index.js +2 -2
- package/v3/index.js.map +1 -1
- package/v3/storybook/demo-block.d.ts +9 -0
- package/v3/storybook/random-id.d.ts +1 -0
- package/v3/styles/borders.d.ts +24 -7
- package/v3/styles/intent.d.ts +1 -0
- package/v3/styles/sizing.d.ts +7 -54
- package/v3/styles/spacing.d.ts +74 -6
- package/v3/styles/theming-colour-block.d.ts +6 -0
- package/v3/styles/typography.d.ts +2 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const isNarrow = "@media only screen and (max-width: 1024px)";
|
|
2
3
|
export declare const ElTableCellNarrowOrder1: string;
|
|
3
4
|
export declare const ElTableCellNarrowOrder2: string;
|
|
4
5
|
export declare const ElTableCellNarrowOrder3: string;
|
|
@@ -35,6 +36,12 @@ export declare const ElTableCell: import("@linaria/core").StyledMeta & import("r
|
|
|
35
36
|
export declare const ElTableCellContent: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
36
37
|
as?: import("react").ElementType<any> | undefined;
|
|
37
38
|
}>;
|
|
39
|
+
export declare const ElTableCtaIconContainer: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
40
|
+
as?: import("react").ElementType<any> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const ElTableCtaCell: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
as?: import("react").ElementType<any> | undefined;
|
|
44
|
+
}>;
|
|
38
45
|
export declare const ElTableExpandableRowTriggerCell: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
39
46
|
as?: import("react").ElementType<any> | undefined;
|
|
40
47
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from 'react';
|
|
2
2
|
import { IconNames } from '../icon';
|
|
3
|
-
export declare const TableHeadersRow: FC;
|
|
4
|
-
export declare const TableHeader: FC;
|
|
5
|
-
export declare const TableRow: FC;
|
|
6
3
|
export declare type NarrowOrderType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
7
|
-
export interface
|
|
4
|
+
export interface TableCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
5
|
icon?: IconNames;
|
|
9
6
|
darkText?: boolean;
|
|
10
7
|
narrowLabel?: string;
|
|
@@ -12,18 +9,26 @@ export interface ITableCell extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
9
|
className?: string;
|
|
13
10
|
narrowOrder?: NarrowOrderType;
|
|
14
11
|
}
|
|
15
|
-
export
|
|
16
|
-
export interface ITableExpandableRowTriggerCell extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
export interface TableExpandableRowTriggerCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
13
|
isOpen?: boolean;
|
|
18
14
|
narrowIsFullWidth?: boolean;
|
|
19
15
|
}
|
|
20
|
-
export
|
|
21
|
-
export interface ITableExpandableRow extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
export interface TableExpandableRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
22
17
|
isOpen?: boolean;
|
|
23
18
|
className?: string;
|
|
24
19
|
}
|
|
25
|
-
export
|
|
26
|
-
export interface ITableRowContainer extends HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
export interface TableRowContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
21
|
isOpen?: boolean;
|
|
28
22
|
}
|
|
29
|
-
export
|
|
23
|
+
export interface TableCtaTriggerCellProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
+
icon?: IconNames;
|
|
25
|
+
}
|
|
26
|
+
export declare const resolveNarrowOrderClass: (order: number) => string | undefined;
|
|
27
|
+
export declare const TableHeadersRow: FC;
|
|
28
|
+
export declare const TableHeader: FC<HTMLAttributes<HTMLDivElement>>;
|
|
29
|
+
export declare const TableRow: FC;
|
|
30
|
+
export declare const TableCell: FC<TableCellProps>;
|
|
31
|
+
export declare const TableExpandableRowTriggerCell: FC<TableExpandableRowTriggerCellProps>;
|
|
32
|
+
export declare const TableCtaTriggerCell: FC<TableCtaTriggerCellProps>;
|
|
33
|
+
export declare const TableExpandableRow: FC<TableExpandableRowProps>;
|
|
34
|
+
export declare const TableRowContainer: FC<TableRowContainerProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import React, { Dispatch, FC, HTMLAttributes, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { IconNames } from '../icon';
|
|
3
3
|
import { NarrowOrderType } from './molecules';
|
|
4
4
|
import { Intent } from '../../helpers/intent';
|
|
@@ -7,21 +7,34 @@ export declare type NarrowOptionsType = {
|
|
|
7
7
|
isFullWidth?: boolean;
|
|
8
8
|
order?: NarrowOrderType;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export interface CellProps {
|
|
11
11
|
label: string;
|
|
12
12
|
value: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
icon?: IconNames;
|
|
15
|
+
className?: string;
|
|
15
16
|
statusCircleIntent?: Intent;
|
|
16
17
|
cellHasDarkText?: boolean;
|
|
17
18
|
narrowTable?: NarrowOptionsType;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
}
|
|
20
|
+
export interface RowActionProps {
|
|
21
|
+
content?: ReactNode;
|
|
22
|
+
cellContent?: ReactNode;
|
|
23
|
+
headerContent?: ReactNode;
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
className?: string;
|
|
26
|
+
icon?: IconNames;
|
|
27
|
+
}
|
|
28
|
+
export interface RowProps {
|
|
29
|
+
cells: CellProps[];
|
|
30
|
+
expandableContent?: RowActionProps;
|
|
31
|
+
ctaContent?: RowActionProps;
|
|
32
|
+
}
|
|
23
33
|
export interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
|
-
rows?:
|
|
25
|
-
|
|
34
|
+
rows?: RowProps[];
|
|
35
|
+
numberColumns?: number;
|
|
36
|
+
indexExpandedRow?: number | null;
|
|
37
|
+
setIndexExpandedRow?: Dispatch<SetStateAction<number | null>>;
|
|
26
38
|
}
|
|
39
|
+
export declare const handleToggleExpandedRow: (index: number | null, expandedRow: number | null, setExpandedRow: Dispatch<SetStateAction<number | null>>, indexExpandedRow?: number | null | undefined, setIndexExpandedRow?: React.Dispatch<React.SetStateAction<number | null>> | undefined) => () => void;
|
|
27
40
|
export declare const Table: FC<TableProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const elTabsItem: string;
|
|
3
|
+
export declare const elTabsFullWidth: string;
|
|
4
|
+
export declare const ElTabs: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const ElTabsLabel: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & {
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const ElTabsWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const ElTabsOptionsWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const ElTabsFooter: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
export interface TabsOption {
|
|
3
|
+
id: string;
|
|
4
|
+
value: string;
|
|
5
|
+
text: string;
|
|
6
|
+
isChecked: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsProps extends HTMLAttributes<HTMLInputElement> {
|
|
9
|
+
options: TabsOption[];
|
|
10
|
+
name: string;
|
|
11
|
+
isFullWidth?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Tabs: FC<TabsProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
export interface TextAreaProps extends InputHTMLAttributes<HTMLTextAreaElement> {
|
|
3
3
|
}
|
|
4
|
-
export declare
|
|
4
|
+
export declare type TextAreaWrapped = React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<React.TextareaHTMLAttributes<HTMLTextAreaElement>>>;
|
|
5
|
+
export declare const TextArea: TextAreaWrapped;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const elHasGreyBg: string;
|
|
3
|
+
export declare const ElToggleItem: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ElToggleRadioItem: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
}>;
|
|
4
9
|
export declare const elToggleFullWidth: string;
|
|
5
10
|
export declare const ElToggleCheckbox: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
6
11
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { HTMLAttributes, InputHTMLAttributes, RefAttributes } from 'react';
|
|
2
2
|
export interface ToggleProps extends HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
isFullWidth?: boolean;
|
|
4
|
+
hasGreyBg?: boolean;
|
|
3
5
|
}
|
|
4
6
|
export interface ToggleRadioOption {
|
|
5
7
|
id: string;
|
|
@@ -11,6 +13,9 @@ export interface ToggleRadioProps extends HTMLAttributes<HTMLInputElement> {
|
|
|
11
13
|
options: ToggleRadioOption[];
|
|
12
14
|
name: string;
|
|
13
15
|
isFullWidth?: boolean;
|
|
16
|
+
hasGreyBg?: boolean;
|
|
14
17
|
}
|
|
15
|
-
export declare
|
|
16
|
-
export declare
|
|
18
|
+
export declare type ToggleWrapped = React.ForwardRefExoticComponent<ToggleProps & RefAttributes<InputHTMLAttributes<HTMLInputElement>>>;
|
|
19
|
+
export declare type ToggleRadioWrapped = React.ForwardRefExoticComponent<ToggleRadioProps & RefAttributes<InputHTMLAttributes<HTMLInputElement>>>;
|
|
20
|
+
export declare const Toggle: ToggleWrapped;
|
|
21
|
+
export declare const ToggleRadio: ToggleRadioWrapped;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const elHasGreyText: string;
|
|
3
|
+
export declare const elHasNoMargin: string;
|
|
4
|
+
export declare const elHasRegularText: string;
|
|
5
|
+
export declare const elHasBoldText: string;
|
|
6
|
+
export declare const elHasItalicText: string;
|
|
7
|
+
export declare const elHasCenteredText: string;
|
|
3
8
|
export declare const ElTitle: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & {
|
|
4
9
|
as?: import("react").ElementType<any> | undefined;
|
|
5
10
|
}>;
|
|
@@ -12,5 +17,3 @@ export declare const ElBodyText: import("@linaria/core").StyledMeta & import("re
|
|
|
12
17
|
export declare const ElSmallText: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
13
18
|
as?: import("react").ElementType<any> | undefined;
|
|
14
19
|
}>;
|
|
15
|
-
export declare const elIsBoldText: string;
|
|
16
|
-
export declare const elIsItalicText: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
3
3
|
hasGreyText?: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
hasNoMargin?: boolean;
|
|
5
|
+
hasBoldText?: boolean;
|
|
6
|
+
hasItalicText?: boolean;
|
|
7
|
+
hasCenteredText?: boolean;
|
|
8
|
+
hasRegularText?: boolean;
|
|
6
9
|
}
|
|
7
|
-
export declare const Title: FC<
|
|
8
|
-
export declare const Subtitle: FC<
|
|
9
|
-
export declare const BodyText: FC<
|
|
10
|
-
export declare const SmallText: FC<
|
|
10
|
+
export declare const Title: FC<TypographyProps>;
|
|
11
|
+
export declare const Subtitle: FC<TypographyProps>;
|
|
12
|
+
export declare const BodyText: FC<TypographyProps>;
|
|
13
|
+
export declare const SmallText: FC<TypographyProps>;
|
package/v3/helpers/intent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type Intent = 'primary' | 'secondary' | 'critical' | 'success' | 'danger' | 'neutral';
|
|
1
|
+
export declare type Intent = 'primary' | 'secondary' | 'critical' | 'success' | 'danger' | 'neutral' | 'low';
|
|
2
2
|
export declare const getIntentClassName: (intent: Intent) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ModalProps } from '../../components/modal';
|
|
3
|
+
export interface UseModal {
|
|
4
|
+
Modal: FC<Partial<ModalProps>>;
|
|
4
5
|
closeModal: () => void;
|
|
5
6
|
openModal: () => void;
|
|
7
|
+
modalIsOpen: boolean;
|
|
6
8
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default _default;
|
|
9
|
+
export declare const useModal: (id?: string | undefined) => UseModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* const target = usePortal(id, [id]);
|
|
8
|
-
* return createPortal(children, target);
|
|
9
|
-
* @param {String} id The id of the target container, e.g 'modal' or 'spotlight'
|
|
10
|
-
* @returns {HTMLElement} The DOM node to use as the Portal target.
|
|
11
|
-
*/
|
|
12
|
-
declare function usePortal(id: string): HTMLDivElement;
|
|
13
|
-
export default usePortal;
|
|
1
|
+
import { ReactPortal } from 'react';
|
|
2
|
+
export declare const usePortal: (id: string) => HTMLDivElement;
|
|
3
|
+
export declare const Portal: ({ id, children }: {
|
|
4
|
+
id: any;
|
|
5
|
+
children: any;
|
|
6
|
+
}) => ReactPortal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,12 +5,11 @@ export interface SnackContextProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SnackContext: React.Context<SnackContextProps>;
|
|
7
7
|
export declare const SnackProvider: React.FC;
|
|
8
|
-
interface
|
|
8
|
+
export interface UseSnack {
|
|
9
9
|
custom: (snack: SnackProps, timeout?: number) => void;
|
|
10
10
|
success: (text: string, timeout?: number) => void;
|
|
11
11
|
info: (text: string, timeout?: number) => void;
|
|
12
12
|
error: (text: string, timeout?: number) => void;
|
|
13
13
|
warning: (text: string, timeout?: number) => void;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
16
|
-
export default _default;
|
|
15
|
+
export declare const useSnack: () => UseSnack;
|