@aurodesignsystem/auro-tail 2.0.0 → 2.0.1-rc-1687282.1

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 CHANGED
@@ -1,17 +1,5 @@
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))
7
-
1
+ ## [2.0.1-rc-1687282.1](https://github.com/AlaskaAirlines/auro-tail/compare/v2.0.0...v2.0.1-rc-1687282.1) (2026-11-25)
8
2
 
9
3
  ### Performance Improvements
10
4
 
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.
5
+ * register custom-tail-group in the custom registration example [#38](https://github.com/AlaskaAirlines/auro-tail/issues/38) ([134d6ae](https://github.com/AlaskaAirlines/auro-tail/commit/134d6ae12fc7b850fe686b44ceffaad8caec2c78))
package/README.md CHANGED
@@ -12,23 +12,23 @@ The following sections are editable by making changes to the following files:
12
12
  | SECTION | DESCRIPTION | FILE LOCATION |
13
13
  |------------------------|---------------------------------------------------|-------------------------------------|
14
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` |
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
18
  -->
19
19
 
20
20
  # Tail
21
21
 
22
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
23
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
24
- The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
24
+ Displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
25
25
  <!-- AURO-GENERATED-CONTENT:END -->
26
26
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
27
27
  <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
28
28
  <!-- 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. -->
29
29
  <!-- AURO-GENERATED-CONTENT:END -->
30
30
 
31
- ## Use Cases
31
+ ## Use cases
32
32
 
33
33
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
34
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
@@ -41,12 +41,12 @@ The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline
41
41
 
42
42
  ### Features
43
43
 
44
- - **AAG & Partner Airlines**: Logos provided by the `<auro-icon>` repository
45
- - **Flexible Sizing**: Offers a flexible size scale to accommodate various design requirements
46
- - **Group Layout**: Display multiple tails together in paired layouts
47
- - **Badge Support**: Display badges like OneWorld Alliance
48
- - **Custom Borders**: Add colored borders with customizable widths
49
- - **Clickable Links**: Make tails clickable with `<auro-hyperlink>`
44
+ - **Alaska, Hawaiian, and partner airlines**: Logos provided by the `<auro-icon>` repository
45
+ - **Flexible sizing**: Offers a flexible size scale to accommodate various design requirements
46
+ - **Group layout**: Display multiple tails together in paired layouts
47
+ - **Badge support**: Display badges, such as the OneWorld Alliance badge
48
+ - **Custom borders**: Add colored borders with customizable widths
49
+ - **Clickable links**: Make tails clickable with `<auro-hyperlink>`
50
50
  <!-- AURO-GENERATED-CONTENT:END -->
51
51
 
52
52
  ## Install
@@ -57,92 +57,80 @@ The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline
57
57
  [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-tail?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
58
58
  ![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge)
59
59
 
60
- ```shell
61
- $ npm i @aurodesignsystem/auro-tail
62
- ```
60
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-tail</code></pre>
63
61
 
64
62
  <!-- AURO-GENERATED-CONTENT:END -->
65
63
 
66
- ### Define Dependency in Project
64
+ ### Define dependency in project
67
65
 
68
66
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
69
- Defining the dependency within each project that is using the `<auro-tail>` component.
67
+ Import the component in each project that uses `<auro-tail>`.
70
68
 
71
69
  <!-- AURO-GENERATED-CONTENT:END -->
72
70
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
73
71
 
74
- ```js
75
- import "@aurodesignsystem/auro-tail";
76
- ```
72
+ <pre class="language-js"><code class="language-js">import "@aurodesignsystem/auro-tail";</code></pre>
77
73
 
78
74
  <!-- AURO-GENERATED-CONTENT:END -->
79
75
 
80
76
  ### Use CDN
81
77
 
82
78
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
83
- 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.
79
+ If your project can't process JS assets, use the pre-processed assets. Legacy browsers, such as IE11, aren't supported.
84
80
 
85
- ```html
86
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-tail@latest/+esm"></script>
87
- ```
81
+ <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-tail@latest/+esm"&gt;&lt;/script&gt;</code></pre>
88
82
 
89
83
  <!-- AURO-GENERATED-CONTENT:END -->
90
84
 
91
- ## Basic Example
85
+ ## Basic example
92
86
 
93
87
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
94
88
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
95
89
 
96
- ```html
97
- <auro-tail tail="AS"></auro-tail>
98
- ```
90
+ <pre class="language-html"><code class="language-html">&lt;auro-tail tail="AS"&gt;&lt;/auro-tail&gt;</code></pre>
99
91
  <!-- AURO-GENERATED-CONTENT:END -->
100
92
 
101
- ## Custom Component Registration for Version Management
93
+ ## Custom component registration for version management
102
94
 
103
- 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.
95
+ Every Auro component has two key parts: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
104
96
  The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
105
97
 
106
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
98
+ Installing the component as described in the Install section imports the class and registers the component globally for you.
107
99
 
108
- 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.
100
+ 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), register the class manually under a custom element name to avoid conflicts.
109
101
 
110
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
102
+ To do this, import only the component class and call the `register(name)` method with a unique name:
111
103
 
112
104
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
113
105
  <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
114
106
 
115
- ```js
116
- // Import the class only
117
- import { AuroTail } from '@aurodesignsystem/auro-tail/class';
118
-
119
- // Register with a custom name if desired
107
+ <pre class="language-js"><code class="language-js">// Import the classes only
108
+ import { AuroTail, AuroTailGroup } from '@aurodesignsystem/auro-tail/class';
109
+ // Register with custom names if desired
120
110
  AuroTail.register('custom-tail');
121
- ```
111
+ AuroTailGroup.register('custom-tail-group');</code></pre>
122
112
 
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.
113
+ This registers new custom elements `<custom-tail>` and `<custom-tail-group>` that behave exactly like `<auro-tail>` and `<auro-tail-group>`, so both sets can coexist on the same page without interfering with each other.
124
114
  <!-- AURO-GENERATED-CONTENT:END -->
125
115
  <div class="exampleWrapper exampleWrapper--flex">
126
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
127
- <!-- The below content is automatically added from ./apiExamples/custom.html -->
128
- <custom-tail tail="AS" size="2xl"></custom-tail>
129
- <custom-tail-group size="lg">
130
- <custom-tail tail="HA"></custom-tail>
131
- <custom-tail tail="AA"></custom-tail>
132
- </custom-tail-group>
133
- <!-- AURO-GENERATED-CONTENT:END -->
116
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
117
+ <!-- The below content is automatically added from ./apiExamples/custom.html -->
118
+ <custom-tail tail="AS" size="2xl"></custom-tail>
119
+ <custom-tail-group size="lg">
120
+ <custom-tail tail="HA"></custom-tail>
121
+ <custom-tail tail="AA"></custom-tail>
122
+ </custom-tail-group>
123
+ <!-- AURO-GENERATED-CONTENT:END -->
134
124
  </div>
135
125
  <auro-accordion alignRight>
136
- <span slot="trigger">See code</span>
126
+ <span slot="trigger">See code</span>
137
127
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
138
128
  <!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
139
129
 
140
- ```html
141
- <custom-tail tail="AS" size="2xl"></custom-tail>
142
- <custom-tail-group size="lg">
143
- <custom-tail tail="HA"></custom-tail>
144
- <custom-tail tail="AA"></custom-tail>
145
- </custom-tail-group>
146
- ```
130
+ <pre class="language-html"><code class="language-html">&lt;custom-tail tail="AS" size="2xl"&gt;&lt;/custom-tail&gt;
131
+ &#10;&lt;custom-tail-group size="lg"&gt;
132
+ &lt;custom-tail tail="HA"&gt;&lt;/custom-tail&gt;
133
+ &lt;custom-tail tail="AA"&gt;&lt;/custom-tail&gt;
134
+ &lt;/custom-tail-group&gt;</code></pre>
147
135
  <!-- AURO-GENERATED-CONTENT:END -->
148
136
  </auro-accordion>
@@ -28,8 +28,14 @@
28
28
  "declarations": [
29
29
  {
30
30
  "kind": "class",
31
- "description": "The `auro-tail-group` element displays multiple `auro-tail` elements in a grouped layout.",
31
+ "description": "Shows two airline tails together as a pair, either side by side with an overlap or stacked at opposite corners.\n\n**Key capabilities**\n- **Layouts**: Set `layout` to `horizontal` or `diagonal`.\n- **Shared size**: Set `size` to size both tails at once.\n- **Pairs only**: The group supports two tails.\n\n**Example**\n```html\n<auro-tail-group layout=\"horizontal\">\n <auro-tail tail=\"AS\"></auro-tail>\n <auro-tail tail=\"HA\"></auro-tail>\n</auro-tail-group>\n```",
32
32
  "name": "AuroTailGroup",
33
+ "slots": [
34
+ {
35
+ "description": "The two `auro-tail` elements to show.",
36
+ "name": ""
37
+ }
38
+ ],
33
39
  "members": [
34
40
  {
35
41
  "kind": "method",
@@ -39,7 +45,7 @@
39
45
  {
40
46
  "kind": "method",
41
47
  "name": "handleSlotChange",
42
- "description": "Handle slot changes to update tails.",
48
+ "description": "Handles slot changes by updating the tails.",
43
49
  "privacy": "private"
44
50
  },
45
51
  {
@@ -60,7 +66,7 @@
60
66
  "type": {
61
67
  "text": "'horizontal' | 'diagonal'"
62
68
  },
63
- "description": "Sets the layout direction for the group.",
69
+ "description": "Sets how the two tails sit together. Use `horizontal` (the default) for tails that overlap side by side, or `diagonal` for tails at opposite corners. Borders show only in the `horizontal` layout.",
64
70
  "default": "'horizontal'",
65
71
  "attribute": "layout",
66
72
  "reflects": true
@@ -73,14 +79,14 @@
73
79
  {
74
80
  "name": "name",
75
81
  "default": "\"auro-tail-group\"",
76
- "description": "The name of element that you want to register to.",
82
+ "description": "The tag name to register the element under.",
77
83
  "optional": true,
78
84
  "type": {
79
85
  "text": "string"
80
86
  }
81
87
  }
82
88
  ],
83
- "description": "This will register this element with the browser.",
89
+ "description": "Registers the element with the browser under a tag name.",
84
90
  "type": {
85
91
  "text": "register(name?: string = \"auro-tail-group\") => void"
86
92
  }
@@ -98,7 +104,7 @@
98
104
  "type": {
99
105
  "text": "'xs' | 'sm' | 'md' | 'lg'"
100
106
  },
101
- "description": "Sets the size for all child tails in the group.",
107
+ "description": "Sets the size of every `auro-tail` in the group, from `xs` to `lg`. The group's size replaces any `size` set on the tails, and the group shows nothing at other sizes.",
102
108
  "default": "'lg'",
103
109
  "attribute": "size",
104
110
  "reflects": true
@@ -116,7 +122,7 @@
116
122
  "type": {
117
123
  "text": "'horizontal' | 'diagonal'"
118
124
  },
119
- "description": "Sets the layout direction for the group.",
125
+ "description": "Sets how the two tails sit together. Use `horizontal` (the default) for tails that overlap side by side, or `diagonal` for tails at opposite corners. Borders show only in the `horizontal` layout.",
120
126
  "default": "'horizontal'",
121
127
  "fieldName": "layout"
122
128
  },
@@ -125,7 +131,7 @@
125
131
  "type": {
126
132
  "text": "'xs' | 'sm' | 'md' | 'lg'"
127
133
  },
128
- "description": "Sets the size for all child tails in the group.",
134
+ "description": "Sets the size of every `auro-tail` in the group, from `xs` to `lg`. The group's size replaces any `size` set on the tails, and the group shows nothing at other sizes.",
129
135
  "default": "'lg'",
130
136
  "fieldName": "size"
131
137
  }
@@ -136,6 +142,7 @@
136
142
  },
