@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,97 @@
|
|
|
1
|
+
import { ignoreFocusEvent as k } from "./utils.js";
|
|
2
|
+
import { getOwnerWindow as a, getOwnerDocument as c } from "../../utils/dist/domHelpers.js";
|
|
3
|
+
import { openLink as E } from "../../utils/dist/openLink.js";
|
|
4
|
+
import { isMac as M } from "../../utils/dist/platform.js";
|
|
5
|
+
import { isVirtualClick as h } from "../../utils/dist/isVirtualEvent.js";
|
|
6
|
+
import { useEffect as x } from "react";
|
|
7
|
+
let f = null;
|
|
8
|
+
const l = /* @__PURE__ */ new Set();
|
|
9
|
+
let d = /* @__PURE__ */ new Map(), i = !1, b = !1;
|
|
10
|
+
const H = {
|
|
11
|
+
Tab: !0,
|
|
12
|
+
Escape: !0
|
|
13
|
+
};
|
|
14
|
+
function p(t, o) {
|
|
15
|
+
for (let e of l) e(t, o);
|
|
16
|
+
}
|
|
17
|
+
function O(t) {
|
|
18
|
+
return !(t.metaKey || !M() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
19
|
+
}
|
|
20
|
+
function u(t) {
|
|
21
|
+
i = !0, !E.isOpening && O(t) && (f = "keyboard", p("keyboard", t));
|
|
22
|
+
}
|
|
23
|
+
function r(t) {
|
|
24
|
+
f = "pointer", "pointerType" in t && t.pointerType, (t.type === "mousedown" || t.type === "pointerdown") && (i = !0, p("pointer", t));
|
|
25
|
+
}
|
|
26
|
+
function m(t) {
|
|
27
|
+
!E.isOpening && h(t) && (i = !0, f = "virtual");
|
|
28
|
+
}
|
|
29
|
+
function L(t) {
|
|
30
|
+
t.target === window || t.target === document || k || !t.isTrusted || (!i && !b && (f = "virtual", p("virtual", t)), i = !1, b = !1);
|
|
31
|
+
}
|
|
32
|
+
function y() {
|
|
33
|
+
i = !1, b = !0;
|
|
34
|
+
}
|
|
35
|
+
function $(t) {
|
|
36
|
+
if (typeof window > "u" || typeof document > "u" || d.get(a(t))) return;
|
|
37
|
+
const o = a(t), e = c(t);
|
|
38
|
+
let n = o.HTMLElement.prototype.focus;
|
|
39
|
+
o.HTMLElement.prototype.focus = function() {
|
|
40
|
+
i = !0, n.apply(this, arguments);
|
|
41
|
+
}, e.addEventListener("keydown", u, !0), e.addEventListener("keyup", u, !0), e.addEventListener("click", m, !0), o.addEventListener("focus", L, !0), o.addEventListener("blur", y, !1), typeof PointerEvent < "u" ? (e.addEventListener("pointerdown", r, !0), e.addEventListener("pointermove", r, !0), e.addEventListener("pointerup", r, !0)) : process.env.NODE_ENV === "test" && (e.addEventListener("mousedown", r, !0), e.addEventListener("mousemove", r, !0), e.addEventListener("mouseup", r, !0)), o.addEventListener("beforeunload", () => {
|
|
42
|
+
w(t);
|
|
43
|
+
}, {
|
|
44
|
+
once: !0
|
|
45
|
+
}), d.set(o, {
|
|
46
|
+
focus: n
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const w = (t, o) => {
|
|
50
|
+
const e = a(t), n = c(t);
|
|
51
|
+
o && n.removeEventListener("DOMContentLoaded", o), d.has(e) && (e.HTMLElement.prototype.focus = d.get(e).focus, n.removeEventListener("keydown", u, !0), n.removeEventListener("keyup", u, !0), n.removeEventListener("click", m, !0), e.removeEventListener("focus", L, !0), e.removeEventListener("blur", y, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", r, !0), n.removeEventListener("pointermove", r, !0), n.removeEventListener("pointerup", r, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", r, !0), n.removeEventListener("mousemove", r, !0), n.removeEventListener("mouseup", r, !0)), d.delete(e));
|
|
52
|
+
};
|
|
53
|
+
function F(t) {
|
|
54
|
+
const o = c(t);
|
|
55
|
+
let e;
|
|
56
|
+
return o.readyState !== "loading" ? $(t) : (e = () => {
|
|
57
|
+
$(t);
|
|
58
|
+
}, o.addEventListener("DOMContentLoaded", e)), () => w(t, e);
|
|
59
|
+
}
|
|
60
|
+
typeof document < "u" && F();
|
|
61
|
+
function I() {
|
|
62
|
+
return f !== "pointer";
|
|
63
|
+
}
|
|
64
|
+
const K = /* @__PURE__ */ new Set([
|
|
65
|
+
"checkbox",
|
|
66
|
+
"radio",
|
|
67
|
+
"range",
|
|
68
|
+
"color",
|
|
69
|
+
"file",
|
|
70
|
+
"image",
|
|
71
|
+
"button",
|
|
72
|
+
"submit",
|
|
73
|
+
"reset"
|
|
74
|
+
]);
|
|
75
|
+
function C(t, o, e) {
|
|
76
|
+
let n = c(e?.target);
|
|
77
|
+
const s = typeof window < "u" ? a(e?.target).HTMLInputElement : HTMLInputElement, v = typeof window < "u" ? a(e?.target).HTMLTextAreaElement : HTMLTextAreaElement, g = typeof window < "u" ? a(e?.target).HTMLElement : HTMLElement, T = typeof window < "u" ? a(e?.target).KeyboardEvent : KeyboardEvent;
|
|
78
|
+
return t = t || n.activeElement instanceof s && !K.has(n.activeElement.type) || n.activeElement instanceof v || n.activeElement instanceof g && n.activeElement.isContentEditable, !(t && o === "keyboard" && e instanceof T && !H[e.key]);
|
|
79
|
+
}
|
|
80
|
+
function _(t, o, e) {
|
|
81
|
+
$(), x(() => {
|
|
82
|
+
if (e?.enabled === !1) return;
|
|
83
|
+
let n = (s, v) => {
|
|
84
|
+
C(!!e?.isTextInput, s, v) && t(I());
|
|
85
|
+
};
|
|
86
|
+
return l.add(n), () => {
|
|
87
|
+
l.delete(n);
|
|
88
|
+
};
|
|
89
|
+
}, o);
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
F as addWindowFocusTracking,
|
|
93
|
+
l as changeHandlers,
|
|
94
|
+
d as hasSetupGlobalListeners,
|
|
95
|
+
I as isFocusVisible,
|
|
96
|
+
_ as useFocusVisibleListener
|
|
97
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./utils.cjs"),l=require("react"),r=require("../../utils/dist/DOMFunctions.cjs"),m=require("../../utils/dist/domHelpers.cjs"),C=require("../../utils/dist/useGlobalListeners.cjs");function p(b){let{isDisabled:v,onBlurWithin:s,onFocusWithin:o,onFocusWithinChange:t}=b,n=l.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:f}=C.useGlobalListeners(),i=l.useCallback(e=>{r.nodeContains(e.currentTarget,e.target)&&n.current.isFocusWithin&&!r.nodeContains(e.currentTarget,e.relatedTarget)&&(n.current.isFocusWithin=!1,f(),s&&s(e),t&&t(!1))},[s,t,n,f]),d=c.useSyntheticBlurEvent(i),W=l.useCallback(e=>{if(!r.nodeContains(e.currentTarget,e.target))return;const u=m.getOwnerDocument(e.target),T=r.getActiveElement(u);if(!n.current.isFocusWithin&&T===r.getEventTarget(e.nativeEvent)){o&&o(e),t&&t(!0),n.current.isFocusWithin=!0,d(e);let g=e.currentTarget;a(u,"focus",h=>{if(n.current.isFocusWithin&&!r.nodeContains(g,h.target)){let F=new u.defaultView.FocusEvent("blur",{relatedTarget:h.target});c.setEventTarget(F,g);let E=c.createSyntheticEvent(F);i(E)}},{capture:!0})}},[o,t,d,a,i]);return v?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:W,onBlur:i}}}exports.useFocusWithin=p;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useSyntheticBlurEvent as W, setEventTarget as v, createSyntheticEvent as x } from "./utils.js";
|
|
2
|
+
import { useRef as E, useCallback as b } from "react";
|
|
3
|
+
import { nodeContains as i, getActiveElement as T, getEventTarget as B } from "../../utils/dist/DOMFunctions.js";
|
|
4
|
+
import { getOwnerDocument as G } from "../../utils/dist/domHelpers.js";
|
|
5
|
+
import { useGlobalListeners as L } from "../../utils/dist/useGlobalListeners.js";
|
|
6
|
+
function S(h) {
|
|
7
|
+
let { isDisabled: g, onBlurWithin: o, onFocusWithin: a, onFocusWithinChange: t } = h, r = E({
|
|
8
|
+
isFocusWithin: !1
|
|
9
|
+
}), { addGlobalListener: s, removeAllGlobalListeners: u } = L(), n = b((e) => {
|
|
10
|
+
i(e.currentTarget, e.target) && r.current.isFocusWithin && !i(e.currentTarget, e.relatedTarget) && (r.current.isFocusWithin = !1, u(), o && o(e), t && t(!1));
|
|
11
|
+
}, [
|
|
12
|
+
o,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
u
|
|
16
|
+
]), f = W(n), p = b((e) => {
|
|
17
|
+
if (!i(e.currentTarget, e.target)) return;
|
|
18
|
+
const c = G(e.target), m = T(c);
|
|
19
|
+
if (!r.current.isFocusWithin && m === B(e.nativeEvent)) {
|
|
20
|
+
a && a(e), t && t(!0), r.current.isFocusWithin = !0, f(e);
|
|
21
|
+
let l = e.currentTarget;
|
|
22
|
+
s(c, "focus", (d) => {
|
|
23
|
+
if (r.current.isFocusWithin && !i(l, d.target)) {
|
|
24
|
+
let $ = new c.defaultView.FocusEvent("blur", {
|
|
25
|
+
relatedTarget: d.target
|
|
26
|
+
});
|
|
27
|
+
v($, l);
|
|
28
|
+
let F = x($);
|
|
29
|
+
n(F);
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
capture: !0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}, [
|
|
36
|
+
a,
|
|
37
|
+
t,
|
|
38
|
+
f,
|
|
39
|
+
s,
|
|
40
|
+
n
|
|
41
|
+
]);
|
|
42
|
+
return g ? {
|
|
43
|
+
focusWithinProps: {
|
|
44
|
+
// These cannot be null, that would conflict in mergeProps
|
|
45
|
+
onFocus: void 0,
|
|
46
|
+
onBlur: void 0
|
|
47
|
+
}
|
|
48
|
+
} : {
|
|
49
|
+
focusWithinProps: {
|
|
50
|
+
onFocus: p,
|
|
51
|
+
onBlur: n
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
S as useFocusWithin
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../utils/dist/DOMFunctions.cjs"),P=require("../../utils/dist/domHelpers.cjs"),M=require("../../utils/dist/useGlobalListeners.cjs"),u=require("react");let v=!1,d=0;function E(){v=!0,setTimeout(()=>{v=!1},50)}function $(f){f.pointerType==="touch"&&E()}function G(){if(!(typeof document>"u"))return d===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",$):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",E)),d++,()=>{d--,!(d>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",E))}}function C(f){let{onHoverStart:g,onHoverChange:s,onHoverEnd:p,isDisabled:r}=f,[T,m]=u.useState(!1),t=u.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;u.useEffect(G,[]);let{addGlobalListener:H,removeAllGlobalListeners:b}=M.useGlobalListeners(),{hoverProps:y,triggerHoverEnd:L}=u.useMemo(()=>{let h=(e,n)=>{if(t.pointerType=n,r||n==="touch"||t.isHovered||!l.nodeContains(e.currentTarget,e.target))return;t.isHovered=!0;let i=e.currentTarget;t.target=i,H(P.getOwnerDocument(e.target),"pointerover",c=>{t.isHovered&&t.target&&!l.nodeContains(t.target,c.target)&&a(c,c.pointerType)},{capture:!0}),g&&g({type:"hoverstart",target:i,pointerType:n}),s&&s(!0),m(!0)},a=(e,n)=>{let i=t.target;t.pointerType="",t.target=null,!(n==="touch"||!t.isHovered||!i)&&(t.isHovered=!1,b(),p&&p({type:"hoverend",target:i,pointerType:n}),s&&s(!1),m(!1))},o={};return typeof PointerEvent<"u"?(o.onPointerEnter=e=>{v&&e.pointerType==="mouse"||h(e,e.pointerType)},o.onPointerLeave=e=>{!r&&l.nodeContains(e.currentTarget,e.target)&&a(e,e.pointerType)}):process.env.NODE_ENV==="test"&&(o.onTouchStart=()=>{t.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=e=>{!t.ignoreEmulatedMouseEvents&&!v&&h(e,"mouse"),t.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!r&&l.nodeContains(e.currentTarget,e.target)&&a(e,"mouse")}),{hoverProps:o,triggerHoverEnd:a}},[g,s,p,r,t,H,b]);return u.useEffect(()=>{r&&L({currentTarget:t.target},t.pointerType)},[r]),{hoverProps:y,isHovered:T}}exports.useHover=C;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { nodeContains as u } from "../../utils/dist/DOMFunctions.js";
|
|
2
|
+
import { getOwnerDocument as P } from "../../utils/dist/domHelpers.js";
|
|
3
|
+
import { useGlobalListeners as M } from "../../utils/dist/useGlobalListeners.js";
|
|
4
|
+
import { useState as G, useRef as D, useEffect as H, useMemo as N } from "react";
|
|
5
|
+
let f = !1, d = 0;
|
|
6
|
+
function E() {
|
|
7
|
+
f = !0, setTimeout(() => {
|
|
8
|
+
f = !1;
|
|
9
|
+
}, 50);
|
|
10
|
+
}
|
|
11
|
+
function h(l) {
|
|
12
|
+
l.pointerType === "touch" && E();
|
|
13
|
+
}
|
|
14
|
+
function x() {
|
|
15
|
+
if (!(typeof document > "u"))
|
|
16
|
+
return d === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", h) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", E)), d++, () => {
|
|
17
|
+
d--, !(d > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", h) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", E));
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function _(l) {
|
|
21
|
+
let { onHoverStart: v, onHoverChange: s, onHoverEnd: p, isDisabled: r } = l, [T, c] = G(!1), t = D({
|
|
22
|
+
isHovered: !1,
|
|
23
|
+
ignoreEmulatedMouseEvents: !1,
|
|
24
|
+
pointerType: "",
|
|
25
|
+
target: null
|
|
26
|
+
}).current;
|
|
27
|
+
H(x, []);
|
|
28
|
+
let { addGlobalListener: m, removeAllGlobalListeners: $ } = M(), { hoverProps: y, triggerHoverEnd: L } = N(() => {
|
|
29
|
+
let b = (e, n) => {
|
|
30
|
+
if (t.pointerType = n, r || n === "touch" || t.isHovered || !u(e.currentTarget, e.target)) return;
|
|
31
|
+
t.isHovered = !0;
|
|
32
|
+
let i = e.currentTarget;
|
|
33
|
+
t.target = i, m(P(e.target), "pointerover", (g) => {
|
|
34
|
+
t.isHovered && t.target && !u(t.target, g.target) && a(g, g.pointerType);
|
|
35
|
+
}, {
|
|
36
|
+
capture: !0
|
|
37
|
+
}), v && v({
|
|
38
|
+
type: "hoverstart",
|
|
39
|
+
target: i,
|
|
40
|
+
pointerType: n
|
|
41
|
+
}), s && s(!0), c(!0);
|
|
42
|
+
}, a = (e, n) => {
|
|
43
|
+
let i = t.target;
|
|
44
|
+
t.pointerType = "", t.target = null, !(n === "touch" || !t.isHovered || !i) && (t.isHovered = !1, $(), p && p({
|
|
45
|
+
type: "hoverend",
|
|
46
|
+
target: i,
|
|
47
|
+
pointerType: n
|
|
48
|
+
}), s && s(!1), c(!1));
|
|
49
|
+
}, o = {};
|
|
50
|
+
return typeof PointerEvent < "u" ? (o.onPointerEnter = (e) => {
|
|
51
|
+
f && e.pointerType === "mouse" || b(e, e.pointerType);
|
|
52
|
+
}, o.onPointerLeave = (e) => {
|
|
53
|
+
!r && u(e.currentTarget, e.target) && a(e, e.pointerType);
|
|
54
|
+
}) : process.env.NODE_ENV === "test" && (o.onTouchStart = () => {
|
|
55
|
+
t.ignoreEmulatedMouseEvents = !0;
|
|
56
|
+
}, o.onMouseEnter = (e) => {
|
|
57
|
+
!t.ignoreEmulatedMouseEvents && !f && b(e, "mouse"), t.ignoreEmulatedMouseEvents = !1;
|
|
58
|
+
}, o.onMouseLeave = (e) => {
|
|
59
|
+
!r && u(e.currentTarget, e.target) && a(e, "mouse");
|
|
60
|
+
}), {
|
|
61
|
+
hoverProps: o,
|
|
62
|
+
triggerHoverEnd: a
|
|
63
|
+
};
|
|
64
|
+
}, [
|
|
65
|
+
v,
|
|
66
|
+
s,
|
|
67
|
+
p,
|
|
68
|
+
r,
|
|
69
|
+
t,
|
|
70
|
+
m,
|
|
71
|
+
$
|
|
72
|
+
]);
|
|
73
|
+
return H(() => {
|
|
74
|
+
r && L({
|
|
75
|
+
currentTarget: t.target
|
|
76
|
+
}, t.pointerType);
|
|
77
|
+
}, [
|
|
78
|
+
r
|
|
79
|
+
]), {
|
|
80
|
+
hoverProps: y,
|
|
81
|
+
isHovered: T
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
_ as useHover
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../utils/dist/useLayoutEffect.cjs"),a=require("react");function o(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function i(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function d(t){let e=a.useRef({isFocused:!1,observer:null});return l.useLayoutEffect(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),a.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let n=r.target,s=c=>{if(e.current.isFocused=!1,n.disabled){let u=o(c);t?.(u)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};n.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&n.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let u=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),e.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[t])}let b=!1;exports.createSyntheticEvent=o;exports.ignoreFocusEvent=b;exports.setEventTarget=i;exports.useSyntheticBlurEvent=d;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useLayoutEffect as o } from "../../utils/dist/useLayoutEffect.js";
|
|
2
|
+
import { useRef as u, useCallback as d } from "react";
|
|
3
|
+
function l(t) {
|
|
4
|
+
let e = t;
|
|
5
|
+
return e.nativeEvent = t, e.isDefaultPrevented = () => e.defaultPrevented, e.isPropagationStopped = () => e.cancelBubble, e.persist = () => {
|
|
6
|
+
}, e;
|
|
7
|
+
}
|
|
8
|
+
function v(t, e) {
|
|
9
|
+
Object.defineProperty(t, "target", {
|
|
10
|
+
value: e
|
|
11
|
+
}), Object.defineProperty(t, "currentTarget", {
|
|
12
|
+
value: e
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function f(t) {
|
|
16
|
+
let e = u({
|
|
17
|
+
isFocused: !1,
|
|
18
|
+
observer: null
|
|
19
|
+
});
|
|
20
|
+
return o(() => {
|
|
21
|
+
const r = e.current;
|
|
22
|
+
return () => {
|
|
23
|
+
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
24
|
+
};
|
|
25
|
+
}, []), d((r) => {
|
|
26
|
+
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
27
|
+
e.current.isFocused = !0;
|
|
28
|
+
let n = r.target, s = (c) => {
|
|
29
|
+
if (e.current.isFocused = !1, n.disabled) {
|
|
30
|
+
let a = l(c);
|
|
31
|
+
t?.(a);
|
|
32
|
+
}
|
|
33
|
+
e.current.observer && (e.current.observer.disconnect(), e.current.observer = null);
|
|
34
|
+
};
|
|
35
|
+
n.addEventListener("focusout", s, {
|
|
36
|
+
once: !0
|
|
37
|
+
}), e.current.observer = new MutationObserver(() => {
|
|
38
|
+
if (e.current.isFocused && n.disabled) {
|
|
39
|
+
var c;
|
|
40
|
+
(c = e.current.observer) === null || c === void 0 || c.disconnect();
|
|
41
|
+
let a = n === document.activeElement ? null : document.activeElement;
|
|
42
|
+
n.dispatchEvent(new FocusEvent("blur", {
|
|
43
|
+
relatedTarget: a
|
|
44
|
+
})), n.dispatchEvent(new FocusEvent("focusout", {
|
|
45
|
+
bubbles: !0,
|
|
46
|
+
relatedTarget: a
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
}), e.current.observer.observe(n, {
|
|
50
|
+
attributes: !0,
|
|
51
|
+
attributeFilter: [
|
|
52
|
+
"disabled"
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}, [
|
|
57
|
+
t
|
|
58
|
+
]);
|
|
59
|
+
}
|
|
60
|
+
let p = !1;
|
|
61
|
+
export {
|
|
62
|
+
l as createSyntheticEvent,
|
|
63
|
+
p as ignoreFocusEvent,
|
|
64
|
+
v as setEventTarget,
|
|
65
|
+
f as useSyntheticBlurEvent
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./domHelpers.cjs"),r=require("../../../@react-stately/flags/dist/import.cjs");function i(t,o){if(!r.shadowDOM())return o&&t?t.contains(o):!1;if(!t||!o)return!1;let e=o;for(;e!==null;){if(e===t)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:a.isShadowRoot(e)?e=e.host:e=e.parentNode}return!1}const n=(t=document)=>{var o;if(!r.shadowDOM())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&(!((o=e.shadowRoot)===null||o===void 0)&&o.activeElement);)e=e.shadowRoot.activeElement;return e};function s(t){return r.shadowDOM()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}exports.getActiveElement=n;exports.getEventTarget=s;exports.nodeContains=i;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isShadowRoot as f } from "./domHelpers.js";
|
|
2
|
+
import { shadowDOM as o } from "../../../@react-stately/flags/dist/import.js";
|
|
3
|
+
function n(t, a) {
|
|
4
|
+
if (!o()) return a && t ? t.contains(a) : !1;
|
|
5
|
+
if (!t || !a) return !1;
|
|
6
|
+
let e = a;
|
|
7
|
+
for (; e !== null; ) {
|
|
8
|
+
if (e === t) return !0;
|
|
9
|
+
e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
|
|
10
|
+
}
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
const s = (t = document) => {
|
|
14
|
+
var a;
|
|
15
|
+
if (!o()) return t.activeElement;
|
|
16
|
+
let e = t.activeElement;
|
|
17
|
+
for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
|
|
18
|
+
return e;
|
|
19
|
+
};
|
|
20
|
+
function d(t) {
|
|
21
|
+
return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
s as getActiveElement,
|
|
25
|
+
d as getEventTarget,
|
|
26
|
+
n as nodeContains
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=o=>{var n;return(n=o?.ownerDocument)!==null&&n!==void 0?n:document},e=o=>o&&"window"in o&&o.window===o?o:t(o).defaultView||window;function d(o){return o!==null&&typeof o=="object"&&"nodeType"in o&&typeof o.nodeType=="number"}function c(o){return d(o)&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in o}exports.getOwnerDocument=t;exports.getOwnerWindow=e;exports.isShadowRoot=c;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const t = (o) => {
|
|
2
|
+
var n;
|
|
3
|
+
return (n = o?.ownerDocument) !== null && n !== void 0 ? n : document;
|
|
4
|
+
}, e = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
|
|
5
|
+
function d(o) {
|
|
6
|
+
return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
|
|
7
|
+
}
|
|
8
|
+
function c(o) {
|
|
9
|
+
return d(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
t as getOwnerDocument,
|
|
13
|
+
e as getOwnerWindow,
|
|
14
|
+
c as isShadowRoot
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function c(l){if(n())l.focus({preventScroll:!0});else{let e=s(l);l.focus(),f(e)}}let r=null;function n(){if(r==null){r=!1;try{document.createElement("div").focus({get preventScroll(){return r=!0,!0}})}catch{}}return r}function s(l){let e=l.parentNode,o=[],t=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==t;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&o.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return t instanceof HTMLElement&&o.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),o}function f(l){for(let{element:e,scrollTop:o,scrollLeft:t}of l)e.scrollTop=o,e.scrollLeft=t}exports.focusWithoutScrolling=c;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function f(l) {
|
|
2
|
+
if (c()) l.focus({
|
|
3
|
+
preventScroll: !0
|
|
4
|
+
});
|
|
5
|
+
else {
|
|
6
|
+
let e = n(l);
|
|
7
|
+
l.focus(), s(e);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
let r = null;
|
|
11
|
+
function c() {
|
|
12
|
+
if (r == null) {
|
|
13
|
+
r = !1;
|
|
14
|
+
try {
|
|
15
|
+
document.createElement("div").focus({
|
|
16
|
+
get preventScroll() {
|
|
17
|
+
return r = !0, !0;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
function n(l) {
|
|
26
|
+
let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
|
|
27
|
+
for (; e instanceof HTMLElement && e !== t; )
|
|
28
|
+
(e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
|
|
29
|
+
element: e,
|
|
30
|
+
scrollTop: e.scrollTop,
|
|
31
|
+
scrollLeft: e.scrollLeft
|
|
32
|
+
}), e = e.parentNode;
|
|
33
|
+
return t instanceof HTMLElement && o.push({
|
|
34
|
+
element: t,
|
|
35
|
+
scrollTop: t.scrollTop,
|
|
36
|
+
scrollLeft: t.scrollLeft
|
|
37
|
+
}), o;
|
|
38
|
+
}
|
|
39
|
+
function s(l) {
|
|
40
|
+
for (let { element: e, scrollTop: o, scrollLeft: t } of l)
|
|
41
|
+
e.scrollTop = o, e.scrollLeft = t;
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
f as focusWithoutScrolling
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./platform.cjs");function t(r){return r.pointerType===""&&r.isTrusted?!0:i.isAndroid()&&r.pointerType?r.type==="click"&&r.buttons===1:r.detail===0&&!r.pointerType}exports.isVirtualClick=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./focusWithoutScrolling.cjs"),e=require("./platform.cjs");require("react");function t(i,y,c=!0){var n,l;let{metaKey:r,ctrlKey:s,altKey:o,shiftKey:a}=y;e.isFirefox()&&(!((l=window.event)===null||l===void 0||(n=l.type)===null||n===void 0)&&n.startsWith("key"))&&i.target==="_blank"&&(e.isMac()?r=!0:s=!0);let u=e.isWebKit()&&e.isMac()&&!e.isIPad()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:s,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:s,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});t.isOpening=c,d.focusWithoutScrolling(i),i.dispatchEvent(u),t.isOpening=!1}t.isOpening=!1;exports.openLink=t;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { focusWithoutScrolling as f } from "./focusWithoutScrolling.js";
|
|
2
|
+
import { isFirefox as p, isWebKit as K, isMac as l, isIPad as $ } from "./platform.js";
|
|
3
|
+
import "react";
|
|
4
|
+
function o(e, c, d = !0) {
|
|
5
|
+
var t, a;
|
|
6
|
+
let { metaKey: i, ctrlKey: n, altKey: s, shiftKey: r } = c;
|
|
7
|
+
p() && (!((a = window.event) === null || a === void 0 || (t = a.type) === null || t === void 0) && t.startsWith("key")) && e.target === "_blank" && (l() ? i = !0 : n = !0);
|
|
8
|
+
let y = K() && l() && !$() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
9
|
+
keyIdentifier: "Enter",
|
|
10
|
+
metaKey: i,
|
|
11
|
+
ctrlKey: n,
|
|
12
|
+
altKey: s,
|
|
13
|
+
shiftKey: r
|
|
14
|
+
}) : new MouseEvent("click", {
|
|
15
|
+
metaKey: i,
|
|
16
|
+
ctrlKey: n,
|
|
17
|
+
altKey: s,
|
|
18
|
+
shiftKey: r,
|
|
19
|
+
detail: 1,
|
|
20
|
+
bubbles: !0,
|
|
21
|
+
cancelable: !0
|
|
22
|
+
});
|
|
23
|
+
o.isOpening = d, f(e), e.dispatchEvent(y), o.isOpening = !1;
|
|
24
|
+
}
|
|
25
|
+
o.isOpening = !1;
|
|
26
|
+
export {
|
|
27
|
+
o as openLink
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t){var e;if(typeof window>"u"||window.navigator==null)return!1;let i=(e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands;return Array.isArray(i)&&i.some($=>t.test($.brand))||t.test(window.navigator.userAgent)}function a(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function n(t){if(process.env.NODE_ENV==="test")return t;let e=null;return()=>(e==null&&(e=t()),e)}const o=n(function(){return a(/^Mac/i)}),c=n(function(){return a(/^iPhone/i)}),u=n(function(){return a(/^iPad/i)||o()&&navigator.maxTouchPoints>1}),s=n(function(){return c()||u()});n(function(){return o()||s()});const f=n(function(){return r(/AppleWebKit/i)&&!d()}),d=n(function(){return r(/Chrome/i)}),l=n(function(){return r(/Android/i)}),v=n(function(){return r(/Firefox/i)});exports.isAndroid=l;exports.isChrome=d;exports.isFirefox=v;exports.isIOS=s;exports.isIPad=u;exports.isIPhone=c;exports.isMac=o;exports.isWebKit=f;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function a(t) {
|
|
2
|
+
var n;
|
|
3
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
4
|
+
let o = (n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.brands;
|
|
5
|
+
return Array.isArray(o) && o.some((s) => t.test(s.brand)) || t.test(window.navigator.userAgent);
|
|
6
|
+
}
|
|
7
|
+
function r(t) {
|
|
8
|
+
var n;
|
|
9
|
+
return typeof window < "u" && window.navigator != null ? t.test(((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.platform) || window.navigator.platform) : !1;
|
|
10
|
+
}
|
|
11
|
+
function e(t) {
|
|
12
|
+
if (process.env.NODE_ENV === "test") return t;
|
|
13
|
+
let n = null;
|
|
14
|
+
return () => (n == null && (n = t()), n);
|
|
15
|
+
}
|
|
16
|
+
const i = e(function() {
|
|
17
|
+
return r(/^Mac/i);
|
|
18
|
+
}), c = e(function() {
|
|
19
|
+
return r(/^iPhone/i);
|
|
20
|
+
}), u = e(function() {
|
|
21
|
+
return r(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
22
|
+
i() && navigator.maxTouchPoints > 1;
|
|
23
|
+
}), d = e(function() {
|
|
24
|
+
return c() || u();
|
|
25
|
+
});
|
|
26
|
+
e(function() {
|
|
27
|
+
return i() || d();
|
|
28
|
+
});
|
|
29
|
+
const f = e(function() {
|
|
30
|
+
return a(/AppleWebKit/i) && !$();
|
|
31
|
+
}), $ = e(function() {
|
|
32
|
+
return a(/Chrome/i);
|
|
33
|
+
}), l = e(function() {
|
|
34
|
+
return a(/Android/i);
|
|
35
|
+
}), w = e(function() {
|
|
36
|
+
return a(/Firefox/i);
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
l as isAndroid,
|
|
40
|
+
$ as isChrome,
|
|
41
|
+
w as isFirefox,
|
|
42
|
+
d as isIOS,
|
|
43
|
+
u as isIPad,
|
|
44
|
+
c as isIPhone,
|
|
45
|
+
i as isMac,
|
|
46
|
+
f as isWebKit
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");function b(){let a=o.useRef(new Map),d=o.useCallback((e,l,t,r)=>{let n=r?.once?(...c)=>{a.current.delete(t),t(...c)}:t;a.current.set(t,{type:l,eventTarget:e,fn:n,options:r}),e.addEventListener(l,n,r)},[]),s=o.useCallback((e,l,t,r)=>{var n;let c=((n=a.current.get(t))===null||n===void 0?void 0:n.fn)||t;e.removeEventListener(l,c,r),a.current.delete(t)},[]),u=o.useCallback(()=>{a.current.forEach((e,l)=>{s(e.eventTarget,e.type,l,e.options)})},[s]);return o.useEffect(()=>u,[u]),{addGlobalListener:d,removeGlobalListener:s,removeAllGlobalListeners:u}}exports.useGlobalListeners=b;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useRef as c, useCallback as f, useEffect as b } from "react";
|
|
2
|
+
function L() {
|
|
3
|
+
let o = c(/* @__PURE__ */ new Map()), u = f((e, l, r, t) => {
|
|
4
|
+
let n = t?.once ? (...d) => {
|
|
5
|
+
o.current.delete(r), r(...d);
|
|
6
|
+
} : r;
|
|
7
|
+
o.current.set(r, {
|
|
8
|
+
type: l,
|
|
9
|
+
eventTarget: e,
|
|
10
|
+
fn: n,
|
|
11
|
+
options: t
|
|
12
|
+
}), e.addEventListener(l, n, t);
|
|
13
|
+
}, []), a = f((e, l, r, t) => {
|
|
14
|
+
var n;
|
|
15
|
+
let d = ((n = o.current.get(r)) === null || n === void 0 ? void 0 : n.fn) || r;
|
|
16
|
+
e.removeEventListener(l, d, t), o.current.delete(r);
|
|
17
|
+
}, []), s = f(() => {
|
|
18
|
+
o.current.forEach((e, l) => {
|
|
19
|
+
a(e.eventTarget, e.type, l, e.options);
|
|
20
|
+
});
|
|
21
|
+
}, [
|
|
22
|
+
a
|
|
23
|
+
]);
|
|
24
|
+
return b(() => s, [
|
|
25
|
+
s
|
|
26
|
+
]), {
|
|
27
|
+
addGlobalListener: u,
|
|
28
|
+
removeGlobalListener: a,
|
|
29
|
+
removeAllGlobalListeners: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
L as useGlobalListeners
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=typeof document<"u"?e.useLayoutEffect:()=>{};exports.useLayoutEffect=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=!1;function t(){return e}exports.shadowDOM=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),d=require("react-dom"),e=require("../../../virtual-core/dist/esm/index.cjs");function m(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const u=m(f),s=typeof document<"u"?u.useLayoutEffect:u.useEffect;function E({useFlushSync:t=!0,...r}){const n=u.useReducer(()=>({}),{})[1],l={...r,onChange:(i,c)=>{var a;t&&c?d.flushSync(n):n(),(a=r.onChange)==null||a.call(r,i,c)}},[o]=u.useState(()=>new e.Virtualizer(l));return o.setOptions(l),s(()=>o._didMount(),[]),s(()=>o._willUpdate()),o}function b(t){return E({observeElementRect:e.observeElementRect,observeElementOffset:e.observeElementOffset,scrollToFn:e.elementScroll,...t})}exports.Virtualizer=e.Virtualizer;exports.defaultKeyExtractor=e.defaultKeyExtractor;exports.defaultRangeExtractor=e.defaultRangeExtractor;exports.elementScroll=e.elementScroll;exports.measureElement=e.measureElement;exports.observeElementOffset=e.observeElementOffset;exports.observeElementRect=e.observeElementRect;exports.useVirtualizer=b;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { flushSync as f } from "react-dom";
|
|
3
|
+
import { Virtualizer as i, elementScroll as m, observeElementOffset as d, observeElementRect as p } from "../../../virtual-core/dist/esm/index.js";
|
|
4
|
+
import { defaultKeyExtractor as g, defaultRangeExtractor as z, measureElement as O } from "../../../virtual-core/dist/esm/index.js";
|
|
5
|
+
const l = typeof document < "u" ? t.useLayoutEffect : t.useEffect;
|
|
6
|
+
function E({
|
|
7
|
+
useFlushSync: r = !0,
|
|
8
|
+
...n
|
|
9
|
+
}) {
|
|
10
|
+
const o = t.useReducer(() => ({}), {})[1], u = {
|
|
11
|
+
...n,
|
|
12
|
+
onChange: (c, s) => {
|
|
13
|
+
var a;
|
|
14
|
+
r && s ? f(o) : o(), (a = n.onChange) == null || a.call(n, c, s);
|
|
15
|
+
}
|
|
16
|
+
}, [e] = t.useState(
|
|
17
|
+
() => new i(u)
|
|
18
|
+
);
|
|
19
|
+
return e.setOptions(u), l(() => e._didMount(), []), l(() => e._willUpdate()), e;
|
|
20
|
+
}
|
|
21
|
+
function x(r) {
|
|
22
|
+
return E({
|
|
23
|
+
observeElementRect: p,
|
|
24
|
+
observeElementOffset: d,
|
|
25
|
+
scrollToFn: m,
|
|
26
|
+
...r
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
i as Virtualizer,
|
|
31
|
+
g as defaultKeyExtractor,
|
|
32
|
+
z as defaultRangeExtractor,
|
|
33
|
+
m as elementScroll,
|
|
34
|
+
O as measureElement,
|
|
35
|
+
d as observeElementOffset,
|
|
36
|
+
p as observeElementRect,
|
|
37
|
+
x as useVirtualizer
|
|
38
|
+
};
|