@aurodesignsystem-dev/auro-accordion 0.0.0-pr214.0 → 0.0.0-pr215.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 CHANGED
@@ -43,20 +43,17 @@ Or, by CDN.
43
43
  ```
44
44
  <!-- AURO-GENERATED-CONTENT:END -->
45
45
 
46
- ## Use Cases
46
+ ## UI development browser support
47
47
 
48
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
49
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
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
- [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-accordion/release.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-accordion/actions/workflows/release.yml)
56
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-accordion/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-accordion/actions/workflows/testPublish.yml)
60
57
  [![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-accordion?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-accordion)
61
58
  [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-accordion?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
62
59
  ![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge)
@@ -67,10 +64,17 @@ $ npm i @aurodesignsystem/auro-accordion
67
64
 
68
65
  <!-- AURO-GENERATED-CONTENT:END -->
69
66
 
70
- ### Define Dependency in Project
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 project that is using the `<auro-accordion>` component.
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
- ## Custom Component Registration for Version Management
110
+ ## Use CDN
120
111
 
121
- There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
122
- The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
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
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
115
+ ```html
116
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm"></script>
117
+ ```
125
118
 
126
- However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
119
+ <!-- AURO-GENERATED-CONTENT:END -->
120
+
121
+ ## auro-accordion use cases
127
122
 
128
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
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
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
131
- <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
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
- <div class="exampleWrapper exampleWrapper--flex">
135
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
136
- <!-- The below content is automatically added from ./apiExamples/custom.html -->
137
- <custom-accordion>
138
- <span slot="trigger">Trigger</span>
139
- <p>
140
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
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
- <custom-accordion>
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
- </custom-accordion>
153
+ </auro-accordion>
175
154
  ```
176
155
  <!-- AURO-GENERATED-CONTENT:END -->
177
- </auro-accordion>
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 -->