@okta/odyssey-react-mui 1.71.1 → 1.73.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 +15 -5
- 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 +4 -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 +14 -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 +20 -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 +11 -2
- package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyProvider.cjs +8 -1
- package/dist/cjs/OdysseyProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyThemeProvider.cjs +61 -28
- package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
- package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
- package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -1
- package/dist/cjs/Pagination/Pagination.cjs +37 -35
- package/dist/cjs/Pagination/Pagination.cjs.map +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 +3 -3
- package/dist/cjs/Switch.cjs.map +1 -1
- package/dist/cjs/Tabs.cjs +1 -1
- package/dist/cjs/Tag.cjs +31 -23
- package/dist/cjs/Tag.cjs.map +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 +1 -1
- package/dist/cjs/fullscreen/FullscreenRegion.cjs +3 -1
- package/dist/cjs/fullscreen/FullscreenRegion.cjs.map +1 -1
- package/dist/cjs/{getTypedObjectKeys.cjs → getActionTintChannel.cjs} +7 -6
- package/dist/cjs/getActionTintChannel.cjs.map +1 -0
- package/dist/cjs/getColorSchemeDesignTokensOverride.cjs +33 -0
- package/dist/cjs/getColorSchemeDesignTokensOverride.cjs.map +1 -0
- package/dist/cjs/getDropShadowFilter.cjs +22 -0
- package/dist/cjs/getDropShadowFilter.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 +1 -1
- package/dist/cjs/icons.generated/FullscreenExit.cjs +1 -1
- package/dist/cjs/icons.generated/Globe.cjs +1 -1
- package/dist/cjs/icons.generated/Grid.cjs +1 -1
- package/dist/cjs/icons.generated/Group.cjs +1 -1
- package/dist/cjs/icons.generated/Happy.cjs +1 -1
- package/dist/cjs/icons.generated/Hide.cjs +1 -1
- package/dist/cjs/icons.generated/Home.cjs +1 -1
- package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
- package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
- package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
- package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Link.cjs +1 -1
- package/dist/cjs/icons.generated/List.cjs +1 -1
- package/dist/cjs/icons.generated/Lock.cjs +1 -1
- package/dist/cjs/icons.generated/Menu.cjs +1 -1
- package/dist/cjs/icons.generated/More.cjs +1 -1
- package/dist/cjs/icons.generated/Neutral.cjs +1 -1
- package/dist/cjs/icons.generated/Notification.cjs +1 -1
- package/dist/cjs/icons.generated/Pause.cjs +1 -1
- package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
- package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Refresh.cjs +1 -1
- package/dist/cjs/icons.generated/Reports.cjs +1 -1
- package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/Reset.cjs +1 -1
- package/dist/cjs/icons.generated/Resume.cjs +1 -1
- package/dist/cjs/icons.generated/Sad.cjs +1 -1
- package/dist/cjs/icons.generated/Same.cjs +1 -1
- package/dist/cjs/icons.generated/Search.cjs +1 -1
- package/dist/cjs/icons.generated/Security.cjs +1 -1
- package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
- package/dist/cjs/icons.generated/Send.cjs +1 -1
- package/dist/cjs/icons.generated/Server.cjs +1 -1
- package/dist/cjs/icons.generated/Settings.cjs +1 -1
- package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
- package/dist/cjs/icons.generated/Show.cjs +1 -1
- package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
- package/dist/cjs/icons.generated/Subtract.cjs +1 -1
- package/dist/cjs/icons.generated/Sync.cjs +1 -1
- package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
- package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
- package/dist/cjs/icons.generated/Unlock.cjs +1 -1
- package/dist/cjs/icons.generated/Upload.cjs +1 -1
- package/dist/cjs/icons.generated/User.cjs +1 -1
- package/dist/cjs/icons.generated/Video.cjs +1 -1
- package/dist/cjs/icons.generated/Warning.cjs +1 -1
- package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
- package/dist/cjs/icons.generated/Workflows.cjs +1 -1
- package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
- package/dist/cjs/index.cjs +46 -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/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/GroupPicker.cjs +1 -0
- package/dist/cjs/labs/GroupPicker.cjs.map +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/messageGuards.cjs +1 -5
- package/dist/cjs/message-bus/messageGuards.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui.cjs +2 -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 +2 -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 +2 -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/remUtils.cjs +1 -3
- package/dist/cjs/remUtils.cjs.map +1 -1
- package/dist/cjs/resolveColorSchemeDesignTokens.cjs +43 -0
- package/dist/cjs/resolveColorSchemeDesignTokens.cjs.map +1 -0
- package/dist/cjs/test-selectors/index.cjs.map +1 -1
- package/dist/cjs/test-selectors/sanityChecks.cjs +1 -19
- package/dist/cjs/test-selectors/sanityChecks.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/theme/components/Button.cjs +7 -6
- package/dist/cjs/theme/components/Button.cjs.map +1 -1
- package/dist/cjs/theme/components/Checkbox.cjs +1 -1
- package/dist/cjs/theme/components/Checkbox.cjs.map +1 -1
- package/dist/cjs/theme/components/Chip.cjs +3 -1
- package/dist/cjs/theme/components/Chip.cjs.map +1 -1
- package/dist/cjs/theme/components/Dialog.cjs +6 -2
- package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
- package/dist/cjs/theme/components/Paper.cjs +3 -0
- package/dist/cjs/theme/components/Paper.cjs.map +1 -1
- package/dist/cjs/theme/components/Tabs.cjs +7 -11
- package/dist/cjs/theme/components/Tabs.cjs.map +1 -1
- package/dist/cjs/theme/components/types.cjs.map +1 -1
- package/dist/cjs/theme/createOdysseyMuiTheme.cjs +3 -0
- package/dist/cjs/theme/createOdysseyMuiTheme.cjs.map +1 -1
- package/dist/cjs/theme/palette.cjs +14 -9
- package/dist/cjs/theme/palette.cjs.map +1 -1
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +10 -1
- package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs.map +1 -1
- package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
- package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +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 +3 -3
- package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
- package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
- package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
- package/dist/cjs/ui-shell/UiShell.cjs +7 -2
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShellLogo.cjs +24 -2
- package/dist/cjs/ui-shell/UiShellLogo.cjs.map +1 -1
- package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
- package/dist/cjs/ui-shell/renderUiShell.cjs +15 -0
- package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
- package/dist/cjs/useColorScheme.cjs +36 -0
- package/dist/cjs/useColorScheme.cjs.map +1 -0
- package/dist/cjs/useContrastMode.cjs +5 -4
- package/dist/cjs/useContrastMode.cjs.map +1 -1
- package/dist/cjs/useStackedBackdropProps.cjs +40 -0
- package/dist/cjs/useStackedBackdropProps.cjs.map +1 -0
- package/dist/cjs/useThemeCache.cjs +22 -14
- package/dist/cjs/useThemeCache.cjs.map +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/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 +4 -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 +14 -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 +21 -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 +12 -3
- package/dist/esm/OdysseyCacheProvider.js.map +1 -1
- package/dist/esm/OdysseyProvider.js +8 -1
- package/dist/esm/OdysseyProvider.js.map +1 -1
- package/dist/esm/OdysseyThemeProvider.js +61 -26
- package/dist/esm/OdysseyThemeProvider.js.map +1 -1
- package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
- package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -1
- package/dist/esm/Pagination/Pagination.js +37 -35
- package/dist/esm/Pagination/Pagination.js.map +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 +3 -3
- package/dist/esm/Switch.js.map +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/Tag.js +31 -23
- package/dist/esm/Tag.js.map +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 +1 -1
- package/dist/esm/fullscreen/FullscreenRegion.js +3 -1
- package/dist/esm/fullscreen/FullscreenRegion.js.map +1 -1
- package/dist/esm/{getTypedObjectKeys.js → getActionTintChannel.js} +5 -5
- package/dist/esm/getActionTintChannel.js.map +1 -0
- package/dist/esm/getColorSchemeDesignTokensOverride.js +27 -0
- package/dist/esm/getColorSchemeDesignTokensOverride.js.map +1 -0
- package/dist/{types/getTypedObjectKeys.d.ts → esm/getDropShadowFilter.js} +6 -4
- package/dist/esm/getDropShadowFilter.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 +1 -1
- package/dist/esm/icons.generated/FullscreenExit.js +1 -1
- package/dist/esm/icons.generated/Globe.js +1 -1
- package/dist/esm/icons.generated/Grid.js +1 -1
- package/dist/esm/icons.generated/Group.js +1 -1
- package/dist/esm/icons.generated/Happy.js +1 -1
- package/dist/esm/icons.generated/Hide.js +1 -1
- package/dist/esm/icons.generated/Home.js +1 -1
- package/dist/esm/icons.generated/HomeSelected.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
- package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
- package/dist/esm/icons.generated/InformationCircle.js +1 -1
- package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
- package/dist/esm/icons.generated/Link.js +1 -1
- package/dist/esm/icons.generated/List.js +1 -1
- package/dist/esm/icons.generated/Lock.js +1 -1
- package/dist/esm/icons.generated/Menu.js +1 -1
- package/dist/esm/icons.generated/More.js +1 -1
- package/dist/esm/icons.generated/Neutral.js +1 -1
- package/dist/esm/icons.generated/Notification.js +1 -1
- package/dist/esm/icons.generated/Pause.js +1 -1
- package/dist/esm/icons.generated/QuestionCircle.js +1 -1
- package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
- package/dist/esm/icons.generated/Refresh.js +1 -1
- package/dist/esm/icons.generated/Reports.js +1 -1
- package/dist/esm/icons.generated/ReportsSelected.js +1 -1
- package/dist/esm/icons.generated/Reset.js +1 -1
- package/dist/esm/icons.generated/Resume.js +1 -1
- package/dist/esm/icons.generated/Sad.js +1 -1
- package/dist/esm/icons.generated/Same.js +1 -1
- package/dist/esm/icons.generated/Search.js +1 -1
- package/dist/esm/icons.generated/Security.js +1 -1
- package/dist/esm/icons.generated/SecuritySelected.js +1 -1
- package/dist/esm/icons.generated/Send.js +1 -1
- package/dist/esm/icons.generated/Server.js +1 -1
- package/dist/esm/icons.generated/Settings.js +1 -1
- package/dist/esm/icons.generated/SettingsSelected.js +1 -1
- package/dist/esm/icons.generated/Show.js +1 -1
- package/dist/esm/icons.generated/Sparkle.js +1 -1
- package/dist/esm/icons.generated/Subtract.js +1 -1
- package/dist/esm/icons.generated/Sync.js +1 -1
- package/dist/esm/icons.generated/ThumbsDown.js +1 -1
- package/dist/esm/icons.generated/ThumbsUp.js +1 -1
- package/dist/esm/icons.generated/Unlock.js +1 -1
- package/dist/esm/icons.generated/Upload.js +1 -1
- package/dist/esm/icons.generated/User.js +1 -1
- package/dist/esm/icons.generated/Video.js +1 -1
- package/dist/esm/icons.generated/Warning.js +1 -1
- package/dist/esm/icons.generated/WarningFilled.js +1 -1
- package/dist/esm/icons.generated/Workflows.js +1 -1
- package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
- package/dist/esm/index.js +4 -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/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/GroupPicker.js +1 -0
- package/dist/esm/labs/GroupPicker.js.map +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/messageGuards.js +0 -2
- package/dist/esm/message-bus/messageGuards.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui.js +2 -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 +2 -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 +2 -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/remUtils.js +0 -1
- package/dist/esm/remUtils.js.map +1 -1
- package/dist/esm/resolveColorSchemeDesignTokens.js +37 -0
- package/dist/esm/resolveColorSchemeDesignTokens.js.map +1 -0
- package/dist/esm/test-selectors/index.js.map +1 -1
- package/dist/esm/test-selectors/sanityChecks.js +0 -15
- package/dist/esm/test-selectors/sanityChecks.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/theme/components/Button.js +7 -6
- package/dist/esm/theme/components/Button.js.map +1 -1
- package/dist/esm/theme/components/Checkbox.js +1 -1
- package/dist/esm/theme/components/Checkbox.js.map +1 -1
- package/dist/esm/theme/components/Chip.js +3 -1
- package/dist/esm/theme/components/Chip.js.map +1 -1
- package/dist/esm/theme/components/Dialog.js +6 -2
- package/dist/esm/theme/components/Dialog.js.map +1 -1
- package/dist/esm/theme/components/Paper.js +3 -0
- package/dist/esm/theme/components/Paper.js.map +1 -1
- package/dist/esm/theme/components/Tabs.js +7 -11
- package/dist/esm/theme/components/Tabs.js.map +1 -1
- package/dist/esm/theme/components/types.js.map +1 -1
- package/dist/esm/theme/createOdysseyMuiTheme.js +3 -0
- package/dist/esm/theme/createOdysseyMuiTheme.js.map +1 -1
- package/dist/esm/theme/palette.js +14 -9
- package/dist/esm/theme/palette.js.map +1 -1
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +10 -1
- package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js.map +1 -1
- package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
- package/dist/esm/ui-shell/NarrowUiShellContent.js +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 +3 -3
- package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
- package/dist/esm/ui-shell/SkipToContent.js +1 -1
- package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
- package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
- package/dist/esm/ui-shell/UiShell.js +7 -2
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/ui-shell/UiShellLogo.js +23 -2
- package/dist/esm/ui-shell/UiShellLogo.js.map +1 -1
- package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
- package/dist/esm/ui-shell/renderUiShell.js +15 -0
- package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
- package/dist/esm/useColorScheme.js +30 -0
- package/dist/esm/useColorScheme.js.map +1 -0
- package/dist/esm/useContrastMode.js +5 -4
- package/dist/esm/useContrastMode.js.map +1 -1
- package/dist/esm/useStackedBackdropProps.js +35 -0
- package/dist/esm/useStackedBackdropProps.js.map +1 -0
- package/dist/esm/useThemeCache.js +22 -14
- package/dist/esm/useThemeCache.js.map +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/types/Buttons/BaseButton.d.ts +5 -1
- 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/OdysseyCacheProvider.d.ts +6 -1
- package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
- package/dist/types/OdysseyDesignTokensContext.d.ts +3 -0
- package/dist/types/OdysseyDesignTokensContext.d.ts.map +1 -1
- package/dist/types/OdysseyProvider.d.ts +2 -2
- package/dist/types/OdysseyProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProvider.d.ts +9 -1
- package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts +10 -2
- package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
- package/dist/types/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/Tag.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/FullscreenRegion.d.ts.map +1 -1
- package/dist/types/getActionTintChannel.d.ts +18 -0
- package/dist/types/getActionTintChannel.d.ts.map +1 -0
- package/dist/types/getColorSchemeDesignTokensOverride.d.ts +46 -0
- package/dist/types/getColorSchemeDesignTokensOverride.d.ts.map +1 -0
- package/dist/types/getDropShadowFilter.d.ts +17 -0
- package/dist/types/getDropShadowFilter.d.ts.map +1 -0
- package/dist/types/i18n.generated/i18n.d.ts +4 -0
- package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
- package/dist/types/i18n.generated/i18n.resources.d.ts +148 -30
- package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -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/labs/GroupPicker.d.ts +2 -1
- package/dist/types/labs/GroupPicker.d.ts.map +1 -1
- package/dist/types/message-bus/messageGuards.d.ts +0 -8
- package/dist/types/message-bus/messageGuards.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui.d.ts +2 -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 +2 -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 +2 -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/remUtils.d.ts +0 -4
- package/dist/types/remUtils.d.ts.map +1 -1
- package/dist/types/resolveColorSchemeDesignTokens.d.ts +25 -0
- package/dist/types/resolveColorSchemeDesignTokens.d.ts.map +1 -0
- package/dist/types/test-selectors/index.d.ts +1 -1
- package/dist/types/test-selectors/sanityChecks.d.ts +0 -3
- package/dist/types/test-selectors/sanityChecks.d.ts.map +1 -1
- package/dist/types/theme/components/Backdrop.d.ts.map +1 -1
- package/dist/types/theme/components/Button.d.ts +1 -1
- package/dist/types/theme/components/Button.d.ts.map +1 -1
- package/dist/types/theme/components/Chip.d.ts +1 -1
- package/dist/types/theme/components/Chip.d.ts.map +1 -1
- package/dist/types/theme/components/Dialog.d.ts.map +1 -1
- package/dist/types/theme/components/Paper.d.ts.map +1 -1
- package/dist/types/theme/components/Tabs.d.ts +1 -1
- package/dist/types/theme/components/Tabs.d.ts.map +1 -1
- package/dist/types/theme/components/types.d.ts +5 -0
- package/dist/types/theme/components/types.d.ts.map +1 -1
- package/dist/types/theme/createOdysseyMuiTheme.d.ts +8 -1
- package/dist/types/theme/createOdysseyMuiTheme.d.ts.map +1 -1
- package/dist/types/theme/palette.d.ts +3 -1
- package/dist/types/theme/palette.d.ts.map +1 -1
- package/dist/types/ui-shell/AppSwitcher/AppSwitcher.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShell.d.ts +8 -1
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShellLogo.d.ts.map +1 -1
- package/dist/types/ui-shell/renderUiShell.d.ts +12 -1
- package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
- package/dist/types/useColorScheme.d.ts +41 -0
- package/dist/types/useColorScheme.d.ts.map +1 -0
- package/dist/types/useContrastMode.d.ts +16 -5
- package/dist/types/useContrastMode.d.ts.map +1 -1
- package/dist/types/useStackedBackdropProps.d.ts +36 -0
- package/dist/types/useStackedBackdropProps.d.ts.map +1 -0
- package/dist/types/useThemeCache.d.ts +15 -6
- package/dist/types/useThemeCache.d.ts.map +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/package.json +19 -38
- package/src/properties/odyssey-react-mui.properties +158 -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 +149 -0
- package/src/properties/translations/odyssey-react-mui_ok_SK.properties +149 -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/getTypedObjectKeys.cjs.map +0 -1
- package/dist/cjs/labs/DataTable.cjs +0 -485
- package/dist/cjs/labs/DataTable.cjs.map +0 -1
- package/dist/cjs/test-utils/getControlledElement.cjs +0 -48
- package/dist/cjs/test-utils/getControlledElement.cjs.map +0 -1
- package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs +0 -47
- package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +0 -1
- package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +0 -43
- package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs.map +0 -1
- package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +0 -137
- package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +0 -1
- package/dist/esm/getTypedObjectKeys.js.map +0 -1
- package/dist/esm/labs/DataTable.js +0 -478
- package/dist/esm/labs/DataTable.js.map +0 -1
- package/dist/esm/test-utils/getControlledElement.js +0 -41
- package/dist/esm/test-utils/getControlledElement.js.map +0 -1
- package/dist/esm/test-utils/renderWithOdysseyProvider.js +0 -42
- package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +0 -1
- package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +0 -37
- package/dist/esm/ui-shell/TopNav/TopNavLinksList.js.map +0 -1
- package/dist/esm/ui-shell/TopNav/TopNavListItem.js +0 -131
- package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +0 -1
- package/dist/types/getTypedObjectKeys.d.ts.map +0 -1
- package/dist/types/labs/DataTable.d.ts +0 -186
- package/dist/types/labs/DataTable.d.ts.map +0 -1
- package/dist/types/test-utils/getControlledElement.d.ts +0 -26
- package/dist/types/test-utils/getControlledElement.d.ts.map +0 -1
- package/dist/types/test-utils/renderWithOdysseyProvider.d.ts +0 -37
- package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +0 -1
- package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts +0 -44
- package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts.map +0 -1
- package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +0 -41
- package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +0 -1
package/dist/esm/Drawer.js
CHANGED
|
@@ -13,6 +13,7 @@ import _Drawer from "@mui/material/Drawer";
|
|
|
13
13
|
|
|
14
14
|
import styled from "@emotion/styled";
|
|
15
15
|
import { buttonClasses } from "@mui/material/Button";
|
|
16
|
+
import { useTheme } from "@mui/material/styles";
|
|
16
17
|
import { typographyClasses } from "@mui/material/Typography";
|
|
17
18
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
19
|
import { Button } from "./Buttons/Button.js";
|
|
@@ -21,6 +22,7 @@ import { useTranslation } from "./i18n.generated/i18n.js";
|
|
|
21
22
|
import { CloseIcon } from "./icons.generated/index.js";
|
|
22
23
|
import { useOdysseyDesignTokens } from "./OdysseyDesignTokensContext.js";
|
|
23
24
|
import { Heading5 } from "./Typography.js";
|
|
25
|
+
import { useStackedBackdropProps } from "./useStackedBackdropProps.js";
|
|
24
26
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
27
|
export const variantValues = ["temporary", "persistent"];
|
|
26
28
|
const DrawerHeader = styled("div", {
|
|
@@ -153,11 +155,20 @@ const Drawer = ({
|
|
|
153
155
|
}, [hasDividers, isContentScrollable]);
|
|
154
156
|
const hasFooter = useMemo(() => primaryCallToActionComponent || secondaryCallToActionComponent || tertiaryCallToActionComponent, [primaryCallToActionComponent, secondaryCallToActionComponent, tertiaryCallToActionComponent]);
|
|
155
157
|
const handleCloseButtonClick = useCallback(event => onClose(event, "closeButtonClick"), [onClose]);
|
|
158
|
+
const muiTheme = useTheme();
|
|
159
|
+
const stackedBackdropProps = useStackedBackdropProps({
|
|
160
|
+
isOpen: Boolean(isOpen) && variant === "temporary",
|
|
161
|
+
layer: muiTheme.zIndex.drawer
|
|
162
|
+
});
|
|
163
|
+
const slotProps = useMemo(() => ({
|
|
164
|
+
backdrop: stackedBackdropProps
|
|
165
|
+
}), [stackedBackdropProps]);
|
|
156
166
|
const muiDrawerComponent = useMemo(() => _jsx(_Drawer, {
|
|
157
167
|
anchor: anchorDirection,
|
|
158
168
|
"data-se": testId,
|
|
159
169
|
onClose: onClose,
|
|
160
170
|
open: isOpen,
|
|
171
|
+
slotProps: slotProps,
|
|
161
172
|
sx: {
|
|
162
173
|
...(variant === "persistent" && {
|
|
163
174
|
"& .MuiDrawer-paper": {
|
|
@@ -173,6 +184,7 @@ const Drawer = ({
|
|
|
173
184
|
odysseyDesignTokens: odysseyDesignTokens,
|
|
174
185
|
translate: translate,
|
|
175
186
|
children: [_jsx(Heading5, {
|
|
187
|
+
overflowWrap: "anywhere",
|
|
176
188
|
children: title
|
|
177
189
|
}), _jsx(Button, {
|
|
178
190
|
ariaLabel: ariaLabel || t("close.text"),
|
|
@@ -195,13 +207,12 @@ const Drawer = ({
|
|
|
195
207
|
children: [tertiaryCallToActionComponent, secondaryCallToActionComponent, primaryCallToActionComponent]
|
|
196
208
|
})]
|
|
197
209
|
})
|
|
198
|
-
}), [anchorDirection, ariaLabel, children, dividersVisible, handleCloseButtonClick, hasFooter, isContentScrollable, isOpen, odysseyDesignTokens, onClose, primaryCallToActionComponent, secondaryCallToActionComponent, t, tertiaryCallToActionComponent, testId, title, translate, variant]);
|
|
210
|
+
}), [anchorDirection, ariaLabel, children, dividersVisible, handleCloseButtonClick, hasFooter, isContentScrollable, isOpen, odysseyDesignTokens, onClose, primaryCallToActionComponent, secondaryCallToActionComponent, slotProps, t, tertiaryCallToActionComponent, testId, title, translate, variant]);
|
|
199
211
|
return variant === "temporary" ? _jsx(FullScreenOverlay, {
|
|
200
|
-
overlayType: "drawer",
|
|
201
212
|
children: muiDrawerComponent
|
|
202
213
|
}) : muiDrawerComponent;
|
|
203
214
|
};
|
|
204
215
|
const MemoizedDrawer = memo(Drawer);
|
|
205
|
-
MemoizedDrawer.displayName = "Drawer::pkg=odyssey&odysseyV=1.
|
|
216
|
+
MemoizedDrawer.displayName = "Drawer::pkg=odyssey&odysseyV=1.73.0";
|
|
206
217
|
export { MemoizedDrawer as Drawer };
|
|
207
218
|
//# sourceMappingURL=Drawer.js.map
|
package/dist/esm/Drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","names":["styled","buttonClasses","typographyClasses","memo","useCallback","useEffect","useMemo","useRef","useState","Button","FullScreenOverlay","useTranslation","CloseIcon","useOdysseyDesignTokens","Heading5","jsx","_jsx","jsxs","_jsxs","variantValues","DrawerHeader","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","root","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Spacing2","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","drawerContentRef","i18n","t","anchorDirection","dir","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","hasFooter","handleCloseButtonClick","event","muiDrawerComponent","_Drawer","anchor","open","sx","transition","onClick","size","startIcon","tabIndex","ref","overlayType","MemoizedDrawer","displayName"],"sources":["../../src/Drawer.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 styled from \"@emotion/styled\";\nimport {\n Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport { buttonClasses } from \"@mui/material/Button\";\nimport { typographyClasses } from \"@mui/material/Typography\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * If `true`, the drawer is visible.\n */\n isOpen?: boolean;\n /**\n * Called when the drawer is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawer footer. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * Heading text displayed at the top of the drawer.\n */\n title?: string;\n /**\n * Controls how the Drawer positions relative to page content.\n * - If `'temporary'`, overlays content and dismisses when the user clicks the backdrop.\n * - If `'persistent'`, pushes the page layout to the side and stays open until explicitly closed.\n *\n * A `'temporary'` Drawer spans the full viewport width at 400 pixels and below. A `'persistent'` Drawer keeps its width of about 360 pixels at every viewport size.\n * @default \"temporary\"\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers: boolean;\n }\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n /* Target the MUI classes, not the tag. Odyssey Typography and Button accept\n no className, so these styles cannot move onto the components themselves,\n and a tag selector stops applying after a change of heading level. */\n & > .${typographyClasses.root} {\n margin-bottom: 0;\n min-width: 0;\n }\n & > .${buttonClasses.root} {\n flex-shrink: 0;\n }\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n row-gap: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing2};\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\n/**\n * A panel that slides in from the edge of the screen to display supplementary content or actions without navigating away from the current page.\n */\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n, t } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5>{title}</Heading5>\n <Button\n ariaLabel={ariaLabel || t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n t,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay overlayType=\"drawer\">\n {muiDrawerComponent}\n </FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nex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IAAA,CAACoB,aAAa;QAAA,IACPiB,mBAAmB,IAAI;UAE1B4B,QAAQ,EAAE;QACZ,CAAC;QACDrD,WAAW,EAAEwC,eAAgB;QAC7B7C,mBAAmB,EAAEA,mBAAoB;QACzC2D,GAAG,EAAE3B,gBAAiB;QAAAd,QAAA,EAErBA;MAAQ,CACI,CAAC,EACf4B,SAAS,IACRnD,KAAA,CAACmB,YAAY;QACXT,WAAW,EAAEwC,eAAgB;QAC7B7C,mBAAmB,EAAEA,mBAAoB;QAAAkB,QAAA,GAExCO,6BAA6B,EAC7BF,8BAA8B,EAC9BD,4BAA4B;MAAA,CACjB,CACf;IAAA,CACmB;EAAC,CACd,CACZ,EACD,CACEa,eAAe,EACflB,SAAS,EACTC,QAAQ,EACR2B,eAAe,EACfE,sBAAsB,EACtBD,SAAS,EACThB,mBAAmB,EACnBV,MAAM,EACNpB,mBAAmB,EACnBqB,OAAO,EACPC,4BAA4B,EAC5BC,8BAA8B,EAC9BW,CAAC,EACDT,6BAA6B,EAC7BC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,OAAO,CAEX,CAAC;EAED,OAAOA,OAAO,KAAK,WAAW,GAC5BpC,IAAA,CAACN,iBAAiB;IAACyE,WAAW,EAAC,QAAQ;IAAA1C,QAAA,EACpC+B;EAAkB,CACF,CAAC,GAEpBA,kBACD;AACH,CAAC;AAED,MAAMY,cAAc,GAAGjF,IAAI,CAACoC,MAAM,CAAC;AACnC6C,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAI7C,MAAM","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Drawer.js","names":["styled","buttonClasses","useTheme","typographyClasses","memo","useCallback","useEffect","useMemo","useRef","useState","Button","FullScreenOverlay","useTranslation","CloseIcon","useOdysseyDesignTokens","Heading5","useStackedBackdropProps","jsx","_jsx","jsxs","_jsxs","variantValues","DrawerHeader","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","root","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Spacing2","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","drawerContentRef","i18n","t","anchorDirection","dir","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","hasFooter","handleCloseButtonClick","event","muiTheme","stackedBackdropProps","Boolean","layer","zIndex","drawer","slotProps","backdrop","muiDrawerComponent","_Drawer","anchor","open","sx","transition","overflowWrap","onClick","size","startIcon","tabIndex","ref","MemoizedDrawer","displayName"],"sources":["../../src/Drawer.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 styled from \"@emotion/styled\";\nimport {\n Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport { buttonClasses } from \"@mui/material/Button\";\nimport { useTheme } from \"@mui/material/styles\";\nimport { typographyClasses } from \"@mui/material/Typography\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\nimport { useStackedBackdropProps } from \"./useStackedBackdropProps.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * If `true`, the drawer is visible.\n */\n isOpen?: boolean;\n /**\n * Called when the drawer is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawer footer. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * Heading text displayed at the top of the drawer.\n */\n title?: string;\n /**\n * Controls how the Drawer positions relative to page content.\n * - If `'temporary'`, overlays content and dismisses when the user clicks the backdrop.\n * - If `'persistent'`, pushes the page layout to the side and stays open until explicitly closed.\n *\n * A `'temporary'` Drawer spans the full viewport width at 400 pixels and below. A `'persistent'` Drawer keeps its width of about 360 pixels at every viewport size.\n * @default \"temporary\"\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers: boolean;\n }\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n /* Target the MUI classes, not the tag. Odyssey Typography and Button accept\n no className, so these styles cannot move onto the components themselves,\n and a tag selector stops applying after a change of heading level. */\n & > .${typographyClasses.root} {\n margin-bottom: 0;\n min-width: 0;\n }\n & > .${buttonClasses.root} {\n flex-shrink: 0;\n }\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n row-gap: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing2};\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\n/**\n * A panel that slides in from the edge of the screen to display supplementary content or actions without navigating away from the current page.\n */\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n, t } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiTheme = useTheme();\n\n const stackedBackdropProps = useStackedBackdropProps({\n isOpen: Boolean(isOpen) && variant === \"temporary\",\n layer: muiTheme.zIndex.drawer,\n });\n\n const slotProps = useMemo<MuiDrawerProps[\"slotProps\"]>(\n () => ({ backdrop: stackedBackdropProps }),\n [stackedBackdropProps],\n );\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n slotProps={slotProps}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5 overflowWrap=\"anywhere\">{title}</Heading5>\n <Button\n ariaLabel={ariaLabel || t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n slotProps,\n t,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay>{muiDrawerComponent}</FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nexport { MemoizedDrawer as Drawer };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AAKpC,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SACEC,IAAI,EAGJC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AAId,SAASC,MAAM,QAAqB,qBAAqB;AACzD,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAEEC,sBAAsB,QACjB,iCAAiC;AACxC,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,uBAAuB,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IA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B;QAC7B7C,mBAAmB,EAAEA,mBAAoB;QACzCoE,GAAG,EAAEpC,gBAAiB;QAAAd,QAAA,EAErBA;MAAQ,CACI,CAAC,EACf4B,SAAS,IACRnD,KAAA,CAACmB,YAAY;QACXT,WAAW,EAAEwC,eAAgB;QAC7B7C,mBAAmB,EAAEA,mBAAoB;QAAAkB,QAAA,GAExCO,6BAA6B,EAC7BF,8BAA8B,EAC9BD,4BAA4B;MAAA,CACjB,CACf;IAAA,CACmB;EAAC,CACd,CACZ,EACD,CACEa,eAAe,EACflB,SAAS,EACTC,QAAQ,EACR2B,eAAe,EACfE,sBAAsB,EACtBD,SAAS,EACThB,mBAAmB,EACnBV,MAAM,EACNpB,mBAAmB,EACnBqB,OAAO,EACPC,4BAA4B,EAC5BC,8BAA8B,EAC9BgC,SAAS,EACTrB,CAAC,EACDT,6BAA6B,EAC7BC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,OAAO,CAEX,CAAC;EAED,OAAOA,OAAO,KAAK,WAAW,GAC5BpC,IAAA,CAACP,iBAAiB;IAAAgC,QAAA,EAAEuC;EAAkB,CAAoB,CAAC,GAE3DA,kBACD;AACH,CAAC;AAED,MAAMY,cAAc,GAAG1F,IAAI,CAACqC,MAAM,CAAC;AACnCqD,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAIrD,MAAM","ignoreList":[]}
|
package/dist/esm/EmptyState.js
CHANGED
|
@@ -61,7 +61,7 @@ const EmptyState = ({
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
const MemoizedEmptyState = memo(EmptyState);
|
|
64
|
-
MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.
|
|
64
|
+
MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.73.0";
|
|
65
65
|
export { MemoizedEmptyState as EmptyState };
|
|
66
66
|
export { MemoizedEmptyState as DataTableEmptyState };
|
|
67
67
|
//# sourceMappingURL=EmptyState.js.map
|
|
@@ -39,6 +39,6 @@ const ErrorMessageList = ({
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
const MemoizedErrorMessageList = memo(ErrorMessageList);
|
|
42
|
-
MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.
|
|
42
|
+
MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.73.0";
|
|
43
43
|
export { MemoizedErrorMessageList as ErrorMessageList };
|
|
44
44
|
//# sourceMappingURL=ErrorMessageList.js.map
|
package/dist/esm/Field.js
CHANGED
|
@@ -86,6 +86,6 @@ const Field = ({
|
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
const MemoizedField = memo(Field);
|
|
89
|
-
MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.
|
|
89
|
+
MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.73.0";
|
|
90
90
|
export { MemoizedField as Field };
|
|
91
91
|
//# sourceMappingURL=Field.js.map
|
package/dist/esm/FieldError.js
CHANGED
|
@@ -43,6 +43,6 @@ const FieldError = ({
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
const MemoizedFieldError = memo(FieldError);
|
|
46
|
-
MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.
|
|
46
|
+
MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.73.0";
|
|
47
47
|
export { MemoizedFieldError as FieldError };
|
|
48
48
|
//# sourceMappingURL=FieldError.js.map
|
package/dist/esm/FieldHint.js
CHANGED
|
@@ -48,6 +48,6 @@ const FieldHint = ({
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
const MemoizedFieldHint = memo(FieldHint);
|
|
51
|
-
MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.
|
|
51
|
+
MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.73.0";
|
|
52
52
|
export { MemoizedFieldHint as FieldHint };
|
|
53
53
|
//# sourceMappingURL=FieldHint.js.map
|
package/dist/esm/FieldLabel.js
CHANGED
|
@@ -44,6 +44,6 @@ const FieldLabel = ({
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
const MemoizedFieldLabel = memo(FieldLabel);
|
|
47
|
-
MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.
|
|
47
|
+
MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.73.0";
|
|
48
48
|
export { MemoizedFieldLabel as FieldLabel };
|
|
49
49
|
//# sourceMappingURL=FieldLabel.js.map
|
|
@@ -153,6 +153,6 @@ const Checkbox = ({
|
|
|
153
153
|
});
|
|
154
154
|
};
|
|
155
155
|
const MemoizedCheckbox = memo(Checkbox);
|
|
156
|
-
MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.
|
|
156
|
+
MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.73.0";
|
|
157
157
|
export { MemoizedCheckbox as Checkbox };
|
|
158
158
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -67,6 +67,6 @@ const CheckboxGroup = ({
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
const MemoizedCheckboxGroup = memo(CheckboxGroup);
|
|
70
|
-
MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.
|
|
70
|
+
MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.73.0";
|
|
71
71
|
export { MemoizedCheckboxGroup as CheckboxGroup };
|
|
72
72
|
//# sourceMappingURL=CheckboxGroup.js.map
|
package/dist/esm/Fields/Radio.js
CHANGED
|
@@ -115,6 +115,6 @@ const Radio = ({
|
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
117
|
const MemoizedRadio = memo(Radio);
|
|
118
|
-
MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.
|
|
118
|
+
MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.73.0";
|
|
119
119
|
export { MemoizedRadio as Radio };
|
|
120
120
|
//# sourceMappingURL=Radio.js.map
|
|
@@ -88,6 +88,6 @@ const RadioGroup = ({
|
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
const MemoizedRadioGroup = memo(RadioGroup);
|
|
91
|
-
MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.
|
|
91
|
+
MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.73.0";
|
|
92
92
|
export { MemoizedRadioGroup as RadioGroup };
|
|
93
93
|
//# sourceMappingURL=RadioGroup.js.map
|
package/dist/esm/Fieldset.js
CHANGED
|
@@ -64,6 +64,6 @@ const Fieldset = ({
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
const MemoizedFieldset = memo(Fieldset);
|
|
67
|
-
MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.
|
|
67
|
+
MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.73.0";
|
|
68
68
|
export { MemoizedFieldset as Fieldset };
|
|
69
69
|
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -48,6 +48,6 @@ const FileUploadIllustration = () => {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
const MemoizedFileUploadIllustration = memo(FileUploadIllustration);
|
|
51
|
-
MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.
|
|
51
|
+
MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.73.0";
|
|
52
52
|
export { MemoizedFileUploadIllustration as FileUploadIllustration };
|
|
53
53
|
//# sourceMappingURL=FileUploadIllustration.js.map
|
|
@@ -104,6 +104,6 @@ const FileUploadPreview = ({
|
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
const MemoizedFileUploadPreview = memo(FileUploadPreview);
|
|
107
|
-
MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.
|
|
107
|
+
MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.73.0";
|
|
108
108
|
export { MemoizedFileUploadPreview as FileUploadPreview };
|
|
109
109
|
//# sourceMappingURL=FileUploadPreview.js.map
|
|
@@ -193,6 +193,6 @@ const FileUploader = ({
|
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
195
|
const MemoizedFileUploader = memo(FileUploader);
|
|
196
|
-
MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.
|
|
196
|
+
MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.73.0";
|
|
197
197
|
export { MemoizedFileUploader as FileUpload, MemoizedFileUploader as FileUploader };
|
|
198
198
|
//# sourceMappingURL=FileUploader.js.map
|
package/dist/esm/Form.js
CHANGED
|
@@ -92,6 +92,6 @@ const Form = ({
|
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
const MemoizedForm = memo(Form);
|
|
95
|
-
MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.
|
|
95
|
+
MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.73.0";
|
|
96
96
|
export { MemoizedForm as Form };
|
|
97
97
|
//# sourceMappingURL=Form.js.map
|
|
@@ -11,30 +11,39 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { memo } from "react";
|
|
14
|
-
import { useFullScreenOverlayContext } from "./FullScreenOverlayContext.js";
|
|
15
|
-
import {
|
|
14
|
+
import { FullScreenOverlayContext, useFullScreenOverlayContext } from "./FullScreenOverlayContext.js";
|
|
15
|
+
import { OdysseyCacheProvider } from "./OdysseyCacheProvider.js";
|
|
16
|
+
import { OdysseyThemeProvider } from "./OdysseyThemeProvider.js";
|
|
17
|
+
import { useColorScheme } from "./useColorScheme.js";
|
|
16
18
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
const withinOverlayContextValue = {
|
|
20
|
+
isWithinOverlay: true
|
|
21
|
+
};
|
|
17
22
|
const FullScreenOverlay = ({
|
|
18
|
-
children
|
|
19
|
-
overlayType
|
|
23
|
+
children
|
|
20
24
|
}) => {
|
|
21
25
|
const {
|
|
26
|
+
isWithinOverlay,
|
|
22
27
|
overlayEmotionRootElement,
|
|
23
28
|
overlayShadowRootElement
|
|
24
29
|
} = useFullScreenOverlayContext();
|
|
25
|
-
|
|
30
|
+
const colorScheme = useColorScheme();
|
|
31
|
+
return overlayShadowRootElement && !isWithinOverlay ? _jsx(OdysseyCacheProvider, {
|
|
32
|
+
colorScheme: colorScheme,
|
|
26
33
|
emotionRootElement: overlayEmotionRootElement,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
children: _jsx(OdysseyThemeProvider, {
|
|
35
|
+
hasWrapperElement: false,
|
|
36
|
+
shadowRootElement: overlayShadowRootElement,
|
|
37
|
+
children: _jsx(FullScreenOverlayContext.Provider, {
|
|
38
|
+
value: withinOverlayContextValue,
|
|
39
|
+
children: children
|
|
40
|
+
})
|
|
41
|
+
})
|
|
33
42
|
}) : _jsx(_Fragment, {
|
|
34
43
|
children: children
|
|
35
44
|
});
|
|
36
45
|
};
|
|
37
46
|
const MemoizedFullScreenOverlay = memo(FullScreenOverlay);
|
|
38
|
-
MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.
|
|
47
|
+
MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.73.0";
|
|
39
48
|
export { MemoizedFullScreenOverlay as FullScreenOverlay };
|
|
40
49
|
//# sourceMappingURL=FullScreenOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenOverlay.js","names":["memo","useFullScreenOverlayContext","
|
|
1
|
+
{"version":3,"file":"FullScreenOverlay.js","names":["memo","FullScreenOverlayContext","useFullScreenOverlayContext","OdysseyCacheProvider","OdysseyThemeProvider","useColorScheme","jsx","_jsx","Fragment","_Fragment","withinOverlayContextValue","isWithinOverlay","FullScreenOverlay","children","overlayEmotionRootElement","overlayShadowRootElement","colorScheme","emotionRootElement","hasWrapperElement","shadowRootElement","Provider","value","MemoizedFullScreenOverlay","displayName"],"sources":["../../src/FullScreenOverlay.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo, type ReactNode } from \"react\";\n\nimport {\n FullScreenOverlayContext,\n type FullScreenOverlayContextType,\n type OverlayType,\n useFullScreenOverlayContext,\n} from \"./FullScreenOverlayContext.js\";\nimport { OdysseyCacheProvider } from \"./OdysseyCacheProvider.js\";\nimport { OdysseyThemeProvider } from \"./OdysseyThemeProvider.js\";\nimport { useColorScheme } from \"./useColorScheme.js\";\n\nexport type FullScreenOverlayProps = {\n children: ReactNode;\n /**\n * @deprecated Every overlay renders into the app's one overlay container, which is always labeled `data-odyssey-react-overlay-component`, so this no longer has any effect.\n */\n overlayType?: OverlayType;\n};\n\n// Marks everything inside an overlay, so a dialog opened from a drawer renders into the app's overlay container next to the drawer, not into a container of the drawer's own. One container per app is what Selenium selectors and `fullScreenOverlayId` expect.\nconst withinOverlayContextValue: FullScreenOverlayContextType = {\n isWithinOverlay: true,\n};\n\nconst FullScreenOverlay = ({ children }: FullScreenOverlayProps) => {\n const {\n isWithinOverlay,\n overlayEmotionRootElement,\n overlayShadowRootElement,\n } = useFullScreenOverlayContext();\n const colorScheme = useColorScheme();\n\n // Only the style cache and theme move into the overlay container. A whole `OdysseyProvider` here would append another container to `<body>` for every overlay on the page, open or closed, and reset the app's animation setting.\n return overlayShadowRootElement && !isWithinOverlay ? (\n <OdysseyCacheProvider\n colorScheme={colorScheme}\n emotionRootElement={overlayEmotionRootElement}\n >\n <OdysseyThemeProvider\n hasWrapperElement={false}\n shadowRootElement={overlayShadowRootElement}\n >\n <FullScreenOverlayContext.Provider value={withinOverlayContextValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n </OdysseyThemeProvider>\n </OdysseyCacheProvider>\n ) : (\n <>{children}</>\n );\n};\n\nconst MemoizedFullScreenOverlay = memo(FullScreenOverlay);\nMemoizedFullScreenOverlay.displayName = \"FullScreenOverlay\";\n\nexport { MemoizedFullScreenOverlay as FullScreenOverlay };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAwB,OAAO;AAE5C,SACEC,wBAAwB,EAGxBC,2BAA2B,QACtB,+BAA+B;AACtC,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,cAAc,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAWrD,MAAMC,yBAAuD,GAAG;EAC9DC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC;AAAiC,CAAC,KAAK;EAClE,MAAM;IACJF,eAAe;IACfG,yBAAyB;IACzBC;EACF,CAAC,GAAGb,2BAA2B,CAAC,CAAC;EACjC,MAAMc,WAAW,GAAGX,cAAc,CAAC,CAAC;EAGpC,OAAOU,wBAAwB,IAAI,CAACJ,eAAe,GACjDJ,IAAA,CAACJ,oBAAoB;IACnBa,WAAW,EAAEA,WAAY;IACzBC,kBAAkB,EAAEH,yBAA0B;IAAAD,QAAA,EAE9CN,IAAA,CAACH,oBAAoB;MACnBc,iBAAiB,EAAE,KAAM;MACzBC,iBAAiB,EAAEJ,wBAAyB;MAAAF,QAAA,EAE5CN,IAAA,CAACN,wBAAwB,CAACmB,QAAQ;QAACC,KAAK,EAAEX,yBAA0B;QAAAG,QAAA,EACjEA;MAAQ,CACwB;IAAC,CAChB;EAAC,CACH,CAAC,GAEvBN,IAAA,CAAAE,SAAA;IAAAI,QAAA,EAAGA;EAAQ,CAAG,CACf;AACH,CAAC;AAED,MAAMS,yBAAyB,GAAGtB,IAAI,CAACY,iBAAiB,CAAC;AACzDU,yBAAyB,CAACC,WAAW,mDAAsB;AAE3D,SAASD,yBAAyB,IAAIV,iBAAiB","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { createContext, memo, useContext, useEffect, useMemo } from "react";
|
|
14
|
+
import { useHasActiveFullscreen } from "./fullscreen/useFullscreen.js";
|
|
14
15
|
import { createShadowDomElements } from "./web-component/createShadowDomElements.js";
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
export const FullScreenOverlayContext = createContext({});
|
|
@@ -65,6 +66,23 @@ const FullScreenOverlayProvider = ({
|
|
|
65
66
|
overlayParentElement.remove();
|
|
66
67
|
};
|
|
67
68
|
}, [fullScreenOverlayId, overlayParentElement, overlayType]);
|
|
69
|
+
const hasActiveFullscreen = useHasActiveFullscreen();
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (!hasActiveFullscreen) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const removeInert = () => {
|
|
75
|
+
if (overlayParentElement.hasAttribute("inert")) {
|
|
76
|
+
overlayParentElement.removeAttribute("inert");
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
removeInert();
|
|
80
|
+
const mutationObserver = new MutationObserver(removeInert);
|
|
81
|
+
mutationObserver.observe(overlayParentElement, {
|
|
82
|
+
attributeFilter: ["inert"]
|
|
83
|
+
});
|
|
84
|
+
return () => mutationObserver.disconnect();
|
|
85
|
+
}, [hasActiveFullscreen, overlayParentElement]);
|
|
68
86
|
const providerValue = useMemo(() => ({
|
|
69
87
|
overlayEmotionRootElement,
|
|
70
88
|
overlayShadowRootElement
|
|
@@ -75,6 +93,6 @@ const FullScreenOverlayProvider = ({
|
|
|
75
93
|
});
|
|
76
94
|
};
|
|
77
95
|
const MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);
|
|
78
|
-
MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.
|
|
96
|
+
MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.73.0";
|
|
79
97
|
export { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };
|
|
80
98
|
//# sourceMappingURL=FullScreenOverlayContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullScreenOverlayContext.js","names":["createContext","memo","useContext","useEffect","useMemo","createShadowDomElements","jsx","_jsx","FullScreenOverlayContext","useFullScreenOverlayContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","toastStack","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","document","createElement","emotionRootElement","shadowRootElement","undefined","id","removeAttribute","setAttribute","body","append","remove","providerValue","Provider","value","MemoizedFullScreenOverlayProvider","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n toastStack: \"data-odyssey-react-toast-stack-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,aAAa,EACbC,IAAI,EAEJC,UAAU,EACVC,SAAS,EACTC,OAAO,QACF,OAAO;AAEd,SAASC,uBAAuB,QAAQ,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"file":"FullScreenOverlayContext.js","names":["createContext","memo","useContext","useEffect","useMemo","useHasActiveFullscreen","createShadowDomElements","jsx","_jsx","FullScreenOverlayContext","useFullScreenOverlayContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","toastStack","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","document","createElement","emotionRootElement","shadowRootElement","undefined","id","removeAttribute","setAttribute","body","append","remove","hasActiveFullscreen","removeInert","hasAttribute","mutationObserver","MutationObserver","observe","attributeFilter","disconnect","providerValue","Provider","value","MemoizedFullScreenOverlayProvider","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { useHasActiveFullscreen } from \"./fullscreen/useFullscreen.js\";\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n /**\n * If `true`, the component is already rendering inside an overlay's container, so an overlay opened from it renders into that same container.\n */\n isWithinOverlay?: boolean;\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n toastStack: \"data-odyssey-react-toast-stack-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n * @deprecated Overlays no longer create containers of their own, so the app's one container only needs `data-odyssey-react-overlay-component`. Select overlays by that attribute and the app's `fullScreenOverlayId`.\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const hasActiveFullscreen = useHasActiveFullscreen();\n\n // The container sits on `<body>` from the moment the app mounts, so a fullscreen region, possibly from another bundle or an older Odyssey, makes it inert along with the rest of the page. An overlay in an inert container is visible but ignores every click and keypress, so the container refuses `inert` while anything is in fullscreen. Outside fullscreen it leaves `inert` alone, because then a host page's own modal may be isolating it on purpose.\n useEffect(() => {\n if (!hasActiveFullscreen) {\n return;\n }\n\n const removeInert = () => {\n if (overlayParentElement.hasAttribute(\"inert\")) {\n overlayParentElement.removeAttribute(\"inert\");\n }\n };\n\n removeInert();\n\n const mutationObserver = new MutationObserver(removeInert);\n mutationObserver.observe(overlayParentElement, {\n attributeFilter: [\"inert\"],\n });\n\n return () => mutationObserver.disconnect();\n }, [hasActiveFullscreen, overlayParentElement]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,aAAa,EACbC,IAAI,EAEJC,UAAU,EACVC,SAAS,EACTC,OAAO,QACF,OAAO;AAEd,SAASC,sBAAsB,QAAQ,+BAA+B;AACtE,SAASC,uBAAuB,QAAQ,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAWrF,OAAO,MAAMC,wBAAwB,GACnCT,aAAa,CAA+B,CAAC,CAAC,CAAC;AAEjD,OAAO,MAAMU,2BAA2B,GAAGA,CAAA,KACzCR,UAAU,CAACO,wBAAwB,CAAC;AAEtC,OAAO,MAAME,uBAAuB,GAAG;EACrCC,MAAM,EAAE,6CAA6C;EACrDC,MAAM,EAAE,6CAA6C;EACrDC,UAAU,EAAE,kDAAkD;EAC9DC,OAAO,EA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GpDF,SAAS,CAAC,MAAM;IACd,IAAI,CAACiC,mBAAmB,EAAE;MACxB;IACF;IAEA,MAAMC,WAAW,GAAGA,CAAA,KAAM;MACxB,IAAIlB,oBAAoB,CAACmB,YAAY,CAAC,OAAO,CAAC,EAAE;QAC9CnB,oBAAoB,CAACY,eAAe,CAAC,OAAO,CAAC;MAC/C;IACF,CAAC;IAEDM,WAAW,CAAC,CAAC;IAEb,MAAME,gBAAgB,GAAG,IAAIC,gBAAgB,CAACH,WAAW,CAAC;IAC1DE,gBAAgB,CAACE,OAAO,CAACtB,oBAAoB,EAAE;MAC7CuB,eAAe,EAAE,CAAC,OAAO;IAC3B,CAAC,CAAC;IAEF,OAAO,MAAMH,gBAAgB,CAACI,UAAU,CAAC,CAAC;EAC5C,CAAC,EAAE,CAACP,mBAAmB,EAAEjB,oBAAoB,CAAC,CAAC;EAE/C,MAAMyB,aAAa,GAAGxC,OAAO,CAC3B,OAAO;IACLmB,yBAAyB;IACzBC;EACF,CAAC,CAAC,EACF,CAACD,yBAAyB,EAAEC,wBAAwB,CACtD,CAAC;EAED,OACEhB,IAAA,CAACC,wBAAwB,CAACoC,QAAQ;IAACC,KAAK,EAAEF,aAAc;IAAA3B,QAAA,EACrDA;EAAQ,CACwB,CAAC;AAExC,CAAC;AAED,MAAM8B,iCAAiC,GAAG9C,IAAI,CAACe,yBAAyB,CAAC;AACzE+B,iCAAiC,CAACC,WAAW,2DAA8B;AAE3E,SAASD,iCAAiC,IAAI/B,yBAAyB","ignoreList":[]}
|
package/dist/esm/HintLink.js
CHANGED
|
@@ -18,6 +18,6 @@ const HintLink = props => _jsx(Link, {
|
|
|
18
18
|
variant: "monochrome"
|
|
19
19
|
});
|
|
20
20
|
const MemoizedHintLink = memo(HintLink);
|
|
21
|
-
MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.
|
|
21
|
+
MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.73.0";
|
|
22
22
|
export { MemoizedHintLink as HintLink };
|
|
23
23
|
//# sourceMappingURL=HintLink.js.map
|
|
@@ -60,6 +60,6 @@ const IconWithTooltip = ({
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
const MemoizedIconWithTooltip = memo(IconWithTooltip);
|
|
63
|
-
MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.
|
|
63
|
+
MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.73.0";
|
|
64
64
|
export { MemoizedIconWithTooltip as IconWithTooltip };
|
|
65
65
|
//# sourceMappingURL=IconWithTooltip.js.map
|
package/dist/esm/Link.js
CHANGED
|
@@ -74,6 +74,6 @@ const Link = ({
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
const MemoizedLink = memo(Link);
|
|
77
|
-
MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.
|
|
77
|
+
MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.73.0";
|
|
78
78
|
export { MemoizedLink as Link };
|
|
79
79
|
//# sourceMappingURL=Link.js.map
|
|
@@ -27,6 +27,6 @@ const MuiPropsChild = forwardRef(({
|
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
const MemoizedMuiPropsChild = memo(MuiPropsChild);
|
|
30
|
-
MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.
|
|
30
|
+
MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.73.0";
|
|
31
31
|
export { MemoizedMuiPropsChild as MuiPropsChild };
|
|
32
32
|
//# sourceMappingURL=MuiPropsChild.js.map
|
package/dist/esm/NativeSelect.js
CHANGED
|
@@ -101,6 +101,6 @@ const NativeSelect = forwardRef(({
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
const MemoizedNativeSelect = memo(NativeSelect);
|
|
104
|
-
MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.
|
|
104
|
+
MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.73.0";
|
|
105
105
|
export { MemoizedNativeSelect as NativeSelect };
|
|
106
106
|
//# sourceMappingURL=NativeSelect.js.map
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
import createCache from "@emotion/cache";
|
|
14
14
|
import { CacheProvider } from "@emotion/react";
|
|
15
|
-
import { memo, useMemo } from "react";
|
|
15
|
+
import { memo, useLayoutEffect, useMemo, useRef } from "react";
|
|
16
16
|
import { useUniqueAlphabeticalId } from "./useUniqueAlphabeticalId.js";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
const OdysseyCacheProvider = ({
|
|
19
19
|
children,
|
|
20
|
+
colorScheme,
|
|
20
21
|
emotionRoot,
|
|
21
22
|
emotionRootElement,
|
|
22
23
|
nonce,
|
|
@@ -34,13 +35,21 @@ const OdysseyCacheProvider = ({
|
|
|
34
35
|
...(stylisPlugins && {
|
|
35
36
|
stylisPlugins
|
|
36
37
|
})
|
|
37
|
-
}), [emotionRoot, emotionRootElement, nonce, stylisPlugins, uniqueAlphabeticalId]);
|
|
38
|
+
}), [colorScheme, emotionRoot, emotionRootElement, nonce, stylisPlugins, uniqueAlphabeticalId]);
|
|
39
|
+
const previousEmotionCacheRef = useRef(undefined);
|
|
40
|
+
useLayoutEffect(() => {
|
|
41
|
+
const previousEmotionCache = previousEmotionCacheRef.current;
|
|
42
|
+
previousEmotionCacheRef.current = emotionCache;
|
|
43
|
+
if (previousEmotionCache && previousEmotionCache !== emotionCache) {
|
|
44
|
+
previousEmotionCache.sheet.flush();
|
|
45
|
+
}
|
|
46
|
+
}, [emotionCache]);
|
|
38
47
|
return _jsx(CacheProvider, {
|
|
39
48
|
value: emotionCache,
|
|
40
49
|
children: children
|
|
41
50
|
});
|
|
42
51
|
};
|
|
43
52
|
const MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);
|
|
44
|
-
MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.
|
|
53
|
+
MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.73.0";
|
|
45
54
|
export { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };
|
|
46
55
|
//# sourceMappingURL=OdysseyCacheProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OdysseyCacheProvider.js","names":["createCache","CacheProvider","memo","useMemo","useUniqueAlphabeticalId","jsx","_jsx","OdysseyCacheProvider","children","emotionRoot","emotionRootElement","nonce","stylisPlugins","uniqueAlphabeticalId","emotionCache","container","key","globalThis","cspNonce","prepend","speedy","value","MemoizedOdysseyCacheProvider","displayName"],"sources":["../../src/OdysseyCacheProvider.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\ndeclare global {\n var cspNonce: string; // Adding types to `globalThis` requires we use `var`.\n}\n\nimport createCache, { StylisPlugin } from \"@emotion/cache\";\nimport { CacheProvider } from \"@emotion/react\";\nimport { memo, ReactNode, useMemo } from \"react\";\n\nimport { useUniqueAlphabeticalId } from \"./useUniqueAlphabeticalId.js\";\n\nexport type OdysseyCacheProviderProps = {\n children: ReactNode;\n /**\n * @deprecated Use `EmotionRootElement` instead. This was incorrectly configured as an `HTMLStyleElement`, but then we're rendering `<style>` inside `<style>`. We need this to be a `<div>` instead.\n *\n * Emotion caches styles into the style element.\n * When enabling this prop, Emotion caches the styles at this element, rather than in <head>.\n */\n emotionRoot?: HTMLStyleElement;\n /**\n * Emotion adds `<style>` elements into this DOM node. Normally, Emotion puts these in `document.head`. This is useful if you want to render into a Shadow DOM or iframe.\n */\n emotionRootElement?: HTMLElement;\n /**\n * @deprecated No longer necessary.\n *\n * Required to know if a Shadow DOM is in use. This tells Emotion to change its cache configuration.\n */\n hasShadowDom?: boolean;\n /**\n * A cryptographic nonce (\"number used once\") that allows `<style>` tags injected by Emotion to pass a Content Security Policy that restricts inline styles.\n */\n nonce?: string;\n /**\n * @deprecated No longer necessary.\n *\n * Emotion renders into this HTML element.\n * When enabling this prop, Emotion renders at the top of this component rather than the bottom like it does in the HTML `<head>`.\n */\n shadowDomElement?: HTMLDivElement | HTMLElement;\n /** Custom Stylis plugins applied to Emotion's CSS processing pipeline. */\n stylisPlugins?: StylisPlugin[];\n};\n\n/**\n * Configures Emotion's style cache for Odyssey components. Wrap your application in this provider when you need to render into a Shadow DOM, iframe, or non-`<head>` target element, or when your CSP requires a nonce on injected `<style>` tags.\n */\nconst OdysseyCacheProvider = ({\n children,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n}: OdysseyCacheProviderProps) => {\n const uniqueAlphabeticalId = useUniqueAlphabeticalId();\n\n const emotionCache = useMemo(\n () =>\n createCache({\n ...((emotionRootElement || emotionRoot) && {\n container: emotionRootElement || emotionRoot,\n }),\n key: uniqueAlphabeticalId,\n nonce: nonce ?? globalThis.cspNonce,\n prepend: true,\n speedy: true,\n ...(stylisPlugins && { stylisPlugins }),\n }),\n [\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n uniqueAlphabeticalId,\n ],\n );\n\n return <CacheProvider value={emotionCache}>{children}</CacheProvider>;\n};\n\nconst MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);\nMemoizedOdysseyCacheProvider.displayName = \"OdysseyCacheProvider\";\n\nexport { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAOA,WAAW,
|
|
1
|
+
{"version":3,"file":"OdysseyCacheProvider.js","names":["createCache","CacheProvider","memo","useLayoutEffect","useMemo","useRef","useUniqueAlphabeticalId","jsx","_jsx","OdysseyCacheProvider","children","colorScheme","emotionRoot","emotionRootElement","nonce","stylisPlugins","uniqueAlphabeticalId","emotionCache","container","key","globalThis","cspNonce","prepend","speedy","previousEmotionCacheRef","undefined","previousEmotionCache","current","sheet","flush","value","MemoizedOdysseyCacheProvider","displayName"],"sources":["../../src/OdysseyCacheProvider.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\ndeclare global {\n var cspNonce: string; // Adding types to `globalThis` requires we use `var`.\n}\n\nimport createCache, { type EmotionCache, StylisPlugin } from \"@emotion/cache\";\nimport { CacheProvider } from \"@emotion/react\";\nimport { memo, ReactNode, useLayoutEffect, useMemo, useRef } from \"react\";\n\nimport { type ResolvedColorScheme } from \"./useColorScheme.js\";\nimport { useUniqueAlphabeticalId } from \"./useUniqueAlphabeticalId.js\";\n\nexport type OdysseyCacheProviderProps = {\n children: ReactNode;\n /**\n * The color scheme rendered inside this cache. Changing it replaces the cache, so the new scheme's styles are inserted in the same order as a first render.\n */\n colorScheme?: ResolvedColorScheme;\n /**\n * @deprecated Use `EmotionRootElement` instead. This was incorrectly configured as an `HTMLStyleElement`, but then we're rendering `<style>` inside `<style>`. We need this to be a `<div>` instead.\n *\n * Emotion caches styles into the style element.\n * When enabling this prop, Emotion caches the styles at this element, rather than in <head>.\n */\n emotionRoot?: HTMLStyleElement;\n /**\n * Emotion adds `<style>` elements into this DOM node. Normally, Emotion puts these in `document.head`. This is useful if you want to render into a Shadow DOM or iframe.\n */\n emotionRootElement?: HTMLElement;\n /**\n * @deprecated No longer necessary.\n *\n * Required to know if a Shadow DOM is in use. This tells Emotion to change its cache configuration.\n */\n hasShadowDom?: boolean;\n /**\n * A cryptographic nonce (\"number used once\") that allows `<style>` tags injected by Emotion to pass a Content Security Policy that restricts inline styles.\n */\n nonce?: string;\n /**\n * @deprecated No longer necessary.\n *\n * Emotion renders into this HTML element.\n * When enabling this prop, Emotion renders at the top of this component rather than the bottom like it does in the HTML `<head>`.\n */\n shadowDomElement?: HTMLDivElement | HTMLElement;\n /** Custom Stylis plugins applied to Emotion's CSS processing pipeline. */\n stylisPlugins?: StylisPlugin[];\n};\n\n/**\n * Configures Emotion's style cache for Odyssey components. Wrap your application in this provider when you need to render into a Shadow DOM, iframe, or non-`<head>` target element, or when your CSP requires a nonce on injected `<style>` tags.\n */\nconst OdysseyCacheProvider = ({\n children,\n colorScheme,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n}: OdysseyCacheProviderProps) => {\n const uniqueAlphabeticalId = useUniqueAlphabeticalId();\n\n // Emotion resolves equal-specificity rules by insertion order. Switching the color scheme regenerates every class built from color tokens and appends it after the classes that did not change, so an ancestor's rule can start beating a descendant's override that won on the first render. A fresh cache per scheme keeps first-render order.\n const emotionCache = useMemo(\n () =>\n createCache({\n ...((emotionRootElement || emotionRoot) && {\n container: emotionRootElement || emotionRoot,\n }),\n key: uniqueAlphabeticalId,\n nonce: nonce ?? globalThis.cspNonce,\n prepend: true,\n speedy: true,\n ...(stylisPlugins && { stylisPlugins }),\n }),\n // `colorScheme` is not read in the factory. It is a dependency so a scheme change builds a new cache.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n colorScheme,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n uniqueAlphabeticalId,\n ],\n );\n\n const previousEmotionCacheRef = useRef<EmotionCache>(undefined);\n\n // The replaced cache's `<style>` tags stay in the DOM until flushed. This runs before paint so the old rules never apply alongside the new ones, and it compares against the previous cache rather than flushing on cleanup, because Strict Mode's simulated unmount would otherwise flush the cache still in use.\n useLayoutEffect(() => {\n const previousEmotionCache = previousEmotionCacheRef.current;\n\n previousEmotionCacheRef.current = emotionCache;\n\n if (previousEmotionCache && previousEmotionCache !== emotionCache) {\n previousEmotionCache.sheet.flush();\n }\n }, [emotionCache]);\n\n return <CacheProvider value={emotionCache}>{children}</CacheProvider>;\n};\n\nconst MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);\nMemoizedOdysseyCacheProvider.displayName = \"OdysseyCacheProvider\";\n\nexport { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAOA,WAAW,MAA2C,gBAAgB;AAC7E,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,IAAI,EAAaC,eAAe,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAGzE,SAASC,uBAAuB,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA2CvE,MAAMC,oBAAoB,GAAGA,CAAC;EAC5BC,QAAQ;EACRC,WAAW;EACXC,WAAW;EACXC,kBAAkB;EAClBC,KAAK;EACLC;AACyB,CAAC,KAAK;EAC/B,MAAMC,oBAAoB,GAAGV,uBAAuB,CAAC,CAAC;EAGtD,MAAMW,YAAY,GAAGb,OAAO,CAC1B,MACEJ,WAAW,CAAC;IACV,IAAI,CAACa,kBAAkB,IAAID,WAAW,KAAK;MACzCM,SAAS,EAAEL,kBAAkB,IAAID;IACnC,CAAC,CAAC;IACFO,GAAG,EAAEH,oBAAoB;IACzBF,KAAK,EAAEA,KAAK,IAAIM,UAAU,CAACC,QAAQ;IACnCC,OAAO,EAAE,IAAI;IACbC,MAAM,EAAE,IAAI;I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