@zendeskgarden/react-notifications 9.0.0-next.2 → 9.0.0-next.21
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/README.md +6 -4
- package/dist/esm/elements/Close.js +40 -0
- package/dist/esm/elements/Notification.js +55 -0
- package/dist/esm/elements/Paragraph.js +28 -0
- package/dist/esm/elements/Title.js +35 -0
- package/dist/esm/elements/alert/Alert.js +56 -0
- package/dist/esm/elements/alert/Close.js +40 -0
- package/dist/esm/elements/alert/Paragraph.js +28 -0
- package/dist/esm/elements/alert/Title.js +35 -0
- package/dist/esm/elements/global-alert/GlobalAlert.js +78 -0
- package/dist/esm/elements/global-alert/GlobalAlertButton.js +47 -0
- package/dist/esm/elements/global-alert/GlobalAlertClose.js +43 -0
- package/dist/esm/elements/global-alert/GlobalAlertContent.js +30 -0
- package/dist/esm/elements/global-alert/GlobalAlertTitle.js +44 -0
- package/dist/esm/elements/toaster/Toast.js +62 -0
- package/dist/esm/elements/toaster/ToastContext.js +11 -0
- package/dist/esm/elements/toaster/ToastProvider.js +51 -0
- package/dist/esm/elements/toaster/ToastSlot.js +82 -0
- package/dist/esm/elements/toaster/reducer.js +66 -0
- package/dist/esm/elements/toaster/styled.js +71 -0
- package/dist/esm/elements/toaster/useToast.js +70 -0
- package/dist/esm/elements/well/Well.js +47 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +37 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +32 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +33 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/info-stroke.svg.js +37 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +26 -0
- package/dist/esm/styled/StyledAlert.js +51 -0
- package/dist/esm/styled/StyledBase.js +92 -0
- package/dist/esm/styled/StyledIcon.js +61 -0
- package/dist/esm/styled/StyledNotification.js +56 -0
- package/dist/esm/styled/StyledWell.js +47 -0
- package/dist/esm/styled/content/StyledClose.js +70 -0
- package/dist/esm/styled/content/StyledParagraph.js +22 -0
- package/dist/esm/styled/content/StyledTitle.js +25 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlert.js +160 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlertButton.js +118 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlertClose.js +103 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlertContent.js +22 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlertIcon.js +65 -0
- package/dist/esm/styled/global-alert/StyledGlobalAlertTitle.js +49 -0
- package/dist/esm/types/index.js +9 -0
- package/dist/esm/utils/icons.js +25 -0
- package/dist/esm/utils/useGlobalAlertContext.js +14 -0
- package/dist/esm/utils/useNotificationsContext.js +14 -0
- package/dist/index.cjs.js +837 -435
- package/dist/typings/elements/Close.d.ts +13 -0
- package/dist/typings/elements/Notification.d.ts +9 -1
- package/dist/typings/elements/Paragraph.d.ts +13 -0
- package/dist/typings/elements/{Well.d.ts → Title.d.ts} +4 -2
- package/dist/typings/elements/alert/Alert.d.ts +20 -0
- package/dist/typings/elements/well/Paragraph.d.ts +11 -0
- package/dist/typings/elements/{Alert.d.ts → well/Title.d.ts} +2 -2
- package/dist/typings/elements/well/Well.d.ts +18 -0
- package/dist/typings/index.d.ts +7 -11
- package/dist/typings/styled/StyledAlert.d.ts +8 -3
- package/dist/typings/styled/StyledBase.d.ts +8 -6
- package/dist/typings/styled/StyledIcon.d.ts +11 -2
- package/dist/typings/styled/StyledNotification.d.ts +11 -3
- package/dist/typings/styled/StyledWell.d.ts +7 -2
- package/dist/typings/styled/content/StyledClose.d.ts +5 -3
- package/dist/typings/styled/content/StyledTitle.d.ts +1 -1
- package/dist/typings/styled/global-alert/StyledGlobalAlert.d.ts +1 -1
- package/dist/typings/styled/global-alert/StyledGlobalAlertButton.d.ts +4 -11
- package/dist/typings/styled/global-alert/StyledGlobalAlertClose.d.ts +2 -3
- package/dist/typings/styled/global-alert/StyledGlobalAlertIcon.d.ts +2 -2
- package/dist/typings/styled/global-alert/StyledGlobalAlertTitle.d.ts +2 -2
- package/dist/typings/utils/icons.d.ts +1 -1
- package/dist/typings/{elements/global-alert/utility.d.ts → utils/useGlobalAlertContext.d.ts} +1 -1
- package/dist/typings/utils/useNotificationsContext.d.ts +2 -3
- package/package.json +9 -9
- package/dist/index.esm.js +0 -1124
- /package/dist/typings/elements/{content → alert}/Close.d.ts +0 -0
- /package/dist/typings/elements/{content → alert}/Paragraph.d.ts +0 -0
- /package/dist/typings/elements/{content → alert}/Title.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use `Alert.Close` or `Notification.Close` instead
|
|
10
|
+
*
|
|
11
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
12
|
+
*/
|
|
13
|
+
export declare const Close: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -6,7 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { INotificationProps } from '../types';
|
|
9
|
+
import { Title } from './Title';
|
|
10
|
+
import { Paragraph } from './Paragraph';
|
|
11
|
+
import { Close } from './Close';
|
|
12
|
+
export declare const NotificationComponent: React.ForwardRefExoticComponent<INotificationProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
13
|
/**
|
|
10
14
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
15
|
*/
|
|
12
|
-
export declare const Notification: React.ForwardRefExoticComponent<INotificationProps & React.RefAttributes<HTMLDivElement
|
|
16
|
+
export declare const Notification: React.ForwardRefExoticComponent<INotificationProps & React.RefAttributes<HTMLDivElement>> & {
|
|
17
|
+
Close: typeof Close;
|
|
18
|
+
Paragraph: typeof Paragraph;
|
|
19
|
+
Title: typeof Title;
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use `Alert.Paragraph`, `Notification.Paragraph`, or `Well.Paragraph` instead
|
|
10
|
+
*
|
|
11
|
+
* @extends HTMLAttributes<HTMLParagraphElement>
|
|
12
|
+
*/
|
|
13
|
+
export declare const Paragraph: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { ITitleProps } from '../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Alert.Title`, `Notification.Title`, or `Well.Title` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
13
|
*/
|
|
12
|
-
export declare const
|
|
14
|
+
export declare const Title: React.ForwardRefExoticComponent<ITitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IAlertProps } from '../../types';
|
|
9
|
+
import { Title } from './Title';
|
|
10
|
+
import { Paragraph } from './Paragraph';
|
|
11
|
+
import { Close } from './Close';
|
|
12
|
+
export declare const AlertComponent: React.ForwardRefExoticComponent<IAlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
15
|
+
*/
|
|
16
|
+
export declare const Alert: React.ForwardRefExoticComponent<IAlertProps & React.RefAttributes<HTMLDivElement>> & {
|
|
17
|
+
Close: typeof Close;
|
|
18
|
+
Paragraph: typeof Paragraph;
|
|
19
|
+
Title: typeof Title;
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends HTMLAttributes<HTMLParagraphElement>
|
|
10
|
+
*/
|
|
11
|
+
export declare const Paragraph: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { ITitleProps } from '../../types';
|
|
9
9
|
/**
|
|
10
10
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
11
|
*/
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const Title: React.ForwardRefExoticComponent<ITitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { IWellProps } from '../../types';
|
|
9
|
+
import { Title } from '../Title';
|
|
10
|
+
import { Paragraph } from '../Paragraph';
|
|
11
|
+
export declare const WellComponent: React.ForwardRefExoticComponent<IWellProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
14
|
+
*/
|
|
15
|
+
export declare const Well: React.ForwardRefExoticComponent<IWellProps & React.RefAttributes<HTMLDivElement>> & {
|
|
16
|
+
Paragraph: typeof Paragraph;
|
|
17
|
+
Title: typeof Title;
|
|
18
|
+
};
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -4,17 +4,13 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
export { Alert } from './elements/Alert';
|
|
7
|
+
export { Alert } from './elements/alert/Alert';
|
|
8
8
|
export { Notification } from './elements/Notification';
|
|
9
|
-
export { Well } from './elements/Well';
|
|
10
|
-
export { Close } from './elements/
|
|
11
|
-
export { Paragraph } from './elements/
|
|
12
|
-
export { Title } from './elements/
|
|
9
|
+
export { Well } from './elements/well/Well';
|
|
10
|
+
export { Close } from './elements/Close';
|
|
11
|
+
export { Paragraph } from './elements/Paragraph';
|
|
12
|
+
export { Title } from './elements/Title';
|
|
13
13
|
export { ToastProvider } from './elements/toaster/ToastProvider';
|
|
14
|
-
export { useToast, type IToastOptions, type IToast
|
|
15
|
-
/** @deprecated can be dereferenced via IToast['content'] */
|
|
16
|
-
type Content as ToastContent } from './elements/toaster/useToast';
|
|
14
|
+
export { useToast, type IToastOptions, type IToast } from './elements/toaster/useToast';
|
|
17
15
|
export { GlobalAlert } from './elements/global-alert/GlobalAlert';
|
|
18
|
-
export type { IAlertProps, INotificationProps, IWellProps, ITitleProps, IToastProviderProps, IGlobalAlertProps, IGlobalAlertButtonProps, IGlobalAlertTitleProps
|
|
19
|
-
/** @deprecated can be dereferenced via IToastOptions['placement'] */
|
|
20
|
-
Placement as ToastPlacement } from './types';
|
|
16
|
+
export type { IAlertProps, INotificationProps, IWellProps, ITitleProps, IToastProviderProps, IGlobalAlertProps, IGlobalAlertButtonProps, IGlobalAlertTitleProps } from './types';
|
|
@@ -5,13 +5,18 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { IStyledBaseProps } from './StyledBase';
|
|
9
|
+
import { Type } from '../types';
|
|
10
|
+
export interface IStyledAlertProps extends IStyledBaseProps {
|
|
11
|
+
$type?: Type;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Supports all `<div>` props
|
|
13
15
|
*/
|
|
14
|
-
export declare const StyledAlert: import("styled-components").StyledComponent<"div", DefaultTheme,
|
|
16
|
+
export declare const StyledAlert: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
17
|
+
'data-garden-id': string;
|
|
18
|
+
'data-garden-version': string;
|
|
19
|
+
} & IStyledBaseProps & {
|
|
15
20
|
'data-garden-id': string;
|
|
16
21
|
'data-garden-version': string;
|
|
17
22
|
} & IStyledAlertProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import { DefaultTheme } from 'styled-components';
|
|
7
|
+
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
import { Type } from '../types';
|
|
9
|
-
export interface IStyledBaseProps {
|
|
10
|
-
isFloating?: boolean;
|
|
11
|
-
|
|
12
|
-
type?: Type;
|
|
9
|
+
export interface IStyledBaseProps extends ThemeProps<DefaultTheme> {
|
|
10
|
+
$isFloating?: boolean;
|
|
11
|
+
$type?: Type;
|
|
13
12
|
}
|
|
14
|
-
export declare const StyledBase: import("styled-components").StyledComponent<"div", DefaultTheme,
|
|
13
|
+
export declare const StyledBase: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
14
|
+
'data-garden-id': string;
|
|
15
|
+
'data-garden-version': string;
|
|
16
|
+
} & IStyledBaseProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,5 +4,14 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
9
|
+
import { Type } from '../types';
|
|
10
|
+
interface IStyledIconProps extends ThemeProps<DefaultTheme> {
|
|
11
|
+
$type?: Type;
|
|
12
|
+
}
|
|
13
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
14
|
+
'data-garden-id': string;
|
|
15
|
+
'data-garden-version': string;
|
|
16
|
+
} & IStyledIconProps, "data-garden-id" | "data-garden-version">;
|
|
17
|
+
export {};
|
|
@@ -5,11 +5,19 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { Type } from '../types';
|
|
9
|
+
import { IStyledBaseProps } from './StyledBase';
|
|
10
|
+
interface IStyledNotificationProps extends IStyledBaseProps {
|
|
11
|
+
$type?: Type;
|
|
12
|
+
}
|
|
9
13
|
/**
|
|
10
14
|
* Supports all `<div>` props
|
|
11
15
|
*/
|
|
12
|
-
export declare const StyledNotification: import("styled-components").StyledComponent<"div", DefaultTheme,
|
|
16
|
+
export declare const StyledNotification: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
13
17
|
'data-garden-id': string;
|
|
14
18
|
'data-garden-version': string;
|
|
15
|
-
} &
|
|
19
|
+
} & IStyledBaseProps & {
|
|
20
|
+
'data-garden-id': string;
|
|
21
|
+
'data-garden-version': string;
|
|
22
|
+
} & IStyledNotificationProps, "data-garden-id" | "data-garden-version">;
|
|
23
|
+
export {};
|
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
+
import { DefaultTheme } from 'styled-components';
|
|
7
8
|
export interface IStyledWellProps {
|
|
8
|
-
isRecessed?: boolean;
|
|
9
|
+
$isRecessed?: boolean;
|
|
10
|
+
$isFloating?: boolean;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Supports all `<div>` props
|
|
12
14
|
*/
|
|
13
|
-
export declare const StyledWell: import("styled-components").StyledComponent<"div",
|
|
15
|
+
export declare const StyledWell: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
16
|
+
'data-garden-id': string;
|
|
17
|
+
'data-garden-version': string;
|
|
18
|
+
} & import("./StyledBase").IStyledBaseProps & {
|
|
14
19
|
'data-garden-id': string;
|
|
15
20
|
'data-garden-version': string;
|
|
16
21
|
} & IStyledWellProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import { DefaultTheme } from 'styled-components';
|
|
9
|
+
import { Type } from '../../types';
|
|
8
10
|
interface IStyledCloseProps {
|
|
9
|
-
|
|
11
|
+
$type?: Type;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* Used to close a Notification. Supports all `<button>` props
|
|
@@ -14,7 +16,7 @@ interface IStyledCloseProps {
|
|
|
14
16
|
* 1. Reset for <button> element.
|
|
15
17
|
* 2. Remove dotted outline from Firefox on focus.
|
|
16
18
|
*/
|
|
17
|
-
export declare const StyledClose: import("styled-components").StyledComponent<"
|
|
19
|
+
export declare const StyledClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {
|
|
18
20
|
'data-garden-id': string;
|
|
19
21
|
'data-garden-version': string;
|
|
20
22
|
} & IStyledCloseProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
8
|
import { IGlobalAlertProps } from '../../types';
|
|
9
9
|
interface IStyledGlobalAlertProps {
|
|
10
|
-
alertType: IGlobalAlertProps['type'];
|
|
10
|
+
$alertType: IGlobalAlertProps['type'];
|
|
11
11
|
}
|
|
12
12
|
export declare const StyledGlobalAlert: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
13
13
|
'data-garden-id': string;
|
|
@@ -8,27 +8,20 @@
|
|
|
8
8
|
import { DefaultTheme } from 'styled-components';
|
|
9
9
|
import { IGlobalAlertProps } from '../../types';
|
|
10
10
|
interface IStyledGlobalAlertButtonProps {
|
|
11
|
-
alertType: IGlobalAlertProps['type'];
|
|
11
|
+
$alertType: IGlobalAlertProps['type'];
|
|
12
12
|
isBasic?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const StyledGlobalAlertButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
15
15
|
EndIcon: {
|
|
16
|
-
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
16
|
+
({ isRotated, ...props }: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
StartIcon: {
|
|
20
|
-
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
20
|
+
({ isRotated, ...props }: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
};
|
|
23
23
|
}, DefaultTheme, {
|
|
24
24
|
'data-garden-id': string;
|
|
25
25
|
'data-garden-version': string;
|
|
26
|
-
|
|
27
|
-
isDanger: false;
|
|
28
|
-
isLink: false;
|
|
29
|
-
isNeutral: false;
|
|
30
|
-
isPill: false;
|
|
31
|
-
isStretched: false;
|
|
32
|
-
size: "small";
|
|
33
|
-
} & IStyledGlobalAlertButtonProps, "isDanger" | "size" | "isStretched" | "isNeutral" | "isLink" | "isPill" | "focusInset" | "data-garden-id" | "data-garden-version">;
|
|
26
|
+
} & IStyledGlobalAlertButtonProps, "data-garden-id" | "data-garden-version">;
|
|
34
27
|
export {};
|
|
@@ -8,12 +8,11 @@
|
|
|
8
8
|
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
9
9
|
import { IGlobalAlertProps } from '../../types';
|
|
10
10
|
interface IStyledGlobalAlertCloseProps {
|
|
11
|
-
alertType: IGlobalAlertProps['type'];
|
|
11
|
+
$alertType: IGlobalAlertProps['type'];
|
|
12
12
|
}
|
|
13
13
|
export declare const colorStyles: (props: ThemeProps<DefaultTheme> & IStyledGlobalAlertCloseProps) => import("styled-components").FlattenSimpleInterpolation;
|
|
14
14
|
export declare const StyledGlobalAlertClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {
|
|
15
15
|
'data-garden-id': string;
|
|
16
16
|
'data-garden-version': string;
|
|
17
|
-
|
|
18
|
-
} & IStyledGlobalAlertCloseProps, "size" | "data-garden-id" | "data-garden-version">;
|
|
17
|
+
} & IStyledGlobalAlertCloseProps, "data-garden-id" | "data-garden-version">;
|
|
19
18
|
export {};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
/// <reference types="react" />
|
|
8
8
|
import { DefaultTheme } from 'styled-components';
|
|
9
|
-
export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, ...props }: any) =>
|
|
9
|
+
export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
10
10
|
'data-garden-id': string;
|
|
11
11
|
'data-garden-version': string;
|
|
12
12
|
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
8
|
import { IGlobalAlertProps, IGlobalAlertTitleProps } from '../../types';
|
|
9
9
|
interface IStyledGlobalAlertTitleProps {
|
|
10
|
-
alertType: IGlobalAlertProps['type'];
|
|
11
|
-
isRegular?: IGlobalAlertTitleProps['isRegular'];
|
|
10
|
+
$alertType: IGlobalAlertProps['type'];
|
|
11
|
+
$isRegular?: IGlobalAlertTitleProps['isRegular'];
|
|
12
12
|
}
|
|
13
13
|
export declare const StyledGlobalAlertTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
14
14
|
'data-garden-id': string;
|
package/dist/typings/{elements/global-alert/utility.d.ts → utils/useGlobalAlertContext.d.ts}
RENAMED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
import { IGlobalAlertProps } from '
|
|
8
|
+
import { IGlobalAlertProps } from '../types';
|
|
9
9
|
export type GlobalAlertContextProps = Pick<IGlobalAlertProps, 'type'>;
|
|
10
10
|
export declare const GlobalAlertContext: import("react").Context<GlobalAlertContextProps>;
|
|
11
11
|
export declare const useGlobalAlertContext: () => GlobalAlertContextProps;
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
export
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const useNotificationsContext: () => Hue | undefined;
|
|
8
|
+
export declare const NotificationsContext: import("react").Context<"success" | "warning" | "error" | "info" | undefined>;
|
|
9
|
+
export declare const useNotificationsContext: () => "success" | "warning" | "error" | "info" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-notifications",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.21",
|
|
4
4
|
"description": "Notification and Well components within the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/zendeskgarden/react-components/issues"
|
|
11
11
|
},
|
|
12
12
|
"main": "dist/index.cjs.js",
|
|
13
|
-
"module": "dist/index.
|
|
13
|
+
"module": "dist/esm/index.js",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@zendeskgarden/react-buttons": "^9.0.0-next.
|
|
25
|
-
"polished": "^4.
|
|
24
|
+
"@zendeskgarden/react-buttons": "^9.0.0-next.21",
|
|
25
|
+
"polished": "^4.3.1",
|
|
26
26
|
"prop-types": "^15.5.7",
|
|
27
27
|
"react-transition-group": "^4.4.2",
|
|
28
28
|
"react-uid": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@zendeskgarden/react-theming": "
|
|
31
|
+
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
32
32
|
"react": ">=16.8.0",
|
|
33
33
|
"react-dom": ">=16.8.0",
|
|
34
|
-
"styled-components": "^5.1
|
|
34
|
+
"styled-components": "^5.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react-transition-group": "4.4.10",
|
|
38
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
39
|
-
"@zendeskgarden/svg-icons": "7.
|
|
38
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.21",
|
|
39
|
+
"@zendeskgarden/svg-icons": "7.1.1"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"components",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"zendeskgarden:src": "src/index.ts",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "a245ce2b794ea65142174a6a1f855a111b2677a2"
|
|
52
52
|
}
|