@aurodesignsystem-dev/auro-button 0.0.0-pr387.0 → 0.0.0-pr388.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 +13 -8
- package/custom-elements.json +16 -971
- package/demo/api.js +2 -2
- package/demo/api.md +538 -248
- package/demo/auro-button.min.js +4 -10
- package/demo/index.md +11 -380
- package/dist/index.d.ts +69 -69
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ The following sections are editable by making changes to the following files:
|
|
|
21
21
|
|
|
22
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
-
`<auro-button>`
|
|
24
|
+
The `<auro-button>` element creates interactive buttons for triggering actions in your application.
|
|
25
25
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
26
26
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
27
27
|
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
@@ -33,11 +33,7 @@ The following sections are editable by making changes to the following files:
|
|
|
33
33
|
|
|
34
34
|
Beyond that breakpoint `<auro-button>` will assume the width of the content or a min-width of `8.75rem`, which ever is greater.
|
|
35
35
|
|
|
36
|
-
If the desired appearance of the `<auro-button>` is to be placed in the reverse direction of natural content, then the attributes of `responsive` and `reverse` are needed on the `<auro-button>` element.
|
|
37
|
-
|
|
38
|
-
## Multi button support
|
|
39
|
-
|
|
40
|
-
When the UI requires the use of multiple buttons within the same space, with the use of the [Auro Web Core Style Sheets](https://alaskaairlines.github.io/WebCoreStyleSheets/#utility-auro-css-#{$scope}.auro_containedButtons), and the `auro_containedButtons`.
|
|
36
|
+
If the desired appearance of the `<auro-button>` is to be placed in the reverse direction of natural content, then the attributes of `responsive` and `reverse` are needed on the `<auro-button>` element.
|
|
41
37
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
42
38
|
|
|
43
39
|
## Use Cases
|
|
@@ -116,8 +112,17 @@ However, if you need to load multiple versions of the same component on a single
|
|
|
116
112
|
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
117
113
|
|
|
118
114
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
119
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
120
|
-
|
|
115
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
116
|
+
|
|
117
|
+
```js
|
|
118
|
+
// Import the class only
|
|
119
|
+
import { AuroButton } from '@aurodesignsystem/auro-button/class';
|
|
120
|
+
|
|
121
|
+
// Register with a custom name if desired
|
|
122
|
+
AuroButton.register('custom-button');
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
This will create a new custom element `<custom-button>` that behaves exactly like `<auro-button>`, allowing both to coexist on the same page without interfering with each other.
|
|
121
126
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
122
127
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
123
128
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|