@aurodesignsystem/auro-formkit 2.0.0-beta.44 → 2.0.0-beta.46

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 (64) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/components/checkbox/README.md +1 -1
  3. package/components/checkbox/demo/api.min.js +292 -42
  4. package/components/checkbox/demo/index.min.js +292 -42
  5. package/components/checkbox/dist/auro-checkbox-group.d.ts +5 -1
  6. package/components/checkbox/dist/helptextVersion.d.ts +2 -0
  7. package/components/checkbox/dist/index.js +292 -42
  8. package/components/checkbox/dist/registered.js +292 -42
  9. package/components/combobox/README.md +6 -6
  10. package/components/combobox/demo/api.md +46 -43
  11. package/components/combobox/demo/api.min.js +494 -97
  12. package/components/combobox/demo/index.md +16 -16
  13. package/components/combobox/demo/index.min.js +494 -97
  14. package/components/combobox/dist/auro-combobox.d.ts +3 -2
  15. package/components/combobox/dist/index.js +483 -86
  16. package/components/combobox/dist/registered.js +483 -86
  17. package/components/counter/README.md +1 -1
  18. package/components/counter/demo/api.js +2 -1
  19. package/components/counter/demo/api.md +88 -14
  20. package/components/counter/demo/api.min.js +1259 -182
  21. package/components/counter/demo/index.md +6 -0
  22. package/components/counter/demo/index.min.js +1232 -182
  23. package/components/counter/dist/auro-counter-group.d.ts +31 -0
  24. package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
  25. package/components/counter/dist/index.js +1232 -182
  26. package/components/counter/dist/registered.js +1232 -182
  27. package/components/datepicker/README.md +4 -4
  28. package/components/datepicker/demo/api.min.js +550 -154
  29. package/components/datepicker/demo/index.min.js +550 -154
  30. package/components/datepicker/dist/index.js +550 -154
  31. package/components/datepicker/dist/registered.js +550 -154
  32. package/components/dropdown/README.md +1 -1
  33. package/components/dropdown/demo/api.md +23 -23
  34. package/components/dropdown/demo/api.min.js +239 -41
  35. package/components/dropdown/demo/index.min.js +239 -41
  36. package/components/dropdown/dist/auro-dropdown.d.ts +5 -1
  37. package/components/dropdown/dist/auro-dropdownBib.d.ts +1 -1
  38. package/components/dropdown/dist/helptextVersion.d.ts +2 -0
  39. package/components/dropdown/dist/index.js +239 -41
  40. package/components/dropdown/dist/registered.js +239 -41
  41. package/components/form/README.md +1 -1
  42. package/components/helptext/dist/index.js +2 -0
  43. package/components/helptext/dist/registered.js +2 -0
  44. package/components/input/README.md +1 -1
  45. package/components/input/demo/api.min.js +249 -51
  46. package/components/input/demo/index.min.js +249 -51
  47. package/components/input/dist/auro-input.d.ts +4 -0
  48. package/components/input/dist/helptextVersion.d.ts +2 -0
  49. package/components/input/dist/index.js +249 -51
  50. package/components/input/dist/registered.js +249 -51
  51. package/components/menu/README.md +1 -1
  52. package/components/radio/README.md +1 -1
  53. package/components/radio/demo/api.min.js +291 -41
  54. package/components/radio/demo/index.min.js +291 -41
  55. package/components/radio/dist/auro-radio-group.d.ts +5 -1
  56. package/components/radio/dist/helptextVersion.d.ts +2 -0
  57. package/components/radio/dist/index.js +291 -41
  58. package/components/radio/dist/registered.js +291 -41
  59. package/components/select/README.md +3 -3
  60. package/components/select/demo/api.min.js +257 -59
  61. package/components/select/demo/index.min.js +257 -59
  62. package/components/select/dist/index.js +246 -48
  63. package/components/select/dist/registered.js +246 -48
  64. package/package.json +1 -1
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
100
100
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
102
102
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.43/dist/auro-counter__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.45/dist/auro-counter__bundled.js" type="module"></script>
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-counter use cases
@@ -1,10 +1,11 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
2
2
  import '../src/registered.js';
3
+ import { dropdownCounterExample } from "../apiExamples/dropdown-mobile-properties.js";
3
4
 
