@aurodesignsystem/auro-tail 1.0.1 → 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/README.md +10 -0
- package/custom-elements.json +3 -5
- package/demo/api.md +69 -38
- package/demo/auro-tail-group.min.js +40 -43
- package/demo/index.md +13 -52
- package/dist/{auro-tail-group-BoJt8IFn.js → auro-tail-group-ABQD2bqA.js} +13 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -7
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
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
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))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Performance Improvements
|
|
10
|
+
|
|
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/README.md
CHANGED
|
@@ -111,6 +111,16 @@ You can do this by importing only the component class and using the `register(na
|
|
|
111
111
|
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
113
113
|
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
114
|
+
|
|
115
|
+
```js
|
|
116
|
+
// Import the class only
|
|
117
|
+
import { AuroTail } from '@aurodesignsystem/auro-tail/class';
|
|
118
|
+
|
|
119
|
+
// Register with a custom name if desired
|
|
120
|
+
AuroTail.register('custom-tail');
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
This will create a new custom element `<custom-tail>` that behaves exactly like `<auro-tail>`, allowing both to coexist on the same page without interfering with each other.
|
|
114
124
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
125
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
116
126
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
package/custom-elements.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"declarations": [
|
|
29
29
|
{
|
|
30
30
|
"kind": "class",
|
|
31
|
-
"description": "",
|
|
31
|
+
"description": "The `auro-tail-group` element displays multiple `auro-tail` elements in a grouped layout.",
|
|
32
32
|
"name": "AuroTailGroup",
|
|
33
33
|
"members": [
|
|
34
34
|
{
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"declarations": [
|
|
157
157
|
{
|
|
158
158
|
"kind": "class",
|
|
159
|
-
"description": "",
|
|
159
|
+
"description": "The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.",
|
|
160
160
|
"name": "AuroTail",
|
|
161
161
|
"members": [
|
|
162
162
|
{
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
{
|
|
307
307
|
"name": "name",
|
|
308
308
|
"default": "\"auro-tail\"",
|
|
309
|
-
"description": "The name of element that you want to register
|
|
309
|
+
"description": "The name of the element that you want to register.",
|
|
310
310
|
"optional": true,
|
|
311
311
|
"type": {
|
|
312
312
|
"text": "string"
|
|
@@ -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
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
2
|
-
<!-- The below content is automatically added from
|
|
1
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
|
|
2
|
+
<!-- The below content is automatically added from ./../docs/api.md -->
|
|
3
3
|
|
|
4
|
-
# auro-tail
|
|
4
|
+
# auro-tail
|
|
5
|
+
|
|
6
|
+
The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
5
7
|
|
|
6
8
|
### Properties & Attributes
|
|
7
9
|
|
|
@@ -10,16 +12,18 @@
|
|
|
10
12
|
| badge | badge | | string | | Sets the badge type to display (e.g., `oneworld`). |
|
|
11
13
|
| href | href | | string | | Sets the href for the tail. |
|
|
12
14
|
| size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `2xl` | `lg` | Sets the size of the tail. |
|
|
13
|
-
| 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`). |
|
|
14
16
|
| variant | variant | | `outline` | | Sets the visual variant of the tail. |
|
|
15
17
|
|
|
16
18
|
### Methods
|
|
17
19
|
|
|
18
|
-
| Name | Parameters
|
|
19
|
-
| -------- |
|
|
20
|
-
| register | `name` (string) - The name of element that you want to register
|
|
20
|
+
| Name | Parameters | Return | Description |
|
|
21
|
+
| -------- | -------------------------------------------------------------------- | ------ | ------------------------------------------------- |
|
|
22
|
+
| register | `name` (string) - The name of the element that you want to register. | | This will register this element with the browser. |
|
|
21
23
|
|
|
22
|
-
# auro-tail-group
|
|
24
|
+
# auro-tail-group
|
|
25
|
+
|
|
26
|
+
The `auro-tail-group` element displays multiple `auro-tail` elements in a grouped layout.
|
|
23
27
|
|
|
24
28
|
### Properties & Attributes
|
|
25
29
|
|
|
@@ -35,32 +39,32 @@
|
|
|
35
39
|
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
36
40
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
37
41
|
|
|
38
|
-
## API Examples
|
|
39
|
-
|
|
40
42
|
## Basic
|
|
41
43
|
|
|
42
44
|
<div class="exampleWrapper">
|
|
43
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
44
|
-
<!-- The below content is automatically added from
|
|
45
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
46
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
45
47
|
<auro-tail tail="AS"></auro-tail>
|
|
46
48
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
47
49
|
</div>
|
|
48
50
|
<auro-accordion alignRight>
|
|
49
|
-
<span slot="trigger">See code</span>
|
|
50
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
51
|
-
<!-- The below code snippet is automatically added from
|
|
51
|
+
<span slot="trigger">See code</span>
|
|
52
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
53
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
52
54
|
|
|
53
55
|
```html
|
|
54
56
|
<auro-tail tail="AS"></auro-tail>
|
|
55
57
|
```
|
|
56
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
58
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
59
|
</auro-accordion>
|
|
58
60
|
|
|
59
|
-
##
|
|
61
|
+
## Auro-Tail Property & Attribute Examples
|
|
62
|
+
|
|
63
|
+
### Badge
|
|
60
64
|
|
|
61
65
|
Display predefined badges such as OneWorld Alliance using the `badge` attribute.
|
|
62
66
|
|
|
63
|
-
|
|
67
|
+
#### Supported sizes:
|
|
64
68
|
- `md`, `lg`, `xl`, `2xl`
|
|
65
69
|
|
|
66
70
|
> `badge` prop is not displayed when in an `<auro-tail-group>`.
|
|
@@ -88,16 +92,16 @@ Display predefined badges such as OneWorld Alliance using the `badge` attribute.
|
|
|
88
92
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
89
93
|
</auro-accordion>
|
|
90
94
|
|
|
91
|
-
|
|
95
|
+
### Href
|
|
92
96
|
|
|
93
97
|
Make tails clickable by adding an `href` attribute. This displays a clickable link below the tail using the `<auro-hyperlink>` component.
|
|
94
98
|
|
|
95
|
-
|
|
99
|
+
#### Supported sizes:
|
|
96
100
|
- `md`, `lg`, `xl`, `2xl`
|
|
97
101
|
|
|
98
|
-
|
|
99
|
-
- Use the `
|
|
100
|
-
- 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
|
|
101
105
|
|
|
102
106
|
```html
|
|
103
107
|
<auro-tail tail="HA" size="md" href="https://hawaiianairlines.com/">
|
|
@@ -144,7 +148,7 @@ Make tails clickable by adding an `href` attribute. This displays a clickable li
|
|
|
144
148
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
145
149
|
</auro-accordion>
|
|
146
150
|
|
|
147
|
-
|
|
151
|
+
### Size
|
|
148
152
|
|
|
149
153
|
Control the size of `<auro-tail>` with the `size` attribute.
|
|
150
154
|
|
|
@@ -186,14 +190,12 @@ Certain properties are not available for all `<auto-tail>` sizes. See the table
|
|
|
186
190
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
187
191
|
</auro-accordion>
|
|
188
192
|
|
|
189
|
-
|
|
193
|
+
### Tail
|
|
190
194
|
|
|
191
195
|
Set the `tail` attribute to insert a tail graphic from the `<auro-icon>` repository with the corresponding icon code.
|
|
192
196
|
|
|
193
197
|
Tail codes from `<auro-icon>` are expected to be UPPERCASE (e.g., `AS`, not `as`).
|
|
194
198
|
|
|
195
|
-
The `tail` attribute is required.
|
|
196
|
-
|
|
197
199
|
<div class="exampleWrapper">
|
|
198
200
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tail.html) -->
|
|
199
201
|
<!-- The below content is automatically added from ../apiExamples/tail.html -->
|
|
@@ -215,11 +217,41 @@ The `tail` attribute is required.
|
|
|
215
217
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
216
218
|
</auro-accordion>
|
|
217
219
|
|
|
218
|
-
|
|
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
|
+
|
|
250
|
+
### Variant
|
|
219
251
|
|
|
220
252
|
Set the `variant` attribute to change the visual style of the tail.
|
|
221
253
|
|
|
222
|
-
|
|
254
|
+
#### Available variants:
|
|
223
255
|
- `outline` - Adds an outline around the tail graphic
|
|
224
256
|
- Outlines apply only to partner (OA) tails
|
|
225
257
|
- AAG tails (`AS` & `HA`) never feature outlines
|
|
@@ -248,9 +280,9 @@ Set the `variant` attribute to change the visual style of the tail.
|
|
|
248
280
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
249
281
|
</auro-accordion>
|
|
250
282
|
|
|
251
|
-
##
|
|
283
|
+
## Common Usage Patterns & Functional Examples
|
|
252
284
|
|
|
253
|
-
|
|
285
|
+
### Borders
|
|
254
286
|
|
|
255
287
|
Optional border ring around `<auro-tail>`.
|
|
256
288
|
|
|
@@ -261,7 +293,7 @@ Use CSS custom properties to style borders:
|
|
|
261
293
|
- `--ds-auro-tail-border-color`
|
|
262
294
|
- Set the border color (any valid CSS color value)
|
|
263
295
|
|
|
264
|
-
|
|
296
|
+
#### Styling individual tails:
|
|
265
297
|
|
|
266
298
|
Set CSS custom properties directly on the `<auro-tail>` element:
|
|
267
299
|
|
|
@@ -292,8 +324,7 @@ Set CSS custom properties directly on the `<auro-tail>` element:
|
|
|
292
324
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
293
325
|
</auro-accordion>
|
|
294
326
|
|
|
295
|
-
##
|
|
296
|
-
Use `<auro-tail-group>` to display paired `<auro-tail>` components in a group layout with specific behavioral constraints and visual treatments.
|
|
327
|
+
## Auro-Tail-Group Property & Attribute Examples
|
|
297
328
|
|
|
298
329
|
### Supported sizes:
|
|
299
330
|
- `xs`, `sm`, `md`, `lg`
|
|
@@ -471,12 +502,12 @@ Border styling availability varies by layout type (see sections below).
|
|
|
471
502
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
472
503
|
</auro-accordion>
|
|
473
504
|
|
|
474
|
-
|
|
505
|
+
## Restyle Component with CSS Variables
|
|
475
506
|
|
|
476
|
-
The component may be restyled
|
|
507
|
+
The component may be restyled by changing the values of the following token(s).
|
|
477
508
|
|
|
478
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
479
|
-
<!-- The below code snippet is automatically added from
|
|
509
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
510
|
+
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
480
511
|
|
|
481
512
|
```scss
|
|
482
513
|
/* Public API Tokens - Consumer Customizable */
|