@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
|
@@ -65,7 +65,7 @@ const AuNavLink = class {
|
|
|
65
65
|
unavailable: this.disabled,
|
|
66
66
|
});
|
|
67
67
|
const current = navigation.normalizeAriaCurrent(this.ariaCurrent).value;
|
|
68
|
-
return (index.h("a", { key: '
|
|
68
|
+
return (index.h("a", { key: '60de85503288ab2067258f4826546adc5fd27c77', class: "link", part: "link", ...link.attributes, "aria-current": current ?? undefined, onClick: this.handleClick }, index.h("slot", { key: 'dfd3dd880ad5c807c613a5b45bcb080c66062db2', name: "start" }), index.h("span", { key: '8ba064fec0cf317c8802c91fb479035613d35d1e', class: "link__content", part: "content" }, index.h("slot", { key: '151ef5d2c5a0999cbb271d11ffe1b8234a373eea' })), index.h("slot", { key: 'f94c092b165fd4e6db2db36ef888e587e7995225', name: "end" }), link.opensNewTab ? index.h("span", { class: "link__visually-hidden" }, link.newTabText) : null, link.opensNewTab ? (index.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" }, linkState.NEW_TAB_ICON_PATHS.map((d) => (index.h("path", { d: d }))))) : null));
|
|
69
69
|
}
|
|
70
70
|
static get watchers() { return {
|
|
71
71
|
"ariaCurrent": [{
|
|
@@ -284,13 +284,13 @@ const AuNavbar = class {
|
|
|
284
284
|
const expanded = collapsed && this.open;
|
|
285
285
|
const label = this.label?.trim() || NAVBAR_DEFAULT_LABEL;
|
|
286
286
|
const menuLabel = this.menuLabel?.trim() || NAVBAR_DEFAULT_MENU_LABEL;
|
|
287
|
-
return (index.h(index.Host, { key: '
|
|
287
|
+
return (index.h(index.Host, { key: 'd075c258e79914082706ddcd7c7059b0d906d506', collapsed: collapsed }, index.h("div", { key: 'd870650bd410589ea9dd72a8e2412813a03b96c8', part: "base", class: "navbar" }, index.h("div", { key: 'c15e5495ed7b1bf89d88014427cfb051de0a3a43', part: "brand", class: "navbar__brand" }, index.h("slot", { key: '1fb0747cd0ec6368637c45ee37ea74e41b75843a', name: "brand" })), index.h("nav", { key: 'aa1f7cdfee0ac312882f0122371fbfbddc2c0b19', part: "nav", class: "navbar__nav", "aria-label": label, tabindex: "-1", onKeyDown: this.handleNavKeyDown, ref: (element) => {
|
|
288
288
|
this.navElement = element;
|
|
289
|
-
} }, index.h("button", { key: '
|
|
289
|
+
} }, index.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) => {
|
|
290
290
|
this.menuButtonElement = element;
|
|
291
|
-
} }, index.h("svg", { key: '
|
|
291
|
+
} }, index.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" }, index.h("path", { key: '5bbd0beb07e10de01d98d2b432c1a201ebdc99de', d: "M4 6h16" }), index.h("path", { key: '468fbcc63fff3a49e63212ac8bbf096f2e6821a3', d: "M4 12h16" }), index.h("path", { key: 'e9d1de17b681d136383887f865581a4b8496a1a4', d: "M4 18h16" })), index.h("span", { key: '3ab1a693692d4bd3d578221e64ddf8596dc6bac7', class: "navbar__visually-hidden" }, menuLabel)), index.h("div", { key: '400a513647ee160cbe5898947973a9d662bdb5d4', part: "links", id: LINKS_ID, class: "navbar__links", hidden: collapsed && !this.open, ref: (element) => {
|
|
292
292
|
this.linksElement = element;
|
|
293
|
-
} }, index.h("slot", { key: '
|
|
293
|
+
} }, index.h("slot", { key: 'a4709987399e4258c7edcb492041be0a010ef667', name: "links" }))), index.h("div", { key: '9a7f6a0cb9211c9648c7b47c1621031611574701', part: "actions", class: "navbar__actions" }, index.h("slot", { key: 'e88cf385a9c4048dd0a0fed9791233cccbccac34', name: "actions" })))));
|
|
294
294
|
}
|
|
295
295
|
static get watchers() { return {
|
|
296
296
|
"open": [{
|
|
@@ -319,24 +319,24 @@ const AuNumberInput = class {
|
|
|
319
319
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
320
320
|
'aria-describedby': this.descriptionIds,
|
|
321
321
|
});
|
|
322
|
-
return (index.h(index.Host, { key: '
|
|
322
|
+
return (index.h(index.Host, { key: '1266ef5d5f56ca8d16e058ccfc3ccaeff827ba9d', class: {
|
|
323
323
|
'number-input-host--disabled': disabled,
|
|
324
324
|
'number-input-host--invalid': this.isInvalid,
|
|
325
325
|
'number-input-host--readonly': this.readOnly,
|
|
326
|
-
} }, index.h("div", { key: '
|
|
326
|
+
} }, index.h("div", { key: 'c532f5dfb264a026d1e3624a26d93f95805a1273', class: {
|
|
327
327
|
'number-input': true,
|
|
328
328
|
[`number-input--${this.safeSize}`]: true,
|
|
329
329
|
'number-input--disabled': disabled,
|
|
330
330
|
'number-input--focused': this.focused,
|
|
331
331
|
'number-input--invalid': this.isInvalid,
|
|
332
332
|
'number-input--readonly': this.readOnly,
|
|
333
|
-
} }, labelText ? (index.h("label", { class: "number-input__label", part: "label", htmlFor: this.inputId }, index.h("span", null, labelText), this.required ? (index.h("span", { class: "number-input__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: '
|
|
333
|
+
} }, labelText ? (index.h("label", { class: "number-input__label", part: "label", htmlFor: this.inputId }, index.h("span", null, labelText), this.required ? (index.h("span", { class: "number-input__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: 'e20ebabd1caaf48b21e6c0621305b2fbbe150a9d', class: "number-input__field", part: "field" }, index.h("button", { key: '1ff36d3ee710b9572972eef8217e9d5b44a787b9', class: "number-input__stepper number-input__stepper--decrement", part: "decrement", type: "button", tabindex: "-1", "aria-label": decrementName, disabled: locked || this.atMin, onPointerDown: this.handleStepperPointerDown, onClick: this.handleDecrement }, index.h("au-icon", { key: 'fb8d234565e9eaa35e90209fa9d49a933b31c6c6', icon: DECREMENT_ICON, decorative: true })), index.h("input", { key: '0f39a61cdb7dbb0a289af55ca7ca354c9c953870', ref: (element) => {
|
|
334
334
|
this.inputElement = element;
|
|
335
335
|
if (!element)
|
|
336
336
|
return;
|
|
337
337
|
if (element.value !== this.currentText)
|
|
338
338
|
element.value = this.currentText;
|
|
339
|
-
}, id: this.inputId, class: "number-input__control", part: "control", type: "number", inputMode: "decimal", required: this.required, disabled: disabled, readOnly: this.readOnly, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), index.h("button", { key: '
|
|
339
|
+
}, id: this.inputId, class: "number-input__control", part: "control", type: "number", inputMode: "decimal", required: this.required, disabled: disabled, readOnly: this.readOnly, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), index.h("button", { key: '60d843a7b54dc8c54574d3e8b73038ec160265a7', class: "number-input__stepper number-input__stepper--increment", part: "increment", type: "button", tabindex: "-1", "aria-label": incrementName, disabled: locked || this.atMax, onPointerDown: this.handleStepperPointerDown, onClick: this.handleIncrement }, index.h("au-icon", { key: '92b819d6da0aba2499994121565180ca21338d3d', icon: INCREMENT_ICON, decorative: true }))), hintText ? (index.h("p", { class: "number-input__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (index.h("p", { class: "number-input__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
340
340
|
}
|
|
341
341
|
static get formAssociated() { return true; }
|
|
342
342
|
static get watchers() { return {
|
|
@@ -117,7 +117,7 @@ const AuPopover = class {
|
|
|
117
117
|
}));
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (index.h(index.Host, { key: '
|
|
120
|
+
return (index.h(index.Host, { key: '11b4a0bafeeb5b2a78d245ff9e508bd6875aeeb4' }, index.h("slot", { key: '209693fd006ad62c59d08b66fb268447d1f1022d' })));
|
|
121
121
|
}
|
|
122
122
|
static get watchers() { return {
|
|
123
123
|
"open": [{
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-B8lDYTMv.js');
|
|
4
|
+
var warnOnce = require('./warn-once-lHF-gQZp.js');
|
|
5
|
+
|
|
6
|
+
/** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
|
|
7
|
+
/** `small` is a 0.25rem bar and `medium` a 0.5rem bar; any other thickness is `--aurora-progress-block-size`. */
|
|
8
|
+
const PROGRESS_SIZE = {
|
|
9
|
+
small: 'small',
|
|
10
|
+
medium: 'medium',
|
|
11
|
+
};
|
|
12
|
+
/** The maximum of a bar when `max` is unset or invalid. */
|
|
13
|
+
const PROGRESS_DEFAULT_MAX = 100;
|
|
14
|
+
const sizes = new Set(Object.values(PROGRESS_SIZE));
|
|
15
|
+
const isProgressSize = (value) => typeof value === 'string' && sizes.has(value);
|
|
16
|
+
/**
|
|
17
|
+
* Resolves `value` and `max` the way the native element would, except that an invalid `max` becomes
|
|
18
|
+
* 100 (the native element treats it as 1, which would turn `value="40"` into a full bar). `undefined`
|
|
19
|
+
* and `null` (a removed attribute) mean "unset": `max` is 100 with no warning, `value` is indeterminate.
|
|
20
|
+
*/
|
|
21
|
+
function resolveProgress(value, max) {
|
|
22
|
+
const unsetMax = max === undefined || max === null;
|
|
23
|
+
const parsedMax = unsetMax ? PROGRESS_DEFAULT_MAX : Number(max);
|
|
24
|
+
const invalidMax = !unsetMax && (!Number.isFinite(parsedMax) || parsedMax <= 0);
|
|
25
|
+
const usableMax = unsetMax || invalidMax ? PROGRESS_DEFAULT_MAX : parsedMax;
|
|
26
|
+
const unsetValue = value === undefined || value === null || value === '';
|
|
27
|
+
const parsedValue = unsetValue ? Number.NaN : Number(value);
|
|
28
|
+
if (!Number.isFinite(parsedValue)) {
|
|
29
|
+
return { indeterminate: true, value: null, max: usableMax, ratio: null, invalidMax };
|
|
30
|
+
}
|
|
31
|
+
const clamped = Math.min(Math.max(parsedValue, 0), usableMax);
|
|
32
|
+
return {
|
|
33
|
+
indeterminate: false,
|
|
34
|
+
value: clamped,
|
|
35
|
+
max: usableMax,
|
|
36
|
+
ratio: clamped / usableMax,
|
|
37
|
+
invalidMax,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/** A whole localized percent of `ratio` (0 to 1), for example `41%` in `en`. */
|
|
41
|
+
function formatProgressPercent(ratio, locale) {
|
|
42
|
+
return new Intl.NumberFormat(locale, { style: 'percent', maximumFractionDigits: 0 }).format(ratio);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const auProgressCss = () => `:host{display:block}:host([hidden]){display:none}.progress{display:flex;flex-direction:column;gap:var(--aurora-progress-gap, 0.375rem)}.progress__header{align-items:baseline;display:flex;gap:0.75rem;justify-content:space-between}.progress__label,.progress__value{font-family:var(--aurora-font-family-body, inherit);font-size:var(--aurora-progress-font-size, var(--aurora-font-size-sm, 0.875rem));line-height:1.4}.progress__label{color:var(--aurora-progress-label-color, var(--aurora-color-text, #202733));font-weight:var(--aurora-font-weight-medium, 500)}.progress__value{color:var(--aurora-progress-value-color, var(--aurora-color-text-muted, #566273));font-variant-numeric:tabular-nums;margin-inline-start:auto}progress{--_fill:var(--aurora-progress-fill, var(--aurora-color-primary, #3157a4));--_track:var( --aurora-progress-track, color-mix(in srgb, var(--aurora-color-text, #202733) 12%, var(--aurora-color-canvas, #ffffff)) );--_radius:var(--aurora-progress-radius, var(--aurora-radius-pill, 999px));--_duration:var( --aurora-progress-transition-duration, var(--aurora-motion-duration-normal, 180ms) );appearance:none;background-color:var(--_track);block-size:var(--aurora-progress-block-size, 0.5rem);border:0;border-radius:var(--_radius);box-sizing:border-box;color:var(--_fill);display:block;inline-size:100%;overflow:hidden}.progress--small progress{block-size:var(--aurora-progress-block-size, 0.25rem)}progress::-webkit-progress-bar{background-color:var(--_track);border-radius:var(--_radius)}progress::-webkit-progress-value{background-color:var(--_fill);border-radius:var(--_radius);transition-duration:var(--_duration);transition-property:inline-size;transition-timing-function:ease}progress::-moz-progress-bar{background-color:var(--_fill);border-radius:var(--_radius);transition-duration:var(--_duration);transition-property:inline-size;transition-timing-function:ease}progress:indeterminate::-webkit-progress-bar{animation-duration:var(--aurora-progress-indeterminate-duration, 1.5s);animation-iteration-count:infinite;animation-name:au-progress-slide;animation-timing-function:ease-in-out;background-image:linear-gradient(var(--_fill), var(--_fill));background-repeat:no-repeat;background-size:40% 100%}progress:indeterminate::-moz-progress-bar{animation-duration:var(--aurora-progress-indeterminate-duration, 1.5s);animation-iteration-count:infinite;animation-name:au-progress-slide;animation-timing-function:ease-in-out;background-color:transparent;background-image:linear-gradient(var(--_fill), var(--_fill));background-repeat:no-repeat;background-size:40% 100%}progress:indeterminate:dir(rtl)::-webkit-progress-bar{animation-name:au-progress-slide-rtl}progress:indeterminate:dir(rtl)::-moz-progress-bar{animation-name:au-progress-slide-rtl}@keyframes au-progress-slide{from{background-position-x:-66.67%}to{background-position-x:166.67%}}@keyframes au-progress-slide-rtl{from{background-position-x:166.67%}to{background-position-x:-66.67%}}@media (prefers-reduced-motion: reduce){progress::-webkit-progress-value{transition-duration:0s}progress::-moz-progress-bar{transition-duration:0s}progress:indeterminate::-webkit-progress-bar{animation-name:none;background-image:repeating-linear-gradient(45deg, var(--_fill) 0 0.25rem, transparent 0.25rem 0.5rem);background-position:0 0;background-repeat:repeat;background-size:auto}progress:indeterminate::-moz-progress-bar{animation-name:none;background-image:repeating-linear-gradient(45deg, var(--_fill) 0 0.25rem, transparent 0.25rem 0.5rem);background-position:0 0;background-repeat:repeat;background-size:auto}progress:indeterminate:dir(rtl)::-webkit-progress-bar{animation-name:none}progress:indeterminate:dir(rtl)::-moz-progress-bar{animation-name:none}}@media (forced-colors: active){progress{--_fill:Highlight;--_track:Canvas;border:1px solid CanvasText;forced-color-adjust:none}}`;
|
|
46
|
+
|
|
47
|
+
const AuProgress = class {
|
|
48
|
+
constructor(hostRef) {
|
|
49
|
+
index.registerInstance(this, hostRef);
|
|
50
|
+
}
|
|
51
|
+
get host() { return index.getElement(this); }
|
|
52
|
+
/** 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. */
|
|
53
|
+
label;
|
|
54
|
+
/** Hides the visible label; the name stays on the bar as `aria-label`. */
|
|
55
|
+
hideLabel = false;
|
|
56
|
+
/** The current value, clamped to `[0, max]`. Unset, empty or not a finite number is indeterminate (no value). */
|
|
57
|
+
value;
|
|
58
|
+
/** The maximum, 100 by default. A value that is not a number above zero renders 100 and warns once. */
|
|
59
|
+
max = 100;
|
|
60
|
+
/** Text for `aria-valuetext` and for the visible readout (for example `2 of 5 steps`). Blank means none. */
|
|
61
|
+
valueText;
|
|
62
|
+
/** Shows a visible, `aria-hidden` readout: `value-text` when set, else the localized percent. */
|
|
63
|
+
showValue = false;
|
|
64
|
+
/** `small` (0.25rem) or `medium` (0.5rem); any other thickness is `--aurora-progress-block-size`. */
|
|
65
|
+
size = PROGRESS_SIZE.medium;
|
|
66
|
+
componentWillRender() {
|
|
67
|
+
this.warnAboutProperties();
|
|
68
|
+
}
|
|
69
|
+
warn(key, message) {
|
|
70
|
+
warnOnce.warnOncePerDocument(this.host.ownerDocument, `au-progress:${key}`, `[au-progress] ${message}`);
|
|
71
|
+
}
|
|
72
|
+
warnAboutProperties() {
|
|
73
|
+
if ((this.label ?? '').trim() === '') {
|
|
74
|
+
this.warn('missing-label', 'A progress bar needs an accessible name. Set the "label" attribute (add "hide-label" to keep it invisible); a host aria-label is not forwarded.');
|
|
75
|
+
}
|
|
76
|
+
if (!isProgressSize(this.size)) {
|
|
77
|
+
this.warn('size', `Unsupported size ${JSON.stringify(this.size)}; it renders as "medium". Use "small" or "medium".`);
|
|
78
|
+
}
|
|
79
|
+
if (resolveProgress(this.value, this.max).invalidMax) {
|
|
80
|
+
this.warn('max', `Unsupported max ${JSON.stringify(this.max)}; it renders as ${PROGRESS_DEFAULT_MAX}. Use a number above zero.`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
get safeSize() {
|
|
84
|
+
return isProgressSize(this.size) ? this.size : PROGRESS_SIZE.medium;
|
|
85
|
+
}
|
|
86
|
+
/** The `lang` of the nearest ancestor that has one, else the runtime default. */
|
|
87
|
+
get locale() {
|
|
88
|
+
return this.host.closest('[lang]')?.getAttribute('lang') || undefined;
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
const state = resolveProgress(this.value, this.max);
|
|
92
|
+
const label = (this.label ?? '').trim();
|
|
93
|
+
const valueText = (this.valueText ?? '').trim();
|
|
94
|
+
const visibleLabel = !this.hideLabel && label !== '';
|
|
95
|
+
let readout = '';
|
|
96
|
+
if (this.showValue) {
|
|
97
|
+
if (valueText !== '')
|
|
98
|
+
readout = valueText;
|
|
99
|
+
else if (state.ratio !== null)
|
|
100
|
+
readout = formatProgressPercent(state.ratio, this.locale);
|
|
101
|
+
}
|
|
102
|
+
return (index.h(index.Host, { key: '1e08b9730fd3d94b0c79dfe52d12631db83b1909' }, index.h("span", { key: 'a6f42c6ed4f6b3dc985c6805bcb823a87edf535e', part: "base", class: `progress progress--${this.safeSize}${state.indeterminate ? ' progress--indeterminate' : ''}` }, (visibleLabel || readout !== '') && (index.h("span", { key: 'ef416abfa75e9adcb98752018e65432aad663f36', part: "header", class: "progress__header" }, visibleLabel && (index.h("label", { key: '62d95f5d78a069e41d37891406381d3ea534ec19', part: "label", class: "progress__label", htmlFor: "progress" }, label)), readout !== '' && (index.h("span", { key: 'e7cd0f6c8d8b868511745b2e87f42b1165a38e70', part: "value", class: "progress__value", "aria-hidden": "true" }, readout)))), index.h("progress", { key: '4c25bf50028817550e8b988b4ec32b7c4ba30224', part: "progress", id: "progress", max: state.max, ...(state.value !== null ? { value: state.value } : {}), ...(this.hideLabel && label !== '' ? { 'aria-label': label } : {}), ...(valueText !== '' ? { 'aria-valuetext': valueText } : {}) }))));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
AuProgress.style = auProgressCss();
|
|
106
|
+
|
|
107
|
+
exports.au_progress = AuProgress;
|
|
@@ -314,16 +314,16 @@ const AuRadioGroup = class {
|
|
|
314
314
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
315
315
|
'aria-disabled': this.isDisabled ? 'true' : undefined,
|
|
316
316
|
});
|
|
317
|
-
return (index.h(index.Host, { key: '
|
|
317
|
+
return (index.h(index.Host, { key: 'e5b2a4c3849afe2edd0e4768630b228297d8f44b', class: {
|
|
318
318
|
'radio-group-host--disabled': this.isDisabled,
|
|
319
319
|
'radio-group-host--invalid': this.isInvalid,
|
|
320
|
-
} }, index.h("div", { key: '
|
|
320
|
+
} }, index.h("div", { key: 'e9ed2d9d75da34c027abf39ce7bba644cb7d29e0', part: "base", class: {
|
|
321
321
|
'radio-group': true,
|
|
322
322
|
'radio-group--vertical': this.safeOrientation === RADIO_GROUP_ORIENTATIONS.vertical,
|
|
323
323
|
'radio-group--horizontal': this.safeOrientation === RADIO_GROUP_ORIENTATIONS.horizontal,
|
|
324
324
|
'radio-group--disabled': this.isDisabled,
|
|
325
325
|
'radio-group--invalid': this.isInvalid,
|
|
326
|
-
} }, labelText ? (index.h("span", { class: "radio-group__label", part: "label", id: this.labelId }, labelText, this.required ? (index.h("span", { class: "radio-group__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: '
|
|
326
|
+
} }, labelText ? (index.h("span", { class: "radio-group__label", part: "label", id: this.labelId }, labelText, this.required ? (index.h("span", { class: "radio-group__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: 'b57af36d4562ca05e3191be1e709546a367e2a40', class: "radio-group__items", part: "group", role: "radiogroup", ...groupAttributes }, index.h("slot", { key: '68cd16e19fe0e236d172bba442dd21f6c3cebf01', ref: (element) => {
|
|
327
327
|
this.slotElement = element;
|
|
328
328
|
}, onSlotchange: this.handleSlotChange })), hintText ? (index.h("p", { class: "radio-group__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (index.h("p", { class: "radio-group__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
329
329
|
}
|
|
@@ -26,7 +26,7 @@ const AuRadio = class {
|
|
|
26
26
|
itemUpdate.dispatchItemUpdate(this.host);
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: 'dfba44e0d18c95c11b1d7543c94000a4d398ec9a', role: "radio", "aria-checked": this.checked ? 'true' : 'false' }, index.h("span", { key: '31e017244bfece35e6f8d8740f38e4801c6271b2', class: "radio__indicator", part: "indicator", "aria-hidden": "true" }), index.h("span", { key: '023774ef3aac9b82994757416b4057c9af45bc84', class: "radio__text", part: "text" }, index.h("slot", { key: 'ad4cd149fe9c93f8db8ca0fe100e4c274f5650ca' }, this.label?.trim()))));
|
|
30
30
|
}
|
|
31
31
|
static get watchers() { return {
|
|
32
32
|
"value": [{
|
|
@@ -500,10 +500,10 @@ const AuSegmentedControl = class {
|
|
|
500
500
|
});
|
|
501
501
|
const orientation = this.safeOrientation;
|
|
502
502
|
const size = this.safeSize;
|
|
503
|
-
return (index.h(index.Host, { key: '
|
|
503
|
+
return (index.h(index.Host, { key: 'd219d8f355112113f72810ffe7ddb31d7e724091', class: {
|
|
504
504
|
'segmented-control-host--disabled': this.isDisabled,
|
|
505
505
|
'segmented-control-host--invalid': this.isInvalid,
|
|
506
|
-
} }, index.h("div", { key: '
|
|
506
|
+
} }, index.h("div", { key: '643e72d2f954391d3f520d355a6e31c62eb942bf', part: "base", class: {
|
|
507
507
|
'segmented-control': true,
|
|
508
508
|
'segmented-control--horizontal': orientation === segmented.SEGMENTED_CONTROL_ORIENTATION.horizontal,
|
|
509
509
|
'segmented-control--vertical': orientation === segmented.SEGMENTED_CONTROL_ORIENTATION.vertical,
|
|
@@ -513,7 +513,7 @@ const AuSegmentedControl = class {
|
|
|
513
513
|
'segmented-control--multiple': this.multiple,
|
|
514
514
|
'segmented-control--disabled': this.isDisabled,
|
|
515
515
|
'segmented-control--invalid': this.isInvalid,
|
|
516
|
-
} }, labelText ? (index.h("span", { class: "segmented-control__label", part: "label", id: this.labelId }, labelText, radioMode && this.required ? (index.h("span", { class: "segmented-control__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: '
|
|
516
|
+
} }, labelText ? (index.h("span", { class: "segmented-control__label", part: "label", id: this.labelId }, labelText, radioMode && this.required ? (index.h("span", { class: "segmented-control__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: 'c5b49155cb91b99ae50a703018d71295ae7b9dba', class: "segmented-control__items", part: "group", role: radioMode ? 'radiogroup' : 'group', ...groupAttributes }, index.h("slot", { key: '839030d95f260f9fdb804c9382806c23997f4867', ref: (element) => {
|
|
517
517
|
this.slotElement = element;
|
|
518
518
|
}, onSlotchange: this.handleSlotChange })), hintText ? (index.h("p", { class: "segmented-control__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (index.h("p", { class: "segmented-control__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
519
519
|
}
|
|
@@ -53,7 +53,7 @@ const AuSegmentedOption = class {
|
|
|
53
53
|
render() {
|
|
54
54
|
const toggle = this.mode === segmented.SEGMENTED_OPTION_MODE.toggle && segmented.isSegmentedOptionMode(this.mode);
|
|
55
55
|
const state = this.selected ? 'true' : 'false';
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: '3a54770a2c3750bba62c7aaf873506cff3a4ff09', role: toggle ? 'button' : 'radio', "aria-checked": toggle ? undefined : state, "aria-pressed": toggle ? state : undefined }, index.h("span", { key: '30595b6f64d71f74e65bc5d6a6d80a91dd680b93', class: "segmented-option__content", part: "content" }, index.h("span", { key: '439234c1130f99e754c83868c88b270cc6f37438', class: "segmented-option__start", part: "start" }, index.h("slot", { key: 'b60e9d2bade3674fefb61b4c31a49b5d7fb9a801', name: "start" })), index.h("span", { key: 'bf942ceccb6eda637e599d75645a04e66032fa24', class: "segmented-option__label", part: "label" }, index.h("slot", { key: '9c6fe9870cd11ecc089f4b8e53a114c82439d056', onSlotchange: this.handleSlotChange }, this.label?.trim())))));
|
|
57
57
|
}
|
|
58
58
|
static get watchers() { return {
|
|
59
59
|
"value": [{
|
|
@@ -311,18 +311,18 @@ const AuSelect = class {
|
|
|
311
311
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
312
312
|
'aria-describedby': this.descriptionIds,
|
|
313
313
|
});
|
|
314
|
-
return (index.h(index.Host, { key: '
|
|
314
|
+
return (index.h(index.Host, { key: 'cf28532c53752b1aafe83e1f621c4d3cb41dc88d', class: {
|
|
315
315
|
'select-host--disabled': selectDisabled,
|
|
316
316
|
'select-host--invalid': this.isInvalid,
|
|
317
|
-
} }, index.h("div", { key: '
|
|
317
|
+
} }, index.h("div", { key: 'c6791c4a7d9f04c74186ef73a54e60a6fd9c0061', class: {
|
|
318
318
|
select: true,
|
|
319
319
|
[`select--${this.safeSize}`]: true,
|
|
320
320
|
'select--disabled': selectDisabled,
|
|
321
321
|
'select--focused': this.focused,
|
|
322
322
|
'select--invalid': this.isInvalid,
|
|
323
|
-
} }, labelText ? (index.h("label", { class: "select__label", part: "label", htmlFor: this.selectId }, index.h("span", null, labelText), this.required ? (index.h("span", { class: "select__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: '
|
|
323
|
+
} }, labelText ? (index.h("label", { class: "select__label", part: "label", htmlFor: this.selectId }, index.h("span", null, labelText), this.required ? (index.h("span", { class: "select__required", "aria-hidden": "true" }, "*")) : null)) : null, index.h("div", { key: '0d82e0b4497ae4b7840bd873cef079ddac5c6b72', class: "select__field" }, index.h("select", { key: '4e29398fda698a0e1b0f178357c56a2c63aa6dfc', ref: (element) => {
|
|
324
324
|
this.selectElement = element;
|
|
325
|
-
}, id: this.selectId, class: "select__control", part: "control", required: this.required, disabled: selectDisabled, ...nativeSelectAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.options.map((node, index) => this.renderOption(node, index))), index.h("span", { key: '
|
|
325
|
+
}, id: this.selectId, class: "select__control", part: "control", required: this.required, disabled: selectDisabled, ...nativeSelectAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.options.map((node, index) => this.renderOption(node, index))), index.h("span", { key: '0386dd0e8ac9ba6a824e9087df3ddb33ec1fefc2', class: "select__chevron", part: "chevron", "aria-hidden": "true" })), hintText ? (index.h("p", { class: "select__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (index.h("p", { class: "select__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
326
326
|
}
|
|
327
327
|
static get formAssociated() { return true; }
|
|
328
328
|
static get watchers() { return {
|
|
@@ -170,7 +170,7 @@ const AuSidebarNav = class {
|
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
const label = this.label?.trim() || SIDEBAR_NAV_DEFAULT_LABEL;
|
|
173
|
-
return (index.h("nav", { key: '
|
|
173
|
+
return (index.h("nav", { key: '8ec85d86ab710d75144ca718e7071724ef0812cd', part: "nav", class: "sidebar", "aria-label": label }, index.h("div", { key: 'd413b8af9075975327703a1870eb404967d8df92', part: "items", class: "sidebar__items" }, index.h("slot", { key: 'd0f0e8a97f9425f8024d0ba3349f5c342a3f6a56' }))));
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
AuSidebarNav.style = auSidebarNavCss();
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-B8lDYTMv.js');
|
|
4
|
+
var warnOnce = require('./warn-once-lHF-gQZp.js');
|
|
5
|
+
|
|
6
|
+
/** Literals only: no import from the foundations, so the `/constants` subpath stays standalone. */
|
|
7
|
+
/** `text` draws one or more bars (`lines`), `circle` an avatar-sized disc and `rect` a media or card block. */
|
|
8
|
+
const SKELETON_SHAPE = {
|
|
9
|
+
text: 'text',
|
|
10
|
+
circle: 'circle',
|
|
11
|
+
rect: 'rect',
|
|
12
|
+
};
|
|
13
|
+
/** `shimmer` moves a highlight across each bar. Reduced motion is always static, whatever the value. */
|
|
14
|
+
const SKELETON_ANIMATION = {
|
|
15
|
+
shimmer: 'shimmer',
|
|
16
|
+
none: 'none',
|
|
17
|
+
};
|
|
18
|
+
/** The most lines a text skeleton renders. A larger value is clamped, so a typo cannot render hundreds of nodes. */
|
|
19
|
+
const SKELETON_MAX_LINES = 20;
|
|
20
|
+
const shapes = new Set(Object.values(SKELETON_SHAPE));
|
|
21
|
+
const animations = new Set(Object.values(SKELETON_ANIMATION));
|
|
22
|
+
const isSkeletonShape = (value) => typeof value === 'string' && shapes.has(value);
|
|
23
|
+
const isSkeletonAnimation = (value) => typeof value === 'string' && animations.has(value);
|
|
24
|
+
/**
|
|
25
|
+
* The number of lines to render. `undefined` and `null` (a removed attribute) are the unset default
|
|
26
|
+
* (one line, valid). `NaN`, a value below 1 and a non-finite value give one line and are invalid; a
|
|
27
|
+
* value above the maximum is clamped and is invalid too. Fractions are floored.
|
|
28
|
+
*/
|
|
29
|
+
function normalizeSkeletonLines(value) {
|
|
30
|
+
if (value === undefined || value === null)
|
|
31
|
+
return { lines: 1, invalid: false };
|
|
32
|
+
const number = Math.floor(Number(value));
|
|
33
|
+
if (!Number.isFinite(number) || number < 1)
|
|
34
|
+
return { lines: 1, invalid: true };
|
|
35
|
+
if (number > SKELETON_MAX_LINES)
|
|
36
|
+
return { lines: SKELETON_MAX_LINES, invalid: true };
|
|
37
|
+
return { lines: number, invalid: false };
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const auSkeletonCss = () => `:host{display:block}:host([shape=circle]){inline-size:fit-content}.skeleton{display:block}.skeleton--text{display:flex;flex-direction:column;gap:var(--aurora-skeleton-line-gap, 0.5em);inline-size:var(--aurora-skeleton-inline-size, 100%)}.skeleton__line,.skeleton--circle,.skeleton--rect{background-color:var(--aurora-skeleton-background, color-mix(in srgb, var(--aurora-color-text, #202733) 10%, var(--aurora-color-canvas, #ffffff)));box-sizing:border-box}.skeleton__line{block-size:var(--aurora-skeleton-line-block-size, 0.875em);border-radius:var(--aurora-skeleton-radius, var(--aurora-radius-sm, 0.25rem));inline-size:100%}.skeleton__line--last{inline-size:var(--aurora-skeleton-last-line-inline-size, 60%)}.skeleton--circle{block-size:var(--aurora-skeleton-size, 2.5rem);border-radius:50%;inline-size:var(--aurora-skeleton-size, 2.5rem)}.skeleton--rect{block-size:var(--aurora-skeleton-block-size, 6rem);border-radius:var(--aurora-skeleton-radius, var(--aurora-radius-md, 0.5rem));inline-size:var(--aurora-skeleton-inline-size, 100%)}.skeleton--shimmer .skeleton__line,.skeleton--shimmer.skeleton--circle,.skeleton--shimmer.skeleton--rect{animation:skeleton-shimmer var(--aurora-skeleton-animation-duration, 1.5s) ease-in-out infinite;background-image:linear-gradient(90deg, transparent 25%, var(--aurora-skeleton-highlight, color-mix(in srgb, var(--aurora-color-canvas, #ffffff) 60%, transparent)) 50%, transparent 75%);background-repeat:no-repeat;background-size:200% 100%}@keyframes skeleton-shimmer{from{background-position:100% 0}to{background-position:0 0}}:host(:dir(rtl)) .skeleton--shimmer .skeleton__line,:host(:dir(rtl)) .skeleton--shimmer.skeleton--circle,:host(:dir(rtl)) .skeleton--shimmer.skeleton--rect{animation-direction:reverse}@media (prefers-reduced-motion: reduce){.skeleton--shimmer .skeleton__line,.skeleton--shimmer.skeleton--circle,.skeleton--shimmer.skeleton--rect{animation:none;background-image:none}}@media (forced-colors: active){.skeleton__line,.skeleton--circle,.skeleton--rect,.skeleton--shimmer .skeleton__line,.skeleton--shimmer.skeleton--circle,.skeleton--shimmer.skeleton--rect{animation:none;background:Canvas;border:1px solid GrayText}}`;
|
|
41
|
+
|
|
42
|
+
const AuSkeleton = class {
|
|
43
|
+
constructor(hostRef) {
|
|
44
|
+
index.registerInstance(this, hostRef);
|
|
45
|
+
}
|
|
46
|
+
get host() { return index.getElement(this); }
|
|
47
|
+
/** 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. */
|
|
48
|
+
shape = SKELETON_SHAPE.text;
|
|
49
|
+
/** 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. */
|
|
50
|
+
lines = 1;
|
|
51
|
+
/** `shimmer` moves a highlight across the bars; `none` is static. Reduced motion is always static. An unsupported value renders `shimmer` and warns once. */
|
|
52
|
+
animation = SKELETON_ANIMATION.shimmer;
|
|
53
|
+
componentWillLoad() {
|
|
54
|
+
this.syncHidden();
|
|
55
|
+
}
|
|
56
|
+
componentWillRender() {
|
|
57
|
+
this.warnAboutProperties();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The host is always decorative (SK-D2). Stencil diffs against the previous vnode, not the live
|
|
61
|
+
* DOM, so `<Host aria-hidden>` would not undo a later consumer write; the attribute is written
|
|
62
|
+
* imperatively after every render instead.
|
|
63
|
+
*/
|
|
64
|
+
componentDidRender() {
|
|
65
|
+
this.syncHidden();
|
|
66
|
+
}
|
|
67
|
+
syncHidden() {
|
|
68
|
+
this.host.setAttribute('aria-hidden', 'true');
|
|
69
|
+
}
|
|
70
|
+
get safeShape() {
|
|
71
|
+
return isSkeletonShape(this.shape) ? this.shape : SKELETON_SHAPE.text;
|
|
72
|
+
}
|
|
73
|
+
get safeAnimation() {
|
|
74
|
+
return isSkeletonAnimation(this.animation) ? this.animation : SKELETON_ANIMATION.shimmer;
|
|
75
|
+
}
|
|
76
|
+
warn(key, message) {
|
|
77
|
+
warnOnce.warnOncePerDocument(this.host.ownerDocument, `au-skeleton:${key}`, `[au-skeleton] ${message}`);
|
|
78
|
+
}
|
|
79
|
+
warnAboutProperties() {
|
|
80
|
+
if (!isSkeletonShape(this.shape)) {
|
|
81
|
+
this.warn('shape', `Unsupported shape ${JSON.stringify(this.shape)}; it renders as "text". Use "text", "circle" or "rect".`);
|
|
82
|
+
}
|
|
83
|
+
if (!isSkeletonAnimation(this.animation)) {
|
|
84
|
+
this.warn('animation', `Unsupported animation ${JSON.stringify(this.animation)}; it renders as "shimmer". Use "shimmer" or "none".`);
|
|
85
|
+
}
|
|
86
|
+
// `lines` only means something for a text skeleton (SK-D4).
|
|
87
|
+
if (this.safeShape === SKELETON_SHAPE.text && normalizeSkeletonLines(this.lines).invalid) {
|
|
88
|
+
this.warn('lines', `Unsupported lines ${JSON.stringify(this.lines)}; use an integer from 1 to 20. It renders as one line, or twenty when larger.`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
renderLines() {
|
|
92
|
+
const { lines } = normalizeSkeletonLines(this.lines);
|
|
93
|
+
return Array.from({ length: lines }, (_, index$1) => {
|
|
94
|
+
const last = lines > 1 && index$1 === lines - 1;
|
|
95
|
+
return (index.h("span", { part: last ? 'line line-last' : 'line', class: `skeleton__line${last ? ' skeleton__line--last' : ''}` }));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const shape = this.safeShape;
|
|
100
|
+
const motion = this.safeAnimation === SKELETON_ANIMATION.none ? 'static' : 'shimmer';
|
|
101
|
+
return (index.h("span", { key: '6a0924fdece21086972f228c24f5ae36a751ae46', part: "base", class: `skeleton skeleton--${shape} skeleton--${motion}` }, shape === SKELETON_SHAPE.text && this.renderLines()));
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
AuSkeleton.style = auSkeletonCss();
|
|
105
|
+
|
|
106
|
+
exports.au_skeleton = AuSkeleton;
|
|
@@ -245,15 +245,15 @@ const AuSlider = class {
|
|
|
245
245
|
'aria-describedby': this.descriptionIds,
|
|
246
246
|
'aria-valuetext': formatted ? formatted : undefined,
|
|
247
247
|
});
|
|
248
|
-
return (index.h(index.Host, { key: '
|
|
248
|
+
return (index.h(index.Host, { key: '3af341a80f2156043f60a881455ac37e819c5350', class: {
|
|
249
249
|
'slider-host--disabled': disabled,
|
|
250
250
|
'slider-host--invalid': this.isInvalid,
|
|
251
|
-
} }, index.h("div", { key: '
|
|
251
|
+
} }, index.h("div", { key: 'caaf6394be09f8527ff72478d3679a7293c6954e', class: {
|
|
252
252
|
slider: true,
|
|
253
253
|
[`slider--${orientation}`]: true,
|
|
254
254
|
'slider--disabled': disabled,
|
|
255
255
|
'slider--invalid': this.isInvalid,
|
|
256
|
-
} }, labelText || this.showValue ? (index.h("div", { class: "slider__header" }, labelText ? (index.h("label", { class: "slider__label", part: "label", htmlFor: this.inputId }, labelText)) : null, this.showValue ? (index.h("span", { class: "slider__value", part: "value", "aria-hidden": "true" }, valueText)) : null)) : null, index.h("div", { key: '
|
|
256
|
+
} }, labelText || this.showValue ? (index.h("div", { class: "slider__header" }, labelText ? (index.h("label", { class: "slider__label", part: "label", htmlFor: this.inputId }, labelText)) : null, this.showValue ? (index.h("span", { class: "slider__value", part: "value", "aria-hidden": "true" }, valueText)) : null)) : null, index.h("div", { key: 'ee0900e9e07879e2c1b25af558291abaa50c9e88', class: "slider__track-wrap" }, index.h("input", { key: '64c5276b4f488d5920c5a8f1db60da4f1537cf80', ref: (element) => {
|
|
257
257
|
this.inputElement = element;
|
|
258
258
|
if (!element)
|
|
259
259
|
return;
|
|
@@ -220,9 +220,9 @@ const AuSplitter = class {
|
|
|
220
220
|
const separatorAttributes = this.disabled
|
|
221
221
|
? { 'aria-disabled': 'true' }
|
|
222
222
|
: { tabindex: '0' };
|
|
223
|
-
return (index.h(index.Host, { key: '
|
|
223
|
+
return (index.h(index.Host, { key: '983ad617dcebff258fe3690c3d6615379521a37e' }, index.h("div", { key: '6367c20784ee1990408a1c12e4829cd9fb09d55c', part: "base", class: "base", "data-dragging": this.dragging ? '' : undefined, style: { '--_aurora-splitter-start': `${value}%` }, ref: (element) => {
|
|
224
224
|
this.baseElement = element;
|
|
225
|
-
} }, index.h("div", { key: '
|
|
225
|
+
} }, index.h("div", { key: 'f0d80ab760c8d26d988700ea697f66a15afbd68c', part: "start", class: "pane pane--start", id: START_ID }, index.h("slot", { key: 'b813d5a0794bb8c922542714356b0cea0850dc70', name: "start" })), index.h("div", { key: '2592541654155cfccabee2660dceec3d6d20d9f6', part: "separator", class: "separator", role: "separator", "aria-orientation": orientation === SPLITTER_ORIENTATION.horizontal ? 'vertical' : 'horizontal', "aria-valuenow": String(Math.round(value)), "aria-valuemin": String(min), "aria-valuemax": String(max), "aria-controls": START_ID, "aria-label": label === '' ? SPLITTER_DEFAULT_LABEL : label, ...separatorAttributes, onKeyDown: this.handleKeyDown, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.endDrag, onPointerCancel: this.endDrag }), index.h("div", { key: 'cb1db61e78ada8d6acbda286ca850fbbb2d753d6', part: "end", class: "pane pane--end" }, index.h("slot", { key: 'f8cd2c712d462ff45cc30f05a665eeb86e138b12', name: "end" })))));
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
AuSplitter.style = auSplitterCss();
|