@aurodesignsystem-dev/auro-skeleton 0.0.0-pr106.0 → 0.0.0-pr107.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/README.md CHANGED
@@ -12,31 +12,31 @@ 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
  # Skeleton
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-skeleton>` custom element is for use when display content takes an extended amount of time to process and render on-screen. This indicator communicates to the user that data is being loaded and that the page is not frozen.
24
+ Use `<auro-skeleton>` as a placeholder for content that takes a while to load and display. It shows people that data is loading and the page isn't frozen.
25
25
 
26
- [Research](https://www.nngroup.com/articles/progress-indicators/) conducted by the Nielsen Norman Group states that using skeleton states and [loading indicators](https://auro.alaskaair.com/components/auro/loader) improve user satisfaction.
26
+ [Research by the Nielsen Norman Group](https://www.nngroup.com/articles/progress-indicators/) shows that skeleton states and [loading indicators](https://auro.alaskaair.com/components/auro/loader) improve user satisfaction.
27
27
 
28
- The `<auro-skeleton>` element uses animation to convey that the page is still loading in order to reduce user uncertainty.
28
+ Its shimmer animation shows that the page is still loading, which reduces uncertainty.
29
29
  <!-- AURO-GENERATED-CONTENT:END -->
30
30
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
31
31
  <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
32
32
  <!-- 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. -->
33
33
  <!-- AURO-GENERATED-CONTENT:END -->
34
34
 
35
- ## Use Cases
35
+ ## Use cases
36
36
 
37
37
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
38
38
  <!-- The below content is automatically added from ./docs/partials/useCases.md -->
39
- The `<auro-skeleton>` element can be used on container-based components like `<auro-card>` and other structured lists to indicate loading states.
39
+ Use `<auro-skeleton>` to show loading content inside containers, such as `<auro-card>`, and inside structured lists.
40
40
  <!-- AURO-GENERATED-CONTENT:END -->
41
41
 
42
42
  ## Install
@@ -47,88 +47,75 @@ The `<auro-skeleton>` element can be used on container-based components like `<a
47
47
  [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-skeleton?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
48
48
  ![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge)
49
49
 
50
- ```shell
51
- $ npm i @aurodesignsystem/auro-skeleton
52
- ```
50
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-skeleton</code></pre>
53
51
 
54
52
  <!-- AURO-GENERATED-CONTENT:END -->
55
53
 
56
- ### Define Dependency in Project
54
+ ### Define dependency in project
57
55
 
58
56
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
59
- Defining the dependency within each project that is using the `<auro-skeleton>` component.
57
+ Import the component in each project that uses `<auro-skeleton>`.
60
58
 
61
59
  <!-- AURO-GENERATED-CONTENT:END -->
62
60
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
63
61
 
64
- ```js
65
- import "@aurodesignsystem/auro-skeleton";
66
- ```
62
+ <pre class="language-js"><code class="language-js">import "@aurodesignsystem/auro-skeleton";</code></pre>
67
63
 
68
64
  <!-- AURO-GENERATED-CONTENT:END -->
69
65
 
70
66
  ### Use CDN
71
67
 
72
68
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
73
- 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.
69
+ If your project can't process JS assets, use the pre-processed assets. Legacy browsers, such as IE11, aren't supported.
74
70
 
75
- ```html
76
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@latest/+esm"></script>
77
- ```
71
+ <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@latest/+esm"&gt;&lt;/script&gt;</code></pre>
78
72
 
79
73
  <!-- AURO-GENERATED-CONTENT:END -->
80
74
 
81
- ## Basic Example
75
+ ## Basic example
82
76
 
83
77
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
84
78
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
85
79
 
86
- ```html
87
- <auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
88
- ```
80
+ <pre class="language-html"><code class="language-html">&lt;auro-skeleton style="width: 400px; height: 300px"&gt;&lt;/auro-skeleton&gt;</code></pre>
89
81
  <!-- AURO-GENERATED-CONTENT:END -->
90
82
 
91
- ## Custom Component Registration for Version Management
83
+ ## Custom component registration for version management
92
84
 
93
- 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.
85
+ 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.
94
86
  The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
95
87
 
96
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
88
+ Installing the component as described in the Install section imports the class and registers the component globally for you.
97
89
 
98
- 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.
90
+ 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.
99
91
 
100
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
92
+ To do this, import only the component class and call the `register(name)` method with a unique name:
101
93
 
102
94
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
103
95
  <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
104
96
 
105
- ```js
106
- // Import the class only
97
+ <pre class="language-js"><code class="language-js">// Import the class only
107
98
  import { AuroSkeleton } from '@aurodesignsystem/auro-skeleton/class';
99
+ &#10;// Register with a custom name if desired
100
+ AuroSkeleton.register('custom-skeleton');</code></pre>
108
101
 
109
- // Register with a custom name if desired
110
- AuroSkeleton.register('custom-skeleton');
111
- ```
112
-
113
- This will create a new custom element `<custom-skeleton>` that behaves exactly like `<auro-skeleton>`, allowing both to coexist on the same page without interfering with each other.
102
+ This creates a new custom element, `<custom-skeleton>`, that works exactly like `<auro-skeleton>`, so both can be on the same page without interfering with each other.
114
103
  <!-- AURO-GENERATED-CONTENT:END -->
115
104
  <div class="exampleWrapper exampleWrapper--flex">
116
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
117
- <!-- The below content is automatically added from ./apiExamples/custom.html -->
118
- <custom-skeleton shape="circle" style="width: 40px; height: 40px"></custom-skeleton>
119
- <custom-skeleton shape="oval" style="width: 200px; height: 100px;"></custom-skeleton>
120
- <custom-skeleton shape="rectangle" style="width: 400px; height: 300px"></custom-skeleton>
121
- <!-- AURO-GENERATED-CONTENT:END -->
105
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
106
+ <!-- The below content is automatically added from ./apiExamples/custom.html -->
107
+ <custom-skeleton shape="circle" style="width: 40px; height: 40px"></custom-skeleton>
108
+ <custom-skeleton shape="oval" style="width: 200px; height: 100px;"></custom-skeleton>
109
+ <custom-skeleton shape="rectangle" style="width: 400px; height: 300px"></custom-skeleton>
110
+ <!-- AURO-GENERATED-CONTENT:END -->
122
111
  </div>
123
112
  <auro-accordion alignRight>
124
- <span slot="trigger">See code</span>
113
+ <span slot="trigger">See code</span>
125
114
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
126
115
  <!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
127
116
 
128
- ```html
129
- <custom-skeleton shape="circle" style="width: 40px; height: 40px"></custom-skeleton>
130
- <custom-skeleton shape="oval" style="width: 200px; height: 100px;"></custom-skeleton>
131
- <custom-skeleton shape="rectangle" style="width: 400px; height: 300px"></custom-skeleton>
132
- ```
117
+ <pre class="language-html"><code class="language-html">&lt;custom-skeleton shape="circle" style="width: 40px; height: 40px"&gt;&lt;/custom-skeleton&gt;
118
+ &lt;custom-skeleton shape="oval" style="width: 200px; height: 100px;"&gt;&lt;/custom-skeleton&gt;
119
+ &lt;custom-skeleton shape="rectangle" style="width: 400px; height: 300px"&gt;&lt;/custom-skeleton&gt;</code></pre>
133
120
  <!-- AURO-GENERATED-CONTENT:END -->
134
121
  </auro-accordion>
package/demo/api.md CHANGED
@@ -3,200 +3,192 @@
3
3
 
4
4
  # auro-skeleton
5
5
 
6
- The `auro-skeleton` element provides users a way to indicate the loading of asynchronous content on a page.
6
+ Shows a placeholder shape with a shimmer animation while content loads, so people can tell the page is still working.
7
+
8
+ **Key capabilities**
9
+ - **Shapes**: Set `shape` to `circle`, `oval`, or `rectangle` to change the outline.
10
+ - **Fills its container**: The skeleton always fills the width of its container unless you set a width, and it needs a height set with CSS.
11
+ - **Screen reader text**: The skeleton always includes the hidden text "Loading..." for screen reader users.
7
12
 
8
- ### Properties & Attributes
13
+ ### Properties and attributes
9
14
 
10
- | Properties | Attributes | Modifiers | Type | Default | Description |
11
- | ---------- | ---------- | --------- | --------------------------------- | ------- | ------------------------------------------- |
12
- | shape | shape | | `circle` \| `oval` \| `rectangle` | | Renders a circle, oval, or rectangle loader |
15
+ | Properties | Attributes | Modifiers | Type | Default | Description |
16
+ | ---------- | ---------- | --------- | --------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17
+ | shape | shape | | `circle` \| `oval` \| `rectangle` | | Sets the skeleton's outline. `circle` makes an ellipse, which is a circle when the width and height match, `oval` gives it fully rounded ends, and `rectangle` gives it slightly rounded corners. When not set, the corners are square. |
13
18
 
14
19
  ### Methods
15
20
 
16
- | Name | Parameters | Return | Description |
17
- | -------- | -------------------------------------------------------------------- | ------ | ------------------------------------------------- |
18
- | register | `name` (string) - The name of the element that you want to register. | | This will register this element with the browser. |
21
+ | Name | Parameters | Return | Description |
22
+ | -------- | ------------------------------------------------------------- | ------ | -------------------------------------------------------- |
23
+ | register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a tag name. |
19
24
  <!-- AURO-GENERATED-CONTENT:END -->
20
25
 
21
26
  ## Basic
22
27
 
23
28
  <div class="exampleWrapper">
24
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
25
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
26
- <auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
27
- <!-- AURO-GENERATED-CONTENT:END -->
29
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
30
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
31
+ <auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
32
+ <!-- AURO-GENERATED-CONTENT:END -->
28
33
  </div>
29
34
  <auro-accordion alignRight>
30
- <span slot="trigger">See code</span>
35
+ <span slot="trigger">See code</span>
31
36
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
32
37
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
33
38
 
34
- ```html
35
- <auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
36
- ```
39
+ <pre class="language-html"><code class="language-html">&lt;auro-skeleton style="width: 400px; height: 300px"&gt;&lt;/auro-skeleton&gt;</code></pre>
37
40
  <!-- AURO-GENERATED-CONTENT:END -->
38
41
  </auro-accordion>
39
42
 
40
- ## Property & Attribute Examples
43
+ ## Property and attribute examples
41
44
 
42
45
  ### Shape
43
46
 
44
- The `<auro-skeleton>` element makes use of a single `shape` to control its appearance. Options are [`circle`, `oval`, `rectangle`].
47
+ Use the `shape` attribute to set the skeleton's outline. `circle` makes an ellipse, which is a circle when the width and height match. `oval` gives it fully rounded ends, like a pill, and `rectangle` gives it slightly rounded corners. Without `shape`, the corners are square.
45
48
 
46
49
  ### Circle
47
50
 
48
51
  <div class="exampleWrapper">
49
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/circle.html) -->
50
- <!-- The below content is automatically added from ../apiExamples/circle.html -->
51
- <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
52
- <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
53
- <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
54
- <!-- AURO-GENERATED-CONTENT:END -->
52
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/circle.html) -->
53
+ <!-- The below content is automatically added from ../apiExamples/circle.html -->
54
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
55
+ <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
56
+ <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
57
+ <!-- AURO-GENERATED-CONTENT:END -->
55
58
  </div>
