@re-code/aurora 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/README.md +1 -1
  2. package/dist/aurora/aurora.esm.js +1 -1
  3. package/dist/aurora/{p-8ed72e5b.entry.js → p-01ff4d34.entry.js} +1 -1
  4. package/dist/aurora/{p-c3668073.entry.js → p-0554ffea.entry.js} +1 -1
  5. package/dist/aurora/{p-278d3434.entry.js → p-0a0a2bfe.entry.js} +1 -1
  6. package/dist/aurora/{p-e1c97234.entry.js → p-0a7e9e8e.entry.js} +1 -1
  7. package/dist/aurora/{p-c330982c.entry.js → p-1670a9bd.entry.js} +1 -1
  8. package/dist/aurora/{p-efd60427.entry.js → p-17c6de2c.entry.js} +1 -1
  9. package/dist/aurora/{p-a87dc1d3.entry.js → p-24ff90e0.entry.js} +1 -1
  10. package/dist/aurora/p-27da7b8a.entry.js +1 -0
  11. package/dist/aurora/p-380d8ebe.entry.js +1 -0
  12. package/dist/aurora/{p-a1e257c7.entry.js → p-3cfccef1.entry.js} +1 -1
  13. package/dist/aurora/{p-e72126a2.entry.js → p-4fd71d14.entry.js} +1 -1
  14. package/dist/aurora/{p-89b66c7a.entry.js → p-5606ed9c.entry.js} +1 -1
  15. package/dist/aurora/p-56fc4315.entry.js +1 -0
  16. package/dist/aurora/{p-685b9e53.entry.js → p-5a027df1.entry.js} +1 -1
  17. package/dist/aurora/{p-487df7d8.entry.js → p-5dd73182.entry.js} +1 -1
  18. package/dist/aurora/{p-17e65032.entry.js → p-62d79933.entry.js} +1 -1
  19. package/dist/aurora/p-6a1363da.entry.js +1 -0
  20. package/dist/aurora/{p-fd4e9cdd.entry.js → p-6e9c8e27.entry.js} +1 -1
  21. package/dist/aurora/{p-31a86367.entry.js → p-742abb2c.entry.js} +1 -1
  22. package/dist/aurora/{p-40bb52c3.entry.js → p-7a9bc20f.entry.js} +1 -1
  23. package/dist/aurora/{p-35edd036.entry.js → p-7cc6bb71.entry.js} +1 -1
  24. package/dist/aurora/{p-689f37db.entry.js → p-7fa0ee48.entry.js} +1 -1
  25. package/dist/aurora/{p-ee2ea46e.entry.js → p-815611f9.entry.js} +1 -1
  26. package/dist/aurora/{p-a8e984e1.entry.js → p-8800c466.entry.js} +1 -1
  27. package/dist/aurora/{p-5d2a88ca.entry.js → p-9e9377b5.entry.js} +1 -1
  28. package/dist/aurora/p-DMeUBbqF.js +7 -0
  29. package/dist/aurora/{p-DXbj-yic.js → p-DNpzZvak.js} +1 -1
  30. package/dist/aurora/p-DjW6oMgu.js +7 -0
  31. package/dist/aurora/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
  32. package/dist/aurora/p-NvNa2Iiu.js +1 -0
  33. package/dist/aurora/p-a376a248.entry.js +1 -0
  34. package/dist/aurora/{p-0608e910.entry.js → p-a63d1f80.entry.js} +1 -1
  35. package/dist/aurora/p-b0ebcc51.entry.js +1 -0
  36. package/dist/aurora/p-be98a1d7.entry.js +1 -0
  37. package/dist/aurora/{p-ed998b0c.entry.js → p-bf922703.entry.js} +1 -1
  38. package/dist/aurora/{p-ee4475a6.entry.js → p-c1422894.entry.js} +1 -1
  39. package/dist/aurora/{p-372a3416.entry.js → p-c2164ffe.entry.js} +1 -1
  40. package/dist/aurora/{p-2a16d544.entry.js → p-cb63ca43.entry.js} +1 -1
  41. package/dist/aurora/p-cc1015fe.entry.js +1 -0
  42. package/dist/aurora/{p-88b72de7.entry.js → p-cf16464e.entry.js} +1 -1
  43. package/dist/aurora/p-cfa0166b.entry.js +1 -0
  44. package/dist/aurora/{p-e7c81a6b.entry.js → p-d85e1d60.entry.js} +1 -1
  45. package/dist/aurora/{p-64229ad2.entry.js → p-f176be8b.entry.js} +1 -1
  46. package/dist/aurora/{p-bd1f6486.entry.js → p-f3383f3c.entry.js} +1 -1
  47. package/dist/aurora/p-f5d3aefa.entry.js +1 -0
  48. package/dist/aurora/{p-038b2190.entry.js → p-f85687a5.entry.js} +1 -1
  49. package/dist/aurora/{p-546a2f69.entry.js → p-fe143404.entry.js} +1 -1
  50. package/dist/cjs/au-alert.cjs.entry.js +1 -1
  51. package/dist/cjs/au-breadcrumb-item.cjs.entry.js +1 -1
  52. package/dist/cjs/au-breadcrumb.cjs.entry.js +1 -1
  53. package/dist/cjs/au-checkbox.cjs.entry.js +4 -4
  54. package/dist/cjs/au-combobox.cjs.entry.js +6 -6
  55. package/dist/cjs/au-container.cjs.entry.js +1 -1
  56. package/dist/cjs/au-dialog.cjs.entry.js +4 -4
  57. package/dist/cjs/au-divider.cjs.entry.js +1 -1
  58. package/dist/cjs/au-field.cjs.entry.js +1 -1
  59. package/dist/cjs/{au-icon-D0L9Wwy0.js → au-icon-0-khGfX2.js} +1 -1
  60. package/dist/cjs/au-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/au-input.cjs.entry.js +6 -6
  62. package/dist/cjs/au-kbd.cjs.entry.js +355 -0
  63. package/dist/cjs/au-list-item.cjs.entry.js +195 -0
  64. package/dist/cjs/au-list.cjs.entry.js +78 -0
  65. package/dist/cjs/au-menu-item.cjs.entry.js +1 -1
  66. package/dist/cjs/au-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/au-nav-link.cjs.entry.js +1 -1
  68. package/dist/cjs/au-navbar.cjs.entry.js +4 -4
  69. package/dist/cjs/au-number-input.cjs.entry.js +4 -4
  70. package/dist/cjs/au-popover.cjs.entry.js +1 -1
  71. package/dist/cjs/au-progress.cjs.entry.js +107 -0
  72. package/dist/cjs/au-radio-group.cjs.entry.js +3 -3
  73. package/dist/cjs/au-radio.cjs.entry.js +1 -1
  74. package/dist/cjs/au-segmented-control.cjs.entry.js +3 -3
  75. package/dist/cjs/au-segmented-option.cjs.entry.js +1 -1
  76. package/dist/cjs/au-select.cjs.entry.js +4 -4
  77. package/dist/cjs/au-sidebar-nav.cjs.entry.js +1 -1
  78. package/dist/cjs/au-skeleton.cjs.entry.js +106 -0
  79. package/dist/cjs/au-slider.cjs.entry.js +3 -3
  80. package/dist/cjs/au-splitter.cjs.entry.js +2 -2
  81. package/dist/cjs/au-stat.cjs.entry.js +262 -0
  82. package/dist/cjs/au-switch.cjs.entry.js +4 -4
  83. package/dist/cjs/au-tab-panel.cjs.entry.js +1 -1
  84. package/dist/cjs/au-tab.cjs.entry.js +1 -1
  85. package/dist/cjs/au-table.cjs.entry.js +337 -0
  86. package/dist/cjs/au-tabs.cjs.entry.js +4 -4
  87. package/dist/cjs/au-textarea.cjs.entry.js +3 -3
  88. package/dist/cjs/au-toast-region.cjs.entry.js +1 -1
  89. package/dist/cjs/au-toast.cjs.entry.js +1 -1
  90. package/dist/cjs/au-toc.cjs.entry.js +1 -1
  91. package/dist/cjs/au-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/aurora.cjs.js +1 -1
  93. package/dist/cjs/{icon-loader-DyRasOnf.js → icon-loader-Dij7pYkP.js} +3 -1
  94. package/dist/cjs/loader.cjs.js +1 -1
  95. package/dist/cjs/trending-down-BKjmYE1H.js +19 -0
  96. package/dist/cjs/trending-up-CoWuXxqz.js +19 -0
  97. package/dist/collection/collection-manifest.json +7 -0
  98. package/dist/collection/components/data-display/au-kbd/au-kbd.constants.js +85 -0
  99. package/dist/collection/components/data-display/au-kbd/au-kbd.css +98 -0
  100. package/dist/collection/components/data-display/au-kbd/au-kbd.js +189 -0
  101. package/dist/collection/components/data-display/au-kbd/au-kbd.types.js +1 -0
  102. package/dist/collection/components/data-display/au-kbd/index.js +2 -0
  103. package/dist/collection/components/data-display/au-kbd/internal/describe.js +67 -0
  104. package/dist/collection/components/data-display/au-kbd/internal/parse.js +85 -0
  105. package/dist/collection/components/data-display/au-kbd/internal/platform.js +19 -0
  106. package/dist/collection/components/data-display/au-list/au-list.constants.js +8 -0
  107. package/dist/collection/components/data-display/au-list/au-list.css +30 -0
  108. package/dist/collection/components/data-display/au-list/au-list.js +132 -0
  109. package/dist/collection/components/data-display/au-list/au-list.types.js +1 -0
  110. package/dist/collection/components/data-display/au-list/index.js +2 -0
  111. package/dist/collection/components/data-display/au-list-item/au-list-item.css +196 -0
  112. package/dist/collection/components/data-display/au-list-item/au-list-item.js +305 -0
  113. package/dist/collection/components/data-display/au-list-item/index.js +1 -0
  114. package/dist/collection/components/data-display/au-list-item/internal/interactive-content.js +29 -0
  115. package/dist/collection/components/data-display/au-stat/au-stat.constants.js +44 -0
  116. package/dist/collection/components/data-display/au-stat/au-stat.css +139 -0
  117. package/dist/collection/components/data-display/au-stat/au-stat.js +491 -0
  118. package/dist/collection/components/data-display/au-stat/au-stat.types.js +1 -0
  119. package/dist/collection/components/data-display/au-stat/index.js +2 -0
  120. package/dist/collection/components/data-display/au-stat/internal/announcement.js +13 -0
  121. package/dist/collection/components/data-display/au-table/au-table.constants.js +21 -0
  122. package/dist/collection/components/data-display/au-table/au-table.css +20 -0
  123. package/dist/collection/components/data-display/au-table/au-table.js +482 -0
  124. package/dist/collection/components/data-display/au-table/au-table.types.js +1 -0
  125. package/dist/collection/components/data-display/au-table/index.js +2 -0
  126. package/dist/collection/components/data-display/au-table/internal/scroller-label.js +11 -0
  127. package/dist/collection/components/data-display/au-table/internal/sort.js +17 -0
  128. package/dist/collection/components/feedback/au-alert/au-alert.js +1 -1
  129. package/dist/collection/components/feedback/au-progress/au-progress.constants.js +38 -0
  130. package/dist/collection/components/feedback/au-progress/au-progress.css +201 -0
  131. package/dist/collection/components/feedback/au-progress/au-progress.js +226 -0
  132. package/dist/collection/components/feedback/au-progress/au-progress.types.js +1 -0
  133. package/dist/collection/components/feedback/au-progress/index.js +2 -0
  134. package/dist/collection/components/feedback/au-skeleton/au-skeleton.constants.js +33 -0
  135. package/dist/collection/components/feedback/au-skeleton/au-skeleton.css +108 -0
  136. package/dist/collection/components/feedback/au-skeleton/au-skeleton.js +159 -0
  137. package/dist/collection/components/feedback/au-skeleton/au-skeleton.types.js +1 -0
  138. package/dist/collection/components/feedback/au-skeleton/index.js +2 -0
  139. package/dist/collection/components/feedback/au-toast/au-toast.js +1 -1
  140. package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +1 -1
  141. package/dist/collection/components/forms/au-checkbox/au-checkbox.js +4 -4
  142. package/dist/collection/components/forms/au-combobox/au-combobox.js +6 -6
  143. package/dist/collection/components/forms/au-field/au-field.js +1 -1
  144. package/dist/collection/components/forms/au-input/au-input.js +6 -6
  145. package/dist/collection/components/forms/au-number-input/au-number-input.js +4 -4
  146. package/dist/collection/components/forms/au-radio/au-radio.js +1 -1
  147. package/dist/collection/components/forms/au-radio-group/au-radio-group.js +3 -3
  148. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +3 -3
  149. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +1 -1
  150. package/dist/collection/components/forms/au-select/au-select.js +4 -4
  151. package/dist/collection/components/forms/au-slider/au-slider.js +3 -3
  152. package/dist/collection/components/forms/au-switch/au-switch.js +4 -4
  153. package/dist/collection/components/forms/au-textarea/au-textarea.js +3 -3
  154. package/dist/collection/components/layout/au-container/au-container.js +1 -1
  155. package/dist/collection/components/layout/au-divider/au-divider.js +1 -1
  156. package/dist/collection/components/layout/au-splitter/au-splitter.js +2 -2
  157. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +1 -1
  158. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +1 -1
  159. package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +1 -1
  160. package/dist/collection/components/navigation/au-navbar/au-navbar.js +4 -4
  161. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +1 -1
  162. package/dist/collection/components/navigation/au-tab/au-tab.js +1 -1
  163. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +1 -1
  164. package/dist/collection/components/navigation/au-tabs/au-tabs.js +4 -4
  165. package/dist/collection/components/navigation/au-toc/au-toc.js +1 -1
  166. package/dist/collection/components/overlays/au-dialog/au-dialog.js +4 -4
  167. package/dist/collection/components/overlays/au-menu/au-menu.js +1 -1
  168. package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +1 -1
  169. package/dist/collection/components/overlays/au-popover/au-popover.js +1 -1
  170. package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +1 -1
  171. package/dist/collection/components/primitives/au-icon/core-icons.js +2 -0
  172. package/dist/components/au-alert.js +1 -1
  173. package/dist/components/au-avatar.js +1 -1
  174. package/dist/components/au-breadcrumb-item.js +1 -1
  175. package/dist/components/au-breadcrumb.js +1 -1
  176. package/dist/components/au-checkbox.js +1 -1
  177. package/dist/components/au-chip.js +1 -1
  178. package/dist/components/au-code-block.js +1 -1
  179. package/dist/components/au-combobox.js +1 -1
  180. package/dist/components/au-container.js +1 -1
  181. package/dist/components/au-dialog.js +1 -1
  182. package/dist/components/au-divider.js +1 -1
  183. package/dist/components/au-field.js +1 -1
  184. package/dist/components/au-icon.js +1 -1
  185. package/dist/components/au-input.js +1 -1
  186. package/dist/components/au-kbd.d.ts +11 -0
  187. package/dist/components/au-kbd.js +1 -0
  188. package/dist/components/au-list-item.d.ts +11 -0
  189. package/dist/components/au-list-item.js +1 -0
  190. package/dist/components/au-list.d.ts +11 -0
  191. package/dist/components/au-list.js +1 -0
  192. package/dist/components/au-menu-item.js +1 -1
  193. package/dist/components/au-menu.js +1 -1
  194. package/dist/components/au-nav-link.js +1 -1
  195. package/dist/components/au-navbar.js +1 -1
  196. package/dist/components/au-number-input.js +1 -1
  197. package/dist/components/au-popover.js +1 -1
  198. package/dist/components/au-progress.d.ts +11 -0
  199. package/dist/components/au-progress.js +1 -0
  200. package/dist/components/au-radio-group.js +1 -1
  201. package/dist/components/au-radio.js +1 -1
  202. package/dist/components/au-segmented-control.js +1 -1
  203. package/dist/components/au-segmented-option.js +1 -1
  204. package/dist/components/au-select.js +1 -1
  205. package/dist/components/au-sidebar-nav.js +1 -1
  206. package/dist/components/au-skeleton.d.ts +11 -0
  207. package/dist/components/au-skeleton.js +1 -0
  208. package/dist/components/au-slider.js +1 -1
  209. package/dist/components/au-splitter.js +1 -1
  210. package/dist/components/au-stat.d.ts +11 -0
  211. package/dist/components/au-stat.js +1 -0
  212. package/dist/components/au-switch.js +1 -1
  213. package/dist/components/au-tab-panel.js +1 -1
  214. package/dist/components/au-tab.js +1 -1
  215. package/dist/components/au-table.d.ts +11 -0
  216. package/dist/components/au-table.js +1 -0
  217. package/dist/components/au-tabs.js +1 -1
  218. package/dist/components/au-textarea.js +1 -1
  219. package/dist/components/au-toast-region.js +1 -1
  220. package/dist/components/au-toast.js +1 -1
  221. package/dist/components/au-toc.js +1 -1
  222. package/dist/components/au-tooltip.js +1 -1
  223. package/dist/components/p-B5BhPkwP.js +1 -0
  224. package/dist/components/p-DMeUBbqF.js +7 -0
  225. package/dist/components/p-DjW6oMgu.js +7 -0
  226. package/dist/components/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
  227. package/dist/components/{p-DAqsVCAy.js → p-Dw0zb4x_.js} +1 -1
  228. package/dist/components/{p-DIL-tsh4.js → p-ZpauIcNt.js} +1 -1
  229. package/dist/custom-elements.json +1338 -66
  230. package/dist/esm/au-alert.entry.js +1 -1
  231. package/dist/esm/au-breadcrumb-item.entry.js +1 -1
  232. package/dist/esm/au-breadcrumb.entry.js +1 -1
  233. package/dist/esm/au-checkbox.entry.js +4 -4
  234. package/dist/esm/au-code-block.entry.js +1 -1
  235. package/dist/esm/au-combobox.entry.js +7 -7
  236. package/dist/esm/au-container.entry.js +1 -1
  237. package/dist/esm/au-dialog.entry.js +4 -4
  238. package/dist/esm/au-divider.entry.js +1 -1
  239. package/dist/esm/au-field.entry.js +1 -1
  240. package/dist/esm/{au-icon-B17psn7x.js → au-icon-6iJTkDID.js} +1 -1
  241. package/dist/esm/au-icon.entry.js +1 -1
  242. package/dist/esm/au-input.entry.js +6 -6
  243. package/dist/esm/au-kbd.entry.js +353 -0
  244. package/dist/esm/au-list-item.entry.js +193 -0
  245. package/dist/esm/au-list.entry.js +76 -0
  246. package/dist/esm/au-menu-item.entry.js +1 -1
  247. package/dist/esm/au-menu.entry.js +1 -1
  248. package/dist/esm/au-nav-link.entry.js +1 -1
  249. package/dist/esm/au-navbar.entry.js +4 -4
  250. package/dist/esm/au-number-input.entry.js +4 -4
  251. package/dist/esm/au-popover.entry.js +1 -1
  252. package/dist/esm/au-progress.entry.js +105 -0
  253. package/dist/esm/au-radio-group.entry.js +3 -3
  254. package/dist/esm/au-radio.entry.js +1 -1
  255. package/dist/esm/au-segmented-control.entry.js +3 -3
  256. package/dist/esm/au-segmented-option.entry.js +1 -1
  257. package/dist/esm/au-select.entry.js +4 -4
  258. package/dist/esm/au-sidebar-nav.entry.js +1 -1
  259. package/dist/esm/au-skeleton.entry.js +104 -0
  260. package/dist/esm/au-slider.entry.js +3 -3
  261. package/dist/esm/au-splitter.entry.js +2 -2
  262. package/dist/esm/au-stat.entry.js +260 -0
  263. package/dist/esm/au-switch.entry.js +4 -4
  264. package/dist/esm/au-tab-panel.entry.js +1 -1
  265. package/dist/esm/au-tab.entry.js +1 -1
  266. package/dist/esm/au-table.entry.js +335 -0
  267. package/dist/esm/au-tabs.entry.js +4 -4
  268. package/dist/esm/au-textarea.entry.js +3 -3
  269. package/dist/esm/au-toast-region.entry.js +2 -2
  270. package/dist/esm/au-toast.entry.js +1 -1
  271. package/dist/esm/au-toc.entry.js +1 -1
  272. package/dist/esm/au-tooltip.entry.js +1 -1
  273. package/dist/esm/aurora.js +1 -1
  274. package/dist/esm/{icon-loader-CqLCmu4h.js → icon-loader-B2WSNZ27.js} +3 -1
  275. package/dist/esm/{live-announcer-CXd2OhYs.js → live-announcer-IAjNBWYI.js} +1 -1
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/trending-down-DjW6oMgu.js +17 -0
  278. package/dist/esm/trending-up-DMeUBbqF.js +17 -0
  279. package/dist/styles.css +139 -0
  280. package/dist/types/components/data-display/au-kbd/au-kbd.constants.d.ts +41 -0
  281. package/dist/types/components/data-display/au-kbd/au-kbd.d.ts +36 -0
  282. package/dist/types/components/data-display/au-kbd/au-kbd.types.d.ts +1 -0
  283. package/dist/types/components/data-display/au-kbd/index.d.ts +3 -0
  284. package/dist/types/components/data-display/au-kbd/internal/describe.d.ts +13 -0
  285. package/dist/types/components/data-display/au-kbd/internal/parse.d.ts +18 -0
  286. package/dist/types/components/data-display/au-kbd/internal/platform.d.ts +13 -0
  287. package/dist/types/components/data-display/au-list/au-list.constants.d.ts +8 -0
  288. package/dist/types/components/data-display/au-list/au-list.d.ts +29 -0
  289. package/dist/types/components/data-display/au-list/au-list.types.d.ts +1 -0
  290. package/dist/types/components/data-display/au-list/index.d.ts +3 -0
  291. package/dist/types/components/data-display/au-list-item/au-list-item.d.ts +61 -0
  292. package/dist/types/components/data-display/au-list-item/index.d.ts +1 -0
  293. package/dist/types/components/data-display/au-list-item/internal/interactive-content.d.ts +2 -0
  294. package/dist/types/components/data-display/au-stat/au-stat.constants.d.ts +44 -0
  295. package/dist/types/components/data-display/au-stat/au-stat.d.ts +67 -0
  296. package/dist/types/components/data-display/au-stat/au-stat.types.d.ts +1 -0
  297. package/dist/types/components/data-display/au-stat/index.d.ts +3 -0
  298. package/dist/types/components/data-display/au-stat/internal/announcement.d.ts +16 -0
  299. package/dist/types/components/data-display/au-table/au-table.constants.d.ts +26 -0
  300. package/dist/types/components/data-display/au-table/au-table.d.ts +86 -0
  301. package/dist/types/components/data-display/au-table/au-table.types.d.ts +1 -0
  302. package/dist/types/components/data-display/au-table/index.d.ts +3 -0
  303. package/dist/types/components/data-display/au-table/internal/scroller-label.d.ts +9 -0
  304. package/dist/types/components/data-display/au-table/internal/sort.d.ts +11 -0
  305. package/dist/types/components/feedback/au-progress/au-progress.constants.d.ts +31 -0
  306. package/dist/types/components/feedback/au-progress/au-progress.d.ts +32 -0
  307. package/dist/types/components/feedback/au-progress/au-progress.types.d.ts +1 -0
  308. package/dist/types/components/feedback/au-progress/index.d.ts +3 -0
  309. package/dist/types/components/feedback/au-skeleton/au-skeleton.constants.d.ts +27 -0
  310. package/dist/types/components/feedback/au-skeleton/au-skeleton.d.ts +31 -0
  311. package/dist/types/components/feedback/au-skeleton/au-skeleton.types.d.ts +1 -0
  312. package/dist/types/components/feedback/au-skeleton/index.d.ts +3 -0
  313. package/dist/types/components.d.ts +712 -0
  314. package/dist/types/vue.d.ts +7 -0
  315. package/package.json +53 -1
  316. package/dist/aurora/p-746825ce.entry.js +0 -1
  317. package/dist/aurora/p-CoyAdNcI.js +0 -1
  318. package/dist/aurora/p-b2feddb2.entry.js +0 -1
  319. package/dist/aurora/p-f89bde2b.entry.js +0 -1
  320. package/dist/components/p-M21eKzKU.js +0 -1
