@easypost/easy-ui 1.0.0-alpha.9 → 1.0.0-alpha.90
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/Badge/Badge.d.ts +11 -0
- package/Badge/Badge.d.ts.map +1 -1
- package/Badge/index.js +22 -18
- package/Badge/index.mjs +20 -16
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +5 -5
- package/Button/Button.d.ts +12 -10
- package/Button/Button.d.ts.map +1 -1
- package/Button/Button.stories.d.ts +11 -9
- 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 +691 -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 -0
- 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 +65 -0
- package/CheckableCard/index.mjs +65 -0
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/Checkbox/Checkbox.stories.d.ts +1 -0
- 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.map +1 -1
- package/CodeBlock/LanguageMenu.d.ts.map +1 -1
- package/CodeBlock/index.js +177 -177
- package/CodeBlock/index.mjs +160 -160
- package/CodeSnippet/CodeSnippet.d.ts +3 -3
- package/CodeSnippet/CodeSnippet.d.ts.map +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/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 +290 -0
- package/CustomerPortalLayout/index.mjs +274 -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 +2786 -0
- package/DataGrid/index.mjs +2786 -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 +290 -0
- package/DatePicker/index.mjs +290 -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 +449 -0
- package/DateRangePicker/index.mjs +449 -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 +382 -0
- package/Drawer/index.mjs +366 -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 +5 -5
- package/DropdownButton/DropdownButton.stories.d.ts.map +1 -1
- package/DropdownButton/index.js +17 -20
- package/DropdownButton/index.mjs +14 -17
- 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 +127 -0
- package/EmptyStateCard/index.mjs +127 -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 +186 -0
- package/FocusedProductLayout/index.mjs +186 -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 +530 -0
- package/ForgeLayout/index.mjs +530 -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 +126 -0
- package/FormLayout/index.mjs +126 -0
- package/HorizontalGrid/index.js +2 -62
- package/HorizontalGrid/index.mjs +2 -62
- 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.map +1 -1
- package/Icon/index.js +2 -38
- package/Icon/index.mjs +2 -38
- package/IconButton/IconButton.d.ts +3 -3
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/IconButton.stories.d.ts +5 -5
- package/IconButton/IconButton.stories.d.ts.map +1 -1
- package/IconButton/index.js +17 -20
- package/IconButton/index.mjs +13 -16
- 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 -283
- package/InputField/index.mjs +2 -267
- 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 +4 -0
- 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.map +1 -1
- package/Menu/index.js +2 -394
- package/Menu/index.mjs +2 -394
- package/Menu/utilities.d.ts +17 -1
- package/Menu/utilities.d.ts.map +1 -1
- package/Modal/Modal.d.ts +53 -0
- package/Modal/Modal.d.ts.map +1 -0
- package/Modal/Modal.stories.d.ts +15 -0
- package/Modal/Modal.stories.d.ts.map +1 -0
- package/Modal/Modal.test.d.ts +2 -0
- package/Modal/Modal.test.d.ts.map +1 -0
- package/Modal/ModalBody.d.ts +10 -0
- package/Modal/ModalBody.d.ts.map +1 -0
- package/Modal/ModalContainer.d.ts +26 -0
- package/Modal/ModalContainer.d.ts.map +1 -0
- package/Modal/ModalFooter.d.ts +25 -0
- package/Modal/ModalFooter.d.ts.map +1 -0
- package/Modal/ModalHeader.d.ts +35 -0
- package/Modal/ModalHeader.d.ts.map +1 -0
- package/Modal/ModalTrigger.d.ts +26 -0
- package/Modal/ModalTrigger.d.ts.map +1 -0
- package/Modal/ModalUnderlay.d.ts +19 -0
- package/Modal/ModalUnderlay.d.ts.map +1 -0
- package/Modal/context.d.ts +23 -0
- package/Modal/context.d.ts.map +1 -0
- package/Modal/index.d.ts +2 -0
- package/Modal/index.d.ts.map +1 -0
- package/Modal/index.js +292 -0
- package/Modal/index.mjs +292 -0
- package/Modal/useIntersectionDetection.d.ts +10 -0
- package/Modal/useIntersectionDetection.d.ts.map +1 -0
- 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 +1996 -0
- package/MultiSelect/index.mjs +1981 -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 +208 -0
- package/MultipageSection/index.mjs +208 -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 +336 -0
- package/NexusLayout/index.mjs +336 -0
- package/Notification/Notification.d.ts +12 -1
- package/Notification/Notification.d.ts.map +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 -1535
- package/Notification/index.mjs +5 -1519
- 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 +119 -0
- package/Pagination/index.mjs +119 -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 +540 -0
- package/PlanCard/illustrations/Building01/index.mjs +540 -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 +214 -0
- package/PlanCard/illustrations/Building02/index.mjs +214 -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 +781 -0
- package/PlanCard/illustrations/Building03/index.mjs +781 -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 +1536 -0
- package/PlanCard/illustrations/Building04/index.mjs +1536 -0
- package/PlanCard/index.d.ts +2 -0
- package/PlanCard/index.d.ts.map +1 -0
- package/PlanCard/index.js +146 -0
- package/PlanCard/index.mjs +146 -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 +278 -0
- package/ProductLayout/index.mjs +278 -0
- package/Provider/Provider.d.ts +22 -5
- package/Provider/Provider.d.ts.map +1 -1
- package/Provider/index.js +20 -18
- package/Provider/index.mjs +19 -17
- 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 +260 -0
- package/RadioButtonGroup/index.mjs +260 -0
- package/RadioGroup/RadioGroup.d.ts +6 -6
- package/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/RadioGroup/index.js +3 -297
- package/RadioGroup/index.mjs +3 -297
- 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 +476 -0
- package/SearchNav/index.mjs +460 -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 +103 -0
- package/SectionCard/index.mjs +103 -0
- package/Select/Select.d.ts +9 -8
- package/Select/Select.d.ts.map +1 -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.map +1 -1
- package/Select/SelectOverlay.d.ts.map +1 -1
- package/Select/SelectSection.d.ts.map +1 -1
- package/Select/index.js +29 -722
- package/Select/index.mjs +16 -709
- 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 +50 -0
- package/SplitToggleCard/index.mjs +50 -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 +326 -0
- package/TabPanels/index.mjs +326 -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 +19 -5
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts +2 -0
- 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 +1 -0
- 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.map +1 -1
- package/Textarea/index.js +3 -13
- package/Textarea/index.mjs +2 -12
- package/Theme/index.js +5 -145
- package/Theme/index.mjs +5 -145
- package/Toggle/Toggle.d.ts +34 -1
- package/Toggle/Toggle.d.ts.map +1 -1
- package/Toggle/index.js +2 -117
- package/Toggle/index.mjs +2 -117
- 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 +47 -0
- package/ToggleCard/index.mjs +47 -0
- package/Tooltip/Tooltip.stories.d.ts +2 -0
- package/Tooltip/Tooltip.stories.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 +293 -0
- package/VerticalNav/index.mjs +293 -0
- package/VerticalStack/VerticalStack.d.ts +2 -3
- package/VerticalStack/VerticalStack.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__/Button--4bR8jiH.js +96 -0
- package/__chunks__/Button-B9eOc3oY.mjs +159 -0
- package/__chunks__/Button-BpAgRrMP.js +158 -0
- package/__chunks__/Button-DweJ2JfF.mjs +97 -0
- package/__chunks__/CSSTransition-BXyX0mUc.js +1689 -0
- package/__chunks__/CSSTransition-C4FQrt4m.mjs +1690 -0
- package/__chunks__/Calendar-BX4HC7xq.mjs +42 -0
- package/__chunks__/Calendar-CU64FTOr.js +41 -0
- package/__chunks__/CalendarBase-Dh_owoCy.mjs +3507 -0
- package/__chunks__/CalendarBase-m7eUzrcA.js +3506 -0
- package/__chunks__/Card-BM2DKiVA.js +278 -0
- package/__chunks__/Card-CJug4GMX.mjs +279 -0
- package/__chunks__/CheckCircle-C9h2PNWU.mjs +41 -0
- package/__chunks__/CheckCircle-lgmtkEe6.js +57 -0
- package/__chunks__/Checkbox-Log6uL2y.js +256 -0
- package/__chunks__/Checkbox-WhepkGg3.mjs +241 -0
- package/__chunks__/Close-BQ2IlPyf.js +57 -0
- package/__chunks__/Close-Cq6Q6MN6.mjs +41 -0
- package/__chunks__/CodeSnippet-Bc_MNBCp.mjs +5693 -0
- package/__chunks__/CodeSnippet-C2dSUmN3.js +5692 -0
- package/__chunks__/DatePickerBase-BQISZ4tY.mjs +3208 -0
- package/__chunks__/DatePickerBase-DTRyPxUH.js +3222 -0
- package/__chunks__/Dialog-CrixpxNM.mjs +338 -0
- package/__chunks__/Dialog-DHEa0HJb.js +337 -0
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +22 -0
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +21 -0
- package/__chunks__/{ExpandMore400-7c5263a4.mjs → ExpandMore400-CH7GNxqk.mjs} +9 -17
- package/__chunks__/{ExpandMore400-92646971.js → ExpandMore400-CJpvxyJm.js} +9 -17
- package/__chunks__/FocusScope-Beno1SIx.js +867 -0
- package/__chunks__/FocusScope-DHbxxtYV.mjs +868 -0
- package/__chunks__/HelpMenu-BWEypFzC.js +125 -0
- package/__chunks__/HelpMenu-CSrPwH1K.mjs +110 -0
- package/__chunks__/HorizontalGrid-CAwv7zKY.js +61 -0
- package/__chunks__/HorizontalGrid-Dz8EFgmu.mjs +62 -0
- package/__chunks__/HorizontalStack-CXpjASZi.js +49 -0
- package/__chunks__/HorizontalStack-CxE8tPx_.mjs +50 -0
- package/__chunks__/Icon-0SN9dbwU.mjs +40 -0
- package/__chunks__/Icon-W8F9w-jS.js +39 -0
- package/__chunks__/InputCaption-DXmr8j5G.js +60 -0
- package/__chunks__/InputCaption-DcmpIrex.mjs +61 -0
- package/__chunks__/InputField-B2ypcQOx.mjs +224 -0
- package/__chunks__/InputField-MGA2_gCZ.js +239 -0
- package/__chunks__/InputIcon-B3t4QT3H.mjs +112 -0
- package/__chunks__/InputIcon-BIaAI6v9.js +111 -0
- package/__chunks__/Item-FD89BR0i.mjs +80 -0
- package/__chunks__/Item-h_oPjYVR.js +79 -0
- package/__chunks__/KebabButton-C7gZ573-.js +104 -0
- package/__chunks__/KebabButton-Csspxerl.mjs +89 -0
- package/__chunks__/KeyboardDoubleArrowRight-AAMLvGk-.mjs +79 -0
- package/__chunks__/KeyboardDoubleArrowRight-Ber8mUIO.js +95 -0
- package/__chunks__/LiveAnnouncer-BSV5-C0m.mjs +81 -0
- package/__chunks__/LiveAnnouncer-CzeNwq2D.js +80 -0
- package/__chunks__/Menu-CxptqDZf.js +519 -0
- package/__chunks__/Menu-DVei3CtR.mjs +520 -0
- package/__chunks__/Menu-OacI_98l.js +57 -0
- package/__chunks__/Menu-qMqvSorL.mjs +41 -0
- package/__chunks__/Notification-BfBwPNub.js +1681 -0
- package/__chunks__/Notification-_uA9Lm5j.mjs +1666 -0
- package/__chunks__/NumberFormatter-CXW1Iqpu.js +153 -0
- package/__chunks__/NumberFormatter-p5KNJNTT.mjs +154 -0
- package/__chunks__/Overlay-CTC5iCTq.js +164 -0
- package/__chunks__/Overlay-aI53DFC4.mjs +165 -0
- package/__chunks__/PillGroup-DLiSsITz.mjs +2216 -0
- package/__chunks__/PillGroup-Eqyl1bDU.js +2215 -0
- package/__chunks__/RadioGroup-XPAeX1Q8.js +334 -0
- package/__chunks__/RadioGroup-wcwn_iD9.mjs +335 -0
- package/__chunks__/RangeCalendar-1DS6SiHr.mjs +228 -0
- package/__chunks__/RangeCalendar-BkOPNa-r.js +227 -0
- package/__chunks__/Search-BY7IgEyX.js +57 -0
- package/__chunks__/Search-Cyblmqo5.mjs +41 -0
- package/__chunks__/SelectOverlay-Wgoyy1xh.mjs +421 -0
- package/__chunks__/SelectOverlay-yK4x3ME5.js +420 -0
- package/__chunks__/SelectionManager-BZ_5U5QP.js +713 -0
- package/__chunks__/SelectionManager-VOfe5ZyB.mjs +714 -0
- package/__chunks__/SelectorErrorTooltip-CfELFFol.mjs +75 -0
- package/__chunks__/SelectorErrorTooltip-Dy5XVo5i.js +90 -0
- package/__chunks__/Spinner-CVdzIrmm.mjs +100 -0
- package/__chunks__/Spinner-Cyc2JsYB.js +99 -0
- package/__chunks__/Stepper-CexdatYw.mjs +169 -0
- package/__chunks__/Stepper-DV4cL0T9.js +168 -0
- package/__chunks__/TabNav-Csa-J3Fk.js +57 -0
- package/__chunks__/TabNav-T8hRXmuY.mjs +58 -0
- package/__chunks__/Tabs-CIjTS2ET.mjs +254 -0
- package/__chunks__/Tabs-Dzj2pWUX.js +253 -0
- package/__chunks__/Text-BWjD7__Y.mjs +123 -0
- package/__chunks__/Text-BXsuDbqc.js +122 -0
- package/__chunks__/TextField-CwU9Dqtd.mjs +45 -0
- package/__chunks__/TextField-E-qy6m58.js +44 -0
- package/__chunks__/Theme-Bzhg0otp.mjs +147 -0
- package/__chunks__/Theme-Cos5kTlc.js +146 -0
- package/__chunks__/Toggle-HaiwEDJI.js +136 -0
- package/__chunks__/Toggle-yrZiKq0v.mjs +137 -0
- package/__chunks__/{index-f435a274.js → Tooltip-DCaNdmWS.js} +135 -142
- package/__chunks__/{index-47683f16.mjs → Tooltip-UHXfPjcM.mjs} +125 -132
- package/__chunks__/UnstyledButton-CbCwVIkK.mjs +80 -0
- package/__chunks__/UnstyledButton-DaRYVyfB.js +79 -0
- package/__chunks__/VerticalStack-C2yDQVHD.mjs +55 -0
- package/__chunks__/VerticalStack-Dzpv3O67.js +54 -0
- package/__chunks__/VisuallyHidden-CEixEKmF.mjs +75 -0
- package/__chunks__/VisuallyHidden-xO9zYcmX.js +74 -0
- package/__chunks__/_commonjsHelpers-Bc2YnDe1.js +7 -0
- package/__chunks__/_commonjsHelpers-DWwsNxpa.mjs +8 -0
- package/__chunks__/ariaHideOutside-B7gPQCIa.mjs +394 -0
- package/__chunks__/ariaHideOutside-HcCjeNMn.js +393 -0
- package/__chunks__/context-BEoWr5Bw.mjs +92 -0
- package/__chunks__/context-Dxz9OXQY.js +91 -0
- package/__chunks__/filterDOMProps-D3iOHP0H.js +27 -0
- package/__chunks__/filterDOMProps-EDDcM64A.mjs +28 -0
- package/__chunks__/focusSafely-D4cM_C4U.mjs +85 -0
- package/__chunks__/focusSafely-DGwTMyzw.js +84 -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-CUcRN4NO.js +311 -0
- package/__chunks__/index-DOQwYO8h.mjs +148 -0
- package/__chunks__/index-Izk6uvQC.mjs +312 -0
- package/__chunks__/isScrollable-CE3Xdlg4.js +9 -0
- package/__chunks__/isScrollable-DwbLAiO0.mjs +10 -0
- package/__chunks__/lodash-B19QVK6q.mjs +5492 -0
- package/__chunks__/lodash-CS8bkZ7S.js +5491 -0
- package/__chunks__/mergeProps-CORsYhTp.mjs +229 -0
- package/__chunks__/mergeProps-d7wJkv71.js +228 -0
- package/__chunks__/mergeRefs-ClQjEiLh.mjs +24 -0
- package/__chunks__/mergeRefs-qNwPManW.js +23 -0
- package/__chunks__/number-C4N6pKyl.js +6 -0
- package/__chunks__/number-CLRm_tTs.mjs +7 -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-BY1C_8w5.mjs +115 -0
- package/__chunks__/scrollIntoView-DrxAy81g.js +114 -0
- package/__chunks__/tokens-D4KvbbyC.mjs +342 -0
- package/__chunks__/tokens-oBdmeeGv.js +341 -0
- package/__chunks__/useButton-Ca3vtrUS.mjs +50 -0
- package/__chunks__/useButton-RDnDDS-w.js +49 -0
- package/__chunks__/useCollator-Bbw6GMg7.js +12 -0
- package/__chunks__/useCollator-D97tqUbx.mjs +13 -0
- package/__chunks__/{import-dea5a24d.js → useControlledState-B2XIiHlL.js} +5 -14
- package/__chunks__/{import-6a831ca1.mjs → useControlledState-BDO08zJF.mjs} +6 -15
- package/__chunks__/useDialog-C2wEAsRc.mjs +72 -0
- package/__chunks__/useDialog-s6kCqmHb.js +71 -0
- package/__chunks__/useEdgeInterceptors-D_DARZZd.mjs +49 -0
- package/__chunks__/useEdgeInterceptors-Ihk8NfjJ.js +48 -0
- package/__chunks__/useEvent-B40RDiQ6.mjs +23 -0
- package/__chunks__/useEvent-Dh4hqdOa.js +22 -0
- package/__chunks__/useField-C80n1AHI.js +38 -0
- package/__chunks__/useField-D1rL_Lz6.mjs +39 -0
- package/__chunks__/useFilter-CQzUxSTO.mjs +65 -0
- package/__chunks__/useFilter-DMnYaJdO.js +64 -0
- package/__chunks__/useFocus-QhB_LR_6.mjs +38 -0
- package/__chunks__/useFocus-r5im5eX7.js +37 -0
- package/__chunks__/useFocusRing-Do5WdNL_.js +42 -0
- package/__chunks__/useFocusRing-I6O2iIqT.mjs +43 -0
- package/__chunks__/useFocusVisible-CbSS3hxW.js +551 -0
- package/__chunks__/useFocusVisible-S02S36Aj.mjs +552 -0
- package/__chunks__/useFocusWithin-4tCIop4g.js +69 -0
- package/__chunks__/useFocusWithin-eVSXHfLE.mjs +70 -0
- package/__chunks__/useFocusable-CztLmeBQ.js +101 -0
- package/__chunks__/useFocusable-YWcLWvwY.mjs +102 -0
- package/__chunks__/useFormReset-XL_MAi9u.mjs +22 -0
- package/__chunks__/useFormReset-mp5g2mF5.js +21 -0
- package/__chunks__/useFormValidation-CUeEhwOT.mjs +263 -0
- package/__chunks__/useFormValidation-CzZERvX9.js +262 -0
- package/__chunks__/useHasTabbableChild-Bq9mFdfm.js +36 -0
- package/__chunks__/useHasTabbableChild-CCkpUWx6.mjs +37 -0
- package/__chunks__/useHighlightSelectionDescription-2e9FDFKT.js +584 -0
- package/__chunks__/useHighlightSelectionDescription-Dpnx4leb.mjs +586 -0
- package/__chunks__/useHover-BK8LX0kX.js +119 -0
- package/__chunks__/useHover-Djd8mM67.mjs +120 -0
- package/__chunks__/useIntersectionDetection-BvUmtDgl.mjs +22 -0
- package/__chunks__/useIntersectionDetection-DI5n4zwA.js +21 -0
- package/__chunks__/useLabel-D9oYLpKn.js +26 -0
- package/__chunks__/useLabel-DG4LdFPw.mjs +27 -0
- package/__chunks__/useLabels-DMDlcCM_.js +22 -0
- package/__chunks__/useLabels-DWprW4wx.mjs +23 -0
- package/__chunks__/useLink-hFVDzAjm.mjs +77 -0
- package/__chunks__/useLink-rHGI96g9.js +76 -0
- package/__chunks__/useListBoxSection-C0KVZkom.mjs +194 -0
- package/__chunks__/useListBoxSection-UKCe8noj.js +193 -0
- package/__chunks__/useListState-CU712DaQ.js +196 -0
- package/__chunks__/useListState-Doymm1MR.mjs +197 -0
- package/__chunks__/useLocalizedStringFormatter-D-qKpkp4.mjs +122 -0
- package/__chunks__/useLocalizedStringFormatter-X4sjSzZt.js +121 -0
- package/__chunks__/useMenuTrigger-C91gC8Fc.mjs +271 -0
- package/__chunks__/useMenuTrigger-Caz-rlTr.js +270 -0
- package/__chunks__/useMenuTriggerState-4geEb8Fl.mjs +67 -0
- package/__chunks__/useMenuTriggerState-trGu1Eq_.js +66 -0
- package/__chunks__/useModalOverlay-B1oqp24F.js +47 -0
- package/__chunks__/useModalOverlay-C2Qh_ZjU.mjs +48 -0
- package/__chunks__/useObjectRef-77h4G8qk.mjs +40 -0
- package/__chunks__/useObjectRef-Bma_uNHw.js +39 -0
- package/__chunks__/useOverlayPosition-BT4OWkj_.js +472 -0
- package/__chunks__/useOverlayPosition-CgkOWsX7.mjs +473 -0
- package/__chunks__/useOverlayTrigger-AXvrWojB.js +27 -0
- package/__chunks__/useOverlayTrigger-DOqDd2-0.mjs +28 -0
- package/__chunks__/usePress-BbU41fvX.js +782 -0
- package/__chunks__/usePress-tJX1Ngpm.mjs +783 -0
- package/__chunks__/useResizeObserver-BsbT3mjh.js +34 -0
- package/__chunks__/useResizeObserver-Dyb4wvuA.mjs +35 -0
- package/__chunks__/useSelectableItem-CHrk6m3n.js +694 -0
- package/__chunks__/useSelectableItem-DeMnuLRU.mjs +695 -0
- package/__chunks__/useSelectableList-By73z8mx.mjs +282 -0
- package/__chunks__/useSelectableList-CdgAPdCe.js +281 -0
- package/__chunks__/useSingleSelectListState-Br2JooAG.js +55 -0
- package/__chunks__/useSingleSelectListState-ByDUc5Ex.mjs +56 -0
- package/__chunks__/useTextField-CWNBnEVY.mjs +111 -0
- package/__chunks__/useTextField-DjK7_RjC.js +110 -0
- package/__chunks__/{import-eb35a9b9.mjs → useToggle-DOBadbRi.mjs} +25 -30
- package/__chunks__/useToggle-DyJeZfUS.js +76 -0
- package/__chunks__/useToggleState-1Mo_p5l0.mjs +19 -0
- package/__chunks__/useToggleState-8QqTgvTU.js +18 -0
- package/__chunks__/useTreeState-DdjTMMtR.mjs +143 -0
- package/__chunks__/useTreeState-kH1tpPJB.js +142 -0
- package/__chunks__/useTriggerWidth-74VNM0k9.mjs +133 -0
- package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
- package/__chunks__/useUpdateEffect-BII0W8Ne.js +19 -0
- package/__chunks__/useUpdateEffect-C9amKlvd.mjs +20 -0
- package/__chunks__/utilities-Bg_lZUNn.js +362 -0
- package/__chunks__/utilities-DUnS31dY.mjs +363 -0
- package/__chunks__/utils-Bjpgmx8t.js +148 -0
- package/__chunks__/utils-mDT30gHU.mjs +149 -0
- package/package.json +17 -15
- package/style.css +6279 -2516
- 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 +10 -4
- package/types.d.ts.map +1 -1
- package/utilities/EasyPostLogo.d.ts +3 -0
- package/utilities/EasyPostLogo.d.ts.map +1 -0
- 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 +17 -1
- 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 +23 -41
- package/utilities/storybook.d.ts.map +1 -1
- package/utilities/test.d.ts +21 -3
- package/utilities/test.d.ts.map +1 -1
- package/utilities/tokens.d.ts.map +1 -1
- package/{Menu → utilities}/useScrollbar.d.ts +2 -4
- package/utilities/useScrollbar.d.ts.map +1 -0
- package/utilities/useScrollbar.js +22 -0
- package/utilities/useScrollbar.mjs +22 -0
- package/Menu/useScrollbar.d.ts.map +0 -1
- package/__chunks__/InputIcon-271d86df.js +0 -147
- package/__chunks__/InputIcon-49499c9e.mjs +0 -148
- package/__chunks__/import-0f8555a4.js +0 -1121
- package/__chunks__/import-19bc38ac.mjs +0 -679
- package/__chunks__/import-24a482e1.js +0 -59
- package/__chunks__/import-26676303.js +0 -1436
- package/__chunks__/import-29af6941.mjs +0 -60
- package/__chunks__/import-3faba3a6.mjs +0 -1437
- package/__chunks__/import-890ae60e.js +0 -81
- package/__chunks__/import-a1e0f814.js +0 -678
- package/__chunks__/import-c4caaddf.mjs +0 -1122
- package/__chunks__/index-45f05366.mjs +0 -133
- package/__chunks__/index-5f429325.js +0 -132
- package/__chunks__/index-f1992973.mjs +0 -5421
- package/__chunks__/index-f3d4a4c1.js +0 -5420
- package/__chunks__/omit-f17deb8f.mjs +0 -1296
- package/__chunks__/omit-fca26542.js +0 -1295
- package/__chunks__/real-module-515df21d.mjs +0 -216
- package/__chunks__/real-module-e36b1436.js +0 -215
- package/__chunks__/tokens-3c27019b.mjs +0 -314
- package/__chunks__/tokens-ad06cd2c.js +0 -313
- package/__chunks__/useTriggerWidth-b554acaf.mjs +0 -2031
- package/__chunks__/useTriggerWidth-e11bf6d6.js +0 -2030
|
@@ -0,0 +1,2216 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import React__default, { useState, useMemo, useRef, useEffect, cloneElement, useContext, createContext, useCallback, forwardRef } from "react";
|
|
33
|
+
import { d as $f39a9eba43920ace$export$8dc98ba7eadeaa56, c as $f39a9eba43920ace$export$86427a43e3e48ebb, b as $d2b4bc8c273e7be6$export$24d547caef80ccd1, $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "./Button-B9eOc3oY.mjs";
|
|
34
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, c as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-mDT30gHU.mjs";
|
|
35
|
+
import { createPortal } from "react-dom";
|
|
36
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c, b as $f645667febf57a63$export$f9762fab77588ecb } from "./useFocusable-YWcLWvwY.mjs";
|
|
37
|
+
import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $ff5963eb1fccf552$export$e08e3b67e392101e, d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-CORsYhTp.mjs";
|
|
38
|
+
import { s as shimExports } from "./index-DOQwYO8h.mjs";
|
|
39
|
+
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-ClQjEiLh.mjs";
|
|
40
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
41
|
+
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-77h4G8qk.mjs";
|
|
42
|
+
import { b as $e72dd72e1c76a225$export$ba9d38c0f1bf2b36, $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-Doymm1MR.mjs";
|
|
43
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BEoWr5Bw.mjs";
|
|
44
|
+
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-D97tqUbx.mjs";
|
|
45
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, b as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./useSelectableList-By73z8mx.mjs";
|
|
46
|
+
import { b as $c132121280ec012d$export$50eacbbf140a3141, a as $af383d3bef1cfdc9$export$c3f9f39876e4bc7, $ as $293f70390ea03370$export$497855f14858aa34 } from "./useListBoxSection-C0KVZkom.mjs";
|
|
47
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-I6O2iIqT.mjs";
|
|
48
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa, c as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-DHbxxtYV.mjs";
|
|
49
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-Djd8mM67.mjs";
|
|
50
|
+
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./useField-D1rL_Lz6.mjs";
|
|
51
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-eVSXHfLE.mjs";
|
|
52
|
+
import { $ as $5b9b5b5723db6ae1$export$be42ebdab07ae4c2, a as $92599c3fd427b763$export$137e594ef3218a10 } from "./useHighlightSelectionDescription-Dpnx4leb.mjs";
|
|
53
|
+
import { $ as $83013635b024ae3d$export$eac1895992b9f3d6 } from "./useHasTabbableChild-CCkpUWx6.mjs";
|
|
54
|
+
import { f as $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 } from "./usePress-tJX1Ngpm.mjs";
|
|
55
|
+
import { b as $2f04cbc44ee30ce0$export$c826860796309d1b, $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-BY1C_8w5.mjs";
|
|
56
|
+
import { f as $507fabe10e71c6fb$export$b9b3dfddab17db27, B as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-S02S36Aj.mjs";
|
|
57
|
+
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B5CCP-yO.mjs";
|
|
58
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-D4cM_C4U.mjs";
|
|
59
|
+
import { d as $c5a24bc478652b5f$export$7475b2c64539e4cf } from "./SelectionManager-VOfe5ZyB.mjs";
|
|
60
|
+
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-DeMnuLRU.mjs";
|
|
61
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D-qKpkp4.mjs";
|
|
62
|
+
import { C as Close } from "./Close-Cq6Q6MN6.mjs";
|
|
63
|
+
import { I as Icon } from "./Icon-0SN9dbwU.mjs";
|
|
64
|
+
import { T as Text } from "./Text-BWjD7__Y.mjs";
|
|
65
|
+
import { getComponentToken, getResponsiveDesignToken, getComponentThemeToken, classNames } from "../utilities/css.mjs";
|
|
66
|
+
function $0d86e9c8f07f9a7b$export$762f73dccccd255d(options) {
|
|
67
|
+
let { initialItems = [], initialSelectedKeys, getKey = (item) => {
|
|
68
|
+
var _item_id;
|
|
69
|
+
return (_item_id = item.id) !== null && _item_id !== void 0 ? _item_id : item.key;
|
|
70
|
+
}, filter, initialFilterText = "" } = options;
|
|
71
|
+
let [state, setState] = useState({
|
|
72
|
+
items: initialItems,
|
|
73
|
+
selectedKeys: initialSelectedKeys === "all" ? "all" : new Set(initialSelectedKeys || []),
|
|
74
|
+
filterText: initialFilterText
|
|
75
|
+
});
|
|
76
|
+
let filteredItems = useMemo(() => filter ? state.items.filter((item) => filter(item, state.filterText)) : state.items, [
|
|
77
|
+
state.items,
|
|
78
|
+
state.filterText,
|
|
79
|
+
filter
|
|
80
|
+
]);
|
|
81
|
+
return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, state), {
|
|
82
|
+
items: filteredItems
|
|
83
|
+
}), $0d86e9c8f07f9a7b$export$79c0c687a5963b0a({
|
|
84
|
+
getKey
|
|
85
|
+
}, setState)), {
|
|
86
|
+
getItem(key) {
|
|
87
|
+
return state.items.find((item) => getKey(item) === key);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
|
|
92
|
+
let { cursor, getKey } = opts;
|
|
93
|
+
return {
|
|
94
|
+
setSelectedKeys(selectedKeys) {
|
|
95
|
+
dispatch((state) => __spreadProps(__spreadValues({}, state), {
|
|
96
|
+
selectedKeys
|
|
97
|
+
}));
|
|
98
|
+
},
|
|
99
|
+
setFilterText(filterText) {
|
|
100
|
+
dispatch((state) => __spreadProps(__spreadValues({}, state), {
|
|
101
|
+
filterText
|
|
102
|
+
}));
|
|
103
|
+
},
|
|
104
|
+
insert(index, ...values) {
|
|
105
|
+
dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, index, ...values));
|
|
106
|
+
},
|
|
107
|
+
insertBefore(key, ...values) {
|
|
108
|
+
dispatch((state) => {
|
|
109
|
+
let index = state.items.findIndex((item) => (getKey === null || getKey === void 0 ? void 0 : getKey(item)) === key);
|
|
110
|
+
if (index === -1) {
|
|
111
|
+
if (state.items.length === 0) index = 0;
|
|
112
|
+
else return state;
|
|
113
|
+
}
|
|
114
|
+
return $0d86e9c8f07f9a7b$var$insert(state, index, ...values);
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
insertAfter(key, ...values) {
|
|
118
|
+
dispatch((state) => {
|
|
119
|
+
let index = state.items.findIndex((item) => (getKey === null || getKey === void 0 ? void 0 : getKey(item)) === key);
|
|
120
|
+
if (index === -1) {
|
|
121
|
+
if (state.items.length === 0) index = 0;
|
|
122
|
+
else return state;
|
|
123
|
+
}
|
|
124
|
+
return $0d86e9c8f07f9a7b$var$insert(state, index + 1, ...values);
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
prepend(...values) {
|
|
128
|
+
dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, 0, ...values));
|
|
129
|
+
},
|
|
130
|
+
append(...values) {
|
|
131
|
+
dispatch((state) => $0d86e9c8f07f9a7b$var$insert(state, state.items.length, ...values));
|
|
132
|
+
},
|
|
133
|
+
remove(...keys) {
|
|
134
|
+
dispatch((state) => {
|
|
135
|
+
let keySet = new Set(keys);
|
|
136
|
+
let items = state.items.filter((item) => !keySet.has(getKey(item)));
|
|
137
|
+
let selection = "all";
|
|
138
|
+
if (state.selectedKeys !== "all") {
|
|
139
|
+
selection = new Set(state.selectedKeys);
|
|
140
|
+
for (let key of keys) selection.delete(key);
|
|
141
|
+
}
|
|
142
|
+
if (cursor == null && items.length === 0) selection = /* @__PURE__ */ new Set();
|
|
143
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
144
|
+
items,
|
|
145
|
+
selectedKeys: selection
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
removeSelectedItems() {
|
|
150
|
+
dispatch((state) => {
|
|
151
|
+
if (state.selectedKeys === "all") return __spreadProps(__spreadValues({}, state), {
|
|
152
|
+
items: [],
|
|
153
|
+
selectedKeys: /* @__PURE__ */ new Set()
|
|
154
|
+
});
|
|
155
|
+
let selectedKeys = state.selectedKeys;
|
|
156
|
+
let items = state.items.filter((item) => !selectedKeys.has(getKey(item)));
|
|
157
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
158
|
+
items,
|
|
159
|
+
selectedKeys: /* @__PURE__ */ new Set()
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
move(key, toIndex) {
|
|
164
|
+
dispatch((state) => {
|
|
165
|
+
let index = state.items.findIndex((item2) => getKey(item2) === key);
|
|
166
|
+
if (index === -1) return state;
|
|
167
|
+
let copy = state.items.slice();
|
|
168
|
+
let [item] = copy.splice(index, 1);
|
|
169
|
+
copy.splice(toIndex, 0, item);
|
|
170
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
171
|
+
items: copy
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
moveBefore(key, keys) {
|
|
176
|
+
dispatch((state) => {
|
|
177
|
+
let toIndex = state.items.findIndex((item) => getKey(item) === key);
|
|
178
|
+
if (toIndex === -1) return state;
|
|
179
|
+
let keyArray = Array.isArray(keys) ? keys : [
|
|
180
|
+
...keys
|
|
181
|
+
];
|
|
182
|
+
let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
|
|
183
|
+
return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex);
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
moveAfter(key, keys) {
|
|
187
|
+
dispatch((state) => {
|
|
188
|
+
let toIndex = state.items.findIndex((item) => getKey(item) === key);
|
|
189
|
+
if (toIndex === -1) return state;
|
|
190
|
+
let keyArray = Array.isArray(keys) ? keys : [
|
|
191
|
+
...keys
|
|
192
|
+
];
|
|
193
|
+
let indices = keyArray.map((key2) => state.items.findIndex((item) => getKey(item) === key2)).sort((a, b) => a - b);
|
|
194
|
+
return $0d86e9c8f07f9a7b$var$move(state, indices, toIndex + 1);
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
update(key, newValue) {
|
|
198
|
+
dispatch((state) => {
|
|
199
|
+
let index = state.items.findIndex((item) => getKey(item) === key);
|
|
200
|
+
if (index === -1) return state;
|
|
201
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
202
|
+
items: [
|
|
203
|
+
...state.items.slice(0, index),
|
|
204
|
+
newValue,
|
|
205
|
+
...state.items.slice(index + 1)
|
|
206
|
+
]
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function $0d86e9c8f07f9a7b$var$insert(state, index, ...values) {
|
|
213
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
214
|
+
items: [
|
|
215
|
+
...state.items.slice(0, index),
|
|
216
|
+
...values,
|
|
217
|
+
...state.items.slice(index)
|
|
218
|
+
]
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function $0d86e9c8f07f9a7b$var$move(state, indices, toIndex) {
|
|
222
|
+
toIndex -= indices.filter((index) => index < toIndex).length;
|
|
223
|
+
let moves = indices.map((from) => ({
|
|
224
|
+
from,
|
|
225
|
+
to: toIndex++
|
|
226
|
+
}));
|
|
227
|
+
for (let i = 0; i < moves.length; i++) {
|
|
228
|
+
let a = moves[i].from;
|
|
229
|
+
for (let j = i; j < moves.length; j++) {
|
|
230
|
+
let b = moves[j].from;
|
|
231
|
+
if (b > a) moves[j].from--;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
for (let i = 0; i < moves.length; i++) {
|
|
235
|
+
let a = moves[i];
|
|
236
|
+
for (let j = moves.length - 1; j > i; j--) {
|
|
237
|
+
let b = moves[j];
|
|
238
|
+
if (b.from < a.to) a.to++;
|
|
239
|
+
else b.from++;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
let copy = state.items.slice();
|
|
243
|
+
for (let move of moves) {
|
|
244
|
+
let [item] = copy.splice(move.from, 1);
|
|
245
|
+
copy.splice(move.to, 0, item);
|
|
246
|
+
}
|
|
247
|
+
return __spreadProps(__spreadValues({}, state), {
|
|
248
|
+
items: copy
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
const $ce9b18daab526bbd$export$5b9bb410392e3991 = /* @__PURE__ */ new WeakMap();
|
|
252
|
+
function $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {
|
|
253
|
+
var _listMap_get;
|
|
254
|
+
let { id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== void 0 ? _listMap_get : {};
|
|
255
|
+
if (!id) throw new Error("Unknown list");
|
|
256
|
+
return `${id}-${$ce9b18daab526bbd$export$e0c709538cb8ae18(key)}`;
|
|
257
|
+
}
|
|
258
|
+
function $ce9b18daab526bbd$export$e0c709538cb8ae18(key) {
|
|
259
|
+
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
260
|
+
return "" + key;
|
|
261
|
+
}
|
|
262
|
+
function $f47efb0c3a859cf2$export$664f9155035607eb(props, state, ref) {
|
|
263
|
+
let { isVirtualized, keyboardDelegate, layoutDelegate, onAction, disallowTypeAhead, linkBehavior = "action", keyboardNavigationBehavior = "arrow", escapeKeyBehavior = "clearSelection", shouldSelectOnPressUp } = props;
|
|
264
|
+
if (!props["aria-label"] && !props["aria-labelledby"]) console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
265
|
+
let { listProps } = $982254629710d113$export$b95089534ab7c1fd({
|
|
266
|
+
selectionManager: state.selectionManager,
|
|
267
|
+
collection: state.collection,
|
|
268
|
+
disabledKeys: state.disabledKeys,
|
|
269
|
+
ref,
|
|
270
|
+
keyboardDelegate,
|
|
271
|
+
layoutDelegate,
|
|
272
|
+
isVirtualized,
|
|
273
|
+
selectOnFocus: state.selectionManager.selectionBehavior === "replace",
|
|
274
|
+
shouldFocusWrap: props.shouldFocusWrap,
|
|
275
|
+
linkBehavior,
|
|
276
|
+
disallowTypeAhead,
|
|
277
|
+
autoFocus: props.autoFocus,
|
|
278
|
+
escapeKeyBehavior
|
|
279
|
+
});
|
|
280
|
+
let id = $bdb11010cef70236$export$f680877a34711e37(props.id);
|
|
281
|
+
$ce9b18daab526bbd$export$5b9bb410392e3991.set(state, {
|
|
282
|
+
id,
|
|
283
|
+
onAction,
|
|
284
|
+
linkBehavior,
|
|
285
|
+
keyboardNavigationBehavior,
|
|
286
|
+
shouldSelectOnPressUp
|
|
287
|
+
});
|
|
288
|
+
let descriptionProps = $5b9b5b5723db6ae1$export$be42ebdab07ae4c2({
|
|
289
|
+
selectionManager: state.selectionManager,
|
|
290
|
+
hasItemActions: !!onAction
|
|
291
|
+
});
|
|
292
|
+
let hasTabbableChild = $83013635b024ae3d$export$eac1895992b9f3d6(ref, {
|
|
293
|
+
isDisabled: state.collection.size !== 0
|
|
294
|
+
});
|
|
295
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
296
|
+
labelable: true
|
|
297
|
+
});
|
|
298
|
+
let gridProps = $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
299
|
+
domProps,
|
|
300
|
+
{
|
|
301
|
+
role: "grid",
|
|
302
|
+
id,
|
|
303
|
+
"aria-multiselectable": state.selectionManager.selectionMode === "multiple" ? "true" : void 0
|
|
304
|
+
},
|
|
305
|
+
// If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
|
|
306
|
+
state.collection.size === 0 ? {
|
|
307
|
+
tabIndex: hasTabbableChild ? -1 : 0
|
|
308
|
+
} : listProps,
|
|
309
|
+
descriptionProps
|
|
310
|
+
);
|
|
311
|
+
if (isVirtualized) {
|
|
312
|
+
gridProps["aria-rowcount"] = state.collection.size;
|
|
313
|
+
gridProps["aria-colcount"] = 1;
|
|
314
|
+
}
|
|
315
|
+
$92599c3fd427b763$export$137e594ef3218a10({}, state);
|
|
316
|
+
return {
|
|
317
|
+
gridProps
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
const $4e8b0456ef72939f$var$EXPANSION_KEYS = {
|
|
321
|
+
"expand": {
|
|
322
|
+
ltr: "ArrowRight",
|
|
323
|
+
rtl: "ArrowLeft"
|
|
324
|
+
},
|
|
325
|
+
"collapse": {
|
|
326
|
+
ltr: "ArrowLeft",
|
|
327
|
+
rtl: "ArrowRight"
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
|
|
331
|
+
var _node_props, _node_props1;
|
|
332
|
+
let { node, isVirtualized } = props;
|
|
333
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
334
|
+
let { onAction, linkBehavior, keyboardNavigationBehavior, shouldSelectOnPressUp } = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state);
|
|
335
|
+
let descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
336
|
+
let keyWhenFocused = useRef(null);
|
|
337
|
+
let focus = () => {
|
|
338
|
+
var _ref_current;
|
|
339
|
+
if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(document.activeElement)))) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
340
|
+
};
|
|
341
|
+
let treeGridRowProps = {};
|
|
342
|
+
let hasChildRows = props.hasChildItems;
|
|
343
|
+
let hasLink = state.selectionManager.isLink(node.key);
|
|
344
|
+
if (node != null && "expandedKeys" in state) {
|
|
345
|
+
var _state_collection_getChildren, _state_collection, _filter_at;
|
|
346
|
+
let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === void 0 ? void 0 : _state_collection_getChildren.call(_state_collection, node.key);
|
|
347
|
+
hasChildRows = hasChildRows || [
|
|
348
|
+
...children !== null && children !== void 0 ? children : []
|
|
349
|
+
].length > 1;
|
|
350
|
+
if (onAction == null && !hasLink && state.selectionManager.selectionMode === "none" && hasChildRows) onAction = () => state.toggleKey(node.key);
|
|
351
|
+
let isExpanded = hasChildRows ? state.expandedKeys.has(node.key) : void 0;
|
|
352
|
+
let setSize = 1;
|
|
353
|
+
var _filter_at_index;
|
|
354
|
+
if (node.level > 0 && (node === null || node === void 0 ? void 0 : node.parentKey) != null) {
|
|
355
|
+
let parent = state.collection.getItem(node.parentKey);
|
|
356
|
+
if (parent) {
|
|
357
|
+
var _state_collection_getChildren1, _state_collection1;
|
|
358
|
+
let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === void 0 ? void 0 : _state_collection_getChildren1.call(_state_collection1, parent.key);
|
|
359
|
+
setSize = $c5a24bc478652b5f$export$7475b2c64539e4cf(siblings).index + 1;
|
|
360
|
+
}
|
|
361
|
+
} else setSize = ((_filter_at_index = (_filter_at = [
|
|
362
|
+
...state.collection
|
|
363
|
+
].filter((row) => row.level === 0).at(-1)) === null || _filter_at === void 0 ? void 0 : _filter_at.index) !== null && _filter_at_index !== void 0 ? _filter_at_index : 0) + 1;
|
|
364
|
+
treeGridRowProps = {
|
|
365
|
+
"aria-expanded": isExpanded,
|
|
366
|
+
"aria-level": node.level + 1,
|
|
367
|
+
"aria-posinset": (node === null || node === void 0 ? void 0 : node.index) + 1,
|
|
368
|
+
"aria-setsize": setSize
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
let _a = $880e95eb8b93ba9a$export$ecf600387e221c37({
|
|
372
|
+
selectionManager: state.selectionManager,
|
|
373
|
+
key: node.key,
|
|
374
|
+
ref,
|
|
375
|
+
isVirtualized,
|
|
376
|
+
shouldSelectOnPressUp: props.shouldSelectOnPressUp || shouldSelectOnPressUp,
|
|
377
|
+
onAction: onAction || ((_node_props = node.props) === null || _node_props === void 0 ? void 0 : _node_props.onAction) ? $ff5963eb1fccf552$export$e08e3b67e392101e((_node_props1 = node.props) === null || _node_props1 === void 0 ? void 0 : _node_props1.onAction, onAction ? () => onAction(node.key) : void 0) : void 0,
|
|
378
|
+
focus,
|
|
379
|
+
linkBehavior
|
|
380
|
+
}), { itemProps } = _a, itemStates = __objRest(_a, ["itemProps"]);
|
|
381
|
+
let onKeyDownCapture = (e) => {
|
|
382
|
+
if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;
|
|
383
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current);
|
|
384
|
+
walker.currentNode = document.activeElement;
|
|
385
|
+
if ("expandedKeys" in state && document.activeElement === ref.current) {
|
|
386
|
+
if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS["expand"][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && !state.expandedKeys.has(node.key)) {
|
|
387
|
+
state.toggleKey(node.key);
|
|
388
|
+
e.stopPropagation();
|
|
389
|
+
return;
|
|
390
|
+
} else if (e.key === $4e8b0456ef72939f$var$EXPANSION_KEYS["collapse"][direction] && state.selectionManager.focusedKey === node.key && hasChildRows && state.expandedKeys.has(node.key)) {
|
|
391
|
+
state.toggleKey(node.key);
|
|
392
|
+
e.stopPropagation();
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
switch (e.key) {
|
|
397
|
+
case "ArrowLeft":
|
|
398
|
+
if (keyboardNavigationBehavior === "arrow") {
|
|
399
|
+
let focusable = direction === "rtl" ? walker.nextNode() : walker.previousNode();
|
|
400
|
+
if (focusable) {
|
|
401
|
+
e.preventDefault();
|
|
402
|
+
e.stopPropagation();
|
|
403
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(focusable);
|
|
404
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(focusable, {
|
|
405
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
406
|
+
});
|
|
407
|
+
} else {
|
|
408
|
+
e.preventDefault();
|
|
409
|
+
e.stopPropagation();
|
|
410
|
+
if (direction === "rtl") {
|
|
411
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
412
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
413
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
414
|
+
});
|
|
415
|
+
} else {
|
|
416
|
+
walker.currentNode = ref.current;
|
|
417
|
+
let lastElement = $4e8b0456ef72939f$var$last(walker);
|
|
418
|
+
if (lastElement) {
|
|
419
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(lastElement);
|
|
420
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(lastElement, {
|
|
421
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
break;
|
|
428
|
+
case "ArrowRight":
|
|
429
|
+
if (keyboardNavigationBehavior === "arrow") {
|
|
430
|
+
let focusable = direction === "rtl" ? walker.previousNode() : walker.nextNode();
|
|
431
|
+
if (focusable) {
|
|
432
|
+
e.preventDefault();
|
|
433
|
+
e.stopPropagation();
|
|
434
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(focusable);
|
|
435
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(focusable, {
|
|
436
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
437
|
+
});
|
|
438
|
+
} else {
|
|
439
|
+
e.preventDefault();
|
|
440
|
+
e.stopPropagation();
|
|
441
|
+
if (direction === "ltr") {
|
|
442
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
443
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(ref.current, {
|
|
444
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
445
|
+
});
|
|
446
|
+
} else {
|
|
447
|
+
walker.currentNode = ref.current;
|
|
448
|
+
let lastElement = $4e8b0456ef72939f$var$last(walker);
|
|
449
|
+
if (lastElement) {
|
|
450
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c(lastElement);
|
|
451
|
+
$2f04cbc44ee30ce0$export$c826860796309d1b(lastElement, {
|
|
452
|
+
containingElement: $62d8ded9296f3872$export$cfa2225e87938781(ref.current)
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
break;
|
|
459
|
+
case "ArrowUp":
|
|
460
|
+
case "ArrowDown":
|
|
461
|
+
if (!e.altKey && ref.current.contains(e.target)) {
|
|
462
|
+
var _ref_current_parentElement;
|
|
463
|
+
e.stopPropagation();
|
|
464
|
+
e.preventDefault();
|
|
465
|
+
(_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
|
|
466
|
+
}
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
let onFocus = (e) => {
|
|
471
|
+
keyWhenFocused.current = node.key;
|
|
472
|
+
if (e.target !== ref.current) {
|
|
473
|
+
if (!$507fabe10e71c6fb$export$b9b3dfddab17db27()) state.selectionManager.setFocusedKey(node.key);
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
let onKeyDown = (e) => {
|
|
478
|
+
if (!e.currentTarget.contains(e.target) || !ref.current || !document.activeElement) return;
|
|
479
|
+
switch (e.key) {
|
|
480
|
+
case "Tab":
|
|
481
|
+
if (keyboardNavigationBehavior === "tab") {
|
|
482
|
+
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, {
|
|
483
|
+
tabbable: true
|
|
484
|
+
});
|
|
485
|
+
walker.currentNode = document.activeElement;
|
|
486
|
+
let next = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
487
|
+
if (next) e.stopPropagation();
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
let syntheticLinkProps = $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(node.props);
|
|
492
|
+
let linkProps = itemStates.hasAction ? syntheticLinkProps : {};
|
|
493
|
+
let rowProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, linkProps, {
|
|
494
|
+
role: "row",
|
|
495
|
+
onKeyDownCapture,
|
|
496
|
+
onKeyDown,
|
|
497
|
+
onFocus,
|
|
498
|
+
// 'aria-label': [(node.textValue || undefined), rowAnnouncement].filter(Boolean).join(', '),
|
|
499
|
+
"aria-label": node.textValue || void 0,
|
|
500
|
+
"aria-selected": state.selectionManager.canSelectItem(node.key) ? state.selectionManager.isSelected(node.key) : void 0,
|
|
501
|
+
"aria-disabled": state.selectionManager.isDisabled(node.key) || void 0,
|
|
502
|
+
"aria-labelledby": descriptionId && node.textValue ? `${$ce9b18daab526bbd$export$f45c25170b9a99c2(state, node.key)} ${descriptionId}` : void 0,
|
|
503
|
+
id: $ce9b18daab526bbd$export$f45c25170b9a99c2(state, node.key)
|
|
504
|
+
});
|
|
505
|
+
if (isVirtualized) rowProps["aria-rowindex"] = node.index + 1;
|
|
506
|
+
let gridCellProps = {
|
|
507
|
+
role: "gridcell",
|
|
508
|
+
"aria-colindex": 1
|
|
509
|
+
};
|
|
510
|
+
return __spreadValues({
|
|
511
|
+
rowProps: __spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(rowProps, treeGridRowProps)),
|
|
512
|
+
gridCellProps,
|
|
513
|
+
descriptionProps: {
|
|
514
|
+
id: descriptionId
|
|
515
|
+
}
|
|
516
|
+
}, itemStates);
|
|
517
|
+
}
|
|
518
|
+
function $4e8b0456ef72939f$var$last(walker) {
|
|
519
|
+
let next = null;
|
|
520
|
+
let last = null;
|
|
521
|
+
do {
|
|
522
|
+
last = walker.lastChild();
|
|
523
|
+
if (last) next = last;
|
|
524
|
+
} while (last);
|
|
525
|
+
return next;
|
|
526
|
+
}
|
|
527
|
+
const $d7323bca8d074eeb$export$653eddfc964b0f8a = /* @__PURE__ */ new WeakMap();
|
|
528
|
+
function $d7323bca8d074eeb$export$4f8b5cda58b7e8ff(props, state, ref) {
|
|
529
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
530
|
+
let keyboardDelegate = props.keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
531
|
+
collection: state.collection,
|
|
532
|
+
ref,
|
|
533
|
+
orientation: "horizontal",
|
|
534
|
+
direction,
|
|
535
|
+
disabledKeys: state.disabledKeys,
|
|
536
|
+
disabledBehavior: state.selectionManager.disabledBehavior
|
|
537
|
+
});
|
|
538
|
+
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d(__spreadProps(__spreadValues({}, props), {
|
|
539
|
+
labelElementType: "span"
|
|
540
|
+
}));
|
|
541
|
+
let { gridProps } = $f47efb0c3a859cf2$export$664f9155035607eb(__spreadProps(__spreadValues(__spreadValues({}, props), fieldProps), {
|
|
542
|
+
keyboardDelegate,
|
|
543
|
+
shouldFocusWrap: true,
|
|
544
|
+
linkBehavior: "override",
|
|
545
|
+
keyboardNavigationBehavior: "tab"
|
|
546
|
+
}), state, ref);
|
|
547
|
+
let [isFocusWithin, setFocusWithin] = useState(false);
|
|
548
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
|
|
549
|
+
onFocusWithinChange: setFocusWithin
|
|
550
|
+
});
|
|
551
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
552
|
+
let prevCount = useRef(state.collection.size);
|
|
553
|
+
useEffect(() => {
|
|
554
|
+
if (ref.current && prevCount.current > 0 && state.collection.size === 0 && isFocusWithin) ref.current.focus();
|
|
555
|
+
prevCount.current = state.collection.size;
|
|
556
|
+
}, [
|
|
557
|
+
state.collection.size,
|
|
558
|
+
isFocusWithin,
|
|
559
|
+
ref
|
|
560
|
+
]);
|
|
561
|
+
$d7323bca8d074eeb$export$653eddfc964b0f8a.set(state, {
|
|
562
|
+
onRemove: props.onRemove
|
|
563
|
+
});
|
|
564
|
+
return {
|
|
565
|
+
gridProps: $3ef42575df84b30b$export$9d1611c77c2fe928(gridProps, domProps, __spreadValues(__spreadValues({
|
|
566
|
+
role: state.collection.size ? "grid" : null,
|
|
567
|
+
"aria-atomic": false,
|
|
568
|
+
"aria-relevant": "additions",
|
|
569
|
+
"aria-live": isFocusWithin ? "polite" : "off"
|
|
570
|
+
}, focusWithinProps), fieldProps)),
|
|
571
|
+
labelProps,
|
|
572
|
+
descriptionProps,
|
|
573
|
+
errorMessageProps
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
var $84925f526f90eebd$exports = {};
|
|
577
|
+
$84925f526f90eebd$exports = {
|
|
578
|
+
"removeButtonLabel": `إزالة`,
|
|
579
|
+
"removeDescription": `اضغط على مفتاح DELETE لإزالة علامة.`
|
|
580
|
+
};
|
|
581
|
+
var $c0650163dc1b6f9d$exports = {};
|
|
582
|
+
$c0650163dc1b6f9d$exports = {
|
|
583
|
+
"removeButtonLabel": `Премахване`,
|
|
584
|
+
"removeDescription": `Натиснете Delete, за да премахнете маркера.`
|
|
585
|
+
};
|
|
586
|
+
var $b2b55661291de587$exports = {};
|
|
587
|
+
$b2b55661291de587$exports = {
|
|
588
|
+
"removeButtonLabel": `Odebrat`,
|
|
589
|
+
"removeDescription": `Stisknutím klávesy Delete odeberete značku.`
|
|
590
|
+
};
|
|
591
|
+
var $deb83970956f6d5b$exports = {};
|
|
592
|
+
$deb83970956f6d5b$exports = {
|
|
593
|
+
"removeButtonLabel": `Fjern`,
|
|
594
|
+
"removeDescription": `Tryk på Slet for at fjerne tag.`
|
|
595
|
+
};
|
|
596
|
+
var $aea1cb4c7ec97e1c$exports = {};
|
|
597
|
+
$aea1cb4c7ec97e1c$exports = {
|
|
598
|
+
"removeButtonLabel": `Entfernen`,
|
|
599
|
+
"removeDescription": `Auf „Löschen“ drücken, um das Tag zu entfernen.`
|
|
600
|
+
};
|
|
601
|
+
var $3618d917e503a8d3$exports = {};
|
|
602
|
+
$3618d917e503a8d3$exports = {
|
|
603
|
+
"removeButtonLabel": `Κατάργηση`,
|
|
604
|
+
"removeDescription": `Πατήστε Διαγραφή για να καταργήσετε την ετικέτα.`
|
|
605
|
+
};
|
|
606
|
+
var $9eb56bbbe8e31294$exports = {};
|
|
607
|
+
$9eb56bbbe8e31294$exports = {
|
|
608
|
+
"removeDescription": `Press Delete to remove tag.`,
|
|
609
|
+
"removeButtonLabel": `Remove`
|
|
610
|
+
};
|
|
611
|
+
var $361c604b0fc269a3$exports = {};
|
|
612
|
+
$361c604b0fc269a3$exports = {
|
|
613
|
+
"removeButtonLabel": `Quitar`,
|
|
614
|
+
"removeDescription": `Pulse Eliminar para quitar la etiqueta.`
|
|
615
|
+
};
|
|
616
|
+
var $2f00170f4ee3ca01$exports = {};
|
|
617
|
+
$2f00170f4ee3ca01$exports = {
|
|
618
|
+
"removeButtonLabel": `Eemalda`,
|
|
619
|
+
"removeDescription": `Sildi eemaldamiseks vajutage kustutusklahvi Delete.`
|
|
620
|
+
};
|
|
621
|
+
var $80ee16b64fab9fb5$exports = {};
|
|
622
|
+
$80ee16b64fab9fb5$exports = {
|
|
623
|
+
"removeButtonLabel": `Poista`,
|
|
624
|
+
"removeDescription": `Poista tunniste painamalla Poista-painiketta.`
|
|
625
|
+
};
|
|
626
|
+
var $be9d354476c08087$exports = {};
|
|
627
|
+
$be9d354476c08087$exports = {
|
|
628
|
+
"removeButtonLabel": `Supprimer`,
|
|
629
|
+
"removeDescription": `Appuyez sur Supprimer pour supprimer l’étiquette.`
|
|
630
|
+
};
|
|
631
|
+
var $ffeb903ba092eb35$exports = {};
|
|
632
|
+
$ffeb903ba092eb35$exports = {
|
|
633
|
+
"removeButtonLabel": `הסר`,
|
|
634
|
+
"removeDescription": `לחץ על מחק כדי להסיר תג.`
|
|
635
|
+
};
|
|
636
|
+
var $1df6722c6f19728b$exports = {};
|
|
637
|
+
$1df6722c6f19728b$exports = {
|
|
638
|
+
"removeButtonLabel": `Ukloni`,
|
|
639
|
+
"removeDescription": `Pritisnite Delete za uklanjanje oznake.`
|
|
640
|
+
};
|
|
641
|
+
var $093d57e325bc9071$exports = {};
|
|
642
|
+
$093d57e325bc9071$exports = {
|
|
643
|
+
"removeButtonLabel": `Eltávolítás`,
|
|
644
|
+
"removeDescription": `Nyomja meg a Delete billentyűt a címke eltávolításához.`
|
|
645
|
+
};
|
|
646
|
+
var $609dbdfbcad85bdb$exports = {};
|
|
647
|
+
$609dbdfbcad85bdb$exports = {
|
|
648
|
+
"removeButtonLabel": `Rimuovi`,
|
|
649
|
+
"removeDescription": `Premi Elimina per rimuovere il tag.`
|
|
650
|
+
};
|
|
651
|
+
var $c08e84f882644048$exports = {};
|
|
652
|
+
$c08e84f882644048$exports = {
|
|
653
|
+
"removeButtonLabel": `削除`,
|
|
654
|
+
"removeDescription": `タグを削除するには、Delete キーを押します。`
|
|
655
|
+
};
|
|
656
|
+
var $5cd130489822fa21$exports = {};
|
|
657
|
+
$5cd130489822fa21$exports = {
|
|
658
|
+
"removeButtonLabel": `제거`,
|
|
659
|
+
"removeDescription": `태그를 제거하려면 Delete 키를 누르십시오.`
|
|
660
|
+
};
|
|
661
|
+
var $ab5183739b6c5e7e$exports = {};
|
|
662
|
+
$ab5183739b6c5e7e$exports = {
|
|
663
|
+
"removeButtonLabel": `Pašalinti`,
|
|
664
|
+
"removeDescription": `Norėdami pašalinti žymą, paspauskite „Delete“ klavišą.`
|
|
665
|
+
};
|
|
666
|
+
var $dd84a0b574be3f23$exports = {};
|
|
667
|
+
$dd84a0b574be3f23$exports = {
|
|
668
|
+
"removeButtonLabel": `Noņemt`,
|
|
669
|
+
"removeDescription": `Nospiediet Delete [Dzēst], lai noņemtu tagu.`
|
|
670
|
+
};
|
|
671
|
+
var $85eee97d14eef7b5$exports = {};
|
|
672
|
+
$85eee97d14eef7b5$exports = {
|
|
673
|
+
"removeButtonLabel": `Fjern`,
|
|
674
|
+
"removeDescription": `Trykk på Slett for å fjerne taggen.`
|
|
675
|
+
};
|
|
676
|
+
var $18781839f93b0314$exports = {};
|
|
677
|
+
$18781839f93b0314$exports = {
|
|
678
|
+
"removeButtonLabel": `Verwijderen`,
|
|
679
|
+
"removeDescription": `Druk op Verwijderen om de tag te verwijderen.`
|
|
680
|
+
};
|
|
681
|
+
var $1c40ffbbfe9f3bda$exports = {};
|
|
682
|
+
$1c40ffbbfe9f3bda$exports = {
|
|
683
|
+
"removeButtonLabel": `Usuń`,
|
|
684
|
+
"removeDescription": `Naciśnij Usuń, aby usunąć znacznik.`
|
|
685
|
+
};
|
|
686
|
+
var $156880e329b1c717$exports = {};
|
|
687
|
+
$156880e329b1c717$exports = {
|
|
688
|
+
"removeButtonLabel": `Remover`,
|
|
689
|
+
"removeDescription": `Pressione Delete para remover a tag.`
|
|
690
|
+
};
|
|
691
|
+
var $b6d50b1d20768ce4$exports = {};
|
|
692
|
+
$b6d50b1d20768ce4$exports = {
|
|
693
|
+
"removeButtonLabel": `Eliminar`,
|
|
694
|
+
"removeDescription": `Prima Delete para eliminar a tag.`
|
|
695
|
+
};
|
|
696
|
+
var $d8c38c691b006187$exports = {};
|
|
697
|
+
$d8c38c691b006187$exports = {
|
|
698
|
+
"removeButtonLabel": `Îndepărtaţi`,
|
|
699
|
+
"removeDescription": `Apăsați pe Delete (Ștergere) pentru a elimina eticheta.`
|
|
700
|
+
};
|
|
701
|
+
var $ed9b4bf7ce1fb1d7$exports = {};
|
|
702
|
+
$ed9b4bf7ce1fb1d7$exports = {
|
|
703
|
+
"removeButtonLabel": `Удалить`,
|
|
704
|
+
"removeDescription": `Нажмите DELETE, чтобы удалить тег.`
|
|
705
|
+
};
|
|
706
|
+
var $51d8721afda4d678$exports = {};
|
|
707
|
+
$51d8721afda4d678$exports = {
|
|
708
|
+
"removeButtonLabel": `Odstrániť`,
|
|
709
|
+
"removeDescription": `Ak chcete odstrániť značku, stlačte kláves Delete.`
|
|
710
|
+
};
|
|
711
|
+
var $fd37a27baae493e8$exports = {};
|
|
712
|
+
$fd37a27baae493e8$exports = {
|
|
713
|
+
"removeButtonLabel": `Odstrani`,
|
|
714
|
+
"removeDescription": `Pritisnite Delete, da odstranite oznako.`
|
|
715
|
+
};
|
|
716
|
+
var $5505a1ca71ffd6f4$exports = {};
|
|
717
|
+
$5505a1ca71ffd6f4$exports = {
|
|
718
|
+
"removeButtonLabel": `Ukloni`,
|
|
719
|
+
"removeDescription": `Pritisnite Obriši da biste uklonili oznaku.`
|
|
720
|
+
};
|
|
721
|
+
var $33670e148c84ad02$exports = {};
|
|
722
|
+
$33670e148c84ad02$exports = {
|
|
723
|
+
"removeButtonLabel": `Ta bort`,
|
|
724
|
+
"removeDescription": `Tryck på Radera för att ta bort taggen.`
|
|
725
|
+
};
|
|
726
|
+
var $0bf46fdcdd7cb5f6$exports = {};
|
|
727
|
+
$0bf46fdcdd7cb5f6$exports = {
|
|
728
|
+
"removeButtonLabel": `Kaldır`,
|
|
729
|
+
"removeDescription": `Etiketi kaldırmak için Sil tuşuna basın.`
|
|
730
|
+
};
|
|
731
|
+
var $9d9765222bc08ca2$exports = {};
|
|
732
|
+
$9d9765222bc08ca2$exports = {
|
|
733
|
+
"removeButtonLabel": `Вилучити`,
|
|
734
|
+
"removeDescription": `Натисніть Delete, щоб вилучити тег.`
|
|
735
|
+
};
|
|
736
|
+
var $d737296cedcdee9f$exports = {};
|
|
737
|
+
$d737296cedcdee9f$exports = {
|
|
738
|
+
"removeButtonLabel": `删除`,
|
|
739
|
+
"removeDescription": `按下“删除”以删除标记。`
|
|
740
|
+
};
|
|
741
|
+
var $09cd168ab18773f4$exports = {};
|
|
742
|
+
$09cd168ab18773f4$exports = {
|
|
743
|
+
"removeButtonLabel": `移除`,
|
|
744
|
+
"removeDescription": `按 Delete 鍵以移除標記。`
|
|
745
|
+
};
|
|
746
|
+
var $3bb15cc24d006ec5$exports = {};
|
|
747
|
+
$3bb15cc24d006ec5$exports = {
|
|
748
|
+
"ar-AE": $84925f526f90eebd$exports,
|
|
749
|
+
"bg-BG": $c0650163dc1b6f9d$exports,
|
|
750
|
+
"cs-CZ": $b2b55661291de587$exports,
|
|
751
|
+
"da-DK": $deb83970956f6d5b$exports,
|
|
752
|
+
"de-DE": $aea1cb4c7ec97e1c$exports,
|
|
753
|
+
"el-GR": $3618d917e503a8d3$exports,
|
|
754
|
+
"en-US": $9eb56bbbe8e31294$exports,
|
|
755
|
+
"es-ES": $361c604b0fc269a3$exports,
|
|
756
|
+
"et-EE": $2f00170f4ee3ca01$exports,
|
|
757
|
+
"fi-FI": $80ee16b64fab9fb5$exports,
|
|
758
|
+
"fr-FR": $be9d354476c08087$exports,
|
|
759
|
+
"he-IL": $ffeb903ba092eb35$exports,
|
|
760
|
+
"hr-HR": $1df6722c6f19728b$exports,
|
|
761
|
+
"hu-HU": $093d57e325bc9071$exports,
|
|
762
|
+
"it-IT": $609dbdfbcad85bdb$exports,
|
|
763
|
+
"ja-JP": $c08e84f882644048$exports,
|
|
764
|
+
"ko-KR": $5cd130489822fa21$exports,
|
|
765
|
+
"lt-LT": $ab5183739b6c5e7e$exports,
|
|
766
|
+
"lv-LV": $dd84a0b574be3f23$exports,
|
|
767
|
+
"nb-NO": $85eee97d14eef7b5$exports,
|
|
768
|
+
"nl-NL": $18781839f93b0314$exports,
|
|
769
|
+
"pl-PL": $1c40ffbbfe9f3bda$exports,
|
|
770
|
+
"pt-BR": $156880e329b1c717$exports,
|
|
771
|
+
"pt-PT": $b6d50b1d20768ce4$exports,
|
|
772
|
+
"ro-RO": $d8c38c691b006187$exports,
|
|
773
|
+
"ru-RU": $ed9b4bf7ce1fb1d7$exports,
|
|
774
|
+
"sk-SK": $51d8721afda4d678$exports,
|
|
775
|
+
"sl-SI": $fd37a27baae493e8$exports,
|
|
776
|
+
"sr-SP": $5505a1ca71ffd6f4$exports,
|
|
777
|
+
"sv-SE": $33670e148c84ad02$exports,
|
|
778
|
+
"tr-TR": $0bf46fdcdd7cb5f6$exports,
|
|
779
|
+
"uk-UA": $9d9765222bc08ca2$exports,
|
|
780
|
+
"zh-CN": $d737296cedcdee9f$exports,
|
|
781
|
+
"zh-TW": $09cd168ab18773f4$exports
|
|
782
|
+
};
|
|
783
|
+
function $parcel$interopDefault(a) {
|
|
784
|
+
return a && a.__esModule ? a.default : a;
|
|
785
|
+
}
|
|
786
|
+
function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
|
|
787
|
+
let { item } = props;
|
|
788
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($3bb15cc24d006ec5$exports), "@react-aria/tag");
|
|
789
|
+
let buttonId = $bdb11010cef70236$export$f680877a34711e37();
|
|
790
|
+
let { onRemove } = $d7323bca8d074eeb$export$653eddfc964b0f8a.get(state) || {};
|
|
791
|
+
let _a = $4e8b0456ef72939f$export$9610e69494fadfd2({
|
|
792
|
+
node: item
|
|
793
|
+
}, state, ref), { rowProps, gridCellProps } = _a, states = __objRest(_a, ["rowProps", "gridCellProps"]);
|
|
794
|
+
let _b = states, { descriptionProps: _ } = _b, stateWithoutDescription = __objRest(_b, ["descriptionProps"]);
|
|
795
|
+
let isDisabled = state.disabledKeys.has(item.key) || item.props.isDisabled;
|
|
796
|
+
let onKeyDown = (e) => {
|
|
797
|
+
if (e.key === "Delete" || e.key === "Backspace") {
|
|
798
|
+
if (isDisabled) return;
|
|
799
|
+
e.preventDefault();
|
|
800
|
+
if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set(state.selectionManager.selectedKeys));
|
|
801
|
+
else onRemove === null || onRemove === void 0 ? void 0 : onRemove(/* @__PURE__ */ new Set([
|
|
802
|
+
item.key
|
|
803
|
+
]));
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
let modality = $507fabe10e71c6fb$export$98e20ec92f614cfe();
|
|
807
|
+
if (modality === "virtual" && typeof window !== "undefined" && "ontouchstart" in window) modality = "pointer";
|
|
808
|
+
let description = onRemove && (modality === "keyboard" || modality === "virtual") ? stringFormatter.format("removeDescription") : "";
|
|
809
|
+
let descProps = $ef06256079686ba0$export$f8aeda7b10753fa1(description);
|
|
810
|
+
let isItemFocused = item.key === state.selectionManager.focusedKey;
|
|
811
|
+
let isFocused = state.selectionManager.focusedKey != null;
|
|
812
|
+
let tabIndex = -1;
|
|
813
|
+
if (!isDisabled && (isItemFocused || !isFocused)) tabIndex = 0;
|
|
814
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item.props);
|
|
815
|
+
let linkProps = $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(item.props);
|
|
816
|
+
let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({
|
|
817
|
+
isDisabled
|
|
818
|
+
}, ref);
|
|
819
|
+
return __spreadProps(__spreadValues({
|
|
820
|
+
removeButtonProps: {
|
|
821
|
+
"aria-label": stringFormatter.format("removeButtonLabel"),
|
|
822
|
+
"aria-labelledby": `${buttonId} ${rowProps.id}`,
|
|
823
|
+
isDisabled,
|
|
824
|
+
id: buttonId,
|
|
825
|
+
onPress: () => onRemove ? onRemove(/* @__PURE__ */ new Set([
|
|
826
|
+
item.key
|
|
827
|
+
])) : null
|
|
828
|
+
},
|
|
829
|
+
rowProps: $3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, rowProps, domProps, linkProps, {
|
|
830
|
+
tabIndex,
|
|
831
|
+
onKeyDown: onRemove ? onKeyDown : void 0,
|
|
832
|
+
"aria-describedby": descProps["aria-describedby"]
|
|
833
|
+
}),
|
|
834
|
+
gridCellProps: $3ef42575df84b30b$export$9d1611c77c2fe928(gridCellProps, {
|
|
835
|
+
"aria-errormessage": props["aria-errormessage"],
|
|
836
|
+
"aria-label": props["aria-label"]
|
|
837
|
+
})
|
|
838
|
+
}, stateWithoutDescription), {
|
|
839
|
+
allowsRemoving: !!onRemove
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
class $23b9f4fcf0fe224b$export$d68d59712b04d9d1 {
|
|
843
|
+
get childNodes() {
|
|
844
|
+
throw new Error("childNodes is not supported");
|
|
845
|
+
}
|
|
846
|
+
clone() {
|
|
847
|
+
let node = new $23b9f4fcf0fe224b$export$d68d59712b04d9d1(this.type, this.key);
|
|
848
|
+
node.value = this.value;
|
|
849
|
+
node.level = this.level;
|
|
850
|
+
node.hasChildNodes = this.hasChildNodes;
|
|
851
|
+
node.rendered = this.rendered;
|
|
852
|
+
node.textValue = this.textValue;
|
|
853
|
+
node["aria-label"] = this["aria-label"];
|
|
854
|
+
node.index = this.index;
|
|
855
|
+
node.parentKey = this.parentKey;
|
|
856
|
+
node.prevKey = this.prevKey;
|
|
857
|
+
node.nextKey = this.nextKey;
|
|
858
|
+
node.firstChildKey = this.firstChildKey;
|
|
859
|
+
node.lastChildKey = this.lastChildKey;
|
|
860
|
+
node.props = this.props;
|
|
861
|
+
node.render = this.render;
|
|
862
|
+
node.colSpan = this.colSpan;
|
|
863
|
+
node.colIndex = this.colIndex;
|
|
864
|
+
return node;
|
|
865
|
+
}
|
|
866
|
+
constructor(type, key) {
|
|
867
|
+
this.value = null;
|
|
868
|
+
this.level = 0;
|
|
869
|
+
this.hasChildNodes = false;
|
|
870
|
+
this.rendered = null;
|
|
871
|
+
this.textValue = "";
|
|
872
|
+
this["aria-label"] = void 0;
|
|
873
|
+
this.index = 0;
|
|
874
|
+
this.parentKey = null;
|
|
875
|
+
this.prevKey = null;
|
|
876
|
+
this.nextKey = null;
|
|
877
|
+
this.firstChildKey = null;
|
|
878
|
+
this.lastChildKey = null;
|
|
879
|
+
this.props = {};
|
|
880
|
+
this.colSpan = null;
|
|
881
|
+
this.colIndex = null;
|
|
882
|
+
this.type = type;
|
|
883
|
+
this.key = key;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
|
|
887
|
+
get size() {
|
|
888
|
+
return this.keyMap.size;
|
|
889
|
+
}
|
|
890
|
+
getKeys() {
|
|
891
|
+
return this.keyMap.keys();
|
|
892
|
+
}
|
|
893
|
+
*[Symbol.iterator]() {
|
|
894
|
+
let node = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
|
|
895
|
+
while (node) {
|
|
896
|
+
yield node;
|
|
897
|
+
node = node.nextKey != null ? this.keyMap.get(node.nextKey) : void 0;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
getChildren(key) {
|
|
901
|
+
let keyMap = this.keyMap;
|
|
902
|
+
return {
|
|
903
|
+
*[Symbol.iterator]() {
|
|
904
|
+
let parent = keyMap.get(key);
|
|
905
|
+
let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
|
|
906
|
+
while (node) {
|
|
907
|
+
yield node;
|
|
908
|
+
node = node.nextKey != null ? keyMap.get(node.nextKey) : void 0;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
getKeyBefore(key) {
|
|
914
|
+
let node = this.keyMap.get(key);
|
|
915
|
+
if (!node) return null;
|
|
916
|
+
if (node.prevKey != null) {
|
|
917
|
+
node = this.keyMap.get(node.prevKey);
|
|
918
|
+
while (node && node.type !== "item" && node.lastChildKey != null) node = this.keyMap.get(node.lastChildKey);
|
|
919
|
+
var _node_key;
|
|
920
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
921
|
+
}
|
|
922
|
+
return node.parentKey;
|
|
923
|
+
}
|
|
924
|
+
getKeyAfter(key) {
|
|
925
|
+
let node = this.keyMap.get(key);
|
|
926
|
+
if (!node) return null;
|
|
927
|
+
if (node.type !== "item" && node.firstChildKey != null) return node.firstChildKey;
|
|
928
|
+
while (node) {
|
|
929
|
+
if (node.nextKey != null) return node.nextKey;
|
|
930
|
+
if (node.parentKey != null) node = this.keyMap.get(node.parentKey);
|
|
931
|
+
else return null;
|
|
932
|
+
}
|
|
933
|
+
return null;
|
|
934
|
+
}
|
|
935
|
+
getFirstKey() {
|
|
936
|
+
return this.firstKey;
|
|
937
|
+
}
|
|
938
|
+
getLastKey() {
|
|
939
|
+
let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
|
|
940
|
+
while ((node === null || node === void 0 ? void 0 : node.lastChildKey) != null) node = this.keyMap.get(node.lastChildKey);
|
|
941
|
+
var _node_key;
|
|
942
|
+
return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
|
|
943
|
+
}
|
|
944
|
+
getItem(key) {
|
|
945
|
+
var _this_keyMap_get;
|
|
946
|
+
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
|
|
947
|
+
}
|
|
948
|
+
at() {
|
|
949
|
+
throw new Error("Not implemented");
|
|
950
|
+
}
|
|
951
|
+
clone() {
|
|
952
|
+
let Constructor = this.constructor;
|
|
953
|
+
let collection = new Constructor();
|
|
954
|
+
collection.keyMap = new Map(this.keyMap);
|
|
955
|
+
collection.firstKey = this.firstKey;
|
|
956
|
+
collection.lastKey = this.lastKey;
|
|
957
|
+
return collection;
|
|
958
|
+
}
|
|
959
|
+
addNode(node) {
|
|
960
|
+
if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
|
|
961
|
+
this.keyMap.set(node.key, node);
|
|
962
|
+
}
|
|
963
|
+
removeNode(key) {
|
|
964
|
+
if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
|
|
965
|
+
this.keyMap.delete(key);
|
|
966
|
+
}
|
|
967
|
+
commit(firstKey, lastKey, isSSR = false) {
|
|
968
|
+
if (this.frozen) throw new Error("Cannot commit a frozen collection");
|
|
969
|
+
this.firstKey = firstKey;
|
|
970
|
+
this.lastKey = lastKey;
|
|
971
|
+
this.frozen = !isSSR;
|
|
972
|
+
}
|
|
973
|
+
// TODO: this is pretty specific to menu, will need to check if it is generic enough
|
|
974
|
+
// Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
|
|
975
|
+
// TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
|
|
976
|
+
// to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
|
|
977
|
+
UNSTABLE_filter(filterFn) {
|
|
978
|
+
let newCollection = new $23b9f4fcf0fe224b$export$408d25a4e12db025();
|
|
979
|
+
let lastNode = null;
|
|
980
|
+
for (let node of this) {
|
|
981
|
+
if (node.type === "section" && node.hasChildNodes) {
|
|
982
|
+
let clonedSection = node.clone();
|
|
983
|
+
let lastChildInSection = null;
|
|
984
|
+
for (let child of this.getChildren(node.key)) if ($23b9f4fcf0fe224b$var$shouldKeepNode(child, filterFn, this, newCollection)) {
|
|
985
|
+
let clonedChild = child.clone();
|
|
986
|
+
if (lastChildInSection == null) clonedSection.firstChildKey = clonedChild.key;
|
|
987
|
+
if (newCollection.firstKey == null) newCollection.firstKey = clonedSection.key;
|
|
988
|
+
if (lastChildInSection && lastChildInSection.parentKey === clonedChild.parentKey) {
|
|
989
|
+
lastChildInSection.nextKey = clonedChild.key;
|
|
990
|
+
clonedChild.prevKey = lastChildInSection.key;
|
|
991
|
+
} else clonedChild.prevKey = null;
|
|
992
|
+
clonedChild.nextKey = null;
|
|
993
|
+
newCollection.addNode(clonedChild);
|
|
994
|
+
lastChildInSection = clonedChild;
|
|
995
|
+
}
|
|
996
|
+
if (lastChildInSection) {
|
|
997
|
+
if (lastChildInSection.type !== "header") {
|
|
998
|
+
clonedSection.lastChildKey = lastChildInSection.key;
|
|
999
|
+
if (lastNode == null) clonedSection.prevKey = null;
|
|
1000
|
+
else if (lastNode.type === "section" || lastNode.type === "separator") {
|
|
1001
|
+
lastNode.nextKey = clonedSection.key;
|
|
1002
|
+
clonedSection.prevKey = lastNode.key;
|
|
1003
|
+
}
|
|
1004
|
+
clonedSection.nextKey = null;
|
|
1005
|
+
lastNode = clonedSection;
|
|
1006
|
+
newCollection.addNode(clonedSection);
|
|
1007
|
+
} else {
|
|
1008
|
+
if (newCollection.firstKey === clonedSection.key) newCollection.firstKey = null;
|
|
1009
|
+
newCollection.removeNode(lastChildInSection.key);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
} else if (node.type === "separator") {
|
|
1013
|
+
let clonedSeparator = node.clone();
|
|
1014
|
+
clonedSeparator.nextKey = null;
|
|
1015
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) === "section") {
|
|
1016
|
+
lastNode.nextKey = clonedSeparator.key;
|
|
1017
|
+
clonedSeparator.prevKey = lastNode.key;
|
|
1018
|
+
lastNode = clonedSeparator;
|
|
1019
|
+
newCollection.addNode(clonedSeparator);
|
|
1020
|
+
}
|
|
1021
|
+
} else {
|
|
1022
|
+
let clonedNode = node.clone();
|
|
1023
|
+
if ($23b9f4fcf0fe224b$var$shouldKeepNode(clonedNode, filterFn, this, newCollection)) {
|
|
1024
|
+
if (newCollection.firstKey == null) newCollection.firstKey = clonedNode.key;
|
|
1025
|
+
if (lastNode != null && lastNode.type !== "section" && lastNode.type !== "separator" && lastNode.parentKey === clonedNode.parentKey) {
|
|
1026
|
+
lastNode.nextKey = clonedNode.key;
|
|
1027
|
+
clonedNode.prevKey = lastNode.key;
|
|
1028
|
+
} else clonedNode.prevKey = null;
|
|
1029
|
+
clonedNode.nextKey = null;
|
|
1030
|
+
newCollection.addNode(clonedNode);
|
|
1031
|
+
lastNode = clonedNode;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) === "separator" && lastNode.nextKey === null) {
|
|
1036
|
+
let lastSection;
|
|
1037
|
+
if (lastNode.prevKey != null) {
|
|
1038
|
+
lastSection = newCollection.getItem(lastNode.prevKey);
|
|
1039
|
+
lastSection.nextKey = null;
|
|
1040
|
+
}
|
|
1041
|
+
newCollection.removeNode(lastNode.key);
|
|
1042
|
+
lastNode = lastSection;
|
|
1043
|
+
}
|
|
1044
|
+
newCollection.lastKey = (lastNode === null || lastNode === void 0 ? void 0 : lastNode.key) || null;
|
|
1045
|
+
return newCollection;
|
|
1046
|
+
}
|
|
1047
|
+
constructor() {
|
|
1048
|
+
this.keyMap = /* @__PURE__ */ new Map();
|
|
1049
|
+
this.firstKey = null;
|
|
1050
|
+
this.lastKey = null;
|
|
1051
|
+
this.frozen = false;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
function $23b9f4fcf0fe224b$var$shouldKeepNode(node, filterFn, oldCollection, newCollection) {
|
|
1055
|
+
if (node.type === "subdialogtrigger" || node.type === "submenutrigger") {
|
|
1056
|
+
let triggerChild = [
|
|
1057
|
+
...oldCollection.getChildren(node.key)
|
|
1058
|
+
][0];
|
|
1059
|
+
if (triggerChild && filterFn(triggerChild.textValue)) {
|
|
1060
|
+
let clonedChild = triggerChild.clone();
|
|
1061
|
+
newCollection.addNode(clonedChild);
|
|
1062
|
+
return true;
|
|
1063
|
+
} else return false;
|
|
1064
|
+
} else if (node.type === "header") return true;
|
|
1065
|
+
else return filterFn(node.textValue);
|
|
1066
|
+
}
|
|
1067
|
+
class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1068
|
+
*[Symbol.iterator]() {
|
|
1069
|
+
let node = this.firstChild;
|
|
1070
|
+
while (node) {
|
|
1071
|
+
yield node;
|
|
1072
|
+
node = node.nextSibling;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
get firstChild() {
|
|
1076
|
+
return this._firstChild;
|
|
1077
|
+
}
|
|
1078
|
+
set firstChild(firstChild) {
|
|
1079
|
+
this._firstChild = firstChild;
|
|
1080
|
+
this.ownerDocument.markDirty(this);
|
|
1081
|
+
}
|
|
1082
|
+
get lastChild() {
|
|
1083
|
+
return this._lastChild;
|
|
1084
|
+
}
|
|
1085
|
+
set lastChild(lastChild) {
|
|
1086
|
+
this._lastChild = lastChild;
|
|
1087
|
+
this.ownerDocument.markDirty(this);
|
|
1088
|
+
}
|
|
1089
|
+
get previousSibling() {
|
|
1090
|
+
return this._previousSibling;
|
|
1091
|
+
}
|
|
1092
|
+
set previousSibling(previousSibling) {
|
|
1093
|
+
this._previousSibling = previousSibling;
|
|
1094
|
+
this.ownerDocument.markDirty(this);
|
|
1095
|
+
}
|
|
1096
|
+
get nextSibling() {
|
|
1097
|
+
return this._nextSibling;
|
|
1098
|
+
}
|
|
1099
|
+
set nextSibling(nextSibling) {
|
|
1100
|
+
this._nextSibling = nextSibling;
|
|
1101
|
+
this.ownerDocument.markDirty(this);
|
|
1102
|
+
}
|
|
1103
|
+
get parentNode() {
|
|
1104
|
+
return this._parentNode;
|
|
1105
|
+
}
|
|
1106
|
+
set parentNode(parentNode) {
|
|
1107
|
+
this._parentNode = parentNode;
|
|
1108
|
+
this.ownerDocument.markDirty(this);
|
|
1109
|
+
}
|
|
1110
|
+
get isConnected() {
|
|
1111
|
+
var _this_parentNode;
|
|
1112
|
+
return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
|
|
1113
|
+
}
|
|
1114
|
+
appendChild(child) {
|
|
1115
|
+
this.ownerDocument.startTransaction();
|
|
1116
|
+
if (child.parentNode) child.parentNode.removeChild(child);
|
|
1117
|
+
if (this.firstChild == null) this.firstChild = child;
|
|
1118
|
+
if (this.lastChild) {
|
|
1119
|
+
this.lastChild.nextSibling = child;
|
|
1120
|
+
child.index = this.lastChild.index + 1;
|
|
1121
|
+
child.previousSibling = this.lastChild;
|
|
1122
|
+
} else {
|
|
1123
|
+
child.previousSibling = null;
|
|
1124
|
+
child.index = 0;
|
|
1125
|
+
}
|
|
1126
|
+
child.parentNode = this;
|
|
1127
|
+
child.nextSibling = null;
|
|
1128
|
+
this.lastChild = child;
|
|
1129
|
+
this.ownerDocument.markDirty(this);
|
|
1130
|
+
if (child.hasSetProps)
|
|
1131
|
+
this.ownerDocument.addNode(child);
|
|
1132
|
+
this.ownerDocument.endTransaction();
|
|
1133
|
+
this.ownerDocument.queueUpdate();
|
|
1134
|
+
}
|
|
1135
|
+
insertBefore(newNode, referenceNode) {
|
|
1136
|
+
if (referenceNode == null) return this.appendChild(newNode);
|
|
1137
|
+
this.ownerDocument.startTransaction();
|
|
1138
|
+
if (newNode.parentNode) newNode.parentNode.removeChild(newNode);
|
|
1139
|
+
newNode.nextSibling = referenceNode;
|
|
1140
|
+
newNode.previousSibling = referenceNode.previousSibling;
|
|
1141
|
+
newNode.index = referenceNode.index;
|
|
1142
|
+
if (this.firstChild === referenceNode) this.firstChild = newNode;
|
|
1143
|
+
else if (referenceNode.previousSibling) referenceNode.previousSibling.nextSibling = newNode;
|
|
1144
|
+
referenceNode.previousSibling = newNode;
|
|
1145
|
+
newNode.parentNode = referenceNode.parentNode;
|
|
1146
|
+
let node = referenceNode;
|
|
1147
|
+
while (node) {
|
|
1148
|
+
node.index++;
|
|
1149
|
+
node = node.nextSibling;
|
|
1150
|
+
}
|
|
1151
|
+
if (newNode.hasSetProps) this.ownerDocument.addNode(newNode);
|
|
1152
|
+
this.ownerDocument.endTransaction();
|
|
1153
|
+
this.ownerDocument.queueUpdate();
|
|
1154
|
+
}
|
|
1155
|
+
removeChild(child) {
|
|
1156
|
+
if (child.parentNode !== this || !this.ownerDocument.isMounted) return;
|
|
1157
|
+
this.ownerDocument.startTransaction();
|
|
1158
|
+
let node = child.nextSibling;
|
|
1159
|
+
while (node) {
|
|
1160
|
+
node.index--;
|
|
1161
|
+
node = node.nextSibling;
|
|
1162
|
+
}
|
|
1163
|
+
if (child.nextSibling) child.nextSibling.previousSibling = child.previousSibling;
|
|
1164
|
+
if (child.previousSibling) child.previousSibling.nextSibling = child.nextSibling;
|
|
1165
|
+
if (this.firstChild === child) this.firstChild = child.nextSibling;
|
|
1166
|
+
if (this.lastChild === child) this.lastChild = child.previousSibling;
|
|
1167
|
+
child.parentNode = null;
|
|
1168
|
+
child.nextSibling = null;
|
|
1169
|
+
child.previousSibling = null;
|
|
1170
|
+
child.index = 0;
|
|
1171
|
+
this.ownerDocument.removeNode(child);
|
|
1172
|
+
this.ownerDocument.endTransaction();
|
|
1173
|
+
this.ownerDocument.queueUpdate();
|
|
1174
|
+
}
|
|
1175
|
+
addEventListener() {
|
|
1176
|
+
}
|
|
1177
|
+
removeEventListener() {
|
|
1178
|
+
}
|
|
1179
|
+
constructor(ownerDocument) {
|
|
1180
|
+
this._firstChild = null;
|
|
1181
|
+
this._lastChild = null;
|
|
1182
|
+
this._previousSibling = null;
|
|
1183
|
+
this._nextSibling = null;
|
|
1184
|
+
this._parentNode = null;
|
|
1185
|
+
this.ownerDocument = ownerDocument;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1189
|
+
get index() {
|
|
1190
|
+
return this._index;
|
|
1191
|
+
}
|
|
1192
|
+
set index(index) {
|
|
1193
|
+
this._index = index;
|
|
1194
|
+
this.ownerDocument.markDirty(this);
|
|
1195
|
+
}
|
|
1196
|
+
get level() {
|
|
1197
|
+
if (this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd) return this.parentNode.level + (this.node.type === "item" ? 1 : 0);
|
|
1198
|
+
return 0;
|
|
1199
|
+
}
|
|
1200
|
+
updateNode() {
|
|
1201
|
+
var _this_previousSibling, _this_nextSibling, _this_firstChild, _this_lastChild;
|
|
1202
|
+
let node = this.ownerDocument.getMutableNode(this);
|
|
1203
|
+
node.index = this.index;
|
|
1204
|
+
node.level = this.level;
|
|
1205
|
+
node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.node.key : null;
|
|
1206
|
+
var _this_previousSibling_node_key;
|
|
1207
|
+
node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === void 0 ? void 0 : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== void 0 ? _this_previousSibling_node_key : null;
|
|
1208
|
+
var _this_nextSibling_node_key;
|
|
1209
|
+
node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === void 0 ? void 0 : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== void 0 ? _this_nextSibling_node_key : null;
|
|
1210
|
+
node.hasChildNodes = !!this.firstChild;
|
|
1211
|
+
var _this_firstChild_node_key;
|
|
1212
|
+
node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null;
|
|
1213
|
+
var _this_lastChild_node_key;
|
|
1214
|
+
node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null;
|
|
1215
|
+
if ((node.colSpan != null || node.colIndex != null) && this.nextSibling) {
|
|
1216
|
+
var _node_colIndex, _node_colSpan;
|
|
1217
|
+
let nextColIndex = ((_node_colIndex = node.colIndex) !== null && _node_colIndex !== void 0 ? _node_colIndex : node.index) + ((_node_colSpan = node.colSpan) !== null && _node_colSpan !== void 0 ? _node_colSpan : 1);
|
|
1218
|
+
if (nextColIndex !== this.nextSibling.node.colIndex) {
|
|
1219
|
+
let siblingNode = this.ownerDocument.getMutableNode(this.nextSibling);
|
|
1220
|
+
siblingNode.colIndex = nextColIndex;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
setProps(obj, ref, rendered, render) {
|
|
1225
|
+
let node = this.ownerDocument.getMutableNode(this);
|
|
1226
|
+
let _a = obj, { value, textValue, id } = _a, props = __objRest(_a, ["value", "textValue", "id"]);
|
|
1227
|
+
props.ref = ref;
|
|
1228
|
+
node.props = props;
|
|
1229
|
+
node.rendered = rendered;
|
|
1230
|
+
node.render = render;
|
|
1231
|
+
node.value = value;
|
|
1232
|
+
node.textValue = textValue || (typeof props.children === "string" ? props.children : "") || obj["aria-label"] || "";
|
|
1233
|
+
if (id != null && id !== node.key) {
|
|
1234
|
+
if (this.hasSetProps) throw new Error("Cannot change the id of an item");
|
|
1235
|
+
node.key = id;
|
|
1236
|
+
}
|
|
1237
|
+
if (props.colSpan != null) node.colSpan = props.colSpan;
|
|
1238
|
+
if (!this.hasSetProps) {
|
|
1239
|
+
this.ownerDocument.addNode(this);
|
|
1240
|
+
this.ownerDocument.endTransaction();
|
|
1241
|
+
this.hasSetProps = true;
|
|
1242
|
+
}
|
|
1243
|
+
this.ownerDocument.queueUpdate();
|
|
1244
|
+
}
|
|
1245
|
+
get style() {
|
|
1246
|
+
return {};
|
|
1247
|
+
}
|
|
1248
|
+
hasAttribute() {
|
|
1249
|
+
}
|
|
1250
|
+
setAttribute() {
|
|
1251
|
+
}
|
|
1252
|
+
setAttributeNS() {
|
|
1253
|
+
}
|
|
1254
|
+
removeAttribute() {
|
|
1255
|
+
}
|
|
1256
|
+
constructor(type, ownerDocument) {
|
|
1257
|
+
super(ownerDocument), this.nodeType = 8, this._index = 0, this.hasSetProps = false;
|
|
1258
|
+
this.node = new $23b9f4fcf0fe224b$export$d68d59712b04d9d1(type, `react-aria-${++ownerDocument.nodeId}`);
|
|
1259
|
+
this.ownerDocument.startTransaction();
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1263
|
+
get isConnected() {
|
|
1264
|
+
return this.isMounted;
|
|
1265
|
+
}
|
|
1266
|
+
createElement(type) {
|
|
1267
|
+
return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Lazily gets a mutable instance of a Node. If the node has already
|
|
1271
|
+
* been cloned during this update cycle, it just returns the existing one.
|
|
1272
|
+
*/
|
|
1273
|
+
getMutableNode(element) {
|
|
1274
|
+
let node = element.node;
|
|
1275
|
+
if (!this.mutatedNodes.has(element)) {
|
|
1276
|
+
node = element.node.clone();
|
|
1277
|
+
this.mutatedNodes.add(element);
|
|
1278
|
+
element.node = node;
|
|
1279
|
+
}
|
|
1280
|
+
this.markDirty(element);
|
|
1281
|
+
return node;
|
|
1282
|
+
}
|
|
1283
|
+
getMutableCollection() {
|
|
1284
|
+
if (!this.isSSR && !this.collectionMutated) {
|
|
1285
|
+
this.collection = this.collection.clone();
|
|
1286
|
+
this.collectionMutated = true;
|
|
1287
|
+
}
|
|
1288
|
+
return this.collection;
|
|
1289
|
+
}
|
|
1290
|
+
markDirty(node) {
|
|
1291
|
+
this.dirtyNodes.add(node);
|
|
1292
|
+
}
|
|
1293
|
+
startTransaction() {
|
|
1294
|
+
this.transactionCount++;
|
|
1295
|
+
}
|
|
1296
|
+
endTransaction() {
|
|
1297
|
+
this.transactionCount--;
|
|
1298
|
+
}
|
|
1299
|
+
addNode(element) {
|
|
1300
|
+
let collection = this.getMutableCollection();
|
|
1301
|
+
if (!collection.getItem(element.node.key)) {
|
|
1302
|
+
collection.addNode(element.node);
|
|
1303
|
+
for (let child of element) this.addNode(child);
|
|
1304
|
+
}
|
|
1305
|
+
this.markDirty(element);
|
|
1306
|
+
}
|
|
1307
|
+
removeNode(node) {
|
|
1308
|
+
for (let child of node) this.removeNode(child);
|
|
1309
|
+
let collection = this.getMutableCollection();
|
|
1310
|
+
collection.removeNode(node.node.key);
|
|
1311
|
+
this.markDirty(node);
|
|
1312
|
+
}
|
|
1313
|
+
/** Finalizes the collection update, updating all nodes and freezing the collection. */
|
|
1314
|
+
getCollection() {
|
|
1315
|
+
if (this.transactionCount > 0) return this.collection;
|
|
1316
|
+
this.updateCollection();
|
|
1317
|
+
return this.collection;
|
|
1318
|
+
}
|
|
1319
|
+
updateCollection() {
|
|
1320
|
+
for (let element of this.dirtyNodes) if (element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && element.isConnected) element.updateNode();
|
|
1321
|
+
this.dirtyNodes.clear();
|
|
1322
|
+
if (this.mutatedNodes.size || this.collectionMutated) {
|
|
1323
|
+
var _this_firstChild, _this_lastChild;
|
|
1324
|
+
let collection = this.getMutableCollection();
|
|
1325
|
+
for (let element of this.mutatedNodes) if (element.isConnected) collection.addNode(element.node);
|
|
1326
|
+
this.mutatedNodes.clear();
|
|
1327
|
+
var _this_firstChild_node_key, _this_lastChild_node_key;
|
|
1328
|
+
collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
|
|
1329
|
+
}
|
|
1330
|
+
this.collectionMutated = false;
|
|
1331
|
+
}
|
|
1332
|
+
queueUpdate() {
|
|
1333
|
+
if (this.dirtyNodes.size === 0 || this.transactionCount > 0) return;
|
|
1334
|
+
for (let fn of this.subscriptions) fn();
|
|
1335
|
+
}
|
|
1336
|
+
subscribe(fn) {
|
|
1337
|
+
this.subscriptions.add(fn);
|
|
1338
|
+
return () => this.subscriptions.delete(fn);
|
|
1339
|
+
}
|
|
1340
|
+
resetAfterSSR() {
|
|
1341
|
+
if (this.isSSR) {
|
|
1342
|
+
this.isSSR = false;
|
|
1343
|
+
this.firstChild = null;
|
|
1344
|
+
this.lastChild = null;
|
|
1345
|
+
this.nodeId = 0;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
constructor(collection) {
|
|
1349
|
+
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = true, this.mutatedNodes = /* @__PURE__ */ new Set(), this.subscriptions = /* @__PURE__ */ new Set(), this.transactionCount = 0;
|
|
1350
|
+
this.collection = collection;
|
|
1351
|
+
this.collectionMutated = true;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
function $e948873055cbafe4$export$727c8fc270210f13(props) {
|
|
1355
|
+
let { children, items, idScope, addIdAndValue, dependencies = [] } = props;
|
|
1356
|
+
let cache = useMemo(() => /* @__PURE__ */ new WeakMap(), dependencies);
|
|
1357
|
+
return useMemo(() => {
|
|
1358
|
+
if (items && typeof children === "function") {
|
|
1359
|
+
let res = [];
|
|
1360
|
+
for (let item of items) {
|
|
1361
|
+
let rendered = cache.get(item);
|
|
1362
|
+
if (!rendered) {
|
|
1363
|
+
rendered = children(item);
|
|
1364
|
+
var _rendered_props_id, _ref;
|
|
1365
|
+
let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
|
|
1366
|
+
if (key == null) throw new Error("Could not determine key for item");
|
|
1367
|
+
if (idScope) key = idScope + ":" + key;
|
|
1368
|
+
rendered = cloneElement(rendered, addIdAndValue ? {
|
|
1369
|
+
key,
|
|
1370
|
+
id: key,
|
|
1371
|
+
value: item
|
|
1372
|
+
} : {
|
|
1373
|
+
key
|
|
1374
|
+
});
|
|
1375
|
+
cache.set(item, rendered);
|
|
1376
|
+
}
|
|
1377
|
+
res.push(rendered);
|
|
1378
|
+
}
|
|
1379
|
+
return res;
|
|
1380
|
+
} else if (typeof children !== "function") return children;
|
|
1381
|
+
}, [
|
|
1382
|
+
children,
|
|
1383
|
+
items,
|
|
1384
|
+
cache,
|
|
1385
|
+
idScope,
|
|
1386
|
+
addIdAndValue
|
|
1387
|
+
]);
|
|
1388
|
+
}
|
|
1389
|
+
const $e1995378a142960e$var$ShallowRenderContext = /* @__PURE__ */ createContext(false);
|
|
1390
|
+
const $e1995378a142960e$var$CollectionDocumentContext = /* @__PURE__ */ createContext(null);
|
|
1391
|
+
function $e1995378a142960e$export$bf788dd355e3a401(props) {
|
|
1392
|
+
let doc = useContext($e1995378a142960e$var$CollectionDocumentContext);
|
|
1393
|
+
if (doc)
|
|
1394
|
+
return props.content;
|
|
1395
|
+
let { collection, document: document2 } = $e1995378a142960e$var$useCollectionDocument(props.createCollection);
|
|
1396
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
|
|
1397
|
+
value: document2
|
|
1398
|
+
}, props.content)), /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$CollectionInner, {
|
|
1399
|
+
render: props.children,
|
|
1400
|
+
collection
|
|
1401
|
+
}));
|
|
1402
|
+
}
|
|
1403
|
+
function $e1995378a142960e$var$CollectionInner({ collection, render }) {
|
|
1404
|
+
return render(collection);
|
|
1405
|
+
}
|
|
1406
|
+
function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) {
|
|
1407
|
+
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
1408
|
+
let isSSRRef = useRef(isSSR);
|
|
1409
|
+
isSSRRef.current = isSSR;
|
|
1410
|
+
let getSnapshotWrapper = useCallback(() => {
|
|
1411
|
+
return isSSRRef.current ? getServerSnapshot() : getSnapshot();
|
|
1412
|
+
}, [
|
|
1413
|
+
getSnapshot,
|
|
1414
|
+
getServerSnapshot
|
|
1415
|
+
]);
|
|
1416
|
+
return shimExports.useSyncExternalStore(subscribe, getSnapshotWrapper);
|
|
1417
|
+
}
|
|
1418
|
+
const $e1995378a142960e$var$useSyncExternalStore = typeof React__default["useSyncExternalStore"] === "function" ? React__default["useSyncExternalStore"] : $e1995378a142960e$var$useSyncExternalStoreFallback;
|
|
1419
|
+
function $e1995378a142960e$var$useCollectionDocument(createCollection) {
|
|
1420
|
+
let [document2] = useState(() => new $681cc3c98f569e39$export$b34a105447964f9f((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new $23b9f4fcf0fe224b$export$408d25a4e12db025()));
|
|
1421
|
+
let subscribe = useCallback((fn) => document2.subscribe(fn), [
|
|
1422
|
+
document2
|
|
1423
|
+
]);
|
|
1424
|
+
let getSnapshot = useCallback(() => {
|
|
1425
|
+
let collection2 = document2.getCollection();
|
|
1426
|
+
if (document2.isSSR)
|
|
1427
|
+
document2.resetAfterSSR();
|
|
1428
|
+
return collection2;
|
|
1429
|
+
}, [
|
|
1430
|
+
document2
|
|
1431
|
+
]);
|
|
1432
|
+
let getServerSnapshot = useCallback(() => {
|
|
1433
|
+
document2.isSSR = true;
|
|
1434
|
+
return document2.getCollection();
|
|
1435
|
+
}, [
|
|
1436
|
+
document2
|
|
1437
|
+
]);
|
|
1438
|
+
let collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1439
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1440
|
+
document2.isMounted = true;
|
|
1441
|
+
return () => {
|
|
1442
|
+
document2.isMounted = false;
|
|
1443
|
+
};
|
|
1444
|
+
}, [
|
|
1445
|
+
document2
|
|
1446
|
+
]);
|
|
1447
|
+
return {
|
|
1448
|
+
collection,
|
|
1449
|
+
document: document2
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
const $e1995378a142960e$var$SSRContext = /* @__PURE__ */ createContext(null);
|
|
1453
|
+
function $e1995378a142960e$var$useSSRCollectionNode(Type, props, ref, rendered, children, render) {
|
|
1454
|
+
let itemRef = useCallback((element) => {
|
|
1455
|
+
element === null || element === void 0 ? void 0 : element.setProps(props, ref, rendered, render);
|
|
1456
|
+
}, [
|
|
1457
|
+
props,
|
|
1458
|
+
ref,
|
|
1459
|
+
rendered,
|
|
1460
|
+
render
|
|
1461
|
+
]);
|
|
1462
|
+
let parentNode = useContext($e1995378a142960e$var$SSRContext);
|
|
1463
|
+
if (parentNode) {
|
|
1464
|
+
let element = parentNode.ownerDocument.nodesByProps.get(props);
|
|
1465
|
+
if (!element) {
|
|
1466
|
+
element = parentNode.ownerDocument.createElement(Type);
|
|
1467
|
+
element.setProps(props, ref, rendered, render);
|
|
1468
|
+
parentNode.appendChild(element);
|
|
1469
|
+
parentNode.ownerDocument.updateCollection();
|
|
1470
|
+
parentNode.ownerDocument.nodesByProps.set(props, element);
|
|
1471
|
+
}
|
|
1472
|
+
return children ? /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$SSRContext.Provider, {
|
|
1473
|
+
value: element
|
|
1474
|
+
}, children) : null;
|
|
1475
|
+
}
|
|
1476
|
+
return /* @__PURE__ */ React__default.createElement(Type, {
|
|
1477
|
+
ref: itemRef
|
|
1478
|
+
}, children);
|
|
1479
|
+
}
|
|
1480
|
+
function $e1995378a142960e$export$18af5c7a9e9b3664(type, render) {
|
|
1481
|
+
let Component = ({ node }) => render(node.props, node.props.ref, node);
|
|
1482
|
+
let Result = forwardRef((props, ref) => {
|
|
1483
|
+
let focusableProps = useContext($f645667febf57a63$export$f9762fab77588ecb);
|
|
1484
|
+
let isShallow = useContext($e1995378a142960e$var$ShallowRenderContext);
|
|
1485
|
+
if (!isShallow) {
|
|
1486
|
+
if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection.");
|
|
1487
|
+
return render(props, ref);
|
|
1488
|
+
}
|
|
1489
|
+
return $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, "children" in props ? props.children : null, null, (node) => (
|
|
1490
|
+
// Forward FocusableContext to real DOM tree so tooltips work.
|
|
1491
|
+
/* @__PURE__ */ React__default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, {
|
|
1492
|
+
value: focusableProps
|
|
1493
|
+
}, /* @__PURE__ */ React__default.createElement(Component, {
|
|
1494
|
+
node
|
|
1495
|
+
}))
|
|
1496
|
+
));
|
|
1497
|
+
});
|
|
1498
|
+
Result.displayName = render.name;
|
|
1499
|
+
return Result;
|
|
1500
|
+
}
|
|
1501
|
+
function $e1995378a142960e$var$useCollectionChildren(options) {
|
|
1502
|
+
return $e948873055cbafe4$export$727c8fc270210f13(__spreadProps(__spreadValues({}, options), {
|
|
1503
|
+
addIdAndValue: true
|
|
1504
|
+
}));
|
|
1505
|
+
}
|
|
1506
|
+
const $e1995378a142960e$var$CollectionContext = /* @__PURE__ */ createContext(null);
|
|
1507
|
+
function $e1995378a142960e$export$fb8073518f34e6ec(props) {
|
|
1508
|
+
let ctx = useContext($e1995378a142960e$var$CollectionContext);
|
|
1509
|
+
let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
|
|
1510
|
+
let idScope = props.idScope || (ctx === null || ctx === void 0 ? void 0 : ctx.idScope);
|
|
1511
|
+
let children = $e1995378a142960e$var$useCollectionChildren(__spreadProps(__spreadValues({}, props), {
|
|
1512
|
+
idScope,
|
|
1513
|
+
dependencies
|
|
1514
|
+
}));
|
|
1515
|
+
let doc = useContext($e1995378a142960e$var$CollectionDocumentContext);
|
|
1516
|
+
if (doc) children = /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$CollectionRoot, null, children);
|
|
1517
|
+
ctx = useMemo(() => ({
|
|
1518
|
+
dependencies,
|
|
1519
|
+
idScope
|
|
1520
|
+
}), [
|
|
1521
|
+
idScope,
|
|
1522
|
+
...dependencies
|
|
1523
|
+
]);
|
|
1524
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$CollectionContext.Provider, {
|
|
1525
|
+
value: ctx
|
|
1526
|
+
}, children);
|
|
1527
|
+
}
|
|
1528
|
+
function $e1995378a142960e$var$CollectionRoot({ children }) {
|
|
1529
|
+
let doc = useContext($e1995378a142960e$var$CollectionDocumentContext);
|
|
1530
|
+
let wrappedChildren = useMemo(() => /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, {
|
|
1531
|
+
value: null
|
|
1532
|
+
}, /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, {
|
|
1533
|
+
value: true
|
|
1534
|
+
}, children)), [
|
|
1535
|
+
children
|
|
1536
|
+
]);
|
|
1537
|
+
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? /* @__PURE__ */ React__default.createElement($e1995378a142960e$var$SSRContext.Provider, {
|
|
1538
|
+
value: doc
|
|
1539
|
+
}, wrappedChildren) : /* @__PURE__ */ createPortal(wrappedChildren, doc);
|
|
1540
|
+
}
|
|
1541
|
+
const $01b77f81d0f07f68$export$75b6ee27786ba447 = /* @__PURE__ */ createContext({});
|
|
1542
|
+
const $01b77f81d0f07f68$export$b04be29aa201d4f5 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Label(props, ref) {
|
|
1543
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447);
|
|
1544
|
+
let _a = props, { elementType: ElementType = "label" } = _a, labelProps = __objRest(_a, ["elementType"]);
|
|
1545
|
+
return /* @__PURE__ */ React__default.createElement(ElementType, __spreadProps(__spreadValues({
|
|
1546
|
+
className: "react-aria-Label"
|
|
1547
|
+
}, labelProps), {
|
|
1548
|
+
ref
|
|
1549
|
+
}));
|
|
1550
|
+
});
|
|
1551
|
+
const $514c0188e459b4c0$export$9afb8bc826b033ea = /* @__PURE__ */ createContext({});
|
|
1552
|
+
const $d2f53cda644affe3$export$65d2a03b8800d6e3 = /* @__PURE__ */ createContext(null);
|
|
1553
|
+
const $7135fc7d473fd974$export$d40e14dec8b060a8 = /* @__PURE__ */ createContext(null);
|
|
1554
|
+
const $7135fc7d473fd974$export$a164736487e3f0ae = {
|
|
1555
|
+
CollectionRoot({ collection, renderDropIndicator }) {
|
|
1556
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator);
|
|
1557
|
+
},
|
|
1558
|
+
CollectionBranch({ collection, parent, renderDropIndicator }) {
|
|
1559
|
+
return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator);
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) {
|
|
1563
|
+
return $e948873055cbafe4$export$727c8fc270210f13({
|
|
1564
|
+
items: parent ? collection.getChildren(parent.key) : collection,
|
|
1565
|
+
dependencies: [
|
|
1566
|
+
renderDropIndicator
|
|
1567
|
+
],
|
|
1568
|
+
children(node) {
|
|
1569
|
+
var _collection_getItem;
|
|
1570
|
+
let rendered = node.render(node);
|
|
1571
|
+
if (!renderDropIndicator || node.type !== "item") return rendered;
|
|
1572
|
+
let key = node.key;
|
|
1573
|
+
let keyAfter = collection.getKeyAfter(key);
|
|
1574
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderDropIndicator({
|
|
1575
|
+
type: "item",
|
|
1576
|
+
key,
|
|
1577
|
+
dropPosition: "before"
|
|
1578
|
+
}), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== "item") && renderDropIndicator({
|
|
1579
|
+
type: "item",
|
|
1580
|
+
key,
|
|
1581
|
+
dropPosition: "after"
|
|
1582
|
+
}));
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
const $7135fc7d473fd974$export$4feb769f8ddf26c5 = /* @__PURE__ */ createContext($7135fc7d473fd974$export$a164736487e3f0ae);
|
|
1587
|
+
function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) {
|
|
1588
|
+
return useMemo(() => focusedKey != null ? /* @__PURE__ */ new Set([
|
|
1589
|
+
focusedKey
|
|
1590
|
+
]) : null, [
|
|
1591
|
+
focusedKey
|
|
1592
|
+
]);
|
|
1593
|
+
}
|
|
1594
|
+
const $612b8eb6cb90e02d$export$d188a835a7bc5783 = /* @__PURE__ */ createContext({});
|
|
1595
|
+
const $612b8eb6cb90e02d$export$f55761759794cf55 = /* @__PURE__ */ createContext(null);
|
|
1596
|
+
const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /* @__PURE__ */ forwardRef(function DropIndicator(props, ref) {
|
|
1597
|
+
let { render } = useContext($612b8eb6cb90e02d$export$f55761759794cf55);
|
|
1598
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render(props, ref));
|
|
1599
|
+
});
|
|
1600
|
+
function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
|
|
1601
|
+
var _dragAndDropHooks_isVirtualDragging;
|
|
1602
|
+
let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
|
|
1603
|
+
let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
|
|
1604
|
+
let fn = useCallback((target) => {
|
|
1605
|
+
if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /* @__PURE__ */ React__default.createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
|
|
1606
|
+
target
|
|
1607
|
+
});
|
|
1608
|
+
}, [
|
|
1609
|
+
dropState === null || dropState === void 0 ? void 0 : dropState.target,
|
|
1610
|
+
isVirtualDragging,
|
|
1611
|
+
renderDropIndicator
|
|
1612
|
+
]);
|
|
1613
|
+
return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : void 0;
|
|
1614
|
+
}
|
|
1615
|
+
function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {
|
|
1616
|
+
var _dragAndDropHooks_isVirtualDragging, _dropState_target;
|
|
1617
|
+
let focusedKey = selectionManager.focusedKey;
|
|
1618
|
+
let dropTargetKey = null;
|
|
1619
|
+
if ((dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === void 0 ? void 0 : (_dropState_target = dropState.target) === null || _dropState_target === void 0 ? void 0 : _dropState_target.type) === "item") {
|
|
1620
|
+
dropTargetKey = dropState.target.key;
|
|
1621
|
+
var _dropState_collection_getKeyAfter;
|
|
1622
|
+
if (dropState.target.dropPosition === "after")
|
|
1623
|
+
dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== void 0 ? _dropState_collection_getKeyAfter : dropTargetKey;
|
|
1624
|
+
}
|
|
1625
|
+
return useMemo(() => {
|
|
1626
|
+
return new Set([
|
|
1627
|
+
focusedKey,
|
|
1628
|
+
dropTargetKey
|
|
1629
|
+
].filter((k) => k != null));
|
|
1630
|
+
}, [
|
|
1631
|
+
focusedKey,
|
|
1632
|
+
dropTargetKey
|
|
1633
|
+
]);
|
|
1634
|
+
}
|
|
1635
|
+
const $72a5793c14baf454$export$e0e4026c12a8bdbb = /* @__PURE__ */ createContext({});
|
|
1636
|
+
const $431f98aba6844401$export$6615d83f6de245ce = /* @__PURE__ */ createContext({});
|
|
1637
|
+
const $eed445e0843c11d0$export$7ff8f37d2d81a48d = /* @__PURE__ */ createContext(null);
|
|
1638
|
+
const $eed445e0843c11d0$export$7c5906fe4f1f2af2 = /* @__PURE__ */ createContext(null);
|
|
1639
|
+
const $eed445e0843c11d0$export$41f133550aa26f48 = /* @__PURE__ */ forwardRef(function ListBox(props, ref) {
|
|
1640
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eed445e0843c11d0$export$7ff8f37d2d81a48d);
|
|
1641
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1642
|
+
if (state) return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
1643
|
+
state,
|
|
1644
|
+
props,
|
|
1645
|
+
listBoxRef: ref
|
|
1646
|
+
});
|
|
1647
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1648
|
+
content: /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props)
|
|
1649
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$StandaloneListBox, {
|
|
1650
|
+
props,
|
|
1651
|
+
listBoxRef: ref,
|
|
1652
|
+
collection
|
|
1653
|
+
}));
|
|
1654
|
+
});
|
|
1655
|
+
function $eed445e0843c11d0$var$StandaloneListBox({ props, listBoxRef, collection }) {
|
|
1656
|
+
props = __spreadProps(__spreadValues({}, props), {
|
|
1657
|
+
collection,
|
|
1658
|
+
children: null,
|
|
1659
|
+
items: null
|
|
1660
|
+
});
|
|
1661
|
+
let { layoutDelegate } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1662
|
+
let state = $e72dd72e1c76a225$export$2f645645f7bca764(__spreadProps(__spreadValues({}, props), {
|
|
1663
|
+
layoutDelegate
|
|
1664
|
+
}));
|
|
1665
|
+
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxInner, {
|
|
1666
|
+
state,
|
|
1667
|
+
props,
|
|
1668
|
+
listBoxRef
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
function $eed445e0843c11d0$var$ListBoxInner({ state: inputState, props, listBoxRef }) {
|
|
1672
|
+
let { filter, collectionProps, collectionRef } = useContext($d2f53cda644affe3$export$65d2a03b8800d6e3) || {};
|
|
1673
|
+
props = useMemo(() => collectionProps ? __spreadValues(__spreadValues({}, props), collectionProps) : props, [
|
|
1674
|
+
props,
|
|
1675
|
+
collectionProps
|
|
1676
|
+
]);
|
|
1677
|
+
let { dragAndDropHooks, layout = "stack", orientation = "vertical" } = props;
|
|
1678
|
+
listBoxRef = $df56164dff5785e2$export$4338b53315abf666(useMemo(() => $5dc95899b306f630$export$c9058316764c140e(listBoxRef, collectionRef !== void 0 ? collectionRef : null), [
|
|
1679
|
+
collectionRef,
|
|
1680
|
+
listBoxRef
|
|
1681
|
+
]));
|
|
1682
|
+
let state = $e72dd72e1c76a225$export$ba9d38c0f1bf2b36(inputState, filter);
|
|
1683
|
+
let { collection, selectionManager } = state;
|
|
1684
|
+
let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
|
|
1685
|
+
let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
|
|
1686
|
+
let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1687
|
+
let { disabledBehavior, disabledKeys } = selectionManager;
|
|
1688
|
+
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
1689
|
+
usage: "search",
|
|
1690
|
+
sensitivity: "base"
|
|
1691
|
+
});
|
|
1692
|
+
let { isVirtualized, layoutDelegate, dropTargetDelegate: ctxDropTargetDelegate, CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1693
|
+
let keyboardDelegate = useMemo(() => props.keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
1694
|
+
collection,
|
|
1695
|
+
collator,
|
|
1696
|
+
ref: listBoxRef,
|
|
1697
|
+
disabledKeys,
|
|
1698
|
+
disabledBehavior,
|
|
1699
|
+
layout,
|
|
1700
|
+
orientation,
|
|
1701
|
+
direction,
|
|
1702
|
+
layoutDelegate
|
|
1703
|
+
}), [
|
|
1704
|
+
collection,
|
|
1705
|
+
collator,
|
|
1706
|
+
listBoxRef,
|
|
1707
|
+
disabledBehavior,
|
|
1708
|
+
disabledKeys,
|
|
1709
|
+
orientation,
|
|
1710
|
+
direction,
|
|
1711
|
+
props.keyboardDelegate,
|
|
1712
|
+
layout,
|
|
1713
|
+
layoutDelegate
|
|
1714
|
+
]);
|
|
1715
|
+
let { listBoxProps } = $c132121280ec012d$export$50eacbbf140a3141(__spreadProps(__spreadValues({}, props), {
|
|
1716
|
+
shouldSelectOnPressUp: isListDraggable || props.shouldSelectOnPressUp,
|
|
1717
|
+
keyboardDelegate,
|
|
1718
|
+
isVirtualized
|
|
1719
|
+
}), state, listBoxRef);
|
|
1720
|
+
let dragHooksProvided = useRef(isListDraggable);
|
|
1721
|
+
let dropHooksProvided = useRef(isListDroppable);
|
|
1722
|
+
useEffect(() => {
|
|
1723
|
+
if (dragHooksProvided.current !== isListDraggable) console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
|
|
1724
|
+
if (dropHooksProvided.current !== isListDroppable) console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
|
|
1725
|
+
}, [
|
|
1726
|
+
isListDraggable,
|
|
1727
|
+
isListDroppable
|
|
1728
|
+
]);
|
|
1729
|
+
let dragState = void 0;
|
|
1730
|
+
let dropState = void 0;
|
|
1731
|
+
let droppableCollection = void 0;
|
|
1732
|
+
let isRootDropTarget = false;
|
|
1733
|
+
let dragPreview = null;
|
|
1734
|
+
let preview = useRef(null);
|
|
1735
|
+
if (isListDraggable && dragAndDropHooks) {
|
|
1736
|
+
dragState = dragAndDropHooks.useDraggableCollectionState({
|
|
1737
|
+
collection,
|
|
1738
|
+
selectionManager,
|
|
1739
|
+
preview: dragAndDropHooks.renderDragPreview ? preview : void 0
|
|
1740
|
+
});
|
|
1741
|
+
dragAndDropHooks.useDraggableCollection({}, dragState, listBoxRef);
|
|
1742
|
+
let DragPreview = dragAndDropHooks.DragPreview;
|
|
1743
|
+
dragPreview = dragAndDropHooks.renderDragPreview ? /* @__PURE__ */ React__default.createElement(DragPreview, {
|
|
1744
|
+
ref: preview
|
|
1745
|
+
}, dragAndDropHooks.renderDragPreview) : null;
|
|
1746
|
+
}
|
|
1747
|
+
if (isListDroppable && dragAndDropHooks) {
|
|
1748
|
+
dropState = dragAndDropHooks.useDroppableCollectionState({
|
|
1749
|
+
collection,
|
|
1750
|
+
selectionManager
|
|
1751
|
+
});
|
|
1752
|
+
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(collection, listBoxRef, {
|
|
1753
|
+
orientation,
|
|
1754
|
+
layout,
|
|
1755
|
+
direction
|
|
1756
|
+
});
|
|
1757
|
+
droppableCollection = dragAndDropHooks.useDroppableCollection({
|
|
1758
|
+
keyboardDelegate,
|
|
1759
|
+
dropTargetDelegate
|
|
1760
|
+
}, dropState, listBoxRef);
|
|
1761
|
+
isRootDropTarget = dropState.isDropTarget({
|
|
1762
|
+
type: "root"
|
|
1763
|
+
});
|
|
1764
|
+
}
|
|
1765
|
+
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
1766
|
+
let renderValues = {
|
|
1767
|
+
isDropTarget: isRootDropTarget,
|
|
1768
|
+
isEmpty: state.collection.size === 0,
|
|
1769
|
+
isFocused,
|
|
1770
|
+
isFocusVisible,
|
|
1771
|
+
layout: props.layout || "stack",
|
|
1772
|
+
state
|
|
1773
|
+
};
|
|
1774
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1775
|
+
className: props.className,
|
|
1776
|
+
style: props.style,
|
|
1777
|
+
defaultClassName: "react-aria-ListBox",
|
|
1778
|
+
values: renderValues
|
|
1779
|
+
});
|
|
1780
|
+
let emptyState = null;
|
|
1781
|
+
if (state.collection.size === 0 && props.renderEmptyState) emptyState = /* @__PURE__ */ React__default.createElement("div", {
|
|
1782
|
+
// eslint-disable-next-line
|
|
1783
|
+
role: "option",
|
|
1784
|
+
style: {
|
|
1785
|
+
display: "contents"
|
|
1786
|
+
}
|
|
1787
|
+
}, props.renderEmptyState(renderValues));
|
|
1788
|
+
return /* @__PURE__ */ React__default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props)), $3ef42575df84b30b$export$9d1611c77c2fe928(listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps)), renderProps), {
|
|
1789
|
+
ref: listBoxRef,
|
|
1790
|
+
slot: props.slot || void 0,
|
|
1791
|
+
onScroll: props.onScroll,
|
|
1792
|
+
"data-drop-target": isRootDropTarget || void 0,
|
|
1793
|
+
"data-empty": state.collection.size === 0 || void 0,
|
|
1794
|
+
"data-focused": isFocused || void 0,
|
|
1795
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
1796
|
+
"data-layout": props.layout || "stack",
|
|
1797
|
+
"data-orientation": props.orientation || "vertical"
|
|
1798
|
+
}), /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1799
|
+
values: [
|
|
1800
|
+
[
|
|
1801
|
+
$eed445e0843c11d0$export$7ff8f37d2d81a48d,
|
|
1802
|
+
props
|
|
1803
|
+
],
|
|
1804
|
+
[
|
|
1805
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
1806
|
+
state
|
|
1807
|
+
],
|
|
1808
|
+
[
|
|
1809
|
+
$612b8eb6cb90e02d$export$d188a835a7bc5783,
|
|
1810
|
+
{
|
|
1811
|
+
dragAndDropHooks,
|
|
1812
|
+
dragState,
|
|
1813
|
+
dropState
|
|
1814
|
+
}
|
|
1815
|
+
],
|
|
1816
|
+
[
|
|
1817
|
+
$431f98aba6844401$export$6615d83f6de245ce,
|
|
1818
|
+
{
|
|
1819
|
+
elementType: "div"
|
|
1820
|
+
}
|
|
1821
|
+
],
|
|
1822
|
+
[
|
|
1823
|
+
$612b8eb6cb90e02d$export$f55761759794cf55,
|
|
1824
|
+
{
|
|
1825
|
+
render: $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper
|
|
1826
|
+
}
|
|
1827
|
+
],
|
|
1828
|
+
[
|
|
1829
|
+
$7135fc7d473fd974$export$d40e14dec8b060a8,
|
|
1830
|
+
{
|
|
1831
|
+
name: "ListBoxSection",
|
|
1832
|
+
render: $eed445e0843c11d0$var$ListBoxSectionInner
|
|
1833
|
+
}
|
|
1834
|
+
]
|
|
1835
|
+
]
|
|
1836
|
+
}, /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
1837
|
+
collection,
|
|
1838
|
+
scrollRef: listBoxRef,
|
|
1839
|
+
persistedKeys: $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState),
|
|
1840
|
+
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
1841
|
+
})), emptyState, dragPreview));
|
|
1842
|
+
}
|
|
1843
|
+
function $eed445e0843c11d0$var$ListBoxSectionInner(props, ref, section, className = "react-aria-ListBoxSection") {
|
|
1844
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1845
|
+
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1846
|
+
let { CollectionBranch } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
1847
|
+
let [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1848
|
+
var _props_arialabel;
|
|
1849
|
+
let { headingProps, groupProps } = $af383d3bef1cfdc9$export$c3f9f39876e4bc7({
|
|
1850
|
+
heading,
|
|
1851
|
+
"aria-label": (_props_arialabel = props["aria-label"]) !== null && _props_arialabel !== void 0 ? _props_arialabel : void 0
|
|
1852
|
+
});
|
|
1853
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
1854
|
+
defaultClassName: className,
|
|
1855
|
+
className: props.className,
|
|
1856
|
+
style: props.style,
|
|
1857
|
+
values: {}
|
|
1858
|
+
});
|
|
1859
|
+
return /* @__PURE__ */ React__default.createElement("section", __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props)), groupProps), renderProps), {
|
|
1860
|
+
ref
|
|
1861
|
+
}), /* @__PURE__ */ React__default.createElement($72a5793c14baf454$export$e0e4026c12a8bdbb.Provider, {
|
|
1862
|
+
value: __spreadProps(__spreadValues({}, headingProps), {
|
|
1863
|
+
ref: headingRef
|
|
1864
|
+
})
|
|
1865
|
+
}, /* @__PURE__ */ React__default.createElement(CollectionBranch, {
|
|
1866
|
+
collection: state.collection,
|
|
1867
|
+
parent: section,
|
|
1868
|
+
renderDropIndicator: $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState)
|
|
1869
|
+
})));
|
|
1870
|
+
}
|
|
1871
|
+
const $eed445e0843c11d0$export$a11e76429ed99b4 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", function ListBoxItem(props, forwardedRef, item) {
|
|
1872
|
+
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
1873
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
1874
|
+
let { dragAndDropHooks, dragState, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1875
|
+
let _a = $293f70390ea03370$export$497855f14858aa34({
|
|
1876
|
+
key: item.key,
|
|
1877
|
+
"aria-label": props === null || props === void 0 ? void 0 : props["aria-label"]
|
|
1878
|
+
}, state, ref), { optionProps, labelProps, descriptionProps } = _a, states = __objRest(_a, ["optionProps", "labelProps", "descriptionProps"]);
|
|
1879
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
1880
|
+
isDisabled: !states.allowsSelection && !states.hasAction,
|
|
1881
|
+
onHoverStart: item.props.onHoverStart,
|
|
1882
|
+
onHoverChange: item.props.onHoverChange,
|
|
1883
|
+
onHoverEnd: item.props.onHoverEnd
|
|
1884
|
+
});
|
|
1885
|
+
let draggableItem = null;
|
|
1886
|
+
if (dragState && dragAndDropHooks) draggableItem = dragAndDropHooks.useDraggableItem({
|
|
1887
|
+
key: item.key
|
|
1888
|
+
}, dragState);
|
|
1889
|
+
let droppableItem = null;
|
|
1890
|
+
if (dropState && dragAndDropHooks) droppableItem = dragAndDropHooks.useDroppableItem({
|
|
1891
|
+
target: {
|
|
1892
|
+
type: "item",
|
|
1893
|
+
key: item.key,
|
|
1894
|
+
dropPosition: "on"
|
|
1895
|
+
}
|
|
1896
|
+
}, dropState, ref);
|
|
1897
|
+
let isDragging = dragState && dragState.isDragging(item.key);
|
|
1898
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
1899
|
+
id: void 0,
|
|
1900
|
+
children: props.children,
|
|
1901
|
+
defaultClassName: "react-aria-ListBoxItem",
|
|
1902
|
+
values: __spreadProps(__spreadValues({}, states), {
|
|
1903
|
+
isHovered,
|
|
1904
|
+
selectionMode: state.selectionManager.selectionMode,
|
|
1905
|
+
selectionBehavior: state.selectionManager.selectionBehavior,
|
|
1906
|
+
allowsDragging: !!dragState,
|
|
1907
|
+
isDragging,
|
|
1908
|
+
isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget
|
|
1909
|
+
})
|
|
1910
|
+
}));
|
|
1911
|
+
useEffect(() => {
|
|
1912
|
+
if (!item.textValue) console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");
|
|
1913
|
+
}, [
|
|
1914
|
+
item.textValue
|
|
1915
|
+
]);
|
|
1916
|
+
let ElementType = props.href ? "a" : "div";
|
|
1917
|
+
return /* @__PURE__ */ React__default.createElement(ElementType, __spreadProps(__spreadValues(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps)), renderProps), {
|
|
1918
|
+
ref,
|
|
1919
|
+
"data-allows-dragging": !!dragState || void 0,
|
|
1920
|
+
"data-selected": states.isSelected || void 0,
|
|
1921
|
+
"data-disabled": states.isDisabled || void 0,
|
|
1922
|
+
"data-hovered": isHovered || void 0,
|
|
1923
|
+
"data-focused": states.isFocused || void 0,
|
|
1924
|
+
"data-focus-visible": states.isFocusVisible || void 0,
|
|
1925
|
+
"data-pressed": states.isPressed || void 0,
|
|
1926
|
+
"data-dragging": isDragging || void 0,
|
|
1927
|
+
"data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || void 0,
|
|
1928
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? void 0 : state.selectionManager.selectionMode
|
|
1929
|
+
}), /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1930
|
+
values: [
|
|
1931
|
+
[
|
|
1932
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
1933
|
+
{
|
|
1934
|
+
slots: {
|
|
1935
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps,
|
|
1936
|
+
label: labelProps,
|
|
1937
|
+
description: descriptionProps
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
]
|
|
1941
|
+
]
|
|
1942
|
+
}, renderProps.children));
|
|
1943
|
+
});
|
|
1944
|
+
function $eed445e0843c11d0$var$ListBoxDropIndicatorWrapper(props, ref) {
|
|
1945
|
+
ref = $df56164dff5785e2$export$4338b53315abf666(ref);
|
|
1946
|
+
let { dragAndDropHooks, dropState } = useContext($612b8eb6cb90e02d$export$d188a835a7bc5783);
|
|
1947
|
+
let { dropIndicatorProps, isHidden, isDropTarget } = dragAndDropHooks.useDropIndicator(props, dropState, ref);
|
|
1948
|
+
if (isHidden) return null;
|
|
1949
|
+
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef, __spreadProps(__spreadValues({}, props), {
|
|
1950
|
+
dropIndicatorProps,
|
|
1951
|
+
isDropTarget,
|
|
1952
|
+
ref
|
|
1953
|
+
}));
|
|
1954
|
+
}
|
|
1955
|
+
function $eed445e0843c11d0$var$ListBoxDropIndicator(props, ref) {
|
|
1956
|
+
let _a = props, { dropIndicatorProps, isDropTarget } = _a, otherProps = __objRest(_a, ["dropIndicatorProps", "isDropTarget"]);
|
|
1957
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, otherProps), {
|
|
1958
|
+
defaultClassName: "react-aria-DropIndicator",
|
|
1959
|
+
values: {
|
|
1960
|
+
isDropTarget
|
|
1961
|
+
}
|
|
1962
|
+
}));
|
|
1963
|
+
return /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, dropIndicatorProps), renderProps), {
|
|
1964
|
+
// eslint-disable-next-line
|
|
1965
|
+
role: "option",
|
|
1966
|
+
ref,
|
|
1967
|
+
"data-drop-target": isDropTarget || void 0
|
|
1968
|
+
}));
|
|
1969
|
+
}
|
|
1970
|
+
const $eed445e0843c11d0$var$ListBoxDropIndicatorForwardRef = /* @__PURE__ */ forwardRef($eed445e0843c11d0$var$ListBoxDropIndicator);
|
|
1971
|
+
const $eaf9e70818b436db$export$5b07b5dd2cbd96e3 = /* @__PURE__ */ createContext(null);
|
|
1972
|
+
const $eaf9e70818b436db$export$e755ce3685dd0ca9 = /* @__PURE__ */ createContext(null);
|
|
1973
|
+
const $eaf9e70818b436db$export$67ea30858aaf75e3 = /* @__PURE__ */ forwardRef(function TagGroup(props, ref) {
|
|
1974
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $eaf9e70818b436db$export$5b07b5dd2cbd96e3);
|
|
1975
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1976
|
+
content: props.children
|
|
1977
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($eaf9e70818b436db$var$TagGroupInner, {
|
|
1978
|
+
props,
|
|
1979
|
+
forwardedRef: ref,
|
|
1980
|
+
collection
|
|
1981
|
+
}));
|
|
1982
|
+
});
|
|
1983
|
+
function $eaf9e70818b436db$var$TagGroupInner({ props, forwardedRef: ref, collection }) {
|
|
1984
|
+
let tagListRef = useRef(null);
|
|
1985
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
|
|
1986
|
+
let state = $e72dd72e1c76a225$export$2f645645f7bca764(__spreadProps(__spreadValues({}, props), {
|
|
1987
|
+
children: void 0,
|
|
1988
|
+
collection
|
|
1989
|
+
}));
|
|
1990
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1991
|
+
let domPropOverrides = Object.fromEntries(Object.entries(domProps).map(([k]) => [
|
|
1992
|
+
k,
|
|
1993
|
+
void 0
|
|
1994
|
+
]));
|
|
1995
|
+
let { gridProps, labelProps, descriptionProps, errorMessageProps } = $d7323bca8d074eeb$export$4f8b5cda58b7e8ff(__spreadProps(__spreadValues(__spreadValues({}, props), domPropOverrides), {
|
|
1996
|
+
label
|
|
1997
|
+
}), state, tagListRef);
|
|
1998
|
+
var _props_className;
|
|
1999
|
+
return /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues({}, domProps), {
|
|
2000
|
+
ref,
|
|
2001
|
+
slot: props.slot || void 0,
|
|
2002
|
+
className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : "react-aria-TagGroup",
|
|
2003
|
+
style: props.style
|
|
2004
|
+
}), /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
2005
|
+
values: [
|
|
2006
|
+
[
|
|
2007
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
2008
|
+
__spreadProps(__spreadValues({}, labelProps), {
|
|
2009
|
+
elementType: "span",
|
|
2010
|
+
ref: labelRef
|
|
2011
|
+
})
|
|
2012
|
+
],
|
|
2013
|
+
[
|
|
2014
|
+
$eaf9e70818b436db$export$e755ce3685dd0ca9,
|
|
2015
|
+
__spreadProps(__spreadValues({}, gridProps), {
|
|
2016
|
+
ref: tagListRef
|
|
2017
|
+
})
|
|
2018
|
+
],
|
|
2019
|
+
[
|
|
2020
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
2021
|
+
state
|
|
2022
|
+
],
|
|
2023
|
+
[
|
|
2024
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
2025
|
+
{
|
|
2026
|
+
slots: {
|
|
2027
|
+
description: descriptionProps,
|
|
2028
|
+
errorMessage: errorMessageProps
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
]
|
|
2032
|
+
]
|
|
2033
|
+
}, props.children));
|
|
2034
|
+
}
|
|
2035
|
+
const $eaf9e70818b436db$export$f9fef0f55402315b = /* @__PURE__ */ forwardRef(function TagList(props, ref) {
|
|
2036
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
2037
|
+
return state ? /* @__PURE__ */ React__default.createElement($eaf9e70818b436db$var$TagListInner, {
|
|
2038
|
+
props,
|
|
2039
|
+
forwardedRef: ref
|
|
2040
|
+
}) : /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props);
|
|
2041
|
+
});
|
|
2042
|
+
function $eaf9e70818b436db$var$TagListInner({ props, forwardedRef }) {
|
|
2043
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
2044
|
+
let { CollectionRoot } = useContext($7135fc7d473fd974$export$4feb769f8ddf26c5);
|
|
2045
|
+
let [gridProps, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $eaf9e70818b436db$export$e755ce3685dd0ca9);
|
|
2046
|
+
delete gridProps.items;
|
|
2047
|
+
delete gridProps.renderEmptyState;
|
|
2048
|
+
let { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
2049
|
+
let renderValues = {
|
|
2050
|
+
isEmpty: state.collection.size === 0,
|
|
2051
|
+
isFocused,
|
|
2052
|
+
isFocusVisible,
|
|
2053
|
+
state
|
|
2054
|
+
};
|
|
2055
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
2056
|
+
className: props.className,
|
|
2057
|
+
style: props.style,
|
|
2058
|
+
defaultClassName: "react-aria-TagList",
|
|
2059
|
+
values: renderValues
|
|
2060
|
+
});
|
|
2061
|
+
let persistedKeys = $7135fc7d473fd974$export$90e00781bc59d8f9(state.selectionManager.focusedKey);
|
|
2062
|
+
return /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(gridProps, focusProps)), renderProps), {
|
|
2063
|
+
ref,
|
|
2064
|
+
"data-empty": state.collection.size === 0 || void 0,
|
|
2065
|
+
"data-focused": isFocused || void 0,
|
|
2066
|
+
"data-focus-visible": isFocusVisible || void 0
|
|
2067
|
+
}), state.collection.size === 0 && props.renderEmptyState ? props.renderEmptyState(renderValues) : /* @__PURE__ */ React__default.createElement(CollectionRoot, {
|
|
2068
|
+
collection: state.collection,
|
|
2069
|
+
persistedKeys
|
|
2070
|
+
}));
|
|
2071
|
+
}
|
|
2072
|
+
const $eaf9e70818b436db$export$3288d34c523a1192 = /* @__PURE__ */ $e1995378a142960e$export$18af5c7a9e9b3664("item", (props, forwardedRef, item) => {
|
|
2073
|
+
let state = useContext($eed445e0843c11d0$export$7c5906fe4f1f2af2);
|
|
2074
|
+
let ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef);
|
|
2075
|
+
let { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
2076
|
+
within: true
|
|
2077
|
+
});
|
|
2078
|
+
let _a = $fc6126c82a4601f1$export$3f568fff7dff2f03({
|
|
2079
|
+
item
|
|
2080
|
+
}, state, ref), { rowProps, gridCellProps, removeButtonProps } = _a, states = __objRest(_a, ["rowProps", "gridCellProps", "removeButtonProps"]);
|
|
2081
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({
|
|
2082
|
+
isDisabled: !states.allowsSelection,
|
|
2083
|
+
onHoverStart: item.props.onHoverStart,
|
|
2084
|
+
onHoverChange: item.props.onHoverChange,
|
|
2085
|
+
onHoverEnd: item.props.onHoverEnd
|
|
2086
|
+
});
|
|
2087
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
2088
|
+
id: void 0,
|
|
2089
|
+
children: item.rendered,
|
|
2090
|
+
defaultClassName: "react-aria-Tag",
|
|
2091
|
+
values: __spreadProps(__spreadValues({}, states), {
|
|
2092
|
+
isFocusVisible,
|
|
2093
|
+
isHovered,
|
|
2094
|
+
selectionMode: state.selectionManager.selectionMode,
|
|
2095
|
+
selectionBehavior: state.selectionManager.selectionBehavior
|
|
2096
|
+
})
|
|
2097
|
+
}));
|
|
2098
|
+
useEffect(() => {
|
|
2099
|
+
if (!item.textValue) console.warn("A `textValue` prop is required for <Tag> elements with non-plain text children for accessibility.");
|
|
2100
|
+
}, [
|
|
2101
|
+
item.textValue
|
|
2102
|
+
]);
|
|
2103
|
+
return /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues({
|
|
2104
|
+
ref
|
|
2105
|
+
}, renderProps), $3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props), rowProps, focusProps, hoverProps)), {
|
|
2106
|
+
"data-selected": states.isSelected || void 0,
|
|
2107
|
+
"data-disabled": states.isDisabled || void 0,
|
|
2108
|
+
"data-hovered": isHovered || void 0,
|
|
2109
|
+
"data-focused": states.isFocused || void 0,
|
|
2110
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
2111
|
+
"data-pressed": states.isPressed || void 0,
|
|
2112
|
+
"data-allows-removing": states.allowsRemoving || void 0,
|
|
2113
|
+
"data-selection-mode": state.selectionManager.selectionMode === "none" ? void 0 : state.selectionManager.selectionMode
|
|
2114
|
+
}), /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues({}, gridCellProps), {
|
|
2115
|
+
style: {
|
|
2116
|
+
display: "contents"
|
|
2117
|
+
}
|
|
2118
|
+
}), /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
2119
|
+
values: [
|
|
2120
|
+
[
|
|
2121
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
2122
|
+
{
|
|
2123
|
+
slots: {
|
|
2124
|
+
remove: removeButtonProps
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
],
|
|
2128
|
+
[
|
|
2129
|
+
$7135fc7d473fd974$export$4feb769f8ddf26c5,
|
|
2130
|
+
$7135fc7d473fd974$export$a164736487e3f0ae
|
|
2131
|
+
]
|
|
2132
|
+
]
|
|
2133
|
+
}, renderProps.children)));
|
|
2134
|
+
});
|
|
2135
|
+
const InternalPillGroupContext = createContext(null);
|
|
2136
|
+
function useInternalPillGroupContext() {
|
|
2137
|
+
const pillGroupContext = useContext(InternalPillGroupContext);
|
|
2138
|
+
if (!pillGroupContext) {
|
|
2139
|
+
throw new Error("InternalPillGroupContext must be used inside a <PillGroup />");
|
|
2140
|
+
}
|
|
2141
|
+
return pillGroupContext;
|
|
2142
|
+
}
|
|
2143
|
+
const Pill$1 = "_Pill_tvu53_4";
|
|
2144
|
+
const borderless = "_borderless_tvu53_14";
|
|
2145
|
+
const remove = "_remove_tvu53_18";
|
|
2146
|
+
const list = "_list_tvu53_30";
|
|
2147
|
+
const styles = {
|
|
2148
|
+
Pill: Pill$1,
|
|
2149
|
+
borderless,
|
|
2150
|
+
remove,
|
|
2151
|
+
list
|
|
2152
|
+
};
|
|
2153
|
+
function usePillListState(initialItems) {
|
|
2154
|
+
return $0d86e9c8f07f9a7b$export$762f73dccccd255d({
|
|
2155
|
+
initialItems
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2158
|
+
function PillGroup(props) {
|
|
2159
|
+
const { label, items, children, horizontalStackContainerProps = {}, background = "neutral.000", isBorderless = false } = props;
|
|
2160
|
+
const { align, blockAlign, gap, wrap = true, inline } = horizontalStackContainerProps;
|
|
2161
|
+
const context = useMemo(() => {
|
|
2162
|
+
return {
|
|
2163
|
+
background,
|
|
2164
|
+
isBorderless
|
|
2165
|
+
};
|
|
2166
|
+
}, [background, isBorderless]);
|
|
2167
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getResponsiveDesignToken("pill-group", "gap", "space", gap)), getComponentToken("pill-group", "align", align)), getComponentToken("pill-group", "block-align", blockAlign)), getComponentToken("pill-group", "wrap", wrap ? "wrap" : "nowrap")), getComponentToken("pill-group", "display", inline ? "inline-flex" : "flex"));
|
|
2168
|
+
return React__default.createElement(InternalPillGroupContext.Provider, {
|
|
2169
|
+
value: context
|
|
2170
|
+
}, React__default.createElement($eaf9e70818b436db$export$67ea30858aaf75e3, __spreadValues({}, props), React__default.createElement(Text, {
|
|
2171
|
+
visuallyHidden: true
|
|
2172
|
+
}, React__default.createElement($01b77f81d0f07f68$export$b04be29aa201d4f5, null, label)), React__default.createElement($eaf9e70818b436db$export$f9fef0f55402315b, {
|
|
2173
|
+
items,
|
|
2174
|
+
className: styles.list,
|
|
2175
|
+
style
|
|
2176
|
+
}, children)));
|
|
2177
|
+
}
|
|
2178
|
+
function Pill(props) {
|
|
2179
|
+
const { label, icon } = props;
|
|
2180
|
+
const { background, isBorderless } = useInternalPillGroupContext();
|
|
2181
|
+
const style = __spreadValues({}, getComponentThemeToken("pill", "background", "color", background));
|
|
2182
|
+
const className = classNames(styles.Pill, isBorderless && styles.borderless);
|
|
2183
|
+
return React__default.createElement($eaf9e70818b436db$export$3288d34c523a1192, __spreadValues({
|
|
2184
|
+
textValue: label,
|
|
2185
|
+
className,
|
|
2186
|
+
style
|
|
2187
|
+
}, props), ({ allowsRemoving }) => React__default.createElement(React__default.Fragment, null, icon && React__default.createElement(Icon, {
|
|
2188
|
+
size: "xs",
|
|
2189
|
+
symbol: icon,
|
|
2190
|
+
color: "primary.700"
|
|
2191
|
+
}), React__default.createElement(Text, {
|
|
2192
|
+
color: "primary.800",
|
|
2193
|
+
variant: "subtitle2"
|
|
2194
|
+
}, label), allowsRemoving && React__default.createElement($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
2195
|
+
className: styles.remove,
|
|
2196
|
+
slot: "remove"
|
|
2197
|
+
}, React__default.createElement(Icon, {
|
|
2198
|
+
size: "xs",
|
|
2199
|
+
symbol: Close,
|
|
2200
|
+
color: "primary.600"
|
|
2201
|
+
}))));
|
|
2202
|
+
}
|
|
2203
|
+
PillGroup.Pill = Pill;
|
|
2204
|
+
export {
|
|
2205
|
+
$0d86e9c8f07f9a7b$export$79c0c687a5963b0a as $,
|
|
2206
|
+
PillGroup as P,
|
|
2207
|
+
$eed445e0843c11d0$export$7ff8f37d2d81a48d as a,
|
|
2208
|
+
$e1995378a142960e$export$bf788dd355e3a401 as b,
|
|
2209
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447 as c,
|
|
2210
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2 as d,
|
|
2211
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea as e,
|
|
2212
|
+
$eed445e0843c11d0$export$41f133550aa26f48 as f,
|
|
2213
|
+
$eed445e0843c11d0$export$a11e76429ed99b4 as g,
|
|
2214
|
+
$0d86e9c8f07f9a7b$export$762f73dccccd255d as h,
|
|
2215
|
+
usePillListState as u
|
|
2216
|
+
};
|