@easypost/easy-ui 1.0.0-alpha.7 → 1.0.0-alpha.70
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/index.js +16 -16
- package/Badge/index.mjs +14 -14
- 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 +545 -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 +62 -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.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/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 +2738 -0
- package/DataGrid/index.mjs +2738 -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 +275 -0
- package/DatePicker/index.mjs +275 -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 +434 -0
- package/DateRangePicker/index.mjs +434 -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 +2068 -0
- package/Drawer/index.mjs +2052 -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 +500 -0
- package/ForgeLayout/index.mjs +500 -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 +123 -0
- package/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/MultiSelect/MultiSelect.stories.d.ts +11 -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 +1987 -0
- package/MultiSelect/index.mjs +1972 -0
- package/MultiSelect/utilities.d.ts +3 -0
- package/MultiSelect/utilities.d.ts.map +1 -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 +353 -0
- package/NexusLayout/index.mjs +353 -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 +80 -0
- package/PillGroup/PillGroup.d.ts.map +1 -0
- package/PillGroup/PillGroup.stories.d.ts +11 -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/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/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 +20 -14
- 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/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 +4 -3
- 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/SelectOverlay.d.ts.map +1 -1
- package/Select/index.js +28 -722
- package/Select/index.mjs +13 -707
- 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 +316 -0
- package/TabPanels/index.mjs +316 -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 +13 -5
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts +1 -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 -33
- package/TextField/index.mjs +2 -33
- 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 +32 -20
- package/Textarea/index.mjs +32 -20
- 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-BPRaVGPL.js +92 -0
- package/__chunks__/Button-BoPQ-Fx9.js +161 -0
- package/__chunks__/Button-DF_rdiaE.mjs +93 -0
- package/__chunks__/Button-DHEZ4A2s.mjs +162 -0
- package/__chunks__/Calendar-BypbgQDc.mjs +42 -0
- package/__chunks__/Calendar-Tx6YYe1Z.js +41 -0
- package/__chunks__/CalendarBase-CyfGzPs0.js +3494 -0
- package/__chunks__/CalendarBase-d72EQzpy.mjs +3495 -0
- package/__chunks__/Card-D1i8zLMR.js +278 -0
- package/__chunks__/Card-ULdlYqfr.mjs +279 -0
- package/__chunks__/CheckCircle-C9h2PNWU.mjs +41 -0
- package/__chunks__/CheckCircle-lgmtkEe6.js +57 -0
- package/__chunks__/Checkbox-CAqgwqP5.mjs +239 -0
- package/__chunks__/Checkbox-CQ1sLqDH.js +254 -0
- package/__chunks__/Close-BQ2IlPyf.js +57 -0
- package/__chunks__/Close-Cq6Q6MN6.mjs +41 -0
- package/__chunks__/CodeSnippet-BaPDU5UY.js +5703 -0
- package/__chunks__/CodeSnippet-nq2cOEYD.mjs +5704 -0
- package/__chunks__/DatePickerBase-D_Cbxxc6.js +3122 -0
- package/__chunks__/DatePickerBase-ix3RmplD.mjs +3108 -0
- package/__chunks__/Dialog-CuqmbMC4.js +291 -0
- package/__chunks__/Dialog-D9aIj4DH.mjs +292 -0
- package/__chunks__/{ExpandMore400-7c5263a4.mjs → ExpandMore400-CH7GNxqk.mjs} +9 -17
- package/__chunks__/{ExpandMore400-92646971.js → ExpandMore400-CJpvxyJm.js} +9 -17
- package/__chunks__/FocusScope-CUJV-jWH.mjs +706 -0
- package/__chunks__/FocusScope-Djtxzznf.js +705 -0
- package/__chunks__/HelpMenu-BMczxdnx.mjs +110 -0
- package/__chunks__/HelpMenu-OAKEfgwn.js +125 -0
- package/__chunks__/HorizontalGrid-B666Dz0t.js +61 -0
- package/__chunks__/HorizontalGrid-BZzIqRyv.mjs +62 -0
- package/__chunks__/HorizontalStack-ClWTvZqM.js +49 -0
- package/__chunks__/HorizontalStack-ycH41R6u.mjs +50 -0
- package/__chunks__/Icon-BlcrcY3U.js +39 -0
- package/__chunks__/Icon-CQ73-QIg.mjs +40 -0
- package/__chunks__/InputCaption-BL_NLjoT.js +60 -0
- package/__chunks__/InputCaption-CWtoKFv-.mjs +61 -0
- package/__chunks__/InputField-2I7cBW-k.js +239 -0
- package/__chunks__/InputField-BEQE01Ks.mjs +224 -0
- package/__chunks__/InputIcon-CktsE7z9.mjs +112 -0
- package/__chunks__/InputIcon-Djdhmk7P.js +111 -0
- package/__chunks__/Item-BhrTPNN2.mjs +80 -0
- package/__chunks__/Item-CfWjPrxx.js +79 -0
- package/__chunks__/KebabButton-CpClD-ta.js +121 -0
- package/__chunks__/KebabButton-D_JdD9tg.mjs +106 -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-ChrJLF1b.js +505 -0
- package/__chunks__/Menu-DZBO3sp5.mjs +506 -0
- package/__chunks__/Menu-OacI_98l.js +57 -0
- package/__chunks__/Menu-qMqvSorL.mjs +41 -0
- package/__chunks__/Notification-BoupUo2q.mjs +1367 -0
- package/__chunks__/Notification-fbWzf7BF.js +1382 -0
- package/__chunks__/NumberFormatter-CXW1Iqpu.js +153 -0
- package/__chunks__/NumberFormatter-p5KNJNTT.mjs +154 -0
- package/__chunks__/Overlay-CwJbrICR.js +164 -0
- package/__chunks__/Overlay-zuiAML3I.mjs +165 -0
- package/__chunks__/PillGroup-3zK1GHRU.mjs +2146 -0
- package/__chunks__/PillGroup-6MG9UkFs.js +2145 -0
- package/__chunks__/RadioGroup-BKpolhQi.js +331 -0
- package/__chunks__/RadioGroup-mbzALykd.mjs +332 -0
- package/__chunks__/RangeCalendar-BbXSVgVP.js +227 -0
- package/__chunks__/RangeCalendar-Bctey6Vi.mjs +228 -0
- package/__chunks__/Search-BY7IgEyX.js +57 -0
- package/__chunks__/Search-Cyblmqo5.mjs +41 -0
- package/__chunks__/SelectOverlay-BXGkUiwu.mjs +414 -0
- package/__chunks__/SelectOverlay-CdA5k1EB.js +413 -0
- package/__chunks__/SelectionManager-DCO_d3m1.mjs +708 -0
- package/__chunks__/SelectionManager-DuX6geJg.js +707 -0
- package/__chunks__/SelectorErrorTooltip-BpiNAFuB.js +90 -0
- package/__chunks__/SelectorErrorTooltip-CPVNpxGK.mjs +75 -0
- package/__chunks__/Spinner-DGw1szSS.js +99 -0
- package/__chunks__/Spinner-w1oZ97DZ.mjs +100 -0
- package/__chunks__/Stepper-0S2slVvL.mjs +169 -0
- package/__chunks__/Stepper-C0LQwSRc.js +168 -0
- package/__chunks__/TabNav-Bhq7vuFD.js +57 -0
- package/__chunks__/TabNav-CmEu1osE.mjs +58 -0
- package/__chunks__/Tabs-Bgb2pnmW.js +253 -0
- package/__chunks__/Tabs-CVXhD1Q9.mjs +254 -0
- package/__chunks__/Text-BY4p1xZ-.mjs +110 -0
- package/__chunks__/Text-C6DuTMMj.js +109 -0
- package/__chunks__/TextField-BhrZgTyN.mjs +45 -0
- package/__chunks__/TextField-CjTtasRE.js +44 -0
- package/__chunks__/Theme-BTOgcCP2.js +146 -0
- package/__chunks__/Theme-ByVPHaBx.mjs +147 -0
- package/__chunks__/Toggle-DVZ0H58G.mjs +135 -0
- package/__chunks__/Toggle-DXWt5hLD.js +134 -0
- package/__chunks__/{index-e989a741.mjs → Tooltip-Dg1Eau1x.mjs} +123 -131
- package/__chunks__/{index-affe5510.js → Tooltip-vmnwEvfN.js} +134 -142
- package/__chunks__/{index-45f05366.mjs → UnstyledButton-D_DzFe67.mjs} +17 -72
- package/__chunks__/UnstyledButton-yd6ZL2Yi.js +77 -0
- package/__chunks__/VerticalStack-BIhfodYr.mjs +55 -0
- package/__chunks__/VerticalStack-DIWUMCDj.js +54 -0
- package/__chunks__/VisuallyHidden-DcUrMWfu.js +74 -0
- package/__chunks__/VisuallyHidden-cQCgS6_a.mjs +75 -0
- package/__chunks__/_commonjsHelpers-Bc2YnDe1.js +7 -0
- package/__chunks__/_commonjsHelpers-DWwsNxpa.mjs +8 -0
- package/__chunks__/ariaHideOutside-CvJKAP9c.mjs +377 -0
- package/__chunks__/ariaHideOutside-DkYn-eBq.js +376 -0
- package/__chunks__/context-BZCcafjG.mjs +92 -0
- package/__chunks__/context-CYcq9Zvo.js +120 -0
- package/__chunks__/context-D3NeXov7.js +91 -0
- package/__chunks__/context-EpOG85wC.mjs +121 -0
- package/__chunks__/filterDOMProps-D3iOHP0H.js +27 -0
- package/__chunks__/filterDOMProps-EDDcM64A.mjs +28 -0
- package/__chunks__/focusSafely-CCOEuEpK.mjs +15 -0
- package/__chunks__/focusSafely-wmTq_iKq.js +14 -0
- package/__chunks__/getScrollParent-B5CCP-yO.mjs +10 -0
- package/__chunks__/getScrollParent-DNz2ReWu.js +9 -0
- package/__chunks__/index-CTw89HMx.js +198 -0
- package/__chunks__/index-CUcRN4NO.js +311 -0
- package/__chunks__/index-DCSYt1ke.mjs +199 -0
- package/__chunks__/index-Izk6uvQC.mjs +312 -0
- package/__chunks__/isScrollable-CE3Xdlg4.js +9 -0
- package/__chunks__/isScrollable-DwbLAiO0.mjs +10 -0
- package/__chunks__/isVirtualEvent-B_Z4yzgm.mjs +75 -0
- package/__chunks__/isVirtualEvent-C-tB2MCl.js +74 -0
- package/__chunks__/lodash-B19QVK6q.mjs +5492 -0
- package/__chunks__/lodash-CS8bkZ7S.js +5491 -0
- package/__chunks__/mergeProps-DSi85raC.mjs +227 -0
- package/__chunks__/mergeProps-DniMwM6P.js +226 -0
- package/__chunks__/mergeRefs-CCV6itCY.mjs +12 -0
- package/__chunks__/mergeRefs-CQsNYO0P.js +11 -0
- package/__chunks__/number-C4N6pKyl.js +6 -0
- package/__chunks__/number-CLRm_tTs.mjs +7 -0
- package/__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js +29 -0
- package/__chunks__/objectWithoutPropertiesLoose-ij10PUAf.mjs +30 -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-BN4yt25y.js +114 -0
- package/__chunks__/scrollIntoView-wURtlgJt.mjs +115 -0
- package/__chunks__/{tokens-ad06cd2c.js → tokens-BmCk-Bk0.js} +153 -126
- package/__chunks__/{tokens-3c27019b.mjs → tokens-BolVbjJp.mjs} +153 -126
- package/__chunks__/useButton-B_VJe1i5.js +70 -0
- package/__chunks__/useButton-CdgRb7pd.mjs +71 -0
- package/__chunks__/useCollator-B-keb3wA.mjs +13 -0
- package/__chunks__/useCollator-DGrSWVh4.js +12 -0
- package/__chunks__/{import-6a831ca1.mjs → useControlledState-CFWhSD5C.mjs} +5 -14
- package/__chunks__/{import-dea5a24d.js → useControlledState-mnKBd6Uc.js} +4 -13
- package/__chunks__/useDialog-Bxep5NaV.mjs +72 -0
- package/__chunks__/useDialog-DJ-g6m8Y.js +71 -0
- package/__chunks__/useEdgeInterceptors-BE1QLRt6.js +48 -0
- package/__chunks__/useEdgeInterceptors-DUaDYOew.mjs +49 -0
- package/__chunks__/useEvent-B0fsKtsf.mjs +23 -0
- package/__chunks__/useEvent-DY7dR7Mi.js +22 -0
- package/__chunks__/useField-B6VplZ_n.mjs +39 -0
- package/__chunks__/useField-BJW_bXVD.js +38 -0
- package/__chunks__/useFilter-D-K0Oj-7.mjs +65 -0
- package/__chunks__/useFilter-DpnZ54nd.js +64 -0
- package/__chunks__/useFocus-l6ZlVMHW.js +37 -0
- package/__chunks__/useFocus-lnK5BCt2.mjs +38 -0
- package/__chunks__/useFocusRing-KIEn23AD.mjs +43 -0
- package/__chunks__/useFocusRing-f5StfjhA.js +42 -0
- package/__chunks__/useFocusVisible-Bb3k4_O_.mjs +272 -0
- package/__chunks__/useFocusVisible-CiIrKjuz.js +271 -0
- package/__chunks__/useFocusWithin-BGNdxo9d.mjs +48 -0
- package/__chunks__/useFocusWithin-C-45XiL1.js +47 -0
- package/__chunks__/useFocusable-BQyiwtXU.js +99 -0
- package/__chunks__/useFocusable-DxcU91xN.mjs +100 -0
- package/__chunks__/useFormReset-Bgj93eR3.js +21 -0
- package/__chunks__/useFormReset-DA1Lwdha.mjs +22 -0
- package/__chunks__/useFormValidation-BeqiYVJN.js +262 -0
- package/__chunks__/useFormValidation-CCe1AoIX.mjs +263 -0
- package/__chunks__/useHasTabbableChild-CepF5tQS.js +36 -0
- package/__chunks__/useHasTabbableChild-DOO1szWv.mjs +37 -0
- package/__chunks__/useHighlightSelectionDescription-B_YjQEPD.mjs +572 -0
- package/__chunks__/useHighlightSelectionDescription-nSfKxNPA.js +570 -0
- package/__chunks__/useHover-BIKwjrCT.js +109 -0
- package/__chunks__/useHover-BOYR4wqI.mjs +110 -0
- package/__chunks__/useIntersectionDetection-BvUmtDgl.mjs +22 -0
- package/__chunks__/useIntersectionDetection-DI5n4zwA.js +21 -0
- package/__chunks__/useLabel-D37VV43W.mjs +27 -0
- package/__chunks__/useLabel-t-N6anB8.js +26 -0
- package/__chunks__/useLabels-5f58TiCH.mjs +23 -0
- package/__chunks__/useLabels-KmwewLTv.js +22 -0
- package/__chunks__/useLink-BGK9UEQW.mjs +95 -0
- package/__chunks__/useLink-CQhl3ZGL.js +94 -0
- package/__chunks__/useListBoxSection-Dl15OiHe.mjs +195 -0
- package/__chunks__/useListBoxSection-TdoNdwIM.js +194 -0
- package/__chunks__/useListState-AFrlkW73.mjs +182 -0
- package/__chunks__/useListState-I5rva0Fq.js +181 -0
- package/__chunks__/useLocalizedStringFormatter-BHXy3Wtu.mjs +122 -0
- package/__chunks__/useLocalizedStringFormatter-CaF1VsOH.js +121 -0
- package/__chunks__/useMenuTrigger-DDKy3dcp.mjs +264 -0
- package/__chunks__/useMenuTrigger-DhSBxWW5.js +263 -0
- package/__chunks__/useMenuTriggerState-BJJ3WdLH.mjs +67 -0
- package/__chunks__/useMenuTriggerState-DTZmPbSP.js +66 -0
- package/__chunks__/useModalOverlay-BeCxNyVY.mjs +48 -0
- package/__chunks__/useModalOverlay-gSHY_FAb.js +47 -0
- package/__chunks__/useObjectRef-BOGMJ5vM.js +18 -0
- package/__chunks__/useObjectRef-wU82Pkgx.mjs +19 -0
- package/__chunks__/useOverlayPosition-CTTQ0gZN.mjs +473 -0
- package/__chunks__/useOverlayPosition-DJGEWKwM.js +472 -0
- package/__chunks__/useOverlayTrigger-BvP35sYf.mjs +28 -0
- package/__chunks__/useOverlayTrigger-CiUR_pLO.js +27 -0
- package/__chunks__/usePress-CqfuY_T7.mjs +800 -0
- package/__chunks__/usePress-DTGD4Sub.js +799 -0
- package/__chunks__/useResizeObserver-BsbT3mjh.js +34 -0
- package/__chunks__/useResizeObserver-Dyb4wvuA.mjs +35 -0
- package/__chunks__/useSelectableItem-BEkjpB_K.js +615 -0
- package/__chunks__/useSelectableItem-DeFiKyU1.mjs +616 -0
- package/__chunks__/useSelectableList-DPJUwWwV.mjs +280 -0
- package/__chunks__/useSelectableList-Dk3TxzYJ.js +279 -0
- package/__chunks__/useSingleSelectListState-5RB1w9vv.js +55 -0
- package/__chunks__/useSingleSelectListState-DuCUY6dR.mjs +56 -0
- package/__chunks__/useTextField-CspDdKaL.mjs +110 -0
- package/__chunks__/useTextField-DM-ZTn9j.js +109 -0
- package/__chunks__/{import-eb35a9b9.mjs → useToggle-CbrJW7jr.mjs} +22 -29
- package/__chunks__/useToggle-Cu5EqIJD.js +74 -0
- package/__chunks__/useToggleState-CdbEMLRz.js +18 -0
- package/__chunks__/useToggleState-kFojjzgV.mjs +19 -0
- package/__chunks__/useTreeState-D6aHf9kN.js +142 -0
- package/__chunks__/useTreeState-w_raYfy2.mjs +143 -0
- package/__chunks__/useTriggerWidth-74VNM0k9.mjs +133 -0
- package/__chunks__/useTriggerWidth-B-IM2wNY.js +132 -0
- package/__chunks__/useUpdateEffect-BLgGnNgL.mjs +19 -0
- package/__chunks__/useUpdateEffect-CssYIsWI.js +18 -0
- package/__chunks__/utilities-CczOI9Hn.mjs +358 -0
- package/__chunks__/utilities-DIZYscJV.js +357 -0
- package/__chunks__/utils-BIfsWYLR.mjs +148 -0
- package/__chunks__/utils-BlKqJM2_.js +147 -0
- package/package.json +17 -15
- package/style.css +5224 -1686
- package/styles/_accessibility.scss +48 -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 +41 -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 +60 -2
- 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-1f2ed127.mjs +0 -148
- package/__chunks__/InputIcon-f456e366.js +0 -147
- 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-5f429325.js +0 -132
- package/__chunks__/index-72137376.mjs +0 -5421
- package/__chunks__/index-a7b6b429.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__/useTriggerWidth-b554acaf.mjs +0 -2031
- package/__chunks__/useTriggerWidth-e11bf6d6.js +0 -2030
|
@@ -0,0 +1,1972 @@
|
|
|
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
|
+
var __async = (__this, __arguments, generator) => {
|
|
33
|
+
return new Promise((resolve, reject) => {
|
|
34
|
+
var fulfilled = (value) => {
|
|
35
|
+
try {
|
|
36
|
+
step(generator.next(value));
|
|
37
|
+
} catch (e) {
|
|
38
|
+
reject(e);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var rejected = (value) => {
|
|
42
|
+
try {
|
|
43
|
+
step(generator.throw(value));
|
|
44
|
+
} catch (e) {
|
|
45
|
+
reject(e);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
49
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
import * as React from "react";
|
|
53
|
+
import React__default, { useState, useMemo, useRef, useCallback, useEffect, useReducer, createContext, forwardRef } from "react";
|
|
54
|
+
import { c as $f39a9eba43920ace$export$86427a43e3e48ebb, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-DHEZ4A2s.mjs";
|
|
55
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $64fa3d84918910a7$export$fabf2dc03a41866e, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, b as $64fa3d84918910a7$export$2881499e37b75b9a } from "../__chunks__/utils-BIfsWYLR.mjs";
|
|
56
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-BOYR4wqI.mjs";
|
|
57
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-KIEn23AD.mjs";
|
|
58
|
+
import { f as $ff5963eb1fccf552$export$e08e3b67e392101e, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-DSi85raC.mjs";
|
|
59
|
+
import { $ as $0d86e9c8f07f9a7b$export$79c0c687a5963b0a, a as $eed445e0843c11d0$export$7ff8f37d2d81a48d, b as $e1995378a142960e$export$bf788dd355e3a401, c as $01b77f81d0f07f68$export$75b6ee27786ba447, d as $eed445e0843c11d0$export$7c5906fe4f1f2af2, e as $514c0188e459b4c0$export$9afb8bc826b033ea, f as $eed445e0843c11d0$export$41f133550aa26f48, g as $eed445e0843c11d0$export$a11e76429ed99b4, P as PillGroup } from "../__chunks__/PillGroup-3zK1GHRU.mjs";
|
|
60
|
+
import { h } from "../__chunks__/PillGroup-3zK1GHRU.mjs";
|
|
61
|
+
import { c as $de32f1b87079253c$export$d2f961adcb0afbe, d as $07b14b47974efb58$export$9b9a0cd73afb7ca4, a as $07b14b47974efb58$export$5b6b19405a83ff9d } from "../__chunks__/Dialog-D9aIj4DH.mjs";
|
|
62
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
|
|
63
|
+
import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "../__chunks__/useResizeObserver-Dyb4wvuA.mjs";
|
|
64
|
+
import { $ as $bb77f239b46e8c72$export$3274cf84b703fff } from "../__chunks__/useFilter-D-K0Oj-7.mjs";
|
|
65
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../__chunks__/useFormValidation-CCe1AoIX.mjs";
|
|
66
|
+
import { c as $c5a24bc478652b5f$export$1005530eda016c13 } from "../__chunks__/SelectionManager-DCO_d3m1.mjs";
|
|
67
|
+
import { $ as $a0d645289fe9b86b$export$e7f05e985daf4b5f } from "../__chunks__/useSingleSelectListState-DuCUY6dR.mjs";
|
|
68
|
+
import { a as $a02d57049d202695$export$d085fb9e920b5ca7 } from "../__chunks__/useListState-AFrlkW73.mjs";
|
|
69
|
+
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/useControlledState-CFWhSD5C.mjs";
|
|
70
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-zuiAML3I.mjs";
|
|
71
|
+
import { $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "../__chunks__/LiveAnnouncer-BSV5-C0m.mjs";
|
|
72
|
+
import { b as $5e3802645cc19319$export$1c3ebcada18427bf } from "../__chunks__/ariaHideOutside-CvJKAP9c.mjs";
|
|
73
|
+
import { c as $b1f0cad8af73213b$export$3585ede4d035bf14, d as $b1f0cad8af73213b$export$9145995848b05025 } from "../__chunks__/useListBoxSection-Dl15OiHe.mjs";
|
|
74
|
+
import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572 } from "../__chunks__/usePress-CqfuY_T7.mjs";
|
|
75
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "../__chunks__/useLabels-5f58TiCH.mjs";
|
|
76
|
+
import { h as $c87311424ea30a05$export$e1865c3bedcd822b } from "../__chunks__/isVirtualEvent-B_Z4yzgm.mjs";
|
|
77
|
+
import { b as $2a25aae57d74318e$export$a05409b8bb224a5a, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "../__chunks__/useSelectableList-DPJUwWwV.mjs";
|
|
78
|
+
import { a as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "../__chunks__/useSelectableItem-DeFiKyU1.mjs";
|
|
79
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../__chunks__/useLocalizedStringFormatter-BHXy3Wtu.mjs";
|
|
80
|
+
import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "../__chunks__/useMenuTrigger-DDKy3dcp.mjs";
|
|
81
|
+
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "../__chunks__/useTextField-CspDdKaL.mjs";
|
|
82
|
+
import { I as Icon } from "../__chunks__/Icon-CQ73-QIg.mjs";
|
|
83
|
+
import { D as DEFAULT_MAX_ITEMS_UNTIL_SCROLL, Y as Y_PADDING_INSIDE_OVERLAY, I as ITEM_HEIGHT, f as getMenuPopoverMaxHeight } from "../__chunks__/utilities-CczOI9Hn.mjs";
|
|
84
|
+
import { S as Spinner } from "../__chunks__/Spinner-w1oZ97DZ.mjs";
|
|
85
|
+
import { T as Text } from "../__chunks__/Text-BY4p1xZ-.mjs";
|
|
86
|
+
import { getComponentToken, pxToRem } from "../utilities/css.mjs";
|
|
87
|
+
import { useScrollbar } from "../utilities/useScrollbar.mjs";
|
|
88
|
+
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../__chunks__/VisuallyHidden-cQCgS6_a.mjs";
|
|
89
|
+
function $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(props) {
|
|
90
|
+
var _collection_getItem;
|
|
91
|
+
let { defaultFilter, menuTrigger = "input", allowsEmptyCollection = false, allowsCustomValue, shouldCloseOnBlur = true } = props;
|
|
92
|
+
let [showAllItems, setShowAllItems] = useState(false);
|
|
93
|
+
let [isFocused, setFocusedState] = useState(false);
|
|
94
|
+
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
95
|
+
let onSelectionChange = (key) => {
|
|
96
|
+
if (props.onSelectionChange) props.onSelectionChange(key);
|
|
97
|
+
if (key === selectedKey) {
|
|
98
|
+
resetInputValue();
|
|
99
|
+
closeMenu();
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var _props_items;
|
|
103
|
+
let { collection, selectionManager, selectedKey, setSelectedKey, selectedItem, disabledKeys } = $a0d645289fe9b86b$export$e7f05e985daf4b5f(__spreadProps(__spreadValues({}, props), {
|
|
104
|
+
onSelectionChange,
|
|
105
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
106
|
+
}));
|
|
107
|
+
let defaultInputValue = props.defaultInputValue;
|
|
108
|
+
if (defaultInputValue == null) {
|
|
109
|
+
var _collection_getItem1;
|
|
110
|
+
var _collection_getItem_textValue;
|
|
111
|
+
if (selectedKey == null) defaultInputValue = "";
|
|
112
|
+
else defaultInputValue = (_collection_getItem_textValue = (_collection_getItem1 = collection.getItem(selectedKey)) === null || _collection_getItem1 === void 0 ? void 0 : _collection_getItem1.textValue) !== null && _collection_getItem_textValue !== void 0 ? _collection_getItem_textValue : "";
|
|
113
|
+
}
|
|
114
|
+
let [inputValue, setInputValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.inputValue, defaultInputValue, props.onInputChange);
|
|
115
|
+
let originalCollection = collection;
|
|
116
|
+
let filteredCollection = useMemo(() => (
|
|
117
|
+
// No default filter if items are controlled.
|
|
118
|
+
props.items != null || !defaultFilter ? collection : $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, defaultFilter)
|
|
119
|
+
), [
|
|
120
|
+
collection,
|
|
121
|
+
inputValue,
|
|
122
|
+
defaultFilter,
|
|
123
|
+
props.items
|
|
124
|
+
]);
|
|
125
|
+
let [lastCollection, setLastCollection] = useState(filteredCollection);
|
|
126
|
+
let menuOpenTrigger = useRef("focus");
|
|
127
|
+
let onOpenChange = (open2) => {
|
|
128
|
+
if (props.onOpenChange) props.onOpenChange(open2, open2 ? menuOpenTrigger.current : void 0);
|
|
129
|
+
selectionManager.setFocused(open2);
|
|
130
|
+
if (!open2) selectionManager.setFocusedKey(null);
|
|
131
|
+
};
|
|
132
|
+
let triggerState = $fc909762b330b746$export$61c6a8c84e605fb6(__spreadProps(__spreadValues({}, props), {
|
|
133
|
+
onOpenChange,
|
|
134
|
+
isOpen: void 0,
|
|
135
|
+
defaultOpen: void 0
|
|
136
|
+
}));
|
|
137
|
+
let open = (focusStrategy2 = null, trigger) => {
|
|
138
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
139
|
+
if (allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) {
|
|
140
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0)
|
|
141
|
+
setShowAllItems(true);
|
|
142
|
+
menuOpenTrigger.current = trigger;
|
|
143
|
+
setFocusStrategy(focusStrategy2);
|
|
144
|
+
triggerState.open();
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
let toggle = (focusStrategy2 = null, trigger) => {
|
|
148
|
+
let displayAllItems = trigger === "manual" || trigger === "focus" && menuTrigger === "focus";
|
|
149
|
+
if (!(allowsEmptyCollection || filteredCollection.size > 0 || displayAllItems && originalCollection.size > 0 || props.items) && !triggerState.isOpen) return;
|
|
150
|
+
if (displayAllItems && !triggerState.isOpen && props.items === void 0)
|
|
151
|
+
setShowAllItems(true);
|
|
152
|
+
if (!triggerState.isOpen) menuOpenTrigger.current = trigger;
|
|
153
|
+
toggleMenu(focusStrategy2);
|
|
154
|
+
};
|
|
155
|
+
let updateLastCollection = useCallback(() => {
|
|
156
|
+
setLastCollection(showAllItems ? originalCollection : filteredCollection);
|
|
157
|
+
}, [
|
|
158
|
+
showAllItems,
|
|
159
|
+
originalCollection,
|
|
160
|
+
filteredCollection
|
|
161
|
+
]);
|
|
162
|
+
let toggleMenu = useCallback((focusStrategy2 = null) => {
|
|
163
|
+
if (triggerState.isOpen) updateLastCollection();
|
|
164
|
+
setFocusStrategy(focusStrategy2);
|
|
165
|
+
triggerState.toggle();
|
|
166
|
+
}, [
|
|
167
|
+
triggerState,
|
|
168
|
+
updateLastCollection
|
|
169
|
+
]);
|
|
170
|
+
let closeMenu = useCallback(() => {
|
|
171
|
+
if (triggerState.isOpen) {
|
|
172
|
+
updateLastCollection();
|
|
173
|
+
triggerState.close();
|
|
174
|
+
}
|
|
175
|
+
}, [
|
|
176
|
+
triggerState,
|
|
177
|
+
updateLastCollection
|
|
178
|
+
]);
|
|
179
|
+
let [lastValue, setLastValue] = useState(inputValue);
|
|
180
|
+
let resetInputValue = () => {
|
|
181
|
+
var _collection_getItem2;
|
|
182
|
+
var _collection_getItem_textValue2;
|
|
183
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
184
|
+
setLastValue(itemText);
|
|
185
|
+
setInputValue(itemText);
|
|
186
|
+
};
|
|
187
|
+
var _props_selectedKey, _ref;
|
|
188
|
+
let lastSelectedKey = useRef((_ref = (_props_selectedKey = props.selectedKey) !== null && _props_selectedKey !== void 0 ? _props_selectedKey : props.defaultSelectedKey) !== null && _ref !== void 0 ? _ref : null);
|
|
189
|
+
var _collection_getItem_textValue1;
|
|
190
|
+
let lastSelectedKeyText = useRef(selectedKey != null ? (_collection_getItem_textValue1 = (_collection_getItem = collection.getItem(selectedKey)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.textValue) !== null && _collection_getItem_textValue1 !== void 0 ? _collection_getItem_textValue1 : "" : "");
|
|
191
|
+
useEffect(() => {
|
|
192
|
+
var _collection_getItem2;
|
|
193
|
+
if (isFocused && (filteredCollection.size > 0 || allowsEmptyCollection) && !triggerState.isOpen && inputValue !== lastValue && menuTrigger !== "manual") open(null, "input");
|
|
194
|
+
if (!showAllItems && !allowsEmptyCollection && triggerState.isOpen && filteredCollection.size === 0) closeMenu();
|
|
195
|
+
if (selectedKey != null && selectedKey !== lastSelectedKey.current) closeMenu();
|
|
196
|
+
if (inputValue !== lastValue) {
|
|
197
|
+
selectionManager.setFocusedKey(null);
|
|
198
|
+
setShowAllItems(false);
|
|
199
|
+
if (inputValue === "" && (props.inputValue === void 0 || props.selectedKey === void 0)) setSelectedKey(null);
|
|
200
|
+
}
|
|
201
|
+
if (selectedKey !== lastSelectedKey.current && (props.inputValue === void 0 || props.selectedKey === void 0)) resetInputValue();
|
|
202
|
+
else if (lastValue !== inputValue) setLastValue(inputValue);
|
|
203
|
+
var _collection_getItem_textValue2;
|
|
204
|
+
let selectedItemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
205
|
+
if (!isFocused && selectedKey != null && props.inputValue === void 0 && selectedKey === lastSelectedKey.current) {
|
|
206
|
+
if (lastSelectedKeyText.current !== selectedItemText) {
|
|
207
|
+
setLastValue(selectedItemText);
|
|
208
|
+
setInputValue(selectedItemText);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
lastSelectedKey.current = selectedKey;
|
|
212
|
+
lastSelectedKeyText.current = selectedItemText;
|
|
213
|
+
});
|
|
214
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10(__spreadProps(__spreadValues({}, props), {
|
|
215
|
+
value: useMemo(() => ({
|
|
216
|
+
inputValue,
|
|
217
|
+
selectedKey
|
|
218
|
+
}), [
|
|
219
|
+
inputValue,
|
|
220
|
+
selectedKey
|
|
221
|
+
])
|
|
222
|
+
}));
|
|
223
|
+
let revert = () => {
|
|
224
|
+
if (allowsCustomValue && selectedKey == null) commitCustomValue();
|
|
225
|
+
else commitSelection();
|
|
226
|
+
};
|
|
227
|
+
let commitCustomValue = () => {
|
|
228
|
+
lastSelectedKey.current = null;
|
|
229
|
+
setSelectedKey(null);
|
|
230
|
+
closeMenu();
|
|
231
|
+
};
|
|
232
|
+
let commitSelection = () => {
|
|
233
|
+
if (props.selectedKey !== void 0 && props.inputValue !== void 0) {
|
|
234
|
+
var _props_onSelectionChange, _collection_getItem2;
|
|
235
|
+
(_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 ? void 0 : _props_onSelectionChange.call(props, selectedKey);
|
|
236
|
+
var _collection_getItem_textValue2;
|
|
237
|
+
let itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
238
|
+
setLastValue(itemText);
|
|
239
|
+
closeMenu();
|
|
240
|
+
} else {
|
|
241
|
+
resetInputValue();
|
|
242
|
+
closeMenu();
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const commitValue = () => {
|
|
246
|
+
if (allowsCustomValue) {
|
|
247
|
+
var _collection_getItem2;
|
|
248
|
+
var _collection_getItem_textValue2;
|
|
249
|
+
const itemText = selectedKey != null ? (_collection_getItem_textValue2 = (_collection_getItem2 = collection.getItem(selectedKey)) === null || _collection_getItem2 === void 0 ? void 0 : _collection_getItem2.textValue) !== null && _collection_getItem_textValue2 !== void 0 ? _collection_getItem_textValue2 : "" : "";
|
|
250
|
+
inputValue === itemText ? commitSelection() : commitCustomValue();
|
|
251
|
+
} else
|
|
252
|
+
commitSelection();
|
|
253
|
+
};
|
|
254
|
+
let commit = () => {
|
|
255
|
+
if (triggerState.isOpen && selectionManager.focusedKey != null) {
|
|
256
|
+
if (selectedKey === selectionManager.focusedKey) commitSelection();
|
|
257
|
+
else setSelectedKey(selectionManager.focusedKey);
|
|
258
|
+
} else commitValue();
|
|
259
|
+
};
|
|
260
|
+
let valueOnFocus = useRef(inputValue);
|
|
261
|
+
let setFocused = (isFocused2) => {
|
|
262
|
+
if (isFocused2) {
|
|
263
|
+
valueOnFocus.current = inputValue;
|
|
264
|
+
if (menuTrigger === "focus" && !props.isReadOnly) open(null, "focus");
|
|
265
|
+
} else {
|
|
266
|
+
if (shouldCloseOnBlur) commitValue();
|
|
267
|
+
if (inputValue !== valueOnFocus.current) validation.commitValidation();
|
|
268
|
+
}
|
|
269
|
+
setFocusedState(isFocused2);
|
|
270
|
+
};
|
|
271
|
+
let displayedCollection = useMemo(() => {
|
|
272
|
+
if (triggerState.isOpen) {
|
|
273
|
+
if (showAllItems) return originalCollection;
|
|
274
|
+
else return filteredCollection;
|
|
275
|
+
} else return lastCollection;
|
|
276
|
+
}, [
|
|
277
|
+
triggerState.isOpen,
|
|
278
|
+
originalCollection,
|
|
279
|
+
filteredCollection,
|
|
280
|
+
showAllItems,
|
|
281
|
+
lastCollection
|
|
282
|
+
]);
|
|
283
|
+
return __spreadProps(__spreadValues(__spreadValues({}, validation), triggerState), {
|
|
284
|
+
focusStrategy,
|
|
285
|
+
toggle,
|
|
286
|
+
open,
|
|
287
|
+
close: commitValue,
|
|
288
|
+
selectionManager,
|
|
289
|
+
selectedKey,
|
|
290
|
+
setSelectedKey,
|
|
291
|
+
disabledKeys,
|
|
292
|
+
isFocused,
|
|
293
|
+
setFocused,
|
|
294
|
+
selectedItem,
|
|
295
|
+
collection: displayedCollection,
|
|
296
|
+
inputValue,
|
|
297
|
+
setInputValue,
|
|
298
|
+
commit,
|
|
299
|
+
revert
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function $a9e7382a7d111cb5$var$filterCollection(collection, inputValue, filter) {
|
|
303
|
+
return new $a02d57049d202695$export$d085fb9e920b5ca7($a9e7382a7d111cb5$var$filterNodes(collection, collection, inputValue, filter));
|
|
304
|
+
}
|
|
305
|
+
function $a9e7382a7d111cb5$var$filterNodes(collection, nodes, inputValue, filter) {
|
|
306
|
+
let filteredNode = [];
|
|
307
|
+
for (let node of nodes) {
|
|
308
|
+
if (node.type === "section" && node.hasChildNodes) {
|
|
309
|
+
let filtered = $a9e7382a7d111cb5$var$filterNodes(collection, $c5a24bc478652b5f$export$1005530eda016c13(node, collection), inputValue, filter);
|
|
310
|
+
if ([
|
|
311
|
+
...filtered
|
|
312
|
+
].some((node2) => node2.type === "item")) filteredNode.push(__spreadProps(__spreadValues({}, node), {
|
|
313
|
+
childNodes: filtered
|
|
314
|
+
}));
|
|
315
|
+
} else if (node.type === "item" && filter(node.textValue, inputValue)) filteredNode.push(__spreadValues({}, node));
|
|
316
|
+
else if (node.type !== "item") filteredNode.push(__spreadValues({}, node));
|
|
317
|
+
}
|
|
318
|
+
return filteredNode;
|
|
319
|
+
}
|
|
320
|
+
function $f86e6c1ec7da6ebb$var$reducer(data, action) {
|
|
321
|
+
let selectedKeys;
|
|
322
|
+
switch (data.state) {
|
|
323
|
+
case "idle":
|
|
324
|
+
case "error":
|
|
325
|
+
switch (action.type) {
|
|
326
|
+
case "loading":
|
|
327
|
+
case "loadingMore":
|
|
328
|
+
case "sorting":
|
|
329
|
+
case "filtering":
|
|
330
|
+
var _action_filterText, _action_sortDescriptor;
|
|
331
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
332
|
+
filterText: (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText,
|
|
333
|
+
state: action.type,
|
|
334
|
+
// Reset items to an empty list if loading, but not when sorting.
|
|
335
|
+
items: action.type === "loading" ? [] : data.items,
|
|
336
|
+
sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,
|
|
337
|
+
abortController: action.abortController
|
|
338
|
+
});
|
|
339
|
+
case "update":
|
|
340
|
+
var _action_updater;
|
|
341
|
+
return __spreadValues(__spreadValues({}, data), (_action_updater = action.updater) === null || _action_updater === void 0 ? void 0 : _action_updater.call(action, data));
|
|
342
|
+
case "success":
|
|
343
|
+
case "error":
|
|
344
|
+
return data;
|
|
345
|
+
default:
|
|
346
|
+
throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
|
|
347
|
+
}
|
|
348
|
+
case "loading":
|
|
349
|
+
case "sorting":
|
|
350
|
+
case "filtering":
|
|
351
|
+
switch (action.type) {
|
|
352
|
+
case "success":
|
|
353
|
+
if (action.abortController !== data.abortController) return data;
|
|
354
|
+
var _action_selectedKeys;
|
|
355
|
+
selectedKeys = (_action_selectedKeys = action.selectedKeys) !== null && _action_selectedKeys !== void 0 ? _action_selectedKeys : data.selectedKeys;
|
|
356
|
+
var _action_filterText1, _action_items, _action_sortDescriptor1;
|
|
357
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
358
|
+
filterText: (_action_filterText1 = action.filterText) !== null && _action_filterText1 !== void 0 ? _action_filterText1 : data.filterText,
|
|
359
|
+
state: "idle",
|
|
360
|
+
items: [
|
|
361
|
+
...(_action_items = action.items) !== null && _action_items !== void 0 ? _action_items : []
|
|
362
|
+
],
|
|
363
|
+
selectedKeys: selectedKeys === "all" ? "all" : new Set(selectedKeys),
|
|
364
|
+
sortDescriptor: (_action_sortDescriptor1 = action.sortDescriptor) !== null && _action_sortDescriptor1 !== void 0 ? _action_sortDescriptor1 : data.sortDescriptor,
|
|
365
|
+
abortController: void 0,
|
|
366
|
+
cursor: action.cursor
|
|
367
|
+
});
|
|
368
|
+
case "error":
|
|
369
|
+
if (action.abortController !== data.abortController) return data;
|
|
370
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
371
|
+
state: "error",
|
|
372
|
+
error: action.error,
|
|
373
|
+
abortController: void 0
|
|
374
|
+
});
|
|
375
|
+
case "loading":
|
|
376
|
+
case "loadingMore":
|
|
377
|
+
case "sorting":
|
|
378
|
+
case "filtering":
|
|
379
|
+
var _data_abortController;
|
|
380
|
+
(_data_abortController = data.abortController) === null || _data_abortController === void 0 ? void 0 : _data_abortController.abort();
|
|
381
|
+
var _action_filterText2;
|
|
382
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
383
|
+
filterText: (_action_filterText2 = action.filterText) !== null && _action_filterText2 !== void 0 ? _action_filterText2 : data.filterText,
|
|
384
|
+
state: action.type,
|
|
385
|
+
// Reset items to an empty list if loading, but not when sorting.
|
|
386
|
+
items: action.type === "loading" ? [] : data.items,
|
|
387
|
+
abortController: action.abortController
|
|
388
|
+
});
|
|
389
|
+
case "update":
|
|
390
|
+
var _action_updater1;
|
|
391
|
+
return __spreadValues(__spreadValues({}, data), (_action_updater1 = action.updater) === null || _action_updater1 === void 0 ? void 0 : _action_updater1.call(action, data));
|
|
392
|
+
default:
|
|
393
|
+
throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
|
|
394
|
+
}
|
|
395
|
+
case "loadingMore":
|
|
396
|
+
switch (action.type) {
|
|
397
|
+
case "success":
|
|
398
|
+
var _action_selectedKeys1;
|
|
399
|
+
selectedKeys = data.selectedKeys === "all" || action.selectedKeys === "all" ? "all" : /* @__PURE__ */ new Set([
|
|
400
|
+
...data.selectedKeys,
|
|
401
|
+
...(_action_selectedKeys1 = action.selectedKeys) !== null && _action_selectedKeys1 !== void 0 ? _action_selectedKeys1 : []
|
|
402
|
+
]);
|
|
403
|
+
var _action_items1, _action_sortDescriptor2;
|
|
404
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
405
|
+
state: "idle",
|
|
406
|
+
items: [
|
|
407
|
+
...data.items,
|
|
408
|
+
...(_action_items1 = action.items) !== null && _action_items1 !== void 0 ? _action_items1 : []
|
|
409
|
+
],
|
|
410
|
+
selectedKeys,
|
|
411
|
+
sortDescriptor: (_action_sortDescriptor2 = action.sortDescriptor) !== null && _action_sortDescriptor2 !== void 0 ? _action_sortDescriptor2 : data.sortDescriptor,
|
|
412
|
+
abortController: void 0,
|
|
413
|
+
cursor: action.cursor
|
|
414
|
+
});
|
|
415
|
+
case "error":
|
|
416
|
+
if (action.abortController !== data.abortController) return data;
|
|
417
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
418
|
+
state: "error",
|
|
419
|
+
error: action.error
|
|
420
|
+
});
|
|
421
|
+
case "loading":
|
|
422
|
+
case "sorting":
|
|
423
|
+
case "filtering":
|
|
424
|
+
var _data_abortController1;
|
|
425
|
+
(_data_abortController1 = data.abortController) === null || _data_abortController1 === void 0 ? void 0 : _data_abortController1.abort();
|
|
426
|
+
var _action_filterText3;
|
|
427
|
+
return __spreadProps(__spreadValues({}, data), {
|
|
428
|
+
filterText: (_action_filterText3 = action.filterText) !== null && _action_filterText3 !== void 0 ? _action_filterText3 : data.filterText,
|
|
429
|
+
state: action.type,
|
|
430
|
+
// Reset items to an empty list if loading, but not when sorting.
|
|
431
|
+
items: action.type === "loading" ? [] : data.items,
|
|
432
|
+
abortController: action.abortController
|
|
433
|
+
});
|
|
434
|
+
case "loadingMore":
|
|
435
|
+
var _action_abortController;
|
|
436
|
+
(_action_abortController = action.abortController) === null || _action_abortController === void 0 ? void 0 : _action_abortController.abort();
|
|
437
|
+
return data;
|
|
438
|
+
case "update":
|
|
439
|
+
var _action_updater2;
|
|
440
|
+
return __spreadValues(__spreadValues({}, data), (_action_updater2 = action.updater) === null || _action_updater2 === void 0 ? void 0 : _action_updater2.call(action, data));
|
|
441
|
+
default:
|
|
442
|
+
throw new Error(`Invalid action "${action.type}" in state "${data.state}"`);
|
|
443
|
+
}
|
|
444
|
+
default:
|
|
445
|
+
throw new Error(`Invalid state "${data.state}"`);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
449
|
+
const { load, sort, initialSelectedKeys, initialSortDescriptor, getKey = (item) => item.id || item.key, initialFilterText = "" } = options;
|
|
450
|
+
let [data, dispatch] = useReducer($f86e6c1ec7da6ebb$var$reducer, {
|
|
451
|
+
state: "idle",
|
|
452
|
+
error: void 0,
|
|
453
|
+
items: [],
|
|
454
|
+
selectedKeys: initialSelectedKeys === "all" ? "all" : new Set(initialSelectedKeys),
|
|
455
|
+
sortDescriptor: initialSortDescriptor,
|
|
456
|
+
filterText: initialFilterText
|
|
457
|
+
});
|
|
458
|
+
const dispatchFetch = (action, fn) => __async(this, null, function* () {
|
|
459
|
+
let abortController = new AbortController();
|
|
460
|
+
try {
|
|
461
|
+
dispatch(__spreadProps(__spreadValues({}, action), {
|
|
462
|
+
abortController
|
|
463
|
+
}));
|
|
464
|
+
var _action_filterText;
|
|
465
|
+
let previousFilterText = (_action_filterText = action.filterText) !== null && _action_filterText !== void 0 ? _action_filterText : data.filterText;
|
|
466
|
+
var _action_sortDescriptor;
|
|
467
|
+
let response = yield fn({
|
|
468
|
+
items: data.items.slice(),
|
|
469
|
+
selectedKeys: data.selectedKeys,
|
|
470
|
+
sortDescriptor: (_action_sortDescriptor = action.sortDescriptor) !== null && _action_sortDescriptor !== void 0 ? _action_sortDescriptor : data.sortDescriptor,
|
|
471
|
+
signal: abortController.signal,
|
|
472
|
+
cursor: action.type === "loadingMore" ? data.cursor : void 0,
|
|
473
|
+
filterText: previousFilterText
|
|
474
|
+
});
|
|
475
|
+
var _response_filterText;
|
|
476
|
+
let filterText = (_response_filterText = response.filterText) !== null && _response_filterText !== void 0 ? _response_filterText : previousFilterText;
|
|
477
|
+
dispatch(__spreadProps(__spreadValues({
|
|
478
|
+
type: "success"
|
|
479
|
+
}, response), {
|
|
480
|
+
abortController
|
|
481
|
+
}));
|
|
482
|
+
if (filterText && filterText !== previousFilterText && !abortController.signal.aborted) dispatchFetch({
|
|
483
|
+
type: "filtering",
|
|
484
|
+
filterText
|
|
485
|
+
}, load);
|
|
486
|
+
} catch (e) {
|
|
487
|
+
dispatch({
|
|
488
|
+
type: "error",
|
|
489
|
+
error: e,
|
|
490
|
+
abortController
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
let didDispatchInitialFetch = useRef(false);
|
|
495
|
+
useEffect(() => {
|
|
496
|
+
if (!didDispatchInitialFetch.current) {
|
|
497
|
+
dispatchFetch({
|
|
498
|
+
type: "loading"
|
|
499
|
+
}, load);
|
|
500
|
+
didDispatchInitialFetch.current = true;
|
|
501
|
+
}
|
|
502
|
+
}, []);
|
|
503
|
+
return __spreadProps(__spreadValues({
|
|
504
|
+
items: data.items,
|
|
505
|
+
selectedKeys: data.selectedKeys,
|
|
506
|
+
sortDescriptor: data.sortDescriptor,
|
|
507
|
+
isLoading: data.state === "loading" || data.state === "loadingMore" || data.state === "sorting" || data.state === "filtering",
|
|
508
|
+
loadingState: data.state,
|
|
509
|
+
error: data.error,
|
|
510
|
+
filterText: data.filterText,
|
|
511
|
+
getItem(key) {
|
|
512
|
+
return data.items.find((item) => getKey(item) === key);
|
|
513
|
+
},
|
|
514
|
+
reload() {
|
|
515
|
+
dispatchFetch({
|
|
516
|
+
type: "loading"
|
|
517
|
+
}, load);
|
|
518
|
+
},
|
|
519
|
+
loadMore() {
|
|
520
|
+
if (data.state === "loadingMore" || data.state === "filtering" || data.cursor == null) return;
|
|
521
|
+
dispatchFetch({
|
|
522
|
+
type: "loadingMore"
|
|
523
|
+
}, load);
|
|
524
|
+
},
|
|
525
|
+
sort(sortDescriptor) {
|
|
526
|
+
dispatchFetch({
|
|
527
|
+
type: "sorting",
|
|
528
|
+
sortDescriptor
|
|
529
|
+
}, sort || load);
|
|
530
|
+
}
|
|
531
|
+
}, $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(__spreadProps(__spreadValues({}, options), {
|
|
532
|
+
getKey,
|
|
533
|
+
cursor: data.cursor
|
|
534
|
+
}), (fn) => {
|
|
535
|
+
dispatch({
|
|
536
|
+
type: "update",
|
|
537
|
+
updater: fn
|
|
538
|
+
});
|
|
539
|
+
})), {
|
|
540
|
+
setFilterText(filterText) {
|
|
541
|
+
dispatchFetch({
|
|
542
|
+
type: "filtering",
|
|
543
|
+
filterText
|
|
544
|
+
}, load);
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
var $02cb4c75c506befe$exports = {};
|
|
549
|
+
$02cb4c75c506befe$exports = {
|
|
550
|
+
"buttonLabel": `عرض المقترحات`,
|
|
551
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
552
|
+
one: () => `${formatter.number(args.optionCount)} خيار`,
|
|
553
|
+
other: () => `${formatter.number(args.optionCount)} خيارات`
|
|
554
|
+
})} متاحة.`,
|
|
555
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
556
|
+
true: () => `المجموعة المدخلة ${args.groupTitle}, مع ${formatter.plural(args.groupCount, {
|
|
557
|
+
one: () => `${formatter.number(args.groupCount)} خيار`,
|
|
558
|
+
other: () => `${formatter.number(args.groupCount)} خيارات`
|
|
559
|
+
})}. `,
|
|
560
|
+
other: ``
|
|
561
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
562
|
+
true: `, محدد`,
|
|
563
|
+
other: ``
|
|
564
|
+
}, args.isSelected)}`,
|
|
565
|
+
"listboxLabel": `مقترحات`,
|
|
566
|
+
"selectedAnnouncement": (args) => `${args.optionText}، محدد`
|
|
567
|
+
};
|
|
568
|
+
var $568b8163f1e56faf$exports = {};
|
|
569
|
+
$568b8163f1e56faf$exports = {
|
|
570
|
+
"buttonLabel": `Покажи предложения`,
|
|
571
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
572
|
+
one: () => `${formatter.number(args.optionCount)} опция`,
|
|
573
|
+
other: () => `${formatter.number(args.optionCount)} опции`
|
|
574
|
+
})} на разположение.`,
|
|
575
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
576
|
+
true: () => `Въведена група ${args.groupTitle}, с ${formatter.plural(args.groupCount, {
|
|
577
|
+
one: () => `${formatter.number(args.groupCount)} опция`,
|
|
578
|
+
other: () => `${formatter.number(args.groupCount)} опции`
|
|
579
|
+
})}. `,
|
|
580
|
+
other: ``
|
|
581
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
582
|
+
true: `, избрани`,
|
|
583
|
+
other: ``
|
|
584
|
+
}, args.isSelected)}`,
|
|
585
|
+
"listboxLabel": `Предложения`,
|
|
586
|
+
"selectedAnnouncement": (args) => `${args.optionText}, избрани`
|
|
587
|
+
};
|
|
588
|
+
var $87581c0202d106b8$exports = {};
|
|
589
|
+
$87581c0202d106b8$exports = {
|
|
590
|
+
"buttonLabel": `Zobrazit doporučení`,
|
|
591
|
+
"countAnnouncement": (args, formatter) => `K dispozici ${formatter.plural(args.optionCount, {
|
|
592
|
+
one: () => `je ${formatter.number(args.optionCount)} možnost`,
|
|
593
|
+
other: () => `jsou/je ${formatter.number(args.optionCount)} možnosti/-í`
|
|
594
|
+
})}.`,
|
|
595
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
596
|
+
true: () => `Zadaná skupina „${args.groupTitle}“ ${formatter.plural(args.groupCount, {
|
|
597
|
+
one: () => `s ${formatter.number(args.groupCount)} možností`,
|
|
598
|
+
other: () => `se ${formatter.number(args.groupCount)} možnostmi`
|
|
599
|
+
})}. `,
|
|
600
|
+
other: ``
|
|
601
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
602
|
+
true: ` (vybráno)`,
|
|
603
|
+
other: ``
|
|
604
|
+
}, args.isSelected)}`,
|
|
605
|
+
"listboxLabel": `Návrhy`,
|
|
606
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybráno`
|
|
607
|
+
};
|
|
608
|
+
var $a10a0369f5433ed1$exports = {};
|
|
609
|
+
$a10a0369f5433ed1$exports = {
|
|
610
|
+
"buttonLabel": `Vis forslag`,
|
|
611
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
612
|
+
one: () => `${formatter.number(args.optionCount)} mulighed tilgængelig`,
|
|
613
|
+
other: () => `${formatter.number(args.optionCount)} muligheder tilgængelige`
|
|
614
|
+
})}.`,
|
|
615
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
616
|
+
true: () => `Angivet gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
617
|
+
one: () => `${formatter.number(args.groupCount)} mulighed`,
|
|
618
|
+
other: () => `${formatter.number(args.groupCount)} muligheder`
|
|
619
|
+
})}. `,
|
|
620
|
+
other: ``
|
|
621
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
622
|
+
true: `, valgt`,
|
|
623
|
+
other: ``
|
|
624
|
+
}, args.isSelected)}`,
|
|
625
|
+
"listboxLabel": `Forslag`,
|
|
626
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
627
|
+
};
|
|
628
|
+
var $bfd288727d5cb166$exports = {};
|
|
629
|
+
$bfd288727d5cb166$exports = {
|
|
630
|
+
"buttonLabel": `Empfehlungen anzeigen`,
|
|
631
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
632
|
+
one: () => `${formatter.number(args.optionCount)} Option`,
|
|
633
|
+
other: () => `${formatter.number(args.optionCount)} Optionen`
|
|
634
|
+
})} verfügbar.`,
|
|
635
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
636
|
+
true: () => `Eingetretene Gruppe ${args.groupTitle}, mit ${formatter.plural(args.groupCount, {
|
|
637
|
+
one: () => `${formatter.number(args.groupCount)} Option`,
|
|
638
|
+
other: () => `${formatter.number(args.groupCount)} Optionen`
|
|
639
|
+
})}. `,
|
|
640
|
+
other: ``
|
|
641
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
642
|
+
true: `, ausgewählt`,
|
|
643
|
+
other: ``
|
|
644
|
+
}, args.isSelected)}`,
|
|
645
|
+
"listboxLabel": `Empfehlungen`,
|
|
646
|
+
"selectedAnnouncement": (args) => `${args.optionText}, ausgewählt`
|
|
647
|
+
};
|
|
648
|
+
var $ca177778f9a74e3c$exports = {};
|
|
649
|
+
$ca177778f9a74e3c$exports = {
|
|
650
|
+
"buttonLabel": `Προβολή προτάσεων`,
|
|
651
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
652
|
+
one: () => `${formatter.number(args.optionCount)} επιλογή`,
|
|
653
|
+
other: () => `${formatter.number(args.optionCount)} επιλογές `
|
|
654
|
+
})} διαθέσιμες.`,
|
|
655
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
656
|
+
true: () => `Εισαγμένη ομάδα ${args.groupTitle}, με ${formatter.plural(args.groupCount, {
|
|
657
|
+
one: () => `${formatter.number(args.groupCount)} επιλογή`,
|
|
658
|
+
other: () => `${formatter.number(args.groupCount)} επιλογές`
|
|
659
|
+
})}. `,
|
|
660
|
+
other: ``
|
|
661
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
662
|
+
true: `, επιλεγμένο`,
|
|
663
|
+
other: ``
|
|
664
|
+
}, args.isSelected)}`,
|
|
665
|
+
"listboxLabel": `Προτάσεις`,
|
|
666
|
+
"selectedAnnouncement": (args) => `${args.optionText}, επιλέχθηκε`
|
|
667
|
+
};
|
|
668
|
+
var $9b5aa79ef84beb6c$exports = {};
|
|
669
|
+
$9b5aa79ef84beb6c$exports = {
|
|
670
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
671
|
+
true: () => `Entered group ${args.groupTitle}, with ${formatter.plural(args.groupCount, {
|
|
672
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
673
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
674
|
+
})}. `,
|
|
675
|
+
other: ``
|
|
676
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
677
|
+
true: `, selected`,
|
|
678
|
+
other: ``
|
|
679
|
+
}, args.isSelected)}`,
|
|
680
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
681
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
682
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
683
|
+
})} available.`,
|
|
684
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selected`,
|
|
685
|
+
"buttonLabel": `Show suggestions`,
|
|
686
|
+
"listboxLabel": `Suggestions`
|
|
687
|
+
};
|
|
688
|
+
var $57968e8209de2557$exports = {};
|
|
689
|
+
$57968e8209de2557$exports = {
|
|
690
|
+
"buttonLabel": `Mostrar sugerencias`,
|
|
691
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
692
|
+
one: () => `${formatter.number(args.optionCount)} opción`,
|
|
693
|
+
other: () => `${formatter.number(args.optionCount)} opciones`
|
|
694
|
+
})} disponible(s).`,
|
|
695
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
696
|
+
true: () => `Se ha unido al grupo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
697
|
+
one: () => `${formatter.number(args.groupCount)} opción`,
|
|
698
|
+
other: () => `${formatter.number(args.groupCount)} opciones`
|
|
699
|
+
})}. `,
|
|
700
|
+
other: ``
|
|
701
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
702
|
+
true: `, seleccionado`,
|
|
703
|
+
other: ``
|
|
704
|
+
}, args.isSelected)}`,
|
|
705
|
+
"listboxLabel": `Sugerencias`,
|
|
706
|
+
"selectedAnnouncement": (args) => `${args.optionText}, seleccionado`
|
|
707
|
+
};
|
|
708
|
+
var $60690790bf4c1c6a$exports = {};
|
|
709
|
+
$60690790bf4c1c6a$exports = {
|
|
710
|
+
"buttonLabel": `Kuva soovitused`,
|
|
711
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
712
|
+
one: () => `${formatter.number(args.optionCount)} valik`,
|
|
713
|
+
other: () => `${formatter.number(args.optionCount)} valikud`
|
|
714
|
+
})} saadaval.`,
|
|
715
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
716
|
+
true: () => `Sisestatud rühm ${args.groupTitle}, valikuga ${formatter.plural(args.groupCount, {
|
|
717
|
+
one: () => `${formatter.number(args.groupCount)} valik`,
|
|
718
|
+
other: () => `${formatter.number(args.groupCount)} valikud`
|
|
719
|
+
})}. `,
|
|
720
|
+
other: ``
|
|
721
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
722
|
+
true: `, valitud`,
|
|
723
|
+
other: ``
|
|
724
|
+
}, args.isSelected)}`,
|
|
725
|
+
"listboxLabel": `Soovitused`,
|
|
726
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valitud`
|
|
727
|
+
};
|
|
728
|
+
var $1101246e8c7d9357$exports = {};
|
|
729
|
+
$1101246e8c7d9357$exports = {
|
|
730
|
+
"buttonLabel": `Näytä ehdotukset`,
|
|
731
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
732
|
+
one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
|
|
733
|
+
other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
|
|
734
|
+
})} saatavilla.`,
|
|
735
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
736
|
+
true: () => `Mentiin ryhmään ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
737
|
+
one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
|
|
738
|
+
other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
|
|
739
|
+
})} kanssa.`,
|
|
740
|
+
other: ``
|
|
741
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
742
|
+
true: `, valittu`,
|
|
743
|
+
other: ``
|
|
744
|
+
}, args.isSelected)}`,
|
|
745
|
+
"listboxLabel": `Ehdotukset`,
|
|
746
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valittu`
|
|
747
|
+
};
|
|
748
|
+
var $6404b5cb5b241730$exports = {};
|
|
749
|
+
$6404b5cb5b241730$exports = {
|
|
750
|
+
"buttonLabel": `Afficher les suggestions`,
|
|
751
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
752
|
+
one: () => `${formatter.number(args.optionCount)} option`,
|
|
753
|
+
other: () => `${formatter.number(args.optionCount)} options`
|
|
754
|
+
})} disponible(s).`,
|
|
755
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
756
|
+
true: () => `Groupe ${args.groupTitle} rejoint, avec ${formatter.plural(args.groupCount, {
|
|
757
|
+
one: () => `${formatter.number(args.groupCount)} option`,
|
|
758
|
+
other: () => `${formatter.number(args.groupCount)} options`
|
|
759
|
+
})}. `,
|
|
760
|
+
other: ``
|
|
761
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
762
|
+
true: `, sélectionné(s)`,
|
|
763
|
+
other: ``
|
|
764
|
+
}, args.isSelected)}`,
|
|
765
|
+
"listboxLabel": `Suggestions`,
|
|
766
|
+
"selectedAnnouncement": (args) => `${args.optionText}, sélectionné`
|
|
767
|
+
};
|
|
768
|
+
var $dfeafa702e92e31f$exports = {};
|
|
769
|
+
$dfeafa702e92e31f$exports = {
|
|
770
|
+
"buttonLabel": `הצג הצעות`,
|
|
771
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
772
|
+
one: () => `אפשרות ${formatter.number(args.optionCount)}`,
|
|
773
|
+
other: () => `${formatter.number(args.optionCount)} אפשרויות`
|
|
774
|
+
})} במצב זמין.`,
|
|
775
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
776
|
+
true: () => `נכנס לקבוצה ${args.groupTitle}, עם ${formatter.plural(args.groupCount, {
|
|
777
|
+
one: () => `אפשרות ${formatter.number(args.groupCount)}`,
|
|
778
|
+
other: () => `${formatter.number(args.groupCount)} אפשרויות`
|
|
779
|
+
})}. `,
|
|
780
|
+
other: ``
|
|
781
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
782
|
+
true: `, נבחר`,
|
|
783
|
+
other: ``
|
|
784
|
+
}, args.isSelected)}`,
|
|
785
|
+
"listboxLabel": `הצעות`,
|
|
786
|
+
"selectedAnnouncement": (args) => `${args.optionText}, נבחר`
|
|
787
|
+
};
|
|
788
|
+
var $2d125e0b34676352$exports = {};
|
|
789
|
+
$2d125e0b34676352$exports = {
|
|
790
|
+
"buttonLabel": `Prikaži prijedloge`,
|
|
791
|
+
"countAnnouncement": (args, formatter) => `Dostupno još: ${formatter.plural(args.optionCount, {
|
|
792
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
793
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
794
|
+
})}.`,
|
|
795
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
796
|
+
true: () => `Unesena skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
797
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
798
|
+
other: () => `${formatter.number(args.groupCount)} opcije/a`
|
|
799
|
+
})}. `,
|
|
800
|
+
other: ``
|
|
801
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
802
|
+
true: `, odabranih`,
|
|
803
|
+
other: ``
|
|
804
|
+
}, args.isSelected)}`,
|
|
805
|
+
"listboxLabel": `Prijedlozi`,
|
|
806
|
+
"selectedAnnouncement": (args) => `${args.optionText}, odabrano`
|
|
807
|
+
};
|
|
808
|
+
var $ea029611d7634059$exports = {};
|
|
809
|
+
$ea029611d7634059$exports = {
|
|
810
|
+
"buttonLabel": `Javaslatok megjelenítése`,
|
|
811
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
812
|
+
one: () => `${formatter.number(args.optionCount)} lehetőség`,
|
|
813
|
+
other: () => `${formatter.number(args.optionCount)} lehetőség`
|
|
814
|
+
})} áll rendelkezésre.`,
|
|
815
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
816
|
+
true: () => `Belépett a(z) ${args.groupTitle} csoportba, amely ${formatter.plural(args.groupCount, {
|
|
817
|
+
one: () => `${formatter.number(args.groupCount)} lehetőséget`,
|
|
818
|
+
other: () => `${formatter.number(args.groupCount)} lehetőséget`
|
|
819
|
+
})} tartalmaz. `,
|
|
820
|
+
other: ``
|
|
821
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
822
|
+
true: `, kijelölve`,
|
|
823
|
+
other: ``
|
|
824
|
+
}, args.isSelected)}`,
|
|
825
|
+
"listboxLabel": `Javaslatok`,
|
|
826
|
+
"selectedAnnouncement": (args) => `${args.optionText}, kijelölve`
|
|
827
|
+
};
|
|
828
|
+
var $77f075bb86ad7091$exports = {};
|
|
829
|
+
$77f075bb86ad7091$exports = {
|
|
830
|
+
"buttonLabel": `Mostra suggerimenti`,
|
|
831
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
832
|
+
one: () => `${formatter.number(args.optionCount)} opzione disponibile`,
|
|
833
|
+
other: () => `${formatter.number(args.optionCount)} opzioni disponibili`
|
|
834
|
+
})}.`,
|
|
835
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
836
|
+
true: () => `Ingresso nel gruppo ${args.groupTitle}, con ${formatter.plural(args.groupCount, {
|
|
837
|
+
one: () => `${formatter.number(args.groupCount)} opzione`,
|
|
838
|
+
other: () => `${formatter.number(args.groupCount)} opzioni`
|
|
839
|
+
})}. `,
|
|
840
|
+
other: ``
|
|
841
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
842
|
+
true: `, selezionato`,
|
|
843
|
+
other: ``
|
|
844
|
+
}, args.isSelected)}`,
|
|
845
|
+
"listboxLabel": `Suggerimenti`,
|
|
846
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selezionato`
|
|
847
|
+
};
|
|
848
|
+
var $6e87462e84907983$exports = {};
|
|
849
|
+
$6e87462e84907983$exports = {
|
|
850
|
+
"buttonLabel": `候補を表示`,
|
|
851
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
852
|
+
one: () => `${formatter.number(args.optionCount)} 個のオプション`,
|
|
853
|
+
other: () => `${formatter.number(args.optionCount)} 個のオプション`
|
|
854
|
+
})}を利用できます。`,
|
|
855
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
856
|
+
true: () => `入力されたグループ ${args.groupTitle}、${formatter.plural(args.groupCount, {
|
|
857
|
+
one: () => `${formatter.number(args.groupCount)} 個のオプション`,
|
|
858
|
+
other: () => `${formatter.number(args.groupCount)} 個のオプション`
|
|
859
|
+
})}を含む。`,
|
|
860
|
+
other: ``
|
|
861
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
862
|
+
true: `、選択済み`,
|
|
863
|
+
other: ``
|
|
864
|
+
}, args.isSelected)}`,
|
|
865
|
+
"listboxLabel": `候補`,
|
|
866
|
+
"selectedAnnouncement": (args) => `${args.optionText}、選択済み`
|
|
867
|
+
};
|
|
868
|
+
var $9246f2c6edc6b232$exports = {};
|
|
869
|
+
$9246f2c6edc6b232$exports = {
|
|
870
|
+
"buttonLabel": `제안 사항 표시`,
|
|
871
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
872
|
+
one: () => `${formatter.number(args.optionCount)}개 옵션`,
|
|
873
|
+
other: () => `${formatter.number(args.optionCount)}개 옵션`
|
|
874
|
+
})}을 사용할 수 있습니다.`,
|
|
875
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
876
|
+
true: () => `입력한 그룹 ${args.groupTitle}, ${formatter.plural(args.groupCount, {
|
|
877
|
+
one: () => `${formatter.number(args.groupCount)}개 옵션`,
|
|
878
|
+
other: () => `${formatter.number(args.groupCount)}개 옵션`
|
|
879
|
+
})}. `,
|
|
880
|
+
other: ``
|
|
881
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
882
|
+
true: `, 선택됨`,
|
|
883
|
+
other: ``
|
|
884
|
+
}, args.isSelected)}`,
|
|
885
|
+
"listboxLabel": `제안`,
|
|
886
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 선택됨`
|
|
887
|
+
};
|
|
888
|
+
var $e587accc6c0a434c$exports = {};
|
|
889
|
+
$e587accc6c0a434c$exports = {
|
|
890
|
+
"buttonLabel": `Rodyti pasiūlymus`,
|
|
891
|
+
"countAnnouncement": (args, formatter) => `Yra ${formatter.plural(args.optionCount, {
|
|
892
|
+
one: () => `${formatter.number(args.optionCount)} parinktis`,
|
|
893
|
+
other: () => `${formatter.number(args.optionCount)} parinktys (-ių)`
|
|
894
|
+
})}.`,
|
|
895
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
896
|
+
true: () => `Įvesta grupė ${args.groupTitle}, su ${formatter.plural(args.groupCount, {
|
|
897
|
+
one: () => `${formatter.number(args.groupCount)} parinktimi`,
|
|
898
|
+
other: () => `${formatter.number(args.groupCount)} parinktimis (-ių)`
|
|
899
|
+
})}. `,
|
|
900
|
+
other: ``
|
|
901
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
902
|
+
true: `, pasirinkta`,
|
|
903
|
+
other: ``
|
|
904
|
+
}, args.isSelected)}`,
|
|
905
|
+
"listboxLabel": `Pasiūlymai`,
|
|
906
|
+
"selectedAnnouncement": (args) => `${args.optionText}, pasirinkta`
|
|
907
|
+
};
|
|
908
|
+
var $03a1900e7400b5ab$exports = {};
|
|
909
|
+
$03a1900e7400b5ab$exports = {
|
|
910
|
+
"buttonLabel": `Rādīt ieteikumus`,
|
|
911
|
+
"countAnnouncement": (args, formatter) => `Pieejamo opciju skaits: ${formatter.plural(args.optionCount, {
|
|
912
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
913
|
+
other: () => `${formatter.number(args.optionCount)} opcijas`
|
|
914
|
+
})}.`,
|
|
915
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
916
|
+
true: () => `Ievadīta grupa ${args.groupTitle}, ar ${formatter.plural(args.groupCount, {
|
|
917
|
+
one: () => `${formatter.number(args.groupCount)} opciju`,
|
|
918
|
+
other: () => `${formatter.number(args.groupCount)} opcijām`
|
|
919
|
+
})}. `,
|
|
920
|
+
other: ``
|
|
921
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
922
|
+
true: `, atlasīta`,
|
|
923
|
+
other: ``
|
|
924
|
+
}, args.isSelected)}`,
|
|
925
|
+
"listboxLabel": `Ieteikumi`,
|
|
926
|
+
"selectedAnnouncement": (args) => `${args.optionText}, atlasīta`
|
|
927
|
+
};
|
|
928
|
+
var $1387676441be6cf6$exports = {};
|
|
929
|
+
$1387676441be6cf6$exports = {
|
|
930
|
+
"buttonLabel": `Vis forslag`,
|
|
931
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
932
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
933
|
+
other: () => `${formatter.number(args.optionCount)} alternativer`
|
|
934
|
+
})} finnes.`,
|
|
935
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
936
|
+
true: () => `Angitt gruppe ${args.groupTitle}, med ${formatter.plural(args.groupCount, {
|
|
937
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
938
|
+
other: () => `${formatter.number(args.groupCount)} alternativer`
|
|
939
|
+
})}. `,
|
|
940
|
+
other: ``
|
|
941
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
942
|
+
true: `, valgt`,
|
|
943
|
+
other: ``
|
|
944
|
+
}, args.isSelected)}`,
|
|
945
|
+
"listboxLabel": `Forslag`,
|
|
946
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valgt`
|
|
947
|
+
};
|
|
948
|
+
var $17e82ebf0f8ab91f$exports = {};
|
|
949
|
+
$17e82ebf0f8ab91f$exports = {
|
|
950
|
+
"buttonLabel": `Suggesties weergeven`,
|
|
951
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
952
|
+
one: () => `${formatter.number(args.optionCount)} optie`,
|
|
953
|
+
other: () => `${formatter.number(args.optionCount)} opties`
|
|
954
|
+
})} beschikbaar.`,
|
|
955
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
956
|
+
true: () => `Groep ${args.groupTitle} ingevoerd met ${formatter.plural(args.groupCount, {
|
|
957
|
+
one: () => `${formatter.number(args.groupCount)} optie`,
|
|
958
|
+
other: () => `${formatter.number(args.groupCount)} opties`
|
|
959
|
+
})}. `,
|
|
960
|
+
other: ``
|
|
961
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
962
|
+
true: `, geselecteerd`,
|
|
963
|
+
other: ``
|
|
964
|
+
}, args.isSelected)}`,
|
|
965
|
+
"listboxLabel": `Suggesties`,
|
|
966
|
+
"selectedAnnouncement": (args) => `${args.optionText}, geselecteerd`
|
|
967
|
+
};
|
|
968
|
+
var $2f5377d3471630e5$exports = {};
|
|
969
|
+
$2f5377d3471630e5$exports = {
|
|
970
|
+
"buttonLabel": `Wyświetlaj sugestie`,
|
|
971
|
+
"countAnnouncement": (args, formatter) => `dostępna/dostępne(-nych) ${formatter.plural(args.optionCount, {
|
|
972
|
+
one: () => `${formatter.number(args.optionCount)} opcja`,
|
|
973
|
+
other: () => `${formatter.number(args.optionCount)} opcje(-i)`
|
|
974
|
+
})}.`,
|
|
975
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
976
|
+
true: () => `Dołączono do grupy ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
977
|
+
one: () => `${formatter.number(args.groupCount)} opcją`,
|
|
978
|
+
other: () => `${formatter.number(args.groupCount)} opcjami`
|
|
979
|
+
})}. `,
|
|
980
|
+
other: ``
|
|
981
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
982
|
+
true: `, wybrano`,
|
|
983
|
+
other: ``
|
|
984
|
+
}, args.isSelected)}`,
|
|
985
|
+
"listboxLabel": `Sugestie`,
|
|
986
|
+
"selectedAnnouncement": (args) => `${args.optionText}, wybrano`
|
|
987
|
+
};
|
|
988
|
+
var $dee9868b6fa95ffe$exports = {};
|
|
989
|
+
$dee9868b6fa95ffe$exports = {
|
|
990
|
+
"buttonLabel": `Mostrar sugestões`,
|
|
991
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
992
|
+
one: () => `${formatter.number(args.optionCount)} opção`,
|
|
993
|
+
other: () => `${formatter.number(args.optionCount)} opções`
|
|
994
|
+
})} disponível.`,
|
|
995
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
996
|
+
true: () => `Grupo inserido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
997
|
+
one: () => `${formatter.number(args.groupCount)} opção`,
|
|
998
|
+
other: () => `${formatter.number(args.groupCount)} opções`
|
|
999
|
+
})}. `,
|
|
1000
|
+
other: ``
|
|
1001
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1002
|
+
true: `, selecionado`,
|
|
1003
|
+
other: ``
|
|
1004
|
+
}, args.isSelected)}`,
|
|
1005
|
+
"listboxLabel": `Sugestões`,
|
|
1006
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
1007
|
+
};
|
|
1008
|
+
var $f8b2e63637cbb5a6$exports = {};
|
|
1009
|
+
$f8b2e63637cbb5a6$exports = {
|
|
1010
|
+
"buttonLabel": `Apresentar sugestões`,
|
|
1011
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1012
|
+
one: () => `${formatter.number(args.optionCount)} opção`,
|
|
1013
|
+
other: () => `${formatter.number(args.optionCount)} opções`
|
|
1014
|
+
})} disponível.`,
|
|
1015
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1016
|
+
true: () => `Grupo introduzido ${args.groupTitle}, com ${formatter.plural(args.groupCount, {
|
|
1017
|
+
one: () => `${formatter.number(args.groupCount)} opção`,
|
|
1018
|
+
other: () => `${formatter.number(args.groupCount)} opções`
|
|
1019
|
+
})}. `,
|
|
1020
|
+
other: ``
|
|
1021
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1022
|
+
true: `, selecionado`,
|
|
1023
|
+
other: ``
|
|
1024
|
+
}, args.isSelected)}`,
|
|
1025
|
+
"listboxLabel": `Sugestões`,
|
|
1026
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selecionado`
|
|
1027
|
+
};
|
|
1028
|
+
var $46a885db3b44ea95$exports = {};
|
|
1029
|
+
$46a885db3b44ea95$exports = {
|
|
1030
|
+
"buttonLabel": `Afișare sugestii`,
|
|
1031
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1032
|
+
one: () => `${formatter.number(args.optionCount)} opțiune`,
|
|
1033
|
+
other: () => `${formatter.number(args.optionCount)} opțiuni`
|
|
1034
|
+
})} disponibile.`,
|
|
1035
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1036
|
+
true: () => `Grup ${args.groupTitle} introdus, cu ${formatter.plural(args.groupCount, {
|
|
1037
|
+
one: () => `${formatter.number(args.groupCount)} opțiune`,
|
|
1038
|
+
other: () => `${formatter.number(args.groupCount)} opțiuni`
|
|
1039
|
+
})}. `,
|
|
1040
|
+
other: ``
|
|
1041
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1042
|
+
true: `, selectat`,
|
|
1043
|
+
other: ``
|
|
1044
|
+
}, args.isSelected)}`,
|
|
1045
|
+
"listboxLabel": `Sugestii`,
|
|
1046
|
+
"selectedAnnouncement": (args) => `${args.optionText}, selectat`
|
|
1047
|
+
};
|
|
1048
|
+
var $50d8a8f0afa9dee5$exports = {};
|
|
1049
|
+
$50d8a8f0afa9dee5$exports = {
|
|
1050
|
+
"buttonLabel": `Показать предложения`,
|
|
1051
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1052
|
+
one: () => `${formatter.number(args.optionCount)} параметр`,
|
|
1053
|
+
other: () => `${formatter.number(args.optionCount)} параметров`
|
|
1054
|
+
})} доступно.`,
|
|
1055
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1056
|
+
true: () => `Введенная группа ${args.groupTitle}, с ${formatter.plural(args.groupCount, {
|
|
1057
|
+
one: () => `${formatter.number(args.groupCount)} параметром`,
|
|
1058
|
+
other: () => `${formatter.number(args.groupCount)} параметрами`
|
|
1059
|
+
})}. `,
|
|
1060
|
+
other: ``
|
|
1061
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1062
|
+
true: `, выбранными`,
|
|
1063
|
+
other: ``
|
|
1064
|
+
}, args.isSelected)}`,
|
|
1065
|
+
"listboxLabel": `Предложения`,
|
|
1066
|
+
"selectedAnnouncement": (args) => `${args.optionText}, выбрано`
|
|
1067
|
+
};
|
|
1068
|
+
var $2867ee6173245507$exports = {};
|
|
1069
|
+
$2867ee6173245507$exports = {
|
|
1070
|
+
"buttonLabel": `Zobraziť návrhy`,
|
|
1071
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1072
|
+
one: () => `${formatter.number(args.optionCount)} možnosť`,
|
|
1073
|
+
other: () => `${formatter.number(args.optionCount)} možnosti/-í`
|
|
1074
|
+
})} k dispozícii.`,
|
|
1075
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1076
|
+
true: () => `Zadaná skupina ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
1077
|
+
one: () => `${formatter.number(args.groupCount)} možnosťou`,
|
|
1078
|
+
other: () => `${formatter.number(args.groupCount)} možnosťami`
|
|
1079
|
+
})}. `,
|
|
1080
|
+
other: ``
|
|
1081
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1082
|
+
true: `, vybraté`,
|
|
1083
|
+
other: ``
|
|
1084
|
+
}, args.isSelected)}`,
|
|
1085
|
+
"listboxLabel": `Návrhy`,
|
|
1086
|
+
"selectedAnnouncement": (args) => `${args.optionText}, vybraté`
|
|
1087
|
+
};
|
|
1088
|
+
var $0631b65beeb09b50$exports = {};
|
|
1089
|
+
$0631b65beeb09b50$exports = {
|
|
1090
|
+
"buttonLabel": `Prikaži predloge`,
|
|
1091
|
+
"countAnnouncement": (args, formatter) => `Na voljo je ${formatter.plural(args.optionCount, {
|
|
1092
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
1093
|
+
other: () => `${formatter.number(args.optionCount)} opcije`
|
|
1094
|
+
})}.`,
|
|
1095
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1096
|
+
true: () => `Vnesena skupina ${args.groupTitle}, z ${formatter.plural(args.groupCount, {
|
|
1097
|
+
one: () => `${formatter.number(args.groupCount)} opcija`,
|
|
1098
|
+
other: () => `${formatter.number(args.groupCount)} opcije`
|
|
1099
|
+
})}. `,
|
|
1100
|
+
other: ``
|
|
1101
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1102
|
+
true: `, izbrano`,
|
|
1103
|
+
other: ``
|
|
1104
|
+
}, args.isSelected)}`,
|
|
1105
|
+
"listboxLabel": `Predlogi`,
|
|
1106
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izbrano`
|
|
1107
|
+
};
|
|
1108
|
+
var $65fc749265dcd686$exports = {};
|
|
1109
|
+
$65fc749265dcd686$exports = {
|
|
1110
|
+
"buttonLabel": `Prikaži predloge`,
|
|
1111
|
+
"countAnnouncement": (args, formatter) => `Dostupno još: ${formatter.plural(args.optionCount, {
|
|
1112
|
+
one: () => `${formatter.number(args.optionCount)} opcija`,
|
|
1113
|
+
other: () => `${formatter.number(args.optionCount)} opcije/a`
|
|
1114
|
+
})}.`,
|
|
1115
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1116
|
+
true: () => `Unesena grupa ${args.groupTitle}, s ${formatter.plural(args.groupCount, {
|
|
1117
|
+
one: () => `${formatter.number(args.groupCount)} opcijom`,
|
|
1118
|
+
other: () => `${formatter.number(args.groupCount)} optione/a`
|
|
1119
|
+
})}. `,
|
|
1120
|
+
other: ``
|
|
1121
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1122
|
+
true: `, izabranih`,
|
|
1123
|
+
other: ``
|
|
1124
|
+
}, args.isSelected)}`,
|
|
1125
|
+
"listboxLabel": `Predlozi`,
|
|
1126
|
+
"selectedAnnouncement": (args) => `${args.optionText}, izabrano`
|
|
1127
|
+
};
|
|
1128
|
+
var $69ba655c7853c08e$exports = {};
|
|
1129
|
+
$69ba655c7853c08e$exports = {
|
|
1130
|
+
"buttonLabel": `Visa förslag`,
|
|
1131
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1132
|
+
one: () => `${formatter.number(args.optionCount)} alternativ`,
|
|
1133
|
+
other: () => `${formatter.number(args.optionCount)} alternativ`
|
|
1134
|
+
})} tillgängliga.`,
|
|
1135
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1136
|
+
true: () => `Ingick i gruppen ${args.groupTitle} med ${formatter.plural(args.groupCount, {
|
|
1137
|
+
one: () => `${formatter.number(args.groupCount)} alternativ`,
|
|
1138
|
+
other: () => `${formatter.number(args.groupCount)} alternativ`
|
|
1139
|
+
})}. `,
|
|
1140
|
+
other: ``
|
|
1141
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1142
|
+
true: `, valda`,
|
|
1143
|
+
other: ``
|
|
1144
|
+
}, args.isSelected)}`,
|
|
1145
|
+
"listboxLabel": `Förslag`,
|
|
1146
|
+
"selectedAnnouncement": (args) => `${args.optionText}, valda`
|
|
1147
|
+
};
|
|
1148
|
+
var $a79794784d61577c$exports = {};
|
|
1149
|
+
$a79794784d61577c$exports = {
|
|
1150
|
+
"buttonLabel": `Önerileri göster`,
|
|
1151
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1152
|
+
one: () => `${formatter.number(args.optionCount)} seçenek`,
|
|
1153
|
+
other: () => `${formatter.number(args.optionCount)} seçenekler`
|
|
1154
|
+
})} kullanılabilir.`,
|
|
1155
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1156
|
+
true: () => `Girilen grup ${args.groupTitle}, ile ${formatter.plural(args.groupCount, {
|
|
1157
|
+
one: () => `${formatter.number(args.groupCount)} seçenek`,
|
|
1158
|
+
other: () => `${formatter.number(args.groupCount)} seçenekler`
|
|
1159
|
+
})}. `,
|
|
1160
|
+
other: ``
|
|
1161
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1162
|
+
true: `, seçildi`,
|
|
1163
|
+
other: ``
|
|
1164
|
+
}, args.isSelected)}`,
|
|
1165
|
+
"listboxLabel": `Öneriler`,
|
|
1166
|
+
"selectedAnnouncement": (args) => `${args.optionText}, seçildi`
|
|
1167
|
+
};
|
|
1168
|
+
var $c2845791417ebaf4$exports = {};
|
|
1169
|
+
$c2845791417ebaf4$exports = {
|
|
1170
|
+
"buttonLabel": `Показати пропозиції`,
|
|
1171
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1172
|
+
one: () => `${formatter.number(args.optionCount)} параметр`,
|
|
1173
|
+
other: () => `${formatter.number(args.optionCount)} параметри(-ів)`
|
|
1174
|
+
})} доступно.`,
|
|
1175
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1176
|
+
true: () => `Введена група ${args.groupTitle}, з ${formatter.plural(args.groupCount, {
|
|
1177
|
+
one: () => `${formatter.number(args.groupCount)} параметр`,
|
|
1178
|
+
other: () => `${formatter.number(args.groupCount)} параметри(-ів)`
|
|
1179
|
+
})}. `,
|
|
1180
|
+
other: ``
|
|
1181
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1182
|
+
true: `, вибрано`,
|
|
1183
|
+
other: ``
|
|
1184
|
+
}, args.isSelected)}`,
|
|
1185
|
+
"listboxLabel": `Пропозиції`,
|
|
1186
|
+
"selectedAnnouncement": (args) => `${args.optionText}, вибрано`
|
|
1187
|
+
};
|
|
1188
|
+
var $29b642d0025cc7a4$exports = {};
|
|
1189
|
+
$29b642d0025cc7a4$exports = {
|
|
1190
|
+
"buttonLabel": `显示建议`,
|
|
1191
|
+
"countAnnouncement": (args, formatter) => `有 ${formatter.plural(args.optionCount, {
|
|
1192
|
+
one: () => `${formatter.number(args.optionCount)} 个选项`,
|
|
1193
|
+
other: () => `${formatter.number(args.optionCount)} 个选项`
|
|
1194
|
+
})}可用。`,
|
|
1195
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1196
|
+
true: () => `进入了 ${args.groupTitle} 组,其中有 ${formatter.plural(args.groupCount, {
|
|
1197
|
+
one: () => `${formatter.number(args.groupCount)} 个选项`,
|
|
1198
|
+
other: () => `${formatter.number(args.groupCount)} 个选项`
|
|
1199
|
+
})}. `,
|
|
1200
|
+
other: ``
|
|
1201
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1202
|
+
true: `, 已选择`,
|
|
1203
|
+
other: ``
|
|
1204
|
+
}, args.isSelected)}`,
|
|
1205
|
+
"listboxLabel": `建议`,
|
|
1206
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 已选择`
|
|
1207
|
+
};
|
|
1208
|
+
var $cd36dd33f9d46936$exports = {};
|
|
1209
|
+
$cd36dd33f9d46936$exports = {
|
|
1210
|
+
"buttonLabel": `顯示建議`,
|
|
1211
|
+
"countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
|
|
1212
|
+
one: () => `${formatter.number(args.optionCount)} 選項`,
|
|
1213
|
+
other: () => `${formatter.number(args.optionCount)} 選項`
|
|
1214
|
+
})} 可用。`,
|
|
1215
|
+
"focusAnnouncement": (args, formatter) => `${formatter.select({
|
|
1216
|
+
true: () => `輸入的群組 ${args.groupTitle}, 有 ${formatter.plural(args.groupCount, {
|
|
1217
|
+
one: () => `${formatter.number(args.groupCount)} 選項`,
|
|
1218
|
+
other: () => `${formatter.number(args.groupCount)} 選項`
|
|
1219
|
+
})}. `,
|
|
1220
|
+
other: ``
|
|
1221
|
+
}, args.isGroupChange)}${args.optionText}${formatter.select({
|
|
1222
|
+
true: `, 已選取`,
|
|
1223
|
+
other: ``
|
|
1224
|
+
}, args.isSelected)}`,
|
|
1225
|
+
"listboxLabel": `建議`,
|
|
1226
|
+
"selectedAnnouncement": (args) => `${args.optionText}, 已選取`
|
|
1227
|
+
};
|
|
1228
|
+
var $de5926a92e8ebc5b$exports = {};
|
|
1229
|
+
$de5926a92e8ebc5b$exports = {
|
|
1230
|
+
"ar-AE": $02cb4c75c506befe$exports,
|
|
1231
|
+
"bg-BG": $568b8163f1e56faf$exports,
|
|
1232
|
+
"cs-CZ": $87581c0202d106b8$exports,
|
|
1233
|
+
"da-DK": $a10a0369f5433ed1$exports,
|
|
1234
|
+
"de-DE": $bfd288727d5cb166$exports,
|
|
1235
|
+
"el-GR": $ca177778f9a74e3c$exports,
|
|
1236
|
+
"en-US": $9b5aa79ef84beb6c$exports,
|
|
1237
|
+
"es-ES": $57968e8209de2557$exports,
|
|
1238
|
+
"et-EE": $60690790bf4c1c6a$exports,
|
|
1239
|
+
"fi-FI": $1101246e8c7d9357$exports,
|
|
1240
|
+
"fr-FR": $6404b5cb5b241730$exports,
|
|
1241
|
+
"he-IL": $dfeafa702e92e31f$exports,
|
|
1242
|
+
"hr-HR": $2d125e0b34676352$exports,
|
|
1243
|
+
"hu-HU": $ea029611d7634059$exports,
|
|
1244
|
+
"it-IT": $77f075bb86ad7091$exports,
|
|
1245
|
+
"ja-JP": $6e87462e84907983$exports,
|
|
1246
|
+
"ko-KR": $9246f2c6edc6b232$exports,
|
|
1247
|
+
"lt-LT": $e587accc6c0a434c$exports,
|
|
1248
|
+
"lv-LV": $03a1900e7400b5ab$exports,
|
|
1249
|
+
"nb-NO": $1387676441be6cf6$exports,
|
|
1250
|
+
"nl-NL": $17e82ebf0f8ab91f$exports,
|
|
1251
|
+
"pl-PL": $2f5377d3471630e5$exports,
|
|
1252
|
+
"pt-BR": $dee9868b6fa95ffe$exports,
|
|
1253
|
+
"pt-PT": $f8b2e63637cbb5a6$exports,
|
|
1254
|
+
"ro-RO": $46a885db3b44ea95$exports,
|
|
1255
|
+
"ru-RU": $50d8a8f0afa9dee5$exports,
|
|
1256
|
+
"sk-SK": $2867ee6173245507$exports,
|
|
1257
|
+
"sl-SI": $0631b65beeb09b50$exports,
|
|
1258
|
+
"sr-SP": $65fc749265dcd686$exports,
|
|
1259
|
+
"sv-SE": $69ba655c7853c08e$exports,
|
|
1260
|
+
"tr-TR": $a79794784d61577c$exports,
|
|
1261
|
+
"uk-UA": $c2845791417ebaf4$exports,
|
|
1262
|
+
"zh-CN": $29b642d0025cc7a4$exports,
|
|
1263
|
+
"zh-TW": $cd36dd33f9d46936$exports
|
|
1264
|
+
};
|
|
1265
|
+
function $parcel$interopDefault(a) {
|
|
1266
|
+
return a && a.__esModule ? a.default : a;
|
|
1267
|
+
}
|
|
1268
|
+
function $c350ade66beef0af$export$8c18d1b4f7232bbf(props, state) {
|
|
1269
|
+
let { buttonRef, popoverRef, inputRef, listBoxRef, keyboardDelegate, layoutDelegate, shouldFocusWrap, isReadOnly, isDisabled } = props;
|
|
1270
|
+
let backupBtnRef = useRef(null);
|
|
1271
|
+
buttonRef = buttonRef !== null && buttonRef !== void 0 ? buttonRef : backupBtnRef;
|
|
1272
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($de5926a92e8ebc5b$exports), "@react-aria/combobox");
|
|
1273
|
+
let { menuTriggerProps, menuProps } = $168583247155ddda$export$dc9c12ed27dd1b49({
|
|
1274
|
+
type: "listbox",
|
|
1275
|
+
isDisabled: isDisabled || isReadOnly
|
|
1276
|
+
}, state, buttonRef);
|
|
1277
|
+
$b1f0cad8af73213b$export$3585ede4d035bf14.set(state, {
|
|
1278
|
+
id: menuProps.id
|
|
1279
|
+
});
|
|
1280
|
+
let { collection } = state;
|
|
1281
|
+
let { disabledKeys } = state.selectionManager;
|
|
1282
|
+
let delegate = useMemo(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({
|
|
1283
|
+
collection,
|
|
1284
|
+
disabledKeys,
|
|
1285
|
+
ref: listBoxRef,
|
|
1286
|
+
layoutDelegate
|
|
1287
|
+
}), [
|
|
1288
|
+
keyboardDelegate,
|
|
1289
|
+
layoutDelegate,
|
|
1290
|
+
collection,
|
|
1291
|
+
disabledKeys,
|
|
1292
|
+
listBoxRef
|
|
1293
|
+
]);
|
|
1294
|
+
let { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({
|
|
1295
|
+
selectionManager: state.selectionManager,
|
|
1296
|
+
keyboardDelegate: delegate,
|
|
1297
|
+
disallowTypeAhead: true,
|
|
1298
|
+
disallowEmptySelection: true,
|
|
1299
|
+
shouldFocusWrap,
|
|
1300
|
+
ref: inputRef,
|
|
1301
|
+
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
1302
|
+
isVirtualized: true
|
|
1303
|
+
});
|
|
1304
|
+
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
1305
|
+
let onKeyDown = (e) => {
|
|
1306
|
+
if (e.nativeEvent.isComposing) return;
|
|
1307
|
+
switch (e.key) {
|
|
1308
|
+
case "Enter":
|
|
1309
|
+
case "Tab":
|
|
1310
|
+
if (state.isOpen && e.key === "Enter") e.preventDefault();
|
|
1311
|
+
if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null && state.selectionManager.isLink(state.selectionManager.focusedKey)) {
|
|
1312
|
+
let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
|
|
1313
|
+
if (e.key === "Enter" && item instanceof HTMLAnchorElement) {
|
|
1314
|
+
let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
|
|
1315
|
+
if (collectionItem) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
|
|
1316
|
+
}
|
|
1317
|
+
state.close();
|
|
1318
|
+
} else state.commit();
|
|
1319
|
+
break;
|
|
1320
|
+
case "Escape":
|
|
1321
|
+
if (state.selectedKey !== null || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
|
|
1322
|
+
state.revert();
|
|
1323
|
+
break;
|
|
1324
|
+
case "ArrowDown":
|
|
1325
|
+
state.open("first", "manual");
|
|
1326
|
+
break;
|
|
1327
|
+
case "ArrowUp":
|
|
1328
|
+
state.open("last", "manual");
|
|
1329
|
+
break;
|
|
1330
|
+
case "ArrowLeft":
|
|
1331
|
+
case "ArrowRight":
|
|
1332
|
+
state.selectionManager.setFocusedKey(null);
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
};
|
|
1336
|
+
let onBlur = (e) => {
|
|
1337
|
+
var _popoverRef_current;
|
|
1338
|
+
let blurFromButton = (buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) && buttonRef.current === e.relatedTarget;
|
|
1339
|
+
let blurIntoPopover = (_popoverRef_current = popoverRef.current) === null || _popoverRef_current === void 0 ? void 0 : _popoverRef_current.contains(e.relatedTarget);
|
|
1340
|
+
if (blurFromButton || blurIntoPopover) return;
|
|
1341
|
+
if (props.onBlur) props.onBlur(e);
|
|
1342
|
+
state.setFocused(false);
|
|
1343
|
+
};
|
|
1344
|
+
let onFocus = (e) => {
|
|
1345
|
+
if (state.isFocused) return;
|
|
1346
|
+
if (props.onFocus) props.onFocus(e);
|
|
1347
|
+
state.setFocused(true);
|
|
1348
|
+
};
|
|
1349
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
1350
|
+
let { labelProps, inputProps, descriptionProps, errorMessageProps } = $2d73ec29415bd339$export$712718f7aec83d5(__spreadProps(__spreadValues({}, props), {
|
|
1351
|
+
onChange: state.setInputValue,
|
|
1352
|
+
onKeyDown: !isReadOnly ? $ff5963eb1fccf552$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
|
|
1353
|
+
onBlur,
|
|
1354
|
+
value: state.inputValue,
|
|
1355
|
+
onFocus,
|
|
1356
|
+
autoComplete: "off",
|
|
1357
|
+
validate: void 0,
|
|
1358
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: state
|
|
1359
|
+
}), inputRef);
|
|
1360
|
+
let onPress = (e) => {
|
|
1361
|
+
if (e.pointerType === "touch") {
|
|
1362
|
+
var _inputRef_current;
|
|
1363
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
1364
|
+
state.toggle(null, "manual");
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1367
|
+
let onPressStart = (e) => {
|
|
1368
|
+
if (e.pointerType !== "touch") {
|
|
1369
|
+
var _inputRef_current;
|
|
1370
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
1371
|
+
state.toggle(e.pointerType === "keyboard" || e.pointerType === "virtual" ? "first" : null, "manual");
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
let triggerLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
1375
|
+
id: menuTriggerProps.id,
|
|
1376
|
+
"aria-label": stringFormatter.format("buttonLabel"),
|
|
1377
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
1378
|
+
});
|
|
1379
|
+
let listBoxProps = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
1380
|
+
id: menuProps.id,
|
|
1381
|
+
"aria-label": stringFormatter.format("listboxLabel"),
|
|
1382
|
+
"aria-labelledby": props["aria-labelledby"] || labelProps.id
|
|
1383
|
+
});
|
|
1384
|
+
let lastEventTime = useRef(0);
|
|
1385
|
+
let onTouchEnd = (e) => {
|
|
1386
|
+
if (isDisabled || isReadOnly) return;
|
|
1387
|
+
if (e.timeStamp - lastEventTime.current < 500) {
|
|
1388
|
+
var _inputRef_current;
|
|
1389
|
+
e.preventDefault();
|
|
1390
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
1391
|
+
return;
|
|
1392
|
+
}
|
|
1393
|
+
let rect = e.target.getBoundingClientRect();
|
|
1394
|
+
let touch = e.changedTouches[0];
|
|
1395
|
+
let centerX = Math.ceil(rect.left + 0.5 * rect.width);
|
|
1396
|
+
let centerY = Math.ceil(rect.top + 0.5 * rect.height);
|
|
1397
|
+
if (touch.clientX === centerX && touch.clientY === centerY) {
|
|
1398
|
+
var _inputRef_current1;
|
|
1399
|
+
e.preventDefault();
|
|
1400
|
+
(_inputRef_current1 = inputRef.current) === null || _inputRef_current1 === void 0 ? void 0 : _inputRef_current1.focus();
|
|
1401
|
+
state.toggle(null, "manual");
|
|
1402
|
+
lastEventTime.current = e.timeStamp;
|
|
1403
|
+
}
|
|
1404
|
+
};
|
|
1405
|
+
let focusedItem = state.selectionManager.focusedKey != null && state.isOpen ? state.collection.getItem(state.selectionManager.focusedKey) : void 0;
|
|
1406
|
+
var _focusedItem_parentKey;
|
|
1407
|
+
let sectionKey = (_focusedItem_parentKey = focusedItem === null || focusedItem === void 0 ? void 0 : focusedItem.parentKey) !== null && _focusedItem_parentKey !== void 0 ? _focusedItem_parentKey : null;
|
|
1408
|
+
var _state_selectionManager_focusedKey;
|
|
1409
|
+
let itemKey = (_state_selectionManager_focusedKey = state.selectionManager.focusedKey) !== null && _state_selectionManager_focusedKey !== void 0 ? _state_selectionManager_focusedKey : null;
|
|
1410
|
+
let lastSection = useRef(sectionKey);
|
|
1411
|
+
let lastItem = useRef(itemKey);
|
|
1412
|
+
useEffect(() => {
|
|
1413
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && focusedItem != null && itemKey != null && itemKey !== lastItem.current) {
|
|
1414
|
+
let isSelected = state.selectionManager.isSelected(itemKey);
|
|
1415
|
+
let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
|
|
1416
|
+
let sectionTitle = (section === null || section === void 0 ? void 0 : section["aria-label"]) || (typeof (section === null || section === void 0 ? void 0 : section.rendered) === "string" ? section.rendered : "") || "";
|
|
1417
|
+
var _ref;
|
|
1418
|
+
let announcement = stringFormatter.format("focusAnnouncement", {
|
|
1419
|
+
isGroupChange: (_ref = section && sectionKey !== lastSection.current) !== null && _ref !== void 0 ? _ref : false,
|
|
1420
|
+
groupTitle: sectionTitle,
|
|
1421
|
+
groupCount: section ? [
|
|
1422
|
+
...$c5a24bc478652b5f$export$1005530eda016c13(section, state.collection)
|
|
1423
|
+
].length : 0,
|
|
1424
|
+
optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
|
|
1425
|
+
isSelected
|
|
1426
|
+
});
|
|
1427
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1428
|
+
}
|
|
1429
|
+
lastSection.current = sectionKey;
|
|
1430
|
+
lastItem.current = itemKey;
|
|
1431
|
+
});
|
|
1432
|
+
let optionCount = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state.collection);
|
|
1433
|
+
let lastSize = useRef(optionCount);
|
|
1434
|
+
let lastOpen = useRef(state.isOpen);
|
|
1435
|
+
useEffect(() => {
|
|
1436
|
+
let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $c87311424ea30a05$export$e1865c3bedcd822b());
|
|
1437
|
+
if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
|
|
1438
|
+
let announcement = stringFormatter.format("countAnnouncement", {
|
|
1439
|
+
optionCount
|
|
1440
|
+
});
|
|
1441
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1442
|
+
}
|
|
1443
|
+
lastSize.current = optionCount;
|
|
1444
|
+
lastOpen.current = state.isOpen;
|
|
1445
|
+
});
|
|
1446
|
+
let lastSelectedKey = useRef(state.selectedKey);
|
|
1447
|
+
useEffect(() => {
|
|
1448
|
+
if ($c87311424ea30a05$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
|
|
1449
|
+
let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
|
|
1450
|
+
let announcement = stringFormatter.format("selectedAnnouncement", {
|
|
1451
|
+
optionText
|
|
1452
|
+
});
|
|
1453
|
+
$319e236875307eab$export$a9b970dcc4ae71a9(announcement);
|
|
1454
|
+
}
|
|
1455
|
+
lastSelectedKey.current = state.selectedKey;
|
|
1456
|
+
});
|
|
1457
|
+
useEffect(() => {
|
|
1458
|
+
if (state.isOpen) return $5e3802645cc19319$export$1c3ebcada18427bf([
|
|
1459
|
+
inputRef.current,
|
|
1460
|
+
popoverRef.current
|
|
1461
|
+
].filter((element) => element != null));
|
|
1462
|
+
}, [
|
|
1463
|
+
state.isOpen,
|
|
1464
|
+
inputRef,
|
|
1465
|
+
popoverRef
|
|
1466
|
+
]);
|
|
1467
|
+
return {
|
|
1468
|
+
labelProps,
|
|
1469
|
+
buttonProps: __spreadProps(__spreadValues(__spreadValues({}, menuTriggerProps), triggerLabelProps), {
|
|
1470
|
+
excludeFromTabOrder: true,
|
|
1471
|
+
preventFocusOnPress: true,
|
|
1472
|
+
onPress,
|
|
1473
|
+
onPressStart,
|
|
1474
|
+
isDisabled: isDisabled || isReadOnly
|
|
1475
|
+
}),
|
|
1476
|
+
inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(inputProps, {
|
|
1477
|
+
role: "combobox",
|
|
1478
|
+
"aria-expanded": menuTriggerProps["aria-expanded"],
|
|
1479
|
+
"aria-controls": state.isOpen ? menuProps.id : void 0,
|
|
1480
|
+
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
1481
|
+
"aria-autocomplete": "list",
|
|
1482
|
+
"aria-activedescendant": focusedItem ? $b1f0cad8af73213b$export$9145995848b05025(state, focusedItem.key) : void 0,
|
|
1483
|
+
onTouchEnd,
|
|
1484
|
+
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
1485
|
+
autoCorrect: "off",
|
|
1486
|
+
// This disable's the macOS Safari spell check auto corrections.
|
|
1487
|
+
spellCheck: "false"
|
|
1488
|
+
}),
|
|
1489
|
+
listBoxProps: $3ef42575df84b30b$export$9d1611c77c2fe928(menuProps, listBoxProps, {
|
|
1490
|
+
autoFocus: state.focusStrategy,
|
|
1491
|
+
shouldUseVirtualFocus: true,
|
|
1492
|
+
shouldSelectOnPressUp: true,
|
|
1493
|
+
shouldFocusOnHover: true,
|
|
1494
|
+
linkBehavior: "selection"
|
|
1495
|
+
}),
|
|
1496
|
+
descriptionProps,
|
|
1497
|
+
errorMessageProps,
|
|
1498
|
+
isInvalid,
|
|
1499
|
+
validationErrors,
|
|
1500
|
+
validationDetails
|
|
1501
|
+
};
|
|
1502
|
+
}
|
|
1503
|
+
const $ee014567cb39d3f0$export$ff05c3ac10437e03 = /* @__PURE__ */ createContext(null);
|
|
1504
|
+
const $d3e0e05bdfcf66bd$export$c24727297075ec6a = /* @__PURE__ */ createContext(null);
|
|
1505
|
+
const $a049562f99e7db0e$export$f9c6924e160136d1 = /* @__PURE__ */ createContext({});
|
|
1506
|
+
const $3985021b0ad6602f$export$37fb8590cf2c088c = /* @__PURE__ */ createContext({});
|
|
1507
|
+
let $3985021b0ad6602f$var$filterHoverProps = (props) => {
|
|
1508
|
+
let _a = props, { onHoverStart, onHoverChange, onHoverEnd } = _a, otherProps = __objRest(_a, ["onHoverStart", "onHoverChange", "onHoverEnd"]);
|
|
1509
|
+
return otherProps;
|
|
1510
|
+
};
|
|
1511
|
+
const $3985021b0ad6602f$export$f5b8910cec6cf069 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function Input(props, ref) {
|
|
1512
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3985021b0ad6602f$export$37fb8590cf2c088c);
|
|
1513
|
+
let { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
1514
|
+
let { isFocused, isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f({
|
|
1515
|
+
isTextInput: true,
|
|
1516
|
+
autoFocus: props.autoFocus
|
|
1517
|
+
});
|
|
1518
|
+
let isInvalid = !!props["aria-invalid"] && props["aria-invalid"] !== "false";
|
|
1519
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
1520
|
+
values: {
|
|
1521
|
+
isHovered,
|
|
1522
|
+
isFocused,
|
|
1523
|
+
isFocusVisible,
|
|
1524
|
+
isDisabled: props.disabled || false,
|
|
1525
|
+
isInvalid
|
|
1526
|
+
},
|
|
1527
|
+
defaultClassName: "react-aria-Input"
|
|
1528
|
+
}));
|
|
1529
|
+
return /* @__PURE__ */ React__default.createElement("input", __spreadProps(__spreadValues(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928($3985021b0ad6602f$var$filterHoverProps(props), focusProps, hoverProps)), renderProps), {
|
|
1530
|
+
ref,
|
|
1531
|
+
"data-focused": isFocused || void 0,
|
|
1532
|
+
"data-disabled": props.disabled || void 0,
|
|
1533
|
+
"data-hovered": isHovered || void 0,
|
|
1534
|
+
"data-focus-visible": isFocusVisible || void 0,
|
|
1535
|
+
"data-invalid": isInvalid || void 0
|
|
1536
|
+
}));
|
|
1537
|
+
});
|
|
1538
|
+
const $d01f2c01039c0eec$export$d414ccceff7063c3 = /* @__PURE__ */ createContext(null);
|
|
1539
|
+
const $d01f2c01039c0eec$export$c02625b26074192c = /* @__PURE__ */ createContext(null);
|
|
1540
|
+
const $d01f2c01039c0eec$export$72b9695b8216309a = /* @__PURE__ */ forwardRef(function ComboBox(props, ref) {
|
|
1541
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d01f2c01039c0eec$export$d414ccceff7063c3);
|
|
1542
|
+
let { children, isDisabled = false, isInvalid = false, isRequired = false } = props;
|
|
1543
|
+
let content = useMemo(() => {
|
|
1544
|
+
var _props_items;
|
|
1545
|
+
return /* @__PURE__ */ React__default.createElement($eed445e0843c11d0$export$7ff8f37d2d81a48d.Provider, {
|
|
1546
|
+
value: {
|
|
1547
|
+
items: (_props_items = props.items) !== null && _props_items !== void 0 ? _props_items : props.defaultItems
|
|
1548
|
+
}
|
|
1549
|
+
}, typeof children === "function" ? children({
|
|
1550
|
+
isOpen: false,
|
|
1551
|
+
isDisabled,
|
|
1552
|
+
isInvalid,
|
|
1553
|
+
isRequired,
|
|
1554
|
+
defaultChildren: null
|
|
1555
|
+
}) : children);
|
|
1556
|
+
}, [
|
|
1557
|
+
children,
|
|
1558
|
+
isDisabled,
|
|
1559
|
+
isInvalid,
|
|
1560
|
+
isRequired,
|
|
1561
|
+
props.items,
|
|
1562
|
+
props.defaultItems
|
|
1563
|
+
]);
|
|
1564
|
+
return /* @__PURE__ */ React__default.createElement($e1995378a142960e$export$bf788dd355e3a401, {
|
|
1565
|
+
content
|
|
1566
|
+
}, (collection) => /* @__PURE__ */ React__default.createElement($d01f2c01039c0eec$var$ComboBoxInner, {
|
|
1567
|
+
props,
|
|
1568
|
+
collection,
|
|
1569
|
+
comboBoxRef: ref
|
|
1570
|
+
}));
|
|
1571
|
+
});
|
|
1572
|
+
function $d01f2c01039c0eec$var$ComboBoxInner({ props, collection, comboBoxRef: ref }) {
|
|
1573
|
+
let { name, formValue = "key", allowsCustomValue } = props;
|
|
1574
|
+
if (allowsCustomValue) formValue = "text";
|
|
1575
|
+
let { validationBehavior: formValidationBehavior } = $64fa3d84918910a7$export$fabf2dc03a41866e($d3e0e05bdfcf66bd$export$c24727297075ec6a) || {};
|
|
1576
|
+
var _props_validationBehavior, _ref;
|
|
1577
|
+
let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : "native";
|
|
1578
|
+
let { contains } = $bb77f239b46e8c72$export$3274cf84b703fff({
|
|
1579
|
+
sensitivity: "base"
|
|
1580
|
+
});
|
|
1581
|
+
let state = $a9e7382a7d111cb5$export$b453a3bfd4a5fa9e(__spreadProps(__spreadValues({
|
|
1582
|
+
defaultFilter: props.defaultFilter || contains
|
|
1583
|
+
}, props), {
|
|
1584
|
+
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1585
|
+
items: props.items,
|
|
1586
|
+
children: void 0,
|
|
1587
|
+
collection,
|
|
1588
|
+
validationBehavior
|
|
1589
|
+
}));
|
|
1590
|
+
let buttonRef = useRef(null);
|
|
1591
|
+
let inputRef = useRef(null);
|
|
1592
|
+
let listBoxRef = useRef(null);
|
|
1593
|
+
let popoverRef = useRef(null);
|
|
1594
|
+
let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8();
|
|
1595
|
+
let _a = $c350ade66beef0af$export$8c18d1b4f7232bbf(__spreadProps(__spreadValues({}, $64fa3d84918910a7$export$ef03459518577ad4(props)), {
|
|
1596
|
+
label,
|
|
1597
|
+
inputRef,
|
|
1598
|
+
buttonRef,
|
|
1599
|
+
listBoxRef,
|
|
1600
|
+
popoverRef,
|
|
1601
|
+
name: formValue === "text" ? name : void 0,
|
|
1602
|
+
validationBehavior
|
|
1603
|
+
}), state), { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps } = _a, validation = __objRest(_a, ["buttonProps", "inputProps", "listBoxProps", "labelProps", "descriptionProps", "errorMessageProps"]);
|
|
1604
|
+
let [menuWidth, setMenuWidth] = useState(null);
|
|
1605
|
+
let onResize = useCallback(() => {
|
|
1606
|
+
if (inputRef.current) {
|
|
1607
|
+
var _buttonRef_current;
|
|
1608
|
+
let buttonRect = (_buttonRef_current = buttonRef.current) === null || _buttonRef_current === void 0 ? void 0 : _buttonRef_current.getBoundingClientRect();
|
|
1609
|
+
let inputRect = inputRef.current.getBoundingClientRect();
|
|
1610
|
+
let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
|
|
1611
|
+
let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
|
|
1612
|
+
setMenuWidth(maxX - minX + "px");
|
|
1613
|
+
}
|
|
1614
|
+
}, [
|
|
1615
|
+
buttonRef,
|
|
1616
|
+
inputRef,
|
|
1617
|
+
setMenuWidth
|
|
1618
|
+
]);
|
|
1619
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
1620
|
+
ref: inputRef,
|
|
1621
|
+
onResize
|
|
1622
|
+
});
|
|
1623
|
+
let renderPropsState = useMemo(() => ({
|
|
1624
|
+
isOpen: state.isOpen,
|
|
1625
|
+
isDisabled: props.isDisabled || false,
|
|
1626
|
+
isInvalid: validation.isInvalid || false,
|
|
1627
|
+
isRequired: props.isRequired || false
|
|
1628
|
+
}), [
|
|
1629
|
+
state.isOpen,
|
|
1630
|
+
props.isDisabled,
|
|
1631
|
+
validation.isInvalid,
|
|
1632
|
+
props.isRequired
|
|
1633
|
+
]);
|
|
1634
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
1635
|
+
values: renderPropsState,
|
|
1636
|
+
defaultClassName: "react-aria-ComboBox"
|
|
1637
|
+
}));
|
|
1638
|
+
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
1639
|
+
delete DOMProps.id;
|
|
1640
|
+
var _state_selectedKey;
|
|
1641
|
+
return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
1642
|
+
values: [
|
|
1643
|
+
[
|
|
1644
|
+
$d01f2c01039c0eec$export$c02625b26074192c,
|
|
1645
|
+
state
|
|
1646
|
+
],
|
|
1647
|
+
[
|
|
1648
|
+
$01b77f81d0f07f68$export$75b6ee27786ba447,
|
|
1649
|
+
__spreadProps(__spreadValues({}, labelProps), {
|
|
1650
|
+
ref: labelRef
|
|
1651
|
+
})
|
|
1652
|
+
],
|
|
1653
|
+
[
|
|
1654
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
1655
|
+
__spreadProps(__spreadValues({}, buttonProps), {
|
|
1656
|
+
ref: buttonRef,
|
|
1657
|
+
isPressed: state.isOpen
|
|
1658
|
+
})
|
|
1659
|
+
],
|
|
1660
|
+
[
|
|
1661
|
+
$3985021b0ad6602f$export$37fb8590cf2c088c,
|
|
1662
|
+
__spreadProps(__spreadValues({}, inputProps), {
|
|
1663
|
+
ref: inputRef
|
|
1664
|
+
})
|
|
1665
|
+
],
|
|
1666
|
+
[
|
|
1667
|
+
$de32f1b87079253c$export$d2f961adcb0afbe,
|
|
1668
|
+
state
|
|
1669
|
+
],
|
|
1670
|
+
[
|
|
1671
|
+
$07b14b47974efb58$export$9b9a0cd73afb7ca4,
|
|
1672
|
+
{
|
|
1673
|
+
ref: popoverRef,
|
|
1674
|
+
triggerRef: inputRef,
|
|
1675
|
+
scrollRef: listBoxRef,
|
|
1676
|
+
placement: "bottom start",
|
|
1677
|
+
isNonModal: true,
|
|
1678
|
+
trigger: "ComboBox",
|
|
1679
|
+
style: {
|
|
1680
|
+
"--trigger-width": menuWidth
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
],
|
|
1684
|
+
[
|
|
1685
|
+
$eed445e0843c11d0$export$7ff8f37d2d81a48d,
|
|
1686
|
+
__spreadProps(__spreadValues({}, listBoxProps), {
|
|
1687
|
+
ref: listBoxRef
|
|
1688
|
+
})
|
|
1689
|
+
],
|
|
1690
|
+
[
|
|
1691
|
+
$eed445e0843c11d0$export$7c5906fe4f1f2af2,
|
|
1692
|
+
state
|
|
1693
|
+
],
|
|
1694
|
+
[
|
|
1695
|
+
$514c0188e459b4c0$export$9afb8bc826b033ea,
|
|
1696
|
+
{
|
|
1697
|
+
slots: {
|
|
1698
|
+
description: descriptionProps,
|
|
1699
|
+
errorMessage: errorMessageProps
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
],
|
|
1703
|
+
[
|
|
1704
|
+
$a049562f99e7db0e$export$f9c6924e160136d1,
|
|
1705
|
+
{
|
|
1706
|
+
isInvalid: validation.isInvalid,
|
|
1707
|
+
isDisabled: props.isDisabled || false
|
|
1708
|
+
}
|
|
1709
|
+
],
|
|
1710
|
+
[
|
|
1711
|
+
$ee014567cb39d3f0$export$ff05c3ac10437e03,
|
|
1712
|
+
validation
|
|
1713
|
+
]
|
|
1714
|
+
]
|
|
1715
|
+
}, /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, DOMProps), renderProps), {
|
|
1716
|
+
ref,
|
|
1717
|
+
slot: props.slot || void 0,
|
|
1718
|
+
"data-focused": state.isFocused || void 0,
|
|
1719
|
+
"data-open": state.isOpen || void 0,
|
|
1720
|
+
"data-disabled": props.isDisabled || void 0,
|
|
1721
|
+
"data-invalid": validation.isInvalid || void 0,
|
|
1722
|
+
"data-required": props.isRequired || void 0
|
|
1723
|
+
})), name && formValue === "key" && /* @__PURE__ */ React__default.createElement("input", {
|
|
1724
|
+
type: "hidden",
|
|
1725
|
+
name,
|
|
1726
|
+
value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ""
|
|
1727
|
+
}));
|
|
1728
|
+
}
|
|
1729
|
+
var __defProp2 = Object.defineProperty;
|
|
1730
|
+
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
1731
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
1732
|
+
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
1733
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
1734
|
+
enumerable: true,
|
|
1735
|
+
configurable: true,
|
|
1736
|
+
writable: true,
|
|
1737
|
+
value
|
|
1738
|
+
}) : obj[key] = value;
|
|
1739
|
+
var __spreadValues2 = (a, b) => {
|
|
1740
|
+
for (var prop in b || (b = {})) if (__hasOwnProp2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
|
|
1741
|
+
if (__getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(b)) {
|
|
1742
|
+
if (__propIsEnum2.call(b, prop)) __defNormalProp2(a, prop, b[prop]);
|
|
1743
|
+
}
|
|
1744
|
+
return a;
|
|
1745
|
+
};
|
|
1746
|
+
var __objRest2 = (source, exclude) => {
|
|
1747
|
+
var target = {};
|
|
1748
|
+
for (var prop in source) if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1749
|
+
if (source != null && __getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(source)) {
|
|
1750
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop)) target[prop] = source[prop];
|
|
1751
|
+
}
|
|
1752
|
+
return target;
|
|
1753
|
+
};
|
|
1754
|
+
const KeyboardArrowDown = (_a) => {
|
|
1755
|
+
var _b = _a, { title, titleId } = _b, props = __objRest2(_b, ["title", "titleId"]);
|
|
1756
|
+
return React.createElement("svg", __spreadValues2({
|
|
1757
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1758
|
+
viewBox: "0 -960 960 960",
|
|
1759
|
+
"aria-labelledby": titleId
|
|
1760
|
+
}, props), title ? React.createElement("title", {
|
|
1761
|
+
id: titleId
|
|
1762
|
+
}, title) : null, React.createElement("path", {
|
|
1763
|
+
d: "M480-357.85 253.85-584l32.61-32.61L480-423.08l193.54-193.53L706.15-584 480-357.85Z"
|
|
1764
|
+
}));
|
|
1765
|
+
};
|
|
1766
|
+
const popover = "_popover_4kb9n_5";
|
|
1767
|
+
const menu = "_menu_4kb9n_23";
|
|
1768
|
+
const option = "_option_4kb9n_28";
|
|
1769
|
+
const listEmptyState = "_listEmptyState_4kb9n_29";
|
|
1770
|
+
const spinnerContainer = "_spinnerContainer_4kb9n_53";
|
|
1771
|
+
const spinner = "_spinner_4kb9n_53";
|
|
1772
|
+
const styles$1 = {
|
|
1773
|
+
popover,
|
|
1774
|
+
menu,
|
|
1775
|
+
option,
|
|
1776
|
+
listEmptyState,
|
|
1777
|
+
spinnerContainer,
|
|
1778
|
+
spinner
|
|
1779
|
+
};
|
|
1780
|
+
function MultiSelectDropdown(props) {
|
|
1781
|
+
const { children, maxItemsUntilScroll = DEFAULT_MAX_ITEMS_UNTIL_SCROLL, isLoading, triggerRef, menuRef, width } = props;
|
|
1782
|
+
const style = __spreadValues(__spreadValues({
|
|
1783
|
+
width
|
|
1784
|
+
}, getComponentToken("menu", "item_height", `${pxToRem(ITEM_HEIGHT)}rem`)), getComponentToken("menu", "padding.y", `${pxToRem(Y_PADDING_INSIDE_OVERLAY)}rem`));
|
|
1785
|
+
return React__default.createElement($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
1786
|
+
isNonModal: true,
|
|
1787
|
+
className: styles$1.popover,
|
|
1788
|
+
style,
|
|
1789
|
+
triggerRef,
|
|
1790
|
+
scrollRef: menuRef,
|
|
1791
|
+
trigger: "ComboBox",
|
|
1792
|
+
maxHeight: getMenuPopoverMaxHeight({
|
|
1793
|
+
maxItemsUntilScroll
|
|
1794
|
+
})
|
|
1795
|
+
}, isLoading ? React__default.createElement("div", {
|
|
1796
|
+
className: styles$1.spinnerContainer
|
|
1797
|
+
}, React__default.createElement("div", {
|
|
1798
|
+
className: styles$1.spinner
|
|
1799
|
+
}, React__default.createElement(Spinner, {
|
|
1800
|
+
isIndeterminate: true,
|
|
1801
|
+
"aria-label": "Loading",
|
|
1802
|
+
size: "sm"
|
|
1803
|
+
}))) : React__default.createElement(ScrollContainer, {
|
|
1804
|
+
scrollRef: menuRef
|
|
1805
|
+
}, React__default.createElement($eed445e0843c11d0$export$41f133550aa26f48, {
|
|
1806
|
+
renderEmptyState: () => React__default.createElement("div", {
|
|
1807
|
+
className: styles$1.listEmptyState
|
|
1808
|
+
}, React__default.createElement(Text, {
|
|
1809
|
+
variant: "subtitle2",
|
|
1810
|
+
color: "neutral.400"
|
|
1811
|
+
}, "No results found")),
|
|
1812
|
+
selectionMode: "multiple"
|
|
1813
|
+
}, children)));
|
|
1814
|
+
}
|
|
1815
|
+
function MultiSelectDropdownOption(props) {
|
|
1816
|
+
return React__default.createElement($eed445e0843c11d0$export$a11e76429ed99b4, __spreadProps(__spreadValues({}, props), {
|
|
1817
|
+
className: styles$1.option
|
|
1818
|
+
}));
|
|
1819
|
+
}
|
|
1820
|
+
function MultiSelectDropdownOptionText(props) {
|
|
1821
|
+
return React__default.createElement(Text, __spreadValues({
|
|
1822
|
+
variant: "body1"
|
|
1823
|
+
}, props));
|
|
1824
|
+
}
|
|
1825
|
+
function ScrollContainer({ scrollRef, children }) {
|
|
1826
|
+
useScrollbar(scrollRef, "ezui-os-theme-overlay");
|
|
1827
|
+
return React__default.createElement("div", {
|
|
1828
|
+
className: styles$1.menu,
|
|
1829
|
+
ref: scrollRef
|
|
1830
|
+
}, children);
|
|
1831
|
+
}
|
|
1832
|
+
function useElementWidth(elementRef) {
|
|
1833
|
+
const [width, setWidth] = useState(0);
|
|
1834
|
+
$9daab02d461809db$export$683480f191c0e3ea({
|
|
1835
|
+
ref: elementRef,
|
|
1836
|
+
onResize() {
|
|
1837
|
+
if (elementRef.current) {
|
|
1838
|
+
const { width: width2 } = elementRef.current.getBoundingClientRect();
|
|
1839
|
+
setWidth(width2);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
return width;
|
|
1844
|
+
}
|
|
1845
|
+
const MultiSelect$1 = "_MultiSelect_17f1h_5";
|
|
1846
|
+
const input = "_input_17f1h_38";
|
|
1847
|
+
const comboBoxContainer = "_comboBoxContainer_17f1h_43";
|
|
1848
|
+
const comboBox = "_comboBox_17f1h_43";
|
|
1849
|
+
const inputContainer = "_inputContainer_17f1h_53";
|
|
1850
|
+
const dropdownArrowButton = "_dropdownArrowButton_17f1h_84";
|
|
1851
|
+
const styles = {
|
|
1852
|
+
MultiSelect: MultiSelect$1,
|
|
1853
|
+
input,
|
|
1854
|
+
comboBoxContainer,
|
|
1855
|
+
comboBox,
|
|
1856
|
+
inputContainer,
|
|
1857
|
+
dropdownArrowButton
|
|
1858
|
+
};
|
|
1859
|
+
function MultiSelect(props) {
|
|
1860
|
+
const { children, disabledKeys, dropdownItems = [], inputValue, isLoading, maxItemsUntilScroll = DEFAULT_MAX_ITEMS_UNTIL_SCROLL, onInputChange = () => {
|
|
1861
|
+
}, onSelectionChange, placeholder, renderPill, selectedItems } = props;
|
|
1862
|
+
const rootRef = useRef(null);
|
|
1863
|
+
const clearComboBoxButtonRef = useRef(null);
|
|
1864
|
+
const menuRef = useRef(null);
|
|
1865
|
+
const [tempSelectedKey, setTempSelectedKey] = useState(null);
|
|
1866
|
+
const rootWidth = useElementWidth(rootRef);
|
|
1867
|
+
const onRemoveSelectedItem = (keys) => {
|
|
1868
|
+
const key = keys.values().next().value;
|
|
1869
|
+
if (key) {
|
|
1870
|
+
onSelectionChange(selectedItems.filter((k) => k.key !== key));
|
|
1871
|
+
onInputChange("");
|
|
1872
|
+
setTempSelectedKey(null);
|
|
1873
|
+
}
|
|
1874
|
+
};
|
|
1875
|
+
const onComboBoxSelectionChange = (key) => {
|
|
1876
|
+
if (!key) {
|
|
1877
|
+
return;
|
|
1878
|
+
}
|
|
1879
|
+
const item = [...dropdownItems].find((i) => i.key === key);
|
|
1880
|
+
if (!item) {
|
|
1881
|
+
return;
|
|
1882
|
+
}
|
|
1883
|
+
if (!selectedItems.map((i) => i.key).includes(key)) {
|
|
1884
|
+
onSelectionChange([...selectedItems, item]);
|
|
1885
|
+
setTempSelectedKey(key);
|
|
1886
|
+
}
|
|
1887
|
+
onInputChange("");
|
|
1888
|
+
};
|
|
1889
|
+
const onComboBoxInputChange = (value) => {
|
|
1890
|
+
onInputChange(value);
|
|
1891
|
+
setTempSelectedKey((prevSelectedKey) => value === "" ? null : prevSelectedKey);
|
|
1892
|
+
};
|
|
1893
|
+
const onComboBoxInputKeyDownCapture = (e) => {
|
|
1894
|
+
if (e.key === "Backspace" && inputValue === "") {
|
|
1895
|
+
if (selectedItems.length === 0) {
|
|
1896
|
+
return;
|
|
1897
|
+
}
|
|
1898
|
+
if (selectedItems.length > 0) {
|
|
1899
|
+
const endItem = selectedItems[selectedItems.length - 1];
|
|
1900
|
+
onSelectionChange(selectedItems.filter((k) => k.key !== endItem.key));
|
|
1901
|
+
}
|
|
1902
|
+
onInputChange("");
|
|
1903
|
+
setTempSelectedKey(null);
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
const onComboBoxInputBlur = () => {
|
|
1907
|
+
onInputChange("");
|
|
1908
|
+
setTempSelectedKey(null);
|
|
1909
|
+
};
|
|
1910
|
+
return React__default.createElement("div", {
|
|
1911
|
+
ref: rootRef,
|
|
1912
|
+
className: styles.MultiSelect
|
|
1913
|
+
}, selectedItems.length > 0 ? React__default.createElement(PillGroup, {
|
|
1914
|
+
items: selectedItems,
|
|
1915
|
+
horizontalStackContainerProps: {
|
|
1916
|
+
gap: "1"
|
|
1917
|
+
},
|
|
1918
|
+
onRemove: onRemoveSelectedItem,
|
|
1919
|
+
label: "Selected items"
|
|
1920
|
+
}, renderPill) : React__default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, React__default.createElement(Text, null, "No selected items")), React__default.createElement("div", {
|
|
1921
|
+
className: styles.comboBoxContainer
|
|
1922
|
+
}, React__default.createElement($d01f2c01039c0eec$export$72b9695b8216309a, {
|
|
1923
|
+
className: styles.comboBox,
|
|
1924
|
+
allowsEmptyCollection: true,
|
|
1925
|
+
"aria-label": "Available items",
|
|
1926
|
+
selectedKey: tempSelectedKey,
|
|
1927
|
+
onSelectionChange: onComboBoxSelectionChange,
|
|
1928
|
+
items: dropdownItems,
|
|
1929
|
+
inputValue,
|
|
1930
|
+
onInputChange: onComboBoxInputChange,
|
|
1931
|
+
disabledKeys
|
|
1932
|
+
}, React__default.createElement("div", {
|
|
1933
|
+
className: styles.inputContainer
|
|
1934
|
+
}, React__default.createElement($3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
1935
|
+
placeholder,
|
|
1936
|
+
className: styles.input,
|
|
1937
|
+
onBlur: onComboBoxInputBlur,
|
|
1938
|
+
onKeyDownCapture: onComboBoxInputKeyDownCapture
|
|
1939
|
+
}), React__default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, React__default.createElement($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
1940
|
+
type: "button",
|
|
1941
|
+
slot: "remove",
|
|
1942
|
+
"aria-label": "Clear",
|
|
1943
|
+
ref: clearComboBoxButtonRef
|
|
1944
|
+
}))), React__default.createElement(MultiSelectDropdown, {
|
|
1945
|
+
triggerRef: rootRef,
|
|
1946
|
+
menuRef,
|
|
1947
|
+
maxItemsUntilScroll,
|
|
1948
|
+
isLoading,
|
|
1949
|
+
width: rootWidth
|
|
1950
|
+
}, children)), React__default.createElement("button", {
|
|
1951
|
+
type: "button",
|
|
1952
|
+
className: styles.dropdownArrowButton,
|
|
1953
|
+
onClick: () => {
|
|
1954
|
+
var _a;
|
|
1955
|
+
return (_a = clearComboBoxButtonRef.current) == null ? void 0 : _a.click();
|
|
1956
|
+
},
|
|
1957
|
+
tabIndex: -1
|
|
1958
|
+
}, React__default.createElement(Text, {
|
|
1959
|
+
visuallyHidden: true
|
|
1960
|
+
}, "Open dropdown"), React__default.createElement(Icon, {
|
|
1961
|
+
symbol: KeyboardArrowDown
|
|
1962
|
+
}))));
|
|
1963
|
+
}
|
|
1964
|
+
MultiSelect.Pill = PillGroup.Pill;
|
|
1965
|
+
MultiSelect.Option = MultiSelectDropdownOption;
|
|
1966
|
+
MultiSelect.OptionText = MultiSelectDropdownOptionText;
|
|
1967
|
+
export {
|
|
1968
|
+
MultiSelect,
|
|
1969
|
+
$f86e6c1ec7da6ebb$export$bc3384a35de93d66 as useAsyncList,
|
|
1970
|
+
$bb77f239b46e8c72$export$3274cf84b703fff as useFilter,
|
|
1971
|
+
h as useListData
|
|
1972
|
+
};
|