@aurodesignsystem-dev/auro-formkit 0.0.0-pr1408.17 → 0.0.0-pr1408.18

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 (43) hide show
  1. package/components/checkbox/demo/api.min.js +1 -1
  2. package/components/checkbox/demo/index.min.js +1 -1
  3. package/components/checkbox/dist/index.js +1 -1
  4. package/components/checkbox/dist/registered.js +1 -1
  5. package/components/combobox/demo/api.min.js +11 -6
  6. package/components/combobox/demo/index.min.js +11 -6
  7. package/components/combobox/dist/index.js +11 -6
  8. package/components/combobox/dist/registered.js +11 -6
  9. package/components/counter/demo/api.min.js +2 -2
  10. package/components/counter/demo/index.min.js +2 -2
  11. package/components/counter/dist/index.js +2 -2
  12. package/components/counter/dist/registered.js +2 -2
  13. package/components/datepicker/demo/api.md +1 -1
  14. package/components/datepicker/demo/api.min.js +47 -149
  15. package/components/datepicker/demo/index.min.js +47 -149
  16. package/components/datepicker/demo/keyboardBehavior.md +1 -6
  17. package/components/datepicker/dist/auro-datepicker.d.ts +8 -7
  18. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -4
  19. package/components/datepicker/dist/index.js +47 -149
  20. package/components/datepicker/dist/registered.js +47 -149
  21. package/components/dropdown/demo/api.min.js +1 -1
  22. package/components/dropdown/demo/index.min.js +1 -1
  23. package/components/dropdown/dist/index.js +1 -1
  24. package/components/dropdown/dist/registered.js +1 -1
  25. package/components/form/demo/api.min.js +69 -162
  26. package/components/form/demo/index.min.js +69 -162
  27. package/components/input/demo/api.min.js +5 -1
  28. package/components/input/demo/index.min.js +5 -1
  29. package/components/input/dist/index.js +5 -1
  30. package/components/input/dist/registered.js +5 -1
  31. package/components/menu/demo/keyboardBehavior.md +0 -0
  32. package/components/radio/demo/api.min.js +1 -1
  33. package/components/radio/demo/index.min.js +1 -1
  34. package/components/radio/demo/keyboardBehavior.md +0 -0
  35. package/components/radio/dist/index.js +1 -1
  36. package/components/radio/dist/registered.js +1 -1
  37. package/components/select/demo/api.min.js +2 -2
  38. package/components/select/demo/index.min.js +2 -2
  39. package/components/select/dist/index.js +2 -2
  40. package/components/select/dist/registered.js +2 -2
  41. package/custom-elements.json +23 -19
  42. package/package.json +3 -3
  43. /package/components/datepicker/demo/{keyboardBehavior.html → keyboard-behavior.html} +0 -0
@@ -9549,7 +9549,7 @@ class AuroBibtemplate extends i$1 {
9549
9549
  }
9550
9550
  }
9551
9551
 
9552
- var formkitVersion$2 = '202604031704';
9552
+ var formkitVersion$2 = '202604032311';
9553
9553
 
9554
9554
  let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$4 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
9555
9555
  `,u$6=i$3`.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, .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, .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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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, .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, .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, .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, .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, .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, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
