@aurodesignsystem/auro-formkit 5.6.0 → 5.8.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.
Files changed (106) hide show
  1. package/CHANGELOG.md +12 -6
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +120 -1659
  6. package/components/bibtemplate/dist/registered.js +120 -1659
  7. package/components/checkbox/demo/api.html +2 -2
  8. package/components/checkbox/demo/api.md +31 -28
  9. package/components/checkbox/demo/api.min.js +148 -10
  10. package/components/checkbox/demo/index.html +1 -1
  11. package/components/checkbox/demo/index.md +18 -18
  12. package/components/checkbox/demo/index.min.js +148 -10
  13. package/components/checkbox/dist/auro-checkbox-group.d.ts +11 -1
  14. package/components/checkbox/dist/auro-checkbox.d.ts +11 -1
  15. package/components/checkbox/dist/index.js +148 -10
  16. package/components/checkbox/dist/registered.js +148 -10
  17. package/components/combobox/demo/api.html +4 -4
  18. package/components/combobox/demo/api.md +256 -63
  19. package/components/combobox/demo/api.min.js +4500 -7887
  20. package/components/combobox/demo/index.html +3 -3
  21. package/components/combobox/demo/index.md +114 -10
  22. package/components/combobox/demo/index.min.js +5671 -9058
  23. package/components/combobox/dist/auro-combobox.d.ts +29 -10
  24. package/components/combobox/dist/index.js +4500 -7510
  25. package/components/combobox/dist/registered.js +4500 -7510
  26. package/components/counter/demo/api.html +3 -3
  27. package/components/counter/demo/api.md +35 -26
  28. package/components/counter/demo/api.min.js +2968 -6073
  29. package/components/counter/demo/index.html +3 -3
  30. package/components/counter/demo/index.md +42 -42
  31. package/components/counter/demo/index.min.js +2968 -6073
  32. package/components/counter/dist/auro-counter-button.d.ts +2 -11
  33. package/components/counter/dist/auro-counter-group.d.ts +11 -1
  34. package/components/counter/dist/auro-counter.d.ts +9 -1
  35. package/components/counter/dist/iconVersion.d.ts +1 -1
  36. package/components/counter/dist/index.js +4915 -8020
  37. package/components/counter/dist/registered.js +4915 -8020
  38. package/components/datepicker/demo/api.html +3 -3
  39. package/components/datepicker/demo/api.md +111 -21
  40. package/components/datepicker/demo/api.min.js +10474 -14790
  41. package/components/datepicker/demo/index.html +2 -2
  42. package/components/datepicker/demo/index.md +30 -30
  43. package/components/datepicker/demo/index.min.js +10474 -14790
  44. package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
  45. package/components/datepicker/dist/auro-calendar.d.ts +8 -0
  46. package/components/datepicker/dist/auro-datepicker.d.ts +21 -1
  47. package/components/datepicker/dist/index.js +10367 -14683
  48. package/components/datepicker/dist/registered.js +10367 -14683
  49. package/components/dropdown/demo/api.html +5 -5
  50. package/components/dropdown/demo/api.md +38 -29
  51. package/components/dropdown/demo/api.min.js +88 -417
  52. package/components/dropdown/demo/index.html +3 -3
  53. package/components/dropdown/demo/index.md +16 -16
  54. package/components/dropdown/demo/index.min.js +88 -417
  55. package/components/dropdown/dist/auro-dropdown.d.ts +11 -1
  56. package/components/dropdown/dist/index.js +75 -404
  57. package/components/dropdown/dist/registered.js +75 -404
  58. package/components/form/demo/api.html +1 -1
  59. package/components/form/demo/api.min.js +13 -0
  60. package/components/form/demo/index.html +1 -1
  61. package/components/form/demo/index.min.js +13 -0
  62. package/components/form/demo/working.html +2 -2
  63. package/components/form/dist/index.js +13 -0
  64. package/components/form/dist/registered.js +13 -0
  65. package/components/helptext/dist/auro-helptext.d.ts +11 -1
  66. package/components/helptext/dist/index.js +26 -2
  67. package/components/helptext/dist/registered.js +26 -2
  68. package/components/input/demo/api.html +3 -3
  69. package/components/input/demo/api.js +1 -1
  70. package/components/input/demo/api.md +37 -34
  71. package/components/input/demo/api.min.js +323 -1580
  72. package/components/input/demo/index.html +1 -2
  73. package/components/input/demo/index.md +17 -17
  74. package/components/input/demo/index.min.js +323 -1580
  75. package/components/input/dist/base-input.d.ts +11 -1
  76. package/components/input/dist/buttonVersion.d.ts +1 -1
  77. package/components/input/dist/iconVersion.d.ts +1 -1
  78. package/components/input/dist/index.js +289 -1546
  79. package/components/input/dist/registered.js +289 -1546
  80. package/components/menu/demo/api.html +4 -4
  81. package/components/menu/demo/api.min.js +57 -421
  82. package/components/menu/demo/index.html +1 -1
  83. package/components/menu/demo/index.min.js +57 -421
  84. package/components/menu/dist/iconVersion.d.ts +1 -1
  85. package/components/menu/dist/index.js +49 -413
  86. package/components/menu/dist/registered.js +49 -413
  87. package/components/radio/demo/api.html +2 -2
  88. package/components/radio/demo/api.md +46 -44
  89. package/components/radio/demo/api.min.js +183 -14
  90. package/components/radio/demo/index.html +1 -1
  91. package/components/radio/demo/index.md +12 -12
  92. package/components/radio/demo/index.min.js +183 -14
  93. package/components/radio/dist/auro-radio-group.d.ts +25 -1
  94. package/components/radio/dist/auro-radio.d.ts +11 -1
  95. package/components/radio/dist/index.js +183 -14
  96. package/components/radio/dist/registered.js +183 -14
  97. package/components/select/demo/api.html +4 -4
  98. package/components/select/demo/api.md +20 -19
  99. package/components/select/demo/api.min.js +2859 -4984
  100. package/components/select/demo/index.html +3 -3
  101. package/components/select/demo/index.md +25 -25
  102. package/components/select/demo/index.min.js +2859 -4984
  103. package/components/select/dist/auro-select.d.ts +11 -1
  104. package/components/select/dist/index.js +990 -2738
  105. package/components/select/dist/registered.js +990 -2738
  106. package/package.json +15 -15