56
59
  <auro-accordion alignRight>
57
- <span slot="trigger">See code</span>
60
+ <span slot="trigger">See code</span>
58
61
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/circle.html) -->
59
62
  <!-- The below code snippet is automatically added from ../apiExamples/circle.html -->
60
63
 
61
- ```html
62
- <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
63
- <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
64
- <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
65
- ```
64
+ <pre class="language-html"><code class="language-html">&lt;auro-skeleton shape="circle" style="width: 40px; height: 40px"&gt;&lt;/auro-skeleton&gt;
65
+ &lt;auro-skeleton shape="circle" style="width: 100px; height: 100px"&gt;&lt;/auro-skeleton&gt;
66
+ &lt;auro-skeleton shape="circle" style="width: 300px; height: 300px"&gt;&lt;/auro-skeleton&gt;</code></pre>
66
67
  <!-- AURO-GENERATED-CONTENT:END -->
67
68
  </auro-accordion>
68
69
 
69
70
  ### Oval
70
71
 
71
72
  <div class="exampleWrapper">
72
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/oval.html) -->
73
- <!-- The below content is automatically added from ../apiExamples/oval.html -->
74
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
75
- <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
76
- <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
77
- <!-- AURO-GENERATED-CONTENT:END -->
73
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/oval.html) -->
74
+ <!-- The below content is automatically added from ../apiExamples/oval.html -->
75
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
76
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
77
+ <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
78
+ <!-- AURO-GENERATED-CONTENT:END -->
78
79
  </div>
