@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.
- package/README.md +1 -1
- package/dist/aurora/aurora.esm.js +1 -1
- package/dist/aurora/{p-8ed72e5b.entry.js → p-01ff4d34.entry.js} +1 -1
- package/dist/aurora/{p-c3668073.entry.js → p-0554ffea.entry.js} +1 -1
- package/dist/aurora/{p-278d3434.entry.js → p-0a0a2bfe.entry.js} +1 -1
- package/dist/aurora/{p-e1c97234.entry.js → p-0a7e9e8e.entry.js} +1 -1
- package/dist/aurora/{p-c330982c.entry.js → p-1670a9bd.entry.js} +1 -1
- package/dist/aurora/{p-efd60427.entry.js → p-17c6de2c.entry.js} +1 -1
- package/dist/aurora/{p-a87dc1d3.entry.js → p-24ff90e0.entry.js} +1 -1
- package/dist/aurora/p-27da7b8a.entry.js +1 -0
- package/dist/aurora/p-380d8ebe.entry.js +1 -0
- package/dist/aurora/{p-a1e257c7.entry.js → p-3cfccef1.entry.js} +1 -1
- package/dist/aurora/{p-e72126a2.entry.js → p-4fd71d14.entry.js} +1 -1
- package/dist/aurora/{p-89b66c7a.entry.js → p-5606ed9c.entry.js} +1 -1
- package/dist/aurora/p-56fc4315.entry.js +1 -0
- package/dist/aurora/{p-685b9e53.entry.js → p-5a027df1.entry.js} +1 -1
- package/dist/aurora/{p-487df7d8.entry.js → p-5dd73182.entry.js} +1 -1
- package/dist/aurora/{p-17e65032.entry.js → p-62d79933.entry.js} +1 -1
- package/dist/aurora/p-6a1363da.entry.js +1 -0
- package/dist/aurora/{p-fd4e9cdd.entry.js → p-6e9c8e27.entry.js} +1 -1
- package/dist/aurora/{p-31a86367.entry.js → p-742abb2c.entry.js} +1 -1
- package/dist/aurora/{p-40bb52c3.entry.js → p-7a9bc20f.entry.js} +1 -1
- package/dist/aurora/{p-35edd036.entry.js → p-7cc6bb71.entry.js} +1 -1
- package/dist/aurora/{p-689f37db.entry.js → p-7fa0ee48.entry.js} +1 -1
- package/dist/aurora/{p-ee2ea46e.entry.js → p-815611f9.entry.js} +1 -1
- package/dist/aurora/{p-a8e984e1.entry.js → p-8800c466.entry.js} +1 -1
- package/dist/aurora/{p-5d2a88ca.entry.js → p-9e9377b5.entry.js} +1 -1
- package/dist/aurora/p-DMeUBbqF.js +7 -0
- package/dist/aurora/{p-DXbj-yic.js → p-DNpzZvak.js} +1 -1
- package/dist/aurora/p-DjW6oMgu.js +7 -0
- package/dist/aurora/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
- package/dist/aurora/p-NvNa2Iiu.js +1 -0
- package/dist/aurora/p-a376a248.entry.js +1 -0
- package/dist/aurora/{p-0608e910.entry.js → p-a63d1f80.entry.js} +1 -1
- package/dist/aurora/p-b0ebcc51.entry.js +1 -0
- package/dist/aurora/p-be98a1d7.entry.js +1 -0
- package/dist/aurora/{p-ed998b0c.entry.js → p-bf922703.entry.js} +1 -1
- package/dist/aurora/{p-ee4475a6.entry.js → p-c1422894.entry.js} +1 -1
- package/dist/aurora/{p-372a3416.entry.js → p-c2164ffe.entry.js} +1 -1
- package/dist/aurora/{p-2a16d544.entry.js → p-cb63ca43.entry.js} +1 -1
- package/dist/aurora/p-cc1015fe.entry.js +1 -0
- package/dist/aurora/{p-88b72de7.entry.js → p-cf16464e.entry.js} +1 -1
- package/dist/aurora/p-cfa0166b.entry.js +1 -0
- package/dist/aurora/{p-e7c81a6b.entry.js → p-d85e1d60.entry.js} +1 -1
- package/dist/aurora/{p-64229ad2.entry.js → p-f176be8b.entry.js} +1 -1
- package/dist/aurora/{p-bd1f6486.entry.js → p-f3383f3c.entry.js} +1 -1
- package/dist/aurora/p-f5d3aefa.entry.js +1 -0
- package/dist/aurora/{p-038b2190.entry.js → p-f85687a5.entry.js} +1 -1
- package/dist/aurora/{p-546a2f69.entry.js → p-fe143404.entry.js} +1 -1
- package/dist/cjs/au-alert.cjs.entry.js +1 -1
- package/dist/cjs/au-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/au-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/au-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/au-combobox.cjs.entry.js +6 -6
- package/dist/cjs/au-container.cjs.entry.js +1 -1
- package/dist/cjs/au-dialog.cjs.entry.js +4 -4
- package/dist/cjs/au-divider.cjs.entry.js +1 -1
- package/dist/cjs/au-field.cjs.entry.js +1 -1
- package/dist/cjs/{au-icon-D0L9Wwy0.js → au-icon-0-khGfX2.js} +1 -1
- package/dist/cjs/au-icon.cjs.entry.js +1 -1
- package/dist/cjs/au-input.cjs.entry.js +6 -6
- package/dist/cjs/au-kbd.cjs.entry.js +355 -0
- package/dist/cjs/au-list-item.cjs.entry.js +195 -0
- package/dist/cjs/au-list.cjs.entry.js +78 -0
- package/dist/cjs/au-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/au-menu.cjs.entry.js +1 -1
- package/dist/cjs/au-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/au-navbar.cjs.entry.js +4 -4
- package/dist/cjs/au-number-input.cjs.entry.js +4 -4
- package/dist/cjs/au-popover.cjs.entry.js +1 -1
- package/dist/cjs/au-progress.cjs.entry.js +107 -0
- package/dist/cjs/au-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/au-radio.cjs.entry.js +1 -1
- package/dist/cjs/au-segmented-control.cjs.entry.js +3 -3
- package/dist/cjs/au-segmented-option.cjs.entry.js +1 -1
- package/dist/cjs/au-select.cjs.entry.js +4 -4
- package/dist/cjs/au-sidebar-nav.cjs.entry.js +1 -1
- package/dist/cjs/au-skeleton.cjs.entry.js +106 -0
- package/dist/cjs/au-slider.cjs.entry.js +3 -3
- package/dist/cjs/au-splitter.cjs.entry.js +2 -2
- package/dist/cjs/au-stat.cjs.entry.js +262 -0
- package/dist/cjs/au-switch.cjs.entry.js +4 -4
- package/dist/cjs/au-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/au-tab.cjs.entry.js +1 -1
- package/dist/cjs/au-table.cjs.entry.js +337 -0
- package/dist/cjs/au-tabs.cjs.entry.js +4 -4
- package/dist/cjs/au-textarea.cjs.entry.js +3 -3
- package/dist/cjs/au-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/au-toast.cjs.entry.js +1 -1
- package/dist/cjs/au-toc.cjs.entry.js +1 -1
- package/dist/cjs/au-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/aurora.cjs.js +1 -1
- package/dist/cjs/{icon-loader-DyRasOnf.js → icon-loader-Dij7pYkP.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/trending-down-BKjmYE1H.js +19 -0
- package/dist/cjs/trending-up-CoWuXxqz.js +19 -0
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.constants.js +85 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.css +98 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.js +189 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.types.js +1 -0
- package/dist/collection/components/data-display/au-kbd/index.js +2 -0
- package/dist/collection/components/data-display/au-kbd/internal/describe.js +67 -0
- package/dist/collection/components/data-display/au-kbd/internal/parse.js +85 -0
- package/dist/collection/components/data-display/au-kbd/internal/platform.js +19 -0
- package/dist/collection/components/data-display/au-list/au-list.constants.js +8 -0
- package/dist/collection/components/data-display/au-list/au-list.css +30 -0
- package/dist/collection/components/data-display/au-list/au-list.js +132 -0
- package/dist/collection/components/data-display/au-list/au-list.types.js +1 -0
- package/dist/collection/components/data-display/au-list/index.js +2 -0
- package/dist/collection/components/data-display/au-list-item/au-list-item.css +196 -0
- package/dist/collection/components/data-display/au-list-item/au-list-item.js +305 -0
- package/dist/collection/components/data-display/au-list-item/index.js +1 -0
- package/dist/collection/components/data-display/au-list-item/internal/interactive-content.js +29 -0
- package/dist/collection/components/data-display/au-stat/au-stat.constants.js +44 -0
- package/dist/collection/components/data-display/au-stat/au-stat.css +139 -0
- package/dist/collection/components/data-display/au-stat/au-stat.js +491 -0
- package/dist/collection/components/data-display/au-stat/au-stat.types.js +1 -0
- package/dist/collection/components/data-display/au-stat/index.js +2 -0
- package/dist/collection/components/data-display/au-stat/internal/announcement.js +13 -0
- package/dist/collection/components/data-display/au-table/au-table.constants.js +21 -0
- package/dist/collection/components/data-display/au-table/au-table.css +20 -0
- package/dist/collection/components/data-display/au-table/au-table.js +482 -0
- package/dist/collection/components/data-display/au-table/au-table.types.js +1 -0
- package/dist/collection/components/data-display/au-table/index.js +2 -0
- package/dist/collection/components/data-display/au-table/internal/scroller-label.js +11 -0
- package/dist/collection/components/data-display/au-table/internal/sort.js +17 -0
- package/dist/collection/components/feedback/au-alert/au-alert.js +1 -1
- package/dist/collection/components/feedback/au-progress/au-progress.constants.js +38 -0
- package/dist/collection/components/feedback/au-progress/au-progress.css +201 -0
- package/dist/collection/components/feedback/au-progress/au-progress.js +226 -0
- package/dist/collection/components/feedback/au-progress/au-progress.types.js +1 -0
- package/dist/collection/components/feedback/au-progress/index.js +2 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.constants.js +33 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.css +108 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.js +159 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.types.js +1 -0
- package/dist/collection/components/feedback/au-skeleton/index.js +2 -0
- package/dist/collection/components/feedback/au-toast/au-toast.js +1 -1
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +1 -1
- package/dist/collection/components/forms/au-checkbox/au-checkbox.js +4 -4
- package/dist/collection/components/forms/au-combobox/au-combobox.js +6 -6
- package/dist/collection/components/forms/au-field/au-field.js +1 -1
- package/dist/collection/components/forms/au-input/au-input.js +6 -6
- package/dist/collection/components/forms/au-number-input/au-number-input.js +4 -4
- package/dist/collection/components/forms/au-radio/au-radio.js +1 -1
- package/dist/collection/components/forms/au-radio-group/au-radio-group.js +3 -3
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +3 -3
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +1 -1
- package/dist/collection/components/forms/au-select/au-select.js +4 -4
- package/dist/collection/components/forms/au-slider/au-slider.js +3 -3
- package/dist/collection/components/forms/au-switch/au-switch.js +4 -4
- package/dist/collection/components/forms/au-textarea/au-textarea.js +3 -3
- package/dist/collection/components/layout/au-container/au-container.js +1 -1
- package/dist/collection/components/layout/au-divider/au-divider.js +1 -1
- package/dist/collection/components/layout/au-splitter/au-splitter.js +2 -2
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +1 -1
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +1 -1
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +1 -1
- package/dist/collection/components/navigation/au-navbar/au-navbar.js +4 -4
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +1 -1
- package/dist/collection/components/navigation/au-tab/au-tab.js +1 -1
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +1 -1
- package/dist/collection/components/navigation/au-tabs/au-tabs.js +4 -4
- package/dist/collection/components/navigation/au-toc/au-toc.js +1 -1
- package/dist/collection/components/overlays/au-dialog/au-dialog.js +4 -4
- package/dist/collection/components/overlays/au-menu/au-menu.js +1 -1
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +1 -1
- package/dist/collection/components/overlays/au-popover/au-popover.js +1 -1
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +1 -1
- package/dist/collection/components/primitives/au-icon/core-icons.js +2 -0
- package/dist/components/au-alert.js +1 -1
- package/dist/components/au-avatar.js +1 -1
- package/dist/components/au-breadcrumb-item.js +1 -1
- package/dist/components/au-breadcrumb.js +1 -1
- package/dist/components/au-checkbox.js +1 -1
- package/dist/components/au-chip.js +1 -1
- package/dist/components/au-code-block.js +1 -1
- package/dist/components/au-combobox.js +1 -1
- package/dist/components/au-container.js +1 -1
- package/dist/components/au-dialog.js +1 -1
- package/dist/components/au-divider.js +1 -1
- package/dist/components/au-field.js +1 -1
- package/dist/components/au-icon.js +1 -1
- package/dist/components/au-input.js +1 -1
- package/dist/components/au-kbd.d.ts +11 -0
- package/dist/components/au-kbd.js +1 -0
- package/dist/components/au-list-item.d.ts +11 -0
- package/dist/components/au-list-item.js +1 -0
- package/dist/components/au-list.d.ts +11 -0
- package/dist/components/au-list.js +1 -0
- package/dist/components/au-menu-item.js +1 -1
- package/dist/components/au-menu.js +1 -1
- package/dist/components/au-nav-link.js +1 -1
- package/dist/components/au-navbar.js +1 -1
- package/dist/components/au-number-input.js +1 -1
- package/dist/components/au-popover.js +1 -1
- package/dist/components/au-progress.d.ts +11 -0
- package/dist/components/au-progress.js +1 -0
- package/dist/components/au-radio-group.js +1 -1
- package/dist/components/au-radio.js +1 -1
- package/dist/components/au-segmented-control.js +1 -1
- package/dist/components/au-segmented-option.js +1 -1
- package/dist/components/au-select.js +1 -1
- package/dist/components/au-sidebar-nav.js +1 -1
- package/dist/components/au-skeleton.d.ts +11 -0
- package/dist/components/au-skeleton.js +1 -0
- package/dist/components/au-slider.js +1 -1
- package/dist/components/au-splitter.js +1 -1
- package/dist/components/au-stat.d.ts +11 -0
- package/dist/components/au-stat.js +1 -0
- package/dist/components/au-switch.js +1 -1
- package/dist/components/au-tab-panel.js +1 -1
- package/dist/components/au-tab.js +1 -1
- package/dist/components/au-table.d.ts +11 -0
- package/dist/components/au-table.js +1 -0
- package/dist/components/au-tabs.js +1 -1
- package/dist/components/au-textarea.js +1 -1
- package/dist/components/au-toast-region.js +1 -1
- package/dist/components/au-toast.js +1 -1
- package/dist/components/au-toc.js +1 -1
- package/dist/components/au-tooltip.js +1 -1
- package/dist/components/p-B5BhPkwP.js +1 -0
- package/dist/components/p-DMeUBbqF.js +7 -0
- package/dist/components/p-DjW6oMgu.js +7 -0
- package/dist/components/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
- package/dist/components/{p-DAqsVCAy.js → p-Dw0zb4x_.js} +1 -1
- package/dist/components/{p-DIL-tsh4.js → p-ZpauIcNt.js} +1 -1
- package/dist/custom-elements.json +1338 -66
- package/dist/esm/au-alert.entry.js +1 -1
- package/dist/esm/au-breadcrumb-item.entry.js +1 -1
- package/dist/esm/au-breadcrumb.entry.js +1 -1
- package/dist/esm/au-checkbox.entry.js +4 -4
- package/dist/esm/au-code-block.entry.js +1 -1
- package/dist/esm/au-combobox.entry.js +7 -7
- package/dist/esm/au-container.entry.js +1 -1
- package/dist/esm/au-dialog.entry.js +4 -4
- package/dist/esm/au-divider.entry.js +1 -1
- package/dist/esm/au-field.entry.js +1 -1
- package/dist/esm/{au-icon-B17psn7x.js → au-icon-6iJTkDID.js} +1 -1
- package/dist/esm/au-icon.entry.js +1 -1
- package/dist/esm/au-input.entry.js +6 -6
- package/dist/esm/au-kbd.entry.js +353 -0
- package/dist/esm/au-list-item.entry.js +193 -0
- package/dist/esm/au-list.entry.js +76 -0
- package/dist/esm/au-menu-item.entry.js +1 -1
- package/dist/esm/au-menu.entry.js +1 -1
- package/dist/esm/au-nav-link.entry.js +1 -1
- package/dist/esm/au-navbar.entry.js +4 -4
- package/dist/esm/au-number-input.entry.js +4 -4
- package/dist/esm/au-popover.entry.js +1 -1
- package/dist/esm/au-progress.entry.js +105 -0
- package/dist/esm/au-radio-group.entry.js +3 -3
- package/dist/esm/au-radio.entry.js +1 -1
- package/dist/esm/au-segmented-control.entry.js +3 -3
- package/dist/esm/au-segmented-option.entry.js +1 -1
- package/dist/esm/au-select.entry.js +4 -4
- package/dist/esm/au-sidebar-nav.entry.js +1 -1
- package/dist/esm/au-skeleton.entry.js +104 -0
- package/dist/esm/au-slider.entry.js +3 -3
- package/dist/esm/au-splitter.entry.js +2 -2
- package/dist/esm/au-stat.entry.js +260 -0
- package/dist/esm/au-switch.entry.js +4 -4
- package/dist/esm/au-tab-panel.entry.js +1 -1
- package/dist/esm/au-tab.entry.js +1 -1
- package/dist/esm/au-table.entry.js +335 -0
- package/dist/esm/au-tabs.entry.js +4 -4
- package/dist/esm/au-textarea.entry.js +3 -3
- package/dist/esm/au-toast-region.entry.js +2 -2
- package/dist/esm/au-toast.entry.js +1 -1
- package/dist/esm/au-toc.entry.js +1 -1
- package/dist/esm/au-tooltip.entry.js +1 -1
- package/dist/esm/aurora.js +1 -1
- package/dist/esm/{icon-loader-CqLCmu4h.js → icon-loader-B2WSNZ27.js} +3 -1
- package/dist/esm/{live-announcer-CXd2OhYs.js → live-announcer-IAjNBWYI.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/trending-down-DjW6oMgu.js +17 -0
- package/dist/esm/trending-up-DMeUBbqF.js +17 -0
- package/dist/styles.css +139 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.constants.d.ts +41 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.d.ts +36 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.types.d.ts +1 -0
- package/dist/types/components/data-display/au-kbd/index.d.ts +3 -0
- package/dist/types/components/data-display/au-kbd/internal/describe.d.ts +13 -0
- package/dist/types/components/data-display/au-kbd/internal/parse.d.ts +18 -0
- package/dist/types/components/data-display/au-kbd/internal/platform.d.ts +13 -0
- package/dist/types/components/data-display/au-list/au-list.constants.d.ts +8 -0
- package/dist/types/components/data-display/au-list/au-list.d.ts +29 -0
- package/dist/types/components/data-display/au-list/au-list.types.d.ts +1 -0
- package/dist/types/components/data-display/au-list/index.d.ts +3 -0
- package/dist/types/components/data-display/au-list-item/au-list-item.d.ts +61 -0
- package/dist/types/components/data-display/au-list-item/index.d.ts +1 -0
- package/dist/types/components/data-display/au-list-item/internal/interactive-content.d.ts +2 -0
- package/dist/types/components/data-display/au-stat/au-stat.constants.d.ts +44 -0
- package/dist/types/components/data-display/au-stat/au-stat.d.ts +67 -0
- package/dist/types/components/data-display/au-stat/au-stat.types.d.ts +1 -0
- package/dist/types/components/data-display/au-stat/index.d.ts +3 -0
- package/dist/types/components/data-display/au-stat/internal/announcement.d.ts +16 -0
- package/dist/types/components/data-display/au-table/au-table.constants.d.ts +26 -0
- package/dist/types/components/data-display/au-table/au-table.d.ts +86 -0
- package/dist/types/components/data-display/au-table/au-table.types.d.ts +1 -0
- package/dist/types/components/data-display/au-table/index.d.ts +3 -0
- package/dist/types/components/data-display/au-table/internal/scroller-label.d.ts +9 -0
- package/dist/types/components/data-display/au-table/internal/sort.d.ts +11 -0
- package/dist/types/components/feedback/au-progress/au-progress.constants.d.ts +31 -0
- package/dist/types/components/feedback/au-progress/au-progress.d.ts +32 -0
- package/dist/types/components/feedback/au-progress/au-progress.types.d.ts +1 -0
- package/dist/types/components/feedback/au-progress/index.d.ts +3 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.constants.d.ts +27 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.d.ts +31 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.types.d.ts +1 -0
- package/dist/types/components/feedback/au-skeleton/index.d.ts +3 -0
- package/dist/types/components.d.ts +712 -0
- package/dist/types/vue.d.ts +7 -0
- package/package.json +53 -1
- package/dist/aurora/p-746825ce.entry.js +0 -1
- package/dist/aurora/p-CoyAdNcI.js +0 -1
- package/dist/aurora/p-b2feddb2.entry.js +0 -1
- package/dist/aurora/p-f89bde2b.entry.js +0 -1
- package/dist/components/p-M21eKzKU.js +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { StatIntent, StatLive, StatSize, StatTrend } from './au-stat.types';
|
|
2
|
+
/**
|
|
3
|
+
* A metric: a label, a value with an optional unit, and an optional change (delta) with a
|
|
4
|
+
* direction. One native description list per stat, no ARIA. The direction (`trend`) and the
|
|
5
|
+
* good-or-bad color (`intent`) are independent; the component never infers one from the other.
|
|
6
|
+
*
|
|
7
|
+
* @slot start - A decorative leading icon, inside the label (mark it `decorative`).
|
|
8
|
+
* @slot description - A secondary line. Never announced.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AuStat {
|
|
11
|
+
host: HTMLElement;
|
|
12
|
+
/** The term of the description list. Trimmed. A blank label warns once. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** The value, rendered as written (`String()` for a number). Blank shows the empty state. */
|
|
15
|
+
value: string | number;
|
|
16
|
+
/** The unit, shown after the value. Omitted when blank. */
|
|
17
|
+
unit: string;
|
|
18
|
+
/** The change, rendered as written, sign included (`+3.2 %`). */
|
|
19
|
+
delta: string;
|
|
20
|
+
/** Direction of the change. Adds a decorative icon and a visually hidden direction word. Unsupported values render no direction and warn once. */
|
|
21
|
+
trend?: StatTrend;
|
|
22
|
+
/** Color of the delta row only, independent of `trend`. Unsupported values render `neutral` and warn once. */
|
|
23
|
+
intent: StatIntent;
|
|
24
|
+
/** `polite` announces changes through the document announcer. Unsupported values render `off` and warn once. */
|
|
25
|
+
live: StatLive;
|
|
26
|
+
/** Size of the value. Unsupported values render `medium` and warn once. */
|
|
27
|
+
size: StatSize;
|
|
28
|
+
/** Hidden direction word for `trend="up"`. Blank falls back to `Up`. */
|
|
29
|
+
upLabel: string;
|
|
30
|
+
/** Hidden direction word for `trend="down"`. Blank falls back to `Down`. */
|
|
31
|
+
downLabel: string;
|
|
32
|
+
/** Hidden direction word for `trend="flat"`. Blank falls back to `Unchanged`. */
|
|
33
|
+
flatLabel: string;
|
|
34
|
+
/** Hidden text (and announcement) for a blank value. Blank falls back to `No data`. */
|
|
35
|
+
emptyLabel: string;
|
|
36
|
+
/** True while the `description` slot has an assigned element. */
|
|
37
|
+
private described;
|
|
38
|
+
/** The announcement text last seen (ST-D9). Undefined until the first load completes. */
|
|
39
|
+
private baseline;
|
|
40
|
+
private readonly announcerKey;
|
|
41
|
+
componentWillLoad(): void;
|
|
42
|
+
componentDidLoad(): void;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
45
|
+
protected contentChanged(): void;
|
|
46
|
+
protected liveChanged(): void;
|
|
47
|
+
/** A hidden host (a closed popover or dock) or a detached one stays silent (ST-D9). */
|
|
48
|
+
private canAnnounce;
|
|
49
|
+
private announcementText;
|
|
50
|
+
componentWillRender(): void;
|
|
51
|
+
private get safeSize();
|
|
52
|
+
private get safeIntent();
|
|
53
|
+
private get safeTrend();
|
|
54
|
+
private warn;
|
|
55
|
+
private warnAboutProperties;
|
|
56
|
+
/** A trend of `undefined`, `null` or a blank string means "no direction", not a mistake. */
|
|
57
|
+
private isSet;
|
|
58
|
+
/** The visually hidden direction word, with the default when the label is blank. */
|
|
59
|
+
private directionWord;
|
|
60
|
+
private get emptyText();
|
|
61
|
+
/** An element assigned to `description`. Text cannot be assigned to a named slot. */
|
|
62
|
+
private measureDescription;
|
|
63
|
+
private handleDescriptionChange;
|
|
64
|
+
private renderValue;
|
|
65
|
+
private renderDelta;
|
|
66
|
+
render(): any;
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { StatIntent, StatLive, StatSize, StatTrend } from './au-stat.constants';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface StatAnnouncementParts {
|
|
2
|
+
label?: string | undefined;
|
|
3
|
+
value?: string | undefined;
|
|
4
|
+
unit?: string | undefined;
|
|
5
|
+
/** The direction word (`Up`, `Down`, `Unchanged`), already localized. Empty when there is no trend. */
|
|
6
|
+
trendWord?: string | undefined;
|
|
7
|
+
delta?: string | undefined;
|
|
8
|
+
/** Spoken in place of a blank value. */
|
|
9
|
+
emptyLabel?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The text the announcer speaks for a stat (ST-D10): the non-blank parts joined with `, `, namely
|
|
13
|
+
* the label, the value with its unit (or the empty label), and the direction word with the delta.
|
|
14
|
+
* Pure, so it can be unit-tested.
|
|
15
|
+
*/
|
|
16
|
+
export declare function composeStatAnnouncement(parts: StatAnnouncementParts): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 declare const TABLE_SIZE: {
|
|
4
|
+
readonly small: "small";
|
|
5
|
+
readonly medium: "medium";
|
|
6
|
+
};
|
|
7
|
+
export type TableSize = (typeof TABLE_SIZE)[keyof typeof TABLE_SIZE];
|
|
8
|
+
/** The two sort states of a column (there is no unsorted third state in v1). */
|
|
9
|
+
export declare const TABLE_SORT_DIRECTION: {
|
|
10
|
+
readonly ascending: "ascending";
|
|
11
|
+
readonly descending: "descending";
|
|
12
|
+
};
|
|
13
|
+
export type TableSortDirection = (typeof TABLE_SORT_DIRECTION)[keyof typeof TABLE_SORT_DIRECTION];
|
|
14
|
+
/** Detail of the `au-sort` event: the new state, after the component wrote `sort-key` and `sort-direction`. */
|
|
15
|
+
export interface AuSortDetail {
|
|
16
|
+
key: string;
|
|
17
|
+
direction: TableSortDirection;
|
|
18
|
+
}
|
|
19
|
+
/** Consumer attribute on a `thead` `th` that makes the column sortable. Its value is the key. */
|
|
20
|
+
export declare const TABLE_SORT_ATTRIBUTE = "data-table-sort";
|
|
21
|
+
/** Consumer attribute on a `th` or `td`: end-aligned, tabular numerals. */
|
|
22
|
+
export declare const TABLE_NUMERIC_ATTRIBUTE = "data-table-numeric";
|
|
23
|
+
/** Name of the scroll region when there is neither a `label` nor a caption. */
|
|
24
|
+
export declare const TABLE_DEFAULT_LABEL = "Table";
|
|
25
|
+
export declare const isTableSize: (value: unknown) => value is TableSize;
|
|
26
|
+
export declare const isTableSortDirection: (value: unknown) => value is TableSortDirection;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { type EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import type { AuSortDetail, TableSize, TableSortDirection } from './au-table.types';
|
|
3
|
+
/**
|
|
4
|
+
* An enhancer for a consumer-written native `<table>` (spec phase5-step9-table, TB-D1). The shadow
|
|
5
|
+
* root is only a scroller around the default slot, so the table stays one light-DOM subtree and the
|
|
6
|
+
* component never creates, moves or removes a node in it. The only attribute it writes there is
|
|
7
|
+
* `aria-sort` on the sortable headers (TB-D6). It never reorders rows: the consumer sorts in the
|
|
8
|
+
* `au-sort` handler (TB-D8).
|
|
9
|
+
*
|
|
10
|
+
* @slot - One `<table>`.
|
|
11
|
+
* @part scroller - The scroll container around the table. It is a named, focusable group only while it overflows.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AuTable {
|
|
14
|
+
host: HTMLElement;
|
|
15
|
+
/** Key of the sorted column (the `data-table-sort` value of its header). Unset: no column is sorted. */
|
|
16
|
+
sortKey: string | undefined;
|
|
17
|
+
/** Direction of the sorted column. An unsupported value is ascending and warns once. */
|
|
18
|
+
sortDirection: TableSortDirection;
|
|
19
|
+
/** Keeps the header row visible while the table scrolls inside a scroller with a bounded block size. */
|
|
20
|
+
stickyHeader: boolean;
|
|
21
|
+
/** Gives every other body row a stripe background. */
|
|
22
|
+
striped: boolean;
|
|
23
|
+
/** Cell density: `small` or `medium`. Unsupported values render `medium` and warn once. */
|
|
24
|
+
size: TableSize;
|
|
25
|
+
/** Name of the scroll region while it overflows. Blank falls back to the caption text, then to `Table`. */
|
|
26
|
+
label: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* A user activation of a sortable header changed the sort. `detail` is the new state, already
|
|
29
|
+
* written to `sortKey` and `sortDirection`. Programmatic writes of those properties are silent.
|
|
30
|
+
* The component never reorders the rows: sort the data or the DOM in the handler.
|
|
31
|
+
*/
|
|
32
|
+
auSort: EventEmitter<AuSortDetail>;
|
|
33
|
+
/** True while the scroller overflows (or still has focus after it stopped): it is then a focusable group. */
|
|
34
|
+
private scrollable;
|
|
35
|
+
/** The caption text, re-read on every table mutation: it names the scroller. */
|
|
36
|
+
private captionText;
|
|
37
|
+
private loaded;
|
|
38
|
+
private table;
|
|
39
|
+
private slotElement;
|
|
40
|
+
private scroller;
|
|
41
|
+
private scrollerFocused;
|
|
42
|
+
private stopMutations;
|
|
43
|
+
private stopSize;
|
|
44
|
+
private observedTable;
|
|
45
|
+
private observedScroller;
|
|
46
|
+
protected sizeChanged(): void;
|
|
47
|
+
protected sortDirectionChanged(): void;
|
|
48
|
+
protected sortKeyChanged(): void;
|
|
49
|
+
protected stickyHeaderChanged(): void;
|
|
50
|
+
connectedCallback(): void;
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
componentWillLoad(): void;
|
|
53
|
+
componentDidLoad(): void;
|
|
54
|
+
componentDidRender(): void;
|
|
55
|
+
private warn;
|
|
56
|
+
/** An unsupported size renders `medium` (also on the reflected attribute) and warns once. */
|
|
57
|
+
private normalizeSize;
|
|
58
|
+
/** An unsupported direction is ascending (also on the reflected attribute) and warns once. */
|
|
59
|
+
private normalizeDirection;
|
|
60
|
+
/** The table is the first `table` among the slot's assigned elements (TB-D1). */
|
|
61
|
+
private discoverTable;
|
|
62
|
+
/** Everything that follows the table: discovery, `aria-sort`, the caption name and the overflow. */
|
|
63
|
+
private refresh;
|
|
64
|
+
private readonly handleSlotChange;
|
|
65
|
+
/** The direct `thead` of the slotted table, found by name: `table.tHead` is not reliable everywhere. */
|
|
66
|
+
private headOf;
|
|
67
|
+
/**
|
|
68
|
+
* The sortable headers of the slotted table: `th[data-table-sort]` in its own `thead`, not in a
|
|
69
|
+
* nested table. A blank key makes the header unsortable (TB-D4).
|
|
70
|
+
*/
|
|
71
|
+
private sortableHeaders;
|
|
72
|
+
/** `aria-sort` is component-owned on every sortable header (TB-D6). Writes only when the value differs. */
|
|
73
|
+
private syncSort;
|
|
74
|
+
private syncCaption;
|
|
75
|
+
/** Activation is delegated on the host (TB-D7): one listener, no keys of its own. */
|
|
76
|
+
protected handleClick(event: MouseEvent): void;
|
|
77
|
+
/** Watches the scroller and the table: a cell that grows overflows without resizing the scroller. */
|
|
78
|
+
private bindSize;
|
|
79
|
+
/** The scroller is a focusable group only while it overflows; it keeps the attributes while focused. */
|
|
80
|
+
private measure;
|
|
81
|
+
private handleScrollerFocus;
|
|
82
|
+
private handleScrollerBlur;
|
|
83
|
+
/** A sticky header needs a bounded scroller (TB-D10, TS5). Silent where there is no layout. */
|
|
84
|
+
private checkStickyHeader;
|
|
85
|
+
render(): any;
|
|
86
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AuSortDetail, TableSize, TableSortDirection } from './au-table.constants';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The name of the scroll region (spec TB-D9): the `label`, else the caption text, else `Table`.
|
|
3
|
+
* `aria-labelledby` cannot reach the light-DOM caption from the shadow scroller, so the text is
|
|
4
|
+
* resolved here.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveScrollerLabel(input: {
|
|
7
|
+
label?: unknown;
|
|
8
|
+
captionText?: unknown;
|
|
9
|
+
}): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TableSortDirection } from '../au-table.constants';
|
|
2
|
+
export interface SortState {
|
|
3
|
+
key: string | undefined;
|
|
4
|
+
direction: TableSortDirection;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The state after a user activates the header of `key` (spec TB-D5): a different column starts
|
|
8
|
+
* ascending, the same column flips its direction. There is no unsorted third state. Pure: the
|
|
9
|
+
* result is a new object and the input is not changed.
|
|
10
|
+
*/
|
|
11
|
+
export declare function nextSort(current: SortState, key: string): SortState;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
|
|
2
|
+
/** `small` is a 0.25rem bar and `medium` a 0.5rem bar; any other thickness is `--aurora-progress-block-size`. */
|
|
3
|
+
export declare const PROGRESS_SIZE: {
|
|
4
|
+
readonly small: "small";
|
|
5
|
+
readonly medium: "medium";
|
|
6
|
+
};
|
|
7
|
+
/** The maximum of a bar when `max` is unset or invalid. */
|
|
8
|
+
export declare const PROGRESS_DEFAULT_MAX = 100;
|
|
9
|
+
export type ProgressSize = (typeof PROGRESS_SIZE)[keyof typeof PROGRESS_SIZE];
|
|
10
|
+
/** The resolved state of a bar: what the native `<progress>` and the readout both show. */
|
|
11
|
+
export interface ProgressState {
|
|
12
|
+
/** True when no finite `value` was given: the native element has no `value` attribute. */
|
|
13
|
+
indeterminate: boolean;
|
|
14
|
+
/** The value clamped to `[0, max]`, or `null` while indeterminate. */
|
|
15
|
+
value: number | null;
|
|
16
|
+
/** The usable maximum (`PROGRESS_DEFAULT_MAX` when `max` is unset or invalid). */
|
|
17
|
+
max: number;
|
|
18
|
+
/** `value / max` in `[0, 1]`, or `null` while indeterminate. */
|
|
19
|
+
ratio: number | null;
|
|
20
|
+
/** True when `max` was set to something unusable (non-finite or not above zero); unset is not invalid. */
|
|
21
|
+
invalidMax: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const isProgressSize: (value: unknown) => value is ProgressSize;
|
|
24
|
+
/**
|
|
25
|
+
* Resolves `value` and `max` the way the native element would, except that an invalid `max` becomes
|
|
26
|
+
* 100 (the native element treats it as 1, which would turn `value="40"` into a full bar). `undefined`
|
|
27
|
+
* and `null` (a removed attribute) mean "unset": `max` is 100 with no warning, `value` is indeterminate.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveProgress(value: unknown, max: unknown): ProgressState;
|
|
30
|
+
/** A whole localized percent of `ratio` (0 to 1), for example `41%` in `en`. */
|
|
31
|
+
export declare function formatProgressPercent(ratio: number, locale?: string): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ProgressSize } from './au-progress.constants';
|
|
2
|
+
/**
|
|
3
|
+
* A linear progress bar that wraps a native `<progress>` in its shadow root, so the role, the value
|
|
4
|
+
* and the indeterminate mode come from the platform. The component adds a required name (a visible
|
|
5
|
+
* label or a hidden one), a readout tied to the value, one owner of `aria-valuetext`, themed
|
|
6
|
+
* cross-engine styling, and the reduced-motion and forced-colors rules. It never announces: use
|
|
7
|
+
* `announce()` for milestones (start, done, failure).
|
|
8
|
+
*/
|
|
9
|
+
export declare class AuProgress {
|
|
10
|
+
host: HTMLElement;
|
|
11
|
+
/** The accessible name (required). Shown above the bar, or kept as the bar's `aria-label` with `hide-label`. A host `aria-label` is not forwarded. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Hides the visible label; the name stays on the bar as `aria-label`. */
|
|
14
|
+
hideLabel: boolean;
|
|
15
|
+
/** The current value, clamped to `[0, max]`. Unset, empty or not a finite number is indeterminate (no value). */
|
|
16
|
+
value?: number | undefined;
|
|
17
|
+
/** The maximum, 100 by default. A value that is not a number above zero renders 100 and warns once. */
|
|
18
|
+
max?: number;
|
|
19
|
+
/** Text for `aria-valuetext` and for the visible readout (for example `2 of 5 steps`). Blank means none. */
|
|
20
|
+
valueText?: string;
|
|
21
|
+
/** Shows a visible, `aria-hidden` readout: `value-text` when set, else the localized percent. */
|
|
22
|
+
showValue: boolean;
|
|
23
|
+
/** `small` (0.25rem) or `medium` (0.5rem); any other thickness is `--aurora-progress-block-size`. */
|
|
24
|
+
size: ProgressSize;
|
|
25
|
+
componentWillRender(): void;
|
|
26
|
+
private warn;
|
|
27
|
+
private warnAboutProperties;
|
|
28
|
+
private get safeSize();
|
|
29
|
+
/** The `lang` of the nearest ancestor that has one, else the runtime default. */
|
|
30
|
+
private get locale();
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ProgressSize, ProgressState } from './au-progress.constants';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
|
|
2
|
+
/** `text` draws one or more bars (`lines`), `circle` an avatar-sized disc and `rect` a media or card block. */
|
|
3
|
+
export declare const SKELETON_SHAPE: {
|
|
4
|
+
readonly text: "text";
|
|
5
|
+
readonly circle: "circle";
|
|
6
|
+
readonly rect: "rect";
|
|
7
|
+
};
|
|
8
|
+
/** `shimmer` moves a highlight across each bar. Reduced motion is always static, whatever the value. */
|
|
9
|
+
export declare const SKELETON_ANIMATION: {
|
|
10
|
+
readonly shimmer: "shimmer";
|
|
11
|
+
readonly none: "none";
|
|
12
|
+
};
|
|
13
|
+
/** The most lines a text skeleton renders. A larger value is clamped, so a typo cannot render hundreds of nodes. */
|
|
14
|
+
export declare const SKELETON_MAX_LINES = 20;
|
|
15
|
+
export type SkeletonShape = (typeof SKELETON_SHAPE)[keyof typeof SKELETON_SHAPE];
|
|
16
|
+
export type SkeletonAnimation = (typeof SKELETON_ANIMATION)[keyof typeof SKELETON_ANIMATION];
|
|
17
|
+
export declare const isSkeletonShape: (value: unknown) => value is SkeletonShape;
|
|
18
|
+
export declare const isSkeletonAnimation: (value: unknown) => value is SkeletonAnimation;
|
|
19
|
+
/**
|
|
20
|
+
* The number of lines to render. `undefined` and `null` (a removed attribute) are the unset default
|
|
21
|
+
* (one line, valid). `NaN`, a value below 1 and a non-finite value give one line and are invalid; a
|
|
22
|
+
* value above the maximum is clamped and is invalid too. Fractions are floored.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeSkeletonLines(value: unknown): {
|
|
25
|
+
lines: number;
|
|
26
|
+
invalid: boolean;
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type SkeletonAnimation, type SkeletonShape } from './au-skeleton.constants';
|
|
2
|
+
/**
|
|
3
|
+
* A decorative placeholder for content that is still loading: text bars (`lines`), a circle or a
|
|
4
|
+
* rectangle, with a shimmer that is static under reduced motion. It is hidden from assistive
|
|
5
|
+
* technology (the host always carries `aria-hidden="true"`, and never a role): the loading
|
|
6
|
+
* semantics belong to the consumer's region (`aria-busy`) and to a message through `announce()`.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AuSkeleton {
|
|
9
|
+
host: HTMLElement;
|
|
10
|
+
/** What the placeholder stands in for: `text` (lines), `circle` (an avatar) or `rect` (media or a card block). An unsupported value renders `text` and warns once. */
|
|
11
|
+
shape: SkeletonShape;
|
|
12
|
+
/** The number of lines of a `text` skeleton, from 1 to 20; the last of several is shorter. Ignored for `circle` and `rect`. An invalid value renders one line (or twenty when too large) and warns once. */
|
|
13
|
+
lines: number;
|
|
14
|
+
/** `shimmer` moves a highlight across the bars; `none` is static. Reduced motion is always static. An unsupported value renders `shimmer` and warns once. */
|
|
15
|
+
animation: SkeletonAnimation;
|
|
16
|
+
componentWillLoad(): void;
|
|
17
|
+
componentWillRender(): void;
|
|
18
|
+
/**
|
|
19
|
+
* The host is always decorative (SK-D2). Stencil diffs against the previous vnode, not the live
|
|
20
|
+
* DOM, so `<Host aria-hidden>` would not undo a later consumer write; the attribute is written
|
|
21
|
+
* imperatively after every render instead.
|
|
22
|
+
*/
|
|
23
|
+
componentDidRender(): void;
|
|
24
|
+
private syncHidden;
|
|
25
|
+
private get safeShape();
|
|
26
|
+
private get safeAnimation();
|
|
27
|
+
private warn;
|
|
28
|
+
private warnAboutProperties;
|
|
29
|
+
private renderLines;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SkeletonAnimation, SkeletonShape } from './au-skeleton.constants';
|