@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
package/Notification/index.js
CHANGED
|
@@ -1,1537 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const Icon_index = require("../Icon/index.js");
|
|
28
|
-
const Text_index = require("../Text/index.js");
|
|
29
|
-
const utilities_css = require("../utilities/css.js");
|
|
30
|
-
const UnstyledButton_index = require("../__chunks__/index-5f429325.js");
|
|
31
|
-
require("../__chunks__/omit-fca26542.js");
|
|
32
|
-
function _interopNamespaceDefault(e) {
|
|
33
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
34
|
-
if (e) {
|
|
35
|
-
for (const k in e) {
|
|
36
|
-
if (k !== "default") {
|
|
37
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
38
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: () => e[k]
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
n.default = e;
|
|
46
|
-
return Object.freeze(n);
|
|
47
|
-
}
|
|
48
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
49
|
-
var __defProp$5 = Object.defineProperty;
|
|
50
|
-
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
51
|
-
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
52
|
-
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
53
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
configurable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
value
|
|
58
|
-
}) : obj[key] = value;
|
|
59
|
-
var __spreadValues$5 = (a, b) => {
|
|
60
|
-
for (var prop in b || (b = {}))
|
|
61
|
-
if (__hasOwnProp$5.call(b, prop))
|
|
62
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
63
|
-
if (__getOwnPropSymbols$5)
|
|
64
|
-
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
65
|
-
if (__propIsEnum$5.call(b, prop))
|
|
66
|
-
__defNormalProp$5(a, prop, b[prop]);
|
|
67
|
-
}
|
|
68
|
-
return a;
|
|
69
|
-
};
|
|
70
|
-
var __objRest$5 = (source, exclude) => {
|
|
71
|
-
var target = {};
|
|
72
|
-
for (var prop in source)
|
|
73
|
-
if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
74
|
-
target[prop] = source[prop];
|
|
75
|
-
if (source != null && __getOwnPropSymbols$5)
|
|
76
|
-
for (var prop of __getOwnPropSymbols$5(source)) {
|
|
77
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
|
|
78
|
-
target[prop] = source[prop];
|
|
79
|
-
}
|
|
80
|
-
return target;
|
|
81
|
-
};
|
|
82
|
-
const Close = (_a) => {
|
|
83
|
-
var _b = _a, { title, titleId } = _b, props = __objRest$5(_b, ["title", "titleId"]);
|
|
84
|
-
return React__namespace.createElement("svg", __spreadValues$5({
|
|
85
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
-
viewBox: "0 -960 960 960",
|
|
87
|
-
"aria-labelledby": titleId
|
|
88
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
89
|
-
id: titleId
|
|
90
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
91
|
-
d: "m250.923-218.924-31.999-31.999L448.001-480 218.924-709.077l31.999-31.999L480-511.999l229.077-229.077 31.999 31.999L511.999-480l229.077 229.077-31.999 31.999L480-448.001 250.923-218.924Z"
|
|
92
|
-
}));
|
|
93
|
-
};
|
|
94
|
-
var __defProp$4 = Object.defineProperty;
|
|
95
|
-
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
96
|
-
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
97
|
-
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
98
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
configurable: true,
|
|
101
|
-
writable: true,
|
|
102
|
-
value
|
|
103
|
-
}) : obj[key] = value;
|
|
104
|
-
var __spreadValues$4 = (a, b) => {
|
|
105
|
-
for (var prop in b || (b = {}))
|
|
106
|
-
if (__hasOwnProp$4.call(b, prop))
|
|
107
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
108
|
-
if (__getOwnPropSymbols$4)
|
|
109
|
-
for (var prop of __getOwnPropSymbols$4(b)) {
|
|
110
|
-
if (__propIsEnum$4.call(b, prop))
|
|
111
|
-
__defNormalProp$4(a, prop, b[prop]);
|
|
112
|
-
}
|
|
113
|
-
return a;
|
|
114
|
-
};
|
|
115
|
-
var __objRest$4 = (source, exclude) => {
|
|
116
|
-
var target = {};
|
|
117
|
-
for (var prop in source)
|
|
118
|
-
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
119
|
-
target[prop] = source[prop];
|
|
120
|
-
if (source != null && __getOwnPropSymbols$4)
|
|
121
|
-
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
122
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
123
|
-
target[prop] = source[prop];
|
|
124
|
-
}
|
|
125
|
-
return target;
|
|
126
|
-
};
|
|
127
|
-
const Error2 = (_a) => {
|
|
128
|
-
var _b = _a, { title, titleId } = _b, props = __objRest$4(_b, ["title", "titleId"]);
|
|
129
|
-
return React__namespace.createElement("svg", __spreadValues$4({
|
|
130
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
131
|
-
viewBox: "0 -960 960 960",
|
|
132
|
-
"aria-labelledby": titleId
|
|
133
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
134
|
-
id: titleId
|
|
135
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
136
|
-
d: "M479.982-290.77q11.902 0 19.575-7.655 7.673-7.656 7.673-19.558 0-11.902-7.655-19.575t-19.557-7.673q-11.902 0-19.575 7.656-7.673 7.655-7.673 19.557 0 11.902 7.655 19.575t19.557 7.673Zm-20.443-141.076h45.383v-249.538h-45.383v249.538Zm20.794 331.845q-78.955 0-147.897-29.92t-120.755-81.71q-51.814-51.791-81.747-120.777t-29.933-148.025q0-78.655 29.92-147.864t81.71-120.522q51.791-51.314 120.777-81.247t148.025-29.933q78.655 0 147.864 29.92t120.522 81.21q51.314 51.291 81.247 120.629 29.933 69.337 29.933 147.907 0 78.955-29.92 147.897t-81.21 120.571q-51.291 51.629-120.629 81.746-69.337 30.118-147.907 30.118Zm.167-45.384q139.192 0 236.654-97.769 97.461-97.769 97.461-237.346 0-139.192-97.274-236.654Q620.067-814.615 480-814.615q-139.077 0-236.846 97.274T145.385-480q0 139.077 97.769 236.846T480.5-145.385ZM480-480Z"
|
|
137
|
-
}));
|
|
138
|
-
};
|
|
139
|
-
var __defProp$3 = Object.defineProperty;
|
|
140
|
-
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
141
|
-
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
142
|
-
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
143
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
configurable: true,
|
|
146
|
-
writable: true,
|
|
147
|
-
value
|
|
148
|
-
}) : obj[key] = value;
|
|
149
|
-
var __spreadValues$3 = (a, b) => {
|
|
150
|
-
for (var prop in b || (b = {}))
|
|
151
|
-
if (__hasOwnProp$3.call(b, prop))
|
|
152
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
153
|
-
if (__getOwnPropSymbols$3)
|
|
154
|
-
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
155
|
-
if (__propIsEnum$3.call(b, prop))
|
|
156
|
-
__defNormalProp$3(a, prop, b[prop]);
|
|
157
|
-
}
|
|
158
|
-
return a;
|
|
159
|
-
};
|
|
160
|
-
var __objRest$3 = (source, exclude) => {
|
|
161
|
-
var target = {};
|
|
162
|
-
for (var prop in source)
|
|
163
|
-
if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
164
|
-
target[prop] = source[prop];
|
|
165
|
-
if (source != null && __getOwnPropSymbols$3)
|
|
166
|
-
for (var prop of __getOwnPropSymbols$3(source)) {
|
|
167
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
|
|
168
|
-
target[prop] = source[prop];
|
|
169
|
-
}
|
|
170
|
-
return target;
|
|
171
|
-
};
|
|
172
|
-
const CheckCircle = (_a) => {
|
|
173
|
-
var _b = _a, { title, titleId } = _b, props = __objRest$3(_b, ["title", "titleId"]);
|
|
174
|
-
return React__namespace.createElement("svg", __spreadValues$3({
|
|
175
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
176
|
-
viewBox: "0 -960 960 960",
|
|
177
|
-
"aria-labelledby": titleId
|
|
178
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
179
|
-
id: titleId
|
|
180
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
181
|
-
d: "M421-311.463 690.537-581l-34.845-34.23L421-380.153 302.539-498.615l-33.846 34.23L421-311.463Zm59.067 211.462q-78.221 0-147.397-29.92-69.176-29.92-120.989-81.71-51.814-51.791-81.747-120.936-29.933-69.146-29.933-147.366 0-78.836 29.92-148.204 29.92-69.369 81.71-120.682 51.791-51.314 120.936-81.247 69.146-29.933 147.366-29.933 78.836 0 148.204 29.92 69.369 29.92 120.682 81.21 51.314 51.291 81.247 120.629 29.933 69.337 29.933 148.173 0 78.221-29.92 147.397-29.92 69.176-81.21 120.989-51.291 51.814-120.629 81.747-69.337 29.933-148.173 29.933ZM480-145.385q139.692 0 237.154-97.769Q814.615-340.923 814.615-480q0-139.692-97.461-237.154Q619.692-814.615 480-814.615q-139.077 0-236.846 97.461Q145.385-619.692 145.385-480q0 139.077 97.769 236.846T480-145.385ZM480-480Z"
|
|
182
|
-
}));
|
|
183
|
-
};
|
|
184
|
-
var __defProp$2 = Object.defineProperty;
|
|
185
|
-
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|
186
|
-
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|
187
|
-
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|
188
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
configurable: true,
|
|
191
|
-
writable: true,
|
|
192
|
-
value
|
|
193
|
-
}) : obj[key] = value;
|
|
194
|
-
var __spreadValues$2 = (a, b) => {
|
|
195
|
-
for (var prop in b || (b = {}))
|
|
196
|
-
if (__hasOwnProp$2.call(b, prop))
|
|
197
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
198
|
-
if (__getOwnPropSymbols$2)
|
|
199
|
-
for (var prop of __getOwnPropSymbols$2(b)) {
|
|
200
|
-
if (__propIsEnum$2.call(b, prop))
|
|
201
|
-
__defNormalProp$2(a, prop, b[prop]);
|
|
202
|
-
}
|
|
203
|
-
return a;
|
|
204
|
-
};
|
|
205
|
-
var __objRest$2 = (source, exclude) => {
|
|
206
|
-
var target = {};
|
|
207
|
-
for (var prop in source)
|
|
208
|
-
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
209
|
-
target[prop] = source[prop];
|
|
210
|
-
if (source != null && __getOwnPropSymbols$2)
|
|
211
|
-
for (var prop of __getOwnPropSymbols$2(source)) {
|
|
212
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|
213
|
-
target[prop] = source[prop];
|
|
214
|
-
}
|
|
215
|
-
return target;
|
|
216
|
-
};
|
|
217
|
-
const Warning = (_a) => {
|
|
218
|
-
var _b = _a, { title, titleId } = _b, props = __objRest$2(_b, ["title", "titleId"]);
|
|
219
|
-
return React__namespace.createElement("svg", __spreadValues$2({
|
|
220
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
221
|
-
viewBox: "0 -960 960 960",
|
|
222
|
-
"aria-labelledby": titleId
|
|
223
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
224
|
-
id: titleId
|
|
225
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
226
|
-
d: "M74.618-140.001 480-839.997l405.382 699.996H74.618Zm78.613-45.384h653.538L480-749.23 153.231-185.385Zm329.797-60.077q10.703 0 17.76-7.24 7.058-7.24 7.058-17.942t-7.24-17.76q-7.24-7.057-17.942-7.057t-17.76 7.239q-7.058 7.24-7.058 17.942 0 10.703 7.24 17.76 7.24 7.058 17.942 7.058Zm-22.874-97.922h45.384V-561.23h-45.384v217.846ZM480-467.307Z"
|
|
227
|
-
}));
|
|
228
|
-
};
|
|
229
|
-
var __defProp$1 = Object.defineProperty;
|
|
230
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
231
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
232
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
233
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {
|
|
234
|
-
enumerable: true,
|
|
235
|
-
configurable: true,
|
|
236
|
-
writable: true,
|
|
237
|
-
value
|
|
238
|
-
}) : obj[key] = value;
|
|
239
|
-
var __spreadValues$1 = (a, b) => {
|
|
240
|
-
for (var prop in b || (b = {}))
|
|
241
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
242
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
243
|
-
if (__getOwnPropSymbols$1)
|
|
244
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
245
|
-
if (__propIsEnum$1.call(b, prop))
|
|
246
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
247
|
-
}
|
|
248
|
-
return a;
|
|
249
|
-
};
|
|
250
|
-
var __objRest$1 = (source, exclude) => {
|
|
251
|
-
var target = {};
|
|
252
|
-
for (var prop in source)
|
|
253
|
-
if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
254
|
-
target[prop] = source[prop];
|
|
255
|
-
if (source != null && __getOwnPropSymbols$1)
|
|
256
|
-
for (var prop of __getOwnPropSymbols$1(source)) {
|
|
257
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
|
|
258
|
-
target[prop] = source[prop];
|
|
259
|
-
}
|
|
260
|
-
return target;
|
|
261
|
-
};
|
|
262
|
-
const DocumentScanner = (_a) => {
|
|
263
|
-
var _b = _a, { title, titleId } = _b, props = __objRest$1(_b, ["title", "titleId"]);
|
|
264
|
-
return React__namespace.createElement("svg", __spreadValues$1({
|
|
265
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
266
|
-
viewBox: "0 -960 960 960",
|
|
267
|
-
"aria-labelledby": titleId
|
|
268
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
269
|
-
id: titleId
|
|
270
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
271
|
-
d: "M90-748.462v-161.537h161.923v45.383H135.384v116.154H90.001Zm734.616 0v-116.154H708.462v-45.383h161.537v161.537h-45.383ZM90.001-50.001v-161.922h45.383v116.539h116.539v45.383H90.001Zm618.461 0v-45.383h116.154v-116.539h45.383v161.922H708.462ZM255.384-227.693q0 4.616 3.847 8.462 3.846 3.847 8.462 3.847h424.614q4.616 0 8.462-3.847 3.847-3.846 3.847-8.462v-504.614q0-4.616-3.847-8.462-3.846-3.847-8.462-3.847H267.693q-4.616 0-8.462 3.847-3.847 3.846-3.847 8.462v504.614Zm12.309 57.692q-23.529 0-40.611-17.081-17.081-17.082-17.081-40.611v-504.614q0-23.529 17.081-40.611 17.082-17.081 40.611-17.081h424.614q23.529 0 40.611 17.081 17.081 17.082 17.081 40.611v504.614q0 23.529-17.081 40.611-17.082 17.081-40.611 17.081H267.693Zm109.615-407.307h205.384v-45.384H377.308v45.384Zm0 120h205.384v-45.384H377.308v45.384Zm0 120h205.384v-45.384H377.308v45.384ZM255.384-227.693v-516.923 529.232-12.309Z"
|
|
272
|
-
}));
|
|
273
|
-
};
|
|
274
|
-
var __defProp2 = Object.defineProperty;
|
|
275
|
-
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
276
|
-
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
277
|
-
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
278
|
-
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
279
|
-
enumerable: true,
|
|
280
|
-
configurable: true,
|
|
281
|
-
writable: true,
|
|
282
|
-
value
|
|
283
|
-
}) : obj[key] = value;
|
|
284
|
-
var __spreadValues2 = (a, b) => {
|
|
285
|
-
for (var prop in b || (b = {}))
|
|
286
|
-
if (__hasOwnProp2.call(b, prop))
|
|
287
|
-
__defNormalProp2(a, prop, b[prop]);
|
|
288
|
-
if (__getOwnPropSymbols2)
|
|
289
|
-
for (var prop of __getOwnPropSymbols2(b)) {
|
|
290
|
-
if (__propIsEnum2.call(b, prop))
|
|
291
|
-
__defNormalProp2(a, prop, b[prop]);
|
|
292
|
-
}
|
|
293
|
-
return a;
|
|
294
|
-
};
|
|
295
|
-
var __objRest = (source, exclude) => {
|
|
296
|
-
var target = {};
|
|
297
|
-
for (var prop in source)
|
|
298
|
-
if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
299
|
-
target[prop] = source[prop];
|
|
300
|
-
if (source != null && __getOwnPropSymbols2)
|
|
301
|
-
for (var prop of __getOwnPropSymbols2(source)) {
|
|
302
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop))
|
|
303
|
-
target[prop] = source[prop];
|
|
304
|
-
}
|
|
305
|
-
return target;
|
|
306
|
-
};
|
|
307
|
-
const CurrencyExchange = (_a) => {
|
|
308
|
-
var _b = _a, { title, titleId } = _b, props = __objRest(_b, ["title", "titleId"]);
|
|
309
|
-
return React__namespace.createElement("svg", __spreadValues2({
|
|
310
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
311
|
-
viewBox: "0 -960 960 960",
|
|
312
|
-
"aria-labelledby": titleId
|
|
313
|
-
}, props), title ? React__namespace.createElement("title", {
|
|
314
|
-
id: titleId
|
|
315
|
-
}, title) : null, React__namespace.createElement("path", {
|
|
316
|
-
d: "M480-60.002q-117 0-219.654-68.884-102.654-68.885-156.884-166.194v141.231H58.078v-219.998h219.999v45.383H136.846q45.615 91.232 142.038 157.156Q375.307-105.385 480-105.385q75.692 0 142.884-28.269t117.731-77.461q50.538-49.192 80.923-116 30.384-66.807 32.692-142.884h45.384q-1.923 85.23-35.654 159.845T773.499-179.77q-56.731 55.769-132.307 87.769-75.577 32-161.192 32Zm-23.23-142.614v-52.077q-42.308-10.846-72.231-34.846-29.923-24-50.538-66.922l39.845-14.308q14.308 37.231 44.616 58.462 30.307 21.23 68.153 21.23 39.616 0 68.808-19.884 29.193-19.885 29.193-56.885 0-34.154-23.654-55.885-23.654-21.731-90.269-48.962-62.693-25-91.731-52.461-29.038-27.461-29.038-74.153 0-40.923 28.846-71.154 28.846-30.231 80-37.231v-49.077h43.845v49.077q34.923 3.231 62.154 21.692 27.23 18.462 44.23 50.385L571.385-618Q556-643.693 534-657.308q-22-13.615-52-13.615-40.154 0-64.385 19.923t-24.231 51.693q0 32.769 22.923 51.384 22.923 18.616 84.769 43 69.77 28.231 98.193 58.308 28.423 30.076 28.423 78.769 0 26.153-9.962 46.769-9.961 20.615-26.846 35.038-16.885 14.423-40.115 22.962-23.231 8.538-50.154 10.384v50.077H456.77ZM60.386-490.001q2.693-87.153 36.808-161.961 34.115-74.807 91.23-130.191 57.116-55.384 132.115-86.615 75-31.231 159.461-31.231 115.846 0 219.654 69.078 103.808 69.077 156.884 167.539v-142.769h45.384v219.998H681.923v-45.383h141.231q-44.461-89.309-140.576-156.194Q586.462-854.615 480-854.615q-74.154 0-141.346 27.884-67.192 27.885-117.923 76.692-50.73 48.808-81.692 115.615-30.961 66.808-33.269 144.423H60.386Z"
|
|
317
|
-
}));
|
|
318
|
-
};
|
|
319
|
-
var shim = { exports: {} };
|
|
320
|
-
var useSyncExternalStoreShim_production_min = {};
|
|
321
|
-
/**
|
|
322
|
-
* @license React
|
|
323
|
-
* use-sync-external-store-shim.production.min.js
|
|
324
|
-
*
|
|
325
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
326
|
-
*
|
|
327
|
-
* This source code is licensed under the MIT license found in the
|
|
328
|
-
* LICENSE file in the root directory of this source tree.
|
|
329
|
-
*/
|
|
330
|
-
var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
331
|
-
function requireUseSyncExternalStoreShim_production_min() {
|
|
332
|
-
if (hasRequiredUseSyncExternalStoreShim_production_min)
|
|
333
|
-
return useSyncExternalStoreShim_production_min;
|
|
334
|
-
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
335
|
-
var e = React;
|
|
336
|
-
function h(a, b) {
|
|
337
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
338
|
-
}
|
|
339
|
-
var k = "function" === typeof Object.is ? Object.is : h, l = e.useState, m = e.useEffect, n = e.useLayoutEffect, p = e.useDebugValue;
|
|
340
|
-
function q(a, b) {
|
|
341
|
-
var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c = f[0].inst, g = f[1];
|
|
342
|
-
n(function() {
|
|
343
|
-
c.value = d;
|
|
344
|
-
c.getSnapshot = b;
|
|
345
|
-
r(c) && g({ inst: c });
|
|
346
|
-
}, [a, d, b]);
|
|
347
|
-
m(function() {
|
|
348
|
-
r(c) && g({ inst: c });
|
|
349
|
-
return a(function() {
|
|
350
|
-
r(c) && g({ inst: c });
|
|
351
|
-
});
|
|
352
|
-
}, [a]);
|
|
353
|
-
p(d);
|
|
354
|
-
return d;
|
|
355
|
-
}
|
|
356
|
-
function r(a) {
|
|
357
|
-
var b = a.getSnapshot;
|
|
358
|
-
a = a.value;
|
|
359
|
-
try {
|
|
360
|
-
var d = b();
|
|
361
|
-
return !k(a, d);
|
|
362
|
-
} catch (f) {
|
|
363
|
-
return true;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
function t(a, b) {
|
|
367
|
-
return b();
|
|
368
|
-
}
|
|
369
|
-
var u = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t : q;
|
|
370
|
-
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e.useSyncExternalStore ? e.useSyncExternalStore : u;
|
|
371
|
-
return useSyncExternalStoreShim_production_min;
|
|
372
|
-
}
|
|
373
|
-
var useSyncExternalStoreShim_development = {};
|
|
374
|
-
/**
|
|
375
|
-
* @license React
|
|
376
|
-
* use-sync-external-store-shim.development.js
|
|
377
|
-
*
|
|
378
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
379
|
-
*
|
|
380
|
-
* This source code is licensed under the MIT license found in the
|
|
381
|
-
* LICENSE file in the root directory of this source tree.
|
|
382
|
-
*/
|
|
383
|
-
var hasRequiredUseSyncExternalStoreShim_development;
|
|
384
|
-
function requireUseSyncExternalStoreShim_development() {
|
|
385
|
-
if (hasRequiredUseSyncExternalStoreShim_development)
|
|
386
|
-
return useSyncExternalStoreShim_development;
|
|
387
|
-
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
388
|
-
if (process.env.NODE_ENV !== "production") {
|
|
389
|
-
(function() {
|
|
390
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
391
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
392
|
-
}
|
|
393
|
-
var React$1 = React;
|
|
394
|
-
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
395
|
-
function error(format) {
|
|
396
|
-
{
|
|
397
|
-
{
|
|
398
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
399
|
-
args[_key2 - 1] = arguments[_key2];
|
|
400
|
-
}
|
|
401
|
-
printWarning("error", format, args);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
function printWarning(level, format, args) {
|
|
406
|
-
{
|
|
407
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
408
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
409
|
-
if (stack !== "") {
|
|
410
|
-
format += "%s";
|
|
411
|
-
args = args.concat([stack]);
|
|
412
|
-
}
|
|
413
|
-
var argsWithFormat = args.map(function(item) {
|
|
414
|
-
return String(item);
|
|
415
|
-
});
|
|
416
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
417
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
function is(x, y) {
|
|
421
|
-
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
422
|
-
}
|
|
423
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
424
|
-
var useState = React$1.useState, useEffect = React$1.useEffect, useLayoutEffect = React$1.useLayoutEffect, useDebugValue = React$1.useDebugValue;
|
|
425
|
-
var didWarnOld18Alpha = false;
|
|
426
|
-
var didWarnUncachedGetSnapshot = false;
|
|
427
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
428
|
-
{
|
|
429
|
-
if (!didWarnOld18Alpha) {
|
|
430
|
-
if (React$1.startTransition !== void 0) {
|
|
431
|
-
didWarnOld18Alpha = true;
|
|
432
|
-
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
var value = getSnapshot();
|
|
437
|
-
{
|
|
438
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
439
|
-
var cachedValue = getSnapshot();
|
|
440
|
-
if (!objectIs(value, cachedValue)) {
|
|
441
|
-
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
442
|
-
didWarnUncachedGetSnapshot = true;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
var _useState = useState({
|
|
447
|
-
inst: {
|
|
448
|
-
value,
|
|
449
|
-
getSnapshot
|
|
450
|
-
}
|
|
451
|
-
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
452
|
-
useLayoutEffect(function() {
|
|
453
|
-
inst.value = value;
|
|
454
|
-
inst.getSnapshot = getSnapshot;
|
|
455
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
456
|
-
forceUpdate({
|
|
457
|
-
inst
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
}, [subscribe, value, getSnapshot]);
|
|
461
|
-
useEffect(function() {
|
|
462
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
463
|
-
forceUpdate({
|
|
464
|
-
inst
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
var handleStoreChange = function() {
|
|
468
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
469
|
-
forceUpdate({
|
|
470
|
-
inst
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
return subscribe(handleStoreChange);
|
|
475
|
-
}, [subscribe]);
|
|
476
|
-
useDebugValue(value);
|
|
477
|
-
return value;
|
|
478
|
-
}
|
|
479
|
-
function checkIfSnapshotChanged(inst) {
|
|
480
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
481
|
-
var prevValue = inst.value;
|
|
482
|
-
try {
|
|
483
|
-
var nextValue = latestGetSnapshot();
|
|
484
|
-
return !objectIs(prevValue, nextValue);
|
|
485
|
-
} catch (error2) {
|
|
486
|
-
return true;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
490
|
-
return getSnapshot();
|
|
491
|
-
}
|
|
492
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
493
|
-
var isServerEnvironment = !canUseDOM;
|
|
494
|
-
var shim2 = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
495
|
-
var useSyncExternalStore$2 = React$1.useSyncExternalStore !== void 0 ? React$1.useSyncExternalStore : shim2;
|
|
496
|
-
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
497
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
498
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
499
|
-
}
|
|
500
|
-
})();
|
|
501
|
-
}
|
|
502
|
-
return useSyncExternalStoreShim_development;
|
|
503
|
-
}
|
|
504
|
-
if (process.env.NODE_ENV === "production") {
|
|
505
|
-
shim.exports = requireUseSyncExternalStoreShim_production_min();
|
|
506
|
-
} else {
|
|
507
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
508
|
-
}
|
|
509
|
-
var shimExports = shim.exports;
|
|
510
|
-
const $a86207c5d7f7e1fb$var$LANDMARK_API_VERSION = 1;
|
|
511
|
-
const $a86207c5d7f7e1fb$var$landmarkSymbol = Symbol.for("react-aria-landmark-manager");
|
|
512
|
-
function $a86207c5d7f7e1fb$var$subscribe(fn) {
|
|
513
|
-
document.addEventListener("react-aria-landmark-manager-change", fn);
|
|
514
|
-
return () => document.removeEventListener("react-aria-landmark-manager-change", fn);
|
|
515
|
-
}
|
|
516
|
-
function $a86207c5d7f7e1fb$var$getLandmarkManager() {
|
|
517
|
-
if (typeof document === "undefined")
|
|
518
|
-
return null;
|
|
519
|
-
let instance = document[$a86207c5d7f7e1fb$var$landmarkSymbol];
|
|
520
|
-
if (instance && instance.version >= $a86207c5d7f7e1fb$var$LANDMARK_API_VERSION)
|
|
521
|
-
return instance;
|
|
522
|
-
document[$a86207c5d7f7e1fb$var$landmarkSymbol] = new $a86207c5d7f7e1fb$var$LandmarkManager();
|
|
523
|
-
document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change"));
|
|
524
|
-
return document[$a86207c5d7f7e1fb$var$landmarkSymbol];
|
|
525
|
-
}
|
|
526
|
-
function $a86207c5d7f7e1fb$var$useLandmarkManager() {
|
|
527
|
-
return shimExports.useSyncExternalStore($a86207c5d7f7e1fb$var$subscribe, $a86207c5d7f7e1fb$var$getLandmarkManager, $a86207c5d7f7e1fb$var$getLandmarkManager);
|
|
528
|
-
}
|
|
529
|
-
class $a86207c5d7f7e1fb$var$LandmarkManager {
|
|
530
|
-
setupIfNeeded() {
|
|
531
|
-
if (this.isListening)
|
|
532
|
-
return;
|
|
533
|
-
document.addEventListener("keydown", this.f6Handler, {
|
|
534
|
-
capture: true
|
|
535
|
-
});
|
|
536
|
-
document.addEventListener("focusin", this.focusinHandler, {
|
|
537
|
-
capture: true
|
|
538
|
-
});
|
|
539
|
-
document.addEventListener("focusout", this.focusoutHandler, {
|
|
540
|
-
capture: true
|
|
541
|
-
});
|
|
542
|
-
this.isListening = true;
|
|
543
|
-
}
|
|
544
|
-
teardownIfNeeded() {
|
|
545
|
-
if (!this.isListening || this.landmarks.length > 0 || this.refCount > 0)
|
|
546
|
-
return;
|
|
547
|
-
document.removeEventListener("keydown", this.f6Handler, {
|
|
548
|
-
capture: true
|
|
549
|
-
});
|
|
550
|
-
document.removeEventListener("focusin", this.focusinHandler, {
|
|
551
|
-
capture: true
|
|
552
|
-
});
|
|
553
|
-
document.removeEventListener("focusout", this.focusoutHandler, {
|
|
554
|
-
capture: true
|
|
555
|
-
});
|
|
556
|
-
this.isListening = false;
|
|
557
|
-
}
|
|
558
|
-
focusLandmark(landmark, direction) {
|
|
559
|
-
var _this_landmarks_find, _this_landmarks_find_focus;
|
|
560
|
-
(_this_landmarks_find = this.landmarks.find((l) => l.ref.current === landmark)) === null || _this_landmarks_find === void 0 ? void 0 : (_this_landmarks_find_focus = _this_landmarks_find.focus) === null || _this_landmarks_find_focus === void 0 ? void 0 : _this_landmarks_find_focus.call(_this_landmarks_find, direction);
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Return set of landmarks with a specific role.
|
|
564
|
-
*/
|
|
565
|
-
getLandmarksByRole(role) {
|
|
566
|
-
return new Set(this.landmarks.filter((l) => l.role === role));
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Return first landmark with a specific role.
|
|
570
|
-
*/
|
|
571
|
-
getLandmarkByRole(role) {
|
|
572
|
-
return this.landmarks.find((l) => l.role === role);
|
|
573
|
-
}
|
|
574
|
-
addLandmark(newLandmark) {
|
|
575
|
-
this.setupIfNeeded();
|
|
576
|
-
if (this.landmarks.find((landmark) => landmark.ref === newLandmark.ref) || !newLandmark.ref.current)
|
|
577
|
-
return;
|
|
578
|
-
if (this.landmarks.filter((landmark) => landmark.role === "main").length > 1)
|
|
579
|
-
console.error('Page can contain no more than one landmark with the role "main".');
|
|
580
|
-
if (this.landmarks.length === 0) {
|
|
581
|
-
this.landmarks = [
|
|
582
|
-
newLandmark
|
|
583
|
-
];
|
|
584
|
-
this.checkLabels(newLandmark.role);
|
|
585
|
-
return;
|
|
586
|
-
}
|
|
587
|
-
let start = 0;
|
|
588
|
-
let end = this.landmarks.length - 1;
|
|
589
|
-
while (start <= end) {
|
|
590
|
-
let mid = Math.floor((start + end) / 2);
|
|
591
|
-
let comparedPosition = newLandmark.ref.current.compareDocumentPosition(this.landmarks[mid].ref.current);
|
|
592
|
-
let isNewAfterExisting = Boolean(comparedPosition & Node.DOCUMENT_POSITION_PRECEDING || comparedPosition & Node.DOCUMENT_POSITION_CONTAINS);
|
|
593
|
-
if (isNewAfterExisting)
|
|
594
|
-
start = mid + 1;
|
|
595
|
-
else
|
|
596
|
-
end = mid - 1;
|
|
597
|
-
}
|
|
598
|
-
this.landmarks.splice(start, 0, newLandmark);
|
|
599
|
-
this.checkLabels(newLandmark.role);
|
|
600
|
-
}
|
|
601
|
-
updateLandmark(landmark) {
|
|
602
|
-
let index = this.landmarks.findIndex((l) => l.ref === landmark.ref);
|
|
603
|
-
if (index >= 0) {
|
|
604
|
-
this.landmarks[index] = __spreadValues(__spreadValues({}, this.landmarks[index]), landmark);
|
|
605
|
-
this.checkLabels(this.landmarks[index].role);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
removeLandmark(ref) {
|
|
609
|
-
this.landmarks = this.landmarks.filter((landmark) => landmark.ref !== ref);
|
|
610
|
-
this.teardownIfNeeded();
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* Warn if there are 2+ landmarks with the same role but no label.
|
|
614
|
-
* Labels for landmarks with the same role must also be unique.
|
|
615
|
-
*
|
|
616
|
-
* See https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/.
|
|
617
|
-
*/
|
|
618
|
-
checkLabels(role) {
|
|
619
|
-
let landmarksWithRole = this.getLandmarksByRole(role);
|
|
620
|
-
if (landmarksWithRole.size > 1) {
|
|
621
|
-
let duplicatesWithoutLabel = [
|
|
622
|
-
...landmarksWithRole
|
|
623
|
-
].filter((landmark) => !landmark.label);
|
|
624
|
-
if (duplicatesWithoutLabel.length > 0)
|
|
625
|
-
console.warn(`Page contains more than one landmark with the '${role}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `, duplicatesWithoutLabel.map((landmark) => landmark.ref.current));
|
|
626
|
-
else {
|
|
627
|
-
let labels = [
|
|
628
|
-
...landmarksWithRole
|
|
629
|
-
].map((landmark) => landmark.label);
|
|
630
|
-
let duplicateLabels = labels.filter((item, index) => labels.indexOf(item) !== index);
|
|
631
|
-
duplicateLabels.forEach((label) => {
|
|
632
|
-
console.warn(`Page contains more than one landmark with the '${role}' role and '${label}' label. If two or more landmarks on a page share the same role, they must have unique labels: `, [
|
|
633
|
-
...landmarksWithRole
|
|
634
|
-
].filter((landmark) => landmark.label === label).map((landmark) => landmark.ref.current));
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
/**
|
|
640
|
-
* Get the landmark that is the closest parent in the DOM.
|
|
641
|
-
* Returns undefined if no parent is a landmark.
|
|
642
|
-
*/
|
|
643
|
-
closestLandmark(element) {
|
|
644
|
-
let landmarkMap = new Map(this.landmarks.map((l) => [
|
|
645
|
-
l.ref.current,
|
|
646
|
-
l
|
|
647
|
-
]));
|
|
648
|
-
let currentElement = element;
|
|
649
|
-
while (currentElement && !landmarkMap.has(currentElement) && currentElement !== document.body && currentElement.parentElement)
|
|
650
|
-
currentElement = currentElement.parentElement;
|
|
651
|
-
return landmarkMap.get(currentElement);
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Gets the next landmark, in DOM focus order, or previous if backwards is specified.
|
|
655
|
-
* If last landmark, next should be the first landmark.
|
|
656
|
-
* If not inside a landmark, will return first landmark.
|
|
657
|
-
* Returns undefined if there are no landmarks.
|
|
658
|
-
*/
|
|
659
|
-
getNextLandmark(element, { backward }) {
|
|
660
|
-
var _this_landmarks_nextLandmarkIndex_ref_current;
|
|
661
|
-
let currentLandmark = this.closestLandmark(element);
|
|
662
|
-
let nextLandmarkIndex = backward ? this.landmarks.length - 1 : 0;
|
|
663
|
-
if (currentLandmark)
|
|
664
|
-
nextLandmarkIndex = this.landmarks.indexOf(currentLandmark) + (backward ? -1 : 1);
|
|
665
|
-
let wrapIfNeeded = () => {
|
|
666
|
-
if (nextLandmarkIndex < 0) {
|
|
667
|
-
if (!element.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
668
|
-
detail: {
|
|
669
|
-
direction: "backward"
|
|
670
|
-
},
|
|
671
|
-
bubbles: true,
|
|
672
|
-
cancelable: true
|
|
673
|
-
})))
|
|
674
|
-
return true;
|
|
675
|
-
nextLandmarkIndex = this.landmarks.length - 1;
|
|
676
|
-
} else if (nextLandmarkIndex >= this.landmarks.length) {
|
|
677
|
-
if (!element.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
678
|
-
detail: {
|
|
679
|
-
direction: "forward"
|
|
680
|
-
},
|
|
681
|
-
bubbles: true,
|
|
682
|
-
cancelable: true
|
|
683
|
-
})))
|
|
684
|
-
return true;
|
|
685
|
-
nextLandmarkIndex = 0;
|
|
686
|
-
}
|
|
687
|
-
if (nextLandmarkIndex < 0 || nextLandmarkIndex >= this.landmarks.length)
|
|
688
|
-
return true;
|
|
689
|
-
return false;
|
|
690
|
-
};
|
|
691
|
-
if (wrapIfNeeded())
|
|
692
|
-
return void 0;
|
|
693
|
-
let i = nextLandmarkIndex;
|
|
694
|
-
while ((_this_landmarks_nextLandmarkIndex_ref_current = this.landmarks[nextLandmarkIndex].ref.current) === null || _this_landmarks_nextLandmarkIndex_ref_current === void 0 ? void 0 : _this_landmarks_nextLandmarkIndex_ref_current.closest("[aria-hidden=true]")) {
|
|
695
|
-
nextLandmarkIndex += backward ? -1 : 1;
|
|
696
|
-
if (wrapIfNeeded())
|
|
697
|
-
return void 0;
|
|
698
|
-
if (nextLandmarkIndex === i)
|
|
699
|
-
break;
|
|
700
|
-
}
|
|
701
|
-
return this.landmarks[nextLandmarkIndex];
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* Look at next landmark. If an element was previously focused inside, restore focus there.
|
|
705
|
-
* If not, focus the landmark itself.
|
|
706
|
-
* If no landmarks at all, or none with focusable elements, don't move focus.
|
|
707
|
-
*/
|
|
708
|
-
f6Handler(e) {
|
|
709
|
-
if (e.key === "F6") {
|
|
710
|
-
let handled = e.altKey ? this.focusMain() : this.navigate(e.target, e.shiftKey);
|
|
711
|
-
if (handled) {
|
|
712
|
-
e.preventDefault();
|
|
713
|
-
e.stopPropagation();
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
focusMain() {
|
|
718
|
-
let main = this.getLandmarkByRole("main");
|
|
719
|
-
if (main && main.ref.current && document.contains(main.ref.current)) {
|
|
720
|
-
this.focusLandmark(main.ref.current, "forward");
|
|
721
|
-
return true;
|
|
722
|
-
}
|
|
723
|
-
return false;
|
|
724
|
-
}
|
|
725
|
-
navigate(from, backward) {
|
|
726
|
-
let nextLandmark = this.getNextLandmark(from, {
|
|
727
|
-
backward
|
|
728
|
-
});
|
|
729
|
-
if (!nextLandmark)
|
|
730
|
-
return false;
|
|
731
|
-
if (nextLandmark.lastFocused) {
|
|
732
|
-
let lastFocused = nextLandmark.lastFocused;
|
|
733
|
-
if (document.body.contains(lastFocused)) {
|
|
734
|
-
lastFocused.focus();
|
|
735
|
-
return true;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
if (nextLandmark.ref.current && document.contains(nextLandmark.ref.current)) {
|
|
739
|
-
this.focusLandmark(nextLandmark.ref.current, backward ? "backward" : "forward");
|
|
740
|
-
return true;
|
|
741
|
-
}
|
|
742
|
-
return false;
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* Sets lastFocused for a landmark, if focus is moved within that landmark.
|
|
746
|
-
* Lets the last focused landmark know it was blurred if something else is focused.
|
|
747
|
-
*/
|
|
748
|
-
focusinHandler(e) {
|
|
749
|
-
let currentLandmark = this.closestLandmark(e.target);
|
|
750
|
-
if (currentLandmark && currentLandmark.ref.current !== e.target)
|
|
751
|
-
this.updateLandmark({
|
|
752
|
-
ref: currentLandmark.ref,
|
|
753
|
-
lastFocused: e.target
|
|
754
|
-
});
|
|
755
|
-
let previousFocusedElement = e.relatedTarget;
|
|
756
|
-
if (previousFocusedElement) {
|
|
757
|
-
let closestPreviousLandmark = this.closestLandmark(previousFocusedElement);
|
|
758
|
-
if (closestPreviousLandmark && closestPreviousLandmark.ref.current === previousFocusedElement)
|
|
759
|
-
closestPreviousLandmark.blur();
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* Track if the focus is lost to the body. If it is, do cleanup on the landmark that last had focus.
|
|
764
|
-
*/
|
|
765
|
-
focusoutHandler(e) {
|
|
766
|
-
let previousFocusedElement = e.target;
|
|
767
|
-
let nextFocusedElement = e.relatedTarget;
|
|
768
|
-
if (!nextFocusedElement || nextFocusedElement === document) {
|
|
769
|
-
let closestPreviousLandmark = this.closestLandmark(previousFocusedElement);
|
|
770
|
-
if (closestPreviousLandmark && closestPreviousLandmark.ref.current === previousFocusedElement)
|
|
771
|
-
closestPreviousLandmark.blur();
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
createLandmarkController() {
|
|
775
|
-
let instance = this;
|
|
776
|
-
instance.refCount++;
|
|
777
|
-
instance.setupIfNeeded();
|
|
778
|
-
return {
|
|
779
|
-
navigate(direction, opts) {
|
|
780
|
-
let element = (opts === null || opts === void 0 ? void 0 : opts.from) || document.activeElement;
|
|
781
|
-
return instance.navigate(element, direction === "backward");
|
|
782
|
-
},
|
|
783
|
-
focusNext(opts) {
|
|
784
|
-
let element = (opts === null || opts === void 0 ? void 0 : opts.from) || document.activeElement;
|
|
785
|
-
return instance.navigate(element, false);
|
|
786
|
-
},
|
|
787
|
-
focusPrevious(opts) {
|
|
788
|
-
let element = (opts === null || opts === void 0 ? void 0 : opts.from) || document.activeElement;
|
|
789
|
-
return instance.navigate(element, true);
|
|
790
|
-
},
|
|
791
|
-
focusMain() {
|
|
792
|
-
return instance.focusMain();
|
|
793
|
-
},
|
|
794
|
-
dispose() {
|
|
795
|
-
if (instance) {
|
|
796
|
-
instance.refCount--;
|
|
797
|
-
instance.teardownIfNeeded();
|
|
798
|
-
instance = null;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
registerLandmark(landmark) {
|
|
804
|
-
if (this.landmarks.find((l) => l.ref === landmark.ref))
|
|
805
|
-
this.updateLandmark(landmark);
|
|
806
|
-
else
|
|
807
|
-
this.addLandmark(landmark);
|
|
808
|
-
return () => this.removeLandmark(landmark.ref);
|
|
809
|
-
}
|
|
810
|
-
constructor() {
|
|
811
|
-
this.landmarks = [];
|
|
812
|
-
this.isListening = false;
|
|
813
|
-
this.refCount = 0;
|
|
814
|
-
this.version = $a86207c5d7f7e1fb$var$LANDMARK_API_VERSION;
|
|
815
|
-
this.f6Handler = this.f6Handler.bind(this);
|
|
816
|
-
this.focusinHandler = this.focusinHandler.bind(this);
|
|
817
|
-
this.focusoutHandler = this.focusoutHandler.bind(this);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
function $a86207c5d7f7e1fb$export$4cc632584fd87fae(props, ref) {
|
|
821
|
-
const { role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, focus } = props;
|
|
822
|
-
let manager = $a86207c5d7f7e1fb$var$useLandmarkManager();
|
|
823
|
-
let label = ariaLabel || ariaLabelledby;
|
|
824
|
-
let [isLandmarkFocused, setIsLandmarkFocused] = React.useState(false);
|
|
825
|
-
let defaultFocus = React.useCallback(() => {
|
|
826
|
-
setIsLandmarkFocused(true);
|
|
827
|
-
}, [
|
|
828
|
-
setIsLandmarkFocused
|
|
829
|
-
]);
|
|
830
|
-
let blur = React.useCallback(() => {
|
|
831
|
-
setIsLandmarkFocused(false);
|
|
832
|
-
}, [
|
|
833
|
-
setIsLandmarkFocused
|
|
834
|
-
]);
|
|
835
|
-
_import.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
836
|
-
if (manager)
|
|
837
|
-
return manager.registerLandmark({
|
|
838
|
-
ref,
|
|
839
|
-
label,
|
|
840
|
-
role,
|
|
841
|
-
focus: focus || defaultFocus,
|
|
842
|
-
blur
|
|
843
|
-
});
|
|
844
|
-
}, [
|
|
845
|
-
manager,
|
|
846
|
-
label,
|
|
847
|
-
ref,
|
|
848
|
-
role,
|
|
849
|
-
focus,
|
|
850
|
-
defaultFocus,
|
|
851
|
-
blur
|
|
852
|
-
]);
|
|
853
|
-
React.useEffect(() => {
|
|
854
|
-
var _ref_current;
|
|
855
|
-
if (isLandmarkFocused)
|
|
856
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
|
|
857
|
-
}, [
|
|
858
|
-
isLandmarkFocused,
|
|
859
|
-
ref
|
|
860
|
-
]);
|
|
861
|
-
return {
|
|
862
|
-
landmarkProps: {
|
|
863
|
-
role,
|
|
864
|
-
tabIndex: isLandmarkFocused ? -1 : void 0,
|
|
865
|
-
"aria-label": ariaLabel,
|
|
866
|
-
"aria-labelledby": ariaLabelledby
|
|
867
|
-
}
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
function $parcel$interopDefault(a) {
|
|
871
|
-
return a && a.__esModule ? a.default : a;
|
|
872
|
-
}
|
|
873
|
-
var $7853651519a70071$exports = {};
|
|
874
|
-
var $ff9177efc58547ad$exports = {};
|
|
875
|
-
$ff9177efc58547ad$exports = {
|
|
876
|
-
"close": `إغلاق`,
|
|
877
|
-
"notifications": `إشعارات`
|
|
878
|
-
};
|
|
879
|
-
var $25eb7c0c0c45e544$exports = {};
|
|
880
|
-
$25eb7c0c0c45e544$exports = {
|
|
881
|
-
"close": `Затвори`,
|
|
882
|
-
"notifications": `Известия`
|
|
883
|
-
};
|
|
884
|
-
var $28feffc3d61a8691$exports = {};
|
|
885
|
-
$28feffc3d61a8691$exports = {
|
|
886
|
-
"close": `Zavřít`,
|
|
887
|
-
"notifications": `Upozornění`
|
|
888
|
-
};
|
|
889
|
-
var $390d441203d25ff4$exports = {};
|
|
890
|
-
$390d441203d25ff4$exports = {
|
|
891
|
-
"close": `Luk`,
|
|
892
|
-
"notifications": `Påmindelser`
|
|
893
|
-
};
|
|
894
|
-
var $7063c2d0f14f979a$exports = {};
|
|
895
|
-
$7063c2d0f14f979a$exports = {
|
|
896
|
-
"close": `Schließen`,
|
|
897
|
-
"notifications": `Benachrichtigungen`
|
|
898
|
-
};
|
|
899
|
-
var $2dfc1dbb6590af88$exports = {};
|
|
900
|
-
$2dfc1dbb6590af88$exports = {
|
|
901
|
-
"close": `Κλείσιμο`,
|
|
902
|
-
"notifications": `Ειδοποιήσεις`
|
|
903
|
-
};
|
|
904
|
-
var $9a12ff1caae5a7a5$exports = {};
|
|
905
|
-
$9a12ff1caae5a7a5$exports = {
|
|
906
|
-
"close": `Close`,
|
|
907
|
-
"notifications": `Notifications`
|
|
908
|
-
};
|
|
909
|
-
var $f4095fb5a72adbe6$exports = {};
|
|
910
|
-
$f4095fb5a72adbe6$exports = {
|
|
911
|
-
"close": `Cerrar`,
|
|
912
|
-
"notifications": `Notificaciones`
|
|
913
|
-
};
|
|
914
|
-
var $75bc5191b9d7826a$exports = {};
|
|
915
|
-
$75bc5191b9d7826a$exports = {
|
|
916
|
-
"close": `Sule`,
|
|
917
|
-
"notifications": `Teated`
|
|
918
|
-
};
|
|
919
|
-
var $e4b9aef18b0db8dc$exports = {};
|
|
920
|
-
$e4b9aef18b0db8dc$exports = {
|
|
921
|
-
"close": `Sulje`,
|
|
922
|
-
"notifications": `Ilmoitukset`
|
|
923
|
-
};
|
|
924
|
-
var $888756784d832bd7$exports = {};
|
|
925
|
-
$888756784d832bd7$exports = {
|
|
926
|
-
"close": `Fermer`,
|
|
927
|
-
"notifications": `Notifications`
|
|
928
|
-
};
|
|
929
|
-
var $6835949b68a1fabf$exports = {};
|
|
930
|
-
$6835949b68a1fabf$exports = {
|
|
931
|
-
"close": `סגור`,
|
|
932
|
-
"notifications": `התראות`
|
|
933
|
-
};
|
|
934
|
-
var $87ffcbc0b651e40b$exports = {};
|
|
935
|
-
$87ffcbc0b651e40b$exports = {
|
|
936
|
-
"close": `Zatvori`,
|
|
937
|
-
"notifications": `Obavijesti`
|
|
938
|
-
};
|
|
939
|
-
var $dc6e3b2813600d69$exports = {};
|
|
940
|
-
$dc6e3b2813600d69$exports = {
|
|
941
|
-
"close": `Bezárás`,
|
|
942
|
-
"notifications": `Értesítések`
|
|
943
|
-
};
|
|
944
|
-
var $fe136bcbacfcfa14$exports = {};
|
|
945
|
-
$fe136bcbacfcfa14$exports = {
|
|
946
|
-
"close": `Chiudi`,
|
|
947
|
-
"notifications": `Notifiche`
|
|
948
|
-
};
|
|
949
|
-
var $8fb53a929b46df83$exports = {};
|
|
950
|
-
$8fb53a929b46df83$exports = {
|
|
951
|
-
"close": `閉じる`,
|
|
952
|
-
"notifications": `通知`
|
|
953
|
-
};
|
|
954
|
-
var $2c38dbfaf041a865$exports = {};
|
|
955
|
-
$2c38dbfaf041a865$exports = {
|
|
956
|
-
"close": `닫기`,
|
|
957
|
-
"notifications": `알림`
|
|
958
|
-
};
|
|
959
|
-
var $48f3f33a29908d4c$exports = {};
|
|
960
|
-
$48f3f33a29908d4c$exports = {
|
|
961
|
-
"close": `Uždaryti`,
|
|
962
|
-
"notifications": `Pranešimai`
|
|
963
|
-
};
|
|
964
|
-
var $9867160d996455a0$exports = {};
|
|
965
|
-
$9867160d996455a0$exports = {
|
|
966
|
-
"close": `Aizvērt`,
|
|
967
|
-
"notifications": `Paziņojumi`
|
|
968
|
-
};
|
|
969
|
-
var $196258ea25c96487$exports = {};
|
|
970
|
-
$196258ea25c96487$exports = {
|
|
971
|
-
"close": `Lukk`,
|
|
972
|
-
"notifications": `Varsler`
|
|
973
|
-
};
|
|
974
|
-
var $949061cb954e8000$exports = {};
|
|
975
|
-
$949061cb954e8000$exports = {
|
|
976
|
-
"close": `Sluiten`,
|
|
977
|
-
"notifications": `Meldingen`
|
|
978
|
-
};
|
|
979
|
-
var $8189bed27add1ad3$exports = {};
|
|
980
|
-
$8189bed27add1ad3$exports = {
|
|
981
|
-
"close": `Zamknij`,
|
|
982
|
-
"notifications": `Powiadomienia`
|
|
983
|
-
};
|
|
984
|
-
var $a361756a93b6e28c$exports = {};
|
|
985
|
-
$a361756a93b6e28c$exports = {
|
|
986
|
-
"close": `Fechar`,
|
|
987
|
-
"notifications": `Notificações`
|
|
988
|
-
};
|
|
989
|
-
var $034c7393857c8db0$exports = {};
|
|
990
|
-
$034c7393857c8db0$exports = {
|
|
991
|
-
"close": `Fechar`,
|
|
992
|
-
"notifications": `Notificações`
|
|
993
|
-
};
|
|
994
|
-
var $e33d3b3868478b04$exports = {};
|
|
995
|
-
$e33d3b3868478b04$exports = {
|
|
996
|
-
"close": `Închideţi`,
|
|
997
|
-
"notifications": `Notificări`
|
|
998
|
-
};
|
|
999
|
-
var $9a7dcb914b29cd9f$exports = {};
|
|
1000
|
-
$9a7dcb914b29cd9f$exports = {
|
|
1001
|
-
"close": `Закрыть`,
|
|
1002
|
-
"notifications": `Уведомления`
|
|
1003
|
-
};
|
|
1004
|
-
var $e43d964a0c7f1266$exports = {};
|
|
1005
|
-
$e43d964a0c7f1266$exports = {
|
|
1006
|
-
"close": `Zatvoriť`,
|
|
1007
|
-
"notifications": `Oznámenia`
|
|
1008
|
-
};
|
|
1009
|
-
var $0bc56cee3275bcaa$exports = {};
|
|
1010
|
-
$0bc56cee3275bcaa$exports = {
|
|
1011
|
-
"close": `Zapri`,
|
|
1012
|
-
"notifications": `Obvestila`
|
|
1013
|
-
};
|
|
1014
|
-
var $7dbdd7289c10d2ba$exports = {};
|
|
1015
|
-
$7dbdd7289c10d2ba$exports = {
|
|
1016
|
-
"close": `Zatvori`,
|
|
1017
|
-
"notifications": `Obaveštenja`
|
|
1018
|
-
};
|
|
1019
|
-
var $ccbe6066c10b1e53$exports = {};
|
|
1020
|
-
$ccbe6066c10b1e53$exports = {
|
|
1021
|
-
"close": `Stäng`,
|
|
1022
|
-
"notifications": `Aviseringar`
|
|
1023
|
-
};
|
|
1024
|
-
var $9d503476b9d858b7$exports = {};
|
|
1025
|
-
$9d503476b9d858b7$exports = {
|
|
1026
|
-
"close": `Kapat`,
|
|
1027
|
-
"notifications": `Bildirimler`
|
|
1028
|
-
};
|
|
1029
|
-
var $32ee419c7b9b7a83$exports = {};
|
|
1030
|
-
$32ee419c7b9b7a83$exports = {
|
|
1031
|
-
"close": `Закрити`,
|
|
1032
|
-
"notifications": `Сповіщення`
|
|
1033
|
-
};
|
|
1034
|
-
var $122525af1cb737c7$exports = {};
|
|
1035
|
-
$122525af1cb737c7$exports = {
|
|
1036
|
-
"close": `关闭`,
|
|
1037
|
-
"notifications": `通知`
|
|
1038
|
-
};
|
|
1039
|
-
var $52e8b1b00094e5a3$exports = {};
|
|
1040
|
-
$52e8b1b00094e5a3$exports = {
|
|
1041
|
-
"close": `關閉`,
|
|
1042
|
-
"notifications": `通知`
|
|
1043
|
-
};
|
|
1044
|
-
$7853651519a70071$exports = {
|
|
1045
|
-
"ar-AE": $ff9177efc58547ad$exports,
|
|
1046
|
-
"bg-BG": $25eb7c0c0c45e544$exports,
|
|
1047
|
-
"cs-CZ": $28feffc3d61a8691$exports,
|
|
1048
|
-
"da-DK": $390d441203d25ff4$exports,
|
|
1049
|
-
"de-DE": $7063c2d0f14f979a$exports,
|
|
1050
|
-
"el-GR": $2dfc1dbb6590af88$exports,
|
|
1051
|
-
"en-US": $9a12ff1caae5a7a5$exports,
|
|
1052
|
-
"es-ES": $f4095fb5a72adbe6$exports,
|
|
1053
|
-
"et-EE": $75bc5191b9d7826a$exports,
|
|
1054
|
-
"fi-FI": $e4b9aef18b0db8dc$exports,
|
|
1055
|
-
"fr-FR": $888756784d832bd7$exports,
|
|
1056
|
-
"he-IL": $6835949b68a1fabf$exports,
|
|
1057
|
-
"hr-HR": $87ffcbc0b651e40b$exports,
|
|
1058
|
-
"hu-HU": $dc6e3b2813600d69$exports,
|
|
1059
|
-
"it-IT": $fe136bcbacfcfa14$exports,
|
|
1060
|
-
"ja-JP": $8fb53a929b46df83$exports,
|
|
1061
|
-
"ko-KR": $2c38dbfaf041a865$exports,
|
|
1062
|
-
"lt-LT": $48f3f33a29908d4c$exports,
|
|
1063
|
-
"lv-LV": $9867160d996455a0$exports,
|
|
1064
|
-
"nb-NO": $196258ea25c96487$exports,
|
|
1065
|
-
"nl-NL": $949061cb954e8000$exports,
|
|
1066
|
-
"pl-PL": $8189bed27add1ad3$exports,
|
|
1067
|
-
"pt-BR": $a361756a93b6e28c$exports,
|
|
1068
|
-
"pt-PT": $034c7393857c8db0$exports,
|
|
1069
|
-
"ro-RO": $e33d3b3868478b04$exports,
|
|
1070
|
-
"ru-RU": $9a7dcb914b29cd9f$exports,
|
|
1071
|
-
"sk-SK": $e43d964a0c7f1266$exports,
|
|
1072
|
-
"sl-SI": $0bc56cee3275bcaa$exports,
|
|
1073
|
-
"sr-SP": $7dbdd7289c10d2ba$exports,
|
|
1074
|
-
"sv-SE": $ccbe6066c10b1e53$exports,
|
|
1075
|
-
"tr-TR": $9d503476b9d858b7$exports,
|
|
1076
|
-
"uk-UA": $32ee419c7b9b7a83$exports,
|
|
1077
|
-
"zh-CN": $122525af1cb737c7$exports,
|
|
1078
|
-
"zh-TW": $52e8b1b00094e5a3$exports
|
|
1079
|
-
};
|
|
1080
|
-
function $d6542812f0669241$export$a407b657d3044108(props, state, ref) {
|
|
1081
|
-
let { key, timer, timeout, animation } = props.toast;
|
|
1082
|
-
React.useEffect(() => {
|
|
1083
|
-
if (!timer)
|
|
1084
|
-
return;
|
|
1085
|
-
timer.reset(timeout);
|
|
1086
|
-
return () => {
|
|
1087
|
-
timer.pause();
|
|
1088
|
-
};
|
|
1089
|
-
}, [
|
|
1090
|
-
timer,
|
|
1091
|
-
timeout
|
|
1092
|
-
]);
|
|
1093
|
-
let focusOnUnmount = React.useRef(null);
|
|
1094
|
-
_import.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1095
|
-
let container2 = ref.current.closest("[role=region]");
|
|
1096
|
-
return () => {
|
|
1097
|
-
if (container2 && container2.contains(document.activeElement))
|
|
1098
|
-
focusOnUnmount.current = container2;
|
|
1099
|
-
};
|
|
1100
|
-
}, [
|
|
1101
|
-
ref
|
|
1102
|
-
]);
|
|
1103
|
-
React.useEffect(() => {
|
|
1104
|
-
return () => {
|
|
1105
|
-
if (focusOnUnmount.current)
|
|
1106
|
-
focusOnUnmount.current.focus();
|
|
1107
|
-
};
|
|
1108
|
-
}, [
|
|
1109
|
-
ref
|
|
1110
|
-
]);
|
|
1111
|
-
let titleId = _import.$bdb11010cef70236$export$f680877a34711e37();
|
|
1112
|
-
let descriptionId = _import.$bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
1113
|
-
let stringFormatter = realModule.$fca6afa0e843324b$export$f12b703ca79dfbb1(/* @__PURE__ */ $parcel$interopDefault($7853651519a70071$exports));
|
|
1114
|
-
return {
|
|
1115
|
-
toastProps: {
|
|
1116
|
-
role: "alert",
|
|
1117
|
-
"aria-label": props["aria-label"],
|
|
1118
|
-
"aria-labelledby": props["aria-labelledby"] || titleId,
|
|
1119
|
-
"aria-describedby": props["aria-describedby"] || descriptionId,
|
|
1120
|
-
"aria-details": props["aria-details"],
|
|
1121
|
-
// Hide toasts that are animating out so VoiceOver doesn't announce them.
|
|
1122
|
-
"aria-hidden": animation === "exiting" ? "true" : void 0
|
|
1123
|
-
},
|
|
1124
|
-
titleProps: {
|
|
1125
|
-
id: titleId
|
|
1126
|
-
},
|
|
1127
|
-
descriptionProps: {
|
|
1128
|
-
id: descriptionId
|
|
1129
|
-
},
|
|
1130
|
-
closeButtonProps: {
|
|
1131
|
-
"aria-label": stringFormatter.format("close"),
|
|
1132
|
-
onPress: () => state.close(key)
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1136
|
-
function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
1137
|
-
let stringFormatter = realModule.$fca6afa0e843324b$export$f12b703ca79dfbb1(/* @__PURE__ */ $parcel$interopDefault($7853651519a70071$exports));
|
|
1138
|
-
let { landmarkProps } = $a86207c5d7f7e1fb$export$4cc632584fd87fae({
|
|
1139
|
-
role: "region",
|
|
1140
|
-
"aria-label": props["aria-label"] || stringFormatter.format("notifications")
|
|
1141
|
-
}, ref);
|
|
1142
|
-
let { hoverProps } = _import$1.$6179b936705e76d3$export$ae780daf29e6d456({
|
|
1143
|
-
onHoverStart: state.pauseAll,
|
|
1144
|
-
onHoverEnd: state.resumeAll
|
|
1145
|
-
});
|
|
1146
|
-
let lastFocused = React.useRef(null);
|
|
1147
|
-
let { focusWithinProps } = _import$1.$9ab94262bd0047c7$export$420e68273165f4ec({
|
|
1148
|
-
onFocusWithin: (e) => {
|
|
1149
|
-
state.pauseAll();
|
|
1150
|
-
lastFocused.current = e.relatedTarget;
|
|
1151
|
-
},
|
|
1152
|
-
onBlurWithin: () => {
|
|
1153
|
-
state.resumeAll();
|
|
1154
|
-
lastFocused.current = null;
|
|
1155
|
-
}
|
|
1156
|
-
});
|
|
1157
|
-
React.useEffect(() => {
|
|
1158
|
-
return () => {
|
|
1159
|
-
if (lastFocused.current && document.body.contains(lastFocused.current)) {
|
|
1160
|
-
if (_import$1.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer")
|
|
1161
|
-
_import.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
1162
|
-
else
|
|
1163
|
-
lastFocused.current.focus();
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
}, [
|
|
1167
|
-
ref
|
|
1168
|
-
]);
|
|
1169
|
-
return {
|
|
1170
|
-
regionProps: _import.$3ef42575df84b30b$export$9d1611c77c2fe928(landmarkProps, hoverProps, focusWithinProps, {
|
|
1171
|
-
tabIndex: -1,
|
|
1172
|
-
// Mark the toast region as a "top layer", so that it:
|
|
1173
|
-
// - is not aria-hidden when opening an overlay
|
|
1174
|
-
// - allows focus even outside a containing focus scope
|
|
1175
|
-
// - doesn’t dismiss overlays when clicking on it, even though it is outside
|
|
1176
|
-
// @ts-ignore
|
|
1177
|
-
"data-react-aria-top-layer": true
|
|
1178
|
-
})
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
const statusPromotional = "_statusPromotional_15qbm_5";
|
|
1182
|
-
const statusSuccess = "_statusSuccess_15qbm_10";
|
|
1183
|
-
const statusNeutral = "_statusNeutral_15qbm_15";
|
|
1184
|
-
const statusWarning = "_statusWarning_15qbm_20";
|
|
1185
|
-
const statusError = "_statusError_15qbm_25";
|
|
1186
|
-
const typeToast = "_typeToast_15qbm_30";
|
|
1187
|
-
const typeAlert = "_typeAlert_15qbm_34";
|
|
1188
|
-
const Notification$1 = "_Notification_15qbm_39";
|
|
1189
|
-
const iconText = "_iconText_15qbm_55";
|
|
1190
|
-
const closeButton = "_closeButton_15qbm_61";
|
|
1191
|
-
const region = "_region_15qbm_71";
|
|
1192
|
-
const container = "_container_15qbm_77";
|
|
1193
|
-
const styles = {
|
|
1194
|
-
statusPromotional,
|
|
1195
|
-
statusSuccess,
|
|
1196
|
-
statusNeutral,
|
|
1197
|
-
statusWarning,
|
|
1198
|
-
statusError,
|
|
1199
|
-
typeToast,
|
|
1200
|
-
typeAlert,
|
|
1201
|
-
Notification: Notification$1,
|
|
1202
|
-
iconText,
|
|
1203
|
-
closeButton,
|
|
1204
|
-
region,
|
|
1205
|
-
container
|
|
1206
|
-
};
|
|
1207
|
-
function NotificationRegion(props) {
|
|
1208
|
-
const { state } = props;
|
|
1209
|
-
const ref = React.useRef(null);
|
|
1210
|
-
const { regionProps } = $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref);
|
|
1211
|
-
return React.createElement("div", __spreadProps(__spreadValues({}, regionProps), {
|
|
1212
|
-
ref,
|
|
1213
|
-
className: styles.region
|
|
1214
|
-
}), state.visibleToasts.map((toast) => React.createElement(Notification, {
|
|
1215
|
-
key: toast.key,
|
|
1216
|
-
toast,
|
|
1217
|
-
state
|
|
1218
|
-
})));
|
|
1219
|
-
}
|
|
1220
|
-
function NotificationContainer(props) {
|
|
1221
|
-
const { getContainer = null, position = "fixed", offset, state } = props;
|
|
1222
|
-
const showNotifications = state.visibleToasts.length > 0;
|
|
1223
|
-
let requestFailed = false;
|
|
1224
|
-
let container2 = null;
|
|
1225
|
-
if (showNotifications && getContainer) {
|
|
1226
|
-
container2 = getContainer();
|
|
1227
|
-
requestFailed = container2 === null;
|
|
1228
|
-
}
|
|
1229
|
-
const positionStyleProps = offset && !requestFailed ? {
|
|
1230
|
-
top: offset == null ? void 0 : offset.top,
|
|
1231
|
-
right: offset == null ? void 0 : offset.right,
|
|
1232
|
-
bottom: offset == null ? void 0 : offset.bottom,
|
|
1233
|
-
left: offset == null ? void 0 : offset.left
|
|
1234
|
-
} : {
|
|
1235
|
-
top: 0,
|
|
1236
|
-
left: 0
|
|
1237
|
-
};
|
|
1238
|
-
const positionProps = {
|
|
1239
|
-
position: !requestFailed ? position : "fixed"
|
|
1240
|
-
};
|
|
1241
|
-
const containerStyles = __spreadValues(__spreadValues({}, positionStyleProps), positionProps);
|
|
1242
|
-
return React.createElement(React.Fragment, null, showNotifications ? $k7QOs$reactdom.createPortal(React.createElement("div", {
|
|
1243
|
-
className: styles.container,
|
|
1244
|
-
style: containerStyles
|
|
1245
|
-
}, React.createElement(NotificationRegion, {
|
|
1246
|
-
state
|
|
1247
|
-
})), container2 != null ? container2 : document.body) : null);
|
|
1248
|
-
}
|
|
1249
|
-
function $77b352cf12efcf73$export$84726ef35ca2129a(queue) {
|
|
1250
|
-
let subscribe = React.useCallback((fn) => queue.subscribe(fn), [
|
|
1251
|
-
queue
|
|
1252
|
-
]);
|
|
1253
|
-
let getSnapshot = React.useCallback(() => queue.visibleToasts, [
|
|
1254
|
-
queue
|
|
1255
|
-
]);
|
|
1256
|
-
let visibleToasts = shimExports.useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
|
|
1257
|
-
return {
|
|
1258
|
-
visibleToasts,
|
|
1259
|
-
add: (content, options) => queue.add(content, options),
|
|
1260
|
-
close: (key) => queue.close(key),
|
|
1261
|
-
remove: (key) => queue.remove(key),
|
|
1262
|
-
pauseAll: () => queue.pauseAll(),
|
|
1263
|
-
resumeAll: () => queue.resumeAll()
|
|
1264
|
-
};
|
|
1265
|
-
}
|
|
1266
|
-
class $77b352cf12efcf73$export$f1f8569633bbbec4 {
|
|
1267
|
-
/** Subscribes to updates to the visible toasts. */
|
|
1268
|
-
subscribe(fn) {
|
|
1269
|
-
this.subscriptions.add(fn);
|
|
1270
|
-
return () => this.subscriptions.delete(fn);
|
|
1271
|
-
}
|
|
1272
|
-
/** Adds a new toast to the queue. */
|
|
1273
|
-
add(content, options = {}) {
|
|
1274
|
-
let toastKey = Math.random().toString(36);
|
|
1275
|
-
let toast = __spreadProps(__spreadValues({}, options), {
|
|
1276
|
-
content,
|
|
1277
|
-
key: toastKey,
|
|
1278
|
-
timer: options.timeout ? new $77b352cf12efcf73$var$Timer(() => this.close(toastKey), options.timeout) : null
|
|
1279
|
-
});
|
|
1280
|
-
let low = 0;
|
|
1281
|
-
let high = this.queue.length;
|
|
1282
|
-
while (low < high) {
|
|
1283
|
-
let mid = Math.floor((low + high) / 2);
|
|
1284
|
-
if ((toast.priority || 0) > (this.queue[mid].priority || 0))
|
|
1285
|
-
high = mid;
|
|
1286
|
-
else
|
|
1287
|
-
low = mid + 1;
|
|
1288
|
-
}
|
|
1289
|
-
this.queue.splice(low, 0, toast);
|
|
1290
|
-
toast.animation = low < this.maxVisibleToasts ? "entering" : "queued";
|
|
1291
|
-
let i = this.maxVisibleToasts;
|
|
1292
|
-
while (i < this.queue.length)
|
|
1293
|
-
this.queue[i++].animation = "queued";
|
|
1294
|
-
this.updateVisibleToasts();
|
|
1295
|
-
return toastKey;
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Closes a toast. If `hasExitAnimation` is true, the toast
|
|
1299
|
-
* transitions to an "exiting" state instead of being removed immediately.
|
|
1300
|
-
*/
|
|
1301
|
-
close(key) {
|
|
1302
|
-
let index = this.queue.findIndex((t) => t.key === key);
|
|
1303
|
-
if (index >= 0) {
|
|
1304
|
-
var _this_queue_index, _this_queue_index_onClose;
|
|
1305
|
-
(_this_queue_index_onClose = (_this_queue_index = this.queue[index]).onClose) === null || _this_queue_index_onClose === void 0 ? void 0 : _this_queue_index_onClose.call(_this_queue_index);
|
|
1306
|
-
this.queue.splice(index, 1);
|
|
1307
|
-
}
|
|
1308
|
-
this.updateVisibleToasts();
|
|
1309
|
-
}
|
|
1310
|
-
/** Removes a toast from the visible toasts after an exiting animation. */
|
|
1311
|
-
remove(key) {
|
|
1312
|
-
this.visibleToasts = this.visibleToasts.filter((t) => t.key !== key);
|
|
1313
|
-
this.updateVisibleToasts();
|
|
1314
|
-
}
|
|
1315
|
-
updateVisibleToasts() {
|
|
1316
|
-
let toasts = this.queue.slice(0, this.maxVisibleToasts);
|
|
1317
|
-
if (this.hasExitAnimation) {
|
|
1318
|
-
let prevToasts = this.visibleToasts.filter((t) => !toasts.some((t2) => t.key === t2.key)).map((t) => __spreadProps(__spreadValues({}, t), {
|
|
1319
|
-
animation: "exiting"
|
|
1320
|
-
}));
|
|
1321
|
-
this.visibleToasts = prevToasts.concat(toasts).sort((a, b) => b.priority - a.priority);
|
|
1322
|
-
} else
|
|
1323
|
-
this.visibleToasts = toasts;
|
|
1324
|
-
for (let fn of this.subscriptions)
|
|
1325
|
-
fn();
|
|
1326
|
-
}
|
|
1327
|
-
/** Pauses the timers for all visible toasts. */
|
|
1328
|
-
pauseAll() {
|
|
1329
|
-
for (let toast of this.visibleToasts)
|
|
1330
|
-
if (toast.timer)
|
|
1331
|
-
toast.timer.pause();
|
|
1332
|
-
}
|
|
1333
|
-
/** Resumes the timers for all visible toasts. */
|
|
1334
|
-
resumeAll() {
|
|
1335
|
-
for (let toast of this.visibleToasts)
|
|
1336
|
-
if (toast.timer)
|
|
1337
|
-
toast.timer.resume();
|
|
1338
|
-
}
|
|
1339
|
-
constructor(options) {
|
|
1340
|
-
this.queue = [];
|
|
1341
|
-
this.subscriptions = /* @__PURE__ */ new Set();
|
|
1342
|
-
this.visibleToasts = [];
|
|
1343
|
-
var _options_maxVisibleToasts;
|
|
1344
|
-
this.maxVisibleToasts = (_options_maxVisibleToasts = options === null || options === void 0 ? void 0 : options.maxVisibleToasts) !== null && _options_maxVisibleToasts !== void 0 ? _options_maxVisibleToasts : 1;
|
|
1345
|
-
var _options_hasExitAnimation;
|
|
1346
|
-
this.hasExitAnimation = (_options_hasExitAnimation = options === null || options === void 0 ? void 0 : options.hasExitAnimation) !== null && _options_hasExitAnimation !== void 0 ? _options_hasExitAnimation : false;
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
class $77b352cf12efcf73$var$Timer {
|
|
1350
|
-
reset(delay) {
|
|
1351
|
-
this.remaining = delay;
|
|
1352
|
-
this.resume();
|
|
1353
|
-
}
|
|
1354
|
-
pause() {
|
|
1355
|
-
if (this.timerId == null)
|
|
1356
|
-
return;
|
|
1357
|
-
clearTimeout(this.timerId);
|
|
1358
|
-
this.timerId = null;
|
|
1359
|
-
this.remaining -= Date.now() - this.startTime;
|
|
1360
|
-
}
|
|
1361
|
-
resume() {
|
|
1362
|
-
if (this.remaining <= 0)
|
|
1363
|
-
return;
|
|
1364
|
-
this.startTime = Date.now();
|
|
1365
|
-
this.timerId = setTimeout(() => {
|
|
1366
|
-
this.timerId = null;
|
|
1367
|
-
this.remaining = 0;
|
|
1368
|
-
this.callback();
|
|
1369
|
-
}, this.remaining);
|
|
1370
|
-
}
|
|
1371
|
-
constructor(callback, delay) {
|
|
1372
|
-
this.remaining = delay;
|
|
1373
|
-
this.callback = callback;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
const TOAST_TIMEOUT_DURATION = 4e3;
|
|
1377
|
-
class EasyUINotificationQueue extends $77b352cf12efcf73$export$f1f8569633bbbec4 {
|
|
1378
|
-
constructor(options) {
|
|
1379
|
-
super(options);
|
|
1380
|
-
this.activeNotificationKey = "";
|
|
1381
|
-
}
|
|
1382
|
-
closeActiveNotification() {
|
|
1383
|
-
if (this.activeNotificationKey) {
|
|
1384
|
-
super.close(this.activeNotificationKey);
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
alert(content) {
|
|
1388
|
-
this.closeActiveNotification();
|
|
1389
|
-
this.activeNotificationKey = super.add(content);
|
|
1390
|
-
}
|
|
1391
|
-
toast(content) {
|
|
1392
|
-
this.closeActiveNotification();
|
|
1393
|
-
this.activeNotificationKey = super.add(content, {
|
|
1394
|
-
timeout: TOAST_TIMEOUT_DURATION
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
function useNotificationState() {
|
|
1399
|
-
const queue = React.useMemo(() => new EasyUINotificationQueue(), []);
|
|
1400
|
-
const state = $77b352cf12efcf73$export$84726ef35ca2129a(queue);
|
|
1401
|
-
return __spreadProps(__spreadValues({}, state), {
|
|
1402
|
-
showPromotionalAlert: (content) => queue.alert(__spreadProps(__spreadValues({}, content), {
|
|
1403
|
-
status: "promotional",
|
|
1404
|
-
type: "alert"
|
|
1405
|
-
})),
|
|
1406
|
-
showNeutralAlert: (content) => queue.alert(__spreadProps(__spreadValues({}, content), {
|
|
1407
|
-
status: "neutral",
|
|
1408
|
-
type: "alert"
|
|
1409
|
-
})),
|
|
1410
|
-
showSuccessAlert: (content) => queue.alert(__spreadProps(__spreadValues({}, content), {
|
|
1411
|
-
status: "success",
|
|
1412
|
-
type: "alert"
|
|
1413
|
-
})),
|
|
1414
|
-
showWarningAlert: (content) => queue.alert(__spreadProps(__spreadValues({}, content), {
|
|
1415
|
-
status: "warning",
|
|
1416
|
-
type: "alert"
|
|
1417
|
-
})),
|
|
1418
|
-
showErrorAlert: (content) => queue.alert(__spreadProps(__spreadValues({}, content), {
|
|
1419
|
-
status: "error",
|
|
1420
|
-
type: "alert"
|
|
1421
|
-
})),
|
|
1422
|
-
showPromotionalToast: (content) => queue.toast(__spreadProps(__spreadValues({}, content), {
|
|
1423
|
-
status: "promotional",
|
|
1424
|
-
type: "toast"
|
|
1425
|
-
})),
|
|
1426
|
-
showNeutralToast: (content) => queue.toast(__spreadProps(__spreadValues({}, content), {
|
|
1427
|
-
status: "neutral",
|
|
1428
|
-
type: "toast"
|
|
1429
|
-
})),
|
|
1430
|
-
showSuccessToast: (content) => queue.toast(__spreadProps(__spreadValues({}, content), {
|
|
1431
|
-
status: "success",
|
|
1432
|
-
type: "toast"
|
|
1433
|
-
})),
|
|
1434
|
-
showWarningToast: (content) => queue.toast(__spreadProps(__spreadValues({}, content), {
|
|
1435
|
-
status: "warning",
|
|
1436
|
-
type: "toast"
|
|
1437
|
-
})),
|
|
1438
|
-
showErrorToast: (content) => queue.toast(__spreadProps(__spreadValues({}, content), {
|
|
1439
|
-
status: "error",
|
|
1440
|
-
type: "toast"
|
|
1441
|
-
})),
|
|
1442
|
-
closeActiveNotification: () => queue.closeActiveNotification()
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
function Notification(props) {
|
|
1446
|
-
const ref = React.useRef(null);
|
|
1447
|
-
const { state, toast: notification } = props;
|
|
1448
|
-
const { type = "toast", message, status = "success", hasIcon = true, onDismiss } = notification.content;
|
|
1449
|
-
const { toastProps: notificationProps, titleProps, closeButtonProps } = $d6542812f0669241$export$a407b657d3044108(props, state, ref);
|
|
1450
|
-
const notificationPropsWithAdjustedAriaRole = type === "toast" ? __spreadProps(__spreadValues({}, notificationProps), {
|
|
1451
|
-
role: "status"
|
|
1452
|
-
}) : notificationProps;
|
|
1453
|
-
const handleDismiss = () => {
|
|
1454
|
-
if (onDismiss) {
|
|
1455
|
-
onDismiss();
|
|
1456
|
-
}
|
|
1457
|
-
state.close(notification.key);
|
|
1458
|
-
};
|
|
1459
|
-
const closeButtonPropsWithDismiss = __spreadProps(__spreadValues({}, closeButtonProps), {
|
|
1460
|
-
onPress: handleDismiss
|
|
1461
|
-
});
|
|
1462
|
-
return React.createElement("div", __spreadProps(__spreadValues({}, notificationPropsWithAdjustedAriaRole), {
|
|
1463
|
-
ref,
|
|
1464
|
-
className: utilities_css.classNames(styles.Notification, styles[utilities_css.variationName("status", status)], styles[utilities_css.variationName("type", type)])
|
|
1465
|
-
}), React.createElement("div", {
|
|
1466
|
-
className: styles.iconText
|
|
1467
|
-
}, hasIcon && React.createElement(Icon_index.Icon, {
|
|
1468
|
-
size: "lg",
|
|
1469
|
-
symbol: getStatusIcon(status)
|
|
1470
|
-
}), React.createElement("div", __spreadValues({}, titleProps), React.createElement(Text_index.Text, {
|
|
1471
|
-
weight: "semibold"
|
|
1472
|
-
}, message))), type === "alert" && React.createElement(UnstyledButton_index.UnstyledButton, __spreadProps(__spreadValues({}, closeButtonPropsWithDismiss), {
|
|
1473
|
-
className: utilities_css.classNames(styles.closeButton)
|
|
1474
|
-
}), React.createElement(Icon_index.Icon, {
|
|
1475
|
-
size: "md",
|
|
1476
|
-
symbol: Close
|
|
1477
|
-
})));
|
|
1478
|
-
}
|
|
1479
|
-
function getStatusIcon(status) {
|
|
1480
|
-
switch (status) {
|
|
1481
|
-
case "promotional":
|
|
1482
|
-
return CurrencyExchange;
|
|
1483
|
-
case "success":
|
|
1484
|
-
return CheckCircle;
|
|
1485
|
-
case "neutral":
|
|
1486
|
-
return DocumentScanner;
|
|
1487
|
-
case "error":
|
|
1488
|
-
return Error2;
|
|
1489
|
-
case "warning":
|
|
1490
|
-
return Warning;
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
const NotificationContext = React.createContext(null);
|
|
1494
|
-
function useNotification() {
|
|
1495
|
-
const notification = React.useContext(NotificationContext);
|
|
1496
|
-
if (!notification) {
|
|
1497
|
-
throw new Error("useNotification() must be used within a NotificationProvider, which is bundled with EasyUIProvider");
|
|
1498
|
-
}
|
|
1499
|
-
return notification;
|
|
1500
|
-
}
|
|
1501
|
-
function NotificationProvider(props) {
|
|
1502
|
-
const { children, notificationPlacement } = props;
|
|
1503
|
-
const combinedState = useNotificationState();
|
|
1504
|
-
const state = {
|
|
1505
|
-
close: combinedState.close,
|
|
1506
|
-
add: combinedState.add,
|
|
1507
|
-
remove: combinedState.remove,
|
|
1508
|
-
pauseAll: combinedState.pauseAll,
|
|
1509
|
-
resumeAll: combinedState.resumeAll,
|
|
1510
|
-
visibleToasts: combinedState.visibleToasts
|
|
1511
|
-
};
|
|
1512
|
-
const notification = {
|
|
1513
|
-
showErrorAlert: combinedState.showErrorAlert,
|
|
1514
|
-
showErrorToast: combinedState.showErrorToast,
|
|
1515
|
-
showPromotionalToast: combinedState.showPromotionalToast,
|
|
1516
|
-
showPromotionalAlert: combinedState.showPromotionalAlert,
|
|
1517
|
-
showNeutralToast: combinedState.showNeutralToast,
|
|
1518
|
-
showNeutralAlert: combinedState.showNeutralAlert,
|
|
1519
|
-
showSuccessToast: combinedState.showSuccessToast,
|
|
1520
|
-
showSuccessAlert: combinedState.showSuccessAlert,
|
|
1521
|
-
showWarningToast: combinedState.showWarningToast,
|
|
1522
|
-
showWarningAlert: combinedState.showWarningAlert,
|
|
1523
|
-
closeActiveNotification: combinedState.closeActiveNotification
|
|
1524
|
-
};
|
|
1525
|
-
return React.createElement(NotificationContext.Provider, {
|
|
1526
|
-
value: notification
|
|
1527
|
-
}, React.createElement(NotificationContainer, {
|
|
1528
|
-
getContainer: notificationPlacement == null ? void 0 : notificationPlacement.getContainer,
|
|
1529
|
-
offset: notificationPlacement == null ? void 0 : notificationPlacement.offset,
|
|
1530
|
-
position: notificationPlacement == null ? void 0 : notificationPlacement.position,
|
|
1531
|
-
state
|
|
1532
|
-
}), children);
|
|
1533
|
-
}
|
|
1534
|
-
exports.Notification = Notification;
|
|
1535
|
-
exports.NotificationContext = NotificationContext;
|
|
1536
|
-
exports.NotificationProvider = NotificationProvider;
|
|
1537
|
-
exports.useNotification = useNotification;
|
|
3
|
+
const Notification = require("../__chunks__/Notification-fbWzf7BF.js");
|
|
4
|
+
exports.Notification = Notification.Notification;
|
|
5
|
+
exports.NotificationContext = Notification.NotificationContext;
|
|
6
|
+
exports.NotificationProvider = Notification.NotificationProvider;
|
|
7
|
+
exports.useNotification = Notification.useNotification;
|