@okta/odyssey-react-mui 1.71.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -0
- package/dist/cjs/Accordion.cjs +1 -1
- package/dist/cjs/AnimationContext.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 +6 -2
- package/dist/cjs/Buttons/BaseButton.cjs.map +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 -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 +10 -3
- package/dist/cjs/Dialog.cjs.map +1 -1
- package/dist/cjs/Drawer.cjs +13 -3
- 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 +17 -13
- package/dist/cjs/FullScreenOverlay.cjs.map +1 -1
- package/dist/cjs/FullScreenOverlayContext.cjs +19 -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 +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 +1 -2
- 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/backdropStack.cjs +75 -0
- package/dist/cjs/backdropStack.cjs.map +1 -0
- package/dist/cjs/charts/BarChart.cjs +1 -1
- package/dist/cjs/charts/LineChart.cjs +1 -1
- package/dist/cjs/charts/components/ChartError.cjs +1 -1
- package/dist/cjs/charts/components/ChartFrame.cjs +1 -1
- package/dist/cjs/charts/components/ChartPopoverContent.cjs +1 -1
- package/dist/cjs/charts/utils/useStableValue.cjs +5 -3
- package/dist/cjs/charts/utils/useStableValue.cjs.map +1 -1
- package/dist/cjs/fullscreen/FullscreenButton.cjs +55 -0
- package/dist/cjs/fullscreen/FullscreenButton.cjs.map +1 -0
- package/dist/cjs/fullscreen/FullscreenRegion.cjs +407 -0
- package/dist/cjs/fullscreen/FullscreenRegion.cjs.map +1 -0
- package/dist/cjs/fullscreen/easeFullscreenTransition.cjs +19 -0
- package/dist/cjs/fullscreen/easeFullscreenTransition.cjs.map +1 -0
- package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs +60 -0
- package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs.map +1 -0
- package/dist/cjs/fullscreen/useFullscreen.cjs +116 -0
- package/dist/cjs/fullscreen/useFullscreen.cjs.map +1 -0
- package/dist/cjs/fullscreen/useFullscreenId.cjs +21 -0
- package/dist/cjs/fullscreen/useFullscreenId.cjs.map +1 -0
- 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/FullscreenEnter.cjs +39 -0
- package/dist/cjs/icons.generated/FullscreenEnter.cjs.map +1 -0
- package/dist/cjs/icons.generated/FullscreenExit.cjs +39 -0
- package/dist/cjs/icons.generated/FullscreenExit.cjs.map +1 -0
- 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/icons.generated/index.cjs +22 -0
- package/dist/cjs/icons.generated/index.cjs.map +1 -1
- package/dist/cjs/icons.generated/lazyIconDictionary.cjs +6 -0
- package/dist/cjs/icons.generated/lazyIconDictionary.cjs.map +1 -1
- package/dist/cjs/icons.generated/names.cjs +1 -1
- package/dist/cjs/icons.generated/names.cjs.map +1 -1
- package/dist/cjs/index.cjs +47 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/isDeepEqual.cjs +93 -0
- package/dist/cjs/isDeepEqual.cjs.map +1 -0
- package/dist/cjs/labs/AppTile.cjs +1 -1
- package/dist/cjs/labs/DataFilters.cjs +2 -2
- 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 +6 -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/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/message-bus/createBrowserMessageBus.cjs +78 -0
- package/dist/cjs/message-bus/createBrowserMessageBus.cjs.map +1 -0
- package/dist/cjs/message-bus/createMessageChannel.cjs +38 -0
- package/dist/cjs/message-bus/createMessageChannel.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs +24 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs +99 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs +76 -0
- package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs +35 -0
- package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs +60 -0
- package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs.map +1 -0
- package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs +51 -0
- package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs.map +1 -0
- package/dist/cjs/message-bus/index.cjs +111 -0
- package/dist/cjs/message-bus/index.cjs.map +1 -0
- package/dist/cjs/message-bus/messageGuards.cjs +23 -0
- package/dist/cjs/message-bus/messageGuards.cjs.map +1 -0
- package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs +21 -0
- package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs.map +1 -0
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +6 -2
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +6 -2
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +7 -3
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +6 -2
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +6 -2
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +9 -5
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +4 -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 +4 -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 +4 -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 +4 -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 +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +10 -6
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +5 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +5 -1
- 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 +4 -0
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
- package/dist/cjs/theme/components/Backdrop.cjs +2 -1
- package/dist/cjs/theme/components/Backdrop.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 +32 -2
- 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 +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 +2 -2
- package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
- 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 +11 -1
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +40 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
- package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs +66 -0
- package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs.map +1 -0
- package/dist/cjs/ui-shell/renderUiShell.cjs +23 -0
- package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs +74 -0
- package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs.map +1 -0
- package/dist/cjs/useStackedBackdropProps.cjs +40 -0
- package/dist/cjs/useStackedBackdropProps.cjs.map +1 -0
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/esm/Accordion.js +1 -1
- package/dist/esm/AnimationContext.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 +6 -2
- package/dist/esm/Buttons/BaseButton.js.map +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 -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 +10 -3
- package/dist/esm/Dialog.js.map +1 -1
- package/dist/esm/Drawer.js +13 -3
- 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 +18 -12
- package/dist/esm/FullScreenOverlay.js.map +1 -1
- package/dist/esm/FullScreenOverlayContext.js +19 -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 +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 +1 -2
- 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/backdropStack.js +68 -0
- package/dist/esm/backdropStack.js.map +1 -0
- package/dist/esm/charts/BarChart.js +1 -1
- package/dist/esm/charts/LineChart.js +1 -1
- package/dist/esm/charts/components/ChartError.js +1 -1
- package/dist/esm/charts/components/ChartFrame.js +1 -1
- package/dist/esm/charts/components/ChartPopoverContent.js +1 -1
- package/dist/esm/charts/utils/useStableValue.js +5 -2
- package/dist/esm/charts/utils/useStableValue.js.map +1 -1
- package/dist/esm/fullscreen/FullscreenButton.js +52 -0
- package/dist/esm/fullscreen/FullscreenButton.js.map +1 -0
- package/dist/esm/fullscreen/FullscreenRegion.js +404 -0
- package/dist/esm/fullscreen/FullscreenRegion.js.map +1 -0
- package/dist/esm/fullscreen/easeFullscreenTransition.js +12 -0
- package/dist/esm/fullscreen/easeFullscreenTransition.js.map +1 -0
- package/dist/esm/fullscreen/getBackgroundColorBehindElement.js +53 -0
- package/dist/esm/fullscreen/getBackgroundColorBehindElement.js.map +1 -0
- package/dist/esm/fullscreen/useFullscreen.js +110 -0
- package/dist/esm/fullscreen/useFullscreen.js.map +1 -0
- package/dist/esm/fullscreen/useFullscreenId.js +16 -0
- package/dist/esm/fullscreen/useFullscreenId.js.map +1 -0
- 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/FullscreenEnter.js +34 -0
- package/dist/esm/icons.generated/FullscreenEnter.js.map +1 -0
- package/dist/esm/icons.generated/FullscreenExit.js +34 -0
- package/dist/esm/icons.generated/FullscreenExit.js.map +1 -0
- 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/icons.generated/index.js +2 -0
- package/dist/esm/icons.generated/index.js.map +1 -1
- package/dist/esm/icons.generated/lazyIconDictionary.js +6 -0
- package/dist/esm/icons.generated/lazyIconDictionary.js.map +1 -1
- package/dist/esm/icons.generated/names.js +1 -1
- package/dist/esm/icons.generated/names.js.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isDeepEqual.js +86 -0
- package/dist/esm/isDeepEqual.js.map +1 -0
- package/dist/esm/labs/AppTile.js +1 -1
- package/dist/esm/labs/DataFilters.js +2 -2
- 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 +6 -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/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/message-bus/createBrowserMessageBus.js +72 -0
- package/dist/esm/message-bus/createBrowserMessageBus.js.map +1 -0
- package/dist/esm/message-bus/createMessageChannel.js +33 -0
- package/dist/esm/message-bus/createMessageChannel.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenId.js +18 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenId.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js +92 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js +69 -0
- package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js +29 -0
- package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/fullscreenState.js +46 -0
- package/dist/esm/message-bus/fullscreen/fullscreenState.js.map +1 -0
- package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js +44 -0
- package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js.map +1 -0
- package/dist/esm/message-bus/index.js +22 -0
- package/dist/esm/message-bus/index.js.map +1 -0
- package/dist/esm/message-bus/messageGuards.js +14 -0
- package/dist/esm/message-bus/messageGuards.js.map +1 -0
- package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js +15 -0
- package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js.map +1 -0
- package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_de.js +6 -2
- package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js +6 -2
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js +7 -3
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js +6 -2
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js +6 -2
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js +9 -5
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +4 -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 +4 -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 +4 -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 +4 -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 +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js +10 -6
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js +5 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +5 -1
- 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 +4 -0
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/esm/theme/components/Backdrop.js +2 -1
- package/dist/esm/theme/components/Backdrop.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 +32 -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 +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 +2 -2
- package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
- 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 +11 -1
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/ui-shell/UiShellLogo.js +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +40 -1
- package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
- package/dist/esm/ui-shell/createUiShellFullscreenState.js +61 -0
- package/dist/esm/ui-shell/createUiShellFullscreenState.js.map +1 -0
- package/dist/esm/ui-shell/renderUiShell.js +23 -0
- package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
- package/dist/esm/ui-shell/useFullscreenChromeCollapse.js +69 -0
- package/dist/esm/ui-shell/useFullscreenChromeCollapse.js.map +1 -0
- package/dist/esm/useStackedBackdropProps.js +35 -0
- package/dist/esm/useStackedBackdropProps.js.map +1 -0
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Buttons/BaseButton.d.ts +6 -2
- package/dist/types/Buttons/BaseButton.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/FullScreenOverlay.d.ts +4 -1
- package/dist/types/FullScreenOverlay.d.ts.map +1 -1
- package/dist/types/FullScreenOverlayContext.d.ts +5 -0
- package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
- package/dist/types/backdropStack.d.ts +41 -0
- package/dist/types/backdropStack.d.ts.map +1 -0
- package/dist/types/charts/utils/useStableValue.d.ts.map +1 -1
- package/dist/types/fullscreen/FullscreenButton.d.ts +26 -0
- package/dist/types/fullscreen/FullscreenButton.d.ts.map +1 -0
- package/dist/types/fullscreen/FullscreenRegion.d.ts +25 -0
- package/dist/types/fullscreen/FullscreenRegion.d.ts.map +1 -0
- package/dist/types/fullscreen/easeFullscreenTransition.d.ts +14 -0
- package/dist/types/fullscreen/easeFullscreenTransition.d.ts.map +1 -0
- package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts +22 -0
- package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts.map +1 -0
- package/dist/types/fullscreen/useFullscreen.d.ts +68 -0
- package/dist/types/fullscreen/useFullscreen.d.ts.map +1 -0
- package/dist/types/fullscreen/useFullscreenId.d.ts +18 -0
- package/dist/types/fullscreen/useFullscreenId.d.ts.map +1 -0
- package/dist/types/i18n.generated/i18n.d.ts +8 -0
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts +154 -30
- package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
- package/dist/types/icons.generated/FullscreenEnter.d.ts +16 -0
- package/dist/types/icons.generated/FullscreenEnter.d.ts.map +1 -0
- package/dist/types/icons.generated/FullscreenExit.d.ts +16 -0
- package/dist/types/icons.generated/FullscreenExit.d.ts.map +1 -0
- package/dist/types/icons.generated/index.d.ts +2 -0
- package/dist/types/icons.generated/index.d.ts.map +1 -1
- package/dist/types/icons.generated/lazyIconDictionary.d.ts.map +1 -1
- package/dist/types/icons.generated/names.d.ts +1 -1
- package/dist/types/icons.generated/names.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/isDeepEqual.d.ts +22 -0
- package/dist/types/isDeepEqual.d.ts.map +1 -0
- package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
- package/dist/types/message-bus/createBrowserMessageBus.d.ts +56 -0
- package/dist/types/message-bus/createBrowserMessageBus.d.ts.map +1 -0
- package/dist/types/message-bus/createMessageChannel.d.ts +81 -0
- package/dist/types/message-bus/createMessageChannel.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts +22 -0
- package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts +44 -0
- package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts +55 -0
- package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts +49 -0
- package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/fullscreenState.d.ts +66 -0
- package/dist/types/message-bus/fullscreen/fullscreenState.d.ts.map +1 -0
- package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts +31 -0
- package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts.map +1 -0
- package/dist/types/message-bus/index.d.ts +21 -0
- package/dist/types/message-bus/index.d.ts.map +1 -0
- package/dist/types/message-bus/messageGuards.d.ts +24 -0
- package/dist/types/message-bus/messageGuards.d.ts.map +1 -0
- package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts +21 -0
- package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts.map +1 -0
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -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 +4 -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 +5 -1
- 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 +6 -2
- 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 +4 -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 +5 -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 +4 -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 +5 -1
- 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 +5 -1
- 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 +6 -2
- 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 +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +4 -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 +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +7 -3
- 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 +6 -2
- 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 +6 -2
- 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 +9 -5
- 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 +4 -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 +4 -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 +4 -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 +4 -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 +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +4 -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 +5 -1
- 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 +10 -6
- 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 +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +5 -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 +5 -1
- 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 +5 -1
- 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 +4 -0
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/types/theme/components/Backdrop.d.ts.map +1 -1
- package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShell.d.ts +7 -1
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
- package/dist/types/ui-shell/createUiShellFullscreenState.d.ts +50 -0
- package/dist/types/ui-shell/createUiShellFullscreenState.d.ts.map +1 -0
- package/dist/types/ui-shell/renderUiShell.d.ts +25 -0
- package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts +29 -0
- package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts.map +1 -0
- package/dist/types/useStackedBackdropProps.d.ts +36 -0
- package/dist/types/useStackedBackdropProps.d.ts.map +1 -0
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/package.json +20 -25
- package/src/properties/odyssey-react-mui.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_cs.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_da.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_de.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_el.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_es.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_eu.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_fi.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_fr.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ht.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_hu.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_id.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_it.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ja.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ko.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ms.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_nb.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_nl_NL.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ok_PL.properties +147 -0
- package/src/properties/translations/odyssey-react-mui_ok_SK.properties +147 -0
- package/src/properties/translations/odyssey-react-mui_pl.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_pt_BR.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ro.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_ru.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_sv.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_th.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_tr.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_uk.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_vi.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_zh_CN.properties +156 -0
- package/src/properties/translations/odyssey-react-mui_zh_TW.properties +156 -0
- package/src/properties/ts/odyssey-react-mui.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_cs.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_da.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_de.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_el.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_es.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_eu.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_fi.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_fr.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ht.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_hu.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_id.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_it.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ja.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ko.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ms.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_nb.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_pl.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ro.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_ru.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_sv.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_th.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_tr.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_uk.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_vi.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -0
- package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -0
- package/dist/cjs/tools/createBrowserMessageBus.cjs +0 -48
- package/dist/cjs/tools/createBrowserMessageBus.cjs.map +0 -1
- package/dist/esm/tools/createBrowserMessageBus.js +0 -41
- package/dist/esm/tools/createBrowserMessageBus.js.map +0 -1
- package/dist/types/tools/createBrowserMessageBus.d.ts +0 -45
- package/dist/types/tools/createBrowserMessageBus.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderUiShell.cjs","names":["_reactErrorBoundary","require","_bufferLatest","_createMessageBus","_renderReactInWebComponent","_UiShell","_useHasUiShell","_jsxRuntime","optionalComponentSlotNames","exports","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","languageCode","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","translationOverrides","nonce","window","cspNonce","document","createElement","setAttribute","uiShellDataAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","createMessageBus","publishTranslationSettings","subscribeToTranslationSettings","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","bufferLatest","publishAfterReactAppReadyForTranslationSettings","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","renderReactInWebComponent","getReactComponent","reactRootElements","jsx","ErrorBoundary","fallback","children","UiShell","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","setTranslationSettings","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-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 SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { bufferLatest } from \"../tools/bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"../tools/createMessageBus.js\";\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\nimport {\n UiShell,\n UiShellProps,\n UiShellTranslationSettings,\n} from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n /**\n * Update the shell's translation settings (`languageCode`, `translationOverrides`) at runtime.\n *\n * Call this after the consumer's locale changes to re-localize shell-rendered chrome (skip-to-content link, top nav icons, side nav toggle) without re-rendering UI Shell.\n *\n * Accepts a React `SetStateAction`: passing a plain object **replaces** the entire settings value (so omitting `translationOverrides` clears it). Pass an updater function — `(previous) => ({ ...previous, languageCode: \"es\" })` — to merge with\n * the previous value.\n */\n setTranslationSettings: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellTranslationSettings>>\n >;\n slottedElements: SlottedElements;\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n languageCode,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n translationOverrides,\n nonce = window.cspNonce,\n}: {\n /**\n * Optional nonce for CSP compliance.\n */\n nonce?: string;\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<UiShellTranslationSettings> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishTranslationSettings,\n subscribe: subscribeToTranslationSettings,\n } = createMessageBus<SetStateAction<UiShellTranslationSettings>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const publishAfterReactAppReadyForTranslationSettings = bufferLatest({\n publish: publishTranslationSettings,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n publishAfterReactAppReadyForTranslationSettings({\n languageCode,\n translationOverrides,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n breakpointConfig={breakpointConfig}\n closeSideNavMenu={closeSideNavMenu}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n subscribeToTranslationSettings={subscribeToTranslationSettings}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n nonce,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n uiShellElement,\n };\n};\n"],"mappings":";;;;;;AAaA,IAAAA,mBAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAMA,IAAAK,cAAA,GAAAL,OAAA;AAA0D,IAAAM,WAAA,GAAAN,OAAA;AAxB1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBO,MAAMO,0BAGZ,GAAAC,OAAA,CAAAD,0BAAA,GAAG;EACFE,OAAO,EAAE,SAAS;EAClBC,aAAa,EAAE,iBAAiB;EAChCC,aAAa,EAAE,iBAA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["_reactErrorBoundary","require","_bufferLatest","_createMessageBus","_renderReactInWebComponent","_createUiShellFullscreenState","_UiShell","_useHasUiShell","_jsxRuntime","optionalComponentSlotNames","exports","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","languageCode","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","translationOverrides","nonce","window","cspNonce","document","createElement","setAttribute","uiShellDataAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","createMessageBus","publishTranslationSettings","subscribeToTranslationSettings","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","bufferLatest","publishAfterReactAppReadyForTranslationSettings","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","connect","connectFullscreenState","enterAppFullscreen","enterAppFullscreenNow","exitAppFullscreen","exitAppFullscreenNow","getFullscreenState","subscribeToFullscreenState","createUiShellFullscreenState","requestAfterReactAppReady","sendFullscreenRequest","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","renderReactInWebComponent","getReactComponent","reactRootElements","jsx","ErrorBoundary","fallback","children","UiShell","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","setTranslationSettings","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-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 SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { type FullscreenModeMessageBus } from \"../message-bus/index.js\";\nimport { bufferLatest } from \"../tools/bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"../tools/createMessageBus.js\";\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\nimport { createUiShellFullscreenState } from \"./createUiShellFullscreenState.js\";\nimport {\n UiShell,\n UiShellProps,\n UiShellTranslationSettings,\n} from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n /**\n * Put the whole app area in fullscreen. UI Shell hides its top nav, side nav, and banners so the app fills the page.\n *\n * Use this when your app isn't built with Odyssey's `FullscreenButton`, for example a non-React app.\n *\n * The app area is one more entry in the page's fullscreen stack, so a `FullscreenRegion` can enter on top of it, and Escape goes back one step at a time. Removing `uiShellElement` from the page clears the stack.\n */\n enterAppFullscreen: () => void;\n /**\n * Take the app area out of fullscreen. A `FullscreenRegion` that entered on top of it stays in fullscreen.\n */\n exitAppFullscreen: () => void;\n /**\n * The page's current fullscreen state.\n */\n getFullscreenState: FullscreenModeMessageBus[\"getFullscreenState\"];\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n /**\n * Update the shell's translation settings (`languageCode`, `translationOverrides`) at runtime.\n *\n * Call this after the consumer's locale changes to re-localize shell-rendered chrome (skip-to-content link, top nav icons, side nav toggle) without re-rendering UI Shell.\n *\n * Accepts a React `SetStateAction`: passing a plain object **replaces** the entire settings value (so omitting `translationOverrides` clears it). Pass an updater function — `(previous) => ({ ...previous, languageCode: \"es\" })` — to merge with\n * the previous value.\n */\n setTranslationSettings: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellTranslationSettings>>\n >;\n slottedElements: SlottedElements;\n /**\n * Listen for fullscreen changes anywhere on the page, including ones from other apps. Returns a function that stops listening.\n */\n subscribeToFullscreenState: FullscreenModeMessageBus[\"subscribeToFullscreenState\"];\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n languageCode,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n translationOverrides,\n nonce = window.cspNonce,\n}: {\n /**\n * Optional nonce for CSP compliance.\n */\n nonce?: string;\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<UiShellTranslationSettings> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishTranslationSettings,\n subscribe: subscribeToTranslationSettings,\n } = createMessageBus<SetStateAction<UiShellTranslationSettings>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const publishAfterReactAppReadyForTranslationSettings = bufferLatest({\n publish: publishTranslationSettings,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n publishAfterReactAppReadyForTranslationSettings({\n languageCode,\n translationOverrides,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const {\n connect: connectFullscreenState,\n enterAppFullscreen: enterAppFullscreenNow,\n exitAppFullscreen: exitAppFullscreenNow,\n getFullscreenState,\n subscribeToFullscreenState,\n } = createUiShellFullscreenState();\n\n // The page's fullscreen host starts when UI Shell's React tree renders, so a request made before then would reach no one. Like props, only the latest request is kept, so an enter followed by an exit leaves the app where it was.\n const requestAfterReactAppReady = bufferLatest<() => void>({\n publish: (sendFullscreenRequest) => sendFullscreenRequest(),\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const enterAppFullscreen = () =>\n requestAfterReactAppReady(enterAppFullscreenNow);\n\n const exitAppFullscreen = () =>\n requestAfterReactAppReady(exitAppFullscreenNow);\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n breakpointConfig={breakpointConfig}\n closeSideNavMenu={closeSideNavMenu}\n connectFullscreenState={connectFullscreenState}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n subscribeToTranslationSettings={subscribeToTranslationSettings}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n nonce,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n enterAppFullscreen,\n exitAppFullscreen,\n getFullscreenState,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n subscribeToFullscreenState,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n enterAppFullscreen,\n exitAppFullscreen,\n getFullscreenState,\n setComponentProps: publishAfterReactAppReadyForProps,\n setTranslationSettings: publishAfterReactAppReadyForTranslationSettings,\n slottedElements,\n subscribeToFullscreenState,\n uiShellElement,\n } satisfies RenderedUiShell;\n};\n"],"mappings":";;;;;;AAaA,IAAAA,mBAAA,GAAAC,OAAA;AAGA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,6BAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAMA,IAAAM,cAAA,GAAAN,OAAA;AAA0D,IAAAO,WAAA,GAAAP,OAAA;AA1B1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,MAAMQ,0BAGZ,GAAAC,OAAA,CAAAD,0BAAA,GAAG;EACFE,OAAO,EAAE,SAAS;EAClBC,aAAa,EAAE,iBAAiB;EAChCC,aAAa,EAAE,iBAAiB;EAChCC,cAAc,EAAE,mBAAmB;EACnCC,eAAe,EAAE;AACnB,CAAC;AAyDM,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,kBAAkB;EAClBC,yBAAyB;EACzBC,UAAU,EAAEC,kBAAkB;EA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D+C,sBAAsB,EAAE7C,+CAA+C;MACvEgB,eAAe;MACfJ,0BAA0B;MAC1Bc;IACF,CAAC,CAAC;EACJ,CACF,CAAC;EAEDjD,aAAa,CAACqE,WAAW,CAAChF,UAAU,CAAC;EAErC,OAAO;IACLA,UAAU;IACVmC,kBAAkB;IAClBE,gBAAgB;IAChBI,kBAAkB;IAClBE,iBAAiB;IACjBE,kBAAkB;IAClBiC,iBAAiB,EAAE9C,iCAAiC;IACpD+C,sBAAsB,EAAE7C,+CAA+C;IACvEgB,eAAe;IACfJ,0BAA0B;IAC1Bc;EACF,CAAC;AACH,CAAC;AAACrE,OAAA,CAAAM,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFullscreenChromeCollapse = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _AnimationContext = require("../AnimationContext.cjs");
|
|
9
|
+
var _fullscreenTransitionTokens = require("../pendingDesignTokens/fullscreenTransitionTokens.cjs");
|
|
10
|
+
/*!
|
|
11
|
+
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
12
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
13
|
+
*
|
|
14
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
17
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
*
|
|
19
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
20
|
+
*/const useFullscreenChromeCollapse = ({
|
|
21
|
+
chromeElementRef,
|
|
22
|
+
collapsedDimension,
|
|
23
|
+
isCollapsed
|
|
24
|
+
}) => {
|
|
25
|
+
const hasAnimations = (0, _AnimationContext.useAnimation)();
|
|
26
|
+
const [hasFinishedCollapsing, setHasFinishedCollapsing] = (0, _react.useState)(isCollapsed);
|
|
27
|
+
const previousIsCollapsedRef = (0, _react.useRef)(isCollapsed);
|
|
28
|
+
const interruptedSizeRef = (0, _react.useRef)(undefined);
|
|
29
|
+
(0, _react.useLayoutEffect)(() => {
|
|
30
|
+
const hasCollapseChanged = previousIsCollapsedRef.current !== isCollapsed;
|
|
31
|
+
previousIsCollapsedRef.current = isCollapsed;
|
|
32
|
+
if (!isCollapsed) {
|
|
33
|
+
setHasFinishedCollapsing(false);
|
|
34
|
+
}
|
|
35
|
+
const chromeElement = chromeElementRef.current;
|
|
36
|
+
if (!hasCollapseChanged || !hasAnimations || !chromeElement) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const expandedKeyframe = {
|
|
40
|
+
[collapsedDimension]: `${chromeElement.getBoundingClientRect()[collapsedDimension]}px`,
|
|
41
|
+
overflow: "hidden"
|
|
42
|
+
};
|
|
43
|
+
const collapsedKeyframe = {
|
|
44
|
+
[collapsedDimension]: "0px",
|
|
45
|
+
overflow: "hidden"
|
|
46
|
+
};
|
|
47
|
+
const interruptedSize = interruptedSizeRef.current;
|
|
48
|
+
interruptedSizeRef.current = undefined;
|
|
49
|
+
const restingStartKeyframe = isCollapsed ? expandedKeyframe : collapsedKeyframe;
|
|
50
|
+
const startKeyframe = interruptedSize === undefined ? restingStartKeyframe : {
|
|
51
|
+
[collapsedDimension]: `${interruptedSize}px`,
|
|
52
|
+
overflow: "hidden"
|
|
53
|
+
};
|
|
54
|
+
const chromeAnimation = chromeElement.animate(isCollapsed ? [startKeyframe, collapsedKeyframe] : [startKeyframe, expandedKeyframe], {
|
|
55
|
+
duration: _fullscreenTransitionTokens.fullscreenTransitionTokens.durationMilliseconds,
|
|
56
|
+
easing: _fullscreenTransitionTokens.fullscreenTransitionTokens.easing,
|
|
57
|
+
fill: isCollapsed ? "forwards" : "none"
|
|
58
|
+
});
|
|
59
|
+
if (isCollapsed) {
|
|
60
|
+
chromeAnimation.addEventListener("finish", () => {
|
|
61
|
+
setHasFinishedCollapsing(true);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return () => {
|
|
65
|
+
interruptedSizeRef.current = chromeAnimation.playState === "running" ? chromeElement.getBoundingClientRect()[collapsedDimension] : undefined;
|
|
66
|
+
chromeAnimation.cancel();
|
|
67
|
+
};
|
|
68
|
+
}, [chromeElementRef, collapsedDimension, hasAnimations, isCollapsed]);
|
|
69
|
+
return {
|
|
70
|
+
isChromeHidden: isCollapsed && (hasFinishedCollapsing || !hasAnimations)
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
exports.useFullscreenChromeCollapse = useFullscreenChromeCollapse;
|
|
74
|
+
//# sourceMappingURL=useFullscreenChromeCollapse.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFullscreenChromeCollapse.cjs","names":["_react","require","_AnimationContext","_fullscreenTransitionTokens","useFullscreenChromeCollapse","chromeElementRef","collapsedDimension","isCollapsed","hasAnimations","useAnimation","hasFinishedCollapsing","setHasFinishedCollapsing","useState","previousIsCollapsedRef","useRef","interruptedSizeRef","undefined","useLayoutEffect","hasCollapseChanged","current","chromeElement","expandedKeyframe","getBoundingClientRect","overflow","collapsedKeyframe","interruptedSize","restingStartKeyframe","startKeyframe","chromeAnimation","animate","duration","fullscreenTransitionTokens","durationMilliseconds","easing","fill","addEventListener","playState","cancel","isChromeHidden","exports"],"sources":["../../../src/ui-shell/useFullscreenChromeCollapse.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 { type RefObject, useLayoutEffect, useRef, useState } from \"react\";\n\nimport { useAnimation } from \"../AnimationContext.js\";\nimport { fullscreenTransitionTokens } from \"../pendingDesignTokens/fullscreenTransitionTokens.js\";\n\nexport type UseFullscreenChromeCollapseArgs = {\n /** The part of the shell that shrinks away while fullscreen is active. */\n chromeElementRef: RefObject<HTMLElement | null>;\n /** The side that shrinks: `height` for a bar across the shell, `width` for a column beside the app. */\n collapsedDimension: \"height\" | \"width\";\n /** If `true`, fullscreen is active and the chrome collapses. */\n isCollapsed: boolean;\n};\n\n/**\n * Shrinks a part of the shell to nothing when fullscreen starts, and grows it back when fullscreen ends, so the user can see where the navigation went.\n *\n * Returns `isChromeHidden`, which turns `true` only once the collapse has finished.\n */\nexport const useFullscreenChromeCollapse = ({\n chromeElementRef,\n collapsedDimension,\n isCollapsed,\n}: UseFullscreenChromeCollapseArgs) => {\n const hasAnimations = useAnimation();\n const [hasFinishedCollapsing, setHasFinishedCollapsing] =\n useState(isCollapsed);\n const previousIsCollapsedRef = useRef(isCollapsed);\n const interruptedSizeRef = useRef<number>(undefined);\n\n // A layout effect, so the first keyframe applies before the browser paints the new state.\n useLayoutEffect(() => {\n const hasCollapseChanged = previousIsCollapsedRef.current !== isCollapsed;\n previousIsCollapsedRef.current = isCollapsed;\n\n if (!isCollapsed) {\n setHasFinishedCollapsing(false);\n }\n\n const chromeElement = chromeElementRef.current;\n\n if (!hasCollapseChanged || !hasAnimations || !chromeElement) {\n return;\n }\n\n const expandedKeyframe = {\n [collapsedDimension]: `${chromeElement.getBoundingClientRect()[collapsedDimension]}px`,\n overflow: \"hidden\",\n };\n const collapsedKeyframe = {\n [collapsedDimension]: \"0px\",\n overflow: \"hidden\",\n };\n // Fullscreen can end before the collapse finishes. Starting from the size the chrome had reached keeps it from snapping shut before it grows back.\n const interruptedSize = interruptedSizeRef.current;\n interruptedSizeRef.current = undefined;\n const restingStartKeyframe = isCollapsed\n ? expandedKeyframe\n : collapsedKeyframe;\n const startKeyframe =\n interruptedSize === undefined\n ? restingStartKeyframe\n : { [collapsedDimension]: `${interruptedSize}px`, overflow: \"hidden\" };\n\n const chromeAnimation = chromeElement.animate(\n isCollapsed\n ? [startKeyframe, collapsedKeyframe]\n : [startKeyframe, expandedKeyframe],\n {\n duration: fullscreenTransitionTokens.durationMilliseconds,\n easing: fullscreenTransitionTokens.easing,\n // Holds the collapsed size until React hides the element. Without it, the chrome springs back to full size for a frame after the animation ends.\n fill: isCollapsed ? \"forwards\" : \"none\",\n },\n );\n\n if (isCollapsed) {\n chromeAnimation.addEventListener(\"finish\", () => {\n setHasFinishedCollapsing(true);\n });\n }\n\n return () => {\n // Read before cancelling, while the animation still holds the in-between size.\n interruptedSizeRef.current =\n chromeAnimation.playState === \"running\"\n ? chromeElement.getBoundingClientRect()[collapsedDimension]\n : undefined;\n chromeAnimation.cancel();\n };\n }, [chromeElementRef, collapsedDimension, hasAnimations, isCollapsed]);\n\n return {\n isChromeHidden: isCollapsed && (hasFinishedCollapsing || !hasAnimations),\n };\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAqBO,MAAMG,2BAA2B,GAAGA,CAAC;EAC1CC,gBAAgB;EAChBC,kBAAkB;EAClBC;AAC+B,CAAC,KAAK;EACrC,MAAMC,aAAa,GAAG,IAAAC,8BAAY,EAAC,CAAC;EACpC,MAAM,CAACC,qBAAqB,EAAEC,wBAAwB,CAAC,GACrD,IAAAC,eAAQ,EAACL,WAAW,CAAC;EACvB,MAAMM,sBAAsB,GAAG,IAAAC,aAAM,EAACP,WAAW,CAAC;EAClD,MAAMQ,kBAAkB,GAAG,IAA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AAE;MACfqB,eAAe,CAACO,gBAAgB,CAAC,QAAQ,EAAE,MAAM;QAC/CxB,wBAAwB,CAAC,IAAI,CAAC;MAChC,CAAC,CAAC;IACJ;IAEA,OAAO,MAAM;MAEXI,kBAAkB,CAACI,OAAO,GACxBS,eAAe,CAACQ,SAAS,KAAK,SAAS,GACnChB,aAAa,CAACE,qBAAqB,CAAC,CAAC,CAAChB,kBAAkB,CAAC,GACzDU,SAAS;MACfY,eAAe,CAACS,MAAM,CAAC,CAAC;IAC1B,CAAC;EACH,CAAC,EAAE,CAAChC,gBAAgB,EAAEC,kBAAkB,EAAEE,aAAa,EAAED,WAAW,CAAC,CAAC;EAEtE,OAAO;IACL+B,cAAc,EAAE/B,WAAW,KAAKG,qBAAqB,IAAI,CAACF,aAAa;EACzE,CAAC;AACH,CAAC;AAAC+B,OAAA,CAAAnC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useStackedBackdropProps = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _shim = require("use-sync-external-store/shim");
|
|
9
|
+
var _backdropStack = require("./backdropStack.cjs");
|
|
10
|
+
var _useUniqueId = require("./useUniqueId.cjs");
|
|
11
|
+
/*!
|
|
12
|
+
* Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
13
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
14
|
+
*
|
|
15
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
18
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
*
|
|
20
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
21
|
+
*/const useStackedBackdropProps = ({
|
|
22
|
+
backdropStack = _backdropStack.defaultBackdropStack,
|
|
23
|
+
isOpen,
|
|
24
|
+
layer
|
|
25
|
+
}) => {
|
|
26
|
+
const backdropId = (0, _useUniqueId.useUniqueId)();
|
|
27
|
+
const openBackdropIds = (0, _shim.useSyncExternalStore)(backdropStack.subscribeToOpenBackdropIds, backdropStack.getOpenBackdropIds, backdropStack.getOpenBackdropIds);
|
|
28
|
+
(0, _react.useLayoutEffect)(() => isOpen ? backdropStack.openBackdrop({
|
|
29
|
+
backdropId,
|
|
30
|
+
layer
|
|
31
|
+
}) : undefined, [backdropId, backdropStack, isOpen, layer]);
|
|
32
|
+
return (0, _react.useMemo)(() => ({
|
|
33
|
+
invisible: openBackdropIds.length > 0 && openBackdropIds.at(-1) !== backdropId,
|
|
34
|
+
...(openBackdropIds.some(openBackdropId => openBackdropId !== backdropId) && {
|
|
35
|
+
transitionDuration: 0
|
|
36
|
+
})
|
|
37
|
+
}), [backdropId, openBackdropIds]);
|
|
38
|
+
};
|
|
39
|
+
exports.useStackedBackdropProps = useStackedBackdropProps;
|
|
40
|
+
//# sourceMappingURL=useStackedBackdropProps.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStackedBackdropProps.cjs","names":["_react","require","_shim","_backdropStack","_useUniqueId","useStackedBackdropProps","backdropStack","defaultBackdropStack","isOpen","layer","backdropId","useUniqueId","openBackdropIds","useSyncExternalStore","subscribeToOpenBackdropIds","getOpenBackdropIds","useLayoutEffect","openBackdrop","undefined","useMemo","invisible","length","at","some","openBackdropId","transitionDuration","exports"],"sources":["../../src/useStackedBackdropProps.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 { useLayoutEffect, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. The shim delegates to the native hook on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { type BackdropStack, defaultBackdropStack } from \"./backdropStack.js\";\nimport { useUniqueId } from \"./useUniqueId.js\";\n\nexport type UseStackedBackdropPropsArgs = {\n /**\n * The stack this backdrop joins.\n * @default defaultBackdropStack\n */\n backdropStack?: BackdropStack;\n /**\n * If `true`, the overlay is open and its backdrop joins the stack.\n */\n isOpen: boolean;\n /**\n * The z-index the overlay renders at, such as `theme.zIndex.modal`.\n */\n layer: number;\n};\n\nexport type StackedBackdropProps = {\n invisible: boolean;\n transitionDuration?: number;\n};\n\n/**\n * Get the backdrop props that keep stacked overlays from darkening the page more than once. Only the top-most open backdrop paints.\n */\nexport const useStackedBackdropProps = ({\n backdropStack = defaultBackdropStack,\n isOpen,\n layer,\n}: UseStackedBackdropPropsArgs): StackedBackdropProps => {\n const backdropId = useUniqueId();\n\n const openBackdropIds = useSyncExternalStore(\n backdropStack.subscribeToOpenBackdropIds,\n backdropStack.getOpenBackdropIds,\n backdropStack.getOpenBackdropIds,\n );\n\n // A layout effect, so the backdrop underneath hides in the same frame the new one appears, not one paint later.\n useLayoutEffect(\n () =>\n isOpen ? backdropStack.openBackdrop({ backdropId, layer }) : undefined,\n [backdropId, backdropStack, isOpen, layer],\n );\n\n return useMemo(\n () => ({\n // A closing backdrop has already left the stack but stays mounted while it fades out, so membership alone would leave it painted under an overlay that opens during that fade.\n invisible:\n openBackdropIds.length > 0 && openBackdropIds.at(-1) !== backdropId,\n // A backdrop fading in or out over another one would briefly show both, so the gray changes in one step. The last backdrop to close still fades out.\n ...(openBackdropIds.some(\n (openBackdropId) => openBackdropId !== backdropId,\n ) && { transitionDuration: 0 }),\n }),\n [backdropId, openBackdropIds],\n );\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAiCO,MAAMI,uBAAuB,GAAGA,CAAC;EACtCC,aAAa,GAAGC,mCAAoB;EACpCC,MAAM;EACNC;AAC2B,CAAC,KAA2B;EACvD,MAAMC,UAAU,GAAG,IAAAC,wBAAW,EAAC,CAAC;EAEhC,MAAMC,eAAe,GAAG,IAAAC,0BAAoB,EAC1CP,aAAa,CAACQ,0BAA0B,EACxCR,aAAa,CAACS,kBAAkB,EAChCT,aAAa,CAACS,kBAChB,CAAC;EAGD,IAAAC,sBAAe,EACb,MACER,MAAM,GAAGF,aAAa,CAACW,YAAY,CAAC;IAAEP,UAAU;IAAED;EAAM,CAAC,CAAC,GAAGS,SAAS,EACxE,CAACR,UAAU,EAAEJ,aAAa,EAAEE,MAAM,EAAEC,KAAK,CAC3C,CAAC;EAED,OAAO,IAAAU,cAAO,EACZ,OAAO;IAELC,SAAS,EACPR,eAAe,CAACS,MAAM,GAAG,CAAC,IAAIT,eAAe,CAACU,EAAE,CAAC,CAAC,CAAC,CAAC,KAAKZ,UAAU;IAErE,IAAIE,eAAe,CAACW,IAAI,CACrBC,cAAc,IAAKA,cAAc,KAAKd,UACzC,CAAC,IAAI;MAAEe,kBAAkB,EAAE;IAAE,CAAC;EAChC,CAAC,CAAC,EACF,CAACf,UAAU,EAAEE,eAAe,CAC9B,CAAC;AACH,CAAC;AAACc,OAAA,CAAArB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -15,5 +15,5 @@ exports.default = void 0;
|
|
|
15
15
|
*
|
|
16
16
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
var _default = exports.default = "1-
|
|
18
|
+
var _default = exports.default = "1-72-0";
|
|
19
19
|
//# sourceMappingURL=odysseyWebComponentVersion.generated.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"odysseyWebComponentVersion.generated.cjs","names":["_default","exports","default"],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-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\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-
|
|
1
|
+
{"version":3,"file":"odysseyWebComponentVersion.generated.cjs","names":["_default","exports","default"],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-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\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-72-0\";\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAkBe,QAAQ","ignoreList":[]}
|
package/dist/esm/Accordion.js
CHANGED
|
@@ -57,6 +57,6 @@ const Accordion = ({
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
const MemoizedAccordion = memo(Accordion);
|
|
60
|
-
MemoizedAccordion.displayName = "Accordion::pkg=odyssey&odysseyV=1.
|
|
60
|
+
MemoizedAccordion.displayName = "Accordion::pkg=odyssey&odysseyV=1.72.0";
|
|
61
61
|
export { MemoizedAccordion as Accordion };
|
|
62
62
|
//# sourceMappingURL=Accordion.js.map
|
|
@@ -30,7 +30,7 @@ const AnimationProvider = ({
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
const MemoizedAnimationProvider = memo(AnimationProvider);
|
|
33
|
-
MemoizedAnimationProvider.displayName = "AnimationProvider::pkg=odyssey&odysseyV=1.
|
|
33
|
+
MemoizedAnimationProvider.displayName = "AnimationProvider::pkg=odyssey&odysseyV=1.72.0";
|
|
34
34
|
export { MemoizedAnimationProvider as AnimationProvider };
|
|
35
35
|
export const useAnimation = () => useContext(AnimationContext).hasAnimations;
|
|
36
36
|
//# sourceMappingURL=AnimationContext.js.map
|
package/dist/esm/Autocomplete.js
CHANGED
|
@@ -106,6 +106,6 @@ const Autocomplete = ({
|
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
const MemoizedAutocomplete = memo(Autocomplete);
|
|
109
|
-
MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.
|
|
109
|
+
MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.72.0";
|
|
110
110
|
export { MemoizedAutocomplete as Autocomplete };
|
|
111
111
|
//# sourceMappingURL=Autocomplete.js.map
|
package/dist/esm/Badge.js
CHANGED
|
@@ -73,6 +73,6 @@ const Badge = ({
|
|
|
73
73
|
return renderBadge;
|
|
74
74
|
};
|
|
75
75
|
const MemoizedBadge = memo(Badge);
|
|
76
|
-
MemoizedBadge.displayName = "Badge::pkg=odyssey&odysseyV=1.
|
|
76
|
+
MemoizedBadge.displayName = "Badge::pkg=odyssey&odysseyV=1.72.0";
|
|
77
77
|
export { MemoizedBadge as Badge };
|
|
78
78
|
//# sourceMappingURL=Badge.js.map
|
package/dist/esm/Banner.js
CHANGED
|
@@ -58,6 +58,6 @@ const Banner = ({
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
const MemoizedBanner = memo(Banner);
|
|
61
|
-
MemoizedBanner.displayName = "Banner::pkg=odyssey&odysseyV=1.
|
|
61
|
+
MemoizedBanner.displayName = "Banner::pkg=odyssey&odysseyV=1.72.0";
|
|
62
62
|
export { MemoizedBanner as Banner };
|
|
63
63
|
//# sourceMappingURL=Banner.js.map
|
package/dist/esm/Box.js
CHANGED
|
@@ -31,6 +31,6 @@ const Box = forwardRef(({
|
|
|
31
31
|
translate: translate
|
|
32
32
|
}));
|
|
33
33
|
const MemoizedBox = memo(Box);
|
|
34
|
-
MemoizedBox.displayName = "Box::pkg=odyssey&odysseyV=1.
|
|
34
|
+
MemoizedBox.displayName = "Box::pkg=odyssey&odysseyV=1.72.0";
|
|
35
35
|
export { MemoizedBox as Box };
|
|
36
36
|
//# sourceMappingURL=Box.js.map
|
package/dist/esm/Breadcrumbs.js
CHANGED
|
@@ -175,6 +175,6 @@ const BreadcrumbList = ({
|
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
177
|
const MemoizedBreadcrumbList = memo(BreadcrumbList);
|
|
178
|
-
MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.
|
|
178
|
+
MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.72.0";
|
|
179
179
|
export { MemoizedBreadcrumbList as BreadcrumbList };
|
|
180
180
|
//# sourceMappingURL=Breadcrumbs.js.map
|
|
@@ -27,9 +27,11 @@ const BaseButton = ({
|
|
|
27
27
|
ariaHasPopup,
|
|
28
28
|
ariaLabel,
|
|
29
29
|
ariaLabelledBy,
|
|
30
|
+
ariaPressed,
|
|
30
31
|
buttonRef,
|
|
31
32
|
children,
|
|
32
33
|
endIcon,
|
|
34
|
+
formId,
|
|
33
35
|
href,
|
|
34
36
|
id,
|
|
35
37
|
isDisabled,
|
|
@@ -81,8 +83,10 @@ const BaseButton = ({
|
|
|
81
83
|
"aria-haspopup": ariaHasPopup,
|
|
82
84
|
"aria-label": ariaLabel,
|
|
83
85
|
"aria-labelledby": ariaLabelledBy,
|
|
86
|
+
"aria-pressed": ariaPressed,
|
|
84
87
|
"data-se": testId,
|
|
85
88
|
endIcon: endIcon,
|
|
89
|
+
form: formId,
|
|
86
90
|
fullWidth: isFullWidth,
|
|
87
91
|
href: href,
|
|
88
92
|
id: id,
|
|
@@ -101,7 +105,7 @@ const BaseButton = ({
|
|
|
101
105
|
variant: variant,
|
|
102
106
|
children: buttonContent
|
|
103
107
|
});
|
|
104
|
-
}, [ariaControls, ariaDescribedBy, ariaExpanded, ariaHasPopup, ariaLabel, ariaLabelledBy, buttonContent, endIcon, handleClick, href, id, isDisabled, isFullWidth, isLoading, loadingIndicator, size, startIcon, tabIndex, testId, translate, type, variant]);
|
|
108
|
+
}, [ariaControls, ariaDescribedBy, ariaExpanded, ariaHasPopup, ariaLabel, ariaLabelledBy, ariaPressed, buttonContent, endIcon, formId, handleClick, href, id, isDisabled, isFullWidth, isLoading, loadingIndicator, size, startIcon, tabIndex, testId, translate, type, variant]);
|
|
105
109
|
if (tooltipText) {
|
|
106
110
|
return _jsx(Tooltip, {
|
|
107
111
|
ariaType: "description",
|
|
@@ -115,6 +119,6 @@ const BaseButton = ({
|
|
|
115
119
|
return renderButton(muiProps);
|
|
116
120
|
};
|
|
117
121
|
const MemoizedBaseButton = memo(BaseButton);
|
|
118
|
-
MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.
|
|
122
|
+
MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.72.0";
|
|
119
123
|
export { MemoizedBaseButton as BaseButton };
|
|
120
124
|
//# sourceMappingURL=BaseButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseButton.js","names":["memo","useCallback","useImperativeHandle","useMemo","useRef","MuiPropsContext","useMuiProps","useOdysseyDesignTokens","Tooltip","useButton","jsx","_jsx","buttonSizeValues","buttonTypeValues","buttonVariantValues","BaseButton","ariaControls","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaLabel","ariaLabelledBy","buttonRef","children","endIcon","href","id","isDisabled","isFullWidth","isFullWidthProp","isLoading","label","onClick","size","startIcon","tabIndex","testId","tooltipText","translate","type","variant","variantProp","muiProps","localButtonRef","buttonContext","odysseyDesignTokens","buttonContent","loadingIndicator","_CircularProgress","color","Spacing4","handleClick","event","preventDefault","focus","current","renderButton","_Button","fullWidth","ref","element","ariaType","placement","text","Consumer","MemoizedBaseButton","displayName"],"sources":["../../../src/Buttons/BaseButton.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 type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport {\n Button as MuiButton,\n CircularProgress as MuiCircularProgress,\n} from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n RefObject,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\n\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n MuiPropsContext,\n MuiPropsContextType,\n useMuiProps,\n} from \"../MuiPropsContext.js\";\nimport { useOdysseyDesignTokens } from \"../OdysseyDesignTokensContext.js\";\nimport { Tooltip } from \"../Tooltip.js\";\nimport { useButton } from \"./ButtonContext.js\";\n\nexport const buttonSizeValues = [\"small\", \"medium\", \"large\"] as const;\nexport const buttonTypeValues = [\"button\", \"submit\", \"reset\"] as const;\nexport const buttonVariantValues = [\n \"primary\",\n \"secondary\",\n \"danger\",\n \"dangerSecondary\",\n \"floating\",\n \"floatingAction\",\n] as const;\n\nexport type BaseButtonProps = {\n /**\n * Ref attached to the underlying button element, exposing a `focus()` handle.\n */\n buttonRef?: RefObject<FocusHandle>;\n /**\n * The contents of the button. Only available internal to Odyssey here in BaseButton. If set, label is ignored.\n */\n children?: ReactNode;\n /**\n * The icon element to display at the end of the Button\n */\n endIcon?: ReactElement;\n /**\n * Optional href to render the button as a link\n */\n href?: string;\n /**\n * The ID of the Button\n */\n id?: string;\n /**\n * If `true`, the button is disabled and cannot be activated.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the button expands to fill its container's full width.\n */\n isFullWidth?: boolean;\n /**\n * If `true`, the button shows a progress spinner in place of its start icon and stops responding to clicks, while keeping the background and border of its default state. To reword the button while it works (for example `\"Saving…\"`), swap `label` alongside this.\n */\n isLoading?: boolean;\n /**\n * The text content of the Button.\n * @default \"\"\n */\n label?: string;\n /**\n * Called when the button is clicked.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * The size of the button.\n * @default \"medium\"\n */\n size?: (typeof buttonSizeValues)[number];\n /**\n * The icon element to display at the start of the Button\n */\n startIcon?: ReactElement;\n /** The tab order of the Button relative to other focusable elements. */\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n /**\n * The HTML button type attribute.\n * - If `'button'`, no default form behavior.\n * - If `'submit'`, submits the nearest form.\n * - If `'reset'`, resets the nearest form to its initial values.\n * @default \"button\"\n */\n type?: (typeof buttonTypeValues)[number];\n /**\n * Controls the visual hierarchy and intent of the button.\n * - If `'primary'`, high-emphasis action; use for the single most important action on a page.\n * - If `'secondary'`, medium-emphasis action; use for secondary actions alongside a primary.\n * - If `'danger'`, high-emphasis destructive action.\n * - If `'dangerSecondary'`, medium-emphasis destructive action.\n * - If `'floating'`, low-emphasis action without a border or background.\n * - If `'floatingAction'`, icon-only floating action, typically fixed-positioned.\n * - If `'tertiary'`, deprecated low-emphasis style; use `'floating'` instead.\n */\n variant: (typeof buttonVariantValues)[number] | \"tertiary\";\n};\n\n// These are split and exported separately from the above because wrappers of this (e.g. Button) will want to omit children, which they cannot do from the combined union type. Instead, they should omit from BaseButtonProps, then union with the AdditionalBaseButtonProps (as seen in Button)\nexport type AdditionalBaseButtonProps = Pick<\n HtmlProps,\n | \"ariaControls\"\n | \"ariaDescribedBy\"\n | \"ariaExpanded\"\n | \"ariaHasPopup\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"tabIndex\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * The internal base button primitive used by all Odyssey button variants. Handles icon placement, full-width layout, tooltip wrapping, focus handle forwarding, and MUI prop context integration.\n */\nconst BaseButton = ({\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n buttonRef,\n children,\n endIcon,\n href,\n id,\n isDisabled,\n isFullWidth: isFullWidthProp,\n isLoading,\n label = \"\",\n onClick,\n size = \"medium\",\n startIcon,\n tabIndex,\n testId,\n tooltipText,\n translate,\n type = \"button\",\n variant: variantProp,\n}: BaseButtonProps & AdditionalBaseButtonProps) => {\n const muiProps = useMuiProps();\n\n // We're deprecating the \"tertiary\" variant, so map it to \"secondary\" in lieu of making a breaking change\n const variant = variantProp === \"tertiary\" ? \"secondary\" : variantProp;\n const localButtonRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const buttonContext = useButton();\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const isFullWidth = useMemo(\n () =>\n buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp,\n [buttonContext, isFullWidthProp],\n );\n\n const buttonContent = children ?? label;\n\n const loadingIndicator = useMemo(\n () => (\n // Design specifies each variant's spinner color as that variant's own label color, so `color=\"inherit\"` keeps the two in step instead of restating the palette per variant. MUI's CircularProgress is used directly because Odyssey's wrapper deliberately exposes neither a size nor a color prop, and design asked for the 16px sizing to stay internal to Button. Stroke weight comes from the shared theme default, which holds a 1:12 stroke-to-diameter ratio at any size.\n <MuiCircularProgress\n aria-hidden\n color=\"inherit\"\n size={odysseyDesignTokens.Spacing4}\n />\n ),\n [odysseyDesignTokens],\n );\n\n // An inert button keeps its `href` so it stays focusable and keeps its link role, which leaves the browser's own activation as the thing to stop: `pointer-events: none` from the theme only blocks the mouse, and because `aria-disabled` is advisory, Enter still dispatches a click that would follow the link or submit the form. Preventing the default on that click covers every input method without swapping the element out.\n const handleClick = useCallback<NonNullable<MuiButtonProps[\"onClick\"]>>(\n (event) => {\n if (isLoading || isDisabled) {\n event.preventDefault();\n return;\n }\n\n onClick?.(event);\n },\n [isDisabled, isLoading, onClick],\n );\n\n useImperativeHandle(\n buttonRef,\n () => ({\n focus: () => {\n localButtonRef.current?.focus();\n },\n }),\n [],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <MuiButton\n {...muiProps}\n aria-busy={isLoading}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-disabled={isLoading || isDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n data-se={testId}\n endIcon={endIcon}\n fullWidth={isFullWidth}\n href={href}\n id={id}\n onClick={handleClick}\n ref={(element) => {\n if (element) {\n (\n localButtonRef as React.MutableRefObject<\n HTMLButtonElement | HTMLAnchorElement\n >\n ).current = element;\n //@ts-expect-error ref is not an optional prop on the props context type\n muiProps?.ref?.(element);\n }\n }}\n size={size}\n startIcon={isLoading ? loadingIndicator : startIcon}\n tabIndex={tabIndex}\n translate={translate}\n type={type}\n variant={variant}\n >\n {buttonContent}\n </MuiButton>\n );\n },\n [\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n buttonContent,\n endIcon,\n handleClick,\n href,\n id,\n isDisabled,\n isFullWidth,\n isLoading,\n loadingIndicator,\n size,\n startIcon,\n tabIndex,\n testId,\n translate,\n type,\n variant,\n ],\n );\n\n if (tooltipText) {\n return (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n }\n\n return renderButton(muiProps);\n};\n\nconst MemoizedBaseButton = memo(BaseButton);\nMemoizedBaseButton.displayName = \"BaseButton\";\n\nexport { MemoizedBaseButton as BaseButton };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA,SAEEA,IAAI,EAIJC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAKd,SACEC,eAAe,EAEfC,WAAW,QACN,uBAAuB;AAC9B,SAASC,sBAAsB,QAAQ,kCAAkC;AACzE,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,SAAS,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU;AACrE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU;AACtE,OAAO,MAAMC,mBAAmB,GAAG,CACjC,SAAS,EACT,WAAW,EACX,QAAQ,EACR,i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B,OAAO,EACP2B,WAAW,EACX1B,IAAI,EACJC,EAAE,EACFC,UAAU,EACVC,WAAW,EACXE,SAAS,EACTiB,gBAAgB,EAChBd,IAAI,EACJC,SAAS,EACTC,QAAQ,EACRC,MAAM,EACNE,SAAS,EACTC,IAAI,EACJC,OAAO,CAEX,CAAC;EAED,IAAIH,WAAW,EAAE;IACf,OACE1B,IAAA,CAACH,OAAO;MAACqD,QAAQ,EAAC,aAAa;MAACC,SAAS,EAAC,KAAK;MAACC,IAAI,EAAE1B,WAAY;MAAAd,QAAA,EAChEZ,IAAA,CAACN,eAAe,CAAC2D,QAAQ;QAAAzC,QAAA,EAAEiC;MAAY,CAA2B;IAAC,CAC5D,CAAC;EAEd;EAEA,OAAOA,YAAY,CAACd,QAAQ,CAAC;AAC/B,CAAC;AAED,MAAMuB,kBAAkB,GAAGjE,IAAI,CAACe,UAAU,CAAC;AAC3CkD,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIlD,UAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"BaseButton.js","names":["memo","useCallback","useImperativeHandle","useMemo","useRef","MuiPropsContext","useMuiProps","useOdysseyDesignTokens","Tooltip","useButton","jsx","_jsx","buttonSizeValues","buttonTypeValues","buttonVariantValues","BaseButton","ariaControls","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaLabel","ariaLabelledBy","ariaPressed","buttonRef","children","endIcon","formId","href","id","isDisabled","isFullWidth","isFullWidthProp","isLoading","label","onClick","size","startIcon","tabIndex","testId","tooltipText","translate","type","variant","variantProp","muiProps","localButtonRef","buttonContext","odysseyDesignTokens","buttonContent","loadingIndicator","_CircularProgress","color","Spacing4","handleClick","event","preventDefault","focus","current","renderButton","_Button","form","fullWidth","ref","element","ariaType","placement","text","Consumer","MemoizedBaseButton","displayName"],"sources":["../../../src/Buttons/BaseButton.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 type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport {\n Button as MuiButton,\n CircularProgress as MuiCircularProgress,\n} from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n RefObject,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\n\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n MuiPropsContext,\n MuiPropsContextType,\n useMuiProps,\n} from \"../MuiPropsContext.js\";\nimport { useOdysseyDesignTokens } from \"../OdysseyDesignTokensContext.js\";\nimport { Tooltip } from \"../Tooltip.js\";\nimport { useButton } from \"./ButtonContext.js\";\n\nexport const buttonSizeValues = [\"small\", \"medium\", \"large\"] as const;\nexport const buttonTypeValues = [\"button\", \"submit\", \"reset\"] as const;\nexport const buttonVariantValues = [\n \"primary\",\n \"secondary\",\n \"danger\",\n \"dangerSecondary\",\n \"floating\",\n \"floatingAction\",\n] as const;\n\nexport type BaseButtonProps = {\n /**\n * Ref attached to the underlying button element, exposing a `focus()` handle.\n */\n buttonRef?: RefObject<FocusHandle>;\n /**\n * The contents of the button. Only available internal to Odyssey here in BaseButton. If set, label is ignored.\n */\n children?: ReactNode;\n /**\n * The icon element to display at the end of the Button\n */\n endIcon?: ReactElement;\n /**\n * The ID of the form the Button belongs to. Use it to submit or reset a form from a Button outside that form, such as a `Dialog` footer action. Has no effect when `href` is set.\n */\n formId?: string;\n /**\n * Optional href to render the button as a link\n */\n href?: string;\n /**\n * The ID of the Button\n */\n id?: string;\n /**\n * If `true`, the button is disabled and cannot be activated.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the button expands to fill its container's full width.\n */\n isFullWidth?: boolean;\n /**\n * If `true`, the button shows a progress spinner in place of its start icon and stops responding to clicks, while keeping the background and border of its default state. To reword the button while it works (for example `\"Saving…\"`), swap `label` alongside this.\n */\n isLoading?: boolean;\n /**\n * The text content of the Button.\n * @default \"\"\n */\n label?: string;\n /**\n * Called when the button is clicked.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * The size of the button.\n * @default \"medium\"\n */\n size?: (typeof buttonSizeValues)[number];\n /**\n * The icon element to display at the start of the Button\n */\n startIcon?: ReactElement;\n /** The tab order of the Button relative to other focusable elements. */\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n /**\n * The HTML button type attribute.\n * - If `'button'`, no default form behavior.\n * - If `'submit'`, submits the nearest form.\n * - If `'reset'`, resets the nearest form to its initial values.\n * @default \"button\"\n */\n type?: (typeof buttonTypeValues)[number];\n /**\n * Controls the visual hierarchy and intent of the button.\n * - If `'primary'`, high-emphasis action; use for the single most important action on a page.\n * - If `'secondary'`, medium-emphasis action; use for secondary actions alongside a primary.\n * - If `'danger'`, high-emphasis destructive action.\n * - If `'dangerSecondary'`, medium-emphasis destructive action.\n * - If `'floating'`, low-emphasis action without a border or background.\n * - If `'floatingAction'`, icon-only floating action, typically fixed-positioned.\n * - If `'tertiary'`, deprecated low-emphasis style; use `'floating'` instead.\n */\n variant: (typeof buttonVariantValues)[number] | \"tertiary\";\n};\n\n// These are split and exported separately from the above because wrappers of this (e.g. Button) will want to omit children, which they cannot do from the combined union type. Instead, they should omit from BaseButtonProps, then union with the AdditionalBaseButtonProps (as seen in Button)\nexport type AdditionalBaseButtonProps = Pick<\n HtmlProps,\n | \"ariaControls\"\n | \"ariaDescribedBy\"\n | \"ariaExpanded\"\n | \"ariaHasPopup\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"ariaPressed\"\n | \"tabIndex\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * The internal base button primitive used by all Odyssey button variants. Handles icon placement, full-width layout, tooltip wrapping, focus handle forwarding, and MUI prop context integration.\n */\nconst BaseButton = ({\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n ariaPressed,\n buttonRef,\n children,\n endIcon,\n formId,\n href,\n id,\n isDisabled,\n isFullWidth: isFullWidthProp,\n isLoading,\n label = \"\",\n onClick,\n size = \"medium\",\n startIcon,\n tabIndex,\n testId,\n tooltipText,\n translate,\n type = \"button\",\n variant: variantProp,\n}: BaseButtonProps & AdditionalBaseButtonProps) => {\n const muiProps = useMuiProps();\n\n // We're deprecating the \"tertiary\" variant, so map it to \"secondary\" in lieu of making a breaking change\n const variant = variantProp === \"tertiary\" ? \"secondary\" : variantProp;\n const localButtonRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const buttonContext = useButton();\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const isFullWidth = useMemo(\n () =>\n buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp,\n [buttonContext, isFullWidthProp],\n );\n\n const buttonContent = children ?? label;\n\n const loadingIndicator = useMemo(\n () => (\n // Design specifies each variant's spinner color as that variant's own label color, so `color=\"inherit\"` keeps the two in step instead of restating the palette per variant. MUI's CircularProgress is used directly because Odyssey's wrapper deliberately exposes neither a size nor a color prop, and design asked for the 16px sizing to stay internal to Button. Stroke weight comes from the shared theme default, which holds a 1:12 stroke-to-diameter ratio at any size.\n <MuiCircularProgress\n aria-hidden\n color=\"inherit\"\n size={odysseyDesignTokens.Spacing4}\n />\n ),\n [odysseyDesignTokens],\n );\n\n // An inert button keeps its `href` so it stays focusable and keeps its link role, which leaves the browser's own activation as the thing to stop: `pointer-events: none` from the theme only blocks the mouse, and because `aria-disabled` is advisory, Enter still dispatches a click that would follow the link or submit the form. Preventing the default on that click covers every input method without swapping the element out.\n const handleClick = useCallback<NonNullable<MuiButtonProps[\"onClick\"]>>(\n (event) => {\n if (isLoading || isDisabled) {\n event.preventDefault();\n return;\n }\n\n onClick?.(event);\n },\n [isDisabled, isLoading, onClick],\n );\n\n useImperativeHandle(\n buttonRef,\n () => ({\n focus: () => {\n localButtonRef.current?.focus();\n },\n }),\n [],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <MuiButton\n {...muiProps}\n aria-busy={isLoading}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-disabled={isLoading || isDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-pressed={ariaPressed}\n data-se={testId}\n endIcon={endIcon}\n form={formId}\n fullWidth={isFullWidth}\n href={href}\n id={id}\n onClick={handleClick}\n ref={(element) => {\n if (element) {\n (\n localButtonRef as React.MutableRefObject<\n HTMLButtonElement | HTMLAnchorElement\n >\n ).current = element;\n //@ts-expect-error ref is not an optional prop on the props context type\n muiProps?.ref?.(element);\n }\n }}\n size={size}\n startIcon={isLoading ? loadingIndicator : startIcon}\n tabIndex={tabIndex}\n translate={translate}\n type={type}\n variant={variant}\n >\n {buttonContent}\n </MuiButton>\n );\n },\n [\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n ariaPressed,\n buttonContent,\n endIcon,\n formId,\n handleClick,\n href,\n id,\n isDisabled,\n isFullWidth,\n isLoading,\n loadingIndicator,\n size,\n startIcon,\n tabIndex,\n testId,\n translate,\n type,\n variant,\n ],\n );\n\n if (tooltipText) {\n return (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n }\n\n return renderButton(muiProps);\n};\n\nconst MemoizedBaseButton = memo(BaseButton);\nMemoizedBaseButton.displayName = \"BaseButton\";\n\nexport { MemoizedBaseButton as BaseButton };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA,SAEEA,IAAI,EAIJC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAKd,SACEC,eAAe,EAEfC,WAAW,QACN,uBAAuB;AAC9B,SAASC,sBAAsB,QAAQ,kCAAkC;AACzE,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,SAAS,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU;AACrE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU;AACtE,OAAO,MAAMC,mBAAmB,GAAG,CACjC,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,gBAAgB,CACR;AAsGV,MAAMC,UAAU,GAAGA,CAAC;EAClBC,YAAY;EACZC,eAAe;EACfC,YAAY;EACZC,YAAY;EACZC,SAAS;EACTC,cAAc;EACdC,WAAW;EACXC,SAAS;EACTC,QAAQ;EACRC,OAAO;EACPC,MAAM;EACNC,IAAI;EACJC,EAAE;EACFC,UAAU;EACVC,WAAW,EAAEC,eAAe;EAC5BC,SAAS;EACTC,KAAK,GAAG,EAAE;EACVC,OAAO;EACPC,IAAI,GAAG,QAAQ;EACfC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,WAAW;EACXC,SAAS;EACTC,IAAI,GAAG,QAAQ;EACfC,OAAO,EAAEC;AACkC,CAAC,KAAK;EACjD,MAAMC,QAAQ,GAAGtC,WAAW,CAAC,CAAC;EAG9B,MAAMoC,OAAO,GAAGC,WAAW,KAAK,UAAU,GAAG,WAAW,GAAGA,WAAW;EACtE,MAAME,cAAc,GAAGzC,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,GAAGpE,IAAI,CAACe,UAAU,CAAC;AAC3CqD,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIrD,UAAU","ignoreList":[]}
|
|
@@ -165,6 +165,6 @@ const BaseMenuButton = ({
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
const MemoizedBaseMenuButton = memo(BaseMenuButton);
|
|
168
|
-
MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.
|
|
168
|
+
MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.72.0";
|
|
169
169
|
export { MemoizedBaseMenuButton as BaseMenuButton };
|
|
170
170
|
//# sourceMappingURL=BaseMenuButton.js.map
|
|
@@ -19,6 +19,6 @@ const Button = props => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
const MemoizedButton = memo(Button);
|
|
22
|
-
MemoizedButton.displayName = "Button::pkg=odyssey&odysseyV=1.
|
|
22
|
+
MemoizedButton.displayName = "Button::pkg=odyssey&odysseyV=1.72.0";
|
|
23
23
|
export { MemoizedButton as Button };
|
|
24
24
|
//# sourceMappingURL=Button.js.map
|
|
@@ -19,6 +19,6 @@ const MenuButton = props => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
const MemoizedMenuButton = memo(MenuButton);
|
|
22
|
-
MemoizedMenuButton.displayName = "MenuButton::pkg=odyssey&odysseyV=1.
|
|
22
|
+
MemoizedMenuButton.displayName = "MenuButton::pkg=odyssey&odysseyV=1.72.0";
|
|
23
23
|
export { MemoizedMenuButton as MenuButton };
|
|
24
24
|
//# sourceMappingURL=MenuButton.js.map
|
|
@@ -50,6 +50,6 @@ const MenuItem = ({
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
const MemoizedMenuItem = memo(MenuItem);
|
|
53
|
-
MemoizedMenuItem.displayName = "MenuItem::pkg=odyssey&odysseyV=1.
|
|
53
|
+
MemoizedMenuItem.displayName = "MenuItem::pkg=odyssey&odysseyV=1.72.0";
|
|
54
54
|
export { MemoizedMenuItem as MenuItem };
|
|
55
55
|
//# sourceMappingURL=MenuItem.js.map
|
package/dist/esm/Callout.js
CHANGED
|
@@ -79,6 +79,6 @@ const Callout = ({
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
const MemoizedCallout = memo(Callout);
|
|
82
|
-
MemoizedCallout.displayName = "Callout::pkg=odyssey&odysseyV=1.
|
|
82
|
+
MemoizedCallout.displayName = "Callout::pkg=odyssey&odysseyV=1.72.0";
|
|
83
83
|
export { MemoizedCallout as Callout };
|
|
84
84
|
//# sourceMappingURL=Callout.js.map
|
package/dist/esm/Card.js
CHANGED
|
@@ -331,6 +331,6 @@ const Card = ({
|
|
|
331
331
|
});
|
|
332
332
|
};
|
|
333
333
|
const MemoizedCard = memo(Card);
|
|
334
|
-
MemoizedCard.displayName = "Card::pkg=odyssey&odysseyV=1.
|
|
334
|
+
MemoizedCard.displayName = "Card::pkg=odyssey&odysseyV=1.72.0";
|
|
335
335
|
export { MemoizedCard as Card };
|
|
336
336
|
//# sourceMappingURL=Card.js.map
|
|
@@ -23,6 +23,6 @@ const CircularProgress = ({
|
|
|
23
23
|
variant: value ? "determinate" : "indeterminate"
|
|
24
24
|
});
|
|
25
25
|
const MemoizedCircularProgress = memo(CircularProgress);
|
|
26
|
-
MemoizedCircularProgress.displayName = "CircularProgress::pkg=odyssey&odysseyV=1.
|
|
26
|
+
MemoizedCircularProgress.displayName = "CircularProgress::pkg=odyssey&odysseyV=1.72.0";
|
|
27
27
|
export { MemoizedCircularProgress as CircularProgress };
|
|
28
28
|
//# sourceMappingURL=CircularProgress.js.map
|
|
@@ -20,6 +20,6 @@ const ConditionalWrapper = ({
|
|
|
20
20
|
children: children
|
|
21
21
|
});
|
|
22
22
|
const MemoizedConditionalWrapper = memo(ConditionalWrapper);
|
|
23
|
-
MemoizedConditionalWrapper.displayName = "ConditionalWrapper::pkg=odyssey&odysseyV=1.
|
|
23
|
+
MemoizedConditionalWrapper.displayName = "ConditionalWrapper::pkg=odyssey&odysseyV=1.72.0";
|
|
24
24
|
export { MemoizedConditionalWrapper as ConditionalWrapper };
|
|
25
25
|
//# sourceMappingURL=ConditionalWrapper.js.map
|
|
@@ -576,6 +576,6 @@ const DataTable = ({
|
|
|
576
576
|
});
|
|
577
577
|
};
|
|
578
578
|
const MemoizedDataTable = memo(DataTable);
|
|
579
|
-
MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.
|
|
579
|
+
MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.72.0";
|
|
580
580
|
export { MemoizedDataTable as DataTable };
|
|
581
581
|
//# sourceMappingURL=DataTable.js.map
|
|
@@ -100,6 +100,6 @@ const DataTableRowActions = ({
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
const MemoizedDataTableRowActions = memo(DataTableRowActions);
|
|
103
|
-
MemoizedDataTableRowActions.displayName = "DataTableRowActions::pkg=odyssey&odysseyV=1.
|
|
103
|
+
MemoizedDataTableRowActions.displayName = "DataTableRowActions::pkg=odyssey&odysseyV=1.72.0";
|
|
104
104
|
export { MemoizedDataTableRowActions as DataTableRowActions };
|
|
105
105
|
//# sourceMappingURL=DataTableRowActions.js.map
|
|
@@ -77,6 +77,6 @@ const DataTableSettings = ({
|
|
|
77
77
|
});
|
|
78
78
|
};
|
|
79
79
|
const MemoizedDataTableSettings = memo(DataTableSettings);
|
|
80
|
-
MemoizedDataTableSettings.displayName = "DataTableSettings::pkg=odyssey&odysseyV=1.
|
|
80
|
+
MemoizedDataTableSettings.displayName = "DataTableSettings::pkg=odyssey&odysseyV=1.72.0";
|
|
81
81
|
export { MemoizedDataTableSettings as DataTableSettings };
|
|
82
82
|
//# sourceMappingURL=DataTableSettings.js.map
|
|
@@ -161,6 +161,6 @@ const DateField = ({
|
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
163
|
const MemoizedDateField = memo(DateField);
|
|
164
|
-
MemoizedDateField.displayName = "DateField::pkg=odyssey&odysseyV=1.
|
|
164
|
+
MemoizedDateField.displayName = "DateField::pkg=odyssey&odysseyV=1.72.0";
|
|
165
165
|
export { MemoizedDateField as DateField };
|
|
166
166
|
//# sourceMappingURL=DateField.js.map
|
|
@@ -50,6 +50,6 @@ const DateFieldActionBar = ({
|
|
|
50
50
|
return null;
|
|
51
51
|
};
|
|
52
52
|
const MemoizedDateFieldActionBar = memo(DateFieldActionBar);
|
|
53
|
-
MemoizedDateFieldActionBar.displayName = "DateFieldActionBar::pkg=odyssey&odysseyV=1.
|
|
53
|
+
MemoizedDateFieldActionBar.displayName = "DateFieldActionBar::pkg=odyssey&odysseyV=1.72.0";
|
|
54
54
|
export { MemoizedDateFieldActionBar as DateFieldActionBar };
|
|
55
55
|
//# sourceMappingURL=DateFieldActionBar.js.map
|
|
@@ -27,6 +27,6 @@ const DateFieldLocalizationProvider = ({
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
const MemoizedDateFieldLocalizationProvider = memo(DateFieldLocalizationProvider);
|
|
30
|
-
MemoizedDateFieldLocalizationProvider.displayName = "DateFieldLocalizationProvider::pkg=odyssey&odysseyV=1.
|
|
30
|
+
MemoizedDateFieldLocalizationProvider.displayName = "DateFieldLocalizationProvider::pkg=odyssey&odysseyV=1.72.0";
|
|
31
31
|
export { MemoizedDateFieldLocalizationProvider as DateFieldLocalizationProvider };
|
|
32
32
|
//# sourceMappingURL=DateFieldLocalizationProvider.js.map
|
|
@@ -225,6 +225,6 @@ const DatePicker = ({
|
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
227
|
const MemoizedDatePicker = memo(DatePicker);
|
|
228
|
-
MemoizedDatePicker.displayName = "DatePicker::pkg=odyssey&odysseyV=1.
|
|
228
|
+
MemoizedDatePicker.displayName = "DatePicker::pkg=odyssey&odysseyV=1.72.0";
|
|
229
229
|
export { MemoizedDatePicker as DatePicker };
|
|
230
230
|
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -32,6 +32,6 @@ const TimeZonePicker = ({
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
const MemoizedTimeZonePicker = memo(TimeZonePicker);
|
|
35
|
-
MemoizedTimeZonePicker.displayName = "TimeZonePicker::pkg=odyssey&odysseyV=1.
|
|
35
|
+
MemoizedTimeZonePicker.displayName = "TimeZonePicker::pkg=odyssey&odysseyV=1.72.0";
|
|
36
36
|
export { MemoizedTimeZonePicker as TimeZonePicker };
|
|
37
37
|
//# sourceMappingURL=TimeZonePicker.js.map
|