@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,368 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
import { useLayoutEffect as j, useEffect as q } from "react";
|
|
3
|
+
import { getUserAgent as y } from "./floating-ui.react.utils.js";
|
|
4
|
+
import { evaluate as K, max as O, min as z, round as G } from "../../utils/dist/floating-ui.utils.js";
|
|
5
|
+
import { isElement as b } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
6
|
+
import { getOverflowAncestors as Ie } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
7
|
+
import * as D from "react-dom";
|
|
8
|
+
import { useFloating as J, offset as Q } from "../../react-dom/dist/floating-ui.react-dom.js";
|
|
9
|
+
import { arrow as Te, flip as Oe, hide as Fe, limitShift as Me, shift as De, size as He } from "../../react-dom/dist/floating-ui.react-dom.js";
|
|
10
|
+
import { detectOverflow as F } from "../../dom/dist/floating-ui.dom.js";
|
|
11
|
+
import { autoUpdate as Pe, computePosition as Ne, platform as Ue } from "../../dom/dist/floating-ui.dom.js";
|
|
12
|
+
const Y = {
|
|
13
|
+
...c
|
|
14
|
+
}, X = Y.useInsertionEffect, Z = X || ((e) => e());
|
|
15
|
+
function W(e) {
|
|
16
|
+
const t = c.useRef(() => {
|
|
17
|
+
if (process.env.NODE_ENV !== "production")
|
|
18
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
19
|
+
});
|
|
20
|
+
return Z(() => {
|
|
21
|
+
t.current = e;
|
|
22
|
+
}), c.useCallback(function() {
|
|
23
|
+
for (var s = arguments.length, n = new Array(s), o = 0; o < s; o++)
|
|
24
|
+
n[o] = arguments[o];
|
|
25
|
+
return t.current == null ? void 0 : t.current(...n);
|
|
26
|
+
}, []);
|
|
27
|
+
}
|
|
28
|
+
var H = typeof document < "u" ? j : q;
|
|
29
|
+
let P = !1, _ = 0;
|
|
30
|
+
const N = () => (
|
|
31
|
+
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
32
|
+
// on <React 18
|
|
33
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + _++
|
|
34
|
+
);
|
|
35
|
+
function L() {
|
|
36
|
+
const [e, t] = c.useState(() => P ? N() : void 0);
|
|
37
|
+
return H(() => {
|
|
38
|
+
e == null && t(N());
|
|
39
|
+
}, []), c.useEffect(() => {
|
|
40
|
+
P = !0;
|
|
41
|
+
}, []), e;
|
|
42
|
+
}
|
|
43
|
+
const k = Y.useId, ee = k || L;
|
|
44
|
+
let I;
|
|
45
|
+
process.env.NODE_ENV !== "production" && (I = /* @__PURE__ */ new Set());
|
|
46
|
+
function ne() {
|
|
47
|
+
for (var e, t = arguments.length, s = new Array(t), n = 0; n < t; n++)
|
|
48
|
+
s[n] = arguments[n];
|
|
49
|
+
const o = "Floating UI: " + s.join(" ");
|
|
50
|
+
if (!((e = I) != null && e.has(o))) {
|
|
51
|
+
var f;
|
|
52
|
+
(f = I) == null || f.add(o), console.warn(o);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function te() {
|
|
56
|
+
for (var e, t = arguments.length, s = new Array(t), n = 0; n < t; n++)
|
|
57
|
+
s[n] = arguments[n];
|
|
58
|
+
const o = "Floating UI: " + s.join(" ");
|
|
59
|
+
if (!((e = I) != null && e.has(o))) {
|
|
60
|
+
var f;
|
|
61
|
+
(f = I) == null || f.add(o), console.error(o);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function oe() {
|
|
65
|
+
const e = /* @__PURE__ */ new Map();
|
|
66
|
+
return {
|
|
67
|
+
emit(t, s) {
|
|
68
|
+
var n;
|
|
69
|
+
(n = e.get(t)) == null || n.forEach((o) => o(s));
|
|
70
|
+
},
|
|
71
|
+
on(t, s) {
|
|
72
|
+
e.set(t, [...e.get(t) || [], s]);
|
|
73
|
+
},
|
|
74
|
+
off(t, s) {
|
|
75
|
+
var n;
|
|
76
|
+
e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((o) => o !== s)) || []);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
const re = /* @__PURE__ */ c.createContext(null), le = /* @__PURE__ */ c.createContext(null), ce = () => {
|
|
81
|
+
var e;
|
|
82
|
+
return ((e = c.useContext(re)) == null ? void 0 : e.id) || null;
|
|
83
|
+
}, se = () => c.useContext(le), ie = "data-floating-ui-focusable";
|
|
84
|
+
function fe(e) {
|
|
85
|
+
const {
|
|
86
|
+
open: t = !1,
|
|
87
|
+
onOpenChange: s,
|
|
88
|
+
elements: n
|
|
89
|
+
} = e, o = ee(), f = c.useRef({}), [u] = c.useState(() => oe()), i = ce() != null;
|
|
90
|
+
if (process.env.NODE_ENV !== "production") {
|
|
91
|
+
const r = n.reference;
|
|
92
|
+
r && !b(r) && te("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
93
|
+
}
|
|
94
|
+
const [v, d] = c.useState(n.reference), a = W((r, l, g) => {
|
|
95
|
+
f.current.openEvent = r ? l : void 0, u.emit("openchange", {
|
|
96
|
+
open: r,
|
|
97
|
+
event: l,
|
|
98
|
+
reason: g,
|
|
99
|
+
nested: i
|
|
100
|
+
}), s?.(r, l, g);
|
|
101
|
+
}), R = c.useMemo(() => ({
|
|
102
|
+
setPositionReference: d
|
|
103
|
+
}), []), p = c.useMemo(() => ({
|
|
104
|
+
reference: v || n.reference || null,
|
|
105
|
+
floating: n.floating || null,
|
|
106
|
+
domReference: n.reference
|
|
107
|
+
}), [v, n.reference, n.floating]);
|
|
108
|
+
return c.useMemo(() => ({
|
|
109
|
+
dataRef: f,
|
|
110
|
+
open: t,
|
|
111
|
+
onOpenChange: a,
|
|
112
|
+
elements: p,
|
|
113
|
+
events: u,
|
|
114
|
+
floatingId: o,
|
|
115
|
+
refs: R
|
|
116
|
+
}), [t, a, p, u, o, R]);
|
|
117
|
+
}
|
|
118
|
+
function Re(e) {
|
|
119
|
+
e === void 0 && (e = {});
|
|
120
|
+
const {
|
|
121
|
+
nodeId: t
|
|
122
|
+
} = e, s = fe({
|
|
123
|
+
...e,
|
|
124
|
+
elements: {
|
|
125
|
+
reference: null,
|
|
126
|
+
floating: null,
|
|
127
|
+
...e.elements
|
|
128
|
+
}
|
|
129
|
+
}), n = e.rootContext || s, o = n.elements, [f, u] = c.useState(null), [i, v] = c.useState(null), a = o?.domReference || f, R = c.useRef(null), p = se();
|
|
130
|
+
H(() => {
|
|
131
|
+
a && (R.current = a);
|
|
132
|
+
}, [a]);
|
|
133
|
+
const r = J({
|
|
134
|
+
...e,
|
|
135
|
+
elements: {
|
|
136
|
+
...o,
|
|
137
|
+
...i && {
|
|
138
|
+
reference: i
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}), l = c.useCallback((m) => {
|
|
142
|
+
const E = b(m) ? {
|
|
143
|
+
getBoundingClientRect: () => m.getBoundingClientRect(),
|
|
144
|
+
contextElement: m
|
|
145
|
+
} : m;
|
|
146
|
+
v(E), r.refs.setReference(E);
|
|
147
|
+
}, [r.refs]), g = c.useCallback((m) => {
|
|
148
|
+
(b(m) || m === null) && (R.current = m, u(m)), (b(r.refs.reference.current) || r.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
149
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
150
|
+
// callback ref.
|
|
151
|
+
m !== null && !b(m)) && r.refs.setReference(m);
|
|
152
|
+
}, [r.refs]), h = c.useMemo(() => ({
|
|
153
|
+
...r.refs,
|
|
154
|
+
setReference: g,
|
|
155
|
+
setPositionReference: l,
|
|
156
|
+
domReference: R
|
|
157
|
+
}), [r.refs, g, l]), C = c.useMemo(() => ({
|
|
158
|
+
...r.elements,
|
|
159
|
+
domReference: a
|
|
160
|
+
}), [r.elements, a]), x = c.useMemo(() => ({
|
|
161
|
+
...r,
|
|
162
|
+
...n,
|
|
163
|
+
refs: h,
|
|
164
|
+
elements: C,
|
|
165
|
+
nodeId: t
|
|
166
|
+
}), [r, h, C, t, n]);
|
|
167
|
+
return H(() => {
|
|
168
|
+
n.dataRef.current.floatingContext = x;
|
|
169
|
+
const m = p?.nodesRef.current.find((E) => E.id === t);
|
|
170
|
+
m && (m.context = x);
|
|
171
|
+
}), c.useMemo(() => ({
|
|
172
|
+
...r,
|
|
173
|
+
context: x,
|
|
174
|
+
refs: h,
|
|
175
|
+
elements: C
|
|
176
|
+
}), [r, h, C, x]);
|
|
177
|
+
}
|
|
178
|
+
const U = "active", B = "selected";
|
|
179
|
+
function M(e, t, s) {
|
|
180
|
+
const n = /* @__PURE__ */ new Map(), o = s === "item";
|
|
181
|
+
let f = e;
|
|
182
|
+
if (o && e) {
|
|
183
|
+
const {
|
|
184
|
+
[U]: u,
|
|
185
|
+
[B]: i,
|
|
186
|
+
...v
|
|
187
|
+
} = e;
|
|
188
|
+
f = v;
|
|
189
|
+
}
|
|
190
|
+
return {
|
|
191
|
+
...s === "floating" && {
|
|
192
|
+
tabIndex: -1,
|
|
193
|
+
[ie]: ""
|
|
194
|
+
},
|
|
195
|
+
...f,
|
|
196
|
+
...t.map((u) => {
|
|
197
|
+
const i = u ? u[s] : null;
|
|
198
|
+
return typeof i == "function" ? e ? i(e) : null : i;
|
|
199
|
+
}).concat(e).reduce((u, i) => (i && Object.entries(i).forEach((v) => {
|
|
200
|
+
let [d, a] = v;
|
|
201
|
+
if (!(o && [U, B].includes(d)))
|
|
202
|
+
if (d.indexOf("on") === 0) {
|
|
203
|
+
if (n.has(d) || n.set(d, []), typeof a == "function") {
|
|
204
|
+
var R;
|
|
205
|
+
(R = n.get(d)) == null || R.push(a), u[d] = function() {
|
|
206
|
+
for (var p, r = arguments.length, l = new Array(r), g = 0; g < r; g++)
|
|
207
|
+
l[g] = arguments[g];
|
|
208
|
+
return (p = n.get(d)) == null ? void 0 : p.map((h) => h(...l)).find((h) => h !== void 0);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
} else
|
|
212
|
+
u[d] = a;
|
|
213
|
+
}), u), {})
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function Ee(e) {
|
|
217
|
+
e === void 0 && (e = []);
|
|
218
|
+
const t = e.map((i) => i?.reference), s = e.map((i) => i?.floating), n = e.map((i) => i?.item), o = c.useCallback(
|
|
219
|
+
(i) => M(i, e, "reference"),
|
|
220
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
221
|
+
t
|
|
222
|
+
), f = c.useCallback(
|
|
223
|
+
(i) => M(i, e, "floating"),
|
|
224
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
225
|
+
s
|
|
226
|
+
), u = c.useCallback(
|
|
227
|
+
(i) => M(i, e, "item"),
|
|
228
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
229
|
+
n
|
|
230
|
+
);
|
|
231
|
+
return c.useMemo(() => ({
|
|
232
|
+
getReferenceProps: o,
|
|
233
|
+
getFloatingProps: f,
|
|
234
|
+
getItemProps: u
|
|
235
|
+
}), [o, f, u]);
|
|
236
|
+
}
|
|
237
|
+
function V(e, t) {
|
|
238
|
+
return {
|
|
239
|
+
...e,
|
|
240
|
+
rects: {
|
|
241
|
+
...e.rects,
|
|
242
|
+
floating: {
|
|
243
|
+
...e.rects.floating,
|
|
244
|
+
height: t
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
const Ce = (e) => ({
|
|
250
|
+
name: "inner",
|
|
251
|
+
options: e,
|
|
252
|
+
async fn(t) {
|
|
253
|
+
const {
|
|
254
|
+
listRef: s,
|
|
255
|
+
overflowRef: n,
|
|
256
|
+
onFallbackChange: o,
|
|
257
|
+
offset: f = 0,
|
|
258
|
+
index: u = 0,
|
|
259
|
+
minItemsVisible: i = 4,
|
|
260
|
+
referenceOverflowThreshold: v = 0,
|
|
261
|
+
scrollRef: d,
|
|
262
|
+
...a
|
|
263
|
+
} = K(e, t), {
|
|
264
|
+
rects: R,
|
|
265
|
+
elements: {
|
|
266
|
+
floating: p
|
|
267
|
+
}
|
|
268
|
+
} = t, r = s.current[u], l = d?.current || p, g = p.clientTop || l.clientTop, h = p.clientTop !== 0, C = l.clientTop !== 0, x = p === l;
|
|
269
|
+
if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || ne('`placement` side must be "bottom" when using the `inner`', "middleware.")), !r)
|
|
270
|
+
return {};
|
|
271
|
+
const m = {
|
|
272
|
+
...t,
|
|
273
|
+
...await Q(-r.offsetTop - p.clientTop - R.reference.height / 2 - r.offsetHeight / 2 - f).fn(t)
|
|
274
|
+
}, E = await F(V(m, l.scrollHeight + g + p.clientTop), a), S = await F(m, {
|
|
275
|
+
...a,
|
|
276
|
+
elementContext: "reference"
|
|
277
|
+
}), w = O(0, E.top), A = m.y + w, $ = (l.scrollHeight > l.clientHeight ? (T) => T : G)(O(0, l.scrollHeight + (h && x || C ? g * 2 : 0) - w - O(0, E.bottom)));
|
|
278
|
+
if (l.style.maxHeight = $ + "px", l.scrollTop = w, o) {
|
|
279
|
+
const T = l.offsetHeight < r.offsetHeight * z(i, s.current.length) - 1 || S.top >= -v || S.bottom >= -v;
|
|
280
|
+
D.flushSync(() => o(T));
|
|
281
|
+
}
|
|
282
|
+
return n && (n.current = await F(V({
|
|
283
|
+
...m,
|
|
284
|
+
y: A
|
|
285
|
+
}, l.offsetHeight + g + p.clientTop), a)), {
|
|
286
|
+
y: A
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
function xe(e, t) {
|
|
291
|
+
const {
|
|
292
|
+
open: s,
|
|
293
|
+
elements: n
|
|
294
|
+
} = e, {
|
|
295
|
+
enabled: o = !0,
|
|
296
|
+
overflowRef: f,
|
|
297
|
+
scrollRef: u,
|
|
298
|
+
onChange: i
|
|
299
|
+
} = t, v = W(i), d = c.useRef(!1), a = c.useRef(null), R = c.useRef(null);
|
|
300
|
+
c.useEffect(() => {
|
|
301
|
+
if (!o) return;
|
|
302
|
+
function r(g) {
|
|
303
|
+
if (g.ctrlKey || !l || f.current == null)
|
|
304
|
+
return;
|
|
305
|
+
const h = g.deltaY, C = f.current.top >= -0.5, x = f.current.bottom >= -0.5, m = l.scrollHeight - l.clientHeight, E = h < 0 ? -1 : 1, S = h < 0 ? "max" : "min";
|
|
306
|
+
l.scrollHeight <= l.clientHeight || (!C && h > 0 || !x && h < 0 ? (g.preventDefault(), D.flushSync(() => {
|
|
307
|
+
v((w) => w + Math[S](h, m * E));
|
|
308
|
+
})) : /firefox/i.test(y()) && (l.scrollTop += h));
|
|
309
|
+
}
|
|
310
|
+
const l = u?.current || n.floating;
|
|
311
|
+
if (s && l)
|
|
312
|
+
return l.addEventListener("wheel", r), requestAnimationFrame(() => {
|
|
313
|
+
a.current = l.scrollTop, f.current != null && (R.current = {
|
|
314
|
+
...f.current
|
|
315
|
+
});
|
|
316
|
+
}), () => {
|
|
317
|
+
a.current = null, R.current = null, l.removeEventListener("wheel", r);
|
|
318
|
+
};
|
|
319
|
+
}, [o, s, n.floating, f, u, v]);
|
|
320
|
+
const p = c.useMemo(() => ({
|
|
321
|
+
onKeyDown() {
|
|
322
|
+
d.current = !0;
|
|
323
|
+
},
|
|
324
|
+
onWheel() {
|
|
325
|
+
d.current = !1;
|
|
326
|
+
},
|
|
327
|
+
onPointerMove() {
|
|
328
|
+
d.current = !1;
|
|
329
|
+
},
|
|
330
|
+
onScroll() {
|
|
331
|
+
const r = u?.current || n.floating;
|
|
332
|
+
if (!(!f.current || !r || !d.current)) {
|
|
333
|
+
if (a.current !== null) {
|
|
334
|
+
const l = r.scrollTop - a.current;
|
|
335
|
+
(f.current.bottom < -0.5 && l < -1 || f.current.top < -0.5 && l > 1) && D.flushSync(() => v((g) => g + l));
|
|
336
|
+
}
|
|
337
|
+
requestAnimationFrame(() => {
|
|
338
|
+
a.current = r.scrollTop;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}), [n.floating, v, f, u]);
|
|
343
|
+
return c.useMemo(() => o ? {
|
|
344
|
+
floating: p
|
|
345
|
+
} : {}, [o, p]);
|
|
346
|
+
}
|
|
347
|
+
export {
|
|
348
|
+
Te as arrow,
|
|
349
|
+
Pe as autoUpdate,
|
|
350
|
+
Ne as computePosition,
|
|
351
|
+
F as detectOverflow,
|
|
352
|
+
Oe as flip,
|
|
353
|
+
Ie as getOverflowAncestors,
|
|
354
|
+
Fe as hide,
|
|
355
|
+
Ce as inner,
|
|
356
|
+
Me as limitShift,
|
|
357
|
+
Q as offset,
|
|
358
|
+
Ue as platform,
|
|
359
|
+
De as shift,
|
|
360
|
+
He as size,
|
|
361
|
+
Re as useFloating,
|
|
362
|
+
ce as useFloatingParentNodeId,
|
|
363
|
+
fe as useFloatingRootContext,
|
|
364
|
+
se as useFloatingTree,
|
|
365
|
+
ee as useId,
|
|
366
|
+
xe as useInnerOffset,
|
|
367
|
+
Ee as useInteractions
|
|
368
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(){const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?r.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}exports.getUserAgent=a;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function e() {
|
|
2
|
+
const r = navigator.userAgentData;
|
|
3
|
+
return r && Array.isArray(r.brands) ? r.brands.map((n) => {
|
|
4
|
+
let {
|
|
5
|
+
brand: a,
|
|
6
|
+
version: t
|
|
7
|
+
} = n;
|
|
8
|
+
return a + "/" + t;
|
|
9
|
+
}).join(" ") : navigator.userAgent;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
e as getUserAgent
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../dom/dist/floating-ui.dom.cjs"),L=require("react"),H=require("react-dom");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(L),I=U(H);var J=typeof document<"u",K=function(){},R=J?L.useLayoutEffect:K;function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!P(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const g=s[r];if(!(g==="_owner"&&e.$$typeof)&&!P(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function $(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,t){const n=$(e);return Math.round(t*n)/n}function D(e){const t=o.useRef(e);return R(()=>{t.current=e}),t}function Q(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:g,floating:A}={},transform:j=!0,whileElementsMounted:k,open:S}=e,[u,v]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[M,T]=o.useState(r);P(M,r)||T(r);const[B,N]=o.useState(null),[V,W]=o.useState(null),E=o.useCallback(f=>{f!==d.current&&(d.current=f,N(f))},[]),b=o.useCallback(f=>{f!==p.current&&(p.current=f,W(f))},[]),c=g||B,l=A||V,d=o.useRef(null),p=o.useRef(null),w=o.useRef(u),G=k!=null,O=D(k),_=D(s),C=D(S),y=o.useCallback(()=>{if(!d.current||!p.current)return;const f={placement:t,strategy:n,middleware:M};_.current&&(f.platform=_.current),i.computePosition(d.current,p.current,f).then(h=>{const m={...h,isPositioned:C.current!==!1};x.current&&!P(w.current,m)&&(w.current=m,I.flushSync(()=>{v(m)}))})},[M,t,n,_,C]);R(()=>{S===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,v(f=>({...f,isPositioned:!1})))},[S]);const x=o.useRef(!1);R(()=>(x.current=!0,()=>{x.current=!1}),[]),R(()=>{if(c&&(d.current=c),l&&(p.current=l),c&&l){if(O.current)return O.current(c,l,y);y()}},[c,l,y,O,G]);const F=o.useMemo(()=>({reference:d,floating:p,setReference:E,setFloating:b}),[E,b]),a=o.useMemo(()=>({reference:c,floating:l}),[c,l]),q=o.useMemo(()=>{const f={position:n,left:0,top:0};if(!a.floating)return f;const h=z(a.floating,u.x),m=z(a.floating,u.y);return j?{...f,transform:"translate("+h+"px, "+m+"px)",...$(a.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:h,top:m}},[n,j,a.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:y,refs:F,elements:a,floatingStyles:q}),[u,y,F,a,q])}const X=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i.arrow({element:r.current,padding:s}).fn(n):{}:r?i.arrow({element:r,padding:s}).fn(n):{}}}},Y=(e,t)=>({...i.offset(e),options:[e,t]}),Z=(e,t)=>({...i.shift(e),options:[e,t]}),ee=(e,t)=>({...i.limitShift(e),options:[e,t]}),te=(e,t)=>({...i.flip(e),options:[e,t]}),ne=(e,t)=>({...i.size(e),options:[e,t]}),re=(e,t)=>({...i.hide(e),options:[e,t]}),oe=(e,t)=>({...X(e),options:[e,t]});exports.autoUpdate=i.autoUpdate;exports.computePosition=i.computePosition;exports.detectOverflow=i.detectOverflow;exports.platform=i.platform;exports.arrow=oe;exports.flip=te;exports.hide=re;exports.limitShift=ee;exports.offset=Y;exports.shift=Z;exports.size=ne;exports.useFloating=Q;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, arrow as z, limitShift as X } from "../../dom/dist/floating-ui.dom.js";
|
|
2
|
+
import { autoUpdate as pe, detectOverflow as ge, platform as ye } from "../../dom/dist/floating-ui.dom.js";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { useLayoutEffect as Y } from "react";
|
|
5
|
+
import * as Z from "react-dom";
|
|
6
|
+
var b = typeof document < "u", ee = function() {
|
|
7
|
+
}, h = b ? Y : ee;
|
|
8
|
+
function R(e, t) {
|
|
9
|
+
if (e === t)
|
|
10
|
+
return !0;
|
|
11
|
+
if (typeof e != typeof t)
|
|
12
|
+
return !1;
|
|
13
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
14
|
+
return !0;
|
|
15
|
+
let n, r, i;
|
|
16
|
+
if (e && t && typeof e == "object") {
|
|
17
|
+
if (Array.isArray(e)) {
|
|
18
|
+
if (n = e.length, n !== t.length) return !1;
|
|
19
|
+
for (r = n; r-- !== 0; )
|
|
20
|
+
if (!R(e[r], t[r]))
|
|
21
|
+
return !1;
|
|
22
|
+
return !0;
|
|
23
|
+
}
|
|
24
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
|
|
25
|
+
return !1;
|
|
26
|
+
for (r = n; r-- !== 0; )
|
|
27
|
+
if (!{}.hasOwnProperty.call(t, i[r]))
|
|
28
|
+
return !1;
|
|
29
|
+
for (r = n; r-- !== 0; ) {
|
|
30
|
+
const p = i[r];
|
|
31
|
+
if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
return e !== e && t !== t;
|
|
37
|
+
}
|
|
38
|
+
function A(e) {
|
|
39
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
40
|
+
}
|
|
41
|
+
function L(e, t) {
|
|
42
|
+
const n = A(e);
|
|
43
|
+
return Math.round(t * n) / n;
|
|
44
|
+
}
|
|
45
|
+
function k(e) {
|
|
46
|
+
const t = o.useRef(e);
|
|
47
|
+
return h(() => {
|
|
48
|
+
t.current = e;
|
|
49
|
+
}), t;
|
|
50
|
+
}
|
|
51
|
+
function oe(e) {
|
|
52
|
+
e === void 0 && (e = {});
|
|
53
|
+
const {
|
|
54
|
+
placement: t = "bottom",
|
|
55
|
+
strategy: n = "absolute",
|
|
56
|
+
middleware: r = [],
|
|
57
|
+
platform: i,
|
|
58
|
+
elements: {
|
|
59
|
+
reference: p,
|
|
60
|
+
floating: q
|
|
61
|
+
} = {},
|
|
62
|
+
transform: D = !0,
|
|
63
|
+
whileElementsMounted: E,
|
|
64
|
+
open: x
|
|
65
|
+
} = e, [s, O] = o.useState({
|
|
66
|
+
x: 0,
|
|
67
|
+
y: 0,
|
|
68
|
+
strategy: n,
|
|
69
|
+
placement: t,
|
|
70
|
+
middlewareData: {},
|
|
71
|
+
isPositioned: !1
|
|
72
|
+
}), [M, B] = o.useState(r);
|
|
73
|
+
R(M, r) || B(r);
|
|
74
|
+
const [U, V] = o.useState(null), [W, G] = o.useState(null), v = o.useCallback((f) => {
|
|
75
|
+
f !== a.current && (a.current = f, V(f));
|
|
76
|
+
}, []), C = o.useCallback((f) => {
|
|
77
|
+
f !== d.current && (d.current = f, G(f));
|
|
78
|
+
}, []), u = p || U, l = q || W, a = o.useRef(null), d = o.useRef(null), y = o.useRef(s), H = E != null, S = k(E), P = k(i), _ = k(x), g = o.useCallback(() => {
|
|
79
|
+
if (!a.current || !d.current)
|
|
80
|
+
return;
|
|
81
|
+
const f = {
|
|
82
|
+
placement: t,
|
|
83
|
+
strategy: n,
|
|
84
|
+
middleware: M
|
|
85
|
+
};
|
|
86
|
+
P.current && (f.platform = P.current), I(a.current, d.current, f).then((w) => {
|
|
87
|
+
const m = {
|
|
88
|
+
...w,
|
|
89
|
+
// The floating element's position may be recomputed while it's closed
|
|
90
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
91
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
92
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
93
|
+
isPositioned: _.current !== !1
|
|
94
|
+
};
|
|
95
|
+
$.current && !R(y.current, m) && (y.current = m, Z.flushSync(() => {
|
|
96
|
+
O(m);
|
|
97
|
+
}));
|
|
98
|
+
});
|
|
99
|
+
}, [M, t, n, P, _]);
|
|
100
|
+
h(() => {
|
|
101
|
+
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((f) => ({
|
|
102
|
+
...f,
|
|
103
|
+
isPositioned: !1
|
|
104
|
+
})));
|
|
105
|
+
}, [x]);
|
|
106
|
+
const $ = o.useRef(!1);
|
|
107
|
+
h(() => ($.current = !0, () => {
|
|
108
|
+
$.current = !1;
|
|
109
|
+
}), []), h(() => {
|
|
110
|
+
if (u && (a.current = u), l && (d.current = l), u && l) {
|
|
111
|
+
if (S.current)
|
|
112
|
+
return S.current(u, l, g);
|
|
113
|
+
g();
|
|
114
|
+
}
|
|
115
|
+
}, [u, l, g, S, H]);
|
|
116
|
+
const F = o.useMemo(() => ({
|
|
117
|
+
reference: a,
|
|
118
|
+
floating: d,
|
|
119
|
+
setReference: v,
|
|
120
|
+
setFloating: C
|
|
121
|
+
}), [v, C]), c = o.useMemo(() => ({
|
|
122
|
+
reference: u,
|
|
123
|
+
floating: l
|
|
124
|
+
}), [u, l]), j = o.useMemo(() => {
|
|
125
|
+
const f = {
|
|
126
|
+
position: n,
|
|
127
|
+
left: 0,
|
|
128
|
+
top: 0
|
|
129
|
+
};
|
|
130
|
+
if (!c.floating)
|
|
131
|
+
return f;
|
|
132
|
+
const w = L(c.floating, s.x), m = L(c.floating, s.y);
|
|
133
|
+
return D ? {
|
|
134
|
+
...f,
|
|
135
|
+
transform: "translate(" + w + "px, " + m + "px)",
|
|
136
|
+
...A(c.floating) >= 1.5 && {
|
|
137
|
+
willChange: "transform"
|
|
138
|
+
}
|
|
139
|
+
} : {
|
|
140
|
+
position: n,
|
|
141
|
+
left: w,
|
|
142
|
+
top: m
|
|
143
|
+
};
|
|
144
|
+
}, [n, D, c.floating, s.x, s.y]);
|
|
145
|
+
return o.useMemo(() => ({
|
|
146
|
+
...s,
|
|
147
|
+
update: g,
|
|
148
|
+
refs: F,
|
|
149
|
+
elements: c,
|
|
150
|
+
floatingStyles: j
|
|
151
|
+
}), [s, g, F, c, j]);
|
|
152
|
+
}
|
|
153
|
+
const te = (e) => {
|
|
154
|
+
function t(n) {
|
|
155
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
name: "arrow",
|
|
159
|
+
options: e,
|
|
160
|
+
fn(n) {
|
|
161
|
+
const {
|
|
162
|
+
element: r,
|
|
163
|
+
padding: i
|
|
164
|
+
} = typeof e == "function" ? e(n) : e;
|
|
165
|
+
return r && t(r) ? r.current != null ? z({
|
|
166
|
+
element: r.current,
|
|
167
|
+
padding: i
|
|
168
|
+
}).fn(n) : {} : r ? z({
|
|
169
|
+
element: r,
|
|
170
|
+
padding: i
|
|
171
|
+
}).fn(n) : {};
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}, fe = (e, t) => ({
|
|
175
|
+
...J(e),
|
|
176
|
+
options: [e, t]
|
|
177
|
+
}), ie = (e, t) => ({
|
|
178
|
+
...K(e),
|
|
179
|
+
options: [e, t]
|
|
180
|
+
}), se = (e, t) => ({
|
|
181
|
+
...X(e),
|
|
182
|
+
options: [e, t]
|
|
183
|
+
}), ue = (e, t) => ({
|
|
184
|
+
...N(e),
|
|
185
|
+
options: [e, t]
|
|
186
|
+
}), le = (e, t) => ({
|
|
187
|
+
...Q(e),
|
|
188
|
+
options: [e, t]
|
|
189
|
+
}), ce = (e, t) => ({
|
|
190
|
+
...T(e),
|
|
191
|
+
options: [e, t]
|
|
192
|
+
}), ae = (e, t) => ({
|
|
193
|
+
...te(e),
|
|
194
|
+
options: [e, t]
|
|
195
|
+
});
|
|
196
|
+
export {
|
|
197
|
+
ae as arrow,
|
|
198
|
+
pe as autoUpdate,
|
|
199
|
+
I as computePosition,
|
|
200
|
+
ge as detectOverflow,
|
|
201
|
+
ue as flip,
|
|
202
|
+
ce as hide,
|
|
203
|
+
se as limitShift,
|
|
204
|
+
fe as offset,
|
|
205
|
+
ye as platform,
|
|
206
|
+
ie as shift,
|
|
207
|
+
le as size,
|
|
208
|
+
oe as useFloating
|
|
209
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=["top","right","bottom","left"],f=Math.min,p=Math.max,O=Math.round,S=Math.floor,y=t=>({x:t,y:t}),M={left:"right",right:"left",bottom:"top",top:"bottom"},j={start:"end",end:"start"};function w(t,e,n){return p(t,f(e,n))}function C(t,e){return typeof t=="function"?t(e):t}function l(t){return t.split("-")[0]}function a(t){return t.split("-")[1]}function d(t){return t==="x"?"y":"x"}function h(t){return t==="y"?"height":"width"}const L=new Set(["top","bottom"]);function x(t){return L.has(l(t))?"y":"x"}function A(t){return d(x(t))}function T(t,e,n){n===void 0&&(n=!1);const r=a(t),i=A(t),o=h(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=g(s)),[s,g(s)]}function E(t){const e=g(t);return[c(t),e,c(e)]}function c(t){return t.replace(/start|end/g,e=>j[e])}const m=["left","right"],u=["right","left"],R=["top","bottom"],v=["bottom","top"];function k(t,e,n){switch(t){case"top":case"bottom":return n?e?u:m:e?m:u;case"left":case"right":return e?R:v;default:return[]}}function q(t,e,n,r){const i=a(t);let o=k(l(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(c)))),o}function g(t){return t.replace(/left|right|bottom|top/g,e=>M[e])}function b(t){return{top:0,right:0,bottom:0,left:0,...t}}function z(t){return typeof t!="number"?b(t):{top:t,right:t,bottom:t,left:t}}function B(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}exports.clamp=w;exports.createCoords=y;exports.evaluate=C;exports.expandPaddingObject=b;exports.floor=S;exports.getAlignment=a;exports.getAlignmentAxis=A;exports.getAlignmentSides=T;exports.getAxisLength=h;exports.getExpandedPlacements=E;exports.getOppositeAlignmentPlacement=c;exports.getOppositeAxis=d;exports.getOppositeAxisPlacements=q;exports.getOppositePlacement=g;exports.getPaddingObject=z;exports.getSide=l;exports.getSideAxis=x;exports.max=p;exports.min=f;exports.rectToClientRect=B;exports.round=O;exports.sides=P;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(){return typeof window<"u"}function c(e){return d(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function N(e){var t;return(t=(d(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function d(e){return s()?e instanceof Node||e instanceof i(e).Node:!1}function m(e){return s()?e instanceof Element||e instanceof i(e).Element:!1}function w(e){return s()?e instanceof HTMLElement||e instanceof i(e).HTMLElement:!1}function u(e){return!s()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof i(e).ShadowRoot}const C=new Set(["inline","contents"]);function p(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!C.has(r)}const D=new Set(["table","td","th"]);function k(e){return D.has(c(e))}const O=[":popover-open",":modal"];function h(e){return O.some(t=>{try{return e.matches(t)}catch{return!1}})}const A=["transform","translate","scale","rotate","perspective"],B=["transform","translate","scale","rotate","perspective","filter"],M=["paint","layout","strict","content"];function E(e){const t=T(),n=m(e)?y(e):e;return A.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||B.some(o=>(n.willChange||"").includes(o))||M.some(o=>(n.contain||"").includes(o))}function P(e){let t=l(e);for(;w(t)&&!g(t);){if(E(t))return t;if(h(t))return null;t=l(t)}return null}function T(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R=new Set(["html","body","#document"]);function g(e){return R.has(c(e))}function y(e){return i(e).getComputedStyle(e)}function V(e){return m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function l(e){if(c(e)==="html")return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||N(e);return u(t)?t.host:t}function S(e){const t=l(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:w(t)&&p(t)?t:S(t)}function f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=S(e),L=r===((o=e.ownerDocument)==null?void 0:o.body),a=i(r);if(L){const b=v(a);return t.concat(a,a.visualViewport||[],p(r)?r:[],b&&n?f(b):[])}return t.concat(r,f(r,[],n))}function v(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}exports.getComputedStyle=y;exports.getContainingBlock=P;exports.getDocumentElement=N;exports.getFrameElement=v;exports.getNearestOverflowAncestor=S;exports.getNodeName=c;exports.getNodeScroll=V;exports.getOverflowAncestors=f;exports.getParentNode=l;exports.getWindow=i;exports.isContainingBlock=E;exports.isElement=m;exports.isHTMLElement=w;exports.isLastTraversableNode=g;exports.isNode=d;exports.isOverflowElement=p;exports.isShadowRoot=u;exports.isTableElement=k;exports.isTopLayer=h;exports.isWebKit=T;
|