@aurodesignsystem-dev/auro-formkit 0.0.0-pr755.0 → 0.0.0-pr755.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.
Files changed (58) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.min.js +9 -9
  4. package/components/checkbox/demo/index.min.js +9 -9
  5. package/components/checkbox/dist/index.js +9 -9
  6. package/components/checkbox/dist/registered.js +9 -9
  7. package/components/combobox/demo/api.md +12 -6
  8. package/components/combobox/demo/api.min.js +81 -98
  9. package/components/combobox/demo/index.min.js +81 -98
  10. package/components/combobox/dist/index.js +44 -86
  11. package/components/combobox/dist/registered.js +44 -86
  12. package/components/counter/demo/api.md +140 -7
  13. package/components/counter/demo/api.min.js +555 -385
  14. package/components/counter/demo/index.md +82 -0
  15. package/components/counter/demo/index.min.js +555 -385
  16. package/components/counter/dist/auro-counter-group.d.ts +71 -14
  17. package/components/counter/dist/auro-counter.d.ts +10 -0
  18. package/components/counter/dist/index.js +555 -385
  19. package/components/counter/dist/registered.js +555 -385
  20. package/components/datepicker/demo/api.min.js +65 -92
  21. package/components/datepicker/demo/index.min.js +65 -92
  22. package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
  23. package/components/datepicker/dist/index.js +65 -92
  24. package/components/datepicker/dist/registered.js +65 -92
  25. package/components/dropdown/demo/api.md +76 -268
  26. package/components/dropdown/demo/api.min.js +25 -67
  27. package/components/dropdown/demo/index.md +45 -363
  28. package/components/dropdown/demo/index.min.js +25 -67
  29. package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
  30. package/components/dropdown/dist/index.js +25 -67
  31. package/components/dropdown/dist/registered.js +25 -67
  32. package/components/helptext/dist/index.js +1 -1
  33. package/components/helptext/dist/registered.js +1 -1
  34. package/components/input/demo/api.md +1 -1
  35. package/components/input/demo/api.min.js +12 -12
  36. package/components/input/demo/index.min.js +12 -12
  37. package/components/input/dist/base-input.d.ts +1 -1
  38. package/components/input/dist/index.js +12 -12
  39. package/components/input/dist/registered.js +12 -12
  40. package/components/menu/demo/api.md +1 -1
  41. package/components/menu/demo/api.min.js +37 -12
  42. package/components/menu/demo/index.min.js +37 -12
  43. package/components/menu/dist/auro-menu.d.ts +13 -2
  44. package/components/menu/dist/index.js +37 -12
  45. package/components/menu/dist/registered.js +37 -12
  46. package/components/radio/demo/api.min.js +10 -10
  47. package/components/radio/demo/index.min.js +10 -10
  48. package/components/radio/dist/auro-radio.d.ts +1 -1
  49. package/components/radio/dist/index.js +10 -10
  50. package/components/radio/dist/registered.js +10 -10
  51. package/components/select/demo/api.md +15 -9
  52. package/components/select/demo/api.min.js +125 -194
  53. package/components/select/demo/index.md +1 -1
  54. package/components/select/demo/index.min.js +125 -194
  55. package/components/select/dist/auro-select.d.ts +20 -4
  56. package/components/select/dist/index.js +88 -182
  57. package/components/select/dist/registered.js +88 -182
  58. package/package.json +3 -3
@@ -8,6 +8,7 @@
8
8
  | Property | Attribute | Type | Default | Description |
9
9
  |------------|------------|-----------|-------------|--------------------------------------------------|