79
80
  <auro-accordion alignRight>
80
- <span slot="trigger">See code</span>
81
+ <span slot="trigger">See code</span>
81
82
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/oval.html) -->
82
83
  <!-- The below code snippet is automatically added from ../apiExamples/oval.html -->
83
84
 
84
- ```html
85
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
86
- <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
87
- <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
88
- ```
85
+ <pre class="language-html"><code class="language-html">&lt;auro-skeleton shape="oval" style="width: 80px; height: 40px"&gt;&lt;/auro-skeleton&gt;
86
+ &lt;auro-skeleton shape="oval" style="width: 200px; height: 100px;"&gt;&lt;/auro-skeleton&gt;
87
+ &lt;auro-skeleton shape="oval" style="width: 600px; height: 300px"&gt;&lt;/auro-skeleton&gt;</code></pre>
89
88
  <!-- AURO-GENERATED-CONTENT:END -->
90
89
  </auro-accordion>
91
90
 
92
91
  ### Rectangle
93
92
 
94
93
  <div class="exampleWrapper">
95
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rectangle.html) -->
96
- <!-- The below content is automatically added from ../apiExamples/rectangle.html -->
97
- <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
98
- <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
99
- <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
100
- <!-- AURO-GENERATED-CONTENT:END -->
94
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rectangle.html) -->
95
+ <!-- The below content is automatically added from ../apiExamples/rectangle.html -->
96
+ <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
97
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
98
+ <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
99
+ <!-- AURO-GENERATED-CONTENT:END -->
101
100
  </div>
