@aurodesignsystem/auro-formkit 2.0.0-beta.34 → 2.0.0-beta.36

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 (253) hide show
  1. package/.turbo/cache/06dfc9c20aacd0fa-meta.json +1 -0
  2. package/.turbo/cache/075034ccdb82fbea-meta.json +1 -0
  3. package/.turbo/cache/0ff927ad868537f6-meta.json +1 -0
  4. package/.turbo/cache/0ff927ad868537f6.tar.zst +0 -0
  5. package/.turbo/cache/10b8500a6b0c6655-meta.json +1 -0
  6. package/.turbo/cache/138466aaa06fa946-meta.json +1 -0
  7. package/.turbo/cache/15d84f6b062dd363-meta.json +1 -0
  8. package/.turbo/cache/{636856e9513dd881.tar.zst → 15d84f6b062dd363.tar.zst} +0 -0
  9. package/.turbo/cache/1a8525cb6ad91e2a-meta.json +1 -0
  10. package/.turbo/cache/1d4e8167ea8e924f-meta.json +1 -0
  11. package/.turbo/cache/2289d12debb3c42c-meta.json +1 -0
  12. package/.turbo/cache/22fc147c04804f70-meta.json +1 -0
  13. package/.turbo/cache/271d4402e968a825-meta.json +1 -0
  14. package/.turbo/cache/3025cdff2ca7afbf-meta.json +1 -0
  15. package/.turbo/cache/3082b3a86c0f9b94-meta.json +1 -0
  16. package/.turbo/cache/35864e32ed83dc15-meta.json +1 -0
  17. package/.turbo/cache/35864e32ed83dc15.tar.zst +0 -0
  18. package/.turbo/cache/3a02b7b13f0ca55b-meta.json +1 -0
  19. package/.turbo/cache/{e04489ada7560903.tar.zst → 3a02b7b13f0ca55b.tar.zst} +0 -0
  20. package/.turbo/cache/3afe577375a9ee67-meta.json +1 -0
  21. package/.turbo/cache/{a57b56e1d77cb964.tar.zst → 3afe577375a9ee67.tar.zst} +0 -0
  22. package/.turbo/cache/4aadd7fe6b69cccf-meta.json +1 -0
  23. package/.turbo/cache/{4e8248fc9e1e3e8f.tar.zst → 4aadd7fe6b69cccf.tar.zst} +0 -0
  24. package/.turbo/cache/519f3a29843b596b-meta.json +1 -0
  25. package/.turbo/cache/5b3bb164db4c477c-meta.json +1 -0
  26. package/.turbo/cache/5b98e88f80b7323c-meta.json +1 -0
  27. package/.turbo/cache/62581a32993ce7b3-meta.json +1 -0
  28. package/.turbo/cache/62581a32993ce7b3.tar.zst +0 -0
  29. package/.turbo/cache/62637db0009ef49c-meta.json +1 -0
  30. package/.turbo/cache/62637db0009ef49c.tar.zst +0 -0
  31. package/.turbo/cache/6692ba04e03d369e-meta.json +1 -0
  32. package/.turbo/cache/{4f5f322655310502.tar.zst → 6692ba04e03d369e.tar.zst} +0 -0
  33. package/.turbo/cache/688381937188f8c5-meta.json +1 -0
  34. package/.turbo/cache/688381937188f8c5.tar.zst +0 -0
  35. package/.turbo/cache/6bfd7cffad1e6b8a-meta.json +1 -0
  36. package/.turbo/cache/6d48e8dc24e08c8c-meta.json +1 -0
  37. package/.turbo/cache/{b169402fda42f218.tar.zst → 6d48e8dc24e08c8c.tar.zst} +0 -0
  38. package/.turbo/cache/70e65d2581c9de95-meta.json +1 -0
  39. package/.turbo/cache/7a9164b1e7284edb-meta.json +1 -0
  40. package/.turbo/cache/7a9164b1e7284edb.tar.zst +0 -0
  41. package/.turbo/cache/7e684ba4a635750f-meta.json +1 -0
  42. package/.turbo/cache/856d958d4a4e3cac-meta.json +1 -0
  43. package/.turbo/cache/856d958d4a4e3cac.tar.zst +0 -0
  44. package/.turbo/cache/85f181c5a0ebfdc3-meta.json +1 -0
  45. package/.turbo/cache/88d4c5b7339b081b-meta.json +1 -0
  46. package/.turbo/cache/8ad991a0159f51c1-meta.json +1 -0
  47. package/.turbo/cache/8ad991a0159f51c1.tar.zst +0 -0
  48. package/.turbo/cache/8f20a1cd3533e2cb-meta.json +1 -0
  49. package/.turbo/cache/90b85f14324f8733-meta.json +1 -0
  50. package/.turbo/cache/90b85f14324f8733.tar.zst +0 -0
  51. package/.turbo/cache/91de2098a36b6939-meta.json +1 -0
  52. package/.turbo/cache/96edc0764ed4ab77-meta.json +1 -0
  53. package/.turbo/cache/a0ef6b3a6cb6b702-meta.json +1 -0
  54. package/.turbo/cache/a59a8aab19b83b2a-meta.json +1 -0
  55. package/.turbo/cache/a59a8aab19b83b2a.tar.zst +0 -0
  56. package/.turbo/cache/a776eb6f87cd7464-meta.json +1 -0
  57. package/.turbo/cache/a9e03f2bf4bb53a8-meta.json +1 -0
  58. package/.turbo/cache/a9e03f2bf4bb53a8.tar.zst +0 -0
  59. package/.turbo/cache/aa2a6d9e7beff7fc-meta.json +1 -0
  60. package/.turbo/cache/aa2a6d9e7beff7fc.tar.zst +0 -0
  61. package/.turbo/cache/ac47b2df8381d990-meta.json +1 -0
  62. package/.turbo/cache/bbcf8135fb611350-meta.json +1 -0
  63. package/.turbo/cache/{08582d94197f10ee.tar.zst → bbcf8135fb611350.tar.zst} +0 -0
  64. package/.turbo/cache/bff34c0db361f414-meta.json +1 -0
  65. package/.turbo/cache/c1c7334875426ff3-meta.json +1 -0
  66. package/.turbo/cache/cd12b66dd972aaf7-meta.json +1 -0
  67. package/.turbo/cache/d5dbe6fb31ae5667-meta.json +1 -0
  68. package/.turbo/cache/d98e545755f6dc12-meta.json +1 -0
  69. package/.turbo/cache/e64bd75c16c140f3-meta.json +1 -0
  70. package/.turbo/cache/e78a31ec937f4d7a-meta.json +1 -0
  71. package/.turbo/cache/e78a31ec937f4d7a.tar.zst +0 -0
  72. package/.turbo/cache/ea92743dea3b7023-meta.json +1 -0
  73. package/.turbo/cache/f22dc2dd55715ba2-meta.json +1 -0
  74. package/.turbo/cache/f8f99ba69bff8f2c-meta.json +1 -0
  75. package/.turbo/cache/faafa5cc35d12e06-meta.json +1 -0
  76. package/.turbo/cache/faafa5cc35d12e06.tar.zst +0 -0
  77. package/CHANGELOG.md +22 -0
  78. package/components/checkbox/.turbo/turbo-build.log +3 -3
  79. package/components/checkbox/README.md +2 -2
  80. package/components/checkbox/package.json +2 -2
  81. package/components/combobox/.turbo/turbo-build.log +1 -1
  82. package/components/combobox/README.md +5 -5
  83. package/components/combobox/demo/api.min.js +85 -11
  84. package/components/combobox/demo/index.min.js +85 -11
  85. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  86. package/components/combobox/dist/index.js +85 -11
  87. package/components/combobox/package.json +2 -2
  88. package/components/combobox/src/auro-combobox.js +0 -4
  89. package/components/counter/.turbo/turbo-build.log +3 -3
  90. package/components/counter/.turbo/turbo-bundler.log +3 -3
  91. package/components/counter/README.md +2 -2
  92. package/components/counter/demo/api.min.js +86 -8
  93. package/components/counter/demo/index.min.js +86 -8
  94. package/components/counter/dist/index.js +86 -8
  95. package/components/counter/package.json +2 -2
  96. package/components/counter/src/styles/counter-group-css.js +1 -1
  97. package/components/counter/src/styles/counter-group.css +4 -1
  98. package/components/counter/src/styles/counter-group.scss +5 -1
  99. package/components/datepicker/.turbo/turbo-build.log +3 -3
  100. package/components/datepicker/README.md +5 -5
  101. package/components/datepicker/demo/api.min.js +85 -14
  102. package/components/datepicker/demo/index.min.js +85 -14
  103. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  104. package/components/datepicker/dist/index.js +85 -14
  105. package/components/datepicker/package.json +2 -2
  106. package/components/datepicker/src/auro-datepicker.js +0 -7
  107. package/components/dropdown/.turbo/turbo-build.log +3 -3
  108. package/components/dropdown/README.md +2 -2
  109. package/components/dropdown/demo/api.md +15 -2
  110. package/components/dropdown/demo/api.min.js +85 -7
  111. package/components/dropdown/demo/index.js +0 -3
  112. package/components/dropdown/demo/index.min.js +85 -10
  113. package/components/dropdown/dist/auro-dropdown.d.ts +9 -1
  114. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  115. package/components/dropdown/dist/index.js +85 -7
  116. package/components/dropdown/package.json +2 -2
  117. package/components/dropdown/src/auro-dropdown.js +78 -4
  118. package/components/dropdown/src/styles/color-css.js +1 -1
  119. package/components/dropdown/src/styles/color.css +3 -1
  120. package/components/dropdown/src/styles/color.scss +3 -1
  121. package/components/dropdown/src/styles/style-css.js +1 -1
  122. package/components/dropdown/src/styles/style.css +5 -0
  123. package/components/dropdown/src/styles/style.scss +8 -2
  124. package/components/dropdown/src/styles/tokens-css.js +1 -1
  125. package/components/dropdown/src/styles/tokens.css +1 -0
  126. package/components/dropdown/src/styles/tokens.scss +1 -0
  127. package/components/form/.turbo/turbo-build.log +3 -3
  128. package/components/form/.turbo/turbo-bundler.log +3 -3
  129. package/components/form/README.md +2 -2
  130. package/components/form/package.json +2 -2
  131. package/components/helptext/.turbo/turbo-build.log +1 -1
  132. package/components/helptext/.turbo/turbo-bundler.log +1 -1
  133. package/components/helptext/package.json +2 -2
  134. package/components/input/.turbo/turbo-build.log +3 -3
  135. package/components/input/README.md +2 -2
  136. package/components/input/package.json +2 -2
  137. package/components/menu/.turbo/turbo-build.log +3 -3
  138. package/components/menu/.turbo/turbo-bundler.log +3 -3
  139. package/components/menu/README.md +2 -2
  140. package/components/menu/package.json +2 -2
  141. package/components/radio/.turbo/turbo-build.log +3 -3
  142. package/components/radio/README.md +2 -2
  143. package/components/radio/package.json +2 -3
  144. package/components/select/.turbo/turbo-build.log +3 -3
  145. package/components/select/README.md +4 -4
  146. package/components/select/demo/api.min.js +85 -7
  147. package/components/select/demo/index.min.js +85 -7
  148. package/components/select/dist/index.js +85 -7
  149. package/components/select/package.json +2 -2
  150. package/package.json +2 -2
  151. package/.turbo/cache/08582d94197f10ee-meta.json +0 -1
  152. package/.turbo/cache/103d2a28d83aecaa-meta.json +0 -1
  153. package/.turbo/cache/103d2a28d83aecaa.tar.zst +0 -0
  154. package/.turbo/cache/19fbb16e12ecafea-meta.json +0 -1
  155. package/.turbo/cache/1d4280429ff4222f-meta.json +0 -1
  156. package/.turbo/cache/1e094164b4932553-meta.json +0 -1
  157. package/.turbo/cache/23362f9e97bfb2aa-meta.json +0 -1
  158. package/.turbo/cache/23362f9e97bfb2aa.tar.zst +0 -0
  159. package/.turbo/cache/251ba344c6338ba3-meta.json +0 -1
  160. package/.turbo/cache/251ba344c6338ba3.tar.zst +0 -0
  161. package/.turbo/cache/27b0d0b95232015d-meta.json +0 -1
  162. package/.turbo/cache/27b0d0b95232015d.tar.zst +0 -0
  163. package/.turbo/cache/28fe2121c9ba81e2-meta.json +0 -1
  164. package/.turbo/cache/298b6ff0272e6226-meta.json +0 -1
  165. package/.turbo/cache/2abb5400a01a1694-meta.json +0 -1
  166. package/.turbo/cache/2abb5400a01a1694.tar.zst +0 -0
  167. package/.turbo/cache/3058929eb73309e5-meta.json +0 -1
  168. package/.turbo/cache/30fda91ef83677e4-meta.json +0 -1
  169. package/.turbo/cache/3221d91a94756c26-meta.json +0 -1
  170. package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +0 -1
  171. package/.turbo/cache/3ab09fe7cf32b3bf.tar.zst +0 -0
  172. package/.turbo/cache/3e7c2d508c29564b-meta.json +0 -1
  173. package/.turbo/cache/3f1b3db13386acdc-meta.json +0 -1
  174. package/.turbo/cache/430c124614841675-meta.json +0 -1
  175. package/.turbo/cache/457a9f56f941d179-meta.json +0 -1
  176. package/.turbo/cache/457a9f56f941d179.tar.zst +0 -0
  177. package/.turbo/cache/45bdeb0396723b25-meta.json +0 -1
  178. package/.turbo/cache/4e8248fc9e1e3e8f-meta.json +0 -1
  179. package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +0 -1
  180. package/.turbo/cache/4f5f322655310502-meta.json +0 -1
  181. package/.turbo/cache/5326b73ddda05291-meta.json +0 -1
  182. package/.turbo/cache/5a9a22bec5b85071-meta.json +0 -1
  183. package/.turbo/cache/5fc9a7a072827b7b-meta.json +0 -1
  184. package/.turbo/cache/636856e9513dd881-meta.json +0 -1
  185. package/.turbo/cache/64124d335f246ad4-meta.json +0 -1
  186. package/.turbo/cache/64124d335f246ad4.tar.zst +0 -0
  187. package/.turbo/cache/6e0b3da6e3ff3718-meta.json +0 -1
  188. package/.turbo/cache/753b119a389426be-meta.json +0 -1
  189. package/.turbo/cache/785960dbbde053b6-meta.json +0 -1
  190. package/.turbo/cache/82a9f389dc683578-meta.json +0 -1
  191. package/.turbo/cache/82a9f389dc683578.tar.zst +0 -0
  192. package/.turbo/cache/838d169577bdd409-meta.json +0 -1
  193. package/.turbo/cache/838d169577bdd409.tar.zst +0 -0
  194. package/.turbo/cache/88f0204c4fde872f-meta.json +0 -1
  195. package/.turbo/cache/88f0204c4fde872f.tar.zst +0 -0
  196. package/.turbo/cache/8d64907e7ce80f3e-meta.json +0 -1
  197. package/.turbo/cache/8d64907e7ce80f3e.tar.zst +0 -0
  198. package/.turbo/cache/a57b56e1d77cb964-meta.json +0 -1
  199. package/.turbo/cache/a60bcc111612dda1-meta.json +0 -1
  200. package/.turbo/cache/a8889572165c9122-meta.json +0 -1
  201. package/.turbo/cache/a8889572165c9122.tar.zst +0 -0
  202. package/.turbo/cache/b0b5e4ac676e8308-meta.json +0 -1
  203. package/.turbo/cache/b169402fda42f218-meta.json +0 -1
  204. package/.turbo/cache/b7c4f3a43e3ac43b-meta.json +0 -1
  205. package/.turbo/cache/b7c4f3a43e3ac43b.tar.zst +0 -0
  206. package/.turbo/cache/bf3d1eace5e676f9-meta.json +0 -1
  207. package/.turbo/cache/ca9625ba0a5cd272-meta.json +0 -1
  208. package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +0 -1
  209. package/.turbo/cache/d3afdb9a7db9eacc-meta.json +0 -1
  210. package/.turbo/cache/d8ecdff9c663c38e-meta.json +0 -1
  211. package/.turbo/cache/de494df6a3006101-meta.json +0 -1
  212. package/.turbo/cache/e04489ada7560903-meta.json +0 -1
  213. package/.turbo/cache/e56a9865641ec3e8-meta.json +0 -1
  214. package/.turbo/cache/e7ed9e7056d80938-meta.json +0 -1
  215. package/.turbo/cache/e837827cd24834c4-meta.json +0 -1
  216. package/.turbo/cache/e9ff93179777aa26-meta.json +0 -1
  217. package/.turbo/cache/f2e689c8cdd1aafe-meta.json +0 -1
  218. package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +0 -1
  219. package/.turbo/cache/ff3c8a3042cab66e-meta.json +0 -1
  220. /package/.turbo/cache/{d3afdb9a7db9eacc.tar.zst → 06dfc9c20aacd0fa.tar.zst} +0 -0
  221. /package/.turbo/cache/{e837827cd24834c4.tar.zst → 075034ccdb82fbea.tar.zst} +0 -0
  222. /package/.turbo/cache/{e7ed9e7056d80938.tar.zst → 10b8500a6b0c6655.tar.zst} +0 -0
  223. /package/.turbo/cache/{5fc9a7a072827b7b.tar.zst → 138466aaa06fa946.tar.zst} +0 -0
  224. /package/.turbo/cache/{cbcd9db8ac9a2d52.tar.zst → 1a8525cb6ad91e2a.tar.zst} +0 -0
  225. /package/.turbo/cache/{1d4280429ff4222f.tar.zst → 1d4e8167ea8e924f.tar.zst} +0 -0
  226. /package/.turbo/cache/{4e9c9a5dd62c50a4.tar.zst → 2289d12debb3c42c.tar.zst} +0 -0
  227. /package/.turbo/cache/{de494df6a3006101.tar.zst → 22fc147c04804f70.tar.zst} +0 -0
  228. /package/.turbo/cache/{a60bcc111612dda1.tar.zst → 271d4402e968a825.tar.zst} +0 -0
  229. /package/.turbo/cache/{f2e689c8cdd1aafe.tar.zst → 3025cdff2ca7afbf.tar.zst} +0 -0
  230. /package/.turbo/cache/{bf3d1eace5e676f9.tar.zst → 3082b3a86c0f9b94.tar.zst} +0 -0
  231. /package/.turbo/cache/{19fbb16e12ecafea.tar.zst → 519f3a29843b596b.tar.zst} +0 -0
  232. /package/.turbo/cache/{3f1b3db13386acdc.tar.zst → 5b3bb164db4c477c.tar.zst} +0 -0
  233. /package/.turbo/cache/{3e7c2d508c29564b.tar.zst → 5b98e88f80b7323c.tar.zst} +0 -0
  234. /package/.turbo/cache/{3221d91a94756c26.tar.zst → 6bfd7cffad1e6b8a.tar.zst} +0 -0
  235. /package/.turbo/cache/{753b119a389426be.tar.zst → 70e65d2581c9de95.tar.zst} +0 -0
  236. /package/.turbo/cache/{b0b5e4ac676e8308.tar.zst → 7e684ba4a635750f.tar.zst} +0 -0
  237. /package/.turbo/cache/{6e0b3da6e3ff3718.tar.zst → 85f181c5a0ebfdc3.tar.zst} +0 -0
  238. /package/.turbo/cache/{ff3c8a3042cab66e.tar.zst → 88d4c5b7339b081b.tar.zst} +0 -0
  239. /package/.turbo/cache/{e9ff93179777aa26.tar.zst → 8f20a1cd3533e2cb.tar.zst} +0 -0
  240. /package/.turbo/cache/{28fe2121c9ba81e2.tar.zst → 91de2098a36b6939.tar.zst} +0 -0
  241. /package/.turbo/cache/{430c124614841675.tar.zst → 96edc0764ed4ab77.tar.zst} +0 -0
  242. /package/.turbo/cache/{3058929eb73309e5.tar.zst → a0ef6b3a6cb6b702.tar.zst} +0 -0
  243. /package/.turbo/cache/{f7ab9a13f9acc0ab.tar.zst → a776eb6f87cd7464.tar.zst} +0 -0
  244. /package/.turbo/cache/{30fda91ef83677e4.tar.zst → ac47b2df8381d990.tar.zst} +0 -0
  245. /package/.turbo/cache/{298b6ff0272e6226.tar.zst → bff34c0db361f414.tar.zst} +0 -0
  246. /package/.turbo/cache/{ca9625ba0a5cd272.tar.zst → c1c7334875426ff3.tar.zst} +0 -0
  247. /package/.turbo/cache/{5326b73ddda05291.tar.zst → cd12b66dd972aaf7.tar.zst} +0 -0
  248. /package/.turbo/cache/{45bdeb0396723b25.tar.zst → d5dbe6fb31ae5667.tar.zst} +0 -0
  249. /package/.turbo/cache/{5a9a22bec5b85071.tar.zst → d98e545755f6dc12.tar.zst} +0 -0
  250. /package/.turbo/cache/{785960dbbde053b6.tar.zst → e64bd75c16c140f3.tar.zst} +0 -0
  251. /package/.turbo/cache/{d8ecdff9c663c38e.tar.zst → ea92743dea3b7023.tar.zst} +0 -0
  252. /package/.turbo/cache/{1e094164b4932553.tar.zst → f22dc2dd55715ba2.tar.zst} +0 -0
  253. /package/.turbo/cache/{e56a9865641ec3e8.tar.zst → f8f99ba69bff8f2c.tar.zst} +0 -0
