@okta/odyssey-react-mui 1.21.2 → 1.23.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 +34 -0
- package/dist/@types/i18next.d.js.map +1 -1
- package/dist/Autocomplete.js +106 -38
- package/dist/Autocomplete.js.map +1 -1
- package/dist/Callout.js +12 -24
- package/dist/Callout.js.map +1 -1
- package/dist/Checkbox.js +26 -11
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js +14 -3
- package/dist/CheckboxGroup.js.map +1 -1
- package/dist/DataTable/DataTable.js +10 -2
- package/dist/DataTable/DataTable.js.map +1 -1
- package/dist/DataTable/useScrollIndication.js +9 -5
- package/dist/DataTable/useScrollIndication.js.map +1 -1
- package/dist/Field.js +3 -1
- package/dist/Field.js.map +1 -1
- package/dist/FileUploader/FileUploadIllustration.js.map +1 -0
- package/dist/FileUploader/FileUploadPreview.js.map +1 -0
- package/dist/{labs/FileUpload.js → FileUploader/FileUploader.js} +6 -5
- package/dist/FileUploader/FileUploader.js.map +1 -0
- package/dist/FileUploader/index.js +13 -0
- package/dist/FileUploader/index.js.map +1 -0
- package/dist/OdysseyCacheProvider.js +4 -3
- package/dist/OdysseyCacheProvider.js.map +1 -1
- package/dist/OdysseyProvider.js +10 -3
- package/dist/OdysseyProvider.js.map +1 -1
- package/dist/OdysseyThemeProvider.js +3 -2
- package/dist/OdysseyThemeProvider.js.map +1 -1
- package/dist/Radio.js +33 -6
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +17 -5
- package/dist/RadioGroup.js.map +1 -1
- package/dist/Select.js +89 -31
- package/dist/Select.js.map +1 -1
- package/dist/{labs/Switch.js → Switch.js} +77 -23
- package/dist/Switch.js.map +1 -0
- package/dist/Tabs.js +7 -9
- package/dist/Tabs.js.map +1 -1
- package/dist/Tag.js +102 -4
- package/dist/Tag.js.map +1 -1
- package/dist/TextField.js +16 -39
- package/dist/TextField.js.map +1 -1
- package/dist/Toast.js +2 -2
- package/dist/Toast.js.map +1 -1
- package/dist/ToastStack.js.map +1 -1
- package/dist/createShadowDomElements.js +43 -0
- package/dist/createShadowDomElements.js.map +1 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.scss +96 -8
- package/dist/labs/AppTile.js +124 -0
- package/dist/labs/AppTile.js.map +1 -0
- package/dist/labs/DataView/BulkActionsMenu.js.map +1 -0
- package/dist/labs/{DataComponents/StackContent.js → DataView/CardLayoutContent.js} +14 -14
- package/dist/labs/DataView/CardLayoutContent.js.map +1 -0
- package/dist/labs/{DataComponents/StackCard.js → DataView/DataCard.js} +6 -6
- package/dist/labs/DataView/DataCard.js.map +1 -0
- package/dist/labs/{DataComponents → DataView}/DataTable.js +6 -2
- package/dist/labs/DataView/DataTable.js.map +1 -0
- package/dist/labs/{DataComponents → DataView}/DataView.js +79 -30
- package/dist/labs/DataView/DataView.js.map +1 -0
- package/dist/labs/DataView/DetailPanel.js.map +1 -0
- package/dist/labs/DataView/LayoutSwitcher.js.map +1 -0
- package/dist/labs/DataView/RowActions.js.map +1 -0
- package/dist/labs/{DataComponents/TableContent.js → DataView/TableLayoutContent.js} +34 -20
- package/dist/labs/DataView/TableLayoutContent.js.map +1 -0
- package/dist/labs/{DataComponents → DataView}/TableSettings.js +2 -2
- package/dist/labs/DataView/TableSettings.js.map +1 -0
- package/dist/labs/DataView/componentTypes.js.map +1 -0
- package/dist/labs/{DataComponents → DataView}/constants.js +2 -2
- package/dist/labs/DataView/constants.js.map +1 -0
- package/dist/labs/DataView/dataTypes.js.map +1 -0
- package/dist/labs/DataView/fetchData.js.map +1 -0
- package/dist/labs/{DataComponents → DataView}/index.js +0 -1
- package/dist/labs/DataView/index.js.map +1 -0
- package/dist/labs/DataView/tableConstants.js.map +1 -0
- package/dist/labs/DataView/useFilterConversion.js.map +1 -0
- package/dist/labs/DateField.js +2 -0
- package/dist/labs/DateField.js.map +1 -1
- package/dist/labs/DatePicker.js +5 -1
- package/dist/labs/DatePicker.js.map +1 -1
- package/dist/labs/SideNav/CollapseIcon.js +44 -0
- package/dist/labs/SideNav/CollapseIcon.js.map +1 -0
- package/dist/labs/SideNav/OktaLogo.js +36 -0
- package/dist/labs/SideNav/OktaLogo.js.map +1 -0
- package/dist/labs/SideNav/SideNav.js +335 -0
- package/dist/labs/SideNav/SideNav.js.map +1 -0
- package/dist/labs/SideNav/SideNavFooterContent.js +49 -0
- package/dist/labs/SideNav/SideNavFooterContent.js.map +1 -0
- package/dist/labs/SideNav/SideNavHeader.js +81 -0
- package/dist/labs/SideNav/SideNavHeader.js.map +1 -0
- package/dist/labs/SideNav/SideNavItemContent.js +157 -0
- package/dist/labs/SideNav/SideNavItemContent.js.map +1 -0
- package/dist/labs/SideNav/SideNavItemLinkContent.js +71 -0
- package/dist/labs/SideNav/SideNavItemLinkContent.js.map +1 -0
- package/dist/labs/SideNav/index.js +14 -0
- package/dist/labs/SideNav/index.js.map +1 -0
- package/dist/labs/SideNav/types.js +2 -0
- package/dist/labs/SideNav/types.js.map +1 -0
- package/dist/labs/TopNav.js +2 -1
- package/dist/labs/TopNav.js.map +1 -1
- package/dist/labs/index.js +3 -4
- package/dist/labs/index.js.map +1 -1
- package/dist/labs/useDateFieldsTranslations.js +1 -1
- package/dist/labs/useDateFieldsTranslations.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui.js +3 -1
- package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_cs.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_da.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_de.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_el.js +18 -4
- package/dist/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_es.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fi.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_fr.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ht.js +18 -4
- package/dist/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_hu.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_id.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_it.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ja.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ko.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ms.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nb.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pl.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ro.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_ru.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_sv.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_th.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_tr.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_uk.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_vi.js +17 -3
- package/dist/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js +16 -2
- package/dist/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/src/Autocomplete.d.ts +30 -0
- package/dist/src/Autocomplete.d.ts.map +1 -1
- package/dist/src/Callout.d.ts +11 -23
- package/dist/src/Callout.d.ts.map +1 -1
- package/dist/src/Checkbox.d.ts +2 -2
- package/dist/src/Checkbox.d.ts.map +1 -1
- package/dist/src/CheckboxGroup.d.ts +3 -3
- package/dist/src/CheckboxGroup.d.ts.map +1 -1
- package/dist/src/DataTable/DataTable.d.ts +9 -1
- package/dist/src/DataTable/DataTable.d.ts.map +1 -1
- package/dist/src/DataTable/useScrollIndication.d.ts.map +1 -1
- package/dist/src/Field.d.ts +3 -2
- package/dist/src/Field.d.ts.map +1 -1
- package/dist/src/FileUploader/FileUploadIllustration.d.ts.map +1 -0
- package/dist/src/{labs → FileUploader}/FileUploadPreview.d.ts +2 -2
- package/dist/src/FileUploader/FileUploadPreview.d.ts.map +1 -0
- package/dist/src/{labs/FileUpload.d.ts → FileUploader/FileUploader.d.ts} +5 -4
- package/dist/src/FileUploader/FileUploader.d.ts.map +1 -0
- package/dist/src/FileUploader/index.d.ts +13 -0
- package/dist/src/FileUploader/index.d.ts.map +1 -0
- package/dist/src/NativeSelect.d.ts +1 -1
- package/dist/src/OdysseyCacheProvider.d.ts +7 -3
- package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/src/OdysseyProvider.d.ts +1 -1
- package/dist/src/OdysseyProvider.d.ts.map +1 -1
- package/dist/src/OdysseyThemeProvider.d.ts +3 -1
- package/dist/src/OdysseyThemeProvider.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/PasswordField.d.ts +1 -1
- package/dist/src/Radio.d.ts +6 -8
- package/dist/src/Radio.d.ts.map +1 -1
- package/dist/src/RadioGroup.d.ts +4 -5
- package/dist/src/RadioGroup.d.ts.map +1 -1
- package/dist/src/SearchField.d.ts +1 -1
- package/dist/src/Select.d.ts +38 -2
- package/dist/src/Select.d.ts.map +1 -1
- package/dist/src/{labs/Switch.d.ts → Switch.d.ts} +8 -4
- package/dist/src/Switch.d.ts.map +1 -0
- package/dist/src/Tabs.d.ts +6 -8
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/src/Tag.d.ts +7 -1
- package/dist/src/Tag.d.ts.map +1 -1
- package/dist/src/TextField.d.ts +17 -40
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/src/ToastStack.d.ts +2 -2
- package/dist/src/ToastStack.d.ts.map +1 -1
- package/dist/src/{createShadowRootElement.d.ts → createShadowDomElements.d.ts} +6 -1
- package/dist/src/createShadowDomElements.d.ts.map +1 -0
- package/dist/src/i18n.d.ts +2 -2
- package/dist/src/i18n.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/labs/AppTile.d.ts +39 -0
- package/dist/src/labs/AppTile.d.ts.map +1 -0
- package/dist/src/labs/DataView/BulkActionsMenu.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents/StackContent.d.ts → DataView/CardLayoutContent.d.ts} +7 -7
- package/dist/src/labs/DataView/CardLayoutContent.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents/StackCard.d.ts → DataView/DataCard.d.ts} +4 -4
- package/dist/src/labs/DataView/DataCard.d.ts.map +1 -0
- package/dist/src/labs/DataView/DataTable.d.ts +16 -0
- package/dist/src/labs/DataView/DataTable.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/DataView.d.ts +1 -1
- package/dist/src/labs/DataView/DataView.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/DetailPanel.d.ts +2 -2
- package/dist/src/labs/DataView/DetailPanel.d.ts.map +1 -0
- package/dist/src/labs/DataView/LayoutSwitcher.d.ts.map +1 -0
- package/dist/src/labs/DataView/RowActions.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents/TableContent.d.ts → DataView/TableLayoutContent.d.ts} +8 -7
- package/dist/src/labs/DataView/TableLayoutContent.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/TableSettings.d.ts +3 -3
- package/dist/src/labs/DataView/TableSettings.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/componentTypes.d.ts +21 -9
- package/dist/src/labs/DataView/componentTypes.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/constants.d.ts +1 -1
- package/dist/src/labs/DataView/constants.d.ts.map +1 -0
- package/dist/src/labs/DataView/dataTypes.d.ts.map +1 -0
- package/dist/src/labs/DataView/fetchData.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/index.d.ts +0 -1
- package/dist/src/labs/DataView/index.d.ts.map +1 -0
- package/dist/src/labs/DataView/tableConstants.d.ts.map +1 -0
- package/dist/src/labs/{DataComponents → DataView}/useFilterConversion.d.ts +2 -2
- package/dist/src/labs/DataView/useFilterConversion.d.ts.map +1 -0
- package/dist/src/labs/DateField.d.ts +2 -2
- package/dist/src/labs/DateField.d.ts.map +1 -1
- package/dist/src/labs/DatePicker.d.ts +2 -2
- package/dist/src/labs/DatePicker.d.ts.map +1 -1
- package/dist/src/labs/SideNav/CollapseIcon.d.ts +17 -0
- package/dist/src/labs/SideNav/CollapseIcon.d.ts.map +1 -0
- package/dist/src/labs/SideNav/OktaLogo.d.ts +14 -0
- package/dist/src/labs/SideNav/OktaLogo.d.ts.map +1 -0
- package/dist/src/labs/SideNav/SideNav.d.ts +16 -0
- package/dist/src/labs/SideNav/SideNav.d.ts.map +1 -0
- package/dist/{test-selectors/odysseyTestSelectors.js → src/labs/SideNav/SideNavFooterContent.d.ts} +6 -9
- package/dist/src/labs/SideNav/SideNavFooterContent.d.ts.map +1 -0
- package/dist/src/labs/SideNav/SideNavHeader.d.ts +16 -0
- package/dist/src/labs/SideNav/SideNavHeader.d.ts.map +1 -0
- package/dist/src/labs/SideNav/SideNavItemContent.d.ts +33 -0
- package/dist/src/labs/SideNav/SideNavItemContent.d.ts.map +1 -0
- package/dist/src/labs/SideNav/SideNavItemLinkContent.d.ts +16 -0
- package/dist/src/labs/SideNav/SideNavItemLinkContent.d.ts.map +1 -0
- package/dist/src/labs/SideNav/index.d.ts +14 -0
- package/dist/src/labs/SideNav/index.d.ts.map +1 -0
- package/dist/src/labs/{SideNav.d.ts → SideNav/types.d.ts} +54 -33
- package/dist/src/labs/SideNav/types.d.ts.map +1 -0
- package/dist/src/labs/TopNav.d.ts +1 -0
- package/dist/src/labs/TopNav.d.ts.map +1 -1
- package/dist/src/labs/index.d.ts +2 -3
- package/dist/src/labs/index.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui.d.ts +2 -0
- package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_cs.d.ts +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +16 -2
- package/dist/src/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
- package/dist/src/properties/ts/odyssey-react-mui_hu.d.ts +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- 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 +15 -1
- package/dist/src/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/src/test-selectors/getByQuerySelector.d.ts +148 -0
- package/dist/src/test-selectors/getByQuerySelector.d.ts.map +1 -0
- package/dist/src/test-selectors/getComputedAccessibleErrorMessageText.d.ts +14 -0
- package/dist/src/test-selectors/getComputedAccessibleErrorMessageText.d.ts.map +1 -0
- package/dist/src/test-selectors/getComputedAccessibleText.d.ts +23 -0
- package/dist/src/test-selectors/getComputedAccessibleText.d.ts.map +1 -0
- package/dist/src/test-selectors/index.d.ts +2 -2
- package/dist/src/test-selectors/index.d.ts.map +1 -1
- package/{src/test-selectors/odysseyTestSelectors.ts → dist/src/test-selectors/interpolateString.d.ts} +4 -11
- package/dist/src/test-selectors/interpolateString.d.ts.map +1 -0
- package/dist/src/test-selectors/linkedHtmlSelectors.d.ts +24 -0
- package/dist/src/test-selectors/linkedHtmlSelectors.d.ts.map +1 -0
- package/dist/src/test-selectors/queryOdysseySelector.d.ts +5755 -0
- package/dist/src/test-selectors/queryOdysseySelector.d.ts.map +1 -0
- package/dist/src/test-selectors/querySelector.d.ts +59 -3613
- package/dist/src/test-selectors/querySelector.d.ts.map +1 -1
- package/dist/src/test-selectors/sanityChecks.d.ts +18 -0
- package/dist/src/test-selectors/sanityChecks.d.ts.map +1 -0
- package/dist/src/test-selectors/testSelector.d.ts +46 -0
- package/dist/src/test-selectors/testSelector.d.ts.map +1 -0
- package/dist/src/theme/components.d.ts +3 -1
- package/dist/src/theme/components.d.ts.map +1 -1
- package/dist/src/theme/createOdysseyMuiTheme.d.ts +3 -1
- package/dist/src/theme/createOdysseyMuiTheme.d.ts.map +1 -1
- package/dist/test-selectors/getByQuerySelector.js +64 -0
- package/dist/test-selectors/getByQuerySelector.js.map +1 -0
- package/dist/test-selectors/getComputedAccessibleErrorMessageText.js +25 -0
- package/dist/test-selectors/getComputedAccessibleErrorMessageText.js.map +1 -0
- package/dist/test-selectors/getComputedAccessibleText.js +24 -0
- package/dist/test-selectors/getComputedAccessibleText.js.map +1 -0
- package/dist/test-selectors/index.js +2 -2
- package/dist/test-selectors/index.js.map +1 -1
- package/dist/test-selectors/interpolateString.js +25 -0
- package/dist/test-selectors/interpolateString.js.map +1 -0
- package/dist/test-selectors/linkedHtmlSelectors.js +34 -0
- package/dist/test-selectors/linkedHtmlSelectors.js.map +1 -0
- package/dist/test-selectors/queryOdysseySelector.js +26 -0
- package/dist/test-selectors/queryOdysseySelector.js.map +1 -0
- package/dist/test-selectors/querySelector.js +82 -58
- package/dist/test-selectors/querySelector.js.map +1 -1
- package/dist/test-selectors/sanityChecks.js +33 -0
- package/dist/test-selectors/sanityChecks.js.map +1 -0
- package/dist/test-selectors/testSelector.js +2 -0
- package/dist/test-selectors/testSelector.js.map +1 -0
- package/dist/test-selectors/testSelectors.json +1 -1
- package/dist/theme/components.js +231 -146
- package/dist/theme/components.js.map +1 -1
- package/dist/theme/createOdysseyMuiTheme.js +3 -2
- package/dist/theme/createOdysseyMuiTheme.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/jest.setup.js +3 -0
- package/package.json +5 -5
- package/scripts/generateTestSelectorsJson.ts +1 -1
- package/src/@types/i18next.d.ts +1 -1
- package/src/Autocomplete.tsx +140 -45
- package/src/Callout.tsx +13 -25
- package/src/Checkbox.tsx +39 -9
- package/src/CheckboxGroup.tsx +20 -4
- package/src/DataTable/DataTable.tsx +24 -1
- package/src/DataTable/useScrollIndication.tsx +11 -4
- package/src/Field.tsx +5 -2
- package/src/{labs → FileUploader}/FileUploadPreview.tsx +3 -3
- package/src/{labs/FileUpload.tsx → FileUploader/FileUploader.tsx} +7 -6
- package/src/FileUploader/index.ts +13 -0
- package/src/OdysseyCacheProvider.test.tsx +1 -0
- package/src/OdysseyCacheProvider.tsx +18 -4
- package/src/OdysseyProvider.tsx +12 -4
- package/src/OdysseyThemeProvider.tsx +6 -2
- package/src/Radio.tsx +41 -12
- package/src/RadioGroup.tsx +26 -7
- package/src/Select.tsx +116 -45
- package/src/{labs/Switch.tsx → Switch.tsx} +95 -41
- package/src/Tabs.tsx +8 -10
- package/src/Tag.tsx +134 -3
- package/src/TextField.tsx +18 -41
- package/src/Toast.tsx +1 -1
- package/src/ToastStack.tsx +2 -2
- package/src/createShadowDomElements.ts +53 -0
- package/src/i18n.ts +3 -3
- package/src/index.ts +7 -2
- package/src/labs/AppTile.tsx +200 -0
- package/src/labs/{DataComponents/StackContent.tsx → DataView/CardLayoutContent.tsx} +24 -19
- package/src/labs/{DataComponents/StackCard.tsx → DataView/DataCard.tsx} +7 -7
- package/src/labs/{DataComponents → DataView}/DataTable.tsx +8 -4
- package/src/labs/DataView/DataView.test.tsx +158 -0
- package/src/labs/{DataComponents → DataView}/DataView.tsx +119 -42
- package/src/labs/{DataComponents → DataView}/DetailPanel.tsx +2 -2
- package/src/labs/{DataComponents/TableContent.tsx → DataView/TableLayoutContent.tsx} +59 -27
- package/src/labs/{DataComponents → DataView}/TableSettings.tsx +5 -4
- package/src/labs/{DataComponents → DataView}/componentTypes.ts +24 -9
- package/src/labs/{DataComponents → DataView}/constants.tsx +2 -2
- package/src/labs/{DataComponents → DataView}/index.tsx +0 -1
- package/src/labs/{DataComponents → DataView}/useFilterConversion.ts +2 -2
- package/src/labs/DateField.tsx +3 -0
- package/src/labs/DatePicker.tsx +12 -1
- package/src/labs/SideNav/CollapseIcon.tsx +48 -0
- package/src/labs/SideNav/OktaLogo.tsx +39 -0
- package/src/labs/SideNav/SideNav.tsx +486 -0
- package/src/labs/SideNav/SideNavFooterContent.tsx +64 -0
- package/src/labs/SideNav/SideNavHeader.tsx +88 -0
- package/src/labs/SideNav/SideNavItemContent.tsx +216 -0
- package/src/labs/SideNav/SideNavItemLinkContent.tsx +87 -0
- package/src/labs/SideNav/index.ts +15 -0
- package/src/labs/SideNav/types.ts +152 -0
- package/src/labs/TopNav.tsx +3 -1
- package/src/labs/index.ts +3 -4
- package/src/labs/useDateFieldsTranslations.ts +1 -1
- package/src/properties/odyssey-react-mui.properties +2 -1
- package/src/properties/translations/odyssey-react-mui_cs.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_da.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_de.properties +14 -2
- package/src/properties/translations/odyssey-react-mui_el.properties +16 -4
- package/src/properties/translations/odyssey-react-mui_es.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_fi.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_fr.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_ht.properties +17 -6
- package/src/properties/translations/odyssey-react-mui_hu.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_id.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_it.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_ja.properties +14 -2
- package/src/properties/translations/odyssey-react-mui_ko.properties +14 -2
- package/src/properties/translations/odyssey-react-mui_ms.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_nb.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_pl.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_ro.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_ru.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_sv.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_th.properties +14 -2
- package/src/properties/translations/odyssey-react-mui_tr.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_uk.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_vi.properties +15 -3
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +14 -2
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +14 -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 -1
- 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/test-selectors/getByQuerySelector.ts +176 -0
- package/src/test-selectors/getComputedAccessibleErrorMessageText.ts +52 -0
- package/src/test-selectors/getComputedAccessibleText.ts +36 -0
- package/src/test-selectors/index.ts +2 -2
- package/src/test-selectors/interpolateString.ts +41 -0
- package/src/test-selectors/linkedHtmlSelectors.ts +73 -0
- package/src/test-selectors/queryOdysseySelector.ts +36 -0
- package/src/test-selectors/querySelector.ts +221 -170
- package/src/test-selectors/sanityChecks.ts +53 -0
- package/src/test-selectors/testSelector.ts +143 -0
- package/src/theme/components.tsx +238 -150
- package/src/theme/createOdysseyMuiTheme.ts +4 -1
- package/dist/createShadowRootElement.js +0 -26
- package/dist/createShadowRootElement.js.map +0 -1
- package/dist/labs/DataComponents/BulkActionsMenu.js.map +0 -1
- package/dist/labs/DataComponents/DataStack.js +0 -85
- package/dist/labs/DataComponents/DataStack.js.map +0 -1
- package/dist/labs/DataComponents/DataTable.js.map +0 -1
- package/dist/labs/DataComponents/DataView.js.map +0 -1
- package/dist/labs/DataComponents/DetailPanel.js.map +0 -1
- package/dist/labs/DataComponents/LayoutSwitcher.js.map +0 -1
- package/dist/labs/DataComponents/RowActions.js.map +0 -1
- package/dist/labs/DataComponents/StackCard.js.map +0 -1
- package/dist/labs/DataComponents/StackContent.js.map +0 -1
- package/dist/labs/DataComponents/TableContent.js.map +0 -1
- package/dist/labs/DataComponents/TableSettings.js.map +0 -1
- package/dist/labs/DataComponents/componentTypes.js.map +0 -1
- package/dist/labs/DataComponents/constants.js.map +0 -1
- package/dist/labs/DataComponents/dataTypes.js.map +0 -1
- package/dist/labs/DataComponents/fetchData.js.map +0 -1
- package/dist/labs/DataComponents/index.js.map +0 -1
- package/dist/labs/DataComponents/tableConstants.js.map +0 -1
- package/dist/labs/DataComponents/useFilterConversion.js.map +0 -1
- package/dist/labs/FileUpload.js.map +0 -1
- package/dist/labs/FileUploadIllustration.js.map +0 -1
- package/dist/labs/FileUploadPreview.js.map +0 -1
- package/dist/labs/SideNav.js +0 -478
- package/dist/labs/SideNav.js.map +0 -1
- package/dist/labs/Switch.js.map +0 -1
- package/dist/src/createShadowRootElement.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/BulkActionsMenu.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/DataStack.d.ts +0 -20
- package/dist/src/labs/DataComponents/DataStack.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/DataTable.d.ts +0 -16
- package/dist/src/labs/DataComponents/DataTable.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/DataView.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/DetailPanel.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/LayoutSwitcher.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/RowActions.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/StackCard.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/StackContent.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/TableContent.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/TableSettings.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/componentTypes.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/constants.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/dataTypes.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/fetchData.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/index.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/tableConstants.d.ts.map +0 -1
- package/dist/src/labs/DataComponents/useFilterConversion.d.ts.map +0 -1
- package/dist/src/labs/FileUpload.d.ts.map +0 -1
- package/dist/src/labs/FileUploadIllustration.d.ts.map +0 -1
- package/dist/src/labs/FileUploadPreview.d.ts.map +0 -1
- package/dist/src/labs/SideNav.d.ts.map +0 -1
- package/dist/src/labs/Switch.d.ts.map +0 -1
- package/dist/src/test-selectors/featureTestSelector.d.ts +0 -31
- package/dist/src/test-selectors/featureTestSelector.d.ts.map +0 -1
- package/dist/src/test-selectors/odysseyTestSelectors.d.ts +0 -120
- package/dist/src/test-selectors/odysseyTestSelectors.d.ts.map +0 -1
- package/dist/test-selectors/featureTestSelector.js +0 -2
- package/dist/test-selectors/featureTestSelector.js.map +0 -1
- package/dist/test-selectors/odysseyTestSelectors.js.map +0 -1
- package/src/createShadowRootElement.ts +0 -31
- package/src/labs/DataComponents/DataStack.tsx +0 -105
- package/src/labs/SideNav.tsx +0 -745
- package/src/test-selectors/featureTestSelector.ts +0 -41
- /package/dist/{labs → FileUploader}/FileUploadIllustration.js +0 -0
- /package/dist/{labs → FileUploader}/FileUploadPreview.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/BulkActionsMenu.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/DetailPanel.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/LayoutSwitcher.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/RowActions.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/componentTypes.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/dataTypes.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/fetchData.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/tableConstants.js +0 -0
- /package/dist/labs/{DataComponents → DataView}/useFilterConversion.js +0 -0
- /package/dist/src/{labs → FileUploader}/FileUploadIllustration.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/BulkActionsMenu.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/LayoutSwitcher.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/RowActions.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/dataTypes.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/fetchData.d.ts +0 -0
- /package/dist/src/labs/{DataComponents → DataView}/tableConstants.d.ts +0 -0
- /package/src/{labs → FileUploader}/FileUploadIllustration.tsx +0 -0
- /package/src/labs/{DataComponents → DataView}/BulkActionsMenu.tsx +0 -0
- /package/src/labs/{DataComponents → DataView}/LayoutSwitcher.tsx +0 -0
- /package/src/labs/{DataComponents → DataView}/RowActions.tsx +0 -0
- /package/src/labs/{DataComponents → DataView}/dataTypes.ts +0 -0
- /package/src/labs/{DataComponents → DataView}/fetchData.ts +0 -0
- /package/src/labs/{DataComponents → DataView}/tableConstants.tsx +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
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 styled from "@emotion/styled";
|
|
14
|
+
import { memo, ReactNode, useMemo } from "react";
|
|
15
|
+
import {
|
|
16
|
+
type DesignTokens,
|
|
17
|
+
useOdysseyDesignTokens,
|
|
18
|
+
} from "../../OdysseyDesignTokensContext";
|
|
19
|
+
import { Box } from "../../Box";
|
|
20
|
+
import { Heading6 } from "../../Typography";
|
|
21
|
+
import { CollapseIcon } from "./CollapseIcon";
|
|
22
|
+
import type { SideNavProps } from "./types";
|
|
23
|
+
import { TOP_NAV_HEIGHT_TOKEN } from "../TopNav";
|
|
24
|
+
|
|
25
|
+
const SideNavLogoContainer = styled("div", {
|
|
26
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
27
|
+
})(({ odysseyDesignTokens }: { odysseyDesignTokens: DesignTokens }) => ({
|
|
28
|
+
height: odysseyDesignTokens[TOP_NAV_HEIGHT_TOKEN],
|
|
29
|
+
padding: odysseyDesignTokens.Spacing3,
|
|
30
|
+
borderColor: odysseyDesignTokens.HueNeutral50,
|
|
31
|
+
borderStyle: odysseyDesignTokens.BorderStyleMain,
|
|
32
|
+
borderWidth: 0,
|
|
33
|
+
borderBottomWidth: odysseyDesignTokens.BorderWidthMain,
|
|
34
|
+
}));
|
|
35
|
+
|
|
36
|
+
const SideNavHeaderContainer = styled("div", {
|
|
37
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
38
|
+
})(({ odysseyDesignTokens }: { odysseyDesignTokens: DesignTokens }) => ({
|
|
39
|
+
display: "flex",
|
|
40
|
+
justifyContent: "space-between",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
paddingLeft: odysseyDesignTokens.Spacing4,
|
|
43
|
+
paddingRight: odysseyDesignTokens.Spacing4,
|
|
44
|
+
paddingTop: odysseyDesignTokens.Spacing3,
|
|
45
|
+
paddingBottom: odysseyDesignTokens.Spacing3,
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
const SideNavHeader = ({
|
|
49
|
+
navHeaderText,
|
|
50
|
+
isCollapsible,
|
|
51
|
+
onCollapse,
|
|
52
|
+
logo,
|
|
53
|
+
}: Pick<
|
|
54
|
+
SideNavProps,
|
|
55
|
+
"navHeaderText" | "isCollapsible" | "onCollapse" | "logo"
|
|
56
|
+
>): ReactNode => {
|
|
57
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
58
|
+
|
|
59
|
+
const sideNavHeaderStyles = useMemo(
|
|
60
|
+
() => ({
|
|
61
|
+
marginTop: odysseyDesignTokens.Spacing2,
|
|
62
|
+
}),
|
|
63
|
+
[odysseyDesignTokens],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<Box
|
|
68
|
+
sx={{
|
|
69
|
+
display: "flex",
|
|
70
|
+
flexDirection: "column",
|
|
71
|
+
}}
|
|
72
|
+
>
|
|
73
|
+
<SideNavLogoContainer odysseyDesignTokens={odysseyDesignTokens}>
|
|
74
|
+
{logo}
|
|
75
|
+
</SideNavLogoContainer>
|
|
76
|
+
<SideNavHeaderContainer odysseyDesignTokens={odysseyDesignTokens}>
|
|
77
|
+
<Box sx={sideNavHeaderStyles}>
|
|
78
|
+
<Heading6>{navHeaderText}</Heading6>
|
|
79
|
+
</Box>
|
|
80
|
+
{isCollapsible && <CollapseIcon onClick={onCollapse} />}
|
|
81
|
+
</SideNavHeaderContainer>
|
|
82
|
+
</Box>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
const MemoizedSideNavHeader = memo(SideNavHeader);
|
|
86
|
+
MemoizedSideNavHeader.displayName = "SideNavHeader";
|
|
87
|
+
|
|
88
|
+
export { MemoizedSideNavHeader as SideNavHeader };
|
|
@@ -0,0 +1,216 @@
|
|
|
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 styled from "@emotion/styled";
|
|
14
|
+
import {
|
|
15
|
+
useRef,
|
|
16
|
+
useImperativeHandle,
|
|
17
|
+
useCallback,
|
|
18
|
+
memo,
|
|
19
|
+
KeyboardEvent,
|
|
20
|
+
} from "react";
|
|
21
|
+
import { Link } from "../../Link";
|
|
22
|
+
import {
|
|
23
|
+
type DesignTokens,
|
|
24
|
+
useOdysseyDesignTokens,
|
|
25
|
+
} from "../../OdysseyDesignTokensContext";
|
|
26
|
+
import { SideNavItemLinkContent } from "./SideNavItemLinkContent";
|
|
27
|
+
import type { SideNavItem } from "./types";
|
|
28
|
+
|
|
29
|
+
export const SideNavListItemContainer = styled("li", {
|
|
30
|
+
shouldForwardProp: (prop) =>
|
|
31
|
+
prop !== "odysseyDesignTokens" &&
|
|
32
|
+
prop !== "isSelected" &&
|
|
33
|
+
prop !== "isDisabled",
|
|
34
|
+
})<{
|
|
35
|
+
odysseyDesignTokens: DesignTokens;
|
|
36
|
+
isSelected?: boolean;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
isDisabled?: boolean;
|
|
39
|
+
}>(({ odysseyDesignTokens, isSelected, isDisabled }) => ({
|
|
40
|
+
display: "flex",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
cursor: isDisabled ? "default" : "pointer",
|
|
43
|
+
pointerEvents: isDisabled ? "none" : "auto",
|
|
44
|
+
backgroundColor: isSelected ? odysseyDesignTokens.HueNeutral50 : "unset",
|
|
45
|
+
margin: `${odysseyDesignTokens.Spacing1} 0`,
|
|
46
|
+
"&:last-child": {
|
|
47
|
+
marginBottom: odysseyDesignTokens.Spacing2,
|
|
48
|
+
},
|
|
49
|
+
"& a": {
|
|
50
|
+
display: "flex",
|
|
51
|
+
alignItems: "center",
|
|
52
|
+
width: "100%",
|
|
53
|
+
minHeight: "48px",
|
|
54
|
+
padding: `${odysseyDesignTokens.Spacing3} ${odysseyDesignTokens.Spacing4}`,
|
|
55
|
+
color: `${odysseyDesignTokens.TypographyColorHeading} !important`,
|
|
56
|
+
pointerEvents: isDisabled ? "none" : "auto",
|
|
57
|
+
},
|
|
58
|
+
"& a:hover": {
|
|
59
|
+
textDecoration: "none",
|
|
60
|
+
cursor: isDisabled ? "default" : "pointer",
|
|
61
|
+
backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : "inherit",
|
|
62
|
+
},
|
|
63
|
+
"& a:focus-visible": {
|
|
64
|
+
outlineOffset: 0,
|
|
65
|
+
borderRadius: 0,
|
|
66
|
+
outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,
|
|
67
|
+
backgroundColor: !isDisabled ? odysseyDesignTokens.HueNeutral50 : "inherit",
|
|
68
|
+
},
|
|
69
|
+
}));
|
|
70
|
+
|
|
71
|
+
const scrollToNode = (node: HTMLElement | null) => {
|
|
72
|
+
if (node) {
|
|
73
|
+
node?.scrollIntoView({
|
|
74
|
+
behavior: "instant",
|
|
75
|
+
block: "center",
|
|
76
|
+
inline: "nearest",
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
type ScrollIntoViewHandle = {
|
|
82
|
+
scrollIntoView: () => void;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const SideNavItemContent = ({
|
|
86
|
+
id,
|
|
87
|
+
label,
|
|
88
|
+
href,
|
|
89
|
+
target,
|
|
90
|
+
startIcon,
|
|
91
|
+
severity,
|
|
92
|
+
statusLabel,
|
|
93
|
+
endIcon,
|
|
94
|
+
onClick,
|
|
95
|
+
isSelected,
|
|
96
|
+
isDisabled,
|
|
97
|
+
scrollRef,
|
|
98
|
+
}: Pick<
|
|
99
|
+
SideNavItem,
|
|
100
|
+
| "id"
|
|
101
|
+
| "label"
|
|
102
|
+
| "href"
|
|
103
|
+
| "target"
|
|
104
|
+
| "startIcon"
|
|
105
|
+
| "severity"
|
|
106
|
+
| "statusLabel"
|
|
107
|
+
| "endIcon"
|
|
108
|
+
| "onClick"
|
|
109
|
+
| "isSelected"
|
|
110
|
+
| "isDisabled"
|
|
111
|
+
> & {
|
|
112
|
+
/**
|
|
113
|
+
* The ref used to scroll to this item
|
|
114
|
+
*/
|
|
115
|
+
scrollRef?: React.RefObject<ScrollIntoViewHandle>;
|
|
116
|
+
}) => {
|
|
117
|
+
const localScrollRef = useRef<HTMLLIElement>(null);
|
|
118
|
+
useImperativeHandle(
|
|
119
|
+
scrollRef,
|
|
120
|
+
() => {
|
|
121
|
+
return {
|
|
122
|
+
scrollIntoView: () => {
|
|
123
|
+
scrollToNode(localScrollRef.current);
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
[],
|
|
128
|
+
);
|
|
129
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
130
|
+
|
|
131
|
+
const NavItemContentClickContainer = styled("div", {
|
|
132
|
+
shouldForwardProp: (prop) => prop !== "odysseyDesignTokens",
|
|
133
|
+
})(() => ({
|
|
134
|
+
display: "flex",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
width: "100%",
|
|
137
|
+
minHeight: "48px",
|
|
138
|
+
padding: `${odysseyDesignTokens.Spacing3} ${odysseyDesignTokens.Spacing4}`,
|
|
139
|
+
color: `${isDisabled ? odysseyDesignTokens.TypographyColorDisabled : odysseyDesignTokens.TypographyColorHeading} !important`,
|
|
140
|
+
"&:focus-visible": {
|
|
141
|
+
borderRadius: 0,
|
|
142
|
+
outlineColor: odysseyDesignTokens.FocusOutlineColorPrimary,
|
|
143
|
+
outlineStyle: odysseyDesignTokens.FocusOutlineStyle,
|
|
144
|
+
outlineWidth: odysseyDesignTokens.FocusOutlineWidthMain,
|
|
145
|
+
backgroundColor: odysseyDesignTokens.HueNeutral50,
|
|
146
|
+
textDecoration: "none",
|
|
147
|
+
},
|
|
148
|
+
}));
|
|
149
|
+
|
|
150
|
+
const sideNavItemContentKeyHandler = useCallback(
|
|
151
|
+
(event: KeyboardEvent<HTMLDivElement>) => {
|
|
152
|
+
if (event?.key === "Enter") {
|
|
153
|
+
event.preventDefault();
|
|
154
|
+
onClick?.();
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
[onClick],
|
|
158
|
+
);
|
|
159
|
+
|
|
160
|
+
return (
|
|
161
|
+
<SideNavListItemContainer
|
|
162
|
+
ref={localScrollRef}
|
|
163
|
+
id={id}
|
|
164
|
+
key={id}
|
|
165
|
+
disabled={isDisabled}
|
|
166
|
+
aria-disabled={isDisabled}
|
|
167
|
+
isDisabled={isDisabled}
|
|
168
|
+
isSelected={isSelected}
|
|
169
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
170
|
+
>
|
|
171
|
+
{
|
|
172
|
+
// Use Link for nav items with links and div for disabled or non-link items
|
|
173
|
+
isDisabled ? (
|
|
174
|
+
<NavItemContentClickContainer>
|
|
175
|
+
<SideNavItemLinkContent
|
|
176
|
+
label={label}
|
|
177
|
+
startIcon={startIcon}
|
|
178
|
+
endIcon={endIcon}
|
|
179
|
+
statusLabel={statusLabel}
|
|
180
|
+
severity={severity}
|
|
181
|
+
/>
|
|
182
|
+
</NavItemContentClickContainer>
|
|
183
|
+
) : !href ? (
|
|
184
|
+
<NavItemContentClickContainer
|
|
185
|
+
role="button"
|
|
186
|
+
tabIndex={0}
|
|
187
|
+
onClick={onClick}
|
|
188
|
+
onKeyDown={sideNavItemContentKeyHandler}
|
|
189
|
+
>
|
|
190
|
+
<SideNavItemLinkContent
|
|
191
|
+
label={label}
|
|
192
|
+
startIcon={startIcon}
|
|
193
|
+
endIcon={endIcon}
|
|
194
|
+
statusLabel={statusLabel}
|
|
195
|
+
severity={severity}
|
|
196
|
+
/>
|
|
197
|
+
</NavItemContentClickContainer>
|
|
198
|
+
) : (
|
|
199
|
+
<Link href={href} target={target} onClick={onClick}>
|
|
200
|
+
<SideNavItemLinkContent
|
|
201
|
+
label={label}
|
|
202
|
+
startIcon={startIcon}
|
|
203
|
+
endIcon={endIcon}
|
|
204
|
+
statusLabel={statusLabel}
|
|
205
|
+
severity={severity}
|
|
206
|
+
/>
|
|
207
|
+
</Link>
|
|
208
|
+
)
|
|
209
|
+
}
|
|
210
|
+
</SideNavListItemContainer>
|
|
211
|
+
);
|
|
212
|
+
};
|
|
213
|
+
const MemoizedSideNavItemContent = memo(SideNavItemContent);
|
|
214
|
+
MemoizedSideNavItemContent.displayName = "SideNavItemContent";
|
|
215
|
+
|
|
216
|
+
export { MemoizedSideNavItemContent as SideNavItemContent };
|
|
@@ -0,0 +1,87 @@
|
|
|
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 styled from "@emotion/styled";
|
|
14
|
+
import { memo, ReactNode, useMemo } from "react";
|
|
15
|
+
import {
|
|
16
|
+
type DesignTokens,
|
|
17
|
+
useOdysseyDesignTokens,
|
|
18
|
+
} from "../../OdysseyDesignTokensContext";
|
|
19
|
+
import { Box } from "../../Box";
|
|
20
|
+
import { Status } from "../../Status";
|
|
21
|
+
import type { SideNavItem } from "./types";
|
|
22
|
+
|
|
23
|
+
const SideNavItemLabelContainer = styled("div", {
|
|
24
|
+
shouldForwardProp: (prop) =>
|
|
25
|
+
prop !== "odysseyDesignTokens" && prop !== "isIconVisible",
|
|
26
|
+
})<{
|
|
27
|
+
odysseyDesignTokens: DesignTokens;
|
|
28
|
+
isIconVisible: boolean;
|
|
29
|
+
}>(({ odysseyDesignTokens, isIconVisible }) => ({
|
|
30
|
+
width: "100%",
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexWrap: "wrap",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
fontSize: odysseyDesignTokens.TypographyScale0,
|
|
35
|
+
fontWeight: odysseyDesignTokens.TypographyWeightHeading,
|
|
36
|
+
marginLeft: isIconVisible ? odysseyDesignTokens.Spacing2 : 0,
|
|
37
|
+
"& a": {
|
|
38
|
+
color: `${odysseyDesignTokens.TypographyColorHeading} !important`,
|
|
39
|
+
fontSize: odysseyDesignTokens.TypographyScale0,
|
|
40
|
+
},
|
|
41
|
+
"& a:hover": {
|
|
42
|
+
textDecoration: "none",
|
|
43
|
+
cursor: "pointer",
|
|
44
|
+
},
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
const SideNavItemLinkContent = ({
|
|
48
|
+
label,
|
|
49
|
+
startIcon,
|
|
50
|
+
endIcon,
|
|
51
|
+
severity,
|
|
52
|
+
statusLabel,
|
|
53
|
+
}: Pick<
|
|
54
|
+
SideNavItem,
|
|
55
|
+
"label" | "startIcon" | "endIcon" | "severity" | "statusLabel"
|
|
56
|
+
>): ReactNode => {
|
|
57
|
+
const odysseyDesignTokens = useOdysseyDesignTokens();
|
|
58
|
+
|
|
59
|
+
const sideNavItemContentStyles = useMemo(
|
|
60
|
+
() => ({
|
|
61
|
+
marginLeft: odysseyDesignTokens.Spacing2,
|
|
62
|
+
}),
|
|
63
|
+
[odysseyDesignTokens],
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<>
|
|
68
|
+
{startIcon && startIcon}
|
|
69
|
+
<SideNavItemLabelContainer
|
|
70
|
+
odysseyDesignTokens={odysseyDesignTokens}
|
|
71
|
+
isIconVisible={Boolean(startIcon)}
|
|
72
|
+
>
|
|
73
|
+
{label}
|
|
74
|
+
{severity && (
|
|
75
|
+
<Box sx={sideNavItemContentStyles}>
|
|
76
|
+
<Status severity={severity} label={statusLabel || ""} />
|
|
77
|
+
</Box>
|
|
78
|
+
)}
|
|
79
|
+
</SideNavItemLabelContainer>
|
|
80
|
+
{endIcon && endIcon}
|
|
81
|
+
</>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
const MemoizedSideNavItemLinkContent = memo(SideNavItemLinkContent);
|
|
85
|
+
MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent";
|
|
86
|
+
|
|
87
|
+
export { MemoizedSideNavItemLinkContent as SideNavItemLinkContent };
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { SideNav } from "./SideNav";
|
|
14
|
+
|
|
15
|
+
export * from "./types";
|
|
@@ -0,0 +1,152 @@
|
|
|
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 type { ReactElement } from "react";
|
|
14
|
+
import type { HtmlProps } from "../../HtmlProps";
|
|
15
|
+
import type { statusSeverityValues } from "../../Status";
|
|
16
|
+
|
|
17
|
+
export type SideNavProps = {
|
|
18
|
+
/**
|
|
19
|
+
* Side Nav header text that is usually reserved to show the App name
|
|
20
|
+
*/
|
|
21
|
+
navHeaderText: string;
|
|
22
|
+
/**
|
|
23
|
+
* Determines whether the side nav is collapsible
|
|
24
|
+
*/
|
|
25
|
+
isCollapsible?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Triggers when the side nav is collapsed
|
|
28
|
+
*/
|
|
29
|
+
onCollapse?(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Triggers when the side nav is expanded
|
|
32
|
+
*/
|
|
33
|
+
onExpand?(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Nav items in the side nav
|
|
36
|
+
*/
|
|
37
|
+
sideNavItems: SideNavItem[];
|
|
38
|
+
/**
|
|
39
|
+
* A CSS length string indicating the customizable expanded width of the SideNav container.
|
|
40
|
+
* (it will be smaller if isCollapsible and collapsed)
|
|
41
|
+
*/
|
|
42
|
+
expandedWidth?: string;
|
|
43
|
+
/**
|
|
44
|
+
* An optional logo to display in the header. If not provided, will default to the Okta logo
|
|
45
|
+
*/
|
|
46
|
+
logo?: ReactElement;
|
|
47
|
+
} & (
|
|
48
|
+
| {
|
|
49
|
+
/**
|
|
50
|
+
* Footer items in the side nav
|
|
51
|
+
*/
|
|
52
|
+
footerItems?: SideNavFooterItem[];
|
|
53
|
+
/**
|
|
54
|
+
* footerComponent cannot be used if footerItems are defined
|
|
55
|
+
*/
|
|
56
|
+
footerComponent?: never;
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
/**
|
|
60
|
+
* footerItems cannot be used if footerComponent is defined
|
|
61
|
+
*/
|
|
62
|
+
footerItems?: never;
|
|
63
|
+
/**
|
|
64
|
+
* The component to display as the footer; if present the `footerItems` are ignored and not rendered.
|
|
65
|
+
*/
|
|
66
|
+
footerComponent?: ReactElement;
|
|
67
|
+
}
|
|
68
|
+
) &
|
|
69
|
+
Pick<HtmlProps, "testId">;
|
|
70
|
+
|
|
71
|
+
export type SideNavItem = {
|
|
72
|
+
id: string;
|
|
73
|
+
label: string;
|
|
74
|
+
/**
|
|
75
|
+
* The icon element to display at the end of the Nav Item
|
|
76
|
+
*/
|
|
77
|
+
endIcon?: ReactElement;
|
|
78
|
+
/**
|
|
79
|
+
* Whether the item is disabled. When set to true the nav item is set to Disabled color,
|
|
80
|
+
* the link/item is not clickable, and item with children is not expandable.
|
|
81
|
+
*/
|
|
82
|
+
isDisabled?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the item is active/selected
|
|
85
|
+
*/
|
|
86
|
+
isSelected?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Event fired when the nav item is clicked
|
|
89
|
+
*/
|
|
90
|
+
onClick?(): void;
|
|
91
|
+
/**
|
|
92
|
+
* The status element to display after the label
|
|
93
|
+
*/
|
|
94
|
+
severity?: (typeof statusSeverityValues)[number];
|
|
95
|
+
/**
|
|
96
|
+
* The icon element to display at the start of the Nav Item
|
|
97
|
+
*/
|
|
98
|
+
startIcon?: ReactElement;
|
|
99
|
+
/**
|
|
100
|
+
* The label to display inside the status
|
|
101
|
+
*/
|
|
102
|
+
statusLabel?: string;
|
|
103
|
+
/**
|
|
104
|
+
* The link target prop. e.g., "_blank"
|
|
105
|
+
*/
|
|
106
|
+
target?: string;
|
|
107
|
+
} & (
|
|
108
|
+
| {
|
|
109
|
+
/**
|
|
110
|
+
* Determines if the side nav item is a section header
|
|
111
|
+
*/
|
|
112
|
+
isSectionHeader: true;
|
|
113
|
+
href?: never;
|
|
114
|
+
children?: never;
|
|
115
|
+
isDefaultExpanded?: never;
|
|
116
|
+
isExpanded?: never;
|
|
117
|
+
}
|
|
118
|
+
| {
|
|
119
|
+
/**
|
|
120
|
+
* link added to the nav item. if it is undefined, static text will be displayed.
|
|
121
|
+
* fires onClick event when it is passed
|
|
122
|
+
*/
|
|
123
|
+
href: string;
|
|
124
|
+
children?: never;
|
|
125
|
+
isSectionHeader?: never;
|
|
126
|
+
isDefaultExpanded?: never;
|
|
127
|
+
isExpanded?: never;
|
|
128
|
+
}
|
|
129
|
+
| {
|
|
130
|
+
/**
|
|
131
|
+
* An array of side nav items to be displayed as children within Accordion
|
|
132
|
+
*/
|
|
133
|
+
children?: SideNavItem[];
|
|
134
|
+
/**
|
|
135
|
+
* Whether the accordion (nav item with children) is expanded by default
|
|
136
|
+
*/
|
|
137
|
+
isDefaultExpanded?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* If true, expands the accordion, otherwise collapse it.
|
|
140
|
+
* Setting this prop enables control over the accordion.
|
|
141
|
+
*/
|
|
142
|
+
isExpanded?: boolean;
|
|
143
|
+
isSectionHeader?: never;
|
|
144
|
+
href?: never;
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
export type SideNavFooterItem = {
|
|
149
|
+
href?: string;
|
|
150
|
+
id: string;
|
|
151
|
+
label: string;
|
|
152
|
+
};
|
package/src/labs/TopNav.tsx
CHANGED
|
@@ -29,6 +29,8 @@ import {
|
|
|
29
29
|
} from "../OdysseyDesignTokensContext";
|
|
30
30
|
import { Subordinate } from "../Typography";
|
|
31
31
|
|
|
32
|
+
export const TOP_NAV_HEIGHT_TOKEN = "Spacing9";
|
|
33
|
+
|
|
32
34
|
export type TopNavLinkItem = {
|
|
33
35
|
id: string;
|
|
34
36
|
label: string;
|
|
@@ -306,7 +308,7 @@ const TopNavContainer = styled("div", {
|
|
|
306
308
|
display: "flex",
|
|
307
309
|
alignItems: "center",
|
|
308
310
|
backgroundColor: odysseyDesignTokens.HueNeutralWhite,
|
|
309
|
-
height: odysseyDesignTokens
|
|
311
|
+
height: odysseyDesignTokens[TOP_NAV_HEIGHT_TOKEN],
|
|
310
312
|
}));
|
|
311
313
|
|
|
312
314
|
const SearchFieldContainer = styled("div", {
|
package/src/labs/index.ts
CHANGED
|
@@ -14,15 +14,16 @@ export { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
|
14
14
|
export { LocalizationProvider } from "@mui/x-date-pickers";
|
|
15
15
|
export type { LocalizationProviderProps } from "@mui/x-date-pickers";
|
|
16
16
|
|
|
17
|
+
export * from "./AppTile";
|
|
18
|
+
|
|
17
19
|
export * from "./DatePicker";
|
|
18
20
|
export * from "./datePickerTheme";
|
|
19
21
|
|
|
20
|
-
export * from "./
|
|
22
|
+
export * from "./DataView";
|
|
21
23
|
|
|
22
24
|
/** @deprecated Will be removed in a future Odyssey version in lieu of the one shipping with DataTable */
|
|
23
25
|
export * from "./DataTablePagination";
|
|
24
26
|
export * from "./DataFilters";
|
|
25
|
-
export * from "./FileUpload";
|
|
26
27
|
export * from "./Layout";
|
|
27
28
|
export * from "./materialReactTableTypes";
|
|
28
29
|
/** @deprecated Will be removed in a future Odyssey version in lieu of DataTable */
|
|
@@ -33,8 +34,6 @@ export * from "./PaginatedTable";
|
|
|
33
34
|
|
|
34
35
|
export * from "./GroupPicker";
|
|
35
36
|
|
|
36
|
-
export * from "./Switch";
|
|
37
|
-
|
|
38
37
|
export * from "./NavAccordion";
|
|
39
38
|
export * from "./SideNav";
|
|
40
39
|
export * from "./TopNav";
|
|
@@ -46,7 +46,7 @@ export const useDateFieldsTranslations = (): DateFieldsTranslations => {
|
|
|
46
46
|
empty: `${t("picker.labels.empty")}`,
|
|
47
47
|
end: `${t("picker.labels.range.end")}`,
|
|
48
48
|
endDate: `${t("picker.labels.range.enddate")}`,
|
|
49
|
-
endTime: `${t("picker.labels.range.
|
|
49
|
+
endTime: `${t("picker.labels.range.endtime")}`,
|
|
50
50
|
fieldClearLabel: `${t("picker.labels.field.clear")}`,
|
|
51
51
|
fieldDayPlaceholder: () => `${t("picker.field.placeholder.day")}`,
|
|
52
52
|
fieldMonthPlaceholder: () => `${t("picker.field.placeholder.month")}`,
|
|
@@ -31,7 +31,7 @@ picker.labels.action.today = Today
|
|
|
31
31
|
picker.labels.clock.empty = No time selected
|
|
32
32
|
picker.labels.clock.hours = hours
|
|
33
33
|
picker.labels.clock.minutes = minutes
|
|
34
|
-
picker.labels.clock.
|
|
34
|
+
picker.labels.clock.seconds = seconds
|
|
35
35
|
picker.labels.clock.selected = Selected time is
|
|
36
36
|
picker.labels.date.choose = Choose date
|
|
37
37
|
picker.labels.date.selected = Selected date is
|
|
@@ -47,6 +47,7 @@ picker.labels.select = Select
|
|
|
47
47
|
picker.labels.table.date = pick date
|
|
48
48
|
picker.labels.table.time = pick time
|
|
49
49
|
picker.labels.time.choose = Choose time
|
|
50
|
+
picker.labels.time.selected = selected time is
|
|
50
51
|
picker.time.toolbar.title = Select time
|
|
51
52
|
picker.view.name.day = Day
|
|
52
53
|
picker.view.name.hours = Hours
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
breadcrumbs.home.text = Domovsk\u00E1 str\u00E1nka
|
|
2
2
|
breadcrumbs.label.text = Drobe\u010Dkov\u00E1 navigace
|
|
3
|
-
close.text =
|
|
3
|
+
close.text = Zav\u0159\u00EDt
|
|
4
4
|
clear.text = Vymazat
|
|
5
|
+
open.text = Otev\u0159\u00EDt
|
|
5
6
|
picker.calendar.navigation.nextmonth = Dal\u0161\u00ED m\u011Bs\u00EDc
|
|
6
7
|
picker.calendar.navigation.previousmonth = P\u0159edchoz\u00ED m\u011Bs\u00EDc
|
|
7
8
|
picker.date.toolbar.title = Vybran\u00E9 datum
|
|
8
9
|
picker.daterange.toolbar.title = Vybrat rozmez\u00ED dat
|
|
9
10
|
picker.datetime.toolbar.title = Vybrat datum a \u010Das
|
|
11
|
+
picker.error.invalid = Opravte form\u00E1t data nebo vyberte datum z kalend\u00E1\u0159e.
|
|
12
|
+
picker.error.mindate = Zadan\u00E9 datum je d\u0159\u00EDv\u011Bj\u0161\u00ED, ne\u017E je povoleno. Vyberte datum v rozmez\u00ED dostupn\u00E9m v kalend\u00E1\u0159i.
|
|
13
|
+
picker.error.maxdate = Zadan\u00E9 datum je pozd\u011Bj\u0161\u00ED, ne\u017E je povoleno. Vyberte datum v rozmez\u00ED dostupn\u00E9m v kalend\u00E1\u0159i.
|
|
10
14
|
# placeholder text in date field
|
|
11
15
|
picker.field.placeholder.day = DD
|
|
12
16
|
# placeholder text in date/time field
|
|
@@ -79,7 +83,6 @@ severity.success = \u00FAsp\u011Bch
|
|
|
79
83
|
severity.warning = upozorn\u011Bn\u00ED
|
|
80
84
|
switch.active = Aktivn\u00ED
|
|
81
85
|
switch.inactive = Neaktivn\u00ED
|
|
82
|
-
table.actions = Akce
|
|
83
86
|
table.columnvisibility.arialabel = Zobrazit nebo skr\u00FDt sloupce
|
|
84
87
|
table.density.arialabel = Hustota tabulky
|
|
85
88
|
table.draghandle.arialabel = Po\u0159ad\u00ED \u0159\u00E1dk\u016F m\u016F\u017Eete zm\u011Bnit p\u0159eta\u017Een\u00EDm. Zm\u011Bny po\u0159ad\u00ED m\u016F\u017Eete tak\u00E9 zah\u00E1jit a dokon\u010Dit stisknut\u00EDm mezern\u00EDku nebo kl\u00E1vesy Enter a zru\u0161it stisknut\u00EDm kl\u00E1vesy Esc.
|
|
@@ -108,4 +111,13 @@ pagination.page = Str\u00E1nka
|
|
|
108
111
|
pagination.rowsperpage = Po\u010Det \u0159\u00E1dk\u016F na str\u00E1nku
|
|
109
112
|
pagination.rowswithtotal = \u0158\u00E1dky {{firstRow}}\u2013{{lastRow}} z {{totalRows}}
|
|
110
113
|
pagination.rowswithouttotal = \u0158\u00E1dky {{firstRow}}\u2013{{lastRow}}
|
|
111
|
-
|
|
114
|
+
table.actions.selectall = Vybrat v\u0161e
|
|
115
|
+
table.actions.selectnone = Zru\u0161it v\u00FDb\u011Br
|
|
116
|
+
table.actions.selectsome = Vybr\u00E1no: {{selectedRowCount}}
|
|
117
|
+
table.rowexpansion.expand = Rozbalit
|
|
118
|
+
table.rowexpansion.expandall = Rozbalit v\u0161e
|
|
119
|
+
table.rowexpansion.collapse = Sbalit
|
|
120
|
+
table.rowexpansion.collapseall = Sbalit v\u0161e
|
|
121
|
+
dataview.layout.table = Tabulka
|
|
122
|
+
dataview.layout.grid = M\u0159\u00ED\u017Eka
|
|
123
|
+
dataview.layout.list = Seznam
|