@aurodesignsystem/auro-formkit 2.0.0-beta.51 → 2.0.0-beta.53

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +27 -6
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +4 -3
  5. package/components/bibtemplate/dist/registered.js +4 -3
  6. package/components/checkbox/README.md +56 -93
  7. package/components/checkbox/demo/index.md +0 -45
  8. package/components/checkbox/demo/readme.html +49 -0
  9. package/components/checkbox/demo/readme.md +142 -0
  10. package/components/combobox/README.md +57 -102
  11. package/components/combobox/demo/api.md +1 -1
  12. package/components/combobox/demo/api.min.js +10 -8
  13. package/components/combobox/demo/index.md +0 -53
  14. package/components/combobox/demo/index.min.js +10 -8
  15. package/components/combobox/demo/readme.html +49 -0
  16. package/components/combobox/demo/readme.md +152 -0
  17. package/components/combobox/dist/auro-combobox.d.ts +1 -1
  18. package/components/combobox/dist/index.js +10 -8
  19. package/components/combobox/dist/registered.js +10 -8
  20. package/components/counter/README.md +58 -100
  21. package/components/counter/demo/api.js +3 -0
  22. package/components/counter/demo/api.md +255 -13
  23. package/components/counter/demo/api.min.js +27 -12
  24. package/components/counter/demo/index.html +0 -1
  25. package/components/counter/demo/index.js +1 -2
  26. package/components/counter/demo/index.md +71 -221
  27. package/components/counter/demo/index.min.js +16 -12
  28. package/components/counter/demo/readme.html +49 -0
  29. package/components/counter/demo/readme.md +146 -0
  30. package/components/counter/dist/auro-counter-group.d.ts +7 -7
  31. package/components/counter/dist/auro-counter.d.ts +1 -1
  32. package/components/counter/dist/index.js +16 -12
  33. package/components/counter/dist/registered.js +16 -12
  34. package/components/datepicker/README.md +59 -97
  35. package/components/datepicker/demo/api.md +125 -124
  36. package/components/datepicker/demo/api.min.js +19 -17
  37. package/components/datepicker/demo/index.md +8 -47
  38. package/components/datepicker/demo/index.min.js +19 -17
  39. package/components/datepicker/demo/readme.html +49 -0
  40. package/components/datepicker/demo/readme.md +140 -0
  41. package/components/datepicker/dist/auro-datepicker.d.ts +3 -3
  42. package/components/datepicker/dist/index.js +19 -17
  43. package/components/datepicker/dist/registered.js +19 -17
  44. package/components/dropdown/README.md +56 -92
  45. package/components/dropdown/demo/index.md +1 -60
  46. package/components/dropdown/demo/readme.html +49 -0
  47. package/components/dropdown/demo/readme.md +144 -0
  48. package/components/form/README.md +56 -91
  49. package/components/form/demo/readme.html +49 -0
  50. package/components/form/demo/readme.md +145 -0
  51. package/components/form/demo/working.html +2 -2
  52. package/components/input/README.md +56 -87
  53. package/components/input/demo/api.min.js +5 -4
  54. package/components/input/demo/index.md +0 -31
  55. package/components/input/demo/index.min.js +5 -4
  56. package/components/input/demo/readme.html +49 -0
  57. package/components/input/demo/readme.md +135 -0
  58. package/components/input/dist/index.js +5 -4
  59. package/components/input/dist/registered.js +5 -4
  60. package/components/menu/README.md +56 -93
  61. package/components/menu/demo/index.md +1 -44
  62. package/components/menu/demo/readme.html +49 -0
  63. package/components/menu/demo/readme.md +145 -0
  64. package/components/radio/README.md +56 -87
  65. package/components/radio/demo/index.md +0 -45
  66. package/components/radio/demo/readme.html +49 -0
  67. package/components/radio/demo/readme.md +137 -0
  68. package/components/select/README.md +57 -100
  69. package/components/select/demo/api.md +1 -1
  70. package/components/select/demo/api.min.js +5 -4
  71. package/components/select/demo/index.md +0 -53
  72. package/components/select/demo/index.min.js +5 -4
  73. package/components/select/demo/readme.html +49 -0
  74. package/components/select/demo/readme.md +143 -0
  75. package/components/select/dist/auro-select.d.ts +1 -1
  76. package/components/select/dist/index.js +5 -4
  77. package/components/select/dist/registered.js +5 -4
  78. package/package.json +3 -2
