@aurodesignsystem/auro-tail 1.0.2 → 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 +2 -3
- package/README.md +43 -55
- package/custom-elements.json +76 -43
- package/demo/api.md +329 -285
- package/demo/api.min.js +888 -1
- package/demo/index.md +33 -35
- package/demo/index.min.js +888 -1
- package/demo/readme.md +136 -0
- package/dist/auro-tail-group-DyuLrj-M.js +210 -0
- package/dist/index.d.ts +263 -80
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +12 -10
- package/demo/auro-tail-group.min.js +0 -834
- package/dist/auro-tail-group-BIAM9x8r.js +0 -188
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
## [
|
|
2
|
-
|
|
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)
|
|
3
2
|
|
|
4
3
|
### Performance Improvements
|
|
5
4
|
|
|
6
|
-
*
|
|
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
|
|
16
|
-
| Additional
|
|
17
|
-
| Component
|
|
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
|
-
|
|
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
|
|
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
|
-
- **
|
|
45
|
-
- **Flexible
|
|
46
|
-
- **Group
|
|
47
|
-
- **Badge
|
|
48
|
-
- **Custom
|
|
49
|
-
- **Clickable
|
|
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
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
58
58
|

|
|
59
59
|
|
|
60
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-tail@latest/+esm"></script></code></pre>
|
|
88
82
|
|
|
89
83
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
90
84
|
|
|
91
|
-
## Basic
|
|
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
|
-
|
|
97
|
-
<auro-tail tail="AS"></auro-tail>
|
|
98
|
-
```
|
|
90
|
+
<pre class="language-html"><code class="language-html"><auro-tail tail="AS"></auro-tail></code></pre>
|
|
99
91
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
100
92
|
|
|
101
|
-
## Custom
|
|
93
|
+
## Custom component registration for version management
|
|
102
94
|
|
|
103
|
-
|
|
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
|
-
|
|
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),
|
|
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
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
</custom-tail-group>
|
|
146
|
-
```
|
|
130
|
+
<pre class="language-html"><code class="language-html"><custom-tail tail="AS" size="2xl"></custom-tail>
|
|
131
|
+
<custom-tail-group size="lg">
|
|
132
|
+
<custom-tail tail="HA"></custom-tail>
|
|
133
|
+
<custom-tail tail="AA"></custom-tail>
|
|
134
|
+
</custom-tail-group></code></pre>
|
|
147
135
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
148
136
|
</auro-accordion>
|
package/custom-elements.json
CHANGED
|
@@ -28,8 +28,14 @@
|
|
|
28
28
|
"declarations": [
|
|
29
29
|
{
|
|
30
30
|
"kind": "class",
|
|
31
|
-
"description": "
|
|
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": "
|
|
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
|
|
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
|
|
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": "
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
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
|
|
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
|
|
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": "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
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
|
|
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
|
|
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,8 +386,7 @@
|
|
|
355
386
|
"type": {
|
|
356
387
|
"text": "string"
|
|
357
388
|
},
|
|
358
|
-
"description": "Sets the airline tail
|
|
359
|
-
"default": "'AS'",
|
|
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.",
|
|
360
390
|
"attribute": "tail"
|
|
361
391
|
},
|
|
362
392
|
{
|
|
@@ -366,7 +396,7 @@
|
|
|
366
396
|
"type": {
|
|
367
397
|
"text": "'outline'"
|
|
368
398
|
},
|
|
369
|
-
"description": "Sets the visual
|
|
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.",
|
|
370
400
|
"attribute": "variant",
|
|
371
401
|
"reflects": true
|
|
372
402
|
}
|
|
@@ -377,23 +407,25 @@
|
|
|
377
407
|
"type": {
|
|
378
408
|
"text": "string"
|
|
379
409
|
},
|
|
380
|
-
"description": "Sets the badge
|
|
381
|
-
"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\""
|
|
382
413
|
},
|
|
383
414
|
{
|
|
384
415
|
"name": "href",
|
|
385
416
|
"type": {
|
|
386
417
|
"text": "string"
|
|
387
418
|
},
|
|
388
|
-
"description": "Sets the
|
|
389
|
-
"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\""
|
|
390
422
|
},
|
|
391
423
|
{
|
|
392
424
|
"name": "size",
|
|
393
425
|
"type": {
|
|
394
426
|
"text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
|
|
395
427
|
},
|
|
396
|
-
"description": "Sets the size
|
|
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.",
|
|
397
429
|
"default": "'lg'",
|
|
398
430
|
"fieldName": "size"
|
|
399
431
|
},
|
|
@@ -402,8 +434,7 @@
|
|
|
402
434
|
"type": {
|
|
403
435
|
"text": "string"
|
|
404
436
|
},
|
|
405
|
-
"description": "Sets the airline tail
|
|
406
|
-
"default": "'AS'",
|
|
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.",
|
|
407
438
|
"fieldName": "tail"
|
|
408
439
|
},
|
|
409
440
|
{
|
|
@@ -411,7 +442,7 @@
|
|
|
411
442
|
"type": {
|
|
412
443
|
"text": "'outline'"
|
|
413
444
|
},
|
|
414
|
-
"description": "Sets the visual
|
|
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.",
|
|
415
446
|
"fieldName": "variant"
|
|
416
447
|
}
|
|
417
448
|
],
|
|
@@ -421,6 +452,7 @@
|
|
|
421
452
|
},
|
|
422
453
|
"tagName": "auro-tail",
|
|
423
454
|
"customElement": true,
|
|
455
|
+
"summary": "An airline tail graphic with sizes, links, badges, and grouped layouts for Alaska, Hawaiian, and partner carriers.",
|
|
424
456
|
"modulePath": "src/auro-tail.js"
|
|
425
457
|
}
|
|
426
458
|
],
|
|
@@ -608,7 +640,7 @@
|
|
|
608
640
|
"parameters": [
|
|
609
641
|
{
|
|
610
642
|
"name": "template",
|
|
611
|
-
"description": "The template string with placeholders",
|
|
643
|
+
"description": "The template string with placeholders.",
|
|
612
644
|
"type": {
|
|
613
645
|
"text": "string"
|
|
614
646
|
}
|
|
@@ -616,13 +648,13 @@
|
|
|
616
648
|
{
|
|
617
649
|
"name": "values",
|
|
618
650
|
"default": "{}",
|
|
619
|
-
"description": "
|
|
651
|
+
"description": "The key-value pairs to use for replacement.",
|
|
620
652
|
"type": {
|
|
621
653
|
"text": "Record<string, string>"
|
|
622
654
|
}
|
|
623
655
|
}
|
|
624
656
|
],
|
|
625
|
-
"description": "
|
|
657
|
+
"description": "Replaces `{key}` placeholders in a template string with the provided values, for internationalization (i18n).",
|
|
626
658
|
"return": {
|
|
627
659
|
"type": {
|
|
628
660
|
"text": "string"
|
|
@@ -635,13 +667,13 @@
|
|
|
635
667
|
"parameters": [
|
|
636
668
|
{
|
|
637
669
|
"name": "element",
|
|
638
|
-
"description": "The element to check",
|
|
670
|
+
"description": "The element to check.",
|
|
639
671
|
"type": {
|
|
640
672
|
"text": "Element"
|
|
641
673
|
}
|
|
642
674
|
}
|
|
643
675
|
],
|
|
644
|
-
"description": "Checks
|
|
676
|
+
"description": "Checks whether an element is an `AuroTail`.",
|
|
645
677
|
"return": {
|
|
646
678
|
"type": {
|
|
647
679
|
"text": "boolean"
|
|
@@ -654,13 +686,13 @@
|
|
|
654
686
|
"parameters": [
|
|
655
687
|
{
|
|
656
688
|
"name": "element",
|
|
657
|
-
"description": "The element to check",
|
|
689
|
+
"description": "The element to check.",
|
|
658
690
|
"type": {
|
|
659
691
|
"text": "HTMLElement"
|
|
660
692
|
}
|
|
661
693
|
}
|
|
662
694
|
],
|
|
663
|
-
"description": "Checks
|
|
695
|
+
"description": "Checks whether an element is an `AuroTailGroup`.",
|
|
664
696
|
"return": {
|
|
665
697
|
"type": {
|
|
666
698
|
"text": "boolean"
|
|
@@ -695,5 +727,6 @@
|
|
|
695
727
|
}
|
|
696
728
|
]
|
|
697
729
|
}
|
|
698
|
-
]
|
|
730
|
+
],
|
|
731
|
+
"package": "@aurodesignsystem/auro-tail@2.0.1-rc-1687282.1"
|
|
699
732
|
}
|