@re-code/aurora 0.0.0-stage → 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 (1135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +92 -2
  3. package/dist/aurora/aurora.esm.js +1 -0
  4. package/dist/aurora/index.esm.js +1 -0
  5. package/dist/aurora/p-01ff4d34.entry.js +1 -0
  6. package/dist/aurora/p-0554ffea.entry.js +1 -0
  7. package/dist/aurora/p-0a0a2bfe.entry.js +1 -0
  8. package/dist/aurora/p-0a7e9e8e.entry.js +1 -0
  9. package/dist/aurora/p-1670a9bd.entry.js +1 -0
  10. package/dist/aurora/p-17210bb6.entry.js +1 -0
  11. package/dist/aurora/p-17c6de2c.entry.js +1 -0
  12. package/dist/aurora/p-21786a68.entry.js +1 -0
  13. package/dist/aurora/p-23e57d65.entry.js +1 -0
  14. package/dist/aurora/p-24ff90e0.entry.js +1 -0
  15. package/dist/aurora/p-27da7b8a.entry.js +1 -0
  16. package/dist/aurora/p-380d8ebe.entry.js +1 -0
  17. package/dist/aurora/p-3cfccef1.entry.js +1 -0
  18. package/dist/aurora/p-4fd71d14.entry.js +1 -0
  19. package/dist/aurora/p-5606ed9c.entry.js +1 -0
  20. package/dist/aurora/p-56fc4315.entry.js +1 -0
  21. package/dist/aurora/p-57512cd7.entry.js +1 -0
  22. package/dist/aurora/p-5a027df1.entry.js +1 -0
  23. package/dist/aurora/p-5dd73182.entry.js +1 -0
  24. package/dist/aurora/p-62ccacf0.entry.js +1 -0
  25. package/dist/aurora/p-62d79933.entry.js +1 -0
  26. package/dist/aurora/p-6a1363da.entry.js +1 -0
  27. package/dist/aurora/p-6e9c8e27.entry.js +1 -0
  28. package/dist/aurora/p-742abb2c.entry.js +1 -0
  29. package/dist/aurora/p-7a9bc20f.entry.js +1 -0
  30. package/dist/aurora/p-7cc6bb71.entry.js +1 -0
  31. package/dist/aurora/p-7fa0ee48.entry.js +1 -0
  32. package/dist/aurora/p-815611f9.entry.js +1 -0
  33. package/dist/aurora/p-8800c466.entry.js +1 -0
  34. package/dist/aurora/p-8de508c7.entry.js +1 -0
  35. package/dist/aurora/p-9e9377b5.entry.js +1 -0
  36. package/dist/aurora/p-B3rlZvSP.js +7 -0
  37. package/dist/aurora/p-B71krpcd.js +1 -0
  38. package/dist/aurora/p-BTRtOC1j.js +1 -0
  39. package/dist/aurora/p-BTZwl4uD.js +7 -0
  40. package/dist/aurora/p-BvnCPjl5.js +1 -0
  41. package/dist/aurora/p-C-bRwiWx.js +1 -0
  42. package/dist/aurora/p-C2iVoG0G.js +1 -0
  43. package/dist/aurora/p-C48ks26E.js +1 -0
  44. package/dist/aurora/p-C6E5E18W.js +7 -0
  45. package/dist/aurora/p-CA3n-tpF.js +7 -0
  46. package/dist/aurora/p-CIZeCYao.js +1 -0
  47. package/dist/aurora/p-CJtRxiuh.js +7 -0
  48. package/dist/aurora/p-CU9sZ49I.js +7 -0
  49. package/dist/aurora/p-CfazOBmW.js +1 -0
  50. package/dist/aurora/p-Ci-XzGE3.js +1 -0
  51. package/dist/aurora/p-CnJOd66V.js +7 -0
  52. package/dist/aurora/p-Cq5N0E4D.js +7 -0
  53. package/dist/aurora/p-CrKUXDm4.js +1 -0
  54. package/dist/aurora/p-DBHfOAQc.js +1 -0
  55. package/dist/aurora/p-DD6GCVQb.js +1 -0
  56. package/dist/aurora/p-DMeUBbqF.js +7 -0
  57. package/dist/aurora/p-DNpzZvak.js +1 -0
  58. package/dist/aurora/p-DQuL1Twl.js +1 -0
  59. package/dist/aurora/p-DTEnois3.js +7 -0
  60. package/dist/aurora/p-DVGjumbs.js +1 -0
  61. package/dist/aurora/p-DgfWQsck.js +1 -0
  62. package/dist/aurora/p-DjW6oMgu.js +7 -0
  63. package/dist/aurora/p-Dogh3-Bf.js +1 -0
  64. package/dist/aurora/p-DqAwSryz.js +1 -0
  65. package/dist/aurora/p-DqqWqhAT.js +1 -0
  66. package/dist/aurora/p-Dv3Jcvbc.js +1 -0
  67. package/dist/aurora/p-JU60IJxn.js +1 -0
  68. package/dist/aurora/p-KLUZmSN-.js +3 -0
  69. package/dist/aurora/p-NvNa2Iiu.js +1 -0
  70. package/dist/aurora/p-TdUs41zm.js +1 -0
  71. package/dist/aurora/p-a376a248.entry.js +1 -0
  72. package/dist/aurora/p-a63d1f80.entry.js +1 -0
  73. package/dist/aurora/p-a72596b4.entry.js +1 -0
  74. package/dist/aurora/p-b0ebcc51.entry.js +1 -0
  75. package/dist/aurora/p-be98a1d7.entry.js +1 -0
  76. package/dist/aurora/p-bf922703.entry.js +1 -0
  77. package/dist/aurora/p-c1422894.entry.js +1 -0
  78. package/dist/aurora/p-c2164ffe.entry.js +1 -0
  79. package/dist/aurora/p-cb63ca43.entry.js +1 -0
  80. package/dist/aurora/p-cc1015fe.entry.js +1 -0
  81. package/dist/aurora/p-cf16464e.entry.js +1 -0
  82. package/dist/aurora/p-cfa0166b.entry.js +1 -0
  83. package/dist/aurora/p-d85e1d60.entry.js +1 -0
  84. package/dist/aurora/p-ec96e6ff.entry.js +1 -0
  85. package/dist/aurora/p-efa289c1.entry.js +1 -0
  86. package/dist/aurora/p-f176be8b.entry.js +1 -0
  87. package/dist/aurora/p-f3383f3c.entry.js +1 -0
  88. package/dist/aurora/p-f5d3aefa.entry.js +1 -0
  89. package/dist/aurora/p-f85687a5.entry.js +1 -0
  90. package/dist/aurora/p-fe143404.entry.js +1 -0
  91. package/dist/aurora/p-gvyxpLwV.js +1 -0
  92. package/dist/aurora/p-kEvQ5xF7.js +1 -0
  93. package/dist/aurora/p-kbAXs-sG.js +7 -0
  94. package/dist/aurora/p-klxij34W.js +1 -0
  95. package/dist/aurora/p-kpQFQ7bu.js +7 -0
  96. package/dist/aurora/p-tdx7CCkD.js +7 -0
  97. package/dist/aurora/p-vjn4H-yX.js +1 -0
  98. package/dist/cjs/accordion-DlPfFEHE.js +37 -0
  99. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  100. package/dist/cjs/attributes-Bn886Odj.js +30 -0
  101. package/dist/cjs/au-accordion-item.cjs.entry.js +88 -0
  102. package/dist/cjs/au-accordion.cjs.entry.js +100 -0
  103. package/dist/cjs/au-alert.cjs.entry.js +117 -0
  104. package/dist/cjs/au-avatar.cjs.entry.js +177 -0
  105. package/dist/cjs/au-badge.cjs.entry.js +60 -0
  106. package/dist/cjs/au-breadcrumb-item.cjs.entry.js +84 -0
  107. package/dist/cjs/au-breadcrumb.cjs.entry.js +80 -0
  108. package/dist/cjs/au-button.cjs.entry.js +328 -0
  109. package/dist/cjs/au-card.cjs.entry.js +76 -0
  110. package/dist/cjs/au-checkbox.cjs.entry.js +183 -0
  111. package/dist/cjs/au-chip.cjs.entry.js +249 -0
  112. package/dist/cjs/au-code-block.cjs.entry.js +678 -0
  113. package/dist/cjs/au-combobox.cjs.entry.js +755 -0
  114. package/dist/cjs/au-container.cjs.entry.js +58 -0
  115. package/dist/cjs/au-dialog.cjs.entry.js +377 -0
  116. package/dist/cjs/au-divider.cjs.entry.js +106 -0
  117. package/dist/cjs/au-field.cjs.entry.js +185 -0
  118. package/dist/cjs/au-icon-0-khGfX2.js +350 -0
  119. package/dist/cjs/au-icon.cjs.entry.js +9 -0
  120. package/dist/cjs/au-input.cjs.entry.js +312 -0
  121. package/dist/cjs/au-kbd.cjs.entry.js +355 -0
  122. package/dist/cjs/au-label.cjs.entry.js +45 -0
  123. package/dist/cjs/au-list-item.cjs.entry.js +195 -0
  124. package/dist/cjs/au-list.cjs.entry.js +78 -0
  125. package/dist/cjs/au-menu-item.cjs.entry.js +71 -0
  126. package/dist/cjs/au-menu.cjs.entry.js +347 -0
  127. package/dist/cjs/au-nav-group.cjs.entry.js +50 -0
  128. package/dist/cjs/au-nav-link.cjs.entry.js +84 -0
  129. package/dist/cjs/au-navbar.cjs.entry.js +306 -0
  130. package/dist/cjs/au-number-input.cjs.entry.js +350 -0
  131. package/dist/cjs/au-popover.cjs.entry.js +130 -0
  132. package/dist/cjs/au-progress.cjs.entry.js +107 -0
  133. package/dist/cjs/au-radio-group.cjs.entry.js +348 -0
  134. package/dist/cjs/au-radio.cjs.entry.js +45 -0
  135. package/dist/cjs/au-segmented-control.cjs.entry.js +544 -0
  136. package/dist/cjs/au-segmented-option.cjs.entry.js +78 -0
  137. package/dist/cjs/au-select.cjs.entry.js +336 -0
  138. package/dist/cjs/au-sidebar-nav.cjs.entry.js +178 -0
  139. package/dist/cjs/au-skeleton.cjs.entry.js +106 -0
  140. package/dist/cjs/au-slider.cjs.entry.js +286 -0
  141. package/dist/cjs/au-splitter.cjs.entry.js +230 -0
  142. package/dist/cjs/au-stat.cjs.entry.js +262 -0
  143. package/dist/cjs/au-switch.cjs.entry.js +175 -0
  144. package/dist/cjs/au-tab-panel.cjs.entry.js +63 -0
  145. package/dist/cjs/au-tab.cjs.entry.js +41 -0
  146. package/dist/cjs/au-table.cjs.entry.js +337 -0
  147. package/dist/cjs/au-tabs.cjs.entry.js +406 -0
  148. package/dist/cjs/au-textarea.cjs.entry.js +245 -0
  149. package/dist/cjs/au-toast-region.cjs.entry.js +692 -0
  150. package/dist/cjs/au-toast.cjs.entry.js +63 -0
  151. package/dist/cjs/au-toc.cjs.entry.js +445 -0
  152. package/dist/cjs/au-tooltip.cjs.entry.js +395 -0
  153. package/dist/cjs/aurora.cjs.js +25 -0
  154. package/dist/cjs/check-D8fNlWlh.js +16 -0
  155. package/dist/cjs/checkable-DhECpB9t.js +8 -0
  156. package/dist/cjs/circle-check-B3FqDucz.js +20 -0
  157. package/dist/cjs/circle-x-Tf2qIuBI.js +21 -0
  158. package/dist/cjs/constants.generated-CnWw9jDb.js +134 -0
  159. package/dist/cjs/control-id-CcdWN8_D.js +16 -0
  160. package/dist/cjs/copy-DJmgvzQq.js +19 -0
  161. package/dist/cjs/copy-check-Bktgfkg4.js +20 -0
  162. package/dist/cjs/deep-active-element-CoEYUbhF.js +11 -0
  163. package/dist/cjs/group-validity-D2brpooM.js +11 -0
  164. package/dist/cjs/icon-loader-Dij7pYkP.js +113 -0
  165. package/dist/cjs/index-B8lDYTMv.js +2314 -0
  166. package/dist/cjs/index-DI4bia-1.js +159 -0
  167. package/dist/cjs/index.cjs.js +358 -0
  168. package/dist/cjs/info-BLcxKacU.js +20 -0
  169. package/dist/cjs/initial-value-CfGBZMr4.js +13 -0
  170. package/dist/cjs/item-update-DZTXbDLY.js +15 -0
  171. package/dist/cjs/link-state-B3rIWSPS.js +40 -0
  172. package/dist/cjs/live-announcer-vcS-BUxR.js +400 -0
  173. package/dist/cjs/loader.cjs.js +13 -0
  174. package/dist/cjs/menu-CSfWKlaI.js +41 -0
  175. package/dist/cjs/minus-6XziUaOZ.js +16 -0
  176. package/dist/cjs/navigation-lpcPjVEI.js +63 -0
  177. package/dist/cjs/octagon-alert-CFrlltqZ.js +27 -0
  178. package/dist/cjs/plus-D3o9M7Mi.js +19 -0
  179. package/dist/cjs/popover-controller-B95YfF3I.js +237 -0
  180. package/dist/cjs/popover-support-CmR5F5K2.js +250 -0
  181. package/dist/cjs/resolve-size-LxALRdcg.js +13 -0
  182. package/dist/cjs/restore-DQu6RpSH.js +148 -0
  183. package/dist/cjs/reveal-BTJffR-G.js +69 -0
  184. package/dist/cjs/roving-CFu47frk.js +70 -0
  185. package/dist/cjs/segmented-CfUI9Mjx.js +53 -0
  186. package/dist/cjs/slider-DX8MuU0y.js +84 -0
  187. package/dist/cjs/toast-request-C-x_BbsL.js +67 -0
  188. package/dist/cjs/trending-down-BKjmYE1H.js +19 -0
  189. package/dist/cjs/trending-up-CoWuXxqz.js +19 -0
  190. package/dist/cjs/triangle-alert-VJkqaFrl.js +27 -0
  191. package/dist/cjs/user-round-Bb69LiUK.js +20 -0
  192. package/dist/cjs/warn-once-lHF-gQZp.js +21 -0
  193. package/dist/cjs/x-BmyhNJrF.js +19 -0
  194. package/dist/collection/collection-manifest.json +63 -0
  195. package/dist/collection/components/actions/au-button/au-button.constants.js +65 -0
  196. package/dist/collection/components/actions/au-button/au-button.css +224 -0
  197. package/dist/collection/components/actions/au-button/au-button.js +636 -0
  198. package/dist/collection/components/actions/au-button/au-button.types.js +1 -0
  199. package/dist/collection/components/actions/au-button/index.js +2 -0
  200. package/dist/collection/components/data-display/au-accordion/au-accordion.constants.js +11 -0
  201. package/dist/collection/components/data-display/au-accordion/au-accordion.css +7 -0
  202. package/dist/collection/components/data-display/au-accordion/au-accordion.js +143 -0
  203. package/dist/collection/components/data-display/au-accordion/au-accordion.types.js +1 -0
  204. package/dist/collection/components/data-display/au-accordion/index.js +2 -0
  205. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.css +156 -0
  206. package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.js +186 -0
  207. package/dist/collection/components/data-display/au-accordion-item/index.js +1 -0
  208. package/dist/collection/components/data-display/au-avatar/au-avatar.constants.js +26 -0
  209. package/dist/collection/components/data-display/au-avatar/au-avatar.css +93 -0
  210. package/dist/collection/components/data-display/au-avatar/au-avatar.js +308 -0
  211. package/dist/collection/components/data-display/au-avatar/au-avatar.types.js +1 -0
  212. package/dist/collection/components/data-display/au-avatar/index.js +2 -0
  213. package/dist/collection/components/data-display/au-avatar/internal/initials.js +41 -0
  214. package/dist/collection/components/data-display/au-badge/au-badge.constants.js +29 -0
  215. package/dist/collection/components/data-display/au-badge/au-badge.css +152 -0
  216. package/dist/collection/components/data-display/au-badge/au-badge.js +142 -0
  217. package/dist/collection/components/data-display/au-badge/au-badge.types.js +1 -0
  218. package/dist/collection/components/data-display/au-badge/index.js +2 -0
  219. package/dist/collection/components/data-display/au-card/au-card.constants.js +20 -0
  220. package/dist/collection/components/data-display/au-card/au-card.css +125 -0
  221. package/dist/collection/components/data-display/au-card/au-card.js +127 -0
  222. package/dist/collection/components/data-display/au-card/au-card.types.js +1 -0
  223. package/dist/collection/components/data-display/au-card/index.js +2 -0
  224. package/dist/collection/components/data-display/au-chip/au-chip.constants.js +22 -0
  225. package/dist/collection/components/data-display/au-chip/au-chip.css +207 -0
  226. package/dist/collection/components/data-display/au-chip/au-chip.js +371 -0
  227. package/dist/collection/components/data-display/au-chip/au-chip.types.js +1 -0
  228. package/dist/collection/components/data-display/au-chip/index.js +2 -0
  229. package/dist/collection/components/data-display/au-chip/internal/neighbor.js +48 -0
  230. package/dist/collection/components/data-display/au-chip/internal/remove-key.js +13 -0
  231. package/dist/collection/components/data-display/au-code-block/au-code-block.constants.js +31 -0
  232. package/dist/collection/components/data-display/au-code-block/au-code-block.css +331 -0
  233. package/dist/collection/components/data-display/au-code-block/au-code-block.js +576 -0
  234. package/dist/collection/components/data-display/au-code-block/au-code-block.types.js +1 -0
  235. package/dist/collection/components/data-display/au-code-block/index.js +2 -0
  236. package/dist/collection/components/data-display/au-code-block/internal/highlight-lines.js +29 -0
  237. package/dist/collection/components/data-display/au-code-block/internal/highlight-result.js +42 -0
  238. package/dist/collection/components/data-display/au-code-block/internal/light-source.js +30 -0
  239. package/dist/collection/components/data-display/au-code-block/internal/normalize-code.js +48 -0
  240. package/dist/collection/components/data-display/au-kbd/au-kbd.constants.js +85 -0
  241. package/dist/collection/components/data-display/au-kbd/au-kbd.css +98 -0
  242. package/dist/collection/components/data-display/au-kbd/au-kbd.js +189 -0
  243. package/dist/collection/components/data-display/au-kbd/au-kbd.types.js +1 -0
  244. package/dist/collection/components/data-display/au-kbd/index.js +2 -0
  245. package/dist/collection/components/data-display/au-kbd/internal/describe.js +67 -0
  246. package/dist/collection/components/data-display/au-kbd/internal/parse.js +85 -0
  247. package/dist/collection/components/data-display/au-kbd/internal/platform.js +19 -0
  248. package/dist/collection/components/data-display/au-list/au-list.constants.js +8 -0
  249. package/dist/collection/components/data-display/au-list/au-list.css +30 -0
  250. package/dist/collection/components/data-display/au-list/au-list.js +132 -0
  251. package/dist/collection/components/data-display/au-list/au-list.types.js +1 -0
  252. package/dist/collection/components/data-display/au-list/index.js +2 -0
  253. package/dist/collection/components/data-display/au-list-item/au-list-item.css +196 -0
  254. package/dist/collection/components/data-display/au-list-item/au-list-item.js +305 -0
  255. package/dist/collection/components/data-display/au-list-item/index.js +1 -0
  256. package/dist/collection/components/data-display/au-list-item/internal/interactive-content.js +29 -0
  257. package/dist/collection/components/data-display/au-stat/au-stat.constants.js +44 -0
  258. package/dist/collection/components/data-display/au-stat/au-stat.css +139 -0
  259. package/dist/collection/components/data-display/au-stat/au-stat.js +491 -0
  260. package/dist/collection/components/data-display/au-stat/au-stat.types.js +1 -0
  261. package/dist/collection/components/data-display/au-stat/index.js +2 -0
  262. package/dist/collection/components/data-display/au-stat/internal/announcement.js +13 -0
  263. package/dist/collection/components/data-display/au-table/au-table.constants.js +21 -0
  264. package/dist/collection/components/data-display/au-table/au-table.css +20 -0
  265. package/dist/collection/components/data-display/au-table/au-table.js +482 -0
  266. package/dist/collection/components/data-display/au-table/au-table.types.js +1 -0
  267. package/dist/collection/components/data-display/au-table/index.js +2 -0
  268. package/dist/collection/components/data-display/au-table/internal/scroller-label.js +11 -0
  269. package/dist/collection/components/data-display/au-table/internal/sort.js +17 -0
  270. package/dist/collection/components/data-display/internal/accordion.js +31 -0
  271. package/dist/collection/components/feedback/au-alert/au-alert.constants.js +20 -0
  272. package/dist/collection/components/feedback/au-alert/au-alert.css +171 -0
  273. package/dist/collection/components/feedback/au-alert/au-alert.js +241 -0
  274. package/dist/collection/components/feedback/au-alert/au-alert.types.js +1 -0
  275. package/dist/collection/components/feedback/au-alert/index.js +2 -0
  276. package/dist/collection/components/feedback/au-progress/au-progress.constants.js +38 -0
  277. package/dist/collection/components/feedback/au-progress/au-progress.css +201 -0
  278. package/dist/collection/components/feedback/au-progress/au-progress.js +226 -0
  279. package/dist/collection/components/feedback/au-progress/au-progress.types.js +1 -0
  280. package/dist/collection/components/feedback/au-progress/index.js +2 -0
  281. package/dist/collection/components/feedback/au-skeleton/au-skeleton.constants.js +33 -0
  282. package/dist/collection/components/feedback/au-skeleton/au-skeleton.css +108 -0
  283. package/dist/collection/components/feedback/au-skeleton/au-skeleton.js +159 -0
  284. package/dist/collection/components/feedback/au-skeleton/au-skeleton.types.js +1 -0
  285. package/dist/collection/components/feedback/au-skeleton/index.js +2 -0
  286. package/dist/collection/components/feedback/au-toast/au-toast.constants.js +1 -0
  287. package/dist/collection/components/feedback/au-toast/au-toast.css +150 -0
  288. package/dist/collection/components/feedback/au-toast/au-toast.js +145 -0
  289. package/dist/collection/components/feedback/au-toast/au-toast.service.js +140 -0
  290. package/dist/collection/components/feedback/au-toast/au-toast.types.js +1 -0
  291. package/dist/collection/components/feedback/au-toast/index.js +2 -0
  292. package/dist/collection/components/feedback/au-toast-region/au-toast-region.css +71 -0
  293. package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +653 -0
  294. package/dist/collection/components/feedback/au-toast-region/index.js +2 -0
  295. package/dist/collection/components/feedback/internal/toast-announcer.js +5 -0
  296. package/dist/collection/components/feedback/internal/toast-constants.js +52 -0
  297. package/dist/collection/components/feedback/internal/toast-options.js +64 -0
  298. package/dist/collection/components/feedback/internal/toast-popover.js +22 -0
  299. package/dist/collection/components/feedback/internal/toast-queue.js +74 -0
  300. package/dist/collection/components/feedback/internal/toast-registry.js +24 -0
  301. package/dist/collection/components/feedback/internal/toast-request.js +6 -0
  302. package/dist/collection/components/feedback/internal/toast-timers.js +61 -0
  303. package/dist/collection/components/feedback/internal/toast-timing.js +5 -0
  304. package/dist/collection/components/feedback/internal/toast-types.js +1 -0
  305. package/dist/collection/components/forms/au-checkbox/au-checkbox.constants.js +2 -0
  306. package/dist/collection/components/forms/au-checkbox/au-checkbox.css +212 -0
  307. package/dist/collection/components/forms/au-checkbox/au-checkbox.js +468 -0
  308. package/dist/collection/components/forms/au-checkbox/au-checkbox.types.js +1 -0
  309. package/dist/collection/components/forms/au-checkbox/index.js +2 -0
  310. package/dist/collection/components/forms/au-combobox/au-combobox.constants.js +26 -0
  311. package/dist/collection/components/forms/au-combobox/au-combobox.css +374 -0
  312. package/dist/collection/components/forms/au-combobox/au-combobox.js +1165 -0
  313. package/dist/collection/components/forms/au-combobox/au-combobox.types.js +1 -0
  314. package/dist/collection/components/forms/au-combobox/index.js +2 -0
  315. package/dist/collection/components/forms/au-field/au-field.css +78 -0
  316. package/dist/collection/components/forms/au-field/au-field.js +195 -0
  317. package/dist/collection/components/forms/au-field/index.js +1 -0
  318. package/dist/collection/components/forms/au-input/au-input.constants.js +35 -0
  319. package/dist/collection/components/forms/au-input/au-input.css +195 -0
  320. package/dist/collection/components/forms/au-input/au-input.js +845 -0
  321. package/dist/collection/components/forms/au-input/au-input.types.js +1 -0
  322. package/dist/collection/components/forms/au-input/index.js +2 -0
  323. package/dist/collection/components/forms/au-label/au-label.constants.js +7 -0
  324. package/dist/collection/components/forms/au-label/au-label.css +38 -0
  325. package/dist/collection/components/forms/au-label/au-label.js +109 -0
  326. package/dist/collection/components/forms/au-label/au-label.types.js +1 -0
  327. package/dist/collection/components/forms/au-label/index.js +2 -0
  328. package/dist/collection/components/forms/au-number-input/au-number-input.constants.js +15 -0
  329. package/dist/collection/components/forms/au-number-input/au-number-input.css +276 -0
  330. package/dist/collection/components/forms/au-number-input/au-number-input.js +711 -0
  331. package/dist/collection/components/forms/au-number-input/au-number-input.types.js +1 -0
  332. package/dist/collection/components/forms/au-number-input/index.js +2 -0
  333. package/dist/collection/components/forms/au-radio/au-radio.constants.js +2 -0
  334. package/dist/collection/components/forms/au-radio/au-radio.css +126 -0
  335. package/dist/collection/components/forms/au-radio/au-radio.js +129 -0
  336. package/dist/collection/components/forms/au-radio/au-radio.types.js +1 -0
  337. package/dist/collection/components/forms/au-radio/index.js +2 -0
  338. package/dist/collection/components/forms/au-radio-group/au-radio-group.constants.js +6 -0
  339. package/dist/collection/components/forms/au-radio-group/au-radio-group.css +67 -0
  340. package/dist/collection/components/forms/au-radio-group/au-radio-group.js +643 -0
  341. package/dist/collection/components/forms/au-radio-group/au-radio-group.types.js +1 -0
  342. package/dist/collection/components/forms/au-radio-group/index.js +2 -0
  343. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.constants.js +26 -0
  344. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.css +92 -0
  345. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +916 -0
  346. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.types.js +1 -0
  347. package/dist/collection/components/forms/au-segmented-control/index.js +2 -0
  348. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.css +103 -0
  349. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +191 -0
  350. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.types.js +1 -0
  351. package/dist/collection/components/forms/au-segmented-option/index.js +1 -0
  352. package/dist/collection/components/forms/au-select/au-select.constants.js +7 -0
  353. package/dist/collection/components/forms/au-select/au-select.css +194 -0
  354. package/dist/collection/components/forms/au-select/au-select.js +589 -0
  355. package/dist/collection/components/forms/au-select/au-select.types.js +1 -0
  356. package/dist/collection/components/forms/au-select/index.js +2 -0
  357. package/dist/collection/components/forms/au-select/internal/read-select-options.js +45 -0
  358. package/dist/collection/components/forms/au-slider/au-slider.constants.js +11 -0
  359. package/dist/collection/components/forms/au-slider/au-slider.css +296 -0
  360. package/dist/collection/components/forms/au-slider/au-slider.js +675 -0
  361. package/dist/collection/components/forms/au-slider/au-slider.types.js +1 -0
  362. package/dist/collection/components/forms/au-slider/index.js +2 -0
  363. package/dist/collection/components/forms/au-switch/au-switch.constants.js +2 -0
  364. package/dist/collection/components/forms/au-switch/au-switch.css +201 -0
  365. package/dist/collection/components/forms/au-switch/au-switch.js +440 -0
  366. package/dist/collection/components/forms/au-switch/au-switch.types.js +1 -0
  367. package/dist/collection/components/forms/au-switch/index.js +2 -0
  368. package/dist/collection/components/forms/au-textarea/au-textarea.constants.js +16 -0
  369. package/dist/collection/components/forms/au-textarea/au-textarea.css +187 -0
  370. package/dist/collection/components/forms/au-textarea/au-textarea.js +694 -0
  371. package/dist/collection/components/forms/au-textarea/au-textarea.types.js +1 -0
  372. package/dist/collection/components/forms/au-textarea/index.js +2 -0
  373. package/dist/collection/components/forms/internal/combobox.js +86 -0
  374. package/dist/collection/components/forms/internal/number-input.js +54 -0
  375. package/dist/collection/components/forms/internal/segmented.js +43 -0
  376. package/dist/collection/components/forms/internal/slider.js +76 -0
  377. package/dist/collection/components/layout/au-container/au-container.constants.js +22 -0
  378. package/dist/collection/components/layout/au-container/au-container.css +109 -0
  379. package/dist/collection/components/layout/au-container/au-container.js +144 -0
  380. package/dist/collection/components/layout/au-container/au-container.types.js +1 -0
  381. package/dist/collection/components/layout/au-container/index.js +2 -0
  382. package/dist/collection/components/layout/au-divider/au-divider.constants.js +23 -0
  383. package/dist/collection/components/layout/au-divider/au-divider.css +73 -0
  384. package/dist/collection/components/layout/au-divider/au-divider.js +194 -0
  385. package/dist/collection/components/layout/au-divider/au-divider.types.js +1 -0
  386. package/dist/collection/components/layout/au-divider/index.js +2 -0
  387. package/dist/collection/components/layout/au-splitter/au-splitter.constants.js +9 -0
  388. package/dist/collection/components/layout/au-splitter/au-splitter.css +168 -0
  389. package/dist/collection/components/layout/au-splitter/au-splitter.js +376 -0
  390. package/dist/collection/components/layout/au-splitter/au-splitter.types.js +1 -0
  391. package/dist/collection/components/layout/au-splitter/index.js +2 -0
  392. package/dist/collection/components/layout/internal/splitter.js +27 -0
  393. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.constants.js +4 -0
  394. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.css +20 -0
  395. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +110 -0
  396. package/dist/collection/components/navigation/au-breadcrumb/index.js +2 -0
  397. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.css +127 -0
  398. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +186 -0
  399. package/dist/collection/components/navigation/au-breadcrumb-item/index.js +1 -0
  400. package/dist/collection/components/navigation/au-nav-group/au-nav-group.css +137 -0
  401. package/dist/collection/components/navigation/au-nav-group/au-nav-group.js +96 -0
  402. package/dist/collection/components/navigation/au-nav-group/index.js +1 -0
  403. package/dist/collection/components/navigation/au-nav-link/au-nav-link.css +128 -0
  404. package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +205 -0
  405. package/dist/collection/components/navigation/au-nav-link/index.js +1 -0
  406. package/dist/collection/components/navigation/au-navbar/au-navbar.constants.js +40 -0
  407. package/dist/collection/components/navigation/au-navbar/au-navbar.css +185 -0
  408. package/dist/collection/components/navigation/au-navbar/au-navbar.js +409 -0
  409. package/dist/collection/components/navigation/au-navbar/au-navbar.types.js +1 -0
  410. package/dist/collection/components/navigation/au-navbar/index.js +2 -0
  411. package/dist/collection/components/navigation/au-navbar/internal/collapse.js +14 -0
  412. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.js +2 -0
  413. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.css +29 -0
  414. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +251 -0
  415. package/dist/collection/components/navigation/au-sidebar-nav/index.js +2 -0
  416. package/dist/collection/components/navigation/au-tab/au-tab.css +84 -0
  417. package/dist/collection/components/navigation/au-tab/au-tab.js +107 -0
  418. package/dist/collection/components/navigation/au-tab/index.js +1 -0
  419. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.css +20 -0
  420. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +134 -0
  421. package/dist/collection/components/navigation/au-tab-panel/index.js +1 -0
  422. package/dist/collection/components/navigation/au-tabs/au-tabs.constants.js +12 -0
  423. package/dist/collection/components/navigation/au-tabs/au-tabs.css +107 -0
  424. package/dist/collection/components/navigation/au-tabs/au-tabs.js +554 -0
  425. package/dist/collection/components/navigation/au-tabs/au-tabs.types.js +1 -0
  426. package/dist/collection/components/navigation/au-tabs/index.js +2 -0
  427. package/dist/collection/components/navigation/au-tabs/internal/indicator-geometry.js +18 -0
  428. package/dist/collection/components/navigation/au-toc/au-toc.constants.js +6 -0
  429. package/dist/collection/components/navigation/au-toc/au-toc.css +107 -0
  430. package/dist/collection/components/navigation/au-toc/au-toc.js +462 -0
  431. package/dist/collection/components/navigation/au-toc/index.js +2 -0
  432. package/dist/collection/components/navigation/au-toc/internal/toc-model.js +89 -0
  433. package/dist/collection/components/navigation/internal/reveal.js +65 -0
  434. package/dist/collection/components/overlays/au-dialog/au-dialog.constants.js +29 -0
  435. package/dist/collection/components/overlays/au-dialog/au-dialog.css +324 -0
  436. package/dist/collection/components/overlays/au-dialog/au-dialog.js +618 -0
  437. package/dist/collection/components/overlays/au-dialog/au-dialog.types.js +1 -0
  438. package/dist/collection/components/overlays/au-dialog/index.js +2 -0
  439. package/dist/collection/components/overlays/au-menu/au-menu.constants.js +37 -0
  440. package/dist/collection/components/overlays/au-menu/au-menu.css +163 -0
  441. package/dist/collection/components/overlays/au-menu/au-menu.js +507 -0
  442. package/dist/collection/components/overlays/au-menu/au-menu.types.js +1 -0
  443. package/dist/collection/components/overlays/au-menu/index.js +2 -0
  444. package/dist/collection/components/overlays/au-menu-item/au-menu-item.css +127 -0
  445. package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +185 -0
  446. package/dist/collection/components/overlays/au-menu-item/au-menu-item.types.js +1 -0
  447. package/dist/collection/components/overlays/au-menu-item/index.js +1 -0
  448. package/dist/collection/components/overlays/au-popover/au-popover.constants.js +24 -0
  449. package/dist/collection/components/overlays/au-popover/au-popover.css +149 -0
  450. package/dist/collection/components/overlays/au-popover/au-popover.js +253 -0
  451. package/dist/collection/components/overlays/au-popover/au-popover.types.js +1 -0
  452. package/dist/collection/components/overlays/au-popover/index.js +2 -0
  453. package/dist/collection/components/overlays/au-tooltip/au-tooltip.constants.js +19 -0
  454. package/dist/collection/components/overlays/au-tooltip/au-tooltip.css +144 -0
  455. package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +517 -0
  456. package/dist/collection/components/overlays/au-tooltip/index.js +2 -0
  457. package/dist/collection/components/overlays/internal/menu.js +34 -0
  458. package/dist/collection/components/overlays/internal/popover-controller.js +233 -0
  459. package/dist/collection/components/overlays/internal/typeahead.js +28 -0
  460. package/dist/collection/components/primitives/au-icon/au-icon.constants.js +3 -0
  461. package/dist/collection/components/primitives/au-icon/au-icon.css +36 -0
  462. package/dist/collection/components/primitives/au-icon/au-icon.js +367 -0
  463. package/dist/collection/components/primitives/au-icon/au-icon.types.js +1 -0
  464. package/dist/collection/components/primitives/au-icon/core-icons.js +22 -0
  465. package/dist/collection/components/primitives/au-icon/icon-loader.js +76 -0
  466. package/dist/collection/components/primitives/au-icon/index.js +1 -0
  467. package/dist/collection/foundations/constants/constants.generated.mjs +119 -0
  468. package/dist/collection/foundations/constants/index.js +2 -0
  469. package/dist/collection/foundations/constants/resolve-size.js +9 -0
  470. package/dist/collection/foundations/icons/autoload.js +21 -0
  471. package/dist/collection/foundations/icons/icon-autoload-hook.js +13 -0
  472. package/dist/collection/foundations/icons/icon-registry.js +147 -0
  473. package/dist/collection/foundations/icons/icon-sizes.js +8 -0
  474. package/dist/collection/foundations/icons/icon-slug.js +26 -0
  475. package/dist/collection/foundations/icons/icon.constants.generated.js +2284 -0
  476. package/dist/collection/foundations/icons/icon.constants.js +18 -0
  477. package/dist/collection/foundations/icons/icon.types.js +1 -0
  478. package/dist/collection/foundations/icons/index.js +3 -0
  479. package/dist/collection/foundations/icons/mdi-map.js +86 -0
  480. package/dist/collection/foundations/icons/register-lucide-icons.js +30 -0
  481. package/dist/collection/foundations/themes/theme.js +161 -0
  482. package/dist/collection/foundations/tokens/index.js +2 -0
  483. package/dist/collection/foundations/tokens/tokens.generated.mjs +178 -0
  484. package/dist/collection/index.js +10 -0
  485. package/dist/collection/integrations/basics/index.js +2 -0
  486. package/dist/collection/integrations/basics/is-plain-object.js +1 -0
  487. package/dist/collection/integrations/flux/index.js +1 -0
  488. package/dist/collection/integrations/flux/loader.js +66 -0
  489. package/dist/collection/integrations/flux/provide.js +16 -0
  490. package/dist/collection/integrations/flux/registry.js +42 -0
  491. package/dist/collection/shared/anchored/anchor-position.js +101 -0
  492. package/dist/collection/shared/anchored/js-positioning.js +113 -0
  493. package/dist/collection/shared/anchored/popover-support.js +30 -0
  494. package/dist/collection/shared/clipboard/clipboard.js +14 -0
  495. package/dist/collection/shared/clipboard/copy-procedure.js +189 -0
  496. package/dist/collection/shared/clipboard/copy-types.js +15 -0
  497. package/dist/collection/shared/focus/deep-active-element.js +7 -0
  498. package/dist/collection/shared/focus/index.js +1 -0
  499. package/dist/collection/shared/form-control/attributes.js +25 -0
  500. package/dist/collection/shared/form-control/checkable.js +4 -0
  501. package/dist/collection/shared/form-control/control-id.js +11 -0
  502. package/dist/collection/shared/form-control/described-by.js +5 -0
  503. package/dist/collection/shared/form-control/form-control-controller.js +88 -0
  504. package/dist/collection/shared/form-control/group-validity.js +7 -0
  505. package/dist/collection/shared/form-control/host-events.js +19 -0
  506. package/dist/collection/shared/form-control/index.js +10 -0
  507. package/dist/collection/shared/form-control/initial-value.js +9 -0
  508. package/dist/collection/shared/form-control/restore.js +12 -0
  509. package/dist/collection/shared/form-control/validation-message.js +12 -0
  510. package/dist/collection/shared/live-announcer/announce-queue.js +141 -0
  511. package/dist/collection/shared/live-announcer/announce-timing.js +12 -0
  512. package/dist/collection/shared/live-announcer/index.js +1 -0
  513. package/dist/collection/shared/live-announcer/live-announcer.js +150 -0
  514. package/dist/collection/shared/live-announcer/public.js +6 -0
  515. package/dist/collection/shared/modal-placement.js +42 -0
  516. package/dist/collection/shared/modal-target.js +59 -0
  517. package/dist/collection/shared/navigation/index.js +2 -0
  518. package/dist/collection/shared/navigation/link-state.js +34 -0
  519. package/dist/collection/shared/navigation/navigation.js +56 -0
  520. package/dist/collection/shared/observers/index.js +180 -0
  521. package/dist/collection/shared/roving-focus/index.js +2 -0
  522. package/dist/collection/shared/roving-focus/item-update.js +11 -0
  523. package/dist/collection/shared/roving-focus/roving.js +65 -0
  524. package/dist/collection/shared/warn-once.js +17 -0
  525. package/dist/components/au-accordion-item.d.ts +11 -0
  526. package/dist/components/au-accordion-item.js +1 -0
  527. package/dist/components/au-accordion.d.ts +11 -0
  528. package/dist/components/au-accordion.js +1 -0
  529. package/dist/components/au-alert.d.ts +11 -0
  530. package/dist/components/au-alert.js +1 -0
  531. package/dist/components/au-avatar.d.ts +11 -0
  532. package/dist/components/au-avatar.js +1 -0
  533. package/dist/components/au-badge.d.ts +11 -0
  534. package/dist/components/au-badge.js +1 -0
  535. package/dist/components/au-breadcrumb-item.d.ts +11 -0
  536. package/dist/components/au-breadcrumb-item.js +1 -0
  537. package/dist/components/au-breadcrumb.d.ts +11 -0
  538. package/dist/components/au-breadcrumb.js +1 -0
  539. package/dist/components/au-button.d.ts +11 -0
  540. package/dist/components/au-button.js +1 -0
  541. package/dist/components/au-card.d.ts +11 -0
  542. package/dist/components/au-card.js +1 -0
  543. package/dist/components/au-checkbox.d.ts +11 -0
  544. package/dist/components/au-checkbox.js +1 -0
  545. package/dist/components/au-chip.d.ts +11 -0
  546. package/dist/components/au-chip.js +1 -0
  547. package/dist/components/au-code-block.d.ts +11 -0
  548. package/dist/components/au-code-block.js +1 -0
  549. package/dist/components/au-combobox.d.ts +11 -0
  550. package/dist/components/au-combobox.js +1 -0
  551. package/dist/components/au-container.d.ts +11 -0
  552. package/dist/components/au-container.js +1 -0
  553. package/dist/components/au-dialog.d.ts +11 -0
  554. package/dist/components/au-dialog.js +1 -0
  555. package/dist/components/au-divider.d.ts +11 -0
  556. package/dist/components/au-divider.js +1 -0
  557. package/dist/components/au-field.d.ts +11 -0
  558. package/dist/components/au-field.js +1 -0
  559. package/dist/components/au-icon.d.ts +11 -0
  560. package/dist/components/au-icon.js +1 -0
  561. package/dist/components/au-input.d.ts +11 -0
  562. package/dist/components/au-input.js +1 -0
  563. package/dist/components/au-kbd.d.ts +11 -0
  564. package/dist/components/au-kbd.js +1 -0
  565. package/dist/components/au-label.d.ts +11 -0
  566. package/dist/components/au-label.js +1 -0
  567. package/dist/components/au-list-item.d.ts +11 -0
  568. package/dist/components/au-list-item.js +1 -0
  569. package/dist/components/au-list.d.ts +11 -0
  570. package/dist/components/au-list.js +1 -0
  571. package/dist/components/au-menu-item.d.ts +11 -0
  572. package/dist/components/au-menu-item.js +1 -0
  573. package/dist/components/au-menu.d.ts +11 -0
  574. package/dist/components/au-menu.js +1 -0
  575. package/dist/components/au-nav-group.d.ts +11 -0
  576. package/dist/components/au-nav-group.js +1 -0
  577. package/dist/components/au-nav-link.d.ts +11 -0
  578. package/dist/components/au-nav-link.js +1 -0
  579. package/dist/components/au-navbar.d.ts +11 -0
  580. package/dist/components/au-navbar.js +1 -0
  581. package/dist/components/au-number-input.d.ts +11 -0
  582. package/dist/components/au-number-input.js +1 -0
  583. package/dist/components/au-popover.d.ts +11 -0
  584. package/dist/components/au-popover.js +1 -0
  585. package/dist/components/au-progress.d.ts +11 -0
  586. package/dist/components/au-progress.js +1 -0
  587. package/dist/components/au-radio-group.d.ts +11 -0
  588. package/dist/components/au-radio-group.js +1 -0
  589. package/dist/components/au-radio.d.ts +11 -0
  590. package/dist/components/au-radio.js +1 -0
  591. package/dist/components/au-segmented-control.d.ts +11 -0
  592. package/dist/components/au-segmented-control.js +1 -0
  593. package/dist/components/au-segmented-option.d.ts +11 -0
  594. package/dist/components/au-segmented-option.js +1 -0
  595. package/dist/components/au-select.d.ts +11 -0
  596. package/dist/components/au-select.js +1 -0
  597. package/dist/components/au-sidebar-nav.d.ts +11 -0
  598. package/dist/components/au-sidebar-nav.js +1 -0
  599. package/dist/components/au-skeleton.d.ts +11 -0
  600. package/dist/components/au-skeleton.js +1 -0
  601. package/dist/components/au-slider.d.ts +11 -0
  602. package/dist/components/au-slider.js +1 -0
  603. package/dist/components/au-splitter.d.ts +11 -0
  604. package/dist/components/au-splitter.js +1 -0
  605. package/dist/components/au-stat.d.ts +11 -0
  606. package/dist/components/au-stat.js +1 -0
  607. package/dist/components/au-switch.d.ts +11 -0
  608. package/dist/components/au-switch.js +1 -0
  609. package/dist/components/au-tab-panel.d.ts +11 -0
  610. package/dist/components/au-tab-panel.js +1 -0
  611. package/dist/components/au-tab.d.ts +11 -0
  612. package/dist/components/au-tab.js +1 -0
  613. package/dist/components/au-table.d.ts +11 -0
  614. package/dist/components/au-table.js +1 -0
  615. package/dist/components/au-tabs.d.ts +11 -0
  616. package/dist/components/au-tabs.js +1 -0
  617. package/dist/components/au-textarea.d.ts +11 -0
  618. package/dist/components/au-textarea.js +1 -0
  619. package/dist/components/au-toast-region.d.ts +11 -0
  620. package/dist/components/au-toast-region.js +1 -0
  621. package/dist/components/au-toast.d.ts +11 -0
  622. package/dist/components/au-toast.js +1 -0
  623. package/dist/components/au-toc.d.ts +11 -0
  624. package/dist/components/au-toc.js +1 -0
  625. package/dist/components/au-tooltip.d.ts +11 -0
  626. package/dist/components/au-tooltip.js +1 -0
  627. package/dist/components/index.d.ts +35 -0
  628. package/dist/components/index.js +1 -0
  629. package/dist/components/p-B3rlZvSP.js +7 -0
  630. package/dist/components/p-B5BhPkwP.js +1 -0
  631. package/dist/components/p-B71krpcd.js +1 -0
  632. package/dist/components/p-BTRtOC1j.js +1 -0
  633. package/dist/components/p-BTZwl4uD.js +7 -0
  634. package/dist/components/p-BvnCPjl5.js +1 -0
  635. package/dist/components/p-C-bRwiWx.js +1 -0
  636. package/dist/components/p-C2iVoG0G.js +1 -0
  637. package/dist/components/p-C48ks26E.js +1 -0
  638. package/dist/components/p-C6E5E18W.js +7 -0
  639. package/dist/components/p-CA3n-tpF.js +7 -0
  640. package/dist/components/p-CIZeCYao.js +1 -0
  641. package/dist/components/p-CJtRxiuh.js +7 -0
  642. package/dist/components/p-CU9sZ49I.js +7 -0
  643. package/dist/components/p-CfazOBmW.js +1 -0
  644. package/dist/components/p-Ci-XzGE3.js +1 -0
  645. package/dist/components/p-CnJOd66V.js +7 -0
  646. package/dist/components/p-Cq5N0E4D.js +7 -0
  647. package/dist/components/p-CrKUXDm4.js +1 -0
  648. package/dist/components/p-DBHfOAQc.js +1 -0
  649. package/dist/components/p-DD6GCVQb.js +1 -0
  650. package/dist/components/p-DMeUBbqF.js +7 -0
  651. package/dist/components/p-DTEnois3.js +7 -0
  652. package/dist/components/p-DTeHrc-Q.js +1 -0
  653. package/dist/components/p-DgfWQsck.js +1 -0
  654. package/dist/components/p-DjW6oMgu.js +7 -0
  655. package/dist/components/p-Dogh3-Bf.js +1 -0
  656. package/dist/components/p-DqAwSryz.js +1 -0
  657. package/dist/components/p-DqqWqhAT.js +1 -0
  658. package/dist/components/p-Dv3Jcvbc.js +1 -0
  659. package/dist/components/p-Dw0zb4x_.js +1 -0
  660. package/dist/components/p-JU60IJxn.js +1 -0
  661. package/dist/components/p-TdUs41zm.js +1 -0
  662. package/dist/components/p-ZpauIcNt.js +1 -0
  663. package/dist/components/p-gvyxpLwV.js +1 -0
  664. package/dist/components/p-kEvQ5xF7.js +1 -0
  665. package/dist/components/p-kbAXs-sG.js +7 -0
  666. package/dist/components/p-klxij34W.js +1 -0
  667. package/dist/components/p-kpQFQ7bu.js +7 -0
  668. package/dist/components/p-tdx7CCkD.js +7 -0
  669. package/dist/components/p-vjn4H-yX.js +1 -0
  670. package/dist/custom-elements.json +11216 -0
  671. package/dist/esm/accordion-CfazOBmW.js +33 -0
  672. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  673. package/dist/esm/attributes-CrKUXDm4.js +27 -0
  674. package/dist/esm/au-accordion-item.entry.js +86 -0
  675. package/dist/esm/au-accordion.entry.js +98 -0
  676. package/dist/esm/au-alert.entry.js +115 -0
  677. package/dist/esm/au-avatar.entry.js +175 -0
  678. package/dist/esm/au-badge.entry.js +58 -0
  679. package/dist/esm/au-breadcrumb-item.entry.js +82 -0
  680. package/dist/esm/au-breadcrumb.entry.js +78 -0
  681. package/dist/esm/au-button.entry.js +326 -0
  682. package/dist/esm/au-card.entry.js +74 -0
  683. package/dist/esm/au-checkbox.entry.js +181 -0
  684. package/dist/esm/au-chip.entry.js +247 -0
  685. package/dist/esm/au-code-block.entry.js +676 -0
  686. package/dist/esm/au-combobox.entry.js +753 -0
  687. package/dist/esm/au-container.entry.js +56 -0
  688. package/dist/esm/au-dialog.entry.js +375 -0
  689. package/dist/esm/au-divider.entry.js +104 -0
  690. package/dist/esm/au-field.entry.js +183 -0
  691. package/dist/esm/au-icon-6iJTkDID.js +344 -0
  692. package/dist/esm/au-icon.entry.js +3 -0
  693. package/dist/esm/au-input.entry.js +310 -0
  694. package/dist/esm/au-kbd.entry.js +353 -0
  695. package/dist/esm/au-label.entry.js +43 -0
  696. package/dist/esm/au-list-item.entry.js +193 -0
  697. package/dist/esm/au-list.entry.js +76 -0
  698. package/dist/esm/au-menu-item.entry.js +69 -0
  699. package/dist/esm/au-menu.entry.js +345 -0
  700. package/dist/esm/au-nav-group.entry.js +48 -0
  701. package/dist/esm/au-nav-link.entry.js +82 -0
  702. package/dist/esm/au-navbar.entry.js +304 -0
  703. package/dist/esm/au-number-input.entry.js +348 -0
  704. package/dist/esm/au-popover.entry.js +128 -0
  705. package/dist/esm/au-progress.entry.js +105 -0
  706. package/dist/esm/au-radio-group.entry.js +346 -0
  707. package/dist/esm/au-radio.entry.js +43 -0
  708. package/dist/esm/au-segmented-control.entry.js +542 -0
  709. package/dist/esm/au-segmented-option.entry.js +76 -0
  710. package/dist/esm/au-select.entry.js +334 -0
  711. package/dist/esm/au-sidebar-nav.entry.js +176 -0
  712. package/dist/esm/au-skeleton.entry.js +104 -0
  713. package/dist/esm/au-slider.entry.js +284 -0
  714. package/dist/esm/au-splitter.entry.js +228 -0
  715. package/dist/esm/au-stat.entry.js +260 -0
  716. package/dist/esm/au-switch.entry.js +173 -0
  717. package/dist/esm/au-tab-panel.entry.js +61 -0
  718. package/dist/esm/au-tab.entry.js +39 -0
  719. package/dist/esm/au-table.entry.js +335 -0
  720. package/dist/esm/au-tabs.entry.js +404 -0
  721. package/dist/esm/au-textarea.entry.js +243 -0
  722. package/dist/esm/au-toast-region.entry.js +690 -0
  723. package/dist/esm/au-toast.entry.js +61 -0
  724. package/dist/esm/au-toc.entry.js +443 -0
  725. package/dist/esm/au-tooltip.entry.js +393 -0
  726. package/dist/esm/aurora.js +21 -0
  727. package/dist/esm/check-CnJOd66V.js +14 -0
  728. package/dist/esm/checkable-kEvQ5xF7.js +6 -0
  729. package/dist/esm/circle-check-kpQFQ7bu.js +18 -0
  730. package/dist/esm/circle-x-tdx7CCkD.js +19 -0
  731. package/dist/esm/constants.generated-DqqWqhAT.js +120 -0
  732. package/dist/esm/control-id-C48ks26E.js +13 -0
  733. package/dist/esm/copy-B3rlZvSP.js +17 -0
  734. package/dist/esm/copy-check-Cq5N0E4D.js +18 -0
  735. package/dist/esm/deep-active-element-C-bRwiWx.js +9 -0
  736. package/dist/esm/group-validity-C2iVoG0G.js +9 -0
  737. package/dist/esm/icon-loader-B2WSNZ27.js +111 -0
  738. package/dist/esm/index-JU60IJxn.js +155 -0
  739. package/dist/esm/index-KLUZmSN-.js +2304 -0
  740. package/dist/esm/index.js +321 -0
  741. package/dist/esm/info-CA3n-tpF.js +18 -0
  742. package/dist/esm/initial-value-B71krpcd.js +11 -0
  743. package/dist/esm/item-update-DgfWQsck.js +13 -0
  744. package/dist/esm/link-state-DhPKwPml.js +37 -0
  745. package/dist/esm/live-announcer-IAjNBWYI.js +391 -0
  746. package/dist/esm/loader.js +11 -0
  747. package/dist/esm/menu-vjn4H-yX.js +35 -0
  748. package/dist/esm/minus-kbAXs-sG.js +14 -0
  749. package/dist/esm/navigation-TdUs41zm.js +58 -0
  750. package/dist/esm/octagon-alert-DTEnois3.js +25 -0
  751. package/dist/esm/plus-CU9sZ49I.js +17 -0
  752. package/dist/esm/popover-controller-DUrPFfIx.js +235 -0
  753. package/dist/esm/popover-support-DBHfOAQc.js +247 -0
  754. package/dist/esm/resolve-size-DD6GCVQb.js +11 -0
  755. package/dist/esm/restore-gvyxpLwV.js +141 -0
  756. package/dist/esm/reveal-BvnCPjl5.js +67 -0
  757. package/dist/esm/roving-Dogh3-Bf.js +67 -0
  758. package/dist/esm/segmented-BTRtOC1j.js +45 -0
  759. package/dist/esm/slider-CIZeCYao.js +78 -0
  760. package/dist/esm/toast-request-Kwv9rt06.js +55 -0
  761. package/dist/esm/trending-down-DjW6oMgu.js +17 -0
  762. package/dist/esm/trending-up-DMeUBbqF.js +17 -0
  763. package/dist/esm/triangle-alert-CJtRxiuh.js +25 -0
  764. package/dist/esm/user-round-C6E5E18W.js +18 -0
  765. package/dist/esm/warn-once-Ci-XzGE3.js +19 -0
  766. package/dist/esm/x-BTZwl4uD.js +17 -0
  767. package/dist/foundations/accessibility/_index.scss +34 -0
  768. package/dist/foundations/constants/_config.scss +119 -0
  769. package/dist/foundations/constants/_index.scss +1 -0
  770. package/dist/foundations/interactions/_index.scss +19 -0
  771. package/dist/foundations/responsive/_breakpoints.scss +104 -0
  772. package/dist/foundations/responsive/_index.scss +1 -0
  773. package/dist/foundations/themes/_dark.scss +60 -0
  774. package/dist/foundations/themes/_default.scss +37 -0
  775. package/dist/foundations/themes/_glass.scss +98 -0
  776. package/dist/foundations/themes/_index.scss +2 -0
  777. package/dist/foundations/themes/_minimal.scss +54 -0
  778. package/dist/foundations/tokens/_config.scss +186 -0
  779. package/dist/foundations/tokens/_functions.scss +19 -0
  780. package/dist/foundations/tokens/_index.scss +3 -0
  781. package/dist/foundations/tokens/_runtime.scss +102 -0
  782. package/dist/foundations/utilities/_borders.scss +116 -0
  783. package/dist/foundations/utilities/_colors.scss +17 -0
  784. package/dist/foundations/utilities/_flex.scss +144 -0
  785. package/dist/foundations/utilities/_grid.scss +105 -0
  786. package/dist/foundations/utilities/_index.scss +92 -0
  787. package/dist/foundations/utilities/_positioning.scss +44 -0
  788. package/dist/foundations/utilities/_sizing.scss +38 -0
  789. package/dist/foundations/utilities/_spacing.scss +119 -0
  790. package/dist/foundations/utilities/_typography.scss +85 -0
  791. package/dist/icons/foundations/icons/autoload.d.ts +9 -0
  792. package/dist/icons/foundations/icons/autoload.js +21 -0
  793. package/dist/icons/foundations/icons/icon-autoload-hook.d.ts +14 -0
  794. package/dist/icons/foundations/icons/icon-autoload-hook.js +13 -0
  795. package/dist/icons/foundations/icons/icon-registry.d.ts +11 -0
  796. package/dist/icons/foundations/icons/icon-registry.js +147 -0
  797. package/dist/icons/foundations/icons/icon-sizes.d.ts +8 -0
  798. package/dist/icons/foundations/icons/icon-sizes.js +8 -0
  799. package/dist/icons/foundations/icons/icon-slug.d.ts +6 -0
  800. package/dist/icons/foundations/icons/icon-slug.js +26 -0
  801. package/dist/icons/foundations/icons/icon.constants.d.ts +14 -0
  802. package/dist/icons/foundations/icons/icon.constants.generated.d.ts +2281 -0
  803. package/dist/icons/foundations/icons/icon.constants.generated.js +2284 -0
  804. package/dist/icons/foundations/icons/icon.constants.js +18 -0
  805. package/dist/icons/foundations/icons/icon.types.d.ts +21 -0
  806. package/dist/icons/foundations/icons/icon.types.js +1 -0
  807. package/dist/icons/foundations/icons/index.d.ts +5 -0
  808. package/dist/icons/foundations/icons/index.js +3 -0
  809. package/dist/icons/foundations/icons/mdi-map.d.ts +92 -0
  810. package/dist/icons/foundations/icons/mdi-map.js +86 -0
  811. package/dist/icons/foundations/icons/register-lucide-icons.d.ts +14 -0
  812. package/dist/icons/foundations/icons/register-lucide-icons.js +30 -0
  813. package/dist/icons/index.d.ts +2 -0
  814. package/dist/icons/index.js +2 -0
  815. package/dist/icons/integrations/basics/index.d.ts +2 -0
  816. package/dist/icons/integrations/basics/index.js +2 -0
  817. package/dist/icons/integrations/basics/is-plain-object.d.ts +1 -0
  818. package/dist/icons/integrations/basics/is-plain-object.js +1 -0
  819. package/dist/icons/package.json +3 -0
  820. package/dist/index.cjs.js +1 -0
  821. package/dist/index.js +1 -0
  822. package/dist/scss/index.scss +4 -0
  823. package/dist/scss/interactions.scss +1 -0
  824. package/dist/scss/responsive.scss +2 -0
  825. package/dist/scss/themes/dark.scss +1 -0
  826. package/dist/scss/themes/default.scss +1 -0
  827. package/dist/scss/themes/glass.scss +1 -0
  828. package/dist/scss/themes/minimal.scss +1 -0
  829. package/dist/scss/tokens.scss +1 -0
  830. package/dist/scss/utilities/_index.scss +5 -0
  831. package/dist/scss/utilities/borders.scss +3 -0
  832. package/dist/scss/utilities/colors.scss +2 -0
  833. package/dist/scss/utilities/flex.scss +1 -0
  834. package/dist/scss/utilities/grid.scss +1 -0
  835. package/dist/scss/utilities/positioning.scss +2 -0
  836. package/dist/scss/utilities/sizing.scss +3 -0
  837. package/dist/scss/utilities/spacing.scss +3 -0
  838. package/dist/scss/utilities/typography.scss +3 -0
  839. package/dist/styles.css +402 -0
  840. package/dist/themes/glass.css +88 -0
  841. package/dist/themes/minimal.css +50 -0
  842. package/dist/tokens.cjs +38 -0
  843. package/dist/tokens.d.ts +337 -0
  844. package/dist/tokens.mjs +35 -0
  845. package/dist/types/components/actions/au-button/au-button.constants.d.ts +57 -0
  846. package/dist/types/components/actions/au-button/au-button.d.ts +93 -0
  847. package/dist/types/components/actions/au-button/au-button.types.d.ts +9 -0
  848. package/dist/types/components/actions/au-button/index.d.ts +2 -0
  849. package/dist/types/components/data-display/au-accordion/au-accordion.constants.d.ts +12 -0
  850. package/dist/types/components/data-display/au-accordion/au-accordion.d.ts +27 -0
  851. package/dist/types/components/data-display/au-accordion/au-accordion.types.d.ts +1 -0
  852. package/dist/types/components/data-display/au-accordion/index.d.ts +3 -0
  853. package/dist/types/components/data-display/au-accordion-item/au-accordion-item.d.ts +31 -0
  854. package/dist/types/components/data-display/au-accordion-item/index.d.ts +1 -0
  855. package/dist/types/components/data-display/au-avatar/au-avatar.constants.d.ts +26 -0
  856. package/dist/types/components/data-display/au-avatar/au-avatar.d.ts +39 -0
  857. package/dist/types/components/data-display/au-avatar/au-avatar.types.d.ts +1 -0
  858. package/dist/types/components/data-display/au-avatar/index.d.ts +3 -0
  859. package/dist/types/components/data-display/au-avatar/internal/initials.d.ts +7 -0
  860. package/dist/types/components/data-display/au-badge/au-badge.constants.d.ts +43 -0
  861. package/dist/types/components/data-display/au-badge/au-badge.d.ts +15 -0
  862. package/dist/types/components/data-display/au-badge/au-badge.types.d.ts +1 -0
  863. package/dist/types/components/data-display/au-badge/index.d.ts +3 -0
  864. package/dist/types/components/data-display/au-card/au-card.constants.d.ts +29 -0
  865. package/dist/types/components/data-display/au-card/au-card.d.ts +17 -0
  866. package/dist/types/components/data-display/au-card/au-card.types.d.ts +1 -0
  867. package/dist/types/components/data-display/au-card/index.d.ts +3 -0
  868. package/dist/types/components/data-display/au-chip/au-chip.constants.d.ts +23 -0
  869. package/dist/types/components/data-display/au-chip/au-chip.d.ts +46 -0
  870. package/dist/types/components/data-display/au-chip/au-chip.types.d.ts +10 -0
  871. package/dist/types/components/data-display/au-chip/index.d.ts +3 -0
  872. package/dist/types/components/data-display/au-chip/internal/neighbor.d.ts +6 -0
  873. package/dist/types/components/data-display/au-chip/internal/remove-key.d.ts +16 -0
  874. package/dist/types/components/data-display/au-code-block/au-code-block.constants.d.ts +32 -0
  875. package/dist/types/components/data-display/au-code-block/au-code-block.d.ts +89 -0
  876. package/dist/types/components/data-display/au-code-block/au-code-block.types.d.ts +17 -0
  877. package/dist/types/components/data-display/au-code-block/index.d.ts +3 -0
  878. package/dist/types/components/data-display/au-code-block/internal/highlight-lines.d.ts +10 -0
  879. package/dist/types/components/data-display/au-code-block/internal/highlight-result.d.ts +22 -0
  880. package/dist/types/components/data-display/au-code-block/internal/light-source.d.ts +10 -0
  881. package/dist/types/components/data-display/au-code-block/internal/normalize-code.d.ts +9 -0
  882. package/dist/types/components/data-display/au-kbd/au-kbd.constants.d.ts +41 -0
  883. package/dist/types/components/data-display/au-kbd/au-kbd.d.ts +36 -0
  884. package/dist/types/components/data-display/au-kbd/au-kbd.types.d.ts +1 -0
  885. package/dist/types/components/data-display/au-kbd/index.d.ts +3 -0
  886. package/dist/types/components/data-display/au-kbd/internal/describe.d.ts +13 -0
  887. package/dist/types/components/data-display/au-kbd/internal/parse.d.ts +18 -0
  888. package/dist/types/components/data-display/au-kbd/internal/platform.d.ts +13 -0
  889. package/dist/types/components/data-display/au-list/au-list.constants.d.ts +8 -0
  890. package/dist/types/components/data-display/au-list/au-list.d.ts +29 -0
  891. package/dist/types/components/data-display/au-list/au-list.types.d.ts +1 -0
  892. package/dist/types/components/data-display/au-list/index.d.ts +3 -0
  893. package/dist/types/components/data-display/au-list-item/au-list-item.d.ts +61 -0
  894. package/dist/types/components/data-display/au-list-item/index.d.ts +1 -0
  895. package/dist/types/components/data-display/au-list-item/internal/interactive-content.d.ts +2 -0
  896. package/dist/types/components/data-display/au-stat/au-stat.constants.d.ts +44 -0
  897. package/dist/types/components/data-display/au-stat/au-stat.d.ts +67 -0
  898. package/dist/types/components/data-display/au-stat/au-stat.types.d.ts +1 -0
  899. package/dist/types/components/data-display/au-stat/index.d.ts +3 -0
  900. package/dist/types/components/data-display/au-stat/internal/announcement.d.ts +16 -0
  901. package/dist/types/components/data-display/au-table/au-table.constants.d.ts +26 -0
  902. package/dist/types/components/data-display/au-table/au-table.d.ts +86 -0
  903. package/dist/types/components/data-display/au-table/au-table.types.d.ts +1 -0
  904. package/dist/types/components/data-display/au-table/index.d.ts +3 -0
  905. package/dist/types/components/data-display/au-table/internal/scroller-label.d.ts +9 -0
  906. package/dist/types/components/data-display/au-table/internal/sort.d.ts +11 -0
  907. package/dist/types/components/data-display/internal/accordion.d.ts +26 -0
  908. package/dist/types/components/feedback/au-alert/au-alert.constants.d.ts +24 -0
  909. package/dist/types/components/feedback/au-alert/au-alert.d.ts +37 -0
  910. package/dist/types/components/feedback/au-alert/au-alert.types.d.ts +1 -0
  911. package/dist/types/components/feedback/au-alert/index.d.ts +3 -0
  912. package/dist/types/components/feedback/au-progress/au-progress.constants.d.ts +31 -0
  913. package/dist/types/components/feedback/au-progress/au-progress.d.ts +32 -0
  914. package/dist/types/components/feedback/au-progress/au-progress.types.d.ts +1 -0
  915. package/dist/types/components/feedback/au-progress/index.d.ts +3 -0
  916. package/dist/types/components/feedback/au-skeleton/au-skeleton.constants.d.ts +27 -0
  917. package/dist/types/components/feedback/au-skeleton/au-skeleton.d.ts +31 -0
  918. package/dist/types/components/feedback/au-skeleton/au-skeleton.types.d.ts +1 -0
  919. package/dist/types/components/feedback/au-skeleton/index.d.ts +3 -0
  920. package/dist/types/components/feedback/au-toast/au-toast.constants.d.ts +2 -0
  921. package/dist/types/components/feedback/au-toast/au-toast.d.ts +25 -0
  922. package/dist/types/components/feedback/au-toast/au-toast.service.d.ts +8 -0
  923. package/dist/types/components/feedback/au-toast/au-toast.types.d.ts +1 -0
  924. package/dist/types/components/feedback/au-toast/index.d.ts +3 -0
  925. package/dist/types/components/feedback/au-toast-region/au-toast-region.d.ts +106 -0
  926. package/dist/types/components/feedback/au-toast-region/index.d.ts +4 -0
  927. package/dist/types/components/feedback/internal/toast-announcer.d.ts +5 -0
  928. package/dist/types/components/feedback/internal/toast-constants.d.ts +70 -0
  929. package/dist/types/components/feedback/internal/toast-options.d.ts +28 -0
  930. package/dist/types/components/feedback/internal/toast-popover.d.ts +4 -0
  931. package/dist/types/components/feedback/internal/toast-queue.d.ts +39 -0
  932. package/dist/types/components/feedback/internal/toast-registry.d.ts +11 -0
  933. package/dist/types/components/feedback/internal/toast-request.d.ts +10 -0
  934. package/dist/types/components/feedback/internal/toast-timers.d.ts +19 -0
  935. package/dist/types/components/feedback/internal/toast-timing.d.ts +5 -0
  936. package/dist/types/components/feedback/internal/toast-types.d.ts +37 -0
  937. package/dist/types/components/forms/au-checkbox/au-checkbox.constants.d.ts +2 -0
  938. package/dist/types/components/forms/au-checkbox/au-checkbox.d.ts +63 -0
  939. package/dist/types/components/forms/au-checkbox/au-checkbox.types.d.ts +23 -0
  940. package/dist/types/components/forms/au-checkbox/index.d.ts +3 -0
  941. package/dist/types/components/forms/au-combobox/au-combobox.constants.d.ts +26 -0
  942. package/dist/types/components/forms/au-combobox/au-combobox.d.ts +167 -0
  943. package/dist/types/components/forms/au-combobox/au-combobox.types.d.ts +49 -0
  944. package/dist/types/components/forms/au-combobox/index.d.ts +4 -0
  945. package/dist/types/components/forms/au-field/au-field.d.ts +31 -0
  946. package/dist/types/components/forms/au-field/index.d.ts +1 -0
  947. package/dist/types/components/forms/au-input/au-input.constants.d.ts +35 -0
  948. package/dist/types/components/forms/au-input/au-input.d.ts +104 -0
  949. package/dist/types/components/forms/au-input/au-input.types.d.ts +35 -0
  950. package/dist/types/components/forms/au-input/index.d.ts +4 -0
  951. package/dist/types/components/forms/au-label/au-label.constants.d.ts +7 -0
  952. package/dist/types/components/forms/au-label/au-label.d.ts +12 -0
  953. package/dist/types/components/forms/au-label/au-label.types.d.ts +7 -0
  954. package/dist/types/components/forms/au-label/index.d.ts +2 -0
  955. package/dist/types/components/forms/au-number-input/au-number-input.constants.d.ts +15 -0
  956. package/dist/types/components/forms/au-number-input/au-number-input.d.ts +93 -0
  957. package/dist/types/components/forms/au-number-input/au-number-input.types.d.ts +35 -0
  958. package/dist/types/components/forms/au-number-input/index.d.ts +4 -0
  959. package/dist/types/components/forms/au-radio/au-radio.constants.d.ts +2 -0
  960. package/dist/types/components/forms/au-radio/au-radio.d.ts +13 -0
  961. package/dist/types/components/forms/au-radio/au-radio.types.d.ts +11 -0
  962. package/dist/types/components/forms/au-radio/index.d.ts +3 -0
  963. package/dist/types/components/forms/au-radio-group/au-radio-group.constants.d.ts +6 -0
  964. package/dist/types/components/forms/au-radio-group/au-radio-group.d.ts +89 -0
  965. package/dist/types/components/forms/au-radio-group/au-radio-group.types.d.ts +23 -0
  966. package/dist/types/components/forms/au-radio-group/index.d.ts +4 -0
  967. package/dist/types/components/forms/au-segmented-control/au-segmented-control.constants.d.ts +26 -0
  968. package/dist/types/components/forms/au-segmented-control/au-segmented-control.d.ts +113 -0
  969. package/dist/types/components/forms/au-segmented-control/au-segmented-control.types.d.ts +30 -0
  970. package/dist/types/components/forms/au-segmented-control/index.d.ts +4 -0
  971. package/dist/types/components/forms/au-segmented-option/au-segmented-option.d.ts +23 -0
  972. package/dist/types/components/forms/au-segmented-option/au-segmented-option.types.d.ts +14 -0
  973. package/dist/types/components/forms/au-segmented-option/index.d.ts +2 -0
  974. package/dist/types/components/forms/au-select/au-select.constants.d.ts +7 -0
  975. package/dist/types/components/forms/au-select/au-select.d.ts +91 -0
  976. package/dist/types/components/forms/au-select/au-select.types.d.ts +25 -0
  977. package/dist/types/components/forms/au-select/index.d.ts +4 -0
  978. package/dist/types/components/forms/au-select/internal/read-select-options.d.ts +28 -0
  979. package/dist/types/components/forms/au-slider/au-slider.constants.d.ts +11 -0
  980. package/dist/types/components/forms/au-slider/au-slider.d.ts +84 -0
  981. package/dist/types/components/forms/au-slider/au-slider.types.d.ts +41 -0
  982. package/dist/types/components/forms/au-slider/index.d.ts +4 -0
  983. package/dist/types/components/forms/au-switch/au-switch.constants.d.ts +2 -0
  984. package/dist/types/components/forms/au-switch/au-switch.d.ts +61 -0
  985. package/dist/types/components/forms/au-switch/au-switch.types.d.ts +21 -0
  986. package/dist/types/components/forms/au-switch/index.d.ts +3 -0
  987. package/dist/types/components/forms/au-textarea/au-textarea.constants.d.ts +16 -0
  988. package/dist/types/components/forms/au-textarea/au-textarea.d.ts +87 -0
  989. package/dist/types/components/forms/au-textarea/au-textarea.types.d.ts +33 -0
  990. package/dist/types/components/forms/au-textarea/index.d.ts +4 -0
  991. package/dist/types/components/forms/internal/combobox.d.ts +51 -0
  992. package/dist/types/components/forms/internal/number-input.d.ts +18 -0
  993. package/dist/types/components/forms/internal/segmented.d.ts +34 -0
  994. package/dist/types/components/forms/internal/slider.d.ts +42 -0
  995. package/dist/types/components/layout/au-container/au-container.constants.d.ts +24 -0
  996. package/dist/types/components/layout/au-container/au-container.d.ts +15 -0
  997. package/dist/types/components/layout/au-container/au-container.types.d.ts +1 -0
  998. package/dist/types/components/layout/au-container/index.d.ts +3 -0
  999. package/dist/types/components/layout/au-divider/au-divider.constants.d.ts +23 -0
  1000. package/dist/types/components/layout/au-divider/au-divider.d.ts +23 -0
  1001. package/dist/types/components/layout/au-divider/au-divider.types.d.ts +1 -0
  1002. package/dist/types/components/layout/au-divider/index.d.ts +3 -0
  1003. package/dist/types/components/layout/au-splitter/au-splitter.constants.d.ts +9 -0
  1004. package/dist/types/components/layout/au-splitter/au-splitter.d.ts +53 -0
  1005. package/dist/types/components/layout/au-splitter/au-splitter.types.d.ts +19 -0
  1006. package/dist/types/components/layout/au-splitter/index.d.ts +4 -0
  1007. package/dist/types/components/layout/internal/splitter.d.ts +22 -0
  1008. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.constants.d.ts +4 -0
  1009. package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.d.ts +23 -0
  1010. package/dist/types/components/navigation/au-breadcrumb/index.d.ts +2 -0
  1011. package/dist/types/components/navigation/au-breadcrumb-item/au-breadcrumb-item.d.ts +28 -0
  1012. package/dist/types/components/navigation/au-breadcrumb-item/index.d.ts +1 -0
  1013. package/dist/types/components/navigation/au-nav-group/au-nav-group.d.ts +16 -0
  1014. package/dist/types/components/navigation/au-nav-group/index.d.ts +1 -0
  1015. package/dist/types/components/navigation/au-nav-link/au-nav-link.d.ts +25 -0
  1016. package/dist/types/components/navigation/au-nav-link/index.d.ts +1 -0
  1017. package/dist/types/components/navigation/au-navbar/au-navbar.constants.d.ts +40 -0
  1018. package/dist/types/components/navigation/au-navbar/au-navbar.d.ts +74 -0
  1019. package/dist/types/components/navigation/au-navbar/au-navbar.types.d.ts +9 -0
  1020. package/dist/types/components/navigation/au-navbar/index.d.ts +4 -0
  1021. package/dist/types/components/navigation/au-navbar/internal/collapse.d.ts +6 -0
  1022. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.d.ts +2 -0
  1023. package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.d.ts +49 -0
  1024. package/dist/types/components/navigation/au-sidebar-nav/index.d.ts +2 -0
  1025. package/dist/types/components/navigation/au-tab/au-tab.d.ts +11 -0
  1026. package/dist/types/components/navigation/au-tab/index.d.ts +1 -0
  1027. package/dist/types/components/navigation/au-tab-panel/au-tab-panel.d.ts +20 -0
  1028. package/dist/types/components/navigation/au-tab-panel/index.d.ts +1 -0
  1029. package/dist/types/components/navigation/au-tabs/au-tabs.constants.d.ts +12 -0
  1030. package/dist/types/components/navigation/au-tabs/au-tabs.d.ts +79 -0
  1031. package/dist/types/components/navigation/au-tabs/au-tabs.types.d.ts +7 -0
  1032. package/dist/types/components/navigation/au-tabs/index.d.ts +4 -0
  1033. package/dist/types/components/navigation/au-tabs/internal/indicator-geometry.d.ts +31 -0
  1034. package/dist/types/components/navigation/au-toc/au-toc.constants.d.ts +6 -0
  1035. package/dist/types/components/navigation/au-toc/au-toc.d.ts +84 -0
  1036. package/dist/types/components/navigation/au-toc/index.d.ts +2 -0
  1037. package/dist/types/components/navigation/au-toc/internal/toc-model.d.ts +41 -0
  1038. package/dist/types/components/navigation/internal/reveal.d.ts +24 -0
  1039. package/dist/types/components/overlays/au-dialog/au-dialog.constants.d.ts +33 -0
  1040. package/dist/types/components/overlays/au-dialog/au-dialog.d.ts +103 -0
  1041. package/dist/types/components/overlays/au-dialog/au-dialog.types.d.ts +11 -0
  1042. package/dist/types/components/overlays/au-dialog/index.d.ts +3 -0
  1043. package/dist/types/components/overlays/au-menu/au-menu.constants.d.ts +37 -0
  1044. package/dist/types/components/overlays/au-menu/au-menu.d.ts +67 -0
  1045. package/dist/types/components/overlays/au-menu/au-menu.types.d.ts +12 -0
  1046. package/dist/types/components/overlays/au-menu/index.d.ts +4 -0
  1047. package/dist/types/components/overlays/au-menu-item/au-menu-item.d.ts +19 -0
  1048. package/dist/types/components/overlays/au-menu-item/au-menu-item.types.d.ts +14 -0
  1049. package/dist/types/components/overlays/au-menu-item/index.d.ts +2 -0
  1050. package/dist/types/components/overlays/au-popover/au-popover.constants.d.ts +33 -0
  1051. package/dist/types/components/overlays/au-popover/au-popover.d.ts +28 -0
  1052. package/dist/types/components/overlays/au-popover/au-popover.types.d.ts +10 -0
  1053. package/dist/types/components/overlays/au-popover/index.d.ts +3 -0
  1054. package/dist/types/components/overlays/au-tooltip/au-tooltip.constants.d.ts +28 -0
  1055. package/dist/types/components/overlays/au-tooltip/au-tooltip.d.ts +80 -0
  1056. package/dist/types/components/overlays/au-tooltip/index.d.ts +3 -0
  1057. package/dist/types/components/overlays/internal/menu.d.ts +34 -0
  1058. package/dist/types/components/overlays/internal/popover-controller.d.ts +102 -0
  1059. package/dist/types/components/overlays/internal/typeahead.d.ts +17 -0
  1060. package/dist/types/components/primitives/au-icon/au-icon.constants.d.ts +5 -0
  1061. package/dist/types/components/primitives/au-icon/au-icon.d.ts +37 -0
  1062. package/dist/types/components/primitives/au-icon/au-icon.types.d.ts +13 -0
  1063. package/dist/types/components/primitives/au-icon/core-icons.d.ts +9 -0
  1064. package/dist/types/components/primitives/au-icon/icon-loader.d.ts +8 -0
  1065. package/dist/types/components/primitives/au-icon/index.d.ts +3 -0
  1066. package/dist/types/components.d.ts +5131 -0
  1067. package/dist/types/foundations/constants/constants.generated.d.mts +136 -0
  1068. package/dist/types/foundations/constants/index.d.ts +3 -0
  1069. package/dist/types/foundations/constants/resolve-size.d.ts +5 -0
  1070. package/dist/types/foundations/icons/autoload.d.ts +9 -0
  1071. package/dist/types/foundations/icons/icon-autoload-hook.d.ts +14 -0
  1072. package/dist/types/foundations/icons/icon-registry.d.ts +11 -0
  1073. package/dist/types/foundations/icons/icon-sizes.d.ts +8 -0
  1074. package/dist/types/foundations/icons/icon-slug.d.ts +6 -0
  1075. package/dist/types/foundations/icons/icon.constants.d.ts +14 -0
  1076. package/dist/types/foundations/icons/icon.constants.generated.d.ts +2281 -0
  1077. package/dist/types/foundations/icons/icon.types.d.ts +21 -0
  1078. package/dist/types/foundations/icons/index.d.ts +5 -0
  1079. package/dist/types/foundations/icons/mdi-map.d.ts +92 -0
  1080. package/dist/types/foundations/icons/register-lucide-icons.d.ts +14 -0
  1081. package/dist/types/foundations/themes/theme.d.ts +68 -0
  1082. package/dist/types/foundations/tokens/index.d.ts +4 -0
  1083. package/dist/types/foundations/tokens/tokens.generated.d.mts +199 -0
  1084. package/dist/types/index.d.ts +3 -0
  1085. package/dist/types/integrations/basics/index.d.ts +2 -0
  1086. package/dist/types/integrations/basics/is-plain-object.d.ts +1 -0
  1087. package/dist/types/integrations/flux/index.d.ts +2 -0
  1088. package/dist/types/integrations/flux/loader.d.ts +21 -0
  1089. package/dist/types/integrations/flux/provide.d.ts +12 -0
  1090. package/dist/types/integrations/flux/registry.d.ts +25 -0
  1091. package/dist/types/shared/anchored/anchor-position.d.ts +43 -0
  1092. package/dist/types/shared/anchored/js-positioning.d.ts +36 -0
  1093. package/dist/types/shared/anchored/popover-support.d.ts +15 -0
  1094. package/dist/types/shared/clipboard/clipboard.d.ts +13 -0
  1095. package/dist/types/shared/clipboard/copy-procedure.d.ts +17 -0
  1096. package/dist/types/shared/clipboard/copy-types.d.ts +33 -0
  1097. package/dist/types/shared/focus/deep-active-element.d.ts +2 -0
  1098. package/dist/types/shared/focus/index.d.ts +1 -0
  1099. package/dist/types/shared/form-control/attributes.d.ts +11 -0
  1100. package/dist/types/shared/form-control/checkable.d.ts +5 -0
  1101. package/dist/types/shared/form-control/control-id.d.ts +7 -0
  1102. package/dist/types/shared/form-control/described-by.d.ts +2 -0
  1103. package/dist/types/shared/form-control/form-control-controller.d.ts +40 -0
  1104. package/dist/types/shared/form-control/group-validity.d.ts +5 -0
  1105. package/dist/types/shared/form-control/host-events.d.ts +13 -0
  1106. package/dist/types/shared/form-control/index.d.ts +11 -0
  1107. package/dist/types/shared/form-control/initial-value.d.ts +5 -0
  1108. package/dist/types/shared/form-control/restore.d.ts +4 -0
  1109. package/dist/types/shared/form-control/validation-message.d.ts +11 -0
  1110. package/dist/types/shared/live-announcer/announce-queue.d.ts +51 -0
  1111. package/dist/types/shared/live-announcer/announce-timing.d.ts +12 -0
  1112. package/dist/types/shared/live-announcer/index.d.ts +2 -0
  1113. package/dist/types/shared/live-announcer/live-announcer.d.ts +31 -0
  1114. package/dist/types/shared/live-announcer/public.d.ts +7 -0
  1115. package/dist/types/shared/modal-placement.d.ts +14 -0
  1116. package/dist/types/shared/modal-target.d.ts +22 -0
  1117. package/dist/types/shared/navigation/index.d.ts +4 -0
  1118. package/dist/types/shared/navigation/link-state.d.ts +34 -0
  1119. package/dist/types/shared/navigation/navigation.d.ts +28 -0
  1120. package/dist/types/shared/observers/index.d.ts +42 -0
  1121. package/dist/types/shared/roving-focus/index.d.ts +3 -0
  1122. package/dist/types/shared/roving-focus/item-update.d.ts +8 -0
  1123. package/dist/types/shared/roving-focus/roving.d.ts +22 -0
  1124. package/dist/types/shared/warn-once.d.ts +5 -0
  1125. package/dist/types/stencil-public-runtime.d.ts +1879 -0
  1126. package/dist/types/vue.d.ts +75 -0
  1127. package/dist/utilities/base.css +3160 -0
  1128. package/dist/utilities/responsive.css +11165 -0
  1129. package/dist/utilities.css +14326 -0
  1130. package/loader/cdn.js +1 -0
  1131. package/loader/index.cjs.js +1 -0
  1132. package/loader/index.d.ts +24 -0
  1133. package/loader/index.es2017.js +1 -0
  1134. package/loader/index.js +2 -0
  1135. package/package.json +545 -4
@@ -0,0 +1,676 @@
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-IAjNBWYI.js';
3
+ import { d as deepActiveElement } from './deep-active-element-C-bRwiWx.js';
4
+ import { o as observeSize, a as observeMutations } from './index-JU60IJxn.js';
5
+ import { w as warnOncePerDocument } from './warn-once-Ci-XzGE3.js';
6
+
7
+ /** Constants and types of the clipboard service. Public through `clipboard.ts`. */
8
+ const COPY_EVENT = 'au-copy';
9
+ const COPY_METHOD = {
10
+ clipboardApi: 'clipboard-api',
11
+ execCommand: 'exec-command',
12
+ none: 'none',
13
+ };
14
+ const COPY_FAILURE_REASON = {
15
+ invalid: 'invalid',
16
+ empty: 'empty',
17
+ noDocument: 'no-document',
18
+ unsupported: 'unsupported'};
19
+
20
+ /** The real environment, read lazily so that importing the module touches no global. */
21
+ function defaultClipboardEnvironment() {
22
+ const scope = globalThis;
23
+ let clipboard;
24
+ try {
25
+ clipboard = scope.navigator?.clipboard;
26
+ }
27
+ catch {
28
+ clipboard = undefined;
29
+ }
30
+ return { document: scope.document, clipboard, isSecureContext: scope.isSecureContext };
31
+ }
32
+ const failure = (reason, error) => error === undefined ? { ok: false, reason } : { ok: false, reason, error };
33
+ const nameOf = (error) => typeof error === 'object' && error !== null ? error.name : undefined;
34
+ const isDenial = (error) => nameOf(error) === 'NotAllowedError' || nameOf(error) === 'SecurityError';
35
+ /** Dispatches `au-copy` once, on a connected target or the document. It never throws. */
36
+ function dispatchResult(doc, target, result) {
37
+ try {
38
+ const Custom = doc.createEvent('CustomEvent').constructor;
39
+ const event = new Custom(COPY_EVENT, {
40
+ bubbles: true,
41
+ composed: true,
42
+ cancelable: false,
43
+ detail: result,
44
+ });
45
+ (target?.isConnected ? target : doc).dispatchEvent(event);
46
+ }
47
+ catch {
48
+ // A failing listener or an unusual document must not turn a result into a throw.
49
+ }
50
+ }
51
+ function saveState(doc) {
52
+ const active = deepActiveElement(doc);
53
+ let input;
54
+ const tag = active?.tagName.toLowerCase();
55
+ if (tag === 'input' || tag === 'textarea') {
56
+ try {
57
+ const field = active;
58
+ if (field.selectionStart !== null && field.selectionEnd !== null) {
59
+ input = {
60
+ start: field.selectionStart,
61
+ end: field.selectionEnd,
62
+ direction: (field.selectionDirection ?? 'none'),
63
+ };
64
+ }
65
+ }
66
+ catch {
67
+ // Some input types throw when their selection is read.
68
+ }
69
+ }
70
+ const ranges = [];
71
+ try {
72
+ const selection = doc.getSelection?.();
73
+ for (let index = 0; selection && index < selection.rangeCount; index += 1) {
74
+ ranges.push(selection.getRangeAt(index).cloneRange());
75
+ }
76
+ }
77
+ catch {
78
+ // A document without selection support restores nothing.
79
+ }
80
+ return { active, input, ranges };
81
+ }
82
+ function restoreState(doc, saved) {
83
+ try {
84
+ // The document ranges go first: in Chromium, `removeAllRanges()` and `addRange()` also reset the
85
+ // selection of a focused `input` or `textarea`, so doing them last would lose it (AC-6.F12).
86
+ const selection = doc.getSelection?.();
87
+ if (selection) {
88
+ selection.removeAllRanges();
89
+ for (const range of saved.ranges)
90
+ selection.addRange(range);
91
+ }
92
+ const { active } = saved;
93
+ if (active && active.isConnected && active !== doc.body) {
94
+ active.focus({ preventScroll: true });
95
+ if (saved.input) {
96
+ try {
97
+ active.setSelectionRange(saved.input.start, saved.input.end, saved.input.direction);
98
+ }
99
+ catch {
100
+ // The element no longer accepts a selection.
101
+ }
102
+ }
103
+ }
104
+ else {
105
+ doc.activeElement?.blur?.();
106
+ }
107
+ }
108
+ catch {
109
+ // A failed restore never changes the result.
110
+ }
111
+ }
112
+ function createTextarea(doc, text) {
113
+ const textarea = doc.createElement('textarea');
114
+ textarea.value = text;
115
+ textarea.setAttribute('readonly', '');
116
+ textarea.setAttribute('aria-hidden', 'true');
117
+ textarea.setAttribute('tabindex', '-1');
118
+ textarea.style.cssText =
119
+ 'position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; padding: 0; border: 0; margin: 0; opacity: 0; pointer-events: none; font-size: 12pt';
120
+ return textarea;
121
+ }
122
+ /** The `execCommand('copy')` fallback (spec section 2.3, step 5). It never throws. */
123
+ function fallbackCopy(doc, text) {
124
+ if (typeof doc.execCommand !== 'function' || !doc.body)
125
+ return failure('unsupported');
126
+ const saved = saveState(doc);
127
+ const textarea = createTextarea(doc, text);
128
+ try {
129
+ const placement = resolvePlacement(doc);
130
+ if (!placement)
131
+ return failure('unsupported');
132
+ appendPlaced(doc, textarea, placement, 'clipboard');
133
+ textarea.focus({ preventScroll: true });
134
+ textarea.select();
135
+ textarea.setSelectionRange(0, text.length);
136
+ // An inert textarea (under a modal that cannot hold it) takes no focus, and `execCommand` would
137
+ // report success without copying anything (spike FS7).
138
+ if (deepActiveElement(doc) !== textarea)
139
+ return failure('failed');
140
+ try {
141
+ return doc.execCommand('copy') ? { ok: true } : failure('denied');
142
+ }
143
+ catch (error) {
144
+ return failure(isDenial(error) ? 'denied' : 'failed', error);
145
+ }
146
+ }
147
+ catch (error) {
148
+ return failure('failed', error);
149
+ }
150
+ finally {
151
+ textarea.remove();
152
+ restoreState(doc, saved);
153
+ }
154
+ }
155
+ /**
156
+ * The copy procedure (spec section 2.3) with an injectable environment. It never rejects and never
157
+ * throws, and it calls `writeText` synchronously so that the caller's user activation is still
158
+ * present (F4). The result is dispatched as `au-copy` before the promise resolves.
159
+ */
160
+ function runCopy(env, text, options = {}) {
161
+ const doc = env.document;
162
+ const finish = (result) => {
163
+ if (doc)
164
+ dispatchResult(doc, options.target, result);
165
+ return result;
166
+ };
167
+ const none = (reason) => Promise.resolve(finish({ ok: false, method: COPY_METHOD.none, reason }));
168
+ if (typeof text !== 'string')
169
+ return none(COPY_FAILURE_REASON.invalid);
170
+ if (text === '')
171
+ return none(COPY_FAILURE_REASON.empty);
172
+ if (!doc)
173
+ return none(COPY_FAILURE_REASON.noDocument);
174
+ const { clipboard } = env;
175
+ if (clipboard && typeof clipboard.writeText === 'function' && env.isSecureContext !== false) {
176
+ let attempt;
177
+ try {
178
+ attempt = Promise.resolve(clipboard.writeText(text));
179
+ }
180
+ catch (error) {
181
+ attempt = Promise.reject(error);
182
+ }
183
+ return attempt.then(() => finish({ ok: true, method: COPY_METHOD.clipboardApi }), (error) => {
184
+ const outcome = fallbackCopy(doc, text);
185
+ if (outcome.ok)
186
+ return finish({ ok: true, method: COPY_METHOD.execCommand });
187
+ return finish({
188
+ ok: false,
189
+ method: COPY_METHOD.execCommand,
190
+ reason: nameOf(error) === 'NotAllowedError' ? 'denied' : 'failed',
191
+ error,
192
+ });
193
+ });
194
+ }
195
+ const outcome = fallbackCopy(doc, text);
196
+ if (outcome.ok)
197
+ return Promise.resolve(finish({ ok: true, method: COPY_METHOD.execCommand }));
198
+ const reason = outcome.reason;
199
+ const result = reason === COPY_FAILURE_REASON.unsupported
200
+ ? { ok: false, method: COPY_METHOD.none, reason }
201
+ : outcome.error === undefined
202
+ ? { ok: false, method: COPY_METHOD.execCommand, reason }
203
+ : { ok: false, method: COPY_METHOD.execCommand, reason, error: outcome.error };
204
+ return Promise.resolve(finish(result));
205
+ }
206
+
207
+ /**
208
+ * Copy `text` to the clipboard. It never rejects and never throws: the promise always resolves to a
209
+ * `CopyResult`. Call it from a user gesture (a click handler), because browsers require one.
210
+ *
211
+ * It uses `navigator.clipboard.writeText` when it can, and falls back to `execCommand('copy')` on a
212
+ * hidden textarea when the async API is missing or was rejected. It dispatches `au-copy` once, on
213
+ * `options.target` when that is a connected element, else on `document`. Whitespace is copied
214
+ * untrimmed. It announces nothing: the caller announces its own localized text.
215
+ */
216
+ function copyText(text, options) {
217
+ return runCopy(defaultClipboardEnvironment(), text, options);
218
+ }
219
+
220
+ /** Closed set of token scopes that have a published part name and a default color (spec D6). */
221
+ /** How long the copy feedback (state, status text and icon) stays, in milliseconds. */
222
+ const CODE_BLOCK_FEEDBACK_DURATION = 2000;
223
+ /** Code longer than this (UTF-16 units) is never passed to the highlighter (spec D14). */
224
+ const CODE_BLOCK_HIGHLIGHT_MAX_LENGTH = 100000;
225
+ /** The dedupe key of the copy announcement (foundations F11). */
226
+ const CODE_BLOCK_ANNOUNCE_KEY = 'au-code-block:copy';
227
+ const CODE_BLOCK_DEFAULT_COPY_LABEL = 'Copy';
228
+ const CODE_BLOCK_DEFAULT_COPIED_LABEL = 'Copied';
229
+ const CODE_BLOCK_DEFAULT_COPY_FAILED_LABEL = 'Copy failed';
230
+ const CODE_BLOCK_DEFAULT_CODE_LABEL = 'Code';
231
+
232
+ const ITEM = /^(\d+)(?:\s*-\s*(\d+))?$/;
233
+ /**
234
+ * Parses the `highlight-lines` grammar (spec section 3.3): `N` and `N-M` items separated by commas,
235
+ * 1-based over the normalized code. Empty items and numbers beyond `lineCount` are ignored
236
+ * silently, anything else that does not parse is listed in `invalid`. A range is clamped to
237
+ * `lineCount` before it is expanded.
238
+ */
239
+ function parseHighlightLines(value, lineCount) {
240
+ const lines = new Set();
241
+ const invalid = [];
242
+ if (typeof value !== 'string' || value.trim() === '')
243
+ return { lines, invalid };
244
+ for (const raw of value.split(',')) {
245
+ const item = raw.trim();
246
+ if (item === '')
247
+ continue;
248
+ const match = ITEM.exec(item);
249
+ const first = match ? Number(match[1]) : NaN;
250
+ const last = match ? Number(match[2] ?? match[1]) : NaN;
251
+ if (!match || first < 1 || first > last) {
252
+ invalid.push(item);
253
+ continue;
254
+ }
255
+ const to = Math.min(last, lineCount);
256
+ for (let line = first; line <= to; line += 1)
257
+ lines.add(line);
258
+ }
259
+ return { lines, invalid };
260
+ }
261
+
262
+ /** A token scope is used (as `token-<scope>`) only when it matches this pattern (spec D6). */
263
+ const CODE_TOKEN_SCOPE_PATTERN = /^[a-z][a-z0-9-]{0,31}$/;
264
+ /**
265
+ * Validates a highlighter result against the code it was asked about and splits it into lines
266
+ * (spec section 3.2, step 6). `reason: 'none'` is the highlighter declining (not a failure). Token
267
+ * text is only ever kept as a string; a scope that fails D6 is dropped, like an absent one.
268
+ */
269
+ function toHighlightedLines(result, code) {
270
+ if (result === null || result === undefined)
271
+ return { ok: false, reason: 'none' };
272
+ if (!Array.isArray(result))
273
+ return { ok: false, reason: 'not-array' };
274
+ const tokens = [];
275
+ let joined = '';
276
+ for (const item of result) {
277
+ if (typeof item !== 'object' || item === null)
278
+ return { ok: false, reason: 'invalid-token' };
279
+ const { text, scope } = item;
280
+ if (typeof text !== 'string')
281
+ return { ok: false, reason: 'invalid-token' };
282
+ joined += text;
283
+ if (text === '')
284
+ continue;
285
+ tokens.push(typeof scope === 'string' && CODE_TOKEN_SCOPE_PATTERN.test(scope)
286
+ ? { text, scope }
287
+ : { text });
288
+ }
289
+ if (joined !== code)
290
+ return { ok: false, reason: 'mismatch' };
291
+ const lines = [[]];
292
+ for (const token of tokens) {
293
+ const parts = token.text.split('\n');
294
+ parts.forEach((part, index) => {
295
+ if (index > 0)
296
+ lines.push([]);
297
+ if (part === '')
298
+ return;
299
+ lines[lines.length - 1].push(token.scope === undefined ? { text: part } : { text: part, scope: token.scope });
300
+ });
301
+ }
302
+ return { ok: true, lines };
303
+ }
304
+
305
+ const isBlank = (line) => line.trim() === '';
306
+ /** The longest string that every non-blank line starts with, taken from leading whitespace only. */
307
+ function commonIndent(lines) {
308
+ let prefix;
309
+ for (const line of lines) {
310
+ if (isBlank(line))
311
+ continue;
312
+ const indent = /^\s*/.exec(line)?.[0] ?? '';
313
+ if (prefix === undefined) {
314
+ prefix = indent;
315
+ continue;
316
+ }
317
+ let length = 0;
318
+ while (length < prefix.length && length < indent.length && prefix[length] === indent[length]) {
319
+ length += 1;
320
+ }
321
+ prefix = prefix.slice(0, length);
322
+ if (prefix === '')
323
+ break;
324
+ }
325
+ return prefix ?? '';
326
+ }
327
+ /**
328
+ * The one normalization of the code a block displays and copies (spec D3). CRLF and CR become LF,
329
+ * whitespace-only lines are removed at both edges (so there is no trailing newline) and, with
330
+ * `dedent`, the exact common leading-whitespace string of the non-blank lines is removed. Anything
331
+ * that is not a string is `''`. It is idempotent.
332
+ */
333
+ function normalizeCode(text, options) {
334
+ if (typeof text !== 'string')
335
+ return '';
336
+ const lines = text.replace(/\r\n?/g, '\n').split('\n');
337
+ let start = 0;
338
+ let end = lines.length;
339
+ while (start < end && isBlank(lines[start]))
340
+ start += 1;
341
+ while (end > start && isBlank(lines[end - 1]))
342
+ end -= 1;
343
+ const kept = lines.slice(start, end);
344
+ if (!options.dedent)
345
+ return kept.join('\n');
346
+ const indent = commonIndent(kept);
347
+ if (indent === '')
348
+ return kept.join('\n');
349
+ return kept
350
+ .map((line) => (line.startsWith(indent) ? line.slice(indent.length) : line))
351
+ .join('\n');
352
+ }
353
+
354
+ const LANGUAGE_CLASS = /^lang(?:uage)?-(.+)$/;
355
+ const childElement = (parent, tag) => Array.from(parent.children).find((child) => child.localName === tag);
356
+ /** The first class token that names a language (`language-ts`, `lang-py`), without its prefix. */
357
+ function languageOf(element) {
358
+ if (!element)
359
+ return '';
360
+ for (const token of Array.from(element.classList)) {
361
+ const match = LANGUAGE_CLASS.exec(token);
362
+ if (match?.[1])
363
+ return match[1];
364
+ }
365
+ return '';
366
+ }
367
+ /**
368
+ * Reads the light-DOM source of a block (spec D2): the first `pre` element child's text, else the
369
+ * first `code` element child's, else the host's own text. The language is the first class that
370
+ * matches `language-*` or `lang-*` on the source `code`, then on the source `pre`. The text is not
371
+ * normalized here.
372
+ */
373
+ function readLightSource(host) {
374
+ const pre = childElement(host, 'pre');
375
+ if (pre) {
376
+ const code = pre.querySelector('code');
377
+ return { text: pre.textContent ?? '', language: languageOf(code) || languageOf(pre) };
378
+ }
379
+ const code = childElement(host, 'code');
380
+ if (code)
381
+ return { text: code.textContent ?? '', language: languageOf(code) };
382
+ return { text: host.textContent ?? '', language: '' };
383
+ }
384
+
385
+ const auCodeBlockCss = () => `:host{--_background:var( --aurora-code-block-background, var(--aurora-color-code-surface, var(--aurora-color-canvas, #fff)) );--_color:var( --aurora-code-block-color, var(--aurora-color-code-text, var(--aurora-color-text, #1f2937)) );--_border-color:var( --aurora-code-block-border-color, var(--aurora-color-code-border, var(--aurora-color-border, #d4d9e1)) );--_padding:var(--aurora-code-block-padding, var(--aurora-spacing-medium, 1rem));--_muted:var(--aurora-color-code-muted, var(--aurora-color-text-muted, #5b6472));--_header-color:var(--aurora-code-block-header-color, var(--_muted));--_highlight-background:var( --aurora-code-block-highlight-background, color-mix(in srgb, var(--aurora-color-primary, #2458c6) 8%, var(--_background)) );--_highlight-bar:var( --aurora-code-block-highlight-bar-color, var(--aurora-color-primary, #2458c6) );--_focus-color:var(--aurora-focus-ring-color, var(--aurora-color-focus, #2458c6));--_duration:var(--aurora-motion-duration-fast, 150ms);display:block;min-inline-size:0}[part=base]{background:var(--_background);border:1px solid var(--_border-color);border-radius:var(--aurora-code-block-radius, var(--aurora-radius-md, 0.5rem));box-sizing:border-box;color:var(--_color);overflow:hidden}[part=header]{align-items:center;background:var(--aurora-code-block-header-background, var(--_background));border-block-end:1px solid var(--_border-color);color:var(--_header-color);display:flex;font-family:var(--aurora-font-family-body, system-ui, sans-serif);font-size:0.8125rem;gap:0.5rem;justify-content:flex-end;line-height:1.25rem;padding:0.375rem var(--_padding)}[part=label]{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere}[part=copy-status]{flex:none;transition:opacity var(--_duration)}[part=copy-status]:empty{display:none}[part=copy-button]{margin-inline-start:0}[part=copy-button]{align-items:center;appearance:none;background:transparent;border:1px solid var(--_border-color);border-radius:var(--aurora-radius-sm, 0.375rem);box-sizing:border-box;color:var(--_header-color);cursor:pointer;display:inline-flex;flex:none;font:inherit;gap:0.375rem;min-block-size:1.75rem;padding:0.125rem 0.5rem;transition:background-color var(--_duration), color var(--_duration)}[part=copy-button]:hover{background:color-mix(in srgb, currentcolor 10%, transparent)}[part=copy-button]:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--_focus-color);outline-offset:var(--aurora-focus-ring-offset, 2px)}[part=copy-button] au-icon{transition:opacity var(--_duration)}[part=scroller]{box-sizing:border-box;direction:ltr;max-block-size:var(--aurora-code-block-max-block-size, none);overflow:auto;padding-block:var(--_padding)}[part=scroller]:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--_focus-color);outline-offset:calc(-1 * var(--aurora-focus-ring-width, 2px))}[part=pre]{box-sizing:border-box;font-family:var(--aurora-code-block-font-family, var(--aurora-font-family-code, var(--aurora-font-family-mono, ui-monospace, monospace)));font-size:var(--aurora-code-block-font-size, var(--aurora-font-size-code, var(--aurora-font-size-sm, 0.875rem)));background:var(--_background);inline-size:max-content;line-height:var(--aurora-code-block-line-height, var(--aurora-line-height-normal, 1.5));margin:0;min-inline-size:100%;tab-size:var(--aurora-code-block-tab-size, 2);white-space:pre}:host([wrap]) [part=pre]{inline-size:auto;overflow-wrap:anywhere;white-space:pre-wrap}[part=code]{display:block;font:inherit}[part~=line]{border-inline-start:0.1875rem solid transparent;padding-inline:var(--_padding)}mark[part~=line-highlighted]{background:var(--_highlight-background);border-inline-start-color:var(--_highlight-bar);box-sizing:border-box;color:inherit;display:inline-block;min-inline-size:100%;vertical-align:top}:host([line-numbers]) [part=code]{--_gutter:calc(var(--_aurora-code-block-digits, 1) * 1ch + 1.5ch);counter-reset:aurora-code-line}:host([line-numbers]) [part~=line]{counter-increment:aurora-code-line}:host([wrap][line-numbers]) [part~=line]{box-sizing:border-box;display:inline-block;max-inline-size:100%;padding-inline-start:calc(var(--_padding) + var(--_gutter));text-indent:calc(-1 * var(--_gutter));vertical-align:top}:host([line-numbers]) [part~=line]::before{color:var(--aurora-code-block-line-number-color, var(--_muted));content:counter(aurora-code-line);content:counter(aurora-code-line)/"";display:inline-block;font-style:normal;inline-size:calc(var(--_aurora-code-block-digits, 1) * 1ch);margin-inline-end:1.5ch;text-align:end;text-indent:0;user-select:none}[part~=token-comment]{color:var(--aurora-code-block-token-comment, var(--aurora-color-text-muted, #5b6472))}[part~=token-keyword]{color:var(--aurora-code-block-token-keyword, var(--aurora-color-primary, #2458c6))}[part~=token-tag]{color:var(--aurora-code-block-token-tag, var(--aurora-color-primary, #2458c6))}[part~=token-string]{color:var(--aurora-code-block-token-string, var(--aurora-color-success, #1b7f3b))}[part~=token-inserted]{color:var(--aurora-code-block-token-inserted, var(--aurora-color-success, #1b7f3b))}[part~=token-number]{color:var(--aurora-code-block-token-number, var(--aurora-color-warning, #8a5a00))}[part~=token-constant]{color:var(--aurora-code-block-token-constant, var(--aurora-color-warning, #8a5a00))}[part~=token-regexp]{color:var(--aurora-code-block-token-regexp, var(--aurora-color-warning, #8a5a00))}[part~=token-attribute]{color:var(--aurora-code-block-token-attribute, var(--aurora-color-warning, #8a5a00))}[part~=token-deleted]{color:var(--aurora-code-block-token-deleted, var(--aurora-color-danger, #b3261e))}[part~=token-function]{color:var(--aurora-code-block-token-function, inherit)}[part~=token-type]{color:var(--aurora-code-block-token-type, inherit)}[part~=token-builtin]{color:var(--aurora-code-block-token-builtin, inherit)}[part~=token-variable]{color:var(--aurora-code-block-token-variable, inherit)}[part~=token-property]{color:var(--aurora-code-block-token-property, inherit)}[part~=token-operator]{color:var(--aurora-code-block-token-operator, inherit)}[part~=token-punctuation]{color:var(--aurora-code-block-token-punctuation, inherit)}[part~=token-meta]{color:var(--aurora-code-block-token-meta, inherit)}[part~=token-comment]{font-style:italic}@media (forced-colors: active){[part=base],[part=header]{border-color:CanvasText}[part=copy-button]{background:ButtonFace;border-color:ButtonText;color:ButtonText}[part=copy-button]:focus-visible,[part=scroller]:focus-visible{outline-color:Highlight}[part~=token]{color:inherit}mark[part~=line-highlighted]{background:Mark;border-inline-start-color:CanvasText;color:MarkText}:host([line-numbers]) [part~=line]::before{color:GrayText}}@media (prefers-reduced-motion: reduce){[part=copy-status],[part=copy-button],[part=copy-button] au-icon{transition-duration:0s}}@media print{[part=scroller]{max-block-size:none;overflow:visible}[part=pre]{inline-size:auto;overflow-wrap:anywhere;white-space:pre-wrap}[part=copy-button],[part=copy-status]{display:none}}`;
386
+
387
+ const COPY_ICON = 'copy';
388
+ const COPIED_ICON = 'copy-check';
389
+ const COPY_FAILED_ICON = 'circle-x';
390
+ const LABEL_ID = 'label';
391
+ const REASON = {
392
+ 'not-array': 'the result is not an array of tokens',
393
+ 'invalid-token': 'a token is not an object with a string "text"',
394
+ mismatch: 'the token text does not add up to the code',
395
+ };
396
+ /** A trimmed non-blank string, else the fallback. */
397
+ const textOr = (value, fallback) => {
398
+ const text = typeof value === 'string' ? value.trim() : '';
399
+ return text === '' ? fallback : text;
400
+ };
401
+ const AuCodeBlock = class {
402
+ constructor(hostRef) {
403
+ registerInstance(this, hostRef);
404
+ }
405
+ get host() { return getElement(this); }
406
+ /**
407
+ * The source when it is a string (an empty string included); otherwise the light DOM is the
408
+ * source. It is declared `unknown`, not `string`: Stencil coerces a value into a `string` prop, so a
409
+ * number would arrive as text instead of being rejected. A value that is not a string is read as unset.
410
+ */
411
+ code;
412
+ /** Language name shown in the header and passed to the highlighter. Blank falls back to the light-DOM class. */
413
+ language;
414
+ /** Header caption, for example a file name. Blank shows the language instead. */
415
+ label;
416
+ /** Turns code into tokens. A JavaScript property only (no attribute). */
417
+ highlighter;
418
+ /** Shows a line-number gutter (not copied, not read by screen readers). */
419
+ lineNumbers = false;
420
+ /** Highlights lines: `1,3-5`. */
421
+ highlightLines;
422
+ /** Wraps long lines instead of scrolling horizontally. */
423
+ wrap = false;
424
+ /** Hides the copy button. */
425
+ noCopy = false;
426
+ /** Keeps the common indentation of the source. */
427
+ noDedent = false;
428
+ /** Visible text and accessible name of the copy button. */
429
+ copyLabel = CODE_BLOCK_DEFAULT_COPY_LABEL;
430
+ /** Status text and announcement after a successful copy. */
431
+ copiedLabel = CODE_BLOCK_DEFAULT_COPIED_LABEL;
432
+ /** Status text and announcement after a failed copy. */
433
+ copyFailedLabel = CODE_BLOCK_DEFAULT_COPY_FAILED_LABEL;
434
+ /** Accessible name of the scroll region when `label` is blank. */
435
+ codeLabel = CODE_BLOCK_DEFAULT_CODE_LABEL;
436
+ /** The highlighter's tokens for the current code, split into lines. Undefined means plain. */
437
+ tokenLines;
438
+ /** The copy feedback, present only while it is shown (`copy-state` on the host). */
439
+ copyState;
440
+ /** True while the scroller overflows (or still has focus after it stopped): it is then a focusable region. */
441
+ scrollable = false;
442
+ stopMutations;
443
+ loaded = false;
444
+ /** The effective source of the current render (spec D2, D3, D4). */
445
+ view = { code: '', language: '' };
446
+ marked = new Set();
447
+ /** What the last highlight run was started for. A run starts when any of them changes. */
448
+ runCode;
449
+ runLanguage = '';
450
+ runHighlighter;
451
+ runId = 0;
452
+ controller;
453
+ scroller;
454
+ codeElement;
455
+ stopSize;
456
+ scrollerFocused = false;
457
+ copySequence = 0;
458
+ feedbackTimer;
459
+ connectedCallback() {
460
+ this.observe();
461
+ if (!this.loaded)
462
+ return;
463
+ this.observeSize();
464
+ this.copyState = undefined;
465
+ forceUpdate(this);
466
+ }
467
+ disconnectedCallback() {
468
+ this.stopMutations?.();
469
+ this.stopMutations = undefined;
470
+ this.stopSize?.();
471
+ this.stopSize = undefined;
472
+ this.clearFeedbackTimer();
473
+ }
474
+ componentWillRender() {
475
+ this.warnAboutProperties();
476
+ const fromProperty = typeof this.code === 'string';
477
+ const light = fromProperty ? undefined : readLightSource(this.host);
478
+ this.view = {
479
+ code: normalizeCode(fromProperty ? this.code : light?.text, { dedent: !this.noDedent }),
480
+ language: textOr(this.language, light?.language ?? ''),
481
+ };
482
+ const parsed = parseHighlightLines(this.highlightLines, this.view.code === '' ? 0 : this.view.code.split('\n').length);
483
+ this.marked = parsed.lines;
484
+ if (parsed.invalid.length > 0) {
485
+ this.warn('highlight-lines', `Ignored invalid "highlight-lines" items: ${parsed.invalid.join(', ')}. Use numbers and ranges such as "1,3-5".`);
486
+ }
487
+ const highlighter = typeof this.highlighter === 'function' ? this.highlighter : undefined;
488
+ if (this.view.code !== this.runCode ||
489
+ this.view.language !== this.runLanguage ||
490
+ highlighter !== this.runHighlighter) {
491
+ this.runCode = this.view.code;
492
+ this.runLanguage = this.view.language;
493
+ this.runHighlighter = highlighter;
494
+ this.startRun(highlighter);
495
+ }
496
+ }
497
+ componentDidLoad() {
498
+ this.loaded = true;
499
+ this.observeSize();
500
+ }
501
+ componentDidRender() {
502
+ this.measure();
503
+ }
504
+ warn(key, message) {
505
+ warnOncePerDocument(this.host.ownerDocument, `au-code-block:${key}`, `[au-code-block] ${message}`);
506
+ }
507
+ warnAboutProperties() {
508
+ if (this.code !== undefined && this.code !== null && typeof this.code !== 'string') {
509
+ this.warn('code', `The "code" property must be a string (got ${typeof this.code}). It is ignored and the light DOM is the source.`);
510
+ }
511
+ if (this.highlighter !== undefined &&
512
+ this.highlighter !== null &&
513
+ typeof this.highlighter !== 'function') {
514
+ this.warn('highlighter-type', `The "highlighter" property must be a function (got ${typeof this.highlighter}). It is ignored.`);
515
+ }
516
+ }
517
+ /**
518
+ * Watches the scroller and the code element (wrapping, font loading and highlighting change the
519
+ * overflow without resizing the scroller, spec D11). Without `ResizeObserver` the overflow is
520
+ * measured after each render only.
521
+ */
522
+ observeSize() {
523
+ if (this.stopSize || !this.scroller || !this.codeElement)
524
+ return;
525
+ this.stopSize = observeSize([this.scroller, this.codeElement], this.measure);
526
+ }
527
+ /** The scroller is a focusable region only while it overflows; it keeps the attributes while focused. */
528
+ measure = () => {
529
+ const scroller = this.scroller;
530
+ if (!scroller)
531
+ return;
532
+ const overflows = scroller.scrollWidth > scroller.clientWidth || scroller.scrollHeight > scroller.clientHeight;
533
+ if (!overflows && this.scrollerFocused)
534
+ return;
535
+ this.scrollable = overflows;
536
+ };
537
+ handleScrollerFocus = () => {
538
+ this.scrollerFocused = true;
539
+ };
540
+ handleScrollerBlur = () => {
541
+ this.scrollerFocused = false;
542
+ this.measure();
543
+ };
544
+ clearFeedbackTimer() {
545
+ if (this.feedbackTimer === undefined)
546
+ return;
547
+ clearTimeout(this.feedbackTimer);
548
+ this.feedbackTimer = undefined;
549
+ }
550
+ /**
551
+ * Copies the normalized source (spec D7, D8). Only the latest click counts: each click takes a
552
+ * sequence number, and a result that arrives after a later click has started changes neither the
553
+ * state nor the announcement (its `au-copy` still fires, because the service owns it).
554
+ */
555
+ handleCopy = async () => {
556
+ const sequence = ++this.copySequence;
557
+ const result = await copyText(this.view.code, { target: this.host });
558
+ if (sequence !== this.copySequence || !this.host.isConnected)
559
+ return;
560
+ const copied = result.ok;
561
+ this.copyState = copied ? 'copied' : 'failed';
562
+ announce(copied
563
+ ? textOr(this.copiedLabel, CODE_BLOCK_DEFAULT_COPIED_LABEL)
564
+ : textOr(this.copyFailedLabel, CODE_BLOCK_DEFAULT_COPY_FAILED_LABEL), { key: CODE_BLOCK_ANNOUNCE_KEY }, this.host.ownerDocument);
565
+ this.clearFeedbackTimer();
566
+ this.feedbackTimer = setTimeout(() => {
567
+ this.feedbackTimer = undefined;
568
+ this.copyState = undefined;
569
+ }, CODE_BLOCK_FEEDBACK_DURATION);
570
+ };
571
+ /** One highlight run (spec section 3.2): the previous one is aborted and the code is plain meanwhile. */
572
+ startRun(highlighter) {
573
+ const id = ++this.runId;
574
+ this.controller?.abort();
575
+ this.controller = undefined;
576
+ this.tokenLines = undefined;
577
+ const { code, language } = this.view;
578
+ if (!highlighter || code === '')
579
+ return;
580
+ if (code.length > CODE_BLOCK_HIGHLIGHT_MAX_LENGTH) {
581
+ this.warn('too-long', `The code is longer than the highlight limit of ${CODE_BLOCK_HIGHLIGHT_MAX_LENGTH} characters, so it is shown without highlighting.`);
582
+ return;
583
+ }
584
+ const controller = new AbortController();
585
+ this.controller = controller;
586
+ let result;
587
+ try {
588
+ result = highlighter({ code, language, signal: controller.signal });
589
+ }
590
+ catch (error) {
591
+ this.failRun('the highlighter threw', error);
592
+ return;
593
+ }
594
+ if (typeof result?.then === 'function') {
595
+ result.then((settled) => {
596
+ if (id === this.runId)
597
+ this.settleRun(settled, code);
598
+ }, (error) => {
599
+ if (id === this.runId)
600
+ this.failRun('the highlighter rejected', error);
601
+ });
602
+ return;
603
+ }
604
+ this.settleRun(result, code);
605
+ }
606
+ settleRun(result, code) {
607
+ const outcome = toHighlightedLines(result, code);
608
+ if (outcome.ok)
609
+ this.tokenLines = outcome.lines;
610
+ else if (outcome.reason !== 'none')
611
+ this.failRun(REASON[outcome.reason]);
612
+ }
613
+ failRun(reason, error) {
614
+ this.tokenLines = undefined;
615
+ this.warn('highlighter', `The highlighter failed (${reason}); the code is shown without highlighting.${error === undefined ? '' : ` ${String(error)}`}`);
616
+ }
617
+ /** Re-reads the light DOM when it changes, but only while it is the source (spec D2). */
618
+ observe() {
619
+ if (this.stopMutations)
620
+ return;
621
+ this.stopMutations = observeMutations(this.host, () => {
622
+ if (typeof this.code !== 'string')
623
+ forceUpdate(this);
624
+ }, {
625
+ childList: true,
626
+ characterData: true,
627
+ subtree: true,
628
+ attributes: true,
629
+ attributeFilter: ['class'],
630
+ });
631
+ }
632
+ renderLines(code) {
633
+ const nodes = [];
634
+ const lines = this.tokenLines;
635
+ code.split('\n').forEach((text, index) => {
636
+ if (index > 0)
637
+ nodes.push('\n');
638
+ const segments = lines?.[index];
639
+ const content = segments
640
+ ? segments.map((segment) => segment.scope !== undefined ? (h("span", { part: `token token-${segment.scope}` }, segment.text)) : (segment.text))
641
+ : text;
642
+ nodes.push(this.marked.has(index + 1) ? (h("mark", { part: "line line-highlighted" }, content)) : (h("span", { part: "line" }, content)));
643
+ });
644
+ return nodes;
645
+ }
646
+ render() {
647
+ const { code, language } = this.view;
648
+ const caption = textOr(this.label, language);
649
+ const empty = code === '';
650
+ const showCopy = !this.noCopy && !empty;
651
+ const showHeader = caption !== '' || showCopy;
652
+ const state = this.copyState;
653
+ const statusText = state === 'copied'
654
+ ? textOr(this.copiedLabel, CODE_BLOCK_DEFAULT_COPIED_LABEL)
655
+ : state === 'failed'
656
+ ? textOr(this.copyFailedLabel, CODE_BLOCK_DEFAULT_COPY_FAILED_LABEL)
657
+ : '';
658
+ const icon = state === 'copied' ? COPIED_ICON : state === 'failed' ? COPY_FAILED_ICON : COPY_ICON;
659
+ return (h(Host, { key: '72d7b86ee19cf2ff23c3db2748833ed0bd5ef9f7', ...(empty ? { empty: '' } : {}), ...(this.tokenLines ? { highlighted: '' } : {}), ...(state ? { 'copy-state': state } : {}), ...(this.scrollable ? { scrollable: '' } : {}) }, h("div", { key: '10c5526623969495ad8176fc4e48dec5326bb824', part: "base" }, showHeader && (h("div", { key: 'f33abf3fde6c264b849d89b268cf39b77c6d95ad', part: "header" }, caption !== '' && (h("span", { key: 'd03c3a05e0cedf8aa7f3c58621c9eac2f5b4ede1', part: "label", id: LABEL_ID }, caption)), showCopy && (h("span", { key: 'dc53baa616b84b8be360937845e13945b5d2c22b', part: "copy-status", "aria-hidden": "true" }, statusText)), showCopy && (h("button", { key: 'b623ba1c7b7e64cb5a0e66a48db31fbe4241568e', part: "copy-button", type: "button", onClick: this.handleCopy, ...(caption !== '' ? { 'aria-describedby': LABEL_ID } : {}) }, h("au-icon", { key: '1cabaa5fa5f2a6979765578aae1b43ebf1dd4b86', icon: icon, decorative: true }), h("span", { key: '0bf38f09355bdb2ee2cb10ca924ec8f6062d859a', part: "copy-label" }, textOr(this.copyLabel, CODE_BLOCK_DEFAULT_COPY_LABEL)))))), h("div", { key: '79e9135ec2621bb46cf6b015f3dffeb1b2dde21f', part: "scroller", ref: (element) => {
660
+ this.scroller = element;
661
+ }, onFocus: this.handleScrollerFocus, onBlur: this.handleScrollerBlur, ...(this.scrollable
662
+ ? {
663
+ tabindex: '0',
664
+ role: 'group',
665
+ 'aria-label': textOr(this.label, textOr(this.codeLabel, CODE_BLOCK_DEFAULT_CODE_LABEL)),
666
+ }
667
+ : {}) }, h("pre", { key: '94b7beb644ceb61db252b2f63a29c3636c94255a', part: "pre", dir: "ltr" }, h("code", { key: '378c4a08db1b9b56988efaabdd40346613848972', part: "code", ref: (element) => {
668
+ this.codeElement = element;
669
+ }, style: {
670
+ '--_aurora-code-block-digits': String(code.split('\n').length).length.toString(),
671
+ }, ...(language !== '' ? { 'data-language': language } : {}) }, this.renderLines(code)))))));
672
+ }
673
+ };
674
+ AuCodeBlock.style = auCodeBlockCss();
675
+
676
+ export { AuCodeBlock as au_code_block };