@spectrum-web-components/toast 0.49.0-beta.2 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,294 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-toast.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-toast",
13
+ "declaration": {
14
+ "name": "Toast",
15
+ "module": "/src/Toast.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/Toast.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "variable",
26
+ "name": "toastVariants",
27
+ "type": {
28
+ "text": "ToastVariants[]"
29
+ },
30
+ "default": "[\n 'negative',\n 'positive',\n 'info',\n 'error',\n 'warning',\n]"
31
+ },
32
+ {
33
+ "kind": "class",
34
+ "description": "",
35
+ "name": "Toast",
36
+ "slots": [
37
+ {
38
+ "description": "The toast content",
39
+ "name": ""
40
+ },
41
+ {
42
+ "description": "button element surfacing an action in the Toast",
43
+ "name": "action"
44
+ }
45
+ ],
46
+ "members": [
47
+ {
48
+ "kind": "field",
49
+ "name": "open",
50
+ "type": {
51
+ "text": "boolean"
52
+ },
53
+ "privacy": "public",
54
+ "default": "false",
55
+ "attribute": "open",
56
+ "reflects": true
57
+ },
58
+ {
59
+ "kind": "field",
60
+ "name": "timeout",
61
+ "privacy": "public",
62
+ "description": "When a timeout is provided it represents the number of milliseconds from when\nthe Toast was placed on the page before it will automatically dismiss itself.\nAccessibility concerns require that a Toast is available for at least 6000ms\nbefore being dismissed, so any timeout of less than 6000ms will be raised to\nthat baseline. It is suggested that messages longer than 120 words should\nreceive another 1000ms in their timeout for each additional 120 words in the\nmessage. E.G. 240 words = 7000ms, 360 words = 8000ms, etc.",
63
+ "parameters": [
64
+ {
65
+ "name": "timeout",
66
+ "type": {
67
+ "text": "Number"
68
+ }
69
+ }
70
+ ],
71
+ "type": {
72
+ "text": "number | null"
73
+ },
74
+ "attribute": "timeout"
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "_timeout",
79
+ "type": {
80
+ "text": "number | null"
81
+ },
82
+ "privacy": "public",
83
+ "default": "null"
84
+ },
85
+ {
86
+ "kind": "field",
87
+ "name": "variant",
88
+ "privacy": "public",
89
+ "description": "The variant applies specific styling when set to `negative`, `positive`, `info`, `error`, or `warning`.\n`variant` attribute is removed when not matching one of the above.",
90
+ "parameters": [
91
+ {
92
+ "name": "variant",
93
+ "type": {
94
+ "text": "String"
95
+ }
96
+ }
97
+ ],
98
+ "type": {
99
+ "text": "ToastVariants"
100
+ },
101
+ "attribute": "variant"
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "_variant",
106
+ "type": {
107
+ "text": "ToastVariants"
108
+ },
109
+ "privacy": "private",
110
+ "default": "''"
111
+ },
112
+ {
113
+ "kind": "method",
114
+ "name": "renderIcon",
115
+ "privacy": "private",
116
+ "return": {
117
+ "type": {
118
+ "text": "TemplateResult"
119
+ }
120
+ },
121
+ "parameters": [
122
+ {
123
+ "name": "variant",
124
+ "type": {
125
+ "text": "string"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "kind": "field",
132
+ "name": "countdownStart",
133
+ "type": {
134
+ "text": "number"
135
+ },
136
+ "privacy": "private",
137
+ "default": "0"
138
+ },
139
+ {
140
+ "kind": "field",
141
+ "name": "nextCount",
142
+ "type": {
143
+ "text": "number"
144
+ },
145
+ "privacy": "private",
146
+ "default": "-1"
147
+ },
148
+ {
149
+ "kind": "field",
150
+ "name": "doCountdown",
151
+ "privacy": "private"
152
+ },
153
+ {
154
+ "kind": "field",
155
+ "name": "countdown",
156
+ "privacy": "private"
157
+ },
158
+ {
159
+ "kind": "field",
160
+ "name": "holdCountdown",
161
+ "privacy": "private"
162
+ },
163
+ {
164
+ "kind": "field",
165
+ "name": "resumeCountdown",
166
+ "privacy": "private"
167
+ },
168
+ {
169
+ "kind": "method",
170
+ "name": "startCountdown",
171
+ "privacy": "private",
172
+ "return": {
173
+ "type": {
174
+ "text": "void"
175
+ }
176
+ }
177
+ },
178
+ {
179
+ "kind": "method",
180
+ "name": "stopCountdown",
181
+ "privacy": "private",
182
+ "return": {
183
+ "type": {
184
+ "text": "void"
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "kind": "method",
190
+ "name": "shouldClose",
191
+ "privacy": "private",
192
+ "return": {
193
+ "type": {
194
+ "text": "void"
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "kind": "method",
200
+ "name": "close",
201
+ "privacy": "public",
202
+ "return": {
203
+ "type": {
204
+ "text": "void"
205
+ }
206
+ }
207
+ }
208
+ ],
209
+ "events": [
210
+ {
211
+ "name": "close",
212
+ "type": {
213
+ "text": "CustomEvent"
214
+ },
215
+ "description": "Announces that the Toast has been closed by the user or by its timeout."
216
+ }
217
+ ],
218
+ "attributes": [
219
+ {
220
+ "name": "open",
221
+ "type": {
222
+ "text": "boolean"
223
+ },
224
+ "default": "false",
225
+ "fieldName": "open"
226
+ },
227
+ {
228
+ "name": "timeout",
229
+ "description": "When a timeout is provided it represents the number of milliseconds from when\nthe Toast was placed on the page before it will automatically dismiss itself.\nAccessibility concerns require that a Toast is available for at least 6000ms\nbefore being dismissed, so any timeout of less than 6000ms will be raised to\nthat baseline. It is suggested that messages longer than 120 words should\nreceive another 1000ms in their timeout for each additional 120 words in the\nmessage. E.G. 240 words = 7000ms, 360 words = 8000ms, etc.",
230
+ "parameters": [
231
+ {
232
+ "name": "timeout",
233
+ "type": {
234
+ "text": "Number"
235
+ }
236
+ }
237
+ ],
238
+ "type": {
239
+ "text": "number | null"
240
+ },
241
+ "fieldName": "timeout"
242
+ },
243
+ {
244
+ "name": "variant",
245
+ "description": "The variant applies specific styling when set to `negative`, `positive`, `info`, `error`, or `warning`.\n`variant` attribute is removed when not matching one of the above.",
246
+ "parameters": [
247
+ {
248
+ "name": "variant",
249
+ "type": {
250
+ "text": "String"
251
+ }
252
+ }
253
+ ],
254
+ "type": {
255
+ "text": "ToastVariants"
256
+ },
257
+ "fieldName": "variant"
258
+ }
259
+ ],
260
+ "mixins": [
261
+ {
262
+ "name": "FocusVisiblePolyfillMixin",
263
+ "package": "@spectrum-web-components/shared/src/focus-visible.js"
264
+ }
265
+ ],
266
+ "superclass": {
267
+ "name": "SpectrumElement",
268
+ "package": "@spectrum-web-components/base"
269
+ },
270
+ "tagName": "sp-toast",
271
+ "customElement": true
272
+ }
273
+ ],
274
+ "exports": [
275
+ {
276
+ "kind": "js",
277
+ "name": "toastVariants",
278
+ "declaration": {
279
+ "name": "toastVariants",
280
+ "module": "src/Toast.js"
281
+ }
282
+ },
283
+ {
284
+ "kind": "js",
285
+ "name": "Toast",
286
+ "declaration": {
287
+ "name": "Toast",
288
+ "module": "src/Toast.js"
289
+ }
290
+ }
291
+ ]
292
+ }
293
+ ]
294
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/toast",
3
- "version": "0.49.0-beta.2",
3
+ "version": "0.49.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,11 +57,11 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.49.0-beta.2",
61
- "@spectrum-web-components/button": "^0.49.0-beta.2",
62
- "@spectrum-web-components/icon": "^0.49.0-beta.2",
63
- "@spectrum-web-components/icons-workflow": "^0.49.0-beta.2",
64
- "@spectrum-web-components/shared": "^0.49.0-beta.2"
60
+ "@spectrum-web-components/base": "^0.49.0",
61
+ "@spectrum-web-components/button": "^0.49.0",
62
+ "@spectrum-web-components/icon": "^0.49.0",
63
+ "@spectrum-web-components/icons-workflow": "^0.49.0",
64
+ "@spectrum-web-components/shared": "^0.49.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/toast": "^10.2.0"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "2a8752a182e31dfd71c010b72bece20b0b5d1c9e"
75
+ "gitHead": "088e84caa1e2f723d735b011608ca0a3411e2149"
76
76
  }