@govbr-ds/webcomponents 2.1.2 → 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 +6367 -1134
- package/cem/webcomponents.html-custom-data.json +399 -286
- 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 +304 -122
- 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 +41 -64
- 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 +75 -68
- 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 +323 -118
- 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 +238 -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 +1486 -586
- 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 +305 -123
- 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 +42 -65
- 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 +7370 -2603
- package/dist/hydrate/index.mjs +7370 -2603
- 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 +42 -9
- 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 +5825 -1352
- 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-34Jfn-U-.js +0 -5
- package/dist/components/p-6OdfnwnK.js +0 -5
- package/dist/components/p-B7Amgxkp.js +0 -5
- package/dist/components/p-BKuMQJrQ.js +0 -5
- package/dist/components/p-BPJpHGOW.js +0 -5
- package/dist/components/p-Bb-nLtTG.js +0 -5
- package/dist/components/p-BeE7R9nu.js +0 -5
- package/dist/components/p-BkS6ujyf.js +0 -5
- package/dist/components/p-Bo0QYHJO.js +0 -5
- package/dist/components/p-C2i2c_io.js +0 -5
- package/dist/components/p-C7v0lVlX.js +0 -5
- package/dist/components/p-CMBsvswx.js +0 -5
- package/dist/components/p-CRrimdz6.js +0 -5
- package/dist/components/p-CWORw84-.js +0 -5
- package/dist/components/p-CvUMXJCl.js +0 -5
- package/dist/components/p-D6zroLx5.js +0 -5
- package/dist/components/p-DBP6K_aq.js +0 -5
- package/dist/components/p-DCrVo-8T.js +0 -5
- package/dist/components/p-DFUKDNck.js +0 -5
- package/dist/components/p-DHicj0By.js +0 -5
- package/dist/components/p-DIK54tTj.js +0 -5
- package/dist/components/p-DQRSHR-D.js +0 -5
- package/dist/components/p-DRVMm1Py.js +0 -5
- package/dist/components/p-DWPmUV72.js +0 -5
- package/dist/components/p-DXjQyH6s.js +0 -5
- package/dist/components/p-DmCxdB9P.js +0 -5
- package/dist/components/p-Dp0xy_3n.js +0 -5
- package/dist/components/p-DxZJrIyL.js +0 -5
- package/dist/components/p-JAkkThgf.js +0 -5
- package/dist/components/p-Ud-WB0hx.js +0 -5
- package/dist/components/p-fpMNttbg.js +0 -5
- package/dist/components/p-gvnfuTjd.js +0 -5
- package/dist/components/p-qYONSNcf.js +0 -5
- package/dist/components/p-qhhHGJY1.js +0 -5
- package/dist/components/p-ttI0nvv_.js +0 -5
- package/dist/components/p-ukNmfGNP.js +0 -5
- package/dist/components/p-xa8e1kSW.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-0196804a.entry.js +0 -5
- package/dist/webcomponents/p-0410186a.entry.js +0 -5
- package/dist/webcomponents/p-0415ef22.entry.js +0 -5
- package/dist/webcomponents/p-0777c7b1.entry.js +0 -5
- package/dist/webcomponents/p-0caa4d12.entry.js +0 -5
- package/dist/webcomponents/p-0d4f718d.entry.js +0 -5
- package/dist/webcomponents/p-0e84c9e8.entry.js +0 -5
- package/dist/webcomponents/p-147ac8d3.entry.js +0 -5
- package/dist/webcomponents/p-1580beee.entry.js +0 -5
- package/dist/webcomponents/p-18ee6175.entry.js +0 -5
- package/dist/webcomponents/p-1bca4499.entry.js +0 -5
- package/dist/webcomponents/p-1c303a4e.entry.js +0 -5
- package/dist/webcomponents/p-1d6b0b6f.entry.js +0 -5
- package/dist/webcomponents/p-1d8cb8fd.entry.js +0 -5
- package/dist/webcomponents/p-224daaac.entry.js +0 -5
- package/dist/webcomponents/p-28426d2a.entry.js +0 -5
- package/dist/webcomponents/p-2abd2da0.entry.js +0 -5
- package/dist/webcomponents/p-2fdc51ae.entry.js +0 -5
- package/dist/webcomponents/p-30c428b6.entry.js +0 -5
- package/dist/webcomponents/p-36bbea4e.entry.js +0 -5
- package/dist/webcomponents/p-3907ebfa.entry.js +0 -5
- package/dist/webcomponents/p-39a16f9d.entry.js +0 -5
- package/dist/webcomponents/p-3ebbd2f5.entry.js +0 -5
- package/dist/webcomponents/p-3ef7eac8.entry.js +0 -5
- package/dist/webcomponents/p-45356e9a.entry.js +0 -5
- package/dist/webcomponents/p-46513db4.entry.js +0 -5
- package/dist/webcomponents/p-4c13221a.entry.js +0 -5
- package/dist/webcomponents/p-51ce2c31.entry.js +0 -5
- package/dist/webcomponents/p-52df61cb.entry.js +0 -5
- package/dist/webcomponents/p-569134cf.entry.js +0 -5
- package/dist/webcomponents/p-5ce7db4a.entry.js +0 -5
- package/dist/webcomponents/p-5f373708.entry.js +0 -5
- package/dist/webcomponents/p-5f6afb79.entry.js +0 -5
- package/dist/webcomponents/p-5fc7ba4c.entry.js +0 -5
- package/dist/webcomponents/p-66006312.entry.js +0 -5
- package/dist/webcomponents/p-66b13fd9.entry.js +0 -5
- package/dist/webcomponents/p-6OdfnwnK.js +0 -5
- package/dist/webcomponents/p-750799b7.entry.js +0 -5
- package/dist/webcomponents/p-756ff2ad.entry.js +0 -5
- package/dist/webcomponents/p-765bfe27.entry.js +0 -5
- package/dist/webcomponents/p-7ab96c11.entry.js +0 -5
- package/dist/webcomponents/p-7c2ff8b4.entry.js +0 -5
- package/dist/webcomponents/p-7fb03a49.entry.js +0 -5
- package/dist/webcomponents/p-82200563.entry.js +0 -5
- package/dist/webcomponents/p-83ff4579.entry.js +0 -5
- package/dist/webcomponents/p-85f8063b.entry.js +0 -5
- package/dist/webcomponents/p-8b558233.entry.js +0 -5
- package/dist/webcomponents/p-8e6c2767.entry.js +0 -5
- package/dist/webcomponents/p-8e819355.entry.js +0 -5
- package/dist/webcomponents/p-92a9b9c4.entry.js +0 -5
- package/dist/webcomponents/p-966ad32f.entry.js +0 -5
- package/dist/webcomponents/p-9679d230.entry.js +0 -5
- package/dist/webcomponents/p-96dd663b.entry.js +0 -5
- package/dist/webcomponents/p-98843fa3.entry.js +0 -5
- package/dist/webcomponents/p-9a375eff.entry.js +0 -5
- package/dist/webcomponents/p-9b358cff.entry.js +0 -5
- package/dist/webcomponents/p-9f7558c7.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-a382e115.entry.js +0 -5
- package/dist/webcomponents/p-a4ae72e3.entry.js +0 -5
- package/dist/webcomponents/p-a994c190.entry.js +0 -5
- package/dist/webcomponents/p-a9ff7c25.entry.js +0 -5
- package/dist/webcomponents/p-c0b0f531.entry.js +0 -5
- package/dist/webcomponents/p-c211af17.entry.js +0 -5
- package/dist/webcomponents/p-c492d926.entry.js +0 -5
- package/dist/webcomponents/p-c4cfe599.entry.js +0 -5
- package/dist/webcomponents/p-c846e784.entry.js +0 -5
- package/dist/webcomponents/p-c949d993.entry.js +0 -5
- package/dist/webcomponents/p-d1e899cd.entry.js +0 -5
- package/dist/webcomponents/p-d38d82cc.entry.js +0 -5
- package/dist/webcomponents/p-e0ce536a.entry.js +0 -5
- package/dist/webcomponents/p-e1331288.entry.js +0 -5
- package/dist/webcomponents/p-e360a463.entry.js +0 -5
- package/dist/webcomponents/p-f078f972.entry.js +0 -5
- package/dist/webcomponents/p-f26038e2.entry.js +0 -5
- package/dist/webcomponents/p-f303f6b3.entry.js +0 -5
- package/dist/webcomponents/p-f6318e94.entry.js +0 -5
- package/dist/webcomponents/p-f85ee01c.entry.js +0 -5
- package/dist/webcomponents/p-fcd4ae48.entry.js +0 -5
- package/dist/webcomponents/p-ffe0241e.entry.js +0 -5
- package/dist/webcomponents/p-gvnfuTjd.js +0 -5
|
@@ -100,12 +100,12 @@ function getOppositePlacement(placement) {
|
|
|
100
100
|
return oppositeSideMap[side] + placement.slice(side.length);
|
|
101
101
|
}
|
|
102
102
|
function expandPaddingObject(padding) {
|
|
103
|
+
var _padding$top, _padding$right, _padding$bottom, _padding$left;
|
|
103
104
|
return {
|
|
104
|
-
top: 0,
|
|
105
|
-
right: 0,
|
|
106
|
-
bottom: 0,
|
|
107
|
-
left: 0
|
|
108
|
-
...padding
|
|
105
|
+
top: (_padding$top = padding.top) != null ? _padding$top : 0,
|
|
106
|
+
right: (_padding$right = padding.right) != null ? _padding$right : 0,
|
|
107
|
+
bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
|
|
108
|
+
left: (_padding$left = padding.left) != null ? _padding$left : 0
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
function getPaddingObject(padding) {
|
|
@@ -180,13 +180,9 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
180
180
|
y: reference.y
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
break;
|
|
187
|
-
case 'end':
|
|
188
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
189
|
-
break;
|
|
183
|
+
const alignment = getAlignment(placement);
|
|
184
|
+
if (alignment) {
|
|
185
|
+
coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
|
|
190
186
|
}
|
|
191
187
|
return coords;
|
|
192
188
|
}
|
|
@@ -235,10 +231,7 @@ async function detectOverflow(state, options) {
|
|
|
235
231
|
height: rects.floating.height
|
|
236
232
|
} : rects.reference;
|
|
237
233
|
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
238
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)))
|
|
239
|
-
x: 1,
|
|
240
|
-
y: 1
|
|
241
|
-
} : {
|
|
234
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
242
235
|
x: 1,
|
|
243
236
|
y: 1
|
|
244
237
|
};
|
|
@@ -411,17 +404,16 @@ const arrow$1 = options => ({
|
|
|
411
404
|
|
|
412
405
|
// Make sure the arrow doesn't overflow the floating element if the center
|
|
413
406
|
// point is outside the floating element's bounds.
|
|
414
|
-
const min$1 = minPadding;
|
|
415
407
|
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
416
408
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
417
|
-
const offset = clamp(
|
|
409
|
+
const offset = clamp(minPadding, center, max);
|
|
418
410
|
|
|
419
411
|
// If the reference is small enough that the arrow's padding causes it to
|
|
420
412
|
// to point to nothing for an aligned placement, adjust the offset of the
|
|
421
413
|
// floating element itself. To ensure `shift()` continues to take action,
|
|
422
414
|
// a single reset is performed when this is true.
|
|
423
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center <
|
|
424
|
-
const alignmentOffset = shouldAddOffset ? center <
|
|
415
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
416
|
+
const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
|
|
425
417
|
return {
|
|
426
418
|
[axis]: coords[axis] + alignmentOffset,
|
|
427
419
|
data: {
|
|
@@ -765,23 +757,16 @@ const shift$1 = function (options) {
|
|
|
765
757
|
y
|
|
766
758
|
};
|
|
767
759
|
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
768
|
-
const crossAxis = getSideAxis(
|
|
760
|
+
const crossAxis = getSideAxis(placement);
|
|
769
761
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
770
762
|
let mainAxisCoord = coords[mainAxis];
|
|
771
763
|
let crossAxisCoord = coords[crossAxis];
|
|
764
|
+
const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
|
|
772
765
|
if (checkMainAxis) {
|
|
773
|
-
|
|
774
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
775
|
-
const min = mainAxisCoord + overflow[minSide];
|
|
776
|
-
const max = mainAxisCoord - overflow[maxSide];
|
|
777
|
-
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
766
|
+
mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
|
|
778
767
|
}
|
|
779
768
|
if (checkCrossAxis) {
|
|
780
|
-
|
|
781
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
782
|
-
const min = crossAxisCoord + overflow[minSide];
|
|
783
|
-
const max = crossAxisCoord - overflow[maxSide];
|
|
784
|
-
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
769
|
+
crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
|
|
785
770
|
}
|
|
786
771
|
const limitedCoords = limiter.fn({
|
|
787
772
|
...state,
|
|
@@ -803,6 +788,92 @@ const shift$1 = function (options) {
|
|
|
803
788
|
};
|
|
804
789
|
};
|
|
805
790
|
|
|
791
|
+
// Method syntax keeps callback parameters bivariant, but expressing the
|
|
792
|
+
// explicit `| undefined` required by `exactOptionalPropertyTypes` needs
|
|
793
|
+
// property syntax, which is contravariant under `strictFunctionTypes`.
|
|
794
|
+
// Extracting the function from a method position restores that bivariance so
|
|
795
|
+
// consumers can still assign callbacks with narrower parameter types.
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Provides data that allows you to change the size of the floating element —
|
|
799
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
800
|
+
* width of the reference element.
|
|
801
|
+
* @see https://floating-ui.com/docs/size
|
|
802
|
+
*/
|
|
803
|
+
const size$1 = function (options) {
|
|
804
|
+
if (options === void 0) {
|
|
805
|
+
options = {};
|
|
806
|
+
}
|
|
807
|
+
return {
|
|
808
|
+
name: 'size',
|
|
809
|
+
options,
|
|
810
|
+
async fn(state) {
|
|
811
|
+
const {
|
|
812
|
+
placement,
|
|
813
|
+
rects,
|
|
814
|
+
platform,
|
|
815
|
+
elements
|
|
816
|
+
} = state;
|
|
817
|
+
const {
|
|
818
|
+
apply = () => {},
|
|
819
|
+
...detectOverflowOptions
|
|
820
|
+
} = evaluate(options, state);
|
|
821
|
+
const overflow = await platform.detectOverflow(state, detectOverflowOptions);
|
|
822
|
+
const side = getSide(placement);
|
|
823
|
+
const alignment = getAlignment(placement);
|
|
824
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
825
|
+
const {
|
|
826
|
+
width,
|
|
827
|
+
height
|
|
828
|
+
} = rects.floating;
|
|
829
|
+
let heightSide;
|
|
830
|
+
let widthSide;
|
|
831
|
+
if (side === 'top' || side === 'bottom') {
|
|
832
|
+
heightSide = side;
|
|
833
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
834
|
+
} else {
|
|
835
|
+
widthSide = side;
|
|
836
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
837
|
+
}
|
|
838
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
839
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
840
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
841
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
842
|
+
const shiftData = state.middlewareData.shift;
|
|
843
|
+
const noShift = !shiftData;
|
|
844
|
+
let availableHeight = overflowAvailableHeight;
|
|
845
|
+
let availableWidth = overflowAvailableWidth;
|
|
846
|
+
if (shiftData != null && shiftData.enabled.x) {
|
|
847
|
+
availableWidth = maximumClippingWidth;
|
|
848
|
+
}
|
|
849
|
+
if (shiftData != null && shiftData.enabled.y) {
|
|
850
|
+
availableHeight = maximumClippingHeight;
|
|
851
|
+
}
|
|
852
|
+
if (noShift && !alignment) {
|
|
853
|
+
if (isYAxis) {
|
|
854
|
+
availableWidth = width - 2 * max(overflow.left, overflow.right);
|
|
855
|
+
} else {
|
|
856
|
+
availableHeight = height - 2 * max(overflow.top, overflow.bottom);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
await apply({
|
|
860
|
+
...state,
|
|
861
|
+
availableWidth,
|
|
862
|
+
availableHeight
|
|
863
|
+
});
|
|
864
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
865
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
866
|
+
return {
|
|
867
|
+
reset: {
|
|
868
|
+
rects: true
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
return {};
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
|
|
806
877
|
function hasWindow() {
|
|
807
878
|
return typeof window !== 'undefined';
|
|
808
879
|
}
|
|
@@ -938,7 +1009,7 @@ function getParentNode(node) {
|
|
|
938
1009
|
function getNearestOverflowAncestor(node) {
|
|
939
1010
|
const parentNode = getParentNode(node);
|
|
940
1011
|
if (isLastTraversableNode(parentNode)) {
|
|
941
|
-
return node.ownerDocument
|
|
1012
|
+
return (node.ownerDocument || node).body;
|
|
942
1013
|
}
|
|
943
1014
|
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
944
1015
|
return parentNode;
|
|
@@ -1035,10 +1106,7 @@ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
|
1035
1106
|
if (isFixed === void 0) {
|
|
1036
1107
|
isFixed = false;
|
|
1037
1108
|
}
|
|
1038
|
-
|
|
1039
|
-
return false;
|
|
1040
|
-
}
|
|
1041
|
-
return isFixed;
|
|
1109
|
+
return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
|
|
1042
1110
|
}
|
|
1043
1111
|
|
|
1044
1112
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
@@ -1065,12 +1133,12 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1065
1133
|
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1066
1134
|
let width = clientRect.width / scale.x;
|
|
1067
1135
|
let height = clientRect.height / scale.y;
|
|
1068
|
-
if (domElement) {
|
|
1136
|
+
if (domElement && offsetParent) {
|
|
1069
1137
|
const win = getWindow(domElement);
|
|
1070
|
-
const offsetWin =
|
|
1138
|
+
const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1071
1139
|
let currentWin = win;
|
|
1072
1140
|
let currentIFrame = getFrameElement(currentWin);
|
|
1073
|
-
while (currentIFrame &&
|
|
1141
|
+
while (currentIFrame && offsetWin !== currentWin) {
|
|
1074
1142
|
const iframeScale = getScale(currentIFrame);
|
|
1075
1143
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1076
1144
|
const css = getComputedStyle$1(currentIFrame);
|
|
@@ -1134,7 +1202,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1134
1202
|
let scale = createCoords(1);
|
|
1135
1203
|
const offsets = createCoords(0);
|
|
1136
1204
|
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1137
|
-
if (isOffsetParentAnElement || !
|
|
1205
|
+
if (isOffsetParentAnElement || !isFixed) {
|
|
1138
1206
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1139
1207
|
scroll = getNodeScroll(offsetParent);
|
|
1140
1208
|
}
|
|
@@ -1155,18 +1223,17 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
1155
1223
|
}
|
|
1156
1224
|
|
|
1157
1225
|
function getClientRects(element) {
|
|
1158
|
-
return Array.from(element.getClientRects());
|
|
1226
|
+
return element.getClientRects ? Array.from(element.getClientRects()) : [];
|
|
1159
1227
|
}
|
|
1160
1228
|
|
|
1161
1229
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
1162
1230
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
1163
|
-
function getDocumentRect(
|
|
1164
|
-
const
|
|
1165
|
-
const
|
|
1166
|
-
const body = element.ownerDocument.body;
|
|
1231
|
+
function getDocumentRect(html) {
|
|
1232
|
+
const scroll = getNodeScroll(html);
|
|
1233
|
+
const body = html.ownerDocument.body;
|
|
1167
1234
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1168
1235
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1169
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(
|
|
1236
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(html);
|
|
1170
1237
|
const y = -scroll.scrollTop;
|
|
1171
1238
|
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
1172
1239
|
x += max(html.clientWidth, body.clientWidth) - width;
|
|
@@ -1183,7 +1250,11 @@ function getDocumentRect(element) {
|
|
|
1183
1250
|
// calculation is affected by unusual styles.
|
|
1184
1251
|
// Most scrollbars leave 15-18px of space.
|
|
1185
1252
|
const SCROLLBAR_MAX = 25;
|
|
1186
|
-
function getViewportRect(element, strategy) {
|
|
1253
|
+
function getViewportRect(element, strategy, rootBoundary) {
|
|
1254
|
+
if (rootBoundary === void 0) {
|
|
1255
|
+
rootBoundary = 'viewport';
|
|
1256
|
+
}
|
|
1257
|
+
const isLayoutViewport = rootBoundary === 'layoutViewport';
|
|
1187
1258
|
const win = getWindow(element);
|
|
1188
1259
|
const html = getDocumentElement(element);
|
|
1189
1260
|
const visualViewport = win.visualViewport;
|
|
@@ -1192,31 +1263,42 @@ function getViewportRect(element, strategy) {
|
|
|
1192
1263
|
let x = 0;
|
|
1193
1264
|
let y = 0;
|
|
1194
1265
|
if (visualViewport) {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1266
|
+
// Client coordinates are relative to the layout viewport, except in
|
|
1267
|
+
// WebKit with an `absolute` strategy, where they are relative to the
|
|
1268
|
+
// visual viewport.
|
|
1269
|
+
const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';
|
|
1270
|
+
if (isLayoutViewport) {
|
|
1271
|
+
if (!layoutRelativeClientCoords) {
|
|
1272
|
+
x = -visualViewport.offsetLeft;
|
|
1273
|
+
y = -visualViewport.offsetTop;
|
|
1274
|
+
}
|
|
1275
|
+
} else {
|
|
1276
|
+
width = visualViewport.width;
|
|
1277
|
+
height = visualViewport.height;
|
|
1278
|
+
if (layoutRelativeClientCoords) {
|
|
1279
|
+
x = visualViewport.offsetLeft;
|
|
1280
|
+
y = visualViewport.offsetTop;
|
|
1281
|
+
}
|
|
1201
1282
|
}
|
|
1202
1283
|
}
|
|
1203
1284
|
const windowScrollbarX = getWindowScrollBarX(html);
|
|
1204
|
-
//
|
|
1205
|
-
// visual width
|
|
1206
|
-
//
|
|
1285
|
+
// `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks
|
|
1286
|
+
// the visual width but isn't reflected in `html.clientWidth`, so subtract it.
|
|
1287
|
+
// Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also
|
|
1288
|
+
// reserves an empty inline-start gutter that clips nothing, so exclude just
|
|
1289
|
+
// the one scrollbar-side gutter — halve the measured (two-gutter) total. A
|
|
1290
|
+
// left-side scrollbar (`windowScrollbarX > 0`) is already handled by
|
|
1291
|
+
// `getHTMLOffset`/`visualViewport.width`; skip it here.
|
|
1207
1292
|
if (windowScrollbarX <= 0) {
|
|
1208
1293
|
const doc = html.ownerDocument;
|
|
1209
1294
|
const body = doc.body;
|
|
1210
1295
|
const bodyStyles = getComputedStyle(body);
|
|
1211
1296
|
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
|
|
1297
|
+
const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
1298
|
+
const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;
|
|
1299
|
+
if (gutter <= SCROLLBAR_MAX) {
|
|
1300
|
+
width -= gutter;
|
|
1215
1301
|
}
|
|
1216
|
-
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
1217
|
-
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
1218
|
-
// by the scrollbar amount so there isn't extra space on the right.
|
|
1219
|
-
width += windowScrollbarX;
|
|
1220
1302
|
}
|
|
1221
1303
|
return {
|
|
1222
1304
|
width,
|
|
@@ -1231,7 +1313,7 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
1231
1313
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1232
1314
|
const top = clientRect.top + element.clientTop;
|
|
1233
1315
|
const left = clientRect.left + element.clientLeft;
|
|
1234
|
-
const scale =
|
|
1316
|
+
const scale = getScale(element);
|
|
1235
1317
|
const width = element.clientWidth * scale.x;
|
|
1236
1318
|
const height = element.clientHeight * scale.y;
|
|
1237
1319
|
const x = left * scale.x;
|
|
@@ -1245,8 +1327,8 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
1245
1327
|
}
|
|
1246
1328
|
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1247
1329
|
let rect;
|
|
1248
|
-
if (clippingAncestor === 'viewport') {
|
|
1249
|
-
rect = getViewportRect(element, strategy);
|
|
1330
|
+
if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {
|
|
1331
|
+
rect = getViewportRect(element, strategy, clippingAncestor);
|
|
1250
1332
|
} else if (clippingAncestor === 'document') {
|
|
1251
1333
|
rect = getDocumentRect(getDocumentElement(element));
|
|
1252
1334
|
} else if (isElement(clippingAncestor)) {
|
|
@@ -1262,13 +1344,6 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
1262
1344
|
}
|
|
1263
1345
|
return rectToClientRect(rect);
|
|
1264
1346
|
}
|
|
1265
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1266
|
-
const parentNode = getParentNode(element);
|
|
1267
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1268
|
-
return false;
|
|
1269
|
-
}
|
|
1270
|
-
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1271
|
-
}
|
|
1272
1347
|
|
|
1273
1348
|
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1274
1349
|
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
@@ -1279,7 +1354,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1279
1354
|
return cachedResult;
|
|
1280
1355
|
}
|
|
1281
1356
|
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1282
|
-
let
|
|
1357
|
+
let lastKeptComputedStyle = null;
|
|
1283
1358
|
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1284
1359
|
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1285
1360
|
|
|
@@ -1287,16 +1362,20 @@ function getClippingElementAncestors(element, cache) {
|
|
|
1287
1362
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1288
1363
|
const computedStyle = getComputedStyle$1(currentNode);
|
|
1289
1364
|
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1365
|
+
// Position of the containing block chain below the current node. A fixed
|
|
1366
|
+
// element whose containing block hasn't been found yet is a fixed chain.
|
|
1367
|
+
const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';
|
|
1368
|
+
|
|
1369
|
+
// A non-containing ancestor does not clip the element when the chain
|
|
1370
|
+
// below it escapes it: a fixed chain escapes all ancestors up to the
|
|
1371
|
+
// next containing block, an absolute chain escapes static ancestors.
|
|
1372
|
+
const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');
|
|
1294
1373
|
if (shouldDropCurrentNode) {
|
|
1295
1374
|
// Drop non-containing blocks.
|
|
1296
1375
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1297
1376
|
} else {
|
|
1298
|
-
//
|
|
1299
|
-
|
|
1377
|
+
// The kept node carries the chain position for the next iteration.
|
|
1378
|
+
lastKeptComputedStyle = computedStyle;
|
|
1300
1379
|
}
|
|
1301
1380
|
currentNode = getParentNode(currentNode);
|
|
1302
1381
|
}
|
|
@@ -1356,13 +1435,7 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1356
1435
|
scrollTop: 0
|
|
1357
1436
|
};
|
|
1358
1437
|
const offsets = createCoords(0);
|
|
1359
|
-
|
|
1360
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1361
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1362
|
-
function setLeftRTLScrollbarOffset() {
|
|
1363
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1364
|
-
}
|
|
1365
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1438
|
+
if (isOffsetParentAnElement || !isFixed) {
|
|
1366
1439
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1367
1440
|
scroll = getNodeScroll(offsetParent);
|
|
1368
1441
|
}
|
|
@@ -1370,12 +1443,13 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1370
1443
|
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1371
1444
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1372
1445
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1373
|
-
} else if (documentElement) {
|
|
1374
|
-
setLeftRTLScrollbarOffset();
|
|
1375
1446
|
}
|
|
1376
1447
|
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1448
|
+
|
|
1449
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
1450
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
1451
|
+
if (!isOffsetParentAnElement && documentElement) {
|
|
1452
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
1379
1453
|
}
|
|
1380
1454
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
1381
1455
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
@@ -1475,7 +1549,7 @@ function rectsAreEqual(a, b) {
|
|
|
1475
1549
|
}
|
|
1476
1550
|
|
|
1477
1551
|
// https://samthor.au/2021/observing-dom/
|
|
1478
|
-
function observeMove(element, onMove) {
|
|
1552
|
+
function observeMove(element, onMove, ancestorResize) {
|
|
1479
1553
|
let io = null;
|
|
1480
1554
|
let timeoutId;
|
|
1481
1555
|
const root = getDocumentElement(element);
|
|
@@ -1518,13 +1592,22 @@ function observeMove(element, onMove) {
|
|
|
1518
1592
|
let isFirstUpdate = true;
|
|
1519
1593
|
function handleObserve(entries) {
|
|
1520
1594
|
const ratio = entries[0].intersectionRatio;
|
|
1595
|
+
|
|
1596
|
+
// The entry is a snapshot, so the reference may have moved since the
|
|
1597
|
+
// intersection was computed (under performance constraints, or between
|
|
1598
|
+
// consecutive frames of a multi-frame layout shift). The reported ratio
|
|
1599
|
+
// and the observed area are stale in that case and cannot be trusted to
|
|
1600
|
+
// detect subsequent movement, so refresh regardless of the ratio.
|
|
1601
|
+
if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1602
|
+
return refresh();
|
|
1603
|
+
}
|
|
1521
1604
|
if (ratio !== threshold) {
|
|
1522
1605
|
if (!isFirstUpdate) {
|
|
1523
1606
|
return refresh();
|
|
1524
1607
|
}
|
|
1525
1608
|
if (!ratio) {
|
|
1526
|
-
// If the reference is clipped, the ratio is 0. Throttle
|
|
1527
|
-
// to prevent an infinite loop of updates.
|
|
1609
|
+
// If the reference is clipped in place, the ratio is 0. Throttle
|
|
1610
|
+
// the refresh to prevent an infinite loop of updates.
|
|
1528
1611
|
timeoutId = setTimeout(() => {
|
|
1529
1612
|
refresh(false, 1e-7);
|
|
1530
1613
|
}, 1000);
|
|
@@ -1532,16 +1615,6 @@ function observeMove(element, onMove) {
|
|
|
1532
1615
|
refresh(false, ratio);
|
|
1533
1616
|
}
|
|
1534
1617
|
}
|
|
1535
|
-
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1536
|
-
// It's possible that even though the ratio is reported as 1, the
|
|
1537
|
-
// element is not actually fully within the IntersectionObserver's root
|
|
1538
|
-
// area anymore. This can happen under performance constraints. This may
|
|
1539
|
-
// be a bug in the browser's IntersectionObserver implementation. To
|
|
1540
|
-
// work around this, we compare the element's bounding rect now with
|
|
1541
|
-
// what it was at the time we created the IntersectionObserver. If they
|
|
1542
|
-
// are not equal then the element moved, so we refresh.
|
|
1543
|
-
refresh();
|
|
1544
|
-
}
|
|
1545
1618
|
isFirstUpdate = false;
|
|
1546
1619
|
}
|
|
1547
1620
|
|
|
@@ -1558,8 +1631,18 @@ function observeMove(element, onMove) {
|
|
|
1558
1631
|
}
|
|
1559
1632
|
io.observe(element);
|
|
1560
1633
|
}
|
|
1634
|
+
const win = getWindow(element);
|
|
1635
|
+
// The window is a resize ancestor, so when `ancestorResize` is enabled its
|
|
1636
|
+
// listener already runs the update on resize. Here we only need to rebuild
|
|
1637
|
+
// the `IntersectionObserver` for the new root size, skipping a redundant
|
|
1638
|
+
// update. When `ancestorResize` is disabled, this becomes the sole update.
|
|
1639
|
+
const handleResize = () => refresh(ancestorResize);
|
|
1640
|
+
win.addEventListener('resize', handleResize);
|
|
1561
1641
|
refresh(true);
|
|
1562
|
-
return
|
|
1642
|
+
return () => {
|
|
1643
|
+
win.removeEventListener('resize', handleResize);
|
|
1644
|
+
cleanup();
|
|
1645
|
+
};
|
|
1563
1646
|
}
|
|
1564
1647
|
|
|
1565
1648
|
/**
|
|
@@ -1584,12 +1667,10 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1584
1667
|
const referenceEl = unwrapElement(reference);
|
|
1585
1668
|
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];
|
|
1586
1669
|
ancestors.forEach(ancestor => {
|
|
1587
|
-
ancestorScroll && ancestor.addEventListener('scroll', update
|
|
1588
|
-
passive: true
|
|
1589
|
-
});
|
|
1670
|
+
ancestorScroll && ancestor.addEventListener('scroll', update);
|
|
1590
1671
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1591
1672
|
});
|
|
1592
|
-
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
1673
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
|
|
1593
1674
|
let reobserveFrame = -1;
|
|
1594
1675
|
let resizeObserver = null;
|
|
1595
1676
|
if (elementResize) {
|
|
@@ -1667,6 +1748,14 @@ const shift = shift$1;
|
|
|
1667
1748
|
*/
|
|
1668
1749
|
const flip = flip$1;
|
|
1669
1750
|
|
|
1751
|
+
/**
|
|
1752
|
+
* Provides data that allows you to change the size of the floating element —
|
|
1753
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
1754
|
+
* width of the reference element.
|
|
1755
|
+
* @see https://floating-ui.com/docs/size
|
|
1756
|
+
*/
|
|
1757
|
+
const size = size$1;
|
|
1758
|
+
|
|
1670
1759
|
/**
|
|
1671
1760
|
* Provides data to hide the floating element in applicable situations, such as
|
|
1672
1761
|
* when it is not in the same clipping context as the reference element.
|
|
@@ -1690,11 +1779,9 @@ const computePosition = (reference, floating, options) => {
|
|
|
1690
1779
|
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1691
1780
|
// single call. If other functions become expensive, we can add them as well.
|
|
1692
1781
|
const cache = new Map();
|
|
1693
|
-
const mergedOptions = {
|
|
1694
|
-
platform,
|
|
1695
|
-
...options
|
|
1696
|
-
};
|
|
1782
|
+
const mergedOptions = options != null ? options : {};
|
|
1697
1783
|
const platformWithCache = {
|
|
1784
|
+
...platform,
|
|
1698
1785
|
...mergedOptions.platform,
|
|
1699
1786
|
_c: cache
|
|
1700
1787
|
};
|
|
@@ -1704,4 +1791,4 @@ const computePosition = (reference, floating, options) => {
|
|
|
1704
1791
|
});
|
|
1705
1792
|
};
|
|
1706
1793
|
|
|
1707
|
-
export { autoUpdate as a, arrow as b, computePosition as c, flip as f, hide as h, offset as o, shift as s };
|
|
1794
|
+
export { autoUpdate as a, arrow as b, computePosition as c, size as d, flip as f, hide as h, offset as o, shift as s };
|
|
@@ -22,5 +22,24 @@ const getDeepActiveElement = (root = document) => {
|
|
|
22
22
|
const shadowRoot = activeElement && 'shadowRoot' in activeElement ? activeElement.shadowRoot : null;
|
|
23
23
|
return shadowRoot?.activeElement ? getDeepActiveElement(shadowRoot) : activeElement;
|
|
24
24
|
};
|
|
25
|
+
/** Seletores CSS canônicos para elementos nativos e Web Components focáveis no GovBR-DS. */
|
|
26
|
+
const FOCUSABLE_SELECTORS = [
|
|
27
|
+
'a[href]:not([disabled])',
|
|
28
|
+
'button:not([disabled])',
|
|
29
|
+
'br-button:not([disabled]):not([tabindex="-1"])',
|
|
30
|
+
'input:not([disabled])',
|
|
31
|
+
'br-input:not([disabled]):not([tabindex="-1"])',
|
|
32
|
+
'select:not([disabled])',
|
|
33
|
+
'br-select:not([disabled]):not([tabindex="-1"])',
|
|
34
|
+
'textarea:not([disabled])',
|
|
35
|
+
'br-textarea:not([disabled]):not([tabindex="-1"])',
|
|
36
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
37
|
+
].join(',');
|
|
38
|
+
/**
|
|
39
|
+
* Filtra elementos que são visíveis no DOM (com dimensões maiores que zero e visibilidade CSS).
|
|
40
|
+
*/
|
|
41
|
+
const filterVisibleElements = (elements) => {
|
|
42
|
+
return elements.filter((el) => el.offsetWidth > 0 && el.offsetHeight > 0 && getComputedStyle(el).visibility !== 'hidden');
|
|
43
|
+
};
|
|
25
44
|
|
|
26
|
-
export { captureFocus as c, getDeepActiveElement as g, restoreFocus as r };
|
|
45
|
+
export { FOCUSABLE_SELECTORS as F, captureFocus as c, filterVisibleElements as f, getDeepActiveElement as g, restoreFocus as r };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
function isCompactHeaderWithoutBrand(element) {
|
|
6
|
+
const header = element.closest('br-header');
|
|
7
|
+
if (!header)
|
|
8
|
+
return false;
|
|
9
|
+
const isCompact = header.compact ?? header.isCompact;
|
|
10
|
+
const hasBrand = header.querySelector('[slot="logo"], [slot="signature"]') !== null ||
|
|
11
|
+
(typeof header.signature === 'string' && header.signature.trim().length > 0);
|
|
12
|
+
return Boolean(isCompact && !hasBrand);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { isCompactHeaderWithoutBrand as i };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Construído por SERPRO
|
|
3
|
+
* © https://serpro.gov.br/ - MIT License.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Utilitário para geração de IDs únicos para Web Components.
|
|
7
|
+
*
|
|
8
|
+
* O Web Crypto fornece entropia sem depender de relógio ou de estado compartilhado
|
|
9
|
+
* entre instâncias. O prefixo `b` mantém o valor compatível com seletores CSS e com
|
|
10
|
+
* os IDs gerados pelas versões anteriores da biblioteca.
|
|
11
|
+
*/
|
|
12
|
+
function createRandomToken() {
|
|
13
|
+
const cryptoApi = globalThis.crypto;
|
|
14
|
+
if (!cryptoApi) {
|
|
15
|
+
throw new Error('A API Web Crypto é necessária para gerar IDs de componentes.');
|
|
16
|
+
}
|
|
17
|
+
if (cryptoApi?.randomUUID) {
|
|
18
|
+
return cryptoApi.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
19
|
+
}
|
|
20
|
+
if (cryptoApi?.getRandomValues) {
|
|
21
|
+
const values = cryptoApi.getRandomValues(new Uint32Array(3));
|
|
22
|
+
return Array.from(values)
|
|
23
|
+
.map((value) => value.toString(36))
|
|
24
|
+
.join('')
|
|
25
|
+
.slice(0, 16);
|
|
26
|
+
}
|
|
27
|
+
throw new Error('A API Web Crypto não expõe randomUUID nem getRandomValues.');
|
|
28
|
+
}
|
|
29
|
+
function generateUniqueId(prefix) {
|
|
30
|
+
const id = `b${createRandomToken()}`;
|
|
31
|
+
return prefix ? `${prefix}-${id}` : id;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { generateUniqueId as g };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Construído por SERPRO
|
|
3
3
|
* © https://serpro.gov.br/ - MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { p as requireAddDays, w as requireBuildFormatLongFn, x as requireBuildLocalizeFn, y as requireBuildMatchFn, z as requireBuildMatchPatternFn, o as requireSetDay, v as requireSetMonth, k as requireStartOfWeek,
|
|
5
|
+
import { p as requireAddDays, w as requireBuildFormatLongFn, x as requireBuildLocalizeFn, y as requireBuildMatchFn, z as requireBuildMatchPatternFn, o as requireSetDay, v as requireSetMonth, k as requireStartOfWeek, a as DATETIME_PICKER_LOCALE, f as formatExports } from './datetime-picker-constants-BtRPYRvA.js';
|
|
6
6
|
|
|
7
7
|
var addDaysExports = /*@__PURE__*/ requireAddDays();
|
|
8
8
|
|