@@ -12226,7 +12226,11 @@ class AuroFloatingUI {
12226
12226
 
12227
12227
  updateState() {
12228
12228
  const isVisible = this.element.isPopoverVisible;
12229
- this.element.trigger.setAttribute('aria-expanded', isVisible);
12229
+
12230
+ // Refactor this to apply attribute to correct focusable element
12231
+ // Reference Issue: https://github.com/AlaskaAirlines/auro-library/issues/105
12232
+ //
12233
+ // this.element.trigger.setAttribute('aria-expanded', isVisible);
12230
12234
 
12231
12235
  if (isVisible) {
12232
12236
  this.element.bib.setAttribute('data-show', true);
@@ -12905,11 +12909,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
12905
12909
 
12906
12910
  var iconVersion$1 = '6.1.2';
12907
12911
 
12908
- var styleCss$2$1 = i$7$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
12912
+ var styleCss$2$1 = i$7$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
12909
12913
 
12910
- var colorCss$2$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
12914
+ var colorCss$2$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
12911
12915
 
12912
- var tokensCss$1$1 = i$7$1`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
12916
+ var tokensCss$1$1 = i$7$1`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
12913
12917
 
12914
12918
  /**
12915
12919
  * @license
@@ -13248,7 +13252,6 @@ if (!customElements.get("auro-dropdownbib")) {
13248
13252
  * @csspart trigger - The trigger content container.
13249
13253
  * @csspart chevron - The collapsed/expanded state icon container.
13250
13254
  * @csspart helpText - The helpText content container.
13251
- * @csspart popover - The bib content container.
13252
13255
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
13253
13256
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
13254
13257
  */
@@ -13581,6 +13584,64 @@ class AuroDropdown extends r$4$1 {
13581
13584
  return inCustomSlot;
13582
13585
  }
13583
13586
 
13587
+ /**
13588
+ * Determines if the element or any children are focusable.
13589
+ * @private
13590
+ * @param {HTMLElement} element - Element to check.
13591
+ * @returns {Boolean} - True if the element or any children are focusable.
13592
+ */
13593
+ containsFocusableElement(element) {
13594
+ this.showTriggerBorders = true;
13595
+
13596
+ const nodes = [
13597
+ element,
13598
+ ...element.children
13599
+ ];
13600
+
13601
+ const focusableElements = [
13602
+ 'a',
13603
+ 'auro-hyperlink',
13604
+ 'button',
13605
+ 'auro-button',
13606
+ 'input',
13607
+ 'auro-input',
13608
+ ];
13609
+
13610
+ const focusableElementsThatNeedBorders = ['auro-input'];
13611
+
13612
+ const result = nodes.some((node) => {
13613
+ const tagName = node.tagName.toLowerCase();
13614
+
13615
+ if (node.tabIndex > -1) {
13616
+ return true;
13617
+ }
13618
+
13619
+ if (focusableElements.includes(tagName)) {
13620
+ if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
13621
+ return true;
13622
+ }
13623
+ if (!node.hasAttribute('disabled')) {
13624
+ return true;
13625
+ }
13626
+ }
13627
+
13628
+ if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
13629
+ return true;
13630
+ }
13631
+
13632
+ return false;
13633
+ });
13634
+
13635
+ if (result) {
13636
+ this.showTriggerBorders = !nodes.some((node) => {
13637
+ const tagName = node.tagName.toLowerCase();
13638
+ return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
13639
+ });
13640
+ }
13641
+
13642
+ return result;
13643
+ }
13644
+
13584
13645
  /**
13585
13646
  * Handles changes to the trigger content slot and updates related properties.
13586
13647
  *
@@ -13596,6 +13657,24 @@ class AuroDropdown extends r$4$1 {
13596
13657
  handleTriggerContentSlotChange(event) {
13597
13658
  this.floater.handleTriggerTabIndex();
13598
13659
 
13660
+ const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
13661
+
13662
+ triggerContentNodes.forEach((node) => {
13663
+ if (!this.triggerContentFocusable) {
13664
+ this.triggerContentFocusable = this.containsFocusableElement(node);
13665
+ }
13666
+ });
13667
+
13668
+ const trigger = this.shadowRoot.querySelector('#trigger');
13669
+
13670
+ if (!this.triggerContentFocusable) {
13671
+ trigger.setAttribute('tabindex', '0');
13672
+ trigger.setAttribute('role', 'button');
13673
+ } else {
13674
+ trigger.removeAttribute('tabindex');
13675
+ trigger.removeAttribute('role');
13676
+ }
13677
+
13599
13678
  if (event) {
13600
13679
  this.triggerNode = event.target;
13601
13680
  this.triggerContentSlot = event.target.assignedNodes();
@@ -13646,10 +13725,9 @@ class AuroDropdown extends r$4$1 {
13646
13725
  id="trigger"
13647
13726
  class="trigger"
13648
13727
  part="trigger"
13649
- role="button"
13650
13728
  aria-labelledby="triggerLabel"
13651
- aria-controls="popover"
13652
13729
  tabindex="${this.tabIndex}"
13730
+ ?showBorder="${this.showTriggerBorders}"
13653
13731
  >
13654
13732
  <div class="triggerContentWrapper">
13655
13733
  <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
@@ -18615,7 +18693,6 @@ class AuroDatePicker extends r$b {
18615
18693
  });
18616
18694
 
18617
18695
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
18618
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18619
18696
  this.notifyDatepickerToggled();
18620
18697
 
18621
18698
  this.calendar.visible = this.dropdown.isPopoverVisible;
@@ -18627,10 +18704,6 @@ class AuroDatePicker extends r$b {
18627
18704
  }
18628
18705
  }
18629
18706
  });
18630
-
18631
- if (!this.dropdown.hasAttribute('aria-expanded')) {
18632
- this.dropdown.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18633
- }
18634
18707
  }
18635
18708
 
18636
18709
  /**
@@ -18736,8 +18809,6 @@ class AuroDatePicker extends r$b {
18736
18809
  });
18737
18810
 
18738
18811
  this.addEventListener('focusout', (evt) => {
18739
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18740
-
18741
18812
  if (!this.noValidate && !evt.detail.expanded && this.inputList[0].value !== undefined) {
18742
18813
  if (!this.contains(document.activeElement)) {
18743
18814
  this.validation.validate(this.inputList[0]);
@@ -1 +1 @@
1
- {"version":3,"file":"auro-datepicker.d.ts","sourceRoot":"","sources":["../src/auro-datepicker.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH;IA0FE;QAGI;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;MAKN;IAED,+CAMC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAnQC;;OAEG;IACH,aAAyC;IAEzC;;OAEG;IACH,2BAAuD;IASvD,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAClB,oBAAuB;IACvB,cAAyB;IACzB,WAAsB;IACtB,cAAyB;IACzB,uBAAkC;IAClC,qBAAgC;IAChC,uBAAmC;IACnC,qBAaC;IAED;;OAEG;IACH,aAA4B;IAE5B;;OAEG;IACH,wBAAyB;IAEzB;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAEjD;;OAEG;IACH,8CAAkD;IAOlD;;OAEG;IACH,oBAAyF;IAEzF;;OAEG;IACH,iBAA6E;IAqL/E;;;OAGG;IACH,cAFa,MAAM,EAAE,CAkBpB;IAED;;;;OAIG;IACH,8BAMC;IAED;;;;OAIG;IACH,6BAEC;IAED;;;;OAIG;IACH,2BAFa,IAAI,CAIhB;IAGD;;;;;OAKG;IACH,6BAEC;IAED;;;;;OAKG;IACH,4BAMC;IAED;;;;OAIG;IACH,2BAUC;IAED;;;;;OAKG;IACH,yBAiBC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,gCAQC;IAED;;;;;OAKG;IACH,2BAUC;IAED;;;;OAIG;IACH,0BA0BC;IAzBC,cAA4E;IA2B9E;;;;OAIG;IACH,uBAsCC;IArCC,kBAAkE;IAElE,iBAAgF;IAyB1E,kBAAsC;IAY9C;;;;OAIG;IACH,0BA2BC;IA1BC,kBAA8D;IA4BhE;;;;OAIG;IACH,4BAwDC;IAED;;;;OAIG;IACH,uBAWC;IAED;;;;;OAKG;IACH,wCAMC;IAED;;;;;OAKG;IACH,wBAwBC;IAvBC,yBAA2B;IAyB7B;;;;OAIG;IACH,wBAEC;IAED;;;OAGG;IACH,SAFa,IAAI,CAQhB;IAED;;;OAGG;IACH,iBAFW,OAAO,QAIjB;IAED,sCAsLC;IAED;;;;;;;OAOG;IACH,yBAGC;IAED,qBAYC;IAGD,4CAkFC;CACF;2BA7gC0B,KAAK"}
1
+ {"version":3,"file":"auro-datepicker.d.ts","sourceRoot":"","sources":["../src/auro-datepicker.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH;IA0FE;QAGI;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;MAKN;IAED,+CAMC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAnQC;;OAEG;IACH,aAAyC;IAEzC;;OAEG;IACH,2BAAuD;IASvD,kBAAqB;IACrB,kBAAqB;IACrB,eAAkB;IAClB,oBAAuB;IACvB,cAAyB;IACzB,WAAsB;IACtB,cAAyB;IACzB,uBAAkC;IAClC,qBAAgC;IAChC,uBAAmC;IACnC,qBAaC;IAED;;OAEG;IACH,aAA4B;IAE5B;;OAEG;IACH,wBAAyB;IAEzB;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAEjD;;OAEG;IACH,8CAAkD;IAOlD;;OAEG;IACH,oBAAyF;IAEzF;;OAEG;IACH,iBAA6E;IAqL/E;;;OAGG;IACH,cAFa,MAAM,EAAE,CAkBpB;IAED;;;;OAIG;IACH,8BAMC;IAED;;;;OAIG;IACH,6BAEC;IAED;;;;OAIG;IACH,2BAFa,IAAI,CAIhB;IAGD;;;;;OAKG;IACH,6BAEC;IAED;;;;;OAKG;IACH,4BAMC;IAED;;;;OAIG;IACH,2BAUC;IAED;;;;;OAKG;IACH,yBAiBC;IAED;;;;OAIG;IACH,gCAEC;IAED;;;;OAIG;IACH,gCAQC;IAED;;;;;OAKG;IACH,2BAUC;IAED;;;;OAIG;IACH,0BAqBC;IApBC,cAA4E;IAsB9E;;;;OAIG;IACH,uBAsCC;IArCC,kBAAkE;IAElE,iBAAgF;IAyB1E,kBAAsC;IAY9C;;;;OAIG;IACH,0BA2BC;IA1BC,kBAA8D;IA4BhE;;;;OAIG;IACH,4BAsDC;IAED;;;;OAIG;IACH,uBAWC;IAED;;;;;OAKG;IACH,wCAMC;IAED;;;;;OAKG;IACH,wBAwBC;IAvBC,yBAA2B;IAyB7B;;;;OAIG;IACH,wBAEC;IAED;;;OAGG;IACH,SAFa,IAAI,CAQhB;IAED;;;OAGG;IACH,iBAFW,OAAO,QAIjB;IAED,sCAsLC;IAED;;;;;;;OAOG;IACH,yBAGC;IAED,qBAYC;IAGD,4CAkFC;CACF;2BAtgC0B,KAAK"}
@@ -12226,7 +12226,11 @@ class AuroFloatingUI {
12226
12226
 
12227
12227
  updateState() {
12228
12228
  const isVisible = this.element.isPopoverVisible;
12229
- this.element.trigger.setAttribute('aria-expanded', isVisible);
12229
+
12230
+ // Refactor this to apply attribute to correct focusable element
12231
+ // Reference Issue: https://github.com/AlaskaAirlines/auro-library/issues/105
12232
+ //
12233
+ // this.element.trigger.setAttribute('aria-expanded', isVisible);
12230
12234
 
12231
12235
  if (isVisible) {
12232
12236
  this.element.bib.setAttribute('data-show', true);
@@ -12905,11 +12909,11 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
12905
12909
 
12906
12910
  var iconVersion$1 = '6.1.2';
12907
12911
 
12908
- var styleCss$2$1 = i$7$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
12912
+ var styleCss$2$1 = i$7$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
12909
12913
 
12910
- var colorCss$2$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
12914
+ var colorCss$2$1 = i$7$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
12911
12915
 
12912
- var tokensCss$1$1 = i$7$1`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
12916
+ var tokensCss$1$1 = i$7$1`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
12913
12917
 
12914
12918
  /**
12915
12919
  * @license
@@ -13248,7 +13252,6 @@ if (!customElements.get("auro-dropdownbib")) {
13248
13252
  * @csspart trigger - The trigger content container.
13249
13253
  * @csspart chevron - The collapsed/expanded state icon container.
13250
13254
  * @csspart helpText - The helpText content container.
13251
- * @csspart popover - The bib content container.
13252
13255
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
13253
13256
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
13254
13257
  */
@@ -13581,6 +13584,64 @@ class AuroDropdown extends r$4$1 {
13581
13584
  return inCustomSlot;
13582
13585
  }
13583
13586
 
13587
+ /**
13588
+ * Determines if the element or any children are focusable.
13589
+ * @private
13590
+ * @param {HTMLElement} element - Element to check.
13591
+ * @returns {Boolean} - True if the element or any children are focusable.
13592
+ */
13593
+ containsFocusableElement(element) {
13594
+ this.showTriggerBorders = true;
13595
+
13596
+ const nodes = [
13597
+ element,
13598
+ ...element.children
13599
+ ];
13600
+
13601
+ const focusableElements = [
13602
+ 'a',
13603
+ 'auro-hyperlink',
13604
+ 'button',
13605
+ 'auro-button',
13606
+ 'input',
13607
+ 'auro-input',
13608
+ ];
13609
+
13610
+ const focusableElementsThatNeedBorders = ['auro-input'];
13611
+
13612
+ const result = nodes.some((node) => {
13613
+ const tagName = node.tagName.toLowerCase();
13614
+
13615
+ if (node.tabIndex > -1) {
13616
+ return true;
13617
+ }
13618
+
13619
+ if (focusableElements.includes(tagName)) {
13620
+ if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
13621
+ return true;
13622
+ }
13623
+ if (!node.hasAttribute('disabled')) {
13624
+ return true;
13625
+ }
13626
+ }
13627
+
13628
+ if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
13629
+ return true;
13630
+ }
13631
+
13632
+ return false;
13633
+ });
13634
+
13635
+ if (result) {
13636
+ this.showTriggerBorders = !nodes.some((node) => {
13637
+ const tagName = node.tagName.toLowerCase();
13638
+ return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
13639
+ });
13640
+ }
13641
+
13642
+ return result;
13643
+ }
13644
+
13584
13645
  /**
13585
13646
  * Handles changes to the trigger content slot and updates related properties.
13586
13647
  *
@@ -13596,6 +13657,24 @@ class AuroDropdown extends r$4$1 {
13596
13657
  handleTriggerContentSlotChange(event) {
13597
13658
  this.floater.handleTriggerTabIndex();
13598
13659
 
13660
+ const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
13661
+
13662
+ triggerContentNodes.forEach((node) => {
13663
+ if (!this.triggerContentFocusable) {
13664
+ this.triggerContentFocusable = this.containsFocusableElement(node);
13665
+ }
13666
+ });
13667
+
13668
+ const trigger = this.shadowRoot.querySelector('#trigger');
13669
+
13670
+ if (!this.triggerContentFocusable) {
13671
+ trigger.setAttribute('tabindex', '0');
13672
+ trigger.setAttribute('role', 'button');
13673
+ } else {
13674
+ trigger.removeAttribute('tabindex');
13675
+ trigger.removeAttribute('role');
13676
+ }
13677
+
13599
13678
  if (event) {
13600
13679
  this.triggerNode = event.target;
13601
13680
  this.triggerContentSlot = event.target.assignedNodes();
@@ -13646,10 +13725,9 @@ class AuroDropdown extends r$4$1 {
13646
13725
  id="trigger"
13647
13726
  class="trigger"
13648
13727
  part="trigger"
13649
- role="button"
13650
13728
  aria-labelledby="triggerLabel"
13651
- aria-controls="popover"
13652
13729
  tabindex="${this.tabIndex}"
13730
+ ?showBorder="${this.showTriggerBorders}"
13653
13731
  >
13654
13732
  <div class="triggerContentWrapper">
13655
13733
  <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
@@ -18615,7 +18693,6 @@ class AuroDatePicker extends r$b {
18615
18693
  });
18616
18694
 
18617
18695
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
18618
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18619
18696
  this.notifyDatepickerToggled();
18620
18697
 
18621
18698
  this.calendar.visible = this.dropdown.isPopoverVisible;
@@ -18627,10 +18704,6 @@ class AuroDatePicker extends r$b {
18627
18704
  }
18628
18705
  }
18629
18706
  });
18630
-
18631
- if (!this.dropdown.hasAttribute('aria-expanded')) {
18632
- this.dropdown.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18633
- }
18634
18707
  }
18635
18708
 
18636
18709
  /**
@@ -18736,8 +18809,6 @@ class AuroDatePicker extends r$b {
18736
18809
  });
18737
18810
 
18738
18811
  this.addEventListener('focusout', (evt) => {
18739
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
18740
-
18741
18812
  if (!this.noValidate && !evt.detail.expanded && this.inputList[0].value !== undefined) {
18742
18813
  if (!this.contains(document.activeElement)) {
18743
18814
  this.validation.validate(this.inputList[0]);
@@ -26,14 +26,14 @@
26
26
  "wc-range-datepicker": "^1.3.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@aurodesignsystem/design-tokens": "^4.13",
29
+ "@aurodesignsystem/design-tokens": "^4.13.0",
30
30
  "@aurodesignsystem/webcorestylesheets": "^6.0.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@auro-formkit/build-tools": "*",
34
34
  "@auro-formkit/config": "*",
35
35
  "@auro-formkit/typescript": "*",
36
- "@aurodesignsystem/design-tokens": "^4.12.1",
36
+ "@aurodesignsystem/design-tokens": "^4.13.0",
37
37
  "@aurodesignsystem/webcorestylesheets": "^5.1.2",
38
38
  "@rollup/plugin-node-resolve": "^15.3.0",
39
39
  "compression": "^1.7.4",
@@ -496,7 +496,6 @@ export class AuroDatePicker extends LitElement {
496
496
  });
497
497
 
498
498
  this.dropdown.addEventListener('auroDropdown-toggled', () => {
499
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
500
499
  this.notifyDatepickerToggled();
501
500
 
502
501
  this.calendar.visible = this.dropdown.isPopoverVisible;
@@ -508,10 +507,6 @@ export class AuroDatePicker extends LitElement {
508
507
  }
509
508
  }
510
509
  });
511
-
512
- if (!this.dropdown.hasAttribute('aria-expanded')) {
513
- this.dropdown.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
514
- }
515
510
  }
516
511
 
517
512
  /**
@@ -617,8 +612,6 @@ export class AuroDatePicker extends LitElement {
617
612
  });
618
613
 
619
614
  this.addEventListener('focusout', (evt) => {
620
- this.setAttribute('aria-expanded', this.dropdown.isPopoverVisible);
621
-
622
615
  if (!this.noValidate && !evt.detail.expanded && this.inputList[0].value !== undefined) {
623
616
  if (!this.contains(document.activeElement)) {
624
617
  this.validation.validate(this.inputList[0]);
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
90
90
 
91
91
  
92
92
  ./src/index.js → dist...
93
- created dist in 1.1s
93
+ created dist in 1.3s
94
94
  
95
95
  ./demo/index.js → ./demo/...
96
- created ./demo/ in 840ms
96
+ created ./demo/ in 734ms
97
97
  
98
98
  ./demo/api.js → ./demo/...
99
- created ./demo/ in 641ms
99
+ created ./demo/ in 642ms
100
100
 
101
101
  > @aurodesignsystem/auro-dropdown@3.0.0 build:docs
102
102
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
@@ -95,9 +95,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
95
95
 
96
96
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentBundleUseModBrowsers.md) -->
97
97
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
98
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.33/dist/auro-dropdown__bundled.js" type="module"></script>
100
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.35/dist/auro-dropdown__bundled.js" type="module"></script>
101
101
  <!-- AURO-GENERATED-CONTENT:END -->
102
102
 
103
103
  ## auro-dropdown use cases
@@ -709,9 +709,21 @@ On mobile view, adding the `mobileFullscreenBreakpoint="{breakpoint-token}"` wil
709
709
 
710
710
  ### Slot Examples
711
711
 
712
- #### trigger & default
712
+ #### default
713
713
 
714
- All examples shown on this page include default and `trigger` slot content.
714
+ All examples shown on this page include default slot content.
715
+
716
+ #### trigger
717
+
718
+ Content defined in the `trigger` slot will be rendered in the clickable trigger of the dropdown that is used to display the bib. Focus state visual effects will be disabled on the trigger when it contains a focusable element other than `<auro-input>`.
719
+
720
+ This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
721
+ - `<a>`
722
+ - `<auro-hyperlink>`
723
+ - `<button>`
724
+ - `<auro-button>`
725
+ - `<input>`
726
+ - `<auro-input>`
715
727
 
716
728
  #### label
717
729
 
@@ -1169,6 +1181,7 @@ The component may be restyled using the following code sample and changing the v
1169
1181
  --ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
1170
1182
  --ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
1171
1183
  --ds-auro-dropdown-trigger-border-color: transparent;
1184
+ --ds-auro-dropdown-trigger-outline-color: transparent;
1172
1185
  --ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
1173
1186
  --ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{$ds-elevation-200});
1174
1187
  --ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
@@ -1748,7 +1748,11 @@ class AuroFloatingUI {
1748
1748
 
1749
1749
  updateState() {
1750
1750
  const isVisible = this.element.isPopoverVisible;
1751
- this.element.trigger.setAttribute('aria-expanded', isVisible);
1751
+
1752
+ // Refactor this to apply attribute to correct focusable element
1753
+ // Reference Issue: https://github.com/AlaskaAirlines/auro-library/issues/105
1754
+ //
1755
+ // this.element.trigger.setAttribute('aria-expanded', isVisible);
1752
1756
 
1753
1757
  if (isVisible) {
1754
1758
  this.element.bib.setAttribute('data-show', true);
@@ -2427,11 +2431,11 @@ class AuroIcon extends BaseIcon {
2427
2431
 
2428
2432
  var iconVersion = '6.1.2';
2429
2433
 
2430
- var styleCss$2 = i$7`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
2434
+ var styleCss$2 = i$7`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
2431
2435
 
2432
- var colorCss$2 = i$7`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
2436
+ var colorCss$2 = i$7`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
2433
2437
 
2434
- var tokensCss$1 = i$7`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
2438
+ var tokensCss$1 = i$7`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
2435
2439
 
2436
2440
  /**
2437
2441
  * @license
@@ -2770,7 +2774,6 @@ if (!customElements.get("auro-dropdownbib")) {
2770
2774
  * @csspart trigger - The trigger content container.
2771
2775
  * @csspart chevron - The collapsed/expanded state icon container.
2772
2776
  * @csspart helpText - The helpText content container.
2773
- * @csspart popover - The bib content container.
2774
2777
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
2775
2778
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
2776
2779
  */
