@zendeskgarden/react-notifications 9.12.3 → 9.12.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 (34) hide show
  1. package/dist/esm/elements/Notification.js +5 -6
  2. package/dist/esm/elements/Title.js +7 -10
  3. package/dist/esm/elements/alert/Alert.js +5 -6
  4. package/dist/esm/elements/alert/Close.js +4 -4
  5. package/dist/esm/elements/alert/Paragraph.js +3 -3
  6. package/dist/esm/elements/alert/Title.js +9 -12
  7. package/dist/esm/elements/global-alert/GlobalAlert.js +4 -5
  8. package/dist/esm/elements/global-alert/GlobalAlertButton.js +4 -5
  9. package/dist/esm/elements/global-alert/GlobalAlertTitle.js +4 -5
  10. package/dist/esm/elements/toaster/Toast.js +4 -5
  11. package/dist/esm/elements/toaster/ToastProvider.js +6 -7
  12. package/dist/esm/elements/toaster/ToastSlot.js +7 -8
  13. package/dist/esm/elements/toaster/useToast.js +1 -2
  14. package/dist/esm/elements/well/Well.js +9 -12
  15. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +5 -5
  16. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +5 -5
  17. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +4 -4
  18. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/info-stroke.svg.js +2 -2
  19. package/dist/esm/styled/StyledAlert.js +5 -5
  20. package/dist/esm/styled/StyledBase.js +9 -10
  21. package/dist/esm/styled/StyledIcon.js +14 -16
  22. package/dist/esm/styled/StyledNotification.js +5 -5
  23. package/dist/esm/styled/StyledWell.js +9 -10
  24. package/dist/esm/styled/content/StyledClose.js +8 -9
  25. package/dist/esm/styled/content/StyledParagraph.js +3 -3
  26. package/dist/esm/styled/content/StyledTitle.js +3 -3
  27. package/dist/esm/styled/global-alert/StyledGlobalAlert.js +10 -11
  28. package/dist/esm/styled/global-alert/StyledGlobalAlertButton.js +8 -8
  29. package/dist/esm/styled/global-alert/StyledGlobalAlertClose.js +7 -7
  30. package/dist/esm/styled/global-alert/StyledGlobalAlertContent.js +3 -3
  31. package/dist/esm/styled/global-alert/StyledGlobalAlertIcon.js +8 -9
  32. package/dist/esm/styled/global-alert/StyledGlobalAlertTitle.js +5 -6
  33. package/dist/index.cjs.js +113 -139
  34. package/package.json +5 -5
@@ -27,12 +27,11 @@ import { Title } from './Title.js';
27
27
  import { Paragraph } from './Paragraph.js';
28
28
  import { Close } from './Close.js';
29
29
 