@@ -107,7 +107,7 @@ const AuAlert = class {
107
107
  const variant = this.safeVariant;
108
108
  const role = this.safeRole;
109
109
  const liveAttributes = role ? { role, 'aria-atomic': 'true' } : {};
110
- return (h("div", { key: '7a1f018a5224fe6c9af3eae91a1b1729829a9218', class: `alert alert--${variant}${this.empty ? ' alert--empty' : ''}${this.hasTitle ? '' : ' alert--no-title'}`, part: "alert" }, h("div", { key: '159039080e1ed367c7e4e585a4442d9d879cc9e1', class: "alert__body", part: "body", ...liveAttributes }, h("span", { key: '433887fcb8d20bbfdc53f5f9b80eff168a7e415a', class: "alert__icon", part: "icon" }, h("slot", { key: 'e5435e6a18bb1e1cb2b2aaed40099668698b203e', name: "icon" }, h("au-icon", { key: '230489161a83ac3ca8ababa0b6a5ff3b375e7123', icon: DEFAULT_ICONS[variant], decorative: true }))), h("div", { key: '9082ccd4e8b3e31bdb5caa508a3d4c35b19c215a', class: "alert__content", part: "content" }, h("div", { key: '32527d36a2a0c93b86379f324a23d2533b3115f8', class: "alert__title", part: "title" }, h("slot", { key: '83978630e7edadd1760ef905ca6010db7b094b7a', name: "title", onSlotchange: this.syncContent })), h("div", { key: 'b443dce73331f8f6aa61f15ad006377fdd1e6672', class: "alert__message", part: "message" }, h("slot", { key: '1e79d5b07ac3db6680b53d2ef3278e40fd5b87e9', onSlotchange: this.syncContent })))), this.dismissible && (h("button", { key: 'fe3ff25cbdaca39b127a94ea86ca765013dcdc15', class: "alert__dismiss", part: "dismiss", type: "button", "aria-label": this.safeDismissLabel, onClick: this.handleDismiss }, h("au-icon", { key: '1a1e5256468263a2f3bf1b629abb54107fb73374', icon: CLOSE_ICON, decorative: true })))));
110
+ return (h("div", { key: '2e8d03036108daf9ed35bffebca9a0168b3692c3', class: `alert alert--${variant}${this.empty ? ' alert--empty' : ''}${this.hasTitle ? '' : ' alert--no-title'}`, part: "alert" }, h("div", { key: 'f0560d1376bf667abcd1347e49264eb007393406', class: "alert__body", part: "body", ...liveAttributes }, h("span", { key: '3fdddd8223c45e7db2f8199929fed74f86202230', class: "alert__icon", part: "icon" }, h("slot", { key: '1c1d31cbd566e5d4e917503b6406dc8da4f3c7ed', name: "icon" }, h("au-icon", { key: '191531b37eaedb35c1d42a18c96a6ae185456671', icon: DEFAULT_ICONS[variant], decorative: true }))), h("div", { key: '43b2527b4a05b75fa82a8267b1dbb2c77f55179f', class: "alert__content", part: "content" }, h("div", { key: 'b1741ea56ed73a104b2ddff501bd6da634c18a42', class: "alert__title", part: "title" }, h("slot", { key: '962b0ff431f0daacace8bb340ea5b88558af50f1', name: "title", onSlotchange: this.syncContent })), h("div", { key: '71535cac03d9d9d9aefa60eef3ff58d26a4be8ff', class: "alert__message", part: "message" }, h("slot", { key: '3195a7702022de1ad9a674fa9d4a3437ce265521', onSlotchange: this.syncContent })))), this.dismissible && (h("button", { key: 'b677fc5fee2f407339190943916a9dfdeececa82', class: "alert__dismiss", part: "dismiss", type: "button", "aria-label": this.safeDismissLabel, onClick: this.handleDismiss }, h("au-icon", { key: '9ae59a4c53d550cb6b0c57c7d2f505fc73cd21ba', icon: CLOSE_ICON, decorative: true })))));
111
111
  }
