@aurodesignsystem-dev/auro-carousel 0.0.0-pr106.0 → 0.0.0-pr106.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/demo/api.md +6 -6
- package/demo/auro-carousel.min.js +1 -1
- package/package.json +3 -3
package/demo/api.md
CHANGED
|
@@ -16,12 +16,12 @@ The `auro-carousel` element displays a group of elements in a scrollable contain
|
|
|
16
16
|
|
|
17
17
|
### Methods
|
|
18
18
|
|
|
19
|
-
| Name | Parameters | Return
|
|
20
|
-
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
-
| centerElement | `el` (Element) - The element to center inside the carousel. Must be a descendant of the carousel. |
|
|
22
|
-
| register | `name` (string) - The name of the element that you want to register. |
|
|
23
|
-
| scrollCarousel | `num` (number) - The number of pixels to scroll the carousel by. Positive scrolls to the<br>right, negative scrolls to the left. |
|
|
24
|
-
| scrollToSelected | None |
|
|
19
|
+
| Name | Parameters | Return | Description |
|
|
20
|
+
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------- |
|
|
21
|
+
| centerElement | `el` (Element) - The element to center inside the carousel. Must be a descendant of the carousel. | void | Centers the given element inside the carousel. |
|
|
22
|
+
| register | `name` (string) - The name of the element that you want to register. | void | This will register this element with the browser. |
|
|
23
|
+
| scrollCarousel | `num` (number) - The number of pixels to scroll the carousel by. Positive scrolls to the<br>right, negative scrolls to the left. | void | Scrolls the carousel by the given amount. |
|
|
24
|
+
| scrollToSelected | None | void | Scroll to the first child component that have 'selected' attribute. |
|
|
25
25
|
|
|
26
26
|
### Events
|
|
27
27
|
|
|
@@ -372,7 +372,7 @@ class AuroCarousel extends i$2 {
|
|
|
372
372
|
*
|
|
373
373
|
* @example
|
|
374
374
|
* AuroCarousel.register("custom-carousel") // this will register this element to <custom-carousel/>
|
|
375
|
-
*
|
|
375
|
+
* @returns {void}
|
|
376
376
|
*/
|
|
377
377
|
static register(name = "auro-carousel") {
|
|
378
378
|
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCarousel);
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-carousel",
|
|
10
|
-
"version": "0.0.0-pr106.
|
|
10
|
+
"version": "0.0.0-pr106.1",
|
|
11
11
|
"description": "auro-carousel HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@aurodesignsystem/auro-button": "^12.3.0",
|
|
28
|
-
"@aurodesignsystem/auro-cli": "^3.5.
|
|
28
|
+
"@aurodesignsystem/auro-cli": "^3.5.1",
|
|
29
29
|
"@aurodesignsystem/auro-config": "^1.3.1",
|
|
30
30
|
"@aurodesignsystem/auro-icon": "^9.1.1",
|
|
31
31
|
"@aurodesignsystem/auro-library": "^5.5.4",
|
|
32
|
-
"@aurodesignsystem/design-tokens": "^8.
|
|
32
|
+
"@aurodesignsystem/design-tokens": "^8.8.2",
|
|
33
33
|
"@aurodesignsystem/webcorestylesheets": "^10.1.4",
|
|
34
34
|
"husky": "^9.1.7"
|
|
35
35
|
},
|