@okta/odyssey-react-mui 1.15.9 → 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 +35 -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 -41
- 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 +1 -0
- 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 +55 -8
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +55 -8
- 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 +55 -8
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +55 -8
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +55 -8
- 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 +65 -48
- 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 +1 -2
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- package/dist/src/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_pl.d.ts +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +54 -7
- 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 +248 -177
- 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 +164 -95
- package/src/DataTable/DataTableRowActions.tsx +1 -1
- package/src/DataTable/constants.ts +0 -1
- package/src/DataTable/index.tsx +1 -1
- 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 +2 -0
- 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 +64 -7
- package/src/properties/translations/odyssey-react-mui_da.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_de.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_el.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_es.properties +65 -8
- package/src/properties/translations/odyssey-react-mui_fi.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_fr.properties +65 -8
- package/src/properties/translations/odyssey-react-mui_ht.properties +112 -0
- package/src/properties/translations/odyssey-react-mui_hu.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_id.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_it.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_ja.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_ko.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_ms.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_nb.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_pl.properties +65 -8
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_ro.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_ru.properties +65 -8
- package/src/properties/translations/odyssey-react-mui_sv.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_th.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_tr.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_uk.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_vi.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +64 -7
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +64 -7
- 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_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 +270 -189
- 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
package/src/labs/DatePicker.tsx
CHANGED
|
@@ -10,49 +10,322 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { InputBase } from "@mui/material";
|
|
14
13
|
import {
|
|
14
|
+
ChangeEvent,
|
|
15
|
+
ChangeEventHandler,
|
|
16
|
+
memo,
|
|
17
|
+
useCallback,
|
|
18
|
+
useEffect,
|
|
19
|
+
useMemo,
|
|
20
|
+
useRef,
|
|
21
|
+
useState,
|
|
22
|
+
} from "react";
|
|
23
|
+
import { useTranslation } from "react-i18next";
|
|
24
|
+
import {
|
|
25
|
+
type DatePickerSlots,
|
|
15
26
|
DatePicker as MuiDatePicker,
|
|
16
27
|
DatePickerProps as MuiDatePickerProps,
|
|
28
|
+
LocalizationProvider,
|
|
29
|
+
PickersActionBarProps,
|
|
30
|
+
DatePickerSlotProps,
|
|
17
31
|
} from "@mui/x-date-pickers";
|
|
18
|
-
import {
|
|
32
|
+
import { DateTime } from "luxon";
|
|
33
|
+
import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
|
|
34
|
+
import { InputAdornment } from "@mui/material";
|
|
35
|
+
import styled from "@emotion/styled";
|
|
36
|
+
|
|
37
|
+
import { Button } from "../Button";
|
|
38
|
+
import {
|
|
39
|
+
ArrowLeftIcon,
|
|
40
|
+
ArrowRightIcon,
|
|
41
|
+
CalendarIcon,
|
|
42
|
+
ChevronDownIcon,
|
|
43
|
+
} from "../icons.generated";
|
|
44
|
+
import { DateField, DateFieldProps } from "./DateField";
|
|
45
|
+
import { datePickerTheme } from "./datePickerTheme";
|
|
46
|
+
import { FieldComponentProps } from "../FieldComponentProps";
|
|
47
|
+
import {
|
|
48
|
+
useOdysseyDesignTokens,
|
|
49
|
+
DesignTokens,
|
|
50
|
+
} from "../OdysseyDesignTokensContext";
|
|
51
|
+
import { OdysseyThemeProvider } from "../OdysseyThemeProvider";
|
|
52
|
+
import { useDatePickerTranslations } from "./useDatePickerTranslations";
|
|
53
|
+
|
|
54
|
+
const DatePickerContainer = styled.div({
|
|
55
|
+
display: "flex",
|
|
56
|
+
|
|
57
|
+
".MuiFormControl-root": {
|
|
58
|
+
marginBlockEnd: 0,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const DatePickerWidthContainer = styled.div({
|
|
63
|
+
".MuiInput-root": {
|
|
64
|
+
width: `${176 / 14}rem`,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const ActionContainer = styled.div<{ odysseyDesignTokens: DesignTokens }>(
|
|
69
|
+
({ odysseyDesignTokens }) => ({
|
|
70
|
+
display: "flex",
|
|
71
|
+
justifyContent: "flex-end",
|
|
72
|
+
paddingInline: odysseyDesignTokens.Spacing4,
|
|
73
|
+
paddingBlockEnd: odysseyDesignTokens.Spacing4,
|
|
74
|
+
}),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
const ActionBar = ({ actions, onAccept, onCancel }: PickersActionBarProps) => {
|
|
78
|
+
const { t } = useTranslation();
|
|
79
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
80
|
+
|
|
81
|
+
// actions will be [] or ["accept", "cancel"]
|
|
82
|
+
if (actions && actions.length > 0) {
|
|
83
|
+
return (
|
|
84
|
+
<ActionContainer odysseyDesignTokens={odysseyDesignTokens}>
|
|
85
|
+
<Button
|
|
86
|
+
label={t("picker.labels.action.cancel")}
|
|
87
|
+
onClick={onCancel}
|
|
88
|
+
variant="floating"
|
|
89
|
+
/>
|
|
90
|
+
<Button
|
|
91
|
+
label={t("picker.labels.action.apply")}
|
|
92
|
+
onClick={onAccept}
|
|
93
|
+
variant="primary"
|
|
94
|
+
/>
|
|
95
|
+
</ActionContainer>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return null;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const MemoizedActionBar = memo(ActionBar);
|
|
103
|
+
MemoizedActionBar.displayName = "ActionBar";
|
|
104
|
+
|
|
105
|
+
const formatDateToDateTime = (date: Date) => DateTime.fromJSDate(date);
|
|
19
106
|
|
|
20
|
-
|
|
21
|
-
|
|
107
|
+
const formatDayOfWeek = (date: DateTime) => date.toFormat("EEE");
|
|
108
|
+
|
|
109
|
+
type RenderDateFieldProps = {
|
|
110
|
+
defaultValue: DateFieldProps["defaultValue"];
|
|
111
|
+
value: DateFieldProps["value"];
|
|
112
|
+
} & MuiDatePickerProps<DateTime>;
|
|
113
|
+
|
|
114
|
+
export type DatePickerProps = {
|
|
22
115
|
/**
|
|
23
|
-
*
|
|
116
|
+
* Disable specific date(s).
|
|
117
|
+
*
|
|
118
|
+
* Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.
|
|
24
119
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
120
|
+
isDateEnabled?: (date: Date) => boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Disable specific month(s).
|
|
123
|
+
*/
|
|
124
|
+
isMonthEnabled?: (date: Date) => boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Disable specific year(s).
|
|
127
|
+
*/
|
|
128
|
+
isYearEnabled?: (date: Date) => boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The label for the `input` element.
|
|
131
|
+
*/
|
|
132
|
+
label: string;
|
|
133
|
+
/**
|
|
134
|
+
* Callback fired when the a date is selected with the calendar.
|
|
135
|
+
*/
|
|
136
|
+
onCalendarDateChange?: (value: Date) => void;
|
|
137
|
+
/**
|
|
138
|
+
* Callback fired when the date/text input changes.
|
|
139
|
+
*/
|
|
140
|
+
onInputChange?: ChangeEventHandler<HTMLInputElement>;
|
|
141
|
+
value?: Date;
|
|
142
|
+
} & Pick<FieldComponentProps, "errorMessage" | "hint" | "isDisabled"> &
|
|
143
|
+
Pick<MuiDatePickerProps<Date>, "defaultValue" | "minDate" | "maxDate">;
|
|
29
144
|
|
|
30
|
-
|
|
145
|
+
const DatePicker = ({
|
|
146
|
+
defaultValue: defaultValueProp,
|
|
147
|
+
errorMessage,
|
|
148
|
+
hint,
|
|
149
|
+
isDateEnabled = () => true,
|
|
150
|
+
isDisabled,
|
|
151
|
+
isMonthEnabled = () => true,
|
|
152
|
+
isYearEnabled = () => true,
|
|
31
153
|
label,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
154
|
+
minDate,
|
|
155
|
+
maxDate,
|
|
156
|
+
onCalendarDateChange,
|
|
157
|
+
onInputChange: onInputChangeProp,
|
|
158
|
+
value: valueProp,
|
|
159
|
+
}: DatePickerProps) => {
|
|
160
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
161
|
+
const [popperElement, setPopperElement] = useState<HTMLInputElement | null>();
|
|
162
|
+
|
|
163
|
+
const { i18n, t } = useTranslation();
|
|
164
|
+
const { language } = i18n;
|
|
165
|
+
|
|
166
|
+
const invalidLocales = ["ok_PL", "ok_SK"];
|
|
167
|
+
// In the Applitools env the language code is `en-us@posix`. Need to check for that
|
|
168
|
+
const isInvalidLocale =
|
|
169
|
+
invalidLocales.includes(language) || language.includes("@");
|
|
170
|
+
|
|
171
|
+
const containerRef = useRef<HTMLInputElement>(null);
|
|
172
|
+
|
|
173
|
+
const localeText = useDatePickerTranslations();
|
|
174
|
+
|
|
175
|
+
useEffect(() => {
|
|
176
|
+
setPopperElement(containerRef.current);
|
|
177
|
+
}, []);
|
|
178
|
+
|
|
179
|
+
const formatDateTimeToJsDateOnCalendarSelection = useCallback<
|
|
180
|
+
NonNullable<MuiDatePickerProps<DateTime>["onChange"]>
|
|
181
|
+
>(
|
|
182
|
+
(value) => {
|
|
183
|
+
if (value) {
|
|
184
|
+
const jsDateFromDateTime = new Date(value?.toJSDate());
|
|
185
|
+
onCalendarDateChange?.(jsDateFromDateTime);
|
|
186
|
+
}
|
|
45
187
|
},
|
|
46
|
-
[
|
|
188
|
+
[onCalendarDateChange],
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
const onInputChange = useCallback<
|
|
192
|
+
(event: ChangeEvent<HTMLInputElement>) => void
|
|
193
|
+
>((event) => onInputChangeProp?.(event), [onInputChangeProp]);
|
|
194
|
+
|
|
195
|
+
const toggleCalendarVisibility = useCallback(
|
|
196
|
+
() => setIsOpen(!isOpen),
|
|
197
|
+
[isOpen],
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
const shouldDisableDate = useCallback(
|
|
201
|
+
(date: DateTime) => !isDateEnabled(new Date(date?.toJSDate())) || false,
|
|
202
|
+
[isDateEnabled],
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
const shouldDisableMonth = useCallback(
|
|
206
|
+
(date: DateTime) => !isMonthEnabled(new Date(date?.toJSDate())) || false,
|
|
207
|
+
[isMonthEnabled],
|
|
47
208
|
);
|
|
48
209
|
|
|
210
|
+
const shouldDisableYear = useCallback(
|
|
211
|
+
(date: DateTime) => !isYearEnabled(new Date(date?.toJSDate())) || false,
|
|
212
|
+
[isYearEnabled],
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
const renderDateField = useCallback(
|
|
216
|
+
({ defaultValue, value }: RenderDateFieldProps) => (
|
|
217
|
+
<DateField
|
|
218
|
+
defaultValue={defaultValue}
|
|
219
|
+
endAdornment={
|
|
220
|
+
<InputAdornment position="end">
|
|
221
|
+
<Button
|
|
222
|
+
ariaLabel={t("picker.labels.date.choose")}
|
|
223
|
+
label=""
|
|
224
|
+
size="small"
|
|
225
|
+
startIcon={<CalendarIcon />}
|
|
226
|
+
variant="floating"
|
|
227
|
+
onClick={toggleCalendarVisibility}
|
|
228
|
+
/>
|
|
229
|
+
</InputAdornment>
|
|
230
|
+
}
|
|
231
|
+
errorMessage={errorMessage}
|
|
232
|
+
hint={hint}
|
|
233
|
+
isDisabled={isDisabled}
|
|
234
|
+
label={label}
|
|
235
|
+
onChange={onInputChange}
|
|
236
|
+
value={value}
|
|
237
|
+
/>
|
|
238
|
+
),
|
|
239
|
+
[
|
|
240
|
+
errorMessage,
|
|
241
|
+
hint,
|
|
242
|
+
isDisabled,
|
|
243
|
+
label,
|
|
244
|
+
onInputChange,
|
|
245
|
+
t,
|
|
246
|
+
toggleCalendarVisibility,
|
|
247
|
+
],
|
|
248
|
+
);
|
|
249
|
+
|
|
250
|
+
const resetIsOpen = useCallback(() => {
|
|
251
|
+
setIsOpen(false);
|
|
252
|
+
}, []);
|
|
253
|
+
|
|
254
|
+
const slots = useMemo<DatePickerSlots<DateTime>>(
|
|
255
|
+
() => ({
|
|
256
|
+
actionBar: MemoizedActionBar,
|
|
257
|
+
field: (muiProps) => renderDateField(muiProps),
|
|
258
|
+
leftArrowIcon: () => <ArrowLeftIcon />,
|
|
259
|
+
rightArrowIcon: () => <ArrowRightIcon />,
|
|
260
|
+
switchViewIcon: () => <ChevronDownIcon />,
|
|
261
|
+
}),
|
|
262
|
+
[renderDateField],
|
|
263
|
+
);
|
|
264
|
+
|
|
265
|
+
const slotProps = useMemo<DatePickerSlotProps<DateTime, false>>(
|
|
266
|
+
() => ({
|
|
267
|
+
actionBar: ({ wrapperVariant, onAccept, onCancel }) => ({
|
|
268
|
+
actions:
|
|
269
|
+
// This is the default behavior but felt more clear to pass them in explicitly
|
|
270
|
+
wrapperVariant === "desktop" ? [] : ["accept", "cancel"],
|
|
271
|
+
onAccept,
|
|
272
|
+
onCancel,
|
|
273
|
+
}),
|
|
274
|
+
popper: {
|
|
275
|
+
anchorEl: popperElement,
|
|
276
|
+
},
|
|
277
|
+
|
|
278
|
+
toolbar: {
|
|
279
|
+
toolbarPlaceholder: "",
|
|
280
|
+
},
|
|
281
|
+
}),
|
|
282
|
+
[popperElement],
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
const defaultedLanguageCode = isInvalidLocale
|
|
286
|
+
? "en-US"
|
|
287
|
+
: language.replaceAll("_", "-");
|
|
288
|
+
|
|
49
289
|
return (
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
290
|
+
<OdysseyThemeProvider themeOverride={datePickerTheme}>
|
|
291
|
+
<LocalizationProvider
|
|
292
|
+
dateAdapter={AdapterLuxon}
|
|
293
|
+
adapterLocale={defaultedLanguageCode}
|
|
294
|
+
localeText={localeText}
|
|
295
|
+
>
|
|
296
|
+
<DatePickerContainer>
|
|
297
|
+
<DatePickerWidthContainer ref={containerRef}>
|
|
298
|
+
<MuiDatePicker
|
|
299
|
+
dayOfWeekFormatter={formatDayOfWeek}
|
|
300
|
+
defaultValue={
|
|
301
|
+
defaultValueProp
|
|
302
|
+
? formatDateToDateTime(defaultValueProp)
|
|
303
|
+
: undefined
|
|
304
|
+
}
|
|
305
|
+
disabled={isDisabled}
|
|
306
|
+
fixedWeekNumber={6}
|
|
307
|
+
key={language}
|
|
308
|
+
label={label}
|
|
309
|
+
minDate={minDate ? formatDateToDateTime(minDate) : undefined}
|
|
310
|
+
maxDate={maxDate ? formatDateToDateTime(maxDate) : undefined}
|
|
311
|
+
onChange={formatDateTimeToJsDateOnCalendarSelection}
|
|
312
|
+
onClose={resetIsOpen}
|
|
313
|
+
open={isOpen}
|
|
314
|
+
shouldDisableDate={shouldDisableDate}
|
|
315
|
+
shouldDisableMonth={shouldDisableMonth}
|
|
316
|
+
shouldDisableYear={shouldDisableYear}
|
|
317
|
+
slots={slots}
|
|
318
|
+
slotProps={slotProps}
|
|
319
|
+
value={valueProp ? formatDateToDateTime(valueProp) : undefined}
|
|
320
|
+
/>
|
|
321
|
+
</DatePickerWidthContainer>
|
|
322
|
+
</DatePickerContainer>
|
|
323
|
+
</LocalizationProvider>
|
|
324
|
+
</OdysseyThemeProvider>
|
|
57
325
|
);
|
|
58
326
|
};
|
|
327
|
+
|
|
328
|
+
const MemoizedDatePicker = memo(DatePicker);
|
|
329
|
+
MemoizedDatePicker.displayName = "DatePicker";
|
|
330
|
+
|
|
331
|
+
export { MemoizedDatePicker as DatePicker };
|
|
@@ -12,13 +12,3 @@
|
|
|
12
12
|
|
|
13
13
|
// This has to be imported separately for theme types, so it's been separated out to make that clear.
|
|
14
14
|
import "@mui/x-date-pickers/themeAugmentation";
|
|
15
|
-
|
|
16
|
-
import { PickersComponentNameToClassKey } from "@mui/x-date-pickers/themeAugmentation";
|
|
17
|
-
|
|
18
|
-
declare module "@mui/material/styles" {
|
|
19
|
-
interface ComponentNameToClassKey extends PickersComponentNameToClassKey {
|
|
20
|
-
PrivatePickersYear:
|
|
21
|
-
| PickersComponentNameToClassKey["PrivatePickersYear"]
|
|
22
|
-
| "button";
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/labs/FileUpload.tsx
CHANGED
|
@@ -54,6 +54,7 @@ const BaseInputWrapper = styled.div({
|
|
|
54
54
|
|
|
55
55
|
const InputContainer = styled(BaseInputWrapper)<{
|
|
56
56
|
odysseyDesignTokens: DesignTokens;
|
|
57
|
+
hasError: boolean;
|
|
57
58
|
}>(
|
|
58
59
|
{
|
|
59
60
|
display: "flex",
|
|
@@ -65,9 +66,11 @@ const InputContainer = styled(BaseInputWrapper)<{
|
|
|
65
66
|
borderStyle: "solid",
|
|
66
67
|
},
|
|
67
68
|
},
|
|
68
|
-
({ odysseyDesignTokens }) => ({
|
|
69
|
+
({ hasError, odysseyDesignTokens }) => ({
|
|
69
70
|
padding: `${odysseyDesignTokens.Spacing6} ${odysseyDesignTokens.Spacing3}`,
|
|
70
|
-
border:
|
|
71
|
+
border: hasError
|
|
72
|
+
? `1px solid ${odysseyDesignTokens.PaletteDangerMain}`
|
|
73
|
+
: `1px dashed ${odysseyDesignTokens.HueNeutral300}`,
|
|
71
74
|
borderRadius: odysseyDesignTokens.BorderRadiusMain,
|
|
72
75
|
transition: `border-color ${odysseyDesignTokens.TransitionTimingMain}, box-shadow ${odysseyDesignTokens.TransitionTimingMain}`,
|
|
73
76
|
|
|
@@ -101,6 +104,10 @@ const ButtonAndInfoContainer = styled.div({
|
|
|
101
104
|
justifyContent: "center",
|
|
102
105
|
});
|
|
103
106
|
|
|
107
|
+
const CenterAlignedSupportText = styled.div({
|
|
108
|
+
textAlign: "center",
|
|
109
|
+
});
|
|
110
|
+
|
|
104
111
|
export type FileUploadProps = {
|
|
105
112
|
/**
|
|
106
113
|
* an array of file types the user is able to upload. @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers for examples
|
|
@@ -129,6 +136,7 @@ export type FileUploadProps = {
|
|
|
129
136
|
| "HintLinkComponent"
|
|
130
137
|
| "id"
|
|
131
138
|
| "isDisabled"
|
|
139
|
+
| "isFullWidth"
|
|
132
140
|
| "isOptional"
|
|
133
141
|
>;
|
|
134
142
|
|
|
@@ -137,6 +145,7 @@ const FileUpload = ({
|
|
|
137
145
|
errorMessage,
|
|
138
146
|
id,
|
|
139
147
|
isDisabled = false,
|
|
148
|
+
isFullWidth,
|
|
140
149
|
isOptional,
|
|
141
150
|
hint,
|
|
142
151
|
HintLinkComponent,
|
|
@@ -174,7 +183,7 @@ const FileUpload = ({
|
|
|
174
183
|
);
|
|
175
184
|
|
|
176
185
|
const triggerFileInputClick = useCallback(() => {
|
|
177
|
-
inputRef.current?.
|
|
186
|
+
inputRef.current?.click();
|
|
178
187
|
}, [inputRef]);
|
|
179
188
|
|
|
180
189
|
const removeFileFromFilesToUploadList = useCallback<(name: string) => void>(
|
|
@@ -194,7 +203,6 @@ const FileUpload = ({
|
|
|
194
203
|
id,
|
|
195
204
|
labelElementId,
|
|
196
205
|
}: RenderFieldComponentProps) => {
|
|
197
|
-
const fileNames = filesToUpload.map((file) => file.name);
|
|
198
206
|
const acceptedFileTypesAsString = acceptedFileTypes?.join(",");
|
|
199
207
|
|
|
200
208
|
const Input = () => (
|
|
@@ -226,24 +234,24 @@ const FileUpload = ({
|
|
|
226
234
|
variant="secondary"
|
|
227
235
|
/>
|
|
228
236
|
</BaseInputWrapper>
|
|
229
|
-
<FileUploadPreview
|
|
230
|
-
fileNames={fileNames}
|
|
231
|
-
onFileRemove={removeFileFromFilesToUploadList}
|
|
232
|
-
isDisabled={isDisabled}
|
|
233
|
-
/>
|
|
234
237
|
</>
|
|
235
238
|
);
|
|
236
239
|
}
|
|
237
240
|
|
|
238
241
|
return (
|
|
239
242
|
<>
|
|
240
|
-
<InputContainer
|
|
243
|
+
<InputContainer
|
|
244
|
+
hasError={Boolean(errorMessage)}
|
|
245
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
246
|
+
>
|
|
241
247
|
<Input />
|
|
242
248
|
<ButtonAndInfoContainer>
|
|
243
249
|
{variant === "dragAndDropWithIcon" && <FileUploadIllustration />}
|
|
244
|
-
<
|
|
245
|
-
|
|
246
|
-
|
|
250
|
+
<CenterAlignedSupportText>
|
|
251
|
+
<Support color="textSecondary">
|
|
252
|
+
{t("fileupload.prompt.text")}
|
|
253
|
+
</Support>
|
|
254
|
+
</CenterAlignedSupportText>
|
|
247
255
|
<Button
|
|
248
256
|
isDisabled={isDisabled}
|
|
249
257
|
label={t("fileupload.button.text")}
|
|
@@ -253,21 +261,15 @@ const FileUpload = ({
|
|
|
253
261
|
/>
|
|
254
262
|
</ButtonAndInfoContainer>
|
|
255
263
|
</InputContainer>
|
|
256
|
-
<FileUploadPreview
|
|
257
|
-
fileNames={fileNames}
|
|
258
|
-
onFileRemove={removeFileFromFilesToUploadList}
|
|
259
|
-
isDisabled={isDisabled}
|
|
260
|
-
/>
|
|
261
264
|
</>
|
|
262
265
|
);
|
|
263
266
|
},
|
|
264
267
|
[
|
|
265
268
|
acceptedFileTypes,
|
|
266
|
-
|
|
269
|
+
errorMessage,
|
|
267
270
|
isDisabled,
|
|
268
271
|
inputRef,
|
|
269
272
|
odysseyDesignTokens,
|
|
270
|
-
removeFileFromFilesToUploadList,
|
|
271
273
|
triggerFileInputClick,
|
|
272
274
|
t,
|
|
273
275
|
type,
|
|
@@ -286,11 +288,18 @@ const FileUpload = ({
|
|
|
286
288
|
HintLinkComponent={HintLinkComponent}
|
|
287
289
|
id={id}
|
|
288
290
|
isDisabled={isDisabled}
|
|
289
|
-
isFullWidth
|
|
291
|
+
isFullWidth={isFullWidth && variant !== "button"}
|
|
290
292
|
isOptional={isOptional}
|
|
291
293
|
label={label}
|
|
292
294
|
renderFieldComponent={renderFileInput}
|
|
293
295
|
/>
|
|
296
|
+
{filesToUpload.length > 0 && (
|
|
297
|
+
<FileUploadPreview
|
|
298
|
+
fileNames={filesToUpload.map((file) => file.name)}
|
|
299
|
+
onFileRemove={removeFileFromFilesToUploadList}
|
|
300
|
+
isDisabled={isDisabled}
|
|
301
|
+
/>
|
|
302
|
+
)}
|
|
294
303
|
</>
|
|
295
304
|
);
|
|
296
305
|
};
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
const UploadIllustrationContainer = styled.div<{
|
|
22
22
|
odysseyDesignTokens: DesignTokens;
|
|
23
23
|
}>(({ odysseyDesignTokens }) => ({
|
|
24
|
-
marginBlockEnd: odysseyDesignTokens.
|
|
24
|
+
marginBlockEnd: odysseyDesignTokens.Spacing3,
|
|
25
25
|
padding: odysseyDesignTokens.Spacing3,
|
|
26
26
|
backgroundColor: odysseyDesignTokens.HueNeutral50,
|
|
27
27
|
borderRadius: "50%",
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { Children, ReactNode, memo } from "react";
|
|
14
|
+
import styled from "@emotion/styled";
|
|
15
|
+
|
|
16
|
+
import { Box } from "../Box";
|
|
17
|
+
import {
|
|
18
|
+
DesignTokens,
|
|
19
|
+
useOdysseyDesignTokens,
|
|
20
|
+
} from "../OdysseyDesignTokensContext";
|
|
21
|
+
|
|
22
|
+
type SupportedRegionRatios =
|
|
23
|
+
| [1]
|
|
24
|
+
| [1, 1]
|
|
25
|
+
| [1, 2]
|
|
26
|
+
| [2, 1]
|
|
27
|
+
| [1, 3]
|
|
28
|
+
| [3, 1]
|
|
29
|
+
| [1, 1, 1]
|
|
30
|
+
| [1, 1, 1, 1];
|
|
31
|
+
|
|
32
|
+
export type LayoutProps = {
|
|
33
|
+
/**
|
|
34
|
+
* The supported region ratios for the Grid. Each number is a fractional unit that is mapped to the 'fr' CSS unit.
|
|
35
|
+
* e.g. [2, 1] defines a 2/3, 1/3 layout and [1, 1, 1] defines a 1/3, 1/3, 1/3 layout
|
|
36
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Basic_concepts_of_grid_layout#the_fr_unit
|
|
37
|
+
*/
|
|
38
|
+
regions: SupportedRegionRatios;
|
|
39
|
+
/**
|
|
40
|
+
* The content of the Grid. May be a `string` or any other `ReactNode` or array of `ReactNode`s.
|
|
41
|
+
*/
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
interface LayoutContentProps {
|
|
46
|
+
odysseyDesignTokens: DesignTokens;
|
|
47
|
+
regions: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const LayoutContent = styled("div", {
|
|
51
|
+
shouldForwardProp: (prop) =>
|
|
52
|
+
!["odysseyDesignTokens", "regions"].includes(prop),
|
|
53
|
+
})<LayoutContentProps>(({ odysseyDesignTokens, regions }) => ({
|
|
54
|
+
display: "grid",
|
|
55
|
+
gridTemplateColumns: regions,
|
|
56
|
+
gridColumnGap: odysseyDesignTokens.Spacing4,
|
|
57
|
+
columnGap: odysseyDesignTokens.Spacing4,
|
|
58
|
+
|
|
59
|
+
"& + &": {
|
|
60
|
+
marginBlockStart: odysseyDesignTokens.Spacing4,
|
|
61
|
+
},
|
|
62
|
+
}));
|
|
63
|
+
|
|
64
|
+
const Layout = ({ regions, children }: LayoutProps) => {
|
|
65
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
66
|
+
const mappedRegions = regions
|
|
67
|
+
.map((region) => `minmax(0, ${region}fr)`)
|
|
68
|
+
.join(" ");
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<Box>
|
|
72
|
+
<LayoutContent
|
|
73
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
74
|
+
regions={mappedRegions}
|
|
75
|
+
>
|
|
76
|
+
{Children.toArray(children).map((child) => child)}
|
|
77
|
+
</LayoutContent>
|
|
78
|
+
</Box>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const MemoizedLayout = memo(Layout);
|
|
83
|
+
MemoizedLayout.displayName = "Layout";
|
|
84
|
+
|
|
85
|
+
export { MemoizedLayout as Layout };
|