@aurodesignsystem/auro-skeleton 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [2.1.1](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.1.0...v2.1.1) (2024-01-30)
4
+
5
+
6
+ ### Performance Improvements
7
+
8
+ * **deps:** update dependencies to latest version ([2eb3ce5](https://github.com/AlaskaAirlines/auro-skeleton/commit/2eb3ce5ddecc822fe2f27f92c14ab40f8e9d6f1f))
9
+ * **imports:** update imports to [@aurodesignsystem](https://github.com/aurodesignsystem) ([858660b](https://github.com/AlaskaAirlines/auro-skeleton/commit/858660bb867702e0a08dd63f578d74404d8d19d5))
10
+ * **token:** update token per new theming [#23](https://github.com/AlaskaAirlines/auro-skeleton/issues/23) ([0305927](https://github.com/AlaskaAirlines/auro-skeleton/commit/03059279acaf69a2c0578e6b0651ae0b664296da))
11
+
3
12
  # [2.1.0](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.0.1...v2.1.0) (2022-06-03)
4
13
 
5
14
 
package/README.md CHANGED
@@ -1,14 +1,48 @@
1
+ <!--
2
+ The README.md file is a compiled document. No edits should be made directly to this file.
3
+
4
+ README.md is created by running `npm run build:docs`.
5
+
6
+ This file is generated based on a template fetched from
7
+ `https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/README.md`
8
+ and copied to `./componentDocs/README.md` each time the the docs are compiled.
9
+
10
+ The following sections are editable by making changes to the following files:
11
+
12
+ | SECTION | DESCRIPTION | FILE LOCATION |
13
+ |------------------------|---------------------------------------------------|-------------------------------------|
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` |
18
+ -->
19
+
1
20
  # Skeleton
2
21
 
3
- `<auro-skeleton>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of providing users a way to indicate the loading of asynchronous content on a page.
22
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
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.
4
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.
27
+
28
+ The `<auro-skeleton>` element uses animation to convey that the page is still loading in order to reduce user uncertainty.
29
+ <!-- AURO-GENERATED-CONTENT:END -->
30
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/readmeAddlInfo.md) -->
31
+ <!-- The below content is automatically added from ./../docs/partials/readmeAddlInfo.md -->
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
+ <!-- AURO-GENERATED-CONTENT:END -->
34
+
5
35
  ## UI development browser support
6
36
 
37
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
7
38
  For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
8
39
 
40
+ <!-- AURO-GENERATED-CONTENT:END -->
41
+
9
42
  ## Install
10
43
 
11
- [![Build Status](https://img.shields.io/github/workflow/status/AlaskaAirlines/auro-skeleton/Test%20and%20publish?branch=master&style=for-the-badge)](https://github.com/AlaskaAirlines/auro-skeleton/actions?query=workflow%3A%22test+and+publish%22)
44
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentInstall.md) -->
45
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-skeleton/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-skeleton/actions/workflows/testPublish.yml)
12
46
  [![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-skeleton?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-skeleton)
13
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)
14
48
 
@@ -18,94 +52,138 @@ $ npm i @aurodesignsystem/auro-skeleton
18
52
 
19
53
  Installing as a direct, dev or peer dependency is up to the user installing the package. If you are unsure as to what type of dependency you should use, consider reading this [stack overflow](https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies) answer.
20
54
 
55
+ <!-- AURO-GENERATED-CONTENT:END -->
56
+
21
57
  ### Design Token CSS Custom Property dependency
22
58
 
59
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
23
60
  The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
24
61
 
62
+ <!-- AURO-GENERATED-CONTENT:END -->
63
+
25
64
  ### CSS Custom Property fallbacks
26
65
 
66
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
27
67
  [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.
28
68
 
29
69
  Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.
30
70
 
71
+ <!-- AURO-GENERATED-CONTENT:END -->
72
+
31
73
  ### Define dependency in project component
32
74
 
75
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
33
76
  Defining the component dependency within each component that is using the `<auro-skeleton>` component.
34
77
 
35
- ```javascript
78
+ <!-- AURO-GENERATED-CONTENT:END -->
79
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImport.md) -->
80
+
81
+ ```js
36
82
  import "@aurodesignsystem/auro-skeleton";
37
83
  ```
38
84
 
85
+ <!-- AURO-GENERATED-CONTENT:END -->
39
86
  **Reference component in HTML**
40
-
87
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
88
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
89
+
41
90
  ```html
42
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
43
- ```
44
-
91
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
92
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
93
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
94
+ ```
95
+ <!-- AURO-GENERATED-CONTENT:END -->
96
+
45
97
  ## Install bundled assets from CDN
46
98
 
47
- In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Two bundles are available -- `auro-skeleton__bundled.js` for modern browsers and `auro-skeleton__bundled.es5.js` for legacy browsers (including IE11).
99
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) -->
100
+ In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `auro-skeleton__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported.
48
101
 
49
- Since the legacy bundle includes many polyfills that are not needed by modern browsers, we recommend you load these bundles using [differential serving](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/) so that the browser only loads the bundle it needs. To accomplish this, the script tag for the modern bundle should have `type="module"` and the script tag for the legacy bundle should have the `nomodule` attribute. See the example below.
102
+ We recommend you load these bundles using [differential serving](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/) so that the browser only loads the bundle correctly. To accomplish this, the script tag for the modern bundle should have `type="module"` and the script tag.
50
103
 
104
+ <!-- AURO-GENERATED-CONTENT:END -->
105
+
51
106
  ### Bundle example code
52
107
 
53
- **NOTE:** Be sure to replace `@latest` in the URL with the version of the asset you want. @latest is NOT aware of any MAJOR releases, use at your own risk.
54
-
108
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUse.md) -->
109
+
55
110
  ```html
56
- <link rel="stylesheet" href="https://unpkg.com/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css" />
57
- <link rel="stylesheet" href="https://unpkg.com/@alaskaairux/webcorestylesheets@latest/dist/bundled/essentials.css" />
58
-
59
- <script src="https://unpkg.com/@aurodesignsystem/auro-skeleton@latest/dist/auro-skeleton__bundled.js" type="module"></script>
60
- <script src="https://unpkg.com/@aurodesignsystem/auro-skeleton@latest/dist/auro-skeleton__bundled.es5.js" nomodule></script>
61
- ```
62
-
111
+ <!-- **NOTE:** Be sure to replace `@latest` in the URL with the version of the asset you want. @latest is NOT aware of any MAJOR releases, use at your own risk. -->
112
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css" />
113
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials.css" />
114
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@latest/dist/auro-skeleton__bundled.js" type="module"></script>
115
+ ```
116
+
117
+ <!-- AURO-GENERATED-CONTENT:END -->
118
+
63
119
  ## auro-skeleton use cases
64
120
 
65
- The `auro-skeleton` component 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.
66
-
67
- ## API Code Examples
68
-
69
- Default auro-skeleton
70
-
121
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
122
+ <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
123
+ The `<auro-skeleton>` element can be used on container-based components like `<auro-card>` and other structured lists.
124
+ <!-- AURO-GENERATED-CONTENT:END -->
125
+
126
+ ## API Code Examples
127
+
128
+ ### Default auro-skeleton
129
+
130
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
131
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
132
+
71
133
  ```html
72
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
73
- ```
74
-
134
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
135
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
136
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
137
+ ```
138
+ <!-- AURO-GENERATED-CONTENT:END -->
139
+
75
140
  ## Development
76
141
 
142
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/developmentDescription.md) -->
77
143
  In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
78
144
 
79
- Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/getting-started/developers/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
145
+ Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
80
146
 
147
+ <!-- AURO-GENERATED-CONTENT:END -->
148
+
81
149
  ### Start development environment
82
150
 
83
- Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open two different shell sessions. One is for the **npm tasks**, the second is to run the **server**.
151
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/localhost.md) -->
152
+ Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
84
153
 
85
154
  ```shell
86
- // shell terminal one
87
155
  $ npm run dev
88
-
89
- // shell terminal two
90
- $ npm run serve
91
156
  ```
92
157
 
93
158
  Open [localhost:8000](http://localhost:8000/)
94
159
 
160
+ If running separate sessions is preferred, please run the following commands in individual terminal shells.
161
+
162
+ ```shell
163
+ $ npm run build:watch
164
+
165
+ $ npm run serve
166
+ ```
167
+
168
+ <!-- AURO-GENERATED-CONTENT:END -->
169
+
95
170
  ### API generation
96
171
 
172
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/api.md) -->
97
173
  The custom element API file is generated in the build and committed back to the repo with a version change. If the API doc has changed without a version change, author's are to run `npm run build:api` to generate the doc and commit to version control.
98
174
 
175
+ <!-- AURO-GENERATED-CONTENT:END -->
176
+
99
177
  ### Testing
100
178
 
179
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/testing.md) -->
101
180
  Automated tests are required for every Auro component. See `.\test\auro-skeleton.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
102
181
 
182
+ <!-- AURO-GENERATED-CONTENT:END -->
183
+
103
184
  ### Bundled assets
104
185
 
186
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) -->
105
187
  Bundled assets are only generated in the remote and not merged back to this repo. To review and/or test a bundled asset locally, run `$ npm run bundler` to generate assets.
106
188
 
107
- ### Demo deployment
108
-
109
- To deploy a demo version of the component for review, run `npm run demo:build` to create a `./build` directory that can be pushed to any static server.
110
-
111
- <small>Built from WC-Generator v3-7-1</small>
189
+ <!-- AURO-GENERATED-CONTENT:END -->
@@ -0,0 +1,81 @@
1
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../api.md) -->
2
+ <!-- The below content is automatically added from ./../api.md -->
3
+
4
+ # auro-skeleton
5
+
6
+ The auro-skeleton element provides users a way to indicate the loading of asynchronous content on a page.
7
+
8
+ ## Attributes
9
+
10
+ | Attribute | Type | Description |
11
+ |-----------|----------|----------------------------------------------|
12
+ | [shape](#shape) | `String` | Renders a circle, oval, or rectangle loader. |
13
+ <!-- AURO-GENERATED-CONTENT:END -->
14
+
15
+ ## API Examples
16
+
17
+ ### Attribute Examples
18
+
19
+ #### <a name="shape"></a>`shape`<a href="#" style="float: right; font-size: 1rem; font-weight: 100;">back to top</a>
20
+ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute. Options are [`circle`, `oval`, `rectangle`]
21
+
22
+ <div class="exampleWrapper">
23
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/api_shape_circle.html) -->
24
+ <!-- The below content is automatically added from ./../../apiExamples/api_shape_circle.html -->
25
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
26
+ <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
27
+ <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
28
+ <!-- AURO-GENERATED-CONTENT:END -->
29
+ </div>
30
+ <auro-accordion alignRight>
31
+ <span slot="trigger">See code</span>
32
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/api_shape_circle.html) -->
33
+ <!-- The below code snippet is automatically added from ./../../apiExamples/api_shape_circle.html -->
34
+
35
+ ```html
36
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
37
+ <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
38
+ <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
39
+ ```
40
+ <!-- AURO-GENERATED-CONTENT:END -->
41
+ </auro-accordion>
42
+ <div class="exampleWrapper">
43
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/api_shape_oval.html) -->
44
+ <!-- The below content is automatically added from ./../../apiExamples/api_shape_oval.html -->
45
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
46
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
47
+ <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
48
+ <!-- AURO-GENERATED-CONTENT:END -->
49
+ </div>
50
+ <auro-accordion alignRight>
51
+ <span slot="trigger">See code</span>
52
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/api_shape_oval.html) -->
53
+ <!-- The below code snippet is automatically added from ./../../apiExamples/api_shape_oval.html -->
54
+
55
+ ```html
56
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
57
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
58
+ <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
59
+ ```
60
+ <!-- AURO-GENERATED-CONTENT:END -->
61
+ </auro-accordion>
62
+ <div class="exampleWrapper">
63
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/api_shape_rectangle.html) -->
64
+ <!-- The below content is automatically added from ./../../apiExamples/api_shape_rectangle.html -->
65
+ <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
66
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
67
+ <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
68
+ <!-- AURO-GENERATED-CONTENT:END -->
69
+ </div>
70
+ <auro-accordion alignRight>
71
+ <span slot="trigger">See code</span>
72
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/api_shape_rectangle.html) -->
73
+ <!-- The below code snippet is automatically added from ./../../apiExamples/api_shape_rectangle.html -->
74
+
75
+ ```html
76
+ <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
77
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
78
+ <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
79
+ ```
80
+ <!-- AURO-GENERATED-CONTENT:END -->
81
+ </auro-accordion>
package/demo/demo.md CHANGED
@@ -1,78 +1,65 @@
1
+ <!--
2
+ The demo.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/demo.md`
5
+ -->
6
+
1
7
  # Skeleton
2
8
 
3
- The `auro-skeleton` component 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.
9
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./description.md) -->
10
+ <!-- The below content is automatically added from ./description.md -->
11
+ 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.
4
12
 
5
- [Research](https://www.nngroup.com/articles/progress-indicators/) conducted by the Nielsen Norman Group states that using skeleton states and [loading indicators](http://auro.alaskaair.com/components/auro/loader) improve user satisfaction.
13
+ [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.
6
14
 
7
- `auro-skeleton` uses animation to convey that the page is not stuck and that data is still being loaded in order to reduce user uncertainty.
8
-
9
- ## Use Cases
10
-
11
- `auro-skeleton` can be used on container-based components like `auro-card` and structured lists.
15
+ The `<auro-skeleton>` element uses animation to convey that the page is still loading in order to reduce user uncertainty.
16
+ <!-- AURO-GENERATED-CONTENT:END -->
17
+
18
+ ## auro-skeleton use cases
12
19
 
20
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./useCases.md) -->
21
+ <!-- The below content is automatically added from ./useCases.md -->
22
+ The `<auro-skeleton>` element can be used on container-based components like `<auro-card>` and other structured lists.
23
+ <!-- AURO-GENERATED-CONTENT:END -->
24
+
13
25
  ## Do not...
14
- `auro-skeleton` should not be used on action components like `auro-button`, `auro-input` or `auro-radio`.
15
26
 
16
- Do not represent a loading state with `auro-skeleton` for an entire component such as a toast notification, dropdown menus, or a modal dialog. It is approapriate to use `auro-skeleton` for content inside those components, but never for the entire component.
17
- ## Basic Examples
27
+ `<auro-skeleton>` should not be used on action components like `<auro-button>`, `<auro-input>` or `<auro-radio>`.
18
28
 
19
- ### Circle
29
+ Do not represent a loading state with `<auro-skeleton>` for an entire component such as a toast notification, dropdown menus, or a modal dialog. It is approapriate to use `<auro-skeleton>` for content inside those components, but never for the entire component.
30
+
31
+ ## Default examples
20
32
 
21
- <div class="exampleWrapper">
22
- <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
23
- <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
24
- <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
25
- </div>
26
-
27
- <auro-accordion lowProfile justifyRight>
28
- <span slot="trigger">See code</span>
29
-
30
- ```html
31
- <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
32
- <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
33
- <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
34
- ```
35
- </auro-accordion>
36
-
37
- ### Oval
33
+ The `<auro-skelelton>` API consists of a standardized enumerated `shape` attribute and the use of customzied CSS. The following examples illusrtate use cases to include `circle`, `oval` and `rectangle`. With the use of CSS the user has infinate options for how the animated skeleton can be used in their loading UI.
38
34
 
39
35
  <div class="exampleWrapper">
40
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
36
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basic.html) -->
37
+ <!-- The below content is automatically added from ./../../apiExamples/basic.html -->
38
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
41
39
  <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
42
- <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
43
- </div>
44
-
45
- <auro-accordion lowProfile justifyRight>
46
- <span slot="trigger">See code</span>
47
-
48
- ```html
49
- <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
50
- <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
51
- <auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
52
- ```
53
- </auro-accordion>
54
-
55
- ### Rectangle
56
-
57
- <div class="exampleWrapper">
58
- <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
59
- <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
60
- <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
61
- </div>
62
-
63
- <auro-accordion lowProfile justifyRight>
64
- <span slot="trigger">See code</span>
65
-
66
- ```html
67
- <auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
68
- <auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
69
- <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
70
- ```
71
- </auro-accordion>
72
-
73
- ## Table Example
40
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
41
+ <!-- AURO-GENERATED-CONTENT:END -->
42
+ </div>
43
+ <auro-accordion alignRight>
44
+ <span slot="trigger">See code</span>
45
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basic.html) -->
46
+ <!-- The below code snippet is automatically added from ./../../apiExamples/basic.html -->
47
+
48
+ ```html
49
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
50
+ <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
51
+ <auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
52
+ ```
53
+ <!-- AURO-GENERATED-CONTENT:END -->
54
+ </auro-accordion>
55
+
56
+ ## Be creative
57
+
58
+ Use your imagination. Wherever data can be placed, an `<auro-skelelton>` element can be used. In the following exmaple see how `<auro-skelelton>` is used in place where data will be filled once the process is completed.
74
59
 
75
60
  <div class="exampleWrapper">
61
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/table_example.html) -->
62
+ <!-- The below content is automatically added from ./../../apiExamples/table_example.html -->
76
63
  <table class="auro_table">
77
64
  <thead>
78
65
  <tr>
@@ -98,37 +85,39 @@ Do not represent a loading state with `auro-skeleton` for an entire component su
98
85
  </tr>
99
86
  </tbody>
100
87
  </table>
101
- </div>
102
-
103
- <auro-accordion lowProfile justifyRight>
104
- <span slot="trigger">See code</span>
105
-
106
- ```html
107
- <table class="auro_table">
108
- <thead>
109
- <tr>
110
- <th>The table header</th>
111
- <th>The table header</th>
112
- </tr>
113
- </thead>
114
- <tbody>
115
- <tr>
116
- <td colspan="2">
117
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
118
- </td>
119
- </tr>
120
- <tr>
121
- <td colspan="2">
122
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
123
- </td>
124
- </tr>
125
- <tr>
126
- <td colspan="2">
127
- <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
128
- </td>
129
- </tr>
130
- </tbody>
131
- </table>
132
- ```
133
-
88
+ <!-- AURO-GENERATED-CONTENT:END -->
89
+ </div>
90
+ <auro-accordion alignRight>
91
+ <span slot="trigger">See code</span>
92
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/table_example.html) -->
93
+ <!-- The below code snippet is automatically added from ./../../apiExamples/table_example.html -->
94
+
95
+ ```html
96
+ <table class="auro_table">
97
+ <thead>
98
+ <tr>
99
+ <th>The table header</th>
100
+ <th>The table header</th>
101
+ </tr>
102
+ </thead>
103
+ <tbody>
104
+ <tr>
105
+ <td colspan="2">
106
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
107
+ </td>
108
+ </tr>
109
+ <tr>
110
+ <td colspan="2">
111
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td colspan="2">
116
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
117
+ </td>
118
+ </tr>
119
+ </tbody>
120
+ </table>
121
+ ```
122
+ <!-- AURO-GENERATED-CONTENT:END -->
134
123
  </auro-accordion>
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The auro-skeleton element provides users a way to indicate the loading of asynchronous content on a page.
3
+ *
4
+ * @attr {String} shape - Renders a circle, oval, or rectangle loader.
5
+ */
6
+ export class AuroSkeleton extends LitElement {
7
+ static get properties(): {};
8
+ static get styles(): import("lit").CSSResult[];
9
+ render(): import("lit-html").TemplateResult<1>;
10
+ }
11
+ import { LitElement } from "lit";
12
+ //# sourceMappingURL=auro-skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auro-skeleton.d.ts","sourceRoot":"","sources":["../src/auro-skeleton.js"],"names":[],"mappings":"AAgBA;;;;GAIG;AAGH;IAME,4BAIC;IAED,+CAEC;IAMD,+CAIC;CACF;2BA1CgC,KAAK"}