112
112
  };
113
113
  AuAlert.style = auAlertCss();
@@ -69,7 +69,7 @@ const AuBreadcrumbItem = class {
69
69
  }
70
70
  render() {
71
71
  const link = resolveLinkState(this.linkInput());
72
- return (h(Host, { key: '2254edf764d84aa8d45a6b22c58865a41f44be49', role: "listitem", "aria-current": this.hostCurrent ? 'page' : undefined }, h("span", { key: '177cb66a087d52bcf8aaa399d6c93fdfed278925', class: "separator", part: "separator", "aria-hidden": "true" }), link.isLink ? (h("a", { class: "link", part: "link", ...link.attributes, "aria-current": this.current ? 'page' : undefined }, h("slot", null), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null)) : (h("span", { class: "text", part: "text" }, h("slot", null)))));
72
+ return (h(Host, { key: 'ee68ef1650d5050a7f1afdb9c753b85b1a0e9a07', role: "listitem", "aria-current": this.hostCurrent ? 'page' : undefined }, h("span", { key: '196730a58f30e0ec902036ad0c7fa435bf4a5aff', class: "separator", part: "separator", "aria-hidden": "true" }), link.isLink ? (h("a", { class: "link", part: "link", ...link.attributes, "aria-current": this.current ? 'page' : undefined }, h("slot", null), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null)) : (h("span", { class: "text", part: "text" }, h("slot", null)))));
73
73
  }
