@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
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
SetStateAction,
|
|
15
|
+
memo,
|
|
16
|
+
useCallback,
|
|
17
|
+
useMemo,
|
|
18
|
+
useRef,
|
|
19
|
+
useState,
|
|
20
|
+
ReactNode,
|
|
21
|
+
Dispatch,
|
|
22
|
+
ReactElement,
|
|
23
|
+
} from "react";
|
|
24
|
+
import styled, { CSSObject } from "@emotion/styled";
|
|
25
|
+
import {
|
|
26
|
+
MRT_Row,
|
|
27
|
+
MRT_RowData,
|
|
28
|
+
MRT_RowSelectionState,
|
|
29
|
+
MRT_TableContainer,
|
|
30
|
+
MRT_TableInstance,
|
|
31
|
+
MRT_TableOptions,
|
|
32
|
+
useMaterialReactTable,
|
|
33
|
+
} from "material-react-table";
|
|
34
|
+
import { useTranslation } from "react-i18next";
|
|
35
|
+
|
|
36
|
+
import {
|
|
37
|
+
ArrowDownIcon,
|
|
38
|
+
ArrowUnsortedIcon,
|
|
39
|
+
ChevronDownIcon,
|
|
40
|
+
DragIndicatorIcon,
|
|
41
|
+
} from "../../icons.generated";
|
|
42
|
+
import { Box } from "../../Box";
|
|
43
|
+
import { TableProps, TableState, UniversalProps } from "./componentTypes";
|
|
44
|
+
import { DataTableCell } from "./dataTypes";
|
|
45
|
+
import {
|
|
46
|
+
dataTableImmutableSettings,
|
|
47
|
+
displayColumnDefOptions,
|
|
48
|
+
ScrollableTableContainer,
|
|
49
|
+
} from "./tableConstants";
|
|
50
|
+
import { MenuButton } from "../../MenuButton";
|
|
51
|
+
import { MoreIcon } from "../../icons.generated";
|
|
52
|
+
import { RowActions } from "./RowActions";
|
|
53
|
+
import { useOdysseyDesignTokens } from "../../OdysseyDesignTokensContext";
|
|
54
|
+
import { useScrollIndication } from "../../DataTable/useScrollIndication";
|
|
55
|
+
|
|
56
|
+
const TextWrapper = styled("div")(() => ({
|
|
57
|
+
whiteSpace: "nowrap",
|
|
58
|
+
textOverflow: "ellipsis",
|
|
59
|
+
overflow: "hidden",
|
|
60
|
+
}));
|
|
61
|
+
|
|
62
|
+
const RowActionsContainer = styled("div")(() => ({
|
|
63
|
+
display: "flex",
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
export type TableContentProps = {
|
|
67
|
+
columns: TableProps["columns"];
|
|
68
|
+
data: MRT_RowData[];
|
|
69
|
+
draggingRow?: MRT_Row<MRT_RowData> | null;
|
|
70
|
+
emptyState: ReactNode;
|
|
71
|
+
getRowId: UniversalProps["getRowId"];
|
|
72
|
+
hasRowReordering: UniversalProps["hasRowReordering"];
|
|
73
|
+
hasRowSelection: UniversalProps["hasRowSelection"];
|
|
74
|
+
isEmpty?: boolean;
|
|
75
|
+
isLoading: boolean;
|
|
76
|
+
isNoResults?: boolean;
|
|
77
|
+
isRowReorderingDisabled?: boolean;
|
|
78
|
+
onReorderRows: UniversalProps["onReorderRows"];
|
|
79
|
+
pagination: {
|
|
80
|
+
pageIndex: number;
|
|
81
|
+
pageSize: number;
|
|
82
|
+
};
|
|
83
|
+
rowReorderingUtilities: {
|
|
84
|
+
dragHandleStyles: CSSObject;
|
|
85
|
+
dragHandleText: {
|
|
86
|
+
title: string;
|
|
87
|
+
"aria-label": string;
|
|
88
|
+
};
|
|
89
|
+
draggableTableBodyRowClassName: ({
|
|
90
|
+
currentRowId,
|
|
91
|
+
draggingRowId,
|
|
92
|
+
hoveredRowId,
|
|
93
|
+
}: {
|
|
94
|
+
currentRowId: string;
|
|
95
|
+
draggingRowId?: string;
|
|
96
|
+
hoveredRowId?: string;
|
|
97
|
+
}) => string | undefined;
|
|
98
|
+
handleDragHandleKeyDown: ({
|
|
99
|
+
table,
|
|
100
|
+
row,
|
|
101
|
+
event,
|
|
102
|
+
}: {
|
|
103
|
+
table: MRT_TableInstance<MRT_RowData>;
|
|
104
|
+
row: MRT_Row<MRT_RowData>;
|
|
105
|
+
event: React.KeyboardEvent<HTMLButtonElement>;
|
|
106
|
+
}) => void;
|
|
107
|
+
handleDragHandleOnDragCapture: (
|
|
108
|
+
table: MRT_TableInstance<MRT_RowData>,
|
|
109
|
+
) => void;
|
|
110
|
+
handleDragHandleOnDragEnd: (table: MRT_TableInstance<MRT_RowData>) => void;
|
|
111
|
+
resetDraggingAndHoveredRow: (table: MRT_TableInstance<MRT_RowData>) => void;
|
|
112
|
+
updateRowOrder: ({
|
|
113
|
+
rowId,
|
|
114
|
+
newRowIndex,
|
|
115
|
+
}: {
|
|
116
|
+
rowId: string;
|
|
117
|
+
newRowIndex: number;
|
|
118
|
+
}) => void;
|
|
119
|
+
};
|
|
120
|
+
rowSelection: MRT_RowSelectionState;
|
|
121
|
+
setRowSelection: Dispatch<SetStateAction<MRT_RowSelectionState>>;
|
|
122
|
+
setTableState: Dispatch<SetStateAction<TableState>>;
|
|
123
|
+
tableOptions: TableProps;
|
|
124
|
+
tableState: TableState;
|
|
125
|
+
totalRows: UniversalProps["totalRows"];
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const TableContent = ({
|
|
129
|
+
columns,
|
|
130
|
+
data,
|
|
131
|
+
draggingRow,
|
|
132
|
+
emptyState,
|
|
133
|
+
getRowId,
|
|
134
|
+
hasRowReordering,
|
|
135
|
+
hasRowSelection,
|
|
136
|
+
isEmpty,
|
|
137
|
+
isLoading,
|
|
138
|
+
isNoResults,
|
|
139
|
+
isRowReorderingDisabled,
|
|
140
|
+
onReorderRows,
|
|
141
|
+
pagination,
|
|
142
|
+
rowReorderingUtilities,
|
|
143
|
+
rowSelection,
|
|
144
|
+
setRowSelection,
|
|
145
|
+
setTableState,
|
|
146
|
+
tableOptions,
|
|
147
|
+
tableState,
|
|
148
|
+
totalRows,
|
|
149
|
+
}: TableContentProps) => {
|
|
150
|
+
const [isTableContainerScrolledToStart, setIsTableContainerScrolledToStart] =
|
|
151
|
+
useState(true);
|
|
152
|
+
const [isTableContainerScrolledToEnd, setIsTableContainerScrolledToEnd] =
|
|
153
|
+
useState(true);
|
|
154
|
+
const [tableInnerContainerWidth, setTableInnerContainerWidth] =
|
|
155
|
+
useState<string>("100%");
|
|
156
|
+
const tableOuterContainerRef = useRef<HTMLDivElement>(null);
|
|
157
|
+
const tableInnerContainerRef = useRef<HTMLDivElement>(null);
|
|
158
|
+
const tableContentRef = useRef<HTMLTableElement>(null);
|
|
159
|
+
|
|
160
|
+
useScrollIndication({
|
|
161
|
+
setIsTableContainerScrolledToEnd: setIsTableContainerScrolledToEnd,
|
|
162
|
+
setIsTableContainerScrolledToStart: setIsTableContainerScrolledToStart,
|
|
163
|
+
setTableInnerContainerWidth: setTableInnerContainerWidth,
|
|
164
|
+
tableInnerContainer: tableInnerContainerRef.current,
|
|
165
|
+
tableOuterContainer: tableOuterContainerRef.current,
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
169
|
+
const { t } = useTranslation();
|
|
170
|
+
|
|
171
|
+
const columnIds = useMemo(() => {
|
|
172
|
+
return columns.map((column) => column.accessorKey) ?? [];
|
|
173
|
+
}, [columns]);
|
|
174
|
+
|
|
175
|
+
const columnOrder = useMemo(
|
|
176
|
+
() => [
|
|
177
|
+
"mrt-row-drag",
|
|
178
|
+
"mrt-row-select",
|
|
179
|
+
"mrt-row-expand",
|
|
180
|
+
...(columnIds?.filter((id): id is string => typeof id === "string") ||
|
|
181
|
+
[]),
|
|
182
|
+
"mrt-row-actions",
|
|
183
|
+
],
|
|
184
|
+
[columnIds],
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
const rowDensityClassName = useMemo(() => {
|
|
188
|
+
return tableState.rowDensity === "spacious"
|
|
189
|
+
? "MuiTableBody-spacious"
|
|
190
|
+
: tableState.rowDensity === "compact"
|
|
191
|
+
? "MuiTableBody-compact"
|
|
192
|
+
: "MuiTableBody-default";
|
|
193
|
+
}, [tableState]);
|
|
194
|
+
|
|
195
|
+
const defaultCell = useCallback<
|
|
196
|
+
({ cell }: { cell: DataTableCell<MRT_RowData> }) => ReactElement | string
|
|
197
|
+
>(({ cell }) => {
|
|
198
|
+
const value = cell.getValue<string>();
|
|
199
|
+
const hasTextWrapping =
|
|
200
|
+
cell.column.columnDef.hasTextWrapping ||
|
|
201
|
+
cell.column.columnDef.enableWrapping;
|
|
202
|
+
return hasTextWrapping ? value : <TextWrapper>{value}</TextWrapper>;
|
|
203
|
+
}, []);
|
|
204
|
+
|
|
205
|
+
const {
|
|
206
|
+
draggableTableBodyRowClassName,
|
|
207
|
+
dragHandleStyles,
|
|
208
|
+
dragHandleText,
|
|
209
|
+
handleDragHandleKeyDown,
|
|
210
|
+
handleDragHandleOnDragCapture,
|
|
211
|
+
handleDragHandleOnDragEnd,
|
|
212
|
+
resetDraggingAndHoveredRow,
|
|
213
|
+
updateRowOrder,
|
|
214
|
+
} = rowReorderingUtilities;
|
|
215
|
+
|
|
216
|
+
const renderRowActions = useCallback(
|
|
217
|
+
({ row }: { row: MRT_Row<MRT_RowData> }) => {
|
|
218
|
+
const currentIndex =
|
|
219
|
+
row.index + (pagination.pageIndex - 1) * pagination.pageSize;
|
|
220
|
+
return (
|
|
221
|
+
<RowActionsContainer>
|
|
222
|
+
{tableOptions.rowActionButtons?.(row)}
|
|
223
|
+
{(tableOptions.rowActionMenuItems || hasRowReordering) && (
|
|
224
|
+
<MenuButton
|
|
225
|
+
ariaLabel={t("table.moreactions.arialabel")}
|
|
226
|
+
buttonVariant="floating"
|
|
227
|
+
endIcon={<MoreIcon />}
|
|
228
|
+
menuAlignment="right"
|
|
229
|
+
size="small"
|
|
230
|
+
>
|
|
231
|
+
<RowActions
|
|
232
|
+
isRowReorderingDisabled={isRowReorderingDisabled}
|
|
233
|
+
row={row}
|
|
234
|
+
rowActionMenuItems={tableOptions.rowActionMenuItems}
|
|
235
|
+
rowIndex={currentIndex}
|
|
236
|
+
totalRows={totalRows}
|
|
237
|
+
updateRowOrder={
|
|
238
|
+
hasRowReordering && onReorderRows ? updateRowOrder : undefined
|
|
239
|
+
}
|
|
240
|
+
/>
|
|
241
|
+
</MenuButton>
|
|
242
|
+
)}
|
|
243
|
+
</RowActionsContainer>
|
|
244
|
+
);
|
|
245
|
+
},
|
|
246
|
+
[
|
|
247
|
+
hasRowReordering,
|
|
248
|
+
isRowReorderingDisabled,
|
|
249
|
+
onReorderRows,
|
|
250
|
+
pagination.pageIndex,
|
|
251
|
+
pagination.pageSize,
|
|
252
|
+
t,
|
|
253
|
+
tableOptions,
|
|
254
|
+
totalRows,
|
|
255
|
+
updateRowOrder,
|
|
256
|
+
],
|
|
257
|
+
);
|
|
258
|
+
|
|
259
|
+
const innerWidthStyle = useMemo(
|
|
260
|
+
() => ({ width: tableInnerContainerWidth }),
|
|
261
|
+
[tableInnerContainerWidth],
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
const emptyStateContainer = useCallback(
|
|
265
|
+
() => <Box sx={innerWidthStyle}>{emptyState}</Box>,
|
|
266
|
+
[innerWidthStyle, emptyState],
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
const dataTable = useMaterialReactTable({
|
|
270
|
+
data: !isEmpty && !isNoResults ? data : [],
|
|
271
|
+
columns,
|
|
272
|
+
getRowId,
|
|
273
|
+
state: {
|
|
274
|
+
sorting: tableState.columnSorting,
|
|
275
|
+
columnVisibility: tableState.columnVisibility,
|
|
276
|
+
isLoading: isLoading,
|
|
277
|
+
rowSelection: rowSelection,
|
|
278
|
+
columnOrder: columnOrder,
|
|
279
|
+
},
|
|
280
|
+
icons: {
|
|
281
|
+
ArrowDownwardIcon: ArrowDownIcon,
|
|
282
|
+
DragHandleIcon: DragIndicatorIcon,
|
|
283
|
+
SyncAltIcon: ArrowUnsortedIcon,
|
|
284
|
+
ExpandMoreIcon: ChevronDownIcon,
|
|
285
|
+
},
|
|
286
|
+
...dataTableImmutableSettings,
|
|
287
|
+
displayColumnDefOptions: displayColumnDefOptions satisfies Partial<
|
|
288
|
+
MRT_TableOptions<MRT_RowData>["displayColumnDefOptions"]
|
|
289
|
+
>,
|
|
290
|
+
muiTableProps: {
|
|
291
|
+
ref: tableContentRef,
|
|
292
|
+
},
|
|
293
|
+
muiTableContainerProps: {
|
|
294
|
+
ref: tableInnerContainerRef,
|
|
295
|
+
},
|
|
296
|
+
muiTableBodyProps: () => ({
|
|
297
|
+
className: rowDensityClassName,
|
|
298
|
+
}),
|
|
299
|
+
enableColumnResizing: tableOptions.hasColumnResizing,
|
|
300
|
+
defaultColumn: {
|
|
301
|
+
Cell: defaultCell,
|
|
302
|
+
},
|
|
303
|
+
enableRowActions:
|
|
304
|
+
(hasRowReordering === true && onReorderRows) ||
|
|
305
|
+
tableOptions.rowActionButtons ||
|
|
306
|
+
tableOptions.rowActionMenuItems
|
|
307
|
+
? true
|
|
308
|
+
: false,
|
|
309
|
+
renderRowActions: ({ row }) => renderRowActions({ row }),
|
|
310
|
+
enableRowOrdering: hasRowReordering && Boolean(onReorderRows),
|
|
311
|
+
enableRowDragging: hasRowReordering && Boolean(onReorderRows),
|
|
312
|
+
muiDetailPanelProps: ({ row }) => ({
|
|
313
|
+
sx: {
|
|
314
|
+
paddingBlock: row.getIsExpanded()
|
|
315
|
+
? `${odysseyDesignTokens.Spacing3} !important`
|
|
316
|
+
: undefined,
|
|
317
|
+
},
|
|
318
|
+
}),
|
|
319
|
+
muiTableBodyRowProps: ({ table, row, isDetailPanel }) => ({
|
|
320
|
+
className: draggableTableBodyRowClassName({
|
|
321
|
+
currentRowId: row.id,
|
|
322
|
+
draggingRowId: draggingRow?.id,
|
|
323
|
+
hoveredRowId: table.getState().hoveredRow?.id,
|
|
324
|
+
}),
|
|
325
|
+
sx: isDetailPanel
|
|
326
|
+
? {
|
|
327
|
+
paddingBlock: "0 !important",
|
|
328
|
+
border: 0,
|
|
329
|
+
["&:hover"]: {
|
|
330
|
+
backgroundColor: `${odysseyDesignTokens.HueNeutralWhite} !important`,
|
|
331
|
+
},
|
|
332
|
+
}
|
|
333
|
+
: {},
|
|
334
|
+
}),
|
|
335
|
+
muiRowDragHandleProps: ({ table, row }) => ({
|
|
336
|
+
onKeyDown: (event) => handleDragHandleKeyDown({ table, row, event }),
|
|
337
|
+
onBlur: () => resetDraggingAndHoveredRow(table),
|
|
338
|
+
onDragEnd: () => handleDragHandleOnDragEnd(table),
|
|
339
|
+
onDragCapture: () => handleDragHandleOnDragCapture(table),
|
|
340
|
+
disabled: isRowReorderingDisabled,
|
|
341
|
+
sx: dragHandleStyles,
|
|
342
|
+
...dragHandleText,
|
|
343
|
+
}),
|
|
344
|
+
renderDetailPanel: tableOptions.renderDetailPanel,
|
|
345
|
+
enableRowVirtualization: data.length >= 50,
|
|
346
|
+
muiTableHeadCellProps: ({ column: currentColumn }) => ({
|
|
347
|
+
className: tableState.columnSorting.find(
|
|
348
|
+
(sortedColumn) => sortedColumn.id === currentColumn.id,
|
|
349
|
+
)
|
|
350
|
+
? "isSorted"
|
|
351
|
+
: "isUnsorted",
|
|
352
|
+
}),
|
|
353
|
+
enableSorting: tableOptions.hasSorting === true, // I don't know why this needs to be true, but it still works if undefined otherwise
|
|
354
|
+
onSortingChange: (sortingUpdater) => {
|
|
355
|
+
const newSortVal =
|
|
356
|
+
typeof sortingUpdater === "function"
|
|
357
|
+
? sortingUpdater(tableState.columnSorting)
|
|
358
|
+
: tableState.columnSorting;
|
|
359
|
+
setTableState((prevState) => ({
|
|
360
|
+
...prevState,
|
|
361
|
+
columnSorting: newSortVal,
|
|
362
|
+
}));
|
|
363
|
+
},
|
|
364
|
+
enableRowSelection: hasRowSelection,
|
|
365
|
+
onRowSelectionChange: setRowSelection,
|
|
366
|
+
renderEmptyRowsFallback: emptyStateContainer,
|
|
367
|
+
localization: {
|
|
368
|
+
collapse: t("table.rowexpansion.collapse"),
|
|
369
|
+
collapseAll: t("table.rowexpansion.collapseall"),
|
|
370
|
+
expand: t("table.rowexpansion.expand"),
|
|
371
|
+
expandAll: t("table.rowexpansion.expandall"),
|
|
372
|
+
},
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
return (
|
|
376
|
+
<ScrollableTableContainer
|
|
377
|
+
isScrollableEnd={!isTableContainerScrolledToEnd}
|
|
378
|
+
isScrollableStart={!isTableContainerScrolledToStart}
|
|
379
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
380
|
+
ref={tableOuterContainerRef}
|
|
381
|
+
>
|
|
382
|
+
<MRT_TableContainer table={dataTable} />
|
|
383
|
+
</ScrollableTableContainer>
|
|
384
|
+
);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
const MemoizedTableContent = memo(TableContent);
|
|
388
|
+
MemoizedTableContent.displayName = "TableContent";
|
|
389
|
+
|
|
390
|
+
export { MemoizedTableContent as TableContent };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { Dispatch, SetStateAction, memo, useCallback, useMemo } from "react";
|
|
14
|
+
import { Checkbox as MuiCheckbox } from "@mui/material";
|
|
15
|
+
import { useTranslation } from "react-i18next";
|
|
16
|
+
|
|
17
|
+
import { densityValues } from "./constants";
|
|
18
|
+
import { ListIcon, ShowIcon } from "../../icons.generated";
|
|
19
|
+
import { MenuButton } from "../../MenuButton";
|
|
20
|
+
import { MenuItem } from "../../MenuItem";
|
|
21
|
+
import { TableProps, TableState } from "./componentTypes";
|
|
22
|
+
|
|
23
|
+
export type TableSettingsProps = {
|
|
24
|
+
setTableState: Dispatch<SetStateAction<TableState>>;
|
|
25
|
+
tableOptions: TableProps;
|
|
26
|
+
tableState: TableState;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const TableSettings = ({
|
|
30
|
+
setTableState,
|
|
31
|
+
tableOptions,
|
|
32
|
+
tableState,
|
|
33
|
+
}: TableSettingsProps) => {
|
|
34
|
+
const { t } = useTranslation();
|
|
35
|
+
|
|
36
|
+
const { hasChangeableDensity, hasColumnVisibility, columns } = tableOptions;
|
|
37
|
+
const { rowDensity, columnVisibility } = tableState;
|
|
38
|
+
|
|
39
|
+
const changeRowDensity = useCallback(
|
|
40
|
+
(value: (typeof densityValues)[number]) =>
|
|
41
|
+
(_event: React.MouseEvent<HTMLLIElement>) => {
|
|
42
|
+
// This is necessary to avoid linter errors, while the _event is necessary to satisfy the onClick type
|
|
43
|
+
if (process.env.NODE_ENV === "development") console.debug(_event);
|
|
44
|
+
|
|
45
|
+
setTableState((prevState) => ({
|
|
46
|
+
...prevState,
|
|
47
|
+
rowDensity: value,
|
|
48
|
+
}));
|
|
49
|
+
},
|
|
50
|
+
[setTableState],
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const changeColumnVisibility = useCallback(
|
|
54
|
+
(columnId: string) => (_event: React.MouseEvent<HTMLLIElement>) => {
|
|
55
|
+
// This is necessary to avoid linter errors, while the _event is necessary to satisfy the onClick type
|
|
56
|
+
if (process.env.NODE_ENV === "development") console.debug(_event);
|
|
57
|
+
|
|
58
|
+
setTableState((prevState) => ({
|
|
59
|
+
...prevState,
|
|
60
|
+
columnVisibility: {
|
|
61
|
+
...prevState.columnVisibility,
|
|
62
|
+
[columnId]: prevState.columnVisibility
|
|
63
|
+
? prevState.columnVisibility[columnId] === false
|
|
64
|
+
: false,
|
|
65
|
+
},
|
|
66
|
+
}));
|
|
67
|
+
},
|
|
68
|
+
[setTableState],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
const isColumnVisibilityChecked = useMemo(() => {
|
|
72
|
+
return columns.reduce(
|
|
73
|
+
(acc, column) => {
|
|
74
|
+
const isChecked = columnVisibility
|
|
75
|
+
? columnVisibility[column.accessorKey!] !== false
|
|
76
|
+
: true;
|
|
77
|
+
acc[column.accessorKey!] = isChecked;
|
|
78
|
+
return acc;
|
|
79
|
+
},
|
|
80
|
+
{} as Record<string, boolean>,
|
|
81
|
+
);
|
|
82
|
+
}, [columns, columnVisibility]);
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<>
|
|
86
|
+
{hasChangeableDensity && (
|
|
87
|
+
<MenuButton
|
|
88
|
+
ariaLabel={t("table.density.arialabel")}
|
|
89
|
+
endIcon={<ListIcon />}
|
|
90
|
+
menuAlignment="right"
|
|
91
|
+
shouldCloseOnSelect={false}
|
|
92
|
+
>
|
|
93
|
+
<>
|
|
94
|
+
{densityValues.map((value: (typeof densityValues)[number]) => (
|
|
95
|
+
<MenuItem
|
|
96
|
+
key={value}
|
|
97
|
+
isSelected={rowDensity === value}
|
|
98
|
+
onClick={changeRowDensity(value)}
|
|
99
|
+
>
|
|
100
|
+
{`${value.charAt(0).toUpperCase()}${value.slice(1)}`}
|
|
101
|
+
</MenuItem>
|
|
102
|
+
))}
|
|
103
|
+
</>
|
|
104
|
+
</MenuButton>
|
|
105
|
+
)}
|
|
106
|
+
|
|
107
|
+
{hasColumnVisibility && (
|
|
108
|
+
<MenuButton
|
|
109
|
+
ariaLabel={t("table.columnvisibility.arialabel")}
|
|
110
|
+
endIcon={<ShowIcon />}
|
|
111
|
+
menuAlignment="right"
|
|
112
|
+
shouldCloseOnSelect={false}
|
|
113
|
+
>
|
|
114
|
+
<>
|
|
115
|
+
{columns
|
|
116
|
+
.filter((column) => column.enableHiding !== false)
|
|
117
|
+
.map((column) => (
|
|
118
|
+
<MenuItem
|
|
119
|
+
key={column.accessorKey}
|
|
120
|
+
onClick={changeColumnVisibility(column.id as string)}
|
|
121
|
+
>
|
|
122
|
+
<MuiCheckbox
|
|
123
|
+
checked={isColumnVisibilityChecked[column.accessorKey!]}
|
|
124
|
+
/>
|
|
125
|
+
{column.header}
|
|
126
|
+
</MenuItem>
|
|
127
|
+
))}
|
|
128
|
+
</>
|
|
129
|
+
</MenuButton>
|
|
130
|
+
)}
|
|
131
|
+
</>
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const MemoizedTableSettings = memo(TableSettings);
|
|
136
|
+
MemoizedTableSettings.displayName = "TableSettings";
|
|
137
|
+
|
|
138
|
+
export { MemoizedTableSettings as TableSettings };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
MRT_DensityState,
|
|
15
|
+
MRT_RowData,
|
|
16
|
+
MRT_RowSelectionState,
|
|
17
|
+
MRT_SortingState,
|
|
18
|
+
MRT_TableOptions,
|
|
19
|
+
MRT_VisibilityState,
|
|
20
|
+
} from "material-react-table";
|
|
21
|
+
|
|
22
|
+
import {
|
|
23
|
+
availableLayouts,
|
|
24
|
+
availableStackLayouts,
|
|
25
|
+
densityValues,
|
|
26
|
+
} from "./constants";
|
|
27
|
+
import { DataFilter } from "../DataFilters";
|
|
28
|
+
import {
|
|
29
|
+
DataGetDataType,
|
|
30
|
+
DataOnReorderRowsType,
|
|
31
|
+
DataRowSelectionState,
|
|
32
|
+
DataTableColumn,
|
|
33
|
+
} from "./dataTypes";
|
|
34
|
+
import { DataTableRowActionsProps } from "../../DataTable/DataTableRowActions";
|
|
35
|
+
import { MenuButtonProps } from "../..";
|
|
36
|
+
import { paginationTypeValues } from "../DataTablePagination";
|
|
37
|
+
import { ReactNode } from "react";
|
|
38
|
+
import { StackCardProps } from "./StackCard";
|
|
39
|
+
|
|
40
|
+
export type DataLayout = (typeof availableLayouts)[number];
|
|
41
|
+
export type StackLayout = (typeof availableStackLayouts)[number];
|
|
42
|
+
|
|
43
|
+
export type AvailableLayouts = DataLayout[];
|
|
44
|
+
export type AvailableStackLayouts = StackLayout[];
|
|
45
|
+
|
|
46
|
+
export type UniversalProps = {
|
|
47
|
+
bulkActionMenuItems?: (
|
|
48
|
+
selectedRows: MRT_RowSelectionState,
|
|
49
|
+
) => MenuButtonProps["children"];
|
|
50
|
+
currentPage?: number;
|
|
51
|
+
emptyPlaceholder?: ReactNode;
|
|
52
|
+
errorMessage?: string;
|
|
53
|
+
filters?: Array<DataFilter | DataTableColumn<MRT_RowData> | string>;
|
|
54
|
+
getData: ({
|
|
55
|
+
page,
|
|
56
|
+
resultsPerPage,
|
|
57
|
+
search,
|
|
58
|
+
filters,
|
|
59
|
+
sort,
|
|
60
|
+
}: DataGetDataType) => MRT_RowData[] | Promise<MRT_RowData[]>;
|
|
61
|
+
getRowId?: MRT_TableOptions<MRT_RowData>["getRowId"];
|
|
62
|
+
hasFilters?: boolean;
|
|
63
|
+
hasPagination?: boolean;
|
|
64
|
+
hasRowReordering?: boolean;
|
|
65
|
+
hasRowSelection?: boolean;
|
|
66
|
+
hasSearch?: boolean;
|
|
67
|
+
hasSearchSubmitButton?: boolean;
|
|
68
|
+
isEmpty?: boolean;
|
|
69
|
+
isLoading?: boolean;
|
|
70
|
+
isNoResults?: boolean;
|
|
71
|
+
isRowReorderingDisabled?: boolean;
|
|
72
|
+
noResultsPlaceholder?: ReactNode;
|
|
73
|
+
onChangeRowSelection?: (rowSelection: DataRowSelectionState) => void;
|
|
74
|
+
onReorderRows?: ({ rowId, newRowIndex }: DataOnReorderRowsType) => void;
|
|
75
|
+
paginationType?: (typeof paginationTypeValues)[number];
|
|
76
|
+
resultsPerPage?: number;
|
|
77
|
+
searchDelayTime?: number;
|
|
78
|
+
totalRows?: number;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type TableProps = {
|
|
82
|
+
columns: DataTableColumn<MRT_RowData>[];
|
|
83
|
+
hasChangeableDensity?: boolean;
|
|
84
|
+
hasColumnResizing?: boolean;
|
|
85
|
+
hasColumnVisibility?: boolean;
|
|
86
|
+
hasSorting?: boolean;
|
|
87
|
+
initialDensity?: (typeof densityValues)[number];
|
|
88
|
+
renderDetailPanel?: MRT_TableOptions<MRT_RowData>["renderDetailPanel"];
|
|
89
|
+
rowActionButtons?: DataTableRowActionsProps["rowActionButtons"];
|
|
90
|
+
rowActionMenuItems?: DataTableRowActionsProps["rowActionMenuItems"];
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export type StackProps = {
|
|
94
|
+
cardProps: (row: MRT_RowData) => StackCardProps;
|
|
95
|
+
maxGridColumns?: number;
|
|
96
|
+
renderDetailPanel?: (props: { row: MRT_RowData }) => ReactNode;
|
|
97
|
+
rowActionMenuItems?: DataTableRowActionsProps["rowActionMenuItems"];
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type ViewProps<L extends DataLayout> = {
|
|
101
|
+
availableLayouts?: L[];
|
|
102
|
+
initialLayout?: L;
|
|
103
|
+
stackOptions?: StackProps;
|
|
104
|
+
tableOptions?: TableProps;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type TableState = {
|
|
108
|
+
columnSorting: MRT_SortingState;
|
|
109
|
+
columnVisibility: MRT_VisibilityState;
|
|
110
|
+
rowDensity?: MRT_DensityState;
|
|
111
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export const availableStackLayouts = ["list", "grid"];
|
|
14
|
+
export const availableTableLayouts = ["table"];
|
|
15
|
+
export const availableLayouts = [
|
|
16
|
+
...availableTableLayouts,
|
|
17
|
+
...availableStackLayouts,
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export const densityValues = ["comfortable", "spacious", "compact"] as const;
|