137
143
  "tagName": "auro-tail-group",
138
144
  "customElement": true,
145
+ "summary": "A pair of airline tails in a horizontal or diagonal layout.",
139
146
  "modulePath": "src/auro-tail-group.js"
140
147
  }
141
148
  ],
@@ -156,8 +163,30 @@
156
163
  "declarations": [
157
164
  {
158
165
  "kind": "class",
159
- "description": "The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.",
166
+ "description": "Displays an Alaska, Hawaiian, or partner airline tail graphic, so every airline looks the same across Alaska applications.\n\n**Key capabilities**\n- **Airline tails**: Set `tail` to a tail code such as `AS`, `HA`, or `PR` to choose the airline.\n- **Sizes**: Set `size` from `xs` to `2xl` to fit the layout.\n- **Badges**: Set `badge=\"oneworld\"` to add the OneWorld Alliance badge at `md` and larger sizes.\n- **Links**: Set `href` to make the tail and its label a link at `md` and larger sizes.\n- **Outline**: Set `variant=\"outline\"` to outline partner airline tails.\n- **Borders**: Set `--ds-auro-tail-border-width` and `--ds-auro-tail-border-color` to add a border ring.\n\n**Example**\n```html\n<auro-tail tail=\"AS\"></auro-tail>\n```",
160
167
  "name": "AuroTail",
168
+ "cssProperties": [
169
+ {
170
+ "description": "Width of the border ring around the tail. Groups in `horizontal` layout set it themselves, and `diagonal` groups remove it.",
171
+ "name": "--ds-auro-tail-border-width"
172
+ },
173
+ {
174
+ "description": "Color of the border ring around the tail. Set it on an `auro-tail-group` to color the borders of both tails in `horizontal` layout.",
175
+ "name": "--ds-auro-tail-border-color"
176
+ }
177
+ ],
178
+ "cssParts": [
179
+ {
180
+ "description": "The circular element that holds the tail graphic.",
181
+ "name": "container"
182
+ }
183
+ ],
184
+ "slots": [
185
+ {
186
+ "description": "Text label shown below the tail when `href` is set. Defaults to \"Airline\". Shows only at sizes `md` through `2xl`, and never inside an `auro-tail-group`.",
187
+ "name": ""
188
+ }
189
+ ],
161
190
  "members": [
162
191
  {
163
192
  "kind": "field",
@@ -165,7 +194,7 @@
165
194
  "type": {
166
195
  "text": "string"
167
196
  },
168
- "description": "Determines the carrier type based on tail code. Valid values: `aag`, `oa`\nUsed internally for styling.",
197
+ "description": "Determines the carrier type based on tail code. Valid values: `aag`, `oa`.\nUsed internally for styling.",
169
198
  "privacy": "private",
170
199
  "default": "'oa'"
171
200
  },
@@ -192,13 +221,14 @@
192
221
  "type": {
193
222
  "text": "string"
194
223
  },
195
- "description": "Sets the badge type to display (e.g., `oneworld`).",
196
- "attribute": "badge"
224
+ "description": "Sets the badge to show on the tail, such as `oneworld` for the OneWorld Alliance badge. Shows only at sizes `md` through `2xl`, and never inside an `auro-tail-group`.",
225
+ "attribute": "badge",
226
+ "relevantWhen": "size !== \"xs' && size !== 'sm\""
197
227
  },
198
228
  {
199
229
  "kind": "field",
200
230
  "name": "badgeConfig",
201
- "description": "Returns badge config when eligible.",
231
+ "description": "Gets the badge config when the tail can show a badge.",
202
232
  "privacy": "private",
203
233
  "return": {
204
234
  "type": {
@@ -210,7 +240,7 @@
210
240
  {
211
241
  "kind": "field",
212
242
  "name": "carrierType",
213
- "description": "Gets the carrier type based on the current tail code. Returns `aag` or `oa`",
243
+ "description": "Gets the carrier type based on the current tail code. Returns `aag` or `oa`.",
214
244
  "privacy": "private",
215
245
  "return": {
216
246
  "type": {
@@ -226,8 +256,9 @@
226
256
  "type": {
227
257
  "text": "string"
228
258
  },
229
- "description": "Sets the href for the tail.",
230
- "attribute": "href"
259
+ "description": "Sets the URL the tail and its label link to, such as `https://www.alaskaair.com/` (the link's `href`). Applies only at sizes `md` through `2xl`, and never inside an `auro-tail-group`.",
260
+ "attribute": "href",
261
+ "relevantWhen": "size !== \"xs' && size !== 'sm\""
231
262
  },
232
263
  {
233
264
  "kind": "field",
@@ -253,7 +284,7 @@
253
284
  {
254
285
  "kind": "field",
255
286
  "name": "isInDiagonalGroup",
256
- "description": "Checks if this tail is in a diagonal group layout.",
287
+ "description": "Checks whether this tail is in a diagonal group layout.",
257
288
  "privacy": "private",
258
289
  "return": {
259
290
  "type": {
@@ -265,7 +296,7 @@
265
296
  {
266
297
  "kind": "field",
267
298
  "name": "isInGroup",
268
- "description": "Checks if this tail is inside an auro-tail-group element.",
299
+ "description": "Checks whether this tail is inside an `auro-tail-group` element.",
269
300
  "privacy": "private",
270
301
  "return": {
271
302
  "type": {
@@ -277,7 +308,7 @@
277
308
  {
278
309
  "kind": "field",
279
310
  "name": "isInHorizontalGroup",
280
- "description": "Checks if this tail is in a horizontal group layout.",
311
+ "description": "Checks whether this tail is in a horizontal group layout.",
281
312
  "privacy": "private",
282
313
  "return": {
283
314
  "type": {
@@ -289,7 +320,7 @@
289
320
  {
290
321
  "kind": "field",
291
322
  "name": "labelTypeClass",
292
- "description": "Gets the appropriate CSS type class based on tail size.",
323
+ "description": "Gets the CSS type class that matches the tail size.",
293
324
  "privacy": "private",
294
325
  "return": {
295
326
  "type": {
@@ -306,14 +337,14 @@
306
337
  {
307
338
  "name": "name",
308
339
  "default": "\"auro-tail\"",
309
- "description": "The name of the element that you want to register.",
340
+ "description": "The tag name to register the element under.",
310
341
  "optional": true,
311
342
  "type": {
312
343
  "text": "string"
313
344
  }
314
345
  }
315
346
  ],
316
- "description": "This will register this element with the browser.",
347
+ "description": "Registers the element with the browser under a tag name.",
317
348
  "type": {
318
349
  "text": "register(name?: string = \"auro-tail\") => void"
319
350
  }
@@ -327,7 +358,7 @@
327
358
  {
328
359
  "kind": "field",
329
360
  "name": "shouldShowLink",
330
- "description": "Checks if the tail should display as a clickable link.",
361
+ "description": "Checks whether the tail should display as a clickable link.",
331
362
  "privacy": "private",
332
363
  "return": {
333
364
  "type": {
@@ -343,7 +374,7 @@
343
374
  "type": {
344
375
  "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
345
376
  },
346
- "description": "Sets the size of the tail.",
377
+ "description": "Sets the tail's size, from `xs` for the smallest to `2xl` for the largest. Use `md` or larger to show an `href` link or a `badge`. Inside an `auro-tail-group`, the group's `size` replaces this value.",
347
378
  "default": "'lg'",
348
379
  "attribute": "size",
349
380
  "reflects": true
@@ -355,7 +386,7 @@
355
386
  "type": {
356
387
  "text": "string"
357
388
  },
358
- "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
389
+ "description": "Sets the airline whose tail shows, using a tail code from `auro-icon` such as `AS`, `HA`, or `PR`. Shows a default tail when the code is missing or not recognized. Codes aren't case sensitive.",
359
390
  "attribute": "tail"
360
391
  },
361
392
  {
@@ -365,7 +396,7 @@
365
396
  "type": {
366
397
  "text": "'outline'"
367
398
  },
368
- "description": "Sets the visual variant of the tail.",
399
+ "description": "Sets the tail's visual style. Use `outline` to outline partner airline tails. Alaska and Hawaiian tails (`AS` and `HA`) never show an outline.",
369
400
  "attribute": "variant",
370
401
  "reflects": true
371
402
  }
@@ -376,23 +407,25 @@
376
407
  "type": {
377
408
  "text": "string"
378
409
  },
379
- "description": "Sets the badge type to display (e.g., `oneworld`).",
380
- "fieldName": "badge"
410
+ "description": "Sets the badge to show on the tail, such as `oneworld` for the OneWorld Alliance badge. Shows only at sizes `md` through `2xl`, and never inside an `auro-tail-group`.",
411
+ "fieldName": "badge",
412
+ "relevantWhen": "size !== \"xs' && size !== 'sm\""
381
413
  },
382
414
  {
383
415
  "name": "href",
384
416
  "type": {
385
417
  "text": "string"
386
418
  },
387
- "description": "Sets the href for the tail.",
388
- "fieldName": "href"
419
+ "description": "Sets the URL the tail and its label link to, such as `https://www.alaskaair.com/` (the link's `href`). Applies only at sizes `md` through `2xl`, and never inside an `auro-tail-group`.",
420
+ "fieldName": "href",
421
+ "relevantWhen": "size !== \"xs' && size !== 'sm\""
389
422
  },
390
423
  {
391
424
  "name": "size",
392
425
  "type": {
393
426
  "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
394
427
  },
395
- "description": "Sets the size of the tail.",
428
+ "description": "Sets the tail's size, from `xs` for the smallest to `2xl` for the largest. Use `md` or larger to show an `href` link or a `badge`. Inside an `auro-tail-group`, the group's `size` replaces this value.",
396
429
  "default": "'lg'",
397
430
  "fieldName": "size"
398
431
  },
@@ -401,7 +434,7 @@
401
434
  "type": {
402
435
  "text": "string"
403
436
  },
404
- "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
437
+ "description": "Sets the airline whose tail shows, using a tail code from `auro-icon` such as `AS`, `HA`, or `PR`. Shows a default tail when the code is missing or not recognized. Codes aren't case sensitive.",
405
438
  "fieldName": "tail"
406
439
  },
407
440
  {
@@ -409,7 +442,7 @@
409
442
  "type": {
410
443
  "text": "'outline'"
411
444
  },
412
- "description": "Sets the visual variant of the tail.",
445
+ "description": "Sets the tail's visual style. Use `outline` to outline partner airline tails. Alaska and Hawaiian tails (`AS` and `HA`) never show an outline.",
413
446
  "fieldName": "variant"
414
447
  }
415
448
  ],
@@ -419,6 +452,7 @@
419
452
  },
420
453
  "tagName": "auro-tail",
421
454
  "customElement": true,
455
+ "summary": "An airline tail graphic with sizes, links, badges, and grouped layouts for Alaska, Hawaiian, and partner carriers.",
422
456
  "modulePath": "src/auro-tail.js"
423
457
  }
424
458
  ],
@@ -606,7 +640,7 @@
606
640
  "parameters": [
607
641
  {
608
642
  "name": "template",
609
- "description": "The template string with placeholders",
643
+ "description": "The template string with placeholders.",
610
644
  "type": {
611
645
  "text": "string"
612
646
  }
@@ -614,13 +648,13 @@
614
648
  {
615
649
  "name": "values",
616
650
  "default": "{}",
617
- "description": "Object with key-value pairs for replacement",
651
+ "description": "The key-value pairs to use for replacement.",
618
652
  "type": {
619
653
  "text": "Record<string, string>"
620
654
  }
621
655
  }
622
656
  ],
623
- "description": "Template for internationalization (i18n).\nReplaces placeholders in the format {key} with provided values.",
657
+ "description": "Replaces `{key}` placeholders in a template string with the provided values, for internationalization (i18n).",
624
658
  "return": {
625
659
  "type": {
626
660
  "text": "string"
@@ -633,13 +667,13 @@
633
667
  "parameters": [
634
668
  {
635
669
  "name": "element",
636
- "description": "The element to check",
670
+ "description": "The element to check.",
637
671
  "type": {
638
672
  "text": "Element"
639
673
  }
640
674
  }
641
675
  ],
642
- "description": "Checks if an element is an AuroTail",
676
+ "description": "Checks whether an element is an `AuroTail`.",
643
677
  "return": {
644
678
  "type": {
645
679
  "text": "boolean"
@@ -652,13 +686,13 @@
652
686
  "parameters": [
653
687
  {
654
688
  "name": "element",
655
- "description": "The element to check",
689
+ "description": "The element to check.",
656
690
  "type": {
657
691
  "text": "HTMLElement"
658
692
  }
659
693
  }
660
694
  ],
661
- "description": "Checks if an element is an AuroTailGroup",
695
+ "description": "Checks whether an element is an `AuroTailGroup`.",
662
696
  "return": {
663
697
  "type": {
664
698
  "text": "boolean"
@@ -693,5 +727,6 @@
693
727
  }
694
728
  ]
695
729
  }
696
- ]
730
+ ],
731
+ "package": "@aurodesignsystem/auro-tail@2.0.1-rc-1687282.1"
697
732
  }