102
101
  <auro-accordion alignRight>
103
- <span slot="trigger">See code</span>
102
+ <span slot="trigger">See code</span>
104
103
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/rectangle.html) -->
105
104
  <!-- The below code snippet is automatically added from ../apiExamples/rectangle.html -->
106
105
 
107
- ```html
108
- <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
109
- <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
110
- <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
111
- ```
106
+ <pre class="language-html"><code class="language-html">&lt;auro-skeleton shape="rectangle" style="width: 100px; height: 50px"&gt;&lt;/auro-skeleton&gt;
107
+ &lt;auro-skeleton shape="rectangle" style="width: 400px; height: 150px"&gt;&lt;/auro-skeleton&gt;
108
+ &lt;auro-skeleton shape="rectangle" style="width: 800px; height: 300px"&gt;&lt;/auro-skeleton&gt;</code></pre>
112
109
  <!-- AURO-GENERATED-CONTENT:END -->
113
110
  </auro-accordion>
114
111
 
115
- ## Common Usage Patterns & Functional Examples
112
+ ## Common usage patterns
116
113
 
117
114
  ## Be creative
118
115
 
119
- Use your imagination. Wherever data can be placed, an `<auro-skeleton>` element can be used. In the following example see how `<auro-skeleton>` is used in place where data will be filled once the process is completed.
116
+ Use `<auro-skeleton>` anywhere data appears once it loads. In the following example, skeletons hold the place of table rows until their data arrives.
120
117
 
121
118
  <div class="exampleWrapper">
