@aurodesignsystem/auro-tail 1.0.0-rc-21.1 → 1.0.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 +1 -23
- package/README.md +0 -10
- package/custom-elements.json +3 -3
- package/demo/api.md +30 -33
- package/demo/auro-tail-group.min.js +13 -13
- package/demo/index.md +52 -13
- package/dist/{auro-tail-group-BIAM9x8r.js → auro-tail-group-BoJt8IFn.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## [1.0.1](https://github.com/AlaskaAirlines/auro-tail/compare/v1.0.0...v1.0.1) (2025-12-05)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* accurately calculate dimensions when borders and overlaps applied ([97ea50a](https://github.com/AlaskaAirlines/auro-tail/commit/97ea50ac457f2ba6e6eeafaadbfbc772d97e9c21))
|
|
7
|
-
* avatar dimensional calculation ([e525098](https://github.com/AlaskaAirlines/auro-tail/commit/e52509835dbd6b6f5973da952778395a6f1eb292))
|
|
8
|
-
* custom register auro-hyperlink ([d6d6695](https://github.com/AlaskaAirlines/auro-tail/commit/d6d66952f711d694019edbdfc0b00269578a0e7a))
|
|
9
|
-
* incoporating pr feedback ([d23addb](https://github.com/AlaskaAirlines/auro-tail/commit/d23addbc4719a9c53ddb000543396caebdb4b682))
|
|
10
|
-
* incorporating pr feedback ([6ea8bb1](https://github.com/AlaskaAirlines/auro-tail/commit/6ea8bb182f57a69825db35d9e98097059614b9e0))
|
|
11
|
-
* remove development styles ([fea4048](https://github.com/AlaskaAirlines/auro-tail/commit/fea40484e2af8cf136b3f44e471670365c5f5063))
|
|
12
|
-
* remove redundant util reference ([11ecfc1](https://github.com/AlaskaAirlines/auro-tail/commit/11ecfc15feeb4ea1fa6de926fdbac2522a96aa6f))
|
|
13
6
|
* update examples based on design feedback ([bb21f3e](https://github.com/AlaskaAirlines/auro-tail/commit/bb21f3e9327281e9952c3e388d42c65acec2139b))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
* add auro-tail component ([4e63ac9](https://github.com/AlaskaAirlines/auro-tail/commit/4e63ac9246457433ad851440794b9d9b957b1b48))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### Performance Improvements
|
|
22
|
-
|
|
23
|
-
* enforce margin to protect against global resets ([bfded54](https://github.com/AlaskaAirlines/auro-tail/commit/bfded54df610ece9a14e09564df641b92b811046))
|
|
24
|
-
* modernize component example documentation [#19](https://github.com/AlaskaAirlines/auro-tail/issues/19) ([835a222](https://github.com/AlaskaAirlines/auro-tail/commit/835a222a98811ce7832771bb8cdbcdef0c6680ff))
|
|
25
|
-
* move tail & group checks to utils ([05e847b](https://github.com/AlaskaAirlines/auro-tail/commit/05e847b9d175ba77effa2ee690752fdf45abd769))
|
|
26
|
-
* remove slot name ([c9ab9d7](https://github.com/AlaskaAirlines/auro-tail/commit/c9ab9d7a3fc70a19e33eb4b360fe46f03e1acf02))
|
|
27
|
-
* updating cli ([722adb5](https://github.com/AlaskaAirlines/auro-tail/commit/722adb57fcd78bad576e314bc638bbac73813374))
|
|
28
|
-
* updating missing files ([9653219](https://github.com/AlaskaAirlines/auro-tail/commit/965321912f220b95c3c414a2c289b72b7c36c0ca))
|
package/README.md
CHANGED
|
@@ -111,16 +111,6 @@ 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.
|
|
124
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
125
115
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
126
116
|
<!-- 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": "",
|
|
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": "",
|
|
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
|
|
309
|
+
"description": "The name of element that you want to register to.",
|
|
310
310
|
"optional": true,
|
|
311
311
|
"type": {
|
|
312
312
|
"text": "string"
|
package/demo/api.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
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
|
|
5
|
-
|
|
6
|
-
The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
4
|
+
# auro-tail
|
|
7
5
|
|
|
8
6
|
### Properties & Attributes
|
|
9
7
|
|
|
@@ -17,13 +15,11 @@ The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline ta
|
|
|
17
15
|
|
|
18
16
|
### Methods
|
|
19
17
|
|
|
20
|
-
| Name | Parameters
|
|
21
|
-
| -------- |
|
|
22
|
-
| register | `name` (string) - The name of
|
|
23
|
-
|
|
24
|
-
# auro-tail-group
|
|
18
|
+
| Name | Parameters | Return | Description |
|
|
19
|
+
| -------- | ------------------------------------------------------------------- | ------ | ------------------------------------------------- |
|
|
20
|
+
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
25
21
|
|
|
26
|
-
|
|
22
|
+
# auro-tail-group
|
|
27
23
|
|
|
28
24
|
### Properties & Attributes
|
|
29
25
|
|
|
@@ -39,32 +35,32 @@ The `auro-tail-group` element displays multiple `auro-tail` elements in a groupe
|
|
|
39
35
|
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
40
36
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
37
|
|
|
38
|
+
## API Examples
|
|
39
|
+
|
|
42
40
|
## Basic
|
|
43
41
|
|
|
44
42
|
<div class="exampleWrapper">
|
|
45
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
46
|
-
<!-- The below content is automatically added from
|
|
43
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/basic.html) -->
|
|
44
|
+
<!-- The below content is automatically added from ../apiExamples/basic.html -->
|
|
47
45
|
<auro-tail tail="AS"></auro-tail>
|
|
48
46
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
49
47
|
</div>
|
|
50
48
|
<auro-accordion alignRight>
|
|
51
|
-
<span slot="trigger">See code</span>
|
|
52
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
53
|
-
<!-- The below code snippet is automatically added from
|
|
49
|
+
<span slot="trigger">See code</span>
|
|
50
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/basic.html) -->
|
|
51
|
+
<!-- The below code snippet is automatically added from ../apiExamples/basic.html -->
|
|
54
52
|
|
|
55
53
|
```html
|
|
56
54
|
<auro-tail tail="AS"></auro-tail>
|
|
57
55
|
```
|
|
58
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
59
57
|
</auro-accordion>
|
|
60
58
|
|
|
61
|
-
##
|
|
62
|
-
|
|
63
|
-
### Badge
|
|
59
|
+
## Badge
|
|
64
60
|
|
|
65
61
|
Display predefined badges such as OneWorld Alliance using the `badge` attribute.
|
|
66
62
|
|
|
67
|
-
|
|
63
|
+
### Supported sizes:
|
|
68
64
|
- `md`, `lg`, `xl`, `2xl`
|
|
69
65
|
|
|
70
66
|
> `badge` prop is not displayed when in an `<auro-tail-group>`.
|
|
@@ -148,7 +144,7 @@ Make tails clickable by adding an `href` attribute. This displays a clickable li
|
|
|
148
144
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
149
145
|
</auro-accordion>
|
|
150
146
|
|
|
151
|
-
|
|
147
|
+
## Size
|
|
152
148
|
|
|
153
149
|
Control the size of `<auro-tail>` with the `size` attribute.
|
|
154
150
|
|
|
@@ -190,7 +186,7 @@ Certain properties are not available for all `<auto-tail>` sizes. See the table
|
|
|
190
186
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
191
187
|
</auro-accordion>
|
|
192
188
|
|
|
193
|
-
|
|
189
|
+
## Tail
|
|
194
190
|
|
|
195
191
|
Set the `tail` attribute to insert a tail graphic from the `<auro-icon>` repository with the corresponding icon code.
|
|
196
192
|
|
|
@@ -219,11 +215,11 @@ The `tail` attribute is required.
|
|
|
219
215
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
220
216
|
</auro-accordion>
|
|
221
217
|
|
|
222
|
-
|
|
218
|
+
## Variant
|
|
223
219
|
|
|
224
220
|
Set the `variant` attribute to change the visual style of the tail.
|
|
225
221
|
|
|
226
|
-
|
|
222
|
+
### Available variants:
|
|
227
223
|
- `outline` - Adds an outline around the tail graphic
|
|
228
224
|
- Outlines apply only to partner (OA) tails
|
|
229
225
|
- AAG tails (`AS` & `HA`) never feature outlines
|
|
@@ -252,9 +248,9 @@ Set the `variant` attribute to change the visual style of the tail.
|
|
|
252
248
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
253
249
|
</auro-accordion>
|
|
254
250
|
|
|
255
|
-
##
|
|
251
|
+
## CSS Customization
|
|
256
252
|
|
|
257
|
-
|
|
253
|
+
## Borders
|
|
258
254
|
|
|
259
255
|
Optional border ring around `<auro-tail>`.
|
|
260
256
|
|
|
@@ -265,7 +261,7 @@ Use CSS custom properties to style borders:
|
|
|
265
261
|
- `--ds-auro-tail-border-color`
|
|
266
262
|
- Set the border color (any valid CSS color value)
|
|
267
263
|
|
|
268
|
-
|
|
264
|
+
### Styling individual tails:
|
|
269
265
|
|
|
270
266
|
Set CSS custom properties directly on the `<auro-tail>` element:
|
|
271
267
|
|
|
@@ -296,7 +292,8 @@ Set CSS custom properties directly on the `<auro-tail>` element:
|
|
|
296
292
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
297
293
|
</auro-accordion>
|
|
298
294
|
|
|
299
|
-
##
|
|
295
|
+
## auro-tail-group
|
|
296
|
+
Use `<auro-tail-group>` to display paired `<auro-tail>` components in a group layout with specific behavioral constraints and visual treatments.
|
|
300
297
|
|
|
301
298
|
### Supported sizes:
|
|
302
299
|
- `xs`, `sm`, `md`, `lg`
|
|
@@ -474,12 +471,12 @@ Border styling availability varies by layout type (see sections below).
|
|
|
474
471
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
475
472
|
</auro-accordion>
|
|
476
473
|
|
|
477
|
-
|
|
474
|
+
### Theme Support
|
|
478
475
|
|
|
479
|
-
The component may be restyled
|
|
476
|
+
The component may be restyled using the following code sample and changing the values of the following token(s).
|
|
480
477
|
|
|
481
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
482
|
-
<!-- The below code snippet is automatically added from
|
|
478
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../src/styles/tokens.scss) -->
|
|
479
|
+
<!-- The below code snippet is automatically added from ../src/styles/tokens.scss -->
|
|
483
480
|
|
|
484
481
|
```scss
|
|
485
482
|
/* Public API Tokens - Consumer Customizable */
|
|
@@ -427,8 +427,8 @@ var styleCss = i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1r
|
|
|
427
427
|
*/
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
|
-
* The `auro-tail` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
431
430
|
* @customElement auro-tail
|
|
431
|
+
* The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
432
432
|
*/
|
|
433
433
|
class AuroTail extends i$1 {
|
|
434
434
|
/**
|
|
@@ -446,14 +446,15 @@ class AuroTail extends i$1 {
|
|
|
446
446
|
static get properties() {
|
|
447
447
|
return {
|
|
448
448
|
/**
|
|
449
|
-
* Sets the
|
|
449
|
+
* Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).
|
|
450
|
+
* @default 'AS'
|
|
450
451
|
*/
|
|
451
|
-
|
|
452
|
+
tail: { type: String },
|
|
452
453
|
|
|
453
454
|
/**
|
|
454
|
-
* Sets the
|
|
455
|
+
* Sets the badge type to display (e.g., `oneworld`).
|
|
455
456
|
*/
|
|
456
|
-
|
|
457
|
+
badge: { type: String },
|
|
457
458
|
|
|
458
459
|
/**
|
|
459
460
|
* Sets the size of the tail.
|
|
@@ -463,22 +464,21 @@ class AuroTail extends i$1 {
|
|
|
463
464
|
size: { type: String, reflect: true },
|
|
464
465
|
|
|
465
466
|
/**
|
|
466
|
-
* Sets the
|
|
467
|
-
* @
|
|
467
|
+
* Sets the visual variant of the tail.
|
|
468
|
+
* @type {'outline'}
|
|
468
469
|
*/
|
|
469
|
-
|
|
470
|
+
variant: { type: String, reflect: true },
|
|
470
471
|
|
|
471
472
|
/**
|
|
472
|
-
* Sets the
|
|
473
|
-
* @type {'outline'}
|
|
473
|
+
* Sets the href for the tail.
|
|
474
474
|
*/
|
|
475
|
-
|
|
475
|
+
href: { type: String, attribute: 'href' }
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* This will register this element with the browser.
|
|
481
|
-
* @param {string} [name="auro-tail"] - The name of
|
|
481
|
+
* @param {string} [name="auro-tail"] - The name of element that you want to register to.
|
|
482
482
|
*
|
|
483
483
|
* @example
|
|
484
484
|
* AuroTail.register("custom-tail") // this will register this element to <custom-tail/>
|
|
@@ -706,8 +706,8 @@ var groupStyleCss = i$3`:host{--ds-auro-tail-border-color: var(--ds-auro-tail-bo
|
|
|
706
706
|
*/
|
|
707
707
|
|
|
708
708
|
/**
|
|
709
|
-
* The `auro-tail-group` element displays multiple `auro-tail` elements in a grouped layout.
|
|
710
709
|
* @customElement auro-tail-group
|
|
710
|
+
* The `<auro-tail-group>` element displays multiple `<auro-tail>` elements in a grouped layout.
|
|
711
711
|
*/
|
|
712
712
|
class AuroTailGroup extends i$1 {
|
|
713
713
|
/**
|
package/demo/index.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
The index.md file is a compiled document. No edits should be made directly to this file.
|
|
3
|
+
README.md is created by running `npm run build:docs`.
|
|
4
|
+
This file is generated based on a template fetched from `./docs/partials/index.md`
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
|
-
# Tail
|
|
8
|
-
|
|
7
|
+
# Auro Tail
|
|
8
|
+
|
|
9
9
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
|
|
10
10
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
11
11
|
The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
12
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
13
|
-
|
|
14
|
-
## Use Cases
|
|
12
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
15
13
|
|
|
14
|
+
## Use cases
|
|
15
|
+
|
|
16
16
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
|
|
17
17
|
<!-- The below content is automatically added from ./../docs/partials/useCases.md -->
|
|
18
18
|
`<auro-tail>` can be used to:
|
|
@@ -32,11 +32,7 @@ The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline
|
|
|
32
32
|
- **Clickable Links**: Make tails clickable with `<auro-hyperlink>`
|
|
33
33
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
34
34
|
|
|
35
|
-
##
|
|
36
|
-
|
|
37
|
-
### Overview of Tails
|
|
38
|
-
|
|
39
|
-
This example shows a variety of `auro-tail` usages.
|
|
35
|
+
## Examples
|
|
40
36
|
|
|
41
37
|
<div class="exampleWrapper">
|
|
42
38
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/overview.html) -->
|
|
@@ -73,4 +69,47 @@ This example shows a variety of `auro-tail` usages.
|
|
|
73
69
|
<auro-tail tail="PR" size="xl" variant="outline"></auro-tail>
|
|
74
70
|
```
|
|
75
71
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
|
+
</auro-accordion>
|
|
73
|
+
|
|
74
|
+
### Recommended Use and Version Control
|
|
75
|
+
|
|
76
|
+
There are two important parts of every Auro component. The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element. The class is exported and then used as part of defining the Web Component. When importing this component as described in the <a href="#install">install</a> section, the class is imported and the `auro-tail` custom element is defined automatically.
|
|
77
|
+
|
|
78
|
+
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `AuroTail.register(name)` method and pass in a unique name.
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
import { AuroTail, AuroTailGroup } from '@aurodesignsystem/auro-tail/class';
|
|
82
|
+
|
|
83
|
+
AuroTail.register();
|
|
84
|
+
AuroTailGroup.register();
|
|
85
|
+
|
|
86
|
+
AuroTail.register("custom-tail");
|
|
87
|
+
AuroTailGroup.register("custom-tail-group");
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
This will create a new custom element that you can use in your HTML that will function identically to the `<auro-tail>` element.
|
|
91
|
+
|
|
92
|
+
<div class="exampleWrapper">
|
|
93
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom.html) -->
|
|
94
|
+
<!-- The below content is automatically added from ./../apiExamples/custom.html -->
|
|
95
|
+
<custom-tail tail="AS" size="2xl"></custom-tail>
|
|
96
|
+
<custom-tail-group size="lg">
|
|
97
|
+
<custom-tail tail="HA"></custom-tail>
|
|
98
|
+
<custom-tail tail="AA"></custom-tail>
|
|
99
|
+
</custom-tail-group>
|
|
100
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
|
+
</div>
|
|
102
|
+
<auro-accordion alignRight>
|
|
103
|
+
<span slot="trigger">See code</span>
|
|
104
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom.html) -->
|
|
105
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/custom.html -->
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<custom-tail tail="AS" size="2xl"></custom-tail>
|
|
109
|
+
<custom-tail-group size="lg">
|
|
110
|
+
<custom-tail tail="HA"></custom-tail>
|
|
111
|
+
<custom-tail tail="AA"></custom-tail>
|
|
112
|
+
</custom-tail-group>
|
|
113
|
+
```
|
|
114
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
76
115
|
</auro-accordion>
|
|
@@ -159,7 +159,7 @@ import{unsafeStatic as e,literal as t,html as a}from"lit/static-html.js";import{
|
|
|
159
159
|
</defs>
|
|
160
160
|
</svg>
|
|
161
161
|
`,alt:"OneWorld Alliance"}},ze=["md","lg","xl","2xl"],ke=["md","lg","xl","2xl"],Ae=["xs","sm","md","lg"],Se="Tail livery",Be="Tail livery, {badgeAlt} member";function Ce(e){return!0===e.constructor?.isAuroTail}function He(e){return!0===e.constructor?.isAuroTailGroup}var De=r`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{--ds-auro-tail-border-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-border-width: var(--ds-auro-tail-border-w-default)}:host{display:inline-block;width:var(--ds-auro-tail-container-w);height:var(--ds-auro-tail-container-w);min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w);--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-border-color-default: rgba(88, 94, 103, 1);--ds-auro-tail-border-color-white: #ffffff;--ds-auro-tail-border-w-default: 0;--ds-auro-tail-border-display: none;--ds-auro-tail-border-padding: 0;--ds-auro-tail-border-radius-full: 999px;--ds-auro-tail-tail-outline-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-tail-outline-w: 1px;--ds-auro-tail-tail-drop-shadow: drop-shadow(0 3px 3px rgba(0,0,0,.24)) drop-shadow(0 6px 14px rgba(0,0,0,.24));--ds-auro-tail-z-index-border: 1;--ds-auro-tail-z-index-badge: 2;--ds-auro-tail-z-index-group-back: 1;--ds-auro-tail-z-index-group-front: 2;--ds-auro-tail-badge-offset-x: 0;--ds-auro-tail-badge-offset-y: 0;--ds-auro-tail-container-w-xs: 24px;--ds-auro-tail-tail-w-xs: 19px;--ds-auro-tail-tail-offset-y-xs: 3px;--ds-auro-tail-container-w-sm: 32px;--ds-auro-tail-tail-w-sm: 26px;--ds-auro-tail-tail-offset-y-sm: 4px;--ds-auro-tail-container-w-md: 48px;--ds-auro-tail-tail-w-md: 39px;--ds-auro-tail-tail-offset-y-md: 6px;--ds-auro-tail-href-label-gap-md: 2px;--ds-auro-tail-badge-w-md: 11px;--ds-auro-tail-badge-offset-x-md: 2px;--ds-auro-tail-badge-offset-y-md: -7px;--ds-auro-tail-container-w-lg: 60px;--ds-auro-tail-tail-w-lg: 48px;--ds-auro-tail-tail-offset-y-lg: 7px;--ds-auro-tail-href-label-gap-lg: 4px;--ds-auro-tail-badge-w-lg: 14px;--ds-auro-tail-badge-offset-x-lg: 2px;--ds-auro-tail-badge-offset-y-lg: -4px;--ds-auro-tail-container-w-xl: 96px;--ds-auro-tail-tail-w-xl: 77px;--ds-auro-tail-tail-offset-y-xl: 13px;--ds-auro-tail-href-label-gap-xl: 6px;--ds-auro-tail-badge-w-xl: 22px;--ds-auro-tail-container-w-2xl: 134px;--ds-auro-tail-tail-w-2xl: 107px;--ds-auro-tail-tail-offset-y-2xl: 17px;--ds-auro-tail-href-label-gap-2xl: 8px;--ds-auro-tail-badge-w-2xl: 31px;--ds-auro-tail-group-diag-w-xs: 42px;--ds-auro-tail-group-horiz-border-w-xs: 3px;--ds-auro-tail-group-horiz-overlap-xs: -2px;--ds-auro-tail-group-diag-w-sm: 56px;--ds-auro-tail-group-horiz-border-w-sm: 3px;--ds-auro-tail-group-horiz-overlap-sm: -2px;--ds-auro-tail-group-diag-w-md: 84px;--ds-auro-tail-group-horiz-border-w-md: 4px;--ds-auro-tail-group-horiz-overlap-md: -6px;--ds-auro-tail-group-diag-w-lg: 105px;--ds-auro-tail-group-horiz-border-w-lg: 4px;--ds-auro-tail-group-horiz-overlap-lg: -10px;--ds-auro-tail-gradient-as: linear-gradient(180deg, #6899C6 0%, #CFE0EF 100%);--ds-auro-tail-gradient-ha: linear-gradient(181deg, #CCB7ED -6.38%, #F9C2E7 99.46%);--ds-auro-tail-gradient-oa: linear-gradient(181deg, #C5D0D9 -6.38%, #E8F1F8 99.46%)}:host([size=xs]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xs);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xs);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xs)}:host([size=sm]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-sm);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-sm);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-sm)}:host([size=md]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-md);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-md);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-md);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-md);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-md, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-md, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-md)}:host([size=lg]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-lg, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-lg, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg)}:host([size=xl]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-xl)}:host([size="2xl"]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-2xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-2xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-2xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-2xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-2xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-2xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-2xl)}:host([tail=as i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-as)}:host([tail=ha i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-ha)}:host([tail=oa i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa)}.tail{display:flex;flex-direction:column;align-items:center;vertical-align:middle;min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w)}.tail>.tail-hyperlink{display:flex;flex-direction:column;align-items:center;text-decoration:none;min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w)}.tail>.tail-hyperlink .label{display:block;margin-top:var(--ds-auro-tail-href-label-gap);text-align:center;min-width:var(--ds-auro-tail-container-w);white-space:nowrap;overflow:visible;text-overflow:clip}.border{position:relative;width:var(--ds-auro-tail-container-w);height:var(--ds-auro-tail-container-w);border-radius:var(--ds-auro-tail-border-radius-full);display:grid;place-items:center;margin:0 auto;box-sizing:content-box;border:var(--ds-auro-tail-border-width, 0) solid var(--ds-auro-tail-border-color, var(--ds-auro-tail-border-color-default))}:host{width:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));height:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));min-width:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));min-height:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px))}.container{position:relative;width:100%;height:100%;border-radius:var(--ds-auro-tail-border-radius-full);background:var(--ds-auro-tail-container-gradient);display:grid;place-items:center;overflow:hidden}.container [auro-icon]{--ds-auro-icon-size: var(--ds-auro-tail-tail-w);position:absolute;top:50%;left:50%;transform:translate(-50%,calc(-50% + var(--ds-auro-tail-tail-offset-y))) scale(1.26);transform-origin:center;pointer-events:none}.badge{position:absolute;right:0;bottom:0;transform:translate(var(--ds-auro-tail-badge-offset-x),var(--ds-auro-tail-badge-offset-y));width:var(--ds-auro-tail-badge-w);height:var(--ds-auro-tail-badge-w);object-fit:contain;border-radius:var(--ds-auro-tail-border-radius-full);z-index:var(--ds-auro-tail-z-index-badge)}:host([data-carrier-type=aag]) [auro-icon]{filter:var(--ds-auro-tail-tail-drop-shadow)}:host([data-carrier-type=oa][variant=outline]) [auro-icon]{margin-left:calc(-1 * var(--ds-auro-tail-tail-outline-w) * 2);margin-top:calc(var(--ds-auro-tail-tail-outline-w) * 2);filter:drop-shadow(var(--ds-auro-tail-tail-outline-w) 0 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(calc(-1 * var(--ds-auro-tail-tail-outline-w)) 0 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(0 var(--ds-auro-tail-tail-outline-w) 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(0 calc(-1 * var(--ds-auro-tail-tail-outline-w)) 0 var(--ds-auro-tail-tail-outline-color))}:host([href]){width:max-content;height:max-content;min-height:max-content;vertical-align:bottom}
|
|
162
|
-
`;class Le extends o{static isAuroTail=!0;static get styles(){return[De]}static get properties(){return{
|
|
162
|
+
`;class Le extends o{static isAuroTail=!0;static get styles(){return[De]}static get properties(){return{tail:{type:String},badge:{type:String},size:{type:String,reflect:!0},variant:{type:String,reflect:!0},href:{type:String,attribute:"href"}}}static register(e="auro-tail"){u.prototype.registerComponent(e,Le)}#e(){this.tail="AS",this.size="lg"}constructor(){super(),this.#e(),this._carrierType="oa";const e=new h;this.iconTag=e.generateTag("auro-icon","9.1.1",ye),this.hyperlinkTag=e.generateTag("auro-hyperlink","7.1.0",ue),this.runtimeUtils=new u}get carrierType(){const e={aag:["as","ha"],oa:["oa"]},t=this.tail.toLowerCase();for(const[a,r]of Object.entries(e))if(r.includes(t))return a;return"oa"}_findParentGroup(){let e=this.parentElement;for(;e;){if(He(e))return e;e=e.parentElement}return null}get isInGroup(){return!!this._findParentGroup()}get isInHorizontalGroup(){const e=this._findParentGroup();return!!e&&"horizontal"===e.getAttribute("layout")}get isInDiagonalGroup(){const e=this._findParentGroup();return!!e&&"diagonal"===e.getAttribute("layout")}get badgeConfig(){return this.badge&&!this.isInGroup&&ke.includes(this.size)?we[this.badge]:void 0}get shouldShowLink(){return!!this.href&&!this.isInGroup&&ze.includes(this.size)}get labelTypeClass(){return{md:"body-xs",lg:"body-sm",xl:"body-default","2xl":"body-lg"}[this.size]||"body-sm"}connectedCallback(){super.connectedCallback()}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-tail")}updated(e){e.has("tail")&&(this._carrierType=this.carrierType,this.dataset.carrierType=this.carrierType),super.updated(e)}render(){const e=this.badgeConfig,t=e?function(e,t={}){return e.replace(/\{(\w+)\}/g,(e,a)=>a in t?t[a]:e)}(Be,{badgeAlt:e.alt}):Se,r=a`
|
|
163
163
|
<div class="border">
|
|
164
164
|
<div class="container" part="container" role="img" aria-label=${t}>
|
|
165
165
|
<${this.iconTag} category="logos" name="tail-${this.tail.toUpperCase()}"></${this.iconTag}>
|
package/dist/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export type AuroTailProps = {
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
*
|
|
115
115
|
* ## Attributes & Properties
|
|
116
116
|
*
|
|
@@ -129,7 +129,7 @@ export type AuroTailProps = {
|
|
|
129
129
|
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
*
|
|
133
133
|
*
|
|
134
134
|
* ## Attributes & Properties
|
|
135
135
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AuroTail,a as AuroTailGroup}from"./auro-tail-group-
|
|
1
|
+
export{A as AuroTail,a as AuroTailGroup}from"./auro-tail-group-BoJt8IFn.js";import"lit/static-html.js";import"lit";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"lit/directives/ref.js";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as i,a as t}from"./auro-tail-group-
|
|
1
|
+
import{A as i,a as t}from"./auro-tail-group-BoJt8IFn.js";import"lit/static-html.js";import"lit";import"lit/directives/if-defined.js";import"lit/directives/class-map.js";import"lit/directives/ref.js";i.register(),t.register();
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem/auro-tail",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.1",
|
|
11
11
|
"description": "auro-tail HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"lit": "^3.3.
|
|
24
|
+
"lit": "^3.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@aurodesignsystem/auro-cli": "^3.
|
|
27
|
+
"@aurodesignsystem/auro-cli": "^3.4.1",
|
|
28
28
|
"@aurodesignsystem/auro-config": "^1.3.1",
|
|
29
29
|
"@aurodesignsystem/auro-hyperlink": "^8.0.0",
|
|
30
30
|
"@aurodesignsystem/auro-icon": "^9.1.1",
|