@blakesteve/roster 4.12.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -9
- package/dist/_virtual/use-sync-external-store-with-selector.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.cjs +1 -0
- package/dist/_virtual/with-selector.js +5 -0
- package/dist/_virtual/with-selector2.cjs +1 -0
- package/dist/_virtual/with-selector2.js +4 -0
- package/dist/components/atoms/Avatar/Avatar.cjs +1 -0
- package/dist/components/atoms/Avatar/Avatar.js +63 -0
- package/dist/components/atoms/Avatar/avatar-variants.cjs +1 -0
- package/dist/components/atoms/Avatar/avatar-variants.js +37 -0
- package/dist/components/atoms/AvatarStrip/AvatarStrip.cjs +1 -0
- package/dist/components/atoms/AvatarStrip/AvatarStrip.js +100 -0
- package/dist/components/atoms/Badge/Badge.cjs +1 -0
- package/dist/components/atoms/Badge/Badge.js +37 -0
- package/dist/components/atoms/Badge/badge-variants.cjs +1 -0
- package/dist/components/atoms/Badge/badge-variants.js +84 -0
- package/dist/components/atoms/Button/Button.cjs +1 -0
- package/dist/components/atoms/Button/Button.js +50 -0
- package/dist/components/atoms/Button/button-variants.cjs +1 -0
- package/dist/components/atoms/Button/button-variants.d.ts +15 -0
- package/dist/components/atoms/Button/button-variants.js +94 -0
- package/dist/components/atoms/Card/Card.cjs +1 -0
- package/dist/components/atoms/Card/Card.js +51 -0
- package/dist/components/atoms/Card/card-variants.cjs +1 -0
- package/dist/components/atoms/Card/card-variants.js +43 -0
- package/dist/components/atoms/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/atoms/Checkbox/Checkbox.js +63 -0
- package/dist/components/atoms/Checkbox/checkbox-variants.cjs +1 -0
- package/dist/components/atoms/Checkbox/checkbox-variants.js +66 -0
- package/dist/components/atoms/Chip/Chip.cjs +1 -0
- package/dist/components/atoms/Chip/Chip.js +119 -0
- package/dist/components/atoms/Chip/chip-variants.cjs +1 -0
- package/dist/components/atoms/Chip/chip-variants.js +85 -0
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.cjs +1 -0
- package/dist/components/atoms/CollapsibleSection/CollapsibleSection.js +54 -0
- package/dist/components/atoms/Combobox/Combobox.cjs +1 -0
- package/dist/components/atoms/Combobox/Combobox.js +150 -0
- package/dist/components/atoms/Disclosure/Disclosure.cjs +1 -0
- package/dist/components/atoms/Disclosure/Disclosure.js +82 -0
- package/dist/components/atoms/Disclosure/disclosure-variants.cjs +1 -0
- package/dist/components/atoms/Disclosure/disclosure-variants.js +38 -0
- package/dist/components/atoms/Eyebrow/Eyebrow.cjs +1 -0
- package/dist/components/atoms/Eyebrow/Eyebrow.js +27 -0
- package/dist/components/atoms/Eyebrow/eyebrow-variants.cjs +1 -0
- package/dist/components/atoms/Eyebrow/eyebrow-variants.js +28 -0
- package/dist/components/atoms/InlineCode/InlineCode.cjs +1 -0
- package/dist/components/atoms/InlineCode/InlineCode.js +20 -0
- package/dist/components/atoms/InlineCode/inline-code-variants.cjs +1 -0
- package/dist/components/atoms/InlineCode/inline-code-variants.js +18 -0
- package/dist/components/atoms/Input/Input.cjs +1 -0
- package/dist/components/atoms/Input/Input.js +109 -0
- package/dist/components/atoms/Input/input-variants.cjs +1 -0
- package/dist/components/atoms/Input/input-variants.js +89 -0
- package/dist/components/atoms/LabeledDivider/LabeledDivider.cjs +1 -0
- package/dist/components/atoms/LabeledDivider/LabeledDivider.js +17 -0
- package/dist/components/atoms/Link/Link.cjs +1 -0
- package/dist/components/atoms/Link/Link.js +66 -0
- package/dist/components/atoms/Link/link-variants.cjs +1 -0
- package/dist/components/atoms/Link/link-variants.js +32 -0
- package/dist/components/atoms/LiquidTabs/LiquidTabs.cjs +1 -0
- package/dist/components/atoms/LiquidTabs/LiquidTabs.js +120 -0
- package/dist/components/atoms/MultiSelect/MultiSelect.cjs +1 -0
- package/dist/components/atoms/MultiSelect/MultiSelect.js +231 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.cjs +1 -0
- package/dist/components/atoms/PasswordInput/PasswordInput.js +69 -0
- package/dist/components/atoms/Pill/Pill.cjs +1 -0
- package/dist/components/atoms/Pill/Pill.js +48 -0
- package/dist/components/atoms/Pill/pill-variants.cjs +1 -0
- package/dist/components/atoms/Pill/pill-variants.js +82 -0
- package/dist/components/atoms/SegmentBar/SegmentBar.cjs +1 -0
- package/dist/components/atoms/SegmentBar/SegmentBar.js +73 -0
- package/dist/components/atoms/Select/Select.cjs +1 -0
- package/dist/components/atoms/Select/Select.js +152 -0
- package/dist/components/atoms/Select/select-variants.cjs +1 -0
- package/dist/components/atoms/Select/select-variants.js +94 -0
- package/dist/components/atoms/Spinner/Spinner.cjs +1 -0
- package/dist/components/atoms/Spinner/Spinner.js +50 -0
- package/dist/components/atoms/Stat/Stat.cjs +1 -0
- package/dist/components/atoms/Stat/Stat.js +17 -0
- package/dist/components/atoms/Stat/stat-variants.cjs +1 -0
- package/dist/components/atoms/Stat/stat-variants.js +25 -0
- package/dist/components/atoms/Switch/Switch.cjs +1 -0
- package/dist/components/atoms/Switch/Switch.js +73 -0
- package/dist/components/atoms/Switch/switch-variants.cjs +1 -0
- package/dist/components/atoms/Switch/switch-variants.js +43 -0
- package/dist/components/atoms/Textarea/Textarea.cjs +1 -0
- package/dist/components/atoms/Textarea/Textarea.js +66 -0
- package/dist/components/atoms/Textarea/textarea-variants.cjs +1 -0
- package/dist/components/atoms/Textarea/textarea-variants.js +60 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.cjs +1 -0
- package/dist/components/atoms/ThemeToggle/ThemeToggle.js +76 -0
- package/dist/components/atoms/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.js +60 -0
- package/dist/components/molecules/Accordion/Accordion.cjs +1 -0
- package/dist/components/molecules/Accordion/Accordion.js +38 -0
- package/dist/components/molecules/Alert/Alert.cjs +1 -0
- package/dist/components/molecules/Alert/Alert.js +68 -0
- package/dist/components/molecules/Alert/alert-variants.cjs +1 -0
- package/dist/components/molecules/Alert/alert-variants.js +80 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +89 -0
- package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.cjs +1 -0
- package/dist/components/molecules/Breadcrumbs/breadcrumb-variants.js +19 -0
- package/dist/components/molecules/CallToAction/CallToAction.cjs +1 -0
- package/dist/components/molecules/CallToAction/CallToAction.js +41 -0
- package/dist/components/molecules/CallToAction/call-to-action-variants.cjs +1 -0
- package/dist/components/molecules/CallToAction/call-to-action-variants.js +72 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.cjs +1 -0
- package/dist/components/molecules/CheckboxGroup/CheckboxGroup.js +146 -0
- package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.cjs +1 -0
- package/dist/components/molecules/CheckboxGroup/checkbox-group-variants.js +72 -0
- package/dist/components/molecules/DescriptionList/DescriptionList.cjs +1 -0
- package/dist/components/molecules/DescriptionList/DescriptionList.js +32 -0
- package/dist/components/molecules/DescriptionList/description-list-variants.cjs +1 -0
- package/dist/components/molecules/DescriptionList/description-list-variants.js +21 -0
- package/dist/components/molecules/EmptyState/EmptyState.cjs +1 -0
- package/dist/components/molecules/EmptyState/EmptyState.js +22 -0
- package/dist/components/molecules/EmptyState/empty-state-variants.cjs +1 -0
- package/dist/components/molecules/EmptyState/empty-state-variants.js +18 -0
- package/dist/components/molecules/ErrorState/ErrorState.cjs +1 -0
- package/dist/components/molecules/ErrorState/ErrorState.js +49 -0
- package/dist/components/molecules/ErrorState/error-state-variants.cjs +1 -0
- package/dist/components/molecules/ErrorState/error-state-variants.js +18 -0
- package/dist/components/molecules/MatchupCard/MatchupCard.cjs +1 -0
- package/dist/components/molecules/MatchupCard/MatchupCard.js +102 -0
- package/dist/components/molecules/Pullquote/Pullquote.cjs +1 -0
- package/dist/components/molecules/Pullquote/Pullquote.js +30 -0
- package/dist/components/molecules/Pullquote/pullquote-variants.cjs +1 -0
- package/dist/components/molecules/Pullquote/pullquote-variants.js +32 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js +166 -0
- package/dist/components/molecules/RadioGroup/radio-group-variants.cjs +1 -0
- package/dist/components/molecules/RadioGroup/radio-group-variants.js +94 -0
- package/dist/components/molecules/Toast/Toast.cjs +1 -0
- package/dist/components/molecules/Toast/Toast.js +64 -0
- package/dist/components/molecules/Toast/Toaster.cjs +1 -0
- package/dist/components/molecules/Toast/Toaster.js +70 -0
- package/dist/components/molecules/Toast/toast-api.cjs +1 -0
- package/dist/components/molecules/Toast/toast-api.js +27 -0
- package/dist/components/molecules/Toast/toast-variants.cjs +1 -0
- package/dist/components/molecules/Toast/toast-variants.js +83 -0
- package/dist/components/organisms/ActionBar/ActionBar.cjs +1 -0
- package/dist/components/organisms/ActionBar/ActionBar.js +40 -0
- package/dist/components/organisms/ActionBar/action-bar-variants.cjs +1 -0
- package/dist/components/organisms/ActionBar/action-bar-variants.js +26 -0
- package/dist/components/organisms/Countdown/Countdown.cjs +1 -0
- package/dist/components/organisms/Countdown/Countdown.js +98 -0
- package/dist/components/organisms/Countdown/countdown-variants.cjs +1 -0
- package/dist/components/organisms/Countdown/countdown-variants.js +65 -0
- package/dist/components/organisms/DataTable/DataTable.cjs +1 -0
- package/dist/components/organisms/DataTable/DataTable.js +160 -0
- package/dist/components/organisms/Dialog/Dialog.cjs +1 -0
- package/dist/components/organisms/Dialog/Dialog.js +152 -0
- package/dist/components/organisms/Footer/Footer.cjs +1 -0
- package/dist/components/organisms/Footer/Footer.js +41 -0
- package/dist/components/organisms/Footer/footer-variants.cjs +1 -0
- package/dist/components/organisms/Footer/footer-variants.js +25 -0
- package/dist/components/organisms/Navbar/Navbar.cjs +1 -0
- package/dist/components/organisms/Navbar/Navbar.js +539 -0
- package/dist/components/organisms/Navbar/navbar-variants.cjs +1 -0
- package/dist/components/organisms/Navbar/navbar-variants.js +35 -0
- package/dist/components/organisms/Table/Table.cjs +1 -0
- package/dist/components/organisms/Table/Table.js +118 -0
- package/dist/components/organisms/Table/table-variants.cjs +1 -0
- package/dist/components/organisms/Table/table-variants.js +117 -0
- package/dist/data-table.cjs +1 -0
- package/dist/data-table.js +4 -0
- package/dist/hooks/useCountdown.cjs +1 -0
- package/dist/hooks/useCountdown.js +33 -0
- package/dist/hooks/useKeySequence.cjs +1 -0
- package/dist/hooks/useKeySequence.js +55 -0
- package/dist/internal/PopupOption.cjs +1 -0
- package/dist/internal/PopupOption.js +39 -0
- package/dist/internal/popup.cjs +1 -0
- package/dist/internal/popup.js +29 -0
- package/dist/lib/utils.cjs +1 -0
- package/dist/lib/utils.js +27 -0
- package/dist/meta.json +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -0
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +532 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +368 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +1 -0
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +13 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.cjs +558 -0
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +3101 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.cjs +1 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +120 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.cjs +1 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +261 -0
- package/dist/node_modules/@headlessui/react/dist/components/button/button.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/button/button.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/checkbox/checkbox.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js +165 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +287 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +44 -0
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.js +109 -0
- package/dist/node_modules/@headlessui/react/dist/components/field/field.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/field/field.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/fieldset/fieldset.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js +132 -0
- package/dist/node_modules/@headlessui/react/dist/components/input/input.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/input/input.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +61 -0
- package/dist/node_modules/@headlessui/react/dist/components/legend/legend.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/legend/legend.js +10 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox-machine.js +171 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/listbox/listbox.js +205 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +120 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +197 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine-glue.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover-machine.js +49 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/popover/popover.js +234 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +63 -0
- package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/radio-group/radio-group.js +126 -0
- package/dist/node_modules/@headlessui/react/dist/components/switch/switch.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/switch/switch.js +55 -0
- package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/textarea/textarea.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +135 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +52 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +10 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +26 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +41 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +28 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +32 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +24 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolved-tag.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.js +38 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +20 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +17 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.cjs +2 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +73 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +18 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +154 -0
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +19 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/machine.js +74 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +33 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +15 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +19 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +46 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +21 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +97 -0
- package/dist/node_modules/@headlessui/react/dist/utils/form.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/form.js +32 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +31 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +22 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +14 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.cjs +4 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +126 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.cjs +1 -0
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +14 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +55 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +338 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.cjs +1 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +30 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +97 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +57 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.cjs +1 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.js +66 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +27 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.js +28 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.js +47 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.cjs +1 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
- package/dist/node_modules/@react-stately/flags/dist/import.cjs +1 -0
- package/dist/node_modules/@react-stately/flags/dist/import.js +7 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +533 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +4 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/class-variance-authority/dist/index.cjs +1 -0
- package/dist/node_modules/class-variance-authority/dist/index.js +35 -0
- package/dist/node_modules/clsx/dist/clsx.cjs +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +9 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.cjs +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/add.cjs +1 -0
- package/dist/node_modules/date-fns/add.js +19 -0
- package/dist/node_modules/date-fns/addDays.cjs +1 -0
- package/dist/node_modules/date-fns/addDays.js +9 -0
- package/dist/node_modules/date-fns/addMonths.cjs +1 -0
- package/dist/node_modules/date-fns/addMonths.js +19 -0
- package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
- package/dist/node_modules/date-fns/compareAsc.js +8 -0
- package/dist/node_modules/date-fns/constants.cjs +1 -0
- package/dist/node_modules/date-fns/constants.js +7 -0
- package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +15 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +12 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +12 -0
- package/dist/node_modules/date-fns/differenceInDays.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInDays.js +21 -0
- package/dist/node_modules/date-fns/differenceInHours.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInHours.js +14 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +7 -0
- package/dist/node_modules/date-fns/differenceInMinutes.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMinutes.js +10 -0
- package/dist/node_modules/date-fns/differenceInMonths.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInMonths.js +23 -0
- package/dist/node_modules/date-fns/differenceInSeconds.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInSeconds.js +9 -0
- package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
- package/dist/node_modules/date-fns/differenceInYears.js +16 -0
- package/dist/node_modules/date-fns/endOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/endOfDay.js +8 -0
- package/dist/node_modules/date-fns/endOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/endOfMonth.js +8 -0
- package/dist/node_modules/date-fns/intervalToDuration.cjs +1 -0
- package/dist/node_modules/date-fns/intervalToDuration.js +25 -0
- package/dist/node_modules/date-fns/isAfter.cjs +1 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isLastDayOfMonth.cjs +1 -0
- package/dist/node_modules/date-fns/isLastDayOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +8 -0
- package/dist/node_modules/date-fns/toDate.cjs +1 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -0
- package/dist/{utils-koxKGlVV.js → node_modules/tailwind-merge/dist/bundle-mjs.js} +216 -244
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +57 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +56 -0
- package/dist/node_modules/use-sync-external-store/with-selector.cjs +1 -0
- package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
- package/dist/preflight.cjs +1 -0
- package/dist/preflight.js +1 -0
- package/dist/roster.cjs +1 -0
- package/dist/roster.js +184 -0
- package/dist/tokens.cjs +1 -0
- package/dist/tokens.js +1 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +11 -8
- package/dist/utils.js +4 -0
- package/package.json +11 -10
- package/dist/Table-CSXfWRkc.js +0 -4949
- package/dist/Table-pfb9MJtO.cjs +0 -566
- package/dist/data-table.cjs.js +0 -1
- package/dist/data-table.es.js +0 -156
- package/dist/preflight.cjs.js +0 -1
- package/dist/preflight.es.js +0 -1
- package/dist/roster.cjs.js +0 -5
- package/dist/roster.es.js +0 -11334
- package/dist/tokens.cjs.js +0 -1
- package/dist/tokens.es.js +0 -1
- package/dist/utils-B4q42wBM.cjs +0 -1
- package/dist/utils.cjs.js +0 -1
- package/dist/utils.es.js +0 -4
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import { evaluate as L, getSideAxis as T, getSide as j, clamp as $, getOppositePlacement as Z, getExpandedPlacements as ee, getOppositeAxisPlacements as te, getAlignmentSides as ne, getPaddingObject as G, rectToClientRect as X, getAlignment as z, min as Y, max as W, getAlignmentAxis as J, getOppositeAxis as K, getAxisLength as N, sides as ie } from "../../utils/dist/floating-ui.utils.js";
|
|
2
|
+
function I(t, e, d) {
|
|
3
|
+
let {
|
|
4
|
+
reference: a,
|
|
5
|
+
floating: m
|
|
6
|
+
} = t;
|
|
7
|
+
const n = T(e), s = J(e), l = N(s), g = j(e), p = n === "y", r = a.x + a.width / 2 - m.width / 2, o = a.y + a.height / 2 - m.height / 2, f = a[l] / 2 - m[l] / 2;
|
|
8
|
+
let i;
|
|
9
|
+
switch (g) {
|
|
10
|
+
case "top":
|
|
11
|
+
i = {
|
|
12
|
+
x: r,
|
|
13
|
+
y: a.y - m.height
|
|
14
|
+
};
|
|
15
|
+
break;
|
|
16
|
+
case "bottom":
|
|
17
|
+
i = {
|
|
18
|
+
x: r,
|
|
19
|
+
y: a.y + a.height
|
|
20
|
+
};
|
|
21
|
+
break;
|
|
22
|
+
case "right":
|
|
23
|
+
i = {
|
|
24
|
+
x: a.x + a.width,
|
|
25
|
+
y: o
|
|
26
|
+
};
|
|
27
|
+
break;
|
|
28
|
+
case "left":
|
|
29
|
+
i = {
|
|
30
|
+
x: a.x - m.width,
|
|
31
|
+
y: o
|
|
32
|
+
};
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
i = {
|
|
36
|
+
x: a.x,
|
|
37
|
+
y: a.y
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
switch (z(e)) {
|
|
41
|
+
case "start":
|
|
42
|
+
i[s] -= f * (d && p ? -1 : 1);
|
|
43
|
+
break;
|
|
44
|
+
case "end":
|
|
45
|
+
i[s] += f * (d && p ? -1 : 1);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
return i;
|
|
49
|
+
}
|
|
50
|
+
async function se(t, e) {
|
|
51
|
+
var d;
|
|
52
|
+
e === void 0 && (e = {});
|
|
53
|
+
const {
|
|
54
|
+
x: a,
|
|
55
|
+
y: m,
|
|
56
|
+
platform: n,
|
|
57
|
+
rects: s,
|
|
58
|
+
elements: l,
|
|
59
|
+
strategy: g
|
|
60
|
+
} = t, {
|
|
61
|
+
boundary: p = "clippingAncestors",
|
|
62
|
+
rootBoundary: r = "viewport",
|
|
63
|
+
elementContext: o = "floating",
|
|
64
|
+
altBoundary: f = !1,
|
|
65
|
+
padding: i = 0
|
|
66
|
+
} = L(e, t), c = G(i), x = l[f ? o === "floating" ? "reference" : "floating" : o], v = X(await n.getClippingRect({
|
|
67
|
+
element: (d = await (n.isElement == null ? void 0 : n.isElement(x))) == null || d ? x : x.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(l.floating)),
|
|
68
|
+
boundary: p,
|
|
69
|
+
rootBoundary: r,
|
|
70
|
+
strategy: g
|
|
71
|
+
})), y = o === "floating" ? {
|
|
72
|
+
x: a,
|
|
73
|
+
y: m,
|
|
74
|
+
width: s.floating.width,
|
|
75
|
+
height: s.floating.height
|
|
76
|
+
} : s.reference, w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l.floating)), h = await (n.isElement == null ? void 0 : n.isElement(w)) ? await (n.getScale == null ? void 0 : n.getScale(w)) || {
|
|
77
|
+
x: 1,
|
|
78
|
+
y: 1
|
|
79
|
+
} : {
|
|
80
|
+
x: 1,
|
|
81
|
+
y: 1
|
|
82
|
+
}, A = X(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
83
|
+
elements: l,
|
|
84
|
+
rect: y,
|
|
85
|
+
offsetParent: w,
|
|
86
|
+
strategy: g
|
|
87
|
+
}) : y);
|
|
88
|
+
return {
|
|
89
|
+
top: (v.top - A.top + c.top) / h.y,
|
|
90
|
+
bottom: (A.bottom - v.bottom + c.bottom) / h.y,
|
|
91
|
+
left: (v.left - A.left + c.left) / h.x,
|
|
92
|
+
right: (A.right - v.right + c.right) / h.x
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const le = async (t, e, d) => {
|
|
96
|
+
const {
|
|
97
|
+
placement: a = "bottom",
|
|
98
|
+
strategy: m = "absolute",
|
|
99
|
+
middleware: n = [],
|
|
100
|
+
platform: s
|
|
101
|
+
} = d, l = n.filter(Boolean), g = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
102
|
+
let p = await s.getElementRects({
|
|
103
|
+
reference: t,
|
|
104
|
+
floating: e,
|
|
105
|
+
strategy: m
|
|
106
|
+
}), {
|
|
107
|
+
x: r,
|
|
108
|
+
y: o
|
|
109
|
+
} = I(p, a, g), f = a, i = {}, c = 0;
|
|
110
|
+
for (let x = 0; x < l.length; x++) {
|
|
111
|
+
var u;
|
|
112
|
+
const {
|
|
113
|
+
name: v,
|
|
114
|
+
fn: y
|
|
115
|
+
} = l[x], {
|
|
116
|
+
x: w,
|
|
117
|
+
y: h,
|
|
118
|
+
data: A,
|
|
119
|
+
reset: b
|
|
120
|
+
} = await y({
|
|
121
|
+
x: r,
|
|
122
|
+
y: o,
|
|
123
|
+
initialPlacement: a,
|
|
124
|
+
placement: f,
|
|
125
|
+
strategy: m,
|
|
126
|
+
middlewareData: i,
|
|
127
|
+
rects: p,
|
|
128
|
+
platform: {
|
|
129
|
+
...s,
|
|
130
|
+
detectOverflow: (u = s.detectOverflow) != null ? u : se
|
|
131
|
+
},
|
|
132
|
+
elements: {
|
|
133
|
+
reference: t,
|
|
134
|
+
floating: e
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
r = w ?? r, o = h ?? o, i = {
|
|
138
|
+
...i,
|
|
139
|
+
[v]: {
|
|
140
|
+
...i[v],
|
|
141
|
+
...A
|
|
142
|
+
}
|
|
143
|
+
}, b && c <= 50 && (c++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (p = b.rects === !0 ? await s.getElementRects({
|
|
144
|
+
reference: t,
|
|
145
|
+
floating: e,
|
|
146
|
+
strategy: m
|
|
147
|
+
}) : b.rects), {
|
|
148
|
+
x: r,
|
|
149
|
+
y: o
|
|
150
|
+
} = I(p, f, g)), x = -1);
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
x: r,
|
|
154
|
+
y: o,
|
|
155
|
+
placement: f,
|
|
156
|
+
strategy: m,
|
|
157
|
+
middlewareData: i
|
|
158
|
+
};
|
|
159
|
+
}, ce = (t) => ({
|
|
160
|
+
name: "arrow",
|
|
161
|
+
options: t,
|
|
162
|
+
async fn(e) {
|
|
163
|
+
const {
|
|
164
|
+
x: d,
|
|
165
|
+
y: a,
|
|
166
|
+
placement: m,
|
|
167
|
+
rects: n,
|
|
168
|
+
platform: s,
|
|
169
|
+
elements: l,
|
|
170
|
+
middlewareData: g
|
|
171
|
+
} = e, {
|
|
172
|
+
element: p,
|
|
173
|
+
padding: r = 0
|
|
174
|
+
} = L(t, e) || {};
|
|
175
|
+
if (p == null)
|
|
176
|
+
return {};
|
|
177
|
+
const o = G(r), f = {
|
|
178
|
+
x: d,
|
|
179
|
+
y: a
|
|
180
|
+
}, i = J(m), c = N(i), u = await s.getDimensions(p), x = i === "y", v = x ? "top" : "left", y = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", h = n.reference[c] + n.reference[i] - f[i] - n.floating[c], A = f[i] - n.reference[i], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(p));
|
|
181
|
+
let C = b ? b[w] : 0;
|
|
182
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(b))) && (C = l.floating[w] || n.floating[c]);
|
|
183
|
+
const M = h / 2 - A / 2, k = C / 2 - u[c] / 2 - 1, P = Y(o[v], k), H = Y(o[y], k), D = P, F = C - u[c] - H, O = C / 2 - u[c] / 2 + M, B = $(D, O, F), E = !g.arrow && z(m) != null && O !== B && n.reference[c] / 2 - (O < D ? P : H) - u[c] / 2 < 0, S = E ? O < D ? O - D : O - F : 0;
|
|
184
|
+
return {
|
|
185
|
+
[i]: f[i] + S,
|
|
186
|
+
data: {
|
|
187
|
+
[i]: B,
|
|
188
|
+
centerOffset: O - B - S,
|
|
189
|
+
...E && {
|
|
190
|
+
alignmentOffset: S
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
reset: E
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}), re = function(t) {
|
|
197
|
+
return t === void 0 && (t = {}), {
|
|
198
|
+
name: "flip",
|
|
199
|
+
options: t,
|
|
200
|
+
async fn(e) {
|
|
201
|
+
var d, a;
|
|
202
|
+
const {
|
|
203
|
+
placement: m,
|
|
204
|
+
middlewareData: n,
|
|
205
|
+
rects: s,
|
|
206
|
+
initialPlacement: l,
|
|
207
|
+
platform: g,
|
|
208
|
+
elements: p
|
|
209
|
+
} = e, {
|
|
210
|
+
mainAxis: r = !0,
|
|
211
|
+
crossAxis: o = !0,
|
|
212
|
+
fallbackPlacements: f,
|
|
213
|
+
fallbackStrategy: i = "bestFit",
|
|
214
|
+
fallbackAxisSideDirection: c = "none",
|
|
215
|
+
flipAlignment: u = !0,
|
|
216
|
+
...x
|
|
217
|
+
} = L(t, e);
|
|
218
|
+
if ((d = n.arrow) != null && d.alignmentOffset)
|
|
219
|
+
return {};
|
|
220
|
+
const v = j(m), y = T(l), w = j(l) === l, h = await (g.isRTL == null ? void 0 : g.isRTL(p.floating)), A = f || (w || !u ? [Z(l)] : ee(l)), b = c !== "none";
|
|
221
|
+
!f && b && A.push(...te(l, u, c, h));
|
|
222
|
+
const C = [l, ...A], M = await g.detectOverflow(e, x), k = [];
|
|
223
|
+
let P = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
|
224
|
+
if (r && k.push(M[v]), o) {
|
|
225
|
+
const O = ne(m, s, h);
|
|
226
|
+
k.push(M[O[0]], M[O[1]]);
|
|
227
|
+
}
|
|
228
|
+
if (P = [...P, {
|
|
229
|
+
placement: m,
|
|
230
|
+
overflows: k
|
|
231
|
+
}], !k.every((O) => O <= 0)) {
|
|
232
|
+
var H, D;
|
|
233
|
+
const O = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, B = C[O];
|
|
234
|
+
if (B && (!(o === "alignment" ? y !== T(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
235
|
+
// overflows the main axis.
|
|
236
|
+
P.every((R) => T(R.placement) === y ? R.overflows[0] > 0 : !0)))
|
|
237
|
+
return {
|
|
238
|
+
data: {
|
|
239
|
+
index: O,
|
|
240
|
+
overflows: P
|
|
241
|
+
},
|
|
242
|
+
reset: {
|
|
243
|
+
placement: B
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
let E = (D = P.filter((S) => S.overflows[0] <= 0).sort((S, R) => S.overflows[1] - R.overflows[1])[0]) == null ? void 0 : D.placement;
|
|
247
|
+
if (!E)
|
|
248
|
+
switch (i) {
|
|
249
|
+
case "bestFit": {
|
|
250
|
+
var F;
|
|
251
|
+
const S = (F = P.filter((R) => {
|
|
252
|
+
if (b) {
|
|
253
|
+
const V = T(R.placement);
|
|
254
|
+
return V === y || // Create a bias to the `y` side axis due to horizontal
|
|
255
|
+
// reading directions favoring greater width.
|
|
256
|
+
V === "y";
|
|
257
|
+
}
|
|
258
|
+
return !0;
|
|
259
|
+
}).map((R) => [R.placement, R.overflows.filter((V) => V > 0).reduce((V, U) => V + U, 0)]).sort((R, V) => R[1] - V[1])[0]) == null ? void 0 : F[0];
|
|
260
|
+
S && (E = S);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
case "initialPlacement":
|
|
264
|
+
E = l;
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
if (m !== E)
|
|
268
|
+
return {
|
|
269
|
+
reset: {
|
|
270
|
+
placement: E
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
return {};
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
function _(t, e) {
|
|
279
|
+
return {
|
|
280
|
+
top: t.top - e.height,
|
|
281
|
+
right: t.right - e.width,
|
|
282
|
+
bottom: t.bottom - e.height,
|
|
283
|
+
left: t.left - e.width
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function q(t) {
|
|
287
|
+
return ie.some((e) => t[e] >= 0);
|
|
288
|
+
}
|
|
289
|
+
const fe = function(t) {
|
|
290
|
+
return t === void 0 && (t = {}), {
|
|
291
|
+
name: "hide",
|
|
292
|
+
options: t,
|
|
293
|
+
async fn(e) {
|
|
294
|
+
const {
|
|
295
|
+
rects: d,
|
|
296
|
+
platform: a
|
|
297
|
+
} = e, {
|
|
298
|
+
strategy: m = "referenceHidden",
|
|
299
|
+
...n
|
|
300
|
+
} = L(t, e);
|
|
301
|
+
switch (m) {
|
|
302
|
+
case "referenceHidden": {
|
|
303
|
+
const s = await a.detectOverflow(e, {
|
|
304
|
+
...n,
|
|
305
|
+
elementContext: "reference"
|
|
306
|
+
}), l = _(s, d.reference);
|
|
307
|
+
return {
|
|
308
|
+
data: {
|
|
309
|
+
referenceHiddenOffsets: l,
|
|
310
|
+
referenceHidden: q(l)
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
case "escaped": {
|
|
315
|
+
const s = await a.detectOverflow(e, {
|
|
316
|
+
...n,
|
|
317
|
+
altBoundary: !0
|
|
318
|
+
}), l = _(s, d.floating);
|
|
319
|
+
return {
|
|
320
|
+
data: {
|
|
321
|
+
escapedOffsets: l,
|
|
322
|
+
escaped: q(l)
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
default:
|
|
327
|
+
return {};
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
}, Q = /* @__PURE__ */ new Set(["left", "top"]);
|
|
332
|
+
async function oe(t, e) {
|
|
333
|
+
const {
|
|
334
|
+
placement: d,
|
|
335
|
+
platform: a,
|
|
336
|
+
elements: m
|
|
337
|
+
} = t, n = await (a.isRTL == null ? void 0 : a.isRTL(m.floating)), s = j(d), l = z(d), g = T(d) === "y", p = Q.has(s) ? -1 : 1, r = n && g ? -1 : 1, o = L(e, t);
|
|
338
|
+
let {
|
|
339
|
+
mainAxis: f,
|
|
340
|
+
crossAxis: i,
|
|
341
|
+
alignmentAxis: c
|
|
342
|
+
} = typeof o == "number" ? {
|
|
343
|
+
mainAxis: o,
|
|
344
|
+
crossAxis: 0,
|
|
345
|
+
alignmentAxis: null
|
|
346
|
+
} : {
|
|
347
|
+
mainAxis: o.mainAxis || 0,
|
|
348
|
+
crossAxis: o.crossAxis || 0,
|
|
349
|
+
alignmentAxis: o.alignmentAxis
|
|
350
|
+
};
|
|
351
|
+
return l && typeof c == "number" && (i = l === "end" ? c * -1 : c), g ? {
|
|
352
|
+
x: i * r,
|
|
353
|
+
y: f * p
|
|
354
|
+
} : {
|
|
355
|
+
x: f * p,
|
|
356
|
+
y: i * r
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
const me = function(t) {
|
|
360
|
+
return t === void 0 && (t = 0), {
|
|
361
|
+
name: "offset",
|
|
362
|
+
options: t,
|
|
363
|
+
async fn(e) {
|
|
364
|
+
var d, a;
|
|
365
|
+
const {
|
|
366
|
+
x: m,
|
|
367
|
+
y: n,
|
|
368
|
+
placement: s,
|
|
369
|
+
middlewareData: l
|
|
370
|
+
} = e, g = await oe(e, t);
|
|
371
|
+
return s === ((d = l.offset) == null ? void 0 : d.placement) && (a = l.arrow) != null && a.alignmentOffset ? {} : {
|
|
372
|
+
x: m + g.x,
|
|
373
|
+
y: n + g.y,
|
|
374
|
+
data: {
|
|
375
|
+
...g,
|
|
376
|
+
placement: s
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}, de = function(t) {
|
|
382
|
+
return t === void 0 && (t = {}), {
|
|
383
|
+
name: "shift",
|
|
384
|
+
options: t,
|
|
385
|
+
async fn(e) {
|
|
386
|
+
const {
|
|
387
|
+
x: d,
|
|
388
|
+
y: a,
|
|
389
|
+
placement: m,
|
|
390
|
+
platform: n
|
|
391
|
+
} = e, {
|
|
392
|
+
mainAxis: s = !0,
|
|
393
|
+
crossAxis: l = !1,
|
|
394
|
+
limiter: g = {
|
|
395
|
+
fn: (v) => {
|
|
396
|
+
let {
|
|
397
|
+
x: y,
|
|
398
|
+
y: w
|
|
399
|
+
} = v;
|
|
400
|
+
return {
|
|
401
|
+
x: y,
|
|
402
|
+
y: w
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
...p
|
|
407
|
+
} = L(t, e), r = {
|
|
408
|
+
x: d,
|
|
409
|
+
y: a
|
|
410
|
+
}, o = await n.detectOverflow(e, p), f = T(j(m)), i = K(f);
|
|
411
|
+
let c = r[i], u = r[f];
|
|
412
|
+
if (s) {
|
|
413
|
+
const v = i === "y" ? "top" : "left", y = i === "y" ? "bottom" : "right", w = c + o[v], h = c - o[y];
|
|
414
|
+
c = $(w, c, h);
|
|
415
|
+
}
|
|
416
|
+
if (l) {
|
|
417
|
+
const v = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", w = u + o[v], h = u - o[y];
|
|
418
|
+
u = $(w, u, h);
|
|
419
|
+
}
|
|
420
|
+
const x = g.fn({
|
|
421
|
+
...e,
|
|
422
|
+
[i]: c,
|
|
423
|
+
[f]: u
|
|
424
|
+
});
|
|
425
|
+
return {
|
|
426
|
+
...x,
|
|
427
|
+
data: {
|
|
428
|
+
x: x.x - d,
|
|
429
|
+
y: x.y - a,
|
|
430
|
+
enabled: {
|
|
431
|
+
[i]: s,
|
|
432
|
+
[f]: l
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
}, xe = function(t) {
|
|
439
|
+
return t === void 0 && (t = {}), {
|
|
440
|
+
options: t,
|
|
441
|
+
fn(e) {
|
|
442
|
+
const {
|
|
443
|
+
x: d,
|
|
444
|
+
y: a,
|
|
445
|
+
placement: m,
|
|
446
|
+
rects: n,
|
|
447
|
+
middlewareData: s
|
|
448
|
+
} = e, {
|
|
449
|
+
offset: l = 0,
|
|
450
|
+
mainAxis: g = !0,
|
|
451
|
+
crossAxis: p = !0
|
|
452
|
+
} = L(t, e), r = {
|
|
453
|
+
x: d,
|
|
454
|
+
y: a
|
|
455
|
+
}, o = T(m), f = K(o);
|
|
456
|
+
let i = r[f], c = r[o];
|
|
457
|
+
const u = L(l, e), x = typeof u == "number" ? {
|
|
458
|
+
mainAxis: u,
|
|
459
|
+
crossAxis: 0
|
|
460
|
+
} : {
|
|
461
|
+
mainAxis: 0,
|
|
462
|
+
crossAxis: 0,
|
|
463
|
+
...u
|
|
464
|
+
};
|
|
465
|
+
if (g) {
|
|
466
|
+
const w = f === "y" ? "height" : "width", h = n.reference[f] - n.floating[w] + x.mainAxis, A = n.reference[f] + n.reference[w] - x.mainAxis;
|
|
467
|
+
i < h ? i = h : i > A && (i = A);
|
|
468
|
+
}
|
|
469
|
+
if (p) {
|
|
470
|
+
var v, y;
|
|
471
|
+
const w = f === "y" ? "width" : "height", h = Q.has(j(m)), A = n.reference[o] - n.floating[w] + (h && ((v = s.offset) == null ? void 0 : v[o]) || 0) + (h ? 0 : x.crossAxis), b = n.reference[o] + n.reference[w] + (h ? 0 : ((y = s.offset) == null ? void 0 : y[o]) || 0) - (h ? x.crossAxis : 0);
|
|
472
|
+
c < A ? c = A : c > b && (c = b);
|
|
473
|
+
}
|
|
474
|
+
return {
|
|
475
|
+
[f]: i,
|
|
476
|
+
[o]: c
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
}, ge = function(t) {
|
|
481
|
+
return t === void 0 && (t = {}), {
|
|
482
|
+
name: "size",
|
|
483
|
+
options: t,
|
|
484
|
+
async fn(e) {
|
|
485
|
+
var d, a;
|
|
486
|
+
const {
|
|
487
|
+
placement: m,
|
|
488
|
+
rects: n,
|
|
489
|
+
platform: s,
|
|
490
|
+
elements: l
|
|
491
|
+
} = e, {
|
|
492
|
+
apply: g = () => {
|
|
493
|
+
},
|
|
494
|
+
...p
|
|
495
|
+
} = L(t, e), r = await s.detectOverflow(e, p), o = j(m), f = z(m), i = T(m) === "y", {
|
|
496
|
+
width: c,
|
|
497
|
+
height: u
|
|
498
|
+
} = n.floating;
|
|
499
|
+
let x, v;
|
|
500
|
+
o === "top" || o === "bottom" ? (x = o, v = f === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (v = o, x = f === "end" ? "top" : "bottom");
|
|
501
|
+
const y = u - r.top - r.bottom, w = c - r.left - r.right, h = Y(u - r[x], y), A = Y(c - r[v], w), b = !e.middlewareData.shift;
|
|
502
|
+
let C = h, M = A;
|
|
503
|
+
if ((d = e.middlewareData.shift) != null && d.enabled.x && (M = w), (a = e.middlewareData.shift) != null && a.enabled.y && (C = y), b && !f) {
|
|
504
|
+
const P = W(r.left, 0), H = W(r.right, 0), D = W(r.top, 0), F = W(r.bottom, 0);
|
|
505
|
+
i ? M = c - 2 * (P !== 0 || H !== 0 ? P + H : W(r.left, r.right)) : C = u - 2 * (D !== 0 || F !== 0 ? D + F : W(r.top, r.bottom));
|
|
506
|
+
}
|
|
507
|
+
await g({
|
|
508
|
+
...e,
|
|
509
|
+
availableWidth: M,
|
|
510
|
+
availableHeight: C
|
|
511
|
+
});
|
|
512
|
+
const k = await s.getDimensions(l.floating);
|
|
513
|
+
return c !== k.width || u !== k.height ? {
|
|
514
|
+
reset: {
|
|
515
|
+
rects: !0
|
|
516
|
+
}
|
|
517
|
+
} : {};
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
export {
|
|
522
|
+
ce as arrow,
|
|
523
|
+
le as computePosition,
|
|
524
|
+
se as detectOverflow,
|
|
525
|
+
re as flip,
|
|
526
|
+
fe as hide,
|
|
527
|
+
xe as limitShift,
|
|
528
|
+
me as offset,
|
|
529
|
+
X as rectToClientRect,
|
|
530
|
+
de as shift,
|
|
531
|
+
ge as size
|
|
532
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../core/dist/floating-ui.core.cjs"),a=require("../../utils/dist/floating-ui.utils.cjs"),i=require("../../utils/dist/floating-ui.utils.dom.cjs");function A(t){const e=i.getComputedStyle(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=i.isHTMLElement(t),l=s?t.offsetWidth:n,r=s?t.offsetHeight:o,c=a.round(n)!==l||a.round(o)!==r;return c&&(n=l,o=r),{width:n,height:o,$:c}}function W(t){return i.isElement(t)?t:t.contextElement}function L(t){const e=W(t);if(!i.isHTMLElement(e))return a.createCoords(1);const n=e.getBoundingClientRect(),{width:o,height:s,$:l}=A(e);let r=(l?a.round(n.width):n.width)/o,c=(l?a.round(n.height):n.height)/s;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const q=a.createCoords(0);function B(t){const e=i.getWindow(t);return!i.isWebKit()||!e.visualViewport?q:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function U(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==i.getWindow(t)?!1:e}function b(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),l=W(t);let r=a.createCoords(1);e&&(o?i.isElement(o)&&(r=L(o)):r=L(t));const c=U(l,n,o)?B(l):a.createCoords(0);let u=(s.left+c.x)/r.x,f=(s.top+c.y)/r.y,d=s.width/r.x,g=s.height/r.y;if(l){const m=i.getWindow(l),h=o&&i.isElement(o)?i.getWindow(o):o;let y=m,w=i.getFrameElement(y);for(;w&&o&&h!==y;){const v=L(w),p=w.getBoundingClientRect(),x=i.getComputedStyle(w),E=p.left+(w.clientLeft+parseFloat(x.paddingLeft))*v.x,O=p.top+(w.clientTop+parseFloat(x.paddingTop))*v.y;u*=v.x,f*=v.y,d*=v.x,g*=v.y,u+=E,f+=O,y=i.getWindow(w),w=i.getFrameElement(y)}}return a.rectToClientRect({width:d,height:g,x:u,y:f})}function R(t,e){const n=i.getNodeScroll(t).scrollLeft;return e?e.left+n:b(i.getDocumentElement(t)).left+n}function z(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-R(t,n),s=n.top+e.scrollTop;return{x:o,y:s}}function k(t){let{elements:e,rect:n,offsetParent:o,strategy:s}=t;const l=s==="fixed",r=i.getDocumentElement(o),c=e?i.isTopLayer(e.floating):!1;if(o===r||c&&l)return n;let u={scrollLeft:0,scrollTop:0},f=a.createCoords(1);const d=a.createCoords(0),g=i.isHTMLElement(o);if((g||!g&&!l)&&((i.getNodeName(o)!=="body"||i.isOverflowElement(r))&&(u=i.getNodeScroll(o)),i.isHTMLElement(o))){const h=b(o);f=L(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const m=r&&!g&&!l?z(r,u):a.createCoords(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+d.x+m.x,y:n.y*f.y-u.scrollTop*f.y+d.y+m.y}}function X(t){return Array.from(t.getClientRects())}function K(t){const e=i.getDocumentElement(t),n=i.getNodeScroll(t),o=t.ownerDocument.body,s=a.max(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=a.max(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+R(t);const c=-n.scrollTop;return i.getComputedStyle(o).direction==="rtl"&&(r+=a.max(e.clientWidth,o.clientWidth)-s),{width:s,height:l,x:r,y:c}}const D=25;function $(t,e){const n=i.getWindow(t),o=i.getDocumentElement(t),s=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,c=0,u=0;if(s){l=s.width,r=s.height;const d=i.isWebKit();(!d||d&&e==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}const f=R(o);if(f<=0){const d=o.ownerDocument,g=d.body,m=getComputedStyle(g),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(o.clientWidth-g.clientWidth-h);y<=D&&(l-=y)}else f<=D&&(l+=f);return{width:l,height:r,x:c,y:u}}const j=new Set(["absolute","fixed"]);function G(t,e){const n=b(t,!0,e==="fixed"),o=n.top+t.clientTop,s=n.left+t.clientLeft,l=i.isHTMLElement(t)?L(t):a.createCoords(1),r=t.clientWidth*l.x,c=t.clientHeight*l.y,u=s*l.x,f=o*l.y;return{width:r,height:c,x:u,y:f}}function M(t,e,n){let o;if(e==="viewport")o=$(t,n);else if(e==="document")o=K(i.getDocumentElement(t));else if(i.isElement(e))o=G(e,n);else{const s=B(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return a.rectToClientRect(o)}function I(t,e){const n=i.getParentNode(t);return n===e||!i.isElement(n)||i.isLastTraversableNode(n)?!1:i.getComputedStyle(n).position==="fixed"||I(n,e)}function J(t,e){const n=e.get(t);if(n)return n;let o=i.getOverflowAncestors(t,[],!1).filter(c=>i.isElement(c)&&i.getNodeName(c)!=="body"),s=null;const l=i.getComputedStyle(t).position==="fixed";let r=l?i.getParentNode(t):t;for(;i.isElement(r)&&!i.isLastTraversableNode(r);){const c=i.getComputedStyle(r),u=i.isContainingBlock(r);!u&&c.position==="fixed"&&(s=null),(l?!u&&!s:!u&&c.position==="static"&&!!s&&j.has(s.position)||i.isOverflowElement(r)&&!u&&I(t,r))?o=o.filter(d=>d!==r):s=c,r=i.getParentNode(r)}return e.set(t,o),o}function Q(t){let{element:e,boundary:n,rootBoundary:o,strategy:s}=t;const r=[...n==="clippingAncestors"?i.isTopLayer(e)?[]:J(e,this._c):[].concat(n),o],c=r[0],u=r.reduce((f,d)=>{const g=M(e,d,s);return f.top=a.max(g.top,f.top),f.right=a.min(g.right,f.right),f.bottom=a.min(g.bottom,f.bottom),f.left=a.max(g.left,f.left),f},M(e,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Y(t){const{width:e,height:n}=A(t);return{width:e,height:n}}function Z(t,e,n){const o=i.isHTMLElement(e),s=i.getDocumentElement(e),l=n==="fixed",r=b(t,!0,l,e);let c={scrollLeft:0,scrollTop:0};const u=a.createCoords(0);function f(){u.x=R(s)}if(o||!o&&!l)if((i.getNodeName(e)!=="body"||i.isOverflowElement(s))&&(c=i.getNodeScroll(e)),o){const h=b(e,!0,l,e);u.x=h.x+e.clientLeft,u.y=h.y+e.clientTop}else s&&f();l&&!o&&s&&f();const d=s&&!o&&!l?z(s,c):a.createCoords(0),g=r.left+c.scrollLeft-u.x-d.x,m=r.top+c.scrollTop-u.y-d.y;return{x:g,y:m,width:r.width,height:r.height}}function S(t){return i.getComputedStyle(t).position==="static"}function H(t,e){if(!i.isHTMLElement(t)||i.getComputedStyle(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return i.getDocumentElement(t)===n&&(n=n.ownerDocument.body),n}function _(t,e){const n=i.getWindow(t);if(i.isTopLayer(t))return n;if(!i.isHTMLElement(t)){let s=i.getParentNode(t);for(;s&&!i.isLastTraversableNode(s);){if(i.isElement(s)&&!S(s))return s;s=i.getParentNode(s)}return n}let o=H(t,e);for(;o&&i.isTableElement(o)&&S(o);)o=H(o,e);return o&&i.isLastTraversableNode(o)&&S(o)&&!i.isContainingBlock(o)?n:o||i.getContainingBlock(t)||n}const tt=async function(t){const e=this.getOffsetParent||_,n=this.getDimensions,o=await n(t.floating);return{reference:Z(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function et(t){return i.getComputedStyle(t).direction==="rtl"}const V={convertOffsetParentRelativeRectToViewportRelativeRect:k,getDocumentElement:i.getDocumentElement,getClippingRect:Q,getOffsetParent:_,getElementRects:tt,getClientRects:X,getDimensions:Y,getScale:L,isElement:i.isElement,isRTL:et};function P(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ot(t,e){let n=null,o;const s=i.getDocumentElement(t);function l(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),l();const f=t.getBoundingClientRect(),{left:d,top:g,width:m,height:h}=f;if(c||e(),!m||!h)return;const y=a.floor(g),w=a.floor(s.clientWidth-(d+m)),v=a.floor(s.clientHeight-(g+h)),p=a.floor(d),E={rootMargin:-y+"px "+-w+"px "+-v+"px "+-p+"px",threshold:a.max(0,a.min(1,u))||1};let O=!0;function N(F){const T=F[0].intersectionRatio;if(T!==u){if(!O)return r();T?r(!1,T):o=setTimeout(()=>{r(!1,1e-7)},1e3)}T===1&&!P(f,t.getBoundingClientRect())&&r(),O=!1}try{n=new IntersectionObserver(N,{...E,root:s.ownerDocument})}catch{n=new IntersectionObserver(N,E)}n.observe(t)}return r(!0),l}function nt(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,f=W(t),d=s||l?[...f?i.getOverflowAncestors(f):[],...i.getOverflowAncestors(e)]:[];d.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),l&&p.addEventListener("resize",n)});const g=f&&c?ot(f,n):null;let m=-1,h=null;r&&(h=new ResizeObserver(p=>{let[x]=p;x&&x.target===f&&h&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(e)})),n()}),f&&!u&&h.observe(f),h.observe(e));let y,w=u?b(t):null;u&&v();function v(){const p=b(t);w&&!P(w,p)&&n(),w=p,y=requestAnimationFrame(v)}return n(),()=>{var p;d.forEach(x=>{s&&x.removeEventListener("scroll",n),l&&x.removeEventListener("resize",n)}),g?.(),(p=h)==null||p.disconnect(),h=null,u&&cancelAnimationFrame(y)}}const it=C.detectOverflow,st=C.offset,rt=C.shift,lt=C.flip,ct=C.size,ft=C.hide,ut=C.arrow,at=C.limitShift,dt=(t,e,n)=>{const o=new Map,s={platform:V,...n},l={...s.platform,_c:o};return C.computePosition(t,e,{...s,platform:l})};exports.getOverflowAncestors=i.getOverflowAncestors;exports.arrow=ut;exports.autoUpdate=nt;exports.computePosition=dt;exports.detectOverflow=it;exports.flip=lt;exports.hide=ft;exports.limitShift=at;exports.offset=st;exports.platform=V;exports.shift=rt;exports.size=ct;
|