@aurodesignsystem-dev/auro-carousel 0.0.0-pr142.2 → 0.0.0-pr142.3
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 +1 -1
- package/demo/api.md +5 -5
- package/demo/api.min.js +4 -4
- package/demo/index.md +5 -5
- package/demo/index.min.js +4 -4
- package/demo/readme.md +1 -1
- package/dist/{auro-carousel-acFfUyJs.js → auro-carousel-OBRWwlpL.js} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ The following sections are editable by making changes to the following files:
|
|
|
34
34
|
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
35
35
|
Use `<auro-carousel>` when people need to:
|
|
36
36
|
|
|
37
|
-
* Scroll through flight date options
|
|
37
|
+
* Scroll through flight date options, such as dates just before and after a chosen date
|
|
38
38
|
* Scroll through images
|
|
39
39
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
40
40
|
|
package/demo/api.md
CHANGED
|
@@ -41,8 +41,8 @@ Displays a group of elements, such as flight date options or images, in a horizo
|
|
|
41
41
|
| Name | Description |
|
|
42
42
|
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
43
43
|
| (default) | The elements to scroll through, such as `auro-pane` elements or images. |
|
|
44
|
-
| ariaLabel.scroll.left | Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll
|
|
45
|
-
| ariaLabel.scroll.right | Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll
|
|
44
|
+
| ariaLabel.scroll.left | Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll left". |
|
|
45
|
+
| ariaLabel.scroll.right | Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll right". |
|
|
46
46
|
| ariaLabel | Text that screen readers announce as the carousel's name, for example "Flight date options". Required unless you set the deprecated `label` attribute, and takes priority over it when both are set. |
|
|
47
47
|
|
|
48
48
|
### CSS shadow parts
|
|
@@ -108,7 +108,7 @@ Displays a group of elements, such as flight date options or images, in a horizo
|
|
|
108
108
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
109
109
|
</auro-accordion>
|
|
110
110
|
|
|
111
|
-
## Property
|
|
111
|
+
## Property and attribute examples
|
|
112
112
|
|
|
113
113
|
#### Center selected
|
|
114
114
|
|
|
@@ -291,7 +291,7 @@ Use the `scrollDistance` attribute to set how many pixels the carousel scrolls w
|
|
|
291
291
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
292
292
|
</auro-accordion>
|
|
293
293
|
|
|
294
|
-
## Method
|
|
294
|
+
## Method examples
|
|
295
295
|
|
|
296
296
|
#### Center element
|
|
297
297
|
|
|
@@ -415,7 +415,7 @@ This example doesn't use `centerSelected`, so it doesn't center the selected pan
|
|
|
415
415
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
416
416
|
</auro-accordion>
|
|
417
417
|
|
|
418
|
-
## Slot
|
|
418
|
+
## Slot examples
|
|
419
419
|
|
|
420
420
|
### Aria label slots
|
|
421
421
|
|
package/demo/api.min.js
CHANGED
|
@@ -338,8 +338,8 @@ var tokensCss = i$5`:host{--ds-auro-carousel-gradient-color-one: var(--ds-basic-
|
|
|
338
338
|
*
|
|
339
339
|
* @slot - The elements to scroll through, such as `auro-pane` elements or images.
|
|
340
340
|
* @slot ariaLabel - Text that screen readers announce as the carousel's name, for example "Flight date options". Required unless you set the deprecated `label` attribute, and takes priority over it when both are set.
|
|
341
|
-
* @slot ariaLabel.scroll.left - Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll
|
|
342
|
-
* @slot ariaLabel.scroll.right - Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll
|
|
341
|
+
* @slot ariaLabel.scroll.left - Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll left".
|
|
342
|
+
* @slot ariaLabel.scroll.right - Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll right".
|
|
343
343
|
*
|
|
344
344
|
* @csspart wrapper - The scrollable `<div>` that wraps the scroll buttons and the slotted elements.
|
|
345
345
|
*
|
|
@@ -705,7 +705,7 @@ class AuroCarousel extends i$2 {
|
|
|
705
705
|
|
|
706
706
|
<!-- Left button -->
|
|
707
707
|
<${this.buttonTag}
|
|
708
|
-
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.left') || 'Scroll
|
|
708
|
+
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.left') || 'Scroll left')}"
|
|
709
709
|
shape="circle"
|
|
710
710
|
variant="secondary"
|
|
711
711
|
@click=${() => this.handleClick(false)}
|
|
@@ -721,7 +721,7 @@ class AuroCarousel extends i$2 {
|
|
|
721
721
|
|
|
722
722
|
<!-- Right button -->
|
|
723
723
|
<${this.buttonTag}
|
|
724
|
-
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.right') || 'Scroll
|
|
724
|
+
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.right') || 'Scroll right')}"
|
|
725
725
|
shape="circle"
|
|
726
726
|
variant="secondary"
|
|
727
727
|
@click=${() => this.handleClick(true)}
|
package/demo/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
|
|
3
|
-
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE
|
|
3
|
+
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE. THE BASIC EXAMPLE IS USUALLY ENOUGH.
|
|
4
4
|
ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
|
|
5
5
|
-->
|
|
6
6
|
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
`<auro-carousel>` is an [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) that displays a group of elements in a scrollable container.
|
|
12
12
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
13
13
|
|
|
14
|
-
## Use
|
|
14
|
+
## Use cases
|
|
15
15
|
|
|
16
16
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
|
|
17
17
|
<!-- The below content is automatically added from ./../docs/partials/useCases.md -->
|
|
18
18
|
Use `<auro-carousel>` when people need to:
|
|
19
19
|
|
|
20
|
-
* Scroll through flight date options
|
|
20
|
+
* Scroll through flight date options, such as dates just before and after a chosen date
|
|
21
21
|
* Scroll through images
|
|
22
22
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
23
23
|
|
|
24
|
-
##
|
|
25
|
-
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
26
|
### Basic
|
|
27
27
|
|
|
28
28
|
<div class="exampleWrapper">
|
package/demo/index.min.js
CHANGED
|
@@ -320,8 +320,8 @@ var tokensCss = i$5`:host{--ds-auro-carousel-gradient-color-one: var(--ds-basic-
|
|
|
320
320
|
*
|
|
321
321
|
* @slot - The elements to scroll through, such as `auro-pane` elements or images.
|
|
322
322
|
* @slot ariaLabel - Text that screen readers announce as the carousel's name, for example "Flight date options". Required unless you set the deprecated `label` attribute, and takes priority over it when both are set.
|
|
323
|
-
* @slot ariaLabel.scroll.left - Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll
|
|
324
|
-
* @slot ariaLabel.scroll.right - Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll
|
|
323
|
+
* @slot ariaLabel.scroll.left - Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll left".
|
|
324
|
+
* @slot ariaLabel.scroll.right - Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll right".
|
|
325
325
|
*
|
|
326
326
|
* @csspart wrapper - The scrollable `<div>` that wraps the scroll buttons and the slotted elements.
|
|
327
327
|
*
|
|
@@ -687,7 +687,7 @@ class AuroCarousel extends i$2 {
|
|
|
687
687
|
|
|
688
688
|
<!-- Left button -->
|
|
689
689
|
<${this.buttonTag}
|
|
690
|
-
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.left') || 'Scroll
|
|
690
|
+
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.left') || 'Scroll left')}"
|
|
691
691
|
shape="circle"
|
|
692
692
|
variant="secondary"
|
|
693
693
|
@click=${() => this.handleClick(false)}
|
|
@@ -703,7 +703,7 @@ class AuroCarousel extends i$2 {
|
|
|
703
703
|
|
|
704
704
|
<!-- Right button -->
|
|
705
705
|
<${this.buttonTag}
|
|
706
|
-
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.right') || 'Scroll
|
|
706
|
+
aria-label="${o(this.runtimeUtils.getSlotText(this, 'ariaLabel.scroll.right') || 'Scroll right')}"
|
|
707
707
|
shape="circle"
|
|
708
708
|
variant="secondary"
|
|
709
709
|
@click=${() => this.handleClick(true)}
|
package/demo/readme.md
CHANGED
|
@@ -34,7 +34,7 @@ The following sections are editable by making changes to the following files:
|
|
|
34
34
|
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
35
35
|
Use `<auro-carousel>` when people need to:
|
|
36
36
|
|
|
37
|
-
* Scroll through flight date options
|
|
37
|
+
* Scroll through flight date options, such as dates just before and after a chosen date
|
|
38
38
|
* Scroll through images
|
|
39
39
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
40
40
|
|
|
@@ -117,7 +117,7 @@ import{css as e,LitElement as t,html as s}from"lit";import{unsafeStatic as o,lit
|
|
|
117
117
|
|
|
118
118
|
<!-- Left button -->
|
|
119
119
|
<${this.buttonTag}
|
|
120
|
-
aria-label="${n(this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.left")||"Scroll
|
|
120
|
+
aria-label="${n(this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.left")||"Scroll left")}"
|
|
121
121
|
shape="circle"
|
|
122
122
|
variant="secondary"
|
|
123
123
|
@click=${()=>this.handleClick(!1)}
|
|
@@ -133,7 +133,7 @@ import{css as e,LitElement as t,html as s}from"lit";import{unsafeStatic as o,lit
|
|
|
133
133
|
|
|
134
134
|
<!-- Right button -->
|
|
135
135
|
<${this.buttonTag}
|
|
136
|
-
aria-label="${n(this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.right")||"Scroll
|
|
136
|
+
aria-label="${n(this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.right")||"Scroll right")}"
|
|
137
137
|
shape="circle"
|
|
138
138
|
variant="secondary"
|
|
139
139
|
@click=${()=>this.handleClick(!0)}
|
package/dist/index.d.ts
CHANGED
|
@@ -158,8 +158,8 @@ export type CustomElements = {
|
|
|
158
158
|
* Areas where markup can be added to the component.
|
|
159
159
|
*
|
|
160
160
|
* - `(default)`: The elements to scroll through, such as `auro-pane` elements or images.
|
|
161
|
-
* - `ariaLabel.scroll.left`: Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll
|
|
162
|
-
* - `ariaLabel.scroll.right`: Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll
|
|
161
|
+
* - `ariaLabel.scroll.left`: Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll left".
|
|
162
|
+
* - `ariaLabel.scroll.right`: Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll right".
|
|
163
163
|
* - `ariaLabel`: Text that screen readers announce as the carousel's name, for example "Flight date options". Required unless you set the deprecated `label` attribute, and takes priority over it when both are set.
|
|
164
164
|
*
|
|
165
165
|
* ## Methods
|
|
@@ -222,8 +222,8 @@ export type CustomElementsSolidJs = {
|
|
|
222
222
|
* Areas where markup can be added to the component.
|
|
223
223
|
*
|
|
224
224
|
* - `(default)`: The elements to scroll through, such as `auro-pane` elements or images.
|
|
225
|
-
* - `ariaLabel.scroll.left`: Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll
|
|
226
|
-
* - `ariaLabel.scroll.right`: Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll
|
|
225
|
+
* - `ariaLabel.scroll.left`: Text that screen readers announce for the left scroll button, for example "Show earlier dates". Defaults to "Scroll left".
|
|
226
|
+
* - `ariaLabel.scroll.right`: Text that screen readers announce for the right scroll button, for example "Show later dates". Defaults to "Scroll right".
|
|
227
227
|
* - `ariaLabel`: Text that screen readers announce as the carousel's name, for example "Flight date options". Required unless you set the deprecated `label` attribute, and takes priority over it when both are set.
|
|
228
228
|
*
|
|
229
229
|
* ## Methods
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AuroCarousel}from"./auro-carousel-
|
|
1
|
+
export{A as AuroCarousel}from"./auro-carousel-OBRWwlpL.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as i}from"./auro-carousel-
|
|
1
|
+
import{A as i}from"./auro-carousel-OBRWwlpL.js";import"lit";import"lit/static-html.js";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";i.register();
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-carousel",
|
|
10
|
-
"version": "0.0.0-pr142.
|
|
10
|
+
"version": "0.0.0-pr142.3",
|
|
11
11
|
"description": "auro-carousel HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|