@zendeskgarden/react-notifications 8.69.2 → 8.69.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.cjs.js +12 -12
  2. package/dist/index.esm.js +12 -12
  3. package/dist/typings/elements/Alert.d.ts +12 -12
  4. package/dist/typings/elements/Notification.d.ts +12 -12
  5. package/dist/typings/elements/Well.d.ts +12 -12
  6. package/dist/typings/elements/content/Close.d.ts +11 -11
  7. package/dist/typings/elements/content/Paragraph.d.ts +11 -11
  8. package/dist/typings/elements/content/Title.d.ts +12 -12
  9. package/dist/typings/elements/global-alert/GlobalAlert.d.ts +21 -21
  10. package/dist/typings/elements/global-alert/GlobalAlertButton.d.ts +12 -12
  11. package/dist/typings/elements/global-alert/GlobalAlertClose.d.ts +15 -15
  12. package/dist/typings/elements/global-alert/GlobalAlertContent.d.ts +11 -11
  13. package/dist/typings/elements/global-alert/GlobalAlertTitle.d.ts +12 -12
  14. package/dist/typings/elements/global-alert/utility.d.ts +11 -11
  15. package/dist/typings/elements/toaster/Toast.d.ts +14 -14
  16. package/dist/typings/elements/toaster/ToastContext.d.ts +14 -14
  17. package/dist/typings/elements/toaster/ToastProvider.d.ts +21 -21
  18. package/dist/typings/elements/toaster/ToastSlot.d.ts +17 -17
  19. package/dist/typings/elements/toaster/reducer.d.ts +29 -29
  20. package/dist/typings/elements/toaster/styled.d.ts +19 -19
  21. package/dist/typings/elements/toaster/useToast.d.ts +33 -33
  22. package/dist/typings/index.d.ts +20 -21
  23. package/dist/typings/styled/StyledAlert.d.ts +18 -18
  24. package/dist/typings/styled/StyledBase.d.ts +14 -14
  25. package/dist/typings/styled/StyledIcon.d.ts +8 -8
  26. package/dist/typings/styled/StyledNotification.d.ts +15 -15
  27. package/dist/typings/styled/StyledWell.d.ts +16 -16
  28. package/dist/typings/styled/content/StyledClose.d.ts +21 -21
  29. package/dist/typings/styled/content/StyledParagraph.d.ts +13 -13
  30. package/dist/typings/styled/content/StyledTitle.d.ts +16 -16
  31. package/dist/typings/styled/global-alert/StyledGlobalAlert.d.ts +16 -16
  32. package/dist/typings/styled/global-alert/StyledGlobalAlertButton.d.ts +33 -33
  33. package/dist/typings/styled/global-alert/StyledGlobalAlertClose.d.ts +18 -18
  34. package/dist/typings/styled/global-alert/StyledGlobalAlertContent.d.ts +10 -10
  35. package/dist/typings/styled/global-alert/StyledGlobalAlertIcon.d.ts +12 -12
  36. package/dist/typings/styled/global-alert/StyledGlobalAlertTitle.d.ts +17 -17
  37. package/dist/typings/styled/global-alert/index.d.ts +12 -12
  38. package/dist/typings/styled/index.d.ts +15 -15
  39. package/dist/typings/types/index.d.ts +58 -58
  40. package/dist/typings/utils/icons.d.ts +9 -9
  41. package/dist/typings/utils/useNotificationsContext.d.ts +10 -10
  42. package/package.json +5 -5