74
74
  static get watchers() { return {
75
75
  "current": [{
@@ -68,7 +68,7 @@ const AuBreadcrumb = class {
68
68
  }
69
69
  render() {
70
70
  const label = this.label?.trim() || BREADCRUMB_DEFAULT_LABEL;
71
- return (h("nav", { key: '08d5ffd9c15c512e4585f6612c8649bbfa47752d', part: "nav", class: "breadcrumb", "aria-label": label }, h("ol", { key: '2fd8ff549008c7e495f8bd987760a5d53046c826', part: "list", class: "breadcrumb__list" }, h("slot", { key: 'e77dcc3929a55bf511cf21688200eb1083fdb589', onSlotchange: this.handleSlotChange, ref: (element) => {
71
+ return (h("nav", { key: '868345a9015016c337224d491764ae8840bb6d2c', part: "nav", class: "breadcrumb", "aria-label": label }, h("ol", { key: '822bea9b13bcf2fd6489eae370e2df0c944452ed', part: "list", class: "breadcrumb__list" }, h("slot", { key: 'a1358a4ed6493eaacca55dc3b46bff183bbe7410', onSlotchange: this.handleSlotChange, ref: (element) => {
72
72
  this.slotElement = element;
73
73
  } }))));
74
74
  }
@@ -154,20 +154,20 @@ const AuCheckbox = class {
154
154
  'aria-invalid': this.isInvalid ? 'true' : undefined,
155
155
  'aria-describedby': this.descriptionIds,
156
156
  });
157
- return (h(Host, { key: '98089b3dcee0484fa7ddba27750c3063052548b1', class: {
157
+ return (h(Host, { key: '4327d2c1afda0d8104dd03c47f0720b8a34426f0', class: {
158
158
  'checkbox-host--disabled': this.isDisabled,
159
159
  'checkbox-host--invalid': this.isInvalid,
160
- } }, h("div", { key: '4aebad634ef70eeaf7c3f17496e2a472b79c15a5', class: {
160
+ } }, h("div", { key: 'c881aa8e15f1f02ffe3e13dcdebb28de433db173', class: {
161
161
  checkbox: true,
162
162
  'checkbox--checked': this.checked,
163
163
  'checkbox--indeterminate': this.indeterminate,
164
164
  'checkbox--disabled': this.isDisabled,
165
165
  'checkbox--invalid': this.isInvalid,
166
- } }, h("label", { key: '9bd7e05758b67da986b88398842d41e39d50aaf9', class: "checkbox__label", part: "label" }, h("input", { key: '9ed2673b9d6a1ce0970f320c6fb1bb4c499c6858', ref: (element) => {
166
+ } }, h("label", { key: 'f20d816c4673c63e72070f3f708e23f734fe8240', class: "checkbox__label", part: "label" }, h("input", { key: '819b78d513821b4176637369cd170e095685bb75', ref: (element) => {
167
167
  this.inputElement = element;
168
168
  if (element && element.checked !== this.checked)
169
169
  element.checked = this.checked;
170
- }, id: this.checkboxId, class: "checkbox__control", part: "control", type: "checkbox", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: '247a69410948dd28d55c587bbd574dd3bd8ed37d', class: "checkbox__indicator", part: "indicator", "aria-hidden": "true" }), h("span", { key: 'e8077a941716f521bc4858d28c3ac1fbca25f880', class: "checkbox__text", part: "text" }, h("slot", { key: 'd9e5f00e29b31190c19d4d80fdaa7552fcd8922c' }, labelText)), this.required ? (h("span", { class: "checkbox__required", "aria-hidden": "true" }, "*")) : null), hintText ? (h("p", { class: "checkbox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "checkbox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
170
+ }, id: this.checkboxId, class: "checkbox__control", part: "control", type: "checkbox", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: 'e25134bba61c0481a5b273f1e8e58739bf5f2dd2', class: "checkbox__indicator", part: "indicator", "aria-hidden": "true" }), h("span", { key: 'e83d85f447c9b0dfa66d070e33d934cd7dcf4e8c', class: "checkbox__text", part: "text" }, h("slot", { key: '2ededa56a79de7deb14262804650ab3373fa850d' }, labelText)), this.required ? (h("span", { class: "checkbox__required", "aria-hidden": "true" }, "*")) : null), hintText ? (h("p", { class: "checkbox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "checkbox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
171
171
  }
172
172
  static get formAssociated() { return true; }
173
173
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, g as getElement, f as forceUpdate, h, H as Host } from './index-KLUZmSN-.js';
2
- import { r as resolvePlacement, a as appendPlaced, b as announce } from './live-announcer-CXd2OhYs.js';
2
+ import { r as resolvePlacement, a as appendPlaced, b as announce } from './live-announcer-IAjNBWYI.js';
3
3
  import { d as deepActiveElement } from './deep-active-element-C-bRwiWx.js';
4
4
  import { o as observeSize, a as observeMutations } from './index-JU60IJxn.js';
5
5
  import { w as warnOncePerDocument } from './warn-once-Ci-XzGE3.js';
@@ -4,7 +4,7 @@ import { o as omitUndefinedAttributes, s as syncSpellcheckAttribute } from './at
4
4
  import { c as createControlId, a as controlDescriptionIds } from './control-id-C48ks26E.js';
5
5
  import { F as FormControlController, a as restoredText, j as joinIdRefs, d as dispatchHostChange } from './restore-gvyxpLwV.js';
6
6
  import { r as requiredSelectionFlags } from './group-validity-C2iVoG0G.js';
7
- import { b as announce } from './live-announcer-CXd2OhYs.js';
7
+ import { b as announce } from './live-announcer-IAjNBWYI.js';
8
8
  import { w as warnOncePerDocument } from './warn-once-Ci-XzGE3.js';
9
9
  import './deep-active-element-C-bRwiWx.js';
10
10
 
@@ -710,24 +710,24 @@ const AuCombobox = class {
710
710
  'aria-activedescendant': activeIndex >= 0 ? this.optionId(activeIndex) : undefined,
711
711
  placeholder: this.placeholder,
712
712
  });
713
- return (h(Host, { key: '29821c887fa6f83d77f7776d5520babed29b5461', class: {
713
+ return (h(Host, { key: '07722eeb261d637f5eeaad4710fae7776025ba07', class: {
714
714
  'combobox-host--disabled': disabled,
715
715
  'combobox-host--invalid': this.isInvalid,
716
- } }, h("div", { key: '1379a9516f09edd43d99a22e84f2f708ee6239e0', class: {
716
+ } }, h("div", { key: 'f89a686ea4dae61260ee70a90dbdda5602e8cf15', class: {
717
717
  combobox: true,
718
718
  [`combobox--${this.safeSize}`]: true,
719
719
  'combobox--disabled': disabled,
720
720
  'combobox--focused': this.focused,
721
721
  'combobox--invalid': this.isInvalid,
722
722
  'combobox--open': isOpen,
723
- } }, labelText ? (h("label", { class: "combobox__label", part: "label", id: this.labelId, htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "combobox__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'd7d9da7c5a7d5c659039ddabf05a299c58ab3bc9', class: "combobox__field", part: "field", ref: (element) => {
723
+ } }, labelText ? (h("label", { class: "combobox__label", part: "label", id: this.labelId, htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "combobox__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'e586a620e7489d31f3c7d5520b0e05b8317749b2', class: "combobox__field", part: "field", ref: (element) => {
724
724
  this.fieldElement = element;
725
- }, onClick: this.handleFieldClick }, h("input", { key: 'bc183465ee678698b368d34ba829baf2fdc9bf07', ref: (element) => {
725
+ }, onClick: this.handleFieldClick }, h("input", { key: '0fa18903fbdd8327d1f81144a4371ec036de3480', ref: (element) => {
726
726
  this.inputElement = element;
727
727
  syncSpellcheckAttribute(element, false);
728
- }, id: this.inputId, class: "combobox__input", part: "input", type: "text", role: "combobox", "aria-expanded": isOpen ? 'true' : 'false', "aria-controls": this.listboxId, "aria-autocomplete": "list", autocomplete: "off", disabled: disabled, readOnly: this.readonly, value: this.query, ...inputAttributes, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: 'a3020e82fe574266bbe2ec0dac7b71981f9fb146', class: "combobox__chevron", part: "chevron", "aria-hidden": "true" })), h("div", { key: '3e72774caa04f7ba7c72ea3eec16871a127dd949', class: "combobox__popup", part: "popup", popover: "manual", hidden: !this.support.popover && !isOpen, ref: (element) => {
728
+ }, id: this.inputId, class: "combobox__input", part: "input", type: "text", role: "combobox", "aria-expanded": isOpen ? 'true' : 'false', "aria-controls": this.listboxId, "aria-autocomplete": "list", autocomplete: "off", disabled: disabled, readOnly: this.readonly, value: this.query, ...inputAttributes, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: 'ec98ee0748f13d274ab382ad7f88b3f1ee2622d6', class: "combobox__chevron", part: "chevron", "aria-hidden": "true" })), h("div", { key: '4e369fec3287550623935db90f48bf20e3c403cb', class: "combobox__popup", part: "popup", popover: "manual", hidden: !this.support.popover && !isOpen, ref: (element) => {
729
729
  this.popupElement = element;
730
- }, onPointerDown: this.handlePopupPointerDown }, h("div", { key: '20482a4b40b7d51505a5fa8a634df6a51bd40513', class: "combobox__listbox", part: "listbox", id: this.listboxId, role: "listbox", "aria-labelledby": labelText ? this.labelId : undefined, "aria-label": ariaName, "aria-busy": this.loading ? 'true' : undefined }, visible.map((option, index) => this.renderOption(option, index, active))), h("div", { key: 'afd9339131570e1c26513b9cb97f41293823a8a7', class: "combobox__status", part: "status" }, statusText)), hintText ? (h("p", { class: "combobox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "combobox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
730
+ }, onPointerDown: this.handlePopupPointerDown }, h("div", { key: '132b183f3d97285b4cc3e5ac83b68242c69ba318', class: "combobox__listbox", part: "listbox", id: this.listboxId, role: "listbox", "aria-labelledby": labelText ? this.labelId : undefined, "aria-label": ariaName, "aria-busy": this.loading ? 'true' : undefined }, visible.map((option, index) => this.renderOption(option, index, active))), h("div", { key: '2ac72729768f1f4f1b4eeab9071b7011d819c9b7', class: "combobox__status", part: "status" }, statusText)), hintText ? (h("p", { class: "combobox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "combobox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
731
731
  }
732
732
  static get formAssociated() { return true; }
733
733
  static get watchers() { return {
@@ -48,7 +48,7 @@ const AuContainer = class {
48
48
  render() {
49
49
  const gutterClass = toContainerSpacingClass(this.safeGutter);
50
50
  const marginClass = toContainerSpacingClass(this.safeMargin);
51
- return (h("div", { key: 'f4157c235917f4d7cd0acbf41982d8ad50b0b646', class: `container container--size-${this.safeSize} container--gutter-${gutterClass} container--margin-${marginClass}${this.centered ? ' container--centered' : ' container--start'}`, part: "container" }, h("slot", { key: 'b6759fe90995867455ca314a48503239e1aa6ed7' })));
51
+ return (h("div", { key: '521f81fd6be31554b5bc30290f59fc8359d21b0f', class: `container container--size-${this.safeSize} container--gutter-${gutterClass} container--margin-${marginClass}${this.centered ? ' container--centered' : ' container--start'}`, part: "container" }, h("slot", { key: 'ef5c4501f3664d887f59e1f917fe59e1d396fb64' })));
52
52
  }
53
53
  };
54
54
  AuContainer.style = auContainerCss();
@@ -353,13 +353,13 @@ const AuDialog = class {
353
353
  ? { 'aria-labelledby': this.titleId }
354
354
  : {};
355
355
  const noHeader = !this.hasTitle && this.noCloseButton;
356
- return (h("dialog", { key: '8a68092b773c08fa1caac28f45a3caeff59f5f52', class: `dialog dialog--${this.safeSize} dialog--placement-${this.safePlacement}${this.openedNonModal ? ' dialog--non-modal' : ''}${noHeader ? ' dialog--no-header' : ''}${this.hasActions ? '' : ' dialog--no-footer'}`, part: "dialog", tabindex: "-1", ...nameAttributes, ref: (element) => {
356
+ return (h("dialog", { key: '33f2d9abcacb153a65eb7bf61c0cf451942dc5f0', class: `dialog dialog--${this.safeSize} dialog--placement-${this.safePlacement}${this.openedNonModal ? ' dialog--non-modal' : ''}${noHeader ? ' dialog--no-header' : ''}${this.hasActions ? '' : ' dialog--no-footer'}`, part: "dialog", tabindex: "-1", ...nameAttributes, ref: (element) => {
357
357
  this.dialogElement = element;
358
- }, onCancel: this.handleCancel, onClose: this.handleClose, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onClick: this.handleClick }, h("div", { key: '0ddc1328e74b6599e160b35830a6efcfb3ecb6aa', class: "dialog__header", part: "header" }, h("div", { key: '8fe61e81aa5c339332ee5eb34a773430b1e4d3a9', class: "dialog__title", part: "title", id: this.titleId }, h("slot", { key: 'b8936f859615a9152a3d42915135b61c4a261895', name: "title", onSlotchange: this.syncContent })), !this.noCloseButton && (h("button", { key: 'ffba3bba037035b22b37b98977a376a23d43a5d4', class: "dialog__close", part: "close-button", type: "button", "aria-label": this.safeCloseLabel, ref: (element) => {
358
+ }, onCancel: this.handleCancel, onClose: this.handleClose, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onClick: this.handleClick }, h("div", { key: 'fe0266a575b3ddbbc9b0a3a2b672dab66e5a2dd1', class: "dialog__header", part: "header" }, h("div", { key: 'a253b6bdd173dda2484fdfec316128eeb06394f5', class: "dialog__title", part: "title", id: this.titleId }, h("slot", { key: 'd4df6d93e7977b61a2ca7a68dac26cfde0c4bfa8', name: "title", onSlotchange: this.syncContent })), !this.noCloseButton && (h("button", { key: 'b2d5585a2ec0cfa9713d5e2564a02551d2d2872a', class: "dialog__close", part: "close-button", type: "button", "aria-label": this.safeCloseLabel, ref: (element) => {
359
359
  this.closeButtonElement = element;
360
- }, onClick: this.handleCloseButtonClick }, h("au-icon", { key: '73a0256f6b20d664341dde305f2ece3487f96c6a', icon: CLOSE_ICON, decorative: true })))), h("div", { key: '988eecf5a05d477c9bef6aa14c9e8624aa2be3c7', class: "dialog__body", part: "body", ...(this.bodyScrollable ? { tabindex: '0' } : {}), ref: (element) => {
360
+ }, onClick: this.handleCloseButtonClick }, h("au-icon", { key: '40c4a74e4c09b479c9a9ae6d24e8f09bcc44f12b', icon: CLOSE_ICON, decorative: true })))), h("div", { key: '4c4880eca8bdf21ab886810d4d5ab6adb7fbff7a', class: "dialog__body", part: "body", ...(this.bodyScrollable ? { tabindex: '0' } : {}), ref: (element) => {
361
361
  this.bodyElement = element;
362
- } }, h("slot", { key: 'bbc75055acc4264f2aa7fad882f6afa7924d7aa7', onSlotchange: this.measureBody })), h("div", { key: '3179febc78e15089e176b82c5a231060e2b7a09a', class: "dialog__footer", part: "footer" }, h("slot", { key: '963188a3f77b851112958ae5c7f7a79bf02e06fa', name: "actions", onSlotchange: this.syncContent }))));
362
+ } }, h("slot", { key: '85f9d4f8a70f7c38d30e0ba135d038727e585cd9', onSlotchange: this.measureBody })), h("div", { key: '2444af504b6021d3bc3b93f31c979d92cc943609', class: "dialog__footer", part: "footer" }, h("slot", { key: '12f2239e3e142b00408c00669894733f050ba039', name: "actions", onSlotchange: this.syncContent }))));
363
363
  }
364
364
  static get watchers() { return {
365
365
  "placement": [{
@@ -96,7 +96,7 @@ const AuDivider = class {
96
96
  ...(labelled ? { 'aria-labelledby': LABEL_ID } : {}),
97
97
  }
98
98
  : {};
99
- return (h(Host, { key: '4842c60764450c1dda1b4045e6e18c2c1e1b3f8a', ...(labelled ? { labelled: '' } : {}) }, h("div", { key: '4b835ac3f05f18cb1a9d5649e4cdf94000b52d63', part: "base", class: "divider", ...baseAttributes }, h("span", { key: '8157a3d392e0f4c68ec495be8dab3eeb48a14fb0', part: "line line-start", class: "line line--start", "aria-hidden": "true" }), h("span", { key: 'a5173be84cebe3293dbb74b33757ec60aba8ff43', part: "label", class: "label", id: LABEL_ID, hidden: !labelled }, h("slot", { key: '26ab7d65b55da30d568f2ac49907c85473f91615', onSlotchange: this.syncLabel })), h("span", { key: '056cc69c588b4463da8a8a716e98adcfa3a74a9b', part: "line line-end", class: "line line--end", "aria-hidden": "true" }))));
99
+ return (h(Host, { key: '99b6380e6d998c314d3d97420883db05b682f0fb', ...(labelled ? { labelled: '' } : {}) }, h("div", { key: 'd2f518003b8dcc9dbb24a1ffb94d7d775eef7082', part: "base", class: "divider", ...baseAttributes }, h("span", { key: 'd4364aa76836585129f9c00a72db212462a30bcd', part: "line line-start", class: "line line--start", "aria-hidden": "true" }), h("span", { key: '3e75061a7313266c34be023352055d84cce30df5', part: "label", class: "label", id: LABEL_ID, hidden: !labelled }, h("slot", { key: '94d24e3d2ef655603f7ffb59e15f09c78498ea21', onSlotchange: this.syncLabel })), h("span", { key: '33b382f35dd82cf6dafc10d7617768fb634beea7', part: "line line-end", class: "line line--end", "aria-hidden": "true" }))));
100
100
  }
101
101
  };
102
102
  AuDivider.style = auDividerCss();
@@ -175,7 +175,7 @@ const AuField = class {
175
175
  }
176
176
  }
177
177
  render() {
178
- return (h(Host, { key: 'b0fe1cc92c04accaad1df65998dd4a328a3bd458' }, h("div", { key: '0ee20167af7e7fb6ad4a7390f8a6505f1b813a07', class: "field", part: "base" }, h("div", { key: '2fa5e4d72a955f358d53286adf17c5c8c83dbe0f', class: { field__label: true, 'field__label--empty': !this.hasLabel }, part: "label" }, h("slot", { key: '6c9f0f4348572ea55f198d1c9826f59378d342cf', name: "label", onSlotchange: this.wire }), this.required ? (h("span", { class: "field__required", part: "required", "aria-hidden": "true" }, "*")) : null), h("div", { key: '1e62e851174ec4c15fefa841af156b1e703c2854', class: "field__control", part: "control" }, h("slot", { key: 'db33b8d295e4dcf2483819e392d89d82477f8cd3', onSlotchange: this.wire })), h("div", { key: 'bea2d9501ba61522ac2750272e2b322e72bc395c', class: { field__hint: true, 'field__hint--empty': !this.hasHint }, part: "hint" }, h("slot", { key: 'ff767bd1bf5fdbc5700328f67838018d9b2c757b', name: "hint", onSlotchange: this.wire })), h("div", { key: 'cd04ea8f3680ab2dd272f9223589b9fec8d385f0', class: { field__error: true, 'field__error--empty': !this.hasError }, part: "error", "aria-live": "polite" }, h("slot", { key: '1bc303cf7ed96138ea930d99fd93f770b4748d6c', name: "error", onSlotchange: this.wire })))));
178
+ return (h(Host, { key: '0d62d37b31c5b4cf9e571987c754bed309dbeffb' }, h("div", { key: '99892cec930c17de3c5bb712b0c71f23383691b4', class: "field", part: "base" }, h("div", { key: '12a8a21c1007bb7ad755908aac9abad3119075bc', class: { field__label: true, 'field__label--empty': !this.hasLabel }, part: "label" }, h("slot", { key: '677ad49abc0357b91d3544cf54a23c1455d3f36b', name: "label", onSlotchange: this.wire }), this.required ? (h("span", { class: "field__required", part: "required", "aria-hidden": "true" }, "*")) : null), h("div", { key: 'fcab1f09379c31688e53298bc7b65d0d73d473f9', class: "field__control", part: "control" }, h("slot", { key: 'dc96e0df3dabb372073e19b1cd5a7952ea22e0f0', onSlotchange: this.wire })), h("div", { key: 'ac5da48c9dadade0114aeb302e95564a78826d5b', class: { field__hint: true, 'field__hint--empty': !this.hasHint }, part: "hint" }, h("slot", { key: 'dcb4424d83ff22d31fb7b8262f169d0629787169', name: "hint", onSlotchange: this.wire })), h("div", { key: '73476068614c0636cfc7c0f63fb66d8105446abb', class: { field__error: true, 'field__error--empty': !this.hasError }, part: "error", "aria-live": "polite" }, h("slot", { key: '1b7fc34d908f6fc605c108f0851db167121a809f', name: "error", onSlotchange: this.wire })))));
179
179
  }
180
180
  };
181
181
  AuField.style = auFieldCss();
@@ -270,7 +270,7 @@ const AuIcon = class {
270
270
  const name = normalizeIconSlug(identifier);
271
271
  if (!name || getRegisteredIcon(name))
272
272
  return;
273
- const pendingModule = (iconLoaderModulePromise ??= import('./icon-loader-CqLCmu4h.js'));
273
+ const pendingModule = (iconLoaderModulePromise ??= import('./icon-loader-B2WSNZ27.js'));
274
274
  try {
275
275
  const { loadBuiltInIcon } = await pendingModule;
276
276
  if ((await loadBuiltInIcon(name)) === undefined && !getRegisteredIcon(name)) {
@@ -1,3 +1,3 @@
1
- export { A as au_icon } from './au-icon-B17psn7x.js';
1
+ export { A as au_icon } from './au-icon-6iJTkDID.js';
2
2
  import './index-KLUZmSN-.js';
3
3
  import './warn-once-Ci-XzGE3.js';
@@ -270,32 +270,32 @@ const AuInput = class {
270
270
  'aria-invalid': this.isInvalid ? 'true' : undefined,
271
271
  'aria-describedby': this.descriptionIds,
272
272
  });
273
- return (h(Host, { key: '41dac397338dedc74e601fbaca78845a0de1d408', class: {
273
+ return (h(Host, { key: '314d770ba3953f7291f88ad3fd5747915e80f3b1', class: {
274
274
  'input-host--disabled': inputDisabled,
275
275
  'input-host--invalid': this.isInvalid,
276
276
  'input-host--readonly': this.readOnly,
277
- } }, h("div", { key: 'd14b8143ca822d1ee049d61d488e983bdf378a56', class: {
277
+ } }, h("div", { key: 'dbebef58831082651f00a76af8cfd970857a9e56', class: {
278
278
  input: true,
279
279
  [`input--${this.safeSize}`]: true,
280
280
  'input--disabled': inputDisabled,
281
281
  'input--focused': this.focused,
282
282
  'input--invalid': this.isInvalid,
283
283
  'input--readonly': this.readOnly,
284
- } }, labelText ? (h("label", { class: "input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '99c995393ee232ef2dbcb9e2b13dab52c5302498', class: "input__control-wrap", part: "control-wrap" }, h("span", { key: '2e777965fe84d385ae1adf220b33ff29d0f1e136', class: {
284
+ } }, labelText ? (h("label", { class: "input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'cd626c8e1cf6d3e1cbba975b0ddaeff248237fc8', class: "input__control-wrap", part: "control-wrap" }, h("span", { key: '461602ccac8386bed55d309f2d6b3a4dfae5ccf7', class: {
285
285
  input__adornment: true,
286
286
  'input__adornment--prefix': true,
287
287
  'input__adornment--empty': !this.hasPrefix,
288
- }, part: "prefix" }, h("slot", { key: '627066b9e7f2ecce30483dc5e95ae4f0b9b5d88c', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: 'd02902a1a410bb109f5a484905307d2a58c85780', ref: (element) => {
288
+ }, part: "prefix" }, h("slot", { key: '21a3247f8679ac6de0f4d3f99bfbb57b18f047d6', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: 'f3a5c5693ff0aaabf1416a2c57c2bcdf483b2659', ref: (element) => {
289
289
  this.inputElement = element;
290
290
  if (!element)
291
291
  return;
292
292
  if (element.value !== this.value)
293
293
  element.value = this.value;
294
- }, id: this.inputId, class: "input__control", part: "control", type: this.safeType, required: this.required, disabled: inputDisabled, readOnly: this.readOnly, ...nativeInputAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '8c29412e20b688a9b60cf949c26611efefe19723', class: {
294
+ }, id: this.inputId, class: "input__control", part: "control", type: this.safeType, required: this.required, disabled: inputDisabled, readOnly: this.readOnly, ...nativeInputAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '7bc9b902935dbf50beaa5189546111c0b016be74', class: {
295
295
  input__adornment: true,
296
296
  'input__adornment--suffix': true,
297
297
  'input__adornment--empty': !this.hasSuffix,
298
- }, part: "suffix" }, h("slot", { key: '3c4b4f1894069f52189a13d897079c7480e85417', name: "suffix", onSlotchange: this.handleSuffixSlotChange }))), hintText ? (h("p", { class: "input__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "input__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
298
+ }, part: "suffix" }, h("slot", { key: 'e65f06941e0e7b316717d881246ba21a56caebc6', name: "suffix", onSlotchange: this.handleSuffixSlotChange }))), hintText ? (h("p", { class: "input__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "input__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
299
299
  }
300
300
  static get delegatesFocus() { return true; }
301
301
  static get formAssociated() { return true; }
@@ -0,0 +1,353 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host } from './index-KLUZmSN-.js';
2
+ import { w as warnOncePerDocument } from './warn-once-Ci-XzGE3.js';
3
+
4
+ /** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
5
+ /** `auto` detects the platform at render time; `apple` is macOS, iOS and iPadOS; `other` is the rest. */
6
+ const KBD_PLATFORM = {
7
+ auto: 'auto',
8
+ apple: 'apple',
9
+ other: 'other',
10
+ };
11
+ /** The known key ids. A letter, a digit, a function key or an unknown token has no id. */
12
+ const KBD_KEY = {
13
+ mod: 'mod',
14
+ meta: 'meta',
15
+ ctrl: 'ctrl',
16
+ alt: 'alt',
17
+ shift: 'shift',
18
+ enter: 'enter',
19
+ escape: 'escape',
20
+ tab: 'tab',
21
+ backspace: 'backspace',
22
+ delete: 'delete',
23
+ space: 'space',
24
+ up: 'up',
25
+ down: 'down',
26
+ left: 'left',
27
+ right: 'right',
28
+ home: 'home',
29
+ end: 'end',
30
+ pageup: 'pageup',
31
+ pagedown: 'pagedown',
32
+ capslock: 'capslock',
33
+ plus: 'plus',
34
+ };
35
+ /** The English names read for each key, per platform. `keyNames` overrides them per element. */
36
+ const KBD_DEFAULT_NAMES = {
37
+ apple: {
38
+ mod: 'Command',
39
+ meta: 'Command',
40
+ ctrl: 'Control',
41
+ alt: 'Option',
42
+ shift: 'Shift',
43
+ enter: 'Return',
44
+ escape: 'Escape',
45
+ tab: 'Tab',
46
+ backspace: 'Delete',
47
+ delete: 'Forward Delete',
48
+ space: 'Space',
49
+ up: 'Up Arrow',
50
+ down: 'Down Arrow',
51
+ left: 'Left Arrow',
52
+ right: 'Right Arrow',
53
+ home: 'Home',
54
+ end: 'End',
55
+ pageup: 'Page Up',
56
+ pagedown: 'Page Down',
57
+ capslock: 'Caps Lock',
58
+ plus: 'Plus',
59
+ },
60
+ other: {
61
+ mod: 'Control',
62
+ meta: 'Meta',
63
+ ctrl: 'Control',
64
+ alt: 'Alt',
65
+ shift: 'Shift',
66
+ enter: 'Enter',
67
+ escape: 'Escape',
68
+ tab: 'Tab',
69
+ backspace: 'Backspace',
70
+ delete: 'Delete',
71
+ space: 'Space',
72
+ up: 'Up Arrow',
73
+ down: 'Down Arrow',
74
+ left: 'Left Arrow',
75
+ right: 'Right Arrow',
76
+ home: 'Home',
77
+ end: 'End',
78
+ pageup: 'Page Up',
79
+ pagedown: 'Page Down',
80
+ capslock: 'Caps Lock',
81
+ plus: 'Plus',
82
+ },
83
+ };
84
+ const platforms = new Set(Object.values(KBD_PLATFORM));
85
+ new Set(Object.values(KBD_KEY));
86
+ const isKbdPlatform = (value) => typeof value === 'string' && platforms.has(value);
87
+
88
+ /** Case-insensitive aliases (KD-D4, spec section 3.3). */
89
+ const ALIASES = {
90
+ mod: KBD_KEY.mod,
91
+ meta: KBD_KEY.meta,
92
+ cmd: KBD_KEY.meta,
93
+ command: KBD_KEY.meta,
94
+ super: KBD_KEY.meta,
95
+ win: KBD_KEY.meta,
96
+ ctrl: KBD_KEY.ctrl,
97
+ control: KBD_KEY.ctrl,
98
+ alt: KBD_KEY.alt,
99
+ option: KBD_KEY.alt,
100
+ opt: KBD_KEY.alt,
101
+ shift: KBD_KEY.shift,
102
+ enter: KBD_KEY.enter,
103
+ return: KBD_KEY.enter,
104
+ escape: KBD_KEY.escape,
105
+ esc: KBD_KEY.escape,
106
+ tab: KBD_KEY.tab,
107
+ backspace: KBD_KEY.backspace,
108
+ delete: KBD_KEY.delete,
109
+ del: KBD_KEY.delete,
110
+ space: KBD_KEY.space,
111
+ arrowup: KBD_KEY.up,
112
+ up: KBD_KEY.up,
113
+ arrowdown: KBD_KEY.down,
114
+ down: KBD_KEY.down,
115
+ arrowleft: KBD_KEY.left,
116
+ left: KBD_KEY.left,
117
+ arrowright: KBD_KEY.right,
118
+ right: KBD_KEY.right,
119
+ home: KBD_KEY.home,
120
+ end: KBD_KEY.end,
121
+ pageup: KBD_KEY.pageup,
122
+ pgup: KBD_KEY.pageup,
123
+ pagedown: KBD_KEY.pagedown,
124
+ pgdn: KBD_KEY.pagedown,
125
+ capslock: KBD_KEY.capslock,
126
+ plus: KBD_KEY.plus,
127
+ };
128
+ const FUNCTION_KEY = /^f([1-9]|1\d|2[0-4])$/i;
129
+ const PLUS = { id: KBD_KEY.plus, text: KBD_KEY.plus };
130
+ /** A single character and an F-key are upper-cased; any other text is kept as written. */
131
+ function normalizeKbdText(raw) {
132
+ return Array.from(raw).length === 1 || FUNCTION_KEY.test(raw) ? raw.toUpperCase() : raw;
133
+ }
134
+ function toToken(raw) {
135
+ const id = Object.hasOwn(ALIASES, raw.toLowerCase()) ? ALIASES[raw.toLowerCase()] : undefined;
136
+ if (id !== undefined)
137
+ return { id, text: id };
138
+ return { id: null, text: normalizeKbdText(raw) };
139
+ }
140
+ /**
141
+ * Parse one key combination (KD-D2). Pure. `+` separates keys; a lone `+` and a trailing `++`
142
+ * are the plus key. Empty tokens are dropped and flag the input as malformed. Order is kept.
143
+ */
144
+ function parseKbdKeys(input) {
145
+ if (typeof input !== 'string')
146
+ return { tokens: [], malformed: false };
147
+ const value = input.trim();
148
+ if (value === '')
149
+ return { tokens: [], malformed: false };
150
+ if (value === '+')
151
+ return { tokens: [{ ...PLUS }], malformed: false };
152
+ const trailingPlus = value.endsWith('++');
153
+ const rest = trailingPlus ? value.slice(0, -2) : value;
154
+ let malformed = false;
155
+ const tokens = [];
156
+ if (rest !== '' || !trailingPlus) {
157
+ for (const part of rest.split('+')) {
158
+ const raw = part.trim();
159
+ if (raw === '')
160
+ malformed = true;
161
+ else
162
+ tokens.push(toToken(raw));
163
+ }
164
+ }
165
+ else {
166
+ malformed = true;
167
+ }
168
+ if (trailingPlus)
169
+ tokens.push({ ...PLUS });
170
+ return { tokens, malformed };
171
+ }
172
+
173
+ const K = KBD_KEY;
174
+ /** The drawn glyph of each known key, per platform (spec section 3.3). */
175
+ const GLYPHS = {
176
+ apple: {
177
+ [K.mod]: '⌘',
178
+ [K.meta]: '⌘',
179
+ [K.ctrl]: '⌃',
180
+ [K.alt]: '⌥',
181
+ [K.shift]: '⇧',
182
+ [K.enter]: '↩',
183
+ [K.escape]: 'Esc',
184
+ [K.tab]: '⇥',
185
+ [K.backspace]: '⌫',
186
+ [K.delete]: '⌦',
187
+ [K.space]: 'Space',
188
+ [K.up]: '↑',
189
+ [K.down]: '↓',
190
+ [K.left]: '←',
191
+ [K.right]: '→',
192
+ [K.home]: 'Home',
193
+ [K.end]: 'End',
194
+ [K.pageup]: 'PgUp',
195
+ [K.pagedown]: 'PgDn',
196
+ [K.capslock]: '⇪',
197
+ [K.plus]: '+',
198
+ },
199
+ other: {
200
+ [K.mod]: 'Ctrl',
201
+ [K.meta]: 'Meta',
202
+ [K.ctrl]: 'Ctrl',
203
+ [K.alt]: 'Alt',
204
+ [K.shift]: 'Shift',
205
+ [K.enter]: 'Enter',
206
+ [K.escape]: 'Esc',
207
+ [K.tab]: 'Tab',
208
+ [K.backspace]: 'Backspace',
209
+ [K.delete]: 'Del',
210
+ [K.space]: 'Space',
211
+ [K.up]: '↑',
212
+ [K.down]: '↓',
213
+ [K.left]: '←',
214
+ [K.right]: '→',
215
+ [K.home]: 'Home',
216
+ [K.end]: 'End',
217
+ [K.pageup]: 'PgUp',
218
+ [K.pagedown]: 'PgDn',
219
+ [K.capslock]: 'Caps Lock',
220
+ [K.plus]: '+',
221
+ },
222
+ };
223
+ /**
224
+ * The glyph and the name of one key (KD-D4). Pure. `names` overrides the default **names** of
225
+ * known keys; a blank override is ignored. Any other token reads as it is drawn.
226
+ */
227
+ function describeKbdKey(token, platform, names) {
228
+ if (token.id !== null) {
229
+ const override = names?.[token.id];
230
+ const name = typeof override === 'string' && override.trim() !== ''
231
+ ? override.trim()
232
+ : KBD_DEFAULT_NAMES[platform][token.id];
233
+ return { glyph: GLYPHS[platform][token.id], name };
234
+ }
235
+ const glyph = normalizeKbdText(token.text);
236
+ return { glyph, name: glyph };
237
+ }
238
+
239
+ const APPLE_UA_DATA = /^(macos|ios)$/i;
240
+ const APPLE_PLATFORM = /^(Mac|iPhone|iPad|iPod)/i;
241
+ /**
242
+ * Resolve `auto` (KD-D3). Pure. A non-blank `userAgentData.platform` decides alone; otherwise
243
+ * `navigator.platform` (iPadOS reports `MacIntel`). With no navigator (SSR, a Node test) it is `other`.
244
+ */
245
+ function detectKbdPlatform(navigatorLike) {
246
+ if (!navigatorLike)
247
+ return KBD_PLATFORM.other;
248
+ const hinted = navigatorLike.userAgentData?.platform;
249
+ if (typeof hinted === 'string' && hinted.trim() !== '') {
250
+ return APPLE_UA_DATA.test(hinted.trim()) ? KBD_PLATFORM.apple : KBD_PLATFORM.other;
251
+ }
252
+ const legacy = navigatorLike.platform;
253
+ return typeof legacy === 'string' && APPLE_PLATFORM.test(legacy.trim())
254
+ ? KBD_PLATFORM.apple
255
+ : KBD_PLATFORM.other;
256
+ }
257
+
258
+ const auKbdCss = () => `:host{display:inline}:host([empty]){display:none}.kbd{align-items:baseline;color:var(--aurora-kbd-color, var(--aurora-color-text, #202733));direction:ltr;display:inline-flex;font-family:var(--aurora-kbd-font-family, var(--aurora-font-family-code, var(--aurora-font-family-mono, ui-monospace, monospace)));font-size:var(--aurora-kbd-font-size, 0.85em);gap:var(--aurora-kbd-gap, 0.25em);line-height:1.35;unicode-bidi:isolate;vertical-align:baseline;white-space:nowrap}.kbd__key{background:var(--aurora-kbd-background, var(--aurora-color-surface-muted, #f0f2f5));border:var(--aurora-kbd-border-width, 1px) solid var(--aurora-kbd-border-color, var(--aurora-color-border, #d4d9e1));border-bottom-width:var(--aurora-kbd-border-bottom-width, 2px);border-radius:var(--aurora-kbd-radius, var(--aurora-radius-sm, 0.375rem));box-sizing:border-box;color:var(--aurora-kbd-color, var(--aurora-color-text, #202733));font-family:inherit;font-size:inherit;min-inline-size:var(--aurora-kbd-min-inline-size, 1.6em);padding-inline:var(--aurora-kbd-padding-inline, 0.4em);position:relative;text-align:center}.kbd__separator{color:var(--aurora-kbd-separator-color, var(--aurora-color-text-muted, #566273))}.kbd__name{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;user-select:none;white-space:nowrap;width:1px}.kbd__name::after{content:" ";white-space:pre}@media (forced-colors: active){.kbd,.kbd__key,.kbd__separator{color:CanvasText}.kbd__key{border-color:CanvasText}}`;
259
+
260
+ const SPACE = ' ';
261
+ const AuKbd = class {
262
+ constructor(hostRef) {
263
+ registerInstance(this, hostRef);
264
+ }
265
+ get host() { return getElement(this); }
266
+ /** One key combination written with `+` (`Mod+K`, `Shift+Alt+ArrowUp`, `Ctrl++`). Blank shows the default slot instead. */
267
+ keys = '';
268
+ /** `auto` detects the platform when rendering. `apple` (macOS, iOS, iPadOS) and `other` are deterministic. An unsupported value acts as `auto` and warns once. */
269
+ platform = KBD_PLATFORM.auto;
270
+ /** JavaScript property only: overrides the visually hidden names (never the glyphs) of known keys, by key id. Blank values are ignored. */
271
+ keyNames;
272
+ parsed = { tokens: [], malformed: false };
273
+ componentWillLoad() {
274
+ this.syncEmpty();
275
+ }
276
+ componentWillRender() {
277
+ this.parsed = parseKbdKeys(this.keys);
278
+ this.warnAboutProperties();
279
+ this.syncEmpty();
280
+ }
281
+ warn(key, message) {
282
+ warnOncePerDocument(this.host.ownerDocument, `au-kbd:${key}`, `[au-kbd] ${message}`);
283
+ }
284
+ warnAboutProperties() {
285
+ if (this.parsed.malformed) {
286
+ this.warn('keys', `The keys value ${JSON.stringify(this.keys)} has an empty key (a stray "+"); the empty key is dropped. Write the plus key as "Plus" or as a trailing "++".`);
287
+ }
288
+ if (!isKbdPlatform(this.platform)) {
289
+ this.warn('platform', `Unsupported platform ${JSON.stringify(this.platform)}; it acts as "auto". Use "auto", "apple" or "other".`);
290
+ }
291
+ }
292
+ /** `apple` or `other` as written; anything else is detected from `navigator`, so it is read at render time. */
293
+ resolvePlatform() {
294
+ if (this.platform === KBD_PLATFORM.apple || this.platform === KBD_PLATFORM.other) {
295
+ return this.platform;
296
+ }
297
+ return detectKbdPlatform(typeof navigator === 'undefined' ? undefined : navigator);
298
+ }
299
+ get usesKeys() {
300
+ return typeof this.keys === 'string' && this.keys.trim() !== '';
301
+ }
302
+ /**
303
+ * The component-owned `empty` attribute (KD-D13): blank `keys` and no content in the host. It is
304
+ * set imperatively, not through `<Host>`, so a consumer-written `empty` is removed as well.
305
+ */
306
+ syncEmpty() {
307
+ const hasContent = Array.from(this.host.childNodes).some((node) => node.nodeType === 1 || (node.nodeType === 3 && (node.textContent ?? '').trim() !== ''));
308
+ if (!this.usesKeys && !hasContent)
309
+ this.host.setAttribute('empty', '');
310
+ else
311
+ this.host.removeAttribute('empty');
312
+ }
313
+ handleSlotChange = () => {
314
+ this.syncEmpty();
315
+ };
316
+ get names() {
317
+ return typeof this.keyNames === 'object' && this.keyNames !== null ? this.keyNames : undefined;
318
+ }
319
+ renderKey(token, platform) {
320
+ const { glyph, name } = describeKbdKey(token, platform, this.names);
321
+ if (glyph === name) {
322
+ return (h("kbd", { part: "key", class: "kbd__key" }, glyph));
323
+ }
324
+ // No whitespace between the two spans: the hidden name follows the glyph without a gap.
325
+ return (h("kbd", { part: "key", class: "kbd__key" }, h("span", { part: "glyph", "aria-hidden": "true" }, glyph), h("span", { class: "kbd__name" }, name)));
326
+ }
327
+ /** Keys, with one literal space between a key and what follows (KD-D6), and a silent `+` outside Apple (KD-D7). */
328
+ renderKeys(platform) {
329
+ const children = [];
330
+ this.parsed.tokens.forEach((token, index) => {
331
+ if (index > 0) {
332
+ if (platform === KBD_PLATFORM.apple) {
333
+ children.push(SPACE);
334
+ }
335
+ else {
336
+ children.push(SPACE, h("span", { part: "separator", class: "kbd__separator", "aria-hidden": "true" }, "+"), SPACE);
337
+ }
338
+ }
339
+ children.push(this.renderKey(token, platform));
340
+ });
341
+ return children;
342
+ }
343
+ render() {
344
+ if (!this.usesKeys) {
345
+ return (h(Host, null, h("kbd", { part: "base", class: "kbd" }, h("kbd", { part: "key", class: "kbd__key" }, h("slot", { onSlotchange: this.handleSlotChange })))));
346
+ }
347
+ const platform = this.resolvePlatform();
348
+ return (h(Host, null, h("kbd", { part: "base", class: `kbd kbd--${platform}` }, this.renderKeys(platform))));
349
+ }
350
+ };
351
+ AuKbd.style = auKbdCss();
352
+
353
+ export { AuKbd as au_kbd };