@govbr-ds/webcomponents 2.1.3 → 2.2.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 +87 -46
- package/cem/custom-elements.json +6359 -1133
- package/cem/webcomponents.html-custom-data.json +398 -285
- package/dist/cjs/br-avatar.cjs.entry.js +21 -14
- package/dist/cjs/br-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/br-breadcrumb.cjs.entry.js +49 -22
- package/dist/cjs/br-button_2.cjs.entry.js +72 -35
- package/dist/cjs/br-card.cjs.entry.js +6 -5
- package/dist/cjs/br-carousel-page.cjs.entry.js +3 -3
- package/dist/cjs/br-carousel.cjs.entry.js +77 -21
- package/dist/cjs/br-checkbox-group.cjs.entry.js +157 -27
- package/dist/cjs/br-checkbox.cjs.entry.js +85 -15
- package/dist/cjs/br-checkgroup.cjs.entry.js +5 -2
- package/dist/cjs/br-collapse_2.cjs.entry.js +85 -26
- package/dist/cjs/br-cookiebar-cookie.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-group.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-header.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar-link.cjs.entry.js +14 -6
- package/dist/cjs/br-cookiebar-note-group.cjs.entry.js +3 -5
- package/dist/cjs/br-cookiebar-note.cjs.entry.js +4 -4
- package/dist/cjs/br-cookiebar.cjs.entry.js +38 -25
- package/dist/cjs/br-crumb.cjs.entry.js +2 -2
- package/dist/cjs/br-date-picker_3.cjs.entry.js +246 -88
- package/dist/cjs/br-datetime-picker.cjs.entry.js +115 -527
- package/dist/cjs/br-divider.cjs.entry.js +70 -17
- package/dist/cjs/br-dropdown_2.cjs.entry.js +301 -128
- package/dist/cjs/br-footer-category.cjs.entry.js +10 -6
- package/dist/cjs/br-footer-item.cjs.entry.js +9 -4
- package/dist/cjs/br-footer-legal.cjs.entry.js +4 -4
- package/dist/cjs/br-footer-logo.cjs.entry.js +22 -10
- package/dist/cjs/br-footer-social.cjs.entry.js +14 -6
- package/dist/cjs/br-footer.cjs.entry.js +16 -7
- package/dist/cjs/br-header-function.cjs.entry.js +28 -7
- package/dist/cjs/br-header-link.cjs.entry.js +25 -4
- package/dist/cjs/br-header-list.cjs.entry.js +6 -17
- package/dist/cjs/br-header-logo.cjs.entry.js +18 -7
- package/dist/cjs/br-header.cjs.entry.js +72 -17
- package/dist/cjs/br-icon.cjs.entry.js +160 -23
- package/dist/cjs/br-input.cjs.entry.js +130 -39
- package/dist/cjs/br-item.cjs.entry.js +96 -48
- package/dist/cjs/br-link.cjs.entry.js +20 -7
- package/dist/cjs/br-loading.cjs.entry.js +100 -38
- package/dist/cjs/br-magic-button.cjs.entry.js +26 -9
- package/dist/cjs/br-menu-group.cjs.entry.js +14 -3
- package/dist/cjs/br-menu-header.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-info.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-item.cjs.entry.js +27 -5
- package/dist/cjs/br-menu-link.cjs.entry.js +14 -6
- package/dist/cjs/br-menu-list.cjs.entry.js +23 -27
- package/dist/cjs/br-menu-logo.cjs.entry.js +4 -4
- package/dist/cjs/br-menu-social.cjs.entry.js +16 -6
- package/dist/cjs/br-menu.cjs.entry.js +38 -57
- package/dist/cjs/br-modal.cjs.entry.js +26 -40
- package/dist/cjs/br-notification-body.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-header.cjs.entry.js +4 -4
- package/dist/cjs/br-notification-item.cjs.entry.js +14 -8
- package/dist/cjs/br-notification.cjs.entry.js +23 -8
- package/dist/cjs/br-pagination.cjs.entry.js +119 -87
- package/dist/cjs/br-radio-group.cjs.entry.js +106 -57
- package/dist/cjs/br-radio.cjs.entry.js +61 -11
- package/dist/cjs/br-scrim.cjs.entry.js +161 -67
- package/dist/cjs/br-select-input_3.cjs.entry.js +283 -90
- package/dist/cjs/br-sign-in.cjs.entry.js +34 -15
- package/dist/cjs/br-skip-link-item.cjs.entry.js +39 -2
- package/dist/cjs/br-skip-link.cjs.entry.js +50 -33
- package/dist/cjs/br-skiplink-item.cjs.entry.js +22 -6
- package/dist/cjs/br-slider.cjs.entry.js +521 -99
- package/dist/cjs/br-step_2.cjs.entry.js +98 -44
- package/dist/cjs/br-switch.cjs.entry.js +20 -11
- package/dist/cjs/br-tab-item.cjs.entry.js +38 -14
- package/dist/cjs/br-tab.cjs.entry.js +57 -44
- package/dist/cjs/br-table-body.cjs.entry.js +3 -3
- package/dist/cjs/br-table-cell.cjs.entry.js +30 -13
- package/dist/cjs/br-table-header-cell.cjs.entry.js +23 -7
- package/dist/cjs/br-table-header.cjs.entry.js +3 -3
- package/dist/cjs/br-table-row.cjs.entry.js +17 -3
- package/dist/cjs/br-table.cjs.entry.js +67 -21
- package/dist/cjs/br-tag.cjs.entry.js +48 -30
- package/dist/cjs/br-textarea.cjs.entry.js +117 -12
- package/dist/cjs/br-tooltip.cjs.entry.js +87 -41
- package/dist/cjs/br-upload.cjs.entry.js +83 -24
- package/dist/cjs/br-wizard-panel.cjs.entry.js +16 -3
- package/dist/cjs/br-wizard.cjs.entry.js +52 -28
- package/dist/cjs/{isValid-Fu3kaWNn.js → datetime-picker-props-validation-DmNKSXsy.js} +481 -4
- package/dist/cjs/{floating-ui-MBI1osio.js → floating-ui-B6nsdYUU.js} +24 -1
- package/dist/cjs/{floating-ui.dom-BUSTaaxR.js → floating-ui.dom-wzdGZjyG.js} +201 -113
- package/dist/cjs/{focus-DuywwJPR.js → focus-BhfJnFgJ.js} +21 -0
- package/dist/cjs/header-context-CdawuLsH.js +17 -0
- package/dist/cjs/id-DE4jSi-L.js +36 -0
- package/dist/cjs/{index-CRdcutym.js → index-CGgZBuyy.js} +68 -752
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/motion-CgIooxWS.js +29 -0
- package/dist/cjs/ownership-UnpufyCx.js +116 -0
- package/dist/cjs/prop-warning-xvEHQz8H.js +60 -0
- package/dist/cjs/props-D8dybmr0.js +124 -0
- package/dist/cjs/{swipe-BU8_XE9f.js → swipe-BGF-h9WY.js} +11 -1
- package/dist/cjs/webcomponents.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +48 -16
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +15 -3
- package/dist/collection/components/breadcrumb/breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +107 -22
- package/dist/collection/components/breadcrumb/crumb/crumb.js +14 -2
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +88 -24
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +33 -5
- package/dist/collection/components/carousel/carousel-page/carousel-page.css +1 -1
- package/dist/collection/components/carousel/carousel-page/carousel-page.js +11 -4
- package/dist/collection/components/carousel/carousel.css +1 -1
- package/dist/collection/components/carousel/carousel.js +107 -21
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +134 -20
- package/dist/collection/components/checkbox-group/checkbox-group.css +1 -1
- package/dist/collection/components/checkbox-group/checkbox-group.js +210 -30
- package/dist/collection/components/checkgroup/checkgroup.js +42 -4
- package/dist/collection/components/collapse/collapse.css +1 -1
- package/dist/collection/components/collapse/collapse.js +48 -8
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-cookie/cookiebar-cookie.js +17 -4
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-group/cookiebar-group.js +16 -7
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-header/cookiebar-header.js +15 -9
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-link/cookiebar-link.js +24 -8
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note/cookiebar-note.js +14 -4
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar-note-group/cookiebar-note-group.js +13 -5
- package/dist/collection/components/cookiebar/cookiebar.css +1 -1
- package/dist/collection/components/cookiebar/cookiebar.js +67 -32
- package/dist/collection/components/datetime-picker/date-picker/date-picker.css +1 -1
- package/dist/collection/components/datetime-picker/date-picker/date-picker.js +134 -35
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-input/datetime-input.js +112 -22
- package/dist/collection/components/datetime-picker/datetime-picker-props-validation.js +13 -5
- package/dist/collection/components/datetime-picker/datetime-picker.css +1 -1
- package/dist/collection/components/datetime-picker/datetime-picker.js +158 -42
- package/dist/collection/components/datetime-picker/time-picker/time-picker.css +1 -1
- package/dist/collection/components/datetime-picker/time-picker/time-picker.js +78 -9
- package/dist/collection/components/divider/divider.css +1 -1
- package/dist/collection/components/divider/divider.js +101 -26
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +166 -18
- package/dist/collection/components/footer/footer-category/footer-category.css +1 -1
- package/dist/collection/components/footer/footer-category/footer-category.js +23 -4
- package/dist/collection/components/footer/footer-item/footer-item.css +1 -1
- package/dist/collection/components/footer/footer-item/footer-item.js +21 -2
- package/dist/collection/components/footer/footer-legal/footer-legal.css +1 -1
- package/dist/collection/components/footer/footer-legal/footer-legal.js +16 -2
- package/dist/collection/components/footer/footer-logo/footer-logo.css +1 -1
- package/dist/collection/components/footer/footer-logo/footer-logo.js +35 -9
- package/dist/collection/components/footer/footer-social/footer-social.css +1 -1
- package/dist/collection/components/footer/footer-social/footer-social.js +26 -6
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/footer/footer.js +48 -7
- package/dist/collection/components/header/header-context.js +13 -0
- package/dist/collection/components/header/header-function/header-function.css +1 -1
- package/dist/collection/components/header/header-function/header-function.js +51 -8
- package/dist/collection/components/header/header-link/header-link.css +1 -1
- package/dist/collection/components/header/header-link/header-link.js +52 -2
- package/dist/collection/components/header/header-list/header-list.css +1 -1
- package/dist/collection/components/header/header-list/header-list.js +20 -23
- package/dist/collection/components/header/header-logo/header-logo.css +1 -1
- package/dist/collection/components/header/header-logo/header-logo.js +33 -8
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +110 -24
- package/dist/collection/components/icon/default-icons-cache.js +111 -3
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +80 -33
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +169 -54
- package/dist/collection/components/item/item.css +1 -1
- package/dist/collection/components/item/item.js +134 -51
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +48 -15
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +106 -25
- package/dist/collection/components/loading/loading.css +1 -1
- package/dist/collection/components/loading/loading.js +131 -43
- package/dist/collection/components/magic-button/magic-button.css +1 -1
- package/dist/collection/components/magic-button/magic-button.js +51 -9
- package/dist/collection/components/menu/menu-group/menu-group.css +1 -1
- package/dist/collection/components/menu/menu-group/menu-group.js +60 -2
- package/dist/collection/components/menu/menu-header/menu-header.css +1 -1
- package/dist/collection/components/menu/menu-header/menu-header.js +17 -2
- package/dist/collection/components/menu/menu-info/menu-info.css +1 -1
- package/dist/collection/components/menu/menu-info/menu-info.js +15 -2
- package/dist/collection/components/menu/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu/menu-item/menu-item.js +72 -8
- package/dist/collection/components/menu/menu-link/menu-link.css +1 -1
- package/dist/collection/components/menu/menu-link/menu-link.js +25 -4
- package/dist/collection/components/menu/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu/menu-list/menu-list.js +64 -29
- package/dist/collection/components/menu/menu-logo/menu-logo.css +1 -1
- package/dist/collection/components/menu/menu-logo/menu-logo.js +15 -2
- package/dist/collection/components/menu/menu-social/menu-social.css +1 -1
- package/dist/collection/components/menu/menu-social/menu-social.js +29 -7
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +71 -60
- package/dist/collection/components/menu/menu.utils.js +8 -18
- package/dist/collection/components/message/message.css +1 -1
- package/dist/collection/components/message/message.js +50 -24
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +54 -41
- package/dist/collection/components/notification/notification-body/notification-body.css +1 -1
- package/dist/collection/components/notification/notification-body/notification-body.js +13 -4
- package/dist/collection/components/notification/notification-header/notification-header.css +1 -1
- package/dist/collection/components/notification/notification-header/notification-header.js +13 -4
- package/dist/collection/components/notification/notification-item/notification-item.css +1 -1
- package/dist/collection/components/notification/notification-item/notification-item.js +23 -9
- package/dist/collection/components/notification/notification.css +1 -1
- package/dist/collection/components/notification/notification.js +54 -10
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +161 -74
- package/dist/collection/components/radio/radio.css +1 -1
- package/dist/collection/components/radio/radio.js +109 -14
- package/dist/collection/components/radio-group/radio-group.css +1 -1
- package/dist/collection/components/radio-group/radio-group.js +153 -63
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +215 -74
- package/dist/collection/components/scrim/scrim.utils.js +5 -51
- package/dist/collection/components/select/select-input/select-input.css +1 -1
- package/dist/collection/components/select/select-input/select-input.js +58 -5
- package/dist/collection/components/select/select-list/select-list.css +1 -1
- package/dist/collection/components/select/select-list/select-list.js +247 -52
- package/dist/collection/components/select/select-option/select-option.css +1 -1
- package/dist/collection/components/select/select-option/select-option.js +108 -46
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +320 -124
- package/dist/collection/components/sign-in/sign-in.css +1 -1
- package/dist/collection/components/sign-in/sign-in.js +55 -16
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item-alias.js +112 -3
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.css +1 -1
- package/dist/collection/components/skip-link/skip-link-item/skip-link-item.js +58 -5
- package/dist/collection/components/skip-link/skip-link.css +1 -1
- package/dist/collection/components/skip-link/skip-link.js +78 -39
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +530 -132
- package/dist/collection/components/slider/slider.utils.js +178 -0
- package/dist/collection/components/step/step-item/step-item.css +1 -1
- package/dist/collection/components/step/step-item/step-item.js +29 -12
- package/dist/collection/components/step/step.css +1 -1
- package/dist/collection/components/step/step.js +119 -44
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +48 -15
- package/dist/collection/components/tab/tab-item/tab-item.css +1 -1
- package/dist/collection/components/tab/tab-item/tab-item.js +49 -14
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +89 -46
- package/dist/collection/components/table/table-body/table-body.css +1 -1
- package/dist/collection/components/table/table-body/table-body.js +11 -7
- package/dist/collection/components/table/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table/table-cell/table-cell.js +36 -17
- package/dist/collection/components/table/table-header/table-header.css +1 -1
- package/dist/collection/components/table/table-header/table-header.js +11 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +35 -13
- package/dist/collection/components/table/table-row/table-row.css +1 -1
- package/dist/collection/components/table/table-row/table-row.js +24 -7
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +107 -31
- package/dist/collection/components/tag/tag.css +1 -1
- package/dist/collection/components/tag/tag.js +86 -36
- package/dist/collection/components/textarea/textarea.css +1 -1
- package/dist/collection/components/textarea/textarea.js +222 -19
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +134 -45
- package/dist/collection/components/upload/upload.css +1 -1
- package/dist/collection/components/upload/upload.js +135 -33
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.css +1 -1
- package/dist/collection/components/wizard/wizard-panel/wizard-panel.js +54 -3
- package/dist/collection/components/wizard/wizard.css +1 -1
- package/dist/collection/components/wizard/wizard.js +82 -28
- package/dist/collection/pages/scripts/component-controls-core.js +95 -0
- package/dist/collection/pages/scripts/component-controls.js +217 -153
- package/dist/collection/pages/scripts/dev-event-console.js +5 -1
- package/dist/collection/pages/scripts/menu.js +90 -5
- package/dist/collection/pages/scripts/pageLoader.js +1470 -584
- package/dist/collection/pages/scripts/pageloader-preview.js +787 -0
- package/dist/collection/pages/scripts/playground-core.js +173 -0
- package/dist/collection/shared/utils/cssVariables.js +2 -0
- package/dist/collection/shared/utils/date.js +8 -4
- package/dist/collection/shared/utils/floating-ui.js +24 -1
- package/dist/collection/shared/utils/focus.js +31 -0
- package/dist/collection/shared/utils/getRandom.js +16 -1
- package/dist/collection/shared/utils/helpers.js +4 -11
- package/dist/collection/shared/utils/id.js +23 -7
- package/dist/collection/shared/utils/index.js +6 -1
- package/dist/collection/shared/utils/isEmpty.js +5 -3
- package/dist/collection/shared/utils/motion.js +25 -0
- package/dist/collection/shared/utils/ownership.js +113 -0
- package/dist/collection/shared/utils/prop-warning.js +47 -0
- package/dist/collection/shared/utils/props.js +79 -0
- package/dist/collection/shared/utils/swipe.js +11 -1
- package/dist/collection/shared/utils/transition.js +3 -0
- package/dist/collection/shared/utils/virtual-scroll.js +24 -0
- package/dist/components/br-avatar.d.ts +1 -1
- package/dist/components/br-avatar.js +1 -1
- package/dist/components/br-breadcrumb-item.d.ts +1 -1
- package/dist/components/br-breadcrumb-item.js +1 -1
- package/dist/components/br-breadcrumb.d.ts +1 -1
- package/dist/components/br-breadcrumb.js +1 -1
- package/dist/components/br-button.d.ts +1 -1
- package/dist/components/br-button.js +1 -1
- package/dist/components/br-card.d.ts +1 -1
- package/dist/components/br-card.js +1 -1
- package/dist/components/br-carousel-page.d.ts +1 -1
- package/dist/components/br-carousel-page.js +1 -1
- package/dist/components/br-carousel.d.ts +1 -1
- package/dist/components/br-carousel.js +1 -1
- package/dist/components/br-checkbox-group.d.ts +1 -1
- package/dist/components/br-checkbox-group.js +1 -1
- package/dist/components/br-checkbox.d.ts +1 -1
- package/dist/components/br-checkbox.js +1 -1
- package/dist/components/br-checkgroup.d.ts +1 -1
- package/dist/components/br-checkgroup.js +1 -1
- package/dist/components/br-collapse.d.ts +1 -1
- package/dist/components/br-collapse.js +1 -1
- package/dist/components/br-cookiebar-cookie.d.ts +1 -1
- package/dist/components/br-cookiebar-cookie.js +1 -1
- package/dist/components/br-cookiebar-group.d.ts +1 -1
- package/dist/components/br-cookiebar-group.js +1 -1
- package/dist/components/br-cookiebar-header.d.ts +1 -1
- package/dist/components/br-cookiebar-header.js +1 -1
- package/dist/components/br-cookiebar-link.d.ts +1 -1
- package/dist/components/br-cookiebar-link.js +1 -1
- package/dist/components/br-cookiebar-note-group.d.ts +1 -1
- package/dist/components/br-cookiebar-note-group.js +1 -1
- package/dist/components/br-cookiebar-note.d.ts +1 -1
- package/dist/components/br-cookiebar-note.js +1 -1
- package/dist/components/br-cookiebar.d.ts +1 -1
- package/dist/components/br-cookiebar.js +1 -1
- package/dist/components/br-crumb.d.ts +1 -1
- package/dist/components/br-crumb.js +1 -1
- package/dist/components/br-date-picker.d.ts +1 -1
- package/dist/components/br-date-picker.js +1 -1
- package/dist/components/br-datetime-input.d.ts +1 -1
- package/dist/components/br-datetime-input.js +1 -1
- package/dist/components/br-datetime-picker.d.ts +1 -1
- package/dist/components/br-datetime-picker.js +1 -1
- package/dist/components/br-divider.d.ts +1 -1
- package/dist/components/br-divider.js +1 -1
- package/dist/components/br-dropdown.d.ts +1 -1
- package/dist/components/br-dropdown.js +1 -1
- package/dist/components/br-footer-category.d.ts +1 -1
- package/dist/components/br-footer-category.js +1 -1
- package/dist/components/br-footer-item.d.ts +1 -1
- package/dist/components/br-footer-item.js +1 -1
- package/dist/components/br-footer-legal.d.ts +1 -1
- package/dist/components/br-footer-legal.js +1 -1
- package/dist/components/br-footer-logo.d.ts +1 -1
- package/dist/components/br-footer-logo.js +1 -1
- package/dist/components/br-footer-social.d.ts +1 -1
- package/dist/components/br-footer-social.js +1 -1
- package/dist/components/br-footer.d.ts +1 -1
- package/dist/components/br-footer.js +1 -1
- package/dist/components/br-header-function.d.ts +1 -1
- package/dist/components/br-header-function.js +1 -1
- package/dist/components/br-header-link.d.ts +1 -1
- package/dist/components/br-header-link.js +1 -1
- package/dist/components/br-header-list.d.ts +1 -1
- package/dist/components/br-header-list.js +1 -1
- package/dist/components/br-header-logo.d.ts +1 -1
- package/dist/components/br-header-logo.js +1 -1
- package/dist/components/br-header.d.ts +1 -1
- package/dist/components/br-header.js +1 -1
- package/dist/components/br-icon.d.ts +1 -1
- package/dist/components/br-icon.js +1 -1
- package/dist/components/br-input.d.ts +1 -1
- package/dist/components/br-input.js +1 -1
- package/dist/components/br-item.d.ts +1 -1
- package/dist/components/br-item.js +1 -1
- package/dist/components/br-link.d.ts +1 -1
- package/dist/components/br-link.js +1 -1
- package/dist/components/br-list.d.ts +1 -1
- package/dist/components/br-list.js +1 -1
- package/dist/components/br-loading.d.ts +1 -1
- package/dist/components/br-loading.js +1 -1
- package/dist/components/br-magic-button.d.ts +1 -1
- package/dist/components/br-magic-button.js +1 -1
- package/dist/components/br-menu-group.d.ts +1 -1
- package/dist/components/br-menu-group.js +1 -1
- package/dist/components/br-menu-header.d.ts +1 -1
- package/dist/components/br-menu-header.js +1 -1
- package/dist/components/br-menu-info.d.ts +1 -1
- package/dist/components/br-menu-info.js +1 -1
- package/dist/components/br-menu-item.d.ts +1 -1
- package/dist/components/br-menu-item.js +1 -1
- package/dist/components/br-menu-link.d.ts +1 -1
- package/dist/components/br-menu-link.js +1 -1
- package/dist/components/br-menu-list.d.ts +1 -1
- package/dist/components/br-menu-list.js +1 -1
- package/dist/components/br-menu-logo.d.ts +1 -1
- package/dist/components/br-menu-logo.js +1 -1
- package/dist/components/br-menu-social.d.ts +1 -1
- package/dist/components/br-menu-social.js +1 -1
- package/dist/components/br-menu.d.ts +1 -1
- package/dist/components/br-menu.js +1 -1
- package/dist/components/br-message.d.ts +1 -1
- package/dist/components/br-message.js +1 -1
- package/dist/components/br-modal.d.ts +1 -1
- package/dist/components/br-modal.js +1 -1
- package/dist/components/br-notification-body.d.ts +1 -1
- package/dist/components/br-notification-body.js +1 -1
- package/dist/components/br-notification-header.d.ts +1 -1
- package/dist/components/br-notification-header.js +1 -1
- package/dist/components/br-notification-item.d.ts +1 -1
- package/dist/components/br-notification-item.js +1 -1
- package/dist/components/br-notification.d.ts +1 -1
- package/dist/components/br-notification.js +1 -1
- package/dist/components/br-pagination.d.ts +1 -1
- package/dist/components/br-pagination.js +1 -1
- package/dist/components/br-radio-group.d.ts +1 -1
- package/dist/components/br-radio-group.js +1 -1
- package/dist/components/br-radio.d.ts +1 -1
- package/dist/components/br-radio.js +1 -1
- package/dist/components/br-scrim.d.ts +1 -1
- package/dist/components/br-scrim.js +1 -1
- package/dist/components/br-select-input.d.ts +1 -1
- package/dist/components/br-select-input.js +1 -1
- package/dist/components/br-select-list.d.ts +1 -1
- package/dist/components/br-select-list.js +1 -1
- package/dist/components/br-select-option.d.ts +1 -1
- package/dist/components/br-select-option.js +1 -1
- package/dist/components/br-select.d.ts +1 -1
- package/dist/components/br-select.js +1 -1
- package/dist/components/br-sign-in.d.ts +1 -1
- package/dist/components/br-sign-in.js +1 -1
- package/dist/components/br-skip-link-item.d.ts +1 -1
- package/dist/components/br-skip-link-item.js +1 -1
- package/dist/components/br-skip-link.d.ts +1 -1
- package/dist/components/br-skip-link.js +1 -1
- package/dist/components/br-skiplink-item.d.ts +1 -1
- package/dist/components/br-skiplink-item.js +1 -1
- package/dist/components/br-slider.d.ts +1 -1
- package/dist/components/br-slider.js +1 -1
- package/dist/components/br-step-item.d.ts +1 -1
- package/dist/components/br-step-item.js +1 -1
- package/dist/components/br-step.d.ts +1 -1
- package/dist/components/br-step.js +1 -1
- package/dist/components/br-switch.d.ts +1 -1
- package/dist/components/br-switch.js +1 -1
- package/dist/components/br-tab-item.d.ts +1 -1
- package/dist/components/br-tab-item.js +1 -1
- package/dist/components/br-tab.d.ts +1 -1
- package/dist/components/br-tab.js +1 -1
- package/dist/components/br-table-body.d.ts +1 -1
- package/dist/components/br-table-body.js +1 -1
- package/dist/components/br-table-cell.d.ts +1 -1
- package/dist/components/br-table-cell.js +1 -1
- package/dist/components/br-table-header-cell.d.ts +1 -1
- package/dist/components/br-table-header-cell.js +1 -1
- package/dist/components/br-table-header.d.ts +1 -1
- package/dist/components/br-table-header.js +1 -1
- package/dist/components/br-table-row.d.ts +1 -1
- package/dist/components/br-table-row.js +1 -1
- package/dist/components/br-table.d.ts +1 -1
- package/dist/components/br-table.js +1 -1
- package/dist/components/br-tag.d.ts +1 -1
- package/dist/components/br-tag.js +1 -1
- package/dist/components/br-textarea.d.ts +1 -1
- package/dist/components/br-textarea.js +1 -1
- package/dist/components/br-time-picker.d.ts +1 -1
- package/dist/components/br-time-picker.js +1 -1
- package/dist/components/br-tooltip.d.ts +1 -1
- package/dist/components/br-tooltip.js +1 -1
- package/dist/components/br-upload.d.ts +1 -1
- package/dist/components/br-upload.js +1 -1
- package/dist/components/br-wizard-panel.d.ts +1 -1
- package/dist/components/br-wizard-panel.js +1 -1
- package/dist/components/br-wizard.d.ts +1 -1
- package/dist/components/br-wizard.js +1 -1
- package/dist/components/index.d.ts +89 -89
- package/dist/components/index.js +1 -1
- package/dist/components/p-B0o70fWP.js +5 -0
- package/dist/components/p-B96LROz9.js +5 -0
- package/dist/components/p-BDqef5-y.js +5 -0
- package/dist/components/p-BEJGB0Nd.js +5 -0
- package/dist/{webcomponents/p-Dmfk7eEe.js → components/p-BJZC_NuV.js} +1 -1
- package/dist/components/p-BJtdabsr.js +5 -0
- package/dist/components/p-BP5zMCxG.js +5 -0
- package/dist/components/p-BRaphxoP.js +5 -0
- package/dist/components/p-BUzBa9L1.js +5 -0
- package/dist/components/{p-DA5GS53D.js → p-BblZlUp2.js} +1 -1
- package/dist/components/p-Bc4nAk5i.js +5 -0
- package/dist/components/{p-C1yRmdso.js → p-BcqVlof7.js} +1 -1
- package/dist/components/p-BeJxz5TQ.js +5 -0
- package/dist/components/p-Bezou5CQ.js +5 -0
- package/dist/components/p-BrNh9KdF.js +5 -0
- package/dist/components/p-C5th2dxu.js +5 -0
- package/dist/components/p-CDtFCbKp.js +5 -0
- package/dist/components/p-CEdUp183.js +5 -0
- package/dist/components/p-CF7t0uxQ.js +5 -0
- package/dist/components/p-CFzHx6zV.js +5 -0
- package/dist/components/p-CG4em0S6.js +5 -0
- package/dist/components/p-CI4D3-pf.js +5 -0
- package/dist/components/p-CIrVPkVg.js +5 -0
- package/dist/components/p-CNwZRgyL.js +5 -0
- package/dist/components/p-CppRJiyC.js +5 -0
- package/dist/components/p-Cvk1Ggs5.js +5 -0
- package/dist/components/p-D12US39c.js +5 -0
- package/dist/components/p-D9Zo6FlV.js +5 -0
- package/dist/components/p-DGPJkJsj.js +5 -0
- package/dist/components/p-DSHbttu9.js +5 -0
- package/dist/components/p-DTGNra9m.js +5 -0
- package/dist/components/p-DWhzxlCx.js +5 -0
- package/dist/components/p-DX1wAFn4.js +5 -0
- package/dist/components/p-DiLI514I.js +5 -0
- package/dist/components/p-Dma14GVa.js +5 -0
- package/dist/components/p-DpRZ4B0d.js +5 -0
- package/dist/components/p-G35qEQZd.js +5 -0
- package/dist/components/p-Ho_IybzR.js +5 -0
- package/dist/components/p-SvVnvJdC.js +5 -0
- package/dist/components/p-emAWunES.js +5 -0
- package/dist/components/p-fB79wKCm.js +5 -0
- package/dist/components/p-k7p4QJ8a.js +5 -0
- package/dist/esm/br-avatar.entry.js +21 -14
- package/dist/esm/br-breadcrumb-item.entry.js +2 -2
- package/dist/esm/br-breadcrumb.entry.js +49 -22
- package/dist/esm/br-button_2.entry.js +72 -35
- package/dist/esm/br-card.entry.js +6 -5
- package/dist/esm/br-carousel-page.entry.js +3 -3
- package/dist/esm/br-carousel.entry.js +78 -22
- package/dist/esm/br-checkbox-group.entry.js +157 -27
- package/dist/esm/br-checkbox.entry.js +86 -16
- package/dist/esm/br-checkgroup.entry.js +5 -2
- package/dist/esm/br-collapse_2.entry.js +86 -27
- package/dist/esm/br-cookiebar-cookie.entry.js +4 -4
- package/dist/esm/br-cookiebar-group.entry.js +4 -4
- package/dist/esm/br-cookiebar-header.entry.js +4 -4
- package/dist/esm/br-cookiebar-link.entry.js +14 -6
- package/dist/esm/br-cookiebar-note-group.entry.js +3 -5
- package/dist/esm/br-cookiebar-note.entry.js +4 -4
- package/dist/esm/br-cookiebar.entry.js +39 -26
- package/dist/esm/br-crumb.entry.js +2 -2
- package/dist/esm/br-date-picker_3.entry.js +207 -49
- package/dist/esm/br-datetime-picker.entry.js +82 -494
- package/dist/esm/br-divider.entry.js +70 -17
- package/dist/esm/br-dropdown_2.entry.js +302 -129
- package/dist/esm/br-footer-category.entry.js +10 -6
- package/dist/esm/br-footer-item.entry.js +9 -4
- package/dist/esm/br-footer-legal.entry.js +4 -4
- package/dist/esm/br-footer-logo.entry.js +22 -10
- package/dist/esm/br-footer-social.entry.js +14 -6
- package/dist/esm/br-footer.entry.js +16 -7
- package/dist/esm/br-header-function.entry.js +28 -7
- package/dist/esm/br-header-link.entry.js +25 -4
- package/dist/esm/br-header-list.entry.js +7 -18
- package/dist/esm/br-header-logo.entry.js +18 -7
- package/dist/esm/br-header.entry.js +72 -17
- package/dist/esm/br-icon.entry.js +160 -23
- package/dist/esm/br-input.entry.js +132 -41
- package/dist/esm/br-item.entry.js +96 -48
- package/dist/esm/br-link.entry.js +20 -7
- package/dist/esm/br-loading.entry.js +100 -38
- package/dist/esm/br-magic-button.entry.js +26 -9
- package/dist/esm/br-menu-group.entry.js +14 -3
- package/dist/esm/br-menu-header.entry.js +4 -4
- package/dist/esm/br-menu-info.entry.js +4 -4
- package/dist/esm/br-menu-item.entry.js +27 -5
- package/dist/esm/br-menu-link.entry.js +14 -6
- package/dist/esm/br-menu-list.entry.js +23 -27
- package/dist/esm/br-menu-logo.entry.js +4 -4
- package/dist/esm/br-menu-social.entry.js +16 -6
- package/dist/esm/br-menu.entry.js +39 -58
- package/dist/esm/br-modal.entry.js +26 -40
- package/dist/esm/br-notification-body.entry.js +4 -4
- package/dist/esm/br-notification-header.entry.js +4 -4
- package/dist/esm/br-notification-item.entry.js +14 -8
- package/dist/esm/br-notification.entry.js +24 -9
- package/dist/esm/br-pagination.entry.js +119 -87
- package/dist/esm/br-radio-group.entry.js +107 -58
- package/dist/esm/br-radio.entry.js +62 -12
- package/dist/esm/br-scrim.entry.js +161 -67
- package/dist/esm/br-select-input_3.entry.js +283 -90
- package/dist/esm/br-sign-in.entry.js +34 -15
- package/dist/esm/br-skip-link-item.entry.js +39 -2
- package/dist/esm/br-skip-link.entry.js +50 -33
- package/dist/esm/br-skiplink-item.entry.js +22 -6
- package/dist/esm/br-slider.entry.js +519 -97
- package/dist/esm/br-step_2.entry.js +98 -44
- package/dist/esm/br-switch.entry.js +21 -12
- package/dist/esm/br-tab-item.entry.js +38 -14
- package/dist/esm/br-tab.entry.js +57 -44
- package/dist/esm/br-table-body.entry.js +3 -3
- package/dist/esm/br-table-cell.entry.js +30 -13
- package/dist/esm/br-table-header-cell.entry.js +23 -7
- package/dist/esm/br-table-header.entry.js +3 -3
- package/dist/esm/br-table-row.entry.js +17 -3
- package/dist/esm/br-table.entry.js +68 -22
- package/dist/esm/br-tag.entry.js +49 -31
- package/dist/esm/br-textarea.entry.js +118 -13
- package/dist/esm/br-tooltip.entry.js +88 -42
- package/dist/esm/br-upload.entry.js +84 -25
- package/dist/esm/br-wizard-panel.entry.js +16 -3
- package/dist/esm/br-wizard.entry.js +52 -28
- package/dist/esm/{datetime-picker-constants-Bfm58jO6.js → datetime-picker-constants-BtRPYRvA.js} +1 -1
- package/dist/esm/{isValid-DIUZX1qS.js → datetime-picker-props-validation-BeTcUTnE.js} +476 -5
- package/dist/esm/{event-DFN_so7I.js → event-CfuJQ1DY.js} +1 -1
- package/dist/esm/{floating-ui-BavFwMnx.js → floating-ui-CskvaxD5.js} +24 -1
- package/dist/esm/{floating-ui.dom-DIK54tTj.js → floating-ui.dom-D9Zo6FlV.js} +201 -114
- package/dist/esm/{focus-DxZJrIyL.js → focus-CNwZRgyL.js} +20 -1
- package/dist/esm/header-context-BEJGB0Nd.js +15 -0
- package/dist/esm/id-BeJxz5TQ.js +34 -0
- package/dist/esm/{index-Bo-2igoO.js → index-BQPOWxe5.js} +1 -1
- package/dist/esm/{index-C2RBydfd.js → index-Dcn7tRST.js} +68 -752
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/motion-DWhzxlCx.js +27 -0
- package/dist/esm/ownership-CDtFCbKp.js +111 -0
- package/dist/esm/prop-warning-BlGV-x0w.js +56 -0
- package/dist/esm/props-D07GjR4_.js +116 -0
- package/dist/esm/{swipe-Dmfk7eEe.js → swipe-BJZC_NuV.js} +11 -1
- package/dist/esm/webcomponents.js +4 -4
- package/dist/hydrate/index.js +7364 -2602
- package/dist/hydrate/index.mjs +7364 -2602
- package/dist/loader/index.d.ts +1 -1
- package/dist/types/components/avatar/avatar.d.ts +34 -4
- package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +14 -2
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +66 -5
- package/dist/types/components/breadcrumb/crumb/crumb.d.ts +13 -1
- package/dist/types/components/button/button.d.ts +45 -9
- package/dist/types/components/card/card.d.ts +31 -3
- package/dist/types/components/carousel/carousel-page/carousel-page.d.ts +10 -3
- package/dist/types/components/carousel/carousel.d.ts +46 -3
- package/dist/types/components/checkbox/checkbox.d.ts +59 -6
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +47 -5
- package/dist/types/components/checkgroup/checkgroup.d.ts +27 -5
- package/dist/types/components/collapse/collapse.d.ts +33 -4
- package/dist/types/components/cookiebar/cookiebar-cookie/cookiebar-cookie.d.ts +16 -3
- package/dist/types/components/cookiebar/cookiebar-group/cookiebar-group.d.ts +15 -6
- package/dist/types/components/cookiebar/cookiebar-header/cookiebar-header.d.ts +14 -8
- package/dist/types/components/cookiebar/cookiebar-link/cookiebar-link.d.ts +16 -5
- package/dist/types/components/cookiebar/cookiebar-note/cookiebar-note.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar-note-group/cookiebar-note-group.d.ts +13 -3
- package/dist/types/components/cookiebar/cookiebar.d.ts +35 -10
- package/dist/types/components/datetime-picker/date-picker/date-picker.d.ts +63 -7
- package/dist/types/components/datetime-picker/datetime-input/datetime-input.d.ts +51 -9
- package/dist/types/components/datetime-picker/datetime-picker-props-validation.d.ts +4 -2
- package/dist/types/components/datetime-picker/datetime-picker.d.ts +118 -12
- package/dist/types/components/datetime-picker/time-picker/time-picker.d.ts +38 -4
- package/dist/types/components/divider/divider.d.ts +45 -8
- package/dist/types/components/dropdown/dropdown.d.ts +41 -3
- package/dist/types/components/footer/footer-category/footer-category.d.ts +16 -1
- package/dist/types/components/footer/footer-item/footer-item.d.ts +17 -1
- package/dist/types/components/footer/footer-legal/footer-legal.d.ts +15 -1
- package/dist/types/components/footer/footer-logo/footer-logo.d.ts +21 -2
- package/dist/types/components/footer/footer-social/footer-social.d.ts +20 -3
- package/dist/types/components/footer/footer.d.ts +39 -3
- package/dist/types/components/header/header-context.d.ts +1 -0
- package/dist/types/components/header/header-function/header-function.d.ts +24 -2
- package/dist/types/components/header/header-link/header-link.d.ts +22 -1
- package/dist/types/components/header/header-list/header-list.d.ts +16 -8
- package/dist/types/components/header/header-logo/header-logo.d.ts +20 -1
- package/dist/types/components/header/header.d.ts +45 -7
- package/dist/types/components/icon/icon.d.ts +44 -13
- package/dist/types/components/input/input.d.ts +65 -15
- package/dist/types/components/item/item.d.ts +38 -5
- package/dist/types/components/link/link.d.ts +41 -9
- package/dist/types/components/list/list.d.ts +58 -8
- package/dist/types/components/loading/loading.d.ts +48 -8
- package/dist/types/components/magic-button/magic-button.d.ts +37 -3
- package/dist/types/components/menu/menu-group/menu-group.d.ts +19 -1
- package/dist/types/components/menu/menu-header/menu-header.d.ts +16 -1
- package/dist/types/components/menu/menu-info/menu-info.d.ts +14 -1
- package/dist/types/components/menu/menu-item/menu-item.d.ts +27 -3
- package/dist/types/components/menu/menu-link/menu-link.d.ts +17 -1
- package/dist/types/components/menu/menu-list/menu-list.d.ts +22 -4
- package/dist/types/components/menu/menu-logo/menu-logo.d.ts +14 -1
- package/dist/types/components/menu/menu-social/menu-social.d.ts +21 -2
- package/dist/types/components/menu/menu.d.ts +39 -6
- package/dist/types/components/menu/menu.utils.d.ts +2 -6
- package/dist/types/components/message/message.d.ts +38 -9
- package/dist/types/components/modal/modal.d.ts +34 -4
- package/dist/types/components/notification/notification-body/notification-body.d.ts +12 -3
- package/dist/types/components/notification/notification-header/notification-header.d.ts +12 -3
- package/dist/types/components/notification/notification-item/notification-item.d.ts +15 -3
- package/dist/types/components/notification/notification.d.ts +36 -5
- package/dist/types/components/pagination/pagination.d.ts +56 -20
- package/dist/types/components/radio/radio.d.ts +49 -4
- package/dist/types/components/radio-group/radio-group.d.ts +52 -10
- package/dist/types/components/scrim/scrim.d.ts +72 -11
- package/dist/types/components/scrim/scrim.utils.d.ts +2 -17
- package/dist/types/components/select/select-input/select-input.d.ts +22 -4
- package/dist/types/components/select/select-list/select-list.d.ts +51 -5
- package/dist/types/components/select/select-option/select-option.d.ts +31 -8
- package/dist/types/components/select/select.d.ts +152 -13
- package/dist/types/components/select/select.types.d.ts +5 -0
- package/dist/types/components/sign-in/sign-in.d.ts +30 -3
- package/dist/types/components/skip-link/skip-link-item/skip-link-item-alias.d.ts +15 -2
- package/dist/types/components/skip-link/skip-link-item/skip-link-item.d.ts +22 -1
- package/dist/types/components/skip-link/skip-link.d.ts +37 -3
- package/dist/types/components/slider/slider.d.ts +147 -21
- package/dist/types/components/slider/slider.types.d.ts +7 -2
- package/dist/types/components/slider/slider.utils.d.ts +27 -0
- package/dist/types/components/step/step-item/step-item.d.ts +15 -3
- package/dist/types/components/step/step.d.ts +47 -12
- package/dist/types/components/switch/switch.d.ts +39 -6
- package/dist/types/components/tab/tab-item/tab-item.d.ts +20 -4
- package/dist/types/components/tab/tab.d.ts +41 -11
- package/dist/types/components/table/table-body/table-body.d.ts +10 -6
- package/dist/types/components/table/table-cell/table-cell.d.ts +10 -6
- package/dist/types/components/table/table-header/table-header.d.ts +10 -6
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +18 -6
- package/dist/types/components/table/table-row/table-row.d.ts +11 -6
- package/dist/types/components/table/table.d.ts +49 -11
- package/dist/types/components/tag/tag.d.ts +55 -7
- package/dist/types/components/textarea/textarea.d.ts +75 -5
- package/dist/types/components/textarea/textarea.types.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.d.ts +46 -8
- package/dist/types/components/upload/upload.d.ts +78 -10
- package/dist/types/components/wizard/wizard-panel/wizard-panel.d.ts +20 -2
- package/dist/types/components/wizard/wizard.d.ts +44 -7
- package/dist/types/components.d.ts +5823 -1350
- package/dist/types/shared/utils/floating-ui.d.ts +4 -0
- package/dist/types/shared/utils/focus.d.ts +14 -0
- package/dist/types/shared/utils/getRandom.d.ts +1 -0
- package/dist/types/shared/utils/id.d.ts +1 -1
- package/dist/types/shared/utils/index.d.ts +6 -1
- package/dist/types/shared/utils/motion.d.ts +14 -0
- package/dist/types/shared/utils/ownership.d.ts +33 -0
- package/dist/types/shared/utils/prop-warning.d.ts +7 -0
- package/dist/types/shared/utils/props.d.ts +38 -0
- package/dist/types/shared/utils/swipe.d.ts +5 -0
- package/dist/types/shared/utils/virtual-scroll.d.ts +25 -0
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/dist/webcomponents/index.esm.js +1 -1
- package/dist/webcomponents/p-01baafce.entry.js +5 -0
- package/dist/webcomponents/p-01fb0754.entry.js +5 -0
- package/dist/webcomponents/p-030c02f8.entry.js +5 -0
- package/dist/webcomponents/p-03359c92.entry.js +5 -0
- package/dist/webcomponents/p-09770c98.entry.js +5 -0
- package/dist/webcomponents/p-0b9714f1.entry.js +5 -0
- package/dist/webcomponents/p-12aa36a8.entry.js +5 -0
- package/dist/webcomponents/p-130b6e06.entry.js +5 -0
- package/dist/webcomponents/p-144f8c8d.entry.js +5 -0
- package/dist/webcomponents/p-14fe22e2.entry.js +5 -0
- package/dist/webcomponents/p-1ff9210a.entry.js +5 -0
- package/dist/webcomponents/p-2605cdc3.entry.js +5 -0
- package/dist/webcomponents/p-27afaec9.entry.js +5 -0
- package/dist/webcomponents/p-2a50e42d.entry.js +5 -0
- package/dist/webcomponents/p-327f034f.entry.js +5 -0
- package/dist/webcomponents/p-342650b8.entry.js +5 -0
- package/dist/webcomponents/p-38f6a78b.entry.js +5 -0
- package/dist/webcomponents/p-3920fe3a.entry.js +5 -0
- package/dist/webcomponents/p-3ae97345.entry.js +5 -0
- package/dist/webcomponents/p-3cce767c.entry.js +5 -0
- package/dist/webcomponents/p-3df6c5d2.entry.js +5 -0
- package/dist/webcomponents/p-3e287899.entry.js +5 -0
- package/dist/webcomponents/p-3e5580ba.entry.js +5 -0
- package/dist/webcomponents/p-403637dd.entry.js +5 -0
- package/dist/webcomponents/p-435c8ef2.entry.js +5 -0
- package/dist/webcomponents/p-59da5b55.entry.js +5 -0
- package/dist/webcomponents/p-5dd4314c.entry.js +5 -0
- package/dist/webcomponents/p-646af6a5.entry.js +5 -0
- package/dist/webcomponents/p-670e8fec.entry.js +5 -0
- package/dist/webcomponents/p-68046544.entry.js +5 -0
- package/dist/webcomponents/p-68ec76b8.entry.js +5 -0
- package/dist/webcomponents/p-6c0ea20c.entry.js +5 -0
- package/dist/webcomponents/p-6c2fe5e4.entry.js +5 -0
- package/dist/webcomponents/p-707df9b9.entry.js +5 -0
- package/dist/webcomponents/p-72b839fe.entry.js +5 -0
- package/dist/webcomponents/p-73dcc05b.entry.js +5 -0
- package/dist/webcomponents/p-7acf20d3.entry.js +5 -0
- package/dist/webcomponents/p-7b01bddb.entry.js +5 -0
- package/dist/webcomponents/p-7cd38850.entry.js +5 -0
- package/dist/webcomponents/p-82454383.entry.js +5 -0
- package/dist/webcomponents/p-91e959a8.entry.js +5 -0
- package/dist/webcomponents/p-964c01e6.entry.js +5 -0
- package/dist/webcomponents/p-9858e42a.entry.js +5 -0
- package/dist/webcomponents/p-9c4200b0.entry.js +5 -0
- package/dist/webcomponents/p-9d9c87b1.entry.js +5 -0
- package/dist/webcomponents/p-B0PbhaxL.js +5 -0
- package/dist/webcomponents/p-BEJGB0Nd.js +5 -0
- package/dist/{components/p-Dmfk7eEe.js → webcomponents/p-BJZC_NuV.js} +1 -1
- package/dist/webcomponents/p-BJtdabsr.js +5 -0
- package/dist/webcomponents/p-BeJxz5TQ.js +5 -0
- package/dist/webcomponents/p-BlGV-x0w.js +5 -0
- package/dist/webcomponents/{p-Bfm58jO6.js → p-BtRPYRvA.js} +1 -1
- package/dist/webcomponents/p-CDtFCbKp.js +5 -0
- package/dist/webcomponents/p-CNwZRgyL.js +5 -0
- package/dist/webcomponents/{p-DFN_so7I.js → p-CfuJQ1DY.js} +1 -1
- package/dist/webcomponents/p-D9Zo6FlV.js +5 -0
- package/dist/webcomponents/{p-BhMVJQ4-.js → p-DV-iW9Aj.js} +1 -1
- package/dist/webcomponents/p-DWhzxlCx.js +5 -0
- package/dist/webcomponents/p-Dcn7tRST.js +7 -0
- package/dist/webcomponents/p-EbtQZm5s.js +5 -0
- package/dist/webcomponents/p-a0931550.entry.js +5 -0
- package/dist/webcomponents/p-a212fd85.entry.js +5 -0
- package/dist/webcomponents/p-a2e75143.entry.js +5 -0
- package/dist/webcomponents/p-a3bb98c9.entry.js +5 -0
- package/dist/webcomponents/p-a8b5dba0.entry.js +5 -0
- package/dist/webcomponents/p-aa909443.entry.js +5 -0
- package/dist/webcomponents/p-abaf2365.entry.js +5 -0
- package/dist/webcomponents/p-aeb16645.entry.js +5 -0
- package/dist/webcomponents/p-b287c384.entry.js +5 -0
- package/dist/webcomponents/p-b506b0a1.entry.js +5 -0
- package/dist/webcomponents/p-b520c08c.entry.js +5 -0
- package/dist/webcomponents/p-b94c3f84.entry.js +5 -0
- package/dist/webcomponents/p-bda62f90.entry.js +5 -0
- package/dist/webcomponents/p-c201ae16.entry.js +5 -0
- package/dist/webcomponents/p-c7e899a1.entry.js +5 -0
- package/dist/webcomponents/p-c8b7bbab.entry.js +5 -0
- package/dist/webcomponents/p-cbf3e251.entry.js +5 -0
- package/dist/webcomponents/{p-7f7506f0.entry.js → p-cff24492.entry.js} +1 -1
- package/dist/webcomponents/p-d35cf5b4.entry.js +5 -0
- package/dist/webcomponents/p-d45ffe9c.entry.js +5 -0
- package/dist/webcomponents/p-d719a4af.entry.js +5 -0
- package/dist/webcomponents/p-d826c052.entry.js +5 -0
- package/dist/webcomponents/p-da21a60d.entry.js +5 -0
- package/dist/webcomponents/p-de0c7f26.entry.js +5 -0
- package/dist/webcomponents/p-e20188c0.entry.js +5 -0
- package/dist/webcomponents/p-e27882e1.entry.js +5 -0
- package/dist/webcomponents/p-e3de5bb3.entry.js +5 -0
- package/dist/webcomponents/p-e624ff04.entry.js +5 -0
- package/dist/webcomponents/p-ed5af0e4.entry.js +5 -0
- package/dist/webcomponents/p-edc6da0e.entry.js +5 -0
- package/dist/webcomponents/p-f24fcf3d.entry.js +5 -0
- package/dist/webcomponents/p-f52ef0dc.entry.js +5 -0
- package/dist/webcomponents/{p-12286e73.entry.js → p-f558d7b9.entry.js} +1 -1
- package/dist/webcomponents/p-fcab1428.entry.js +5 -0
- package/dist/webcomponents/p-fe1729a7.entry.js +5 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +18 -3
- package/dist/cjs/clamp-Co_hWptd.js +0 -25
- package/dist/cjs/id-CjRFMzf6.js +0 -20
- package/dist/cjs/props-CScmBvKd.js +0 -24
- package/dist/collection/pages/components/cookiebar/index.js +0 -26
- package/dist/collection/pages/components/link/index.js +0 -29
- package/dist/collection/pages/components/pagination/index.js +0 -12
- package/dist/collection/pages/components/slider/index.js +0 -18
- package/dist/components/p-6OdfnwnK.js +0 -5
- package/dist/components/p-AmOh1cks.js +0 -5
- package/dist/components/p-B4ylcipx.js +0 -5
- package/dist/components/p-BCv4PCOx.js +0 -5
- package/dist/components/p-BLOyd_iF.js +0 -5
- package/dist/components/p-BODem6tr.js +0 -5
- package/dist/components/p-Bb-nLtTG.js +0 -5
- package/dist/components/p-BeFK-82z.js +0 -5
- package/dist/components/p-BkS6ujyf.js +0 -5
- package/dist/components/p-BloE-KAN.js +0 -5
- package/dist/components/p-BoSc_kmY.js +0 -5
- package/dist/components/p-BrH3r7eL.js +0 -5
- package/dist/components/p-BsZ0Ny88.js +0 -5
- package/dist/components/p-ByHVf7zy.js +0 -5
- package/dist/components/p-CdF-gmk1.js +0 -5
- package/dist/components/p-CfyjGPGI.js +0 -5
- package/dist/components/p-CjF7pBVQ.js +0 -5
- package/dist/components/p-ClqtllDH.js +0 -5
- package/dist/components/p-CqW2Yh34.js +0 -5
- package/dist/components/p-DIK54tTj.js +0 -5
- package/dist/components/p-DLE5ioJN.js +0 -5
- package/dist/components/p-DQRSHR-D.js +0 -5
- package/dist/components/p-DRVMm1Py.js +0 -5
- package/dist/components/p-DRnCpVrL.js +0 -5
- package/dist/components/p-DVdlaP7z.js +0 -5
- package/dist/components/p-DeeF6ok0.js +0 -5
- package/dist/components/p-Dim2PnUm.js +0 -5
- package/dist/components/p-Dk8rfQjL.js +0 -5
- package/dist/components/p-DkmEpoef.js +0 -5
- package/dist/components/p-DwfAYaEv.js +0 -5
- package/dist/components/p-DxZJrIyL.js +0 -5
- package/dist/components/p-P2Z_MmH6.js +0 -5
- package/dist/components/p-Xa0Mj4pP.js +0 -5
- package/dist/components/p-_vsQvdxD.js +0 -5
- package/dist/components/p-aNjo4Alx.js +0 -5
- package/dist/components/p-gvnfuTjd.js +0 -5
- package/dist/components/p-rB-s1M3Q.js +0 -5
- package/dist/esm/clamp-gvnfuTjd.js +0 -23
- package/dist/esm/id-BkS6ujyf.js +0 -18
- package/dist/esm/props-DRVMm1Py.js +0 -22
- package/dist/webcomponents/p-00cc31f9.entry.js +0 -5
- package/dist/webcomponents/p-026475bd.entry.js +0 -5
- package/dist/webcomponents/p-0291ab28.entry.js +0 -5
- package/dist/webcomponents/p-03e5a7dc.entry.js +0 -5
- package/dist/webcomponents/p-060df8ee.entry.js +0 -5
- package/dist/webcomponents/p-09fce2a5.entry.js +0 -5
- package/dist/webcomponents/p-1002bbff.entry.js +0 -5
- package/dist/webcomponents/p-1124de33.entry.js +0 -5
- package/dist/webcomponents/p-12e97d80.entry.js +0 -5
- package/dist/webcomponents/p-1580beee.entry.js +0 -5
- package/dist/webcomponents/p-1b19b191.entry.js +0 -5
- package/dist/webcomponents/p-2baf353b.entry.js +0 -5
- package/dist/webcomponents/p-2eb9a42c.entry.js +0 -5
- package/dist/webcomponents/p-30c82805.entry.js +0 -5
- package/dist/webcomponents/p-31bd1c74.entry.js +0 -5
- package/dist/webcomponents/p-31db2313.entry.js +0 -5
- package/dist/webcomponents/p-33a3dc63.entry.js +0 -5
- package/dist/webcomponents/p-3889c51f.entry.js +0 -5
- package/dist/webcomponents/p-3f2c179a.entry.js +0 -5
- package/dist/webcomponents/p-470eb770.entry.js +0 -5
- package/dist/webcomponents/p-4ae387ae.entry.js +0 -5
- package/dist/webcomponents/p-4e65df84.entry.js +0 -5
- package/dist/webcomponents/p-51a62876.entry.js +0 -5
- package/dist/webcomponents/p-5860b96b.entry.js +0 -5
- package/dist/webcomponents/p-5b9c01e9.entry.js +0 -5
- package/dist/webcomponents/p-5df2f1dd.entry.js +0 -5
- package/dist/webcomponents/p-5f3f7b3f.entry.js +0 -5
- package/dist/webcomponents/p-5f6afb79.entry.js +0 -5
- package/dist/webcomponents/p-5f9c28a7.entry.js +0 -5
- package/dist/webcomponents/p-62511921.entry.js +0 -5
- package/dist/webcomponents/p-63b52947.entry.js +0 -5
- package/dist/webcomponents/p-67a8e0b7.entry.js +0 -5
- package/dist/webcomponents/p-6OdfnwnK.js +0 -5
- package/dist/webcomponents/p-7b2a5fec.entry.js +0 -5
- package/dist/webcomponents/p-7f95e2f5.entry.js +0 -5
- package/dist/webcomponents/p-8128833c.entry.js +0 -5
- package/dist/webcomponents/p-8200ccb1.entry.js +0 -5
- package/dist/webcomponents/p-82b100fd.entry.js +0 -5
- package/dist/webcomponents/p-8806df15.entry.js +0 -5
- package/dist/webcomponents/p-881eb81a.entry.js +0 -5
- package/dist/webcomponents/p-8bd3d541.entry.js +0 -5
- package/dist/webcomponents/p-90648343.entry.js +0 -5
- package/dist/webcomponents/p-9100a5f7.entry.js +0 -5
- package/dist/webcomponents/p-91313d77.entry.js +0 -5
- package/dist/webcomponents/p-946b2ac0.entry.js +0 -5
- package/dist/webcomponents/p-98e7ccb9.entry.js +0 -5
- package/dist/webcomponents/p-99f2bddb.entry.js +0 -5
- package/dist/webcomponents/p-9adbdb0a.entry.js +0 -5
- package/dist/webcomponents/p-9c260049.entry.js +0 -5
- package/dist/webcomponents/p-9ed51017.entry.js +0 -5
- package/dist/webcomponents/p-BkS6ujyf.js +0 -5
- package/dist/webcomponents/p-C2RBydfd.js +0 -6
- package/dist/webcomponents/p-CO5cOQQU.js +0 -5
- package/dist/webcomponents/p-DIK54tTj.js +0 -5
- package/dist/webcomponents/p-DRVMm1Py.js +0 -5
- package/dist/webcomponents/p-DxZJrIyL.js +0 -5
- package/dist/webcomponents/p-a0b299dd.entry.js +0 -5
- package/dist/webcomponents/p-a2c5fad0.entry.js +0 -5
- package/dist/webcomponents/p-a3e044d7.entry.js +0 -5
- package/dist/webcomponents/p-a9f23aa7.entry.js +0 -5
- package/dist/webcomponents/p-a9f2fcbc.entry.js +0 -5
- package/dist/webcomponents/p-b6c68136.entry.js +0 -5
- package/dist/webcomponents/p-b6e9b8d1.entry.js +0 -5
- package/dist/webcomponents/p-c333eac6.entry.js +0 -5
- package/dist/webcomponents/p-c3732fd6.entry.js +0 -5
- package/dist/webcomponents/p-c458ed0e.entry.js +0 -5
- package/dist/webcomponents/p-c91000ff.entry.js +0 -5
- package/dist/webcomponents/p-c9c6ab2d.entry.js +0 -5
- package/dist/webcomponents/p-cd2550d6.entry.js +0 -5
- package/dist/webcomponents/p-cf42613f.entry.js +0 -5
- package/dist/webcomponents/p-d0b0b420.entry.js +0 -5
- package/dist/webcomponents/p-d1b32ee8.entry.js +0 -5
- package/dist/webcomponents/p-db65b083.entry.js +0 -5
- package/dist/webcomponents/p-de7c101d.entry.js +0 -5
- package/dist/webcomponents/p-dfb77dd0.entry.js +0 -5
- package/dist/webcomponents/p-e258da78.entry.js +0 -5
- package/dist/webcomponents/p-e31ddd42.entry.js +0 -5
- package/dist/webcomponents/p-e8d82227.entry.js +0 -5
- package/dist/webcomponents/p-e988cf1d.entry.js +0 -5
- package/dist/webcomponents/p-ed9122a1.entry.js +0 -5
- package/dist/webcomponents/p-ee347d2e.entry.js +0 -5
- package/dist/webcomponents/p-f1c01d52.entry.js +0 -5
- package/dist/webcomponents/p-f5baf8be.entry.js +0 -5
- package/dist/webcomponents/p-fb593739.entry.js +0 -5
- package/dist/webcomponents/p-fff9acd4.entry.js +0 -5
- package/dist/webcomponents/p-gvnfuTjd.js +0 -5
|
@@ -4,15 +4,36 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h, } from "@stencil/core";
|
|
6
6
|
import { generateUniqueId } from "../../shared/utils/id";
|
|
7
|
+
import { getScrollBehavior } from "../../shared/utils/motion";
|
|
7
8
|
import { supportsNativeModalDialog, syncNativeModalDialog } from "../../shared/utils/native-dialog";
|
|
9
|
+
import { resolveAllowedPropValue, resolveIntegerPropValue, resolveNumberPropValue } from "../../shared/utils/props";
|
|
8
10
|
import { createRafBatcher } from "../../shared/utils/raf-batcher";
|
|
9
11
|
import { lockBodyScroll, unlockBodyScroll } from "../../shared/utils/scrollLock";
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* O componente `br-scrim` é a camada de sobreposição visual (backdrop / máscara) do GovBR-DS, utilizada para escurecer temporariamente a interface e direcionar a atenção da pessoa usuária para um ponto de interesse ou diálogo.
|
|
12
14
|
*
|
|
13
|
-
* Para
|
|
15
|
+
* ### Para que serve
|
|
14
16
|
*
|
|
15
|
-
*
|
|
17
|
+
* - **Destaque visual exclusivo (Spotlight):** Cria um foco exclusivo sobre determinado elemento da página (como um tour guiado ou tutorial introdutório).
|
|
18
|
+
* - **Bloqueio de interação com o fundo:** Impede cliques acidentais e rolagem na interface subjacente enquanto uma superfície flutuante estiver ativa.
|
|
19
|
+
* - **Comportamento acessível de fechamento:** Suporta fechamento ao clicar na máscara ou ao pressionar a tecla Escape, com controle de foco previsível.
|
|
20
|
+
*
|
|
21
|
+
* ### Quando utilizar
|
|
22
|
+
*
|
|
23
|
+
* - **Utilize quando:**
|
|
24
|
+
* - For necessário criar máscaras de fundo personalizadas para fluxos de onboarding, tutoriais ou menus temporários imersivos.
|
|
25
|
+
* - **Evite e prefira outro componente quando:**
|
|
26
|
+
* - Estiver implementando uma caixa de diálogo padrão com cabeçalho, corpo e rodapé (prefira `br-modal`, que já inclui seu próprio scrim interno).
|
|
27
|
+
*
|
|
28
|
+
* ### Estrutura e Slots
|
|
29
|
+
*
|
|
30
|
+
* O `br-scrim` atua como superfície de sobreposição:
|
|
31
|
+
* - `default`: Slot para inserção do elemento que receberá o destaque em primeiro plano sobre a máscara.
|
|
32
|
+
*
|
|
33
|
+
* 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/scrim?tab=designer).
|
|
34
|
+
*
|
|
35
|
+
|
|
36
|
+
* @category Feedback, Sobreposições
|
|
16
37
|
* @status stable
|
|
17
38
|
* @slot default - Slot para o conteúdo principal a ser exibido sobre o fundo escurecido do scrim.
|
|
18
39
|
* @slot activator - Slot para o elemento ativador do scrim, com prioridade sobre a propriedade activator.
|
|
@@ -37,7 +58,7 @@ export class Scrim {
|
|
|
37
58
|
*/
|
|
38
59
|
this.disableCloseOnClick = false;
|
|
39
60
|
/**
|
|
40
|
-
* Define o valor de z-index do scrim
|
|
61
|
+
* Define o valor de z-index do scrim. Deve ser um inteiro entre 0 e Number.MAX_SAFE_INTEGER; valores inválidos usam 0.
|
|
41
62
|
*/
|
|
42
63
|
this.zIndex = null;
|
|
43
64
|
/**
|
|
@@ -53,7 +74,7 @@ export class Scrim {
|
|
|
53
74
|
*/
|
|
54
75
|
this.bgColor = null;
|
|
55
76
|
/**
|
|
56
|
-
* Define a opacidade personalizada do scrim
|
|
77
|
+
* Define a opacidade personalizada do scrim. O valor é limitado ao intervalo `0`–`1`; entradas inválidas usam `0.4`.
|
|
57
78
|
*/
|
|
58
79
|
this.customOpacity = null;
|
|
59
80
|
/**
|
|
@@ -67,12 +88,18 @@ export class Scrim {
|
|
|
67
88
|
*/
|
|
68
89
|
this.displayMode = 'fullscreen';
|
|
69
90
|
/**
|
|
70
|
-
* Determina quanto de rolagem (em pixels) é necessário para acionar a ação de fechamento automático do scrim.
|
|
91
|
+
* Determina quanto de rolagem (em pixels) é necessário para acionar a ação de fechamento automático do scrim. Valores negativos usam `0`.
|
|
71
92
|
*/
|
|
72
93
|
this.scrollThreshold = 50;
|
|
73
94
|
/**
|
|
74
95
|
* Define o seletor para o elemento activator.
|
|
75
96
|
* Nota: O slot 'activator' tem prioridade sobre esta propriedade.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```html
|
|
100
|
+
* <button id="abrir-ajuda" type="button">Abrir ajuda</button>
|
|
101
|
+
* <br-scrim activator="#abrir-ajuda">Conteúdo</br-scrim>
|
|
102
|
+
* ```
|
|
76
103
|
*/
|
|
77
104
|
this.activator = null;
|
|
78
105
|
/**
|
|
@@ -126,15 +153,34 @@ export class Scrim {
|
|
|
126
153
|
* - **largura** para âncoras `left` e `right`
|
|
127
154
|
*
|
|
128
155
|
* Só tem efeito quando `variant="legibility"` está definido.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```html
|
|
159
|
+
* <br-scrim variant="legibility" legibility-anchor="bottom" legibility-size="40%">
|
|
160
|
+
* Texto sobre a imagem
|
|
161
|
+
* </br-scrim>
|
|
162
|
+
* ```
|
|
129
163
|
*/
|
|
130
164
|
this.legibilitySize = null;
|
|
165
|
+
/**
|
|
166
|
+
* Seletor CSS do elemento que deve receber o posicionamento da variante
|
|
167
|
+
* `legibility`. Quando não informado (padrão), o alvo é o elemento pai
|
|
168
|
+
* direto do `<br-scrim>`.
|
|
169
|
+
*/
|
|
170
|
+
this.legibilityTargetId = null;
|
|
131
171
|
/**
|
|
132
172
|
* Ativa o modo de scrim vazado (variante 'spotlight'), criando uma área de fresta no overlay
|
|
133
173
|
* que destaca o elemento referenciado pelo seletor CSS fornecido.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```html
|
|
177
|
+
* <button id="acao-principal" type="button">Continuar</button>
|
|
178
|
+
* <br-scrim variant="spotlight" spotlight-target-id="#acao-principal"></br-scrim>
|
|
179
|
+
* ```
|
|
134
180
|
*/
|
|
135
181
|
this.spotlightTargetId = null;
|
|
136
182
|
/**
|
|
137
|
-
* Espaçamento interno (em pixels) ao redor da área de fresta no scrim vazado.
|
|
183
|
+
* Espaçamento interno (em pixels) ao redor da área de fresta no scrim vazado. Valores negativos usam `0`.
|
|
138
184
|
*/
|
|
139
185
|
this.spotlightPadding = 8;
|
|
140
186
|
/**
|
|
@@ -225,10 +271,10 @@ export class Scrim {
|
|
|
225
271
|
this.toggle();
|
|
226
272
|
};
|
|
227
273
|
this.handleScrollClose = () => {
|
|
228
|
-
if (this.
|
|
274
|
+
if (this.effectiveScrollStrategy === 'close' && this.isActive) {
|
|
229
275
|
const currentScroll = this.getScrollPosition();
|
|
230
276
|
const reference = this.scrollOrigin ?? this.lastScrollTop;
|
|
231
|
-
if (Math.abs(currentScroll - reference) > this.
|
|
277
|
+
if (Math.abs(currentScroll - reference) > this.effectiveScrollThreshold) {
|
|
232
278
|
this.scrollOrigin = null;
|
|
233
279
|
// Não fecha se tiver modal filha com autoClose=false (padrão)
|
|
234
280
|
if (this.hasModalWithAutoClose()) {
|
|
@@ -320,7 +366,7 @@ export class Scrim {
|
|
|
320
366
|
if (this.hasModalWithAutoClose()) {
|
|
321
367
|
return;
|
|
322
368
|
}
|
|
323
|
-
if (this.
|
|
369
|
+
if (this.effectiveContentLayout === 'none') {
|
|
324
370
|
this.brScrimClose.emit();
|
|
325
371
|
return;
|
|
326
372
|
}
|
|
@@ -348,14 +394,14 @@ export class Scrim {
|
|
|
348
394
|
}
|
|
349
395
|
};
|
|
350
396
|
/**
|
|
351
|
-
* Recalcula as coordenadas do
|
|
397
|
+
* Recalcula as coordenadas do alvo via getBoundingClientRect e aplica
|
|
352
398
|
* como estilos inline no div interno, sobrepondo o `inset: 0` do mode-fullscreen.
|
|
353
399
|
*/
|
|
354
400
|
this.computeLegibilityRect = () => {
|
|
355
|
-
const
|
|
356
|
-
if (
|
|
401
|
+
const target = this.resolveLegibilityTarget();
|
|
402
|
+
if (target === null || this.scrimDivRef === null)
|
|
357
403
|
return;
|
|
358
|
-
const rect =
|
|
404
|
+
const rect = target.getBoundingClientRect();
|
|
359
405
|
this.scrimDivRef.style.setProperty('position', 'fixed');
|
|
360
406
|
this.scrimDivRef.style.setProperty('inset', 'unset');
|
|
361
407
|
this.scrimDivRef.style.setProperty('top', '0');
|
|
@@ -372,6 +418,40 @@ export class Scrim {
|
|
|
372
418
|
get isActive() {
|
|
373
419
|
return this.isLegibilityVariant || this.isOpen;
|
|
374
420
|
}
|
|
421
|
+
get effectiveCustomOpacity() {
|
|
422
|
+
return resolveNumberPropValue(this.el, 'customOpacity', this.customOpacity, 0, 1, 0.4, {
|
|
423
|
+
allowNull: true,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
get effectiveScrollThreshold() {
|
|
427
|
+
return resolveNumberPropValue(this.el, 'scrollThreshold', this.scrollThreshold, 0, Number.MAX_SAFE_INTEGER, 50);
|
|
428
|
+
}
|
|
429
|
+
get effectiveSpotlightPadding() {
|
|
430
|
+
return resolveNumberPropValue(this.el, 'spotlightPadding', this.spotlightPadding, 0, Number.MAX_SAFE_INTEGER, 8);
|
|
431
|
+
}
|
|
432
|
+
get effectiveZIndex() {
|
|
433
|
+
return resolveIntegerPropValue(this.el, 'zIndex', this.zIndex, 0, Number.MAX_SAFE_INTEGER, 0, {
|
|
434
|
+
allowNull: true,
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
get effectivePositionContent() {
|
|
438
|
+
return resolveAllowedPropValue(this.el, 'positionContent', this.positionContent, ['top', 'center', 'right', 'left', 'bottom'], 'center');
|
|
439
|
+
}
|
|
440
|
+
get effectiveScrollStrategy() {
|
|
441
|
+
return resolveAllowedPropValue(this.el, 'scrollStrategy', this.scrollStrategy, ['block', 'close'], 'block');
|
|
442
|
+
}
|
|
443
|
+
get effectiveVariant() {
|
|
444
|
+
return resolveAllowedPropValue(this.el, 'variant', this.variant, ['focus', 'spotlight', 'legibility'], 'focus');
|
|
445
|
+
}
|
|
446
|
+
get effectiveLegibilityAnchor() {
|
|
447
|
+
return resolveAllowedPropValue(this.el, 'legibilityAnchor', this.legibilityAnchor, ['top', 'bottom', 'left', 'right', 'center'], 'bottom');
|
|
448
|
+
}
|
|
449
|
+
get effectiveSpotlightShape() {
|
|
450
|
+
return resolveAllowedPropValue(this.el, 'spotlightShape', this.spotlightShape, ['rect', 'rounded', 'circle'], 'rect');
|
|
451
|
+
}
|
|
452
|
+
get effectiveContentLayout() {
|
|
453
|
+
return resolveAllowedPropValue(this.el, 'contentLayout', this.contentLayout, ['default', 'none'], 'default');
|
|
454
|
+
}
|
|
375
455
|
// ======================================================================
|
|
376
456
|
// LIFECYCLE HOOKS E WATCHERS
|
|
377
457
|
// ======================================================================
|
|
@@ -393,7 +473,7 @@ export class Scrim {
|
|
|
393
473
|
this.brScrimOpen.emit();
|
|
394
474
|
return;
|
|
395
475
|
}
|
|
396
|
-
if (newValue && this.
|
|
476
|
+
if (newValue && this.effectiveScrollStrategy === 'close') {
|
|
397
477
|
const currentScroll = window.scrollY;
|
|
398
478
|
this.lastScrollTop = currentScroll;
|
|
399
479
|
this.scrollOrigin = currentScroll;
|
|
@@ -402,7 +482,7 @@ export class Scrim {
|
|
|
402
482
|
if (this.isActive) {
|
|
403
483
|
this.previouslyFocusedElement = document.activeElement;
|
|
404
484
|
this.applyScrollStrategy();
|
|
405
|
-
if (this.
|
|
485
|
+
if (this.effectiveContentLayout !== 'none' && !this.usesNativeTopLayer) {
|
|
406
486
|
this.addGlobalEventInterception();
|
|
407
487
|
const hasModalChild = this.findModalChild() !== null;
|
|
408
488
|
if (hasModalChild) {
|
|
@@ -421,7 +501,7 @@ export class Scrim {
|
|
|
421
501
|
this.closeModalChild();
|
|
422
502
|
this.cleanupSpotlight();
|
|
423
503
|
this.resetScrolling();
|
|
424
|
-
if (this.
|
|
504
|
+
if (this.effectiveContentLayout !== 'none') {
|
|
425
505
|
this.removeGlobalEventInterception();
|
|
426
506
|
this.restoreFocus();
|
|
427
507
|
this.brScrimClose.emit();
|
|
@@ -431,16 +511,16 @@ export class Scrim {
|
|
|
431
511
|
updateStyles() {
|
|
432
512
|
// Aplica defaults da variante antes dos overrides manuais
|
|
433
513
|
this.applyVariantDefaults();
|
|
434
|
-
if (this.
|
|
435
|
-
this.el.style.zIndex = `${this.
|
|
436
|
-
this.el.style.setProperty('--z-index-layer-4', `${this.
|
|
514
|
+
if (this.effectiveZIndex !== null && this.effectiveZIndex !== undefined) {
|
|
515
|
+
this.el.style.zIndex = `${this.effectiveZIndex}`;
|
|
516
|
+
this.el.style.setProperty('--z-index-layer-4', `${this.effectiveZIndex}`);
|
|
437
517
|
}
|
|
438
518
|
// bgColor e customOpacity sobrepõem os valores da variante
|
|
439
519
|
if (this.bgColor !== null) {
|
|
440
520
|
this.el.style.setProperty('--surface-overlay-scrim', this.bgColor);
|
|
441
521
|
}
|
|
442
|
-
if (this.
|
|
443
|
-
this.el.style.setProperty('--br-scrim-opacity', `${this.
|
|
522
|
+
if (this.effectiveCustomOpacity !== null) {
|
|
523
|
+
this.el.style.setProperty('--br-scrim-opacity', `${this.effectiveCustomOpacity}`);
|
|
444
524
|
}
|
|
445
525
|
}
|
|
446
526
|
handleVariantChange() {
|
|
@@ -452,7 +532,7 @@ export class Scrim {
|
|
|
452
532
|
this.cleanupSpotlight();
|
|
453
533
|
this.setupLegibility();
|
|
454
534
|
}
|
|
455
|
-
else if (this.
|
|
535
|
+
else if (this.effectiveVariant === 'spotlight') {
|
|
456
536
|
this.cleanupLegibility();
|
|
457
537
|
if (!this.usesNativeTopLayer)
|
|
458
538
|
this.addGlobalEventInterception();
|
|
@@ -468,7 +548,7 @@ export class Scrim {
|
|
|
468
548
|
}
|
|
469
549
|
handleLayerModeChange() {
|
|
470
550
|
this.removeGlobalEventInterception();
|
|
471
|
-
if (this.isActive && this.
|
|
551
|
+
if (this.isActive && this.effectiveContentLayout !== 'none' && !this.usesNativeTopLayer) {
|
|
472
552
|
this.addGlobalEventInterception();
|
|
473
553
|
}
|
|
474
554
|
}
|
|
@@ -477,12 +557,17 @@ export class Scrim {
|
|
|
477
557
|
this.setupSpotlight();
|
|
478
558
|
}
|
|
479
559
|
}
|
|
560
|
+
handleLegibilityTargetChange() {
|
|
561
|
+
if (this.isActive && this.isLegibilityVariant) {
|
|
562
|
+
this.setupLegibility();
|
|
563
|
+
}
|
|
564
|
+
}
|
|
480
565
|
handleActivatorChange() {
|
|
481
566
|
this.removeActivatorClickListener();
|
|
482
567
|
this.setupActivator();
|
|
483
568
|
}
|
|
484
569
|
connectedCallback() {
|
|
485
|
-
if (this.
|
|
570
|
+
if (this.effectiveScrollStrategy === 'close') {
|
|
486
571
|
const currentScroll = window.scrollY;
|
|
487
572
|
this.lastScrollTop = currentScroll;
|
|
488
573
|
this.scrollOrigin = currentScroll;
|
|
@@ -500,7 +585,7 @@ export class Scrim {
|
|
|
500
585
|
this.restoreFocusTimeoutId = null;
|
|
501
586
|
}
|
|
502
587
|
window.removeEventListener('scroll', this.handleScrollClose);
|
|
503
|
-
if (this.
|
|
588
|
+
if (this.effectiveScrollStrategy === 'block' && this.isActive) {
|
|
504
589
|
unlockBodyScroll();
|
|
505
590
|
}
|
|
506
591
|
if (this.contentRef !== null) {
|
|
@@ -532,7 +617,7 @@ export class Scrim {
|
|
|
532
617
|
}
|
|
533
618
|
else if (this.isActive) {
|
|
534
619
|
this.applyScrollStrategy();
|
|
535
|
-
if (this.
|
|
620
|
+
if (this.effectiveContentLayout !== 'none' && !this.usesNativeTopLayer) {
|
|
536
621
|
this.addGlobalEventInterception();
|
|
537
622
|
const modalChild = this.findModalChild();
|
|
538
623
|
if (modalChild === null) {
|
|
@@ -547,6 +632,11 @@ export class Scrim {
|
|
|
547
632
|
}
|
|
548
633
|
componentDidRender() {
|
|
549
634
|
syncNativeModalDialog(this.nativeDialogRef, this.isActive && this.usesNativeDialog);
|
|
635
|
+
// A referência interna do scrim é atribuída durante o render; recalcula
|
|
636
|
+
// depois dele para garantir o posicionamento inicial do alvo de legibility.
|
|
637
|
+
if (this.isLegibilityVariant) {
|
|
638
|
+
this.computeLegibilityRect();
|
|
639
|
+
}
|
|
550
640
|
}
|
|
551
641
|
// ======================================================================
|
|
552
642
|
// MÉTODOS PÚBLICOS (API)
|
|
@@ -555,7 +645,7 @@ export class Scrim {
|
|
|
555
645
|
* Define o limite de rolagem para o fechamento automático do scrim.
|
|
556
646
|
*/
|
|
557
647
|
async setScrollThreshold(threshold) {
|
|
558
|
-
this.scrollThreshold = threshold;
|
|
648
|
+
this.scrollThreshold = resolveNumberPropValue(this.el, 'scrollThreshold', threshold, 0, Number.MAX_SAFE_INTEGER, 50);
|
|
559
649
|
}
|
|
560
650
|
/**
|
|
561
651
|
* Método público para exibir o scrim
|
|
@@ -752,10 +842,10 @@ export class Scrim {
|
|
|
752
842
|
// ESTRATÉGIAS DE ROLAGEM (SCROLL)
|
|
753
843
|
// ======================================================================
|
|
754
844
|
applyScrollStrategy() {
|
|
755
|
-
if (this.
|
|
845
|
+
if (this.effectiveScrollStrategy === 'block') {
|
|
756
846
|
this.enableScrollBlock();
|
|
757
847
|
}
|
|
758
|
-
else if (this.
|
|
848
|
+
else if (this.effectiveScrollStrategy === 'close') {
|
|
759
849
|
this.enableScrollWatcher();
|
|
760
850
|
}
|
|
761
851
|
}
|
|
@@ -773,7 +863,7 @@ export class Scrim {
|
|
|
773
863
|
window.addEventListener('scroll', this.handleScrollClose, { passive: true });
|
|
774
864
|
}
|
|
775
865
|
resetScrolling() {
|
|
776
|
-
if (this.
|
|
866
|
+
if (this.effectiveScrollStrategy === 'block') {
|
|
777
867
|
unlockBodyScroll();
|
|
778
868
|
}
|
|
779
869
|
window.removeEventListener('scroll', this.handleScrollClose);
|
|
@@ -798,7 +888,7 @@ export class Scrim {
|
|
|
798
888
|
if (focusableElements.length > 0) {
|
|
799
889
|
const firstElement = focusableElements[0];
|
|
800
890
|
if (firstElement !== null && firstElement !== undefined) {
|
|
801
|
-
firstElement.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
891
|
+
firstElement.scrollIntoView({ behavior: getScrollBehavior(), block: 'nearest', inline: 'nearest' });
|
|
802
892
|
firstElement.focus({ preventScroll: true });
|
|
803
893
|
}
|
|
804
894
|
}
|
|
@@ -955,7 +1045,7 @@ export class Scrim {
|
|
|
955
1045
|
* eventos de teclado/foco/clique e nunca bloqueia rolagem.
|
|
956
1046
|
*/
|
|
957
1047
|
get isLegibilityVariant() {
|
|
958
|
-
return this.
|
|
1048
|
+
return this.effectiveVariant === 'legibility';
|
|
959
1049
|
}
|
|
960
1050
|
/**
|
|
961
1051
|
* Resolve o display-mode efetivo.
|
|
@@ -963,13 +1053,13 @@ export class Scrim {
|
|
|
963
1053
|
* atributo `display-mode` tenha sido explicitamente definido pelo usuário.
|
|
964
1054
|
*/
|
|
965
1055
|
get effectiveDisplayMode() {
|
|
966
|
-
if (this.
|
|
1056
|
+
if (this.effectiveVariant === 'legibility' && !this.displayModeExplicit) {
|
|
967
1057
|
return 'parent';
|
|
968
1058
|
}
|
|
969
|
-
return this.displayMode;
|
|
1059
|
+
return resolveAllowedPropValue(this.el, 'displayMode', this.displayMode, ['fullscreen', 'parent'], 'fullscreen');
|
|
970
1060
|
}
|
|
971
1061
|
get usesNativeDialog() {
|
|
972
|
-
return this.effectiveDisplayMode === 'fullscreen' && !this.isLegibilityVariant && this.
|
|
1062
|
+
return (this.effectiveDisplayMode === 'fullscreen' && !this.isLegibilityVariant && this.effectiveContentLayout !== 'none');
|
|
973
1063
|
}
|
|
974
1064
|
get usesNativeTopLayer() {
|
|
975
1065
|
return this.usesNativeDialog && supportsNativeModalDialog();
|
|
@@ -981,13 +1071,13 @@ export class Scrim {
|
|
|
981
1071
|
this.el.style.removeProperty('--surface-overlay-scrim');
|
|
982
1072
|
this.el.style.removeProperty('--br-scrim-opacity');
|
|
983
1073
|
this.el.style.removeProperty('--br-scrim-mask-size');
|
|
984
|
-
switch (this.
|
|
1074
|
+
switch (this.effectiveVariant) {
|
|
985
1075
|
case 'focus':
|
|
986
1076
|
case 'spotlight':
|
|
987
1077
|
if (this.bgColor === null) {
|
|
988
1078
|
this.el.style.setProperty('--surface-overlay-scrim', '#000000');
|
|
989
1079
|
}
|
|
990
|
-
if (this.
|
|
1080
|
+
if (this.effectiveCustomOpacity === null) {
|
|
991
1081
|
this.el.style.setProperty('--br-scrim-opacity', '0.4');
|
|
992
1082
|
}
|
|
993
1083
|
break;
|
|
@@ -1001,7 +1091,7 @@ export class Scrim {
|
|
|
1001
1091
|
if (this.bgColor === null) {
|
|
1002
1092
|
this.el.style.setProperty('--surface-overlay-scrim', '#000000');
|
|
1003
1093
|
}
|
|
1004
|
-
if (this.
|
|
1094
|
+
if (this.effectiveCustomOpacity === null) {
|
|
1005
1095
|
// Se bgColor for um gradiente, o usuário deve setar customOpacity=1 ou omitir
|
|
1006
1096
|
this.el.style.setProperty('--br-scrim-opacity', '0.64');
|
|
1007
1097
|
}
|
|
@@ -1019,7 +1109,7 @@ export class Scrim {
|
|
|
1019
1109
|
*/
|
|
1020
1110
|
setupSpotlight() {
|
|
1021
1111
|
this.cleanupSpotlight();
|
|
1022
|
-
if (this.
|
|
1112
|
+
if (this.effectiveVariant !== 'spotlight')
|
|
1023
1113
|
return;
|
|
1024
1114
|
const target = this.resolveSpotlightTarget();
|
|
1025
1115
|
if (target === null)
|
|
@@ -1066,10 +1156,11 @@ export class Scrim {
|
|
|
1066
1156
|
/**
|
|
1067
1157
|
* Inicializa o posicionamento da variante legibility.
|
|
1068
1158
|
*
|
|
1069
|
-
* Aplica `position: fixed` com as coordenadas exatas do
|
|
1070
|
-
* `getBoundingClientRect`, sem exigir
|
|
1159
|
+
* Aplica `position: fixed` com as coordenadas exatas do alvo via
|
|
1160
|
+
* `getBoundingClientRect`, sem exigir CSS adicional no alvo. O alvo é
|
|
1161
|
+
* resolvido por `legibilityTargetId` ou, por padrão, pelo pai direto.
|
|
1071
1162
|
*
|
|
1072
|
-
* Com `ResizeObserver`, observa o
|
|
1163
|
+
* Com `ResizeObserver`, observa o alvo **e todos os seus ancestrais**: quando um
|
|
1073
1164
|
* elemento irmão muda de tamanho (ex: menu abrindo), o ancestral comum redimensiona
|
|
1074
1165
|
* e o callback reposiciona o scrim automaticamente.
|
|
1075
1166
|
*/
|
|
@@ -1077,16 +1168,16 @@ export class Scrim {
|
|
|
1077
1168
|
this.cleanupLegibility();
|
|
1078
1169
|
if (!this.isLegibilityVariant)
|
|
1079
1170
|
return;
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1171
|
+
const target = this.resolveLegibilityTarget();
|
|
1172
|
+
if (target === null)
|
|
1082
1173
|
return;
|
|
1083
1174
|
this.computeLegibilityRect();
|
|
1084
1175
|
if (typeof ResizeObserver !== 'undefined') {
|
|
1085
1176
|
this.legibilityResizeObserver = new ResizeObserver(() => this.scheduleLegibilityRect());
|
|
1086
|
-
this.legibilityResizeObserver.observe(
|
|
1177
|
+
this.legibilityResizeObserver.observe(target);
|
|
1087
1178
|
// Observa ancestrais até document.body para detectar deslocamentos causados
|
|
1088
1179
|
// por elementos irmãos que empurram o pai (ex: menu abrindo acima dele).
|
|
1089
|
-
let ancestor =
|
|
1180
|
+
let ancestor = target.parentElement;
|
|
1090
1181
|
while (ancestor !== null && ancestor !== document.documentElement) {
|
|
1091
1182
|
this.legibilityResizeObserver.observe(ancestor);
|
|
1092
1183
|
ancestor = ancestor.parentElement;
|
|
@@ -1114,6 +1205,24 @@ export class Scrim {
|
|
|
1114
1205
|
window.removeEventListener('load', this.scheduleLegibilityRect);
|
|
1115
1206
|
this.resetLegibilityStyles();
|
|
1116
1207
|
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Resolve o alvo da variante legibility. O pai direto permanece como
|
|
1210
|
+
* fallback para preservar o comportamento anterior e a compatibilidade.
|
|
1211
|
+
*/
|
|
1212
|
+
resolveLegibilityTarget() {
|
|
1213
|
+
const selector = this.legibilityTargetId ?? this.el.getAttribute('legibility-target-id');
|
|
1214
|
+
if (selector !== null && selector !== '') {
|
|
1215
|
+
try {
|
|
1216
|
+
const target = document.querySelector(selector);
|
|
1217
|
+
if (target !== null)
|
|
1218
|
+
return target;
|
|
1219
|
+
}
|
|
1220
|
+
catch {
|
|
1221
|
+
console.warn(`br-scrim: Seletor legibilityTargetId inválido: ${selector}`);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
return this.el.parentElement;
|
|
1225
|
+
}
|
|
1117
1226
|
/**
|
|
1118
1227
|
* Remove os estilos inline de posicionamento aplicados pelo computeLegibilityRect.
|
|
1119
1228
|
*/
|
|
@@ -1135,47 +1244,47 @@ export class Scrim {
|
|
|
1135
1244
|
* Retorna null quando não há elemento alvo resolvido.
|
|
1136
1245
|
*/
|
|
1137
1246
|
renderSpotlightOverlay(maskId, rect, padding) {
|
|
1138
|
-
const spotlightShape = this.
|
|
1247
|
+
const spotlightShape = this.effectiveSpotlightShape === 'circle' ? (h("ellipse", { cx: rect.left + rect.width / 2, cy: rect.top + rect.height / 2, rx: rect.width / 2 + padding, ry: rect.height / 2 + padding, fill: "black" })) : (h("rect", { x: rect.left - padding, y: rect.top - padding, width: rect.width + padding * 2, height: rect.height + padding * 2, rx: this.effectiveSpotlightShape === 'rounded' ? 8 : 0, ry: this.effectiveSpotlightShape === 'rounded' ? 8 : 0, fill: "black" }));
|
|
1139
1248
|
return (h("svg", { class: "spotlight-overlay", "aria-hidden": "true", onClick: this.handleMaskClick, xmlns: "http://www.w3.org/2000/svg" }, h("defs", null, h("mask", { id: maskId }, h("rect", { width: "100%", height: "100%", fill: "white" }), spotlightShape)), h("rect", { class: "spotlight-overlay-rect", width: "100%", height: "100%", mask: `url(#${maskId})` })));
|
|
1140
1249
|
}
|
|
1141
1250
|
getCssClassMap() {
|
|
1142
1251
|
return {
|
|
1143
1252
|
'br-scrim': true,
|
|
1144
1253
|
opened: this.isActive,
|
|
1145
|
-
'scroll-block': this.
|
|
1146
|
-
'position-top': this.
|
|
1147
|
-
'position-bottom': this.
|
|
1148
|
-
'position-left': this.
|
|
1149
|
-
'position-right': this.
|
|
1150
|
-
'position-center': this.
|
|
1254
|
+
'scroll-block': this.effectiveScrollStrategy === 'block',
|
|
1255
|
+
'position-top': this.effectivePositionContent === 'top',
|
|
1256
|
+
'position-bottom': this.effectivePositionContent === 'bottom',
|
|
1257
|
+
'position-left': this.effectivePositionContent === 'left',
|
|
1258
|
+
'position-right': this.effectivePositionContent === 'right',
|
|
1259
|
+
'position-center': this.effectivePositionContent === 'center',
|
|
1151
1260
|
'mode-fullscreen': this.effectiveDisplayMode === 'fullscreen',
|
|
1152
1261
|
'mode-parent': this.effectiveDisplayMode === 'parent',
|
|
1153
|
-
'variant-focus': this.
|
|
1154
|
-
'variant-spotlight': this.
|
|
1155
|
-
'variant-legibility': this.
|
|
1156
|
-
'legibility-anchor-top': this.
|
|
1157
|
-
'legibility-anchor-bottom': this.
|
|
1158
|
-
'legibility-anchor-left': this.
|
|
1159
|
-
'legibility-anchor-right': this.
|
|
1160
|
-
'legibility-anchor-center': this.
|
|
1262
|
+
'variant-focus': this.effectiveVariant === 'focus',
|
|
1263
|
+
'variant-spotlight': this.effectiveVariant === 'spotlight',
|
|
1264
|
+
'variant-legibility': this.effectiveVariant === 'legibility',
|
|
1265
|
+
'legibility-anchor-top': this.effectiveVariant === 'legibility' && this.effectiveLegibilityAnchor === 'top',
|
|
1266
|
+
'legibility-anchor-bottom': this.effectiveVariant === 'legibility' && this.effectiveLegibilityAnchor === 'bottom',
|
|
1267
|
+
'legibility-anchor-left': this.effectiveVariant === 'legibility' && this.effectiveLegibilityAnchor === 'left',
|
|
1268
|
+
'legibility-anchor-right': this.effectiveVariant === 'legibility' && this.effectiveLegibilityAnchor === 'right',
|
|
1269
|
+
'legibility-anchor-center': this.effectiveVariant === 'legibility' && this.effectiveLegibilityAnchor === 'center',
|
|
1161
1270
|
'has-spotlight': this.spotlightRect !== null,
|
|
1162
|
-
'content-layout-none': this.
|
|
1271
|
+
'content-layout-none': this.effectiveContentLayout === 'none',
|
|
1163
1272
|
};
|
|
1164
1273
|
}
|
|
1165
1274
|
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: render preserva as variantes pública, local e nativa sem duplicar o conteúdo.
|
|
1166
1275
|
render() {
|
|
1167
1276
|
const maskId = `${this.customId}-spotlight-mask`;
|
|
1168
|
-
const padding = this.
|
|
1277
|
+
const padding = this.effectiveSpotlightPadding;
|
|
1169
1278
|
const rect = this.spotlightRect;
|
|
1170
|
-
const isDialogContainer = !this.isLegibilityVariant && this.
|
|
1279
|
+
const isDialogContainer = !this.isLegibilityVariant && this.effectiveContentLayout !== 'none';
|
|
1171
1280
|
const maskElement = this.isLegibilityVariant ? (h("div", { class: "mask" })) : (h("div", { class: "mask", role: "button", "aria-label": "Fechar sobreposi\u00E7\u00E3o", tabIndex: 0, onClick: this.handleMaskClick, onKeyDown: (event) => {
|
|
1172
1281
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
1173
1282
|
event.preventDefault();
|
|
1174
1283
|
this.handleMaskClick(event);
|
|
1175
1284
|
}
|
|
1176
1285
|
} }));
|
|
1177
|
-
const contentElement = (h("div", { key: '
|
|
1178
|
-
return (h(Host, { key: '
|
|
1286
|
+
const contentElement = (h("div", { key: '3ac232885a157cd05d718cfed0c63af7a3a769ac', ref: (el) => (this.contentRef = el ?? null), id: `${this.customId}-content`, class: this.effectiveContentLayout === 'none' ? 'content content-unwrapped' : 'content', tabIndex: this.effectiveContentLayout === 'none' ? undefined : -1 }, h("slot", { key: '9d2306c1cc3296e63272e2e08fb5b216eb1bdb9d' })));
|
|
1287
|
+
return (h(Host, { key: 'c7c171f3e033e7c80ba0f9ce98515331385b2bf5' }, h("slot", { key: '7b379fa99c11d5a0227abf44a7fb3dc27ffe1cf4', name: "activator" }), this.usesNativeDialog ? (h("dialog", { ref: (el) => {
|
|
1179
1288
|
this.nativeDialogRef = el;
|
|
1180
1289
|
this.scrimDivRef = el;
|
|
1181
1290
|
}, class: this.getCssClassMap(), id: this.customId, role: this.usesNativeTopLayer ? undefined : 'dialog', "aria-modal": "true", "aria-label": this.ariaLabel || 'Conteúdo do diálogo', "data-visible": this.isActive ? 'true' : 'false', onCancel: this.handleNativeCancel, onKeyDown: this.handleKeyDown }, maskElement, rect !== null && this.renderSpotlightOverlay(maskId, rect, padding), contentElement)) : isDialogContainer ? (h("div", { ref: (el) => {
|
|
@@ -1298,7 +1407,7 @@ export class Scrim {
|
|
|
1298
1407
|
"optional": false,
|
|
1299
1408
|
"docs": {
|
|
1300
1409
|
"tags": [],
|
|
1301
|
-
"text": "Define o valor de z-index do scrim"
|
|
1410
|
+
"text": "Define o valor de z-index do scrim. Deve ser um inteiro entre 0 e Number.MAX_SAFE_INTEGER; valores inv\u00E1lidos usam 0."
|
|
1302
1411
|
},
|
|
1303
1412
|
"getter": false,
|
|
1304
1413
|
"setter": false,
|
|
@@ -1338,7 +1447,7 @@ export class Scrim {
|
|
|
1338
1447
|
"optional": false,
|
|
1339
1448
|
"docs": {
|
|
1340
1449
|
"tags": [],
|
|
1341
|
-
"text": "Define a opacidade personalizada do scrim"
|
|
1450
|
+
"text": "Define a opacidade personalizada do scrim. O valor \u00E9 limitado ao intervalo `0`\u2013`1`; entradas inv\u00E1lidas usam `0.4`."
|
|
1342
1451
|
},
|
|
1343
1452
|
"getter": false,
|
|
1344
1453
|
"setter": false,
|
|
@@ -1411,7 +1520,7 @@ export class Scrim {
|
|
|
1411
1520
|
"optional": false,
|
|
1412
1521
|
"docs": {
|
|
1413
1522
|
"tags": [],
|
|
1414
|
-
"text": "Determina quanto de rolagem (em pixels) \u00E9 necess\u00E1rio para acionar a a\u00E7\u00E3o de fechamento autom\u00E1tico do scrim."
|
|
1523
|
+
"text": "Determina quanto de rolagem (em pixels) \u00E9 necess\u00E1rio para acionar a a\u00E7\u00E3o de fechamento autom\u00E1tico do scrim. Valores negativos usam `0`."
|
|
1415
1524
|
},
|
|
1416
1525
|
"getter": false,
|
|
1417
1526
|
"setter": false,
|
|
@@ -1430,7 +1539,10 @@ export class Scrim {
|
|
|
1430
1539
|
"required": false,
|
|
1431
1540
|
"optional": false,
|
|
1432
1541
|
"docs": {
|
|
1433
|
-
"tags": [
|
|
1542
|
+
"tags": [{
|
|
1543
|
+
"name": "example",
|
|
1544
|
+
"text": "```html\n<button id=\"abrir-ajuda\" type=\"button\">Abrir ajuda</button>\n<br-scrim activator=\"#abrir-ajuda\">Conte\u00FAdo</br-scrim>\n```"
|
|
1545
|
+
}],
|
|
1434
1546
|
"text": "Define o seletor para o elemento activator.\nNota: O slot 'activator' tem prioridade sobre esta propriedade."
|
|
1435
1547
|
},
|
|
1436
1548
|
"getter": false,
|
|
@@ -1524,7 +1636,10 @@ export class Scrim {
|
|
|
1524
1636
|
"required": false,
|
|
1525
1637
|
"optional": false,
|
|
1526
1638
|
"docs": {
|
|
1527
|
-
"tags": [
|
|
1639
|
+
"tags": [{
|
|
1640
|
+
"name": "example",
|
|
1641
|
+
"text": "```html\n<br-scrim variant=\"legibility\" legibility-anchor=\"bottom\" legibility-size=\"40%\">\n Texto sobre a imagem\n</br-scrim>\n```"
|
|
1642
|
+
}],
|
|
1528
1643
|
"text": "Define o tamanho da faixa de cobertura da variante `legibility`, usado em\nconjunto com `legibilityAnchor`.\n\nAceita qualquer valor CSS de comprimento v\u00E1lido:\n- Percentual relativo ao elemento pai: `'40%'`, `'75%'`\n- Comprimento absoluto: `'120px'`, `'8rem'`, `'6em'`\n- Fun\u00E7\u00E3o CSS: `'calc(100% - 2rem)'`\n\nQuando `null` (padr\u00E3o), a m\u00E1scara ocupa **100%** da dimens\u00E3o relevante:\n- **altura** para \u00E2ncoras `top`, `bottom` e `center`\n- **largura** para \u00E2ncoras `left` e `right`\n\nS\u00F3 tem efeito quando `variant=\"legibility\"` est\u00E1 definido."
|
|
1529
1644
|
},
|
|
1530
1645
|
"getter": false,
|
|
@@ -1533,7 +1648,7 @@ export class Scrim {
|
|
|
1533
1648
|
"attribute": "legibility-size",
|
|
1534
1649
|
"defaultValue": "null"
|
|
1535
1650
|
},
|
|
1536
|
-
"
|
|
1651
|
+
"legibilityTargetId": {
|
|
1537
1652
|
"type": "string",
|
|
1538
1653
|
"mutable": false,
|
|
1539
1654
|
"complexType": {
|
|
@@ -1545,6 +1660,29 @@ export class Scrim {
|
|
|
1545
1660
|
"optional": false,
|
|
1546
1661
|
"docs": {
|
|
1547
1662
|
"tags": [],
|
|
1663
|
+
"text": "Seletor CSS do elemento que deve receber o posicionamento da variante\n`legibility`. Quando n\u00E3o informado (padr\u00E3o), o alvo \u00E9 o elemento pai\ndireto do `<br-scrim>`."
|
|
1664
|
+
},
|
|
1665
|
+
"getter": false,
|
|
1666
|
+
"setter": false,
|
|
1667
|
+
"reflect": false,
|
|
1668
|
+
"attribute": "legibility-target-id",
|
|
1669
|
+
"defaultValue": "null"
|
|
1670
|
+
},
|
|
1671
|
+
"spotlightTargetId": {
|
|
1672
|
+
"type": "string",
|
|
1673
|
+
"mutable": false,
|
|
1674
|
+
"complexType": {
|
|
1675
|
+
"original": "string | null",
|
|
1676
|
+
"resolved": "string",
|
|
1677
|
+
"references": {}
|
|
1678
|
+
},
|
|
1679
|
+
"required": false,
|
|
1680
|
+
"optional": false,
|
|
1681
|
+
"docs": {
|
|
1682
|
+
"tags": [{
|
|
1683
|
+
"name": "example",
|
|
1684
|
+
"text": "```html\n<button id=\"acao-principal\" type=\"button\">Continuar</button>\n<br-scrim variant=\"spotlight\" spotlight-target-id=\"#acao-principal\"></br-scrim>\n```"
|
|
1685
|
+
}],
|
|
1548
1686
|
"text": "Ativa o modo de scrim vazado (variante 'spotlight'), criando uma \u00E1rea de fresta no overlay\nque destaca o elemento referenciado pelo seletor CSS fornecido."
|
|
1549
1687
|
},
|
|
1550
1688
|
"getter": false,
|
|
@@ -1565,7 +1703,7 @@ export class Scrim {
|
|
|
1565
1703
|
"optional": false,
|
|
1566
1704
|
"docs": {
|
|
1567
1705
|
"tags": [],
|
|
1568
|
-
"text": "Espa\u00E7amento interno (em pixels) ao redor da \u00E1rea de fresta no scrim vazado."
|
|
1706
|
+
"text": "Espa\u00E7amento interno (em pixels) ao redor da \u00E1rea de fresta no scrim vazado. Valores negativos usam `0`."
|
|
1569
1707
|
},
|
|
1570
1708
|
"getter": false,
|
|
1571
1709
|
"setter": false,
|
|
@@ -1796,6 +1934,9 @@ export class Scrim {
|
|
|
1796
1934
|
}, {
|
|
1797
1935
|
"propName": "spotlightShape",
|
|
1798
1936
|
"methodName": "handleSpotlightChange"
|
|
1937
|
+
}, {
|
|
1938
|
+
"propName": "legibilityTargetId",
|
|
1939
|
+
"methodName": "handleLegibilityTargetChange"
|
|
1799
1940
|
}, {
|
|
1800
1941
|
"propName": "activator",
|
|
1801
1942
|
"methodName": "handleActivatorChange"
|