@duetds/components 10.0.0-alpha.3 → 10.0.0-alpha.31
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/hydrate/index.d.ts +38 -7
- package/hydrate/index.js +11811 -4285
- package/hydrate/index.mjs +46055 -0
- package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
- package/lib/cjs/{a11y-utils-8177cf00.js → a11y-utils-DDfmTUFZ.js} +1 -1
- package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
- package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
- package/lib/cjs/{app-globals-718a3704.js → app-globals-BUWupN9p.js} +2 -2
- package/lib/cjs/{common-strings-2984301e.js → common-strings-CSqtNIxt.js} +29 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
- package/lib/cjs/duet-alert.cjs.entry.js +102 -48
- package/lib/cjs/duet-badge.cjs.entry.js +31 -9
- package/lib/cjs/duet-banner.cjs.entry.js +71 -28
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +37 -26
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +20 -14
- package/lib/cjs/duet-button_2.cjs.entry.js +157 -74
- package/lib/cjs/duet-callout.cjs.entry.js +13 -10
- package/lib/cjs/duet-caption_4.cjs.entry.js +211 -75
- package/lib/cjs/duet-card.cjs.entry.js +95 -34
- package/lib/cjs/duet-checkbox.cjs.entry.js +68 -32
- package/lib/cjs/duet-checkmark.cjs.entry.js +21 -9
- package/lib/cjs/duet-chip.cjs.entry.js +356 -0
- package/lib/cjs/duet-choice_2.cjs.entry.js +276 -128
- package/lib/cjs/duet-collapsible.cjs.entry.js +94 -29
- package/lib/cjs/duet-combobox.cjs.entry.js +85 -48
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -18
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +14 -11
- package/lib/cjs/duet-date-picker.cjs.entry.js +163 -57
- package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +553 -210
- package/lib/cjs/duet-empty-state.cjs.entry.js +15 -9
- package/lib/cjs/duet-fieldset.cjs.entry.js +51 -18
- package/lib/cjs/duet-file-chooser.cjs.entry.js +18 -11
- package/lib/cjs/duet-footer.cjs.entry.js +56 -30
- package/lib/cjs/duet-grid_2.cjs.entry.js +165 -64
- package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
- package/lib/cjs/duet-hero.cjs.entry.js +155 -32
- package/lib/cjs/duet-icon.cjs.entry.js +64 -20
- package/lib/cjs/duet-indicator.cjs.entry.js +61 -0
- package/lib/cjs/duet-input_2.cjs.entry.js +204 -86
- package/lib/cjs/duet-layout.cjs.entry.js +33 -13
- package/lib/cjs/duet-list_2.cjs.entry.js +58 -14
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +24 -16
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +19 -14
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +21 -16
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +18 -10
- package/lib/cjs/duet-menu-bar.cjs.entry.js +37 -58
- package/lib/cjs/duet-modal.cjs.entry.js +122 -35
- package/lib/cjs/duet-multiselect.cjs.entry.js +88 -42
- package/lib/cjs/duet-nav.cjs.entry.js +12 -8
- package/lib/cjs/duet-notification_2.cjs.entry.js +98 -32
- package/lib/cjs/duet-number-input.cjs.entry.js +185 -70
- package/lib/cjs/duet-overlay.cjs.entry.js +36 -14
- package/lib/cjs/duet-page-heading.cjs.entry.js +16 -11
- package/lib/cjs/duet-pagination_2.cjs.entry.js +162 -87
- package/lib/cjs/duet-panel.cjs.entry.js +53 -0
- package/lib/cjs/duet-phone-input.cjs.entry.js +2072 -0
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +552 -0
- package/lib/cjs/duet-progress.cjs.entry.js +32 -13
- package/lib/cjs/duet-promo-card.cjs.entry.js +27 -13
- package/lib/cjs/duet-radio_2.cjs.entry.js +114 -55
- package/lib/cjs/duet-range-slider.cjs.entry.js +73 -37
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +269 -130
- package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
- package/lib/cjs/duet-select.cjs.entry.js +89 -43
- package/lib/cjs/duet-shaped-image.cjs.entry.js +16 -11
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
- package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
- package/lib/cjs/duet-show-more.cjs.entry.js +81 -38
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +10 -10
- package/lib/cjs/duet-slideout-link.cjs.entry.js +61 -10
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +25 -14
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +50 -36
- package/lib/cjs/duet-slideout.cjs.entry.js +110 -60
- package/lib/cjs/duet-status-icon.cjs.entry.js +99 -0
- package/lib/cjs/duet-step_2.cjs.entry.js +72 -24
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +25 -10
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +27 -18
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +40 -19
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +18 -9
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +27 -21
- package/lib/cjs/duet-textarea.cjs.entry.js +109 -50
- package/lib/cjs/duet-toggle.cjs.entry.js +50 -29
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +22 -11
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +27 -16
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +46 -19
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +21 -10
- package/lib/cjs/duet-toolbar.cjs.entry.js +12 -10
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +24 -27
- package/lib/cjs/duet-tooltip.cjs.entry.js +98 -46
- package/lib/cjs/duet-tray.cjs.entry.js +63 -24
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +30 -11
- package/lib/cjs/duet-upload-item.cjs.entry.js +12 -22
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +4 -7
- package/lib/cjs/duet.cjs.js +8 -8
- package/lib/cjs/{errorcodes.utils-4e8a9de4.js → errorcodes.utils-HU_3reMl.js} +2 -2
- package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
- package/lib/cjs/{focus-utils-2a0030aa.js → focus-utils-DHGNKs9U.js} +1 -1
- package/lib/cjs/form-search-CzPfHB80.js +21 -0
- package/lib/cjs/index-CKsfMbRW.js +3107 -0
- package/lib/cjs/{keyboard-utils-681e11ec.js → keyboard-utils-D9UlHbik.js} +4 -0
- package/lib/cjs/{label-2abeac23.js → label-DbnS5tex.js} +1 -1
- package/lib/cjs/{language-utils-b5940c7b.js → language-utils-CYOjMfnd.js} +10 -2
- package/lib/cjs/loader.cjs.js +3 -5
- package/lib/cjs/{slot-utils-382633cf.js → slot-utils-D4QyzHw3.js} +6 -1
- package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
- package/lib/cjs/themeable-component-BuC0WY98.js +74 -0
- package/lib/cjs/{token-utils-5000595c.js → token-utils-COKjUxmn.js} +80 -9
- package/lib/cjs/{tokens-57e06fe4.js → tokens-9aevMbB1.js} +150 -8
- package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Bhh9B2g8.js} +99 -3
- package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
- package/lib/collection/collection-manifest.json +7 -1
- package/lib/collection/common/themeable-component.js +61 -3
- package/lib/collection/common-strings.js +27 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
- package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
- package/lib/collection/components/duet-alert/duet-alert.css +88 -59
- package/lib/collection/components/duet-alert/duet-alert.js +141 -57
- package/lib/collection/components/duet-badge/duet-badge.css +24 -9
- package/lib/collection/components/duet-badge/duet-badge.js +30 -6
- package/lib/collection/components/duet-banner/duet-banner.css +50 -24
- package/lib/collection/components/duet-banner/duet-banner.js +94 -29
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
- package/lib/collection/components/duet-button/duet-button.css +166 -48
- package/lib/collection/components/duet-button/duet-button.js +175 -91
- package/lib/collection/components/duet-callout/duet-callout.css +7 -2
- package/lib/collection/components/duet-callout/duet-callout.js +10 -4
- package/lib/collection/components/duet-caption/duet-caption.css +7 -3
- package/lib/collection/components/duet-caption/duet-caption.js +18 -6
- package/lib/collection/components/duet-card/duet-card.css +48 -16
- package/lib/collection/components/duet-card/duet-card.js +134 -37
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +26 -8
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +86 -47
- package/lib/collection/components/duet-chip/duet-chip.css +66 -25
- package/lib/collection/components/duet-chip/duet-chip.js +70 -36
- package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
- package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
- package/lib/collection/components/duet-choice/duet-choice.css +96 -38
- package/lib/collection/components/duet-choice/duet-choice.js +228 -133
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +108 -47
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +52 -13
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +116 -28
- package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
- package/lib/collection/components/duet-combobox/duet-combobox.js +88 -46
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +11 -5
- package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
- package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +99 -46
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +177 -69
- package/lib/collection/components/duet-divider/duet-divider.css +12 -6
- package/lib/collection/components/duet-divider/duet-divider.js +14 -4
- package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +83 -26
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +14 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +17 -7
- package/lib/collection/components/duet-footer/duet-footer.css +43 -14
- package/lib/collection/components/duet-footer/duet-footer.js +55 -27
- package/lib/collection/components/duet-grid/duet-grid.css +2 -6
- package/lib/collection/components/duet-grid/duet-grid.js +144 -67
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
- package/lib/collection/components/duet-header/duet-header.css +165 -65
- package/lib/collection/components/duet-header/duet-header.js +165 -76
- package/lib/collection/components/duet-heading/duet-heading.css +11 -5
- package/lib/collection/components/duet-heading/duet-heading.js +56 -12
- package/lib/collection/components/duet-hero/duet-hero.css +326 -18
- package/lib/collection/components/duet-hero/duet-hero.js +195 -53
- package/lib/collection/components/duet-icon/duet-icon.css +17 -5
- package/lib/collection/components/duet-icon/duet-icon.js +71 -24
- package/lib/collection/components/duet-indicator/duet-indicator.css +50 -0
- package/lib/collection/components/duet-indicator/duet-indicator.js +138 -0
- package/lib/collection/components/duet-input/duet-input.css +155 -53
- package/lib/collection/components/duet-input/duet-input.js +241 -138
- package/lib/collection/components/duet-label/duet-label.css +8 -4
- package/lib/collection/components/duet-label/duet-label.js +23 -8
- package/lib/collection/components/duet-layout/duet-layout.css +4 -7
- package/lib/collection/components/duet-layout/duet-layout.js +35 -12
- package/lib/collection/components/duet-link/duet-link.css +169 -22
- package/lib/collection/components/duet-link/duet-link.js +121 -70
- package/lib/collection/components/duet-list/duet-list.css +4 -4
- package/lib/collection/components/duet-list/duet-list.js +38 -9
- package/lib/collection/components/duet-list-item/duet-list-item.css +25 -5
- package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
- package/lib/collection/components/duet-logo/duet-logo.css +36 -8
- package/lib/collection/components/duet-logo/duet-logo.js +111 -11
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +110 -8
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +59 -57
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
- package/lib/collection/components/duet-modal/duet-modal.css +23 -25
- package/lib/collection/components/duet-modal/duet-modal.js +193 -39
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +70 -29
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +98 -48
- package/lib/collection/components/duet-nav/duet-nav.css +8 -4
- package/lib/collection/components/duet-nav/duet-nav.js +10 -3
- package/lib/collection/components/duet-notification/duet-notification.css +33 -26
- package/lib/collection/components/duet-notification/duet-notification.js +46 -9
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +57 -24
- package/lib/collection/components/duet-number-input/duet-number-input.css +29 -14
- package/lib/collection/components/duet-number-input/duet-number-input.js +190 -95
- package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
- package/lib/collection/components/duet-overlay/duet-overlay.js +40 -15
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
- package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +130 -76
- package/lib/collection/components/duet-panel/duet-panel.css +98 -0
- package/lib/collection/components/duet-panel/duet-panel.js +234 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +29 -8
- package/lib/collection/components/duet-phone-input/duet-phone-input.css +64 -0
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +930 -0
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +235 -76
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +64 -29
- package/lib/collection/components/duet-progress/duet-progress.css +27 -8
- package/lib/collection/components/duet-progress/duet-progress.js +36 -14
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +18 -12
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +47 -11
- package/lib/collection/components/duet-radio/duet-radio.css +41 -8
- package/lib/collection/components/duet-radio/duet-radio.js +67 -49
- package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +63 -18
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +85 -46
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +43 -14
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +84 -47
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +160 -43
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -7
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
- package/lib/collection/components/duet-select/duet-select.css +54 -23
- package/lib/collection/components/duet-select/duet-select.js +109 -60
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
- package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
- package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
- package/lib/collection/components/duet-show-more/duet-show-more.js +87 -37
- package/lib/collection/components/duet-slideout/duet-slideout.css +72 -40
- package/lib/collection/components/duet-slideout/duet-slideout.js +109 -54
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +41 -13
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +135 -12
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
- package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
- package/lib/collection/components/duet-spacer/duet-spacer.js +14 -4
- package/lib/collection/components/duet-spinner/duet-spinner.css +10 -16
- package/lib/collection/components/duet-spinner/duet-spinner.js +21 -23
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +197 -0
- package/lib/collection/components/duet-step/duet-step.css +28 -13
- package/lib/collection/components/duet-step/duet-step.js +25 -16
- package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +45 -10
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
- package/lib/collection/components/duet-tab/duet-tab.css +15 -11
- package/lib/collection/components/duet-tab/duet-tab.js +88 -24
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +218 -129
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +228 -83
- package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
- package/lib/collection/components/duet-table/duet-table.js +42 -13
- package/lib/collection/components/duet-textarea/duet-textarea.css +64 -22
- package/lib/collection/components/duet-textarea/duet-textarea.js +159 -74
- package/lib/collection/components/duet-toggle/duet-toggle.css +26 -10
- package/lib/collection/components/duet-toggle/duet-toggle.js +62 -38
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +36 -12
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +42 -10
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +100 -45
- package/lib/collection/components/duet-tray/duet-tray.css +43 -27
- package/lib/collection/components/duet-tray/duet-tray.js +63 -21
- package/lib/collection/components/duet-upload/duet-upload.css +6 -6
- package/lib/collection/components/duet-upload/duet-upload.js +419 -213
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +17 -18
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/data/countries.js +1762 -0
- package/lib/collection/index.js +1 -0
- package/lib/collection/utils/keyboard-utils.js +3 -0
- package/lib/collection/utils/language-utils.js +7 -0
- package/lib/collection/utils/slot-utils.js +4 -0
- package/lib/collection/utils/teleport.js +22 -7
- package/lib/collection/utils/test-utils.js +2 -2
- package/lib/collection/utils/token-utils.js +59 -7
- package/lib/collection/utils/turva2-color-tokens.js +42 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-06db096d.entry.js +4 -0
- package/lib/duet/p-0d373228.entry.js +4 -0
- package/lib/duet/p-15d39d1f.entry.js +4 -0
- package/lib/duet/p-16caa5b6.entry.js +4 -0
- package/lib/duet/p-18c37a64.entry.js +4 -0
- package/lib/duet/p-1e78e2c1.entry.js +4 -0
- package/lib/duet/p-1ff6c95a.entry.js +4 -0
- package/lib/duet/p-208c5266.entry.js +4 -0
- package/lib/duet/p-22297e2c.entry.js +4 -0
- package/lib/duet/p-23ab5f9a.entry.js +4 -0
- package/lib/duet/p-26948251.entry.js +4 -0
- package/lib/duet/p-28568a2e.entry.js +4 -0
- package/lib/duet/p-2892dd48.entry.js +4 -0
- package/lib/duet/p-2a1cbe32.entry.js +4 -0
- package/lib/duet/p-309afd7a.entry.js +4 -0
- package/lib/duet/p-3555559c.entry.js +4 -0
- package/lib/duet/p-391d7483.entry.js +4 -0
- package/lib/duet/{p-6be341c4.entry.js → p-3aecdd96.entry.js} +1 -1
- package/lib/duet/p-3d6a1cbd.entry.js +4 -0
- package/lib/duet/{p-ff4f7076.entry.js → p-4266fbf1.entry.js} +1 -1
- package/lib/duet/p-49cec27c.entry.js +4 -0
- package/lib/duet/p-4a54f0ec.entry.js +4 -0
- package/lib/duet/p-4a6a79ac.entry.js +4 -0
- package/lib/duet/p-4b6399eb.entry.js +4 -0
- package/lib/duet/p-4e05a8a2.entry.js +4 -0
- package/lib/duet/p-509d502b.entry.js +4 -0
- package/lib/duet/p-534e3e7e.entry.js +4 -0
- package/lib/duet/p-53eddd20.entry.js +4 -0
- package/lib/duet/p-5470d3ee.entry.js +4 -0
- package/lib/duet/p-5540e106.entry.js +4 -0
- package/lib/duet/p-581bd1e2.entry.js +4 -0
- package/lib/duet/p-594e10ea.entry.js +4 -0
- package/lib/duet/p-5c0847ed.entry.js +4 -0
- package/lib/duet/p-5eaf6c14.entry.js +4 -0
- package/lib/duet/p-5iZMFvpJ.js +4 -0
- package/lib/duet/p-60102fbf.entry.js +4 -0
- package/lib/duet/p-6952b6c4.entry.js +4 -0
- package/lib/duet/p-69fcd700.entry.js +4 -0
- package/lib/duet/p-7159567b.entry.js +4 -0
- package/lib/duet/p-72c34073.entry.js +4 -0
- package/lib/duet/p-7587023c.entry.js +4 -0
- package/lib/duet/p-75a6c4ea.entry.js +4 -0
- package/lib/duet/p-76906326.entry.js +4 -0
- package/lib/duet/p-7d8a853a.entry.js +4 -0
- package/lib/duet/p-7def72b6.entry.js +4 -0
- package/lib/duet/p-7e14f2af.entry.js +4 -0
- package/lib/duet/p-82a8d1b8.entry.js +4 -0
- package/lib/duet/p-83471afa.entry.js +4 -0
- package/lib/duet/p-83ea7a2c.entry.js +4 -0
- package/lib/duet/p-8c4cf422.entry.js +4 -0
- package/lib/duet/p-8fc3ee0c.entry.js +4 -0
- package/lib/duet/p-91f53c07.entry.js +4 -0
- package/lib/duet/p-93e08345.entry.js +4 -0
- package/lib/duet/p-94e4dcc5.entry.js +4 -0
- package/lib/duet/p-987f395f.entry.js +4 -0
- package/lib/duet/p-9e0e21eb.entry.js +4 -0
- package/lib/duet/p-9f038082.entry.js +4 -0
- package/lib/duet/p-B0SZpElh.js +4 -0
- package/lib/duet/p-BO8h6fkS.js +4 -0
- package/lib/duet/p-BVAkfiYN.js +5 -0
- package/lib/duet/p-BVgBUIYF.js +4 -0
- package/lib/duet/p-BWvtXbhA.js +4 -0
- package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
- package/lib/duet/p-Bh9dkusU.js +4 -0
- package/lib/duet/p-BmMFVM-y.js +4 -0
- package/lib/duet/p-Bpx9VxA7.js +4 -0
- package/lib/duet/{p-8c9eb171.js → p-CSVmZZ1n.js} +1 -1
- package/lib/duet/p-CooAqTCj.js +4 -0
- package/lib/duet/{p-2eae4a0b.js → p-D8ISRP9m.js} +1 -1
- package/lib/duet/p-Db8rvjPI.js +4 -0
- package/lib/duet/p-DcQPCCbT.js +4 -0
- package/lib/duet/p-Df3Doz7n.js +4 -0
- package/lib/duet/p-DvwKrUS6.js +4 -0
- package/lib/duet/{p-2b6a7397.js → p-J96UYMqg.js} +1 -1
- package/lib/duet/p-b171fbba.entry.js +4 -0
- package/lib/duet/p-b95c5ccf.entry.js +4 -0
- package/lib/duet/p-b9869df2.entry.js +4 -0
- package/lib/duet/p-c05e4dae.entry.js +4 -0
- package/lib/duet/p-c0942782.entry.js +4 -0
- package/lib/duet/p-c2ca49c2.entry.js +4 -0
- package/lib/duet/p-c392eb8d.entry.js +4 -0
- package/lib/duet/p-c6b031aa.entry.js +4 -0
- package/lib/duet/p-c9000a76.entry.js +4 -0
- package/lib/duet/p-cbc310dc.entry.js +4 -0
- package/lib/duet/p-d3812b9c.entry.js +4 -0
- package/lib/duet/p-d3edd251.entry.js +4 -0
- package/lib/duet/p-d618c7d5.entry.js +4 -0
- package/lib/duet/p-ddcc5283.entry.js +4 -0
- package/lib/duet/p-e05b9e89.entry.js +4 -0
- package/lib/duet/p-e16141aa.entry.js +4 -0
- package/lib/duet/p-e2a75d7e.entry.js +4 -0
- package/lib/duet/p-e59a56b9.entry.js +4 -0
- package/lib/duet/p-e6f0473b.entry.js +4 -0
- package/lib/duet/p-e71cd888.entry.js +4 -0
- package/lib/duet/p-e832a646.entry.js +4 -0
- package/lib/duet/p-e9a32cd5.entry.js +4 -0
- package/lib/duet/p-ea010c0c.entry.js +4 -0
- package/lib/duet/p-ea333ff9.entry.js +4 -0
- package/lib/duet/p-eadd1f00.entry.js +4 -0
- package/lib/duet/p-f1e8ef6c.entry.js +4 -0
- package/lib/duet/p-f9010948.entry.js +4 -0
- package/lib/duet/p-fcd416b7.entry.js +4 -0
- package/lib/duet/p-fe5f6bf5.entry.js +4 -0
- package/lib/duet/p-ff8f848e.entry.js +4 -0
- package/lib/duet/p-s4mQ--kV.js +4 -0
- package/lib/duet/p-vVCYtBMj.js +4 -0
- package/lib/duet/p-zqnwKSPV.js +4 -0
- package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
- package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-Cm7NmtQF.js} +1 -1
- package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
- package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
- package/lib/esm/{app-globals-00959ca9.js → app-globals-BfoWvhn6.js} +2 -2
- package/lib/esm/common-strings-BWvtXbhA.js +52 -0
- package/lib/esm/duet-action-button.entry.js +84 -27
- package/lib/esm/duet-alert.entry.js +102 -46
- package/lib/esm/duet-badge.entry.js +31 -7
- package/lib/esm/duet-banner.entry.js +71 -26
- package/lib/esm/duet-breadcrumb.entry.js +38 -25
- package/lib/esm/duet-breadcrumbs.entry.js +20 -12
- package/lib/esm/duet-button_2.entry.js +157 -72
- package/lib/esm/duet-callout.entry.js +13 -8
- package/lib/esm/duet-caption_4.entry.js +211 -73
- package/lib/esm/duet-card.entry.js +95 -32
- package/lib/esm/duet-checkbox.entry.js +68 -30
- package/lib/esm/duet-checkmark.entry.js +21 -7
- package/lib/esm/duet-chip.entry.js +354 -0
- package/lib/esm/duet-choice_2.entry.js +277 -127
- package/lib/esm/duet-collapsible.entry.js +94 -27
- package/lib/esm/duet-combobox.entry.js +85 -46
- package/lib/esm/duet-contact-card.entry.js +17 -16
- package/lib/esm/duet-cookie-consent.entry.js +14 -9
- package/lib/esm/duet-date-picker.entry.js +163 -55
- package/lib/esm/duet-divider_2.entry.js +30 -12
- package/lib/esm/duet-editable-table_3.entry.js +553 -208
- package/lib/esm/duet-empty-state.entry.js +15 -7
- package/lib/esm/duet-fieldset.entry.js +51 -16
- package/lib/esm/duet-file-chooser.entry.js +18 -9
- package/lib/esm/duet-footer.entry.js +56 -28
- package/lib/esm/duet-grid_2.entry.js +165 -62
- package/lib/esm/duet-header_2.entry.js +303 -90
- package/lib/esm/duet-hero.entry.js +155 -30
- package/lib/esm/duet-icon.entry.js +64 -18
- package/lib/esm/duet-indicator.entry.js +59 -0
- package/lib/esm/duet-input_2.entry.js +205 -85
- package/lib/esm/duet-layout.entry.js +33 -11
- package/lib/esm/duet-list_2.entry.js +58 -12
- package/lib/esm/duet-menu-bar-button.entry.js +24 -14
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
- package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
- package/lib/esm/duet-menu-bar-item.entry.js +40 -17
- package/lib/esm/duet-menu-bar-link.entry.js +18 -8
- package/lib/esm/duet-menu-bar.entry.js +37 -56
- package/lib/esm/duet-modal.entry.js +122 -33
- package/lib/esm/duet-multiselect.entry.js +88 -40
- package/lib/esm/duet-nav.entry.js +12 -6
- package/lib/esm/duet-notification_2.entry.js +98 -30
- package/lib/esm/duet-number-input.entry.js +186 -69
- package/lib/esm/duet-overlay.entry.js +36 -12
- package/lib/esm/duet-page-heading.entry.js +16 -9
- package/lib/esm/duet-pagination_2.entry.js +162 -85
- package/lib/esm/duet-panel.entry.js +51 -0
- package/lib/esm/duet-phone-input.entry.js +2070 -0
- package/lib/esm/duet-popup-menu_2.entry.js +549 -0
- package/lib/esm/duet-progress.entry.js +32 -11
- package/lib/esm/duet-promo-card.entry.js +27 -11
- package/lib/esm/duet-radio_2.entry.js +114 -53
- package/lib/esm/duet-range-slider.entry.js +73 -35
- package/lib/esm/duet-scrollable_3.entry.js +269 -128
- package/lib/esm/duet-section-layout.entry.js +17 -8
- package/lib/esm/duet-select.entry.js +89 -41
- package/lib/esm/duet-shaped-image.entry.js +16 -9
- package/lib/esm/duet-share-chart-item.entry.js +20 -0
- package/lib/esm/duet-share-chart.entry.js +83 -0
- package/lib/esm/duet-show-more.entry.js +81 -36
- package/lib/esm/duet-slideout-lang.entry.js +10 -8
- package/lib/esm/duet-slideout-link.entry.js +61 -8
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
- package/lib/esm/duet-slideout-panel.entry.js +50 -34
- package/lib/esm/duet-slideout.entry.js +110 -58
- package/lib/esm/duet-status-icon.entry.js +97 -0
- package/lib/esm/duet-step_2.entry.js +73 -23
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
- package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
- package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
- package/lib/esm/duet-submenu-bar.entry.js +27 -19
- package/lib/esm/duet-textarea.entry.js +109 -48
- package/lib/esm/duet-toggle.entry.js +50 -27
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
- package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
- package/lib/esm/duet-toolbar-item.entry.js +46 -17
- package/lib/esm/duet-toolbar-link.entry.js +21 -8
- package/lib/esm/duet-toolbar.entry.js +12 -8
- package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
- package/lib/esm/duet-tooltip.entry.js +97 -43
- package/lib/esm/duet-tray.entry.js +63 -22
- package/lib/esm/duet-upload-aria-status.entry.js +30 -9
- package/lib/esm/duet-upload-item.entry.js +12 -20
- package/lib/esm/duet-visually-hidden.entry.js +4 -5
- package/lib/esm/duet.js +7 -6
- package/lib/esm/{errorcodes.utils-d9431251.js → errorcodes.utils-DCSMydPz.js} +3 -3
- package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
- package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-C8cj1ygp.js} +1 -1
- package/lib/esm/form-search-CevX33LA.js +19 -0
- package/lib/esm/{index-1d0b7c66.js → index-BVAkfiYN.js} +2069 -1238
- package/lib/esm/{keyboard-utils-439bcc8b.js → keyboard-utils-Db8rvjPI.js} +4 -1
- package/lib/{dist-custom-elements/p-42619f94.js → esm/label-Cqxj4RVo.js} +1 -1
- package/lib/esm/{language-utils-14969cef.js → language-utils-uFQZRSPE.js} +10 -3
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-4e5ed4eb.js → slot-utils-D8NnYUf2.js} +6 -2
- package/lib/{dist-custom-elements/p-ca3cb21e.js → esm/teleport-CooAqTCj.js} +22 -7
- package/lib/esm/themeable-component-B8TGOi99.js +72 -0
- package/lib/esm/{token-utils-b9ba8c5e.js → token-utils-Dw-GA7-4.js} +80 -10
- package/lib/{dist-custom-elements/p-f6000a03.js → esm/tokens-DcQPCCbT.js} +151 -7
- package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-Bh9dkusU.js} +100 -4
- package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
- package/lib/index.js +1 -1
- package/lib/loader/cdn.js +1 -2
- package/lib/loader/index.cjs.js +1 -2
- package/lib/loader/index.es2017.js +0 -1
- package/lib/loader/index.js +1 -2
- package/lib/types/common-strings.d.ts +3 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
- package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
- package/lib/types/components/duet-banner/duet-banner.d.ts +6 -0
- package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +10 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +1 -5
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +8 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
- package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +9 -7
- package/lib/types/components/duet-heading/duet-heading.d.ts +6 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +10 -2
- package/lib/types/components/duet-indicator/duet-indicator.d.ts +24 -0
- package/lib/types/components/duet-input/duet-input.d.ts +13 -15
- package/lib/types/components/duet-link/duet-link.d.ts +3 -7
- package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
- package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
- package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +5 -2
- package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
- package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
- package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +178 -0
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +19 -5
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
- package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +18 -1
- package/lib/types/components/duet-select/duet-select.d.ts +2 -0
- package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
- package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -3
- package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +17 -0
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +6 -3
- package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +27 -0
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
- package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +24 -4
- package/lib/types/components/duet-textarea/duet-textarea.d.ts +4 -2
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
- package/lib/types/components.d.ts +2392 -56
- package/lib/types/data/countries.d.ts +22 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/stencil-public-runtime.d.ts +35 -6
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/lib/types/utils/language-utils.d.ts +1 -0
- package/lib/types/utils/slot-utils.d.ts +1 -0
- package/lib/types/utils/teleport.d.ts +4 -1
- package/lib/types/utils/token-utils.d.ts +4 -0
- package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
- package/package.json +30 -16
- package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
- package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
- package/lib/cjs/duet-chip_3.cjs.entry.js +0 -699
- package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
- package/lib/cjs/form-search-d61b2843.js +0 -8
- package/lib/cjs/index-21e67ab3.js +0 -2278
- package/lib/cjs/themeable-component-996b489c.js +0 -15
- package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-action-button.js +0 -9
- package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
- package/lib/dist-custom-elements/duet-alert.js +0 -9
- package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
- package/lib/dist-custom-elements/duet-badge.js +0 -9
- package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-banner.js +0 -157
- package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
- package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
- package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
- package/lib/dist-custom-elements/duet-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-button.js +0 -9
- package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-callout.js +0 -72
- package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
- package/lib/dist-custom-elements/duet-caption.js +0 -9
- package/lib/dist-custom-elements/duet-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-card.js +0 -171
- package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkbox.js +0 -9
- package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
- package/lib/dist-custom-elements/duet-checkmark.js +0 -9
- package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-chip.js +0 -9
- package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice-group.js +0 -228
- package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
- package/lib/dist-custom-elements/duet-choice.js +0 -454
- package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
- package/lib/dist-custom-elements/duet-collapsible.js +0 -158
- package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
- package/lib/dist-custom-elements/duet-combobox.js +0 -702
- package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-contact-card.js +0 -134
- package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
- package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
- package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
- package/lib/dist-custom-elements/duet-date-picker.js +0 -932
- package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-divider.js +0 -9
- package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-editable-table.js +0 -258
- package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
- package/lib/dist-custom-elements/duet-empty-state.js +0 -9
- package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
- package/lib/dist-custom-elements/duet-fieldset.js +0 -9
- package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
- package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
- package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-footer.js +0 -223
- package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid-item.js +0 -9
- package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
- package/lib/dist-custom-elements/duet-grid.js +0 -9
- package/lib/dist-custom-elements/duet-header.d.ts +0 -11
- package/lib/dist-custom-elements/duet-header.js +0 -698
- package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-heading.js +0 -9
- package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
- package/lib/dist-custom-elements/duet-hero.js +0 -299
- package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
- package/lib/dist-custom-elements/duet-icon.js +0 -9
- package/lib/dist-custom-elements/duet-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-input.js +0 -9
- package/lib/dist-custom-elements/duet-label.d.ts +0 -11
- package/lib/dist-custom-elements/duet-label.js +0 -70
- package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-layout.js +0 -94
- package/lib/dist-custom-elements/duet-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-link.js +0 -9
- package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list-item.js +0 -9
- package/lib/dist-custom-elements/duet-list.d.ts +0 -11
- package/lib/dist-custom-elements/duet-list.js +0 -9
- package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
- package/lib/dist-custom-elements/duet-logo.js +0 -9
- package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
- package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
- package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-menu-bar.js +0 -206
- package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
- package/lib/dist-custom-elements/duet-modal.js +0 -382
- package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
- package/lib/dist-custom-elements/duet-multiselect.js +0 -346
- package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
- package/lib/dist-custom-elements/duet-nav.js +0 -54
- package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
- package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
- package/lib/dist-custom-elements/duet-notification.js +0 -95
- package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
- package/lib/dist-custom-elements/duet-number-input.js +0 -484
- package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
- package/lib/dist-custom-elements/duet-overlay.js +0 -9
- package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
- package/lib/dist-custom-elements/duet-page-heading.js +0 -87
- package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
- package/lib/dist-custom-elements/duet-pagination.js +0 -493
- package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
- package/lib/dist-custom-elements/duet-paragraph.js +0 -9
- package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
- package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
- package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
- package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
- package/lib/dist-custom-elements/duet-progress.js +0 -9
- package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
- package/lib/dist-custom-elements/duet-promo-card.js +0 -105
- package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio-group.js +0 -213
- package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
- package/lib/dist-custom-elements/duet-radio.js +0 -230
- package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-slider.js +0 -181
- package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
- package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
- package/lib/dist-custom-elements/duet-scrollable.js +0 -9
- package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-section-layout.js +0 -56
- package/lib/dist-custom-elements/duet-select.d.ts +0 -11
- package/lib/dist-custom-elements/duet-select.js +0 -9
- package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
- package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
- package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
- package/lib/dist-custom-elements/duet-show-more.js +0 -9
- package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
- package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-link.js +0 -79
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
- package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
- package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
- package/lib/dist-custom-elements/duet-slideout.js +0 -311
- package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spacer.js +0 -9
- package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
- package/lib/dist-custom-elements/duet-spinner.js +0 -9
- package/lib/dist-custom-elements/duet-step.d.ts +0 -11
- package/lib/dist-custom-elements/duet-step.js +0 -147
- package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
- package/lib/dist-custom-elements/duet-stepper.js +0 -151
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
- package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
- package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
- package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
- package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab-group.js +0 -339
- package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tab.js +0 -150
- package/lib/dist-custom-elements/duet-table.d.ts +0 -11
- package/lib/dist-custom-elements/duet-table.js +0 -9
- package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
- package/lib/dist-custom-elements/duet-textarea.js +0 -301
- package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toggle.js +0 -146
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
- package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
- package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
- package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
- package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
- package/lib/dist-custom-elements/duet-toolbar.js +0 -67
- package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
- package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tooltip.js +0 -9
- package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
- package/lib/dist-custom-elements/duet-tray.js +0 -146
- package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
- package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload-item.js +0 -9
- package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
- package/lib/dist-custom-elements/duet-upload.js +0 -1444
- package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
- package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
- package/lib/dist-custom-elements/index.d.ts +0 -33
- package/lib/dist-custom-elements/index.js +0 -29
- package/lib/dist-custom-elements/p-02f97b91.js +0 -39
- package/lib/dist-custom-elements/p-087d8c5a.js +0 -60
- package/lib/dist-custom-elements/p-115c79b6.js +0 -6
- package/lib/dist-custom-elements/p-1296f851.js +0 -63
- package/lib/dist-custom-elements/p-174a9d1d.js +0 -73
- package/lib/dist-custom-elements/p-1ccd7c39.js +0 -80
- package/lib/dist-custom-elements/p-1f4fbc7a.js +0 -138
- package/lib/dist-custom-elements/p-22147601.js +0 -642
- package/lib/dist-custom-elements/p-29be247b.js +0 -80
- package/lib/dist-custom-elements/p-2c70b9f4.js +0 -50
- package/lib/dist-custom-elements/p-2f25dfb3.js +0 -154
- package/lib/dist-custom-elements/p-330bcf1d.js +0 -205
- package/lib/dist-custom-elements/p-3431b690.js +0 -368
- package/lib/dist-custom-elements/p-35375593.js +0 -161
- package/lib/dist-custom-elements/p-36ab2d57.js +0 -83
- package/lib/dist-custom-elements/p-3ce1f7b8.js +0 -214
- package/lib/dist-custom-elements/p-41dca9e4.js +0 -63
- package/lib/dist-custom-elements/p-430f3778.js +0 -100
- package/lib/dist-custom-elements/p-43c4a1af.js +0 -81
- package/lib/dist-custom-elements/p-4da43fbc.js +0 -232
- package/lib/dist-custom-elements/p-68c629a8.js +0 -127
- package/lib/dist-custom-elements/p-6b77d4d3.js +0 -338
- package/lib/dist-custom-elements/p-81287261.js +0 -1348
- package/lib/dist-custom-elements/p-89b10856.js +0 -102
- package/lib/dist-custom-elements/p-956e3bce.js +0 -110
- package/lib/dist-custom-elements/p-993aea39.js +0 -175
- package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
- package/lib/dist-custom-elements/p-9f9423c6.js +0 -56
- package/lib/dist-custom-elements/p-9fa4eb51.js +0 -94
- package/lib/dist-custom-elements/p-a2147aff.js +0 -268
- package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
- package/lib/dist-custom-elements/p-ab34075b.js +0 -124
- package/lib/dist-custom-elements/p-ad615991.js +0 -115
- package/lib/dist-custom-elements/p-b0925e24.js +0 -318
- package/lib/dist-custom-elements/p-b8de9a9c.js +0 -165
- package/lib/dist-custom-elements/p-c7d815f6.js +0 -194
- package/lib/dist-custom-elements/p-ca700701.js +0 -55
- package/lib/dist-custom-elements/p-d004da5f.js +0 -6
- package/lib/dist-custom-elements/p-d1f89e90.js +0 -124
- package/lib/dist-custom-elements/p-d2a5148f.js +0 -61
- package/lib/dist-custom-elements/p-d77db171.js +0 -2130
- package/lib/dist-custom-elements/p-dad518a5.js +0 -303
- package/lib/dist-custom-elements/p-de4ee016.js +0 -209
- package/lib/dist-custom-elements/p-de8f018a.js +0 -55
- package/lib/dist-custom-elements/p-df2042f8.js +0 -206
- package/lib/dist-custom-elements/p-e176f419.js +0 -61
- package/lib/dist-custom-elements/p-e37d189b.js +0 -607
- package/lib/dist-custom-elements/p-f11208c3.js +0 -6
- package/lib/dist-custom-elements/p-fe9e47d9.js +0 -287
- package/lib/duet/duet.js +0 -127
- package/lib/duet/p-021a4763.system.entry.js +0 -4
- package/lib/duet/p-031167a1.system.entry.js +0 -4
- package/lib/duet/p-051c4536.entry.js +0 -4
- package/lib/duet/p-053b71e6.system.js +0 -4
- package/lib/duet/p-05ca5aea.entry.js +0 -4
- package/lib/duet/p-07847129.system.entry.js +0 -4
- package/lib/duet/p-0a305aee.entry.js +0 -4
- package/lib/duet/p-0c4bbd65.system.js +0 -4
- package/lib/duet/p-0d7da85a.js +0 -4
- package/lib/duet/p-0dc9089b.system.js +0 -4
- package/lib/duet/p-0e348f96.system.entry.js +0 -4
- package/lib/duet/p-0e8e80b1.entry.js +0 -4
- package/lib/duet/p-0ee85b71.entry.js +0 -4
- package/lib/duet/p-115c79b6.js +0 -4
- package/lib/duet/p-1183d305.system.entry.js +0 -4
- package/lib/duet/p-1268b5a0.system.entry.js +0 -4
- package/lib/duet/p-153b6150.system.entry.js +0 -4
- package/lib/duet/p-192bba35.system.entry.js +0 -4
- package/lib/duet/p-1e17463d.system.js +0 -4
- package/lib/duet/p-1e904342.entry.js +0 -4
- package/lib/duet/p-1e9e887d.entry.js +0 -4
- package/lib/duet/p-209d6065.system.entry.js +0 -4
- package/lib/duet/p-20d056ac.entry.js +0 -4
- package/lib/duet/p-20eaf445.system.entry.js +0 -4
- package/lib/duet/p-215f4257.system.entry.js +0 -4
- package/lib/duet/p-237efb0c.system.entry.js +0 -4
- package/lib/duet/p-2437b4cb.js +0 -4
- package/lib/duet/p-250fb070.entry.js +0 -4
- package/lib/duet/p-25af4a6c.entry.js +0 -4
- package/lib/duet/p-25d79094.entry.js +0 -4
- package/lib/duet/p-27260106.entry.js +0 -4
- package/lib/duet/p-27ed5ca7.system.entry.js +0 -4
- package/lib/duet/p-2810c6dc.system.entry.js +0 -4
- package/lib/duet/p-2814473c.system.entry.js +0 -4
- package/lib/duet/p-29152853.entry.js +0 -4
- package/lib/duet/p-2a0ad29c.system.entry.js +0 -4
- package/lib/duet/p-2a979523.entry.js +0 -4
- package/lib/duet/p-2b2cd3be.entry.js +0 -4
- package/lib/duet/p-2b35de7b.entry.js +0 -4
- package/lib/duet/p-2b45d2e4.entry.js +0 -4
- package/lib/duet/p-2bf17427.entry.js +0 -4
- package/lib/duet/p-2dc360ee.entry.js +0 -4
- package/lib/duet/p-2de0ab3d.system.entry.js +0 -4
- package/lib/duet/p-2fa7ecef.entry.js +0 -4
- package/lib/duet/p-2fb96333.entry.js +0 -4
- package/lib/duet/p-3106c658.entry.js +0 -4
- package/lib/duet/p-34024554.system.entry.js +0 -4
- package/lib/duet/p-34d7dd10.system.js +0 -4
- package/lib/duet/p-380f74e8.system.entry.js +0 -4
- package/lib/duet/p-3810c7dc.entry.js +0 -4
- package/lib/duet/p-3c64dab9.entry.js +0 -4
- package/lib/duet/p-3d826a58.system.entry.js +0 -4
- package/lib/duet/p-3d96186f.system.entry.js +0 -4
- package/lib/duet/p-3df2981e.system.entry.js +0 -4
- package/lib/duet/p-3faaa469.entry.js +0 -4
- package/lib/duet/p-3fe7e109.system.entry.js +0 -4
- package/lib/duet/p-40bab9a0.system.entry.js +0 -4
- package/lib/duet/p-41552571.system.entry.js +0 -4
- package/lib/duet/p-41982d26.system.js +0 -4
- package/lib/duet/p-43cc4ad9.system.entry.js +0 -4
- package/lib/duet/p-43d16748.system.entry.js +0 -4
- package/lib/duet/p-44ee649f.system.entry.js +0 -4
- package/lib/duet/p-486576ee.entry.js +0 -4
- package/lib/duet/p-49957220.system.js +0 -4
- package/lib/duet/p-49fa4a07.entry.js +0 -4
- package/lib/duet/p-4a9978a4.entry.js +0 -4
- package/lib/duet/p-4cff3036.system.js +0 -4
- package/lib/duet/p-4e7f27d8.entry.js +0 -4
- package/lib/duet/p-4e9052cd.entry.js +0 -4
- package/lib/duet/p-4ee7eb8a.entry.js +0 -4
- package/lib/duet/p-5170726b.system.entry.js +0 -4
- package/lib/duet/p-55674524.entry.js +0 -4
- package/lib/duet/p-58caf53a.system.entry.js +0 -4
- package/lib/duet/p-5b927db3.entry.js +0 -4
- package/lib/duet/p-5db9497a.entry.js +0 -4
- package/lib/duet/p-5dbd1202.entry.js +0 -4
- package/lib/duet/p-5e25b406.entry.js +0 -4
- package/lib/duet/p-60547899.system.entry.js +0 -4
- package/lib/duet/p-605e69c8.system.js +0 -4
- package/lib/duet/p-612fbfcc.entry.js +0 -4
- package/lib/duet/p-620d4575.system.entry.js +0 -4
- package/lib/duet/p-629a9c13.entry.js +0 -4
- package/lib/duet/p-62bdecfb.system.entry.js +0 -4
- package/lib/duet/p-6324514a.system.entry.js +0 -4
- package/lib/duet/p-6447f20d.system.entry.js +0 -4
- package/lib/duet/p-6537159a.system.entry.js +0 -4
- package/lib/duet/p-670bd483.system.entry.js +0 -4
- package/lib/duet/p-6b436ca9.entry.js +0 -4
- package/lib/duet/p-7483d86c.entry.js +0 -4
- package/lib/duet/p-76563c02.entry.js +0 -4
- package/lib/duet/p-769a3309.system.entry.js +0 -4
- package/lib/duet/p-76b42e90.entry.js +0 -4
- package/lib/duet/p-76b84b22.entry.js +0 -4
- package/lib/duet/p-76d69a18.system.js +0 -4
- package/lib/duet/p-7972306f.entry.js +0 -4
- package/lib/duet/p-79dfc8e6.system.entry.js +0 -4
- package/lib/duet/p-7a67ce10.system.entry.js +0 -4
- package/lib/duet/p-7acabaa7.system.js +0 -4
- package/lib/duet/p-7cce22af.system.js +0 -4
- package/lib/duet/p-7d2fffc2.entry.js +0 -4
- package/lib/duet/p-7d8a2628.js +0 -4
- package/lib/duet/p-7dd3b7d1.entry.js +0 -4
- package/lib/duet/p-7f5c1da2.entry.js +0 -4
- package/lib/duet/p-8142169f.system.entry.js +0 -4
- package/lib/duet/p-8481bbda.entry.js +0 -4
- package/lib/duet/p-871d7ca1.system.entry.js +0 -4
- package/lib/duet/p-894c1be1.system.entry.js +0 -4
- package/lib/duet/p-8abb0984.js +0 -5
- package/lib/duet/p-8f477bd6.system.js +0 -4
- package/lib/duet/p-8f4cdf46.system.entry.js +0 -4
- package/lib/duet/p-8faaaf5f.system.js +0 -4
- package/lib/duet/p-9253e832.system.entry.js +0 -4
- package/lib/duet/p-965e597c.system.js +0 -4
- package/lib/duet/p-966bd64a.entry.js +0 -4
- package/lib/duet/p-98636086.system.js +0 -4
- package/lib/duet/p-9b04e4a2.entry.js +0 -4
- package/lib/duet/p-9fb9ba73.entry.js +0 -4
- package/lib/duet/p-a19244e5.system.js +0 -5
- package/lib/duet/p-a1b7f2a0.js +0 -4
- package/lib/duet/p-a2aa619b.system.entry.js +0 -4
- package/lib/duet/p-a2b93336.system.entry.js +0 -4
- package/lib/duet/p-a3341588.entry.js +0 -4
- package/lib/duet/p-a47047f2.entry.js +0 -4
- package/lib/duet/p-a51e1b9e.entry.js +0 -4
- package/lib/duet/p-a600451a.entry.js +0 -4
- package/lib/duet/p-a7d809b4.system.entry.js +0 -4
- package/lib/duet/p-a8a381c9.system.entry.js +0 -4
- package/lib/duet/p-aa82f9a1.entry.js +0 -4
- package/lib/duet/p-aaa7a7bd.js +0 -4
- package/lib/duet/p-ac9460ca.entry.js +0 -4
- package/lib/duet/p-aca3a5a9.entry.js +0 -4
- package/lib/duet/p-af209330.entry.js +0 -4
- package/lib/duet/p-afad5fd3.system.js +0 -4
- package/lib/duet/p-b010f56b.system.entry.js +0 -4
- package/lib/duet/p-b69f3d9d.system.entry.js +0 -4
- package/lib/duet/p-b6c584b6.entry.js +0 -4
- package/lib/duet/p-b765710e.entry.js +0 -4
- package/lib/duet/p-b864159a.system.js +0 -4
- package/lib/duet/p-ba03d034.system.js +0 -4
- package/lib/duet/p-bcc40139.system.entry.js +0 -4
- package/lib/duet/p-beeb12f1.js +0 -4
- package/lib/duet/p-c15cd383.system.entry.js +0 -4
- package/lib/duet/p-c22935bf.system.entry.js +0 -4
- package/lib/duet/p-c2dd561e.entry.js +0 -4
- package/lib/duet/p-c3ba8e74.system.entry.js +0 -4
- package/lib/duet/p-c52e8007.entry.js +0 -4
- package/lib/duet/p-c6894b07.system.entry.js +0 -4
- package/lib/duet/p-c694f12d.system.entry.js +0 -4
- package/lib/duet/p-c79cbfdb.entry.js +0 -4
- package/lib/duet/p-c8421271.system.entry.js +0 -4
- package/lib/duet/p-c8d3cb52.entry.js +0 -4
- package/lib/duet/p-c8e22ae2.system.entry.js +0 -4
- package/lib/duet/p-ca3cb21e.js +0 -4
- package/lib/duet/p-cbedbd77.system.entry.js +0 -4
- package/lib/duet/p-cc5e6288.system.js +0 -4
- package/lib/duet/p-cc67e773.js +0 -4
- package/lib/duet/p-ce543cc1.system.entry.js +0 -4
- package/lib/duet/p-cf30c088.entry.js +0 -4
- package/lib/duet/p-d004da5f.js +0 -4
- package/lib/duet/p-d3c304b5.system.js +0 -4
- package/lib/duet/p-d43fc5e9.system.entry.js +0 -4
- package/lib/duet/p-d6dc9819.system.entry.js +0 -4
- package/lib/duet/p-d7d86092.js +0 -4
- package/lib/duet/p-d86d8491.system.entry.js +0 -4
- package/lib/duet/p-db2ccb9d.system.js +0 -4
- package/lib/duet/p-dfd223d9.entry.js +0 -4
- package/lib/duet/p-e0536bb5.entry.js +0 -4
- package/lib/duet/p-e12066c8.system.js +0 -4
- package/lib/duet/p-e1c881da.system.js +0 -4
- package/lib/duet/p-e216bea4.system.js +0 -4
- package/lib/duet/p-e258270f.entry.js +0 -4
- package/lib/duet/p-e2daf94c.entry.js +0 -4
- package/lib/duet/p-e38edd16.system.entry.js +0 -4
- package/lib/duet/p-e44da0ff.system.entry.js +0 -4
- package/lib/duet/p-e4c8559c.system.js +0 -4
- package/lib/duet/p-e6b5a1c7.system.js +0 -4
- package/lib/duet/p-e8dd29e7.entry.js +0 -4
- package/lib/duet/p-e93849fd.system.entry.js +0 -4
- package/lib/duet/p-e9d2f4a1.entry.js +0 -4
- package/lib/duet/p-eca03d5e.js +0 -4
- package/lib/duet/p-ee1eb7cb.system.entry.js +0 -4
- package/lib/duet/p-efa5ec67.entry.js +0 -4
- package/lib/duet/p-f0b0e2b2.system.entry.js +0 -4
- package/lib/duet/p-f105f32a.system.entry.js +0 -4
- package/lib/duet/p-f11208c3.js +0 -4
- package/lib/duet/p-f3633004.entry.js +0 -4
- package/lib/duet/p-f3cf6b50.entry.js +0 -4
- package/lib/duet/p-f43e134e.system.entry.js +0 -4
- package/lib/duet/p-f5dd7e7e.system.entry.js +0 -4
- package/lib/duet/p-f6000a03.js +0 -4
- package/lib/duet/p-f6b21d17.system.js +0 -4
- package/lib/duet/p-f6bd2d4f.system.entry.js +0 -4
- package/lib/duet/p-f75a6d54.system.entry.js +0 -4
- package/lib/duet/p-f97500ff.system.entry.js +0 -4
- package/lib/duet/p-fa3b3dbc.system.entry.js +0 -4
- package/lib/duet/p-fbc396a7.system.entry.js +0 -4
- package/lib/duet/p-fbf89657.system.entry.js +0 -4
- package/lib/duet/p-fcb14b31.system.entry.js +0 -4
- package/lib/duet/p-fd2299b4.entry.js +0 -4
- package/lib/duet/p-fd78f61a.js +0 -4
- package/lib/duet/p-fee25f59.entry.js +0 -4
- package/lib/esm/a11y-utils-8fc393f6.js +0 -23
- package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
- package/lib/esm/action-new-window-small-1945be91.js +0 -6
- package/lib/esm/body-scroll-46854769.js +0 -234
- package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
- package/lib/esm/common-strings-af765cad.js +0 -25
- package/lib/esm/create-id-149a1b6d.js +0 -11
- package/lib/esm/duet-chip_3.entry.js +0 -693
- package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
- package/lib/esm/focus-utils-adcd9463.js +0 -18
- package/lib/esm/form-search-ea8e19ae.js +0 -6
- package/lib/esm/input-utils-85681162.js +0 -53
- package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
- package/lib/esm/js-utils-9b9e0039.js +0 -47
- package/lib/esm/label-ce262202.js +0 -20
- package/lib/esm/polyfills/core-js.js +0 -11
- package/lib/esm/polyfills/dom.js +0 -79
- package/lib/esm/polyfills/es5-html-element.js +0 -1
- package/lib/esm/polyfills/index.js +0 -34
- package/lib/esm/polyfills/system.js +0 -6
- package/lib/esm/string-utils-192eb3c8.js +0 -61
- package/lib/esm/teleport-546f382d.js +0 -116
- package/lib/esm/themeable-component-860041c5.js +0 -13
- package/lib/esm/tokens-84fb2357.js +0 -753
- package/lib/esm/tokens.module-2d02f5ff.js +0 -503
- package/lib/esm/watch-options-e96ecd92.js +0 -57
- package/lib/esm-es5/a11y-utils-8fc393f6.js +0 -4
- package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
- package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
- package/lib/esm-es5/app-globals-00959ca9.js +0 -4
- package/lib/esm-es5/body-scroll-46854769.js +0 -4
- package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
- package/lib/esm-es5/common-strings-af765cad.js +0 -4
- package/lib/esm-es5/create-id-149a1b6d.js +0 -4
- package/lib/esm-es5/duet-action-button.entry.js +0 -4
- package/lib/esm-es5/duet-alert.entry.js +0 -4
- package/lib/esm-es5/duet-badge.entry.js +0 -4
- package/lib/esm-es5/duet-banner.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
- package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
- package/lib/esm-es5/duet-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-callout.entry.js +0 -4
- package/lib/esm-es5/duet-caption_4.entry.js +0 -4
- package/lib/esm-es5/duet-card.entry.js +0 -4
- package/lib/esm-es5/duet-checkbox.entry.js +0 -4
- package/lib/esm-es5/duet-checkmark.entry.js +0 -4
- package/lib/esm-es5/duet-chip_3.entry.js +0 -4
- package/lib/esm-es5/duet-choice_2.entry.js +0 -4
- package/lib/esm-es5/duet-collapsible.entry.js +0 -4
- package/lib/esm-es5/duet-combobox.entry.js +0 -4
- package/lib/esm-es5/duet-contact-card.entry.js +0 -4
- package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
- package/lib/esm-es5/duet-date-picker.entry.js +0 -4
- package/lib/esm-es5/duet-divider_2.entry.js +0 -4
- package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
- package/lib/esm-es5/duet-empty-state.entry.js +0 -4
- package/lib/esm-es5/duet-fieldset.entry.js +0 -4
- package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
- package/lib/esm-es5/duet-footer.entry.js +0 -4
- package/lib/esm-es5/duet-grid_2.entry.js +0 -4
- package/lib/esm-es5/duet-header_2.entry.js +0 -4
- package/lib/esm-es5/duet-hero.entry.js +0 -4
- package/lib/esm-es5/duet-icon.entry.js +0 -4
- package/lib/esm-es5/duet-input_2.entry.js +0 -4
- package/lib/esm-es5/duet-layout.entry.js +0 -4
- package/lib/esm-es5/duet-list_2.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-modal.entry.js +0 -4
- package/lib/esm-es5/duet-multiselect.entry.js +0 -4
- package/lib/esm-es5/duet-nav.entry.js +0 -4
- package/lib/esm-es5/duet-notification_2.entry.js +0 -4
- package/lib/esm-es5/duet-number-input.entry.js +0 -4
- package/lib/esm-es5/duet-overlay.entry.js +0 -4
- package/lib/esm-es5/duet-page-heading.entry.js +0 -4
- package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
- package/lib/esm-es5/duet-progress.entry.js +0 -4
- package/lib/esm-es5/duet-promo-card.entry.js +0 -4
- package/lib/esm-es5/duet-radio_2.entry.js +0 -4
- package/lib/esm-es5/duet-range-slider.entry.js +0 -4
- package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
- package/lib/esm-es5/duet-section-layout.entry.js +0 -4
- package/lib/esm-es5/duet-select.entry.js +0 -4
- package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
- package/lib/esm-es5/duet-show-more.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
- package/lib/esm-es5/duet-slideout.entry.js +0 -4
- package/lib/esm-es5/duet-step_2.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
- package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
- package/lib/esm-es5/duet-textarea.entry.js +0 -4
- package/lib/esm-es5/duet-toggle.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
- package/lib/esm-es5/duet-toolbar.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
- package/lib/esm-es5/duet-tooltip.entry.js +0 -4
- package/lib/esm-es5/duet-tray.entry.js +0 -4
- package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
- package/lib/esm-es5/duet-upload-item.entry.js +0 -4
- package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
- package/lib/esm-es5/duet.js +0 -4
- package/lib/esm-es5/errorcodes.utils-d9431251.js +0 -4
- package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
- package/lib/esm-es5/focus-utils-adcd9463.js +0 -4
- package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
- package/lib/esm-es5/index-1d0b7c66.js +0 -5
- package/lib/esm-es5/index.js +0 -3
- package/lib/esm-es5/input-utils-85681162.js +0 -4
- package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
- package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
- package/lib/esm-es5/keyboard-utils-439bcc8b.js +0 -4
- package/lib/esm-es5/label-ce262202.js +0 -4
- package/lib/esm-es5/language-utils-14969cef.js +0 -4
- package/lib/esm-es5/loader.js +0 -4
- package/lib/esm-es5/slot-utils-4e5ed4eb.js +0 -4
- package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
- package/lib/esm-es5/teleport-546f382d.js +0 -4
- package/lib/esm-es5/themeable-component-860041c5.js +0 -4
- package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
- package/lib/esm-es5/tokens-84fb2357.js +0 -4
- package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
- package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
- package/lib/loader/package.json +0 -11
- /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
- /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
- /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
- /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
- /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
- /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
- /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
- /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
- /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
- /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
- /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
- /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
- /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
- /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
- /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
- /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
- /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
- /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
- /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
- /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
|
@@ -1,1355 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Custom positioning reference element.
|
|
8
|
-
* @see https://floating-ui.com/docs/virtual-elements
|
|
9
|
-
*/
|
|
10
|
-
const min$1 = Math.min;
|
|
11
|
-
const max$1 = Math.max;
|
|
12
|
-
const oppositeSideMap = {
|
|
13
|
-
left: 'right',
|
|
14
|
-
right: 'left',
|
|
15
|
-
bottom: 'top',
|
|
16
|
-
top: 'bottom'
|
|
17
|
-
};
|
|
18
|
-
const oppositeAlignmentMap = {
|
|
19
|
-
start: 'end',
|
|
20
|
-
end: 'start'
|
|
21
|
-
};
|
|
22
|
-
function clamp(start, value, end) {
|
|
23
|
-
return max$1(start, min$1(value, end));
|
|
24
|
-
}
|
|
25
|
-
function evaluate(value, param) {
|
|
26
|
-
return typeof value === 'function' ? value(param) : value;
|
|
27
|
-
}
|
|
28
|
-
function getSide(placement) {
|
|
29
|
-
return placement.split('-')[0];
|
|
30
|
-
}
|
|
31
|
-
function getAlignment(placement) {
|
|
32
|
-
return placement.split('-')[1];
|
|
33
|
-
}
|
|
34
|
-
function getOppositeAxis(axis) {
|
|
35
|
-
return axis === 'x' ? 'y' : 'x';
|
|
36
|
-
}
|
|
37
|
-
function getAxisLength(axis) {
|
|
38
|
-
return axis === 'y' ? 'height' : 'width';
|
|
39
|
-
}
|
|
40
|
-
function getSideAxis(placement) {
|
|
41
|
-
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
42
|
-
}
|
|
43
|
-
function getAlignmentAxis(placement) {
|
|
44
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
45
|
-
}
|
|
46
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
47
|
-
if (rtl === void 0) {
|
|
48
|
-
rtl = false;
|
|
49
|
-
}
|
|
50
|
-
const alignment = getAlignment(placement);
|
|
51
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
52
|
-
const length = getAxisLength(alignmentAxis);
|
|
53
|
-
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
54
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
55
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
56
|
-
}
|
|
57
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
58
|
-
}
|
|
59
|
-
function getExpandedPlacements(placement) {
|
|
60
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
61
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
62
|
-
}
|
|
63
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
64
|
-
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
65
|
-
}
|
|
66
|
-
function getSideList(side, isStart, rtl) {
|
|
67
|
-
const lr = ['left', 'right'];
|
|
68
|
-
const rl = ['right', 'left'];
|
|
69
|
-
const tb = ['top', 'bottom'];
|
|
70
|
-
const bt = ['bottom', 'top'];
|
|
71
|
-
switch (side) {
|
|
72
|
-
case 'top':
|
|
73
|
-
case 'bottom':
|
|
74
|
-
if (rtl) return isStart ? rl : lr;
|
|
75
|
-
return isStart ? lr : rl;
|
|
76
|
-
case 'left':
|
|
77
|
-
case 'right':
|
|
78
|
-
return isStart ? tb : bt;
|
|
79
|
-
default:
|
|
80
|
-
return [];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
84
|
-
const alignment = getAlignment(placement);
|
|
85
|
-
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
86
|
-
if (alignment) {
|
|
87
|
-
list = list.map(side => side + "-" + alignment);
|
|
88
|
-
if (flipAlignment) {
|
|
89
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return list;
|
|
93
|
-
}
|
|
94
|
-
function getOppositePlacement(placement) {
|
|
95
|
-
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
96
|
-
}
|
|
97
|
-
function expandPaddingObject(padding) {
|
|
98
|
-
return {
|
|
99
|
-
top: 0,
|
|
100
|
-
right: 0,
|
|
101
|
-
bottom: 0,
|
|
102
|
-
left: 0,
|
|
103
|
-
...padding
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function getPaddingObject(padding) {
|
|
107
|
-
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
108
|
-
top: padding,
|
|
109
|
-
right: padding,
|
|
110
|
-
bottom: padding,
|
|
111
|
-
left: padding
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function rectToClientRect(rect) {
|
|
115
|
-
const {
|
|
116
|
-
x,
|
|
117
|
-
y,
|
|
118
|
-
width,
|
|
119
|
-
height
|
|
120
|
-
} = rect;
|
|
121
|
-
return {
|
|
122
|
-
width,
|
|
123
|
-
height,
|
|
124
|
-
top: y,
|
|
125
|
-
left: x,
|
|
126
|
-
right: x + width,
|
|
127
|
-
bottom: y + height,
|
|
128
|
-
x,
|
|
129
|
-
y
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
134
|
-
let {
|
|
135
|
-
reference,
|
|
136
|
-
floating
|
|
137
|
-
} = _ref;
|
|
138
|
-
const sideAxis = getSideAxis(placement);
|
|
139
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
140
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
141
|
-
const side = getSide(placement);
|
|
142
|
-
const isVertical = sideAxis === 'y';
|
|
143
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
144
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
145
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
146
|
-
let coords;
|
|
147
|
-
switch (side) {
|
|
148
|
-
case 'top':
|
|
149
|
-
coords = {
|
|
150
|
-
x: commonX,
|
|
151
|
-
y: reference.y - floating.height
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
154
|
-
case 'bottom':
|
|
155
|
-
coords = {
|
|
156
|
-
x: commonX,
|
|
157
|
-
y: reference.y + reference.height
|
|
158
|
-
};
|
|
159
|
-
break;
|
|
160
|
-
case 'right':
|
|
161
|
-
coords = {
|
|
162
|
-
x: reference.x + reference.width,
|
|
163
|
-
y: commonY
|
|
164
|
-
};
|
|
165
|
-
break;
|
|
166
|
-
case 'left':
|
|
167
|
-
coords = {
|
|
168
|
-
x: reference.x - floating.width,
|
|
169
|
-
y: commonY
|
|
170
|
-
};
|
|
171
|
-
break;
|
|
172
|
-
default:
|
|
173
|
-
coords = {
|
|
174
|
-
x: reference.x,
|
|
175
|
-
y: reference.y
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
switch (getAlignment(placement)) {
|
|
179
|
-
case 'start':
|
|
180
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
181
|
-
break;
|
|
182
|
-
case 'end':
|
|
183
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
return coords;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
191
|
-
* next to a given reference element.
|
|
192
|
-
*
|
|
193
|
-
* This export does not have any `platform` interface logic. You will need to
|
|
194
|
-
* write one for the platform you are using Floating UI with.
|
|
195
|
-
*/
|
|
196
|
-
const computePosition$1 = async (reference, floating, config) => {
|
|
197
|
-
const {
|
|
198
|
-
placement = 'bottom',
|
|
199
|
-
strategy = 'absolute',
|
|
200
|
-
middleware = [],
|
|
201
|
-
platform
|
|
202
|
-
} = config;
|
|
203
|
-
const validMiddleware = middleware.filter(Boolean);
|
|
204
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
|
|
205
|
-
let rects = await platform.getElementRects({
|
|
206
|
-
reference,
|
|
207
|
-
floating,
|
|
208
|
-
strategy
|
|
209
|
-
});
|
|
210
|
-
let {
|
|
211
|
-
x,
|
|
212
|
-
y
|
|
213
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
214
|
-
let statefulPlacement = placement;
|
|
215
|
-
let middlewareData = {};
|
|
216
|
-
let resetCount = 0;
|
|
217
|
-
for (let i = 0; i < validMiddleware.length; i++) {
|
|
218
|
-
const {
|
|
219
|
-
name,
|
|
220
|
-
fn
|
|
221
|
-
} = validMiddleware[i];
|
|
222
|
-
const {
|
|
223
|
-
x: nextX,
|
|
224
|
-
y: nextY,
|
|
225
|
-
data,
|
|
226
|
-
reset
|
|
227
|
-
} = await fn({
|
|
228
|
-
x,
|
|
229
|
-
y,
|
|
230
|
-
initialPlacement: placement,
|
|
231
|
-
placement: statefulPlacement,
|
|
232
|
-
strategy,
|
|
233
|
-
middlewareData,
|
|
234
|
-
rects,
|
|
235
|
-
platform,
|
|
236
|
-
elements: {
|
|
237
|
-
reference,
|
|
238
|
-
floating
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
x = nextX != null ? nextX : x;
|
|
242
|
-
y = nextY != null ? nextY : y;
|
|
243
|
-
middlewareData = {
|
|
244
|
-
...middlewareData,
|
|
245
|
-
[name]: {
|
|
246
|
-
...middlewareData[name],
|
|
247
|
-
...data
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
if (reset && resetCount <= 50) {
|
|
251
|
-
resetCount++;
|
|
252
|
-
if (typeof reset === 'object') {
|
|
253
|
-
if (reset.placement) {
|
|
254
|
-
statefulPlacement = reset.placement;
|
|
255
|
-
}
|
|
256
|
-
if (reset.rects) {
|
|
257
|
-
rects = reset.rects === true ? await platform.getElementRects({
|
|
258
|
-
reference,
|
|
259
|
-
floating,
|
|
260
|
-
strategy
|
|
261
|
-
}) : reset.rects;
|
|
262
|
-
}
|
|
263
|
-
({
|
|
264
|
-
x,
|
|
265
|
-
y
|
|
266
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
267
|
-
}
|
|
268
|
-
i = -1;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return {
|
|
272
|
-
x,
|
|
273
|
-
y,
|
|
274
|
-
placement: statefulPlacement,
|
|
275
|
-
strategy,
|
|
276
|
-
middlewareData
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Resolves with an object of overflow side offsets that determine how much the
|
|
282
|
-
* element is overflowing a given clipping boundary on each side.
|
|
283
|
-
* - positive = overflowing the boundary by that number of pixels
|
|
284
|
-
* - negative = how many pixels left before it will overflow
|
|
285
|
-
* - 0 = lies flush with the boundary
|
|
286
|
-
* @see https://floating-ui.com/docs/detectOverflow
|
|
287
|
-
*/
|
|
288
|
-
async function detectOverflow(state, options) {
|
|
289
|
-
var _await$platform$isEle;
|
|
290
|
-
if (options === void 0) {
|
|
291
|
-
options = {};
|
|
292
|
-
}
|
|
293
|
-
const {
|
|
294
|
-
x,
|
|
295
|
-
y,
|
|
296
|
-
platform,
|
|
297
|
-
rects,
|
|
298
|
-
elements,
|
|
299
|
-
strategy
|
|
300
|
-
} = state;
|
|
301
|
-
const {
|
|
302
|
-
boundary = 'clippingAncestors',
|
|
303
|
-
rootBoundary = 'viewport',
|
|
304
|
-
elementContext = 'floating',
|
|
305
|
-
altBoundary = false,
|
|
306
|
-
padding = 0
|
|
307
|
-
} = evaluate(options, state);
|
|
308
|
-
const paddingObject = getPaddingObject(padding);
|
|
309
|
-
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
310
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
311
|
-
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
312
|
-
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
313
|
-
boundary,
|
|
314
|
-
rootBoundary,
|
|
315
|
-
strategy
|
|
316
|
-
}));
|
|
317
|
-
const rect = elementContext === 'floating' ? {
|
|
318
|
-
x,
|
|
319
|
-
y,
|
|
320
|
-
width: rects.floating.width,
|
|
321
|
-
height: rects.floating.height
|
|
322
|
-
} : rects.reference;
|
|
323
|
-
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
324
|
-
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
325
|
-
x: 1,
|
|
326
|
-
y: 1
|
|
327
|
-
} : {
|
|
328
|
-
x: 1,
|
|
329
|
-
y: 1
|
|
330
|
-
};
|
|
331
|
-
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
332
|
-
elements,
|
|
333
|
-
rect,
|
|
334
|
-
offsetParent,
|
|
335
|
-
strategy
|
|
336
|
-
}) : rect);
|
|
337
|
-
return {
|
|
338
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
339
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
340
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
341
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Provides data to position an inner element of the floating element so that it
|
|
347
|
-
* appears centered to the reference element.
|
|
348
|
-
* @see https://floating-ui.com/docs/arrow
|
|
349
|
-
*/
|
|
350
|
-
const arrow = options => ({
|
|
351
|
-
name: 'arrow',
|
|
352
|
-
options,
|
|
353
|
-
async fn(state) {
|
|
354
|
-
const {
|
|
355
|
-
x,
|
|
356
|
-
y,
|
|
357
|
-
placement,
|
|
358
|
-
rects,
|
|
359
|
-
platform,
|
|
360
|
-
elements,
|
|
361
|
-
middlewareData
|
|
362
|
-
} = state;
|
|
363
|
-
// Since `element` is required, we don't Partial<> the type.
|
|
364
|
-
const {
|
|
365
|
-
element,
|
|
366
|
-
padding = 0
|
|
367
|
-
} = evaluate(options, state) || {};
|
|
368
|
-
if (element == null) {
|
|
369
|
-
return {};
|
|
370
|
-
}
|
|
371
|
-
const paddingObject = getPaddingObject(padding);
|
|
372
|
-
const coords = {
|
|
373
|
-
x,
|
|
374
|
-
y
|
|
375
|
-
};
|
|
376
|
-
const axis = getAlignmentAxis(placement);
|
|
377
|
-
const length = getAxisLength(axis);
|
|
378
|
-
const arrowDimensions = await platform.getDimensions(element);
|
|
379
|
-
const isYAxis = axis === 'y';
|
|
380
|
-
const minProp = isYAxis ? 'top' : 'left';
|
|
381
|
-
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
382
|
-
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
383
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
384
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
385
|
-
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
386
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
387
|
-
|
|
388
|
-
// DOM platform can return `window` as the `offsetParent`.
|
|
389
|
-
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
390
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
391
|
-
}
|
|
392
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
393
|
-
|
|
394
|
-
// If the padding is large enough that it causes the arrow to no longer be
|
|
395
|
-
// centered, modify the padding so that it is centered.
|
|
396
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
397
|
-
const minPadding = min$1(paddingObject[minProp], largestPossiblePadding);
|
|
398
|
-
const maxPadding = min$1(paddingObject[maxProp], largestPossiblePadding);
|
|
399
|
-
|
|
400
|
-
// Make sure the arrow doesn't overflow the floating element if the center
|
|
401
|
-
// point is outside the floating element's bounds.
|
|
402
|
-
const min$1$1 = minPadding;
|
|
403
|
-
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
404
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
405
|
-
const offset = clamp(min$1$1, center, max);
|
|
406
|
-
|
|
407
|
-
// If the reference is small enough that the arrow's padding causes it to
|
|
408
|
-
// to point to nothing for an aligned placement, adjust the offset of the
|
|
409
|
-
// floating element itself. To ensure `shift()` continues to take action,
|
|
410
|
-
// a single reset is performed when this is true.
|
|
411
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
412
|
-
const alignmentOffset = shouldAddOffset ? center < min$1$1 ? center - min$1$1 : center - max : 0;
|
|
413
|
-
return {
|
|
414
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
415
|
-
data: {
|
|
416
|
-
[axis]: offset,
|
|
417
|
-
centerOffset: center - offset - alignmentOffset,
|
|
418
|
-
...(shouldAddOffset && {
|
|
419
|
-
alignmentOffset
|
|
420
|
-
})
|
|
421
|
-
},
|
|
422
|
-
reset: shouldAddOffset
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
429
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
430
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
431
|
-
* @see https://floating-ui.com/docs/flip
|
|
432
|
-
*/
|
|
433
|
-
const flip = function (options) {
|
|
434
|
-
if (options === void 0) {
|
|
435
|
-
options = {};
|
|
436
|
-
}
|
|
437
|
-
return {
|
|
438
|
-
name: 'flip',
|
|
439
|
-
options,
|
|
440
|
-
async fn(state) {
|
|
441
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
442
|
-
const {
|
|
443
|
-
placement,
|
|
444
|
-
middlewareData,
|
|
445
|
-
rects,
|
|
446
|
-
initialPlacement,
|
|
447
|
-
platform,
|
|
448
|
-
elements
|
|
449
|
-
} = state;
|
|
450
|
-
const {
|
|
451
|
-
mainAxis: checkMainAxis = true,
|
|
452
|
-
crossAxis: checkCrossAxis = true,
|
|
453
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
454
|
-
fallbackStrategy = 'bestFit',
|
|
455
|
-
fallbackAxisSideDirection = 'none',
|
|
456
|
-
flipAlignment = true,
|
|
457
|
-
...detectOverflowOptions
|
|
458
|
-
} = evaluate(options, state);
|
|
459
|
-
|
|
460
|
-
// If a reset by the arrow was caused due to an alignment offset being
|
|
461
|
-
// added, we should skip any logic now since `flip()` has already done its
|
|
462
|
-
// work.
|
|
463
|
-
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
464
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
465
|
-
return {};
|
|
466
|
-
}
|
|
467
|
-
const side = getSide(placement);
|
|
468
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
469
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
470
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
471
|
-
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
|
|
472
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
473
|
-
}
|
|
474
|
-
const placements = [initialPlacement, ...fallbackPlacements];
|
|
475
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
476
|
-
const overflows = [];
|
|
477
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
478
|
-
if (checkMainAxis) {
|
|
479
|
-
overflows.push(overflow[side]);
|
|
480
|
-
}
|
|
481
|
-
if (checkCrossAxis) {
|
|
482
|
-
const sides = getAlignmentSides(placement, rects, rtl);
|
|
483
|
-
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
484
|
-
}
|
|
485
|
-
overflowsData = [...overflowsData, {
|
|
486
|
-
placement,
|
|
487
|
-
overflows
|
|
488
|
-
}];
|
|
489
|
-
|
|
490
|
-
// One or more sides is overflowing.
|
|
491
|
-
if (!overflows.every(side => side <= 0)) {
|
|
492
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
493
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
494
|
-
const nextPlacement = placements[nextIndex];
|
|
495
|
-
if (nextPlacement) {
|
|
496
|
-
// Try next placement and re-run the lifecycle.
|
|
497
|
-
return {
|
|
498
|
-
data: {
|
|
499
|
-
index: nextIndex,
|
|
500
|
-
overflows: overflowsData
|
|
501
|
-
},
|
|
502
|
-
reset: {
|
|
503
|
-
placement: nextPlacement
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
509
|
-
// then find the placement that fits the best on the main crossAxis side.
|
|
510
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
511
|
-
|
|
512
|
-
// Otherwise fallback.
|
|
513
|
-
if (!resetPlacement) {
|
|
514
|
-
switch (fallbackStrategy) {
|
|
515
|
-
case 'bestFit':
|
|
516
|
-
{
|
|
517
|
-
var _overflowsData$map$so;
|
|
518
|
-
const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
519
|
-
if (placement) {
|
|
520
|
-
resetPlacement = placement;
|
|
521
|
-
}
|
|
522
|
-
break;
|
|
523
|
-
}
|
|
524
|
-
case 'initialPlacement':
|
|
525
|
-
resetPlacement = initialPlacement;
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
if (placement !== resetPlacement) {
|
|
530
|
-
return {
|
|
531
|
-
reset: {
|
|
532
|
-
placement: resetPlacement
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
return {};
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
543
|
-
// Derivable.
|
|
544
|
-
|
|
545
|
-
async function convertValueToCoords(state, options) {
|
|
546
|
-
const {
|
|
547
|
-
placement,
|
|
548
|
-
platform,
|
|
549
|
-
elements
|
|
550
|
-
} = state;
|
|
551
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
552
|
-
const side = getSide(placement);
|
|
553
|
-
const alignment = getAlignment(placement);
|
|
554
|
-
const isVertical = getSideAxis(placement) === 'y';
|
|
555
|
-
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
556
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
557
|
-
const rawValue = evaluate(options, state);
|
|
558
|
-
|
|
559
|
-
// eslint-disable-next-line prefer-const
|
|
560
|
-
let {
|
|
561
|
-
mainAxis,
|
|
562
|
-
crossAxis,
|
|
563
|
-
alignmentAxis
|
|
564
|
-
} = typeof rawValue === 'number' ? {
|
|
565
|
-
mainAxis: rawValue,
|
|
566
|
-
crossAxis: 0,
|
|
567
|
-
alignmentAxis: null
|
|
568
|
-
} : {
|
|
569
|
-
mainAxis: 0,
|
|
570
|
-
crossAxis: 0,
|
|
571
|
-
alignmentAxis: null,
|
|
572
|
-
...rawValue
|
|
573
|
-
};
|
|
574
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
|
575
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
576
|
-
}
|
|
577
|
-
return isVertical ? {
|
|
578
|
-
x: crossAxis * crossAxisMulti,
|
|
579
|
-
y: mainAxis * mainAxisMulti
|
|
580
|
-
} : {
|
|
581
|
-
x: mainAxis * mainAxisMulti,
|
|
582
|
-
y: crossAxis * crossAxisMulti
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Modifies the placement by translating the floating element along the
|
|
588
|
-
* specified axes.
|
|
589
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
590
|
-
* object may be passed.
|
|
591
|
-
* @see https://floating-ui.com/docs/offset
|
|
592
|
-
*/
|
|
593
|
-
const offset = function (options) {
|
|
594
|
-
if (options === void 0) {
|
|
595
|
-
options = 0;
|
|
596
|
-
}
|
|
597
|
-
return {
|
|
598
|
-
name: 'offset',
|
|
599
|
-
options,
|
|
600
|
-
async fn(state) {
|
|
601
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
602
|
-
const {
|
|
603
|
-
x,
|
|
604
|
-
y,
|
|
605
|
-
placement,
|
|
606
|
-
middlewareData
|
|
607
|
-
} = state;
|
|
608
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
609
|
-
|
|
610
|
-
// If the placement is the same and the arrow caused an alignment offset
|
|
611
|
-
// then we don't need to change the positioning coordinates.
|
|
612
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
613
|
-
return {};
|
|
614
|
-
}
|
|
615
|
-
return {
|
|
616
|
-
x: x + diffCoords.x,
|
|
617
|
-
y: y + diffCoords.y,
|
|
618
|
-
data: {
|
|
619
|
-
...diffCoords,
|
|
620
|
-
placement
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
629
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
630
|
-
* @see https://floating-ui.com/docs/shift
|
|
631
|
-
*/
|
|
632
|
-
const shift = function (options) {
|
|
633
|
-
if (options === void 0) {
|
|
634
|
-
options = {};
|
|
635
|
-
}
|
|
636
|
-
return {
|
|
637
|
-
name: 'shift',
|
|
638
|
-
options,
|
|
639
|
-
async fn(state) {
|
|
640
|
-
const {
|
|
641
|
-
x,
|
|
642
|
-
y,
|
|
643
|
-
placement
|
|
644
|
-
} = state;
|
|
645
|
-
const {
|
|
646
|
-
mainAxis: checkMainAxis = true,
|
|
647
|
-
crossAxis: checkCrossAxis = false,
|
|
648
|
-
limiter = {
|
|
649
|
-
fn: _ref => {
|
|
650
|
-
let {
|
|
651
|
-
x,
|
|
652
|
-
y
|
|
653
|
-
} = _ref;
|
|
654
|
-
return {
|
|
655
|
-
x,
|
|
656
|
-
y
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
},
|
|
660
|
-
...detectOverflowOptions
|
|
661
|
-
} = evaluate(options, state);
|
|
662
|
-
const coords = {
|
|
663
|
-
x,
|
|
664
|
-
y
|
|
665
|
-
};
|
|
666
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
667
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
668
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
669
|
-
let mainAxisCoord = coords[mainAxis];
|
|
670
|
-
let crossAxisCoord = coords[crossAxis];
|
|
671
|
-
if (checkMainAxis) {
|
|
672
|
-
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
673
|
-
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
674
|
-
const min = mainAxisCoord + overflow[minSide];
|
|
675
|
-
const max = mainAxisCoord - overflow[maxSide];
|
|
676
|
-
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
677
|
-
}
|
|
678
|
-
if (checkCrossAxis) {
|
|
679
|
-
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
680
|
-
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
681
|
-
const min = crossAxisCoord + overflow[minSide];
|
|
682
|
-
const max = crossAxisCoord - overflow[maxSide];
|
|
683
|
-
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
684
|
-
}
|
|
685
|
-
const limitedCoords = limiter.fn({
|
|
686
|
-
...state,
|
|
687
|
-
[mainAxis]: mainAxisCoord,
|
|
688
|
-
[crossAxis]: crossAxisCoord
|
|
689
|
-
});
|
|
690
|
-
return {
|
|
691
|
-
...limitedCoords,
|
|
692
|
-
data: {
|
|
693
|
-
x: limitedCoords.x - x,
|
|
694
|
-
y: limitedCoords.y - y
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
function getWindow(node) {
|
|
702
|
-
var _node$ownerDocument;
|
|
703
|
-
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
function getComputedStyle$1(element) {
|
|
707
|
-
return getWindow(element).getComputedStyle(element);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
function isNode(value) {
|
|
711
|
-
return value instanceof getWindow(value).Node;
|
|
712
|
-
}
|
|
713
|
-
function getNodeName(node) {
|
|
714
|
-
return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
function isHTMLElement(value) {
|
|
718
|
-
return value instanceof getWindow(value).HTMLElement;
|
|
719
|
-
}
|
|
720
|
-
function isElement(value) {
|
|
721
|
-
return value instanceof getWindow(value).Element;
|
|
722
|
-
}
|
|
723
|
-
function isShadowRoot(node) {
|
|
724
|
-
// Browsers without `ShadowRoot` support.
|
|
725
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
726
|
-
return false;
|
|
727
|
-
}
|
|
728
|
-
const OwnElement = getWindow(node).ShadowRoot;
|
|
729
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
730
|
-
}
|
|
731
|
-
function isOverflowElement(element) {
|
|
732
|
-
const {
|
|
733
|
-
overflow,
|
|
734
|
-
overflowX,
|
|
735
|
-
overflowY,
|
|
736
|
-
display
|
|
737
|
-
} = getComputedStyle$1(element);
|
|
738
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
739
|
-
}
|
|
740
|
-
function isTableElement(element) {
|
|
741
|
-
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
742
|
-
}
|
|
743
|
-
function isContainingBlock(element) {
|
|
744
|
-
const safari = isSafari();
|
|
745
|
-
const css = getComputedStyle$1(element);
|
|
746
|
-
|
|
747
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
748
|
-
return css.transform !== 'none' || css.perspective !== 'none' || !safari && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !safari && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
749
|
-
}
|
|
750
|
-
function isSafari() {
|
|
751
|
-
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
752
|
-
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
753
|
-
}
|
|
754
|
-
function isLastTraversableNode(node) {
|
|
755
|
-
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
const min = Math.min;
|
|
759
|
-
const max = Math.max;
|
|
760
|
-
const round = Math.round;
|
|
761
|
-
|
|
762
|
-
function getCssDimensions(element) {
|
|
763
|
-
const css = getComputedStyle$1(element);
|
|
764
|
-
// In testing environments, the `width` and `height` properties are empty
|
|
765
|
-
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
766
|
-
let width = parseFloat(css.width) || 0;
|
|
767
|
-
let height = parseFloat(css.height) || 0;
|
|
768
|
-
const hasOffset = isHTMLElement(element);
|
|
769
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
770
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
771
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
772
|
-
if (shouldFallback) {
|
|
773
|
-
width = offsetWidth;
|
|
774
|
-
height = offsetHeight;
|
|
775
|
-
}
|
|
776
|
-
return {
|
|
777
|
-
width,
|
|
778
|
-
height,
|
|
779
|
-
fallback: shouldFallback
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
function unwrapElement(element) {
|
|
784
|
-
return !isElement(element) ? element.contextElement : element;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
const FALLBACK_SCALE = {
|
|
788
|
-
x: 1,
|
|
789
|
-
y: 1
|
|
790
|
-
};
|
|
791
|
-
function getScale(element) {
|
|
792
|
-
const domElement = unwrapElement(element);
|
|
793
|
-
if (!isHTMLElement(domElement)) {
|
|
794
|
-
return FALLBACK_SCALE;
|
|
795
|
-
}
|
|
796
|
-
const rect = domElement.getBoundingClientRect();
|
|
797
|
-
const {
|
|
798
|
-
width,
|
|
799
|
-
height,
|
|
800
|
-
fallback
|
|
801
|
-
} = getCssDimensions(domElement);
|
|
802
|
-
let x = (fallback ? round(rect.width) : rect.width) / width;
|
|
803
|
-
let y = (fallback ? round(rect.height) : rect.height) / height;
|
|
804
|
-
|
|
805
|
-
// 0, NaN, or Infinity should always fallback to 1.
|
|
806
|
-
|
|
807
|
-
if (!x || !Number.isFinite(x)) {
|
|
808
|
-
x = 1;
|
|
809
|
-
}
|
|
810
|
-
if (!y || !Number.isFinite(y)) {
|
|
811
|
-
y = 1;
|
|
812
|
-
}
|
|
813
|
-
return {
|
|
814
|
-
x,
|
|
815
|
-
y
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
const noOffsets = {
|
|
820
|
-
x: 0,
|
|
821
|
-
y: 0
|
|
822
|
-
};
|
|
823
|
-
function getVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
824
|
-
var _win$visualViewport, _win$visualViewport2;
|
|
825
|
-
if (isFixed === void 0) {
|
|
826
|
-
isFixed = true;
|
|
827
|
-
}
|
|
828
|
-
if (!isSafari()) {
|
|
829
|
-
return noOffsets;
|
|
830
|
-
}
|
|
831
|
-
const win = element ? getWindow(element) : window;
|
|
832
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== win) {
|
|
833
|
-
return noOffsets;
|
|
834
|
-
}
|
|
835
|
-
return {
|
|
836
|
-
x: ((_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) || 0,
|
|
837
|
-
y: ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
842
|
-
if (includeScale === void 0) {
|
|
843
|
-
includeScale = false;
|
|
844
|
-
}
|
|
845
|
-
if (isFixedStrategy === void 0) {
|
|
846
|
-
isFixedStrategy = false;
|
|
847
|
-
}
|
|
848
|
-
const clientRect = element.getBoundingClientRect();
|
|
849
|
-
const domElement = unwrapElement(element);
|
|
850
|
-
let scale = FALLBACK_SCALE;
|
|
851
|
-
if (includeScale) {
|
|
852
|
-
if (offsetParent) {
|
|
853
|
-
if (isElement(offsetParent)) {
|
|
854
|
-
scale = getScale(offsetParent);
|
|
855
|
-
}
|
|
856
|
-
} else {
|
|
857
|
-
scale = getScale(element);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
const visualOffsets = getVisualOffsets(domElement, isFixedStrategy, offsetParent);
|
|
861
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
862
|
-
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
863
|
-
let width = clientRect.width / scale.x;
|
|
864
|
-
let height = clientRect.height / scale.y;
|
|
865
|
-
if (domElement) {
|
|
866
|
-
const win = getWindow(domElement);
|
|
867
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
868
|
-
let currentIFrame = win.frameElement;
|
|
869
|
-
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
870
|
-
const iframeScale = getScale(currentIFrame);
|
|
871
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
872
|
-
const css = getComputedStyle(currentIFrame);
|
|
873
|
-
iframeRect.x += (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
874
|
-
iframeRect.y += (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
875
|
-
x *= iframeScale.x;
|
|
876
|
-
y *= iframeScale.y;
|
|
877
|
-
width *= iframeScale.x;
|
|
878
|
-
height *= iframeScale.y;
|
|
879
|
-
x += iframeRect.x;
|
|
880
|
-
y += iframeRect.y;
|
|
881
|
-
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return rectToClientRect({
|
|
885
|
-
width,
|
|
886
|
-
height,
|
|
887
|
-
x,
|
|
888
|
-
y
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
function getDocumentElement(node) {
|
|
893
|
-
return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
function getNodeScroll(element) {
|
|
897
|
-
if (isElement(element)) {
|
|
898
|
-
return {
|
|
899
|
-
scrollLeft: element.scrollLeft,
|
|
900
|
-
scrollTop: element.scrollTop
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
return {
|
|
904
|
-
scrollLeft: element.pageXOffset,
|
|
905
|
-
scrollTop: element.pageYOffset
|
|
906
|
-
};
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
910
|
-
let {
|
|
911
|
-
rect,
|
|
912
|
-
offsetParent,
|
|
913
|
-
strategy
|
|
914
|
-
} = _ref;
|
|
915
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
916
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
917
|
-
if (offsetParent === documentElement) {
|
|
918
|
-
return rect;
|
|
919
|
-
}
|
|
920
|
-
let scroll = {
|
|
921
|
-
scrollLeft: 0,
|
|
922
|
-
scrollTop: 0
|
|
923
|
-
};
|
|
924
|
-
let scale = {
|
|
925
|
-
x: 1,
|
|
926
|
-
y: 1
|
|
927
|
-
};
|
|
928
|
-
const offsets = {
|
|
929
|
-
x: 0,
|
|
930
|
-
y: 0
|
|
931
|
-
};
|
|
932
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
|
|
933
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
934
|
-
scroll = getNodeScroll(offsetParent);
|
|
935
|
-
}
|
|
936
|
-
if (isHTMLElement(offsetParent)) {
|
|
937
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
938
|
-
scale = getScale(offsetParent);
|
|
939
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
940
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
return {
|
|
944
|
-
width: rect.width * scale.x,
|
|
945
|
-
height: rect.height * scale.y,
|
|
946
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
947
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
948
|
-
};
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
function getWindowScrollBarX(element) {
|
|
952
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
953
|
-
// incorrect for RTL.
|
|
954
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
// Gets the entire size of the scrollable document area, even extending outside
|
|
958
|
-
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
959
|
-
function getDocumentRect(element) {
|
|
960
|
-
const html = getDocumentElement(element);
|
|
961
|
-
const scroll = getNodeScroll(element);
|
|
962
|
-
const body = element.ownerDocument.body;
|
|
963
|
-
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
964
|
-
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
965
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
966
|
-
const y = -scroll.scrollTop;
|
|
967
|
-
if (getComputedStyle$1(body).direction === 'rtl') {
|
|
968
|
-
x += max(html.clientWidth, body.clientWidth) - width;
|
|
969
|
-
}
|
|
970
|
-
return {
|
|
971
|
-
width,
|
|
972
|
-
height,
|
|
973
|
-
x,
|
|
974
|
-
y
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
function getParentNode(node) {
|
|
979
|
-
if (getNodeName(node) === 'html') {
|
|
980
|
-
return node;
|
|
981
|
-
}
|
|
982
|
-
const result =
|
|
983
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
984
|
-
node.assignedSlot ||
|
|
985
|
-
// DOM Element detected.
|
|
986
|
-
node.parentNode ||
|
|
987
|
-
// ShadowRoot detected.
|
|
988
|
-
isShadowRoot(node) && node.host ||
|
|
989
|
-
// Fallback.
|
|
990
|
-
getDocumentElement(node);
|
|
991
|
-
return isShadowRoot(result) ? result.host : result;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
function getNearestOverflowAncestor(node) {
|
|
995
|
-
const parentNode = getParentNode(node);
|
|
996
|
-
if (isLastTraversableNode(parentNode)) {
|
|
997
|
-
// `getParentNode` will never return a `Document` due to the fallback
|
|
998
|
-
// check, so it's either the <html> or <body> element.
|
|
999
|
-
return parentNode.ownerDocument.body;
|
|
1000
|
-
}
|
|
1001
|
-
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
1002
|
-
return parentNode;
|
|
1003
|
-
}
|
|
1004
|
-
return getNearestOverflowAncestor(parentNode);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
function getOverflowAncestors(node, list) {
|
|
1008
|
-
var _node$ownerDocument;
|
|
1009
|
-
if (list === void 0) {
|
|
1010
|
-
list = [];
|
|
1011
|
-
}
|
|
1012
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
1013
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);
|
|
1014
|
-
const win = getWindow(scrollableAncestor);
|
|
1015
|
-
if (isBody) {
|
|
1016
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : []);
|
|
1017
|
-
}
|
|
1018
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor));
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
function getViewportRect(element, strategy) {
|
|
1022
|
-
const win = getWindow(element);
|
|
1023
|
-
const html = getDocumentElement(element);
|
|
1024
|
-
const visualViewport = win.visualViewport;
|
|
1025
|
-
let width = html.clientWidth;
|
|
1026
|
-
let height = html.clientHeight;
|
|
1027
|
-
let x = 0;
|
|
1028
|
-
let y = 0;
|
|
1029
|
-
if (visualViewport) {
|
|
1030
|
-
width = visualViewport.width;
|
|
1031
|
-
height = visualViewport.height;
|
|
1032
|
-
const visualViewportBased = isSafari();
|
|
1033
|
-
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
1034
|
-
x = visualViewport.offsetLeft;
|
|
1035
|
-
y = visualViewport.offsetTop;
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
return {
|
|
1039
|
-
width,
|
|
1040
|
-
height,
|
|
1041
|
-
x,
|
|
1042
|
-
y
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
// Returns the inner client rect, subtracting scrollbars if present.
|
|
1047
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1048
|
-
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
1049
|
-
const top = clientRect.top + element.clientTop;
|
|
1050
|
-
const left = clientRect.left + element.clientLeft;
|
|
1051
|
-
const scale = isHTMLElement(element) ? getScale(element) : {
|
|
1052
|
-
x: 1,
|
|
1053
|
-
y: 1
|
|
1054
|
-
};
|
|
1055
|
-
const width = element.clientWidth * scale.x;
|
|
1056
|
-
const height = element.clientHeight * scale.y;
|
|
1057
|
-
const x = left * scale.x;
|
|
1058
|
-
const y = top * scale.y;
|
|
1059
|
-
return {
|
|
1060
|
-
width,
|
|
1061
|
-
height,
|
|
1062
|
-
x,
|
|
1063
|
-
y
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1067
|
-
let rect;
|
|
1068
|
-
if (clippingAncestor === 'viewport') {
|
|
1069
|
-
rect = getViewportRect(element, strategy);
|
|
1070
|
-
} else if (clippingAncestor === 'document') {
|
|
1071
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1072
|
-
} else if (isElement(clippingAncestor)) {
|
|
1073
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1074
|
-
} else {
|
|
1075
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1076
|
-
rect = {
|
|
1077
|
-
...clippingAncestor,
|
|
1078
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1079
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
1080
|
-
};
|
|
1081
|
-
}
|
|
1082
|
-
return rectToClientRect(rect);
|
|
1083
|
-
}
|
|
1084
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1085
|
-
const parentNode = getParentNode(element);
|
|
1086
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1087
|
-
return false;
|
|
1088
|
-
}
|
|
1089
|
-
return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
1093
|
-
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
1094
|
-
// of the given element up the tree.
|
|
1095
|
-
function getClippingElementAncestors(element, cache) {
|
|
1096
|
-
const cachedResult = cache.get(element);
|
|
1097
|
-
if (cachedResult) {
|
|
1098
|
-
return cachedResult;
|
|
1099
|
-
}
|
|
1100
|
-
let result = getOverflowAncestors(element).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
1101
|
-
let currentContainingBlockComputedStyle = null;
|
|
1102
|
-
const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
|
|
1103
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1104
|
-
|
|
1105
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1106
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1107
|
-
const computedStyle = getComputedStyle$1(currentNode);
|
|
1108
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1109
|
-
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
1110
|
-
currentContainingBlockComputedStyle = null;
|
|
1111
|
-
}
|
|
1112
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1113
|
-
if (shouldDropCurrentNode) {
|
|
1114
|
-
// Drop non-containing blocks.
|
|
1115
|
-
result = result.filter(ancestor => ancestor !== currentNode);
|
|
1116
|
-
} else {
|
|
1117
|
-
// Record last containing block for next iteration.
|
|
1118
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1119
|
-
}
|
|
1120
|
-
currentNode = getParentNode(currentNode);
|
|
1121
|
-
}
|
|
1122
|
-
cache.set(element, result);
|
|
1123
|
-
return result;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
// Gets the maximum area that the element is visible in due to any number of
|
|
1127
|
-
// clipping ancestors.
|
|
1128
|
-
function getClippingRect(_ref) {
|
|
1129
|
-
let {
|
|
1130
|
-
element,
|
|
1131
|
-
boundary,
|
|
1132
|
-
rootBoundary,
|
|
1133
|
-
strategy
|
|
1134
|
-
} = _ref;
|
|
1135
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1136
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1137
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
1138
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1139
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1140
|
-
accRect.top = max(rect.top, accRect.top);
|
|
1141
|
-
accRect.right = min(rect.right, accRect.right);
|
|
1142
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
1143
|
-
accRect.left = max(rect.left, accRect.left);
|
|
1144
|
-
return accRect;
|
|
1145
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1146
|
-
return {
|
|
1147
|
-
width: clippingRect.right - clippingRect.left,
|
|
1148
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
1149
|
-
x: clippingRect.left,
|
|
1150
|
-
y: clippingRect.top
|
|
1151
|
-
};
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
function getDimensions(element) {
|
|
1155
|
-
return getCssDimensions(element);
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
function getTrueOffsetParent(element, polyfill) {
|
|
1159
|
-
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
1160
|
-
return null;
|
|
1161
|
-
}
|
|
1162
|
-
if (polyfill) {
|
|
1163
|
-
return polyfill(element);
|
|
1164
|
-
}
|
|
1165
|
-
return element.offsetParent;
|
|
1166
|
-
}
|
|
1167
|
-
function getContainingBlock(element) {
|
|
1168
|
-
let currentNode = getParentNode(element);
|
|
1169
|
-
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1170
|
-
if (isContainingBlock(currentNode)) {
|
|
1171
|
-
return currentNode;
|
|
1172
|
-
} else {
|
|
1173
|
-
currentNode = getParentNode(currentNode);
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
return null;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1180
|
-
// such as table ancestors and cross browser bugs.
|
|
1181
|
-
function getOffsetParent(element, polyfill) {
|
|
1182
|
-
const window = getWindow(element);
|
|
1183
|
-
if (!isHTMLElement(element)) {
|
|
1184
|
-
return window;
|
|
1185
|
-
}
|
|
1186
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1187
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
1188
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1189
|
-
}
|
|
1190
|
-
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
|
|
1191
|
-
return window;
|
|
1192
|
-
}
|
|
1193
|
-
return offsetParent || getContainingBlock(element) || window;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1197
|
-
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1198
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1199
|
-
const isFixed = strategy === 'fixed';
|
|
1200
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1201
|
-
let scroll = {
|
|
1202
|
-
scrollLeft: 0,
|
|
1203
|
-
scrollTop: 0
|
|
1204
|
-
};
|
|
1205
|
-
const offsets = {
|
|
1206
|
-
x: 0,
|
|
1207
|
-
y: 0
|
|
1208
|
-
};
|
|
1209
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1210
|
-
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
1211
|
-
scroll = getNodeScroll(offsetParent);
|
|
1212
|
-
}
|
|
1213
|
-
if (isHTMLElement(offsetParent)) {
|
|
1214
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1215
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1216
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1217
|
-
} else if (documentElement) {
|
|
1218
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
return {
|
|
1222
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1223
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1224
|
-
width: rect.width,
|
|
1225
|
-
height: rect.height
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
const platform = {
|
|
1230
|
-
getClippingRect,
|
|
1231
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1232
|
-
isElement,
|
|
1233
|
-
getDimensions,
|
|
1234
|
-
getOffsetParent,
|
|
1235
|
-
getDocumentElement,
|
|
1236
|
-
getScale,
|
|
1237
|
-
async getElementRects(_ref) {
|
|
1238
|
-
let {
|
|
1239
|
-
reference,
|
|
1240
|
-
floating,
|
|
1241
|
-
strategy
|
|
1242
|
-
} = _ref;
|
|
1243
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1244
|
-
const getDimensionsFn = this.getDimensions;
|
|
1245
|
-
return {
|
|
1246
|
-
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
1247
|
-
floating: {
|
|
1248
|
-
x: 0,
|
|
1249
|
-
y: 0,
|
|
1250
|
-
...(await getDimensionsFn(floating))
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
},
|
|
1254
|
-
getClientRects: element => Array.from(element.getClientRects()),
|
|
1255
|
-
isRTL: element => getComputedStyle$1(element).direction === 'rtl'
|
|
1256
|
-
};
|
|
1257
|
-
|
|
1258
|
-
/**
|
|
1259
|
-
* Automatically updates the position of the floating element when necessary.
|
|
1260
|
-
* Should only be called when the floating element is mounted on the DOM or
|
|
1261
|
-
* visible on the screen.
|
|
1262
|
-
* @returns cleanup function that should be invoked when the floating element is
|
|
1263
|
-
* removed from the DOM or hidden from the screen.
|
|
1264
|
-
* @see https://floating-ui.com/docs/autoUpdate
|
|
1265
|
-
*/
|
|
1266
|
-
function autoUpdate(reference, floating, update, options) {
|
|
1267
|
-
if (options === void 0) {
|
|
1268
|
-
options = {};
|
|
1269
|
-
}
|
|
1270
|
-
const {
|
|
1271
|
-
ancestorScroll = true,
|
|
1272
|
-
ancestorResize = true,
|
|
1273
|
-
elementResize = true,
|
|
1274
|
-
animationFrame = false
|
|
1275
|
-
} = options;
|
|
1276
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
|
|
1277
|
-
ancestors.forEach(ancestor => {
|
|
1278
|
-
// ignores Window, checks for [object VisualViewport]
|
|
1279
|
-
const isVisualViewport = !isElement(ancestor) && ancestor.toString().includes('V');
|
|
1280
|
-
if (ancestorScroll && (animationFrame ? isVisualViewport : true)) {
|
|
1281
|
-
ancestor.addEventListener('scroll', update, {
|
|
1282
|
-
passive: true
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
ancestorResize && ancestor.addEventListener('resize', update);
|
|
1286
|
-
});
|
|
1287
|
-
let observer = null;
|
|
1288
|
-
if (elementResize) {
|
|
1289
|
-
observer = new ResizeObserver(() => {
|
|
1290
|
-
update();
|
|
1291
|
-
});
|
|
1292
|
-
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
1293
|
-
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
1294
|
-
observer.observe(reference.contextElement);
|
|
1295
|
-
}
|
|
1296
|
-
observer.observe(floating);
|
|
1297
|
-
}
|
|
1298
|
-
let frameId;
|
|
1299
|
-
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
1300
|
-
if (animationFrame) {
|
|
1301
|
-
frameLoop();
|
|
1302
|
-
}
|
|
1303
|
-
function frameLoop() {
|
|
1304
|
-
const nextRefRect = getBoundingClientRect(reference);
|
|
1305
|
-
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
1306
|
-
update();
|
|
1307
|
-
}
|
|
1308
|
-
prevRefRect = nextRefRect;
|
|
1309
|
-
frameId = requestAnimationFrame(frameLoop);
|
|
1310
|
-
}
|
|
1311
|
-
update();
|
|
1312
|
-
return () => {
|
|
1313
|
-
var _observer;
|
|
1314
|
-
ancestors.forEach(ancestor => {
|
|
1315
|
-
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
1316
|
-
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
1317
|
-
});
|
|
1318
|
-
(_observer = observer) == null ? void 0 : _observer.disconnect();
|
|
1319
|
-
observer = null;
|
|
1320
|
-
if (animationFrame) {
|
|
1321
|
-
cancelAnimationFrame(frameId);
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/**
|
|
1327
|
-
* Computes the `x` and `y` coordinates that will place the floating element
|
|
1328
|
-
* next to a reference element when it is given a certain CSS positioning
|
|
1329
|
-
* strategy.
|
|
1330
|
-
*/
|
|
1331
|
-
const computePosition = (reference, floating, options) => {
|
|
1332
|
-
// This caches the expensive `getClippingElementAncestors` function so that
|
|
1333
|
-
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
1334
|
-
// single call. If other functions become expensive, we can add them as well.
|
|
1335
|
-
const cache = new Map();
|
|
1336
|
-
const mergedOptions = {
|
|
1337
|
-
platform,
|
|
1338
|
-
...options
|
|
1339
|
-
};
|
|
1340
|
-
const platformWithCache = {
|
|
1341
|
-
...mergedOptions.platform,
|
|
1342
|
-
_c: cache
|
|
1343
|
-
};
|
|
1344
|
-
return computePosition$1(reference, floating, {
|
|
1345
|
-
...mergedOptions,
|
|
1346
|
-
platform: platformWithCache
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
exports.arrow = arrow;
|
|
1351
|
-
exports.autoUpdate = autoUpdate;
|
|
1352
|
-
exports.computePosition = computePosition;
|
|
1353
|
-
exports.flip = flip;
|
|
1354
|
-
exports.offset = offset;
|
|
1355
|
-
exports.shift = shift;
|