@@ -15,284 +15,134 @@ The `auro-counter` component is a ui element that enables a way to increment or
15
15
 
16
16
  ## Examples
17
17
 
18
- ### Basic
18
+ ### Basic Counter
19
+ The counter component provides a simple interface for incrementing or decrementing numeric values. It displays a label with increment/decrement buttons and the current value. This is the most basic implementation of a standalone counter:
20
+
19
21
  <div class="exampleWrapper">
20
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
21
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
22
- <auro-counter-group>
23
- <auro-counter>
24
- Short label
25
- </auro-counter>
26
- <auro-counter>
27
- Another short label
28
- </auro-counter>
29
- <auro-counter>
30
- This is an example of the wrapping behavior for a long label
31
- </auro-counter>
32
- </auro-counter-group>
22
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
23
+ <!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
24
+ <auro-counter>
25
+ Adults
26
+ </auro-counter>
33
27
  <!-- AURO-GENERATED-CONTENT:END -->
34
28
  </div>
35
29
  <auro-accordion alignRight>
36
- <span slot="trigger">See code</span>
37
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
38
- <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
30
+ <span slot="trigger">See code</span>
31
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-standalone.html) -->
32
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-standalone.html -->
39
33
 
40
34
  ```html
41
- <auro-counter-group>
42
- <auro-counter>
43
- Short label
44
- </auro-counter>
35
+ <auro-counter>
36
+ Adults
37
+ </auro-counter>
38
+ ```
39
+ <!-- AURO-GENERATED-CONTENT:END -->
40
+ </auro-accordion>
41
+
42
+ ### Counter with Description
43
+ Adding a description provides additional context to users. The description appears below the main label and is useful for displaying important information or requirements:
44
+
45
+ <div class="exampleWrapper">
46
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-description.html) -->
47
+ <!-- The below content is automatically added from ./../apiExamples/basic-description.html -->
45
48
  <auro-counter>
46
- Another short label
49
+ Adults
50
+ <span slot="description">18 years or older</span>
47
51
  </auro-counter>
48
- <auro-counter>
49
- This is an example of the wrapping behavior for a long label
50
- </auro-counter>
51
- </auro-counter-group>
52
+ <!-- AURO-GENERATED-CONTENT:END -->
53
+ </div>
54
+ <auro-accordion alignRight>
55
+ <span slot="trigger">See code</span>
56
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-description.html) -->
57
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-description.html -->
58
+
59
+ ```html
60
+ <auro-counter>
61
+ Adults
62
+ <span slot="description">18 years or older</span>
63
+ </auro-counter>
52
64
  ```
53
- <!-- AURO-GENERATED-CONTENT:END -->
65
+ <!-- AURO-GENERATED-CONTENT:END -->
54
66
  </auro-accordion>
55
67
 
56
- ### Description slot
68
+ ### Basic Counter Group
69
+ Counter groups allow you to manage multiple related counters together. This is useful when you need to collect multiple quantities that are related, such as different passenger types:
70
+
57
71
  <div class="exampleWrapper">
58
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/description.html) -->
59
- <!-- The below content is automatically added from ./../apiExamples/description.html -->
72
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
73
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
60
74
  <auro-counter-group>
61
75
  <auro-counter>
62
76
  Short label
63
- <span slot="description"
64
- >This is an example of a long sub label wrapping behavior</span
65
- >
66
77
  </auro-counter>
67
78
  <auro-counter>
68
- This is an example of the wrapping behavior for a long label
69
- <span slot="description">with short sub label text</span>
79
+ Another short label
70
80
  </auro-counter>
71
81
  <auro-counter>
72
82
  This is an example of the wrapping behavior for a long label
73
- <span slot="description"
74
- >Combined with an example of a long sub label wrapping behavior</span
75
- >
76
83
  </auro-counter>
77
84
  </auro-counter-group>
78
85
  <!-- AURO-GENERATED-CONTENT:END -->
79
86
  </div>
80
87
  <auro-accordion alignRight>
81
- <span slot="trigger">See code</span>
82
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/description.html) -->
83
- <!-- The below code snippet is automatically added from ./../apiExamples/description.html -->
88
+ <span slot="trigger">See code</span>
89
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
90
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
84
91
 
