@re-code/aurora 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/README.md +1 -1
  2. package/dist/aurora/aurora.esm.js +1 -1
  3. package/dist/aurora/{p-8ed72e5b.entry.js → p-01ff4d34.entry.js} +1 -1
  4. package/dist/aurora/{p-c3668073.entry.js → p-0554ffea.entry.js} +1 -1
  5. package/dist/aurora/{p-278d3434.entry.js → p-0a0a2bfe.entry.js} +1 -1
  6. package/dist/aurora/{p-e1c97234.entry.js → p-0a7e9e8e.entry.js} +1 -1
  7. package/dist/aurora/{p-c330982c.entry.js → p-1670a9bd.entry.js} +1 -1
  8. package/dist/aurora/{p-efd60427.entry.js → p-17c6de2c.entry.js} +1 -1
  9. package/dist/aurora/{p-a87dc1d3.entry.js → p-24ff90e0.entry.js} +1 -1
  10. package/dist/aurora/p-27da7b8a.entry.js +1 -0
  11. package/dist/aurora/p-380d8ebe.entry.js +1 -0
  12. package/dist/aurora/{p-a1e257c7.entry.js → p-3cfccef1.entry.js} +1 -1
  13. package/dist/aurora/{p-e72126a2.entry.js → p-4fd71d14.entry.js} +1 -1
  14. package/dist/aurora/{p-89b66c7a.entry.js → p-5606ed9c.entry.js} +1 -1
  15. package/dist/aurora/p-56fc4315.entry.js +1 -0
  16. package/dist/aurora/{p-685b9e53.entry.js → p-5a027df1.entry.js} +1 -1
  17. package/dist/aurora/{p-487df7d8.entry.js → p-5dd73182.entry.js} +1 -1
  18. package/dist/aurora/{p-17e65032.entry.js → p-62d79933.entry.js} +1 -1
  19. package/dist/aurora/p-6a1363da.entry.js +1 -0
  20. package/dist/aurora/{p-fd4e9cdd.entry.js → p-6e9c8e27.entry.js} +1 -1
  21. package/dist/aurora/{p-31a86367.entry.js → p-742abb2c.entry.js} +1 -1
  22. package/dist/aurora/{p-40bb52c3.entry.js → p-7a9bc20f.entry.js} +1 -1
  23. package/dist/aurora/{p-35edd036.entry.js → p-7cc6bb71.entry.js} +1 -1
  24. package/dist/aurora/{p-689f37db.entry.js → p-7fa0ee48.entry.js} +1 -1
  25. package/dist/aurora/{p-ee2ea46e.entry.js → p-815611f9.entry.js} +1 -1
  26. package/dist/aurora/{p-a8e984e1.entry.js → p-8800c466.entry.js} +1 -1
  27. package/dist/aurora/{p-5d2a88ca.entry.js → p-9e9377b5.entry.js} +1 -1
  28. package/dist/aurora/p-DMeUBbqF.js +7 -0
  29. package/dist/aurora/{p-DXbj-yic.js → p-DNpzZvak.js} +1 -1
  30. package/dist/aurora/p-DjW6oMgu.js +7 -0
  31. package/dist/aurora/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
  32. package/dist/aurora/p-NvNa2Iiu.js +1 -0
  33. package/dist/aurora/p-a376a248.entry.js +1 -0
  34. package/dist/aurora/{p-0608e910.entry.js → p-a63d1f80.entry.js} +1 -1
  35. package/dist/aurora/p-b0ebcc51.entry.js +1 -0
  36. package/dist/aurora/p-be98a1d7.entry.js +1 -0
  37. package/dist/aurora/{p-ed998b0c.entry.js → p-bf922703.entry.js} +1 -1
  38. package/dist/aurora/{p-ee4475a6.entry.js → p-c1422894.entry.js} +1 -1
  39. package/dist/aurora/{p-372a3416.entry.js → p-c2164ffe.entry.js} +1 -1
  40. package/dist/aurora/{p-2a16d544.entry.js → p-cb63ca43.entry.js} +1 -1
  41. package/dist/aurora/p-cc1015fe.entry.js +1 -0
  42. package/dist/aurora/{p-88b72de7.entry.js → p-cf16464e.entry.js} +1 -1
  43. package/dist/aurora/p-cfa0166b.entry.js +1 -0
  44. package/dist/aurora/{p-e7c81a6b.entry.js → p-d85e1d60.entry.js} +1 -1
  45. package/dist/aurora/{p-64229ad2.entry.js → p-f176be8b.entry.js} +1 -1
  46. package/dist/aurora/{p-bd1f6486.entry.js → p-f3383f3c.entry.js} +1 -1
  47. package/dist/aurora/p-f5d3aefa.entry.js +1 -0
  48. package/dist/aurora/{p-038b2190.entry.js → p-f85687a5.entry.js} +1 -1
  49. package/dist/aurora/{p-546a2f69.entry.js → p-fe143404.entry.js} +1 -1
  50. package/dist/cjs/au-alert.cjs.entry.js +1 -1
  51. package/dist/cjs/au-breadcrumb-item.cjs.entry.js +1 -1
  52. package/dist/cjs/au-breadcrumb.cjs.entry.js +1 -1
  53. package/dist/cjs/au-checkbox.cjs.entry.js +4 -4
  54. package/dist/cjs/au-combobox.cjs.entry.js +6 -6
  55. package/dist/cjs/au-container.cjs.entry.js +1 -1
  56. package/dist/cjs/au-dialog.cjs.entry.js +4 -4
  57. package/dist/cjs/au-divider.cjs.entry.js +1 -1
  58. package/dist/cjs/au-field.cjs.entry.js +1 -1
  59. package/dist/cjs/{au-icon-D0L9Wwy0.js → au-icon-0-khGfX2.js} +1 -1
  60. package/dist/cjs/au-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/au-input.cjs.entry.js +6 -6
  62. package/dist/cjs/au-kbd.cjs.entry.js +355 -0
  63. package/dist/cjs/au-list-item.cjs.entry.js +195 -0
  64. package/dist/cjs/au-list.cjs.entry.js +78 -0
  65. package/dist/cjs/au-menu-item.cjs.entry.js +1 -1
  66. package/dist/cjs/au-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/au-nav-link.cjs.entry.js +1 -1
  68. package/dist/cjs/au-navbar.cjs.entry.js +4 -4
  69. package/dist/cjs/au-number-input.cjs.entry.js +4 -4
  70. package/dist/cjs/au-popover.cjs.entry.js +1 -1
  71. package/dist/cjs/au-progress.cjs.entry.js +107 -0
  72. package/dist/cjs/au-radio-group.cjs.entry.js +3 -3
  73. package/dist/cjs/au-radio.cjs.entry.js +1 -1
  74. package/dist/cjs/au-segmented-control.cjs.entry.js +3 -3
  75. package/dist/cjs/au-segmented-option.cjs.entry.js +1 -1
  76. package/dist/cjs/au-select.cjs.entry.js +4 -4
  77. package/dist/cjs/au-sidebar-nav.cjs.entry.js +1 -1
  78. package/dist/cjs/au-skeleton.cjs.entry.js +106 -0
  79. package/dist/cjs/au-slider.cjs.entry.js +3 -3
  80. package/dist/cjs/au-splitter.cjs.entry.js +2 -2
  81. package/dist/cjs/au-stat.cjs.entry.js +262 -0
  82. package/dist/cjs/au-switch.cjs.entry.js +4 -4
  83. package/dist/cjs/au-tab-panel.cjs.entry.js +1 -1
  84. package/dist/cjs/au-tab.cjs.entry.js +1 -1
  85. package/dist/cjs/au-table.cjs.entry.js +337 -0
  86. package/dist/cjs/au-tabs.cjs.entry.js +4 -4
  87. package/dist/cjs/au-textarea.cjs.entry.js +3 -3
  88. package/dist/cjs/au-toast-region.cjs.entry.js +1 -1
  89. package/dist/cjs/au-toast.cjs.entry.js +1 -1
  90. package/dist/cjs/au-toc.cjs.entry.js +1 -1
  91. package/dist/cjs/au-tooltip.cjs.entry.js +1 -1
  92. package/dist/cjs/aurora.cjs.js +1 -1
  93. package/dist/cjs/{icon-loader-DyRasOnf.js → icon-loader-Dij7pYkP.js} +3 -1
  94. package/dist/cjs/loader.cjs.js +1 -1
  95. package/dist/cjs/trending-down-BKjmYE1H.js +19 -0
  96. package/dist/cjs/trending-up-CoWuXxqz.js +19 -0
  97. package/dist/collection/collection-manifest.json +7 -0
  98. package/dist/collection/components/data-display/au-kbd/au-kbd.constants.js +85 -0
  99. package/dist/collection/components/data-display/au-kbd/au-kbd.css +98 -0
  100. package/dist/collection/components/data-display/au-kbd/au-kbd.js +189 -0
  101. package/dist/collection/components/data-display/au-kbd/au-kbd.types.js +1 -0
  102. package/dist/collection/components/data-display/au-kbd/index.js +2 -0
  103. package/dist/collection/components/data-display/au-kbd/internal/describe.js +67 -0
  104. package/dist/collection/components/data-display/au-kbd/internal/parse.js +85 -0
  105. package/dist/collection/components/data-display/au-kbd/internal/platform.js +19 -0
  106. package/dist/collection/components/data-display/au-list/au-list.constants.js +8 -0
  107. package/dist/collection/components/data-display/au-list/au-list.css +30 -0
  108. package/dist/collection/components/data-display/au-list/au-list.js +132 -0
  109. package/dist/collection/components/data-display/au-list/au-list.types.js +1 -0
  110. package/dist/collection/components/data-display/au-list/index.js +2 -0
  111. package/dist/collection/components/data-display/au-list-item/au-list-item.css +196 -0
  112. package/dist/collection/components/data-display/au-list-item/au-list-item.js +305 -0
  113. package/dist/collection/components/data-display/au-list-item/index.js +1 -0
  114. package/dist/collection/components/data-display/au-list-item/internal/interactive-content.js +29 -0
  115. package/dist/collection/components/data-display/au-stat/au-stat.constants.js +44 -0
  116. package/dist/collection/components/data-display/au-stat/au-stat.css +139 -0
  117. package/dist/collection/components/data-display/au-stat/au-stat.js +491 -0
  118. package/dist/collection/components/data-display/au-stat/au-stat.types.js +1 -0
  119. package/dist/collection/components/data-display/au-stat/index.js +2 -0
  120. package/dist/collection/components/data-display/au-stat/internal/announcement.js +13 -0
  121. package/dist/collection/components/data-display/au-table/au-table.constants.js +21 -0
  122. package/dist/collection/components/data-display/au-table/au-table.css +20 -0
  123. package/dist/collection/components/data-display/au-table/au-table.js +482 -0
  124. package/dist/collection/components/data-display/au-table/au-table.types.js +1 -0
  125. package/dist/collection/components/data-display/au-table/index.js +2 -0
  126. package/dist/collection/components/data-display/au-table/internal/scroller-label.js +11 -0
  127. package/dist/collection/components/data-display/au-table/internal/sort.js +17 -0
  128. package/dist/collection/components/feedback/au-alert/au-alert.js +1 -1
  129. package/dist/collection/components/feedback/au-progress/au-progress.constants.js +38 -0
  130. package/dist/collection/components/feedback/au-progress/au-progress.css +201 -0
  131. package/dist/collection/components/feedback/au-progress/au-progress.js +226 -0
  132. package/dist/collection/components/feedback/au-progress/au-progress.types.js +1 -0
  133. package/dist/collection/components/feedback/au-progress/index.js +2 -0
  134. package/dist/collection/components/feedback/au-skeleton/au-skeleton.constants.js +33 -0
  135. package/dist/collection/components/feedback/au-skeleton/au-skeleton.css +108 -0
  136. package/dist/collection/components/feedback/au-skeleton/au-skeleton.js +159 -0
  137. package/dist/collection/components/feedback/au-skeleton/au-skeleton.types.js +1 -0
  138. package/dist/collection/components/feedback/au-skeleton/index.js +2 -0
  139. package/dist/collection/components/feedback/au-toast/au-toast.js +1 -1
  140. package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +1 -1
  141. package/dist/collection/components/forms/au-checkbox/au-checkbox.js +4 -4
  142. package/dist/collection/components/forms/au-combobox/au-combobox.js +6 -6
  143. package/dist/collection/components/forms/au-field/au-field.js +1 -1
  144. package/dist/collection/components/forms/au-input/au-input.js +6 -6
  145. package/dist/collection/components/forms/au-number-input/au-number-input.js +4 -4
  146. package/dist/collection/components/forms/au-radio/au-radio.js +1 -1
  147. package/dist/collection/components/forms/au-radio-group/au-radio-group.js +3 -3
  148. package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +3 -3
  149. package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +1 -1
  150. package/dist/collection/components/forms/au-select/au-select.js +4 -4
  151. package/dist/collection/components/forms/au-slider/au-slider.js +3 -3
  152. package/dist/collection/components/forms/au-switch/au-switch.js +4 -4
  153. package/dist/collection/components/forms/au-textarea/au-textarea.js +3 -3
  154. package/dist/collection/components/layout/au-container/au-container.js +1 -1
  155. package/dist/collection/components/layout/au-divider/au-divider.js +1 -1
  156. package/dist/collection/components/layout/au-splitter/au-splitter.js +2 -2
  157. package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +1 -1
  158. package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +1 -1
  159. package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +1 -1
  160. package/dist/collection/components/navigation/au-navbar/au-navbar.js +4 -4
  161. package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +1 -1
  162. package/dist/collection/components/navigation/au-tab/au-tab.js +1 -1
  163. package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +1 -1
  164. package/dist/collection/components/navigation/au-tabs/au-tabs.js +4 -4
  165. package/dist/collection/components/navigation/au-toc/au-toc.js +1 -1
  166. package/dist/collection/components/overlays/au-dialog/au-dialog.js +4 -4
  167. package/dist/collection/components/overlays/au-menu/au-menu.js +1 -1
  168. package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +1 -1
  169. package/dist/collection/components/overlays/au-popover/au-popover.js +1 -1
  170. package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +1 -1
  171. package/dist/collection/components/primitives/au-icon/core-icons.js +2 -0
  172. package/dist/components/au-alert.js +1 -1
  173. package/dist/components/au-avatar.js +1 -1
  174. package/dist/components/au-breadcrumb-item.js +1 -1
  175. package/dist/components/au-breadcrumb.js +1 -1
  176. package/dist/components/au-checkbox.js +1 -1
  177. package/dist/components/au-chip.js +1 -1
  178. package/dist/components/au-code-block.js +1 -1
  179. package/dist/components/au-combobox.js +1 -1
  180. package/dist/components/au-container.js +1 -1
  181. package/dist/components/au-dialog.js +1 -1
  182. package/dist/components/au-divider.js +1 -1
  183. package/dist/components/au-field.js +1 -1
  184. package/dist/components/au-icon.js +1 -1
  185. package/dist/components/au-input.js +1 -1
  186. package/dist/components/au-kbd.d.ts +11 -0
  187. package/dist/components/au-kbd.js +1 -0
  188. package/dist/components/au-list-item.d.ts +11 -0
  189. package/dist/components/au-list-item.js +1 -0
  190. package/dist/components/au-list.d.ts +11 -0
  191. package/dist/components/au-list.js +1 -0
  192. package/dist/components/au-menu-item.js +1 -1
  193. package/dist/components/au-menu.js +1 -1
  194. package/dist/components/au-nav-link.js +1 -1
  195. package/dist/components/au-navbar.js +1 -1
  196. package/dist/components/au-number-input.js +1 -1
  197. package/dist/components/au-popover.js +1 -1
  198. package/dist/components/au-progress.d.ts +11 -0
  199. package/dist/components/au-progress.js +1 -0
  200. package/dist/components/au-radio-group.js +1 -1
  201. package/dist/components/au-radio.js +1 -1
  202. package/dist/components/au-segmented-control.js +1 -1
  203. package/dist/components/au-segmented-option.js +1 -1
  204. package/dist/components/au-select.js +1 -1
  205. package/dist/components/au-sidebar-nav.js +1 -1
  206. package/dist/components/au-skeleton.d.ts +11 -0
  207. package/dist/components/au-skeleton.js +1 -0
  208. package/dist/components/au-slider.js +1 -1
  209. package/dist/components/au-splitter.js +1 -1
  210. package/dist/components/au-stat.d.ts +11 -0
  211. package/dist/components/au-stat.js +1 -0
  212. package/dist/components/au-switch.js +1 -1
  213. package/dist/components/au-tab-panel.js +1 -1
  214. package/dist/components/au-tab.js +1 -1
  215. package/dist/components/au-table.d.ts +11 -0
  216. package/dist/components/au-table.js +1 -0
  217. package/dist/components/au-tabs.js +1 -1
  218. package/dist/components/au-textarea.js +1 -1
  219. package/dist/components/au-toast-region.js +1 -1
  220. package/dist/components/au-toast.js +1 -1
  221. package/dist/components/au-toc.js +1 -1
  222. package/dist/components/au-tooltip.js +1 -1
  223. package/dist/components/p-B5BhPkwP.js +1 -0
  224. package/dist/components/p-DMeUBbqF.js +7 -0
  225. package/dist/components/p-DjW6oMgu.js +7 -0
  226. package/dist/components/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
  227. package/dist/components/{p-DAqsVCAy.js → p-Dw0zb4x_.js} +1 -1
  228. package/dist/components/{p-DIL-tsh4.js → p-ZpauIcNt.js} +1 -1
  229. package/dist/custom-elements.json +1338 -66
  230. package/dist/esm/au-alert.entry.js +1 -1
  231. package/dist/esm/au-breadcrumb-item.entry.js +1 -1
  232. package/dist/esm/au-breadcrumb.entry.js +1 -1
  233. package/dist/esm/au-checkbox.entry.js +4 -4
  234. package/dist/esm/au-code-block.entry.js +1 -1
  235. package/dist/esm/au-combobox.entry.js +7 -7
  236. package/dist/esm/au-container.entry.js +1 -1
  237. package/dist/esm/au-dialog.entry.js +4 -4
  238. package/dist/esm/au-divider.entry.js +1 -1
  239. package/dist/esm/au-field.entry.js +1 -1
  240. package/dist/esm/{au-icon-B17psn7x.js → au-icon-6iJTkDID.js} +1 -1
  241. package/dist/esm/au-icon.entry.js +1 -1
  242. package/dist/esm/au-input.entry.js +6 -6
  243. package/dist/esm/au-kbd.entry.js +353 -0
  244. package/dist/esm/au-list-item.entry.js +193 -0
  245. package/dist/esm/au-list.entry.js +76 -0
  246. package/dist/esm/au-menu-item.entry.js +1 -1
  247. package/dist/esm/au-menu.entry.js +1 -1
  248. package/dist/esm/au-nav-link.entry.js +1 -1
  249. package/dist/esm/au-navbar.entry.js +4 -4
  250. package/dist/esm/au-number-input.entry.js +4 -4
  251. package/dist/esm/au-popover.entry.js +1 -1
  252. package/dist/esm/au-progress.entry.js +105 -0
  253. package/dist/esm/au-radio-group.entry.js +3 -3
  254. package/dist/esm/au-radio.entry.js +1 -1
  255. package/dist/esm/au-segmented-control.entry.js +3 -3
  256. package/dist/esm/au-segmented-option.entry.js +1 -1
  257. package/dist/esm/au-select.entry.js +4 -4
  258. package/dist/esm/au-sidebar-nav.entry.js +1 -1
  259. package/dist/esm/au-skeleton.entry.js +104 -0
  260. package/dist/esm/au-slider.entry.js +3 -3
  261. package/dist/esm/au-splitter.entry.js +2 -2
  262. package/dist/esm/au-stat.entry.js +260 -0
  263. package/dist/esm/au-switch.entry.js +4 -4
  264. package/dist/esm/au-tab-panel.entry.js +1 -1
  265. package/dist/esm/au-tab.entry.js +1 -1
  266. package/dist/esm/au-table.entry.js +335 -0
  267. package/dist/esm/au-tabs.entry.js +4 -4
  268. package/dist/esm/au-textarea.entry.js +3 -3
  269. package/dist/esm/au-toast-region.entry.js +2 -2
  270. package/dist/esm/au-toast.entry.js +1 -1
  271. package/dist/esm/au-toc.entry.js +1 -1
  272. package/dist/esm/au-tooltip.entry.js +1 -1
  273. package/dist/esm/aurora.js +1 -1
  274. package/dist/esm/{icon-loader-CqLCmu4h.js → icon-loader-B2WSNZ27.js} +3 -1
  275. package/dist/esm/{live-announcer-CXd2OhYs.js → live-announcer-IAjNBWYI.js} +1 -1
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/trending-down-DjW6oMgu.js +17 -0
  278. package/dist/esm/trending-up-DMeUBbqF.js +17 -0
  279. package/dist/styles.css +139 -0
  280. package/dist/types/components/data-display/au-kbd/au-kbd.constants.d.ts +41 -0
  281. package/dist/types/components/data-display/au-kbd/au-kbd.d.ts +36 -0
  282. package/dist/types/components/data-display/au-kbd/au-kbd.types.d.ts +1 -0
  283. package/dist/types/components/data-display/au-kbd/index.d.ts +3 -0
  284. package/dist/types/components/data-display/au-kbd/internal/describe.d.ts +13 -0
  285. package/dist/types/components/data-display/au-kbd/internal/parse.d.ts +18 -0
  286. package/dist/types/components/data-display/au-kbd/internal/platform.d.ts +13 -0
  287. package/dist/types/components/data-display/au-list/au-list.constants.d.ts +8 -0
  288. package/dist/types/components/data-display/au-list/au-list.d.ts +29 -0
  289. package/dist/types/components/data-display/au-list/au-list.types.d.ts +1 -0
  290. package/dist/types/components/data-display/au-list/index.d.ts +3 -0
  291. package/dist/types/components/data-display/au-list-item/au-list-item.d.ts +61 -0
  292. package/dist/types/components/data-display/au-list-item/index.d.ts +1 -0
  293. package/dist/types/components/data-display/au-list-item/internal/interactive-content.d.ts +2 -0
  294. package/dist/types/components/data-display/au-stat/au-stat.constants.d.ts +44 -0
  295. package/dist/types/components/data-display/au-stat/au-stat.d.ts +67 -0
  296. package/dist/types/components/data-display/au-stat/au-stat.types.d.ts +1 -0
  297. package/dist/types/components/data-display/au-stat/index.d.ts +3 -0
  298. package/dist/types/components/data-display/au-stat/internal/announcement.d.ts +16 -0
  299. package/dist/types/components/data-display/au-table/au-table.constants.d.ts +26 -0
  300. package/dist/types/components/data-display/au-table/au-table.d.ts +86 -0
  301. package/dist/types/components/data-display/au-table/au-table.types.d.ts +1 -0
  302. package/dist/types/components/data-display/au-table/index.d.ts +3 -0
  303. package/dist/types/components/data-display/au-table/internal/scroller-label.d.ts +9 -0
  304. package/dist/types/components/data-display/au-table/internal/sort.d.ts +11 -0
  305. package/dist/types/components/feedback/au-progress/au-progress.constants.d.ts +31 -0
  306. package/dist/types/components/feedback/au-progress/au-progress.d.ts +32 -0
  307. package/dist/types/components/feedback/au-progress/au-progress.types.d.ts +1 -0
  308. package/dist/types/components/feedback/au-progress/index.d.ts +3 -0
  309. package/dist/types/components/feedback/au-skeleton/au-skeleton.constants.d.ts +27 -0
  310. package/dist/types/components/feedback/au-skeleton/au-skeleton.d.ts +31 -0
  311. package/dist/types/components/feedback/au-skeleton/au-skeleton.types.d.ts +1 -0
  312. package/dist/types/components/feedback/au-skeleton/index.d.ts +3 -0
  313. package/dist/types/components.d.ts +712 -0
  314. package/dist/types/vue.d.ts +7 -0
  315. package/package.json +53 -1
  316. package/dist/aurora/p-746825ce.entry.js +0 -1
  317. package/dist/aurora/p-CoyAdNcI.js +0 -1
  318. package/dist/aurora/p-b2feddb2.entry.js +0 -1
  319. package/dist/aurora/p-f89bde2b.entry.js +0 -1
  320. package/dist/components/p-M21eKzKU.js +0 -1
