@okta/odyssey-react-mui 1.32.4 → 1.34.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/dist/cjs/Autocomplete.cjs +1 -1
- package/dist/cjs/Autocomplete.cjs.map +1 -1
- package/dist/cjs/Breadcrumbs.cjs +23 -7
- package/dist/cjs/Breadcrumbs.cjs.map +1 -1
- package/dist/cjs/Buttons/BaseButton.cjs +1 -1
- package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
- package/dist/cjs/DatePickers/datePickerTheme.cjs +1 -1
- package/dist/cjs/DatePickers/datePickerTheme.cjs.map +1 -1
- package/dist/cjs/OdysseyProvider.cjs +2 -2
- package/dist/cjs/OdysseyProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyThemeProvider.cjs +2 -2
- package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
- package/dist/cjs/hexToRgb.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
- package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
- package/dist/cjs/theme/pxToRem.cjs +21 -0
- package/dist/cjs/theme/pxToRem.cjs.map +1 -0
- package/dist/cjs/theme/theme.cjs +22 -0
- package/dist/cjs/theme/theme.cjs.map +1 -1
- package/dist/cjs/theme/useMediaQuery.cjs +34 -0
- package/dist/cjs/theme/useMediaQuery.cjs.map +1 -0
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +3 -3
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs.map +1 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +353 -0
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -0
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs +62 -44
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +8 -5
- package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +3 -0
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavLogo.cjs +5 -5
- package/dist/cjs/ui-shell/SideNav/SideNavLogo.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -1
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
- package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +37 -0
- package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs.map +1 -0
- package/dist/cjs/ui-shell/TopNav/TopNav.cjs +5 -5
- package/dist/cjs/ui-shell/TopNav/TopNav.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +43 -18
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShellProvider.cjs +14 -4
- package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +171 -0
- package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -0
- package/dist/cjs/ui-shell/index.cjs +37 -9
- package/dist/cjs/ui-shell/index.cjs.map +1 -1
- package/dist/cjs/ui-shell/renderUiShell.cjs +32 -20
- package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/uiShellContentTypes.cjs +20 -0
- package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -0
- package/dist/cjs/ui-shell/uiShellSharedConstants.cjs +23 -0
- package/dist/cjs/ui-shell/uiShellSharedConstants.cjs.map +1 -0
- package/dist/cjs/ui-shell/useMatchAppElementToUiShellAppArea.cjs +108 -0
- package/dist/cjs/ui-shell/useMatchAppElementToUiShellAppArea.cjs.map +1 -0
- package/dist/cjs/ui-shell/useScrollState.cjs +2 -4
- package/dist/cjs/ui-shell/useScrollState.cjs.map +1 -1
- package/dist/cjs/ui-shell/useUiShellBreakpoints.cjs +41 -0
- package/dist/cjs/ui-shell/useUiShellBreakpoints.cjs.map +1 -0
- package/dist/cjs/web-component/createReactRootElements.cjs.map +1 -1
- package/dist/cjs/web-component/renderReactInWebComponent.cjs +6 -1
- package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
- package/dist/esm/Autocomplete.js +1 -1
- package/dist/esm/Autocomplete.js.map +1 -1
- package/dist/esm/Breadcrumbs.js +23 -7
- package/dist/esm/Breadcrumbs.js.map +1 -1
- package/dist/esm/Buttons/BaseButton.js +1 -1
- package/dist/esm/Buttons/BaseButton.js.map +1 -1
- package/dist/esm/DatePickers/datePickerTheme.js +1 -1
- package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
- package/dist/esm/OdysseyProvider.js +2 -2
- package/dist/esm/OdysseyProvider.js.map +1 -1
- package/dist/esm/OdysseyThemeProvider.js +2 -2
- package/dist/esm/OdysseyThemeProvider.js.map +1 -1
- package/dist/esm/hexToRgb.js.map +1 -1
- package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
- package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_de.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/esm/theme/pxToRem.js +14 -0
- package/dist/esm/theme/pxToRem.js.map +1 -0
- package/dist/esm/theme/theme.js +2 -0
- package/dist/esm/theme/theme.js.map +1 -1
- package/dist/esm/theme/useMediaQuery.js +27 -0
- package/dist/esm/theme/useMediaQuery.js.map +1 -0
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +2 -2
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js.map +1 -1
- package/dist/esm/ui-shell/NarrowUiShellContent.js +347 -0
- package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -0
- package/dist/esm/ui-shell/SideNav/SideNav.js +61 -43
- package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavHeader.js +7 -4
- package/dist/esm/ui-shell/SideNav/SideNavHeader.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +3 -0
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavLogo.js +5 -5
- package/dist/esm/ui-shell/SideNav/SideNavLogo.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
- package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +32 -0
- package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js.map +1 -0
- package/dist/esm/ui-shell/TopNav/TopNav.js +2 -2
- package/dist/esm/ui-shell/TopNav/TopNav.js.map +1 -1
- package/dist/esm/ui-shell/UiShell.js +43 -18
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/ui-shell/UiShellProvider.js +12 -3
- package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +165 -0
- package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -0
- package/dist/esm/ui-shell/index.js +3 -1
- package/dist/esm/ui-shell/index.js.map +1 -1
- package/dist/esm/ui-shell/renderUiShell.js +32 -20
- package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
- package/dist/esm/ui-shell/uiShellContentTypes.js +14 -0
- package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -0
- package/dist/esm/ui-shell/uiShellSharedConstants.js +17 -0
- package/dist/esm/ui-shell/uiShellSharedConstants.js.map +1 -0
- package/dist/esm/ui-shell/useMatchAppElementToUiShellAppArea.js +99 -0
- package/dist/esm/ui-shell/useMatchAppElementToUiShellAppArea.js.map +1 -0
- package/dist/esm/ui-shell/useScrollState.js +3 -5
- package/dist/esm/ui-shell/useScrollState.js.map +1 -1
- package/dist/esm/ui-shell/useUiShellBreakpoints.js +34 -0
- package/dist/esm/ui-shell/useUiShellBreakpoints.js.map +1 -0
- package/dist/esm/web-component/createReactRootElements.js.map +1 -1
- package/dist/esm/web-component/renderReactInWebComponent.js +6 -1
- package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.scss +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Autocomplete.d.ts +1 -1
- package/dist/types/Breadcrumbs.d.ts +4 -3
- package/dist/types/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/Buttons/BaseButton.d.ts +1 -1
- package/dist/types/OdysseyProvider.d.ts +1 -1
- package/dist/types/OdysseyProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/types/OdysseyTranslationProvider.d.ts +1 -1
- package/dist/types/OdysseyTranslationProvider.d.ts.map +1 -1
- package/dist/types/hexToRgb.d.ts.map +1 -1
- package/dist/types/i18n.d.ts +28 -0
- package/dist/types/i18n.d.ts.map +1 -1
- package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/types/theme/pxToRem.d.ts +13 -0
- package/dist/types/theme/pxToRem.d.ts.map +1 -0
- package/dist/types/theme/theme.d.ts +2 -0
- package/dist/types/theme/theme.d.ts.map +1 -1
- package/dist/types/theme/useMediaQuery.d.ts +13 -0
- package/dist/types/theme/useMediaQuery.d.ts.map +1 -0
- package/dist/types/ui-shell/AppSwitcher/AppSwitcher.d.ts.map +1 -1
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts +17 -0
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -0
- package/dist/types/ui-shell/SideNav/SideNav.d.ts +1 -3
- package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavHeader.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavLogo.d.ts +1 -1
- package/dist/types/ui-shell/SideNav/SideNavLogo.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/types.d.ts +7 -1
- package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
- package/dist/types/ui-shell/TopNav/HamburgerMenuIcon.d.ts +16 -0
- package/dist/types/ui-shell/TopNav/HamburgerMenuIcon.d.ts.map +1 -0
- package/dist/types/ui-shell/TopNav/TopNav.d.ts +0 -1
- package/dist/types/ui-shell/TopNav/TopNav.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShell.d.ts +12 -14
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShellProvider.d.ts +37 -8
- package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
- package/dist/types/ui-shell/WideUiShellContent.d.ts +16 -0
- package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -0
- package/dist/types/ui-shell/index.d.ts +3 -1
- package/dist/types/ui-shell/index.d.ts.map +1 -1
- package/dist/types/ui-shell/renderUiShell.d.ts +9 -11
- package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/{UiShellContent.d.ts → uiShellContentTypes.d.ts} +45 -31
- package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -0
- package/dist/types/ui-shell/uiShellSharedConstants.d.ts +18 -0
- package/dist/types/ui-shell/uiShellSharedConstants.d.ts.map +1 -0
- package/dist/types/ui-shell/useMatchAppElementToUiShellAppArea.d.ts +38 -0
- package/dist/types/ui-shell/useMatchAppElementToUiShellAppArea.d.ts.map +1 -0
- package/dist/types/ui-shell/useScrollState.d.ts +0 -1
- package/dist/types/ui-shell/useScrollState.d.ts.map +1 -1
- package/dist/types/ui-shell/useUiShellBreakpoints.d.ts +18 -0
- package/dist/types/ui-shell/useUiShellBreakpoints.d.ts.map +1 -0
- package/dist/types/web-component/createReactRootElements.d.ts +6 -4
- package/dist/types/web-component/createReactRootElements.d.ts.map +1 -1
- package/dist/types/web-component/renderReactInWebComponent.d.ts +12 -5
- package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/cjs/ui-shell/UiShellContent.cjs +0 -242
- package/dist/cjs/ui-shell/UiShellContent.cjs.map +0 -1
- package/dist/esm/ui-shell/UiShellContent.js +0 -234
- package/dist/esm/ui-shell/UiShellContent.js.map +0 -1
- package/dist/types/ui-shell/UiShellContent.d.ts.map +0 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type SetStateAction } from "react";
|
|
13
13
|
import { UiShellProps } from "./UiShell.js";
|
|
14
|
-
import {
|
|
14
|
+
import { UiShellNavComponentProps } from "./uiShellContentTypes.js";
|
|
15
15
|
export declare const optionalComponentSlotNames: Record<keyof Required<UiShellProps>["optionalComponents"], string>;
|
|
16
16
|
/**
|
|
17
17
|
* This function renders UI Shell in a web component.
|
|
@@ -22,23 +22,21 @@ export declare const optionalComponentSlotNames: Record<keyof Required<UiShellPr
|
|
|
22
22
|
* It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.
|
|
23
23
|
* It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**
|
|
24
24
|
*/
|
|
25
|
-
export declare const renderUiShell: ({ appBackgroundColor, appBackgroundContrastMode,
|
|
26
|
-
/**
|
|
27
|
-
* HTML element used as the root for a React app.
|
|
28
|
-
*/
|
|
29
|
-
appRootElement?: HTMLDivElement;
|
|
25
|
+
export declare const renderUiShell: ({ appBackgroundColor, appBackgroundContrastMode, appElement: providedAppElement, appElementScrollingMode, hasStandardAppContentPadding, initialVisibleSections, onError, parentElement, sideNavBackgroundColor, topNavBackgroundColor, }: {
|
|
30
26
|
/**
|
|
31
27
|
* Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.
|
|
32
28
|
*/
|
|
33
29
|
onError?: () => void;
|
|
34
30
|
/**
|
|
35
|
-
* HTML element used as the
|
|
31
|
+
* HTML element used as the container for UI Shell and the App. They're siblings inside this element.
|
|
36
32
|
*/
|
|
37
|
-
|
|
38
|
-
} & Pick<UiShellProps, "appBackgroundColor" | "appBackgroundContrastMode" | "
|
|
39
|
-
|
|
33
|
+
parentElement: HTMLElement;
|
|
34
|
+
} & Pick<UiShellProps, "appBackgroundColor" | "appBackgroundContrastMode" | "appElementScrollingMode" | "hasStandardAppContentPadding" | "initialVisibleSections" | "sideNavBackgroundColor" | "topNavBackgroundColor"> & Partial<Pick<UiShellProps, "appElement">>) => {
|
|
35
|
+
appElement: HTMLDivElement;
|
|
36
|
+
closeRightSideMenu: import("./createMessageBus.js").PublishMessage<void>;
|
|
37
|
+
closeSideNavMenu: import("./createMessageBus.js").PublishMessage<void>;
|
|
40
38
|
setComponentProps: (value: SetStateAction<UiShellNavComponentProps>) => void;
|
|
41
|
-
slottedElements: Record<"banners" | "sideNavFooter" | "
|
|
39
|
+
slottedElements: Record<"banners" | "topNavLeftSide" | "sideNavFooter" | "rightSideMenu" | "topNavRightSide", HTMLDivElement>;
|
|
42
40
|
uiShellElement: import("../web-component/renderReactInWebComponent.js").ReactInWebComponentElement;
|
|
43
41
|
};
|
|
44
42
|
//# sourceMappingURL=renderUiShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUiShell.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/renderUiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAW,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"renderUiShell.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/renderUiShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAW,YAAY,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAIpE,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,oBAAoB,CAAC,EAClD,MAAM,CAOP,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,6OAWvB;IACD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,aAAa,EAAE,WAAW,CAAC;CAC5B,GAAG,IAAI,CACN,YAAY,EACV,oBAAoB,GACpB,2BAA2B,GAC3B,yBAAyB,GACzB,8BAA8B,GAC9B,wBAAwB,GACxB,wBAAwB,GACxB,uBAAuB,CAC1B,GACC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;;;;;;;CA0F1C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
3
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
4
|
*
|
|
5
5
|
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ReactElement } from "react";
|
|
13
13
|
import { ErrorBoundaryProps } from "react-error-boundary";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { ContrastMode } from "../useContrastMode.js";
|
|
14
|
+
import { AppSwitcherProps } from "./AppSwitcher/AppSwitcher.js";
|
|
15
|
+
import { SideNavProps } from "./SideNav/types.js";
|
|
16
|
+
import { TopNavProps } from "./TopNav/TopNav.js";
|
|
18
17
|
export declare const subComponentNames: readonly ["TopNav", "SideNav", "AppSwitcher"];
|
|
19
18
|
export type SubComponentName = (typeof subComponentNames)[number];
|
|
20
19
|
export type UiShellNavComponentProps = {
|
|
@@ -33,28 +32,35 @@ export type UiShellNavComponentProps = {
|
|
|
33
32
|
};
|
|
34
33
|
export type UiShellContentProps = {
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* **WARNING:** UI Shell will modify the styling of this element.
|
|
36
|
+
* HTML element where the app gets rendered. This typically called the React root element for your app.
|
|
37
|
+
*
|
|
38
|
+
* When passed, the app is expected to render into this element, not the Shadow DOM.
|
|
39
|
+
*
|
|
40
|
+
* UI Shell will position this element appropriately to match the content area inside the Shadow DOM.
|
|
41
|
+
*
|
|
42
|
+
* A major benefit to having this element separate from UI Shell is related to encapsulation. UI Shell has the capability of rendering inside a web component, but in doing so, the app would be subject to the styles in the web component and not the page itself.
|
|
43
|
+
* The app should either be in its own web component or use the global styles, and having this separate element allows us to accomplish that goal.
|
|
37
44
|
*/
|
|
38
|
-
|
|
45
|
+
appElement: HTMLDivElement;
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* Controls the scrolling behavior of the app element area.
|
|
48
|
+
*
|
|
49
|
+
* In the case of an app wanting to control their own scrolling, use `"none"`.
|
|
50
|
+
*
|
|
51
|
+
* Most apps will want to use `"vertical"` and let UI Shell manage scrolling behavior.
|
|
41
52
|
*/
|
|
42
|
-
|
|
53
|
+
appElementScrollingMode: "none" | "horizontal" | "vertical" | "both";
|
|
43
54
|
/**
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Controls the scrolling behavior of the app content area. Defaults to "vertical".
|
|
49
|
-
*/
|
|
50
|
-
appContainerScrollingMode?: "none" | "horizontal" | "vertical" | "both";
|
|
51
|
-
/**
|
|
52
|
-
* defaults to `true`. If `false`, the content area will have no padding provided
|
|
55
|
+
* Defaults to `true`.
|
|
56
|
+
*
|
|
57
|
+
* If `false`, the content area will have no padding provided. This is for the case where an app wants to manage this separate from UI Shell.
|
|
53
58
|
*/
|
|
54
59
|
hasStandardAppContentPadding?: boolean;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
61
|
+
* Parts of UI Shell that are visible when rendered.
|
|
62
|
+
*
|
|
63
|
+
* For example, if `sideNavProps` is `undefined`, should there be a space left for side nav or should that space not exist?
|
|
58
64
|
*/
|
|
59
65
|
initialVisibleSections?: SubComponentName[];
|
|
60
66
|
/**
|
|
@@ -65,18 +71,26 @@ export type UiShellContentProps = {
|
|
|
65
71
|
* Components that will render as children of various other components such as the top nav or side nav.
|
|
66
72
|
*/
|
|
67
73
|
optionalComponents?: {
|
|
74
|
+
/**
|
|
75
|
+
* Spot for banners to go at the top of the page.
|
|
76
|
+
*/
|
|
68
77
|
banners?: ReactElement;
|
|
78
|
+
/**
|
|
79
|
+
* In narrow view, this is the right-side menu area.
|
|
80
|
+
*/
|
|
81
|
+
rightSideMenu?: ReactElement;
|
|
82
|
+
/**
|
|
83
|
+
* Footer in the side nav.
|
|
84
|
+
*/
|
|
69
85
|
sideNavFooter?: SideNavProps["footerComponent"];
|
|
86
|
+
/**
|
|
87
|
+
* Top nav is divided into 2 parts. This is the left-aligned half.
|
|
88
|
+
*/
|
|
70
89
|
topNavLeftSide?: TopNavProps["leftSideComponent"];
|
|
90
|
+
/**
|
|
91
|
+
* Top nav is divided into 2 parts. This is the right-aligned half.
|
|
92
|
+
*/
|
|
71
93
|
topNavRightSide?: TopNavProps["rightSideComponent"];
|
|
72
94
|
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export declare const setStylesToMatchElement: ({ additionalStyles, appContainerElement, appContentReferenceElement, }: {
|
|
76
|
-
additionalStyles: CSSProperties;
|
|
77
|
-
appContainerElement: HTMLElement;
|
|
78
|
-
appContentReferenceElement: HTMLElement;
|
|
79
|
-
}) => void;
|
|
80
|
-
declare const MemoizedUiShellContent: import("react").MemoExoticComponent<({ appContainerElement, hasStandardAppContentPadding, appContainerScrollingMode, initialVisibleSections, onError, optionalComponents, appSwitcherProps, sideNavProps, topNavProps, }: UiShellContentProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
81
|
-
export { MemoizedUiShellContent as UiShellContent };
|
|
82
|
-
//# sourceMappingURL=UiShellContent.d.ts.map
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=uiShellContentTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uiShellContentTypes.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/uiShellContentTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,+CAAgD,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAChB,WAAW,EACX,mBAAmB,GAAG,oBAAoB,CAC3C,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;;;;;OAUG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B;;;;;;OAMG;IACH,uBAAuB,EAAE,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IACrE;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,kBAAkB,CAAC,EAAE;QACnB;;WAEG;QACH,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB;;WAEG;QACH,aAAa,CAAC,EAAE,YAAY,CAAC;QAC7B;;WAEG;QACH,aAAa,CAAC,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;QAChD;;WAEG;QACH,cAAc,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAClD;;WAEG;QACH,eAAe,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;KACrD,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2025-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
|
+
export declare const SIDE_NAV_VISIBILITY_TOGGLE_ICON_POSITION = "77px";
|
|
13
|
+
export declare const SIDE_NAV_WIDTH = "300px";
|
|
14
|
+
export declare const TOP_NAV_HEIGHT = "4.571428571428571rem";
|
|
15
|
+
export declare const UI_SHELL_BASE_Z_INDEX = 100;
|
|
16
|
+
export declare const UI_SHELL_OVERLAY_Z_INDEX = 200;
|
|
17
|
+
export declare const emptySideNavItems: never[];
|
|
18
|
+
//# sourceMappingURL=uiShellSharedConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uiShellSharedConstants.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/uiShellSharedConstants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,eAAO,MAAM,wCAAwC,SAAS,CAAC;AAE/D,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,eAAO,MAAM,cAAc,yBAAkB,CAAC;AAE9C,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,eAAO,MAAM,iBAAiB,SAA4C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2025-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
|
+
import { CSSProperties, RefObject } from "react";
|
|
13
|
+
import { UiShellContentProps } from "./uiShellContentTypes.js";
|
|
14
|
+
export declare const convertCamelCaseToKebabCase: (string: string) => string;
|
|
15
|
+
export declare const setStylesToMatchElement: ({ additionalStyles, appContainerElement, appContentReferenceElement, parentElement, }: {
|
|
16
|
+
additionalStyles: CSSProperties;
|
|
17
|
+
appContainerElement: HTMLElement;
|
|
18
|
+
appContentReferenceElement: HTMLElement;
|
|
19
|
+
parentElement: HTMLElement;
|
|
20
|
+
}) => void;
|
|
21
|
+
export type UseMatchAppElementToUiShellAppAreaProps = {
|
|
22
|
+
/**
|
|
23
|
+
* Padding around the app area. "comfortable" is designed for wider views whereas "compact" is designed for narrower views.
|
|
24
|
+
*/
|
|
25
|
+
paddingMode: "comfortable" | "compact" | "none";
|
|
26
|
+
/**
|
|
27
|
+
* Ref for the App Container in UI Shell. This should be the one inside the Shell, **not** the element we're going to align.
|
|
28
|
+
*/
|
|
29
|
+
uiShellAppAreaRef: RefObject<HTMLDivElement>;
|
|
30
|
+
/**
|
|
31
|
+
* Array of refs of items that indirectly resize the app content area such as "side nav" and "top nav".
|
|
32
|
+
*/
|
|
33
|
+
uiShellResizableRefs: Array<RefObject<HTMLDivElement>>;
|
|
34
|
+
} & Pick<UiShellContentProps, "appElement" | "appElementScrollingMode">;
|
|
35
|
+
export declare const useMatchAppElementToUiShellAppArea: ({ appElement, appElementScrollingMode, paddingMode, uiShellAppAreaRef, uiShellResizableRefs, }: UseMatchAppElementToUiShellAppAreaProps) => {
|
|
36
|
+
parentContainerRef: RefObject<HTMLDivElement>;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=useMatchAppElementToUiShellAppArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMatchAppElementToUiShellAppArea.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/useMatchAppElementToUiShellAppArea.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,eAAO,MAAM,2BAA2B,WAAY,MAAM,WACT,CAAC;AAElD,eAAO,MAAM,uBAAuB,0FAKjC;IACD,gBAAgB,EAAE,aAAa,CAAC;IAChC,mBAAmB,EAAE,WAAW,CAAC;IACjC,0BAA0B,EAAE,WAAW,CAAC;IACxC,aAAa,EAAE,WAAW,CAAC;CAC5B,SAqCA,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,WAAW,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC;IAChD;;OAEG;IACH,iBAAiB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAC7C;;OAEG;IACH,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;CACxD,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,yBAAyB,CAAC,CAAC;AAExE,eAAO,MAAM,kCAAkC,mGAM5C,uCAAuC;;CA8FzC,CAAC"}
|
|
@@ -11,6 +11,5 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const useScrollState: <ScrollableContentElement extends HTMLElement = HTMLDivElement>(scrollableContentElement?: ScrollableContentElement) => {
|
|
13
13
|
isContentScrolled: boolean;
|
|
14
|
-
scrollableContentRef: import("react").RefObject<ScrollableContentElement>;
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=useScrollState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollState.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/useScrollState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,eAAO,MAAM,cAAc,GACzB,wBAAwB,SAAS,WAAW,8CAEjB,wBAAwB
|
|
1
|
+
{"version":3,"file":"useScrollState.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/useScrollState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,eAAO,MAAM,cAAc,GACzB,wBAAwB,SAAS,WAAW,8CAEjB,wBAAwB;;CAsCpD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2025-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
|
+
export declare const uiShellBreakpoint: {
|
|
13
|
+
readonly comfortable: 800;
|
|
14
|
+
readonly compact: 600;
|
|
15
|
+
readonly constrained: 0;
|
|
16
|
+
};
|
|
17
|
+
export declare const useUiShellBreakpoints: () => keyof typeof uiShellBreakpoint | "none";
|
|
18
|
+
//# sourceMappingURL=useUiShellBreakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUiShellBreakpoints.d.ts","sourceRoot":"","sources":["../../../src/ui-shell/useUiShellBreakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,eAAO,MAAM,qBAAqB,QAC9B,MAAM,OAAO,iBAAiB,GAC9B,MA2BH,CAAC"}
|
|
@@ -9,12 +9,10 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type ReactRootElements = {
|
|
13
13
|
/**
|
|
14
|
-
* The element your React
|
|
14
|
+
* The element your root React component renders into.
|
|
15
15
|
* React has to render or portal somewhere, and this element can be used for that root element.
|
|
16
|
-
*
|
|
17
|
-
* In the case of a web component, there is no defined root element, so you have to define it yourself.
|
|
18
16
|
*/
|
|
19
17
|
appRootElement: HTMLDivElement;
|
|
20
18
|
/**
|
|
@@ -22,6 +20,10 @@ export declare const createReactRootElements: () => {
|
|
|
22
20
|
*
|
|
23
21
|
* Specifically when rendering in a web component, there is no `<head>`, so you have to create a spot for styles to render.
|
|
24
22
|
*/
|
|
23
|
+
stylesRootElement: HTMLDivElement | HTMLHeadElement;
|
|
24
|
+
};
|
|
25
|
+
export declare const createReactRootElements: () => {
|
|
26
|
+
appRootElement: HTMLDivElement;
|
|
25
27
|
stylesRootElement: HTMLDivElement;
|
|
26
28
|
};
|
|
27
29
|
//# sourceMappingURL=createReactRootElements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReactRootElements.d.ts","sourceRoot":"","sources":["../../../src/web-component/createReactRootElements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,
|
|
1
|
+
{"version":3,"file":"createReactRootElements.d.ts","sourceRoot":"","sources":["../../../src/web-component/createReactRootElements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;;;OAIG;IACH,iBAAiB,EAAE,cAAc,GAAG,eAAe,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;CAenC,CAAC"}
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ReactNode } from "react";
|
|
13
13
|
import type { Root } from "react-dom/client";
|
|
14
|
-
import {
|
|
15
|
-
export type ReactRootElements = ReturnType<typeof createReactRootElements>;
|
|
14
|
+
import { type ReactRootElements } from "./createReactRootElements.js";
|
|
16
15
|
export declare const reactWebComponentElementName = "odyssey-react-web-component";
|
|
17
16
|
export type GetReactComponentInWebComponent = (reactRootElements: ReactRootElements) => ReactNode;
|
|
18
17
|
declare const SsrFriendlyHtmlElementClass: {
|
|
@@ -45,18 +44,26 @@ export type RenderReactInWebComponentProps = {
|
|
|
45
44
|
* You will need to have rendered `<slot>` elements in your React component or `children` won't show up.
|
|
46
45
|
*/
|
|
47
46
|
webComponentChildren?: HTMLElement | HTMLElement[];
|
|
47
|
+
} & ({
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The React app renders in the web component, but the web component needs to be rendered in the document.
|
|
50
50
|
*
|
|
51
51
|
* This is the element the web component is rendered into.
|
|
52
52
|
*/
|
|
53
|
+
webComponentParentElement: HTMLElement;
|
|
54
|
+
webComponentRootElement?: never;
|
|
55
|
+
} | {
|
|
56
|
+
webComponentParentElement?: HTMLElement;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use `webComponentParentElement` instead.
|
|
59
|
+
*/
|
|
53
60
|
webComponentRootElement: HTMLElement;
|
|
54
|
-
};
|
|
61
|
+
});
|
|
55
62
|
/**
|
|
56
63
|
* Lets you render React apps or components in a Web Component.
|
|
57
64
|
*
|
|
58
65
|
* This is useful when global styles are causing conflicts with your React components.
|
|
59
66
|
*/
|
|
60
|
-
export declare const renderReactInWebComponent: ({ getReactComponent, webComponentChildren, webComponentRootElement, }: RenderReactInWebComponentProps) => ReactInWebComponentElement;
|
|
67
|
+
export declare const renderReactInWebComponent: ({ getReactComponent, webComponentChildren, webComponentParentElement, webComponentRootElement, }: RenderReactInWebComponentProps) => ReactInWebComponentElement;
|
|
61
68
|
export {};
|
|
62
69
|
//# sourceMappingURL=renderReactInWebComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,
|
|
1
|
+
{"version":3,"file":"renderReactInWebComponent.d.ts","sourceRoot":"","sources":["../../../src/web-component/renderReactInWebComponent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAE1E,MAAM,MAAM,+BAA+B,GAAG,CAC5C,iBAAiB,EAAE,iBAAiB,KACjC,SAAS,CAAC;AAEf,QAAA,MAAM,2BAA2B;;;CAG2B,CAAC;AAE7D,qBAAa,0BAA2B,SAAQ,2BAA2B;IACzE,iBAAiB,EAAE,+BAA+B,CAAC;IACnD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,gBAAgB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;gBAEpB,iBAAiB,EAAE,+BAA+B;IA4B9D,iBAAiB;IAMjB,oBAAoB;CAGrB;AAYD,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;;;;OAMG;IACH,iBAAiB,EAAE,+BAA+B,CAAC;IACnD;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAC;CACpD,GAAG,CACA;IACE;;;;OAIG;IACH,yBAAyB,EAAE,WAAW,CAAC;IACvC,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC,GACD;IACE,yBAAyB,CAAC,EAAE,WAAW,CAAC;IACxC;;OAEG;IACH,uBAAuB,EAAE,WAAW,CAAC;CACtC,CACJ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,qGAKnC,8BAA8B,+BAqBhC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@mui/system": "^5.16.14",
|
|
119
119
|
"@mui/utils": "^5.16.14",
|
|
120
120
|
"@mui/x-date-pickers": "^7.2.0",
|
|
121
|
-
"@okta/odyssey-design-tokens": "1.
|
|
121
|
+
"@okta/odyssey-design-tokens": "1.34.0",
|
|
122
122
|
"@types/luxon": "^3.4.2",
|
|
123
123
|
"date-fns": "^2.30.0",
|
|
124
124
|
"dom-accessibility-api": "^0.7.0",
|
|
@@ -136,8 +136,7 @@
|
|
|
136
136
|
"@babel/preset-env": "^7.26.0",
|
|
137
137
|
"@babel/preset-react": "^7.26.3",
|
|
138
138
|
"@babel/preset-typescript": "^7.26.0",
|
|
139
|
-
"@
|
|
140
|
-
"@okta/browserslist-config-odyssey": "1.32.4",
|
|
139
|
+
"@okta/browserslist-config-odyssey": "1.34.0",
|
|
141
140
|
"@okta/odyssey-icons": "workspace:*",
|
|
142
141
|
"@okta/odyssey-typescript": "workspace:*",
|
|
143
142
|
"@svgr/cli": "^7.0.0",
|
|
@@ -157,6 +156,7 @@
|
|
|
157
156
|
"babel-plugin-replace-import-extension": "^1.1.4",
|
|
158
157
|
"chokidar-cli": "^3.0.0",
|
|
159
158
|
"concurrently": "^8.2.2",
|
|
159
|
+
"happy-dom": "^17.1.9",
|
|
160
160
|
"jest-axe": "^5.0.1",
|
|
161
161
|
"properties": "1.2.1",
|
|
162
162
|
"react": "^18.3.1",
|
|
@@ -166,12 +166,12 @@
|
|
|
166
166
|
"tsd": "^0.31.2",
|
|
167
167
|
"tsx": "^4.7.3",
|
|
168
168
|
"typescript": "^5.6.3",
|
|
169
|
-
"vitest": "^
|
|
169
|
+
"vitest": "^3.0.7",
|
|
170
170
|
"yargs": "^17.7.2"
|
|
171
171
|
},
|
|
172
172
|
"peerDependencies": {
|
|
173
173
|
"react": "^18.3.1",
|
|
174
174
|
"react-dom": "^18.3.1"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "6d4e5829cb460ed369d9009ec805a18014683a50"
|
|
177
177
|
}
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.subComponentNames = exports.setStylesToMatchElement = exports.convertCamelCaseToKebabCase = exports.UiShellContent = void 0;
|
|
7
|
-
var _ScopedCssBaseline2 = _interopRequireDefault(require("@mui/material/ScopedCssBaseline"));
|
|
8
|
-
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _reactErrorBoundary = require("react-error-boundary");
|
|
11
|
-
var _index = require("./AppSwitcher/index.cjs");
|
|
12
|
-
var _index2 = require("./SideNav/index.cjs");
|
|
13
|
-
var _index3 = require("./TopNav/index.cjs");
|
|
14
|
-
var _OdysseyDesignTokensContext = require("../OdysseyDesignTokensContext.cjs");
|
|
15
|
-
var _useScrollState = require("./useScrollState.cjs");
|
|
16
|
-
var _UiShellProvider = require("./UiShellProvider.cjs");
|
|
17
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
/*!
|
|
20
|
-
* Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
21
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
22
|
-
*
|
|
23
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
24
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
25
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
26
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
-
*
|
|
28
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
const fullHeightStyles = {
|
|
32
|
-
height: "100%"
|
|
33
|
-
};
|
|
34
|
-
const emptySideNavItems = [];
|
|
35
|
-
const StyledAppContainer = (0, _styled.default)("div", {
|
|
36
|
-
shouldForwardProp: prop => prop !== "appBackgroundColor" && prop !== "odysseyDesignTokens"
|
|
37
|
-
})(({
|
|
38
|
-
appBackgroundColor
|
|
39
|
-
}) => ({
|
|
40
|
-
gridArea: "app-content",
|
|
41
|
-
backgroundColor: appBackgroundColor
|
|
42
|
-
}));
|
|
43
|
-
const StyledBannersContainer = (0, _styled.default)("div")({
|
|
44
|
-
gridArea: "banners"
|
|
45
|
-
});
|
|
46
|
-
const StyledAppSwitcherContainer = (0, _styled.default)("div")({
|
|
47
|
-
gridArea: "app-switcher"
|
|
48
|
-
});
|
|
49
|
-
const StyledSideNavContainer = (0, _styled.default)("div")({
|
|
50
|
-
gridArea: "side-nav"
|
|
51
|
-
});
|
|
52
|
-
const StyledShellContainer = (0, _styled.default)("div", {
|
|
53
|
-
shouldForwardProp: prop => prop !== "odysseyDesignTokens"
|
|
54
|
-
})(({
|
|
55
|
-
odysseyDesignTokens
|
|
56
|
-
}) => ({
|
|
57
|
-
backgroundColor: odysseyDesignTokens.HueNeutral50,
|
|
58
|
-
display: "grid",
|
|
59
|
-
gridGap: 0,
|
|
60
|
-
gridTemplateAreas: `
|
|
61
|
-
"banners banners banners"
|
|
62
|
-
"app-switcher side-nav top-nav"
|
|
63
|
-
"app-switcher side-nav app-content"
|
|
64
|
-
`,
|
|
65
|
-
gridTemplateColumns: "auto auto 1fr",
|
|
66
|
-
gridTemplateRows: "auto auto 1fr",
|
|
67
|
-
height: "100vh",
|
|
68
|
-
width: "100vw"
|
|
69
|
-
}));
|
|
70
|
-
const StyledTopNavContainer = (0, _styled.default)("div")({
|
|
71
|
-
gridArea: "top-nav"
|
|
72
|
-
});
|
|
73
|
-
const subComponentNames = exports.subComponentNames = ["TopNav", "SideNav", "AppSwitcher"];
|
|
74
|
-
const convertCamelCaseToKebabCase = string => string.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
75
|
-
exports.convertCamelCaseToKebabCase = convertCamelCaseToKebabCase;
|
|
76
|
-
const setStylesToMatchElement = ({
|
|
77
|
-
additionalStyles,
|
|
78
|
-
appContainerElement,
|
|
79
|
-
appContentReferenceElement
|
|
80
|
-
}) => {
|
|
81
|
-
const boundingRect = appContentReferenceElement.getBoundingClientRect();
|
|
82
|
-
appContainerElement.style.setProperty("position", "absolute");
|
|
83
|
-
appContainerElement.style.setProperty("top", `${boundingRect.y}px`);
|
|
84
|
-
appContainerElement.style.setProperty("left", `${boundingRect.x}px`);
|
|
85
|
-
appContainerElement.style.setProperty("width", `${boundingRect.width}px`);
|
|
86
|
-
appContainerElement.style.setProperty("height", `${boundingRect.height}px`);
|
|
87
|
-
Object.entries(additionalStyles).forEach(([cssPropertyName, cssPropertyValue]) => {
|
|
88
|
-
appContainerElement.style.setProperty(convertCamelCaseToKebabCase(cssPropertyName), String(cssPropertyValue));
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
exports.setStylesToMatchElement = setStylesToMatchElement;
|
|
92
|
-
const UiShellContent = ({
|
|
93
|
-
appContainerElement,
|
|
94
|
-
hasStandardAppContentPadding = true,
|
|
95
|
-
appContainerScrollingMode = "vertical",
|
|
96
|
-
initialVisibleSections = ["TopNav", "SideNav", "AppSwitcher"],
|
|
97
|
-
onError = console.error,
|
|
98
|
-
optionalComponents,
|
|
99
|
-
appSwitcherProps,
|
|
100
|
-
sideNavProps,
|
|
101
|
-
topNavProps
|
|
102
|
-
}) => {
|
|
103
|
-
const odysseyDesignTokens = (0, _OdysseyDesignTokensContext.useOdysseyDesignTokens)();
|
|
104
|
-
const {
|
|
105
|
-
isContentScrolled,
|
|
106
|
-
scrollableContentRef: appContainerRef
|
|
107
|
-
} = (0, _useScrollState.useScrollState)(appContainerElement);
|
|
108
|
-
const sideNavContainerRef = (0, _react.useRef)(null);
|
|
109
|
-
const topNavContainerRef = (0, _react.useRef)(null);
|
|
110
|
-
const uiShellContext = (0, _UiShellProvider.useUiShellContext)();
|
|
111
|
-
const appContainerElementStyles = (0, _react.useMemo)(() => ({
|
|
112
|
-
...(hasStandardAppContentPadding ? {
|
|
113
|
-
paddingBlock: odysseyDesignTokens.Spacing5 ?? null,
|
|
114
|
-
paddingInline: odysseyDesignTokens.Spacing8 ?? null
|
|
115
|
-
} : {}),
|
|
116
|
-
...(appContainerScrollingMode === "horizontal" || appContainerScrollingMode === "both" ? {
|
|
117
|
-
overflowX: "auto"
|
|
118
|
-
} : {
|
|
119
|
-
overflowX: "hidden"
|
|
120
|
-
}),
|
|
121
|
-
...(appContainerScrollingMode === "vertical" || appContainerScrollingMode === "both" ? {
|
|
122
|
-
overflowY: "auto"
|
|
123
|
-
} : {
|
|
124
|
-
overflowY: "hidden"
|
|
125
|
-
})
|
|
126
|
-
}), [hasStandardAppContentPadding, appContainerScrollingMode, odysseyDesignTokens]);
|
|
127
|
-
(0, _react.useEffect)(() => {
|
|
128
|
-
if (appContainerRef.current && appContainerElement) {
|
|
129
|
-
let animationFrameId;
|
|
130
|
-
const updateStyles = () => {
|
|
131
|
-
cancelAnimationFrame(animationFrameId);
|
|
132
|
-
animationFrameId = requestAnimationFrame(() => {
|
|
133
|
-
if (appContainerRef.current) {
|
|
134
|
-
setStylesToMatchElement({
|
|
135
|
-
additionalStyles: appContainerElementStyles,
|
|
136
|
-
appContentReferenceElement: appContainerRef.current,
|
|
137
|
-
appContainerElement
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
const sideNavElement = sideNavContainerRef.current;
|
|
143
|
-
sideNavElement?.addEventListener("transitionend", updateStyles);
|
|
144
|
-
const observer = new ResizeObserver(updateStyles);
|
|
145
|
-
observer.observe(appContainerRef.current);
|
|
146
|
-
if (sideNavElement) {
|
|
147
|
-
observer.observe(sideNavElement);
|
|
148
|
-
}
|
|
149
|
-
if (topNavContainerRef.current) {
|
|
150
|
-
observer.observe(topNavContainerRef.current);
|
|
151
|
-
}
|
|
152
|
-
updateStyles();
|
|
153
|
-
return () => {
|
|
154
|
-
observer.disconnect();
|
|
155
|
-
sideNavElement?.removeEventListener("transitionend", updateStyles);
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
return () => {};
|
|
159
|
-
}, [appContainerElement, appContainerElementStyles, appContainerRef]);
|
|
160
|
-
return (0, _jsxRuntime.jsxs)(StyledShellContainer, {
|
|
161
|
-
odysseyDesignTokens: odysseyDesignTokens,
|
|
162
|
-
children: [(0, _jsxRuntime.jsx)(StyledBannersContainer, {
|
|
163
|
-
children: optionalComponents?.banners
|
|
164
|
-
}), (0, _jsxRuntime.jsx)(StyledAppSwitcherContainer, {
|
|
165
|
-
children: (0, _jsxRuntime.jsxs)(_ScopedCssBaseline2.default, {
|
|
166
|
-
sx: fullHeightStyles,
|
|
167
|
-
children: [initialVisibleSections?.includes("AppSwitcher") && !appSwitcherProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
168
|
-
fallback: null,
|
|
169
|
-
onError: onError,
|
|
170
|
-
children: (0, _jsxRuntime.jsx)(_index.AppSwitcher, {
|
|
171
|
-
isLoading: true,
|
|
172
|
-
appIcons: [],
|
|
173
|
-
selectedAppName: ""
|
|
174
|
-
})
|
|
175
|
-
}), appSwitcherProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
176
|
-
fallback: null,
|
|
177
|
-
onError: onError,
|
|
178
|
-
children: (0, _jsxRuntime.jsx)(_index.AppSwitcher, {
|
|
179
|
-
...appSwitcherProps
|
|
180
|
-
})
|
|
181
|
-
})]
|
|
182
|
-
})
|
|
183
|
-
}), (0, _jsxRuntime.jsx)(StyledSideNavContainer, {
|
|
184
|
-
ref: sideNavContainerRef,
|
|
185
|
-
children: (0, _jsxRuntime.jsxs)(_ScopedCssBaseline2.default, {
|
|
186
|
-
sx: fullHeightStyles,
|
|
187
|
-
children: [initialVisibleSections?.includes("SideNav") && sideNavProps === undefined && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
188
|
-
fallback: null,
|
|
189
|
-
onError: onError,
|
|
190
|
-
children: (0, _jsxRuntime.jsx)(_index2.SideNav, {
|
|
191
|
-
isLoading: true,
|
|
192
|
-
appName: "",
|
|
193
|
-
sideNavItems: emptySideNavItems
|
|
194
|
-
})
|
|
195
|
-
}), sideNavProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
196
|
-
fallback: null,
|
|
197
|
-
onError: onError,
|
|
198
|
-
children: (0, _jsxRuntime.jsx)(_index2.SideNav, {
|
|
199
|
-
...sideNavProps,
|
|
200
|
-
...(sideNavProps.hasCustomFooter && optionalComponents?.sideNavFooter ? {
|
|
201
|
-
footerComponent: optionalComponents.sideNavFooter,
|
|
202
|
-
footerItems: undefined,
|
|
203
|
-
hasCustomFooter: sideNavProps.hasCustomFooter
|
|
204
|
-
} : {
|
|
205
|
-
footerItems: sideNavProps.footerItems,
|
|
206
|
-
hasCustomFooter: false
|
|
207
|
-
})
|
|
208
|
-
})
|
|
209
|
-
})]
|
|
210
|
-
})
|
|
211
|
-
}), (0, _jsxRuntime.jsx)(StyledTopNavContainer, {
|
|
212
|
-
ref: topNavContainerRef,
|
|
213
|
-
children: (0, _jsxRuntime.jsxs)(_ScopedCssBaseline2.default, {
|
|
214
|
-
sx: fullHeightStyles,
|
|
215
|
-
children: [initialVisibleSections?.includes("TopNav") && topNavProps === undefined && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
216
|
-
fallback: null,
|
|
217
|
-
onError: onError,
|
|
218
|
-
children: (0, _jsxRuntime.jsx)(_index3.TopNav, {
|
|
219
|
-
leftSideComponent: optionalComponents?.topNavLeftSide,
|
|
220
|
-
rightSideComponent: optionalComponents?.topNavRightSide
|
|
221
|
-
})
|
|
222
|
-
}), topNavProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
223
|
-
fallback: null,
|
|
224
|
-
onError: onError,
|
|
225
|
-
children: (0, _jsxRuntime.jsx)(_index3.TopNav, {
|
|
226
|
-
...topNavProps,
|
|
227
|
-
isScrolled: isContentScrolled,
|
|
228
|
-
leftSideComponent: optionalComponents?.topNavLeftSide,
|
|
229
|
-
rightSideComponent: optionalComponents?.topNavRightSide
|
|
230
|
-
})
|
|
231
|
-
})]
|
|
232
|
-
})
|
|
233
|
-
}), (0, _jsxRuntime.jsx)(StyledAppContainer, {
|
|
234
|
-
appBackgroundColor: uiShellContext?.appBackgroundColor,
|
|
235
|
-
tabIndex: 0,
|
|
236
|
-
ref: appContainerRef
|
|
237
|
-
})]
|
|
238
|
-
});
|
|
239
|
-
};
|
|
240
|
-
const MemoizedUiShellContent = exports.UiShellContent = (0, _react.memo)(UiShellContent);
|
|
241
|
-
MemoizedUiShellContent.displayName = "UiShellContent";
|
|
242
|
-
//# sourceMappingURL=UiShellContent.cjs.map
|