@easypost/easy-ui 1.0.0-alpha.12 → 1.0.0-alpha.120
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/AlertBadge/AlertBadge.d.ts +32 -0
- package/AlertBadge/AlertBadge.d.ts.map +1 -0
- package/AlertBadge/AlertBadge.stories.d.ts +10 -0
- package/AlertBadge/AlertBadge.stories.d.ts.map +1 -0
- package/AlertBadge/AlertBadge.test.d.ts +2 -0
- package/AlertBadge/AlertBadge.test.d.ts.map +1 -0
- package/AlertBadge/index.d.ts +2 -0
- package/AlertBadge/index.d.ts.map +1 -0
- package/AlertBadge/index.js +59 -0
- package/AlertBadge/index.mjs +59 -0
- package/Badge/Badge.d.ts +11 -0
- package/Badge/Badge.d.ts.map +1 -1
- package/Badge/Badge.stories.d.ts +1 -1
- package/Badge/Badge.stories.d.ts.map +1 -1
- package/Badge/index.js +47 -33
- package/Badge/index.mjs +47 -33
- package/Banner/Banner.stories.d.ts +1 -1
- package/Banner/Banner.stories.d.ts.map +1 -1
- package/Banner/index.js +23 -16
- package/Banner/index.mjs +23 -16
- package/Button/Button.d.ts +12 -10
- package/Button/Button.d.ts.map +1 -1
- package/Button/Button.stories.d.ts +12 -10
- package/Button/Button.stories.d.ts.map +1 -1
- package/Button/index.js +2 -92
- package/Button/index.mjs +2 -92
- package/Button/utilities.d.ts +4 -0
- package/Button/utilities.d.ts.map +1 -1
- package/CHANGELOG.md +856 -0
- package/Calendar/Calendar.d.ts +67 -0
- package/Calendar/Calendar.d.ts.map +1 -0
- package/Calendar/Calendar.stories.d.ts +15 -0
- package/Calendar/Calendar.stories.d.ts.map +1 -0
- package/Calendar/Calendar.test.d.ts +2 -0
- package/Calendar/Calendar.test.d.ts.map +1 -0
- package/Calendar/CalendarBase.d.ts +57 -0
- package/Calendar/CalendarBase.d.ts.map +1 -0
- package/Calendar/CalendarCell.d.ts +12 -0
- package/Calendar/CalendarCell.d.ts.map +1 -0
- package/Calendar/CalendarGrid.d.ts +9 -0
- package/Calendar/CalendarGrid.d.ts.map +1 -0
- package/Calendar/CalendarHeader.d.ts +20 -0
- package/Calendar/CalendarHeader.d.ts.map +1 -0
- package/Calendar/index.d.ts +2 -0
- package/Calendar/index.d.ts.map +1 -0
- package/Calendar/index.js +4 -0
- package/Calendar/index.mjs +4 -0
- package/Card/Card.d.ts +64 -5
- package/Card/Card.d.ts.map +1 -1
- package/Card/Card.stories.d.ts +5 -1
- package/Card/Card.stories.d.ts.map +1 -1
- package/Card/index.js +3 -84
- package/Card/index.mjs +3 -84
- package/CheckableCard/CheckableCard.d.ts +28 -0
- package/CheckableCard/CheckableCard.d.ts.map +1 -0
- package/CheckableCard/CheckableCard.stories.d.ts +7 -0
- package/CheckableCard/CheckableCard.stories.d.ts.map +1 -0
- package/CheckableCard/CheckableCard.test.d.ts +2 -0
- package/CheckableCard/CheckableCard.test.d.ts.map +1 -0
- package/CheckableCard/index.d.ts +2 -0
- package/CheckableCard/index.d.ts.map +1 -0
- package/CheckableCard/index.js +74 -0
- package/CheckableCard/index.mjs +74 -0
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/Checkbox/Checkbox.stories.d.ts +2 -1
- package/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/Checkbox/Checkbox.test.d.ts +1 -2
- package/Checkbox/Checkbox.test.d.ts.map +1 -1
- package/Checkbox/index.js +3 -231
- package/Checkbox/index.mjs +3 -215
- package/CodeBlock/CodeBlock.d.ts +6 -0
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/CodeBlock.stories.d.ts +1 -1
- package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
- package/CodeBlock/LanguageMenu.d.ts.map +1 -1
- package/CodeBlock/context.d.ts +2 -1
- package/CodeBlock/context.d.ts.map +1 -1
- package/CodeBlock/index.js +232 -211
- package/CodeBlock/index.mjs +227 -206
- package/CodeSnippet/CodeSnippet.d.ts +3 -3
- package/CodeSnippet/CodeSnippet.d.ts.map +1 -1
- package/CodeSnippet/CodeSnippet.stories.d.ts +1 -1
- package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -1
- package/CodeSnippet/SyntaxHighlighter.d.ts +7 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -1
- package/CodeSnippet/index.js +2 -9
- package/CodeSnippet/index.mjs +2 -9
- package/CodeSnippet/theme.d.ts +0 -1
- package/CodeSnippet/theme.d.ts.map +1 -1
- package/ColorPicker/ColorArea.d.ts +4 -0
- package/ColorPicker/ColorArea.d.ts.map +1 -0
- package/ColorPicker/ColorPicker.d.ts +36 -0
- package/ColorPicker/ColorPicker.d.ts.map +1 -0
- package/ColorPicker/ColorPicker.stories.d.ts +7 -0
- package/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/ColorPicker/ColorPicker.test.d.ts +2 -0
- package/ColorPicker/ColorPicker.test.d.ts.map +1 -0
- package/ColorPicker/ColorPickerInputField.d.ts +72 -0
- package/ColorPicker/ColorPickerInputField.d.ts.map +1 -0
- package/ColorPicker/ColorPickerInputField.stories.d.ts +16 -0
- package/ColorPicker/ColorPickerInputField.stories.d.ts.map +1 -0
- package/ColorPicker/ColorPickerInputField.test.d.ts +2 -0
- package/ColorPicker/ColorPickerInputField.test.d.ts.map +1 -0
- package/ColorPicker/ColorSlider.d.ts +4 -0
- package/ColorPicker/ColorSlider.d.ts.map +1 -0
- package/ColorPicker/ColorThumb.d.ts +6 -0
- package/ColorPicker/ColorThumb.d.ts.map +1 -0
- package/ColorPicker/index.d.ts +3 -0
- package/ColorPicker/index.d.ts.map +1 -0
- package/ColorPicker/index.js +5361 -0
- package/ColorPicker/index.mjs +5361 -0
- package/CustomerPortalLayout/CustomerPortalLayout.d.ts +97 -0
- package/CustomerPortalLayout/CustomerPortalLayout.d.ts.map +1 -0
- package/CustomerPortalLayout/CustomerPortalLayout.stories.d.ts +10 -0
- package/CustomerPortalLayout/CustomerPortalLayout.stories.d.ts.map +1 -0
- package/CustomerPortalLayout/CustomerPortalLayout.test.d.ts +2 -0
- package/CustomerPortalLayout/CustomerPortalLayout.test.d.ts.map +1 -0
- package/CustomerPortalLayout/CustomerPortalLayoutActions.d.ts +50 -0
- package/CustomerPortalLayout/CustomerPortalLayoutActions.d.ts.map +1 -0
- package/CustomerPortalLayout/index.d.ts +2 -0
- package/CustomerPortalLayout/index.d.ts.map +1 -0
- package/CustomerPortalLayout/index.js +319 -0
- package/CustomerPortalLayout/index.mjs +303 -0
- package/DataGrid/ActionsCellContent.d.ts +8 -0
- package/DataGrid/ActionsCellContent.d.ts.map +1 -0
- package/DataGrid/Cell.d.ts +15 -0
- package/DataGrid/Cell.d.ts.map +1 -0
- package/DataGrid/ColumnHeader.d.ts +10 -0
- package/DataGrid/ColumnHeader.d.ts.map +1 -0
- package/DataGrid/DataGrid.d.ts +39 -0
- package/DataGrid/DataGrid.d.ts.map +1 -0
- package/DataGrid/DataGrid.stories.d.ts +19 -0
- package/DataGrid/DataGrid.stories.d.ts.map +1 -0
- package/DataGrid/DataGrid.test.d.ts +2 -0
- package/DataGrid/DataGrid.test.d.ts.map +1 -0
- package/DataGrid/ExpandCellContent.d.ts +8 -0
- package/DataGrid/ExpandCellContent.d.ts.map +1 -0
- package/DataGrid/ExpandedRowContent.d.ts +7 -0
- package/DataGrid/ExpandedRowContent.d.ts.map +1 -0
- package/DataGrid/HeaderRow.d.ts +11 -0
- package/DataGrid/HeaderRow.d.ts.map +1 -0
- package/DataGrid/Row.d.ts +16 -0
- package/DataGrid/Row.d.ts.map +1 -0
- package/DataGrid/RowGroup.d.ts +8 -0
- package/DataGrid/RowGroup.d.ts.map +1 -0
- package/DataGrid/SortIndicator.d.ts +7 -0
- package/DataGrid/SortIndicator.d.ts.map +1 -0
- package/DataGrid/Table.d.ts +8 -0
- package/DataGrid/Table.d.ts.map +1 -0
- package/DataGrid/VisuallyHiddenCellContent.d.ts +7 -0
- package/DataGrid/VisuallyHiddenCellContent.d.ts.map +1 -0
- package/DataGrid/constants.d.ts +5 -0
- package/DataGrid/constants.d.ts.map +1 -0
- package/DataGrid/context.d.ts +31 -0
- package/DataGrid/context.d.ts.map +1 -0
- package/DataGrid/index.d.ts +2 -0
- package/DataGrid/index.d.ts.map +1 -0
- package/DataGrid/index.js +2844 -0
- package/DataGrid/index.mjs +2844 -0
- package/DataGrid/types.d.ts +99 -0
- package/DataGrid/types.d.ts.map +1 -0
- package/DataGrid/useEdgeInterceptors.d.ts +15 -0
- package/DataGrid/useEdgeInterceptors.d.ts.map +1 -0
- package/DataGrid/useExpandedRow.d.ts +14 -0
- package/DataGrid/useExpandedRow.d.ts.map +1 -0
- package/DataGrid/useGridTemplate.d.ts +14 -0
- package/DataGrid/useGridTemplate.d.ts.map +1 -0
- package/DatePicker/DateField.d.ts +14 -0
- package/DatePicker/DateField.d.ts.map +1 -0
- package/DatePicker/DatePicker.d.ts +91 -0
- package/DatePicker/DatePicker.d.ts.map +1 -0
- package/DatePicker/DatePicker.stories.d.ts +14 -0
- package/DatePicker/DatePicker.stories.d.ts.map +1 -0
- package/DatePicker/DatePicker.test.d.ts +2 -0
- package/DatePicker/DatePicker.test.d.ts.map +1 -0
- package/DatePicker/DatePickerBase.d.ts +32 -0
- package/DatePicker/DatePickerBase.d.ts.map +1 -0
- package/DatePicker/DatePickerOverlay.d.ts +12 -0
- package/DatePicker/DatePickerOverlay.d.ts.map +1 -0
- package/DatePicker/DatePickerTrigger.d.ts +20 -0
- package/DatePicker/DatePickerTrigger.d.ts.map +1 -0
- package/DatePicker/index.d.ts +2 -0
- package/DatePicker/index.d.ts.map +1 -0
- package/DatePicker/index.js +299 -0
- package/DatePicker/index.mjs +299 -0
- package/DateRangePicker/DateRangePicker.d.ts +89 -0
- package/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/DateRangePicker/DateRangePicker.stories.d.ts +14 -0
- package/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -0
- package/DateRangePicker/DateRangePicker.test.d.ts +2 -0
- package/DateRangePicker/DateRangePicker.test.d.ts.map +1 -0
- package/DateRangePicker/index.d.ts +2 -0
- package/DateRangePicker/index.d.ts.map +1 -0
- package/DateRangePicker/index.js +461 -0
- package/DateRangePicker/index.mjs +461 -0
- package/Drawer/Drawer.d.ts +53 -0
- package/Drawer/Drawer.d.ts.map +1 -0
- package/Drawer/Drawer.stories.d.ts +14 -0
- package/Drawer/Drawer.stories.d.ts.map +1 -0
- package/Drawer/Drawer.test.d.ts +2 -0
- package/Drawer/Drawer.test.d.ts.map +1 -0
- package/Drawer/DrawerBanner.d.ts +9 -0
- package/Drawer/DrawerBanner.d.ts.map +1 -0
- package/Drawer/DrawerBody.d.ts +10 -0
- package/Drawer/DrawerBody.d.ts.map +1 -0
- package/Drawer/DrawerCloseButton.d.ts +3 -0
- package/Drawer/DrawerCloseButton.d.ts.map +1 -0
- package/Drawer/DrawerContainer.d.ts +18 -0
- package/Drawer/DrawerContainer.d.ts.map +1 -0
- package/Drawer/DrawerContentArea.d.ts +17 -0
- package/Drawer/DrawerContentArea.d.ts.map +1 -0
- package/Drawer/DrawerHeader.d.ts +12 -0
- package/Drawer/DrawerHeader.d.ts.map +1 -0
- package/Drawer/DrawerTrigger.d.ts +26 -0
- package/Drawer/DrawerTrigger.d.ts.map +1 -0
- package/Drawer/DrawerUnderlay.d.ts +23 -0
- package/Drawer/DrawerUnderlay.d.ts.map +1 -0
- package/Drawer/context.d.ts +21 -0
- package/Drawer/context.d.ts.map +1 -0
- package/Drawer/index.d.ts +2 -0
- package/Drawer/index.d.ts.map +1 -0
- package/Drawer/index.js +403 -0
- package/Drawer/index.mjs +387 -0
- package/Drawer/useIntersectionDetection.d.ts +10 -0
- package/Drawer/useIntersectionDetection.d.ts.map +1 -0
- package/DropdownButton/DropdownButton.d.ts +3 -3
- package/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/DropdownButton/DropdownButton.stories.d.ts +6 -6
- package/DropdownButton/DropdownButton.stories.d.ts.map +1 -1
- package/DropdownButton/index.js +28 -23
- package/DropdownButton/index.mjs +28 -23
- package/EmptyStateCard/EmptyStateCard.d.ts +87 -0
- package/EmptyStateCard/EmptyStateCard.d.ts.map +1 -0
- package/EmptyStateCard/EmptyStateCard.stories.d.ts +10 -0
- package/EmptyStateCard/EmptyStateCard.stories.d.ts.map +1 -0
- package/EmptyStateCard/EmptyStateCard.test.d.ts +2 -0
- package/EmptyStateCard/EmptyStateCard.test.d.ts.map +1 -0
- package/EmptyStateCard/index.d.ts +2 -0
- package/EmptyStateCard/index.d.ts.map +1 -0
- package/EmptyStateCard/index.js +147 -0
- package/EmptyStateCard/index.mjs +147 -0
- package/EmptyStateCard/utilities.d.ts +3 -0
- package/EmptyStateCard/utilities.d.ts.map +1 -0
- package/FocusedProductLayout/BackArrow.d.ts +4 -0
- package/FocusedProductLayout/BackArrow.d.ts.map +1 -0
- package/FocusedProductLayout/Content.d.ts +10 -0
- package/FocusedProductLayout/Content.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.d.ts +111 -0
- package/FocusedProductLayout/FocusedProductLayout.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.stories.d.ts +12 -0
- package/FocusedProductLayout/FocusedProductLayout.stories.d.ts.map +1 -0
- package/FocusedProductLayout/FocusedProductLayout.test.d.ts +2 -0
- package/FocusedProductLayout/FocusedProductLayout.test.d.ts.map +1 -0
- package/FocusedProductLayout/HeaderAtTopOfPage.d.ts +11 -0
- package/FocusedProductLayout/HeaderAtTopOfPage.d.ts.map +1 -0
- package/FocusedProductLayout/HeaderInContentArea.d.ts +11 -0
- package/FocusedProductLayout/HeaderInContentArea.d.ts.map +1 -0
- package/FocusedProductLayout/SidePanel.d.ts +13 -0
- package/FocusedProductLayout/SidePanel.d.ts.map +1 -0
- package/FocusedProductLayout/WizardContent.d.ts +49 -0
- package/FocusedProductLayout/WizardContent.d.ts.map +1 -0
- package/FocusedProductLayout/index.d.ts +2 -0
- package/FocusedProductLayout/index.d.ts.map +1 -0
- package/FocusedProductLayout/index.js +214 -0
- package/FocusedProductLayout/index.mjs +214 -0
- package/ForgeLayout/ForgeLayout.d.ts +138 -0
- package/ForgeLayout/ForgeLayout.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayout.stories.d.ts +9 -0
- package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayout.test.d.ts +2 -0
- package/ForgeLayout/ForgeLayout.test.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutActions.d.ts +50 -0
- package/ForgeLayout/ForgeLayoutActions.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutControls.d.ts +38 -0
- package/ForgeLayout/ForgeLayoutControls.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts +18 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutNav.d.ts +35 -0
- package/ForgeLayout/ForgeLayoutNav.d.ts.map +1 -0
- package/ForgeLayout/index.d.ts +2 -0
- package/ForgeLayout/index.d.ts.map +1 -0
- package/ForgeLayout/index.js +596 -0
- package/ForgeLayout/index.mjs +596 -0
- package/FormLayout/FormLayout.d.ts +55 -0
- package/FormLayout/FormLayout.d.ts.map +1 -0
- package/FormLayout/FormLayout.stories.d.ts +13 -0
- package/FormLayout/FormLayout.stories.d.ts.map +1 -0
- package/FormLayout/FormLayout.test.d.ts +2 -0
- package/FormLayout/FormLayout.test.d.ts.map +1 -0
- package/FormLayout/Grid.d.ts +19 -0
- package/FormLayout/Grid.d.ts.map +1 -0
- package/FormLayout/Header.d.ts +9 -0
- package/FormLayout/Header.d.ts.map +1 -0
- package/FormLayout/HelperText.d.ts +13 -0
- package/FormLayout/HelperText.d.ts.map +1 -0
- package/FormLayout/Section.d.ts +12 -0
- package/FormLayout/Section.d.ts.map +1 -0
- package/FormLayout/Title.d.ts +23 -0
- package/FormLayout/Title.d.ts.map +1 -0
- package/FormLayout/context.d.ts +2 -0
- package/FormLayout/context.d.ts.map +1 -0
- package/FormLayout/index.d.ts +2 -0
- package/FormLayout/index.d.ts.map +1 -0
- package/FormLayout/index.js +140 -0
- package/FormLayout/index.mjs +140 -0
- package/HorizontalGrid/HorizontalGrid.stories.d.ts +1 -1
- package/HorizontalGrid/HorizontalGrid.stories.d.ts.map +1 -1
- package/HorizontalGrid/index.js +2 -62
- package/HorizontalGrid/index.mjs +2 -62
- package/HorizontalStack/HorizontalStack.stories.d.ts +1 -1
- package/HorizontalStack/HorizontalStack.stories.d.ts.map +1 -1
- package/HorizontalStack/index.js +2 -48
- package/HorizontalStack/index.mjs +2 -48
- package/Icon/Icon.d.ts +19 -4
- package/Icon/Icon.d.ts.map +1 -1
- package/Icon/Icon.stories.d.ts +2 -1
- package/Icon/Icon.stories.d.ts.map +1 -1
- package/Icon/index.js +2 -38
- package/Icon/index.mjs +2 -38
- package/IconButton/IconButton.d.ts +8 -3
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/IconButton.stories.d.ts +7 -6
- package/IconButton/IconButton.stories.d.ts.map +1 -1
- package/IconButton/index.js +35 -25
- package/IconButton/index.mjs +35 -25
- package/InputField/InputField.d.ts +7 -4
- package/InputField/InputField.d.ts.map +1 -1
- package/InputField/InputField.test.d.ts.map +1 -1
- package/InputField/Label.d.ts +0 -5
- package/InputField/Label.d.ts.map +1 -1
- package/InputField/index.js +2 -285
- package/InputField/index.mjs +2 -269
- package/InputField/inputText.d.ts +24 -0
- package/InputField/inputText.d.ts.map +1 -0
- package/InputField/utilities.d.ts +3 -1
- package/InputField/utilities.d.ts.map +1 -1
- package/KebabButton/KebabButton.d.ts +19 -0
- package/KebabButton/KebabButton.d.ts.map +1 -0
- package/KebabButton/KebabButton.stories.d.ts +7 -0
- package/KebabButton/KebabButton.stories.d.ts.map +1 -0
- package/KebabButton/KebabButton.test.d.ts +2 -0
- package/KebabButton/KebabButton.test.d.ts.map +1 -0
- package/KebabButton/index.d.ts +2 -0
- package/KebabButton/index.d.ts.map +1 -0
- package/KebabButton/index.js +4 -0
- package/KebabButton/index.mjs +4 -0
- package/Menu/Menu.stories.d.ts +5 -1
- package/Menu/Menu.stories.d.ts.map +1 -1
- package/Menu/MenuItem.d.ts.map +1 -1
- package/Menu/MenuOverlay.d.ts +18 -2
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/MenuSection.d.ts +2 -0
- package/Menu/MenuSection.d.ts.map +1 -1
- package/Menu/MenuTrigger.d.ts +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +2 -378
- package/Menu/index.mjs +2 -378
- package/Menu/utilities.d.ts +17 -1
- package/Menu/utilities.d.ts.map +1 -1
- package/Modal/Modal.d.ts +6 -7
- package/Modal/Modal.d.ts.map +1 -1
- package/Modal/Modal.stories.d.ts +4 -1
- package/Modal/Modal.stories.d.ts.map +1 -1
- package/Modal/ModalContainer.d.ts +2 -3
- package/Modal/ModalContainer.d.ts.map +1 -1
- package/Modal/ModalFooter.d.ts +19 -13
- package/Modal/ModalFooter.d.ts.map +1 -1
- package/Modal/ModalHeader.d.ts +3 -3
- package/Modal/ModalHeader.d.ts.map +1 -1
- package/Modal/ModalTrigger.d.ts.map +1 -1
- package/Modal/ModalUnderlay.d.ts.map +1 -1
- package/Modal/context.d.ts +12 -5
- package/Modal/context.d.ts.map +1 -1
- package/Modal/index.js +193 -197
- package/Modal/index.mjs +186 -190
- package/Modal/useIntersectionDetection.d.ts +1 -1
- package/Modal/useIntersectionDetection.d.ts.map +1 -1
- package/MultiSelect/MultiSelect.d.ts +133 -0
- package/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.stories.d.ts +13 -0
- package/MultiSelect/MultiSelect.stories.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.test.d.ts +2 -0
- package/MultiSelect/MultiSelect.test.d.ts.map +1 -0
- package/MultiSelect/MultiSelectDropdown.d.ts +22 -0
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -0
- package/MultiSelect/index.d.ts +2 -0
- package/MultiSelect/index.d.ts.map +1 -0
- package/MultiSelect/index.js +2016 -0
- package/MultiSelect/index.mjs +2001 -0
- package/MultiSelect/utilities.d.ts +3 -0
- package/MultiSelect/utilities.d.ts.map +1 -0
- package/MultipageSection/MultipageSection.d.ts +118 -0
- package/MultipageSection/MultipageSection.d.ts.map +1 -0
- package/MultipageSection/MultipageSection.stories.d.ts +8 -0
- package/MultipageSection/MultipageSection.stories.d.ts.map +1 -0
- package/MultipageSection/MultipageSection.test.d.ts +2 -0
- package/MultipageSection/MultipageSection.test.d.ts.map +1 -0
- package/MultipageSection/MultipageSectionSidebarNav.d.ts +29 -0
- package/MultipageSection/MultipageSectionSidebarNav.d.ts.map +1 -0
- package/MultipageSection/index.d.ts +2 -0
- package/MultipageSection/index.d.ts.map +1 -0
- package/MultipageSection/index.js +231 -0
- package/MultipageSection/index.mjs +231 -0
- package/NexusLayout/NexusLayout.d.ts +97 -0
- package/NexusLayout/NexusLayout.d.ts.map +1 -0
- package/NexusLayout/NexusLayout.stories.d.ts +8 -0
- package/NexusLayout/NexusLayout.stories.d.ts.map +1 -0
- package/NexusLayout/NexusLayout.test.d.ts +2 -0
- package/NexusLayout/NexusLayout.test.d.ts.map +1 -0
- package/NexusLayout/NexusLayoutActions.d.ts +38 -0
- package/NexusLayout/NexusLayoutActions.d.ts.map +1 -0
- package/NexusLayout/NexusLayoutMultipage.d.ts +27 -0
- package/NexusLayout/NexusLayoutMultipage.d.ts.map +1 -0
- package/NexusLayout/NexusLayoutMultipageSidebarNav.d.ts +31 -0
- package/NexusLayout/NexusLayoutMultipageSidebarNav.d.ts.map +1 -0
- package/NexusLayout/NexusLayoutNav.d.ts +28 -0
- package/NexusLayout/NexusLayoutNav.d.ts.map +1 -0
- package/NexusLayout/index.d.ts +2 -0
- package/NexusLayout/index.d.ts.map +1 -0
- package/NexusLayout/index.js +370 -0
- package/NexusLayout/index.mjs +370 -0
- package/Notification/Notification.d.ts +12 -1
- package/Notification/Notification.d.ts.map +1 -1
- package/Notification/Notification.stories.d.ts +1 -1
- package/Notification/Notification.stories.d.ts.map +1 -1
- package/Notification/NotificationContainer.d.ts.map +1 -1
- package/Notification/NotificationRegion.d.ts +7 -2
- package/Notification/NotificationRegion.d.ts.map +1 -1
- package/Notification/NotificationTransition.d.ts +29 -0
- package/Notification/NotificationTransition.d.ts.map +1 -0
- package/Notification/index.js +5 -1491
- package/Notification/index.mjs +5 -1475
- package/Pagination/Pagination.d.ts +81 -0
- package/Pagination/Pagination.d.ts.map +1 -0
- package/Pagination/Pagination.stories.d.ts +9 -0
- package/Pagination/Pagination.stories.d.ts.map +1 -0
- package/Pagination/Pagination.test.d.ts +2 -0
- package/Pagination/Pagination.test.d.ts.map +1 -0
- package/Pagination/PaginationButton.d.ts +9 -0
- package/Pagination/PaginationButton.d.ts.map +1 -0
- package/Pagination/PaginationDropdown.d.ts +24 -0
- package/Pagination/PaginationDropdown.d.ts.map +1 -0
- package/Pagination/index.d.ts +2 -0
- package/Pagination/index.d.ts.map +1 -0
- package/Pagination/index.js +131 -0
- package/Pagination/index.mjs +131 -0
- package/PillGroup/PillGroup.d.ts +89 -0
- package/PillGroup/PillGroup.d.ts.map +1 -0
- package/PillGroup/PillGroup.stories.d.ts +13 -0
- package/PillGroup/PillGroup.stories.d.ts.map +1 -0
- package/PillGroup/PillGroup.test.d.ts +2 -0
- package/PillGroup/PillGroup.test.d.ts.map +1 -0
- package/PillGroup/PillGroupContext.d.ts +9 -0
- package/PillGroup/PillGroupContext.d.ts.map +1 -0
- package/PillGroup/index.d.ts +2 -0
- package/PillGroup/index.d.ts.map +1 -0
- package/PillGroup/index.js +5 -0
- package/PillGroup/index.mjs +5 -0
- package/PlanCard/PlanCard.d.ts +89 -0
- package/PlanCard/PlanCard.d.ts.map +1 -0
- package/PlanCard/PlanCard.stories.d.ts +12 -0
- package/PlanCard/PlanCard.stories.d.ts.map +1 -0
- package/PlanCard/PlanCard.test.d.ts +2 -0
- package/PlanCard/PlanCard.test.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/Building01.d.ts +3 -0
- package/PlanCard/illustrations/Building01/Building01.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/index.d.ts +2 -0
- package/PlanCard/illustrations/Building01/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building01/index.js +541 -0
- package/PlanCard/illustrations/Building01/index.mjs +541 -0
- package/PlanCard/illustrations/Building02/Building02.d.ts +3 -0
- package/PlanCard/illustrations/Building02/Building02.d.ts.map +1 -0
- package/PlanCard/illustrations/Building02/index.d.ts +2 -0
- package/PlanCard/illustrations/Building02/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building02/index.js +215 -0
- package/PlanCard/illustrations/Building02/index.mjs +215 -0
- package/PlanCard/illustrations/Building03/Building03.d.ts +3 -0
- package/PlanCard/illustrations/Building03/Building03.d.ts.map +1 -0
- package/PlanCard/illustrations/Building03/index.d.ts +2 -0
- package/PlanCard/illustrations/Building03/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building03/index.js +782 -0
- package/PlanCard/illustrations/Building03/index.mjs +782 -0
- package/PlanCard/illustrations/Building04/Building04.d.ts +3 -0
- package/PlanCard/illustrations/Building04/Building04.d.ts.map +1 -0
- package/PlanCard/illustrations/Building04/index.d.ts +2 -0
- package/PlanCard/illustrations/Building04/index.d.ts.map +1 -0
- package/PlanCard/illustrations/Building04/index.js +1537 -0
- package/PlanCard/illustrations/Building04/index.mjs +1537 -0
- package/PlanCard/index.d.ts +2 -0
- package/PlanCard/index.d.ts.map +1 -0
- package/PlanCard/index.js +169 -0
- package/PlanCard/index.mjs +169 -0
- package/ProductLayout/HelpMenu.d.ts +8 -0
- package/ProductLayout/HelpMenu.d.ts.map +1 -0
- package/ProductLayout/LayoutScreenSizeRenderer.d.ts +21 -0
- package/ProductLayout/LayoutScreenSizeRenderer.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.d.ts +75 -0
- package/ProductLayout/ProductLayout.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.stories.d.ts +8 -0
- package/ProductLayout/ProductLayout.stories.d.ts.map +1 -0
- package/ProductLayout/ProductLayout.test.d.ts +2 -0
- package/ProductLayout/ProductLayout.test.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutContent.d.ts +9 -0
- package/ProductLayout/ProductLayoutContent.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutHeader.d.ts +44 -0
- package/ProductLayout/ProductLayoutHeader.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutSidebar.d.ts +9 -0
- package/ProductLayout/ProductLayoutSidebar.d.ts.map +1 -0
- package/ProductLayout/ProductLayoutTabbedContent.d.ts +15 -0
- package/ProductLayout/ProductLayoutTabbedContent.d.ts.map +1 -0
- package/ProductLayout/constants.d.ts +2 -0
- package/ProductLayout/constants.d.ts.map +1 -0
- package/ProductLayout/context.d.ts +13 -0
- package/ProductLayout/context.d.ts.map +1 -0
- package/ProductLayout/index.d.ts +2 -0
- package/ProductLayout/index.d.ts.map +1 -0
- package/ProductLayout/index.js +319 -0
- package/ProductLayout/index.mjs +319 -0
- package/Provider/Provider.d.ts +22 -5
- package/Provider/Provider.d.ts.map +1 -1
- package/Provider/index.js +28 -23
- package/Provider/index.mjs +28 -23
- package/README.md +68 -37
- package/RadioButtonGroup/RadioButtonGroup.d.ts +103 -0
- package/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
- package/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -0
- package/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
- package/RadioButtonGroup/RadioButtonGroup.test.d.ts +2 -0
- package/RadioButtonGroup/RadioButtonGroup.test.d.ts.map +1 -0
- package/RadioButtonGroup/index.d.ts +2 -0
- package/RadioButtonGroup/index.d.ts.map +1 -0
- package/RadioButtonGroup/index.js +279 -0
- package/RadioButtonGroup/index.mjs +279 -0
- package/RadioGroup/RadioGroup.d.ts +6 -6
- package/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/RadioGroup/RadioGroup.stories.d.ts +1 -1
- package/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/RadioGroup/index.js +3 -299
- package/RadioGroup/index.mjs +3 -299
- package/RangeCalendar/RangeCalendar.d.ts +71 -0
- package/RangeCalendar/RangeCalendar.d.ts.map +1 -0
- package/RangeCalendar/RangeCalendar.stories.d.ts +15 -0
- package/RangeCalendar/RangeCalendar.stories.d.ts.map +1 -0
- package/RangeCalendar/RangeCalendar.test.d.ts +3 -0
- package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -0
- package/RangeCalendar/index.d.ts +2 -0
- package/RangeCalendar/index.d.ts.map +1 -0
- package/RangeCalendar/index.js +4 -0
- package/RangeCalendar/index.mjs +4 -0
- package/SearchNav/CTAGroup.d.ts +21 -0
- package/SearchNav/CTAGroup.d.ts.map +1 -0
- package/SearchNav/CondensedSearchNav.d.ts +9 -0
- package/SearchNav/CondensedSearchNav.d.ts.map +1 -0
- package/SearchNav/Logo.d.ts +13 -0
- package/SearchNav/Logo.d.ts.map +1 -0
- package/SearchNav/LogoGroup.d.ts +21 -0
- package/SearchNav/LogoGroup.d.ts.map +1 -0
- package/SearchNav/PrimaryCTAItem.d.ts +14 -0
- package/SearchNav/PrimaryCTAItem.d.ts.map +1 -0
- package/SearchNav/Search.d.ts +13 -0
- package/SearchNav/Search.d.ts.map +1 -0
- package/SearchNav/SearchNav.d.ts +105 -0
- package/SearchNav/SearchNav.d.ts.map +1 -0
- package/SearchNav/SearchNav.stories.d.ts +14 -0
- package/SearchNav/SearchNav.stories.d.ts.map +1 -0
- package/SearchNav/SearchNav.test.d.ts +2 -0
- package/SearchNav/SearchNav.test.d.ts.map +1 -0
- package/SearchNav/SecondaryCTAItem.d.ts +23 -0
- package/SearchNav/SecondaryCTAItem.d.ts.map +1 -0
- package/SearchNav/Selector.d.ts +15 -0
- package/SearchNav/Selector.d.ts.map +1 -0
- package/SearchNav/SelectorTrigger.d.ts +14 -0
- package/SearchNav/SelectorTrigger.d.ts.map +1 -0
- package/SearchNav/Separator.d.ts +9 -0
- package/SearchNav/Separator.d.ts.map +1 -0
- package/SearchNav/Title.d.ts +12 -0
- package/SearchNav/Title.d.ts.map +1 -0
- package/SearchNav/context.d.ts +20 -0
- package/SearchNav/context.d.ts.map +1 -0
- package/SearchNav/index.d.ts +2 -0
- package/SearchNav/index.d.ts.map +1 -0
- package/SearchNav/index.js +532 -0
- package/SearchNav/index.mjs +516 -0
- package/SearchNav/utilities.d.ts +14 -0
- package/SearchNav/utilities.d.ts.map +1 -0
- package/SectionCard/SectionCard.d.ts +53 -0
- package/SectionCard/SectionCard.d.ts.map +1 -0
- package/SectionCard/SectionCard.stories.d.ts +11 -0
- package/SectionCard/SectionCard.stories.d.ts.map +1 -0
- package/SectionCard/SectionCard.test.d.ts +2 -0
- package/SectionCard/SectionCard.test.d.ts.map +1 -0
- package/SectionCard/index.d.ts +2 -0
- package/SectionCard/index.d.ts.map +1 -0
- package/SectionCard/index.js +121 -0
- package/SectionCard/index.mjs +121 -0
- package/Select/Select.d.ts +59 -58
- package/Select/Select.d.ts.map +1 -1
- package/Select/Select.stories.d.ts +2 -1
- package/Select/Select.stories.d.ts.map +1 -1
- package/Select/SelectField.d.ts +3 -4
- package/Select/SelectField.d.ts.map +1 -1
- package/Select/SelectOption.d.ts +4 -0
- package/Select/SelectOption.d.ts.map +1 -1
- package/Select/SelectOverlay.d.ts.map +1 -1
- package/Select/SelectSection.d.ts.map +1 -1
- package/Select/SelectTrigger.d.ts +1 -1
- package/Select/SelectTrigger.d.ts.map +1 -1
- package/Select/index.js +102 -776
- package/Select/index.mjs +98 -772
- package/SelectorErrorTooltip/index.js +2 -104
- package/SelectorErrorTooltip/index.mjs +2 -88
- package/Spinner/Spinner.d.ts +73 -0
- package/Spinner/Spinner.d.ts.map +1 -0
- package/Spinner/Spinner.stories.d.ts +11 -0
- package/Spinner/Spinner.stories.d.ts.map +1 -0
- package/Spinner/Spinner.test.d.ts +2 -0
- package/Spinner/Spinner.test.d.ts.map +1 -0
- package/Spinner/index.d.ts +2 -0
- package/Spinner/index.d.ts.map +1 -0
- package/Spinner/index.js +4 -0
- package/Spinner/index.mjs +4 -0
- package/SplitToggleCard/SplitToggleCard.d.ts +57 -0
- package/SplitToggleCard/SplitToggleCard.d.ts.map +1 -0
- package/SplitToggleCard/SplitToggleCard.stories.d.ts +11 -0
- package/SplitToggleCard/SplitToggleCard.stories.d.ts.map +1 -0
- package/SplitToggleCard/SplitToggleCard.test.d.ts +2 -0
- package/SplitToggleCard/SplitToggleCard.test.d.ts.map +1 -0
- package/SplitToggleCard/index.d.ts +2 -0
- package/SplitToggleCard/index.d.ts.map +1 -0
- package/SplitToggleCard/index.js +56 -0
- package/SplitToggleCard/index.mjs +56 -0
- package/Stepper/Step.d.ts +33 -0
- package/Stepper/Step.d.ts.map +1 -0
- package/Stepper/StepButton.d.ts +25 -0
- package/Stepper/StepButton.d.ts.map +1 -0
- package/Stepper/Stepper.d.ts +104 -0
- package/Stepper/Stepper.d.ts.map +1 -0
- package/Stepper/Stepper.stories.d.ts +10 -0
- package/Stepper/Stepper.stories.d.ts.map +1 -0
- package/Stepper/Stepper.test.d.ts +2 -0
- package/Stepper/Stepper.test.d.ts.map +1 -0
- package/Stepper/StepperContext.d.ts +11 -0
- package/Stepper/StepperContext.d.ts.map +1 -0
- package/Stepper/index.d.ts +2 -0
- package/Stepper/index.d.ts.map +1 -0
- package/Stepper/index.js +4 -0
- package/Stepper/index.mjs +4 -0
- package/TabNav/TabNav.d.ts +29 -0
- package/TabNav/TabNav.d.ts.map +1 -0
- package/TabNav/TabNav.stories.d.ts +9 -0
- package/TabNav/TabNav.stories.d.ts.map +1 -0
- package/TabNav/TabNav.test.d.ts +2 -0
- package/TabNav/TabNav.test.d.ts.map +1 -0
- package/TabNav/TabNavItem.d.ts +12 -0
- package/TabNav/TabNavItem.d.ts.map +1 -0
- package/TabNav/index.d.ts +2 -0
- package/TabNav/index.d.ts.map +1 -0
- package/TabNav/index.js +4 -0
- package/TabNav/index.mjs +4 -0
- package/TabPanels/TabPanels.d.ts +68 -0
- package/TabPanels/TabPanels.d.ts.map +1 -0
- package/TabPanels/TabPanels.stories.d.ts +14 -0
- package/TabPanels/TabPanels.stories.d.ts.map +1 -0
- package/TabPanels/TabPanels.test.d.ts +2 -0
- package/TabPanels/TabPanels.test.d.ts.map +1 -0
- package/TabPanels/TabPanelsItem.d.ts +15 -0
- package/TabPanels/TabPanelsItem.d.ts.map +1 -0
- package/TabPanels/TabPanelsPanels.d.ts +14 -0
- package/TabPanels/TabPanelsPanels.d.ts.map +1 -0
- package/TabPanels/TabPanelsTabs.d.ts +15 -0
- package/TabPanels/TabPanelsTabs.d.ts.map +1 -0
- package/TabPanels/context.d.ts +10 -0
- package/TabPanels/context.d.ts.map +1 -0
- package/TabPanels/index.d.ts +2 -0
- package/TabPanels/index.d.ts.map +1 -0
- package/TabPanels/index.js +333 -0
- package/TabPanels/index.mjs +333 -0
- package/Tabs/Edge.d.ts +8 -0
- package/Tabs/Edge.d.ts.map +1 -0
- package/Tabs/Tabs.d.ts +23 -0
- package/Tabs/Tabs.d.ts.map +1 -0
- package/Tabs/TabsItem.d.ts +13 -0
- package/Tabs/TabsItem.d.ts.map +1 -0
- package/Tabs/context.d.ts +7 -0
- package/Tabs/context.d.ts.map +1 -0
- package/Tabs/index.d.ts +2 -0
- package/Tabs/index.d.ts.map +1 -0
- package/Tabs/index.js +4 -0
- package/Tabs/index.mjs +4 -0
- package/Tabs/useIndicatorSizing.d.ts +11 -0
- package/Tabs/useIndicatorSizing.d.ts.map +1 -0
- package/Tabs/useScrollIntoViewIfNeeded.d.ts +11 -0
- package/Tabs/useScrollIntoViewIfNeeded.d.ts.map +1 -0
- package/Tabs/useScrollbar.d.ts +6 -0
- package/Tabs/useScrollbar.d.ts.map +1 -0
- package/Tabs/util.d.ts +9 -0
- package/Tabs/util.d.ts.map +1 -0
- package/Text/Text.d.ts +20 -6
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts +3 -1
- package/Text/Text.stories.d.ts.map +1 -1
- package/Text/index.js +2 -85
- package/Text/index.mjs +2 -85
- package/TextField/TextField.d.ts +3 -3
- package/TextField/TextField.d.ts.map +1 -1
- package/TextField/TextField.stories.d.ts +2 -1
- package/TextField/TextField.stories.d.ts.map +1 -1
- package/TextField/index.js +2 -53
- package/TextField/index.mjs +2 -53
- package/Textarea/Textarea.d.ts +3 -3
- package/Textarea/Textarea.d.ts.map +1 -1
- package/Textarea/Textarea.stories.d.ts +1 -1
- package/Textarea/Textarea.stories.d.ts.map +1 -1
- package/Textarea/index.js +4 -14
- package/Textarea/index.mjs +4 -14
- package/Theme/Theme.d.ts +2 -1
- package/Theme/Theme.d.ts.map +1 -1
- package/Theme/Theme.stories.d.ts +8 -0
- package/Theme/Theme.stories.d.ts.map +1 -0
- package/Theme/index.js +5 -145
- package/Theme/index.mjs +5 -145
- package/Toggle/Switch.d.ts +4 -0
- package/Toggle/Switch.d.ts.map +1 -1
- package/Toggle/Toggle.d.ts +42 -1
- package/Toggle/Toggle.d.ts.map +1 -1
- package/Toggle/Toggle.stories.d.ts +2 -1
- package/Toggle/Toggle.stories.d.ts.map +1 -1
- package/Toggle/index.js +2 -117
- package/Toggle/index.mjs +2 -117
- package/Toggle/utils.d.ts +7 -0
- package/Toggle/utils.d.ts.map +1 -0
- package/ToggleCard/ToggleCard.d.ts +88 -0
- package/ToggleCard/ToggleCard.d.ts.map +1 -0
- package/ToggleCard/ToggleCard.stories.d.ts +12 -0
- package/ToggleCard/ToggleCard.stories.d.ts.map +1 -0
- package/ToggleCard/ToggleCard.test.d.ts +2 -0
- package/ToggleCard/ToggleCard.test.d.ts.map +1 -0
- package/ToggleCard/index.d.ts +2 -0
- package/ToggleCard/index.d.ts.map +1 -0
- package/ToggleCard/index.js +52 -0
- package/ToggleCard/index.mjs +52 -0
- package/Tooltip/Tooltip.stories.d.ts +3 -1
- package/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/Tooltip/Tooltip.test.d.ts.map +1 -1
- package/Tooltip/index.js +2 -11
- package/Tooltip/index.mjs +1 -10
- package/UnstyledButton/UnstyledButton.d.ts +2 -2
- package/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/UnstyledButton/UnstyledPressButton.d.ts +10 -0
- package/UnstyledButton/UnstyledPressButton.d.ts.map +1 -0
- package/UnstyledButton/index.js +2 -7
- package/UnstyledButton/index.mjs +1 -6
- package/VerticalNav/Container.d.ts +4 -0
- package/VerticalNav/Container.d.ts.map +1 -0
- package/VerticalNav/ExpandButton.d.ts +7 -0
- package/VerticalNav/ExpandButton.d.ts.map +1 -0
- package/VerticalNav/Item.d.ts +37 -0
- package/VerticalNav/Item.d.ts.map +1 -0
- package/VerticalNav/ListVerticalNav.d.ts +29 -0
- package/VerticalNav/ListVerticalNav.d.ts.map +1 -0
- package/VerticalNav/NavItem.d.ts +13 -0
- package/VerticalNav/NavItem.d.ts.map +1 -0
- package/VerticalNav/Subnav.d.ts +18 -0
- package/VerticalNav/Subnav.d.ts.map +1 -0
- package/VerticalNav/SubnavItem.d.ts +9 -0
- package/VerticalNav/SubnavItem.d.ts.map +1 -0
- package/VerticalNav/SubnavItemDot.d.ts +7 -0
- package/VerticalNav/SubnavItemDot.d.ts.map +1 -0
- package/VerticalNav/SupplementaryAction.d.ts +26 -0
- package/VerticalNav/SupplementaryAction.d.ts.map +1 -0
- package/VerticalNav/TreeVerticalNav.d.ts +58 -0
- package/VerticalNav/TreeVerticalNav.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.d.ts +29 -0
- package/VerticalNav/VerticalNav.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.stories.d.ts +13 -0
- package/VerticalNav/VerticalNav.stories.d.ts.map +1 -0
- package/VerticalNav/VerticalNav.test.d.ts +2 -0
- package/VerticalNav/VerticalNav.test.d.ts.map +1 -0
- package/VerticalNav/context.d.ts +4 -0
- package/VerticalNav/context.d.ts.map +1 -0
- package/VerticalNav/index.d.ts +2 -0
- package/VerticalNav/index.d.ts.map +1 -0
- package/VerticalNav/index.js +320 -0
- package/VerticalNav/index.mjs +320 -0
- package/VerticalStack/VerticalStack.d.ts +2 -3
- package/VerticalStack/VerticalStack.d.ts.map +1 -1
- package/VerticalStack/VerticalStack.stories.d.ts +1 -1
- package/VerticalStack/VerticalStack.stories.d.ts.map +1 -1
- package/VerticalStack/index.js +2 -53
- package/VerticalStack/index.mjs +2 -53
- package/__chunks__/ArrowBack-BFS-tCpV.mjs +41 -0
- package/__chunks__/ArrowBack-C_LSatif.js +57 -0
- package/__chunks__/ArrowForwardIos-DSeLeLhY.mjs +41 -0
- package/__chunks__/ArrowForwardIos-DpRiDPNZ.js +57 -0
- package/__chunks__/BaseCollection-BFCqPRBy.js +256 -0
- package/__chunks__/BaseCollection-BVO0lZBs.mjs +257 -0
- package/__chunks__/Button-B4DxcTvZ.mjs +110 -0
- package/__chunks__/Button-BpQFyL49.js +109 -0
- package/__chunks__/Button-CQdi4TMV.js +102 -0
- package/__chunks__/Button-JL1YQxJ5.mjs +103 -0
- package/__chunks__/CSSTransition-C23znX_H.js +1687 -0
- package/__chunks__/CSSTransition-DZuEb-M0.mjs +1688 -0
- package/__chunks__/Calendar-BEjAu6AJ.mjs +43 -0
- package/__chunks__/Calendar-QlM--CET.js +42 -0
- package/__chunks__/CalendarBase-BuIkpPIv.mjs +3567 -0
- package/__chunks__/CalendarBase-CSr5E__l.js +3566 -0
- package/__chunks__/Card-BgjWYPVY.mjs +288 -0
- package/__chunks__/Card-LPIW5drP.js +287 -0
- package/__chunks__/CheckCircle-C9h2PNWU.mjs +41 -0
- package/__chunks__/CheckCircle-lgmtkEe6.js +57 -0
- package/__chunks__/Checkbox-B_-6lfKk.js +268 -0
- package/__chunks__/Checkbox-DcaO0fC3.mjs +253 -0
- package/__chunks__/{Close-e92ca701.js → Close-BQ2IlPyf.js} +9 -17
- package/__chunks__/Close-Cq6Q6MN6.mjs +41 -0
- package/__chunks__/CodeSnippet-25l4r2Gh.js +5696 -0
- package/__chunks__/CodeSnippet-B3nsMpvq.mjs +5697 -0
- package/__chunks__/DatePickerBase-BQA4SEJK.mjs +2727 -0
- package/__chunks__/DatePickerBase-Cas79CEI.js +2741 -0
- package/__chunks__/Dialog-DIhV589X.mjs +371 -0
- package/__chunks__/Dialog-iU9BJB0o.js +370 -0
- package/__chunks__/EasyPostLogo-C9-Q0lSn.js +22 -0
- package/__chunks__/EasyPostLogo-DgIgAGa3.mjs +23 -0
- package/__chunks__/ExpandMore400-CH7GNxqk.mjs +41 -0
- package/__chunks__/{ExpandMore400-92646971.js → ExpandMore400-CJpvxyJm.js} +9 -17
- package/__chunks__/FocusScope-B_FktBGw.mjs +870 -0
- package/__chunks__/FocusScope-CncDnO-E.js +869 -0
- package/__chunks__/HelpMenu-BZRV42ab.mjs +119 -0
- package/__chunks__/HelpMenu-C2t8KQuU.js +135 -0
- package/__chunks__/Hidden-C0ANs40F.js +40 -0
- package/__chunks__/Hidden-COe48wta.mjs +41 -0
- package/__chunks__/HorizontalGrid-CAoDcmPW.js +63 -0
- package/__chunks__/HorizontalGrid-DbLeJBt8.mjs +64 -0
- package/__chunks__/HorizontalStack-CJavrBHm.mjs +52 -0
- package/__chunks__/HorizontalStack-CWdKKY8L.js +51 -0
- package/__chunks__/Icon-BIpaQJ_I.mjs +41 -0
- package/__chunks__/Icon-BRlbo3RF.js +40 -0
- package/__chunks__/Input-BIRbdEcT.mjs +79 -0
- package/__chunks__/Input-CwXLFYJK.js +78 -0
- package/__chunks__/InputCaption-CccF4ynE.js +65 -0
- package/__chunks__/InputCaption-DoyGkWQe.mjs +66 -0
- package/__chunks__/InputField-CAY9O90X.mjs +236 -0
- package/__chunks__/InputField-DGb4ZDoR.js +251 -0
- package/__chunks__/InputField.module-ClTfhFSB.mjs +65 -0
- package/__chunks__/InputField.module-CmwwDXio.js +64 -0
- package/__chunks__/InputIcon-CEATdJ1j.mjs +51 -0
- package/__chunks__/InputIcon-DDKBJ_Tk.js +50 -0
- package/__chunks__/Item-FD89BR0i.mjs +80 -0
- package/__chunks__/Item-h_oPjYVR.js +79 -0
- package/__chunks__/KebabButton-D-5Mjaj0.mjs +96 -0
- package/__chunks__/KebabButton-TbapERgy.js +111 -0
- package/__chunks__/KeyboardDoubleArrowRight-AAMLvGk-.mjs +79 -0
- package/__chunks__/KeyboardDoubleArrowRight-Ber8mUIO.js +95 -0
- package/__chunks__/Label-B6GdFt8f.js +47 -0
- package/__chunks__/Label-LpYJUKnw.mjs +48 -0
- package/__chunks__/LiveAnnouncer-BSV5-C0m.mjs +81 -0
- package/__chunks__/LiveAnnouncer-CzeNwq2D.js +80 -0
- package/__chunks__/Menu-Ci1FGh8B.mjs +553 -0
- package/__chunks__/Menu-MGDv1tob.js +552 -0
- package/__chunks__/Menu-OacI_98l.js +57 -0
- package/__chunks__/Menu-qMqvSorL.mjs +41 -0
- package/__chunks__/Notification-CFtJx7Uz.js +1696 -0
- package/__chunks__/Notification-YATlp3lK.mjs +1681 -0
- package/__chunks__/NumberFormatter-CXW1Iqpu.js +153 -0
- package/__chunks__/NumberFormatter-p5KNJNTT.mjs +154 -0
- package/__chunks__/Overlay-BNP_t3v4.js +164 -0
- package/__chunks__/Overlay-Dkjxuk6V.mjs +165 -0
- package/__chunks__/PillGroup-BK8VCf3B.js +2242 -0
- package/__chunks__/PillGroup-DN72MPhg.mjs +2243 -0
- package/__chunks__/RadioGroup-BfKaJnSo.mjs +375 -0
- package/__chunks__/RadioGroup-BiCqtR0F.js +374 -0
- package/__chunks__/RangeCalendar-DVnJU360.mjs +229 -0
- package/__chunks__/RangeCalendar-Ph-WM1Bb.js +228 -0
- package/__chunks__/Search-BY7IgEyX.js +57 -0
- package/__chunks__/Search-Cyblmqo5.mjs +41 -0
- package/__chunks__/SelectOverlay-C23EXgqX.mjs +575 -0
- package/__chunks__/SelectOverlay-DpI9vNLw.js +574 -0
- package/__chunks__/SelectionIndicator-Co962vpA.mjs +16 -0
- package/__chunks__/SelectionIndicator-DW9MR_Io.js +15 -0
- package/__chunks__/SelectionManager-CFPcxpAj.js +713 -0
- package/__chunks__/SelectionManager-QKdFux5L.mjs +714 -0
- package/__chunks__/SelectorErrorTooltip-BNLrFRLN.js +98 -0
- package/__chunks__/SelectorErrorTooltip-rO2-k3Gl.mjs +82 -0
- package/__chunks__/Spinner-COsekFr1.mjs +96 -0
- package/__chunks__/Spinner-vRnrcEz0.js +95 -0
- package/__chunks__/Stepper-DlI-16t-.mjs +180 -0
- package/__chunks__/Stepper-lhcjfVFY.js +179 -0
- package/__chunks__/TabNav-BNhQF0b0.mjs +60 -0
- package/__chunks__/TabNav-bVgyfEV7.js +59 -0
- package/__chunks__/Tabs-BaROnbKg.mjs +263 -0
- package/__chunks__/Tabs-DSngzN9A.js +262 -0
- package/__chunks__/Text-B9fD1q8n.js +4 -0
- package/__chunks__/Text-BBBs9zA4.mjs +5 -0
- package/__chunks__/Text-D6oT5WJQ.mjs +124 -0
- package/__chunks__/Text-DkzMEqky.js +123 -0
- package/__chunks__/{ExpandMore400-7c5263a4.mjs → TextField-818kTElu.mjs} +16 -20
- package/__chunks__/{Close-25146223.mjs → TextField-DKQVJPP_.js} +17 -22
- package/__chunks__/Theme-C2nSZUpG.js +156 -0
- package/__chunks__/Theme-M__gFMM3.mjs +157 -0
- package/__chunks__/Toggle-BmJjrdVn.js +168 -0
- package/__chunks__/Toggle-DlDQ7rr2.mjs +169 -0
- package/__chunks__/{index-5e281e5a.js → Tooltip-BSMvNula.js} +160 -157
- package/__chunks__/{index-d80c6f1f.mjs → Tooltip-BXRi0h4E.mjs} +152 -149
- package/__chunks__/UnstyledButton-DW8CjaXN.js +81 -0
- package/__chunks__/UnstyledButton-DxJLvL-G.mjs +82 -0
- package/__chunks__/VerticalStack-BHkiocKU.js +56 -0
- package/__chunks__/VerticalStack-DoMqBfYD.mjs +57 -0
- package/__chunks__/VisuallyHidden-BrpRPZGD.mjs +75 -0
- package/__chunks__/VisuallyHidden-CIjowwM_.js +74 -0
- package/__chunks__/_commonjsHelpers-Bc2YnDe1.js +7 -0
- package/__chunks__/_commonjsHelpers-DWwsNxpa.mjs +8 -0
- package/__chunks__/ariaHideOutside-BYq9cUwo.mjs +411 -0
- package/__chunks__/ariaHideOutside-Dl8SH3FU.js +410 -0
- package/__chunks__/config-ChibgUKd.js +5 -0
- package/__chunks__/config-DeltQABu.mjs +6 -0
- package/__chunks__/context-5UR8ToA1.mjs +95 -0
- package/__chunks__/context-DJdNiOsb.js +94 -0
- package/__chunks__/filterDOMProps-eGTqWSTd.mjs +71 -0
- package/__chunks__/filterDOMProps-p6wKN-SS.js +70 -0
- package/__chunks__/focusSafely-C5HWSeZE.js +84 -0
- package/__chunks__/focusSafely-CeJM_lIS.mjs +85 -0
- package/__chunks__/getScrollParent-B5CCP-yO.mjs +10 -0
- package/__chunks__/getScrollParent-DNz2ReWu.js +9 -0
- package/__chunks__/index-6ObXAT_4.js +147 -0
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-DOQwYO8h.mjs +148 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/isScrollable-CE3Xdlg4.js +9 -0
- package/__chunks__/isScrollable-DwbLAiO0.mjs +10 -0
- package/__chunks__/keyboard-C0kScltA.mjs +23 -0
- package/__chunks__/keyboard-CchXvoCh.js +22 -0
- package/__chunks__/lodash-B19QVK6q.mjs +5492 -0
- package/__chunks__/lodash-CS8bkZ7S.js +5491 -0
- package/__chunks__/mergeProps-COnPag8r.mjs +220 -0
- package/__chunks__/mergeProps-DLPcevok.js +219 -0
- package/__chunks__/mergeRefs-ClQjEiLh.mjs +24 -0
- package/__chunks__/mergeRefs-qNwPManW.js +23 -0
- package/__chunks__/number-9u40S_vx.mjs +41 -0
- package/__chunks__/number-Bc1GdGoD.js +40 -0
- package/__chunks__/objectWithoutPropertiesLoose-C4Mip8ZU.js +21 -0
- package/__chunks__/objectWithoutPropertiesLoose-COdxq1Ge.mjs +22 -0
- package/__chunks__/omit-CC3uE8z5.js +2245 -0
- package/__chunks__/omit-CYoLXTjq.mjs +2246 -0
- package/__chunks__/{overlayscrollbars-react.es-f2a0bcff.js → overlayscrollbars-react-BFy4nomP.js} +982 -880
- package/__chunks__/{overlayscrollbars-react.es-7f332a3b.mjs → overlayscrollbars-react-BiRJpzDY.mjs} +982 -880
- package/__chunks__/scrollIntoView-C4mf6apy.mjs +116 -0
- package/__chunks__/scrollIntoView-Dc7KrfAg.js +115 -0
- package/__chunks__/tokens-BXztpSjv.mjs +326 -0
- package/__chunks__/tokens-CJGKzS0r.js +325 -0
- package/__chunks__/useButton-DLOnoEAf.mjs +59 -0
- package/__chunks__/useButton-YEnc5PHl.js +58 -0
- package/__chunks__/useCollator-BR9eXLiM.mjs +13 -0
- package/__chunks__/useCollator-ClAv0Zlw.js +12 -0
- package/__chunks__/useControlledState-BPR3PrW4.mjs +40 -0
- package/__chunks__/useControlledState-CcM4H_K0.js +39 -0
- package/__chunks__/useDialog-nKMoC_Cs.mjs +72 -0
- package/__chunks__/useDialog-uxNR0maK.js +71 -0
- package/__chunks__/useEdgeInterceptors-OZmGXvtF.mjs +52 -0
- package/__chunks__/useEdgeInterceptors-Rb2Hf0v8.js +51 -0
- package/__chunks__/useEvent-CnahkmoD.mjs +22 -0
- package/__chunks__/useEvent-D3eKExds.js +21 -0
- package/__chunks__/useField-C5BKHYDX.mjs +39 -0
- package/__chunks__/useField-CsvcuQrg.js +38 -0
- package/__chunks__/useFilter-DQ5GzevW.js +64 -0
- package/__chunks__/useFilter-Dm0fSoJl.mjs +65 -0
- package/__chunks__/useFocus-D_NKNXdi.js +37 -0
- package/__chunks__/useFocus-u61kyYs8.mjs +38 -0
- package/__chunks__/useFocusRing-BWKhJSvH.mjs +43 -0
- package/__chunks__/useFocusRing-DbC9E5wC.js +42 -0
- package/__chunks__/useFocusVisible-BNcpO5Sv.js +715 -0
- package/__chunks__/useFocusVisible-DDvp2PwR.mjs +716 -0
- package/__chunks__/useFocusWithin-DDWT9Br8.js +69 -0
- package/__chunks__/useFocusWithin-DcYF2gZd.mjs +70 -0
- package/__chunks__/useFocusable-BDOoYzWB.mjs +102 -0
- package/__chunks__/useFocusable-fxgaZN7X.js +101 -0
- package/__chunks__/useFormReset-D6l7xmN8.js +19 -0
- package/__chunks__/useFormReset-DjC42YuS.mjs +20 -0
- package/__chunks__/useFormValidation-Bdyc51B-.mjs +270 -0
- package/__chunks__/useFormValidation-joghLMcB.js +269 -0
- package/__chunks__/useHasTabbableChild-73d-1Yus.mjs +37 -0
- package/__chunks__/useHasTabbableChild-9MZ8LK0l.js +36 -0
- package/__chunks__/useHighlightSelectionDescription-DSdR3FZY.js +592 -0
- package/__chunks__/useHighlightSelectionDescription-HcMpuRGQ.mjs +594 -0
- package/__chunks__/useHover-Ck1otl-j.js +121 -0
- package/__chunks__/useHover-FWU5y5-k.mjs +122 -0
- package/__chunks__/useIntersectionDetection-BvUmtDgl.mjs +22 -0
- package/__chunks__/useIntersectionDetection-DI5n4zwA.js +21 -0
- package/__chunks__/useLabel-BvPZr3TC.js +26 -0
- package/__chunks__/useLabel-cE7myAez.mjs +27 -0
- package/__chunks__/useLabels-AshNb54x.mjs +23 -0
- package/__chunks__/useLabels-BiHauKNF.js +22 -0
- package/__chunks__/useLink-CChqhQkC.js +73 -0
- package/__chunks__/useLink-y6WGv96n.mjs +74 -0
- package/__chunks__/useListBoxSection-BdO_lWyz.mjs +197 -0
- package/__chunks__/useListBoxSection-Cf0YWwDY.js +196 -0
- package/__chunks__/useListState-3s3ZON5A.mjs +200 -0
- package/__chunks__/useListState-DDaaA7mG.js +199 -0
- package/__chunks__/useLocalizedStringFormatter-DWQ_olZl.mjs +122 -0
- package/__chunks__/useLocalizedStringFormatter-DxxEMHfO.js +121 -0
- package/__chunks__/useMenuTrigger-DQl6sBWY.js +270 -0
- package/__chunks__/useMenuTrigger-e_p0x3OT.mjs +271 -0
- package/__chunks__/useMenuTriggerState-CnbwSNoa.mjs +67 -0
- package/__chunks__/useMenuTriggerState-DMyxc9hK.js +66 -0
- package/__chunks__/useModalOverlay-BmYXH7rq.mjs +50 -0
- package/__chunks__/useModalOverlay-C4Gci3MA.js +49 -0
- package/__chunks__/useNumberFormatter-BCYp6Is8.js +12 -0
- package/__chunks__/useNumberFormatter-dSwO_MBg.mjs +13 -0
- package/__chunks__/useObjectRef-77h4G8qk.mjs +40 -0
- package/__chunks__/useObjectRef-Bma_uNHw.js +39 -0
- package/__chunks__/useOverlayPosition-DOISkEGO.mjs +501 -0
- package/__chunks__/useOverlayPosition-oRFqirlD.js +500 -0
- package/__chunks__/useOverlayTrigger-CIVwezu3.mjs +28 -0
- package/__chunks__/useOverlayTrigger-DP9RbCAF.js +27 -0
- package/__chunks__/usePopover-BTGHi16_.mjs +278 -0
- package/__chunks__/usePopover-CR0xi5y-.js +277 -0
- package/__chunks__/usePress-B5G5CgVn.js +747 -0
- package/__chunks__/usePress-Cw67P1FM.mjs +748 -0
- package/__chunks__/useResizeObserver-CEeqtqhm.js +35 -0
- package/__chunks__/useResizeObserver-NbpgP2Md.mjs +36 -0
- package/__chunks__/useSelectableItem-BP2rZ6Gy.mjs +703 -0
- package/__chunks__/useSelectableItem-Dtmy73y6.js +702 -0
- package/__chunks__/useSelectableList-CQpiui2v.mjs +282 -0
- package/__chunks__/useSelectableList-DeSKmxTV.js +281 -0
- package/__chunks__/useSingleSelectListState-BX2vNU2f.js +55 -0
- package/__chunks__/useSingleSelectListState-KDg6mjR3.mjs +56 -0
- package/__chunks__/useSpinButton-BtlaFD9D.js +616 -0
- package/__chunks__/useSpinButton-COlOvKCF.mjs +617 -0
- package/__chunks__/useTextField-0Mbs_DmY.mjs +100 -0
- package/__chunks__/useTextField-BlTYl2ML.js +99 -0
- package/__chunks__/useToggle-THIfY8rz.mjs +90 -0
- package/__chunks__/useToggle-m_Bxvur2.js +89 -0
- package/__chunks__/useToggleState-BLVhvfl9.mjs +23 -0
- package/__chunks__/useToggleState-BYfp0R5h.js +22 -0
- package/__chunks__/useTreeState-B9z3iENl.mjs +143 -0
- package/__chunks__/useTreeState-Cb1U-iBl.js +142 -0
- package/__chunks__/useTriggerWidth-CBghrvjy.mjs +133 -0
- package/__chunks__/useTriggerWidth-NhYqZmlX.js +132 -0
- package/__chunks__/useUpdateEffect-CdLMBMvy.mjs +22 -0
- package/__chunks__/useUpdateEffect-D8vVKdY1.js +21 -0
- package/__chunks__/utilities-CBYsZn-t.mjs +107 -0
- package/__chunks__/utilities-Q88aR_Y9.js +106 -0
- package/__chunks__/utils-C1be5hOp.mjs +149 -0
- package/__chunks__/utils-CRWC8dEm.js +148 -0
- package/package.json +17 -17
- package/style.css +6429 -2532
- package/styles/_accessibility.scss +54 -0
- package/styles/_common.scss +8 -0
- package/styles/_media-queries.scss +25 -0
- package/styles/_poppins-fallback.scss +73 -0
- package/styles/_responsive-props.scss +90 -0
- package/styles/_scrollbars.scss +52 -0
- package/styles/_string-functions.scss +26 -0
- package/styles/_token-helpers.scss +36 -0
- package/styles/_typography.scss +53 -0
- package/styles/_unstyled.scss +32 -0
- package/styles/global.scss +32 -0
- package/types.d.ts +11 -5
- package/types.d.ts.map +1 -1
- package/utilities/EasyPostLogo.d.ts +3 -0
- package/utilities/EasyPostLogo.d.ts.map +1 -0
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/css.d.ts +1 -0
- package/utilities/css.d.ts.map +1 -1
- package/utilities/css.js +20 -1
- package/utilities/css.mjs +20 -1
- package/utilities/react.d.ts +18 -2
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +44 -307
- package/utilities/react.mjs +43 -306
- package/utilities/storybook.d.ts +21 -41
- package/utilities/storybook.d.ts.map +1 -1
- package/utilities/test.d.ts +20 -6
- package/utilities/test.d.ts.map +1 -1
- package/utilities/test.js +163 -0
- package/utilities/test.mjs +163 -0
- package/utilities/tokens.d.ts.map +1 -1
- package/utilities/useScrollbar.js +2 -2
- package/utilities/useScrollbar.mjs +2 -2
- package/__chunks__/InputIcon-42b83782.mjs +0 -148
- package/__chunks__/InputIcon-d7449227.js +0 -147
- package/__chunks__/import-109dab60.js +0 -698
- package/__chunks__/import-1f82f104.mjs +0 -699
- package/__chunks__/import-313d3d73.js +0 -1944
- package/__chunks__/import-3306af6d.mjs +0 -1945
- package/__chunks__/import-4535b3fd.mjs +0 -83
- package/__chunks__/import-5b668da0.js +0 -82
- package/__chunks__/import-5d56d155.js +0 -1186
- package/__chunks__/import-6a831ca1.mjs +0 -56
- package/__chunks__/import-7a45b8e7.mjs +0 -1187
- package/__chunks__/import-ac0be4fd.mjs +0 -60
- package/__chunks__/import-db7a850c.js +0 -59
- package/__chunks__/import-dea5a24d.js +0 -55
- package/__chunks__/index-307aca2b.mjs +0 -133
- package/__chunks__/index-46617001.mjs +0 -5421
- package/__chunks__/index-82df46cc.js +0 -5420
- package/__chunks__/index-fd91868d.js +0 -132
- package/__chunks__/omit-f17deb8f.mjs +0 -1296
- package/__chunks__/omit-fca26542.js +0 -1295
- package/__chunks__/real-module-bf5db268.mjs +0 -216
- package/__chunks__/real-module-c0f9f92a.js +0 -215
- package/__chunks__/tokens-57cf84c2.mjs +0 -320
- package/__chunks__/tokens-645c903d.js +0 -319
- package/__chunks__/useTriggerWidth-61c09005.js +0 -2044
- package/__chunks__/useTriggerWidth-79c0903e.mjs +0 -2045
|
@@ -1,1945 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __knownSymbol = (name, symbol) => {
|
|
8
|
-
if (symbol = Symbol[name])
|
|
9
|
-
return symbol;
|
|
10
|
-
throw Error("Symbol." + name + " is not defined");
|
|
11
|
-
};
|
|
12
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
-
var __spreadValues = (a, b) => {
|
|
14
|
-
for (var prop in b || (b = {}))
|
|
15
|
-
if (__hasOwnProp.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
if (__getOwnPropSymbols)
|
|
18
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
-
if (__propIsEnum.call(b, prop))
|
|
20
|
-
__defNormalProp(a, prop, b[prop]);
|
|
21
|
-
}
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
-
var __objRest = (source, exclude) => {
|
|
26
|
-
var target = {};
|
|
27
|
-
for (var prop in source)
|
|
28
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
if (source != null && __getOwnPropSymbols)
|
|
31
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
-
target[prop] = source[prop];
|
|
34
|
-
}
|
|
35
|
-
return target;
|
|
36
|
-
};
|
|
37
|
-
var __await = function(promise, isYieldStar) {
|
|
38
|
-
this[0] = promise;
|
|
39
|
-
this[1] = isYieldStar;
|
|
40
|
-
};
|
|
41
|
-
var __yieldStar = (value) => {
|
|
42
|
-
var obj = value[__knownSymbol("asyncIterator")];
|
|
43
|
-
var isAwait = false;
|
|
44
|
-
var method;
|
|
45
|
-
var it = {};
|
|
46
|
-
if (obj == null) {
|
|
47
|
-
obj = value[__knownSymbol("iterator")]();
|
|
48
|
-
method = (k) => it[k] = (x) => obj[k](x);
|
|
49
|
-
} else {
|
|
50
|
-
obj = obj.call(value);
|
|
51
|
-
method = (k) => it[k] = (v) => {
|
|
52
|
-
if (isAwait) {
|
|
53
|
-
isAwait = false;
|
|
54
|
-
if (k === "throw")
|
|
55
|
-
throw v;
|
|
56
|
-
return v;
|
|
57
|
-
}
|
|
58
|
-
isAwait = true;
|
|
59
|
-
return {
|
|
60
|
-
done: false,
|
|
61
|
-
value: new __await(new Promise((resolve) => {
|
|
62
|
-
var x = obj[k](v);
|
|
63
|
-
if (!(x instanceof Object))
|
|
64
|
-
throw TypeError("Object expected");
|
|
65
|
-
resolve(x);
|
|
66
|
-
}), 1)
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
71
|
-
throw x;
|
|
72
|
-
}, "return" in obj && method("return"), it;
|
|
73
|
-
};
|
|
74
|
-
import React__default, { useState, useRef, useEffect, useMemo, useCallback, useContext } from "react";
|
|
75
|
-
import { t as $03deb23ff14920c4$export$4eaf04e54aa8eed6, s as $8ae05eaa5c114e9c$export$7f54fc3180508a52, u as $6a7db85432448f7f$export$29bf1b5f2c56cf63, r as $7215afc6de606d6b$export$de79e2c695e052f3, v as $6a7db85432448f7f$export$60278871457622de, a as $3ef42575df84b30b$export$9d1611c77c2fe928, w as $ef06256079686ba0$export$f8aeda7b10753fa1, i as $c87311424ea30a05$export$fedb369cb70207f1, x as $bbed8b41f857bcc0$export$24490316f764c430, y as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, g as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, q as $c87311424ea30a05$export$9ac100e40613ea10, f as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./import-1f82f104.mjs";
|
|
76
|
-
function _class_apply_descriptor_get(receiver, descriptor) {
|
|
77
|
-
if (descriptor.get)
|
|
78
|
-
return descriptor.get.call(receiver);
|
|
79
|
-
return descriptor.value;
|
|
80
|
-
}
|
|
81
|
-
function _class_extract_field_descriptor(receiver, privateMap, action) {
|
|
82
|
-
if (!privateMap.has(receiver))
|
|
83
|
-
throw new TypeError("attempted to " + action + " private field on non-instance");
|
|
84
|
-
return privateMap.get(receiver);
|
|
85
|
-
}
|
|
86
|
-
function _class_private_field_get(receiver, privateMap) {
|
|
87
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
|
|
88
|
-
return _class_apply_descriptor_get(receiver, descriptor);
|
|
89
|
-
}
|
|
90
|
-
function _check_private_redeclaration(obj, privateCollection) {
|
|
91
|
-
if (privateCollection.has(obj)) {
|
|
92
|
-
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
function _class_private_field_init(obj, privateMap, value) {
|
|
96
|
-
_check_private_redeclaration(obj, privateMap);
|
|
97
|
-
privateMap.set(obj, value);
|
|
98
|
-
}
|
|
99
|
-
function _class_apply_descriptor_set(receiver, descriptor, value) {
|
|
100
|
-
if (descriptor.set)
|
|
101
|
-
descriptor.set.call(receiver, value);
|
|
102
|
-
else {
|
|
103
|
-
if (!descriptor.writable) {
|
|
104
|
-
throw new TypeError("attempted to set read only private field");
|
|
105
|
-
}
|
|
106
|
-
descriptor.value = value;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function _class_private_field_set(receiver, privateMap, value) {
|
|
110
|
-
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
|
|
111
|
-
_class_apply_descriptor_set(receiver, descriptor, value);
|
|
112
|
-
return value;
|
|
113
|
-
}
|
|
114
|
-
let $14c0b72509d70225$var$state = "default";
|
|
115
|
-
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
116
|
-
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
117
|
-
function $14c0b72509d70225$export$16a4697467175487(target) {
|
|
118
|
-
if ($c87311424ea30a05$export$fedb369cb70207f1()) {
|
|
119
|
-
if ($14c0b72509d70225$var$state === "default") {
|
|
120
|
-
$14c0b72509d70225$var$savedUserSelect = document.documentElement.style.webkitUserSelect;
|
|
121
|
-
document.documentElement.style.webkitUserSelect = "none";
|
|
122
|
-
}
|
|
123
|
-
$14c0b72509d70225$var$state = "disabled";
|
|
124
|
-
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
125
|
-
$14c0b72509d70225$var$modifiedElementMap.set(target, target.style.userSelect);
|
|
126
|
-
target.style.userSelect = "none";
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
130
|
-
if ($c87311424ea30a05$export$fedb369cb70207f1()) {
|
|
131
|
-
if ($14c0b72509d70225$var$state !== "disabled")
|
|
132
|
-
return;
|
|
133
|
-
$14c0b72509d70225$var$state = "restoring";
|
|
134
|
-
setTimeout(() => {
|
|
135
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
136
|
-
if ($14c0b72509d70225$var$state === "restoring") {
|
|
137
|
-
if (document.documentElement.style.webkitUserSelect === "none")
|
|
138
|
-
document.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || "";
|
|
139
|
-
$14c0b72509d70225$var$savedUserSelect = "";
|
|
140
|
-
$14c0b72509d70225$var$state = "default";
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}, 300);
|
|
144
|
-
} else if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
145
|
-
if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
|
|
146
|
-
let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);
|
|
147
|
-
if (target.style.userSelect === "none")
|
|
148
|
-
target.style.userSelect = targetOldUserSelect;
|
|
149
|
-
if (target.getAttribute("style") === "")
|
|
150
|
-
target.removeAttribute("style");
|
|
151
|
-
$14c0b72509d70225$var$modifiedElementMap.delete(target);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React__default.createContext(null);
|
|
156
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
157
|
-
function $f6c31cce2adf654f$var$usePressResponderContext(props) {
|
|
158
|
-
let context = useContext($ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
159
|
-
if (context) {
|
|
160
|
-
let _a = context, { register } = _a, contextProps = __objRest(_a, ["register"]);
|
|
161
|
-
props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props);
|
|
162
|
-
register();
|
|
163
|
-
}
|
|
164
|
-
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, props.ref);
|
|
165
|
-
return props;
|
|
166
|
-
}
|
|
167
|
-
var $f6c31cce2adf654f$var$_shouldStopPropagation = /* @__PURE__ */ new WeakMap();
|
|
168
|
-
class $f6c31cce2adf654f$var$PressEvent {
|
|
169
|
-
continuePropagation() {
|
|
170
|
-
_class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, false);
|
|
171
|
-
}
|
|
172
|
-
get shouldStopPropagation() {
|
|
173
|
-
return _class_private_field_get(this, $f6c31cce2adf654f$var$_shouldStopPropagation);
|
|
174
|
-
}
|
|
175
|
-
constructor(type, pointerType, originalEvent) {
|
|
176
|
-
_class_private_field_init(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {
|
|
177
|
-
writable: true,
|
|
178
|
-
value: void 0
|
|
179
|
-
});
|
|
180
|
-
_class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, true);
|
|
181
|
-
this.type = type;
|
|
182
|
-
this.pointerType = pointerType;
|
|
183
|
-
this.target = originalEvent.currentTarget;
|
|
184
|
-
this.shiftKey = originalEvent.shiftKey;
|
|
185
|
-
this.metaKey = originalEvent.metaKey;
|
|
186
|
-
this.ctrlKey = originalEvent.ctrlKey;
|
|
187
|
-
this.altKey = originalEvent.altKey;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
191
|
-
let _a = $f6c31cce2adf654f$var$usePressResponderContext(props), {
|
|
192
|
-
onPress,
|
|
193
|
-
onPressChange,
|
|
194
|
-
onPressStart,
|
|
195
|
-
onPressEnd,
|
|
196
|
-
onPressUp,
|
|
197
|
-
isDisabled,
|
|
198
|
-
isPressed: isPressedProp,
|
|
199
|
-
preventFocusOnPress,
|
|
200
|
-
shouldCancelOnPointerExit,
|
|
201
|
-
allowTextSelectionOnPress,
|
|
202
|
-
ref: _
|
|
203
|
-
} = _a, domProps = __objRest(_a, [
|
|
204
|
-
"onPress",
|
|
205
|
-
"onPressChange",
|
|
206
|
-
"onPressStart",
|
|
207
|
-
"onPressEnd",
|
|
208
|
-
"onPressUp",
|
|
209
|
-
"isDisabled",
|
|
210
|
-
"isPressed",
|
|
211
|
-
"preventFocusOnPress",
|
|
212
|
-
"shouldCancelOnPointerExit",
|
|
213
|
-
"allowTextSelectionOnPress",
|
|
214
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
215
|
-
"ref"
|
|
216
|
-
]);
|
|
217
|
-
let [isPressed, setPressed] = useState(false);
|
|
218
|
-
let ref = useRef({
|
|
219
|
-
isPressed: false,
|
|
220
|
-
ignoreEmulatedMouseEvents: false,
|
|
221
|
-
ignoreClickAfterPress: false,
|
|
222
|
-
didFirePressStart: false,
|
|
223
|
-
activePointerId: null,
|
|
224
|
-
target: null,
|
|
225
|
-
isOverTarget: false,
|
|
226
|
-
pointerType: null
|
|
227
|
-
});
|
|
228
|
-
let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
229
|
-
let triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
|
|
230
|
-
let state = ref.current;
|
|
231
|
-
if (isDisabled || state.didFirePressStart)
|
|
232
|
-
return;
|
|
233
|
-
let shouldStopPropagation = true;
|
|
234
|
-
if (onPressStart) {
|
|
235
|
-
let event = new $f6c31cce2adf654f$var$PressEvent("pressstart", pointerType, originalEvent);
|
|
236
|
-
onPressStart(event);
|
|
237
|
-
shouldStopPropagation = event.shouldStopPropagation;
|
|
238
|
-
}
|
|
239
|
-
if (onPressChange)
|
|
240
|
-
onPressChange(true);
|
|
241
|
-
state.didFirePressStart = true;
|
|
242
|
-
setPressed(true);
|
|
243
|
-
return shouldStopPropagation;
|
|
244
|
-
});
|
|
245
|
-
let triggerPressEnd = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType, wasPressed = true) => {
|
|
246
|
-
let state = ref.current;
|
|
247
|
-
if (!state.didFirePressStart)
|
|
248
|
-
return;
|
|
249
|
-
state.ignoreClickAfterPress = true;
|
|
250
|
-
state.didFirePressStart = false;
|
|
251
|
-
let shouldStopPropagation = true;
|
|
252
|
-
if (onPressEnd) {
|
|
253
|
-
let event = new $f6c31cce2adf654f$var$PressEvent("pressend", pointerType, originalEvent);
|
|
254
|
-
onPressEnd(event);
|
|
255
|
-
shouldStopPropagation = event.shouldStopPropagation;
|
|
256
|
-
}
|
|
257
|
-
if (onPressChange)
|
|
258
|
-
onPressChange(false);
|
|
259
|
-
setPressed(false);
|
|
260
|
-
if (onPress && wasPressed && !isDisabled) {
|
|
261
|
-
let event = new $f6c31cce2adf654f$var$PressEvent("press", pointerType, originalEvent);
|
|
262
|
-
onPress(event);
|
|
263
|
-
shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation);
|
|
264
|
-
}
|
|
265
|
-
return shouldStopPropagation;
|
|
266
|
-
});
|
|
267
|
-
let triggerPressUp = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => {
|
|
268
|
-
if (isDisabled)
|
|
269
|
-
return;
|
|
270
|
-
if (onPressUp) {
|
|
271
|
-
let event = new $f6c31cce2adf654f$var$PressEvent("pressup", pointerType, originalEvent);
|
|
272
|
-
onPressUp(event);
|
|
273
|
-
return event.shouldStopPropagation;
|
|
274
|
-
}
|
|
275
|
-
return true;
|
|
276
|
-
});
|
|
277
|
-
let cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
278
|
-
let state = ref.current;
|
|
279
|
-
if (state.isPressed) {
|
|
280
|
-
if (state.isOverTarget)
|
|
281
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
282
|
-
state.isPressed = false;
|
|
283
|
-
state.isOverTarget = false;
|
|
284
|
-
state.activePointerId = null;
|
|
285
|
-
state.pointerType = null;
|
|
286
|
-
removeAllGlobalListeners();
|
|
287
|
-
if (!allowTextSelectionOnPress)
|
|
288
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
let cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
292
|
-
if (shouldCancelOnPointerExit)
|
|
293
|
-
cancel(e);
|
|
294
|
-
});
|
|
295
|
-
let pressProps = useMemo(() => {
|
|
296
|
-
let state = ref.current;
|
|
297
|
-
let pressProps2 = {
|
|
298
|
-
onKeyDown(e) {
|
|
299
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && e.currentTarget.contains(e.target)) {
|
|
300
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key))
|
|
301
|
-
e.preventDefault();
|
|
302
|
-
let shouldStopPropagation = true;
|
|
303
|
-
if (!state.isPressed && !e.repeat) {
|
|
304
|
-
state.target = e.currentTarget;
|
|
305
|
-
state.isPressed = true;
|
|
306
|
-
shouldStopPropagation = triggerPressStart(e, "keyboard");
|
|
307
|
-
addGlobalListener(document, "keyup", onKeyUp, false);
|
|
308
|
-
}
|
|
309
|
-
if (shouldStopPropagation)
|
|
310
|
-
e.stopPropagation();
|
|
311
|
-
} else if (e.key === "Enter" && $f6c31cce2adf654f$var$isHTMLAnchorLink(e.currentTarget))
|
|
312
|
-
e.stopPropagation();
|
|
313
|
-
},
|
|
314
|
-
onKeyUp(e) {
|
|
315
|
-
if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && !e.repeat && e.currentTarget.contains(e.target))
|
|
316
|
-
triggerPressUp($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard");
|
|
317
|
-
},
|
|
318
|
-
onClick(e) {
|
|
319
|
-
if (e && !e.currentTarget.contains(e.target))
|
|
320
|
-
return;
|
|
321
|
-
if (e && e.button === 0) {
|
|
322
|
-
let shouldStopPropagation = true;
|
|
323
|
-
if (isDisabled)
|
|
324
|
-
e.preventDefault();
|
|
325
|
-
if (!state.ignoreClickAfterPress && !state.ignoreEmulatedMouseEvents && (state.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
|
|
326
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
327
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
328
|
-
let stopPressStart = triggerPressStart(e, "virtual");
|
|
329
|
-
let stopPressUp = triggerPressUp(e, "virtual");
|
|
330
|
-
let stopPressEnd = triggerPressEnd(e, "virtual");
|
|
331
|
-
shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
|
|
332
|
-
}
|
|
333
|
-
state.ignoreEmulatedMouseEvents = false;
|
|
334
|
-
state.ignoreClickAfterPress = false;
|
|
335
|
-
if (shouldStopPropagation)
|
|
336
|
-
e.stopPropagation();
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
let onKeyUp = (e) => {
|
|
341
|
-
if (state.isPressed && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state.target)) {
|
|
342
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e.target, e.key))
|
|
343
|
-
e.preventDefault();
|
|
344
|
-
state.isPressed = false;
|
|
345
|
-
let target = e.target;
|
|
346
|
-
let shouldStopPropagation = triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), "keyboard", state.target.contains(target));
|
|
347
|
-
removeAllGlobalListeners();
|
|
348
|
-
if (shouldStopPropagation)
|
|
349
|
-
e.stopPropagation();
|
|
350
|
-
if (state.target instanceof HTMLElement && state.target.contains(target) && ($f6c31cce2adf654f$var$isHTMLAnchorLink(state.target) || state.target.getAttribute("role") === "link"))
|
|
351
|
-
state.target.click();
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
if (typeof PointerEvent !== "undefined") {
|
|
355
|
-
pressProps2.onPointerDown = (e) => {
|
|
356
|
-
if (e.button !== 0 || !e.currentTarget.contains(e.target))
|
|
357
|
-
return;
|
|
358
|
-
if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) {
|
|
359
|
-
state.pointerType = "virtual";
|
|
360
|
-
return;
|
|
361
|
-
}
|
|
362
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget))
|
|
363
|
-
e.preventDefault();
|
|
364
|
-
state.pointerType = e.pointerType;
|
|
365
|
-
let shouldStopPropagation = true;
|
|
366
|
-
if (!state.isPressed) {
|
|
367
|
-
state.isPressed = true;
|
|
368
|
-
state.isOverTarget = true;
|
|
369
|
-
state.activePointerId = e.pointerId;
|
|
370
|
-
state.target = e.currentTarget;
|
|
371
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
372
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
373
|
-
if (!allowTextSelectionOnPress)
|
|
374
|
-
$14c0b72509d70225$export$16a4697467175487(state.target);
|
|
375
|
-
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
376
|
-
addGlobalListener(document, "pointermove", onPointerMove, false);
|
|
377
|
-
addGlobalListener(document, "pointerup", onPointerUp, false);
|
|
378
|
-
addGlobalListener(document, "pointercancel", onPointerCancel, false);
|
|
379
|
-
}
|
|
380
|
-
if (shouldStopPropagation)
|
|
381
|
-
e.stopPropagation();
|
|
382
|
-
};
|
|
383
|
-
pressProps2.onMouseDown = (e) => {
|
|
384
|
-
if (!e.currentTarget.contains(e.target))
|
|
385
|
-
return;
|
|
386
|
-
if (e.button === 0) {
|
|
387
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget))
|
|
388
|
-
e.preventDefault();
|
|
389
|
-
e.stopPropagation();
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
pressProps2.onPointerUp = (e) => {
|
|
393
|
-
if (!e.currentTarget.contains(e.target) || state.pointerType === "virtual")
|
|
394
|
-
return;
|
|
395
|
-
if (e.button === 0 && $f6c31cce2adf654f$var$isOverTarget(e, e.currentTarget))
|
|
396
|
-
triggerPressUp(e, state.pointerType || e.pointerType);
|
|
397
|
-
};
|
|
398
|
-
let onPointerMove = (e) => {
|
|
399
|
-
if (e.pointerId !== state.activePointerId)
|
|
400
|
-
return;
|
|
401
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target)) {
|
|
402
|
-
if (!state.isOverTarget) {
|
|
403
|
-
state.isOverTarget = true;
|
|
404
|
-
triggerPressStart($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
405
|
-
}
|
|
406
|
-
} else if (state.isOverTarget) {
|
|
407
|
-
state.isOverTarget = false;
|
|
408
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
409
|
-
cancelOnPointerExit(e);
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
let onPointerUp = (e) => {
|
|
413
|
-
if (e.pointerId === state.activePointerId && state.isPressed && e.button === 0) {
|
|
414
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target))
|
|
415
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
416
|
-
else if (state.isOverTarget)
|
|
417
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
418
|
-
state.isPressed = false;
|
|
419
|
-
state.isOverTarget = false;
|
|
420
|
-
state.activePointerId = null;
|
|
421
|
-
state.pointerType = null;
|
|
422
|
-
removeAllGlobalListeners();
|
|
423
|
-
if (!allowTextSelectionOnPress)
|
|
424
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
let onPointerCancel = (e) => {
|
|
428
|
-
cancel(e);
|
|
429
|
-
};
|
|
430
|
-
pressProps2.onDragStart = (e) => {
|
|
431
|
-
if (!e.currentTarget.contains(e.target))
|
|
432
|
-
return;
|
|
433
|
-
cancel(e);
|
|
434
|
-
};
|
|
435
|
-
} else {
|
|
436
|
-
pressProps2.onMouseDown = (e) => {
|
|
437
|
-
if (e.button !== 0 || !e.currentTarget.contains(e.target))
|
|
438
|
-
return;
|
|
439
|
-
if ($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget))
|
|
440
|
-
e.preventDefault();
|
|
441
|
-
if (state.ignoreEmulatedMouseEvents) {
|
|
442
|
-
e.stopPropagation();
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
state.isPressed = true;
|
|
446
|
-
state.isOverTarget = true;
|
|
447
|
-
state.target = e.currentTarget;
|
|
448
|
-
state.pointerType = $6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
|
|
449
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
450
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
451
|
-
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
452
|
-
if (shouldStopPropagation)
|
|
453
|
-
e.stopPropagation();
|
|
454
|
-
addGlobalListener(document, "mouseup", onMouseUp, false);
|
|
455
|
-
};
|
|
456
|
-
pressProps2.onMouseEnter = (e) => {
|
|
457
|
-
if (!e.currentTarget.contains(e.target))
|
|
458
|
-
return;
|
|
459
|
-
let shouldStopPropagation = true;
|
|
460
|
-
if (state.isPressed && !state.ignoreEmulatedMouseEvents) {
|
|
461
|
-
state.isOverTarget = true;
|
|
462
|
-
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
463
|
-
}
|
|
464
|
-
if (shouldStopPropagation)
|
|
465
|
-
e.stopPropagation();
|
|
466
|
-
};
|
|
467
|
-
pressProps2.onMouseLeave = (e) => {
|
|
468
|
-
if (!e.currentTarget.contains(e.target))
|
|
469
|
-
return;
|
|
470
|
-
let shouldStopPropagation = true;
|
|
471
|
-
if (state.isPressed && !state.ignoreEmulatedMouseEvents) {
|
|
472
|
-
state.isOverTarget = false;
|
|
473
|
-
shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
474
|
-
cancelOnPointerExit(e);
|
|
475
|
-
}
|
|
476
|
-
if (shouldStopPropagation)
|
|
477
|
-
e.stopPropagation();
|
|
478
|
-
};
|
|
479
|
-
pressProps2.onMouseUp = (e) => {
|
|
480
|
-
if (!e.currentTarget.contains(e.target))
|
|
481
|
-
return;
|
|
482
|
-
if (!state.ignoreEmulatedMouseEvents && e.button === 0)
|
|
483
|
-
triggerPressUp(e, state.pointerType);
|
|
484
|
-
};
|
|
485
|
-
let onMouseUp = (e) => {
|
|
486
|
-
if (e.button !== 0)
|
|
487
|
-
return;
|
|
488
|
-
state.isPressed = false;
|
|
489
|
-
removeAllGlobalListeners();
|
|
490
|
-
if (state.ignoreEmulatedMouseEvents) {
|
|
491
|
-
state.ignoreEmulatedMouseEvents = false;
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
if ($f6c31cce2adf654f$var$isOverTarget(e, state.target))
|
|
495
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType);
|
|
496
|
-
else if (state.isOverTarget)
|
|
497
|
-
triggerPressEnd($f6c31cce2adf654f$var$createEvent(state.target, e), state.pointerType, false);
|
|
498
|
-
state.isOverTarget = false;
|
|
499
|
-
};
|
|
500
|
-
pressProps2.onTouchStart = (e) => {
|
|
501
|
-
if (!e.currentTarget.contains(e.target))
|
|
502
|
-
return;
|
|
503
|
-
let touch = $f6c31cce2adf654f$var$getTouchFromEvent(e.nativeEvent);
|
|
504
|
-
if (!touch)
|
|
505
|
-
return;
|
|
506
|
-
state.activePointerId = touch.identifier;
|
|
507
|
-
state.ignoreEmulatedMouseEvents = true;
|
|
508
|
-
state.isOverTarget = true;
|
|
509
|
-
state.isPressed = true;
|
|
510
|
-
state.target = e.currentTarget;
|
|
511
|
-
state.pointerType = "touch";
|
|
512
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
513
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
514
|
-
if (!allowTextSelectionOnPress)
|
|
515
|
-
$14c0b72509d70225$export$16a4697467175487(state.target);
|
|
516
|
-
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
517
|
-
if (shouldStopPropagation)
|
|
518
|
-
e.stopPropagation();
|
|
519
|
-
addGlobalListener(window, "scroll", onScroll, true);
|
|
520
|
-
};
|
|
521
|
-
pressProps2.onTouchMove = (e) => {
|
|
522
|
-
if (!e.currentTarget.contains(e.target))
|
|
523
|
-
return;
|
|
524
|
-
if (!state.isPressed) {
|
|
525
|
-
e.stopPropagation();
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);
|
|
529
|
-
let shouldStopPropagation = true;
|
|
530
|
-
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {
|
|
531
|
-
if (!state.isOverTarget) {
|
|
532
|
-
state.isOverTarget = true;
|
|
533
|
-
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
534
|
-
}
|
|
535
|
-
} else if (state.isOverTarget) {
|
|
536
|
-
state.isOverTarget = false;
|
|
537
|
-
shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
538
|
-
cancelOnPointerExit(e);
|
|
539
|
-
}
|
|
540
|
-
if (shouldStopPropagation)
|
|
541
|
-
e.stopPropagation();
|
|
542
|
-
};
|
|
543
|
-
pressProps2.onTouchEnd = (e) => {
|
|
544
|
-
if (!e.currentTarget.contains(e.target))
|
|
545
|
-
return;
|
|
546
|
-
if (!state.isPressed) {
|
|
547
|
-
e.stopPropagation();
|
|
548
|
-
return;
|
|
549
|
-
}
|
|
550
|
-
let touch = $f6c31cce2adf654f$var$getTouchById(e.nativeEvent, state.activePointerId);
|
|
551
|
-
let shouldStopPropagation = true;
|
|
552
|
-
if (touch && $f6c31cce2adf654f$var$isOverTarget(touch, e.currentTarget)) {
|
|
553
|
-
triggerPressUp(e, state.pointerType);
|
|
554
|
-
shouldStopPropagation = triggerPressEnd(e, state.pointerType);
|
|
555
|
-
} else if (state.isOverTarget)
|
|
556
|
-
shouldStopPropagation = triggerPressEnd(e, state.pointerType, false);
|
|
557
|
-
if (shouldStopPropagation)
|
|
558
|
-
e.stopPropagation();
|
|
559
|
-
state.isPressed = false;
|
|
560
|
-
state.activePointerId = null;
|
|
561
|
-
state.isOverTarget = false;
|
|
562
|
-
state.ignoreEmulatedMouseEvents = true;
|
|
563
|
-
if (!allowTextSelectionOnPress)
|
|
564
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295(state.target);
|
|
565
|
-
removeAllGlobalListeners();
|
|
566
|
-
};
|
|
567
|
-
pressProps2.onTouchCancel = (e) => {
|
|
568
|
-
if (!e.currentTarget.contains(e.target))
|
|
569
|
-
return;
|
|
570
|
-
e.stopPropagation();
|
|
571
|
-
if (state.isPressed)
|
|
572
|
-
cancel(e);
|
|
573
|
-
};
|
|
574
|
-
let onScroll = (e) => {
|
|
575
|
-
if (state.isPressed && e.target.contains(state.target))
|
|
576
|
-
cancel({
|
|
577
|
-
currentTarget: state.target,
|
|
578
|
-
shiftKey: false,
|
|
579
|
-
ctrlKey: false,
|
|
580
|
-
metaKey: false,
|
|
581
|
-
altKey: false
|
|
582
|
-
});
|
|
583
|
-
};
|
|
584
|
-
pressProps2.onDragStart = (e) => {
|
|
585
|
-
if (!e.currentTarget.contains(e.target))
|
|
586
|
-
return;
|
|
587
|
-
cancel(e);
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
return pressProps2;
|
|
591
|
-
}, [
|
|
592
|
-
addGlobalListener,
|
|
593
|
-
isDisabled,
|
|
594
|
-
preventFocusOnPress,
|
|
595
|
-
removeAllGlobalListeners,
|
|
596
|
-
allowTextSelectionOnPress,
|
|
597
|
-
cancel,
|
|
598
|
-
cancelOnPointerExit,
|
|
599
|
-
triggerPressEnd,
|
|
600
|
-
triggerPressStart,
|
|
601
|
-
triggerPressUp
|
|
602
|
-
]);
|
|
603
|
-
useEffect(() => {
|
|
604
|
-
return () => {
|
|
605
|
-
if (!allowTextSelectionOnPress)
|
|
606
|
-
$14c0b72509d70225$export$b0d6fa1ab32e3295(ref.current.target);
|
|
607
|
-
};
|
|
608
|
-
}, [
|
|
609
|
-
allowTextSelectionOnPress
|
|
610
|
-
]);
|
|
611
|
-
return {
|
|
612
|
-
isPressed: isPressedProp || isPressed,
|
|
613
|
-
pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps)
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
|
|
617
|
-
return target.tagName === "A" && target.hasAttribute("href");
|
|
618
|
-
}
|
|
619
|
-
function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) {
|
|
620
|
-
const { key, code } = event;
|
|
621
|
-
const element = currentTarget;
|
|
622
|
-
const role = element.getAttribute("role");
|
|
623
|
-
return (key === "Enter" || key === " " || key === "Spacebar" || code === "Space") && !(element instanceof HTMLInputElement && !$f6c31cce2adf654f$var$isValidInputKey(element, key) || element instanceof HTMLTextAreaElement || element.isContentEditable) && // A link with a valid href should be handled natively,
|
|
624
|
-
// unless it also has role='button' and was triggered using Space.
|
|
625
|
-
(!$f6c31cce2adf654f$var$isHTMLAnchorLink(element) || role === "button" && key !== "Enter") && // An element with role='link' should only trigger with Enter key
|
|
626
|
-
!(role === "link" && key !== "Enter");
|
|
627
|
-
}
|
|
628
|
-
function $f6c31cce2adf654f$var$getTouchFromEvent(event) {
|
|
629
|
-
const { targetTouches } = event;
|
|
630
|
-
if (targetTouches.length > 0)
|
|
631
|
-
return targetTouches[0];
|
|
632
|
-
return null;
|
|
633
|
-
}
|
|
634
|
-
function $f6c31cce2adf654f$var$getTouchById(event, pointerId) {
|
|
635
|
-
const changedTouches = event.changedTouches;
|
|
636
|
-
for (let i = 0; i < changedTouches.length; i++) {
|
|
637
|
-
const touch = changedTouches[i];
|
|
638
|
-
if (touch.identifier === pointerId)
|
|
639
|
-
return touch;
|
|
640
|
-
}
|
|
641
|
-
return null;
|
|
642
|
-
}
|
|
643
|
-
function $f6c31cce2adf654f$var$createEvent(target, e) {
|
|
644
|
-
return {
|
|
645
|
-
currentTarget: target,
|
|
646
|
-
shiftKey: e.shiftKey,
|
|
647
|
-
ctrlKey: e.ctrlKey,
|
|
648
|
-
metaKey: e.metaKey,
|
|
649
|
-
altKey: e.altKey
|
|
650
|
-
};
|
|
651
|
-
}
|
|
652
|
-
function $f6c31cce2adf654f$var$getPointClientRect(point) {
|
|
653
|
-
let offsetX = point.width / 2 || point.radiusX || 0;
|
|
654
|
-
let offsetY = point.height / 2 || point.radiusY || 0;
|
|
655
|
-
return {
|
|
656
|
-
top: point.clientY - offsetY,
|
|
657
|
-
right: point.clientX + offsetX,
|
|
658
|
-
bottom: point.clientY + offsetY,
|
|
659
|
-
left: point.clientX - offsetX
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
|
-
function $f6c31cce2adf654f$var$areRectanglesOverlapping(a, b) {
|
|
663
|
-
if (a.left > b.right || b.left > a.right)
|
|
664
|
-
return false;
|
|
665
|
-
if (a.top > b.bottom || b.top > a.bottom)
|
|
666
|
-
return false;
|
|
667
|
-
return true;
|
|
668
|
-
}
|
|
669
|
-
function $f6c31cce2adf654f$var$isOverTarget(point, target) {
|
|
670
|
-
let rect = target.getBoundingClientRect();
|
|
671
|
-
let pointRect = $f6c31cce2adf654f$var$getPointClientRect(point);
|
|
672
|
-
return $f6c31cce2adf654f$var$areRectanglesOverlapping(rect, pointRect);
|
|
673
|
-
}
|
|
674
|
-
function $f6c31cce2adf654f$var$shouldPreventDefault(target) {
|
|
675
|
-
return !(target instanceof HTMLElement) || !target.draggable;
|
|
676
|
-
}
|
|
677
|
-
function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) {
|
|
678
|
-
if (target instanceof HTMLInputElement)
|
|
679
|
-
return !$f6c31cce2adf654f$var$isValidInputKey(target, key);
|
|
680
|
-
if (target instanceof HTMLButtonElement)
|
|
681
|
-
return target.type !== "submit" && target.type !== "reset";
|
|
682
|
-
return true;
|
|
683
|
-
}
|
|
684
|
-
const $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
685
|
-
"checkbox",
|
|
686
|
-
"radio",
|
|
687
|
-
"range",
|
|
688
|
-
"color",
|
|
689
|
-
"file",
|
|
690
|
-
"image",
|
|
691
|
-
"button",
|
|
692
|
-
"submit",
|
|
693
|
-
"reset"
|
|
694
|
-
]);
|
|
695
|
-
function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
|
|
696
|
-
return target.type === "checkbox" || target.type === "radio" ? key === " " : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type);
|
|
697
|
-
}
|
|
698
|
-
class $8a9cb279dc87e130$export$905e7fc544a71f36 {
|
|
699
|
-
isDefaultPrevented() {
|
|
700
|
-
return this.nativeEvent.defaultPrevented;
|
|
701
|
-
}
|
|
702
|
-
preventDefault() {
|
|
703
|
-
this.defaultPrevented = true;
|
|
704
|
-
this.nativeEvent.preventDefault();
|
|
705
|
-
}
|
|
706
|
-
stopPropagation() {
|
|
707
|
-
this.nativeEvent.stopPropagation();
|
|
708
|
-
this.isPropagationStopped = () => true;
|
|
709
|
-
}
|
|
710
|
-
isPropagationStopped() {
|
|
711
|
-
return false;
|
|
712
|
-
}
|
|
713
|
-
persist() {
|
|
714
|
-
}
|
|
715
|
-
constructor(type, nativeEvent) {
|
|
716
|
-
this.nativeEvent = nativeEvent;
|
|
717
|
-
this.target = nativeEvent.target;
|
|
718
|
-
this.currentTarget = nativeEvent.currentTarget;
|
|
719
|
-
this.relatedTarget = nativeEvent.relatedTarget;
|
|
720
|
-
this.bubbles = nativeEvent.bubbles;
|
|
721
|
-
this.cancelable = nativeEvent.cancelable;
|
|
722
|
-
this.defaultPrevented = nativeEvent.defaultPrevented;
|
|
723
|
-
this.eventPhase = nativeEvent.eventPhase;
|
|
724
|
-
this.isTrusted = nativeEvent.isTrusted;
|
|
725
|
-
this.timeStamp = nativeEvent.timeStamp;
|
|
726
|
-
this.type = type;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
730
|
-
let stateRef = useRef({
|
|
731
|
-
isFocused: false,
|
|
732
|
-
observer: null
|
|
733
|
-
});
|
|
734
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
735
|
-
const state = stateRef.current;
|
|
736
|
-
return () => {
|
|
737
|
-
if (state.observer) {
|
|
738
|
-
state.observer.disconnect();
|
|
739
|
-
state.observer = null;
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
}, []);
|
|
743
|
-
let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
744
|
-
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
745
|
-
});
|
|
746
|
-
return useCallback((e) => {
|
|
747
|
-
if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
|
|
748
|
-
stateRef.current.isFocused = true;
|
|
749
|
-
let target = e.target;
|
|
750
|
-
let onBlurHandler = (e2) => {
|
|
751
|
-
stateRef.current.isFocused = false;
|
|
752
|
-
if (target.disabled)
|
|
753
|
-
dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", e2));
|
|
754
|
-
if (stateRef.current.observer) {
|
|
755
|
-
stateRef.current.observer.disconnect();
|
|
756
|
-
stateRef.current.observer = null;
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
|
-
target.addEventListener("focusout", onBlurHandler, {
|
|
760
|
-
once: true
|
|
761
|
-
});
|
|
762
|
-
stateRef.current.observer = new MutationObserver(() => {
|
|
763
|
-
if (stateRef.current.isFocused && target.disabled) {
|
|
764
|
-
stateRef.current.observer.disconnect();
|
|
765
|
-
let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
|
|
766
|
-
target.dispatchEvent(new FocusEvent("blur", {
|
|
767
|
-
relatedTarget: relatedTargetEl
|
|
768
|
-
}));
|
|
769
|
-
target.dispatchEvent(new FocusEvent("focusout", {
|
|
770
|
-
bubbles: true,
|
|
771
|
-
relatedTarget: relatedTargetEl
|
|
772
|
-
}));
|
|
773
|
-
}
|
|
774
|
-
});
|
|
775
|
-
stateRef.current.observer.observe(target, {
|
|
776
|
-
attributes: true,
|
|
777
|
-
attributeFilter: [
|
|
778
|
-
"disabled"
|
|
779
|
-
]
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
}, [
|
|
783
|
-
dispatchBlur
|
|
784
|
-
]);
|
|
785
|
-
}
|
|
786
|
-
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
787
|
-
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
788
|
-
const onBlur = useCallback((e) => {
|
|
789
|
-
if (e.target === e.currentTarget) {
|
|
790
|
-
if (onBlurProp)
|
|
791
|
-
onBlurProp(e);
|
|
792
|
-
if (onFocusChange)
|
|
793
|
-
onFocusChange(false);
|
|
794
|
-
return true;
|
|
795
|
-
}
|
|
796
|
-
}, [
|
|
797
|
-
onBlurProp,
|
|
798
|
-
onFocusChange
|
|
799
|
-
]);
|
|
800
|
-
const onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
801
|
-
const onFocus = useCallback((e) => {
|
|
802
|
-
if (e.target === e.currentTarget && document.activeElement === e.target) {
|
|
803
|
-
if (onFocusProp)
|
|
804
|
-
onFocusProp(e);
|
|
805
|
-
if (onFocusChange)
|
|
806
|
-
onFocusChange(true);
|
|
807
|
-
onSyntheticFocus(e);
|
|
808
|
-
}
|
|
809
|
-
}, [
|
|
810
|
-
onFocusChange,
|
|
811
|
-
onFocusProp,
|
|
812
|
-
onSyntheticFocus
|
|
813
|
-
]);
|
|
814
|
-
return {
|
|
815
|
-
focusProps: {
|
|
816
|
-
onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
|
|
817
|
-
onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : void 0
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
let $507fabe10e71c6fb$var$currentModality = null;
|
|
822
|
-
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
823
|
-
let $507fabe10e71c6fb$var$hasSetupGlobalListeners = false;
|
|
824
|
-
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
825
|
-
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
826
|
-
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
827
|
-
Tab: true,
|
|
828
|
-
Escape: true
|
|
829
|
-
};
|
|
830
|
-
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
831
|
-
for (let handler of $507fabe10e71c6fb$var$changeHandlers)
|
|
832
|
-
handler(modality, e);
|
|
833
|
-
}
|
|
834
|
-
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
835
|
-
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
836
|
-
}
|
|
837
|
-
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
838
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
839
|
-
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
840
|
-
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
841
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
845
|
-
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
846
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
847
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
848
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
852
|
-
if ($6a7db85432448f7f$export$60278871457622de(e)) {
|
|
853
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
854
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
858
|
-
if (e.target === window || e.target === document)
|
|
859
|
-
return;
|
|
860
|
-
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
861
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
862
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
863
|
-
}
|
|
864
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
865
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
866
|
-
}
|
|
867
|
-
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
868
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
869
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
870
|
-
}
|
|
871
|
-
function $507fabe10e71c6fb$var$setupGlobalFocusEvents() {
|
|
872
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$var$hasSetupGlobalListeners)
|
|
873
|
-
return;
|
|
874
|
-
let focus = HTMLElement.prototype.focus;
|
|
875
|
-
HTMLElement.prototype.focus = function() {
|
|
876
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
877
|
-
focus.apply(this, arguments);
|
|
878
|
-
};
|
|
879
|
-
document.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
880
|
-
document.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
881
|
-
document.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
882
|
-
window.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
883
|
-
window.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
884
|
-
if (typeof PointerEvent !== "undefined") {
|
|
885
|
-
document.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
886
|
-
document.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
887
|
-
document.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
888
|
-
} else {
|
|
889
|
-
document.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
890
|
-
document.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
891
|
-
document.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
892
|
-
}
|
|
893
|
-
$507fabe10e71c6fb$var$hasSetupGlobalListeners = true;
|
|
894
|
-
}
|
|
895
|
-
if (typeof document !== "undefined") {
|
|
896
|
-
if (document.readyState !== "loading")
|
|
897
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
898
|
-
else
|
|
899
|
-
document.addEventListener("DOMContentLoaded", $507fabe10e71c6fb$var$setupGlobalFocusEvents);
|
|
900
|
-
}
|
|
901
|
-
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
902
|
-
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
903
|
-
}
|
|
904
|
-
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
905
|
-
return $507fabe10e71c6fb$var$currentModality;
|
|
906
|
-
}
|
|
907
|
-
function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
|
|
908
|
-
$507fabe10e71c6fb$var$currentModality = modality;
|
|
909
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
|
|
910
|
-
}
|
|
911
|
-
function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
912
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
913
|
-
let [modality, setModality] = useState($507fabe10e71c6fb$var$currentModality);
|
|
914
|
-
useEffect(() => {
|
|
915
|
-
let handler = () => {
|
|
916
|
-
setModality($507fabe10e71c6fb$var$currentModality);
|
|
917
|
-
};
|
|
918
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
919
|
-
return () => {
|
|
920
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
921
|
-
};
|
|
922
|
-
}, []);
|
|
923
|
-
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
|
|
924
|
-
}
|
|
925
|
-
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
926
|
-
return !(isTextInput && modality === "keyboard" && e instanceof KeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
927
|
-
}
|
|
928
|
-
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
929
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
930
|
-
useEffect(() => {
|
|
931
|
-
let handler = (modality, e) => {
|
|
932
|
-
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(opts === null || opts === void 0 ? void 0 : opts.isTextInput, modality, e))
|
|
933
|
-
return;
|
|
934
|
-
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
935
|
-
};
|
|
936
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
937
|
-
return () => {
|
|
938
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
939
|
-
};
|
|
940
|
-
}, deps);
|
|
941
|
-
}
|
|
942
|
-
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
943
|
-
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
944
|
-
let state = useRef({
|
|
945
|
-
isFocusWithin: false
|
|
946
|
-
});
|
|
947
|
-
let onBlur = useCallback((e) => {
|
|
948
|
-
if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
|
|
949
|
-
state.current.isFocusWithin = false;
|
|
950
|
-
if (onBlurWithin)
|
|
951
|
-
onBlurWithin(e);
|
|
952
|
-
if (onFocusWithinChange)
|
|
953
|
-
onFocusWithinChange(false);
|
|
954
|
-
}
|
|
955
|
-
}, [
|
|
956
|
-
onBlurWithin,
|
|
957
|
-
onFocusWithinChange,
|
|
958
|
-
state
|
|
959
|
-
]);
|
|
960
|
-
let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
961
|
-
let onFocus = useCallback((e) => {
|
|
962
|
-
if (!state.current.isFocusWithin && document.activeElement === e.target) {
|
|
963
|
-
if (onFocusWithin)
|
|
964
|
-
onFocusWithin(e);
|
|
965
|
-
if (onFocusWithinChange)
|
|
966
|
-
onFocusWithinChange(true);
|
|
967
|
-
state.current.isFocusWithin = true;
|
|
968
|
-
onSyntheticFocus(e);
|
|
969
|
-
}
|
|
970
|
-
}, [
|
|
971
|
-
onFocusWithin,
|
|
972
|
-
onFocusWithinChange,
|
|
973
|
-
onSyntheticFocus
|
|
974
|
-
]);
|
|
975
|
-
if (isDisabled)
|
|
976
|
-
return {
|
|
977
|
-
focusWithinProps: {
|
|
978
|
-
onFocus: null,
|
|
979
|
-
onBlur: null
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
|
-
return {
|
|
983
|
-
focusWithinProps: {
|
|
984
|
-
onFocus,
|
|
985
|
-
onBlur
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
990
|
-
let $6179b936705e76d3$var$hoverCount = 0;
|
|
991
|
-
function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
|
|
992
|
-
$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;
|
|
993
|
-
setTimeout(() => {
|
|
994
|
-
$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
995
|
-
}, 50);
|
|
996
|
-
}
|
|
997
|
-
function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
|
|
998
|
-
if (e.pointerType === "touch")
|
|
999
|
-
$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
|
|
1000
|
-
}
|
|
1001
|
-
function $6179b936705e76d3$var$setupGlobalTouchEvents() {
|
|
1002
|
-
if (typeof document === "undefined")
|
|
1003
|
-
return;
|
|
1004
|
-
if (typeof PointerEvent !== "undefined")
|
|
1005
|
-
document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
|
|
1006
|
-
else
|
|
1007
|
-
document.addEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
|
|
1008
|
-
$6179b936705e76d3$var$hoverCount++;
|
|
1009
|
-
return () => {
|
|
1010
|
-
$6179b936705e76d3$var$hoverCount--;
|
|
1011
|
-
if ($6179b936705e76d3$var$hoverCount > 0)
|
|
1012
|
-
return;
|
|
1013
|
-
if (typeof PointerEvent !== "undefined")
|
|
1014
|
-
document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
|
|
1015
|
-
else
|
|
1016
|
-
document.removeEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
function $6179b936705e76d3$export$ae780daf29e6d456(props) {
|
|
1020
|
-
let { onHoverStart, onHoverChange, onHoverEnd, isDisabled } = props;
|
|
1021
|
-
let [isHovered, setHovered] = useState(false);
|
|
1022
|
-
let state = useRef({
|
|
1023
|
-
isHovered: false,
|
|
1024
|
-
ignoreEmulatedMouseEvents: false,
|
|
1025
|
-
pointerType: "",
|
|
1026
|
-
target: null
|
|
1027
|
-
}).current;
|
|
1028
|
-
useEffect($6179b936705e76d3$var$setupGlobalTouchEvents, []);
|
|
1029
|
-
let { hoverProps, triggerHoverEnd } = useMemo(() => {
|
|
1030
|
-
let triggerHoverStart = (event, pointerType) => {
|
|
1031
|
-
state.pointerType = pointerType;
|
|
1032
|
-
if (isDisabled || pointerType === "touch" || state.isHovered || !event.currentTarget.contains(event.target))
|
|
1033
|
-
return;
|
|
1034
|
-
state.isHovered = true;
|
|
1035
|
-
let target = event.currentTarget;
|
|
1036
|
-
state.target = target;
|
|
1037
|
-
if (onHoverStart)
|
|
1038
|
-
onHoverStart({
|
|
1039
|
-
type: "hoverstart",
|
|
1040
|
-
target,
|
|
1041
|
-
pointerType
|
|
1042
|
-
});
|
|
1043
|
-
if (onHoverChange)
|
|
1044
|
-
onHoverChange(true);
|
|
1045
|
-
setHovered(true);
|
|
1046
|
-
};
|
|
1047
|
-
let triggerHoverEnd2 = (event, pointerType) => {
|
|
1048
|
-
state.pointerType = "";
|
|
1049
|
-
state.target = null;
|
|
1050
|
-
if (pointerType === "touch" || !state.isHovered)
|
|
1051
|
-
return;
|
|
1052
|
-
state.isHovered = false;
|
|
1053
|
-
let target = event.currentTarget;
|
|
1054
|
-
if (onHoverEnd)
|
|
1055
|
-
onHoverEnd({
|
|
1056
|
-
type: "hoverend",
|
|
1057
|
-
target,
|
|
1058
|
-
pointerType
|
|
1059
|
-
});
|
|
1060
|
-
if (onHoverChange)
|
|
1061
|
-
onHoverChange(false);
|
|
1062
|
-
setHovered(false);
|
|
1063
|
-
};
|
|
1064
|
-
let hoverProps2 = {};
|
|
1065
|
-
if (typeof PointerEvent !== "undefined") {
|
|
1066
|
-
hoverProps2.onPointerEnter = (e) => {
|
|
1067
|
-
if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === "mouse")
|
|
1068
|
-
return;
|
|
1069
|
-
triggerHoverStart(e, e.pointerType);
|
|
1070
|
-
};
|
|
1071
|
-
hoverProps2.onPointerLeave = (e) => {
|
|
1072
|
-
if (!isDisabled && e.currentTarget.contains(e.target))
|
|
1073
|
-
triggerHoverEnd2(e, e.pointerType);
|
|
1074
|
-
};
|
|
1075
|
-
} else {
|
|
1076
|
-
hoverProps2.onTouchStart = () => {
|
|
1077
|
-
state.ignoreEmulatedMouseEvents = true;
|
|
1078
|
-
};
|
|
1079
|
-
hoverProps2.onMouseEnter = (e) => {
|
|
1080
|
-
if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents)
|
|
1081
|
-
triggerHoverStart(e, "mouse");
|
|
1082
|
-
state.ignoreEmulatedMouseEvents = false;
|
|
1083
|
-
};
|
|
1084
|
-
hoverProps2.onMouseLeave = (e) => {
|
|
1085
|
-
if (!isDisabled && e.currentTarget.contains(e.target))
|
|
1086
|
-
triggerHoverEnd2(e, "mouse");
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
return {
|
|
1090
|
-
hoverProps: hoverProps2,
|
|
1091
|
-
triggerHoverEnd: triggerHoverEnd2
|
|
1092
|
-
};
|
|
1093
|
-
}, [
|
|
1094
|
-
onHoverStart,
|
|
1095
|
-
onHoverChange,
|
|
1096
|
-
onHoverEnd,
|
|
1097
|
-
isDisabled,
|
|
1098
|
-
state
|
|
1099
|
-
]);
|
|
1100
|
-
useEffect(() => {
|
|
1101
|
-
if (isDisabled)
|
|
1102
|
-
triggerHoverEnd({
|
|
1103
|
-
currentTarget: state.target
|
|
1104
|
-
}, state.pointerType);
|
|
1105
|
-
}, [
|
|
1106
|
-
isDisabled
|
|
1107
|
-
]);
|
|
1108
|
-
return {
|
|
1109
|
-
hoverProps,
|
|
1110
|
-
isHovered
|
|
1111
|
-
};
|
|
1112
|
-
}
|
|
1113
|
-
function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
1114
|
-
let { ref, onInteractOutside, isDisabled, onInteractOutsideStart } = props;
|
|
1115
|
-
let stateRef = useRef({
|
|
1116
|
-
isPointerDown: false,
|
|
1117
|
-
ignoreEmulatedMouseEvents: false
|
|
1118
|
-
});
|
|
1119
|
-
let onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
1120
|
-
if (onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) {
|
|
1121
|
-
if (onInteractOutsideStart)
|
|
1122
|
-
onInteractOutsideStart(e);
|
|
1123
|
-
stateRef.current.isPointerDown = true;
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
let triggerInteractOutside = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
1127
|
-
if (onInteractOutside)
|
|
1128
|
-
onInteractOutside(e);
|
|
1129
|
-
});
|
|
1130
|
-
useEffect(() => {
|
|
1131
|
-
let state = stateRef.current;
|
|
1132
|
-
if (isDisabled)
|
|
1133
|
-
return;
|
|
1134
|
-
if (typeof PointerEvent !== "undefined") {
|
|
1135
|
-
let onPointerUp = (e) => {
|
|
1136
|
-
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref))
|
|
1137
|
-
triggerInteractOutside(e);
|
|
1138
|
-
state.isPointerDown = false;
|
|
1139
|
-
};
|
|
1140
|
-
document.addEventListener("pointerdown", onPointerDown, true);
|
|
1141
|
-
document.addEventListener("pointerup", onPointerUp, true);
|
|
1142
|
-
return () => {
|
|
1143
|
-
document.removeEventListener("pointerdown", onPointerDown, true);
|
|
1144
|
-
document.removeEventListener("pointerup", onPointerUp, true);
|
|
1145
|
-
};
|
|
1146
|
-
} else {
|
|
1147
|
-
let onMouseUp = (e) => {
|
|
1148
|
-
if (state.ignoreEmulatedMouseEvents)
|
|
1149
|
-
state.ignoreEmulatedMouseEvents = false;
|
|
1150
|
-
else if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref))
|
|
1151
|
-
triggerInteractOutside(e);
|
|
1152
|
-
state.isPointerDown = false;
|
|
1153
|
-
};
|
|
1154
|
-
let onTouchEnd = (e) => {
|
|
1155
|
-
state.ignoreEmulatedMouseEvents = true;
|
|
1156
|
-
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref))
|
|
1157
|
-
triggerInteractOutside(e);
|
|
1158
|
-
state.isPointerDown = false;
|
|
1159
|
-
};
|
|
1160
|
-
document.addEventListener("mousedown", onPointerDown, true);
|
|
1161
|
-
document.addEventListener("mouseup", onMouseUp, true);
|
|
1162
|
-
document.addEventListener("touchstart", onPointerDown, true);
|
|
1163
|
-
document.addEventListener("touchend", onTouchEnd, true);
|
|
1164
|
-
return () => {
|
|
1165
|
-
document.removeEventListener("mousedown", onPointerDown, true);
|
|
1166
|
-
document.removeEventListener("mouseup", onMouseUp, true);
|
|
1167
|
-
document.removeEventListener("touchstart", onPointerDown, true);
|
|
1168
|
-
document.removeEventListener("touchend", onTouchEnd, true);
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
}, [
|
|
1172
|
-
ref,
|
|
1173
|
-
isDisabled,
|
|
1174
|
-
onPointerDown,
|
|
1175
|
-
triggerInteractOutside
|
|
1176
|
-
]);
|
|
1177
|
-
}
|
|
1178
|
-
function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {
|
|
1179
|
-
if (event.button > 0)
|
|
1180
|
-
return false;
|
|
1181
|
-
if (event.target) {
|
|
1182
|
-
const ownerDocument = event.target.ownerDocument;
|
|
1183
|
-
if (!ownerDocument || !ownerDocument.documentElement.contains(event.target))
|
|
1184
|
-
return false;
|
|
1185
|
-
if (event.target.closest("[data-react-aria-top-layer]"))
|
|
1186
|
-
return false;
|
|
1187
|
-
}
|
|
1188
|
-
return ref.current && !ref.current.contains(event.target);
|
|
1189
|
-
}
|
|
1190
|
-
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
1191
|
-
if (!handler)
|
|
1192
|
-
return;
|
|
1193
|
-
let shouldStopPropagation = true;
|
|
1194
|
-
return (e) => {
|
|
1195
|
-
let event = __spreadProps(__spreadValues({}, e), {
|
|
1196
|
-
preventDefault() {
|
|
1197
|
-
e.preventDefault();
|
|
1198
|
-
},
|
|
1199
|
-
isDefaultPrevented() {
|
|
1200
|
-
return e.isDefaultPrevented();
|
|
1201
|
-
},
|
|
1202
|
-
stopPropagation() {
|
|
1203
|
-
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
1204
|
-
},
|
|
1205
|
-
continuePropagation() {
|
|
1206
|
-
shouldStopPropagation = false;
|
|
1207
|
-
}
|
|
1208
|
-
});
|
|
1209
|
-
handler(event);
|
|
1210
|
-
if (shouldStopPropagation)
|
|
1211
|
-
e.stopPropagation();
|
|
1212
|
-
};
|
|
1213
|
-
}
|
|
1214
|
-
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
1215
|
-
return {
|
|
1216
|
-
keyboardProps: props.isDisabled ? {} : {
|
|
1217
|
-
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
1218
|
-
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
}
|
|
1222
|
-
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
1223
|
-
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
1224
|
-
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
1225
|
-
const timeRef = useRef(null);
|
|
1226
|
-
let { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
1227
|
-
let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({
|
|
1228
|
-
isDisabled,
|
|
1229
|
-
onPressStart(e) {
|
|
1230
|
-
e.continuePropagation();
|
|
1231
|
-
if (e.pointerType === "mouse" || e.pointerType === "touch") {
|
|
1232
|
-
if (onLongPressStart)
|
|
1233
|
-
onLongPressStart(__spreadProps(__spreadValues({}, e), {
|
|
1234
|
-
type: "longpressstart"
|
|
1235
|
-
}));
|
|
1236
|
-
timeRef.current = setTimeout(() => {
|
|
1237
|
-
e.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
1238
|
-
bubbles: true
|
|
1239
|
-
}));
|
|
1240
|
-
if (onLongPress)
|
|
1241
|
-
onLongPress(__spreadProps(__spreadValues({}, e), {
|
|
1242
|
-
type: "longpress"
|
|
1243
|
-
}));
|
|
1244
|
-
timeRef.current = null;
|
|
1245
|
-
}, threshold);
|
|
1246
|
-
if (e.pointerType === "touch") {
|
|
1247
|
-
let onContextMenu = (e2) => {
|
|
1248
|
-
e2.preventDefault();
|
|
1249
|
-
};
|
|
1250
|
-
addGlobalListener(e.target, "contextmenu", onContextMenu, {
|
|
1251
|
-
once: true
|
|
1252
|
-
});
|
|
1253
|
-
addGlobalListener(window, "pointerup", () => {
|
|
1254
|
-
setTimeout(() => {
|
|
1255
|
-
removeGlobalListener(e.target, "contextmenu", onContextMenu);
|
|
1256
|
-
}, 30);
|
|
1257
|
-
}, {
|
|
1258
|
-
once: true
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
onPressEnd(e) {
|
|
1264
|
-
if (timeRef.current)
|
|
1265
|
-
clearTimeout(timeRef.current);
|
|
1266
|
-
if (onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch"))
|
|
1267
|
-
onLongPressEnd(__spreadProps(__spreadValues({}, e), {
|
|
1268
|
-
type: "longpressend"
|
|
1269
|
-
}));
|
|
1270
|
-
}
|
|
1271
|
-
});
|
|
1272
|
-
let descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled ? accessibilityDescription : null);
|
|
1273
|
-
return {
|
|
1274
|
-
longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
|
|
1275
|
-
};
|
|
1276
|
-
}
|
|
1277
|
-
function $6a99195332edec8b$export$80f3e147d781571c(element) {
|
|
1278
|
-
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
1279
|
-
let lastFocusedElement = document.activeElement;
|
|
1280
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
1281
|
-
if (document.activeElement === lastFocusedElement && document.contains(element))
|
|
1282
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
1283
|
-
});
|
|
1284
|
-
} else
|
|
1285
|
-
$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
1286
|
-
}
|
|
1287
|
-
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
1288
|
-
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement))
|
|
1289
|
-
return false;
|
|
1290
|
-
let { display, visibility } = element.style;
|
|
1291
|
-
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
1292
|
-
if (isVisible) {
|
|
1293
|
-
const { getComputedStyle } = element.ownerDocument.defaultView;
|
|
1294
|
-
let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
|
|
1295
|
-
isVisible = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
|
|
1296
|
-
}
|
|
1297
|
-
return isVisible;
|
|
1298
|
-
}
|
|
1299
|
-
function $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) {
|
|
1300
|
-
return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
|
|
1301
|
-
}
|
|
1302
|
-
function $645f2e67b85a24c9$export$e989c0fffaa6b27a(element, childElement) {
|
|
1303
|
-
return element.nodeName !== "#comment" && $645f2e67b85a24c9$var$isStyleVisible(element) && $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) && (!element.parentElement || $645f2e67b85a24c9$export$e989c0fffaa6b27a(element.parentElement, element));
|
|
1304
|
-
}
|
|
1305
|
-
const $9bf71ea28793e738$var$FocusContext = /* @__PURE__ */ React__default.createContext(null);
|
|
1306
|
-
let $9bf71ea28793e738$var$activeScope = null;
|
|
1307
|
-
function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
1308
|
-
let { children, contain, restoreFocus, autoFocus } = props;
|
|
1309
|
-
let startRef = useRef();
|
|
1310
|
-
let endRef = useRef();
|
|
1311
|
-
let scopeRef = useRef([]);
|
|
1312
|
-
let { parentNode } = useContext($9bf71ea28793e738$var$FocusContext) || {};
|
|
1313
|
-
let node = useMemo(() => new $9bf71ea28793e738$var$TreeNode({
|
|
1314
|
-
scopeRef
|
|
1315
|
-
}), [
|
|
1316
|
-
scopeRef
|
|
1317
|
-
]);
|
|
1318
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1319
|
-
let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;
|
|
1320
|
-
if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {
|
|
1321
|
-
let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
1322
|
-
if (activeNode)
|
|
1323
|
-
parent = activeNode;
|
|
1324
|
-
}
|
|
1325
|
-
parent.addChild(node);
|
|
1326
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node);
|
|
1327
|
-
}, [
|
|
1328
|
-
node,
|
|
1329
|
-
parentNode
|
|
1330
|
-
]);
|
|
1331
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1332
|
-
let node2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
1333
|
-
node2.contain = contain;
|
|
1334
|
-
}, [
|
|
1335
|
-
contain
|
|
1336
|
-
]);
|
|
1337
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1338
|
-
let node2 = startRef.current.nextSibling;
|
|
1339
|
-
let nodes = [];
|
|
1340
|
-
while (node2 && node2 !== endRef.current) {
|
|
1341
|
-
nodes.push(node2);
|
|
1342
|
-
node2 = node2.nextSibling;
|
|
1343
|
-
}
|
|
1344
|
-
scopeRef.current = nodes;
|
|
1345
|
-
}, [
|
|
1346
|
-
children
|
|
1347
|
-
]);
|
|
1348
|
-
$9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain);
|
|
1349
|
-
$9bf71ea28793e738$var$useFocusContainment(scopeRef, contain);
|
|
1350
|
-
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
1351
|
-
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
1352
|
-
useEffect(() => {
|
|
1353
|
-
if (scopeRef) {
|
|
1354
|
-
let activeElement = document.activeElement;
|
|
1355
|
-
let scope = null;
|
|
1356
|
-
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
1357
|
-
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse())
|
|
1358
|
-
if ($9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current))
|
|
1359
|
-
scope = node2;
|
|
1360
|
-
if (scope === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef))
|
|
1361
|
-
$9bf71ea28793e738$var$activeScope = scope.scopeRef;
|
|
1362
|
-
}
|
|
1363
|
-
return () => {
|
|
1364
|
-
let parentScope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef).parent.scopeRef;
|
|
1365
|
-
if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope)))
|
|
1366
|
-
$9bf71ea28793e738$var$activeScope = parentScope;
|
|
1367
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
|
|
1368
|
-
};
|
|
1369
|
-
}
|
|
1370
|
-
}, [
|
|
1371
|
-
scopeRef
|
|
1372
|
-
]);
|
|
1373
|
-
let focusManager = useMemo(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []);
|
|
1374
|
-
let value = useMemo(() => ({
|
|
1375
|
-
focusManager,
|
|
1376
|
-
parentNode: node
|
|
1377
|
-
}), [
|
|
1378
|
-
node,
|
|
1379
|
-
focusManager
|
|
1380
|
-
]);
|
|
1381
|
-
return /* @__PURE__ */ React__default.createElement($9bf71ea28793e738$var$FocusContext.Provider, {
|
|
1382
|
-
value
|
|
1383
|
-
}, /* @__PURE__ */ React__default.createElement("span", {
|
|
1384
|
-
"data-focus-scope-start": true,
|
|
1385
|
-
hidden: true,
|
|
1386
|
-
ref: startRef
|
|
1387
|
-
}), children, /* @__PURE__ */ React__default.createElement("span", {
|
|
1388
|
-
"data-focus-scope-end": true,
|
|
1389
|
-
hidden: true,
|
|
1390
|
-
ref: endRef
|
|
1391
|
-
}));
|
|
1392
|
-
}
|
|
1393
|
-
function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
1394
|
-
return {
|
|
1395
|
-
focusNext(opts = {}) {
|
|
1396
|
-
let scope = scopeRef.current;
|
|
1397
|
-
let { from, tabbable, wrap, accept } = opts;
|
|
1398
|
-
let node = from || document.activeElement;
|
|
1399
|
-
let sentinel = scope[0].previousElementSibling;
|
|
1400
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1401
|
-
tabbable,
|
|
1402
|
-
accept
|
|
1403
|
-
}, scope);
|
|
1404
|
-
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
1405
|
-
let nextNode = walker.nextNode();
|
|
1406
|
-
if (!nextNode && wrap) {
|
|
1407
|
-
walker.currentNode = sentinel;
|
|
1408
|
-
nextNode = walker.nextNode();
|
|
1409
|
-
}
|
|
1410
|
-
if (nextNode)
|
|
1411
|
-
$9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
1412
|
-
return nextNode;
|
|
1413
|
-
},
|
|
1414
|
-
focusPrevious(opts = {}) {
|
|
1415
|
-
let scope = scopeRef.current;
|
|
1416
|
-
let { from, tabbable, wrap, accept } = opts;
|
|
1417
|
-
let node = from || document.activeElement;
|
|
1418
|
-
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
1419
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1420
|
-
tabbable,
|
|
1421
|
-
accept
|
|
1422
|
-
}, scope);
|
|
1423
|
-
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
1424
|
-
let previousNode = walker.previousNode();
|
|
1425
|
-
if (!previousNode && wrap) {
|
|
1426
|
-
walker.currentNode = sentinel;
|
|
1427
|
-
previousNode = walker.previousNode();
|
|
1428
|
-
}
|
|
1429
|
-
if (previousNode)
|
|
1430
|
-
$9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
1431
|
-
return previousNode;
|
|
1432
|
-
},
|
|
1433
|
-
focusFirst(opts = {}) {
|
|
1434
|
-
let scope = scopeRef.current;
|
|
1435
|
-
let { tabbable, accept } = opts;
|
|
1436
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1437
|
-
tabbable,
|
|
1438
|
-
accept
|
|
1439
|
-
}, scope);
|
|
1440
|
-
walker.currentNode = scope[0].previousElementSibling;
|
|
1441
|
-
let nextNode = walker.nextNode();
|
|
1442
|
-
if (nextNode)
|
|
1443
|
-
$9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
1444
|
-
return nextNode;
|
|
1445
|
-
},
|
|
1446
|
-
focusLast(opts = {}) {
|
|
1447
|
-
let scope = scopeRef.current;
|
|
1448
|
-
let { tabbable, accept } = opts;
|
|
1449
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1450
|
-
tabbable,
|
|
1451
|
-
accept
|
|
1452
|
-
}, scope);
|
|
1453
|
-
walker.currentNode = scope[scope.length - 1].nextElementSibling;
|
|
1454
|
-
let previousNode = walker.previousNode();
|
|
1455
|
-
if (previousNode)
|
|
1456
|
-
$9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
1457
|
-
return previousNode;
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
|
-
}
|
|
1461
|
-
const $9bf71ea28793e738$var$focusableElements = [
|
|
1462
|
-
"input:not([disabled]):not([type=hidden])",
|
|
1463
|
-
"select:not([disabled])",
|
|
1464
|
-
"textarea:not([disabled])",
|
|
1465
|
-
"button:not([disabled])",
|
|
1466
|
-
"a[href]",
|
|
1467
|
-
"area[href]",
|
|
1468
|
-
"summary",
|
|
1469
|
-
"iframe",
|
|
1470
|
-
"object",
|
|
1471
|
-
"embed",
|
|
1472
|
-
"audio[controls]",
|
|
1473
|
-
"video[controls]",
|
|
1474
|
-
"[contenteditable]"
|
|
1475
|
-
];
|
|
1476
|
-
const $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
1477
|
-
$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
1478
|
-
const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
1479
|
-
function $9bf71ea28793e738$var$getScopeRoot(scope) {
|
|
1480
|
-
return scope[0].parentElement;
|
|
1481
|
-
}
|
|
1482
|
-
function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
|
|
1483
|
-
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
1484
|
-
while (scope && scope.scopeRef !== scopeRef) {
|
|
1485
|
-
if (scope.contain)
|
|
1486
|
-
return false;
|
|
1487
|
-
scope = scope.parent;
|
|
1488
|
-
}
|
|
1489
|
-
return true;
|
|
1490
|
-
}
|
|
1491
|
-
function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
1492
|
-
let focusedNode = useRef();
|
|
1493
|
-
let raf = useRef(null);
|
|
1494
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1495
|
-
let scope = scopeRef.current;
|
|
1496
|
-
if (!contain) {
|
|
1497
|
-
if (raf.current) {
|
|
1498
|
-
cancelAnimationFrame(raf.current);
|
|
1499
|
-
raf.current = null;
|
|
1500
|
-
}
|
|
1501
|
-
return;
|
|
1502
|
-
}
|
|
1503
|
-
let onKeyDown = (e) => {
|
|
1504
|
-
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef))
|
|
1505
|
-
return;
|
|
1506
|
-
let focusedElement = document.activeElement;
|
|
1507
|
-
let scope2 = scopeRef.current;
|
|
1508
|
-
if (!$9bf71ea28793e738$var$isElementInScope(focusedElement, scope2))
|
|
1509
|
-
return;
|
|
1510
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope2), {
|
|
1511
|
-
tabbable: true
|
|
1512
|
-
}, scope2);
|
|
1513
|
-
walker.currentNode = focusedElement;
|
|
1514
|
-
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
1515
|
-
if (!nextElement) {
|
|
1516
|
-
walker.currentNode = e.shiftKey ? scope2[scope2.length - 1].nextElementSibling : scope2[0].previousElementSibling;
|
|
1517
|
-
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
1518
|
-
}
|
|
1519
|
-
e.preventDefault();
|
|
1520
|
-
if (nextElement)
|
|
1521
|
-
$9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
1522
|
-
};
|
|
1523
|
-
let onFocus = (e) => {
|
|
1524
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(e.target, scopeRef.current)) {
|
|
1525
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
1526
|
-
focusedNode.current = e.target;
|
|
1527
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(e.target, scopeRef)) {
|
|
1528
|
-
if (focusedNode.current)
|
|
1529
|
-
focusedNode.current.focus();
|
|
1530
|
-
else if ($9bf71ea28793e738$var$activeScope)
|
|
1531
|
-
$9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
1532
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef))
|
|
1533
|
-
focusedNode.current = e.target;
|
|
1534
|
-
};
|
|
1535
|
-
let onBlur = (e) => {
|
|
1536
|
-
if (raf.current)
|
|
1537
|
-
cancelAnimationFrame(raf.current);
|
|
1538
|
-
raf.current = requestAnimationFrame(() => {
|
|
1539
|
-
if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(document.activeElement, scopeRef)) {
|
|
1540
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
1541
|
-
if (document.body.contains(e.target)) {
|
|
1542
|
-
focusedNode.current = e.target;
|
|
1543
|
-
focusedNode.current.focus();
|
|
1544
|
-
} else if ($9bf71ea28793e738$var$activeScope)
|
|
1545
|
-
$9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
1546
|
-
}
|
|
1547
|
-
});
|
|
1548
|
-
};
|
|
1549
|
-
document.addEventListener("keydown", onKeyDown, false);
|
|
1550
|
-
document.addEventListener("focusin", onFocus, false);
|
|
1551
|
-
scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
1552
|
-
scope.forEach((element) => element.addEventListener("focusout", onBlur, false));
|
|
1553
|
-
return () => {
|
|
1554
|
-
document.removeEventListener("keydown", onKeyDown, false);
|
|
1555
|
-
document.removeEventListener("focusin", onFocus, false);
|
|
1556
|
-
scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
1557
|
-
scope.forEach((element) => element.removeEventListener("focusout", onBlur, false));
|
|
1558
|
-
};
|
|
1559
|
-
}, [
|
|
1560
|
-
scopeRef,
|
|
1561
|
-
contain
|
|
1562
|
-
]);
|
|
1563
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1564
|
-
return () => {
|
|
1565
|
-
if (raf.current)
|
|
1566
|
-
cancelAnimationFrame(raf.current);
|
|
1567
|
-
};
|
|
1568
|
-
}, [
|
|
1569
|
-
raf
|
|
1570
|
-
]);
|
|
1571
|
-
}
|
|
1572
|
-
function $9bf71ea28793e738$var$isElementInAnyScope(element) {
|
|
1573
|
-
return $9bf71ea28793e738$var$isElementInChildScope(element);
|
|
1574
|
-
}
|
|
1575
|
-
function $9bf71ea28793e738$var$isElementInScope(element, scope) {
|
|
1576
|
-
return scope.some((node) => node.contains(element));
|
|
1577
|
-
}
|
|
1578
|
-
function $9bf71ea28793e738$var$isElementInChildScope(element, scope = null) {
|
|
1579
|
-
if (element instanceof Element && element.closest("[data-react-aria-top-layer]"))
|
|
1580
|
-
return true;
|
|
1581
|
-
for (let { scopeRef: s } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope))) {
|
|
1582
|
-
if ($9bf71ea28793e738$var$isElementInScope(element, s.current))
|
|
1583
|
-
return true;
|
|
1584
|
-
}
|
|
1585
|
-
return false;
|
|
1586
|
-
}
|
|
1587
|
-
function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
|
|
1588
|
-
return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);
|
|
1589
|
-
}
|
|
1590
|
-
function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
|
|
1591
|
-
var _focusScopeTree_getTreeNode;
|
|
1592
|
-
let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
|
|
1593
|
-
while (parent) {
|
|
1594
|
-
if (parent.scopeRef === ancestor)
|
|
1595
|
-
return true;
|
|
1596
|
-
parent = parent.parent;
|
|
1597
|
-
}
|
|
1598
|
-
return false;
|
|
1599
|
-
}
|
|
1600
|
-
function $9bf71ea28793e738$var$focusElement(element, scroll = false) {
|
|
1601
|
-
if (element != null && !scroll)
|
|
1602
|
-
try {
|
|
1603
|
-
(0, $6a99195332edec8b$export$80f3e147d781571c)(element);
|
|
1604
|
-
} catch (err) {
|
|
1605
|
-
}
|
|
1606
|
-
else if (element != null)
|
|
1607
|
-
try {
|
|
1608
|
-
element.focus();
|
|
1609
|
-
} catch (err) {
|
|
1610
|
-
}
|
|
1611
|
-
}
|
|
1612
|
-
function $9bf71ea28793e738$var$focusFirstInScope(scope, tabbable = true) {
|
|
1613
|
-
let sentinel = scope[0].previousElementSibling;
|
|
1614
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1615
|
-
tabbable
|
|
1616
|
-
}, scope);
|
|
1617
|
-
walker.currentNode = sentinel;
|
|
1618
|
-
let nextNode = walker.nextNode();
|
|
1619
|
-
if (tabbable && !nextNode) {
|
|
1620
|
-
walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(scope), {
|
|
1621
|
-
tabbable: false
|
|
1622
|
-
}, scope);
|
|
1623
|
-
walker.currentNode = sentinel;
|
|
1624
|
-
nextNode = walker.nextNode();
|
|
1625
|
-
}
|
|
1626
|
-
$9bf71ea28793e738$var$focusElement(nextNode);
|
|
1627
|
-
}
|
|
1628
|
-
function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
1629
|
-
const autoFocusRef = React__default.useRef(autoFocus);
|
|
1630
|
-
useEffect(() => {
|
|
1631
|
-
if (autoFocusRef.current) {
|
|
1632
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
1633
|
-
if (!$9bf71ea28793e738$var$isElementInScope(document.activeElement, $9bf71ea28793e738$var$activeScope.current))
|
|
1634
|
-
$9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
1635
|
-
}
|
|
1636
|
-
autoFocusRef.current = false;
|
|
1637
|
-
}, [
|
|
1638
|
-
scopeRef
|
|
1639
|
-
]);
|
|
1640
|
-
}
|
|
1641
|
-
function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {
|
|
1642
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1643
|
-
if (restore || contain)
|
|
1644
|
-
return;
|
|
1645
|
-
let scope = scopeRef.current;
|
|
1646
|
-
let onFocus = (e) => {
|
|
1647
|
-
let target = e.target;
|
|
1648
|
-
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current))
|
|
1649
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
1650
|
-
else if (!$9bf71ea28793e738$var$isElementInAnyScope(target))
|
|
1651
|
-
$9bf71ea28793e738$var$activeScope = null;
|
|
1652
|
-
};
|
|
1653
|
-
document.addEventListener("focusin", onFocus, false);
|
|
1654
|
-
scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
1655
|
-
return () => {
|
|
1656
|
-
document.removeEventListener("focusin", onFocus, false);
|
|
1657
|
-
scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
1658
|
-
};
|
|
1659
|
-
}, [
|
|
1660
|
-
scopeRef,
|
|
1661
|
-
restore,
|
|
1662
|
-
contain
|
|
1663
|
-
]);
|
|
1664
|
-
}
|
|
1665
|
-
function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
1666
|
-
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
1667
|
-
while (scope && scope.scopeRef !== scopeRef) {
|
|
1668
|
-
if (scope.nodeToRestore)
|
|
1669
|
-
return false;
|
|
1670
|
-
scope = scope.parent;
|
|
1671
|
-
}
|
|
1672
|
-
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
1673
|
-
}
|
|
1674
|
-
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
1675
|
-
const nodeToRestoreRef = useRef(typeof document !== "undefined" ? document.activeElement : null);
|
|
1676
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1677
|
-
let scope = scopeRef.current;
|
|
1678
|
-
if (!restoreFocus || contain)
|
|
1679
|
-
return;
|
|
1680
|
-
let onFocus = () => {
|
|
1681
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(document.activeElement, scopeRef.current))
|
|
1682
|
-
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
1683
|
-
};
|
|
1684
|
-
document.addEventListener("focusin", onFocus, false);
|
|
1685
|
-
scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
1686
|
-
return () => {
|
|
1687
|
-
document.removeEventListener("focusin", onFocus, false);
|
|
1688
|
-
scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
1689
|
-
};
|
|
1690
|
-
}, [
|
|
1691
|
-
scopeRef,
|
|
1692
|
-
contain
|
|
1693
|
-
]);
|
|
1694
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1695
|
-
if (!restoreFocus)
|
|
1696
|
-
return;
|
|
1697
|
-
let onKeyDown = (e) => {
|
|
1698
|
-
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef))
|
|
1699
|
-
return;
|
|
1700
|
-
let focusedElement = document.activeElement;
|
|
1701
|
-
if (!$9bf71ea28793e738$var$isElementInScope(focusedElement, scopeRef.current))
|
|
1702
|
-
return;
|
|
1703
|
-
let nodeToRestore = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef).nodeToRestore;
|
|
1704
|
-
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(document.body, {
|
|
1705
|
-
tabbable: true
|
|
1706
|
-
});
|
|
1707
|
-
walker.currentNode = focusedElement;
|
|
1708
|
-
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
1709
|
-
if (!document.body.contains(nodeToRestore) || nodeToRestore === document.body) {
|
|
1710
|
-
nodeToRestore = null;
|
|
1711
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef).nodeToRestore = null;
|
|
1712
|
-
}
|
|
1713
|
-
if ((!nextElement || !$9bf71ea28793e738$var$isElementInScope(nextElement, scopeRef.current)) && nodeToRestore) {
|
|
1714
|
-
walker.currentNode = nodeToRestore;
|
|
1715
|
-
do
|
|
1716
|
-
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
1717
|
-
while ($9bf71ea28793e738$var$isElementInScope(nextElement, scopeRef.current));
|
|
1718
|
-
e.preventDefault();
|
|
1719
|
-
e.stopPropagation();
|
|
1720
|
-
if (nextElement)
|
|
1721
|
-
$9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
1722
|
-
else if (!$9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore))
|
|
1723
|
-
focusedElement.blur();
|
|
1724
|
-
else
|
|
1725
|
-
$9bf71ea28793e738$var$focusElement(nodeToRestore, true);
|
|
1726
|
-
}
|
|
1727
|
-
};
|
|
1728
|
-
if (!contain)
|
|
1729
|
-
document.addEventListener("keydown", onKeyDown, true);
|
|
1730
|
-
return () => {
|
|
1731
|
-
if (!contain)
|
|
1732
|
-
document.removeEventListener("keydown", onKeyDown, true);
|
|
1733
|
-
};
|
|
1734
|
-
}, [
|
|
1735
|
-
scopeRef,
|
|
1736
|
-
restoreFocus,
|
|
1737
|
-
contain
|
|
1738
|
-
]);
|
|
1739
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1740
|
-
if (!restoreFocus)
|
|
1741
|
-
return;
|
|
1742
|
-
$9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef).nodeToRestore = nodeToRestoreRef.current;
|
|
1743
|
-
return () => {
|
|
1744
|
-
let nodeToRestore = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef).nodeToRestore;
|
|
1745
|
-
if (restoreFocus && nodeToRestore && // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1746
|
-
($9bf71ea28793e738$var$isElementInScope(document.activeElement, scopeRef.current) || document.activeElement === document.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
|
|
1747
|
-
let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
|
|
1748
|
-
requestAnimationFrame(() => {
|
|
1749
|
-
if (document.activeElement === document.body) {
|
|
1750
|
-
let treeNode = clonedTree.getTreeNode(scopeRef);
|
|
1751
|
-
while (treeNode) {
|
|
1752
|
-
if (treeNode.nodeToRestore && document.body.contains(treeNode.nodeToRestore)) {
|
|
1753
|
-
$9bf71ea28793e738$var$focusElement(treeNode.nodeToRestore);
|
|
1754
|
-
return;
|
|
1755
|
-
}
|
|
1756
|
-
treeNode = treeNode.parent;
|
|
1757
|
-
}
|
|
1758
|
-
treeNode = clonedTree.getTreeNode(scopeRef);
|
|
1759
|
-
while (treeNode) {
|
|
1760
|
-
if (treeNode.scopeRef && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode.scopeRef)) {
|
|
1761
|
-
$9bf71ea28793e738$var$focusFirstInScope(treeNode.scopeRef.current, true);
|
|
1762
|
-
return;
|
|
1763
|
-
}
|
|
1764
|
-
treeNode = treeNode.parent;
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
|
-
}, [
|
|
1771
|
-
scopeRef,
|
|
1772
|
-
restoreFocus
|
|
1773
|
-
]);
|
|
1774
|
-
}
|
|
1775
|
-
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
1776
|
-
let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
|
|
1777
|
-
let walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
|
|
1778
|
-
acceptNode(node) {
|
|
1779
|
-
var _opts_from;
|
|
1780
|
-
if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node))
|
|
1781
|
-
return NodeFilter.FILTER_REJECT;
|
|
1782
|
-
if (node.matches(selector) && $645f2e67b85a24c9$export$e989c0fffaa6b27a(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node)))
|
|
1783
|
-
return NodeFilter.FILTER_ACCEPT;
|
|
1784
|
-
return NodeFilter.FILTER_SKIP;
|
|
1785
|
-
}
|
|
1786
|
-
});
|
|
1787
|
-
if (opts === null || opts === void 0 ? void 0 : opts.from)
|
|
1788
|
-
walker.currentNode = opts.from;
|
|
1789
|
-
return walker;
|
|
1790
|
-
}
|
|
1791
|
-
class $9bf71ea28793e738$var$Tree {
|
|
1792
|
-
get size() {
|
|
1793
|
-
return this.fastMap.size;
|
|
1794
|
-
}
|
|
1795
|
-
getTreeNode(data) {
|
|
1796
|
-
return this.fastMap.get(data);
|
|
1797
|
-
}
|
|
1798
|
-
addTreeNode(scopeRef, parent, nodeToRestore) {
|
|
1799
|
-
let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
|
|
1800
|
-
let node = new $9bf71ea28793e738$var$TreeNode({
|
|
1801
|
-
scopeRef
|
|
1802
|
-
});
|
|
1803
|
-
parentNode.addChild(node);
|
|
1804
|
-
node.parent = parentNode;
|
|
1805
|
-
this.fastMap.set(scopeRef, node);
|
|
1806
|
-
if (nodeToRestore)
|
|
1807
|
-
node.nodeToRestore = nodeToRestore;
|
|
1808
|
-
}
|
|
1809
|
-
addNode(node) {
|
|
1810
|
-
this.fastMap.set(node.scopeRef, node);
|
|
1811
|
-
}
|
|
1812
|
-
removeTreeNode(scopeRef) {
|
|
1813
|
-
if (scopeRef === null)
|
|
1814
|
-
return;
|
|
1815
|
-
let node = this.fastMap.get(scopeRef);
|
|
1816
|
-
let parentNode = node.parent;
|
|
1817
|
-
for (let current of this.traverse())
|
|
1818
|
-
if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current))
|
|
1819
|
-
current.nodeToRestore = node.nodeToRestore;
|
|
1820
|
-
let children = node.children;
|
|
1821
|
-
parentNode.removeChild(node);
|
|
1822
|
-
if (children.size > 0)
|
|
1823
|
-
children.forEach((child) => parentNode.addChild(child));
|
|
1824
|
-
this.fastMap.delete(node.scopeRef);
|
|
1825
|
-
}
|
|
1826
|
-
// Pre Order Depth First
|
|
1827
|
-
*traverse(node = this.root) {
|
|
1828
|
-
if (node.scopeRef != null)
|
|
1829
|
-
yield node;
|
|
1830
|
-
if (node.children.size > 0)
|
|
1831
|
-
for (let child of node.children)
|
|
1832
|
-
yield* __yieldStar(this.traverse(child));
|
|
1833
|
-
}
|
|
1834
|
-
clone() {
|
|
1835
|
-
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
1836
|
-
for (let node of this.traverse())
|
|
1837
|
-
newTree.addTreeNode(node.scopeRef, node.parent.scopeRef, node.nodeToRestore);
|
|
1838
|
-
return newTree;
|
|
1839
|
-
}
|
|
1840
|
-
constructor() {
|
|
1841
|
-
this.fastMap = /* @__PURE__ */ new Map();
|
|
1842
|
-
this.root = new $9bf71ea28793e738$var$TreeNode({
|
|
1843
|
-
scopeRef: null
|
|
1844
|
-
});
|
|
1845
|
-
this.fastMap.set(null, this.root);
|
|
1846
|
-
}
|
|
1847
|
-
}
|
|
1848
|
-
class $9bf71ea28793e738$var$TreeNode {
|
|
1849
|
-
addChild(node) {
|
|
1850
|
-
this.children.add(node);
|
|
1851
|
-
node.parent = this;
|
|
1852
|
-
}
|
|
1853
|
-
removeChild(node) {
|
|
1854
|
-
this.children.delete(node);
|
|
1855
|
-
node.parent = void 0;
|
|
1856
|
-
}
|
|
1857
|
-
constructor(props) {
|
|
1858
|
-
this.children = /* @__PURE__ */ new Set();
|
|
1859
|
-
this.contain = false;
|
|
1860
|
-
this.scopeRef = props.scopeRef;
|
|
1861
|
-
}
|
|
1862
|
-
}
|
|
1863
|
-
let $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();
|
|
1864
|
-
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
1865
|
-
let { autoFocus = false, isTextInput, within } = props;
|
|
1866
|
-
let state = useRef({
|
|
1867
|
-
isFocused: false,
|
|
1868
|
-
isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
|
|
1869
|
-
});
|
|
1870
|
-
let [isFocused, setFocused] = useState(false);
|
|
1871
|
-
let [isFocusVisibleState, setFocusVisible] = useState(() => state.current.isFocused && state.current.isFocusVisible);
|
|
1872
|
-
let updateState = useCallback(() => setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
|
|
1873
|
-
let onFocusChange = useCallback((isFocused2) => {
|
|
1874
|
-
state.current.isFocused = isFocused2;
|
|
1875
|
-
setFocused(isFocused2);
|
|
1876
|
-
updateState();
|
|
1877
|
-
}, [
|
|
1878
|
-
updateState
|
|
1879
|
-
]);
|
|
1880
|
-
$507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
|
|
1881
|
-
state.current.isFocusVisible = isFocusVisible;
|
|
1882
|
-
updateState();
|
|
1883
|
-
}, [], {
|
|
1884
|
-
isTextInput
|
|
1885
|
-
});
|
|
1886
|
-
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
|
|
1887
|
-
isDisabled: within,
|
|
1888
|
-
onFocusChange
|
|
1889
|
-
});
|
|
1890
|
-
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
1891
|
-
isDisabled: !within,
|
|
1892
|
-
onFocusWithinChange: onFocusChange
|
|
1893
|
-
});
|
|
1894
|
-
return {
|
|
1895
|
-
isFocused,
|
|
1896
|
-
isFocusVisible: isFocusVisibleState,
|
|
1897
|
-
focusProps: within ? focusWithinProps : focusProps
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
let $e6afbd83fe6ebbd2$var$FocusableContext = /* @__PURE__ */ React__default.createContext(null);
|
|
1901
|
-
function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
|
|
1902
|
-
let context = useContext($e6afbd83fe6ebbd2$var$FocusableContext) || {};
|
|
1903
|
-
$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
|
|
1904
|
-
let _a = context, { ref: _ } = _a, otherProps = __objRest(_a, ["ref"]);
|
|
1905
|
-
return otherProps;
|
|
1906
|
-
}
|
|
1907
|
-
function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
|
|
1908
|
-
let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
|
|
1909
|
-
let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
|
|
1910
|
-
let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps);
|
|
1911
|
-
let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
|
|
1912
|
-
let interactionProps = props.isDisabled ? {} : domProps;
|
|
1913
|
-
let autoFocusRef = useRef(props.autoFocus);
|
|
1914
|
-
useEffect(() => {
|
|
1915
|
-
if (autoFocusRef.current && domRef.current)
|
|
1916
|
-
$6a99195332edec8b$export$80f3e147d781571c(domRef.current);
|
|
1917
|
-
autoFocusRef.current = false;
|
|
1918
|
-
}, [
|
|
1919
|
-
domRef
|
|
1920
|
-
]);
|
|
1921
|
-
return {
|
|
1922
|
-
focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928(__spreadProps(__spreadValues({}, interactions), {
|
|
1923
|
-
tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : void 0
|
|
1924
|
-
}), interactionProps)
|
|
1925
|
-
};
|
|
1926
|
-
}
|
|
1927
|
-
export {
|
|
1928
|
-
$f6c31cce2adf654f$export$45712eceda6fad21 as $,
|
|
1929
|
-
$e6afbd83fe6ebbd2$export$4c014de7c8940b4c as a,
|
|
1930
|
-
$9ab94262bd0047c7$export$420e68273165f4ec as b,
|
|
1931
|
-
$9bf71ea28793e738$export$20e40289641fbbb6 as c,
|
|
1932
|
-
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98 as d,
|
|
1933
|
-
$9bf71ea28793e738$export$1258395f99bf9cbf as e,
|
|
1934
|
-
$f7dceffc5ad7768b$export$4e328f61c538687f as f,
|
|
1935
|
-
$6179b936705e76d3$export$ae780daf29e6d456 as g,
|
|
1936
|
-
$9bf71ea28793e738$export$2d6ec8fc375ceafa as h,
|
|
1937
|
-
$6a99195332edec8b$export$80f3e147d781571c as i,
|
|
1938
|
-
$8a26561d2877236e$export$c24ed0104d07eab9 as j,
|
|
1939
|
-
$507fabe10e71c6fb$export$630ff653c5ada6a9 as k,
|
|
1940
|
-
$507fabe10e71c6fb$export$b9b3dfddab17db27 as l,
|
|
1941
|
-
$46d819fcbaf35654$export$8f71654801c2f7cd as m,
|
|
1942
|
-
$507fabe10e71c6fb$export$8397ddfc504fdb9a as n,
|
|
1943
|
-
$507fabe10e71c6fb$export$98e20ec92f614cfe as o,
|
|
1944
|
-
$a1ea59d68270f0dd$export$f8168d8dd8fd66e6 as p
|
|
1945
|
-
};
|