@aurodesignsystem/auro-skeleton 4.1.3 → 5.0.0-rc-76.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 +15 -0
- package/NOTICE +2 -0
- package/README.md +52 -98
- package/demo/api.html +56 -0
- package/demo/api.js +1 -1
- package/demo/api.md +132 -30
- package/demo/api.min.js +1 -166
- package/{dist/auro-skeleton__bundled.js → demo/auro-skeleton.min.js} +63 -46
- package/demo/index.html +56 -0
- package/demo/index.js +2 -2
- package/demo/index.md +21 -129
- package/demo/index.min.js +2 -167
- package/dist/auro-skeleton-DmGY_hvs.js +6 -0
- package/dist/index.d.ts +171 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +49 -127
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/dist/auro-skeleton.d.ts +0 -26
- package/dist/auro-skeleton.d.ts.map +0 -1
- package/dist/color-css.d.ts +0 -3
- package/dist/color-css.d.ts.map +0 -1
- package/dist/color-css.js +0 -2
- package/dist/style-css.d.ts +0 -3
- package/dist/style-css.d.ts.map +0 -1
- package/dist/tokens-css.d.ts +0 -3
- package/dist/tokens-css.d.ts.map +0 -1
- package/dist/tokens-css.js +0 -2
- package/index.js +0 -3
- package/packageScripts/postinstall.mjs +0 -28
- package/src/auro-skeleton.js +0 -74
- package/src/color-css.js +0 -2
- package/src/style-css.js +0 -2
- package/src/tokens-css.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [5.0.0-rc-76.1](https://github.com/AlaskaAirlines/auro-skeleton/compare/v4.1.3...v5.0.0-rc-76.1) (2026-01-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* feat!: upgrade package tooling to use auro-cli ([16736d0](https://github.com/AlaskaAirlines/auro-skeleton/commit/16736d0322facdbff44e323b831e56fa6e5f5bab)), closes [AlaskaAirlines/auro-cli#108](https://github.com/AlaskaAirlines/auro-cli/issues/108) [AlaskaAirlines/auro-cli#109](https://github.com/AlaskaAirlines/auro-cli/issues/109) [AlaskaAirlines/auro-cli#110](https://github.com/AlaskaAirlines/auro-cli/issues/110) [AlaskaAirlines/auro-cli#111](https://github.com/AlaskaAirlines/auro-cli/issues/111)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Performance Improvements
|
|
8
|
+
|
|
9
|
+
* modernize component example documentation [#70](https://github.com/AlaskaAirlines/auro-skeleton/issues/70) ([0a55d82](https://github.com/AlaskaAirlines/auro-skeleton/commit/0a55d82460c03e13b10eae8041684921cdf9307c))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* Package exports have changed. To access the component class add /class to the end of the import. See "exports" in the package.json for more details.
|
|
15
|
+
|
|
1
16
|
# Semantic Release Automated Changelog
|
|
2
17
|
|
|
3
18
|
## [4.1.3](https://github.com/AlaskaAirlines/auro-skeleton/compare/v4.1.2...v4.1.3) (2025-08-14)
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ The README.md file is a compiled document. No edits should be made directly to t
|
|
|
4
4
|
README.md is created by running `npm run build:docs`.
|
|
5
5
|
|
|
6
6
|
This file is generated based on a template fetched from
|
|
7
|
-
`https://raw.githubusercontent.com/AlaskaAirlines/
|
|
8
|
-
and copied to `./componentDocs/README.md` each time the
|
|
7
|
+
`https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/README.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
9
|
|
|
10
10
|
The following sections are editable by making changes to the following files:
|
|
11
11
|
|
|
@@ -32,17 +32,17 @@ The `<auro-skeleton>` element uses animation to convey that the page is still lo
|
|
|
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
|
-
##
|
|
36
|
-
|
|
37
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
38
|
-
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
35
|
+
## Use Cases
|
|
39
36
|
|
|
37
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
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.
|
|
40
40
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
41
|
|
|
42
42
|
## Install
|
|
43
43
|
|
|
44
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
45
|
-
[ -->
|
|
45
|
+
[](https://github.com/AlaskaAirlines/auro-skeleton/actions/workflows/release.yml)
|
|
46
46
|
[](https://www.npmjs.com/package/@aurodesignsystem/auro-skeleton)
|
|
47
47
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
48
48
|

|
|
@@ -51,130 +51,84 @@ For the most up to date information on [UI development browser support](https://
|
|
|
51
51
|
$ npm i @aurodesignsystem/auro-skeleton
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
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.
|
|
55
|
-
|
|
56
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
|
-
|
|
58
|
-
### Design Token CSS Custom Property dependency
|
|
59
|
-
|
|
60
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
|
|
61
|
-
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
62
|
-
|
|
63
54
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
64
55
|
|
|
65
|
-
### Define
|
|
56
|
+
### Define Dependency in Project
|
|
66
57
|
|
|
67
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
68
|
-
Defining the
|
|
58
|
+
<!-- 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.
|
|
69
60
|
|
|
70
61
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
71
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
62
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
72
63
|
|
|
73
64
|
```js
|
|
74
65
|
import "@aurodesignsystem/auro-skeleton";
|
|
75
66
|
```
|
|
76
67
|
|
|
77
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
78
|
-
**Reference component in HTML**
|
|
79
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
80
|
-
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
81
|
-
|
|
82
|
-
```html
|
|
83
|
-
<auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
|
|
84
|
-
<auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
|
|
85
|
-
<auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
|
|
86
|
-
```
|
|
87
68
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
88
69
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) -->
|
|
92
|
-
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.
|
|
70
|
+
### Use CDN
|
|
93
71
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
97
|
-
|
|
98
|
-
### Bundle example code
|
|
72
|
+
<!-- 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.
|
|
99
74
|
|
|
100
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
|
|
101
|
-
|
|
102
75
|
```html
|
|
103
|
-
<
|
|
104
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@/dist/bundled/essentials.css" />
|
|
105
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@4.1.3/dist/auro-skeleton__bundled.js" type="module"></script>
|
|
76
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@latest/+esm"></script>
|
|
106
77
|
```
|
|
107
78
|
|
|
108
79
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
109
80
|
|
|
110
|
-
##
|
|
111
|
-
|
|
112
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
113
|
-
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
114
|
-
The `<auro-skeleton>` element can be used on container-based components like `<auro-card>` and other structured lists.
|
|
115
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
|
-
|
|
117
|
-
## API Code Examples
|
|
118
|
-
|
|
119
|
-
### Default auro-skeleton
|
|
81
|
+
## Basic Example
|
|
120
82
|
|
|
121
83
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
122
84
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
123
85
|
|
|
124
86
|
```html
|
|
125
|
-
<auro-skeleton
|
|
126
|
-
<auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
|
|
127
|
-
<auro-skeleton shape="rectangle" style="width: 400px; height: 300px"></auro-skeleton>
|
|
87
|
+
<auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
|
|
128
88
|
```
|
|
129
89
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
130
90
|
|
|
131
|
-
##
|
|
132
|
-
|
|
133
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/developmentDescription.md) -->
|
|
134
|
-
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.
|
|
135
|
-
|
|
136
|
-
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.
|
|
137
|
-
|
|
138
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
139
|
-
|
|
140
|
-
### Start development environment
|
|
91
|
+
## Custom Component Registration for Version Management
|
|
141
92
|
|
|
142
|
-
|
|
143
|
-
|
|
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.
|
|
94
|
+
The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
144
95
|
|
|
145
|
-
|
|
146
|
-
$ npm run dev
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
Open [localhost:8000](http://localhost:8000/)
|
|
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.
|
|
150
97
|
|
|
151
|
-
|
|
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.
|
|
152
99
|
|
|
153
|
-
|
|
154
|
-
$ npm run build:watch
|
|
155
|
-
|
|
156
|
-
$ npm run serve
|
|
157
|
-
```
|
|
100
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
158
101
|
|
|
159
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
103
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
160
104
|
|
|
161
|
-
|
|
105
|
+
```js
|
|
106
|
+
// Import the class only
|
|
107
|
+
import { AuroSkeleton } from '@aurodesignsystem/auro-skeleton/class';
|
|
162
108
|
|
|
163
|
-
|
|
164
|
-
|
|
109
|
+
// Register with a custom name if desired
|
|
110
|
+
AuroSkeleton.register('custom-skeleton');
|
|
111
|
+
```
|
|
165
112
|
|
|
166
|
-
|
|
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.
|
|
114
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
|
+
<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 -->
|
|
122
|
+
</div>
|
|
123
|
+
<auro-accordion alignRight>
|
|
124
|
+
<span slot="trigger">See code</span>
|
|
125
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
126
|
+
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
167
127
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
+
```
|
|
173
133
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
174
|
-
|
|
175
|
-
### Bundled assets
|
|
176
|
-
|
|
177
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) -->
|
|
178
|
-
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.
|
|
179
|
-
|
|
180
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
134
|
+
</auro-accordion>
|
package/demo/api.html
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/api.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-skeleton</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-skeleton's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
36
|
+
</head>
|
|
37
|
+
<body class="auro-markdown">
|
|
38
|
+
<main></main>
|
|
39
|
+
|
|
40
|
+
<script type="module">
|
|
41
|
+
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
|
|
42
|
+
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
|
|
43
|
+
fetch('./api.md')
|
|
44
|
+
.then((response) => response.text())
|
|
45
|
+
.then((text) => {
|
|
46
|
+
const rawHtml = marked.parse(text);
|
|
47
|
+
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
+
Prism.highlightAll();
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
<script type="module" data-demo-script="true" src="./api.min.js"></script>
|
|
52
|
+
|
|
53
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
55
|
+
</body>
|
|
56
|
+
</html>
|
package/demo/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../src/registered";
|
package/demo/api.md
CHANGED
|
@@ -1,37 +1,62 @@
|
|
|
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
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
|
+
The `auro-skeleton` element provides users a way to indicate the loading of asynchronous content on a page.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Properties & Attributes
|
|
9
9
|
|
|
10
|
-
|
|
|
11
|
-
|
|
12
|
-
|
|
|
10
|
+
| Properties | Attributes | Modifiers | Type | Default | Description |
|
|
11
|
+
| ---------- | ---------- | --------- | --------------------------------- | ------- | ------------------------------------------- |
|
|
12
|
+
| shape | shape | | `circle` \| `oval` \| `rectangle` | | Renders a circle, oval, or rectangle loader |
|
|
13
|
+
|
|
14
|
+
### Methods
|
|
15
|
+
|
|
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. |
|
|
13
19
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
14
20
|
|
|
15
|
-
##
|
|
21
|
+
## Basic
|
|
22
|
+
|
|
23
|
+
<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 -->
|
|
28
|
+
</div>
|
|
29
|
+
<auro-accordion alignRight>
|
|
30
|
+
<span slot="trigger">See code</span>
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
32
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
16
33
|
|
|
17
|
-
|
|
34
|
+
```html
|
|
35
|
+
<auro-skeleton style="width: 400px; height: 300px"></auro-skeleton>
|
|
36
|
+
```
|
|
37
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
38
|
+
</auro-accordion>
|
|
39
|
+
|
|
40
|
+
## Property & Attribute Examples
|
|
18
41
|
|
|
19
|
-
|
|
42
|
+
### Shape
|
|
20
43
|
|
|
21
|
-
The `<auro-skeleton>` element makes use of a single `shape`
|
|
44
|
+
The `<auro-skeleton>` element makes use of a single `shape` to control its appearance. Options are [`circle`, `oval`, `rectangle`].
|
|
45
|
+
|
|
46
|
+
### Circle
|
|
22
47
|
|
|
23
48
|
<div class="exampleWrapper">
|
|
24
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
25
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
49
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/circle.html) -->
|
|
50
|
+
<!-- The below content is automatically added from ../apiExamples/circle.html -->
|
|
26
51
|
<auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
|
|
27
52
|
<auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
|
|
28
53
|
<auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
|
|
29
54
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
|
-
</div>
|
|
55
|
+
</div>
|
|
31
56
|
<auro-accordion alignRight>
|
|
32
57
|
<span slot="trigger">See code</span>
|
|
33
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
34
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
58
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/circle.html) -->
|
|
59
|
+
<!-- The below code snippet is automatically added from ../apiExamples/circle.html -->
|
|
35
60
|
|
|
36
61
|
```html
|
|
37
62
|
<auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
|
|
@@ -40,18 +65,21 @@ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute
|
|
|
40
65
|
```
|
|
41
66
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
42
67
|
</auro-accordion>
|
|
68
|
+
|
|
69
|
+
### Oval
|
|
70
|
+
|
|
43
71
|
<div class="exampleWrapper">
|
|
44
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
45
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
72
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/oval.html) -->
|
|
73
|
+
<!-- The below content is automatically added from ../apiExamples/oval.html -->
|
|
46
74
|
<auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
|
|
47
75
|
<auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
|
|
48
76
|
<auro-skeleton shape="oval" style="width: 600px; height: 300px"></auro-skeleton>
|
|
49
77
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
50
|
-
</div>
|
|
78
|
+
</div>
|
|
51
79
|
<auro-accordion alignRight>
|
|
52
80
|
<span slot="trigger">See code</span>
|
|
53
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
54
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
81
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/oval.html) -->
|
|
82
|
+
<!-- The below code snippet is automatically added from ../apiExamples/oval.html -->
|
|
55
83
|
|
|
56
84
|
```html
|
|
57
85
|
<auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
|
|
@@ -60,18 +88,21 @@ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute
|
|
|
60
88
|
```
|
|
61
89
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
62
90
|
</auro-accordion>
|
|
91
|
+
|
|
92
|
+
### Rectangle
|
|
93
|
+
|
|
63
94
|
<div class="exampleWrapper">
|
|
64
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
65
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
95
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/rectangle.html) -->
|
|
96
|
+
<!-- The below content is automatically added from ../apiExamples/rectangle.html -->
|
|
66
97
|
<auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
|
|
67
98
|
<auro-skeleton shape="rectangle" style="width: 400px; height: 150px"></auro-skeleton>
|
|
68
99
|
<auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
|
|
69
100
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
70
|
-
</div>
|
|
101
|
+
</div>
|
|
71
102
|
<auro-accordion alignRight>
|
|
72
103
|
<span slot="trigger">See code</span>
|
|
73
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
74
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
104
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/rectangle.html) -->
|
|
105
|
+
<!-- The below code snippet is automatically added from ../apiExamples/rectangle.html -->
|
|
75
106
|
|
|
76
107
|
```html
|
|
77
108
|
<auro-skeleton shape="rectangle" style="width: 100px; height: 50px"></auro-skeleton>
|
|
@@ -81,12 +112,83 @@ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute
|
|
|
81
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
113
|
</auro-accordion>
|
|
83
114
|
|
|
84
|
-
|
|
115
|
+
## Common Usage Patterns & Functional Examples
|
|
116
|
+
|
|
117
|
+
## Be creative
|
|
118
|
+
|
|
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.
|
|
120
|
+
|
|
121
|
+
<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 -->
|
|
150
|
+
</div>
|
|
151
|
+
<auro-accordion alignRight>
|
|
152
|
+
<span slot="trigger">See code</span>
|
|
153
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/table-example.html) -->
|
|
154
|
+
<!-- The below code snippet is automatically added from ../apiExamples/table-example.html -->
|
|
155
|
+
|
|
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
|
+
```
|
|
183
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
184
|
+
</auro-accordion>
|
|
185
|
+
|
|
186
|
+
## Restyle Component with CSS Variables
|
|
85
187
|
|
|
86
|
-
The component may be restyled
|
|
188
|
+
The component may be restyled by changing the values of the following token(s).
|
|
87
189
|
|
|
88
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
89
|
-
<!-- The below code snippet is automatically added from
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
191
|
+
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
90
192
|
|
|
91
193
|
```scss
|
|
92
194
|
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|