@aurodesignsystem-dev/auro-toast 0.0.0-pr86.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.
- package/CHANGELOG.md +279 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +170 -0
- package/demo/api.html +54 -0
- package/demo/api.js +27 -0
- package/demo/api.md +245 -0
- package/demo/api.min.js +98 -0
- package/demo/auro-toaster.min.js +614 -0
- package/demo/index.html +61 -0
- package/demo/index.js +35 -0
- package/demo/index.md +313 -0
- package/demo/index.min.js +142 -0
- package/dist/auro-toaster-DSkkaFZi.js +104 -0
- package/dist/index.d.ts +111 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +85 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# Semantic Release Automated Changelog
|
|
2
|
+
|
|
3
|
+
## [3.2.3](https://github.com/AlaskaAirlines/auro-toast/compare/v3.2.2...v3.2.3) (2025-09-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **toaster:** fixed issue regarding scss file import and added register to toaster so users can call it directly ([d9a34a3](https://github.com/AlaskaAirlines/auro-toast/commit/d9a34a31769ee1a61c08dc4be85f1fd393890e97))
|
|
9
|
+
|
|
10
|
+
## [3.2.2](https://github.com/AlaskaAirlines/auro-toast/compare/v3.2.1...v3.2.2) (2025-09-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update auro-library to latest version ([e4c8b12](https://github.com/AlaskaAirlines/auro-toast/commit/e4c8b12a3aa6684b275192e03be603bc182b3d53))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Performance Improvements
|
|
19
|
+
|
|
20
|
+
* update button for icon fix and all other auro dependencies [#74](https://github.com/AlaskaAirlines/auro-toast/issues/74) ([7ea7c53](https://github.com/AlaskaAirlines/auro-toast/commit/7ea7c5304d621c455ea59e719c2a173f9411f85e))
|
|
21
|
+
|
|
22
|
+
## [3.2.1](https://github.com/AlaskaAirlines/auro-toast/compare/v3.2.0...v3.2.1) (2025-07-28)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* correct close button size ([64bc611](https://github.com/AlaskaAirlines/auro-toast/commit/64bc6114aaff0dccc331baa4244f541e0420b67f))
|
|
28
|
+
|
|
29
|
+
# [3.2.0](https://github.com/AlaskaAirlines/auro-toast/compare/v3.1.3...v3.2.0) (2025-07-24)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* correct attr name typo ([4461fc8](https://github.com/AlaskaAirlines/auro-toast/commit/4461fc8201064ffbdac1fea762469e8482898752))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* add custom hide duration as an attribute [#21](https://github.com/AlaskaAirlines/auro-toast/issues/21) ([56bf369](https://github.com/AlaskaAirlines/auro-toast/commit/56bf3692cf189969fc0c61376f6126f480e75bae))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Performance Improvements
|
|
43
|
+
|
|
44
|
+
* update docs and make attribute expect milliseconds ([1312bf0](https://github.com/AlaskaAirlines/auro-toast/commit/1312bf0d15b2f8281164cdda43da91bacf915339))
|
|
45
|
+
|
|
46
|
+
## [3.1.3](https://github.com/AlaskaAirlines/auro-toast/compare/v3.1.2...v3.1.3) (2025-07-24)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* update pre-commit script to use npx and simplify eslint command ([53269cb](https://github.com/AlaskaAirlines/auro-toast/commit/53269cb526ac5803b8a0b7276d06eed2f63b6372))
|
|
52
|
+
|
|
53
|
+
## [3.1.2](https://github.com/AlaskaAirlines/auro-toast/compare/v3.1.1...v3.1.2) (2025-07-16)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* add themeable type styles ([e894341](https://github.com/AlaskaAirlines/auro-toast/commit/e8943415123297962c26ef5d4694b2245425f3d9))
|
|
59
|
+
* scss linter errors ([7420712](https://github.com/AlaskaAirlines/auro-toast/commit/742071205ffd7c36c971208f9b696c65496e6d75))
|
|
60
|
+
* update docs head content ([aeb2e2a](https://github.com/AlaskaAirlines/auro-toast/commit/aeb2e2a8b5cd73bfaae38567886950db262eac3f))
|
|
61
|
+
|
|
62
|
+
## [3.1.1](https://github.com/AlaskaAirlines/auro-toast/compare/v3.1.0...v3.1.1) (2025-05-01)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* update SCSS token formatting ([f162cde](https://github.com/AlaskaAirlines/auro-toast/commit/f162cde6f16f6a01c37b55e63bcceacf6eb66545))
|
|
68
|
+
|
|
69
|
+
# [3.1.0](https://github.com/AlaskaAirlines/auro-toast/compare/v3.0.0...v3.1.0) (2025-04-30)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* update to use new theming tokens [#63](https://github.com/AlaskaAirlines/auro-toast/issues/63) ([61e5671](https://github.com/AlaskaAirlines/auro-toast/commit/61e5671a4695230a626a22489570d0bb0279d4c8))
|
|
75
|
+
|
|
76
|
+
# [3.0.0](https://github.com/AlaskaAirlines/auro-toast/compare/v2.4.2...v3.0.0) (2025-02-28)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
* feat!: move peer dependencies to "real" dependencies ([daf09f5](https://github.com/AlaskaAirlines/auro-toast/commit/daf09f5802eb9661df36908059c7fea21f08e205))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### BREAKING CHANGES
|
|
83
|
+
|
|
84
|
+
* last change was breaking _on a patch version_ because of peer dependencies
|
|
85
|
+
|
|
86
|
+
Summary:
|
|
87
|
+
Our current build process relies on peer dependencies being present, but
|
|
88
|
+
the peer dependency pipeline is causing far more issues than it's worth.
|
|
89
|
+
Why not just make them regular dependencies? This is what this PR does :)
|
|
90
|
+
|
|
91
|
+
## [2.4.2](https://github.com/AlaskaAirlines/auro-toast/compare/v2.4.1...v2.4.2) (2025-02-08)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Performance Improvements
|
|
95
|
+
|
|
96
|
+
* update dependencies ([a8d225c](https://github.com/AlaskaAirlines/auro-toast/commit/a8d225cd98cb9496b64c96520fb45c84d8a69e1f))
|
|
97
|
+
|
|
98
|
+
## [2.4.1](https://github.com/AlaskaAirlines/auro-toast/compare/v2.4.0...v2.4.1) (2024-12-23)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Performance Improvements
|
|
102
|
+
|
|
103
|
+
* update node to version 22 ([5e40bc9](https://github.com/AlaskaAirlines/auro-toast/commit/5e40bc9f4fe6a5f04d7a6f7438f6f352b7d37698))
|
|
104
|
+
|
|
105
|
+
# [2.4.0](https://github.com/AlaskaAirlines/auro-toast/compare/v2.3.0...v2.4.0) (2024-11-14)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Features
|
|
109
|
+
|
|
110
|
+
* update auro-library to 3.0.2 ([3765fae](https://github.com/AlaskaAirlines/auro-toast/commit/3765faef5900a6a252c0ac1002a4eed603f033bd))
|
|
111
|
+
|
|
112
|
+
# [2.3.0](https://github.com/AlaskaAirlines/auro-toast/compare/v2.2.0...v2.3.0) (2024-11-13)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
* support fully customized toasts [#53](https://github.com/AlaskaAirlines/auro-toast/issues/53) ([4d6f91a](https://github.com/AlaskaAirlines/auro-toast/commit/4d6f91afb5739c93b2ec2b998f7f86cb9c62af19))
|
|
118
|
+
|
|
119
|
+
# [2.2.0](https://github.com/AlaskaAirlines/auro-toast/compare/v2.1.0...v2.2.0) (2024-11-01)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Bug Fixes
|
|
123
|
+
|
|
124
|
+
* remove customsize attribute [#51](https://github.com/AlaskaAirlines/auro-toast/issues/51) ([01ef209](https://github.com/AlaskaAirlines/auro-toast/commit/01ef209259836b6a5747f43eddc8455ac0dc4f01))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Features
|
|
128
|
+
|
|
129
|
+
* update auro-icon package and icon size token applied [#51](https://github.com/AlaskaAirlines/auro-toast/issues/51) ([181e614](https://github.com/AlaskaAirlines/auro-toast/commit/181e614e4ae6d9ffa3e741eef40146ed0fa4dbca))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Performance Improvements
|
|
133
|
+
|
|
134
|
+
* update dependencies ([72a5cb2](https://github.com/AlaskaAirlines/auro-toast/commit/72a5cb2283aed51744fbc96de89664ecec716a4c))
|
|
135
|
+
|
|
136
|
+
# [2.1.0](https://github.com/AlaskaAirlines/auro-toast/compare/v2.0.1...v2.1.0) (2024-10-24)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Bug Fixes
|
|
140
|
+
|
|
141
|
+
* remove min-height style ([7cadc5d](https://github.com/AlaskaAirlines/auro-toast/commit/7cadc5d7c5a8669f5c1f34b9dea01e77229f2d89))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Features
|
|
145
|
+
|
|
146
|
+
* **api:** add register static method [#49](https://github.com/AlaskaAirlines/auro-toast/issues/49) ([2105fbf](https://github.com/AlaskaAirlines/auro-toast/commit/2105fbf6f181cf1689bd36adeb785d05414701e6))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Performance Improvements
|
|
150
|
+
|
|
151
|
+
* update dependency versions ([3762e5d](https://github.com/AlaskaAirlines/auro-toast/commit/3762e5d0e8b87d8308cce1decbf03108c6a3368a))
|
|
152
|
+
|
|
153
|
+
## [2.0.1](https://github.com/AlaskaAirlines/auro-toast/compare/v2.0.0...v2.0.1) (2024-10-09)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Bug Fixes
|
|
157
|
+
|
|
158
|
+
* make auro-library a normal dep instead of devDep ([6ce7415](https://github.com/AlaskaAirlines/auro-toast/commit/6ce741520d1aed3c0c7c07a6fd09de23c6bd415a))
|
|
159
|
+
|
|
160
|
+
# [2.0.0](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.6...v2.0.0) (2024-09-30)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Bug Fixes
|
|
164
|
+
|
|
165
|
+
* **hover:** corrects minor visual jump in close button on hover ([b323af2](https://github.com/AlaskaAirlines/auro-toast/commit/b323af2a973a2dfd595276bda97bda834d506206))
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### Features
|
|
169
|
+
|
|
170
|
+
* add tag name as attribute when custom registered ([9ee3022](https://github.com/AlaskaAirlines/auro-toast/commit/9ee3022285387258ec725fdaeb0165f717fb5fec))
|
|
171
|
+
* refactor color token structure with tier 3 tokens [#37](https://github.com/AlaskaAirlines/auro-toast/issues/37) ([6c5798e](https://github.com/AlaskaAirlines/auro-toast/commit/6c5798e0ea401b21c7fa73c50c6ce6e21b1f5f3c))
|
|
172
|
+
* **version:** implement custom versioned components ([cf0b4da](https://github.com/AlaskaAirlines/auro-toast/commit/cf0b4da9ec6587f546d3d40508c8ad75047cb1b7))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
### Performance Improvements
|
|
176
|
+
|
|
177
|
+
* **icon:** update to use dynamic named icon ([d197718](https://github.com/AlaskaAirlines/auro-toast/commit/d197718bd77e8a31b31a5989bb8feb504060fed4))
|
|
178
|
+
* refactor custom component registration config ([f53c1a2](https://github.com/AlaskaAirlines/auro-toast/commit/f53c1a265b4aa8a669d84ea92f82018c8cf58838))
|
|
179
|
+
* replace hard coded values with tokens ([e876f93](https://github.com/AlaskaAirlines/auro-toast/commit/e876f93352407b5c8e85fa233856c8bb98c0bddf))
|
|
180
|
+
* update dependencies ([cbed764](https://github.com/AlaskaAirlines/auro-toast/commit/cbed76442e6707a5f8cfdd4b5f196c48aff181ed))
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### BREAKING CHANGES
|
|
184
|
+
|
|
185
|
+
* trigger major release for theming support #37
|
|
186
|
+
|
|
187
|
+
## [1.1.6](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.5...v1.1.6) (2024-02-22)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Performance Improvements
|
|
191
|
+
|
|
192
|
+
* **docs:** update logic for JS examples ([004f8a0](https://github.com/AlaskaAirlines/auro-toast/commit/004f8a07d76199b788fd30e05eb26c78d0155441))
|
|
193
|
+
|
|
194
|
+
## [1.1.5](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.4...v1.1.5) (2024-02-22)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Performance Improvements
|
|
198
|
+
|
|
199
|
+
* **examples:** refactor JS examples ([90c273a](https://github.com/AlaskaAirlines/auro-toast/commit/90c273ae215f13ec3af915918c19277d1a493122))
|
|
200
|
+
|
|
201
|
+
## [1.1.4](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.3...v1.1.4) (2024-02-15)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Performance Improvements
|
|
205
|
+
|
|
206
|
+
* **demo:** update demo file names ([b643b10](https://github.com/AlaskaAirlines/auro-toast/commit/b643b10a133f707ceb3fe4e4c47419ff5382302d))
|
|
207
|
+
* **deps:** update dependencies ([756faba](https://github.com/AlaskaAirlines/auro-toast/commit/756fabaf486267a04881efde05e30fc4a0d44a5a))
|
|
208
|
+
|
|
209
|
+
## [1.1.3](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.2...v1.1.3) (2024-02-13)
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Performance Improvements
|
|
213
|
+
|
|
214
|
+
* update auro deps and add ESM badge ([3a408b1](https://github.com/AlaskaAirlines/auro-toast/commit/3a408b12f9502e10bb5d1c69af7ca293068440cf))
|
|
215
|
+
|
|
216
|
+
## [1.1.2](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.1...v1.1.2) (2024-01-31)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### Performance Improvements
|
|
220
|
+
|
|
221
|
+
* alaskaairux ref updates ([14f2978](https://github.com/AlaskaAirlines/auro-toast/commit/14f2978580b46c1a2629b1cbf5299fe05c5fcdbc))
|
|
222
|
+
* **cdn:** update references from unpkg to jsdelivr ([fcb4a38](https://github.com/AlaskaAirlines/auro-toast/commit/fcb4a38cd0965fc6a3f856f8b9a7ab0d5e417f8f))
|
|
223
|
+
|
|
224
|
+
## [1.1.1](https://github.com/AlaskaAirlines/auro-toast/compare/v1.1.0...v1.1.1) (2024-01-27)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Performance Improvements
|
|
228
|
+
|
|
229
|
+
* update index per SSR support ([cfc98cf](https://github.com/AlaskaAirlines/auro-toast/commit/cfc98cf060f70281c354aceda5155917c07e48e8))
|
|
230
|
+
|
|
231
|
+
# [1.1.0](https://github.com/AlaskaAirlines/auro-toast/compare/v1.0.1...v1.1.0) (2024-01-21)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Features
|
|
235
|
+
|
|
236
|
+
* add suport for SSR projects [#31](https://github.com/AlaskaAirlines/auro-toast/issues/31) ([54e5b44](https://github.com/AlaskaAirlines/auro-toast/commit/54e5b445c82d8fc10e8441cfcbf12186403c4509))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
### Performance Improvements
|
|
240
|
+
|
|
241
|
+
* update to support node policy ([7006b4d](https://github.com/AlaskaAirlines/auro-toast/commit/7006b4d72dfb586d41f1b75d710a7c27ebaeb89b))
|
|
242
|
+
|
|
243
|
+
## [1.0.1](https://github.com/AlaskaAirlines/auro-toast/compare/v1.0.0...v1.0.1) (2023-11-16)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Bug Fixes
|
|
247
|
+
|
|
248
|
+
* feedback review for update library dependency and remove unused code ([a1b662a](https://github.com/AlaskaAirlines/auro-toast/commit/a1b662aa72d65b19d7f9a6298930ca59d9aa79b4))
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Performance Improvements
|
|
252
|
+
|
|
253
|
+
* **token:** update token per new theming [#44](https://github.com/AlaskaAirlines/auro-toast/issues/44) ([404d451](https://github.com/AlaskaAirlines/auro-toast/commit/404d4510f2b607f766bebe4d4af1bcbcdd2411d0))
|
|
254
|
+
|
|
255
|
+
# 1.0.0 (2023-07-18)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
### Bug Fixes
|
|
259
|
+
|
|
260
|
+
* **lit:** update template to import from correct ref ([937d2d9](https://github.com/AlaskaAirlines/auro-toast/commit/937d2d9a573041952fbc8c9a9713f21d70707006))
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
### Features
|
|
264
|
+
|
|
265
|
+
* add close button [#10](https://github.com/AlaskaAirlines/auro-toast/issues/10) ([c80d7cc](https://github.com/AlaskaAirlines/auro-toast/commit/c80d7cccee7491d53a494c4865adbb47220994be))
|
|
266
|
+
* do not auto-dismiss error toast [#26](https://github.com/AlaskaAirlines/auro-toast/issues/26) ([543153b](https://github.com/AlaskaAirlines/auro-toast/commit/543153bec8e8679d2ef11aa80cc8943530b81fa0))
|
|
267
|
+
* placement of toast on UI [#14](https://github.com/AlaskaAirlines/auro-toast/issues/14) ([3d00d89](https://github.com/AlaskaAirlines/auro-toast/commit/3d00d89f25e3312c83dcb6b4bea108856e41ae25))
|
|
268
|
+
* support type property [#8](https://github.com/AlaskaAirlines/auro-toast/issues/8) ([c0c7907](https://github.com/AlaskaAirlines/auro-toast/commit/c0c7907a3b2a6d117ef1615f94e63eb3465a1bda))
|
|
269
|
+
* **ux/ui:** build of component [#5](https://github.com/AlaskaAirlines/auro-toast/issues/5) ([4ed9ef1](https://github.com/AlaskaAirlines/auro-toast/commit/4ed9ef1ce7bcf32f0f902dfbd03fc085d63273d5))
|
|
270
|
+
* **ux/ui:** hide toast after five seconds [#13](https://github.com/AlaskaAirlines/auro-toast/issues/13) ([4d6c587](https://github.com/AlaskaAirlines/auro-toast/commit/4d6c587e2c85da9b942a0eee4ee0daf9a5229c1c))
|
|
271
|
+
* **ux/ui:** implement toaster [#19](https://github.com/AlaskaAirlines/auro-toast/issues/19) ([e6145a6](https://github.com/AlaskaAirlines/auro-toast/commit/e6145a648e2b2c06e1ba4c4666e857d1fca1a69f))
|
|
272
|
+
* **ux/ui:** support noIcon property [#9](https://github.com/AlaskaAirlines/auro-toast/issues/9) ([a01a4e6](https://github.com/AlaskaAirlines/auro-toast/commit/a01a4e61d6ce74aff2150f97f8da6cf0013495f3))
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Performance Improvements
|
|
276
|
+
|
|
277
|
+
* **demo:** create api.html file ([00f3e64](https://github.com/AlaskaAirlines/auro-toast/commit/00f3e64e9afbd745ba0ff6e8a16c280307e9df12))
|
|
278
|
+
* **mobile:** allow greater touch surface [#22](https://github.com/AlaskaAirlines/auro-toast/issues/22) ([f14b932](https://github.com/AlaskaAirlines/auro-toast/commit/f14b932bd4c0fd97457eff0fe69e5f07f215c42c))
|
|
279
|
+
* **screenreader:** notify when toast is visible ([e8d2ee9](https://github.com/AlaskaAirlines/auro-toast/commit/e8d2ee96d6fbe6df1b19c56e0c771a2af86f7032))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
The README.md file is a compiled document. No edits should be made directly to this file.
|
|
3
|
+
|
|
4
|
+
README.md is created by running `npm run build:docs`.
|
|
5
|
+
|
|
6
|
+
This file is generated based on a template fetched from
|
|
7
|
+
`https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/README.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
|
+
|
|
10
|
+
The following sections are editable by making changes to the following files:
|
|
11
|
+
|
|
12
|
+
| SECTION | DESCRIPTION | FILE LOCATION |
|
|
13
|
+
|------------------------|---------------------------------------------------|-------------------------------------|
|
|
14
|
+
| Description | Description of the component | `./docs/partials/description.md` |
|
|
15
|
+
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
|
|
16
|
+
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
|
|
17
|
+
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
|
|
18
|
+
-->
|
|
19
|
+
|
|
20
|
+
# Toast
|
|
21
|
+
|
|
22
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
|
+
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
+
The `<auro-toast>` element is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of sending an unobtrusive toast (or push) notification to your visitors.
|
|
25
|
+
|
|
26
|
+
The `<auro-toaster>` wrapper-element is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of managing a series of notifications at the bottom of the screen using the `<auro-toast>` element.
|
|
27
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
29
|
+
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
30
|
+
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
32
|
+
|
|
33
|
+
## UI development browser support
|
|
34
|
+
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
36
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
37
|
+
|
|
38
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
43
|
+
[](https://github.com/AlaskaAirlines/auro-toast/actions/workflows/testPublish.yml)
|
|
44
|
+
[](https://www.npmjs.com/package/@aurodesignsystem/auro-toast)
|
|
45
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
$ npm i @aurodesignsystem/auro-toast
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
53
|
+
|
|
54
|
+
### Design Token CSS Custom Property dependency
|
|
55
|
+
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
57
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
58
|
+
|
|
59
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
60
|
+
|
|
61
|
+
### Define dependency in project component
|
|
62
|
+
|
|
63
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
64
|
+
Defining the component dependency within each component that is using the `<auro-toast>` component.
|
|
65
|
+
|
|
66
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
67
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
68
|
+
|
|
69
|
+
```js
|
|
70
|
+
import "@aurodesignsystem/auro-toast";
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
74
|
+
**Reference component in HTML**
|
|
75
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
76
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<!-- icon variant -->
|
|
80
|
+
<auro-button id="basicToastBtn">
|
|
81
|
+
Show default notification
|
|
82
|
+
</auro-button>
|
|
83
|
+
<auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast">
|
|
84
|
+
Default notification with no error type
|
|
85
|
+
</auro-toast>
|
|
86
|
+
<!-- no icon variant -->
|
|
87
|
+
<auro-button id="basicToast-noIconBtn">
|
|
88
|
+
Show default notification with no icon
|
|
89
|
+
</auro-button>
|
|
90
|
+
<auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast-noIcon" noIcon>
|
|
91
|
+
Default notification with no error type
|
|
92
|
+
</auro-toast>
|
|
93
|
+
```
|
|
94
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
|
+
|
|
96
|
+
## Use CDN
|
|
97
|
+
|
|
98
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
99
|
+
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-toast@latest/+esm"></script>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
|
+
|
|
107
|
+
## auro-toast use cases
|
|
108
|
+
|
|
109
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
110
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
111
|
+
The `<auro-toast>` use cases include:
|
|
112
|
+
|
|
113
|
+
* Sending an error push notification
|
|
114
|
+
* Sending a success push notification
|
|
115
|
+
* Sending any type of push notification
|
|
116
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
|
+
|
|
118
|
+
## API Code Examples
|
|
119
|
+
|
|
120
|
+
### Default auro-toast
|
|
121
|
+
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
123
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<!-- icon variant -->
|
|
127
|
+
<auro-button id="basicToastBtn">
|
|
128
|
+
Show default notification
|
|
129
|
+
</auro-button>
|
|
130
|
+
<auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast">
|
|
131
|
+
Default notification with no error type
|
|
132
|
+
</auro-toast>
|
|
133
|
+
<!-- no icon variant -->
|
|
134
|
+
<auro-button id="basicToast-noIconBtn">
|
|
135
|
+
Show default notification with no icon
|
|
136
|
+
</auro-button>
|
|
137
|
+
<auro-toast style="display: block; margin: 0.5rem 0;" id="basicToast-noIcon" noIcon>
|
|
138
|
+
Default notification with no error type
|
|
139
|
+
</auro-toast>
|
|
140
|
+
```
|
|
141
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
142
|
+
|
|
143
|
+
## Development
|
|
144
|
+
|
|
145
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
146
|
+
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
147
|
+
|
|
148
|
+
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
|
|
149
|
+
|
|
150
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
151
|
+
|
|
152
|
+
### Start development environment
|
|
153
|
+
|
|
154
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
155
|
+
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
156
|
+
|
|
157
|
+
```shell
|
|
158
|
+
$ npm run dev
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
162
|
+
|
|
163
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
164
|
+
|
|
165
|
+
### Testing
|
|
166
|
+
|
|
167
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
168
|
+
Automated tests are required for every Auro component. See `.\test\auro-toast.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
169
|
+
|
|
170
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|