@aurodesignsystem/auro-tail 1.0.2 → 2.0.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 +13 -2
- package/custom-elements.json +0 -2
- package/demo/api.md +36 -8
- package/demo/auro-tail-group.min.js +28 -31
- package/dist/{auro-tail-group-BIAM9x8r.js → auro-tail-group-ABQD2bqA.js} +13 -14
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# [2.0.0](https://github.com/AlaskaAirlines/auro-tail/compare/v1.0.2...v2.0.0) (2026-05-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **href:** ensure links render under tail image container [#28](https://github.com/AlaskaAirlines/auro-tail/issues/28) ([344f710](https://github.com/AlaskaAirlines/auro-tail/commit/344f710bec302e3944b6d0045d02e9766e5d91d3))
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
### Performance Improvements
|
|
5
10
|
|
|
6
|
-
*
|
|
11
|
+
* **fallback:** make tail-DEFAULT the fallback tail [#26](https://github.com/AlaskaAirlines/auro-tail/issues/26) ([eab2324](https://github.com/AlaskaAirlines/auro-tail/commit/eab2324e7c0fbb487aa617e44743f3d39dd5c1a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* **fallback:** The fallback tail for auro-tail is changing from tail-AS to tail-DEFAULT.
|
|
17
|
+
No code changes will be needed to get auro-tail to function correctly as it currently exists.
|
package/custom-elements.json
CHANGED
|
@@ -356,7 +356,6 @@
|
|
|
356
356
|
"text": "string"
|
|
357
357
|
},
|
|
358
358
|
"description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
|
|
359
|
-
"default": "'AS'",
|
|
360
359
|
"attribute": "tail"
|
|
361
360
|
},
|
|
362
361
|
{
|
|
@@ -403,7 +402,6 @@
|
|
|
403
402
|
"text": "string"
|
|
404
403
|
},
|
|
405
404
|
"description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
|
|
406
|
-
"default": "'AS'",
|
|
407
405
|
"fieldName": "tail"
|
|
408
406
|
},
|
|
409
407
|
{
|
package/demo/api.md
CHANGED
|
@@ -12,7 +12,7 @@ The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline ta
|
|
|
12
12
|
| badge | badge | | string | | Sets the badge type to display (e.g., `oneworld`). |
|
|
13
13
|
| href | href | | string | | Sets the href for the tail. |
|
|
14
14
|
| size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `2xl` | `lg` | Sets the size of the tail. |
|
|
15
|
-
| tail | tail | | string |
|
|
15
|
+
| tail | tail | | string | | Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`). |
|
|
16
16
|
| variant | variant | | `outline` | | Sets the visual variant of the tail. |
|
|
17
17
|
|
|
18
18
|
### Methods
|
|
@@ -92,16 +92,16 @@ Display predefined badges such as OneWorld Alliance using the `badge` attribute.
|
|
|
92
92
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
93
93
|
</auro-accordion>
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
### Href
|
|
96
96
|
|
|
97
97
|
Make tails clickable by adding an `href` attribute. This displays a clickable link below the tail using the `<auro-hyperlink>` component.
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
#### Supported sizes:
|
|
100
100
|
- `md`, `lg`, `xl`, `2xl`
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
- Use the `
|
|
104
|
-
- If no
|
|
102
|
+
#### Customizing the label:
|
|
103
|
+
- Use the default slot (no `slot` attribute) to provide custom link text
|
|
104
|
+
- If no slotted content is provided, a default label is inserted automatically
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
107
|
<auro-tail tail="HA" size="md" href="https://hawaiianairlines.com/">
|
|
@@ -196,8 +196,6 @@ Set the `tail` attribute to insert a tail graphic from the `<auro-icon>` reposit
|
|
|
196
196
|
|
|
197
197
|
Tail codes from `<auro-icon>` are expected to be UPPERCASE (e.g., `AS`, not `as`).
|
|
198
198
|
|
|
199
|
-
The `tail` attribute is required.
|
|
200
|
-
|
|
201
199
|
<div class="exampleWrapper">
|
|
202
200
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tail.html) -->
|
|
203
201
|
<!-- The below content is automatically added from ../apiExamples/tail.html -->
|
|
@@ -219,6 +217,36 @@ The `tail` attribute is required.
|
|
|
219
217
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
220
218
|
</auro-accordion>
|
|
221
219
|
|
|
220
|
+
#### Fallback
|
|
221
|
+
|
|
222
|
+
When the `tail` attribute is omitted or an unrecognized tail code is provided, `<auro-tail>` gracefully falls back to a default tail livery graphic rather than showing a broken icon.
|
|
223
|
+
|
|
224
|
+
- **No `tail` attribute** — renders the default tail livery.
|
|
225
|
+
- **Invalid tail code** (e.g., `tail="INVALID"`) — falls back to the default tail livery.
|
|
226
|
+
|
|
227
|
+
<div class="exampleWrapper">
|
|
228
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/fallback.html) -->
|
|
229
|
+
<!-- The below content is automatically added from ../apiExamples/fallback.html -->
|
|
230
|
+
<!-- No tail attribute: renders the default tail livery -->
|
|
231
|
+
<auro-tail></auro-tail>
|
|
232
|
+
<!-- Invalid tail code: falls back to the default tail livery -->
|
|
233
|
+
<auro-tail tail="INVALID"></auro-tail>
|
|
234
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
235
|
+
</div>
|
|
236
|
+
<auro-accordion alignRight>
|
|
237
|
+
<span slot="trigger">See code</span>
|
|
238
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/fallback.html) -->
|
|
239
|
+
<!-- The below code snippet is automatically added from ../apiExamples/fallback.html -->
|
|
240
|
+
|
|
241
|
+
```html
|
|
242
|
+
<!-- No tail attribute: renders the default tail livery -->
|
|
243
|
+
<auro-tail></auro-tail>
|
|
244
|
+
<!-- Invalid tail code: falls back to the default tail livery -->
|
|
245
|
+
<auro-tail tail="INVALID"></auro-tail>
|
|
246
|
+
```
|
|
247
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
248
|
+
</auro-accordion>
|
|
249
|
+
|
|
222
250
|
### Variant
|
|
223
251
|
|
|
224
252
|
Set the `variant` attribute to change the visual style of the tail.
|