@@ -62,7 +62,7 @@ export class AuBreadcrumbItem {
62
62
  }
63
63
  render() {
64
64
  const link = resolveLinkState(this.linkInput());
65
- return (h(Host, { key: '2254edf764d84aa8d45a6b22c58865a41f44be49', role: "listitem", "aria-current": this.hostCurrent ? 'page' : undefined }, h("span", { key: '177cb66a087d52bcf8aaa399d6c93fdfed278925', class: "separator", part: "separator", "aria-hidden": "true" }), link.isLink ? (h("a", { class: "link", part: "link", ...link.attributes, "aria-current": this.current ? 'page' : undefined }, h("slot", null), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null)) : (h("span", { class: "text", part: "text" }, h("slot", null)))));
65
+ return (h(Host, { key: 'ee68ef1650d5050a7f1afdb9c753b85b1a0e9a07', role: "listitem", "aria-current": this.hostCurrent ? 'page' : undefined }, h("span", { key: '196730a58f30e0ec902036ad0c7fa435bf4a5aff', class: "separator", part: "separator", "aria-hidden": "true" }), link.isLink ? (h("a", { class: "link", part: "link", ...link.attributes, "aria-current": this.current ? 'page' : undefined }, h("slot", null), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null)) : (h("span", { class: "text", part: "text" }, h("slot", null)))));
66
66
  }
67
67
  static get is() { return "au-breadcrumb-item"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -56,7 +56,7 @@ export class AuNavLink {
56
56
  unavailable: this.disabled,
57
57
  });
58
58
  const current = normalizeAriaCurrent(this.ariaCurrent).value;
59
- return (h("a", { key: '72602b3da4dd25e292b37a1d7a08dfed71ea76bf', class: "link", part: "link", ...link.attributes, "aria-current": current ?? undefined, onClick: this.handleClick }, h("slot", { key: '025d70ae486585521d0262de0503914330b0843b', name: "start" }), h("span", { key: '530b839955d6c57182fde21a4cd4bd73c26ac25b', class: "link__content", part: "content" }, h("slot", { key: '9157cfcb17cfed254f938b4628b3739b4705b6bf' })), h("slot", { key: 'a2cdb649ae095c5ec4917265945546fa65e42108', name: "end" }), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null));
59
+ return (h("a", { key: '60de85503288ab2067258f4826546adc5fd27c77', class: "link", part: "link", ...link.attributes, "aria-current": current ?? undefined, onClick: this.handleClick }, h("slot", { key: 'dfd3dd880ad5c807c613a5b45bcb080c66062db2', name: "start" }), h("span", { key: '8ba064fec0cf317c8802c91fb479035613d35d1e', class: "link__content", part: "content" }, h("slot", { key: '151ef5d2c5a0999cbb271d11ffe1b8234a373eea' })), h("slot", { key: 'f94c092b165fd4e6db2db36ef888e587e7995225', name: "end" }), link.opensNewTab ? h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (h("svg", { class: "link__new-tab-icon", part: "new-tab-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true", focusable: "false" }, NEW_TAB_ICON_PATHS.map((d) => (h("path", { d: d }))))) : null));
60
60
  }
61
61
  static get is() { return "au-nav-link"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -222,13 +222,13 @@ export class AuNavbar {
222
222
  const expanded = collapsed && this.open;
223
223
  const label = this.label?.trim() || NAVBAR_DEFAULT_LABEL;
224
224
  const menuLabel = this.menuLabel?.trim() || NAVBAR_DEFAULT_MENU_LABEL;
225
- return (h(Host, { key: 'e92bd179e07b36dbae7e36683f19091cabdf4f0a', collapsed: collapsed }, h("div", { key: 'f5378a3ccdfd0d5ab99d48d3b8e91a95ee85cbbb', part: "base", class: "navbar" }, h("div", { key: '8cb835d7cd4ef9be978785e4f9a28113ca5c3ed0', part: "brand", class: "navbar__brand" }, h("slot", { key: '3b75f17b6b48c41900faa45a487a8d7b2a13960b', name: "brand" })), h("nav", { key: '4c7712666dbce67a0fe0af6a8c52b14a0b6edebe', part: "nav", class: "navbar__nav", "aria-label": label, tabindex: "-1", onKeyDown: this.handleNavKeyDown, ref: (element) => {
225
+ return (h(Host, { key: 'd075c258e79914082706ddcd7c7059b0d906d506', collapsed: collapsed }, h("div", { key: 'd870650bd410589ea9dd72a8e2412813a03b96c8', part: "base", class: "navbar" }, h("div", { key: 'c15e5495ed7b1bf89d88014427cfb051de0a3a43', part: "brand", class: "navbar__brand" }, h("slot", { key: '1fb0747cd0ec6368637c45ee37ea74e41b75843a', name: "brand" })), h("nav", { key: 'aa1f7cdfee0ac312882f0122371fbfbddc2c0b19', part: "nav", class: "navbar__nav", "aria-label": label, tabindex: "-1", onKeyDown: this.handleNavKeyDown, ref: (element) => {
226
226
  this.navElement = element;
227
- } }, h("button", { key: '71e8cf47f169280020528825ca718bf251d00f89', part: "menu-button", class: "navbar__menu-button", type: "button", "aria-expanded": expanded ? 'true' : 'false', "aria-controls": LINKS_ID, hidden: !collapsed, onClick: this.handleMenuButtonClick, ref: (element) => {
227
+ } }, h("button", { key: 'f1e225f261a566fd5513b389180b235215164f01', part: "menu-button", class: "navbar__menu-button", type: "button", "aria-expanded": expanded ? 'true' : 'false', "aria-controls": LINKS_ID, hidden: !collapsed, onClick: this.handleMenuButtonClick, ref: (element) => {
228
228
  this.menuButtonElement = element;
229
- } }, h("svg", { key: '073ea3e28530ff82a333639e4106bc9edcc2614a', part: "menu-icon", class: "navbar__menu-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "aria-hidden": "true", focusable: "false" }, h("path", { key: '5e58e0e080044b2a5398a6a158c9ec268aad34e3', d: "M4 6h16" }), h("path", { key: '5630503b42b9e662095ce5a2e06222efce87e471', d: "M4 12h16" }), h("path", { key: '568413ec2ceff1013f2dacacc49334ca444ce7a7', d: "M4 18h16" })), h("span", { key: 'bce3edb6cd4e144bb327c72aa75493407e511cb3', class: "navbar__visually-hidden" }, menuLabel)), h("div", { key: '3b131b3fa3d2a05e0657552891397432277e2594', part: "links", id: LINKS_ID, class: "navbar__links", hidden: collapsed && !this.open, ref: (element) => {
229
+ } }, h("svg", { key: '2829e50182b8ade50524ff99e22c9471d0969d80', part: "menu-icon", class: "navbar__menu-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "aria-hidden": "true", focusable: "false" }, h("path", { key: '5bbd0beb07e10de01d98d2b432c1a201ebdc99de', d: "M4 6h16" }), h("path", { key: '468fbcc63fff3a49e63212ac8bbf096f2e6821a3', d: "M4 12h16" }), h("path", { key: 'e9d1de17b681d136383887f865581a4b8496a1a4', d: "M4 18h16" })), h("span", { key: '3ab1a693692d4bd3d578221e64ddf8596dc6bac7', class: "navbar__visually-hidden" }, menuLabel)), h("div", { key: '400a513647ee160cbe5898947973a9d662bdb5d4', part: "links", id: LINKS_ID, class: "navbar__links", hidden: collapsed && !this.open, ref: (element) => {
230
230
  this.linksElement = element;
231
- } }, h("slot", { key: '9f17147b6ec38d1e422c87f7009645d5660f12d2', name: "links" }))), h("div", { key: 'e5daaf88afcd8793018c1cfae60c575c5daaebc6', part: "actions", class: "navbar__actions" }, h("slot", { key: 'a0b4effbbc2d28376ea52fa0bb5244f30e2094ad', name: "actions" })))));
231
+ } }, h("slot", { key: 'a4709987399e4258c7edcb492041be0a010ef667', name: "links" }))), h("div", { key: '9a7f6a0cb9211c9648c7b47c1621031611574701', part: "actions", class: "navbar__actions" }, h("slot", { key: 'e88cf385a9c4048dd0a0fed9791233cccbccac34', name: "actions" })))));
232
232
  }
233
233
  static get is() { return "au-navbar"; }
234
234
  static get encapsulation() { return "shadow"; }
@@ -160,7 +160,7 @@ export class AuSidebarNav {
160
160
  }
161
161
  render() {
162
162
  const label = this.label?.trim() || SIDEBAR_NAV_DEFAULT_LABEL;
163
- return (h("nav", { key: 'bdd456480888e7a79a943a3b4a340975df89cdca', part: "nav", class: "sidebar", "aria-label": label }, h("div", { key: '7dd84b056f7dd47414db948aff4459fff4c227a7', part: "items", class: "sidebar__items" }, h("slot", { key: '63100e3f5f55ce47279e67426e2b4a56c32ce5e0' }))));
163
+ return (h("nav", { key: '8ec85d86ab710d75144ca718e7071724ef0812cd', part: "nav", class: "sidebar", "aria-label": label }, h("div", { key: 'd413b8af9075975327703a1870eb404967d8df92', part: "items", class: "sidebar__items" }, h("slot", { key: 'd0f0e8a97f9425f8024d0ba3349f5c342a3f6a56' }))));
164
164
  }
165
165
  static get is() { return "au-sidebar-nav"; }
166
166
  static get encapsulation() { return "shadow"; }
@@ -14,7 +14,7 @@ export class AuTab {
14
14
  dispatchItemUpdate(this.host);
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '42c1a55213f9864c937e7660961718bf3cf7246b', role: "tab", "aria-selected": this.selected ? 'true' : 'false' }, h("span", { key: '7f821c60243a6a7d56386c409cfe73ae89133908', part: "content" }, h("slot", { key: '91c163c2887757850fd31be2b71faa70d01e5e8b' }))));
17
+ return (h(Host, { key: '1f231220ec57ae50e0a1636e03b8cb357bc8f65c', role: "tab", "aria-selected": this.selected ? 'true' : 'false' }, h("span", { key: '0254822f3b0c330981a81743f126cab8e7508de2', part: "content" }, h("slot", { key: '3a4459efd4ade5d704f4df414ec14a8fec3959c2' }))));
18
18
  }
19
19
  static get is() { return "au-tab"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -39,7 +39,7 @@ export class AuTabPanel {
39
39
  first.after(this.host.ownerDocument.importNode(content, true));
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '291582e5048b39766ed03a1802c325c5687d9554', role: "tabpanel", hidden: !this.active }, this.activated ? h("slot", null) : null));
42
+ return (h(Host, { key: '5bac0591714959242818a220b5b696e5fdf13ace', role: "tabpanel", hidden: !this.active }, this.activated ? h("slot", null) : null));
43
43
  }
44
44
  static get is() { return "au-tab-panel"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -328,21 +328,21 @@ export class AuTabs {
328
328
  'aria-label': this.ariaLabel?.trim() || undefined,
329
329
  'aria-orientation': vertical ? 'vertical' : undefined,
330
330
  });
