@aurodesignsystem/auro-skeleton 1.0.8 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [2.1.0](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.0.1...v2.1.0) (2022-06-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **bkgColor:** update gradient color ([c29135c](https://github.com/AlaskaAirlines/auro-skeleton/commit/c29135c5212c9316487efcdc6d377a7bb4689e47))
9
+
10
+ ## [2.0.1](https://github.com/AlaskaAirlines/auro-skeleton/compare/v2.0.0...v2.0.1) (2021-12-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **a11y:** update css to support a11y contrast [#16](https://github.com/AlaskaAirlines/auro-skeleton/issues/16) ([d7a175e](https://github.com/AlaskaAirlines/auro-skeleton/commit/d7a175e5a11a02b02f0682a1fbd63f7474d80f01))
16
+
17
+ # [2.0.0](https://github.com/AlaskaAirlines/auro-skeleton/compare/v1.0.8...v2.0.0) (2021-08-13)
18
+
19
+
20
+ ### chore
21
+
22
+ * **deps:** update packages ([056bc8d](https://github.com/AlaskaAirlines/auro-skeleton/commit/056bc8d618c8a0e5184ac2a5504119dc17fb99d4))
23
+
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ * **deps:** This update signals the official release of
28
+ @aurodesignsystem/auro-skeleton html custom element
29
+
3
30
  ## [1.0.8](https://github.com/AlaskaAirlines/auro-skeleton/compare/v1.0.7...v1.0.8) (2021-07-15)
4
31
 
5
32
 
package/README.md CHANGED
@@ -39,7 +39,7 @@ import "@aurodesignsystem/auro-skeleton";
39
39
  **Reference component in HTML**
40
40
 
41
41
  ```html
42
- <auro-skeleton shape="rectangle"></auro-skeleton>
42
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
43
43
  ```
44
44
 
45
45
  ## Install bundled assets from CDN
@@ -62,18 +62,14 @@ Since the legacy bundle includes many polyfills that are not needed by modern br
62
62
 
63
63
  ## auro-skeleton use cases
64
64
 
65
- The `<auro-skeleton>` element should be used in situations where users may:
66
-
67
- * ...
68
- * ...
69
- * ...
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.
70
66
 
71
67
  ## API Code Examples
72
68
 
73
69
  Default auro-skeleton
74
70
 
75
71
  ```html
76
- <auro-skeleton shape="rectangle"></auro-skeleton>
72
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
77
73
  ```
78
74
 
79
75
  ## Development
package/demo/demo.md CHANGED
@@ -1,22 +1,134 @@
1
1
  # Skeleton
2
2
 
3
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam convallis in tellus nec pellentesque. Integer bibendum ligula sit amet vehicula gravida. Maecenas accumsan, ligula vitae molestie iaculis, tellus mi laoreet ex [install instructions](https://auro.alaskaair.com/components/auro/button/install), ac malesuada velit dolor vel mi. Cras et rutrum urna. Sed mattis mi eu tortor ullamcorper, egestas bibendum mauris cursus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus viverra eros eget neque commodo vulputate. In tempus eu velit at dictum.
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.
4
4
 
5
- Nulla at augue facilisis `odio lobortis` molestie vitae a nulla.
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.
6
+
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.
12
+
13
+ ## Do not...
14
+ `auro-skeleton` should not be used on action components like `auro-button`, `auro-input` or `auro-radio`.
15
+
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
18
+
19
+ ### Circle
6
20
 
7
21
  <div class="exampleWrapper">
22
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
8
23
  <auro-skeleton shape="circle" style="width: 100px; height: 100px"></auro-skeleton>
9
- <auro-skeleton shape="oval" style="width: 200px; height: 100px;"></auro-skeleton>
10
- <auro-skeleton shape="rectangle" style="width: 800px; height: 300px"></auro-skeleton>
24
+ <auro-skeleton shape="circle" style="width: 300px; height: 300px"></auro-skeleton>
11
25
  </div>
12
26
 
13
27
  <auro-accordion lowProfile justifyRight>
14
28
  <span slot="trigger">See code</span>
15
29
 
16
30
  ```html
31
+ <auro-skeleton shape="circle" style="width: 40px; height: 40px"></auro-skeleton>
17
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
38
+
39
+ <div class="exampleWrapper">
40
+ <auro-skeleton shape="oval" style="width: 80px; height: 40px"></auro-skeleton>
18
41
  <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>
19
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
74
+
75
+ <div class="exampleWrapper">
76
+ <table class="auro_table">
77
+ <thead>
78
+ <tr>
79
+ <th>The table header</th>
80
+ <th>The table header</th>
81
+ </tr>
82
+ </thead>
83
+ <tbody>
84
+ <tr>
85
+ <td colspan="2">
86
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td colspan="2">
91
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td colspan="2">
96
+ <auro-skeleton shape="oval" style="height: 20px;"></auro-skeleton>
97
+ </td>
98
+ </tr>
99
+ </tbody>
100
+ </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>
20
132
  ```
21
133
 
22
134
  </auro-accordion>
@@ -17,7 +17,7 @@ import styleCss from "./style-css.js";
17
17
 
18
18
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
19
19
  /**
20
- * auro-skeleton provides users a way to indicate the loading of asynchronous content on a page.
20
+ * The auro-skeleton element provides users a way to indicate the loading of asynchronous content on a page.
21
21
  *
22
22
  * @attr {String} shape - Renders a circle, oval, or rectangle loader.
23
23
  */