@aurodesignsystem-dev/auro-hyperlink 0.0.0-pr316.1 → 0.0.0-pr318.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 +101 -39
- package/custom-elements.json +1511 -1831
- package/demo/api.md +29 -28
- package/demo/auro-hyperlink.min.js +60 -47
- package/demo/index.md +12 -0
- package/dist/{auro-hyperlink-isNf5eLk.js → auro-hyperlink-BbOKgPQQ.js} +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -15,68 +15,130 @@ The following sections are editable by making changes to the following files:
|
|
|
15
15
|
| Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
|
|
16
16
|
| Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
|
|
17
17
|
| Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
#
|
|
18
|
+
-->
|
|
19
|
+
|
|
20
|
+
# Hyperlink
|
|
21
21
|
|
|
22
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
23
|
-
<!--
|
|
24
|
-
|
|
23
|
+
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
24
|
+
`<auro-hyperlink>` is a wrapper components for an HTML `<a>` element containing styling and behavior.
|
|
25
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
25
26
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
|
|
26
|
-
<!--
|
|
27
|
+
<!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
|
|
28
|
+
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
29
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
30
|
+
|
|
31
|
+
## UI development browser support
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
31
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
33
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
34
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
32
35
|
|
|
36
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
37
|
+
|
|
33
38
|
## Install
|
|
34
39
|
|
|
35
40
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
[](https://github.com/AlaskaAirlines/auro-hyperlink/actions/workflows/testPublish.yml)
|
|
42
|
+
[](https://www.npmjs.com/package/@aurodesignsystem/auro-hyperlink)
|
|
43
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
```shell
|
|
47
|
+
$ npm i @aurodesignsystem/auro-hyperlink
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
51
|
+
|
|
52
|
+
### Design Token CSS Custom Property dependency
|
|
53
|
+
|
|
54
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
55
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
56
|
+
|
|
57
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
58
|
+
|
|
59
|
+
### Define dependency in project component
|
|
39
60
|
|
|
40
61
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
41
|
-
|
|
62
|
+
Defining the component dependency within each component that is using the `<auro-hyperlink>` component.
|
|
42
63
|
|
|
43
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
44
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
64
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
65
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
66
|
+
|
|
67
|
+
```js
|
|
68
|
+
import "@aurodesignsystem/auro-hyperlink";
|
|
69
|
+
```
|
|
45
70
|
|
|
46
|
-
|
|
71
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
72
|
+
**Reference component in HTML**
|
|
73
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
74
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<auro-hyperlink>No href supplied</auro-hyperlink><br>
|
|
78
|
+
Welcome to <auro-hyperlink href="https://www.alaskaair.com">Alaska Airlines</auro-hyperlink>.
|
|
79
|
+
```
|
|
80
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
81
|
+
|
|
82
|
+
## Use CDN
|
|
47
83
|
|
|
48
84
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Basic Example
|
|
85
|
+
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.
|
|
52
86
|
|
|
53
|
-
|
|
54
|
-
|
|
87
|
+
```html
|
|
88
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm"></script>
|
|
89
|
+
```
|
|
55
90
|
|
|
56
|
-
|
|
91
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
92
|
+
|
|
93
|
+
## auro-hyperlink use cases
|
|
57
94
|
|
|
58
|
-
|
|
59
|
-
The
|
|
95
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
96
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
97
|
+
The `<auro-hyperlink>` elements should be used in situations where users may:
|
|
98
|
+
|
|
99
|
+
* stand-alone link element for navigation
|
|
100
|
+
* inline link element for navigation
|
|
101
|
+
* optional role as button when hyperlink UI is needed for submit action
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
|
+
|
|
104
|
+
## API Code Examples
|
|
105
|
+
|
|
106
|
+
### Default auro-hyperlink
|
|
60
107
|
|
|
61
|
-
|
|
108
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
109
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<auro-hyperlink>No href supplied</auro-hyperlink><br>
|
|
113
|
+
Welcome to <auro-hyperlink href="https://www.alaskaair.com">Alaska Airlines</auro-hyperlink>.
|
|
114
|
+
```
|
|
115
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
116
|
+
|
|
117
|
+
## Development
|
|
62
118
|
|
|
63
|
-
|
|
119
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
120
|
+
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
64
121
|
|
|
65
|
-
|
|
122
|
+
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
|
|
66
123
|
|
|
67
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
68
|
-
|
|
124
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
125
|
+
|
|
126
|
+
### Start development environment
|
|
69
127
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
73
|
-
</div>
|
|
128
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
129
|
+
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
74
130
|
|
|
75
|
-
|
|
76
|
-
|
|
131
|
+
```shell
|
|
132
|
+
$ npm run dev
|
|
133
|
+
```
|
|
77
134
|
|
|
78
|
-
|
|
79
|
-
|
|
135
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
136
|
+
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
138
|
+
|
|
139
|
+
### Testing
|
|
80
140
|
|
|
81
|
-
|
|
141
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
142
|
+
Automated tests are required for every Auro component. See `.\test\auro-hyperlink.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
82
143
|
|
|
144
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|