@aurodesignsystem-dev/auro-drawer 0.0.0-pr131.1 → 0.0.0-pr131.10

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
@@ -47,9 +47,7 @@ The `auro-drawer` component should be used in situations where users may:
47
47
  [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-drawer?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0)
48
48
  ![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge)
49
49
 
50
- ```shell
51
- $ npm i @aurodesignsystem/auro-drawer
52
- ```
50
+ <pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-drawer</code></pre>
53
51
 
54
52
  <!-- AURO-GENERATED-CONTENT:END -->
55
53
 
@@ -61,9 +59,7 @@ Defining the dependency within each project that is using the `<auro-drawer>` co
61
59
  <!-- AURO-GENERATED-CONTENT:END -->
62
60
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
63
61
 
64
- ```js
65
- import "@aurodesignsystem/auro-drawer";
66
- ```
62
+ <pre class="language-js"><code class="language-js">import "@aurodesignsystem/auro-drawer";</code></pre>
67
63
 
68
64
  <!-- AURO-GENERATED-CONTENT:END -->
69
65
 
@@ -72,9 +68,7 @@ import "@aurodesignsystem/auro-drawer";
72
68
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
73
69
  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.
74
70
 
75
- ```html
76
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm"></script>
77
- ```
71
+ <pre class="language-html"><code class="language-html">&lt;script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm"&gt;&lt;/script&gt;</code></pre>
78
72
 
79
73
  <!-- AURO-GENERATED-CONTENT:END -->
80
74
 
@@ -83,28 +77,26 @@ In cases where the project is not able to process JS assets, there are pre-proce
83
77
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
84
78
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
85
79
 
86
- ```html
87
- <div>
88
- <auro-button id="openBasic">Open default drawer</auro-button>
89
- </div>
90
- <auro-drawer id="defaultDrawer">
91
- <span slot="header">Default Drawer</span>
92
- <div slot="content">
93
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
94
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
95
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
96
- <ul>
97
- <li>Caerphilly croque monsieur fondue</li>
98
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
99
- <li>Cheddar cheese and biscuits chalk and cheese</li>
100
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
101
- </ul>
102
- </div>
103
- <div slot="footer">
104
- <auro-button secondary id="closeBasic">Close</auro-button>
105
- </div>
106
- </auro-drawer>
107
- ```
80
+ <pre class="language-html"><code class="language-html">&lt;div&gt;
81
+ &lt;auro-button id="openBasic"&gt;Open default drawer&lt;/auro-button&gt;
82
+ &lt;/div&gt;
83
+ &lt;auro-drawer id="defaultDrawer"&gt;
84
+ &lt;span slot="header"&gt;Default Drawer&lt;/span&gt;
85
+ &lt;div slot="content"&gt;
86
+ &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
87
+ &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
88
+ &lt;auro-header level="3" display="500"&gt;Before checking your bags, remember to:&lt;/auro-header&gt;
89
+ &lt;ul&gt;
90
+ &lt;li&gt;Caerphilly croque monsieur fondue&lt;/li&gt;
91
+ &lt;li&gt;Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings&lt;/li&gt;
92
+ &lt;li&gt;Cheddar cheese and biscuits chalk and cheese&lt;/li&gt;
93
+ &lt;li&gt;Camembert de normandie stinking bishop bavarian bergkase&lt;/li&gt;
94
+ &lt;/ul&gt;
95
+ &lt;/div&gt;
96
+ &lt;div slot="footer"&gt;
97
+ &lt;auro-button secondary id="closeBasic"&gt;Close&lt;/auro-button&gt;
98
+ &lt;/div&gt;
99
+ &lt;/auro-drawer&gt;</code></pre>
108
100
  <!-- AURO-GENERATED-CONTENT:END -->
109
101
 
110
102
  ## Custom Component Registration for Version Management
@@ -121,67 +113,63 @@ You can do this by importing only the component class and using the `register(na
121
113
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
122
114
  <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
123
115
 
124
- ```js
125
- // Import the class only
116
+ <pre class="language-js"><code class="language-js">// Import the class only
126
117
  import { AuroDrawer } from '@aurodesignsystem/auro-drawer/class';
127
-
118
+
128
119
  // Register with a custom name if desired
