@aurodesignsystem-dev/auro-banner 0.0.0-pr103.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 +246 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +204 -0
- package/demo/api.html +58 -0
- package/demo/api.js +1 -0
- package/demo/api.md +573 -0
- package/demo/api.min.js +3 -0
- package/demo/auro-banner.min.js +453 -0
- package/demo/index.html +57 -0
- package/demo/index.js +4 -0
- package/demo/index.md +99 -0
- package/demo/index.min.js +4 -0
- package/dist/auro-banner-DX6gK5MC.js +54 -0
- package/dist/index.d.ts +216 -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,246 @@
|
|
|
1
|
+
# Semantic Release Automated Changelog
|
|
2
|
+
|
|
3
|
+
## [4.1.2](https://github.com/AlaskaAirlines/auro-banner/compare/v4.1.1...v4.1.2) (2025-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update auro-library to latest version ([24fdcc5](https://github.com/AlaskaAirlines/auro-banner/commit/24fdcc5757419716854e2295219d1d41f01c6e63))
|
|
9
|
+
|
|
10
|
+
## [4.1.1](https://github.com/AlaskaAirlines/auro-banner/compare/v4.1.0...v4.1.1) (2025-07-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add themable type classes ([eb1b53b](https://github.com/AlaskaAirlines/auro-banner/commit/eb1b53bb2bb956efaf928f025abf1ce30fced814))
|
|
16
|
+
* update docs head content ([aab8b91](https://github.com/AlaskaAirlines/auro-banner/commit/aab8b91fd2a4425571ad8814aae878fe428fc539))
|
|
17
|
+
|
|
18
|
+
# [4.1.0](https://github.com/AlaskaAirlines/auro-banner/compare/v4.0.1...v4.1.0) (2025-04-30)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* update to use new color theme tokens [#80](https://github.com/AlaskaAirlines/auro-banner/issues/80) ([8aa3ecb](https://github.com/AlaskaAirlines/auro-banner/commit/8aa3ecb76b7f647a4cb5767ab39c35455236473c))
|
|
24
|
+
|
|
25
|
+
## [4.0.1](https://github.com/AlaskaAirlines/auro-banner/compare/v4.0.0...v4.0.1) (2025-04-15)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Performance Improvements
|
|
29
|
+
|
|
30
|
+
* add wca script for docs api ([02cb6e3](https://github.com/AlaskaAirlines/auro-banner/commit/02cb6e3f5b294b53b776ad48abecd8d7d586b06b))
|
|
31
|
+
|
|
32
|
+
# [4.0.0](https://github.com/AlaskaAirlines/auro-banner/compare/v3.1.3...v4.0.0) (2025-02-28)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
* feat!: move peer dependencies to "real" dependencies ([9b9c93b](https://github.com/AlaskaAirlines/auro-banner/commit/9b9c93b93bcd1a0909e49e8d570198dc346d0567))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
* last change was breaking _on a patch version_ because of peer dependencies
|
|
41
|
+
|
|
42
|
+
Summary:
|
|
43
|
+
Our current build process relies on peer dependencies being present, but
|
|
44
|
+
the peer dependency pipeline is causing far more issues than it's worth.
|
|
45
|
+
Why not just make them regular dependencies? This is what this PR does :)
|
|
46
|
+
|
|
47
|
+
## [3.1.3](https://github.com/AlaskaAirlines/auro-banner/compare/v3.1.2...v3.1.3) (2025-02-08)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Performance Improvements
|
|
51
|
+
|
|
52
|
+
* update dependencies ([66e5743](https://github.com/AlaskaAirlines/auro-banner/commit/66e5743f8a3218b51f31d0fedadb5496a895aa22))
|
|
53
|
+
* update mixins to support new npm spec ([2004ac7](https://github.com/AlaskaAirlines/auro-banner/commit/2004ac7db46e4290bc090e7ba5691ecd1650fba0))
|
|
54
|
+
|
|
55
|
+
## [3.1.2](https://github.com/AlaskaAirlines/auro-banner/compare/v3.1.1...v3.1.2) (2024-12-23)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* update auro-library ([4c17c28](https://github.com/AlaskaAirlines/auro-banner/commit/4c17c282b24abb4f7b61e31f0e5fb6ea169fc3d8))
|
|
61
|
+
* update node version ([f3531b8](https://github.com/AlaskaAirlines/auro-banner/commit/f3531b8b79da4def5b8b37f24af41b22800c6599))
|
|
62
|
+
* update package lock ([2c95de9](https://github.com/AlaskaAirlines/auro-banner/commit/2c95de9f40141ee051cf545235c01caaf3bd9394))
|
|
63
|
+
|
|
64
|
+
## [3.1.1](https://github.com/AlaskaAirlines/auro-banner/compare/v3.1.0...v3.1.1) (2024-11-23)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
* update markdown partial pathing to consume new auro lib [#72](https://github.com/AlaskaAirlines/auro-banner/issues/72) ([3bd64df](https://github.com/AlaskaAirlines/auro-banner/commit/3bd64df136d08e173651a6ebc86b1b2c6aec6562))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Performance Improvements
|
|
73
|
+
|
|
74
|
+
* update library to 3.0.2 ([a7d9831](https://github.com/AlaskaAirlines/auro-banner/commit/a7d98311e4742e1ba2cbde1abe15cb2195e81a2d))
|
|
75
|
+
|
|
76
|
+
# [3.1.0](https://github.com/AlaskaAirlines/auro-banner/compare/v3.0.1...v3.1.0) (2024-10-23)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Features
|
|
80
|
+
|
|
81
|
+
* **api:** add register static method [#70](https://github.com/AlaskaAirlines/auro-banner/issues/70) ([a3ffbd2](https://github.com/AlaskaAirlines/auro-banner/commit/a3ffbd297e8a9791097174d01bd28dfb0370ba51))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Performance Improvements
|
|
85
|
+
|
|
86
|
+
* update dependency versions ([82b19cf](https://github.com/AlaskaAirlines/auro-banner/commit/82b19cf0bc79c068b346dfd9c7183ea434569ddd))
|
|
87
|
+
|
|
88
|
+
## [3.0.1](https://github.com/AlaskaAirlines/auro-banner/compare/v3.0.0...v3.0.1) (2024-10-08)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Bug Fixes
|
|
92
|
+
|
|
93
|
+
* moves auro library to dependencies in package.json [#68](https://github.com/AlaskaAirlines/auro-banner/issues/68) ([e79b9bc](https://github.com/AlaskaAirlines/auro-banner/commit/e79b9bc6901b15cf7a9977060f32985412aaab5c))
|
|
94
|
+
|
|
95
|
+
# [3.0.0](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.7...v3.0.0) (2024-09-30)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Bug Fixes
|
|
99
|
+
|
|
100
|
+
* resolve minor color theming issues [#57](https://github.com/AlaskaAirlines/auro-banner/issues/57) ([167aa4d](https://github.com/AlaskaAirlines/auro-banner/commit/167aa4da7295ef7be8ea4fad5933a67817dd6b6b))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Features
|
|
104
|
+
|
|
105
|
+
* add attribute as tag name when custom registered ([6b08477](https://github.com/AlaskaAirlines/auro-banner/commit/6b08477ae8ce4ad00e0ea05f0ff70b961cb593ad))
|
|
106
|
+
* refactor color tokens with tier 3 tokens [#57](https://github.com/AlaskaAirlines/auro-banner/issues/57) ([26d976d](https://github.com/AlaskaAirlines/auro-banner/commit/26d976d313d48328d3cadaac52bb7f65f8108d32))
|
|
107
|
+
* use custom registered auro-header ([965ca98](https://github.com/AlaskaAirlines/auro-banner/commit/965ca98f02c10198ad3f4c8777a9c8bd727875b6))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Performance Improvements
|
|
111
|
+
|
|
112
|
+
* refactor custom component registration config ([97a6262](https://github.com/AlaskaAirlines/auro-banner/commit/97a6262280f0ceebcbcb3b1e56331cde21895031))
|
|
113
|
+
* update dependencies ([15541ad](https://github.com/AlaskaAirlines/auro-banner/commit/15541ad6b091f0a948ea75bc9a5d00dcb4f21732))
|
|
114
|
+
* update dependencies ([70a4b58](https://github.com/AlaskaAirlines/auro-banner/commit/70a4b58d897e9c72debd7953b82df2d85b93d52f))
|
|
115
|
+
* update dependencies and lint configuration ([16a4b0f](https://github.com/AlaskaAirlines/auro-banner/commit/16a4b0f9142e0ddcc0464d1e98266e1efe32a0d8))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### BREAKING CHANGES
|
|
119
|
+
|
|
120
|
+
* trigger major release for color theme support #57
|
|
121
|
+
|
|
122
|
+
## [2.0.7](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.6...v2.0.7) (2024-05-13)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* **docs:** use correct generateDocs script and file names ([374e7ca](https://github.com/AlaskaAirlines/auro-banner/commit/374e7caa0ed9aca0ac69abdd15f74518108c5151))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Performance Improvements
|
|
131
|
+
|
|
132
|
+
* **images:** update path of images ([761113b](https://github.com/AlaskaAirlines/auro-banner/commit/761113bf72a8b5d6c1f3ec02015bad95aa7654b5))
|
|
133
|
+
|
|
134
|
+
## [2.0.6](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.5...v2.0.6) (2024-02-23)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Performance Improvements
|
|
138
|
+
|
|
139
|
+
* **docs:** add custom registration example ([d0d3aa9](https://github.com/AlaskaAirlines/auro-banner/commit/d0d3aa922e7a9acc3dac736416952afa2c40093f))
|
|
140
|
+
|
|
141
|
+
## [2.0.5](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.4...v2.0.5) (2024-02-20)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
* **styles:** style template uses lit correctly ([4e2b2e2](https://github.com/AlaskaAirlines/auro-banner/commit/4e2b2e28dd35f6f1c78ecbc58832776868c27f4a))
|
|
147
|
+
|
|
148
|
+
## [2.0.4](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.3...v2.0.4) (2024-02-13)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Performance Improvements
|
|
152
|
+
|
|
153
|
+
* update auro dependencies ([fcf9d6f](https://github.com/AlaskaAirlines/auro-banner/commit/fcf9d6fbd6cd02df1549c512cfa023b258f37d50))
|
|
154
|
+
|
|
155
|
+
## [2.0.3](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.2...v2.0.3) (2024-02-01)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Performance Improvements
|
|
159
|
+
|
|
160
|
+
* update auro dependencies ([70279e0](https://github.com/AlaskaAirlines/auro-banner/commit/70279e0ec1f184d0920248def79443ad2f58cfea))
|
|
161
|
+
|
|
162
|
+
## [2.0.2](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.1...v2.0.2) (2024-01-31)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Performance Improvements
|
|
166
|
+
|
|
167
|
+
* alaskaairux ref updates ([b2fa155](https://github.com/AlaskaAirlines/auro-banner/commit/b2fa1555a0391118a4672b9a0abfa772bd590d64))
|
|
168
|
+
|
|
169
|
+
## [2.0.1](https://github.com/AlaskaAirlines/auro-banner/compare/v2.0.0...v2.0.1) (2024-01-27)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Performance Improvements
|
|
173
|
+
|
|
174
|
+
* update index per SSR support ([f628ee9](https://github.com/AlaskaAirlines/auro-banner/commit/f628ee94d2e1478cf33e206a5c6a1a5dd9bfc9b6))
|
|
175
|
+
|
|
176
|
+
# [2.0.0](https://github.com/AlaskaAirlines/auro-banner/compare/v1.1.0...v2.0.0) (2024-01-24)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Documentation
|
|
180
|
+
|
|
181
|
+
* update demo template ([1c550c7](https://github.com/AlaskaAirlines/auro-banner/commit/1c550c716d39c92bdd3ec897d340989b4a4a0293))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Features
|
|
185
|
+
|
|
186
|
+
* **modernize:** rebuild component using the generator [#49](https://github.com/AlaskaAirlines/auro-banner/issues/49) ([3ce06bb](https://github.com/AlaskaAirlines/auro-banner/commit/3ce06bb406c6af608c83be951287284679bdc904))
|
|
187
|
+
* **ssr:** add support for SSR projects [#50](https://github.com/AlaskaAirlines/auro-banner/issues/50) ([b276957](https://github.com/AlaskaAirlines/auro-banner/commit/b276957493a8e84e3f4eb409852e2ea5aee81e47))
|
|
188
|
+
* **tokens:** implement theming support [#51](https://github.com/AlaskaAirlines/auro-banner/issues/51) ([ebfc5e5](https://github.com/AlaskaAirlines/auro-banner/commit/ebfc5e50d300514b297858ddcd02c33471a35fd3))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### Performance Improvements
|
|
192
|
+
|
|
193
|
+
* **accordion:** update doc accordion attributes ([f8ae926](https://github.com/AlaskaAirlines/auro-banner/commit/f8ae92622585e8e03231df96388b2e5c6ed5f18a))
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### BREAKING CHANGES
|
|
197
|
+
|
|
198
|
+
* This is NOT the breaking commit, but the npm namespace
|
|
199
|
+
has been updated and requires a MAJOR release.
|
|
200
|
+
|
|
201
|
+
Changes to be committed:
|
|
202
|
+
modified: demo/index.md
|
|
203
|
+
modified: docs/partials/index.md
|
|
204
|
+
|
|
205
|
+
# [1.1.0](https://github.com/AlaskaAirlines/aurolabs-banner/compare/v1.0.4...v1.1.0) (2021-07-09)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Features
|
|
209
|
+
|
|
210
|
+
* add the row attribute so the banner can be stay as a row on mobile ([89f558e](https://github.com/AlaskaAirlines/aurolabs-banner/commit/89f558eb9af23c8abc2d1c165a14b9ab0654e438))
|
|
211
|
+
|
|
212
|
+
## [1.0.4](https://github.com/AlaskaAirlines/aurolabs-banner/compare/v1.0.3...v1.0.4) (2021-07-08)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Bug Fixes
|
|
216
|
+
|
|
217
|
+
* make the rounder border an auro-variable ([ad854df](https://github.com/AlaskaAirlines/aurolabs-banner/commit/ad854df2a7ab1f11c6f7ed1d33053d8934d8f910))
|
|
218
|
+
|
|
219
|
+
## [1.0.3](https://github.com/AlaskaAirlines/aurolabs-banner/compare/v1.0.2...v1.0.3) (2021-06-16)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Bug Fixes
|
|
223
|
+
|
|
224
|
+
* Add max-width to slotted images ([0b89484](https://github.com/AlaskaAirlines/aurolabs-banner/commit/0b8948418cb72a8f9ec37b02bb5202f3501fea5b))
|
|
225
|
+
|
|
226
|
+
## [1.0.2](https://github.com/AlaskaAirlines/aurolabs-banner/compare/v1.0.1...v1.0.2) (2021-06-07)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Bug Fixes
|
|
230
|
+
|
|
231
|
+
* allow the inset property on mobile ([4625a2a](https://github.com/AlaskaAirlines/aurolabs-banner/commit/4625a2a38a209fd043a30aa50ac64d4d3c30272c))
|
|
232
|
+
|
|
233
|
+
## [1.0.1](https://github.com/AlaskaAirlines/aurolabs-banner/compare/v1.0.0...v1.0.1) (2021-06-02)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### Bug Fixes
|
|
237
|
+
|
|
238
|
+
* rename package from aurolabs-banner to auro-banner ([9a6979d](https://github.com/AlaskaAirlines/aurolabs-banner/commit/9a6979db96671b9403f1b3350b6416a4bafd1099))
|
|
239
|
+
|
|
240
|
+
# 1.0.0 (2021-06-01)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Features
|
|
244
|
+
|
|
245
|
+
* fix linting issues ([5e52b2f](https://github.com/AlaskaAirlines/aurolabs-banner/commit/5e52b2f02524287b675d192c3f1485980be7d2d5))
|
|
246
|
+
* fix tests ([526c15d](https://github.com/AlaskaAirlines/aurolabs-banner/commit/526c15dcc111598cac632ecade26d95590d960bd))
|
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,204 @@
|
|
|
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
|
+
# Banner
|
|
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-banner>` element provides users a flexible way to convey a summary of information. The primary elements of a banner include an image, and details.
|
|
25
|
+
|
|
26
|
+
The details are broken down into `prefix`, `title`, `description`, `action`, and `disclaimer`.
|
|
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
|
+
**Do not** use `<auro-banner>` as a primary source of information.
|
|
32
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
33
|
+
|
|
34
|
+
## Use Cases
|
|
35
|
+
|
|
36
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
37
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
38
|
+
Use the `<auro-banner>` element to:
|
|
39
|
+
|
|
40
|
+
* grab the attention of a user
|
|
41
|
+
* direct your user to another resource for further information
|
|
42
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
47
|
+
[](https://github.com/AlaskaAirlines/auro-banner/actions/workflows/release.yml)
|
|
48
|
+
[](https://www.npmjs.com/package/@aurodesignsystem/auro-banner)
|
|
49
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
```shell
|
|
53
|
+
$ npm i @aurodesignsystem/auro-banner
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
|
+
|
|
58
|
+
### Define Dependency in Project
|
|
59
|
+
|
|
60
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
61
|
+
Defining the dependency within each project that is using the `<auro-banner>` component.
|
|
62
|
+
|
|
63
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
64
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
65
|
+
|
|
66
|
+
```js
|
|
67
|
+
import "@aurodesignsystem/auro-banner";
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
|
+
|
|
72
|
+
### Use CDN
|
|
73
|
+
|
|
74
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
75
|
+
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.
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-banner@latest/+esm"></script>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
+
|
|
83
|
+
## Basic Example
|
|
84
|
+
|
|
85
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
86
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<auro-banner billboard>
|
|
90
|
+
<picture slot="displayImage">
|
|
91
|
+
<source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
|
|
92
|
+
<source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
|
|
93
|
+
<source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
|
|
94
|
+
<source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
|
|
95
|
+
<source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
|
|
96
|
+
<img src="https://picsum.photos/id/196/225/550" alt="" />
|
|
97
|
+
</picture>
|
|
98
|
+
<img
|
|
99
|
+
slot="contentImage"
|
|
100
|
+
src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
|
|
101
|
+
alt="Random insert"/>
|
|
102
|
+
<p slot="description">
|
|
103
|
+
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
104
|
+
</p>
|
|
105
|
+
<auro-hyperlink
|
|
106
|
+
type="cta"
|
|
107
|
+
variant="secondary"
|
|
108
|
+
href="/"
|
|
109
|
+
slot="action"
|
|
110
|
+
target="_blank">
|
|
111
|
+
More info
|
|
112
|
+
</auro-hyperlink>
|
|
113
|
+
</auro-banner>
|
|
114
|
+
```
|
|
115
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
|
+
|
|
117
|
+
## Custom Component Registration for Version Management
|
|
118
|
+
|
|
119
|
+
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
|
|
120
|
+
The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
121
|
+
|
|
122
|
+
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
123
|
+
|
|
124
|
+
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
|
|
125
|
+
|
|
126
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
127
|
+
|
|
128
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
129
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
130
|
+
|
|
131
|
+
```js
|
|
132
|
+
// Import the class only
|
|
133
|
+
import { AuroBanner } from '@aurodesignsystem/auro-banner/class';
|
|
134
|
+
|
|
135
|
+
// Register with a custom name if desired
|
|
136
|
+
AuroBanner.register('custom-banner');
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
This will create a new custom element `<custom-banner>` that behaves exactly like `<auro-banner>`, allowing both sets of components to coexist on the same page without interfering with each other.
|
|
140
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
141
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
|
143
|
+
<!-- The below content is automatically added from ./apiExamples/custom.html -->
|
|
144
|
+
<custom-banner billboard>
|
|
145
|
+
<picture slot="displayImage">
|
|
146
|
+
<source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
|
|
147
|
+
<source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
|
|
148
|
+
<source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
|
|
149
|
+
<source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
|
|
150
|
+
<source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
|
|
151
|
+
<img src="https://picsum.photos/id/196/225/550" alt="" />
|
|
152
|
+
</picture>
|
|
153
|
+
<img
|
|
154
|
+
slot="contentImage"
|
|
155
|
+
src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
|
|
156
|
+
alt="Random insert"/>
|
|
157
|
+
<p slot="description">
|
|
158
|
+
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
159
|
+
</p>
|
|
160
|
+
<auro-hyperlink
|
|
161
|
+
type="cta"
|
|
162
|
+
variant="secondary"
|
|
163
|
+
href="/"
|
|
164
|
+
slot="action"
|
|
165
|
+
target="_blank">
|
|
166
|
+
More info
|
|
167
|
+
</auro-hyperlink>
|
|
168
|
+
</custom-banner>
|
|
169
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
170
|
+
</div>
|
|
171
|
+
<auro-accordion alignRight>
|
|
172
|
+
<span slot="trigger">See code</span>
|
|
173
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
174
|
+
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
175
|
+
|
|
176
|
+
```html
|
|
177
|
+
<custom-banner billboard>
|
|
178
|
+
<picture slot="displayImage">
|
|
179
|
+
<source srcset="https://picsum.photos/id/196/1124/800" media="(min-width: 1024px)">
|
|
180
|
+
<source srcset="https://picsum.photos/id/196/1124/1000" media="(min-width: 768px)">
|
|
181
|
+
<source srcset="https://picsum.photos/id/196/736/750" media="(min-width: 736px)">
|
|
182
|
+
<source srcset="https://picsum.photos/id/196/736/1400" media="(min-width: 375px)">
|
|
183
|
+
<source srcset="https://picsum.photos/id/196/320/700" media="(min-width: 320px)">
|
|
184
|
+
<img src="https://picsum.photos/id/196/225/550" alt="" />
|
|
185
|
+
</picture>
|
|
186
|
+
<img
|
|
187
|
+
slot="contentImage"
|
|
188
|
+
src="https://images.contentstack.io/v3/assets/blt2cefe12c88e9dd91/bltc1fa673bb196d177/6633f3de693c294c708b20de/oneworld-travel-bright-Horizontal-300.png"
|
|
189
|
+
alt="Random insert"/>
|
|
190
|
+
<p slot="description">
|
|
191
|
+
We’ll explain any additional costs before you book your car rental. More details on what’s included? Just check the Ts&Cs of any car.
|
|
192
|
+
</p>
|
|
193
|
+
<auro-hyperlink
|
|
194
|
+
type="cta"
|
|
195
|
+
variant="secondary"
|
|
196
|
+
href="/"
|
|
197
|
+
slot="action"
|
|
198
|
+
target="_blank">
|
|
199
|
+
More info
|
|
200
|
+
</auro-hyperlink>
|
|
201
|
+
</custom-banner>
|
|
202
|
+
```
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
|
+
</auro-accordion>
|