@okta/odyssey-react-mui 1.15.8 → 1.20.0
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/CHANGELOG.md +39 -0
- package/README.md +4 -0
- package/dist/Accordion.js +2 -0
- package/dist/Accordion.js.map +1 -1
- package/dist/Autocomplete.js +9 -0
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Badge.js +1 -0
- package/dist/Badge.js.map +1 -1
- package/dist/Banner.js +6 -5
- package/dist/Banner.js.map +1 -1
- package/dist/Button.js +15 -11
- package/dist/Button.js.map +1 -1
- package/dist/Callout.js +45 -7
- package/dist/Callout.js.map +1 -1
- package/dist/{Tile.js → Card.js} +43 -28
- package/dist/Card.js.map +1 -0
- package/dist/DataTable/DataTable.js +68 -40
- package/dist/DataTable/DataTable.js.map +1 -1
- package/dist/DataTable/DataTableRowActions.js.map +1 -1
- package/dist/DataTable/constants.js +0 -1
- package/dist/DataTable/constants.js.map +1 -1
- package/dist/DataTable/index.js +0 -1
- package/dist/DataTable/index.js.map +1 -1
- package/dist/Dialog.js +9 -3
- package/dist/Dialog.js.map +1 -1
- package/dist/{labs/Drawer.js → Drawer.js} +5 -5
- package/dist/Drawer.js.map +1 -0
- package/dist/{DataTable/DataTableEmptyState.js → EmptyState.js} +17 -15
- package/dist/EmptyState.js.map +1 -0
- package/dist/ErrorMessageList.js +1 -1
- package/dist/ErrorMessageList.js.map +1 -1
- package/dist/FieldError.js +3 -2
- package/dist/FieldError.js.map +1 -1
- package/dist/HtmlProps.js.map +1 -1
- package/dist/MenuItem.js +1 -0
- package/dist/MenuItem.js.map +1 -1
- package/dist/OdysseyCacheProvider.js +5 -2
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyProvider.js +1 -1
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyTranslationProvider.js +1 -6
- package/dist/OdysseyTranslationProvider.js.map +1 -1
- package/dist/{DataTable/DataTablePagination.js → Pagination/Pagination.js} +56 -59
- package/dist/Pagination/Pagination.js.map +1 -0
- package/dist/Pagination/constants.js +14 -0
- package/dist/Pagination/constants.js.map +1 -0
- package/dist/Pagination/index.js +15 -0
- package/dist/Pagination/index.js.map +1 -0
- package/dist/Pagination/usePagination.js +51 -0
- package/dist/Pagination/usePagination.js.map +1 -0
- package/dist/Radio.js +17 -5
- package/dist/Radio.js.map +1 -1
- package/dist/ScreenReaderText.js +4 -0
- package/dist/ScreenReaderText.js.map +1 -1
- package/dist/Select.js +33 -42
- package/dist/Select.js.map +1 -1
- package/dist/Status.js +5 -3
- package/dist/Status.js.map +1 -1
- package/dist/Surface.js +38 -0
- package/dist/Surface.js.map +1 -0
- package/dist/Tabs.js +22 -0
- package/dist/Tabs.js.map +1 -1
- package/dist/TextField.js +48 -0
- package/dist/TextField.js.map +1 -1
- package/dist/Toast.js +37 -34
- package/dist/Toast.js.map +1 -1
- package/dist/assertEnv.d.ts +18 -0
- package/dist/assertEnv.d.ts.map +1 -0
- package/dist/assertEnv.js +32 -0
- package/dist/icons.generated/Add.js +1 -1
- package/dist/icons.generated/Add.js.map +1 -1
- package/dist/icons.generated/AddCircle.js +1 -1
- package/dist/icons.generated/AddCircle.js.map +1 -1
- package/dist/icons.generated/Apps.js +1 -1
- package/dist/icons.generated/Apps.js.map +1 -1
- package/dist/icons.generated/ArrowBottom.js +2 -2
- package/dist/icons.generated/ArrowBottom.js.map +1 -1
- package/dist/icons.generated/ArrowDown.js +1 -1
- package/dist/icons.generated/ArrowDown.js.map +1 -1
- package/dist/icons.generated/ArrowLeft.js +1 -1
- package/dist/icons.generated/ArrowLeft.js.map +1 -1
- package/dist/icons.generated/ArrowLowerLeft.js +1 -1
- package/dist/icons.generated/ArrowLowerLeft.js.map +1 -1
- package/dist/icons.generated/ArrowLowerRight.js +1 -1
- package/dist/icons.generated/ArrowLowerRight.js.map +1 -1
- package/dist/icons.generated/ArrowRight.js +1 -1
- package/dist/icons.generated/ArrowRight.js.map +1 -1
- package/dist/icons.generated/ArrowTop.js +2 -2
- package/dist/icons.generated/ArrowTop.js.map +1 -1
- package/dist/icons.generated/ArrowUnsorted.js +1 -1
- package/dist/icons.generated/ArrowUnsorted.js.map +1 -1
- package/dist/icons.generated/ArrowUp.js +1 -1
- package/dist/icons.generated/ArrowUp.js.map +1 -1
- package/dist/icons.generated/ArrowUpperLeft.js +1 -1
- package/dist/icons.generated/ArrowUpperLeft.js.map +1 -1
- package/dist/icons.generated/ArrowUpperRight.js +1 -1
- package/dist/icons.generated/ArrowUpperRight.js.map +1 -1
- package/dist/icons.generated/Bug.js +1 -1
- package/dist/icons.generated/Bug.js.map +1 -1
- package/dist/icons.generated/Calendar.js +1 -1
- package/dist/icons.generated/Calendar.js.map +1 -1
- package/dist/icons.generated/Call.js +1 -1
- package/dist/icons.generated/Call.js.map +1 -1
- package/dist/icons.generated/Chat.js +1 -1
- package/dist/icons.generated/Chat.js.map +1 -1
- package/dist/icons.generated/Check.js +1 -1
- package/dist/icons.generated/Check.js.map +1 -1
- package/dist/icons.generated/CheckCircleFilled.js +1 -1
- package/dist/icons.generated/CheckCircleFilled.js.map +1 -1
- package/dist/icons.generated/ChevronDown.js +1 -1
- package/dist/icons.generated/ChevronDown.js.map +1 -1
- package/dist/icons.generated/ChevronLeft.js +1 -1
- package/dist/icons.generated/ChevronLeft.js.map +1 -1
- package/dist/icons.generated/ChevronRight.js +1 -1
- package/dist/icons.generated/ChevronRight.js.map +1 -1
- package/dist/icons.generated/ChevronUp.js +1 -1
- package/dist/icons.generated/ChevronUp.js.map +1 -1
- package/dist/icons.generated/Clock.js +1 -1
- package/dist/icons.generated/Clock.js.map +1 -1
- package/dist/icons.generated/Close.js +1 -1
- package/dist/icons.generated/Close.js.map +1 -1
- package/dist/icons.generated/CloseCircleFilled.js +1 -1
- package/dist/icons.generated/CloseCircleFilled.js.map +1 -1
- package/dist/icons.generated/CollapseLeft.js +1 -1
- package/dist/icons.generated/CollapseLeft.js.map +1 -1
- package/dist/icons.generated/CollapseRight.js +1 -1
- package/dist/icons.generated/CollapseRight.js.map +1 -1
- package/dist/icons.generated/Copy.js +1 -1
- package/dist/icons.generated/Copy.js.map +1 -1
- package/dist/icons.generated/Custom.js +39 -0
- package/dist/icons.generated/Custom.js.map +1 -0
- package/dist/icons.generated/DangerDiamond.js +1 -1
- package/dist/icons.generated/DangerDiamond.js.map +1 -1
- package/dist/icons.generated/DangerDiamondFilled.js +1 -1
- package/dist/icons.generated/DangerDiamondFilled.js.map +1 -1
- package/dist/icons.generated/Delete.js +1 -1
- package/dist/icons.generated/Delete.js.map +1 -1
- package/dist/icons.generated/Deny.js +1 -1
- package/dist/icons.generated/Deny.js.map +1 -1
- package/dist/icons.generated/Devices.js +1 -1
- package/dist/icons.generated/Devices.js.map +1 -1
- package/dist/icons.generated/Directory.js +1 -1
- package/dist/icons.generated/Directory.js.map +1 -1
- package/dist/icons.generated/Documentation.js +1 -1
- package/dist/icons.generated/Documentation.js.map +1 -1
- package/dist/icons.generated/Download.js +1 -1
- package/dist/icons.generated/Download.js.map +1 -1
- package/dist/icons.generated/DragIndicator.js +1 -1
- package/dist/icons.generated/DragIndicator.js.map +1 -1
- package/dist/icons.generated/Duo.js +47 -0
- package/dist/icons.generated/Duo.js.map +1 -0
- package/dist/icons.generated/Edit.js +1 -1
- package/dist/icons.generated/Edit.js.map +1 -1
- package/dist/icons.generated/Email.js +38 -0
- package/dist/icons.generated/Email.js.map +1 -0
- package/dist/icons.generated/ExpandLeft.js +1 -1
- package/dist/icons.generated/ExpandLeft.js.map +1 -1
- package/dist/icons.generated/ExpandRight.js +1 -1
- package/dist/icons.generated/ExpandRight.js.map +1 -1
- package/dist/icons.generated/ExternalLink.js +1 -1
- package/dist/icons.generated/ExternalLink.js.map +1 -1
- package/dist/icons.generated/Fido2.js +57 -0
- package/dist/icons.generated/Fido2.js.map +1 -0
- package/dist/icons.generated/Filter.js +1 -1
- package/dist/icons.generated/Filter.js.map +1 -1
- package/dist/icons.generated/Folder.js +1 -1
- package/dist/icons.generated/Folder.js.map +1 -1
- package/dist/icons.generated/Globe.js +1 -1
- package/dist/icons.generated/Globe.js.map +1 -1
- package/dist/icons.generated/GoogleAuth.js +54 -0
- package/dist/icons.generated/GoogleAuth.js.map +1 -0
- package/dist/icons.generated/Grid.js +1 -1
- package/dist/icons.generated/Grid.js.map +1 -1
- package/dist/icons.generated/Group.js +1 -1
- package/dist/icons.generated/Group.js.map +1 -1
- package/dist/icons.generated/Hide.js +1 -1
- package/dist/icons.generated/Hide.js.map +1 -1
- package/dist/icons.generated/Home.js +1 -1
- package/dist/icons.generated/Home.js.map +1 -1
- package/dist/icons.generated/Idp.js +42 -0
- package/dist/icons.generated/Idp.js.map +1 -0
- package/dist/icons.generated/InformationCircle.js +1 -1
- package/dist/icons.generated/InformationCircle.js.map +1 -1
- package/dist/icons.generated/InformationCircleFilled.js +1 -1
- package/dist/icons.generated/InformationCircleFilled.js.map +1 -1
- package/dist/icons.generated/Link.js +1 -1
- package/dist/icons.generated/Link.js.map +1 -1
- package/dist/icons.generated/List.js +1 -1
- package/dist/icons.generated/List.js.map +1 -1
- package/dist/icons.generated/Lock.js +1 -1
- package/dist/icons.generated/Lock.js.map +1 -1
- package/dist/icons.generated/More.js +1 -1
- package/dist/icons.generated/More.js.map +1 -1
- package/dist/icons.generated/Notification.js +1 -1
- package/dist/icons.generated/Notification.js.map +1 -1
- package/dist/icons.generated/OktaVerify.js +33 -0
- package/dist/icons.generated/OktaVerify.js.map +1 -0
- package/dist/icons.generated/OnPremMfa.js +39 -0
- package/dist/icons.generated/OnPremMfa.js.map +1 -0
- package/dist/icons.generated/OneTimePassword.js +49 -0
- package/dist/icons.generated/OneTimePassword.js.map +1 -0
- package/dist/icons.generated/Password.js +61 -0
- package/dist/icons.generated/Password.js.map +1 -0
- package/dist/icons.generated/Pause.js +1 -1
- package/dist/icons.generated/Pause.js.map +1 -1
- package/dist/icons.generated/QuestionCircle.js +1 -1
- package/dist/icons.generated/QuestionCircle.js.map +1 -1
- package/dist/icons.generated/QuestionCircleFilled.js +1 -1
- package/dist/icons.generated/QuestionCircleFilled.js.map +1 -1
- package/dist/icons.generated/Refresh.js +1 -1
- package/dist/icons.generated/Refresh.js.map +1 -1
- package/dist/icons.generated/Reset.js +1 -1
- package/dist/icons.generated/Reset.js.map +1 -1
- package/dist/icons.generated/Resume.js +1 -1
- package/dist/icons.generated/Resume.js.map +1 -1
- package/dist/icons.generated/Search.js +1 -1
- package/dist/icons.generated/Search.js.map +1 -1
- package/dist/icons.generated/SecurityQuestion.js +41 -0
- package/dist/icons.generated/SecurityQuestion.js.map +1 -0
- package/dist/icons.generated/Server.js +1 -1
- package/dist/icons.generated/Server.js.map +1 -1
- package/dist/icons.generated/Settings.js +1 -1
- package/dist/icons.generated/Settings.js.map +1 -1
- package/dist/icons.generated/Show.js +1 -1
- package/dist/icons.generated/Show.js.map +1 -1
- package/dist/icons.generated/SmartCard.js +49 -0
- package/dist/icons.generated/SmartCard.js.map +1 -0
- package/dist/icons.generated/Sms.js +49 -0
- package/dist/icons.generated/Sms.js.map +1 -0
- package/dist/icons.generated/Subtract.js +1 -1
- package/dist/icons.generated/Subtract.js.map +1 -1
- package/dist/icons.generated/SymantecVip.js +38 -0
- package/dist/icons.generated/SymantecVip.js.map +1 -0
- package/dist/icons.generated/Sync.js +1 -1
- package/dist/icons.generated/Sync.js.map +1 -1
- package/dist/icons.generated/ThumbsDown.js +33 -0
- package/dist/icons.generated/ThumbsDown.js.map +1 -0
- package/dist/icons.generated/ThumbsUp.js +33 -0
- package/dist/icons.generated/ThumbsUp.js.map +1 -0
- package/dist/icons.generated/Unlock.js +1 -1
- package/dist/icons.generated/Unlock.js.map +1 -1
- package/dist/icons.generated/Upload.js +1 -1
- package/dist/icons.generated/Upload.js.map +1 -1
- package/dist/icons.generated/User.js +1 -1
- package/dist/icons.generated/User.js.map +1 -1
- package/dist/icons.generated/Video.js +1 -1
- package/dist/icons.generated/Video.js.map +1 -1
- package/dist/icons.generated/VoiceCall.js +54 -0
- package/dist/icons.generated/VoiceCall.js.map +1 -0
- package/dist/icons.generated/Warning.js +1 -1
- package/dist/icons.generated/Warning.js.map +1 -1
- package/dist/icons.generated/WarningFilled.js +1 -1
- package/dist/icons.generated/WarningFilled.js.map +1 -1
- package/dist/icons.generated/Yubikey.js +31 -0
- package/dist/icons.generated/Yubikey.js.map +1 -0
- package/dist/icons.generated/index.js +18 -0
- package/dist/icons.generated/index.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.scss +457 -0
- package/dist/labs/DataComponents/BulkActionsMenu.js +77 -0
- package/dist/labs/DataComponents/BulkActionsMenu.js.map +1 -0
- package/dist/labs/DataComponents/DataStack.js +79 -0
- package/dist/labs/DataComponents/DataStack.js.map +1 -0
- package/dist/labs/DataComponents/DataTable.js +90 -0
- package/dist/labs/DataComponents/DataTable.js.map +1 -0
- package/dist/labs/DataComponents/DataView.js +278 -0
- package/dist/labs/DataComponents/DataView.js.map +1 -0
- package/dist/{src/DataTable/DataTableEmptyState.d.ts → labs/DataComponents/DetailPanel.js} +14 -9
- package/dist/labs/DataComponents/DetailPanel.js.map +1 -0
- package/dist/labs/DataComponents/LayoutSwitcher.js +53 -0
- package/dist/labs/DataComponents/LayoutSwitcher.js.map +1 -0
- package/dist/labs/DataComponents/RowActions.js +80 -0
- package/dist/labs/DataComponents/RowActions.js.map +1 -0
- package/dist/labs/DataComponents/StackCard.js +163 -0
- package/dist/labs/DataComponents/StackCard.js.map +1 -0
- package/dist/labs/DataComponents/StackContent.js +143 -0
- package/dist/labs/DataComponents/StackContent.js.map +1 -0
- package/dist/labs/DataComponents/TableContent.js +248 -0
- package/dist/labs/DataComponents/TableContent.js.map +1 -0
- package/dist/labs/DataComponents/TableSettings.js +96 -0
- package/dist/labs/DataComponents/TableSettings.js.map +1 -0
- package/dist/labs/DataComponents/componentTypes.js +2 -0
- package/dist/labs/DataComponents/componentTypes.js.map +1 -0
- package/dist/labs/DataComponents/constants.js +17 -0
- package/dist/labs/DataComponents/constants.js.map +1 -0
- package/dist/labs/DataComponents/dataTypes.js +2 -0
- package/dist/labs/DataComponents/dataTypes.js.map +1 -0
- package/dist/labs/DataComponents/fetchData.js +33 -0
- package/dist/labs/DataComponents/fetchData.js.map +1 -0
- package/dist/labs/DataComponents/index.js +18 -0
- package/dist/labs/DataComponents/index.js.map +1 -0
- package/dist/labs/DataComponents/tableConstants.js +146 -0
- package/dist/labs/DataComponents/tableConstants.js.map +1 -0
- package/dist/labs/DataComponents/useFilterConversion.js +58 -0
- package/dist/labs/DataComponents/useFilterConversion.js.map +1 -0
- package/dist/labs/DataFilters.js +139 -82
- package/dist/labs/DataFilters.js.map +1 -1
- package/dist/labs/DateField.js +77 -0
- package/dist/labs/DateField.js.map +1 -0
- package/dist/labs/DatePicker.js +186 -23
- package/dist/labs/DatePicker.js.map +1 -1
- package/dist/labs/{DatePicker.types.js → DatePicker.types.d.js} +1 -1
- package/dist/labs/DatePicker.types.d.js.map +1 -0
- package/dist/labs/FileUpload.js +28 -25
- package/dist/labs/FileUpload.js.map +1 -1
- package/dist/labs/FileUploadIllustration.js +1 -1
- package/dist/labs/FileUploadIllustration.js.map +1 -1
- package/dist/labs/FileUploadPreview.js +1 -0
- package/dist/labs/FileUploadPreview.js.map +1 -1
- package/dist/labs/Layout.js +49 -0
- package/dist/labs/Layout.js.map +1 -0
- package/dist/labs/NavAccordion.js +80 -0
- package/dist/labs/NavAccordion.js.map +1 -0
- package/dist/labs/PageTemplate.js +140 -0
- package/dist/labs/PageTemplate.js.map +1 -0
- package/dist/labs/SideNav.js +478 -0
- package/dist/labs/SideNav.js.map +1 -0
- package/dist/labs/Switch.js +186 -77
- package/dist/labs/Switch.js.map +1 -1
- package/dist/labs/datePickerTheme.js +138 -80
- package/dist/labs/datePickerTheme.js.map +1 -1
- package/dist/labs/index.js +5 -1
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/useDatePickerTranslations.js +71 -0
- package/dist/labs/useDatePickerTranslations.js.map +1 -0
- package/dist/preset.d.ts +23 -0
- package/dist/preset.d.ts.map +1 -0
- package/dist/preset.js +35 -0
- package/dist/properties/ts/odyssey-react-mui.js +68 -10
- package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ht.js +98 -0
- package/dist/properties/ts/odyssey-react-mui_ht.js.map +1 -0
- package/dist/properties/ts/odyssey-react-mui_hu.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ok_PL.js +34 -3
- package/dist/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ok_SK.js +34 -3
- package/dist/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +77 -2
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/remUtils.js +14 -0
- package/dist/remUtils.js.map +1 -0
- package/dist/scripts/generateTestSelectorsJson.d.ts +13 -0
- package/dist/scripts/generateTestSelectorsJson.d.ts.map +1 -0
- package/dist/src/Accordion.d.ts +1 -1
- package/dist/src/Accordion.d.ts.map +1 -1
- package/dist/src/Autocomplete.d.ts +7 -1
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Badge.d.ts +2 -2
- package/dist/src/Badge.d.ts.map +1 -1
- package/dist/src/Banner.d.ts.map +1 -1
- package/dist/src/Button.d.ts +10 -6
- package/dist/src/Button.d.ts.map +1 -1
- package/dist/src/Callout.d.ts +38 -2
- package/dist/src/Callout.d.ts.map +1 -1
- package/dist/src/{Tile.d.ts → Card.d.ts} +6 -27
- package/dist/src/Card.d.ts.map +1 -0
- package/dist/src/DataTable/DataTable.d.ts +70 -50
- package/dist/src/DataTable/DataTable.d.ts.map +1 -1
- package/dist/src/DataTable/DataTableRowActions.d.ts +1 -1
- package/dist/src/DataTable/DataTableRowActions.d.ts.map +1 -1
- package/dist/src/DataTable/constants.d.ts +0 -1
- package/dist/src/DataTable/constants.d.ts.map +1 -1
- package/dist/src/DataTable/index.d.ts +2 -3
- package/dist/src/DataTable/index.d.ts.map +1 -1
- package/dist/src/DataTable/reorderDataRowsLocally.d.ts.map +1 -1
- package/dist/src/DataTable/useRowReordering.d.ts +3 -3
- package/dist/src/DataTable/useRowReordering.d.ts.map +1 -1
- package/dist/src/Dialog.d.ts +19 -7
- package/dist/src/Dialog.d.ts.map +1 -1
- package/dist/src/{labs/Drawer.d.ts → Drawer.d.ts} +3 -3
- package/dist/src/Drawer.d.ts.map +1 -0
- package/dist/src/EmptyState.d.ts +34 -0
- package/dist/src/EmptyState.d.ts.map +1 -0
- package/dist/src/ErrorMessageList.d.ts.map +1 -1
- package/dist/src/FieldError.d.ts.map +1 -1
- package/dist/src/HtmlProps.d.ts +1 -0
- package/dist/src/HtmlProps.d.ts.map +1 -1
- package/dist/src/MenuItem.d.ts.map +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts +6 -2
- package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/src/OdysseyProvider.d.ts.map +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts +1 -1
- package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
- package/dist/src/Pagination/Pagination.d.ts +70 -0
- package/dist/src/Pagination/Pagination.d.ts.map +1 -0
- package/dist/src/Pagination/constants.d.ts +13 -0
- package/dist/src/Pagination/constants.d.ts.map +1 -0
- package/dist/src/Pagination/index.d.ts +15 -0
- package/dist/src/Pagination/index.d.ts.map +1 -0
- package/dist/src/Pagination/usePagination.d.ts +23 -0
- package/dist/src/Pagination/usePagination.d.ts.map +1 -0
- package/dist/src/Radio.d.ts +2 -2
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/ScreenReaderText.d.ts +3 -2
- package/dist/src/ScreenReaderText.d.ts.map +1 -1
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/Status.d.ts +7 -2
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/{labs/DatePicker.types.d.ts → Surface.d.ts} +7 -8
- package/dist/src/Surface.d.ts.map +1 -0
- package/dist/src/Tabs.d.ts +22 -0
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +48 -0
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/Toast.d.ts.map +1 -1
- package/dist/src/icons.generated/Add.d.ts +1 -1
- package/dist/src/icons.generated/AddCircle.d.ts +1 -1
- package/dist/src/icons.generated/Apps.d.ts +1 -1
- package/dist/src/icons.generated/ArrowBottom.d.ts +1 -1
- package/dist/src/icons.generated/ArrowDown.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowLowerRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowRight.d.ts +1 -1
- package/dist/src/icons.generated/ArrowTop.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUnsorted.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUp.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperLeft.d.ts +1 -1
- package/dist/src/icons.generated/ArrowUpperRight.d.ts +1 -1
- package/dist/src/icons.generated/Bug.d.ts +1 -1
- package/dist/src/icons.generated/Calendar.d.ts +1 -1
- package/dist/src/icons.generated/Call.d.ts +1 -1
- package/dist/src/icons.generated/Chat.d.ts +1 -1
- package/dist/src/icons.generated/Check.d.ts +1 -1
- package/dist/src/icons.generated/CheckCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/ChevronDown.d.ts +1 -1
- package/dist/src/icons.generated/ChevronLeft.d.ts +1 -1
- package/dist/src/icons.generated/ChevronRight.d.ts +1 -1
- package/dist/src/icons.generated/ChevronUp.d.ts +1 -1
- package/dist/src/icons.generated/Clock.d.ts +1 -1
- package/dist/src/icons.generated/Close.d.ts +1 -1
- package/dist/src/icons.generated/CloseCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/CollapseLeft.d.ts +1 -1
- package/dist/src/icons.generated/CollapseRight.d.ts +1 -1
- package/dist/src/icons.generated/Copy.d.ts +1 -1
- package/dist/src/icons.generated/Custom.d.ts +16 -0
- package/dist/src/icons.generated/Custom.d.ts.map +1 -0
- package/dist/src/icons.generated/DangerDiamond.d.ts +1 -1
- package/dist/src/icons.generated/DangerDiamondFilled.d.ts +1 -1
- package/dist/src/icons.generated/Delete.d.ts +1 -1
- package/dist/src/icons.generated/Deny.d.ts +1 -1
- package/dist/src/icons.generated/Devices.d.ts +1 -1
- package/dist/src/icons.generated/Directory.d.ts +1 -1
- package/dist/src/icons.generated/Documentation.d.ts +1 -1
- package/dist/src/icons.generated/Download.d.ts +1 -1
- package/dist/src/icons.generated/DragIndicator.d.ts +1 -1
- package/dist/src/icons.generated/Duo.d.ts +16 -0
- package/dist/src/icons.generated/Duo.d.ts.map +1 -0
- package/dist/src/icons.generated/Edit.d.ts +1 -1
- package/dist/src/icons.generated/Email.d.ts +16 -0
- package/dist/src/icons.generated/Email.d.ts.map +1 -0
- package/dist/src/icons.generated/ExpandLeft.d.ts +1 -1
- package/dist/src/icons.generated/ExpandRight.d.ts +1 -1
- package/dist/src/icons.generated/ExternalLink.d.ts +1 -1
- package/dist/src/icons.generated/Fido2.d.ts +16 -0
- package/dist/src/icons.generated/Fido2.d.ts.map +1 -0
- package/dist/src/icons.generated/Filter.d.ts +1 -1
- package/dist/src/icons.generated/Folder.d.ts +1 -1
- package/dist/src/icons.generated/Globe.d.ts +1 -1
- package/dist/src/icons.generated/GoogleAuth.d.ts +16 -0
- package/dist/src/icons.generated/GoogleAuth.d.ts.map +1 -0
- package/dist/src/icons.generated/Grid.d.ts +1 -1
- package/dist/src/icons.generated/Group.d.ts +1 -1
- package/dist/src/icons.generated/Hide.d.ts +1 -1
- package/dist/src/icons.generated/Home.d.ts +1 -1
- package/dist/src/icons.generated/Idp.d.ts +16 -0
- package/dist/src/icons.generated/Idp.d.ts.map +1 -0
- package/dist/src/icons.generated/InformationCircle.d.ts +1 -1
- package/dist/src/icons.generated/InformationCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/Link.d.ts +1 -1
- package/dist/src/icons.generated/List.d.ts +1 -1
- package/dist/src/icons.generated/Lock.d.ts +1 -1
- package/dist/src/icons.generated/More.d.ts +1 -1
- package/dist/src/icons.generated/Notification.d.ts +1 -1
- package/dist/src/icons.generated/OktaVerify.d.ts +16 -0
- package/dist/src/icons.generated/OktaVerify.d.ts.map +1 -0
- package/dist/src/icons.generated/OnPremMfa.d.ts +16 -0
- package/dist/src/icons.generated/OnPremMfa.d.ts.map +1 -0
- package/dist/src/icons.generated/OneTimePassword.d.ts +16 -0
- package/dist/src/icons.generated/OneTimePassword.d.ts.map +1 -0
- package/dist/src/icons.generated/Password.d.ts +16 -0
- package/dist/src/icons.generated/Password.d.ts.map +1 -0
- package/dist/src/icons.generated/Pause.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircle.d.ts +1 -1
- package/dist/src/icons.generated/QuestionCircleFilled.d.ts +1 -1
- package/dist/src/icons.generated/Refresh.d.ts +1 -1
- package/dist/src/icons.generated/Reset.d.ts +1 -1
- package/dist/src/icons.generated/Resume.d.ts +1 -1
- package/dist/src/icons.generated/Search.d.ts +1 -1
- package/dist/src/icons.generated/SecurityQuestion.d.ts +16 -0
- package/dist/src/icons.generated/SecurityQuestion.d.ts.map +1 -0
- package/dist/src/icons.generated/Server.d.ts +1 -1
- package/dist/src/icons.generated/Settings.d.ts +1 -1
- package/dist/src/icons.generated/Show.d.ts +1 -1
- package/dist/src/icons.generated/SmartCard.d.ts +16 -0
- package/dist/src/icons.generated/SmartCard.d.ts.map +1 -0
- package/dist/src/icons.generated/Sms.d.ts +16 -0
- package/dist/src/icons.generated/Sms.d.ts.map +1 -0
- package/dist/src/icons.generated/Subtract.d.ts +1 -1
- package/dist/src/icons.generated/SymantecVip.d.ts +16 -0
- package/dist/src/icons.generated/SymantecVip.d.ts.map +1 -0
- package/dist/src/icons.generated/Sync.d.ts +1 -1
- package/dist/src/icons.generated/ThumbsDown.d.ts +16 -0
- package/dist/src/icons.generated/ThumbsDown.d.ts.map +1 -0
- package/dist/src/icons.generated/ThumbsUp.d.ts +16 -0
- package/dist/src/icons.generated/ThumbsUp.d.ts.map +1 -0
- package/dist/src/icons.generated/Unlock.d.ts +1 -1
- package/dist/src/icons.generated/Upload.d.ts +1 -1
- package/dist/src/icons.generated/User.d.ts +1 -1
- package/dist/src/icons.generated/Video.d.ts +1 -1
- package/dist/src/icons.generated/VoiceCall.d.ts +16 -0
- package/dist/src/icons.generated/VoiceCall.d.ts.map +1 -0
- package/dist/src/icons.generated/Warning.d.ts +1 -1
- package/dist/src/icons.generated/WarningFilled.d.ts +1 -1
- package/dist/src/icons.generated/Yubikey.d.ts +16 -0
- package/dist/src/icons.generated/Yubikey.d.ts.map +1 -0
- package/dist/src/icons.generated/index.d.ts +18 -0
- package/dist/src/icons.generated/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/inputUtils.d.ts.map +1 -1
- package/dist/src/labs/DataComponents/BulkActionsMenu.d.ts +23 -0
- package/dist/src/labs/DataComponents/BulkActionsMenu.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/DataStack.d.ts +21 -0
- package/dist/src/labs/DataComponents/DataStack.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/DataTable.d.ts +17 -0
- package/dist/src/labs/DataComponents/DataTable.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/DataView.d.ts +17 -0
- package/dist/src/labs/DataComponents/DataView.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/DetailPanel.d.ts +20 -0
- package/dist/src/labs/DataComponents/DetailPanel.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/LayoutSwitcher.d.ts +21 -0
- package/dist/src/labs/DataComponents/LayoutSwitcher.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/RowActions.d.ts +31 -0
- package/dist/src/labs/DataComponents/RowActions.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/StackCard.d.ts +36 -0
- package/dist/src/labs/DataComponents/StackCard.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/StackContent.d.ts +64 -0
- package/dist/src/labs/DataComponents/StackContent.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/TableContent.d.ts +66 -0
- package/dist/src/labs/DataComponents/TableContent.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/TableSettings.d.ts +21 -0
- package/dist/src/labs/DataComponents/TableSettings.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/componentTypes.d.ts +81 -0
- package/dist/src/labs/DataComponents/componentTypes.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/constants.d.ts +16 -0
- package/dist/src/labs/DataComponents/constants.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/dataTypes.d.ts +52 -0
- package/dist/src/labs/DataComponents/dataTypes.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/fetchData.d.ts +26 -0
- package/dist/src/labs/DataComponents/fetchData.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/index.d.ts +18 -0
- package/dist/src/labs/DataComponents/index.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/tableConstants.d.ts +100 -0
- package/dist/src/labs/DataComponents/tableConstants.d.ts.map +1 -0
- package/dist/src/labs/DataComponents/useFilterConversion.d.ts +20 -0
- package/dist/src/labs/DataComponents/useFilterConversion.d.ts.map +1 -0
- package/dist/src/labs/DataFilters.d.ts +14 -7
- package/dist/src/labs/DataFilters.d.ts.map +1 -1
- package/dist/src/labs/DateField.d.ts +23 -0
- package/dist/src/labs/DateField.d.ts.map +1 -0
- package/dist/src/labs/DatePicker.d.ts +31 -8
- package/dist/src/labs/DatePicker.d.ts.map +1 -1
- package/dist/src/labs/FileUpload.d.ts +2 -2
- package/dist/src/labs/FileUpload.d.ts.map +1 -1
- package/dist/src/labs/FileUploadPreview.d.ts.map +1 -1
- package/dist/src/labs/GroupPicker.d.ts.map +1 -1
- package/dist/src/labs/Layout.d.ts +28 -0
- package/dist/src/labs/Layout.d.ts.map +1 -0
- package/dist/src/labs/NavAccordion.d.ts +52 -0
- package/dist/src/labs/NavAccordion.d.ts.map +1 -0
- package/dist/src/labs/PageTemplate.d.ts +57 -0
- package/dist/src/labs/PageTemplate.d.ts.map +1 -0
- package/dist/src/labs/PaginatedTable.d.ts.map +1 -1
- package/dist/src/labs/SideNav.d.ts +120 -0
- package/dist/src/labs/SideNav.d.ts.map +1 -0
- package/dist/src/labs/StaticTable.d.ts.map +1 -1
- package/dist/src/labs/Switch.d.ts +3 -7
- package/dist/src/labs/Switch.d.ts.map +1 -1
- package/dist/src/labs/datePickerTheme.d.ts.map +1 -1
- package/dist/src/labs/index.d.ts +5 -1
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/labs/useDatePickerTranslations.d.ts +15 -0
- package/dist/src/labs/useDatePickerTranslations.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui.d.ts +66 -8
- package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ht.d.ts +98 -0
- package/dist/src/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -0
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts +33 -2
- package/dist/src/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts +33 -2
- package/dist/src/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts +77 -2
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/src/remUtils.d.ts +24 -0
- package/dist/src/remUtils.d.ts.map +1 -0
- package/dist/src/test-selectors/featureTestSelector.d.ts +31 -0
- package/dist/src/test-selectors/featureTestSelector.d.ts.map +1 -0
- package/dist/src/test-selectors/index.d.ts +15 -0
- package/dist/src/test-selectors/index.d.ts.map +1 -0
- package/dist/src/test-selectors/odysseyTestSelectors.d.ts +120 -0
- package/dist/src/test-selectors/odysseyTestSelectors.d.ts.map +1 -0
- package/dist/src/test-selectors/querySelector.d.ts +3632 -0
- package/dist/src/test-selectors/querySelector.d.ts.map +1 -0
- package/dist/src/theme/components.d.ts +1 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/src/theme/components.types.d.ts +5 -3
- package/dist/src/theme/components.types.d.ts.map +1 -1
- package/dist/src/theme/createOdysseyMuiTheme.d.ts +1 -1
- package/dist/src/theme/createOdysseyMuiTheme.d.ts.map +1 -1
- package/dist/src/theme/mixins.d.ts.map +1 -1
- package/dist/src/theme/palette.d.ts.map +1 -1
- package/dist/src/theme/shape.d.ts.map +1 -1
- package/dist/src/theme/spacing.d.ts.map +1 -1
- package/dist/src/theme/typography.d.ts.map +1 -1
- package/dist/test-selectors/featureTestSelector.js +2 -0
- package/dist/test-selectors/featureTestSelector.js.map +1 -0
- package/dist/test-selectors/index.js +15 -0
- package/dist/test-selectors/index.js.map +1 -0
- package/dist/test-selectors/odysseyTestSelectors.js +20 -0
- package/dist/test-selectors/odysseyTestSelectors.js.map +1 -0
- package/dist/test-selectors/querySelector.js +78 -0
- package/dist/test-selectors/querySelector.js.map +1 -0
- package/dist/test-selectors/testSelectors.json +1 -0
- package/dist/theme/components.js +261 -181
- package/dist/theme/components.js.map +1 -1
- package/dist/theme/components.types.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/i18n.config.json +3 -1
- package/package.json +13 -5
- package/scripts/generateTestSelectorsJson.ts +28 -0
- package/src/Accordion.tsx +3 -0
- package/src/Autocomplete.tsx +13 -0
- package/src/Badge.tsx +4 -3
- package/src/Banner.tsx +4 -4
- package/src/Button.tsx +30 -16
- package/src/Callout.tsx +59 -12
- package/src/{Tile.tsx → Card.tsx} +63 -57
- package/src/DataTable/DataTable.tsx +195 -108
- package/src/DataTable/DataTableRowActions.tsx +1 -1
- package/src/DataTable/constants.ts +0 -1
- package/src/DataTable/index.tsx +2 -2
- package/src/Dialog.tsx +38 -13
- package/src/{labs/Drawer.tsx → Drawer.tsx} +10 -9
- package/src/{DataTable/DataTableEmptyState.tsx → EmptyState.tsx} +34 -19
- package/src/ErrorMessageList.tsx +6 -1
- package/src/FieldError.tsx +10 -5
- package/src/HtmlProps.ts +1 -0
- package/src/MenuItem.tsx +1 -0
- package/src/OdysseyCacheProvider.tsx +11 -3
- package/src/OdysseyProvider.tsx +1 -1
- package/src/OdysseyTranslationProvider.tsx +1 -17
- package/src/{DataTable/DataTablePagination.tsx → Pagination/Pagination.tsx} +107 -74
- package/src/Pagination/constants.ts +13 -0
- package/src/Pagination/index.ts +15 -0
- package/src/Pagination/usePagination.ts +49 -0
- package/src/Radio.tsx +18 -6
- package/src/ScreenReaderText.tsx +15 -3
- package/src/Select.tsx +84 -92
- package/src/Status.tsx +14 -2
- package/src/Surface.tsx +48 -0
- package/src/Tabs.tsx +24 -0
- package/src/TextField.tsx +50 -0
- package/src/Toast.tsx +44 -40
- package/src/icons.generated/Add.tsx +1 -1
- package/src/icons.generated/AddCircle.tsx +1 -1
- package/src/icons.generated/Apps.tsx +1 -1
- package/src/icons.generated/ArrowBottom.tsx +2 -2
- package/src/icons.generated/ArrowDown.tsx +1 -1
- package/src/icons.generated/ArrowLeft.tsx +1 -1
- package/src/icons.generated/ArrowLowerLeft.tsx +1 -1
- package/src/icons.generated/ArrowLowerRight.tsx +1 -1
- package/src/icons.generated/ArrowRight.tsx +1 -1
- package/src/icons.generated/ArrowTop.tsx +2 -2
- package/src/icons.generated/ArrowUnsorted.tsx +1 -1
- package/src/icons.generated/ArrowUp.tsx +1 -1
- package/src/icons.generated/ArrowUpperLeft.tsx +1 -1
- package/src/icons.generated/ArrowUpperRight.tsx +1 -1
- package/src/icons.generated/Bug.tsx +1 -1
- package/src/icons.generated/Calendar.tsx +1 -1
- package/src/icons.generated/Call.tsx +1 -1
- package/src/icons.generated/Chat.tsx +1 -1
- package/src/icons.generated/Check.tsx +1 -1
- package/src/icons.generated/CheckCircleFilled.tsx +1 -1
- package/src/icons.generated/ChevronDown.tsx +1 -1
- package/src/icons.generated/ChevronLeft.tsx +1 -1
- package/src/icons.generated/ChevronRight.tsx +1 -1
- package/src/icons.generated/ChevronUp.tsx +1 -1
- package/src/icons.generated/Clock.tsx +1 -1
- package/src/icons.generated/Close.tsx +1 -1
- package/src/icons.generated/CloseCircleFilled.tsx +1 -1
- package/src/icons.generated/CollapseLeft.tsx +1 -1
- package/src/icons.generated/CollapseRight.tsx +1 -1
- package/src/icons.generated/Copy.tsx +1 -1
- package/src/icons.generated/Custom.tsx +49 -0
- package/src/icons.generated/DangerDiamond.tsx +1 -1
- package/src/icons.generated/DangerDiamondFilled.tsx +1 -1
- package/src/icons.generated/Delete.tsx +1 -1
- package/src/icons.generated/Deny.tsx +1 -1
- package/src/icons.generated/Devices.tsx +1 -1
- package/src/icons.generated/Directory.tsx +1 -1
- package/src/icons.generated/Documentation.tsx +1 -1
- package/src/icons.generated/Download.tsx +1 -1
- package/src/icons.generated/DragIndicator.tsx +1 -1
- package/src/icons.generated/Duo.tsx +59 -0
- package/src/icons.generated/Edit.tsx +1 -1
- package/src/icons.generated/Email.tsx +48 -0
- package/src/icons.generated/ExpandLeft.tsx +1 -1
- package/src/icons.generated/ExpandRight.tsx +1 -1
- package/src/icons.generated/ExternalLink.tsx +1 -1
- package/src/icons.generated/Fido2.tsx +71 -0
- package/src/icons.generated/Filter.tsx +1 -1
- package/src/icons.generated/Folder.tsx +1 -1
- package/src/icons.generated/Globe.tsx +1 -1
- package/src/icons.generated/GoogleAuth.tsx +67 -0
- package/src/icons.generated/Grid.tsx +1 -1
- package/src/icons.generated/Group.tsx +1 -1
- package/src/icons.generated/Hide.tsx +1 -1
- package/src/icons.generated/Home.tsx +1 -1
- package/src/icons.generated/Idp.tsx +51 -0
- package/src/icons.generated/InformationCircle.tsx +1 -1
- package/src/icons.generated/InformationCircleFilled.tsx +1 -1
- package/src/icons.generated/Link.tsx +1 -1
- package/src/icons.generated/List.tsx +1 -1
- package/src/icons.generated/Lock.tsx +1 -1
- package/src/icons.generated/More.tsx +1 -1
- package/src/icons.generated/Notification.tsx +1 -1
- package/src/icons.generated/OktaVerify.tsx +43 -0
- package/src/icons.generated/OnPremMfa.tsx +49 -0
- package/src/icons.generated/OneTimePassword.tsx +63 -0
- package/src/icons.generated/Password.tsx +77 -0
- package/src/icons.generated/Pause.tsx +1 -1
- package/src/icons.generated/QuestionCircle.tsx +1 -1
- package/src/icons.generated/QuestionCircleFilled.tsx +1 -1
- package/src/icons.generated/Refresh.tsx +1 -1
- package/src/icons.generated/Reset.tsx +1 -1
- package/src/icons.generated/Resume.tsx +1 -1
- package/src/icons.generated/Search.tsx +1 -1
- package/src/icons.generated/SecurityQuestion.tsx +48 -0
- package/src/icons.generated/Server.tsx +1 -1
- package/src/icons.generated/Settings.tsx +1 -1
- package/src/icons.generated/Show.tsx +1 -1
- package/src/icons.generated/SmartCard.tsx +62 -0
- package/src/icons.generated/Sms.tsx +52 -0
- package/src/icons.generated/Subtract.tsx +1 -1
- package/src/icons.generated/SymantecVip.tsx +49 -0
- package/src/icons.generated/Sync.tsx +1 -1
- package/src/icons.generated/ThumbsDown.tsx +43 -0
- package/src/icons.generated/ThumbsUp.tsx +43 -0
- package/src/icons.generated/Unlock.tsx +1 -1
- package/src/icons.generated/Upload.tsx +1 -1
- package/src/icons.generated/User.tsx +1 -1
- package/src/icons.generated/Video.tsx +1 -1
- package/src/icons.generated/VoiceCall.tsx +59 -0
- package/src/icons.generated/Warning.tsx +1 -1
- package/src/icons.generated/WarningFilled.tsx +1 -1
- package/src/icons.generated/Yubikey.tsx +41 -0
- package/src/icons.generated/index.ts +18 -0
- package/src/index.ts +7 -2
- package/src/labs/DataComponents/BulkActionsMenu.tsx +97 -0
- package/src/labs/DataComponents/DataStack.tsx +99 -0
- package/src/labs/DataComponents/DataTable.tsx +111 -0
- package/src/labs/DataComponents/DataView.tsx +394 -0
- package/src/labs/DataComponents/DetailPanel.tsx +31 -0
- package/src/labs/DataComponents/LayoutSwitcher.tsx +73 -0
- package/src/labs/DataComponents/RowActions.tsx +122 -0
- package/src/labs/DataComponents/StackCard.tsx +256 -0
- package/src/labs/DataComponents/StackContent.tsx +254 -0
- package/src/labs/DataComponents/TableContent.tsx +390 -0
- package/src/labs/DataComponents/TableSettings.tsx +138 -0
- package/src/labs/DataComponents/componentTypes.ts +111 -0
- package/src/labs/DataComponents/constants.tsx +20 -0
- package/src/labs/DataComponents/dataTypes.ts +77 -0
- package/src/labs/DataComponents/fetchData.ts +47 -0
- package/src/labs/DataComponents/index.tsx +19 -0
- package/src/labs/DataComponents/tableConstants.tsx +162 -0
- package/src/labs/DataComponents/useFilterConversion.ts +92 -0
- package/src/labs/DataFilters.tsx +250 -162
- package/src/labs/DateField.tsx +119 -0
- package/src/labs/DatePicker.tsx +304 -31
- package/src/labs/{DatePicker.types.ts → DatePicker.types.d.ts} +0 -10
- package/src/labs/FileUpload.tsx +30 -21
- package/src/labs/FileUploadIllustration.tsx +1 -1
- package/src/labs/FileUploadPreview.tsx +1 -0
- package/src/labs/Layout.tsx +85 -0
- package/src/labs/NavAccordion.tsx +133 -0
- package/src/labs/PageTemplate.tsx +225 -0
- package/src/labs/SideNav.tsx +745 -0
- package/src/labs/Switch.tsx +240 -119
- package/src/labs/datePickerTheme.tsx +119 -83
- package/src/labs/index.ts +7 -1
- package/src/labs/useDatePickerTranslations.ts +92 -0
- package/src/properties/odyssey-react-mui.properties +76 -10
- package/src/properties/translations/odyssey-react-mui_cs.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_da.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_de.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_el.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_es.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_fi.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_fr.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ht.properties +112 -0
- package/src/properties/translations/odyssey-react-mui_hu.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_id.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_it.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ja.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ko.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ms.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_nb.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ok_PL.properties +33 -2
- package/src/properties/translations/odyssey-react-mui_ok_SK.properties +33 -2
- package/src/properties/translations/odyssey-react-mui_pl.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ro.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_ru.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_sv.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_th.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_tr.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_uk.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_vi.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +92 -2
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +92 -2
- package/src/properties/ts/odyssey-react-mui.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_cs.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_da.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_de.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_el.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_es.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_fr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ht.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_hu.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_id.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_it.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ja.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ko.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ms.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nb.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pl.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ro.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_ru.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_sv.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_th.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_tr.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_uk.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_vi.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -1
- package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -1
- package/src/remUtils.ts +27 -0
- package/src/test-selectors/featureTestSelector.ts +41 -0
- package/src/test-selectors/index.ts +15 -0
- package/src/test-selectors/odysseyTestSelectors.ts +22 -0
- package/src/test-selectors/querySelector.ts +198 -0
- package/src/theme/components.tsx +285 -192
- package/src/theme/components.types.ts +5 -3
- package/dist/DataTable/DataTableEmptyState.js.map +0 -1
- package/dist/DataTable/DataTablePagination.js.map +0 -1
- package/dist/Tile.js.map +0 -1
- package/dist/labs/DatePicker.types.js.map +0 -1
- package/dist/labs/Drawer.js.map +0 -1
- package/dist/src/DataTable/DataTableEmptyState.d.ts.map +0 -1
- package/dist/src/DataTable/DataTablePagination.d.ts +0 -33
- package/dist/src/DataTable/DataTablePagination.d.ts.map +0 -1
- package/dist/src/Tile.d.ts.map +0 -1
- package/dist/src/labs/DatePicker.types.d.ts.map +0 -1
- package/dist/src/labs/Drawer.d.ts.map +0 -1
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
MRT_Cell,
|
|
24
24
|
MRT_DensityState,
|
|
25
25
|
MRT_Row,
|
|
26
|
-
MRT_RowData,
|
|
27
26
|
MRT_SortingState,
|
|
28
27
|
MRT_TableOptions,
|
|
29
28
|
MRT_RowSelectionState,
|
|
@@ -31,15 +30,20 @@ import {
|
|
|
31
30
|
MRT_VisibilityState,
|
|
32
31
|
useMaterialReactTable,
|
|
33
32
|
MRT_TableContainer,
|
|
33
|
+
MRT_Column,
|
|
34
|
+
MRT_ColumnDef,
|
|
35
|
+
MRT_TableInstance,
|
|
34
36
|
} from "material-react-table";
|
|
37
|
+
import { useTranslation } from "react-i18next";
|
|
35
38
|
import {
|
|
36
39
|
ArrowDownIcon,
|
|
37
40
|
ArrowUnsortedIcon,
|
|
41
|
+
ChevronDownIcon,
|
|
38
42
|
DragIndicatorIcon,
|
|
39
43
|
MoreIcon,
|
|
40
44
|
} from "../icons.generated";
|
|
41
|
-
import { densityValues
|
|
42
|
-
import {
|
|
45
|
+
import { densityValues } from "./constants";
|
|
46
|
+
import { Pagination, paginationTypeValues, usePagination } from "../Pagination";
|
|
43
47
|
import { DataFilter, DataFilters } from "../labs/DataFilters";
|
|
44
48
|
import {
|
|
45
49
|
DataTableRowActions,
|
|
@@ -49,20 +53,34 @@ import { useRowReordering } from "./useRowReordering";
|
|
|
49
53
|
import { DataTableSettings } from "./DataTableSettings";
|
|
50
54
|
import { MenuButton, MenuButtonProps } from "../MenuButton";
|
|
51
55
|
import { Box } from "../Box";
|
|
52
|
-
import {
|
|
53
|
-
DataTableColumn,
|
|
54
|
-
DataTableRowData,
|
|
55
|
-
DataTableRowSelectionState,
|
|
56
|
-
} from ".";
|
|
56
|
+
import { DataTableRowSelectionState, DataTableRowData } from ".";
|
|
57
57
|
import {
|
|
58
58
|
DesignTokens,
|
|
59
59
|
useOdysseyDesignTokens,
|
|
60
60
|
} from "../OdysseyDesignTokensContext";
|
|
61
61
|
import { useScrollIndication } from "./useScrollIndication";
|
|
62
62
|
import styled from "@emotion/styled";
|
|
63
|
-
import {
|
|
63
|
+
import { EmptyState } from "../EmptyState";
|
|
64
64
|
import { Callout } from "../Callout";
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
export type DataTableColumn<T extends DataTableRowData> = MRT_ColumnDef<T> & {
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated use hasTextWrapping instead of enableWrapping
|
|
69
|
+
*/
|
|
70
|
+
enableWrapping?: boolean;
|
|
71
|
+
hasTextWrapping?: boolean;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
type DataTableColumnInstance<T extends DataTableRowData> = Omit<
|
|
75
|
+
MRT_Column<T, unknown>,
|
|
76
|
+
"columnDef"
|
|
77
|
+
> & {
|
|
78
|
+
columnDef: DataTableColumn<T>;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
type DataTableCell<T extends DataTableRowData> = Omit<MRT_Cell<T>, "column"> & {
|
|
82
|
+
column: DataTableColumnInstance<T>;
|
|
83
|
+
};
|
|
66
84
|
|
|
67
85
|
export type DataTableGetDataType = {
|
|
68
86
|
page?: number;
|
|
@@ -77,29 +95,55 @@ export type DataTableOnReorderRowsType = {
|
|
|
77
95
|
newRowIndex: number;
|
|
78
96
|
};
|
|
79
97
|
|
|
98
|
+
export type DataTableRenderDetailPanelType = {
|
|
99
|
+
row: MRT_Row<DataTableRowData>;
|
|
100
|
+
table: MRT_TableInstance<DataTableRowData>;
|
|
101
|
+
};
|
|
102
|
+
|
|
80
103
|
export type DataTableProps = {
|
|
104
|
+
/**
|
|
105
|
+
* Menu items to include in the bulk actions menu, which appears above the table if a row or rows are selected
|
|
106
|
+
*/
|
|
107
|
+
bulkActionMenuItems?: (
|
|
108
|
+
selectedRows: MRT_RowSelectionState,
|
|
109
|
+
) => MenuButtonProps["children"];
|
|
81
110
|
/**
|
|
82
111
|
* The columns that make up the table
|
|
83
112
|
*/
|
|
84
|
-
columns:
|
|
113
|
+
columns: DataTableColumn<DataTableRowData>[];
|
|
85
114
|
/**
|
|
86
|
-
* The
|
|
87
|
-
* to calculate. Used in table pagination to know when to disable the "next"/"more" button.
|
|
115
|
+
* The current page number.
|
|
88
116
|
*/
|
|
89
|
-
|
|
117
|
+
currentPage?: number;
|
|
90
118
|
/**
|
|
91
|
-
*
|
|
119
|
+
* If `error` is not undefined, the DataTable will indicate an error.
|
|
92
120
|
*/
|
|
93
|
-
|
|
121
|
+
errorMessage?: string;
|
|
94
122
|
/**
|
|
95
|
-
* The
|
|
96
|
-
* table density isn't changeable by the end user via hasChangeableDensity.
|
|
123
|
+
* The component to display when the table is displaying the initial empty state
|
|
97
124
|
*/
|
|
98
|
-
|
|
125
|
+
emptyPlaceholder?: ReactNode;
|
|
99
126
|
/**
|
|
100
|
-
*
|
|
127
|
+
* An optional set of filters to render in the filters menu
|
|
101
128
|
*/
|
|
102
|
-
|
|
129
|
+
filters?: Array<DataFilter | DataTableColumn<DataTableRowData> | string>;
|
|
130
|
+
/**
|
|
131
|
+
* The function to get the ID of a row
|
|
132
|
+
*/
|
|
133
|
+
getRowId?: MRT_TableOptions<DataTableRowData>["getRowId"];
|
|
134
|
+
/**
|
|
135
|
+
* Callback that fires whenever the table needs to fetch new data, due to changes in
|
|
136
|
+
* page, results per page, search input, filters, or sorting
|
|
137
|
+
*/
|
|
138
|
+
getData: ({
|
|
139
|
+
page,
|
|
140
|
+
resultsPerPage,
|
|
141
|
+
search,
|
|
142
|
+
filters,
|
|
143
|
+
sort,
|
|
144
|
+
}: DataTableGetDataType) =>
|
|
145
|
+
| MRT_TableOptions<DataTableRowData>["data"]
|
|
146
|
+
| Promise<MRT_TableOptions<DataTableRowData>["data"]>;
|
|
103
147
|
/**
|
|
104
148
|
* If true, the end user can resize individual columns.
|
|
105
149
|
*/
|
|
@@ -116,6 +160,10 @@ export type DataTableProps = {
|
|
|
116
160
|
* If true, the table will include pagination controls.
|
|
117
161
|
*/
|
|
118
162
|
hasPagination?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* If true, the end user can reorder rows via a drag-and-drop interface
|
|
165
|
+
*/
|
|
166
|
+
hasRowReordering?: boolean;
|
|
119
167
|
/**
|
|
120
168
|
* If true, the table will include checkboxes on each row, enabling
|
|
121
169
|
* the user to select some or all rows.
|
|
@@ -125,60 +173,40 @@ export type DataTableProps = {
|
|
|
125
173
|
* If true, the global table search controls will be shown.
|
|
126
174
|
*/
|
|
127
175
|
hasSearch?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* If true, the end user can sort columns (ascending, descending, or neither)
|
|
130
|
-
*/
|
|
131
|
-
hasSorting?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
* If true, the end user can reorder rows via a drag-and-drop interface
|
|
134
|
-
*/
|
|
135
|
-
hasRowReordering?: boolean;
|
|
136
176
|
/**
|
|
137
177
|
* If true, the search field will include a Search button, rather than
|
|
138
178
|
* firing on input change.
|
|
139
179
|
*/
|
|
140
180
|
hasSearchSubmitButton?: boolean;
|
|
141
181
|
/**
|
|
142
|
-
*
|
|
143
|
-
* `onChangeSearch` when changed. If `hasSearchSubmitButton` is true,
|
|
144
|
-
* this doesn't do anything.
|
|
182
|
+
* If true, the end user can sort columns (ascending, descending, or neither)
|
|
145
183
|
*/
|
|
146
|
-
|
|
184
|
+
hasSorting?: boolean;
|
|
147
185
|
/**
|
|
148
|
-
*
|
|
186
|
+
* If true, the end user will be able to change the table density.
|
|
149
187
|
*/
|
|
150
|
-
|
|
188
|
+
hasChangeableDensity?: boolean;
|
|
151
189
|
/**
|
|
152
|
-
*
|
|
153
|
-
*
|
|
190
|
+
* The initial density (height & padding) of the table rows. This is available even if the
|
|
191
|
+
* table density isn't changeable by the end user via hasChangeableDensity.
|
|
154
192
|
*/
|
|
155
|
-
|
|
156
|
-
page,
|
|
157
|
-
resultsPerPage,
|
|
158
|
-
search,
|
|
159
|
-
filters,
|
|
160
|
-
sort,
|
|
161
|
-
}: DataTableGetDataType) =>
|
|
162
|
-
| MRT_TableOptions<MRT_RowData>["data"]
|
|
163
|
-
| Promise<MRT_TableOptions<MRT_RowData>["data"]>;
|
|
193
|
+
initialDensity?: (typeof densityValues)[number];
|
|
164
194
|
/**
|
|
165
|
-
*
|
|
166
|
-
* to propogate order change to the backend.
|
|
195
|
+
* The initial search value
|
|
167
196
|
*/
|
|
168
|
-
|
|
197
|
+
initialSearchValue?: string;
|
|
169
198
|
/**
|
|
170
|
-
* The
|
|
199
|
+
* The component to display when the query returns no results
|
|
171
200
|
*/
|
|
172
|
-
|
|
201
|
+
noResultsPlaceholder?: ReactNode;
|
|
173
202
|
/**
|
|
174
203
|
* The number of results per page.
|
|
175
204
|
*/
|
|
176
205
|
resultsPerPage?: number;
|
|
177
206
|
/**
|
|
178
|
-
* The
|
|
179
|
-
* set to a simple "Load more" button by setting to "loadMore".
|
|
207
|
+
* The optional component to display when expanding a row.
|
|
180
208
|
*/
|
|
181
|
-
|
|
209
|
+
renderDetailPanel?: MRT_TableOptions<DataTableRowData>["renderDetailPanel"];
|
|
182
210
|
/**
|
|
183
211
|
* Action buttons to display in each row
|
|
184
212
|
*/
|
|
@@ -188,27 +216,30 @@ export type DataTableProps = {
|
|
|
188
216
|
*/
|
|
189
217
|
rowActionMenuItems?: DataTableRowActionsProps["rowActionMenuItems"];
|
|
190
218
|
/**
|
|
191
|
-
*
|
|
219
|
+
* The debounce time, in milliseconds, for the search input firing
|
|
220
|
+
* `onChangeSearch` when changed. If `hasSearchSubmitButton` is true,
|
|
221
|
+
* this doesn't do anything.
|
|
192
222
|
*/
|
|
193
|
-
|
|
194
|
-
selectedRows: MRT_RowSelectionState,
|
|
195
|
-
) => MenuButtonProps["children"];
|
|
223
|
+
searchDelayTime?: number;
|
|
196
224
|
/**
|
|
197
|
-
*
|
|
225
|
+
* Callback that fires when a row (or rows) is selected or unselected.
|
|
198
226
|
*/
|
|
199
|
-
|
|
227
|
+
onChangeRowSelection?: (rowSelection: DataTableRowSelectionState) => void;
|
|
200
228
|
/**
|
|
201
|
-
*
|
|
229
|
+
* Callback that fires when the user reorders rows within the table. Can be used
|
|
230
|
+
* to propogate order change to the backend.
|
|
202
231
|
*/
|
|
203
|
-
|
|
232
|
+
onReorderRows?: ({ rowId, newRowIndex }: DataTableOnReorderRowsType) => void;
|
|
204
233
|
/**
|
|
205
|
-
* The
|
|
234
|
+
* The type of pagination controls shown. Defaults to next/prev buttons, but can be
|
|
235
|
+
* set to a simple "Load more" button by setting to "loadMore".
|
|
206
236
|
*/
|
|
207
|
-
|
|
237
|
+
paginationType?: (typeof paginationTypeValues)[number];
|
|
208
238
|
/**
|
|
209
|
-
*
|
|
239
|
+
* The total number of rows in the table. Optional, because it's sometimes impossible
|
|
240
|
+
* to calculate. Used in table pagination to know when to disable the "next"/"more" button.
|
|
210
241
|
*/
|
|
211
|
-
|
|
242
|
+
totalRows?: number;
|
|
212
243
|
};
|
|
213
244
|
|
|
214
245
|
const displayColumnDefOptions = {
|
|
@@ -262,6 +293,9 @@ const displayColumnDefOptions = {
|
|
|
262
293
|
padding: "checkbox",
|
|
263
294
|
},
|
|
264
295
|
},
|
|
296
|
+
"mrt-row-expand": {
|
|
297
|
+
header: "",
|
|
298
|
+
},
|
|
265
299
|
};
|
|
266
300
|
|
|
267
301
|
const ScrollableTableContainer = styled("div", {
|
|
@@ -279,9 +313,6 @@ const ScrollableTableContainer = styled("div", {
|
|
|
279
313
|
isScrollableStart: boolean;
|
|
280
314
|
isScrollableEnd: boolean;
|
|
281
315
|
}) => ({
|
|
282
|
-
borderBlockEndColor: odysseyDesignTokens.HueNeutral100,
|
|
283
|
-
borderBlockEndStyle: "solid",
|
|
284
|
-
borderBlockEndWidth: odysseyDesignTokens.BorderWidthMain,
|
|
285
316
|
marginBlockEnd: odysseyDesignTokens.Spacing4,
|
|
286
317
|
position: "relative",
|
|
287
318
|
borderInlineStartColor: isScrollableStart
|
|
@@ -325,20 +356,14 @@ const ScrollableTableContainer = styled("div", {
|
|
|
325
356
|
);
|
|
326
357
|
|
|
327
358
|
const DataTable = ({
|
|
359
|
+
bulkActionMenuItems,
|
|
328
360
|
columns,
|
|
329
|
-
getRowId: getRowIdProp,
|
|
330
361
|
currentPage = 1,
|
|
331
|
-
|
|
332
|
-
|
|
362
|
+
emptyPlaceholder,
|
|
363
|
+
errorMessage: errorMessageProp,
|
|
364
|
+
filters: filtersProp,
|
|
333
365
|
getData,
|
|
334
|
-
|
|
335
|
-
totalRows,
|
|
336
|
-
hasSearchSubmitButton,
|
|
337
|
-
searchDelayTime,
|
|
338
|
-
paginationType = "paged",
|
|
339
|
-
onChangeRowSelection,
|
|
340
|
-
rowActionButtons,
|
|
341
|
-
rowActionMenuItems,
|
|
366
|
+
getRowId: getRowIdProp,
|
|
342
367
|
hasChangeableDensity,
|
|
343
368
|
hasColumnResizing,
|
|
344
369
|
hasColumnVisibility,
|
|
@@ -347,19 +372,30 @@ const DataTable = ({
|
|
|
347
372
|
hasRowReordering,
|
|
348
373
|
hasRowSelection,
|
|
349
374
|
hasSearch,
|
|
375
|
+
hasSearchSubmitButton,
|
|
350
376
|
hasSorting,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
emptyPlaceholder,
|
|
377
|
+
initialDensity = densityValues[0],
|
|
378
|
+
initialSearchValue = "",
|
|
354
379
|
noResultsPlaceholder,
|
|
355
|
-
|
|
380
|
+
onChangeRowSelection,
|
|
381
|
+
onReorderRows,
|
|
382
|
+
paginationType = "paged",
|
|
383
|
+
renderDetailPanel,
|
|
384
|
+
resultsPerPage = 20,
|
|
385
|
+
rowActionButtons,
|
|
386
|
+
rowActionMenuItems,
|
|
387
|
+
searchDelayTime,
|
|
388
|
+
totalRows,
|
|
356
389
|
}: DataTableProps) => {
|
|
357
|
-
const
|
|
390
|
+
const { t } = useTranslation();
|
|
391
|
+
|
|
392
|
+
const [data, setData] = useState<DataTableRowData[]>([]);
|
|
358
393
|
const [pagination, setPagination] = useState({
|
|
359
394
|
pageIndex: currentPage,
|
|
360
395
|
pageSize: resultsPerPage,
|
|
361
396
|
});
|
|
362
|
-
const [draggingRow, setDraggingRow] =
|
|
397
|
+
const [draggingRow, setDraggingRow] =
|
|
398
|
+
useState<MRT_Row<DataTableRowData> | null>();
|
|
363
399
|
const [isTableContainerScrolledToStart, setIsTableContainerScrolledToStart] =
|
|
364
400
|
useState(true);
|
|
365
401
|
const [isTableContainerScrolledToEnd, setIsTableContainerScrolledToEnd] =
|
|
@@ -377,7 +413,7 @@ const DataTable = ({
|
|
|
377
413
|
const [rowDensity, setRowDensity] =
|
|
378
414
|
useState<MRT_DensityState>(initialDensity);
|
|
379
415
|
const [rowSelection, setRowSelection] = useState<MRT_RowSelectionState>({});
|
|
380
|
-
const [search, setSearch] = useState<string>(
|
|
416
|
+
const [search, setSearch] = useState<string>(initialSearchValue);
|
|
381
417
|
const [filters, setFilters] = useState<DataFilter[]>();
|
|
382
418
|
const [initialFilters, setInitialFilters] = useState<DataFilter[]>();
|
|
383
419
|
const [isLoading, setIsLoading] = useState<boolean | undefined>(true);
|
|
@@ -416,18 +452,20 @@ const DataTable = ({
|
|
|
416
452
|
page: pagination.pageIndex,
|
|
417
453
|
});
|
|
418
454
|
|
|
419
|
-
const getRowId = getRowIdProp
|
|
455
|
+
const getRowId = getRowIdProp
|
|
456
|
+
? getRowIdProp
|
|
457
|
+
: (row: DataTableRowData) => row.id;
|
|
420
458
|
|
|
421
|
-
const
|
|
459
|
+
const rowDensityClassName = useMemo(() => {
|
|
422
460
|
return rowDensity === "spacious"
|
|
423
|
-
? "
|
|
461
|
+
? "MuiTableBody-spacious"
|
|
424
462
|
: rowDensity === "compact"
|
|
425
|
-
? "
|
|
426
|
-
: "
|
|
463
|
+
? "MuiTableBody-compact"
|
|
464
|
+
: "MuiTableBody-default";
|
|
427
465
|
}, [rowDensity]);
|
|
428
466
|
|
|
429
467
|
const renderRowActions = useCallback(
|
|
430
|
-
({ row }: { row: MRT_Row<
|
|
468
|
+
({ row }: { row: MRT_Row<DataTableRowData> }) => {
|
|
431
469
|
const currentIndex =
|
|
432
470
|
row.index + (pagination.pageIndex - 1) * pagination.pageSize;
|
|
433
471
|
return (
|
|
@@ -523,9 +561,15 @@ const DataTable = ({
|
|
|
523
561
|
}, [columns, filtersProp, convertColumnToFilter]);
|
|
524
562
|
|
|
525
563
|
const defaultCell = useCallback(
|
|
526
|
-
({ cell }: { cell:
|
|
564
|
+
({ cell }: { cell: DataTableCell<DataTableRowData> }) => {
|
|
527
565
|
const value = cell.getValue<string>();
|
|
528
|
-
|
|
566
|
+
const hasTextWrapping =
|
|
567
|
+
cell.column.columnDef.hasTextWrapping ||
|
|
568
|
+
cell.column.columnDef.enableWrapping;
|
|
569
|
+
|
|
570
|
+
return hasTextWrapping ? (
|
|
571
|
+
value
|
|
572
|
+
) : (
|
|
529
573
|
<Box
|
|
530
574
|
sx={{
|
|
531
575
|
whiteSpace: "nowrap",
|
|
@@ -542,9 +586,9 @@ const DataTable = ({
|
|
|
542
586
|
|
|
543
587
|
const emptyState = useCallback(() => {
|
|
544
588
|
const noResultsInnerContent = noResultsPlaceholder || (
|
|
545
|
-
<
|
|
589
|
+
<EmptyState
|
|
546
590
|
heading={t("table.noresults.heading")}
|
|
547
|
-
|
|
591
|
+
description={t("table.noresults.text")}
|
|
548
592
|
/>
|
|
549
593
|
);
|
|
550
594
|
|
|
@@ -557,28 +601,45 @@ const DataTable = ({
|
|
|
557
601
|
</Box>
|
|
558
602
|
);
|
|
559
603
|
}, [
|
|
560
|
-
tableInnerContainerWidth,
|
|
561
604
|
emptyPlaceholder,
|
|
562
|
-
noResultsPlaceholder,
|
|
563
605
|
isEmpty,
|
|
606
|
+
noResultsPlaceholder,
|
|
607
|
+
t,
|
|
608
|
+
tableInnerContainerWidth,
|
|
564
609
|
]);
|
|
565
610
|
|
|
611
|
+
const columnIds = useMemo(() => {
|
|
612
|
+
return columns.map((column) => column.accessorKey);
|
|
613
|
+
}, [columns]);
|
|
614
|
+
|
|
615
|
+
const columnOrder = useMemo(
|
|
616
|
+
() => [
|
|
617
|
+
"mrt-row-drag",
|
|
618
|
+
"mrt-row-select",
|
|
619
|
+
"mrt-row-expand",
|
|
620
|
+
...columnIds,
|
|
621
|
+
"mrt-row-actions",
|
|
622
|
+
],
|
|
623
|
+
[columnIds],
|
|
624
|
+
) as string[];
|
|
625
|
+
|
|
566
626
|
const dataTable = useMaterialReactTable({
|
|
567
627
|
columns: columns,
|
|
568
628
|
data: data,
|
|
569
629
|
getRowId: getRowId,
|
|
570
630
|
state: {
|
|
571
|
-
density: rowDensity,
|
|
572
631
|
sorting: columnSorting,
|
|
573
632
|
globalFilter: search,
|
|
574
633
|
columnVisibility,
|
|
575
634
|
isLoading,
|
|
576
635
|
rowSelection,
|
|
636
|
+
columnOrder,
|
|
577
637
|
},
|
|
578
638
|
icons: {
|
|
579
639
|
ArrowDownwardIcon: ArrowDownIcon,
|
|
580
640
|
DragHandleIcon: DragIndicatorIcon,
|
|
581
641
|
SyncAltIcon: ArrowUnsortedIcon,
|
|
642
|
+
ExpandMoreIcon: ChevronDownIcon,
|
|
582
643
|
},
|
|
583
644
|
|
|
584
645
|
// Base table settings
|
|
@@ -601,9 +662,9 @@ const DataTable = ({
|
|
|
601
662
|
},
|
|
602
663
|
selectAllMode: "all",
|
|
603
664
|
displayColumnDefOptions:
|
|
604
|
-
displayColumnDefOptions as MRT_TableOptions<
|
|
605
|
-
|
|
606
|
-
className:
|
|
665
|
+
displayColumnDefOptions as MRT_TableOptions<DataTableRowData>["displayColumnDefOptions"],
|
|
666
|
+
muiTableBodyProps: () => ({
|
|
667
|
+
className: rowDensityClassName,
|
|
607
668
|
}),
|
|
608
669
|
defaultColumn: {
|
|
609
670
|
Cell: defaultCell,
|
|
@@ -636,7 +697,7 @@ const DataTable = ({
|
|
|
636
697
|
? true
|
|
637
698
|
: false,
|
|
638
699
|
positionActionsColumn:
|
|
639
|
-
"last" as MRT_TableOptions<
|
|
700
|
+
"last" as MRT_TableOptions<DataTableRowData>["positionActionsColumn"],
|
|
640
701
|
renderRowActions: ({ row }) => renderRowActions({ row }),
|
|
641
702
|
|
|
642
703
|
// Row selection
|
|
@@ -674,6 +735,10 @@ const DataTable = ({
|
|
|
674
735
|
muiTableContainerProps: {
|
|
675
736
|
ref: tableInnerContainerRef,
|
|
676
737
|
},
|
|
738
|
+
|
|
739
|
+
// Row expansion
|
|
740
|
+
enableExpandAll: false,
|
|
741
|
+
renderDetailPanel: renderDetailPanel,
|
|
677
742
|
});
|
|
678
743
|
|
|
679
744
|
// Effects
|
|
@@ -712,7 +777,15 @@ const DataTable = ({
|
|
|
712
777
|
setIsLoading(false);
|
|
713
778
|
}
|
|
714
779
|
})();
|
|
715
|
-
}, [
|
|
780
|
+
}, [
|
|
781
|
+
columnSorting,
|
|
782
|
+
errorMessageProp,
|
|
783
|
+
filters,
|
|
784
|
+
getData,
|
|
785
|
+
pagination,
|
|
786
|
+
search,
|
|
787
|
+
t,
|
|
788
|
+
]);
|
|
716
789
|
|
|
717
790
|
useEffect(() => {
|
|
718
791
|
if (!initialFilters && filters) {
|
|
@@ -740,6 +813,12 @@ const DataTable = ({
|
|
|
740
813
|
onChangeRowSelection?.(rowSelection);
|
|
741
814
|
}, [rowSelection, onChangeRowSelection]);
|
|
742
815
|
|
|
816
|
+
const { lastRow } = usePagination({
|
|
817
|
+
pageIndex: pagination.pageIndex,
|
|
818
|
+
pageSize: pagination.pageSize,
|
|
819
|
+
totalRows,
|
|
820
|
+
});
|
|
821
|
+
|
|
743
822
|
// Render the table
|
|
744
823
|
return (
|
|
745
824
|
<>
|
|
@@ -755,6 +834,7 @@ const DataTable = ({
|
|
|
755
834
|
hasSearchSubmitButton={hasSearchSubmitButton}
|
|
756
835
|
searchDelayTime={searchDelayTime}
|
|
757
836
|
filters={hasFilters ? dataTableFilters : undefined}
|
|
837
|
+
defaultSearchTerm={initialSearchValue}
|
|
758
838
|
isDisabled={isEmpty}
|
|
759
839
|
additionalActions={
|
|
760
840
|
<>
|
|
@@ -790,12 +870,19 @@ const DataTable = ({
|
|
|
790
870
|
</ScrollableTableContainer>
|
|
791
871
|
|
|
792
872
|
{hasPagination && (
|
|
793
|
-
<
|
|
794
|
-
|
|
795
|
-
|
|
873
|
+
<Pagination
|
|
874
|
+
pageIndex={pagination.pageIndex}
|
|
875
|
+
pageSize={pagination.pageSize}
|
|
876
|
+
onPaginationChange={setPagination}
|
|
877
|
+
lastRow={lastRow}
|
|
796
878
|
totalRows={totalRows}
|
|
797
879
|
isDisabled={isEmpty}
|
|
798
880
|
variant={paginationType}
|
|
881
|
+
rowsPerPageLabel={t("pagination.rowsperpage")}
|
|
882
|
+
currentPageLabel={t("pagination.page")}
|
|
883
|
+
previousLabel={t("pagination.previous")}
|
|
884
|
+
nextLabel={t("pagination.next")}
|
|
885
|
+
loadMoreLabel={t("pagination.loadmore")}
|
|
799
886
|
/>
|
|
800
887
|
)}
|
|
801
888
|
</>
|
|
@@ -27,7 +27,7 @@ import { DataTableProps } from "./DataTable";
|
|
|
27
27
|
import { Trans, useTranslation } from "react-i18next";
|
|
28
28
|
|
|
29
29
|
export type DataTableRowActionsProps = {
|
|
30
|
-
row: MRT_Row<MRT_RowData
|
|
30
|
+
row: MRT_Row<MRT_RowData> | MRT_RowData;
|
|
31
31
|
rowIndex: number;
|
|
32
32
|
rowActionButtons?: (
|
|
33
33
|
row: MRT_RowData,
|
package/src/DataTable/index.tsx
CHANGED
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
export {
|
|
14
14
|
DataTable,
|
|
15
|
+
type DataTableColumn,
|
|
15
16
|
type DataTableProps,
|
|
16
17
|
type DataTableGetDataType,
|
|
17
18
|
type DataTableOnReorderRowsType,
|
|
19
|
+
type DataTableRenderDetailPanelType,
|
|
18
20
|
} from "./DataTable";
|
|
19
|
-
export { DataTableEmptyState } from "./DataTableEmptyState";
|
|
20
21
|
export { densityValues } from "./constants";
|
|
21
22
|
export type {
|
|
22
23
|
MRT_ColumnFiltersState as DataTableFiltersState,
|
|
23
24
|
MRT_SortingState as DataTableSortingState,
|
|
24
25
|
MRT_RowSelectionState as DataTableRowSelectionState,
|
|
25
|
-
MRT_ColumnDef as DataTableColumn,
|
|
26
26
|
MRT_RowData as DataTableRowData,
|
|
27
27
|
MRT_Row as DataTableRow,
|
|
28
28
|
} from "material-react-table";
|