10
10
  | [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
11
+ | [error](#error) | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
11
12
  | [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
12
13
  | [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
13
14
  | [onDark](#onDark) | `onDark` | `boolean` | false | If declared, the counter will be rendered with onDark styles. |
@@ -42,6 +43,7 @@
42
43
  | Property | Attribute | Type | Default | Description |
43
44
  |---------------------------|---------------------------|--------------------------|----------------|--------------------------------------------------|
44
45
  | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
46
+ | [error](#error) | `error` | `string` | | The current error message to display when the component is invalid. |
45
47
  | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
46
48
  | [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
47
49
  | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
@@ -52,7 +54,7 @@
52
54
  | [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
53
55
  | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
54
56
  | [onDark](#onDark) | `onDark` | `boolean` | false | If declared, counters and dropdown will be rendered with onDark styles. |
55
- | [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
57
+ | [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
56
58
  | [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
57
59
  | [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
58
60
  | [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
@@ -340,6 +342,131 @@ counter.addEventListener('input', (event) => {
340
342
  <!-- AURO-GENERATED-CONTENT:END -->
341
343
  </auro-accordion>
342
344
 
345
+ ### Counter with Custom Error
346
+
347
+ A custom error can be set on the counter by adding the `error` attribute the desired message.
348
+
349
+ <div class="exampleWrapper">
350
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-error.html) -->
351
+ <!-- The below content is automatically added from ./../apiExamples/counter-error.html -->
352
+ <auro-counter error="There is an error with the counter">
353
+ Adults
354
+ </auro-counter>
355
+ <!-- AURO-GENERATED-CONTENT:END -->
356
+ </div>
357
+ <div class="exampleWrapper--ondark" aria-hidden>
358
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
359
+ <!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
360
+ <auro-counter ondark error="There is an error with the counter">
361
+ Adults
362
+ </auro-counter>
363
+ <!-- AURO-GENERATED-CONTENT:END -->
364
+ </div>
365
+ <auro-accordion alignRight>
366
+ <span slot="trigger">See code</span>
367
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-error.html) -->
368
+ <!-- The below code snippet is automatically added from ./../apiExamples/counter-error.html -->
369
+
370
+ ```html
371
+ <auro-counter error="There is an error with the counter">
372
+ Adults
373
+ </auro-counter>
374
+ ```
375
+ <!-- AURO-GENERATED-CONTENT:END -->
376
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ondark-counter-error.html) -->
377
+ <!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
378
+ <auro-counter ondark error="There is an error with the counter">
379
+ Adults
380
+ </auro-counter>
381
+ <!-- AURO-GENERATED-CONTENT:END -->
382
+ </auro-accordion>
383
+
384
+ ### Counter Dropdown with Errored Counters
385
+
386
+ A counter dropdown with counters in an errored state will display the errors for each errored counter by default
387
+
388
+ <div class="exampleWrapper">
389
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-basic.html) -->
390
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-error-basic.html -->
391
+ <auro-counter-group isDropdown>
392
+ <div slot="bib.fullscreen.headline">Passengers</div>
393
+ <div slot="label">Passengers</div>
394
+ <auro-counter error="Cannot have less than 1 adult passenger">
395
+ Adults
396
+ <span slot="description">18 years or older</span>
397
+ </auro-counter>
398
+ <auro-counter error="Cannot have more than 2 child passengers">
399
+ Children
400
+ <span slot="description">2-17 years</span>
401
+ </auro-counter>
402
+ </auro-counter-group>
403
+ <!-- AURO-GENERATED-CONTENT:END -->
404
+ </div>
405
+ <auro-accordion alignRight>
406
+ <span slot="trigger">See code</span>
407
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-basic.html) -->
408
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-basic.html -->
409
+
410
+ ```html
411
+ <auro-counter-group isDropdown>
412
+ <div slot="bib.fullscreen.headline">Passengers</div>
413
+ <div slot="label">Passengers</div>
414
+ <auro-counter error="Cannot have less than 1 adult passenger">
415
+ Adults
416
+ <span slot="description">18 years or older</span>
417
+ </auro-counter>
418
+ <auro-counter error="Cannot have more than 2 child passengers">
419
+ Children
420
+ <span slot="description">2-17 years</span>
421
+ </auro-counter>
422
+ </auro-counter-group>
423
+ ```
424
+ <!-- AURO-GENERATED-CONTENT:END -->
425
+ </auro-accordion>
426
+
427
+ ### Counter Dropdown with Custom Error
428
+
429
+ The error message for a dropdown counter with errored counters can also be overridden with the `error` attribute.
430
+
431
+ <div class="exampleWrapper">
432
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-custom.html) -->
433
+ <!-- The below content is automatically added from ./../apiExamples/dropdown-error-custom.html -->
434
+ <auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
435
+ <div slot="bib.fullscreen.headline">Passengers</div>
436
+ <div slot="label">Passengers</div>
437
+ <auro-counter error="Cannot have less than 1 adult passenger">
438
+ Adults
439
+ <span slot="description">18 years or older</span>
440
+ </auro-counter>
441
+ <auro-counter error="Cannot have more than 2 child passengers">
442
+ Children
443
+ <span slot="description">2-17 years</span>
444
+ </auro-counter>
445
+ </auro-counter-group>
446
+ <!-- AURO-GENERATED-CONTENT:END -->
447
+ </div>
448
+ <auro-accordion alignRight>
449
+ <span slot="trigger">See code</span>
450
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-custom.html) -->
451
+ <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-custom.html -->
452
+
453
+ ```html
454
+ <auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
455
+ <div slot="bib.fullscreen.headline">Passengers</div>
456
+ <div slot="label">Passengers</div>
457
+ <auro-counter error="Cannot have less than 1 adult passenger">
458
+ Adults
459
+ <span slot="description">18 years or older</span>
460
+ </auro-counter>
461
+ <auro-counter error="Cannot have more than 2 child passengers">
462
+ Children
463
+ <span slot="description">2-17 years</span>
464
+ </auro-counter>
465
+ </auro-counter-group>
466
+ ```
467
+ <!-- AURO-GENERATED-CONTENT:END -->
468
+ </auro-accordion>
469
+
343
470
  ### Group Max/Min
344
471
 
345
472
  The group counter max or min property sets the value for all counters in the group. If a counter has a max value set, the group max attribute will override it. All increment buttons as a result will be disabled to prevent the group of counters from exceeding the group max.
@@ -428,7 +555,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
428
555
  <div style="width: 350px">
429
556
  <auro-counter-group isDropdown offset="20" placement="bottom-end">
430
557
  <div slot="bib.fullscreen.headline">Passengers</div>
431
- <div slot="label">bottom-end bib with 20px offset</div>
558
+ <span slot="label">Label</span>
559
+ <span slot="helpText">bottom-end bib with 20px offset</span>
432
560
  <auro-counter>
433
561
  Adults
434
562
  <span slot="description">18 years or older</span>
@@ -440,7 +568,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
440
568
  </auro-counter-group>
441
569
  <auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
442
570
  <div slot="bib.fullscreen.headline">Passengers</div>
443
- <div slot="label">bottom-end bib with 20px offset and noFlip</div>
571
+ <span slot="label">Label</span>
572
+ <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
444
573
  <auro-counter>
445
574
  Adults
446
575
  <span slot="description">18 years or older</span>
@@ -452,7 +581,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
452
581
  </auro-counter-group>
453
582
  <auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
454
583
  <div slot="bib.fullscreen.headline">Passengers</div>
455
- <div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
584
+ <span slot="label">Label</span>
585
+ <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
456
586
  <auro-counter>
457
587
  Adults
458
588
  <span slot="description">18 years or older</span>
@@ -474,7 +604,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
474
604
  <div style="width: 350px">
475
605
  <auro-counter-group isDropdown offset="20" placement="bottom-end">
476
606
  <div slot="bib.fullscreen.headline">Passengers</div>
477
- <div slot="label">bottom-end bib with 20px offset</div>
607
+ <span slot="label">Label</span>
608
+ <span slot="helpText">bottom-end bib with 20px offset</span>
478
609
  <auro-counter>
479
610
  Adults
480
611
  <span slot="description">18 years or older</span>
@@ -486,7 +617,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
486
617
  </auro-counter-group>
487
618
  <auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
488
619
  <div slot="bib.fullscreen.headline">Passengers</div>
489
- <div slot="label">bottom-end bib with 20px offset and noFlip</div>
620
+ <span slot="label">Label</span>
621
+ <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
490
622
  <auro-counter>
491
623
  Adults
492
624
  <span slot="description">18 years or older</span>
@@ -498,7 +630,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
498
630
  </auro-counter-group>
499
631
  <auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
500
632
  <div slot="bib.fullscreen.headline">Passengers</div>
501
- <div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
633
+ <span slot="label">Label</span>
634
+ <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
502
635
  <auro-counter>
503
636
  Adults
504
637
  <span slot="description">18 years or older</span>