@aurodesignsystem-dev/auro-slideshow 0.0.0-pr77.0 → 0.0.0-pr79.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 +49 -61
- package/custom-elements.json +643 -0
- package/demo/api.md +539 -565
- package/demo/api.min.js +3349 -1
- package/demo/index.md +76 -80
- package/demo/index.min.js +3349 -1
- package/demo/readme.md +169 -0
- package/dist/{auro-slideshow-B2IA2NHn.js → auro-slideshow-Di9AtYIy.js} +5 -5
- package/dist/index.d.ts +237 -107
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +5 -3
- package/demo/auro-slideshow.min.js +0 -3341
package/README.md
CHANGED
|
@@ -62,9 +62,7 @@ The `<auro-slideshow>` element should be used in situations where:
|
|
|
62
62
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
63
63
|

|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
$ npm i @aurodesignsystem/auro-slideshow
|
|
67
|
-
```
|
|
65
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-slideshow</code></pre>
|
|
68
66
|
|
|
69
67
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
70
68
|
|
|
@@ -76,9 +74,7 @@ Defining the dependency within each project that is using the `<auro-slideshow>`
|
|
|
76
74
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
77
75
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
import "@aurodesignsystem/auro-slideshow";
|
|
81
|
-
```
|
|
77
|
+
<pre class="language-js"><code class="language-js">import "@aurodesignsystem/auro-slideshow";</code></pre>
|
|
82
78
|
|
|
83
79
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
84
80
|
|
|
@@ -87,9 +83,7 @@ import "@aurodesignsystem/auro-slideshow";
|
|
|
87
83
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
88
84
|
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.
|
|
89
85
|
|
|
90
|
-
|
|
91
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-slideshow@latest/+esm"></script>
|
|
92
|
-
```
|
|
86
|
+
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-slideshow@latest/+esm"></script></code></pre>
|
|
93
87
|
|
|
94
88
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
89
|
|
|
@@ -98,25 +92,23 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
98
92
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
99
93
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
100
94
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
</auro-slideshow>
|
|
119
|
-
```
|
|
95
|
+
<pre class="language-html"><code class="language-html"><auro-slideshow>
|
|
96
|
+
<div style="height: 480px">
|
|
97
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=1" alt="Random image 1">
|
|
98
|
+
</div>
|
|
99
|
+
<div style="height: 480px">
|
|
100
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=2" alt="Random image 2">
|
|
101
|
+
</div>
|
|
102
|
+
<div style="height: 480px">
|
|
103
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=3" alt="Random image 3">
|
|
104
|
+
</div>
|
|
105
|
+
<div style="height: 480px">
|
|
106
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=4" alt="Random image 4">
|
|
107
|
+
</div>
|
|
108
|
+
<div style="height: 480px">
|
|
109
|
+
<img style="object-fit: cover;" src="https://picsum.photos/1000/480?random=5" alt="Random image 5">
|
|
110
|
+
</div>
|
|
111
|
+
</auro-slideshow></code></pre>
|
|
120
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
121
113
|
|
|
122
114
|
## Custom Component Registration for Version Management
|
|
@@ -133,49 +125,45 @@ You can do this by importing only the component class and using the `register(na
|
|
|
133
125
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
134
126
|
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
135
127
|
|
|
136
|
-
|
|
137
|
-
// Import the class only
|
|
128
|
+
<pre class="language-js"><code class="language-js">// Import the class only
|
|
138
129
|
import { AuroSlideshow } from '@aurodesignsystem/auro-slideshow/class';
|
|
139
|
-
|
|
130
|
+
|
|
140
131
|
// Register with a custom name if desired
|
|
141
|
-
AuroSlideshow.register('custom-slideshow')
|
|
142
|
-
```
|
|
132
|
+
AuroSlideshow.register('custom-slideshow');</code></pre>
|
|
143
133
|
|
|
144
134
|
This will create a new custom element `<custom-slideshow>` that behaves exactly like `<auro-slideshow>`, allowing both to coexist on the same page without interfering with each other.
|
|
145
135
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
136
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
|
138
|
+
<!-- The below content is automatically added from ./apiExamples/custom.html -->
|
|
139
|
+
<custom-slideshow navigation>
|
|
140
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
141
|
+
<p>Slide 1</p>
|
|
142
|
+
</div>
|
|
143
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
144
|
+
<p>Slide 2</p>
|
|
145
|
+
</div>
|
|
146
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
147
|
+
<p>Slide 3</p>
|
|
148
|
+
</div>
|
|
149
|
+
</custom-slideshow>
|
|
150
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
161
151
|
</div>
|
|
162
152
|
<auro-accordion alignRight>
|
|
163
|
-
|
|
153
|
+
<span slot="trigger">See code</span>
|
|
164
154
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
165
155
|
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
166
156
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</custom-slideshow>
|
|
179
|
-
```
|
|
157
|
+
<pre class="language-html"><code class="language-html"><custom-slideshow navigation>
|
|
158
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
159
|
+
<p>Slide 1</p>
|
|
160
|
+
</div>
|
|
161
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
162
|
+
<p>Slide 2</p>
|
|
163
|
+
</div>
|
|
164
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
165
|
+
<p>Slide 3</p>
|
|
166
|
+
</div>
|
|
167
|
+
</custom-slideshow></code></pre>
|
|
180
168
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
181
169
|
</auro-accordion>
|