4
5
  export function initExamples(initialCount = 0) {
5
6
  try {
6
7
  // javascript example function calls to be added here upon creation to test examples
7
-
8
+ dropdownCounterExample();
8
9
  } catch (err) {
9
10
  if (initialCount <= 20) {
10
11
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -38,14 +38,16 @@
38
38
 
39
39
  ## Properties
40
40
 
41
- | Property | Attribute | Type | Default | Description |
42
- |--------------|--------------|-----------|-------------|--------------------------------------------------|
43
- | [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
44
- | [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
45
- | [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
46
- | [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
47
- | [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
48
- | [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
41
+ | Property | Attribute | Type | Default | Description |
42
+ |------------------------|------------------------|-----------|-------------|--------------------------------------------------|
43
+ | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.<br />When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint. |
44
+ | [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
45
+ | [largeMobileHeadline](#largeMobileHeadline) | `largeMobileHeadline` | `boolean` | | If declared, make mobileHeadline in HeadingDisplay.<br />Otherwise, Heading 600 |
46
+ | [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
47
+ | [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
48
+ | [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
49
+ | [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
50
+ | [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
49
51
 
50
52
  ## Methods
51
53
 
@@ -61,12 +63,14 @@
61
63
 
62
64
  ## Slots
63
65
 
64
- | Name | Description |
65
- |-------------|--------------------------------------------------|
66
- | [Default](#Default) | Slot for counter elements. |
67
- | [HelpText](#HelpText) | Dropdown help text content. Only used when `isDropdown` is true. |
68
- | [Label](#Label) | Dropdown label content. Only used when `isDropdown` is true. |
69
- | [ValueText](#ValueText) | Dropdown value text display. Only used when `isDropdown` is true. |
66
+ | Name | Description |
67
+ |---------------------------|--------------------------------------------------|
68
+ | [Default](#Default) | Slot for counter elements. |
69
+ | [HelpText](#HelpText) | Dropdown help text content. Only used when `isDropdown` is true. |
70
+ | [Label](#Label) | Dropdown label content. Only used when `isDropdown` is true. |
71
+ | [ValueText](#ValueText) | Dropdown value text display. Only used when `isDropdown` is true. |
72
+ | `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib |
73
+ | `bib.fullscreen.headline` | Defines the headline to display above menu-options |
70
74
  <!-- AURO-GENERATED-CONTENT:END -->
71
75
 
72
76
  ## API Examples
@@ -143,4 +147,74 @@ You can also individually set the max or min value for each counter in a group.
143
147
  </auro-counter-group>
144
148
  ```
145
149
  <!-- AURO-GENERATED-CONTENT:END -->
150
+ </auro-accordion>
151
+
152
+ ### Dropdown with fullscreen bib
153
+
154
+ You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
155
+
156
+ The default value of `fullscreenBreakpoint` is `sm`.
157
+
158
+ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens)
159
+
160
+ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMMENDED**.
161
+ You can also set `bib.fullscreen.footer` to add any additional options on fullscreen view.
162
+
163
+ <div class="exampleWrapper">
164
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-mobile-properties.html) -->
165
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
166
+ <div style="max-width: 350px;">
167
+ <auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
168
+ <span slot="bib.fullscreen.headline">Counter Bib Header</span>
169
+ <div slot="helpText">This is help text</div>
170
+ <auro-counter>
171
+ Adults
172
+ <span slot="description">18 years or older</span>
173
+ </auro-counter>
174
+ <auro-counter>
175
+ Children
176
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
177
+ </auro-counter>
178
+ <auro-counter>
179
+ Lap Infants
180
+ <span slot="description">Under 2 years</span>
181
+ </auro-counter>
182
+ <div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
183
+ <auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
184
+ <auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
185
+ </div>
186
+ </auro-counter-group>
187
+ </div>
188
+ <!-- AURO-GENERATED-CONTENT:END -->
189
+ </div>
190
+ <auro-accordion alignRight>
191
+ <span slot="trigger">See code</span>
192
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-mobile-properties.html) -->
193
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
194
+
195
+ ```html
196
+ <div style="max-width: 350px;">
197
+ <auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
198
+ <span slot="bib.fullscreen.headline">Counter Bib Header</span>
199
+ <div slot="helpText">This is help text</div>
200
+ <auro-counter>
201
+ Adults
202
+ <span slot="description">18 years or older</span>
203
+ </auro-counter>
204
+ <auro-counter>
205
+ Children
206
+ <span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
207
+ </auro-counter>
208
+ <auro-counter>
209
+ Lap Infants
210
+ <span slot="description">Under 2 years</span>
211
+ </auro-counter>
212
+ <div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
213
+ <auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
214
+ <auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
215
+ </div>
216
+ </auro-counter-group>
217
+ </div>
218
+ ```
219
+ <!-- AURO-GENERATED-CONTENT:END -->
146
220
  </auro-accordion>