@aurodesignsystem-dev/auro-slideshow 0.0.0-pr78.0 → 0.0.0-pr79.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/README.md +48 -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 +168 -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,44 @@ 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
|
-
|
|
140
130
|
// Register with a custom name if desired
|
|
141
|
-
AuroSlideshow.register('custom-slideshow')
|
|
142
|
-
```
|
|
131
|
+
AuroSlideshow.register('custom-slideshow');</code></pre>
|
|
143
132
|
|
|
144
133
|
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
134
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
135
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
136
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|
|
137
|
+
<!-- The below content is automatically added from ./apiExamples/custom.html -->
|
|
138
|
+
<custom-slideshow navigation>
|
|
139
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
140
|
+
<p>Slide 1</p>
|
|
141
|
+
</div>
|
|
142
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
143
|
+
<p>Slide 2</p>
|
|
144
|
+
</div>
|
|
145
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
146
|
+
<p>Slide 3</p>
|
|
147
|
+
</div>
|
|
148
|
+
</custom-slideshow>
|
|
149
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
161
150
|
</div>
|
|
162
151
|
<auro-accordion alignRight>
|
|
163
|
-
|
|
152
|
+
<span slot="trigger">See code</span>
|
|
164
153
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
165
154
|
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
166
155
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</custom-slideshow>
|
|
179
|
-
```
|
|
156
|
+
<pre class="language-html"><code class="language-html"><custom-slideshow navigation>
|
|
157
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
158
|
+
<p>Slide 1</p>
|
|
159
|
+
</div>
|
|
160
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
161
|
+
<p>Slide 2</p>
|
|
162
|
+
</div>
|
|
163
|
+
<div style="width: 400px; border: 2px solid #000; display: flex; justify-content: center;">
|
|
164
|
+
<p>Slide 3</p>
|
|
165
|
+
</div>
|
|
166
|
+
</custom-slideshow></code></pre>
|
|
180
167
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
181
168
|
</auro-accordion>
|