@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
@@ -5,14 +5,13 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { componentStyles, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
8
+ import { componentStyles, getLineHeight, getColor, focusStyles } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'notifications.global_alert';
11
- const colorStyles = _ref => {
12
- let {
13
- theme,
14
- $alertType
15
- } = _ref;
10
+ const COMPONENT_ID$5 = 'notifications.global_alert';
11
+ const colorStyles$4 = ({
12
+ theme,
13
+ $alertType
14
+ }) => {
16
15
  let borderColor;
17
16
  let backgroundColor;
18
17
  let foregroundColor;
@@ -136,7 +135,7 @@ const colorStyles = _ref => {
136
135
  }
137
136
  }), anchorHoverColor, anchorActiveColor);
138
137
  };
139
- const sizeStyles = props => {
138
+ const sizeStyles$3 = props => {
140
139
  const {
141
140
  fontSizes,
142
141
  space
@@ -147,11 +146,11 @@ const sizeStyles = props => {
147
146
  return css(["padding:", "px;min-height:", "px;line-height:", ";font-size:", ";"], padding, minHeight, lineHeight, fontSizes.md);
148
147
  };
149
148
  const StyledGlobalAlert = styled.div.attrs({
150
- 'data-garden-id': COMPONENT_ID,
151
- 'data-garden-version': '9.12.3'
149
+ 'data-garden-id': COMPONENT_ID$5,
150
+ 'data-garden-version': '9.12.4'
152
151
  }).withConfig({
153
152
  displayName: "StyledGlobalAlert",
154
153
  componentId: "sc-k6rimt-0"
155
- })(["display:flex;flex-wrap:nowrap;overflow:auto;overflow-x:hidden;box-sizing:border-box;direction:", ";", " ", " && a{border-radius:", ";text-decoration:underline;}", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', sizeStyles, colorStyles, props => props.theme.borderRadii.sm, componentStyles);
154
+ })(["display:flex;flex-wrap:nowrap;overflow:auto;overflow-x:hidden;box-sizing:border-box;direction:", ";", " ", " && a{border-radius:", ";text-decoration:underline;}", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', sizeStyles$3, colorStyles$4, props => props.theme.borderRadii.sm, componentStyles);
156
155
 
157
156
  export { StyledGlobalAlert };
@@ -7,17 +7,17 @@
7
7
  import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
9
9
  import { Button } from '@zendeskgarden/react-buttons';
10
- import { colorStyles as colorStyles$1 } from './StyledGlobalAlertClose.js';
10
+ import { colorStyles } from './StyledGlobalAlertClose.js';
11
11
 
12
- const COMPONENT_ID = 'notifications.global_alert.button';
13
- function colorStyles(props) {
12
+ const COMPONENT_ID$3 = 'notifications.global_alert.button';
13
+ function colorStyles$2(props) {
14
14
  const {
15
15
  $alertType,
16
16
  isBasic,
17
17
  theme
18
18
  } = props;
19
19
  if (isBasic) {
20
- return colorStyles$1(props);
20
+ return colorStyles(props);
21
21
  }
22
22
  let bgVariable;
23
23
  let offsetOptions;
@@ -99,17 +99,17 @@ function colorStyles(props) {
99
99
  }
100
100
  }), activeBackgroundColor);
101
101
  }
102
- function sizeStyles(props) {
102
+ function sizeStyles$1(props) {
103
103
  const marginVertical = `-${props.theme.space.base * 1.5}px`;
104
104
  const marginStart = `${props.theme.space.base * 2}px`;
105
105
  return css(["margin:", " ", " ", " ", ";"], marginVertical, props.theme.rtl ? marginStart : 0, marginVertical, props.theme.rtl ? 0 : marginStart);
106
106
  }
107
107
  const StyledGlobalAlertButton = styled(Button).attrs({
108
- 'data-garden-id': COMPONENT_ID,
109
- 'data-garden-version': '9.12.3'
108
+ 'data-garden-id': COMPONENT_ID$3,
109
+ 'data-garden-version': '9.12.4'
110
110
  }).withConfig({
111
111
  displayName: "StyledGlobalAlertButton",
112
112
  componentId: "sc-1txe91a-0"
113
- })(["flex-shrink:0;", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
113
+ })(["flex-shrink:0;", ";", ";", ";"], sizeStyles$1, colorStyles$2, componentStyles);
114
114
 
115
115
  export { StyledGlobalAlertButton };
@@ -8,8 +8,8 @@ import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
9
9
  import { IconButton } from '@zendeskgarden/react-buttons';
10
10
 
11
- const COMPONENT_ID = 'notifications.global_alert.close';
12
- const colorStyles = props => {
11
+ const COMPONENT_ID$4 = 'notifications.global_alert.close';
12
+ const colorStyles$3 = props => {
13
13
  const {
14
14
  $alertType,
15
15
  theme
@@ -83,18 +83,18 @@ const colorStyles = props => {
83
83
  }
84
84
  }), activeBackgroundColor, activeForegroundColor);
85
85
  };
86
- const sizeStyles = props => {
86
+ const sizeStyles$2 = props => {
87
87
  const marginVertical = `-${props.theme.space.base * 1.5}px`;
88
88
  const marginStart = `${props.theme.space.base * 2}px`;
89
89
  const marginEnd = `-${props.theme.space.base * 2}px`;
90
90
  return css(["margin:", " ", " ", " ", ";"], marginVertical, props.theme.rtl ? marginStart : marginEnd, marginVertical, props.theme.rtl ? marginEnd : marginStart);
91
91
  };
92
92
  const StyledGlobalAlertClose = styled(IconButton).attrs({
93
- 'data-garden-id': COMPONENT_ID,
94
- 'data-garden-version': '9.12.3'
93
+ 'data-garden-id': COMPONENT_ID$4,
94
+ 'data-garden-version': '9.12.4'
95
95
  }).withConfig({
96
96
  displayName: "StyledGlobalAlertClose",
97
97
  componentId: "sc-1g5s93s-0"
98
- })(["", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
98
+ })(["", ";", ";", ";"], sizeStyles$2, colorStyles$3, componentStyles);
99
99
 
100
- export { StyledGlobalAlertClose, colorStyles };
100
+ export { StyledGlobalAlertClose, colorStyles$3 as colorStyles };
@@ -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.global_alert.content';
10
+ const COMPONENT_ID$2 = 'notifications.global_alert.content';
11
11
  const StyledGlobalAlertContent = styled.div.attrs({
12
- 'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.12.3'
12
+ 'data-garden-id': COMPONENT_ID$2,
13
+ 'data-garden-version': '9.12.4'
14
14
  }).withConfig({
15
15
  displayName: "StyledGlobalAlertContent",
16
16
  componentId: "sc-rept0u-0"
@@ -8,18 +8,17 @@ import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
9
  import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
10
10
 
11
- const COMPONENT_ID = 'notifications.global_alert.icon';
11
+ const COMPONENT_ID$1 = 'notifications.global_alert.icon';
12
12
  const sizeStyles = props => {
13
13
  const size = props.theme.iconSizes.md;
14
14
  const marginTop = math(`(${props.theme.space.base * 5} - ${size}) / 2`);
15
15
  const marginHorizontal = `${props.theme.space.base * 2}px`;
16
16
  return css(["margin-top:", ";margin-", ":", ";width:", ";height:", ";"], marginTop, props.theme.rtl ? 'left' : 'right', marginHorizontal, size, size);
17
17
  };
18
- const colorStyles = _ref => {
19
- let {
20
- theme,
21
- $alertType
22
- } = _ref;
18
+ const colorStyles$1 = ({
19
+ theme,
20
+ $alertType
21
+ }) => {
23
22
  let color;
24
23
  switch ($alertType) {
25
24
  case 'success':
@@ -52,11 +51,11 @@ const colorStyles = _ref => {
52
51
  return css(["color:", ";"], color);
53
52
  };
54
53
  const StyledGlobalAlertIcon = styled(StyledBaseIcon).attrs({
55
- 'data-garden-id': COMPONENT_ID,
56
- 'data-garden-version': '9.12.3'
54
+ 'data-garden-id': COMPONENT_ID$1,
55
+ 'data-garden-version': '9.12.4'
57
56
  }).withConfig({
58
57
  displayName: "StyledGlobalAlertIcon",
59
58
  componentId: "sc-84ne9k-0"
60
- })(["flex-shrink:0;", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
59
+ })(["flex-shrink:0;", ";", ";", ";"], sizeStyles, colorStyles$1, componentStyles);
61
60
 
62
61
  export { StyledGlobalAlertIcon };
@@ -8,11 +8,10 @@ import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'notifications.global_alert.title';
11
- const colorStyles = _ref => {
12
- let {
13
- theme,
14
- $alertType
15
- } = _ref;
11
+ const colorStyles = ({
12
+ theme,
13
+ $alertType
14
+ }) => {
16
15
  let color;
17
16
  switch ($alertType) {
18
17
  case 'success':
@@ -37,7 +36,7 @@ const colorStyles = _ref => {
37
36
  };
38
37
  const StyledGlobalAlertTitle = styled.div.attrs({
39
38
  'data-garden-id': COMPONENT_ID,
40
- 'data-garden-version': '9.12.3'
39
+ 'data-garden-version': '9.12.4'
41
40
  }).withConfig({
42
41
  displayName: "StyledGlobalAlertTitle",
43
42
  componentId: "sc-10clqbo-0"
package/dist/index.cjs.js CHANGED
@@ -158,11 +158,10 @@ const validationTypes = {
158
158
  };
159
159
 
160
160
  const COMPONENT_ID$d = 'notifications.close';
161
- const colorStyles$a = _ref => {
162
- let {
163
- theme,
164
- $type
165
- } = _ref;
161
+ const colorStyles$a = ({
162
+ theme,
163
+ $type
164
+ }) => {
166
165
  let variable;
167
166
  switch ($type) {
168
167
  case validationTypes.warning:
@@ -206,7 +205,7 @@ const colorStyles$a = _ref => {
206
205
  };
207
206
  const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
208
207
  'data-garden-id': COMPONENT_ID$d,
209
- 'data-garden-version': '9.12.3'
208
+ 'data-garden-version': '9.12.4'
210
209
  }).withConfig({
211
210
  displayName: "StyledClose",
212
211
  componentId: "sc-1mr9nx1-0"
@@ -215,7 +214,7 @@ const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
215
214
  const COMPONENT_ID$c = 'notifications.paragraph';
216
215
  const StyledParagraph = styled__default.default.p.attrs({
217
216
  'data-garden-id': COMPONENT_ID$c,
218
- 'data-garden-version': '9.12.3'
217
+ 'data-garden-version': '9.12.4'
219
218
  }).withConfig({
220
219
  displayName: "StyledParagraph",
221
220
  componentId: "sc-12tmd6p-0"
@@ -224,7 +223,7 @@ const StyledParagraph = styled__default.default.p.attrs({
224
223
  const COMPONENT_ID$b = 'notifications.title';
225
224
  const StyledTitle = styled__default.default.div.attrs({
226
225
  'data-garden-id': COMPONENT_ID$b,
227
- 'data-garden-version': '9.12.3'
226
+ 'data-garden-version': '9.12.4'
228
227
  }).withConfig({
229
228
  displayName: "StyledTitle",
230
229
  componentId: "sc-xx4jsv-0"
@@ -234,12 +233,11 @@ const StyledTitle = styled__default.default.div.attrs({
234
233
  }), props => props.$isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold, reactTheming.componentStyles);
235
234
 
236
235
  const COMPONENT_ID$a = 'notifications.base_container';
237
- const colorStyles$9 = _ref => {
238
- let {
239
- theme,
240
- $type,
241
- $isFloating
242
- } = _ref;
236
+ const colorStyles$9 = ({
237
+ theme,
238
+ $type,
239
+ $isFloating
240
+ }) => {
243
241
  const {
244
242
  space,
245
243
  shadows
@@ -305,7 +303,7 @@ const padding = props => {
305
303
  };
306
304
  const StyledBase = styled__default.default.div.attrs({
307
305
  'data-garden-id': COMPONENT_ID$a,
308
- 'data-garden-version': '9.12.3'
306
+ 'data-garden-version': '9.12.4'
309
307
  }).withConfig({
310
308
  displayName: "StyledBase",
311
309
  componentId: "sc-14syaqw-0"
@@ -340,7 +338,7 @@ const colorStyles$8 = props => {
340
338
  };
341
339
  const StyledAlert = styled__default.default(StyledBase).attrs({
342
340
  'data-garden-id': COMPONENT_ID$9,
343
- 'data-garden-version': '9.12.3'
341
+ 'data-garden-version': '9.12.4'
344
342
  }).withConfig({
345
343
  displayName: "StyledAlert",
346
344
  componentId: "sc-fyn8jp-0"
@@ -375,7 +373,7 @@ const colorStyles$7 = props => {
375
373
  };
376
374
  const StyledNotification = styled__default.default(StyledBase).attrs({
377
375
  'data-garden-id': COMPONENT_ID$8,
378
- 'data-garden-version': '9.12.3'
376
+ 'data-garden-version': '9.12.4'
379
377
  }).withConfig({
380
378
  displayName: "StyledNotification",
381
379
  componentId: "sc-uf6jh-0"
@@ -385,12 +383,11 @@ StyledNotification.propTypes = {
385
383
  };
386
384
 
387
385
  const COMPONENT_ID$7 = 'notifications.well';
388
- const colorStyles$6 = _ref => {
389
- let {
390
- theme,
391
- $isFloating,
392
- $isRecessed
393
- } = _ref;
386
+ const colorStyles$6 = ({
387
+ theme,
388
+ $isFloating,
389
+ $isRecessed
390
+ }) => {
394
391
  let backgroundVariable;
395
392
  if ($isRecessed) {
396
393
  backgroundVariable = 'background.recessed';
@@ -411,27 +408,25 @@ const colorStyles$6 = _ref => {
411
408
  };
412
409
  const StyledWell = styled__default.default(StyledBase).attrs({
413
410
  'data-garden-id': COMPONENT_ID$7,
414
- 'data-garden-version': '9.12.3'
411
+ 'data-garden-version': '9.12.4'
415
412
  }).withConfig({
416
413
  displayName: "StyledWell",
417
414
  componentId: "sc-a5831c-0"
418
415
  })(["", " ", ";"], colorStyles$6, reactTheming.componentStyles);
419
416
 
420
417
  const COMPONENT_ID$6 = 'notifications.icon';
421
- const sizeStyles$4 = _ref => {
422
- let {
423
- theme: {
424
- rtl,
425
- space
426
- }
427
- } = _ref;
418
+ const sizeStyles$4 = ({
419
+ theme: {
420
+ rtl,
421
+ space
422
+ }
423
+ }) => {
428
424
  return styled.css(["right:", ";left:", ";margin-top:", "px;"], rtl && `${space.base * 4}px`, !rtl && `${space.base * 4}px`, space.base / 2);
429
425
  };
430
- const colorStyles$5 = _ref2 => {
431
- let {
432
- theme,
433
- $type
434
- } = _ref2;
426
+ const colorStyles$5 = ({
427
+ theme,
428
+ $type
429
+ }) => {
435
430
  let variable;
436
431
  switch ($type) {
437
432
  case validationTypes.success:
@@ -458,18 +453,17 @@ const colorStyles$5 = _ref2 => {
458
453
  };
459
454
  const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
460
455
  'data-garden-id': COMPONENT_ID$6,
461
- 'data-garden-version': '9.12.3'
456
+ 'data-garden-version': '9.12.4'
462
457
  }).withConfig({
463
458
  displayName: "StyledIcon",
464
459
  componentId: "sc-msklws-0"
465
460
  })(["position:absolute;", " ", " ", ""], sizeStyles$4, colorStyles$5, reactTheming.componentStyles);
466
461
 
467
462
  const COMPONENT_ID$5 = 'notifications.global_alert';
468
- const colorStyles$4 = _ref => {
469
- let {
470
- theme,
471
- $alertType
472
- } = _ref;
463
+ const colorStyles$4 = ({
464
+ theme,
465
+ $alertType
466
+ }) => {
473
467
  let borderColor;
474
468
  let backgroundColor;
475
469
  let foregroundColor;
@@ -605,7 +599,7 @@ const sizeStyles$3 = props => {
605
599
  };
606
600
  const StyledGlobalAlert = styled__default.default.div.attrs({
607
601
  'data-garden-id': COMPONENT_ID$5,
608
- 'data-garden-version': '9.12.3'
602
+ 'data-garden-version': '9.12.4'
609
603
  }).withConfig({
610
604
  displayName: "StyledGlobalAlert",
611
605
  componentId: "sc-k6rimt-0"
@@ -694,7 +688,7 @@ const sizeStyles$2 = props => {
694
688
  };
695
689
  const StyledGlobalAlertClose = styled__default.default(reactButtons.IconButton).attrs({
696
690
  'data-garden-id': COMPONENT_ID$4,
697
- 'data-garden-version': '9.12.3'
691
+ 'data-garden-version': '9.12.4'
698
692
  }).withConfig({
699
693
  displayName: "StyledGlobalAlertClose",
700
694
  componentId: "sc-1g5s93s-0"
@@ -797,7 +791,7 @@ function sizeStyles$1(props) {
797
791
  }
798
792
  const StyledGlobalAlertButton = styled__default.default(reactButtons.Button).attrs({
799
793
  'data-garden-id': COMPONENT_ID$3,
800
- 'data-garden-version': '9.12.3'
794
+ 'data-garden-version': '9.12.4'
801
795
  }).withConfig({
802
796
  displayName: "StyledGlobalAlertButton",
803
797
  componentId: "sc-1txe91a-0"
@@ -806,7 +800,7 @@ const StyledGlobalAlertButton = styled__default.default(reactButtons.Button).att
806
800
  const COMPONENT_ID$2 = 'notifications.global_alert.content';
807
801
  const StyledGlobalAlertContent = styled__default.default.div.attrs({
808
802
  'data-garden-id': COMPONENT_ID$2,
809
- 'data-garden-version': '9.12.3'
803
+ 'data-garden-version': '9.12.4'
810
804
  }).withConfig({
811
805
  displayName: "StyledGlobalAlertContent",
812
806
  componentId: "sc-rept0u-0"
@@ -819,11 +813,10 @@ const sizeStyles = props => {
819
813
  const marginHorizontal = `${props.theme.space.base * 2}px`;
820
814
  return styled.css(["margin-top:", ";margin-", ":", ";width:", ";height:", ";"], marginTop, props.theme.rtl ? 'left' : 'right', marginHorizontal, size, size);
821
815
  };
822
- const colorStyles$1 = _ref => {
823
- let {
824
- theme,
825
- $alertType
826
- } = _ref;
816
+ const colorStyles$1 = ({
817
+ theme,
818
+ $alertType
819
+ }) => {
827
820
  let color;
828
821
  switch ($alertType) {
829
822
  case 'success':
@@ -857,18 +850,17 @@ const colorStyles$1 = _ref => {
857
850
  };
858
851
  const StyledGlobalAlertIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
859
852
  'data-garden-id': COMPONENT_ID$1,
860
- 'data-garden-version': '9.12.3'
853
+ 'data-garden-version': '9.12.4'
861
854
  }).withConfig({
862
855
  displayName: "StyledGlobalAlertIcon",
863
856
  componentId: "sc-84ne9k-0"
864
857
  })(["flex-shrink:0;", ";", ";", ";"], sizeStyles, colorStyles$1, reactTheming.componentStyles);
865
858
 
866
859
  const COMPONENT_ID = 'notifications.global_alert.title';
867
- const colorStyles = _ref => {
868
- let {
869
- theme,
870
- $alertType
871
- } = _ref;
860
+ const colorStyles = ({
861
+ theme,
862
+ $alertType
863
+ }) => {
872
864
  let color;
873
865
  switch ($alertType) {
874
866
  case 'success':
@@ -893,7 +885,7 @@ const colorStyles = _ref => {
893
885
  };
894
886
  const StyledGlobalAlertTitle = styled__default.default.div.attrs({
895
887
  'data-garden-id': COMPONENT_ID,
896
- 'data-garden-version': '9.12.3'
888
+ 'data-garden-version': '9.12.4'
897
889
  }).withConfig({
898
890
  displayName: "StyledGlobalAlertTitle",
899
891
  componentId: "sc-10clqbo-0"
@@ -904,16 +896,13 @@ const useNotificationsContext = () => {
904
896
  return React.useContext(NotificationsContext);
905
897
  };
906
898
 
907
- const Title$1 = React__namespace.default.forwardRef((_ref, ref) => {
908
- let {
909
- isRegular,
910
- ...props
911
- } = _ref;
912
- return React__namespace.default.createElement(StyledTitle, Object.assign({
913
- ref: ref,
914
- $isRegular: isRegular
915
- }, props));
916
- });
899
+ const Title$1 = React__namespace.default.forwardRef(({
900
+ isRegular,
901
+ ...props
902
+ }, ref) => React__namespace.default.createElement(StyledTitle, Object.assign({
903
+ ref: ref,
904
+ $isRegular: isRegular
905
+ }, props)));
917
906
  Title$1.displayName = 'Alert.Title';
918
907
 
919
908
  const Paragraph$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledParagraph, Object.assign({
@@ -952,12 +941,11 @@ const Close$1 = React__namespace.default.forwardRef((props, ref) => {
952
941
  });
953
942
  Close$1.displayName = 'Alert.Close';
954
943
 
955
- const AlertComponent = React__namespace.default.forwardRef((_ref, ref) => {
956
- let {
957
- role,
958
- type,
959
- ...props
960
- } = _ref;
944
+ const AlertComponent = React__namespace.default.forwardRef(({
945
+ role,
946
+ type,
947
+ ...props
948
+ }, ref) => {
961
949
  const Icon = validationIcons[type];
962
950
  return React__namespace.default.createElement(NotificationsContext.Provider, {
963
951
  value: type
@@ -978,16 +966,13 @@ Alert.Close = Close$1;
978
966
  Alert.Paragraph = Paragraph$1;
979
967
  Alert.Title = Title$1;
980
968
 
981
- const Title = React__namespace.default.forwardRef((_ref, ref) => {
982
- let {
983
- isRegular,
984
- ...props
985
- } = _ref;
986
- return React__namespace.default.createElement(StyledTitle, Object.assign({
987
- ref: ref,
988
- $isRegular: isRegular
989
- }, props));
990
- });
969
+ const Title = React__namespace.default.forwardRef(({
970
+ isRegular,
971
+ ...props
972
+ }, ref) => React__namespace.default.createElement(StyledTitle, Object.assign({
973
+ ref: ref,
974
+ $isRegular: isRegular
975
+ }, props)));
991
976
  Title.displayName = 'Notification.Title';
992
977
 
993
978
  const Paragraph = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledParagraph, Object.assign({
@@ -1009,12 +994,11 @@ const Close = React__namespace.default.forwardRef((props, ref) => {
1009
994
  });
1010
995
  Close.displayName = 'Notification.Close';
1011
996
 
1012
- const NotificationComponent = React.forwardRef((_ref, ref) => {
1013
- let {
1014
- children,
1015
- type,
1016
- ...props
1017
- } = _ref;
997
+ const NotificationComponent = React.forwardRef(({
998
+ children,
999
+ type,
1000
+ ...props
1001
+ }, ref) => {
1018
1002
  const Icon = type ? validationIcons[type] : SvgInfoStroke;
1019
1003
  return React__namespace.default.createElement(StyledNotification, Object.assign({
1020
1004
  ref: ref,
@@ -1034,18 +1018,15 @@ Notification.Close = Close;
1034
1018
  Notification.Paragraph = Paragraph;
1035
1019
  Notification.Title = Title;
1036
1020
 
1037
- const WellComponent = React__namespace.default.forwardRef((_ref, ref) => {
1038
- let {
1039
- isFloating,
1040
- isRecessed,
1041
- ...props
1042
- } = _ref;
1043
- return React__namespace.default.createElement(StyledWell, Object.assign({
1044
- ref: ref,
1045
- $isFloating: isFloating,
1046
- $isRecessed: isRecessed
1047
- }, props));
1048
- });
1021
+ const WellComponent = React__namespace.default.forwardRef(({
1022
+ isFloating,
1023
+ isRecessed,
1024
+ ...props
1025
+ }, ref) => React__namespace.default.createElement(StyledWell, Object.assign({
1026
+ ref: ref,
1027
+ $isFloating: isFloating,
1028
+ $isRecessed: isRecessed
1029
+ }, props)));
1049
1030
  WellComponent.displayName = 'Well';
1050
1031
  WellComponent.propTypes = {
1051
1032
  isRecessed: PropTypes__default.default.bool,
@@ -1129,8 +1110,7 @@ const useToast = () => {
1129
1110
  dispatch,
1130
1111
  state
1131
1112
  } = context;
1132
- const addToast = React.useCallback(function (content) {
1133
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1113
+ const addToast = React.useCallback((content, options = {}) => {
1134
1114
  const mergedOptions = {
1135
1115
  ...DEFAULT_TOAST_OPTIONS,
1136
1116
  ...options
@@ -1175,11 +1155,10 @@ const useToast = () => {
1175
1155
  };
1176
1156
  };
1177
1157
 
1178
- const Toast = _ref => {
1179
- let {
1180
- toast,
1181
- pauseTimers
1182
- } = _ref;
1158
+ const Toast = ({
1159
+ toast,
1160
+ pauseTimers
1161
+ }) => {
1183
1162
  const {
1184
1163
  removeToast
1185
1164
  } = useToast();
@@ -1281,14 +1260,13 @@ const StyledTransitionContainer = styled__default.default.div.withConfig({
1281
1260
  componentId: "sc-nq0usb-1"
1282
1261
  })(["position:fixed;z-index:", ";", ";"], props => props.$toastZIndex, placementStyles);
1283
1262
 
1284
- const ToastSlot = _ref => {
1285
- let {
1286
- toasts,
1287
- placement,
1288
- zIndex,
1289
- limit,
1290
- ...props
1291
- } = _ref;
1263
+ const ToastSlot = ({
1264
+ toasts,
1265
+ placement,
1266
+ zIndex,
1267
+ limit,
1268
+ ...props
1269
+ }) => {
1292
1270
  const [pauseTimers, setPauseTimers] = React.useState(false);
1293
1271
  const theme = React.useContext(styled.ThemeContext);
1294
1272
  const environment = reactTheming.useDocument(theme);
@@ -1349,13 +1327,12 @@ const ToastSlot = _ref => {
1349
1327
  })));
1350
1328
  };
1351
1329
 
1352
- const ToastProvider = _ref => {
1353
- let {
1354
- limit = 4,
1355
- zIndex,
1356
- placementProps = {},
1357
- children
1358
- } = _ref;
1330
+ const ToastProvider = ({
1331
+ limit = 4,
1332
+ zIndex,
1333
+ placementProps = {},
1334
+ children
1335
+ }) => {
1359
1336
  const [state, dispatch] = React.useReducer(toasterReducer, getInitialState());
1360
1337
  const contextValue = React.useMemo(() => ({
1361
1338
  state,
@@ -1389,11 +1366,10 @@ const GlobalAlertContext = React.createContext({
1389
1366
  });
1390
1367
  const useGlobalAlertContext = () => React.useContext(GlobalAlertContext);
1391
1368
 
1392
- const GlobalAlertButton = React.forwardRef((_ref, ref) => {
1393
- let {
1394
- isBasic,
1395
- ...props
1396
- } = _ref;
1369
+ const GlobalAlertButton = React.forwardRef(({
1370
+ isBasic,
1371
+ ...props
1372
+ }, ref) => {
1397
1373
  const {
1398
1374
  type
1399
1375
  } = useGlobalAlertContext();
@@ -1435,11 +1411,10 @@ const GlobalAlertContent = React.forwardRef((props, ref) => {
1435
1411
  });
1436
1412
  GlobalAlertContent.displayName = 'GlobalAlert.Content';
1437
1413
 
1438
- const GlobalAlertTitle = React.forwardRef((_ref, ref) => {
1439
- let {
1440
- isRegular,
1441
- ...props
1442
- } = _ref;
1414
+ const GlobalAlertTitle = React.forwardRef(({
1415
+ isRegular,
1416
+ ...props
1417
+ }, ref) => {
1443
1418
  const {
1444
1419
  type
1445
1420
  } = useGlobalAlertContext();
@@ -1454,11 +1429,10 @@ GlobalAlertTitle.propTypes = {
1454
1429
  isRegular: PropTypes__default.default.bool
1455
1430
  };
1456
1431
 
1457
- const GlobalAlertComponent = React.forwardRef((_ref, ref) => {
1458
- let {
1459
- type,
1460
- ...props
1461
- } = _ref;
1432
+ const GlobalAlertComponent = React.forwardRef(({
1433
+ type,
1434
+ ...props
1435
+ }, ref) => {
1462
1436
  const icon = {
1463
1437
  success: React__namespace.default.createElement(SvgCheckCircleStroke, null),
1464
1438
  error: React__namespace.default.createElement(SvgAlertErrorStroke, null),