85
92
  ```html
86
93
  <auro-counter-group>
87
94
  <auro-counter>
88
95
  Short label
89
- <span slot="description"
90
- >This is an example of a long sub label wrapping behavior</span
91
- >
92
96
  </auro-counter>
93
97
  <auro-counter>
94
- This is an example of the wrapping behavior for a long label
95
- <span slot="description">with short sub label text</span>
98
+ Another short label
96
99
  </auro-counter>
97
100
  <auro-counter>
98
101
  This is an example of the wrapping behavior for a long label
99
- <span slot="description"
100
- >Combined with an example of a long sub label wrapping behavior</span
101
- >
102
102
  </auro-counter>
103
103
  </auro-counter-group>
104
104
  ```
105
- <!-- AURO-GENERATED-CONTENT:END -->
106
- </auro-accordion>
107
-
108
- ### Dropdown
109
- <div class="exampleWrapper">
110
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
111
- <!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
112
- <div style="max-width: 350px;">
113
- <auro-counter-group isDropdown>
114
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
115
- <div slot="label">Passengers</div>
116
- <auro-counter>
117
- Adults
118
- <span slot="description">18 years or older</span>
119
- </auro-counter>
120
- <auro-counter>
121
- Children
122
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
123
- </auro-counter>
124
- <auro-counter>
125
- Lap Infants
126
- <span slot="description">Under 2 years</span>
127
- </auro-counter>
128
- </auro-counter-group>
129
- </div>
130
- <!-- AURO-GENERATED-CONTENT:END -->
131
- </div>
132
- <auro-accordion alignRight>
133
- <span slot="trigger">See code</span>
134
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown.html) -->
135
- <!-- The below code snippet is automatically added from ./../apiExamples/dropdown.html -->
136
-
137
- ```html
138
- <div style="max-width: 350px;">
139
- <auro-counter-group isDropdown>
140
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
141
- <div slot="label">Passengers</div>
142
- <auro-counter>
143
- Adults
144
- <span slot="description">18 years or older</span>
145
- </auro-counter>
146
- <auro-counter>
147
- Children
148
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
149
- </auro-counter>
150
- <auro-counter>
151
- Lap Infants
152
- <span slot="description">Under 2 years</span>
153
- </auro-counter>
154
- </auro-counter-group>
155
- </div>
156
- ```
157
105
  <!-- AURO-GENERATED-CONTENT:END -->
158
106
  </auro-accordion>
159
107
 
160
- ### Dropdown with custom value text
161
- <div class="exampleWrapper">
162
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-value-text.html) -->
163
- <!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
164
- <div style="max-width: 350px;">
165
- <auro-counter-group isDropdown>
166
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
167
- <div slot="valueText">Custom value text</div>
168
- <div slot="label"></div>
169
- <auro-counter>
170
- Adults
171
- <span slot="description">18 years or older</span>
172
- </auro-counter>
173
- <auro-counter>
174
- Children
175
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
176
- </auro-counter>
177
- <auro-counter>
178
- Lap Infants
179
- <span slot="description">Under 2 years</span>
180
- </auro-counter>
181
- </auro-counter-group>
182
- </div>
183
- <!-- AURO-GENERATED-CONTENT:END -->
184
- </div>
185
- <auro-accordion alignRight>
186
- <span slot="trigger">See code</span>
187
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-value-text.html) -->
188
- <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-value-text.html -->
189
-
190
- ```html
191
- <div style="max-width: 350px;">
192
- <auro-counter-group isDropdown>
193
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
194
- <div slot="valueText">Custom value text</div>
195
- <div slot="label"></div>
196
- <auro-counter>
197
- Adults
198
- <span slot="description">18 years or older</span>
199
- </auro-counter>
200
- <auro-counter>
201
- Children
202
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
203
- </auro-counter>
204
- <auro-counter>
205
- Lap Infants
206
- <span slot="description">Under 2 years</span>
207
- </auro-counter>
208
- </auro-counter-group>
209
- </div>
210
- ```
211
- <!-- AURO-GENERATED-CONTENT:END -->
212
- </auro-accordion>
213
-
214
- ### Dropdown with help text
108
+ ### Dropdown Counter Group
109
+ The dropdown mode provides a more compact interface, ideal for forms where space is limited. It collapses the counters into a dropdown that expands when clicked:
110
+
215
111
  <div class="exampleWrapper">
