@okta/odyssey-react-mui 1.64.0 → 1.65.1
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/README.md +5 -5
- package/dist/cjs/Accordion.cjs +1 -1
- package/dist/cjs/Autocomplete.cjs +1 -1
- package/dist/cjs/Badge.cjs +1 -1
- package/dist/cjs/Banner.cjs +1 -1
- package/dist/cjs/Box.cjs +1 -1
- package/dist/cjs/Breadcrumbs.cjs +1 -1
- package/dist/cjs/Buttons/BaseButton.cjs +1 -1
- package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
- package/dist/cjs/Buttons/Button.cjs +1 -1
- package/dist/cjs/Buttons/MenuButton.cjs +1 -1
- package/dist/cjs/Buttons/MenuItem.cjs +1 -1
- package/dist/cjs/Callout.cjs +1 -6
- package/dist/cjs/Callout.cjs.map +1 -1
- package/dist/cjs/Card.cjs +1 -1
- package/dist/cjs/CircularProgress.cjs +1 -1
- package/dist/cjs/ConditionalWrapper.cjs +1 -1
- package/dist/cjs/DataTable/DataTable.cjs +1 -1
- package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
- package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
- package/dist/cjs/DatePickers/DateField.cjs +1 -1
- package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
- package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
- package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
- package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
- package/dist/cjs/Dialog.cjs +8 -1
- package/dist/cjs/Dialog.cjs.map +1 -1
- package/dist/cjs/Drawer.cjs +4 -1
- package/dist/cjs/Drawer.cjs.map +1 -1
- package/dist/cjs/EmptyState.cjs +1 -1
- package/dist/cjs/ErrorMessageList.cjs +1 -1
- package/dist/cjs/Field.cjs +1 -1
- package/dist/cjs/FieldError.cjs +1 -1
- package/dist/cjs/FieldHint.cjs +1 -1
- package/dist/cjs/FieldLabel.cjs +1 -1
- package/dist/cjs/Fields/Checkbox.cjs +1 -1
- package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
- package/dist/cjs/Fields/Radio.cjs +1 -1
- package/dist/cjs/Fields/RadioGroup.cjs +1 -1
- package/dist/cjs/Fieldset.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
- package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
- package/dist/cjs/Form.cjs +1 -1
- package/dist/cjs/FullScreenOverlay.cjs +1 -1
- package/dist/cjs/FullScreenOverlayContext.cjs +2 -1
- package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -1
- package/dist/cjs/HintLink.cjs +1 -1
- package/dist/cjs/IconWithTooltip.cjs +1 -1
- package/dist/cjs/Link.cjs +1 -1
- package/dist/cjs/MuiPropsChild.cjs +1 -1
- package/dist/cjs/NativeSelect.cjs +1 -1
- package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
- package/dist/cjs/OdysseyProvider.cjs +1 -1
- package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
- package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
- package/dist/cjs/Pagination/Pagination.cjs +1 -1
- package/dist/cjs/PasswordField.cjs +4 -3
- package/dist/cjs/PasswordField.cjs.map +1 -1
- package/dist/cjs/ScreenReaderText.cjs +1 -1
- package/dist/cjs/SearchField.cjs +1 -1
- package/dist/cjs/Select.cjs +1 -1
- package/dist/cjs/Stack.cjs +1 -1
- package/dist/cjs/Status.cjs +1 -1
- package/dist/cjs/Surface.cjs +1 -1
- package/dist/cjs/Switch.cjs +2 -2
- package/dist/cjs/Tabs.cjs +1 -1
- package/dist/cjs/Tag.cjs +1 -1
- package/dist/cjs/TagList.cjs +1 -1
- package/dist/cjs/TextField.cjs +1 -1
- package/dist/cjs/Toast.cjs +1 -1
- package/dist/cjs/ToastStack.cjs +29 -10
- package/dist/cjs/ToastStack.cjs.map +1 -1
- package/dist/cjs/Tooltip.cjs +1 -1
- package/dist/cjs/Typography.cjs +12 -12
- package/dist/cjs/icons.generated/Add.cjs +1 -1
- package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
- package/dist/cjs/icons.generated/Apps.cjs +1 -1
- package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
- package/dist/cjs/icons.generated/Bug.cjs +1 -1
- package/dist/cjs/icons.generated/Calendar.cjs +1 -1
- package/dist/cjs/icons.generated/Call.cjs +1 -1
- package/dist/cjs/icons.generated/Chat.cjs +1 -1
- package/dist/cjs/icons.generated/Check.cjs +1 -1
- package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
- package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
- package/dist/cjs/icons.generated/Clock.cjs +1 -1
- package/dist/cjs/icons.generated/Close.cjs +1 -1
- package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
- package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
- package/dist/cjs/icons.generated/Copy.cjs +1 -1
- package/dist/cjs/icons.generated/Customizations.cjs +1 -1
- package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
- package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Delete.cjs +1 -1
- package/dist/cjs/icons.generated/Deny.cjs +1 -1
- package/dist/cjs/icons.generated/Devices.cjs +1 -1
- package/dist/cjs/icons.generated/Directory.cjs +1 -1
- package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
- package/dist/cjs/icons.generated/Documentation.cjs +1 -1
- package/dist/cjs/icons.generated/Download.cjs +1 -1
- package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
- package/dist/cjs/icons.generated/Edit.cjs +1 -1
- package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
- package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
- package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
- package/dist/cjs/icons.generated/Filter.cjs +1 -1
- package/dist/cjs/icons.generated/Folder.cjs +1 -1
- package/dist/cjs/icons.generated/Globe.cjs +1 -1
- package/dist/cjs/icons.generated/Grid.cjs +1 -1
- package/dist/cjs/icons.generated/Group.cjs +1 -1
- package/dist/cjs/icons.generated/Happy.cjs +1 -1
- package/dist/cjs/icons.generated/Hide.cjs +1 -1
- package/dist/cjs/icons.generated/Home.cjs +1 -1
- package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
- package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
- package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Link.cjs +1 -1
- package/dist/cjs/icons.generated/List.cjs +1 -1
- package/dist/cjs/icons.generated/Lock.cjs +1 -1
- package/dist/cjs/icons.generated/Menu.cjs +1 -1
- package/dist/cjs/icons.generated/More.cjs +1 -1
- package/dist/cjs/icons.generated/Neutral.cjs +1 -1
- package/dist/cjs/icons.generated/Notification.cjs +1 -1
- package/dist/cjs/icons.generated/Pause.cjs +1 -1
- package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
- package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Refresh.cjs +1 -1
- package/dist/cjs/icons.generated/Reports.cjs +1 -1
- package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/Reset.cjs +1 -1
- package/dist/cjs/icons.generated/Resume.cjs +1 -1
- package/dist/cjs/icons.generated/Sad.cjs +1 -1
- package/dist/cjs/icons.generated/Same.cjs +1 -1
- package/dist/cjs/icons.generated/Search.cjs +1 -1
- package/dist/cjs/icons.generated/Security.cjs +1 -1
- package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
- package/dist/cjs/icons.generated/Send.cjs +1 -1
- package/dist/cjs/icons.generated/Server.cjs +1 -1
- package/dist/cjs/icons.generated/Settings.cjs +1 -1
- package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/Show.cjs +1 -1
- package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
- package/dist/cjs/icons.generated/Subtract.cjs +1 -1
- package/dist/cjs/icons.generated/Sync.cjs +1 -1
- package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
- package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
- package/dist/cjs/icons.generated/Unlock.cjs +1 -1
- package/dist/cjs/icons.generated/Upload.cjs +1 -1
- package/dist/cjs/icons.generated/User.cjs +1 -1
- package/dist/cjs/icons.generated/Video.cjs +1 -1
- package/dist/cjs/icons.generated/Warning.cjs +1 -1
- package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Workflows.cjs +1 -1
- package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
- package/dist/cjs/index.cjs +48 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/labs/AppTile.cjs +1 -1
- package/dist/cjs/labs/DataFilters.cjs +21 -13
- package/dist/cjs/labs/DataFilters.cjs.map +1 -1
- package/dist/cjs/labs/DataTable.cjs +1 -1
- package/dist/cjs/labs/DataTablePagination.cjs +1 -1
- package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
- package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
- package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
- package/dist/cjs/labs/DataView/DataView.cjs +5 -3
- package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
- package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
- package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
- package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
- package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
- package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
- package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
- package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
- package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
- package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
- package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
- package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
- package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
- package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
- package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
- package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
- package/dist/cjs/labs/PaginatedTable.cjs +1 -1
- package/dist/cjs/labs/StaticTable.cjs +1 -1
- package/dist/cjs/labs/UserProfile.cjs +1 -1
- package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
- package/dist/cjs/logos.generated/Duo.cjs +1 -1
- package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
- package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
- package/dist/cjs/logos.generated/Persona.cjs +1 -1
- package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
- package/dist/cjs/logos.generated/Yubikey.cjs +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 +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.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 +11 -10
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +2 -1
- 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 +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +2 -1
- 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_ok_PL.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.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 +2 -1
- 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 +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +2 -1
- 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/test-utils/renderWithOdysseyProvider.cjs +2 -3
- package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +1 -1
- package/dist/cjs/test-utils/viewportTestSizes.cjs +21 -0
- package/dist/cjs/test-utils/viewportTestSizes.cjs.map +1 -0
- package/dist/cjs/theme/components/Dialog.cjs +6 -2
- package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
- package/dist/cjs/theme/components/Form.cjs +1 -1
- package/dist/cjs/theme/components/Form.cjs.map +1 -1
- package/dist/cjs/theme/useMediaQuery.cjs +34 -13
- package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
- package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +19 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs +22 -12
- package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +74 -18
- package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +3 -2
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs +45 -23
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs +2 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs +14 -1
- package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
- package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +1 -1
- package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
- package/dist/cjs/ui-shell/index.cjs +0 -12
- package/dist/cjs/ui-shell/index.cjs.map +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/cjs/web-component/renderReactInWebComponent.cjs +29 -62
- package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
- package/dist/esm/Accordion.js +1 -1
- package/dist/esm/Autocomplete.js +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Banner.js +1 -1
- package/dist/esm/Box.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/Buttons/BaseButton.js +1 -1
- package/dist/esm/Buttons/BaseMenuButton.js +1 -1
- package/dist/esm/Buttons/Button.js +1 -1
- package/dist/esm/Buttons/MenuButton.js +1 -1
- package/dist/esm/Buttons/MenuItem.js +1 -1
- package/dist/esm/Callout.js +1 -6
- package/dist/esm/Callout.js.map +1 -1
- package/dist/esm/Card.js +1 -1
- package/dist/esm/CircularProgress.js +1 -1
- package/dist/esm/ConditionalWrapper.js +1 -1
- package/dist/esm/DataTable/DataTable.js +1 -1
- package/dist/esm/DataTable/DataTableRowActions.js +1 -1
- package/dist/esm/DataTable/DataTableSettings.js +1 -1
- package/dist/esm/DatePickers/DateField.js +1 -1
- package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
- package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
- package/dist/esm/DatePickers/DatePicker.js +1 -1
- package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
- package/dist/esm/Dialog.js +8 -1
- package/dist/esm/Dialog.js.map +1 -1
- package/dist/esm/Drawer.js +4 -1
- package/dist/esm/Drawer.js.map +1 -1
- package/dist/esm/EmptyState.js +1 -1
- package/dist/esm/ErrorMessageList.js +1 -1
- package/dist/esm/Field.js +1 -1
- package/dist/esm/FieldError.js +1 -1
- package/dist/esm/FieldHint.js +1 -1
- package/dist/esm/FieldLabel.js +1 -1
- package/dist/esm/Fields/Checkbox.js +1 -1
- package/dist/esm/Fields/CheckboxGroup.js +1 -1
- package/dist/esm/Fields/Radio.js +1 -1
- package/dist/esm/Fields/RadioGroup.js +1 -1
- package/dist/esm/Fieldset.js +1 -1
- package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
- package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
- package/dist/esm/FileUploader/FileUploader.js +1 -1
- package/dist/esm/Form.js +1 -1
- package/dist/esm/FullScreenOverlay.js +1 -1
- package/dist/esm/FullScreenOverlayContext.js +2 -1
- package/dist/esm/FullScreenOverlayContext.js.map +1 -1
- package/dist/esm/HintLink.js +1 -1
- package/dist/esm/IconWithTooltip.js +1 -1
- package/dist/esm/Link.js +1 -1
- package/dist/esm/MuiPropsChild.js +1 -1
- package/dist/esm/NativeSelect.js +1 -1
- package/dist/esm/OdysseyCacheProvider.js +1 -1
- package/dist/esm/OdysseyProvider.js +1 -1
- package/dist/esm/OdysseyThemeProvider.js +1 -1
- package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
- package/dist/esm/Pagination/Pagination.js +1 -1
- package/dist/esm/PasswordField.js +4 -3
- package/dist/esm/PasswordField.js.map +1 -1
- package/dist/esm/ScreenReaderText.js +1 -1
- package/dist/esm/SearchField.js +1 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/Stack.js +1 -1
- package/dist/esm/Status.js +1 -1
- package/dist/esm/Surface.js +1 -1
- package/dist/esm/Switch.js +2 -2
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TagList.js +1 -1
- package/dist/esm/TextField.js +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/ToastStack.js +28 -9
- package/dist/esm/ToastStack.js.map +1 -1
- package/dist/esm/Tooltip.js +1 -1
- package/dist/esm/Typography.js +12 -12
- package/dist/esm/icons.generated/Add.js +1 -1
- package/dist/esm/icons.generated/AddCircle.js +1 -1
- package/dist/esm/icons.generated/Apps.js +1 -1
- package/dist/esm/icons.generated/AppsSelected.js +1 -1
- package/dist/esm/icons.generated/ArrowBottom.js +1 -1
- package/dist/esm/icons.generated/ArrowDown.js +1 -1
- package/dist/esm/icons.generated/ArrowLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
- package/dist/esm/icons.generated/ArrowRight.js +1 -1
- package/dist/esm/icons.generated/ArrowTop.js +1 -1
- package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
- package/dist/esm/icons.generated/ArrowUp.js +1 -1
- package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
- package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
- package/dist/esm/icons.generated/Bug.js +1 -1
- package/dist/esm/icons.generated/Calendar.js +1 -1
- package/dist/esm/icons.generated/Call.js +1 -1
- package/dist/esm/icons.generated/Chat.js +1 -1
- package/dist/esm/icons.generated/Check.js +1 -1
- package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
- package/dist/esm/icons.generated/ChevronDown.js +1 -1
- package/dist/esm/icons.generated/ChevronLeft.js +1 -1
- package/dist/esm/icons.generated/ChevronRight.js +1 -1
- package/dist/esm/icons.generated/ChevronUp.js +1 -1
- package/dist/esm/icons.generated/Clock.js +1 -1
- package/dist/esm/icons.generated/Close.js +1 -1
- package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
- package/dist/esm/icons.generated/CollapseLeft.js +1 -1
- package/dist/esm/icons.generated/CollapseRight.js +1 -1
- package/dist/esm/icons.generated/Copy.js +1 -1
- package/dist/esm/icons.generated/Customizations.js +1 -1
- package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
- package/dist/esm/icons.generated/DangerDiamond.js +1 -1
- package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
- package/dist/esm/icons.generated/Delete.js +1 -1
- package/dist/esm/icons.generated/Deny.js +1 -1
- package/dist/esm/icons.generated/Devices.js +1 -1
- package/dist/esm/icons.generated/Directory.js +1 -1
- package/dist/esm/icons.generated/DirectorySelected.js +1 -1
- package/dist/esm/icons.generated/Documentation.js +1 -1
- package/dist/esm/icons.generated/Download.js +1 -1
- package/dist/esm/icons.generated/DragIndicator.js +1 -1
- package/dist/esm/icons.generated/Edit.js +1 -1
- package/dist/esm/icons.generated/ExpandLeft.js +1 -1
- package/dist/esm/icons.generated/ExpandRight.js +1 -1
- package/dist/esm/icons.generated/ExternalLink.js +1 -1
- package/dist/esm/icons.generated/Filter.js +1 -1
- package/dist/esm/icons.generated/Folder.js +1 -1
- package/dist/esm/icons.generated/Globe.js +1 -1
- package/dist/esm/icons.generated/Grid.js +1 -1
- package/dist/esm/icons.generated/Group.js +1 -1
- package/dist/esm/icons.generated/Happy.js +1 -1
- package/dist/esm/icons.generated/Hide.js +1 -1
- package/dist/esm/icons.generated/Home.js +1 -1
- package/dist/esm/icons.generated/HomeSelected.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
- package/dist/esm/icons.generated/InformationCircle.js +1 -1
- package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
- package/dist/esm/icons.generated/Link.js +1 -1
- package/dist/esm/icons.generated/List.js +1 -1
- package/dist/esm/icons.generated/Lock.js +1 -1
- package/dist/esm/icons.generated/Menu.js +1 -1
- package/dist/esm/icons.generated/More.js +1 -1
- package/dist/esm/icons.generated/Neutral.js +1 -1
- package/dist/esm/icons.generated/Notification.js +1 -1
- package/dist/esm/icons.generated/Pause.js +1 -1
- package/dist/esm/icons.generated/QuestionCircle.js +1 -1
- package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
- package/dist/esm/icons.generated/Refresh.js +1 -1
- package/dist/esm/icons.generated/Reports.js +1 -1
- package/dist/esm/icons.generated/ReportsSelected.js +1 -1
- package/dist/esm/icons.generated/Reset.js +1 -1
- package/dist/esm/icons.generated/Resume.js +1 -1
- package/dist/esm/icons.generated/Sad.js +1 -1
- package/dist/esm/icons.generated/Same.js +1 -1
- package/dist/esm/icons.generated/Search.js +1 -1
- package/dist/esm/icons.generated/Security.js +1 -1
- package/dist/esm/icons.generated/SecuritySelected.js +1 -1
- package/dist/esm/icons.generated/Send.js +1 -1
- package/dist/esm/icons.generated/Server.js +1 -1
- package/dist/esm/icons.generated/Settings.js +1 -1
- package/dist/esm/icons.generated/SettingsSelected.js +1 -1
- package/dist/esm/icons.generated/Show.js +1 -1
- package/dist/esm/icons.generated/Sparkle.js +1 -1
- package/dist/esm/icons.generated/Subtract.js +1 -1
- package/dist/esm/icons.generated/Sync.js +1 -1
- package/dist/esm/icons.generated/ThumbsDown.js +1 -1
- package/dist/esm/icons.generated/ThumbsUp.js +1 -1
- package/dist/esm/icons.generated/Unlock.js +1 -1
- package/dist/esm/icons.generated/Upload.js +1 -1
- package/dist/esm/icons.generated/User.js +1 -1
- package/dist/esm/icons.generated/Video.js +1 -1
- package/dist/esm/icons.generated/Warning.js +1 -1
- package/dist/esm/icons.generated/WarningFilled.js +1 -1
- package/dist/esm/icons.generated/Workflows.js +1 -1
- package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/labs/AppTile.js +1 -1
- package/dist/esm/labs/DataFilters.js +21 -13
- package/dist/esm/labs/DataFilters.js.map +1 -1
- package/dist/esm/labs/DataTable.js +1 -1
- package/dist/esm/labs/DataTablePagination.js +1 -1
- package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
- package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
- package/dist/esm/labs/DataView/DataCard.js +1 -1
- package/dist/esm/labs/DataView/DataTable.js +1 -1
- package/dist/esm/labs/DataView/DataView.js +5 -3
- package/dist/esm/labs/DataView/DataView.js.map +1 -1
- package/dist/esm/labs/DataView/DetailPanel.js +1 -1
- package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
- package/dist/esm/labs/DataView/RowActions.js +1 -1
- package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
- package/dist/esm/labs/DataView/TableSettings.js +1 -1
- package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
- package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
- package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
- package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
- package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
- package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
- package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
- package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
- package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
- package/dist/esm/labs/PageTemplate/Layout.js +1 -1
- package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
- package/dist/esm/labs/PaginatedTable.js +1 -1
- package/dist/esm/labs/StaticTable.js +1 -1
- package/dist/esm/labs/UserProfile.js +1 -1
- package/dist/esm/labs/UserProfileMenuButton.js +1 -1
- package/dist/esm/logos.generated/Duo.js +1 -1
- package/dist/esm/logos.generated/GoogleAuth.js +1 -1
- package/dist/esm/logos.generated/OktaVerify.js +1 -1
- package/dist/esm/logos.generated/Persona.js +1 -1
- package/dist/esm/logos.generated/SymantecVip.js +1 -1
- package/dist/esm/logos.generated/Yubikey.js +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 +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_eu.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 +11 -10
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js +2 -1
- 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 +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js +2 -1
- 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_ok_PL.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.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 +2 -1
- 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 +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js +2 -1
- 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/test-utils/renderWithOdysseyProvider.js +2 -3
- package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +1 -1
- package/dist/esm/test-utils/viewportTestSizes.js +17 -0
- package/dist/esm/test-utils/viewportTestSizes.js.map +1 -0
- package/dist/esm/theme/components/Dialog.js +6 -2
- package/dist/esm/theme/components/Dialog.js.map +1 -1
- package/dist/esm/theme/components/Form.js +1 -1
- package/dist/esm/theme/components/Form.js.map +1 -1
- package/dist/esm/theme/useMediaQuery.js +32 -10
- package/dist/esm/theme/useMediaQuery.js.map +1 -1
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
- package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
- package/dist/esm/ui-shell/NarrowUiShellContent.js +20 -2
- package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNav.js +22 -12
- package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +76 -20
- package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +3 -2
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
- package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js +45 -23
- package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js +2 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js +12 -1
- package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
- package/dist/esm/ui-shell/SkipToContent.js +1 -1
- package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
- package/dist/esm/ui-shell/UiShell.js +1 -1
- package/dist/esm/ui-shell/UiShellLogo.js +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
- package/dist/esm/ui-shell/index.js +0 -1
- package/dist/esm/ui-shell/index.js.map +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/esm/web-component/renderReactInWebComponent.js +18 -28
- package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Callout.d.ts.map +1 -1
- package/dist/types/Dialog.d.ts.map +1 -1
- package/dist/types/Drawer.d.ts.map +1 -1
- package/dist/types/FullScreenOverlayContext.d.ts +1 -0
- package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
- package/dist/types/PasswordField.d.ts +20 -0
- package/dist/types/PasswordField.d.ts.map +1 -1
- package/dist/types/ToastStack.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.d.ts +2 -0
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts +50 -19
- package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/labs/DataFilters.d.ts.map +1 -1
- package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
- package/dist/types/labs/DataView/componentTypes.d.ts +7 -0
- package/dist/types/labs/DataView/componentTypes.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 +2 -1
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_eu.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 +11 -10
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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_ok_PL.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ok_SK.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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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/test-utils/renderWithOdysseyProvider.d.ts +14 -1
- package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +1 -1
- package/dist/types/test-utils/viewportTestSizes.d.ts +16 -0
- package/dist/types/test-utils/viewportTestSizes.d.ts.map +1 -0
- package/dist/types/theme/components/Dialog.d.ts.map +1 -1
- package/dist/types/theme/components/Form.d.ts.map +1 -1
- package/dist/types/theme/useMediaQuery.d.ts +63 -0
- package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts +8 -8
- package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +6 -0
- package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts +1 -1
- package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts +5 -3
- package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +8 -1
- package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
- package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts +5 -0
- package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
- package/dist/types/ui-shell/index.d.ts +0 -1
- package/dist/types/ui-shell/index.d.ts.map +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/dist/types/web-component/renderReactInWebComponent.d.ts +0 -2
- package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.renderWithOdysseyProvider = exports.noTransitionsTheme = void 0;
|
|
7
|
-
var _styles = require("@mui/material/styles");
|
|
8
7
|
var _vitestBrowserReact = require("vitest-browser-react");
|
|
9
8
|
var _OdysseyProvider = require("../OdysseyProvider.cjs");
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -18,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
17
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
18
|
*
|
|
20
19
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
21
|
-
*/const noTransitionsTheme = exports.noTransitionsTheme =
|
|
20
|
+
*/const noTransitionsTheme = exports.noTransitionsTheme = {
|
|
22
21
|
transitions: {
|
|
23
22
|
create: () => "none",
|
|
24
23
|
duration: {
|
|
@@ -31,7 +30,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
31
30
|
leavingScreen: 0
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
}
|
|
33
|
+
};
|
|
35
34
|
const OdysseyWrapper = ({
|
|
36
35
|
children
|
|
37
36
|
}) => (0, _jsxRuntime.jsx)(_OdysseyProvider.OdysseyProvider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWithOdysseyProvider.cjs","names":["
|
|
1
|
+
{"version":3,"file":"renderWithOdysseyProvider.cjs","names":["_vitestBrowserReact","require","_OdysseyProvider","_jsxRuntime","noTransitionsTheme","exports","transitions","create","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","OdysseyWrapper","children","jsx","OdysseyProvider","themeOverride","renderWithOdysseyProvider","ui","options","render","wrapper"],"sources":["../../../src/test-utils/renderWithOdysseyProvider.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { type ThemeOptions } from \"@mui/material/styles\";\nimport { type ReactElement, type ReactNode } from \"react\";\nimport {\n render,\n type RenderOptions,\n type RenderResult,\n} from \"vitest-browser-react\";\n\nimport { OdysseyProvider } from \"../OdysseyProvider.js\";\n\n// Kill transitions so axe never samples a mid-transition state.\n// `create` covers CSS transition strings; `duration` zeroes JS timeouts that\n// MUI transition components (Fade, Slide, Collapse) use to decide when to\n// unmount.\n//\n// Passed as `themeOverride` (plain `ThemeOptions`), not a resolved `createTheme`\n// result: the provider deep-merges this into the Odyssey theme and re-runs\n// `createTheme` so the override composes correctly. A resolved theme here would\n// instead be merged as an already-built theme and clobber Odyssey's own values.\nexport const noTransitionsTheme = {\n transitions: {\n create: () => \"none\",\n duration: {\n shortest: 0,\n shorter: 0,\n short: 0,\n standard: 0,\n complex: 0,\n enteringScreen: 0,\n leavingScreen: 0,\n },\n },\n} satisfies ThemeOptions;\n\nconst OdysseyWrapper = ({ children }: { children: ReactNode }) => (\n <OdysseyProvider themeOverride={noTransitionsTheme}>\n {children}\n </OdysseyProvider>\n);\n\n/**\n * Custom render that wraps the component in OdysseyProvider with MUI\n * transitions disabled. Both CSS transition strings (`transitions.create`) and\n * JS transition durations (`transitions.duration`) are zeroed so locator\n * queries and DOM removal are synchronous in tests. Use this in browser tests\n * instead of importing OdysseyProvider directly.\n *\n * Returns all standard vitest-browser-react render utilities */\nexport const renderWithOdysseyProvider = async (\n ui: ReactElement,\n options?: Omit<RenderOptions, \"wrapper\">,\n): Promise<RenderResult> => {\n return render(ui, { wrapper: OdysseyWrapper, ...options });\n};\n"],"mappings":";;;;;;AAcA,IAAAA,mBAAA,GAAAC,OAAA;AAMA,IAAAC,gBAAA,GAAAD,OAAA;AAAwD,IAAAE,WAAA,GAAAF,OAAA;AApBxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAqBO,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAChCE,WAAW,EAAE;IACXC,MAAM,EAAEA,CAAA,KAAM,MAAM;IACpBC,QAAQ,EAAE;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,KAAK,EAAE,CAAC;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,cAAc,EAAE,CAAC;MACjBC,aAAa,EAAE;IACjB;EACF;AACF,CAAwB;AAExB,MAAMC,cAAc,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAC3D,IAAAd,WAAA,CAAAe,GAAA,EAAChB,gBAAA,CAAAiB,eAAe;EAACC,aAAa,EAAEhB,kBAAmB;EAAAa,QAAA,EAChDA;AAAQ,CACM,CAClB;AAUM,MAAMI,yBAAyB,GAAG,MAAAA,CACvCC,EAAgB,EAChBC,OAAwC,KACd;EAC1B,OAAO,IAAAC,0BAAM,EAACF,EAAE,EAAE;IAAEG,OAAO,EAAET,cAAc;IAAE,GAAGO;EAAQ,CAAC,CAAC;AAC5D,CAAC;AAAClB,OAAA,CAAAgB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ROOMY_WIDTH = exports.ROOMY_HEIGHT = void 0;
|
|
7
|
+
var _useMediaQuery = require("../theme/useMediaQuery.cjs");
|
|
8
|
+
/*!
|
|
9
|
+
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
10
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
11
|
+
*
|
|
12
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
15
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
*
|
|
17
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
18
|
+
*/const ROOMY_BUFFER = 100;
|
|
19
|
+
const ROOMY_WIDTH = exports.ROOMY_WIDTH = _useMediaQuery.COMPACT_MAX_WIDTH + ROOMY_BUFFER;
|
|
20
|
+
const ROOMY_HEIGHT = exports.ROOMY_HEIGHT = _useMediaQuery.COMPACT_MAX_HEIGHT + ROOMY_BUFFER;
|
|
21
|
+
//# sourceMappingURL=viewportTestSizes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewportTestSizes.cjs","names":["_useMediaQuery","require","ROOMY_BUFFER","ROOMY_WIDTH","exports","COMPACT_MAX_WIDTH","ROOMY_HEIGHT","COMPACT_MAX_HEIGHT"],"sources":["../../../src/test-utils/viewportTestSizes.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n COMPACT_MAX_HEIGHT,\n COMPACT_MAX_WIDTH,\n} from \"../theme/useMediaQuery.js\";\n\n// Compact triggers when either dimension is at or below its max, so a \"roomy\"\n// value clears the relevant max by this buffer. Deriving from the thresholds\n// (rather than a hardcoded size) keeps viewport tests correct if the compact\n// activation buffers ever change.\nconst ROOMY_BUFFER = 100;\n\n/** Width comfortably clear of the compact-width threshold. */\nexport const ROOMY_WIDTH = COMPACT_MAX_WIDTH + ROOMY_BUFFER;\n\n/** Height comfortably clear of the compact-height threshold. */\nexport const ROOMY_HEIGHT = COMPACT_MAX_HEIGHT + ROOMY_BUFFER;\n"],"mappings":";;;;;;AAYA,IAAAA,cAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAWA,MAAMC,YAAY,GAAG,GAAG;AAGjB,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,gCAAiB,GAAGH,YAAY;AAGpD,MAAMI,YAAY,GAAAF,OAAA,CAAAE,YAAA,GAAGC,iCAAkB,GAAGL,YAAY","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.dialogComponents = void 0;
|
|
7
|
+
var _useMediaQuery = require("../useMediaQuery.cjs");
|
|
7
8
|
/*!
|
|
8
9
|
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
9
10
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
@@ -29,9 +30,12 @@ const dialogComponents = ({
|
|
|
29
30
|
styleOverrides: {
|
|
30
31
|
paper: {
|
|
31
32
|
maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,
|
|
32
|
-
borderRadius: odysseyTokens.BorderRadiusOuter,
|
|
33
33
|
boxShadow: "none",
|
|
34
|
-
filter: "drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))"
|
|
34
|
+
filter: "drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))",
|
|
35
|
+
borderRadius: odysseyTokens.BorderRadiusOuter,
|
|
36
|
+
[_useMediaQuery.COMPACT_MEDIA_QUERY]: {
|
|
37
|
+
borderRadius: 0
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.cjs","names":["dialogComponents","odysseyTokens","shadowDomElement","shadowRootElement","MuiDialog","defaultProps","container","scroll","styleOverrides","paper","maxWidth","TypographyLineLengthMax","Spacing6","
|
|
1
|
+
{"version":3,"file":"Dialog.cjs","names":["_useMediaQuery","require","dialogComponents","odysseyTokens","shadowDomElement","shadowRootElement","MuiDialog","defaultProps","container","scroll","styleOverrides","paper","maxWidth","TypographyLineLengthMax","Spacing6","boxShadow","filter","borderRadius","BorderRadiusOuter","COMPACT_MEDIA_QUERY","MuiDialogActions","root","flexWrap","gap","Spacing2","paddingBlockStart","Spacing5","paddingBlockEnd","paddingInline","MuiDialogContent","ownerState","paddingBlock","dividers","color","HueNeutral600","MuiDialogContentText","marginBlockEnd","HueNeutral700","MuiDialogTitle","component","variant","padding","minWidth","flex","exports"],"sources":["../../../../src/theme/components/Dialog.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nimport { COMPACT_MEDIA_QUERY } from \"../useMediaQuery.js\";\n\nexport const dialogComponents = ({\n odysseyTokens,\n shadowDomElement,\n shadowRootElement,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiDialog\"\n | \"MuiDialogActions\"\n | \"MuiDialogContent\"\n | \"MuiDialogContentText\"\n | \"MuiDialogTitle\"\n> => ({\n MuiDialog: {\n defaultProps: {\n container: shadowRootElement || shadowDomElement,\n scroll: \"paper\",\n },\n styleOverrides: {\n paper: {\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,\n boxShadow: \"none\",\n filter:\n \"drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))\",\n borderRadius: odysseyTokens.BorderRadiusOuter,\n // Full-screen at compact viewports has no rounded corners.\n [COMPACT_MEDIA_QUERY]: {\n borderRadius: 0,\n },\n },\n },\n },\n MuiDialogActions: {\n styleOverrides: {\n root: {\n flexWrap: \"wrap\",\n gap: odysseyTokens.Spacing2,\n paddingBlockStart: odysseyTokens.Spacing5,\n paddingBlockEnd: odysseyTokens.Spacing5,\n paddingInline: odysseyTokens.Spacing6,\n },\n },\n },\n MuiDialogContent: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n paddingBlock: 0,\n paddingInline: odysseyTokens.Spacing6,\n\n ...(ownerState.dividers === true && {\n paddingBlock: odysseyTokens.Spacing6,\n color: odysseyTokens.HueNeutral600,\n }),\n\n [\"&:last-child\"]: {\n paddingBlockEnd: odysseyTokens.Spacing6,\n },\n }),\n },\n },\n MuiDialogContentText: {\n styleOverrides: {\n root: {\n marginBlockEnd: odysseyTokens.Spacing5,\n color: odysseyTokens.HueNeutral700,\n\n \"&:last-child\": {\n marginBlockEnd: \"0\",\n },\n },\n },\n },\n MuiDialogTitle: {\n defaultProps: {\n component: \"h1\",\n variant: \"h5\",\n },\n styleOverrides: {\n root: {\n marginBlockEnd: 0,\n padding: 0,\n minWidth: 0,\n flex: \"1 1 auto\",\n },\n },\n },\n});\n"],"mappings":";;;;;;AAgBA,IAAAA,cAAA,GAAAC,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,aAAa;EACbC,gBAAgB;EAChBC;AACkB,CAAC,MAOf;EACJC,SAAS,EAAE;IACTC,YAAY,EAAE;MACZC,SAAS,EAAEH,iBAAiB,IAAID,gBAAgB;MAChDK,MAAM,EAAE;IACV,CAAC;IACDC,cAAc,EAAE;MACdC,KAAK,EAAE;QACLC,QAAQ,EAAE,QAAQT,aAAa,CAACU,uBAAuB,OAAOV,aAAa,CAACW,QAAQ,QAAQ;QAC5FC,SAAS,EAAE,MAAM;QACjBC,MAAM,EACJ,kJAAkJ;QACpJC,YAAY,EAAEd,aAAa,CAACe,iBAAiB;QAE7C,CAACC,kCAAmB,GAAG;UACrBF,YAAY,EAAE;QAChB;MACF;IACF;EACF,CAAC;EACDG,gBAAgB,EAAE;IAChBV,cAAc,EAAE;MACdW,IAAI,EAAE;QACJC,QAAQ,EAAE,MAAM;QAChBC,GAAG,EAAEpB,aAAa,CAACqB,QAAQ;QAC3BC,iBAAiB,EAAEtB,aAAa,CAACuB,QAAQ;QACzCC,eAAe,EAAExB,aAAa,CAACuB,QAAQ;QACvCE,aAAa,EAAEzB,aAAa,CAACW;MAC/B;IACF;EACF,CAAC;EACDe,gBAAgB,EAAE;IAChBnB,cAAc,EAAE;MACdW,IAAI,EAAEA,CAAC;QAAES;MAAW,CAAC,MAAM;QACzBC,YAAY,EAAE,CAAC;QACfH,aAAa,EAAEzB,aAAa,CAACW,QAAQ;QAErC,IAAIgB,UAAU,CAACE,QAAQ,KAAK,IAAI,IAAI;UAClCD,YAAY,EAAE5B,aAAa,CAACW,QAAQ;UACpCmB,KAAK,EAAE9B,aAAa,CAAC+B;QACvB,CAAC,CAAC;QAEF,CAAC,cAAc,GAAG;UAChBP,eAAe,EAAExB,aAAa,CAACW;QACjC;MACF,CAAC;IACH;EACF,CAAC;EACDqB,oBAAoB,EAAE;IACpBzB,cAAc,EAAE;MACdW,IAAI,EAAE;QACJe,cAAc,EAAEjC,aAAa,CAACuB,QAAQ;QACtCO,KAAK,EAAE9B,aAAa,CAACkC,aAAa;QAElC,cAAc,EAAE;UACdD,cAAc,EAAE;QAClB;MACF;IACF;EACF,CAAC;EACDE,cAAc,EAAE;IACd/B,YAAY,EAAE;MACZgC,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE;IACX,CAAC;IACD9B,cAAc,EAAE;MACdW,IAAI,EAAE;QACJe,cAAc,EAAE,CAAC;QACjBK,OAAO,EAAE,CAAC;QACVC,QAAQ,EAAE,CAAC;QACXC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC,CAAC;AAACC,OAAA,CAAA1C,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -149,7 +149,7 @@ const formComponents = ({
|
|
|
149
149
|
MuiFormLabel: {
|
|
150
150
|
styleOverrides: {
|
|
151
151
|
root: {
|
|
152
|
-
alignItems: "
|
|
152
|
+
alignItems: "baseline",
|
|
153
153
|
color: odysseyTokens.TypographyColorBody,
|
|
154
154
|
display: "inline-flex",
|
|
155
155
|
lineHeight: odysseyTokens.TypographyLineHeightUi,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.cjs","names":["_Checkbox","require","_FormControlLabel","_FormGroup","_FormLabel","_Radio","_Typography","formComponents","odysseyTokens","MuiFormControl","defaultProps","margin","styleOverrides","root","ownerState","width","maxWidth","TypographyLineLengthMax","marginBlockStart","marginBlockEnd","Spacing4","Spacing5","fullWidth","formGroupClasses","Spacing1","Spacing6","MuiFormControlLabel","gap","Spacing2","marginInlineStart","marginInlineEnd","labelPlacement","marginBottom","pointerEvents","formControlLabelClasses","label","color","TypographyColorDisabled","typographyClasses","radioClasses","alignItems","checkboxClasses","TypographyColorBody","PalettePrimaryDark","PaletteDangerDark","lineHeight","TypographyLineHeightUi","asterisk","display","MuiFormHelperText","variant","fontSize","TypographySizeSubordinate","TypographyLineHeightBody","textAlign","formLabelClasses","TypographyColorSubordinate","a","MuiFormLabel","TypographySizeBody","fontWeight","TypographyWeightBodyBold","exports"],"sources":["../../../../src/theme/components/Form.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport { checkboxClasses } from \"@mui/material/Checkbox\";\nimport { formControlLabelClasses } from \"@mui/material/FormControlLabel\";\nimport { formGroupClasses } from \"@mui/material/FormGroup\";\nimport { formLabelClasses } from \"@mui/material/FormLabel\";\nimport { radioClasses } from \"@mui/material/Radio\";\nimport { typographyClasses } from \"@mui/material/Typography\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const formComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiFormControl\"\n | \"MuiFormControlLabel\"\n | \"MuiFormHelperText\"\n | \"MuiFormLabel\"\n> => ({\n MuiFormControl: {\n defaultProps: {\n margin: \"normal\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n width: \"100%\",\n maxWidth: odysseyTokens.TypographyLineLengthMax,\n ...(ownerState.margin === \"normal\" && {\n marginBlockStart: 0,\n marginBlockEnd: odysseyTokens.Spacing4,\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n }),\n ...(ownerState.margin === \"dense\" && {\n marginBlockStart: 0,\n marginBlockEnd: odysseyTokens.Spacing5,\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n }),\n ...(ownerState.fullWidth && {\n maxWidth: \"100%\",\n }),\n [`& .${formGroupClasses.root}`]: {\n marginBlockStart: odysseyTokens.Spacing1,\n },\n [`&:has(+ [data-file-preview-container])`]: {\n marginBlockEnd: 0,\n },\n\n \".MuiChip-root\": {\n // using 55ch - 24px to account for the 24px of padding on the right side of the container.\n // Ensures chip does not enlarge the container\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} - ${odysseyTokens.Spacing6})`,\n },\n }),\n },\n },\n MuiFormControlLabel: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n gap: odysseyTokens.Spacing2,\n marginInlineStart: 0,\n marginInlineEnd: 0, // used for row presentation of radio/checkbox\n ...(ownerState.labelPlacement === \"start\" && {\n marginInlineStart: 0, // used for row presentation of radio/checkbox\n marginInlineEnd: 0,\n }),\n ...(ownerState.labelPlacement === \"top\" && {\n marginInlineStart: 0,\n }),\n ...(ownerState.labelPlacement === \"bottom\" && {\n marginInlineStart: 0,\n }),\n \"&:not(:last-child)\": {\n marginBottom: odysseyTokens.Spacing2,\n },\n \"&.Mui-disabled\": {\n pointerEvents: \"none\",\n [`& .${formControlLabelClasses.label}`]: {\n color: odysseyTokens.TypographyColorDisabled,\n [`& .${typographyClasses.root}`]: {\n color: \"inherit\",\n },\n },\n },\n [`:has(> .${radioClasses.root})`]: {\n alignItems: \"flex-start\",\n },\n [`&:hover .${radioClasses.root}, &:hover .${checkboxClasses.root}`]: {\n color: odysseyTokens.TypographyColorBody,\n },\n [`&:hover .${radioClasses.root}.Mui-checked, &:hover .${checkboxClasses.root}.Mui-checked`]:\n {\n color: odysseyTokens.PalettePrimaryDark,\n },\n [`&.Mui-error:hover .${radioClasses.root}, &.Mui-error:hover .${checkboxClasses.root}`]:\n {\n color: odysseyTokens.PaletteDangerDark,\n },\n [`&.Mui-error:hover .${radioClasses.root}.Mui-checked, &.Mui-error:hover .${checkboxClasses.root}.Mui-checked`]:\n {\n color: odysseyTokens.PaletteDangerDark,\n },\n }),\n label: () => ({\n gap: odysseyTokens.Spacing1,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n }),\n asterisk: () => ({\n display: \"none\",\n }),\n },\n },\n MuiFormHelperText: {\n defaultProps: {\n variant: \"standard\",\n },\n styleOverrides: {\n root: {\n fontSize: odysseyTokens.TypographySizeSubordinate,\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n marginBlockEnd: odysseyTokens.Spacing2,\n marginBlockStart: odysseyTokens.Spacing1,\n textAlign: \"start\",\n\n [`.${formLabelClasses.root} + &`]: {\n marginBlockStart: `-${odysseyTokens.Spacing1}`,\n color: odysseyTokens.TypographyColorSubordinate,\n },\n\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n\n \".Mui-disabled &\": {\n color: odysseyTokens.TypographyColorDisabled,\n\n a: {\n color: odysseyTokens.TypographyColorDisabled,\n },\n },\n },\n },\n },\n MuiFormLabel: {\n styleOverrides: {\n root: {\n alignItems: \"center\",\n color: odysseyTokens.TypographyColorBody,\n display: \"inline-flex\",\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n fontSize: odysseyTokens.TypographySizeBody,\n fontWeight: odysseyTokens.TypographyWeightBodyBold,\n marginBottom: odysseyTokens.Spacing2,\n \"&.Mui-focused, &.Mui-error, &.Mui-disabled\": {\n color: odysseyTokens.TypographyColorBody,\n },\n \"& > .MuiTypography-root\": {\n margin: \"reset\",\n marginInlineStart: odysseyTokens.Spacing1,\n },\n },\n },\n },\n});\n"],"mappings":";;;;;;AAcA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,MAAMM,cAAc,GAAGA,CAAC;EAC7BC;AACkB,CAAC,MAMf;EACJC,cAAc,EAAE;IACdC,YAAY,EAAE;MACZC,MAAM,EAAE;IACV,CAAC;IACDC,cAAc,EAAE;MACdC,IAAI,EAAEA,CAAC;QAAEC;MAAW,CAAC,MAAM;QACzBC,KAAK,EAAE,MAAM;QACbC,QAAQ,EAAER,aAAa,CAACS,uBAAuB;QAC/C,IAAIH,UAAU,CAACH,MAAM,KAAK,QAAQ,IAAI;UACpCO,gBAAgB,EAAE,CAAC;UACnBC,cAAc,EAAEX,aAAa,CAACY,QAAQ;UACtC,cAAc,EAAE;YACdD,cAAc,EAAE;UAClB;QACF,CAAC,CAAC;QACF,IAAIL,UAAU,CAACH,MAAM,KAAK,OAAO,IAAI;UACnCO,gBAAgB,EAAE,CAAC;UACnBC,cAAc,EAAEX,aAAa,CAACa,QAAQ;UACtC,cAAc,EAAE;YACdF,cAAc,EAAE;UAClB;QACF,CAAC,CAAC;QACF,IAAIL,UAAU,CAACQ,SAAS,IAAI;UAC1BN,QAAQ,EAAE;QACZ,CAAC,CAAC;QACF,CAAC,MAAMO,2BAAgB,CAACV,IAAI,EAAE,GAAG;UAC/BK,gBAAgB,EAAEV,aAAa,CAACgB;QAClC,C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EACF,CAAC;EACDqB,YAAY,EAAE;IACZ9C,cAAc,EAAE;MACdC,IAAI,EAAE;QACJ2B,UAAU,EAAE,QAAQ;QACpBJ,KAAK,EAAE5B,aAAa,CAACkC,mBAAmB;QACxCM,OAAO,EAAE,aAAa;QACtBH,UAAU,EAAErC,aAAa,CAACsC,sBAAsB;QAChDK,QAAQ,EAAE3C,aAAa,CAACmD,kBAAkB;QAC1CC,UAAU,EAAEpD,aAAa,CAACqD,wBAAwB;QAClD7B,YAAY,EAAExB,aAAa,CAACoB,QAAQ;QACpC,4CAA4C,EAAE;UAC5CQ,KAAK,EAAE5B,aAAa,CAACkC;QACvB,CAAC;QACD,yBAAyB,EAAE;UACzB/B,MAAM,EAAE,OAAO;UACfkB,iBAAiB,EAAErB,aAAa,CAACgB;QACnC;MACF;IACF;EACF;AACF,CAAC,CAAC;AAACsC,OAAA,CAAAvD,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Form.cjs","names":["_Checkbox","require","_FormControlLabel","_FormGroup","_FormLabel","_Radio","_Typography","formComponents","odysseyTokens","MuiFormControl","defaultProps","margin","styleOverrides","root","ownerState","width","maxWidth","TypographyLineLengthMax","marginBlockStart","marginBlockEnd","Spacing4","Spacing5","fullWidth","formGroupClasses","Spacing1","Spacing6","MuiFormControlLabel","gap","Spacing2","marginInlineStart","marginInlineEnd","labelPlacement","marginBottom","pointerEvents","formControlLabelClasses","label","color","TypographyColorDisabled","typographyClasses","radioClasses","alignItems","checkboxClasses","TypographyColorBody","PalettePrimaryDark","PaletteDangerDark","lineHeight","TypographyLineHeightUi","asterisk","display","MuiFormHelperText","variant","fontSize","TypographySizeSubordinate","TypographyLineHeightBody","textAlign","formLabelClasses","TypographyColorSubordinate","a","MuiFormLabel","TypographySizeBody","fontWeight","TypographyWeightBodyBold","exports"],"sources":["../../../../src/theme/components/Form.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\n\nimport { checkboxClasses } from \"@mui/material/Checkbox\";\nimport { formControlLabelClasses } from \"@mui/material/FormControlLabel\";\nimport { formGroupClasses } from \"@mui/material/FormGroup\";\nimport { formLabelClasses } from \"@mui/material/FormLabel\";\nimport { radioClasses } from \"@mui/material/Radio\";\nimport { typographyClasses } from \"@mui/material/Typography\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const formComponents = ({\n odysseyTokens,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiFormControl\"\n | \"MuiFormControlLabel\"\n | \"MuiFormHelperText\"\n | \"MuiFormLabel\"\n> => ({\n MuiFormControl: {\n defaultProps: {\n margin: \"normal\",\n },\n styleOverrides: {\n root: ({ ownerState }) => ({\n width: \"100%\",\n maxWidth: odysseyTokens.TypographyLineLengthMax,\n ...(ownerState.margin === \"normal\" && {\n marginBlockStart: 0,\n marginBlockEnd: odysseyTokens.Spacing4,\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n }),\n ...(ownerState.margin === \"dense\" && {\n marginBlockStart: 0,\n marginBlockEnd: odysseyTokens.Spacing5,\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n }),\n ...(ownerState.fullWidth && {\n maxWidth: \"100%\",\n }),\n [`& .${formGroupClasses.root}`]: {\n marginBlockStart: odysseyTokens.Spacing1,\n },\n [`&:has(+ [data-file-preview-container])`]: {\n marginBlockEnd: 0,\n },\n\n \".MuiChip-root\": {\n // using 55ch - 24px to account for the 24px of padding on the right side of the container.\n // Ensures chip does not enlarge the container\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} - ${odysseyTokens.Spacing6})`,\n },\n }),\n },\n },\n MuiFormControlLabel: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n gap: odysseyTokens.Spacing2,\n marginInlineStart: 0,\n marginInlineEnd: 0, // used for row presentation of radio/checkbox\n ...(ownerState.labelPlacement === \"start\" && {\n marginInlineStart: 0, // used for row presentation of radio/checkbox\n marginInlineEnd: 0,\n }),\n ...(ownerState.labelPlacement === \"top\" && {\n marginInlineStart: 0,\n }),\n ...(ownerState.labelPlacement === \"bottom\" && {\n marginInlineStart: 0,\n }),\n \"&:not(:last-child)\": {\n marginBottom: odysseyTokens.Spacing2,\n },\n \"&.Mui-disabled\": {\n pointerEvents: \"none\",\n [`& .${formControlLabelClasses.label}`]: {\n color: odysseyTokens.TypographyColorDisabled,\n [`& .${typographyClasses.root}`]: {\n color: \"inherit\",\n },\n },\n },\n [`:has(> .${radioClasses.root})`]: {\n alignItems: \"flex-start\",\n },\n [`&:hover .${radioClasses.root}, &:hover .${checkboxClasses.root}`]: {\n color: odysseyTokens.TypographyColorBody,\n },\n [`&:hover .${radioClasses.root}.Mui-checked, &:hover .${checkboxClasses.root}.Mui-checked`]:\n {\n color: odysseyTokens.PalettePrimaryDark,\n },\n [`&.Mui-error:hover .${radioClasses.root}, &.Mui-error:hover .${checkboxClasses.root}`]:\n {\n color: odysseyTokens.PaletteDangerDark,\n },\n [`&.Mui-error:hover .${radioClasses.root}.Mui-checked, &.Mui-error:hover .${checkboxClasses.root}.Mui-checked`]:\n {\n color: odysseyTokens.PaletteDangerDark,\n },\n }),\n label: () => ({\n gap: odysseyTokens.Spacing1,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n }),\n asterisk: () => ({\n display: \"none\",\n }),\n },\n },\n MuiFormHelperText: {\n defaultProps: {\n variant: \"standard\",\n },\n styleOverrides: {\n root: {\n fontSize: odysseyTokens.TypographySizeSubordinate,\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n marginBlockEnd: odysseyTokens.Spacing2,\n marginBlockStart: odysseyTokens.Spacing1,\n textAlign: \"start\",\n\n [`.${formLabelClasses.root} + &`]: {\n marginBlockStart: `-${odysseyTokens.Spacing1}`,\n color: odysseyTokens.TypographyColorSubordinate,\n },\n\n \"&:last-child\": {\n marginBlockEnd: 0,\n },\n\n \".Mui-disabled &\": {\n color: odysseyTokens.TypographyColorDisabled,\n\n a: {\n color: odysseyTokens.TypographyColorDisabled,\n },\n },\n },\n },\n },\n MuiFormLabel: {\n styleOverrides: {\n // Align on the first text line so the optional indicator stays with the\n // start of a multi-line wrapped group label rather than its vertical\n // center.\n root: {\n alignItems: \"baseline\",\n color: odysseyTokens.TypographyColorBody,\n display: \"inline-flex\",\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n fontSize: odysseyTokens.TypographySizeBody,\n fontWeight: odysseyTokens.TypographyWeightBodyBold,\n marginBottom: odysseyTokens.Spacing2,\n \"&.Mui-focused, &.Mui-error, &.Mui-disabled\": {\n color: odysseyTokens.TypographyColorBody,\n },\n \"& > .MuiTypography-root\": {\n margin: \"reset\",\n marginInlineStart: odysseyTokens.Spacing1,\n },\n },\n },\n },\n});\n"],"mappings":";;;;;;AAcA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,MAAMM,cAAc,GAAGA,CAAC;EAC7BC;AACkB,CAAC,MAMf;EACJC,cAAc,EAAE;IACdC,YAAY,EAAE;MACZC,MAAM,EAAE;IACV,CAAC;IACDC,cAAc,EAAE;MACdC,IAAI,EAAEA,CAAC;QAAEC;MAAW,CAAC,MAAM;QACzBC,KAAK,EAAE,MAAM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
5
|
});
|
|
6
|
-
exports.useMediaQuery = void 0;
|
|
6
|
+
exports.useMediaQuery = exports.useCompactViewportMatches = exports.COMPACT_MEDIA_QUERY = exports.COMPACT_MAX_WIDTH_CONDITION = exports.COMPACT_MAX_WIDTH = exports.COMPACT_MAX_HEIGHT_CONDITION = exports.COMPACT_MAX_HEIGHT = exports.ABSOLUTE_MINIMUM_WIDTH = exports.ABSOLUTE_MINIMUM_HEIGHT = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
@@ -15,20 +15,41 @@ var _react = require("react");
|
|
|
15
15
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
16
|
*
|
|
17
17
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
const mediaQueryList = (0, _react.useMemo)(() => window.matchMedia(
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
*/const useMediaQuery = mediaQuery => {
|
|
19
|
+
const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, "");
|
|
20
|
+
const supportsMatchMedia = typeof window !== "undefined" && typeof window.matchMedia !== "undefined";
|
|
21
|
+
const mediaQueryList = (0, _react.useMemo)(() => supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null, [supportsMatchMedia, normalizedMediaQuery]);
|
|
22
|
+
const subscribe = (0, _react.useCallback)(notifyReactOfChange => {
|
|
23
|
+
if (!mediaQueryList) {
|
|
24
|
+
return () => {};
|
|
25
|
+
}
|
|
26
|
+
mediaQueryList.addEventListener("change", notifyReactOfChange);
|
|
27
27
|
return () => {
|
|
28
|
-
mediaQueryList.removeEventListener("change",
|
|
28
|
+
mediaQueryList.removeEventListener("change", notifyReactOfChange);
|
|
29
29
|
};
|
|
30
|
-
}, [mediaQueryList
|
|
31
|
-
|
|
30
|
+
}, [mediaQueryList]);
|
|
31
|
+
const getSnapshot = (0, _react.useCallback)(() => mediaQueryList?.matches ?? false, [mediaQueryList]);
|
|
32
|
+
const getServerSnapshot = (0, _react.useCallback)(() => false, []);
|
|
33
|
+
return (0, _react.useSyncExternalStore)(subscribe, getSnapshot, getServerSnapshot);
|
|
32
34
|
};
|
|
33
35
|
exports.useMediaQuery = useMediaQuery;
|
|
36
|
+
const ABSOLUTE_MINIMUM_WIDTH = exports.ABSOLUTE_MINIMUM_WIDTH = 320;
|
|
37
|
+
const ABSOLUTE_MINIMUM_HEIGHT = exports.ABSOLUTE_MINIMUM_HEIGHT = 256;
|
|
38
|
+
const COMPACT_WIDTH_ACTIVATION_BUFFER = 80;
|
|
39
|
+
const COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;
|
|
40
|
+
const COMPACT_MAX_WIDTH = exports.COMPACT_MAX_WIDTH = ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;
|
|
41
|
+
const COMPACT_MAX_HEIGHT = exports.COMPACT_MAX_HEIGHT = ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;
|
|
42
|
+
const COMPACT_MAX_WIDTH_CONDITION = exports.COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;
|
|
43
|
+
const COMPACT_MAX_HEIGHT_CONDITION = exports.COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;
|
|
44
|
+
const COMPACT_MEDIA_QUERY = exports.COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;
|
|
45
|
+
const useCompactViewportMatches = () => {
|
|
46
|
+
const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);
|
|
47
|
+
const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);
|
|
48
|
+
return (0, _react.useMemo)(() => ({
|
|
49
|
+
isWithinCompactWidth,
|
|
50
|
+
isWithinCompactHeight,
|
|
51
|
+
isWithinCompactWidthOrHeight: isWithinCompactWidth || isWithinCompactHeight
|
|
52
|
+
}), [isWithinCompactWidth, isWithinCompactHeight]);
|
|
53
|
+
};
|
|
54
|
+
exports.useCompactViewportMatches = useCompactViewportMatches;
|
|
34
55
|
//# sourceMappingURL=useMediaQuery.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery.cjs","names":["_react","require","useMediaQuery","mediaQuery","
|
|
1
|
+
{"version":3,"file":"useMediaQuery.cjs","names":["_react","require","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","useMemo","subscribe","useCallback","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","useSyncExternalStore","exports","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo, useSyncExternalStore } from \"react\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAcO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAC5B,MAAOJ,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMO,SAAS,GAAG,IAAAC,kBAAW,EAC1BC,mBAA+B,IAAK;IACnC,IAAI,CAACJ,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACK,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXJ,cAAc,CAACM,mBAAmB,CA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AAoB;IACpBC,qBAAqB;IACrBC,4BAA4B,EAC1BF,oBAAoB,IAAIC;EAC5B,CAAC,CAAC,EACF,CAACD,oBAAoB,EAAEC,qBAAqB,CAC9C,CAAC;AACH,CAAC;AAACZ,OAAA,CAAAU,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -77,5 +77,5 @@ const AppSwitcher = ({
|
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
const MemoizedAppSwitcher = exports.AppSwitcher = (0, _react.memo)(AppSwitcher);
|
|
80
|
-
MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.
|
|
80
|
+
MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.65.1";
|
|
81
81
|
//# sourceMappingURL=AppSwitcher.cjs.map
|
|
@@ -57,5 +57,5 @@ const InnerAppContainer = ({
|
|
|
57
57
|
children: [(0, _jsxRuntime.jsx)(StyledAppContainerShadow1, {}), (0, _jsxRuntime.jsx)(StyledAppContainerShadow2, {}), (0, _jsxRuntime.jsx)(StyledAppContainerShadow3, {})]
|
|
58
58
|
}) : null;
|
|
59
59
|
const MemoizedInnerAppContainer = exports.InnerAppContainer = (0, _react.memo)(InnerAppContainer);
|
|
60
|
-
MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.
|
|
60
|
+
MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.65.1";
|
|
61
61
|
//# sourceMappingURL=InnerAppContainer.cjs.map
|
|
@@ -213,6 +213,9 @@ const NarrowUiShellContent = ({
|
|
|
213
213
|
const sideNavContainerRef = (0, _react.useRef)(null);
|
|
214
214
|
const topNavContainerRef = (0, _react.useRef)(null);
|
|
215
215
|
const uiShellAppAreaRef = (0, _react.useRef)(null);
|
|
216
|
+
const leftSideContainerRef = (0, _react.useRef)(null);
|
|
217
|
+
const leftSideMenuToggleRef = (0, _react.useRef)(null);
|
|
218
|
+
const leftSideContainerId = (0, _react.useId)();
|
|
216
219
|
const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = (0, _react.useState)(false);
|
|
217
220
|
const [isRightSideMenuOpen, setIsRightSideMenuOpen] = (0, _react.useState)(false);
|
|
218
221
|
const closeSideMenus = (0, _react.useCallback)(() => {
|
|
@@ -239,6 +242,15 @@ const NarrowUiShellContent = ({
|
|
|
239
242
|
setIsLeftSideMenuOpen(false);
|
|
240
243
|
setIsRightSideMenuOpen(isRightSideMenuOpen => !isRightSideMenuOpen);
|
|
241
244
|
}, []);
|
|
245
|
+
const isLeftSideMenuOpenRef = (0, _react.useRef)(false);
|
|
246
|
+
(0, _react.useEffect)(() => {
|
|
247
|
+
if (isLeftSideMenuOpen) {
|
|
248
|
+
leftSideContainerRef.current?.focus();
|
|
249
|
+
} else if (isLeftSideMenuOpenRef.current) {
|
|
250
|
+
leftSideMenuToggleRef.current?.focus();
|
|
251
|
+
}
|
|
252
|
+
isLeftSideMenuOpenRef.current = isLeftSideMenuOpen;
|
|
253
|
+
}, [isLeftSideMenuOpen]);
|
|
242
254
|
(0, _react.useEffect)(() => {
|
|
243
255
|
const handleKeyDown = event => {
|
|
244
256
|
if (event.key === "Escape") {
|
|
@@ -283,7 +295,10 @@ const NarrowUiShellContent = ({
|
|
|
283
295
|
children: [(0, _jsxRuntime.jsxs)(StyledMenuLogo, {
|
|
284
296
|
odysseyDesignTokens: odysseyDesignTokens,
|
|
285
297
|
children: [hasSideNavProps && (sideNavProps?.isCollapsible || !sideNavProps?.isCollapsed) && (0, _jsxRuntime.jsx)(_Button.Button, {
|
|
298
|
+
ariaControls: leftSideContainerId,
|
|
299
|
+
ariaExpanded: isLeftSideMenuOpen,
|
|
286
300
|
ariaLabel: t("topnav.sidenavmenu.toggle"),
|
|
301
|
+
buttonRef: leftSideMenuToggleRef,
|
|
287
302
|
onClick: toggleLeftSideMenu,
|
|
288
303
|
startIcon: (0, _jsxRuntime.jsx)(_HamburgerMenuIcon.HamburgerMenuIcon, {}),
|
|
289
304
|
testId: "sidenav-menu--icon",
|
|
@@ -308,7 +323,10 @@ const NarrowUiShellContent = ({
|
|
|
308
323
|
})
|
|
309
324
|
}), (0, _jsxRuntime.jsxs)(StyledAppContentArea, {
|
|
310
325
|
children: [(0, _jsxRuntime.jsxs)(StyledLeftSideContainer, {
|
|
326
|
+
id: leftSideContainerId,
|
|
311
327
|
isOpen: isLeftSideMenuOpen,
|
|
328
|
+
ref: leftSideContainerRef,
|
|
329
|
+
tabIndex: -1,
|
|
312
330
|
children: [initialVisibleSections?.includes("SideNav") && !hasSideNavProps && (0, _jsxRuntime.jsx)(_reactErrorBoundary.ErrorBoundary, {
|
|
313
331
|
fallback: null,
|
|
314
332
|
onError: onError,
|
|
@@ -360,5 +378,5 @@ const NarrowUiShellContent = ({
|
|
|
360
378
|
});
|
|
361
379
|
};
|
|
362
380
|
const MemoizedNarrowUiShellContent = exports.NarrowUiShellContent = (0, _react.memo)(NarrowUiShellContent);
|
|
363
|
-
MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.
|
|
381
|
+
MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.65.1";
|
|
364
382
|
//# sourceMappingURL=NarrowUiShellContent.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NarrowUiShellContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_reactErrorBoundary","_Button","_hexToRgb","_i18n","_Close","_More","_OdysseyDesignTokensContext","_InnerAppContainer","_SideNav","_SkipToContent","_HamburgerMenuIcon","_UiShellLogo","_UiShellProvider","_uiShellSharedConstants","_useMatchAppElementToUiShellAppArea","_useScrollState","_jsxRuntime","e","__esModule","default","StyledAppContentArea","styled","gridArea","position","height","width","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","overflow","StyledBannersContainer","zIndex","UI_SHELL_BASE_Z_INDEX","StyledLeftSideContainer","isOpen","display","UI_SHELL_OVERLAY_Z_INDEX","StyledRightSideContainer","odysseyDesignTokens","HueNeutralWhite","maxWidth","SIDE_NAV_WIDTH","overflowY","right","StyledMenuLogo","alignItems","gap","Spacing3","StyledLogoContainer","TOP_NAV_HEIGHT","paddingBlock","Spacing4","maxHeight","StyledPageOverlay","hexToRgb","HueNeutral900","asFormattedString","replace","left","top","StyledSideNavContainer","StyledUiShellContainer","HueNeutral50","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","StyledTopNav","isContentScrolled","topNavBackgroundColor","boxShadow","DepthMedium","undefined","clipPath","flexDirection","justifyContent","transition","TransitionDurationMain","TransitionTimingMain","StyledTopNavMenu","minHeight","Spacing2","paddingInline","borderBottomColor","HueNeutral100","borderBottomStyle","BorderStyleMain","borderBottomWidth","BorderWidthMain","StyledTopNavSearch","NarrowUiShellContent","appElement","appElementScrollingMode","hasSideNavProps","hasStandardAppContentPadding","initialVisibleSections","logoProps","onError","console","error","optionalComponents","sideNavProps","topNavProps","t","useTranslation","useOdysseyDesignTokens","uiShellContext","useUiShellContext","useScrollState","sideNavContainerRef","useRef","topNavContainerRef","uiShellAppAreaRef","isLeftSideMenuOpen","setIsLeftSideMenuOpen","useState","isRightSideMenuOpen","setIsRightSideMenuOpen","closeSideMenus","useCallback","useEffect","unsubscribeFromCloseRightSideMenu","subscribeToCloseRightSideMenu","unsubscribeFromSideNavItemClicked","subscribeToCloseSideNavMenu","toggleLeftSideMenu","toggleRightSideMenu","handleKeyDown","event","key","document","addEventListener","removeEventListener","parentContainerRef","useMatchAppElementToUiShellAppArea","paddingMode","uiShellResizableRefs","jsxs","Fragment","children","jsx","onClick","ref","SkipToContent","banners","includes","ErrorBoundary","fallback","sideNavBackgroundColor","isCollapsible","isCollapsed","Button","ariaLabel","startIcon","HamburgerMenuIcon","testId","variant","UiShellLogo","rightSideMenu","CloseIcon","MoreIcon","topNavLeftSide","SideNav","isLoading","sideNavItems","emptySideNavItems","appName","hasCustomFooter","sideNavFooter","footerComponent","footerItems","isObtrusive","onCollapse","tabIndex","InnerAppContainer","MemoizedNarrowUiShellContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/NarrowUiShellContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport {\n CSSProperties,\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\n\nimport { Button } from \"../Buttons/Button.js\";\nimport { hexToRgb } from \"../hexToRgb.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { CloseIcon } from \"../icons.generated/Close.js\";\nimport { MoreIcon } from \"../icons.generated/More.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { HamburgerMenuIcon } from \"./TopNav/HamburgerMenuIcon.js\";\nimport {\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellLogo } from \"./UiShellLogo.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport {\n emptySideNavItems,\n SIDE_NAV_WIDTH,\n TOP_NAV_HEIGHT,\n UI_SHELL_BASE_Z_INDEX,\n UI_SHELL_OVERLAY_Z_INDEX,\n} from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst StyledAppContentArea = styled(\"div\")({\n gridArea: \"app-content\",\n position: \"relative\",\n height: \"100%\",\n width: \"100%\",\n});\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n height: \"100%\",\n overflow: \"hidden\",\n width: \"100%\",\n}));\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n});\n\nconst StyledLeftSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"isOpen\",\n})<{\n isOpen: boolean;\n}>(({ isOpen }) => ({\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n position: \"absolute\",\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledRightSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"isOpen\" && prop !== \"odysseyDesignTokens\",\n})<{\n isOpen: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isOpen, odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n maxWidth: SIDE_NAV_WIDTH,\n overflowY: \"auto\",\n position: \"absolute\",\n right: 0,\n width: SIDE_NAV_WIDTH,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledMenuLogo = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"inline-flex\",\n gap: odysseyDesignTokens.Spacing3,\n}));\n\nconst StyledLogoContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n height: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing4,\n\n \"svg, img\": {\n maxHeight: \"100%\",\n width: \"auto\",\n maxWidth: \"100%\",\n },\n}));\n\nconst StyledPageOverlay = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: hexToRgb(\n odysseyDesignTokens.HueNeutral900,\n ).asFormattedString.replace(/rgb\\((.+)\\)$/, \"rgba($1, 0.26)\"),\n gridArea: \"app-content\",\n height: \"100vh\",\n left: 0,\n position: \"absolute\",\n top: 0,\n width: \"100vw\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledSideNavContainer = styled(\"div\")({\n height: \"100%\", // Without this value, side nav won't fill up the height if the content is too short.\n});\n\nconst StyledUiShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners\"\n \"top-nav\"\n \"app-content\"\n `,\n gridTemplateColumns: \"1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n overflow: \"hidden\",\n width: \"100vw\",\n}));\n\nconst StyledTopNav = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"isContentScrolled\" &&\n prop !== \"topNavBackgroundColor\",\n})<{\n isContentScrolled?: boolean;\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, isContentScrolled, topNavBackgroundColor }) => ({\n alignItems: \"stretch\",\n backgroundColor: odysseyDesignTokens.HueNeutralWhite || topNavBackgroundColor, // This logic doesn't make sense, but I wanted to leave it here for when we eventually make a decision on `topNavBackgroundColor`. --Kevin Ghadyani\n boxShadow: isContentScrolled ? odysseyDesignTokens.DepthMedium : undefined,\n clipPath: \"inset(0 0 -100vh 0)\",\n display: \"flex\",\n flexDirection: \"column\",\n gridArea: \"top-nav\",\n height: \"100%\",\n justifyContent: \"center\",\n position: \"relative\",\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledTopNavMenu = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"topNavBackgroundColor\",\n})<{\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, topNavBackgroundColor }) => ({\n alignItems: \"center\",\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n height: \"100%\",\n justifyContent: \"space-between\",\n maxHeight: TOP_NAV_HEIGHT,\n minHeight: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n\n ...(topNavBackgroundColor === odysseyDesignTokens.HueNeutralWhite &&\n ({\n borderBottomColor: odysseyDesignTokens.HueNeutral100,\n borderBottomStyle: odysseyDesignTokens.BorderStyleMain,\n borderBottomWidth: odysseyDesignTokens.BorderWidthMain,\n } as CSSProperties)),\n}));\n\nconst StyledTopNavSearch = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n}));\n\nexport type NarrowUiShellContentProps = Pick<HtmlProps, \"testId\"> &\n Pick<UiShellNavComponentProps, \"logoProps\" | \"sideNavProps\" | \"topNavProps\"> &\n UiShellContentProps;\n\nconst NarrowUiShellContent = ({\n appElement,\n appElementScrollingMode,\n hasSideNavProps,\n hasStandardAppContentPadding = true,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n logoProps,\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: NarrowUiShellContentProps) => {\n const { t } = useTranslation();\n\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = useState(false);\n const [isRightSideMenuOpen, setIsRightSideMenuOpen] = useState(false);\n\n const closeSideMenus = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen(false);\n }, []);\n\n useEffect(() => {\n const unsubscribeFromCloseRightSideMenu =\n uiShellContext?.subscribeToCloseRightSideMenu(() => {\n closeSideMenus();\n });\n\n const unsubscribeFromSideNavItemClicked =\n uiShellContext?.subscribeToCloseSideNavMenu(() => {\n closeSideMenus();\n });\n\n return () => {\n unsubscribeFromCloseRightSideMenu?.();\n unsubscribeFromSideNavItemClicked?.();\n };\n }, [closeSideMenus, uiShellContext]);\n\n const toggleLeftSideMenu = useCallback(() => {\n setIsRightSideMenuOpen(false);\n setIsLeftSideMenuOpen((isLeftSideMenuOpen) => !isLeftSideMenuOpen);\n }, []);\n\n const toggleRightSideMenu = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen((isRightSideMenuOpen) => !isRightSideMenuOpen);\n }, []);\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closeSideMenus();\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [closeSideMenus]);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"compact\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <>\n {(isLeftSideMenuOpen || isRightSideMenuOpen) && (\n <StyledPageOverlay\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={closeSideMenus}\n />\n )}\n\n <StyledUiShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n {(initialVisibleSections?.includes(\"TopNav\") || topNavProps) && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledTopNav\n isContentScrolled={isContentScrolled}\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.topNavBackgroundColor}\n >\n <StyledTopNavMenu\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.sideNavBackgroundColor}\n >\n <StyledMenuLogo odysseyDesignTokens={odysseyDesignTokens}>\n {hasSideNavProps &&\n (sideNavProps?.isCollapsible ||\n !sideNavProps?.isCollapsed) && (\n <Button\n ariaLabel={t(\"topnav.sidenavmenu.toggle\")}\n onClick={toggleLeftSideMenu}\n startIcon={<HamburgerMenuIcon />}\n testId=\"sidenav-menu--icon\"\n variant=\"floating\"\n />\n )}\n\n <StyledLogoContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <UiShellLogo {...(sideNavProps?.logoProps || logoProps)} />\n </StyledLogoContainer>\n </StyledMenuLogo>\n\n {optionalComponents?.rightSideMenu && (\n <Button\n ariaLabel={t(\"topnav.usermenu.toggle\")}\n onClick={toggleRightSideMenu}\n startIcon={\n isRightSideMenuOpen ? <CloseIcon /> : <MoreIcon />\n }\n testId=\"userprofile-menu--icon\"\n variant=\"floating\"\n />\n )}\n </StyledTopNavMenu>\n\n {optionalComponents?.topNavLeftSide && (\n <StyledTopNavSearch odysseyDesignTokens={odysseyDesignTokens}>\n {optionalComponents?.topNavLeftSide}\n </StyledTopNavSearch>\n )}\n </StyledTopNav>\n </ErrorBoundary>\n )}\n\n <StyledAppContentArea>\n <StyledLeftSideContainer isOpen={isLeftSideMenuOpen}>\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") &&\n !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledSideNavContainer>\n <SideNav\n {...{\n ...{\n ...sideNavProps,\n // This hides the side nav logo or app name from showing up as we already have one in the narrow top nav.\n appName: undefined,\n logoProps: undefined,\n },\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n isCollapsed={false}\n isCollapsible={false}\n isObtrusive\n onCollapse={closeSideMenus}\n />\n </StyledSideNavContainer>\n </ErrorBoundary>\n )}\n </StyledLeftSideContainer>\n\n <StyledRightSideContainer\n isOpen={isRightSideMenuOpen}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <StyledSideNavContainer>\n {optionalComponents?.rightSideMenu}\n </StyledSideNavContainer>\n </StyledRightSideContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledAppContentArea>\n </StyledUiShellContainer>\n </>\n );\n};\n\nconst MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);\nMemoizedNarrowUiShellContent.displayName = \"NarrowUiShellContent\";\n\nexport { MemoizedNarrowUiShellContent as NarrowUiShellContent };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAQA,IAAAE,mBAAA,GAAAF,OAAA;AAIA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,2BAAA,GAAAR,OAAA;AAIA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,kBAAA,GAAAZ,OAAA;AAKA,IAAAa,YAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AACA,IAAAe,uBAAA,GAAAf,OAAA;AAOA,IAAAgB,mCAAA,GAAAhB,OAAA;AACA,IAAAiB,eAAA,GAAAjB,OAAA;AAAqD,IAAAkB,WAAA,GAAAlB,OAAA;AAAA,SAAAD,uBAAAoB,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AApDrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4CA,MAAMG,oBAAoB,GAAG,IAAAC,eAAM,EAAC,KAAK,CAAC,CAAC;EACzCC,QAAQ,EAAE,aAAa;EACvBC,QAAQ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AACvG,wBAAwB;UACvBH,MAAM,EAAEkF,mBAAoB;UAC5B9E,mBAAmB,EAAEA,mBAAoB;UAAAqG,QAAA,EAEzC,IAAA7H,WAAA,CAAA8H,GAAA,EAAChF,sBAAsB;YAAA+E,QAAA,EACpBvC,kBAAkB,EAAE0D;UAAa,CACZ;QAAC,CACD,CAAC,EAE3B,IAAAhJ,WAAA,CAAA8H,GAAA,EAACpH,kBAAkB;UACjBG,kBAAkB,EAAE+E,cAAc,EAAE/E,kBAAmB;UACvDmH,GAAG,EAAE9B,iBAAkB;UACvB6D,QAAQ,EAAE,CAAE;UAAAlC,QAAA,EAEZ,IAAA7H,WAAA,CAAA8H,GAAA,EAACvI,kBAAA,CAAAyK,iBAAiB;YAAC1G,iBAAiB,EAAEA;UAAkB,CAAE;QAAC,CACzC,CAAC;MAAA,CACD,CAAC;IAAA,CACD,CAAC;EAAA,CACzB,CAAC;AAEP,CAAC;AAED,MAAM2G,4BAA4B,GAAAC,OAAA,CAAAtF,oBAAA,GAAG,IAAAuF,WAAI,EAACvF,oBAAoB,CAAC;AAC/DqF,4BAA4B,CAACG,WAAW,sDAAyB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"NarrowUiShellContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_reactErrorBoundary","_Button","_hexToRgb","_i18n","_Close","_More","_OdysseyDesignTokensContext","_InnerAppContainer","_SideNav","_SkipToContent","_HamburgerMenuIcon","_UiShellLogo","_UiShellProvider","_uiShellSharedConstants","_useMatchAppElementToUiShellAppArea","_useScrollState","_jsxRuntime","e","__esModule","default","StyledAppContentArea","styled","gridArea","position","height","width","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","overflow","StyledBannersContainer","zIndex","UI_SHELL_BASE_Z_INDEX","StyledLeftSideContainer","isOpen","display","UI_SHELL_OVERLAY_Z_INDEX","StyledRightSideContainer","odysseyDesignTokens","HueNeutralWhite","maxWidth","SIDE_NAV_WIDTH","overflowY","right","StyledMenuLogo","alignItems","gap","Spacing3","StyledLogoContainer","TOP_NAV_HEIGHT","paddingBlock","Spacing4","maxHeight","StyledPageOverlay","hexToRgb","HueNeutral900","asFormattedString","replace","left","top","StyledSideNavContainer","StyledUiShellContainer","HueNeutral50","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","StyledTopNav","isContentScrolled","topNavBackgroundColor","boxShadow","DepthMedium","undefined","clipPath","flexDirection","justifyContent","transition","TransitionDurationMain","TransitionTimingMain","StyledTopNavMenu","minHeight","Spacing2","paddingInline","borderBottomColor","HueNeutral100","borderBottomStyle","BorderStyleMain","borderBottomWidth","BorderWidthMain","StyledTopNavSearch","NarrowUiShellContent","appElement","appElementScrollingMode","hasSideNavProps","hasStandardAppContentPadding","initialVisibleSections","logoProps","onError","console","error","optionalComponents","sideNavProps","topNavProps","t","useTranslation","useOdysseyDesignTokens","uiShellContext","useUiShellContext","useScrollState","sideNavContainerRef","useRef","topNavContainerRef","uiShellAppAreaRef","leftSideContainerRef","leftSideMenuToggleRef","leftSideContainerId","useId","isLeftSideMenuOpen","setIsLeftSideMenuOpen","useState","isRightSideMenuOpen","setIsRightSideMenuOpen","closeSideMenus","useCallback","useEffect","unsubscribeFromCloseRightSideMenu","subscribeToCloseRightSideMenu","unsubscribeFromSideNavItemClicked","subscribeToCloseSideNavMenu","toggleLeftSideMenu","toggleRightSideMenu","isLeftSideMenuOpenRef","current","focus","handleKeyDown","event","key","document","addEventListener","removeEventListener","parentContainerRef","useMatchAppElementToUiShellAppArea","paddingMode","uiShellResizableRefs","jsxs","Fragment","children","jsx","onClick","ref","SkipToContent","banners","includes","ErrorBoundary","fallback","sideNavBackgroundColor","isCollapsible","isCollapsed","Button","ariaControls","ariaExpanded","ariaLabel","buttonRef","startIcon","HamburgerMenuIcon","testId","variant","UiShellLogo","rightSideMenu","CloseIcon","MoreIcon","topNavLeftSide","id","tabIndex","SideNav","isLoading","sideNavItems","emptySideNavItems","appName","hasCustomFooter","sideNavFooter","footerComponent","footerItems","isObtrusive","onCollapse","InnerAppContainer","MemoizedNarrowUiShellContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/NarrowUiShellContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport {\n CSSProperties,\n memo,\n useCallback,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\nimport type { FocusHandle } from \"../inputUtils.js\";\n\nimport { Button } from \"../Buttons/Button.js\";\nimport { hexToRgb } from \"../hexToRgb.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { CloseIcon } from \"../icons.generated/Close.js\";\nimport { MoreIcon } from \"../icons.generated/More.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { HamburgerMenuIcon } from \"./TopNav/HamburgerMenuIcon.js\";\nimport {\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellLogo } from \"./UiShellLogo.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport {\n emptySideNavItems,\n SIDE_NAV_WIDTH,\n TOP_NAV_HEIGHT,\n UI_SHELL_BASE_Z_INDEX,\n UI_SHELL_OVERLAY_Z_INDEX,\n} from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst StyledAppContentArea = styled(\"div\")({\n gridArea: \"app-content\",\n position: \"relative\",\n height: \"100%\",\n width: \"100%\",\n});\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n height: \"100%\",\n overflow: \"hidden\",\n width: \"100%\",\n}));\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n});\n\nconst StyledLeftSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"isOpen\",\n})<{\n isOpen: boolean;\n}>(({ isOpen }) => ({\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n position: \"absolute\",\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledRightSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"isOpen\" && prop !== \"odysseyDesignTokens\",\n})<{\n isOpen: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isOpen, odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n maxWidth: SIDE_NAV_WIDTH,\n overflowY: \"auto\",\n position: \"absolute\",\n right: 0,\n width: SIDE_NAV_WIDTH,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledMenuLogo = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"inline-flex\",\n gap: odysseyDesignTokens.Spacing3,\n}));\n\nconst StyledLogoContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n height: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing4,\n\n \"svg, img\": {\n maxHeight: \"100%\",\n width: \"auto\",\n maxWidth: \"100%\",\n },\n}));\n\nconst StyledPageOverlay = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: hexToRgb(\n odysseyDesignTokens.HueNeutral900,\n ).asFormattedString.replace(/rgb\\((.+)\\)$/, \"rgba($1, 0.26)\"),\n gridArea: \"app-content\",\n height: \"100vh\",\n left: 0,\n position: \"absolute\",\n top: 0,\n width: \"100vw\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledSideNavContainer = styled(\"div\")({\n height: \"100%\", // Without this value, side nav won't fill up the height if the content is too short.\n});\n\nconst StyledUiShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners\"\n \"top-nav\"\n \"app-content\"\n `,\n gridTemplateColumns: \"1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n overflow: \"hidden\",\n width: \"100vw\",\n}));\n\nconst StyledTopNav = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"isContentScrolled\" &&\n prop !== \"topNavBackgroundColor\",\n})<{\n isContentScrolled?: boolean;\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, isContentScrolled, topNavBackgroundColor }) => ({\n alignItems: \"stretch\",\n backgroundColor: odysseyDesignTokens.HueNeutralWhite || topNavBackgroundColor, // This logic doesn't make sense, but I wanted to leave it here for when we eventually make a decision on `topNavBackgroundColor`. --Kevin Ghadyani\n boxShadow: isContentScrolled ? odysseyDesignTokens.DepthMedium : undefined,\n clipPath: \"inset(0 0 -100vh 0)\",\n display: \"flex\",\n flexDirection: \"column\",\n gridArea: \"top-nav\",\n height: \"100%\",\n justifyContent: \"center\",\n position: \"relative\",\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledTopNavMenu = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"topNavBackgroundColor\",\n})<{\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, topNavBackgroundColor }) => ({\n alignItems: \"center\",\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n height: \"100%\",\n justifyContent: \"space-between\",\n maxHeight: TOP_NAV_HEIGHT,\n minHeight: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n\n ...(topNavBackgroundColor === odysseyDesignTokens.HueNeutralWhite &&\n ({\n borderBottomColor: odysseyDesignTokens.HueNeutral100,\n borderBottomStyle: odysseyDesignTokens.BorderStyleMain,\n borderBottomWidth: odysseyDesignTokens.BorderWidthMain,\n } as CSSProperties)),\n}));\n\nconst StyledTopNavSearch = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n}));\n\nexport type NarrowUiShellContentProps = Pick<HtmlProps, \"testId\"> &\n Pick<UiShellNavComponentProps, \"logoProps\" | \"sideNavProps\" | \"topNavProps\"> &\n UiShellContentProps;\n\nconst NarrowUiShellContent = ({\n appElement,\n appElementScrollingMode,\n hasSideNavProps,\n hasStandardAppContentPadding = true,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n logoProps,\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: NarrowUiShellContentProps) => {\n const { t } = useTranslation();\n\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const leftSideContainerRef = useRef<HTMLDivElement>(null);\n const leftSideMenuToggleRef = useRef<FocusHandle>(null);\n const leftSideContainerId = useId();\n\n const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = useState(false);\n const [isRightSideMenuOpen, setIsRightSideMenuOpen] = useState(false);\n\n const closeSideMenus = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen(false);\n }, []);\n\n useEffect(() => {\n const unsubscribeFromCloseRightSideMenu =\n uiShellContext?.subscribeToCloseRightSideMenu(() => {\n closeSideMenus();\n });\n\n const unsubscribeFromSideNavItemClicked =\n uiShellContext?.subscribeToCloseSideNavMenu(() => {\n closeSideMenus();\n });\n\n return () => {\n unsubscribeFromCloseRightSideMenu?.();\n unsubscribeFromSideNavItemClicked?.();\n };\n }, [closeSideMenus, uiShellContext]);\n\n const toggleLeftSideMenu = useCallback(() => {\n setIsRightSideMenuOpen(false);\n setIsLeftSideMenuOpen((isLeftSideMenuOpen) => !isLeftSideMenuOpen);\n }, []);\n\n const toggleRightSideMenu = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen((isRightSideMenuOpen) => !isRightSideMenuOpen);\n }, []);\n\n // WCAG 1.3.2: when the left nav opens, focus must move into it so screen\n // reader and keyboard users land on the newly revealed content instead of\n // being stranded on the header. On close we return focus to the toggle\n // (disclosure pattern) — the container is `display: none` by the time this\n // effect runs, so its children can no longer hold focus and we cannot rely\n // on an activeElement containment check.\n const isLeftSideMenuOpenRef = useRef(false);\n\n useEffect(() => {\n if (isLeftSideMenuOpen) {\n leftSideContainerRef.current?.focus();\n } else if (isLeftSideMenuOpenRef.current) {\n leftSideMenuToggleRef.current?.focus();\n }\n\n isLeftSideMenuOpenRef.current = isLeftSideMenuOpen;\n }, [isLeftSideMenuOpen]);\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closeSideMenus();\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [closeSideMenus]);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"compact\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <>\n {(isLeftSideMenuOpen || isRightSideMenuOpen) && (\n <StyledPageOverlay\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={closeSideMenus}\n />\n )}\n\n <StyledUiShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n {(initialVisibleSections?.includes(\"TopNav\") || topNavProps) && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledTopNav\n isContentScrolled={isContentScrolled}\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.topNavBackgroundColor}\n >\n <StyledTopNavMenu\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.sideNavBackgroundColor}\n >\n <StyledMenuLogo odysseyDesignTokens={odysseyDesignTokens}>\n {hasSideNavProps &&\n (sideNavProps?.isCollapsible ||\n !sideNavProps?.isCollapsed) && (\n <Button\n ariaControls={leftSideContainerId}\n ariaExpanded={isLeftSideMenuOpen}\n ariaLabel={t(\"topnav.sidenavmenu.toggle\")}\n buttonRef={leftSideMenuToggleRef}\n onClick={toggleLeftSideMenu}\n startIcon={<HamburgerMenuIcon />}\n testId=\"sidenav-menu--icon\"\n variant=\"floating\"\n />\n )}\n\n <StyledLogoContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <UiShellLogo {...(sideNavProps?.logoProps || logoProps)} />\n </StyledLogoContainer>\n </StyledMenuLogo>\n\n {optionalComponents?.rightSideMenu && (\n <Button\n ariaLabel={t(\"topnav.usermenu.toggle\")}\n onClick={toggleRightSideMenu}\n startIcon={\n isRightSideMenuOpen ? <CloseIcon /> : <MoreIcon />\n }\n testId=\"userprofile-menu--icon\"\n variant=\"floating\"\n />\n )}\n </StyledTopNavMenu>\n\n {optionalComponents?.topNavLeftSide && (\n <StyledTopNavSearch odysseyDesignTokens={odysseyDesignTokens}>\n {optionalComponents?.topNavLeftSide}\n </StyledTopNavSearch>\n )}\n </StyledTopNav>\n </ErrorBoundary>\n )}\n\n <StyledAppContentArea>\n <StyledLeftSideContainer\n id={leftSideContainerId}\n isOpen={isLeftSideMenuOpen}\n ref={leftSideContainerRef}\n tabIndex={-1}\n >\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") &&\n !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledSideNavContainer>\n <SideNav\n {...{\n ...{\n ...sideNavProps,\n // This hides the side nav logo or app name from showing up as we already have one in the narrow top nav.\n appName: undefined,\n logoProps: undefined,\n },\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n isCollapsed={false}\n isCollapsible={false}\n isObtrusive\n onCollapse={closeSideMenus}\n />\n </StyledSideNavContainer>\n </ErrorBoundary>\n )}\n </StyledLeftSideContainer>\n\n <StyledRightSideContainer\n isOpen={isRightSideMenuOpen}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <StyledSideNavContainer>\n {optionalComponents?.rightSideMenu}\n </StyledSideNavContainer>\n </StyledRightSideContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledAppContentArea>\n </StyledUiShellContainer>\n </>\n );\n};\n\nconst MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);\nMemoizedNarrowUiShellContent.displayName = \"NarrowUiShellContent\";\n\nexport { MemoizedNarrowUiShellContent as NarrowUiShellContent };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AASA,IAAAE,mBAAA,GAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAAA;AACA,IAAAQ,2BAA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rB2B,WAAW;gBACXC,UAAU,EAAE9D;cAAe,CAC5B;YAAC,CACoB;UAAC,CACZ,CAChB;QAAA,CACsB,CAAC,EAE1B,IAAA5G,WAAA,CAAAqI,GAAA,EAAC9G,wBAAwB;UACvBH,MAAM,EAAEsF,mBAAoB;UAC5BlF,mBAAmB,EAAEA,mBAAoB;UAAA4G,QAAA,EAEzC,IAAApI,WAAA,CAAAqI,GAAA,EAACvF,sBAAsB;YAAAsF,QAAA,EACpB9C,kBAAkB,EAAEoE;UAAa,CACZ;QAAC,CACD,CAAC,EAE3B,IAAA1J,WAAA,CAAAqI,GAAA,EAAC3H,kBAAkB;UACjBG,kBAAkB,EAAE+E,cAAc,EAAE/E,kBAAmB;UACvD0H,GAAG,EAAErC,iBAAkB;UACvB6D,QAAQ,EAAE,CAAE;UAAA3B,QAAA,EAEZ,IAAApI,WAAA,CAAAqI,GAAA,EAAC9I,kBAAA,CAAAoL,iBAAiB;YAACrH,iBAAiB,EAAEA;UAAkB,CAAE;QAAC,CACzC,CAAC;MAAA,CACD,CAAC;IAAA,CACD,CAAC;EAAA,CACzB,CAAC;AAEP,CAAC;AAED,MAAMsH,4BAA4B,GAAAC,OAAA,CAAAjG,oBAAA,GAAG,IAAAkG,WAAI,EAAClG,oBAAoB,CAAC;AAC/DgG,4BAA4B,CAACG,WAAW,sDAAyB","ignoreList":[]}
|
|
@@ -170,5 +170,5 @@ const NavAccordion = ({
|
|
|
170
170
|
});
|
|
171
171
|
};
|
|
172
172
|
const MemoizedNavAccordion = exports.NavAccordion = (0, _react.memo)(NavAccordion);
|
|
173
|
-
MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.
|
|
173
|
+
MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.65.1";
|
|
174
174
|
//# sourceMappingURL=NavAccordion.cjs.map
|