@@ -1,10 +1,10 @@
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
- export declare const StyledGlobalAlertContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
- 'data-garden-id': string;
9
- 'data-garden-version': string;
10
- }, "data-garden-id" | "data-garden-version">;
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
+ export declare const StyledGlobalAlertContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
+ 'data-garden-id': string;
9
+ 'data-garden-version': string;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -1,12 +1,12 @@
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 { DefaultTheme } from 'styled-components';
9
- export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
10
- 'data-garden-id': string;
11
- 'data-garden-version': string;
12
- }, "data-garden-id" | "data-garden-version">;
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 { DefaultTheme } from 'styled-components';
9
+ export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
10
+ 'data-garden-id': string;
11
+ 'data-garden-version': string;
12
+ }, "data-garden-id" | "data-garden-version">;
@@ -1,17 +1,17 @@
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 { DefaultTheme } from 'styled-components';
8
- import { IGlobalAlertProps, IGlobalAlertTitleProps } from '../../types';
9
- interface IStyledGlobalAlertTitleProps {
10
- alertType: IGlobalAlertProps['type'];
11
- isRegular?: IGlobalAlertTitleProps['isRegular'];
12
- }
13
- export declare const StyledGlobalAlertTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {
14
- 'data-garden-id': string;
15
- 'data-garden-version': string;
16
- } & IStyledGlobalAlertTitleProps, "data-garden-id" | "data-garden-version">;
17
- export {};
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 { DefaultTheme } from 'styled-components';
8
+ import { IGlobalAlertProps, IGlobalAlertTitleProps } from '../../types';
9
+ interface IStyledGlobalAlertTitleProps {
10
+ alertType: IGlobalAlertProps['type'];
11
+ isRegular?: IGlobalAlertTitleProps['isRegular'];
12
+ }
13
+ export declare const StyledGlobalAlertTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {
14
+ 'data-garden-id': string;
15
+ 'data-garden-version': string;
16
+ } & IStyledGlobalAlertTitleProps, "data-garden-id" | "data-garden-version">;
17
+ export {};
@@ -1,12 +1,12 @@
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
- export { StyledGlobalAlert } from './StyledGlobalAlert';
8
- export { StyledGlobalAlertButton } from './StyledGlobalAlertButton';
9
- export { StyledGlobalAlertClose } from './StyledGlobalAlertClose';
10
- export { StyledGlobalAlertContent } from './StyledGlobalAlertContent';
11
- export { StyledGlobalAlertIcon } from './StyledGlobalAlertIcon';
12
- export { StyledGlobalAlertTitle } from './StyledGlobalAlertTitle';
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
+ export { StyledGlobalAlert } from './StyledGlobalAlert';
8
+ export { StyledGlobalAlertButton } from './StyledGlobalAlertButton';
9
+ export { StyledGlobalAlertClose } from './StyledGlobalAlertClose';
10
+ export { StyledGlobalAlertContent } from './StyledGlobalAlertContent';
11
+ export { StyledGlobalAlertIcon } from './StyledGlobalAlertIcon';
12
+ export { StyledGlobalAlertTitle } from './StyledGlobalAlertTitle';
@@ -1,15 +1,15 @@
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
- export { StyledClose } from './content/StyledClose';
8
- export { StyledParagraph } from './content/StyledParagraph';
9
- export { StyledTitle } from './content/StyledTitle';
10
- export { StyledAlert } from './StyledAlert';
11
- export { StyledNotification } from './StyledNotification';
12
- export { StyledWell } from './StyledWell';
13
- export { StyledIcon } from './StyledIcon';
14
- export { StyledBase } from './StyledBase';
15
- export * from './global-alert';
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
+ export { StyledClose } from './content/StyledClose';
8
+ export { StyledParagraph } from './content/StyledParagraph';
9
+ export { StyledTitle } from './content/StyledTitle';
10
+ export { StyledAlert } from './StyledAlert';
11
+ export { StyledNotification } from './StyledNotification';
12
+ export { StyledWell } from './StyledWell';
13
+ export { StyledIcon } from './StyledIcon';
14
+ export { StyledBase } from './StyledBase';
15
+ export * from './global-alert';
@@ -1,58 +1,58 @@
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 { HTMLAttributes, ButtonHTMLAttributes } from 'react';
8
- import { IButtonProps } from '@zendeskgarden/react-buttons';
9
- export declare const PLACEMENT: readonly ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"];
10
- export declare const TYPE: readonly ["success", "warning", "error", "info"];
11
- export type Placement = (typeof PLACEMENT)[number];
12
- export type Type = (typeof TYPE)[number];
13
- export interface IAlertProps extends HTMLAttributes<HTMLDivElement> {
14
- /** Applies alert type styles */
15
- type: Type;
16
- }
17
- export interface INotificationProps extends HTMLAttributes<HTMLDivElement> {
18
- /** Applies notification type styles */
19
- type?: Type;
20
- }
21
- export interface IWellProps extends HTMLAttributes<HTMLDivElement> {
22
- /** Applies a background color */
23
- isRecessed?: boolean;
24
- /** Applies a drop shadow */
25
- isFloating?: boolean;
26
- }
27
- export interface ITitleProps extends HTMLAttributes<HTMLDivElement> {
28
- /** Applies regular (non-bold) font weight */
29
- isRegular?: boolean;
30
- }
31
- export interface IToastProviderProps {
32
- /**
33
- * Limits the number of visible toasts
34
- */
35
- limit?: number;
36
- /**
37
- * Passes placement-based customization props to the toast's parent element
38
- */
39
- placementProps?: Partial<Record<Placement, HTMLAttributes<HTMLDivElement>>>;
40
- /**
41
- * Sets the `z-index` of the toast
42
- */
43
- zIndex?: number;
44
- }
45
- export interface IGlobalAlertProps extends HTMLAttributes<HTMLDivElement> {
46
- /**
47
- * Applies global alert type styles
48
- */
49
- type: Type;
50
- }
51
- export interface IGlobalAlertButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pick<IButtonProps, 'isBasic'> {
52
- }
53
- export interface IGlobalAlertTitleProps extends HTMLAttributes<HTMLDivElement> {
54
- /**
55
- * Applies regular (non-bold) font weight
56
- */
57
- isRegular?: boolean;
58
- }
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 { HTMLAttributes, ButtonHTMLAttributes } from 'react';
8
+ import { IButtonProps } from '@zendeskgarden/react-buttons';
9
+ export declare const PLACEMENT: readonly ["top-start", "top", "top-end", "bottom-start", "bottom", "bottom-end"];
10
+ export declare const TYPE: readonly ["success", "warning", "error", "info"];
11
+ export type Placement = (typeof PLACEMENT)[number];
12
+ export type Type = (typeof TYPE)[number];
13
+ export interface IAlertProps extends HTMLAttributes<HTMLDivElement> {
14
+ /** Applies alert type styles */
15
+ type: Type;
16
+ }
17
+ export interface INotificationProps extends HTMLAttributes<HTMLDivElement> {
18
+ /** Applies notification type styles */
19
+ type?: Type;
20
+ }
21
+ export interface IWellProps extends HTMLAttributes<HTMLDivElement> {
22
+ /** Applies a background color */
23
+ isRecessed?: boolean;
24
+ /** Applies a drop shadow */
25
+ isFloating?: boolean;
26
+ }
27
+ export interface ITitleProps extends HTMLAttributes<HTMLDivElement> {
28
+ /** Applies regular (non-bold) font weight */
29
+ isRegular?: boolean;
30
+ }
31
+ export interface IToastProviderProps {
32
+ /**
33
+ * Limits the number of visible toasts
34
+ */
35
+ limit?: number;
36
+ /**
37
+ * Passes placement-based customization props to the toast's parent element
38
+ */
39
+ placementProps?: Partial<Record<Placement, HTMLAttributes<HTMLDivElement>>>;
40
+ /**
41
+ * Sets the `z-index` of the toast
42
+ */
43
+ zIndex?: number;
44
+ }
45
+ export interface IGlobalAlertProps extends HTMLAttributes<HTMLDivElement> {
46
+ /**
47
+ * Applies global alert type styles
48
+ */
49
+ type: Type;
50
+ }
51
+ export interface IGlobalAlertButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pick<IButtonProps, 'isBasic'> {
52
+ }
53
+ export interface IGlobalAlertTitleProps extends HTMLAttributes<HTMLDivElement> {
54
+ /**
55
+ * Applies regular (non-bold) font weight
56
+ */
57
+ isRegular?: boolean;
58
+ }
@@ -1,9 +1,9 @@
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 { Type } from '../types';
8
- export declare const validationIcons: Record<Type, Record<string, unknown>>;
9
- export declare const validationHues: Record<Type, string>;
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 { Type } from '../types';
8
+ export declare const validationIcons: Record<Type, Record<string, unknown>>;
9
+ export declare const validationHues: Record<Type, string>;
@@ -1,10 +1,10 @@
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
- /// <reference types="react" />
8
- export type Hue = 'successHue' | 'warningHue' | 'dangerHue' | 'neutralHue';
9
- export declare const NotificationsContext: import("react").Context<Hue | undefined>;
10
- export declare const useNotificationsContext: () => Hue | undefined;
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
+ /// <reference types="react" />
8
+ export type Hue = 'successHue' | 'warningHue' | 'dangerHue' | 'neutralHue';
9
+ export declare const NotificationsContext: import("react").Context<Hue | undefined>;
10
+ export declare const useNotificationsContext: () => Hue | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-notifications",
3
- "version": "8.69.2",
3
+ "version": "8.69.4",
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>",
@@ -21,7 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
- "@zendeskgarden/react-buttons": "^8.69.2",
24
+ "@zendeskgarden/react-buttons": "^8.69.4",
25
25
  "polished": "^4.1.1",
26
26
  "prop-types": "^15.5.7",
27
27
  "react-transition-group": "^4.4.2",
@@ -34,8 +34,8 @@
34
34
  "styled-components": "^4.2.0 || ^5.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/react-transition-group": "4.4.5",
38
- "@zendeskgarden/react-theming": "^8.69.2",
37
+ "@types/react-transition-group": "4.4.6",
38
+ "@zendeskgarden/react-theming": "^8.69.4",
39
39
  "@zendeskgarden/svg-icons": "6.33.0"
40
40
  },
41
41
  "keywords": [
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "zendeskgarden:src": "src/index.ts",
51
- "gitHead": "a39f2b421375013a50990d206610e3813abc0bd7"
51
+ "gitHead": "4911fa867a3c7e72f0c78dcea8748893c3070c17"
52
52
  }