@@ -47,7 +47,7 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
47
47
 
48
48
  var styleCss$2 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;outline:unset}:host(.focus-visible) .displayFlex .inputGroup:focus-within{width:auto}:host(.focus-visible) .rdoGroup{display:block;padding-right:var(--ds-size-100, 0.5rem);outline:3px solid transparent}:host(.focus-visible) .rdoGroup .label:after{outline-width:1px;outline-style:solid}.rdoGroup{position:relative;padding-right:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-75, 0.375rem)}.label{display:block;margin-left:var(--ds-size-300, 1.5rem)}.label:hover{cursor:pointer}.label:after{position:absolute;z-index:1;top:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:"";border-radius:50%;border:1px solid}.slotContent{display:block;margin-left:var(--ds-size-400, 2rem);padding-left:var(--ds-size-100, 0.5rem)}`;
49
49
 
50
- var colorCss$2 = i$5`.label{color:var(--ds-auro-radio-label-color)}.label:after{background-color:var(--ds-auro-radio-btn-fill-color);border-color:var(--ds-auro-radio-btn-border-color);box-shadow:inset 0 0 0 3px var(--ds-auro-radio-btn-inset-color);outline-color:var(--ds-auro-radio-btn-border-color);-webkit-tap-highlight-color:var(--ds-auro-radio-tap-color)}:host([checked]){--ds-auro-radio-btn-inset-color: var(--ds-advanced-color-boolean-indicator, #ffffff);--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-istrue, #01426a);--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-istrue, #01426a)}:host([error]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([checked][error]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([disabled]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-radio-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([checked][disabled]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host(.focus-visible){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark]){--ds-auro-radio-label-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-radio-btn-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([onDark][checked]){--ds-auro-radio-btn-inset-color: var(--ds-advanced-color-boolean-indicator-inverse, #00274a);--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff);--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff)}:host([onDark][error]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][checked][error]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][disabled]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-radio-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][checked][disabled]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark].focus-visible){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
50
+ var colorCss$2 = i$5`.label{color:var(--ds-auro-radio-label-color)}.label:after{background-color:var(--ds-auro-radio-btn-fill-color);border-color:var(--ds-auro-radio-btn-border-color);box-shadow:inset 0 0 0 3px var(--ds-auro-radio-btn-inset-color);outline-color:var(--ds-auro-radio-btn-border-color);-webkit-tap-highlight-color:var(--ds-auro-radio-tap-color)}:host([checked]){--ds-auro-radio-btn-inset-color: var(--ds-advanced-color-boolean-indicator, #ffffff);--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-istrue, #01426a);--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-istrue, #01426a)}:host([error]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([checked][error]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([disabled]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-radio-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([checked][disabled]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host(.focus-visible){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-radio-label-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-radio-btn-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([onDark][checked]),:host([appearance=inverse][checked]){--ds-auro-radio-btn-inset-color: var(--ds-advanced-color-boolean-indicator-inverse, #00274a);--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff);--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][checked][error]),:host([appearance=inverse][checked][error]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-radio-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][checked][disabled]),:host([appearance=inverse][checked][disabled]){--ds-auro-radio-btn-fill-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark].focus-visible),:host([appearance=inverse].focus-visible){--ds-auro-radio-btn-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
51
51
 
52
52
  var tokenCss = i$5`:host{--ds-auro-radio-group-label-color: inherit;--ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-radio-btn-fill-color: transparent;--ds-auro-radio-btn-inset-color: transparent;--ds-auro-radio-label-color: inherit;--ds-auro-radio-tap-color: transparent}`;
53
53
 
@@ -119,6 +119,19 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
119
119
 
120
120
  return elemTag === tag || elem.hasAttribute(tag);
121
121
  }
122
+
123
+ /**
124
+ * Gets the text content of a named slot.
125
+ * @returns {String}
126
+ * @private
127
+ */
128
+ getSlotText(elem, name) {
129
+ const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
130
+ const nodes = slot?.assignedNodes({ flatten: true }) || [];
131
+ const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
132
+
133
+ return text || null;
134
+ }
122
135
  };
123
136
 
124
137
  /* eslint-disable max-lines */
@@ -131,7 +144,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
131
144
  * @attr {Boolean} disabled - If set to true, the radio button will be non-clickable.
132
145
  * @attr {Boolean} required - Defines element as required.
133
146
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
134
- * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
147
+ * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
135
148
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
136
149
  *
137
150
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
@@ -153,6 +166,8 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
153
166
  class AuroRadio extends i$2 {
154
167
  constructor() {
155
168
  super();
169
+
170
+ this.appearance = "default";
156
171
  this.checked = false;
157
172
  this.disabled = false;
158
173
  this.required = false;
@@ -178,6 +193,16 @@ class AuroRadio extends i$2 {
178
193
  // function to define props used within the scope of this component
179
194
  static get properties() {
180
195
  return {
196
+
197
+ /**
198
+ * Defines whether the component will be on lighter or darker backgrounds.
199
+ * @property {'default', 'inverse'}
200
+ * @default 'default'
201
+ */
202
+ appearance: {
203
+ type: String,
204
+ reflect: true
205
+ },
181
206
  checked: {
182
207
  type: Boolean,
183
208
  reflect: true
@@ -416,9 +441,9 @@ class AuroRadio extends i$2 {
416
441
  */
417
442
  const a=Symbol.for(""),o=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u=n(x);
418
443
 
419
- var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
444
+ var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}fieldset{all:unset}.displayFlex legend+slot{display:flex;white-space:nowrap}legend{margin-bottom:var(--ds-size-150, 0.75rem)}.hidden{display:none}[auro-helptext]{margin-top:var(--ds-size-150, 0.75rem)}`;
420
445
 
421
- var colorCss$1 = i$5`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
446
+ var colorCss$1 = i$5`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]),:host([appearance=inverse]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
422
447
 
423
448
  class DateFormatter {
424
449
 
@@ -925,6 +950,52 @@ class AuroFormValidation {
925
950
  message: e => e.getAttribute('setCustomValidityRangeUnderflow') || ''
926
951
  }
927
952
  ]
953
+ },
954
+ combobox: {
955
+ filter: [
956
+ {
957
+ check: (e) => {
958
+
959
+ // Guard Clause: If the behavior is not 'filter', skip this validation
960
+ if (e.behavior !== 'filter') return false;
961
+
962
+ // Get the current input value
963
+ const currentInputValue = e.input.value;
964
+
965
+ // Skip validation if the input has no value
966
+ if (!currentInputValue) return false;
967
+
968
+ /**
969
+ * Let's check if the option selected and combobox value match.
970
+ */
971
+
972
+ // Guard Clause: If there is no option selected fail the validation
973
+ if (!e.optionSelected) return true;
974
+
975
+ // Guard Clause: If there is no value fail the validation
976
+ if (!e.value) return true;
977
+
978
+ // Guard Clause: If the selected option's value doesn't match the input value fail the validation
979
+ if (e.optionSelected.value !== e.value) return true;
980
+
981
+ /**
982
+ * Now let's make sure the user hasn't change the value in the input after selecting an option.
983
+ * This is to make sure there's no user confusion if they select an option but then change the value to something else.
984
+ */
985
+
986
+ // Guard Clause: If the current input value doesn't match the option selected value fail the validation
987
+ if (currentInputValue && currentInputValue !== e.optionSelected.value) return true;
988
+
989
+ // Guard Clause: If the current input value doesn't match the combobox value fail the validation
990
+ if (currentInputValue && currentInputValue !== e.value) return true;
991
+
992
+ // If all the checks passed the validation passes
993
+ return false;
994
+ },
995
+ validity: 'valueMissing',
996
+ message: e => e.getAttribute('setCustomValidityValueMissingFilter') || e.setCustomValidity || ''
997
+ }
998
+ ]
928
999
  }
