@aurodesignsystem-dev/auro-accordion 0.0.0-pr214.0 → 0.0.0-pr215.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/README.md +66 -59
- package/custom-elements.json +637 -995
- package/demo/api.md +760 -112
- package/demo/auro-accordion.min.js +6 -11
- package/demo/index.md +81 -84
- package/dist/{auro-accordion-B5LyAZiI.js → auro-accordion-Dlfg1ee3.js} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -43,20 +43,17 @@ Or, by CDN.
|
|
|
43
43
|
```
|
|
44
44
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
45
45
|
|
|
46
|
-
##
|
|
46
|
+
## UI development browser support
|
|
47
47
|
|
|
48
|
-
<!-- AURO-GENERATED-CONTENT:START (
|
|
49
|
-
|
|
50
|
-
The `<auro-accordion>` element should be used in situations where users may:
|
|
48
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
49
|
+
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
51
50
|
|
|
52
|
-
- Hide/show long sub-content based on headline trigger
|
|
53
|
-
- Use is for in-page content only when excessive content length is distracting to the specific experience
|
|
54
51
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
55
52
|
|
|
56
53
|
## Install
|
|
57
54
|
|
|
58
55
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
59
|
-
[](https://github.com/AlaskaAirlines/auro-accordion/actions/workflows/testPublish.yml)
|
|
60
57
|
[](https://www.npmjs.com/package/@aurodesignsystem/auro-accordion)
|
|
61
58
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
62
59
|

|
|
@@ -67,10 +64,17 @@ $ npm i @aurodesignsystem/auro-accordion
|
|
|
67
64
|
|
|
68
65
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
66
|
|
|
70
|
-
###
|
|
67
|
+
### Design Token CSS Custom Property dependency
|
|
68
|
+
|
|
69
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
70
|
+
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
71
|
+
|
|
72
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
73
|
+
|
|
74
|
+
### Define dependency in project component
|
|
71
75
|
|
|
72
76
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
73
|
-
Defining the dependency within each
|
|
77
|
+
Defining the component dependency within each component that is using the `<auro-accordion>` component.
|
|
74
78
|
|
|
75
79
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
76
80
|
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
@@ -80,20 +84,7 @@ import "@aurodesignsystem/auro-accordion";
|
|
|
80
84
|
```
|
|
81
85
|
|
|
82
86
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
83
|
-
|
|
84
|
-
### Use CDN
|
|
85
|
-
|
|
86
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
87
|
-
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.
|
|
88
|
-
|
|
89
|
-
```html
|
|
90
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm"></script>
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
|
-
|
|
95
|
-
## Basic Example
|
|
96
|
-
|
|
87
|
+
**Reference component in HTML**
|
|
97
88
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
98
89
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
99
90
|
|
|
@@ -116,48 +107,36 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
116
107
|
```
|
|
117
108
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
118
109
|
|
|
119
|
-
##
|
|
110
|
+
## Use CDN
|
|
120
111
|
|
|
121
|
-
|
|
122
|
-
|
|
112
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
113
|
+
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.
|
|
123
114
|
|
|
124
|
-
|
|
115
|
+
```html
|
|
116
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm"></script>
|
|
117
|
+
```
|
|
125
118
|
|
|
126
|
-
|
|
119
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
|
+
|
|
121
|
+
## auro-accordion use cases
|
|
127
122
|
|
|
128
|
-
|
|
123
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
124
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
125
|
+
The `<auro-accordion>` element should be used in situations where users may:
|
|
129
126
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<!-- add custom registration content here -->
|
|
127
|
+
- Hide/show long sub-content based on headline trigger
|
|
128
|
+
- Use is for in-page content only when excessive content length is distracting to the specific experience
|
|
133
129
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
</p>
|
|
142
|
-
<p>
|
|
143
|
-
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
144
|
-
</p>
|
|
145
|
-
<p>
|
|
146
|
-
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
147
|
-
</p>
|
|
148
|
-
<p>
|
|
149
|
-
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
150
|
-
</p>
|
|
151
|
-
</custom-accordion>
|
|
152
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
153
|
-
</div>
|
|
154
|
-
<auro-accordion alignRight>
|
|
155
|
-
<span slot="trigger">See code</span>
|
|
156
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
|
|
157
|
-
<!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
|
|
130
|
+
|
|
131
|
+
## API Code Examples
|
|
132
|
+
|
|
133
|
+
### Default auro-accordion
|
|
134
|
+
|
|
135
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
136
|
+
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
158
137
|
|
|
159
138
|
```html
|
|
160
|
-
<
|
|
139
|
+
<auro-accordion>
|
|
161
140
|
<span slot="trigger">Trigger</span>
|
|
162
141
|
<p>
|
|
163
142
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
@@ -171,7 +150,35 @@ You can do this by importing only the component class and using the `register(na
|
|
|
171
150
|
<p>
|
|
172
151
|
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
173
152
|
</p>
|
|
174
|
-
</
|
|
153
|
+
</auro-accordion>
|
|
175
154
|
```
|
|
176
155
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
177
|
-
|
|
156
|
+
|
|
157
|
+
## Development
|
|
158
|
+
|
|
159
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
160
|
+
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.
|
|
161
|
+
|
|
162
|
+
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.
|
|
163
|
+
|
|
164
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
165
|
+
|
|
166
|
+
### Start development environment
|
|
167
|
+
|
|
168
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
169
|
+
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**.
|
|
170
|
+
|
|
171
|
+
```shell
|
|
172
|
+
$ npm run dev
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
176
|
+
|
|
177
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
178
|
+
|
|
179
|
+
### Testing
|
|
180
|
+
|
|
181
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
182
|
+
Automated tests are required for every Auro component. See `.\test\auro-accordion.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.
|
|
183
|
+
|
|
184
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|