@easypost/easy-ui 1.0.0-alpha.12 → 1.0.0-alpha.121
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 +862 -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 +10 -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 +10 -0
- package/Modal/ModalTrigger.d.ts.map +1 -1
- package/Modal/ModalUnderlay.d.ts +13 -0
- 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 +228 -201
- package/Modal/index.mjs +223 -196
- 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
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
3
|
+
var __typeError = (msg) => {
|
|
4
|
+
throw TypeError(msg);
|
|
5
|
+
};
|
|
6
|
+
var __await = function(promise, isYieldStar) {
|
|
7
|
+
this[0] = promise;
|
|
8
|
+
this[1] = isYieldStar;
|
|
9
|
+
};
|
|
10
|
+
var __yieldStar = (value) => {
|
|
11
|
+
var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
|
|
12
|
+
if (obj == null) {
|
|
13
|
+
obj = value[__knownSymbol("iterator")]();
|
|
14
|
+
method = (k) => it[k] = (x) => obj[k](x);
|
|
15
|
+
} else {
|
|
16
|
+
obj = obj.call(value);
|
|
17
|
+
method = (k) => it[k] = (v) => {
|
|
18
|
+
if (isAwait) {
|
|
19
|
+
isAwait = false;
|
|
20
|
+
if (k === "throw") throw v;
|
|
21
|
+
return v;
|
|
22
|
+
}
|
|
23
|
+
isAwait = true;
|
|
24
|
+
return {
|
|
25
|
+
done: false,
|
|
26
|
+
value: new __await(new Promise((resolve) => {
|
|
27
|
+
var x = obj[k](v);
|
|
28
|
+
if (!(x instanceof Object)) __typeError("Object expected");
|
|
29
|
+
resolve(x);
|
|
30
|
+
}), 1)
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
35
|
+
throw x;
|
|
36
|
+
}, "return" in obj && method("return"), it;
|
|
37
|
+
};
|
|
38
|
+
const useFocusVisible = require("./useFocusVisible-BNcpO5Sv.js");
|
|
39
|
+
const mergeProps = require("./mergeProps-DLPcevok.js");
|
|
40
|
+
const focusSafely = require("./focusSafely-C5HWSeZE.js");
|
|
41
|
+
const React = require("react");
|
|
42
|
+
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
43
|
+
get currentNode() {
|
|
44
|
+
return this._currentNode;
|
|
45
|
+
}
|
|
46
|
+
set currentNode(node) {
|
|
47
|
+
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(this.root, node)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
48
|
+
const walkers = [];
|
|
49
|
+
let curNode = node;
|
|
50
|
+
let currentWalkerCurrentNode = node;
|
|
51
|
+
this._currentNode = node;
|
|
52
|
+
while (curNode && curNode !== this.root) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
53
|
+
const shadowRoot = curNode;
|
|
54
|
+
const walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
55
|
+
acceptNode: this._acceptNode
|
|
56
|
+
});
|
|
57
|
+
walkers.push(walker2);
|
|
58
|
+
walker2.currentNode = currentWalkerCurrentNode;
|
|
59
|
+
this._currentSetFor.add(walker2);
|
|
60
|
+
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
|
61
|
+
} else curNode = curNode.parentNode;
|
|
62
|
+
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
|
63
|
+
acceptNode: this._acceptNode
|
|
64
|
+
});
|
|
65
|
+
walkers.push(walker);
|
|
66
|
+
walker.currentNode = currentWalkerCurrentNode;
|
|
67
|
+
this._currentSetFor.add(walker);
|
|
68
|
+
this._walkerStack = walkers;
|
|
69
|
+
}
|
|
70
|
+
get doc() {
|
|
71
|
+
return this._doc;
|
|
72
|
+
}
|
|
73
|
+
firstChild() {
|
|
74
|
+
let currentNode = this.currentNode;
|
|
75
|
+
let newNode = this.nextNode();
|
|
76
|
+
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode)) {
|
|
77
|
+
this.currentNode = currentNode;
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
if (newNode) this.currentNode = newNode;
|
|
81
|
+
return newNode;
|
|
82
|
+
}
|
|
83
|
+
lastChild() {
|
|
84
|
+
let walker = this._walkerStack[0];
|
|
85
|
+
let newNode = walker.lastChild();
|
|
86
|
+
if (newNode) this.currentNode = newNode;
|
|
87
|
+
return newNode;
|
|
88
|
+
}
|
|
89
|
+
nextNode() {
|
|
90
|
+
const nextNode = this._walkerStack[0].nextNode();
|
|
91
|
+
if (nextNode) {
|
|
92
|
+
const shadowRoot = nextNode.shadowRoot;
|
|
93
|
+
if (shadowRoot) {
|
|
94
|
+
var _this_filter;
|
|
95
|
+
let nodeResult;
|
|
96
|
+
if (typeof this.filter === "function") nodeResult = this.filter(nextNode);
|
|
97
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
|
98
|
+
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
99
|
+
this.currentNode = nextNode;
|
|
100
|
+
return nextNode;
|
|
101
|
+
}
|
|
102
|
+
let newNode = this.nextNode();
|
|
103
|
+
if (newNode) this.currentNode = newNode;
|
|
104
|
+
return newNode;
|
|
105
|
+
}
|
|
106
|
+
if (nextNode) this.currentNode = nextNode;
|
|
107
|
+
return nextNode;
|
|
108
|
+
} else {
|
|
109
|
+
if (this._walkerStack.length > 1) {
|
|
110
|
+
this._walkerStack.shift();
|
|
111
|
+
let newNode = this.nextNode();
|
|
112
|
+
if (newNode) this.currentNode = newNode;
|
|
113
|
+
return newNode;
|
|
114
|
+
} else return null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
previousNode() {
|
|
118
|
+
const currentWalker = this._walkerStack[0];
|
|
119
|
+
if (currentWalker.currentNode === currentWalker.root) {
|
|
120
|
+
if (this._currentSetFor.has(currentWalker)) {
|
|
121
|
+
this._currentSetFor.delete(currentWalker);
|
|
122
|
+
if (this._walkerStack.length > 1) {
|
|
123
|
+
this._walkerStack.shift();
|
|
124
|
+
let newNode = this.previousNode();
|
|
125
|
+
if (newNode) this.currentNode = newNode;
|
|
126
|
+
return newNode;
|
|
127
|
+
} else return null;
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
const previousNode = currentWalker.previousNode();
|
|
132
|
+
if (previousNode) {
|
|
133
|
+
const shadowRoot = previousNode.shadowRoot;
|
|
134
|
+
if (shadowRoot) {
|
|
135
|
+
var _this_filter;
|
|
136
|
+
let nodeResult;
|
|
137
|
+
if (typeof this.filter === "function") nodeResult = this.filter(previousNode);
|
|
138
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
|
139
|
+
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
140
|
+
if (previousNode) this.currentNode = previousNode;
|
|
141
|
+
return previousNode;
|
|
142
|
+
}
|
|
143
|
+
let newNode = this.lastChild();
|
|
144
|
+
if (newNode) this.currentNode = newNode;
|
|
145
|
+
return newNode;
|
|
146
|
+
}
|
|
147
|
+
if (previousNode) this.currentNode = previousNode;
|
|
148
|
+
return previousNode;
|
|
149
|
+
} else {
|
|
150
|
+
if (this._walkerStack.length > 1) {
|
|
151
|
+
this._walkerStack.shift();
|
|
152
|
+
let newNode = this.previousNode();
|
|
153
|
+
if (newNode) this.currentNode = newNode;
|
|
154
|
+
return newNode;
|
|
155
|
+
} else return null;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @deprecated
|
|
160
|
+
*/
|
|
161
|
+
nextSibling() {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated
|
|
166
|
+
*/
|
|
167
|
+
previousSibling() {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated
|
|
172
|
+
*/
|
|
173
|
+
parentNode() {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
constructor(doc, root, whatToShow, filter) {
|
|
177
|
+
this._walkerStack = [];
|
|
178
|
+
this._currentSetFor = /* @__PURE__ */ new Set();
|
|
179
|
+
this._acceptNode = (node) => {
|
|
180
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
181
|
+
const shadowRoot2 = node.shadowRoot;
|
|
182
|
+
if (shadowRoot2) {
|
|
183
|
+
const walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, {
|
|
184
|
+
acceptNode: this._acceptNode
|
|
185
|
+
});
|
|
186
|
+
this._walkerStack.unshift(walker);
|
|
187
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
188
|
+
} else {
|
|
189
|
+
var _this_filter;
|
|
190
|
+
if (typeof this.filter === "function") return this.filter(node);
|
|
191
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
|
192
|
+
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return NodeFilter.FILTER_SKIP;
|
|
196
|
+
};
|
|
197
|
+
this._doc = doc;
|
|
198
|
+
this.root = root;
|
|
199
|
+
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
|
200
|
+
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
|
201
|
+
this._currentNode = root;
|
|
202
|
+
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
|
203
|
+
const shadowRoot = root.shadowRoot;
|
|
204
|
+
if (shadowRoot) {
|
|
205
|
+
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
206
|
+
acceptNode: this._acceptNode
|
|
207
|
+
});
|
|
208
|
+
this._walkerStack.unshift(walker);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
|
213
|
+
if (useFocusVisible.$f4e2df6bd15f8569$export$98658e8c59125e6a()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
|
214
|
+
return doc.createTreeWalker(root, whatToShow, filter);
|
|
215
|
+
}
|
|
216
|
+
const $9bf71ea28793e738$var$FocusContext = /* @__PURE__ */ React.createContext(null);
|
|
217
|
+
const $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = "react-aria-focus-scope-restore";
|
|
218
|
+
let $9bf71ea28793e738$var$activeScope = null;
|
|
219
|
+
function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
220
|
+
let { children, contain, restoreFocus, autoFocus } = props;
|
|
221
|
+
let startRef = React.useRef(null);
|
|
222
|
+
let endRef = React.useRef(null);
|
|
223
|
+
let scopeRef = React.useRef([]);
|
|
224
|
+
let { parentNode } = React.useContext($9bf71ea28793e738$var$FocusContext) || {};
|
|
225
|
+
let node = React.useMemo(() => new $9bf71ea28793e738$var$TreeNode({
|
|
226
|
+
scopeRef
|
|
227
|
+
}), [
|
|
228
|
+
scopeRef
|
|
229
|
+
]);
|
|
230
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
231
|
+
let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root;
|
|
232
|
+
if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) {
|
|
233
|
+
let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
234
|
+
if (activeNode) parent = activeNode;
|
|
235
|
+
}
|
|
236
|
+
parent.addChild(node);
|
|
237
|
+
$9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node);
|
|
238
|
+
}, [
|
|
239
|
+
node,
|
|
240
|
+
parentNode
|
|
241
|
+
]);
|
|
242
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
243
|
+
let node2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
244
|
+
if (node2) node2.contain = !!contain;
|
|
245
|
+
}, [
|
|
246
|
+
contain
|
|
247
|
+
]);
|
|
248
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
249
|
+
var _startRef_current;
|
|
250
|
+
let node2 = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling;
|
|
251
|
+
let nodes = [];
|
|
252
|
+
let stopPropagation = (e) => e.stopPropagation();
|
|
253
|
+
while (node2 && node2 !== endRef.current) {
|
|
254
|
+
nodes.push(node2);
|
|
255
|
+
node2.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
|
|
256
|
+
node2 = node2.nextSibling;
|
|
257
|
+
}
|
|
258
|
+
scopeRef.current = nodes;
|
|
259
|
+
return () => {
|
|
260
|
+
for (let node3 of nodes) node3.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation);
|
|
261
|
+
};
|
|
262
|
+
}, [
|
|
263
|
+
children
|
|
264
|
+
]);
|
|
265
|
+
$9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain);
|
|
266
|
+
$9bf71ea28793e738$var$useFocusContainment(scopeRef, contain);
|
|
267
|
+
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
268
|
+
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
269
|
+
React.useEffect(() => {
|
|
270
|
+
const activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0));
|
|
271
|
+
let scope = null;
|
|
272
|
+
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
273
|
+
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) if (node2.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current)) scope = node2;
|
|
274
|
+
if (scope === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) $9bf71ea28793e738$var$activeScope = scope.scopeRef;
|
|
275
|
+
}
|
|
276
|
+
}, [
|
|
277
|
+
scopeRef
|
|
278
|
+
]);
|
|
279
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
280
|
+
return () => {
|
|
281
|
+
var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode;
|
|
282
|
+
var _focusScopeTree_getTreeNode_parent_scopeRef;
|
|
283
|
+
let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
|
|
284
|
+
if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope))) $9bf71ea28793e738$var$activeScope = parentScope;
|
|
285
|
+
$9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
|
|
286
|
+
};
|
|
287
|
+
}, [
|
|
288
|
+
scopeRef
|
|
289
|
+
]);
|
|
290
|
+
let focusManager = React.useMemo(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []);
|
|
291
|
+
let value = React.useMemo(() => ({
|
|
292
|
+
focusManager,
|
|
293
|
+
parentNode: node
|
|
294
|
+
}), [
|
|
295
|
+
node,
|
|
296
|
+
focusManager
|
|
297
|
+
]);
|
|
298
|
+
return /* @__PURE__ */ React.createElement($9bf71ea28793e738$var$FocusContext.Provider, {
|
|
299
|
+
value
|
|
300
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
301
|
+
"data-focus-scope-start": true,
|
|
302
|
+
hidden: true,
|
|
303
|
+
ref: startRef
|
|
304
|
+
}), children, /* @__PURE__ */ React.createElement("span", {
|
|
305
|
+
"data-focus-scope-end": true,
|
|
306
|
+
hidden: true,
|
|
307
|
+
ref: endRef
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
311
|
+
return {
|
|
312
|
+
focusNext(opts = {}) {
|
|
313
|
+
let scope = scopeRef.current;
|
|
314
|
+
let { from, tabbable, wrap, accept } = opts;
|
|
315
|
+
var _scope_;
|
|
316
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
317
|
+
let sentinel = scope[0].previousElementSibling;
|
|
318
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
319
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
320
|
+
tabbable,
|
|
321
|
+
accept
|
|
322
|
+
}, scope);
|
|
323
|
+
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
324
|
+
let nextNode = walker.nextNode();
|
|
325
|
+
if (!nextNode && wrap) {
|
|
326
|
+
walker.currentNode = sentinel;
|
|
327
|
+
nextNode = walker.nextNode();
|
|
328
|
+
}
|
|
329
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
330
|
+
return nextNode;
|
|
331
|
+
},
|
|
332
|
+
focusPrevious(opts = {}) {
|
|
333
|
+
let scope = scopeRef.current;
|
|
334
|
+
let { from, tabbable, wrap, accept } = opts;
|
|
335
|
+
var _scope_;
|
|
336
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
337
|
+
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
338
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
339
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
340
|
+
tabbable,
|
|
341
|
+
accept
|
|
342
|
+
}, scope);
|
|
343
|
+
walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node, scope) ? node : sentinel;
|
|
344
|
+
let previousNode = walker.previousNode();
|
|
345
|
+
if (!previousNode && wrap) {
|
|
346
|
+
walker.currentNode = sentinel;
|
|
347
|
+
previousNode = walker.previousNode();
|
|
348
|
+
}
|
|
349
|
+
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
350
|
+
return previousNode;
|
|
351
|
+
},
|
|
352
|
+
focusFirst(opts = {}) {
|
|
353
|
+
let scope = scopeRef.current;
|
|
354
|
+
let { tabbable, accept } = opts;
|
|
355
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
356
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
357
|
+
tabbable,
|
|
358
|
+
accept
|
|
359
|
+
}, scope);
|
|
360
|
+
walker.currentNode = scope[0].previousElementSibling;
|
|
361
|
+
let nextNode = walker.nextNode();
|
|
362
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
363
|
+
return nextNode;
|
|
364
|
+
},
|
|
365
|
+
focusLast(opts = {}) {
|
|
366
|
+
let scope = scopeRef.current;
|
|
367
|
+
let { tabbable, accept } = opts;
|
|
368
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
369
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
370
|
+
tabbable,
|
|
371
|
+
accept
|
|
372
|
+
}, scope);
|
|
373
|
+
walker.currentNode = scope[scope.length - 1].nextElementSibling;
|
|
374
|
+
let previousNode = walker.previousNode();
|
|
375
|
+
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
376
|
+
return previousNode;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
function $9bf71ea28793e738$var$getScopeRoot(scope) {
|
|
381
|
+
return scope[0].parentElement;
|
|
382
|
+
}
|
|
383
|
+
function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) {
|
|
384
|
+
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
385
|
+
while (scope && scope.scopeRef !== scopeRef) {
|
|
386
|
+
if (scope.contain) return false;
|
|
387
|
+
scope = scope.parent;
|
|
388
|
+
}
|
|
389
|
+
return true;
|
|
390
|
+
}
|
|
391
|
+
function $9bf71ea28793e738$var$isTabbableRadio(element) {
|
|
392
|
+
if (element.checked) return true;
|
|
393
|
+
let radios = [];
|
|
394
|
+
if (!element.form) radios = [
|
|
395
|
+
...useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`)
|
|
396
|
+
].filter((radio) => !radio.form);
|
|
397
|
+
else {
|
|
398
|
+
var _element_form_elements, _element_form;
|
|
399
|
+
let radioList = (_element_form = element.form) === null || _element_form === void 0 ? void 0 : (_element_form_elements = _element_form.elements) === null || _element_form_elements === void 0 ? void 0 : _element_form_elements.namedItem(element.name);
|
|
400
|
+
radios = [
|
|
401
|
+
...radioList !== null && radioList !== void 0 ? radioList : []
|
|
402
|
+
];
|
|
403
|
+
}
|
|
404
|
+
if (!radios) return false;
|
|
405
|
+
let anyChecked = radios.some((radio) => radio.checked);
|
|
406
|
+
return !anyChecked;
|
|
407
|
+
}
|
|
408
|
+
function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
409
|
+
let focusedNode = React.useRef(void 0);
|
|
410
|
+
let raf = React.useRef(void 0);
|
|
411
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
412
|
+
let scope = scopeRef.current;
|
|
413
|
+
if (!contain) {
|
|
414
|
+
if (raf.current) {
|
|
415
|
+
cancelAnimationFrame(raf.current);
|
|
416
|
+
raf.current = void 0;
|
|
417
|
+
}
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
421
|
+
let onKeyDown = (e) => {
|
|
422
|
+
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
423
|
+
let focusedElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
424
|
+
let scope2 = scopeRef.current;
|
|
425
|
+
if (!scope2 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope2)) return;
|
|
426
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2);
|
|
427
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
428
|
+
tabbable: true
|
|
429
|
+
}, scope2);
|
|
430
|
+
if (!focusedElement) return;
|
|
431
|
+
walker.currentNode = focusedElement;
|
|
432
|
+
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
433
|
+
if (!nextElement) {
|
|
434
|
+
walker.currentNode = e.shiftKey ? scope2[scope2.length - 1].nextElementSibling : scope2[0].previousElementSibling;
|
|
435
|
+
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
436
|
+
}
|
|
437
|
+
e.preventDefault();
|
|
438
|
+
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
439
|
+
};
|
|
440
|
+
let onFocus = (e) => {
|
|
441
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current)) {
|
|
442
|
+
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
443
|
+
focusedNode.current = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
444
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef)) {
|
|
445
|
+
if (focusedNode.current) focusedNode.current.focus();
|
|
446
|
+
else if ($9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
447
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
448
|
+
};
|
|
449
|
+
let onBlur = (e) => {
|
|
450
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
451
|
+
raf.current = requestAnimationFrame(() => {
|
|
452
|
+
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
453
|
+
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) && useFocusVisible.$c87311424ea30a05$export$a11b0059900ceec8() && useFocusVisible.$c87311424ea30a05$export$6446a186d09e379e();
|
|
454
|
+
let activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
455
|
+
if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
|
|
456
|
+
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
457
|
+
let target = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
458
|
+
if (target && target.isConnected) {
|
|
459
|
+
var _focusedNode_current;
|
|
460
|
+
focusedNode.current = target;
|
|
461
|
+
(_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();
|
|
462
|
+
} else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
};
|
|
466
|
+
ownerDocument.addEventListener("keydown", onKeyDown, false);
|
|
467
|
+
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
468
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
469
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusout", onBlur, false));
|
|
470
|
+
return () => {
|
|
471
|
+
ownerDocument.removeEventListener("keydown", onKeyDown, false);
|
|
472
|
+
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
473
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
474
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusout", onBlur, false));
|
|
475
|
+
};
|
|
476
|
+
}, [
|
|
477
|
+
scopeRef,
|
|
478
|
+
contain
|
|
479
|
+
]);
|
|
480
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
481
|
+
return () => {
|
|
482
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
483
|
+
};
|
|
484
|
+
}, [
|
|
485
|
+
raf
|
|
486
|
+
]);
|
|
487
|
+
}
|
|
488
|
+
function $9bf71ea28793e738$var$isElementInAnyScope(element) {
|
|
489
|
+
return $9bf71ea28793e738$var$isElementInChildScope(element);
|
|
490
|
+
}
|
|
491
|
+
function $9bf71ea28793e738$var$isElementInScope(element, scope) {
|
|
492
|
+
if (!element) return false;
|
|
493
|
+
if (!scope) return false;
|
|
494
|
+
return scope.some((node) => node.contains(element));
|
|
495
|
+
}
|
|
496
|
+
function $9bf71ea28793e738$var$isElementInChildScope(element, scope = null) {
|
|
497
|
+
if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return true;
|
|
498
|
+
for (let { scopeRef: s } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope))) {
|
|
499
|
+
if (s && $9bf71ea28793e738$var$isElementInScope(element, s.current)) return true;
|
|
500
|
+
}
|
|
501
|
+
return false;
|
|
502
|
+
}
|
|
503
|
+
function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
|
|
504
|
+
return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope);
|
|
505
|
+
}
|
|
506
|
+
function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
|
|
507
|
+
var _focusScopeTree_getTreeNode;
|
|
508
|
+
let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
|
|
509
|
+
while (parent) {
|
|
510
|
+
if (parent.scopeRef === ancestor) return true;
|
|
511
|
+
parent = parent.parent;
|
|
512
|
+
}
|
|
513
|
+
return false;
|
|
514
|
+
}
|
|
515
|
+
function $9bf71ea28793e738$var$focusElement(element, scroll = false) {
|
|
516
|
+
if (element != null && !scroll) try {
|
|
517
|
+
(0, focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c)(element);
|
|
518
|
+
} catch (e) {
|
|
519
|
+
}
|
|
520
|
+
else if (element != null) try {
|
|
521
|
+
element.focus();
|
|
522
|
+
} catch (e) {
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
function $9bf71ea28793e738$var$getFirstInScope(scope, tabbable = true) {
|
|
526
|
+
let sentinel = scope[0].previousElementSibling;
|
|
527
|
+
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
528
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
529
|
+
tabbable
|
|
530
|
+
}, scope);
|
|
531
|
+
walker.currentNode = sentinel;
|
|
532
|
+
let nextNode = walker.nextNode();
|
|
533
|
+
if (tabbable && !nextNode) {
|
|
534
|
+
scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
535
|
+
walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
536
|
+
tabbable: false
|
|
537
|
+
}, scope);
|
|
538
|
+
walker.currentNode = sentinel;
|
|
539
|
+
nextNode = walker.nextNode();
|
|
540
|
+
}
|
|
541
|
+
return nextNode;
|
|
542
|
+
}
|
|
543
|
+
function $9bf71ea28793e738$var$focusFirstInScope(scope, tabbable = true) {
|
|
544
|
+
$9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope, tabbable));
|
|
545
|
+
}
|
|
546
|
+
function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
547
|
+
const autoFocusRef = React.useRef(autoFocus);
|
|
548
|
+
React.useEffect(() => {
|
|
549
|
+
if (autoFocusRef.current) {
|
|
550
|
+
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
551
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
552
|
+
if (!$9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
553
|
+
}
|
|
554
|
+
autoFocusRef.current = false;
|
|
555
|
+
}, [
|
|
556
|
+
scopeRef
|
|
557
|
+
]);
|
|
558
|
+
}
|
|
559
|
+
function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) {
|
|
560
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
561
|
+
if (restore || contain) return;
|
|
562
|
+
let scope = scopeRef.current;
|
|
563
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
564
|
+
let onFocus = (e) => {
|
|
565
|
+
let target = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
566
|
+
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
567
|
+
else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
|
|
568
|
+
};
|
|
569
|
+
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
570
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
571
|
+
return () => {
|
|
572
|
+
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
573
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
574
|
+
};
|
|
575
|
+
}, [
|
|
576
|
+
scopeRef,
|
|
577
|
+
restore,
|
|
578
|
+
contain
|
|
579
|
+
]);
|
|
580
|
+
}
|
|
581
|
+
function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
582
|
+
let scope = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope);
|
|
583
|
+
while (scope && scope.scopeRef !== scopeRef) {
|
|
584
|
+
if (scope.nodeToRestore) return false;
|
|
585
|
+
scope = scope.parent;
|
|
586
|
+
}
|
|
587
|
+
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
588
|
+
}
|
|
589
|
+
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
590
|
+
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ? useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
|
|
591
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
592
|
+
let scope = scopeRef.current;
|
|
593
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
594
|
+
if (!restoreFocus || contain) return;
|
|
595
|
+
let onFocus = () => {
|
|
596
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
597
|
+
};
|
|
598
|
+
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
599
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
600
|
+
return () => {
|
|
601
|
+
ownerDocument.removeEventListener("focusin", onFocus, false);
|
|
602
|
+
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.removeEventListener("focusin", onFocus, false));
|
|
603
|
+
};
|
|
604
|
+
}, [
|
|
605
|
+
scopeRef,
|
|
606
|
+
contain
|
|
607
|
+
]);
|
|
608
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
609
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
610
|
+
if (!restoreFocus) return;
|
|
611
|
+
let onKeyDown = (e) => {
|
|
612
|
+
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
613
|
+
let focusedElement = ownerDocument.activeElement;
|
|
614
|
+
if (!$9bf71ea28793e738$var$isElementInChildScope(focusedElement, scopeRef) || !$9bf71ea28793e738$var$shouldRestoreFocus(scopeRef)) return;
|
|
615
|
+
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
616
|
+
if (!treeNode) return;
|
|
617
|
+
let nodeToRestore = treeNode.nodeToRestore;
|
|
618
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, {
|
|
619
|
+
tabbable: true
|
|
620
|
+
});
|
|
621
|
+
walker.currentNode = focusedElement;
|
|
622
|
+
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
623
|
+
if (!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) {
|
|
624
|
+
nodeToRestore = void 0;
|
|
625
|
+
treeNode.nodeToRestore = void 0;
|
|
626
|
+
}
|
|
627
|
+
if ((!nextElement || !$9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)) && nodeToRestore) {
|
|
628
|
+
walker.currentNode = nodeToRestore;
|
|
629
|
+
do
|
|
630
|
+
nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
631
|
+
while ($9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef));
|
|
632
|
+
e.preventDefault();
|
|
633
|
+
e.stopPropagation();
|
|
634
|
+
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
635
|
+
else if (!$9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore)) focusedElement.blur();
|
|
636
|
+
else $9bf71ea28793e738$var$focusElement(nodeToRestore, true);
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
if (!contain) ownerDocument.addEventListener("keydown", onKeyDown, true);
|
|
640
|
+
return () => {
|
|
641
|
+
if (!contain) ownerDocument.removeEventListener("keydown", onKeyDown, true);
|
|
642
|
+
};
|
|
643
|
+
}, [
|
|
644
|
+
scopeRef,
|
|
645
|
+
restoreFocus,
|
|
646
|
+
contain
|
|
647
|
+
]);
|
|
648
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
649
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
650
|
+
if (!restoreFocus) return;
|
|
651
|
+
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
652
|
+
if (!treeNode) return;
|
|
653
|
+
var _nodeToRestoreRef_current;
|
|
654
|
+
treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : void 0;
|
|
655
|
+
return () => {
|
|
656
|
+
let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
657
|
+
if (!treeNode2) return;
|
|
658
|
+
let nodeToRestore = treeNode2.nodeToRestore;
|
|
659
|
+
let activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
660
|
+
if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
|
|
661
|
+
let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
|
|
662
|
+
requestAnimationFrame(() => {
|
|
663
|
+
if (ownerDocument.activeElement === ownerDocument.body) {
|
|
664
|
+
let treeNode3 = clonedTree.getTreeNode(scopeRef);
|
|
665
|
+
while (treeNode3) {
|
|
666
|
+
if (treeNode3.nodeToRestore && treeNode3.nodeToRestore.isConnected) {
|
|
667
|
+
$9bf71ea28793e738$var$restoreFocusToElement(treeNode3.nodeToRestore);
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
treeNode3 = treeNode3.parent;
|
|
671
|
+
}
|
|
672
|
+
treeNode3 = clonedTree.getTreeNode(scopeRef);
|
|
673
|
+
while (treeNode3) {
|
|
674
|
+
if (treeNode3.scopeRef && treeNode3.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode3.scopeRef)) {
|
|
675
|
+
let node = $9bf71ea28793e738$var$getFirstInScope(treeNode3.scopeRef.current, true);
|
|
676
|
+
$9bf71ea28793e738$var$restoreFocusToElement(node);
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
treeNode3 = treeNode3.parent;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
};
|
|
685
|
+
}, [
|
|
686
|
+
scopeRef,
|
|
687
|
+
restoreFocus
|
|
688
|
+
]);
|
|
689
|
+
}
|
|
690
|
+
function $9bf71ea28793e738$var$restoreFocusToElement(node) {
|
|
691
|
+
if (node.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, {
|
|
692
|
+
bubbles: true,
|
|
693
|
+
cancelable: true
|
|
694
|
+
}))) $9bf71ea28793e738$var$focusElement(node);
|
|
695
|
+
}
|
|
696
|
+
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
697
|
+
let filter = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? useFocusVisible.$b4b717babfbb907b$export$bebd5a1431fec25d : useFocusVisible.$b4b717babfbb907b$export$4c063cf1350e6fed;
|
|
698
|
+
let rootElement = (root === null || root === void 0 ? void 0 : root.nodeType) === Node.ELEMENT_NODE ? root : null;
|
|
699
|
+
let doc = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(rootElement);
|
|
700
|
+
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root || doc, NodeFilter.SHOW_ELEMENT, {
|
|
701
|
+
acceptNode(node) {
|
|
702
|
+
var _opts_from;
|
|
703
|
+
if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
|
|
704
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.tabbable) && node.tagName === "INPUT" && node.getAttribute("type") === "radio") {
|
|
705
|
+
if (!$9bf71ea28793e738$var$isTabbableRadio(node)) return NodeFilter.FILTER_REJECT;
|
|
706
|
+
if (walker.currentNode.tagName === "INPUT" && walker.currentNode.type === "radio" && walker.currentNode.name === node.name) return NodeFilter.FILTER_REJECT;
|
|
707
|
+
}
|
|
708
|
+
if (filter(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
|
|
709
|
+
return NodeFilter.FILTER_SKIP;
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
|
|
713
|
+
return walker;
|
|
714
|
+
}
|
|
715
|
+
function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
716
|
+
return {
|
|
717
|
+
focusNext(opts = {}) {
|
|
718
|
+
let root = ref.current;
|
|
719
|
+
if (!root) return null;
|
|
720
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
721
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
722
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
723
|
+
tabbable,
|
|
724
|
+
accept
|
|
725
|
+
});
|
|
726
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
727
|
+
let nextNode = walker.nextNode();
|
|
728
|
+
if (!nextNode && wrap) {
|
|
729
|
+
walker.currentNode = root;
|
|
730
|
+
nextNode = walker.nextNode();
|
|
731
|
+
}
|
|
732
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
733
|
+
return nextNode;
|
|
734
|
+
},
|
|
735
|
+
focusPrevious(opts = defaultOptions) {
|
|
736
|
+
let root = ref.current;
|
|
737
|
+
if (!root) return null;
|
|
738
|
+
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
739
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
740
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
741
|
+
tabbable,
|
|
742
|
+
accept
|
|
743
|
+
});
|
|
744
|
+
if (root.contains(node)) walker.currentNode = node;
|
|
745
|
+
else {
|
|
746
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
747
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
748
|
+
return next !== null && next !== void 0 ? next : null;
|
|
749
|
+
}
|
|
750
|
+
let previousNode = walker.previousNode();
|
|
751
|
+
if (!previousNode && wrap) {
|
|
752
|
+
walker.currentNode = root;
|
|
753
|
+
let lastNode = $9bf71ea28793e738$var$last(walker);
|
|
754
|
+
if (!lastNode)
|
|
755
|
+
return null;
|
|
756
|
+
previousNode = lastNode;
|
|
757
|
+
}
|
|
758
|
+
if (previousNode) $9bf71ea28793e738$var$focusElement(previousNode, true);
|
|
759
|
+
return previousNode !== null && previousNode !== void 0 ? previousNode : null;
|
|
760
|
+
},
|
|
761
|
+
focusFirst(opts = defaultOptions) {
|
|
762
|
+
let root = ref.current;
|
|
763
|
+
if (!root) return null;
|
|
764
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
765
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
766
|
+
tabbable,
|
|
767
|
+
accept
|
|
768
|
+
});
|
|
769
|
+
let nextNode = walker.nextNode();
|
|
770
|
+
if (nextNode) $9bf71ea28793e738$var$focusElement(nextNode, true);
|
|
771
|
+
return nextNode;
|
|
772
|
+
},
|
|
773
|
+
focusLast(opts = defaultOptions) {
|
|
774
|
+
let root = ref.current;
|
|
775
|
+
if (!root) return null;
|
|
776
|
+
let { tabbable = defaultOptions.tabbable, accept = defaultOptions.accept } = opts;
|
|
777
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
778
|
+
tabbable,
|
|
779
|
+
accept
|
|
780
|
+
});
|
|
781
|
+
let next = $9bf71ea28793e738$var$last(walker);
|
|
782
|
+
if (next) $9bf71ea28793e738$var$focusElement(next, true);
|
|
783
|
+
return next !== null && next !== void 0 ? next : null;
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
function $9bf71ea28793e738$var$last(walker) {
|
|
788
|
+
let next = void 0;
|
|
789
|
+
let last;
|
|
790
|
+
do {
|
|
791
|
+
last = walker.lastChild();
|
|
792
|
+
if (last) next = last;
|
|
793
|
+
} while (last);
|
|
794
|
+
return next;
|
|
795
|
+
}
|
|
796
|
+
class $9bf71ea28793e738$var$Tree {
|
|
797
|
+
get size() {
|
|
798
|
+
return this.fastMap.size;
|
|
799
|
+
}
|
|
800
|
+
getTreeNode(data) {
|
|
801
|
+
return this.fastMap.get(data);
|
|
802
|
+
}
|
|
803
|
+
addTreeNode(scopeRef, parent, nodeToRestore) {
|
|
804
|
+
let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
|
|
805
|
+
if (!parentNode) return;
|
|
806
|
+
let node = new $9bf71ea28793e738$var$TreeNode({
|
|
807
|
+
scopeRef
|
|
808
|
+
});
|
|
809
|
+
parentNode.addChild(node);
|
|
810
|
+
node.parent = parentNode;
|
|
811
|
+
this.fastMap.set(scopeRef, node);
|
|
812
|
+
if (nodeToRestore) node.nodeToRestore = nodeToRestore;
|
|
813
|
+
}
|
|
814
|
+
addNode(node) {
|
|
815
|
+
this.fastMap.set(node.scopeRef, node);
|
|
816
|
+
}
|
|
817
|
+
removeTreeNode(scopeRef) {
|
|
818
|
+
if (scopeRef === null) return;
|
|
819
|
+
let node = this.fastMap.get(scopeRef);
|
|
820
|
+
if (!node) return;
|
|
821
|
+
let parentNode = node.parent;
|
|
822
|
+
for (let current of this.traverse()) if (current !== node && node.nodeToRestore && current.nodeToRestore && node.scopeRef && node.scopeRef.current && $9bf71ea28793e738$var$isElementInScope(current.nodeToRestore, node.scopeRef.current)) current.nodeToRestore = node.nodeToRestore;
|
|
823
|
+
let children = node.children;
|
|
824
|
+
if (parentNode) {
|
|
825
|
+
parentNode.removeChild(node);
|
|
826
|
+
if (children.size > 0) children.forEach((child) => parentNode && parentNode.addChild(child));
|
|
827
|
+
}
|
|
828
|
+
this.fastMap.delete(node.scopeRef);
|
|
829
|
+
}
|
|
830
|
+
// Pre Order Depth First
|
|
831
|
+
*traverse(node = this.root) {
|
|
832
|
+
if (node.scopeRef != null) yield node;
|
|
833
|
+
if (node.children.size > 0) for (let child of node.children) yield* __yieldStar(this.traverse(child));
|
|
834
|
+
}
|
|
835
|
+
clone() {
|
|
836
|
+
var _node_parent;
|
|
837
|
+
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
838
|
+
var _node_parent_scopeRef;
|
|
839
|
+
for (let node of this.traverse()) newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);
|
|
840
|
+
return newTree;
|
|
841
|
+
}
|
|
842
|
+
constructor() {
|
|
843
|
+
this.fastMap = /* @__PURE__ */ new Map();
|
|
844
|
+
this.root = new $9bf71ea28793e738$var$TreeNode({
|
|
845
|
+
scopeRef: null
|
|
846
|
+
});
|
|
847
|
+
this.fastMap.set(null, this.root);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
class $9bf71ea28793e738$var$TreeNode {
|
|
851
|
+
addChild(node) {
|
|
852
|
+
this.children.add(node);
|
|
853
|
+
node.parent = this;
|
|
854
|
+
}
|
|
855
|
+
removeChild(node) {
|
|
856
|
+
this.children.delete(node);
|
|
857
|
+
node.parent = void 0;
|
|
858
|
+
}
|
|
859
|
+
constructor(props) {
|
|
860
|
+
this.children = /* @__PURE__ */ new Set();
|
|
861
|
+
this.contain = false;
|
|
862
|
+
this.scopeRef = props.scopeRef;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
let $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree();
|
|
866
|
+
exports.$9bf71ea28793e738$export$1258395f99bf9cbf = $9bf71ea28793e738$export$1258395f99bf9cbf;
|
|
867
|
+
exports.$9bf71ea28793e738$export$20e40289641fbbb6 = $9bf71ea28793e738$export$20e40289641fbbb6;
|
|
868
|
+
exports.$9bf71ea28793e738$export$2d6ec8fc375ceafa = $9bf71ea28793e738$export$2d6ec8fc375ceafa;
|
|
869
|
+
exports.$9bf71ea28793e738$export$c5251b9e124bf29 = $9bf71ea28793e738$export$c5251b9e124bf29;
|