122
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/table-example.html) -->
123
- <!-- The below content is automatically added from ../apiExamples/table-example.html -->
124
- <table class="auro_table">
125
- <thead>
126
- <tr>
127
- <th>The table header</th>
128
- <th>The table header</th>
129
- </tr>
130
- </thead>
131
- <tbody>
132
- <tr>
133
- <td colspan="2">
134
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
135
- </td>
136
- </tr>
137
- <tr>
138
- <td colspan="2">
139
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
140
- </td>
141
- </tr>
142
- <tr>
143
- <td colspan="2">
144
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
145
- </td>
146
- </tr>
147
- </tbody>
148
- </table>
149
- <!-- AURO-GENERATED-CONTENT:END -->
119
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/table-example.html) -->
120
+ <!-- The below content is automatically added from ../apiExamples/table-example.html -->
121
+ <table class="auro_table">
122
+ <thead>
123
+ <tr>
124
+ <th>The table header</th>
125
+ <th>The table header</th>
126
+ </tr>
127
+ </thead>
128
+ <tbody>
129
+ <tr>
130
+ <td colspan="2">
131
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <td colspan="2">
136
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td colspan="2">
141
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
142
+ </td>
143
+ </tr>
144
+ </tbody>
145
+ </table>
146
+ <!-- AURO-GENERATED-CONTENT:END -->
150
147
  </div>
151
148
  <auro-accordion alignRight>
152
- <span slot="trigger">See code</span>
149
+ <span slot="trigger">See code</span>
153
150
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/table-example.html) -->
154
151
  <!-- The below code snippet is automatically added from ../apiExamples/table-example.html -->
155
152
 
156
- ```html
157
- <table class="auro_table">
158
- <thead>
159
- <tr>
160
- <th>The table header</th>
161
- <th>The table header</th>
162
- </tr>
163
- </thead>
164
- <tbody>
165
- <tr>
166
- <td colspan="2">
167
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
168
- </td>
169
- </tr>
170
- <tr>
171
- <td colspan="2">
172
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
173
- </td>
174
- </tr>
175
- <tr>
176
- <td colspan="2">
177
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
178
- </td>
179
- </tr>
180
- </tbody>
181
- </table>
182
- ```
153
+ <pre class="language-html"><code class="language-html">&lt;table class="auro_table"&gt;
154
+ &lt;thead&gt;
155
+ &lt;tr&gt;
156
+ &lt;th&gt;The table header&lt;/th&gt;
157
+ &lt;th&gt;The table header&lt;/th&gt;
158
+ &lt;/tr&gt;
159
+ &lt;/thead&gt;
160
+ &lt;tbody&gt;
161
+ &lt;tr&gt;
162
+ &lt;td colspan="2"&gt;
163
+ &lt;auro-skeleton shape="oval" style="height: 20px;"&gt;&lt;/auro-skeleton&gt;
164
+ &lt;/td&gt;
165
+ &lt;/tr&gt;
166
+ &lt;tr&gt;
167
+ &lt;td colspan="2"&gt;
168
+ &lt;auro-skeleton shape="oval" style="height: 20px;"&gt;&lt;/auro-skeleton&gt;
169
+ &lt;/td&gt;
170
+ &lt;/tr&gt;
171
+ &lt;tr&gt;
172
+ &lt;td colspan="2"&gt;
173
+ &lt;auro-skeleton shape="oval" style="height: 20px;"&gt;&lt;/auro-skeleton&gt;
174
+ &lt;/td&gt;
175
+ &lt;/tr&gt;
176
+ &lt;/tbody&gt;
177
+ &lt;/table&gt;</code></pre>
183
178
  <!-- AURO-GENERATED-CONTENT:END -->
184
179
  </auro-accordion>
185
180
 
186
- ## Restyle Component with CSS Variables
181
+ ## Restyle with CSS custom properties
187
182
 
188
- The component may be restyled by changing the values of the following token(s).
183
+ Restyle the component by changing the values of the following tokens.
189
184
 
190
185
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
191
186
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
192
187
 
193
- ```scss
194
- @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
195
-
196
- :host {
188
+ <pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
189
+ &#10;:host {
197
190
  --ds-auro-skeleton-container-color: var(--ds-advanced-color-skeleton-background, #{v.$ds-advanced-color-skeleton-background});
198
191
  --ds-auro-skeleton-container-gradient-color-one: var(--ds-advanced-color-skeleton-background, #{v.$ds-advanced-color-skeleton-background});
199
192
  --ds-auro-skeleton-container-gradient-color-two: var(--ds-advanced-color-skeleton-wave, #{v.$ds-advanced-color-skeleton-wave});
200
- }
201
- ```
193
+ }</code></pre>
202
194
  <!-- AURO-GENERATED-CONTENT:END -->