929
1000
  };
930
1001
 
@@ -933,6 +1004,8 @@ class AuroFormValidation {
933
1004
  elementType = 'input';
934
1005
  } else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
935
1006
  elementType = 'counter';
1007
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
1008
+ elementType = 'combobox';
936
1009
  }
937
1010
 
938
1011
  if (elementType) {
@@ -1095,6 +1168,14 @@ class AuroFormValidation {
1095
1168
  if (typeof elem.value === "string") {
1096
1169
  hasValue = elem.value && elem.value.length > 0;
1097
1170
  }
1171
+
1172
+ if (typeof elem.value === "boolean") {
1173
+ hasValue = elem.value || elem.value === false;
1174
+ }
1175
+
1176
+ if (typeof elem.value === "number") {
1177
+ hasValue = !isNaN(elem.value) && elem.value !== null;
1178
+ }
1098
1179
 
1099
1180
  // Check array value types for having a value
1100
1181
  if (Array.isArray(elem.value)) {
@@ -1111,6 +1192,15 @@ class AuroFormValidation {
1111
1192
  }
1112
1193
  }
1113
1194
 
1195
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
1196
+
1197
+ if (isCombobox) {
1198
+
1199
+ if (!elem.persistInput || elem.behavior === "filter") {
1200
+ hasValue = elem.input.value?.length > 0;
1201
+ }
1202
+ }
1203
+
1114
1204
  if (!hasValue && elem.required && elem.touched) {
1115
1205
  elem.validity = 'valueMissing';
1116
1206
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
@@ -1119,6 +1209,11 @@ class AuroFormValidation {
1119
1209
  this.validateElementAttributes(elem);
1120
1210
  } else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
1121
1211
  this.validateElementAttributes(elem);
1212
+ } else if (isCombobox) {
1213
+ this.validateElementAttributes(elem);
1214
+
1215
+ // Don't run extra validation for cases where the combobox is not being used as a filter
1216
+ validationShouldRun = elem.behavior !== 'filter';
1122
1217
  }
1123
1218
  }
1124
1219
 
@@ -1126,8 +1221,8 @@ class AuroFormValidation {
1126
1221
 
1127
1222
  const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
1128
1223
 
1129
- // Don't reset combobox validity if persistValue is set since we can't use the input value to validate
1130
- if (!isCombobox || isCombobox && !elem.persistValue) {
1224
+ // Don't reset combobox validity if persistInput is set since we can't use the input value to validate
1225
+ if (!isCombobox || isCombobox && !elem.persistInput) {
1131
1226
 
1132
1227
  // run validation on all inputs since we're going to use them to set the validity of this component
1133
1228
  this.auroInputElements.forEach(input => input.validate());
@@ -1200,6 +1295,8 @@ class AuroFormValidation {
1200
1295
  if (input.validationMessage.length > 0) {
1201
1296
  elem.errorMessage = input.validationMessage;
1202
1297
  }
1298
+ } else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
1299
+ elem.errorMessage = elem.input?.inputElement?.validationMessage;
1203
1300
  } else if (this.inputElements?.length > 0 && elem.errorMessage === '') {
1204
1301
  const firstInput = this.inputElements[0];
1205
1302
 
@@ -1259,7 +1356,7 @@ class AuroDependencyVersioning {
1259
1356
  }
1260
1357
  }
1261
1358
 
1262
- var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
1359
+ var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]),:host([appearance=inverse]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
1263
1360
 
1264
1361
  var styleCss = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
1265
1362
 
@@ -1333,6 +1430,19 @@ class AuroLibraryRuntimeUtils {
1333
1430
 
1334
1431
  return elemTag === tag || elem.hasAttribute(tag);
1335
1432
  }
1433
+
1434
+ /**
1435
+ * Gets the text content of a named slot.
1436
+ * @returns {String}
1437
+ * @private
1438
+ */
1439
+ getSlotText(elem, name) {
1440
+ const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
1441
+ const nodes = slot?.assignedNodes({ flatten: true }) || [];
1442
+ const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
1443
+
1444
+ return text || null;
1445
+ }
1336
1446
  }
1337
1447
 
1338
1448
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -1348,6 +1458,7 @@ class AuroHelpText extends i$2 {
1348
1458
  super();
1349
1459
 
1350
1460
  this.error = false;
1461
+ this.appearance = "default";
1351
1462
  this.onDark = false;
1352
1463
  this.hasTextContent = false;
1353
1464
 
@@ -1366,6 +1477,16 @@ class AuroHelpText extends i$2 {
1366
1477
  static get properties() {
1367
1478
  return {
1368
1479
 
1480
+ /**
1481
+ * Defines whether the component will be on lighter or darker backgrounds.
1482
+ * @property {'default', 'inverse'}
1483
+ * @default 'default'
1484
+ */
1485
+ appearance: {
1486
+ type: String,
1487
+ reflect: true
1488
+ },
1489
+
1369
1490
  /**
1370
1491
  * @private
1371
1492
  */
@@ -1389,7 +1510,7 @@ class AuroHelpText extends i$2 {
1389
1510
  },
1390
1511
 
1391
1512
  /**
1392
- * If declared, will apply onDark styles.
1513
+ * DEPRECATED - use `appearance` instead.
1393
1514
  */
1394
1515
  onDark: {
1395
1516
  type: Boolean,
@@ -1480,7 +1601,7 @@ var helpTextVersion = '1.0.0';
1480
1601
  * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
1481
1602
  * @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
1482
1603
  * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
1483
- * @attr {Boolean} onDark - Applies dark mode styles to the component.
1604
+ * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
1484
1605
  * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
1485
1606
  * @attr {Object} optionSelected - Specifies the current selected radio button.
1486
1607
  * @csspart radio-group - Apply css to the fieldset element in the shadow DOM
@@ -1494,6 +1615,8 @@ var helpTextVersion = '1.0.0';
1494
1615
  class AuroRadioGroup extends i$2 {
1495
1616
  constructor() {
1496
1617
  super();
1618
+
1619
+ this.appearance = "default";
1497
1620
  this.disabled = false;
1498
1621
  this.horizontal = false;
1499
1622
  this.required = false;
@@ -1502,6 +1625,7 @@ class AuroRadioGroup extends i$2 {
1502
1625
  this.optionSelected = undefined;
1503
1626
  this.onDark = false;
1504
1627
  this.touched = false;
1628
+ this.hasLegend = false;
1505
1629
 
1506
1630
  /**
1507
1631
  * @private
@@ -1544,6 +1668,17 @@ class AuroRadioGroup extends i$2 {
1544
1668
 
1545
1669
  static get properties() {
1546
1670
  return {
1671
+
1672
+ /**
1673
+ * Defines whether the component will be on lighter or darker backgrounds.
1674
+ * @property {'default', 'inverse'}
1675
+ * @default 'default'
1676
+ */
1677
+ appearance: {
1678
+ type: String,
1679
+ reflect: true
1680
+ },
1681
+
1547
1682
  disabled: {
1548
1683
  type: Boolean,
1549
1684
  reflect: true
@@ -1595,6 +1730,18 @@ class AuroRadioGroup extends i$2 {
1595
1730
  type: Boolean,
1596
1731
  reflect: true,
1597
1732
  attribute: false
1733
+ },
1734
+
1735
+ /**
1736
+ * Indicates whether the legend slot is set or not.
1737
+ * @type {boolean}
1738
+ * @default false
1739
+ * @private
1740
+ */
1741
+ hasLegend: {
1742
+ type: Boolean,
1743
+ reflect: false,
1744
+ attribute: false
1598
1745
  }
1599
1746
  };
1600
1747
  }
@@ -1633,7 +1780,8 @@ class AuroRadioGroup extends i$2 {
1633
1780
  * @returns {void}
1634
1781
  */
1635
1782
  handleSelection(event) {
1636
- if (event.target.value) {
1783
+ // specifically check null and undefined in case if the value is false or 0
1784
+ if (event.target.value !== null && event.target.value !== undefined) {
1637
1785
  this.value = event.target.value;
1638
1786
  } else {
1639
1787
  this.value = '';
@@ -1689,6 +1837,12 @@ class AuroRadioGroup extends i$2 {
1689
1837
  });
1690
1838
  }
1691
1839
 
1840
+ if (changedProperties.has('appearance')) {
1841
+ this.items.forEach((el) => {
1842
+ el.appearance = this.appearance;
1843
+ });
1844
+ }
1845
+
1692
1846
  if (changedProperties.has('error')) {
1693
1847
  this.validate(true);
1694
1848
  }
@@ -1776,6 +1930,18 @@ class AuroRadioGroup extends i$2 {
1776
1930
  this.handleItems();
1777
1931
  }
1778
1932
 
1933
+ /**
1934
+ * Method for handling legend slot changes.
1935
+ * @private
1936
+ * @returns {void}
1937
+ */
1938
+ handleLegendSlotChange() {
1939
+ const slot = this.shadowRoot.querySelector('slot[name="legend"]');
1940
+ if (slot) {
1941
+ this.hasLegend = slot.assignedNodes().length > 0;
1942
+ }
1943
+ }
1944
+
1779
1945
  /**
1780
1946
  * Method for initializing the tab index of the checked radio input.
1781
1947
  * @private
@@ -1890,11 +2056,14 @@ class AuroRadioGroup extends i$2 {
1890
2056
  const groupClasses = {
1891
2057
  'displayFlex': this.horizontal && this.items.length <= this.max
1892
2058
  };
2059
+ const legendClasses = {
2060
+ 'hidden': !this.hasLegend && this.required
2061
+ };
1893
2062
 
1894
2063
  return u`
1895
2064
  <fieldset class="${e(groupClasses)}" part="radio-group" role="radiogroup">
1896
- <legend>
1897
- <slot name="legend"></slot>
2065
+ <legend class="${e(legendClasses)}">
2066
+ <slot name="legend" @slotchange=${this.handleLegendSlotChange}></slot>
1898
2067
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
1899
2068
  </legend>
1900
2069
  <slot @slotchange=${this.handleSlotChange}></slot>
@@ -1902,11 +2071,11 @@ class AuroRadioGroup extends i$2 {
1902
2071
 
1903
2072
  ${!this.validity || this.validity === undefined || this.validity === 'valid'
1904
2073
  ? u`
1905
- <${this.helpTextTag} ?onDark="${this.onDark}" part="helpText">
2074
+ <${this.helpTextTag} appearance="${this.onDark ? 'inverse' : this.appearance}" part="helpText">
1906
2075
  <slot name="helpText"></slot>
1907
2076
  </${this.helpTextTag}>`
1908
2077
  : u`
1909
- <${this.helpTextTag} ?onDark="${this.onDark}" role="alert" error aria-live="assertive" part="helpText">
2078
+ <${this.helpTextTag} appearance="${this.onDark ? 'inverse' : this.appearance}" role="alert" error aria-live="assertive" part="helpText">
1910
2079
  ${this.errorMessage}
1911
2080
  </${this.helpTextTag}>`
1912
2081
  }
@@ -5,7 +5,7 @@
5
5
  * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
6
6
  * @attr {String} error - When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
7
7
  * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
8
- * @attr {Boolean} onDark - Applies dark mode styles to the component.
8
+ * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
9
9
  * @attr {Boolean} required - Populates the `required` attribute on the element. Used for client-side validation.
10
10
  * @attr {Object} optionSelected - Specifies the current selected radio button.
11
11
  * @csspart radio-group - Apply css to the fieldset element in the shadow DOM
@@ -18,6 +18,15 @@
18
18
  export class AuroRadioGroup extends LitElement {
19
19
  static get styles(): import("lit").CSSResult[];
20
20
  static get properties(): {
21
+ /**
22
+ * Defines whether the component will be on lighter or darker backgrounds.
23
+ * @property {'default', 'inverse'}
24
+ * @default 'default'
25
+ */
26
+ appearance: {
27
+ type: StringConstructor;
28
+ reflect: boolean;
29
+ };
21
30
  disabled: {
22
31
  type: BooleanConstructor;
23
32
  reflect: boolean;
@@ -67,6 +76,13 @@ export class AuroRadioGroup extends LitElement {
67
76
  * @private
68
77
  */
69
78
  touched: boolean;
79
+ /**
80
+ * Indicates whether the legend slot is set or not.
81
+ * @type {boolean}
82
+ * @default false
83
+ * @private
84
+ */
85
+ hasLegend: boolean;
70
86
  };
71
87
  /**
72
88
  * This will register this element with the browser.
@@ -77,6 +93,7 @@ export class AuroRadioGroup extends LitElement {
77
93
  *
78
94
  */
79
95
  static register(name?: string): void;
96
+ appearance: string;
80
97
  disabled: boolean;
81
98
  horizontal: boolean;
82
99
  required: boolean;
@@ -85,6 +102,7 @@ export class AuroRadioGroup extends LitElement {
85
102
  optionSelected: EventTarget;
86
103
  onDark: boolean;
87
104
  touched: boolean;
105
+ hasLegend: boolean;
88
106
  /**
89
107
  * @private
90
108
  */
@@ -154,6 +172,12 @@ export class AuroRadioGroup extends LitElement {
154
172
  * @returns {void}
155
173
  */
156
174
  private handleSlotChange;
175
+ /**
176
+ * Method for handling legend slot changes.
177
+ * @private
178
+ * @returns {void}
179
+ */
180
+ private handleLegendSlotChange;
157
181
  /**
158
182
  * Method for initializing the tab index of the checked radio input.
159
183
  * @private
@@ -3,7 +3,7 @@
3
3
  * @attr {Boolean} disabled - If set to true, the radio button will be non-clickable.
4
4
  * @attr {Boolean} required - Defines element as required.
5
5
  * @attr {Boolean} error - If set to true, sets an error state on the radio button.
6
- * @attr {Boolean} onDark - If set to true, the component will render with a dark theme.
6
+ * @attr {Boolean} onDark - DEPRECATED - use `appearance` instead.
7
7
  * @event toggleSelected - Notifies that the component has toggled the checked/selected state.
8
8
  *
9
9
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
@@ -23,6 +23,15 @@
23
23
  export class AuroRadio extends LitElement {
24
24
  static get styles(): import("lit").CSSResult[];
25
25
  static get properties(): {
26
+ /**
27
+ * Defines whether the component will be on lighter or darker backgrounds.
28
+ * @property {'default', 'inverse'}
29
+ * @default 'default'
30
+ */
31
+ appearance: {
32
+ type: StringConstructor;
33
+ reflect: boolean;
34
+ };
26
35
  checked: {
27
36
  type: BooleanConstructor;
28
37
  reflect: boolean;
@@ -88,6 +97,7 @@ export class AuroRadio extends LitElement {
88
97
  *
89
98
  */
90
99
  static register(name?: string): void;
100
+ appearance: string;
91
101
  checked: boolean;
92
102
  disabled: boolean;
93
103
  required: boolean;