@zendeskgarden/react-notifications 9.0.0-next.21 → 9.0.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/elements/Notification.js +1 -1
- package/dist/esm/styled/StyledAlert.js +1 -1
- package/dist/esm/styled/StyledBase.js +1 -1
- package/dist/esm/styled/StyledIcon.js +1 -1
- package/dist/esm/styled/StyledNotification.js +1 -1
- package/dist/esm/styled/StyledWell.js +1 -1
- package/dist/esm/styled/content/StyledClose.js +1 -1
- package/dist/esm/styled/content/StyledParagraph.js +1 -1
- package/dist/esm/styled/content/StyledTitle.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlert.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlertButton.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlertClose.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlertContent.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlertIcon.js +1 -1
- package/dist/esm/styled/global-alert/StyledGlobalAlertTitle.js +1 -1
- package/dist/index.cjs.js +15 -15
- package/dist/typings/elements/Notification.d.ts +1 -1
- package/dist/typings/elements/alert/Alert.d.ts +1 -1
- package/dist/typings/elements/global-alert/GlobalAlert.d.ts +8 -1
- package/dist/typings/elements/toaster/Toast.d.ts +0 -1
- package/dist/typings/elements/well/Well.d.ts +1 -1
- package/dist/typings/styled/StyledIcon.d.ts +0 -1
- package/dist/typings/styled/content/StyledClose.d.ts +0 -1
- package/dist/typings/styled/global-alert/StyledGlobalAlertButton.d.ts +2 -9
- package/dist/typings/styled/global-alert/StyledGlobalAlertClose.d.ts +0 -1
- package/dist/typings/styled/global-alert/StyledGlobalAlertIcon.d.ts +0 -1
- package/dist/typings/utils/useGlobalAlertContext.d.ts +0 -1
- package/dist/typings/utils/useNotificationsContext.d.ts +0 -1
- package/package.json +8 -8
|
@@ -39,7 +39,7 @@ const NotificationComponent = forwardRef((_ref, ref) => {
|
|
|
39
39
|
$type: type,
|
|
40
40
|
$isFloating: true,
|
|
41
41
|
role: "alert"
|
|
42
|
-
}, props), type && React__default.createElement(StyledIcon, {
|
|
42
|
+
}, props), !!type && React__default.createElement(StyledIcon, {
|
|
43
43
|
$type: type
|
|
44
44
|
}, React__default.createElement(Icon, null)), children);
|
|
45
45
|
});
|
|
@@ -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.0.0-next.
|
|
42
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
83
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
52
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
44
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
38
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
61
|
+
'data-garden-version': '9.0.0-next.23'
|
|
62
62
|
}).withConfig({
|
|
63
63
|
displayName: "StyledClose",
|
|
64
64
|
componentId: "sc-1mr9nx1-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledParagraph",
|
|
16
16
|
componentId: "sc-12tmd6p-0"
|
|
@@ -10,7 +10,7 @@ import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
151
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
109
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
94
|
+
'data-garden-version': '9.0.0-next.23'
|
|
95
95
|
}).withConfig({
|
|
96
96
|
displayName: "StyledGlobalAlertClose",
|
|
97
97
|
componentId: "sc-1g5s93s-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
56
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
40
|
+
'data-garden-version': '9.0.0-next.23'
|
|
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.0.0-next.
|
|
209
|
+
'data-garden-version': '9.0.0-next.23'
|
|
210
210
|
}).withConfig({
|
|
211
211
|
displayName: "StyledClose",
|
|
212
212
|
componentId: "sc-1mr9nx1-0"
|
|
@@ -218,7 +218,7 @@ StyledClose.defaultProps = {
|
|
|
218
218
|
const COMPONENT_ID$c = 'notifications.paragraph';
|
|
219
219
|
const StyledParagraph = styled__default.default.p.attrs({
|
|
220
220
|
'data-garden-id': COMPONENT_ID$c,
|
|
221
|
-
'data-garden-version': '9.0.0-next.
|
|
221
|
+
'data-garden-version': '9.0.0-next.23'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledParagraph",
|
|
224
224
|
componentId: "sc-12tmd6p-0"
|
|
@@ -230,7 +230,7 @@ StyledParagraph.defaultProps = {
|
|
|
230
230
|
const COMPONENT_ID$b = 'notifications.title';
|
|
231
231
|
const StyledTitle = styled__default.default.div.attrs({
|
|
232
232
|
'data-garden-id': COMPONENT_ID$b,
|
|
233
|
-
'data-garden-version': '9.0.0-next.
|
|
233
|
+
'data-garden-version': '9.0.0-next.23'
|
|
234
234
|
}).withConfig({
|
|
235
235
|
displayName: "StyledTitle",
|
|
236
236
|
componentId: "sc-xx4jsv-0"
|
|
@@ -314,7 +314,7 @@ const padding = props => {
|
|
|
314
314
|
};
|
|
315
315
|
const StyledBase = styled__default.default.div.attrs({
|
|
316
316
|
'data-garden-id': COMPONENT_ID$a,
|
|
317
|
-
'data-garden-version': '9.0.0-next.
|
|
317
|
+
'data-garden-version': '9.0.0-next.23'
|
|
318
318
|
}).withConfig({
|
|
319
319
|
displayName: "StyledBase",
|
|
320
320
|
componentId: "sc-14syaqw-0"
|
|
@@ -352,7 +352,7 @@ const colorStyles$8 = props => {
|
|
|
352
352
|
};
|
|
353
353
|
const StyledAlert = styled__default.default(StyledBase).attrs({
|
|
354
354
|
'data-garden-id': COMPONENT_ID$9,
|
|
355
|
-
'data-garden-version': '9.0.0-next.
|
|
355
|
+
'data-garden-version': '9.0.0-next.23'
|
|
356
356
|
}).withConfig({
|
|
357
357
|
displayName: "StyledAlert",
|
|
358
358
|
componentId: "sc-fyn8jp-0"
|
|
@@ -390,7 +390,7 @@ const colorStyles$7 = props => {
|
|
|
390
390
|
};
|
|
391
391
|
const StyledNotification = styled__default.default(StyledBase).attrs({
|
|
392
392
|
'data-garden-id': COMPONENT_ID$8,
|
|
393
|
-
'data-garden-version': '9.0.0-next.
|
|
393
|
+
'data-garden-version': '9.0.0-next.23'
|
|
394
394
|
}).withConfig({
|
|
395
395
|
displayName: "StyledNotification",
|
|
396
396
|
componentId: "sc-uf6jh-0"
|
|
@@ -429,7 +429,7 @@ const colorStyles$6 = _ref => {
|
|
|
429
429
|
};
|
|
430
430
|
const StyledWell = styled__default.default(StyledBase).attrs({
|
|
431
431
|
'data-garden-id': COMPONENT_ID$7,
|
|
432
|
-
'data-garden-version': '9.0.0-next.
|
|
432
|
+
'data-garden-version': '9.0.0-next.23'
|
|
433
433
|
}).withConfig({
|
|
434
434
|
displayName: "StyledWell",
|
|
435
435
|
componentId: "sc-a5831c-0"
|
|
@@ -479,7 +479,7 @@ const colorStyles$5 = _ref2 => {
|
|
|
479
479
|
};
|
|
480
480
|
const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
481
481
|
'data-garden-id': COMPONENT_ID$6,
|
|
482
|
-
'data-garden-version': '9.0.0-next.
|
|
482
|
+
'data-garden-version': '9.0.0-next.23'
|
|
483
483
|
}).withConfig({
|
|
484
484
|
displayName: "StyledIcon",
|
|
485
485
|
componentId: "sc-msklws-0"
|
|
@@ -629,7 +629,7 @@ const sizeStyles$3 = props => {
|
|
|
629
629
|
};
|
|
630
630
|
const StyledGlobalAlert = styled__default.default.div.attrs({
|
|
631
631
|
'data-garden-id': COMPONENT_ID$5,
|
|
632
|
-
'data-garden-version': '9.0.0-next.
|
|
632
|
+
'data-garden-version': '9.0.0-next.23'
|
|
633
633
|
}).withConfig({
|
|
634
634
|
displayName: "StyledGlobalAlert",
|
|
635
635
|
componentId: "sc-k6rimt-0"
|
|
@@ -721,7 +721,7 @@ const sizeStyles$2 = props => {
|
|
|
721
721
|
};
|
|
722
722
|
const StyledGlobalAlertClose = styled__default.default(reactButtons.IconButton).attrs({
|
|
723
723
|
'data-garden-id': COMPONENT_ID$4,
|
|
724
|
-
'data-garden-version': '9.0.0-next.
|
|
724
|
+
'data-garden-version': '9.0.0-next.23'
|
|
725
725
|
}).withConfig({
|
|
726
726
|
displayName: "StyledGlobalAlertClose",
|
|
727
727
|
componentId: "sc-1g5s93s-0"
|
|
@@ -827,7 +827,7 @@ function sizeStyles$1(props) {
|
|
|
827
827
|
}
|
|
828
828
|
const StyledGlobalAlertButton = styled__default.default(reactButtons.Button).attrs({
|
|
829
829
|
'data-garden-id': COMPONENT_ID$3,
|
|
830
|
-
'data-garden-version': '9.0.0-next.
|
|
830
|
+
'data-garden-version': '9.0.0-next.23'
|
|
831
831
|
}).withConfig({
|
|
832
832
|
displayName: "StyledGlobalAlertButton",
|
|
833
833
|
componentId: "sc-1txe91a-0"
|
|
@@ -839,7 +839,7 @@ StyledGlobalAlertButton.defaultProps = {
|
|
|
839
839
|
const COMPONENT_ID$2 = 'notifications.global_alert.content';
|
|
840
840
|
const StyledGlobalAlertContent = styled__default.default.div.attrs({
|
|
841
841
|
'data-garden-id': COMPONENT_ID$2,
|
|
842
|
-
'data-garden-version': '9.0.0-next.
|
|
842
|
+
'data-garden-version': '9.0.0-next.23'
|
|
843
843
|
}).withConfig({
|
|
844
844
|
displayName: "StyledGlobalAlertContent",
|
|
845
845
|
componentId: "sc-rept0u-0"
|
|
@@ -893,7 +893,7 @@ const colorStyles$1 = _ref => {
|
|
|
893
893
|
};
|
|
894
894
|
const StyledGlobalAlertIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
895
895
|
'data-garden-id': COMPONENT_ID$1,
|
|
896
|
-
'data-garden-version': '9.0.0-next.
|
|
896
|
+
'data-garden-version': '9.0.0-next.23'
|
|
897
897
|
}).withConfig({
|
|
898
898
|
displayName: "StyledGlobalAlertIcon",
|
|
899
899
|
componentId: "sc-84ne9k-0"
|
|
@@ -932,7 +932,7 @@ const colorStyles = _ref => {
|
|
|
932
932
|
};
|
|
933
933
|
const StyledGlobalAlertTitle = styled__default.default.div.attrs({
|
|
934
934
|
'data-garden-id': COMPONENT_ID,
|
|
935
|
-
'data-garden-version': '9.0.0-next.
|
|
935
|
+
'data-garden-version': '9.0.0-next.23'
|
|
936
936
|
}).withConfig({
|
|
937
937
|
displayName: "StyledGlobalAlertTitle",
|
|
938
938
|
componentId: "sc-10clqbo-0"
|
|
@@ -1063,7 +1063,7 @@ const NotificationComponent = React.forwardRef((_ref, ref) => {
|
|
|
1063
1063
|
$type: type,
|
|
1064
1064
|
$isFloating: true,
|
|
1065
1065
|
role: "alert"
|
|
1066
|
-
}, props), type && React__namespace.default.createElement(StyledIcon, {
|
|
1066
|
+
}, props), !!type && React__namespace.default.createElement(StyledIcon, {
|
|
1067
1067
|
$type: type
|
|
1068
1068
|
}, React__namespace.default.createElement(Icon, null)), children);
|
|
1069
1069
|
});
|
|
@@ -13,7 +13,7 @@ export declare const NotificationComponent: React.ForwardRefExoticComponent<INot
|
|
|
13
13
|
/**
|
|
14
14
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
15
15
|
*/
|
|
16
|
-
export declare const Notification:
|
|
16
|
+
export declare const Notification: typeof NotificationComponent & {
|
|
17
17
|
Close: typeof Close;
|
|
18
18
|
Paragraph: typeof Paragraph;
|
|
19
19
|
Title: typeof Title;
|
|
@@ -13,7 +13,7 @@ export declare const AlertComponent: React.ForwardRefExoticComponent<IAlertProps
|
|
|
13
13
|
/**
|
|
14
14
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
15
15
|
*/
|
|
16
|
-
export declare const Alert:
|
|
16
|
+
export declare const Alert: typeof AlertComponent & {
|
|
17
17
|
Close: typeof Close;
|
|
18
18
|
Paragraph: typeof Paragraph;
|
|
19
19
|
Title: typeof Title;
|
|
@@ -10,12 +10,19 @@ import { GlobalAlertButton } from './GlobalAlertButton';
|
|
|
10
10
|
import { GlobalAlertClose } from './GlobalAlertClose';
|
|
11
11
|
import { GlobalAlertContent } from './GlobalAlertContent';
|
|
12
12
|
import { GlobalAlertTitle } from './GlobalAlertTitle';
|
|
13
|
+
/**
|
|
14
|
+
* 1. Global Alert always renders with light theme colors
|
|
15
|
+
* 2. role='status' on `div` is valid WAI-ARIA usage in this context.
|
|
16
|
+
* https://www.w3.org/TR/wai-aria-1.1/#status
|
|
17
|
+
*/
|
|
18
|
+
declare const GlobalAlertComponent: React.ForwardRefExoticComponent<IGlobalAlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
19
|
/**
|
|
14
20
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
15
21
|
*/
|
|
16
|
-
export declare const GlobalAlert:
|
|
22
|
+
export declare const GlobalAlert: typeof GlobalAlertComponent & {
|
|
17
23
|
Button: typeof GlobalAlertButton;
|
|
18
24
|
Close: typeof GlobalAlertClose;
|
|
19
25
|
Content: typeof GlobalAlertContent;
|
|
20
26
|
Title: typeof GlobalAlertTitle;
|
|
21
27
|
};
|
|
28
|
+
export {};
|
|
@@ -12,7 +12,7 @@ export declare const WellComponent: React.ForwardRefExoticComponent<IWellProps &
|
|
|
12
12
|
/**
|
|
13
13
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
14
14
|
*/
|
|
15
|
-
export declare const Well:
|
|
15
|
+
export declare const Well: typeof WellComponent & {
|
|
16
16
|
Paragraph: typeof Paragraph;
|
|
17
17
|
Title: typeof Title;
|
|
18
18
|
};
|
|
@@ -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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
9
8
|
import { Type } from '../types';
|
|
10
9
|
interface IStyledIconProps extends ThemeProps<DefaultTheme> {
|
|
@@ -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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
import { Type } from '../../types';
|
|
10
9
|
interface IStyledCloseProps {
|
|
@@ -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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
import { IGlobalAlertProps } from '../../types';
|
|
10
9
|
interface IStyledGlobalAlertButtonProps {
|
|
@@ -12,14 +11,8 @@ interface IStyledGlobalAlertButtonProps {
|
|
|
12
11
|
isBasic?: boolean;
|
|
13
12
|
}
|
|
14
13
|
export declare const StyledGlobalAlertButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
15
|
-
EndIcon:
|
|
16
|
-
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
StartIcon: {
|
|
20
|
-
({ isRotated, ...props }: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
14
|
+
EndIcon: typeof import("packages/buttons/dist/typings/elements/components/EndIcon").EndIcon;
|
|
15
|
+
StartIcon: typeof import("packages/buttons/dist/typings/elements/components/StartIcon").StartIcon;
|
|
23
16
|
}, DefaultTheme, {
|
|
24
17
|
'data-garden-id': string;
|
|
25
18
|
'data-garden-version': 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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
9
8
|
import { IGlobalAlertProps } from '../../types';
|
|
10
9
|
interface IStyledGlobalAlertCloseProps {
|
|
@@ -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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
10
9
|
'data-garden-id': 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
|
-
/// <reference types="react" />
|
|
8
7
|
import { IGlobalAlertProps } from '../types';
|
|
9
8
|
export type GlobalAlertContextProps = Pick<IGlobalAlertProps, 'type'>;
|
|
10
9
|
export declare const GlobalAlertContext: import("react").Context<GlobalAlertContextProps>;
|
|
@@ -4,6 +4,5 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const NotificationsContext: import("react").Context<"success" | "warning" | "error" | "info" | undefined>;
|
|
9
8
|
export declare const useNotificationsContext: () => "success" | "warning" | "error" | "info" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-notifications",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.23",
|
|
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.0.0-next.
|
|
24
|
+
"@zendeskgarden/react-buttons": "^9.0.0-next.23",
|
|
25
25
|
"polished": "^4.3.1",
|
|
26
26
|
"prop-types": "^15.5.7",
|
|
27
27
|
"react-transition-group": "^4.4.2",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
32
|
-
"react": "
|
|
33
|
-
"react-dom": "
|
|
32
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
33
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
34
34
|
"styled-components": "^5.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/react-transition-group": "4.4.
|
|
38
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
39
|
-
"@zendeskgarden/svg-icons": "7.
|
|
37
|
+
"@types/react-transition-group": "4.4.11",
|
|
38
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.23",
|
|
39
|
+
"@zendeskgarden/svg-icons": "7.2.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"components",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"zendeskgarden:src": "src/index.ts",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "5e7d2ed69a1615e09406a3f9285359346bb90cc7"
|
|
52
52
|
}
|