331
- return (h(Host, { key: '15b5bdb796d92599ab3e5ca55ed99da796bbe6fb' }, h("div", { key: '81b1ec30ef9dd23c1f8455b1d9f9456a863669ed', part: "base", class: {
331
+ return (h(Host, { key: 'fc3bd7404d1df7bc0660e7fc792b25f51a21a1a5' }, h("div", { key: 'ed4d9fd32d5aa69e1b80aab18239bf198e05e0c5', part: "base", class: {
332
332
  tabs: true,
333
333
  'tabs--horizontal': !vertical,
334
334
  'tabs--vertical': vertical,
335
335
  'tabs--manual': manual,
336
336
  'tabs--automatic': !manual,
337
- } }, h("div", { key: '6e0a25e410480713d3145ceb9b86d566a0808f60', part: "nav", class: {
337
+ } }, h("div", { key: 'ac8e0cdd57474c140260d4d2ccb1b49412b9f44f', part: "nav", class: {
338
338
  tabs__nav: true,
339
339
  'tabs__nav--animated': this.animated,
340
340
  'tabs--no-indicator': this.noIndicator,
341
341
  }, ref: (element) => {
342
342
  this.navElement = element;
343
- } }, h("div", { key: '93105ccfba578e3d493d9e2883b5b66a434c32ab', part: "tablist", class: "tabs__tablist", role: "tablist", ...tablistAttributes }, h("slot", { key: 'c97fcdac7ab123ff146d07a09029e1d2b4dc4560', name: "tab", ref: (element) => {
343
+ } }, h("div", { key: 'b3733f73551c19b6f29a2df9beb768a57cfafec3', part: "tablist", class: "tabs__tablist", role: "tablist", ...tablistAttributes }, h("slot", { key: '8ced44662a42591dd73cdc153fd232ee55afec6a', name: "tab", ref: (element) => {
344
344
  this.tabSlot = element;
345
- }, onSlotchange: this.handleSlotChange })), h("slot", { key: '36166ab2af39bed614090f68f436ef048d7cd291', name: "indicator" }, h("span", { key: '7750c0d5b23197a694c80f21d7e01276d700b865', part: "indicator", class: "tabs__indicator", "aria-hidden": "true" }))), h("div", { key: 'b6c84aafca0435c9c9202f0d55218cdd9ecb0484', part: "panels", class: "tabs__panels" }, h("slot", { key: '4a65bb1b1ebf8cdb9e95b0315da8f7019c645560', ref: (element) => {
345
+ }, onSlotchange: this.handleSlotChange })), h("slot", { key: '31f64f37065e8b14e49e6cac7b3a666a2fb85143', name: "indicator" }, h("span", { key: 'e1bcc8370d057e1fea8ff49ac56d235fedf7cf2a', part: "indicator", class: "tabs__indicator", "aria-hidden": "true" }))), h("div", { key: '490c343f1c1a3f66e7d580c9ce24ff7910148865', part: "panels", class: "tabs__panels" }, h("slot", { key: 'ea1cef11715896802ea82d97c48ca48afa03f932', ref: (element) => {
346
346
  this.panelSlot = element;
347
347
  }, onSlotchange: this.handleSlotChange })))));
348
348
  }
@@ -323,7 +323,7 @@ export class AuToc {
323
323
  render() {
324
324
  const label = this.label?.trim() || TOC_DEFAULT_LABEL;
325
325
  const empty = this.tree.length === 0;
326
- return (h(Host, { key: '6b7a93dcc84bda0766151e883c64805a35c739ab', empty: empty }, empty ? null : (h("nav", { part: "nav", class: "toc", "aria-label": label }, h("slot", { name: "heading" }), this.renderList(this.tree, false)))));
326
+ return (h(Host, { key: 'ce97aa737acb343f89587f621343174359ab45d1', empty: empty }, empty ? null : (h("nav", { part: "nav", class: "toc", "aria-label": label }, h("slot", { name: "heading" }), this.renderList(this.tree, false)))));
327
327
  }
328
328
  static get is() { return "au-toc"; }
329
329
  static get encapsulation() { return "shadow"; }
@@ -319,13 +319,13 @@ export class AuDialog {
319
319
  ? { 'aria-labelledby': this.titleId }
320
320
  : {};
321
321
  const noHeader = !this.hasTitle && this.noCloseButton;
322
- return (h("dialog", { key: '8a68092b773c08fa1caac28f45a3caeff59f5f52', class: `dialog dialog--${this.safeSize} dialog--placement-${this.safePlacement}${this.openedNonModal ? ' dialog--non-modal' : ''}${noHeader ? ' dialog--no-header' : ''}${this.hasActions ? '' : ' dialog--no-footer'}`, part: "dialog", tabindex: "-1", ...nameAttributes, ref: (element) => {
322
+ return (h("dialog", { key: '33f2d9abcacb153a65eb7bf61c0cf451942dc5f0', class: `dialog dialog--${this.safeSize} dialog--placement-${this.safePlacement}${this.openedNonModal ? ' dialog--non-modal' : ''}${noHeader ? ' dialog--no-header' : ''}${this.hasActions ? '' : ' dialog--no-footer'}`, part: "dialog", tabindex: "-1", ...nameAttributes, ref: (element) => {
323
323
  this.dialogElement = element;
324
- }, onCancel: this.handleCancel, onClose: this.handleClose, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onClick: this.handleClick }, h("div", { key: '0ddc1328e74b6599e160b35830a6efcfb3ecb6aa', class: "dialog__header", part: "header" }, h("div", { key: '8fe61e81aa5c339332ee5eb34a773430b1e4d3a9', class: "dialog__title", part: "title", id: this.titleId }, h("slot", { key: 'b8936f859615a9152a3d42915135b61c4a261895', name: "title", onSlotchange: this.syncContent })), !this.noCloseButton && (h("button", { key: 'ffba3bba037035b22b37b98977a376a23d43a5d4', class: "dialog__close", part: "close-button", type: "button", "aria-label": this.safeCloseLabel, ref: (element) => {
324
+ }, onCancel: this.handleCancel, onClose: this.handleClose, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onClick: this.handleClick }, h("div", { key: 'fe0266a575b3ddbbc9b0a3a2b672dab66e5a2dd1', class: "dialog__header", part: "header" }, h("div", { key: 'a253b6bdd173dda2484fdfec316128eeb06394f5', class: "dialog__title", part: "title", id: this.titleId }, h("slot", { key: 'd4df6d93e7977b61a2ca7a68dac26cfde0c4bfa8', name: "title", onSlotchange: this.syncContent })), !this.noCloseButton && (h("button", { key: 'b2d5585a2ec0cfa9713d5e2564a02551d2d2872a', class: "dialog__close", part: "close-button", type: "button", "aria-label": this.safeCloseLabel, ref: (element) => {
325
325
  this.closeButtonElement = element;
326
- }, onClick: this.handleCloseButtonClick }, h("au-icon", { key: '73a0256f6b20d664341dde305f2ece3487f96c6a', icon: CLOSE_ICON, decorative: true })))), h("div", { key: '988eecf5a05d477c9bef6aa14c9e8624aa2be3c7', class: "dialog__body", part: "body", ...(this.bodyScrollable ? { tabindex: '0' } : {}), ref: (element) => {
326
+ }, onClick: this.handleCloseButtonClick }, h("au-icon", { key: '40c4a74e4c09b479c9a9ae6d24e8f09bcc44f12b', icon: CLOSE_ICON, decorative: true })))), h("div", { key: '4c4880eca8bdf21ab886810d4d5ab6adb7fbff7a', class: "dialog__body", part: "body", ...(this.bodyScrollable ? { tabindex: '0' } : {}), ref: (element) => {
327
327
  this.bodyElement = element;
328
- } }, h("slot", { key: 'bbc75055acc4264f2aa7fad882f6afa7924d7aa7', onSlotchange: this.measureBody })), h("div", { key: '3179febc78e15089e176b82c5a231060e2b7a09a', class: "dialog__footer", part: "footer" }, h("slot", { key: '963188a3f77b851112958ae5c7f7a79bf02e06fa', name: "actions", onSlotchange: this.syncContent }))));
328
+ } }, h("slot", { key: '85f9d4f8a70f7c38d30e0ba135d038727e585cd9', onSlotchange: this.measureBody })), h("div", { key: '2444af504b6021d3bc3b93f31c979d92cc943609', class: "dialog__footer", part: "footer" }, h("slot", { key: '12f2239e3e142b00408c00669894733f050ba039', name: "actions", onSlotchange: this.syncContent }))));
329
329
  }
330
330
  static get is() { return "au-dialog"; }
331
331
  static get encapsulation() { return "shadow"; }
@@ -292,7 +292,7 @@ export class AuMenu {
292
292
  console.warn(message);
293
293
  }
294
294
  render() {
295
- return (h(Host, { key: '32c04d53decde148d3438e55a10713673199f127', role: "menu", tabindex: this.itemCount === 0 ? '-1' : undefined }, h("slot", { key: '8232feaa883927d1987dfbb588b8162aea520ddf', ref: (element) => {
295
+ return (h(Host, { key: 'd796cdb364ae4229ecc4c53f69b3fb19ee0e4f85', role: "menu", tabindex: this.itemCount === 0 ? '-1' : undefined }, h("slot", { key: '3b3cb26ef1ebbcbbd56f4c05a67cf784cbf38ab3', ref: (element) => {
296
296
  this.slotElement = element;
297
297
  }, onSlotchange: this.handleSlotChange })));
298
298
  }
@@ -39,7 +39,7 @@ export class AuMenuItem {
39
39
  const type = isMenuItemType(this.type) ? this.type : MENU_ITEM_TYPE.item;
40
40
  const checkable = type !== MENU_ITEM_TYPE.item;
41
41
  const checked = this.checked ? 'true' : 'false';
42
- return (h(Host, { key: '551ef4f0bfb1487124a809c13d31def75ad3200e', role: ROLES[type], "aria-checked": checkable ? checked : undefined }, checkable ? (h("span", { class: { 'menu-item__check': true, 'menu-item__check--checked': this.checked }, part: "check", "aria-hidden": "true" }, type === MENU_ITEM_TYPE.checkbox ? (h("au-icon", { icon: CHECK_ICON, decorative: true })) : (h("span", { class: "menu-item__dot" })))) : null, h("span", { key: '92ab01db27e8a50860a921446f2b8e61d2028712', class: "menu-item__start", part: "start" }, h("slot", { key: '532ea0d07edc53324d65fff7d1ade3d34b6862ef', name: "start" })), h("span", { key: 'e79a9e4b4f81a9d6297157bd32181b2d6cc18760', class: "menu-item__label", part: "label" }, h("slot", { key: 'a3c14e647e7265e03f496fead950cf86792c6825' })), h("span", { key: 'f3d1a3af0d12b0dc89aa222d743557fb999bf420', class: "menu-item__end", part: "end" }, h("slot", { key: '2a26fa39b87c5c75f54533e5e36e3b2bfd54e8fb', name: "end" }))));
42
+ return (h(Host, { key: '302594dae0faaf04de310a413158e21b640e180b', role: ROLES[type], "aria-checked": checkable ? checked : undefined }, checkable ? (h("span", { class: { 'menu-item__check': true, 'menu-item__check--checked': this.checked }, part: "check", "aria-hidden": "true" }, type === MENU_ITEM_TYPE.checkbox ? (h("au-icon", { icon: CHECK_ICON, decorative: true })) : (h("span", { class: "menu-item__dot" })))) : null, h("span", { key: '73a3647747511daa9ffb69aa74b2336ed4fe360e', class: "menu-item__start", part: "start" }, h("slot", { key: '80b94cec1bff4f73749412de57ec4786f22acc26', name: "start" })), h("span", { key: '1e66b31f6f82d2a8ccf6941d5a3750e334b8c318', class: "menu-item__label", part: "label" }, h("slot", { key: '51c62164283a6ae3473cee06b6b9b14878ecb6bb' })), h("span", { key: 'c0cd49c5725d4c8545716fb54d4bfff018bc99a5', class: "menu-item__end", part: "end" }, h("slot", { key: '606cbef7c5bc7ec4ce41802cebf399f075992956', name: "end" }))));
43
43
  }
44
44
  static get is() { return "au-menu-item"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -85,7 +85,7 @@ export class AuPopover {
85
85
  }));
86
86
  }
87
87
  render() {
88
- return (h(Host, { key: 'b138689be544a9aea28515d96b13779e35e18cfd' }, h("slot", { key: 'dfbf31a0f1c6846375914670a1db0dd4019e8d5e' })));
88
+ return (h(Host, { key: '11b4a0bafeeb5b2a78d245ff9e508bd6875aeeb4' }, h("slot", { key: '209693fd006ad62c59d08b66fb268447d1f1022d' })));
89
89
  }
90
90
  static get is() { return "au-popover"; }
91
91
  static get encapsulation() { return "shadow"; }
@@ -355,7 +355,7 @@ export class AuTooltip {
355
355
  event.preventDefault();
356
356
  };
357
357
  render() {
358
- return (h(Host, { key: '07d61db8eb028933342f09a594bae62595b8c2b4' }, h("slot", { key: 'faf1f71e3d1184faa0731c5dad72e234c5f82c58' })));
358
+ return (h(Host, { key: '0707226ec7d04c547ea8f8899922c11ed54060e7' }, h("slot", { key: '68e740fd8f45aa3cb34c682f505270d1d95bcbaf' })));
359
359
  }
360
360
  static get is() { return "au-tooltip"; }
361
361
  static get encapsulation() { return "shadow"; }
@@ -17,4 +17,6 @@ export const CORE_ICON_IMPORTERS = {
17
17
  'copy-check': () => import('@lucide/icons/icons/copy-check'),
18
18
  'circle-x': () => import('@lucide/icons/icons/circle-x'),
19
19
  'user-round': () => import('@lucide/icons/icons/user-round'),
20
+ 'trending-up': () => import('@lucide/icons/icons/trending-up'),
21
+ 'trending-down': () => import('@lucide/icons/icons/trending-down'),
20
22
  };
@@ -1 +1 @@
1
- import{t as r,p as a,H as e,d as o,h as t}from"./p-DTeHrc-Q.js";import{C as s}from"./p-DqqWqhAT.js";import{d as i}from"./p-DIL-tsh4.js";const l={info:s.info,success:s.success,warning:s.warning,danger:s.danger},n={polite:"polite",assertive:"assertive",off:"off"},c="Dismiss",d=new Set(Object.values(l)),u=new Set(Object.values(n)),f={[l.info]:"info",[l.success]:"circle-check",[l.warning]:"triangle-alert",[l.danger]:"octagon-alert"},b=a(class extends e{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.beforeDismiss=o(this,"au-before-dismiss",7)}get host(){return this}variant=l.info;live;dismissible=!1;dismissLabel=c;dismissed=!1;beforeDismiss;empty=!1;hasTitle=!1;componentWillLoad(){this.syncContent()}get safeVariant(){return(r=>"string"==typeof r&&d.has(r))(this.variant)?this.variant:l.info}get safeRole(){if((r=>"string"==typeof r&&u.has(r))(this.live)){if(this.live===n.off)return;return this.live===n.assertive?"alert":"status"}return this.safeVariant===l.danger?"alert":"status"}measureContent(){let r=!1,a=!1;for(const e of Array.from(this.host.childNodes))if(3===e.nodeType)a||=""!==(e.textContent??"").trim();else if(1===e.nodeType){const o=e.getAttribute("slot");"title"===o?r=!0:null!==o&&""!==o||(a=!0)}return{title:r,message:a}}get safeDismissLabel(){return("string"==typeof this.dismissLabel?this.dismissLabel.trim():"")||c}handleDismiss=()=>{this.beforeDismiss.emit().defaultPrevented||(this.dismissed=!0)};syncContent=()=>{const{title:r,message:a}=this.measureContent();this.hasTitle=r,this.empty=!r&&!a};render(){const r=this.safeVariant,a=this.safeRole;return t("div",{key:"7a1f018a5224fe6c9af3eae91a1b1729829a9218",class:`alert alert--${r}${this.empty?" alert--empty":""}${this.hasTitle?"":" alert--no-title"}`,part:"alert"},t("div",{key:"159039080e1ed367c7e4e585a4442d9d879cc9e1",class:"alert__body",part:"body",...a?{role:a,"aria-atomic":"true"}:{}},t("span",{key:"433887fcb8d20bbfdc53f5f9b80eff168a7e415a",class:"alert__icon",part:"icon"},t("slot",{key:"e5435e6a18bb1e1cb2b2aaed40099668698b203e",name:"icon"},t("au-icon",{key:"230489161a83ac3ca8ababa0b6a5ff3b375e7123",icon:f[r],decorative:!0}))),t("div",{key:"9082ccd4e8b3e31bdb5caa508a3d4c35b19c215a",class:"alert__content",part:"content"},t("div",{key:"32527d36a2a0c93b86379f324a23d2533b3115f8",class:"alert__title",part:"title"},t("slot",{key:"83978630e7edadd1760ef905ca6010db7b094b7a",name:"title",onSlotchange:this.syncContent})),t("div",{key:"b443dce73331f8f6aa61f15ad006377fdd1e6672",class:"alert__message",part:"message"},t("slot",{key:"1e79d5b07ac3db6680b53d2ef3278e40fd5b87e9",onSlotchange:this.syncContent})))),this.dismissible&&t("button",{key:"fe3ff25cbdaca39b127a94ea86ca765013dcdc15",class:"alert__dismiss",part:"dismiss",type:"button","aria-label":this.safeDismissLabel,onClick:this.handleDismiss},t("au-icon",{key:"1a1e5256468263a2f3bf1b629abb54107fb73374",icon:"x",decorative:!0})))}static get style(){return":host{--_alert-transition-duration:var( --aurora-alert-transition-duration, var(--aurora-motion-duration-fast, 120ms) );display:block}:host([dismissed]){display:none !important}.alert--info{--_alert-background:var( --aurora-alert-info-background, color-mix(in srgb, var(--aurora-color-info, #205a9a) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-info-border, color-mix(in srgb, var(--aurora-color-info, #205a9a) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-info-icon-color, var(--aurora-color-info, #205a9a))}.alert--success{--_alert-background:var( --aurora-alert-success-background, color-mix(in srgb, var(--aurora-color-success, #26945e) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-success-border, color-mix(in srgb, var(--aurora-color-success, #26945e) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-success-icon-color, var(--aurora-color-success, #176b48))}.alert--warning{--_alert-background:var( --aurora-alert-warning-background, color-mix(in srgb, var(--aurora-color-warning, #c48a18) 14%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-warning-border, color-mix(in srgb, var(--aurora-color-warning, #c48a18) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-warning-icon-color, var(--aurora-color-warning, #795300))}.alert--danger{--_alert-background:var( --aurora-alert-danger-background, color-mix(in srgb, var(--aurora-color-danger, #c44848) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-danger-border, color-mix(in srgb, var(--aurora-color-danger, #c44848) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-danger-icon-color, var(--aurora-color-danger, #a32635))}.alert{align-items:flex-start;background:var(--_alert-background);border:var(--aurora-alert-border-width, 1px) solid var(--_alert-border);border-radius:var(--aurora-alert-radius, var(--aurora-radius-md, 0.5rem));box-sizing:border-box;color:var(--aurora-alert-color, var(--aurora-color-text, #1f2937));display:flex;font-family:var(--aurora-alert-font-family, var(--aurora-font-family-small, Lato, sans-serif));font-size:var(--aurora-alert-font-size, var(--aurora-font-size-sm, 0.875rem));gap:var(--aurora-alert-gap, 0.75rem);line-height:1.45;padding:var(--aurora-alert-padding, 0.75rem 1rem);transition-duration:var(--_alert-transition-duration);transition-property:background-color, border-color, color}.alert--empty{background:transparent;border-width:0;padding:0}.alert--empty .alert__icon,.alert--empty .alert__dismiss{display:none}.alert__body{align-items:flex-start;display:flex;flex:1 1 auto;gap:var(--aurora-alert-gap, 0.75rem);min-width:0}.alert__icon{color:var(--_alert-icon-color);display:inline-flex;flex:none}.alert__content{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.alert--no-title .alert__title{display:none}.alert__title{font-weight:var(--aurora-alert-title-font-weight, var(--aurora-font-weight-semibold, 600))}.alert__dismiss{align-items:center;appearance:none;background:transparent;border:0;border-radius:var(--aurora-radius-sm, 0.375rem);color:inherit;cursor:pointer;display:inline-flex;flex:none;justify-content:center;padding:0.25rem;transition-duration:var(--_alert-transition-duration);transition-property:background-color, color}.alert__dismiss:hover{background:color-mix(in srgb, currentColor 12%, transparent)}.alert__dismiss:focus-visible{outline:2px solid var(--aurora-alert-focus-color, var(--aurora-color-focus, #2458c6));outline-offset:2px}@media (forced-colors: active){.alert{background:Canvas;border-color:CanvasText;color:CanvasText}.alert__icon{color:CanvasText}.alert__dismiss{color:ButtonText}.alert__dismiss:focus-visible{outline-color:Highlight}}@media (prefers-reduced-motion: reduce){.alert,.alert__body,.alert__dismiss{transition-duration:0s}}"}},[769,"au-alert",{variant:[513],live:[513],dismissible:[516],dismissLabel:[1,"dismiss-label"],dismissed:[1540],empty:[32],hasTitle:[32]}]);function m(){"undefined"!=typeof customElements&&["au-alert","au-icon"].forEach((a=>{switch(a){case"au-alert":customElements.get(r(a))||customElements.define(r(a),b);break;case"au-icon":customElements.get(r(a))||i()}}))}m();const v=b,g=m;export{v as AuAlert,g as defineCustomElement}
1
+ import{t as r,p as a,H as e,d as o,h as t}from"./p-DTeHrc-Q.js";import{C as s}from"./p-DqqWqhAT.js";import{d as i}from"./p-ZpauIcNt.js";const l={info:s.info,success:s.success,warning:s.warning,danger:s.danger},n={polite:"polite",assertive:"assertive",off:"off"},c="Dismiss",d=new Set(Object.values(l)),u=new Set(Object.values(n)),f={[l.info]:"info",[l.success]:"circle-check",[l.warning]:"triangle-alert",[l.danger]:"octagon-alert"},b=a(class extends e{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.beforeDismiss=o(this,"au-before-dismiss",7)}get host(){return this}variant=l.info;live;dismissible=!1;dismissLabel=c;dismissed=!1;beforeDismiss;empty=!1;hasTitle=!1;componentWillLoad(){this.syncContent()}get safeVariant(){return(r=>"string"==typeof r&&d.has(r))(this.variant)?this.variant:l.info}get safeRole(){if((r=>"string"==typeof r&&u.has(r))(this.live)){if(this.live===n.off)return;return this.live===n.assertive?"alert":"status"}return this.safeVariant===l.danger?"alert":"status"}measureContent(){let r=!1,a=!1;for(const e of Array.from(this.host.childNodes))if(3===e.nodeType)a||=""!==(e.textContent??"").trim();else if(1===e.nodeType){const o=e.getAttribute("slot");"title"===o?r=!0:null!==o&&""!==o||(a=!0)}return{title:r,message:a}}get safeDismissLabel(){return("string"==typeof this.dismissLabel?this.dismissLabel.trim():"")||c}handleDismiss=()=>{this.beforeDismiss.emit().defaultPrevented||(this.dismissed=!0)};syncContent=()=>{const{title:r,message:a}=this.measureContent();this.hasTitle=r,this.empty=!r&&!a};render(){const r=this.safeVariant,a=this.safeRole;return t("div",{key:"2e8d03036108daf9ed35bffebca9a0168b3692c3",class:`alert alert--${r}${this.empty?" alert--empty":""}${this.hasTitle?"":" alert--no-title"}`,part:"alert"},t("div",{key:"f0560d1376bf667abcd1347e49264eb007393406",class:"alert__body",part:"body",...a?{role:a,"aria-atomic":"true"}:{}},t("span",{key:"3fdddd8223c45e7db2f8199929fed74f86202230",class:"alert__icon",part:"icon"},t("slot",{key:"1c1d31cbd566e5d4e917503b6406dc8da4f3c7ed",name:"icon"},t("au-icon",{key:"191531b37eaedb35c1d42a18c96a6ae185456671",icon:f[r],decorative:!0}))),t("div",{key:"43b2527b4a05b75fa82a8267b1dbb2c77f55179f",class:"alert__content",part:"content"},t("div",{key:"b1741ea56ed73a104b2ddff501bd6da634c18a42",class:"alert__title",part:"title"},t("slot",{key:"962b0ff431f0daacace8bb340ea5b88558af50f1",name:"title",onSlotchange:this.syncContent})),t("div",{key:"71535cac03d9d9d9aefa60eef3ff58d26a4be8ff",class:"alert__message",part:"message"},t("slot",{key:"3195a7702022de1ad9a674fa9d4a3437ce265521",onSlotchange:this.syncContent})))),this.dismissible&&t("button",{key:"b677fc5fee2f407339190943916a9dfdeececa82",class:"alert__dismiss",part:"dismiss",type:"button","aria-label":this.safeDismissLabel,onClick:this.handleDismiss},t("au-icon",{key:"9ae59a4c53d550cb6b0c57c7d2f505fc73cd21ba",icon:"x",decorative:!0})))}static get style(){return":host{--_alert-transition-duration:var( --aurora-alert-transition-duration, var(--aurora-motion-duration-fast, 120ms) );display:block}:host([dismissed]){display:none !important}.alert--info{--_alert-background:var( --aurora-alert-info-background, color-mix(in srgb, var(--aurora-color-info, #205a9a) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-info-border, color-mix(in srgb, var(--aurora-color-info, #205a9a) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-info-icon-color, var(--aurora-color-info, #205a9a))}.alert--success{--_alert-background:var( --aurora-alert-success-background, color-mix(in srgb, var(--aurora-color-success, #26945e) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-success-border, color-mix(in srgb, var(--aurora-color-success, #26945e) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-success-icon-color, var(--aurora-color-success, #176b48))}.alert--warning{--_alert-background:var( --aurora-alert-warning-background, color-mix(in srgb, var(--aurora-color-warning, #c48a18) 14%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-warning-border, color-mix(in srgb, var(--aurora-color-warning, #c48a18) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-warning-icon-color, var(--aurora-color-warning, #795300))}.alert--danger{--_alert-background:var( --aurora-alert-danger-background, color-mix(in srgb, var(--aurora-color-danger, #c44848) 12%, var(--aurora-color-surface, #fff)) );--_alert-border:var( --aurora-alert-danger-border, color-mix(in srgb, var(--aurora-color-danger, #c44848) 45%, var(--aurora-color-surface, #fff)) );--_alert-icon-color:var(--aurora-alert-danger-icon-color, var(--aurora-color-danger, #a32635))}.alert{align-items:flex-start;background:var(--_alert-background);border:var(--aurora-alert-border-width, 1px) solid var(--_alert-border);border-radius:var(--aurora-alert-radius, var(--aurora-radius-md, 0.5rem));box-sizing:border-box;color:var(--aurora-alert-color, var(--aurora-color-text, #1f2937));display:flex;font-family:var(--aurora-alert-font-family, var(--aurora-font-family-small, Lato, sans-serif));font-size:var(--aurora-alert-font-size, var(--aurora-font-size-sm, 0.875rem));gap:var(--aurora-alert-gap, 0.75rem);line-height:1.45;padding:var(--aurora-alert-padding, 0.75rem 1rem);transition-duration:var(--_alert-transition-duration);transition-property:background-color, border-color, color}.alert--empty{background:transparent;border-width:0;padding:0}.alert--empty .alert__icon,.alert--empty .alert__dismiss{display:none}.alert__body{align-items:flex-start;display:flex;flex:1 1 auto;gap:var(--aurora-alert-gap, 0.75rem);min-width:0}.alert__icon{color:var(--_alert-icon-color);display:inline-flex;flex:none}.alert__content{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.alert--no-title .alert__title{display:none}.alert__title{font-weight:var(--aurora-alert-title-font-weight, var(--aurora-font-weight-semibold, 600))}.alert__dismiss{align-items:center;appearance:none;background:transparent;border:0;border-radius:var(--aurora-radius-sm, 0.375rem);color:inherit;cursor:pointer;display:inline-flex;flex:none;justify-content:center;padding:0.25rem;transition-duration:var(--_alert-transition-duration);transition-property:background-color, color}.alert__dismiss:hover{background:color-mix(in srgb, currentColor 12%, transparent)}.alert__dismiss:focus-visible{outline:2px solid var(--aurora-alert-focus-color, var(--aurora-color-focus, #2458c6));outline-offset:2px}@media (forced-colors: active){.alert{background:Canvas;border-color:CanvasText;color:CanvasText}.alert__icon{color:CanvasText}.alert__dismiss{color:ButtonText}.alert__dismiss:focus-visible{outline-color:Highlight}}@media (prefers-reduced-motion: reduce){.alert,.alert__body,.alert__dismiss{transition-duration:0s}}"}},[769,"au-alert",{variant:[513],live:[513],dismissible:[516],dismissLabel:[1,"dismiss-label"],dismissed:[1540],empty:[32],hasTitle:[32]}]);function m(){"undefined"!=typeof customElements&&["au-alert","au-icon"].forEach((a=>{switch(a){case"au-alert":customElements.get(r(a))||customElements.define(r(a),b);break;case"au-icon":customElements.get(r(a))||i()}}))}m();const v=b,g=m;export{v as AuAlert,g as defineCustomElement}
@@ -1 +1 @@
1
- import{t as a,p as r,H as e,h as t,c as i}from"./p-DTeHrc-Q.js";import{w as s}from"./p-Ci-XzGE3.js";import{d as o}from"./p-DIL-tsh4.js";const n={extraSmall:"extraSmall",small:"small",medium:"medium",large:"large",extraLarge:"extraLarge"},l={circle:"circle",square:"square"},c={lazy:"lazy",eager:"eager"},d="user-round",v=new Set(Object.values(n)),u=new Set(Object.values(l)),h=new Set(Object.values(c)),m=a=>"string"==typeof a&&v.has(a),g=a=>"string"==typeof a&&u.has(a),p=a=>"string"==typeof a&&h.has(a),f=/[\p{L}\p{N}]/u;function b(a){const r=Intl.Segmenter;return"function"==typeof r?Array.from(new r(void 0,{granularity:"grapheme"}).segment(a),(a=>a.segment)):Array.from(a)}const z={extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},x=a=>"string"==typeof a?a.trim():"",y=r(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow()}get host(){return this}src;label;initials;icon=d;decorative=!1;size=n.medium;shape=l.circle;loading=c.lazy;imageState="loading";imageElement;loaded=!1;onSrcChange(a,r){x(a)!==x(r)&&(this.imageState="loading")}connectedCallback(){this.loaded&&this.classifySettledImage()}componentWillRender(){this.warnAboutProperties()}componentDidLoad(){this.loaded=!0,this.classifySettledImage()}warn(a,r){s(this.host.ownerDocument,"au-avatar:"+a,"[au-avatar] "+r)}warnAboutProperties(){""!==x(this.label)||this.decorative||this.warn("unnamed",'This avatar has no "label" and is not "decorative", so it is hidden from assistive technology. Set "label" to the name, or "decorative" when the name is next to it.'),m(this.size)||this.warn("size",`Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "extraSmall", "small", "medium", "large" or "extraLarge".`),g(this.shape)||this.warn("shape",`Unsupported shape ${JSON.stringify(this.shape)}; it renders "circle". Use "circle" or "square".`)}classifySettledImage(){const a=this.imageElement;a&&"loading"===this.imageState&&a.complete&&(this.imageState=a.naturalWidth>0?"loaded":"error")}handleLoad=()=>{this.imageState="loaded"};handleError=()=>{this.imageState="error"};render(){const a=x(this.label),r=!this.decorative&&""!==a,e=x(this.src),s=""!==e&&"error"!==this.imageState,o=function(a){if("string"!=typeof a)return"";const r=a.trim();return""===r?"":b(r).slice(0,3).join("")}(this.initials)||function(a){if("string"!=typeof a)return"";const r=[];for(const e of a.trim().split(/\s+/u)){const a=b(e)[0];void 0!==a&&f.test(a)&&r.push(a)}const e=r[0];return void 0===e?"":`${e}${(r.length>1?r[r.length-1]:void 0)??""}`.toUpperCase()}(a),v=m(this.size)?this.size:n.medium,u=g(this.shape)?this.shape:l.circle,h=""===x(this.icon)?d:this.icon;return t(i,{key:"b0e7980c6ebd6ee5ac63b7c8622ac607d15c2b47",...""!==e?{"image-state":this.imageState}:{}},t("span",{key:"dc2bc506eee9ca41ee0749020ed9c1e9a584f999",part:"base",class:`avatar avatar--size-${z[v]} avatar--shape-${u}`,...r?{role:"img","aria-label":a}:{"aria-hidden":"true"}},""!==o?t("span",{part:"initials",class:"avatar__initials","aria-hidden":"true"},o):t("au-icon",{part:"icon",class:"avatar__icon",icon:h,decorative:!0}),s&&t("img",{key:"52c20ab0d43f930e8b0aa759a4feb0d9cba1f929",part:"image",class:"avatar__image",alt:"",src:e,loading:p(this.loading)?this.loading:c.lazy,decoding:"async",ref:a=>{this.imageElement=a},onLoad:this.handleLoad,onError:this.handleError})))}static get watchers(){return{src:[{onSrcChange:0}]}}static get style(){return":host{display:inline-flex;flex:none;vertical-align:middle}.avatar{--_avatar-size:var(--aurora-avatar-size, 40px);align-items:center;background:var(--aurora-avatar-background, var(--aurora-color-canvas, #f7f8fa));block-size:var(--_avatar-size);border:var(--aurora-avatar-border-width, 1px) solid var(--aurora-avatar-border-color, var(--aurora-color-border, #d4d9e1));border-radius:50%;box-shadow:0 0 0 var(--aurora-avatar-ring-width, 0) var(--aurora-avatar-ring-color, var(--aurora-color-surface, #fff));box-sizing:border-box;color:var(--aurora-avatar-color, var(--aurora-color-text-muted, #566273));display:inline-flex;flex:none;font-family:var(--aurora-avatar-font-family, var(--aurora-font-family-body, Lato, ui-sans-serif, system-ui, sans-serif));font-size:calc(var(--_avatar-size) * 0.4);font-weight:var(--aurora-avatar-font-weight, var(--aurora-font-weight-semibold, 600));inline-size:var(--_avatar-size);justify-content:center;line-height:1;overflow:hidden;position:relative;user-select:none}.avatar--size-extra-small{--_avatar-size:var(--aurora-avatar-size, 24px)}.avatar--size-small{--_avatar-size:var(--aurora-avatar-size, 32px)}.avatar--size-medium{--_avatar-size:var(--aurora-avatar-size, 40px)}.avatar--size-large{--_avatar-size:var(--aurora-avatar-size, 48px)}.avatar--size-extra-large{--_avatar-size:var(--aurora-avatar-size, 64px)}.avatar--shape-square{border-radius:var(--aurora-avatar-radius, var(--aurora-radius-md, 0.5rem))}.avatar__initials{unicode-bidi:plaintext;white-space:nowrap}.avatar__icon{--aurora-icon-size:calc(var(--_avatar-size) * 0.55)}.avatar__image{block-size:100%;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--aurora-motion-duration-fast, 120ms) ease-out}:host([image-state=loaded]) .avatar__image{opacity:1}:host([image-state=loaded]) .avatar__initials,:host([image-state=loaded]) .avatar__icon{visibility:hidden}@media (prefers-reduced-motion: reduce){.avatar__image{transition:none}}@media (forced-colors: active){.avatar{border-width:max(var(--aurora-avatar-border-width, 1px), 1px)}}"}},[513,"au-avatar",{src:[1],label:[1],initials:[1],icon:[1],decorative:[516],size:[513],shape:[513],loading:[1],imageState:[32]},void 0,{src:[{onSrcChange:0}]}]);function _(){"undefined"!=typeof customElements&&["au-avatar","au-icon"].forEach((r=>{switch(r){case"au-avatar":customElements.get(a(r))||customElements.define(a(r),y);break;case"au-icon":customElements.get(a(r))||o()}}))}_();const w=y,S=_;export{w as AuAvatar,S as defineCustomElement}
1
+ import{t as a,p as r,H as e,h as t,c as i}from"./p-DTeHrc-Q.js";import{w as s}from"./p-Ci-XzGE3.js";import{d as o}from"./p-ZpauIcNt.js";const n={extraSmall:"extraSmall",small:"small",medium:"medium",large:"large",extraLarge:"extraLarge"},l={circle:"circle",square:"square"},c={lazy:"lazy",eager:"eager"},d="user-round",v=new Set(Object.values(n)),u=new Set(Object.values(l)),h=new Set(Object.values(c)),m=a=>"string"==typeof a&&v.has(a),g=a=>"string"==typeof a&&u.has(a),p=a=>"string"==typeof a&&h.has(a),f=/[\p{L}\p{N}]/u;function b(a){const r=Intl.Segmenter;return"function"==typeof r?Array.from(new r(void 0,{granularity:"grapheme"}).segment(a),(a=>a.segment)):Array.from(a)}const z={extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},x=a=>"string"==typeof a?a.trim():"",y=r(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow()}get host(){return this}src;label;initials;icon=d;decorative=!1;size=n.medium;shape=l.circle;loading=c.lazy;imageState="loading";imageElement;loaded=!1;onSrcChange(a,r){x(a)!==x(r)&&(this.imageState="loading")}connectedCallback(){this.loaded&&this.classifySettledImage()}componentWillRender(){this.warnAboutProperties()}componentDidLoad(){this.loaded=!0,this.classifySettledImage()}warn(a,r){s(this.host.ownerDocument,"au-avatar:"+a,"[au-avatar] "+r)}warnAboutProperties(){""!==x(this.label)||this.decorative||this.warn("unnamed",'This avatar has no "label" and is not "decorative", so it is hidden from assistive technology. Set "label" to the name, or "decorative" when the name is next to it.'),m(this.size)||this.warn("size",`Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "extraSmall", "small", "medium", "large" or "extraLarge".`),g(this.shape)||this.warn("shape",`Unsupported shape ${JSON.stringify(this.shape)}; it renders "circle". Use "circle" or "square".`)}classifySettledImage(){const a=this.imageElement;a&&"loading"===this.imageState&&a.complete&&(this.imageState=a.naturalWidth>0?"loaded":"error")}handleLoad=()=>{this.imageState="loaded"};handleError=()=>{this.imageState="error"};render(){const a=x(this.label),r=!this.decorative&&""!==a,e=x(this.src),s=""!==e&&"error"!==this.imageState,o=function(a){if("string"!=typeof a)return"";const r=a.trim();return""===r?"":b(r).slice(0,3).join("")}(this.initials)||function(a){if("string"!=typeof a)return"";const r=[];for(const e of a.trim().split(/\s+/u)){const a=b(e)[0];void 0!==a&&f.test(a)&&r.push(a)}const e=r[0];return void 0===e?"":`${e}${(r.length>1?r[r.length-1]:void 0)??""}`.toUpperCase()}(a),v=m(this.size)?this.size:n.medium,u=g(this.shape)?this.shape:l.circle,h=""===x(this.icon)?d:this.icon;return t(i,{key:"b0e7980c6ebd6ee5ac63b7c8622ac607d15c2b47",...""!==e?{"image-state":this.imageState}:{}},t("span",{key:"dc2bc506eee9ca41ee0749020ed9c1e9a584f999",part:"base",class:`avatar avatar--size-${z[v]} avatar--shape-${u}`,...r?{role:"img","aria-label":a}:{"aria-hidden":"true"}},""!==o?t("span",{part:"initials",class:"avatar__initials","aria-hidden":"true"},o):t("au-icon",{part:"icon",class:"avatar__icon",icon:h,decorative:!0}),s&&t("img",{key:"52c20ab0d43f930e8b0aa759a4feb0d9cba1f929",part:"image",class:"avatar__image",alt:"",src:e,loading:p(this.loading)?this.loading:c.lazy,decoding:"async",ref:a=>{this.imageElement=a},onLoad:this.handleLoad,onError:this.handleError})))}static get watchers(){return{src:[{onSrcChange:0}]}}static get style(){return":host{display:inline-flex;flex:none;vertical-align:middle}.avatar{--_avatar-size:var(--aurora-avatar-size, 40px);align-items:center;background:var(--aurora-avatar-background, var(--aurora-color-canvas, #f7f8fa));block-size:var(--_avatar-size);border:var(--aurora-avatar-border-width, 1px) solid var(--aurora-avatar-border-color, var(--aurora-color-border, #d4d9e1));border-radius:50%;box-shadow:0 0 0 var(--aurora-avatar-ring-width, 0) var(--aurora-avatar-ring-color, var(--aurora-color-surface, #fff));box-sizing:border-box;color:var(--aurora-avatar-color, var(--aurora-color-text-muted, #566273));display:inline-flex;flex:none;font-family:var(--aurora-avatar-font-family, var(--aurora-font-family-body, Lato, ui-sans-serif, system-ui, sans-serif));font-size:calc(var(--_avatar-size) * 0.4);font-weight:var(--aurora-avatar-font-weight, var(--aurora-font-weight-semibold, 600));inline-size:var(--_avatar-size);justify-content:center;line-height:1;overflow:hidden;position:relative;user-select:none}.avatar--size-extra-small{--_avatar-size:var(--aurora-avatar-size, 24px)}.avatar--size-small{--_avatar-size:var(--aurora-avatar-size, 32px)}.avatar--size-medium{--_avatar-size:var(--aurora-avatar-size, 40px)}.avatar--size-large{--_avatar-size:var(--aurora-avatar-size, 48px)}.avatar--size-extra-large{--_avatar-size:var(--aurora-avatar-size, 64px)}.avatar--shape-square{border-radius:var(--aurora-avatar-radius, var(--aurora-radius-md, 0.5rem))}.avatar__initials{unicode-bidi:plaintext;white-space:nowrap}.avatar__icon{--aurora-icon-size:calc(var(--_avatar-size) * 0.55)}.avatar__image{block-size:100%;inline-size:100%;inset:0;object-fit:cover;opacity:0;position:absolute;transition:opacity var(--aurora-motion-duration-fast, 120ms) ease-out}:host([image-state=loaded]) .avatar__image{opacity:1}:host([image-state=loaded]) .avatar__initials,:host([image-state=loaded]) .avatar__icon{visibility:hidden}@media (prefers-reduced-motion: reduce){.avatar__image{transition:none}}@media (forced-colors: active){.avatar{border-width:max(var(--aurora-avatar-border-width, 1px), 1px)}}"}},[513,"au-avatar",{src:[1],label:[1],initials:[1],icon:[1],decorative:[516],size:[513],shape:[513],loading:[1],imageState:[32]},void 0,{src:[{onSrcChange:0}]}]);function _(){"undefined"!=typeof customElements&&["au-avatar","au-icon"].forEach((r=>{switch(r){case"au-avatar":customElements.get(a(r))||customElements.define(a(r),y);break;case"au-icon":customElements.get(a(r))||o()}}))}_();const w=y,S=_;export{w as AuAvatar,S as defineCustomElement}
@@ -1 +1 @@
1
- import{t as r,p as e,H as a,h as t,c as o}from"./p-DTeHrc-Q.js";import"./p-TdUs41zm.js";import{r as i,N as n}from"./p-klxij34W.js";import{d as s}from"./p-DgfWQsck.js";import{w as c}from"./p-Ci-XzGE3.js";const l=e(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow()}get host(){return this}href;target;rel;newTabLabel;current=!1;notifyParent(){s(this.host)}componentWillLoad(){const r=this.host.ownerDocument;this.host.hasAttribute("aria-current")&&c(r,"au-breadcrumb-item:aria-current","au-breadcrumb-item: aria-current on the host is not supported and was removed. au-breadcrumb marks the last item as the current page."),"au-breadcrumb"!==this.host.parentElement?.localName&&c(r,"au-breadcrumb-item:no-parent","au-breadcrumb-item: this item is not a child of au-breadcrumb, so it is a list item without a list."),this.enforceHostCurrent()}componentDidRender(){this.enforceHostCurrent()}get hostCurrent(){return this.current&&!i(this.linkInput()).isLink}enforceHostCurrent(){const r=this.hostCurrent?"page":null;this.host.getAttribute("aria-current")!==r&&(r?this.host.setAttribute("aria-current",r):this.host.removeAttribute("aria-current"))}linkInput(){return{href:this.href,target:this.target,rel:this.rel,newTabLabel:this.newTabLabel,unavailable:!1}}render(){const r=i(this.linkInput());return t(o,{key:"2254edf764d84aa8d45a6b22c58865a41f44be49",role:"listitem","aria-current":this.hostCurrent?"page":void 0},t("span",{key:"177cb66a087d52bcf8aaa399d6c93fdfed278925",class:"separator",part:"separator","aria-hidden":"true"}),r.isLink?t("a",{class:"link",part:"link",...r.attributes,"aria-current":this.current?"page":void 0},t("slot",null),r.opensNewTab?t("span",{class:"link__visually-hidden"},r.newTabText):null,r.opensNewTab?t("svg",{class:"link__new-tab-icon",part:"new-tab-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false"},n.map((r=>t("path",{d:r})))):null):t("span",{class:"text",part:"text"},t("slot",null)))}static get watchers(){return{current:[{notifyParent:0}]}}static get style(){return':host{--_bc-color:var(--aurora-breadcrumb-item-color, var(--aurora-color-primary, #0b5cad));--_bc-hover-color:var(--aurora-breadcrumb-item-hover-color, var(--aurora-color-text, #202733));--_bc-current-color:var( --aurora-breadcrumb-item-current-color, var(--aurora-color-text, #202733) );--_bc-focus-ring:var(--aurora-breadcrumb-item-focus-ring, var(--aurora-color-focus, Highlight));--_bc-transition-duration:var( --aurora-breadcrumb-item-transition-duration, var(--aurora-motion-duration-fast, 120ms) );--_bc-max-inline-size:var(--aurora-breadcrumb-item-max-inline-size, none);align-items:center;display:inline-flex;gap:var(--aurora-breadcrumb-gap, 0.5rem);max-inline-size:100%;min-inline-size:0}.separator{color:var(--aurora-breadcrumb-separator-color, var(--aurora-color-text-muted, #566273));flex:none}.separator::before{content:var(--aurora-breadcrumb-separator, "/")/""}:host(:first-of-type) .separator{display:none}:host(:dir(rtl)) .separator{scale:-1 1}.link,.text{display:inline-block;max-inline-size:var(--_bc-max-inline-size);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link{border-radius:var(--aurora-radius-sm, 0.25rem);color:var(--_bc-color);font-weight:var(--aurora-font-weight-regular, 400);text-decoration:underline;text-decoration-color:currentcolor;text-underline-offset:0.2em;transition-duration:var(--_bc-transition-duration);transition-property:color, text-decoration-color;transition-timing-function:var(--aurora-motion-easing-standard, ease)}.link:hover{color:var(--_bc-hover-color)}.link[aria-current]{color:var(--_bc-current-color);font-weight:var(--aurora-font-weight-medium, 500);text-decoration:none}.link:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px);outline-color:var(--_bc-focus-ring)}.text{color:var(--aurora-color-text-muted, #566273)}:host([aria-current]) .text{color:var(--_bc-current-color);font-weight:var(--aurora-font-weight-medium, 500)}.link__new-tab-icon{block-size:0.875em;inline-size:0.875em;margin-inline-start:0.25em;vertical-align:-0.1em}.link__visually-hidden{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@media (prefers-reduced-motion: reduce){.link{transition-duration:0s}}@media (forced-colors: active){.link{color:LinkText;forced-color-adjust:none}.link:hover{color:Highlight}.link[aria-current],.text,:host([aria-current]) .text,.separator{color:CanvasText}.link:focus-visible{outline-color:Highlight}}'}},[769,"au-breadcrumb-item",{href:[1],target:[1],rel:[1],newTabLabel:[1,"new-tab-label"],current:[1540]},void 0,{current:[{notifyParent:0}]}]);function u(){"undefined"!=typeof customElements&&["au-breadcrumb-item"].forEach((e=>{"au-breadcrumb-item"===e&&(customElements.get(r(e))||customElements.define(r(e),l))}))}u();const d=l,m=u;export{d as AuBreadcrumbItem,m as defineCustomElement}
1
+ import{t as r,p as e,H as a,h as t,c as o}from"./p-DTeHrc-Q.js";import"./p-TdUs41zm.js";import{r as i,N as n}from"./p-klxij34W.js";import{d as s}from"./p-DgfWQsck.js";import{w as c}from"./p-Ci-XzGE3.js";const l=e(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow()}get host(){return this}href;target;rel;newTabLabel;current=!1;notifyParent(){s(this.host)}componentWillLoad(){const r=this.host.ownerDocument;this.host.hasAttribute("aria-current")&&c(r,"au-breadcrumb-item:aria-current","au-breadcrumb-item: aria-current on the host is not supported and was removed. au-breadcrumb marks the last item as the current page."),"au-breadcrumb"!==this.host.parentElement?.localName&&c(r,"au-breadcrumb-item:no-parent","au-breadcrumb-item: this item is not a child of au-breadcrumb, so it is a list item without a list."),this.enforceHostCurrent()}componentDidRender(){this.enforceHostCurrent()}get hostCurrent(){return this.current&&!i(this.linkInput()).isLink}enforceHostCurrent(){const r=this.hostCurrent?"page":null;this.host.getAttribute("aria-current")!==r&&(r?this.host.setAttribute("aria-current",r):this.host.removeAttribute("aria-current"))}linkInput(){return{href:this.href,target:this.target,rel:this.rel,newTabLabel:this.newTabLabel,unavailable:!1}}render(){const r=i(this.linkInput());return t(o,{key:"ee68ef1650d5050a7f1afdb9c753b85b1a0e9a07",role:"listitem","aria-current":this.hostCurrent?"page":void 0},t("span",{key:"196730a58f30e0ec902036ad0c7fa435bf4a5aff",class:"separator",part:"separator","aria-hidden":"true"}),r.isLink?t("a",{class:"link",part:"link",...r.attributes,"aria-current":this.current?"page":void 0},t("slot",null),r.opensNewTab?t("span",{class:"link__visually-hidden"},r.newTabText):null,r.opensNewTab?t("svg",{class:"link__new-tab-icon",part:"new-tab-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false"},n.map((r=>t("path",{d:r})))):null):t("span",{class:"text",part:"text"},t("slot",null)))}static get watchers(){return{current:[{notifyParent:0}]}}static get style(){return':host{--_bc-color:var(--aurora-breadcrumb-item-color, var(--aurora-color-primary, #0b5cad));--_bc-hover-color:var(--aurora-breadcrumb-item-hover-color, var(--aurora-color-text, #202733));--_bc-current-color:var( --aurora-breadcrumb-item-current-color, var(--aurora-color-text, #202733) );--_bc-focus-ring:var(--aurora-breadcrumb-item-focus-ring, var(--aurora-color-focus, Highlight));--_bc-transition-duration:var( --aurora-breadcrumb-item-transition-duration, var(--aurora-motion-duration-fast, 120ms) );--_bc-max-inline-size:var(--aurora-breadcrumb-item-max-inline-size, none);align-items:center;display:inline-flex;gap:var(--aurora-breadcrumb-gap, 0.5rem);max-inline-size:100%;min-inline-size:0}.separator{color:var(--aurora-breadcrumb-separator-color, var(--aurora-color-text-muted, #566273));flex:none}.separator::before{content:var(--aurora-breadcrumb-separator, "/")/""}:host(:first-of-type) .separator{display:none}:host(:dir(rtl)) .separator{scale:-1 1}.link,.text{display:inline-block;max-inline-size:var(--_bc-max-inline-size);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link{border-radius:var(--aurora-radius-sm, 0.25rem);color:var(--_bc-color);font-weight:var(--aurora-font-weight-regular, 400);text-decoration:underline;text-decoration-color:currentcolor;text-underline-offset:0.2em;transition-duration:var(--_bc-transition-duration);transition-property:color, text-decoration-color;transition-timing-function:var(--aurora-motion-easing-standard, ease)}.link:hover{color:var(--_bc-hover-color)}.link[aria-current]{color:var(--_bc-current-color);font-weight:var(--aurora-font-weight-medium, 500);text-decoration:none}.link:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px);outline-color:var(--_bc-focus-ring)}.text{color:var(--aurora-color-text-muted, #566273)}:host([aria-current]) .text{color:var(--_bc-current-color);font-weight:var(--aurora-font-weight-medium, 500)}.link__new-tab-icon{block-size:0.875em;inline-size:0.875em;margin-inline-start:0.25em;vertical-align:-0.1em}.link__visually-hidden{border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}@media (prefers-reduced-motion: reduce){.link{transition-duration:0s}}@media (forced-colors: active){.link{color:LinkText;forced-color-adjust:none}.link:hover{color:Highlight}.link[aria-current],.text,:host([aria-current]) .text,.separator{color:CanvasText}.link:focus-visible{outline-color:Highlight}}'}},[769,"au-breadcrumb-item",{href:[1],target:[1],rel:[1],newTabLabel:[1,"new-tab-label"],current:[1540]},void 0,{current:[{notifyParent:0}]}]);function u(){"undefined"!=typeof customElements&&["au-breadcrumb-item"].forEach((e=>{"au-breadcrumb-item"===e&&(customElements.get(r(e))||customElements.define(r(e),l))}))}u();const d=l,m=u;export{d as AuBreadcrumbItem,m as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as a,h as r}from"./p-DTeHrc-Q.js";import{w as s}from"./p-Ci-XzGE3.js";const i="au-breadcrumb-item",n=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get host(){return this}label;slotElement;items=[];syncing=!1;loaded=!1;connectedCallback(){this.loaded&&this.discoverItems()}componentDidLoad(){this.loaded=!0,this.discoverItems()}handleItemUpdate(t){!this.syncing&&this.items.includes(t.target)&&this.sync()}handleSlotChange=()=>{this.discoverItems()};discoverItems(){const t=this.slotElement?.assignedElements({flatten:!0})??[];this.items=t.filter((t=>t.localName===i));const e=t.find((t=>t.localName!==i));e&&s(this.host.ownerDocument,"au-breadcrumb:foreign-child",`au-breadcrumb: <${e.localName}> is not an ${i} and is ignored. Only ${i} belongs in the default slot.`),this.sync()}sync(){const t=this.items.length-1;this.syncing=!0;try{this.items.forEach(((e,a)=>{const r=a===t;e.current!==r&&(e.current=r)}))}finally{this.syncing=!1}}render(){const t=this.label?.trim()||"Breadcrumb";return r("nav",{key:"08d5ffd9c15c512e4585f6612c8649bbfa47752d",part:"nav",class:"breadcrumb","aria-label":t},r("ol",{key:"2fd8ff549008c7e495f8bd987760a5d53046c826",part:"list",class:"breadcrumb__list"},r("slot",{key:"e77dcc3929a55bf511cf21688200eb1083fdb589",onSlotchange:this.handleSlotChange,ref:t=>{this.slotElement=t}})))}static get style(){return":host{display:block}.breadcrumb{font-family:var(--aurora-font-family, inherit);font-size:var(--aurora-breadcrumb-font-size, var(--aurora-font-size-md, 1rem));line-height:var(--aurora-line-height-normal, 1.5)}.breadcrumb__list{align-items:center;column-gap:var(--aurora-breadcrumb-gap, 0.5rem);display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;row-gap:0.25rem}"}},[769,"au-breadcrumb",{label:[1]},[[0,"au-item-update","handleItemUpdate"]]]);function o(){"undefined"!=typeof customElements&&["au-breadcrumb"].forEach((e=>{"au-breadcrumb"===e&&(customElements.get(t(e))||customElements.define(t(e),n))}))}o();const c=n,l=o;export{c as AuBreadcrumb,l as defineCustomElement}
1
+ import{t as e,p as t,H as a,h as r}from"./p-DTeHrc-Q.js";import{w as s}from"./p-Ci-XzGE3.js";const i="au-breadcrumb-item",n=t(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get host(){return this}label;slotElement;items=[];syncing=!1;loaded=!1;connectedCallback(){this.loaded&&this.discoverItems()}componentDidLoad(){this.loaded=!0,this.discoverItems()}handleItemUpdate(e){!this.syncing&&this.items.includes(e.target)&&this.sync()}handleSlotChange=()=>{this.discoverItems()};discoverItems(){const e=this.slotElement?.assignedElements({flatten:!0})??[];this.items=e.filter((e=>e.localName===i));const t=e.find((e=>e.localName!==i));t&&s(this.host.ownerDocument,"au-breadcrumb:foreign-child",`au-breadcrumb: <${t.localName}> is not an ${i} and is ignored. Only ${i} belongs in the default slot.`),this.sync()}sync(){const e=this.items.length-1;this.syncing=!0;try{this.items.forEach(((t,a)=>{const r=a===e;t.current!==r&&(t.current=r)}))}finally{this.syncing=!1}}render(){const e=this.label?.trim()||"Breadcrumb";return r("nav",{key:"868345a9015016c337224d491764ae8840bb6d2c",part:"nav",class:"breadcrumb","aria-label":e},r("ol",{key:"822bea9b13bcf2fd6489eae370e2df0c944452ed",part:"list",class:"breadcrumb__list"},r("slot",{key:"a1358a4ed6493eaacca55dc3b46bff183bbe7410",onSlotchange:this.handleSlotChange,ref:e=>{this.slotElement=e}})))}static get style(){return":host{display:block}.breadcrumb{font-family:var(--aurora-font-family, inherit);font-size:var(--aurora-breadcrumb-font-size, var(--aurora-font-size-md, 1rem));line-height:var(--aurora-line-height-normal, 1.5)}.breadcrumb__list{align-items:center;column-gap:var(--aurora-breadcrumb-gap, 0.5rem);display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;row-gap:0.25rem}"}},[769,"au-breadcrumb",{label:[1]},[[0,"au-item-update","handleItemUpdate"]]]);function o(){"undefined"!=typeof customElements&&["au-breadcrumb"].forEach((t=>{"au-breadcrumb"===t&&(customElements.get(e(t))||customElements.define(e(t),n))}))}o();const c=n,l=o;export{c as AuBreadcrumb,l as defineCustomElement}
@@ -1 +1 @@
1
- import{t as o,p as r,H as e,h as c,c as a}from"./p-DTeHrc-Q.js";import{o as i}from"./p-CrKUXDm4.js";import{c as t}from"./p-kEvQ5xF7.js";import{c as n,a as h}from"./p-C48ks26E.js";import{F as d,r as s,j as b,d as l}from"./p-gvyxpLwV.js";const k=r(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals()}get host(){return this}internals;checked=!1;indeterminate=!1;value="on";name;form;label;required=!1;disabled=!1;invalid=!1;hint;error;invalidMessage;ariaLabel;formDisabled=!1;hasInteracted=!1;nativeInvalid=!1;checkboxId=n("checkbox");hintId=h(this.checkboxId).hint;errorId=h(this.checkboxId).error;formControl=new d((()=>this.internals));initialChecked=!1;inputElement;componentWillLoad(){this.initialChecked=this.checked}componentDidRender(){const o=this.inputElement;o&&(o.indeterminate=this.indeterminate),this.syncFormState()}formDisabledCallback(o){this.formDisabled=o,this.syncFormState()}formResetCallback(){this.hasInteracted=!1,this.checked=this.initialChecked,this.syncFormState()}formStateRestoreCallback(o,r){const e=s(o);void 0!==e&&(this.hasInteracted=!1,this.checked=e,this.syncFormState())}async setFocus(o){this.inputElement?.focus(o)}get isDisabled(){return this.disabled||this.formDisabled}get errorText(){return this.error?.trim()||void 0}get hintText(){return this.hint?.trim()||void 0}get hasCustomInvalidState(){return this.invalid||!!this.errorText}get isInvalid(){return!this.isDisabled&&(this.hasCustomInvalidState||this.nativeInvalid&&this.hasInteracted)}get descriptionIds(){return b(this.hintText?this.hintId:void 0,this.errorText?this.errorId:void 0)}handleCheckedChange(o){const r=this.inputElement;r&&r.checked!==o&&(r.checked=o),this.syncFormState(r)}handleInput=o=>{this.hasInteracted=!0,this.indeterminate=!1,this.checked=o.currentTarget.checked};handleChange=o=>{this.hasInteracted=!0,this.indeterminate=!1,this.checked=o.currentTarget.checked,l(this.host)};syncFormState(o=this.inputElement){const r=this.errorText,{value:e,state:c}=t(this.checked,this.value),{nativeInvalid:a}=this.formControl.sync({value:e,state:c,disabled:this.isDisabled,barred:!1,customInvalid:this.hasCustomInvalidState,...void 0!==r&&{error:r},...void 0!==this.invalidMessage&&{invalidMessage:this.invalidMessage},...o&&{target:o}});void 0!==a&&(this.nativeInvalid=a)}render(){const o=this.label?.trim(),r=this.hintText,e=this.errorText,t=i({"aria-label":o?void 0:this.ariaLabel?.trim()||void 0,"aria-invalid":this.isInvalid?"true":void 0,"aria-describedby":this.descriptionIds});return c(a,{key:"98089b3dcee0484fa7ddba27750c3063052548b1",class:{"checkbox-host--disabled":this.isDisabled,"checkbox-host--invalid":this.isInvalid}},c("div",{key:"4aebad634ef70eeaf7c3f17496e2a472b79c15a5",class:{checkbox:!0,"checkbox--checked":this.checked,"checkbox--indeterminate":this.indeterminate,"checkbox--disabled":this.isDisabled,"checkbox--invalid":this.isInvalid}},c("label",{key:"9bd7e05758b67da986b88398842d41e39d50aaf9",class:"checkbox__label",part:"label"},c("input",{key:"9ed2673b9d6a1ce0970f320c6fb1bb4c499c6858",ref:o=>{this.inputElement=o,o&&o.checked!==this.checked&&(o.checked=this.checked)},id:this.checkboxId,class:"checkbox__control",part:"control",type:"checkbox",checked:this.checked,required:this.required,disabled:this.isDisabled,...t,onInput:this.handleInput,onChange:this.handleChange}),c("span",{key:"247a69410948dd28d55c587bbd574dd3bd8ed37d",class:"checkbox__indicator",part:"indicator","aria-hidden":"true"}),c("span",{key:"e8077a941716f521bc4858d28c3ac1fbca25f880",class:"checkbox__text",part:"text"},c("slot",{key:"d9e5f00e29b31190c19d4d80fdaa7552fcd8922c"},o)),this.required?c("span",{class:"checkbox__required","aria-hidden":"true"},"*"):null),r?c("p",{class:"checkbox__hint",id:this.hintId,part:"hint"},r):null,e?c("p",{class:"checkbox__error",id:this.errorId,part:"error","aria-live":"polite"},e):null))}static get formAssociated(){return!0}static get watchers(){return{checked:[{handleCheckedChange:0}]}}static get style(){return':host{--_checkbox-size:var(--aurora-checkbox-size, 1.25rem);--_checkbox-gap:var(--aurora-checkbox-gap, 0.625rem);--_checkbox-radius:var(--aurora-checkbox-radius, var(--aurora-radius-sm, 0.25rem));--_checkbox-border:var(--aurora-checkbox-border, var(--aurora-color-border, #cbd2dc));--_checkbox-border-hover:var( --aurora-checkbox-border-hover, var(--aurora-color-primary, #3157a4) );--_checkbox-border-invalid:var( --aurora-checkbox-border-invalid, var(--aurora-color-danger, #a32635) );--_checkbox-background:var(--aurora-checkbox-background, var(--aurora-color-surface, #fff));--_checkbox-checked-background:var( --aurora-checkbox-checked-background, var(--aurora-color-primary, #3157a4) );--_checkbox-checked-color:var( --aurora-checkbox-checked-color, var(--aurora-color-primary-contrast, #fff) );--_checkbox-focus-ring:var(--aurora-checkbox-focus-ring, var(--aurora-color-focus, Highlight));--_checkbox-transition-duration:var( --aurora-checkbox-transition-duration, var(--aurora-motion-duration-fast, 120ms) );display:block;max-width:100%}.checkbox{color:var(--aurora-checkbox-label-color, var(--aurora-color-text, #202733));display:flex;flex-direction:column;font-family:var(--aurora-font-family, inherit);gap:0.25rem;min-width:0}.checkbox__label{align-items:flex-start;align-self:flex-start;cursor:pointer;display:inline-flex;gap:var(--_checkbox-gap);line-height:var(--aurora-line-height-normal, 1.5);position:relative}.checkbox__control{block-size:var(--_checkbox-size);cursor:inherit;inline-size:var(--_checkbox-size);inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;position:absolute}.checkbox__indicator{background:var(--_checkbox-background);border:1px solid var(--_checkbox-border);border-radius:var(--_checkbox-radius);block-size:var(--_checkbox-size);box-sizing:border-box;display:inline-grid;flex:none;inline-size:var(--_checkbox-size);place-items:center;pointer-events:none;transition:background-color var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease), border-color var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease)}.checkbox__indicator::after{block-size:calc(var(--_checkbox-size) * 0.5);border:solid var(--_checkbox-checked-color);border-width:0 2px 2px 0;box-sizing:border-box;content:"";inline-size:calc(var(--_checkbox-size) * 0.28);margin-block-end:calc(var(--_checkbox-size) * 0.08);opacity:0;transform:rotate(45deg);transition:opacity var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease), transform var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease)}.checkbox__text{color:var(--aurora-checkbox-label-color, var(--aurora-color-text, #202733));font-size:var(--aurora-font-size-md, 1rem);min-width:0}.checkbox__required{color:var(--aurora-checkbox-error-color, var(--aurora-color-danger, #a32635));font-weight:var(--aurora-font-weight-bold, 700);margin-inline-start:calc(var(--_checkbox-gap) * -0.5)}.checkbox__hint,.checkbox__error{font-family:var(--aurora-font-family-description, var(--aurora-font-family-body, inherit));font-size:var(--aurora-font-size-sm, 0.875rem);line-height:var(--aurora-line-height-normal, 1.5);margin:0;padding-inline-start:calc(var(--_checkbox-size) + var(--_checkbox-gap))}.checkbox__hint{color:var(--aurora-checkbox-hint-color, var(--aurora-color-text-muted, #707987))}.checkbox__error{color:var(--aurora-checkbox-error-color, var(--aurora-color-danger, #a32635))}.checkbox__control:hover+.checkbox__indicator{border-color:var(--_checkbox-border-hover)}.checkbox__control:checked+.checkbox__indicator,.checkbox__control:indeterminate+.checkbox__indicator{background:var(--_checkbox-checked-background);border-color:var(--_checkbox-checked-background)}.checkbox__control:checked+.checkbox__indicator::after,.checkbox__control:indeterminate+.checkbox__indicator::after{opacity:1}.checkbox__control:indeterminate+.checkbox__indicator::after{block-size:0;border-width:0 0 2px;inline-size:calc(var(--_checkbox-size) * 0.55);margin-block-end:0;transform:none}.checkbox__control:focus-visible+.checkbox__indicator{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px);outline-color:var(--_checkbox-focus-ring)}.checkbox--invalid .checkbox__indicator,.checkbox--invalid .checkbox__control:hover+.checkbox__indicator{border-color:var(--_checkbox-border-invalid)}.checkbox--invalid .checkbox__control:checked+.checkbox__indicator,.checkbox--invalid .checkbox__control:indeterminate+.checkbox__indicator{background:var(--_checkbox-border-invalid)}.checkbox--disabled .checkbox__label{cursor:var(--aurora-disabled-cursor, not-allowed);opacity:var(--aurora-disabled-opacity, 0.58);opacity:var(--aurora-checkbox-disabled-opacity, var(--aurora-disabled-opacity, 0.65))}@media (prefers-reduced-motion: reduce){.checkbox__indicator,.checkbox__indicator::after{transition-duration:0ms}}@media (forced-colors: active){.checkbox__indicator{background:Field;border-color:FieldText;forced-color-adjust:none}.checkbox__indicator::after{border-color:HighlightText}.checkbox__control:hover+.checkbox__indicator{border-color:Highlight}.checkbox__control:checked+.checkbox__indicator,.checkbox__control:indeterminate+.checkbox__indicator{background:Highlight;border-color:Highlight}.checkbox__control:focus-visible+.checkbox__indicator{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px)}.checkbox--invalid .checkbox__indicator,.checkbox--invalid .checkbox__control:hover+.checkbox__indicator{border-color:Mark;border-width:3px}.checkbox--invalid .checkbox__control:checked+.checkbox__indicator,.checkbox--invalid .checkbox__control:indeterminate+.checkbox__indicator{background:Highlight}.checkbox--disabled .checkbox__label{opacity:1}.checkbox--disabled .checkbox__indicator{border-color:GrayText}.checkbox--disabled .checkbox__control:checked+.checkbox__indicator,.checkbox--disabled .checkbox__control:indeterminate+.checkbox__indicator{background:GrayText}.checkbox--disabled .checkbox__text{color:GrayText}}'}},[833,"au-checkbox",{checked:[1540],indeterminate:[1540],value:[1],name:[513],form:[513],label:[1],required:[516],disabled:[516],invalid:[516],hint:[1],error:[1],invalidMessage:[1,"invalid-message"],ariaLabel:[1,"aria-label"],formDisabled:[32],hasInteracted:[32],nativeInvalid:[32],setFocus:[64]},void 0,{checked:[{handleCheckedChange:0}]}]);function x(){"undefined"!=typeof customElements&&["au-checkbox"].forEach((r=>{"au-checkbox"===r&&(customElements.get(o(r))||customElements.define(o(r),k))}))}x();const _=k,u=x;export{_ as AuCheckbox,u as defineCustomElement}
1
+ import{t as o,p as r,H as e,h as c,c as a}from"./p-DTeHrc-Q.js";import{o as i}from"./p-CrKUXDm4.js";import{c as t}from"./p-kEvQ5xF7.js";import{c as n,a as h}from"./p-C48ks26E.js";import{F as d,r as s,j as b,d as l}from"./p-gvyxpLwV.js";const k=r(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.internals=this.attachInternals()}get host(){return this}internals;checked=!1;indeterminate=!1;value="on";name;form;label;required=!1;disabled=!1;invalid=!1;hint;error;invalidMessage;ariaLabel;formDisabled=!1;hasInteracted=!1;nativeInvalid=!1;checkboxId=n("checkbox");hintId=h(this.checkboxId).hint;errorId=h(this.checkboxId).error;formControl=new d((()=>this.internals));initialChecked=!1;inputElement;componentWillLoad(){this.initialChecked=this.checked}componentDidRender(){const o=this.inputElement;o&&(o.indeterminate=this.indeterminate),this.syncFormState()}formDisabledCallback(o){this.formDisabled=o,this.syncFormState()}formResetCallback(){this.hasInteracted=!1,this.checked=this.initialChecked,this.syncFormState()}formStateRestoreCallback(o,r){const e=s(o);void 0!==e&&(this.hasInteracted=!1,this.checked=e,this.syncFormState())}async setFocus(o){this.inputElement?.focus(o)}get isDisabled(){return this.disabled||this.formDisabled}get errorText(){return this.error?.trim()||void 0}get hintText(){return this.hint?.trim()||void 0}get hasCustomInvalidState(){return this.invalid||!!this.errorText}get isInvalid(){return!this.isDisabled&&(this.hasCustomInvalidState||this.nativeInvalid&&this.hasInteracted)}get descriptionIds(){return b(this.hintText?this.hintId:void 0,this.errorText?this.errorId:void 0)}handleCheckedChange(o){const r=this.inputElement;r&&r.checked!==o&&(r.checked=o),this.syncFormState(r)}handleInput=o=>{this.hasInteracted=!0,this.indeterminate=!1,this.checked=o.currentTarget.checked};handleChange=o=>{this.hasInteracted=!0,this.indeterminate=!1,this.checked=o.currentTarget.checked,l(this.host)};syncFormState(o=this.inputElement){const r=this.errorText,{value:e,state:c}=t(this.checked,this.value),{nativeInvalid:a}=this.formControl.sync({value:e,state:c,disabled:this.isDisabled,barred:!1,customInvalid:this.hasCustomInvalidState,...void 0!==r&&{error:r},...void 0!==this.invalidMessage&&{invalidMessage:this.invalidMessage},...o&&{target:o}});void 0!==a&&(this.nativeInvalid=a)}render(){const o=this.label?.trim(),r=this.hintText,e=this.errorText,t=i({"aria-label":o?void 0:this.ariaLabel?.trim()||void 0,"aria-invalid":this.isInvalid?"true":void 0,"aria-describedby":this.descriptionIds});return c(a,{key:"4327d2c1afda0d8104dd03c47f0720b8a34426f0",class:{"checkbox-host--disabled":this.isDisabled,"checkbox-host--invalid":this.isInvalid}},c("div",{key:"c881aa8e15f1f02ffe3e13dcdebb28de433db173",class:{checkbox:!0,"checkbox--checked":this.checked,"checkbox--indeterminate":this.indeterminate,"checkbox--disabled":this.isDisabled,"checkbox--invalid":this.isInvalid}},c("label",{key:"f20d816c4673c63e72070f3f708e23f734fe8240",class:"checkbox__label",part:"label"},c("input",{key:"819b78d513821b4176637369cd170e095685bb75",ref:o=>{this.inputElement=o,o&&o.checked!==this.checked&&(o.checked=this.checked)},id:this.checkboxId,class:"checkbox__control",part:"control",type:"checkbox",checked:this.checked,required:this.required,disabled:this.isDisabled,...t,onInput:this.handleInput,onChange:this.handleChange}),c("span",{key:"e25134bba61c0481a5b273f1e8e58739bf5f2dd2",class:"checkbox__indicator",part:"indicator","aria-hidden":"true"}),c("span",{key:"e83d85f447c9b0dfa66d070e33d934cd7dcf4e8c",class:"checkbox__text",part:"text"},c("slot",{key:"2ededa56a79de7deb14262804650ab3373fa850d"},o)),this.required?c("span",{class:"checkbox__required","aria-hidden":"true"},"*"):null),r?c("p",{class:"checkbox__hint",id:this.hintId,part:"hint"},r):null,e?c("p",{class:"checkbox__error",id:this.errorId,part:"error","aria-live":"polite"},e):null))}static get formAssociated(){return!0}static get watchers(){return{checked:[{handleCheckedChange:0}]}}static get style(){return':host{--_checkbox-size:var(--aurora-checkbox-size, 1.25rem);--_checkbox-gap:var(--aurora-checkbox-gap, 0.625rem);--_checkbox-radius:var(--aurora-checkbox-radius, var(--aurora-radius-sm, 0.25rem));--_checkbox-border:var(--aurora-checkbox-border, var(--aurora-color-border, #cbd2dc));--_checkbox-border-hover:var( --aurora-checkbox-border-hover, var(--aurora-color-primary, #3157a4) );--_checkbox-border-invalid:var( --aurora-checkbox-border-invalid, var(--aurora-color-danger, #a32635) );--_checkbox-background:var(--aurora-checkbox-background, var(--aurora-color-surface, #fff));--_checkbox-checked-background:var( --aurora-checkbox-checked-background, var(--aurora-color-primary, #3157a4) );--_checkbox-checked-color:var( --aurora-checkbox-checked-color, var(--aurora-color-primary-contrast, #fff) );--_checkbox-focus-ring:var(--aurora-checkbox-focus-ring, var(--aurora-color-focus, Highlight));--_checkbox-transition-duration:var( --aurora-checkbox-transition-duration, var(--aurora-motion-duration-fast, 120ms) );display:block;max-width:100%}.checkbox{color:var(--aurora-checkbox-label-color, var(--aurora-color-text, #202733));display:flex;flex-direction:column;font-family:var(--aurora-font-family, inherit);gap:0.25rem;min-width:0}.checkbox__label{align-items:flex-start;align-self:flex-start;cursor:pointer;display:inline-flex;gap:var(--_checkbox-gap);line-height:var(--aurora-line-height-normal, 1.5);position:relative}.checkbox__control{block-size:var(--_checkbox-size);cursor:inherit;inline-size:var(--_checkbox-size);inset-block-start:0;inset-inline-start:0;margin:0;opacity:0;position:absolute}.checkbox__indicator{background:var(--_checkbox-background);border:1px solid var(--_checkbox-border);border-radius:var(--_checkbox-radius);block-size:var(--_checkbox-size);box-sizing:border-box;display:inline-grid;flex:none;inline-size:var(--_checkbox-size);place-items:center;pointer-events:none;transition:background-color var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease), border-color var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease)}.checkbox__indicator::after{block-size:calc(var(--_checkbox-size) * 0.5);border:solid var(--_checkbox-checked-color);border-width:0 2px 2px 0;box-sizing:border-box;content:"";inline-size:calc(var(--_checkbox-size) * 0.28);margin-block-end:calc(var(--_checkbox-size) * 0.08);opacity:0;transform:rotate(45deg);transition:opacity var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease), transform var(--_checkbox-transition-duration) var(--aurora-motion-easing-standard, ease)}.checkbox__text{color:var(--aurora-checkbox-label-color, var(--aurora-color-text, #202733));font-size:var(--aurora-font-size-md, 1rem);min-width:0}.checkbox__required{color:var(--aurora-checkbox-error-color, var(--aurora-color-danger, #a32635));font-weight:var(--aurora-font-weight-bold, 700);margin-inline-start:calc(var(--_checkbox-gap) * -0.5)}.checkbox__hint,.checkbox__error{font-family:var(--aurora-font-family-description, var(--aurora-font-family-body, inherit));font-size:var(--aurora-font-size-sm, 0.875rem);line-height:var(--aurora-line-height-normal, 1.5);margin:0;padding-inline-start:calc(var(--_checkbox-size) + var(--_checkbox-gap))}.checkbox__hint{color:var(--aurora-checkbox-hint-color, var(--aurora-color-text-muted, #707987))}.checkbox__error{color:var(--aurora-checkbox-error-color, var(--aurora-color-danger, #a32635))}.checkbox__control:hover+.checkbox__indicator{border-color:var(--_checkbox-border-hover)}.checkbox__control:checked+.checkbox__indicator,.checkbox__control:indeterminate+.checkbox__indicator{background:var(--_checkbox-checked-background);border-color:var(--_checkbox-checked-background)}.checkbox__control:checked+.checkbox__indicator::after,.checkbox__control:indeterminate+.checkbox__indicator::after{opacity:1}.checkbox__control:indeterminate+.checkbox__indicator::after{block-size:0;border-width:0 0 2px;inline-size:calc(var(--_checkbox-size) * 0.55);margin-block-end:0;transform:none}.checkbox__control:focus-visible+.checkbox__indicator{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px);outline-color:var(--_checkbox-focus-ring)}.checkbox--invalid .checkbox__indicator,.checkbox--invalid .checkbox__control:hover+.checkbox__indicator{border-color:var(--_checkbox-border-invalid)}.checkbox--invalid .checkbox__control:checked+.checkbox__indicator,.checkbox--invalid .checkbox__control:indeterminate+.checkbox__indicator{background:var(--_checkbox-border-invalid)}.checkbox--disabled .checkbox__label{cursor:var(--aurora-disabled-cursor, not-allowed);opacity:var(--aurora-disabled-opacity, 0.58);opacity:var(--aurora-checkbox-disabled-opacity, var(--aurora-disabled-opacity, 0.65))}@media (prefers-reduced-motion: reduce){.checkbox__indicator,.checkbox__indicator::after{transition-duration:0ms}}@media (forced-colors: active){.checkbox__indicator{background:Field;border-color:FieldText;forced-color-adjust:none}.checkbox__indicator::after{border-color:HighlightText}.checkbox__control:hover+.checkbox__indicator{border-color:Highlight}.checkbox__control:checked+.checkbox__indicator,.checkbox__control:indeterminate+.checkbox__indicator{background:Highlight;border-color:Highlight}.checkbox__control:focus-visible+.checkbox__indicator{outline:var(--aurora-focus-ring-width, 2px) solid var(--aurora-focus-ring-color, var(--aurora-color-focus, Highlight));outline-offset:var(--aurora-focus-ring-offset, 2px)}.checkbox--invalid .checkbox__indicator,.checkbox--invalid .checkbox__control:hover+.checkbox__indicator{border-color:Mark;border-width:3px}.checkbox--invalid .checkbox__control:checked+.checkbox__indicator,.checkbox--invalid .checkbox__control:indeterminate+.checkbox__indicator{background:Highlight}.checkbox--disabled .checkbox__label{opacity:1}.checkbox--disabled .checkbox__indicator{border-color:GrayText}.checkbox--disabled .checkbox__control:checked+.checkbox__indicator,.checkbox--disabled .checkbox__control:indeterminate+.checkbox__indicator{background:GrayText}.checkbox--disabled .checkbox__text{color:GrayText}}'}},[833,"au-checkbox",{checked:[1540],indeterminate:[1540],value:[1],name:[513],form:[513],label:[1],required:[516],disabled:[516],invalid:[516],hint:[1],error:[1],invalidMessage:[1,"invalid-message"],ariaLabel:[1,"aria-label"],formDisabled:[32],hasInteracted:[32],nativeInvalid:[32],setFocus:[64]},void 0,{checked:[{handleCheckedChange:0}]}]);function x(){"undefined"!=typeof customElements&&["au-checkbox"].forEach((r=>{"au-checkbox"===r&&(customElements.get(o(r))||customElements.define(o(r),k))}))}x();const _=k,u=x;export{_ as AuCheckbox,u as defineCustomElement}
@@ -1 +1 @@
1
- import{t as e,p as r,H as i,d as t,h as o,c as a}from"./p-DTeHrc-Q.js";import{d as n}from"./p-C-bRwiWx.js";import{w as s}from"./p-Ci-XzGE3.js";import{d as c}from"./p-DIL-tsh4.js";const l={small:"small",medium:"medium"},d={soft:"soft",outline:"outline"},h={removeButton:"remove-button",keyboard:"keyboard"},u="Remove",p=new Set(Object.values(l)),b=new Set(Object.values(d));new Set(Object.values(h));const m=e=>"string"==typeof e&&p.has(e),f=e=>"string"==typeof e&&b.has(e),v=e=>Array.from(e.children).filter((e=>"au-chip"===e.localName));function _(e){return e.isConnected&&!0!==e.removed&&!0!==e.disabled&&e.getClientRects().length>0&&null!=e.shadowRoot?.querySelector("button")}const g=r(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.chipChange=t(this,"au-chip-change",6)}get host(){return this}selectable=!1;selected=!1;removable=!1;removed=!1;disabled=!1;removeLabel=u;size=l.medium;variant=d.soft;chipChange;componentWillRender(){this.warnAboutProperties()}warn(e,r){s(this.host.ownerDocument,"au-chip:"+e,"[au-chip] "+r)}warnAboutProperties(){this.hasLabel()||(this.selectable?this.warn("missing-label","This selectable chip has no label, so its toggle button has no accessible name. Put the label text inside the chip."):this.removable&&this.warn("missing-label",'This removable chip has no label, so its remove button is named only "Remove". Put the label text inside the chip.')),m(this.size)||this.warn("size",`Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "small" or "medium".`),f(this.variant)||this.warn("variant",`Unsupported variant ${JSON.stringify(this.variant)}; it renders "soft". Use "soft" or "outline".`)}hasLabel(){for(const e of Array.from(this.host.childNodes)){if(3===e.nodeType&&""!==(e.textContent??"").trim())return!0;if(1===e.nodeType){const r=e.getAttribute("slot");if(null===r||""===r)return!0}}return!1}get safeRemoveLabel(){return("string"==typeof this.removeLabel?this.removeLabel.trim():"")||u}handleToggle=()=>{this.disabled||this.removed||!this.selectable||(this.selected=!this.selected,this.chipChange.emit({selected:this.selected}))};handleRemoveClick=()=>{this.startRemoval(h.removeButton)};handleKeydown=e=>{this.removable&&!this.disabled&&!this.removed&&function(e){return!("Delete"!==e.key&&"Backspace"!==e.key||e.altKey||e.ctrlKey||e.metaKey||e.repeat||e.isComposing)}(e)&&(e.preventDefault(),this.startRemoval(h.keyboard))};button(e){return this.host.shadowRoot?.querySelector(`[part="${e}"]`)??null}startRemoval(e){if(!this.removable||this.disabled||this.removed)return;const r=n(this.host.ownerDocument),i=null!==r&&r===this.button("remove-button"),t=i||null!==r&&r===this.button("button")?function(e){const r=function(e){const r=e.parentElement;if(!r)return[];const i="li"===r.localName?r.parentElement:null;return i?Array.from(i.children).filter((e=>"li"===e.localName)).flatMap(v):v(r)}(e),i=r.indexOf(e);if(-1===i)return null;for(let e=i+1;e<r.length;e+=1){const i=r[e];if(_(i))return i}for(let e=i-1;e>=0;e-=1){const i=r[e];if(_(i))return i}return null}(this.host):null;if(this.dispatchBeforeRemove(e).defaultPrevented)return;if(this.removed=!0,!t)return;const o=n(this.host.ownerDocument),a=this.host.ownerDocument;if((null===o||o!==this.button("button")&&o!==this.button("remove-button"))&&null!==o&&o!==a.body&&o!==a.documentElement)return;const s=t.shadowRoot,c=s?.querySelector(i?'[part="remove-button"]':'[part="button"]'),l=c&&!c.hasAttribute("disabled")?c:s?.querySelector("button:not([disabled])");l?.focus()}dispatchBeforeRemove(e){const r=new(0,this.host.ownerDocument.createEvent("CustomEvent").constructor)("au-before-remove",{bubbles:!0,composed:!0,cancelable:!0,detail:{reason:e}});return this.host.dispatchEvent(r),r}render(){const e=m(this.size)?this.size:l.medium,r=f(this.variant)?this.variant:d.soft,i=this.selectable,t=i&&this.selected,n=[t&&o("au-icon",{key:"221c590b4aba204069dfbe7648397364335046d8",part:"check",class:"chip__check",icon:"check",decorative:!0}),o("span",{key:"70db4d57e014dbeb45e471af0768d5fdb1871b77",part:"start",class:"chip__start"},o("slot",{key:"b8756eb7cff7705c8f66548c70a60017f38706f4",name:"start"})),o("span",{key:"de5c615ed3a56bf430d621b6071143830fccbafb",part:"label",class:"chip__label",id:"label"},o("slot",{key:"0e26f13de3d79287796498ddf6a16cda8e5b7968"}))],s=["chip","chip--size-"+e,"chip--variant-"+r,t&&"chip--selected",this.removable&&"chip--removable",this.disabled&&"chip--disabled"].filter(Boolean).join(" ");return o(a,{key:"4bc59bcaad6786c9ff4704b8db80258e8780c286"},o("span",{key:"d9f2054c75dfc5e9df8ab510a5df9fa4bd2fe369",part:"base",class:s},i?o("button",{part:"button",class:"chip__button",type:"button","aria-pressed":t?"true":"false",disabled:this.disabled,onClick:this.handleToggle,onKeyDown:this.handleKeydown},n):o("span",{part:"content",class:"chip__content"},n),this.removable&&o("button",{key:"73142583042e05c0a52acb948071a6aaf6767462",part:"remove-button",class:"chip__remove",type:"button","aria-labelledby":"remove-text label",disabled:this.disabled,onClick:this.handleRemoveClick,onKeyDown:this.handleKeydown},o("au-icon",{key:"f319cd02504316e9fe9fcded0bc3b0b48d6d9e45",icon:"x",decorative:!0})),this.removable&&o("span",{key:"e54801e6f3b0004ae02b13bd41cf86ed702d6eec",id:"remove-text",hidden:!0},this.safeRemoveLabel)))}static get style(){return':host{display:inline-flex;max-width:100%;min-width:0;vertical-align:middle;--_chip-transition-duration:var( --aurora-chip-transition-duration, var(--aurora-motion-duration-fast, 120ms) );--_chip-focus-color:var(--aurora-chip-focus-ring-color, var(--aurora-color-focus, Highlight))}:host([removed]){display:none}.chip{--_chip-border-color:transparent;align-items:center;background:var(--aurora-chip-background, color-mix(in srgb, var(--aurora-color-text, #1d2430) 10%, var(--aurora-color-canvas, #f7f8fa)));border:1px solid var(--_chip-border-color);border-radius:var(--aurora-chip-radius, var(--aurora-radius-pill, 999px));box-sizing:border-box;color:var(--aurora-chip-color, var(--aurora-color-text, #1d2430));display:inline-flex;font-family:var(--aurora-chip-font-family, var(--aurora-font-family-small, Lato, sans-serif));font-weight:var(--aurora-chip-font-weight, var(--aurora-font-weight-medium, 500));line-height:1.35;max-width:100%;min-width:0;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease), border-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease), color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease)}.chip--size-small{--_chip-padding:0.5rem;font-size:var(--aurora-chip-font-size-small, var(--aurora-font-size-xs, 0.75rem));min-height:1.5rem}.chip--size-medium{--_chip-padding:0.75rem;font-size:var(--aurora-chip-font-size-medium, var(--aurora-font-size-sm, 0.875rem));min-height:1.875rem}.chip--variant-outline{--_chip-border-color:var(--aurora-chip-border-color, var(--aurora-color-border, #d4d9e1));background:var(--aurora-chip-background, var(--aurora-color-canvas, #f7f8fa))}.chip--selected{--_chip-border-color:var( --aurora-chip-selected-border-color, var(--aurora-color-primary, #3157a4) );background:var(--aurora-chip-selected-background, color-mix(in srgb, var(--aurora-color-primary, #3157a4) 12%, var(--aurora-color-canvas, #f7f8fa)));color:var(--aurora-chip-selected-color, var(--aurora-color-text, #1d2430))}.chip__button,.chip__content{align-items:center;background:transparent;border:1px solid transparent;border-radius:inherit;box-sizing:border-box;color:inherit;display:inline-flex;font:inherit;margin:0;min-block-size:100%;min-width:0;padding-block:0;padding-inline:var(--_chip-padding);text-align:start}.chip__button{appearance:none;cursor:pointer;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease)}.chip--removable .chip__button,.chip--removable .chip__content{padding-inline-end:calc(var(--_chip-padding) / 2)}.chip__button:focus-visible,.chip__remove:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--_chip-focus-color);outline-offset:-2px}.chip__check{--aurora-icon-size:1em;flex:none;margin-inline-end:0.3em}.chip__start{align-items:center;display:inline-flex;flex:none}.chip__start ::slotted(*){margin-inline-end:0.4em}.chip__label{min-width:0;overflow-wrap:anywhere}.chip__remove{align-items:center;appearance:none;background:transparent;border:0;border-radius:50%;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;justify-content:center;margin:0;margin-inline-end:0.25rem;padding:0;position:relative;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease);block-size:1.125rem;inline-size:1.125rem}.chip__remove::after{block-size:max(100%, 24px);content:"";inline-size:max(100%, 24px);left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.chip__remove au-icon{--aurora-icon-size:0.875rem}.chip__remove:hover{background:var(--aurora-chip-remove-hover-background, color-mix(in srgb, var(--aurora-color-text, #1d2430) 10%, transparent))}.chip--disabled{cursor:var(--aurora-disabled-cursor, not-allowed);opacity:var(--aurora-disabled-opacity, 0.58)}.chip--disabled .chip__button,.chip--disabled .chip__remove{cursor:inherit}@media (prefers-reduced-motion: reduce){.chip,.chip__button,.chip__remove{transition-duration:0s}}@media (forced-colors: active){.chip{background:ButtonFace;border-color:ButtonText;color:ButtonText;forced-color-adjust:auto}.chip__button:focus-visible,.chip__remove:focus-visible{outline-color:Highlight}.chip--selected .chip__button{background:SelectedItem;border-color:SelectedItem;color:SelectedItemText;forced-color-adjust:none}.chip--disabled{opacity:1}.chip--disabled,.chip--disabled .chip__button,.chip--disabled .chip__content,.chip--disabled .chip__remove{border-color:GrayText;color:GrayText}}'}},[769,"au-chip",{selectable:[516],selected:[1540],removable:[516],removed:[1540],disabled:[516],removeLabel:[1,"remove-label"],size:[513],variant:[513]}]);function x(){"undefined"!=typeof customElements&&["au-chip","au-icon"].forEach((r=>{switch(r){case"au-chip":customElements.get(e(r))||customElements.define(e(r),g);break;case"au-icon":customElements.get(e(r))||c()}}))}x();const y=g,k=x;export{y as AuChip,k as defineCustomElement}
1
+ import{t as e,p as r,H as i,d as t,h as o,c as a}from"./p-DTeHrc-Q.js";import{d as n}from"./p-C-bRwiWx.js";import{w as s}from"./p-Ci-XzGE3.js";import{d as c}from"./p-ZpauIcNt.js";const l={small:"small",medium:"medium"},d={soft:"soft",outline:"outline"},h={removeButton:"remove-button",keyboard:"keyboard"},u="Remove",p=new Set(Object.values(l)),b=new Set(Object.values(d));new Set(Object.values(h));const m=e=>"string"==typeof e&&p.has(e),f=e=>"string"==typeof e&&b.has(e),v=e=>Array.from(e.children).filter((e=>"au-chip"===e.localName));function _(e){return e.isConnected&&!0!==e.removed&&!0!==e.disabled&&e.getClientRects().length>0&&null!=e.shadowRoot?.querySelector("button")}const g=r(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.chipChange=t(this,"au-chip-change",6)}get host(){return this}selectable=!1;selected=!1;removable=!1;removed=!1;disabled=!1;removeLabel=u;size=l.medium;variant=d.soft;chipChange;componentWillRender(){this.warnAboutProperties()}warn(e,r){s(this.host.ownerDocument,"au-chip:"+e,"[au-chip] "+r)}warnAboutProperties(){this.hasLabel()||(this.selectable?this.warn("missing-label","This selectable chip has no label, so its toggle button has no accessible name. Put the label text inside the chip."):this.removable&&this.warn("missing-label",'This removable chip has no label, so its remove button is named only "Remove". Put the label text inside the chip.')),m(this.size)||this.warn("size",`Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "small" or "medium".`),f(this.variant)||this.warn("variant",`Unsupported variant ${JSON.stringify(this.variant)}; it renders "soft". Use "soft" or "outline".`)}hasLabel(){for(const e of Array.from(this.host.childNodes)){if(3===e.nodeType&&""!==(e.textContent??"").trim())return!0;if(1===e.nodeType){const r=e.getAttribute("slot");if(null===r||""===r)return!0}}return!1}get safeRemoveLabel(){return("string"==typeof this.removeLabel?this.removeLabel.trim():"")||u}handleToggle=()=>{this.disabled||this.removed||!this.selectable||(this.selected=!this.selected,this.chipChange.emit({selected:this.selected}))};handleRemoveClick=()=>{this.startRemoval(h.removeButton)};handleKeydown=e=>{this.removable&&!this.disabled&&!this.removed&&function(e){return!("Delete"!==e.key&&"Backspace"!==e.key||e.altKey||e.ctrlKey||e.metaKey||e.repeat||e.isComposing)}(e)&&(e.preventDefault(),this.startRemoval(h.keyboard))};button(e){return this.host.shadowRoot?.querySelector(`[part="${e}"]`)??null}startRemoval(e){if(!this.removable||this.disabled||this.removed)return;const r=n(this.host.ownerDocument),i=null!==r&&r===this.button("remove-button"),t=i||null!==r&&r===this.button("button")?function(e){const r=function(e){const r=e.parentElement;if(!r)return[];const i="li"===r.localName?r.parentElement:null;return i?Array.from(i.children).filter((e=>"li"===e.localName)).flatMap(v):v(r)}(e),i=r.indexOf(e);if(-1===i)return null;for(let e=i+1;e<r.length;e+=1){const i=r[e];if(_(i))return i}for(let e=i-1;e>=0;e-=1){const i=r[e];if(_(i))return i}return null}(this.host):null;if(this.dispatchBeforeRemove(e).defaultPrevented)return;if(this.removed=!0,!t)return;const o=n(this.host.ownerDocument),a=this.host.ownerDocument;if((null===o||o!==this.button("button")&&o!==this.button("remove-button"))&&null!==o&&o!==a.body&&o!==a.documentElement)return;const s=t.shadowRoot,c=s?.querySelector(i?'[part="remove-button"]':'[part="button"]'),l=c&&!c.hasAttribute("disabled")?c:s?.querySelector("button:not([disabled])");l?.focus()}dispatchBeforeRemove(e){const r=new(0,this.host.ownerDocument.createEvent("CustomEvent").constructor)("au-before-remove",{bubbles:!0,composed:!0,cancelable:!0,detail:{reason:e}});return this.host.dispatchEvent(r),r}render(){const e=m(this.size)?this.size:l.medium,r=f(this.variant)?this.variant:d.soft,i=this.selectable,t=i&&this.selected,n=[t&&o("au-icon",{key:"221c590b4aba204069dfbe7648397364335046d8",part:"check",class:"chip__check",icon:"check",decorative:!0}),o("span",{key:"70db4d57e014dbeb45e471af0768d5fdb1871b77",part:"start",class:"chip__start"},o("slot",{key:"b8756eb7cff7705c8f66548c70a60017f38706f4",name:"start"})),o("span",{key:"de5c615ed3a56bf430d621b6071143830fccbafb",part:"label",class:"chip__label",id:"label"},o("slot",{key:"0e26f13de3d79287796498ddf6a16cda8e5b7968"}))],s=["chip","chip--size-"+e,"chip--variant-"+r,t&&"chip--selected",this.removable&&"chip--removable",this.disabled&&"chip--disabled"].filter(Boolean).join(" ");return o(a,{key:"4bc59bcaad6786c9ff4704b8db80258e8780c286"},o("span",{key:"d9f2054c75dfc5e9df8ab510a5df9fa4bd2fe369",part:"base",class:s},i?o("button",{part:"button",class:"chip__button",type:"button","aria-pressed":t?"true":"false",disabled:this.disabled,onClick:this.handleToggle,onKeyDown:this.handleKeydown},n):o("span",{part:"content",class:"chip__content"},n),this.removable&&o("button",{key:"73142583042e05c0a52acb948071a6aaf6767462",part:"remove-button",class:"chip__remove",type:"button","aria-labelledby":"remove-text label",disabled:this.disabled,onClick:this.handleRemoveClick,onKeyDown:this.handleKeydown},o("au-icon",{key:"f319cd02504316e9fe9fcded0bc3b0b48d6d9e45",icon:"x",decorative:!0})),this.removable&&o("span",{key:"e54801e6f3b0004ae02b13bd41cf86ed702d6eec",id:"remove-text",hidden:!0},this.safeRemoveLabel)))}static get style(){return':host{display:inline-flex;max-width:100%;min-width:0;vertical-align:middle;--_chip-transition-duration:var( --aurora-chip-transition-duration, var(--aurora-motion-duration-fast, 120ms) );--_chip-focus-color:var(--aurora-chip-focus-ring-color, var(--aurora-color-focus, Highlight))}:host([removed]){display:none}.chip{--_chip-border-color:transparent;align-items:center;background:var(--aurora-chip-background, color-mix(in srgb, var(--aurora-color-text, #1d2430) 10%, var(--aurora-color-canvas, #f7f8fa)));border:1px solid var(--_chip-border-color);border-radius:var(--aurora-chip-radius, var(--aurora-radius-pill, 999px));box-sizing:border-box;color:var(--aurora-chip-color, var(--aurora-color-text, #1d2430));display:inline-flex;font-family:var(--aurora-chip-font-family, var(--aurora-font-family-small, Lato, sans-serif));font-weight:var(--aurora-chip-font-weight, var(--aurora-font-weight-medium, 500));line-height:1.35;max-width:100%;min-width:0;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease), border-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease), color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease)}.chip--size-small{--_chip-padding:0.5rem;font-size:var(--aurora-chip-font-size-small, var(--aurora-font-size-xs, 0.75rem));min-height:1.5rem}.chip--size-medium{--_chip-padding:0.75rem;font-size:var(--aurora-chip-font-size-medium, var(--aurora-font-size-sm, 0.875rem));min-height:1.875rem}.chip--variant-outline{--_chip-border-color:var(--aurora-chip-border-color, var(--aurora-color-border, #d4d9e1));background:var(--aurora-chip-background, var(--aurora-color-canvas, #f7f8fa))}.chip--selected{--_chip-border-color:var( --aurora-chip-selected-border-color, var(--aurora-color-primary, #3157a4) );background:var(--aurora-chip-selected-background, color-mix(in srgb, var(--aurora-color-primary, #3157a4) 12%, var(--aurora-color-canvas, #f7f8fa)));color:var(--aurora-chip-selected-color, var(--aurora-color-text, #1d2430))}.chip__button,.chip__content{align-items:center;background:transparent;border:1px solid transparent;border-radius:inherit;box-sizing:border-box;color:inherit;display:inline-flex;font:inherit;margin:0;min-block-size:100%;min-width:0;padding-block:0;padding-inline:var(--_chip-padding);text-align:start}.chip__button{appearance:none;cursor:pointer;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease)}.chip--removable .chip__button,.chip--removable .chip__content{padding-inline-end:calc(var(--_chip-padding) / 2)}.chip__button:focus-visible,.chip__remove:focus-visible{outline:var(--aurora-focus-ring-width, 2px) solid var(--_chip-focus-color);outline-offset:-2px}.chip__check{--aurora-icon-size:1em;flex:none;margin-inline-end:0.3em}.chip__start{align-items:center;display:inline-flex;flex:none}.chip__start ::slotted(*){margin-inline-end:0.4em}.chip__label{min-width:0;overflow-wrap:anywhere}.chip__remove{align-items:center;appearance:none;background:transparent;border:0;border-radius:50%;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;flex:none;font:inherit;justify-content:center;margin:0;margin-inline-end:0.25rem;padding:0;position:relative;transition:background-color var(--_chip-transition-duration) var(--aurora-motion-easing-standard, ease);block-size:1.125rem;inline-size:1.125rem}.chip__remove::after{block-size:max(100%, 24px);content:"";inline-size:max(100%, 24px);left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.chip__remove au-icon{--aurora-icon-size:0.875rem}.chip__remove:hover{background:var(--aurora-chip-remove-hover-background, color-mix(in srgb, var(--aurora-color-text, #1d2430) 10%, transparent))}.chip--disabled{cursor:var(--aurora-disabled-cursor, not-allowed);opacity:var(--aurora-disabled-opacity, 0.58)}.chip--disabled .chip__button,.chip--disabled .chip__remove{cursor:inherit}@media (prefers-reduced-motion: reduce){.chip,.chip__button,.chip__remove{transition-duration:0s}}@media (forced-colors: active){.chip{background:ButtonFace;border-color:ButtonText;color:ButtonText;forced-color-adjust:auto}.chip__button:focus-visible,.chip__remove:focus-visible{outline-color:Highlight}.chip--selected .chip__button{background:SelectedItem;border-color:SelectedItem;color:SelectedItemText;forced-color-adjust:none}.chip--disabled{opacity:1}.chip--disabled,.chip--disabled .chip__button,.chip--disabled .chip__content,.chip--disabled .chip__remove{border-color:GrayText;color:GrayText}}'}},[769,"au-chip",{selectable:[516],selected:[1540],removable:[516],removed:[1540],disabled:[516],removeLabel:[1,"remove-label"],size:[513],variant:[513]}]);function x(){"undefined"!=typeof customElements&&["au-chip","au-icon"].forEach((r=>{switch(r){case"au-chip":customElements.get(e(r))||customElements.define(e(r),g);break;case"au-icon":customElements.get(e(r))||c()}}))}x();const y=g,k=x;export{y as AuChip,k as defineCustomElement}
@@ -1 +1 @@
1
- import{t as o,p as r,H as e,f as t,h as a,c as i}from"./p-DTeHrc-Q.js";import{r as n,a as c,b as s}from"./p-DzNA1eDU.js";import{d as l}from"./p-C-bRwiWx.js";import{o as d,a as u}from"./p-JU60IJxn.js";import{w as h}from"./p-Ci-XzGE3.js";import{d as p}from"./p-DIL-tsh4.js";const b="exec-command",f="none",g=(o,r)=>void 0===r?{ok:!1,reason:o}:{ok:!1,reason:o,error:r},k=o=>"object"==typeof o&&null!==o?o.name:void 0;function v(o,r){if("function"!=typeof o.execCommand||!o.body)return g("unsupported");const e=function(o){const r=l(o);let e;const t=r?.tagName.toLowerCase();if("input"===t||"textarea"===t)try{null!==r.selectionStart&&null!==r.selectionEnd&&(e={start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection??"none"})}catch{}const a=[];try{const r=o.getSelection?.();for(let o=0;r&&o<r.rangeCount;o+=1)a.push(r.getRangeAt(o).cloneRange())}catch{}return{active:r,input:e,ranges:a}}(o),t=function(o,r){const e=o.createElement("textarea");return e.value=r,e.setAttribute("readonly",""),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),e.style.cssText="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",e}(o,r);try{const e=n(o);if(!e)return g("unsupported");if(c(o,t,e,"clipboard"),t.focus({preventScroll:!0}),t.select(),t.setSelectionRange(0,r.length),l(o)!==t)return g("failed");try{return o.execCommand("copy")?{ok:!0}:g("denied")}catch(o){return g((o=>"NotAllowedError"===k(o)||"SecurityError"===k(o))(o)?"denied":"failed",o)}}catch(o){return g("failed",o)}finally{t.remove(),function(o,r){try{const e=o.getSelection?.();if(e){e.removeAllRanges();for(const o of r.ranges)e.addRange(o)}const{active:t}=r;if(t&&t.isConnected&&t!==o.body){if(t.focus({preventScroll:!0}),r.input)try{t.setSelectionRange(r.input.start,r.input.end,r.input.direction)}catch{}}else o.activeElement?.blur?.()}catch{}}(o,e)}}const m="Copy",y="Copied",x="Copy failed",w="Code",_=/^(\d+)(?:\s*-\s*(\d+))?$/,z=/^[a-z][a-z0-9-]{0,31}$/,C=o=>""===o.trim();function L(o,r){if("string"!=typeof o)return"";const e=o.replace(/\r\n?/g,"\n").split("\n");let t=0,a=e.length;for(;t<a&&C(e[t]);)t+=1;for(;a>t&&C(e[a-1]);)a-=1;const i=e.slice(t,a);if(!r.dedent)return i.join("\n");const n=function(o){let r;for(const e of o){if(C(e))continue;const o=/^\s*/.exec(e)?.[0]??"";if(void 0===r){r=o;continue}let t=0;for(;t<r.length&&t<o.length&&r[t]===o[t];)t+=1;if(r=r.slice(0,t),""===r)break}return r??""}(i);return""===n?i.join("\n"):i.map((o=>o.startsWith(n)?o.slice(n.length):o)).join("\n")}const T=/^lang(?:uage)?-(.+)$/,S=(o,r)=>Array.from(o.children).find((o=>o.localName===r));function j(o){if(!o)return"";for(const r of Array.from(o.classList)){const o=T.exec(r);if(o?.[1])return o[1]}return""}const N="label",D={"not-array":"the result is not an array of tokens","invalid-token":'a token is not an object with a string "text"',mismatch:"the token text does not add up to the code"},E=(o,r)=>{const e="string"==typeof o?o.trim():"";return""===e?r:e},A=r(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow()}get host(){return this}code;language;label;highlighter;lineNumbers=!1;highlightLines;wrap=!1;noCopy=!1;noDedent=!1;copyLabel=m;copiedLabel=y;copyFailedLabel=x;codeLabel=w;tokenLines;copyState;scrollable=!1;stopMutations;loaded=!1;view={code:"",language:""};marked=new Set;runCode;runLanguage="";runHighlighter;runId=0;controller;scroller;codeElement;stopSize;scrollerFocused=!1;copySequence=0;feedbackTimer;connectedCallback(){this.observe(),this.loaded&&(this.observeSize(),this.copyState=void 0,t(this))}disconnectedCallback(){this.stopMutations?.(),this.stopMutations=void 0,this.stopSize?.(),this.stopSize=void 0,this.clearFeedbackTimer()}componentWillRender(){this.warnAboutProperties();const o="string"==typeof this.code,r=o?void 0:function(o){const r=S(o,"pre");if(r){const o=r.querySelector("code");return{text:r.textContent??"",language:j(o)||j(r)}}const e=S(o,"code");return e?{text:e.textContent??"",language:j(e)}:{text:o.textContent??"",language:""}}(this.host);this.view={code:L(o?this.code:r?.text,{dedent:!this.noDedent}),language:E(this.language,r?.language??"")};const e=function(o,r){const e=new Set,t=[];if("string"!=typeof o||""===o.trim())return{lines:e,invalid:t};for(const a of o.split(",")){const o=a.trim();if(""===o)continue;const i=_.exec(o),n=i?Number(i[1]):NaN,c=i?Number(i[2]??i[1]):NaN;if(!i||n<1||n>c){t.push(o);continue}const s=Math.min(c,r);for(let o=n;o<=s;o+=1)e.add(o)}return{lines:e,invalid:t}}(this.highlightLines,""===this.view.code?0:this.view.code.split("\n").length);this.marked=e.lines,e.invalid.length>0&&this.warn("highlight-lines",`Ignored invalid "highlight-lines" items: ${e.invalid.join(", ")}. Use numbers and ranges such as "1,3-5".`);const t="function"==typeof this.highlighter?this.highlighter:void 0;this.view.code===this.runCode&&this.view.language===this.runLanguage&&t===this.runHighlighter||(this.runCode=this.view.code,this.runLanguage=this.view.language,this.runHighlighter=t,this.startRun(t))}componentDidLoad(){this.loaded=!0,this.observeSize()}componentDidRender(){this.measure()}warn(o,r){h(this.host.ownerDocument,"au-code-block:"+o,"[au-code-block] "+r)}warnAboutProperties(){null!=this.code&&"string"!=typeof this.code&&this.warn("code",`The "code" property must be a string (got ${typeof this.code}). It is ignored and the light DOM is the source.`),null!=this.highlighter&&"function"!=typeof this.highlighter&&this.warn("highlighter-type",`The "highlighter" property must be a function (got ${typeof this.highlighter}). It is ignored.`)}observeSize(){!this.stopSize&&this.scroller&&this.codeElement&&(this.stopSize=d([this.scroller,this.codeElement],this.measure))}measure=()=>{const o=this.scroller;if(!o)return;const r=o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight;!r&&this.scrollerFocused||(this.scrollable=r)};handleScrollerFocus=()=>{this.scrollerFocused=!0};handleScrollerBlur=()=>{this.scrollerFocused=!1,this.measure()};clearFeedbackTimer(){void 0!==this.feedbackTimer&&(clearTimeout(this.feedbackTimer),this.feedbackTimer=void 0)}handleCopy=async()=>{const o=++this.copySequence,r=await function(o,r){return function(o,r,e={}){const t=o.document,a=o=>(t&&function(o,r,e){try{const t=new(0,o.createEvent("CustomEvent").constructor)("au-copy",{bubbles:!0,composed:!0,cancelable:!1,detail:e});(r?.isConnected?r:o).dispatchEvent(t)}catch{}}(t,e.target,o),o),i=o=>Promise.resolve(a({ok:!1,method:f,reason:o}));if("string"!=typeof r)return i("invalid");if(""===r)return i("empty");if(!t)return i("no-document");const{clipboard:n}=o;if(n&&"function"==typeof n.writeText&&!1!==o.isSecureContext){let o;try{o=Promise.resolve(n.writeText(r))}catch(r){o=Promise.reject(r)}return o.then((()=>a({ok:!0,method:"clipboard-api"})),(o=>{const e=v(t,r);return a(e.ok?{ok:!0,method:b}:{ok:!1,method:b,reason:"NotAllowedError"===k(o)?"denied":"failed",error:o})}))}const c=v(t,r);if(c.ok)return Promise.resolve(a({ok:!0,method:b}));const s=c.reason;return Promise.resolve(a("unsupported"===s?{ok:!1,method:f,reason:s}:void 0===c.error?{ok:!1,method:b,reason:s}:{ok:!1,method:b,reason:s,error:c.error}))}(function(){const o=globalThis;let r;try{r=o.navigator?.clipboard}catch{r=void 0}return{document:o.document,clipboard:r,isSecureContext:o.isSecureContext}}(),o,r)}(this.view.code,{target:this.host});if(o!==this.copySequence||!this.host.isConnected)return;const e=r.ok;this.copyState=e?"copied":"failed",s(e?E(this.copiedLabel,y):E(this.copyFailedLabel,x),{key:"au-code-block:copy"},this.host.ownerDocument),this.clearFeedbackTimer(),this.feedbackTimer=setTimeout((()=>{this.feedbackTimer=void 0,this.copyState=void 0}),2e3)};startRun(o){const r=++this.runId;this.controller?.abort(),this.controller=void 0,this.tokenLines=void 0;const{code:e,language:t}=this.view;if(!o||""===e)return;if(e.length>1e5)return void this.warn("too-long","The code is longer than the highlight limit of 100000 characters, so it is shown without highlighting.");const a=new AbortController;let i;this.controller=a;try{i=o({code:e,language:t,signal:a.signal})}catch(o){return void this.failRun("the highlighter threw",o)}"function"!=typeof i?.then?this.settleRun(i,e):i.then((o=>{r===this.runId&&this.settleRun(o,e)}),(o=>{r===this.runId&&this.failRun("the highlighter rejected",o)}))}settleRun(o,r){const e=function(o,r){if(null==o)return{ok:!1,reason:"none"};if(!Array.isArray(o))return{ok:!1,reason:"not-array"};const e=[];let t="";for(const r of o){if("object"!=typeof r||null===r)return{ok:!1,reason:"invalid-token"};const{text:o,scope:a}=r;if("string"!=typeof o)return{ok:!1,reason:"invalid-token"};t+=o,""!==o&&e.push("string"==typeof a&&z.test(a)?{text:o,scope:a}:{text:o})}if(t!==r)return{ok:!1,reason:"mismatch"};const a=[[]];for(const o of e)o.text.split("\n").forEach(((r,e)=>{e>0&&a.push([]),""!==r&&a[a.length-1].push(void 0===o.scope?{text:r}:{text:r,scope:o.scope})}));return{ok:!0,lines:a}}(o,r);e.ok?this.tokenLines=e.lines:"none"!==e.reason&&this.failRun(D[e.reason])}failRun(o,r){this.tokenLines=void 0,this.warn("highlighter",`The highlighter failed (${o}); the code is shown without highlighting.${void 0===r?"":" "+r}`)}observe(){this.stopMutations||(this.stopMutations=u(this.host,(()=>{"string"!=typeof this.code&&t(this)}),{childList:!0,characterData:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}))}renderLines(o){const r=[],e=this.tokenLines;return o.split("\n").forEach(((o,t)=>{t>0&&r.push("\n");const i=e?.[t],n=i?i.map((o=>void 0!==o.scope?a("span",{part:"token token-"+o.scope},o.text):o.text)):o;r.push(this.marked.has(t+1)?a("mark",{part:"line line-highlighted"},n):a("span",{part:"line"},n))})),r}render(){const{code:o,language:r}=this.view,e=E(this.label,r),t=""===o,n=!this.noCopy&&!t,c=""!==e||n,s=this.copyState,l="copied"===s?E(this.copiedLabel,y):"failed"===s?E(this.copyFailedLabel,x):"",d="copied"===s?"copy-check":"failed"===s?"circle-x":"copy";return a(i,{key:"72d7b86ee19cf2ff23c3db2748833ed0bd5ef9f7",...t?{empty:""}:{},...this.tokenLines?{highlighted:""}:{},...s?{"copy-state":s}:{},...this.scrollable?{scrollable:""}:{}},a("div",{key:"10c5526623969495ad8176fc4e48dec5326bb824",part:"base"},c&&a("div",{key:"f33abf3fde6c264b849d89b268cf39b77c6d95ad",part:"header"},""!==e&&a("span",{key:"d03c3a05e0cedf8aa7f3c58621c9eac2f5b4ede1",part:"label",id:N},e),n&&a("span",{key:"dc53baa616b84b8be360937845e13945b5d2c22b",part:"copy-status","aria-hidden":"true"},l),n&&a("button",{key:"b623ba1c7b7e64cb5a0e66a48db31fbe4241568e",part:"copy-button",type:"button",onClick:this.handleCopy,...""!==e?{"aria-describedby":N}:{}},a("au-icon",{key:"1cabaa5fa5f2a6979765578aae1b43ebf1dd4b86",icon:d,decorative:!0}),a("span",{key:"0bf38f09355bdb2ee2cb10ca924ec8f6062d859a",part:"copy-label"},E(this.copyLabel,m)))),a("div",{key:"79e9135ec2621bb46cf6b015f3dffeb1b2dde21f",part:"scroller",ref:o=>{this.scroller=o},onFocus:this.handleScrollerFocus,onBlur:this.handleScrollerBlur,...this.scrollable?{tabindex:"0",role:"group","aria-label":E(this.label,E(this.codeLabel,w))}:{}},a("pre",{key:"94b7beb644ceb61db252b2f63a29c3636c94255a",part:"pre",dir:"ltr"},a("code",{key:"378c4a08db1b9b56988efaabdd40346613848972",part:"code",ref:o=>{this.codeElement=o},style:{"--_aurora-code-block-digits":""+(o.split("\n").length+"").length},...""!==r?{"data-language":r}:{}},this.renderLines(o))))))}static get style(){return':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}}'}},[513,"au-code-block",{code:[16],language:[513],label:[1],highlighter:[16],lineNumbers:[516,"line-numbers"],highlightLines:[1,"highlight-lines"],wrap:[516],noCopy:[516,"no-copy"],noDedent:[4,"no-dedent"],copyLabel:[1,"copy-label"],copiedLabel:[1,"copied-label"],copyFailedLabel:[1,"copy-failed-label"],codeLabel:[1,"code-label"],tokenLines:[32],copyState:[32],scrollable:[32]}]);function F(){"undefined"!=typeof customElements&&["au-code-block","au-icon"].forEach((r=>{switch(r){case"au-code-block":customElements.get(o(r))||customElements.define(o(r),A);break;case"au-icon":customElements.get(o(r))||p()}}))}F();const $=A,I=F;export{$ as AuCodeBlock,I as defineCustomElement}
1
+ import{t as o,p as r,H as e,f as t,h as a,c as i}from"./p-DTeHrc-Q.js";import{r as n,a as c,b as s}from"./p-DqAwSryz.js";import{d as l}from"./p-C-bRwiWx.js";import{o as d,a as u}from"./p-JU60IJxn.js";import{w as h}from"./p-Ci-XzGE3.js";import{d as p}from"./p-ZpauIcNt.js";const b="exec-command",f="none",g=(o,r)=>void 0===r?{ok:!1,reason:o}:{ok:!1,reason:o,error:r},k=o=>"object"==typeof o&&null!==o?o.name:void 0;function v(o,r){if("function"!=typeof o.execCommand||!o.body)return g("unsupported");const e=function(o){const r=l(o);let e;const t=r?.tagName.toLowerCase();if("input"===t||"textarea"===t)try{null!==r.selectionStart&&null!==r.selectionEnd&&(e={start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection??"none"})}catch{}const a=[];try{const r=o.getSelection?.();for(let o=0;r&&o<r.rangeCount;o+=1)a.push(r.getRangeAt(o).cloneRange())}catch{}return{active:r,input:e,ranges:a}}(o),t=function(o,r){const e=o.createElement("textarea");return e.value=r,e.setAttribute("readonly",""),e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),e.style.cssText="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",e}(o,r);try{const e=n(o);if(!e)return g("unsupported");if(c(o,t,e,"clipboard"),t.focus({preventScroll:!0}),t.select(),t.setSelectionRange(0,r.length),l(o)!==t)return g("failed");try{return o.execCommand("copy")?{ok:!0}:g("denied")}catch(o){return g((o=>"NotAllowedError"===k(o)||"SecurityError"===k(o))(o)?"denied":"failed",o)}}catch(o){return g("failed",o)}finally{t.remove(),function(o,r){try{const e=o.getSelection?.();if(e){e.removeAllRanges();for(const o of r.ranges)e.addRange(o)}const{active:t}=r;if(t&&t.isConnected&&t!==o.body){if(t.focus({preventScroll:!0}),r.input)try{t.setSelectionRange(r.input.start,r.input.end,r.input.direction)}catch{}}else o.activeElement?.blur?.()}catch{}}(o,e)}}const m="Copy",y="Copied",x="Copy failed",w="Code",_=/^(\d+)(?:\s*-\s*(\d+))?$/,z=/^[a-z][a-z0-9-]{0,31}$/,C=o=>""===o.trim();function L(o,r){if("string"!=typeof o)return"";const e=o.replace(/\r\n?/g,"\n").split("\n");let t=0,a=e.length;for(;t<a&&C(e[t]);)t+=1;for(;a>t&&C(e[a-1]);)a-=1;const i=e.slice(t,a);if(!r.dedent)return i.join("\n");const n=function(o){let r;for(const e of o){if(C(e))continue;const o=/^\s*/.exec(e)?.[0]??"";if(void 0===r){r=o;continue}let t=0;for(;t<r.length&&t<o.length&&r[t]===o[t];)t+=1;if(r=r.slice(0,t),""===r)break}return r??""}(i);return""===n?i.join("\n"):i.map((o=>o.startsWith(n)?o.slice(n.length):o)).join("\n")}const T=/^lang(?:uage)?-(.+)$/,S=(o,r)=>Array.from(o.children).find((o=>o.localName===r));function j(o){if(!o)return"";for(const r of Array.from(o.classList)){const o=T.exec(r);if(o?.[1])return o[1]}return""}const N="label",E={"not-array":"the result is not an array of tokens","invalid-token":'a token is not an object with a string "text"',mismatch:"the token text does not add up to the code"},A=(o,r)=>{const e="string"==typeof o?o.trim():"";return""===e?r:e},D=r(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow()}get host(){return this}code;language;label;highlighter;lineNumbers=!1;highlightLines;wrap=!1;noCopy=!1;noDedent=!1;copyLabel=m;copiedLabel=y;copyFailedLabel=x;codeLabel=w;tokenLines;copyState;scrollable=!1;stopMutations;loaded=!1;view={code:"",language:""};marked=new Set;runCode;runLanguage="";runHighlighter;runId=0;controller;scroller;codeElement;stopSize;scrollerFocused=!1;copySequence=0;feedbackTimer;connectedCallback(){this.observe(),this.loaded&&(this.observeSize(),this.copyState=void 0,t(this))}disconnectedCallback(){this.stopMutations?.(),this.stopMutations=void 0,this.stopSize?.(),this.stopSize=void 0,this.clearFeedbackTimer()}componentWillRender(){this.warnAboutProperties();const o="string"==typeof this.code,r=o?void 0:function(o){const r=S(o,"pre");if(r){const o=r.querySelector("code");return{text:r.textContent??"",language:j(o)||j(r)}}const e=S(o,"code");return e?{text:e.textContent??"",language:j(e)}:{text:o.textContent??"",language:""}}(this.host);this.view={code:L(o?this.code:r?.text,{dedent:!this.noDedent}),language:A(this.language,r?.language??"")};const e=function(o,r){const e=new Set,t=[];if("string"!=typeof o||""===o.trim())return{lines:e,invalid:t};for(const a of o.split(",")){const o=a.trim();if(""===o)continue;const i=_.exec(o),n=i?Number(i[1]):NaN,c=i?Number(i[2]??i[1]):NaN;if(!i||n<1||n>c){t.push(o);continue}const s=Math.min(c,r);for(let o=n;o<=s;o+=1)e.add(o)}return{lines:e,invalid:t}}(this.highlightLines,""===this.view.code?0:this.view.code.split("\n").length);this.marked=e.lines,e.invalid.length>0&&this.warn("highlight-lines",`Ignored invalid "highlight-lines" items: ${e.invalid.join(", ")}. Use numbers and ranges such as "1,3-5".`);const t="function"==typeof this.highlighter?this.highlighter:void 0;this.view.code===this.runCode&&this.view.language===this.runLanguage&&t===this.runHighlighter||(this.runCode=this.view.code,this.runLanguage=this.view.language,this.runHighlighter=t,this.startRun(t))}componentDidLoad(){this.loaded=!0,this.observeSize()}componentDidRender(){this.measure()}warn(o,r){h(this.host.ownerDocument,"au-code-block:"+o,"[au-code-block] "+r)}warnAboutProperties(){null!=this.code&&"string"!=typeof this.code&&this.warn("code",`The "code" property must be a string (got ${typeof this.code}). It is ignored and the light DOM is the source.`),null!=this.highlighter&&"function"!=typeof this.highlighter&&this.warn("highlighter-type",`The "highlighter" property must be a function (got ${typeof this.highlighter}). It is ignored.`)}observeSize(){!this.stopSize&&this.scroller&&this.codeElement&&(this.stopSize=d([this.scroller,this.codeElement],this.measure))}measure=()=>{const o=this.scroller;if(!o)return;const r=o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight;!r&&this.scrollerFocused||(this.scrollable=r)};handleScrollerFocus=()=>{this.scrollerFocused=!0};handleScrollerBlur=()=>{this.scrollerFocused=!1,this.measure()};clearFeedbackTimer(){void 0!==this.feedbackTimer&&(clearTimeout(this.feedbackTimer),this.feedbackTimer=void 0)}handleCopy=async()=>{const o=++this.copySequence,r=await function(o,r){return function(o,r,e={}){const t=o.document,a=o=>(t&&function(o,r,e){try{const t=new(0,o.createEvent("CustomEvent").constructor)("au-copy",{bubbles:!0,composed:!0,cancelable:!1,detail:e});(r?.isConnected?r:o).dispatchEvent(t)}catch{}}(t,e.target,o),o),i=o=>Promise.resolve(a({ok:!1,method:f,reason:o}));if("string"!=typeof r)return i("invalid");if(""===r)return i("empty");if(!t)return i("no-document");const{clipboard:n}=o;if(n&&"function"==typeof n.writeText&&!1!==o.isSecureContext){let o;try{o=Promise.resolve(n.writeText(r))}catch(r){o=Promise.reject(r)}return o.then((()=>a({ok:!0,method:"clipboard-api"})),(o=>{const e=v(t,r);return a(e.ok?{ok:!0,method:b}:{ok:!1,method:b,reason:"NotAllowedError"===k(o)?"denied":"failed",error:o})}))}const c=v(t,r);if(c.ok)return Promise.resolve(a({ok:!0,method:b}));const s=c.reason;return Promise.resolve(a("unsupported"===s?{ok:!1,method:f,reason:s}:void 0===c.error?{ok:!1,method:b,reason:s}:{ok:!1,method:b,reason:s,error:c.error}))}(function(){const o=globalThis;let r;try{r=o.navigator?.clipboard}catch{r=void 0}return{document:o.document,clipboard:r,isSecureContext:o.isSecureContext}}(),o,r)}(this.view.code,{target:this.host});if(o!==this.copySequence||!this.host.isConnected)return;const e=r.ok;this.copyState=e?"copied":"failed",s(e?A(this.copiedLabel,y):A(this.copyFailedLabel,x),{key:"au-code-block:copy"},this.host.ownerDocument),this.clearFeedbackTimer(),this.feedbackTimer=setTimeout((()=>{this.feedbackTimer=void 0,this.copyState=void 0}),2e3)};startRun(o){const r=++this.runId;this.controller?.abort(),this.controller=void 0,this.tokenLines=void 0;const{code:e,language:t}=this.view;if(!o||""===e)return;if(e.length>1e5)return void this.warn("too-long","The code is longer than the highlight limit of 100000 characters, so it is shown without highlighting.");const a=new AbortController;let i;this.controller=a;try{i=o({code:e,language:t,signal:a.signal})}catch(o){return void this.failRun("the highlighter threw",o)}"function"!=typeof i?.then?this.settleRun(i,e):i.then((o=>{r===this.runId&&this.settleRun(o,e)}),(o=>{r===this.runId&&this.failRun("the highlighter rejected",o)}))}settleRun(o,r){const e=function(o,r){if(null==o)return{ok:!1,reason:"none"};if(!Array.isArray(o))return{ok:!1,reason:"not-array"};const e=[];let t="";for(const r of o){if("object"!=typeof r||null===r)return{ok:!1,reason:"invalid-token"};const{text:o,scope:a}=r;if("string"!=typeof o)return{ok:!1,reason:"invalid-token"};t+=o,""!==o&&e.push("string"==typeof a&&z.test(a)?{text:o,scope:a}:{text:o})}if(t!==r)return{ok:!1,reason:"mismatch"};const a=[[]];for(const o of e)o.text.split("\n").forEach(((r,e)=>{e>0&&a.push([]),""!==r&&a[a.length-1].push(void 0===o.scope?{text:r}:{text:r,scope:o.scope})}));return{ok:!0,lines:a}}(o,r);e.ok?this.tokenLines=e.lines:"none"!==e.reason&&this.failRun(E[e.reason])}failRun(o,r){this.tokenLines=void 0,this.warn("highlighter",`The highlighter failed (${o}); the code is shown without highlighting.${void 0===r?"":" "+r}`)}observe(){this.stopMutations||(this.stopMutations=u(this.host,(()=>{"string"!=typeof this.code&&t(this)}),{childList:!0,characterData:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}))}renderLines(o){const r=[],e=this.tokenLines;return o.split("\n").forEach(((o,t)=>{t>0&&r.push("\n");const i=e?.[t],n=i?i.map((o=>void 0!==o.scope?a("span",{part:"token token-"+o.scope},o.text):o.text)):o;r.push(this.marked.has(t+1)?a("mark",{part:"line line-highlighted"},n):a("span",{part:"line"},n))})),r}render(){const{code:o,language:r}=this.view,e=A(this.label,r),t=""===o,n=!this.noCopy&&!t,c=""!==e||n,s=this.copyState,l="copied"===s?A(this.copiedLabel,y):"failed"===s?A(this.copyFailedLabel,x):"",d="copied"===s?"copy-check":"failed"===s?"circle-x":"copy";return a(i,{key:"72d7b86ee19cf2ff23c3db2748833ed0bd5ef9f7",...t?{empty:""}:{},...this.tokenLines?{highlighted:""}:{},...s?{"copy-state":s}:{},...this.scrollable?{scrollable:""}:{}},a("div",{key:"10c5526623969495ad8176fc4e48dec5326bb824",part:"base"},c&&a("div",{key:"f33abf3fde6c264b849d89b268cf39b77c6d95ad",part:"header"},""!==e&&a("span",{key:"d03c3a05e0cedf8aa7f3c58621c9eac2f5b4ede1",part:"label",id:N},e),n&&a("span",{key:"dc53baa616b84b8be360937845e13945b5d2c22b",part:"copy-status","aria-hidden":"true"},l),n&&a("button",{key:"b623ba1c7b7e64cb5a0e66a48db31fbe4241568e",part:"copy-button",type:"button",onClick:this.handleCopy,...""!==e?{"aria-describedby":N}:{}},a("au-icon",{key:"1cabaa5fa5f2a6979765578aae1b43ebf1dd4b86",icon:d,decorative:!0}),a("span",{key:"0bf38f09355bdb2ee2cb10ca924ec8f6062d859a",part:"copy-label"},A(this.copyLabel,m)))),a("div",{key:"79e9135ec2621bb46cf6b015f3dffeb1b2dde21f",part:"scroller",ref:o=>{this.scroller=o},onFocus:this.handleScrollerFocus,onBlur:this.handleScrollerBlur,...this.scrollable?{tabindex:"0",role:"group","aria-label":A(this.label,A(this.codeLabel,w))}:{}},a("pre",{key:"94b7beb644ceb61db252b2f63a29c3636c94255a",part:"pre",dir:"ltr"},a("code",{key:"378c4a08db1b9b56988efaabdd40346613848972",part:"code",ref:o=>{this.codeElement=o},style:{"--_aurora-code-block-digits":""+(o.split("\n").length+"").length},...""!==r?{"data-language":r}:{}},this.renderLines(o))))))}static get style(){return':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}}'}},[513,"au-code-block",{code:[16],language:[513],label:[1],highlighter:[16],lineNumbers:[516,"line-numbers"],highlightLines:[1,"highlight-lines"],wrap:[516],noCopy:[516,"no-copy"],noDedent:[4,"no-dedent"],copyLabel:[1,"copy-label"],copiedLabel:[1,"copied-label"],copyFailedLabel:[1,"copy-failed-label"],codeLabel:[1,"code-label"],tokenLines:[32],copyState:[32],scrollable:[32]}]);function F(){"undefined"!=typeof customElements&&["au-code-block","au-icon"].forEach((r=>{switch(r){case"au-code-block":customElements.get(o(r))||customElements.define(o(r),D);break;case"au-icon":customElements.get(o(r))||p()}}))}F();const $=D,I=F;export{$ as AuCodeBlock,I as defineCustomElement}