@aurodesignsystem-dev/auro-hyperlink 0.0.0-pr322.0 → 0.0.0-pr328.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 +12 -3
- package/custom-elements.json +64 -1799
- package/demo/a11y.html +3 -3
- package/demo/a11y.md +11 -9
- package/demo/api.html +2 -2
- package/demo/api.js +2 -1
- package/demo/api.md +311 -168
- package/demo/api.min.js +14 -1
- package/demo/auro-hyperlink.min.js +64 -52
- package/demo/index.html +2 -2
- package/demo/index.js +0 -2
- package/demo/index.md +23 -259
- package/demo/index.min.js +0 -31
- package/dist/{auro-hyperlink-isNf5eLk.js → auro-hyperlink-SowfvvPT.js} +4 -4
- package/dist/index.d.ts +227 -124
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +9 -5
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-hyperlink>` is a wrapper
|
|
24
|
+
The `<auro-hyperlink>` element is a wrapper element for an HTML `<a>` element containing styling and behavior.
|
|
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 -->
|
|
@@ -101,8 +101,17 @@ However, if you need to load multiple versions of the same component on a single
|
|
|
101
101
|
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
102
102
|
|
|
103
103
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
104
|
-
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
-
|
|
104
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
105
|
+
|
|
106
|
+
```js
|
|
107
|
+
// Import the class only
|
|
108
|
+
import { AuroHyperlink } from '@aurodesignsystem/auro-hyperlink/class';
|
|
109
|
+
|
|
110
|
+
// Register with a custom name if desired
|
|
111
|
+
AuroHyperlink.register('custom-hyperlink');
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
This will create a new custom element `<custom-hyperlink>` that behaves exactly like `<auro-hyperlink>`, allowing both to coexist on the same page without interfering with each other.
|
|
106
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
116
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
108
117
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
|