129
- AuroDrawer.register('custom-drawer');
130
- ```
120
+ AuroDrawer.register('custom-drawer');</code></pre>
131
121
 
132
122
  This will create a new custom element `<custom-drawer>` that behaves exactly like `<auro-drawer>`, allowing both to coexist on the same page without interfering with each other.
133
123
  <!-- AURO-GENERATED-CONTENT:END -->
134
124
  <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
- <div>
138
- <auro-button id="openCustom">Open custom drawer</auro-button>
139
- </div>
140
- <custom-drawer id="customDrawer">
141
- <span slot="header">Custom Drawer</span>
142
- <div slot="content">
143
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
144
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
145
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
146
- <ul>
147
- <li>Caerphilly croque monsieur fondue</li>
148
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
149
- <li>Cheddar cheese and biscuits chalk and cheese</li>
150
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
151
- </ul>
152
- </div>
153
- <div slot="footer">
154
- <auro-button secondary id="closeCustom">Close</auro-button>
155
- </div>
156
- </custom-drawer>
157
- <!-- AURO-GENERATED-CONTENT:END -->
125
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./apiExamples/custom.html) -->
126
+ <!-- The below content is automatically added from ./apiExamples/custom.html -->
127
+ <div>
128
+ <auro-button id="openCustom">Open custom drawer</auro-button>
129
+ </div>
130
+ <custom-drawer id="customDrawer">
131
+ <span slot="header">Custom Drawer</span>
132
+ <div slot="content">
133
+ <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
134
+ <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
135
+ <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
136
+ <ul>
137
+ <li>Caerphilly croque monsieur fondue</li>
138
+ <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
139
+ <li>Cheddar cheese and biscuits chalk and cheese</li>
140
+ <li>Camembert de normandie stinking bishop bavarian bergkase</li>
141
+ </ul>
142
+ </div>
143
+ <div slot="footer">
144
+ <auro-button secondary id="closeCustom">Close</auro-button>
145
+ </div>
146
+ </custom-drawer>
147
+ <!-- AURO-GENERATED-CONTENT:END -->
158
148
  </div>
159
149
  <auro-accordion alignRight>
160
- <span slot="trigger">See code</span>
150
+ <span slot="trigger">See code</span>
161
151
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/custom.html) -->
162
152
  <!-- The below code snippet is automatically added from ./apiExamples/custom.html -->
163
153
 
164
- ```html
165
- <div>
166
- <auro-button id="openCustom">Open custom drawer</auro-button>
167
- </div>
168
- <custom-drawer id="customDrawer">
169
- <span slot="header">Custom Drawer</span>
170
- <div slot="content">
171
- <p>When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See <auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank">alaskaair.com/bagrules</auro-hyperlink> for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.</p>
172
- <p>Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.</p>
173
- <auro-header level="3" display="500">Before checking your bags, remember to:</auro-header>
174
- <ul>
175
- <li>Caerphilly croque monsieur fondue</li>
176
- <li>Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings</li>
177
- <li>Cheddar cheese and biscuits chalk and cheese</li>
178
- <li>Camembert de normandie stinking bishop bavarian bergkase</li>
179
- </ul>
180
- </div>
181
- <div slot="footer">
182
- <auro-button secondary id="closeCustom">Close</auro-button>
183
- </div>
184
- </custom-drawer>
185
- ```
154
+ <pre class="language-html"><code class="language-html">&lt;div&gt;
155
+ &lt;auro-button id="openCustom"&gt;Open custom drawer&lt;/auro-button&gt;
156
+ &lt;/div&gt;
157
+ &lt;custom-drawer id="customDrawer"&gt;
158
+ &lt;span slot="header"&gt;Custom Drawer&lt;/span&gt;
159
+ &lt;div slot="content"&gt;
160
+ &lt;p&gt;When traveling on Alaska Airlines flights, Alaska Airlines checked baggage fees may apply. See &lt;auro-hyperlink href="https://www.alaskaair.com/bagrules" target="_blank"&gt;alaskaair.com/bagrules&lt;/auro-hyperlink&gt; for our rules. For itineraries that include other airlines, their checked baggage fees may apply, as displayed on their websites.&lt;/p&gt;
161
+ &lt;p&gt;Baggage rules and fees will be based on the specific itinerary chosen. The applicable first and second bag fees will be displayed after you have added flights to the cart.&lt;/p&gt;
162
+ &lt;auro-header level="3" display="500"&gt;Before checking your bags, remember to:&lt;/auro-header&gt;
163
+ &lt;ul&gt;
164
+ &lt;li&gt;Caerphilly croque monsieur fondue&lt;/li&gt;
165
+ &lt;li&gt;Taleggio goat mascarpone cow manchego cheese and wine emmental cheese strings&lt;/li&gt;
166
+ &lt;li&gt;Cheddar cheese and biscuits chalk and cheese&lt;/li&gt;
167
+ &lt;li&gt;Camembert de normandie stinking bishop bavarian bergkase&lt;/li&gt;
168
+ &lt;/ul&gt;
169
+ &lt;/div&gt;
170
+ &lt;div slot="footer"&gt;
171
+ &lt;auro-button secondary id="closeCustom"&gt;Close&lt;/auro-button&gt;
172
+ &lt;/div&gt;
173
+ &lt;/custom-drawer&gt;</code></pre>
186
174
  <!-- AURO-GENERATED-CONTENT:END -->
187
175
  </auro-accordion>
package/demo/api.html CHANGED
@@ -50,6 +50,7 @@
50
50
  </script>
51
51
  <script type="module">
52
52
  import { initExamples } from './api.min.js';
53
+
53
54
  initExamples();
54
55
  </script>
55
56
 
package/demo/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { initUnformattedExample } from "../apiExamples/unformatted.js";
1
+ import { initAriaLabelSlotExample } from "../apiExamples/aria-label-slot.js";
2
2
  import { initBasicExample } from "../apiExamples/basic";
3
3
  import { initCloseButtonAppearanceExample } from "../apiExamples/close-button-appearance.js";
4
4
  import { initCustomizedExample } from "../apiExamples/customizing.js";
@@ -8,7 +8,7 @@ import { initNestedExample } from "../apiExamples/nested";
8
8
  import { initPlacementExample } from "../apiExamples/placement.js";
9
9
  import { initPopoverAndDropdownExample } from "../apiExamples/popover-and-dropdown.js";
10
10
  import { initSizeOptionsExample } from "../apiExamples/size-options.js";
11
- import { initAriaLabelSlotExample } from "../apiExamples/aria-label-slot.js";
11
+ import { initUnformattedExample } from "../apiExamples/unformatted.js";
12
12
 
13
13
  import "../src/registered.js";
14
14