@abcagency/hc-ui-components 1.3.67 → 1.3.70
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/dist/components/HireControlMap.js +4 -1
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/containers/accordions/map-accordion-item-container.js +4 -7
- package/dist/components/containers/accordions/map-accordion-item-container.js.map +1 -1
- package/dist/components/containers/filter/commute-container.js +1 -1
- package/dist/components/containers/list/list-item/list-item-container.js +3 -4
- package/dist/components/containers/list/list-item/list-item-container.js.map +1 -1
- package/dist/components/containers/maps/info-window-content-container.js +0 -2
- package/dist/components/containers/maps/info-window-content-container.js.map +1 -1
- package/dist/components/containers/maps/map-container.js +1 -1
- package/dist/components/containers/maps/map-marker-container.js +1 -1
- package/dist/components/modules/accordions/default.js +2 -2
- package/dist/components/modules/buttons/button-group-apply.js +1 -1
- package/dist/components/modules/buttons/commute-pill.js.map +1 -1
- package/dist/components/modules/buttons/default.js +2 -2
- package/dist/components/modules/cards/default.js +2 -2
- package/dist/components/modules/dialogs/apply-dialog.js +1 -1
- package/dist/components/modules/filter/commute.js +2 -2
- package/dist/components/modules/filter/sort.js +2 -2
- package/dist/components/modules/grid.js +1 -1
- package/dist/components/modules/icon.js +1 -1
- package/dist/components/modules/list/header.js +1 -1
- package/dist/components/modules/list/item-expand-card/index.js +1 -1
- package/dist/components/modules/maps/info-window-content.js +3 -2
- package/dist/components/modules/maps/info-window-content.js.map +1 -1
- package/dist/components/modules/maps/map-marker.js +1 -1
- package/dist/components/modules/maps/map.js +1 -1
- package/dist/components/modules/maps/place-marker.js +1 -1
- package/dist/components/modules/maps/tabs.js +1 -1
- package/dist/contexts/mapListContext.js +2 -3
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js +802 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +679 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +343 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +140 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js +33 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/keyboard.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js +19 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/transition.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js +8 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/components/transitions/utils/transition.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js +8 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-computed.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js +9 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-id.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +10 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js +11 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +8 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/hidden.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/bugs.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/document-ready.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/env.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/form.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/match.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/micro-task.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/once.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/owner.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js +4 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/platform.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js +11 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@headlessui/react/dist/utils/render.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js +1928 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@iconify/react/dist/iconify.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js +304 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js +145 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js +19 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js +320 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js +12 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js +27 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js +279 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js +120 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js +221 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js +1109 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js +82 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js +187 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js +16 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js +35 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js +8515 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@react-google-maps/api/dist/esm.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js +271 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@remix-run/router/dist/router.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js +43 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js +669 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js +61 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js +137 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js +1779 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/fuse.js/dist/fuse.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js +280 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js +201 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-router-dom/dist/index.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js +2530 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js +57 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +49 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js +243 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-places-autocomplete/dist/index.esm.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/dist/hc_react_map_npm/packages/hc-ui-components/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/services/listingAggregatorService.js +3 -9
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/types/components/containers/list/list-item/list-item-container.d.ts +1 -2
- package/dist/types/contexts/mapListContext.d.ts +1 -0
- package/dist/types/services/listingAggregatorService.d.ts +1 -4
- package/dist/util/filterUtil.js +1 -1
- package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js +49 -0
- package/dist/wellspan-careers-web/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js +12 -0
- package/dist/wellspan-careers-web/node_modules/react/jsx-runtime.js.map +1 -0
- package/package.json +2 -1
- package/src/components/HireControlMap.js +3 -0
- package/src/components/containers/accordions/map-accordion-item-container.js +0 -1
- package/src/components/containers/list/list-item/list-item-container.js +0 -1
- package/src/components/containers/maps/info-window-content-container.js +2 -3
- package/src/components/modules/maps/info-window-content.js +3 -2
- package/src/contexts/mapListContext.tsx +3 -4
- package/src/services/listingAggregatorService.ts +6 -16
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
import { offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, computePosition as computePosition$1, arrow as arrow$1, limitShift as limitShift$1 } from '../../core/dist/floating-ui.core.js';
|
|
2
|
+
import { createCoords, rectToClientRect, round, floor, max, min } from '../../utils/dist/floating-ui.utils.js';
|
|
3
|
+
import { getOverflowAncestors, isElement, getWindow, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, isTopLayer, getNodeName, isOverflowElement, getNodeScroll, getParentNode, isLastTraversableNode, isTableElement, isContainingBlock, getContainingBlock } from '../../utils/dist/floating-ui.utils.dom.js';
|
|
4
|
+
|
|
5
|
+
function getCssDimensions(element) {
|
|
6
|
+
const css = getComputedStyle(element);
|
|
7
|
+
// In testing environments, the `width` and `height` properties are empty
|
|
8
|
+
// strings for SVG elements, returning NaN. Fallback to `0` in this case.
|
|
9
|
+
let width = parseFloat(css.width) || 0;
|
|
10
|
+
let height = parseFloat(css.height) || 0;
|
|
11
|
+
const hasOffset = isHTMLElement(element);
|
|
12
|
+
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
13
|
+
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
14
|
+
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
15
|
+
if (shouldFallback) {
|
|
16
|
+
width = offsetWidth;
|
|
17
|
+
height = offsetHeight;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
width,
|
|
21
|
+
height,
|
|
22
|
+
$: shouldFallback
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function unwrapElement(element) {
|
|
27
|
+
return !isElement(element) ? element.contextElement : element;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function getScale(element) {
|
|
31
|
+
const domElement = unwrapElement(element);
|
|
32
|
+
if (!isHTMLElement(domElement)) {
|
|
33
|
+
return createCoords(1);
|
|
34
|
+
}
|
|
35
|
+
const rect = domElement.getBoundingClientRect();
|
|
36
|
+
const {
|
|
37
|
+
width,
|
|
38
|
+
height,
|
|
39
|
+
$
|
|
40
|
+
} = getCssDimensions(domElement);
|
|
41
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
42
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
43
|
+
|
|
44
|
+
// 0, NaN, or Infinity should always fallback to 1.
|
|
45
|
+
|
|
46
|
+
if (!x || !Number.isFinite(x)) {
|
|
47
|
+
x = 1;
|
|
48
|
+
}
|
|
49
|
+
if (!y || !Number.isFinite(y)) {
|
|
50
|
+
y = 1;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
x,
|
|
54
|
+
y
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
59
|
+
function getVisualOffsets(element) {
|
|
60
|
+
const win = getWindow(element);
|
|
61
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
62
|
+
return noOffsets;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
x: win.visualViewport.offsetLeft,
|
|
66
|
+
y: win.visualViewport.offsetTop
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
70
|
+
if (isFixed === void 0) {
|
|
71
|
+
isFixed = false;
|
|
72
|
+
}
|
|
73
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return isFixed;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
80
|
+
if (includeScale === void 0) {
|
|
81
|
+
includeScale = false;
|
|
82
|
+
}
|
|
83
|
+
if (isFixedStrategy === void 0) {
|
|
84
|
+
isFixedStrategy = false;
|
|
85
|
+
}
|
|
86
|
+
const clientRect = element.getBoundingClientRect();
|
|
87
|
+
const domElement = unwrapElement(element);
|
|
88
|
+
let scale = createCoords(1);
|
|
89
|
+
if (includeScale) {
|
|
90
|
+
if (offsetParent) {
|
|
91
|
+
if (isElement(offsetParent)) {
|
|
92
|
+
scale = getScale(offsetParent);
|
|
93
|
+
}
|
|
94
|
+
} else {
|
|
95
|
+
scale = getScale(element);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
99
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
100
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
101
|
+
let width = clientRect.width / scale.x;
|
|
102
|
+
let height = clientRect.height / scale.y;
|
|
103
|
+
if (domElement) {
|
|
104
|
+
const win = getWindow(domElement);
|
|
105
|
+
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
106
|
+
let currentWin = win;
|
|
107
|
+
let currentIFrame = currentWin.frameElement;
|
|
108
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
109
|
+
const iframeScale = getScale(currentIFrame);
|
|
110
|
+
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
111
|
+
const css = getComputedStyle(currentIFrame);
|
|
112
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
113
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
114
|
+
x *= iframeScale.x;
|
|
115
|
+
y *= iframeScale.y;
|
|
116
|
+
width *= iframeScale.x;
|
|
117
|
+
height *= iframeScale.y;
|
|
118
|
+
x += left;
|
|
119
|
+
y += top;
|
|
120
|
+
currentWin = getWindow(currentIFrame);
|
|
121
|
+
currentIFrame = currentWin.frameElement;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return rectToClientRect({
|
|
125
|
+
width,
|
|
126
|
+
height,
|
|
127
|
+
x,
|
|
128
|
+
y
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
133
|
+
let {
|
|
134
|
+
elements,
|
|
135
|
+
rect,
|
|
136
|
+
offsetParent,
|
|
137
|
+
strategy
|
|
138
|
+
} = _ref;
|
|
139
|
+
const isFixed = strategy === 'fixed';
|
|
140
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
141
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
142
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
143
|
+
return rect;
|
|
144
|
+
}
|
|
145
|
+
let scroll = {
|
|
146
|
+
scrollLeft: 0,
|
|
147
|
+
scrollTop: 0
|
|
148
|
+
};
|
|
149
|
+
let scale = createCoords(1);
|
|
150
|
+
const offsets = createCoords(0);
|
|
151
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
152
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
153
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
154
|
+
scroll = getNodeScroll(offsetParent);
|
|
155
|
+
}
|
|
156
|
+
if (isHTMLElement(offsetParent)) {
|
|
157
|
+
const offsetRect = getBoundingClientRect(offsetParent);
|
|
158
|
+
scale = getScale(offsetParent);
|
|
159
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
160
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
width: rect.width * scale.x,
|
|
165
|
+
height: rect.height * scale.y,
|
|
166
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
167
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function getClientRects(element) {
|
|
172
|
+
return Array.from(element.getClientRects());
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function getWindowScrollBarX(element) {
|
|
176
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
177
|
+
// incorrect for RTL.
|
|
178
|
+
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Gets the entire size of the scrollable document area, even extending outside
|
|
182
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
183
|
+
function getDocumentRect(element) {
|
|
184
|
+
const html = getDocumentElement(element);
|
|
185
|
+
const scroll = getNodeScroll(element);
|
|
186
|
+
const body = element.ownerDocument.body;
|
|
187
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
188
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
189
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
190
|
+
const y = -scroll.scrollTop;
|
|
191
|
+
if (getComputedStyle(body).direction === 'rtl') {
|
|
192
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
width,
|
|
196
|
+
height,
|
|
197
|
+
x,
|
|
198
|
+
y
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function getViewportRect(element, strategy) {
|
|
203
|
+
const win = getWindow(element);
|
|
204
|
+
const html = getDocumentElement(element);
|
|
205
|
+
const visualViewport = win.visualViewport;
|
|
206
|
+
let width = html.clientWidth;
|
|
207
|
+
let height = html.clientHeight;
|
|
208
|
+
let x = 0;
|
|
209
|
+
let y = 0;
|
|
210
|
+
if (visualViewport) {
|
|
211
|
+
width = visualViewport.width;
|
|
212
|
+
height = visualViewport.height;
|
|
213
|
+
const visualViewportBased = isWebKit();
|
|
214
|
+
if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
|
|
215
|
+
x = visualViewport.offsetLeft;
|
|
216
|
+
y = visualViewport.offsetTop;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
width,
|
|
221
|
+
height,
|
|
222
|
+
x,
|
|
223
|
+
y
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Returns the inner client rect, subtracting scrollbars if present.
|
|
228
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
229
|
+
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
230
|
+
const top = clientRect.top + element.clientTop;
|
|
231
|
+
const left = clientRect.left + element.clientLeft;
|
|
232
|
+
const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
|
|
233
|
+
const width = element.clientWidth * scale.x;
|
|
234
|
+
const height = element.clientHeight * scale.y;
|
|
235
|
+
const x = left * scale.x;
|
|
236
|
+
const y = top * scale.y;
|
|
237
|
+
return {
|
|
238
|
+
width,
|
|
239
|
+
height,
|
|
240
|
+
x,
|
|
241
|
+
y
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
245
|
+
let rect;
|
|
246
|
+
if (clippingAncestor === 'viewport') {
|
|
247
|
+
rect = getViewportRect(element, strategy);
|
|
248
|
+
} else if (clippingAncestor === 'document') {
|
|
249
|
+
rect = getDocumentRect(getDocumentElement(element));
|
|
250
|
+
} else if (isElement(clippingAncestor)) {
|
|
251
|
+
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
252
|
+
} else {
|
|
253
|
+
const visualOffsets = getVisualOffsets(element);
|
|
254
|
+
rect = {
|
|
255
|
+
...clippingAncestor,
|
|
256
|
+
x: clippingAncestor.x - visualOffsets.x,
|
|
257
|
+
y: clippingAncestor.y - visualOffsets.y
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
return rectToClientRect(rect);
|
|
261
|
+
}
|
|
262
|
+
function hasFixedPositionAncestor(element, stopNode) {
|
|
263
|
+
const parentNode = getParentNode(element);
|
|
264
|
+
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// A "clipping ancestor" is an `overflow` element with the characteristic of
|
|
271
|
+
// clipping (or hiding) child elements. This returns all clipping ancestors
|
|
272
|
+
// of the given element up the tree.
|
|
273
|
+
function getClippingElementAncestors(element, cache) {
|
|
274
|
+
const cachedResult = cache.get(element);
|
|
275
|
+
if (cachedResult) {
|
|
276
|
+
return cachedResult;
|
|
277
|
+
}
|
|
278
|
+
let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
|
|
279
|
+
let currentContainingBlockComputedStyle = null;
|
|
280
|
+
const elementIsFixed = getComputedStyle(element).position === 'fixed';
|
|
281
|
+
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
282
|
+
|
|
283
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
284
|
+
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
285
|
+
const computedStyle = getComputedStyle(currentNode);
|
|
286
|
+
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
287
|
+
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
288
|
+
currentContainingBlockComputedStyle = null;
|
|
289
|
+
}
|
|
290
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
291
|
+
if (shouldDropCurrentNode) {
|
|
292
|
+
// Drop non-containing blocks.
|
|
293
|
+
result = result.filter(ancestor => ancestor !== currentNode);
|
|
294
|
+
} else {
|
|
295
|
+
// Record last containing block for next iteration.
|
|
296
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
297
|
+
}
|
|
298
|
+
currentNode = getParentNode(currentNode);
|
|
299
|
+
}
|
|
300
|
+
cache.set(element, result);
|
|
301
|
+
return result;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// Gets the maximum area that the element is visible in due to any number of
|
|
305
|
+
// clipping ancestors.
|
|
306
|
+
function getClippingRect(_ref) {
|
|
307
|
+
let {
|
|
308
|
+
element,
|
|
309
|
+
boundary,
|
|
310
|
+
rootBoundary,
|
|
311
|
+
strategy
|
|
312
|
+
} = _ref;
|
|
313
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
314
|
+
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
315
|
+
const firstClippingAncestor = clippingAncestors[0];
|
|
316
|
+
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
317
|
+
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
318
|
+
accRect.top = max(rect.top, accRect.top);
|
|
319
|
+
accRect.right = min(rect.right, accRect.right);
|
|
320
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
321
|
+
accRect.left = max(rect.left, accRect.left);
|
|
322
|
+
return accRect;
|
|
323
|
+
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
324
|
+
return {
|
|
325
|
+
width: clippingRect.right - clippingRect.left,
|
|
326
|
+
height: clippingRect.bottom - clippingRect.top,
|
|
327
|
+
x: clippingRect.left,
|
|
328
|
+
y: clippingRect.top
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
function getDimensions(element) {
|
|
333
|
+
const {
|
|
334
|
+
width,
|
|
335
|
+
height
|
|
336
|
+
} = getCssDimensions(element);
|
|
337
|
+
return {
|
|
338
|
+
width,
|
|
339
|
+
height
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
344
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
345
|
+
const documentElement = getDocumentElement(offsetParent);
|
|
346
|
+
const isFixed = strategy === 'fixed';
|
|
347
|
+
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
348
|
+
let scroll = {
|
|
349
|
+
scrollLeft: 0,
|
|
350
|
+
scrollTop: 0
|
|
351
|
+
};
|
|
352
|
+
const offsets = createCoords(0);
|
|
353
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
354
|
+
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
355
|
+
scroll = getNodeScroll(offsetParent);
|
|
356
|
+
}
|
|
357
|
+
if (isOffsetParentAnElement) {
|
|
358
|
+
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
359
|
+
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
360
|
+
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
361
|
+
} else if (documentElement) {
|
|
362
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
const x = rect.left + scroll.scrollLeft - offsets.x;
|
|
366
|
+
const y = rect.top + scroll.scrollTop - offsets.y;
|
|
367
|
+
return {
|
|
368
|
+
x,
|
|
369
|
+
y,
|
|
370
|
+
width: rect.width,
|
|
371
|
+
height: rect.height
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
function isStaticPositioned(element) {
|
|
376
|
+
return getComputedStyle(element).position === 'static';
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function getTrueOffsetParent(element, polyfill) {
|
|
380
|
+
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
381
|
+
return null;
|
|
382
|
+
}
|
|
383
|
+
if (polyfill) {
|
|
384
|
+
return polyfill(element);
|
|
385
|
+
}
|
|
386
|
+
return element.offsetParent;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
390
|
+
// such as table ancestors and cross browser bugs.
|
|
391
|
+
function getOffsetParent(element, polyfill) {
|
|
392
|
+
const win = getWindow(element);
|
|
393
|
+
if (isTopLayer(element)) {
|
|
394
|
+
return win;
|
|
395
|
+
}
|
|
396
|
+
if (!isHTMLElement(element)) {
|
|
397
|
+
let svgOffsetParent = getParentNode(element);
|
|
398
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
399
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
400
|
+
return svgOffsetParent;
|
|
401
|
+
}
|
|
402
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
403
|
+
}
|
|
404
|
+
return win;
|
|
405
|
+
}
|
|
406
|
+
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
407
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
408
|
+
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
409
|
+
}
|
|
410
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
411
|
+
return win;
|
|
412
|
+
}
|
|
413
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
const getElementRects = async function (data) {
|
|
417
|
+
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
418
|
+
const getDimensionsFn = this.getDimensions;
|
|
419
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
420
|
+
return {
|
|
421
|
+
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
422
|
+
floating: {
|
|
423
|
+
x: 0,
|
|
424
|
+
y: 0,
|
|
425
|
+
width: floatingDimensions.width,
|
|
426
|
+
height: floatingDimensions.height
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
function isRTL(element) {
|
|
432
|
+
return getComputedStyle(element).direction === 'rtl';
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
const platform = {
|
|
436
|
+
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
437
|
+
getDocumentElement,
|
|
438
|
+
getClippingRect,
|
|
439
|
+
getOffsetParent,
|
|
440
|
+
getElementRects,
|
|
441
|
+
getClientRects,
|
|
442
|
+
getDimensions,
|
|
443
|
+
getScale,
|
|
444
|
+
isElement,
|
|
445
|
+
isRTL
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
// https://samthor.au/2021/observing-dom/
|
|
449
|
+
function observeMove(element, onMove) {
|
|
450
|
+
let io = null;
|
|
451
|
+
let timeoutId;
|
|
452
|
+
const root = getDocumentElement(element);
|
|
453
|
+
function cleanup() {
|
|
454
|
+
var _io;
|
|
455
|
+
clearTimeout(timeoutId);
|
|
456
|
+
(_io = io) == null || _io.disconnect();
|
|
457
|
+
io = null;
|
|
458
|
+
}
|
|
459
|
+
function refresh(skip, threshold) {
|
|
460
|
+
if (skip === void 0) {
|
|
461
|
+
skip = false;
|
|
462
|
+
}
|
|
463
|
+
if (threshold === void 0) {
|
|
464
|
+
threshold = 1;
|
|
465
|
+
}
|
|
466
|
+
cleanup();
|
|
467
|
+
const {
|
|
468
|
+
left,
|
|
469
|
+
top,
|
|
470
|
+
width,
|
|
471
|
+
height
|
|
472
|
+
} = element.getBoundingClientRect();
|
|
473
|
+
if (!skip) {
|
|
474
|
+
onMove();
|
|
475
|
+
}
|
|
476
|
+
if (!width || !height) {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
const insetTop = floor(top);
|
|
480
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
481
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
482
|
+
const insetLeft = floor(left);
|
|
483
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
484
|
+
const options = {
|
|
485
|
+
rootMargin,
|
|
486
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
487
|
+
};
|
|
488
|
+
let isFirstUpdate = true;
|
|
489
|
+
function handleObserve(entries) {
|
|
490
|
+
const ratio = entries[0].intersectionRatio;
|
|
491
|
+
if (ratio !== threshold) {
|
|
492
|
+
if (!isFirstUpdate) {
|
|
493
|
+
return refresh();
|
|
494
|
+
}
|
|
495
|
+
if (!ratio) {
|
|
496
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
497
|
+
// to prevent an infinite loop of updates.
|
|
498
|
+
timeoutId = setTimeout(() => {
|
|
499
|
+
refresh(false, 1e-7);
|
|
500
|
+
}, 1000);
|
|
501
|
+
} else {
|
|
502
|
+
refresh(false, ratio);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
isFirstUpdate = false;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
509
|
+
// error.
|
|
510
|
+
try {
|
|
511
|
+
io = new IntersectionObserver(handleObserve, {
|
|
512
|
+
...options,
|
|
513
|
+
// Handle <iframe>s
|
|
514
|
+
root: root.ownerDocument
|
|
515
|
+
});
|
|
516
|
+
} catch (e) {
|
|
517
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
518
|
+
}
|
|
519
|
+
io.observe(element);
|
|
520
|
+
}
|
|
521
|
+
refresh(true);
|
|
522
|
+
return cleanup;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Automatically updates the position of the floating element when necessary.
|
|
527
|
+
* Should only be called when the floating element is mounted on the DOM or
|
|
528
|
+
* visible on the screen.
|
|
529
|
+
* @returns cleanup function that should be invoked when the floating element is
|
|
530
|
+
* removed from the DOM or hidden from the screen.
|
|
531
|
+
* @see https://floating-ui.com/docs/autoUpdate
|
|
532
|
+
*/
|
|
533
|
+
function autoUpdate(reference, floating, update, options) {
|
|
534
|
+
if (options === void 0) {
|
|
535
|
+
options = {};
|
|
536
|
+
}
|
|
537
|
+
const {
|
|
538
|
+
ancestorScroll = true,
|
|
539
|
+
ancestorResize = true,
|
|
540
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
541
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
542
|
+
animationFrame = false
|
|
543
|
+
} = options;
|
|
544
|
+
const referenceEl = unwrapElement(reference);
|
|
545
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
546
|
+
ancestors.forEach(ancestor => {
|
|
547
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
548
|
+
passive: true
|
|
549
|
+
});
|
|
550
|
+
ancestorResize && ancestor.addEventListener('resize', update);
|
|
551
|
+
});
|
|
552
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
553
|
+
let reobserveFrame = -1;
|
|
554
|
+
let resizeObserver = null;
|
|
555
|
+
if (elementResize) {
|
|
556
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
557
|
+
let [firstEntry] = _ref;
|
|
558
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
559
|
+
// Prevent update loops when using the `size` middleware.
|
|
560
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
561
|
+
resizeObserver.unobserve(floating);
|
|
562
|
+
cancelAnimationFrame(reobserveFrame);
|
|
563
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
564
|
+
var _resizeObserver;
|
|
565
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
update();
|
|
569
|
+
});
|
|
570
|
+
if (referenceEl && !animationFrame) {
|
|
571
|
+
resizeObserver.observe(referenceEl);
|
|
572
|
+
}
|
|
573
|
+
resizeObserver.observe(floating);
|
|
574
|
+
}
|
|
575
|
+
let frameId;
|
|
576
|
+
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
577
|
+
if (animationFrame) {
|
|
578
|
+
frameLoop();
|
|
579
|
+
}
|
|
580
|
+
function frameLoop() {
|
|
581
|
+
const nextRefRect = getBoundingClientRect(reference);
|
|
582
|
+
if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
|
|
583
|
+
update();
|
|
584
|
+
}
|
|
585
|
+
prevRefRect = nextRefRect;
|
|
586
|
+
frameId = requestAnimationFrame(frameLoop);
|
|
587
|
+
}
|
|
588
|
+
update();
|
|
589
|
+
return () => {
|
|
590
|
+
var _resizeObserver2;
|
|
591
|
+
ancestors.forEach(ancestor => {
|
|
592
|
+
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
593
|
+
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
594
|
+
});
|
|
595
|
+
cleanupIo == null || cleanupIo();
|
|
596
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
597
|
+
resizeObserver = null;
|
|
598
|
+
if (animationFrame) {
|
|
599
|
+
cancelAnimationFrame(frameId);
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Modifies the placement by translating the floating element along the
|
|
606
|
+
* specified axes.
|
|
607
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
608
|
+
* object may be passed.
|
|
609
|
+
* @see https://floating-ui.com/docs/offset
|
|
610
|
+
*/
|
|
611
|
+
const offset = offset$1;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
615
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
616
|
+
* @see https://floating-ui.com/docs/shift
|
|
617
|
+
*/
|
|
618
|
+
const shift = shift$1;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
622
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
623
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
624
|
+
* @see https://floating-ui.com/docs/flip
|
|
625
|
+
*/
|
|
626
|
+
const flip = flip$1;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Provides data that allows you to change the size of the floating element —
|
|
630
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
631
|
+
* width of the reference element.
|
|
632
|
+
* @see https://floating-ui.com/docs/size
|
|
633
|
+
*/
|
|
634
|
+
const size = size$1;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
638
|
+
* when it is not in the same clipping context as the reference element.
|
|
639
|
+
* @see https://floating-ui.com/docs/hide
|
|
640
|
+
*/
|
|
641
|
+
const hide = hide$1;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Provides data to position an inner element of the floating element so that it
|
|
645
|
+
* appears centered to the reference element.
|
|
646
|
+
* @see https://floating-ui.com/docs/arrow
|
|
647
|
+
*/
|
|
648
|
+
const arrow = arrow$1;
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
652
|
+
*/
|
|
653
|
+
const limitShift = limitShift$1;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
657
|
+
* next to a given reference element.
|
|
658
|
+
*/
|
|
659
|
+
const computePosition = (reference, floating, options) => {
|
|
660
|
+
// This caches the expensive `getClippingElementAncestors` function so that
|
|
661
|
+
// multiple lifecycle resets re-use the same result. It only lives for a
|
|
662
|
+
// single call. If other functions become expensive, we can add them as well.
|
|
663
|
+
const cache = new Map();
|
|
664
|
+
const mergedOptions = {
|
|
665
|
+
platform,
|
|
666
|
+
...options
|
|
667
|
+
};
|
|
668
|
+
const platformWithCache = {
|
|
669
|
+
...mergedOptions.platform,
|
|
670
|
+
_c: cache
|
|
671
|
+
};
|
|
672
|
+
return computePosition$1(reference, floating, {
|
|
673
|
+
...mergedOptions,
|
|
674
|
+
platform: platformWithCache
|
|
675
|
+
});
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
export { arrow, autoUpdate, computePosition, flip, getOverflowAncestors, hide, limitShift, offset, platform, shift, size };
|
|
679
|
+
//# sourceMappingURL=floating-ui.dom.js.map
|