@zendeskgarden/react-notifications 9.0.0 → 9.1.1
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/LICENSE.md +176 -0
- package/dist/esm/elements/global-alert/GlobalAlert.js +19 -21
- 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 +33 -35
- package/dist/typings/styled/StyledIcon.d.ts +1 -1
- package/dist/typings/styled/global-alert/StyledGlobalAlertIcon.d.ts +1 -1
- package/package.json +7 -6
package/LICENSE.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -43,27 +43,25 @@ const GlobalAlertComponent = forwardRef((_ref, ref) => {
|
|
|
43
43
|
warning: React__default.createElement(SvgAlertWarningStroke, null),
|
|
44
44
|
info: React__default.createElement(SvgInfoStroke, null)
|
|
45
45
|
}[type];
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
theme
|
|
49
|
-
|
|
50
|
-
colors
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}, icon), props.children)))
|
|
66
|
-
);
|
|
46
|
+
return React__default.createElement(ThemeProvider, {
|
|
47
|
+
theme: theme => ({
|
|
48
|
+
...theme,
|
|
49
|
+
colors: {
|
|
50
|
+
...theme.colors,
|
|
51
|
+
base: 'light'
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
}, React__default.createElement(GlobalAlertContext.Provider, {
|
|
55
|
+
value: useMemo(() => ({
|
|
56
|
+
type
|
|
57
|
+
}), [type])
|
|
58
|
+
}, React__default.createElement(StyledGlobalAlert, Object.assign({
|
|
59
|
+
ref: ref,
|
|
60
|
+
role: "status",
|
|
61
|
+
$alertType: type
|
|
62
|
+
}, props), React__default.createElement(StyledGlobalAlertIcon, {
|
|
63
|
+
$alertType: type
|
|
64
|
+
}, icon), props.children)));
|
|
67
65
|
});
|
|
68
66
|
GlobalAlertComponent.displayName = 'GlobalAlert';
|
|
69
67
|
const GlobalAlert = GlobalAlertComponent;
|
|
@@ -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.
|
|
42
|
+
'data-garden-version': '9.1.1'
|
|
43
43
|
}).withConfig({
|
|
44
44
|
displayName: "StyledAlert",
|
|
45
45
|
componentId: "sc-fyn8jp-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.
|
|
52
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
44
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
38
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
61
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
151
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
109
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
94
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
56
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
40
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
209
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
218
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
227
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
308
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
343
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
378
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
414
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
461
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
608
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
697
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
800
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
809
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
860
|
+
'data-garden-version': '9.1.1'
|
|
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.
|
|
896
|
+
'data-garden-version': '9.1.1'
|
|
897
897
|
}).withConfig({
|
|
898
898
|
displayName: "StyledGlobalAlertTitle",
|
|
899
899
|
componentId: "sc-10clqbo-0"
|
|
@@ -1468,27 +1468,25 @@ 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
|
|
1472
|
-
|
|
1473
|
-
theme
|
|
1474
|
-
|
|
1475
|
-
colors
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}, icon), props.children)))
|
|
1491
|
-
);
|
|
1471
|
+
return React__namespace.default.createElement(styled.ThemeProvider, {
|
|
1472
|
+
theme: theme => ({
|
|
1473
|
+
...theme,
|
|
1474
|
+
colors: {
|
|
1475
|
+
...theme.colors,
|
|
1476
|
+
base: 'light'
|
|
1477
|
+
}
|
|
1478
|
+
})
|
|
1479
|
+
}, React__namespace.default.createElement(GlobalAlertContext.Provider, {
|
|
1480
|
+
value: React.useMemo(() => ({
|
|
1481
|
+
type
|
|
1482
|
+
}), [type])
|
|
1483
|
+
}, React__namespace.default.createElement(StyledGlobalAlert, Object.assign({
|
|
1484
|
+
ref: ref,
|
|
1485
|
+
role: "status",
|
|
1486
|
+
$alertType: type
|
|
1487
|
+
}, props), React__namespace.default.createElement(StyledGlobalAlertIcon, {
|
|
1488
|
+
$alertType: type
|
|
1489
|
+
}, icon), props.children)));
|
|
1492
1490
|
});
|
|
1493
1491
|
GlobalAlertComponent.displayName = 'GlobalAlert';
|
|
1494
1492
|
const GlobalAlert = GlobalAlertComponent;
|
|
@@ -9,7 +9,7 @@ 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) =>
|
|
12
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
13
13
|
'data-garden-id': string;
|
|
14
14
|
'data-garden-version': string;
|
|
15
15
|
} & IStyledIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme } from 'styled-components';
|
|
8
|
-
export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) =>
|
|
8
|
+
export declare const StyledGlobalAlertIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
9
9
|
'data-garden-id': string;
|
|
10
10
|
'data-garden-version': string;
|
|
11
11
|
}, "data-garden-id" | "data-garden-version">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-notifications",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
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,22 +21,22 @@
|
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@zendeskgarden/react-buttons": "^9.
|
|
24
|
+
"@zendeskgarden/react-buttons": "^9.1.1",
|
|
25
25
|
"polished": "^4.3.1",
|
|
26
26
|
"prop-types": "^15.5.7",
|
|
27
27
|
"react-transition-group": "^4.4.2",
|
|
28
28
|
"react-uid": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@zendeskgarden/react-theming": ">=9.0.0
|
|
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
34
|
"styled-components": "^5.3.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react-transition-group": "4.4.11",
|
|
38
|
-
"@zendeskgarden/react-theming": "^9.
|
|
39
|
-
"@zendeskgarden/svg-icons": "7.
|
|
38
|
+
"@zendeskgarden/react-theming": "^9.1.1",
|
|
39
|
+
"@zendeskgarden/svg-icons": "7.3.0"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"components",
|
|
@@ -47,5 +47,6 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"zendeskgarden:src": "src/index.ts"
|
|
50
|
+
"zendeskgarden:src": "src/index.ts",
|
|
51
|
+
"gitHead": "21eaf7b57f27f1a846ed332f1b8e655d6bc0a13b"
|
|
51
52
|
}
|