30
- const NotificationComponent = forwardRef((_ref, ref) => {
31
- let {
32
- children,
33
- type,
34
- ...props
35
- } = _ref;
30
+ const NotificationComponent = forwardRef(({
31
+ children,
32
+ type,
33
+ ...props
34
+ }, ref) => {
36
35
  const Icon = type ? validationIcons[type] : SvgInfoStroke;
37
36
  return React__default.createElement(StyledNotification, Object.assign({
38
37
  ref: ref,
@@ -20,16 +20,13 @@ import '../styled/global-alert/StyledGlobalAlertContent.js';
20
20
  import '../styled/global-alert/StyledGlobalAlertIcon.js';
21
21
  import '../styled/global-alert/StyledGlobalAlertTitle.js';
22
22
 
23
- const Title = React__default.forwardRef((_ref, ref) => {
24
- let {
25
- isRegular,
26
- ...props
27
- } = _ref;
28
- return React__default.createElement(StyledTitle, Object.assign({
29
- ref: ref,
30
- $isRegular: isRegular
31
- }, props));
32
- });
23
+ const Title = React__default.forwardRef(({
24
+ isRegular,
25
+ ...props
26
+ }, ref) => React__default.createElement(StyledTitle, Object.assign({
27
+ ref: ref,
28
+ $isRegular: isRegular
29
+ }, props)));
33
30
  Title.displayName = 'Notification.Title';
34
31
 
35
32
  export { Title };
@@ -27,12 +27,11 @@ import { Title } from './Title.js';
27
27
  import { Paragraph } from './Paragraph.js';
28
28
  import { Close } from './Close.js';
29
29
 
30
- const AlertComponent = React__default.forwardRef((_ref, ref) => {
31
- let {
32
- role,
33
- type,
34
- ...props
35
- } = _ref;
30
+ const AlertComponent = React__default.forwardRef(({
31
+ role,
32
+ type,
33
+ ...props
34
+ }, ref) => {
36
35
  const Icon = validationIcons[type];
37
36
  return React__default.createElement(NotificationsContext.Provider, {
38
37
  value: type
@@ -23,8 +23,8 @@ import { useNotificationsContext } from '../../utils/useNotificationsContext.js'
23
23
  import { useText } from '@zendeskgarden/react-theming';
24
24
  import SvgXStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js';
25
25
 
26
- const Close = React__default.forwardRef((props, ref) => {
27
- const ariaLabel = useText(Close, props, 'aria-label', 'Close');
26
+ const Close$1 = React__default.forwardRef((props, ref) => {
27
+ const ariaLabel = useText(Close$1, props, 'aria-label', 'Close');
28
28
  const type = useNotificationsContext();
29
29
  return React__default.createElement(StyledClose, Object.assign({
30
30
  ref: ref,
@@ -35,6 +35,6 @@ const Close = React__default.forwardRef((props, ref) => {
35
35
  size: "small"
36
36
  }), React__default.createElement(SvgXStroke, null));
37
37
  });
38
- Close.displayName = 'Alert.Close';
38
+ Close$1.displayName = 'Alert.Close';
39
39
 
40
- export { Close };
40
+ export { Close$1 as Close };
@@ -20,9 +20,9 @@ import '../../styled/global-alert/StyledGlobalAlertContent.js';
20
20
  import '../../styled/global-alert/StyledGlobalAlertIcon.js';
21
21
  import '../../styled/global-alert/StyledGlobalAlertTitle.js';
22
22
 
23
- const Paragraph = React__default.forwardRef((props, ref) => React__default.createElement(StyledParagraph, Object.assign({
23
+ const Paragraph$1 = React__default.forwardRef((props, ref) => React__default.createElement(StyledParagraph, Object.assign({
24
24
  ref: ref
25
25
  }, props)));
26
- Paragraph.displayName = 'Alert.Paragraph';
26
+ Paragraph$1.displayName = 'Alert.Paragraph';
27
27
 
28
- export { Paragraph };
28
+ export { Paragraph$1 as Paragraph };
@@ -20,16 +20,13 @@ import '../../styled/global-alert/StyledGlobalAlertContent.js';
20
20
  import '../../styled/global-alert/StyledGlobalAlertIcon.js';
21
21
  import '../../styled/global-alert/StyledGlobalAlertTitle.js';
22
22
 
23
- const Title = React__default.forwardRef((_ref, ref) => {
24
- let {
25
- isRegular,
26
- ...props
27
- } = _ref;
28
- return React__default.createElement(StyledTitle, Object.assign({
29
- ref: ref,
30
- $isRegular: isRegular
31
- }, props));
32
- });
33
- Title.displayName = 'Alert.Title';
23
+ const Title$1 = React__default.forwardRef(({
24
+ isRegular,
25
+ ...props
26
+ }, ref) => React__default.createElement(StyledTitle, Object.assign({
27
+ ref: ref,
28
+ $isRegular: isRegular
29
+ }, props)));
30
+ Title$1.displayName = 'Alert.Title';
34
31
 
35
- export { Title };
32
+ export { Title$1 as Title };
@@ -32,11 +32,10 @@ import { GlobalAlertClose } from './GlobalAlertClose.js';
32
32
  import { GlobalAlertContent } from './GlobalAlertContent.js';
33
33
  import { GlobalAlertTitle } from './GlobalAlertTitle.js';
34
34
 
35
- const GlobalAlertComponent = forwardRef((_ref, ref) => {
36
- let {
37
- type,
38
- ...props
39
- } = _ref;
35
+ const GlobalAlertComponent = forwardRef(({
36
+ type,
37
+ ...props
38
+ }, ref) => {
40
39
  const icon = {
41
40
  success: React__default.createElement(SvgCheckCircleStroke, null),
42
41
  error: React__default.createElement(SvgAlertErrorStroke, null),
@@ -22,11 +22,10 @@ import '../../styled/global-alert/StyledGlobalAlertIcon.js';
22
22
  import '../../styled/global-alert/StyledGlobalAlertTitle.js';
23
23
  import { useGlobalAlertContext } from '../../utils/useGlobalAlertContext.js';
24
24
 
25
- const GlobalAlertButton = forwardRef((_ref, ref) => {
26
- let {
27
- isBasic,
28
- ...props
29
- } = _ref;
25
+ const GlobalAlertButton = forwardRef(({
26
+ isBasic,
27
+ ...props
28
+ }, ref) => {
30
29
  const {
31
30
  type
32
31
  } = useGlobalAlertContext();
@@ -22,11 +22,10 @@ import '../../styled/global-alert/StyledGlobalAlertIcon.js';
22
22
  import { StyledGlobalAlertTitle } from '../../styled/global-alert/StyledGlobalAlertTitle.js';
23
23
  import { useGlobalAlertContext } from '../../utils/useGlobalAlertContext.js';
24
24
 
25
- const GlobalAlertTitle = forwardRef((_ref, ref) => {
26
- let {
27
- isRegular,
28
- ...props
29
- } = _ref;
25
+ const GlobalAlertTitle = forwardRef(({
26
+ isRegular,
27
+ ...props
28
+ }, ref) => {
30
29
  const {
31
30
  type
32
31
  } = useGlobalAlertContext();
@@ -7,11 +7,10 @@
7
7
  import { useState, useRef, useEffect, useCallback } from 'react';
8
8
  import { useToast } from './useToast.js';
9
9
 
10
- const Toast = _ref => {
11
- let {
12
- toast,
13
- pauseTimers
14
- } = _ref;
10
+ const Toast = ({
11
+ toast,
12
+ pauseTimers
13
+ }) => {
15
14
  const {
16
15
  removeToast
17
16
  } = useToast();
@@ -10,13 +10,12 @@ import { toasterReducer, getInitialState } from './reducer.js';
10
10
  import { ToastContext } from './ToastContext.js';
11
11
  import { ToastSlot } from './ToastSlot.js';
12
12
 
13
- const ToastProvider = _ref => {
14
- let {
15
- limit = 4,
16
- zIndex,
17
- placementProps = {},
18
- children
19
- } = _ref;
13
+ const ToastProvider = ({
14
+ limit = 4,
15
+ zIndex,
16
+ placementProps = {},
17
+ children
18
+ }) => {
20
19
  const [state, dispatch] = useReducer(toasterReducer, getInitialState());
21
20
  const contextValue = useMemo(() => ({
22
21
  state,
@@ -11,14 +11,13 @@ import { useDocument } from '@zendeskgarden/react-theming';
11
11
  import { Toast } from './Toast.js';
12
12
  import { StyledTransitionContainer, TRANSITION_CLASS, StyledFadeInTransition } from './styled.js';
13
13
 
14
- const ToastSlot = _ref => {
15
- let {
16
- toasts,
17
- placement,
18
- zIndex,
19
- limit,
20
- ...props
21
- } = _ref;
14
+ const ToastSlot = ({
15
+ toasts,
16
+ placement,
17
+ zIndex,
18
+ limit,
19
+ ...props
20
+ }) => {
22
21
  const [pauseTimers, setPauseTimers] = useState(false);
23
22
  const theme = useContext(ThemeContext);
24
23
  const environment = useDocument(theme);
@@ -21,8 +21,7 @@ const useToast = () => {
21
21
  dispatch,
22
22
  state
23
23
  } = context;
24
- const addToast = useCallback(function (content) {
25
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
24
+ const addToast = useCallback((content, options = {}) => {
26
25
  const mergedOptions = {
27
26
  ...DEFAULT_TOAST_OPTIONS,
28
27
  ...options
@@ -23,18 +23,15 @@ import '../../styled/global-alert/StyledGlobalAlertTitle.js';
23
23
  import { Title } from '../Title.js';
24
24
  import { Paragraph } from '../Paragraph.js';
25
25
 
26
- const WellComponent = React__default.forwardRef((_ref, ref) => {
27
- let {
28
- isFloating,
29
- isRecessed,
30
- ...props
31
- } = _ref;
32
- return React__default.createElement(StyledWell, Object.assign({
33
- ref: ref,
34
- $isFloating: isFloating,
35
- $isRecessed: isRecessed
36
- }, props));
37
- });
26
+ const WellComponent = React__default.forwardRef(({
27
+ isFloating,
28
+ isRecessed,
29
+ ...props
30
+ }, ref) => React__default.createElement(StyledWell, Object.assign({
31
+ ref: ref,
32
+ $isFloating: isFloating,
33
+ $isRecessed: isRecessed
34
+ }, props)));
38
35
  WellComponent.displayName = 'Well';
39
36
  WellComponent.propTypes = {
40
37
  isRecessed: PropTypes.bool,
@@ -6,17 +6,17 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
 
9
- var _g, _circle;
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9
+ var _g$2, _circle$2;
10
+ function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
11
11
  var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
12
- return /*#__PURE__*/React.createElement("svg", _extends({
12
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 16,
15
15
  height: 16,
16
16
  focusable: "false",
17
17
  viewBox: "0 0 16 16",
18
18
  "aria-hidden": "true"
19
- }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
19
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
20
20
  fill: "none",
21
21
  stroke: "currentColor"
22
22
  }, /*#__PURE__*/React.createElement("circle", {
@@ -26,7 +26,7 @@ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
26
26
  }), /*#__PURE__*/React.createElement("path", {
27
27
  strokeLinecap: "round",
28
28
  d: "M7.5 4.5V9"
29
- }))), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
29
+ }))), _circle$2 || (_circle$2 = /*#__PURE__*/React.createElement("circle", {
30
30
  cx: 7.5,
31
31
  cy: 12,
32
32
  r: 1,
@@ -6,22 +6,22 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
 
9
- var _path, _circle;
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9
+ var _path$1, _circle$1;
10
+ function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
11
11
  var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
12
- return /*#__PURE__*/React.createElement("svg", _extends({
12
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 16,
15
15
  height: 16,
16
16
  focusable: "false",
17
17
  viewBox: "0 0 16 16",
18
18
  "aria-hidden": "true"
19
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
19
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
20
20
  fill: "none",
21
21
  stroke: "currentColor",
22
22
  strokeLinecap: "round",
23
23
  d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
24
- })), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
24
+ })), _circle$1 || (_circle$1 = /*#__PURE__*/React.createElement("circle", {
25
25
  cx: 7.5,
26
26
  cy: 12,
27
27
  r: 1,
@@ -6,17 +6,17 @@
6
6
  */
7
7
  import * as React from 'react';
8
8
 
9
- var _g;
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
9
+ var _g$1;
10
+ function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
11
11
  var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
12
- return /*#__PURE__*/React.createElement("svg", _extends({
12
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 16,
15
15
  height: 16,
16
16
  focusable: "false",
17
17
  viewBox: "0 0 16 16",
18
18
  "aria-hidden": "true"
19
- }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
19
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
20
20
  fill: "none",
21
21
  stroke: "currentColor"
22
22
  }, /*#__PURE__*/React.createElement("path", {
@@ -7,9 +7,9 @@
7
7
  import * as React from 'react';
8
8
 
9
9
  var _g, _circle;
10
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
10
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
11
11
  var SvgInfoStroke = function SvgInfoStroke(props) {
12
- return /*#__PURE__*/React.createElement("svg", _extends({
12
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  width: 16,
15
15
  height: 16,
@@ -10,8 +10,8 @@ import { StyledTitle } from './content/StyledTitle.js';
10
10
  import { StyledBase } from './StyledBase.js';
11
11
  import { validationTypes } from '../utils/icons.js';
12
12
 
13
- const COMPONENT_ID = 'notifications.alert';
14
- const colorStyles = props => {
13
+ const COMPONENT_ID$9 = 'notifications.alert';
14
+ const colorStyles$8 = props => {
15
15
  const {
16
16
  $type,
17
17
  theme
@@ -38,11 +38,11 @@ const colorStyles = props => {
38
38
  return css(["", "{color:", ";}"], StyledTitle, color);
39
39
  };
40
40
  const StyledAlert = styled(StyledBase).attrs({
41
- 'data-garden-id': COMPONENT_ID,
42
- 'data-garden-version': '9.12.3'
41
+ 'data-garden-id': COMPONENT_ID$9,
42
+ 'data-garden-version': '9.12.4'
43
43
  }).withConfig({
44
44
  displayName: "StyledAlert",
45
45
  componentId: "sc-fyn8jp-0"
46
- })(["", " ", ";"], colorStyles, componentStyles);
46
+ })(["", " ", ";"], colorStyles$8, componentStyles);
47
47
 
48
48
  export { StyledAlert };
@@ -8,13 +8,12 @@ import styled, { css } from 'styled-components';
8
8
  import { getLineHeight, componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
  import { validationTypes } from '../utils/icons.js';
10
10
 
11
- const COMPONENT_ID = 'notifications.base_container';
12
- const colorStyles = _ref => {
13
- let {
14
- theme,
15
- $type,
16
- $isFloating
17
- } = _ref;
11
+ const COMPONENT_ID$a = 'notifications.base_container';
12
+ const colorStyles$9 = ({
13
+ theme,
14
+ $type,
15
+ $isFloating
16
+ }) => {
18
17
  const {
19
18
  space,
20
19
  shadows
@@ -79,11 +78,11 @@ const padding = props => {
79
78
  return `${paddingVertical} ${paddingHorizontal}`;
80
79
  };
81
80
  const StyledBase = styled.div.attrs({
82
- 'data-garden-id': COMPONENT_ID,
83
- 'data-garden-version': '9.12.3'
81
+ 'data-garden-id': COMPONENT_ID$a,
82
+ 'data-garden-version': '9.12.4'
84
83
  }).withConfig({
85
84
  displayName: "StyledBase",
86
85
  componentId: "sc-14syaqw-0"
87
- })(["position:relative;border:", ";border-radius:", ";padding:", ";line-height:", ";font-size:", ";direction:", ";", ";", ""], props => props.theme.borders.sm, props => props.theme.borderRadii.md, padding, props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.rtl && 'rtl', colorStyles, componentStyles);
86
+ })(["position:relative;border:", ";border-radius:", ";padding:", ";line-height:", ";font-size:", ";direction:", ";", ";", ""], props => props.theme.borders.sm, props => props.theme.borderRadii.md, padding, props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.rtl && 'rtl', colorStyles$9, componentStyles);
88
87
 
89
88
  export { StyledBase };
@@ -8,21 +8,19 @@ import styled, { css } from 'styled-components';
8
8
  import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
  import { validationTypes } from '../utils/icons.js';
10
10
 
11
- const COMPONENT_ID = 'notifications.icon';
12
- const sizeStyles = _ref => {
13
- let {
14
- theme: {
15
- rtl,
16
- space
17
- }
18
- } = _ref;
11
+ const COMPONENT_ID$6 = 'notifications.icon';
12
+ const sizeStyles$4 = ({
13
+ theme: {
14
+ rtl,
15
+ space
16
+ }
17
+ }) => {
19
18
  return css(["right:", ";left:", ";margin-top:", "px;"], rtl && `${space.base * 4}px`, !rtl && `${space.base * 4}px`, space.base / 2);
20
19
  };
21
- const colorStyles = _ref2 => {
22
- let {
23
- theme,
24
- $type
25
- } = _ref2;
20
+ const colorStyles$5 = ({
21
+ theme,
22
+ $type
23
+ }) => {
26
24
  let variable;
27
25
  switch ($type) {
28
26
  case validationTypes.success:
@@ -48,11 +46,11 @@ const colorStyles = _ref2 => {
48
46
  return css(["color:", ";"], color);
49
47
  };
50
48
  const StyledIcon = styled(StyledBaseIcon).attrs({
51
- 'data-garden-id': COMPONENT_ID,
52
- 'data-garden-version': '9.12.3'
49
+ 'data-garden-id': COMPONENT_ID$6,
50
+ 'data-garden-version': '9.12.4'
53
51
  }).withConfig({
54
52
  displayName: "StyledIcon",
55
53
  componentId: "sc-msklws-0"
56
- })(["position:absolute;", " ", " ", ""], sizeStyles, colorStyles, componentStyles);
54
+ })(["position:absolute;", " ", " ", ""], sizeStyles$4, colorStyles$5, componentStyles);
57
55
 
58
56
  export { StyledIcon };
@@ -12,8 +12,8 @@ import { StyledTitle } from './content/StyledTitle.js';
12
12
  import { StyledBase } from './StyledBase.js';
13
13
  import { validationTypes } from '../utils/icons.js';
14
14
 
15
- const COMPONENT_ID = 'notifications.notification';
16
- const colorStyles = props => {
15
+ const COMPONENT_ID$8 = 'notifications.notification';
16
+ const colorStyles$7 = props => {
17
17
  const {
18
18
  $type,
19
19
  theme
@@ -40,12 +40,12 @@ const colorStyles = props => {
40
40
  return css(["", "{color:", ";}"], StyledTitle, color);
41
41
  };
42
42
  const StyledNotification = styled(StyledBase).attrs({
43
- 'data-garden-id': COMPONENT_ID,
44
- 'data-garden-version': '9.12.3'
43
+ 'data-garden-id': COMPONENT_ID$8,
44
+ 'data-garden-version': '9.12.4'
45
45
  }).withConfig({
46
46
  displayName: "StyledNotification",
47
47
  componentId: "sc-uf6jh-0"
48
- })(["", " ", ";"], colorStyles, componentStyles);
48
+ })(["", " ", ";"], colorStyles$7, componentStyles);
49
49
  StyledNotification.propTypes = {
50
50
  $type: PropTypes.oneOf(TYPE)
51
51
  };
@@ -8,13 +8,12 @@ import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
  import { StyledBase } from './StyledBase.js';
10
10
 
11
- const COMPONENT_ID = 'notifications.well';
12
- const colorStyles = _ref => {
13
- let {
14
- theme,
15
- $isFloating,
16
- $isRecessed
17
- } = _ref;
11
+ const COMPONENT_ID$7 = 'notifications.well';
12
+ const colorStyles$6 = ({
13
+ theme,
14
+ $isFloating,
15
+ $isRecessed
16
+ }) => {
18
17
  let backgroundVariable;
19
18
  if ($isRecessed) {
20
19
  backgroundVariable = 'background.recessed';
@@ -34,11 +33,11 @@ const colorStyles = _ref => {
34
33
  return css(["background-color:", ";color:", ";"], background, foreground);
35
34
  };
36
35
  const StyledWell = styled(StyledBase).attrs({
37
- 'data-garden-id': COMPONENT_ID,
38
- 'data-garden-version': '9.12.3'
36
+ 'data-garden-id': COMPONENT_ID$7,
37
+ 'data-garden-version': '9.12.4'
39
38
  }).withConfig({
40
39
  displayName: "StyledWell",
41
40
  componentId: "sc-a5831c-0"
42
- })(["", " ", ";"], colorStyles, componentStyles);
41
+ })(["", " ", ";"], colorStyles$6, componentStyles);
43
42
 
44
43
  export { StyledWell };
@@ -9,12 +9,11 @@ import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
  import { validationTypes } from '../../utils/icons.js';
10
10
  import { IconButton } from '@zendeskgarden/react-buttons';
11
11
 
12
- const COMPONENT_ID = 'notifications.close';
13
- const colorStyles = _ref => {
14
- let {
15
- theme,
16
- $type
17
- } = _ref;
12
+ const COMPONENT_ID$d = 'notifications.close';
13
+ const colorStyles$a = ({
14
+ theme,
15
+ $type
16
+ }) => {
18
17
  let variable;
19
18
  switch ($type) {
20
19
  case validationTypes.warning:
@@ -57,11 +56,11 @@ const colorStyles = _ref => {
57
56
  return css(["color:", ";&:hover{background-color:transparent;color:", ";}&:active{background-color:transparent;color:", ";}"], color, hoverColor, activeColor);
58
57
  };
59
58
  const StyledClose = styled(IconButton).attrs({
60
- 'data-garden-id': COMPONENT_ID,
61
- 'data-garden-version': '9.12.3'
59
+ 'data-garden-id': COMPONENT_ID$d,
60
+ 'data-garden-version': '9.12.4'
62
61
  }).withConfig({
63
62
  displayName: "StyledClose",
64
63
  componentId: "sc-1mr9nx1-0"
65
- })(["position:absolute;top:", "px;right:", ";left:", ";", " ", ";"], props => props.theme.space.base, p => !p.theme.rtl && `${p.theme.space.base}px`, p => p.theme.rtl && `${p.theme.space.base}px`, colorStyles, componentStyles);
64
+ })(["position:absolute;top:", "px;right:", ";left:", ";", " ", ";"], props => props.theme.space.base, p => !p.theme.rtl && `${p.theme.space.base}px`, p => p.theme.rtl && `${p.theme.space.base}px`, colorStyles$a, componentStyles);
66
65
 
67
66
  export { StyledClose };
@@ -7,10 +7,10 @@
7
7
  import styled from 'styled-components';
8
8
  import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'notifications.paragraph';
10
+ const COMPONENT_ID$c = 'notifications.paragraph';
11
11
  const StyledParagraph = styled.p.attrs({
12
- 'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.12.3'
12
+ 'data-garden-id': COMPONENT_ID$c,
13
+ 'data-garden-version': '9.12.4'
14
14
  }).withConfig({
15
15
  displayName: "StyledParagraph",
16
16
  componentId: "sc-12tmd6p-0"
@@ -7,10 +7,10 @@
7
7
  import styled from 'styled-components';
8
8
  import { getColor, componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'notifications.title';
10
+ const COMPONENT_ID$b = 'notifications.title';
11
11
  const StyledTitle = styled.div.attrs({
12
- 'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.12.3'
12
+ 'data-garden-id': COMPONENT_ID$b,
13
+ 'data-garden-version': '9.12.4'
14
14
  }).withConfig({
15
15
  displayName: "StyledTitle",
16
16
  componentId: "sc-xx4jsv-0"