@@ -10003,12 +10003,12 @@ class AuroCalendar extends RangeDatepicker {
10003
10003
  </div>
10004
10004
  <div class="calendarNavButtons">
10005
10005
  ${this.showPrevMonthBtn ? u$a`
10006
- <button class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
10006
+ <button tabIndex="-1" class="calendarNavBtn prevMonth" @click="${this.handlePrevMonth}">
10007
10007
  ${this.util.generateIconHtml(chevronLeft)}
10008
10008
  </button>
10009
10009
  ` : undefined}
10010
10010
  ${this.showNextMonthBtn ? u$a`
10011
- <button class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
10011
+ <button tabIndex="-1" class="calendarNavBtn nextMonth" @click="${this.handleNextMonth}">
10012
10012
  ${this.util.generateIconHtml(chevronRight)}
10013
10013
  </button>
10014
10014
  ` : undefined}
@@ -12961,7 +12961,7 @@ var iconVersion$2 = '9.1.2';
12961
12961
  * @returns {{isExpanded: boolean, isModal: boolean, isPopover: boolean, activeInput: HTMLElement|null}}
12962
12962
  * isModal and isPopover reflect the display mode (fullscreen vs not) regardless of expanded state.
12963
12963
  */
12964
- function createDisplayContext$1(component, options = {}) {
12964
+ function createDisplayContext(component, options = {}) {
12965
12965
  const dd = options.dropdown || component.dropdown;
12966
12966
  // isPopoverVisible reflects as the `open` attribute.
12967
12967
  // It reports whether the bib is open in any mode (popover or modal).
@@ -12991,11 +12991,11 @@ function createDisplayContext$1(component, options = {}) {
12991
12991
  * @param {Object} strategy - Map of key names to handler functions.
12992
12992
  * @param {Object} [options] - Optional config passed to createDisplayContext.
12993
12993
  */
12994
- function applyKeyboardStrategy$1(component, strategy, options = {}) {
12994
+ function applyKeyboardStrategy(component, strategy, options = {}) {
12995
12995
  component.addEventListener('keydown', async (evt) => {
12996
12996
  const handler = strategy[evt.key] || strategy.default;
12997
12997
  if (typeof handler === 'function') {
12998
- const ctx = createDisplayContext$1(component, options);
12998
+ const ctx = createDisplayContext(component, options);
12999
12999
  await handler(component, evt, ctx);
13000
13000
  }
13001
13001
  });
@@ -13225,7 +13225,7 @@ class AuroDropdownBib extends i$1 {
13225
13225
 
13226
13226
  const dialog = this.shadowRoot.querySelector('dialog');
13227
13227
  this._setupCancelHandler(dialog);
13228
- applyKeyboardStrategy$1(dialog, createDropdownBibKeyboardStrategy());
13228
+ applyKeyboardStrategy(dialog, createDropdownBibKeyboardStrategy());
13229
13229
 
13230
13230
  this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
13231
13231
  bubbles: true,
@@ -13626,7 +13626,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
13626
13626
  }
13627
13627
  };
13628
13628
 
13629
- var formkitVersion$1 = '202604031704';
13629
+ var formkitVersion$1 = '202604032311';
13630
13630
 
13631
13631
  let AuroElement$2 = class AuroElement extends i$1 {
13632
13632
  static get properties() {
@@ -20374,6 +20374,10 @@ class BaseInput extends AuroElement$1 {
20374
20374
  evt.stopPropagation();
20375
20375
  });
20376
20376
 
20377
+ this.clearBtn.addEventListener('click', (evt) => {
20378
+ evt.stopPropagation();
20379
+ });
20380
+
20377
20381
  this.patchInputEvent(this.inputElement);
20378
20382
 
20379
20383
  if (this.wrapperElement) {
@@ -21396,7 +21400,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
21396
21400
  }
21397
21401
  };
21398
21402
 
21399
- var formkitVersion = '202604031704';
21403
+ var formkitVersion = '202604032311';
21400
21404
 
21401
21405
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
21402
21406
  // See LICENSE in the project root for license information.
@@ -22574,108 +22578,6 @@ function guardTouchPassthrough(element) {
22574
22578
  }, { once: true });
22575
22579
  }
22576
22580
 
22577
- /**
22578
- * Restores the dropdown trigger after a fullscreen dialog closes
22579
- * when focus doesn't leave the component (e.g. using Esc or Enter keys).
22580
- * When leaving the component (e.g., tabbing out of the combobox after closing
22581
- * the fullscreen dialog), focus restoration is handled by the browser's native
22582
- * dialog focus restoration behavior, so this function only restores focus
22583
- * when focus remains inside the component after the dialog closes.
22584
-
22585
- *
22586
- * Removes the `inert` attribute from the trigger so it is accessible again,
22587
- * and restores focus to the given target after one animation frame. The rAF
22588
- * delay lets Lit's microtask update cycle call `dialog.close()` first —
22589
- * without it the browser's native dialog focus restoration can conflict.
22590
- *
22591
- * The focus is only applied if the dropdown is still closed at the time the
22592
- * rAF fires, guarding against a rapid close-then-reopen race.
22593
- *
22594
- * @param {HTMLElement} dropdown - The `auro-dropdown` element.
22595
- * @param {HTMLElement} focusTarget - The element to focus (e.g. trigger or input).
22596
- */
22597
- function restoreTriggerAfterClose(dropdown, focusTarget) {
22598
- dropdown.trigger.inert = false;
22599
-
22600
- // Wait a frame so that dialog.close() has completed and the browser's
22601
- // native focus restoration has run before we attempt to focus the
22602
- // trigger / input programmatically.
22603
- requestAnimationFrame(() => {
22604
- if (!dropdown.isPopoverVisible && dropdown.trigger.contains(document.activeElement)) {
22605
- focusTarget.focus();
22606
- }
22607
- });
22608
- }
22609
-
22610
- /**
22611
- * Computes display state once per keydown event.
22612
- * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
22613
- *
22614
- * @param {HTMLElement} component - The component with a dropdown reference.
22615
- * @param {Object} [options] - Optional config.
22616
- * @param {HTMLElement} [options.dropdown] - Explicit dropdown reference. Falls back to component.dropdown.
22617
- * @param {Function} [options.inputResolver] - Called with (component, ctx) to resolve the active input element.
22618
- * @returns {{isExpanded: boolean, isModal: boolean, isPopover: boolean, activeInput: HTMLElement|null}}
22619
- * isModal and isPopover reflect the display mode (fullscreen vs not) regardless of expanded state.
22620
- */
22621
- function createDisplayContext(component, options = {}) {
22622
- const dd = options.dropdown || component.dropdown;
22623
- // isPopoverVisible reflects as the `open` attribute.
22624
- // It reports whether the bib is open in any mode (popover or modal).
22625
- const isExpanded = Boolean(dd && dd.isPopoverVisible);
22626
- const isFullscreen = Boolean(dd && dd.isBibFullscreen);
22627
-
22628
- const ctx = {
22629
- isExpanded,
22630
- isModal: isFullscreen,
22631
- isPopover: !isFullscreen,
22632
- activeInput: null,
22633
- };
22634
-
22635
- if (options.inputResolver) {
22636
- const resolvedInput = options.inputResolver(component, ctx);
22637
- // Guard against resolvers returning undefined or non-HTMLElement values.
22638
- ctx.activeInput = resolvedInput instanceof HTMLElement ? resolvedInput : null;
22639
- }
22640
-
22641
- return ctx;
22642
- }
22643
-
22644
- /**
22645
- * Wires up a keydown listener that dispatches to strategy[evt.key] or strategy.default.
22646
- * Handles both sync and async handlers.
22647
- * @param {HTMLElement} component - The component to attach the listener to.
22648
- * @param {Object} strategy - Map of key names to handler functions.
22649
- * @param {Object} [options] - Optional config passed to createDisplayContext.
22650
- */
22651
- function applyKeyboardStrategy(component, strategy, options = {}) {
22652
- component.addEventListener('keydown', async (evt) => {
22653
- const handler = strategy[evt.key] || strategy.default;
22654
- if (typeof handler === 'function') {
22655
- const ctx = createDisplayContext(component, options);
22656
- await handler(component, evt, ctx);
22657
- }
22658
- });
22659
- }
22660
-
22661
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
22662
- // See LICENSE in the project root for license information.
22663
-
22664
- const datepickerKeyboardStrategy = {
22665
- Enter(component, evt, ctx) {
22666
- if (!ctx.isExpanded) {
22667
- evt.preventDefault();
22668
- component.dropdown.show();
22669
- }
22670
- },
22671
-
22672
- Tab(component, _evt, ctx) {
22673
- if (ctx.isExpanded && ctx.isModal) {
22674
- component.dropdown.hide();
22675
- }
22676
- },
22677
- };
22678
-
22679
22581
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
22680
22582
  // See LICENSE in the project root for license information.
22681
22583
 
@@ -22850,9 +22752,16 @@ class AuroDatePicker extends AuroElement {
22850
22752
  */
22851
22753
  this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', formkitVersion$2, AuroHelpText);
22852
22754
 
22853
- /** @private */
22755
+ /**
22756
+ * @private
22757
+ */
22854
22758
  this.handleClick = this.handleClick.bind(this);
22855
22759
 
22760
+ /**
22761
+ * @private
22762
+ */
22763
+ this.handleClearClick = this.handleClearClick.bind(this);
22764
+
22856
22765
  // Layout Config
22857
22766
  this.layout = 'classic';
22858
22767
  this.shape = 'classic';
@@ -23092,7 +23001,7 @@ class AuroDatePicker extends AuroElement {
23092
23001
  /**
23093
23002
  * Optional placeholder text to display in the second input when using date range.
23094
23003
  * By default, datepicker will use `placeholder` for both inputs if placeholder is
23095
- * specified, but placeholderendDate is not.
23004
+ * specified, but placeholderEndDate is not.
23096
23005
  */
23097
23006
  placeholderEndDate: {
23098
23007
  type: String,
@@ -23471,13 +23380,6 @@ class AuroDatePicker extends AuroElement {
23471
23380
  configureDropdown() {
23472
23381
  this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
23473
23382
 
23474
- // Prevent dropdown from closing on focus loss during fullscreen transitions.
23475
- // When trigger.inert is set to true (to hide the trigger from assistive
23476
- // technology behind the fullscreen dialog), focus leaves the trigger, which
23477
- // fires a focusout event. The floater's handleFocusLoss() would interpret
23478
- // this as "close the bib" without this flag.
23479
- this.dropdown.noHideOnThisFocusLoss = true;
23480
-
23481
23383
  // Pass label text to the dropdown bib for accessible dialog naming.
23482
23384
  // Without this, the fullscreen <dialog> has no accessible name and
23483
23385
  // screen readers announce it as just "dialog" with no context.
@@ -23486,12 +23388,6 @@ class AuroDatePicker extends AuroElement {
23486
23388
  this.dropdown.bibDialogLabel = labelElement.textContent.trim() || undefined;
23487
23389
  }
23488
23390
 
23489
- // Tab closes the fullscreen dialog (same pattern as select).
23490
- // The dialog event bridge intercepts Tab and re-dispatches it as a
23491
- // composed keydown; this listener catches the re-dispatched event.
23492
- // Enter opens the bib when it is closed.
23493
- applyKeyboardStrategy(this, datepickerKeyboardStrategy);
23494
-
23495
23391
  this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
23496
23392
  if (!this.isPopoverVisible) {
23497
23393
  this.dropdown.show();
@@ -23541,7 +23437,17 @@ class AuroDatePicker extends AuroElement {
23541
23437
  guardTouchPassthrough(this.shadowRoot.querySelector('.calendarWrapper'));
23542
23438
  }
23543
23439
  } else {
23544
- restoreTriggerAfterClose(this.dropdown, this.inputList[0]);
23440
+ // Always clear the inert flag. Only restore focus to the input when the datepicker
23441
+ // still has focus (e.g. Escape, date selected) — not when the user tabbed away,
23442
+ // which would pull them back and require extra Tab presses to escape.
23443
+ this.dropdown.trigger.inert = false;
23444
+ if (this.hasFocus) {
23445
+ requestAnimationFrame(() => {
23446
+ if (!this.dropdown.isPopoverVisible) {
23447
+ this.inputList[0].focus();
23448
+ }
23449
+ });
23450
+ }
23545
23451
  }
23546
23452
 
23547
23453
  // If on mobile, and the calendar is opened, scroll the focus date into view if the flag is set
@@ -23584,7 +23490,7 @@ class AuroDatePicker extends AuroElement {
23584
23490
  }
23585
23491
  });
23586
23492
  }
23587
-
23493
+
23588
23494
  /**
23589
23495
  * Binds all behavior needed to the input after rendering.
23590
23496
  * @private
@@ -23596,13 +23502,6 @@ class AuroDatePicker extends AuroElement {
23596
23502
  this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
23597
23503
 
23598
23504
  this.inputList.forEach((input, index) => {
23599
- // auto-show bib when manually editing the input value
23600
- input.addEventListener('keyup', (evt) => {
23601
- if (evt.key === " ") {
23602
- this.dropdown.show();
23603
- }
23604
- });
23605
-
23606
23505
  input.addEventListener('input', () => {
23607
23506
  if (index === 0) {
23608
23507
  this.value = input.value;
@@ -23795,18 +23694,6 @@ class AuroDatePicker extends AuroElement {
23795
23694
  this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
23796
23695
  }
23797
23696
 
23798
- /**
23799
- * Handle enter/space keydown on the reset button.
23800
- * @private
23801
- * @param {KeyboardEvent} event - The keydown event.
23802
- */
23803
- handleKeydownReset(event) {
23804
- if (event.key === 'Enter' || event.key === ' ') {
23805
- this.resetInputs();
23806
- this.focus();
23807
- }
23808
- }
23809
-
23810
23697
  /**
23811
23698
  * Resets values without resetting validation.
23812
23699
  */
@@ -24416,6 +24303,18 @@ class AuroDatePicker extends AuroElement {
24416
24303
  // icons/actions
24417
24304
  // ------------------------------------
24418
24305
 
24306
+ /**
24307
+ * Handles click on the clear button.
24308
+ * @private
24309
+ * @param {MouseEvent} event
24310
+ * @returns {void}
24311
+ */
24312
+ handleClearClick(event) {
24313
+ event.stopPropagation();
24314
+ this.resetInputs();
24315
+ this.focus();
24316
+ }
24317
+
24419
24318
  /**
24420
24319
  * Renders the clear action button.
24421
24320
  * @private
@@ -24430,8 +24329,7 @@ class AuroDatePicker extends AuroElement {
24430
24329
  return u$a`
24431
24330
  <div class="${e$4(clearActionClassMap)}">
24432
24331
  <${this.buttonTag}
24433
- @click="${this.resetInputs}"
24434
- @keydown="${this.handleKeydownReset}"
24332
+ @click="${this.handleClearClick}"
24435
24333
  ?onDark="${this.onDark}"
24436
24334
  appearance="${this.onDark ? 'inverse' : this.appearance}"
24437
24335
  aria-label="${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || i18n(this.lang, 'clearInput')}"