@zendeskgarden/react-notifications 9.2.0 → 9.4.0

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 (32) hide show
  1. package/dist/esm/elements/global-alert/GlobalAlert.js +1 -1
  2. package/dist/esm/styled/StyledAlert.js +1 -1
  3. package/dist/esm/styled/StyledBase.js +1 -1
  4. package/dist/esm/styled/StyledIcon.js +1 -1
  5. package/dist/esm/styled/StyledNotification.js +1 -1
  6. package/dist/esm/styled/StyledWell.js +1 -1
  7. package/dist/esm/styled/content/StyledClose.js +1 -1
  8. package/dist/esm/styled/content/StyledParagraph.js +1 -1
  9. package/dist/esm/styled/content/StyledTitle.js +1 -1
  10. package/dist/esm/styled/global-alert/StyledGlobalAlert.js +1 -1
  11. package/dist/esm/styled/global-alert/StyledGlobalAlertButton.js +1 -1
  12. package/dist/esm/styled/global-alert/StyledGlobalAlertClose.js +1 -1
  13. package/dist/esm/styled/global-alert/StyledGlobalAlertContent.js +1 -1
  14. package/dist/esm/styled/global-alert/StyledGlobalAlertIcon.js +1 -1
  15. package/dist/esm/styled/global-alert/StyledGlobalAlertTitle.js +1 -1
  16. package/dist/index.cjs.js +15 -15
  17. package/dist/typings/elements/toaster/styled.d.ts +3 -4
  18. package/dist/typings/styled/StyledAlert.d.ts +5 -8
  19. package/dist/typings/styled/StyledBase.d.ts +3 -4
  20. package/dist/typings/styled/StyledIcon.d.ts +2 -5
  21. package/dist/typings/styled/StyledNotification.d.ts +5 -8
  22. package/dist/typings/styled/StyledWell.d.ts +5 -8
  23. package/dist/typings/styled/content/StyledClose.d.ts +5 -5
  24. package/dist/typings/styled/content/StyledParagraph.d.ts +3 -4
  25. package/dist/typings/styled/content/StyledTitle.d.ts +3 -4
  26. package/dist/typings/styled/global-alert/StyledGlobalAlert.d.ts +3 -5
  27. package/dist/typings/styled/global-alert/StyledGlobalAlertButton.d.ts +6 -6
  28. package/dist/typings/styled/global-alert/StyledGlobalAlertClose.d.ts +6 -5
  29. package/dist/typings/styled/global-alert/StyledGlobalAlertContent.d.ts +3 -4
  30. package/dist/typings/styled/global-alert/StyledGlobalAlertIcon.d.ts +7 -5
  31. package/dist/typings/styled/global-alert/StyledGlobalAlertTitle.d.ts +3 -5
  32. package/package.json +5 -5
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import React__default, { forwardRef, useMemo } from 'react';
8
8
  import PropTypes from 'prop-types';
9
- import { ThemeProvider } from 'styled-components';
9
+ import { ThemeProvider } from '@zendeskgarden/react-theming';
10
10
  import SvgInfoStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/info-stroke.svg.js';
11
11
  import SvgAlertErrorStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js';
12
12
  import SvgAlertWarningStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js';
@@ -39,7 +39,7 @@ const colorStyles = props => {
39
39
  };
