@aurodesignsystem/auro-tail 1.0.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/index.md CHANGED
@@ -1,18 +1,18 @@
1
1
  <!--
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`
2
+ THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
3
+ ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
4
+ ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
5
5
  -->
6
6
 
7
- # Auro Tail
8
-
7
+ # 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 -->
12
+ <!-- AURO-GENERATED-CONTENT:END -->
13
+
14
+ ## Use Cases
13
15
 
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,7 +32,11 @@ 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
- ## Examples
35
+ ## Example(s)
36
+
37
+ ### Overview of Tails
38
+
39
+ This example shows a variety of `auro-tail` usages.
36
40
 
37
41
  <div class="exampleWrapper">
38
42
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/overview.html) -->
@@ -69,47 +73,4 @@ The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline
69
73
  <auro-tail tail="PR" size="xl" variant="outline"></auro-tail>
70
74
  ```
71
75
  <!-- 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 -->
115
76
  </auro-accordion>