@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
@@ -0,0 +1,139 @@
1
+ :host {
2
+ display: block;
3
+ min-width: 0;
4
+ }
5
+
6
+ .stat {
7
+ --_stat-value-font-size: var(--aurora-stat-value-font-size, var(--aurora-font-size-2xl, 1.5rem));
8
+ --_stat-delta-color: var(--aurora-stat-neutral-color, var(--aurora-color-text-muted, #566273));
9
+ margin: 0;
10
+ min-width: 0;
11
+ padding: 0;
12
+ position: relative;
13
+ }
14
+
15
+ .stat--small {
16
+ --_stat-value-font-size: var(--aurora-stat-value-font-size, var(--aurora-font-size-xl, 1.25rem));
17
+ }
18
+
19
+ .stat--medium {
20
+ --_stat-value-font-size: var(--aurora-stat-value-font-size, var(--aurora-font-size-2xl, 1.5rem));
21
+ }
22
+
23
+ .stat--large {
24
+ --_stat-value-font-size: var(
25
+ --aurora-stat-value-font-size,
26
+ var(--aurora-font-size-3xl, 1.875rem)
27
+ );
28
+ }
29
+
30
+ .stat--intent-neutral {
31
+ --_stat-delta-color: var(--aurora-stat-neutral-color, var(--aurora-color-text-muted, #566273));
32
+ }
33
+
34
+ .stat--intent-success {
35
+ --_stat-delta-color: var(--aurora-stat-success-color, var(--aurora-color-success, #176b48));
36
+ }
37
+
38
+ .stat--intent-danger {
39
+ --_stat-delta-color: var(--aurora-stat-danger-color, var(--aurora-color-danger, #a32635));
40
+ }
41
+
42
+ .stat__group {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: var(--aurora-stat-gap, var(--aurora-spacing-extra-small, 0.25rem));
46
+ min-width: 0;
47
+ }
48
+
49
+ .stat__label {
50
+ align-items: center;
51
+ color: var(--aurora-stat-label-color, var(--aurora-color-text-muted, #566273));
52
+ display: flex;
53
+ font-family: var(--aurora-font-family-small, Lato, sans-serif);
54
+ font-size: var(--aurora-stat-label-font-size, var(--aurora-font-size-sm, 0.875rem));
55
+ line-height: 1.35;
56
+ margin: 0;
57
+ overflow-wrap: anywhere;
58
+ }
59
+
60
+ .stat__start {
61
+ display: contents;
62
+ }
63
+
64
+ ::slotted([slot=start]) {
65
+ flex: none;
66
+ margin-inline-end: 0.375em;
67
+ }
68
+
69
+ .stat__value {
70
+ color: var(--aurora-stat-value-color, var(--aurora-color-text, #202733));
71
+ font-family: var(--aurora-font-family-heading, Montserrat, sans-serif);
72
+ font-size: var(--_stat-value-font-size);
73
+ font-weight: var(--aurora-stat-value-font-weight, var(--aurora-font-weight-semibold, 600));
74
+ line-height: 1.2;
75
+ margin: 0;
76
+ overflow-wrap: anywhere;
77
+ }
78
+
79
+ .stat__number,
80
+ .stat__delta-text {
81
+ /* Kerning pairs such as "1." would still make a changing value jitter with tabular digits. */
82
+ font-kerning: none;
83
+ font-variant-numeric: tabular-nums;
84
+ }
85
+
86
+ .stat__unit {
87
+ color: var(--aurora-stat-unit-color, var(--aurora-color-text-muted, #566273));
88
+ font-size: 0.6em;
89
+ font-weight: var(--aurora-font-weight-normal, 400);
90
+ }
91
+
92
+ .stat__delta {
93
+ color: var(--_stat-delta-color);
94
+ font-family: var(--aurora-font-family-small, Lato, sans-serif);
95
+ font-size: var(--aurora-stat-delta-font-size, var(--aurora-font-size-sm, 0.875rem));
96
+ line-height: 1.35;
97
+ margin: 0;
98
+ overflow-wrap: anywhere;
99
+ }
100
+
101
+ .stat__trend-icon {
102
+ --aurora-icon-size: 1em;
103
+ vertical-align: -0.125em;
104
+ }
105
+
106
+ .stat__description {
107
+ color: var(--aurora-stat-label-color, var(--aurora-color-text-muted, #566273));
108
+ font-family: var(--aurora-font-family-small, Lato, sans-serif);
109
+ font-size: var(--aurora-stat-label-font-size, var(--aurora-font-size-sm, 0.875rem));
110
+ line-height: 1.35;
111
+ margin: 0;
112
+ }
113
+
114
+ /* A private copy of the au-button rule (the shared mixin is a separate Phase 2 item). */
115
+ .stat__visually-hidden {
116
+ border: 0;
117
+ clip: rect(0 0 0 0);
118
+ clip-path: inset(50%);
119
+ height: 1px;
120
+ margin: -1px;
121
+ overflow: hidden;
122
+ padding: 0;
123
+ position: absolute;
124
+ white-space: nowrap;
125
+ width: 1px;
126
+ }
127
+
128
+ /* Nothing moves: a changing value is not animated (ST-D15), so there is no reduced-motion branch. */
129
+ @media (forced-colors: active) {
130
+ .stat__label,
131
+ .stat__value,
132
+ .stat__unit,
133
+ .stat__delta,
134
+ .stat__delta-text,
135
+ .stat__description,
136
+ .stat__trend-icon {
137
+ color: CanvasText;
138
+ }
139
+ }
@@ -0,0 +1,491 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { announce, cancelAnnouncement } from "../../../shared/live-announcer/index.js";
3
+ import { warnOncePerDocument } from "../../../shared/warn-once.js";
4
+ import { STAT_DEFAULT_LABELS, STAT_INTENT, STAT_LIVE, STAT_SIZE, STAT_TREND_ICON, isStatIntent, isStatLive, isStatSize, isStatTrend, } from "./au-stat.constants.js";
5
+ import { composeStatAnnouncement } from "./internal/announcement.js";
6
+ const EMPTY_DASH = '\u2014';
7
+ /** One announcer key per instance, so a stat replaces its own pending text and no other. */
8
+ let nextInstance = 0;
9
+ const text = (value) => value === undefined || value === null ? '' : String(value).trim();
10
+ /**
11
+ * A metric: a label, a value with an optional unit, and an optional change (delta) with a
12
+ * direction. One native description list per stat, no ARIA. The direction (`trend`) and the
13
+ * good-or-bad color (`intent`) are independent; the component never infers one from the other.
14
+ *
15
+ * @slot start - A decorative leading icon, inside the label (mark it `decorative`).
16
+ * @slot description - A secondary line. Never announced.
17
+ */
18
+ export class AuStat {
19
+ host;
20
+ /** The term of the description list. Trimmed. A blank label warns once. */
21
+ label = '';
22
+ /** The value, rendered as written (`String()` for a number). Blank shows the empty state. */
23
+ value = '';
24
+ /** The unit, shown after the value. Omitted when blank. */
25
+ unit = '';
26
+ /** The change, rendered as written, sign included (`+3.2 %`). */
27
+ delta = '';
28
+ /** Direction of the change. Adds a decorative icon and a visually hidden direction word. Unsupported values render no direction and warn once. */
29
+ trend;
30
+ /** Color of the delta row only, independent of `trend`. Unsupported values render `neutral` and warn once. */
31
+ intent = STAT_INTENT.neutral;
32
+ /** `polite` announces changes through the document announcer. Unsupported values render `off` and warn once. */
33
+ live = STAT_LIVE.off;
34
+ /** Size of the value. Unsupported values render `medium` and warn once. */
35
+ size = STAT_SIZE.medium;
36
+ /** Hidden direction word for `trend="up"`. Blank falls back to `Up`. */
37
+ upLabel = STAT_DEFAULT_LABELS.up;
38
+ /** Hidden direction word for `trend="down"`. Blank falls back to `Down`. */
39
+ downLabel = STAT_DEFAULT_LABELS.down;
40
+ /** Hidden direction word for `trend="flat"`. Blank falls back to `Unchanged`. */
41
+ flatLabel = STAT_DEFAULT_LABELS.flat;
42
+ /** Hidden text (and announcement) for a blank value. Blank falls back to `No data`. */
43
+ emptyLabel = STAT_DEFAULT_LABELS.empty;
44
+ /** True while the `description` slot has an assigned element. */
45
+ described = false;
46
+ /** The announcement text last seen (ST-D9). Undefined until the first load completes. */
47
+ baseline;
48
+ announcerKey = `au-stat:${(nextInstance += 1)}`;
49
+ componentWillLoad() {
50
+ this.measureDescription();
51
+ }
52
+ componentDidLoad() {
53
+ this.baseline = this.announcementText();
54
+ }
55
+ connectedCallback() {
56
+ // A moved or re-attached stat takes its current text as the baseline (changes while detached are silent).
57
+ if (this.baseline !== undefined)
58
+ this.baseline = this.announcementText();
59
+ }
60
+ disconnectedCallback() {
61
+ cancelAnnouncement(this.announcerKey, this.host.ownerDocument);
62
+ }
63
+ contentChanged() {
64
+ if (this.baseline === undefined)
65
+ return;
66
+ const next = this.announcementText();
67
+ if (next === this.baseline)
68
+ return;
69
+ this.baseline = next;
70
+ if (this.live === STAT_LIVE.polite && this.canAnnounce()) {
71
+ announce(next, { politeness: 'polite', key: this.announcerKey }, this.host.ownerDocument);
72
+ }
73
+ }
74
+ liveChanged() {
75
+ if (this.baseline === undefined)
76
+ return;
77
+ this.baseline = this.announcementText();
78
+ if (this.live !== STAT_LIVE.polite) {
79
+ cancelAnnouncement(this.announcerKey, this.host.ownerDocument);
80
+ }
81
+ }
82
+ /** A hidden host (a closed popover or dock) or a detached one stays silent (ST-D9). */
83
+ canAnnounce() {
84
+ return this.host.isConnected && this.host.getClientRects().length > 0;
85
+ }
86
+ announcementText() {
87
+ const trend = this.safeTrend;
88
+ return composeStatAnnouncement({
89
+ label: this.label,
90
+ value: text(this.value),
91
+ unit: this.unit,
92
+ trendWord: trend === undefined ? '' : this.directionWord(trend),
93
+ delta: this.delta,
94
+ emptyLabel: this.emptyText,
95
+ });
96
+ }
97
+ componentWillRender() {
98
+ this.warnAboutProperties();
99
+ }
100
+ get safeSize() {
101
+ return isStatSize(this.size) ? this.size : STAT_SIZE.medium;
102
+ }
103
+ get safeIntent() {
104
+ return isStatIntent(this.intent) ? this.intent : STAT_INTENT.neutral;
105
+ }
106
+ get safeTrend() {
107
+ return isStatTrend(this.trend) ? this.trend : undefined;
108
+ }
109
+ warn(key, message) {
110
+ warnOncePerDocument(this.host.ownerDocument, `au-stat:${key}`, `[au-stat] ${message}`);
111
+ }
112
+ warnAboutProperties() {
113
+ if (text(this.label) === '') {
114
+ this.warn('missing-label', 'Missing label: the term of the description list is empty. Set the label attribute.');
115
+ }
116
+ if (!isStatSize(this.size)) {
117
+ this.warn('size', `Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "small", "medium" or "large".`);
118
+ }
119
+ if (this.isSet(this.trend) && !isStatTrend(this.trend)) {
120
+ this.warn('trend', `Unsupported trend ${JSON.stringify(this.trend)}; no direction is rendered. Use "up", "down" or "flat".`);
121
+ }
122
+ if (!isStatIntent(this.intent)) {
123
+ this.warn('intent', `Unsupported intent ${JSON.stringify(this.intent)}; it renders "neutral". Use "neutral", "success" or "danger".`);
124
+ }
125
+ if (!isStatLive(this.live)) {
126
+ this.warn('live', `Unsupported live ${JSON.stringify(this.live)}; it renders "off", so nothing is announced. Use "off" or "polite".`);
127
+ }
128
+ }
129
+ /** A trend of `undefined`, `null` or a blank string means "no direction", not a mistake. */
130
+ isSet(value) {
131
+ return value !== undefined && value !== null && text(value) !== '';
132
+ }
133
+ /** The visually hidden direction word, with the default when the label is blank. */
134
+ directionWord(trend) {
135
+ const labels = {
136
+ up: [this.upLabel, STAT_DEFAULT_LABELS.up],
137
+ down: [this.downLabel, STAT_DEFAULT_LABELS.down],
138
+ flat: [this.flatLabel, STAT_DEFAULT_LABELS.flat],
139
+ };
140
+ const [custom, fallback] = labels[trend];
141
+ return text(custom) || fallback;
142
+ }
143
+ get emptyText() {
144
+ return text(this.emptyLabel) || STAT_DEFAULT_LABELS.empty;
145
+ }
146
+ /** An element assigned to `description`. Text cannot be assigned to a named slot. */
147
+ measureDescription() {
148
+ this.described = Array.from(this.host.children).some((child) => child.getAttribute('slot') === 'description');
149
+ }
150
+ handleDescriptionChange = () => {
151
+ this.measureDescription();
152
+ };
153
+ renderValue(value, unit) {
154
+ if (value === '') {
155
+ return (h("dd", { part: "value", class: "stat__value" }, h("span", { part: "number", class: "stat__number", "aria-hidden": "true" }, EMPTY_DASH), h("span", { class: "stat__visually-hidden" }, this.emptyText)));
156
+ }
157
+ return (h("dd", { part: "value", class: "stat__value" }, h("span", { part: "number", class: "stat__number" }, value), unit !== '' && ' ', unit !== '' && (h("span", { part: "unit", class: "stat__unit" }, unit))));
158
+ }
159
+ renderDelta(trend, delta) {
160
+ if (delta === '' && trend === undefined)
161
+ return null;
162
+ return (h("dd", { part: "delta", class: "stat__delta" }, trend !== undefined && (h("au-icon", { part: "trend-icon", class: "stat__trend-icon", icon: STAT_TREND_ICON[trend], decorative: true })), trend !== undefined && (h("span", { part: "trend-label", class: "stat__visually-hidden" }, this.directionWord(trend))), trend !== undefined && delta !== '' && ' ', delta !== '' && (h("span", { part: "delta-text", class: "stat__delta-text" }, delta))));
163
+ }
164
+ render() {
165
+ const trend = this.safeTrend;
166
+ const description = h("slot", { key: '2cc75e8084e7202b222eb7bac38ccf63685a0942', name: "description", onSlotchange: this.handleDescriptionChange });
167
+ return (h(Host, { key: 'c50f47e2206a641fb6bb37a2535da931944dce75' }, h("dl", { key: '6531686606609edf978023d64128ce44acd3fc93', part: "base", class: `stat stat--${this.safeSize} stat--intent-${this.safeIntent}` }, h("div", { key: '64bfeb24696cdd0522558dced3befa459596c379', part: "group", class: "stat__group" }, h("dt", { key: '57f7b40f54d53b4b6da4749a37c6a5172be05034', part: "label", class: "stat__label" }, h("span", { key: 'e22d4b68635d8ccdb947cc10b7e109b72eb4f99c', part: "start", class: "stat__start" }, h("slot", { key: '2561e47fc3d00f6c1f1fbf4e5a860d7a61210404', name: "start" })), text(this.label)), this.renderValue(text(this.value), text(this.unit)), this.renderDelta(trend, text(this.delta)), this.described && (h("dd", { key: '0681accd58a6c224cd8a9d329850aacd6e74896f', part: "description", class: "stat__description" }, description)))), !this.described && h("span", { key: '53477e8a01c555fbad766284c3c57c2db10138e3', hidden: true }, description)));
168
+ }
169
+ static get is() { return "au-stat"; }
170
+ static get encapsulation() { return "shadow"; }
171
+ static get originalStyleUrls() {
172
+ return {
173
+ "$": ["au-stat.scss"]
174
+ };
175
+ }
176
+ static get styleUrls() {
177
+ return {
178
+ "$": ["au-stat.css"]
179
+ };
180
+ }
181
+ static get properties() {
182
+ return {
183
+ "label": {
184
+ "type": "string",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "string",
188
+ "resolved": "string",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": false,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "The term of the description list. Trimmed. A blank label warns once."
196
+ },
197
+ "getter": false,
198
+ "setter": false,
199
+ "reflect": false,
200
+ "attribute": "label",
201
+ "defaultValue": "''"
202
+ },
203
+ "value": {
204
+ "type": "any",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string | number",
208
+ "resolved": "number | string",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "The value, rendered as written (`String()` for a number). Blank shows the empty state."
216
+ },
217
+ "getter": false,
218
+ "setter": false,
219
+ "reflect": false,
220
+ "attribute": "value",
221
+ "defaultValue": "''"
222
+ },
223
+ "unit": {
224
+ "type": "string",
225
+ "mutable": false,
226
+ "complexType": {
227
+ "original": "string",
228
+ "resolved": "string",
229
+ "references": {}
230
+ },
231
+ "required": false,
232
+ "optional": false,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": "The unit, shown after the value. Omitted when blank."
236
+ },
237
+ "getter": false,
238
+ "setter": false,
239
+ "reflect": false,
240
+ "attribute": "unit",
241
+ "defaultValue": "''"
242
+ },
243
+ "delta": {
244
+ "type": "string",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "string",
248
+ "resolved": "string",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "The change, rendered as written, sign included (`+3.2 %`)."
256
+ },
257
+ "getter": false,
258
+ "setter": false,
259
+ "reflect": false,
260
+ "attribute": "delta",
261
+ "defaultValue": "''"
262
+ },
263
+ "trend": {
264
+ "type": "string",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "StatTrend",
268
+ "resolved": "\"down\" | \"flat\" | \"up\" | undefined",
269
+ "references": {
270
+ "StatTrend": {
271
+ "location": "import",
272
+ "path": "./au-stat.types",
273
+ "id": "src/components/data-display/au-stat/au-stat.types.ts::StatTrend",
274
+ "referenceLocation": "StatTrend"
275
+ }
276
+ }
277
+ },
278
+ "required": false,
279
+ "optional": true,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": "Direction of the change. Adds a decorative icon and a visually hidden direction word. Unsupported values render no direction and warn once."
283
+ },
284
+ "getter": false,
285
+ "setter": false,
286
+ "reflect": true,
287
+ "attribute": "trend"
288
+ },
289
+ "intent": {
290
+ "type": "string",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "StatIntent",
294
+ "resolved": "\"danger\" | \"neutral\" | \"success\"",
295
+ "references": {
296
+ "StatIntent": {
297
+ "location": "import",
298
+ "path": "./au-stat.types",
299
+ "id": "src/components/data-display/au-stat/au-stat.types.ts::StatIntent",
300
+ "referenceLocation": "StatIntent"
301
+ }
302
+ }
303
+ },
304
+ "required": false,
305
+ "optional": false,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Color of the delta row only, independent of `trend`. Unsupported values render `neutral` and warn once."
309
+ },
310
+ "getter": false,
311
+ "setter": false,
312
+ "reflect": true,
313
+ "attribute": "intent",
314
+ "defaultValue": "'neutral'"
315
+ },
316
+ "live": {
317
+ "type": "string",
318
+ "mutable": false,
319
+ "complexType": {
320
+ "original": "StatLive",
321
+ "resolved": "\"off\" | \"polite\"",
322
+ "references": {
323
+ "StatLive": {
324
+ "location": "import",
325
+ "path": "./au-stat.types",
326
+ "id": "src/components/data-display/au-stat/au-stat.types.ts::StatLive",
327
+ "referenceLocation": "StatLive"
328
+ }
329
+ }
330
+ },
331
+ "required": false,
332
+ "optional": false,
333
+ "docs": {
334
+ "tags": [],
335
+ "text": "`polite` announces changes through the document announcer. Unsupported values render `off` and warn once."
336
+ },
337
+ "getter": false,
338
+ "setter": false,
339
+ "reflect": true,
340
+ "attribute": "live",
341
+ "defaultValue": "'off'"
342
+ },
343
+ "size": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "StatSize",
348
+ "resolved": "\"large\" | \"medium\" | \"small\"",
349
+ "references": {
350
+ "StatSize": {
351
+ "location": "import",
352
+ "path": "./au-stat.types",
353
+ "id": "src/components/data-display/au-stat/au-stat.types.ts::StatSize",
354
+ "referenceLocation": "StatSize"
355
+ }
356
+ }
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "Size of the value. Unsupported values render `medium` and warn once."
363
+ },
364
+ "getter": false,
365
+ "setter": false,
366
+ "reflect": true,
367
+ "attribute": "size",
368
+ "defaultValue": "'medium'"
369
+ },
370
+ "upLabel": {
371
+ "type": "string",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "string",
375
+ "resolved": "string",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "Hidden direction word for `trend=\"up\"`. Blank falls back to `Up`."
383
+ },
384
+ "getter": false,
385
+ "setter": false,
386
+ "reflect": false,
387
+ "attribute": "up-label",
388
+ "defaultValue": "'Up'"
389
+ },
390
+ "downLabel": {
391
+ "type": "string",
392
+ "mutable": false,
393
+ "complexType": {
394
+ "original": "string",
395
+ "resolved": "string",
396
+ "references": {}
397
+ },
398
+ "required": false,
399
+ "optional": false,
400
+ "docs": {
401
+ "tags": [],
402
+ "text": "Hidden direction word for `trend=\"down\"`. Blank falls back to `Down`."
403
+ },
404
+ "getter": false,
405
+ "setter": false,
406
+ "reflect": false,
407
+ "attribute": "down-label",
408
+ "defaultValue": "'Down'"
409
+ },
410
+ "flatLabel": {
411
+ "type": "string",
412
+ "mutable": false,
413
+ "complexType": {
414
+ "original": "string",
415
+ "resolved": "string",
416
+ "references": {}
417
+ },
418
+ "required": false,
419
+ "optional": false,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "Hidden direction word for `trend=\"flat\"`. Blank falls back to `Unchanged`."
423
+ },
424
+ "getter": false,
425
+ "setter": false,
426
+ "reflect": false,
427
+ "attribute": "flat-label",
428
+ "defaultValue": "'Unchanged'"
429
+ },
430
+ "emptyLabel": {
431
+ "type": "string",
432
+ "mutable": false,
433
+ "complexType": {
434
+ "original": "string",
435
+ "resolved": "string",
436
+ "references": {}
437
+ },
438
+ "required": false,
439
+ "optional": false,
440
+ "docs": {
441
+ "tags": [],
442
+ "text": "Hidden text (and announcement) for a blank value. Blank falls back to `No data`."
443
+ },
444
+ "getter": false,
445
+ "setter": false,
446
+ "reflect": false,
447
+ "attribute": "empty-label",
448
+ "defaultValue": "'No data'"
449
+ }
450
+ };
451
+ }
452
+ static get states() {
453
+ return {
454
+ "described": {}
455
+ };
456
+ }
457
+ static get elementRef() { return "host"; }
458
+ static get watchers() {
459
+ return [{
460
+ "propName": "label",
461
+ "methodName": "contentChanged"
462
+ }, {
463
+ "propName": "value",
464
+ "methodName": "contentChanged"
465
+ }, {
466
+ "propName": "unit",
467
+ "methodName": "contentChanged"
468
+ }, {
469
+ "propName": "delta",
470
+ "methodName": "contentChanged"
471
+ }, {
472
+ "propName": "trend",
473
+ "methodName": "contentChanged"
474
+ }, {
475
+ "propName": "upLabel",
476
+ "methodName": "contentChanged"
477
+ }, {
478
+ "propName": "downLabel",
479
+ "methodName": "contentChanged"
480
+ }, {
481
+ "propName": "flatLabel",
482
+ "methodName": "contentChanged"
483
+ }, {
484
+ "propName": "emptyLabel",
485
+ "methodName": "contentChanged"
486
+ }, {
487
+ "propName": "live",
488
+ "methodName": "liveChanged"
489
+ }];
490
+ }
491
+ }
@@ -0,0 +1,2 @@
1
+ export { AuStat } from './au-stat.js';
2
+ export { STAT_DEFAULT_LABELS, STAT_INTENT, STAT_LIVE, STAT_SIZE, STAT_TREND, STAT_TREND_ICON, } from './au-stat.constants.js';
@@ -0,0 +1,13 @@
1
+ const clean = (value) => typeof value === 'string' ? value.trim() : '';
2
+ /**
3
+ * The text the announcer speaks for a stat (ST-D10): the non-blank parts joined with `, `, namely
4
+ * the label, the value with its unit (or the empty label), and the direction word with the delta.
5
+ * Pure, so it can be unit-tested.
6
+ */
7
+ export function composeStatAnnouncement(parts) {
8
+ const value = clean(parts.value);
9
+ const unit = clean(parts.unit);
10
+ const measured = value === '' ? clean(parts.emptyLabel) : [value, unit].filter(Boolean).join(' ');
11
+ const change = [clean(parts.trendWord), clean(parts.delta)].filter(Boolean).join(' ');
12
+ return [clean(parts.label), measured, change].filter(Boolean).join(', ');
13
+ }
@@ -0,0 +1,21 @@
1
+ /** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
2
+ /** Cell density: `small` is the compact density (Flux `compact`), `medium` the default (Flux `comfortable`). */
3
+ export const TABLE_SIZE = {
4
+ small: 'small',
5
+ medium: 'medium',
6
+ };
7
+ /** The two sort states of a column (there is no unsorted third state in v1). */
8
+ export const TABLE_SORT_DIRECTION = {
9
+ ascending: 'ascending',
10
+ descending: 'descending',
11
+ };
12
+ /** Consumer attribute on a `thead` `th` that makes the column sortable. Its value is the key. */
13
+ export const TABLE_SORT_ATTRIBUTE = 'data-table-sort';
14
+ /** Consumer attribute on a `th` or `td`: end-aligned, tabular numerals. */
15
+ export const TABLE_NUMERIC_ATTRIBUTE = 'data-table-numeric';
16
+ /** Name of the scroll region when there is neither a `label` nor a caption. */
17
+ export const TABLE_DEFAULT_LABEL = 'Table';
18
+ const sizes = new Set(Object.values(TABLE_SIZE));
19
+ const directions = new Set(Object.values(TABLE_SORT_DIRECTION));
20
+ export const isTableSize = (value) => typeof value === 'string' && sizes.has(value);
21
+ export const isTableSortDirection = (value) => typeof value === 'string' && directions.has(value);