216
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-help-text.html) -->
217
- <!-- The below content is automatically added from ./../apiExamples/dropdown-help-text.html -->
218
- <div style="max-width: 350px;">
219
- <auro-counter-group isDropdown>
220
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
221
- <div slot="helpText">This is help text</div>
222
- <auro-counter>
223
- Adults
224
- <span slot="description">18 years or older</span>
225
- </auro-counter>
226
- <auro-counter>
227
- Children
228
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
229
- </auro-counter>
230
- <auro-counter>
231
- Lap Infants
232
- <span slot="description">Under 2 years</span>
233
- </auro-counter>
234
- </auro-counter-group>
235
- </div>
236
- <!-- AURO-GENERATED-CONTENT:END -->
237
- </div>
238
- <auro-accordion alignRight>
239
- <span slot="trigger">See code</span>
240
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-help-text.html) -->
241
- <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-help-text.html -->
242
-
243
- ```html
244
- <div style="max-width: 350px;">
112
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-basic.html) -->
113
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-basic.html -->
245
114
  <auro-counter-group isDropdown>
246
- <span slot="bib.fullscreen.headline">Counter Bib Header</span>
247
- <div slot="helpText">This is help text</div>
115
+ <div slot="bib.fullscreen.headline">Passengers</div>
116
+ <div slot="label">Passengers</div>
248
117
  <auro-counter>
249
118
  Adults
250
119
  <span slot="description">18 years or older</span>
251
120
  </auro-counter>
252
121
  <auro-counter>
253
122
  Children
254
- <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
255
- </auro-counter>
256
- <auro-counter>
257
- Lap Infants
258
- <span slot="description">Under 2 years</span>
259
- </auro-counter>
260
- </auro-counter-group>
261
- </div>
262
- ```
263
- <!-- AURO-GENERATED-CONTENT:END -->
264
- </auro-accordion>
265
-
266
- ### Disabled
267
- <div class="exampleWrapper">
268
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
269
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
270
- <auro-counter-group>
271
- <auro-counter disabled>
272
- Short label
273
- </auro-counter>
274
- <auro-counter disabled>
275
- This is an example of the wrapping behavior for a long label
276
- <span slot="description">with short sub label text</span>
123
+ <span slot="description">2-17 years</span>
277
124
  </auro-counter>
278
125
  </auro-counter-group>
279
126
  <!-- AURO-GENERATED-CONTENT:END -->
280
127
  </div>
281
128
  <auro-accordion alignRight>
282
- <span slot="trigger">See code</span>
283
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
284
- <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
129
+ <span slot="trigger">See code</span>
130
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-basic.html) -->
131
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-basic.html -->
285
132
 
286
133
  ```html
287
- <auro-counter-group>
288
- <auro-counter disabled>
289
- Short label
134
+ <auro-counter-group isDropdown>
135
+ <div slot="bib.fullscreen.headline">Passengers</div>
136
+ <div slot="label">Passengers</div>
137
+ <auro-counter>
138
+ Adults
139
+ <span slot="description">18 years or older</span>
290
140
  </auro-counter>
291
- <auro-counter disabled>
292
- This is an example of the wrapping behavior for a long label
293
- <span slot="description">with short sub label text</span>
141
+ <auro-counter>
142
+ Children
143
+ <span slot="description">2-17 years</span>
294
144
  </auro-counter>
295
145
  </auro-counter-group>
296
146
  ```