@@ -3103,6 +3106,64 @@ class AuroDropdown extends r$4 {
3103
3106
  return inCustomSlot;
3104
3107
  }
3105
3108
 
3109
+ /**
3110
+ * Determines if the element or any children are focusable.
3111
+ * @private
3112
+ * @param {HTMLElement} element - Element to check.
3113
+ * @returns {Boolean} - True if the element or any children are focusable.
3114
+ */
3115
+ containsFocusableElement(element) {
3116
+ this.showTriggerBorders = true;
3117
+
3118
+ const nodes = [
3119
+ element,
3120
+ ...element.children
3121
+ ];
3122
+
3123
+ const focusableElements = [
3124
+ 'a',
3125
+ 'auro-hyperlink',
3126
+ 'button',
3127
+ 'auro-button',
3128
+ 'input',
3129
+ 'auro-input',
3130
+ ];
3131
+
3132
+ const focusableElementsThatNeedBorders = ['auro-input'];
3133
+
3134
+ const result = nodes.some((node) => {
3135
+ const tagName = node.tagName.toLowerCase();
3136
+
3137
+ if (node.tabIndex > -1) {
3138
+ return true;
3139
+ }
3140
+
3141
+ if (focusableElements.includes(tagName)) {
3142
+ if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
3143
+ return true;
3144
+ }
3145
+ if (!node.hasAttribute('disabled')) {
3146
+ return true;
3147
+ }
3148
+ }
3149
+
3150
+ if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
3151
+ return true;
3152
+ }
3153
+
3154
+ return false;
3155
+ });
3156
+
3157
+ if (result) {
3158
+ this.showTriggerBorders = !nodes.some((node) => {
3159
+ const tagName = node.tagName.toLowerCase();
3160
+ return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
3161
+ });
3162
+ }
3163
+
3164
+ return result;
3165
+ }
3166
+
3106
3167
  /**
3107
3168
  * Handles changes to the trigger content slot and updates related properties.
3108
3169
  *
@@ -3118,6 +3179,24 @@ class AuroDropdown extends r$4 {
3118
3179
  handleTriggerContentSlotChange(event) {
3119
3180
  this.floater.handleTriggerTabIndex();
3120
3181
 
3182
+ const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
3183
+
3184
+ triggerContentNodes.forEach((node) => {
3185
+ if (!this.triggerContentFocusable) {
3186
+ this.triggerContentFocusable = this.containsFocusableElement(node);
3187
+ }
3188
+ });
3189
+
3190
+ const trigger = this.shadowRoot.querySelector('#trigger');
3191
+
3192
+ if (!this.triggerContentFocusable) {
3193
+ trigger.setAttribute('tabindex', '0');
3194
+ trigger.setAttribute('role', 'button');
3195
+ } else {
3196
+ trigger.removeAttribute('tabindex');
3197
+ trigger.removeAttribute('role');
3198
+ }
3199
+
3121
3200
  if (event) {
3122
3201
  this.triggerNode = event.target;
3123
3202
  this.triggerContentSlot = event.target.assignedNodes();
@@ -3168,10 +3247,9 @@ class AuroDropdown extends r$4 {
3168
3247
  id="trigger"
3169
3248
  class="trigger"
3170
3249
  part="trigger"
3171
- role="button"
3172
3250
  aria-labelledby="triggerLabel"
3173
- aria-controls="popover"
3174
3251
  tabindex="${this.tabIndex}"
3252
+ ?showBorder="${this.showTriggerBorders}"
3175
3253
  >
3176
3254
  <div class="triggerContentWrapper">
3177
3255
  <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
@@ -1,9 +1,6 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
2
2
  // import { AuroDropdownBib } from '../src/auro-dropdownBib.js';
3
3
  import { AuroDropdown } from '../src/auro-dropdown.js';
4
-
5
- // AuroDropdownBib.register();
6
-
7
4
  AuroDropdown.register();
8
5
  AuroDropdown.register('custom-dropdown');
9
6