@govbr-ds/webcomponents 2.4.0 → 2.5.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 +2 -2
- package/cem/custom-elements.json +371 -199
- package/cem/webcomponents.html-custom-data.json +146 -121
- package/dist/cjs/br-avatar.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/br-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/br-button_2.cjs.entry.js +2 -2
- package/dist/cjs/br-card.cjs.entry.js +2 -2
- package/dist/cjs/br-carousel-page.cjs.entry.js +1 -1
- package/dist/cjs/br-carousel.cjs.entry.js +1 -1
- package/dist/cjs/br-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/br-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/br-checkgroup.cjs.entry.js +1 -1
- package/dist/cjs/br-collapse_2.cjs.entry.js +3 -3
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +1 -1
- package/dist/cjs/br-cookiebar.cjs.entry.js +2 -2
- package/dist/cjs/br-crumb.cjs.entry.js +1 -1
- package/dist/cjs/br-date-picker_3.cjs.entry.js +154 -67
- package/dist/cjs/br-datetime-picker.cjs.entry.js +5 -5
- package/dist/cjs/br-divider.cjs.entry.js +2 -2
- package/dist/cjs/br-dropdown_2.cjs.entry.js +40 -16
- package/dist/cjs/br-footer-category.cjs.entry.js +2 -2
- package/dist/cjs/br-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-legal.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-logo.cjs.entry.js +1 -1
- package/dist/cjs/br-footer-social.cjs.entry.js +1 -1
- package/dist/cjs/br-footer.cjs.entry.js +3 -3
- package/dist/cjs/br-header-function.cjs.entry.js +1 -1
- package/dist/cjs/br-header-link.cjs.entry.js +1 -1
- package/dist/cjs/br-header-list.cjs.entry.js +1 -1
- package/dist/cjs/br-header-logo.cjs.entry.js +1 -1
- package/dist/cjs/br-header.cjs.entry.js +1 -1
- package/dist/cjs/br-icon.cjs.entry.js +2 -2
- package/dist/cjs/br-input.cjs.entry.js +58 -10
- package/dist/cjs/br-item.cjs.entry.js +2 -2
- package/dist/cjs/br-link.cjs.entry.js +7 -7
- package/dist/cjs/br-loading.cjs.entry.js +1 -1
- package/dist/cjs/br-magic-button.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-header.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-info.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-link.cjs.entry.js +1 -1
- package/dist/cjs/br-menu-logo.cjs.entry.js +1 -1
- package/dist/cjs/br-menu.cjs.entry.js +3 -3
- package/dist/cjs/br-notification-body.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-header.cjs.entry.js +1 -1
- package/dist/cjs/br-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/br-notification.cjs.entry.js +2 -2
- package/dist/cjs/br-pagination.cjs.entry.js +3 -3
- package/dist/cjs/br-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/br-radio.cjs.entry.js +3 -3
- package/dist/cjs/br-scrim.cjs.entry.js +2 -2
- package/dist/cjs/br-select-input_3.cjs.entry.js +39 -16
- package/dist/cjs/br-sign-in.cjs.entry.js +2 -2
- package/dist/cjs/br-skip-link-item.cjs.entry.js +1 -1
- package/dist/cjs/br-skip-link.cjs.entry.js +1 -1
- package/dist/cjs/br-skiplink-item.cjs.entry.js +1 -1
- package/dist/cjs/br-slider.cjs.entry.js +2 -2
- package/dist/cjs/br-step_2.cjs.entry.js +4 -4
- package/dist/cjs/br-switch.cjs.entry.js +3 -3
- package/dist/cjs/br-tab-item.cjs.entry.js +1 -1
- package/dist/cjs/br-tab.cjs.entry.js +3 -3
- package/dist/cjs/br-table-body.cjs.entry.js +1 -1
- package/dist/cjs/br-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/br-table-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/br-table-header.cjs.entry.js +1 -1
- package/dist/cjs/br-table-row.cjs.entry.js +1 -1
- package/dist/cjs/br-table.cjs.entry.js +1 -1
- package/dist/cjs/br-tag.cjs.entry.js +3 -3
- package/dist/cjs/br-textarea.cjs.entry.js +2 -2
- package/dist/cjs/br-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/br-upload.cjs.entry.js +4 -4
- package/dist/cjs/br-wizard-panel.cjs.entry.js +1 -1
- package/dist/cjs/br-wizard.cjs.entry.js +1 -1
- package/dist/cjs/{datetime-picker-constants-CCeI5iW7.js → datetime-picker-constants-CTf1kVJ1.js} +1 -0
- package/dist/cjs/{iconify-icon-DfODV9bf.js → iconify-icon-LjavbM-D.js} +103 -57
- package/dist/cjs/{index-C-IpVFDH.js → index-Caoez3xb.js} +64 -16
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{isValid-CduHZTFc.js → isValid-DgJ-noPS.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{slot-DAllytTj.js → slot-CjaqqX7y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/components/avatar/avatar.js +21 -21
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +4 -12
- package/dist/collection/components/breadcrumb/breadcrumb.js +32 -27
- package/dist/collection/components/breadcrumb/crumb/crumb.js +2 -13
- package/dist/collection/components/button/button.js +21 -21
- package/dist/collection/components/card/card.js +20 -22
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +3 -13
- package/dist/collection/components/carousel/carousel.js +23 -30
- package/dist/collection/components/checkbox/checkbox.js +18 -24
- package/dist/collection/components/checkbox-group/checkbox-group.js +19 -20
- package/dist/collection/components/checkgroup/checkgroup.js +2 -14
- package/dist/collection/components/collapse/collapse.js +25 -21
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +3 -16
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +3 -15
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +3 -14
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +2 -13
- package/dist/collection/components/cookiebar/cookiebar.js +32 -27
- package/dist/collection/components/datetime-picker/date-picker/date-picker-locale.js +62 -15
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +120 -71
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +3 -13
- package/dist/collection/components/datetime-picker/datetime-picker.js +23 -27
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +5 -15
- package/dist/collection/components/divider/divider.js +15 -19
- package/dist/collection/components/dropdown/dropdown.js +22 -21
- package/dist/collection/components/footer/footer-category/footer-category.js +4 -17
- package/dist/collection/components/footer/footer-item/footer-item.js +3 -16
- package/dist/collection/components/footer/footer-legal/footer-legal.js +2 -16
- package/dist/collection/components/footer/footer-logo/footer-logo.js +3 -16
- package/dist/collection/components/footer/footer-social/footer-social.js +3 -15
- package/dist/collection/components/footer/footer.js +25 -29
- package/dist/collection/components/header/header-function/header-function.js +10 -14
- package/dist/collection/components/header/header-link/header-link.js +3 -16
- package/dist/collection/components/header/header-list/header-list.js +3 -16
- package/dist/collection/components/header/header-logo/header-logo.js +3 -16
- package/dist/collection/components/header/header.js +30 -27
- package/dist/collection/components/icon/icon.js +22 -17
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +98 -30
- package/dist/collection/components/item/item.js +18 -22
- package/dist/collection/components/link/link.js +25 -29
- package/dist/collection/components/list/list.js +17 -21
- package/dist/collection/components/loading/loading.js +17 -24
- package/dist/collection/components/magic-button/magic-button.js +13 -20
- package/dist/collection/components/menu/menu-group/menu-group.js +3 -16
- package/dist/collection/components/menu/menu-header/menu-header.js +3 -16
- package/dist/collection/components/menu/menu-info/menu-info.js +2 -15
- package/dist/collection/components/menu/menu-item/menu-item.js +3 -16
- package/dist/collection/components/menu/menu-link/menu-link.js +5 -17
- package/dist/collection/components/menu/menu-list/menu-list.js +2 -15
- package/dist/collection/components/menu/menu-logo/menu-logo.js +2 -15
- package/dist/collection/components/menu/menu-social/menu-social.js +2 -15
- package/dist/collection/components/menu/menu.js +28 -35
- package/dist/collection/components/message/message.js +22 -25
- package/dist/collection/components/modal/modal.js +18 -21
- package/dist/collection/components/notification/notification-body/notification-body.js +3 -13
- package/dist/collection/components/notification/notification-header/notification-header.js +3 -14
- package/dist/collection/components/notification/notification-item/notification-item.js +3 -16
- package/dist/collection/components/notification/notification.js +20 -29
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +15 -23
- package/dist/collection/components/radio/radio.js +17 -20
- package/dist/collection/components/radio-group/radio-group.js +20 -20
- package/dist/collection/components/scrim/scrim.js +14 -17
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +43 -19
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +52 -15
- package/dist/collection/components/select/select-option/select-option.js +8 -13
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +83 -105
- package/dist/collection/components/sign-in/sign-in.js +12 -16
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +8 -4
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +5 -15
- package/dist/collection/components/skip-link/skip-link.js +18 -24
- package/dist/collection/components/slider/slider.js +15 -25
- package/dist/collection/components/step/step-item/step-item.js +5 -15
- package/dist/collection/components/step/step.js +16 -25
- package/dist/collection/components/switch/switch.js +16 -20
- package/dist/collection/components/tab/tab-item/tab-item.js +5 -15
- package/dist/collection/components/tab/tab.js +22 -29
- package/dist/collection/components/table/table-body/table-body.js +3 -13
- package/dist/collection/components/table/table-cell/table-cell.js +3 -12
- package/dist/collection/components/table/table-header/table-header.js +3 -13
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -13
- package/dist/collection/components/table/table-row/table-row.js +3 -13
- package/dist/collection/components/table/table.js +25 -32
- package/dist/collection/components/tag/tag.js +17 -26
- package/dist/collection/components/textarea/textarea.js +14 -22
- package/dist/collection/components/tooltip/tooltip.js +13 -19
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +36 -29
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +3 -13
- package/dist/collection/components/wizard/wizard.js +22 -26
- package/dist/collection/pages/components/select/remote-options.js +87 -0
- package/dist/collection/shared/utils/slot.js +1 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-jOb1hCPi.js → p-448Z5r2f.js} +1 -1
- package/dist/components/{p-DL6xuxGG.js → p-AhfgJCUp.js} +1 -1
- package/dist/components/{p-BzQFMh9j.js → p-AoNL6BaW.js} +1 -1
- package/dist/components/{p-Devw08cc.js → p-B468MCYC.js} +1 -1
- package/dist/components/{p-BH6QYnAr.js → p-B985Ov_x.js} +1 -1
- package/dist/components/{p-5h-W9_JR.js → p-BOWQIHQA.js} +1 -1
- package/dist/components/{p-Di96UxvH.js → p-BPQrgCRr.js} +1 -1
- package/dist/components/{p-CeNELttN.js → p-BwQT0fOJ.js} +1 -1
- package/dist/components/{p-CjtmJTLO.js → p-CAgbUwsx.js} +1 -1
- package/dist/components/{p-DDu3JV_r.js → p-CFXey8i8.js} +1 -1
- package/dist/components/{p-DsO4F0Cz.js → p-CVz_akHx.js} +1 -1
- package/dist/components/{p-DFWqyfUe.js → p-CW8xwk6J.js} +1 -1
- package/dist/components/p-CYZVdKeO.js +5 -0
- package/dist/components/p-C_DC6oQW.js +16 -0
- package/dist/components/{p-CCPHCJjw.js → p-CeWbZN7V.js} +1 -1
- package/dist/components/p-CyXVsiz9.js +5 -0
- package/dist/components/{p-BFHvuEnN.js → p-DDe0tQEO.js} +1 -1
- package/dist/components/{p-D-3G3Ioq.js → p-DJKZ8ktB.js} +1 -1
- package/dist/components/{p-BicHMcSS.js → p-DRsZ9GNg.js} +1 -1
- package/dist/components/p-DU54cqCf.js +5 -0
- package/dist/components/p-DVJlmlEX.js +5 -0
- package/dist/components/{p-ta-24T1Z.js → p-DcMjwTqu.js} +1 -1
- package/dist/components/p-Dd1qCWAK.js +5 -0
- package/dist/components/{p-rMnkh3Cy.js → p-Dn36Mj2E.js} +1 -1
- package/dist/components/{p-DOX9Uwk1.js → p-DoWy_P8b.js} +1 -1
- package/dist/components/{p-Dp3MsSXu.js → p-HbhTnepI.js} +1 -1
- package/dist/components/{p-CbgKdASU.js → p-JkJjzmGm.js} +1 -1
- package/dist/components/{p-Bvrw9yWR.js → p-Or3FLzbz.js} +1 -1
- package/dist/components/{p-PV731d8s.js → p-SWQlgYWR.js} +1 -1
- package/dist/components/{p-XW6Hp_Jk.js → p-Zb9nyfTY.js} +1 -1
- package/dist/components/{p-OQpiDEK9.js → p-jvKQA6x7.js} +1 -1
- package/dist/components/{p-CBHd0-fF.js → p-pQb-3jFY.js} +1 -1
- package/dist/components/{p-848QkYoM.js → p-qX6sHxOk.js} +1 -1
- package/dist/esm/br-avatar.entry.js +2 -2
- package/dist/esm/br-breadcrumb-item.entry.js +1 -1
- package/dist/esm/br-breadcrumb.entry.js +2 -2
- package/dist/esm/br-button_2.entry.js +2 -2
- package/dist/esm/br-card.entry.js +2 -2
- package/dist/esm/br-carousel-page.entry.js +1 -1
- package/dist/esm/br-carousel.entry.js +1 -1
- package/dist/esm/br-checkbox-group.entry.js +2 -2
- package/dist/esm/br-checkbox.entry.js +3 -3
- package/dist/esm/br-checkgroup.entry.js +1 -1
- package/dist/esm/br-collapse_2.entry.js +3 -3
- package/dist/esm/br-cookiebar-cookie.entry.js +1 -1
- package/dist/esm/br-cookiebar-group.entry.js +1 -1
- package/dist/esm/br-cookiebar-header.entry.js +1 -1
- package/dist/esm/br-cookiebar-link.entry.js +1 -1
- package/dist/esm/br-cookiebar-note.entry.js +1 -1
- package/dist/esm/br-cookiebar.entry.js +2 -2
- package/dist/esm/br-crumb.entry.js +1 -1
- package/dist/esm/br-date-picker_3.entry.js +155 -68
- package/dist/esm/br-datetime-picker.entry.js +5 -5
- package/dist/esm/br-divider.entry.js +2 -2
- package/dist/esm/br-dropdown_2.entry.js +40 -16
- package/dist/esm/br-footer-category.entry.js +2 -2
- package/dist/esm/br-footer-item.entry.js +1 -1
- package/dist/esm/br-footer-legal.entry.js +1 -1
- package/dist/esm/br-footer-logo.entry.js +1 -1
- package/dist/esm/br-footer-social.entry.js +1 -1
- package/dist/esm/br-footer.entry.js +3 -3
- package/dist/esm/br-header-function.entry.js +1 -1
- package/dist/esm/br-header-link.entry.js +1 -1
- package/dist/esm/br-header-list.entry.js +1 -1
- package/dist/esm/br-header-logo.entry.js +1 -1
- package/dist/esm/br-header.entry.js +1 -1
- package/dist/esm/br-icon.entry.js +2 -2
- package/dist/esm/br-input.entry.js +59 -11
- package/dist/esm/br-item.entry.js +2 -2
- package/dist/esm/br-link.entry.js +7 -7
- package/dist/esm/br-loading.entry.js +1 -1
- package/dist/esm/br-magic-button.entry.js +1 -1
- package/dist/esm/br-menu-group.entry.js +1 -1
- package/dist/esm/br-menu-header.entry.js +1 -1
- package/dist/esm/br-menu-info.entry.js +1 -1
- package/dist/esm/br-menu-item.entry.js +1 -1
- package/dist/esm/br-menu-link.entry.js +1 -1
- package/dist/esm/br-menu-logo.entry.js +1 -1
- package/dist/esm/br-menu.entry.js +3 -3
- package/dist/esm/br-notification-body.entry.js +1 -1
- package/dist/esm/br-notification-header.entry.js +1 -1
- package/dist/esm/br-notification-item.entry.js +1 -1
- package/dist/esm/br-notification.entry.js +2 -2
- package/dist/esm/br-pagination.entry.js +3 -3
- package/dist/esm/br-radio-group.entry.js +3 -3
- package/dist/esm/br-radio.entry.js +3 -3
- package/dist/esm/br-scrim.entry.js +2 -2
- package/dist/esm/br-select-input_3.entry.js +39 -16
- package/dist/esm/br-sign-in.entry.js +2 -2
- package/dist/esm/br-skip-link-item.entry.js +1 -1
- package/dist/esm/br-skip-link.entry.js +1 -1
- package/dist/esm/br-skiplink-item.entry.js +1 -1
- package/dist/esm/br-slider.entry.js +2 -2
- package/dist/esm/br-step_2.entry.js +4 -4
- package/dist/esm/br-switch.entry.js +3 -3
- package/dist/esm/br-tab-item.entry.js +1 -1
- package/dist/esm/br-tab.entry.js +3 -3
- package/dist/esm/br-table-body.entry.js +1 -1
- package/dist/esm/br-table-cell.entry.js +1 -1
- package/dist/esm/br-table-header-cell.entry.js +1 -1
- package/dist/esm/br-table-header.entry.js +1 -1
- package/dist/esm/br-table-row.entry.js +1 -1
- package/dist/esm/br-table.entry.js +1 -1
- package/dist/esm/br-tag.entry.js +3 -3
- package/dist/esm/br-textarea.entry.js +2 -2
- package/dist/esm/br-tooltip.entry.js +1 -1
- package/dist/esm/br-upload.entry.js +4 -4
- package/dist/esm/br-wizard-panel.entry.js +1 -1
- package/dist/esm/br-wizard.entry.js +1 -1
- package/dist/esm/{datetime-picker-constants-DDc4sADe.js → datetime-picker-constants-1l4_-FEJ.js} +1 -1
- package/dist/esm/{iconify-icon-D3usVJE2.js → iconify-icon-C_DC6oQW.js} +103 -57
- package/dist/esm/{index-CytVKoHT.js → index-BQRBKuY0.js} +64 -17
- package/dist/esm/index.js +2 -2
- package/dist/esm/{isValid-Bee0Uvqc.js → isValid-wU7S6MI2.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{slot-BIG-yees.js → slot-Bt01zQ7-.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/hydrate/index.js +1452 -1876
- package/dist/hydrate/index.mjs +1452 -1876
- package/dist/types/components/avatar/avatar.d.ts +20 -20
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +3 -11
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +30 -25
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +1 -12
- package/dist/types/components/button/button.d.ts +20 -20
- package/dist/types/components/card/card.d.ts +19 -21
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +2 -12
- package/dist/types/components/carousel/carousel.d.ts +22 -29
- package/dist/types/components/checkbox/checkbox.d.ts +16 -22
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +17 -18
- package/dist/types/components/checkgroup/checkgroup.d.ts +1 -13
- package/dist/types/components/collapse/collapse.d.ts +24 -20
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +2 -15
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +2 -14
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +2 -13
- package/dist/types/components/cookiebar/cookiebar.d.ts +30 -25
- package/dist/types/components/datetime-picker/date-picker/date-picker-locale.d.ts +12 -4
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +57 -11
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +2 -12
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +22 -26
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +3 -13
- package/dist/types/components/divider/divider.d.ts +14 -18
- package/dist/types/components/dropdown/dropdown.d.ts +21 -20
- package/dist/types/components/footer/footer-category/footer-category.d.ts +2 -15
- package/dist/types/components/footer/footer-item/footer-item.d.ts +2 -15
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +1 -15
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +2 -15
- package/dist/types/components/footer/footer-social/footer-social.d.ts +2 -14
- package/dist/types/components/footer/footer.d.ts +23 -27
- package/dist/types/components/header/header-function/header-function.d.ts +9 -13
- package/dist/types/components/header/header-link/header-link.d.ts +2 -15
- package/dist/types/components/header/header-list/header-list.d.ts +2 -15
- package/dist/types/components/header/header-logo/header-logo.d.ts +2 -15
- package/dist/types/components/header/header.d.ts +29 -26
- package/dist/types/components/icon/icon.d.ts +21 -16
- package/dist/types/components/input/input.d.ts +39 -22
- package/dist/types/components/item/item.d.ts +17 -21
- package/dist/types/components/link/link.d.ts +18 -22
- package/dist/types/components/list/list.d.ts +16 -20
- package/dist/types/components/loading/loading.d.ts +16 -23
- package/dist/types/components/magic-button/magic-button.d.ts +12 -19
- package/dist/types/components/menu/menu-group/menu-group.d.ts +2 -15
- package/dist/types/components/menu/menu-header/menu-header.d.ts +2 -15
- package/dist/types/components/menu/menu-info/menu-info.d.ts +1 -14
- package/dist/types/components/menu/menu-item/menu-item.d.ts +2 -15
- package/dist/types/components/menu/menu-link/menu-link.d.ts +4 -16
- package/dist/types/components/menu/menu-list/menu-list.d.ts +2 -15
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +1 -14
- package/dist/types/components/menu/menu-social/menu-social.d.ts +2 -15
- package/dist/types/components/menu/menu.d.ts +25 -32
- package/dist/types/components/message/message.d.ts +21 -24
- package/dist/types/components/modal/modal.d.ts +18 -21
- package/dist/types/components/notification/notification-body/notification-body.d.ts +2 -12
- package/dist/types/components/notification/notification-header/notification-header.d.ts +2 -13
- package/dist/types/components/notification/notification-item/notification-item.d.ts +2 -15
- package/dist/types/components/notification/notification.d.ts +18 -27
- package/dist/types/components/pagination/pagination.d.ts +13 -21
- package/dist/types/components/radio/radio.d.ts +15 -18
- package/dist/types/components/radio-group/radio-group.d.ts +18 -18
- package/dist/types/components/scrim/scrim.d.ts +12 -15
- package/dist/types/components/select/select-input/select-input.d.ts +11 -10
- package/dist/types/components/select/select-list/select-list.d.ts +13 -12
- package/dist/types/components/select/select-option/select-option.d.ts +5 -10
- package/dist/types/components/select/select.d.ts +42 -94
- package/dist/types/components/sign-in/sign-in.d.ts +11 -15
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +7 -3
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +4 -14
- package/dist/types/components/skip-link/skip-link.d.ts +17 -23
- package/dist/types/components/slider/slider.d.ts +14 -24
- package/dist/types/components/step/step-item/step-item.d.ts +2 -12
- package/dist/types/components/step/step.d.ts +15 -24
- package/dist/types/components/switch/switch.d.ts +14 -18
- package/dist/types/components/tab/tab-item/tab-item.d.ts +4 -14
- package/dist/types/components/tab/tab.d.ts +19 -26
- package/dist/types/components/table/table-body/table-body.d.ts +2 -12
- package/dist/types/components/table/table-cell/table-cell.d.ts +2 -11
- package/dist/types/components/table/table-header/table-header.d.ts +2 -12
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -12
- package/dist/types/components/table/table-row/table-row.d.ts +2 -12
- package/dist/types/components/table/table.d.ts +24 -31
- package/dist/types/components/tag/tag.d.ts +15 -24
- package/dist/types/components/textarea/textarea.d.ts +13 -21
- package/dist/types/components/tooltip/tooltip.d.ts +12 -18
- package/dist/types/components/upload/upload.d.ts +20 -27
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +2 -12
- package/dist/types/components/wizard/wizard.d.ts +21 -25
- package/dist/types/components.d.ts +3384 -4947
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/{p-08ac6f09.entry.js → p-031a2256.entry.js} +1 -1
- package/dist/webcomponents/{p-23a5cfd7.entry.js → p-0602e5b1.entry.js} +1 -1
- package/dist/webcomponents/p-079d5f69.entry.js +5 -0
- package/dist/webcomponents/{p-0fc112fc.entry.js → p-087ed5e7.entry.js} +1 -1
- package/dist/webcomponents/{p-7ee564a1.entry.js → p-0d5a9ebf.entry.js} +1 -1
- package/dist/webcomponents/{p-a038be16.entry.js → p-105b4d06.entry.js} +1 -1
- package/dist/webcomponents/{p-6a293be8.entry.js → p-11d4edc5.entry.js} +1 -1
- package/dist/webcomponents/{p-31a4694a.entry.js → p-12dd22af.entry.js} +1 -1
- package/dist/webcomponents/{p-b07bfdc5.entry.js → p-14aedf0d.entry.js} +1 -1
- package/dist/webcomponents/{p-1ba60d13.entry.js → p-152482f9.entry.js} +1 -1
- package/dist/webcomponents/{p-09c79c1d.entry.js → p-19b4b1b7.entry.js} +1 -1
- package/dist/webcomponents/{p-b0124459.entry.js → p-1cd1126e.entry.js} +1 -1
- package/dist/webcomponents/{p-DDc4sADe.js → p-1l4_-FEJ.js} +1 -1
- package/dist/webcomponents/{p-18cf093a.entry.js → p-21e10074.entry.js} +1 -1
- package/dist/webcomponents/{p-47c490ef.entry.js → p-2271ea84.entry.js} +1 -1
- package/dist/webcomponents/{p-c717c745.entry.js → p-271b1ede.entry.js} +1 -1
- package/dist/webcomponents/{p-b66ab52d.entry.js → p-28f732fc.entry.js} +1 -1
- package/dist/webcomponents/{p-b5d25332.entry.js → p-2971d38a.entry.js} +1 -1
- package/dist/webcomponents/{p-b063c12f.entry.js → p-2ac48875.entry.js} +1 -1
- package/dist/webcomponents/{p-609cf652.entry.js → p-2b1a919c.entry.js} +1 -1
- package/dist/webcomponents/{p-05b459f2.entry.js → p-2da57966.entry.js} +1 -1
- package/dist/webcomponents/{p-eb94199d.entry.js → p-2e81b0b3.entry.js} +1 -1
- package/dist/webcomponents/p-2eececed.entry.js +5 -0
- package/dist/webcomponents/{p-f99d8c9c.entry.js → p-2f904c4a.entry.js} +1 -1
- package/dist/webcomponents/p-32414f1c.entry.js +5 -0
- package/dist/webcomponents/{p-5a7c2031.entry.js → p-324afbce.entry.js} +1 -1
- package/dist/webcomponents/{p-a89b684d.entry.js → p-330ec8ab.entry.js} +1 -1
- package/dist/webcomponents/{p-37914e63.entry.js → p-374f83b1.entry.js} +1 -1
- package/dist/webcomponents/{p-d08b6266.entry.js → p-3926cc91.entry.js} +1 -1
- package/dist/webcomponents/{p-745213f7.entry.js → p-39a7826d.entry.js} +1 -1
- package/dist/webcomponents/{p-8aa6f07c.entry.js → p-3bcc2c58.entry.js} +1 -1
- package/dist/webcomponents/{p-67605757.entry.js → p-3c7ce0e4.entry.js} +1 -1
- package/dist/webcomponents/{p-473561f2.entry.js → p-467842ca.entry.js} +1 -1
- package/dist/webcomponents/p-53550e8c.entry.js +5 -0
- package/dist/webcomponents/p-53e71a8a.entry.js +5 -0
- package/dist/webcomponents/{p-198aa844.entry.js → p-5528b466.entry.js} +1 -1
- package/dist/webcomponents/{p-a32d17cb.entry.js → p-55e0822d.entry.js} +1 -1
- package/dist/webcomponents/{p-01801ac1.entry.js → p-58bacbe1.entry.js} +1 -1
- package/dist/webcomponents/{p-a46f068e.entry.js → p-621f0fa8.entry.js} +1 -1
- package/dist/webcomponents/{p-821341dc.entry.js → p-6514a75d.entry.js} +1 -1
- package/dist/webcomponents/{p-dc23cb2e.entry.js → p-678b43a6.entry.js} +1 -1
- package/dist/webcomponents/p-6b6be415.entry.js +5 -0
- package/dist/webcomponents/{p-ac68355e.entry.js → p-6d58ab4f.entry.js} +1 -1
- package/dist/webcomponents/{p-fdcb54a3.entry.js → p-6ff9b26e.entry.js} +1 -1
- package/dist/webcomponents/{p-e241caf3.entry.js → p-84dfbfdd.entry.js} +1 -1
- package/dist/webcomponents/{p-6f1a4fbe.entry.js → p-85c8d060.entry.js} +1 -1
- package/dist/webcomponents/{p-3b0dd0ff.entry.js → p-913d6f28.entry.js} +1 -1
- package/dist/webcomponents/{p-fed02286.entry.js → p-975ea5c7.entry.js} +1 -1
- package/dist/webcomponents/{p-15022ab7.entry.js → p-992167bc.entry.js} +1 -1
- package/dist/webcomponents/p-C_DC6oQW.js +16 -0
- package/dist/webcomponents/{p-fOJu6uZR.js → p-CpE_G6IZ.js} +1 -1
- package/dist/webcomponents/p-DnwERaeQ.js +5 -0
- package/dist/webcomponents/{p-1bb96641.entry.js → p-a21872bf.entry.js} +1 -1
- package/dist/webcomponents/{p-db309a11.entry.js → p-a9f16a65.entry.js} +1 -1
- package/dist/webcomponents/{p-7fda8b89.entry.js → p-bbcde1ea.entry.js} +1 -1
- package/dist/webcomponents/{p-42b60169.entry.js → p-bbf47e78.entry.js} +1 -1
- package/dist/webcomponents/{p-42c9c6c5.entry.js → p-bf35e506.entry.js} +1 -1
- package/dist/webcomponents/{p-9e0324a7.entry.js → p-c09af3cd.entry.js} +1 -1
- package/dist/webcomponents/{p-794b701b.entry.js → p-c29268b5.entry.js} +1 -1
- package/dist/webcomponents/{p-7352d459.entry.js → p-c3e61c39.entry.js} +1 -1
- package/dist/webcomponents/{p-fb76b1e0.entry.js → p-c6b2545a.entry.js} +1 -1
- package/dist/webcomponents/{p-b55425b7.entry.js → p-c6f2f17b.entry.js} +1 -1
- package/dist/webcomponents/{p-95f3c44a.entry.js → p-cae39e13.entry.js} +1 -1
- package/dist/webcomponents/{p-8116ee93.entry.js → p-cb1e08b1.entry.js} +1 -1
- package/dist/webcomponents/{p-dacb7e2c.entry.js → p-cb690a87.entry.js} +1 -1
- package/dist/webcomponents/{p-8ddf3ce3.entry.js → p-d0be7243.entry.js} +1 -1
- package/dist/webcomponents/{p-3658adcf.entry.js → p-d191c6e3.entry.js} +1 -1
- package/dist/webcomponents/{p-2c8595d3.entry.js → p-d205f3fd.entry.js} +1 -1
- package/dist/webcomponents/{p-4b01c60f.entry.js → p-d3bd2c40.entry.js} +1 -1
- package/dist/webcomponents/{p-af888d13.entry.js → p-dbeea64e.entry.js} +1 -1
- package/dist/webcomponents/{p-d6165aa0.entry.js → p-df475129.entry.js} +1 -1
- package/dist/webcomponents/{p-67774920.entry.js → p-e0ccf189.entry.js} +1 -1
- package/dist/webcomponents/p-e121429a.entry.js +5 -0
- package/dist/webcomponents/{p-96dbb585.entry.js → p-e4b968b5.entry.js} +1 -1
- package/dist/webcomponents/{p-67d62559.entry.js → p-e6c6f305.entry.js} +1 -1
- package/dist/webcomponents/{p-13babfc4.entry.js → p-e8291be2.entry.js} +1 -1
- package/dist/webcomponents/{p-614683d9.entry.js → p-eb5806c7.entry.js} +1 -1
- package/dist/webcomponents/{p-20477061.entry.js → p-ed3fa8ec.entry.js} +1 -1
- package/dist/webcomponents/{p-21feda62.entry.js → p-f9084f16.entry.js} +1 -1
- package/dist/webcomponents/{p-695dbeb0.entry.js → p-fad3aa61.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/pages/components/select/remote.js +0 -33
- package/dist/collection/pages/components/select/virtualized.js +0 -13
- package/dist/components/p-BcW8O6h2.js +0 -5
- package/dist/components/p-Bs7iRQTG.js +0 -5
- package/dist/components/p-D3usVJE2.js +0 -16
- package/dist/components/p-DUq7uT2-.js +0 -5
- package/dist/components/p-DuLHFTpa.js +0 -5
- package/dist/components/p-DusornQ0.js +0 -5
- package/dist/webcomponents/p-09817344.entry.js +0 -5
- package/dist/webcomponents/p-172d42c2.entry.js +0 -5
- package/dist/webcomponents/p-9815ab95.entry.js +0 -5
- package/dist/webcomponents/p-CJipT0in.js +0 -5
- package/dist/webcomponents/p-D3usVJE2.js +0 -16
- package/dist/webcomponents/p-b609b464.entry.js +0 -5
- package/dist/webcomponents/p-ce3d689c.entry.js +0 -5
- package/dist/webcomponents/p-e7107869.entry.js +0 -5
- package/dist/webcomponents/p-f8993ae4.entry.js +0 -5
- /package/dist/components/{p-5z6jgH1D.js → p-BNckUhK6.js} +0 -0
- /package/dist/webcomponents/{p-BIG-yees.js → p-Bt01zQ7-.js} +0 -0
|
@@ -14,39 +14,32 @@ const TAB_ALIGNMENTS = ['start', 'center', 'end'];
|
|
|
14
14
|
const CSS_FUNCTION_HEIGHT_REGEX = /^(calc|min|max|clamp)\(.+\)$/;
|
|
15
15
|
const CSS_UNIT_HEIGHT_REGEX = /^\d+(\.\d+)?(px|%|vh|vw|dvh|svh|lvh|vmin|vmax|rem|em)$/;
|
|
16
16
|
/**
|
|
17
|
-
* O
|
|
17
|
+
* O `br-tab` organiza diferentes visões ou painéis de conteúdo na mesma página através de abas navegáveis.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Declare os itens usando `br-tab-item` no slot padrão. O componente gera automaticamente os botões da barra de navegação e controla a exibição do painel correspondente.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* -
|
|
23
|
-
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <br-tab>
|
|
23
|
+
* <br-tab-item label="Dados Cadastrais">
|
|
24
|
+
* <p>Conteúdo da primeira aba.</p>
|
|
25
|
+
* </br-tab-item>
|
|
26
|
+
* <br-tab-item label="Documentos">
|
|
27
|
+
* <p>Conteúdo da segunda aba.</p>
|
|
28
|
+
* </br-tab-item>
|
|
29
|
+
* </br-tab>
|
|
30
|
+
* ```
|
|
24
31
|
*
|
|
25
|
-
* ### Quando
|
|
32
|
+
* ### Quando usar
|
|
26
33
|
*
|
|
27
|
-
* -
|
|
28
|
-
* - Houver conjuntos equivalentes de informação entre os quais a pessoa usuária pode navegar livremente e em qualquer ordem.
|
|
29
|
-
* - **Evite e prefira outro componente quando:**
|
|
30
|
-
* - O conteúdo for sequencial com dependência de avanço ou conclusão de etapas anteriores (prefira `br-step` ou `br-wizard`).
|
|
31
|
-
* - As abas tiverem a função de navegar para rotas e URLs distintas da aplicação (prefira uma barra de links com `br-link` ou `br-header`).
|
|
34
|
+
* - Alternar entre conjuntos equivalentes de informação sem sair da página e sem ordem fixa de leitura.
|
|
32
35
|
*
|
|
33
|
-
* ###
|
|
36
|
+
* ### Quando evitar
|
|
34
37
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* | `br-tab` | **Orquestrador de abas.** Constrói a barra de navegação acessível (`tablist`), controla a aba ativa e gerencia o teclado. | Contêiner raiz obrigatório declarado no template. |
|
|
38
|
-
* | `br-tab-item` | **Aba e painel associado.** Define simultaneamente o rótulo do botão da aba e o conteúdo do painel correspondente. | Declarado no slot padrão do `br-tab`. |
|
|
38
|
+
* - Processos com etapas sequenciais que dependem de preenchimento prévio: use `br-wizard` ou `br-step`.
|
|
39
|
+
* - Links para páginas ou rotas distintas: use `br-link` ou `br-header`.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
+
* Consulte as [diretrizes de design do GovBR](https://www.gov.br/ds/components/tab?tab=designer).
|
|
41
42
|
*
|
|
42
|
-
* O `br-tab` adota uma arquitetura declarativa prática:
|
|
43
|
-
* 1. A aplicação declara os elementos `br-tab-item` dentro do slot padrão do `br-tab`.
|
|
44
|
-
* 2. O componente pai extrai os rótulos e ícones de cada item para renderizar a barra superior de abas (`role="tab"`).
|
|
45
|
-
* 3. O pai controla a visibilidade dos painéis (`role="tabpanel"`), exibindo exclusivamente o conteúdo da aba selecionada e garantindo a correlação de IDs acessíveis (`aria-controls`, `aria-labelledby`).
|
|
46
|
-
*
|
|
47
|
-
* Para a documentação completa de design, incluindo diretrizes de acessibilidade e especificações visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/tab?tab=designer).
|
|
48
|
-
*
|
|
49
|
-
|
|
50
43
|
* @category Navegação, Seleção, Conteúdo
|
|
51
44
|
* @status stable
|
|
52
45
|
* @slot default - Slot para inserir os itens das abas (br-tab-item)
|
|
@@ -127,7 +120,7 @@ export class Tab {
|
|
|
127
120
|
this.tabItems = nextTabItems;
|
|
128
121
|
}
|
|
129
122
|
const colorMode = this.effectiveColorMode;
|
|
130
|
-
// Identificador de cada aba: o `id` nativo (
|
|
123
|
+
// Identificador de cada aba: o `id` nativo (padrão) tem precedência sobre o alias
|
|
131
124
|
// legado `tab-item-id`; só sem nenhum dos dois um id é gerado. O item pode ainda não
|
|
132
125
|
// estar hidratado aqui, então os atributos são a fonte confiável. Depois do render, o
|
|
133
126
|
// br-tab-item escreve `tab-panel-{tabItemId}` no próprio `id`; esse valor não é do consumidor.
|
|
@@ -448,12 +441,12 @@ export class Tab {
|
|
|
448
441
|
render() {
|
|
449
442
|
const hasCounter = this.tabItems.some((item) => item.counter);
|
|
450
443
|
const resolvedHeight = this.getResolvedHeight();
|
|
451
|
-
return (h(Host, { key: '
|
|
444
|
+
return (h(Host, { key: '64b14f409cd0472e4c2c5e8db86e0491e53903e7' }, h("div", { key: '192d5bf7becc11413b1d03d0234f2312c43e0418', class: this.getCssClassMap(), id: this.customId, part: "container", style: resolvedHeight !== undefined ? { '--br-tab-height': resolvedHeight } : undefined }, h("div", { key: 'de85ca87582cfc3836646258cbe1ebcb474569d2', class: "tab-nav", role: "tablist", "aria-label": this.label, "data-counter": hasCounter ? 'true' : 'false', part: "nav", style: { justifyContent: this.getAlignItemsStyle() } }, this.tabItems.map((item, index) => {
|
|
452
445
|
const isActive = item.tabItemId === this.activeTabId;
|
|
453
446
|
const showOnlyIcon = item.iconOnly ?? (item.onlyIcon || item.hasAttribute('only-icon'));
|
|
454
447
|
const itemLabel = item.label ?? item.tabItemTitle;
|
|
455
448
|
return (h("div", { key: item.tabItemId, class: this.getTabItemCssClassMap(isActive), role: "none" }, h("button", { type: "button", id: `tab-button-${item.tabItemId}`, part: "button", role: "tab", "aria-selected": isActive ? 'true' : 'false', tabindex: isActive ? 0 : -1, "aria-setsize": this.tabItems.length, "aria-posinset": index + 1, "aria-label": `${itemLabel}${item.counter ? ` (${item.counter})` : ''}`, title: item.getAttribute('title') || undefined, "data-tab-id": item.tabItemId, "data-tab-index": index, onClick: this.handleTabButtonClick, onKeyDown: this.handleTabButtonKeyDown }, h("span", { class: "name" }, this.renderTabIcon(item), !showOnlyIcon && h("span", null, itemLabel))), isActive && h("span", { class: "tab-indicator", part: "indicator", "aria-hidden": "true" }), item.counter && (h("span", { id: `tab-counter-${item.tabItemId}`, class: "results" }, item.counter))));
|
|
456
|
-
})), h("br-divider", { key: '
|
|
449
|
+
})), h("br-divider", { key: '158a6e21f71cc1738cd3ba240fda2ee98654a97a', "color-mode": this.effectiveColorMode }), h("div", { key: '845d375d272ed694f1dbc69d7f099d4d55e32f4e', class: "tab-content", part: "content" }, h("slot", { key: 'c6c32244a33caa44be22b9492fcdd73b6c5e0460', ref: (el) => {
|
|
457
450
|
this.slotElement = el;
|
|
458
451
|
}, onSlotchange: this.registerTabItems })))));
|
|
459
452
|
}
|
|
@@ -633,7 +626,7 @@ export class Tab {
|
|
|
633
626
|
"optional": true,
|
|
634
627
|
"docs": {
|
|
635
628
|
"tags": [],
|
|
636
|
-
"text": "Alinhamento horizontal
|
|
629
|
+
"text": "Alinhamento horizontal. Quando informado, tem preced\u00EAncia sobre `alignItemsTab`; valores inv\u00E1lidos usam `start`."
|
|
637
630
|
},
|
|
638
631
|
"getter": false,
|
|
639
632
|
"setter": false,
|
|
@@ -4,20 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Corpo de dados (`<tbody>`) da tabela. Use no slot `body` do `br-table`.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Agrupa as linhas `br-table-row` contendo as células de dados `br-table-cell`.
|
|
10
10
|
*
|
|
11
|
-
* - Define a região principal da tabela com a semântica de `rowgroup` de conteúdo.
|
|
12
|
-
* - Recebe as linhas de dados `br-table-row` preenchidas com as células de valor `br-table-cell`.
|
|
13
|
-
*
|
|
14
|
-
* ### Regra de uso e relacionamento
|
|
15
|
-
*
|
|
16
|
-
* Deve ser declarado dentro do slot `body` (ou padrão) de `br-table`. Ele organiza o fluxo vertical de registros coordenado pelo pai. Não deve ser usado fora de uma tabela.
|
|
17
|
-
*
|
|
18
|
-
* Para a documentação completa de design, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
19
|
-
*
|
|
20
|
-
|
|
21
11
|
* @part body - Wrapper do corpo da tabela.
|
|
22
12
|
*/
|
|
23
13
|
export class TableBody {
|
|
@@ -37,7 +27,7 @@ export class TableBody {
|
|
|
37
27
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura do corpo da tabela.
|
|
38
28
|
*/
|
|
39
29
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: 'd968fcb8d776d352cd64f98b0d3cb7f1b3db5dcb', role: "rowgroup" }, h("div", { key: '1ec4aa2b73fbecaae78a20bfbe0e2dacf4439ce6', class: this.getBodyCssClassMap(), role: "presentation", part: "body" }, h("slot", { key: 'a5e74dd158b88c53174d528a4c25233e1bfb6f6f' }))));
|
|
41
31
|
}
|
|
42
32
|
static get is() { return "br-table-body"; }
|
|
43
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,19 +7,10 @@ import { findComposedOwner } from "../../../shared/utils/ownership";
|
|
|
7
7
|
import { resolveAllowedPropValue } from "../../../shared/utils/props";
|
|
8
8
|
import { TABLE_TOOLTIP_MODE, TABLE_TOOLTIP_STATE } from "../table-constants";
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Célula de dados (`<td>`) da tabela. Use dentro de um `br-table-row` no corpo da tabela.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* Coloque o conteúdo do registro no slot padrão.
|
|
13
13
|
*
|
|
14
|
-
* - Exibe o dado pontual da coluna (`role="cell"`), podendo conter texto, badges, ícones, botões de ação ou links.
|
|
15
|
-
*
|
|
16
|
-
* ### Regra de uso e relacionamento
|
|
17
|
-
*
|
|
18
|
-
* Deve ser declarado dentro de um `br-table-row` situado no `br-table-body`. O dimensionamento e posicionamento são calculados pelas regras de CSS Grid da tabela pai.
|
|
19
|
-
*
|
|
20
|
-
* Para a documentação completa de design, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
21
|
-
*
|
|
22
|
-
|
|
23
14
|
* @part cell - Wrapper da célula.
|
|
24
15
|
* @part content - Área de conteúdo da célula.
|
|
25
16
|
*/
|
|
@@ -186,7 +177,7 @@ export class TableCell {
|
|
|
186
177
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da célula da tabela.
|
|
187
178
|
*/
|
|
188
179
|
render() {
|
|
189
|
-
return (h(Host, { key: '
|
|
180
|
+
return (h(Host, { key: '15911927fc2d5f25b5d7d4df458feed3e8998bce', role: "cell" }, h("div", { key: '2bcfc7a283d823f40b6943f3f49b76a33212be75', class: this.getCellCssClassMap(), role: "presentation", part: "cell" }, h("div", { key: '588b877b48a4e9e94bb623e9d12f9ed4caf56820', class: "br-table-cell-content", role: "presentation", part: "content" }, h("div", { key: '3fca524dcc25e25f3667f24054575931f2daeccc', class: "br-table-cell-truncate", role: "presentation", ref: (el) => (this.truncateContentRef = el), onPointerEnter: this.handleMouseEnter, onPointerLeave: this.handleMouseLeave }, h("slot", { key: '77ff70851c33221a1079d013ef52b1a2afe98cc9', ref: (el) => (this.contentSlotRef = el) })), this.isTooltipVisible && (h("br-tooltip", { key: '8440ff797b7511145f872380fb46071d29d58265', ref: (el) => (this.tooltipRef = el), position: "top", state: this.resolveTooltipState() === TABLE_TOOLTIP_STATE.DANGER ? 'danger' : this.resolveTooltipState() }, h("span", { key: 'ae95d828d50ee35707e1916137185b9f0a04c897', slot: "content" }, this.tooltipContent)))))));
|
|
190
181
|
}
|
|
191
182
|
static get is() { return "br-table-cell"; }
|
|
192
183
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,20 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Cabeçalho da tabela (`br-table`). Use no slot `header`.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Agrupa as linhas `br-table-row` com as células de cabeçalho `br-table-header-cell`.
|
|
10
10
|
*
|
|
11
|
-
* - Define a região superior da tabela com a semântica de `rowgroup` de cabeçalho.
|
|
12
|
-
* - Recebe uma ou mais linhas `br-table-row` que contêm as células de título `br-table-header-cell`.
|
|
13
|
-
*
|
|
14
|
-
* ### Regra de uso e relacionamento
|
|
15
|
-
*
|
|
16
|
-
* Deve ser declarado dentro do slot `header` do componente pai `br-table`. O orquestrador da tabela aplica a configuração de colunas e espaçamentos sobre o cabeçalho. Não deve ser usado isoladamente.
|
|
17
|
-
*
|
|
18
|
-
* Para a documentação completa de design, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
19
|
-
*
|
|
20
|
-
|
|
21
11
|
* @part header - Wrapper do cabeçalho da tabela.
|
|
22
12
|
*/
|
|
23
13
|
export class TableHeader {
|
|
@@ -37,7 +27,7 @@ export class TableHeader {
|
|
|
37
27
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura do cabeçalho da tabela.
|
|
38
28
|
*/
|
|
39
29
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '5ca1b6b8d10f56639f77b75a9fe26745b5be7b4d', role: "rowgroup" }, h("div", { key: '8b6b924b1b1d805eb55db646952fa3110fe32236', class: this.getHeaderCssClassMap(), role: "presentation", part: "header" }, h("slot", { key: 'c5636e6a580ff35e0142ed0b250754cde68899bb' }))));
|
|
41
31
|
}
|
|
42
32
|
static get is() { return "br-table-header"; }
|
|
43
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,20 +6,10 @@ import { Host, h } from "@stencil/core";
|
|
|
6
6
|
import { resolveAllowedPropValue } from "../../../shared/utils/props";
|
|
7
7
|
import { TABLE_TOOLTIP_MODE, TABLE_TOOLTIP_STATE } from "../table-constants";
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Célula de cabeçalho (`<th>`) da tabela. Use dentro de um `br-table-row` no cabeçalho.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Coloque o título da coluna no slot padrão. Para habilitar ordenação, ative `sortable`.
|
|
12
12
|
*
|
|
13
|
-
* - Define o rótulo da coluna com `role="columnheader"`.
|
|
14
|
-
* - Suporta gatilho interativo de ordenação crescente e decrescente (`sortable`), emitindo eventos para reordenação de dados.
|
|
15
|
-
*
|
|
16
|
-
* ### Regra de uso e relacionamento
|
|
17
|
-
*
|
|
18
|
-
* Deve ser declarado dentro de um `br-table-row` situado no `br-table-header`. O alinhamento horizontal segue a definição da coluna na tabela pai.
|
|
19
|
-
*
|
|
20
|
-
* Para a documentação completa de design, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
21
|
-
*
|
|
22
|
-
|
|
23
13
|
* @part cell - Wrapper da célula de cabeçalho.
|
|
24
14
|
* @part content - Área de conteúdo da célula de cabeçalho.
|
|
25
15
|
*/
|
|
@@ -171,7 +161,7 @@ export class TableHeaderCell {
|
|
|
171
161
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da célula de cabeçalho da tabela.
|
|
172
162
|
*/
|
|
173
163
|
render() {
|
|
174
|
-
return (h(Host, { key: '
|
|
164
|
+
return (h(Host, { key: '4ece237da29ff58fc411eb7e26c560dba9f0973a', role: "columnheader" }, h("div", { key: '4eaa6afebe31a0ce4907d4b8acee9f81039a019e', class: this.getHeaderCellCssClassMap(), role: "presentation", part: "cell" }, h("div", { key: '4ded9e1d6c1e2da28c1b2fccfd75a19d757d11d6', class: "br-table-header-cell-content", role: "presentation", part: "content" }, h("div", { key: '773cb97c329204af1076378dba230ce517cda410', class: "br-table-header-cell-truncate", role: "presentation", ref: (el) => (this.truncateContentRef = el), onPointerEnter: this.handleMouseEnter, onPointerLeave: this.handleMouseLeave }, h("slot", { key: '8cf462e15b66cdb8ea6f04ec0c043f5d63ea0e87', ref: (el) => (this.contentSlotRef = el) })), this.isTooltipVisible && (h("br-tooltip", { key: 'c4b9f0f3302c954466dee1714afc648f949af6fe', ref: (el) => (this.tooltipRef = el), position: "top", state: this.resolveTooltipState() === TABLE_TOOLTIP_STATE.DANGER ? 'danger' : this.resolveTooltipState() }, h("span", { key: '6a082b96f32d324047a565c6eb8a56e4530a39d0', slot: "content" }, this.tooltipContent)))))));
|
|
175
165
|
}
|
|
176
166
|
static get is() { return "br-table-header-cell"; }
|
|
177
167
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,20 +5,10 @@
|
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import { resolveAllowedPropValue } from "../../../shared/utils/props";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Linha horizontal (`<tr>`) da tabela. Use dentro de `br-table-header` ou `br-table-body`.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Use `selected` para indicar que a linha está selecionada.
|
|
11
11
|
*
|
|
12
|
-
* - Representa uma linha de registro (`role="row"`).
|
|
13
|
-
* - Suporta estados de seleção (`selected`), foco e hover coordenados com o pai.
|
|
14
|
-
*
|
|
15
|
-
* ### Regra de uso e relacionamento
|
|
16
|
-
*
|
|
17
|
-
* Declarado dentro de `br-table-header` (quando contiver `br-table-header-cell`) ou dentro de `br-table-body` (quando contiver `br-table-cell`). Não deve ser usado isoladamente.
|
|
18
|
-
*
|
|
19
|
-
* Para a documentação completa de design, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
20
|
-
*
|
|
21
|
-
|
|
22
12
|
* @part row - Wrapper da linha da tabela.
|
|
23
13
|
*/
|
|
24
14
|
export class TableRow {
|
|
@@ -81,7 +71,7 @@ export class TableRow {
|
|
|
81
71
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da linha da tabela.
|
|
82
72
|
*/
|
|
83
73
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '1b2246705a8a2017b87e056b6582811d18a0984b', role: "row" }, h("div", { key: '0b740cf446684867c9ce4081466bdc7e3e01bb6f', class: this.getRowCssClassMap(), role: "presentation", part: "row" }, h("slot", { key: 'f98e999efa1f30a2c3c03614d5f7e272ca438452' }))));
|
|
85
75
|
}
|
|
86
76
|
static get is() { return "br-table-row"; }
|
|
87
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,45 +11,38 @@ import { COLUMN_WIDTH_MAP, COLUMN_WIDTH_SEMANTICS, TABLE_ALIGNMENT, TABLE_ALIGNM
|
|
|
11
11
|
import { TABLE_TOKENS } from "./table-tokens";
|
|
12
12
|
import { positiveFrValidator, positivePxValidator, resolveTokenValue } from "./table-utils";
|
|
13
13
|
/**
|
|
14
|
-
* O
|
|
14
|
+
* O `br-table` estrutura e exibe conjuntos de dados organizados em linhas e colunas.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* Estruture a tabela usando os subcomponentes `br-table-header`, `br-table-body`, `br-table-row` e `br-table-cell`. Para exibir um indicador de carregamento durante atualizações assíncronas, use a propriedade `loading`.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <br-table>
|
|
20
|
+
* <br-table-header slot="header">
|
|
21
|
+
* <br-table-row>
|
|
22
|
+
* <br-table-header-cell>Nome</br-table-header-cell>
|
|
23
|
+
* <br-table-header-cell>Cargo</br-table-header-cell>
|
|
24
|
+
* </br-table-row>
|
|
25
|
+
* </br-table-header>
|
|
26
|
+
* <br-table-body slot="body">
|
|
27
|
+
* <br-table-row>
|
|
28
|
+
* <br-table-cell>Maria Silva</br-table-cell>
|
|
29
|
+
* <br-table-cell>Analista</br-table-cell>
|
|
30
|
+
* </br-table-row>
|
|
31
|
+
* </br-table-body>
|
|
32
|
+
* </br-table>
|
|
33
|
+
* ```
|
|
21
34
|
*
|
|
22
|
-
* ### Quando
|
|
35
|
+
* ### Quando usar
|
|
23
36
|
*
|
|
24
|
-
* -
|
|
25
|
-
* - As informações compartilharem campos e atributos fixos que justifiquem a comparação lado a lado em colunas.
|
|
26
|
-
* - A pessoa usuária precisar ordenar, filtrar ou selecionar múltiplos registros da lista.
|
|
27
|
-
* - **Evite e prefira outro componente quando:**
|
|
28
|
-
* - Os itens forem heterogêneos com estruturas visuais distintas (prefira `br-card`).
|
|
29
|
-
* - Houver apenas um texto linear simples por item (prefira `br-list`).
|
|
37
|
+
* - Dados bidimensionais com cabeçalhos de coluna e necessidades de ordenação ou comparação.
|
|
30
38
|
*
|
|
31
|
-
* ###
|
|
39
|
+
* ### Quando evitar
|
|
32
40
|
*
|
|
33
|
-
*
|
|
41
|
+
* - Listas simples de itens lineares: use `br-list`.
|
|
42
|
+
* - Agrupamento de informações de um único registro: use `br-card`.
|
|
34
43
|
*
|
|
35
|
-
*
|
|
36
|
-
* | --- | --- | --- |
|
|
37
|
-
* | `br-table` | **Orquestrador principal.** Gerencia o grid de colunas, ordenação, seleção de linhas e densidade. | Contêiner raiz da tabela. |
|
|
38
|
-
* | `br-table-header` | **Seção de cabeçalho.** Agrupa as linhas de títulos das colunas. | Declarado no slot `header` da tabela. |
|
|
39
|
-
* | `br-table-body` | **Corpo de dados.** Agrupa as linhas de registros de conteúdo. | Declarado no slot `body` (ou padrão) da tabela. |
|
|
40
|
-
* | `br-table-row` | **Linha.** Representa uma linha de cabeçalho ou de registro de dados. | Declarado dentro de `br-table-header` ou `br-table-body`. |
|
|
41
|
-
* | `br-table-header-cell` | **Célula de título.** Célula de cabeçalho com suporte a botão de ordenação. | Declarado dentro de `br-table-row` no cabeçalho. |
|
|
42
|
-
* | `br-table-cell` | **Célula de dados.** Célula de conteúdo individual de uma coluna. | Declarado dentro de `br-table-row` no corpo de dados. |
|
|
44
|
+
* Consulte as [diretrizes de design do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
43
45
|
*
|
|
44
|
-
* ### Como os subcomponentes se relacionam
|
|
45
|
-
*
|
|
46
|
-
* A arquitetura de `br-table` reflete a semântica nativa de tabelas HTML de forma modular:
|
|
47
|
-
* `br-table` → `br-table-header` / `br-table-body` → `br-table-row` → `br-table-header-cell` / `br-table-cell`.
|
|
48
|
-
* O componente pai orquestra o alinhamento das colunas via tokens de Grid, distribuindo automaticamente os estados de seleção e foco para as linhas filhas.
|
|
49
|
-
*
|
|
50
|
-
* Para a documentação completa de design, incluindo diretrizes de acessibilidade e especificações visuais, consulte o [Design System do GovBR](https://www.gov.br/ds/components/table?tab=designer).
|
|
51
|
-
*
|
|
52
|
-
|
|
53
46
|
* @category Dados, Conteúdo
|
|
54
47
|
* @status stable
|
|
55
48
|
* @Slot header: Área para inclusão do subcomponente br-table-header
|
|
@@ -639,7 +632,7 @@ export class Table {
|
|
|
639
632
|
* @returns JSX.Element representando o elemento host do componente, contendo a estrutura da tabela.
|
|
640
633
|
*/
|
|
641
634
|
render() {
|
|
642
|
-
return (h(Host, { key: '
|
|
635
|
+
return (h(Host, { key: '98c729fdca76ed9a92354b8caf2c46030ea0f1e4', role: "table", "aria-busy": this.loading ? 'true' : null }, h("div", { key: 'b64e8d0e0ce41e2983b7a55fe9c5764df107db2b', class: this.getTableCssClassMap(), part: "container" }, this.renderContent(), this.loading ? (h("div", { part: "loading", role: "status", "aria-live": "polite" }, h("slot", { name: "loading" }, h("br-loading", { size: "small", label: "Carregando dados" })))) : null)));
|
|
643
636
|
}
|
|
644
637
|
static get is() { return "br-table"; }
|
|
645
638
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,37 +14,28 @@ const SHAPE_CIRCLE = 'circle';
|
|
|
14
14
|
const SHAPE_ROUNDED = 'rounded';
|
|
15
15
|
const SHAPE_DEFAULT = 'default';
|
|
16
16
|
/**
|
|
17
|
-
* O
|
|
17
|
+
* O `br-tag` categoriza, rotula ou destaca informações curtas e metadados.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* Suporta modo estático informativo, modo interativo clicável com `action`, modo com botão de fechar (`closable`) e modo selecionável com `selectable`.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
* -
|
|
23
|
-
* -
|
|
24
|
-
* -
|
|
21
|
+
* ```html
|
|
22
|
+
* <br-tag>Pendente</br-tag>
|
|
23
|
+
* <br-tag status="success">Concluído</br-tag>
|
|
24
|
+
* <br-tag closable>Filtro: Brasília</br-tag>
|
|
25
|
+
* ```
|
|
25
26
|
*
|
|
26
|
-
* ### Quando
|
|
27
|
+
* ### Quando usar
|
|
27
28
|
*
|
|
28
|
-
* -
|
|
29
|
-
*
|
|
30
|
-
* - Exibir status sucinto de registros em tabelas (`br-table`) ou cabeçalhos.
|
|
31
|
-
* - Oferecer filtros aplicados que podem ser removidos com um clique.
|
|
32
|
-
* - **Evite e prefira outro componente quando:**
|
|
33
|
-
* - O elemento for a ação primária ou um comando executável (prefira `br-button`).
|
|
34
|
-
* - O texto for extenso e exigir explicações detalhadas (prefira `br-message`).
|
|
29
|
+
* - Rótulos de estado, tags de categorias ou palavras-chave.
|
|
30
|
+
* - Filtros aplicados que podem ser removidos individualmente.
|
|
35
31
|
*
|
|
36
|
-
* ###
|
|
32
|
+
* ### Quando evitar
|
|
37
33
|
*
|
|
38
|
-
*
|
|
39
|
-
* -
|
|
40
|
-
* - `label`: Slot para rótulo customizado.
|
|
41
|
-
* - `icon`: Slot para inserção de ícone auxiliar (`br-icon`).
|
|
42
|
-
* - `close-button`: Slot para customizar o botão de remoção.
|
|
43
|
-
* - `feedback`: Slot para mensagem de validação contextual.
|
|
34
|
+
* - Ações primárias ou envio de formulário: use `br-button`.
|
|
35
|
+
* - Contagem numérica pura: use `br-avatar` ou texto de badge.
|
|
44
36
|
*
|
|
45
|
-
*
|
|
37
|
+
* Consulte as [diretrizes de design do GovBR](https://www.gov.br/ds/components/tag?tab=designer).
|
|
46
38
|
*
|
|
47
|
-
|
|
48
39
|
* @category Conteúdo, Dados
|
|
49
40
|
* @status stable
|
|
50
41
|
* @slot default - Slot para inserir o conteúdo da tag, como rótulo ou ícone.
|
|
@@ -513,11 +504,11 @@ export class Tag {
|
|
|
513
504
|
}
|
|
514
505
|
render() {
|
|
515
506
|
const mainContent = this.renderMainTagContent();
|
|
516
|
-
return (h(Host, { key: '
|
|
507
|
+
return (h(Host, { key: '920367f2226906a5647e53f9340bccebc8950973' }, this.effectiveSelectable
|
|
517
508
|
? this.renderInteractionSelectTag()
|
|
518
509
|
: this.effectiveStatus
|
|
519
510
|
? this.renderStatusLayout(mainContent)
|
|
520
|
-
: mainContent, h("div", { key: '
|
|
511
|
+
: mainContent, h("div", { key: '773bf8dcb94a3c172e9a66298493f4c4a502335d', id: `${this.customId}-feedback`, part: "feedback", hidden: !this.hasFeedbackSlot && !this.customValidationMessage && !this.validatorMessage }, h("slot", { key: '1f20e23d871705afa78914dcd17ce423f29f42b6', name: "feedback", onSlotchange: (event) => (this.hasFeedbackSlot = hasAssignedSlotContent(event.currentTarget)) }), !this.hasFeedbackSlot && (this.customValidationMessage || this.validatorMessage) ? (h("br-message", { state: "danger", message: this.customValidationMessage || this.validatorMessage })) : null)));
|
|
521
512
|
}
|
|
522
513
|
static get is() { return "br-tag"; }
|
|
523
514
|
static get encapsulation() { return "shadow"; }
|
|
@@ -817,7 +808,7 @@ export class Tag {
|
|
|
817
808
|
"optional": true,
|
|
818
809
|
"docs": {
|
|
819
810
|
"tags": [],
|
|
820
|
-
"text": "Variante funcional
|
|
811
|
+
"text": "Variante funcional padr\u00E3o. Aceita `default`, `status`, `action` ou `selectable`.\nValores inv\u00E1lidos s\u00E3o ignorados; nesse caso, os aliases booleanos legados\ncontinuam dispon\u00EDveis para manter a compatibilidade."
|
|
821
812
|
},
|
|
822
813
|
"getter": false,
|
|
823
814
|
"setter": false,
|
|
@@ -10,34 +10,26 @@ import { resolveAllowedPropValue, resolveDensity, resolveIntegerPropValue } from
|
|
|
10
10
|
import { hasAssignedSlotContent, hasDefaultLightDomContent } from "../../shared/utils/slot";
|
|
11
11
|
import { resolveFormValidator } from "../../shared/utils/validator";
|
|
12
12
|
/**
|
|
13
|
-
* O
|
|
13
|
+
* O `br-textarea` captura textos longos em múltiplas linhas em formulários.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* Configure `label`, `placeholder`, `maxlength` e `state` para validação. Use `show-counter` para exibir o contador de caracteres restantes.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
* - **Redimensionamento controlado:** Oferece opções de redimensionamento vertical, horizontal ou fixo.
|
|
17
|
+
* ```html
|
|
18
|
+
* <br-textarea label="Observações" placeholder="Digite sua mensagem" maxlength="500" show-counter></br-textarea>
|
|
19
|
+
* ```
|
|
21
20
|
*
|
|
22
|
-
*
|
|
21
|
+
* Em formulários HTML, o componente integra-se via `ElementInternals`, participando da validação nativa com `required`.
|
|
23
22
|
*
|
|
24
|
-
*
|
|
25
|
-
* - A entrada esperada tiver mais de uma frase ou exigir formatação multilinha (comentários, manifestações, relatórios, justificativas).
|
|
26
|
-
* - Houver restrição estrita de caracteres com necessidade de feedback quantitativo dinâmico.
|
|
27
|
-
* - **Evite e prefira outro componente quando:**
|
|
28
|
-
* - O dado for curto e couber em uma única linha (como nomes, e-mails, títulos, documentos): prefira `br-input`.
|
|
29
|
-
* - For necessário um editor rico WYSIWYG com formatação em negrito, tabelas e links.
|
|
23
|
+
* ### Quando usar
|
|
30
24
|
*
|
|
31
|
-
*
|
|
25
|
+
* - Mensagens, comentários, justificativas, descrições ou textos extensos.
|
|
32
26
|
*
|
|
33
|
-
*
|
|
34
|
-
* - `default`: Slot para instruções adicionais ou textos de ajuda.
|
|
35
|
-
* - `feedback`: Slot para mensagens de validação contextual (como `br-message`).
|
|
36
|
-
* - `validation-loading`: Slot para indicador de carregamento durante validações assíncronas.
|
|
27
|
+
* ### Quando evitar
|
|
37
28
|
*
|
|
38
|
-
*
|
|
29
|
+
* - Dados curtos de linha única (nome, CPF, e-mail): use `br-input`.
|
|
30
|
+
*
|
|
31
|
+
* Consulte as [diretrizes de design do GovBR](https://www.gov.br/ds/components/textarea?tab=designer).
|
|
39
32
|
*
|
|
40
|
-
|
|
41
33
|
* @category Formulários
|
|
42
34
|
* @status stable
|
|
43
35
|
* @slot default - Slot para texto adicional ou instruções a serem exibidos junto ao textarea.
|
|
@@ -420,7 +412,7 @@ export class Textarea {
|
|
|
420
412
|
const caracteresRestantes = this.effectiveMaxLength - this.currentLength;
|
|
421
413
|
const mostrarLimite = this.currentLength > 0;
|
|
422
414
|
const hasLabel = !!this.label;
|
|
423
|
-
return (h(Host, { key: '
|
|
415
|
+
return (h(Host, { key: '90b44bc0d3f646a162ff47a23edeee58553e9a95' }, h("div", { key: '737b4e60054d523e4004062c1ef72b87ec3da7e3', class: this.getCssClassMap(), part: "container" }, (this.inline ?? this.isInline) ? (h("div", { class: "row" }, h("div", { class: "col-auto pt-half" }, h("label", { part: "label", htmlFor: this.customId }, this.label)), h("div", { class: "col" }, h("textarea", { part: "textarea", ref: this.setNativeTextarea, id: this.customId, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled(), required: this.required, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, rows: this.effectiveRows, cols: this.effectiveCols, wrap: this.effectiveWrap, maxLength: this.effectiveMaxLength > 0 ? this.effectiveMaxLength : undefined, minLength: this.effectiveMinLength > 0 ? this.effectiveMinLength : undefined, "aria-describedby": this.getDescribedBy(), "aria-busy": this.isValidating ? 'true' : null, ...(!hasLabel ? { 'aria-label': this.getAccessibilityLabel() } : {}) }), this.renderFeedback(), this.renderValidationLoading(), h("div", { class: "mt-1 text-base", part: "counter" }, this.showCounter && (h("div", null, mostrarLimite ? (h("span", { class: "restantes", "aria-live": "polite", role: "status", id: `${this.customId}-limitMax`, part: "counter-text" }, "Restam ", h("strong", null, caracteresRestantes), " caracteres")) : (h("span", { class: "limit", "aria-live": "polite", id: `${this.customId}-limitMax`, part: "counter-text" }, "Limite m\u00E1ximo de ", h("strong", null, this.effectiveMaxLength), " caracteres")))), this.hasDefaultSlot && (h("div", { id: `${this.customId}-slotInfo`, "aria-live": "polite", part: "helper" }, h("slot", null))))))) : (h("div", null, hasLabel ? (h("label", { part: "label", htmlFor: this.customId }, this.label)) : null, h("textarea", { part: "textarea", ref: this.setNativeTextarea, id: this.customId, name: this.name, value: this.value, placeholder: this.placeholder, disabled: this.isDisabled(), required: this.required, readOnly: this.readonly, onInput: this.handleInput, onChange: this.handleChange, rows: this.effectiveRows, cols: this.effectiveCols, wrap: this.effectiveWrap, maxLength: this.effectiveMaxLength > 0 ? this.effectiveMaxLength : undefined, minLength: this.effectiveMinLength > 0 ? this.effectiveMinLength : undefined, "aria-describedby": this.getDescribedBy(), "aria-busy": this.isValidating ? 'true' : null, ...(!hasLabel ? { 'aria-label': this.getAccessibilityLabel() } : {}) }), this.renderFeedback(), this.renderValidationLoading(), this.showCounter ? (h("div", { part: "counter" }, mostrarLimite ? (h("span", { class: "restantes", "aria-live": "polite", role: "status", id: `${this.customId}-limitMax`, part: "counter-text" }, "Restam ", h("strong", null, caracteresRestantes), " caracteres")) : (h("span", { class: "limit", "aria-live": "polite", id: `${this.customId}-limitMax`, part: "counter-text" }, "Limite m\u00E1ximo de ", h("strong", null, this.effectiveMaxLength), " caracteres")))) : null, this.hasDefaultSlot ? (h("div", { id: `${this.customId}-slotInfo`, "aria-live": "polite", part: "helper" }, h("slot", null))) : null)))));
|
|
424
416
|
}
|
|
425
417
|
static get is() { return "br-textarea"; }
|
|
426
418
|
static get encapsulation() { return "shadow"; }
|
|
@@ -705,7 +697,7 @@ export class Textarea {
|
|
|
705
697
|
"optional": true,
|
|
706
698
|
"docs": {
|
|
707
699
|
"tags": [],
|
|
708
|
-
"text": "Estado de feedback
|
|
700
|
+
"text": "Estado de feedback. Quando informado, tem preced\u00EAncia sobre `state`; valores inv\u00E1lidos n\u00E3o aplicam estado."
|
|
709
701
|
},
|
|
710
702
|
"getter": false,
|
|
711
703
|
"setter": false,
|
|
@@ -40,32 +40,26 @@ const detachVisibilityListener = (tooltip) => {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* O
|
|
43
|
+
* O `br-tooltip` exibe uma dica rápida e contextual quando o usuário foca ou passa o mouse sobre um elemento.
|
|
44
44
|
*
|
|
45
|
-
*
|
|
45
|
+
* Coloque o texto da dica em `text` ou no slot padrão, e vincule-o ao elemento acionador através de `target` ou colocando o acionador no slot `trigger`.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
48
|
-
* -
|
|
49
|
-
* -
|
|
47
|
+
* ```html
|
|
48
|
+
* <br-button id="btn-ajuda" shape="circle" aria-label="Ajuda">?</br-button>
|
|
49
|
+
* <br-tooltip target="#btn-ajuda" text="Clique para obter informações"></br-tooltip>
|
|
50
|
+
* ```
|
|
50
51
|
*
|
|
51
|
-
* ### Quando
|
|
52
|
+
* ### Quando usar
|
|
52
53
|
*
|
|
53
|
-
* -
|
|
54
|
-
* - Fornecer o rótulo descritivo de um botão que contenha apenas ícone.
|
|
55
|
-
* - Explicar uma sigla ou termo abreviado na interface.
|
|
56
|
-
* - **Evite e prefira outro componente quando:**
|
|
57
|
-
* - O conteúdo for extenso, contiver botões interativos ou links navegáveis (prefira `br-dropdown`, `br-modal` ou texto inline fixo, pois tooltips desaparecem ao mover o ponteiro).
|
|
58
|
-
* - A informação for indispensável para a conclusão de uma tarefa crítica (ela deve estar sempre visível na tela).
|
|
54
|
+
* - Esclarecer o significado de botões que usam apenas ícones ou rótulos abreviados.
|
|
59
55
|
*
|
|
60
|
-
* ###
|
|
56
|
+
* ### Quando evitar
|
|
61
57
|
*
|
|
62
|
-
*
|
|
63
|
-
* -
|
|
64
|
-
* - `content`: Slot onde é inserido o texto ou balão de conteúdo exibido pelo tooltip.
|
|
58
|
+
* - Informações essenciais que todos os usuários precisam ler imediatamente: exiba como texto visível na página.
|
|
59
|
+
* - Conteúdos longos com links clicáveis: use `br-message` ou diálogo.
|
|
65
60
|
*
|
|
66
|
-
*
|
|
61
|
+
* Consulte as [diretrizes de design do GovBR](https://www.gov.br/ds/components/tooltip?tab=designer).
|
|
67
62
|
*
|
|
68
|
-
|
|
69
63
|
* @category Feedback, Sobreposições
|
|
70
64
|
* @status stable
|
|
71
65
|
* @slot trigger - Slot para o elemento que aciona a exibição do tooltip.
|
|
@@ -683,7 +677,7 @@ export class Tooltip {
|
|
|
683
677
|
* @returns JSX.Element
|
|
684
678
|
*/
|
|
685
679
|
render() {
|
|
686
|
-
return (h(Host, { key: '
|
|
680
|
+
return (h(Host, { key: '0297e9290fba02f1ffb37f0f19841e65c04c4f43' }, h("div", { key: '11d7cdab421eae7a1ceb07832e6922af23ae146a', id: this.customId, class: this.getCssClassMap(), part: "container" }, h("div", { key: 'f14b554222d9cbf5c0088db5f6f632e6bfe7dd97', class: this.getTriggerCssClassMap(), ref: (el) => (this.triggerElement = el), "aria-describedby": `${this.customId}-content`, "aria-controls": `${this.customId}-content`, tabindex: this.externalTriggerElement !== null || this.hasFocusableTrigger ? -1 : 0, part: "trigger" }, h("slot", { key: 'c1a5efec3a1c6dc7744a5b53c0a8a025dba8d616', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), h("div", { key: '83c5317be6ba8093bd276f7fb235856ed71afbda', id: `${this.customId}-content`, class: this.getContentCssClassMap(), ref: (el) => (this.contentElement = el), role: this.effectiveType === 'popover' ? 'dialog' : 'tooltip', "aria-label": this.effectiveType === 'popover' ? this.ariaLabel || this.getAccessibilityLabel() : undefined, tabindex: "-1", part: "content" }, h("span", { key: 'e14f457e49233fde38ec09e23314ad5f42bcdc41', class: "sr-only" }, this.getAccessibilityLabel()), h("slot", { key: 'fe8dfb523ee3c12a42bf2bd9553fafd27572724b', name: "content" }), this.effectiveType === 'popover' && (h("br-button", { key: '659f619515e3ab003f4f94ae02d84060b0583574', class: "close", shape: "circle", density: "small", type: "button", onClick: this.hideContent, "prop:ariaLabel": "Fechar popover" }, h("br-icon", { key: 'c0190cf4d9e52a3a8955e56567a2a121c905c2f7', iconName: "fa6-solid:xmark", width: "16", height: "16" }))), h("div", { key: '3b158c825c4999e3241de6cad440e71a7d7b993c', class: this.getArrowCssClassMap(), ref: (el) => (this.arrowElement = el), part: "arrow" })))));
|
|
687
681
|
}
|
|
688
682
|
static get is() { return "br-tooltip"; }
|
|
689
683
|
static get encapsulation() { return "shadow"; }
|