297
- <!-- AURO-GENERATED-CONTENT:END -->
298
- </auro-accordion>
147
+ <!-- AURO-GENERATED-CONTENT:END -->
148
+ </auro-accordion>
@@ -1307,7 +1307,7 @@ var styleCss$6 = i$g`.counter{display:flex;align-items:center;justify-content:sp
1307
1307
  *
1308
1308
  * @element auro-counter
1309
1309
  * @extends LitElement
1310
- * @slot Default - Main label content for the counter.
1310
+ * @slot default - Main label content for the counter.
1311
1311
  * @slot description - Descriptive content for the counter.
1312
1312
  */
1313
1313
  class AuroCounter extends r$9 {
@@ -5512,7 +5512,7 @@ class AuroIcon extends BaseIcon {
5512
5512
 
5513
5513
  var iconVersion = '6.1.2';
5514
5514
 
5515
- var styleCss$3 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
5515
+ var styleCss$3 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
5516
5516
 
5517
5517
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5518
5518
  // See LICENSE in the project root for license information.
@@ -5521,6 +5521,7 @@ var styleCss$3 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
5521
5521
  /**
5522
5522
  * The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
5523
5523
  *
5524
+ * @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
5524
5525
  * @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
5525
5526
  * @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
5526
5527
  * @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
@@ -5653,7 +5654,7 @@ class AuroHeader extends r {
5653
5654
  }
5654
5655
  }
5655
5656
 
5656
- var headerVersion = '3.0.0';
5657
+ var headerVersion = '4.0.0';
5657
5658
 
5658
5659
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
5659
5660
  // See LICENSE in the project root for license information.
@@ -5752,7 +5753,7 @@ class AuroBibtemplate extends r {
5752
5753
  <button id="closeButton" @click="${this.onCloseButtonClick}">
5753
5754
  <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
5754
5755
  </button>
5755
- <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header">
5756
+ <${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
5756
5757
  <slot name="header"></slot>
5757
5758
  </${this.headerTag}>
5758
5759
  <span id="subheader">
@@ -5835,12 +5836,12 @@ if (!customElements.get("auro-counter-wrapper")) {
5835
5836
  *
5836
5837
  * @element auro-counter-group
5837
5838
  * @extends LitElement
5838
- * @slot Default - Slot for counter elements.
5839
- * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
5840
- * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib
5841
- * @slot Label - Dropdown label content. Only used when `isDropdown` is true.
5842
- * @slot ValueText - Dropdown value text display. Only used when `isDropdown` is true.
5843
- * @slot HelpText - Dropdown help text content. Only used when `isDropdown` is true.
5839
+ * @slot default - Slot for counter elements.
5840
+ * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
5841
+ * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
5842
+ * @slot label - Dropdown label content. Only used when `isDropdown` is true.
5843
+ * @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
5844
+ * @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
5844
5845
  */
5845
5846
  class AuroCounterGroup extends r$9 {
5846
5847
  constructor() {
@@ -5948,7 +5949,7 @@ class AuroCounterGroup extends r$9 {
5948
5949
  },
5949
5950
 
5950
5951
  /**
5951
- * If declared, make mobileHeadline in HeadingDisplay.
5952
+ * If declared, make bib.fullscreen.headline in HeadingDisplay.
5952
5953
  * Otherwise, Heading 600
5953
5954
  */
5954
5955
  largeFullscreenHeadline: {
@@ -6123,7 +6124,10 @@ class AuroCounterGroup extends r$9 {
6123
6124
  this.bibtemplate.querySelectorAll(`[slot="${targetSlot}"]`).forEach((old) => old.remove());
6124
6125
 
6125
6126
  event.target.assignedNodes().forEach((node) => {
6126
- const clone = node.cloneNode(true);
6127
+ const clone = node.cloneNode();
6128
+ [...node.childNodes].forEach((child) => {
6129
+ clone.append(child);
6130
+ });
6127
6131
  clone.setAttribute('slot', targetSlot);
6128
6132
  this.bibtemplate.append(clone);
6129
6133
  });
@@ -0,0 +1,49 @@
1
+ <!--
2
+ Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3
+ See LICENSE in the project root for license information.
4
+
5
+ HTML in this document is standardized and NOT to be edited.
6
+ All demo code should be added/edited in ./demo/index.md
7
+
8
+ With the exception of adding custom elements if needed for the demo.
9
+
10
+ ----------------------- DO NOT EDIT -----------------------------
11
+
12
+ -->
13
+
14
+ <!DOCTYPE html>
15
+ <html lang="en">
16
+ <head>
17
+ <meta charset="UTF-8" />
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
+ <title>Auro Web Component Generator | auro-counter custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
26
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
27
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
28
+ </head>
29
+ <body class="auro-markdown">
30
+ <main></main>
31
+
32
+ <script type="module">
33
+ import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
34
+ import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
35
+ fetch('./readme.md')
36
+ .then((response) => response.text())
37
+ .then((text) => {
38
+ const rawHtml = marked.parse(text);
39
+ document.querySelector('main').innerHTML = rawHtml;
40
+ Prism.highlightAll();
41
+ })
42
+ </script>
43
+ <script type="module">
44
+ import { initExamples } from "./index.min.js";
45
+
46
+ initExamples();
47
+ </script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,146 @@
1
+ <!--
2
+ The README.md file is a compiled document. No edits should be made directly to this file.
3
+
4
+ README.md is created by running `npm run build:docs`.
5
+
6
+ This file is generated based on a template fetched from
7
+ `../../docs/templates/componentReadmeTemplate.md`
8
+ and copied to `./componentDocs/README.md` each time the docs are compiled.
9
+
10
+ The following sections are editable by making changes to the following files:
11
+
12
+ | SECTION | DESCRIPTION | FILE LOCATION |
13
+ |------------------------|---------------------------------------------------|-------------------------------------|
14
+ | Description | Description of the component | `./docs/partials/description.md` |
15
+ | Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
16
+ | Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
17
+ | Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
18
+ -->
19
+
20
+ # Counter
21
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
+ <!-- The below content is automatically added from ./docs/partials/description.md -->
23
+ The `auro-counter` component is a ui element that enables a way to increment or decrement a single digit value. Common use case is inside the `auro-counter-group` to facilitate a collection of counters to add passenger types to a flight.
24
+ <!-- AURO-GENERATED-CONTENT:END -->
25
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
26
+ <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
27
+ <!-- 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. -->
28
+ <!-- AURO-GENERATED-CONTENT:END -->
29
+
30
+ ## Getting Started
31
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
32
+ <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
33
+
34
+ #### NPM Installation
35
+
36
+ ```shell
37
+ $ npm i @aurodesignsystem/auro-formkit
38
+ ```
39
+ <!-- AURO-GENERATED-CONTENT:END -->
40
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
41
+ <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
42
+
43
+ ### Import Options
44
+
45
+ #### Automatic Registration
46
+
47
+ For automatic registration, simply import the component:
48
+
49
+ ```javascript
50
+ // Registers <auro-counter> automatically
51
+ import '@aurodesignsystem/auro-formkit/auro-counter';
52
+ ```
53
+
54
+ #### Custom Registration
55
+
56
+ To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroCounter.register('custom-counter')` method on the component class and pass in a unique name.
57
+
58
+ ```javascript
59
+ // Import the class only
60
+ import { AuroCounter } from '@aurodesignsystem/auro-formkit/auro-counter/class';
61
+
62
+ // Register with a custom name if desired
63
+ AuroCounter.register('custom-counter');
64
+ ```
65
+
66
+ #### TypeScript Module Resolution
67
+
68
+ When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
69
+
70
+ ```json
71
+ {
72
+ "compilerOptions": {
73
+ "moduleResolution": "bundler"
74
+ }
75
+ }
76
+ ```
77
+
78
+ This configuration enables proper module resolution for the component's TypeScript files.
79
+ <!-- AURO-GENERATED-CONTENT:END -->
80
+ **Reference component in HTML**
81
+
82
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
83
+ <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
84
+
85
+ ```html
86
+ <auro-counter-group>
87
+ <auro-counter>
88
+ Short label
89
+ </auro-counter>
90
+ <auro-counter>
91
+ Another short label
92
+ </auro-counter>
93
+ <auro-counter>
94
+ This is an example of the wrapping behavior for a long label
95
+ </auro-counter>
96
+ </auro-counter-group>
97
+ ```
98
+ <!-- AURO-GENERATED-CONTENT:END -->
99
+
100
+ ### Design Token CSS Custom Property dependency
101
+
102
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
103
+ The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
104
+
105
+ <!-- AURO-GENERATED-CONTENT:END -->
106
+
107
+ ## Install from CDN
108
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
109
+ <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
110
+ 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.
111
+
112
+ ```html
113
+ <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.0-beta.52/auro-counter/+esm"></script>
114
+ ```
115
+ <!-- AURO-GENERATED-CONTENT:END -->
116
+
117
+ ## UI development browser support
118
+ <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
119
+ For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
120
+
121
+ <!-- AURO-GENERATED-CONTENT:END -->
122
+
123
+ ## auro-counter use cases
124
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
125
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
126
+ The `auro-counter` element should be used in situations where users may:
127
+
128
+ * Need to input a numeric value within a defined range
129
+ * Need a user-friendly interface for quantity selection
130
+ <!-- AURO-GENERATED-CONTENT:END -->
131
+
132
+ ## Formkit development
133
+
134
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
135
+ <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
136
+
137
+ ### Filtering
138
+
139
+ Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
140
+
141
+ To only develop a single component, use the `--filter` flag:
142
+
143
+ ```shell
144
+ npx turbo dev --filter=@aurodesignsystem/auro-input
145
+ ```
146
+ <!-- AURO-GENERATED-CONTENT:END -->