40
40
  const StyledAlert = styled(StyledBase).attrs({
41
41
  'data-garden-id': COMPONENT_ID,
42
- 'data-garden-version': '9.2.0'
42
+ 'data-garden-version': '9.4.0'
43
43
  }).withConfig({
44
44
  displayName: "StyledAlert",
45
45
  componentId: "sc-fyn8jp-0"
@@ -80,7 +80,7 @@ const padding = props => {
80
80
  };
81
81
  const StyledBase = styled.div.attrs({
82
82
  'data-garden-id': COMPONENT_ID,
83
- 'data-garden-version': '9.2.0'
83
+ 'data-garden-version': '9.4.0'
84
84
  }).withConfig({
85
85
  displayName: "StyledBase",
86
86
  componentId: "sc-14syaqw-0"
@@ -49,7 +49,7 @@ const colorStyles = _ref2 => {
49
49
  };
50
50
  const StyledIcon = styled(StyledBaseIcon).attrs({
51
51
  'data-garden-id': COMPONENT_ID,
52
- 'data-garden-version': '9.2.0'
52
+ 'data-garden-version': '9.4.0'
53
53
  }).withConfig({
54
54
  displayName: "StyledIcon",
55
55
  componentId: "sc-msklws-0"
@@ -41,7 +41,7 @@ const colorStyles = props => {
41
41
  };
42
42
  const StyledNotification = styled(StyledBase).attrs({
43
43
  'data-garden-id': COMPONENT_ID,
44
- 'data-garden-version': '9.2.0'
44
+ 'data-garden-version': '9.4.0'
45
45
  }).withConfig({
46
46
  displayName: "StyledNotification",
47
47
  componentId: "sc-uf6jh-0"
@@ -35,7 +35,7 @@ const colorStyles = _ref => {
35
35
  };
36
36
  const StyledWell = styled(StyledBase).attrs({
37
37
  'data-garden-id': COMPONENT_ID,
38
- 'data-garden-version': '9.2.0'
38
+ 'data-garden-version': '9.4.0'
39
39
  }).withConfig({
40
40
  displayName: "StyledWell",
41
41
  componentId: "sc-a5831c-0"
@@ -58,7 +58,7 @@ const colorStyles = _ref => {
58
58
  };
59
59
  const StyledClose = styled(IconButton).attrs({
60
60
  'data-garden-id': COMPONENT_ID,
61
- 'data-garden-version': '9.2.0'
61
+ 'data-garden-version': '9.4.0'
62
62
  }).withConfig({
63
63
  displayName: "StyledClose",
64
64
  componentId: "sc-1mr9nx1-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'notifications.paragraph';
11
11
  const StyledParagraph = styled.p.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.2.0'
13
+ 'data-garden-version': '9.4.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledParagraph",
16
16
  componentId: "sc-12tmd6p-0"
@@ -10,7 +10,7 @@ import { getColor, retrieveComponentStyles } from '@zendeskgarden/react-theming'
10
10
  const COMPONENT_ID = 'notifications.title';
11
11
  const StyledTitle = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.2.0'
13
+ 'data-garden-version': '9.4.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledTitle",
16
16
  componentId: "sc-xx4jsv-0"
@@ -148,7 +148,7 @@ const sizeStyles = props => {
148
148
  };
149
149
  const StyledGlobalAlert = styled.div.attrs({
150
150
  'data-garden-id': COMPONENT_ID,
151
- 'data-garden-version': '9.2.0'
151
+ 'data-garden-version': '9.4.0'
152
152
  }).withConfig({
153
153
  displayName: "StyledGlobalAlert",
154
154
  componentId: "sc-k6rimt-0"
@@ -106,7 +106,7 @@ function sizeStyles(props) {
106
106
  }
107
107
  const StyledGlobalAlertButton = styled(Button).attrs({
108
108
  'data-garden-id': COMPONENT_ID,
109
- 'data-garden-version': '9.2.0'
109
+ 'data-garden-version': '9.4.0'
110
110
  }).withConfig({
111
111
  displayName: "StyledGlobalAlertButton",
112
112
  componentId: "sc-1txe91a-0"
@@ -91,7 +91,7 @@ const sizeStyles = props => {
91
91
  };
92
92
  const StyledGlobalAlertClose = styled(IconButton).attrs({
93
93
  'data-garden-id': COMPONENT_ID,
94
- 'data-garden-version': '9.2.0'
94
+ 'data-garden-version': '9.4.0'
95
95
  }).withConfig({
96
96
  displayName: "StyledGlobalAlertClose",
97
97
  componentId: "sc-1g5s93s-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'notifications.global_alert.content';
11
11
  const StyledGlobalAlertContent = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.2.0'
13
+ 'data-garden-version': '9.4.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledGlobalAlertContent",
16
16
  componentId: "sc-rept0u-0"
@@ -53,7 +53,7 @@ const colorStyles = _ref => {
53
53
  };
54
54
  const StyledGlobalAlertIcon = styled(StyledBaseIcon).attrs({
55
55
  'data-garden-id': COMPONENT_ID,
56
- 'data-garden-version': '9.2.0'
56
+ 'data-garden-version': '9.4.0'
57
57
  }).withConfig({
58
58
  displayName: "StyledGlobalAlertIcon",
59
59
  componentId: "sc-84ne9k-0"
@@ -37,7 +37,7 @@ const colorStyles = _ref => {
37
37
  };
38
38
  const StyledGlobalAlertTitle = styled.div.attrs({
39
39
  'data-garden-id': COMPONENT_ID,
40
- 'data-garden-version': '9.2.0'
40
+ 'data-garden-version': '9.4.0'
41
41
  }).withConfig({
42
42
  displayName: "StyledGlobalAlertTitle",
43
43
  componentId: "sc-10clqbo-0"
package/dist/index.cjs.js CHANGED
@@ -206,7 +206,7 @@ const colorStyles$a = _ref => {
206
206
  };
207
207
  const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
208
208
  'data-garden-id': COMPONENT_ID$d,
209
- 'data-garden-version': '9.2.0'
209
+ 'data-garden-version': '9.4.0'
210
210
  }).withConfig({
211
211
  displayName: "StyledClose",
212
212
  componentId: "sc-1mr9nx1-0"
@@ -215,7 +215,7 @@ const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
215
215
  const COMPONENT_ID$c = 'notifications.paragraph';
216
216
  const StyledParagraph = styled__default.default.p.attrs({
217
217
  'data-garden-id': COMPONENT_ID$c,
218
- 'data-garden-version': '9.2.0'
218
+ 'data-garden-version': '9.4.0'
219
219
  }).withConfig({
220
220
  displayName: "StyledParagraph",
221
221
  componentId: "sc-12tmd6p-0"
@@ -224,7 +224,7 @@ const StyledParagraph = styled__default.default.p.attrs({
224
224
  const COMPONENT_ID$b = 'notifications.title';
225
225
  const StyledTitle = styled__default.default.div.attrs({
226
226
  'data-garden-id': COMPONENT_ID$b,
227
- 'data-garden-version': '9.2.0'
227
+ 'data-garden-version': '9.4.0'
228
228
  }).withConfig({
229
229
  displayName: "StyledTitle",
230
230
  componentId: "sc-xx4jsv-0"
@@ -305,7 +305,7 @@ const padding = props => {
305
305
  };
306
306
  const StyledBase = styled__default.default.div.attrs({
307
307
  'data-garden-id': COMPONENT_ID$a,
308
- 'data-garden-version': '9.2.0'
308
+ 'data-garden-version': '9.4.0'
309
309
  }).withConfig({
310
310
  displayName: "StyledBase",
311
311
  componentId: "sc-14syaqw-0"
@@ -340,7 +340,7 @@ const colorStyles$8 = props => {
340
340
  };
341
341
  const StyledAlert = styled__default.default(StyledBase).attrs({
342
342
  'data-garden-id': COMPONENT_ID$9,
343
- 'data-garden-version': '9.2.0'
343
+ 'data-garden-version': '9.4.0'
344
344
  }).withConfig({
345
345
  displayName: "StyledAlert",
346
346
  componentId: "sc-fyn8jp-0"
@@ -375,7 +375,7 @@ const colorStyles$7 = props => {
375
375
  };
376
376
  const StyledNotification = styled__default.default(StyledBase).attrs({
377
377
  'data-garden-id': COMPONENT_ID$8,
378
- 'data-garden-version': '9.2.0'
378
+ 'data-garden-version': '9.4.0'
379
379
  }).withConfig({
380
380
  displayName: "StyledNotification",
381
381
  componentId: "sc-uf6jh-0"
@@ -411,7 +411,7 @@ const colorStyles$6 = _ref => {
411
411
  };
412
412
  const StyledWell = styled__default.default(StyledBase).attrs({
413
413
  'data-garden-id': COMPONENT_ID$7,
414
- 'data-garden-version': '9.2.0'
414
+ 'data-garden-version': '9.4.0'
415
415
  }).withConfig({
416
416
  displayName: "StyledWell",
417
417
  componentId: "sc-a5831c-0"
@@ -458,7 +458,7 @@ const colorStyles$5 = _ref2 => {
458
458
  };
459
459
  const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
460
460
  'data-garden-id': COMPONENT_ID$6,
461
- 'data-garden-version': '9.2.0'
461
+ 'data-garden-version': '9.4.0'
462
462
  }).withConfig({
463
463
  displayName: "StyledIcon",
464
464
  componentId: "sc-msklws-0"
@@ -605,7 +605,7 @@ const sizeStyles$3 = props => {
605
605
  };
606
606
  const StyledGlobalAlert = styled__default.default.div.attrs({
607
607
  'data-garden-id': COMPONENT_ID$5,
608
- 'data-garden-version': '9.2.0'
608
+ 'data-garden-version': '9.4.0'
609
609
  }).withConfig({
610
610
  displayName: "StyledGlobalAlert",
611
611
  componentId: "sc-k6rimt-0"
@@ -694,7 +694,7 @@ const sizeStyles$2 = props => {
694
694
  };
695
695
  const StyledGlobalAlertClose = styled__default.default(reactButtons.IconButton).attrs({
696
696
  'data-garden-id': COMPONENT_ID$4,
697
- 'data-garden-version': '9.2.0'
697
+ 'data-garden-version': '9.4.0'
698
698
  }).withConfig({
699
699
  displayName: "StyledGlobalAlertClose",
700
700
  componentId: "sc-1g5s93s-0"
@@ -797,7 +797,7 @@ function sizeStyles$1(props) {
797
797
  }
798
798
  const StyledGlobalAlertButton = styled__default.default(reactButtons.Button).attrs({
799
799
  'data-garden-id': COMPONENT_ID$3,
800
- 'data-garden-version': '9.2.0'
800
+ 'data-garden-version': '9.4.0'
801
801
  }).withConfig({
802
802
  displayName: "StyledGlobalAlertButton",
803
803
  componentId: "sc-1txe91a-0"
@@ -806,7 +806,7 @@ const StyledGlobalAlertButton = styled__default.default(reactButtons.Button).att
806
806
  const COMPONENT_ID$2 = 'notifications.global_alert.content';
807
807
  const StyledGlobalAlertContent = styled__default.default.div.attrs({
808
808
  'data-garden-id': COMPONENT_ID$2,
809
- 'data-garden-version': '9.2.0'
809
+ 'data-garden-version': '9.4.0'
810
810
  }).withConfig({
811
811
  displayName: "StyledGlobalAlertContent",
812
812
  componentId: "sc-rept0u-0"
@@ -857,7 +857,7 @@ const colorStyles$1 = _ref => {
857
857
  };
858
858
  const StyledGlobalAlertIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
859
859
  'data-garden-id': COMPONENT_ID$1,
860
- 'data-garden-version': '9.2.0'
860
+ 'data-garden-version': '9.4.0'
861
861
  }).withConfig({
862
862
  displayName: "StyledGlobalAlertIcon",
863
863
  componentId: "sc-84ne9k-0"
@@ -893,7 +893,7 @@ const colorStyles = _ref => {
893
893
  };
894
894
  const StyledGlobalAlertTitle = styled__default.default.div.attrs({
895
895
  'data-garden-id': COMPONENT_ID,
896
- 'data-garden-version': '9.2.0'
896
+ 'data-garden-version': '9.4.0'
897
897
  }).withConfig({
898
898
  displayName: "StyledGlobalAlertTitle",
899
899
  componentId: "sc-10clqbo-0"
@@ -1468,7 +1468,7 @@ const GlobalAlertComponent = React.forwardRef((_ref, ref) => {
1468
1468
  warning: React__namespace.default.createElement(SvgAlertWarningStroke, null),
1469
1469
  info: React__namespace.default.createElement(SvgInfoStroke, null)
1470
1470
  }[type];
1471
- return React__namespace.default.createElement(styled.ThemeProvider, {
1471
+ return React__namespace.default.createElement(reactTheming.ThemeProvider, {
1472
1472
  theme: theme => ({
1473
1473
  ...theme,
1474
1474
  colors: {
@@ -4,16 +4,15 @@
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';
8
7
  import { Placement } from '../../types';
9
8
  export declare const TRANSITION_CLASS = "garden-toast-transition";
10
- export declare const StyledFadeInTransition: import("styled-components").StyledComponent<"div", DefaultTheme, {
9
+ export declare const StyledFadeInTransition: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
11
10
  $isHidden: boolean;
12
11
  placement: Placement;
13
- }, never>;
12
+ }>> & string;
14
13
  interface IStyledTransitionContainerProps {
15
14
  $toastPlacement: Placement;
16
15
  $toastZIndex?: number;
17
16
  }
18
- export declare const StyledTransitionContainer: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTransitionContainerProps, never>;
17
+ export declare const StyledTransitionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IStyledTransitionContainerProps>> & string;
19
18
  export {};
@@ -4,7 +4,6 @@
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';
8
7
  import { IStyledBaseProps } from './StyledBase';
9
8
  import { Type } from '../types';
10
9
  export interface IStyledAlertProps extends IStyledBaseProps {
@@ -13,10 +12,8 @@ export interface IStyledAlertProps extends IStyledBaseProps {
13
12
  /**
14
13
  * Supports all `<div>` props
15
14
  */
16
- export declare const StyledAlert: import("styled-components").StyledComponent<"div", DefaultTheme, {
17
- 'data-garden-id': string;
18
- 'data-garden-version': string;
19
- } & IStyledBaseProps & {
20
- 'data-garden-id': string;
21
- 'data-garden-version': string;
22
- } & IStyledAlertProps, "data-garden-id" | "data-garden-version">;
15
+ export declare const StyledAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
+ }>, never>, keyof IStyledBaseProps> & IStyledBaseProps, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
+ }>, never>, keyof IStyledBaseProps> & IStyledBaseProps>, never>, IStyledAlertProps>> & string;
@@ -10,7 +10,6 @@ export interface IStyledBaseProps extends ThemeProps<DefaultTheme> {
10
10
  $isFloating?: boolean;
11
11
  $type?: Type;
12
12
  }
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">;
13
+ export declare const StyledBase: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
+ }>, never>, IStyledBaseProps>> & string;
@@ -4,13 +4,10 @@
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, ThemeProps } from 'styled-components';
7
+ import { DataAttributes, DefaultTheme, ThemeProps } from 'styled-components';
8
8
  import { Type } from '../types';
9
9
  interface IStyledIconProps extends ThemeProps<DefaultTheme> {
10
10
  $type?: Type;
11
11
  }
12
- export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
13
- 'data-garden-id': string;
14
- 'data-garden-version': string;
15
- } & IStyledIconProps, "data-garden-id" | "data-garden-version">;
12
+ export declare const StyledIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>, import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>>, DataAttributes>, IStyledIconProps>> & string;
16
13
  export {};
@@ -4,7 +4,6 @@
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';
8
7
  import { Type } from '../types';
9
8
  import { IStyledBaseProps } from './StyledBase';
10
9
  interface IStyledNotificationProps extends IStyledBaseProps {
@@ -13,11 +12,9 @@ interface IStyledNotificationProps extends IStyledBaseProps {
13
12
  /**
14
13
  * Supports all `<div>` props
15
14
  */
16
- export declare const StyledNotification: import("styled-components").StyledComponent<"div", DefaultTheme, {
17
- 'data-garden-id': string;
18
- 'data-garden-version': string;
19
- } & IStyledBaseProps & {
20
- 'data-garden-id': string;
21
- 'data-garden-version': string;
22
- } & IStyledNotificationProps, "data-garden-id" | "data-garden-version">;
15
+ export declare const StyledNotification: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
+ }>, never>, keyof IStyledBaseProps> & IStyledBaseProps, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
19
+ }>, never>, keyof IStyledBaseProps> & IStyledBaseProps>, never>, IStyledNotificationProps>> & string;
23
20
  export {};
@@ -4,7 +4,6 @@
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';
8
7
  export interface IStyledWellProps {
9
8
  $isRecessed?: boolean;
10
9
  $isFloating?: boolean;
@@ -12,10 +11,8 @@ export interface IStyledWellProps {
12
11
  /**
13
12
  * Supports all `<div>` props
14
13
  */
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 & {
19
- 'data-garden-id': string;
20
- 'data-garden-version': string;
21
- } & IStyledWellProps, "data-garden-id" | "data-garden-version">;
14
+ export declare const StyledWell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
+ }>, never>, keyof import("./StyledBase").IStyledBaseProps> & import("./StyledBase").IStyledBaseProps, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
+ }>, never>, keyof import("./StyledBase").IStyledBaseProps> & import("./StyledBase").IStyledBaseProps>, never>, IStyledWellProps>> & string;
@@ -4,7 +4,6 @@
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';
8
7
  import { Type } from '../../types';
9
8
  interface IStyledCloseProps {
10
9
  $type?: Type;
@@ -15,8 +14,9 @@ interface IStyledCloseProps {
15
14
  * 1. Reset for <button> element.
16
15
  * 2. Remove dotted outline from Firefox on focus.
17
16
  */
18
- export declare const StyledClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {
19
- 'data-garden-id': string;
20
- 'data-garden-version': string;
21
- } & IStyledCloseProps, "data-garden-id" | "data-garden-version">;
17
+ export declare const StyledClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
18
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
19
+ }, Omit<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
20
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
21
+ }>, never>, IStyledCloseProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
22
22
  export {};
@@ -7,7 +7,6 @@
7
7
  /**
8
8
  * Used for multi-line Notification content. Supports all `<p>` props
9
9
  */
10
- export declare const StyledParagraph: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- }, "data-garden-id" | "data-garden-version">;
10
+ export declare const StyledParagraph: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
11
+ ref?: ((instance: HTMLParagraphElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
12
+ }>, never>, never>> & string;
@@ -10,7 +10,6 @@ export interface IStyledTitleProps {
10
10
  /**
11
11
  * 1. Reset for <h1>, etc.
12
12
  */
13
- export declare const StyledTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
14
- 'data-garden-id': string;
15
- 'data-garden-version': string;
16
- } & IStyledTitleProps, "data-garden-id" | "data-garden-version">;
13
+ export declare const StyledTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
15
+ }>, never>, IStyledTitleProps>> & string;
@@ -4,13 +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
- import { DefaultTheme } from 'styled-components';
8
7
  import { IGlobalAlertProps } from '../../types';
9
8
  interface IStyledGlobalAlertProps {
10
9
  $alertType: IGlobalAlertProps['type'];
11
10
  }
12
- export declare const StyledGlobalAlert: import("styled-components").StyledComponent<"div", DefaultTheme, {
13
- 'data-garden-id': string;
14
- 'data-garden-version': string;
15
- } & IStyledGlobalAlertProps, "data-garden-id" | "data-garden-version">;
11
+ export declare const StyledGlobalAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
13
+ }>, never>, IStyledGlobalAlertProps>> & string;
16
14
  export {};
@@ -4,17 +4,17 @@
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';
8
7
  import { IGlobalAlertProps } from '../../types';
9
8
  interface IStyledGlobalAlertButtonProps {
10
9
  $alertType: IGlobalAlertProps['type'];
11
10
  isBasic?: boolean;
12
11
  }
13
- export declare const StyledGlobalAlertButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
12
+ export declare const StyledGlobalAlertButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
13
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
+ }, Omit<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
15
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
16
+ }>, never>, IStyledGlobalAlertButtonProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
14
17
  EndIcon: typeof import("packages/buttons/dist/typings/elements/components/EndIcon").EndIcon;
15
18
  StartIcon: typeof import("packages/buttons/dist/typings/elements/components/StartIcon").StartIcon;
16
- }, DefaultTheme, {
17
- 'data-garden-id': string;
18
- 'data-garden-version': string;
19
- } & IStyledGlobalAlertButtonProps, "data-garden-id" | "data-garden-version">;
19
+ }, keyof import("react").Component<any, {}, any>>;
20
20
  export {};
@@ -9,9 +9,10 @@ import { IGlobalAlertProps } from '../../types';
9
9
  interface IStyledGlobalAlertCloseProps {
10
10
  $alertType: IGlobalAlertProps['type'];
11
11
  }
12
- export declare const colorStyles: (props: ThemeProps<DefaultTheme> & IStyledGlobalAlertCloseProps) => import("styled-components").FlattenSimpleInterpolation;
13
- export declare const StyledGlobalAlertClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {
14
- 'data-garden-id': string;
15
- 'data-garden-version': string;
16
- } & IStyledGlobalAlertCloseProps, "data-garden-id" | "data-garden-version">;
12
+ export declare const colorStyles: (props: ThemeProps<DefaultTheme> & IStyledGlobalAlertCloseProps) => import("styled-components").RuleSet<object>;
13
+ export declare const StyledGlobalAlertClose: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
14
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
15
+ }, Omit<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
16
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
17
+ }>, never>, IStyledGlobalAlertCloseProps>> & string & Omit<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;
17
18
  export {};
@@ -4,7 +4,6 @@
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 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">;
7
+ export declare const StyledGlobalAlertContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
+ }>, never>, never>> & string;
@@ -4,8 +4,10 @@
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';
8
- export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
9
- 'data-garden-id': string;
10
- 'data-garden-version': string;
11
- }, "data-garden-id" | "data-garden-version">;
7
+ import { DataAttributes } from 'styled-components';
8
+ import { Type } from '../../types';
9
+ interface IStyledGlobalAlertIconProps {
10
+ $alertType: Type;
11
+ }
12
+ export declare const StyledGlobalAlertIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>, import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>>, DataAttributes>, IStyledGlobalAlertIconProps>> & string;
13
+ export {};
@@ -4,14 +4,12 @@
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';
8
7
  import { IGlobalAlertProps, IGlobalAlertTitleProps } from '../../types';
9
8
  interface IStyledGlobalAlertTitleProps {
10
9
  $alertType: IGlobalAlertProps['type'];
11
10
  $isRegular?: IGlobalAlertTitleProps['isRegular'];
12
11
  }
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">;
12
+ export declare const StyledGlobalAlertTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
+ }>, never>, IStyledGlobalAlertTitleProps>> & string;
17
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-notifications",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
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": "^9.2.0",
24
+ "@zendeskgarden/react-buttons": "^9.4.0",
25
25
  "polished": "^4.3.1",
26
26
  "prop-types": "^15.5.7",
27
27
  "react-transition-group": "^4.4.2",
@@ -31,11 +31,11 @@
31
31
  "@zendeskgarden/react-theming": ">=9.0.0",
32
32
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
33
33
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
34
- "styled-components": "^5.3.1"
34
+ "styled-components": "^5.3.1 || ^6.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/react-transition-group": "4.4.11",
38
- "@zendeskgarden/react-theming": "^9.2.0",
38
+ "@zendeskgarden/react-theming": "^9.4.0",
39
39
  "@zendeskgarden/svg-icons": "7.3.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": "23a86c9a1e830685e277544c089b44614c2261ac"
51
+ "gitHead": "02e3f240b6f0c776fdae785254d6fe90cbfc37e4"
52
52
  }